diff --git a/src/ai/embedding.rs b/src/ai/embedding.rs index 4b41304..623b121 100644 --- a/src/ai/embedding.rs +++ b/src/ai/embedding.rs @@ -202,10 +202,10 @@ async fn ollama( } } } - log::info!( - "Ollama embedding result {:?} {:?}", - embedding_result.get(0), - embedding_result.get(1) - ); + // log::info!( + // "Ollama embedding result {:?} {:?}", + // embedding_result.get(0), + // embedding_result.get(1) + // ); Ok(embedding_result) } diff --git a/src/db/embedding.rs b/src/db/embedding.rs index 436234a..45eb2ec 100644 --- a/src/db/embedding.rs +++ b/src/db/embedding.rs @@ -46,8 +46,11 @@ fn get_idx_db() -> Result { async fn create_idx_db(robot_id: &str) -> Result<()> { let config = SourceConfig::new(robot_id, "id", "vectors").with_metadata(vec!["intent_id"]); - let params = ParamsIVFPQ::default(); - let algorithm = IndexAlgorithm::IVFPQ(params); + // let params = ParamsIVFPQ::default(); + // let algorithm = IndexAlgorithm::IVFPQ(params); + let mut params = ParamsFlat::default(); + params.metric = oasysdb::types::distance::DistanceMetric::Cosine; + let algorithm = IndexAlgorithm::Flat(params); get_idx_db()? .async_create_index(robot_id, algorithm, config) .await?; @@ -104,7 +107,7 @@ pub(crate) async fn init_datasource() -> Result<()> { .acquire_timeout(Duration::from_secs(5)) .test_before_acquire(true); let conn_str = get_sqlite_url()?; - log::info!("Embedding database path: {}", &conn_str); + // log::info!("Embedding database path: {}", &conn_str); let pool = pool_ops.connect(conn_str.as_str()).await?; DATA_SOURCE .set(pool) diff --git a/src/intent/detector.rs b/src/intent/detector.rs index 32f44ab..8747ed3 100644 --- a/src/intent/detector.rs +++ b/src/intent/detector.rs @@ -5,17 +5,19 @@ use crate::result::{Error, Result}; pub(crate) async fn detect(robot_id: &str, s: &str) -> Result> { // let now = std::time::Instant::now(); let embedding = embedding(robot_id, s).await?; + // log::info!("Generate embedding cost {:?}", now.elapsed()); // let s = format!("{:?}", &embedding); // let regex = regex::Regex::new(r"\s").unwrap(); // log::info!("detect embedding {}", regex.replace_all(&s, "")); + // let now = std::time::Instant::now(); let search_vector: Vec = embedding.0.into(); let similarity_threshold = embedding.1; let result = embedding_db::search_idx_db(robot_id, search_vector.into())?; - // println!("inner intent detect {:?}", now.elapsed()); - if result.len() == 0 { + // log::info!("Searching vector took {:?}", now.elapsed()); + if !result.is_empty() { if let Some(record) = result.get(0) { log::info!("Record distance: {}", record.distance); - if similarity_threshold >= record.distance { + if (1f32 - record.distance) >= similarity_threshold { if let Some(data) = record.data.get("intent_id") { if let Some(metadata) = data { if let oasysdb::types::record::DataValue::String(s) = metadata { diff --git a/src/resources/assets/assets/index-BjYMHWgz.css b/src/resources/assets/assets/index-BjYMHWgz.css new file mode 100644 index 0000000..6dc8663 --- /dev/null +++ b/src/resources/assets/assets/index-BjYMHWgz.css @@ -0,0 +1 @@ +@charset "UTF-8";:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645,.045,.355,1);--el-transition-function-fast-bezier:cubic-bezier(.23,1,.32,1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px}:root{color-scheme:light;--el-color-primary:#409eff;--el-color-primary-light-3:#79bbff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-primary-dark-2:#337ecc;--el-color-success:#67c23a;--el-color-success-light-3:#95d475;--el-color-success-light-5:#b3e19d;--el-color-success-light-7:#d1edc4;--el-color-success-light-8:#e1f3d8;--el-color-success-light-9:#f0f9eb;--el-color-success-dark-2:#529b2e;--el-color-warning:#e6a23c;--el-color-warning-light-3:#eebe77;--el-color-warning-light-5:#f3d19e;--el-color-warning-light-7:#f8e3c5;--el-color-warning-light-8:#faecd8;--el-color-warning-light-9:#fdf6ec;--el-color-warning-dark-2:#b88230;--el-color-danger:#f56c6c;--el-color-danger-light-3:#f89898;--el-color-danger-light-5:#fab6b6;--el-color-danger-light-7:#fcd3d3;--el-color-danger-light-8:#fde2e2;--el-color-danger-light-9:#fef0f0;--el-color-danger-dark-2:#c45656;--el-color-error:#f56c6c;--el-color-error-light-3:#f89898;--el-color-error-light-5:#fab6b6;--el-color-error-light-7:#fcd3d3;--el-color-error-light-8:#fde2e2;--el-color-error-light-9:#fef0f0;--el-color-error-dark-2:#c45656;--el-color-info:#909399;--el-color-info-light-3:#b1b3b8;--el-color-info-light-5:#c8c9cc;--el-color-info-light-7:#dedfe0;--el-color-info-light-8:#e9e9eb;--el-color-info-light-9:#f4f4f5;--el-color-info-dark-2:#73767a;--el-bg-color:#ffffff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#ffffff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#ffffff;--el-box-shadow:0px 12px 32px 4px rgba(0,0,0,.04),0px 8px 20px rgba(0,0,0,.08);--el-box-shadow-light:0px 0px 12px rgba(0,0,0,.12);--el-box-shadow-lighter:0px 0px 6px rgba(0,0,0,.12);--el-box-shadow-dark:0px 16px 48px 16px rgba(0,0,0,.08),0px 12px 32px rgba(0,0,0,.12),0px 8px 16px -8px rgba(0,0,0,.16);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0,0,0,.8);--el-overlay-color-light:rgba(0,0,0,.7);--el-overlay-color-lighter:rgba(0,0,0,.5);--el-mask-color:rgba(255,255,255,.9);--el-mask-color-extra-light:rgba(255,255,255,.3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transform-origin:center top;transition:var(--el-transition-md-fade)}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transform-origin:center bottom;transition:var(--el-transition-md-fade)}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transform-origin:top left;transition:var(--el-transition-md-fade)}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-icon-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@-webkit-keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.el-icon{--color:inherit;align-items:center;display:inline-flex;height:1em;justify-content:center;line-height:1em;position:relative;width:1em;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}.el-row{box-sizing:border-box;display:flex;flex-wrap:wrap;position:relative}.el-row.is-justify-center{justify-content:center}.el-row.is-justify-end{justify-content:flex-end}.el-row.is-justify-space-between{justify-content:space-between}.el-row.is-justify-space-around{justify-content:space-around}.el-row.is-justify-space-evenly{justify-content:space-evenly}.el-row.is-align-top{align-items:flex-start}.el-row.is-align-middle{align-items:center}.el-row.is-align-bottom{align-items:flex-end}[class*=el-col-]{box-sizing:border-box}[class*=el-col-].is-guttered{display:block;min-height:1px}.el-col-0{flex:0 0 0%;max-width:0}.el-col-0,.el-col-0.is-guttered{display:none}.el-col-offset-0{margin-left:0}.el-col-pull-0{position:relative;right:0}.el-col-push-0{left:0;position:relative}.el-col-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-1,.el-col-1.is-guttered{display:block}.el-col-offset-1{margin-left:4.1666666667%}.el-col-pull-1{position:relative;right:4.1666666667%}.el-col-push-1{left:4.1666666667%;position:relative}.el-col-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-2,.el-col-2.is-guttered{display:block}.el-col-offset-2{margin-left:8.3333333333%}.el-col-pull-2{position:relative;right:8.3333333333%}.el-col-push-2{left:8.3333333333%;position:relative}.el-col-3{flex:0 0 12.5%;max-width:12.5%}.el-col-3,.el-col-3.is-guttered{display:block}.el-col-offset-3{margin-left:12.5%}.el-col-pull-3{position:relative;right:12.5%}.el-col-push-3{left:12.5%;position:relative}.el-col-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-4,.el-col-4.is-guttered{display:block}.el-col-offset-4{margin-left:16.6666666667%}.el-col-pull-4{position:relative;right:16.6666666667%}.el-col-push-4{left:16.6666666667%;position:relative}.el-col-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-5,.el-col-5.is-guttered{display:block}.el-col-offset-5{margin-left:20.8333333333%}.el-col-pull-5{position:relative;right:20.8333333333%}.el-col-push-5{left:20.8333333333%;position:relative}.el-col-6{flex:0 0 25%;max-width:25%}.el-col-6,.el-col-6.is-guttered{display:block}.el-col-offset-6{margin-left:25%}.el-col-pull-6{position:relative;right:25%}.el-col-push-6{left:25%;position:relative}.el-col-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-7,.el-col-7.is-guttered{display:block}.el-col-offset-7{margin-left:29.1666666667%}.el-col-pull-7{position:relative;right:29.1666666667%}.el-col-push-7{left:29.1666666667%;position:relative}.el-col-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-8,.el-col-8.is-guttered{display:block}.el-col-offset-8{margin-left:33.3333333333%}.el-col-pull-8{position:relative;right:33.3333333333%}.el-col-push-8{left:33.3333333333%;position:relative}.el-col-9{flex:0 0 37.5%;max-width:37.5%}.el-col-9,.el-col-9.is-guttered{display:block}.el-col-offset-9{margin-left:37.5%}.el-col-pull-9{position:relative;right:37.5%}.el-col-push-9{left:37.5%;position:relative}.el-col-10{flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-10,.el-col-10.is-guttered{display:block}.el-col-offset-10{margin-left:41.6666666667%}.el-col-pull-10{position:relative;right:41.6666666667%}.el-col-push-10{left:41.6666666667%;position:relative}.el-col-11{flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-11,.el-col-11.is-guttered{display:block}.el-col-offset-11{margin-left:45.8333333333%}.el-col-pull-11{position:relative;right:45.8333333333%}.el-col-push-11{left:45.8333333333%;position:relative}.el-col-12{flex:0 0 50%;max-width:50%}.el-col-12,.el-col-12.is-guttered{display:block}.el-col-offset-12{margin-left:50%}.el-col-pull-12{position:relative;right:50%}.el-col-push-12{left:50%;position:relative}.el-col-13{flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-13,.el-col-13.is-guttered{display:block}.el-col-offset-13{margin-left:54.1666666667%}.el-col-pull-13{position:relative;right:54.1666666667%}.el-col-push-13{left:54.1666666667%;position:relative}.el-col-14{flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-14,.el-col-14.is-guttered{display:block}.el-col-offset-14{margin-left:58.3333333333%}.el-col-pull-14{position:relative;right:58.3333333333%}.el-col-push-14{left:58.3333333333%;position:relative}.el-col-15{flex:0 0 62.5%;max-width:62.5%}.el-col-15,.el-col-15.is-guttered{display:block}.el-col-offset-15{margin-left:62.5%}.el-col-pull-15{position:relative;right:62.5%}.el-col-push-15{left:62.5%;position:relative}.el-col-16{flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-16,.el-col-16.is-guttered{display:block}.el-col-offset-16{margin-left:66.6666666667%}.el-col-pull-16{position:relative;right:66.6666666667%}.el-col-push-16{left:66.6666666667%;position:relative}.el-col-17{flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-17,.el-col-17.is-guttered{display:block}.el-col-offset-17{margin-left:70.8333333333%}.el-col-pull-17{position:relative;right:70.8333333333%}.el-col-push-17{left:70.8333333333%;position:relative}.el-col-18{flex:0 0 75%;max-width:75%}.el-col-18,.el-col-18.is-guttered{display:block}.el-col-offset-18{margin-left:75%}.el-col-pull-18{position:relative;right:75%}.el-col-push-18{left:75%;position:relative}.el-col-19{flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-19,.el-col-19.is-guttered{display:block}.el-col-offset-19{margin-left:79.1666666667%}.el-col-pull-19{position:relative;right:79.1666666667%}.el-col-push-19{left:79.1666666667%;position:relative}.el-col-20{flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-20,.el-col-20.is-guttered{display:block}.el-col-offset-20{margin-left:83.3333333333%}.el-col-pull-20{position:relative;right:83.3333333333%}.el-col-push-20{left:83.3333333333%;position:relative}.el-col-21{flex:0 0 87.5%;max-width:87.5%}.el-col-21,.el-col-21.is-guttered{display:block}.el-col-offset-21{margin-left:87.5%}.el-col-pull-21{position:relative;right:87.5%}.el-col-push-21{left:87.5%;position:relative}.el-col-22{flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-22,.el-col-22.is-guttered{display:block}.el-col-offset-22{margin-left:91.6666666667%}.el-col-pull-22{position:relative;right:91.6666666667%}.el-col-push-22{left:91.6666666667%;position:relative}.el-col-23{flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-23,.el-col-23.is-guttered{display:block}.el-col-offset-23{margin-left:95.8333333333%}.el-col-pull-23{position:relative;right:95.8333333333%}.el-col-push-23{left:95.8333333333%;position:relative}.el-col-24{flex:0 0 100%;max-width:100%}.el-col-24,.el-col-24.is-guttered{display:block}.el-col-offset-24{margin-left:100%}.el-col-pull-24{position:relative;right:100%}.el-col-push-24{left:100%;position:relative}@media only screen and (max-width:767px){.el-col-xs-0{display:none;flex:0 0 0%;max-width:0}.el-col-xs-0.is-guttered{display:none}.el-col-xs-offset-0{margin-left:0}.el-col-xs-pull-0{position:relative;right:0}.el-col-xs-push-0{left:0;position:relative}.el-col-xs-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-xs-1,.el-col-xs-1.is-guttered{display:block}.el-col-xs-offset-1{margin-left:4.1666666667%}.el-col-xs-pull-1{position:relative;right:4.1666666667%}.el-col-xs-push-1{left:4.1666666667%;position:relative}.el-col-xs-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-xs-2,.el-col-xs-2.is-guttered{display:block}.el-col-xs-offset-2{margin-left:8.3333333333%}.el-col-xs-pull-2{position:relative;right:8.3333333333%}.el-col-xs-push-2{left:8.3333333333%;position:relative}.el-col-xs-3{flex:0 0 12.5%;max-width:12.5%}.el-col-xs-3,.el-col-xs-3.is-guttered{display:block}.el-col-xs-offset-3{margin-left:12.5%}.el-col-xs-pull-3{position:relative;right:12.5%}.el-col-xs-push-3{left:12.5%;position:relative}.el-col-xs-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-xs-4,.el-col-xs-4.is-guttered{display:block}.el-col-xs-offset-4{margin-left:16.6666666667%}.el-col-xs-pull-4{position:relative;right:16.6666666667%}.el-col-xs-push-4{left:16.6666666667%;position:relative}.el-col-xs-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-xs-5,.el-col-xs-5.is-guttered{display:block}.el-col-xs-offset-5{margin-left:20.8333333333%}.el-col-xs-pull-5{position:relative;right:20.8333333333%}.el-col-xs-push-5{left:20.8333333333%;position:relative}.el-col-xs-6{flex:0 0 25%;max-width:25%}.el-col-xs-6,.el-col-xs-6.is-guttered{display:block}.el-col-xs-offset-6{margin-left:25%}.el-col-xs-pull-6{position:relative;right:25%}.el-col-xs-push-6{left:25%;position:relative}.el-col-xs-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-xs-7,.el-col-xs-7.is-guttered{display:block}.el-col-xs-offset-7{margin-left:29.1666666667%}.el-col-xs-pull-7{position:relative;right:29.1666666667%}.el-col-xs-push-7{left:29.1666666667%;position:relative}.el-col-xs-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-xs-8,.el-col-xs-8.is-guttered{display:block}.el-col-xs-offset-8{margin-left:33.3333333333%}.el-col-xs-pull-8{position:relative;right:33.3333333333%}.el-col-xs-push-8{left:33.3333333333%;position:relative}.el-col-xs-9{flex:0 0 37.5%;max-width:37.5%}.el-col-xs-9,.el-col-xs-9.is-guttered{display:block}.el-col-xs-offset-9{margin-left:37.5%}.el-col-xs-pull-9{position:relative;right:37.5%}.el-col-xs-push-9{left:37.5%;position:relative}.el-col-xs-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-xs-10.is-guttered{display:block}.el-col-xs-offset-10{margin-left:41.6666666667%}.el-col-xs-pull-10{position:relative;right:41.6666666667%}.el-col-xs-push-10{left:41.6666666667%;position:relative}.el-col-xs-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-xs-11.is-guttered{display:block}.el-col-xs-offset-11{margin-left:45.8333333333%}.el-col-xs-pull-11{position:relative;right:45.8333333333%}.el-col-xs-push-11{left:45.8333333333%;position:relative}.el-col-xs-12{display:block;flex:0 0 50%;max-width:50%}.el-col-xs-12.is-guttered{display:block}.el-col-xs-offset-12{margin-left:50%}.el-col-xs-pull-12{position:relative;right:50%}.el-col-xs-push-12{left:50%;position:relative}.el-col-xs-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-xs-13.is-guttered{display:block}.el-col-xs-offset-13{margin-left:54.1666666667%}.el-col-xs-pull-13{position:relative;right:54.1666666667%}.el-col-xs-push-13{left:54.1666666667%;position:relative}.el-col-xs-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-xs-14.is-guttered{display:block}.el-col-xs-offset-14{margin-left:58.3333333333%}.el-col-xs-pull-14{position:relative;right:58.3333333333%}.el-col-xs-push-14{left:58.3333333333%;position:relative}.el-col-xs-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-xs-15.is-guttered{display:block}.el-col-xs-offset-15{margin-left:62.5%}.el-col-xs-pull-15{position:relative;right:62.5%}.el-col-xs-push-15{left:62.5%;position:relative}.el-col-xs-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-xs-16.is-guttered{display:block}.el-col-xs-offset-16{margin-left:66.6666666667%}.el-col-xs-pull-16{position:relative;right:66.6666666667%}.el-col-xs-push-16{left:66.6666666667%;position:relative}.el-col-xs-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-xs-17.is-guttered{display:block}.el-col-xs-offset-17{margin-left:70.8333333333%}.el-col-xs-pull-17{position:relative;right:70.8333333333%}.el-col-xs-push-17{left:70.8333333333%;position:relative}.el-col-xs-18{display:block;flex:0 0 75%;max-width:75%}.el-col-xs-18.is-guttered{display:block}.el-col-xs-offset-18{margin-left:75%}.el-col-xs-pull-18{position:relative;right:75%}.el-col-xs-push-18{left:75%;position:relative}.el-col-xs-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-xs-19.is-guttered{display:block}.el-col-xs-offset-19{margin-left:79.1666666667%}.el-col-xs-pull-19{position:relative;right:79.1666666667%}.el-col-xs-push-19{left:79.1666666667%;position:relative}.el-col-xs-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-xs-20.is-guttered{display:block}.el-col-xs-offset-20{margin-left:83.3333333333%}.el-col-xs-pull-20{position:relative;right:83.3333333333%}.el-col-xs-push-20{left:83.3333333333%;position:relative}.el-col-xs-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-xs-21.is-guttered{display:block}.el-col-xs-offset-21{margin-left:87.5%}.el-col-xs-pull-21{position:relative;right:87.5%}.el-col-xs-push-21{left:87.5%;position:relative}.el-col-xs-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-xs-22.is-guttered{display:block}.el-col-xs-offset-22{margin-left:91.6666666667%}.el-col-xs-pull-22{position:relative;right:91.6666666667%}.el-col-xs-push-22{left:91.6666666667%;position:relative}.el-col-xs-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-xs-23.is-guttered{display:block}.el-col-xs-offset-23{margin-left:95.8333333333%}.el-col-xs-pull-23{position:relative;right:95.8333333333%}.el-col-xs-push-23{left:95.8333333333%;position:relative}.el-col-xs-24{display:block;flex:0 0 100%;max-width:100%}.el-col-xs-24.is-guttered{display:block}.el-col-xs-offset-24{margin-left:100%}.el-col-xs-pull-24{position:relative;right:100%}.el-col-xs-push-24{left:100%;position:relative}}@media only screen and (min-width:768px){.el-col-sm-0{display:none;flex:0 0 0%;max-width:0}.el-col-sm-0.is-guttered{display:none}.el-col-sm-offset-0{margin-left:0}.el-col-sm-pull-0{position:relative;right:0}.el-col-sm-push-0{left:0;position:relative}.el-col-sm-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-sm-1,.el-col-sm-1.is-guttered{display:block}.el-col-sm-offset-1{margin-left:4.1666666667%}.el-col-sm-pull-1{position:relative;right:4.1666666667%}.el-col-sm-push-1{left:4.1666666667%;position:relative}.el-col-sm-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-sm-2,.el-col-sm-2.is-guttered{display:block}.el-col-sm-offset-2{margin-left:8.3333333333%}.el-col-sm-pull-2{position:relative;right:8.3333333333%}.el-col-sm-push-2{left:8.3333333333%;position:relative}.el-col-sm-3{flex:0 0 12.5%;max-width:12.5%}.el-col-sm-3,.el-col-sm-3.is-guttered{display:block}.el-col-sm-offset-3{margin-left:12.5%}.el-col-sm-pull-3{position:relative;right:12.5%}.el-col-sm-push-3{left:12.5%;position:relative}.el-col-sm-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-sm-4,.el-col-sm-4.is-guttered{display:block}.el-col-sm-offset-4{margin-left:16.6666666667%}.el-col-sm-pull-4{position:relative;right:16.6666666667%}.el-col-sm-push-4{left:16.6666666667%;position:relative}.el-col-sm-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-sm-5,.el-col-sm-5.is-guttered{display:block}.el-col-sm-offset-5{margin-left:20.8333333333%}.el-col-sm-pull-5{position:relative;right:20.8333333333%}.el-col-sm-push-5{left:20.8333333333%;position:relative}.el-col-sm-6{flex:0 0 25%;max-width:25%}.el-col-sm-6,.el-col-sm-6.is-guttered{display:block}.el-col-sm-offset-6{margin-left:25%}.el-col-sm-pull-6{position:relative;right:25%}.el-col-sm-push-6{left:25%;position:relative}.el-col-sm-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-sm-7,.el-col-sm-7.is-guttered{display:block}.el-col-sm-offset-7{margin-left:29.1666666667%}.el-col-sm-pull-7{position:relative;right:29.1666666667%}.el-col-sm-push-7{left:29.1666666667%;position:relative}.el-col-sm-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-sm-8,.el-col-sm-8.is-guttered{display:block}.el-col-sm-offset-8{margin-left:33.3333333333%}.el-col-sm-pull-8{position:relative;right:33.3333333333%}.el-col-sm-push-8{left:33.3333333333%;position:relative}.el-col-sm-9{flex:0 0 37.5%;max-width:37.5%}.el-col-sm-9,.el-col-sm-9.is-guttered{display:block}.el-col-sm-offset-9{margin-left:37.5%}.el-col-sm-pull-9{position:relative;right:37.5%}.el-col-sm-push-9{left:37.5%;position:relative}.el-col-sm-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-sm-10.is-guttered{display:block}.el-col-sm-offset-10{margin-left:41.6666666667%}.el-col-sm-pull-10{position:relative;right:41.6666666667%}.el-col-sm-push-10{left:41.6666666667%;position:relative}.el-col-sm-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-sm-11.is-guttered{display:block}.el-col-sm-offset-11{margin-left:45.8333333333%}.el-col-sm-pull-11{position:relative;right:45.8333333333%}.el-col-sm-push-11{left:45.8333333333%;position:relative}.el-col-sm-12{display:block;flex:0 0 50%;max-width:50%}.el-col-sm-12.is-guttered{display:block}.el-col-sm-offset-12{margin-left:50%}.el-col-sm-pull-12{position:relative;right:50%}.el-col-sm-push-12{left:50%;position:relative}.el-col-sm-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-sm-13.is-guttered{display:block}.el-col-sm-offset-13{margin-left:54.1666666667%}.el-col-sm-pull-13{position:relative;right:54.1666666667%}.el-col-sm-push-13{left:54.1666666667%;position:relative}.el-col-sm-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-sm-14.is-guttered{display:block}.el-col-sm-offset-14{margin-left:58.3333333333%}.el-col-sm-pull-14{position:relative;right:58.3333333333%}.el-col-sm-push-14{left:58.3333333333%;position:relative}.el-col-sm-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-sm-15.is-guttered{display:block}.el-col-sm-offset-15{margin-left:62.5%}.el-col-sm-pull-15{position:relative;right:62.5%}.el-col-sm-push-15{left:62.5%;position:relative}.el-col-sm-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-sm-16.is-guttered{display:block}.el-col-sm-offset-16{margin-left:66.6666666667%}.el-col-sm-pull-16{position:relative;right:66.6666666667%}.el-col-sm-push-16{left:66.6666666667%;position:relative}.el-col-sm-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-sm-17.is-guttered{display:block}.el-col-sm-offset-17{margin-left:70.8333333333%}.el-col-sm-pull-17{position:relative;right:70.8333333333%}.el-col-sm-push-17{left:70.8333333333%;position:relative}.el-col-sm-18{display:block;flex:0 0 75%;max-width:75%}.el-col-sm-18.is-guttered{display:block}.el-col-sm-offset-18{margin-left:75%}.el-col-sm-pull-18{position:relative;right:75%}.el-col-sm-push-18{left:75%;position:relative}.el-col-sm-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-sm-19.is-guttered{display:block}.el-col-sm-offset-19{margin-left:79.1666666667%}.el-col-sm-pull-19{position:relative;right:79.1666666667%}.el-col-sm-push-19{left:79.1666666667%;position:relative}.el-col-sm-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-sm-20.is-guttered{display:block}.el-col-sm-offset-20{margin-left:83.3333333333%}.el-col-sm-pull-20{position:relative;right:83.3333333333%}.el-col-sm-push-20{left:83.3333333333%;position:relative}.el-col-sm-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-sm-21.is-guttered{display:block}.el-col-sm-offset-21{margin-left:87.5%}.el-col-sm-pull-21{position:relative;right:87.5%}.el-col-sm-push-21{left:87.5%;position:relative}.el-col-sm-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-sm-22.is-guttered{display:block}.el-col-sm-offset-22{margin-left:91.6666666667%}.el-col-sm-pull-22{position:relative;right:91.6666666667%}.el-col-sm-push-22{left:91.6666666667%;position:relative}.el-col-sm-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-sm-23.is-guttered{display:block}.el-col-sm-offset-23{margin-left:95.8333333333%}.el-col-sm-pull-23{position:relative;right:95.8333333333%}.el-col-sm-push-23{left:95.8333333333%;position:relative}.el-col-sm-24{display:block;flex:0 0 100%;max-width:100%}.el-col-sm-24.is-guttered{display:block}.el-col-sm-offset-24{margin-left:100%}.el-col-sm-pull-24{position:relative;right:100%}.el-col-sm-push-24{left:100%;position:relative}}@media only screen and (min-width:992px){.el-col-md-0{display:none;flex:0 0 0%;max-width:0}.el-col-md-0.is-guttered{display:none}.el-col-md-offset-0{margin-left:0}.el-col-md-pull-0{position:relative;right:0}.el-col-md-push-0{left:0;position:relative}.el-col-md-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-md-1,.el-col-md-1.is-guttered{display:block}.el-col-md-offset-1{margin-left:4.1666666667%}.el-col-md-pull-1{position:relative;right:4.1666666667%}.el-col-md-push-1{left:4.1666666667%;position:relative}.el-col-md-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-md-2,.el-col-md-2.is-guttered{display:block}.el-col-md-offset-2{margin-left:8.3333333333%}.el-col-md-pull-2{position:relative;right:8.3333333333%}.el-col-md-push-2{left:8.3333333333%;position:relative}.el-col-md-3{flex:0 0 12.5%;max-width:12.5%}.el-col-md-3,.el-col-md-3.is-guttered{display:block}.el-col-md-offset-3{margin-left:12.5%}.el-col-md-pull-3{position:relative;right:12.5%}.el-col-md-push-3{left:12.5%;position:relative}.el-col-md-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-md-4,.el-col-md-4.is-guttered{display:block}.el-col-md-offset-4{margin-left:16.6666666667%}.el-col-md-pull-4{position:relative;right:16.6666666667%}.el-col-md-push-4{left:16.6666666667%;position:relative}.el-col-md-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-md-5,.el-col-md-5.is-guttered{display:block}.el-col-md-offset-5{margin-left:20.8333333333%}.el-col-md-pull-5{position:relative;right:20.8333333333%}.el-col-md-push-5{left:20.8333333333%;position:relative}.el-col-md-6{flex:0 0 25%;max-width:25%}.el-col-md-6,.el-col-md-6.is-guttered{display:block}.el-col-md-offset-6{margin-left:25%}.el-col-md-pull-6{position:relative;right:25%}.el-col-md-push-6{left:25%;position:relative}.el-col-md-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-md-7,.el-col-md-7.is-guttered{display:block}.el-col-md-offset-7{margin-left:29.1666666667%}.el-col-md-pull-7{position:relative;right:29.1666666667%}.el-col-md-push-7{left:29.1666666667%;position:relative}.el-col-md-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-md-8,.el-col-md-8.is-guttered{display:block}.el-col-md-offset-8{margin-left:33.3333333333%}.el-col-md-pull-8{position:relative;right:33.3333333333%}.el-col-md-push-8{left:33.3333333333%;position:relative}.el-col-md-9{flex:0 0 37.5%;max-width:37.5%}.el-col-md-9,.el-col-md-9.is-guttered{display:block}.el-col-md-offset-9{margin-left:37.5%}.el-col-md-pull-9{position:relative;right:37.5%}.el-col-md-push-9{left:37.5%;position:relative}.el-col-md-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-md-10.is-guttered{display:block}.el-col-md-offset-10{margin-left:41.6666666667%}.el-col-md-pull-10{position:relative;right:41.6666666667%}.el-col-md-push-10{left:41.6666666667%;position:relative}.el-col-md-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-md-11.is-guttered{display:block}.el-col-md-offset-11{margin-left:45.8333333333%}.el-col-md-pull-11{position:relative;right:45.8333333333%}.el-col-md-push-11{left:45.8333333333%;position:relative}.el-col-md-12{display:block;flex:0 0 50%;max-width:50%}.el-col-md-12.is-guttered{display:block}.el-col-md-offset-12{margin-left:50%}.el-col-md-pull-12{position:relative;right:50%}.el-col-md-push-12{left:50%;position:relative}.el-col-md-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-md-13.is-guttered{display:block}.el-col-md-offset-13{margin-left:54.1666666667%}.el-col-md-pull-13{position:relative;right:54.1666666667%}.el-col-md-push-13{left:54.1666666667%;position:relative}.el-col-md-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-md-14.is-guttered{display:block}.el-col-md-offset-14{margin-left:58.3333333333%}.el-col-md-pull-14{position:relative;right:58.3333333333%}.el-col-md-push-14{left:58.3333333333%;position:relative}.el-col-md-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-md-15.is-guttered{display:block}.el-col-md-offset-15{margin-left:62.5%}.el-col-md-pull-15{position:relative;right:62.5%}.el-col-md-push-15{left:62.5%;position:relative}.el-col-md-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-md-16.is-guttered{display:block}.el-col-md-offset-16{margin-left:66.6666666667%}.el-col-md-pull-16{position:relative;right:66.6666666667%}.el-col-md-push-16{left:66.6666666667%;position:relative}.el-col-md-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-md-17.is-guttered{display:block}.el-col-md-offset-17{margin-left:70.8333333333%}.el-col-md-pull-17{position:relative;right:70.8333333333%}.el-col-md-push-17{left:70.8333333333%;position:relative}.el-col-md-18{display:block;flex:0 0 75%;max-width:75%}.el-col-md-18.is-guttered{display:block}.el-col-md-offset-18{margin-left:75%}.el-col-md-pull-18{position:relative;right:75%}.el-col-md-push-18{left:75%;position:relative}.el-col-md-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-md-19.is-guttered{display:block}.el-col-md-offset-19{margin-left:79.1666666667%}.el-col-md-pull-19{position:relative;right:79.1666666667%}.el-col-md-push-19{left:79.1666666667%;position:relative}.el-col-md-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-md-20.is-guttered{display:block}.el-col-md-offset-20{margin-left:83.3333333333%}.el-col-md-pull-20{position:relative;right:83.3333333333%}.el-col-md-push-20{left:83.3333333333%;position:relative}.el-col-md-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-md-21.is-guttered{display:block}.el-col-md-offset-21{margin-left:87.5%}.el-col-md-pull-21{position:relative;right:87.5%}.el-col-md-push-21{left:87.5%;position:relative}.el-col-md-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-md-22.is-guttered{display:block}.el-col-md-offset-22{margin-left:91.6666666667%}.el-col-md-pull-22{position:relative;right:91.6666666667%}.el-col-md-push-22{left:91.6666666667%;position:relative}.el-col-md-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-md-23.is-guttered{display:block}.el-col-md-offset-23{margin-left:95.8333333333%}.el-col-md-pull-23{position:relative;right:95.8333333333%}.el-col-md-push-23{left:95.8333333333%;position:relative}.el-col-md-24{display:block;flex:0 0 100%;max-width:100%}.el-col-md-24.is-guttered{display:block}.el-col-md-offset-24{margin-left:100%}.el-col-md-pull-24{position:relative;right:100%}.el-col-md-push-24{left:100%;position:relative}}@media only screen and (min-width:1200px){.el-col-lg-0{display:none;flex:0 0 0%;max-width:0}.el-col-lg-0.is-guttered{display:none}.el-col-lg-offset-0{margin-left:0}.el-col-lg-pull-0{position:relative;right:0}.el-col-lg-push-0{left:0;position:relative}.el-col-lg-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-lg-1,.el-col-lg-1.is-guttered{display:block}.el-col-lg-offset-1{margin-left:4.1666666667%}.el-col-lg-pull-1{position:relative;right:4.1666666667%}.el-col-lg-push-1{left:4.1666666667%;position:relative}.el-col-lg-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-lg-2,.el-col-lg-2.is-guttered{display:block}.el-col-lg-offset-2{margin-left:8.3333333333%}.el-col-lg-pull-2{position:relative;right:8.3333333333%}.el-col-lg-push-2{left:8.3333333333%;position:relative}.el-col-lg-3{flex:0 0 12.5%;max-width:12.5%}.el-col-lg-3,.el-col-lg-3.is-guttered{display:block}.el-col-lg-offset-3{margin-left:12.5%}.el-col-lg-pull-3{position:relative;right:12.5%}.el-col-lg-push-3{left:12.5%;position:relative}.el-col-lg-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-lg-4,.el-col-lg-4.is-guttered{display:block}.el-col-lg-offset-4{margin-left:16.6666666667%}.el-col-lg-pull-4{position:relative;right:16.6666666667%}.el-col-lg-push-4{left:16.6666666667%;position:relative}.el-col-lg-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-lg-5,.el-col-lg-5.is-guttered{display:block}.el-col-lg-offset-5{margin-left:20.8333333333%}.el-col-lg-pull-5{position:relative;right:20.8333333333%}.el-col-lg-push-5{left:20.8333333333%;position:relative}.el-col-lg-6{flex:0 0 25%;max-width:25%}.el-col-lg-6,.el-col-lg-6.is-guttered{display:block}.el-col-lg-offset-6{margin-left:25%}.el-col-lg-pull-6{position:relative;right:25%}.el-col-lg-push-6{left:25%;position:relative}.el-col-lg-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-lg-7,.el-col-lg-7.is-guttered{display:block}.el-col-lg-offset-7{margin-left:29.1666666667%}.el-col-lg-pull-7{position:relative;right:29.1666666667%}.el-col-lg-push-7{left:29.1666666667%;position:relative}.el-col-lg-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-lg-8,.el-col-lg-8.is-guttered{display:block}.el-col-lg-offset-8{margin-left:33.3333333333%}.el-col-lg-pull-8{position:relative;right:33.3333333333%}.el-col-lg-push-8{left:33.3333333333%;position:relative}.el-col-lg-9{flex:0 0 37.5%;max-width:37.5%}.el-col-lg-9,.el-col-lg-9.is-guttered{display:block}.el-col-lg-offset-9{margin-left:37.5%}.el-col-lg-pull-9{position:relative;right:37.5%}.el-col-lg-push-9{left:37.5%;position:relative}.el-col-lg-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-lg-10.is-guttered{display:block}.el-col-lg-offset-10{margin-left:41.6666666667%}.el-col-lg-pull-10{position:relative;right:41.6666666667%}.el-col-lg-push-10{left:41.6666666667%;position:relative}.el-col-lg-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-lg-11.is-guttered{display:block}.el-col-lg-offset-11{margin-left:45.8333333333%}.el-col-lg-pull-11{position:relative;right:45.8333333333%}.el-col-lg-push-11{left:45.8333333333%;position:relative}.el-col-lg-12{display:block;flex:0 0 50%;max-width:50%}.el-col-lg-12.is-guttered{display:block}.el-col-lg-offset-12{margin-left:50%}.el-col-lg-pull-12{position:relative;right:50%}.el-col-lg-push-12{left:50%;position:relative}.el-col-lg-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-lg-13.is-guttered{display:block}.el-col-lg-offset-13{margin-left:54.1666666667%}.el-col-lg-pull-13{position:relative;right:54.1666666667%}.el-col-lg-push-13{left:54.1666666667%;position:relative}.el-col-lg-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-lg-14.is-guttered{display:block}.el-col-lg-offset-14{margin-left:58.3333333333%}.el-col-lg-pull-14{position:relative;right:58.3333333333%}.el-col-lg-push-14{left:58.3333333333%;position:relative}.el-col-lg-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-lg-15.is-guttered{display:block}.el-col-lg-offset-15{margin-left:62.5%}.el-col-lg-pull-15{position:relative;right:62.5%}.el-col-lg-push-15{left:62.5%;position:relative}.el-col-lg-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-lg-16.is-guttered{display:block}.el-col-lg-offset-16{margin-left:66.6666666667%}.el-col-lg-pull-16{position:relative;right:66.6666666667%}.el-col-lg-push-16{left:66.6666666667%;position:relative}.el-col-lg-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-lg-17.is-guttered{display:block}.el-col-lg-offset-17{margin-left:70.8333333333%}.el-col-lg-pull-17{position:relative;right:70.8333333333%}.el-col-lg-push-17{left:70.8333333333%;position:relative}.el-col-lg-18{display:block;flex:0 0 75%;max-width:75%}.el-col-lg-18.is-guttered{display:block}.el-col-lg-offset-18{margin-left:75%}.el-col-lg-pull-18{position:relative;right:75%}.el-col-lg-push-18{left:75%;position:relative}.el-col-lg-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-lg-19.is-guttered{display:block}.el-col-lg-offset-19{margin-left:79.1666666667%}.el-col-lg-pull-19{position:relative;right:79.1666666667%}.el-col-lg-push-19{left:79.1666666667%;position:relative}.el-col-lg-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-lg-20.is-guttered{display:block}.el-col-lg-offset-20{margin-left:83.3333333333%}.el-col-lg-pull-20{position:relative;right:83.3333333333%}.el-col-lg-push-20{left:83.3333333333%;position:relative}.el-col-lg-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-lg-21.is-guttered{display:block}.el-col-lg-offset-21{margin-left:87.5%}.el-col-lg-pull-21{position:relative;right:87.5%}.el-col-lg-push-21{left:87.5%;position:relative}.el-col-lg-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-lg-22.is-guttered{display:block}.el-col-lg-offset-22{margin-left:91.6666666667%}.el-col-lg-pull-22{position:relative;right:91.6666666667%}.el-col-lg-push-22{left:91.6666666667%;position:relative}.el-col-lg-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-lg-23.is-guttered{display:block}.el-col-lg-offset-23{margin-left:95.8333333333%}.el-col-lg-pull-23{position:relative;right:95.8333333333%}.el-col-lg-push-23{left:95.8333333333%;position:relative}.el-col-lg-24{display:block;flex:0 0 100%;max-width:100%}.el-col-lg-24.is-guttered{display:block}.el-col-lg-offset-24{margin-left:100%}.el-col-lg-pull-24{position:relative;right:100%}.el-col-lg-push-24{left:100%;position:relative}}@media only screen and (min-width:1920px){.el-col-xl-0{display:none;flex:0 0 0%;max-width:0}.el-col-xl-0.is-guttered{display:none}.el-col-xl-offset-0{margin-left:0}.el-col-xl-pull-0{position:relative;right:0}.el-col-xl-push-0{left:0;position:relative}.el-col-xl-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-xl-1,.el-col-xl-1.is-guttered{display:block}.el-col-xl-offset-1{margin-left:4.1666666667%}.el-col-xl-pull-1{position:relative;right:4.1666666667%}.el-col-xl-push-1{left:4.1666666667%;position:relative}.el-col-xl-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-xl-2,.el-col-xl-2.is-guttered{display:block}.el-col-xl-offset-2{margin-left:8.3333333333%}.el-col-xl-pull-2{position:relative;right:8.3333333333%}.el-col-xl-push-2{left:8.3333333333%;position:relative}.el-col-xl-3{flex:0 0 12.5%;max-width:12.5%}.el-col-xl-3,.el-col-xl-3.is-guttered{display:block}.el-col-xl-offset-3{margin-left:12.5%}.el-col-xl-pull-3{position:relative;right:12.5%}.el-col-xl-push-3{left:12.5%;position:relative}.el-col-xl-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-xl-4,.el-col-xl-4.is-guttered{display:block}.el-col-xl-offset-4{margin-left:16.6666666667%}.el-col-xl-pull-4{position:relative;right:16.6666666667%}.el-col-xl-push-4{left:16.6666666667%;position:relative}.el-col-xl-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-xl-5,.el-col-xl-5.is-guttered{display:block}.el-col-xl-offset-5{margin-left:20.8333333333%}.el-col-xl-pull-5{position:relative;right:20.8333333333%}.el-col-xl-push-5{left:20.8333333333%;position:relative}.el-col-xl-6{flex:0 0 25%;max-width:25%}.el-col-xl-6,.el-col-xl-6.is-guttered{display:block}.el-col-xl-offset-6{margin-left:25%}.el-col-xl-pull-6{position:relative;right:25%}.el-col-xl-push-6{left:25%;position:relative}.el-col-xl-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-xl-7,.el-col-xl-7.is-guttered{display:block}.el-col-xl-offset-7{margin-left:29.1666666667%}.el-col-xl-pull-7{position:relative;right:29.1666666667%}.el-col-xl-push-7{left:29.1666666667%;position:relative}.el-col-xl-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-xl-8,.el-col-xl-8.is-guttered{display:block}.el-col-xl-offset-8{margin-left:33.3333333333%}.el-col-xl-pull-8{position:relative;right:33.3333333333%}.el-col-xl-push-8{left:33.3333333333%;position:relative}.el-col-xl-9{flex:0 0 37.5%;max-width:37.5%}.el-col-xl-9,.el-col-xl-9.is-guttered{display:block}.el-col-xl-offset-9{margin-left:37.5%}.el-col-xl-pull-9{position:relative;right:37.5%}.el-col-xl-push-9{left:37.5%;position:relative}.el-col-xl-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-xl-10.is-guttered{display:block}.el-col-xl-offset-10{margin-left:41.6666666667%}.el-col-xl-pull-10{position:relative;right:41.6666666667%}.el-col-xl-push-10{left:41.6666666667%;position:relative}.el-col-xl-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-xl-11.is-guttered{display:block}.el-col-xl-offset-11{margin-left:45.8333333333%}.el-col-xl-pull-11{position:relative;right:45.8333333333%}.el-col-xl-push-11{left:45.8333333333%;position:relative}.el-col-xl-12{display:block;flex:0 0 50%;max-width:50%}.el-col-xl-12.is-guttered{display:block}.el-col-xl-offset-12{margin-left:50%}.el-col-xl-pull-12{position:relative;right:50%}.el-col-xl-push-12{left:50%;position:relative}.el-col-xl-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-xl-13.is-guttered{display:block}.el-col-xl-offset-13{margin-left:54.1666666667%}.el-col-xl-pull-13{position:relative;right:54.1666666667%}.el-col-xl-push-13{left:54.1666666667%;position:relative}.el-col-xl-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-xl-14.is-guttered{display:block}.el-col-xl-offset-14{margin-left:58.3333333333%}.el-col-xl-pull-14{position:relative;right:58.3333333333%}.el-col-xl-push-14{left:58.3333333333%;position:relative}.el-col-xl-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-xl-15.is-guttered{display:block}.el-col-xl-offset-15{margin-left:62.5%}.el-col-xl-pull-15{position:relative;right:62.5%}.el-col-xl-push-15{left:62.5%;position:relative}.el-col-xl-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-xl-16.is-guttered{display:block}.el-col-xl-offset-16{margin-left:66.6666666667%}.el-col-xl-pull-16{position:relative;right:66.6666666667%}.el-col-xl-push-16{left:66.6666666667%;position:relative}.el-col-xl-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-xl-17.is-guttered{display:block}.el-col-xl-offset-17{margin-left:70.8333333333%}.el-col-xl-pull-17{position:relative;right:70.8333333333%}.el-col-xl-push-17{left:70.8333333333%;position:relative}.el-col-xl-18{display:block;flex:0 0 75%;max-width:75%}.el-col-xl-18.is-guttered{display:block}.el-col-xl-offset-18{margin-left:75%}.el-col-xl-pull-18{position:relative;right:75%}.el-col-xl-push-18{left:75%;position:relative}.el-col-xl-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-xl-19.is-guttered{display:block}.el-col-xl-offset-19{margin-left:79.1666666667%}.el-col-xl-pull-19{position:relative;right:79.1666666667%}.el-col-xl-push-19{left:79.1666666667%;position:relative}.el-col-xl-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-xl-20.is-guttered{display:block}.el-col-xl-offset-20{margin-left:83.3333333333%}.el-col-xl-pull-20{position:relative;right:83.3333333333%}.el-col-xl-push-20{left:83.3333333333%;position:relative}.el-col-xl-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-xl-21.is-guttered{display:block}.el-col-xl-offset-21{margin-left:87.5%}.el-col-xl-pull-21{position:relative;right:87.5%}.el-col-xl-push-21{left:87.5%;position:relative}.el-col-xl-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-xl-22.is-guttered{display:block}.el-col-xl-offset-22{margin-left:91.6666666667%}.el-col-xl-pull-22{position:relative;right:91.6666666667%}.el-col-xl-push-22{left:91.6666666667%;position:relative}.el-col-xl-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-xl-23.is-guttered{display:block}.el-col-xl-offset-23{margin-left:95.8333333333%}.el-col-xl-pull-23{position:relative;right:95.8333333333%}.el-col-xl-push-23{left:95.8333333333%;position:relative}.el-col-xl-24{display:block;flex:0 0 100%;max-width:100%}.el-col-xl-24.is-guttered{display:block}.el-col-xl-offset-24{margin-left:100%}.el-col-xl-pull-24{position:relative;right:100%}.el-col-xl-push-24{left:100%;position:relative}}.el-form{--el-form-label-font-size:var(--el-font-size-base);--el-form-inline-content-width:220px}.el-form--inline .el-form-item{display:inline-flex;margin-right:32px;vertical-align:middle}.el-form--inline.el-form--label-top{display:flex;flex-wrap:wrap}.el-form--inline.el-form--label-top .el-form-item{display:block}.el-form-item{display:flex;--font-size:14px;margin-bottom:18px}.el-form-item .el-form-item{margin-bottom:0}.el-form-item .el-input__validateIcon{display:none}.el-form-item--large{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:22px}.el-form-item--large .el-form-item__label{height:40px;line-height:40px}.el-form-item--large .el-form-item__content{line-height:40px}.el-form-item--large .el-form-item__error{padding-top:4px}.el-form-item--default{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--default .el-form-item__label{height:32px;line-height:32px}.el-form-item--default .el-form-item__content{line-height:32px}.el-form-item--default .el-form-item__error{padding-top:2px}.el-form-item--small{--font-size:12px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--small .el-form-item__label{height:24px;line-height:24px}.el-form-item--small .el-form-item__content{line-height:24px}.el-form-item--small .el-form-item__error{padding-top:2px}.el-form-item--label-left .el-form-item__label{justify-content:flex-start}.el-form-item--label-top{display:block}.el-form-item--label-top .el-form-item__label{display:block;height:auto;line-height:22px;margin-bottom:8px;text-align:left}.el-form-item__label-wrap{display:flex}.el-form-item__label{align-items:flex-start;box-sizing:border-box;color:var(--el-text-color-regular);display:inline-flex;flex:0 0 auto;font-size:var(--el-form-label-font-size);height:32px;justify-content:flex-end;line-height:32px;padding:0 12px 0 0}.el-form-item__content{align-items:center;display:flex;flex:1;flex-wrap:wrap;font-size:var(--font-size);line-height:32px;min-width:0;position:relative}.el-form-item__content .el-input-group{vertical-align:top}.el-form-item__error{color:var(--el-color-danger);font-size:12px;left:0;line-height:1;padding-top:2px;position:absolute;top:100%}.el-form-item__error--inline{display:inline-block;left:auto;margin-left:10px;position:relative;top:auto}.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label-wrap>.el-form-item__label:before,.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label:before{color:var(--el-color-danger);content:"*";margin-right:4px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label-wrap>.el-form-item__label:after,.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label:after{color:var(--el-color-danger);content:"*";margin-left:4px}.el-form-item.is-error .el-input__wrapper,.el-form-item.is-error .el-input__wrapper.is-focus,.el-form-item.is-error .el-input__wrapper:focus,.el-form-item.is-error .el-input__wrapper:hover,.el-form-item.is-error .el-select__wrapper,.el-form-item.is-error .el-select__wrapper.is-focus,.el-form-item.is-error .el-select__wrapper:focus,.el-form-item.is-error .el-select__wrapper:hover,.el-form-item.is-error .el-textarea__inner,.el-form-item.is-error .el-textarea__inner.is-focus,.el-form-item.is-error .el-textarea__inner:focus,.el-form-item.is-error .el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input-group__append .el-input__wrapper,.el-form-item.is-error .el-input-group__prepend .el-input__wrapper{box-shadow:inset 0 0 0 1px transparent}.el-form-item.is-error .el-input__validateIcon{color:var(--el-color-danger)}.el-form-item--feedback .el-input__validateIcon{display:inline-flex}.el-button{--el-button-font-weight:var(--el-font-weight-primary);--el-button-border-color:var(--el-border-color);--el-button-bg-color:var(--el-fill-color-blank);--el-button-text-color:var(--el-text-color-regular);--el-button-disabled-text-color:var(--el-disabled-text-color);--el-button-disabled-bg-color:var(--el-fill-color-blank);--el-button-disabled-border-color:var(--el-border-color-light);--el-button-divide-border-color:rgba(255,255,255,.5);--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-color-primary-light-9);--el-button-hover-border-color:var(--el-color-primary-light-7);--el-button-active-text-color:var(--el-button-hover-text-color);--el-button-active-border-color:var(--el-color-primary);--el-button-active-bg-color:var(--el-button-hover-bg-color);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-hover-link-text-color:var(--el-color-info);--el-button-active-color:var(--el-text-color-primary);align-items:center;-webkit-appearance:none;background-color:var(--el-button-bg-color);border:var(--el-border);border-color:var(--el-button-border-color);border-radius:var(--el-border-radius-base);box-sizing:border-box;color:var(--el-button-text-color);cursor:pointer;display:inline-flex;font-size:var(--el-font-size-base);font-weight:var(--el-button-font-weight);height:32px;justify-content:center;line-height:1;outline:none;padding:8px 15px;text-align:center;transition:.1s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.el-button:hover{background-color:var(--el-button-hover-bg-color);border-color:var(--el-button-hover-border-color);color:var(--el-button-hover-text-color);outline:none}.el-button:active{background-color:var(--el-button-active-bg-color);border-color:var(--el-button-active-border-color);color:var(--el-button-active-text-color);outline:none}.el-button:focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px;transition:outline-offset 0s,outline 0s}.el-button>span{align-items:center;display:inline-flex}.el-button+.el-button{margin-left:12px}.el-button.is-round{padding:8px 15px}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon]+span{margin-left:6px}.el-button [class*=el-icon] svg{vertical-align:bottom}.el-button.is-plain{--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-fill-color-blank);--el-button-hover-border-color:var(--el-color-primary)}.el-button.is-active{background-color:var(--el-button-active-bg-color);border-color:var(--el-button-active-border-color);color:var(--el-button-active-text-color);outline:none}.el-button.is-disabled,.el-button.is-disabled:hover{background-color:var(--el-button-disabled-bg-color);background-image:none;border-color:var(--el-button-disabled-border-color);color:var(--el-button-disabled-text-color);cursor:not-allowed}.el-button.is-loading{pointer-events:none;position:relative}.el-button.is-loading:before{background-color:var(--el-mask-color-extra-light);border-radius:inherit;bottom:-1px;content:"";left:-1px;pointer-events:none;position:absolute;right:-1px;top:-1px;z-index:1}.el-button.is-round{border-radius:var(--el-border-radius-round)}.el-button.is-circle{border-radius:50%;padding:8px;width:32px}.el-button.is-text{background-color:transparent;border:0 solid transparent;color:var(--el-button-text-color)}.el-button.is-text.is-disabled{background-color:transparent!important;color:var(--el-button-disabled-text-color)}.el-button.is-text:not(.is-disabled):hover{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px;transition:outline-offset 0s,outline 0s}.el-button.is-text:not(.is-disabled):active{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled).is-has-bg:hover{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--el-fill-color-dark)}.el-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.el-button.is-link{background:transparent;border-color:transparent;color:var(--el-button-text-color);height:auto;padding:2px}.el-button.is-link:hover{color:var(--el-button-hover-link-text-color)}.el-button.is-link.is-disabled{background-color:transparent!important;border-color:transparent!important;color:var(--el-button-disabled-text-color)}.el-button.is-link:not(.is-disabled):hover{background-color:transparent;border-color:transparent}.el-button.is-link:not(.is-disabled):active{background-color:transparent;border-color:transparent;color:var(--el-button-active-color)}.el-button--text{background:transparent;border-color:transparent;color:var(--el-color-primary);padding-left:0;padding-right:0}.el-button--text.is-disabled{background-color:transparent!important;border-color:transparent!important;color:var(--el-button-disabled-text-color)}.el-button--text:not(.is-disabled):hover{background-color:transparent;border-color:transparent;color:var(--el-color-primary-light-3)}.el-button--text:not(.is-disabled):active{background-color:transparent;border-color:transparent;color:var(--el-color-primary-dark-2)}.el-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.el-button--primary{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-primary);--el-button-border-color:var(--el-color-primary);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-active-color:var(--el-color-primary-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-primary-light-5);--el-button-hover-bg-color:var(--el-color-primary-light-3);--el-button-hover-border-color:var(--el-color-primary-light-3);--el-button-active-bg-color:var(--el-color-primary-dark-2);--el-button-active-border-color:var(--el-color-primary-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-primary-light-5);--el-button-disabled-border-color:var(--el-color-primary-light-5)}.el-button--primary.is-link,.el-button--primary.is-plain,.el-button--primary.is-text{--el-button-text-color:var(--el-color-primary);--el-button-bg-color:var(--el-color-primary-light-9);--el-button-border-color:var(--el-color-primary-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-primary);--el-button-hover-border-color:var(--el-color-primary);--el-button-active-text-color:var(--el-color-white)}.el-button--primary.is-link.is-disabled,.el-button--primary.is-link.is-disabled:active,.el-button--primary.is-link.is-disabled:focus,.el-button--primary.is-link.is-disabled:hover,.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-text.is-disabled,.el-button--primary.is-text.is-disabled:active,.el-button--primary.is-text.is-disabled:focus,.el-button--primary.is-text.is-disabled:hover{background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-8);color:var(--el-color-primary-light-5)}.el-button--success{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-success);--el-button-border-color:var(--el-color-success);--el-button-outline-color:var(--el-color-success-light-5);--el-button-active-color:var(--el-color-success-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-success-light-5);--el-button-hover-bg-color:var(--el-color-success-light-3);--el-button-hover-border-color:var(--el-color-success-light-3);--el-button-active-bg-color:var(--el-color-success-dark-2);--el-button-active-border-color:var(--el-color-success-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-success-light-5);--el-button-disabled-border-color:var(--el-color-success-light-5)}.el-button--success.is-link,.el-button--success.is-plain,.el-button--success.is-text{--el-button-text-color:var(--el-color-success);--el-button-bg-color:var(--el-color-success-light-9);--el-button-border-color:var(--el-color-success-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-success);--el-button-hover-border-color:var(--el-color-success);--el-button-active-text-color:var(--el-color-white)}.el-button--success.is-link.is-disabled,.el-button--success.is-link.is-disabled:active,.el-button--success.is-link.is-disabled:focus,.el-button--success.is-link.is-disabled:hover,.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-text.is-disabled,.el-button--success.is-text.is-disabled:active,.el-button--success.is-text.is-disabled:focus,.el-button--success.is-text.is-disabled:hover{background-color:var(--el-color-success-light-9);border-color:var(--el-color-success-light-8);color:var(--el-color-success-light-5)}.el-button--warning{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-warning);--el-button-border-color:var(--el-color-warning);--el-button-outline-color:var(--el-color-warning-light-5);--el-button-active-color:var(--el-color-warning-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-warning-light-5);--el-button-hover-bg-color:var(--el-color-warning-light-3);--el-button-hover-border-color:var(--el-color-warning-light-3);--el-button-active-bg-color:var(--el-color-warning-dark-2);--el-button-active-border-color:var(--el-color-warning-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-warning-light-5);--el-button-disabled-border-color:var(--el-color-warning-light-5)}.el-button--warning.is-link,.el-button--warning.is-plain,.el-button--warning.is-text{--el-button-text-color:var(--el-color-warning);--el-button-bg-color:var(--el-color-warning-light-9);--el-button-border-color:var(--el-color-warning-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-warning);--el-button-hover-border-color:var(--el-color-warning);--el-button-active-text-color:var(--el-color-white)}.el-button--warning.is-link.is-disabled,.el-button--warning.is-link.is-disabled:active,.el-button--warning.is-link.is-disabled:focus,.el-button--warning.is-link.is-disabled:hover,.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-text.is-disabled,.el-button--warning.is-text.is-disabled:active,.el-button--warning.is-text.is-disabled:focus,.el-button--warning.is-text.is-disabled:hover{background-color:var(--el-color-warning-light-9);border-color:var(--el-color-warning-light-8);color:var(--el-color-warning-light-5)}.el-button--danger{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-danger);--el-button-border-color:var(--el-color-danger);--el-button-outline-color:var(--el-color-danger-light-5);--el-button-active-color:var(--el-color-danger-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-danger-light-5);--el-button-hover-bg-color:var(--el-color-danger-light-3);--el-button-hover-border-color:var(--el-color-danger-light-3);--el-button-active-bg-color:var(--el-color-danger-dark-2);--el-button-active-border-color:var(--el-color-danger-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-danger-light-5);--el-button-disabled-border-color:var(--el-color-danger-light-5)}.el-button--danger.is-link,.el-button--danger.is-plain,.el-button--danger.is-text{--el-button-text-color:var(--el-color-danger);--el-button-bg-color:var(--el-color-danger-light-9);--el-button-border-color:var(--el-color-danger-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-danger);--el-button-hover-border-color:var(--el-color-danger);--el-button-active-text-color:var(--el-color-white)}.el-button--danger.is-link.is-disabled,.el-button--danger.is-link.is-disabled:active,.el-button--danger.is-link.is-disabled:focus,.el-button--danger.is-link.is-disabled:hover,.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-text.is-disabled,.el-button--danger.is-text.is-disabled:active,.el-button--danger.is-text.is-disabled:focus,.el-button--danger.is-text.is-disabled:hover{background-color:var(--el-color-danger-light-9);border-color:var(--el-color-danger-light-8);color:var(--el-color-danger-light-5)}.el-button--info{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-info);--el-button-border-color:var(--el-color-info);--el-button-outline-color:var(--el-color-info-light-5);--el-button-active-color:var(--el-color-info-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-info-light-5);--el-button-hover-bg-color:var(--el-color-info-light-3);--el-button-hover-border-color:var(--el-color-info-light-3);--el-button-active-bg-color:var(--el-color-info-dark-2);--el-button-active-border-color:var(--el-color-info-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-info-light-5);--el-button-disabled-border-color:var(--el-color-info-light-5)}.el-button--info.is-link,.el-button--info.is-plain,.el-button--info.is-text{--el-button-text-color:var(--el-color-info);--el-button-bg-color:var(--el-color-info-light-9);--el-button-border-color:var(--el-color-info-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-info);--el-button-hover-border-color:var(--el-color-info);--el-button-active-text-color:var(--el-color-white)}.el-button--info.is-link.is-disabled,.el-button--info.is-link.is-disabled:active,.el-button--info.is-link.is-disabled:focus,.el-button--info.is-link.is-disabled:hover,.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-text.is-disabled,.el-button--info.is-text.is-disabled:active,.el-button--info.is-text.is-disabled:focus,.el-button--info.is-text.is-disabled:hover{background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8);color:var(--el-color-info-light-5)}.el-button--large{--el-button-size:40px;border-radius:var(--el-border-radius-base);font-size:var(--el-font-size-base);height:var(--el-button-size);padding:12px 19px}.el-button--large [class*=el-icon]+span{margin-left:8px}.el-button--large.is-round{padding:12px 19px}.el-button--large.is-circle{padding:12px;width:var(--el-button-size)}.el-button--small{--el-button-size:24px;border-radius:calc(var(--el-border-radius-base) - 1px);font-size:12px;height:var(--el-button-size);padding:5px 11px}.el-button--small [class*=el-icon]+span{margin-left:4px}.el-button--small.is-round{padding:5px 11px}.el-button--small.is-circle{padding:5px;width:var(--el-button-size)}.el-textarea{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;display:inline-block;font-size:var(--el-font-size-base);position:relative;vertical-align:bottom;width:100%}.el-textarea__inner{-webkit-appearance:none;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;box-sizing:border-box;color:var(--el-input-text-color,var(--el-text-color-regular));display:block;font-family:inherit;font-size:inherit;line-height:1.5;padding:5px 11px;position:relative;resize:vertical;transition:var(--el-transition-box-shadow);width:100%}.el-textarea__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:-ms-input-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-textarea__inner:focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset;outline:none}.el-textarea .el-input__count{background:var(--el-fill-color-blank);bottom:5px;color:var(--el-color-info);font-size:12px;line-height:14px;position:absolute;right:10px}.el-textarea.is-disabled .el-textarea__inner{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset;color:var(--el-disabled-text-color);cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-exceed .el-textarea__inner{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-textarea.is-exceed .el-input__count{color:var(--el-color-danger)}.el-input{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;--el-input-height:var(--el-component-size);box-sizing:border-box;display:inline-flex;font-size:var(--el-font-size-base);line-height:var(--el-input-height);position:relative;vertical-align:middle;width:var(--el-input-width)}.el-input::-webkit-scrollbar{width:6px;z-index:11}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{background:var(--el-text-color-disabled);border-radius:5px;width:6px}.el-input::-webkit-scrollbar-corner,.el-input::-webkit-scrollbar-track{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track-piece{background:var(--el-fill-color-blank);width:6px}.el-input .el-input__clear,.el-input .el-input__password{color:var(--el-input-icon-color);cursor:pointer;font-size:14px}.el-input .el-input__clear:hover,.el-input .el-input__password:hover{color:var(--el-input-clear-hover-color)}.el-input .el-input__count{align-items:center;color:var(--el-color-info);display:inline-flex;font-size:12px;height:100%}.el-input .el-input__count .el-input__count-inner{background:var(--el-fill-color-blank);display:inline-block;line-height:normal;padding-left:8px}.el-input__wrapper{align-items:center;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;cursor:text;display:inline-flex;flex-grow:1;justify-content:center;padding:1px 11px;transform:translateZ(0);transition:var(--el-transition-box-shadow)}.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 32px) - 2px);-webkit-appearance:none;background:none;border:none;box-sizing:border-box;color:var(--el-input-text-color,var(--el-text-color-regular));flex-grow:1;font-size:inherit;height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);outline:none;padding:0;width:100%}.el-input__inner:focus{outline:none}.el-input__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner:-ms-input-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner[type=password]::-ms-reveal{display:none}.el-input__inner[type=number]{line-height:1}.el-input__prefix{color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:inline-flex;flex-shrink:0;flex-wrap:nowrap;height:100%;pointer-events:none;text-align:center;transition:all var(--el-transition-duration);white-space:nowrap}.el-input__prefix-inner{align-items:center;display:inline-flex;justify-content:center;pointer-events:all}.el-input__prefix-inner>:last-child{margin-right:8px}.el-input__prefix-inner>:first-child,.el-input__prefix-inner>:first-child.el-input__icon{margin-left:0}.el-input__suffix{color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:inline-flex;flex-shrink:0;flex-wrap:nowrap;height:100%;pointer-events:none;text-align:center;transition:all var(--el-transition-duration);white-space:nowrap}.el-input__suffix-inner{align-items:center;display:inline-flex;justify-content:center;pointer-events:all}.el-input__suffix-inner>:first-child{margin-left:8px}.el-input .el-input__icon{align-items:center;display:flex;height:inherit;justify-content:center;line-height:inherit;margin-left:8px;transition:all var(--el-transition-duration)}.el-input__validateIcon{pointer-events:none}.el-input.is-active .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-color, ) inset}.el-input.is-disabled{cursor:not-allowed}.el-input.is-disabled .el-input__wrapper{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset}.el-input.is-disabled .el-input__inner{color:var(--el-disabled-text-color);-webkit-text-fill-color:var(--el-disabled-text-color);cursor:not-allowed}.el-input.is-disabled .el-input__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner::placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__icon{cursor:not-allowed}.el-input.is-exceed .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-input.is-exceed .el-input__suffix .el-input__count{color:var(--el-color-danger)}.el-input--large{--el-input-height:var(--el-component-size-large);font-size:14px}.el-input--large .el-input__wrapper{padding:1px 15px}.el-input--large .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 40px) - 2px)}.el-input--small{--el-input-height:var(--el-component-size-small);font-size:12px}.el-input--small .el-input__wrapper{padding:1px 7px}.el-input--small .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 24px) - 2px)}.el-input-group{align-items:stretch;display:inline-flex;width:100%}.el-input-group__append,.el-input-group__prepend{align-items:center;background-color:var(--el-fill-color-light);border-radius:var(--el-input-border-radius);color:var(--el-color-info);display:inline-flex;justify-content:center;min-height:100%;padding:0 20px;position:relative;white-space:nowrap}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:none}.el-input-group__append .el-button,.el-input-group__append .el-select,.el-input-group__prepend .el-button,.el-input-group__prepend .el-select{display:inline-block;margin:0 -20px}.el-input-group__append button.el-button,.el-input-group__append button.el-button:hover,.el-input-group__append div.el-select .el-select__wrapper,.el-input-group__append div.el-select:hover .el-select__wrapper,.el-input-group__prepend button.el-button,.el-input-group__prepend button.el-button:hover,.el-input-group__prepend div.el-select .el-select__wrapper,.el-input-group__prepend div.el-select:hover .el-select__wrapper{background-color:transparent;border-color:transparent;color:inherit}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input{font-size:inherit}.el-input-group__prepend{border-bottom-right-radius:0;border-right:0;border-top-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group__append{border-bottom-left-radius:0;border-left:0;border-top-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--prepend>.el-input__wrapper{border-bottom-left-radius:0;border-top-left-radius:0}.el-input-group--prepend .el-input-group__prepend .el-select .el-select__wrapper{border-bottom-right-radius:0;border-top-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group--append>.el-input__wrapper{border-bottom-right-radius:0;border-top-right-radius:0}.el-input-group--append .el-input-group__append .el-select .el-select__wrapper{border-bottom-left-radius:0;border-top-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-hidden{display:none!important}.el-input-number{display:inline-flex;line-height:30px;position:relative;width:150px}.el-input-number .el-input__wrapper{padding-left:42px;padding-right:42px}.el-input-number .el-input__inner{-webkit-appearance:none;-moz-appearance:textfield;line-height:1;text-align:center}.el-input-number .el-input__inner::-webkit-inner-spin-button,.el-input-number .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-input-number__decrease,.el-input-number__increase{align-items:center;background:var(--el-fill-color-light);bottom:1px;color:var(--el-text-color-regular);cursor:pointer;display:flex;font-size:13px;height:auto;justify-content:center;position:absolute;top:1px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:32px;z-index:1}.el-input-number__decrease:hover,.el-input-number__increase:hover{color:var(--el-color-primary)}.el-input-number__decrease:hover~.el-input:not(.is-disabled) .el-input__wrapper,.el-input-number__increase:hover~.el-input:not(.is-disabled) .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color,var(--el-color-primary)) inset}.el-input-number__decrease.is-disabled,.el-input-number__increase.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-input-number__increase{border-left:var(--el-border);border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0;right:1px}.el-input-number__decrease{border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);border-right:var(--el-border);left:1px}.el-input-number.is-disabled .el-input-number__decrease,.el-input-number.is-disabled .el-input-number__increase{border-color:var(--el-disabled-border-color);color:var(--el-disabled-border-color)}.el-input-number.is-disabled .el-input-number__decrease:hover,.el-input-number.is-disabled .el-input-number__increase:hover{color:var(--el-disabled-border-color);cursor:not-allowed}.el-input-number--large{line-height:38px;width:180px}.el-input-number--large .el-input-number__decrease,.el-input-number--large .el-input-number__increase{font-size:14px;width:40px}.el-input-number--large .el-input--large .el-input__wrapper{padding-left:47px;padding-right:47px}.el-input-number--small{line-height:22px;width:120px}.el-input-number--small .el-input-number__decrease,.el-input-number--small .el-input-number__increase{font-size:12px;width:24px}.el-input-number--small .el-input--small .el-input__wrapper{padding-left:31px;padding-right:31px}.el-input-number--small .el-input-number__decrease [class*=el-icon],.el-input-number--small .el-input-number__increase [class*=el-icon]{transform:scale(.9)}.el-input-number.is-without-controls .el-input__wrapper{padding-left:15px;padding-right:15px}.el-input-number.is-controls-right .el-input__wrapper{padding-left:15px;padding-right:42px}.el-input-number.is-controls-right .el-input-number__decrease,.el-input-number.is-controls-right .el-input-number__increase{--el-input-number-controls-height:15px;height:var(--el-input-number-controls-height);line-height:var(--el-input-number-controls-height)}.el-input-number.is-controls-right .el-input-number__decrease [class*=el-icon],.el-input-number.is-controls-right .el-input-number__increase [class*=el-icon]{transform:scale(.8)}.el-input-number.is-controls-right .el-input-number__increase{border-bottom:var(--el-border);border-radius:0 var(--el-border-radius-base) 0 0;bottom:auto;left:auto}.el-input-number.is-controls-right .el-input-number__decrease{border-left:var(--el-border);border-radius:0 0 var(--el-border-radius-base) 0;border-right:none;left:auto;right:1px;top:auto}.el-input-number.is-controls-right[class*=large] [class*=decrease],.el-input-number.is-controls-right[class*=large] [class*=increase]{--el-input-number-controls-height:19px}.el-input-number.is-controls-right[class*=small] [class*=decrease],.el-input-number.is-controls-right[class*=small] [class*=increase]{--el-input-number-controls-height:11px}.el-divider{position:relative}.el-divider--horizontal{border-top:1px var(--el-border-color) var(--el-border-style);display:block;height:1px;margin:24px 0;width:100%}.el-divider--vertical{border-left:1px var(--el-border-color) var(--el-border-style);display:inline-block;height:1em;margin:0 8px;position:relative;vertical-align:middle;width:1px}.el-divider__text{background-color:var(--el-bg-color);color:var(--el-text-color-primary);font-size:14px;font-weight:500;padding:0 20px;position:absolute}.el-divider__text.is-left{left:20px;transform:translateY(-50%)}.el-divider__text.is-center{left:50%;transform:translate(-50%) translateY(-50%)}.el-divider__text.is-right{right:20px;transform:translateY(-50%)}.el-page-header.is-contentful .el-page-header__main{border-top:1px solid var(--el-border-color-light);margin-top:16px}.el-page-header__header{align-items:center;display:flex;justify-content:space-between;line-height:24px}.el-page-header__left{align-items:center;display:flex;margin-right:40px;position:relative}.el-page-header__back{align-items:center;cursor:pointer;display:flex}.el-page-header__left .el-divider--vertical{margin:0 16px}.el-page-header__icon{align-items:center;display:flex;font-size:16px;margin-right:10px}.el-page-header__icon .el-icon{font-size:inherit}.el-page-header__title{font-size:14px;font-weight:500}.el-page-header__content{color:var(--el-text-color-primary);font-size:18px}.el-page-header__breadcrumb{margin-bottom:16px}.el-badge{--el-badge-bg-color:var(--el-color-danger);--el-badge-radius:10px;--el-badge-font-size:12px;--el-badge-padding:6px;--el-badge-size:18px;display:inline-block;position:relative;vertical-align:middle;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.el-badge__content{align-items:center;background-color:var(--el-badge-bg-color);border:1px solid var(--el-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);display:inline-flex;font-size:var(--el-badge-font-size);height:var(--el-badge-size);justify-content:center;padding:0 var(--el-badge-padding);white-space:nowrap}.el-badge__content.is-fixed{position:absolute;right:calc(1px + var(--el-badge-size)/2);top:0;transform:translateY(-50%) translate(100%);z-index:var(--el-index-normal)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{border-radius:50%;height:8px;padding:0;right:0;width:8px}.el-badge__content--primary{background-color:var(--el-color-primary)}.el-badge__content--success{background-color:var(--el-color-success)}.el-badge__content--warning{background-color:var(--el-color-warning)}.el-badge__content--info{background-color:var(--el-color-info)}.el-badge__content--danger{background-color:var(--el-color-danger)}.el-message{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-border-color-lighter);--el-message-padding:11px 15px;--el-message-close-size:16px;--el-message-close-icon-color:var(--el-text-color-placeholder);--el-message-close-hover-color:var(--el-text-color-secondary);align-items:center;background-color:var(--el-message-bg-color);border-color:var(--el-message-border-color);border-radius:var(--el-border-radius-base);border-style:var(--el-border-style);border-width:var(--el-border-width);box-sizing:border-box;display:flex;gap:8px;left:50%;max-width:calc(100% - 32px);padding:var(--el-message-padding);position:fixed;top:20px;transform:translate(-50%);transition:opacity var(--el-transition-duration),transform .4s,top .4s;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.el-message.is-center{justify-content:center}.el-message.is-plain{background-color:var(--el-bg-color-overlay);border-color:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-message p{margin:0}.el-message--success{--el-message-bg-color:var(--el-color-success-light-9);--el-message-border-color:var(--el-color-success-light-8);--el-message-text-color:var(--el-color-success)}.el-message--success .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--success{color:var(--el-message-text-color)}.el-message--info{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-color-info-light-8);--el-message-text-color:var(--el-color-info)}.el-message--info .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--info{color:var(--el-message-text-color)}.el-message--warning{--el-message-bg-color:var(--el-color-warning-light-9);--el-message-border-color:var(--el-color-warning-light-8);--el-message-text-color:var(--el-color-warning)}.el-message--warning .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--warning{color:var(--el-message-text-color)}.el-message--error{--el-message-bg-color:var(--el-color-error-light-9);--el-message-border-color:var(--el-color-error-light-8);--el-message-text-color:var(--el-color-error)}.el-message--error .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message .el-message__badge{position:absolute;right:-8px;top:-8px}.el-message__content{font-size:14px;line-height:1;padding:0}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{color:var(--el-message-close-icon-color);cursor:pointer;font-size:var(--el-message-close-size)}.el-message .el-message__closeBtn:focus{outline-width:0}.el-message .el-message__closeBtn:hover{color:var(--el-message-close-hover-color)}.el-message-fade-enter-from,.el-message-fade-leave-to{opacity:0;transform:translate(-50%,-100%)}.el-alert{--el-alert-padding:8px 16px;--el-alert-border-radius-base:var(--el-border-radius-base);--el-alert-title-font-size:14px;--el-alert-title-with-description-font-size:16px;--el-alert-description-font-size:14px;--el-alert-close-font-size:16px;--el-alert-close-customed-font-size:14px;--el-alert-icon-size:16px;--el-alert-icon-large-size:28px;align-items:center;background-color:var(--el-color-white);border-radius:var(--el-alert-border-radius-base);box-sizing:border-box;display:flex;margin:0;opacity:1;overflow:hidden;padding:var(--el-alert-padding);position:relative;transition:opacity var(--el-transition-duration-fast);width:100%}.el-alert.is-light .el-alert__close-btn{color:var(--el-text-color-placeholder)}.el-alert.is-dark .el-alert__close-btn,.el-alert.is-dark .el-alert__description{color:var(--el-color-white)}.el-alert.is-center{justify-content:center}.el-alert--success{--el-alert-bg-color:var(--el-color-success-light-9)}.el-alert--success.is-light{background-color:var(--el-alert-bg-color)}.el-alert--success.is-light,.el-alert--success.is-light .el-alert__description{color:var(--el-color-success)}.el-alert--success.is-dark{background-color:var(--el-color-success);color:var(--el-color-white)}.el-alert--info{--el-alert-bg-color:var(--el-color-info-light-9)}.el-alert--info.is-light{background-color:var(--el-alert-bg-color)}.el-alert--info.is-light,.el-alert--info.is-light .el-alert__description{color:var(--el-color-info)}.el-alert--info.is-dark{background-color:var(--el-color-info);color:var(--el-color-white)}.el-alert--warning{--el-alert-bg-color:var(--el-color-warning-light-9)}.el-alert--warning.is-light{background-color:var(--el-alert-bg-color)}.el-alert--warning.is-light,.el-alert--warning.is-light .el-alert__description{color:var(--el-color-warning)}.el-alert--warning.is-dark{background-color:var(--el-color-warning);color:var(--el-color-white)}.el-alert--error{--el-alert-bg-color:var(--el-color-error-light-9)}.el-alert--error.is-light{background-color:var(--el-alert-bg-color)}.el-alert--error.is-light,.el-alert--error.is-light .el-alert__description{color:var(--el-color-error)}.el-alert--error.is-dark{background-color:var(--el-color-error);color:var(--el-color-white)}.el-alert__content{display:flex;flex-direction:column;gap:4px}.el-alert .el-alert__icon{font-size:var(--el-alert-icon-size);margin-right:8px;width:var(--el-alert-icon-size)}.el-alert .el-alert__icon.is-big{font-size:var(--el-alert-icon-large-size);margin-right:12px;width:var(--el-alert-icon-large-size)}.el-alert__title{font-size:var(--el-alert-title-font-size);line-height:24px}.el-alert__title.with-description{font-size:var(--el-alert-title-with-description-font-size)}.el-alert .el-alert__description{font-size:var(--el-alert-description-font-size);margin:0}.el-alert .el-alert__close-btn{cursor:pointer;font-size:var(--el-alert-close-font-size);opacity:1;position:absolute;right:16px;top:12px}.el-alert .el-alert__close-btn.is-customed{font-size:var(--el-alert-close-customed-font-size);font-style:normal;line-height:24px;top:8px}.el-alert-fade-enter-from,.el-alert-fade-leave-active{opacity:0}.el-image__error,.el-image__inner,.el-image__placeholder,.el-image__wrapper{height:100%;width:100%}.el-image{display:inline-block;overflow:hidden;position:relative}.el-image__inner{opacity:1;vertical-align:top}.el-image__inner.is-loading{opacity:0}.el-image__wrapper{left:0;position:absolute;top:0}.el-image__error,.el-image__placeholder{background:var(--el-fill-color-light)}.el-image__error{align-items:center;color:var(--el-text-color-placeholder);display:flex;font-size:14px;justify-content:center;vertical-align:middle}.el-image__preview{cursor:pointer}.el-image-viewer__wrapper{bottom:0;left:0;position:fixed;right:0;top:0}.el-image-viewer__btn{align-items:center;border-radius:50%;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;opacity:.8;position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}.el-image-viewer__btn .el-icon{cursor:pointer;font-size:inherit}.el-image-viewer__close{font-size:40px;height:40px;right:40px;top:40px;width:40px}.el-image-viewer__canvas{align-items:center;display:flex;height:100%;justify-content:center;position:static;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.el-image-viewer__actions{background-color:var(--el-text-color-regular);border-color:#fff;border-radius:22px;bottom:30px;height:44px;left:50%;padding:0 23px;transform:translate(-50%);width:282px}.el-image-viewer__actions__inner{align-items:center;color:#fff;cursor:default;display:flex;font-size:23px;height:100%;justify-content:space-around;width:100%}.el-image-viewer__prev{left:40px}.el-image-viewer__next,.el-image-viewer__prev{background-color:var(--el-text-color-regular);border-color:#fff;color:#fff;font-size:24px;height:44px;top:50%;transform:translateY(-50%);width:44px}.el-image-viewer__next{right:40px;text-indent:2px}.el-image-viewer__close{background-color:var(--el-text-color-regular);border-color:#fff;color:#fff;font-size:24px;height:44px;width:44px}.el-image-viewer__mask{background:#000;height:100%;left:0;opacity:.5;position:absolute;top:0;width:100%}.viewer-fade-enter-active{-webkit-animation:viewer-fade-in var(--el-transition-duration);animation:viewer-fade-in var(--el-transition-duration)}.viewer-fade-leave-active{-webkit-animation:viewer-fade-out var(--el-transition-duration);animation:viewer-fade-out var(--el-transition-duration)}@-webkit-keyframes viewer-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes viewer-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@-webkit-keyframes viewer-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}@keyframes viewer-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}.el-tag{--el-tag-font-size:12px;--el-tag-border-radius:4px;--el-tag-border-radius-rounded:9999px;--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary);align-items:center;background-color:var(--el-tag-bg-color);border-color:var(--el-tag-border-color);border-radius:var(--el-tag-border-radius);border-style:solid;border-width:1px;box-sizing:border-box;color:var(--el-tag-text-color);display:inline-flex;font-size:var(--el-tag-font-size);height:24px;justify-content:center;line-height:1;padding:0 9px;vertical-align:middle;white-space:nowrap;--el-icon-size:14px}.el-tag.el-tag--primary{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-bg-color:var(--el-color-success-light-9);--el-tag-border-color:var(--el-color-success-light-8);--el-tag-hover-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-bg-color:var(--el-color-warning-light-9);--el-tag-border-color:var(--el-color-warning-light-8);--el-tag-hover-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-bg-color:var(--el-color-danger-light-9);--el-tag-border-color:var(--el-color-danger-light-8);--el-tag-hover-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-bg-color:var(--el-color-error-light-9);--el-tag-border-color:var(--el-color-error-light-8);--el-tag-hover-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-bg-color:var(--el-color-info-light-9);--el-tag-border-color:var(--el-color-info-light-8);--el-tag-hover-color:var(--el-color-info)}.el-tag.el-tag--primary{--el-tag-text-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-text-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-text-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-text-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-text-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-text-color:var(--el-color-info)}.el-tag.is-hit{border-color:var(--el-color-primary)}.el-tag.is-round{border-radius:var(--el-tag-border-radius-rounded)}.el-tag .el-tag__close{color:var(--el-tag-text-color);flex-shrink:0}.el-tag .el-tag__close:hover{background-color:var(--el-tag-hover-color);color:var(--el-color-white)}.el-tag .el-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--el-icon-size) - 2px);height:var(--el-icon-size);width:var(--el-icon-size)}.el-tag .el-tag__close{margin-left:6px}.el-tag--dark{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3);--el-tag-text-color:var(--el-color-white)}.el-tag--dark.el-tag--primary{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3)}.el-tag--dark.el-tag--success{--el-tag-bg-color:var(--el-color-success);--el-tag-border-color:var(--el-color-success);--el-tag-hover-color:var(--el-color-success-light-3)}.el-tag--dark.el-tag--warning{--el-tag-bg-color:var(--el-color-warning);--el-tag-border-color:var(--el-color-warning);--el-tag-hover-color:var(--el-color-warning-light-3)}.el-tag--dark.el-tag--danger{--el-tag-bg-color:var(--el-color-danger);--el-tag-border-color:var(--el-color-danger);--el-tag-hover-color:var(--el-color-danger-light-3)}.el-tag--dark.el-tag--error{--el-tag-bg-color:var(--el-color-error);--el-tag-border-color:var(--el-color-error);--el-tag-hover-color:var(--el-color-error-light-3)}.el-tag--dark.el-tag--info{--el-tag-bg-color:var(--el-color-info);--el-tag-border-color:var(--el-color-info);--el-tag-hover-color:var(--el-color-info-light-3)}.el-tag--dark.el-tag--danger,.el-tag--dark.el-tag--error,.el-tag--dark.el-tag--info,.el-tag--dark.el-tag--primary,.el-tag--dark.el-tag--success,.el-tag--dark.el-tag--warning{--el-tag-text-color:var(--el-color-white)}.el-tag--plain{--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary);--el-tag-bg-color:var(--el-fill-color-blank)}.el-tag--plain.el-tag--primary{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary)}.el-tag--plain.el-tag--success{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-success-light-5);--el-tag-hover-color:var(--el-color-success)}.el-tag--plain.el-tag--warning{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-warning-light-5);--el-tag-hover-color:var(--el-color-warning)}.el-tag--plain.el-tag--danger{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-danger-light-5);--el-tag-hover-color:var(--el-color-danger)}.el-tag--plain.el-tag--error{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-error-light-5);--el-tag-hover-color:var(--el-color-error)}.el-tag--plain.el-tag--info{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-info-light-5);--el-tag-hover-color:var(--el-color-info)}.el-tag.is-closable{padding-right:5px}.el-tag--large{height:32px;padding:0 11px;--el-icon-size:16px}.el-tag--large .el-tag__close{margin-left:8px}.el-tag--large.is-closable{padding-right:7px}.el-tag--small{height:20px;padding:0 7px;--el-icon-size:12px}.el-tag--small .el-tag__close{margin-left:4px}.el-tag--small.is-closable{padding-right:3px}.el-tag--small .el-icon-close{transform:scale(.8)}.el-tag.el-tag--primary.is-hit{border-color:var(--el-color-primary)}.el-tag.el-tag--success.is-hit{border-color:var(--el-color-success)}.el-tag.el-tag--warning.is-hit{border-color:var(--el-color-warning)}.el-tag.el-tag--danger.is-hit{border-color:var(--el-color-danger)}.el-tag.el-tag--error.is-hit{border-color:var(--el-color-error)}.el-tag.el-tag--info.is-hit{border-color:var(--el-color-info)}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-selected:after{background-color:var(--el-color-primary);background-position:50%;background-repeat:no-repeat;border-right:none;border-top:none;content:"";height:12px;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;position:absolute;right:20px;top:50%;transform:translateY(-50%);width:12px}.el-scrollbar{--el-scrollbar-opacity:.3;--el-scrollbar-bg-color:var(--el-text-color-secondary);--el-scrollbar-hover-opacity:.5;--el-scrollbar-hover-bg-color:var(--el-text-color-secondary);height:100%;overflow:hidden;position:relative}.el-scrollbar__wrap{height:100%;overflow:auto}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.el-scrollbar__thumb{background-color:var(--el-scrollbar-bg-color,var(--el-text-color-secondary));border-radius:inherit;cursor:pointer;display:block;height:0;opacity:var(--el-scrollbar-opacity,.3);position:relative;transition:var(--el-transition-duration) background-color;width:0}.el-scrollbar__thumb:hover{background-color:var(--el-scrollbar-hover-bg-color,var(--el-text-color-secondary));opacity:var(--el-scrollbar-hover-opacity,.5)}.el-scrollbar__bar{border-radius:4px;bottom:2px;position:absolute;right:2px;z-index:1}.el-scrollbar__bar.is-vertical{top:2px;width:6px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-scrollbar-fade-enter-active{transition:opacity .34s ease-out}.el-scrollbar-fade-leave-active{transition:opacity .12s ease-out}.el-scrollbar-fade-enter-from,.el-scrollbar-fade-leave-active{opacity:0}.el-popper{--el-popper-border-radius:var(--el-popover-border-radius,4px);border-radius:var(--el-popper-border-radius);font-size:12px;line-height:20px;min-width:10px;overflow-wrap:break-word;padding:5px 11px;position:absolute;visibility:visible;z-index:2000}.el-popper.is-dark{background:var(--el-text-color-primary);border:1px solid var(--el-text-color-primary);color:var(--el-bg-color)}.el-popper.is-dark .el-popper__arrow:before{background:var(--el-text-color-primary);border:1px solid var(--el-text-color-primary);right:0}.el-popper.is-light{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light)}.el-popper.is-light .el-popper__arrow:before{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);right:0}.el-popper.is-pure{padding:0}.el-popper__arrow{height:10px;position:absolute;width:10px;z-index:-1}.el-popper__arrow:before{background:var(--el-text-color-primary);box-sizing:border-box;content:" ";height:10px;position:absolute;transform:rotate(45deg);width:10px;z-index:-1}.el-popper[data-popper-placement^=top]>.el-popper__arrow{bottom:-5px}.el-popper[data-popper-placement^=top]>.el-popper__arrow:before{border-bottom-right-radius:2px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow{top:-5px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow:before{border-top-left-radius:2px}.el-popper[data-popper-placement^=left]>.el-popper__arrow{right:-5px}.el-popper[data-popper-placement^=left]>.el-popper__arrow:before{border-top-right-radius:2px}.el-popper[data-popper-placement^=right]>.el-popper__arrow{left:-5px}.el-popper[data-popper-placement^=right]>.el-popper__arrow:before{border-bottom-left-radius:2px}.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-left-color:transparent!important;border-top-color:transparent!important}.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent!important;border-right-color:transparent!important}.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-bottom-color:transparent!important;border-left-color:transparent!important}.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent!important;border-top-color:transparent!important}.el-select-dropdown{border-radius:var(--el-border-radius-base);box-sizing:border-box;z-index:calc(var(--el-index-top) + 1)}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown__empty,.el-select-dropdown__loading{color:var(--el-text-color-secondary);font-size:var(--el-select-font-size);margin:0;padding:10px 0;text-align:center}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{box-sizing:border-box;list-style:none;margin:0;padding:6px 0}.el-select-dropdown__list.el-vl__window{margin:6px 0;padding:0}.el-select-dropdown__header{border-bottom:1px solid var(--el-border-color-light);padding:10px}.el-select-dropdown__footer{border-top:1px solid var(--el-border-color-light);padding:10px}.el-select-dropdown__item{box-sizing:border-box;color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-base);height:34px;line-height:34px;overflow:hidden;padding:0 32px 0 20px;position:relative;text-overflow:ellipsis;white-space:nowrap}.el-select-dropdown__item.is-hovering{background-color:var(--el-fill-color-light)}.el-select-dropdown__item.is-selected{color:var(--el-color-primary);font-weight:700}.el-select-dropdown__item.is-disabled{background-color:unset;color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-selected:after{background-color:var(--el-color-primary);background-position:50%;background-repeat:no-repeat;border-right:none;border-top:none;content:"";height:12px;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;position:absolute;right:20px;top:50%;transform:translateY(-50%);width:12px}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-disabled:after{background-color:var(--el-text-color-placeholder)}.el-select-group{margin:0;padding:0}.el-select-group__wrap{list-style:none;margin:0;padding:0;position:relative}.el-select-group__title{color:var(--el-color-info);font-size:12px;line-height:34px;padding-left:20px}.el-select-group .el-select-dropdown__item{padding-left:20px}.el-select{--el-select-border-color-hover:var(--el-border-color-hover);--el-select-disabled-color:var(--el-disabled-text-color);--el-select-disabled-border:var(--el-disabled-border-color);--el-select-font-size:var(--el-font-size-base);--el-select-close-hover-color:var(--el-text-color-secondary);--el-select-input-color:var(--el-text-color-placeholder);--el-select-multiple-input-color:var(--el-text-color-regular);--el-select-input-focus-border-color:var(--el-color-primary);--el-select-input-font-size:14px;--el-select-width:100%;display:inline-block;position:relative;vertical-align:middle;width:var(--el-select-width)}.el-select__wrapper{align-items:center;background-color:var(--el-fill-color-blank);border-radius:var(--el-border-radius-base);box-shadow:0 0 0 1px var(--el-border-color) inset;box-sizing:border-box;cursor:pointer;display:flex;font-size:14px;gap:6px;line-height:24px;min-height:32px;padding:4px 12px;position:relative;text-align:left;transition:var(--el-transition-duration)}.el-select__wrapper:hover{box-shadow:0 0 0 1px var(--el-text-color) inset}.el-select__wrapper.is-filterable{cursor:text}.el-select__wrapper.is-focused{box-shadow:0 0 0 1px var(--el-color-primary) inset}.el-select__wrapper.is-hovering:not(.is-focused){box-shadow:0 0 0 1px var(--el-border-color-hover) inset}.el-select__wrapper.is-disabled{background-color:var(--el-fill-color-light);box-shadow:0 0 0 1px var(--el-select-disabled-border) inset;color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select__wrapper.is-disabled:hover{box-shadow:0 0 0 1px var(--el-select-disabled-border) inset}.el-select__wrapper.is-disabled.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-select__wrapper.is-disabled .el-select__selected-item{color:var(--el-select-disabled-color)}.el-select__wrapper.is-disabled .el-select__caret,.el-select__wrapper.is-disabled .el-tag{cursor:not-allowed}.el-select__prefix,.el-select__suffix{align-items:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:flex;flex-shrink:0;gap:6px}.el-select__caret{color:var(--el-select-input-color);cursor:pointer;font-size:var(--el-select-input-font-size);transform:rotate(0);transition:var(--el-transition-duration)}.el-select__caret.is-reverse{transform:rotate(180deg)}.el-select__selection{align-items:center;display:flex;flex:1;flex-wrap:wrap;gap:6px;min-width:0;position:relative}.el-select__selection.is-near{margin-left:-8px}.el-select__selection .el-tag{border-color:transparent;cursor:pointer}.el-select__selection .el-tag.el-tag--plain{border-color:var(--el-tag-border-color)}.el-select__selection .el-tag .el-tag__content{min-width:0}.el-select__selected-item{display:flex;flex-wrap:wrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-select__tags-text{line-height:normal}.el-select__placeholder,.el-select__tags-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select__placeholder{color:var(--el-input-text-color,var(--el-text-color-regular));position:absolute;top:50%;transform:translateY(-50%);width:100%}.el-select__placeholder.is-transparent{color:var(--el-text-color-placeholder);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-select__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-box-shadow-light)}.el-select__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-select__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-left-color:transparent;border-top-color:transparent}.el-select__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-select__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-bottom-color:transparent;border-left-color:transparent}.el-select__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-select__input-wrapper{max-width:100%}.el-select__input-wrapper.is-hidden{opacity:0;position:absolute}.el-select__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:var(--el-select-multiple-input-color);font-family:inherit;font-size:inherit;height:24px;max-width:100%;outline:none;padding:0}.el-select__input.is-disabled{cursor:not-allowed}.el-select__input-calculator{left:0;max-width:100%;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:pre}.el-select--large .el-select__wrapper{font-size:14px;gap:6px;line-height:24px;min-height:40px;padding:8px 16px}.el-select--large .el-select__selection{gap:6px}.el-select--large .el-select__selection.is-near{margin-left:-8px}.el-select--large .el-select__prefix,.el-select--large .el-select__suffix{gap:6px}.el-select--large .el-select__input{height:24px}.el-select--small .el-select__wrapper{font-size:12px;gap:4px;line-height:20px;min-height:24px;padding:2px 8px}.el-select--small .el-select__selection{gap:4px}.el-select--small .el-select__selection.is-near{margin-left:-6px}.el-select--small .el-select__prefix,.el-select--small .el-select__suffix{gap:4px}.el-select--small .el-select__input{height:20px}.el-radio-group{align-items:center;display:inline-flex;flex-wrap:wrap;font-size:0}.el-radio-button{--el-radio-button-checked-bg-color:var(--el-color-primary);--el-radio-button-checked-text-color:var(--el-color-white);--el-radio-button-checked-border-color:var(--el-color-primary);--el-radio-button-disabled-checked-fill:var(--el-border-color-extra-light)}.el-radio-button,.el-radio-button__inner{display:inline-block;outline:none;position:relative}.el-radio-button__inner{-webkit-appearance:none;background:var(--el-button-bg-color,var(--el-fill-color-blank));border:var(--el-border);border-left:0;border-radius:0;box-sizing:border-box;color:var(--el-button-text-color,var(--el-text-color-regular));cursor:pointer;font-size:var(--el-font-size-base);font-weight:var(--el-button-font-weight,var(--el-font-weight-primary));line-height:1;margin:0;padding:8px 15px;text-align:center;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.el-radio-button__inner.is-round{padding:8px 15px}.el-radio-button__inner:hover{color:var(--el-color-primary)}.el-radio-button__inner [class*=el-icon-]{line-height:.9}.el-radio-button__inner [class*=el-icon-]+span{margin-left:5px}.el-radio-button:first-child .el-radio-button__inner{border-left:var(--el-border);border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);box-shadow:none!important}.el-radio-button__original-radio{opacity:0;outline:none;position:absolute;z-index:-1}.el-radio-button__original-radio:checked+.el-radio-button__inner{background-color:var(--el-radio-button-checked-bg-color,var(--el-color-primary));border-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));box-shadow:-1px 0 0 0 var(--el-radio-button-checked-border-color,var(--el-color-primary));color:var(--el-radio-button-checked-text-color,var(--el-color-white))}.el-radio-button__original-radio:focus-visible+.el-radio-button__inner{border-left:var(--el-border);border-left-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));border-radius:var(--el-border-radius-base);box-shadow:none;outline:2px solid var(--el-radio-button-checked-border-color);outline-offset:1px;z-index:2}.el-radio-button__original-radio:disabled+.el-radio-button__inner{background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));background-image:none;border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none;color:var(--el-disabled-text-color);cursor:not-allowed}.el-radio-button__original-radio:disabled:checked+.el-radio-button__inner{background-color:var(--el-radio-button-disabled-checked-fill)}.el-radio-button:last-child .el-radio-button__inner{border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0}.el-radio-button:first-child:last-child .el-radio-button__inner{border-radius:var(--el-border-radius-base)}.el-radio-button--large .el-radio-button__inner{border-radius:0;font-size:var(--el-font-size-base);padding:12px 19px}.el-radio-button--large .el-radio-button__inner.is-round{padding:12px 19px}.el-radio-button--small .el-radio-button__inner{border-radius:0;font-size:12px;padding:5px 11px}.el-radio-button--small .el-radio-button__inner.is-round{padding:5px 11px}.el-message-box{--el-messagebox-title-color:var(--el-text-color-primary);--el-messagebox-width:420px;--el-messagebox-border-radius:4px;--el-messagebox-box-shadow:var(--el-box-shadow);--el-messagebox-font-size:var(--el-font-size-large);--el-messagebox-content-font-size:var(--el-font-size-base);--el-messagebox-content-color:var(--el-text-color-regular);--el-messagebox-error-font-size:12px;--el-messagebox-padding-primary:12px;--el-messagebox-font-line-height:var(--el-font-line-height-primary);-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:var(--el-bg-color);border-radius:var(--el-messagebox-border-radius);box-shadow:var(--el-messagebox-box-shadow);box-sizing:border-box;display:inline-block;font-size:var(--el-messagebox-font-size);max-width:var(--el-messagebox-width);overflow:hidden;overflow-wrap:break-word;padding:var(--el-messagebox-padding-primary);position:relative;text-align:left;vertical-align:middle;width:100%}.el-message-box:focus{outline:none!important}.el-overlay.is-message-box .el-overlay-message-box{bottom:0;left:0;overflow:auto;padding:16px;position:fixed;right:0;text-align:center;top:0}.el-overlay.is-message-box .el-overlay-message-box:after{content:"";display:inline-block;height:100%;vertical-align:middle;width:0}.el-message-box.is-draggable .el-message-box__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-message-box__header{padding-bottom:var(--el-messagebox-padding-primary)}.el-message-box__header.show-close{padding-right:calc(var(--el-messagebox-padding-primary) + var(--el-message-close-size, 16px))}.el-message-box__title{color:var(--el-messagebox-title-color);font-size:var(--el-messagebox-font-size);line-height:var(--el-messagebox-font-line-height)}.el-message-box__headerbtn{background:transparent;border:none;cursor:pointer;font-size:var(--el-message-close-size,16px);height:40px;outline:none;padding:0;position:absolute;right:0;top:0;width:40px}.el-message-box__headerbtn .el-message-box__close{color:var(--el-color-info);font-size:inherit}.el-message-box__headerbtn:focus .el-message-box__close,.el-message-box__headerbtn:hover .el-message-box__close{color:var(--el-color-primary)}.el-message-box__content{color:var(--el-messagebox-content-color);font-size:var(--el-messagebox-content-font-size)}.el-message-box__container{align-items:center;display:flex;gap:12px}.el-message-box__input{padding-top:12px}.el-message-box__input div.invalid>input{border-color:var(--el-color-error)}.el-message-box__input div.invalid>input:focus{border-color:var(--el-color-error)}.el-message-box__status{font-size:24px}.el-message-box__status.el-message-box-icon--success{--el-messagebox-color:var(--el-color-success);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--info{--el-messagebox-color:var(--el-color-info);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--warning{--el-messagebox-color:var(--el-color-warning);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--error{--el-messagebox-color:var(--el-color-error);color:var(--el-messagebox-color)}.el-message-box__message{margin:0}.el-message-box__message p{line-height:var(--el-messagebox-font-line-height);margin:0}.el-message-box__errormsg{color:var(--el-color-error);font-size:var(--el-messagebox-error-font-size);line-height:var(--el-messagebox-font-line-height)}.el-message-box__btns{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding-top:var(--el-messagebox-padding-primary)}.el-message-box--center .el-message-box__title{align-items:center;display:flex;gap:6px;justify-content:center}.el-message-box--center .el-message-box__status{font-size:inherit}.el-message-box--center .el-message-box__btns,.el-message-box--center .el-message-box__container{justify-content:center}.fade-in-linear-enter-active .el-overlay-message-box{-webkit-animation:msgbox-fade-in var(--el-transition-duration);animation:msgbox-fade-in var(--el-transition-duration)}.fade-in-linear-leave-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration) reverse}@-webkit-keyframes msgbox-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes msgbox-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}.el-overlay{background-color:var(--el-overlay-color-lighter);bottom:0;height:100%;left:0;overflow:auto;position:fixed;right:0;top:0;z-index:2000}.el-overlay .el-overlay-root{height:0}:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:.5}.v-modal-enter{-webkit-animation:v-modal-in var(--el-transition-duration-fast) ease;animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{-webkit-animation:v-modal-out var(--el-transition-duration-fast) ease forwards;animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@-webkit-keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-in{0%{opacity:0}}@-webkit-keyframes v-modal-out{to{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{background:var(--el-popup-modal-bg-color);height:100%;left:0;opacity:var(--el-popup-modal-opacity);position:fixed;top:0;width:100%}.el-popup-parent--hidden{overflow:hidden}.el-dialog{--el-dialog-width:50%;--el-dialog-margin-top:15vh;--el-dialog-bg-color:var(--el-bg-color);--el-dialog-box-shadow:var(--el-box-shadow);--el-dialog-title-font-size:var(--el-font-size-large);--el-dialog-content-font-size:14px;--el-dialog-font-line-height:var(--el-font-line-height-primary);--el-dialog-padding-primary:16px;--el-dialog-border-radius:var(--el-border-radius-small);background:var(--el-dialog-bg-color);border-radius:var(--el-dialog-border-radius);box-shadow:var(--el-dialog-box-shadow);box-sizing:border-box;margin:var(--el-dialog-margin-top,15vh) auto 50px;overflow-wrap:break-word;padding:var(--el-dialog-padding-primary);position:relative;width:var(--el-dialog-width,50%)}.el-dialog:focus{outline:none!important}.el-dialog.is-align-center{margin:auto}.el-dialog.is-fullscreen{--el-dialog-width:100%;--el-dialog-margin-top:0;height:100%;margin-bottom:0;overflow:auto}.el-dialog__wrapper{bottom:0;left:0;margin:0;overflow:auto;position:fixed;right:0;top:0}.el-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-dialog__header{padding-bottom:var(--el-dialog-padding-primary)}.el-dialog__header.show-close{padding-right:calc(var(--el-dialog-padding-primary) + var(--el-message-close-size, 16px))}.el-dialog__headerbtn{background:transparent;border:none;cursor:pointer;font-size:var(--el-message-close-size,16px);height:48px;outline:none;padding:0;position:absolute;right:0;top:0;width:48px}.el-dialog__headerbtn .el-dialog__close{color:var(--el-color-info);font-size:inherit}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:var(--el-color-primary)}.el-dialog__title{color:var(--el-text-color-primary);font-size:var(--el-dialog-title-font-size);line-height:var(--el-dialog-font-line-height)}.el-dialog__body{color:var(--el-text-color-regular);font-size:var(--el-dialog-content-font-size)}.el-dialog__footer{box-sizing:border-box;padding-top:var(--el-dialog-padding-primary);text-align:right}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial}.el-dialog--center .el-dialog__footer{text-align:inherit}.el-overlay-dialog{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:0}.dialog-fade-enter-active{-webkit-animation:modal-fade-in var(--el-transition-duration);animation:modal-fade-in var(--el-transition-duration)}.dialog-fade-enter-active .el-overlay-dialog{-webkit-animation:dialog-fade-in var(--el-transition-duration);animation:dialog-fade-in var(--el-transition-duration)}.dialog-fade-leave-active{-webkit-animation:modal-fade-out var(--el-transition-duration);animation:modal-fade-out var(--el-transition-duration)}.dialog-fade-leave-active .el-overlay-dialog{-webkit-animation:dialog-fade-out var(--el-transition-duration);animation:dialog-fade-out var(--el-transition-duration)}@-webkit-keyframes dialog-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes dialog-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@-webkit-keyframes dialog-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}@keyframes dialog-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}@-webkit-keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@-webkit-keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}.el-table{--el-table-border-color:var(--el-border-color-lighter);--el-table-border:1px solid var(--el-table-border-color);--el-table-text-color:var(--el-text-color-regular);--el-table-header-text-color:var(--el-text-color-secondary);--el-table-row-hover-bg-color:var(--el-fill-color-light);--el-table-current-row-bg-color:var(--el-color-primary-light-9);--el-table-header-bg-color:var(--el-bg-color);--el-table-fixed-box-shadow:var(--el-box-shadow-light);--el-table-bg-color:var(--el-fill-color-blank);--el-table-tr-bg-color:var(--el-bg-color);--el-table-expanded-cell-bg-color:var(--el-fill-color-blank);--el-table-fixed-left-column:inset 10px 0 10px -10px rgba(0,0,0,.15);--el-table-fixed-right-column:inset -10px 0 10px -10px rgba(0,0,0,.15);--el-table-index:var(--el-index-normal);background-color:var(--el-table-bg-color);box-sizing:border-box;color:var(--el-table-text-color);font-size:14px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-width:100%;overflow:hidden;position:relative;width:100%}.el-table__inner-wrapper{display:flex;flex-direction:column;height:100%;position:relative}.el-table__inner-wrapper:before{bottom:0;height:1px;left:0}.el-table tbody:focus-visible{outline:none}.el-table.has-footer.el-table--fluid-height tr:last-child td.el-table__cell,.el-table.has-footer.el-table--scrollable-y tr:last-child td.el-table__cell{border-bottom-color:transparent}.el-table__empty-block{align-items:center;display:flex;justify-content:center;left:0;min-height:60px;position:-webkit-sticky;position:sticky;text-align:center;width:100%}.el-table__empty-text{color:var(--el-text-color-secondary);line-height:60px;width:50%}.el-table__expand-column .cell{padding:0;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-table__expand-icon{color:var(--el-text-color-regular);cursor:pointer;font-size:12px;height:20px;position:relative;transition:transform var(--el-transition-duration-fast) ease-in-out}.el-table__expand-icon--expanded{transform:rotate(90deg)}.el-table__expand-icon>.el-icon{font-size:12px}.el-table__expanded-cell{background-color:var(--el-table-expanded-cell-bg-color)}.el-table__expanded-cell[class*=cell]{padding:20px 50px}.el-table__expanded-cell:hover{background-color:transparent!important}.el-table__placeholder{display:inline-block;width:20px}.el-table__append-wrapper{overflow:hidden}.el-table--fit{border-bottom:0;border-right:0}.el-table--fit .el-table__cell.gutter{border-right-width:1px}.el-table--fit .el-table__inner-wrapper:before{width:100%}.el-table thead{color:var(--el-table-header-text-color)}.el-table thead th{font-weight:600}.el-table thead.is-group th.el-table__cell{background:var(--el-fill-color-light)}.el-table .el-table__cell{box-sizing:border-box;min-width:0;padding:8px 0;position:relative;text-align:left;text-overflow:ellipsis;vertical-align:middle;z-index:var(--el-table-index)}.el-table .el-table__cell.is-center{text-align:center}.el-table .el-table__cell.is-right{text-align:right}.el-table .el-table__cell.gutter{border-bottom-width:0;border-right-width:0;padding:0;width:15px}.el-table .el-table__cell.is-hidden>*{visibility:hidden}.el-table .cell{box-sizing:border-box;line-height:23px;overflow:hidden;overflow-wrap:break-word;padding:0 12px;text-overflow:ellipsis;white-space:normal}.el-table .cell.el-tooltip{min-width:50px;white-space:nowrap}.el-table--large{font-size:var(--el-font-size-base)}.el-table--large .el-table__cell{padding:12px 0}.el-table--large .cell{padding:0 16px}.el-table--default{font-size:14px}.el-table--default .el-table__cell{padding:8px 0}.el-table--default .cell{padding:0 12px}.el-table--small{font-size:12px}.el-table--small .el-table__cell{padding:4px 0}.el-table--small .cell{padding:0 8px}.el-table tr{background-color:var(--el-table-tr-bg-color)}.el-table tr input[type=checkbox]{margin:0}.el-table td.el-table__cell,.el-table th.el-table__cell.is-leaf{border-bottom:var(--el-table-border)}.el-table th.el-table__cell.is-sortable{cursor:pointer}.el-table th.el-table__cell{background-color:var(--el-table-header-bg-color)}.el-table th.el-table__cell>.cell.highlight{color:var(--el-color-primary)}.el-table th.el-table__cell.required>div:before{background:#ff4d51;border-radius:50%;content:"";display:inline-block;height:8px;margin-right:5px;vertical-align:middle;width:8px}.el-table td.el-table__cell div{box-sizing:border-box}.el-table td.el-table__cell.gutter{width:0}.el-table--border .el-table__inner-wrapper:after,.el-table--border:after,.el-table--border:before,.el-table__inner-wrapper:before{background-color:var(--el-table-border-color);content:"";position:absolute;z-index:calc(var(--el-table-index) + 2)}.el-table--border .el-table__inner-wrapper:after{height:1px;left:0;top:0;width:100%;z-index:calc(var(--el-table-index) + 2)}.el-table--border:before{height:100%;left:0;top:-1px;width:1px}.el-table--border:after{height:100%;right:0;top:-1px;width:1px}.el-table--border .el-table__inner-wrapper{border-bottom:none;border-right:none}.el-table--border .el-table__footer-wrapper{flex-shrink:0;position:relative}.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table--border th.el-table__cell.gutter:last-of-type{border-bottom:var(--el-table-border);border-bottom-width:1px}.el-table--border th.el-table__cell{border-bottom:var(--el-table-border)}.el-table--hidden{visibility:hidden}.el-table__body-wrapper,.el-table__footer-wrapper,.el-table__header-wrapper{width:100%}.el-table__body-wrapper tr td.el-table-fixed-column--left,.el-table__body-wrapper tr td.el-table-fixed-column--right,.el-table__body-wrapper tr th.el-table-fixed-column--left,.el-table__body-wrapper tr th.el-table-fixed-column--right,.el-table__footer-wrapper tr td.el-table-fixed-column--left,.el-table__footer-wrapper tr td.el-table-fixed-column--right,.el-table__footer-wrapper tr th.el-table-fixed-column--left,.el-table__footer-wrapper tr th.el-table-fixed-column--right,.el-table__header-wrapper tr td.el-table-fixed-column--left,.el-table__header-wrapper tr td.el-table-fixed-column--right,.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right{background:inherit;position:-webkit-sticky!important;position:sticky!important;z-index:calc(var(--el-table-index) + 1)}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column:before{bottom:-1px;box-shadow:none;content:"";overflow-x:hidden;overflow-y:hidden;pointer-events:none;position:absolute;top:0;touch-action:none;width:10px}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column:before{left:-10px}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column:before{box-shadow:none;right:-10px}.el-table__body-wrapper tr td.el-table__fixed-right-patch,.el-table__body-wrapper tr th.el-table__fixed-right-patch,.el-table__footer-wrapper tr td.el-table__fixed-right-patch,.el-table__footer-wrapper tr th.el-table__fixed-right-patch,.el-table__header-wrapper tr td.el-table__fixed-right-patch,.el-table__header-wrapper tr th.el-table__fixed-right-patch{background:#fff;position:-webkit-sticky!important;position:sticky!important;right:0;z-index:calc(var(--el-table-index) + 1)}.el-table__header-wrapper{flex-shrink:0}.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__body,.el-table__footer,.el-table__header{border-collapse:separate;table-layout:fixed}.el-table__header-wrapper{overflow:hidden}.el-table__header-wrapper tbody td.el-table__cell{background-color:var(--el-table-row-hover-bg-color);color:var(--el-table-text-color)}.el-table__footer-wrapper{flex-shrink:0;overflow:hidden}.el-table__footer-wrapper tfoot td.el-table__cell{background-color:var(--el-table-row-hover-bg-color);color:var(--el-table-text-color)}.el-table__body-wrapper .el-table-column--selection>.cell,.el-table__header-wrapper .el-table-column--selection>.cell{align-items:center;display:inline-flex;height:23px}.el-table__body-wrapper .el-table-column--selection .el-checkbox,.el-table__header-wrapper .el-table-column--selection .el-checkbox{height:unset}.el-table.is-scrolling-left .el-table-fixed-column--right.is-first-column:before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-left.el-table--border .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:var(--el-table-border)}.el-table.is-scrolling-left th.el-table-fixed-column--left{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column:before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-right th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-middle .el-table-fixed-column--right.is-first-column:before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column:before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-none .el-table-fixed-column--left.is-first-column:before,.el-table.is-scrolling-none .el-table-fixed-column--left.is-last-column:before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-first-column:before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-last-column:before{box-shadow:none}.el-table.is-scrolling-none th.el-table-fixed-column--left,.el-table.is-scrolling-none th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__body-wrapper{flex:1;overflow:hidden;position:relative}.el-table__body-wrapper .el-scrollbar__bar{z-index:calc(var(--el-table-index) + 2)}.el-table .caret-wrapper{align-items:center;cursor:pointer;display:inline-flex;flex-direction:column;height:14px;overflow:initial;position:relative;vertical-align:middle;width:24px}.el-table .sort-caret{border:5px solid transparent;height:0;left:7px;position:absolute;width:0}.el-table .sort-caret.ascending{border-bottom-color:var(--el-text-color-placeholder);top:-5px}.el-table .sort-caret.descending{border-top-color:var(--el-text-color-placeholder);bottom:-3px}.el-table .ascending .sort-caret.ascending{border-bottom-color:var(--el-color-primary)}.el-table .descending .sort-caret.descending{border-top-color:var(--el-color-primary)}.el-table .hidden-columns{position:absolute;visibility:hidden;z-index:-1}.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell{background:var(--el-fill-color-lighter)}.el-table--striped .el-table__body tr.el-table__row--striped.current-row td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table__body tr.hover-row.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped>td.el-table__cell,.el-table__body tr.hover-row>td.el-table__cell{background-color:var(--el-table-row-hover-bg-color)}.el-table__body tr>td.hover-cell{background-color:var(--el-table-row-hover-bg-color)}.el-table__body tr.current-row>td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table.el-table--scrollable-y .el-table__body-header{position:-webkit-sticky;position:sticky;top:0;z-index:calc(var(--el-table-index) + 2)}.el-table.el-table--scrollable-y .el-table__body-footer{bottom:0;position:-webkit-sticky;position:sticky;z-index:calc(var(--el-table-index) + 2)}.el-table__column-resize-proxy{border-left:var(--el-table-border);bottom:0;left:200px;position:absolute;top:0;width:0;z-index:calc(var(--el-table-index) + 9)}.el-table__column-filter-trigger{cursor:pointer;display:inline-block}.el-table__column-filter-trigger i{color:var(--el-color-info);font-size:14px;vertical-align:middle}.el-table__border-left-patch{height:100%;top:0;width:1px}.el-table__border-bottom-patch,.el-table__border-left-patch{background-color:var(--el-table-border-color);left:0;position:absolute;z-index:calc(var(--el-table-index) + 2)}.el-table__border-bottom-patch{height:1px}.el-table__border-right-patch{background-color:var(--el-table-border-color);height:100%;position:absolute;top:0;width:1px;z-index:calc(var(--el-table-index) + 2)}.el-table--enable-row-transition .el-table__body td.el-table__cell{transition:background-color .25s ease}.el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{background-color:var(--el-table-row-hover-bg-color)}.el-table [class*=el-table__row--level] .el-table__expand-icon{display:inline-block;height:12px;line-height:12px;margin-right:8px;text-align:center;width:12px}.el-table .el-table.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table:not(.el-table--border) .el-table__cell{border-right:none}.el-table:not(.el-table--border)>.el-table__inner-wrapper:after{content:none}.el-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-loading-spinner-size:42px;--el-loading-fullscreen-spinner-size:50px}.el-loading-parent--relative{position:relative!important}.el-loading-parent--hidden{overflow:hidden!important}.el-loading-mask{background-color:var(--el-mask-color);bottom:0;left:0;margin:0;position:absolute;right:0;top:0;transition:opacity var(--el-transition-duration);z-index:2000}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:calc((0px - var(--el-loading-fullscreen-spinner-size))/2)}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{height:var(--el-loading-fullscreen-spinner-size);width:var(--el-loading-fullscreen-spinner-size)}.el-loading-spinner{margin-top:calc((0px - var(--el-loading-spinner-size))/2);position:absolute;text-align:center;top:50%;width:100%}.el-loading-spinner .el-loading-text{color:var(--el-color-primary);font-size:14px;margin:3px 0}.el-loading-spinner .circular{-webkit-animation:loading-rotate 2s linear infinite;animation:loading-rotate 2s linear infinite;display:inline;height:var(--el-loading-spinner-size);width:var(--el-loading-spinner-size)}.el-loading-spinner .path{-webkit-animation:loading-dash 1.5s ease-in-out infinite;animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:var(--el-color-primary);stroke-linecap:round}.el-loading-spinner i{color:var(--el-color-primary)}.el-loading-fade-enter-from,.el-loading-fade-leave-to{opacity:0}@-webkit-keyframes loading-rotate{to{transform:rotate(1turn)}}@keyframes loading-rotate{to{transform:rotate(1turn)}}@-webkit-keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}.el-drawer{--el-drawer-bg-color:var(--el-dialog-bg-color,var(--el-bg-color));--el-drawer-padding-primary:var(--el-dialog-padding-primary,20px);background-color:var(--el-drawer-bg-color);box-shadow:var(--el-box-shadow-dark);box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;position:absolute;transition:all var(--el-transition-duration)}.el-drawer .btt,.el-drawer .ltr,.el-drawer .rtl,.el-drawer .ttb{transform:translate(0)}.el-drawer__sr-focus:focus{outline:none!important}.el-drawer__header{align-items:center;color:#72767b;display:flex;margin-bottom:32px;padding:var(--el-drawer-padding-primary);padding-bottom:0}.el-drawer__header>:first-child{flex:1}.el-drawer__title{flex:1;font-size:16px;line-height:inherit;margin:0}.el-drawer__footer{padding:var(--el-drawer-padding-primary);padding-top:10px;text-align:right}.el-drawer__close-btn{background-color:transparent;border:none;color:inherit;cursor:pointer;display:inline-flex;font-size:var(--el-font-size-extra-large);outline:none}.el-drawer__close-btn:focus i,.el-drawer__close-btn:hover i{color:var(--el-color-primary)}.el-drawer__body{flex:1;overflow:auto;padding:var(--el-drawer-padding-primary)}.el-drawer__body>*{box-sizing:border-box}.el-drawer.ltr,.el-drawer.rtl{bottom:0;height:100%;top:0}.el-drawer.btt,.el-drawer.ttb{left:0;right:0;width:100%}.el-drawer.ltr{left:0}.el-drawer.rtl{right:0}.el-drawer.ttb{top:0}.el-drawer.btt{bottom:0}.el-drawer-fade-enter-active,.el-drawer-fade-leave-active{transition:all var(--el-transition-duration)}.el-drawer-fade-enter-active,.el-drawer-fade-enter-from,.el-drawer-fade-enter-to,.el-drawer-fade-leave-active,.el-drawer-fade-leave-from,.el-drawer-fade-leave-to{overflow:hidden!important}.el-drawer-fade-enter-from,.el-drawer-fade-leave-to{opacity:0}.el-drawer-fade-enter-to,.el-drawer-fade-leave-from{opacity:1}.el-drawer-fade-enter-from .rtl,.el-drawer-fade-leave-to .rtl{transform:translate(100%)}.el-drawer-fade-enter-from .ltr,.el-drawer-fade-leave-to .ltr{transform:translate(-100%)}.el-drawer-fade-enter-from .ttb,.el-drawer-fade-leave-to .ttb{transform:translateY(-100%)}.el-drawer-fade-enter-from .btt,.el-drawer-fade-leave-to .btt{transform:translateY(100%)}.el-button-group{display:inline-block;vertical-align:middle}.el-button-group:after,.el-button-group:before{content:"";display:table}.el-button-group:after{clear:both}.el-button-group>.el-button{float:left;position:relative}.el-button-group>.el-button+.el-button{margin-left:0}.el-button-group>.el-button:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.el-button-group>.el-button:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.el-button-group>.el-button:first-child:last-child{border-bottom-left-radius:var(--el-border-radius-base);border-bottom-right-radius:var(--el-border-radius-base);border-top-left-radius:var(--el-border-radius-base);border-top-right-radius:var(--el-border-radius-base)}.el-button-group>.el-button:first-child:last-child.is-round{border-radius:var(--el-border-radius-round)}.el-button-group>.el-button:first-child:last-child.is-circle{border-radius:50%}.el-button-group>.el-button:not(:first-child):not(:last-child){border-radius:0}.el-button-group>.el-button:not(:last-child){margin-right:-1px}.el-button-group>.el-button:active,.el-button-group>.el-button:focus,.el-button-group>.el-button:hover{z-index:1}.el-button-group>.el-button.is-active{z-index:1}.el-button-group>.el-dropdown>.el-button{border-bottom-left-radius:0;border-left-color:var(--el-button-divide-border-color);border-top-left-radius:0}.el-button-group .el-button--primary:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-container{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0}.el-container.is-vertical{flex-direction:column}.el-aside{box-sizing:border-box;flex-shrink:0;overflow:auto;width:var(--el-aside-width,300px)}.el-footer{--el-footer-padding:0 20px;--el-footer-height:60px;box-sizing:border-box;flex-shrink:0;height:var(--el-footer-height);padding:var(--el-footer-padding)}.el-header{--el-header-padding:0 20px;--el-header-height:60px;box-sizing:border-box;flex-shrink:0;height:var(--el-header-height);padding:var(--el-header-padding)}.el-main{--el-main-padding:20px;box-sizing:border-box;display:block;flex:1;flex-basis:auto;overflow:auto;padding:var(--el-main-padding)}.el-text{--el-text-font-size:var(--el-font-size-base);--el-text-color:var(--el-text-color-regular);align-self:center;color:var(--el-text-color);font-size:var(--el-text-font-size);margin:0;overflow-wrap:break-word;padding:0}.el-text.is-truncated{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-text.is-line-clamp{display:-webkit-inline-box;-webkit-box-orient:vertical;overflow:hidden}.el-text--large{--el-text-font-size:var(--el-font-size-medium)}.el-text--default{--el-text-font-size:var(--el-font-size-base)}.el-text--small{--el-text-font-size:var(--el-font-size-extra-small)}.el-text.el-text--primary{--el-text-color:var(--el-color-primary)}.el-text.el-text--success{--el-text-color:var(--el-color-success)}.el-text.el-text--warning{--el-text-color:var(--el-color-warning)}.el-text.el-text--danger{--el-text-color:var(--el-color-danger)}.el-text.el-text--error{--el-text-color:var(--el-color-error)}.el-text.el-text--info{--el-text-color:var(--el-color-info)}.el-text>.el-icon{vertical-align:-2px}.nodeBox[data-v-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-239d39a6]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff}.nodeTitle[data-v-239d39a6]{background-color:#9171e3;color:#fff;font-weight:500;font-size:.9rem;padding:5px}.optionWidth[data-v-239d39a6]{width:130px}.nodeBox[data-v-d20b4358]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;overflow:hidden}.nodeTitle[data-v-d20b4358]{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}.nodeBox[data-v-adb37cc6]{border:2px #0000000e solid;height:100%;width:100%;background-color:#fff;font-size:12px}.nodeTitle[data-v-adb37cc6]{background-color:#6a2c70;color:#fff;font-weight:500;font-size:14px;padding:5px}.optionWidth[data-v-adb37cc6]{width:110px}.el-notification{--el-notification-width:330px;--el-notification-padding:14px 26px 14px 13px;--el-notification-radius:8px;--el-notification-shadow:var(--el-box-shadow-light);--el-notification-border-color:var(--el-border-color-lighter);--el-notification-icon-size:24px;--el-notification-close-font-size:var(--el-message-close-size,16px);--el-notification-group-margin-left:13px;--el-notification-group-margin-right:8px;--el-notification-content-font-size:var(--el-font-size-base);--el-notification-content-color:var(--el-text-color-regular);--el-notification-title-font-size:16px;--el-notification-title-color:var(--el-text-color-primary);--el-notification-close-color:var(--el-text-color-secondary);--el-notification-close-hover-color:var(--el-text-color-regular);background-color:var(--el-bg-color-overlay);border:1px solid var(--el-notification-border-color);border-radius:var(--el-notification-radius);box-shadow:var(--el-notification-shadow);box-sizing:border-box;display:flex;overflow:hidden;overflow-wrap:break-word;padding:var(--el-notification-padding);position:fixed;transition:opacity var(--el-transition-duration),transform var(--el-transition-duration),left var(--el-transition-duration),right var(--el-transition-duration),top .4s,bottom var(--el-transition-duration);width:var(--el-notification-width);z-index:9999}.el-notification.right{right:16px}.el-notification.left{left:16px}.el-notification__group{margin-left:var(--el-notification-group-margin-left);margin-right:var(--el-notification-group-margin-right)}.el-notification__title{color:var(--el-notification-title-color);font-size:var(--el-notification-title-font-size);font-weight:700;line-height:var(--el-notification-icon-size);margin:0}.el-notification__content{color:var(--el-notification-content-color);font-size:var(--el-notification-content-font-size);line-height:24px;margin:6px 0 0}.el-notification__content p{margin:0}.el-notification .el-notification__icon{font-size:var(--el-notification-icon-size);height:var(--el-notification-icon-size);width:var(--el-notification-icon-size)}.el-notification .el-notification__closeBtn{color:var(--el-notification-close-color);cursor:pointer;font-size:var(--el-notification-close-font-size);position:absolute;right:15px;top:18px}.el-notification .el-notification__closeBtn:hover{color:var(--el-notification-close-hover-color)}.el-notification .el-notification--success{--el-notification-icon-color:var(--el-color-success);color:var(--el-notification-icon-color)}.el-notification .el-notification--info{--el-notification-icon-color:var(--el-color-info);color:var(--el-notification-icon-color)}.el-notification .el-notification--warning{--el-notification-icon-color:var(--el-color-warning);color:var(--el-notification-icon-color)}.el-notification .el-notification--error{--el-notification-icon-color:var(--el-color-error);color:var(--el-notification-icon-color)}.el-notification-fade-enter-from.right{right:0;transform:translate(100%)}.el-notification-fade-enter-from.left{left:0;transform:translate(-100%)}.el-notification-fade-leave-to{opacity:0}.el-container[data-v-c1afb5d2],.el-header[data-v-c1afb5d2],.el-main[data-v-c1afb5d2],.el-footer[data-v-c1afb5d2]{padding:0}.el-main[data-v-c1afb5d2]{position:relative!important}#canvas[data-v-c1afb5d2]{min-height:85vh}.node-btn[data-v-c1afb5d2]{cursor:pointer;border:1px solid #eee;padding:10px;margin-bottom:6px;font-size:9pt;width:100px;background-color:#fff}.DialogNode[data-v-c1afb5d2]{border-left:5px solid rgb(255,196,0)}.ConditionNode[data-v-c1afb5d2]{border-left:5px solid rgb(145,113,227)}.CollectNode[data-v-c1afb5d2]{border-left:5px solid rgb(90,213,235)}.GotoNode[data-v-c1afb5d2]{border-left:5px solid rgb(67,211,153)}.ExternalHttpNode[data-v-c1afb5d2]{border-left:5px solid rgb(1,165,188)}.SendEmailNode[data-v-c1afb5d2]{border-left:5px solid rgb(255,101,85)}.EndNode[data-v-c1afb5d2]{border-left:5px solid rgb(34,25,106)}.LlmChatNode[data-v-c1afb5d2]{border-left:5px solid #6a2c70}.nodesBox[data-v-c1afb5d2]{display:flex;flex-direction:column;position:absolute;top:20px;left:20px;z-index:100;width:100px}.subFlowBtn[data-v-c1afb5d2]{padding:5px;border-bottom:gray solid 1px;cursor:pointer;font-size:13px}.userText[data-v-c1afb5d2]{text-align:right;margin-bottom:16px}.userText span[data-v-c1afb5d2]{padding:4px;border:#91b6ff 1px solid;border-radius:6px;background-color:#f1f6ff}.responseText[data-v-c1afb5d2]{text-align:left;margin-bottom:16px}.responseText span[data-v-c1afb5d2]{padding:4px;border:#8bda1d 1px solid;border-radius:6px;background-color:#efffd8;white-space:pre-wrap;display:inline-block}.terminateText[data-v-c1afb5d2]{text-align:center;margin-bottom:16px}.terminateText span[data-v-c1afb5d2]{padding:4px;border:#d3d3d3 1px solid;border-radius:6px;background-color:#ebebeb;white-space:pre-wrap;display:inline-block}.newSubFlowBtn[data-v-c1afb5d2]{color:#fff;padding-left:5px;padding-top:5px;padding-bottom:5px;background:linear-gradient(45deg,#e68dbf,pink);cursor:pointer;font-size:16px}.el-space{display:inline-flex;vertical-align:top}.el-space__item{display:flex;flex-wrap:wrap}.el-space__item>*{flex:1}.el-space--vertical{flex-direction:column}.el-result{--el-result-padding:40px 30px;--el-result-icon-font-size:64px;--el-result-title-font-size:20px;--el-result-title-margin-top:20px;--el-result-subtitle-margin-top:10px;--el-result-extra-margin-top:30px;align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding:var(--el-result-padding);text-align:center}.el-result__icon svg{height:var(--el-result-icon-font-size);width:var(--el-result-icon-font-size)}.el-result__title{margin-top:var(--el-result-title-margin-top)}.el-result__title p{color:var(--el-text-color-primary);font-size:var(--el-result-title-font-size);line-height:1.3;margin:0}.el-result__subtitle{margin-top:var(--el-result-subtitle-margin-top)}.el-result__subtitle p{color:var(--el-text-color-regular);font-size:var(--el-font-size-base);line-height:1.3;margin:0}.el-result__extra{margin-top:var(--el-result-extra-margin-top)}.el-result .icon-primary{--el-result-color:var(--el-color-primary);color:var(--el-result-color)}.el-result .icon-success{--el-result-color:var(--el-color-success);color:var(--el-result-color)}.el-result .icon-warning{--el-result-color:var(--el-color-warning);color:var(--el-result-color)}.el-result .icon-danger{--el-result-color:var(--el-color-danger);color:var(--el-result-color)}.el-result .icon-error{--el-result-color:var(--el-color-error);color:var(--el-result-color)}.el-result .icon-info{--el-result-color:var(--el-color-info);color:var(--el-result-color)}.el-popover{--el-popover-bg-color:var(--el-bg-color-overlay);--el-popover-font-size:var(--el-font-size-base);--el-popover-border-color:var(--el-border-color-lighter);--el-popover-padding:12px;--el-popover-padding-large:18px 20px;--el-popover-title-font-size:16px;--el-popover-title-text-color:var(--el-text-color-primary);--el-popover-border-radius:4px}.el-popover.el-popper{background:var(--el-popover-bg-color);border:1px solid var(--el-popover-border-color);border-radius:var(--el-popover-border-radius);box-shadow:var(--el-box-shadow-light);box-sizing:border-box;color:var(--el-text-color-regular);font-size:var(--el-popover-font-size);line-height:1.4;min-width:150px;overflow-wrap:break-word;padding:var(--el-popover-padding);z-index:var(--el-index-popper)}.el-popover.el-popper--plain{padding:var(--el-popover-padding-large)}.el-popover__title{color:var(--el-popover-title-text-color);font-size:var(--el-popover-title-font-size);line-height:1;margin-bottom:12px}.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing){outline-width:0}.el-popover.el-popper.is-dark{--el-popover-bg-color:var(--el-text-color-primary);--el-popover-border-color:var(--el-text-color-primary);--el-popover-title-text-color:var(--el-bg-color);color:var(--el-bg-color)}.el-popover.el-popper:focus,.el-popover.el-popper:focus:active{outline-width:0}.header-row[data-v-4145b158]{margin-top:20px}.header[data-v-4145b158]{margin-left:20px;font-size:38px;font-weight:700}.title[data-v-4145b158]{font-size:28px;font-weight:700;margin-top:35px}.description[data-v-4145b158]{font-size:16px;color:#b8b8b8;padding-bottom:20px;border-bottom:#b8b8b8 1px solid}.tips[data-v-4145b158]{text-align:right;margin-right:30px}#robotList .el-col[data-v-4145b158]{border-radius:4px;margin-bottom:20px}.bg-color-light[data-v-4145b158]{border:#e5e9f2 1px solid;border-left:3px solid #d3dce6;text-align:center;line-height:30px}.grid-content[data-v-4145b158]{border-radius:4px;min-height:36px}.el-tabs{--el-tabs-header-height:40px}.el-tabs__header{margin:0 0 15px;padding:0;position:relative}.el-tabs__active-bar{background-color:var(--el-color-primary);bottom:0;height:2px;left:0;list-style:none;position:absolute;transition:width var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),transform var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);z-index:1}.el-tabs__new-tab{align-items:center;border:1px solid var(--el-border-color);border-radius:3px;color:var(--el-text-color-primary);cursor:pointer;display:flex;float:right;font-size:12px;height:20px;justify-content:center;line-height:20px;margin:10px 0 10px 10px;text-align:center;transition:all .15s;width:20px}.el-tabs__new-tab .is-icon-plus{height:inherit;transform:scale(.8);width:inherit}.el-tabs__new-tab .is-icon-plus svg{vertical-align:middle}.el-tabs__new-tab:hover{color:var(--el-color-primary)}.el-tabs__nav-wrap{margin-bottom:-1px;overflow:hidden;position:relative}.el-tabs__nav-wrap:after{background-color:var(--el-border-color-light);bottom:0;content:"";height:2px;left:0;position:absolute;width:100%;z-index:var(--el-index-normal)}.el-tabs__nav-wrap.is-scrollable{box-sizing:border-box;padding:0 20px}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{color:var(--el-text-color-secondary);cursor:pointer;font-size:12px;line-height:44px;position:absolute;text-align:center;width:20px}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{display:flex;float:left;position:relative;transition:transform var(--el-transition-duration);white-space:nowrap;z-index:calc(var(--el-index-normal) + 1)}.el-tabs__nav.is-stretch{display:flex;min-width:100%}.el-tabs__nav.is-stretch>*{flex:1;text-align:center}.el-tabs__item{align-items:center;box-sizing:border-box;color:var(--el-text-color-primary);display:flex;font-size:var(--el-font-size-base);font-weight:500;height:var(--el-tabs-header-height);justify-content:center;list-style:none;padding:0 20px;position:relative}.el-tabs__item:focus,.el-tabs__item:focus:active{outline:none}.el-tabs__item:focus-visible{border-radius:3px;box-shadow:0 0 2px 2px var(--el-color-primary) inset}.el-tabs__item .is-icon-close{border-radius:50%;margin-left:5px;text-align:center;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs__item .is-icon-close:before{display:inline-block;transform:scale(.9)}.el-tabs__item .is-icon-close:hover{background-color:var(--el-text-color-placeholder);color:#fff}.el-tabs__item.is-active{color:var(--el-color-primary)}.el-tabs__item:hover{color:var(--el-color-primary);cursor:pointer}.el-tabs__item.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-tabs__content{overflow:hidden;position:relative}.el-tabs--card>.el-tabs__header{border-bottom:1px solid var(--el-border-color-light);height:var(--el-tabs-header-height)}.el-tabs--card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--card>.el-tabs__header .el-tabs__nav{border:1px solid var(--el-border-color-light);border-bottom:none;border-radius:4px 4px 0 0;box-sizing:border-box}.el-tabs--card>.el-tabs__header .el-tabs__active-bar{display:none}.el-tabs--card>.el-tabs__header .el-tabs__item .is-icon-close{font-size:12px;height:14px;overflow:hidden;position:relative;right:-2px;transform-origin:100% 50%;width:0}.el-tabs--card>.el-tabs__header .el-tabs__item{border-bottom:1px solid transparent;border-left:1px solid var(--el-border-color-light);transition:color var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),padding var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs--card>.el-tabs__header .el-tabs__item:first-child{border-left:none}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover{padding-left:13px;padding-right:13px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover .is-icon-close{width:14px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:var(--el-bg-color)}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable{padding-left:20px;padding-right:20px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable .is-icon-close{width:14px}.el-tabs--border-card{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color)}.el-tabs--border-card>.el-tabs__content{padding:15px}.el-tabs--border-card>.el-tabs__header{background-color:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color-light);margin:0}.el-tabs--border-card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--border-card>.el-tabs__header .el-tabs__item{border:1px solid transparent;color:var(--el-text-color-secondary);margin-top:-1px;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:first-child{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item+.el-tabs__item{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{background-color:var(--el-bg-color-overlay);border-left-color:var(--el-border-color);border-right-color:var(--el-border-color);color:var(--el-color-primary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover{color:var(--el-color-primary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-disabled{color:var(--el-disabled-text-color)}.el-tabs--border-card>.el-tabs__header .is-scrollable .el-tabs__item:first-child{margin-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:nth-child(2),.el-tabs--bottom .el-tabs__item.is-top:nth-child(2),.el-tabs--top .el-tabs__item.is-bottom:nth-child(2),.el-tabs--top .el-tabs__item.is-top:nth-child(2){padding-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:last-child,.el-tabs--bottom .el-tabs__item.is-top:last-child,.el-tabs--top .el-tabs__item.is-bottom:last-child,.el-tabs--top .el-tabs__item.is-top:last-child{padding-right:0}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:20px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover{padding-left:13px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child{padding-right:20px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover{padding-right:13px}.el-tabs--bottom .el-tabs__header.is-bottom{margin-bottom:0;margin-top:10px}.el-tabs--bottom.el-tabs--border-card .el-tabs__header.is-bottom{border-bottom:0;border-top:1px solid var(--el-border-color)}.el-tabs--bottom.el-tabs--border-card .el-tabs__nav-wrap.is-bottom{margin-bottom:0;margin-top:-1px}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom:not(.is-active){border:1px solid transparent}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom{margin:0 -1px -1px}.el-tabs--left,.el-tabs--right{overflow:hidden}.el-tabs--left .el-tabs__header.is-left,.el-tabs--left .el-tabs__header.is-right,.el-tabs--left .el-tabs__nav-scroll,.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__header.is-left,.el-tabs--right .el-tabs__header.is-right,.el-tabs--right .el-tabs__nav-scroll,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{height:100%}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__active-bar.is-right,.el-tabs--right .el-tabs__active-bar.is-left,.el-tabs--right .el-tabs__active-bar.is-right{bottom:auto;height:auto;top:0;width:2px}.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{margin-bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{cursor:pointer;height:30px;line-height:30px;text-align:center;width:100%}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i{transform:rotate(90deg)}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{left:auto;top:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next{bottom:0;right:auto}.el-tabs--left .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--left .el-tabs__nav-wrap.is-right.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-right.is-scrollable{padding:30px 0}.el-tabs--left .el-tabs__nav-wrap.is-left:after,.el-tabs--left .el-tabs__nav-wrap.is-right:after,.el-tabs--right .el-tabs__nav-wrap.is-left:after,.el-tabs--right .el-tabs__nav-wrap.is-right:after{bottom:auto;height:100%;top:0;width:2px}.el-tabs--left .el-tabs__nav.is-left,.el-tabs--left .el-tabs__nav.is-right,.el-tabs--right .el-tabs__nav.is-left,.el-tabs--right .el-tabs__nav.is-right{flex-direction:column}.el-tabs--left .el-tabs__item.is-left,.el-tabs--right .el-tabs__item.is-left{justify-content:flex-end}.el-tabs--left .el-tabs__item.is-right,.el-tabs--right .el-tabs__item.is-right{justify-content:flex-start}.el-tabs--left .el-tabs__header.is-left{float:left;margin-bottom:0;margin-right:10px}.el-tabs--left .el-tabs__nav-wrap.is-left{margin-right:-1px}.el-tabs--left .el-tabs__nav-wrap.is-left:after{left:auto;right:0}.el-tabs--left .el-tabs__active-bar.is-left{left:auto;right:0}.el-tabs--left .el-tabs__item.is-left{text-align:right}.el-tabs--left.el-tabs--card .el-tabs__active-bar.is-left{display:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left{border-bottom:none;border-left:none;border-right:1px solid var(--el-border-color-light);border-top:1px solid var(--el-border-color-light);text-align:left}.el-tabs--left.el-tabs--card .el-tabs__item.is-left:first-child{border-right:1px solid var(--el-border-color-light);border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active{border:1px solid var(--el-border-color-light);border-bottom:none;border-left:none;border-right:1px solid #fff}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:first-child{border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:last-child{border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__nav{border-bottom:1px solid var(--el-border-color-light);border-radius:4px 0 0 4px;border-right:none}.el-tabs--left.el-tabs--card .el-tabs__new-tab{float:none}.el-tabs--left.el-tabs--border-card .el-tabs__header.is-left{border-right:1px solid var(--el-border-color)}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left{border:1px solid transparent;margin:-1px 0 -1px -1px}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left.is-active{border-color:rgb(209,219,229) transparent}.el-tabs--right .el-tabs__header.is-right{float:right;margin-bottom:0;margin-left:10px}.el-tabs--right .el-tabs__nav-wrap.is-right{margin-left:-1px}.el-tabs--right .el-tabs__nav-wrap.is-right:after{left:0;right:auto}.el-tabs--right .el-tabs__active-bar.is-right{left:0}.el-tabs--right.el-tabs--card .el-tabs__active-bar.is-right{display:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right{border-bottom:none;border-top:1px solid var(--el-border-color-light)}.el-tabs--right.el-tabs--card .el-tabs__item.is-right:first-child{border-left:1px solid var(--el-border-color-light);border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active{border:1px solid var(--el-border-color-light);border-bottom:none;border-left:1px solid #fff;border-right:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:first-child{border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:last-child{border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__nav{border-bottom:1px solid var(--el-border-color-light);border-left:none;border-radius:0 4px 4px 0}.el-tabs--right.el-tabs--border-card .el-tabs__header.is-right{border-left:1px solid var(--el-border-color)}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right{border:1px solid transparent;margin:-1px -1px -1px 0}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right.is-active{border-color:rgb(209,219,229) transparent}.slideInLeft-transition,.slideInRight-transition{display:inline-block}.slideInRight-enter{-webkit-animation:slideInRight-enter var(--el-transition-duration);animation:slideInRight-enter var(--el-transition-duration)}.slideInRight-leave{-webkit-animation:slideInRight-leave var(--el-transition-duration);animation:slideInRight-leave var(--el-transition-duration);left:0;position:absolute;right:0}.slideInLeft-enter{-webkit-animation:slideInLeft-enter var(--el-transition-duration);animation:slideInLeft-enter var(--el-transition-duration)}.slideInLeft-leave{-webkit-animation:slideInLeft-leave var(--el-transition-duration);animation:slideInLeft-leave var(--el-transition-duration);left:0;position:absolute;right:0}@-webkit-keyframes slideInRight-enter{0%{opacity:0;transform:translate(100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@keyframes slideInRight-enter{0%{opacity:0;transform:translate(100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@-webkit-keyframes slideInRight-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(100%);transform-origin:0 0}}@keyframes slideInRight-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(100%);transform-origin:0 0}}@-webkit-keyframes slideInLeft-enter{0%{opacity:0;transform:translate(-100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@keyframes slideInLeft-enter{0%{opacity:0;transform:translate(-100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@-webkit-keyframes slideInLeft-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(-100%);transform-origin:0 0}}@keyframes slideInLeft-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(-100%);transform-origin:0 0}}.mainBody[data-v-4fd34b5d]{margin-left:20px;margin-right:20px}.my-header[data-v-4fd34b5d]{display:flex;flex-direction:row;justify-content:space-between}.el-link{--el-link-font-size:var(--el-font-size-base);--el-link-font-weight:var(--el-font-weight-primary);--el-link-text-color:var(--el-text-color-regular);--el-link-hover-text-color:var(--el-color-primary);--el-link-disabled-text-color:var(--el-text-color-placeholder);align-items:center;color:var(--el-link-text-color);cursor:pointer;display:inline-flex;flex-direction:row;font-size:var(--el-link-font-size);font-weight:var(--el-link-font-weight);justify-content:center;outline:none;padding:0;position:relative;text-decoration:none;vertical-align:middle}.el-link:hover{color:var(--el-link-hover-text-color)}.el-link.is-underline:hover:after{border-bottom:1px solid var(--el-link-hover-text-color);bottom:0;content:"";height:0;left:0;position:absolute;right:0}.el-link.is-disabled{color:var(--el-link-disabled-text-color);cursor:not-allowed}.el-link [class*=el-icon-]+span{margin-left:5px}.el-link.el-link--default:after{border-color:var(--el-link-hover-text-color)}.el-link__inner{align-items:center;display:inline-flex;justify-content:center}.el-link.el-link--primary{--el-link-text-color:var(--el-color-primary);--el-link-hover-text-color:var(--el-color-primary-light-3);--el-link-disabled-text-color:var(--el-color-primary-light-5)}.el-link.el-link--primary:after{border-color:var(--el-link-text-color)}.el-link.el-link--primary.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--success{--el-link-text-color:var(--el-color-success);--el-link-hover-text-color:var(--el-color-success-light-3);--el-link-disabled-text-color:var(--el-color-success-light-5)}.el-link.el-link--success:after{border-color:var(--el-link-text-color)}.el-link.el-link--success.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--warning{--el-link-text-color:var(--el-color-warning);--el-link-hover-text-color:var(--el-color-warning-light-3);--el-link-disabled-text-color:var(--el-color-warning-light-5)}.el-link.el-link--warning:after{border-color:var(--el-link-text-color)}.el-link.el-link--warning.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--danger{--el-link-text-color:var(--el-color-danger);--el-link-hover-text-color:var(--el-color-danger-light-3);--el-link-disabled-text-color:var(--el-color-danger-light-5)}.el-link.el-link--danger:after{border-color:var(--el-link-text-color)}.el-link.el-link--danger.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--error{--el-link-text-color:var(--el-color-error);--el-link-hover-text-color:var(--el-color-error-light-3);--el-link-disabled-text-color:var(--el-color-error-light-5)}.el-link.el-link--error:after{border-color:var(--el-link-text-color)}.el-link.el-link--error.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--info{--el-link-text-color:var(--el-color-info);--el-link-hover-text-color:var(--el-color-info-light-3);--el-link-disabled-text-color:var(--el-color-info-light-5)}.el-link.el-link--info:after{border-color:var(--el-link-text-color)}.el-link.el-link--info.is-underline:hover:after{border-color:var(--el-link-text-color)}.header-row[data-v-0ba8fb96]{margin-top:20px}.header[data-v-0ba8fb96]{margin-left:20px;font-size:38px;font-weight:700}.title[data-v-0ba8fb96]{font-size:28px;font-weight:700;margin-top:35px}.description[data-v-0ba8fb96]{font-size:16px;color:#b8b8b8;padding-bottom:20px;border-bottom:#b8b8b8 1px solid}.tips[data-v-0ba8fb96]{text-align:right;margin-right:30px}body{transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;padding:0}a,.green{text-decoration:none;color:#00bd7e;transition:.4s}@media (hover: hover){a:hover{background-color:#00bd7e33}}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.absolute{position:absolute}.relative{position:relative}.m-2{margin:.5rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.mr-3{margin-right:.75rem}.block{display:block}.inline-block{display:inline-block}.hidden{display:none}.w-20{width:5rem}.flex{display:flex}.items-center{align-items:center}.b,.border{border-width:1px}.text-center{text-align:center}.font-600{font-weight:600}.italic{font-style:italic}.underline{text-decoration-line:underline}.blur{--un-blur:blur(8px);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)} diff --git a/src/resources/assets/assets/index-CFMBpwmb.css b/src/resources/assets/assets/index-CFMBpwmb.css deleted file mode 100644 index 930f727..0000000 --- a/src/resources/assets/assets/index-CFMBpwmb.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645,.045,.355,1);--el-transition-function-fast-bezier:cubic-bezier(.23,1,.32,1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px}:root{color-scheme:light;--el-color-primary:#409eff;--el-color-primary-light-3:#79bbff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-primary-dark-2:#337ecc;--el-color-success:#67c23a;--el-color-success-light-3:#95d475;--el-color-success-light-5:#b3e19d;--el-color-success-light-7:#d1edc4;--el-color-success-light-8:#e1f3d8;--el-color-success-light-9:#f0f9eb;--el-color-success-dark-2:#529b2e;--el-color-warning:#e6a23c;--el-color-warning-light-3:#eebe77;--el-color-warning-light-5:#f3d19e;--el-color-warning-light-7:#f8e3c5;--el-color-warning-light-8:#faecd8;--el-color-warning-light-9:#fdf6ec;--el-color-warning-dark-2:#b88230;--el-color-danger:#f56c6c;--el-color-danger-light-3:#f89898;--el-color-danger-light-5:#fab6b6;--el-color-danger-light-7:#fcd3d3;--el-color-danger-light-8:#fde2e2;--el-color-danger-light-9:#fef0f0;--el-color-danger-dark-2:#c45656;--el-color-error:#f56c6c;--el-color-error-light-3:#f89898;--el-color-error-light-5:#fab6b6;--el-color-error-light-7:#fcd3d3;--el-color-error-light-8:#fde2e2;--el-color-error-light-9:#fef0f0;--el-color-error-dark-2:#c45656;--el-color-info:#909399;--el-color-info-light-3:#b1b3b8;--el-color-info-light-5:#c8c9cc;--el-color-info-light-7:#dedfe0;--el-color-info-light-8:#e9e9eb;--el-color-info-light-9:#f4f4f5;--el-color-info-dark-2:#73767a;--el-bg-color:#ffffff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#ffffff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#ffffff;--el-box-shadow:0px 12px 32px 4px rgba(0,0,0,.04),0px 8px 20px rgba(0,0,0,.08);--el-box-shadow-light:0px 0px 12px rgba(0,0,0,.12);--el-box-shadow-lighter:0px 0px 6px rgba(0,0,0,.12);--el-box-shadow-dark:0px 16px 48px 16px rgba(0,0,0,.08),0px 12px 32px rgba(0,0,0,.12),0px 8px 16px -8px rgba(0,0,0,.16);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0,0,0,.8);--el-overlay-color-light:rgba(0,0,0,.7);--el-overlay-color-lighter:rgba(0,0,0,.5);--el-mask-color:rgba(255,255,255,.9);--el-mask-color-extra-light:rgba(255,255,255,.3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transform-origin:center top;transition:var(--el-transition-md-fade)}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transform-origin:center bottom;transition:var(--el-transition-md-fade)}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transform-origin:top left;transition:var(--el-transition-md-fade)}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-icon-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@-webkit-keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.el-icon{--color:inherit;align-items:center;display:inline-flex;height:1em;justify-content:center;line-height:1em;position:relative;width:1em;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}.el-row{box-sizing:border-box;display:flex;flex-wrap:wrap;position:relative}.el-row.is-justify-center{justify-content:center}.el-row.is-justify-end{justify-content:flex-end}.el-row.is-justify-space-between{justify-content:space-between}.el-row.is-justify-space-around{justify-content:space-around}.el-row.is-justify-space-evenly{justify-content:space-evenly}.el-row.is-align-top{align-items:flex-start}.el-row.is-align-middle{align-items:center}.el-row.is-align-bottom{align-items:flex-end}[class*=el-col-]{box-sizing:border-box}[class*=el-col-].is-guttered{display:block;min-height:1px}.el-col-0{flex:0 0 0%;max-width:0}.el-col-0,.el-col-0.is-guttered{display:none}.el-col-offset-0{margin-left:0}.el-col-pull-0{position:relative;right:0}.el-col-push-0{left:0;position:relative}.el-col-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-1,.el-col-1.is-guttered{display:block}.el-col-offset-1{margin-left:4.1666666667%}.el-col-pull-1{position:relative;right:4.1666666667%}.el-col-push-1{left:4.1666666667%;position:relative}.el-col-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-2,.el-col-2.is-guttered{display:block}.el-col-offset-2{margin-left:8.3333333333%}.el-col-pull-2{position:relative;right:8.3333333333%}.el-col-push-2{left:8.3333333333%;position:relative}.el-col-3{flex:0 0 12.5%;max-width:12.5%}.el-col-3,.el-col-3.is-guttered{display:block}.el-col-offset-3{margin-left:12.5%}.el-col-pull-3{position:relative;right:12.5%}.el-col-push-3{left:12.5%;position:relative}.el-col-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-4,.el-col-4.is-guttered{display:block}.el-col-offset-4{margin-left:16.6666666667%}.el-col-pull-4{position:relative;right:16.6666666667%}.el-col-push-4{left:16.6666666667%;position:relative}.el-col-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-5,.el-col-5.is-guttered{display:block}.el-col-offset-5{margin-left:20.8333333333%}.el-col-pull-5{position:relative;right:20.8333333333%}.el-col-push-5{left:20.8333333333%;position:relative}.el-col-6{flex:0 0 25%;max-width:25%}.el-col-6,.el-col-6.is-guttered{display:block}.el-col-offset-6{margin-left:25%}.el-col-pull-6{position:relative;right:25%}.el-col-push-6{left:25%;position:relative}.el-col-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-7,.el-col-7.is-guttered{display:block}.el-col-offset-7{margin-left:29.1666666667%}.el-col-pull-7{position:relative;right:29.1666666667%}.el-col-push-7{left:29.1666666667%;position:relative}.el-col-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-8,.el-col-8.is-guttered{display:block}.el-col-offset-8{margin-left:33.3333333333%}.el-col-pull-8{position:relative;right:33.3333333333%}.el-col-push-8{left:33.3333333333%;position:relative}.el-col-9{flex:0 0 37.5%;max-width:37.5%}.el-col-9,.el-col-9.is-guttered{display:block}.el-col-offset-9{margin-left:37.5%}.el-col-pull-9{position:relative;right:37.5%}.el-col-push-9{left:37.5%;position:relative}.el-col-10{flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-10,.el-col-10.is-guttered{display:block}.el-col-offset-10{margin-left:41.6666666667%}.el-col-pull-10{position:relative;right:41.6666666667%}.el-col-push-10{left:41.6666666667%;position:relative}.el-col-11{flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-11,.el-col-11.is-guttered{display:block}.el-col-offset-11{margin-left:45.8333333333%}.el-col-pull-11{position:relative;right:45.8333333333%}.el-col-push-11{left:45.8333333333%;position:relative}.el-col-12{flex:0 0 50%;max-width:50%}.el-col-12,.el-col-12.is-guttered{display:block}.el-col-offset-12{margin-left:50%}.el-col-pull-12{position:relative;right:50%}.el-col-push-12{left:50%;position:relative}.el-col-13{flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-13,.el-col-13.is-guttered{display:block}.el-col-offset-13{margin-left:54.1666666667%}.el-col-pull-13{position:relative;right:54.1666666667%}.el-col-push-13{left:54.1666666667%;position:relative}.el-col-14{flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-14,.el-col-14.is-guttered{display:block}.el-col-offset-14{margin-left:58.3333333333%}.el-col-pull-14{position:relative;right:58.3333333333%}.el-col-push-14{left:58.3333333333%;position:relative}.el-col-15{flex:0 0 62.5%;max-width:62.5%}.el-col-15,.el-col-15.is-guttered{display:block}.el-col-offset-15{margin-left:62.5%}.el-col-pull-15{position:relative;right:62.5%}.el-col-push-15{left:62.5%;position:relative}.el-col-16{flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-16,.el-col-16.is-guttered{display:block}.el-col-offset-16{margin-left:66.6666666667%}.el-col-pull-16{position:relative;right:66.6666666667%}.el-col-push-16{left:66.6666666667%;position:relative}.el-col-17{flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-17,.el-col-17.is-guttered{display:block}.el-col-offset-17{margin-left:70.8333333333%}.el-col-pull-17{position:relative;right:70.8333333333%}.el-col-push-17{left:70.8333333333%;position:relative}.el-col-18{flex:0 0 75%;max-width:75%}.el-col-18,.el-col-18.is-guttered{display:block}.el-col-offset-18{margin-left:75%}.el-col-pull-18{position:relative;right:75%}.el-col-push-18{left:75%;position:relative}.el-col-19{flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-19,.el-col-19.is-guttered{display:block}.el-col-offset-19{margin-left:79.1666666667%}.el-col-pull-19{position:relative;right:79.1666666667%}.el-col-push-19{left:79.1666666667%;position:relative}.el-col-20{flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-20,.el-col-20.is-guttered{display:block}.el-col-offset-20{margin-left:83.3333333333%}.el-col-pull-20{position:relative;right:83.3333333333%}.el-col-push-20{left:83.3333333333%;position:relative}.el-col-21{flex:0 0 87.5%;max-width:87.5%}.el-col-21,.el-col-21.is-guttered{display:block}.el-col-offset-21{margin-left:87.5%}.el-col-pull-21{position:relative;right:87.5%}.el-col-push-21{left:87.5%;position:relative}.el-col-22{flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-22,.el-col-22.is-guttered{display:block}.el-col-offset-22{margin-left:91.6666666667%}.el-col-pull-22{position:relative;right:91.6666666667%}.el-col-push-22{left:91.6666666667%;position:relative}.el-col-23{flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-23,.el-col-23.is-guttered{display:block}.el-col-offset-23{margin-left:95.8333333333%}.el-col-pull-23{position:relative;right:95.8333333333%}.el-col-push-23{left:95.8333333333%;position:relative}.el-col-24{flex:0 0 100%;max-width:100%}.el-col-24,.el-col-24.is-guttered{display:block}.el-col-offset-24{margin-left:100%}.el-col-pull-24{position:relative;right:100%}.el-col-push-24{left:100%;position:relative}@media only screen and (max-width:767px){.el-col-xs-0{display:none;flex:0 0 0%;max-width:0}.el-col-xs-0.is-guttered{display:none}.el-col-xs-offset-0{margin-left:0}.el-col-xs-pull-0{position:relative;right:0}.el-col-xs-push-0{left:0;position:relative}.el-col-xs-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-xs-1,.el-col-xs-1.is-guttered{display:block}.el-col-xs-offset-1{margin-left:4.1666666667%}.el-col-xs-pull-1{position:relative;right:4.1666666667%}.el-col-xs-push-1{left:4.1666666667%;position:relative}.el-col-xs-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-xs-2,.el-col-xs-2.is-guttered{display:block}.el-col-xs-offset-2{margin-left:8.3333333333%}.el-col-xs-pull-2{position:relative;right:8.3333333333%}.el-col-xs-push-2{left:8.3333333333%;position:relative}.el-col-xs-3{flex:0 0 12.5%;max-width:12.5%}.el-col-xs-3,.el-col-xs-3.is-guttered{display:block}.el-col-xs-offset-3{margin-left:12.5%}.el-col-xs-pull-3{position:relative;right:12.5%}.el-col-xs-push-3{left:12.5%;position:relative}.el-col-xs-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-xs-4,.el-col-xs-4.is-guttered{display:block}.el-col-xs-offset-4{margin-left:16.6666666667%}.el-col-xs-pull-4{position:relative;right:16.6666666667%}.el-col-xs-push-4{left:16.6666666667%;position:relative}.el-col-xs-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-xs-5,.el-col-xs-5.is-guttered{display:block}.el-col-xs-offset-5{margin-left:20.8333333333%}.el-col-xs-pull-5{position:relative;right:20.8333333333%}.el-col-xs-push-5{left:20.8333333333%;position:relative}.el-col-xs-6{flex:0 0 25%;max-width:25%}.el-col-xs-6,.el-col-xs-6.is-guttered{display:block}.el-col-xs-offset-6{margin-left:25%}.el-col-xs-pull-6{position:relative;right:25%}.el-col-xs-push-6{left:25%;position:relative}.el-col-xs-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-xs-7,.el-col-xs-7.is-guttered{display:block}.el-col-xs-offset-7{margin-left:29.1666666667%}.el-col-xs-pull-7{position:relative;right:29.1666666667%}.el-col-xs-push-7{left:29.1666666667%;position:relative}.el-col-xs-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-xs-8,.el-col-xs-8.is-guttered{display:block}.el-col-xs-offset-8{margin-left:33.3333333333%}.el-col-xs-pull-8{position:relative;right:33.3333333333%}.el-col-xs-push-8{left:33.3333333333%;position:relative}.el-col-xs-9{flex:0 0 37.5%;max-width:37.5%}.el-col-xs-9,.el-col-xs-9.is-guttered{display:block}.el-col-xs-offset-9{margin-left:37.5%}.el-col-xs-pull-9{position:relative;right:37.5%}.el-col-xs-push-9{left:37.5%;position:relative}.el-col-xs-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-xs-10.is-guttered{display:block}.el-col-xs-offset-10{margin-left:41.6666666667%}.el-col-xs-pull-10{position:relative;right:41.6666666667%}.el-col-xs-push-10{left:41.6666666667%;position:relative}.el-col-xs-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-xs-11.is-guttered{display:block}.el-col-xs-offset-11{margin-left:45.8333333333%}.el-col-xs-pull-11{position:relative;right:45.8333333333%}.el-col-xs-push-11{left:45.8333333333%;position:relative}.el-col-xs-12{display:block;flex:0 0 50%;max-width:50%}.el-col-xs-12.is-guttered{display:block}.el-col-xs-offset-12{margin-left:50%}.el-col-xs-pull-12{position:relative;right:50%}.el-col-xs-push-12{left:50%;position:relative}.el-col-xs-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-xs-13.is-guttered{display:block}.el-col-xs-offset-13{margin-left:54.1666666667%}.el-col-xs-pull-13{position:relative;right:54.1666666667%}.el-col-xs-push-13{left:54.1666666667%;position:relative}.el-col-xs-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-xs-14.is-guttered{display:block}.el-col-xs-offset-14{margin-left:58.3333333333%}.el-col-xs-pull-14{position:relative;right:58.3333333333%}.el-col-xs-push-14{left:58.3333333333%;position:relative}.el-col-xs-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-xs-15.is-guttered{display:block}.el-col-xs-offset-15{margin-left:62.5%}.el-col-xs-pull-15{position:relative;right:62.5%}.el-col-xs-push-15{left:62.5%;position:relative}.el-col-xs-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-xs-16.is-guttered{display:block}.el-col-xs-offset-16{margin-left:66.6666666667%}.el-col-xs-pull-16{position:relative;right:66.6666666667%}.el-col-xs-push-16{left:66.6666666667%;position:relative}.el-col-xs-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-xs-17.is-guttered{display:block}.el-col-xs-offset-17{margin-left:70.8333333333%}.el-col-xs-pull-17{position:relative;right:70.8333333333%}.el-col-xs-push-17{left:70.8333333333%;position:relative}.el-col-xs-18{display:block;flex:0 0 75%;max-width:75%}.el-col-xs-18.is-guttered{display:block}.el-col-xs-offset-18{margin-left:75%}.el-col-xs-pull-18{position:relative;right:75%}.el-col-xs-push-18{left:75%;position:relative}.el-col-xs-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-xs-19.is-guttered{display:block}.el-col-xs-offset-19{margin-left:79.1666666667%}.el-col-xs-pull-19{position:relative;right:79.1666666667%}.el-col-xs-push-19{left:79.1666666667%;position:relative}.el-col-xs-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-xs-20.is-guttered{display:block}.el-col-xs-offset-20{margin-left:83.3333333333%}.el-col-xs-pull-20{position:relative;right:83.3333333333%}.el-col-xs-push-20{left:83.3333333333%;position:relative}.el-col-xs-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-xs-21.is-guttered{display:block}.el-col-xs-offset-21{margin-left:87.5%}.el-col-xs-pull-21{position:relative;right:87.5%}.el-col-xs-push-21{left:87.5%;position:relative}.el-col-xs-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-xs-22.is-guttered{display:block}.el-col-xs-offset-22{margin-left:91.6666666667%}.el-col-xs-pull-22{position:relative;right:91.6666666667%}.el-col-xs-push-22{left:91.6666666667%;position:relative}.el-col-xs-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-xs-23.is-guttered{display:block}.el-col-xs-offset-23{margin-left:95.8333333333%}.el-col-xs-pull-23{position:relative;right:95.8333333333%}.el-col-xs-push-23{left:95.8333333333%;position:relative}.el-col-xs-24{display:block;flex:0 0 100%;max-width:100%}.el-col-xs-24.is-guttered{display:block}.el-col-xs-offset-24{margin-left:100%}.el-col-xs-pull-24{position:relative;right:100%}.el-col-xs-push-24{left:100%;position:relative}}@media only screen and (min-width:768px){.el-col-sm-0{display:none;flex:0 0 0%;max-width:0}.el-col-sm-0.is-guttered{display:none}.el-col-sm-offset-0{margin-left:0}.el-col-sm-pull-0{position:relative;right:0}.el-col-sm-push-0{left:0;position:relative}.el-col-sm-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-sm-1,.el-col-sm-1.is-guttered{display:block}.el-col-sm-offset-1{margin-left:4.1666666667%}.el-col-sm-pull-1{position:relative;right:4.1666666667%}.el-col-sm-push-1{left:4.1666666667%;position:relative}.el-col-sm-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-sm-2,.el-col-sm-2.is-guttered{display:block}.el-col-sm-offset-2{margin-left:8.3333333333%}.el-col-sm-pull-2{position:relative;right:8.3333333333%}.el-col-sm-push-2{left:8.3333333333%;position:relative}.el-col-sm-3{flex:0 0 12.5%;max-width:12.5%}.el-col-sm-3,.el-col-sm-3.is-guttered{display:block}.el-col-sm-offset-3{margin-left:12.5%}.el-col-sm-pull-3{position:relative;right:12.5%}.el-col-sm-push-3{left:12.5%;position:relative}.el-col-sm-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-sm-4,.el-col-sm-4.is-guttered{display:block}.el-col-sm-offset-4{margin-left:16.6666666667%}.el-col-sm-pull-4{position:relative;right:16.6666666667%}.el-col-sm-push-4{left:16.6666666667%;position:relative}.el-col-sm-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-sm-5,.el-col-sm-5.is-guttered{display:block}.el-col-sm-offset-5{margin-left:20.8333333333%}.el-col-sm-pull-5{position:relative;right:20.8333333333%}.el-col-sm-push-5{left:20.8333333333%;position:relative}.el-col-sm-6{flex:0 0 25%;max-width:25%}.el-col-sm-6,.el-col-sm-6.is-guttered{display:block}.el-col-sm-offset-6{margin-left:25%}.el-col-sm-pull-6{position:relative;right:25%}.el-col-sm-push-6{left:25%;position:relative}.el-col-sm-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-sm-7,.el-col-sm-7.is-guttered{display:block}.el-col-sm-offset-7{margin-left:29.1666666667%}.el-col-sm-pull-7{position:relative;right:29.1666666667%}.el-col-sm-push-7{left:29.1666666667%;position:relative}.el-col-sm-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-sm-8,.el-col-sm-8.is-guttered{display:block}.el-col-sm-offset-8{margin-left:33.3333333333%}.el-col-sm-pull-8{position:relative;right:33.3333333333%}.el-col-sm-push-8{left:33.3333333333%;position:relative}.el-col-sm-9{flex:0 0 37.5%;max-width:37.5%}.el-col-sm-9,.el-col-sm-9.is-guttered{display:block}.el-col-sm-offset-9{margin-left:37.5%}.el-col-sm-pull-9{position:relative;right:37.5%}.el-col-sm-push-9{left:37.5%;position:relative}.el-col-sm-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-sm-10.is-guttered{display:block}.el-col-sm-offset-10{margin-left:41.6666666667%}.el-col-sm-pull-10{position:relative;right:41.6666666667%}.el-col-sm-push-10{left:41.6666666667%;position:relative}.el-col-sm-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-sm-11.is-guttered{display:block}.el-col-sm-offset-11{margin-left:45.8333333333%}.el-col-sm-pull-11{position:relative;right:45.8333333333%}.el-col-sm-push-11{left:45.8333333333%;position:relative}.el-col-sm-12{display:block;flex:0 0 50%;max-width:50%}.el-col-sm-12.is-guttered{display:block}.el-col-sm-offset-12{margin-left:50%}.el-col-sm-pull-12{position:relative;right:50%}.el-col-sm-push-12{left:50%;position:relative}.el-col-sm-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-sm-13.is-guttered{display:block}.el-col-sm-offset-13{margin-left:54.1666666667%}.el-col-sm-pull-13{position:relative;right:54.1666666667%}.el-col-sm-push-13{left:54.1666666667%;position:relative}.el-col-sm-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-sm-14.is-guttered{display:block}.el-col-sm-offset-14{margin-left:58.3333333333%}.el-col-sm-pull-14{position:relative;right:58.3333333333%}.el-col-sm-push-14{left:58.3333333333%;position:relative}.el-col-sm-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-sm-15.is-guttered{display:block}.el-col-sm-offset-15{margin-left:62.5%}.el-col-sm-pull-15{position:relative;right:62.5%}.el-col-sm-push-15{left:62.5%;position:relative}.el-col-sm-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-sm-16.is-guttered{display:block}.el-col-sm-offset-16{margin-left:66.6666666667%}.el-col-sm-pull-16{position:relative;right:66.6666666667%}.el-col-sm-push-16{left:66.6666666667%;position:relative}.el-col-sm-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-sm-17.is-guttered{display:block}.el-col-sm-offset-17{margin-left:70.8333333333%}.el-col-sm-pull-17{position:relative;right:70.8333333333%}.el-col-sm-push-17{left:70.8333333333%;position:relative}.el-col-sm-18{display:block;flex:0 0 75%;max-width:75%}.el-col-sm-18.is-guttered{display:block}.el-col-sm-offset-18{margin-left:75%}.el-col-sm-pull-18{position:relative;right:75%}.el-col-sm-push-18{left:75%;position:relative}.el-col-sm-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-sm-19.is-guttered{display:block}.el-col-sm-offset-19{margin-left:79.1666666667%}.el-col-sm-pull-19{position:relative;right:79.1666666667%}.el-col-sm-push-19{left:79.1666666667%;position:relative}.el-col-sm-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-sm-20.is-guttered{display:block}.el-col-sm-offset-20{margin-left:83.3333333333%}.el-col-sm-pull-20{position:relative;right:83.3333333333%}.el-col-sm-push-20{left:83.3333333333%;position:relative}.el-col-sm-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-sm-21.is-guttered{display:block}.el-col-sm-offset-21{margin-left:87.5%}.el-col-sm-pull-21{position:relative;right:87.5%}.el-col-sm-push-21{left:87.5%;position:relative}.el-col-sm-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-sm-22.is-guttered{display:block}.el-col-sm-offset-22{margin-left:91.6666666667%}.el-col-sm-pull-22{position:relative;right:91.6666666667%}.el-col-sm-push-22{left:91.6666666667%;position:relative}.el-col-sm-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-sm-23.is-guttered{display:block}.el-col-sm-offset-23{margin-left:95.8333333333%}.el-col-sm-pull-23{position:relative;right:95.8333333333%}.el-col-sm-push-23{left:95.8333333333%;position:relative}.el-col-sm-24{display:block;flex:0 0 100%;max-width:100%}.el-col-sm-24.is-guttered{display:block}.el-col-sm-offset-24{margin-left:100%}.el-col-sm-pull-24{position:relative;right:100%}.el-col-sm-push-24{left:100%;position:relative}}@media only screen and (min-width:992px){.el-col-md-0{display:none;flex:0 0 0%;max-width:0}.el-col-md-0.is-guttered{display:none}.el-col-md-offset-0{margin-left:0}.el-col-md-pull-0{position:relative;right:0}.el-col-md-push-0{left:0;position:relative}.el-col-md-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-md-1,.el-col-md-1.is-guttered{display:block}.el-col-md-offset-1{margin-left:4.1666666667%}.el-col-md-pull-1{position:relative;right:4.1666666667%}.el-col-md-push-1{left:4.1666666667%;position:relative}.el-col-md-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-md-2,.el-col-md-2.is-guttered{display:block}.el-col-md-offset-2{margin-left:8.3333333333%}.el-col-md-pull-2{position:relative;right:8.3333333333%}.el-col-md-push-2{left:8.3333333333%;position:relative}.el-col-md-3{flex:0 0 12.5%;max-width:12.5%}.el-col-md-3,.el-col-md-3.is-guttered{display:block}.el-col-md-offset-3{margin-left:12.5%}.el-col-md-pull-3{position:relative;right:12.5%}.el-col-md-push-3{left:12.5%;position:relative}.el-col-md-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-md-4,.el-col-md-4.is-guttered{display:block}.el-col-md-offset-4{margin-left:16.6666666667%}.el-col-md-pull-4{position:relative;right:16.6666666667%}.el-col-md-push-4{left:16.6666666667%;position:relative}.el-col-md-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-md-5,.el-col-md-5.is-guttered{display:block}.el-col-md-offset-5{margin-left:20.8333333333%}.el-col-md-pull-5{position:relative;right:20.8333333333%}.el-col-md-push-5{left:20.8333333333%;position:relative}.el-col-md-6{flex:0 0 25%;max-width:25%}.el-col-md-6,.el-col-md-6.is-guttered{display:block}.el-col-md-offset-6{margin-left:25%}.el-col-md-pull-6{position:relative;right:25%}.el-col-md-push-6{left:25%;position:relative}.el-col-md-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-md-7,.el-col-md-7.is-guttered{display:block}.el-col-md-offset-7{margin-left:29.1666666667%}.el-col-md-pull-7{position:relative;right:29.1666666667%}.el-col-md-push-7{left:29.1666666667%;position:relative}.el-col-md-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-md-8,.el-col-md-8.is-guttered{display:block}.el-col-md-offset-8{margin-left:33.3333333333%}.el-col-md-pull-8{position:relative;right:33.3333333333%}.el-col-md-push-8{left:33.3333333333%;position:relative}.el-col-md-9{flex:0 0 37.5%;max-width:37.5%}.el-col-md-9,.el-col-md-9.is-guttered{display:block}.el-col-md-offset-9{margin-left:37.5%}.el-col-md-pull-9{position:relative;right:37.5%}.el-col-md-push-9{left:37.5%;position:relative}.el-col-md-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-md-10.is-guttered{display:block}.el-col-md-offset-10{margin-left:41.6666666667%}.el-col-md-pull-10{position:relative;right:41.6666666667%}.el-col-md-push-10{left:41.6666666667%;position:relative}.el-col-md-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-md-11.is-guttered{display:block}.el-col-md-offset-11{margin-left:45.8333333333%}.el-col-md-pull-11{position:relative;right:45.8333333333%}.el-col-md-push-11{left:45.8333333333%;position:relative}.el-col-md-12{display:block;flex:0 0 50%;max-width:50%}.el-col-md-12.is-guttered{display:block}.el-col-md-offset-12{margin-left:50%}.el-col-md-pull-12{position:relative;right:50%}.el-col-md-push-12{left:50%;position:relative}.el-col-md-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-md-13.is-guttered{display:block}.el-col-md-offset-13{margin-left:54.1666666667%}.el-col-md-pull-13{position:relative;right:54.1666666667%}.el-col-md-push-13{left:54.1666666667%;position:relative}.el-col-md-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-md-14.is-guttered{display:block}.el-col-md-offset-14{margin-left:58.3333333333%}.el-col-md-pull-14{position:relative;right:58.3333333333%}.el-col-md-push-14{left:58.3333333333%;position:relative}.el-col-md-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-md-15.is-guttered{display:block}.el-col-md-offset-15{margin-left:62.5%}.el-col-md-pull-15{position:relative;right:62.5%}.el-col-md-push-15{left:62.5%;position:relative}.el-col-md-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-md-16.is-guttered{display:block}.el-col-md-offset-16{margin-left:66.6666666667%}.el-col-md-pull-16{position:relative;right:66.6666666667%}.el-col-md-push-16{left:66.6666666667%;position:relative}.el-col-md-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-md-17.is-guttered{display:block}.el-col-md-offset-17{margin-left:70.8333333333%}.el-col-md-pull-17{position:relative;right:70.8333333333%}.el-col-md-push-17{left:70.8333333333%;position:relative}.el-col-md-18{display:block;flex:0 0 75%;max-width:75%}.el-col-md-18.is-guttered{display:block}.el-col-md-offset-18{margin-left:75%}.el-col-md-pull-18{position:relative;right:75%}.el-col-md-push-18{left:75%;position:relative}.el-col-md-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-md-19.is-guttered{display:block}.el-col-md-offset-19{margin-left:79.1666666667%}.el-col-md-pull-19{position:relative;right:79.1666666667%}.el-col-md-push-19{left:79.1666666667%;position:relative}.el-col-md-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-md-20.is-guttered{display:block}.el-col-md-offset-20{margin-left:83.3333333333%}.el-col-md-pull-20{position:relative;right:83.3333333333%}.el-col-md-push-20{left:83.3333333333%;position:relative}.el-col-md-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-md-21.is-guttered{display:block}.el-col-md-offset-21{margin-left:87.5%}.el-col-md-pull-21{position:relative;right:87.5%}.el-col-md-push-21{left:87.5%;position:relative}.el-col-md-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-md-22.is-guttered{display:block}.el-col-md-offset-22{margin-left:91.6666666667%}.el-col-md-pull-22{position:relative;right:91.6666666667%}.el-col-md-push-22{left:91.6666666667%;position:relative}.el-col-md-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-md-23.is-guttered{display:block}.el-col-md-offset-23{margin-left:95.8333333333%}.el-col-md-pull-23{position:relative;right:95.8333333333%}.el-col-md-push-23{left:95.8333333333%;position:relative}.el-col-md-24{display:block;flex:0 0 100%;max-width:100%}.el-col-md-24.is-guttered{display:block}.el-col-md-offset-24{margin-left:100%}.el-col-md-pull-24{position:relative;right:100%}.el-col-md-push-24{left:100%;position:relative}}@media only screen and (min-width:1200px){.el-col-lg-0{display:none;flex:0 0 0%;max-width:0}.el-col-lg-0.is-guttered{display:none}.el-col-lg-offset-0{margin-left:0}.el-col-lg-pull-0{position:relative;right:0}.el-col-lg-push-0{left:0;position:relative}.el-col-lg-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-lg-1,.el-col-lg-1.is-guttered{display:block}.el-col-lg-offset-1{margin-left:4.1666666667%}.el-col-lg-pull-1{position:relative;right:4.1666666667%}.el-col-lg-push-1{left:4.1666666667%;position:relative}.el-col-lg-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-lg-2,.el-col-lg-2.is-guttered{display:block}.el-col-lg-offset-2{margin-left:8.3333333333%}.el-col-lg-pull-2{position:relative;right:8.3333333333%}.el-col-lg-push-2{left:8.3333333333%;position:relative}.el-col-lg-3{flex:0 0 12.5%;max-width:12.5%}.el-col-lg-3,.el-col-lg-3.is-guttered{display:block}.el-col-lg-offset-3{margin-left:12.5%}.el-col-lg-pull-3{position:relative;right:12.5%}.el-col-lg-push-3{left:12.5%;position:relative}.el-col-lg-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-lg-4,.el-col-lg-4.is-guttered{display:block}.el-col-lg-offset-4{margin-left:16.6666666667%}.el-col-lg-pull-4{position:relative;right:16.6666666667%}.el-col-lg-push-4{left:16.6666666667%;position:relative}.el-col-lg-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-lg-5,.el-col-lg-5.is-guttered{display:block}.el-col-lg-offset-5{margin-left:20.8333333333%}.el-col-lg-pull-5{position:relative;right:20.8333333333%}.el-col-lg-push-5{left:20.8333333333%;position:relative}.el-col-lg-6{flex:0 0 25%;max-width:25%}.el-col-lg-6,.el-col-lg-6.is-guttered{display:block}.el-col-lg-offset-6{margin-left:25%}.el-col-lg-pull-6{position:relative;right:25%}.el-col-lg-push-6{left:25%;position:relative}.el-col-lg-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-lg-7,.el-col-lg-7.is-guttered{display:block}.el-col-lg-offset-7{margin-left:29.1666666667%}.el-col-lg-pull-7{position:relative;right:29.1666666667%}.el-col-lg-push-7{left:29.1666666667%;position:relative}.el-col-lg-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-lg-8,.el-col-lg-8.is-guttered{display:block}.el-col-lg-offset-8{margin-left:33.3333333333%}.el-col-lg-pull-8{position:relative;right:33.3333333333%}.el-col-lg-push-8{left:33.3333333333%;position:relative}.el-col-lg-9{flex:0 0 37.5%;max-width:37.5%}.el-col-lg-9,.el-col-lg-9.is-guttered{display:block}.el-col-lg-offset-9{margin-left:37.5%}.el-col-lg-pull-9{position:relative;right:37.5%}.el-col-lg-push-9{left:37.5%;position:relative}.el-col-lg-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-lg-10.is-guttered{display:block}.el-col-lg-offset-10{margin-left:41.6666666667%}.el-col-lg-pull-10{position:relative;right:41.6666666667%}.el-col-lg-push-10{left:41.6666666667%;position:relative}.el-col-lg-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-lg-11.is-guttered{display:block}.el-col-lg-offset-11{margin-left:45.8333333333%}.el-col-lg-pull-11{position:relative;right:45.8333333333%}.el-col-lg-push-11{left:45.8333333333%;position:relative}.el-col-lg-12{display:block;flex:0 0 50%;max-width:50%}.el-col-lg-12.is-guttered{display:block}.el-col-lg-offset-12{margin-left:50%}.el-col-lg-pull-12{position:relative;right:50%}.el-col-lg-push-12{left:50%;position:relative}.el-col-lg-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-lg-13.is-guttered{display:block}.el-col-lg-offset-13{margin-left:54.1666666667%}.el-col-lg-pull-13{position:relative;right:54.1666666667%}.el-col-lg-push-13{left:54.1666666667%;position:relative}.el-col-lg-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-lg-14.is-guttered{display:block}.el-col-lg-offset-14{margin-left:58.3333333333%}.el-col-lg-pull-14{position:relative;right:58.3333333333%}.el-col-lg-push-14{left:58.3333333333%;position:relative}.el-col-lg-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-lg-15.is-guttered{display:block}.el-col-lg-offset-15{margin-left:62.5%}.el-col-lg-pull-15{position:relative;right:62.5%}.el-col-lg-push-15{left:62.5%;position:relative}.el-col-lg-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-lg-16.is-guttered{display:block}.el-col-lg-offset-16{margin-left:66.6666666667%}.el-col-lg-pull-16{position:relative;right:66.6666666667%}.el-col-lg-push-16{left:66.6666666667%;position:relative}.el-col-lg-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-lg-17.is-guttered{display:block}.el-col-lg-offset-17{margin-left:70.8333333333%}.el-col-lg-pull-17{position:relative;right:70.8333333333%}.el-col-lg-push-17{left:70.8333333333%;position:relative}.el-col-lg-18{display:block;flex:0 0 75%;max-width:75%}.el-col-lg-18.is-guttered{display:block}.el-col-lg-offset-18{margin-left:75%}.el-col-lg-pull-18{position:relative;right:75%}.el-col-lg-push-18{left:75%;position:relative}.el-col-lg-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-lg-19.is-guttered{display:block}.el-col-lg-offset-19{margin-left:79.1666666667%}.el-col-lg-pull-19{position:relative;right:79.1666666667%}.el-col-lg-push-19{left:79.1666666667%;position:relative}.el-col-lg-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-lg-20.is-guttered{display:block}.el-col-lg-offset-20{margin-left:83.3333333333%}.el-col-lg-pull-20{position:relative;right:83.3333333333%}.el-col-lg-push-20{left:83.3333333333%;position:relative}.el-col-lg-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-lg-21.is-guttered{display:block}.el-col-lg-offset-21{margin-left:87.5%}.el-col-lg-pull-21{position:relative;right:87.5%}.el-col-lg-push-21{left:87.5%;position:relative}.el-col-lg-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-lg-22.is-guttered{display:block}.el-col-lg-offset-22{margin-left:91.6666666667%}.el-col-lg-pull-22{position:relative;right:91.6666666667%}.el-col-lg-push-22{left:91.6666666667%;position:relative}.el-col-lg-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-lg-23.is-guttered{display:block}.el-col-lg-offset-23{margin-left:95.8333333333%}.el-col-lg-pull-23{position:relative;right:95.8333333333%}.el-col-lg-push-23{left:95.8333333333%;position:relative}.el-col-lg-24{display:block;flex:0 0 100%;max-width:100%}.el-col-lg-24.is-guttered{display:block}.el-col-lg-offset-24{margin-left:100%}.el-col-lg-pull-24{position:relative;right:100%}.el-col-lg-push-24{left:100%;position:relative}}@media only screen and (min-width:1920px){.el-col-xl-0{display:none;flex:0 0 0%;max-width:0}.el-col-xl-0.is-guttered{display:none}.el-col-xl-offset-0{margin-left:0}.el-col-xl-pull-0{position:relative;right:0}.el-col-xl-push-0{left:0;position:relative}.el-col-xl-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-xl-1,.el-col-xl-1.is-guttered{display:block}.el-col-xl-offset-1{margin-left:4.1666666667%}.el-col-xl-pull-1{position:relative;right:4.1666666667%}.el-col-xl-push-1{left:4.1666666667%;position:relative}.el-col-xl-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-xl-2,.el-col-xl-2.is-guttered{display:block}.el-col-xl-offset-2{margin-left:8.3333333333%}.el-col-xl-pull-2{position:relative;right:8.3333333333%}.el-col-xl-push-2{left:8.3333333333%;position:relative}.el-col-xl-3{flex:0 0 12.5%;max-width:12.5%}.el-col-xl-3,.el-col-xl-3.is-guttered{display:block}.el-col-xl-offset-3{margin-left:12.5%}.el-col-xl-pull-3{position:relative;right:12.5%}.el-col-xl-push-3{left:12.5%;position:relative}.el-col-xl-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-xl-4,.el-col-xl-4.is-guttered{display:block}.el-col-xl-offset-4{margin-left:16.6666666667%}.el-col-xl-pull-4{position:relative;right:16.6666666667%}.el-col-xl-push-4{left:16.6666666667%;position:relative}.el-col-xl-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-xl-5,.el-col-xl-5.is-guttered{display:block}.el-col-xl-offset-5{margin-left:20.8333333333%}.el-col-xl-pull-5{position:relative;right:20.8333333333%}.el-col-xl-push-5{left:20.8333333333%;position:relative}.el-col-xl-6{flex:0 0 25%;max-width:25%}.el-col-xl-6,.el-col-xl-6.is-guttered{display:block}.el-col-xl-offset-6{margin-left:25%}.el-col-xl-pull-6{position:relative;right:25%}.el-col-xl-push-6{left:25%;position:relative}.el-col-xl-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-xl-7,.el-col-xl-7.is-guttered{display:block}.el-col-xl-offset-7{margin-left:29.1666666667%}.el-col-xl-pull-7{position:relative;right:29.1666666667%}.el-col-xl-push-7{left:29.1666666667%;position:relative}.el-col-xl-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-xl-8,.el-col-xl-8.is-guttered{display:block}.el-col-xl-offset-8{margin-left:33.3333333333%}.el-col-xl-pull-8{position:relative;right:33.3333333333%}.el-col-xl-push-8{left:33.3333333333%;position:relative}.el-col-xl-9{flex:0 0 37.5%;max-width:37.5%}.el-col-xl-9,.el-col-xl-9.is-guttered{display:block}.el-col-xl-offset-9{margin-left:37.5%}.el-col-xl-pull-9{position:relative;right:37.5%}.el-col-xl-push-9{left:37.5%;position:relative}.el-col-xl-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-xl-10.is-guttered{display:block}.el-col-xl-offset-10{margin-left:41.6666666667%}.el-col-xl-pull-10{position:relative;right:41.6666666667%}.el-col-xl-push-10{left:41.6666666667%;position:relative}.el-col-xl-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-xl-11.is-guttered{display:block}.el-col-xl-offset-11{margin-left:45.8333333333%}.el-col-xl-pull-11{position:relative;right:45.8333333333%}.el-col-xl-push-11{left:45.8333333333%;position:relative}.el-col-xl-12{display:block;flex:0 0 50%;max-width:50%}.el-col-xl-12.is-guttered{display:block}.el-col-xl-offset-12{margin-left:50%}.el-col-xl-pull-12{position:relative;right:50%}.el-col-xl-push-12{left:50%;position:relative}.el-col-xl-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-xl-13.is-guttered{display:block}.el-col-xl-offset-13{margin-left:54.1666666667%}.el-col-xl-pull-13{position:relative;right:54.1666666667%}.el-col-xl-push-13{left:54.1666666667%;position:relative}.el-col-xl-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-xl-14.is-guttered{display:block}.el-col-xl-offset-14{margin-left:58.3333333333%}.el-col-xl-pull-14{position:relative;right:58.3333333333%}.el-col-xl-push-14{left:58.3333333333%;position:relative}.el-col-xl-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-xl-15.is-guttered{display:block}.el-col-xl-offset-15{margin-left:62.5%}.el-col-xl-pull-15{position:relative;right:62.5%}.el-col-xl-push-15{left:62.5%;position:relative}.el-col-xl-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-xl-16.is-guttered{display:block}.el-col-xl-offset-16{margin-left:66.6666666667%}.el-col-xl-pull-16{position:relative;right:66.6666666667%}.el-col-xl-push-16{left:66.6666666667%;position:relative}.el-col-xl-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-xl-17.is-guttered{display:block}.el-col-xl-offset-17{margin-left:70.8333333333%}.el-col-xl-pull-17{position:relative;right:70.8333333333%}.el-col-xl-push-17{left:70.8333333333%;position:relative}.el-col-xl-18{display:block;flex:0 0 75%;max-width:75%}.el-col-xl-18.is-guttered{display:block}.el-col-xl-offset-18{margin-left:75%}.el-col-xl-pull-18{position:relative;right:75%}.el-col-xl-push-18{left:75%;position:relative}.el-col-xl-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-xl-19.is-guttered{display:block}.el-col-xl-offset-19{margin-left:79.1666666667%}.el-col-xl-pull-19{position:relative;right:79.1666666667%}.el-col-xl-push-19{left:79.1666666667%;position:relative}.el-col-xl-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-xl-20.is-guttered{display:block}.el-col-xl-offset-20{margin-left:83.3333333333%}.el-col-xl-pull-20{position:relative;right:83.3333333333%}.el-col-xl-push-20{left:83.3333333333%;position:relative}.el-col-xl-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-xl-21.is-guttered{display:block}.el-col-xl-offset-21{margin-left:87.5%}.el-col-xl-pull-21{position:relative;right:87.5%}.el-col-xl-push-21{left:87.5%;position:relative}.el-col-xl-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-xl-22.is-guttered{display:block}.el-col-xl-offset-22{margin-left:91.6666666667%}.el-col-xl-pull-22{position:relative;right:91.6666666667%}.el-col-xl-push-22{left:91.6666666667%;position:relative}.el-col-xl-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-xl-23.is-guttered{display:block}.el-col-xl-offset-23{margin-left:95.8333333333%}.el-col-xl-pull-23{position:relative;right:95.8333333333%}.el-col-xl-push-23{left:95.8333333333%;position:relative}.el-col-xl-24{display:block;flex:0 0 100%;max-width:100%}.el-col-xl-24.is-guttered{display:block}.el-col-xl-offset-24{margin-left:100%}.el-col-xl-pull-24{position:relative;right:100%}.el-col-xl-push-24{left:100%;position:relative}}.el-form{--el-form-label-font-size:var(--el-font-size-base);--el-form-inline-content-width:220px}.el-form--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 deleted file mode 100644 index 094ebd3..0000000 --- a/src/resources/assets/assets/index-CGwDfCl8.js +++ /dev/null @@ -1,414 +0,0 @@ -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-CQUEiyGj.js b/src/resources/assets/assets/index-CQUEiyGj.js new file mode 100644 index 0000000..03e3480 --- /dev/null +++ b/src/resources/assets/assets/index-CQUEiyGj.js @@ -0,0 +1,414 @@ +var bN=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var Yhe=bN((Fr,zr)=>{(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 Ob(n,e){const t=new Set(n.split(","));return r=>t.has(r)}const Xt={},Fa=[],hn=()=>{},yN=()=>!1,Cp=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),Mb=n=>n.startsWith("onUpdate:"),mn=Object.assign,Ab=(n,e)=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)},wN=Object.prototype.hasOwnProperty,xt=(n,e)=>wN.call(n,e),ze=Array.isArray,za=n=>Ld(n)==="[object Map]",xp=n=>Ld(n)==="[object Set]",F0=n=>Ld(n)==="[object Date]",Je=n=>typeof n=="function",ht=n=>typeof n=="string",cs=n=>typeof n=="symbol",gt=n=>n!==null&&typeof n=="object",ME=n=>(gt(n)||Je(n))&&Je(n.then)&&Je(n.catch),AE=Object.prototype.toString,Ld=n=>AE.call(n),eh=n=>Ld(n).slice(8,-1),kE=n=>Ld(n)==="[object Object]",kb=n=>ht(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,bu=Ob(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Sp=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},CN=/-(\w)/g,Do=Sp(n=>n.replace(CN,(e,t)=>t?t.toUpperCase():"")),xN=/\B([A-Z])/g,rl=Sp(n=>n.replace(xN,"-$1").toLowerCase()),Rd=Sp(n=>n.charAt(0).toUpperCase()+n.slice(1)),th=Sp(n=>n?`on${Rd(n)}`:""),Wi=(n,e)=>!Object.is(n,e),nh=(n,...e)=>{for(let t=0;t{Object.defineProperty(n,e,{configurable:!0,enumerable:!1,writable:r,value:t})},jm=n=>{const e=parseFloat(n);return isNaN(e)?n:e},SN=n=>{const e=ht(n)?Number(n):NaN;return isNaN(e)?n:e};let z0;const NE=()=>z0||(z0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function wt(n){if(ze(n)){const e={};for(let t=0;t{if(t){const r=t.split(_N);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Z(n){let e="";if(ht(n))e=n;else if(ze(n))for(let t=0;tYa(t,e))}const RE=n=>!!(n&&n.__v_isRef===!0),oe=n=>ht(n)?n:n==null?"":ze(n)||gt(n)&&(n.toString===AE||!Je(n.toString))?RE(n)?oe(n.value):JSON.stringify(n,$E,2):String(n),$E=(n,e)=>RE(e)?$E(n,e.value):za(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[r,o],s)=>(t[Dg(r,s)+" =>"]=o,t),{})}:xp(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>Dg(t))}:cs(e)?Dg(e):gt(e)&&!ze(e)&&!kE(e)?String(e):e,Dg=(n,e="")=>{var t;return cs(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 $r;class DE{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=$r,!e&&$r&&(this.index=($r.scopes||($r.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=$r;try{return $r=this,e()}finally{$r=t}}}on(){$r=this}off(){$r=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),sl()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Fi,t=Ul;try{return Fi=!0,Ul=this,this._runnings++,j0(this),this.fn()}finally{H0(this),this._runnings--,Ul=t,Fi=e}}stop(){this.active&&(j0(this),H0(this),this.onStop&&this.onStop(),this.active=!1)}}function NN(n){return n.value}function j0(n){n._trackId++,n._depsLength=0}function H0(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},xh=new WeakMap,Wl=Symbol(""),Wm=Symbol("");function Pr(n,e,t){if(Fi&&Ul){let r=xh.get(n);r||xh.set(n,r=new Map);let o=r.get(t);o||r.set(t,o=WE(()=>r.delete(t))),HE(Ul,o)}}function js(n,e,t,r,o,s){const i=xh.get(n);if(!i)return;let l=[];if(e==="clear")l=[...i.values()];else if(t==="length"&&ze(n)){const a=Number(r);i.forEach((c,u)=>{(u==="length"||!cs(u)&&u>=a)&&l.push(c)})}else switch(t!==void 0&&l.push(i.get(t)),e){case"add":ze(n)?kb(t)&&l.push(i.get("length")):(l.push(i.get(Wl)),za(n)&&l.push(i.get(Wm)));break;case"delete":ze(n)||(l.push(i.get(Wl)),za(n)&&l.push(i.get(Wm)));break;case"set":za(n)&&l.push(i.get(Wl));break}Nb();for(const a of l)a&&UE(a,4);Ib()}function IN(n,e){const t=xh.get(n);return t&&t.get(e)}const LN=Ob("__proto__,__v_isRef,__isVue"),GE=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(cs)),U0=RN();function RN(){const n={};return["includes","indexOf","lastIndexOf"].forEach(e=>{n[e]=function(...t){const r=kt(this);for(let s=0,i=this.length;s{n[e]=function(...t){ol(),Nb();const r=kt(this)[e].apply(this,t);return Ib(),sl(),r}}),n}function $N(n){cs(n)||(n=String(n));const e=kt(this);return Pr(e,"has",n),e.hasOwnProperty(n)}class qE{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){const o=this._isReadonly,s=this._isShallow;if(t==="__v_isReactive")return!o;if(t==="__v_isReadonly")return o;if(t==="__v_isShallow")return s;if(t==="__v_raw")return r===(o?s?YN:XE:s?JE:YE).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const i=ze(e);if(!o){if(i&&xt(U0,t))return Reflect.get(U0,t,r);if(t==="hasOwnProperty")return $N}const l=Reflect.get(e,t,r);return(cs(t)?GE.has(t):LN(t))||(o||Pr(e,"get",t),s)?l:Gt(l)?i&&kb(t)?l:l.value:gt(l)?o?$d(l):yt(l):l}}class KE extends qE{constructor(e=!1){super(!1,e)}set(e,t,r,o){let s=e[t];if(!this._isShallow){const a=Yu(s);if(!Sh(r)&&!Yu(r)&&(s=kt(s),r=kt(r)),!ze(e)&&Gt(s)&&!Gt(r))return a?!1:(s.value=r,!0)}const i=ze(e)&&kb(t)?Number(t)n,Ep=n=>Reflect.getPrototypeOf(n);function vf(n,e,t=!1,r=!1){n=n.__v_raw;const o=kt(n),s=kt(e);t||(Wi(e,s)&&Pr(o,"get",e),Pr(o,"get",s));const{has:i}=Ep(o),l=r?Lb:t?Vb:Xu;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=kt(t),o=kt(n);return e||(Wi(n,o)&&Pr(r,"has",n),Pr(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&&Pr(kt(n),"iterate",Wl),Reflect.get(n,"size",n)}function W0(n){n=kt(n);const e=kt(this);return Ep(e).has.call(e,n)||(e.add(n),js(e,"add",n,n)),this}function G0(n,e){e=kt(e);const t=kt(this),{has:r,get:o}=Ep(t);let s=r.call(t,n);s||(n=kt(n),s=r.call(t,n));const i=o.call(t,n);return t.set(n,e),s?Wi(e,i)&&js(t,"set",n,e):js(t,"add",n,e),this}function q0(n){const e=kt(this),{has:t,get:r}=Ep(e);let o=t.call(e,n);o||(n=kt(n),o=t.call(e,n)),r&&r.call(e,n);const s=e.delete(n);return o&&js(e,"delete",n,void 0),s}function K0(){const n=kt(this),e=n.size!==0,t=n.clear();return e&&js(n,"clear",void 0,void 0),t}function wf(n,e){return function(r,o){const s=this,i=s.__v_raw,l=kt(i),a=e?Lb:n?Vb:Xu;return!n&&Pr(l,"iterate",Wl),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=kt(o),i=za(s),l=n==="entries"||n===Symbol.iterator&&i,a=n==="keys"&&i,c=o[n](...r),u=t?Lb:e?Vb:Xu;return!e&&Pr(s,"iterate",a?Wm:Wl),{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 ai(n){return function(...e){return n==="delete"?!1:n==="clear"?void 0:this}}function zN(){const n={get(s){return vf(this,s)},get size(){return yf(this)},has:bf,add:W0,set:G0,delete:q0,clear:K0,forEach:wf(!1,!1)},e={get(s){return vf(this,s,!1,!0)},get size(){return yf(this)},has:bf,add:W0,set:G0,delete:q0,clear:K0,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:ai("add"),set:ai("set"),delete:ai("delete"),clear:ai("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:ai("add"),set:ai("set"),delete:ai("delete"),clear:ai("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[jN,HN,UN,WN]=zN();function Rb(n,e){const t=e?n?WN:UN:n?HN:jN;return(r,o,s)=>o==="__v_isReactive"?!n:o==="__v_isReadonly"?n:o==="__v_raw"?r:Reflect.get(xt(t,o)&&o in r?t:r,o,s)}const GN={get:Rb(!1,!1)},qN={get:Rb(!1,!0)},KN={get:Rb(!0,!1)},YE=new WeakMap,JE=new WeakMap,XE=new WeakMap,YN=new WeakMap;function JN(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function XN(n){return n.__v_skip||!Object.isExtensible(n)?0:JN(eh(n))}function yt(n){return Yu(n)?n:Db(n,!1,VN,GN,YE)}function $b(n){return Db(n,!1,FN,qN,JE)}function $d(n){return Db(n,!0,BN,KN,XE)}function Db(n,e,t,r,o){if(!gt(n)||n.__v_raw&&!(e&&n.__v_isReactive))return n;const s=o.get(n);if(s)return s;const i=XN(n);if(i===0)return n;const l=new Proxy(n,i===2?r:t);return o.set(n,l),l}function yu(n){return Yu(n)?yu(n.__v_raw):!!(n&&n.__v_isReactive)}function Yu(n){return!!(n&&n.__v_isReadonly)}function Sh(n){return!!(n&&n.__v_isShallow)}function ZE(n){return n?!!n.__v_raw:!1}function kt(n){const e=n&&n.__v_raw;return e?kt(e):n}function Ju(n){return Object.isExtensible(n)&&PE(n,"__v_skip",!0),n}const Xu=n=>gt(n)?yt(n):n,Vb=n=>gt(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 Pb(()=>e(this._value),()=>wu(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const e=kt(this);return(!e._cacheable||e.effect.dirty)&&Wi(e._value,e._value=e.effect.run())&&wu(e,4),Bb(e),e.effect._dirtyLevel>=2&&wu(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function ZN(n,e,t=!1){let r,o;const s=Je(n);return s?(r=n,o=hn):(r=n.get,o=n.set),new QE(r,o,s||!o,t)}function Bb(n){var e;Fi&&Ul&&(n=kt(n),HE(Ul,(e=n.dep)!=null?e:n.dep=WE(()=>n.dep=void 0,n instanceof QE?n:void 0)))}function wu(n,e=4,t,r){n=kt(n);const o=n.dep;o&&UE(o,e)}function Gt(n){return!!(n&&n.__v_isRef===!0)}function V(n){return e2(n,!1)}function No(n){return e2(n,!0)}function e2(n,e){return Gt(n)?n:new QN(n,e)}class QN{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:kt(e),this._value=t?e:Xu(e)}get value(){return Bb(this),this._value}set value(e){const t=this.__v_isShallow||Sh(e)||Yu(e);e=t?e:kt(e),Wi(e,this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:Xu(e),wu(this,4))}}function x(n){return Gt(n)?n.value:n}const eI={get:(n,e,t)=>x(Reflect.get(n,e,t)),set:(n,e,t,r)=>{const o=n[e];return Gt(o)&&!Gt(t)?(o.value=t,!0):Reflect.set(n,e,t,r)}};function t2(n){return yu(n)?n:new Proxy(n,eI)}class tI{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:r}=e(()=>Bb(this),()=>wu(this));this._get=t,this._set=r}get value(){return this._get()}set value(e){this._set(e)}}function nI(n){return new tI(n)}function Xs(n){const e=ze(n)?new Array(n.length):{};for(const t in n)e[t]=n2(n,t);return e}class rI{constructor(e,t,r){this._object=e,this._key=t,this._defaultValue=r,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return IN(kt(this._object),this._key)}}class oI{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Oo(n,e,t){return Gt(n)?n:Je(n)?new oI(n):gt(n)&&arguments.length>1?n2(n,e,t):V(n)}function n2(n,e,t){const r=n[e];return Gt(r)?r:new rI(n,e,t)}/** +* @vue/runtime-core v3.4.31 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function zi(n,e,t,r){try{return r?n(...r):n()}catch(o){_p(o,e,t)}}function lo(n,e,t,r){if(Je(n)){const o=zi(n,e,t,r);return o&&ME(o)&&o.catch(s=>{_p(s,e,t)}),o}if(ze(n)){const o=[];for(let s=0;s>>1,o=sr[r],s=Qu(o);ses&&sr.splice(e,1)}function lI(n){ze(n)?ja.push(...n):(!Ci||!Ci.includes(n,n.allowRecurse?Al+1:Al))&&ja.push(n),o2()}function Y0(n,e,t=Zu?es+1:0){for(;tQu(t)-Qu(r));if(ja.length=0,Ci){Ci.push(...e);return}for(Ci=e,Al=0;Aln.id==null?1/0:n.id,aI=(n,e)=>{const t=Qu(n)-Qu(e);if(t===0){if(n.pre&&!e.pre)return-1;if(e.pre&&!n.pre)return 1}return t};function i2(n){Gm=!1,Zu=!0,sr.sort(aI);try{for(es=0;esht(h)?h.trim():h)),d&&(o=t.map(jm))}let l,a=r[l=th(e)]||r[l=th(Do(e))];!a&&s&&(a=r[l=th(rl(e))]),a&&lo(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,lo(c,n,6,o)}}function l2(n,e,t=!1){const r=e.emitsCache,o=r.get(n);if(o!==void 0)return o;const s=n.emits;let i={},l=!1;if(!Je(n)){const a=c=>{const u=l2(c,e,!0);u&&(l=!0,mn(i,u))};!t&&e.mixins.length&&e.mixins.forEach(a),n.extends&&a(n.extends),n.mixins&&n.mixins.forEach(a)}return!s&&!l?(gt(n)&&r.set(n,null),null):(ze(s)?s.forEach(a=>i[a]=null):mn(i,s),gt(n)&&r.set(n,i),i)}function Tp(n,e){return!n||!Cp(e)?!1:(e=e.slice(2).replace(/Once$/,""),xt(n,e[0].toLowerCase()+e.slice(1))||xt(n,rl(e))||xt(n,e))}let Rn=null,Op=null;function Eh(n){const e=Rn;return Rn=n,Op=n&&n.type.__scopeId||null,e}function Dd(n){Op=n}function Vd(){Op=null}function _(n,e=Rn,t){if(!e||n._n)return n;const r=(...o)=>{r._d&&u1(-1);const s=Eh(e);let i;try{i=n(...o)}finally{Eh(s),r._d&&u1(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Vg(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,v=Eh(n);let m,w;try{if(t.shapeFlag&4){const y=o||r,S=y;m=Zo(c.call(S,y,u,d,h,f,p)),w=l}else{const y=e;m=Zo(y.length>1?y(d,{attrs:l,slots:i,emit:a}):y(d,null)),w=e.props?l:uI(l)}}catch(y){_u.length=0,_p(y,n,1),m=C(Yn)}let b=m;if(w&&g!==!1){const y=Object.keys(w),{shapeFlag:S}=b;y.length&&S&7&&(s&&y.some(Mb)&&(w=dI(w,s)),b=Gs(b,w,!1,!0))}return t.dirs&&(b=Gs(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(t.dirs):t.dirs),t.transition&&(b.transition=t.transition),m=b,Eh(v),m}const uI=n=>{let e;for(const t in n)(t==="class"||t==="style"||Cp(t))&&((e||(e={}))[t]=n[t]);return e},dI=(n,e)=>{const t={};for(const r in n)(!Mb(r)||!(r.slice(9)in e))&&(t[r]=n[r]);return t};function fI(n,e,t){const{props:r,children:o,component:s}=n,{props:i,children:l,patchFlag:a}=e,c=s.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&a>=0){if(a&1024)return!0;if(a&16)return r?J0(r,i,c):!!i;if(a&8){const u=e.dynamicProps;for(let d=0;dn.__isSuspense;function mI(n,e){e&&e.pendingBranch?ze(n)?e.effects.push(...n):e.effects.push(n):lI(n)}function Mp(n,e,t=Jn,r=!1){if(t){const o=t[n]||(t[n]=[]),s=e.__weh||(e.__weh=(...i)=>{ol();const l=zd(t),a=lo(e,t,n,i);return l(),sl(),a});return r?o.unshift(s):o.push(s),s}}const Zs=n=>(e,t=Jn)=>{(!kp||n==="sp")&&Mp(n,(...r)=>e(...r),t)},Bd=Zs("bm"),ot=Zs("m"),vI=Zs("bu"),ga=Zs("u"),_n=Zs("bum"),bs=Zs("um"),bI=Zs("sp"),yI=Zs("rtg"),wI=Zs("rtc");function CI(n,e=Jn){Mp("ec",n,e)}function $e(n,e){if(Rn===null)return n;const t=Pp(Rn),r=n.dirs||(n.dirs=[]);for(let o=0;oe(i,l,void 0,s));else{const i=Object.keys(n);o=new Array(i.length);for(let l=0,a=i.length;l{const s=r.fn(...o);return s&&(s.key=r.key),s}:r.fn)}return n}/*! #__NO_SIDE_EFFECTS__ */function ge(n,e){return Je(n)?mn({name:n.name},e,{setup:n}):n}const Cu=n=>!!n.type.__asyncLoader;function Ae(n,e,t={},r,o){if(Rn.isCE||Rn.parent&&Cu(Rn.parent)&&Rn.parent.isCE)return e!=="default"&&(t.name=e),C("slot",t,r&&r());let s=n[e];s&&s._c&&(s._d=!1),A();const i=s&&c2(s(t)),l=ve(Re,{key:t.key||i&&i.key||`_${e}`},i||(r?r():[]),i&&n._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function c2(n){return n.some(e=>Pn(e)?!(e.type===Yn||e.type===Re&&!c2(e.children)):!0)?n:null}const qm=n=>n?I2(n)?Pp(n):qm(n.parent):null,xu=mn(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=>qm(n.parent),$root:n=>qm(n.root),$emit:n=>n.emit,$options:n=>Wb(n),$forceUpdate:n=>n.f||(n.f=()=>{n.effect.dirty=!0,zb(n.update)}),$nextTick:n=>n.n||(n.n=it.bind(n.proxy)),$watch:n=>jI.bind(n)}),Bg=(n,e)=>n!==Xt&&!n.__isScriptSetup&&xt(n,e),SI={get({_:n},e){if(e==="__v_skip")return!0;const{ctx:t,setupState:r,data:o,props:s,accessCache:i,type:l,appContext:a}=n;let c;if(e[0]!=="$"){const h=i[e];if(h!==void 0)switch(h){case 1:return r[e];case 2:return o[e];case 4:return t[e];case 3:return s[e]}else{if(Bg(r,e))return i[e]=1,r[e];if(o!==Xt&&xt(o,e))return i[e]=2,o[e];if((c=n.propsOptions[0])&&xt(c,e))return i[e]=3,s[e];if(t!==Xt&&xt(t,e))return i[e]=4,t[e];Km&&(i[e]=0)}}const u=xu[e];let d,f;if(u)return e==="$attrs"&&Pr(n.attrs,"get",""),u(n);if((d=l.__cssModules)&&(d=d[e]))return d;if(t!==Xt&&xt(t,e))return i[e]=4,t[e];if(f=a.config.globalProperties,xt(f,e))return f[e]},set({_:n},e,t){const{data:r,setupState:o,ctx:s}=n;return Bg(o,e)?(o[e]=t,!0):r!==Xt&&xt(r,e)?(r[e]=t,!0):xt(n.props,e)||e[0]==="$"&&e.slice(1)in n?!1:(s[e]=t,!0)},has({_:{data:n,setupState:e,accessCache:t,ctx:r,appContext:o,propsOptions:s}},i){let l;return!!t[i]||n!==Xt&&xt(n,i)||Bg(e,i)||(l=s[0])&&xt(l,i)||xt(r,i)||xt(xu,i)||xt(o.config.globalProperties,i)},defineProperty(n,e,t){return t.get!=null?n._.accessCache[e]=0:xt(t,"value")&&this.set(n,e,t.value,null),Reflect.defineProperty(n,e,t)}};function Ho(){return d2().slots}function u2(){return d2().attrs}function d2(){const n=vt();return n.setupContext||(n.setupContext=R2(n))}function Z0(n){return ze(n)?n.reduce((e,t)=>(e[t]=null,e),{}):n}let Km=!0;function EI(n){const e=Wb(n),t=n.proxy,r=n.ctx;Km=!1,e.beforeCreate&&Q0(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:v,beforeDestroy:m,beforeUnmount:w,destroyed:b,unmounted:y,render:S,renderTracked:E,renderTriggered:T,errorCaptured:M,serverPrefetch:O,expose:k,inheritAttrs:P,components:L,directives:j,filters:le}=e;if(c&&_I(c,r,null),i)for(const K in i){const W=i[K];Je(W)&&(r[K]=W.bind(t))}if(o){const K=o.call(t,t);gt(K)&&(n.data=yt(K))}if(Km=!0,s)for(const K in s){const W=s[K],U=Je(W)?W.bind(t,t):Je(W.get)?W.get.bind(t,t):hn,Q=!Je(W)&&Je(W.set)?W.set.bind(t):hn,de=z({get:U,set:Q});Object.defineProperty(r,K,{enumerable:!0,configurable:!0,get:()=>de.value,set:ee=>de.value=ee})}if(l)for(const K in l)f2(l[K],r,t,K);if(a){const K=Je(a)?a.call(t):a;Reflect.ownKeys(K).forEach(W=>{zt(W,K[W])})}u&&Q0(u,n,"c");function R(K,W){ze(W)?W.forEach(U=>K(U.bind(t))):W&&K(W.bind(t))}if(R(Bd,d),R(ot,f),R(vI,h),R(ga,p),R(HI,g),R(E2,v),R(CI,M),R(wI,E),R(yI,T),R(_n,w),R(bs,y),R(bI,O),ze(k))if(k.length){const K=n.exposed||(n.exposed={});k.forEach(W=>{Object.defineProperty(K,W,{get:()=>t[W],set:U=>t[W]=U})})}else n.exposed||(n.exposed={});S&&n.render===hn&&(n.render=S),P!=null&&(n.inheritAttrs=P),L&&(n.components=L),j&&(n.directives=j)}function _I(n,e,t=hn){ze(n)&&(n=Ym(n));for(const r in n){const o=n[r];let s;gt(o)?"default"in o?s=He(o.from||r,o.default,!0):s=He(o.from||r):s=He(o),Gt(s)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):e[r]=s}}function Q0(n,e,t){lo(ze(n)?n.map(r=>r.bind(e.proxy)):n.bind(e.proxy),e,t)}function f2(n,e,t,r){const o=r.includes(".")?S2(t,r):()=>t[r];if(ht(n)){const s=e[n];Je(s)&&je(o,s)}else if(Je(n))je(o,n.bind(t));else if(gt(n))if(ze(n))n.forEach(s=>f2(s,e,t,r));else{const s=Je(n.handler)?n.handler.bind(t):e[n.handler];Je(s)&&je(o,s,n)}}function Wb(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=>_h(a,c,i,!0)),_h(a,e,i)),gt(e)&&s.set(e,a),a}function _h(n,e,t,r=!1){const{mixins:o,extends:s}=e;s&&_h(n,s,t,!0),o&&o.forEach(i=>_h(n,i,t,!0));for(const i in e)if(!(r&&i==="expose")){const l=TI[i]||t&&t[i];n[i]=l?l(n[i],e[i]):e[i]}return n}const TI={data:e1,props:t1,emits:t1,methods:du,computed:du,beforeCreate:pr,created:pr,beforeMount:pr,mounted:pr,beforeUpdate:pr,updated:pr,beforeDestroy:pr,beforeUnmount:pr,destroyed:pr,unmounted:pr,activated:pr,deactivated:pr,errorCaptured:pr,serverPrefetch:pr,components:du,directives:du,watch:MI,provide:e1,inject:OI};function e1(n,e){return e?n?function(){return mn(Je(n)?n.call(this,this):n,Je(e)?e.call(this,this):e)}:e:n}function OI(n,e){return du(Ym(n),Ym(e))}function Ym(n){if(ze(n)){const e={};for(let t=0;t1)return t&&Je(e)?e.call(r&&r.proxy):e}}const p2={},g2=()=>Object.create(p2),m2=n=>Object.getPrototypeOf(n)===p2;function PI(n,e,t,r=!1){const o={},s=g2();n.propsDefaults=Object.create(null),v2(n,e,o,s);for(const i in n.propsOptions[0])i in o||(o[i]=void 0);t?n.props=r?o:$b(o):n.type.props?n.props=o:n.props=s,n.attrs=s}function NI(n,e,t,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=n,l=kt(o),[a]=n.propsOptions;let c=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=n.vnode.dynamicProps;for(let d=0;d{a=!0;const[f,h]=b2(d,e,!0);mn(i,f),h&&l.push(...h)};!t&&e.mixins.length&&e.mixins.forEach(u),n.extends&&u(n.extends),n.mixins&&n.mixins.forEach(u)}if(!s&&!a)return gt(n)&&r.set(n,Fa),Fa;if(ze(s))for(let u=0;u-1,h[1]=g<0||p-1||xt(h,"default"))&&l.push(d)}}}const c=[i,l];return gt(n)&&r.set(n,c),c}function n1(n){return n[0]!=="$"&&!bu(n)}function r1(n){return n===null?"null":typeof n=="function"?n.name||"":typeof n=="object"&&n.constructor&&n.constructor.name||""}function o1(n,e){return r1(n)===r1(e)}function s1(n,e){return ze(e)?e.findIndex(t=>o1(t,n)):Je(e)&&o1(e,n)?0:-1}const y2=n=>n[0]==="_"||n==="$stable",Gb=n=>ze(n)?n.map(Zo):[Zo(n)],II=(n,e,t)=>{if(e._n)return e;const r=_((...o)=>Gb(e(...o)),t);return r._c=!1,r},w2=(n,e,t)=>{const r=n._ctx;for(const o in n){if(y2(o))continue;const s=n[o];if(Je(s))e[o]=II(o,s,r);else if(s!=null){const i=Gb(s);e[o]=()=>i}}},C2=(n,e)=>{const t=Gb(e);n.slots.default=()=>t},LI=(n,e)=>{const t=n.slots=g2();if(n.vnode.shapeFlag&32){const r=e._;r?(mn(t,e),PE(t,"_",r,!0)):w2(e,t)}else e&&C2(n,e)},RI=(n,e,t)=>{const{vnode:r,slots:o}=n;let s=!0,i=Xt;if(r.shapeFlag&32){const l=e._;l?t&&l===1?s=!1:(mn(o,e),!t&&l===1&&delete o._):(s=!e.$stable,w2(e,o)),i=e}else e&&(C2(n,e),i={default:1});if(s)for(const l in o)!y2(l)&&i[l]==null&&delete o[l]};function Xm(n,e,t,r,o=!1){if(ze(n)){n.forEach((f,h)=>Xm(f,e&&(ze(e)?e[h]:e),t,r,o));return}if(Cu(r)&&!o)return;const s=r.shapeFlag&4?Pp(r.component):r.el,i=o?null:s,{i:l,r:a}=n,c=e&&e.r,u=l.refs===Xt?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(ht(c)?(u[c]=null,xt(d,c)&&(d[c]=null)):Gt(c)&&(c.value=null)),Je(a))zi(a,l,12,[i,u]);else{const f=ht(a),h=Gt(a);if(f||h){const p=()=>{if(n.f){const g=f?xt(d,a)?d[a]:u[a]:a.value;o?ze(g)&&Ab(g,s):ze(g)?g.includes(s)||g.push(s):f?(u[a]=[s],xt(d,a)&&(d[a]=u[a])):(a.value=[s],n.k&&(u[n.k]=a.value))}else f?(u[a]=i,xt(d,a)&&(d[a]=i)):h&&(a.value=i,n.k&&(u[n.k]=i))};i?(p.id=-1,Er(p,t)):p()}}}const Er=mI;function $I(n){return DI(n)}function DI(n,e){const t=NE();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=hn,insertStaticContent:p}=n,g=($,I,re,he=null,pe=null,Se=null,_e=void 0,D=null,B=!!I.dynamicChildren)=>{if($===I)return;$&&!kl($,I)&&(he=ne($),ee($,pe,Se,!0),$=null),I.patchFlag===-2&&(B=!1,I.dynamicChildren=null);const{type:J,ref:ce,shapeFlag:ke}=I;switch(J){case ma:v($,I,re,he);break;case Yn:m($,I,re,he);break;case jg:$==null&&w(I,re,he,_e);break;case Re:L($,I,re,he,pe,Se,_e,D,B);break;default:ke&1?S($,I,re,he,pe,Se,_e,D,B):ke&6?j($,I,re,he,pe,Se,_e,D,B):(ke&64||ke&128)&&J.process($,I,re,he,pe,Se,_e,D,B,me)}ce!=null&&pe&&Xm(ce,$&&$.ref,Se,I||$,!I)},v=($,I,re,he)=>{if($==null)r(I.el=l(I.children),re,he);else{const pe=I.el=$.el;I.children!==$.children&&c(pe,I.children)}},m=($,I,re,he)=>{$==null?r(I.el=a(I.children||""),re,he):I.el=$.el},w=($,I,re,he)=>{[$.el,$.anchor]=p($.children,I,re,he,$.el,$.anchor)},b=({el:$,anchor:I},re,he)=>{let pe;for(;$&&$!==I;)pe=f($),r($,re,he),$=pe;r(I,re,he)},y=({el:$,anchor:I})=>{let re;for(;$&&$!==I;)re=f($),o($),$=re;o(I)},S=($,I,re,he,pe,Se,_e,D,B)=>{I.type==="svg"?_e="svg":I.type==="math"&&(_e="mathml"),$==null?E(I,re,he,pe,Se,_e,D,B):O($,I,pe,Se,_e,D,B)},E=($,I,re,he,pe,Se,_e,D)=>{let B,J;const{props:ce,shapeFlag:ke,transition:se,dirs:te}=$;if(B=$.el=i($.type,Se,ce&&ce.is,ce),ke&8?u(B,$.children):ke&16&&M($.children,B,null,he,pe,Fg($,Se),_e,D),te&&Cl($,null,he,"created"),T(B,$,$.scopeId,_e,he),ce){for(const qe in ce)qe!=="value"&&!bu(qe)&&s(B,qe,null,ce[qe],Se,$.children,he,pe,Oe);"value"in ce&&s(B,"value",null,ce.value,Se),(J=ce.onVnodeBeforeMount)&&Jo(J,he,$)}te&&Cl($,null,he,"beforeMount");const ue=VI(pe,se);ue&&se.beforeEnter(B),r(B,I,re),((J=ce&&ce.onVnodeMounted)||ue||te)&&Er(()=>{J&&Jo(J,he,$),ue&&se.enter(B),te&&Cl($,null,he,"mounted")},pe)},T=($,I,re,he,pe)=>{if(re&&h($,re),he)for(let Se=0;Se{for(let J=B;J<$.length;J++){const ce=$[J]=D?Si($[J]):Zo($[J]);g(null,ce,I,re,he,pe,Se,_e,D)}},O=($,I,re,he,pe,Se,_e)=>{const D=I.el=$.el;let{patchFlag:B,dynamicChildren:J,dirs:ce}=I;B|=$.patchFlag&16;const ke=$.props||Xt,se=I.props||Xt;let te;if(re&&xl(re,!1),(te=se.onVnodeBeforeUpdate)&&Jo(te,re,I,$),ce&&Cl(I,$,re,"beforeUpdate"),re&&xl(re,!0),J?k($.dynamicChildren,J,D,re,he,Fg(I,pe),Se):_e||W($,I,D,null,re,he,Fg(I,pe),Se,!1),B>0){if(B&16)P(D,I,ke,se,re,he,pe);else if(B&2&&ke.class!==se.class&&s(D,"class",null,se.class,pe),B&4&&s(D,"style",ke.style,se.style,pe),B&8){const ue=I.dynamicProps;for(let qe=0;qe{te&&Jo(te,re,I,$),ce&&Cl(I,$,re,"updated")},he)},k=($,I,re,he,pe,Se,_e)=>{for(let D=0;D{if(re!==he){if(re!==Xt)for(const D in re)!bu(D)&&!(D in he)&&s($,D,re[D],null,_e,I.children,pe,Se,Oe);for(const D in he){if(bu(D))continue;const B=he[D],J=re[D];B!==J&&D!=="value"&&s($,D,J,B,_e,I.children,pe,Se,Oe)}"value"in he&&s($,"value",re.value,he.value,_e)}},L=($,I,re,he,pe,Se,_e,D,B)=>{const J=I.el=$?$.el:l(""),ce=I.anchor=$?$.anchor:l("");let{patchFlag:ke,dynamicChildren:se,slotScopeIds:te}=I;te&&(D=D?D.concat(te):te),$==null?(r(J,re,he),r(ce,re,he),M(I.children||[],re,ce,pe,Se,_e,D,B)):ke>0&&ke&64&&se&&$.dynamicChildren?(k($.dynamicChildren,se,re,pe,Se,_e,D),(I.key!=null||pe&&I===pe.subTree)&&qb($,I,!0)):W($,I,re,ce,pe,Se,_e,D,B)},j=($,I,re,he,pe,Se,_e,D,B)=>{I.slotScopeIds=D,$==null?I.shapeFlag&512?pe.ctx.activate(I,re,he,_e,B):le(I,re,he,pe,Se,_e,B):N($,I,B)},le=($,I,re,he,pe,Se,_e)=>{const D=$.component=tL($,he,pe);if(Ap($)&&(D.ctx.renderer=me),nL(D),D.asyncDep){if(pe&&pe.registerDep(D,R,_e),!$.el){const B=D.subTree=C(Yn);m(null,B,I,re)}}else R(D,$,I,re,pe,Se,_e)},N=($,I,re)=>{const he=I.component=$.component;if(fI($,I,re))if(he.asyncDep&&!he.asyncResolved){K(he,I,re);return}else he.next=I,iI(he.update),he.effect.dirty=!0,he.update();else I.el=$.el,he.vnode=I},R=($,I,re,he,pe,Se,_e)=>{const D=()=>{if($.isMounted){let{next:ce,bu:ke,u:se,parent:te,vnode:ue}=$;{const Be=x2($);if(Be){ce&&(ce.el=ue.el,K($,ce,_e)),Be.asyncDep.then(()=>{$.isUnmounted||D()});return}}let qe=ce,ye;xl($,!1),ce?(ce.el=ue.el,K($,ce,_e)):ce=ue,ke&&nh(ke),(ye=ce.props&&ce.props.onVnodeBeforeUpdate)&&Jo(ye,te,ce,ue),xl($,!0);const H=Vg($),xe=$.subTree;$.subTree=H,g(xe,H,d(xe.el),ne(xe),$,pe,Se),ce.el=H.el,qe===null&&hI($,H.el),se&&Er(se,pe),(ye=ce.props&&ce.props.onVnodeUpdated)&&Er(()=>Jo(ye,te,ce,ue),pe)}else{let ce;const{el:ke,props:se}=I,{bm:te,m:ue,parent:qe}=$,ye=Cu(I);if(xl($,!1),te&&nh(te),!ye&&(ce=se&&se.onVnodeBeforeMount)&&Jo(ce,qe,I),xl($,!0),ke&&Ee){const H=()=>{$.subTree=Vg($),Ee(ke,$.subTree,$,pe,null)};ye?I.type.__asyncLoader().then(()=>!$.isUnmounted&&H()):H()}else{const H=$.subTree=Vg($);g(null,H,re,he,$,pe,Se),I.el=H.el}if(ue&&Er(ue,pe),!ye&&(ce=se&&se.onVnodeMounted)){const H=I;Er(()=>Jo(ce,qe,H),pe)}(I.shapeFlag&256||qe&&Cu(qe.vnode)&&qe.vnode.shapeFlag&256)&&$.a&&Er($.a,pe),$.isMounted=!0,I=re=he=null}},B=$.effect=new Pb(D,hn,()=>zb(J),$.scope),J=$.update=()=>{B.dirty&&B.run()};J.id=$.uid,xl($,!0),J()},K=($,I,re)=>{I.component=$;const he=$.vnode.props;$.vnode=I,$.next=null,NI($,I.props,he,re),RI($,I.children,re),ol(),Y0($),sl()},W=($,I,re,he,pe,Se,_e,D,B=!1)=>{const J=$&&$.children,ce=$?$.shapeFlag:0,ke=I.children,{patchFlag:se,shapeFlag:te}=I;if(se>0){if(se&128){Q(J,ke,re,he,pe,Se,_e,D,B);return}else if(se&256){U(J,ke,re,he,pe,Se,_e,D,B);return}}te&8?(ce&16&&Oe(J,pe,Se),ke!==J&&u(re,ke)):ce&16?te&16?Q(J,ke,re,he,pe,Se,_e,D,B):Oe(J,pe,Se,!0):(ce&8&&u(re,""),te&16&&M(ke,re,he,pe,Se,_e,D,B))},U=($,I,re,he,pe,Se,_e,D,B)=>{$=$||Fa,I=I||Fa;const J=$.length,ce=I.length,ke=Math.min(J,ce);let se;for(se=0;sece?Oe($,pe,Se,!0,!1,ke):M(I,re,he,pe,Se,_e,D,B,ke)},Q=($,I,re,he,pe,Se,_e,D,B)=>{let J=0;const ce=I.length;let ke=$.length-1,se=ce-1;for(;J<=ke&&J<=se;){const te=$[J],ue=I[J]=B?Si(I[J]):Zo(I[J]);if(kl(te,ue))g(te,ue,re,null,pe,Se,_e,D,B);else break;J++}for(;J<=ke&&J<=se;){const te=$[ke],ue=I[se]=B?Si(I[se]):Zo(I[se]);if(kl(te,ue))g(te,ue,re,null,pe,Se,_e,D,B);else break;ke--,se--}if(J>ke){if(J<=se){const te=se+1,ue=tese)for(;J<=ke;)ee($[J],pe,Se,!0),J++;else{const te=J,ue=J,qe=new Map;for(J=ue;J<=se;J++){const De=I[J]=B?Si(I[J]):Zo(I[J]);De.key!=null&&qe.set(De.key,J)}let ye,H=0;const xe=se-ue+1;let Be=!1,Ie=0;const ae=new Array(xe);for(J=0;J=xe){ee(De,pe,Se,!0);continue}let rt;if(De.key!=null)rt=qe.get(De.key);else for(ye=ue;ye<=se;ye++)if(ae[ye-ue]===0&&kl(De,I[ye])){rt=ye;break}rt===void 0?ee(De,pe,Se,!0):(ae[rt-ue]=J+1,rt>=Ie?Ie=rt:Be=!0,g(De,I[rt],re,null,pe,Se,_e,D,B),H++)}const Le=Be?BI(ae):Fa;for(ye=Le.length-1,J=xe-1;J>=0;J--){const De=ue+J,rt=I[De],lt=De+1{const{el:Se,type:_e,transition:D,children:B,shapeFlag:J}=$;if(J&6){de($.component.subTree,I,re,he);return}if(J&128){$.suspense.move(I,re,he);return}if(J&64){_e.move($,I,re,me);return}if(_e===Re){r(Se,I,re);for(let ke=0;keD.enter(Se),pe);else{const{leave:ke,delayLeave:se,afterLeave:te}=D,ue=()=>r(Se,I,re),qe=()=>{ke(Se,()=>{ue(),te&&te()})};se?se(Se,ue,qe):qe()}else r(Se,I,re)},ee=($,I,re,he=!1,pe=!1)=>{const{type:Se,props:_e,ref:D,children:B,dynamicChildren:J,shapeFlag:ce,patchFlag:ke,dirs:se,memoIndex:te}=$;if(ke===-2&&(pe=!1),D!=null&&Xm(D,null,re,$,!0),te!=null&&(I.renderCache[te]=void 0),ce&256){I.ctx.deactivate($);return}const ue=ce&1&&se,qe=!Cu($);let ye;if(qe&&(ye=_e&&_e.onVnodeBeforeUnmount)&&Jo(ye,I,$),ce&6)Ce($.component,re,he);else{if(ce&128){$.suspense.unmount(re,he);return}ue&&Cl($,null,I,"beforeUnmount"),ce&64?$.type.remove($,I,re,me,he):J&&(Se!==Re||ke>0&&ke&64)?Oe(J,I,re,!1,!0):(Se===Re&&ke&384||!pe&&ce&16)&&Oe(B,I,re),he&&Me($)}(qe&&(ye=_e&&_e.onVnodeUnmounted)||ue)&&Er(()=>{ye&&Jo(ye,I,$),ue&&Cl($,null,I,"unmounted")},re)},Me=$=>{const{type:I,el:re,anchor:he,transition:pe}=$;if(I===Re){fe(re,he);return}if(I===jg){y($);return}const Se=()=>{o(re),pe&&!pe.persisted&&pe.afterLeave&&pe.afterLeave()};if($.shapeFlag&1&&pe&&!pe.persisted){const{leave:_e,delayLeave:D}=pe,B=()=>_e(re,Se);D?D($.el,Se,B):B()}else Se()},fe=($,I)=>{let re;for(;$!==I;)re=f($),o($),$=re;o(I)},Ce=($,I,re)=>{const{bum:he,scope:pe,update:Se,subTree:_e,um:D,m:B,a:J}=$;i1(B),i1(J),he&&nh(he),pe.stop(),Se&&(Se.active=!1,ee(_e,$,I,re)),D&&Er(D,I),Er(()=>{$.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&$.asyncDep&&!$.asyncResolved&&$.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},Oe=($,I,re,he=!1,pe=!1,Se=0)=>{for(let _e=Se;_e<$.length;_e++)ee($[_e],I,re,he,pe)},ne=$=>$.shapeFlag&6?ne($.component.subTree):$.shapeFlag&128?$.suspense.next():f($.anchor||$.el);let ie=!1;const X=($,I,re)=>{$==null?I._vnode&&ee(I._vnode,null,null,!0):g(I._vnode||null,$,I,null,null,null,re),ie||(ie=!0,Y0(),s2(),ie=!1),I._vnode=$},me={p:g,um:ee,m:de,r:Me,mt:le,mc:M,pc:W,pbc:k,n:ne,o:n};let Pe,Ee;return{render:X,hydrate:Pe,createApp:kI(X,Pe)}}function Fg({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 xl({effect:n,update:e},t){n.allowRecurse=e.allowRecurse=t}function VI(n,e){return(!n||n&&!n.pendingBranch)&&e&&!e.persisted}function qb(n,e,t=!1){const r=n.children,o=e.children;if(ze(r)&&ze(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 x2(n){const e=n.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:x2(e)}function i1(n){if(n)for(let e=0;eHe(FI);function ss(n,e){return Kb(n,null,e)}const xf={};function je(n,e,t){return Kb(n,e,t)}function Kb(n,e,{immediate:t,deep:r,flush:o,once:s,onTrack:i,onTrigger:l}=Xt){if(e&&s){const E=e;e=(...T)=>{E(...T),S()}}const a=Jn,c=E=>r===!0?E:Ai(E,r===!1?1:void 0);let u,d=!1,f=!1;if(Gt(n)?(u=()=>n.value,d=Sh(n)):yu(n)?(u=()=>c(n),d=!0):ze(n)?(f=!0,d=n.some(E=>yu(E)||Sh(E)),u=()=>n.map(E=>{if(Gt(E))return E.value;if(yu(E))return c(E);if(Je(E))return zi(E,a,2)})):Je(n)?e?u=()=>zi(n,a,2):u=()=>(h&&h(),lo(n,a,3,[p])):u=hn,e&&r){const E=u;u=()=>Ai(E())}let h,p=E=>{h=b.onStop=()=>{zi(E,a,4),h=b.onStop=void 0}},g;if(kp)if(p=hn,e?t&&lo(e,a,3,[u(),f?[]:void 0,p]):u(),o==="sync"){const E=zI();g=E.__watcherHandles||(E.__watcherHandles=[])}else return hn;let v=f?new Array(n.length).fill(xf):xf;const m=()=>{if(!(!b.active||!b.dirty))if(e){const E=b.run();(r||d||(f?E.some((T,M)=>Wi(T,v[M])):Wi(E,v)))&&(h&&h(),lo(e,a,3,[E,v===xf?void 0:f&&v[0]===xf?[]:v,p]),v=E)}else b.run()};m.allowRecurse=!!e;let w;o==="sync"?w=m:o==="post"?w=()=>Er(m,a&&a.suspense):(m.pre=!0,a&&(m.id=a.uid),w=()=>zb(m));const b=new Pb(u,hn,w),y=BE(),S=()=>{b.stop(),y&&Ab(y.effects,b)};return e?t?m():v=b.run():o==="post"?Er(b.run.bind(b),a&&a.suspense):b.run(),g&&g.push(S),S}function jI(n,e,t){const r=this.proxy,o=ht(n)?n.includes(".")?S2(r,n):()=>r[n]:n.bind(r,r);let s;Je(e)?s=e:(s=e.handler,t=e);const i=zd(this),l=Kb(o,s.bind(r),t);return i(),l}function S2(n,e){const t=e.split(".");return()=>{let r=n;for(let o=0;o{Ai(r,e,t)});else if(kE(n)){for(const r in n)Ai(n[r],e,t);for(const r of Object.getOwnPropertySymbols(n))Object.prototype.propertyIsEnumerable.call(n,r)&&Ai(n[r],e,t)}return n}const Ap=n=>n.type.__isKeepAlive;function HI(n,e){_2(n,"a",e)}function E2(n,e){_2(n,"da",e)}function _2(n,e,t=Jn){const r=n.__wdc||(n.__wdc=()=>{let o=t;for(;o;){if(o.isDeactivated)return;o=o.parent}return n()});if(Mp(e,r,t),t){let o=t.parent;for(;o&&o.parent;)Ap(o.parent.vnode)&&UI(r,e,t,o),o=o.parent}}function UI(n,e,t,r){const o=Mp(e,n,r,!0);bs(()=>{Ab(r[e],o)},t)}const xi=Symbol("_leaveCb"),Sf=Symbol("_enterCb");function T2(){const n={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ot(()=>{n.isMounted=!0}),_n(()=>{n.isUnmounting=!0}),n}const Kr=[Function,Array],O2={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Kr,onEnter:Kr,onAfterEnter:Kr,onEnterCancelled:Kr,onBeforeLeave:Kr,onLeave:Kr,onAfterLeave:Kr,onLeaveCancelled:Kr,onBeforeAppear:Kr,onAppear:Kr,onAfterAppear:Kr,onAppearCancelled:Kr},M2=n=>{const e=n.subTree;return e.component?M2(e.component):e},WI={name:"BaseTransition",props:O2,setup(n,{slots:e}){const t=vt(),r=T2();return()=>{const o=e.default&&Yb(e.default(),!0);if(!o||!o.length)return;let s=o[0];if(o.length>1){for(const f of o)if(f.type!==Yn){s=f;break}}const i=kt(n),{mode:l}=i;if(r.isLeaving)return zg(s);const a=l1(s);if(!a)return zg(s);let c=ed(a,i,r,t,f=>c=f);Ja(a,c);const u=t.subTree,d=u&&l1(u);if(d&&d.type!==Yn&&!kl(a,d)&&M2(t).type!==Yn){const f=ed(d,i,r,t);if(Ja(d,f),l==="out-in"&&a.type!==Yn)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,t.update.active!==!1&&(t.effect.dirty=!0,t.update())},zg(s);l==="in-out"&&a.type!==Yn&&(f.delayLeave=(h,p,g)=>{const v=A2(r,d);v[String(d.key)]=d,h[xi]=()=>{p(),h[xi]=void 0,delete c.delayedLeave},c.delayedLeave=g})}return s}}},GI=WI;function A2(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 ed(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:v,onAppear:m,onAfterAppear:w,onAppearCancelled:b}=e,y=String(n.key),S=A2(t,n),E=(O,k)=>{O&&lo(O,r,9,k)},T=(O,k)=>{const P=k[1];E(O,k),ze(O)?O.every(L=>L.length<=1)&&P():O.length<=1&&P()},M={mode:i,persisted:l,beforeEnter(O){let k=a;if(!t.isMounted)if(s)k=v||a;else return;O[xi]&&O[xi](!0);const P=S[y];P&&kl(n,P)&&P.el[xi]&&P.el[xi](),E(k,[O])},enter(O){let k=c,P=u,L=d;if(!t.isMounted)if(s)k=m||c,P=w||u,L=b||d;else return;let j=!1;const le=O[Sf]=N=>{j||(j=!0,N?E(L,[O]):E(P,[O]),M.delayedLeave&&M.delayedLeave(),O[Sf]=void 0)};k?T(k,[O,le]):le()},leave(O,k){const P=String(n.key);if(O[Sf]&&O[Sf](!0),t.isUnmounting)return k();E(f,[O]);let L=!1;const j=O[xi]=le=>{L||(L=!0,k(),le?E(g,[O]):E(p,[O]),O[xi]=void 0,S[P]===n&&delete S[P])};S[P]=n,h?T(h,[O,j]):j()},clone(O){const k=ed(O,e,t,r,o);return o&&o(k),k}};return M}function zg(n){if(Ap(n))return n=Gs(n),n.children=null,n}function l1(n){if(!Ap(n))return n;const{shapeFlag:e,children:t}=n;if(t){if(e&16)return t[0];if(e&32&&Je(t.default))return t.default()}}function Ja(n,e){n.shapeFlag&6&&n.component?Ja(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 Yb(n,e=!1,t){let r=[],o=0;for(let s=0;s1)for(let s=0;sn.__isTeleport,Eu=n=>n&&(n.disabled||n.disabled===""),a1=n=>typeof SVGElement<"u"&&n instanceof SVGElement,c1=n=>typeof MathMLElement=="function"&&n instanceof MathMLElement,Zm=(n,e)=>{const t=n&&n.to;return ht(t)?e?e(t):null:t},KI={name:"Teleport",__isTeleport:!0,process(n,e,t,r,o,s,i,l,a,c){const{mc:u,pc:d,pbc:f,o:{insert:h,querySelector:p,createText:g,createComment:v}}=c,m=Eu(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=Zm(e.props,p),M=e.targetAnchor=g("");T&&(h(M,T),i==="svg"||a1(T)?i="svg":(i==="mathml"||c1(T))&&(i="mathml"));const O=(k,P)=>{w&16&&u(b,k,P,o,s,i,l,a)};m?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=Eu(n.props),O=M?t:E,k=M?S:T;if(i==="svg"||a1(E)?i="svg":(i==="mathml"||c1(E))&&(i="mathml"),y?(f(n.dynamicChildren,y,O,o,s,i,l),qb(n,e,!0)):a||d(n,e,O,k,o,s,i,l,!1),m)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 P=e.target=Zm(e.props,p);P&&Ef(e,P,null,c,0)}else M&&Ef(e,E,T,c,1)}k2(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||!Eu(d);for(let h=0;h0?Mo||Fa:null,JI(),td>0&&Mo&&Mo.push(n),n}function q(n,e,t,r,o,s){return P2(F(n,e,t,r,o,s,!0))}function ve(n,e,t,r,o){return P2(C(n,e,t,r,o,!0))}function Pn(n){return n?n.__v_isVNode===!0:!1}function kl(n,e){return n.type===e.type&&n.key===e.key}const N2=({key:n})=>n??null,rh=({ref:n,ref_key:e,ref_for:t})=>(typeof n=="number"&&(n=""+n),n!=null?ht(n)||Gt(n)||Je(n)?{i:Rn,r:n,k:e,f:!!t}:n:null);function F(n,e=null,t=null,r=0,o=null,s=n===Re?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:n,props:e,key:e&&N2(e),ref:e&&rh(e),scopeId:Op,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Rn};return l?(Jb(a,t),s&128&&n.normalize(a)):t&&(a.shapeFlag|=ht(t)?8:16),td>0&&!i&&Mo&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Mo.push(a),a}const C=XI;function XI(n,e=null,t=null,r=0,o=null,s=!1){if((!n||n===a2)&&(n=Yn),Pn(n)){const l=Gs(n,e,!0);return t&&Jb(l,t),td>0&&!s&&Mo&&(l.shapeFlag&6?Mo[Mo.indexOf(n)]=l:Mo.push(l)),l.patchFlag=-2,l}if(iL(n)&&(n=n.__vccOpts),e){e=ZI(e);let{class:l,style:a}=e;l&&!ht(l)&&(e.class=Z(l)),gt(a)&&(ZE(a)&&!ze(a)&&(a=mn({},a)),e.style=wt(a))}const i=ht(n)?1:gI(n)?128:qI(n)?64:gt(n)?4:Je(n)?2:0;return F(n,e,t,r,o,i,s,!0)}function ZI(n){return n?ZE(n)||m2(n)?mn({},n):n:null}function Gs(n,e,t=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:l,transition:a}=n,c=e?jr(o||{},e):o,u={__v_isVNode:!0,__v_skip:!0,type:n.type,props:c,key:c&&N2(c),ref:e&&e.ref?t&&s?ze(s)?s.concat(rh(e)):[s,rh(e)]:rh(e):s,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:l,target:n.target,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:e&&n.type!==Re?i===-1?16:i|16:i,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:a,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&Gs(n.ssContent),ssFallback:n.ssFallback&&Gs(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce};return a&&r&&Ja(u,a.clone(u)),u}function G(n=" ",e=0){return C(ma,null,n,e)}function be(n="",e=!1){return e?(A(),ve(Yn,null,n)):C(Yn,null,n)}function Zo(n){return n==null||typeof n=="boolean"?C(Yn):ze(n)?C(Re,null,n.slice()):typeof n=="object"?Si(n):C(ma,null,String(n))}function Si(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:Gs(n)}function Jb(n,e){let t=0;const{shapeFlag:r}=n;if(e==null)e=null;else if(ze(e))t=16;else if(typeof e=="object")if(r&65){const o=e.default;o&&(o._c&&(o._d=!1),Jb(n,o()),o._c&&(o._d=!0));return}else{t=32;const o=e._;!o&&!m2(e)?e._ctx=Rn:o===3&&Rn&&(Rn.slots._===1?e._=1:(e._=2,n.patchFlag|=1024))}else Je(e)?(e={default:e,_ctx:Rn},t=32):(e=String(e),r&64?(t=16,e=[G(e)]):t=8);n.children=e,n.shapeFlag|=t}function jr(...n){const e={};for(let t=0;tJn||Rn;let Th,Qm;{const n=NE(),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)}};Th=e("__VUE_INSTANCE_SETTERS__",t=>Jn=t),Qm=e("__VUE_SSR_SETTERS__",t=>kp=t)}const zd=n=>{const e=Jn;return Th(n),n.scope.on(),()=>{n.scope.off(),Th(e)}},d1=()=>{Jn&&Jn.scope.off(),Th(null)};function I2(n){return n.vnode.shapeFlag&4}let kp=!1;function nL(n,e=!1){e&&Qm(e);const{props:t,children:r}=n.vnode,o=I2(n);PI(n,t,o,e),LI(n,r);const s=o?rL(n,e):void 0;return e&&Qm(!1),s}function rL(n,e){const t=n.type;n.accessCache=Object.create(null),n.proxy=new Proxy(n.ctx,SI);const{setup:r}=t;if(r){const o=n.setupContext=r.length>1?R2(n):null,s=zd(n);ol();const i=zi(r,n,0,[n.props,o]);if(sl(),s(),ME(i)){if(i.then(d1,d1),e)return i.then(l=>{f1(n,l,e)}).catch(l=>{_p(l,n,0)});n.asyncDep=i}else f1(n,i,e)}else L2(n,e)}function f1(n,e,t){Je(e)?n.type.__ssrInlineRender?n.ssrRender=e:n.render=e:gt(e)&&(n.setupState=t2(e)),L2(n,t)}let h1;function L2(n,e,t){const r=n.type;if(!n.render){if(!e&&h1&&!r.render){const o=r.template||Wb(n).template;if(o){const{isCustomElement:s,compilerOptions:i}=n.appContext.config,{delimiters:l,compilerOptions:a}=r,c=mn(mn({isCustomElement:s,delimiters:l},i),a);r.render=h1(o,c)}}n.render=r.render||hn}{const o=zd(n);ol();try{EI(n)}finally{sl(),o()}}}const oL={get(n,e){return Pr(n,"get",""),n[e]}};function R2(n){const e=t=>{n.exposed=t||{}};return{attrs:new Proxy(n.attrs,oL),slots:n.slots,emit:n.emit,expose:e}}function Pp(n){return n.exposed?n.exposeProxy||(n.exposeProxy=new Proxy(t2(Ju(n.exposed)),{get(e,t){if(t in e)return e[t];if(t in xu)return xu[t](n)},has(e,t){return t in e||t in xu}})):n.proxy}function sL(n,e=!0){return Je(n)?n.displayName||n.name:n.name||e&&n.__name}function iL(n){return Je(n)&&"__vccOpts"in n}const z=(n,e)=>ZN(n,e,kp);function Qe(n,e,t){const r=arguments.length;return r===2?gt(e)&&!ze(e)?Pn(e)?C(n,null,[e]):C(n,e):C(n,null,e):(r>3?t=Array.prototype.slice.call(arguments,2):r===3&&Pn(t)&&(t=[t]),C(n,e,t))}const lL="3.4.31",aL=hn;/** +* @vue/runtime-dom v3.4.31 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const cL="http://www.w3.org/2000/svg",uL="http://www.w3.org/1998/Math/MathML",Ls=typeof document<"u"?document:null,p1=Ls&&Ls.createElement("template"),dL={insert:(n,e,t)=>{e.insertBefore(n,t||null)},remove:n=>{const e=n.parentNode;e&&e.removeChild(n)},createElement:(n,e,t,r)=>{const o=e==="svg"?Ls.createElementNS(cL,n):e==="mathml"?Ls.createElementNS(uL,n):t?Ls.createElement(n,{is:t}):Ls.createElement(n);return n==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:n=>Ls.createTextNode(n),createComment:n=>Ls.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>Ls.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{p1.innerHTML=r==="svg"?`${n}`:r==="mathml"?`${n}`:n;const l=p1.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]}},ci="transition",nu="animation",Xa=Symbol("_vtc"),Nr=(n,{slots:e})=>Qe(GI,D2(n),e);Nr.displayName="Transition";const $2={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},fL=Nr.props=mn({},O2,$2),Sl=(n,e=[])=>{ze(n)?n.forEach(t=>t(...e)):n&&n(...e)},g1=n=>n?ze(n)?n.some(e=>e.length>1):n.length>1:!1;function D2(n){const e={};for(const L in n)L in $2||(e[L]=n[L]);if(n.css===!1)return e;const{name:t="v",type:r,duration:o,enterFromClass:s=`${t}-enter-from`,enterActiveClass:i=`${t}-enter-active`,enterToClass:l=`${t}-enter-to`,appearFromClass:a=s,appearActiveClass:c=i,appearToClass:u=l,leaveFromClass:d=`${t}-leave-from`,leaveActiveClass:f=`${t}-leave-active`,leaveToClass:h=`${t}-leave-to`}=n,p=hL(o),g=p&&p[0],v=p&&p[1],{onBeforeEnter:m,onEnter:w,onEnterCancelled:b,onLeave:y,onLeaveCancelled:S,onBeforeAppear:E=m,onAppear:T=w,onAppearCancelled:M=b}=e,O=(L,j,le)=>{gi(L,j?u:l),gi(L,j?c:i),le&&le()},k=(L,j)=>{L._isLeaving=!1,gi(L,d),gi(L,h),gi(L,f),j&&j()},P=L=>(j,le)=>{const N=L?T:w,R=()=>O(j,L,le);Sl(N,[j,R]),m1(()=>{gi(j,L?a:s),Is(j,L?u:l),g1(N)||v1(j,r,g,R)})};return mn(e,{onBeforeEnter(L){Sl(m,[L]),Is(L,s),Is(L,i)},onBeforeAppear(L){Sl(E,[L]),Is(L,a),Is(L,c)},onEnter:P(!1),onAppear:P(!0),onLeave(L,j){L._isLeaving=!0;const le=()=>k(L,j);Is(L,d),Is(L,f),B2(),m1(()=>{L._isLeaving&&(gi(L,d),Is(L,h),g1(y)||v1(L,r,v,le))}),Sl(y,[L,le])},onEnterCancelled(L){O(L,!1),Sl(b,[L])},onAppearCancelled(L){O(L,!0),Sl(M,[L])},onLeaveCancelled(L){k(L),Sl(S,[L])}})}function hL(n){if(n==null)return null;if(gt(n))return[Hg(n.enter),Hg(n.leave)];{const e=Hg(n);return[e,e]}}function Hg(n){return SN(n)}function Is(n,e){e.split(/\s+/).forEach(t=>t&&n.classList.add(t)),(n[Xa]||(n[Xa]=new Set)).add(e)}function gi(n,e){e.split(/\s+/).forEach(r=>r&&n.classList.remove(r));const t=n[Xa];t&&(t.delete(e),t.size||(n[Xa]=void 0))}function m1(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let pL=0;function v1(n,e,t,r){const o=n._endId=++pL,s=()=>{o===n._endId&&r()};if(t)return setTimeout(s,t);const{type:i,timeout:l,propCount:a}=V2(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(`${ci}Delay`),s=r(`${ci}Duration`),i=b1(o,s),l=r(`${nu}Delay`),a=r(`${nu}Duration`),c=b1(l,a);let u=null,d=0,f=0;e===ci?i>0&&(u=ci,d=i,f=s.length):e===nu?c>0&&(u=nu,d=c,f=a.length):(d=Math.max(i,c),u=d>0?i>c?ci:nu:null,f=u?u===ci?s.length:a.length:0);const h=u===ci&&/\b(transform|all)(,|$)/.test(r(`${ci}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:h}}function b1(n,e){for(;n.lengthy1(t)+y1(n[r])))}function y1(n){return n==="auto"?0:Number(n.slice(0,-1).replace(",","."))*1e3}function B2(){return document.body.offsetHeight}function gL(n,e,t){const r=n[Xa];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}const Oh=Symbol("_vod"),F2=Symbol("_vsh"),Ye={beforeMount(n,{value:e},{transition:t}){n[Oh]=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):ru(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),ru(n,!0),r.enter(n)):r.leave(n,()=>{ru(n,!1)}):ru(n,e))},beforeUnmount(n,{value:e}){ru(n,e)}};function ru(n,e){n.style.display=e?n[Oh]:"none",n[F2]=!e}const mL=Symbol(""),vL=/(^|;)\s*display\s*:/;function bL(n,e,t){const r=n.style,o=ht(t);let s=!1;if(t&&!o){if(e)if(ht(e))for(const i of e.split(";")){const l=i.slice(0,i.indexOf(":")).trim();t[l]==null&&oh(r,l,"")}else for(const i in e)t[i]==null&&oh(r,i,"");for(const i in t)i==="display"&&(s=!0),oh(r,i,t[i])}else if(o){if(e!==t){const i=r[mL];i&&(t+=";"+i),r.cssText=t,s=vL.test(t)}}else e&&n.removeAttribute("style");Oh in n&&(n[Oh]=s?r.display:"",n[F2]&&(r.display="none"))}const w1=/\s*!important$/;function oh(n,e,t){if(ze(t))t.forEach(r=>oh(n,e,r));else if(t==null&&(t=""),e.startsWith("--"))n.setProperty(e,t);else{const r=yL(n,e);w1.test(t)?n.setProperty(rl(r),t.replace(w1,""),"important"):n[r]=t}}const C1=["Webkit","Moz","ms"],Ug={};function yL(n,e){const t=Ug[e];if(t)return t;let r=Do(e);if(r!=="filter"&&r in n)return Ug[e]=r;r=Rd(r);for(let o=0;oWg||(EL.then(()=>Wg=0),Wg=Date.now());function TL(n,e){const t=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=t.attached)return;lo(OL(r,t.value),e,5,[r])};return t.value=n,t.attached=_L(),t}function OL(n,e){if(ze(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 T1=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,ML=(n,e,t,r,o,s,i,l,a)=>{const c=o==="svg";e==="class"?gL(n,r,c):e==="style"?bL(n,t,r):Cp(e)?Mb(e)||xL(n,e,t,r,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):AL(n,e,r,c))?(wL(n,e,r,s,i,l,a),!n.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&S1(n,e,r,c,i,e!=="value")):(e==="true-value"?n._trueValue=r:e==="false-value"&&(n._falseValue=r),S1(n,e,r,c))};function AL(n,e,t,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in n&&T1(e)&&Je(t));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&n.tagName==="INPUT"||e==="type"&&n.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const o=n.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return T1(e)&&ht(t)?!1:e in n}const z2=new WeakMap,j2=new WeakMap,Mh=Symbol("_moveCb"),O1=Symbol("_enterCb"),H2={name:"TransitionGroup",props:mn({},fL,{tag:String,moveClass:String}),setup(n,{slots:e}){const t=vt(),r=T2();let o,s;return ga(()=>{if(!o.length)return;const i=n.moveClass||`${n.name||"v"}-move`;if(!RL(o[0].el,t.vnode.el,i))return;o.forEach(NL),o.forEach(IL);const l=o.filter(LL);B2(),l.forEach(a=>{const c=a.el,u=c.style;Is(c,i),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[Mh]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[Mh]=null,gi(c,i))};c.addEventListener("transitionend",d)})}),()=>{const i=kt(n),l=D2(i);let a=i.tag||Re;if(o=[],s)for(let c=0;cdelete n.mode;H2.props;const PL=H2;function NL(n){const e=n.el;e[Mh]&&e[Mh](),e[O1]&&e[O1]()}function IL(n){j2.set(n,n.el.getBoundingClientRect())}function LL(n){const e=z2.get(n),t=j2.get(n),r=e.left-t.left,o=e.top-t.top;if(r||o){const s=n.el.style;return s.transform=s.webkitTransform=`translate(${r}px,${o}px)`,s.transitionDuration="0s",n}}function RL(n,e,t){const r=n.cloneNode(),o=n[Xa];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}=V2(r);return s.removeChild(r),i}const Za=n=>{const e=n.props["onUpdate:modelValue"]||!1;return ze(e)?t=>nh(e,t):e};function $L(n){n.target.composing=!0}function M1(n){const e=n.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Hs=Symbol("_assign"),DL={created(n,{modifiers:{lazy:e,trim:t,number:r}},o){n[Hs]=Za(o);const s=r||o.props&&o.props.type==="number";ki(n,e?"change":"input",i=>{if(i.target.composing)return;let l=n.value;t&&(l=l.trim()),s&&(l=jm(l)),n[Hs](l)}),t&&ki(n,"change",()=>{n.value=n.value.trim()}),e||(ki(n,"compositionstart",$L),ki(n,"compositionend",M1),ki(n,"change",M1))},mounted(n,{value:e}){n.value=e??""},beforeUpdate(n,{value:e,oldValue:t,modifiers:{lazy:r,trim:o,number:s}},i){if(n[Hs]=Za(i),n.composing)return;const l=(s||n.type==="number")&&!/^0\d/.test(n.value)?jm(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))}},Gi={deep:!0,created(n,e,t){n[Hs]=Za(t),ki(n,"change",()=>{const r=n._modelValue,o=W2(n),s=n.checked,i=n[Hs];if(ze(r)){const l=LE(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(xp(r)){const l=new Set(r);s?l.add(o):l.delete(o),i(l)}else i(G2(n,s))})},mounted:A1,beforeUpdate(n,e,t){n[Hs]=Za(t),A1(n,e,t)}};function A1(n,{value:e,oldValue:t},r){n._modelValue=e,ze(e)?n.checked=LE(e,r.props.value)>-1:xp(e)?n.checked=e.has(r.props.value):e!==t&&(n.checked=Ya(e,G2(n,!0)))}const U2={created(n,{value:e},t){n.checked=Ya(e,t.props.value),n[Hs]=Za(t),ki(n,"change",()=>{n[Hs](W2(n))})},beforeUpdate(n,{value:e,oldValue:t},r){n[Hs]=Za(r),e!==t&&(n.checked=Ya(e,r.props.value))}};function W2(n){return"_value"in n?n._value:n.value}function G2(n,e){const t=e?"_trueValue":"_falseValue";return t in n?n[t]:e}const VL=["ctrl","shift","alt","meta"],BL={stop:n=>n.stopPropagation(),prevent:n=>n.preventDefault(),self:n=>n.target!==n.currentTarget,ctrl:n=>!n.ctrlKey,shift:n=>!n.shiftKey,alt:n=>!n.altKey,meta:n=>!n.metaKey,left:n=>"button"in n&&n.button!==0,middle:n=>"button"in n&&n.button!==1,right:n=>"button"in n&&n.button!==2,exact:(n,e)=>VL.some(t=>n[`${t}Key`]&&!e.includes(t))},It=(n,e)=>{const t=n._withMods||(n._withMods={}),r=e.join(".");return t[r]||(t[r]=(o,...s)=>{for(let i=0;i{const t=n._withKeys||(n._withKeys={}),r=e.join(".");return t[r]||(t[r]=o=>{if(!("key"in o))return;const s=rl(o.key);if(e.some(i=>i===s||FL[i]===s))return n(o)})},zL=mn({patchProp:ML},dL);let k1;function q2(){return k1||(k1=$I(zL))}const qi=(...n)=>{q2().render(...n)},Xb=(...n)=>{const e=q2().createApp(...n),{mount:t}=e;return e.mount=r=>{const o=HL(r);if(!o)return;const s=e._component;!Je(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const i=t(o,!1,jL(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},e};function jL(n){if(n instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&n instanceof MathMLElement)return"mathml"}function HL(n){return ht(n)?document.querySelector(n):n}/*! + * vue-router v4.4.0 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const Aa=typeof document<"u";function UL(n){return n.__esModule||n[Symbol.toStringTag]==="Module"}const Dt=Object.assign;function Gg(n,e){const t={};for(const r in e){const o=e[r];t[r]=Vo(o)?o.map(n):n(o)}return t}const Tu=()=>{},Vo=Array.isArray,K2=/#/g,WL=/&/g,GL=/\//g,qL=/=/g,KL=/\?/g,Y2=/\+/g,YL=/%5B/g,JL=/%5D/g,J2=/%5E/g,XL=/%60/g,X2=/%7B/g,ZL=/%7C/g,Z2=/%7D/g,QL=/%20/g;function Zb(n){return encodeURI(""+n).replace(ZL,"|").replace(YL,"[").replace(JL,"]")}function e3(n){return Zb(n).replace(X2,"{").replace(Z2,"}").replace(J2,"^")}function ev(n){return Zb(n).replace(Y2,"%2B").replace(QL,"+").replace(K2,"%23").replace(WL,"%26").replace(XL,"`").replace(X2,"{").replace(Z2,"}").replace(J2,"^")}function t3(n){return ev(n).replace(qL,"%3D")}function n3(n){return Zb(n).replace(K2,"%23").replace(KL,"%3F")}function r3(n){return n==null?"":n3(n).replace(GL,"%2F")}function nd(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const o3=/\/$/,s3=n=>n.replace(o3,"");function qg(n,e,t="/"){let r,o={},s="",i="";const l=e.indexOf("#");let a=e.indexOf("?");return l=0&&(a=-1),a>-1&&(r=e.slice(0,a),s=e.slice(a+1,l>-1?l:e.length),o=n(s)),l>-1&&(r=r||e.slice(0,l),i=e.slice(l,e.length)),r=c3(r??e,t),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:nd(i)}}function i3(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function P1(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function l3(n,e,t){const r=e.matched.length-1,o=t.matched.length-1;return r>-1&&r===o&&Qa(e.matched[r],t.matched[o])&&Q2(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function Qa(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(!a3(n[t],e[t]))return!1;return!0}function a3(n,e){return Vo(n)?N1(n,e):Vo(e)?N1(e,n):n===e}function N1(n,e){return Vo(e)?n.length===e.length&&n.every((t,r)=>t===e[r]):n.length===1&&n[0]===e}function c3(n,e){if(n.startsWith("/"))return n;if(!n)return e;const t=e.split("/"),r=n.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=t.length-1,i,l;for(i=0;i1&&s--;else break;return t.slice(0,s).join("/")+"/"+r.slice(i).join("/")}const ui={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var rd;(function(n){n.pop="pop",n.push="push"})(rd||(rd={}));var Ou;(function(n){n.back="back",n.forward="forward",n.unknown=""})(Ou||(Ou={}));function u3(n){if(!n)if(Aa){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),s3(n)}const d3=/^[^#]+#/;function f3(n,e){return n.replace(d3,"#")+e}function h3(n,e){const t=document.documentElement.getBoundingClientRect(),r=n.getBoundingClientRect();return{behavior:e.behavior,left:r.left-t.left-(e.left||0),top:r.top-t.top-(e.top||0)}}const Np=()=>({left:window.scrollX,top:window.scrollY});function p3(n){let e;if("el"in n){const t=n.el,r=typeof t=="string"&&t.startsWith("#"),o=typeof t=="string"?r?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!o)return;e=h3(o,n)}else e=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function I1(n,e){return(history.state?history.state.position-e:-1)+n}const tv=new Map;function g3(n,e){tv.set(n,e)}function m3(n){const e=tv.get(n);return tv.delete(n),e}let v3=()=>location.protocol+"//"+location.host;function e_(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),P1(a,"")}return P1(t,n)+r+o}function b3(n,e,t,r){let o=[],s=[],i=null;const l=({state:f})=>{const h=e_(n,location),p=t.value,g=e.value;let v=0;if(f){if(t.value=h,e.value=f,i&&i===p){i=null;return}v=g?f.position-g.position:0}else r(h);o.forEach(m=>{m(t.value,p,{delta:v,type:rd.pop,direction:v?v>0?Ou.forward:Ou.back:Ou.unknown})})};function a(){i=t.value}function c(f){o.push(f);const h=()=>{const p=o.indexOf(f);p>-1&&o.splice(p,1)};return s.push(h),h}function u(){const{history:f}=window;f.state&&f.replaceState(Dt({},f.state,{scroll:Np()}),"")}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 L1(n,e,t,r=!1,o=!1){return{back:n,current:e,forward:t,replaced:r,position:window.history.length,scroll:o?Np():null}}function y3(n){const{history:e,location:t}=window,r={value:e_(n,t)},o={value:e.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(a,c,u){const d=n.indexOf("#"),f=d>-1?(t.host&&document.querySelector("base")?n:n.slice(d))+a:v3()+n+a;try{e[u?"replaceState":"pushState"](c,"",f),o.value=c}catch{t[u?"replace":"assign"](f)}}function i(a,c){const u=Dt({},e.state,L1(o.value.back,a,o.value.forward,!0),c,{position:o.value.position});s(a,u,!0),r.value=a}function l(a,c){const u=Dt({},o.value,e.state,{forward:a,scroll:Np()});s(u.current,u,!0);const d=Dt({},L1(r.value,a,null),{position:u.position+1},c);s(a,d,!1),r.value=a}return{location:r,state:o,push:l,replace:i}}function w3(n){n=u3(n);const e=y3(n),t=b3(n,e.state,e.location,e.replace);function r(s,i=!0){i||t.pauseListeners(),history.go(s)}const o=Dt({location:"",base:n,go:r,createHref:f3.bind(null,n)},e,t);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>e.state.value}),o}function C3(n){return n=location.host?n||location.pathname+location.search:"",n.includes("#")||(n+="#"),w3(n)}function x3(n){return typeof n=="string"||n&&typeof n=="object"}function t_(n){return typeof n=="string"||typeof n=="symbol"}const n_=Symbol("");var R1;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(R1||(R1={}));function ec(n,e){return Dt(new Error,{type:n,[n_]:!0},e)}function Os(n,e){return n instanceof Error&&n_ in n&&(e==null||!!(n.type&e))}const $1="[^/]+?",S3={sensitive:!1,strict:!1,start:!0,end:!0},E3=/[.+*?^${}()[\]/\\]/g;function _3(n,e){const t=Dt({},S3,e),r=[];let o=t.start?"^":"";const s=[];for(const c of n){const u=c.length?[]:[90];t.strict&&!c.length&&(o+="/");for(let d=0;de.length?e.length===1&&e[0]===80?1:-1:0}function r_(n,e){let t=0;const r=n.score,o=e.score;for(;t0&&e[e.length-1]<0}const O3={type:0,value:""},M3=/[a-zA-Z0-9_]/;function A3(n){if(!n)return[[]];if(n==="/")return[[O3]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function e(h){throw new Error(`ERR (${t})/"${c}": ${h}`)}let t=0,r=t;const o=[];let s;function i(){s&&o.push(s),s=[]}let l=0,a,c="",u="";function d(){c&&(t===0?s.push({type:0,value:c}):t===1||t===2||t===3?(s.length>1&&(a==="*"||a==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):e("Invalid state to consume buffer"),c="")}function f(){c+=a}for(;l{i(b)}:Tu}function i(d){if(t_(d)){const f=r.get(d);f&&(r.delete(d),t.splice(t.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=t.indexOf(d);f>-1&&(t.splice(f,1),d.record.name&&r.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function l(){return t}function a(d){const f=R3(d,t);t.splice(f,0,d),d.record.name&&!B1(d)&&r.set(d.record.name,d)}function c(d,f){let h,p={},g,v;if("name"in d&&d.name){if(h=r.get(d.name),!h)throw ec(1,{location:d});v=h.record.name,p=Dt(V1(f.params,h.keys.filter(b=>!b.optional).concat(h.parent?h.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),d.params&&V1(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),v=h.record.name);else{if(h=f.name?r.get(f.name):t.find(b=>b.re.test(f.path)),!h)throw ec(1,{location:d,currentLocation:f});v=h.record.name,p=Dt({},f.params,d.params),g=h.stringify(p)}const m=[];let w=h;for(;w;)m.unshift(w.record),w=w.parent;return{name:v,path:g,params:p,matched:m,meta:L3(m)}}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 V1(n,e){const t={};for(const r of e)r in n&&(t[r]=n[r]);return t}function N3(n){return{path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:void 0,beforeEnter:n.beforeEnter,props:I3(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}}}function I3(n){const e={},t=n.props||!1;if("component"in n)e.default=t;else for(const r in n.components)e[r]=typeof t=="object"?t[r]:t;return e}function B1(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function L3(n){return n.reduce((e,t)=>Dt(e,t.meta),{})}function F1(n,e){const t={};for(const r in n)t[r]=r in e?e[r]:n[r];return t}function R3(n,e){let t=0,r=e.length;for(;t!==r;){const s=t+r>>1;r_(n,e[s])<0?r=s:t=s+1}const o=$3(n);return o&&(r=e.lastIndexOf(o,r-1)),r}function $3(n){let e=n;for(;e=e.parent;)if(o_(e)&&r_(n,e)===0)return e}function o_({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function D3(n){const e={};if(n===""||n==="?")return e;const r=(n[0]==="?"?n.slice(1):n).split("&");for(let o=0;os&&ev(s)):[r&&ev(r)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+t,s!=null&&(e+="="+s))})}return e}function V3(n){const e={};for(const t in n){const r=n[t];r!==void 0&&(e[t]=Vo(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return e}const B3=Symbol(""),j1=Symbol(""),Ip=Symbol(""),Qb=Symbol(""),nv=Symbol("");function ou(){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 Ei(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(ec(4,{from:t,to:e})):f instanceof Error?a(f):x3(f)?a(ec(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 Kg(n,e,t,r,o=s=>s()){const s=[];for(const i of n)for(const l in i.components){let a=i.components[l];if(!(e!=="beforeRouteEnter"&&!i.instances[l]))if(F3(a)){const u=(a.__vccOpts||a)[e];u&&s.push(Ei(u,t,r,i,l,o))}else{let c=a();s.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${i.path}"`));const d=UL(u)?u.default:u;i.components[l]=d;const h=(d.__vccOpts||d)[e];return h&&Ei(h,t,r,i,l,o)()}))}}return s}function F3(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function H1(n){const e=He(Ip),t=He(Qb),r=z(()=>{const a=x(n.to);return e.resolve(a)}),o=z(()=>{const{matched:a}=r.value,{length:c}=a,u=a[c-1],d=t.matched;if(!u||!d.length)return-1;const f=d.findIndex(Qa.bind(null,u));if(f>-1)return f;const h=U1(a[c-2]);return c>1&&U1(u)===h&&d[d.length-1].path!==h?d.findIndex(Qa.bind(null,a[c-2])):f}),s=z(()=>o.value>-1&&U3(t.params,r.value.params)),i=z(()=>o.value>-1&&o.value===t.matched.length-1&&Q2(t.params,r.value.params));function l(a={}){return H3(a)?e[x(n.replace)?"replace":"push"](x(n.to)).catch(Tu):Promise.resolve()}return{route:r,href:z(()=>r.value.href),isActive:s,isExactActive:i,navigate:l}}const z3=ge({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:H1,setup(n,{slots:e}){const t=yt(H1(n)),{options:r}=He(Ip),o=z(()=>({[W1(n.activeClass,r.linkActiveClass,"router-link-active")]:t.isActive,[W1(n.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const s=e.default&&e.default(t);return n.custom?s:Qe("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:o.value},s)}}}),j3=z3;function H3(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const e=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return n.preventDefault&&n.preventDefault(),!0}}function U3(n,e){for(const t in e){const r=e[t],o=n[t];if(typeof r=="string"){if(r!==o)return!1}else if(!Vo(o)||o.length!==r.length||r.some((s,i)=>s!==o[i]))return!1}return!0}function U1(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const W1=(n,e,t)=>n??e??t,W3=ge({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:e,slots:t}){const r=He(nv),o=z(()=>n.route||r.value),s=He(j1,0),i=z(()=>{let c=x(s);const{matched:u}=o.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),l=z(()=>o.value.matched[i.value]);zt(j1,z(()=>i.value+1)),zt(B3,l),zt(nv,o);const a=V();return je(()=>[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||!Qa(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 G1(t.default,{Component:f,route:c});const h=d.props[u],p=h?h===!0?c.params:typeof h=="function"?h(c):h:null,v=Qe(f,Dt({},p,e,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(d.instances[u]=null)},ref:a}));return G1(t.default,{Component:v,route:c})||v}}});function G1(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const G3=W3;function q3(n){const e=P3(n.routes,n),t=n.parseQuery||D3,r=n.stringifyQuery||z1,o=n.history,s=ou(),i=ou(),l=ou(),a=No(ui);let c=ui;Aa&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Gg.bind(null,ne=>""+ne),d=Gg.bind(null,r3),f=Gg.bind(null,nd);function h(ne,ie){let X,me;return t_(ne)?(X=e.getRecordMatcher(ne),me=ie):me=ne,e.addRoute(me,X)}function p(ne){const ie=e.getRecordMatcher(ne);ie&&e.removeRoute(ie)}function g(){return e.getRoutes().map(ne=>ne.record)}function v(ne){return!!e.getRecordMatcher(ne)}function m(ne,ie){if(ie=Dt({},ie||a.value),typeof ne=="string"){const I=qg(t,ne,ie.path),re=e.resolve({path:I.path},ie),he=o.createHref(I.fullPath);return Dt(I,re,{params:f(re.params),hash:nd(I.hash),redirectedFrom:void 0,href:he})}let X;if(ne.path!=null)X=Dt({},ne,{path:qg(t,ne.path,ie.path).path});else{const I=Dt({},ne.params);for(const re in I)I[re]==null&&delete I[re];X=Dt({},ne,{params:d(I)}),ie.params=d(ie.params)}const me=e.resolve(X,ie),Pe=ne.hash||"";me.params=u(f(me.params));const Ee=i3(r,Dt({},ne,{hash:e3(Pe),path:me.path})),$=o.createHref(Ee);return Dt({fullPath:Ee,hash:Pe,query:r===z1?V3(ne.query):ne.query||{}},me,{redirectedFrom:void 0,href:$})}function w(ne){return typeof ne=="string"?qg(t,ne,a.value.path):Dt({},ne)}function b(ne,ie){if(c!==ne)return ec(8,{from:ie,to:ne})}function y(ne){return T(ne)}function S(ne){return y(Dt(w(ne),{replace:!0}))}function E(ne){const ie=ne.matched[ne.matched.length-1];if(ie&&ie.redirect){const{redirect:X}=ie;let me=typeof X=="function"?X(ne):X;return typeof me=="string"&&(me=me.includes("?")||me.includes("#")?me=w(me):{path:me},me.params={}),Dt({query:ne.query,hash:ne.hash,params:me.path!=null?{}:ne.params},me)}}function T(ne,ie){const X=c=m(ne),me=a.value,Pe=ne.state,Ee=ne.force,$=ne.replace===!0,I=E(X);if(I)return T(Dt(w(I),{state:typeof I=="object"?Dt({},Pe,I.state):Pe,force:Ee,replace:$}),ie||X);const re=X;re.redirectedFrom=ie;let he;return!Ee&&l3(r,me,X)&&(he=ec(16,{to:re,from:me}),de(me,me,!0,!1)),(he?Promise.resolve(he):k(re,me)).catch(pe=>Os(pe)?Os(pe,2)?pe:Q(pe):W(pe,re,me)).then(pe=>{if(pe){if(Os(pe,2))return T(Dt({replace:$},w(pe.to),{state:typeof pe.to=="object"?Dt({},Pe,pe.to.state):Pe,force:Ee}),ie||re)}else pe=L(re,me,!0,$,Pe);return P(re,me,pe),pe})}function M(ne,ie){const X=b(ne,ie);return X?Promise.reject(X):Promise.resolve()}function O(ne){const ie=fe.values().next().value;return ie&&typeof ie.runWithContext=="function"?ie.runWithContext(ne):ne()}function k(ne,ie){let X;const[me,Pe,Ee]=K3(ne,ie);X=Kg(me.reverse(),"beforeRouteLeave",ne,ie);for(const I of me)I.leaveGuards.forEach(re=>{X.push(Ei(re,ne,ie))});const $=M.bind(null,ne,ie);return X.push($),Oe(X).then(()=>{X=[];for(const I of s.list())X.push(Ei(I,ne,ie));return X.push($),Oe(X)}).then(()=>{X=Kg(Pe,"beforeRouteUpdate",ne,ie);for(const I of Pe)I.updateGuards.forEach(re=>{X.push(Ei(re,ne,ie))});return X.push($),Oe(X)}).then(()=>{X=[];for(const I of Ee)if(I.beforeEnter)if(Vo(I.beforeEnter))for(const re of I.beforeEnter)X.push(Ei(re,ne,ie));else X.push(Ei(I.beforeEnter,ne,ie));return X.push($),Oe(X)}).then(()=>(ne.matched.forEach(I=>I.enterCallbacks={}),X=Kg(Ee,"beforeRouteEnter",ne,ie,O),X.push($),Oe(X))).then(()=>{X=[];for(const I of i.list())X.push(Ei(I,ne,ie));return X.push($),Oe(X)}).catch(I=>Os(I,8)?I:Promise.reject(I))}function P(ne,ie,X){l.list().forEach(me=>O(()=>me(ne,ie,X)))}function L(ne,ie,X,me,Pe){const Ee=b(ne,ie);if(Ee)return Ee;const $=ie===ui,I=Aa?history.state:{};X&&(me||$?o.replace(ne.fullPath,Dt({scroll:$&&I&&I.scroll},Pe)):o.push(ne.fullPath,Pe)),a.value=ne,de(ne,ie,X,$),Q()}let j;function le(){j||(j=o.listen((ne,ie,X)=>{if(!Ce.listening)return;const me=m(ne),Pe=E(me);if(Pe){T(Dt(Pe,{replace:!0}),me).catch(Tu);return}c=me;const Ee=a.value;Aa&&g3(I1(Ee.fullPath,X.delta),Np()),k(me,Ee).catch($=>Os($,12)?$:Os($,2)?(T($.to,me).then(I=>{Os(I,20)&&!X.delta&&X.type===rd.pop&&o.go(-1,!1)}).catch(Tu),Promise.reject()):(X.delta&&o.go(-X.delta,!1),W($,me,Ee))).then($=>{$=$||L(me,Ee,!1),$&&(X.delta&&!Os($,8)?o.go(-X.delta,!1):X.type===rd.pop&&Os($,20)&&o.go(-1,!1)),P(me,Ee,$)}).catch(Tu)}))}let N=ou(),R=ou(),K;function W(ne,ie,X){Q(ne);const me=R.list();return me.length&&me.forEach(Pe=>Pe(ne,ie,X)),Promise.reject(ne)}function U(){return K&&a.value!==ui?Promise.resolve():new Promise((ne,ie)=>{N.add([ne,ie])})}function Q(ne){return K||(K=!ne,le(),N.list().forEach(([ie,X])=>ne?X(ne):ie()),N.reset()),ne}function de(ne,ie,X,me){const{scrollBehavior:Pe}=n;if(!Aa||!Pe)return Promise.resolve();const Ee=!X&&m3(I1(ne.fullPath,0))||(me||!X)&&history.state&&history.state.scroll||null;return it().then(()=>Pe(ne,ie,Ee)).then($=>$&&p3($)).catch($=>W($,ne,ie))}const ee=ne=>o.go(ne);let Me;const fe=new Set,Ce={currentRoute:a,listening:!0,addRoute:h,removeRoute:p,clearRoutes:e.clearRoutes,hasRoute:v,getRoutes:g,resolve:m,options:n,push:y,replace:S,go:ee,back:()=>ee(-1),forward:()=>ee(1),beforeEach:s.add,beforeResolve:i.add,afterEach:l.add,onError:R.add,isReady:U,install(ne){const ie=this;ne.component("RouterLink",j3),ne.component("RouterView",G3),ne.config.globalProperties.$router=ie,Object.defineProperty(ne.config.globalProperties,"$route",{enumerable:!0,get:()=>x(a)}),Aa&&!Me&&a.value===ui&&(Me=!0,y(o.location).catch(Pe=>{}));const X={};for(const Pe in ui)Object.defineProperty(X,Pe,{get:()=>a.value[Pe],enumerable:!0});ne.provide(Ip,ie),ne.provide(Qb,$b(X)),ne.provide(nv,a);const me=ne.unmount;fe.add(ne),ne.unmount=function(){fe.delete(ne),fe.size<1&&(c=ui,j&&j(),j=null,a.value=ui,Me=!1,K=!1),me()}}};function Oe(ne){return ne.reduce((ie,X)=>ie.then(()=>O(X)),Promise.resolve())}return Ce}function K3(n,e){const t=[],r=[],o=[],s=Math.max(e.matched.length,n.matched.length);for(let i=0;iQa(c,l))?r.push(l):t.push(l));const a=n.matched[i];a&&(e.matched.find(c=>Qa(c,a))||o.push(a))}return[t,r,o]}function yo(){return He(Ip)}function Qs(n){return He(Qb)}/*! + * shared v9.13.1 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */const Ah=typeof window<"u",il=(n,e=!1)=>e?Symbol.for(n):Symbol(n),Y3=(n,e,t)=>J3({l:n,k:e,s:t}),J3=n=>JSON.stringify(n).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),An=n=>typeof n=="number"&&isFinite(n),X3=n=>i_(n)==="[object Date]",Ki=n=>i_(n)==="[object RegExp]",Lp=n=>mt(n)&&Object.keys(n).length===0,Qn=Object.assign;let q1;const Vs=()=>q1||(q1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function K1(n){return n.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const Z3=Object.prototype.hasOwnProperty;function kh(n,e){return Z3.call(n,e)}const Qt=Array.isArray,Kt=n=>typeof n=="function",We=n=>typeof n=="string",Mt=n=>typeof n=="boolean",Lt=n=>n!==null&&typeof n=="object",Q3=n=>Lt(n)&&Kt(n.then)&&Kt(n.catch),s_=Object.prototype.toString,i_=n=>s_.call(n),mt=n=>{if(!Lt(n))return!1;const e=Object.getPrototypeOf(n);return e===null||e.constructor===Object},eR=n=>n==null?"":Qt(n)||mt(n)&&n.toString===s_?JSON.stringify(n,null,2):String(n);function tR(n,e=""){return n.reduce((t,r,o)=>o===0?t+r:t+e+r,"")}function Rp(n){let e=n;return()=>++e}function nR(n,e){}const _f=n=>!Lt(n)||Qt(n);function sh(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 rR(n,e,t){return{line:n,column:e,offset:t}}function Ph(n,e,t){return{start:n,end:e}}const oR=/\{([0-9a-zA-Z]+)\}/g;function l_(n,...e){return e.length===1&&sR(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),n.replace(oR,(t,r)=>e.hasOwnProperty(r)?e[r]:"")}const a_=Object.assign,Y1=n=>typeof n=="string",sR=n=>n!==null&&typeof n=="object";function c_(n,e=""){return n.reduce((t,r,o)=>o===0?t+r:t+e+r,"")}const ey={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},iR={[ey.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function lR(n,e,...t){const r=l_(iR[n],...t||[]),o={message:String(r),code:n};return e&&(o.location=e),o}const ut={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},aR={[ut.EXPECTED_TOKEN]:"Expected token: '{0}'",[ut.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[ut.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[ut.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[ut.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[ut.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[ut.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[ut.EMPTY_PLACEHOLDER]:"Empty placeholder",[ut.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[ut.INVALID_LINKED_FORMAT]:"Invalid linked format",[ut.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[ut.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[ut.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[ut.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[ut.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[ut.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function zc(n,e,t={}){const{domain:r,messages:o,args:s}=t,i=l_((o||aR)[n]||"",...s||[]),l=new SyntaxError(String(i));return l.code=n,e&&(l.location=e),l.domain=r,l}function cR(n){throw n}const Ms=" ",uR="\r",gr=` +`,dR="\u2028",fR="\u2029";function hR(n){const e=n;let t=0,r=1,o=1,s=0;const i=T=>e[T]===uR&&e[T+1]===gr,l=T=>e[T]===gr,a=T=>e[T]===fR,c=T=>e[T]===dR,u=T=>i(T)||l(T)||a(T)||c(T),d=()=>t,f=()=>r,h=()=>o,p=()=>s,g=T=>i(T)||a(T)||c(T)?gr:e[T],v=()=>g(t),m=()=>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:v,currentPeek:m,next:w,peek:b,reset:y,resetPeek:S,skipToPeek:E}}const di=void 0,pR=".",J1="'",gR="tokenizer";function mR(n,e={}){const t=e.location!==!1,r=hR(n),o=()=>r.index(),s=()=>rR(r.line(),r.column(),r.index()),i=s(),l=o(),a={currentType:14,offset:l,startLoc:i,endLoc:i,lastType:14,lastOffset:l,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},c=()=>a,{onError:u}=e;function d(D,B,J,...ce){const ke=c();if(B.column+=J,B.offset+=J,u){const se=t?Ph(ke.startLoc,B):null,te=zc(D,se,{domain:gR,args:ce});u(te)}}function f(D,B,J){D.endLoc=s(),D.currentType=B;const ce={type:B};return t&&(ce.loc=Ph(D.startLoc,D.endLoc)),J!=null&&(ce.value=J),ce}const h=D=>f(D,14);function p(D,B){return D.currentChar()===B?(D.next(),B):(d(ut.EXPECTED_TOKEN,s(),0,B),"")}function g(D){let B="";for(;D.currentPeek()===Ms||D.currentPeek()===gr;)B+=D.currentPeek(),D.peek();return B}function v(D){const B=g(D);return D.skipToPeek(),B}function m(D){if(D===di)return!1;const B=D.charCodeAt(0);return B>=97&&B<=122||B>=65&&B<=90||B===95}function w(D){if(D===di)return!1;const B=D.charCodeAt(0);return B>=48&&B<=57}function b(D,B){const{currentType:J}=B;if(J!==2)return!1;g(D);const ce=m(D.currentPeek());return D.resetPeek(),ce}function y(D,B){const{currentType:J}=B;if(J!==2)return!1;g(D);const ce=D.currentPeek()==="-"?D.peek():D.currentPeek(),ke=w(ce);return D.resetPeek(),ke}function S(D,B){const{currentType:J}=B;if(J!==2)return!1;g(D);const ce=D.currentPeek()===J1;return D.resetPeek(),ce}function E(D,B){const{currentType:J}=B;if(J!==8)return!1;g(D);const ce=D.currentPeek()===".";return D.resetPeek(),ce}function T(D,B){const{currentType:J}=B;if(J!==9)return!1;g(D);const ce=m(D.currentPeek());return D.resetPeek(),ce}function M(D,B){const{currentType:J}=B;if(!(J===8||J===12))return!1;g(D);const ce=D.currentPeek()===":";return D.resetPeek(),ce}function O(D,B){const{currentType:J}=B;if(J!==10)return!1;const ce=()=>{const se=D.currentPeek();return se==="{"?m(D.peek()):se==="@"||se==="%"||se==="|"||se===":"||se==="."||se===Ms||!se?!1:se===gr?(D.peek(),ce()):L(D,!1)},ke=ce();return D.resetPeek(),ke}function k(D){g(D);const B=D.currentPeek()==="|";return D.resetPeek(),B}function P(D){const B=g(D),J=D.currentPeek()==="%"&&D.peek()==="{";return D.resetPeek(),{isModulo:J,hasSpace:B.length>0}}function L(D,B=!0){const J=(ke=!1,se="",te=!1)=>{const ue=D.currentPeek();return ue==="{"?se==="%"?!1:ke:ue==="@"||!ue?se==="%"?!0:ke:ue==="%"?(D.peek(),J(ke,"%",!0)):ue==="|"?se==="%"||te?!0:!(se===Ms||se===gr):ue===Ms?(D.peek(),J(!0,Ms,te)):ue===gr?(D.peek(),J(!0,gr,te)):!0},ce=J();return B&&D.resetPeek(),ce}function j(D,B){const J=D.currentChar();return J===di?di:B(J)?(D.next(),J):null}function le(D){const B=D.charCodeAt(0);return B>=97&&B<=122||B>=65&&B<=90||B>=48&&B<=57||B===95||B===36}function N(D){return j(D,le)}function R(D){const B=D.charCodeAt(0);return B>=97&&B<=122||B>=65&&B<=90||B>=48&&B<=57||B===95||B===36||B===45}function K(D){return j(D,R)}function W(D){const B=D.charCodeAt(0);return B>=48&&B<=57}function U(D){return j(D,W)}function Q(D){const B=D.charCodeAt(0);return B>=48&&B<=57||B>=65&&B<=70||B>=97&&B<=102}function de(D){return j(D,Q)}function ee(D){let B="",J="";for(;B=U(D);)J+=B;return J}function Me(D){v(D);const B=D.currentChar();return B!=="%"&&d(ut.EXPECTED_TOKEN,s(),0,B),D.next(),"%"}function fe(D){let B="";for(;;){const J=D.currentChar();if(J==="{"||J==="}"||J==="@"||J==="|"||!J)break;if(J==="%")if(L(D))B+=J,D.next();else break;else if(J===Ms||J===gr)if(L(D))B+=J,D.next();else{if(k(D))break;B+=J,D.next()}else B+=J,D.next()}return B}function Ce(D){v(D);let B="",J="";for(;B=K(D);)J+=B;return D.currentChar()===di&&d(ut.UNTERMINATED_CLOSING_BRACE,s(),0),J}function Oe(D){v(D);let B="";return D.currentChar()==="-"?(D.next(),B+=`-${ee(D)}`):B+=ee(D),D.currentChar()===di&&d(ut.UNTERMINATED_CLOSING_BRACE,s(),0),B}function ne(D){return D!==J1&&D!==gr}function ie(D){v(D),p(D,"'");let B="",J="";for(;B=j(D,ne);)B==="\\"?J+=X(D):J+=B;const ce=D.currentChar();return ce===gr||ce===di?(d(ut.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),ce===gr&&(D.next(),p(D,"'")),J):(p(D,"'"),J)}function X(D){const B=D.currentChar();switch(B){case"\\":case"'":return D.next(),`\\${B}`;case"u":return me(D,B,4);case"U":return me(D,B,6);default:return d(ut.UNKNOWN_ESCAPE_SEQUENCE,s(),0,B),""}}function me(D,B,J){p(D,B);let ce="";for(let ke=0;ke{const ce=D.currentChar();return ce==="{"||ce==="%"||ce==="@"||ce==="|"||ce==="("||ce===")"||!ce||ce===Ms?J:(J+=ce,D.next(),B(J))};return B("")}function re(D){v(D);const B=p(D,"|");return v(D),B}function he(D,B){let J=null;switch(D.currentChar()){case"{":return B.braceNest>=1&&d(ut.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),D.next(),J=f(B,2,"{"),v(D),B.braceNest++,J;case"}":return B.braceNest>0&&B.currentType===2&&d(ut.EMPTY_PLACEHOLDER,s(),0),D.next(),J=f(B,3,"}"),B.braceNest--,B.braceNest>0&&v(D),B.inLinked&&B.braceNest===0&&(B.inLinked=!1),J;case"@":return B.braceNest>0&&d(ut.UNTERMINATED_CLOSING_BRACE,s(),0),J=pe(D,B)||h(B),B.braceNest=0,J;default:{let ke=!0,se=!0,te=!0;if(k(D))return B.braceNest>0&&d(ut.UNTERMINATED_CLOSING_BRACE,s(),0),J=f(B,1,re(D)),B.braceNest=0,B.inLinked=!1,J;if(B.braceNest>0&&(B.currentType===5||B.currentType===6||B.currentType===7))return d(ut.UNTERMINATED_CLOSING_BRACE,s(),0),B.braceNest=0,Se(D,B);if(ke=b(D,B))return J=f(B,5,Ce(D)),v(D),J;if(se=y(D,B))return J=f(B,6,Oe(D)),v(D),J;if(te=S(D,B))return J=f(B,7,ie(D)),v(D),J;if(!ke&&!se&&!te)return J=f(B,13,Ee(D)),d(ut.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,J.value),v(D),J;break}}return J}function pe(D,B){const{currentType:J}=B;let ce=null;const ke=D.currentChar();switch((J===8||J===9||J===12||J===10)&&(ke===gr||ke===Ms)&&d(ut.INVALID_LINKED_FORMAT,s(),0),ke){case"@":return D.next(),ce=f(B,8,"@"),B.inLinked=!0,ce;case".":return v(D),D.next(),f(B,9,".");case":":return v(D),D.next(),f(B,10,":");default:return k(D)?(ce=f(B,1,re(D)),B.braceNest=0,B.inLinked=!1,ce):E(D,B)||M(D,B)?(v(D),pe(D,B)):T(D,B)?(v(D),f(B,12,$(D))):O(D,B)?(v(D),ke==="{"?he(D,B)||ce:f(B,11,I(D))):(J===8&&d(ut.INVALID_LINKED_FORMAT,s(),0),B.braceNest=0,B.inLinked=!1,Se(D,B))}}function Se(D,B){let J={type:14};if(B.braceNest>0)return he(D,B)||h(B);if(B.inLinked)return pe(D,B)||h(B);switch(D.currentChar()){case"{":return he(D,B)||h(B);case"}":return d(ut.UNBALANCED_CLOSING_BRACE,s(),0),D.next(),f(B,3,"}");case"@":return pe(D,B)||h(B);default:{if(k(D))return J=f(B,1,re(D)),B.braceNest=0,B.inLinked=!1,J;const{isModulo:ke,hasSpace:se}=P(D);if(ke)return se?f(B,0,fe(D)):f(B,4,Me(D));if(L(D))return f(B,0,fe(D));break}}return J}function _e(){const{currentType:D,offset:B,startLoc:J,endLoc:ce}=a;return a.lastType=D,a.lastOffset=B,a.lastStartLoc=J,a.lastEndLoc=ce,a.offset=o(),a.startLoc=s(),r.currentChar()===di?f(a,14):Se(r,a)}return{nextToken:_e,currentOffset:o,currentPosition:s,context:c}}const vR="parser",bR=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function yR(n,e,t){switch(n){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||t,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function wR(n={}){const e=n.location!==!1,{onError:t,onWarn:r}=n;function o(b,y,S,E,...T){const M=b.currentPosition();if(M.offset+=E,M.column+=E,t){const O=e?Ph(S,M):null,k=zc(y,O,{domain:vR,args:T});t(k)}}function s(b,y,S,E,...T){const M=b.currentPosition();if(M.offset+=E,M.column+=E,r){const O=e?Ph(S,M):null;r(lR(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(bR,yR),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,ut.UNEXPECTED_EMPTY_LINKED_MODIFIER,S.lastStartLoc,0),M.value="",l(M,E,T),{nextConsumeToken:y,node:M}):(y.value==null&&o(b,ut.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Co(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,ut.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Co(E)),E=b.nextToken(),E.type===2&&(E=b.nextToken()),E.type){case 11:E.value==null&&o(b,ut.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Co(E)),S.key=h(b,E.value||"");break;case 5:E.value==null&&o(b,ut.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Co(E)),S.key=u(b,E.value||"");break;case 6:E.value==null&&o(b,ut.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Co(E)),S.key=c(b,E.value||"");break;case 7:E.value==null&&o(b,ut.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Co(E)),S.key=d(b,E.value||"");break;default:{o(b,ut.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const T=b.context(),M=i(7,T.offset,T.startLoc);return M.value="",l(M,T.offset,T.startLoc),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,ut.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Co(L)),T.items.push(a(b,L.value||""));break;case 6:L.value==null&&o(b,ut.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Co(L)),T.items.push(c(b,L.value||""));break;case 4:O=!0;break;case 5:L.value==null&&o(b,ut.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Co(L)),T.items.push(u(b,L.value||"",!!O)),O&&(s(b,ey.USE_MODULO_SYNTAX,y.lastStartLoc,0,Co(L)),O=null);break;case 7:L.value==null&&o(b,ut.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Co(L)),T.items.push(d(b,L.value||""));break;case 8:{const j=p(b);T.items.push(j.node),M=j.nextConsumeToken||null;break}}}while(y.currentType!==14&&y.currentType!==1);const k=y.currentType===1?y.lastOffset:b.currentOffset(),P=y.currentType===1?y.lastEndLoc:b.currentPosition();return l(T,k,P),T}function v(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 k=g(b);M||(M=k.items.length===0),O.cases.push(k)}while(T.currentType!==14);return M&&o(b,ut.MUST_HAVE_MESSAGES_IN_PLURAL,S,0),l(O,b.currentOffset(),b.currentPosition()),O}function m(b){const y=b.context(),{offset:S,startLoc:E}=y,T=g(b);return y.currentType===14?T:v(b,S,E,T)}function w(b){const y=mR(b,a_({},n)),S=y.context(),E=i(0,S.offset,S.startLoc);return e&&E.loc&&(E.loc.source=b),E.body=m(y),n.onCacheKey&&(E.cacheKey=n.onCacheKey(b)),S.currentType!==14&&o(y,ut.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,b[S.offset]||""),l(E,y.currentOffset(),y.currentPosition()),E}return{parse:w}}function Co(n){if(n.type===14)return"EOF";const e=(n.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function CR(n,e={}){const t={ast:n,helpers:new Set};return{context:()=>t,helper:s=>(t.helpers.add(s),s)}}function X1(n,e){for(let t=0;tZ1(t)),n}function Z1(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(v,m){l.code+=v}function u(v,m=!0){const w=m?o:"";c(s?w+" ".repeat(v):w)}function d(v=!0){const m=++l.indentLevel;v&&u(m)}function f(v=!0){const m=--l.indentLevel;v&&u(m)}function h(){u(l.indentLevel)}return{context:a,push:c,indent:d,deindent:f,newline:h,helper:v=>`_${v}`,needIndent:()=>l.needIndent}}function OR(n,e){const{helper:t}=n;n.push(`${t("linked")}(`),tc(n,e.key),e.modifier?(n.push(", "),tc(n,e.modifier),n.push(", _type")):n.push(", undefined, _type"),n.push(")")}function MR(n,e){const{helper:t,needIndent:r}=n;n.push(`${t("normalize")}([`),n.indent(r());const o=e.items.length;for(let s=0;s1){n.push(`${t("plural")}([`),n.indent(r());const o=e.cases.length;for(let s=0;s{const t=Y1(e.mode)?e.mode:"normal",r=Y1(e.filename)?e.filename:"message.intl",o=!!e.sourceMap,s=e.breakLineCode!=null?e.breakLineCode:t==="arrow"?";":` +`,i=e.needIndent?e.needIndent:t!=="arrow",l=n.helpers||[],a=TR(n,{mode:t,filename:r,sourceMap:o,breakLineCode:s,needIndent:i});a.push(t==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(i),l.length>0&&(a.push(`const { ${c_(l.map(d=>`${d}: _${d}`),", ")} } = ctx`),a.newline()),a.push("return "),tc(a,n),a.deindent(i),a.push("}"),delete n.helpers;const{code:c,map:u}=a.context();return{ast:n,code:c,map:u?u.toJSON():void 0}};function NR(n,e={}){const t=a_({},e),r=!!t.jit,o=!!t.minify,s=t.optimize==null?!0:t.optimize,l=wR(t).parse(n);return r?(s&&SR(l),o&&ka(l),{ast:l,code:""}):(xR(l,t),PR(l,t))}/*! + * core-base v9.13.1 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */function IR(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Vs().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Vs().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Vs().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const ll=[];ll[0]={w:[0],i:[3,0],"[":[4],o:[7]};ll[1]={w:[1],".":[2],"[":[4],o:[7]};ll[2]={w:[2],i:[3,0],0:[3,0]};ll[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};ll[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};ll[5]={"'":[4,0],o:8,l:[5,0]};ll[6]={'"':[4,0],o:8,l:[6,0]};const LR=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function RR(n){return LR.test(n)}function $R(n){const e=n.charCodeAt(0),t=n.charCodeAt(n.length-1);return e===t&&(e===34||e===39)?n.slice(1,-1):n}function DR(n){if(n==null)return"o";switch(n.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return n;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function VR(n){const e=n.trim();return n.charAt(0)==="0"&&isNaN(parseInt(n))?!1:RR(e)?$R(e):"*"+e}function BR(n){const e=[];let t=-1,r=0,o=0,s,i,l,a,c,u,d;const f=[];f[0]=()=>{i===void 0?i=l:i+=l},f[1]=()=>{i!==void 0&&(e.push(i),i=void 0)},f[2]=()=>{f[0](),o++},f[3]=()=>{if(o>0)o--,r=4,f[0]();else{if(o=0,i===void 0||(i=VR(i),i===!1))return!1;f[1]()}};function h(){const p=n[t+1];if(r===5&&p==="'"||r===6&&p==='"')return t++,l="\\"+p,f[0](),!0}for(;r!==null;)if(t++,s=n[t],!(s==="\\"&&h())){if(a=DR(s),d=ll[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 Q1=new Map;function FR(n,e){return Lt(n)?n[e]:null}function zR(n,e){if(!Lt(n))return null;let t=Q1.get(e);if(t||(t=BR(e),t&&Q1.set(e,t)),!t)return null;const r=t.length;let o=n,s=0;for(;sn,HR=n=>"",UR="text",WR=n=>n.length===0?"":tR(n),GR=eR;function ew(n,e){return n=Math.abs(n),e===2?n?n>1?1:0:1:n?Math.min(n,2):0}function qR(n){const e=An(n.pluralIndex)?n.pluralIndex:-1;return n.named&&(An(n.named.count)||An(n.named.n))?An(n.named.count)?n.named.count:An(n.named.n)?n.named.n:e:e}function KR(n,e){e.count||(e.count=n),e.n||(e.n=n)}function YR(n={}){const e=n.locale,t=qR(n),r=Lt(n.pluralRules)&&We(e)&&Kt(n.pluralRules[e])?n.pluralRules[e]:ew,o=Lt(n.pluralRules)&&We(e)&&Kt(n.pluralRules[e])?ew:void 0,s=m=>m[r(t,m.length,o)],i=n.list||[],l=m=>i[m],a=n.named||{};An(n.pluralIndex)&&KR(t,a);const c=m=>a[m];function u(m){const w=Kt(n.messages)?n.messages(m):Lt(n.messages)?n.messages[m]:!1;return w||(n.parent?n.parent.message(m):HR)}const d=m=>n.modifiers?n.modifiers[m]:jR,f=mt(n.processor)&&Kt(n.processor.normalize)?n.processor.normalize:WR,h=mt(n.processor)&&Kt(n.processor.interpolate)?n.processor.interpolate:GR,p=mt(n.processor)&&We(n.processor.type)?n.processor.type:UR,v={list:l,named:c,plural:s,linked:(m,...w)=>{const[b,y]=w;let S="text",E="";w.length===1?Lt(b)?(E=b.modifier||E,S=b.type||S):We(b)&&(E=b||E):w.length===2&&(We(b)&&(E=b||E),We(y)&&(S=y||S));const T=u(m)(v),M=S==="vnode"&&Qt(T)&&E?T[0]:T;return E?d(E)(M,S):M},message:u,type:p,interpolate:h,normalize:f,values:Qn({},i,a)};return v}let od=null;function JR(n){od=n}function XR(n,e,t){od&&od.emit("i18n:init",{timestamp:Date.now(),i18n:n,version:e,meta:t})}const ZR=QR("function:translate");function QR(n){return e=>od&&od.emit(n,e)}const u_=ey.__EXTEND_POINT__,El=Rp(u_),e$={NOT_FOUND_KEY:u_,FALLBACK_TO_TRANSLATE:El(),CANNOT_FORMAT_NUMBER:El(),FALLBACK_TO_NUMBER_FORMAT:El(),CANNOT_FORMAT_DATE:El(),FALLBACK_TO_DATE_FORMAT:El(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:El(),__EXTEND_POINT__:El()},d_=ut.__EXTEND_POINT__,_l=Rp(d_),Ao={INVALID_ARGUMENT:d_,INVALID_DATE_ARGUMENT:_l(),INVALID_ISO_DATE_ARGUMENT:_l(),NOT_SUPPORT_NON_STRING_MESSAGE:_l(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:_l(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:_l(),NOT_SUPPORT_LOCALE_TYPE:_l(),__EXTEND_POINT__:_l()};function ns(n){return zc(n,null,void 0)}function ny(n,e){return e.locale!=null?tw(e.locale):tw(n.locale)}let Yg;function tw(n){if(We(n))return n;if(Kt(n)){if(n.resolvedOnce&&Yg!=null)return Yg;if(n.constructor.name==="Function"){const e=n();if(Q3(e))throw ns(Ao.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Yg=e}else throw ns(Ao.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ns(Ao.NOT_SUPPORT_LOCALE_TYPE)}function t$(n,e,t){return[...new Set([t,...Qt(e)?e:Lt(e)?Object.keys(e):We(e)?[e]:[t]])]}function f_(n,e,t){const r=We(t)?t:nc,o=n;o.__localeChainCache||(o.__localeChainCache=new Map);let s=o.__localeChainCache.get(r);if(!s){s=[];let i=[t];for(;Qt(i);)i=nw(s,i,e);const l=Qt(e)||!mt(e)?e:e.default?e.default:null;i=We(l)?[l]:l,Qt(i)&&nw(s,i,!1),o.__localeChainCache.set(r,s)}return s}function nw(n,e,t){let r=!0;for(let o=0;o`${n.charAt(0).toLocaleUpperCase()}${n.substr(1)}`;function s$(){return{upper:(n,e)=>e==="text"&&We(n)?n.toUpperCase():e==="vnode"&&Lt(n)&&"__v_isVNode"in n?n.children.toUpperCase():n,lower:(n,e)=>e==="text"&&We(n)?n.toLowerCase():e==="vnode"&&Lt(n)&&"__v_isVNode"in n?n.children.toLowerCase():n,capitalize:(n,e)=>e==="text"&&We(n)?ow(n):e==="vnode"&&Lt(n)&&"__v_isVNode"in n?ow(n.children):n}}let h_;function sw(n){h_=n}let p_;function i$(n){p_=n}let g_;function l$(n){g_=n}let m_=null;const a$=n=>{m_=n},c$=()=>m_;let v_=null;const iw=n=>{v_=n},u$=()=>v_;let lw=0;function d$(n={}){const e=Kt(n.onWarn)?n.onWarn:nR,t=We(n.version)?n.version:o$,r=We(n.locale)||Kt(n.locale)?n.locale:nc,o=Kt(r)?nc:r,s=Qt(n.fallbackLocale)||mt(n.fallbackLocale)||We(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:o,i=mt(n.messages)?n.messages:{[o]:{}},l=mt(n.datetimeFormats)?n.datetimeFormats:{[o]:{}},a=mt(n.numberFormats)?n.numberFormats:{[o]:{}},c=Qn({},n.modifiers||{},s$()),u=n.pluralRules||{},d=Kt(n.missing)?n.missing:null,f=Mt(n.missingWarn)||Ki(n.missingWarn)?n.missingWarn:!0,h=Mt(n.fallbackWarn)||Ki(n.fallbackWarn)?n.fallbackWarn:!0,p=!!n.fallbackFormat,g=!!n.unresolving,v=Kt(n.postTranslation)?n.postTranslation:null,m=mt(n.processor)?n.processor:null,w=Mt(n.warnHtmlMessage)?n.warnHtmlMessage:!0,b=!!n.escapeParameter,y=Kt(n.messageCompiler)?n.messageCompiler:h_,S=Kt(n.messageResolver)?n.messageResolver:p_||FR,E=Kt(n.localeFallbacker)?n.localeFallbacker:g_||t$,T=Lt(n.fallbackContext)?n.fallbackContext:void 0,M=n,O=Lt(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,k=Lt(M.__numberFormatters)?M.__numberFormatters:new Map,P=Lt(M.__meta)?M.__meta:{};lw++;const L={version:t,cid:lw,locale:r,fallbackLocale:s,messages:i,modifiers:c,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:h,fallbackFormat:p,unresolving:g,postTranslation:v,processor:m,warnHtmlMessage:w,escapeParameter:b,messageCompiler:y,messageResolver:S,localeFallbacker:E,fallbackContext:T,onWarn:e,__meta:P};return L.datetimeFormats=l,L.numberFormats=a,L.__datetimeFormatters=O,L.__numberFormatters=k,__INTLIFY_PROD_DEVTOOLS__&&XR(L,t,P),L}function ry(n,e,t,r,o){const{missing:s,onWarn:i}=n;if(s!==null){const l=s(n,t,e,o);return We(l)?l:e}else return e}function su(n,e,t){const r=n;r.__localeChainCache=new Map,n.localeFallbacker(n,t,e)}function f$(n,e){return n===e?!1:n.split("-")[0]===e.split("-")[0]}function h$(n,e){const t=e.indexOf(n);if(t===-1)return!1;for(let r=t+1;rp$(t,n)}function p$(n,e){const t=e.b||e.body;if((t.t||t.type)===1){const r=t,o=r.c||r.cases;return n.plural(o.reduce((s,i)=>[...s,aw(n,i)],[]))}else return aw(n,t)}function aw(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,rv(n,s)],[]);return n.normalize(r)}}function rv(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(rv(n,r.k||r.key),o?rv(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 b_=n=>n;let $a=Object.create(null);const rc=n=>Lt(n)&&(n.t===0||n.type===0)&&("b"in n||"body"in n);function y_(n,e={}){let t=!1;const r=e.onError||cR;return e.onError=o=>{t=!0,r(o)},{...NR(n,e),detectError:t}}const g$=(n,e)=>{if(!We(n))throw ns(Ao.NOT_SUPPORT_NON_STRING_MESSAGE);{Mt(e.warnHtmlMessage)&&e.warnHtmlMessage;const r=(e.onCacheKey||b_)(n),o=$a[r];if(o)return o;const{code:s,detectError:i}=y_(n,e),l=new Function(`return ${s}`)();return i?l:$a[r]=l}};function m$(n,e){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&We(n)){Mt(e.warnHtmlMessage)&&e.warnHtmlMessage;const r=(e.onCacheKey||b_)(n),o=$a[r];if(o)return o;const{ast:s,detectError:i}=y_(n,{...e,location:!1,jit:!0}),l=Jg(s);return i?l:$a[r]=l}else{const t=n.cacheKey;if(t){const r=$a[t];return r||($a[t]=Jg(n))}else return Jg(n)}}const cw=()=>"",eo=n=>Kt(n);function uw(n,...e){const{fallbackFormat:t,postTranslation:r,unresolving:o,messageCompiler:s,fallbackLocale:i,messages:l}=n,[a,c]=ov(...e),u=Mt(c.missingWarn)?c.missingWarn:n.missingWarn,d=Mt(c.fallbackWarn)?c.fallbackWarn:n.fallbackWarn,f=Mt(c.escapeParameter)?c.escapeParameter:n.escapeParameter,h=!!c.resolvedMessage,p=We(c.default)||Mt(c.default)?Mt(c.default)?s?a:()=>a:c.default:t?s?a:()=>a:"",g=t||p!=="",v=ny(n,c);f&&v$(c);let[m,w,b]=h?[a,v,l[v]||{}]:w_(n,a,v,i,d,u),y=m,S=a;if(!h&&!(We(y)||rc(y)||eo(y))&&g&&(y=p,S=y),!h&&(!(We(y)||rc(y)||eo(y))||!We(w)))return o?$p:a;let E=!1;const T=()=>{E=!0},M=eo(y)?y:C_(n,a,w,y,S,T);if(E)return y;const O=w$(n,w,b,c),k=YR(O),P=b$(n,M,k),L=r?r(P,a):P;if(__INTLIFY_PROD_DEVTOOLS__){const j={timestamp:Date.now(),key:We(a)?a:eo(y)?y.key:"",locale:w||(eo(y)?y.locale:""),format:We(y)?y:eo(y)?y.source:"",message:L};j.meta=Qn({},n.__meta,c$()||{}),ZR(j)}return L}function v$(n){Qt(n.list)?n.list=n.list.map(e=>We(e)?K1(e):e):Lt(n.named)&&Object.keys(n.named).forEach(e=>{We(n.named[e])&&(n.named[e]=K1(n.named[e]))})}function w_(n,e,t,r,o,s){const{messages:i,onWarn:l,messageResolver:a,localeFallbacker:c}=n,u=c(n,r,t);let d={},f,h=null;const p="translate";for(let g=0;gr;return c.locale=t,c.key=e,c}const a=i(r,y$(n,t,o,r,l,s));return a.locale=t,a.key=e,a.source=r,a}function b$(n,e,t){return e(t)}function ov(...n){const[e,t,r]=n,o={};if(!We(e)&&!An(e)&&!eo(e)&&!rc(e))throw ns(Ao.INVALID_ARGUMENT);const s=An(e)?String(e):(eo(e),e);return An(t)?o.plural=t:We(t)?o.default=t:mt(t)&&!Lp(t)?o.named=t:Qt(t)&&(o.list=t),An(r)?o.plural=r:We(r)?o.default=r:mt(r)&&Qn(o,r),[s,o]}function y$(n,e,t,r,o,s){return{locale:e,key:t,warnHtmlMessage:o,onError:i=>{throw s&&s(i),i},onCacheKey:i=>Y3(e,t,i)}}function w$(n,e,t,r){const{modifiers:o,pluralRules:s,messageResolver:i,fallbackLocale:l,fallbackWarn:a,missingWarn:c,fallbackContext:u}=n,f={locale:e,modifiers:o,pluralRules:s,messages:h=>{let p=i(t,h);if(p==null&&u){const[,,g]=w_(u,h,e,l,a,c);p=i(g,h)}if(We(p)||rc(p)){let g=!1;const m=C_(n,h,e,p,h,()=>{g=!0});return g?cw:m}else return eo(p)?p:cw}};return n.processor&&(f.processor=n.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),An(r.plural)&&(f.pluralIndex=r.plural),f}function dw(n,...e){const{datetimeFormats:t,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:i}=n,{__datetimeFormatters:l}=n,[a,c,u,d]=sv(...e),f=Mt(u.missingWarn)?u.missingWarn:n.missingWarn;Mt(u.fallbackWarn)?u.fallbackWarn:n.fallbackWarn;const h=!!u.part,p=ny(n,u),g=i(n,o,p);if(!We(a)||a==="")return new Intl.DateTimeFormat(p,d).format(c);let v={},m,w=null;const b="datetime format";for(let E=0;E{x_.includes(a)?i[a]=t[a]:s[a]=t[a]}),We(r)?s.locale=r:mt(r)&&(i=r),mt(o)&&(i=o),[s.key||"",l,s,i]}function fw(n,e,t){const r=n;for(const o in t){const s=`${e}__${o}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function hw(n,...e){const{numberFormats:t,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:i}=n,{__numberFormatters:l}=n,[a,c,u,d]=iv(...e),f=Mt(u.missingWarn)?u.missingWarn:n.missingWarn;Mt(u.fallbackWarn)?u.fallbackWarn:n.fallbackWarn;const h=!!u.part,p=ny(n,u),g=i(n,o,p);if(!We(a)||a==="")return new Intl.NumberFormat(p,d).format(c);let v={},m,w=null;const b="number format";for(let E=0;E{S_.includes(a)?i[a]=t[a]:s[a]=t[a]}),We(r)?s.locale=r:mt(r)&&(i=r),mt(o)&&(i=o),[s.key||"",l,s,i]}function pw(n,e,t){const r=n;for(const o in t){const s=`${e}__${o}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}IR();/*! + * vue-i18n v9.13.1 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */const C$="9.13.1";function x$(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Vs().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Vs().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Vs().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Vs().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Vs().__INTLIFY_PROD_DEVTOOLS__=!1)}const E_=e$.__EXTEND_POINT__,As=Rp(E_);As(),As(),As(),As(),As(),As(),As(),As(),As();const __=Ao.__EXTEND_POINT__,xr=Rp(__),kn={UNEXPECTED_RETURN_TYPE:__,INVALID_ARGUMENT:xr(),MUST_BE_CALL_SETUP_TOP:xr(),NOT_INSTALLED:xr(),NOT_AVAILABLE_IN_LEGACY_MODE:xr(),REQUIRED_VALUE:xr(),INVALID_VALUE:xr(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:xr(),NOT_INSTALLED_WITH_PROVIDE:xr(),UNEXPECTED_ERROR:xr(),NOT_COMPATIBLE_LEGACY_VUE_I18N:xr(),BRIDGE_SUPPORT_VUE_2_ONLY:xr(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:xr(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:xr(),__EXTEND_POINT__:xr()};function Dn(n,...e){return zc(n,null,void 0)}const lv=il("__translateVNode"),av=il("__datetimeParts"),cv=il("__numberParts"),T_=il("__setPluralRules"),O_=il("__injectWithOption"),uv=il("__dispose");function sd(n){if(!Lt(n))return n;for(const e in n)if(kh(n,e))if(!e.includes("."))Lt(n[e])&&sd(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]||{},sh(c,i[a])):sh(c,i)}else We(l)&&sh(JSON.parse(l),i)}),o==null&&s)for(const l in i)kh(i,l)&&sd(i[l]);return i}function M_(n){return n.type}function A_(n,e,t){let r=Lt(e.messages)?e.messages:{};"__i18nGlobal"in t&&(r=Dp(n.locale.value,{messages:r,__i18n:t.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(s=>{n.mergeLocaleMessage(s,r[s])});{if(Lt(e.datetimeFormats)){const s=Object.keys(e.datetimeFormats);s.length&&s.forEach(i=>{n.mergeDateTimeFormat(i,e.datetimeFormats[i])})}if(Lt(e.numberFormats)){const s=Object.keys(e.numberFormats);s.length&&s.forEach(i=>{n.mergeNumberFormat(i,e.numberFormats[i])})}}}function gw(n){return C(ma,null,n,0)}const mw="__INTLIFY_META__",vw=()=>[],S$=()=>!1;let bw=0;function yw(n){return(e,t,r,o)=>n(t,r,vt()||void 0,o)}const E$=()=>{const n=vt();let e=null;return n&&(e=M_(n)[mw])?{[mw]:e}:null};function oy(n={},e){const{__root:t,__injectWithOption:r}=n,o=t===void 0,s=n.flatJson,i=Ah?V:No,l=!!n.translateExistCompatible;let a=Mt(n.inheritLocale)?n.inheritLocale:!0;const c=i(t&&a?t.locale.value:We(n.locale)?n.locale:nc),u=i(t&&a?t.fallbackLocale.value:We(n.fallbackLocale)||Qt(n.fallbackLocale)||mt(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:c.value),d=i(Dp(c.value,n)),f=i(mt(n.datetimeFormats)?n.datetimeFormats:{[c.value]:{}}),h=i(mt(n.numberFormats)?n.numberFormats:{[c.value]:{}});let p=t?t.missingWarn:Mt(n.missingWarn)||Ki(n.missingWarn)?n.missingWarn:!0,g=t?t.fallbackWarn:Mt(n.fallbackWarn)||Ki(n.fallbackWarn)?n.fallbackWarn:!0,v=t?t.fallbackRoot:Mt(n.fallbackRoot)?n.fallbackRoot:!0,m=!!n.fallbackFormat,w=Kt(n.missing)?n.missing:null,b=Kt(n.missing)?yw(n.missing):null,y=Kt(n.postTranslation)?n.postTranslation:null,S=t?t.warnHtmlMessage:Mt(n.warnHtmlMessage)?n.warnHtmlMessage:!0,E=!!n.escapeParameter;const T=t?t.modifiers:mt(n.modifiers)?n.modifiers:{};let M=n.pluralRules||t&&t.pluralRules,O;O=(()=>{o&&iw(null);const te={version:C$,locale:c.value,fallbackLocale:u.value,messages:d.value,modifiers:T,pluralRules:M,missing:b===null?void 0:b,missingWarn:p,fallbackWarn:g,fallbackFormat:m,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:S,escapeParameter:E,messageResolver:n.messageResolver,messageCompiler:n.messageCompiler,__meta:{framework:"vue"}};te.datetimeFormats=f.value,te.numberFormats=h.value,te.__datetimeFormatters=mt(O)?O.__datetimeFormatters:void 0,te.__numberFormatters=mt(O)?O.__numberFormatters:void 0;const ue=d$(te);return o&&iw(ue),ue})(),su(O,c.value,u.value);function P(){return[c.value,u.value,d.value,f.value,h.value]}const L=z({get:()=>c.value,set:te=>{c.value=te,O.locale=c.value}}),j=z({get:()=>u.value,set:te=>{u.value=te,O.fallbackLocale=u.value,su(O,c.value,te)}}),le=z(()=>d.value),N=z(()=>f.value),R=z(()=>h.value);function K(){return Kt(y)?y:null}function W(te){y=te,O.postTranslation=te}function U(){return w}function Q(te){te!==null&&(b=yw(te)),w=te,O.missing=b}const de=(te,ue,qe,ye,H,xe)=>{P();let Be;try{__INTLIFY_PROD_DEVTOOLS__,o||(O.fallbackContext=t?u$():void 0),Be=te(O)}finally{__INTLIFY_PROD_DEVTOOLS__,o||(O.fallbackContext=void 0)}if(qe!=="translate exists"&&An(Be)&&Be===$p||qe==="translate exists"&&!Be){const[Ie,ae]=ue();return t&&v?ye(t):H(Ie)}else{if(xe(Be))return Be;throw Dn(kn.UNEXPECTED_RETURN_TYPE)}};function ee(...te){return de(ue=>Reflect.apply(uw,null,[ue,...te]),()=>ov(...te),"translate",ue=>Reflect.apply(ue.t,ue,[...te]),ue=>ue,ue=>We(ue))}function Me(...te){const[ue,qe,ye]=te;if(ye&&!Lt(ye))throw Dn(kn.INVALID_ARGUMENT);return ee(ue,qe,Qn({resolvedMessage:!0},ye||{}))}function fe(...te){return de(ue=>Reflect.apply(dw,null,[ue,...te]),()=>sv(...te),"datetime format",ue=>Reflect.apply(ue.d,ue,[...te]),()=>rw,ue=>We(ue))}function Ce(...te){return de(ue=>Reflect.apply(hw,null,[ue,...te]),()=>iv(...te),"number format",ue=>Reflect.apply(ue.n,ue,[...te]),()=>rw,ue=>We(ue))}function Oe(te){return te.map(ue=>We(ue)||An(ue)||Mt(ue)?gw(String(ue)):ue)}const ie={normalize:Oe,interpolate:te=>te,type:"vnode"};function X(...te){return de(ue=>{let qe;const ye=ue;try{ye.processor=ie,qe=Reflect.apply(uw,null,[ye,...te])}finally{ye.processor=null}return qe},()=>ov(...te),"translate",ue=>ue[lv](...te),ue=>[gw(ue)],ue=>Qt(ue))}function me(...te){return de(ue=>Reflect.apply(hw,null,[ue,...te]),()=>iv(...te),"number format",ue=>ue[cv](...te),vw,ue=>We(ue)||Qt(ue))}function Pe(...te){return de(ue=>Reflect.apply(dw,null,[ue,...te]),()=>sv(...te),"datetime format",ue=>ue[av](...te),vw,ue=>We(ue)||Qt(ue))}function Ee(te){M=te,O.pluralRules=M}function $(te,ue){return de(()=>{if(!te)return!1;const qe=We(ue)?ue:c.value,ye=he(qe),H=O.messageResolver(ye,te);return l?H!=null:rc(H)||eo(H)||We(H)},()=>[te],"translate exists",qe=>Reflect.apply(qe.te,qe,[te,ue]),S$,qe=>Mt(qe))}function I(te){let ue=null;const qe=f_(O,u.value,c.value);for(let ye=0;ye{a&&(c.value=te,O.locale=te,su(O,c.value,u.value))}),je(t.fallbackLocale,te=>{a&&(u.value=te,O.fallbackLocale=te,su(O,c.value,u.value))}));const se={id:bw,locale:L,fallbackLocale:j,get inheritLocale(){return a},set inheritLocale(te){a=te,te&&t&&(c.value=t.locale.value,u.value=t.fallbackLocale.value,su(O,c.value,u.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:le,get modifiers(){return T},get pluralRules(){return M||{}},get isGlobal(){return o},get missingWarn(){return p},set missingWarn(te){p=te,O.missingWarn=p},get fallbackWarn(){return g},set fallbackWarn(te){g=te,O.fallbackWarn=g},get fallbackRoot(){return v},set fallbackRoot(te){v=te},get fallbackFormat(){return m},set fallbackFormat(te){m=te,O.fallbackFormat=m},get warnHtmlMessage(){return S},set warnHtmlMessage(te){S=te,O.warnHtmlMessage=te},get escapeParameter(){return E},set escapeParameter(te){E=te,O.escapeParameter=te},t:ee,getLocaleMessage:he,setLocaleMessage:pe,mergeLocaleMessage:Se,getPostTranslationHandler:K,setPostTranslationHandler:W,getMissingHandler:U,setMissingHandler:Q,[T_]:Ee};return se.datetimeFormats=N,se.numberFormats=R,se.rt=Me,se.te=$,se.tm=re,se.d=fe,se.n=Ce,se.getDateTimeFormat=_e,se.setDateTimeFormat=D,se.mergeDateTimeFormat=B,se.getNumberFormat=J,se.setNumberFormat=ce,se.mergeNumberFormat=ke,se[O_]=r,se[lv]=X,se[av]=Pe,se[cv]=me,se}function _$(n){const e=We(n.locale)?n.locale:nc,t=We(n.fallbackLocale)||Qt(n.fallbackLocale)||mt(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:e,r=Kt(n.missing)?n.missing:void 0,o=Mt(n.silentTranslationWarn)||Ki(n.silentTranslationWarn)?!n.silentTranslationWarn:!0,s=Mt(n.silentFallbackWarn)||Ki(n.silentFallbackWarn)?!n.silentFallbackWarn:!0,i=Mt(n.fallbackRoot)?n.fallbackRoot:!0,l=!!n.formatFallbackMessages,a=mt(n.modifiers)?n.modifiers:{},c=n.pluralizationRules,u=Kt(n.postTranslation)?n.postTranslation:void 0,d=We(n.warnHtmlInMessage)?n.warnHtmlInMessage!=="off":!0,f=!!n.escapeParameterHtml,h=Mt(n.sync)?n.sync:!0;let p=n.messages;if(mt(n.sharedMessages)){const E=n.sharedMessages;p=Object.keys(E).reduce((M,O)=>{const k=M[O]||(M[O]={});return Qn(k,E[O]),M},p||{})}const{__i18n:g,__root:v,__injectWithOption:m}=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:v,__injectWithOption:m}}function dv(n={},e){{const t=oy(_$(n)),{__extender:r}=n,o={id:t.id,get locale(){return t.locale.value},set locale(s){t.locale.value=s},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(s){t.fallbackLocale.value=s},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(s){},get missing(){return t.getMissingHandler()},set missing(s){t.setMissingHandler(s)},get silentTranslationWarn(){return Mt(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(s){t.missingWarn=Mt(s)?!s:s},get silentFallbackWarn(){return Mt(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(s){t.fallbackWarn=Mt(s)?!s:s},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(s){t.fallbackFormat=s},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(s){t.setPostTranslationHandler(s)},get sync(){return t.inheritLocale},set sync(s){t.inheritLocale=s},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){t.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(s){t.escapeParameter=s},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(s){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...s){const[i,l,a]=s,c={};let u=null,d=null;if(!We(i))throw Dn(kn.INVALID_ARGUMENT);const f=i;return We(l)?c.locale=l:Qt(l)?u=l:mt(l)&&(d=l),Qt(a)?u=a:mt(a)&&(d=a),Reflect.apply(t.t,t,[f,u||d||{},c])},rt(...s){return Reflect.apply(t.rt,t,[...s])},tc(...s){const[i,l,a]=s,c={plural:1};let u=null,d=null;if(!We(i))throw Dn(kn.INVALID_ARGUMENT);const f=i;return We(l)?c.locale=l:An(l)?c.plural=l:Qt(l)?u=l:mt(l)&&(d=l),We(a)?c.locale=a:Qt(a)?u=a:mt(a)&&(d=a),Reflect.apply(t.t,t,[f,u||d||{},c])},te(s,i){return t.te(s,i)},tm(s){return t.tm(s)},getLocaleMessage(s){return t.getLocaleMessage(s)},setLocaleMessage(s,i){t.setLocaleMessage(s,i)},mergeLocaleMessage(s,i){t.mergeLocaleMessage(s,i)},d(...s){return Reflect.apply(t.d,t,[...s])},getDateTimeFormat(s){return t.getDateTimeFormat(s)},setDateTimeFormat(s,i){t.setDateTimeFormat(s,i)},mergeDateTimeFormat(s,i){t.mergeDateTimeFormat(s,i)},n(...s){return Reflect.apply(t.n,t,[...s])},getNumberFormat(s){return t.getNumberFormat(s)},setNumberFormat(s,i){t.setNumberFormat(s,i)},mergeNumberFormat(s,i){t.mergeNumberFormat(s,i)},getChoiceIndex(s,i){return-1}};return o.__extender=r,o}}const sy={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:n=>n==="parent"||n==="global",default:"parent"},i18n:{type:Object}};function T$({slots:n},e){return e.length===1&&e[0]==="default"?(n.default?n.default():[]).reduce((r,o)=>[...r,...o.type===Re?o.children:[o]],[]):e.reduce((t,r)=>{const o=n[r];return o&&(t[r]=o()),t},{})}function k_(n){return Re}const O$=ge({name:"i18n-t",props:Qn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:n=>An(n)||!isNaN(n)}},sy),setup(n,e){const{slots:t,attrs:r}=e,o=n.i18n||on({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=We(n.plural)?+n.plural:n.plural);const l=T$(e,s),a=o[lv](n.keypath,l,i),c=Qn({},r),u=We(n.tag)||Lt(n.tag)?n.tag:k_();return Qe(u,c,a)}}}),ww=O$;function M$(n){return Qt(n)&&!We(n[0])}function P_(n,e,t,r){const{slots:o,attrs:s}=e;return()=>{const i={part:!0};let l={};n.locale&&(i.locale=n.locale),We(n.format)?i.key=n.format:Lt(n.format)&&(We(n.format.key)&&(i.key=n.format.key),l=Object.keys(n.format).reduce((f,h)=>t.includes(h)?Qn({},f,{[h]:n.format[h]}):f,{}));const a=r(n.value,i,l);let c=[i.key];Qt(a)?c=a.map((f,h)=>{const p=o[f.type],g=p?p({[f.type]:f.value,index:h,parts:a}):[f.value];return M$(g)&&(g[0].key=`${f.type}-${h}`),g}):We(a)&&(c=[a]);const u=Qn({},s),d=We(n.tag)||Lt(n.tag)?n.tag:k_();return Qe(d,u,c)}}const A$=ge({name:"i18n-n",props:Qn({value:{type:Number,required:!0},format:{type:[String,Object]}},sy),setup(n,e){const t=n.i18n||on({useScope:n.scope,__useComponent:!0});return P_(n,e,S_,(...r)=>t[cv](...r))}}),Cw=A$,k$=ge({name:"i18n-d",props:Qn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},sy),setup(n,e){const t=n.i18n||on({useScope:n.scope,__useComponent:!0});return P_(n,e,x_,(...r)=>t[av](...r))}}),xw=k$;function P$(n,e){const t=n;if(n.mode==="composition")return t.__getInstance(e)||n.global;{const r=t.__getInstance(e);return r!=null?r.__composer:n.global.__composer}}function N$(n){const e=i=>{const{instance:l,modifiers:a,value:c}=i;if(!l||!l.$)throw Dn(kn.UNEXPECTED_ERROR);const u=P$(n,l.$),d=Sw(c);return[Reflect.apply(u.t,u,[...Ew(d)]),u]};return{created:(i,l)=>{const[a,c]=e(l);Ah&&n.global===c&&(i.__i18nWatcher=je(c.locale,()=>{l.instance&&l.instance.$forceUpdate()})),i.__composer=c,i.textContent=a},unmounted:i=>{Ah&&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=Sw(l);i.textContent=Reflect.apply(a.t,a,[...Ew(c)])}},getSSRProps:i=>{const[l]=e(i);return{textContent:l}}}}function Sw(n){if(We(n))return{path:n};if(mt(n)){if(!("path"in n))throw Dn(kn.REQUIRED_VALUE,"path");return n}else throw Dn(kn.INVALID_VALUE)}function Ew(n){const{path:e,locale:t,args:r,choice:o,plural:s}=n,i={},l=r||{};return We(t)&&(i.locale=t),An(o)&&(i.plural=o),An(s)&&(i.plural=s),[e,l,i]}function I$(n,e,...t){const r=mt(t[0])?t[0]:{},o=!!r.useI18nComponentName;(Mt(r.globalInstall)?r.globalInstall:!0)&&([o?"i18n":ww.name,"I18nT"].forEach(i=>n.component(i,ww)),[Cw.name,"I18nN"].forEach(i=>n.component(i,Cw)),[xw.name,"I18nD"].forEach(i=>n.component(i,xw))),n.directive("t",N$(e))}function L$(n,e,t){return{beforeCreate(){const r=vt();if(!r)throw Dn(kn.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const s=o.i18n;if(o.__i18n&&(s.__i18n=o.__i18n),s.__root=e,this===this.$root)this.$i18n=_w(n,s);else{s.__injectWithOption=!0,s.__extender=t.__vueI18nExtend,this.$i18n=dv(s);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=_w(n,o);else{this.$i18n=dv({__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&&A_(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 Dn(kn.UNEXPECTED_ERROR);const o=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),t.__deleteInstance(r),delete this.$i18n}}}function _w(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[T_](e.pluralizationRules||n.pluralizationRules);const t=Dp(n.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(t).forEach(r=>n.mergeLocaleMessage(r,t[r])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(r=>n.mergeDateTimeFormat(r,e.datetimeFormats[r])),e.numberFormats&&Object.keys(e.numberFormats).forEach(r=>n.mergeNumberFormat(r,e.numberFormats[r])),n}const R$=il("global-vue-i18n");function $$(n={},e){const t=__VUE_I18N_LEGACY_API__&&Mt(n.legacy)?n.legacy:__VUE_I18N_LEGACY_API__,r=Mt(n.globalInjection)?n.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&t?!!n.allowComposition:!0,s=new Map,[i,l]=D$(n,t),a=il("");function c(f){return s.get(f)||null}function u(f,h){s.set(f,h)}function d(f){s.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},get allowComposition(){return o},async install(h,...p){if(h.__VUE_I18N_SYMBOL__=a,h.provide(h.__VUE_I18N_SYMBOL__,f),mt(p[0])){const m=p[0];f.__composerExtend=m.__composerExtend,f.__vueI18nExtend=m.__vueI18nExtend}let g=null;!t&&r&&(g=G$(h,f.global)),__VUE_I18N_FULL_INSTALL__&&I$(h,f,...p),__VUE_I18N_LEGACY_API__&&t&&h.mixin(L$(l,l.__composer,f));const v=h.unmount;h.unmount=()=>{g&&g(),f.dispose(),v()}},get global(){return l},dispose(){i.stop()},__instances:s,__getInstance:c,__setInstance:u,__deleteInstance:d};return f}}function on(n={}){const e=vt();if(e==null)throw Dn(kn.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Dn(kn.NOT_INSTALLED);const t=V$(e),r=F$(t),o=M_(e),s=B$(n,o);if(__VUE_I18N_LEGACY_API__&&t.mode==="legacy"&&!n.__useComponent){if(!t.allowComposition)throw Dn(kn.NOT_AVAILABLE_IN_LEGACY_MODE);return U$(e,s,r,n)}if(s==="global")return A_(r,n,o),r;if(s==="parent"){let a=z$(t,e,n.__useComponent);return a==null&&(a=r),a}const i=t;let l=i.__getInstance(e);if(l==null){const a=Qn({},n);"__i18n"in o&&(a.__i18n=o.__i18n),r&&(a.__root=r),l=oy(a),i.__composerExtend&&(l[uv]=i.__composerExtend(l)),H$(i,e,l),i.__setInstance(e,l)}return l}function D$(n,e,t){const r=VE();{const o=__VUE_I18N_LEGACY_API__&&e?r.run(()=>dv(n)):r.run(()=>oy(n));if(o==null)throw Dn(kn.UNEXPECTED_ERROR);return[r,o]}}function V$(n){{const e=He(n.isCE?R$:n.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Dn(n.isCE?kn.NOT_INSTALLED_WITH_PROVIDE:kn.UNEXPECTED_ERROR);return e}}function B$(n,e){return Lp(n)?"__i18n"in e?"local":"global":n.useScope?n.useScope:"local"}function F$(n){return n.mode==="composition"?n.global:n.global.__composer}function z$(n,e,t=!1){let r=null;const o=e.root;let s=j$(e,t);for(;s!=null;){const i=n;if(n.mode==="composition")r=i.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const l=i.__getInstance(s);l!=null&&(r=l.__composer,t&&r&&!r[O_]&&(r=null))}if(r!=null||o===s)break;s=s.parent}return r}function j$(n,e=!1){return n==null?null:e&&n.vnode.ctx||n.parent}function H$(n,e,t){ot(()=>{},e),bs(()=>{const r=t;n.__deleteInstance(e);const o=r[uv];o&&(o(),delete r[uv])},e)}function U$(n,e,t,r={}){const o=e==="local",s=No(null);if(o&&n.proxy&&!(n.proxy.$options.i18n||n.proxy.$options.__i18n))throw Dn(kn.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=Mt(r.inheritLocale)?r.inheritLocale:!We(r.locale),l=V(!o||i?t.locale.value:We(r.locale)?r.locale:nc),a=V(!o||i?t.fallbackLocale.value:We(r.fallbackLocale)||Qt(r.fallbackLocale)||mt(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:l.value),c=V(Dp(l.value,r)),u=V(mt(r.datetimeFormats)?r.datetimeFormats:{[l.value]:{}}),d=V(mt(r.numberFormats)?r.numberFormats:{[l.value]:{}}),f=o?t.missingWarn:Mt(r.missingWarn)||Ki(r.missingWarn)?r.missingWarn:!0,h=o?t.fallbackWarn:Mt(r.fallbackWarn)||Ki(r.fallbackWarn)?r.fallbackWarn:!0,p=o?t.fallbackRoot:Mt(r.fallbackRoot)?r.fallbackRoot:!0,g=!!r.fallbackFormat,v=Kt(r.missing)?r.missing:null,m=Kt(r.postTranslation)?r.postTranslation:null,w=o?t.warnHtmlMessage:Mt(r.warnHtmlMessage)?r.warnHtmlMessage:!0,b=!!r.escapeParameter,y=o?t.modifiers:mt(r.modifiers)?r.modifiers:{},S=r.pluralRules||o&&t.pluralRules;function E(){return[l.value,a.value,c.value,u.value,d.value]}const T=z({get:()=>s.value?s.value.locale.value:l.value,set:I=>{s.value&&(s.value.locale.value=I),l.value=I}}),M=z({get:()=>s.value?s.value.fallbackLocale.value:a.value,set:I=>{s.value&&(s.value.fallbackLocale.value=I),a.value=I}}),O=z(()=>s.value?s.value.messages.value:c.value),k=z(()=>u.value),P=z(()=>d.value);function L(){return s.value?s.value.getPostTranslationHandler():m}function j(I){s.value&&s.value.setPostTranslationHandler(I)}function le(){return s.value?s.value.getMissingHandler():v}function N(I){s.value&&s.value.setMissingHandler(I)}function R(I){return E(),I()}function K(...I){return s.value?R(()=>Reflect.apply(s.value.t,null,[...I])):R(()=>"")}function W(...I){return s.value?Reflect.apply(s.value.rt,null,[...I]):""}function U(...I){return s.value?R(()=>Reflect.apply(s.value.d,null,[...I])):R(()=>"")}function Q(...I){return s.value?R(()=>Reflect.apply(s.value.n,null,[...I])):R(()=>"")}function de(I){return s.value?s.value.tm(I):{}}function ee(I,re){return s.value?s.value.te(I,re):!1}function Me(I){return s.value?s.value.getLocaleMessage(I):{}}function fe(I,re){s.value&&(s.value.setLocaleMessage(I,re),c.value[I]=re)}function Ce(I,re){s.value&&s.value.mergeLocaleMessage(I,re)}function Oe(I){return s.value?s.value.getDateTimeFormat(I):{}}function ne(I,re){s.value&&(s.value.setDateTimeFormat(I,re),u.value[I]=re)}function ie(I,re){s.value&&s.value.mergeDateTimeFormat(I,re)}function X(I){return s.value?s.value.getNumberFormat(I):{}}function me(I,re){s.value&&(s.value.setNumberFormat(I,re),d.value[I]=re)}function Pe(I,re){s.value&&s.value.mergeNumberFormat(I,re)}const Ee={get id(){return s.value?s.value.id:-1},locale:T,fallbackLocale:M,messages:O,datetimeFormats:k,numberFormats:P,get inheritLocale(){return s.value?s.value.inheritLocale:i},set inheritLocale(I){s.value&&(s.value.inheritLocale=I)},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(I){s.value&&(s.value.missingWarn=I)},get fallbackWarn(){return s.value?s.value.fallbackWarn:h},set fallbackWarn(I){s.value&&(s.value.missingWarn=I)},get fallbackRoot(){return s.value?s.value.fallbackRoot:p},set fallbackRoot(I){s.value&&(s.value.fallbackRoot=I)},get fallbackFormat(){return s.value?s.value.fallbackFormat:g},set fallbackFormat(I){s.value&&(s.value.fallbackFormat=I)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:w},set warnHtmlMessage(I){s.value&&(s.value.warnHtmlMessage=I)},get escapeParameter(){return s.value?s.value.escapeParameter:b},set escapeParameter(I){s.value&&(s.value.escapeParameter=I)},t:K,getPostTranslationHandler:L,setPostTranslationHandler:j,getMissingHandler:le,setMissingHandler:N,rt:W,d:U,n:Q,tm:de,te:ee,getLocaleMessage:Me,setLocaleMessage:fe,mergeLocaleMessage:Ce,getDateTimeFormat:Oe,setDateTimeFormat:ne,mergeDateTimeFormat:ie,getNumberFormat:X,setNumberFormat:me,mergeNumberFormat:Pe};function $(I){I.locale.value=l.value,I.fallbackLocale.value=a.value,Object.keys(c.value).forEach(re=>{I.mergeLocaleMessage(re,c.value[re])}),Object.keys(u.value).forEach(re=>{I.mergeDateTimeFormat(re,u.value[re])}),Object.keys(d.value).forEach(re=>{I.mergeNumberFormat(re,d.value[re])}),I.escapeParameter=b,I.fallbackFormat=g,I.fallbackRoot=p,I.fallbackWarn=h,I.missingWarn=f,I.warnHtmlMessage=w}return Bd(()=>{if(n.proxy==null||n.proxy.$i18n==null)throw Dn(kn.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const I=s.value=n.proxy.$i18n.__composer;e==="global"?(l.value=I.locale.value,a.value=I.fallbackLocale.value,c.value=I.messages.value,u.value=I.datetimeFormats.value,d.value=I.numberFormats.value):o&&$(I)}),Ee}const W$=["locale","fallbackLocale","availableLocales"],Tw=["t","rt","d","n","tm","te"];function G$(n,e){const t=Object.create(null);return W$.forEach(o=>{const s=Object.getOwnPropertyDescriptor(e,o);if(!s)throw Dn(kn.UNEXPECTED_ERROR);const i=Gt(s.value)?{get(){return s.value.value},set(l){s.value.value=l}}:{get(){return s.get&&s.get()}};Object.defineProperty(t,o,i)}),n.config.globalProperties.$i18n=t,Tw.forEach(o=>{const s=Object.getOwnPropertyDescriptor(e,o);if(!s||!s.value)throw Dn(kn.UNEXPECTED_ERROR);Object.defineProperty(n.config.globalProperties,`$${o}`,s)}),()=>{delete n.config.globalProperties.$i18n,Tw.forEach(o=>{delete n.config.globalProperties[`$${o}`]})}}x$();__INTLIFY_JIT_COMPILATION__?sw(m$):sw(g$);i$(zR);l$(f_);if(__INTLIFY_PROD_DEVTOOLS__){const n=Vs();n.__INTLIFY__=!0,JR(n.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const q$={lang:{common:{add:"新增",back:"返回",save:"保存",saved:"保存成功",cancel:"取消",edit:"编辑",del:"删除",deleted:"删除成功",insert:"插入",nodeName:"节点名称",else:"否则",successTip:"成功提示",errTip:"错误提示",toDetail:"查看详情"},err:{},mainflow:{title:"主流程列表",add:"增加主流程",table:["主流程名称","是否启用","操作"],form:{title:"新增主流程",name:"主流程名称"},delConfirm:"确认要删除该主流程吗?"},flow:{nodes:["话术节点","条件节点","采集节点","跳转节点"],nodesDesc:["返回话术给用户","设置条件,控制流程走向","采集用户输入的信息,并保存到变量中","流程之间跳转,或跳转至外部"],title:"绘制对话流程",steps:["第一步:发布流程","第二步:开始测试"],save:"保存当前流程",pub:"发布所有流程",test:"测试流程",addSubFlow:"新增子流程",form:{name:"子流程名"},subFlowReleased:"发布成功",needOne:"最少保留一个子流程",delConfirm:"确认要删除该子流程吗?",send:"发送",reset:"重置",changeSaveTip:"流程已经修改,需要保存并切换吗?",guideReset:"流程结束,如需重新开始请点下方重来按钮"},dialogNode:{nodeName:"话术节点",nextSteps:["等待用户回复","执行下一个节点"],errors:["未填写节点名称","未填写话术信息","话术信息超长, 需少于200字"],form:{label:"节点话术",addVar:"插入变量",nextStep:"下一步",choose:"选择执行的操作"},var:{title:"选择需要插入的变量",choose:"选择变量"}},conditionNode:{types:["用户意图","用户输入","流程变量"],compares:["等于","不等于","包含","用户输入超时"],nodeName:"条件节点",errors:["请输入条件名称","输入的条件名称重复","未填写节点名称","未设置条件分支"],newBranch:"添加分支",condName:"名称",condType:"条件类型",condTypePH:"请选择条件类型",comparedPH:"请选择被比较数据",compareTypePH:"请选择比较类型",targetPH:"请选择比较的值",andCond:'"与"条件',orCond:'添加"或"条件',newCond:"添加条件"},collectNode:{nodeName:"采集节点",cTypes:["用户输入","数字","自定义正则"],branches:["采集成功","采集失败"],errors:["未填写节点名称","未选择采集类型","未选择保存变量","未添加分支信息"],cTypeName:"采集类型",varName:"保存的变量",labels:["采集类型","请选择采集类型","自定义正则","赋值变量","请选择变量"]},gotoNode:{types:["结束对话","主流程","子流程","外部链接"],nodeName:"跳转节点",errors:["未填写节点名称","未选择跳转类型","未选择跳转的子流程","未填写跳转的外部链接"],briefs:["执行动作","结束流程","跳转到子流程","跳转到外部链接","跳转到主流程"],gotoType:"跳转类型",gotoTypePH:"请选择跳转类型",gotoMainFlow:"跳转的主流程",gotoMainFlowPH:"选择跳转的主流程",gotoSubFlow:"跳转的子流程",gotoSubFlowPH:"选择跳转的子流程",externalLink:"外部链接"},intent:{title:"意图管理",add:"新增意图",delConfirm:"确认要删除该意图吗?",table:["意图名","关键词数量","正则数量","相似问数量","操作"],form:{title:"新增意图",name:"意图名"},detail:{edit:"编辑意图",kw:"关键词",addKw:"新增关键词",re:"正则表达式",addRe:"新增正则",sp:"相似表达句子",addSp:"新增相似问"}},settings:{title:"配置管理",ipNote:"如果配置的IP地址错误导致应用启动失败, 请在启动是, 加上 -rs 来重置配置参数",prompt2:"应用端口",prompt2_2:"当指定端口被占用, 随机选择一个可用的端口",prompt3:"会话时长",prompt4:"分钟",note:"修改了IP地址, 端口或会话时长,需要重启应用才能生效",invalidIp:"设置的IP地址不正确"},var:{types:["字符串","数字"],sources:["外部导入","流程采集","远程HTTP接口(正式版)"],title:"变量管理",add:"新增变量",table:["变量名","变量类型","变量取值来源","操作"],form:{title:"流程变量",name:"变量名称",type:"变量类型",choose1:"请选择变量类型",source:"变量取值来源",choose2:"请选择变量取值来源"}},home:{title:"Dialog Flow 对话流程可视化编辑器",subTitle:"低代码流程应答系统",btn1:"立即使用",btn2:"查看文档",btn3:"查看演示Demo",dlTitle:"下载",dl1:"您可以从Github上下载到最新版",dl2:'如果您有任何意见或建议, 请发邮件到: dialogflow(AT)yeah.net 或者创建一个 帖子',introTitle:"这是什么软件?",intro1:"它类似 Google 的 Dialogflow, 但是多了一个流程画布编辑器,可以更好的设计流程. 它也像 Typebot, 但是多了一个完整的应答后端.",intro2:"它拥有一个可视化的流程编辑器, 编辑完成后,可以测试流程, 并最终发布流程.",intro3:"目前,它可以返回话术给用户,并采集用户输入,还可以通过条件判断,执行不同的节点.",intro4:"它很轻量。整个软件,包含了前端和后端,只有不到 6M 大小,非常易于分发和部署.",intro5:"你可以修改软件的监听端口,这样就可以在同一台服务器上,同时运行多个实例,解决不同的用户场景.",intro6:"它下载后,就可以直接使用,不用安装任何依赖。而且数据是存放在本地,可以保护数据营隐私.",midTitle:"我们的优势",adv1Title:"易用",adv1:"简便、直观的编辑界面。
人人都会使用
只需简单的鼠标拖拽和点击
就可以绘制出一个对话流程",demo:"演示",demo1:"电话催收",demo2:"用户信息收集",demo3:"一句话通知",demoUnvailableTitle:"演示在Github上不可用Demos are not available on Github",demoUnvailableContent:'由于目前没有服务器来托管后台.
但是可以下载该软件, 它包含了3个演示对话流程',adv2Title:"小巧、快速",adv2:"只有两个文件(程序和数据库),部署非常方便。
依托AoT编译技术
可提供超高的并发数和超快的响应",adv3Title:"解决各种问题",adv3:"使用不同的流程节点组合
满足不同场景业务需求
解决不同人群遇到的问题",adv4Title:"兼容性",adv4:"前端支持 Firefox、Chrome、Microsoft Edge、Safari、Opera 等主流浏览器

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

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

FreeSwitch can also be integrated to enable intelligent speech robots",adv5Doc:"View docs"},guide:{title1:"Dialog flows",nav1:"Click here to create new dialog flow or edit existing flow",title2:"Intentions",nav2:"Intents management",desc2:"Intent, used to summarize user input, what purpose does it belong to.",title3:"Variables",nav3:"Variables management",desc3:"Variables are used to store user input, or external data from HTTP, which is used in the answer of the dialog flow, conditional judgment.",title4:"Robot settings",nav4:"Modify Configurations",desc4:"Modify the listening IP and port.",title5:"Operation manual and integration documentation",nav5:"View documents",desc5:"Understand how to quickly build a dialog flow through the canvas. Learn how to connect to the answering interface through code"}}},Y$={zh:q$,en:K$},J$=((navigator.language?navigator.language:navigator.userLanguage)||"zh").toLowerCase(),X$=$$({fallbackLocale:"zh",globalInjection:!0,legacy:!1,locale:J$.split("-")[0]||"zh",messages:Y$}),Z$={__name:"App",setup(n){return(e,t)=>{const r=at("router-view");return A(),ve(r)}}},Q$='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',eD=n=>getComputedStyle(n).position==="fixed"?!1:n.offsetParent!==null,Ow=n=>Array.from(n.querySelectorAll(Q$)).filter(e=>tD(e)&&eD(e)),tD=n=>{if(n.tabIndex>0||n.tabIndex===0&&n.getAttribute("tabIndex")!==null)return!0;if(n.disabled)return!1;switch(n.nodeName){case"A":return!!n.href&&n.rel!=="ignore";case"INPUT":return!(n.type==="hidden"||n.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Rs=(n,e,{checkForDefaultPrevented:t=!0}={})=>o=>{const s=n==null?void 0:n(o);if(t===!1||!s)return e==null?void 0:e(o)};var nD=Object.defineProperty,rD=Object.defineProperties,oD=Object.getOwnPropertyDescriptors,Mw=Object.getOwnPropertySymbols,sD=Object.prototype.hasOwnProperty,iD=Object.prototype.propertyIsEnumerable,Aw=(n,e,t)=>e in n?nD(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,lD=(n,e)=>{for(var t in e||(e={}))sD.call(e,t)&&Aw(n,t,e[t]);if(Mw)for(var t of Mw(e))iD.call(e,t)&&Aw(n,t,e[t]);return n},aD=(n,e)=>rD(n,oD(e));function kw(n,e){var t;const r=No();return ss(()=>{r.value=n()},aD(lD({},e),{flush:(t=void 0)!=null?t:"sync"})),$d(r)}var Pw;const Et=typeof window<"u",cD=n=>typeof n=="string",oc=()=>{},fv=Et&&((Pw=window==null?void 0:window.navigator)==null?void 0:Pw.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function sc(n){return typeof n=="function"?n():x(n)}function N_(n,e){function t(...r){return new Promise((o,s)=>{Promise.resolve(n(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(s)})}return t}function uD(n,e={}){let t,r,o=oc;const s=l=>{clearTimeout(l),o(),o=oc};return l=>{const a=sc(n),c=sc(e.maxWait);return t&&s(t),a<=0||c!==void 0&&c<=0?(r&&(s(r),r=null),Promise.resolve(l())):new Promise((u,d)=>{o=e.rejectOnCancel?d:u,c&&!r&&(r=setTimeout(()=>{t&&s(t),r=null,u(l())},c)),t=setTimeout(()=>{r&&s(r),r=null,u(l())},a)})}}function dD(n,e=!0,t=!0,r=!1){let o=0,s,i=!0,l=oc,a;const c=()=>{s&&(clearTimeout(s),s=void 0,l(),l=oc)};return d=>{const f=sc(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,v)=>{l=r?v:g,s=setTimeout(()=>{o=Date.now(),i=!0,g(p()),c()},Math.max(0,f-h))})),!t&&!s&&(s=setTimeout(()=>i=!0,f)),i=!1,a)}}function fD(n){return n}function jd(n){return BE()?(FE(n),!0):!1}function hD(n,e=200,t={}){return N_(uD(e,t),n)}function pD(n,e=200,t={}){const r=V(n.value),o=hD(()=>{r.value=n.value},e,t);return je(n,()=>o()),r}function gD(n,e=200,t=!1,r=!0,o=!1){return N_(dD(e,t,r,o),n)}function mD(n,e=!0){vt()?ot(n):e?n():it(n)}function Nh(n,e,t={}){const{immediate:r=!0}=t,o=V(!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)},sc(e))}return r&&(o.value=!0,Et&&a()),jd(l),{isPending:$d(o),start:a,stop:l}}function Bs(n){var e;const t=sc(n);return(e=t==null?void 0:t.$el)!=null?e:t}const Hd=Et?window:void 0,vD=Et?window.document:void 0;function xn(...n){let e,t,r,o;if(cD(n[0])||Array.isArray(n[0])?([t,r,o]=n,e=Hd):[e,t,r,o]=n,!e)return oc;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=je(()=>[Bs(e),sc(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 jd(c),c}let Nw=!1;function bD(n,e,t={}){const{window:r=Hd,ignore:o=[],capture:s=!0,detectIframe:i=!1}=t;if(!r)return;fv&&!Nw&&(Nw=!0,Array.from(r.document.body.children).forEach(f=>f.addEventListener("click",oc)));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=Bs(h);return p&&(f.target===p||f.composedPath().includes(p))}}),u=[xn(r,"click",f=>{const h=Bs(n);if(!(!h||h===f.target||f.composedPath().includes(h))){if(f.detail===0&&(l=!a(f)),!l){l=!0;return}e(f)}},{passive:!0,capture:s}),xn(r,"pointerdown",f=>{const h=Bs(n);h&&(l=!f.composedPath().includes(h)&&!a(f))},{passive:!0}),i&&xn(r,"blur",f=>{var h;const p=Bs(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 I_(n,e=!1){const t=V(),r=()=>t.value=!!n();return r(),mD(r,e),t}const Iw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Lw="__vueuse_ssr_handlers__";Iw[Lw]=Iw[Lw]||{};function yD({document:n=vD}={}){if(!n)return V("visible");const e=V(n.visibilityState);return xn(n,"visibilitychange",()=>{e.value=n.visibilityState}),e}var Rw=Object.getOwnPropertySymbols,wD=Object.prototype.hasOwnProperty,CD=Object.prototype.propertyIsEnumerable,xD=(n,e)=>{var t={};for(var r in n)wD.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&Rw)for(var r of Rw(n))e.indexOf(r)<0&&CD.call(n,r)&&(t[r]=n[r]);return t};function mr(n,e,t={}){const r=t,{window:o=Hd}=r,s=xD(r,["window"]);let i;const l=I_(()=>o&&"ResizeObserver"in o),a=()=>{i&&(i.disconnect(),i=void 0)},c=je(()=>Bs(n),d=>{a(),l.value&&o&&d&&(i=new ResizeObserver(e),i.observe(d,s))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return jd(u),{isSupported:l,stop:u}}var $w=Object.getOwnPropertySymbols,SD=Object.prototype.hasOwnProperty,ED=Object.prototype.propertyIsEnumerable,_D=(n,e)=>{var t={};for(var r in n)SD.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&$w)for(var r of $w(n))e.indexOf(r)<0&&ED.call(n,r)&&(t[r]=n[r]);return t};function TD(n,e,t={}){const r=t,{window:o=Hd}=r,s=_D(r,["window"]);let i;const l=I_(()=>o&&"MutationObserver"in o),a=()=>{i&&(i.disconnect(),i=void 0)},c=je(()=>Bs(n),d=>{a(),l.value&&o&&d&&(i=new MutationObserver(e),i.observe(d,s))},{immediate:!0}),u=()=>{a(),c()};return jd(u),{isSupported:l,stop:u}}var Dw;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(Dw||(Dw={}));var OD=Object.defineProperty,Vw=Object.getOwnPropertySymbols,MD=Object.prototype.hasOwnProperty,AD=Object.prototype.propertyIsEnumerable,Bw=(n,e,t)=>e in n?OD(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,kD=(n,e)=>{for(var t in e||(e={}))MD.call(e,t)&&Bw(n,t,e[t]);if(Vw)for(var t of Vw(e))AD.call(e,t)&&Bw(n,t,e[t]);return n};const PD={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};kD({linear:fD},PD);function ND({window:n=Hd}={}){if(!n)return V(!1);const e=V(n.document.hasFocus());return xn(n,"blur",()=>{e.value=!1}),xn(n,"focus",()=>{e.value=!0}),e}const ID=()=>Et&&/firefox/i.test(window.navigator.userAgent),LD=(n,e)=>{if(!Et||!n||!e)return!1;const t=n.getBoundingClientRect();let r;return e instanceof Element?r=e.getBoundingClientRect():r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},t.topr.top&&t.right>r.left&&t.left0){if(++e>=b4)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function x4(n){return function(){return n}}var Ih=function(){try{var n=ba(Object,"defineProperty");return n({},"",{}),n}catch{}}(),S4=Ih?function(n,e){return Ih(n,"toString",{configurable:!0,enumerable:!1,value:x4(e),writable:!0})}:jc,B_=C4(S4);function E4(n,e){for(var t=-1,r=n==null?0:n.length;++t-1}var M4=9007199254740991,A4=/^(?:0|[1-9]\d*)$/;function Vp(n,e){var t=typeof n;return e=e??M4,!!e&&(t=="number"||t!="symbol"&&A4.test(n))&&n>-1&&n%1==0&&n-1&&n%1==0&&n<=N4}function ya(n){return n!=null&&ay(n.length)&&!iy(n)}function Lh(n,e,t){if(!un(t))return!1;var r=typeof e;return(r=="number"?ya(t)&&Vp(e,t.length):r=="string"&&e in t)?Hc(t[e],n):!1}function H_(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&&Lh(t[0],t[1],i)&&(s=o<3?void 0:s,o=1),e=Object(e);++r-1}function z8(n,e){var t=this.__data__,r=Hp(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function ei(n){var e=-1,t=n==null?0:n.length;for(this.clear();++eo?0:o+e),t=t>o?o:t,t<0&&(t+=o),o=e>t?0:t-e>>>0,e>>>=0;for(var s=Array(o);++r=r?n:cV(n,e,t)}var dV="\\ud800-\\udfff",fV="\\u0300-\\u036f",hV="\\ufe20-\\ufe2f",pV="\\u20d0-\\u20ff",gV=fV+hV+pV,mV="\\ufe0e\\ufe0f",vV="\\u200d",bV=RegExp("["+vV+dV+gV+mV+"]");function X_(n){return bV.test(n)}function yV(n){return n.split("")}var Z_="\\ud800-\\udfff",wV="\\u0300-\\u036f",CV="\\ufe20-\\ufe2f",xV="\\u20d0-\\u20ff",SV=wV+CV+xV,EV="\\ufe0e\\ufe0f",_V="["+Z_+"]",pv="["+SV+"]",gv="\\ud83c[\\udffb-\\udfff]",TV="(?:"+pv+"|"+gv+")",Q_="[^"+Z_+"]",eT="(?:\\ud83c[\\udde6-\\uddff]){2}",tT="[\\ud800-\\udbff][\\udc00-\\udfff]",OV="\\u200d",nT=TV+"?",rT="["+EV+"]?",MV="(?:"+OV+"(?:"+[Q_,eT,tT].join("|")+")"+rT+nT+")*",AV=rT+nT+MV,kV="(?:"+[Q_+pv+"?",pv,eT,tT,_V].join("|")+")",PV=RegExp(gv+"(?="+gv+")|"+kV+AV,"g");function NV(n){return n.match(PV)||[]}function IV(n){return X_(n)?NV(n):yV(n)}function oT(n){return function(e){e=Gd(e);var t=X_(e)?IV(e):void 0,r=t?t[0]:e.charAt(0),o=t?uV(t,1).join(""):e.slice(1);return r[n]()+o}}var Rh=oT("toUpperCase");function LV(n){return Rh(Gd(n).toLowerCase())}function RV(n,e,t,r){for(var o=-1,s=n==null?0:n.length;++o=e?n:e)),n}function oo(n,e,t){return t===void 0&&(t=e,e=void 0),t!==void 0&&(t=Au(t),t=t===t?t:0),e!==void 0&&(e=Au(e),e=e===e?e:0),SB(Au(n),e,t)}function EB(){this.__data__=new ei,this.size=0}function _B(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function TB(n){return this.__data__.get(n)}function OB(n){return this.__data__.has(n)}var MB=200;function AB(n,e){var t=this.__data__;if(t instanceof ei){var r=t.__data__;if(!ld||r.lengthl))return!1;var c=s.get(n),u=s.get(e);if(c&&u)return c==e&&u==n;var d=-1,f=!0,h=t&sF?new cc:void 0;for(s.set(n,e),s.set(e,n);++d=e||T<0||d&&M>=s}function m(){var E=em();if(v(E))return w(E);l=setTimeout(m,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(em())}function S(){var E=em(),T=v(E);if(r=arguments,o=this,a=E,T){if(l===void 0)return p(a);if(d)return clearTimeout(l),l=setTimeout(m,e),h(a)}return l===void 0&&(l=setTimeout(m,e)),i}return S.cancel=b,S.flush=y,S}var $T=Object.prototype,YF=$T.hasOwnProperty,JF=Uc(function(n,e){n=Object(n);var t=-1,r=e.length,o=r>2?e[2]:void 0;for(o&&Lh(e[0],e[1],o)&&(r=1);++t=e6&&(s=gy,i=!1,e=new cc(e));e:for(;++oe}var c6=Object.prototype,u6=c6.hasOwnProperty;function d6(n,e){return n!=null&&u6.call(n,e)}function Of(n,e){return n!=null&&NT(n,e,d6)}var f6="[object Map]",h6="[object Set]",p6=Object.prototype,g6=p6.hasOwnProperty;function FT(n){if(n==null)return!0;if(ya(n)&&(Fn(n)||typeof n=="string"||typeof n.splice=="function"||lc(n)||jp(n)||ic(n)))return!n.length;var e=to(n);if(e==f6||e==h6)return!n.size;if(Fp(n))return!Y_(n).length;for(var t in n)if(g6.call(n,t))return!1;return!0}function Or(n,e){return Kp(n,e)}var m6="[object Number]";function wC(n){return typeof n=="number"||Bo(n)&&al(n)==m6}function is(n){return n==null}function zT(n){return n===void 0}var v6=oT("toLowerCase");function b6(n,e,t){for(var r=-1,o=n.length;++re||s&&i&&a&&!l&&!c||r&&i&&a||!t&&a||!o)return 1;if(!r&&!s&&!c&&n=l)return a;var c=t[r];return a*(c=="desc"?-1:1)}}return n.index-e.index}function E6(n,e,t){e.length?e=Mu(e,function(s){return Fn(s)?function(i){return Gp(i,s.length===1?s[0]:s)}:s}):e=[jc];var r=-1;e=Mu(e,zp(Yd));var o=BT(n,function(s,i,l){var a=Mu(e,function(c){return c(s)});return{criteria:a,index:++r,value:s}});return C6(o,function(s,i){return S6(s,i,t)})}function _6(n,e){return w6(n,e,function(t,r){return IT(n,r)})}var HT=rV(function(n,e){return n==null?{}:_6(n,e)});function T6(n,e,t){return n==null?n:jT(n,e,t)}var O6=Uc(function(n,e){if(n==null)return[];var t=e.length;return t>1&&Lh(n,e[0],e[1])?e=[]:t>2&&Lh(e[0],e[1],e[2])&&(e=[e[0]]),E6(n,Kd(e),[])}),M6=4294967295,A6=M6-1,k6=Math.floor,P6=Math.min;function UT(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=us(e),c=e===void 0;o>>1;function L6(n,e,t){var r=0,o=n==null?r:n.length;if(typeof e=="number"&&e===e&&o<=I6){for(;r>>1,i=n[s];i!==null&&!us(i)&&i=z6){var c=F6(n);if(c)return my(c);i=!1,o=gy,a=new cc}else a=l;e:for(;++rn===void 0,fo=n=>typeof n=="boolean",Tt=n=>typeof n=="number",ho=n=>typeof Element>"u"?!1:n instanceof Element,cd=n=>is(n),j6=n=>ht(n)?!Number.isNaN(Number(n)):!1,H6=n=>Et?window.requestAnimationFrame(n):setTimeout(n,16),U6=(n="")=>n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Pi=n=>Rd(n),Fh=n=>Object.keys(n),lh=(n,e,t)=>({get value(){return ro(n,e,t)},set value(r){T6(n,e,r)}});class W6 extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function cl(n,e){throw new W6(`[${n}] ${e}`)}const qT=(n="")=>n.split(" ").filter(e=>!!e.trim()),Ua=(n,e)=>{if(!n||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return n.classList.contains(e)},ra=(n,e)=>{!n||!e.trim()||n.classList.add(...qT(e))},ds=(n,e)=>{!n||!e.trim()||n.classList.remove(...qT(e))},Pl=(n,e)=>{var t;if(!Et||!n||!e)return"";let r=Do(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 po(n,e="px"){if(!n)return"";if(Tt(n)||j6(n))return`${n}${e}`;if(ht(n))return n}const G6=(n,e)=>{if(!Et)return!1;const t={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(e)],r=Pl(n,t);return["scroll","auto","overlay"].some(o=>r.includes(o))},q6=(n,e)=>{if(!Et)return;let t=n;for(;t;){if([window,document,document.documentElement].includes(t))return window;if(G6(t,e))return t;t=t.parentNode}return t};let Mf;const K6=n=>{var e;if(!Et)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 Y6(n,e){if(!Et)return;if(!e){n.scrollTop=0;return}const t=[];let r=e.offsetParent;for(;r!==null&&n!==r&&n.contains(r);)t.push(r),r=r.offsetParent;const o=e.offsetTop+t.reduce((a,c)=>a+c.offsetTop,0),s=o+e.offsetHeight,i=n.scrollTop,l=i+n.clientHeight;ol&&(n.scrollTop=s-n.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var J6=ge({name:"ArrowDown",__name:"arrow-down",setup(n){return(e,t)=>(A(),q("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"})]))}}),vy=J6,X6=ge({name:"ArrowLeft",__name:"arrow-left",setup(n){return(e,t)=>(A(),q("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"})]))}}),KT=X6,Z6=ge({name:"ArrowRight",__name:"arrow-right",setup(n){return(e,t)=>(A(),q("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"})]))}}),Jp=Z6,Q6=ge({name:"ArrowUp",__name:"arrow-up",setup(n){return(e,t)=>(A(),q("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"})]))}}),YT=Q6,ez=ge({name:"Back",__name:"back",setup(n){return(e,t)=>(A(),q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),F("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),tz=ez,nz=ge({name:"CircleCheckFilled",__name:"circle-check-filled",setup(n){return(e,t)=>(A(),q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),rz=nz,oz=ge({name:"CircleCheck",__name:"circle-check",setup(n){return(e,t)=>(A(),q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),F("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),sz=oz,iz=ge({name:"CircleCloseFilled",__name:"circle-close-filled",setup(n){return(e,t)=>(A(),q("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"})]))}}),by=iz,lz=ge({name:"CircleClose",__name:"circle-close",setup(n){return(e,t)=>(A(),q("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"})]))}}),yy=lz,az=ge({name:"Close",__name:"close",setup(n){return(e,t)=>(A(),q("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"})]))}}),oa=az,cz=ge({name:"FullScreen",__name:"full-screen",setup(n){return(e,t)=>(A(),q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),uz=cz,dz=ge({name:"Hide",__name:"hide",setup(n){return(e,t)=>(A(),q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),F("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),fz=dz,hz=ge({name:"InfoFilled",__name:"info-filled",setup(n){return(e,t)=>(A(),q("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"})]))}}),wy=hz,pz=ge({name:"Loading",__name:"loading",setup(n){return(e,t)=>(A(),q("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"})]))}}),ud=pz,gz=ge({name:"Minus",__name:"minus",setup(n){return(e,t)=>(A(),q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),mz=gz,vz=ge({name:"Plus",__name:"plus",setup(n){return(e,t)=>(A(),q("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"})]))}}),JT=vz,bz=ge({name:"RefreshLeft",__name:"refresh-left",setup(n){return(e,t)=>(A(),q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),yz=bz,wz=ge({name:"RefreshRight",__name:"refresh-right",setup(n){return(e,t)=>(A(),q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),Cz=wz,xz=ge({name:"ScaleToOriginal",__name:"scale-to-original",setup(n){return(e,t)=>(A(),q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),Sz=xz,Ez=ge({name:"SuccessFilled",__name:"success-filled",setup(n){return(e,t)=>(A(),q("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"})]))}}),XT=Ez,_z=ge({name:"View",__name:"view",setup(n){return(e,t)=>(A(),q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),Tz=_z,Oz=ge({name:"WarningFilled",__name:"warning-filled",setup(n){return(e,t)=>(A(),q("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"})]))}}),Cy=Oz,Mz=ge({name:"ZoomIn",__name:"zoom-in",setup(n){return(e,t)=>(A(),q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),Az=Mz,kz=ge({name:"ZoomOut",__name:"zoom-out",setup(n){return(e,t)=>(A(),q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),Pz=kz;const ZT="__epPropKey",Ue=n=>n,Nz=n=>gt(n)&&!!n[ZT],Xp=(n,e)=>{if(!gt(n)||Nz(n))return n;const{values:t,required:r,default:o,type:s,validator:i}=n,a={type:s,required:!!r,validator:t||i?c=>{let u=!1,d=[];if(t&&(d=Array.from(t),xt(n,"default")&&d.push(o),u||(u=d.includes(c))),i&&(u||(u=i(c))),!u&&d.length>0){const f=[...new Set(d)].map(h=>JSON.stringify(h)).join(", ");aL(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${f}], got value ${JSON.stringify(c)}.`)}return u}:void 0,[ZT]:!0};return xt(n,"default")&&(a.default=o),a},st=n=>Bh(Object.entries(n).map(([e,t])=>[e,Xp(t,e)])),go=Ue([String,Object,Function]),QT={Close:oa},xy={Close:oa,SuccessFilled:XT,InfoFilled:wy,WarningFilled:Cy,CircleCloseFilled:by},Yi={success:XT,warning:Cy,error:by,info:wy},eO={validating:ud,success:sz,error:yy},Rt=(n,e)=>{if(n.install=t=>{for(const r of[n,...Object.values(e??{})])t.component(r.name,r)},e)for(const[t,r]of Object.entries(e))n[t]=r;return n},tO=(n,e)=>(n.install=t=>{n._context=t._context,t.config.globalProperties[e]=n},n),Iz=(n,e)=>(n.install=t=>{t.directive(e,n)},n),Ir=n=>(n.install=hn,n),Lz=(...n)=>e=>{n.forEach(t=>{Je(t)?t(e):t.value=e})},Cn={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Ht="update:modelValue",Jd="change",ah="input",wa=["","default","small","large"],Rz=n=>["",...wa].includes(n);var Xr=(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))(Xr||{});function Cv(n){return Pn(n)&&n.type===Re}function $z(n){return Pn(n)&&n.type===Yn}function Dz(n){return Pn(n)&&!Cv(n)&&!$z(n)}const ch=n=>{const e=ze(n)?n:[n],t=[];return e.forEach(r=>{var o;ze(r)?t.push(...ch(r)):Pn(r)&&ze(r.children)?t.push(...ch(r.children)):(t.push(r),Pn(r)&&((o=r.component)!=null&&o.subTree)&&t.push(...ch(r.component.subTree)))}),t},nO=n=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(n),_o=n=>n,Vz=["class","style"],Bz=/^on[A-Z]/,rO=(n={})=>{const{excludeListeners:e=!1,excludeKeys:t}=n,r=z(()=>((t==null?void 0:t.value)||[]).concat(Vz)),o=vt();return z(o?()=>{var s;return Bh(Object.entries((s=o.proxy)==null?void 0:s.$attrs).filter(([i])=>!r.value.includes(i)&&!(e&&Bz.test(i))))}:()=>({}))},Tr=({from:n,replacement:e,scope:t,version:r,ref:o,type:s="API"},i)=>{je(()=>x(i),l=>{},{immediate:!0})},oO=(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,v=h.width,m=h.height,w=document.documentElement.clientWidth,b=document.documentElement.clientHeight,y=-p+d,S=-g+f,E=w-p-v+d,T=b-g-m+f,M=k=>{let P=d+k.clientX-c,L=f+k.clientY-u;r!=null&&r.value||(P=Math.min(Math.max(P,y),E),L=Math.min(Math.max(L,S),T)),o={offsetX:P,offsetY:L},n.value&&(n.value.style.transform=`translate(${po(P)}, ${po(L)})`)},O=()=>{document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",O)};document.addEventListener("mousemove",M),document.addEventListener("mouseup",O)},i=()=>{e.value&&n.value&&e.value.addEventListener("mousedown",s)},l=()=>{e.value&&n.value&&e.value.removeEventListener("mousedown",s)};ot(()=>{ss(()=>{t.value?i():l()})}),_n(()=>{l()})};var Fz={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const zz=n=>(e,t)=>jz(e,t,x(n)),jz=(n,e,t)=>ro(t,n,n).replace(/\{(\w+)\}/g,(r,o)=>{var s;return`${(s=e==null?void 0:e[o])!=null?s:`{${o}}`}`}),Hz=n=>{const e=z(()=>x(n).name),t=Gt(n)?n:V(n);return{lang:e,locale:t,t:zz(n)}},sO=Symbol("localeContextKey"),ws=n=>{const e=n||He(sO,V());return Hz(z(()=>e.value||Fz))},Nu="el",Uz="is-",Tl=(n,e,t,r,o)=>{let s=`${n}-${e}`;return t&&(s+=`-${t}`),r&&(s+=`__${r}`),o&&(s+=`--${o}`),s},iO=Symbol("namespaceContextKey"),Sy=n=>{const e=n||(vt()?He(iO,V(Nu)):V(Nu));return z(()=>x(e)||Nu)},Xe=(n,e)=>{const t=Sy(e);return{namespace:t,b:(g="")=>Tl(t.value,n,g,"",""),e:g=>g?Tl(t.value,n,"",g,""):"",m:g=>g?Tl(t.value,n,"","",g):"",be:(g,v)=>g&&v?Tl(t.value,n,g,v,""):"",em:(g,v)=>g&&v?Tl(t.value,n,"",g,v):"",bm:(g,v)=>g&&v?Tl(t.value,n,g,"",v):"",bem:(g,v,m)=>g&&v&&m?Tl(t.value,n,g,v,m):"",is:(g,...v)=>{const m=v.length>=1?v[0]:!0;return g&&m?`${Uz}${g}`:""},cssVar:g=>{const v={};for(const m in g)g[m]&&(v[`--${t.value}-${m}`]=g[m]);return v},cssVarName:g=>`--${t.value}-${g}`,cssVarBlock:g=>{const v={};for(const m in g)g[m]&&(v[`--${t.value}-${n}-${m}`]=g[m]);return v},cssVarBlockName:g=>`--${t.value}-${n}-${g}`}},lO=(n,e={})=>{Gt(n)||cl("[useLockscreen]","You need to pass a ref param to this function");const t=e.ns||Xe("popup"),r=z(()=>t.bm("parent","hidden"));if(!Et||Ua(document.body,r.value))return;let o=0,s=!1,i="0";const l=()=>{setTimeout(()=>{ds(document==null?void 0:document.body,r.value),s&&document&&(document.body.style.width=i)},200)};je(n,a=>{if(!a){l();return}s=!Ua(document.body,r.value),s&&(i=document.body.style.width),o=K6(t.namespace.value);const c=document.documentElement.clientHeight0&&(c||u==="scroll")&&s&&(document.body.style.width=`calc(100% - ${o}px)`),ra(document.body,r.value)}),FE(()=>l())},Wz=Xp({type:Ue(Boolean),default:null}),Gz=Xp({type:Ue(Function)}),aO=n=>{const e=`update:${n}`,t=`onUpdate:${n}`,r=[e],o={[n]:Wz,[t]:Gz};return{useModelToggle:({indicator:i,toggleReason:l,shouldHideWhenRouteChanges:a,shouldProceed:c,onShow:u,onHide:d})=>{const f=vt(),{emit:h}=f,p=f.props,g=z(()=>Je(p[t])),v=z(()=>p[n]===null),m=T=>{i.value!==!0&&(i.value=!0,l&&(l.value=T),Je(u)&&u(T))},w=T=>{i.value!==!1&&(i.value=!1,l&&(l.value=T),Je(d)&&d(T))},b=T=>{if(p.disabled===!0||Je(c)&&!c())return;const M=g.value&&Et;M&&h(e,!0),(v.value||!M)&&m(T)},y=T=>{if(p.disabled===!0||!Et)return;const M=g.value&&Et;M&&h(e,!1),(v.value||!M)&&w(T)},S=T=>{fo(T)&&(p.disabled&&T?g.value&&h(e,!1):i.value!==T&&(T?m():w()))},E=()=>{i.value?y():b()};return je(()=>p[n],S),a&&f.appContext.config.globalProperties.$route!==void 0&&je(()=>({...f.proxy.$route}),()=>{a.value&&i.value&&y()}),ot(()=>{S(p[n])}),{hide:y,show:b,toggle:E,hasUpdateHandler:g}},useModelToggleProps:o,useModelToggleEmits:r}};aO("modelValue");const cO=n=>{const e=vt();return z(()=>{var t,r;return(r=(t=e==null?void 0:e.proxy)==null?void 0:t.$props)==null?void 0:r[n]})};var Mr="top",mo="bottom",vo="right",Ar="left",Ey="auto",Xd=[Mr,mo,vo,Ar],dc="start",dd="end",qz="clippingParents",uO="viewport",lu="popper",Kz="reference",xC=Xd.reduce(function(n,e){return n.concat([e+"-"+dc,e+"-"+dd])},[]),Zp=[].concat(Xd,[Ey]).reduce(function(n,e){return n.concat([e,e+"-"+dc,e+"-"+dd])},[]),Yz="beforeRead",Jz="read",Xz="afterRead",Zz="beforeMain",Qz="main",ej="afterMain",tj="beforeWrite",nj="write",rj="afterWrite",oj=[Yz,Jz,Xz,Zz,Qz,ej,tj,nj,rj];function fs(n){return n?(n.nodeName||"").toLowerCase():null}function Wo(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function fc(n){var e=Wo(n).Element;return n instanceof e||n instanceof Element}function ao(n){var e=Wo(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function _y(n){if(typeof ShadowRoot>"u")return!1;var e=Wo(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function sj(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},o=e.attributes[t]||{},s=e.elements[t];!ao(s)||!fs(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(i){var l=o[i];l===!1?s.removeAttribute(i):s.setAttribute(i,l===!0?"":l)}))})}function ij(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],s=e.attributes[r]||{},i=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),l=i.reduce(function(a,c){return a[c]="",a},{});!ao(o)||!fs(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(a){o.removeAttribute(a)}))})}}var Ty={name:"applyStyles",enabled:!0,phase:"write",fn:sj,effect:ij,requires:["computeStyles"]};function ls(n){return n.split("-")[0]}var Gl=Math.max,zh=Math.min,hc=Math.round;function pc(n,e){e===void 0&&(e=!1);var t=n.getBoundingClientRect(),r=1,o=1;if(ao(n)&&e){var s=n.offsetHeight,i=n.offsetWidth;i>0&&(r=hc(t.width)/i||1),s>0&&(o=hc(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 Oy(n){var e=pc(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 dO(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&_y(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function qs(n){return Wo(n).getComputedStyle(n)}function lj(n){return["table","td","th"].indexOf(fs(n))>=0}function ul(n){return((fc(n)?n.ownerDocument:n.document)||window.document).documentElement}function Qp(n){return fs(n)==="html"?n:n.assignedSlot||n.parentNode||(_y(n)?n.host:null)||ul(n)}function SC(n){return!ao(n)||qs(n).position==="fixed"?null:n.offsetParent}function aj(n){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,t=navigator.userAgent.indexOf("Trident")!==-1;if(t&&ao(n)){var r=qs(n);if(r.position==="fixed")return null}var o=Qp(n);for(_y(o)&&(o=o.host);ao(o)&&["html","body"].indexOf(fs(o))<0;){var s=qs(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 Zd(n){for(var e=Wo(n),t=SC(n);t&&lj(t)&&qs(t).position==="static";)t=SC(t);return t&&(fs(t)==="html"||fs(t)==="body"&&qs(t).position==="static")?e:t||aj(n)||e}function My(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Iu(n,e,t){return Gl(n,zh(e,t))}function cj(n,e,t){var r=Iu(n,e,t);return r>t?t:r}function fO(){return{top:0,right:0,bottom:0,left:0}}function hO(n){return Object.assign({},fO(),n)}function pO(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var uj=function(n,e){return n=typeof n=="function"?n(Object.assign({},e.rects,{placement:e.placement})):n,hO(typeof n!="number"?n:pO(n,Xd))};function dj(n){var e,t=n.state,r=n.name,o=n.options,s=t.elements.arrow,i=t.modifiersData.popperOffsets,l=ls(t.placement),a=My(l),c=[Ar,vo].indexOf(l)>=0,u=c?"height":"width";if(!(!s||!i)){var d=uj(o.padding,t),f=Oy(s),h=a==="y"?Mr:Ar,p=a==="y"?mo:vo,g=t.rects.reference[u]+t.rects.reference[a]-i[a]-t.rects.popper[u],v=i[a]-t.rects.reference[a],m=Zd(s),w=m?a==="y"?m.clientHeight||0:m.clientWidth||0:0,b=g/2-v/2,y=d[h],S=w-f[u]-d[p],E=w/2-f[u]/2+b,T=Iu(y,E,S),M=a;t.modifiersData[r]=(e={},e[M]=T,e.centerOffset=T-E,e)}}function fj(n){var e=n.state,t=n.options,r=t.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||!dO(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 gc(n){return n.split("-")[1]}var pj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gj(n){var e=n.x,t=n.y,r=window,o=r.devicePixelRatio||1;return{x:hc(e*o)/o||0,y:hc(t*o)/o||0}}function EC(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,v=typeof u=="function"?u({x:h,y:g}):{x:h,y:g};h=v.x,g=v.y;var m=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),b=Ar,y=Mr,S=window;if(c){var E=Zd(t),T="clientHeight",M="clientWidth";if(E===Wo(t)&&(E=ul(t),qs(E).position!=="static"&&l==="absolute"&&(T="scrollHeight",M="scrollWidth")),E=E,o===Mr||(o===Ar||o===vo)&&s===dd){y=mo;var O=d&&E===S&&S.visualViewport?S.visualViewport.height:E[T];g-=O-r.height,g*=a?1:-1}if(o===Ar||(o===Mr||o===mo)&&s===dd){b=vo;var k=d&&E===S&&S.visualViewport?S.visualViewport.width:E[M];h-=k-r.width,h*=a?1:-1}}var P=Object.assign({position:l},c&&pj),L=u===!0?gj({x:h,y:g}):{x:h,y:g};if(h=L.x,g=L.y,a){var j;return Object.assign({},P,(j={},j[y]=w?"0":"",j[b]=m?"0":"",j.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",j))}return Object.assign({},P,(e={},e[y]=w?g+"px":"",e[b]=m?h+"px":"",e.transform="",e))}function mj(n){var e=n.state,t=n.options,r=t.gpuAcceleration,o=r===void 0?!0:r,s=t.adaptive,i=s===void 0?!0:s,l=t.roundOffsets,a=l===void 0?!0:l,c={placement:ls(e.placement),variation:gc(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,EC(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,EC(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 gO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mj,data:{}},Af={passive:!0};function vj(n){var e=n.state,t=n.instance,r=n.options,o=r.scroll,s=o===void 0?!0:o,i=r.resize,l=i===void 0?!0:i,a=Wo(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 mO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vj,data:{}},bj={left:"right",right:"left",bottom:"top",top:"bottom"};function uh(n){return n.replace(/left|right|bottom|top/g,function(e){return bj[e]})}var yj={start:"end",end:"start"};function _C(n){return n.replace(/start|end/g,function(e){return yj[e]})}function Ay(n){var e=Wo(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function ky(n){return pc(ul(n)).left+Ay(n).scrollLeft}function wj(n){var e=Wo(n),t=ul(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+ky(n),y:l}}function Cj(n){var e,t=ul(n),r=Ay(n),o=(e=n.ownerDocument)==null?void 0:e.body,s=Gl(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Gl(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+ky(n),a=-r.scrollTop;return qs(o||t).direction==="rtl"&&(l+=Gl(t.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:l,y:a}}function Py(n){var e=qs(n),t=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+o+r)}function vO(n){return["html","body","#document"].indexOf(fs(n))>=0?n.ownerDocument.body:ao(n)&&Py(n)?n:vO(Qp(n))}function Lu(n,e){var t;e===void 0&&(e=[]);var r=vO(n),o=r===((t=n.ownerDocument)==null?void 0:t.body),s=Wo(r),i=o?[s].concat(s.visualViewport||[],Py(r)?r:[]):r,l=e.concat(i);return o?l:l.concat(Lu(Qp(i)))}function xv(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function xj(n){var e=pc(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 TC(n,e){return e===uO?xv(wj(n)):fc(e)?xj(e):xv(Cj(ul(n)))}function Sj(n){var e=Lu(Qp(n)),t=["absolute","fixed"].indexOf(qs(n).position)>=0,r=t&&ao(n)?Zd(n):n;return fc(r)?e.filter(function(o){return fc(o)&&dO(o,r)&&fs(o)!=="body"}):[]}function Ej(n,e,t){var r=e==="clippingParents"?Sj(n):[].concat(e),o=[].concat(r,[t]),s=o[0],i=o.reduce(function(l,a){var c=TC(n,a);return l.top=Gl(c.top,l.top),l.right=zh(c.right,l.right),l.bottom=zh(c.bottom,l.bottom),l.left=Gl(c.left,l.left),l},TC(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 bO(n){var e=n.reference,t=n.element,r=n.placement,o=r?ls(r):null,s=r?gc(r):null,i=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,a;switch(o){case Mr:a={x:i,y:e.y-t.height};break;case mo:a={x:i,y:e.y+e.height};break;case vo:a={x:e.x+e.width,y:l};break;case Ar:a={x:e.x-t.width,y:l};break;default:a={x:e.x,y:e.y}}var c=o?My(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case dc: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?qz:s,l=t.rootBoundary,a=l===void 0?uO:l,c=t.elementContext,u=c===void 0?lu:c,d=t.altBoundary,f=d===void 0?!1:d,h=t.padding,p=h===void 0?0:h,g=hO(typeof p!="number"?p:pO(p,Xd)),v=u===lu?Kz:lu,m=n.rects.popper,w=n.elements[f?v:u],b=Ej(fc(w)?w:w.contextElement||ul(n.elements.popper),i,a),y=pc(n.elements.reference),S=bO({reference:y,element:m,strategy:"absolute",placement:o}),E=xv(Object.assign({},m,S)),T=u===lu?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===lu&&O){var k=O[o];Object.keys(M).forEach(function(P){var L=[vo,mo].indexOf(P)>=0?1:-1,j=[Mr,mo].indexOf(P)>=0?"y":"x";M[P]+=k[j]*L})}return M}function _j(n,e){e===void 0&&(e={});var t=e,r=t.placement,o=t.boundary,s=t.rootBoundary,i=t.padding,l=t.flipVariations,a=t.allowedAutoPlacements,c=a===void 0?Zp:a,u=gc(r),d=u?l?xC:xC.filter(function(p){return gc(p)===u}):Xd,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})[ls(g)],p},{});return Object.keys(h).sort(function(p,g){return h[p]-h[g]})}function Tj(n){if(ls(n)===Ey)return[];var e=uh(n);return[_C(n),e,_C(e)]}function Oj(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var o=t.mainAxis,s=o===void 0?!0:o,i=t.altAxis,l=i===void 0?!0:i,a=t.fallbackPlacements,c=t.padding,u=t.boundary,d=t.rootBoundary,f=t.altBoundary,h=t.flipVariations,p=h===void 0?!0:h,g=t.allowedAutoPlacements,v=e.options.placement,m=ls(v),w=m===v,b=a||(w||!p?[uh(v)]:Tj(v)),y=[v].concat(b).reduce(function(fe,Ce){return fe.concat(ls(Ce)===Ey?_j(e,{placement:Ce,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):Ce)},[]),S=e.rects.reference,E=e.rects.popper,T=new Map,M=!0,O=y[0],k=0;k=0,N=le?"width":"height",R=fd(e,{placement:P,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),K=le?j?vo:Ar:j?mo:Mr;S[N]>E[N]&&(K=uh(K));var W=uh(K),U=[];if(s&&U.push(R[L]<=0),l&&U.push(R[K]<=0,R[W]<=0),U.every(function(fe){return fe})){O=P,M=!1;break}T.set(P,U)}if(M)for(var Q=p?3:1,de=function(fe){var Ce=y.find(function(Oe){var ne=T.get(Oe);if(ne)return ne.slice(0,fe).every(function(ie){return ie})});if(Ce)return O=Ce,"break"},ee=Q;ee>0;ee--){var Me=de(ee);if(Me==="break")break}e.placement!==O&&(e.modifiersData[r]._skip=!0,e.placement=O,e.reset=!0)}}var Mj={name:"flip",enabled:!0,phase:"main",fn:Oj,requiresIfExists:["offset"],data:{_skip:!1}};function OC(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 MC(n){return[Mr,vo,mo,Ar].some(function(e){return n[e]>=0})}function Aj(n){var e=n.state,t=n.name,r=e.rects.reference,o=e.rects.popper,s=e.modifiersData.preventOverflow,i=fd(e,{elementContext:"reference"}),l=fd(e,{altBoundary:!0}),a=OC(i,r),c=OC(l,o,s),u=MC(a),d=MC(c);e.modifiersData[t]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var kj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Aj};function Pj(n,e,t){var r=ls(n),o=[Ar,Mr].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,[Ar,vo].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}function Nj(n){var e=n.state,t=n.options,r=n.name,o=t.offset,s=o===void 0?[0,0]:o,i=Zp.reduce(function(u,d){return u[d]=Pj(d,e.rects,s),u},{}),l=i[e.placement],a=l.x,c=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=i}var Ij={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Nj};function Lj(n){var e=n.state,t=n.name;e.modifiersData[t]=bO({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var yO={name:"popperOffsets",enabled:!0,phase:"read",fn:Lj,data:{}};function Rj(n){return n==="x"?"y":"x"}function $j(n){var e=n.state,t=n.options,r=n.name,o=t.mainAxis,s=o===void 0?!0:o,i=t.altAxis,l=i===void 0?!1:i,a=t.boundary,c=t.rootBoundary,u=t.altBoundary,d=t.padding,f=t.tether,h=f===void 0?!0:f,p=t.tetherOffset,g=p===void 0?0:p,v=fd(e,{boundary:a,rootBoundary:c,padding:d,altBoundary:u}),m=ls(e.placement),w=gc(e.placement),b=!w,y=My(m),S=Rj(y),E=e.modifiersData.popperOffsets,T=e.rects.reference,M=e.rects.popper,O=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,k=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),P=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(E){if(s){var j,le=y==="y"?Mr:Ar,N=y==="y"?mo:vo,R=y==="y"?"height":"width",K=E[y],W=K+v[le],U=K-v[N],Q=h?-M[R]/2:0,de=w===dc?T[R]:M[R],ee=w===dc?-M[R]:-T[R],Me=e.elements.arrow,fe=h&&Me?Oy(Me):{width:0,height:0},Ce=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:fO(),Oe=Ce[le],ne=Ce[N],ie=Iu(0,T[R],fe[R]),X=b?T[R]/2-Q-ie-Oe-k.mainAxis:de-ie-Oe-k.mainAxis,me=b?-T[R]/2+Q+ie+ne+k.mainAxis:ee+ie+ne+k.mainAxis,Pe=e.elements.arrow&&Zd(e.elements.arrow),Ee=Pe?y==="y"?Pe.clientTop||0:Pe.clientLeft||0:0,$=(j=P==null?void 0:P[y])!=null?j:0,I=K+X-$-Ee,re=K+me-$,he=Iu(h?zh(W,I):W,K,h?Gl(U,re):U);E[y]=he,L[y]=he-K}if(l){var pe,Se=y==="x"?Mr:Ar,_e=y==="x"?mo:vo,D=E[S],B=S==="y"?"height":"width",J=D+v[Se],ce=D-v[_e],ke=[Mr,Ar].indexOf(m)!==-1,se=(pe=P==null?void 0:P[S])!=null?pe:0,te=ke?J:D-T[B]-M[B]-se+k.altAxis,ue=ke?D+T[B]+M[B]-se-k.altAxis:ce,qe=h&&ke?cj(te,D,ue):Iu(h?te:J,D,h?ue:ce);E[S]=qe,L[S]=qe-D}e.modifiersData[r]=L}}var Dj={name:"preventOverflow",enabled:!0,phase:"main",fn:$j,requiresIfExists:["offset"]};function Vj(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function Bj(n){return n===Wo(n)||!ao(n)?Ay(n):Vj(n)}function Fj(n){var e=n.getBoundingClientRect(),t=hc(e.width)/n.offsetWidth||1,r=hc(e.height)/n.offsetHeight||1;return t!==1||r!==1}function zj(n,e,t){t===void 0&&(t=!1);var r=ao(e),o=ao(e)&&Fj(e),s=ul(e),i=pc(n,o),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!t)&&((fs(e)!=="body"||Py(s))&&(l=Bj(e)),ao(e)?(a=pc(e,!0),a.x+=e.clientLeft,a.y+=e.clientTop):s&&(a.x=ky(s))),{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function jj(n){var e=new Map,t=new Set,r=[];n.forEach(function(s){e.set(s.name,s)});function o(s){t.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(l){if(!t.has(l)){var a=e.get(l);a&&o(a)}}),r.push(s)}return n.forEach(function(s){t.has(s.name)||o(s)}),r}function Hj(n){var e=jj(n);return oj.reduce(function(t,r){return t.concat(e.filter(function(o){return o.phase===r}))},[])}function Uj(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function Wj(n){var e=n.reduce(function(t,r){var o=t[r.name];return t[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var AC={placement:"bottom",modifiers:[],strategy:"absolute"};function kC(){for(var n=arguments.length,e=new Array(n),t=0;t{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:a})=>{const c=Yj(a);Object.assign(i.value,c)},requires:["computeStyles"]},o=z(()=>{const{onFirstUpdate:a,placement:c,strategy:u,modifiers:d}=x(t);return{onFirstUpdate:a,placement:c||"bottom",strategy:u||"absolute",modifiers:[...d||[],r,{name:"applyStyles",enabled:!1}]}}),s=No(),i=V({styles:{popper:{position:x(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{s.value&&(s.value.destroy(),s.value=void 0)};return je(o,a=>{const c=x(s);c&&c.setOptions(a)},{deep:!0}),je([n,e],([a,c])=>{l(),!(!a||!c)&&(s.value=wO(a,c,x(o)))}),_n(()=>{l()}),{state:z(()=>{var a;return{...((a=x(s))==null?void 0:a.state)||{}}}),styles:z(()=>x(i).styles),attributes:z(()=>x(i).attributes),update:()=>{var a;return(a=x(s))==null?void 0:a.update()},forceUpdate:()=>{var a;return(a=x(s))==null?void 0:a.forceUpdate()},instanceRef:z(()=>x(s))}};function Yj(n){const e=Object.keys(n.elements),t=Bh(e.map(o=>[o,n.styles[o]||{}])),r=Bh(e.map(o=>[o,n.attributes[o]]));return{styles:t,attributes:r}}const Iy=n=>{if(!n)return{onClick:hn,onMousedown:hn,onMouseup:hn};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 PC(){let n;const e=(r,o)=>{t(),n=window.setTimeout(r,o)},t=()=>window.clearTimeout(n);return jd(()=>t()),{registerTimeout:e,cancelTimeout:t}}const NC={prefix:Math.floor(Math.random()*1e4),current:0},Jj=Symbol("elIdInjection"),CO=()=>vt()?He(Jj,NC):NC,hs=n=>{const e=CO(),t=Sy();return z(()=>x(n)||`${t.value}-id-${e.prefix}-${e.current++}`)};let Na=[];const IC=n=>{const e=n;e.key===Cn.esc&&Na.forEach(t=>t(e))},Xj=n=>{ot(()=>{Na.length===0&&document.addEventListener("keydown",IC),Et&&Na.push(n)}),_n(()=>{Na=Na.filter(e=>e!==n),Na.length===0&&Et&&document.removeEventListener("keydown",IC)})};let LC;const xO=()=>{const n=Sy(),e=CO(),t=z(()=>`${n.value}-popper-container-${e.prefix}`),r=z(()=>`#${t.value}`);return{id:t,selector:r}},Zj=n=>{const e=document.createElement("div");return e.id=n,document.body.appendChild(e),e},Qj=()=>{const{id:n,selector:e}=xO();return Bd(()=>{Et&&!LC&&!document.body.querySelector(e.value)&&(LC=Zj(n.value))}),{id:n,selector:e}},eH=st({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),tH=({showAfter:n,hideAfter:e,autoClose:t,open:r,close:o})=>{const{registerTimeout:s}=PC(),{registerTimeout:i,cancelTimeout:l}=PC();return{onOpen:u=>{s(()=>{r(u);const d=x(t);Tt(d)&&d>0&&i(()=>{o(u)},d)},x(n))},onClose:u=>{l(),s(()=>{o(u)},x(e))}}},SO=Symbol("elForwardRef"),nH=n=>{zt(SO,{setForwardRef:t=>{n.value=t}})},rH=n=>({mounted(e){n(e)},updated(e){n(e)},unmounted(){n(null)}}),RC={current:0},$C=V(0),EO=2e3,DC=Symbol("elZIndexContextKey"),_O=Symbol("zIndexContextKey"),eg=n=>{const e=vt()?He(DC,RC):RC,t=n||(vt()?He(_O,void 0):void 0),r=z(()=>{const i=x(t);return Tt(i)?i:EO}),o=z(()=>r.value+$C.value),s=()=>(e.current++,$C.value=e.current,o.value);return!Et&&He(DC),{initialZIndex:r,currentZIndex:o,nextZIndex:s}};function oH(n){const e=V();function t(){if(n.value==null)return;const{selectionStart:o,selectionEnd:s,value:i}=n.value;if(o==null||s==null)return;const l=i.slice(0,Math.max(0,o)),a=i.slice(Math.max(0,s));e.value={selectionStart:o,selectionEnd:s,value:i,beforeTxt:l,afterTxt:a}}function r(){if(n.value==null||e.value==null)return;const{value:o}=n.value,{beforeTxt:s,afterTxt:i,selectionStart:l}=e.value;if(s==null||i==null||l==null)return;let a=o.length;if(o.endsWith(i))a=o.length-i.length;else if(o.startsWith(s))a=s.length;else{const c=s[l-1],u=o.indexOf(c,l-1);u!==-1&&(a=u+1)}n.value.setSelectionRange(a,a)}return[t,r]}const sH=(n,e,t)=>ch(n.subTree).filter(s=>{var i;return Pn(s)&&((i=s.type)==null?void 0:i.name)===e&&!!s.component}).map(s=>s.component.uid).map(s=>t[s]).filter(s=>!!s),iH=(n,e)=>{const t={},r=No([]);return{children:r,addChild:i=>{t[i.uid]=i,r.value=sH(n,e,t)},removeChild:i=>{delete t[i],r.value=r.value.filter(l=>l.uid!==i)}}},ni=Xp({type:String,values:wa,required:!1}),TO=Symbol("size"),lH=()=>{const n=He(TO,{});return z(()=>x(n.size)||"")};function OO(n,{afterFocus:e,beforeBlur:t,afterBlur:r}={}){const o=vt(),{emit:s}=o,i=No(),l=V(!1),a=d=>{l.value||(l.value=!0,s("focus",d),e==null||e())},c=d=>{var f;Je(t)&&t(d)||d.relatedTarget&&((f=i.value)!=null&&f.contains(d.relatedTarget))||(l.value=!1,s("blur",d),r==null||r())},u=()=>{var d;(d=n.value)==null||d.focus()};return je(i,d=>{d&&d.setAttribute("tabindex","-1")}),xn(i,"click",u),{wrapperRef:i,isFocused:l,handleFocus:a,handleBlur:c}}const MO=Symbol("emptyValuesContextKey"),aH=["",void 0,null],cH=void 0,uH=st({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:n=>Je(n)?!n():!n}}),dH=(n,e)=>{const t=vt()?He(MO,V({})):V({}),r=z(()=>n.emptyValues||t.value.emptyValues||aH),o=z(()=>Je(n.valueOnClear)?n.valueOnClear():n.valueOnClear!==void 0?n.valueOnClear:Je(t.value.valueOnClear)?t.value.valueOnClear():t.value.valueOnClear!==void 0?t.value.valueOnClear:cH),s=i=>r.value.includes(i);return r.value.includes(o.value),{emptyValues:r,valueOnClear:o,isEmptyValue:s}},fH=st({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),ri=n=>HT(fH,n),AO=Symbol(),jh=V();function tg(n,e=void 0){const t=vt()?He(AO,jh):jh;return n?z(()=>{var r,o;return(o=(r=t.value)==null?void 0:r[n])!=null?o:e}):t}function ng(n,e){const t=tg(),r=Xe(n,z(()=>{var l;return((l=t.value)==null?void 0:l.namespace)||Nu})),o=ws(z(()=>{var l;return(l=t.value)==null?void 0:l.locale})),s=eg(z(()=>{var l;return((l=t.value)==null?void 0:l.zIndex)||EO})),i=z(()=>{var l;return x(e)||((l=t.value)==null?void 0:l.size)||""});return hH(z(()=>x(t)||{})),{ns:r,locale:o,zIndex:s,size:i}}const hH=(n,e,t=!1)=>{var r;const o=!!vt(),s=o?tg():void 0,i=(r=void 0)!=null?r:o?zt:void 0;if(!i)return;const l=z(()=>{const a=x(n);return s!=null&&s.value?pH(s.value,a):a});return i(AO,l),i(sO,z(()=>l.value.locale)),i(iO,z(()=>l.value.namespace)),i(_O,z(()=>l.value.zIndex)),i(TO,{size:z(()=>l.value.size||"")}),i(MO,z(()=>({emptyValues:l.value.emptyValues,valueOnClear:l.value.valueOnClear}))),(t||!jh.value)&&(jh.value=l.value),l},pH=(n,e)=>{const t=[...new Set([...Fh(n),...Fh(e)])],r={};for(const o of t)r[o]=e[o]!==void 0?e[o]:n[o];return r},VC={};var tt=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t};const gH=st({size:{type:Ue([Number,String])},color:{type:String}}),mH=ge({name:"ElIcon",inheritAttrs:!1}),vH=ge({...mH,props:gH,setup(n){const e=n,t=Xe("icon"),r=z(()=>{const{size:o,color:s}=e;return!o&&!s?{}:{fontSize:_r(o)?void 0:po(o),"--color":s}});return(o,s)=>(A(),q("i",jr({class:x(t).b(),style:x(r)},o.$attrs),[Ae(o.$slots,"default")],16))}});var bH=tt(vH,[["__file","icon.vue"]]);const dt=Rt(bH),yH=["light","dark"],wH=st({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Fh(Yi),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:yH,default:"light"}}),CH={close:n=>n instanceof MouseEvent},xH=ge({name:"ElAlert"}),SH=ge({...xH,props:wH,emits:CH,setup(n,{emit:e}){const t=n,{Close:r}=xy,o=Ho(),s=Xe("alert"),i=V(!0),l=z(()=>Yi[t.type]),a=z(()=>[s.e("icon"),{[s.is("big")]:!!t.description||!!o.default}]),c=z(()=>({"with-description":t.description||o.default})),u=d=>{i.value=!1,e("close",d)};return(d,f)=>(A(),ve(Nr,{name:x(s).b("fade"),persisted:""},{default:_(()=>[$e(F("div",{class:Z([x(s).b(),x(s).m(d.type),x(s).is("center",d.center),x(s).is(d.effect)]),role:"alert"},[d.showIcon&&x(l)?(A(),ve(x(dt),{key:0,class:Z(x(a))},{default:_(()=>[(A(),ve(Bt(x(l))))]),_:1},8,["class"])):be("v-if",!0),F("div",{class:Z(x(s).e("content"))},[d.title||d.$slots.title?(A(),q("span",{key:0,class:Z([x(s).e("title"),x(c)])},[Ae(d.$slots,"title",{},()=>[G(oe(d.title),1)])],2)):be("v-if",!0),d.$slots.default||d.description?(A(),q("p",{key:1,class:Z(x(s).e("description"))},[Ae(d.$slots,"default",{},()=>[G(oe(d.description),1)])],2)):be("v-if",!0),d.closable?(A(),q(Re,{key:2},[d.closeText?(A(),q("div",{key:0,class:Z([x(s).e("close-btn"),x(s).is("customed")]),onClick:u},oe(d.closeText),3)):(A(),ve(x(dt),{key:1,class:Z(x(s).e("close-btn")),onClick:u},{default:_(()=>[C(x(r))]),_:1},8,["class"]))],64)):be("v-if",!0)],2)],2),[[Ye,i.value]])]),_:3},8,["name"]))}});var EH=tt(SH,[["__file","alert.vue"]]);const Ly=Rt(EH),Gc=Symbol("formContextKey"),sa=Symbol("formItemContextKey"),bo=(n,e={})=>{const t=V(void 0),r=e.prop?t:cO("size"),o=e.global?t:lH(),s=e.form?{size:void 0}:He(Gc,void 0),i=e.formItem?{size:void 0}:He(sa,void 0);return z(()=>r.value||x(n)||(i==null?void 0:i.size)||(s==null?void 0:s.size)||o.value||"")},qc=n=>{const e=cO("disabled"),t=He(Gc,void 0);return z(()=>e.value||x(n)||(t==null?void 0:t.disabled)||!1)},dl=()=>{const n=He(Gc,void 0),e=He(sa,void 0);return{form:n,formItem:e}},Qd=(n,{formItemContext:e,disableIdGeneration:t,disableIdManagement:r})=>{t||(t=V(!1)),r||(r=V(!1));const o=V();let s;const i=z(()=>{var l;return!!(!(n.label||n.ariaLabel)&&e&&e.inputIds&&((l=e.inputIds)==null?void 0:l.length)<=1)});return ot(()=>{s=je([Oo(n,"id"),t],([l,a])=>{const c=l??(a?void 0:hs().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})}),bs(()=>{s&&s(),e!=null&&e.removeInputId&&o.value&&e.removeInputId(o.value)}),{isLabeledByFormItem:i,inputId:o}},_H=st({size:{type:String,values:wa},disabled:Boolean}),TH=st({..._H,model:Object,rules:{type:Ue(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),OH={validate:(n,e,t)=>(ze(n)||ht(n))&&fo(e)&&ht(t)};function MH(){const n=V([]),e=z(()=>{if(!n.value.length)return"0";const s=Math.max(...n.value);return s?`${s}px`:""});function t(s){const i=n.value.indexOf(s);return i===-1&&e.value,i}function r(s,i){if(s&&i){const l=t(i);n.value.splice(l,1,s)}else s&&n.value.push(s)}function o(s){const i=t(s);i>-1&&n.value.splice(i,1)}return{autoLabelWidth:e,registerLabelWidth:r,deregisterLabelWidth:o}}const kf=(n,e)=>{const t=$h(e);return t.length>0?n.filter(r=>r.prop&&t.includes(r.prop)):n},AH="ElForm",kH=ge({name:AH}),PH=ge({...kH,props:TH,emits:OH,setup(n,{expose:e,emit:t}){const r=n,o=[],s=bo(),i=Xe("form"),l=z(()=>{const{labelPosition:b,inline:y}=r;return[i.b(),i.m(s.value||"default"),{[i.m(`label-${b}`)]:b,[i.m("inline")]:y}]}),a=b=>o.find(y=>y.prop===b),c=b=>{o.push(b)},u=b=>{b.prop&&o.splice(o.indexOf(b),1)},d=(b=[])=>{r.model&&kf(o,b).forEach(y=>y.resetField())},f=(b=[])=>{kf(o,b).forEach(y=>y.clearValidate())},h=z(()=>!!r.model),p=b=>{if(o.length===0)return[];const y=kf(o,b);return y.length?y:[]},g=async b=>m(void 0,b),v=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)},m=async(b=[],y)=>{const S=!Je(y);try{const E=await v(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 je(()=>r.rules,()=>{r.validateOnRuleChange&&g().catch(b=>void 0)},{deep:!0}),zt(Gc,yt({...Xs(r),emit:t,resetFields:d,clearValidate:f,validateField:m,getField:a,addField:c,removeField:u,...MH()})),e({validate:g,validateField:m,resetFields:d,clearValidate:f,scrollToField:w,fields:o}),(b,y)=>(A(),q("form",{class:Z(x(l))},[Ae(b.$slots,"default")],2))}});var NH=tt(PH,[["__file","form.vue"]]);function $l(){return $l=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 dh(n,e,t){return LH()?dh=Reflect.construct.bind():dh=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},dh.apply(null,arguments)}function RH(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function Ev(n){var e=typeof Map=="function"?new Map:void 0;return Ev=function(r){if(r===null||!RH(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,o)}function o(){return dh(r,arguments,Sv(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),hd(o,r)},Ev(n)}var $H=/%[sdj%]/g,DH=function(){};function _v(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 Br(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r=s)return l;switch(l){case"%s":return String(t[o++]);case"%d":return Number(t[o++]);case"%j":try{return JSON.stringify(t[o++])}catch{return"[Circular]"}break;default:return l}});return i}return n}function VH(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function Nn(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||VH(e)&&typeof n=="string"&&!n)}function BH(n,e,t){var r=[],o=0,s=n.length;function i(l){r.push.apply(r,l||[]),o++,o===s&&t(r)}n.forEach(function(l){e(l,i)})}function BC(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},fu={integer:function(e){return fu.number(e)&&parseInt(e,10)===e},float:function(e){return fu.number(e)&&!fu.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"&&!fu.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(HC.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(WH())},hex:function(e){return typeof e=="string"&&!!e.match(HC.hex)}},GH=function(e,t,r,o,s){if(e.required&&t===void 0){kO(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?fu[l](t)||o.push(Br(s.messages.types[l],e.fullField,e.type)):l&&typeof t!==e.type&&o.push(Br(s.messages.types[l],e.fullField,e.type))},qH=function(e,t,r,o,s){var i=typeof e.len=="number",l=typeof e.min=="number",a=typeof e.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=t,d=null,f=typeof t=="number",h=typeof t=="string",p=Array.isArray(t);if(f?d="number":h?d="string":p&&(d="array"),!d)return!1;p&&(u=t.length),h&&(u=t.replace(c,"_").length),i?u!==e.len&&o.push(Br(s.messages[d].len,e.fullField,e.len)):l&&!a&&ue.max?o.push(Br(s.messages[d].max,e.fullField,e.max)):l&&a&&(ue.max)&&o.push(Br(s.messages[d].range,e.fullField,e.min,e.max))},Sa="enum",KH=function(e,t,r,o,s){e[Sa]=Array.isArray(e[Sa])?e[Sa]:[],e[Sa].indexOf(t)===-1&&o.push(Br(s.messages[Sa],e.fullField,e[Sa].join(", ")))},YH=function(e,t,r,o,s){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||o.push(Br(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(Br(s.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Pt={required:kO,whitespace:UH,type:GH,range:qH,enum:KH,pattern:YH},JH=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t,"string")&&!e.required)return r();Pt.required(e,t,o,i,s,"string"),Nn(t,"string")||(Pt.type(e,t,o,i,s),Pt.range(e,t,o,i,s),Pt.pattern(e,t,o,i,s),e.whitespace===!0&&Pt.whitespace(e,t,o,i,s))}r(i)},XH=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t)&&!e.required)return r();Pt.required(e,t,o,i,s),t!==void 0&&Pt.type(e,t,o,i,s)}r(i)},ZH=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(t===""&&(t=void 0),Nn(t)&&!e.required)return r();Pt.required(e,t,o,i,s),t!==void 0&&(Pt.type(e,t,o,i,s),Pt.range(e,t,o,i,s))}r(i)},QH=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t)&&!e.required)return r();Pt.required(e,t,o,i,s),t!==void 0&&Pt.type(e,t,o,i,s)}r(i)},e7=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t)&&!e.required)return r();Pt.required(e,t,o,i,s),Nn(t)||Pt.type(e,t,o,i,s)}r(i)},t7=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t)&&!e.required)return r();Pt.required(e,t,o,i,s),t!==void 0&&(Pt.type(e,t,o,i,s),Pt.range(e,t,o,i,s))}r(i)},n7=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t)&&!e.required)return r();Pt.required(e,t,o,i,s),t!==void 0&&(Pt.type(e,t,o,i,s),Pt.range(e,t,o,i,s))}r(i)},r7=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(t==null&&!e.required)return r();Pt.required(e,t,o,i,s,"array"),t!=null&&(Pt.type(e,t,o,i,s),Pt.range(e,t,o,i,s))}r(i)},o7=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t)&&!e.required)return r();Pt.required(e,t,o,i,s),t!==void 0&&Pt.type(e,t,o,i,s)}r(i)},s7="enum",i7=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t)&&!e.required)return r();Pt.required(e,t,o,i,s),t!==void 0&&Pt[s7](e,t,o,i,s)}r(i)},l7=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t,"string")&&!e.required)return r();Pt.required(e,t,o,i,s),Nn(t,"string")||Pt.pattern(e,t,o,i,s)}r(i)},a7=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t,"date")&&!e.required)return r();if(Pt.required(e,t,o,i,s),!Nn(t,"date")){var a;t instanceof Date?a=t:a=new Date(t),Pt.type(e,a,o,i,s),a&&Pt.range(e,a.getTime(),o,i,s)}}r(i)},c7=function(e,t,r,o,s){var i=[],l=Array.isArray(t)?"array":typeof t;Pt.required(e,t,o,i,s,l),r(i)},tm=function(e,t,r,o,s){var i=e.type,l=[],a=e.required||!e.required&&o.hasOwnProperty(e.field);if(a){if(Nn(t,i)&&!e.required)return r();Pt.required(e,t,o,l,s,i),Nn(t,i)||Pt.type(e,t,o,l,s)}r(l)},u7=function(e,t,r,o,s){var i=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(Nn(t)&&!e.required)return r();Pt.required(e,t,o,i,s)}r(i)},Ru={string:JH,method:XH,number:ZH,boolean:QH,regexp:e7,integer:t7,float:n7,array:r7,object:o7,enum:i7,pattern:l7,date:a7,url:tm,hex:tm,email:tm,required:c7,any:u7};function Tv(){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 Ov=Tv(),ef=function(){function n(t){this.rules=null,this._messages=Ov,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=jC(Tv(),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 v=[],m={};function w(y){if(Array.isArray(y)){var S;v=(S=v).concat.apply(S,y)}else v.push(y)}for(var b=0;b");const o=Xe("form"),s=V(),i=V(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")=>{it(()=>{e.default&&n.isAutoWidth&&(u==="update"?i.value=l():u==="remove"&&(t==null||t.deregisterLabelWidth(i.value)))})},c=()=>a("update");return ot(()=>{c()}),_n(()=>{a("remove")}),ga(()=>c()),je(i,(u,d)=>{n.updateAll&&(t==null||t.registerLabelWidth(u,d))}),mr(z(()=>{var u,d;return(d=(u=s.value)==null?void 0:u.firstElementChild)!=null?d:null}),c),()=>{var u,d;if(!e)return null;const{isAutoWidth:f}=n;if(f){const h=t==null?void 0:t.autoLabelWidth,p=r==null?void 0:r.hasLabel,g={};if(p&&h&&h!=="auto"){const v=Math.max(0,Number.parseInt(h,10)-i.value),w=(r.labelPosition||t.labelPosition)==="left"?"marginRight":"marginLeft";v&&(g[w]=`${v}px`)}return C("div",{ref:s,class:[o.be("item","label-wrap")],style:g},[(u=e.default)==null?void 0:u.call(e)])}else return C(Re,{ref:s},[(d=e.default)==null?void 0:d.call(e)])}}});const p7=["role","aria-labelledby"],g7=ge({name:"ElFormItem"}),m7=ge({...g7,props:f7,setup(n,{expose:e}){const t=n,r=Ho(),o=He(Gc,void 0),s=He(sa,void 0),i=bo(void 0,{formItem:!1}),l=Xe("form-item"),a=hs().value,c=V([]),u=V(""),d=pD(u,100),f=V(""),h=V();let p,g=!1;const v=z(()=>t.labelPosition||(o==null?void 0:o.labelPosition)),m=z(()=>{if(v.value==="top")return{};const ie=po(t.labelWidth||(o==null?void 0:o.labelWidth)||"");return ie?{width:ie}:{}}),w=z(()=>{if(v.value==="top"||o!=null&&o.inline)return{};if(!t.label&&!t.labelWidth&&k)return{};const ie=po(t.labelWidth||(o==null?void 0:o.labelWidth)||"");return!t.label&&!r.label?{marginLeft:ie}:{}}),b=z(()=>[l.b(),l.m(i.value),l.is("error",u.value==="error"),l.is("validating",u.value==="validating"),l.is("success",u.value==="success"),l.is("required",N.value||t.required),l.is("no-asterisk",o==null?void 0:o.hideRequiredAsterisk),(o==null?void 0:o.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[l.m("feedback")]:o==null?void 0:o.statusIcon,[l.m(`label-${v.value}`)]:v.value}]),y=z(()=>fo(t.inlineMessage)?t.inlineMessage:(o==null?void 0:o.inlineMessage)||!1),S=z(()=>[l.e("error"),{[l.em("error","inline")]:y.value}]),E=z(()=>t.prop?ht(t.prop)?t.prop:t.prop.join("."):""),T=z(()=>!!(t.label||r.label)),M=z(()=>t.for||(c.value.length===1?c.value[0]:void 0)),O=z(()=>!M.value&&T.value),k=!!s,P=z(()=>{const ie=o==null?void 0:o.model;if(!(!ie||!t.prop))return lh(ie,t.prop).value}),L=z(()=>{const{required:ie}=t,X=[];t.rules&&X.push(...$h(t.rules));const me=o==null?void 0:o.rules;if(me&&t.prop){const Pe=lh(me,t.prop).value;Pe&&X.push(...$h(Pe))}if(ie!==void 0){const Pe=X.map((Ee,$)=>[Ee,$]).filter(([Ee])=>Object.keys(Ee).includes("required"));if(Pe.length>0)for(const[Ee,$]of Pe)Ee.required!==ie&&(X[$]={...Ee,required:ie});else X.push({required:ie})}return X}),j=z(()=>L.value.length>0),le=ie=>L.value.filter(me=>!me.trigger||!ie?!0:Array.isArray(me.trigger)?me.trigger.includes(ie):me.trigger===ie).map(({trigger:me,...Pe})=>Pe),N=z(()=>L.value.some(ie=>ie.required)),R=z(()=>{var ie;return d.value==="error"&&t.showMessage&&((ie=o==null?void 0:o.showMessage)!=null?ie:!0)}),K=z(()=>`${t.label||""}${(o==null?void 0:o.labelSuffix)||""}`),W=ie=>{u.value=ie},U=ie=>{var X,me;const{errors:Pe,fields:Ee}=ie;W("error"),f.value=Pe?(me=(X=Pe==null?void 0:Pe[0])==null?void 0:X.message)!=null?me:`${t.prop} is required`:"",o==null||o.emit("validate",t.prop,!1,f.value)},Q=()=>{W("success"),o==null||o.emit("validate",t.prop,!0,"")},de=async ie=>{const X=E.value;return new ef({[X]:ie}).validate({[X]:P.value},{firstFields:!0}).then(()=>(Q(),!0)).catch(Pe=>(U(Pe),Promise.reject(Pe)))},ee=async(ie,X)=>{if(g||!t.prop)return!1;const me=Je(X);if(!j.value)return X==null||X(!1),!1;const Pe=le(ie);return Pe.length===0?(X==null||X(!0),!0):(W("validating"),de(Pe).then(()=>(X==null||X(!0),!0)).catch(Ee=>{const{fields:$}=Ee;return X==null||X(!1,$),me?!1:Promise.reject($)}))},Me=()=>{W(""),f.value="",g=!1},fe=async()=>{const ie=o==null?void 0:o.model;if(!ie||!t.prop)return;const X=lh(ie,t.prop);g=!0,X.value=ad(p),await it(),Me(),g=!1},Ce=ie=>{c.value.includes(ie)||c.value.push(ie)},Oe=ie=>{c.value=c.value.filter(X=>X!==ie)};je(()=>t.error,ie=>{f.value=ie||"",W(ie?"error":"")},{immediate:!0}),je(()=>t.validateStatus,ie=>W(ie||""));const ne=yt({...Xs(t),$el:h,size:i,validateState:u,labelId:a,inputIds:c,isGroup:O,hasLabel:T,fieldValue:P,addInputId:Ce,removeInputId:Oe,resetField:fe,clearValidate:Me,validate:ee});return zt(sa,ne),ot(()=>{t.prop&&(o==null||o.addField(ne),p=ad(P.value))}),_n(()=>{o==null||o.removeField(ne)}),e({size:i,validateMessage:f,validateState:u,validate:ee,clearValidate:Me,resetField:fe}),(ie,X)=>{var me;return A(),q("div",{ref_key:"formItemRef",ref:h,class:Z(x(b)),role:x(O)?"group":void 0,"aria-labelledby":x(O)?x(a):void 0},[C(x(h7),{"is-auto-width":x(m).width==="auto","update-all":((me=x(o))==null?void 0:me.labelWidth)==="auto"},{default:_(()=>[x(T)?(A(),ve(Bt(x(M)?"label":"div"),{key:0,id:x(a),for:x(M),class:Z(x(l).e("label")),style:wt(x(m))},{default:_(()=>[Ae(ie.$slots,"label",{label:x(K)},()=>[G(oe(x(K)),1)])]),_:3},8,["id","for","class","style"])):be("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),F("div",{class:Z(x(l).e("content")),style:wt(x(w))},[Ae(ie.$slots,"default"),C(PL,{name:`${x(l).namespace.value}-zoom-in-top`},{default:_(()=>[x(R)?Ae(ie.$slots,"error",{key:0,error:f.value},()=>[F("div",{class:Z(x(S))},oe(f.value),3)]):be("v-if",!0)]),_:3},8,["name"])],6)],10,p7)}}});var PO=tt(m7,[["__file","form-item.vue"]]);const tr=Rt(NH,{FormItem:PO}),nr=Ir(PO);let xo;const v7=` + height:0 !important; + visibility:hidden !important; + ${ID()?"":"overflow:hidden !important;"} + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; +`,b7=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function y7(n){const e=window.getComputedStyle(n),t=e.getPropertyValue("box-sizing"),r=Number.parseFloat(e.getPropertyValue("padding-bottom"))+Number.parseFloat(e.getPropertyValue("padding-top")),o=Number.parseFloat(e.getPropertyValue("border-bottom-width"))+Number.parseFloat(e.getPropertyValue("border-top-width"));return{contextStyle:b7.map(i=>`${i}:${e.getPropertyValue(i)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:t}}function WC(n,e=1,t){var r;xo||(xo=document.createElement("textarea"),document.body.appendChild(xo));const{paddingSize:o,borderSize:s,boxSizing:i,contextStyle:l}=y7(n);xo.setAttribute("style",`${l};${v7}`),xo.value=n.value||n.placeholder||"";let a=xo.scrollHeight;const c={};i==="border-box"?a=a+s:i==="content-box"&&(a=a-o),xo.value="";const u=xo.scrollHeight-o;if(Tt(e)){let d=u*e;i==="border-box"&&(d=d+o+s),a=Math.max(d,a),c.minHeight=`${d}px`}if(Tt(t)){let d=u*t;i==="border-box"&&(d=d+o+s),a=Math.min(d,a)}return c.height=`${a}px`,(r=xo.parentNode)==null||r.removeChild(xo),xo=void 0,c}const w7=st({id:{type:String,default:void 0},size:ni,disabled:Boolean,modelValue:{type:Ue([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:Ue([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:go},prefixIcon:{type:go},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:Ue([Object,Array,String]),default:()=>_o({})},autofocus:{type:Boolean,default:!1},...ri(["ariaLabel"])}),C7={[Ht]:n=>ht(n),input:n=>ht(n),change:n=>ht(n),focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent,clear:()=>!0,mouseleave:n=>n instanceof MouseEvent,mouseenter:n=>n instanceof MouseEvent,keydown:n=>n instanceof Event,compositionstart:n=>n instanceof CompositionEvent,compositionupdate:n=>n instanceof CompositionEvent,compositionend:n=>n instanceof CompositionEvent},x7=["role"],S7=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],E7=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],_7=ge({name:"ElInput",inheritAttrs:!1}),T7=ge({..._7,props:w7,emits:C7,setup(n,{expose:e,emit:t}){const r=n,o=u2(),s=Ho(),i=z(()=>{const se={};return r.containerRole==="combobox"&&(se["aria-haspopup"]=o["aria-haspopup"],se["aria-owns"]=o["aria-owns"],se["aria-expanded"]=o["aria-expanded"]),se}),l=z(()=>[r.type==="textarea"?v.b():g.b(),g.m(h.value),g.is("disabled",p.value),g.is("exceed",fe.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")]:Q.value&&de.value,[g.b("hidden")]:r.type==="hidden"},o.class]),a=z(()=>[g.e("wrapper"),g.is("focus",k.value)]),c=rO({excludeKeys:z(()=>Object.keys(i.value))}),{form:u,formItem:d}=dl(),{inputId:f}=Qd(r,{formItemContext:d}),h=bo(),p=qc(),g=Xe("input"),v=Xe("textarea"),m=No(),w=No(),b=V(!1),y=V(!1),S=V(!1),E=V(),T=No(r.inputStyle),M=z(()=>m.value||w.value),{wrapperRef:O,isFocused:k,handleFocus:P,handleBlur:L}=OO(M,{afterBlur(){var se;r.validateEvent&&((se=d==null?void 0:d.validate)==null||se.call(d,"blur").catch(te=>void 0))}}),j=z(()=>{var se;return(se=u==null?void 0:u.statusIcon)!=null?se:!1}),le=z(()=>(d==null?void 0:d.validateState)||""),N=z(()=>le.value&&eO[le.value]),R=z(()=>S.value?Tz:fz),K=z(()=>[o.style]),W=z(()=>[r.inputStyle,T.value,{resize:r.resize}]),U=z(()=>is(r.modelValue)?"":String(r.modelValue)),Q=z(()=>r.clearable&&!p.value&&!r.readonly&&!!U.value&&(k.value||b.value)),de=z(()=>r.showPassword&&!p.value&&!r.readonly&&!!U.value&&(!!U.value||k.value)),ee=z(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!p.value&&!r.readonly&&!r.showPassword),Me=z(()=>U.value.length),fe=z(()=>!!ee.value&&Me.value>Number(r.maxlength)),Ce=z(()=>!!s.suffix||!!r.suffixIcon||Q.value||r.showPassword||ee.value||!!le.value&&j.value),[Oe,ne]=oH(m);mr(w,se=>{if(me(),!ee.value||r.resize!=="both")return;const te=se[0],{width:ue}=te.contentRect;E.value={right:`calc(100% - ${ue+15+6}px)`}});const ie=()=>{const{type:se,autosize:te}=r;if(!(!Et||se!=="textarea"||!w.value))if(te){const ue=gt(te)?te.minRows:void 0,qe=gt(te)?te.maxRows:void 0,ye=WC(w.value,ue,qe);T.value={overflowY:"hidden",...ye},it(()=>{w.value.offsetHeight,T.value=ye})}else T.value={minHeight:WC(w.value).minHeight}},me=(se=>{let te=!1;return()=>{var ue;if(te||!r.autosize)return;((ue=w.value)==null?void 0:ue.offsetParent)===null||(se(),te=!0)}})(ie),Pe=()=>{const se=M.value,te=r.formatter?r.formatter(U.value):U.value;!se||se.value===te||(se.value=te)},Ee=async se=>{Oe();let{value:te}=se.target;if(r.formatter&&(te=r.parser?r.parser(te):te),!y.value){if(te===U.value){Pe();return}t(Ht,te),t("input",te),await it(),Pe(),ne()}},$=se=>{t("change",se.target.value)},I=se=>{t("compositionstart",se),y.value=!0},re=se=>{var te;t("compositionupdate",se);const ue=(te=se.target)==null?void 0:te.value,qe=ue[ue.length-1]||"";y.value=!nO(qe)},he=se=>{t("compositionend",se),y.value&&(y.value=!1,Ee(se))},pe=()=>{S.value=!S.value,Se()},Se=async()=>{var se;await it(),(se=M.value)==null||se.focus()},_e=()=>{var se;return(se=M.value)==null?void 0:se.blur()},D=se=>{b.value=!1,t("mouseleave",se)},B=se=>{b.value=!0,t("mouseenter",se)},J=se=>{t("keydown",se)},ce=()=>{var se;(se=M.value)==null||se.select()},ke=()=>{t(Ht,""),t("change",""),t("clear"),t("input","")};return je(()=>r.modelValue,()=>{var se;it(()=>ie()),r.validateEvent&&((se=d==null?void 0:d.validate)==null||se.call(d,"change").catch(te=>void 0))}),je(U,()=>Pe()),je(()=>r.type,async()=>{await it(),Pe(),ie()}),ot(()=>{!r.formatter&&r.parser,Pe(),it(ie)}),Tr({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-input",ref:"https://element-plus.org/en-US/component/input.html"},z(()=>!!r.label)),e({input:m,textarea:w,ref:M,textareaStyle:W,autosize:Oo(r,"autosize"),focus:Se,blur:_e,select:ce,clear:ke,resizeTextarea:ie}),(se,te)=>(A(),q("div",jr(x(i),{class:[x(l),{[x(g).bm("group","append")]:se.$slots.append,[x(g).bm("group","prepend")]:se.$slots.prepend}],style:x(K),role:se.containerRole,onMouseenter:B,onMouseleave:D}),[be(" input "),se.type!=="textarea"?(A(),q(Re,{key:0},[be(" prepend slot "),se.$slots.prepend?(A(),q("div",{key:0,class:Z(x(g).be("group","prepend"))},[Ae(se.$slots,"prepend")],2)):be("v-if",!0),F("div",{ref_key:"wrapperRef",ref:O,class:Z(x(a))},[be(" prefix slot "),se.$slots.prefix||se.prefixIcon?(A(),q("span",{key:0,class:Z(x(g).e("prefix"))},[F("span",{class:Z(x(g).e("prefix-inner"))},[Ae(se.$slots,"prefix"),se.prefixIcon?(A(),ve(x(dt),{key:0,class:Z(x(g).e("icon"))},{default:_(()=>[(A(),ve(Bt(se.prefixIcon)))]),_:1},8,["class"])):be("v-if",!0)],2)],2)):be("v-if",!0),F("input",jr({id:x(f),ref_key:"input",ref:m,class:x(g).e("inner")},x(c),{minlength:se.minlength,maxlength:se.maxlength,type:se.showPassword?S.value?"text":"password":se.type,disabled:x(p),readonly:se.readonly,autocomplete:se.autocomplete,tabindex:se.tabindex,"aria-label":se.label||se.ariaLabel,placeholder:se.placeholder,style:se.inputStyle,form:se.form,autofocus:se.autofocus,onCompositionstart:I,onCompositionupdate:re,onCompositionend:he,onInput:Ee,onFocus:te[0]||(te[0]=(...ue)=>x(P)&&x(P)(...ue)),onBlur:te[1]||(te[1]=(...ue)=>x(L)&&x(L)(...ue)),onChange:$,onKeydown:J}),null,16,S7),be(" suffix slot "),x(Ce)?(A(),q("span",{key:1,class:Z(x(g).e("suffix"))},[F("span",{class:Z(x(g).e("suffix-inner"))},[!x(Q)||!x(de)||!x(ee)?(A(),q(Re,{key:0},[Ae(se.$slots,"suffix"),se.suffixIcon?(A(),ve(x(dt),{key:0,class:Z(x(g).e("icon"))},{default:_(()=>[(A(),ve(Bt(se.suffixIcon)))]),_:1},8,["class"])):be("v-if",!0)],64)):be("v-if",!0),x(Q)?(A(),ve(x(dt),{key:1,class:Z([x(g).e("icon"),x(g).e("clear")]),onMousedown:It(x(hn),["prevent"]),onClick:ke},{default:_(()=>[C(x(yy))]),_:1},8,["class","onMousedown"])):be("v-if",!0),x(de)?(A(),ve(x(dt),{key:2,class:Z([x(g).e("icon"),x(g).e("password")]),onClick:pe},{default:_(()=>[(A(),ve(Bt(x(R))))]),_:1},8,["class"])):be("v-if",!0),x(ee)?(A(),q("span",{key:3,class:Z(x(g).e("count"))},[F("span",{class:Z(x(g).e("count-inner"))},oe(x(Me))+" / "+oe(se.maxlength),3)],2)):be("v-if",!0),x(le)&&x(N)&&x(j)?(A(),ve(x(dt),{key:4,class:Z([x(g).e("icon"),x(g).e("validateIcon"),x(g).is("loading",x(le)==="validating")])},{default:_(()=>[(A(),ve(Bt(x(N))))]),_:1},8,["class"])):be("v-if",!0)],2)],2)):be("v-if",!0)],2),be(" append slot "),se.$slots.append?(A(),q("div",{key:1,class:Z(x(g).be("group","append"))},[Ae(se.$slots,"append")],2)):be("v-if",!0)],64)):(A(),q(Re,{key:1},[be(" textarea "),F("textarea",jr({id:x(f),ref_key:"textarea",ref:w,class:[x(v).e("inner"),x(g).is("focus",x(k))]},x(c),{minlength:se.minlength,maxlength:se.maxlength,tabindex:se.tabindex,disabled:x(p),readonly:se.readonly,autocomplete:se.autocomplete,style:x(W),"aria-label":se.label||se.ariaLabel,placeholder:se.placeholder,form:se.form,autofocus:se.autofocus,onCompositionstart:I,onCompositionupdate:re,onCompositionend:he,onInput:Ee,onFocus:te[2]||(te[2]=(...ue)=>x(P)&&x(P)(...ue)),onBlur:te[3]||(te[3]=(...ue)=>x(L)&&x(L)(...ue)),onChange:$,onKeydown:J}),null,16,E7),x(ee)?(A(),q("span",{key:0,style:wt(E.value),class:Z(x(g).e("count"))},oe(x(Me))+" / "+oe(se.maxlength),7)):be("v-if",!0)],64))],16,x7))}});var O7=tt(T7,[["__file","input.vue"]]);const yn=Rt(O7),Ea=4,M7={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},A7=({move:n,size:e,bar:t})=>({[t.size]:e,transform:`translate${t.axis}(${n}%)`}),Ry=Symbol("scrollbarContextKey"),k7=st({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),P7="Thumb",N7=ge({__name:"thumb",props:k7,setup(n){const e=n,t=He(Ry),r=Xe("scrollbar");t||cl(P7,"can not inject scrollbar context");const o=V(),s=V(),i=V({}),l=V(!1);let a=!1,c=!1,u=Et?document.onselectstart:null;const d=z(()=>M7[e.vertical?"vertical":"horizontal"]),f=z(()=>A7({size:e.size,move:e.move,bar:d.value})),h=z(()=>o.value[d.value.offset]**2/t.wrapElement[d.value.scrollSize]/e.ratio/s.value[d.value.offset]),p=E=>{var T;if(E.stopPropagation(),E.ctrlKey||[1,2].includes(E.button))return;(T=window.getSelection())==null||T.removeAllRanges(),v(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},v=E=>{E.stopImmediatePropagation(),a=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",w),u=document.onselectstart,document.onselectstart=()=>!1},m=E=>{if(!o.value||!s.value||a===!1)return;const T=i.value[d.value.axis];if(!T)return;const M=(o.value.getBoundingClientRect()[d.value.direction]-E[d.value.client])*-1,O=s.value[d.value.offset]-T,k=(M-O)*100*h.value/o.value[d.value.offset];t.wrapElement[d.value.scroll]=k*t.wrapElement[d.value.scrollSize]/100},w=()=>{a=!1,i.value[d.value.axis]=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",w),S(),c&&(l.value=!1)},b=()=>{c=!1,l.value=!!e.size},y=()=>{c=!0,l.value=a};_n(()=>{S(),document.removeEventListener("mouseup",w)});const S=()=>{document.onselectstart!==u&&(document.onselectstart=u)};return xn(Oo(t,"scrollbarElement"),"mousemove",b),xn(Oo(t,"scrollbarElement"),"mouseleave",y),(E,T)=>(A(),ve(Nr,{name:x(r).b("fade"),persisted:""},{default:_(()=>[$e(F("div",{ref_key:"instance",ref:o,class:Z([x(r).e("bar"),x(r).is(x(d).key)]),onMousedown:g},[F("div",{ref_key:"thumb",ref:s,class:Z(x(r).e("thumb")),style:wt(x(f)),onMousedown:p},null,38)],34),[[Ye,E.always||l.value]])]),_:1},8,["name"]))}});var GC=tt(N7,[["__file","thumb.vue"]]);const I7=st({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),L7=ge({__name:"bar",props:I7,setup(n,{expose:e}){const t=n,r=He(Ry),o=V(0),s=V(0),i=V(""),l=V(""),a=V(1),c=V(1);return e({handleScroll:f=>{if(f){const h=f.offsetHeight-Ea,p=f.offsetWidth-Ea;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-Ea,p=f.offsetWidth-Ea,g=h**2/f.scrollHeight,v=p**2/f.scrollWidth,m=Math.max(g,t.minSize),w=Math.max(v,t.minSize);a.value=g/(h-g)/(m/(h-m)),c.value=v/(p-v)/(w/(p-w)),l.value=m+Ea(A(),q(Re,null,[C(GC,{move:o.value,ratio:c.value,size:i.value,always:f.always},null,8,["move","ratio","size","always"]),C(GC,{move:s.value,ratio:a.value,size:l.value,vertical:"",always:f.always},null,8,["move","ratio","size","always"])],64))}});var R7=tt(L7,[["__file","bar.vue"]]);const $7=st({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Ue([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,...ri(["ariaLabel","ariaOrientation"])}),D7={scroll:({scrollTop:n,scrollLeft:e})=>[n,e].every(Tt)},V7="ElScrollbar",B7=ge({name:V7}),F7=ge({...B7,props:$7,emits:D7,setup(n,{expose:e,emit:t}){const r=n,o=Xe("scrollbar");let s,i;const l=V(),a=V(),c=V(),u=V(),d=z(()=>{const b={};return r.height&&(b.height=po(r.height)),r.maxHeight&&(b.maxHeight=po(r.maxHeight)),[r.wrapStyle,b]}),f=z(()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}]),h=z(()=>[o.e("view"),r.viewClass]),p=()=>{var b;a.value&&((b=u.value)==null||b.handleScroll(a.value),t("scroll",{scrollTop:a.value.scrollTop,scrollLeft:a.value.scrollLeft}))};function g(b,y){gt(b)?a.value.scrollTo(b):Tt(b)&&Tt(y)&&a.value.scrollTo(b,y)}const v=b=>{Tt(b)&&(a.value.scrollTop=b)},m=b=>{Tt(b)&&(a.value.scrollLeft=b)},w=()=>{var b;(b=u.value)==null||b.update()};return je(()=>r.noresize,b=>{b?(s==null||s(),i==null||i()):({stop:s}=mr(c,w),i=xn("resize",w))},{immediate:!0}),je(()=>[r.maxHeight,r.height],()=>{r.native||it(()=>{var b;w(),a.value&&((b=u.value)==null||b.handleScroll(a.value))})}),zt(Ry,yt({scrollbarElement:l,wrapElement:a})),ot(()=>{r.native||it(()=>{w()})}),ga(()=>w()),e({wrapRef:a,update:w,scrollTo:g,setScrollTop:v,setScrollLeft:m,handleScroll:p}),(b,y)=>(A(),q("div",{ref_key:"scrollbarRef",ref:l,class:Z(x(o).b())},[F("div",{ref_key:"wrapRef",ref:a,class:Z(x(f)),style:wt(x(d)),onScroll:p},[(A(),ve(Bt(b.tag),{id:b.id,ref_key:"resizeRef",ref:c,class:Z(x(h)),style:wt(b.viewStyle),role:b.role,"aria-label":b.ariaLabel,"aria-orientation":b.ariaOrientation},{default:_(()=>[Ae(b.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),b.native?be("v-if",!0):(A(),ve(R7,{key:0,ref_key:"barRef",ref:u,always:b.always,"min-size":b.minSize},null,8,["always","min-size"]))],2))}});var z7=tt(F7,[["__file","scrollbar.vue"]]);const rg=Rt(z7),$y=Symbol("popper"),NO=Symbol("popperContent"),j7=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],IO=st({role:{type:String,values:j7,default:"tooltip"}}),H7=ge({name:"ElPopper",inheritAttrs:!1}),U7=ge({...H7,props:IO,setup(n,{expose:e}){const t=n,r=V(),o=V(),s=V(),i=V(),l=z(()=>t.role),a={triggerRef:r,popperInstanceRef:o,contentRef:s,referenceRef:i,role:l};return e(a),zt($y,a),(c,u)=>Ae(c.$slots,"default")}});var W7=tt(U7,[["__file","popper.vue"]]);const LO=st({arrowOffset:{type:Number,default:5}}),G7=ge({name:"ElPopperArrow",inheritAttrs:!1}),q7=ge({...G7,props:LO,setup(n,{expose:e}){const t=n,r=Xe("popper"),{arrowOffset:o,arrowRef:s,arrowStyle:i}=He(NO,void 0);return je(()=>t.arrowOffset,l=>{o.value=l}),_n(()=>{s.value=void 0}),e({arrowRef:s}),(l,a)=>(A(),q("span",{ref_key:"arrowRef",ref:s,class:Z(x(r).e("arrow")),style:wt(x(i)),"data-popper-arrow":""},null,6))}});var K7=tt(q7,[["__file","arrow.vue"]]);const Y7="ElOnlyChild",J7=ge({name:Y7,setup(n,{slots:e,attrs:t}){var r;const o=He(SO),s=rH((r=o==null?void 0:o.setForwardRef)!=null?r:hn);return()=>{var i;const l=(i=e.default)==null?void 0:i.call(e,t);if(!l||l.length>1)return null;const a=RO(l);return a?$e(Gs(a,t),[[s]]):null}}});function RO(n){if(!n)return null;const e=n;for(const t of e){if(gt(t))switch(t.type){case Yn:continue;case ma:case"svg":return qC(t);case Re:return RO(t.children);default:return t}return qC(t)}return null}function qC(n){const e=Xe("only-child");return C("span",{class:e.e("content")},[n])}const $O=st({virtualRef:{type:Ue(Object)},virtualTriggering:Boolean,onMouseenter:{type:Ue(Function)},onMouseleave:{type:Ue(Function)},onClick:{type:Ue(Function)},onKeydown:{type:Ue(Function)},onFocus:{type:Ue(Function)},onBlur:{type:Ue(Function)},onContextmenu:{type:Ue(Function)},id:String,open:Boolean}),X7=ge({name:"ElPopperTrigger",inheritAttrs:!1}),Z7=ge({...X7,props:$O,setup(n,{expose:e}){const t=n,{role:r,triggerRef:o}=He($y,void 0);nH(o);const s=z(()=>l.value?t.id:void 0),i=z(()=>{if(r&&r.value==="tooltip")return t.open&&t.id?t.id:void 0}),l=z(()=>{if(r&&r.value!=="tooltip")return r.value}),a=z(()=>l.value?`${t.open}`:void 0);let c;return ot(()=>{je(()=>t.virtualRef,u=>{u&&(o.value=Bs(u))},{immediate:!0}),je(o,(u,d)=>{c==null||c(),c=void 0,ho(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=je([s,i,l,a],f=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,p)=>{is(f[p])?u.removeAttribute(h):u.setAttribute(h,f[p])})},{immediate:!0})),ho(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(f=>d.removeAttribute(f))},{immediate:!0})}),_n(()=>{c==null||c(),c=void 0}),e({triggerRef:o}),(u,d)=>u.virtualTriggering?be("v-if",!0):(A(),ve(x(J7),jr({key:0},u.$attrs,{"aria-controls":x(s),"aria-describedby":x(i),"aria-expanded":x(a),"aria-haspopup":x(l)}),{default:_(()=>[Ae(u.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Q7=tt(Z7,[["__file","trigger.vue"]]);const nm="focus-trap.focus-after-trapped",rm="focus-trap.focus-after-released",e9="focus-trap.focusout-prevented",KC={cancelable:!0,bubbles:!1},t9={cancelable:!0,bubbles:!1},YC="focusAfterTrapped",JC="focusAfterReleased",DO=Symbol("elFocusTrap"),Dy=V(),og=V(0),Vy=V(0);let Nf=0;const VO=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},XC=(n,e)=>{for(const t of n)if(!n9(t,e))return t},n9=(n,e)=>{if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(e&&n===e)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1},r9=n=>{const e=VO(n),t=XC(e,n),r=XC(e.reverse(),n);return[t,r]},o9=n=>n instanceof HTMLInputElement&&"select"in n,mi=(n,e)=>{if(n&&n.focus){const t=document.activeElement;n.focus({preventScroll:!0}),Vy.value=window.performance.now(),n!==t&&o9(n)&&e&&n.select()}};function ZC(n,e){const t=[...n],r=n.indexOf(e);return r!==-1&&t.splice(r,1),t}const s9=()=>{let n=[];return{push:r=>{const o=n[0];o&&r!==o&&o.pause(),n=ZC(n,r),n.unshift(r)},remove:r=>{var o,s;n=ZC(n,r),(s=(o=n[0])==null?void 0:o.resume)==null||s.call(o)}}},i9=(n,e=!1)=>{const t=document.activeElement;for(const r of n)if(mi(r,e),document.activeElement!==t)return},QC=s9(),l9=()=>og.value>Vy.value,If=()=>{Dy.value="pointer",og.value=window.performance.now()},ex=()=>{Dy.value="keyboard",og.value=window.performance.now()},a9=()=>(ot(()=>{Nf===0&&(document.addEventListener("mousedown",If),document.addEventListener("touchstart",If),document.addEventListener("keydown",ex)),Nf++}),_n(()=>{Nf--,Nf<=0&&(document.removeEventListener("mousedown",If),document.removeEventListener("touchstart",If),document.removeEventListener("keydown",ex))}),{focusReason:Dy,lastUserFocusTimestamp:og,lastAutomatedFocusTimestamp:Vy}),Lf=n=>new CustomEvent(e9,{...t9,detail:n}),c9=ge({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[YC,JC,"focusin","focusout","focusout-prevented","release-requested"],setup(n,{emit:e}){const t=V();let r,o;const{focusReason:s}=a9();Xj(p=>{n.trapped&&!i.paused&&e("release-requested",p)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=p=>{if(!n.loop&&!n.trapped||i.paused)return;const{key:g,altKey:v,ctrlKey:m,metaKey:w,currentTarget:b,shiftKey:y}=p,{loop:S}=n,E=g===Cn.tab&&!v&&!m&&!w,T=document.activeElement;if(E&&T){const M=b,[O,k]=r9(M);if(O&&k){if(!y&&T===k){const L=Lf({focusReason:s.value});e("focusout-prevented",L),L.defaultPrevented||(p.preventDefault(),S&&mi(O,!0))}else if(y&&[O,M].includes(T)){const L=Lf({focusReason:s.value});e("focusout-prevented",L),L.defaultPrevented||(p.preventDefault(),S&&mi(k,!0))}}else if(T===M){const L=Lf({focusReason:s.value});e("focusout-prevented",L),L.defaultPrevented||p.preventDefault()}}};zt(DO,{focusTrapRef:t,onKeydown:l}),je(()=>n.focusTrapEl,p=>{p&&(t.value=p)},{immediate:!0}),je([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(YC,p)},c=p=>e(JC,p),u=p=>{const g=x(t);if(!g)return;const v=p.target,m=p.relatedTarget,w=v&&g.contains(v);n.trapped||m&&g.contains(m)||(r=m),w&&e("focusin",p),!i.paused&&n.trapped&&(w?o=v:mi(o,!0))},d=p=>{const g=x(t);if(!(i.paused||!g))if(n.trapped){const v=p.relatedTarget;!is(v)&&!g.contains(v)&&setTimeout(()=>{if(!i.paused&&n.trapped){const m=Lf({focusReason:s.value});e("focusout-prevented",m),m.defaultPrevented||mi(o,!0)}},0)}else{const v=p.target;v&&g.contains(v)||e("focusout",p)}};async function f(){await it();const p=x(t);if(p){QC.push(i);const g=p.contains(document.activeElement)?r:document.activeElement;if(r=g,!p.contains(g)){const m=new Event(nm,KC);p.addEventListener(nm,a),p.dispatchEvent(m),m.defaultPrevented||it(()=>{let w=n.focusStartEl;ht(w)||(mi(w),document.activeElement!==w&&(w="first")),w==="first"&&i9(VO(p),!0),(document.activeElement===g||w==="container")&&mi(p)})}}}function h(){const p=x(t);if(p){p.removeEventListener(nm,a);const g=new CustomEvent(rm,{...KC,detail:{focusReason:s.value}});p.addEventListener(rm,c),p.dispatchEvent(g),!g.defaultPrevented&&(s.value=="keyboard"||!l9()||p.contains(document.activeElement))&&mi(r??document.body),p.removeEventListener(rm,c),QC.remove(i)}}return ot(()=>{n.trapped&&f(),je(()=>n.trapped,p=>{p?f():h()})}),_n(()=>{n.trapped&&h()}),{onKeydown:l}}});function u9(n,e,t,r,o,s){return Ae(n.$slots,"default",{handleKeydown:n.onKeydown})}var sg=tt(c9,[["render",u9],["__file","focus-trap.vue"]]);const d9=["fixed","absolute"],f9=st({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Ue(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Zp,default:"bottom"},popperOptions:{type:Ue(Object),default:()=>({})},strategy:{type:String,values:d9,default:"absolute"}}),BO=st({...f9,id:String,style:{type:Ue([String,Array,Object])},className:{type:Ue([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:Ue([String,Array,Object])},popperStyle:{type:Ue([String,Array,Object])},referenceEl:{type:Ue(Object)},triggerTargetEl:{type:Ue(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...ri(["ariaLabel"])}),h9={mouseenter:n=>n instanceof MouseEvent,mouseleave:n=>n instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},p9=(n,e=[])=>{const{placement:t,strategy:r,popperOptions:o}=n,s={placement:t,strategy:r,...o,modifiers:[...m9(n),...e]};return v9(s,o==null?void 0:o.modifiers),s},g9=n=>{if(Et)return Bs(n)};function m9(n){const{offset:e,gpuAcceleration:t,fallbackPlacements:r}=n;return[{name:"offset",options:{offset:[0,e??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:t}}]}function v9(n,e){e&&(n.modifiers=[...n.modifiers,...e??[]])}const b9=0,y9=n=>{const{popperInstanceRef:e,contentRef:t,triggerRef:r,role:o}=He($y,void 0),s=V(),i=V(),l=z(()=>({name:"eventListeners",enabled:!!n.visible})),a=z(()=>{var m;const w=x(s),b=(m=x(i))!=null?m:b9;return{name:"arrow",enabled:!zT(w),options:{element:w,padding:b}}}),c=z(()=>({onFirstUpdate:()=>{p()},...p9(n,[x(a),x(l)])})),u=z(()=>g9(n.referenceEl)||x(r)),{attributes:d,state:f,styles:h,update:p,forceUpdate:g,instanceRef:v}=Kj(u,t,c);return je(v,m=>e.value=m),ot(()=>{je(()=>{var m;return(m=x(u))==null?void 0:m.getBoundingClientRect()},()=>{p()})}),{attributes:d,arrowRef:s,contentRef:t,instanceRef:v,state:f,styles:h,role:o,forceUpdate:g,update:p}},w9=(n,{attributes:e,styles:t,role:r})=>{const{nextZIndex:o}=eg(),s=Xe("popper"),i=z(()=>x(e).popper),l=V(Tt(n.zIndex)?n.zIndex:o()),a=z(()=>[s.b(),s.is("pure",n.pure),s.is(n.effect),n.popperClass]),c=z(()=>[{zIndex:x(l)},x(t).popper,n.popperStyle||{}]),u=z(()=>r.value==="dialog"?"false":void 0),d=z(()=>x(t).arrow||{});return{ariaModal:u,arrowStyle:d,contentAttrs:i,contentClass:a,contentStyle:c,contentZIndex:l,updateZIndex:()=>{l.value=Tt(n.zIndex)?n.zIndex:o()}}},C9=(n,e)=>{const t=V(!1),r=V();return{focusStartRef:r,trapped:t,onFocusAfterReleased:c=>{var u;((u=c.detail)==null?void 0:u.focusReason)!=="pointer"&&(r.value="first",e("blur"))},onFocusAfterTrapped:()=>{e("focus")},onFocusInTrap:c=>{n.visible&&!t.value&&(c.target&&(r.value=c.target),t.value=!0)},onFocusoutPrevented:c=>{n.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),t.value=!1)},onReleaseRequested:()=>{t.value=!1,e("close")}}},x9=ge({name:"ElPopperContent"}),S9=ge({...x9,props:BO,emits:h9,setup(n,{expose:e,emit:t}){const r=n,{focusStartRef:o,trapped:s,onFocusAfterReleased:i,onFocusAfterTrapped:l,onFocusInTrap:a,onFocusoutPrevented:c,onReleaseRequested:u}=C9(r,t),{attributes:d,arrowRef:f,contentRef:h,styles:p,instanceRef:g,role:v,update:m}=y9(r),{ariaModal:w,arrowStyle:b,contentAttrs:y,contentClass:S,contentStyle:E,updateZIndex:T}=w9(r,{styles:p,attributes:d,role:v}),M=He(sa,void 0),O=V();zt(NO,{arrowStyle:b,arrowRef:f,arrowOffset:O}),M&&zt(sa,{...M,addInputId:hn,removeInputId:hn});let k;const P=(j=!0)=>{m(),j&&T()},L=()=>{P(!1),r.visible&&r.focusOnShow?s.value=!0:r.visible===!1&&(s.value=!1)};return ot(()=>{je(()=>r.triggerTargetEl,(j,le)=>{k==null||k(),k=void 0;const N=x(j||h.value),R=x(le||h.value);ho(N)&&(k=je([v,()=>r.ariaLabel,w,()=>r.id],K=>{["role","aria-label","aria-modal","id"].forEach((W,U)=>{is(K[U])?N.removeAttribute(W):N.setAttribute(W,K[U])})},{immediate:!0})),R!==N&&ho(R)&&["role","aria-label","aria-modal","id"].forEach(K=>{R.removeAttribute(K)})},{immediate:!0}),je(()=>r.visible,L,{immediate:!0})}),_n(()=>{k==null||k(),k=void 0}),e({popperContentRef:h,popperInstanceRef:g,updatePopper:P,contentStyle:E}),(j,le)=>(A(),q("div",jr({ref_key:"contentRef",ref:h},x(y),{style:x(E),class:x(S),tabindex:"-1",onMouseenter:le[0]||(le[0]=N=>j.$emit("mouseenter",N)),onMouseleave:le[1]||(le[1]=N=>j.$emit("mouseleave",N))}),[C(x(sg),{trapped:x(s),"trap-on-focus-in":!0,"focus-trap-el":x(h),"focus-start-el":x(o),onFocusAfterTrapped:x(l),onFocusAfterReleased:x(i),onFocusin:x(a),onFocusoutPrevented:x(c),onReleaseRequested:x(u)},{default:_(()=>[Ae(j.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var E9=tt(S9,[["__file","content.vue"]]);const _9=Rt(W7),By=Symbol("elTooltip"),Dr=st({...eH,...BO,appendTo:{type:Ue([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,visible:{type:Ue(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...ri(["ariaLabel"])}),pd=st({...$O,disabled:Boolean,trigger:{type:Ue([String,Array]),default:"hover"},triggerKeys:{type:Ue(Array),default:()=>[Cn.enter,Cn.space]}}),{useModelToggleProps:T9,useModelToggleEmits:O9,useModelToggle:M9}=aO("visible"),A9=st({...IO,...T9,...Dr,...pd,...LO,showArrow:{type:Boolean,default:!0}}),k9=[...O9,"before-show","before-hide","show","hide","open","close"],P9=(n,e)=>ze(n)?n.includes(e):n===e,_a=(n,e,t)=>r=>{P9(x(n),e)&&t(r)},N9=ge({name:"ElTooltipTrigger"}),I9=ge({...N9,props:pd,setup(n,{expose:e}){const t=n,r=Xe("tooltip"),{controlled:o,id:s,open:i,onOpen:l,onClose:a,onToggle:c}=He(By,void 0),u=V(null),d=()=>{if(x(o)||t.disabled)return!0},f=Oo(t,"trigger"),h=Rs(d,_a(f,"hover",l)),p=Rs(d,_a(f,"hover",a)),g=Rs(d,_a(f,"click",y=>{y.button===0&&c(y)})),v=Rs(d,_a(f,"focus",l)),m=Rs(d,_a(f,"focus",a)),w=Rs(d,_a(f,"contextmenu",y=>{y.preventDefault(),c(y)})),b=Rs(d,y=>{const{code:S}=y;t.triggerKeys.includes(S)&&(y.preventDefault(),c(y))});return e({triggerRef:u}),(y,S)=>(A(),ve(x(Q7),{id:x(s),"virtual-ref":y.virtualRef,open:x(i),"virtual-triggering":y.virtualTriggering,class:Z(x(r).e("trigger")),onBlur:x(m),onClick:x(g),onContextmenu:x(w),onFocus:x(v),onMouseenter:x(h),onMouseleave:x(p),onKeydown:x(b)},{default:_(()=>[Ae(y.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var L9=tt(I9,[["__file","trigger.vue"]]);const R9=ge({name:"ElTooltipContent",inheritAttrs:!1}),$9=ge({...R9,props:Dr,setup(n,{expose:e}){const t=n,{selector:r}=xO(),o=Xe("tooltip"),s=V(null),i=V(!1),{controlled:l,id:a,open:c,trigger:u,onClose:d,onOpen:f,onShow:h,onHide:p,onBeforeShow:g,onBeforeHide:v}=He(By,void 0),m=z(()=>t.transition||`${o.namespace.value}-fade-in-linear`),w=z(()=>t.persistent);_n(()=>{i.value=!0});const b=z(()=>x(w)?!0:x(c)),y=z(()=>t.disabled?!1:x(c)),S=z(()=>t.appendTo||r.value),E=z(()=>{var K;return(K=t.style)!=null?K:{}}),T=z(()=>!x(c)),M=()=>{p()},O=()=>{if(x(l))return!0},k=Rs(O,()=>{t.enterable&&x(u)==="hover"&&f()}),P=Rs(O,()=>{x(u)==="hover"&&d()}),L=()=>{var K,W;(W=(K=s.value)==null?void 0:K.updatePopper)==null||W.call(K),g==null||g()},j=()=>{v==null||v()},le=()=>{h(),R=bD(z(()=>{var K;return(K=s.value)==null?void 0:K.popperContentRef}),()=>{if(x(l))return;x(u)!=="hover"&&d()})},N=()=>{t.virtualTriggering||d()};let R;return je(()=>x(c),K=>{K||R==null||R()},{flush:"post"}),je(()=>t.content,()=>{var K,W;(W=(K=s.value)==null?void 0:K.updatePopper)==null||W.call(K)}),e({contentRef:s}),(K,W)=>(A(),ve(Fd,{disabled:!K.teleported,to:x(S)},[C(Nr,{name:x(m),onAfterLeave:M,onBeforeEnter:L,onAfterEnter:le,onBeforeLeave:j},{default:_(()=>[x(b)?$e((A(),ve(x(E9),jr({key:0,id:x(a),ref_key:"contentRef",ref:s},K.$attrs,{"aria-label":K.ariaLabel,"aria-hidden":x(T),"boundaries-padding":K.boundariesPadding,"fallback-placements":K.fallbackPlacements,"gpu-acceleration":K.gpuAcceleration,offset:K.offset,placement:K.placement,"popper-options":K.popperOptions,strategy:K.strategy,effect:K.effect,enterable:K.enterable,pure:K.pure,"popper-class":K.popperClass,"popper-style":[K.popperStyle,x(E)],"reference-el":K.referenceEl,"trigger-target-el":K.triggerTargetEl,visible:x(y),"z-index":K.zIndex,onMouseenter:x(k),onMouseleave:x(P),onBlur:N,onClose:x(d)}),{default:_(()=>[i.value?be("v-if",!0):Ae(K.$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"])),[[Ye,x(y)]]):be("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var D9=tt($9,[["__file","content.vue"]]);const V9=["innerHTML"],B9={key:1},F9=ge({name:"ElTooltip"}),z9=ge({...F9,props:A9,emits:k9,setup(n,{expose:e,emit:t}){const r=n;Qj();const o=hs(),s=V(),i=V(),l=()=>{var m;const w=x(s);w&&((m=w.popperInstanceRef)==null||m.update())},a=V(!1),c=V(),{show:u,hide:d,hasUpdateHandler:f}=M9({indicator:a,toggleReason:c}),{onOpen:h,onClose:p}=tH({showAfter:Oo(r,"showAfter"),hideAfter:Oo(r,"hideAfter"),autoClose:Oo(r,"autoClose"),open:u,close:d}),g=z(()=>fo(r.visible)&&!f.value);zt(By,{controlled:g,id:o,open:$d(a),trigger:Oo(r,"trigger"),onOpen:m=>{h(m)},onClose:m=>{p(m)},onToggle:m=>{x(a)?p(m):h(m)},onShow:()=>{t("show",c.value)},onHide:()=>{t("hide",c.value)},onBeforeShow:()=>{t("before-show",c.value)},onBeforeHide:()=>{t("before-hide",c.value)},updatePopper:l}),je(()=>r.disabled,m=>{m&&a.value&&(a.value=!1)});const v=m=>{var w,b;const y=(b=(w=i.value)==null?void 0:w.contentRef)==null?void 0:b.popperContentRef,S=(m==null?void 0:m.relatedTarget)||document.activeElement;return y&&y.contains(S)};return E2(()=>a.value&&d()),e({popperRef:s,contentRef:i,isFocusInsideContent:v,updatePopper:l,onOpen:h,onClose:p,hide:d}),(m,w)=>(A(),ve(x(_9),{ref_key:"popperRef",ref:s,role:m.role},{default:_(()=>[C(L9,{disabled:m.disabled,trigger:m.trigger,"trigger-keys":m.triggerKeys,"virtual-ref":m.virtualRef,"virtual-triggering":m.virtualTriggering},{default:_(()=>[m.$slots.default?Ae(m.$slots,"default",{key:0}):be("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),C(D9,{ref_key:"contentRef",ref:i,"aria-label":m.ariaLabel,"boundaries-padding":m.boundariesPadding,content:m.content,disabled:m.disabled,effect:m.effect,enterable:m.enterable,"fallback-placements":m.fallbackPlacements,"hide-after":m.hideAfter,"gpu-acceleration":m.gpuAcceleration,offset:m.offset,persistent:m.persistent,"popper-class":m.popperClass,"popper-style":m.popperStyle,placement:m.placement,"popper-options":m.popperOptions,pure:m.pure,"raw-content":m.rawContent,"reference-el":m.referenceEl,"trigger-target-el":m.triggerTargetEl,"show-after":m.showAfter,strategy:m.strategy,teleported:m.teleported,transition:m.transition,"virtual-triggering":m.virtualTriggering,"z-index":m.zIndex,"append-to":m.appendTo},{default:_(()=>[Ae(m.$slots,"content",{},()=>[m.rawContent?(A(),q("span",{key:0,innerHTML:m.content},null,8,V9)):(A(),q("span",B9,oe(m.content),1))]),m.showArrow?(A(),ve(x(K7),{key:0,"arrow-offset":m.arrowOffset},null,8,["arrow-offset"])):be("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var j9=tt(z9,[["__file","tooltip.vue"]]);const Lr=Rt(j9),H9=st({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,dotStyle:{type:Ue([String,Object,Array])},badgeStyle:{type:Ue([String,Object,Array])},offset:{type:Ue(Array),default:[0,0]},dotClass:{type:String},badgeClass:{type:String}}),U9=["textContent"],W9=ge({name:"ElBadge"}),G9=ge({...W9,props:H9,setup(n,{expose:e}){const t=n,r=Xe("badge"),o=z(()=>t.isDot?"":Tt(t.value)&&Tt(t.max)?t.max{var i,l,a,c,u,d;return[{backgroundColor:t.color,marginRight:po(-((l=(i=t.offset)==null?void 0:i[0])!=null?l:0)),marginTop:po((c=(a=t.offset)==null?void 0:a[1])!=null?c:0)},(u=t.dotStyle)!=null?u:{},(d=t.badgeStyle)!=null?d:{}]});return Tr({from:"dot-style",replacement:"badge-style",version:"2.8.0",scope:"el-badge",ref:"https://element-plus.org/en-US/component/badge.html"},z(()=>!!t.dotStyle)),Tr({from:"dot-class",replacement:"badge-class",version:"2.8.0",scope:"el-badge",ref:"https://element-plus.org/en-US/component/badge.html"},z(()=>!!t.dotClass)),e({content:o}),(i,l)=>(A(),q("div",{class:Z(x(r).b())},[Ae(i.$slots,"default"),C(Nr,{name:`${x(r).namespace.value}-zoom-in-center`,persisted:""},{default:_(()=>[$e(F("sup",{class:Z([x(r).e("content"),x(r).em("content",i.type),x(r).is("fixed",!!i.$slots.default),x(r).is("dot",i.isDot),i.dotClass,i.badgeClass]),style:wt(x(s)),textContent:oe(x(o))},null,14,U9),[[Ye,!i.hidden&&(x(o)||i.isDot)]])]),_:1},8,["name"])],2))}});var q9=tt(G9,[["__file","badge.vue"]]);const K9=Rt(q9),FO=Symbol("buttonGroupContextKey"),Y9=(n,e)=>{Tr({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},z(()=>n.type==="text"));const t=He(FO,void 0),r=tg("button"),{form:o}=dl(),s=bo(z(()=>t==null?void 0:t.size)),i=qc(),l=V(),a=Ho(),c=z(()=>n.type||(t==null?void 0:t.type)||""),u=z(()=>{var p,g,v;return(v=(g=n.autoInsertSpace)!=null?g:(p=r.value)==null?void 0:p.autoInsertSpace)!=null?v:!1}),d=z(()=>n.tag==="button"?{ariaDisabled:i.value||n.loading,disabled:i.value||n.loading,autofocus:n.autofocus,type:n.nativeType}:{}),f=z(()=>{var p;const g=(p=a.default)==null?void 0:p.call(a);if(u.value&&(g==null?void 0:g.length)===1){const v=g[0];if((v==null?void 0:v.type)===ma){const m=v.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(m.trim())}}return!1});return{_disabled:i,_size:s,_type:c,_ref:l,_props:d,shouldAddSpace:f,handleClick:p=>{n.nativeType==="reset"&&(o==null||o.resetFields()),e("click",p)}}},J9=["default","primary","success","warning","info","danger","text",""],X9=["button","submit","reset"],Mv=st({size:ni,disabled:Boolean,type:{type:String,values:J9,default:""},icon:{type:go},nativeType:{type:String,values:X9,default:"button"},loading:Boolean,loadingIcon:{type:go,default:()=>ud},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:Ue([String,Object]),default:"button"}}),Z9={click:n=>n instanceof MouseEvent};function er(n,e){Q9(n)&&(n="100%");var t=eU(n);return n=e===360?n:Math.min(e,Math.max(0,parseFloat(n))),t&&(n=parseInt(String(n*e),10)/100),Math.abs(n-e)<1e-6?1:(e===360?n=(n<0?n%e+e:n%e)/parseFloat(String(e)):n=n%e/parseFloat(String(e)),n)}function Rf(n){return Math.min(1,Math.max(0,n))}function Q9(n){return typeof n=="string"&&n.indexOf(".")!==-1&&parseFloat(n)===1}function eU(n){return typeof n=="string"&&n.indexOf("%")!==-1}function zO(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 Dl(n){return n.length===1?"0"+n:String(n)}function tU(n,e,t){return{r:er(n,255)*255,g:er(e,255)*255,b:er(t,255)*255}}function tx(n,e,t){n=er(n,255),e=er(e,255),t=er(t,255);var r=Math.max(n,e,t),o=Math.min(n,e,t),s=0,i=0,l=(r+o)/2;if(r===o)i=0,s=0;else{var a=r-o;switch(i=l>.5?a/(2-r-o):a/(r+o),r){case n:s=(e-t)/a+(e1&&(t-=1),t<1/6?n+(e-n)*(6*t):t<1/2?e:t<2/3?n+(e-n)*(2/3-t)*6:n}function nU(n,e,t){var r,o,s;if(n=er(n,360),e=er(e,100),t=er(t,100),e===0)o=t,s=t,r=t;else{var i=t<.5?t*(1+e):t+e-t*e,l=2*t-i;r=om(l,i,n+1/3),o=om(l,i,n),s=om(l,i,n-1/3)}return{r:r*255,g:o*255,b:s*255}}function nx(n,e,t){n=er(n,255),e=er(e,255),t=er(t,255);var r=Math.max(n,e,t),o=Math.min(n,e,t),s=0,i=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 Av={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function lU(n){var e={r:0,g:0,b:0},t=1,r=null,o=null,s=null,i=!1,l=!1;return typeof n=="string"&&(n=uU(n)),typeof n=="object"&&(ks(n.r)&&ks(n.g)&&ks(n.b)?(e=tU(n.r,n.g,n.b),i=!0,l=String(n.r).substr(-1)==="%"?"prgb":"rgb"):ks(n.h)&&ks(n.s)&&ks(n.v)?(r=$f(n.s),o=$f(n.v),e=rU(n.h,r,o),i=!0,l="hsv"):ks(n.h)&&ks(n.s)&&ks(n.l)&&(r=$f(n.s),s=$f(n.l),e=nU(n.h,r,s),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(n,"a")&&(t=n.a)),t=zO(t),{ok:i,format:n.format||l,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}var aU="[-\\+]?\\d+%?",cU="[-\\+]?\\d*\\.\\d+%?",Li="(?:".concat(cU,")|(?:").concat(aU,")"),sm="[\\s|\\(]+(".concat(Li,")[,|\\s]+(").concat(Li,")[,|\\s]+(").concat(Li,")\\s*\\)?"),im="[\\s|\\(]+(".concat(Li,")[,|\\s]+(").concat(Li,")[,|\\s]+(").concat(Li,")[,|\\s]+(").concat(Li,")\\s*\\)?"),So={CSS_UNIT:new RegExp(Li),rgb:new RegExp("rgb"+sm),rgba:new RegExp("rgba"+im),hsl:new RegExp("hsl"+sm),hsla:new RegExp("hsla"+im),hsv:new RegExp("hsv"+sm),hsva:new RegExp("hsva"+im),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function uU(n){if(n=n.trim().toLowerCase(),n.length===0)return!1;var e=!1;if(Av[n])n=Av[n],e=!0;else if(n==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=So.rgb.exec(n);return t?{r:t[1],g:t[2],b:t[3]}:(t=So.rgba.exec(n),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=So.hsl.exec(n),t?{h:t[1],s:t[2],l:t[3]}:(t=So.hsla.exec(n),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=So.hsv.exec(n),t?{h:t[1],s:t[2],v:t[3]}:(t=So.hsva.exec(n),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=So.hex8.exec(n),t?{r:Rr(t[1]),g:Rr(t[2]),b:Rr(t[3]),a:ox(t[4]),format:e?"name":"hex8"}:(t=So.hex6.exec(n),t?{r:Rr(t[1]),g:Rr(t[2]),b:Rr(t[3]),format:e?"name":"hex"}:(t=So.hex4.exec(n),t?{r:Rr(t[1]+t[1]),g:Rr(t[2]+t[2]),b:Rr(t[3]+t[3]),a:ox(t[4]+t[4]),format:e?"name":"hex8"}:(t=So.hex3.exec(n),t?{r:Rr(t[1]+t[1]),g:Rr(t[2]+t[2]),b:Rr(t[3]+t[3]),format:e?"name":"hex"}:!1)))))))))}function ks(n){return!!So.CSS_UNIT.exec(String(n))}var dU=function(){function n(e,t){e===void 0&&(e=""),t===void 0&&(t={});var r;if(e instanceof n)return e;typeof e=="number"&&(e=iU(e)),this.originalInput=e;var o=lU(e);this.originalInput=e,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=t.format)!==null&&r!==void 0?r:o.format,this.gradientType=t.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return n.prototype.isDark=function(){return this.getBrightness()<128},n.prototype.isLight=function(){return!this.isDark()},n.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},n.prototype.getLuminance=function(){var e=this.toRgb(),t,r,o,s=e.r/255,i=e.g/255,l=e.b/255;return s<=.03928?t=s/12.92:t=Math.pow((s+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*t+.7152*r+.0722*o},n.prototype.getAlpha=function(){return this.a},n.prototype.setAlpha=function(e){return this.a=zO(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=nx(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=nx(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=tx(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=tx(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),rx(this.r,this.g,this.b,e)},n.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},n.prototype.toHex8=function(e){return e===void 0&&(e=!1),oU(this.r,this.g,this.b,this.a,e)},n.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},n.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},n.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},n.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(t,", ").concat(r,")"):"rgba(".concat(e,", ").concat(t,", ").concat(r,", ").concat(this.roundA,")")},n.prototype.toPercentageRgb=function(){var e=function(t){return"".concat(Math.round(er(t,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},n.prototype.toPercentageRgbString=function(){var e=function(t){return Math.round(er(t,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},n.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+rx(this.r,this.g,this.b,!1),t=0,r=Object.entries(Av);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={},o=n.color;if(o){const s=o.match(/var\((.*?)\)/);s&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(s[1]));const i=new dU(o),l=n.dark?i.tint(20).toString():fi(i,20);if(n.plain)r=t.cssVarBlock({"bg-color":n.dark?fi(i,90):i.tint(90).toString(),"text-color":o,"border-color":n.dark?fi(i,50):i.tint(50).toString(),"hover-text-color":`var(${t.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":l,"active-text-color":`var(${t.cssVarName("color-white")})`,"active-border-color":l}),e.value&&(r[t.cssVarBlockName("disabled-bg-color")]=n.dark?fi(i,90):i.tint(90).toString(),r[t.cssVarBlockName("disabled-text-color")]=n.dark?fi(i,50):i.tint(50).toString(),r[t.cssVarBlockName("disabled-border-color")]=n.dark?fi(i,80):i.tint(80).toString());else{const a=n.dark?fi(i,30):i.tint(30).toString(),c=i.isDark()?`var(${t.cssVarName("color-white")})`:`var(${t.cssVarName("color-black")})`;if(r=t.cssVarBlock({"bg-color":o,"text-color":c,"border-color":o,"hover-bg-color":a,"hover-text-color":c,"hover-border-color":a,"active-bg-color":l,"active-border-color":l}),e.value){const u=n.dark?fi(i,50):i.tint(50).toString();r[t.cssVarBlockName("disabled-bg-color")]=u,r[t.cssVarBlockName("disabled-text-color")]=n.dark?"rgba(255, 255, 255, 0.5)":`var(${t.cssVarName("color-white")})`,r[t.cssVarBlockName("disabled-border-color")]=u}}}return r})}const hU=ge({name:"ElButton"}),pU=ge({...hU,props:Mv,emits:Z9,setup(n,{expose:e,emit:t}){const r=n,o=fU(r),s=Xe("button"),{_ref:i,_size:l,_type:a,_disabled:c,_props:u,shouldAddSpace:d,handleClick:f}=Y9(r,t),h=z(()=>[s.b(),s.m(a.value),s.m(l.value),s.is("disabled",c.value),s.is("loading",r.loading),s.is("plain",r.plain),s.is("round",r.round),s.is("circle",r.circle),s.is("text",r.text),s.is("link",r.link),s.is("has-bg",r.bg)]);return e({ref:i,size:l,type:a,disabled:c,shouldAddSpace:d}),(p,g)=>(A(),ve(Bt(p.tag),jr({ref_key:"_ref",ref:i},x(u),{class:x(h),style:x(o),onClick:x(f)}),{default:_(()=>[p.loading?(A(),q(Re,{key:0},[p.$slots.loading?Ae(p.$slots,"loading",{key:0}):(A(),ve(x(dt),{key:1,class:Z(x(s).is("loading"))},{default:_(()=>[(A(),ve(Bt(p.loadingIcon)))]),_:1},8,["class"]))],64)):p.icon||p.$slots.icon?(A(),ve(x(dt),{key:1},{default:_(()=>[p.icon?(A(),ve(Bt(p.icon),{key:0})):Ae(p.$slots,"icon",{key:1})]),_:3})):be("v-if",!0),p.$slots.default?(A(),q("span",{key:2,class:Z({[x(s).em("text","expand")]:x(d)})},[Ae(p.$slots,"default")],2)):be("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var gU=tt(pU,[["__file","button.vue"]]);const mU={size:Mv.size,type:Mv.type},vU=ge({name:"ElButtonGroup"}),bU=ge({...vU,props:mU,setup(n){const e=n;zt(FO,yt({size:Oo(e,"size"),type:Oo(e,"type")}));const t=Xe("button");return(r,o)=>(A(),q("div",{class:Z(`${x(t).b("group")}`)},[Ae(r.$slots,"default")],2))}});var jO=tt(bU,[["__file","button-group.vue"]]);const Tn=Rt(gU,{ButtonGroup:jO}),Fy=Ir(jO),vi=new Map;let sx;Et&&(document.addEventListener("mousedown",n=>sx=n),document.addEventListener("mouseup",n=>{for(const e of vi.values())for(const{documentHandler:t}of e)t(n,sx)}));function ix(n,e){let t=[];return Array.isArray(e.arg)?t=e.arg:ho(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 HO={beforeMount(n,e){vi.has(n)||vi.set(n,[]),vi.get(n).push({documentHandler:ix(n,e),bindingFn:e.value})},updated(n,e){vi.has(n)||vi.set(n,[]);const t=vi.get(n),r=t.findIndex(s=>s.bindingFn===e.oldValue),o={documentHandler:ix(n,e),bindingFn:e.value};r>=0?t.splice(r,1,o):t.push(o)},unmounted(n){vi.delete(n)}},yU=100,wU=600,lx={beforeMount(n,e){const t=e.value,{interval:r=yU,delay:o=wU}=Je(t)?{}:t;let s,i;const l=()=>Je(t)?t():t.handler(),a=()=>{i&&(clearTimeout(i),i=void 0),s&&(clearInterval(s),s=void 0)};n.addEventListener("mousedown",c=>{c.button===0&&(a(),l(),document.addEventListener("mouseup",()=>a(),{once:!0}),i=setTimeout(()=>{s=setInterval(()=>{l()},r)},o))})}},kv="_trap-focus-children",Vl=[],ax=n=>{if(Vl.length===0)return;const e=Vl[Vl.length-1][kv];if(e.length>0&&n.code===Cn.tab){if(e.length===1){n.preventDefault(),document.activeElement!==e[0]&&e[0].focus();return}const t=n.shiftKey,r=n.target===e[0],o=n.target===e[e.length-1];r&&t&&(n.preventDefault(),e[e.length-1].focus()),o&&!t&&(n.preventDefault(),e[0].focus())}},CU={beforeMount(n){n[kv]=Ow(n),Vl.push(n),Vl.length<=1&&document.addEventListener("keydown",ax)},updated(n){it(()=>{n[kv]=Ow(n)})},unmounted(){Vl.shift(),Vl.length===0&&document.removeEventListener("keydown",ax)}};var cx=!1,Nl,Pv,Nv,fh,hh,UO,ph,Iv,Lv,Rv,WO,$v,Dv,GO,qO;function Sr(){if(!cx){cx=!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($v=/\b(iPhone|iP[ao]d)/.exec(n),Dv=/\b(iP[ao]d)/.exec(n),Rv=/Android/i.exec(n),GO=/FBAN\/\w+;/i.exec(n),qO=/Mobile/i.exec(n),WO=!!/Win64/.exec(n),e){Nl=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,Nl&&document&&document.documentMode&&(Nl=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(n);UO=r?parseFloat(r[1])+4:Nl,Pv=e[2]?parseFloat(e[2]):NaN,Nv=e[3]?parseFloat(e[3]):NaN,fh=e[4]?parseFloat(e[4]):NaN,fh?(e=/(?:Chrome\/(\d+\.\d+))/.exec(n),hh=e&&e[1]?parseFloat(e[1]):NaN):hh=NaN}else Nl=Pv=Nv=hh=fh=NaN;if(t){if(t[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(n);ph=o?parseFloat(o[1].replace("_",".")):!0}else ph=!1;Iv=!!t[2],Lv=!!t[3]}else ph=Iv=Lv=!1}}var Vv={ie:function(){return Sr()||Nl},ieCompatibilityMode:function(){return Sr()||UO>Nl},ie64:function(){return Vv.ie()&&WO},firefox:function(){return Sr()||Pv},opera:function(){return Sr()||Nv},webkit:function(){return Sr()||fh},safari:function(){return Vv.webkit()},chrome:function(){return Sr()||hh},windows:function(){return Sr()||Iv},osx:function(){return Sr()||ph},linux:function(){return Sr()||Lv},iphone:function(){return Sr()||$v},mobile:function(){return Sr()||$v||Dv||Rv||qO},nativeApp:function(){return Sr()||GO},android:function(){return Sr()||Rv},ipad:function(){return Sr()||Dv}},xU=Vv,Df=!!(typeof window<"u"&&window.document&&window.document.createElement),SU={canUseDOM:Df,canUseWorkers:typeof Worker<"u",canUseEventListeners:Df&&!!(window.addEventListener||window.attachEvent),canUseViewport:Df&&!!window.screen,isInWorker:!Df},KO=SU,YO;KO.canUseDOM&&(YO=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function EU(n,e){if(!KO.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&&YO&&n==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var _U=EU,ux=10,dx=40,fx=800;function JO(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*ux,o=t*ux,"deltaY"in n&&(o=n.deltaY),"deltaX"in n&&(r=n.deltaX),(r||o)&&n.deltaMode&&(n.deltaMode==1?(r*=dx,o*=dx):(r*=fx,o*=fx)),r&&!e&&(e=r<1?-1:1),o&&!t&&(t=o<1?-1:1),{spinX:e,spinY:t,pixelX:r,pixelY:o}}JO.getEventType=function(){return xU.firefox()?"DOMMouseScroll":_U("wheel")?"wheel":"mousewheel"};var TU=JO;/** +* Checks if an event is supported in the current execution environment. +* +* NOTE: This will not work correctly for non-generic events such as `change`, +* `reset`, `load`, `error`, and `select`. +* +* Borrows from Modernizr. +* +* @param {string} eventNameSuffix Event name, e.g. "click". +* @param {?boolean} capture Check if the capture phase is supported. +* @return {boolean} True if the event is supported. +* @internal +* @license Modernizr 3.0.0pre (Custom Build) | MIT +*/const OU=function(n,e){if(n&&n.addEventListener){const t=function(r){const o=TU(r);e&&Reflect.apply(e,this,[r,o])};n.addEventListener("wheel",t,{passive:!0})}},MU={beforeMount(n,e){OU(n,e.value)}},XO={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:ni,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...ri(["ariaControls"])},ZO={[Ht]:n=>ht(n)||Tt(n)||fo(n),change:n=>ht(n)||Tt(n)||fo(n)},Kc=Symbol("checkboxGroupContextKey"),AU=({model:n,isChecked:e})=>{const t=He(Kc,void 0),r=z(()=>{var s,i;const l=(s=t==null?void 0:t.max)==null?void 0:s.value,a=(i=t==null?void 0:t.min)==null?void 0:i.value;return!_r(l)&&n.value.length>=l&&!e.value||!_r(a)&&n.value.length<=a&&e.value});return{isDisabled:qc(z(()=>(t==null?void 0:t.disabled.value)||r.value)),isLimitDisabled:r}},kU=(n,{model:e,isLimitExceeded:t,hasOwnLabel:r,isDisabled:o,isLabeledByFormItem:s})=>{const i=He(Kc,void 0),{formItem:l}=dl(),{emit:a}=vt();function c(p){var g,v,m,w;return[!0,n.trueValue,n.trueLabel].includes(p)?(v=(g=n.trueValue)!=null?g:n.trueLabel)!=null?v:!0:(w=(m=n.falseValue)!=null?m: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(m=>m.tagName==="LABEL")||(e.value=c([!1,n.falseValue,n.falseLabel].includes(e.value)),await it(),u(e.value,p)))}const h=z(()=>(i==null?void 0:i.validateEvent)||n.validateEvent);return je(()=>n.modelValue,()=>{h.value&&(l==null||l.validate("change").catch(p=>void 0))}),{handleChange:d,onClickRoot:f}},PU=n=>{const e=V(!1),{emit:t}=vt(),r=He(Kc,void 0),o=z(()=>_r(r)===!1),s=V(!1),i=z({get(){var l,a;return o.value?(l=r==null?void 0:r.modelValue)==null?void 0:l.value:(a=n.modelValue)!=null?a:e.value},set(l){var a,c;o.value&&ze(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(Ht,l),e.value=l)}});return{model:i,isGroup:o,isLimitExceeded:s}},NU=(n,e,{model:t})=>{const r=He(Kc,void 0),o=V(!1),s=z(()=>cd(n.value)?n.label:n.value),i=z(()=>{const u=t.value;return fo(u)?u:ze(u)?gt(s.value)?u.map(kt).some(d=>Or(d,s.value)):u.map(kt).includes(s.value):u!=null?u===n.trueValue||u===n.trueLabel:!!u}),l=bo(z(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),a=bo(z(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),c=z(()=>!!e.default||!cd(s.value));return{checkboxButtonSize:l,isChecked:i,isFocused:o,checkboxSize:a,hasOwnLabel:c,actualValue:s}},QO=(n,e)=>{const{formItem:t}=dl(),{model:r,isGroup:o,isLimitExceeded:s}=PU(n),{isFocused:i,isChecked:l,checkboxButtonSize:a,checkboxSize:c,hasOwnLabel:u,actualValue:d}=NU(n,e,{model:r}),{isDisabled:f}=AU({model:r,isChecked:l}),{inputId:h,isLabeledByFormItem:p}=Qd(n,{formItemContext:t,disableIdGeneration:u,disableIdManagement:o}),{handleChange:g,onClickRoot:v}=kU(n,{model:r,isLimitExceeded:s,hasOwnLabel:u,isDisabled:f,isLabeledByFormItem:p});return(()=>{function w(){var b,y;ze(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()})(),Tr({from:"controls",replacement:"aria-controls",version:"2.8.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},z(()=>!!n.controls)),Tr({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&&cd(n.value))),Tr({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},z(()=>!!n.trueLabel)),Tr({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},z(()=>!!n.falseLabel)),{inputId:h,isLabeledByFormItem:p,isChecked:l,isDisabled:f,isFocused:i,checkboxButtonSize:a,checkboxSize:c,hasOwnLabel:u,model:r,actualValue:d,handleChange:g,onClickRoot:v}},IU=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],LU=["id","indeterminate","disabled","value","name","tabindex"],RU=ge({name:"ElCheckbox"}),$U=ge({...RU,props:XO,emits:ZO,setup(n){const e=n,t=Ho(),{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=Xe("checkbox"),g=z(()=>[p.b(),p.m(a.value),p.is("disabled",i.value),p.is("bordered",e.border),p.is("checked",s.value)]),v=z(()=>[p.e("input"),p.is("disabled",i.value),p.is("checked",s.value),p.is("indeterminate",e.indeterminate),p.is("focus",l.value)]);return(m,w)=>(A(),ve(Bt(!x(c)&&x(o)?"span":"label"),{class:Z(x(g)),"aria-controls":m.indeterminate?m.controls||m.ariaControls:null,onClick:x(h)},{default:_(()=>{var b,y;return[F("span",{class:Z(x(v))},[m.trueValue||m.falseValue||m.trueLabel||m.falseLabel?$e((A(),q("input",{key:0,id:x(r),"onUpdate:modelValue":w[0]||(w[0]=S=>Gt(u)?u.value=S:null),class:Z(x(p).e("original")),type:"checkbox",indeterminate:m.indeterminate,name:m.name,tabindex:m.tabindex,disabled:x(i),"true-value":(b=m.trueValue)!=null?b:m.trueLabel,"false-value":(y=m.falseValue)!=null?y:m.falseLabel,onChange:w[1]||(w[1]=(...S)=>x(f)&&x(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]=It(()=>{},["stop"]))},null,42,IU)),[[Gi,x(u)]]):$e((A(),q("input",{key:1,id:x(r),"onUpdate:modelValue":w[5]||(w[5]=S=>Gt(u)?u.value=S:null),class:Z(x(p).e("original")),type:"checkbox",indeterminate:m.indeterminate,disabled:x(i),value:x(d),name:m.name,tabindex:m.tabindex,onChange:w[6]||(w[6]=(...S)=>x(f)&&x(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]=It(()=>{},["stop"]))},null,42,LU)),[[Gi,x(u)]]),F("span",{class:Z(x(p).e("inner"))},null,2)],2),x(c)?(A(),q("span",{key:0,class:Z(x(p).e("label"))},[Ae(m.$slots,"default"),m.$slots.default?be("v-if",!0):(A(),q(Re,{key:0},[G(oe(m.label),1)],64))],2)):be("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var DU=tt($U,[["__file","checkbox.vue"]]);const VU=["name","tabindex","disabled","true-value","false-value"],BU=["name","tabindex","disabled","value"],FU=ge({name:"ElCheckboxButton"}),zU=ge({...FU,props:XO,emits:ZO,setup(n){const e=n,t=Ho(),{isFocused:r,isChecked:o,isDisabled:s,checkboxButtonSize:i,model:l,actualValue:a,handleChange:c}=QO(e,t),u=He(Kc,void 0),d=Xe("checkbox"),f=z(()=>{var p,g,v,m;const w=(g=(p=u==null?void 0:u.fill)==null?void 0:p.value)!=null?g:"";return{backgroundColor:w,borderColor:w,color:(m=(v=u==null?void 0:u.textColor)==null?void 0:v.value)!=null?m:"",boxShadow:w?`-1px 0 0 0 ${w}`:void 0}}),h=z(()=>[d.b("button"),d.bm("button",i.value),d.is("disabled",s.value),d.is("checked",o.value),d.is("focus",r.value)]);return(p,g)=>{var v,m;return A(),q("label",{class:Z(x(h))},[p.trueValue||p.falseValue||p.trueLabel||p.falseLabel?$e((A(),q("input",{key:0,"onUpdate:modelValue":g[0]||(g[0]=w=>Gt(l)?l.value=w:null),class:Z(x(d).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:x(s),"true-value":(v=p.trueValue)!=null?v:p.trueLabel,"false-value":(m=p.falseValue)!=null?m:p.falseLabel,onChange:g[1]||(g[1]=(...w)=>x(c)&&x(c)(...w)),onFocus:g[2]||(g[2]=w=>r.value=!0),onBlur:g[3]||(g[3]=w=>r.value=!1),onClick:g[4]||(g[4]=It(()=>{},["stop"]))},null,42,VU)),[[Gi,x(l)]]):$e((A(),q("input",{key:1,"onUpdate:modelValue":g[5]||(g[5]=w=>Gt(l)?l.value=w:null),class:Z(x(d).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:x(s),value:x(a),onChange:g[6]||(g[6]=(...w)=>x(c)&&x(c)(...w)),onFocus:g[7]||(g[7]=w=>r.value=!0),onBlur:g[8]||(g[8]=w=>r.value=!1),onClick:g[9]||(g[9]=It(()=>{},["stop"]))},null,42,BU)),[[Gi,x(l)]]),p.$slots.default||p.label?(A(),q("span",{key:2,class:Z(x(d).be("button","inner")),style:wt(x(o)?x(f):void 0)},[Ae(p.$slots,"default",{},()=>[G(oe(p.label),1)])],6)):be("v-if",!0)],2)}}});var eM=tt(zU,[["__file","checkbox-button.vue"]]);const jU=st({modelValue:{type:Ue(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:ni,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...ri(["ariaLabel"])}),HU={[Ht]:n=>ze(n),change:n=>ze(n)},UU=ge({name:"ElCheckboxGroup"}),WU=ge({...UU,props:jU,emits:HU,setup(n,{emit:e}){const t=n,r=Xe("checkbox"),{formItem:o}=dl(),{inputId:s,isLabeledByFormItem:i}=Qd(t,{formItemContext:o}),l=async c=>{e(Ht,c),await it(),e("change",c)},a=z({get(){return t.modelValue},set(c){l(c)}});return zt(Kc,{...HT(Xs(t),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:a,changeEvent:l}),Tr({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-checkbox-group",ref:"https://element-plus.org/en-US/component/checkbox.html"},z(()=>!!t.label)),je(()=>t.modelValue,()=>{t.validateEvent&&(o==null||o.validate("change").catch(c=>void 0))}),(c,u)=>{var d;return A(),ve(Bt(c.tag),{id:x(s),class:Z(x(r).b("group")),role:"group","aria-label":x(i)?void 0:c.label||c.ariaLabel||"checkbox-group","aria-labelledby":x(i)?(d=x(o))==null?void 0:d.labelId:void 0},{default:_(()=>[Ae(c.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var tM=tt(WU,[["__file","checkbox-group.vue"]]);const ia=Rt(DU,{CheckboxButton:eM,CheckboxGroup:tM});Ir(eM);Ir(tM);const nM=st({modelValue:{type:[String,Number,Boolean],default:void 0},size:ni,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),GU=st({...nM,border:Boolean}),rM={[Ht]:n=>ht(n)||Tt(n)||fo(n),[Jd]:n=>ht(n)||Tt(n)||fo(n)},oM=Symbol("radioGroupKey"),sM=(n,e)=>{const t=V(),r=He(oM,void 0),o=z(()=>!!r),s=z(()=>cd(n.value)?n.label:n.value),i=z({get(){return o.value?r.modelValue:n.modelValue},set(d){o.value?r.changeEvent(d):e&&e(Ht,d),t.value.checked=n.modelValue===s.value}}),l=bo(z(()=>r==null?void 0:r.size)),a=qc(z(()=>r==null?void 0:r.disabled)),c=V(!1),u=z(()=>a.value||o.value&&i.value!==s.value?-1:0);return Tr({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&&cd(n.value))),{radioRef:t,isGroup:o,radioGroup:r,focus:c,size:l,disabled:a,tabIndex:u,modelValue:i,actualValue:s}},qU=["value","name","disabled"],KU=ge({name:"ElRadio"}),YU=ge({...KU,props:GU,emits:rM,setup(n,{emit:e}){const t=n,r=Xe("radio"),{radioRef:o,radioGroup:s,focus:i,size:l,disabled:a,modelValue:c,actualValue:u}=sM(t,e);function d(){it(()=>e("change",c.value))}return(f,h)=>{var p;return A(),q("label",{class:Z([x(r).b(),x(r).is("disabled",x(a)),x(r).is("focus",x(i)),x(r).is("bordered",f.border),x(r).is("checked",x(c)===x(u)),x(r).m(x(l))])},[F("span",{class:Z([x(r).e("input"),x(r).is("disabled",x(a)),x(r).is("checked",x(c)===x(u))])},[$e(F("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":h[0]||(h[0]=g=>Gt(c)?c.value=g:null),class:Z(x(r).e("original")),value:x(u),name:f.name||((p=x(s))==null?void 0:p.name),disabled:x(a),type:"radio",onFocus:h[1]||(h[1]=g=>i.value=!0),onBlur:h[2]||(h[2]=g=>i.value=!1),onChange:d,onClick:h[3]||(h[3]=It(()=>{},["stop"]))},null,42,qU),[[U2,x(c)]]),F("span",{class:Z(x(r).e("inner"))},null,2)],2),F("span",{class:Z(x(r).e("label")),onKeydown:h[4]||(h[4]=It(()=>{},["stop"]))},[Ae(f.$slots,"default",{},()=>[G(oe(f.label),1)])],34)],2)}}});var JU=tt(YU,[["__file","radio.vue"]]);const XU=st({...nM}),ZU=["value","name","disabled"],QU=ge({name:"ElRadioButton"}),eW=ge({...QU,props:XU,setup(n){const e=n,t=Xe("radio"),{radioRef:r,focus:o,size:s,disabled:i,modelValue:l,radioGroup:a,actualValue:c}=sM(e),u=z(()=>({backgroundColor:(a==null?void 0:a.fill)||"",borderColor:(a==null?void 0:a.fill)||"",boxShadow:a!=null&&a.fill?`-1px 0 0 0 ${a.fill}`:"",color:(a==null?void 0:a.textColor)||""}));return(d,f)=>{var h;return A(),q("label",{class:Z([x(t).b("button"),x(t).is("active",x(l)===x(c)),x(t).is("disabled",x(i)),x(t).is("focus",x(o)),x(t).bm("button",x(s))])},[$e(F("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":f[0]||(f[0]=p=>Gt(l)?l.value=p:null),class:Z(x(t).be("button","original-radio")),value:x(c),type:"radio",name:d.name||((h=x(a))==null?void 0:h.name),disabled:x(i),onFocus:f[1]||(f[1]=p=>o.value=!0),onBlur:f[2]||(f[2]=p=>o.value=!1),onClick:f[3]||(f[3]=It(()=>{},["stop"]))},null,42,ZU),[[U2,x(l)]]),F("span",{class:Z(x(t).be("button","inner")),style:wt(x(l)===x(c)?x(u):{}),onKeydown:f[4]||(f[4]=It(()=>{},["stop"]))},[Ae(d.$slots,"default",{},()=>[G(oe(d.label),1)])],38)],2)}}});var iM=tt(eW,[["__file","radio-button.vue"]]);const tW=st({id:{type:String,default:void 0},size:ni,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},...ri(["ariaLabel"])}),nW=rM,rW=["id","aria-label","aria-labelledby"],oW=ge({name:"ElRadioGroup"}),sW=ge({...oW,props:tW,emits:nW,setup(n,{emit:e}){const t=n,r=Xe("radio"),o=hs(),s=V(),{formItem:i}=dl(),{inputId:l,isLabeledByFormItem:a}=Qd(t,{formItemContext:i}),c=d=>{e(Ht,d),it(()=>e("change",d))};ot(()=>{const d=s.value.querySelectorAll("[type=radio]"),f=d[0];!Array.from(d).some(h=>h.checked)&&f&&(f.tabIndex=0)});const u=z(()=>t.name||o.value);return zt(oM,yt({...Xs(t),changeEvent:c,name:u})),je(()=>t.modelValue,()=>{t.validateEvent&&(i==null||i.validate("change").catch(d=>void 0))}),Tr({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-radio-group",ref:"https://element-plus.org/en-US/component/radio.html"},z(()=>!!t.label)),(d,f)=>(A(),q("div",{id:x(l),ref_key:"radioGroupRef",ref:s,class:Z(x(r).b("group")),role:"radiogroup","aria-label":x(a)?void 0:d.label||d.ariaLabel||"radio-group","aria-labelledby":x(a)?x(i).labelId:void 0},[Ae(d.$slots,"default")],10,rW))}});var lM=tt(sW,[["__file","radio-group.vue"]]);const zy=Rt(JU,{RadioButton:iM,RadioGroup:lM}),ig=Ir(lM),iW=Ir(iM),Bv=st({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:wa},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),lW={close:n=>n instanceof MouseEvent,click:n=>n instanceof MouseEvent},aW=ge({name:"ElTag"}),cW=ge({...aW,props:Bv,emits:lW,setup(n,{emit:e}){const t=n,r=bo(),o=Xe("tag"),s=z(()=>{const{type:a,hit:c,effect:u,closable:d,round:f}=t;return[o.b(),o.is("closable",d),o.m(a||"primary"),o.m(r.value),o.m(u),o.is("hit",c),o.is("round",f)]}),i=a=>{e("close",a)},l=a=>{e("click",a)};return(a,c)=>a.disableTransitions?(A(),q("span",{key:0,class:Z(x(s)),style:wt({backgroundColor:a.color}),onClick:l},[F("span",{class:Z(x(o).e("content"))},[Ae(a.$slots,"default")],2),a.closable?(A(),ve(x(dt),{key:0,class:Z(x(o).e("close")),onClick:It(i,["stop"])},{default:_(()=>[C(x(oa))]),_:1},8,["class","onClick"])):be("v-if",!0)],6)):(A(),ve(Nr,{key:1,name:`${x(o).namespace.value}-zoom-in-center`,appear:""},{default:_(()=>[F("span",{class:Z(x(s)),style:wt({backgroundColor:a.color}),onClick:l},[F("span",{class:Z(x(o).e("content"))},[Ae(a.$slots,"default")],2),a.closable?(A(),ve(x(dt),{key:0,class:Z(x(o).e("close")),onClick:It(i,["stop"])},{default:_(()=>[C(x(oa))]),_:1},8,["class","onClick"])):be("v-if",!0)],6)]),_:3},8,["name"]))}});var uW=tt(cW,[["__file","tag.vue"]]);const aM=Rt(uW),cM=Symbol("rowContextKey"),dW=["start","center","end","space-around","space-between","space-evenly"],fW=["top","middle","bottom"],hW=st({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:dW,default:"start"},align:{type:String,values:fW}}),pW=ge({name:"ElRow"}),gW=ge({...pW,props:hW,setup(n){const e=n,t=Xe("row"),r=z(()=>e.gutter);zt(cM,{gutter:r});const o=z(()=>{const i={};return e.gutter&&(i.marginRight=i.marginLeft=`-${e.gutter/2}px`),i}),s=z(()=>[t.b(),t.is(`justify-${e.justify}`,e.justify!=="start"),t.is(`align-${e.align}`,!!e.align)]);return(i,l)=>(A(),ve(Bt(i.tag),{class:Z(x(s)),style:wt(x(o))},{default:_(()=>[Ae(i.$slots,"default")]),_:3},8,["class","style"]))}});var mW=tt(gW,[["__file","row.vue"]]);const lg=Rt(mW),vW=st({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:Ue([Number,Object]),default:()=>_o({})},sm:{type:Ue([Number,Object]),default:()=>_o({})},md:{type:Ue([Number,Object]),default:()=>_o({})},lg:{type:Ue([Number,Object]),default:()=>_o({})},xl:{type:Ue([Number,Object]),default:()=>_o({})}}),bW=ge({name:"ElCol"}),yW=ge({...bW,props:vW,setup(n){const e=n,{gutter:t}=He(cM,{gutter:z(()=>0)}),r=Xe("col"),o=z(()=>{const i={};return t.value&&(i.paddingLeft=i.paddingRight=`${t.value/2}px`),i}),s=z(()=>{const i=[];return["span","offset","pull","push"].forEach(c=>{const u=e[c];Tt(u)&&(c==="span"?i.push(r.b(`${e[c]}`)):u>0&&i.push(r.b(`${c}-${e[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{Tt(e[c])?i.push(r.b(`${c}-${e[c]}`)):gt(e[c])&&Object.entries(e[c]).forEach(([u,d])=>{i.push(u!=="span"?r.b(`${c}-${u}-${d}`):r.b(`${c}-${d}`))})}),t.value&&i.push(r.is("guttered")),[r.b(),i]});return(i,l)=>(A(),ve(Bt(i.tag),{class:Z(x(s)),style:wt(x(o))},{default:_(()=>[Ae(i.$slots,"default")]),_:3},8,["class","style"]))}});var wW=tt(yW,[["__file","col.vue"]]);const ag=Rt(wW),CW=ge({name:"ElContainer"}),xW=ge({...CW,props:{direction:{type:String}},setup(n){const e=n,t=Ho(),r=Xe("container"),o=z(()=>e.direction==="vertical"?!0:e.direction==="horizontal"?!1:t&&t.default?t.default().some(i=>{const l=i.type.name;return l==="ElHeader"||l==="ElFooter"}):!1);return(s,i)=>(A(),q("section",{class:Z([x(r).b(),x(r).is("vertical",x(o))])},[Ae(s.$slots,"default")],2))}});var SW=tt(xW,[["__file","container.vue"]]);const EW=ge({name:"ElAside"}),_W=ge({...EW,props:{width:{type:String,default:null}},setup(n){const e=n,t=Xe("aside"),r=z(()=>e.width?t.cssVarBlock({width:e.width}):{});return(o,s)=>(A(),q("aside",{class:Z(x(t).b()),style:wt(x(r))},[Ae(o.$slots,"default")],6))}});var uM=tt(_W,[["__file","aside.vue"]]);const TW=ge({name:"ElFooter"}),OW=ge({...TW,props:{height:{type:String,default:null}},setup(n){const e=n,t=Xe("footer"),r=z(()=>e.height?t.cssVarBlock({height:e.height}):{});return(o,s)=>(A(),q("footer",{class:Z(x(t).b()),style:wt(x(r))},[Ae(o.$slots,"default")],6))}});var dM=tt(OW,[["__file","footer.vue"]]);const MW=ge({name:"ElHeader"}),AW=ge({...MW,props:{height:{type:String,default:null}},setup(n){const e=n,t=Xe("header"),r=z(()=>e.height?t.cssVarBlock({height:e.height}):{});return(o,s)=>(A(),q("header",{class:Z(x(t).b()),style:wt(x(r))},[Ae(o.$slots,"default")],6))}});var fM=tt(AW,[["__file","header.vue"]]);const kW=ge({name:"ElMain"}),PW=ge({...kW,setup(n){const e=Xe("main");return(t,r)=>(A(),q("main",{class:Z(x(e).b())},[Ae(t.$slots,"default")],2))}});var hM=tt(PW,[["__file","main.vue"]]);const NW=Rt(SW,{Aside:uM,Footer:dM,Header:fM,Main:hM}),IW=Ir(uM);Ir(dM);const LW=Ir(fM),RW=Ir(hM),$W=st({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Ue([String,Array,Object])},zIndex:{type:Ue([String,Number])}}),DW={click:n=>n instanceof MouseEvent},VW="overlay";var BW=ge({name:"ElOverlay",props:$W,emits:DW,setup(n,{slots:e,emit:t}){const r=Xe(VW),o=a=>{t("click",a)},{onClick:s,onMousedown:i,onMouseup:l}=Iy(n.customMaskEvent?void 0:o);return()=>n.mask?C("div",{class:[r.b(),n.overlayClass],style:{zIndex:n.zIndex},onClick:s,onMousedown:i,onMouseup:l},[Ae(e,"default")],Xr.STYLE|Xr.CLASS|Xr.PROPS,["onClick","onMouseup","onMousedown"]):Qe("div",{class:n.overlayClass,style:{zIndex:n.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Ae(e,"default")])}});const jy=BW,pM=Symbol("dialogInjectionKey"),gM=st({center:Boolean,alignCenter:Boolean,closeIcon:{type:go},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),FW={close:()=>!0},zW=["aria-level"],jW=["aria-label"],HW=["id"],UW=ge({name:"ElDialogContent"}),WW=ge({...UW,props:gM,emits:FW,setup(n){const e=n,{t}=ws(),{Close:r}=QT,{dialogRef:o,headerRef:s,bodyId:i,ns:l,style:a}=He(pM),{focusTrapRef:c}=He(DO),u=z(()=>[l.b(),l.is("fullscreen",e.fullscreen),l.is("draggable",e.draggable),l.is("align-center",e.alignCenter),{[l.m("center")]:e.center}]),d=Lz(c,o),f=z(()=>e.draggable),h=z(()=>e.overflow);return oO(o,s,f,h),(p,g)=>(A(),q("div",{ref:x(d),class:Z(x(u)),style:wt(x(a)),tabindex:"-1"},[F("header",{ref_key:"headerRef",ref:s,class:Z([x(l).e("header"),{"show-close":p.showClose}])},[Ae(p.$slots,"header",{},()=>[F("span",{role:"heading","aria-level":p.ariaLevel,class:Z(x(l).e("title"))},oe(p.title),11,zW)]),p.showClose?(A(),q("button",{key:0,"aria-label":x(t)("el.dialog.close"),class:Z(x(l).e("headerbtn")),type:"button",onClick:g[0]||(g[0]=v=>p.$emit("close"))},[C(x(dt),{class:Z(x(l).e("close"))},{default:_(()=>[(A(),ve(Bt(p.closeIcon||x(r))))]),_:1},8,["class"])],10,jW)):be("v-if",!0)],2),F("div",{id:x(i),class:Z(x(l).e("body"))},[Ae(p.$slots,"default")],10,HW),p.$slots.footer?(A(),q("footer",{key:0,class:Z(x(l).e("footer"))},[Ae(p.$slots,"footer")],2)):be("v-if",!0)],6))}});var GW=tt(WW,[["__file","dialog-content.vue"]]);const mM=st({...gM,appendToBody:Boolean,appendTo:{type:Ue(String),default:"body"},beforeClose:{type:Ue(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"}}),vM={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Ht]:n=>fo(n),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},bM=(n,e)=>{var t;const o=vt().emit,{nextZIndex:s}=eg();let i="";const l=hs(),a=hs(),c=V(!1),u=V(!1),d=V(!1),f=V((t=n.zIndex)!=null?t:s());let h,p;const g=tg("namespace",Nu),v=z(()=>{const N={},R=`--${g.value}-dialog`;return n.fullscreen||(n.top&&(N[`${R}-margin-top`]=n.top),n.width&&(N[`${R}-width`]=po(n.width))),N}),m=z(()=>n.alignCenter?{display:"flex"}:{});function w(){o("opened")}function b(){o("closed"),o(Ht,!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}=Nh(()=>O(),n.openDelay):O()}function E(){h==null||h(),p==null||p(),n.closeDelay&&n.closeDelay>0?{stop:p}=Nh(()=>k(),n.closeDelay):k()}function T(){function N(R){R||(u.value=!0,c.value=!1)}n.beforeClose?n.beforeClose(N):E()}function M(){n.closeOnClickModal&&T()}function O(){Et&&(c.value=!0)}function k(){c.value=!1}function P(){o("openAutoFocus")}function L(){o("closeAutoFocus")}function j(N){var R;((R=N.detail)==null?void 0:R.focusReason)==="pointer"&&N.preventDefault()}n.lockScroll&&lO(c);function le(){n.closeOnPressEscape&&T()}return je(()=>n.modelValue,N=>{N?(u.value=!1,S(),d.value=!0,f.value=zT(n.zIndex)?s():f.value++,it(()=>{o("open"),e.value&&(e.value.scrollTop=0)})):c.value&&E()}),je(()=>n.fullscreen,N=>{e.value&&(N?(i=e.value.style.transform,e.value.style.transform=""):e.value.style.transform=i)}),ot(()=>{n.modelValue&&(c.value=!0,d.value=!0,S())}),{afterEnter:w,afterLeave:b,beforeLeave:y,handleClose:T,onModalClick:M,close:E,doClose:k,onOpenAutoFocus:P,onCloseAutoFocus:L,onCloseRequested:le,onFocusoutPrevented:j,titleId:l,bodyId:a,closed:u,style:v,overlayDialogStyle:m,rendered:d,visible:c,zIndex:f}},qW=["aria-label","aria-labelledby","aria-describedby"],KW=ge({name:"ElDialog",inheritAttrs:!1}),YW=ge({...KW,props:mM,emits:vM,setup(n,{expose:e}){const t=n,r=Ho();Tr({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},z(()=>!!r.title));const o=Xe("dialog"),s=V(),i=V(),l=V(),{visible:a,titleId:c,bodyId:u,style:d,overlayDialogStyle:f,rendered:h,zIndex:p,afterEnter:g,afterLeave:v,beforeLeave:m,handleClose:w,onModalClick:b,onOpenAutoFocus:y,onCloseAutoFocus:S,onCloseRequested:E,onFocusoutPrevented:T}=bM(t,s);zt(pM,{dialogRef:s,headerRef:i,bodyId:u,ns:o,rendered:h,style:d});const M=Iy(b),O=z(()=>t.draggable&&!t.fullscreen);return e({visible:a,dialogContentRef:l}),(k,P)=>(A(),ve(Fd,{to:k.appendTo,disabled:k.appendTo!=="body"?!1:!k.appendToBody},[C(Nr,{name:"dialog-fade",onAfterEnter:x(g),onAfterLeave:x(v),onBeforeLeave:x(m),persisted:""},{default:_(()=>[$e(C(x(jy),{"custom-mask-event":"",mask:k.modal,"overlay-class":k.modalClass,"z-index":x(p)},{default:_(()=>[F("div",{role:"dialog","aria-modal":"true","aria-label":k.title||void 0,"aria-labelledby":k.title?void 0:x(c),"aria-describedby":x(u),class:Z(`${x(o).namespace.value}-overlay-dialog`),style:wt(x(f)),onClick:P[0]||(P[0]=(...L)=>x(M).onClick&&x(M).onClick(...L)),onMousedown:P[1]||(P[1]=(...L)=>x(M).onMousedown&&x(M).onMousedown(...L)),onMouseup:P[2]||(P[2]=(...L)=>x(M).onMouseup&&x(M).onMouseup(...L))},[C(x(sg),{loop:"",trapped:x(a),"focus-start-el":"container",onFocusAfterTrapped:x(y),onFocusAfterReleased:x(S),onFocusoutPrevented:x(T),onReleaseRequested:x(E)},{default:_(()=>[x(h)?(A(),ve(GW,jr({key:0,ref_key:"dialogContentRef",ref:l},k.$attrs,{center:k.center,"align-center":k.alignCenter,"close-icon":k.closeIcon,draggable:x(O),overflow:k.overflow,fullscreen:k.fullscreen,"show-close":k.showClose,title:k.title,"aria-level":k.headerAriaLevel,onClose:x(w)}),xI({header:_(()=>[k.$slots.title?Ae(k.$slots,"title",{key:1}):Ae(k.$slots,"header",{key:0,close:x(w),titleId:x(c),titleClass:x(o).e("title")})]),default:_(()=>[Ae(k.$slots,"default")]),_:2},[k.$slots.footer?{name:"footer",fn:_(()=>[Ae(k.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):be("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,qW)]),_:3},8,["mask","overlay-class","z-index"]),[[Ye,x(a)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}});var JW=tt(YW,[["__file","dialog.vue"]]);const fl=Rt(JW),XW=st({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Ue(String),default:"solid"}}),ZW=ge({name:"ElDivider"}),QW=ge({...ZW,props:XW,setup(n){const e=n,t=Xe("divider"),r=z(()=>t.cssVar({"border-style":e.borderStyle}));return(o,s)=>(A(),q("div",{class:Z([x(t).b(),x(t).m(o.direction)]),style:wt(x(r)),role:"separator"},[o.$slots.default&&o.direction!=="vertical"?(A(),q("div",{key:0,class:Z([x(t).e("text"),x(t).is(o.contentPosition)])},[Ae(o.$slots,"default")],2)):be("v-if",!0)],6))}});var eG=tt(QW,[["__file","divider.vue"]]);const cg=Rt(eG),tG=st({...mM,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),nG=vM,rG=["aria-label","aria-labelledby","aria-describedby"],oG=["id","aria-level"],sG=["aria-label"],iG=["id"],lG=ge({name:"ElDrawer",inheritAttrs:!1}),aG=ge({...lG,props:tG,emits:nG,setup(n,{expose:e}){const t=n,r=Ho();Tr({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},z(()=>!!r.title));const o=V(),s=V(),i=Xe("drawer"),{t:l}=ws(),{afterEnter:a,afterLeave:c,beforeLeave:u,visible:d,rendered:f,titleId:h,bodyId:p,zIndex:g,onModalClick:v,onOpenAutoFocus:m,onCloseAutoFocus:w,onFocusoutPrevented:b,onCloseRequested:y,handleClose:S}=bM(t,o),E=z(()=>t.direction==="rtl"||t.direction==="ltr"),T=z(()=>po(t.size));return e({handleClose:S,afterEnter:a,afterLeave:c}),(M,O)=>(A(),ve(Fd,{to:"body",disabled:!M.appendToBody},[C(Nr,{name:x(i).b("fade"),onAfterEnter:x(a),onAfterLeave:x(c),onBeforeLeave:x(u),persisted:""},{default:_(()=>[$e(C(x(jy),{mask:M.modal,"overlay-class":M.modalClass,"z-index":x(g),onClick:x(v)},{default:_(()=>[C(x(sg),{loop:"",trapped:x(d),"focus-trap-el":o.value,"focus-start-el":s.value,onFocusAfterTrapped:x(m),onFocusAfterReleased:x(w),onFocusoutPrevented:x(b),onReleaseRequested:x(y)},{default:_(()=>[F("div",jr({ref_key:"drawerRef",ref:o,"aria-modal":"true","aria-label":M.title||void 0,"aria-labelledby":M.title?void 0:x(h),"aria-describedby":x(p)},M.$attrs,{class:[x(i).b(),M.direction,x(d)&&"open"],style:x(E)?"width: "+x(T):"height: "+x(T),role:"dialog",onClick:O[1]||(O[1]=It(()=>{},["stop"]))}),[F("span",{ref_key:"focusStartRef",ref:s,class:Z(x(i).e("sr-focus")),tabindex:"-1"},null,2),M.withHeader?(A(),q("header",{key:0,class:Z(x(i).e("header"))},[M.$slots.title?Ae(M.$slots,"title",{key:1},()=>[be(" DEPRECATED SLOT ")]):Ae(M.$slots,"header",{key:0,close:x(S),titleId:x(h),titleClass:x(i).e("title")},()=>[M.$slots.title?be("v-if",!0):(A(),q("span",{key:0,id:x(h),role:"heading","aria-level":M.headerAriaLevel,class:Z(x(i).e("title"))},oe(M.title),11,oG))]),M.showClose?(A(),q("button",{key:2,"aria-label":x(l)("el.drawer.close"),class:Z(x(i).e("close-btn")),type:"button",onClick:O[0]||(O[0]=(...k)=>x(S)&&x(S)(...k))},[C(x(dt),{class:Z(x(i).e("close"))},{default:_(()=>[C(x(oa))]),_:1},8,["class"])],10,sG)):be("v-if",!0)],2)):be("v-if",!0),x(f)?(A(),q("div",{key:1,id:x(p),class:Z(x(i).e("body"))},[Ae(M.$slots,"default")],10,iG)):be("v-if",!0),M.$slots.footer?(A(),q("div",{key:2,class:Z(x(i).e("footer"))},[Ae(M.$slots,"footer")],2)):be("v-if",!0)],16,rG)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Ye,x(d)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var cG=tt(aG,[["__file","drawer.vue"]]);const Cs=Rt(cG),uG=ge({inheritAttrs:!1});function dG(n,e,t,r,o,s){return Ae(n.$slots,"default")}var fG=tt(uG,[["render",dG],["__file","collection.vue"]]);const hG=ge({name:"ElCollectionItem",inheritAttrs:!1});function pG(n,e,t,r,o,s){return Ae(n.$slots,"default")}var gG=tt(hG,[["render",pG],["__file","collection-item.vue"]]);const mG="data-el-collection-item",vG=n=>{const e=`El${n}Collection`,t=`${e}Item`,r=Symbol(e),o=Symbol(t),s={...fG,name:e,setup(){const l=V(null),a=new Map;zt(r,{itemMap:a,getItems:()=>{const u=x(l);if(!u)return[];const d=Array.from(u.querySelectorAll(`[${mG}]`));return[...a.values()].sort((h,p)=>d.indexOf(h.ref)-d.indexOf(p.ref))},collectionRef:l})}},i={...gG,name:t,setup(l,{attrs:a}){const c=V(null),u=He(r,void 0);zt(o,{collectionItemRef:c}),ot(()=>{const d=x(c);d&&u.itemMap.set(d,{ref:d,...a})}),_n(()=>{const d=x(c);u.itemMap.delete(d)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:s,ElCollectionItem:i}},lm=st({trigger:pd.trigger,effect:{...Dr.effect,default:"light"},type:{type:Ue(String)},placement:{type:Ue(String),default:"bottom"},popperOptions:{type:Ue(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:Ue([Number,String]),default:0},maxHeight:{type:Ue([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Ue(Object)},teleported:Dr.teleported});st({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:go}});st({onKeydown:{type:Ue(Function)}});vG("Dropdown");const bG=st({urlList:{type:Ue(Array),default:()=>_o([])},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:Ue(String)}}),yG={close:()=>!0,switch:n=>Tt(n),rotate:n=>Tt(n)},wG=["src","crossorigin"],CG=ge({name:"ElImageViewer"}),xG=ge({...CG,props:bG,emits:yG,setup(n,{expose:e,emit:t}){var r;const o=n,s={CONTAIN:{name:"contain",icon:Ju(uz)},ORIGINAL:{name:"original",icon:Ju(Sz)}},{t:i}=ws(),l=Xe("image-viewer"),{nextZIndex:a}=eg(),c=V(),u=V([]),d=VE(),f=V(!0),h=V(o.initialIndex),p=No(s.CONTAIN),g=V({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),v=V((r=o.zIndex)!=null?r:a()),m=z(()=>{const{urlList:Q}=o;return Q.length<=1}),w=z(()=>h.value===0),b=z(()=>h.value===o.urlList.length-1),y=z(()=>o.urlList[h.value]),S=z(()=>[l.e("btn"),l.e("prev"),l.is("disabled",!o.infinite&&w.value)]),E=z(()=>[l.e("btn"),l.e("next"),l.is("disabled",!o.infinite&&b.value)]),T=z(()=>{const{scale:Q,deg:de,offsetX:ee,offsetY:Me,enableTransition:fe}=g.value;let Ce=ee/Q,Oe=Me/Q;switch(de%360){case 90:case-270:[Ce,Oe]=[Oe,-Ce];break;case 180:case-180:[Ce,Oe]=[-Ce,-Oe];break;case 270:case-90:[Ce,Oe]=[-Oe,Ce];break}const ne={transform:`scale(${Q}) rotate(${de}deg) translate(${Ce}px, ${Oe}px)`,transition:fe?"transform .3s":""};return p.value.name===s.CONTAIN.name&&(ne.maxWidth=ne.maxHeight="100%"),ne});function M(){k(),t("close")}function O(){const Q=ih(ee=>{switch(ee.code){case Cn.esc:o.closeOnPressEscape&&M();break;case Cn.space:N();break;case Cn.left:K();break;case Cn.up:U("zoomIn");break;case Cn.right:W();break;case Cn.down:U("zoomOut");break}}),de=ih(ee=>{const Me=ee.deltaY||ee.deltaX;U(Me<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});d.run(()=>{xn(document,"keydown",Q),xn(document,"wheel",de)})}function k(){d.stop()}function P(){f.value=!1}function L(Q){f.value=!1,Q.target.alt=i("el.image.error")}function j(Q){if(f.value||Q.button!==0||!c.value)return;g.value.enableTransition=!1;const{offsetX:de,offsetY:ee}=g.value,Me=Q.pageX,fe=Q.pageY,Ce=ih(ne=>{g.value={...g.value,offsetX:de+ne.pageX-Me,offsetY:ee+ne.pageY-fe}}),Oe=xn(document,"mousemove",Ce);xn(document,"mouseup",()=>{Oe()}),Q.preventDefault()}function le(){g.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function N(){if(f.value)return;const Q=Fh(s),de=Object.values(s),ee=p.value.name,fe=(de.findIndex(Ce=>Ce.name===ee)+1)%Q.length;p.value=s[Q[fe]],le()}function R(Q){const de=o.urlList.length;h.value=(Q+de)%de}function K(){w.value&&!o.infinite||R(h.value-1)}function W(){b.value&&!o.infinite||R(h.value+1)}function U(Q,de={}){if(f.value)return;const{minScale:ee,maxScale:Me}=o,{zoomRate:fe,rotateDeg:Ce,enableTransition:Oe}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...de};switch(Q){case"zoomOut":g.value.scale>ee&&(g.value.scale=Number.parseFloat((g.value.scale/fe).toFixed(3)));break;case"zoomIn":g.value.scale{it(()=>{const Q=u.value[0];Q!=null&&Q.complete||(f.value=!0)})}),je(h,Q=>{le(),t("switch",Q)}),ot(()=>{var Q,de;O(),(de=(Q=c.value)==null?void 0:Q.focus)==null||de.call(Q)}),e({setActiveItem:R}),(Q,de)=>(A(),ve(Fd,{to:"body",disabled:!Q.teleported},[C(Nr,{name:"viewer-fade",appear:""},{default:_(()=>[F("div",{ref_key:"wrapper",ref:c,tabindex:-1,class:Z(x(l).e("wrapper")),style:wt({zIndex:v.value})},[F("div",{class:Z(x(l).e("mask")),onClick:de[0]||(de[0]=It(ee=>Q.hideOnClickModal&&M(),["self"]))},null,2),be(" CLOSE "),F("span",{class:Z([x(l).e("btn"),x(l).e("close")]),onClick:M},[C(x(dt),null,{default:_(()=>[C(x(oa))]),_:1})],2),be(" ARROW "),x(m)?be("v-if",!0):(A(),q(Re,{key:0},[F("span",{class:Z(x(S)),onClick:K},[C(x(dt),null,{default:_(()=>[C(x(KT))]),_:1})],2),F("span",{class:Z(x(E)),onClick:W},[C(x(dt),null,{default:_(()=>[C(x(Jp))]),_:1})],2)],64)),be(" ACTIONS "),F("div",{class:Z([x(l).e("btn"),x(l).e("actions")])},[F("div",{class:Z(x(l).e("actions__inner"))},[C(x(dt),{onClick:de[1]||(de[1]=ee=>U("zoomOut"))},{default:_(()=>[C(x(Pz))]),_:1}),C(x(dt),{onClick:de[2]||(de[2]=ee=>U("zoomIn"))},{default:_(()=>[C(x(Az))]),_:1}),F("i",{class:Z(x(l).e("actions__divider"))},null,2),C(x(dt),{onClick:N},{default:_(()=>[(A(),ve(Bt(x(p).icon)))]),_:1}),F("i",{class:Z(x(l).e("actions__divider"))},null,2),C(x(dt),{onClick:de[3]||(de[3]=ee=>U("anticlockwise"))},{default:_(()=>[C(x(yz))]),_:1}),C(x(dt),{onClick:de[4]||(de[4]=ee=>U("clockwise"))},{default:_(()=>[C(x(Cz))]),_:1})],2)],2),be(" CANVAS "),F("div",{class:Z(x(l).e("canvas"))},[(A(!0),q(Re,null,St(Q.urlList,(ee,Me)=>$e((A(),q("img",{ref_for:!0,ref:fe=>u.value[Me]=fe,key:ee,src:ee,style:wt(x(T)),class:Z(x(l).e("img")),crossorigin:Q.crossorigin,onLoad:P,onError:L,onMousedown:j},null,46,wG)),[[Ye,Me===h.value]])),128))],2),Ae(Q.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var SG=tt(xG,[["__file","image-viewer.vue"]]);const EG=Rt(SG),_G=st({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:Ue([String,Object])},previewSrcList:{type:Ue(Array),default:()=>_o([])},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:Ue(String)}}),TG={load:n=>n instanceof Event,error:n=>n instanceof Event,switch:n=>Tt(n),close:()=>!0,show:()=>!0},OG=["src","loading","crossorigin"],MG={key:0},AG=ge({name:"ElImage",inheritAttrs:!1}),kG=ge({...AG,props:_G,emits:TG,setup(n,{emit:e}){const t=n;let r="";const{t:o}=ws(),s=Xe("image"),i=u2(),l=rO(),a=V(),c=V(!1),u=V(!0),d=V(!1),f=V(),h=V(),p=Et&&"loading"in HTMLImageElement.prototype;let g,v;const m=z(()=>[s.e("inner"),y.value&&s.e("preview"),u.value&&s.is("loading")]),w=z(()=>i.style),b=z(()=>{const{fit:W}=t;return Et&&W?{objectFit:W}:{}}),y=z(()=>{const{previewSrcList:W}=t;return Array.isArray(W)&&W.length>0}),S=z(()=>{const{previewSrcList:W,initialIndex:U}=t;let Q=U;return U>W.length-1&&(Q=0),Q}),E=z(()=>t.loading==="eager"?!1:!p&&t.loading==="lazy"||t.lazy),T=()=>{Et&&(u.value=!0,c.value=!1,a.value=t.src)};function M(W){u.value=!1,c.value=!1,e("load",W)}function O(W){u.value=!1,c.value=!0,e("error",W)}function k(){LD(f.value,h.value)&&(T(),j())}const P=gD(k,200,!0);async function L(){var W;if(!Et)return;await it();const{scrollContainer:U}=t;ho(U)?h.value=U:ht(U)&&U!==""?h.value=(W=document.querySelector(U))!=null?W:void 0:f.value&&(h.value=q6(f.value)),h.value&&(g=xn(h,"scroll",P),setTimeout(()=>k(),100))}function j(){!Et||!h.value||!P||(g==null||g(),h.value=void 0)}function le(W){if(W.ctrlKey){if(W.deltaY<0)return W.preventDefault(),!1;if(W.deltaY>0)return W.preventDefault(),!1}}function N(){y.value&&(v=xn("wheel",le,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",d.value=!0,e("show"))}function R(){v==null||v(),document.body.style.overflow=r,d.value=!1,e("close")}function K(W){e("switch",W)}return je(()=>t.src,()=>{E.value?(u.value=!0,c.value=!1,j(),L()):T()}),ot(()=>{E.value?L():T()}),(W,U)=>(A(),q("div",{ref_key:"container",ref:f,class:Z([x(s).b(),W.$attrs.class]),style:wt(x(w))},[c.value?Ae(W.$slots,"error",{key:0},()=>[F("div",{class:Z(x(s).e("error"))},oe(x(o)("el.image.error")),3)]):(A(),q(Re,{key:1},[a.value!==void 0?(A(),q("img",jr({key:0},x(l),{src:a.value,loading:W.loading,style:x(b),class:x(m),crossorigin:W.crossorigin,onClick:N,onLoad:M,onError:O}),null,16,OG)):be("v-if",!0),u.value?(A(),q("div",{key:1,class:Z(x(s).e("wrapper"))},[Ae(W.$slots,"placeholder",{},()=>[F("div",{class:Z(x(s).e("placeholder"))},null,2)])],2)):be("v-if",!0)],64)),x(y)?(A(),q(Re,{key:2},[d.value?(A(),ve(x(EG),{key:0,"z-index":W.zIndex,"initial-index":x(S),infinite:W.infinite,"zoom-rate":W.zoomRate,"min-scale":W.minScale,"max-scale":W.maxScale,"url-list":W.previewSrcList,crossorigin:W.crossorigin,"hide-on-click-modal":W.hideOnClickModal,teleported:W.previewTeleported,"close-on-press-escape":W.closeOnPressEscape,onClose:R,onSwitch:K},{default:_(()=>[W.$slots.viewer?(A(),q("div",MG,[Ae(W.$slots,"viewer")])):be("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):be("v-if",!0)],64)):be("v-if",!0)],6))}});var PG=tt(kG,[["__file","image.vue"]]);const yM=Rt(PG),NG=st({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:ni,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:n=>n===null||Tt(n)||["min","max"].includes(n),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:n=>n>=0&&n===Number.parseInt(`${n}`,10)},validateEvent:{type:Boolean,default:!0},...ri(["ariaLabel"])}),IG={[Jd]:(n,e)=>e!==n,blur:n=>n instanceof FocusEvent,focus:n=>n instanceof FocusEvent,[ah]:n=>Tt(n)||is(n),[Ht]:n=>Tt(n)||is(n)},LG=["aria-label","onKeydown"],RG=["aria-label","onKeydown"],$G=ge({name:"ElInputNumber"}),DG=ge({...$G,props:NG,emits:IG,setup(n,{expose:e,emit:t}){const r=n,{t:o}=ws(),s=Xe("input-number"),i=V(),l=yt({currentValue:r.modelValue,userInput:null}),{formItem:a}=dl(),c=z(()=>Tt(r.modelValue)&&r.modelValue<=r.min),u=z(()=>Tt(r.modelValue)&&r.modelValue>=r.max),d=z(()=>{const N=m(r.step);return _r(r.precision)?Math.max(m(r.modelValue),N):(N>r.precision,r.precision)}),f=z(()=>r.controls&&r.controlsPosition==="right"),h=bo(),p=qc(),g=z(()=>{if(l.userInput!==null)return l.userInput;let N=l.currentValue;if(is(N))return"";if(Tt(N)){if(Number.isNaN(N))return"";_r(r.precision)||(N=N.toFixed(r.precision))}return N}),v=(N,R)=>{if(_r(R)&&(R=d.value),R===0)return Math.round(N);let K=String(N);const W=K.indexOf(".");if(W===-1||!K.replace(".","").split("")[W+R])return N;const de=K.length;return K.charAt(de-1)==="5"&&(K=`${K.slice(0,Math.max(0,de-1))}6`),Number.parseFloat(Number(K).toFixed(R))},m=N=>{if(is(N))return 0;const R=N.toString(),K=R.indexOf(".");let W=0;return K!==-1&&(W=R.length-K-1),W},w=(N,R=1)=>Tt(N)?v(N+r.step*R):l.currentValue,b=()=>{if(r.readonly||p.value||u.value)return;const N=Number(g.value)||0,R=w(N);E(R),t(ah,l.currentValue),j()},y=()=>{if(r.readonly||p.value||c.value)return;const N=Number(g.value)||0,R=w(N,-1);E(R),t(ah,l.currentValue),j()},S=(N,R)=>{const{max:K,min:W,step:U,precision:Q,stepStrictly:de,valueOnClear:ee}=r;KK||MeK?K:W,R&&t(Ht,Me)),Me},E=(N,R=!0)=>{var K;const W=l.currentValue,U=S(N);if(!R){t(Ht,U);return}W===U&&N||(l.userInput=null,t(Ht,U),W!==U&&t(Jd,U,W),r.validateEvent&&((K=a==null?void 0:a.validate)==null||K.call(a,"change").catch(Q=>void 0)),l.currentValue=U)},T=N=>{l.userInput=N;const R=N===""?null:Number(N);t(ah,R),E(R,!1)},M=N=>{const R=N!==""?Number(N):"";(Tt(R)&&!Number.isNaN(R)||N==="")&&E(R),j(),l.userInput=null},O=()=>{var N,R;(R=(N=i.value)==null?void 0:N.focus)==null||R.call(N)},k=()=>{var N,R;(R=(N=i.value)==null?void 0:N.blur)==null||R.call(N)},P=N=>{t("focus",N)},L=N=>{var R;l.userInput=null,t("blur",N),r.validateEvent&&((R=a==null?void 0:a.validate)==null||R.call(a,"blur").catch(K=>void 0))},j=()=>{l.currentValue!==r.modelValue&&(l.currentValue=r.modelValue)},le=N=>{document.activeElement===N.target&&N.preventDefault()};return je(()=>r.modelValue,(N,R)=>{const K=S(N,!0);l.userInput===null&&K!==R&&(l.currentValue=K)},{immediate:!0}),ot(()=>{var N;const{min:R,max:K,modelValue:W}=r,U=(N=i.value)==null?void 0:N.input;if(U.setAttribute("role","spinbutton"),Number.isFinite(K)?U.setAttribute("aria-valuemax",String(K)):U.removeAttribute("aria-valuemax"),Number.isFinite(R)?U.setAttribute("aria-valuemin",String(R)):U.removeAttribute("aria-valuemin"),U.setAttribute("aria-valuenow",l.currentValue||l.currentValue===0?String(l.currentValue):""),U.setAttribute("aria-disabled",String(p.value)),!Tt(W)&&W!=null){let Q=Number(W);Number.isNaN(Q)&&(Q=null),t(Ht,Q)}U.addEventListener("wheel",le,{passive:!1})}),ga(()=>{var N,R;const K=(N=i.value)==null?void 0:N.input;K==null||K.setAttribute("aria-valuenow",`${(R=l.currentValue)!=null?R:""}`)}),Tr({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-input-number",ref:"https://element-plus.org/en-US/component/input-number.html"},z(()=>!!r.label)),e({focus:O,blur:k}),(N,R)=>(A(),q("div",{class:Z([x(s).b(),x(s).m(x(h)),x(s).is("disabled",x(p)),x(s).is("without-controls",!N.controls),x(s).is("controls-right",x(f))]),onDragstart:R[0]||(R[0]=It(()=>{},["prevent"]))},[N.controls?$e((A(),q("span",{key:0,role:"button","aria-label":x(o)("el.inputNumber.decrease"),class:Z([x(s).e("decrease"),x(s).is("disabled",x(c))]),onKeydown:ir(y,["enter"])},[Ae(N.$slots,"decrease-icon",{},()=>[C(x(dt),null,{default:_(()=>[x(f)?(A(),ve(x(vy),{key:0})):(A(),ve(x(mz),{key:1}))]),_:1})])],42,LG)),[[x(lx),y]]):be("v-if",!0),N.controls?$e((A(),q("span",{key:1,role:"button","aria-label":x(o)("el.inputNumber.increase"),class:Z([x(s).e("increase"),x(s).is("disabled",x(u))]),onKeydown:ir(b,["enter"])},[Ae(N.$slots,"increase-icon",{},()=>[C(x(dt),null,{default:_(()=>[x(f)?(A(),ve(x(YT),{key:0})):(A(),ve(x(JT),{key:1}))]),_:1})])],42,RG)),[[x(lx),b]]):be("v-if",!0),C(x(yn),{id:N.id,ref_key:"input",ref:i,type:"number",step:N.step,"model-value":x(g),placeholder:N.placeholder,readonly:N.readonly,disabled:x(p),size:x(h),max:N.max,min:N.min,name:N.name,"aria-label":N.label||N.ariaLabel,"validate-event":!1,onKeydown:[ir(It(b,["prevent"]),["up"]),ir(It(y,["prevent"]),["down"])],onBlur:L,onFocus:P,onInput:T,onChange:M},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","onKeydown"])],34))}});var VG=tt(DG,[["__file","input-number.vue"]]);const ug=Rt(VG),BG=st({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:go}}),FG={click:n=>n instanceof MouseEvent},zG=["href","target"],jG=ge({name:"ElLink"}),HG=ge({...jG,props:BG,emits:FG,setup(n,{emit:e}){const t=n,r=Xe("link"),o=z(()=>[r.b(),r.m(t.type),r.is("disabled",t.disabled),r.is("underline",t.underline&&!t.disabled)]);function s(i){t.disabled||e("click",i)}return(i,l)=>(A(),q("a",{class:Z(x(o)),href:i.disabled||!i.href?void 0:i.href,target:i.disabled||!i.href?void 0:i.target,onClick:s},[i.icon?(A(),ve(x(dt),{key:0},{default:_(()=>[(A(),ve(Bt(i.icon)))]),_:1})):be("v-if",!0),i.$slots.default?(A(),q("span",{key:1,class:Z(x(r).e("inner"))},[Ae(i.$slots,"default")],2)):be("v-if",!0),i.$slots.icon?Ae(i.$slots,"icon",{key:2}):be("v-if",!0)],10,zG))}});var UG=tt(HG,[["__file","link.vue"]]);const WG=Rt(UG),GG=st({icon:{type:go,default:()=>tz},title:String,content:{type:String,default:""}}),qG={back:()=>!0},KG=["aria-label"],YG=ge({name:"ElPageHeader"}),JG=ge({...YG,props:GG,emits:qG,setup(n,{emit:e}){const t=Ho(),{t:r}=ws(),o=Xe("page-header"),s=z(()=>[o.b(),{[o.m("has-breadcrumb")]:!!t.breadcrumb,[o.m("has-extra")]:!!t.extra,[o.is("contentful")]:!!t.default}]);function i(){e("back")}return(l,a)=>(A(),q("div",{class:Z(x(s))},[l.$slots.breadcrumb?(A(),q("div",{key:0,class:Z(x(o).e("breadcrumb"))},[Ae(l.$slots,"breadcrumb")],2)):be("v-if",!0),F("div",{class:Z(x(o).e("header"))},[F("div",{class:Z(x(o).e("left"))},[F("div",{class:Z(x(o).e("back")),role:"button",tabindex:"0",onClick:i},[l.icon||l.$slots.icon?(A(),q("div",{key:0,"aria-label":l.title||x(r)("el.pageHeader.title"),class:Z(x(o).e("icon"))},[Ae(l.$slots,"icon",{},()=>[l.icon?(A(),ve(x(dt),{key:0},{default:_(()=>[(A(),ve(Bt(l.icon)))]),_:1})):be("v-if",!0)])],10,KG)):be("v-if",!0),F("div",{class:Z(x(o).e("title"))},[Ae(l.$slots,"title",{},()=>[G(oe(l.title||x(r)("el.pageHeader.title")),1)])],2)],2),C(x(cg),{direction:"vertical"}),F("div",{class:Z(x(o).e("content"))},[Ae(l.$slots,"content",{},()=>[G(oe(l.content),1)])],2)],2),l.$slots.extra?(A(),q("div",{key:0,class:Z(x(o).e("extra"))},[Ae(l.$slots,"extra")],2)):be("v-if",!0)],2),l.$slots.default?(A(),q("div",{key:1,class:Z(x(o).e("main"))},[Ae(l.$slots,"default")],2)):be("v-if",!0)],2))}});var XG=tt(JG,[["__file","page-header.vue"]]);const xs=Rt(XG),wM=Symbol("ElSelectGroup"),dg=Symbol("ElSelect");function ZG(n,e){const t=He(dg),r=He(wM,{disabled:!1}),o=z(()=>t.props.multiple?u(t.props.modelValue,n.value):u([t.props.modelValue],n.value)),s=z(()=>{if(t.props.multiple){const h=t.props.modelValue||[];return!o.value&&h.length>=t.props.multipleLimit&&t.props.multipleLimit>0}else return!1}),i=z(()=>n.label||(gt(n.value)?"":n.value)),l=z(()=>n.value||n.label||""),a=z(()=>n.disabled||e.groupDisabled||s.value),c=vt(),u=(h=[],p)=>{if(gt(n.value)){const g=t.props.valueKey;return h&&h.some(v=>kt(ro(v,g))===ro(p,g))}else return h&&h.includes(p)},d=()=>{!n.disabled&&!r.disabled&&(t.states.hoveringIndex=t.optionsArray.indexOf(c.proxy))},f=h=>{const p=new RegExp(U6(h),"i");e.visible=p.test(i.value)||n.created};return je(()=>i.value,()=>{!n.created&&!t.props.remote&&t.setSelected()}),je(()=>n.value,(h,p)=>{const{remote:g,valueKey:v}=t.props;if(Or(h,p)||(t.onOptionDestroy(p,c.proxy),t.onOptionCreate(c.proxy)),!n.created&&!g){if(v&>(h)&>(p)&&h[v]===p[v])return;t.setSelected()}}),je(()=>r.disabled,()=>{e.groupDisabled=r.disabled},{immediate:!0}),{select:t,currentLabel:i,currentValue:l,itemSelected:o,isDisabled:a,hoverItem:d,updateOption:f}}const QG=ge({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(n){const e=Xe("select"),t=hs(),r=z(()=>[e.be("dropdown","item"),e.is("disabled",x(l)),e.is("selected",x(i)),e.is("hovering",x(f))]),o=yt({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:s,itemSelected:i,isDisabled:l,select:a,hoverItem:c,updateOption:u}=ZG(n,o),{visible:d,hover:f}=Xs(o),h=vt().proxy;a.onOptionCreate(h),_n(()=>{const g=h.value,{selected:v}=a.states,w=(a.props.multiple?v:[v]).some(b=>b.value===h.value);it(()=>{a.states.cachedOptions.get(g)===h&&!w&&a.states.cachedOptions.delete(g)}),a.onOptionDestroy(g,h)});function p(){n.disabled!==!0&&o.groupDisabled!==!0&&a.handleOptionSelect(h)}return{ns:e,id:t,containerKls:r,currentLabel:s,itemSelected:i,isDisabled:l,select:a,hoverItem:c,updateOption:u,visible:d,hover:f,selectOptionClick:p,states:o}}}),eq=["id","aria-disabled","aria-selected"];function tq(n,e,t,r,o,s){return $e((A(),q("li",{id:n.id,class:Z(n.containerKls),role:"option","aria-disabled":n.isDisabled||void 0,"aria-selected":n.itemSelected,onMouseenter:e[0]||(e[0]=(...i)=>n.hoverItem&&n.hoverItem(...i)),onClick:e[1]||(e[1]=It((...i)=>n.selectOptionClick&&n.selectOptionClick(...i),["stop"]))},[Ae(n.$slots,"default",{},()=>[F("span",null,oe(n.currentLabel),1)])],42,eq)),[[Ye,n.visible]])}var Hy=tt(QG,[["render",tq],["__file","option.vue"]]);const nq=ge({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const n=He(dg),e=Xe("select"),t=z(()=>n.props.popperClass),r=z(()=>n.props.multiple),o=z(()=>n.props.fitInputWidth),s=V("");function i(){var l;s.value=`${(l=n.selectRef)==null?void 0:l.offsetWidth}px`}return ot(()=>{i(),mr(n.selectRef,i)}),{ns:e,minWidth:s,popperClass:t,isMultiple:r,isFitInputWidth:o}}});function rq(n,e,t,r,o,s){return A(),q("div",{class:Z([n.ns.b("dropdown"),n.ns.is("multiple",n.isMultiple),n.popperClass]),style:wt({[n.isFitInputWidth?"width":"minWidth"]:n.minWidth})},[n.$slots.header?(A(),q("div",{key:0,class:Z(n.ns.be("dropdown","header"))},[Ae(n.$slots,"header")],2)):be("v-if",!0),Ae(n.$slots,"default"),n.$slots.footer?(A(),q("div",{key:1,class:Z(n.ns.be("dropdown","footer"))},[Ae(n.$slots,"footer")],2)):be("v-if",!0)],6)}var oq=tt(nq,[["render",rq],["__file","select-dropdown.vue"]]);function sq(n){const e=V(!1);return{handleCompositionStart:()=>{e.value=!0},handleCompositionUpdate:s=>{const i=s.target.value,l=i[i.length-1]||"";e.value=!nO(l)},handleCompositionEnd:s=>{e.value&&(e.value=!1,Je(n)&&n(s))}}}const iq=11,lq=(n,e)=>{const{t}=ws(),r=hs(),o=Xe("select"),s=Xe("input"),i=yt({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=V(null),a=V(null),c=V(null),u=V(null),d=V(null),f=V(null),h=V(null),p=V(null),g=V(null),v=V(null),m=V(null),w=V(null),{wrapperRef:b,isFocused:y,handleFocus:S,handleBlur:E}=OO(d,{afterFocus(){n.automaticDropdown&&!T.value&&(T.value=!0,i.menuVisibleOnFocus=!0)},beforeBlur(we){var Fe,$t;return((Fe=c.value)==null?void 0:Fe.isFocusInsideContent(we))||(($t=u.value)==null?void 0:$t.isFocusInsideContent(we))},afterBlur(){T.value=!1,i.menuVisibleOnFocus=!1}}),T=V(!1),M=V(),{form:O,formItem:k}=dl(),{inputId:P}=Qd(n,{formItemContext:k}),{valueOnClear:L,isEmptyValue:j}=dH(n),le=z(()=>n.disabled||(O==null?void 0:O.disabled)),N=z(()=>n.multiple?ze(n.modelValue)&&n.modelValue.length>0:!j(n.modelValue)),R=z(()=>n.clearable&&!le.value&&i.inputHovering&&N.value),K=z(()=>n.remote&&n.filterable&&!n.remoteShowSuffix?"":n.suffixIcon),W=z(()=>o.is("reverse",K.value&&T.value)),U=z(()=>(k==null?void 0:k.validateState)||""),Q=z(()=>eO[U.value]),de=z(()=>n.remote?300:0),ee=z(()=>n.loading?n.loadingText||t("el.select.loading"):n.remote&&!i.inputValue&&i.options.size===0?!1:n.filterable&&i.inputValue&&i.options.size>0&&Me.value===0?n.noMatchText||t("el.select.noMatch"):i.options.size===0?n.noDataText||t("el.select.noData"):null),Me=z(()=>fe.value.filter(we=>we.visible).length),fe=z(()=>{const we=Array.from(i.options.values()),Fe=[];return i.optionValues.forEach($t=>{const rn=we.findIndex(li=>li.value===$t);rn>-1&&Fe.push(we[rn])}),Fe.length>=we.length?Fe:we}),Ce=z(()=>Array.from(i.cachedOptions.values())),Oe=z(()=>{const we=fe.value.filter(Fe=>!Fe.created).some(Fe=>Fe.currentLabel===i.inputValue);return n.filterable&&n.allowCreate&&i.inputValue!==""&&!we}),ne=()=>{n.filterable&&Je(n.filterMethod)||n.filterable&&n.remote&&Je(n.remoteMethod)||fe.value.forEach(we=>{var Fe;(Fe=we.updateOption)==null||Fe.call(we,i.inputValue)})},ie=bo(),X=z(()=>["small"].includes(ie.value)?"small":"default"),me=z({get(){return T.value&&ee.value!==!1},set(we){T.value=we}}),Pe=z(()=>ze(n.modelValue)?n.modelValue.length===0&&!i.inputValue:n.filterable?!i.inputValue:!0),Ee=z(()=>{var we;const Fe=(we=n.placeholder)!=null?we:t("el.select.placeholder");return n.multiple||!N.value?Fe:i.selectedLabel}),$=z(()=>fv?null:"mouseenter");je(()=>n.modelValue,(we,Fe)=>{n.multiple&&n.filterable&&!n.reserveKeyword&&(i.inputValue="",I("")),he(),!Or(we,Fe)&&n.validateEvent&&(k==null||k.validate("change").catch($t=>void 0))},{flush:"post",deep:!0}),je(()=>T.value,we=>{we?I(i.inputValue):(i.inputValue="",i.previousQuery=null,i.isBeforeHide=!0),e("visible-change",we)}),je(()=>i.options.entries(),()=>{var we;if(!Et)return;const Fe=((we=l.value)==null?void 0:we.querySelectorAll("input"))||[];(!n.filterable&&!n.defaultFirstOption&&!_r(n.modelValue)||!Array.from(Fe).includes(document.activeElement))&&he(),n.defaultFirstOption&&(n.filterable||n.remote)&&Me.value&&re()},{flush:"post"}),je(()=>i.hoveringIndex,we=>{Tt(we)&&we>-1?M.value=fe.value[we]||{}:M.value={},fe.value.forEach(Fe=>{Fe.hover=M.value===Fe})}),ss(()=>{i.isBeforeHide||ne()});const I=we=>{i.previousQuery!==we&&(i.previousQuery=we,n.filterable&&Je(n.filterMethod)?n.filterMethod(we):n.filterable&&n.remote&&Je(n.remoteMethod)&&n.remoteMethod(we),n.defaultFirstOption&&(n.filterable||n.remote)&&Me.value?it(re):it(Se))},re=()=>{const we=fe.value.filter(rn=>rn.visible&&!rn.disabled&&!rn.states.groupDisabled),Fe=we.find(rn=>rn.created),$t=we[0];i.hoveringIndex=Ie(fe.value,Fe||$t)},he=()=>{if(n.multiple)i.selectedLabel="";else{const Fe=pe(n.modelValue);i.selectedLabel=Fe.currentLabel,i.selected=Fe;return}const we=[];ze(n.modelValue)&&n.modelValue.forEach(Fe=>{we.push(pe(Fe))}),i.selected=we},pe=we=>{let Fe;const $t=eh(we).toLowerCase()==="object",rn=eh(we).toLowerCase()==="null",li=eh(we).toLowerCase()==="undefined";for(let wl=i.cachedOptions.size-1;wl>=0;wl--){const Yo=Ce.value[wl];if($t?ro(Yo.value,n.valueKey)===ro(we,n.valueKey):Yo.value===we){Fe={value:we,currentLabel:Yo.currentLabel,get isDisabled(){return Yo.isDisabled}};break}}if(Fe)return Fe;const xa=$t?we.label:!rn&&!li?we:"";return{value:we,currentLabel:xa}},Se=()=>{n.multiple?i.hoveringIndex=fe.value.findIndex(we=>i.selected.some(Fe=>Ko(Fe)===Ko(we))):i.hoveringIndex=fe.value.findIndex(we=>Ko(we)===Ko(i.selected))},_e=()=>{i.selectionWidth=a.value.getBoundingClientRect().width},D=()=>{i.calculatorWidth=f.value.getBoundingClientRect().width},B=()=>{i.collapseItemWidth=m.value.getBoundingClientRect().width},J=()=>{var we,Fe;(Fe=(we=c.value)==null?void 0:we.updatePopper)==null||Fe.call(we)},ce=()=>{var we,Fe;(Fe=(we=u.value)==null?void 0:we.updatePopper)==null||Fe.call(we)},ke=()=>{i.inputValue.length>0&&!T.value&&(T.value=!0),I(i.inputValue)},se=we=>{if(i.inputValue=we.target.value,n.remote)te();else return ke()},te=uc(()=>{ke()},de.value),ue=we=>{Or(n.modelValue,we)||e(Jd,we)},qe=we=>r6(we,Fe=>!i.disabledOptions.has(Fe)),ye=we=>{if(n.multiple&&we.code!==Cn.delete&&we.target.value.length<=0){const Fe=n.modelValue.slice(),$t=qe(Fe);if($t<0)return;const rn=Fe[$t];Fe.splice($t,1),e(Ht,Fe),ue(Fe),e("remove-tag",rn)}},H=(we,Fe)=>{const $t=i.selected.indexOf(Fe);if($t>-1&&!le.value){const rn=n.modelValue.slice();rn.splice($t,1),e(Ht,rn),ue(rn),e("remove-tag",Fe.value)}we.stopPropagation(),dr()},xe=we=>{we.stopPropagation();const Fe=n.multiple?[]:L.value;if(n.multiple)for(const $t of i.selected)$t.isDisabled&&Fe.push($t.value);e(Ht,Fe),ue(Fe),i.hoveringIndex=-1,T.value=!1,e("clear"),dr()},Be=we=>{if(n.multiple){const Fe=(n.modelValue||[]).slice(),$t=Ie(Fe,we.value);$t>-1?Fe.splice($t,1):(n.multipleLimit<=0||Fe.length{ae(we)})},Ie=(we=[],Fe)=>{if(!gt(Fe))return we.indexOf(Fe);const $t=n.valueKey;let rn=-1;return we.some((li,xa)=>kt(ro(li,$t))===ro(Fe,$t)?(rn=xa,!0):!1),rn},ae=we=>{var Fe,$t,rn,li,xa;const mf=ze(we)?we[0]:we;let wl=null;if(mf!=null&&mf.value){const Yo=fe.value.filter(B0=>B0.value===mf.value);Yo.length>0&&(wl=Yo[0].$el)}if(c.value&&wl){const Yo=(li=(rn=($t=(Fe=c.value)==null?void 0:Fe.popperRef)==null?void 0:$t.contentRef)==null?void 0:rn.querySelector)==null?void 0:li.call(rn,`.${o.be("dropdown","wrap")}`);Yo&&Y6(Yo,wl)}(xa=w.value)==null||xa.handleScroll()},Le=we=>{i.options.set(we.value,we),i.cachedOptions.set(we.value,we),we.disabled&&i.disabledOptions.set(we.value,we)},De=(we,Fe)=>{i.options.get(we)===Fe&&i.options.delete(we)},{handleCompositionStart:rt,handleCompositionUpdate:lt,handleCompositionEnd:nn}=sq(we=>se(we)),wn=z(()=>{var we,Fe;return(Fe=(we=c.value)==null?void 0:we.popperRef)==null?void 0:Fe.contentRef}),tn=()=>{i.isBeforeHide=!1,it(()=>ae(i.selected))},dr=()=>{var we;(we=d.value)==null||we.focus()},fr=()=>{qo()},Ts=we=>{xe(we)},qo=we=>{if(T.value=!1,y.value){const Fe=new FocusEvent("focus",we);it(()=>E(Fe))}},Te=()=>{i.inputValue.length>0?i.inputValue="":T.value=!1},gf=()=>{le.value||(fv&&(i.inputHovering=!0),i.menuVisibleOnFocus?i.menuVisibleOnFocus=!1:T.value=!T.value)},tu=()=>{T.value?fe.value[i.hoveringIndex]&&Be(fe.value[i.hoveringIndex]):gf()},Ko=we=>gt(we.value)?ro(we.value,n.valueKey):we.value,dN=z(()=>fe.value.filter(we=>we.visible).every(we=>we.disabled)),fN=z(()=>n.multiple?n.collapseTags?i.selected.slice(0,n.maxCollapseTags):i.selected:[]),hN=z(()=>n.multiple?n.collapseTags?i.selected.slice(n.maxCollapseTags):[]:[]),V0=we=>{if(!T.value){T.value=!0;return}if(!(i.options.size===0||Me.value===0)&&!dN.value){we==="next"?(i.hoveringIndex++,i.hoveringIndex===i.options.size&&(i.hoveringIndex=0)):we==="prev"&&(i.hoveringIndex--,i.hoveringIndex<0&&(i.hoveringIndex=i.options.size-1));const Fe=fe.value[i.hoveringIndex];(Fe.disabled===!0||Fe.states.groupDisabled===!0||!Fe.visible)&&V0(we),it(()=>ae(M.value))}},pN=()=>{if(!a.value)return 0;const we=window.getComputedStyle(a.value);return Number.parseFloat(we.gap||"6px")},gN=z(()=>{const we=pN();return{maxWidth:`${m.value&&n.maxCollapseTags===1?i.selectionWidth-i.collapseItemWidth-we:i.selectionWidth}px`}}),mN=z(()=>({maxWidth:`${i.selectionWidth}px`})),vN=z(()=>({width:`${Math.max(i.calculatorWidth,iq)}px`}));return n.multiple&&!ze(n.modelValue)&&e(Ht,[]),!n.multiple&&ze(n.modelValue)&&e(Ht,""),mr(a,_e),mr(f,D),mr(g,J),mr(b,J),mr(v,ce),mr(m,B),ot(()=>{he()}),{inputId:P,contentId:r,nsSelect:o,nsInput:s,states:i,isFocused:y,expanded:T,optionsArray:fe,hoverOption:M,selectSize:ie,filteredOptionsCount:Me,resetCalculatorWidth:D,updateTooltip:J,updateTagTooltip:ce,debouncedOnInputChange:te,onInput:se,deletePrevTag:ye,deleteTag:H,deleteSelected:xe,handleOptionSelect:Be,scrollToOption:ae,hasModelValue:N,shouldShowPlaceholder:Pe,currentPlaceholder:Ee,mouseEnterEventName:$,showClose:R,iconComponent:K,iconReverse:W,validateState:U,validateIcon:Q,showNewOption:Oe,updateOptions:ne,collapseTagSize:X,setSelected:he,selectDisabled:le,emptyText:ee,handleCompositionStart:rt,handleCompositionUpdate:lt,handleCompositionEnd:nn,onOptionCreate:Le,onOptionDestroy:De,handleMenuEnter:tn,handleFocus:S,focus:dr,blur:fr,handleBlur:E,handleClearClick:Ts,handleClickOutside:qo,handleEsc:Te,toggleMenu:gf,selectOption:tu,getValueKey:Ko,navigateOptions:V0,dropdownMenuVisible:me,showTagList:fN,collapseTagList:hN,tagStyle:gN,collapseTagStyle:mN,inputStyle:vN,popperRef:wn,inputRef:d,tooltipRef:c,tagTooltipRef:u,calculatorRef:f,prefixRef:h,suffixRef:p,selectRef:l,wrapperRef:b,selectionRef:a,scrollbarRef:w,menuRef:g,tagMenuRef:v,collapseItemRef:m}};var aq=ge({name:"ElOptions",setup(n,{slots:e}){const t=He(dg);let r=[];return()=>{var o,s;const i=(o=e.default)==null?void 0:o.call(e),l=[];function a(c){ze(c)&&c.forEach(u=>{var d,f,h,p;const g=(d=(u==null?void 0:u.type)||{})==null?void 0:d.name;g==="ElOptionGroup"?a(!ht(u.children)&&!ze(u.children)&&Je((f=u.children)==null?void 0:f.default)?(h=u.children)==null?void 0:h.default():u.children):g==="ElOption"?l.push((p=u.props)==null?void 0:p.value):ze(u.children)&&a(u.children)})}return i.length&&a((s=i[0])==null?void 0:s.children),Or(l,r)||(r=l,t&&(t.states.optionValues=l)),i}}});const cq=st({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:ni,effect:{type:Ue(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Ue(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:Dr.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:go,default:yy},fitInputWidth:Boolean,suffixIcon:{type:go,default:vy},tagType:{...Bv.type,default:"info"},tagEffect:{...Bv.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:Ue(String),values:Zp,default:"bottom-start"},fallbackPlacements:{type:Ue(Array),default:["bottom-start","top-start","right","left"]},...uH,...ri(["ariaLabel"])}),hx="ElSelect",uq=ge({name:hx,componentName:hx,components:{ElInput:yn,ElSelectMenu:oq,ElOption:Hy,ElOptions:aq,ElTag:aM,ElScrollbar:rg,ElTooltip:Lr,ElIcon:dt},directives:{ClickOutside:HO},props:cq,emits:[Ht,Jd,"remove-tag","clear","visible-change","focus","blur"],setup(n,{emit:e}){const t=lq(n,e);return zt(dg,yt({props:n,states:t.states,optionsArray:t.optionsArray,handleOptionSelect:t.handleOptionSelect,onOptionCreate:t.onOptionCreate,onOptionDestroy:t.onOptionDestroy,selectRef:t.selectRef,setSelected:t.setSelected})),{...t}}}),dq=["id","name","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],fq=["textContent"],hq={key:1};function pq(n,e,t,r,o,s){const i=at("el-tag"),l=at("el-tooltip"),a=at("el-icon"),c=at("el-option"),u=at("el-options"),d=at("el-scrollbar"),f=at("el-select-menu"),h=Hb("click-outside");return $e((A(),q("div",{ref:"selectRef",class:Z([n.nsSelect.b(),n.nsSelect.m(n.selectSize)]),[th(n.mouseEnterEventName)]:e[16]||(e[16]=p=>n.states.inputHovering=!0),onMouseleave:e[17]||(e[17]=p=>n.states.inputHovering=!1),onClick:e[18]||(e[18]=It((...p)=>n.toggleMenu&&n.toggleMenu(...p),["prevent","stop"]))},[C(l,{ref:"tooltipRef",visible:n.dropdownMenuVisible,placement:n.placement,teleported:n.teleported,"popper-class":[n.nsSelect.e("popper"),n.popperClass],"popper-options":n.popperOptions,"fallback-placements":n.fallbackPlacements,effect:n.effect,pure:"",trigger:"click",transition:`${n.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:n.persistent,onBeforeShow:n.handleMenuEnter,onHide:e[15]||(e[15]=p=>n.states.isBeforeHide=!1)},{default:_(()=>{var p;return[F("div",{ref:"wrapperRef",class:Z([n.nsSelect.e("wrapper"),n.nsSelect.is("focused",n.isFocused),n.nsSelect.is("hovering",n.states.inputHovering),n.nsSelect.is("filterable",n.filterable),n.nsSelect.is("disabled",n.selectDisabled)])},[n.$slots.prefix?(A(),q("div",{key:0,ref:"prefixRef",class:Z(n.nsSelect.e("prefix"))},[Ae(n.$slots,"prefix")],2)):be("v-if",!0),F("div",{ref:"selectionRef",class:Z([n.nsSelect.e("selection"),n.nsSelect.is("near",n.multiple&&!n.$slots.prefix&&!!n.states.selected.length)])},[n.multiple?Ae(n.$slots,"tag",{key:0},()=>[(A(!0),q(Re,null,St(n.showTagList,g=>(A(),q("div",{key:n.getValueKey(g),class:Z(n.nsSelect.e("selected-item"))},[C(i,{closable:!n.selectDisabled&&!g.isDisabled,size:n.collapseTagSize,type:n.tagType,effect:n.tagEffect,"disable-transitions":"",style:wt(n.tagStyle),onClose:v=>n.deleteTag(v,g)},{default:_(()=>[F("span",{class:Z(n.nsSelect.e("tags-text"))},[Ae(n.$slots,"label",{label:g.currentLabel,value:g.value},()=>[G(oe(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),n.collapseTags&&n.states.selected.length>n.maxCollapseTags?(A(),ve(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:Z(n.nsSelect.e("selected-item"))},[C(i,{closable:!1,size:n.collapseTagSize,type:n.tagType,effect:n.tagEffect,"disable-transitions":"",style:wt(n.collapseTagStyle)},{default:_(()=>[F("span",{class:Z(n.nsSelect.e("tags-text"))}," + "+oe(n.states.selected.length-n.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:_(()=>[F("div",{ref:"tagMenuRef",class:Z(n.nsSelect.e("selection"))},[(A(!0),q(Re,null,St(n.collapseTagList,g=>(A(),q("div",{key:n.getValueKey(g),class:Z(n.nsSelect.e("selected-item"))},[C(i,{class:"in-tooltip",closable:!n.selectDisabled&&!g.isDisabled,size:n.collapseTagSize,type:n.tagType,effect:n.tagEffect,"disable-transitions":"",onClose:v=>n.deleteTag(v,g)},{default:_(()=>[F("span",{class:Z(n.nsSelect.e("tags-text"))},[Ae(n.$slots,"label",{label:g.currentLabel,value:g.value},()=>[G(oe(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):be("v-if",!0)]):be("v-if",!0),n.selectDisabled?be("v-if",!0):(A(),q("div",{key:1,class:Z([n.nsSelect.e("selected-item"),n.nsSelect.e("input-wrapper"),n.nsSelect.is("hidden",!n.filterable)])},[$e(F("input",{id:n.inputId,ref:"inputRef","onUpdate:modelValue":e[0]||(e[0]=g=>n.states.inputValue=g),type:"text",name:n.name,class:Z([n.nsSelect.e("input"),n.nsSelect.is(n.selectSize)]),disabled:n.selectDisabled,autocomplete:n.autocomplete,style:wt(n.inputStyle),role:"combobox",readonly:!n.filterable,spellcheck:"false","aria-activedescendant":((p=n.hoverOption)==null?void 0:p.id)||"","aria-controls":n.contentId,"aria-expanded":n.dropdownMenuVisible,"aria-label":n.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:e[1]||(e[1]=(...g)=>n.handleFocus&&n.handleFocus(...g)),onBlur:e[2]||(e[2]=(...g)=>n.handleBlur&&n.handleBlur(...g)),onKeydown:[e[3]||(e[3]=ir(It(g=>n.navigateOptions("next"),["stop","prevent"]),["down"])),e[4]||(e[4]=ir(It(g=>n.navigateOptions("prev"),["stop","prevent"]),["up"])),e[5]||(e[5]=ir(It((...g)=>n.handleEsc&&n.handleEsc(...g),["stop","prevent"]),["esc"])),e[6]||(e[6]=ir(It((...g)=>n.selectOption&&n.selectOption(...g),["stop","prevent"]),["enter"])),e[7]||(e[7]=ir(It((...g)=>n.deletePrevTag&&n.deletePrevTag(...g),["stop"]),["delete"]))],onCompositionstart:e[8]||(e[8]=(...g)=>n.handleCompositionStart&&n.handleCompositionStart(...g)),onCompositionupdate:e[9]||(e[9]=(...g)=>n.handleCompositionUpdate&&n.handleCompositionUpdate(...g)),onCompositionend:e[10]||(e[10]=(...g)=>n.handleCompositionEnd&&n.handleCompositionEnd(...g)),onInput:e[11]||(e[11]=(...g)=>n.onInput&&n.onInput(...g)),onClick:e[12]||(e[12]=It((...g)=>n.toggleMenu&&n.toggleMenu(...g),["stop"]))},null,46,dq),[[DL,n.states.inputValue]]),n.filterable?(A(),q("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:Z(n.nsSelect.e("input-calculator")),textContent:oe(n.states.inputValue)},null,10,fq)):be("v-if",!0)],2)),n.shouldShowPlaceholder?(A(),q("div",{key:2,class:Z([n.nsSelect.e("selected-item"),n.nsSelect.e("placeholder"),n.nsSelect.is("transparent",!n.hasModelValue||n.expanded&&!n.states.inputValue)])},[n.hasModelValue?Ae(n.$slots,"label",{key:0,label:n.currentPlaceholder,value:n.modelValue},()=>[F("span",null,oe(n.currentPlaceholder),1)]):(A(),q("span",hq,oe(n.currentPlaceholder),1))],2)):be("v-if",!0)],2),F("div",{ref:"suffixRef",class:Z(n.nsSelect.e("suffix"))},[n.iconComponent&&!n.showClose?(A(),ve(a,{key:0,class:Z([n.nsSelect.e("caret"),n.nsSelect.e("icon"),n.iconReverse])},{default:_(()=>[(A(),ve(Bt(n.iconComponent)))]),_:1},8,["class"])):be("v-if",!0),n.showClose&&n.clearIcon?(A(),ve(a,{key:1,class:Z([n.nsSelect.e("caret"),n.nsSelect.e("icon")]),onClick:n.handleClearClick},{default:_(()=>[(A(),ve(Bt(n.clearIcon)))]),_:1},8,["class","onClick"])):be("v-if",!0),n.validateState&&n.validateIcon?(A(),ve(a,{key:2,class:Z([n.nsInput.e("icon"),n.nsInput.e("validateIcon")])},{default:_(()=>[(A(),ve(Bt(n.validateIcon)))]),_:1},8,["class"])):be("v-if",!0)],2)],2)]}),content:_(()=>[C(f,{ref:"menuRef"},{default:_(()=>[n.$slots.header?(A(),q("div",{key:0,class:Z(n.nsSelect.be("dropdown","header")),onClick:e[13]||(e[13]=It(()=>{},["stop"]))},[Ae(n.$slots,"header")],2)):be("v-if",!0),$e(C(d,{id:n.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":n.nsSelect.be("dropdown","wrap"),"view-class":n.nsSelect.be("dropdown","list"),class:Z([n.nsSelect.is("empty",n.filteredOptionsCount===0)]),role:"listbox","aria-label":n.ariaLabel,"aria-orientation":"vertical"},{default:_(()=>[n.showNewOption?(A(),ve(c,{key:0,value:n.states.inputValue,created:!0},null,8,["value"])):be("v-if",!0),C(u,null,{default:_(()=>[Ae(n.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[Ye,n.states.options.size>0&&!n.loading]]),n.$slots.loading&&n.loading?(A(),q("div",{key:1,class:Z(n.nsSelect.be("dropdown","loading"))},[Ae(n.$slots,"loading")],2)):n.loading||n.filteredOptionsCount===0?(A(),q("div",{key:2,class:Z(n.nsSelect.be("dropdown","empty"))},[Ae(n.$slots,"empty",{},()=>[F("span",null,oe(n.emptyText),1)])],2)):be("v-if",!0),n.$slots.footer?(A(),q("div",{key:3,class:Z(n.nsSelect.be("dropdown","footer")),onClick:e[14]||(e[14]=It(()=>{},["stop"]))},[Ae(n.$slots,"footer")],2)):be("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","onBeforeShow"])],16)),[[h,n.handleClickOutside,n.popperRef]])}var gq=tt(uq,[["render",pq],["__file","select.vue"]]);const mq=ge({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(n){const e=Xe("select"),t=V(null),r=vt(),o=V([]);zt(wM,yt({...Xs(n)}));const s=z(()=>o.value.some(c=>c.visible===!0)),i=c=>{var u,d;return((u=c.type)==null?void 0:u.name)==="ElOption"&&!!((d=c.component)!=null&&d.proxy)},l=c=>{const u=$h(c),d=[];return u.forEach(f=>{var h,p;i(f)?d.push(f.component.proxy):(h=f.children)!=null&&h.length?d.push(...l(f.children)):(p=f.component)!=null&&p.subTree&&d.push(...l(f.component.subTree))}),d},a=()=>{o.value=l(r.subTree)};return ot(()=>{a()}),TD(t,a,{attributes:!0,subtree:!0,childList:!0}),{groupRef:t,visible:s,ns:e}}});function vq(n,e,t,r,o,s){return $e((A(),q("ul",{ref:"groupRef",class:Z(n.ns.be("group","wrap"))},[F("li",{class:Z(n.ns.be("group","title"))},oe(n.label),3),F("li",null,[F("ul",{class:Z(n.ns.b("group"))},[Ae(n.$slots,"default")],2)])],2)),[[Ye,n.visible]])}var CM=tt(mq,[["render",vq],["__file","option-group.vue"]]);const Ss=Rt(gq,{Option:Hy,OptionGroup:CM}),Es=Ir(Hy);Ir(CM);const bq=st({trigger:pd.trigger,placement:lm.placement,disabled:pd.disabled,visible:Dr.visible,transition:Dr.transition,popperOptions:lm.popperOptions,tabindex:lm.tabindex,content:Dr.content,popperStyle:Dr.popperStyle,popperClass:Dr.popperClass,enterable:{...Dr.enterable,default:!0},effect:{...Dr.effect,default:"light"},teleported:Dr.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),yq={"update:visible":n=>fo(n),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},wq="onUpdate:visible",Cq=ge({name:"ElPopover"}),xq=ge({...Cq,props:bq,emits:yq,setup(n,{expose:e,emit:t}){const r=n,o=z(()=>r[wq]),s=Xe("popover"),i=V(),l=z(()=>{var v;return(v=x(i))==null?void 0:v.popperRef}),a=z(()=>[{width:po(r.width)},r.popperStyle]),c=z(()=>[s.b(),r.popperClass,{[s.m("plain")]:!!r.content}]),u=z(()=>r.transition===`${s.namespace.value}-fade-in-linear`),d=()=>{var v;(v=i.value)==null||v.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}),(v,m)=>(A(),ve(x(Lr),jr({ref_key:"tooltipRef",ref:i},v.$attrs,{trigger:v.trigger,placement:v.placement,disabled:v.disabled,visible:v.visible,transition:v.transition,"popper-options":v.popperOptions,tabindex:v.tabindex,content:v.content,offset:v.offset,"show-after":v.showAfter,"hide-after":v.hideAfter,"auto-close":v.autoClose,"show-arrow":v.showArrow,"aria-label":v.title,effect:v.effect,enterable:v.enterable,"popper-class":x(c),"popper-style":x(a),teleported:v.teleported,persistent:v.persistent,"gpu-acceleration":x(u),"onUpdate:visible":x(o),onBeforeShow:f,onBeforeHide:h,onShow:p,onHide:g}),{content:_(()=>[v.title?(A(),q("div",{key:0,class:Z(x(s).e("title")),role:"title"},oe(v.title),3)):be("v-if",!0),Ae(v.$slots,"default",{},()=>[G(oe(v.content),1)])]),default:_(()=>[v.$slots.reference?Ae(v.$slots,"reference",{key:0}):be("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var Sq=tt(xq,[["__file","popover.vue"]]);const px=(n,e)=>{const t=e.arg||e.value,r=t==null?void 0:t.popperRef;r&&(r.triggerRef=n)};var Eq={mounted(n,e){px(n,e)},updated(n,e){px(n,e)}};const _q="popover",Tq=Iz(Eq,_q),Oq=Rt(Sq,{directive:Tq}),Da={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},gx={[Da.success]:rz,[Da.warning]:Cy,[Da.error]:by,[Da.info]:wy},Mq=st({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),Aq=ge({name:"ElResult"}),kq=ge({...Aq,props:Mq,setup(n){const e=n,t=Xe("result"),r=z(()=>{const o=e.icon,s=o&&Da[o]?Da[o]:"icon-info",i=gx[s]||gx["icon-info"];return{class:s,component:i}});return(o,s)=>(A(),q("div",{class:Z(x(t).b())},[F("div",{class:Z(x(t).e("icon"))},[Ae(o.$slots,"icon",{},()=>[x(r).component?(A(),ve(Bt(x(r).component),{key:0,class:Z(x(r).class)},null,8,["class"])):be("v-if",!0)])],2),o.title||o.$slots.title?(A(),q("div",{key:0,class:Z(x(t).e("title"))},[Ae(o.$slots,"title",{},()=>[F("p",null,oe(o.title),1)])],2)):be("v-if",!0),o.subTitle||o.$slots["sub-title"]?(A(),q("div",{key:1,class:Z(x(t).e("subtitle"))},[Ae(o.$slots,"sub-title",{},()=>[F("p",null,oe(o.subTitle),1)])],2)):be("v-if",!0),o.$slots.extra?(A(),q("div",{key:2,class:Z(x(t).e("extra"))},[Ae(o.$slots,"extra")],2)):be("v-if",!0)],2))}});var Pq=tt(kq,[["__file","result.vue"]]);const Nq=Rt(Pq),Iq=st({prefixCls:{type:String}}),mx=ge({name:"ElSpaceItem",props:Iq,setup(n,{slots:e}){const t=Xe("space"),r=z(()=>`${n.prefixCls||t.b()}__item`);return()=>Qe("div",{class:r.value},Ae(e,"default"))}}),vx={small:8,default:12,large:16};function Lq(n){const e=Xe("space"),t=z(()=>[e.b(),e.m(n.direction),n.class]),r=V(0),o=V(0),s=z(()=>{const l=n.wrap||n.fill?{flexWrap:"wrap"}:{},a={alignItems:n.alignment},c={rowGap:`${o.value}px`,columnGap:`${r.value}px`};return[l,a,c,n.style]}),i=z(()=>n.fill?{flexGrow:1,minWidth:`${n.fillRatio}%`}:{});return ss(()=>{const{size:l="small",wrap:a,direction:c,fill:u}=n;if(ze(l)){const[d=0,f=0]=l;r.value=d,o.value=f}else{let d;Tt(l)?d=l:d=vx[l||"small"]||vx.small,(a||u)&&c==="horizontal"?r.value=o.value=d:c==="horizontal"?(r.value=d,o.value=0):(o.value=d,r.value=0)}}),{classes:t,containerStyle:s,itemStyle:i}}const Rq=st({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:Ue([String,Object,Array]),default:""},style:{type:Ue([String,Array,Object]),default:""},alignment:{type:Ue(String),default:"center"},prefixCls:{type:String},spacer:{type:Ue([Object,String,Number,Array]),default:null,validator:n=>Pn(n)||Tt(n)||ht(n)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:wa,validator:n=>Tt(n)||ze(n)&&n.length===2&&n.every(Tt)}}),$q=ge({name:"ElSpace",props:Rq,setup(n,{slots:e}){const{classes:t,containerStyle:r,itemStyle:o}=Lq(n);function s(i,l="",a=[]){const{prefixCls:c}=n;return i.forEach((u,d)=>{Cv(u)?ze(u.children)&&u.children.forEach((f,h)=>{Cv(f)&&ze(f.children)?s(f.children,`${l+h}-`,a):a.push(C(mx,{style:o.value,prefixCls:c,key:`nested-${l+h}`},{default:()=>[f]},Xr.PROPS|Xr.STYLE,["style","prefixCls"]))}):Dz(u)&&a.push(C(mx,{style:o.value,prefixCls:c,key:`LoopKey${l+d}`},{default:()=>[u]},Xr.PROPS|Xr.STYLE,["style","prefixCls"]))}),a}return()=>{var i;const{spacer:l,direction:a}=n,c=Ae(e,"default",{key:0},()=>[]);if(((i=c.children)!=null?i:[]).length===0)return null;if(ze(c.children)){let u=s(c.children);if(l){const d=u.length-1;u=u.reduce((f,h,p)=>{const g=[...f,h];return p!==d&&g.push(C("span",{style:[o.value,a==="vertical"?"width: 100%":null],key:p},[Pn(l)?l:G(l,Xr.TEXT)],Xr.STYLE)),g},[])}return C("div",{class:t.value,style:r.value},u,Xr.STYLE|Xr.CLASS)}return c.children}}}),xM=Rt($q),am=function(n){var e;return(e=n.target)==null?void 0:e.closest("td")},Dq=function(n,e,t,r,o){if(!e&&!r&&(!o||Array.isArray(o)&&!o.length))return n;typeof t=="string"?t=t==="descending"?-1:1:t=t&&t<0?-1:1;const s=r?null:function(l,a){return o?(Array.isArray(o)||(o=[o]),o.map(c=>typeof c=="string"?ro(l,c):c(l,a,n))):(e!=="$key"&>(l)&&"$value"in l&&(l=l.$value),[gt(l)?ro(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)},SM=function(n,e){let t=null;return n.columns.forEach(r=>{r.id===e&&(t=r)}),t},Vq=function(n,e){let t=null;for(let r=0;r{if(!n)throw new Error("Row is required when get row identity");if(typeof e=="string"){if(!e.includes("."))return`${n[e]}`;const t=e.split(".");let r=n;for(const o of t)r=r[o];return`${r}`}else if(typeof e=="function")return e.call(null,n)},Bl=function(n,e){const t={};return(n||[]).forEach((r,o)=>{t[Xn(r,e)]={row:r,index:o}}),t};function Bq(n,e){const t={};let r;for(r in n)t[r]=n[r];for(r in e)if(xt(e,r)){const o=e[r];typeof o<"u"&&(t[r]=o)}return t}function Uy(n){return n===""||n!==void 0&&(n=Number.parseInt(n,10),Number.isNaN(n)&&(n="")),n}function EM(n){return n===""||n!==void 0&&(n=Uy(n),Number.isNaN(n)&&(n=80)),n}function Fq(n){return typeof n=="number"?n:typeof n=="string"?/^\d+(?:px)?$/.test(n)?Number.parseInt(n,10):n:null}function zq(...n){return n.length===0?e=>e:n.length===1?n[0]:n.reduce((e,t)=>(...r)=>e(t(...r)))}function $u(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,ze(e.children)&&e.children.forEach(a=>{$u(n,a,t??!s)})};return fo(t)?t&&!s?i("add"):!t&&s&&i("remove"):i(s?"remove":"add"),r}function jq(n,e,t="children",r="hasChildren"){const o=i=>!(Array.isArray(i)&&i.length);function s(i,l,a){e(i,l,a),l.forEach(c=>{if(c[r]){e(c,null,a+1);return}const u=c[t];o(u)||s(c,u,a+1)})}n.forEach(i=>{if(i[r]){e(i,null,0);return}const l=i[t];o(l)||s(i,l,0)})}let Yr=null;function Hq(n,e,t,r){if((Yr==null?void 0:Yr.trigger)===t)return;Yr==null||Yr();const o=r==null?void 0:r.refs.tableWrapper,s=o==null?void 0:o.dataset.prefix,i={strategy:"fixed",...n.popperOptions},l=C(Lr,{content:e,virtualTriggering:!0,virtualRef:t,appendTo:o,placement:"top",transition:"none",offset:0,hideAfter:0,...n,popperOptions:i,onHide:()=>{Yr==null||Yr()}});l.appContext={...r.appContext,...r};const a=document.createElement("div");qi(l,a),l.component.exposed.onOpen();const c=o==null?void 0:o.querySelector(`.${s}-scrollbar__wrap`);Yr=()=>{qi(null,a),c==null||c.removeEventListener("scroll",Yr),Yr=null},Yr.trigger=t,c==null||c.addEventListener("scroll",Yr)}function _M(n){return n.children?s6(n.children,_M):[n]}function yx(n,e){return n+e.colSpan}const TM=(n,e,t,r)=>{let o=0,s=n;const i=t.states.columns.value;if(r){const a=_M(r[n]);o=i.slice(0,i.indexOf(a[0])).reduce(yx,0),s=o+a.reduce(yx,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}:{}},Wy=(n,e,t,r,o,s=0)=>{const i=[],{direction:l,start:a,after:c}=TM(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 wx(n,e){return n+(e.realWidth===null||Number.isNaN(e.realWidth)?Number(e.width):e.realWidth)}const Gy=(n,e,t,r)=>{const{direction:o,start:s=0,after:i=0}=TM(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(wx,0):l.right=c.slice(i+1).reverse().reduce(wx,0),l},mc=(n,e)=>{n&&(Number.isNaN(n[e])||(n[e]=`${n[e]}px`))};function Uq(n){const e=vt(),t=V(!1),r=V([]);return{updateExpandRows:()=>{const a=n.data.value||[],c=n.rowKey.value;if(t.value)r.value=a.slice();else if(c){const u=Bl(r.value,c);r.value=a.reduce((d,f)=>{const h=Xn(f,c);return u[h]&&d.push(f),d},[])}else r.value=[]},toggleRowExpansion:(a,c)=>{$u(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=Bl(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?!!Bl(r.value,c)[Xn(a,c)]:r.value.includes(a)},states:{expandRows:r,defaultExpandAll:t}}}function Wq(n){const e=vt(),t=V(null),r=V(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=(x(u)||[]).find(h=>Xn(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=Xn(d,c);i(f)}else r.value=null;r.value===null&&e.emit("current-change",null,d)}else t.value&&(i(t.value),s())},states:{_currentRowKey:t,currentRow:r}}}function Gq(n){const e=V([]),t=V({}),r=V(16),o=V(!1),s=V({}),i=V("hasChildren"),l=V("children"),a=vt(),c=z(()=>{if(!n.rowKey.value)return{};const m=n.data.value||[];return d(m)}),u=z(()=>{const m=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=Xn(E,m);S.children.push(T),E[i.value]&&!b[T]&&(b[T]={children:[]})}),b[y]=S}}),b}),d=m=>{const w=n.rowKey.value,b={};return jq(m,(y,S,E)=>{const T=Xn(y,w);Array.isArray(S)?b[T]={children:S.map(M=>Xn(M,w)),level:E}:o.value&&(b[T]={children:[],lazy:!0,level:E})},l.value,i.value),b},f=(m=!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=x(t),O=[],k=(L,j)=>{if(m)return e.value?w||e.value.includes(j):!!(w||L!=null&&L.expanded);{const le=w||e.value&&e.value.includes(j);return!!(L!=null&&L.expanded||le)}};E.forEach(L=>{const j=M[L],le={...y[L]};if(le.expanded=k(j,L),le.lazy){const{loaded:N=!1,loading:R=!1}=j||{};le.loaded=!!N,le.loading=!!R,O.push(L)}T[L]=le});const P=Object.keys(S);o.value&&P.length&&O.length&&P.forEach(L=>{const j=M[L],le=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=le}else{const{loaded:N=!1,loading:R=!1}=j||{};T[L]={lazy:!0,loaded:!!N,loading:!!R,expanded:k(j,L),children:le,level:""}}})}t.value=T,(b=a.store)==null||b.updateTableScrollY()};je(()=>e.value,()=>{f(!0)}),je(()=>c.value,()=>{f()}),je(()=>u.value,()=>{f()});const h=m=>{e.value=m,f()},p=(m,w)=>{a.store.assertRowKey();const b=n.rowKey.value,y=Xn(m,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",m,w),a.store.updateTableScrollY()}},g=m=>{a.store.assertRowKey();const w=n.rowKey.value,b=Xn(m,w),y=t.value[b];o.value&&y&&"loaded"in y&&!y.loaded?v(m,b,y):p(m,void 0)},v=(m,w,b)=>{const{load:y}=a.props;y&&!t.value[w].loaded&&(t.value[w].loading=!0,y(m,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",m,!0)}))};return{loadData:v,loadOrToggle:g,toggleTreeExpansion:p,updateTreeExpandKeys:h,updateTreeData:f,normalize:d,states:{expandRowKeys:e,treeData:t,indent:r,lazy:o,lazyTreeNodeMap:s,lazyColumnIdentifier:i,childrenColumnName:l}}}const qq=(n,e)=>{const t=e.sortingColumn;return!t||typeof t.sortable=="string"?n:Dq(n,e.sortProp,e.sortOrder,t.sortMethod,t.sortBy)},gh=n=>{const e=[];return n.forEach(t=>{t.children&&t.children.length>0?e.push.apply(e,gh(t.children)):e.push(t)}),e};function Kq(){var n;const e=vt(),{size:t}=Xs((n=e.proxy)==null?void 0:n.$props),r=V(null),o=V([]),s=V([]),i=V(!1),l=V([]),a=V([]),c=V([]),u=V([]),d=V([]),f=V([]),h=V([]),p=V([]),g=[],v=V(0),m=V(0),w=V(0),b=V(!1),y=V([]),S=V(!1),E=V(!1),T=V(null),M=V({}),O=V(null),k=V(null),P=V(null),L=V(null),j=V(null);je(o,()=>e.state&&K(!1),{deep:!0});const le=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},N=H=>{var xe;(xe=H.children)==null||xe.forEach(Be=>{Be.fixed=H.fixed,N(Be)})},R=()=>{l.value.forEach(ae=>{N(ae)}),u.value=l.value.filter(ae=>ae.fixed===!0||ae.fixed==="left"),d.value=l.value.filter(ae=>ae.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 H=l.value.filter(ae=>!ae.fixed);a.value=[].concat(u.value).concat(H).concat(d.value);const xe=gh(H),Be=gh(u.value),Ie=gh(d.value);v.value=xe.length,m.value=Be.length,w.value=Ie.length,c.value=[].concat(Be).concat(xe).concat(Ie),i.value=u.value.length>0||d.value.length>0},K=(H,xe=!1)=>{H&&R(),xe?e.state.doLayout():e.state.debouncedUpdateLayout()},W=H=>y.value.includes(H),U=()=>{b.value=!1;const H=y.value;y.value=[],H.length&&e.emit("selection-change",[])},Q=()=>{let H;if(r.value){H=[];const xe=Bl(y.value,r.value),Be=Bl(o.value,r.value);for(const Ie in xe)xt(xe,Ie)&&!Be[Ie]&&H.push(xe[Ie].row)}else H=y.value.filter(xe=>!o.value.includes(xe));if(H.length){const xe=y.value.filter(Be=>!H.includes(Be));y.value=xe,e.emit("selection-change",xe.slice())}},de=()=>(y.value||[]).slice(),ee=(H,xe=void 0,Be=!0)=>{if($u(y.value,H,xe)){const ae=(y.value||[]).slice();Be&&e.emit("select",ae,H),e.emit("selection-change",ae)}},Me=()=>{var H,xe;const Be=E.value?!b.value:!(b.value||y.value.length);b.value=Be;let Ie=!1,ae=0;const Le=(xe=(H=e==null?void 0:e.store)==null?void 0:H.states)==null?void 0:xe.rowKey.value;o.value.forEach((De,rt)=>{const lt=rt+ae;T.value?T.value.call(null,De,lt)&&$u(y.value,De,Be)&&(Ie=!0):$u(y.value,De,Be)&&(Ie=!0),ae+=Oe(Xn(De,Le))}),Ie&&e.emit("selection-change",y.value?y.value.slice():[]),e.emit("select-all",(y.value||[]).slice())},fe=()=>{const H=Bl(y.value,r.value);o.value.forEach(xe=>{const Be=Xn(xe,r.value),Ie=H[Be];Ie&&(y.value[Ie.index]=xe)})},Ce=()=>{var H,xe,Be;if(((H=o.value)==null?void 0:H.length)===0){b.value=!1;return}let Ie;r.value&&(Ie=Bl(y.value,r.value));const ae=function(lt){return Ie?!!Ie[Xn(lt,r.value)]:y.value.includes(lt)};let Le=!0,De=0,rt=0;for(let lt=0,nn=(o.value||[]).length;lt{var xe;if(!e||!e.store)return 0;const{treeData:Be}=e.store.states;let Ie=0;const ae=(xe=Be.value[H])==null?void 0:xe.children;return ae&&(Ie+=ae.length,ae.forEach(Le=>{Ie+=Oe(Le)})),Ie},ne=(H,xe)=>{Array.isArray(H)||(H=[H]);const Be={};return H.forEach(Ie=>{M.value[Ie.id]=xe,Be[Ie.columnKey||Ie.id]=xe}),Be},ie=(H,xe,Be)=>{k.value&&k.value!==H&&(k.value.order=null),k.value=H,P.value=xe,L.value=Be},X=()=>{let H=x(s);Object.keys(M.value).forEach(xe=>{const Be=M.value[xe];if(!Be||Be.length===0)return;const Ie=SM({columns:c.value},xe);Ie&&Ie.filterMethod&&(H=H.filter(ae=>Be.some(Le=>Ie.filterMethod.call(null,Le,ae,Ie))))}),O.value=H},me=()=>{o.value=qq(O.value,{sortingColumn:k.value,sortProp:P.value,sortOrder:L.value})},Pe=(H=void 0)=>{H&&H.filter||X(),me()},Ee=H=>{const{tableHeaderRef:xe}=e.refs;if(!xe)return;const Be=Object.assign({},xe.filterPanels),Ie=Object.keys(Be);if(Ie.length)if(typeof H=="string"&&(H=[H]),Array.isArray(H)){const ae=H.map(Le=>Vq({columns:c.value},Le));Ie.forEach(Le=>{const De=ae.find(rt=>rt.id===Le);De&&(De.filteredValue=[])}),e.store.commit("filterChange",{column:ae,values:[],silent:!0,multi:!0})}else Ie.forEach(ae=>{const Le=c.value.find(De=>De.id===ae);Le&&(Le.filteredValue=[])}),M.value={},e.store.commit("filterChange",{column:{},values:[],silent:!0})},$=()=>{k.value&&(ie(null,null,null),e.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:I,toggleRowExpansion:re,updateExpandRows:he,states:pe,isRowExpanded:Se}=Uq({data:o,rowKey:r}),{updateTreeExpandKeys:_e,toggleTreeExpansion:D,updateTreeData:B,loadOrToggle:J,states:ce}=Gq({data:o,rowKey:r}),{updateCurrentRowData:ke,updateCurrentRow:se,setCurrentRowKey:te,states:ue}=Wq({data:o,rowKey:r});return{assertRowKey:le,updateColumns:R,scheduleLayout:K,isSelected:W,clearSelection:U,cleanSelection:Q,getSelectionRows:de,toggleRowSelection:ee,_toggleAllSelection:Me,toggleAllSelection:null,updateSelectionByRowKey:fe,updateAllSelected:Ce,updateFilters:ne,updateCurrentRow:se,updateSort:ie,execFilter:X,execSort:me,execQuery:Pe,clearFilter:Ee,clearSort:$,toggleRowExpansion:re,setExpandRowKeysAdapter:H=>{I(H),_e(H)},setCurrentRowKey:te,toggleRowExpansionAdapter:(H,xe)=>{c.value.some(({type:Ie})=>Ie==="expand")?re(H,xe):D(H,xe)},isRowExpanded:Se,updateExpandRows:he,updateCurrentRowData:ke,loadOrToggle:J,updateTreeData:B,states:{tableSize:t,rowKey:r,data:o,_data:s,isComplex:i,_columns:l,originColumns:a,columns:c,fixedColumns:u,rightFixedColumns:d,leafColumns:f,fixedLeafColumns:h,rightFixedLeafColumns:p,updateOrderFns:g,leafColumnsLength:v,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:w,isAllSelected:b,selection:y,reserveSelection:S,selectOnIndeterminate:E,selectable:T,filters:M,filteredData:O,sortingColumn:k,sortProp:P,sortOrder:L,hoverRow:j,...pe,...ce,...ue}}}function Fv(n,e){return n.map(t=>{var r;return t.id===e.id?e:((r=t.children)!=null&&r.length&&(t.children=Fv(t.children,e)),t)})}function zv(n){n.forEach(e=>{var t,r;e.no=(t=e.getColumnIndex)==null?void 0:t.call(e),(r=e.children)!=null&&r.length&&zv(e.children)}),n.sort((e,t)=>e.no-t.no)}function Yq(){const n=vt(),e=Kq();return{ns:Xe("table"),...e,mutations:{setData(i,l){const a=x(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),x(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=x(i._columns);let d=[];a?(a&&!a.children&&(a.children=[]),a.children.push(l),d=Fv(u,a)):(u.push(l),d=u),zv(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&&(zv(i._columns.value),n.$ready&&n.store.updateColumns())},removeColumn(i,l,a,c){const u=x(i._columns)||[];if(a)a.children.splice(a.children.findIndex(f=>f.id===l.id),1),it(()=>{var f;((f=a.children)==null?void 0:f.length)===0&&delete a.children}),i._columns.value=Fv(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=x(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=x(a),f=x(c),h=x(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(){it(()=>n.layout.updateScrollY.apply(n.layout))}}}const Du={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"}};function Jq(n,e){if(!n)throw new Error("Table is required.");const t=Yq();return t.toggleAllSelection=uc(t._toggleAllSelection,10),Object.keys(Du).forEach(r=>{OM(MM(e,r),r,t)}),Xq(t,e),t}function Xq(n,e){Object.keys(Du).forEach(t=>{je(()=>MM(e,t),r=>{OM(r,t,n)})})}function OM(n,e,t){let r=n,o=Du[e];typeof Du[e]=="object"&&(o=o.key,r=r||Du[e].default),t.states[o].value=r}function MM(n,e){if(e.includes(".")){const t=e.split(".");let r=n;return t.forEach(o=>{r=r[o]}),r}else return n[e]}class Zq{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=V(null),this.scrollX=V(!1),this.scrollY=V(!1),this.bodyWidth=V(null),this.fixedWidth=V(null),this.rightFixedWidth=V(null),this.gutterWidth=0;for(const t in e)xt(e,t)&&(Gt(this[t])?this[t].value=e[t]:this[t]=e[t]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const t=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(t!=null&&t.wrapRef)){let r=!0;const o=this.scrollY.value;return r=t.wrapRef.scrollHeight>t.wrapRef.clientHeight,this.scrollY.value=r,o!==r}return!1}setHeight(e,t="height"){if(!Et)return;const r=this.table.vnode.el;if(e=Fq(e),this.height.value=Number(e),!r&&(e||e===0))return it(()=>this.setHeight(e,t));typeof e=="number"?(r.style[t]=`${e}px`,this.updateElsHeight()):typeof e=="string"&&(r.style[t]=e,this.updateElsHeight())}setMaxHeight(e){this.setHeight(e,"max-height")}getFlattenColumns(){const e=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?e.push.apply(e,r.columns):e.push(r)}),e}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(e){if(!e)return!0;let t=e;for(;t.tagName!=="DIV";){if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}updateColumnsWidth(){if(!Et)return;const e=this.fit,t=this.table.vnode.el.clientWidth;let r=0;const o=this.getFlattenColumns(),s=o.filter(a=>typeof a.width!="number");if(o.forEach(a=>{typeof a.width=="number"&&a.realWidth&&(a.realWidth=null)}),s.length>0&&e){if(o.forEach(a=>{r+=Number(a.width||a.minWidth||80)}),r<=t){this.scrollX.value=!1;const a=t-r;if(s.length===1)s[0].realWidth=Number(s[0].minWidth||80)+a;else{const c=s.reduce((f,h)=>f+Number(h.minWidth||80),0),u=a/c;let d=0;s.forEach((f,h)=>{if(h===0)return;const p=Math.floor(Number(f.minWidth||80)*u);d+=p,f.realWidth=Number(f.minWidth||80)+p}),s[0].realWidth=Number(s[0].minWidth||80)+a-d}}else this.scrollX.value=!0,s.forEach(a=>{a.realWidth=Number(a.minWidth)});this.bodyWidth.value=Math.max(r,t),this.table.state.resizeState.value.width=this.bodyWidth.value}else o.forEach(a=>{!a.width&&!a.minWidth?a.realWidth=80:a.realWidth=Number(a.width||a.minWidth),r+=a.realWidth}),this.scrollX.value=r>t,this.bodyWidth.value=r;const i=this.store.states.fixedColumns.value;if(i.length>0){let a=0;i.forEach(c=>{a+=Number(c.realWidth||c.width)}),this.fixedWidth.value=a}const l=this.store.states.rightFixedColumns.value;if(l.length>0){let a=0;l.forEach(c=>{a+=Number(c.realWidth||c.width)}),this.rightFixedWidth.value=a}this.notifyObservers("columns")}addObserver(e){this.observers.push(e)}removeObserver(e){const t=this.observers.indexOf(e);t!==-1&&this.observers.splice(t,1)}notifyObservers(e){this.observers.forEach(r=>{var o,s;switch(e){case"columns":(o=r.state)==null||o.onColumnsChange(this);break;case"scrollable":(s=r.state)==null||s.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${e}.`)}})}}const{CheckboxGroup:Qq}=ia,eK=ge({name:"ElTableFilterPanel",components:{ElCheckbox:ia,ElCheckboxGroup:Qq,ElScrollbar:rg,ElTooltip:Lr,ElIcon:dt,ArrowDown:vy,ArrowUp:YT},directives:{ClickOutside:HO},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(n){const e=vt(),{t}=ws(),r=Xe("table-filter"),o=e==null?void 0:e.parent;o.filterPanels.value[n.column.id]||(o.filterPanels.value[n.column.id]=e);const s=V(!1),i=V(null),l=z(()=>n.column&&n.column.filters),a=z(()=>n.column.filterClassName?`${r.b()} ${n.column.filterClassName}`:r.b()),c=z({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=z({get(){return n.column?n.column.filteredValue||[]:[]},set(S){n.column&&n.upDataColumn("filteredValue",S)}}),d=z(()=>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},v=()=>{b(u.value),h()},m=()=>{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()};je(s,S=>{n.column&&n.upDataColumn("filterOpened",S)},{immediate:!0});const y=z(()=>{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:v,handleReset:m,handleSelect:w,isActive:f,t,ns:r,showFilterPanel:p,hideFilterPanel:g,popperPaneRef:y,tooltip:i}}}),tK={key:0},nK=["disabled"],rK=["label","onClick"];function oK(n,e,t,r,o,s){const i=at("el-checkbox"),l=at("el-checkbox-group"),a=at("el-scrollbar"),c=at("arrow-up"),u=at("arrow-down"),d=at("el-icon"),f=at("el-tooltip"),h=Hb("click-outside");return A(),ve(f,{ref:"tooltip",visible:n.tooltipVisible,offset:0,placement:n.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":n.filterClassName,persistent:""},{content:_(()=>[n.multiple?(A(),q("div",tK,[F("div",{class:Z(n.ns.e("content"))},[C(a,{"wrap-class":n.ns.e("wrap")},{default:_(()=>[C(l,{modelValue:n.filteredValue,"onUpdate:modelValue":e[0]||(e[0]=p=>n.filteredValue=p),class:Z(n.ns.e("checkbox-group"))},{default:_(()=>[(A(!0),q(Re,null,St(n.filters,p=>(A(),ve(i,{key:p.value,value:p.value},{default:_(()=>[G(oe(p.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),F("div",{class:Z(n.ns.e("bottom"))},[F("button",{class:Z({[n.ns.is("disabled")]:n.filteredValue.length===0}),disabled:n.filteredValue.length===0,type:"button",onClick:e[1]||(e[1]=(...p)=>n.handleConfirm&&n.handleConfirm(...p))},oe(n.t("el.table.confirmFilter")),11,nK),F("button",{type:"button",onClick:e[2]||(e[2]=(...p)=>n.handleReset&&n.handleReset(...p))},oe(n.t("el.table.resetFilter")),1)],2)])):(A(),q("ul",{key:1,class:Z(n.ns.e("list"))},[F("li",{class:Z([n.ns.e("list-item"),{[n.ns.is("active")]:n.filterValue===void 0||n.filterValue===null}]),onClick:e[3]||(e[3]=p=>n.handleSelect(null))},oe(n.t("el.table.clearFilter")),3),(A(!0),q(Re,null,St(n.filters,p=>(A(),q("li",{key:p.value,class:Z([n.ns.e("list-item"),n.ns.is("active",n.isActive(p))]),label:p.value,onClick:g=>n.handleSelect(p.value)},oe(p.text),11,rK))),128))],2))]),default:_(()=>[$e((A(),q("span",{class:Z([`${n.ns.namespace.value}-table__column-filter-trigger`,`${n.ns.namespace.value}-none-outline`]),onClick:e[4]||(e[4]=(...p)=>n.showFilterPanel&&n.showFilterPanel(...p))},[C(d,null,{default:_(()=>[n.column.filterOpened?(A(),ve(c,{key:0})):(A(),ve(u,{key:1}))]),_:1})],2)),[[h,n.hideFilterPanel,n.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var sK=tt(eK,[["render",oK],["__file","filter-panel.vue"]]);function AM(n){const e=vt();Bd(()=>{t.value.addObserver(e)}),ot(()=>{r(t.value),o(t.value)}),ga(()=>{r(t.value),o(t.value)}),bs(()=>{t.value.removeObserver(e)});const t=z(()=>{const s=n.layout;if(!s)throw new Error("Can not find table layout.");return s}),r=s=>{var i;const l=((i=n.vnode.el)==null?void 0:i.querySelectorAll("colgroup > col"))||[];if(!l.length)return;const a=s.getFlattenColumns(),c={};a.forEach(u=>{c[u.id]=u});for(let u=0,d=l.length;u{var i,l;const a=((i=n.vnode.el)==null?void 0:i.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let u=0,d=a.length;u{g.stopPropagation()},s=(g,v)=>{!v.filters&&v.sortable?p(g,v,!1):v.filterable&&!v.sortable&&o(g),r==null||r.emit("header-click",v,g)},i=(g,v)=>{r==null||r.emit("header-contextmenu",v,g)},l=V(null),a=V(!1),c=V({}),u=(g,v)=>{if(Et&&!(v.children&&v.children.length>0)&&l.value&&n.border){a.value=!0;const m=r;e("set-drag-visible",!0);const b=(m==null?void 0:m.vnode.el).getBoundingClientRect().left,y=t.vnode.el.querySelector(`th.${v.id}`),S=y.getBoundingClientRect(),E=S.left-b+30;ra(y,"noclick"),c.value={startMouseLeft:g.clientX,startLeft:S.right-b,startColumnLeft:S.left-b,tableLeft:b};const T=m==null?void 0:m.refs.resizeProxy;T.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const M=k=>{const P=k.clientX-c.value.startMouseLeft,L=c.value.startLeft+P;T.style.left=`${Math.max(E,L)}px`},O=()=>{if(a.value){const{startColumnLeft:k,startLeft:P}=c.value,j=Number.parseInt(T.style.left,10)-k;v.width=v.realWidth=j,m==null||m.emit("header-dragend",v.width,P-k,v,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(()=>{ds(y,"noclick")},0)};document.addEventListener("mousemove",M),document.addEventListener("mouseup",O)}},d=(g,v)=>{if(v.children&&v.children.length>0)return;const m=g.target;if(!ho(m))return;const w=m==null?void 0:m.closest("th");if(!(!v||!v.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",Ua(w,"is-sortable")&&(w.style.cursor="col-resize"),l.value=v):a.value||(y.cursor="",Ua(w,"is-sortable")&&(w.style.cursor="pointer"),l.value=null)}},f=()=>{Et&&(document.body.style.cursor="")},h=({order:g,sortOrders:v})=>{if(g==="")return v[0];const m=v.indexOf(g||null);return v[m>v.length-2?0:m+1]},p=(g,v,m)=>{var w;g.stopPropagation();const b=v.order===m?null:m||h(v),y=(w=g.target)==null?void 0:w.closest("th");if(y&&Ua(y,"noclick")){ds(y,"noclick");return}if(!v.sortable)return;const S=n.store.states;let E=S.sortProp.value,T;const M=S.sortingColumn.value;(M!==v||M===v&&M.order===null)&&(M&&(M.order=null),S.sortingColumn.value=v,E=v.property),b?T=v.order=b:T=v.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 lK(n){const e=He(_s),t=Xe("table");return{getHeaderRowStyle:l=>{const a=e==null?void 0:e.props.headerRowStyle;return typeof a=="function"?a.call(null,{rowIndex:l}):a},getHeaderRowClass:l=>{const a=[],c=e==null?void 0:e.props.headerRowClassName;return typeof c=="string"?a.push(c):typeof c=="function"&&a.push(c.call(null,{rowIndex:l})),a.join(" ")},getHeaderCellStyle:(l,a,c,u)=>{var d;let f=(d=e==null?void 0:e.props.headerCellStyle)!=null?d:{};typeof f=="function"&&(f=f.call(null,{rowIndex:l,columnIndex:a,row:c,column:u}));const h=Gy(a,u.fixed,n.store,c);return mc(h,"left"),mc(h,"right"),Object.assign({},f,h)},getHeaderCellClass:(l,a,c,u)=>{const d=Wy(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 kM=n=>{const e=[];return n.forEach(t=>{t.children?(e.push(t),e.push.apply(e,kM(t.children))):e.push(t)}),e},PM=n=>{let e=1;const t=(s,i)=>{if(i&&(s.level=i.level+1,e{t(a,s),l+=a.colSpan}),s.colSpan=l}else s.colSpan=1};n.forEach(s=>{s.level=1,t(s,void 0)});const r=[];for(let s=0;s{s.children?(s.rowSpan=1,s.children.forEach(i=>i.isSubColumn=!0)):s.rowSpan=e-s.level+1,r[s.level-1].push(s)}),r};function aK(n){const e=He(_s),t=z(()=>PM(n.store.states.originColumns.value));return{isGroup:z(()=>{const s=t.value.length>1;return s&&e&&(e.state.isGroup.value=!0),s}),toggleAllSelection:s=>{s.stopPropagation(),e==null||e.store.commit("toggleAllSelection")},columnRows:t}}var cK=ge({name:"ElTableHeader",components:{ElCheckbox:ia},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=He(_s),o=Xe("table"),s=V({}),{onColumnsChange:i,onScrollableChange:l}=AM(r);ot(async()=>{await it(),await it();const{prop:E,order:T}=n.defaultSort;r==null||r.store.commit("sort",{prop:E,order:T,init:!0})});const{handleHeaderClick:a,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:d,handleMouseOut:f,handleSortClick:h,handleFilterClick:p}=iK(n,e),{getHeaderRowStyle:g,getHeaderRowClass:v,getHeaderCellStyle:m,getHeaderCellClass:w}=lK(n),{isGroup:b,toggleAllSelection:y,columnRows:S}=aK(n);return t.state={onColumnsChange:i,onScrollableChange:l},t.filterPanels=s,{ns:o,filterPanels:s,onColumnsChange:i,onScrollableChange:l,columnRows:S,getHeaderRowClass:v,getHeaderRowStyle:g,getHeaderCellClass:w,getHeaderCellStyle:m,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 Qe("thead",{class:{[n.is("group")]:e}},t.map((v,m)=>Qe("tr",{class:s(m),key:m,style:i(m)},v.map((w,b)=>(w.rowSpan>g&&(g=w.rowSpan),Qe("th",{class:o(m,b,v,w),colspan:w.colSpan,key:`${w.id}-thead`,rowspan:w.rowSpan,style:r(m,b,v,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},[Qe("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&&Qe("span",{onClick:y=>d(y,w),class:"caret-wrapper"},[Qe("i",{onClick:y=>d(y,w,"ascending"),class:"sort-caret ascending"}),Qe("i",{onClick:y=>d(y,w,"descending"),class:"sort-caret descending"})]),w.filterable&&Qe(sK,{store:h,placement:w.filterPlacement||"bottom-start",column:w,upDataColumn:(y,S)=>{w[y]=S}})])]))))))}});function cm(n,e,t=.01){return n-e>t}function uK(n){const e=He(_s),t=V(""),r=V(Qe("div")),o=(p,g,v)=>{var m;const w=e,b=am(p);let y;const S=(m=w==null?void 0:w.vnode.el)==null?void 0:m.dataset.prefix;b&&(y=bx({columns:n.store.states.columns.value},b,S),y&&(w==null||w.emit(`cell-${v}`,g,y,b,p))),w==null||w.emit(`row-${v}`,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=uc(p=>{n.store.commit("setHoverRow",p)},30),c=uc(()=>{n.store.commit("setHoverRow",null)},30),u=p=>{const g=window.getComputedStyle(p,null),v=Number.parseInt(g.paddingLeft,10)||0,m=Number.parseInt(g.paddingRight,10)||0,w=Number.parseInt(g.paddingTop,10)||0,b=Number.parseInt(g.paddingBottom,10)||0;return{left:v,right:m,top:w,bottom:b}},d=(p,g,v)=>{let m=g.target.parentNode;for(;p>1&&(m=m==null?void 0:m.nextSibling,!(!m||m.nodeName!=="TR"));)v(m,"hover-row hover-fixed-row"),p--};return{handleDoubleClick:s,handleClick:i,handleContextMenu:l,handleMouseEnter:a,handleMouseLeave:c,handleCellMouseEnter:(p,g,v)=>{var m;const w=e,b=am(p),y=(m=w==null?void 0:w.vnode.el)==null?void 0:m.dataset.prefix;if(b){const U=bx({columns:n.store.states.columns.value},b,y);b.rowSpan>1&&d(b.rowSpan,p,ra);const Q=w.hoverState={cell:b,column:U,row:g};w==null||w.emit("cell-mouse-enter",Q.row,Q.column,Q.cell,p)}if(!v)return;const S=p.target.querySelector(".cell");if(!(Ua(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:k,height:P}=S.getBoundingClientRect();O<.001&&(T=Math.floor(T)),M-Math.floor(M)<.001&&(M=Math.floor(M));const{top:j,left:le,right:N,bottom:R}=u(S),K=le+N,W=j+R;(cm(T+K,k)||cm(M+W,P)||cm(S.scrollWidth,k))&&Hq(v,b.innerText||b.textContent,b,w)},handleCellMouseLeave:p=>{const g=am(p);if(!g)return;g.rowSpan>1&&d(g.rowSpan,p,ds);const v=e==null?void 0:e.hoverState;e==null||e.emit("cell-mouse-leave",v==null?void 0:v.row,v==null?void 0:v.column,v==null?void 0:v.cell,p)},tooltipContent:t,tooltipTrigger:r}}function dK(n){const e=He(_s),t=Xe("table");return{getRowStyle:(c,u)=>{const d=e==null?void 0:e.props.rowStyle;return typeof d=="function"?d.call(null,{row:c,rowIndex:u}):d||null},getRowClass:(c,u)=>{const d=[t.e("row")];e!=null&&e.props.highlightCurrentRow&&c===n.store.states.currentRow.value&&d.push("current-row"),n.stripe&&u%2===1&&d.push(t.em("row","striped"));const f=e==null?void 0:e.props.rowClassName;return typeof f=="string"?d.push(f):typeof f=="function"&&d.push(f.call(null,{row:c,rowIndex:u})),d},getCellStyle:(c,u,d,f)=>{const h=e==null?void 0:e.props.cellStyle;let p=h??{};typeof h=="function"&&(p=h.call(null,{rowIndex:c,columnIndex:u,row:d,column:f}));const g=Gy(u,n==null?void 0:n.fixed,n.store);return mc(g,"left"),mc(g,"right"),Object.assign({},p,g)},getCellClass:(c,u,d,f,h)=>{const p=Wy(t.b(),u,n==null?void 0:n.fixed,n.store,void 0,h),g=[f.id,f.align,f.className,...p],v=e==null?void 0:e.props.cellClassName;return typeof v=="string"?g.push(v):typeof v=="function"&&g.push(v.call(null,{rowIndex:c,columnIndex:u,row:d,column:f})),g.push(t.e("cell")),g.filter(m=>!!m).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 v=g({row:c,column:u,rowIndex:d,columnIndex:f});Array.isArray(v)?(h=v[0],p=v[1]):typeof v=="object"&&(h=v.rowspan,p=v.colspan)}return{rowspan:h,colspan:p}},getColspanRealWidth:(c,u,d)=>{if(u<1)return c[d].realWidth;const f=c.map(({realWidth:h,width:p})=>h||p).slice(d,d+u);return Number(f.reduce((h,p)=>Number(h)+Number(p),-1))}}}function fK(n){const e=He(_s),t=Xe("table"),{handleDoubleClick:r,handleClick:o,handleContextMenu:s,handleMouseEnter:i,handleMouseLeave:l,handleCellMouseEnter:a,handleCellMouseLeave:c,tooltipContent:u,tooltipTrigger:d}=uK(n),{getRowStyle:f,getRowClass:h,getCellStyle:p,getCellClass:g,getSpan:v,getColspanRealWidth:m}=dK(n),w=z(()=>n.store.states.columns.value.findIndex(({type:T})=>T==="default")),b=(T,M)=>{const O=e.props.rowKey;return O?Xn(T,O):M},y=(T,M,O,k=!1)=>{const{tooltipEffect:P,tooltipOptions:L,store:j}=n,{indent:le,columns:N}=j.states,R=h(T,M);let K=!0;return O&&(R.push(t.em("row",`level-${O.level}`)),K=O.display),Qe("tr",{style:[K?null:{display:"none"},f(T,M)],class:R,key:b(T,M),onDblclick:U=>r(U,T),onClick:U=>o(U,T),onContextmenu:U=>s(U,T),onMouseenter:()=>i(M),onMouseleave:l},N.value.map((U,Q)=>{const{rowspan:de,colspan:ee}=v(T,U,M,Q);if(!de||!ee)return null;const Me=Object.assign({},U);Me.realWidth=m(N.value,ee,Q);const fe={store:n.store,_self:n.context||e,column:Me,row:T,$index:M,cellIndex:Q,expanded:k};Q===w.value&&O&&(fe.treeNode={indent:O.level*le.value,level:O.level},typeof O.expanded=="boolean"&&(fe.treeNode.expanded=O.expanded,"loading"in O&&(fe.treeNode.loading=O.loading),"noLazyChildren"in O&&(fe.treeNode.noLazyChildren=O.noLazyChildren)));const Ce=`${b(T,M)},${Q}`,Oe=Me.columnKey||Me.rawColumnKey||"",ne=S(Q,U,fe),ie=U.showOverflowTooltip&&cn({effect:P},L,U.showOverflowTooltip);return Qe("td",{style:p(M,Q,T,U),class:g(M,Q,T,U,ee-1),key:`${Oe}${Ce}`,rowspan:de,colspan:ee,onMouseenter:X=>a(X,T,ie),onMouseleave:c},[ne])}))},S=(T,M,O)=>M.renderCell(O);return{wrappedRowRender:(T,M)=>{const O=n.store,{isRowExpanded:k,assertRowKey:P}=O,{treeData:L,lazyTreeNodeMap:j,childrenColumnName:le,rowKey:N}=O.states,R=O.states.columns.value;if(R.some(({type:W})=>W==="expand")){const W=k(T),U=y(T,M,void 0,W),Q=e.renderExpanded;return W?Q?[[U,Qe("tr",{key:`expanded-row__${U.key}`},[Qe("td",{colspan:R.length,class:`${t.e("cell")} ${t.e("expanded-cell")}`},[Q({row:T,$index:M,store:O,expanded:W})])])]]:U:[[U]]}else if(Object.keys(L.value).length){P();const W=Xn(T,N.value);let U=L.value[W],Q=null;U&&(Q={expanded:U.expanded,level:U.level,display:!0},typeof U.lazy=="boolean"&&(typeof U.loaded=="boolean"&&U.loaded&&(Q.noLazyChildren=!(U.children&&U.children.length)),Q.loading=U.loading));const de=[y(T,M,Q)];if(U){let ee=0;const Me=(Ce,Oe)=>{Ce&&Ce.length&&Oe&&Ce.forEach(ne=>{const ie={display:Oe.display&&Oe.expanded,level:Oe.level+1,expanded:!1,noLazyChildren:!1,loading:!1},X=Xn(ne,N.value);if(X==null)throw new Error("For nested data item, row-key is required.");if(U={...L.value[X]},U&&(ie.expanded=U.expanded,U.level=U.level||ie.level,U.display=!!(U.expanded&&ie.display),typeof U.lazy=="boolean"&&(typeof U.loaded=="boolean"&&U.loaded&&(ie.noLazyChildren=!(U.children&&U.children.length)),ie.loading=U.loading)),ee++,de.push(y(ne,M+ee,ie)),U){const me=j.value[X]||ne[le.value];Me(me,U)}})};U.display=!0;const fe=j.value[W]||T[le.value];Me(fe,U)}return de}else return y(T,M,void 0)},tooltipContent:u,tooltipTrigger:d}}const hK={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var pK=ge({name:"ElTableBody",props:hK,setup(n){const e=vt(),t=He(_s),r=Xe("table"),{wrappedRowRender:o,tooltipContent:s,tooltipTrigger:i}=fK(n),{onColumnsChange:l,onScrollableChange:a}=AM(t),c=[];return je(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(m=>m==null?void 0:m.classList.contains(`${r.e("row")}`));let g=u;const v=(f=p[g])==null?void 0:f.childNodes;if(v!=null&&v.length){let m=0;Array.from(v).reduce((b,y,S)=>{var E,T;return((E=v[S])==null?void 0:E.colSpan)>1&&(m=(T=v[S])==null?void 0:T.colSpan),y.nodeName!=="TD"&&m===0&&b.push(S),m>0&&m--,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){ra(S[b],"hover-cell"),c.push(S[b]);break}g--}})}else c.forEach(m=>ds(m,"hover-cell")),c.length=0;!n.store.states.isComplex.value||!Et||H6(()=>{const m=p[d],w=p[u];m&&!m.classList.contains("hover-fixed-row")&&ds(m,"hover-row"),w&&ra(w,"hover-row")})}),bs(()=>{var u;(u=Yr)==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 Qe("tbody",{tabIndex:-1},[t.reduce((r,o)=>r.concat(n(o,r.length)),[])])}});function gK(){const n=He(_s),e=n==null?void 0:n.store,t=z(()=>e.states.fixedLeafColumnsLength.value),r=z(()=>e.states.rightFixedColumns.value.length),o=z(()=>e.states.columns.value.length),s=z(()=>e.states.fixedColumns.value.length),i=z(()=>e.states.rightFixedColumns.value.length);return{leftFixedLeafCount:t,rightFixedLeafCount:r,columnsCount:o,leftFixedCount:s,rightFixedCount:i,columns:e.states.columns}}function mK(n){const{columns:e}=gK(),t=Xe("table");return{getCellClasses:(s,i)=>{const l=s[i],a=[t.e("cell"),l.id,l.align,l.labelClassName,...Wy(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=Gy(i,s.fixed,n.store);return mc(l,"left"),mc(l,"right"),l},columns:e}}var vK=ge({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(n){const{getCellClasses:e,getCellStyles:t,columns:r}=mK(n);return{ns:Xe("table"),getCellClasses:e,getCellStyles:t,columns:r}},render(){const{columns:n,getCellStyles:e,getCellClasses:t,summaryMethod:r,sumText:o}=this,s=this.store.states.data.value;let i=[];return r?i=r({columns:n,data:s}):n.forEach((l,a)=>{if(a===0){i[a]=o;return}const c=s.map(h=>Number(h[l.property])),u=[];let d=!0;c.forEach(h=>{if(!Number.isNaN(+h)){d=!1;const p=`${h}`.split(".")[1];u.push(p?p.length:0)}});const f=Math.max.apply(null,u);d?i[a]="":i[a]=c.reduce((h,p)=>{const g=Number(p);return Number.isNaN(+g)?h:Number.parseFloat((h+p).toFixed(Math.min(f,20)))},0)}),Qe(Qe("tfoot",[Qe("tr",{},[...n.map((l,a)=>Qe("td",{key:a,colspan:l.colSpan,rowspan:l.rowSpan,class:t(n,a),style:e(l,a)},[Qe("div",{class:["cell",l.labelClassName]},[i[a]])]))])]))}});function bK(n){return{setCurrentRow:u=>{n.commit("setCurrentRow",u)},getSelectionRows:()=>n.getSelectionRows(),toggleRowSelection:(u,d)=>{n.toggleRowSelection(u,d,!1),n.updateAllSelected()},clearSelection:()=>{n.clearSelection()},clearFilter:u=>{n.clearFilter(u)},toggleAllSelection:()=>{n.commit("toggleAllSelection")},toggleRowExpansion:(u,d)=>{n.toggleRowExpansionAdapter(u,d)},clearSort:()=>{n.clearSort()},sort:(u,d)=>{n.commit("sort",{prop:u,order:d})}}}function yK(n,e,t,r){const o=V(!1),s=V(null),i=V(!1),l=U=>{i.value=U},a=V({width:null,height:null,headerHeight:null}),c=V(!1),u={display:"inline-block",verticalAlign:"middle"},d=V(),f=V(0),h=V(0),p=V(0),g=V(0),v=V(0);ss(()=>{e.setHeight(n.height)}),ss(()=>{e.setMaxHeight(n.maxHeight)}),je(()=>[n.currentRowKey,t.states.rowKey],([U,Q])=>{!x(Q)||!x(U)||t.setCurrentRowKey(`${U}`)},{immediate:!0}),je(()=>n.data,U=>{r.store.commit("setData",U)},{immediate:!0,deep:!0}),ss(()=>{n.expandRowKeys&&t.setExpandRowKeysAdapter(n.expandRowKeys)});const m=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},w=(U,Q)=>{const{pixelX:de,pixelY:ee}=Q;Math.abs(de)>=Math.abs(ee)&&(r.refs.bodyWrapper.scrollLeft+=Q.pixelX/5)},b=z(()=>n.height||n.maxHeight||t.states.fixedColumns.value.length>0||t.states.rightFixedColumns.value.length>0),y=z(()=>({width:e.bodyWidth.value?`${e.bodyWidth.value}px`:""})),S=()=>{b.value&&e.updateElsHeight(),e.updateColumnsWidth(),requestAnimationFrame(O)};ot(async()=>{await it(),t.updateColumns(),k(),requestAnimationFrame(S);const U=r.vnode.el,Q=r.refs.headerWrapper;n.flexible&&U&&U.parentElement&&(U.parentElement.style.minWidth="0"),a.value={width:d.value=U.offsetWidth,height:U.offsetHeight,headerHeight:n.showHeader&&Q?Q.offsetHeight:null},t.states.columns.value.forEach(de=>{de.filteredValue&&de.filteredValue.length&&r.store.commit("filterChange",{column:de,values:de.filteredValue,silent:!0})}),r.$ready=!0});const E=(U,Q)=>{if(!U)return;const de=Array.from(U.classList).filter(ee=>!ee.startsWith("is-scrolling-"));de.push(e.scrollX.value?Q:"is-scrolling-none"),U.className=de.join(" ")},T=U=>{const{tableWrapper:Q}=r.refs;E(Q,U)},M=U=>{const{tableWrapper:Q}=r.refs;return!!(Q&&Q.classList.contains(U))},O=function(){if(!r.refs.scrollBarRef)return;if(!e.scrollX.value){const Oe="is-scrolling-none";M(Oe)||T(Oe);return}const U=r.refs.scrollBarRef.wrapRef;if(!U)return;const{scrollLeft:Q,offsetWidth:de,scrollWidth:ee}=U,{headerWrapper:Me,footerWrapper:fe}=r.refs;Me&&(Me.scrollLeft=Q),fe&&(fe.scrollLeft=Q);const Ce=ee-de-1;Q>=Ce?T("is-scrolling-right"):T(Q===0?"is-scrolling-left":"is-scrolling-middle")},k=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&xn(r.refs.scrollBarRef.wrapRef,"scroll",O,{passive:!0}),n.fit?mr(r.vnode.el,P):xn(window,"resize",P),mr(r.refs.bodyWrapper,()=>{var U,Q;P(),(Q=(U=r.refs)==null?void 0:U.scrollBarRef)==null||Q.update()}))},P=()=>{var U,Q,de,ee;const Me=r.vnode.el;if(!r.$ready||!Me)return;let fe=!1;const{width:Ce,height:Oe,headerHeight:ne}=a.value,ie=d.value=Me.offsetWidth;Ce!==ie&&(fe=!0);const X=Me.offsetHeight;(n.height||b.value)&&Oe!==X&&(fe=!0);const me=n.tableLayout==="fixed"?r.refs.headerWrapper:(U=r.refs.tableHeaderRef)==null?void 0:U.$el;n.showHeader&&(me==null?void 0:me.offsetHeight)!==ne&&(fe=!0),f.value=((Q=r.refs.tableWrapper)==null?void 0:Q.scrollHeight)||0,p.value=(me==null?void 0:me.scrollHeight)||0,g.value=((de=r.refs.footerWrapper)==null?void 0:de.offsetHeight)||0,v.value=((ee=r.refs.appendWrapper)==null?void 0:ee.offsetHeight)||0,h.value=f.value-p.value-g.value-v.value,fe&&(a.value={width:ie,height:X,headerHeight:n.showHeader&&(me==null?void 0:me.offsetHeight)||0},S())},L=bo(),j=z(()=>{const{bodyWidth:U,scrollY:Q,gutterWidth:de}=e;return U.value?`${U.value-(Q.value?de:0)}px`:""}),le=z(()=>n.maxHeight?"fixed":n.tableLayout),N=z(()=>{if(n.data&&n.data.length)return null;let U="100%";n.height&&h.value&&(U=`${h.value}px`);const Q=d.value;return{width:Q?`${Q}px`:"",height:U}}),R=z(()=>n.height?{height:Number.isNaN(Number(n.height))?n.height:`${n.height}px`}:n.maxHeight?{maxHeight:Number.isNaN(Number(n.maxHeight))?n.maxHeight:`${n.maxHeight}px`}:{}),K=z(()=>n.height?{height:"100%"}:n.maxHeight?Number.isNaN(Number(n.maxHeight))?{maxHeight:`calc(${n.maxHeight} - ${p.value+g.value}px)`}:{maxHeight:`${n.maxHeight-p.value-g.value}px`}:{});return{isHidden:o,renderExpanded:s,setDragVisible:l,isGroup:c,handleMouseLeave:m,handleHeaderFooterMousewheel:w,tableSize:L,emptyBlockStyle:N,handleFixedMousewheel:(U,Q)=>{const de=r.refs.bodyWrapper;if(Math.abs(Q.spinY)>0){const ee=de.scrollTop;Q.pixelY<0&&ee!==0&&U.preventDefault(),Q.pixelY>0&&de.scrollHeight-de.clientHeight>ee&&U.preventDefault(),de.scrollTop+=Math.ceil(Q.pixelY/5)}else de.scrollLeft+=Math.ceil(Q.pixelX/5)},resizeProxyVisible:i,bodyWidth:j,resizeState:a,doLayout:S,tableBodyStyles:y,tableLayout:le,scrollbarViewStyle:u,tableInnerStyle:R,scrollbarStyle:K}}function wK(n){const e=V(),t=()=>{const o=n.vnode.el.querySelector(".hidden-columns"),s={childList:!0,subtree:!0},i=n.store.states.updateOrderFns;e.value=new MutationObserver(()=>{i.forEach(l=>l())}),e.value.observe(o,s)};ot(()=>{t()}),bs(()=>{var r;(r=e.value)==null||r.disconnect()})}var CK={data:{type:Array,default:()=>[]},size:ni,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 NM(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 Qe("colgroup",{},t.map(o=>Qe("col",r(o))))}NM.props=["columns","tableLayout"];const xK=()=>{const n=V(),e=(s,i)=>{const l=n.value;l&&l.scrollTo(s,i)},t=(s,i)=>{const l=n.value;l&&Tt(i)&&["Top","Left"].includes(s)&&l[`setScroll${s}`](i)};return{scrollBarRef:n,scrollTo:e,setScrollTop:s=>t("Top",s),setScrollLeft:s=>t("Left",s)}};let SK=1;const EK=ge({name:"ElTable",directives:{Mousewheel:MU},components:{TableHeader:cK,TableBody:pK,TableFooter:vK,ElScrollbar:rg,hColgroup:NM},props:CK,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(n){const{t:e}=ws(),t=Xe("table"),r=vt();zt(_s,r);const o=Jq(r,n);r.store=o;const s=new Zq({store:r.store,table:r,fit:n.fit,showHeader:n.showHeader});r.layout=s;const i=z(()=>(o.states.data.value||[]).length===0),{setCurrentRow:l,getSelectionRows:a,toggleRowSelection:c,clearSelection:u,clearFilter:d,toggleAllSelection:f,toggleRowExpansion:h,clearSort:p,sort:g}=bK(o),{isHidden:v,renderExpanded:m,setDragVisible:w,isGroup:b,handleMouseLeave:y,handleHeaderFooterMousewheel:S,tableSize:E,emptyBlockStyle:T,handleFixedMousewheel:M,resizeProxyVisible:O,bodyWidth:k,resizeState:P,doLayout:L,tableBodyStyles:j,tableLayout:le,scrollbarViewStyle:N,tableInnerStyle:R,scrollbarStyle:K}=yK(n,s,o,r),{scrollBarRef:W,scrollTo:U,setScrollLeft:Q,setScrollTop:de}=xK(),ee=uc(L,50),Me=`${t.namespace.value}-table_${SK++}`;r.tableId=Me,r.state={isGroup:b,resizeState:P,doLayout:L,debouncedUpdateLayout:ee};const fe=z(()=>n.sumText||e("el.table.sumText")),Ce=z(()=>n.emptyText||e("el.table.emptyText")),Oe=z(()=>PM(o.states.originColumns.value)[0]);return wK(r),{ns:t,layout:s,store:o,columns:Oe,handleHeaderFooterMousewheel:S,handleMouseLeave:y,tableId:Me,tableSize:E,isHidden:v,isEmpty:i,renderExpanded:m,resizeProxyVisible:O,resizeState:P,isGroup:b,bodyWidth:k,tableBodyStyles:j,emptyBlockStyle:T,debouncedUpdateLayout:ee,handleFixedMousewheel:M,setCurrentRow:l,getSelectionRows:a,toggleRowSelection:c,clearSelection:u,clearFilter:d,toggleAllSelection:f,toggleRowExpansion:h,clearSort:p,doLayout:L,sort:g,t:e,setDragVisible:w,context:r,computedSumText:fe,computedEmptyText:Ce,tableLayout:le,scrollbarViewStyle:N,tableInnerStyle:R,scrollbarStyle:K,scrollBarRef:W,scrollTo:U,setScrollLeft:Q,setScrollTop:de}}}),_K=["data-prefix"],TK={ref:"hiddenColumns",class:"hidden-columns"};function OK(n,e,t,r,o,s){const i=at("hColgroup"),l=at("table-header"),a=at("table-body"),c=at("table-footer"),u=at("el-scrollbar"),d=Hb("mousewheel");return A(),q("div",{ref:"tableWrapper",class:Z([{[n.ns.m("fit")]:n.fit,[n.ns.m("striped")]:n.stripe,[n.ns.m("border")]:n.border||n.isGroup,[n.ns.m("hidden")]:n.isHidden,[n.ns.m("group")]:n.isGroup,[n.ns.m("fluid-height")]:n.maxHeight,[n.ns.m("scrollable-x")]:n.layout.scrollX.value,[n.ns.m("scrollable-y")]:n.layout.scrollY.value,[n.ns.m("enable-row-hover")]:!n.store.states.isComplex.value,[n.ns.m("enable-row-transition")]:(n.store.states.data.value||[]).length!==0&&(n.store.states.data.value||[]).length<100,"has-footer":n.showSummary},n.ns.m(n.tableSize),n.className,n.ns.b(),n.ns.m(`layout-${n.tableLayout}`)]),style:wt(n.style),"data-prefix":n.ns.namespace.value,onMouseleave:e[0]||(e[0]=(...f)=>n.handleMouseLeave&&n.handleMouseLeave(...f))},[F("div",{class:Z(n.ns.e("inner-wrapper")),style:wt(n.tableInnerStyle)},[F("div",TK,[Ae(n.$slots,"default")],512),n.showHeader&&n.tableLayout==="fixed"?$e((A(),q("div",{key:0,ref:"headerWrapper",class:Z(n.ns.e("header-wrapper"))},[F("table",{ref:"tableHeader",class:Z(n.ns.e("header")),style:wt(n.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[C(i,{columns:n.store.states.columns.value,"table-layout":n.tableLayout},null,8,["columns","table-layout"]),C(l,{ref:"tableHeaderRef",border:n.border,"default-sort":n.defaultSort,store:n.store,onSetDragVisible:n.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[d,n.handleHeaderFooterMousewheel]]):be("v-if",!0),F("div",{ref:"bodyWrapper",class:Z(n.ns.e("body-wrapper"))},[C(u,{ref:"scrollBarRef","view-style":n.scrollbarViewStyle,"wrap-style":n.scrollbarStyle,always:n.scrollbarAlwaysOn},{default:_(()=>[F("table",{ref:"tableBody",class:Z(n.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:wt({width:n.bodyWidth,tableLayout:n.tableLayout})},[C(i,{columns:n.store.states.columns.value,"table-layout":n.tableLayout},null,8,["columns","table-layout"]),n.showHeader&&n.tableLayout==="auto"?(A(),ve(l,{key:0,ref:"tableHeaderRef",class:Z(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"])):be("v-if",!0),C(a,{context:n.context,highlight:n.highlightCurrentRow,"row-class-name":n.rowClassName,"tooltip-effect":n.tooltipEffect,"tooltip-options":n.tooltipOptions,"row-style":n.rowStyle,store:n.store,stripe:n.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),n.showSummary&&n.tableLayout==="auto"?(A(),ve(c,{key:1,class:Z(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"])):be("v-if",!0)],6),n.isEmpty?(A(),q("div",{key:0,ref:"emptyBlock",style:wt(n.emptyBlockStyle),class:Z(n.ns.e("empty-block"))},[F("span",{class:Z(n.ns.e("empty-text"))},[Ae(n.$slots,"empty",{},()=>[G(oe(n.computedEmptyText),1)])],2)],6)):be("v-if",!0),n.$slots.append?(A(),q("div",{key:1,ref:"appendWrapper",class:Z(n.ns.e("append-wrapper"))},[Ae(n.$slots,"append")],2)):be("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),n.showSummary&&n.tableLayout==="fixed"?$e((A(),q("div",{key:1,ref:"footerWrapper",class:Z(n.ns.e("footer-wrapper"))},[F("table",{class:Z(n.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:wt(n.tableBodyStyles)},[C(i,{columns:n.store.states.columns.value,"table-layout":n.tableLayout},null,8,["columns","table-layout"]),C(c,{border:n.border,"default-sort":n.defaultSort,store:n.store,"sum-text":n.computedSumText,"summary-method":n.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[Ye,!n.isEmpty],[d,n.handleHeaderFooterMousewheel]]):be("v-if",!0),n.border||n.isGroup?(A(),q("div",{key:2,class:Z(n.ns.e("border-left-patch"))},null,2)):be("v-if",!0)],6),$e(F("div",{ref:"resizeProxy",class:Z(n.ns.e("column-resize-proxy"))},null,2),[[Ye,n.resizeProxyVisible]])],46,_K)}var MK=tt(EK,[["render",OK],["__file","table.vue"]]);const AK={selection:"table-column--selection",expand:"table__expand-column"},kK={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},PK=n=>AK[n]||"",NK={selection:{renderHeader({store:n,column:e}){function t(){return n.states.data.value&&n.states.data.value.length===0}return Qe(ia,{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 Qe(ia,{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)),Qe("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")),Qe("div",{class:o,onClick:function(i){i.stopPropagation(),e.toggleRowExpansion(n)}},{default:()=>[Qe(dt,null,{default:()=>[Qe(Jp)]})]})},sortable:!1,resizable:!1}};function IK({row:n,column:e,$index:t}){var r;const o=e.property,s=o&&lh(n,o).value;return e&&e.formatter?e.formatter(n,e,s,t):((r=s==null?void 0:s.toString)==null?void 0:r.call(s))||""}function LK({row:n,treeNode:e,store:t},r=!1){const{ns:o}=t;if(!e)return r?[Qe("span",{class:o.e("placeholder")})]:null;const s=[],i=function(l){l.stopPropagation(),!e.loading&&t.loadOrToggle(n)};if(e.indent&&s.push(Qe("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=Jp;e.loading&&(a=ud),s.push(Qe("div",{class:l,onClick:i},{default:()=>[Qe(dt,{class:{[o.is("loading")]:e.loading}},{default:()=>[Qe(a)]})]}))}else s.push(Qe("span",{class:o.e("placeholder")}));return s}function Cx(n,e){return n.reduce((t,r)=>(t[r]=r,t),e)}function RK(n,e){const t=vt();return{registerComplexWatchers:()=>{const s=["fixed"],i={realWidth:"width",realMinWidth:"minWidth"},l=Cx(s,i);Object.keys(l).forEach(a=>{const c=i[a];xt(e,c)&&je(()=>e[c],u=>{let d=u;c==="width"&&a==="realWidth"&&(d=Uy(u)),c==="minWidth"&&a==="realMinWidth"&&(d=EM(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=Cx(s,i);Object.keys(l).forEach(a=>{const c=i[a];xt(e,c)&&je(()=>e[c],u=>{t.columnConfig.value[a]=u})})}}}function $K(n,e,t){const r=vt(),o=V(""),s=V(!1),i=V(),l=V(),a=Xe("table");ss(()=>{i.value=n.align?`is-${n.align}`:null,i.value}),ss(()=>{l.value=n.headerAlign?`is-${n.headerAlign}`:i.value,l.value});const c=z(()=>{let y=r.vnode.vParent||r.parent;for(;y&&!y.tableId&&!y.columnId;)y=y.vnode.vParent||y.parent;return y}),u=z(()=>{const{store:y}=r.parent;if(!y)return!1;const{treeData:S}=y.states,E=S.value;return E&&Object.keys(E).length>0}),d=V(Uy(n.width)),f=V(EM(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=NK[S]||{};Object.keys(E).forEach(M=>{const O=E[M];M!=="className"&&O!==void 0&&(y[M]=O)});const T=PK(S);if(T){const M=`${x(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,Ae(e,"header",E,()=>[y.label])));let S=y.renderCell;return y.type==="expand"?(y.renderCell=E=>Qe("div",{class:"cell"},[S(E)]),t.value.renderExpanded=E=>e.default?e.default(E):e.default):(S=S||IK,y.renderCell=E=>{let T=null;if(e.default){const j=e.default(E);T=j.some(le=>le.type!==Yn)?j:S(E)}else T=S(E);const{columns:M}=t.value.store.states,O=M.value.findIndex(j=>j.type==="default"),k=u.value&&E.cellIndex===O,P=LK(E,k),L={class:"cell",style:{}};return y.showOverflowTooltip&&(L.class=`${L.class} ${x(a.namespace)}-tooltip`,L.style={width:`${(E.column.realWidth||Number(E.column.width))-1}px`}),g(T),Qe("div",L,[P,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 DK={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:n=>n.every(e=>["ascending","descending",null].includes(e))}};let VK=1;var IM=ge({name:"ElTableColumn",components:{ElCheckbox:ia},props:DK,setup(n,{slots:e}){const t=vt(),r=V({}),o=z(()=>{let b=t.parent;for(;b&&!b.tableId;)b=b.parent;return b}),{registerNormalWatchers:s,registerComplexWatchers:i}=RK(o,n),{columnId:l,isSubColumn:a,realHeaderAlign:c,columnOrTableParent:u,setColumnWidth:d,setColumnForcedProps:f,setColumnRenders:h,getPropsData:p,getColumnElIndex:g,realAlign:v,updateColumnOrder:m}=$K(n,e,o),w=u.value;l.value=`${w.tableId||w.columnId}_column_${VK++}`,Bd(()=>{a.value=o.value!==w;const b=n.type||"default",y=n.sortable===""?!0:n.sortable,S=_r(n.showOverflowTooltip)?w.props.showOverflowTooltip:n.showOverflowTooltip,E={...kK[b],id:l.value,type:b,property:n.prop||n.property,align:v,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 P=p(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);P=Bq(E,P),P=zq(h,d,f)(P),r.value=P,s(),i()}),ot(()=>{var b;const y=u.value,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,m)}),_n(()=>{r.value.getColumnIndex()>-1&&o.value.store.commit("removeColumn",r.value,a.value?w.columnConfig.value:null,m)}),t.columnId=l.value,t.columnConfig=r},render(){var n,e,t;try{const r=(e=(n=this.$slots).default)==null?void 0:e.call(n,{row:{},column:{},$index:-1}),o=[];if(Array.isArray(r))for(const i of r)((t=i.type)==null?void 0:t.name)==="ElTableColumn"||i.shapeFlag&2?o.push(i):i.type===Re&&Array.isArray(i.children)&&i.children.forEach(l=>{(l==null?void 0:l.patchFlag)!==1024&&!ht(l==null?void 0:l.children)&&o.push(l)});return Qe("div",o)}catch{return Qe("div",[])}}});const tf=Rt(MK,{TableColumn:IM}),nf=Ir(IM),fg=Symbol("tabsRootContextKey"),BK=st({tabs:{type:Ue(Array),default:()=>_o([])}}),LM="ElTabBar",FK=ge({name:LM}),zK=ge({...FK,props:BK,setup(n,{expose:e}){const t=n,r=vt(),o=He(fg);o||cl(LM,"");const s=Xe("tabs"),i=V(),l=V(),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 v,m;const w=(m=(v=r.parent)==null?void 0:v.refs)==null?void 0:m[`tab-${g.uid}`];if(!w)return!1;if(!g.active)return!0;u=w[`offset${Pi(p)}`],d=w[`client${Pi(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${Pi(h)}(${u}px)`}},c=()=>l.value=a();return je(()=>t.tabs,async()=>{await it(),c()},{immediate:!0}),mr(i,()=>c()),e({ref:i,update:c}),(u,d)=>(A(),q("div",{ref_key:"barRef",ref:i,class:Z([x(s).e("active-bar"),x(s).is(x(o).props.tabPosition)]),style:wt(l.value)},null,6))}});var jK=tt(zK,[["__file","tab-bar.vue"]]);const HK=st({panes:{type:Ue(Array),default:()=>_o([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),UK={tabClick:(n,e,t)=>t instanceof Event,tabRemove:(n,e)=>e instanceof Event},xx="ElTabNav",WK=ge({name:xx,props:HK,emits:UK,setup(n,{expose:e,emit:t}){const r=vt(),o=He(fg);o||cl(xx,"");const s=Xe("tabs"),i=yD(),l=ND(),a=V(),c=V(),u=V(),d=V(),f=V(!1),h=V(0),p=V(!1),g=V(!0),v=z(()=>["top","bottom"].includes(o.props.tabPosition)?"width":"height"),m=z(()=>({transform:`translate${v.value==="width"?"X":"Y"}(-${h.value}px)`})),w=()=>{if(!a.value)return;const O=a.value[`offset${Pi(v.value)}`],k=h.value;if(!k)return;const P=k>O?k-O:0;h.value=P},b=()=>{if(!a.value||!c.value)return;const O=c.value[`offset${Pi(v.value)}`],k=a.value[`offset${Pi(v.value)}`],P=h.value;if(O-P<=k)return;const L=O-P>k*2?P+k:O-k;h.value=L},y=async()=>{const O=c.value;if(!f.value||!u.value||!a.value||!O)return;await it();const k=u.value.querySelector(".is-active");if(!k)return;const P=a.value,L=["top","bottom"].includes(o.props.tabPosition),j=k.getBoundingClientRect(),le=P.getBoundingClientRect(),N=L?O.offsetWidth-le.width:O.offsetHeight-le.height,R=h.value;let K=R;L?(j.leftle.right&&(K=R+j.right-le.right)):(j.tople.bottom&&(K=R+(j.bottom-le.bottom))),K=Math.max(K,0),h.value=Math.min(K,N)},S=()=>{var O;if(!c.value||!a.value)return;n.stretch&&((O=d.value)==null||O.update());const k=c.value[`offset${Pi(v.value)}`],P=a.value[`offset${Pi(v.value)}`],L=h.value;P0&&(h.value=0))},E=O=>{const k=O.code,{up:P,down:L,left:j,right:le}=Cn;if(![P,L,j,le].includes(k))return;const N=Array.from(O.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),R=N.indexOf(O.target);let K;k===j||k===P?R===0?K=N.length-1:K=R-1:R{g.value&&(p.value=!0)},M=()=>p.value=!1;return je(i,O=>{O==="hidden"?g.value=!1:O==="visible"&&setTimeout(()=>g.value=!0,50)}),je(l,O=>{O?setTimeout(()=>g.value=!0,50):g.value=!1}),mr(u,S),ot(()=>setTimeout(()=>y(),0)),ga(()=>S()),e({scrollToActiveTab:y,removeFocus:M}),je(()=>n.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const O=f.value?[C("span",{class:[s.e("nav-prev"),s.is("disabled",!f.value.prev)],onClick:w},[C(dt,null,{default:()=>[C(KT,null,null)]})]),C("span",{class:[s.e("nav-next"),s.is("disabled",!f.value.next)],onClick:b},[C(dt,null,{default:()=>[C(Jp,null,null)]})])]:null,k=n.panes.map((P,L)=>{var j,le,N,R;const K=P.uid,W=P.props.disabled,U=(le=(j=P.props.name)!=null?j:P.index)!=null?le:`${L}`,Q=!W&&(P.isClosable||n.editable);P.index=`${L}`;const de=Q?C(dt,{class:"is-icon-close",onClick:fe=>t("tabRemove",P,fe)},{default:()=>[C(oa,null,null)]}):null,ee=((R=(N=P.slots).label)==null?void 0:R.call(N))||P.props.label,Me=!W&&P.active?0:-1;return C("div",{ref:`tab-${K}`,class:[s.e("item"),s.is(o.props.tabPosition),s.is("active",P.active),s.is("disabled",W),s.is("closable",Q),s.is("focus",p.value)],id:`tab-${U}`,key:`tab-${K}`,"aria-controls":`pane-${U}`,role:"tab","aria-selected":P.active,tabindex:Me,onFocus:()=>T(),onBlur:()=>M(),onClick:fe=>{M(),t("tabClick",P,U,fe)},onKeydown:fe=>{Q&&(fe.code===Cn.delete||fe.code===Cn.backspace)&&t("tabRemove",P,fe)}},[ee,de])});return C("div",{ref:u,class:[s.e("nav-wrap"),s.is("scrollable",!!f.value),s.is(o.props.tabPosition)]},[O,C("div",{class:s.e("nav-scroll"),ref:a},[C("div",{class:[s.e("nav"),s.is(o.props.tabPosition),s.is("stretch",n.stretch&&["top","bottom"].includes(o.props.tabPosition))],ref:c,style:m.value,role:"tablist",onKeydown:E},[n.type?null:C(jK,{ref:d,tabs:[...n.panes]},null),k])])])}}}),GK=st({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Ue(Function),default:()=>!0},stretch:Boolean}),um=n=>ht(n)||Tt(n),qK={[Ht]:n=>um(n),tabClick:(n,e)=>e instanceof Event,tabChange:n=>um(n),edit:(n,e)=>["remove","add"].includes(e),tabRemove:n=>um(n),tabAdd:()=>!0},KK=ge({name:"ElTabs",props:GK,emits:qK,setup(n,{emit:e,slots:t,expose:r}){var o;const s=Xe("tabs"),{children:i,addChild:l,removeChild:a}=iH(vt(),"ElTabPane"),c=V(),u=V((o=n.modelValue)!=null?o:"0"),d=async(g,v=!1)=>{var m,w,b;if(!(u.value===g||_r(g)))try{await((m=n.beforeLeave)==null?void 0:m.call(n,g,u.value))!==!1&&(u.value=g,v&&(e(Ht,g),e("tabChange",g)),(b=(w=c.value)==null?void 0:w.removeFocus)==null||b.call(w))}catch{}},f=(g,v,m)=>{g.props.disabled||(d(v,!0),e("tabClick",g,m))},h=(g,v)=>{g.props.disabled||_r(g.props.name)||(v.stopPropagation(),e("edit",g.props.name,"remove"),e("tabRemove",g.props.name))},p=()=>{e("edit",void 0,"add"),e("tabAdd")};return je(()=>n.modelValue,g=>d(g)),je(u,async()=>{var g;await it(),(g=c.value)==null||g.scrollToActiveTab()}),zt(fg,{props:n,currentName:u,registerPane:l,unregisterPane:a}),r({currentName:u}),()=>{const g=t["add-icon"],v=n.editable||n.addable?C("span",{class:s.e("new-tab"),tabindex:"0",onClick:p,onKeydown:b=>{b.code===Cn.enter&&p()}},[g?Ae(t,"add-icon"):C(dt,{class:s.is("icon-plus")},{default:()=>[C(JT,null,null)]})]):null,m=C("div",{class:[s.e("header"),s.is(n.tabPosition)]},[v,C(WK,{ref:c,currentName:u.value,editable:n.editable,type:n.type,panes:i.value,stretch:n.stretch,onTabClick:f,onTabRemove:h},null)]),w=C("div",{class:s.e("content")},[Ae(t,"default")]);return C("div",{class:[s.b(),s.m(n.tabPosition),{[s.m("card")]:n.type==="card",[s.m("border-card")]:n.type==="border-card"}]},[...n.tabPosition!=="bottom"?[m,w]:[w,m]])}}}),YK=st({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),JK=["id","aria-hidden","aria-labelledby"],RM="ElTabPane",XK=ge({name:RM}),ZK=ge({...XK,props:YK,setup(n){const e=n,t=vt(),r=Ho(),o=He(fg);o||cl(RM,"usage: ");const s=Xe("tab-pane"),i=V(),l=z(()=>e.closable||o.props.closable),a=kw(()=>{var h;return o.currentName.value===((h=e.name)!=null?h:i.value)}),c=V(a.value),u=z(()=>{var h;return(h=e.name)!=null?h:i.value}),d=kw(()=>!e.lazy||c.value||a.value);je(a,h=>{h&&(c.value=!0)});const f=yt({uid:t.uid,slots:r,props:e,paneName:u,active:a,index:i,isClosable:l});return ot(()=>{o.registerPane(f)}),bs(()=>{o.unregisterPane(f.uid)}),(h,p)=>x(d)?$e((A(),q("div",{key:0,id:`pane-${x(u)}`,class:Z(x(s).b()),role:"tabpanel","aria-hidden":!x(a),"aria-labelledby":`tab-${x(u)}`},[Ae(h.$slots,"default")],10,JK)),[[Ye,x(a)]]):be("v-if",!0)}});var $M=tt(ZK,[["__file","tab-pane.vue"]]);const QK=Rt(KK,{TabPane:$M}),eY=Ir($M),tY=st({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:wa,default:""},truncated:{type:Boolean},lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),nY=ge({name:"ElText"}),rY=ge({...nY,props:tY,setup(n){const e=n,t=bo(),r=Xe("text"),o=z(()=>[r.b(),r.m(e.type),r.m(t.value),r.is("truncated",e.truncated),r.is("line-clamp",!_r(e.lineClamp))]);return(s,i)=>(A(),ve(Bt(s.tag),{class:Z(x(o)),style:wt({"-webkit-line-clamp":s.lineClamp})},{default:_(()=>[Ae(s.$slots,"default")]),_:3},8,["class","style"]))}});var oY=tt(rY,[["__file","text.vue"]]);const qy=Rt(oY);function sY(n){let e;const t=V(!1),r=yt({...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()):(ds(f,h.bm("parent","relative")),f.removeAttribute("loading-number")),ds(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=Xb(ge({name:"ElLoading",setup(f,{expose:h}){const{ns:p,zIndex:g}=ng("loading");return h({ns:p,zIndex:g}),()=>{const v=r.spinner||r.svg,m=Qe("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...v?{innerHTML:v}:{}},[Qe("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),w=r.text?Qe("p",{class:p.b("text")},[r.text]):void 0;return Qe(Nr,{name:p.b("fade"),onAfterLeave:a},{default:_(()=>[$e(C("div",{style:{backgroundColor:r.background||""},class:[p.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[Qe("div",{class:p.b("spinner")},[m,w])]),[[Ye,r.visible]])])})}}})),d=u.mount(document.createElement("div"));return{...Xs(r),setText:o,removeElLoadingChild:i,close:l,handleAfterLeave:a,vm:d,get $el(){return d.$el}}}let Vf;const iY=function(n={}){if(!Et)return;const e=lY(n);if(e.fullscreen&&Vf)return Vf;const t=sY({...e,closed:()=>{var o;(o=e.closed)==null||o.call(e),e.fullscreen&&(Vf=void 0)}});aY(e,e.parent,t),Sx(e,e.parent,t),e.parent.vLoadingAddClassList=()=>Sx(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),it(()=>t.visible.value=e.visible),e.fullscreen&&(Vf=t),t},lY=n=>{var e,t,r,o;let s;return ht(n.target)?s=(e=document.querySelector(n.target))!=null?e:document.body:s=n.target||document.body,{parent:s===document.body||n.body?document.body:s,background:n.background||"",svg:n.svg||"",svgViewBox:n.svgViewBox||"",spinner:n.spinner||!1,text:n.text||"",fullscreen:s===document.body&&((t=n.fullscreen)!=null?t:!0),lock:(r=n.lock)!=null?r:!1,customClass:n.customClass||"",visible:(o=n.visible)!=null?o:!0,target:s}},aY=async(n,e,t)=>{const{nextZIndex:r}=t.vm.zIndex||t.vm._.exposed.zIndex,o={};if(n.fullscreen)t.originalPosition.value=Pl(document.body,"position"),t.originalOverflow.value=Pl(document.body,"overflow"),o.zIndex=r();else if(n.parent===document.body){t.originalPosition.value=Pl(document.body,"position"),await it();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(Pl(document.body,`margin-${s}`),10)}px`}for(const s of["height","width"])o[s]=`${n.target.getBoundingClientRect()[s]}px`}else t.originalPosition.value=Pl(e,"position");for(const[s,i]of Object.entries(o))t.$el.style[s]=i},Sx=(n,e,t)=>{const r=t.vm.ns||t.vm._.exposed.ns;["absolute","fixed","sticky"].includes(t.originalPosition.value)?ds(e,r.bm("parent","relative")):ra(e,r.bm("parent","relative")),n.fullscreen&&n.lock?ra(e,r.bm("parent","hidden")):ds(e,r.bm("parent","hidden"))},mh=Symbol("ElLoading"),Ex=(n,e)=>{var t,r,o,s;const i=e.instance,l=f=>gt(e.value)?e.value[f]:void 0,a=f=>{const h=ht(f)&&(i==null?void 0:i[f])||f;return h&&V(h)},c=f=>a(l(f)||n.getAttribute(`element-loading-${rl(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[mh]={options:d,instance:iY(d)}},cY=(n,e)=>{for(const t of Object.keys(e))Gt(e[t])&&(e[t].value=n[t])},uY={mounted(n,e){e.value&&Ex(n,e)},updated(n,e){const t=n[mh];e.oldValue!==e.value&&(e.value&&!e.oldValue?Ex(n,e):e.value&&e.oldValue?gt(e.value)&&cY(e.value,t.options):t==null||t.instance.close())},unmounted(n){var e;(e=n[mh])==null||e.instance.close(),n[mh]=null}},DM=["success","info","warning","error"],rr=_o({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Et?document.body:void 0}),dY=st({customClass:{type:String,default:rr.customClass},center:{type:Boolean,default:rr.center},dangerouslyUseHTMLString:{type:Boolean,default:rr.dangerouslyUseHTMLString},duration:{type:Number,default:rr.duration},icon:{type:go,default:rr.icon},id:{type:String,default:rr.id},message:{type:Ue([String,Object,Function]),default:rr.message},onClose:{type:Ue(Function),default:rr.onClose},showClose:{type:Boolean,default:rr.showClose},type:{type:String,values:DM,default:rr.type},plain:{type:Boolean,default:rr.plain},offset:{type:Number,default:rr.offset},zIndex:{type:Number,default:rr.zIndex},grouping:{type:Boolean,default:rr.grouping},repeatNum:{type:Number,default:rr.repeatNum}}),fY={destroy:()=>!0},ko=$b([]),hY=n=>{const e=ko.findIndex(o=>o.id===n),t=ko[e];let r;return e>0&&(r=ko[e-1]),{current:t,prev:r}},pY=n=>{const{prev:e}=hY(n);return e?e.vm.exposed.bottom.value:0},gY=(n,e)=>ko.findIndex(r=>r.id===n)>0?16:e,mY=["id"],vY=["innerHTML"],bY=ge({name:"ElMessage"}),yY=ge({...bY,props:dY,emits:fY,setup(n,{expose:e}){const t=n,{Close:r}=xy,{ns:o,zIndex:s}=ng("message"),{currentZIndex:i,nextZIndex:l}=s,a=V(),c=V(!1),u=V(0);let d;const f=z(()=>t.type?t.type==="error"?"danger":t.type:"info"),h=z(()=>{const T=t.type;return{[o.bm("icon",T)]:T&&Yi[T]}}),p=z(()=>t.icon||Yi[t.type]||""),g=z(()=>pY(t.id)),v=z(()=>gY(t.id,t.offset)+g.value),m=z(()=>u.value+v.value),w=z(()=>({top:`${v.value}px`,zIndex:i.value}));function b(){t.duration!==0&&({stop:d}=Nh(()=>{S()},t.duration))}function y(){d==null||d()}function S(){c.value=!1}function E({code:T}){T===Cn.esc&&S()}return ot(()=>{b(),l(),c.value=!0}),je(()=>t.repeatNum,()=>{y(),b()}),xn(document,"keydown",E),mr(a,()=>{u.value=a.value.getBoundingClientRect().height}),e({visible:c,bottom:m,close:S}),(T,M)=>(A(),ve(Nr,{name:x(o).b("fade"),onBeforeLeave:T.onClose,onAfterLeave:M[0]||(M[0]=O=>T.$emit("destroy")),persisted:""},{default:_(()=>[$e(F("div",{id:T.id,ref_key:"messageRef",ref:a,class:Z([x(o).b(),{[x(o).m(T.type)]:T.type},x(o).is("center",T.center),x(o).is("closable",T.showClose),x(o).is("plain",T.plain),T.customClass]),style:wt(x(w)),role:"alert",onMouseenter:y,onMouseleave:b},[T.repeatNum>1?(A(),ve(x(K9),{key:0,value:T.repeatNum,type:x(f),class:Z(x(o).e("badge"))},null,8,["value","type","class"])):be("v-if",!0),x(p)?(A(),ve(x(dt),{key:1,class:Z([x(o).e("icon"),x(h)])},{default:_(()=>[(A(),ve(Bt(x(p))))]),_:1},8,["class"])):be("v-if",!0),Ae(T.$slots,"default",{},()=>[T.dangerouslyUseHTMLString?(A(),q(Re,{key:1},[be(" Caution here, message could've been compromised, never use user's input as message "),F("p",{class:Z(x(o).e("content")),innerHTML:T.message},null,10,vY)],2112)):(A(),q("p",{key:0,class:Z(x(o).e("content"))},oe(T.message),3))]),T.showClose?(A(),ve(x(dt),{key:2,class:Z(x(o).e("closeBtn")),onClick:It(S,["stop"])},{default:_(()=>[C(x(r))]),_:1},8,["class","onClick"])):be("v-if",!0)],46,mY),[[Ye,c.value]])]),_:3},8,["name","onBeforeLeave"]))}});var wY=tt(yY,[["__file","message.vue"]]);let CY=1;const VM=n=>{const e=!n||ht(n)||Pn(n)||Je(n)?{message:n}:n,t={...rr,...e};if(!t.appendTo)t.appendTo=document.body;else if(ht(t.appendTo)){let r=document.querySelector(t.appendTo);ho(r)||(r=document.body),t.appendTo=r}return t},xY=n=>{const e=ko.indexOf(n);if(e===-1)return;ko.splice(e,1);const{handler:t}=n;t.close()},SY=({appendTo:n,...e},t)=>{const r=`message_${CY++}`,o=e.onClose,s=document.createElement("div"),i={...e,id:r,onClose:()=>{o==null||o(),xY(u)},onDestroy:()=>{qi(null,s)}},l=C(wY,i,Je(i.message)||Pn(i.message)?{default:Je(i.message)?i.message:()=>i.message}:null);l.appContext=t||vc._context,qi(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},vc=(n={},e)=>{if(!Et)return{close:()=>{}};if(Tt(VC.max)&&ko.length>=VC.max)return{close:()=>{}};const t=VM(n);if(t.grouping&&ko.length){const o=ko.find(({vnode:s})=>{var i;return((i=s.props)==null?void 0:i.message)===t.message});if(o)return o.props.repeatNum+=1,o.props.type=t.type,o.handler}const r=SY(t,e);return ko.push(r),r.handler};DM.forEach(n=>{vc[n]=(e={},t)=>{const r=VM(e);return vc({...r,type:n},t)}});function EY(n){for(const e of ko)(!n||n===e.props.type)&&e.handler.close()}vc.closeAll=EY;vc._context=null;const Zt=tO(vc,"$message"),_Y=ge({name:"ElMessageBox",directives:{TrapFocus:CU},components:{ElButton:Tn,ElFocusTrap:sg,ElInput:yn,ElOverlay:jy,ElIcon:dt,...xy},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Rz},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(n,{emit:e}){const{locale:t,zIndex:r,ns:o,size:s}=ng("message-box",z(()=>n.buttonSize)),{t:i}=t,{nextZIndex:l}=r,a=V(!1),c=yt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:ud,cancelButtonLoadingIcon:ud,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:l()}),u=z(()=>{const R=c.type;return{[o.bm("icon",R)]:R&&Yi[R]}}),d=hs(),f=hs(),h=z(()=>c.icon||Yi[c.type]||""),p=z(()=>!!c.message),g=V(),v=V(),m=V(),w=V(),b=V(),y=z(()=>c.confirmButtonClass);je(()=>c.inputValue,async R=>{await it(),n.boxType==="prompt"&&R!==null&&L()},{immediate:!0}),je(()=>a.value,R=>{var K,W;R&&(n.boxType!=="prompt"&&(c.autofocus?m.value=(W=(K=b.value)==null?void 0:K.$el)!=null?W:g.value:m.value=g.value),c.zIndex=l()),n.boxType==="prompt"&&(R?it().then(()=>{var U;w.value&&w.value.$el&&(c.autofocus?m.value=(U=j())!=null?U:g.value:m.value=g.value)}):(c.editorErrorMessage="",c.validateError=!1))});const S=z(()=>n.draggable),E=z(()=>n.overflow);oO(g,v,S,E),ot(async()=>{await it(),n.closeOnHashChange&&window.addEventListener("hashchange",T)}),_n(()=>{n.closeOnHashChange&&window.removeEventListener("hashchange",T)});function T(){a.value&&(a.value=!1,it(()=>{c.action&&e("action",c.action)}))}const M=()=>{n.closeOnClickModal&&P(c.distinguishCancelAndClose?"close":"cancel")},O=Iy(M),k=R=>{if(c.inputType!=="textarea")return R.preventDefault(),P("confirm")},P=R=>{var K;n.boxType==="prompt"&&R==="confirm"&&!L()||(c.action=R,c.beforeClose?(K=c.beforeClose)==null||K.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 K=c.inputValidator;if(typeof K=="function"){const W=K(c.inputValue);if(W===!1)return c.editorErrorMessage=c.inputErrorMessage||i("el.messagebox.error"),c.validateError=!0,!1;if(typeof W=="string")return c.editorErrorMessage=W,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},j=()=>{const R=w.value.$refs;return R.input||R.textarea},le=()=>{P("close")},N=()=>{n.closeOnPressEscape&&le()};return n.lockScroll&&lO(a),{...Xs(c),ns:o,overlayEvent:O,visible:a,hasMessage:p,typeClass:u,contentId:d,inputId:f,btnSize:s,iconComponent:h,confirmButtonClasses:y,rootRef:g,focusStartRef:m,headerRef:v,inputRef:w,confirmRef:b,doClose:T,handleClose:le,onCloseRequested:N,handleWrapperClick:M,handleInputEnter:k,handleAction:P,t:i}}}),TY=["aria-label","aria-describedby"],OY=["aria-label"],MY=["id"];function AY(n,e,t,r,o,s){const i=at("el-icon"),l=at("close"),a=at("el-input"),c=at("el-button"),u=at("el-focus-trap"),d=at("el-overlay");return A(),ve(Nr,{name:"fade-in-linear",onAfterLeave:e[11]||(e[11]=f=>n.$emit("vanish")),persisted:""},{default:_(()=>[$e(C(d,{"z-index":n.zIndex,"overlay-class":[n.ns.is("message-box"),n.modalClass],mask:n.modal},{default:_(()=>[F("div",{role:"dialog","aria-label":n.title,"aria-modal":"true","aria-describedby":n.showInput?void 0:n.contentId,class:Z(`${n.ns.namespace.value}-overlay-message-box`),onClick:e[8]||(e[8]=(...f)=>n.overlayEvent.onClick&&n.overlayEvent.onClick(...f)),onMousedown:e[9]||(e[9]=(...f)=>n.overlayEvent.onMousedown&&n.overlayEvent.onMousedown(...f)),onMouseup:e[10]||(e[10]=(...f)=>n.overlayEvent.onMouseup&&n.overlayEvent.onMouseup(...f))},[C(u,{loop:"",trapped:n.visible,"focus-trap-el":n.rootRef,"focus-start-el":n.focusStartRef,onReleaseRequested:n.onCloseRequested},{default:_(()=>[F("div",{ref:"rootRef",class:Z([n.ns.b(),n.customClass,n.ns.is("draggable",n.draggable),{[n.ns.m("center")]:n.center}]),style:wt(n.customStyle),tabindex:"-1",onClick:e[7]||(e[7]=It(()=>{},["stop"]))},[n.title!==null&&n.title!==void 0?(A(),q("div",{key:0,ref:"headerRef",class:Z([n.ns.e("header"),{"show-close":n.showClose}])},[F("div",{class:Z(n.ns.e("title"))},[n.iconComponent&&n.center?(A(),ve(i,{key:0,class:Z([n.ns.e("status"),n.typeClass])},{default:_(()=>[(A(),ve(Bt(n.iconComponent)))]),_:1},8,["class"])):be("v-if",!0),F("span",null,oe(n.title),1)],2),n.showClose?(A(),q("button",{key:0,type:"button",class:Z(n.ns.e("headerbtn")),"aria-label":n.t("el.messagebox.close"),onClick:e[0]||(e[0]=f=>n.handleAction(n.distinguishCancelAndClose?"close":"cancel")),onKeydown:e[1]||(e[1]=ir(It(f=>n.handleAction(n.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[C(i,{class:Z(n.ns.e("close"))},{default:_(()=>[C(l)]),_:1},8,["class"])],42,OY)):be("v-if",!0)],2)):be("v-if",!0),F("div",{id:n.contentId,class:Z(n.ns.e("content"))},[F("div",{class:Z(n.ns.e("container"))},[n.iconComponent&&!n.center&&n.hasMessage?(A(),ve(i,{key:0,class:Z([n.ns.e("status"),n.typeClass])},{default:_(()=>[(A(),ve(Bt(n.iconComponent)))]),_:1},8,["class"])):be("v-if",!0),n.hasMessage?(A(),q("div",{key:1,class:Z(n.ns.e("message"))},[Ae(n.$slots,"default",{},()=>[n.dangerouslyUseHTMLString?(A(),ve(Bt(n.showInput?"label":"p"),{key:1,for:n.showInput?n.inputId:void 0,innerHTML:n.message},null,8,["for","innerHTML"])):(A(),ve(Bt(n.showInput?"label":"p"),{key:0,for:n.showInput?n.inputId:void 0},{default:_(()=>[G(oe(n.dangerouslyUseHTMLString?"":n.message),1)]),_:1},8,["for"]))])],2)):be("v-if",!0)],2),$e(F("div",{class:Z(n.ns.e("input"))},[C(a,{id:n.inputId,ref:"inputRef",modelValue:n.inputValue,"onUpdate:modelValue":e[2]||(e[2]=f=>n.inputValue=f),type:n.inputType,placeholder:n.inputPlaceholder,"aria-invalid":n.validateError,class:Z({invalid:n.validateError}),onKeydown:ir(n.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),F("div",{class:Z(n.ns.e("errormsg")),style:wt({visibility:n.editorErrorMessage?"visible":"hidden"})},oe(n.editorErrorMessage),7)],2),[[Ye,n.showInput]])],10,MY),F("div",{class:Z(n.ns.e("btns"))},[n.showCancelButton?(A(),ve(c,{key:0,loading:n.cancelButtonLoading,"loading-icon":n.cancelButtonLoadingIcon,class:Z([n.cancelButtonClass]),round:n.roundButton,size:n.btnSize,onClick:e[3]||(e[3]=f=>n.handleAction("cancel")),onKeydown:e[4]||(e[4]=ir(It(f=>n.handleAction("cancel"),["prevent"]),["enter"]))},{default:_(()=>[G(oe(n.cancelButtonText||n.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size"])):be("v-if",!0),$e(C(c,{ref:"confirmRef",type:"primary",loading:n.confirmButtonLoading,"loading-icon":n.confirmButtonLoadingIcon,class:Z([n.confirmButtonClasses]),round:n.roundButton,disabled:n.confirmButtonDisabled,size:n.btnSize,onClick:e[5]||(e[5]=f=>n.handleAction("confirm")),onKeydown:e[6]||(e[6]=ir(It(f=>n.handleAction("confirm"),["prevent"]),["enter"]))},{default:_(()=>[G(oe(n.confirmButtonText||n.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size"]),[[Ye,n.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,TY)]),_:3},8,["z-index","overlay-class","mask"]),[[Ye,n.visible]])]),_:3})}var kY=tt(_Y,[["render",AY],["__file","index.vue"]]);const gd=new Map,PY=n=>{let e=document.body;return n.appendTo&&(ht(n.appendTo)&&(e=document.querySelector(n.appendTo)),ho(n.appendTo)&&(e=n.appendTo),ho(e)||(e=document.body)),e},NY=(n,e,t=null)=>{const r=C(kY,n,Je(n.message)||Pn(n.message)?{default:Je(n.message)?n.message:()=>n.message}:null);return r.appContext=t,qi(r,e),PY(n).appendChild(e.firstElementChild),r.component},IY=()=>document.createElement("div"),LY=(n,e)=>{const t=IY();n.onVanish=()=>{qi(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=NY(n,t,e),o=r.proxy;for(const s in n)xt(n,s)&&!xt(o.$props,s)&&(o[s]=n[s]);return o.visible=!0,o};function Yc(n,e=null){if(!Et)return Promise.reject();let t;return ht(n)||Pn(n)?n={message:n}:t=n.callback,new Promise((r,o)=>{const s=LY(n,e??Yc._context);gd.set(s,{options:n,callback:t,resolve:r,reject:o})})}const RY=["alert","confirm","prompt"],$Y={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};RY.forEach(n=>{Yc[n]=DY(n)});function DY(n){return(e,t,r,o)=>{let s="";return gt(t)?(r=t,s=""):_r(t)?s="":s=t,Yc(Object.assign({title:s,message:e,type:"",...$Y[n]},r,{boxType:n}),o)}}Yc.close=()=>{gd.forEach((n,e)=>{e.doClose()}),gd.clear()};Yc._context=null;const bi=Yc;bi.install=n=>{bi._context=n._context,n.config.globalProperties.$msgbox=bi,n.config.globalProperties.$messageBox=bi,n.config.globalProperties.$alert=bi.alert,n.config.globalProperties.$confirm=bi.confirm,n.config.globalProperties.$prompt=bi.prompt};const vr=bi,BM=["success","info","warning","error"],VY=st({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:go},id:{type:String,default:""},message:{type:Ue([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:Ue(Function),default:()=>{}},onClose:{type:Ue(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:[...BM,""],default:""},zIndex:Number}),BY={destroy:()=>!0},FY=["id"],zY=["textContent"],jY={key:0},HY=["innerHTML"],UY=ge({name:"ElNotification"}),WY=ge({...UY,props:VY,emits:BY,setup(n,{expose:e}){const t=n,{ns:r,zIndex:o}=ng("notification"),{nextZIndex:s,currentZIndex:i}=o,{Close:l}=QT,a=V(!1);let c;const u=z(()=>{const b=t.type;return b&&Yi[t.type]?r.m(b):""}),d=z(()=>t.type&&Yi[t.type]||t.icon),f=z(()=>t.position.endsWith("right")?"right":"left"),h=z(()=>t.position.startsWith("top")?"top":"bottom"),p=z(()=>{var b;return{[h.value]:`${t.offset}px`,zIndex:(b=t.zIndex)!=null?b:i.value}});function g(){t.duration>0&&({stop:c}=Nh(()=>{a.value&&m()},t.duration))}function v(){c==null||c()}function m(){a.value=!1}function w({code:b}){b===Cn.delete||b===Cn.backspace?v():b===Cn.esc?a.value&&m():g()}return ot(()=>{g(),s(),a.value=!0}),xn(document,"keydown",w),e({visible:a,close:m}),(b,y)=>(A(),ve(Nr,{name:x(r).b("fade"),onBeforeLeave:b.onClose,onAfterLeave:y[1]||(y[1]=S=>b.$emit("destroy")),persisted:""},{default:_(()=>[$e(F("div",{id:b.id,class:Z([x(r).b(),b.customClass,x(f)]),style:wt(x(p)),role:"alert",onMouseenter:v,onMouseleave:g,onClick:y[0]||(y[0]=(...S)=>b.onClick&&b.onClick(...S))},[x(d)?(A(),ve(x(dt),{key:0,class:Z([x(r).e("icon"),x(u)])},{default:_(()=>[(A(),ve(Bt(x(d))))]),_:1},8,["class"])):be("v-if",!0),F("div",{class:Z(x(r).e("group"))},[F("h2",{class:Z(x(r).e("title")),textContent:oe(b.title)},null,10,zY),$e(F("div",{class:Z(x(r).e("content")),style:wt(b.title?void 0:{margin:0})},[Ae(b.$slots,"default",{},()=>[b.dangerouslyUseHTMLString?(A(),q(Re,{key:1},[be(" Caution here, message could've been compromised, never use user's input as message "),F("p",{innerHTML:b.message},null,8,HY)],2112)):(A(),q("p",jY,oe(b.message),1))])],6),[[Ye,b.message]]),b.showClose?(A(),ve(x(dt),{key:0,class:Z(x(r).e("closeBtn")),onClick:It(m,["stop"])},{default:_(()=>[C(x(l))]),_:1},8,["class","onClick"])):be("v-if",!0)],2)],46,FY),[[Ye,a.value]])]),_:3},8,["name","onBeforeLeave"]))}});var GY=tt(WY,[["__file","notification.vue"]]);const Hh={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},jv=16;let qY=1;const bc=function(n={},e=null){if(!Et)return{close:()=>{}};(typeof n=="string"||Pn(n))&&(n={message:n});const t=n.position||"top-right";let r=n.offset||0;Hh[t].forEach(({vm:u})=>{var d;r+=(((d=u.el)==null?void 0:d.offsetHeight)||0)+jv}),r+=jv;const o=`notification_${qY++}`,s=n.onClose,i={...n,offset:r,id:o,onClose:()=>{KY(o,t,s)}};let l=document.body;ho(n.appendTo)?l=n.appendTo:ht(n.appendTo)&&(l=document.querySelector(n.appendTo)),ho(l)||(l=document.body);const a=document.createElement("div"),c=C(GY,i,Pn(i.message)?{default:()=>i.message}:null);return c.appContext=e??bc._context,c.props.onDestroy=()=>{qi(null,a)},qi(c,a),Hh[t].push({vm:c}),l.appendChild(a.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};BM.forEach(n=>{bc[n]=(e={})=>((typeof e=="string"||Pn(e))&&(e={message:e}),bc({...e,type:n}))});function KY(n,e,t){const r=Hh[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})}bc.closeAll=YY;bc._context=null;const Bf=tO(bc,"$notify");function yi(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 Zn(n,e){if(!(n==null||n==null))for(const[t,r]of Object.entries(n))r!=null&&r!=null&&(e[t]=r)}function ql(){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 Ol(n,e,t,r,o){let s;return o?s="No. "+(n+1)+" branch, condition: "+(t+1)+"-"+(r+1)+" "+o:s="No. "+(n+1)+" branch, "+e,{r:!1,m:s}}function JY(n){for(let e=0;e-1}function QY(n,e){window.localStorage.setItem(n+"type",e)}function eJ(n){return window.localStorage.getItem(n+"type")}const tJ={class:"text-large font-600 mr-3"},nJ=F("h3",null,"Common settings",-1),rJ=["checked"],oJ={for:"_randomPortWhenConflict_"},sJ=F("h3",null,"HuggingFace model downloading settings",-1),hi="130px",iJ={__name:"GlobalSettings",setup(n){const{t:e,tm:t}=on(),r=yo(),o=()=>{r.push("/")},s=yt({ip:"127.0.0.1",port:"12715",selectRandomPortWhenConflict:!1,hfModelDownload:{connectTimeoutMillis:1e3,readTimeoutMillis:1e4,accessToken:""}});ot(async()=>{const l=await et("GET","management/global-settings",null,null,null);l.status==200&&Zn(l.data,s)});async function i(){let l=await et("POST","management/global-settings",null,null,s);if(l.status==200)Zt({type:"success",message:e("lang.common.saved")}),await checkHfModelFiles();else{const a=e(l.err.message);Zt.error(a||l.err.message)}}return(l,a)=>{const c=xs,u=yn,d=nr,f=ug,h=Tn,p=tr,g=ag,v=lg;return A(),q(Re,null,[C(c,{title:l.$t("lang.common.back"),onBack:o},{content:_(()=>[F("span",tJ,oe(l.$t("lang.settings.title")),1)]),_:1},8,["title"]),nJ,C(v,null,{default:_(()=>[C(g,{span:12,offset:1},{default:_(()=>[C(p,{model:s},{default:_(()=>[C(d,{label:"IP addr (v4 or v6)","label-width":hi},{default:_(()=>[C(u,{modelValue:s.ip,"onUpdate:modelValue":a[0]||(a[0]=m=>s.ip=m),placeholder:""},null,8,["modelValue"])]),_:1}),C(d,{label:"","label-width":hi},{default:_(()=>[G(oe(l.$t("lang.settings.ipNote")),1)]),_:1}),C(d,{label:l.$t("lang.settings.prompt2"),"label-width":hi},{default:_(()=>[C(f,{modelValue:s.port,"onUpdate:modelValue":a[1]||(a[1]=m=>s.port=m),min:1024,max:65530,onChange:l.handleChange},null,8,["modelValue","onChange"])]),_:1},8,["label"]),C(d,{label:"","label-width":hi},{default:_(()=>[$e(F("input",{type:"checkbox",id:"_randomPortWhenConflict_","onUpdate:modelValue":a[2]||(a[2]=m=>s.selectRandomPortWhenConflict=m),checked:s.selectRandomPortWhenConflict},null,8,rJ),[[Gi,s.selectRandomPortWhenConflict]]),F("label",oJ,oe(l.$t("lang.settings.prompt2_2")),1)]),_:1}),C(d,{"label-width":hi},{default:_(()=>[G(oe(l.$t("lang.settings.note")),1)]),_:1}),C(d,{label:"","label-width":hi},{default:_(()=>[C(h,{type:"primary",onClick:i},{default:_(()=>[G(oe(l.$t("lang.common.save")),1)]),_:1}),C(h,{onClick:a[3]||(a[3]=m=>o())},{default:_(()=>[G(oe(l.$t("lang.common.cancel")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1}),sJ,C(v,null,{default:_(()=>[C(g,{span:11,offset:1},{default:_(()=>[C(p,{model:s.modelDownload,"label-width":hi,style:{"max-width":"600px"}},{default:_(()=>[C(d,{label:"Connect timeout"},{default:_(()=>[C(f,{modelValue:s.hfModelDownload.connectTimeoutMillis,"onUpdate:modelValue":a[4]||(a[4]=m=>s.hfModelDownload.connectTimeoutMillis=m),min:100,max:5e4,step:100},null,8,["modelValue"]),G(" millis ")]),_:1}),C(d,{label:"Read timeout"},{default:_(()=>[C(f,{modelValue:s.hfModelDownload.readTimeoutMillis,"onUpdate:modelValue":a[5]||(a[5]=m=>s.hfModelDownload.readTimeoutMillis=m),min:1e3,max:65530,step:100},null,8,["modelValue"]),G(" millis ")]),_:1}),C(d,{label:"Access token"},{default:_(()=>[C(u,{modelValue:s.hfModelDownload.accessToken,"onUpdate:modelValue":a[6]||(a[6]=m=>s.hfModelDownload.accessToken=m),placeholder:""},null,8,["modelValue"])]),_:1}),C(d,{label:"","label-width":hi},{default:_(()=>[C(h,{type:"primary",onClick:i},{default:_(()=>[G(oe(l.$t("lang.common.save")),1)]),_:1}),C(h,{onClick:a[7]||(a[7]=m=>o())},{default:_(()=>[G(oe(l.$t("lang.common.cancel")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1})],64)}}},lJ="/assets/usedByLlmChatNode-Bv2Fg5P7.png",aJ="/assets/usedByLlmChatNode-Bv2Fg5P7.png",cJ="/assets/usedByDialogNodeTextGeneration-thumbnail-C1iQCVQO.png",uJ="/assets/usedByDialogNodeTextGeneration-DrFqkTqi.png",dJ="/assets/usedBySentenceEmbedding-thumbnail-DVXz_sh0.png",fJ="/assets/usedBySentenceEmbedding-Dmju1hVB.png",hJ={class:"text-large font-600 mr-3"},pJ=F("h3",null,"Common settings",-1),gJ=F("br",null,null,-1),mJ=F("div",null,"This is used by LLM chat node.",-1),vJ=F("br",null,null,-1),bJ=F("div",null,"This is used by dialog node.",-1),yJ=F("br",null,null,-1),wJ=F("br",null,null,-1),CJ=F("div",null,"This is used by intention similar sentences.",-1),xJ=F("h3",null,"Email settings",-1),_x="[-\\w\\.\\+]{1,100}@[A-Za-z0-9]{1,30}[A-Za-z\\.]{2,30}",hr="150px",SJ={__name:"Settings",setup(n){const{t:e,tm:t}=on(),r=Qs(),o=yo(),s=r.params.robotId,i=V(30),l=()=>{o.push({name:"robotDetail",params:{robotId:s}})},a=V(85),c=yt({maxSessionIdleSec:1800,smtpHost:"",smtpUsername:"",smtpPassword:"",smtpTimeoutSec:60,emailVerificationRegex:"",chatProvider:{provider:{id:"",model:""},apiUrl:"",apiUrlDisabled:!1,showApiKeyInput:!0,apiKey:"",max_token_len:5e3,connectTimeoutMillis:1500,readTimeoutMillis:3e3,maxResponseTokenLength:5e3},textGenerationProvider:{provider:{id:"",model:""},apiUrl:"",apiUrlDisabled:!1,showApiKeyInput:!0,apiKey:"",max_token_len:5e3,connectTimeoutMillis:1500,readTimeoutMillis:3e3,maxResponseTokenLength:5e3},sentenceEmbeddingProvider:{provider:{id:"",model:""},similarityThreshold:.85,apiUrl:"",apiUrlDisabled:!1,showApiKeyInput:!0,apiKey:"",connectTimeoutMillis:1500,readTimeoutMillis:3e3}}),u=V(!1),d=V(!1),f=V(!1),h=V(""),p=V(!1),g=V(!1),v=V(""),m=V(!1),w=V(!1),b=V(""),y=V(!1),S=V(!1),E=V(""),T=V(""),M=V(""),O=V("");ot(async()=>{const ye=await et("GET","management/settings",{robotId:s},null,null);ye.status==200&&(Zn(ye.data,c),i.value=c.maxSessionIdleSec/60,T.value=ye.data.sentenceEmbeddingProvider.provider.id,$(c.chatProvider.provider.id),pe(c.textGenerationProvider.provider.id),B(c.sentenceEmbeddingProvider.provider.id)),await k()}),bs(()=>{j!=null&&clearTimeout(j)});async function k(){const ye=new Map;if(c.chatProvider.provider.id=="HuggingFace"){for(let H=0;H-1&&(xe=xe.substring(0,Be)),v.value=xe,ye.set(m,xe);break}}else p.value=!1;if(c.textGenerationProvider.provider.id=="HuggingFace"){for(let H=0;H-1&&(xe=xe.substring(0,Be)),b.value=xe,ye.set(m,xe);break}}else m.value=!1;if(c.sentenceEmbeddingProvider.provider.id=="HuggingFace"){for(let H=0;H-1&&(xe=xe.substring(0,Be)),E.value=xe,ye.set(y,xe);break}}else y.value=!1;if(ye.size>0){const H=await et("POST","management/settings/model/check/files",null,null,Array.from(ye.values()));if(H&&H.data)for(let[xe,Be]of ye.entries())H.data[Be]==!1?xe.value=!0:xe.value=!1}}async function P(){T.value!=c.sentenceEmbeddingProvider.provider.id?vr.confirm("Sentence embedding model has been changed, this may cause dimension mismatch issue (You can regenerate all sentences to resolve). Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning",dangerouslyUseHTMLString:!0}).then(()=>{L()}).catch(()=>{}):L()}async function L(){c.emailVerificationRegex||(c.emailVerificationRegex=_x),c.maxSessionIdleSec=i.value*60,c.sentenceEmbeddingProvider.similarityThreshold=a.value/100;let ye=await et("POST","management/settings",{robotId:s},null,c);if(ye.status==200)Zt({type:"success",message:e("lang.common.saved")}),await k();else{const H=e(ye.err.message);Zt.error(H||ye.err.message)}}let j=null;async function le(ye){const H=await et("GET","management/settings/model/download/progress",null,null,null);if(H!=null&&H.data!=null&&H.data.downloading){const xe="Downloading: "+H.url+" ("+(H.data.downloadedLen/H.data.totalLen*100).toFixed(2)+"), please wait until it finish.";Zt.error(xe);return}et("POST","management/settings/model/download",{robotId:s,m:ye},null,ye).then(xe=>{if(xe==null||xe.status!=200){Zt.error("Download failed: "+xe.err.message);return}ye=="sentenceEmbedding"?(y.value=!1,S.value=!0):(m.value=!1,w.value=!0),j=setTimeout(async()=>{await R()},1e3)})}function N(){clearTimeout(j),m.value=!1,w.value=!1,y.value=!1,S.value=!1}async function R(){const ye=await et("GET","management/settings/model/download/progress",null,null,null);if(ye!=null&&ye.data!=null)if(ye.data.err){Zt.error(ye.data.err),clearTimeout(j),w.value=!1,S.value=!1;return}else ye.data.downloading?(M.value=ye.data.url,O.value=(ye.data.downloadedLen/ye.data.totalLen*100).toFixed(2),j=setTimeout(async()=>{await R()},1e3)):N();else N()}const K=async()=>{u.value=!0;const ye=await et("POST","management/settings/smtp/test",null,null,c);ye.status==200?(d.value=!0,f.value=!1):(h.value=e(ye.err.message),d.value=!1,f.value=!0),u.value=!1},W=[{label:"Meta Llama 3.1 8b",value:"llama3.1:8b"},{label:"Meta Llama 3.1 70b",value:"llama3.1:70b"},{label:"Meta Llama 3 8b",value:"llama3:8b"},{label:"Meta Llama 3 70b",value:"llama3:70b"},{label:"Phi-3 3.8b",value:"phi3:3.8b"},{label:"Phi-3 14b",value:"phi3:14b"},{label:"Phi-3 instruct",value:"phi3:instruct"},{label:"Gemma2 9b",value:"gemma2:9b"},{label:"Gemma2 27b",value:"gemma2:27b"},{label:"WizardLM-2 7b",value:"wizardlm2:7b"},{label:"WizardLM-2 8x22b",value:"wizardlm2:8x22b"},{label:"Mistral 7b",value:"mistral:7b"},{label:"Mixtral 8x7b",value:"mixtral:8x7b"},{label:"Mixtral 8x22b",value:"mixtral:8x22b"},{label:"Qwen 2 1.5b",value:"qwen2:1.5b"},{label:"Qwen 2 7b",value:"qwen2:7b"},{label:"Qwen 2 72b",value:"qwen2:72b"},{label:"TinyLlama 1.1b",value:"tinyllama:1.1b"},{label:"Yi 1.5 6b",value:"yi:6b"},{label:"Yi 1.5 9b",value:"yi:9b"},{label:"Yi 1.5 34b",value:"yi:34b"}];zt("ollamaModels",{ollamaModels:W});const U=[{id:"HuggingFace",name:"HuggingFace",apiUrl:"Model will be downloaded locally at ./data/models",apiUrlDisabled:!0,showApiKeyInput:!1,models:[{label:"microsoft/Phi-3-mini-4k-instruct (7.7GB)",value:"Phi3Mini4kInstruct"},{label:"microsoft/Phi-3-mini-128k-instruct (7.7GB)",value:"Phi3Mini128kInstruct"},{label:"microsoft/Phi-3-small-8k-instruct (15GB)",value:"Phi3Small8kInstruct"},{label:"microsoft/Phi-3-small-128k-instruct (15GB)",value:"Phi3Small128kInstruct"},{label:"microsoft/Phi-3-medium-4k-instruct (30GB)",value:"Phi3Medium4kInstruct"},{label:"microsoft/Phi-3-medium-128k-instruct (30GB)",value:"Phi3Medium128kInstruct"},{label:"google/gemma-2b-it (4.9GB)",value:"Gemma2bInstruct",need_auth_header:!0},{label:"google/gemma-7b-it (12.1GB)",value:"Gemma7bInstruct",need_auth_header:!0},{label:"meta-llama/Meta-Llama-3-8B-Instruct (??GB)",value:"MetaLlama3_8bInstruct",need_auth_header:!0},{label:"upstage/SOLAR-10.7B-v1.0 (21.5GB)",value:"Solar10_7bV1_0"},{label:"Qwen/Qwen2-7B-Instruct (15.4GB)",value:"Qwen2_72BInstruct",dimenssions:384},{label:"Qwen/Qwen2-72B-Instruct (144GB)",value:"Qwen2_72BInstruct",dimenssions:384},{label:"TinyLlama/TinyLlama-1.1B-Chat-v1.0 (2.2GB)",value:"TinyLlama1_1bChatV1_0"}]},{id:"OpenAI",name:"OpenAI",apiUrl:"https://api.openai.com/v1/chat/completions",apiUrlDisabled:!0,showApiKeyInput:!0,models:[{label:"gpt-4o",value:"gpt-4"},{label:"gpt-4o-mini",value:"gpt-4-mini"},{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-turbo",value:"gpt-4-turbo"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"}]},{id:"Ollama",name:"Ollama",apiUrl:"http://localhost:11434/api/chat",apiUrlDisabled:!1,showApiKeyInput:!1,models:W}],Q=V(!1),de=V(""),ee=V(),Me=ye=>{const H={label:ye,value:ye};me.unshift(H),U[2].models.unshift(H),ee.value.blur(),c.chatProvider.provider.id="Ollama",c.chatProvider.provider.model=H.value,de.value=""},fe=[{id:"HuggingFace",name:"HuggingFace",apiUrl:"Model will be downloaded locally at ./data/models",apiUrlDisabled:!0,showApiKeyInput:!1,models:[{label:"microsoft/Phi-3-mini-4k-instruct (7.7GB)",value:"Phi3Mini4kInstruct"},{label:"microsoft/Phi-3-mini-128k-instruct (7.7GB)",value:"Phi3Mini128kInstruct"},{label:"microsoft/Phi-3-small-8k-instruct (15GB)",value:"Phi3Small8kInstruct"},{label:"microsoft/Phi-3-small-128k-instruct (15GB)",value:"Phi3Small128kInstruct"},{label:"microsoft/Phi-3-medium-4k-instruct (30GB)",value:"Phi3Medium4kInstruct"},{label:"microsoft/Phi-3-medium-128k-instruct (30GB)",value:"Phi3Medium128kInstruct"},{label:"google/gemma-2b-it (4.9GB)",value:"Gemma2bInstruct",need_auth_header:!0},{label:"google/gemma-7b-it (12.1GB)",value:"Gemma7bInstruct",need_auth_header:!0},{label:"meta-llama/Meta-Llama-3-8B-Instruct (??GB)",value:"MetaLlama3_8bInstruct",need_auth_header:!0},{label:"upstage/SOLAR-10.7B-v1.0 (21.5GB)",value:"Solar10_7bV1_0"},{label:"Qwen/Qwen2-7B-Instruct (15.4GB)",value:"Qwen2_72BInstruct",dimenssions:384},{label:"Qwen/Qwen2-72B-Instruct (144GB)",value:"Qwen2_72BInstruct",dimenssions:384},{label:"TinyLlama/TinyLlama-1.1B-Chat-v1.0 (2.2GB)",value:"TinyLlama1_1bChatV1_0"}]},{id:"OpenAI",name:"OpenAI",apiUrl:"https://api.openai.com/v1/chat/completions",apiUrlDisabled:!0,showApiKeyInput:!0,models:[{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-turbo-preview",value:"gpt-4-turbo-preview"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"}]},{id:"Ollama",name:"Ollama",apiUrl:"http://localhost:11434/api/generate",apiUrlDisabled:!1,showApiKeyInput:!1,models:W}],Ce=V(!1),Oe=V(""),ne=V(),ie=ye=>{const H={label:ye,value:ye};I.unshift(H),fe[2].models.unshift(H),ne.value.blur(),c.textGenerationProvider.provider.id="Ollama",c.textGenerationProvider.provider.model=H.value,Oe.value=""},X=[{id:"HuggingFace",name:"HuggingFace",apiUrl:"Model will be downloaded locally at ./data/models",apiUrlDisabled:!0,showApiKeyInput:!1,models:[{label:"sentence-transformers/all-MiniLM-L6-v2 (91MB)",value:"AllMiniLML6V2",dimenssions:384},{label:"sentence-transformers/paraphrase-MiniLM-L12-v2 (135MB)",value:"ParaphraseMLMiniLML12V2"},{label:"sentence-transformers/paraphrase-multilingual-mpnet-base-v2 (1.11GB)",value:"ParaphraseMLMpnetBaseV2"},{label:"BAAI/bge-small-en-v1.5 (135MB)",value:"BgeSmallEnV1_5"},{label:"BAAI/bge-base-en-v1.5 (439MB)",value:"BgeBaseEnV1_5"},{label:"BAAI/bge-large-en-v1.5 (1.35GB)",value:"BgeLargeEnV1_5"},{label:"BAAI/bge-m3 (2.27GB)",value:"BgeM3"},{label:"nomic-ai/nomic-embed-text-v1.5 (550MB)",value:"NomicEmbedTextV1_5"},{label:"intfloat/multilingual-e5-small (472MB)",value:"MultilingualE5Small"},{label:"intfloat/multilingual-e5-base (1.11GB)",value:"MultilingualE5Base"},{label:"intfloat/multilingual-e5-large (2.24GB)",value:"MultilingualE5Large"},{label:"mixedbread-ai/mxbai-embed-large-v1 (1.34GB)",value:"MxbaiEmbedLargeV1"}]},{id:"OpenAI",name:"OpenAI",apiUrl:"https://api.openai.com/v1/embeddings",apiUrlDisabled:!0,showApiKeyInput:!0,models:[{label:"text-embedding-3-large",value:"text-embedding-3-large"},{label:"text-embedding-3-small",value:"text-embedding-3-small"},{label:"text-embedding-ada-002",value:"text-embedding-ada-002"}]},{id:"Ollama",name:"Ollama",apiUrl:"http://localhost:11434/api/embeddings",apiUrlDisabled:!1,showApiKeyInput:!1,models:[{label:"nomic-embed-text:v1.5",value:"nomic-embed-text:v1.5"},{label:"mxbai-embed-large:335m",value:"mxbai-embed-large:335m"},{label:"snowflake-arctic-embed:335m",value:"snowflake-arctic-embed:335m"},{label:"jina-embeddings-v2-base-en",value:"jina/jina-embeddings-v2-base-en:latest"}]}],me=yt([]),Pe=new Map,Ee=V(""),$=ye=>{Ee.value&&Pe.set(Ee.value,c.chatProvider.apiUrl);for(let H=0;Hxe.value==c.chatProvider.provider.model)==null&&Me(c.chatProvider.provider.model),me.splice(0,me.length,...U[H].models);break}},I=yt([]),re=new Map,he=V(""),pe=ye=>{he.value&&re.set(he.value,c.textGenerationProvider.apiUrl);for(let H=0;Hxe.value==c.textGenerationProvider.provider.model)==null&&ie(c.textGenerationProvider.provider.model),I.splice(0,I.length,...fe[H].models);break}},Se=yt([]),_e=new Map,D=V(""),B=ye=>{D.value&&_e.set(D.value,c.sentenceEmbeddingProvider.apiUrl);for(let H=0;Hxe.value==c.sentenceEmbeddingProvider.provider.model)==null&&se(c.sentenceEmbeddingProvider.provider.model),Se.splice(0,Se.length,...X[H].models);break}},J=V(),ce=V(!1),ke=V(""),se=ye=>{const H={label:ye,value:ye};Se.unshift(H),X[2].models.unshift(H),J.value.blur(),c.sentenceEmbeddingProvider.provider.id="Ollama",c.sentenceEmbeddingProvider.provider.model=H.value,ke.value=""},te=[aJ],ue=[uJ],qe=[fJ];return(ye,H)=>{const xe=xs,Be=ug,Ie=nr,ae=Tn,Le=tr,De=ag,rt=lg,lt=Lr,nn=iW,wn=ig,tn=yn,dr=Es,fr=Ss,Ts=yM,qo=Ly;return A(),q(Re,null,[C(xe,{title:ye.$t("lang.common.back"),onBack:l},{content:_(()=>[F("span",hJ,oe(ye.$t("lang.settings.title")),1)]),_:1},8,["title"]),pJ,C(rt,null,{default:_(()=>[C(De,{span:12,offset:1},{default:_(()=>[C(Le,{model:c},{default:_(()=>[C(Ie,{label:ye.$t("lang.settings.prompt3"),"label-width":hr},{default:_(()=>[C(Be,{modelValue:i.value,"onUpdate:modelValue":H[0]||(H[0]=Te=>i.value=Te),min:2,max:1440,onChange:ye.handleChange},null,8,["modelValue","onChange"]),G(" "+oe(ye.$t("lang.settings.prompt4")),1)]),_:1},8,["label"]),C(Ie,{label:"","label-width":hr},{default:_(()=>[C(ae,{type:"primary",onClick:P},{default:_(()=>[G(oe(ye.$t("lang.common.save")),1)]),_:1}),C(ae,{onClick:H[1]||(H[1]=Te=>l())},{default:_(()=>[G(oe(ye.$t("lang.common.back")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1}),F("h3",null,[G(" Chat bot "),C(lt,{effect:"light",placement:"right"},{content:_(()=>[G(" You don’t need to download the large model file unless you want to use the functionalities described below. "),gJ,G(" Currently, its function is merely to provide automatic response capabilities and suggested reply templates for dialogue nodes. ")]),default:_(()=>[C(ae,{circle:""},{default:_(()=>[G("?")]),_:1})]),_:1})]),C(rt,null,{default:_(()=>[C(De,{span:11,offset:1},{default:_(()=>[C(Le,{model:c.chatProvider,"label-width":hr,style:{"max-width":"600px"}},{default:_(()=>[C(Ie,{label:"Provider"},{default:_(()=>[C(wn,{modelValue:c.chatProvider.provider.id,"onUpdate:modelValue":H[2]||(H[2]=Te=>c.chatProvider.provider.id=Te),size:"large",onChange:$},{default:_(()=>[(A(),q(Re,null,St(U,Te=>C(nn,{id:Te.id,key:Te.id,label:Te.id,value:Te.id},null,8,["id","label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),C(Ie,{label:"Request address"},{default:_(()=>[C(tn,{modelValue:c.chatProvider.apiUrl,"onUpdate:modelValue":H[3]||(H[3]=Te=>c.chatProvider.apiUrl=Te),disabled:c.chatProvider.apiUrlDisabled},null,8,["modelValue","disabled"])]),_:1}),$e(C(Ie,{label:"OpenAI API key"},{default:_(()=>[C(tn,{modelValue:c.chatProvider.apiKey,"onUpdate:modelValue":H[4]||(H[4]=Te=>c.chatProvider.apiKey=Te)},null,8,["modelValue"])]),_:1},512),[[Ye,c.chatProvider.showApiKeyInput]]),C(Ie,{label:"Model"},{default:_(()=>[C(fr,{ref_key:"chatModelSelector",ref:ee,modelValue:c.chatProvider.provider.model,"onUpdate:modelValue":H[9]||(H[9]=Te=>c.chatProvider.provider.model=Te),placeholder:"Choose a model"},{footer:_(()=>[Q.value?(A(),q(Re,{key:1},[C(tn,{modelValue:de.value,"onUpdate:modelValue":H[6]||(H[6]=Te=>de.value=Te),placeholder:"input model name",style:{"margin-bottom":"8px"}},null,8,["modelValue"]),C(ae,{type:"primary",onClick:H[7]||(H[7]=Te=>Me(de.value))},{default:_(()=>[G(" confirm ")]),_:1}),C(ae,{onClick:H[8]||(H[8]=Te=>Q.value=!1)},{default:_(()=>[G("cancel")]),_:1})],64)):(A(),ve(ae,{key:0,disabled:c.chatProvider.provider.id!="Ollama",text:"",bg:"",onClick:H[5]||(H[5]=Te=>Q.value=!0)},{default:_(()=>[G(" Another ollama model ")]),_:1},8,["disabled"]))]),default:_(()=>[(A(!0),q(Re,null,St(me,Te=>(A(),ve(dr,{id:Te.value,key:Te.value,label:Te.label,value:Te.value},null,8,["id","label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),C(Ie,{label:"Max response token"},{default:_(()=>[C(Be,{modelValue:c.chatProvider.maxResponseTokenLength,"onUpdate:modelValue":H[10]||(H[10]=Te=>c.chatProvider.maxResponseTokenLength=Te),min:10,max:1e5,step:5},null,8,["modelValue"])]),_:1}),$e(C(Ie,{label:"Connect timeout"},{default:_(()=>[C(Be,{modelValue:c.chatProvider.connectTimeoutMillis,"onUpdate:modelValue":H[11]||(H[11]=Te=>c.chatProvider.connectTimeoutMillis=Te),min:100,max:5e4,step:100},null,8,["modelValue"]),G(" millis ")]),_:1},512),[[Ye,c.chatProvider.provider.id!="HuggingFace"]]),$e(C(Ie,{label:"Read timeout"},{default:_(()=>[C(Be,{modelValue:c.chatProvider.readTimeoutMillis,"onUpdate:modelValue":H[12]||(H[12]=Te=>c.chatProvider.readTimeoutMillis=Te),min:1e3,max:65530,step:100},null,8,["modelValue"]),G(" millis ")]),_:1},512),[[Ye,c.chatProvider.provider.id!="HuggingFace"]]),$e(C(Ie,{label:""},{default:_(()=>[G(" HuggingFace model files were incorrect or missing, please "),C(ae,{type:"primary",text:"",onClick:H[13]||(H[13]=Te=>le(c.chatProvider.provider.model))},{default:_(()=>[G(" click here to download model files from Huggingface.co ")]),_:1}),G(", or you can download manually and put them in ./data/model/"+oe(v.value),1)]),_:1},512),[[Ye,m.value]]),$e(C(Ie,{label:""},{default:_(()=>[G(" Downloading: "+oe(M.value)+", "+oe(O.value)+"% ",1)]),_:1},512),[[Ye,g.value]]),C(Ie,{label:"","label-width":hr},{default:_(()=>[C(ae,{type:"primary",onClick:P},{default:_(()=>[G(oe(ye.$t("lang.common.save")),1)]),_:1}),C(ae,{onClick:H[14]||(H[14]=Te=>l())},{default:_(()=>[G(oe(ye.$t("lang.common.back")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),C(De,{span:6,offset:1},{default:_(()=>[mJ,C(Ts,{src:x(lJ),"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"preview-src-list":te,"initial-index":4,fit:"cover"},null,8,["src"])]),_:1})]),_:1}),F("h3",null,[G(" Text generation "),C(lt,{effect:"light",placement:"right"},{content:_(()=>[G(" You don’t need to download the large model file unless you want to use the functionalities described below. "),vJ,G(" Currently, its function is merely to provide automatic response capabilities and suggested reply templates for dialogue nodes. ")]),default:_(()=>[C(ae,{circle:""},{default:_(()=>[G("?")]),_:1})]),_:1})]),C(rt,null,{default:_(()=>[C(De,{span:11,offset:1},{default:_(()=>[C(Le,{model:c.textGenerationProvider,"label-width":hr,style:{"max-width":"600px"}},{default:_(()=>[C(Ie,{label:"Provider"},{default:_(()=>[C(wn,{modelValue:c.textGenerationProvider.provider.id,"onUpdate:modelValue":H[15]||(H[15]=Te=>c.textGenerationProvider.provider.id=Te),size:"large",onChange:pe},{default:_(()=>[(A(),q(Re,null,St(fe,Te=>C(nn,{id:Te.id,key:Te.id,label:Te.id,value:Te.id},null,8,["id","label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),C(Ie,{label:"Request address"},{default:_(()=>[C(tn,{modelValue:c.textGenerationProvider.apiUrl,"onUpdate:modelValue":H[16]||(H[16]=Te=>c.textGenerationProvider.apiUrl=Te),disabled:c.textGenerationProvider.apiUrlDisabled},null,8,["modelValue","disabled"])]),_:1}),$e(C(Ie,{label:"OpenAI API key"},{default:_(()=>[C(tn,{modelValue:c.textGenerationProvider.apiKey,"onUpdate:modelValue":H[17]||(H[17]=Te=>c.textGenerationProvider.apiKey=Te)},null,8,["modelValue"])]),_:1},512),[[Ye,c.textGenerationProvider.showApiKeyInput]]),C(Ie,{label:"Model"},{default:_(()=>[C(fr,{ref_key:"textGenerationModelSelector",ref:ne,modelValue:c.textGenerationProvider.provider.model,"onUpdate:modelValue":H[22]||(H[22]=Te=>c.textGenerationProvider.provider.model=Te),placeholder:"Choose a model"},{footer:_(()=>[Ce.value?(A(),q(Re,{key:1},[C(tn,{modelValue:Oe.value,"onUpdate:modelValue":H[19]||(H[19]=Te=>Oe.value=Te),placeholder:"input model name",style:{"margin-bottom":"8px"}},null,8,["modelValue"]),C(ae,{type:"primary",onClick:H[20]||(H[20]=Te=>ie(Oe.value))},{default:_(()=>[G(" confirm ")]),_:1}),C(ae,{onClick:H[21]||(H[21]=Te=>Ce.value=!1)},{default:_(()=>[G("cancel")]),_:1})],64)):(A(),ve(ae,{key:0,disabled:c.textGenerationProvider.provider.id!="Ollama",text:"",bg:"",onClick:H[18]||(H[18]=Te=>Ce.value=!0)},{default:_(()=>[G(" Another ollama model ")]),_:1},8,["disabled"]))]),default:_(()=>[(A(!0),q(Re,null,St(I,Te=>(A(),ve(dr,{id:Te.value,key:Te.value,label:Te.label,value:Te.value},null,8,["id","label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),C(Ie,{label:"Max response token"},{default:_(()=>[C(Be,{modelValue:c.textGenerationProvider.maxResponseTokenLength,"onUpdate:modelValue":H[23]||(H[23]=Te=>c.textGenerationProvider.maxResponseTokenLength=Te),min:10,max:1e5,step:5},null,8,["modelValue"])]),_:1}),$e(C(Ie,{label:"Connect timeout"},{default:_(()=>[C(Be,{modelValue:c.textGenerationProvider.connectTimeoutMillis,"onUpdate:modelValue":H[24]||(H[24]=Te=>c.textGenerationProvider.connectTimeoutMillis=Te),min:100,max:5e4,step:100},null,8,["modelValue"]),G(" millis ")]),_:1},512),[[Ye,c.textGenerationProvider.provider.id!="HuggingFace"]]),$e(C(Ie,{label:"Read timeout"},{default:_(()=>[C(Be,{modelValue:c.textGenerationProvider.readTimeoutMillis,"onUpdate:modelValue":H[25]||(H[25]=Te=>c.textGenerationProvider.readTimeoutMillis=Te),min:1e3,max:65530,step:100},null,8,["modelValue"]),G(" millis ")]),_:1},512),[[Ye,c.textGenerationProvider.provider.id!="HuggingFace"]]),$e(C(Ie,{label:""},{default:_(()=>[G(" HuggingFace model files were incorrect or missing, please "),C(ae,{type:"primary",text:"",onClick:H[26]||(H[26]=Te=>le(c.textGenerationProvider.provider.model))},{default:_(()=>[G(" click here to download model files from Huggingface.co ")]),_:1}),G(", or you can download manually and put them in ./data/model/"+oe(b.value),1)]),_:1},512),[[Ye,m.value]]),$e(C(Ie,{label:""},{default:_(()=>[G(" Downloading: "+oe(M.value)+", "+oe(O.value)+"% ",1)]),_:1},512),[[Ye,w.value]]),C(Ie,{label:"","label-width":hr},{default:_(()=>[C(ae,{type:"primary",onClick:P},{default:_(()=>[G(oe(ye.$t("lang.common.save")),1)]),_:1}),C(ae,{onClick:H[27]||(H[27]=Te=>l())},{default:_(()=>[G(oe(ye.$t("lang.common.back")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),C(De,{span:6,offset:1},{default:_(()=>[bJ,C(Ts,{src:x(cJ),"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"preview-src-list":ue,"initial-index":4,fit:"cover"},null,8,["src"])]),_:1})]),_:1}),F("h3",null,[G(" Sentence embedding provider "),C(lt,{effect:"light",placement:"right"},{content:_(()=>[G(" Downloading model files is not necessary."),yJ,G(" Its function is merely to enhance the accuracy of intent recognition for user inputs, and it will not affect the response functionality of the process."),wJ,G(" User intent can also be recognized through the configuration of keywords and regular expressions without downloading the model. ")]),default:_(()=>[C(ae,{circle:""},{default:_(()=>[G("?")]),_:1})]),_:1})]),C(rt,null,{default:_(()=>[C(De,{span:11,offset:1},{default:_(()=>[C(Le,{model:c.sentenceEmbeddingProvider,"label-width":hr,style:{"max-width":"600px"}},{default:_(()=>[C(Ie,{label:"Provider"},{default:_(()=>[C(wn,{modelValue:c.sentenceEmbeddingProvider.provider.id,"onUpdate:modelValue":H[28]||(H[28]=Te=>c.sentenceEmbeddingProvider.provider.id=Te),size:"large",onChange:B},{default:_(()=>[(A(),q(Re,null,St(X,Te=>C(nn,{id:Te.id,key:Te.id,label:Te.id,value:Te.id},null,8,["id","label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),C(Ie,{label:"Request address"},{default:_(()=>[C(tn,{modelValue:c.sentenceEmbeddingProvider.apiUrl,"onUpdate:modelValue":H[29]||(H[29]=Te=>c.sentenceEmbeddingProvider.apiUrl=Te),disabled:c.sentenceEmbeddingProvider.apiUrlDisabled},null,8,["modelValue","disabled"])]),_:1}),$e(C(Ie,{label:"OpenAI API key"},{default:_(()=>[C(tn,{modelValue:c.sentenceEmbeddingProvider.apiKey,"onUpdate:modelValue":H[30]||(H[30]=Te=>c.sentenceEmbeddingProvider.apiKey=Te)},null,8,["modelValue"])]),_:1},512),[[Ye,c.sentenceEmbeddingProvider.showApiKeyInput]]),C(Ie,{label:"Model"},{default:_(()=>[C(fr,{ref_key:"sentenceEmbeddingModelSelector",ref:J,modelValue:c.sentenceEmbeddingProvider.provider.model,"onUpdate:modelValue":H[35]||(H[35]=Te=>c.sentenceEmbeddingProvider.provider.model=Te),placeholder:"Choose a model"},{footer:_(()=>[ce.value?(A(),q(Re,{key:1},[C(tn,{modelValue:ke.value,"onUpdate:modelValue":H[32]||(H[32]=Te=>ke.value=Te),placeholder:"input model name",style:{"margin-bottom":"8px"}},null,8,["modelValue"]),C(ae,{type:"primary",onClick:H[33]||(H[33]=Te=>se(ke.value))},{default:_(()=>[G(" confirm ")]),_:1}),C(ae,{onClick:H[34]||(H[34]=Te=>ce.value=!1)},{default:_(()=>[G("cancel")]),_:1})],64)):(A(),ve(ae,{key:0,disabled:c.sentenceEmbeddingProvider.provider.id!="Ollama",text:"",bg:"",onClick:H[31]||(H[31]=Te=>ce.value=!0)},{default:_(()=>[G(" Another ollama model ")]),_:1},8,["disabled"]))]),default:_(()=>[(A(!0),q(Re,null,St(Se,Te=>(A(),ve(dr,{id:Te.value,key:Te.value,label:Te.label,value:Te.value},null,8,["id","label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),C(Ie,{label:"Similarity threshold"},{default:_(()=>[G(" ≥"),C(Be,{modelValue:a.value,"onUpdate:modelValue":H[36]||(H[36]=Te=>a.value=Te),min:1,max:99,step:1},null,8,["modelValue"]),G("% "),C(lt,{effect:"light",placement:"right"},{content:_(()=>[G(" An intent is used when the expression matching similarity exceeds the threshold. ")]),default:_(()=>[C(ae,{circle:""},{default:_(()=>[G("?")]),_:1})]),_:1})]),_:1}),$e(C(Ie,{label:"Connect timeout"},{default:_(()=>[C(Be,{modelValue:c.sentenceEmbeddingProvider.connectTimeoutMillis,"onUpdate:modelValue":H[37]||(H[37]=Te=>c.sentenceEmbeddingProvider.connectTimeoutMillis=Te),min:100,max:5e4,step:100},null,8,["modelValue"]),G(" millis ")]),_:1},512),[[Ye,c.sentenceEmbeddingProvider.provider.id!="HuggingFace"]]),$e(C(Ie,{label:"Read timeout"},{default:_(()=>[C(Be,{modelValue:c.sentenceEmbeddingProvider.readTimeoutMillis,"onUpdate:modelValue":H[38]||(H[38]=Te=>c.sentenceEmbeddingProvider.readTimeoutMillis=Te),min:1e3,max:65530,step:100},null,8,["modelValue"]),G(" millis ")]),_:1},512),[[Ye,c.sentenceEmbeddingProvider.provider.id!="HuggingFace"]]),$e(C(Ie,{label:""},{default:_(()=>[G(" HuggingFace model files were incorrect or missing, please "),C(ae,{type:"primary",text:"",onClick:H[39]||(H[39]=Te=>le(c.sentenceEmbeddingProvider.provider.model))},{default:_(()=>[G(" click here to download model files from Huggingface.co ")]),_:1}),G(", or you can download manually and put them in ./data/model/"+oe(E.value),1)]),_:1},512),[[Ye,y.value]]),$e(C(Ie,{label:""},{default:_(()=>[G(" Downloading: "+oe(M.value)+", "+oe(O.value)+"% ",1)]),_:1},512),[[Ye,S.value]]),C(Ie,{label:"","label-width":hr},{default:_(()=>[C(ae,{type:"primary",onClick:P},{default:_(()=>[G(oe(ye.$t("lang.common.save")),1)]),_:1}),C(ae,{onClick:H[40]||(H[40]=Te=>l())},{default:_(()=>[G(oe(ye.$t("lang.common.back")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),C(De,{span:6,offset:1},{default:_(()=>[CJ,C(Ts,{src:x(dJ),"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"preview-src-list":qe,"initial-index":4,fit:"cover"},null,8,["src"])]),_:1})]),_:1}),xJ,C(rt,null,{default:_(()=>[C(De,{span:11,offset:1},{default:_(()=>[C(Le,{model:c},{default:_(()=>[C(Ie,{label:"Email SMTP","label-width":hr}),C(Ie,{label:"Host","label-width":hr},{default:_(()=>[C(tn,{modelValue:c.smtpHost,"onUpdate:modelValue":H[41]||(H[41]=Te=>c.smtpHost=Te),placeholder:""},null,8,["modelValue"])]),_:1}),C(Ie,{label:"Username","label-width":hr},{default:_(()=>[C(tn,{modelValue:c.smtpUsername,"onUpdate:modelValue":H[42]||(H[42]=Te=>c.smtpUsername=Te),placeholder:""},null,8,["modelValue"])]),_:1}),C(Ie,{label:"Password","label-width":hr},{default:_(()=>[C(tn,{modelValue:c.smtpPassword,"onUpdate:modelValue":H[43]||(H[43]=Te=>c.smtpPassword=Te),placeholder:"",type:"password"},null,8,["modelValue"])]),_:1}),C(Ie,{label:"Timeout","label-width":hr},{default:_(()=>[C(Be,{modelValue:c.smtpTimeoutSec,"onUpdate:modelValue":H[44]||(H[44]=Te=>c.smtpTimeoutSec=Te),min:1,max:600,onChange:ye.handleChange},null,8,["modelValue","onChange"]),G(" Seconds ")]),_:1}),C(Ie,{label:"Email verification regex","label-width":"200px"},{default:_(()=>[C(tn,{modelValue:c.emailVerificationRegex,"onUpdate:modelValue":H[45]||(H[45]=Te=>c.emailVerificationRegex=Te),placeholder:_x},null,8,["modelValue"])]),_:1}),C(Ie,{label:"","label-width":"200px"},{default:_(()=>[G(" You can customize the email verification regular expression, or leave it blank and the system will automatically use the general verification rules. ")]),_:1}),C(Ie,{label:"","label-width":hr},{default:_(()=>[C(ae,{loading:u.value,type:"info",onClick:K},{default:_(()=>[G(" Test SMTP settings ")]),_:1},8,["loading"]),d.value?(A(),ve(qo,{key:0,title:"SMTP test passed",type:"success"})):be("",!0),f.value?(A(),ve(qo,{key:1,title:h.value,type:"error"},null,8,["title"])):be("",!0)]),_:1}),C(Ie,{label:"","label-width":hr},{default:_(()=>[C(ae,{type:"primary",onClick:P},{default:_(()=>[G(oe(ye.$t("lang.common.save")),1)]),_:1}),C(ae,{onClick:H[46]||(H[46]=Te=>l())},{default:_(()=>[G(oe(ye.$t("lang.common.back")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1})],64)}}},EJ={class:"text-large font-600 mr-3"},_J={class:"flex items-center"},TJ="130px",OJ={__name:"MainFlow",setup(n){const{t:e,tm:t,rt:r}=on(),o=Qs(),s=yo(),i=o.params.robotId,l=yt({_idx:0,id:"",name:"",enabled:!0}),a=V(!1),c=V([]);ot(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:FM(y.name)}})},h=()=>{l.id="",l.name="",l.enabled=!0,v()},p=(b,y)=>{l._idx=b,l.id=y.id,l.name=y.name,l.enabled=y.enabled,v()},g=async(b,y)=>{vr.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),m(),Zt({type:"success",message:S("lang.common.deleted")})}).catch(()=>{})};function v(){a.value=!0}function m(){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),m()};return(b,y)=>{const S=Tn,E=xs,T=nf,M=tf,O=yn,k=nr,P=tr,L=fl;return A(),q(Re,null,[C(E,{title:x(e)("lang.common.back"),onBack:d},{content:_(()=>[F("span",EJ,oe(b.$t("lang.mainflow.title")),1)]),extra:_(()=>[F("div",_J,[C(S,{type:"primary",class:"ml-2",onClick:y[0]||(y[0]=j=>h())},{default:_(()=>[G(oe(b.$t("lang.mainflow.add")),1)]),_:1})])]),_:1},8,["title"]),C(M,{data:c.value,stripe:"",style:{width:"100%"}},{default:_(()=>[C(T,{prop:"id",label:"Id",width:"270"}),C(T,{prop:"name",label:x(t)("lang.mainflow.table")[0],width:"360"},null,8,["label"]),C(T,{fixed:"right",label:x(t)("lang.mainflow.table")[2],width:"270"},{default:_(j=>[C(S,{link:"",type:"primary",size:"small",onClick:le=>f(j.$index,j.row)},{default:_(()=>[G(oe(b.$t("lang.common.edit")),1)]),_:2},1032,["onClick"]),G(" | "),C(S,{link:"",type:"primary",size:"small",onClick:le=>p(j.$index,j.row)},{default:_(()=>[G(oe(b.$t("lang.common.edit"))+" name ",1)]),_:2},1032,["onClick"]),G(" | "),C(S,{link:"",type:"primary",size:"small",onClick:le=>g(j.$index,j.row)},{default:_(()=>[G(oe(b.$t("lang.common.del")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),C(L,{modelValue:a.value,"onUpdate:modelValue":y[4]||(y[4]=j=>a.value=j),title:b.$t("lang.mainflow.form.title"),width:"60%"},{footer:_(()=>[C(S,{type:"primary",loading:b.loading,onClick:y[2]||(y[2]=j=>w())},{default:_(()=>[G(oe(b.$t("lang.common.save")),1)]),_:1},8,["loading"]),C(S,{onClick:y[3]||(y[3]=j=>m())},{default:_(()=>[G(oe(b.$t("lang.common.cancel")),1)]),_:1})]),default:_(()=>[C(P,{model:b.nodeData},{default:_(()=>[C(k,{label:b.$t("lang.mainflow.form.name"),"label-width":TJ},{default:_(()=>[C(O,{modelValue:l.name,"onUpdate:modelValue":y[1]||(y[1]=j=>l.name=j),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["modelValue","title"])],64)}}},MJ={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},AJ=F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768a384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0a48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"},null,-1),kJ=[AJ];function PJ(n,e){return A(),q("svg",MJ,[...kJ])}const hl={name:"ep-warning",render:PJ},wo=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},NJ={class:"nodeBox"},IJ={class:"demo-drawer__footer"},Ff="140px",LJ={__name:"CollectNode",setup(n){const{t:e,tm:t,rt:r}=on(),o=V(!1),s=yt({nodeName:e("lang.collectNode.nodeName"),collectTypeName:"",collectType:"",customizeRegex:"",collectSaveVarName:"",valid:!1,invalidMessages:[],branches:[],newNode:!0}),i=V(),l=He("getNode"),{robotId:a}=He("robotId");l().on("change:data",({current:w})=>{o.value=!0});const u=[{label:t("lang.collectNode.cTypes")[0],value:"UserInput"},{label:t("lang.collectNode.cTypes")[1],value:"Number"},{label:t("lang.collectNode.cTypes")[2],value:"CustomizeRegex"}],d=[];ot(async()=>{const w=l(),b=w.getData();if(Zn(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(){v();const w=l(),b=w.getPorts();s.branches.splice(0,s.branches.length);for(let y=0;y{const y=dt,S=Lr,E=yn,T=nr,M=Es,O=Ss,k=tr,P=Tn,L=Cs;return A(),q("div",NJ,[F("div",{ref_key:"nodeName",ref:i,class:"nodeTitle"},[G(oe(s.nodeName)+" ",1),$e(F("span",null,[C(S,{class:"box-item",effect:"dark",content:s.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[C(y,{color:"red",size:"16"},{default:_(()=>[C(x(hl))]),_:1})]),_:1},8,["content"])],512),[[Ye,s.invalidMessages.length>0]])],512),F("div",null,oe(x(e)("lang.collectNode.cTypeName"))+": "+oe(s.collectTypeName),1),F("div",null,oe(x(e)("lang.collectNode.varName"))+": "+oe(s.collectSaveVarName),1),C(L,{modelValue:o.value,"onUpdate:modelValue":b[6]||(b[6]=j=>o.value=j),title:s.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:_(()=>[C(k,{"label-position":w.labelPosition,"label-width":"100px",model:s,style:{"max-width":"460px"}},{default:_(()=>[C(T,{label:x(e)("lang.common.nodeName"),"label-width":Ff},{default:_(()=>[C(E,{modelValue:s.nodeName,"onUpdate:modelValue":b[0]||(b[0]=j=>s.nodeName=j)},null,8,["modelValue"])]),_:1},8,["label"]),C(T,{label:x(m)[0],"label-width":Ff},{default:_(()=>[C(O,{modelValue:s.collectType,"onUpdate:modelValue":b[1]||(b[1]=j=>s.collectType=j),placeholder:x(m)[1]},{default:_(()=>[(A(),q(Re,null,St(u,j=>C(M,{key:j.label,label:j.label,value:j.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),$e(C(T,{label:x(m)[2],"label-width":Ff},{default:_(()=>[C(E,{modelValue:s.customizeRegex,"onUpdate:modelValue":b[2]||(b[2]=j=>s.customizeRegex=j)},null,8,["modelValue"])]),_:1},8,["label"]),[[Ye,s.collectType=="CustomizeRegex"]]),C(T,{label:x(m)[3],"label-width":Ff},{default:_(()=>[C(O,{modelValue:s.collectSaveVarName,"onUpdate:modelValue":b[3]||(b[3]=j=>s.collectSaveVarName=j),placeholder:x(m)[4]},{default:_(()=>[(A(),q(Re,null,St(d,j=>C(M,{key:j.label,label:j.label,value:j.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["label-position","model"]),F("div",IJ,[C(P,{type:"primary",loading:w.loading,onClick:b[4]||(b[4]=j=>g())},{default:_(()=>[G(oe(x(e)("lang.common.save")),1)]),_:1},8,["loading"]),C(P,{onClick:b[5]||(b[5]=j=>p())},{default:_(()=>[G(oe(x(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},RJ=wo(LJ,[["__scopeId","data-v-9ad43495"]]),$J={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},DJ=F("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"},null,-1),VJ=[DJ];function BJ(n,e){return A(),q("svg",$J,[...VJ])}const Vu={name:"ep-plus",render:BJ},FJ={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},zJ=F("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"},null,-1),jJ=[zJ];function HJ(n,e){return A(),q("svg",FJ,[...jJ])}const UJ={name:"ep-minus",render:HJ},WJ={class:"nodeBox"},GJ={class:"dialog-footer"},au="85px",qJ=!1,KJ={__name:"ConditionNode",setup(n){const{t:e,tm:t,rt:r}=on(),o=new Map,s=He("getNode"),{robotId:i}=He("robotId"),l=V(!1),a=V(!1),c=ql().conditionGroup[0][0];c.conditionType="";const u=ql();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"),v={UserIntent:[{label:g[0],value:"Eq",inputType:0,showCS:!1}],UserInput:[{label:g[0],value:"Eq",inputType:1,showCS:!0},{label:g[2],value:"Contains",inputType:1,showCS:!0},{label:g[3],value:"Timeout",inputType:0,showCS:!1}],FlowVariable:[{label:"Has value",value:"HasValue",inputType:0,showCS:!1,belongsTo:"StrNum"},{label:"Does not have value",value:"DoesNotHaveValue",inputType:0,showCS:!1,belongsTo:"StrNum"},{label:"Is empty string",value:"EmptyString",inputType:0,showCS:!1,belongsTo:"Str"},{label:g[0],value:"Eq",inputType:1,showCS:!0,belongsTo:"StrNum"},{label:g[1],value:"NotEq",inputType:1,showCS:!0,belongsTo:"StrNum"},{label:"Contains",value:"Contains",inputType:1,showCS:!0,belongsTo:"Str"},{label:"Not contains",value:"NotContains",inputType:1,showCS:!0,belongsTo:"Str"},{label:"Greater than",value:"NGT",inputType:1,showCS:!1,belongsTo:"Num"},{label:"Greater than or equal to",value:"NGTE",inputType:1,showCS:!1,belongsTo:"Num"},{label:"Less than",value:"NLT",inputType:1,showCS:!1,belongsTo:"Num"},{label:"Less than or equal to",value:"NLTE",inputType:1,showCS:!1,belongsTo:"Num"}],ZeroShotTextClassification:[]},m={UserIntent:[]};let w=-1;const b=yt({nodeName:e("lang.conditionNode.nodeName"),branches:[u],valid:!1,invalidMessages:[],newNode:!0}),y=ql();y.conditionGroup=[];const S=yt(y),E=V();s().on("change:data",({current:fe})=>{l.value=!0}),d[0].push(yi(c)),ot(async()=>{let fe=await et("GET","intent",{robotId:i},null,null);if(fe&&fe.status==200&&fe.data){const ne=m.UserIntent;ne.splice(0,ne.length),fe.data.forEach(function(ie,X,me){this.push({label:ie.name,value:ie.name})},ne)}if(fe=await et("GET","variable",{robotId:i},null,null),fe&&fe.status==200&&fe.data){const ne=p.FlowVariable;ne.splice(0,ne.length),fe.data.forEach(function(ie,X,me){this.push({label:ie.varName,value:ie.varName,vtype:ie.varType})},ne)}const Oe=s().getData();Zn(Oe,b),b.newNode?b.nodeName+=Oe.nodeCnt.toString():b.branches.forEach(function(ne,ie){o.set(ne.branchId,ie)}),b.newNode=!1,k()});const T=t("lang.conditionNode.errors"),O=yt({branchName:[{validator:(fe,Ce,Oe)=>{if(Ce=="")Oe(new Error(T[0]));else{for(let ne=0;ne{b.branches.splice(fe,1),L()}).catch(()=>{})}function R(){l.value=!1}function K(){let fe=E.value.offsetHeight;const Ce=s(),Oe=b.branches.length,ne=E.value.offsetWidth-15;let ie,X;const me=new Map;for(let Pe=0;Pe{Ce.removePort(Ee,{silent:!1}),o.delete(Ee)});for(const[Pe,Ee]of me)o.set(Pe,Ee);Ce.resize(Ce.size().width,20+fe,{direction:"bottom",silent:!1}),k(),Ce.setData(b,{silent:!0}),R()}function W(fe,Ce,Oe){const ne=S.conditionGroup[Ce][Oe],ie=p[fe];ie?ne.refOptions=ie:ne.refOptions=[],ne.compareOptions=v[fe],ne.compareType="";const X=m[fe];X?ne.targetOptions=X:ne.targetOptions=[]}function U(fe,Ce,Oe,ne){const ie=S.conditionGroup[Ce][Oe];if(ie.compareOptions[0].belongsTo){const X=p.FlowVariable.filter(function(me,Pe,Ee){return me.label===ne});X.length==1&&(ie.compareType="",ie.compareOptions=v[fe].filter(function(me,Pe,Ee){return me.belongsTo.indexOf(X[0].vtype)>-1}))}}function Q(fe,Ce,Oe){S.conditionGroup[fe][Ce].inputVariable=Oe.inputType==1,S.conditionGroup[fe][Ce].showCaseSensitiveCheckBox=Oe.showCS}function de(fe){const Ce=yi(c);fe.push(Ce)}function ee(){S.conditionGroup.push(...yi(d))}function Me(fe){S.conditionGroup.splice(fe,1)}return(fe,Ce)=>{const Oe=dt,ne=Lr,ie=yn,X=nr,me=Es,Pe=Ss,Ee=ia,$=Tn,I=Fy,re=cg,he=tr,pe=fl,Se=Cs;return A(),q("div",WJ,[F("div",{ref_key:"nodeName",ref:E,class:"nodeTitle"},[G(oe(b.nodeName)+" ",1),$e(F("span",null,[C(ne,{class:"box-item",effect:"dark",content:b.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[C(Oe,{color:"red",size:"16"},{default:_(()=>[C(x(hl))]),_:1})]),_:1},8,["content"])],512),[[Ye,b.invalidMessages.length>0]])],512),C(pe,{modelValue:a.value,"onUpdate:modelValue":Ce[5]||(Ce[5]=_e=>a.value=_e),title:x(e)("lang.conditionNode.newBranch"),width:"75%","append-to-body":!0,"destroy-on-close":!0},{footer:_(()=>[F("span",GJ,[C($,{type:"primary",onClick:Ce[2]||(Ce[2]=_e=>j())},{default:_(()=>[G(oe(x(e)("lang.common.save")),1)]),_:1}),C($,{onClick:Ce[3]||(Ce[3]=_e=>L())},{default:_(()=>[G(oe(x(e)("lang.common.cancel")),1)]),_:1}),C($,{type:"danger",disabled:x(w)==-1,onClick:Ce[4]||(Ce[4]=_e=>N(x(w)))},{default:_(()=>[G(oe(x(e)("lang.common.del")),1)]),_:1},8,["disabled"])])]),default:_(()=>[C(he,{model:S,rules:O},{default:_(()=>[C(X,{label:x(e)("lang.conditionNode.condName"),"label-width":au,prop:"branchName"},{default:_(()=>[C(ie,{modelValue:S.branchName,"onUpdate:modelValue":Ce[0]||(Ce[0]=_e=>S.branchName=_e),autocomplete:"off",minlength:"1",maxlength:"15"},null,8,["modelValue"])]),_:1},8,["label"]),(A(!0),q(Re,null,St(S.conditionGroup,(_e,D)=>(A(),ve(X,{key:D,label:x(e)("lang.conditionNode.condType"),"label-width":au},{default:_(()=>[(A(!0),q(Re,null,St(_e,(B,J)=>(A(),q("div",{key:J},[C(Pe,{modelValue:B.conditionType,"onUpdate:modelValue":ce=>B.conditionType=ce,placeholder:x(e)("lang.conditionNode.condTypePH"),onChange:ce=>W(ce,D,J),style:{width:"116px"}},{default:_(()=>[(A(),q(Re,null,St(h,ce=>C(me,{key:ce.label,label:ce.label,value:ce.value},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onChange"]),$e(C(Pe,{modelValue:B.refChoice,"onUpdate:modelValue":ce=>B.refChoice=ce,placeholder:x(e)("lang.conditionNode.comparedPH"),class:"optionWidth",onChange:ce=>U(B.conditionType,D,J,ce)},{default:_(()=>[(A(!0),q(Re,null,St(B.refOptions,ce=>(A(),ve(me,{key:ce.label,label:ce.label,value:ce.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onChange"]),[[Ye,B.refOptions.length>0]]),$e(C(Pe,{modelValue:B.compareType,"onUpdate:modelValue":ce=>B.compareType=ce,placeholder:x(e)("lang.conditionNode.compareTypePH"),class:"optionWidth"},{default:_(()=>[(A(!0),q(Re,null,St(B.compareOptions,ce=>(A(),ve(me,{key:ce.label,label:ce.label,value:ce.value,onClick:ke=>Q(D,J,ce)},null,8,["label","value","onClick"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"]),[[Ye,B.compareOptions.length>0]]),$e(C(Pe,{modelValue:B.targetValue,"onUpdate:modelValue":ce=>B.targetValue=ce,placeholder:x(e)("lang.conditionNode.targetPH"),class:"optionWidth"},{default:_(()=>[(A(!0),q(Re,null,St(B.targetOptions,ce=>(A(),ve(me,{key:ce.label,label:ce.label,value:ce.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"]),[[Ye,B.targetOptions.length>0]]),$e(C(Pe,{modelValue:B.targetValueVariant,"onUpdate:modelValue":ce=>B.targetValueVariant=ce,class:"optionWidth"},{default:_(()=>[C(me,{label:"const value",value:"Const"}),C(me,{label:"variable value",value:"Variable"})]),_:2},1032,["modelValue","onUpdate:modelValue"]),[[Ye,B.inputVariable]]),$e(C(Pe,{modelValue:B.targetValue,"onUpdate:modelValue":ce=>B.targetValue=ce,placeholder:"Please choose a variable",class:"optionWidth"},{default:_(()=>[(A(!0),q(Re,null,St(p.FlowVariable,ce=>(A(),ve(me,{key:ce.label,label:ce.label,value:ce.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"]),[[Ye,B.inputVariable&&B.targetValueVariant=="Variable"]]),$e(C(ie,{modelValue:B.targetValue,"onUpdate:modelValue":ce=>B.targetValue=ce,class:"optionWidth"},null,8,["modelValue","onUpdate:modelValue"]),[[Ye,B.inputVariable&&B.targetValueVariant=="Const"]]),$e(C(Ee,{modelValue:B.caseSensitiveComparison,"onUpdate:modelValue":ce=>B.caseSensitiveComparison=ce,label:"CaseSensitive"},null,8,["modelValue","onUpdate:modelValue"]),[[Ye,B.showCaseSensitiveCheckBox]]),C(I,null,{default:_(()=>[C($,{type:"primary",onClick:ce=>de(_e)},{default:_(()=>[C(Oe,null,{default:_(()=>[C(x(Vu))]),_:1})]),_:2},1032,["onClick"]),$e(C($,{type:"danger",onClick:ce=>{_e.splice(J,1)}},{default:_(()=>[C(Oe,null,{default:_(()=>[C(x(UJ))]),_:1})]),_:2},1032,["onClick"]),[[Ye,_e.length>1]])]),_:2},1024),C(re,{"border-style":"dashed"})]))),128)),C(re),$e(C($,{type:"danger",onClick:B=>Me(D)},{default:_(()=>[G(" X ")]),_:2},1032,["onClick"]),[[Ye,S.conditionGroup.length>1]])]),_:2},1032,["label"]))),128)),C(X,{label:"","label-width":au},{default:_(()=>[C($,{type:"primary",onClick:Ce[1]||(Ce[1]=_e=>ee())},{default:_(()=>[C(Oe,null,{default:_(()=>[C(x(Vu))]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue","title"]),C(Se,{modelValue:l.value,"onUpdate:modelValue":Ce[10]||(Ce[10]=_e=>l.value=_e),title:b.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:_(()=>[C(he,{model:b},{default:_(()=>[C(X,{label:x(e)("lang.common.nodeName"),"label-width":au},{default:_(()=>[C(ie,{modelValue:b.nodeName,"onUpdate:modelValue":Ce[6]||(Ce[6]=_e=>b.nodeName=_e),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),C(X,{label:x(e)("lang.conditionNode.newCond"),"label-width":au},{default:_(()=>[C($,{type:"primary",onClick:Ce[7]||(Ce[7]=_e=>P())},{default:_(()=>[C(Oe,null,{default:_(()=>[C(x(Vu))]),_:1})]),_:1}),(A(!0),q(Re,null,St(b.branches,(_e,D)=>(A(),ve($,{key:D,type:"primary",onClick:B=>le(D),disabled:!_e.editable},{default:_(()=>[G(oe(_e.branchName),1)]),_:2},1032,["onClick","disabled"]))),128))]),_:1},8,["label"])]),_:1},8,["model"]),F("div",null,[C($,{type:"primary",loading:qJ,onClick:Ce[8]||(Ce[8]=_e=>K())},{default:_(()=>[G(oe(x(e)("lang.common.save")),1)]),_:1}),C($,{onClick:Ce[9]||(Ce[9]=_e=>R())},{default:_(()=>[G(oe(x(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},YJ=wo(KJ,[["__scopeId","data-v-239d39a6"]]),JJ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},XJ=F("path",{fill:"currentColor",d:"M8 11h4.5a2.5 2.5 0 0 0 0-5H8zm10 4.5a4.5 4.5 0 0 1-4.5 4.5H6V4h6.5a4.5 4.5 0 0 1 3.256 7.606A4.498 4.498 0 0 1 18 15.5M8 13v5h5.5a2.5 2.5 0 0 0 0-5z"},null,-1),ZJ=[XJ];function QJ(n,e){return A(),q("svg",JJ,[...ZJ])}const eX={name:"ri-bold",render:QJ},tX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},nX=F("path",{fill:"currentColor",d:"M15 20H7v-2h2.927l2.116-12H9V4h8v2h-2.927l-2.116 12H15z"},null,-1),rX=[nX];function oX(n,e){return A(),q("svg",tX,[...rX])}const sX={name:"ri-italic",render:oX},iX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},lX=F("path",{fill:"currentColor",d:"M17.154 14c.23.516.346 1.09.346 1.72c0 1.342-.524 2.392-1.571 3.147C14.88 19.622 13.434 20 11.586 20c-1.64 0-3.263-.381-4.87-1.145v-2.254c1.52.877 3.075 1.316 4.666 1.316c2.551 0 3.83-.732 3.839-2.197a2.21 2.21 0 0 0-.648-1.603l-.12-.117H3v-2h18v2zm-4.078-3H7.629a4.086 4.086 0 0 1-.481-.522C6.716 9.92 6.5 9.246 6.5 8.452c0-1.236.466-2.287 1.397-3.153C8.83 4.433 10.271 4 12.222 4c1.471 0 2.879.328 4.222.984v2.152c-1.2-.687-2.515-1.03-3.946-1.03c-2.48 0-3.719.782-3.719 2.346c0 .42.218.786.654 1.099c.436.313.974.563 1.613.75c.62.18 1.297.414 2.03.699"},null,-1),aX=[lX];function cX(n,e){return A(),q("svg",iX,[...aX])}const uX={name:"ri-strikethrough",render:cX},dX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},fX=F("path",{fill:"currentColor",d:"M8 3v9a4 4 0 0 0 8 0V3h2v9a6 6 0 0 1-12 0V3zM4 20h16v2H4z"},null,-1),hX=[fX];function pX(n,e){return A(),q("svg",dX,[...hX])}const gX={name:"ri-underline",render:pX},mX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},vX=F("path",{fill:"currentColor",d:"M15.246 14H8.754l-1.6 4H5l6-15h2l6 15h-2.154zm-.8-2L12 5.885L9.554 12zM3 20h18v2H3z"},null,-1),bX=[vX];function yX(n,e){return A(),q("svg",mX,[...bX])}const wX={name:"ri-font-color",render:yX},CX={viewBox:"0 0 16 16",width:"1.2em",height:"1.2em"},xX=F("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11.096.644a2 2 0 0 1 2.791.036l1.433 1.433a2 2 0 0 1 .035 2.791l-.413.435l-8.07 8.995a.5.5 0 0 1-.372.166h-3a.5.5 0 0 1-.234-.058l-.412.412A.5.5 0 0 1 2.5 15h-2a.5.5 0 0 1-.354-.854l1.412-1.412A.5.5 0 0 1 1.5 12.5v-3a.5.5 0 0 1 .166-.372l8.995-8.07zm-.115 1.47L2.727 9.52l3.753 3.753l7.406-8.254zm3.585 2.17l.064-.068a1 1 0 0 0-.017-1.396L13.18 1.387a1 1 0 0 0-1.396-.018l-.068.065zM5.293 13.5L2.5 10.707v1.586L3.707 13.5z"},null,-1),SX=[xX];function EX(n,e){return A(),q("svg",CX,[...SX])}const _X={name:"bi-highlighter",render:EX},TX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},OX=F("path",{fill:"currentColor",d:"M17 11V4h2v17h-2v-8H7v8H5V4h2v7z"},null,-1),MX=[OX];function AX(n,e){return A(),q("svg",TX,[...MX])}const kX={name:"ri-heading",render:AX},PX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},NX=F("path",{fill:"currentColor",d:"M8 4h13v2H8zM4.5 6.5a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3m0 7a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3m0 6.9a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3M8 11h13v2H8zm0 7h13v2H8z"},null,-1),IX=[NX];function LX(n,e){return A(),q("svg",PX,[...IX])}const RX={name:"ri-list-unordered",render:LX},$X={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},DX=F("path",{fill:"currentColor",d:"M8 4h13v2H8zM5 3v3h1v1H3V6h1V4H3V3zM3 14v-2.5h2V11H3v-1h3v2.5H4v.5h2v1zm2 5.5H3v-1h2V18H3v-1h3v4H3v-1h2zM8 11h13v2H8zm0 7h13v2H8z"},null,-1),VX=[DX];function BX(n,e){return A(),q("svg",$X,[...VX])}const FX={name:"ri-list-ordered",render:BX},zX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},jX=F("path",{fill:"currentColor",d:"M21 3a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455L2 22.5V4a1 1 0 0 1 1-1zm-1 2H4v13.385L5.763 17H20zm-9.485 2.412l.447.688c-1.668.903-1.639 2.352-1.639 2.665c.155-.022.318-.025.48-.01a1.76 1.76 0 0 1 1.613 1.745a1.75 1.75 0 0 1-1.75 1.75c-.537 0-1.05-.245-1.374-.59c-.515-.546-.792-1.16-.792-2.155c0-1.75 1.228-3.318 3.015-4.093m5 0l.447.688c-1.668.903-1.639 2.352-1.639 2.665c.155-.022.318-.025.48-.01a1.76 1.76 0 0 1 1.613 1.745a1.75 1.75 0 0 1-1.75 1.75c-.537 0-1.05-.245-1.374-.59c-.515-.546-.792-1.16-.792-2.155c0-1.75 1.228-3.318 3.015-4.093"},null,-1),HX=[jX];function UX(n,e){return A(),q("svg",zX,[...HX])}const WX={name:"ri-chat-quote-line",render:UX},GX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},qX=F("path",{fill:"currentColor","fill-rule":"evenodd",d:"M4 11h16v2H4z"},null,-1),KX=[qX];function YX(n,e){return A(),q("svg",GX,[...KX])}const JX={name:"ic-baseline-horizontal-rule",render:YX},XX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ZX=F("path",{fill:"currentColor",d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88c3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"},null,-1),QX=[ZX];function eZ(n,e){return A(),q("svg",XX,[...QX])}const tZ={name:"ic-baseline-undo",render:eZ},nZ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},rZ=F("path",{fill:"currentColor",d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 0 1 7.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7z"},null,-1),oZ=[rZ];function sZ(n,e){return A(),q("svg",nZ,[...oZ])}const iZ={name:"ic-baseline-redo",render:sZ};function Un(n){this.content=n}Un.prototype={constructor:Un,find:function(n){for(var e=0;e>1}};Un.from=function(n){if(n instanceof Un)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new Un(e)};function zM(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=zM(o.content,s.content,t+1);if(i!=null)return i}t+=o.nodeSize}}function jM(n,e,t,r){for(let o=n.childCount,s=e.childCount;;){if(o==0||s==0)return o==s?null:{a:t,b:r};let i=n.child(--o),l=e.child(--s),a=i.nodeSize;if(i==l){t-=a,r-=a;continue}if(!i.sameMarkup(l))return{a:t,b:r};if(i.isText&&i.text!=l.text){let c=0,u=Math.min(i.text.length,l.text.length);for(;ce&&r(a,o+l,s||null,i)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),r,o+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,o){let s="",i=!0;return this.nodesBetween(e,t,(l,a)=>{let c=l.isText?l.text.slice(Math.max(e,a)-a,t-a):l.isLeaf?o?typeof o=="function"?o(l):o:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(i?i=!1:s+=r),s+=c},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,o=this.content.slice(),s=0;for(t.isText&&t.sameMarkup(r)&&(o[o.length-1]=t.withText(t.text+r.text),s=1);se)for(let s=0,i=0;ie&&((it)&&(l.isText?l=l.cut(Math.max(0,e-i),Math.min(l.text.length,t-i)):l=l.cut(Math.max(0,e-i-1),Math.min(l.content.size,t-i-1))),r.push(l),o+=l.nodeSize),i=a}return new Ne(r,o)}cutByIndex(e,t){return e==t?Ne.empty:e==0&&t==this.content.length?this:new Ne(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let o=this.content.slice(),s=this.size+t.nodeSize-r.nodeSize;return o[e]=t,new Ne(o,s)}addToStart(e){return new Ne([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Ne(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;tthis.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,o=0;;r++){let s=this.child(r),i=o+s.nodeSize;if(i>=e)return i==e||t>0?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 Ne.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new Ne(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Ne.empty;let t,r=0;for(let o=0;othis.type.rank&&(t||(t=e.slice(0,o)),t.push(this),r=!0),t&&t.push(s)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;tr.type.rank-o.type.rank),t}};Ft.none=[];class Wh extends Error{}class Ge{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=UM(this.content,e+this.openStart,t);return r&&new Ge(r,this.openStart,this.openEnd)}removeBetween(e,t){return new Ge(HM(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return Ge.empty;let r=t.openStart||0,o=t.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Ge(Ne.fromJSON(e,t.content),r,o)}static maxOpen(e,t=!0){let r=0,o=0;for(let s=e.firstChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.lastChild)o++;return new Ge(e,r,o)}}Ge.empty=new Ge(Ne.empty,0,0);function HM(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(HM(s.content,e-o-1,t-o-1)))}function UM(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=UM(i.content,e-s-1,t);return l&&n.replaceChild(o,i.copy(l))}function lZ(n,e,t){if(t.openStart>n.depth)throw new Wh("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new Wh("Inconsistent open depths");return WM(n,e,t,0)}function WM(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&&(Kl(n.nodeAfter,r),s++));for(let l=s;lo&&Uv(n,e,o+1),i=r.depth>o&&Uv(t,r,o+1),l=[];return Bu(null,n,o,l),s&&i&&e.index(o)==t.index(o)?(GM(s,i),Kl(Yl(s,qM(n,e,t,r,o+1)),l)):(s&&Kl(Yl(s,Gh(n,e,o+1)),l),Bu(e,t,o,l),i&&Kl(Yl(i,Gh(t,r,o+1)),l)),Bu(r,null,o,l),new Ne(l)}function Gh(n,e,t){let r=[];if(Bu(null,n,t,r),n.depth>t){let o=Uv(n,e,t+1);Kl(Yl(o,Gh(n,e,t+1)),r)}return Bu(e,null,t,r),new Ne(r)}function aZ(n,e){let t=e.depth-n.openStart,o=e.node(t).copy(n.content);for(let s=t-1;s>=0;s--)o=e.node(s).copy(Ne.from(o));return{start:o.resolveNoCache(n.openStart+t),end:o.resolveNoCache(o.content.size-n.openEnd-t)}}class 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 qh(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=Tx.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()+")"),KM(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=Ne.empty,o=0,s=r.childCount){let i=this.contentMatchAt(e).matchFragment(r,o,s),l=i&&i.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=o;at.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let o=Ne.fromJSON(e,t.content),s=e.nodeType(t.type).create(t.attrs,o,r);return s.type.checkAttrs(s.attrs),s}};Jl.prototype.text=void 0;class Kh extends Jl{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):KM(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 Kh(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Kh(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 KM(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class la{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new fZ(e,t);if(r.next==null)return la.empty;let o=YM(r);r.next&&r.err("Unexpected trailing text");let s=yZ(bZ(o));return wZ(s,r),s}matchType(e){for(let t=0;tc.createAndFill()));for(let c=0;c=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let o=0;o{let s=o+(r.validEnd?"*":" ")+" ";for(let i=0;i"+e.indexOf(r.next[i].next);return s}).join(` +`)}}la.empty=new la(!0);class fZ{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function YM(n){let e=[];do e.push(hZ(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function hZ(n){let e=[];do e.push(pZ(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function pZ(n){let e=vZ(n);for(;;)if(n.eat("+"))e={type:"plus",expr:e};else if(n.eat("*"))e={type:"star",expr:e};else if(n.eat("?"))e={type:"opt",expr:e};else if(n.eat("{"))e=gZ(n,e);else break;return e}function Ox(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function gZ(n,e){let t=Ox(n),r=t;return n.eat(",")&&(n.next!="}"?r=Ox(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function mZ(n,e){let t=n.nodeTypes,r=t[e];if(r)return[r];let o=[];for(let s in t){let i=t[s];i.groups.indexOf(e)>-1&&o.push(i)}return o.length==0&&n.err("No node type or group '"+e+"' found"),o}function vZ(n){if(n.eat("(")){let e=YM(n);return n.eat(")")||n.err("Missing closing paren"),e}else if(/\W/.test(n.next))n.err("Unexpected token '"+n.next+"'");else{let e=mZ(n,n.next).map(t=>(n.inline==null?n.inline=t.isInline:n.inline!=t.isInline&&n.err("Mixing inline and block content"),{type:"name",value:t}));return n.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function bZ(n){let e=[[]];return o(s(n,0),t()),e;function t(){return e.push([])-1}function r(i,l,a){let c={term:a,to:l};return e[i].push(c),c}function o(i,l){i.forEach(a=>a.to=l)}function s(i,l){if(i.type=="choice")return i.exprs.reduce((a,c)=>a.concat(s(c,l)),[]);if(i.type=="seq")for(let a=0;;a++){let c=s(i.exprs[a],l);if(a==i.exprs.length-1)return c;o(c,l=t())}else if(i.type=="star"){let a=t();return r(l,a),o(s(i.expr,a),a),[r(a)]}else if(i.type=="plus"){let a=t();return o(s(i.expr,l),a),o(s(i.expr,a),a),[r(a)]}else{if(i.type=="opt")return[r(l)].concat(s(i.expr,l));if(i.type=="range"){let a=l;for(let c=0;c{n[i].forEach(({term:l,to:a})=>{if(!l)return;let c;for(let u=0;u{c||o.push([l,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let s=e[r.join(",")]=new la(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 tA(s,t,i));let o=t.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let s in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function CZ(n,e,t){let r=t.split("|");return o=>{let s=o===null?"null":typeof o;if(r.indexOf(s)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${n}, got ${s}`)}}class xZ{constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?CZ(e,t,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class hg{constructor(e,t,r,o){this.name=e,this.rank=t,this.schema=r,this.spec=o,this.attrs=eA(e,o.attrs),this.excluded=null;let s=XM(this.attrs);this.instance=s?new Ft(this,s):null}create(e=null){return!e&&this.instance?this.instance:new Ft(this,ZM(this.attrs,e))}static compile(e,t){let r=Object.create(null),o=0;return e.forEach((s,i)=>r[s]=new hg(s,o++,t,i)),r}removeFromSet(e){for(var t=0;t-1}}class nA{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=Un.from(e.nodes),t.marks=Un.from(e.marks||{}),this.nodes=Ax.compile(this.spec.nodes,this),this.marks=hg.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]=la.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?kx(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==""?[]:kx(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 Ax){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 Kh(r,r.defaultAttrs,e,Ft.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return Jl.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 kx(n,e){let t=[];for(let r=0;r-1)&&t.push(i=a)}if(!i)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return t}function SZ(n){return n.tag!=null}function EZ(n){return n.style!=null}let Ky=class Gv{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];t.forEach(o=>{if(SZ(o))this.tags.push(o);else if(EZ(o)){let s=/[^=]*/.exec(o.style)[0];r.indexOf(s)<0&&r.push(s),this.styles.push(o)}}),this.normalizeLists=!this.tags.some(o=>{if(!/^(ul|ol)\b/.test(o.tag)||!o.node)return!1;let s=e.nodes[o.node];return s.contentMatch.matchType(s)})}parse(e,t={}){let r=new Nx(this,t,!1);return r.addAll(e,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new Nx(this,t,!0);return r.addAll(e,t.from,t.to),Ge.maxOpen(r.finish())}matchTag(e,t,r){for(let o=r?this.tags.indexOf(r)+1:0;oe.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=t))){if(i.getAttrs){let a=i.getAttrs(t);if(a===!1)continue;i.attrs=a||void 0}return i}}}static schemaRules(e){let t=[];function r(o){let s=o.priority==null?50:o.priority,i=0;for(;i{r(i=Ix(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=Ix(i)),i.node||i.ignore||i.mark||(i.node=o)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Gv(e,Gv.schemaRules(e)))}};const rA={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},_Z={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},oA={ol:!0,ul:!0},Yh=1,Jh=2,Fu=4;function Px(n,e,t){return e!=null?(e?Yh:0)|(e==="full"?Jh:0):n&&n.whitespace=="pre"?Yh|Jh:t&~Fu}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&Fu?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(Ne.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let r=this.type.contentMatch,o;return(o=r.findWrapping(e.type))?(this.match=r,o):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Yh)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let s=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-o[0].length))}}let t=Ne.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(Ne.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,r=this.pendingMarks;tthis.addAll(e)),i&&this.sync(l),this.needsBlock=a}else this.withStyleRules(e,()=>{this.addElementByRule(e,s,s.consuming===!1?o:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(` +`))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let t=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=AZ(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,t){for(let r=this.open;r>=0;r--){let o=this.nodes[r];if(o.pendingMarks.lastIndexOf(e)>-1)o.pendingMarks=e.removeFromSet(o.pendingMarks);else{o.activeMarks=e.removeFromSet(o.activeMarks);let i=o.popFromStashMark(e);i&&o.type&&o.type.allowsMarkType(i.type)&&(o.activeMarks=i.addToSet(o.activeMarks))}if(o==t)break}}}function TZ(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&oA.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function OZ(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function Ix(n){let e={};for(let t in n)e[t]=n[t];return e}function MZ(n,e){let t=e.schema.nodes;for(let r in t){let o=t[r];if(!o.allowsMarkType(n))continue;let s=[],i=l=>{s.push(l);for(let a=0;a{if(s.length||i.marks.length){let l=0,a=0;for(;l=0;o--){let s=this.serializeMark(e.marks[o],e.isInline,t);s&&((s.contentDOM||s.dom).appendChild(r),r=s.dom)}return r}serializeMark(e,t,r={}){let o=this.marks[e.type.name];return o&&vh(fm(r),o(e,t),null,e.attrs)}static renderSpec(e,t,r=null,o){return vh(e,t,r,o)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Ca(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Lx(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return Lx(e.marks)}}function Lx(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function fm(n){return n.document||window.document}const Rx=new WeakMap;function kZ(n){let e=Rx.get(n);return e===void 0&&Rx.set(n,e=PZ(n)),e}function PZ(n){let e=null;function t(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let o=0;o-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let i=o.indexOf(" ");i>0&&(t=o.slice(0,i),o=o.slice(i+1));let l,a=t?n.createElementNS(t,o):n.createElement(o),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let f=d.indexOf(" ");f>0?a.setAttributeNS(d.slice(0,f),d.slice(f+1),c[d]):a.setAttribute(d,c[d])}}for(let d=u;du)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{let{dom:h,contentDOM:p}=vh(n,f,t,r);if(a.appendChild(h),p){if(l)throw new RangeError("Multiple content holes");l=p}}}return{dom:a,contentDOM:l}}const sA=65535,iA=Math.pow(2,16);function NZ(n,e){return n+e*iA}function $x(n){return n&sA}function IZ(n){return(n-(n&sA))/iA}const lA=1,aA=2,bh=4,cA=8;class qv{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&cA)>0}get deletedBefore(){return(this.delInfo&(lA|bh))>0}get deletedAfter(){return(this.delInfo&(aA|bh))>0}get deletedAcross(){return(this.delInfo&bh)>0}}class Vr{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&Vr.empty)return Vr.empty}recover(e){let t=0,r=$x(e);if(!this.inverted)for(let o=0;oe)break;let c=this.ranges[l+s],u=this.ranges[l+i],d=a+c;if(e<=d){let f=c?e==a?-1:e==d?1:t:t,h=a+o+(f<0?0:u);if(r)return h;let p=e==(t<0?a:d)?null:NZ(l/3,e-a),g=e==a?aA:e==d?lA:bh;return(t<0?e!=a:e!=d)&&(g|=cA),new qv(h,g,p)}o+=u-c}return r?e+o:new qv(e+o,0,null)}touches(e,t){let r=0,o=$x(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 Wa;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;rs&&a!i.isAtom||!l.type.allowsMarkType(this.mark.type)?i:i.mark(this.mark.addToSet(i.marks)),o),t.openStart,t.openEnd);return Sn.fromReplace(e,this.from,this.to,s)}invert(){return new rs(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 Ri(t.pos,r.pos,this.mark)}merge(e){return e instanceof Ri&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Ri(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 Ri(t.from,t.to,e.markFromJSON(t.mark))}}ur.jsonID("addMark",Ri);class rs extends ur{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new Ge(Yy(t.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),t.openStart,t.openEnd);return Sn.fromReplace(e,this.from,this.to,r)}invert(){return new Ri(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 rs(t.pos,r.pos,this.mark)}merge(e){return e instanceof rs&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new rs(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 rs(t.from,t.to,e.markFromJSON(t.mark))}}ur.jsonID("removeMark",rs);class $i extends ur{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Sn.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Sn.fromReplace(e,this.pos,this.pos+1,new Ge(Ne.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let r=this.mark.addToSet(t.marks);if(r.length==t.marks.length){for(let o=0;or.pos?null:new Vn(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 Vn(t.from,t.to,t.gapFrom,t.gapTo,Ge.fromJSON(e,t.slice),t.insert,!!t.structure)}}ur.jsonID("replaceAround",Vn);function Kv(n,e,t){let r=n.resolve(e),o=t-e,s=r.depth;for(;o>0&&s>0&&r.indexAfter(s)==r.node(s).childCount;)s--,o--;if(o>0){let i=r.node(s).maybeChild(r.indexAfter(s));for(;o>0;){if(!i||i.isLeaf)return!0;i=i.firstChild,o--}}return!1}function LZ(n,e,t,r){let o=[],s=[],i,l;n.doc.nodesBetween(e,t,(a,c,u)=>{if(!a.isInline)return;let d=a.marks;if(!r.isInSet(d)&&u.type.allowsMarkType(r.type)){let f=Math.max(c,e),h=Math.min(c+a.nodeSize,t),p=r.addToSet(d);for(let g=0;gn.step(a)),s.forEach(a=>n.step(a))}function RZ(n,e,t,r){let o=[],s=0;n.doc.nodesBetween(e,t,(i,l)=>{if(!i.isInline)return;s++;let a=null;if(r instanceof hg){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 rs(i.from,i.to,i.style)))}function uA(n,e,t,r=t.contentMatch,o=!0){let s=n.doc.nodeAt(e),i=[],l=e+1;for(let a=0;a=0;a--)n.step(i[a])}function $Z(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function 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=Ne.from(r.node(p).copy(u)),d++):a--;let f=Ne.empty,h=0;for(let p=s,g=!1;p>t;p--)g||o.after(p+1)=0;i--){if(r.size){let l=t[i].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=Ne.from(t[i].type.create(t[i].attrs,r))}let o=e.start,s=e.end;n.step(new Vn(o,s,o,s,new Ge(r,0,0),t.length,!0))}function zZ(n,e,t,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=n.steps.length;n.doc.nodesBetween(e,t,(i,l)=>{if(i.isTextblock&&!i.hasMarkup(r,o)&&UZ(n.doc,n.mapping.slice(s).map(l),r)){let a=null;if(r.schema.linebreakReplacement){let f=r.whitespace=="pre",h=!!r.contentMatch.matchType(r.schema.linebreakReplacement);f&&!h?a=!1:!f&&h&&(a=!0)}a===!1&&HZ(n,i,l,s),uA(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 Vn(u,d,u+1,d-1,new Ge(Ne.from(r.create(o,null,i.marks)),0,0),1,!0)),a===!0&&jZ(n,i,l,s),!1}})}function jZ(n,e,t,r){e.forEach((o,s)=>{if(o.isText){let i,l=/\r?\n|\r/g;for(;i=l.exec(o.text);){let a=n.mapping.slice(r).map(t+1+s+i.index);n.replaceWith(a,a+1,e.type.schema.linebreakReplacement.create())}}})}function HZ(n,e,t,r){e.forEach((o,s)=>{if(o.type==o.type.schema.linebreakReplacement){let i=n.mapping.slice(r).map(t+1+s);n.replaceWith(i,i+1,e.type.schema.text(` +`))}})}function UZ(n,e,t){let r=n.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,t)}function WZ(n,e,t,r,o){let s=n.doc.nodeAt(e);if(!s)throw new RangeError("No node at given position");t||(t=s.type);let i=t.create(r,null,o||s.marks);if(s.isLeaf)return n.replaceWith(e,e+s.nodeSize,i);if(!t.validContent(s.content))throw new RangeError("Invalid content for node type "+t.name);n.step(new Vn(e,e+s.nodeSize,e+1,e+s.nodeSize-1,new Ge(Ne.from(i),0,0),1,!0))}function Ga(n,e,t=1,r){let o=n.resolve(e),s=o.depth-t,i=r&&r[r.length-1]||o.parent;if(s<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!i.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let c=o.depth-1,u=t-2;c>s;c--,u--){let d=o.node(c),f=o.index(c);if(d.type.spec.isolating)return!1;let h=d.content.cutByIndex(f,d.childCount),p=r&&r[u+1];p&&(h=h.replaceChild(0,p.type.create(p.attrs)));let g=r&&r[u]||d;if(!d.canReplace(f+1,d.childCount)||!g.type.validContent(h))return!1}let l=o.indexAfter(s),a=r&&r[0];return o.node(s).canReplaceWith(l,l,a?a.type:o.node(s+1).type)}function GZ(n,e,t=1,r){let o=n.doc.resolve(e),s=Ne.empty,i=Ne.empty;for(let l=o.depth,a=o.depth-t,c=t-1;l>a;l--,c--){s=Ne.from(o.node(l).copy(s));let u=r&&r[c];i=Ne.from(u?u.type.create(u.attrs,i):o.node(l).copy(i))}n.step(new In(e,e,new Ge(s.append(i),t,t),!0))}function pl(n,e){let t=n.resolve(e),r=t.index();return dA(t.nodeBefore,t.nodeAfter)&&t.parent.canReplace(r,r+1)}function dA(n,e){return!!(n&&e&&!n.isLeaf&&n.canAppend(e))}function pg(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&&dA(s,i)&&r.node(o).canReplace(l,l+1))return e;if(o==0)break;e=t<0?r.before(o):r.after(o)}}function qZ(n,e,t){let r=new In(e-t,e+t,Ge.empty,!0);n.step(r)}function KZ(n,e,t){let r=n.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),t))return e;if(r.parentOffset==0)for(let o=r.depth-1;o>=0;o--){let s=r.index(o);if(r.node(o).canReplaceWith(s,s,t))return r.before(o+1);if(s>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let s=r.indexAfter(o);if(r.node(o).canReplaceWith(s,s,t))return r.after(o+1);if(s=0;i--){let l=i==r.depth?0:r.pos<=(r.start(i+1)+r.end(i+1))/2?-1:1,a=r.index(i)+(l>0?1:0),c=r.node(i),u=!1;if(s==1)u=c.canReplace(a,a,o);else{let d=c.contentMatchAt(a).findWrapping(o.firstChild.type);u=d&&c.canReplaceWith(a,a,d[0])}if(u)return l==0?r.pos:l<0?r.before(i+1):r.after(i+1)}return null}function gg(n,e,t=e,r=Ge.empty){if(e==t&&!r.size)return null;let o=n.resolve(e),s=n.resolve(t);return hA(o,s,r)?new In(e,t,r):new YZ(o,s,r).fit()}function hA(n,e,t){return!t.openStart&&!t.openEnd&&n.start()==e.start()&&n.parent.canReplace(n.index(),e.index(),t.content)}class YZ{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=Ne.empty;for(let o=0;o<=e.depth;o++){let s=e.node(o);this.frontier.push({type:s.type,match:s.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=Ne.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(e<0?this.$to:r.doc.resolve(e));if(!o)return null;let s=this.placed,i=r.depth,l=o.depth;for(;i&&l&&s.childCount==1;)s=s.firstChild.content,i--,l--;let a=new Ge(s,i,l);return e>-1?new Vn(r.pos,e,this.$to.pos,this.$to.end(),a,t):a.size||r.pos!=this.$to.pos?new In(r.pos,o.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,o=this.unplaced.openEnd;r1&&(o=0),s.type.spec.isolating&&o<=r){e=r;break}t=s.content}for(let t=1;t<=2;t++)for(let r=t==1?e:this.unplaced.openStart;r>=0;r--){let o,s=null;r?(s=pm(this.unplaced.content,r-1).firstChild,o=s.content):o=this.unplaced.content;let i=o.firstChild;for(let l=this.depth;l>=0;l--){let{type:a,match:c}=this.frontier[l],u,d=null;if(t==1&&(i?c.matchType(i.type)||(d=c.fillBefore(Ne.from(i),!1)):s&&a.compatibleContent(s.type)))return{sliceDepth:r,frontierDepth:l,parent:s,inject:d};if(t==2&&i&&(u=c.findWrapping(i.type)))return{sliceDepth:r,frontierDepth:l,parent:s,wrap:u};if(s&&c.matchType(s.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,o=pm(e,t);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new Ge(e,t+1,Math.max(r,o.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,o=pm(e,t);if(o.childCount<=1&&t>0){let s=e.size-t<=t+o.size;this.unplaced=new Ge(hu(e,t-1,1),t-1,s?t-1:r)}else this.unplaced=new Ge(hu(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=v,u.push(pA(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=pu(this.placed,t,Ne.from(u)),this.frontier[t].match=d,p&&h<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,v=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=gm(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=pu(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=pu(this.placed,this.depth,Ne.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(Ne.empty,!0);t.childCount&&(this.placed=pu(this.placed,this.frontier.length,t))}}function hu(n,e,t){return e==0?n.cutByIndex(t,n.childCount):n.replaceChild(0,n.firstChild.copy(hu(n.firstChild.content,e-1,t)))}function pu(n,e,t){return e==0?n.append(t):n.replaceChild(n.childCount-1,n.lastChild.copy(pu(n.lastChild.content,e-1,t)))}function pm(n,e){for(let t=0;t1&&(r=r.replaceChild(0,pA(r.firstChild,e-1,r.childCount==1?t-1:0))),e>0&&(r=n.type.contentMatch.fillBefore(r).append(r),t<=0&&(r=r.append(n.type.contentMatch.matchFragment(r).fillBefore(Ne.empty,!0)))),n.copy(r)}function gm(n,e,t,r,o){let s=n.node(e),i=o?n.indexAfter(e):n.index(e);if(i==s.childCount&&!t.compatibleContent(s.type))return null;let l=r.fillBefore(s.content,!0,i);return l&&!JZ(t,s.content,i)?l:null}function JZ(n,e,t){for(let r=t;r0;f--,h--){let p=o.node(f).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;i.indexOf(f)>-1?l=f:o.before(f)==h&&i.splice(1,0,-f)}let a=i.indexOf(l),c=[],u=r.openStart;for(let f=r.content,h=0;;h++){let p=f.firstChild;if(c.push(p),h==r.openStart)break;f=p.content}for(let f=u-1;f>=0;f--){let h=c[f],p=XZ(h.type);if(p&&!h.sameMarkup(o.node(Math.abs(l)-1)))u=f;else if(p||!h.type.isTextblock)break}for(let f=r.openStart;f>=0;f--){let h=(f+u+1)%(r.openStart+1),p=c[h];if(p)for(let g=0;g=0&&(n.replace(e,t,r),!(n.steps.length>d));f--){let h=i[f];h<0||(e=o.before(h),t=s.after(h))}}function gA(n,e,t,r,o){if(er){let s=o.contentMatchAt(0),i=s.fillBefore(n).append(n);n=i.append(s.matchFragment(i).fillBefore(Ne.empty,!0))}return n}function QZ(n,e,t,r){if(!r.isInline&&e==t&&n.doc.resolve(e).parent.content.size){let o=KZ(n.doc,e,r.type);o!=null&&(e=t=o)}n.replaceRange(e,t,new Ge(Ne.from(r),0,0))}function eQ(n,e,t){let r=n.doc.resolve(e),o=n.doc.resolve(t),s=mA(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 mA(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 qa extends ur{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return Sn.fail("No node at attribute step's position");let r=Object.create(null);for(let s in t.attrs)r[s]=t.attrs[s];r[this.attr]=this.value;let o=t.type.create(r,null,t.marks);return Sn.fromReplace(e,this.pos,this.pos+1,new Ge(Ne.from(o),0,t.isLeaf?0:1))}getMap(){return Vr.empty}invert(e){return new qa(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 qa(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 qa(t.pos,t.attr,t.value)}}ur.jsonID("attr",qa);class vd extends ur{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let o in e.attrs)t[o]=e.attrs[o];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return Sn.ok(r)}getMap(){return Vr.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)}}ur.jsonID("docAttr",vd);let wc=class extends Error{};wc=function n(e){let t=Error.call(this,e);return t.__proto__=n.prototype,t};wc.prototype=Object.create(Error.prototype);wc.prototype.constructor=wc;wc.prototype.name="TransformError";class tQ{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Wa}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new wc(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=Ge.empty){let o=gg(this.doc,e,t,r);return o&&this.step(o),this}replaceWith(e,t,r){return this.replace(e,t,new Ge(Ne.from(r),0,0))}delete(e,t){return this.replace(e,t,Ge.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return ZZ(this,e,t,r),this}replaceRangeWith(e,t,r){return QZ(this,e,t,r),this}deleteRange(e,t){return eQ(this,e,t),this}lift(e,t){return DZ(this,e,t),this}join(e,t=1){return qZ(this,e,t),this}wrap(e,t){return FZ(this,e,t),this}setBlockType(e,t=e,r,o=null){return zZ(this,e,t,r,o),this}setNodeMarkup(e,t,r=null,o){return WZ(this,e,t,r,o),this}setNodeAttribute(e,t,r){return this.step(new qa(e,t,r)),this}setDocAttribute(e,t){return this.step(new vd(e,t)),this}addNodeMark(e,t){return this.step(new $i(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 yc(e,t)),this}split(e,t=1,r){return GZ(this,e,t,r),this}addMark(e,t,r){return LZ(this,e,t,r),this}removeMark(e,t,r){return RZ(this,e,t,r),this}clearIncompatible(e,t,r){return uA(this,e,t,r),this}}const mm=Object.create(null);class _t{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new nQ(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t=0;s--){let i=t<0?Ia(e.node(0),e.node(s),e.before(s+1),e.index(s),t,r):Ia(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 Lo(e.node(0))}static atStart(e){return Ia(e,e,0,0,1)||new Lo(e)}static atEnd(e){return Ia(e,e,e.content.size,e.childCount,-1)||new Lo(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=mm[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 mm)throw new RangeError("Duplicate use of selection JSON ID "+e);return mm[e]=t,t.prototype.jsonID=e,t}getBookmark(){return Ct.between(this.$anchor,this.$head).getBookmark()}}_t.prototype.visible=!0;class nQ{constructor(e,t){this.$from=e,this.$to=t}}let Vx=!1;function Bx(n){!Vx&&!n.parent.inlineContent&&(Vx=!0)}class Ct extends _t{constructor(e,t=e){Bx(e),Bx(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return _t.near(r);let o=e.resolve(t.map(this.anchor));return new Ct(o.parent.inlineContent?o:r,r)}replace(e,t=Ge.empty){if(super.replace(e,t),t==Ge.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Ct&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new mg(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if(typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ct(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){let o=e.resolve(t);return new this(o,r==t?o:e.resolve(r))}static between(e,t,r){let o=e.pos-t.pos;if((!r||o)&&(r=o>=0?1:-1),!t.parent.inlineContent){let s=_t.findFrom(t,r,!0)||_t.findFrom(t,-r,!0);if(s)t=s.$head;else return _t.near(t,r)}return e.parent.inlineContent||(o==0?e=t:(e=(_t.findFrom(e,-r,!0)||_t.findFrom(e,r,!0)).$anchor,e.pos0?0:1);o>0?i=0;i+=o){let l=e.child(i);if(l.isAtom){if(!s&&ct.isSelectable(l))return ct.create(n,t-(o<0?l.nodeSize:0))}else{let a=Ia(n,l,t+o,o<0?l.childCount:0,o,s);if(a)return a}t+=l.nodeSize*o}return null}function Fx(n,e,t){let r=n.steps.length-1;if(r{i==null&&(i=u)}),n.setSelection(_t.near(n.doc.resolve(i),t))}const zx=1,Hf=2,jx=4;class oQ extends tQ{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(e){return this.storedMarks=e,this.updated|=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(_t.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e=="string"?e:e.key]=t,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=jx,this}get scrolledIntoView(){return(this.updated&jx)>0}}function Hx(n,e){return!e||!n?n:n.bind(e)}class gu{constructor(e,t,r){this.name=e,this.init=Hx(t.init,r),this.apply=Hx(t.apply,r)}}const sQ=[new gu("doc",{init(n){return n.doc||n.schema.topNodeType.createAndFill()},apply(n){return n.doc}}),new gu("selection",{init(n,e){return n.selection||_t.atStart(e.doc)},apply(n){return n.selection}}),new gu("storedMarks",{init(n){return n.storedMarks||null},apply(n,e,t,r){return r.selection.$cursor?n.storedMarks:null}}),new gu("scrollToSelection",{init(){return 0},apply(n,e){return n.scrolledIntoView?e+1:e}})];class vm{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=sQ.slice(),t&&t.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new gu(r.key,r.spec.state,r))})}}class Va{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 vm(e.schema,e.plugins),s=new Va(o);return o.fields.forEach(i=>{if(i.name=="doc")s.doc=Jl.fromJSON(e.schema,t.doc);else if(i.name=="selection")s.selection=_t.fromJSON(s.doc,t.selection);else if(i.name=="storedMarks")t.storedMarks&&(s.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let l in r){let a=r[l],c=a.spec.state;if(a.key==i.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(t,l)){s[i.name]=c.fromJSON.call(a,e,t[l],s);return}}s[i.name]=i.init(e,s)}}),s}}function vA(n,e,t){for(let r in n){let o=n[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=vA(o,e,{})),t[r]=o}return t}class Gr{constructor(e){this.spec=e,this.props={},e.props&&vA(e.props,this,this.props),this.key=e.key?e.key.key:bA("plugin")}getState(e){return e[this.key]}}const bm=Object.create(null);function bA(n){return n in bm?n+"$"+ ++bm[n]:(bm[n]=0,n+"$")}class oi{constructor(e="key"){this.key=bA(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Gn=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 Yv=null;const $s=function(n,e,t){let r=Yv||(Yv=document.createRange());return r.setEnd(n,t??n.nodeValue.length),r.setStart(n,e||0),r},iQ=function(){Yv=null},aa=function(n,e,t,r){return t&&(Ux(n,e,t,r,-1)||Ux(n,e,t,r,1))},lQ=/^(img|br|input|textarea|hr)$/i;function Ux(n,e,t,r,o){for(;;){if(n==t&&e==r)return!0;if(e==(o<0?0:ts(n))){let s=n.parentNode;if(!s||s.nodeType!=1||rf(n)||lQ.test(n.nodeName)||n.contentEditable=="false")return!1;e=Gn(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?ts(n):0}else return!1}}function ts(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function aQ(n,e){for(;;){if(n.nodeType==3&&e)return n;if(n.nodeType==1&&e>0){if(n.contentEditable=="false")return null;n=n.childNodes[e-1],e=ts(n)}else if(n.parentNode&&!rf(n))e=Gn(n),n=n.parentNode;else return null}}function cQ(n,e){for(;;){if(n.nodeType==3&&e2),Zr=Cc||(ps?/Mac/.test(ps.platform):!1),pQ=ps?/Win/.test(ps.platform):!1,Eo=/Android \d/.test(gl),of=!!Wx&&"webkitFontSmoothing"in Wx.documentElement.style,gQ=of?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function mQ(n){let e=n.defaultView&&n.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:n.documentElement.clientWidth,top:0,bottom:n.documentElement.clientHeight}}function Ps(n,e){return typeof n=="number"?n:n[e]}function vQ(n){let e=n.getBoundingClientRect(),t=e.width/n.offsetWidth||1,r=e.height/n.offsetHeight||1;return{left:e.left,right:e.left+n.clientWidth*t,top:e.top,bottom:e.top+n.clientHeight*r}}function Gx(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?mQ(s):vQ(l),u=0,d=0;if(e.topc.bottom-Ps(r,"bottom")&&(d=e.bottom-e.top>c.bottom-c.top?e.top+Ps(o,"top")-c.top:e.bottom-c.bottom+Ps(o,"bottom")),e.leftc.right-Ps(r,"right")&&(u=e.right-c.right+Ps(o,"right")),u||d)if(a)s.defaultView.scrollBy(u,d);else{let f=l.scrollLeft,h=l.scrollTop;d&&(l.scrollTop+=d),u&&(l.scrollLeft+=u);let p=l.scrollLeft-f,g=l.scrollTop-h;e={left:e.left-p,top:e.top-g,right:e.right-p,bottom:e.bottom-g}}if(a||/^(fixed|sticky)$/.test(getComputedStyle(i).position))break}}function bQ(n){let e=n.dom.getBoundingClientRect(),t=Math.max(0,e.top),r,o;for(let s=(e.left+e.right)/2,i=t+1;i=t-20){r=l,o=a.top;break}}return{refDOM:r,refTop:o,stack:wA(n.dom)}}function wA(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 yQ({refDOM:n,refTop:e,stack:t}){let r=n?n.getBoundingClientRect().top:0;CA(t,r==0?0:r-e)}function CA(n,e){for(let t=0;t=l){i=Math.max(p.bottom,i),l=Math.min(p.top,l);let g=p.left>e.left?p.left-e.left:p.right=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!a&&p.left<=e.left&&p.right>=e.left&&(a=u,c={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!t&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(s=d+1)}}return!t&&a&&(t=a,o=c,r=0),t&&t.nodeType==3?CQ(t,o):!t||r&&t.nodeType==1?{node:n,offset:s}:xA(t,o)}function CQ(n,e){let t=n.nodeValue.length,r=document.createRange();for(let o=0;o=(s.left+s.right)/2?1:0)}}return{node:n,offset:0}}function Zy(n,e){return n.left>=e.left-1&&n.left<=e.right+1&&n.top>=e.top-1&&n.top<=e.bottom+1}function xQ(n,e){let t=n.parentNode;return t&&/^li$/i.test(t.nodeName)&&e.left(i.left+i.right)/2?1:-1}return n.docView.posFromDOM(r,o,s)}function EQ(n,e,t,r){let o=-1;for(let s=e,i=!1;s!=n.dom;){let l=n.docView.nearestDesc(s,!0);if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent||!l.contentDOM)){let a=l.dom.getBoundingClientRect();if(l.node.isBlock&&l.parent&&(!i&&a.left>r.left||a.top>r.top?o=l.posBefore:(!i&&a.right-1?o:n.docView.posFromDOM(e,t,-1)}function SA(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=EQ(n,r,o,e))}l==null&&(l=SQ(n,i,e));let a=n.docView.nearestDesc(i,!0);return{pos:l,inside:a?a.posAtStart-a.border:-1}}function qx(n){return n.top=0&&o==r.nodeValue.length?(a--,u=1):t<0?a--:c++,cu(wi($s(r,a,c),u),u<0)}if(!n.state.doc.resolve(e-(s||0)).parent.inlineContent){if(s==null&&o&&(t<0||o==ts(r))){let a=r.childNodes[o-1];if(a.nodeType==1)return ym(a.getBoundingClientRect(),!1)}if(s==null&&o=0)}if(s==null&&o&&(t<0||o==ts(r))){let a=r.childNodes[o-1],c=a.nodeType==3?$s(a,ts(a)-(i?0:1)):a.nodeType==1&&(a.nodeName!="BR"||!a.nextSibling)?a:null;if(c)return cu(wi(c,1),!1)}if(s==null&&o=0)}function cu(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 ym(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 _A(n,e,t){let r=n.state,o=n.root.activeElement;r!=e&&n.updateState(e),o!=n.dom&&n.focus();try{return t()}finally{r!=e&&n.updateState(r),o!=n.dom&&o&&o.focus()}}function OQ(n,e,t){let r=e.selection,o=t=="up"?r.$from:r.$to;return _A(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=EA(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=$s(l,0,l.nodeValue.length).getClientRects();else continue;for(let c=0;cu.top+1&&(t=="up"?i.top-u.top>(u.bottom-i.top)*2:u.bottom-i.bottom>(i.bottom-u.top)*2))return!1}}return!0})}const MQ=/[\u0590-\u08ac]/;function AQ(n,e,t){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,s=!o,i=o==r.parent.content.size,l=n.domSelection();return!MQ.test(r.parent.textContent)||!l.modify?t=="left"||t=="backward"?s:i:_A(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(),v=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),v})}let Kx=null,Yx=null,Jx=!1;function kQ(n,e,t){return Kx==e&&Yx==t?Jx:(Kx=e,Yx=t,Jx=t=="up"||t=="down"?OQ(n,e,t):AQ(n,e,t))}const co=0,Xx=1,Fl=2,gs=3;class sf{constructor(e,t,r,o){this.parent=e,this.children=t,this.dom=r,this.contentDOM=o,this.dirty=co,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;tGn(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 OA){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 TA&&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?Gn(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=Gn(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:Xx,e==l&&t==a&&(s.contentLost||s.dom.parentNode!=this.contentDOM)?s.dirty=gs:s.markDirty(e-l,t-l);return}else s.dirty=s.dom==s.contentDOM&&s.dom.parentNode==this.contentDOM&&!s.children.length?Fl:gs}r=i}this.dirty=Fl}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let r=e==1?Fl:Xx;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==co&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return t?t(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class PQ extends 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 ca 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=Ca.renderSpec(document,t.type.spec.toDOM(t,r))),new ca(e,t,i.dom,i.contentDOM||i.dom)}parseRule(){return this.dirty&gs||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=gs&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=co){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(s=tb(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}=Ca.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=kA(u,r,t),c?a=new NQ(e,t,r,o,u,d||null,f,c,s,i+1):t.isText?new bg(e,t,r,o,u,f,s):new Hi(e,t,r,o,u,d||null,f,s,i+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let t=this.children.length-1;t>=0;t--){let r=this.children[t];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>Ne.empty)}return e}matchesNode(e,t,r){return this.dirty==co&&e.eq(this.node)&&eb(t,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let r=this.node.inlineContent,o=t,s=e.composing?this.localCompositionInfo(e,t):null,i=s&&s.pos>-1?s:null,l=s&&s.pos<0,a=new LQ(this,i&&i.node,e);DQ(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?a.syncToMarks(c.spec.marks,r,e):c.type.side>=0&&!d&&a.syncToMarks(u==this.node.childCount?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),MA(this.contentDOM,this.children,e),Cc&&VQ(this.dom))}localCompositionInfo(e,t){let{from:r,to:o}=e.state.selection;if(!(e.state.selection instanceof Ct)||rt+this.node.content.size)return null;let s=e.input.compositionNode;if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let i=s.nodeValue,l=BQ(this.node.content,i,r-t,o-t);return l<0?null:{node:s,pos:l,text:i}}else return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:r,text:o}){if(this.getDesc(t))return;let s=t;for(;s.parentNode!=this.contentDOM;s=s.parentNode){for(;s.previousSibling;)s.parentNode.removeChild(s.previousSibling);for(;s.nextSibling;)s.parentNode.removeChild(s.nextSibling);s.pmViewDesc&&(s.pmViewDesc=void 0)}let i=new PQ(this,s,t,o);e.input.compositionNodes.push(i),this.children=tb(this.children,r,r+o.length,e,i)}update(e,t,r,o){return this.dirty==gs||!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=co}updateOuterDeco(e){if(eb(e,this.outerDeco))return;let t=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=AA(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 Zx(n,e,t,r,o){kA(r,e,n);let s=new Hi(void 0,n,e,t,r,r,r,o,0);return s.contentDOM&&s.updateChildren(o,0),s}class bg extends Hi{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==gs||this.dirty!=co&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=co||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=co,!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 bg(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=gs)}get domAtom(){return!1}isText(e){return this.node.text==e}}class OA extends sf{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==co&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class NQ extends Hi{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==gs)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 MA(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=ca.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 ca)t=c,r=c.children.length;else{l=c,r--;break}}else{if(t==e)break e;r=t.parent.children.indexOf(t),t=t.parent}let a=l.node;if(a){if(a!=n.child(o-1))break;--o,s.set(l,o),i.push(l)}}return{index:o,matched:s,matches:i.reverse()}}function $Q(n,e){return n.type.side-e.type.side}function DQ(n,e,t,r){let o=e.locals(n),s=0;if(o.length==0){for(let c=0;cs;)l.push(o[i++]);let p=s+f.nodeSize;if(f.isText){let v=p;i!v.inline):l.slice();r(f,g,e.forChild(s,f),h),s=p}}function VQ(n){if(n.nodeName=="UL"||n.nodeName=="OL"){let e=n.style.cssText;n.style.cssText=e+"; list-style: square !important",window.getComputedStyle(n).listStyle,n.style.cssText=e}}function BQ(n,e,t,r){for(let o=0,s=0;o=t){if(s>=r&&a.slice(r-e.length-l,r-l)==e)return r-e.length;let c=l=0&&c+e.length+l>=t)return l+c;if(t==r&&a.length>=r+e.length-l&&a.slice(r-l,r-l+e.length)==e)return r}}return-1}function tb(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 Qy(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(vg(t)){for(a=l;o&&!o.node;)o=o.parent;let u=o.node;if(o&&u.isAtom&&ct.isSelectable(u)&&o.parent&&!(u.isInline&&uQ(t.focusNode,t.focusOffset,o.dom))){let d=o.posBefore;c=new ct(i==d?l:r.resolve(d))}}else{let u=n.docView.posFromDOM(t.anchorNode,t.anchorOffset,1);if(u<0)return null;a=r.resolve(u)}if(!c){let u=e=="pointer"||n.state.selection.head{(t.anchorNode!=r||t.anchorOffset!=o)&&(e.removeEventListener("selectionchange",n.input.hideSelectionGuard),setTimeout(()=>{(!PA(n)||n.state.selection.visible)&&n.dom.classList.remove("ProseMirror-hideselection")},20))})}function zQ(n){let e=n.domSelection(),t=document.createRange(),r=n.cursorWrapper.dom,o=r.nodeName=="IMG";o?t.setEnd(r.parentNode,Gn(r)+1):t.setEnd(r,0),t.collapse(!1),e.removeAllRanges(),e.addRange(t),!o&&!n.state.selection.visible&&kr&&ji<=11&&(r.disabled=!0,r.disabled=!1)}function NA(n,e){if(e instanceof ct){let t=n.docView.descAt(e.from);t!=n.lastSelectedViewDesc&&(rS(n),t&&t.selectNode(),n.lastSelectedViewDesc=t)}else rS(n)}function rS(n){n.lastSelectedViewDesc&&(n.lastSelectedViewDesc.parent&&n.lastSelectedViewDesc.deselectNode(),n.lastSelectedViewDesc=void 0)}function e0(n,e,t,r){return n.someProp("createSelectionBetween",o=>o(n,e,t))||Ct.between(e,t,r)}function oS(n){return n.editable&&!n.hasFocus()?!1:IA(n)}function IA(n){let e=n.domSelectionRange();if(!e.anchorNode)return!1;try{return n.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(n.editable||n.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function jQ(n){let e=n.docView.domFromPos(n.state.selection.anchor,0),t=n.domSelectionRange();return aa(e.node,e.offset,t.anchorNode,t.anchorOffset)}function nb(n,e){let{$anchor:t,$head:r}=n.selection,o=e>0?t.max(r):t.min(r),s=o.parent.inlineContent?o.depth?n.doc.resolve(e>0?o.after():o.before()):null:o;return s&&_t.findFrom(s,e)}function _i(n,e){return n.dispatch(n.state.tr.setSelection(e).scrollIntoView()),!0}function sS(n,e,t){let r=n.state.selection;if(r instanceof Ct)if(t.indexOf("s")>-1){let{$head:o}=r,s=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter;if(!s||s.isText||!s.isLeaf)return!1;let i=n.state.doc.resolve(o.pos+s.nodeSize*(e<0?-1:1));return _i(n,new Ct(r.$anchor,i))}else if(r.empty){if(n.endOfTextblock(e>0?"forward":"backward")){let o=nb(n.state,e);return o&&o instanceof ct?_i(n,o):!1}else if(!(Zr&&t.indexOf("m")>-1)){let o=r.$head,s=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter,i;if(!s||s.isText)return!1;let l=e<0?o.pos-s.nodeSize:o.pos;return s.isAtom||(i=n.docView.descAt(l))&&!i.contentDOM?ct.isSelectable(s)?_i(n,new ct(e<0?n.state.doc.resolve(o.pos-s.nodeSize):o)):of?_i(n,new Ct(n.state.doc.resolve(e<0?l:l+s.nodeSize))):!1:!1}}else return!1;else{if(r instanceof ct&&r.node.isInline)return _i(n,new Ct(e>0?r.$to:r.$from));{let o=nb(n.state,e);return o?_i(n,o):!1}}}function Xh(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function ju(n,e){let t=n.pmViewDesc;return t&&t.size==0&&(e<0||n.nextSibling||n.nodeName!="BR")}function Oa(n,e){return e<0?HQ(n):UQ(n)}function HQ(n){let e=n.domSelectionRange(),t=e.focusNode,r=e.focusOffset;if(!t)return;let o,s,i=!1;for(Fo&&t.nodeType==1&&r0){if(t.nodeType!=1)break;{let l=t.childNodes[r-1];if(ju(l,-1))o=t,s=--r;else if(l.nodeType==3)t=l,r=t.nodeValue.length;else break}}else{if(LA(t))break;{let l=t.previousSibling;for(;l&&ju(l,-1);)o=t.parentNode,s=Gn(l),l=l.previousSibling;if(l)t=l,r=Xh(t);else{if(t=t.parentNode,t==n.dom)break;r=0}}}i?rb(n,t,r):o&&rb(n,o,s)}function UQ(n){let e=n.domSelectionRange(),t=e.focusNode,r=e.focusOffset;if(!t)return;let o=Xh(t),s,i;for(;;)if(r{n.state==o&&Us(n)},50)}function iS(n,e){let t=n.state.doc.resolve(e);if(!(br||pQ)&&t.parent.inlineContent){let o=n.coordsAtPos(e);if(e>t.start()){let s=n.coordsAtPos(e-1),i=(s.top+s.bottom)/2;if(i>o.top&&i1)return s.lefto.top&&i1)return s.left>o.left?"ltr":"rtl"}}return getComputedStyle(n.dom).direction=="rtl"?"rtl":"ltr"}function lS(n,e,t){let r=n.state.selection;if(r instanceof Ct&&!r.empty||t.indexOf("s")>-1||Zr&&t.indexOf("m")>-1)return!1;let{$from:o,$to:s}=r;if(!o.parent.inlineContent||n.endOfTextblock(e<0?"up":"down")){let i=nb(n.state,e);if(i&&i instanceof ct)return _i(n,i)}if(!o.parent.inlineContent){let i=e<0?o:s,l=r instanceof Lo?_t.near(i,e):_t.findFrom(i,e);return l?_i(n,l):!1}return!1}function aS(n,e){if(!(n.state.selection instanceof Ct))return!0;let{$head:t,$anchor:r,empty:o}=n.state.selection;if(!t.sameParent(r))return!0;if(!o)return!1;if(n.endOfTextblock(e>0?"forward":"backward"))return!0;let s=!t.textOffset&&(e<0?t.nodeBefore:t.nodeAfter);if(s&&!s.isText){let i=n.state.tr;return e<0?i.delete(t.pos-s.nodeSize,t.pos):i.delete(t.pos,t.pos+s.nodeSize),n.dispatch(i),!0}return!1}function cS(n,e,t){n.domObserver.stop(),e.contentEditable=t,n.domObserver.start()}function qQ(n){if(!yr||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;cS(n,r,"true"),setTimeout(()=>cS(n,r,"false"),20)}return!1}function KQ(n){let e="";return n.ctrlKey&&(e+="c"),n.metaKey&&(e+="m"),n.altKey&&(e+="a"),n.shiftKey&&(e+="s"),e}function YQ(n,e){let t=e.keyCode,r=KQ(e);if(t==8||Zr&&t==72&&r=="c")return aS(n,-1)||Oa(n,-1);if(t==46&&!e.shiftKey||Zr&&t==68&&r=="c")return aS(n,1)||Oa(n,1);if(t==13||t==27)return!0;if(t==37||Zr&&t==66&&r=="c"){let o=t==37?iS(n,n.state.selection.from)=="ltr"?-1:1:-1;return sS(n,o,r)||Oa(n,o)}else if(t==39||Zr&&t==70&&r=="c"){let o=t==39?iS(n,n.state.selection.from)=="ltr"?1:-1:1;return sS(n,o,r)||Oa(n,o)}else{if(t==38||Zr&&t==80&&r=="c")return lS(n,-1,r)||Oa(n,-1);if(t==40||Zr&&t==78&&r=="c")return qQ(n)||lS(n,1,r)||Oa(n,1);if(r==(Zr?"m":"c")&&(t==66||t==73||t==89||t==90))return!0}return!1}function RA(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")||Ca.fromSchema(n.state.schema),l=zA(),a=l.createElement("div");a.appendChild(i.serializeFragment(r,{document:l}));let c=a.firstChild,u,d=0;for(;c&&c.nodeType==1&&(u=FA[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 $A(n,e,t,r,o){let s=o.parent.type.spec.code,i,l;if(!t&&!e)return null;let a=e&&(r||s||!t);if(a){if(n.someProp("transformPastedText",f=>{e=f(e,s||r,n)}),s)return e?new Ge(Ne.from(n.state.schema.text(e.replace(/\r\n?/g,` +`))),0,0):Ge.empty;let d=n.someProp("clipboardTextParser",f=>f(e,o,r,n));if(d)l=d;else{let f=o.marks(),{schema:h}=n.state,p=Ca.fromSchema(h);i=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let v=i.appendChild(document.createElement("p"));g&&v.appendChild(p.serializeNode(h.text(g,f)))})}}else n.someProp("transformPastedHTML",d=>{t=d(t,n)}),i=ZQ(t),of&&QQ(i);let c=i&&i.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[3];d>0;d--){let f=i.firstChild;for(;f&&f.nodeType!=1;)f=f.nextSibling;if(!f)break;i=f}if(l||(l=(n.someProp("clipboardParser")||n.someProp("domParser")||Ky.fromSchema(n.state.schema)).parseSlice(i,{preserveWhitespace:!!(a||u),context:o,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!JQ.test(f.parentNode.nodeName)?{ignore:!0}:null}})),u)l=eee(uS(l,+u[1],+u[2]),u[4]);else if(l=Ge.maxOpen(XQ(l.content,o),!0),l.openStart||l.openEnd){let d=0,f=0;for(let h=l.content.firstChild;d{l=d(l,n)}),l}const JQ=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function XQ(n,e){if(n.childCount<2)return n;for(let t=e.depth;t>=0;t--){let o=e.node(t).contentMatchAt(e.index(t)),s,i=[];if(n.forEach(l=>{if(!i)return;let a=o.findWrapping(l.type),c;if(!a)return i=null;if(c=i.length&&s.length&&VA(a,s,l,i[i.length-1],0))i[i.length-1]=c;else{i.length&&(i[i.length-1]=BA(i[i.length-1],s.length));let u=DA(l,a);i.push(u),o=o.matchType(u.type),s=a}}),i)return Ne.from(i)}return n}function DA(n,e,t=0){for(let r=e.length-1;r>=t;r--)n=e[r].create(null,Ne.from(n));return n}function VA(n,e,t,r,o){if(o1&&(s=0),o=t&&(l=e<0?i.contentMatchAt(0).fillBefore(l,s<=o).append(l):l.append(i.contentMatchAt(i.childCount).fillBefore(Ne.empty,!0))),n.replaceChild(e<0?0:n.childCount-1,i.copy(l))}function uS(n,e,t){return e]*>)*/.exec(n);e&&(n=n.slice(e[0].length));let t=zA().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(n),o;if((o=r&&FA[r[1].toLowerCase()])&&(n=o.map(s=>"<"+s+">").join("")+n+o.map(s=>"").reverse().join("")),t.innerHTML=n,o)for(let s=0;s=0;l-=2){let a=t.nodes[r[l]];if(!a||a.hasRequiredAttrs())break;o=Ne.from(a.create(r[l+1],o)),s++,i++}return new Ge(o,s,i)}const wr={},Cr={},tee={touchstart:!0,touchmove:!0};class nee{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function ree(n){for(let e in wr){let t=wr[e];n.dom.addEventListener(e,n.input.eventHandlers[e]=r=>{see(n,r)&&!t0(n,r)&&(n.editable||!(r.type in Cr))&&t(n,r)},tee[e]?{passive:!0}:void 0)}yr&&n.dom.addEventListener("input",()=>null),sb(n)}function Di(n,e){n.input.lastSelectionOrigin=e,n.input.lastSelectionTime=Date.now()}function oee(n){n.domObserver.stop();for(let e in n.input.eventHandlers)n.dom.removeEventListener(e,n.input.eventHandlers[e]);clearTimeout(n.input.composingTimeout),clearTimeout(n.input.lastIOSEnterFallbackTimeout)}function sb(n){n.someProp("handleDOMEvents",e=>{for(let t in e)n.input.eventHandlers[t]||n.dom.addEventListener(t,n.input.eventHandlers[t]=r=>t0(n,r))})}function t0(n,e){return n.someProp("handleDOMEvents",t=>{let r=t[e.type];return r?r(n,e)||e.defaultPrevented:!1})}function see(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target;t!=n.dom;t=t.parentNode)if(!t||t.nodeType==11||t.pmViewDesc&&t.pmViewDesc.stopEvent(e))return!1;return!0}function iee(n,e){!t0(n,e)&&wr[e.type]&&(n.editable||!(e.type in Cr))&&wr[e.type](n,e)}Cr.keydown=(n,e)=>{let t=e;if(n.input.shiftKey=t.keyCode==16||t.shiftKey,!HA(n,t)&&(n.input.lastKeyCode=t.keyCode,n.input.lastKeyCodeTime=Date.now(),!(Eo&&br&&t.keyCode==13)))if(t.keyCode!=229&&n.domObserver.forceFlush(),Cc&&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,Il(13,"Enter"))),n.input.lastIOSEnter=0)},200)}else n.someProp("handleKeyDown",r=>r(n,t))||YQ(n,t)?t.preventDefault():Di(n,"key")};Cr.keyup=(n,e)=>{e.keyCode==16&&(n.input.shiftKey=!1)};Cr.keypress=(n,e)=>{let t=e;if(HA(n,t)||!t.charCode||t.ctrlKey&&!t.altKey||Zr&&t.metaKey)return;if(n.someProp("handleKeyPress",o=>o(n,t))){t.preventDefault();return}let r=n.state.selection;if(!(r instanceof Ct)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(t.charCode);!/[\r\n]/.test(o)&&!n.someProp("handleTextInput",s=>s(n,r.$from.pos,r.$to.pos,o))&&n.dispatch(n.state.tr.insertText(o).scrollIntoView()),t.preventDefault()}};function yg(n){return{left:n.clientX,top:n.clientY}}function lee(n,e){let t=e.x-n.clientX,r=e.y-n.clientY;return t*t+r*r<100}function n0(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 Ka(n,e,t){n.focused||n.focus();let r=n.state.tr.setSelection(e);r.setMeta("pointer",!0),n.dispatch(r)}function aee(n,e){if(e==-1)return!1;let t=n.state.doc.resolve(e),r=t.nodeAfter;return r&&r.isAtom&&ct.isSelectable(r)?(Ka(n,new ct(t)),!0):!1}function cee(n,e){if(e==-1)return!1;let t=n.state.selection,r,o;t instanceof ct&&(r=t.node);let s=n.state.doc.resolve(e);for(let i=s.depth+1;i>0;i--){let l=i>s.depth?s.nodeAfter:s.node(i);if(ct.isSelectable(l)){r&&t.$from.depth>0&&i>=t.$from.depth&&s.before(t.$from.depth+1)==t.$from.pos?o=s.before(t.$from.depth):o=s.before(i);break}}return o!=null?(Ka(n,ct.create(n.state.doc,o)),!0):!1}function uee(n,e,t,r,o){return n0(n,"handleClickOn",e,t,r)||n.someProp("handleClick",s=>s(n,e,r))||(o?cee(n,t):aee(n,t))}function dee(n,e,t,r){return n0(n,"handleDoubleClickOn",e,t,r)||n.someProp("handleDoubleClick",o=>o(n,e,r))}function fee(n,e,t,r){return n0(n,"handleTripleClickOn",e,t,r)||n.someProp("handleTripleClick",o=>o(n,e,r))||hee(n,t,r)}function hee(n,e,t){if(t.button!=0)return!1;let r=n.state.doc;if(e==-1)return r.inlineContent?(Ka(n,Ct.create(r,0,r.content.size)),!0):!1;let o=r.resolve(e);for(let s=o.depth+1;s>0;s--){let i=s>o.depth?o.nodeAfter:o.node(s),l=o.before(s);if(i.inlineContent)Ka(n,Ct.create(r,l+1,l+1+i.content.size));else if(ct.isSelectable(i))Ka(n,ct.create(r,l));else continue;return!0}}function r0(n){return Zh(n)}const jA=Zr?"metaKey":"ctrlKey";wr.mousedown=(n,e)=>{let t=e;n.input.shiftKey=t.shiftKey;let r=r0(n),o=Date.now(),s="singleClick";o-n.input.lastClick.time<500&&lee(t,n.input.lastClick)&&!t[jA]&&(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(yg(t));i&&(s=="singleClick"?(n.input.mouseDown&&n.input.mouseDown.done(),n.input.mouseDown=new pee(n,i,t,!!r)):(s=="doubleClick"?dee:fee)(n,i.pos,i.inside,t)?t.preventDefault():Di(n,"pointer"))};class pee{constructor(e,t,r,o){this.view=e,this.pos=t,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[jA],this.allowDefault=r.shiftKey;let s,i;if(t.inside>-1)s=e.state.doc.nodeAt(t.inside),i=t.inside;else{let u=e.state.doc.resolve(t.pos);s=u.parent,i=u.depth?u.before():0}const l=o?null:r.target,a=l?e.docView.nearestDesc(l,!0):null;this.target=a&&a.dom.nodeType==1?a.dom:null;let{selection:c}=e.state;(r.button==0&&s.type.spec.draggable&&s.type.spec.selectable!==!1||c instanceof ct&&c.from<=i&&c.to>i)&&(this.mightDrag={node:s,pos:i,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Fo&&!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)),Di(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(()=>Us(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(yg(e))),this.updateAllowDefault(e),this.allowDefault||!t?Di(this.view,"pointer"):uee(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||yr&&this.mightDrag&&!this.mightDrag.node.isAtom||br&&!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)?(Ka(this.view,_t.near(this.view.state.doc.resolve(t.pos))),e.preventDefault()):Di(this.view,"pointer")}move(e){this.updateAllowDefault(e),Di(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)}}wr.touchstart=n=>{n.input.lastTouch=Date.now(),r0(n),Di(n,"pointer")};wr.touchmove=n=>{n.input.lastTouch=Date.now(),Di(n,"pointer")};wr.contextmenu=n=>r0(n);function HA(n,e){return n.composing?!0:yr&&Math.abs(e.timeStamp-n.input.compositionEndedAt)<500?(n.input.compositionEndedAt=-2e8,!0):!1}const gee=Eo?5e3:-1;Cr.compositionstart=Cr.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(),Zh(n,!0),n.markCursor=null;else if(Zh(n),Fo&&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}UA(n,gee)};Cr.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++,UA(n,20))};function UA(n,e){clearTimeout(n.input.composingTimeout),e>-1&&(n.input.composingTimeout=setTimeout(()=>Zh(n),e))}function WA(n){for(n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=vee());n.input.compositionNodes.length>0;)n.input.compositionNodes.pop().markParentsDirty()}function mee(n){let e=n.domSelectionRange();if(!e.focusNode)return null;let t=aQ(e.focusNode,e.focusOffset),r=cQ(e.focusNode,e.focusOffset);if(t&&r&&t!=r){let o=r.pmViewDesc,s=n.domObserver.lastChangedTextNode;if(t==s||r==s)return s;if(!o||!o.isText(r.nodeValue))return r;if(n.input.compositionNode==r){let i=t.pmViewDesc;if(!(!i||!i.isText(t.nodeValue)))return r}}return t||r}function vee(){let n=document.createEvent("Event");return n.initEvent("event",!0,!0),n.timeStamp}function Zh(n,e=!1){if(!(Eo&&n.domObserver.flushingSoon>=0)){if(n.domObserver.forceFlush(),WA(n),e||n.docView&&n.docView.dirty){let t=Qy(n);return t&&!t.eq(n.state.selection)?n.dispatch(n.state.tr.setSelection(t)):n.updateState(n.state),!0}return!1}}function bee(n,e){if(!n.dom.parentNode)return;let t=n.dom.parentNode.appendChild(document.createElement("div"));t.appendChild(e),t.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(e),n.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{t.parentNode&&t.parentNode.removeChild(t),n.focus()},50)}const yd=kr&&ji<15||Cc&&gQ<604;wr.copy=Cr.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}=RA(n,i);s?(t.preventDefault(),s.clearData(),s.setData("text/html",l.innerHTML),s.setData("text/plain",a)):bee(n,l),o&&n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function yee(n){return n.openStart==0&&n.openEnd==0&&n.content.childCount==1?n.content.firstChild:null}function wee(n,e){if(!n.dom.parentNode)return;let t=n.input.shiftKey||n.state.selection.$from.parent.type.spec.code,r=n.dom.parentNode.appendChild(document.createElement(t?"textarea":"div"));t||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=n.input.shiftKey&&n.input.lastKeyCode!=45;setTimeout(()=>{n.focus(),r.parentNode&&r.parentNode.removeChild(r),t?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=$A(n,e,t,r,n.state.selection.$from);if(n.someProp("handlePaste",a=>a(n,o,s||Ge.empty)))return!0;if(!s)return!1;let i=yee(s),l=i?n.state.tr.replaceSelectionWith(i,r):n.state.tr.replaceSelection(s);return n.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function GA(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," "):""}Cr.paste=(n,e)=>{let t=e;if(n.composing&&!Eo)return;let r=yd?null:t.clipboardData,o=n.input.shiftKey&&n.input.lastKeyCode!=45;r&&wd(n,GA(r),r.getData("text/html"),o,t)?t.preventDefault():wee(n,t)};class qA{constructor(e,t,r){this.slice=e,this.move=t,this.node=r}}const KA=Zr?"altKey":"ctrlKey";wr.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(yg(t)),i;if(!(s&&s.pos>=o.from&&s.pos<=(o instanceof ct?o.to-1:o.to))){if(r&&r.mightDrag)i=ct.create(n.state.doc,r.mightDrag.pos);else if(t.target&&t.target.nodeType==1){let d=n.docView.nearestDesc(t.target,!0);d&&d.node.type.spec.draggable&&d!=n.docView&&(i=ct.create(n.state.doc,d.posBefore))}}let l=(i||n.state.selection).content(),{dom:a,text:c,slice:u}=RA(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 qA(u,!t[KA],i)};wr.dragend=n=>{let e=n.dragging;window.setTimeout(()=>{n.dragging==e&&(n.dragging=null)},50)};Cr.dragover=Cr.dragenter=(n,e)=>e.preventDefault();Cr.drop=(n,e)=>{let t=e,r=n.dragging;if(n.dragging=null,!t.dataTransfer)return;let o=n.posAtCoords(yg(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=$A(n,GA(t.dataTransfer),yd?null:t.dataTransfer.getData("text/html"),!1,s);let l=!!(r&&!t[KA]);if(n.someProp("handleDrop",p=>p(n,t,i||Ge.empty,l))){t.preventDefault();return}if(!i)return;t.preventDefault();let a=i?fA(n.state.doc,s.pos,i):s.pos;a==null&&(a=s.pos);let c=n.state.tr;if(l){let{node:p}=r;p?p.replace(c):c.deleteSelection()}let u=c.mapping.map(a),d=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,f=c.doc;if(d?c.replaceRangeWith(u,u,i.content.firstChild):c.replaceRange(u,u,i),c.doc.eq(f))return;let h=c.doc.resolve(u);if(d&&ct.isSelectable(i.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(i.content.firstChild))c.setSelection(new ct(h));else{let p=c.mapping.map(a);c.mapping.maps[c.mapping.maps.length-1].forEach((g,v,m,w)=>p=w),c.setSelection(e0(n,h,c.doc.resolve(p)))}n.focus(),n.dispatch(c.setMeta("uiEvent","drop"))};wr.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())&&Us(n)},20))};wr.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)};wr.beforeinput=(n,e)=>{if(br&&Eo&&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,Il(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 Cr)wr[n]=Cr[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 Qh{constructor(e,t){this.toDOM=e,this.spec=t||Xl,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 so(s-r,s-r,this)}valid(){return!0}eq(e){return this==e||e instanceof Qh&&(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 Ui{constructor(e,t){this.attrs=e,this.spec=t||Xl}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 so(s,i,this)}valid(e,t){return t.from=e&&(!s||s(l.spec))&&r.push(l.copy(l.from+o,l.to+o))}for(let i=0;ie){let l=this.children[i]+1;this.children[i+2].findInner(e-l,t-l,r,o+l,s)}}map(e,t,r){return this==or||e.maps.length==0?this:this.mapInner(e,t,0,0,r||Xl)}mapInner(e,t,r,o,s){let i;for(let l=0;l{let c=a+r,u;if(u=JA(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 Ui){let c=Math.max(s,a.from)-s,u=Math.min(i,a.to)-s;co.map(e,t,Xl));return Ni.from(r)}forChild(e,t){if(t.isLeaf)return Mn.empty;let r=[];for(let o=0;ot instanceof Mn)?e:e.reduce((t,r)=>t.concat(r instanceof Mn?r:r.members),[]))}}}function Cee(n,e,t,r,o,s,i){let l=n.slice();for(let c=0,u=s;c{let v=g-p-(h-f);for(let m=0;mw+u-d)continue;let b=l[m]+u-d;h>=b?l[m+1]=f<=b?-2:-1:f>=u&&v&&(l[m]+=v,l[m+1]+=v)}d+=v}),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),v=r.maybeChild(p);if(v&&g==d&&g+v.nodeSize==h){let m=l[c+2].mapInner(t,v,u+1,n[c]+s+1,i);m!=or?(l[c]=d,l[c+1]=h,l[c+2]=m):(l[c+1]=-2,a=!0)}else a=!0}if(a){let c=xee(l,n,e,t,o,s,i),u=ep(c,r,0,i);e=u.local;for(let d=0;dt&&i.to{let c=JA(n,l,a+t);if(c){s=!0;let u=ep(c,l,t+a+1,r);u!=or&&o.push(a,a+l.nodeSize,u)}});let i=YA(s?XA(n):n,-t).sort(Zl);for(let l=0;l0;)e++;n.splice(e,0,t)}function Cm(n){let e=[];return n.someProp("decorations",t=>{let r=t(n.state);r&&r!=or&&e.push(r)}),n.cursorWrapper&&e.push(Mn.create(n.state.doc,[n.cursorWrapper.deco])),Ni.from(e)}const See={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Eee=kr&&ji<=11;class _ee{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class Tee{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new _ee,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;oo.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),Eee&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,See)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;tthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(oS(this.view)){if(this.suppressingSelectionUpdates)return Us(this.view);if(kr&&ji<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&aa(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)&&oS(e)&&!this.ignoreSelectionChange(r),s=-1,i=-1,l=!1,a=[];if(e.editable)for(let u=0;ud.nodeName=="BR");if(u.length==2){let[d,f]=u;d.parentNode&&d.parentNode.parentNode==f.parentNode?f.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let f of u){let h=f.parentNode;h&&h.nodeName=="LI"&&(!d||Aee(e,d)!=h)&&f.remove()}}}let c=null;s<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)-1||o)&&(s>-1&&(e.docView.markDirty(s,i),Oee(e)),this.handleDOMChange(s,i,l,a),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||Us(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;v--){let m=r.childNodes[v-1],w=m.pmViewDesc;if(m.nodeName=="BR"&&!w){s=v;break}if(!w||w.size)break}let d=n.state.doc,f=n.someProp("domParser")||Ky.fromSchema(n.state.schema),h=d.resolve(i),p=null,g=f.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:o,to:s,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:Pee,context:h});if(c&&c[0].pos!=null){let v=c[0].pos,m=c[1]&&c[1].pos;m==null&&(m=v),p={anchor:v+i,head:m+i}}return{doc:g,sel:p,from:i,to:l}}function Pee(n){let e=n.pmViewDesc;if(e)return e.parseRule();if(n.nodeName=="BR"&&n.parentNode){if(yr&&/^(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||yr&&/^(tr|table)$/i.test(n.parentNode.nodeName))return{ignore:!0}}else if(n.nodeName=="IMG"&&n.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Nee=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Iee(n,e,t,r,o){let s=n.input.compositionPendingChanges||(n.composing?n.input.compositionID:0);if(n.input.compositionPendingChanges=0,e<0){let O=n.input.lastSelectionTime>Date.now()-50?n.input.lastSelectionOrigin:null,k=Qy(n,O);if(k&&!n.state.selection.eq(k)){if(br&&Eo&&n.input.lastKeyCode===13&&Date.now()-100L(n,Il(13,"Enter"))))return;let P=n.state.tr.setSelection(k);O=="pointer"?P.setMeta("pointer",!0):O=="key"&&P.scrollIntoView(),s&&P.setMeta("composition",s),n.dispatch(P)}return}let i=n.state.doc.resolve(e),l=i.sharedDepth(t);e=i.before(l+1),t=n.state.doc.resolve(t).after(l+1);let a=n.state.selection,c=kee(n,e,t),u=n.state.doc,d=u.slice(c.from,c.to),f,h;n.input.lastKeyCode===8&&Date.now()-100Date.now()-225||Eo)&&o.some(O=>O.nodeType==1&&!Nee.test(O.nodeName))&&(!p||p.endA>=p.endB)&&n.someProp("handleKeyDown",O=>O(n,Il(13,"Enter")))){n.input.lastIOSEnter=0;return}if(!p)if(r&&a instanceof Ct&&!a.empty&&a.$head.sameParent(a.$anchor)&&!n.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))p={start:a.from,endA:a.to,endB:a.to};else{if(c.sel){let O=mS(n,n.state.doc,c.sel);if(O&&!O.eq(n.state.selection)){let k=n.state.tr.setSelection(O);s&&k.setMeta("composition",s),n.dispatch(k)}}return}n.input.domChangeCount++,n.state.selection.fromn.state.selection.from&&p.start<=n.state.selection.from+2&&n.state.selection.from>=c.from?p.start=n.state.selection.from:p.endA=n.state.selection.to-2&&n.state.selection.to<=c.to&&(p.endB+=n.state.selection.to-p.endA,p.endA=n.state.selection.to)),kr&&ji<=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),v=c.doc.resolveNoCache(p.endB-c.from),m=u.resolve(p.start),w=g.sameParent(v)&&g.parent.inlineContent&&m.end()>=p.endA,b;if((Cc&&n.input.lastIOSEnter>Date.now()-225&&(!w||o.some(O=>O.nodeName=="DIV"||O.nodeName=="P"))||!w&&g.posO(n,Il(13,"Enter")))){n.input.lastIOSEnter=0;return}if(n.state.selection.anchor>p.start&&Ree(u,p.start,p.endA,g,v)&&n.someProp("handleKeyDown",O=>O(n,Il(8,"Backspace")))){Eo&&br&&n.domObserver.suppressSelectionUpdates();return}br&&Eo&&p.endB==p.start&&(n.input.lastAndroidDelete=Date.now()),Eo&&!w&&g.start()!=v.start()&&v.parentOffset==0&&g.depth==v.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==p.endA&&(p.endB-=2,v=c.doc.resolveNoCache(p.endB-c.from),setTimeout(()=>{n.someProp("handleKeyDown",function(O){return O(n,Il(13,"Enter"))})},20));let y=p.start,S=p.endA,E,T,M;if(w){if(g.pos==v.pos)kr&&ji<=11&&g.parentOffset==0&&(n.domObserver.suppressSelectionUpdates(),setTimeout(()=>Us(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=Lee(g.parent.content.cut(g.parentOffset,v.parentOffset),m.parent.content.cut(m.parentOffset,p.endA-m.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()==v.index()-(v.textOffset?0:1)){let O=g.parent.textBetween(g.parentOffset,v.parentOffset);if(n.someProp("handleTextInput",k=>k(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=mS(n,E.doc,c.sel);O&&!(br&&Eo&&n.composing&&O.empty&&(p.start!=p.endB||n.input.lastAndroidDeletee.content.size?null:e0(n,e.resolve(t.anchor),e.resolve(t.head))}function Lee(n,e){let t=n.firstChild.marks,r=e.firstChild.marks,o=t,s=r,i,l,a;for(let u=0;uu.mark(l.addToSet(u.marks));else if(o.length==0&&s.length==1)l=s[0],i="remove",a=u=>u.mark(l.removeFromSet(u.marks));else return null;let c=[];for(let u=0;ut||xm(i,!0,!1)0&&(e||n.indexAfter(r)==n.node(r).childCount);)r--,o++,e=!1;if(t){let s=n.node(r).maybeChild(n.indexAfter(r));for(;s&&!s.isLeaf;)s=s.firstChild,o++}return o}function $ee(n,e,t,r,o){let s=n.findDiffStart(e,t);if(s==null)return null;let{a:i,b:l}=n.findDiffEnd(e,t+n.size,t+e.size);if(o=="end"){let a=Math.max(0,s-Math.min(i,l));r-=i+a-s}if(i=i?s-r:0;s-=a,s&&s=l?s-r:0;s-=a,s&&s=56320&&e<=57343&&t>=55296&&t<=56319}class Dee{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new nee,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(xS),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=wS(this),yS(this),this.nodeViews=CS(this),this.docView=Zx(this.state.doc,bS(this),Cm(this),this.dom,this),this.domObserver=new Tee(this,(r,o,s,i)=>Iee(this,r,o,s,i)),this.domObserver.start(),ree(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&sb(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(xS),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&&(WA(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=CS(this);Bee(h,this.nodeViews)&&(this.nodeViews=h,s=!0)}(l||t.handleDOMEvents!=this._props.handleDOMEvents)&&sb(this),this.editable=wS(this),yS(this);let a=Cm(this),c=bS(this),u=o.plugins!=e.plugins&&!o.doc.eq(e.doc)?"reset":e.scrollToSelection>o.scrollToSelection?"to selection":"preserve",d=s||!this.docView.matchesNode(e.doc,c,a);(d||!e.selection.eq(o.selection))&&(i=!0);let f=u=="preserve"&&i&&this.dom.style.overflowAnchor==null&&bQ(this);if(i){this.domObserver.stop();let h=d&&(kr||br)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&Vee(o.selection,e.selection);if(d){let p=br?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=mee(this)),(s||!this.docView.update(e.doc,c,a,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=Zx(e.doc,c,a,this.dom,this)),p&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&jQ(this))?Us(this,h):(NA(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((r=this.dragging)===null||r===void 0)&&r.node&&!o.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,o),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():f&&yQ(f)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",t=>t(this)))if(this.state.selection instanceof ct){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&Gx(this,t.getBoundingClientRect(),e)}else Gx(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 qA(e.slice,e.move,o<0?void 0:ct.create(this.state.doc,o))}someProp(e,t){let r=this._props&&this._props[e],o;if(r!=null&&(o=t?t(r):r))return o;for(let i=0;it.ownerDocument.getSelection()),this._root=t}return e||document}updateRoot(){this._root=null}posAtCoords(e){return _Q(this,e)}coordsAtPos(e,t=1){return EA(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,r=-1){let o=this.docView.posFromDOM(e,t,r);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(e,t){return kQ(this,t||this.state,e)}pasteHTML(e,t){return wd(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return wd(this,e,null,!0,t||new ClipboardEvent("paste"))}destroy(){this.docView&&(oee(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Cm(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,iQ())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return iee(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return yr&&this.root.nodeType===11&&dQ(this.dom.ownerDocument)==this.dom&&Mee(this,e)||e}domSelection(){return this.root.getSelection()}}function bS(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"),[so.node(0,n.state.doc.content.size,e)]}function yS(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:so.widget(n.state.selection.head,e,{raw:!0,marks:n.markCursor})}}else n.cursorWrapper=null}function wS(n){return!n.someProp("editable",e=>e(n.state)===!1)}function Vee(n,e){let t=Math.min(n.$anchor.sharedDepth(n.head),e.$anchor.sharedDepth(e.head));return n.$anchor.start(t)!=e.$anchor.start(t)}function CS(n){let e=Object.create(null);function t(r){for(let o in r)Object.prototype.hasOwnProperty.call(e,o)||(e[o]=r[o])}return n.someProp("nodeViews",t),n.someProp("markViews",t),e}function Bee(n,e){let t=0,r=0;for(let o in n){if(n[o]!=e[o])return!0;t++}for(let o in e)r++;return t!=r}function xS(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 Ji={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:"'"},tp={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Fee=typeof navigator<"u"&&/Mac/.test(navigator.platform),zee=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var qn=0;qn<10;qn++)Ji[48+qn]=Ji[96+qn]=String(qn);for(var qn=1;qn<=24;qn++)Ji[qn+111]="F"+qn;for(var qn=65;qn<=90;qn++)Ji[qn]=String.fromCharCode(qn+32),tp[qn]=String.fromCharCode(qn);for(var Sm in Ji)tp.hasOwnProperty(Sm)||(tp[Sm]=Ji[Sm]);function jee(n){var e=Fee&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||zee&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?tp:Ji)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}const Hee=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function Uee(n){let e=n.split(/-(?!$)/),t=e[e.length-1];t=="Space"&&(t=" ");let r,o,s,i;for(let l=0;l127)&&(s=Ji[r.keyCode])&&s!=o){let l=e[Em(s,r)];if(l&&l(t.state,t.dispatch,t))return!0}}return!1}}const qee=(n,e)=>n.selection.empty?!1:(e&&e(n.tr.deleteSelection().scrollIntoView()),!0);function QA(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=QA(n,t);if(!r)return!1;let o=i0(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&&rk(n,o,e))return!0;if(r.parent.content.size==0&&(xc(s,"end")||ct.isSelectable(s))){let i=gg(n.doc,r.before(),r.after(),Ge.empty);if(i&&i.slice.size{let r=QA(n,t);if(!r)return!1;let o=i0(r);return o?ek(n,o,e):!1},Jee=(n,e,t)=>{let r=tk(n,t);if(!r)return!1;let o=l0(r);return o?ek(n,o,e):!1};function ek(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=gg(n.doc,s,a,Ge.empty);if(!c||c.from!=s||c instanceof In&&c.slice.size>=a-s)return!1;if(t){let u=n.tr.step(c);u.setSelection(Ct.create(u.doc,s)),t(u.scrollIntoView())}return!0}function xc(n,e,t=!1){for(let r=n;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(t&&r.childCount!=1)return!1}return!1}const Xee=(n,e,t)=>{let{$head:r,empty:o}=n.selection,s=r;if(!o)return!1;if(r.parent.isTextblock){if(t?!t.endOfTextblock("backward",n):r.parentOffset>0)return!1;s=i0(r)}let i=s&&s.nodeBefore;return!i||!ct.isSelectable(i)?!1:(e&&e(n.tr.setSelection(ct.create(n.doc,s.pos-i.nodeSize)).scrollIntoView()),!0)};function i0(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 tk(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("forward",n):t.parentOffset{let r=tk(n,t);if(!r)return!1;let o=l0(r);if(!o)return!1;let s=o.nodeAfter;if(rk(n,o,e))return!0;if(r.parent.content.size==0&&(xc(s,"start")||ct.isSelectable(s))){let i=gg(n.doc,r.before(),r.after(),Ge.empty);if(i&&i.slice.size{let{$head:r,empty:o}=n.selection,s=r;if(!o)return!1;if(r.parent.isTextblock){if(t?!t.endOfTextblock("forward",n):r.parentOffset=0;e--){let t=n.node(e);if(n.index(e)+1{let t=n.selection,r=t instanceof ct,o;if(r){if(t.node.isTextblock||!pl(n.doc,t.from))return!1;o=t.from}else if(o=pg(n.doc,t.from,-1),o==null)return!1;if(e){let s=n.tr.join(o);r&&s.setSelection(ct.create(s.doc,o-n.doc.resolve(o).nodeBefore.nodeSize)),e(s.scrollIntoView())}return!0},tte=(n,e)=>{let t=n.selection,r;if(t instanceof ct){if(t.node.isTextblock||!pl(n.doc,t.to))return!1;r=t.to}else if(r=pg(n.doc,t.to,1),r==null)return!1;return e&&e(n.tr.join(r).scrollIntoView()),!0},nte=(n,e)=>{let{$from:t,$to:r}=n.selection,o=t.blockRange(r),s=o&&Jc(o);return s==null?!1:(e&&e(n.tr.lift(o,s).scrollIntoView()),!0)},rte=(n,e)=>{let{$head:t,$anchor:r}=n.selection;return!t.parent.type.spec.code||!t.sameParent(r)?!1:(e&&e(n.tr.insertText(` +`).scrollIntoView()),!0)};function nk(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=nk(o.contentMatchAt(s));if(!i||!o.canReplaceWith(s,s,i))return!1;if(e){let l=t.after(),a=n.tr.replaceWith(l,l,i.createAndFill());a.setSelection(_t.near(a.doc.resolve(l),1)),e(a.scrollIntoView())}return!0},ste=(n,e)=>{let t=n.selection,{$from:r,$to:o}=t;if(t instanceof Lo||r.parent.inlineContent||o.parent.inlineContent)return!1;let s=nk(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(Ga(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)},lte=(n,e)=>{let{$from:t,to:r}=n.selection,o,s=t.sharedDepth(r);return s==0?!1:(o=t.before(s),e&&e(n.tr.setSelection(ct.create(n.doc,o))),!0)};function ate(n,e,t){let r=e.nodeBefore,o=e.nodeAfter,s=e.index();return!r||!o||!r.type.compatibleContent(o.type)?!1:!r.content.size&&e.parent.canReplace(s-1,s)?(t&&t(n.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(s,s+1)||!(o.isTextblock||pl(n.doc,e.pos))?!1:(t&&t(n.tr.clearIncompatible(e.pos,r.type,r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()),!0)}function rk(n,e,t){let r=e.nodeBefore,o=e.nodeAfter,s,i;if(r.type.spec.isolating||o.type.spec.isolating)return!1;if(ate(n,e,t))return!0;let l=e.parent.canReplace(e.index(),e.index()+1);if(l&&(s=(i=r.contentMatchAt(r.childCount)).findWrapping(o.type))&&i.matchType(s[0]||o.type).validEnd){if(t){let d=e.pos+o.nodeSize,f=Ne.empty;for(let g=s.length-1;g>=0;g--)f=Ne.from(s[g].create(null,f));f=Ne.from(r.copy(f));let h=n.tr.step(new Vn(e.pos-1,d,e.pos,d,new Ge(f,1,0),s.length,!0)),p=d+2*s.length;pl(h.doc,p)&&h.join(p),t(h.scrollIntoView())}return!0}let a=_t.findFrom(e,1),c=a&&a.$from.blockRange(a.$to),u=c&&Jc(c);if(u!=null&&u>=e.depth)return t&&t(n.tr.lift(c,u).scrollIntoView()),!0;if(l&&xc(o,"start",!0)&&xc(r,"end")){let d=r,f=[];for(;f.push(d),!d.isTextblock;)d=d.lastChild;let h=o,p=1;for(;!h.isTextblock;h=h.firstChild)p++;if(d.canReplace(d.childCount,d.childCount,h.content)){if(t){let g=Ne.empty;for(let m=f.length-1;m>=0;m--)g=Ne.from(f[m].copy(g));let v=n.tr.step(new Vn(e.pos-f.length,e.pos+o.nodeSize,e.pos+p,e.pos+o.nodeSize-p,new Ge(g,f.length,0),0,!0));t(v.scrollIntoView())}return!0}}return!1}function ok(n){return function(e,t){let r=e.selection,o=n<0?r.$from:r.$to,s=o.depth;for(;o.node(s).isInline;){if(!s)return!1;s--}return o.node(s).isTextblock?(t&&t(e.tr.setSelection(Ct.create(e.doc,n<0?o.start(s):o.end(s)))),!0):!1}}const cte=ok(-1),ute=ok(1);function dte(n,e=null){return function(t,r){let{$from:o,$to:s}=t.selection,i=o.blockRange(s),l=i&&Jy(i,n,e);return l?(r&&r(t.tr.wrap(i,l).scrollIntoView()),!0):!1}}function SS(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 qh(u,u,i.depth),i.endIndex=0;u--)s=Ne.from(t[u].type.create(t[u].attrs,s));n.step(new Vn(e.start-(r?2:0),e.end,e.start,e.end,new Ge(s,0,0),t.length,!0));let i=0;for(let u=0;ui.childCount>0&&i.firstChild.type==n);return s?t?r.node(s.depth-1).type==n?gte(e,t,n,s):mte(e,t,s):!0:!1}}function gte(n,e,t,r){let o=n.tr,s=r.end,i=r.$to.end(r.depth);sg;p--)h-=o.child(p).nodeSize,r.delete(h-1,h+1);let s=r.doc.resolve(t.start),i=s.nodeAfter;if(r.mapping.map(t.end)!=t.start+s.nodeAfter.nodeSize)return!1;let l=t.startIndex==0,a=t.endIndex==o.childCount,c=s.node(-1),u=s.index(-1);if(!c.canReplace(u+(l?0:1),u+1,i.content.append(a?Ne.empty:Ne.from(o))))return!1;let d=s.pos,f=d+i.nodeSize;return r.step(new Vn(d-(l?1:0),f+(a?1:0),d+1,f-1,new Ge((l?Ne.empty:Ne.from(o.copy(Ne.empty))).append(a?Ne.empty:Ne.from(o.copy(Ne.empty))),l?0:1,a?0:1),l?0:1)),e(r.scrollIntoView()),!0}function vte(n){return function(e,t){let{$from:r,$to:o}=e.selection,s=r.blockRange(o,c=>c.childCount>0&&c.firstChild.type==n);if(!s)return!1;let i=s.startIndex;if(i==0)return!1;let l=s.parent,a=l.child(i-1);if(a.type!=n)return!1;if(t){let c=a.lastChild&&a.lastChild.type==l.type,u=Ne.from(c?n.create():null),d=new Ge(Ne.from(n.create(null,Ne.from(l.type.create(null,u)))),c?3:1,0),f=s.start,h=s.end;t(e.tr.step(new Vn(f-(c?3:1),h,f,h,d,1,!0)).scrollIntoView())}return!0}}function wg(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 Cg{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 v=this.buildProps(c,t),m=h(...g)(v);return l.push(m),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:wg({state:s,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(([a,c])=>[a,(...u)=>c(...u)(l)]))}};return l}}class bte{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const r=this.callbacks[e];return r&&r.forEach(o=>o.apply(this,t)),this}off(e,t){const r=this.callbacks[e];return r&&(t?this.callbacks[e]=r.filter(o=>o!==t):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function Ze(n,e,t){return n.config[e]===void 0&&n.parent?Ze(n.parent,e,t):typeof n.config[e]=="function"?n.config[e].bind({...t,parent:n.parent?Ze(n.parent,e,t):null}):n.config[e]}function xg(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 sk(n){const e=[],{nodeExtensions:t,markExtensions:r}=xg(n),o=[...t,...r],s={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return n.forEach(i=>{const l={name:i.name,options:i.options,storage:i.storage,extensions:o},a=Ze(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=Ze(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 zn(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 dn(...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 ib(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)=>dn(t,r),{})}function ik(n){return typeof n=="function"}function Ot(n,e=void 0,...t){return ik(n)?e?n.bind(e)(...t):n(...t):n}function yte(n={}){return Object.keys(n).length===0&&n.constructor===Object}function wte(n){return typeof n!="string"?n:n.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(n):n==="true"?!0:n==="false"?!1:n}function ES(n,e){return"style"in n?n:{...n,getAttrs:t=>{const r=n.getAttrs?n.getAttrs(t):n.attrs;if(r===!1)return!1;const o=e.reduce((s,i)=>{const l=i.attribute.parseHTML?i.attribute.parseHTML(t):wte(t.getAttribute(i.name));return l==null?s:{...s,[i.name]:l}},{});return{...r,...o}}}}function _S(n){return Object.fromEntries(Object.entries(n).filter(([e,t])=>e==="attrs"&&yte(t)?!1:t!=null))}function Cte(n,e){var t;const r=sk(n),{nodeExtensions:o,markExtensions:s}=xg(n),i=(t=o.find(c=>Ze(c,"topNode")))===null||t===void 0?void 0:t.name,l=Object.fromEntries(o.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,w)=>{const b=Ze(w,"extendNodeSchema",d);return{...m,...b?b(c):{}}},{}),h=_S({...f,content:Ot(Ze(c,"content",d)),marks:Ot(Ze(c,"marks",d)),group:Ot(Ze(c,"group",d)),inline:Ot(Ze(c,"inline",d)),atom:Ot(Ze(c,"atom",d)),selectable:Ot(Ze(c,"selectable",d)),draggable:Ot(Ze(c,"draggable",d)),code:Ot(Ze(c,"code",d)),whitespace:Ot(Ze(c,"whitespace",d)),defining:Ot(Ze(c,"defining",d)),isolating:Ot(Ze(c,"isolating",d)),attrs:Object.fromEntries(u.map(m=>{var w;return[m.name,{default:(w=m==null?void 0:m.attribute)===null||w===void 0?void 0:w.default}]}))}),p=Ot(Ze(c,"parseHTML",d));p&&(h.parseDOM=p.map(m=>ES(m,u)));const g=Ze(c,"renderHTML",d);g&&(h.toDOM=m=>g({node:m,HTMLAttributes:ib(m,u)}));const v=Ze(c,"renderText",d);return v&&(h.toText=v),[c.name,h]})),a=Object.fromEntries(s.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,m)=>{const w=Ze(m,"extendMarkSchema",d);return{...v,...w?w(c):{}}},{}),h=_S({...f,inclusive:Ot(Ze(c,"inclusive",d)),excludes:Ot(Ze(c,"excludes",d)),group:Ot(Ze(c,"group",d)),spanning:Ot(Ze(c,"spanning",d)),code:Ot(Ze(c,"code",d)),attrs:Object.fromEntries(u.map(v=>{var m;return[v.name,{default:(m=v==null?void 0:v.attribute)===null||m===void 0?void 0:m.default}]}))}),p=Ot(Ze(c,"parseHTML",d));p&&(h.parseDOM=p.map(v=>ES(v,u)));const g=Ze(c,"renderHTML",d);return g&&(h.toDOM=v=>g({mark:v,HTMLAttributes:ib(v,u)})),[c.name,h]}));return new nA({topNode:i,nodes:l,marks:a})}function _m(n,e){return e.nodes[n]||e.marks[n]||null}function TS(n,e){return Array.isArray(e)?e.some(t=>(typeof t=="string"?t:t.name)===n.name):e}const xte=(n,e=500)=>{let t="";const r=n.parentOffset;return n.parent.nodesBetween(Math.max(0,r-e),r,(o,s,i,l)=>{var a,c;const u=((c=(a=o.type.spec).toText)===null||c===void 0?void 0:c.call(a,{node:o,pos:s,parent:i,index:l}))||o.textContent||"%leaf%";t+=o.isAtom?u:u.slice(0,Math.max(0,r-s))}),t};function a0(n){return Object.prototype.toString.call(n)==="[object RegExp]"}class Sg{constructor(e){this.find=e.find,this.handler=e.handler}}const Ste=(n,e)=>{if(a0(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=xte(c)+s;return i.forEach(f=>{if(u)return;const h=Ste(d,f.find);if(!h)return;const p=a.state.tr,g=wg({state:a.state,transaction:p}),v={from:r-(h[0].length-s.length),to:o},{commands:m,chain:w,can:b}=new Cg({editor:t,state:g});f.handler({state:g,range:v,match:h,commands:m,chain:w,can:b})===null||!p.steps.length||(p.setMeta(l,{transform:p,from:r,to:o,text:s}),a.dispatch(p),u=!0)}),u}function Ete(n){const{editor:e,rules:t}=n,r=new Gr({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 _te(n){return typeof n=="number"}class Tte{constructor(e){this.find=e.find,this.handler=e.handler}}const Ote=(n,e,t)=>{if(a0(e))return[...n.matchAll(e)];const r=e(n,t);return r?r.map(o=>{const s=[o.text];return s.index=o.index,s.input=n,s.data=o.data,o.replaceWith&&(o.text.includes(o.replaceWith),s.push(o.replaceWith)),s}):[]};function Mte(n){const{editor:e,state:t,from:r,to:o,rule:s,pasteEvent:i,dropEvent:l}=n,{commands:a,chain:c,can:u}=new Cg({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),v=Math.min(o,p+h.content.size),m=h.textBetween(g-p,v-p,void 0,"");Ote(m,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 Ate=n=>{var e;const t=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=t.clipboardData)===null||e===void 0||e.setData("text/html",n),t};function kte(n){const{editor:e,rules:t}=n;let r=null,o=!1,s=!1,i=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,l=typeof DragEvent<"u"?new DragEvent("drop"):null;const a=({state:u,from:d,to:f,rule:h,pasteEvt:p})=>{const g=u.tr,v=wg({state:u,transaction:g});if(!(!Mte({editor:e,state:v,from:Math.max(d-1,0),to:f.b-1,rule:h,pasteEvent:p,dropEvent:l})||!g.steps.length))return l=typeof DragEvent<"u"?new DragEvent("drop"):null,i=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,g};return t.map(u=>new Gr({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,v=p.getMeta("uiEvent")==="drop"&&!s,m=p.getMeta("applyPasteRules"),w=!!m;if(!g&&!v&&!w)return;if(w){const{from:S,text:E}=m,T=S+E.length,M=Ate(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(!(!_te(b)||!y||b===y.b))return a({rule:u,state:h,from:b,to:y,pasteEvt:i})}}))}function Pte(n){const e=n.filter((t,r)=>n.indexOf(t)!==r);return[...new Set(e)]}class Ba{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=Ba.resolve(e),this.schema=Cte(this.extensions,t),this.setupExtensions()}static resolve(e){const t=Ba.sort(Ba.flatten(e));return Pte(t.map(o=>o.name)).length,t}static flatten(e){return e.map(t=>{const r={name:t.name,options:t.options,storage:t.storage},o=Ze(t,"addExtensions",r);return o?[t,...this.flatten(o())]:t}).flat(10)}static sort(e){return e.sort((r,o)=>{const s=Ze(r,"priority")||100,i=Ze(o,"priority")||100;return s>i?-1:s{const r={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:_m(t.name,this.schema)},o=Ze(t,"addCommands",r);return o?{...e,...o()}:e},{})}get plugins(){const{editor:e}=this,t=Ba.sort([...this.extensions].reverse()),r=[],o=[],s=t.map(i=>{const l={name:i.name,options:i.options,storage:i.storage,editor:e,type:_m(i.name,this.schema)},a=[],c=Ze(i,"addKeyboardShortcuts",l);let u={};if(i.type==="mark"&&Ze(i,"exitable",l)&&(u.ArrowRight=()=>Hr.handleExit({editor:e,mark:i})),c){const g=Object.fromEntries(Object.entries(c()).map(([v,m])=>[v,()=>m({editor:e})]));u={...u,...g}}const d=Gee(u);a.push(d);const f=Ze(i,"addInputRules",l);TS(i,e.options.enableInputRules)&&f&&r.push(...f());const h=Ze(i,"addPasteRules",l);TS(i,e.options.enablePasteRules)&&h&&o.push(...h());const p=Ze(i,"addProseMirrorPlugins",l);if(p){const g=p();a.push(...g)}return a}).flat();return[Ete({editor:e,rules:r}),...kte({editor:e,rules:o}),...s]}get attributes(){return sk(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=xg(this.extensions);return Object.fromEntries(t.filter(r=>!!Ze(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:zn(r.name,this.schema)},i=Ze(r,"addNodeView",s);if(!i)return[];const l=(a,c,u,d)=>{const f=ib(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:_m(e.name,this.schema)};e.type==="mark"&&(!((t=Ot(Ze(e,"keepOnSplit",r)))!==null&&t!==void 0)||t)&&this.splittableMarks.push(e.name);const o=Ze(e,"onBeforeCreate",r),s=Ze(e,"onCreate",r),i=Ze(e,"onUpdate",r),l=Ze(e,"onSelectionUpdate",r),a=Ze(e,"onTransaction",r),c=Ze(e,"onFocus",r),u=Ze(e,"onBlur",r),d=Ze(e,"onDestroy",r);o&&this.editor.on("beforeCreate",o),s&&this.editor.on("create",s),i&&this.editor.on("update",i),l&&this.editor.on("selectionUpdate",l),a&&this.editor.on("transaction",a),c&&this.editor.on("focus",c),u&&this.editor.on("blur",u),d&&this.editor.on("destroy",d)})}}function Nte(n){return Object.prototype.toString.call(n).slice(8,-1)}function Wf(n){return Nte(n)!=="Object"?!1:n.constructor===Object&&Object.getPrototypeOf(n)===Object.prototype}function Eg(n,e){const t={...n};return Wf(n)&&Wf(e)&&Object.keys(e).forEach(r=>{Wf(e[r])&&Wf(n[r])?t[r]=Eg(n[r],e[r]):t[r]=e[r]}),t}class ar{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0,this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Ot(Ze(this,"addOptions",{name:this.name}))),this.storage=Ot(Ze(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new ar(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>Eg(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new ar({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0,t.options=Ot(Ze(t,"addOptions",{name:t.name})),t.storage=Ot(Ze(t,"addStorage",{name:t.name,options:t.options})),t}}function lk(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 ak(n){return Object.fromEntries(Object.entries(n.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}const Ite=ar.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Gr({key:new oi("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=ak(t);return lk(r,{from:i,to:l},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:a})}}})]}}),Lte=()=>({editor:n,view:e})=>(requestAnimationFrame(()=>{var t;n.isDestroyed||(e.dom.blur(),(t=window==null?void 0:window.getSelection())===null||t===void 0||t.removeAllRanges())}),!0),Rte=(n=!1)=>({commands:e})=>e.setContent("",n),$te=()=>({state:n,tr:e,dispatch:t})=>{const{selection:r}=e,{ranges:o}=r;return t&&o.forEach(({$from:s,$to:i})=>{n.doc.nodesBetween(s.pos,i.pos,(l,a)=>{if(l.type.isText)return;const{doc:c,mapping:u}=e,d=c.resolve(u.map(a)),f=c.resolve(u.map(a+l.nodeSize)),h=d.blockRange(f);if(!h)return;const p=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},Dte=n=>e=>n(e),Vte=()=>({state:n,dispatch:e})=>ste(n,e),Bte=(n,e)=>({editor:t,tr:r})=>{const{state:o}=t,s=o.doc.slice(n.from,n.to);r.deleteRange(n.from,n.to);const i=r.mapping.map(e);return r.insert(i,s.content),r.setSelection(new Ct(r.doc.resolve(i-1))),!0},Fte=()=>({tr:n,dispatch:e})=>{const{selection:t}=n,r=t.$anchor.node();if(r.content.size>0)return!1;const o=n.selection.$anchor;for(let s=o.depth;s>0;s-=1)if(o.node(s).type===r.type){if(e){const l=o.before(s),a=o.after(s);n.delete(l,a).scrollIntoView()}return!0}return!1},zte=n=>({tr:e,state:t,dispatch:r})=>{const o=zn(n,t.schema),s=e.selection.$anchor;for(let i=s.depth;i>0;i-=1)if(s.node(i).type===o){if(r){const a=s.before(i),c=s.after(i);e.delete(a,c).scrollIntoView()}return!0}return!1},jte=n=>({tr:e,dispatch:t})=>{const{from:r,to:o}=n;return t&&e.delete(r,o),!0},Hte=()=>({state:n,dispatch:e})=>qee(n,e),Ute=()=>({commands:n})=>n.keyboardShortcut("Enter"),Wte=()=>({state:n,dispatch:e})=>ote(n,e);function np(n,e,t={strict:!0}){const r=Object.keys(e);return r.length?r.every(o=>t.strict?e[o]===n[o]:a0(e[o])?e[o].test(n[o]):e[o]===n[o]):!0}function lb(n,e,t={}){return n.find(r=>r.type===e&&np(r.attrs,t))}function Gte(n,e,t={}){return!!lb(n,e,t)}function c0(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=lb([...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(lb([...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=ml(n,r.schema),{doc:i,selection:l}=t,{$from:a,from:c,to:u}=l;if(o){const d=c0(a,s,e);if(d&&d.from<=c&&d.to>=u){const f=Ct.create(i,d.from,d.to);t.setSelection(f)}}return!0},Kte=n=>e=>{const t=typeof n=="function"?n(e):n;for(let r=0;r({editor:t,view:r,tr:o,dispatch:s})=>{e={scrollIntoView:!0,...e};const i=()=>{d0()&&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&&!u0(t.state.selection))return i(),!0;const l=ck(o.doc,n)||t.state.selection,a=t.state.selection.eq(l);return s&&(a||o.setSelection(l),a&&o.storedMarks&&o.setStoredMarks(o.storedMarks),i()),!0},Jte=(n,e)=>t=>n.every((r,o)=>e(r,{...t,index:o})),Xte=(n,e)=>({tr:t,commands:r})=>r.insertContentAt({from:t.selection.from,to:t.selection.to},n,e),uk=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&&uk(r)}return n};function OS(n){const e=`${n}`,t=new window.DOMParser().parseFromString(e,"text/html").body;return uk(t)}function rp(n,e,t){t={slice:!0,parseOptions:{},...t};const r=typeof n=="object"&&n!==null,o=typeof n=="string";if(r)try{return Array.isArray(n)&&n.length>0?Ne.fromArray(n.map(i=>e.nodeFromJSON(i))):e.nodeFromJSON(n)}catch(s){if(t.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:s});return rp("",e,t)}if(o){let s=e,i=!1,l="";t.errorOnInvalidContent&&(s=new nA({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:u=>(i=!0,l=typeof u=="string"?u:u.outerHTML,null)}]}})}));const a=Ky.fromSchema(s),c=t.slice?a.parseSlice(OS(n),t.parseOptions).content:a.parse(OS(n),t.parseOptions);if(t.errorOnInvalidContent&&i)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${l}`)});return c}return rp("",e,t)}function Zte(n,e,t){const r=n.steps.length-1;if(r{i===0&&(i=u)}),n.setSelection(_t.near(n.doc.resolve(i),t))}const Qte=n=>!("type"in n),ene=(n,e,t)=>({tr:r,dispatch:o,editor:s})=>{var i;if(o){t={parseOptions:{},updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...t};let l;try{l=rp(e,s.schema,{parseOptions:{preserveWhitespace:"full",...t.parseOptions},errorOnInvalidContent:(i=t.errorOnInvalidContent)!==null&&i!==void 0?i:s.options.enableContentCheck})}catch{return!1}let{from:a,to:c}=typeof n=="number"?{from:n,to:n}:{from:n.from,to:n.to},u=!0,d=!0;if((Qte(l)?l:[l]).forEach(p=>{p.check(),u=u?p.isText&&p.marks.length===0:!1,d=d?p.isBlock:!1}),a===c&&d){const{parent:p}=r.doc.resolve(a);p.isTextblock&&!p.type.spec.code&&!p.childCount&&(a-=1,c+=1)}let h;u?(Array.isArray(e)?h=e.map(p=>p.text||"").join(""):typeof e=="object"&&e&&e.text?h=e.text:h=e,r.insertText(h,a,c)):(h=l,r.replaceWith(a,c,h)),t.updateSelection&&Zte(r,r.steps.length-1,-1),t.applyInputRules&&r.setMeta("applyInputRules",{from:a,text:h}),t.applyPasteRules&&r.setMeta("applyPasteRules",{from:a,text:h})}return!0},tne=()=>({state:n,dispatch:e})=>ete(n,e),nne=()=>({state:n,dispatch:e})=>tte(n,e),rne=()=>({state:n,dispatch:e})=>Kee(n,e),one=()=>({state:n,dispatch:e})=>Zee(n,e),sne=()=>({state:n,dispatch:e,tr:t})=>{try{const r=pg(n.doc,n.selection.$from.pos,-1);return r==null?!1:(t.join(r,2),e&&e(t),!0)}catch{return!1}},ine=()=>({state:n,dispatch:e,tr:t})=>{try{const r=pg(n.doc,n.selection.$from.pos,1);return r==null?!1:(t.join(r,2),e&&e(t),!0)}catch{return!1}},lne=()=>({state:n,dispatch:e})=>Yee(n,e),ane=()=>({state:n,dispatch:e})=>Jee(n,e);function dk(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function cne(n){const e=n.split(/-(?!$)/);let t=e[e.length-1];t==="Space"&&(t=" ");let r,o,s,i;for(let l=0;l({editor:e,view:t,tr:r,dispatch:o})=>{const s=cne(n).split(/-(?!$)/),i=s.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),l=new KeyboardEvent("keydown",{key:i==="Space"?" ":i,altKey:s.includes("Alt"),ctrlKey:s.includes("Ctrl"),metaKey:s.includes("Meta"),shiftKey:s.includes("Shift"),bubbles:!0,cancelable:!0}),a=e.captureTransaction(()=>{t.someProp("handleKeyDown",c=>c(t,l))});return a==null||a.steps.forEach(c=>{const u=c.map(r.mapping);u&&o&&r.maybeStep(u)}),!0};function xd(n,e,t={}){const{from:r,to:o,empty:s}=n.selection,i=e?zn(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=>np(d.node.attrs,t,{strict:!1}));return s?!!c.length:c.reduce((d,f)=>d+f.to-f.from,0)>=a}const dne=(n,e={})=>({state:t,dispatch:r})=>{const o=zn(n,t.schema);return xd(t,o,e)?nte(t,r):!1},fne=()=>({state:n,dispatch:e})=>ite(n,e),hne=n=>({state:e,dispatch:t})=>{const r=zn(n,e.schema);return pte(r)(e,t)},pne=()=>({state:n,dispatch:e})=>rte(n,e);function _g(n,e){return e.nodes[n]?"node":e.marks[n]?"mark":null}function MS(n,e){const t=typeof e=="string"?[e]:e;return Object.keys(n).reduce((r,o)=>(t.includes(o)||(r[o]=n[o]),r),{})}const gne=(n,e)=>({tr:t,state:r,dispatch:o})=>{let s=null,i=null;const l=_g(typeof n=="string"?n:n.name,r.schema);return l?(l==="node"&&(s=zn(n,r.schema)),l==="mark"&&(i=ml(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,MS(c.attrs,e)),i&&c.marks.length&&c.marks.forEach(d=>{i===d.type&&t.addMark(u,u+c.nodeSize,i.create(MS(d.attrs,e)))})})}),!0):!1},mne=()=>({tr:n,dispatch:e})=>(e&&n.scrollIntoView(),!0),vne=()=>({tr:n,commands:e})=>e.setTextSelection({from:0,to:n.doc.content.size}),bne=()=>({state:n,dispatch:e})=>Xee(n,e),yne=()=>({state:n,dispatch:e})=>Qee(n,e),wne=()=>({state:n,dispatch:e})=>lte(n,e),Cne=()=>({state:n,dispatch:e})=>ute(n,e),xne=()=>({state:n,dispatch:e})=>cte(n,e);function ab(n,e,t={},r={}){return rp(n,e,{slice:!1,parseOptions:t,errorOnInvalidContent:r.errorOnInvalidContent})}const Sne=(n,e=!1,t={},r={})=>({editor:o,tr:s,dispatch:i,commands:l})=>{var a,c;const{doc:u}=s;if(t.preserveWhitespace!=="full"){const d=ab(n,o.schema,t,{errorOnInvalidContent:(a=r.errorOnInvalidContent)!==null&&a!==void 0?a:o.options.enableContentCheck});return i&&s.replaceWith(0,u.content.size,d).setMeta("preventUpdate",!e),!0}return i&&s.setMeta("preventUpdate",!e),l.insertContentAt({from:0,to:u.content.size},n,{parseOptions:t,errorOnInvalidContent:(c=r.errorOnInvalidContent)!==null&&c!==void 0?c:o.options.enableContentCheck})};function lf(n,e){const t=ml(e,n.schema),{from:r,to:o,empty:s}=n.selection,i=[];s?(n.storedMarks&&i.push(...n.storedMarks),i.push(...n.selection.$head.marks())):n.doc.nodesBetween(r,o,a=>{i.push(...a.marks)});const l=i.find(a=>a.type.name===t.name);return l?{...l.attrs}:{}}function Ene(n){for(let e=0;e0;t-=1){const r=n.node(t);if(e(r))return{pos:t>0?n.before(t):0,start:n.start(t),depth:t,node:r}}}function f0(n){return e=>_ne(e.$from,n)}function Tne(n,e){const t=Ca.fromSchema(e).serializeFragment(n),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(t),o.innerHTML}function One(n,e){const t={from:0,to:n.content.size};return lk(n,t,e)}function Mne(n,e){const t=zn(e,n.schema),{from:r,to:o}=n.selection,s=[];n.doc.nodesBetween(r,o,l=>{s.push(l)});const i=s.reverse().find(l=>l.type.name===t.name);return i?{...i.attrs}:{}}function Ane(n,e){const t=_g(typeof e=="string"?e:e.name,n.schema);return t==="node"?Mne(n,e):t==="mark"?lf(n,e):{}}function fk(n,e,t){const r=[];return n===e?t.resolve(n).marks().forEach(o=>{const s=t.resolve(n-1),i=c0(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 yh(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 cb(n,e,t={}){const{empty:r,ranges:o}=n.selection,s=e?ml(e,n.schema):null;if(r)return!!(n.storedMarks||n.selection.$from.marks()).filter(d=>s?s.name===d.type.name:!0).find(d=>np(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,v)=>{if(!g.isText&&!g.marks.length)return;const m=Math.max(h,v),w=Math.min(p,v+g.nodeSize),b=w-m;i+=b,l.push(...g.marks.map(y=>({mark:y,from:m,to:w})))})}),i===0)return!1;const a=l.filter(d=>s?s.name===d.mark.type.name:!0).filter(d=>np(d.mark.attrs,t,{strict:!1})).reduce((d,f)=>d+f.to-f.from,0),c=l.filter(d=>s?d.mark.type!==s&&d.mark.type.excludes(s):!0).reduce((d,f)=>d+f.to-f.from,0);return(a>0?a+c:a)>=i}function kne(n,e,t={}){if(!e)return xd(n,null,t)||cb(n,null,t);const r=_g(e,n.schema);return r==="node"?xd(n,e,t):r==="mark"?cb(n,e,t):!1}function AS(n,e){const{nodeExtensions:t}=xg(e),r=t.find(i=>i.name===n);if(!r)return!1;const o={name:r.name,options:r.options,storage:r.storage},s=Ot(Ze(r,"group",o));return typeof s!="string"?!1:s.split(" ").includes("list")}function Pne(n){const e=n.type.createAndFill();return e?n.eq(e):!1}function hk(n){return n instanceof ct}function Nne(n,e,t){const o=n.state.doc.content.size,s=Fs(e,0,o),i=Fs(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,m={top:c,bottom:u,left:d,right:f,width:h,height:p,x:d,y:c};return{...m,toJSON:()=>m}}function Ine(n,e,t){var r;const{selection:o}=e;let s=null;if(u0(o)&&(s=o.$cursor),s){const l=(r=n.storedMarks)!==null&&r!==void 0?r:s.marks();return!!t.isInSet(l)||!l.some(a=>a.type.excludes(t))}const{ranges:i}=o;return i.some(({$from:l,$to:a})=>{let c=l.depth===0?n.doc.inlineContent&&n.doc.type.allowsMarkType(t):!1;return n.doc.nodesBetween(l.pos,a.pos,(u,d,f)=>{if(c)return!1;if(u.isInline){const h=!f||f.type.allowsMarkType(t),p=!!t.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(t));c=h&&p}return!c}),c})}const Lne=(n,e={})=>({tr:t,state:r,dispatch:o})=>{const{selection:s}=t,{empty:i,ranges:l}=s,a=ml(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(m=>m.type===a)?f.marks.forEach(m=>{a===m.type&&t.addMark(p,g,a.create({...m.attrs,...e}))}):t.addMark(p,g,a.create(e))})});return Ine(r,t,a)},Rne=(n,e)=>({tr:t})=>(t.setMeta(n,e),!0),$ne=(n,e={})=>({state:t,dispatch:r,chain:o})=>{const s=zn(n,t.schema);return s.isTextblock?o().command(({commands:i})=>SS(s,e)(t)?!0:i.clearNodes()).command(({state:i})=>SS(s,e)(i,r)).run():!1},Dne=n=>({tr:e,dispatch:t})=>{if(t){const{doc:r}=e,o=Fs(n,0,r.content.size),s=ct.create(r,o);e.setSelection(s)}return!0},Vne=n=>({tr:e,dispatch:t})=>{if(t){const{doc:r}=e,{from:o,to:s}=typeof n=="number"?{from:n,to:n}:n,i=Ct.atStart(r).from,l=Ct.atEnd(r).to,a=Fs(o,i,l),c=Fs(s,i,l),u=Ct.create(r,a,c);e.setSelection(u)}return!0},Bne=n=>({state:e,dispatch:t})=>{const r=zn(n,e.schema);return vte(r)(e,t)};function kS(n,e){const t=n.storedMarks||n.selection.$to.parentOffset&&n.selection.$from.marks();if(t){const r=t.filter(o=>e==null?void 0:e.includes(o.type.name));n.tr.ensureMarks(r)}}const Fne=({keepMarks:n=!0}={})=>({tr:e,state:t,dispatch:r,editor:o})=>{const{selection:s,doc:i}=e,{$from:l,$to:a}=s,c=o.extensionManager.attributes,u=yh(c,l.node().type.name,l.node().attrs);if(s instanceof ct&&s.node.isBlock)return!l.parentOffset||!Ga(i,l.pos)?!1:(r&&(n&&kS(t,o.extensionManager.splittableMarks),e.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;if(r){const d=a.parentOffset===a.parent.content.size;s instanceof Ct&&e.deleteSelection();const f=l.depth===0?void 0:Ene(l.node(-1).contentMatchAt(l.indexAfter(-1)));let h=d&&f?[{type:f,attrs:u}]:void 0,p=Ga(e.doc,e.mapping.map(l.pos),1,h);if(!h&&!p&&Ga(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()),v=e.doc.resolve(g);l.node(-1).canReplaceWith(v.index(),v.index()+1,f)&&e.setNodeMarkup(e.mapping.map(l.before()),f)}n&&kS(t,o.extensionManager.splittableMarks),e.scrollIntoView()}return!0},zne=n=>({tr:e,state:t,dispatch:r,editor:o})=>{var s;const i=zn(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 v=Ne.empty;const m=l.index(-1)?1:l.index(-2)?2:3;for(let T=l.depth-m;T>=l.depth-3;T-=1)v=Ne.from(l.node(T).copy(v));const w=l.indexAfter(-1){if(E>-1)return!1;T.isTextblock&&T.content.size===0&&(E=M+1)}),E>-1&&e.setSelection(Ct.near(e.doc.resolve(E))),e.scrollIntoView()}return!0}const f=a.pos===l.end()?u.contentMatchAt(0).defaultType:null,h=yh(d,u.type.name,u.attrs),p=yh(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(!Ga(e.doc,l.pos,2))return!1;if(r){const{selection:v,storedMarks:m}=t,{splittableMarks:w}=o.extensionManager,b=m||v.$to.parentOffset&&v.$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},Tm=(n,e)=>{const t=f0(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)&&pl(n.doc,t.pos)&&n.join(t.pos),!0},Om=(n,e)=>{const t=f0(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)&&pl(n.doc,r)&&n.join(r),!0},jne=(n,e,t,r={})=>({editor:o,tr:s,state:i,dispatch:l,chain:a,commands:c,can:u})=>{const{extensions:d,splittableMarks:f}=o.extensionManager,h=zn(n,i.schema),p=zn(e,i.schema),{selection:g,storedMarks:v}=i,{$from:m,$to:w}=g,b=m.blockRange(w),y=v||g.$to.parentOffset&&g.$from.marks();if(!b)return!1;const S=f0(E=>AS(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(AS(S.node.type.name,d)&&h.validContent(S.node.content)&&l)return a().command(()=>(s.setNodeMarkup(S.pos,h),!0)).command(()=>Tm(s,h)).command(()=>Om(s,h)).run()}return!t||!y||!l?a().command(()=>u().wrapInList(h,r)?!0:c.clearNodes()).wrapInList(h,r).command(()=>Tm(s,h)).command(()=>Om(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(()=>Tm(s,h)).command(()=>Om(s,h)).run()},Hne=(n,e={},t={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:s=!1}=t,i=ml(n,r.schema);return cb(r,i,e)?o.unsetMark(i,{extendEmptyMarkRange:s}):o.setMark(i,e)},Une=(n,e,t={})=>({state:r,commands:o})=>{const s=zn(n,r.schema),i=zn(e,r.schema);return xd(r,s,t)?o.setNode(i):o.setNode(s,t)},Wne=(n,e={})=>({state:t,commands:r})=>{const o=zn(n,t.schema);return xd(t,o,e)?r.lift(o):r.wrapIn(o,e)},Gne=()=>({state:n,dispatch:e})=>{const t=n.plugins;for(let r=0;r=0;a-=1)i.step(l.steps[a].invert(l.docs[a]));if(s.text){const a=i.doc.resolve(s.from).marks();i.replaceWith(s.from,s.to,n.schema.text(s.text,a))}else i.delete(s.from,s.to)}return!0}}return!1},qne=()=>({tr:n,dispatch:e})=>{const{selection:t}=n,{empty:r,ranges:o}=t;return r||e&&o.forEach(s=>{n.removeMark(s.$from.pos,s.$to.pos)}),!0},Kne=(n,e={})=>({tr:t,state:r,dispatch:o})=>{var s;const{extendEmptyMarkRange:i=!1}=e,{selection:l}=t,a=ml(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(v=>v.type===a))===null||s===void 0?void 0:s.attrs,g=c0(c,a,p);g&&(f=g.from,h=g.to),t.removeMark(f,h,a)}else d.forEach(f=>{t.removeMark(f.$from.pos,f.$to.pos,a)});return t.removeStoredMark(a),!0},Yne=(n,e={})=>({tr:t,state:r,dispatch:o})=>{let s=null,i=null;const l=_g(typeof n=="string"?n:n.name,r.schema);return l?(l==="node"&&(s=zn(n,r.schema)),l==="mark"&&(i=ml(n,r.schema)),o&&t.selection.ranges.forEach(a=>{const c=a.$from.pos,u=a.$to.pos;r.doc.nodesBetween(c,u,(d,f)=>{s&&s===d.type&&t.setNodeMarkup(f,void 0,{...d.attrs,...e}),i&&d.marks.length&&d.marks.forEach(h=>{if(i===h.type){const p=Math.max(f,c),g=Math.min(f+d.nodeSize,u);t.addMark(p,g,i.create({...h.attrs,...e}))}})})}),!0):!1},Jne=(n,e={})=>({state:t,dispatch:r})=>{const o=zn(n,t.schema);return dte(o,e)(t,r)},Xne=(n,e={})=>({state:t,dispatch:r})=>{const o=zn(n,t.schema);return fte(o,e)(t,r)};var Zne=Object.freeze({__proto__:null,blur:Lte,clearContent:Rte,clearNodes:$te,command:Dte,createParagraphNear:Vte,cut:Bte,deleteCurrentNode:Fte,deleteNode:zte,deleteRange:jte,deleteSelection:Hte,enter:Ute,exitCode:Wte,extendMarkRange:qte,first:Kte,focus:Yte,forEach:Jte,insertContent:Xte,insertContentAt:ene,joinBackward:rne,joinDown:nne,joinForward:one,joinItemBackward:sne,joinItemForward:ine,joinTextblockBackward:lne,joinTextblockForward:ane,joinUp:tne,keyboardShortcut:une,lift:dne,liftEmptyBlock:fne,liftListItem:hne,newlineInCode:pne,resetAttributes:gne,scrollIntoView:mne,selectAll:vne,selectNodeBackward:bne,selectNodeForward:yne,selectParentNode:wne,selectTextblockEnd:Cne,selectTextblockStart:xne,setContent:Sne,setMark:Lne,setMeta:Rne,setNode:$ne,setNodeSelection:Dne,setTextSelection:Vne,sinkListItem:Bne,splitBlock:Fne,splitListItem:zne,toggleList:jne,toggleMark:Hne,toggleNode:Une,toggleWrap:Wne,undoInputRule:Gne,unsetAllMarks:qne,unsetMark:Kne,updateAttributes:Yne,wrapIn:Jne,wrapInList:Xne});const Qne=ar.create({name:"commands",addCommands(){return{...Zne}}}),ere=ar.create({name:"editable",addProseMirrorPlugins(){return[new Gr({key:new oi("editable"),props:{editable:()=>this.editor.options.editable}})]}}),tre=ar.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:n}=this;return[new Gr({key:new oi("focusEvents"),props:{handleDOMEvents:{focus:(e,t)=>{n.isFocused=!0;const r=n.state.tr.setMeta("focus",{event:t}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,t)=>{n.isFocused=!1;const r=n.state.tr.setMeta("blur",{event:t}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),nre=ar.create({name:"keymap",addKeyboardShortcuts(){const n=()=>this.editor.commands.first(({commands:i})=>[()=>i.undoInputRule(),()=>i.command(({tr:l})=>{const{selection:a,doc:c}=l,{empty:u,$anchor:d}=a,{pos:f,parent:h}=d,p=d.parent.isTextblock&&f>0?l.doc.resolve(f-1):d,g=p.parent.type.spec.isolating,v=d.pos-d.parentOffset,m=g&&p.parent.childCount===1?v===d.pos:_t.atStart(c).from===f;return!u||!h.type.isTextblock||h.textContent.length||!m||m&&d.parent.type.name==="paragraph"?!1:i.clearNodes()}),()=>i.deleteSelection(),()=>i.joinBackward(),()=>i.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:i})=>[()=>i.deleteSelection(),()=>i.deleteCurrentNode(),()=>i.joinForward(),()=>i.selectNodeForward()]),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 d0()||dk()?s:o},addProseMirrorPlugins(){return[new Gr({key:new oi("clearDocument"),appendTransaction:(n,e,t)=>{if(!(n.some(p=>p.docChanged)&&!e.doc.eq(t.doc)))return;const{empty:o,from:s,to:i}=e.selection,l=_t.atStart(e.doc).from,a=_t.atEnd(e.doc).to;if(o||!(s===l&&i===a)||!(t.doc.textBetween(0,t.doc.content.size," "," ").length===0))return;const d=t.tr,f=wg({state:t,transaction:d}),{commands:h}=new Cg({editor:this.editor,state:f});if(h.clearNodes(),!!d.steps.length)return d}})]}}),rre=ar.create({name:"tabindex",addProseMirrorPlugins(){return[new Gr({key:new oi("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class Ll{get name(){return this.node.type.name}constructor(e,t,r=!1,o=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=e,this.editor=t,this.currentNode=o}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,r=this.to;if(this.isBlock){if(this.content.size===0)return;t=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:t,to:r},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),t=this.resolvedPos.doc.resolve(e);return new Ll(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 Ll(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 Ll(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 Ll(i,this.editor,o,o?t:null);o&&(l.actualDepth=this.depth+1),e.push(new Ll(i,this.editor,o,o?t:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,t={}){let r=null,o=this.parent;for(;o&&!r;){if(o.node.type.name===e)if(Object.keys(t).length>0){const s=o.node.attrs,i=Object.keys(t);for(let l=0;l{r&&o.length>0||(i.node.type.name===e&&s.every(a=>t[a]===i.node.attrs[a])&&o.push(i),!(r&&o.length>0)&&(o=o.concat(i.querySelectorAll(e,t,r))))}),o}setAttribute(e){const t=this.editor.state.selection;this.editor.chain().setTextSelection(this.from).updateAttributes(this.node.type.name,e).setTextSelection(t.from).run()}}const ore=`.ProseMirror { + position: relative; +} + +.ProseMirror { + word-wrap: break-word; + white-space: pre-wrap; + white-space: break-spaces; + -webkit-font-variant-ligatures: none; + font-variant-ligatures: none; + font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */ +} + +.ProseMirror [contenteditable="false"] { + white-space: normal; +} + +.ProseMirror [contenteditable="false"] [contenteditable="true"] { + white-space: pre-wrap; +} + +.ProseMirror pre { + white-space: pre-wrap; +} + +img.ProseMirror-separator { + display: inline !important; + border: none !important; + margin: 0 !important; + width: 1px !important; + height: 1px !important; +} + +.ProseMirror-gapcursor { + display: none; + pointer-events: none; + position: absolute; + margin: 0; +} + +.ProseMirror-gapcursor:after { + content: ""; + display: block; + position: absolute; + top: -2px; + width: 20px; + border-top: 1px solid black; + animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite; +} + +@keyframes ProseMirror-cursor-blink { + to { + visibility: hidden; + } +} + +.ProseMirror-hideselection *::selection { + background: transparent; +} + +.ProseMirror-hideselection *::-moz-selection { + background: transparent; +} + +.ProseMirror-hideselection * { + caret-color: transparent; +} + +.ProseMirror-focused .ProseMirror-gapcursor { + display: block; +} + +.tippy-box[data-animation=fade][data-state=hidden] { + opacity: 0 +}`;function sre(n,e,t){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const o=document.createElement("style");return e&&o.setAttribute("nonce",e),o.setAttribute("data-tiptap-style",""),o.innerHTML=n,document.getElementsByTagName("head")[0].appendChild(o),o}let ire=class extends bte{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:t})=>{throw t}},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=sre(ore,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const r=ik(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],o=this.state.reconfigure({plugins:r});this.view.updateState(o)}unregisterPlugin(e){if(this.isDestroyed)return;const t=typeof e=="string"?`${e}$`:e.key,r=this.state.reconfigure({plugins:this.state.plugins.filter(o=>!o.key.startsWith(t))});this.view.updateState(r)}createExtensionManager(){var e,t;const o=[...this.options.enableCoreExtensions?[ere,Ite.configure({blockSeparator:(t=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||t===void 0?void 0:t.blockSeparator}),Qne,tre,nre,rre]:[],...this.options.extensions].filter(s=>["extension","node","mark"].includes(s==null?void 0:s.type));this.extensionManager=new Ba(o,this)}createCommandManager(){this.commandManager=new Cg({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){let e;try{e=ab(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(s){if(!(s instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(s.message))throw s;this.emit("contentError",{editor:this,error:s,disableCollaboration:()=>{this.options.extensions=this.options.extensions.filter(i=>i.name!=="collaboration"),this.createExtensionManager()}}),e=ab(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const t=ck(e,this.options.autofocus);this.view=new Dee(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Va.create({doc:e,selection:t||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const o=this.view.dom;o.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(i=>{var l;return(l=this.capturedTransaction)===null||l===void 0?void 0:l.step(i)});return}const t=this.state.apply(e),r=!this.state.selection.eq(t.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:t}),this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const o=e.getMeta("focus"),s=e.getMeta("blur");o&&this.emit("focus",{editor:this,event:o.event,transaction:e}),s&&this.emit("blur",{editor:this,event:s.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return Ane(this.state,e)}isActive(e,t){const r=typeof e=="string"?e:null,o=typeof e=="string"?t:e;return kne(this.state,r,o)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Tne(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t=` + +`,textSerializers:r={}}=e||{};return One(this.state.doc,{blockSeparator:t,textSerializers:{...ak(this.schema),...r}})}get isEmpty(){return Pne(this.state.doc)}getCharacterCount(){return this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,t){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelector(e,t))||null}$nodes(e,t){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new Ll(t,this)}get $doc(){return this.$pos(0)}};function ua(n){return new Sg({find:n.find,handler:({state:e,range:t,match:r})=>{const o=Ot(n.getAttributes,void 0,r);if(o===!1||o===null)return null;const{tr:s}=e,i=r[r.length-1],l=r[0];if(i){const a=l.search(/\S/),c=t.from+l.indexOf(i),u=c+i.length;if(fk(t.from,t.to,e.doc).filter(h=>h.mark.type.excluded.find(g=>g===n.type&&g!==h.mark.type)).filter(h=>h.to>c).length)return null;ut.from&&s.delete(t.from+a,c);const f=t.from+a+i.length;s.addMark(t.from+a,f,n.type.create(o||{})),s.removeStoredMark(n.type)}}})}function lre(n){return new Sg({find:n.find,handler:({state:e,range:t,match:r})=>{const o=Ot(n.getAttributes,void 0,r)||{},{tr:s}=e,i=t.from;let l=t.to;const a=n.type.create(o);if(r[1]){const c=r[0].lastIndexOf(r[1]);let u=i+c;u>l?u=l:l=u+r[1].length;const d=r[0][r[0].length-1];s.insertText(d,i+r[0].length-1),s.replaceWith(u,l,a)}else if(r[0]){const c=n.type.isInline?i:i-1;s.insert(c,n.type.create(o)).delete(s.mapping.map(i),s.mapping.map(l))}s.scrollIntoView()}})}function ub(n){return new Sg({find:n.find,handler:({state:e,range:t,match:r})=>{const o=e.doc.resolve(t.from),s=Ot(n.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),n.type))return null;e.tr.delete(t.from,t.to).setBlockType(t.from,t.from,n.type,s)}})}function Sd(n){return new Sg({find:n.find,handler:({state:e,range:t,match:r,chain:o})=>{const s=Ot(n.getAttributes,void 0,r)||{},i=e.tr.delete(t.from,t.to),a=i.doc.resolve(t.from).blockRange(),c=a&&Jy(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(v=>h.includes(v.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&&pl(i.doc,t.from-1)&&(!n.joinPredicate||n.joinPredicate(r,u))&&i.join(t.from-1)}})}class Hr{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0,this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Ot(Ze(this,"addOptions",{name:this.name}))),this.storage=Ot(Ze(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Hr(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>Eg(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new Hr(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0,t.options=Ot(Ze(t,"addOptions",{name:t.name})),t.storage=Ot(Ze(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 qr=class db{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0,this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Ot(Ze(this,"addOptions",{name:this.name}))),this.storage=Ot(Ze(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new db(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>Eg(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new db(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0,t.options=Ot(Ze(t,"addOptions",{name:t.name})),t.storage=Ot(Ze(t,"addStorage",{name:t.name,options:t.options})),t}};function da(n){return new Tte({find:n.find,handler:({state:e,range:t,match:r,pasteEvent:o})=>{const s=Ot(n.getAttributes,void 0,r,o);if(s===!1||s===null)return null;const{tr:i}=e,l=r[r.length-1],a=r[0];let c=t.to;if(l){const u=a.search(/\S/),d=t.from+a.indexOf(l),f=d+l.length;if(fk(t.from,t.to,e.doc).filter(p=>p.mark.type.excluded.find(v=>v===n.type&&v!==p.mark.type)).filter(p=>p.to>d).length)return null;ft.from&&i.delete(t.from+u,d),c=t.from+u+l.length,i.addMark(t.from+u,c,n.type.create(s||{})),i.removeStoredMark(n.type)}}})}var are="tippy-box",pk="tippy-content",cre="tippy-backdrop",gk="tippy-arrow",mk="tippy-svg-arrow",Ml={passive:!0,capture:!0},vk=function(){return document.body};function Mm(n,e,t){if(Array.isArray(n)){var r=n[e];return r??(Array.isArray(t)?t[e]:t)}return n}function h0(n,e){var t={}.toString.call(n);return t.indexOf("[object")===0&&t.indexOf(e+"]")>-1}function bk(n,e){return typeof n=="function"?n.apply(void 0,e):n}function PS(n,e){if(e===0)return n;var t;return function(r){clearTimeout(t),t=setTimeout(function(){n(r)},e)}}function ure(n){return n.split(/\s+/).filter(Boolean)}function Ra(n){return[].concat(n)}function NS(n,e){n.indexOf(e)===-1&&n.push(e)}function dre(n){return n.filter(function(e,t){return n.indexOf(e)===t})}function fre(n){return n.split("-")[0]}function op(n){return[].slice.call(n)}function IS(n){return Object.keys(n).reduce(function(e,t){return n[t]!==void 0&&(e[t]=n[t]),e},{})}function Hu(){return document.createElement("div")}function Tg(n){return["Element","Fragment"].some(function(e){return h0(n,e)})}function hre(n){return h0(n,"NodeList")}function pre(n){return h0(n,"MouseEvent")}function gre(n){return!!(n&&n._tippy&&n._tippy.reference===n)}function mre(n){return Tg(n)?[n]:hre(n)?op(n):Array.isArray(n)?n:op(document.querySelectorAll(n))}function Am(n,e){n.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function LS(n,e){n.forEach(function(t){t&&t.setAttribute("data-state",e)})}function vre(n){var e,t=Ra(n),r=t[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function bre(n,e){var t=e.clientX,r=e.clientY;return n.every(function(o){var s=o.popperRect,i=o.popperState,l=o.props,a=l.interactiveBorder,c=fre(i.placement),u=i.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,f=c==="top"?u.bottom.y:0,h=c==="right"?u.left.x:0,p=c==="left"?u.right.x:0,g=s.top-r+d>a,v=r-s.bottom-f>a,m=s.left-t+h>a,w=t-s.right-p>a;return g||v||m||w})}function km(n,e,t){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){n[r](o,t)})}function RS(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 Qo={isTouch:!1},$S=0;function yre(){Qo.isTouch||(Qo.isTouch=!0,window.performance&&document.addEventListener("mousemove",yk))}function yk(){var n=performance.now();n-$S<20&&(Qo.isTouch=!1,document.removeEventListener("mousemove",yk)),$S=n}function wre(){var n=document.activeElement;if(gre(n)){var e=n._tippy;n.blur&&!e.state.isVisible&&n.blur()}}function Cre(){document.addEventListener("touchstart",yre,Ml),window.addEventListener("blur",wre)}var xre=typeof window<"u"&&typeof document<"u",Sre=xre?!!window.msCrypto:!1,Ere={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},_re={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Po=Object.assign({appendTo:vk,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Ere,_re),Tre=Object.keys(Po),Ore=function(e){var t=Object.keys(e);t.forEach(function(r){Po[r]=e[r]})};function wk(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=Po[s])!=null?l:i}return r},{});return Object.assign({},n,t)}function Mre(n,e){var t=e?Object.keys(wk(Object.assign({},Po,{plugins:e}))):Tre,r=t.reduce(function(o,s){var i=(n.getAttribute("data-tippy-"+s)||"").trim();if(!i)return o;if(s==="content")o[s]=i;else try{o[s]=JSON.parse(i)}catch{o[s]=i}return o},{});return r}function DS(n,e){var t=Object.assign({},e,{content:bk(e.content,[n])},e.ignoreAttributes?{}:Mre(n,e.plugins));return t.aria=Object.assign({},Po.aria,t.aria),t.aria={expanded:t.aria.expanded==="auto"?e.interactive:t.aria.expanded,content:t.aria.content==="auto"?e.interactive?null:"describedby":t.aria.content},t}var Are=function(){return"innerHTML"};function fb(n,e){n[Are()]=e}function VS(n){var e=Hu();return n===!0?e.className=gk:(e.className=mk,Tg(n)?e.appendChild(n):fb(e,n)),e}function BS(n,e){Tg(e.content)?(fb(n,""),n.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?fb(n,e.content):n.textContent=e.content)}function hb(n){var e=n.firstElementChild,t=op(e.children);return{box:e,content:t.find(function(r){return r.classList.contains(pk)}),arrow:t.find(function(r){return r.classList.contains(gk)||r.classList.contains(mk)}),backdrop:t.find(function(r){return r.classList.contains(cre)})}}function Ck(n){var e=Hu(),t=Hu();t.className=are,t.setAttribute("data-state","hidden"),t.setAttribute("tabindex","-1");var r=Hu();r.className=pk,r.setAttribute("data-state","hidden"),BS(r,n.props),e.appendChild(t),t.appendChild(r),o(n.props,n.props);function o(s,i){var l=hb(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)&&BS(c,n.props),i.arrow?u?s.arrow!==i.arrow&&(a.removeChild(u),a.appendChild(VS(i.arrow))):a.appendChild(VS(i.arrow)):u&&a.removeChild(u)}return{popper:e,onUpdate:o}}Ck.$$tippy=!0;var kre=1,Gf=[],Pm=[];function Pre(n,e){var t=DS(n,Object.assign({},Po,wk(IS(e)))),r,o,s,i=!1,l=!1,a=!1,c=!1,u,d,f,h=[],p=PS(I,t.interactiveDebounce),g,v=kre++,m=null,w=dre(t.plugins),b={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},y={id:v,reference:n,popper:Hu(),popperInstance:m,props:t,state:b,plugins:w,clearDelayTimeouts:te,setProps:ue,setContent:qe,show:ye,hide:H,hideWithInteractivity:xe,enable:ke,disable:se,unmount:Be,destroy:Ie};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(ae){return ae.fn(y)}),O=n.hasAttribute("aria-expanded");return Pe(),Q(),K(),W("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&&le().addEventListener("mousemove",p)}),y;function k(){var ae=y.props.touch;return Array.isArray(ae)?ae:[ae,0]}function P(){return k()[0]==="hold"}function L(){var ae;return!!((ae=y.props.render)!=null&&ae.$$tippy)}function j(){return g||n}function le(){var ae=j().parentNode;return ae?vre(ae):document}function N(){return hb(E)}function R(ae){return y.state.isMounted&&!y.state.isVisible||Qo.isTouch||u&&u.type==="focus"?0:Mm(y.props.delay,ae?0:1,Po.delay)}function K(ae){ae===void 0&&(ae=!1),E.style.pointerEvents=y.props.interactive&&!ae?"":"none",E.style.zIndex=""+y.props.zIndex}function W(ae,Le,De){if(De===void 0&&(De=!0),M.forEach(function(lt){lt[ae]&<[ae].apply(lt,Le)}),De){var rt;(rt=y.props)[ae].apply(rt,Le)}}function U(){var ae=y.props.aria;if(ae.content){var Le="aria-"+ae.content,De=E.id,rt=Ra(y.props.triggerTarget||n);rt.forEach(function(lt){var nn=lt.getAttribute(Le);if(y.state.isVisible)lt.setAttribute(Le,nn?nn+" "+De:De);else{var wn=nn&&nn.replace(De,"").trim();wn?lt.setAttribute(Le,wn):lt.removeAttribute(Le)}})}}function Q(){if(!(O||!y.props.aria.expanded)){var ae=Ra(y.props.triggerTarget||n);ae.forEach(function(Le){y.props.interactive?Le.setAttribute("aria-expanded",y.state.isVisible&&Le===j()?"true":"false"):Le.removeAttribute("aria-expanded")})}}function de(){le().removeEventListener("mousemove",p),Gf=Gf.filter(function(ae){return ae!==p})}function ee(ae){if(!(Qo.isTouch&&(a||ae.type==="mousedown"))){var Le=ae.composedPath&&ae.composedPath()[0]||ae.target;if(!(y.props.interactive&&RS(E,Le))){if(Ra(y.props.triggerTarget||n).some(function(De){return RS(De,Le)})){if(Qo.isTouch||y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else W("onClickOutside",[y,ae]);y.props.hideOnClick===!0&&(y.clearDelayTimeouts(),y.hide(),l=!0,setTimeout(function(){l=!1}),y.state.isMounted||Oe())}}}function Me(){a=!0}function fe(){a=!1}function Ce(){var ae=le();ae.addEventListener("mousedown",ee,!0),ae.addEventListener("touchend",ee,Ml),ae.addEventListener("touchstart",fe,Ml),ae.addEventListener("touchmove",Me,Ml)}function Oe(){var ae=le();ae.removeEventListener("mousedown",ee,!0),ae.removeEventListener("touchend",ee,Ml),ae.removeEventListener("touchstart",fe,Ml),ae.removeEventListener("touchmove",Me,Ml)}function ne(ae,Le){X(ae,function(){!y.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&Le()})}function ie(ae,Le){X(ae,Le)}function X(ae,Le){var De=N().box;function rt(lt){lt.target===De&&(km(De,"remove",rt),Le())}if(ae===0)return Le();km(De,"remove",d),km(De,"add",rt),d=rt}function me(ae,Le,De){De===void 0&&(De=!1);var rt=Ra(y.props.triggerTarget||n);rt.forEach(function(lt){lt.addEventListener(ae,Le,De),h.push({node:lt,eventType:ae,handler:Le,options:De})})}function Pe(){P()&&(me("touchstart",$,{passive:!0}),me("touchend",re,{passive:!0})),ure(y.props.trigger).forEach(function(ae){if(ae!=="manual")switch(me(ae,$),ae){case"mouseenter":me("mouseleave",re);break;case"focus":me(Sre?"focusout":"blur",he);break;case"focusin":me("focusout",he);break}})}function Ee(){h.forEach(function(ae){var Le=ae.node,De=ae.eventType,rt=ae.handler,lt=ae.options;Le.removeEventListener(De,rt,lt)}),h=[]}function $(ae){var Le,De=!1;if(!(!y.state.isEnabled||pe(ae)||l)){var rt=((Le=u)==null?void 0:Le.type)==="focus";u=ae,g=ae.currentTarget,Q(),!y.state.isVisible&&pre(ae)&&Gf.forEach(function(lt){return lt(ae)}),ae.type==="click"&&(y.props.trigger.indexOf("mouseenter")<0||i)&&y.props.hideOnClick!==!1&&y.state.isVisible?De=!0:J(ae),ae.type==="click"&&(i=!De),De&&!rt&&ce(ae)}}function I(ae){var Le=ae.target,De=j().contains(Le)||E.contains(Le);if(!(ae.type==="mousemove"&&De)){var rt=B().concat(E).map(function(lt){var nn,wn=lt._tippy,tn=(nn=wn.popperInstance)==null?void 0:nn.state;return tn?{popperRect:lt.getBoundingClientRect(),popperState:tn,props:t}:null}).filter(Boolean);bre(rt,ae)&&(de(),ce(ae))}}function re(ae){var Le=pe(ae)||y.props.trigger.indexOf("click")>=0&&i;if(!Le){if(y.props.interactive){y.hideWithInteractivity(ae);return}ce(ae)}}function he(ae){y.props.trigger.indexOf("focusin")<0&&ae.target!==j()||y.props.interactive&&ae.relatedTarget&&E.contains(ae.relatedTarget)||ce(ae)}function pe(ae){return Qo.isTouch?P()!==ae.type.indexOf("touch")>=0:!1}function Se(){_e();var ae=y.props,Le=ae.popperOptions,De=ae.placement,rt=ae.offset,lt=ae.getReferenceClientRect,nn=ae.moveTransition,wn=L()?hb(E).arrow:null,tn=lt?{getBoundingClientRect:lt,contextElement:lt.contextElement||j()}:n,dr={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(qo){var Te=qo.state;if(L()){var gf=N(),tu=gf.box;["placement","reference-hidden","escaped"].forEach(function(Ko){Ko==="placement"?tu.setAttribute("data-placement",Te.placement):Te.attributes.popper["data-popper-"+Ko]?tu.setAttribute("data-"+Ko,""):tu.removeAttribute("data-"+Ko)}),Te.attributes.popper={}}}},fr=[{name:"offset",options:{offset:rt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!nn}},dr];L()&&wn&&fr.push({name:"arrow",options:{element:wn,padding:3}}),fr.push.apply(fr,(Le==null?void 0:Le.modifiers)||[]),y.popperInstance=wO(tn,E,Object.assign({},Le,{placement:De,onFirstUpdate:f,modifiers:fr}))}function _e(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function D(){var ae=y.props.appendTo,Le,De=j();y.props.interactive&&ae===vk||ae==="parent"?Le=De.parentNode:Le=bk(ae,[De]),Le.contains(E)||Le.appendChild(E),y.state.isMounted=!0,Se()}function B(){return op(E.querySelectorAll("[data-tippy-root]"))}function J(ae){y.clearDelayTimeouts(),ae&&W("onTrigger",[y,ae]),Ce();var Le=R(!0),De=k(),rt=De[0],lt=De[1];Qo.isTouch&&rt==="hold"&<&&(Le=lt),Le?r=setTimeout(function(){y.show()},Le):y.show()}function ce(ae){if(y.clearDelayTimeouts(),W("onUntrigger",[y,ae]),!y.state.isVisible){Oe();return}if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ae.type)>=0&&i)){var Le=R(!1);Le?o=setTimeout(function(){y.state.isVisible&&y.hide()},Le):s=requestAnimationFrame(function(){y.hide()})}}function ke(){y.state.isEnabled=!0}function se(){y.hide(),y.state.isEnabled=!1}function te(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(s)}function ue(ae){if(!y.state.isDestroyed){W("onBeforeUpdate",[y,ae]),Ee();var Le=y.props,De=DS(n,Object.assign({},Le,IS(ae),{ignoreAttributes:!0}));y.props=De,Pe(),Le.interactiveDebounce!==De.interactiveDebounce&&(de(),p=PS(I,De.interactiveDebounce)),Le.triggerTarget&&!De.triggerTarget?Ra(Le.triggerTarget).forEach(function(rt){rt.removeAttribute("aria-expanded")}):De.triggerTarget&&n.removeAttribute("aria-expanded"),Q(),K(),T&&T(Le,De),y.popperInstance&&(Se(),B().forEach(function(rt){requestAnimationFrame(rt._tippy.popperInstance.forceUpdate)})),W("onAfterUpdate",[y,ae])}}function qe(ae){y.setProps({content:ae})}function ye(){var ae=y.state.isVisible,Le=y.state.isDestroyed,De=!y.state.isEnabled,rt=Qo.isTouch&&!y.props.touch,lt=Mm(y.props.duration,0,Po.duration);if(!(ae||Le||De||rt)&&!j().hasAttribute("disabled")&&(W("onShow",[y],!1),y.props.onShow(y)!==!1)){if(y.state.isVisible=!0,L()&&(E.style.visibility="visible"),K(),Ce(),y.state.isMounted||(E.style.transition="none"),L()){var nn=N(),wn=nn.box,tn=nn.content;Am([wn,tn],0)}f=function(){var fr;if(!(!y.state.isVisible||c)){if(c=!0,E.offsetHeight,E.style.transition=y.props.moveTransition,L()&&y.props.animation){var Ts=N(),qo=Ts.box,Te=Ts.content;Am([qo,Te],lt),LS([qo,Te],"visible")}U(),Q(),NS(Pm,y),(fr=y.popperInstance)==null||fr.forceUpdate(),W("onMount",[y]),y.props.animation&&L()&&ie(lt,function(){y.state.isShown=!0,W("onShown",[y])})}},D()}}function H(){var ae=!y.state.isVisible,Le=y.state.isDestroyed,De=!y.state.isEnabled,rt=Mm(y.props.duration,1,Po.duration);if(!(ae||Le||De)&&(W("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"),de(),Oe(),K(!0),L()){var lt=N(),nn=lt.box,wn=lt.content;y.props.animation&&(Am([nn,wn],rt),LS([nn,wn],"hidden"))}U(),Q(),y.props.animation?L()&&ne(rt,y.unmount):y.unmount()}}function xe(ae){le().addEventListener("mousemove",p),NS(Gf,p),p(ae)}function Be(){y.state.isVisible&&y.hide(),y.state.isMounted&&(_e(),B().forEach(function(ae){ae._tippy.unmount()}),E.parentNode&&E.parentNode.removeChild(E),Pm=Pm.filter(function(ae){return ae!==y}),y.state.isMounted=!1,W("onHidden",[y]))}function Ie(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),Ee(),delete n._tippy,y.state.isDestroyed=!0,W("onDestroy",[y]))}}function af(n,e){e===void 0&&(e={});var t=Po.plugins.concat(e.plugins||[]);Cre();var r=Object.assign({},e,{plugins:t}),o=mre(n),s=o.reduce(function(i,l){var a=l&&Pre(l,r);return a&&i.push(a),i},[]);return Tg(n)?s[0]:s}af.defaultProps=Po;af.setDefaultProps=Ore;af.currentInput=Qo;Object.assign({},Ty,{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:Ck});class Nre{constructor({editor:e,element:t,view:r,tippyOptions:o={},updateDelay:s=250,shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:l,state:a,from:c,to:u})=>{const{doc:d,selection:f}=a,{empty:h}=f,p=!d.textBetween(c,u).length&&u0(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:v}=p;if(g||!a&&!c)return;this.createTooltip();const{ranges:w}=v,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(hk(p.selection)){let E=l.nodeDOM(b);const T=E.dataset.nodeViewWrapper?E:E.querySelector("[data-node-view-wrapper]");if(T&&(E=T.firstChild),E)return E.getBoundingClientRect()}return Nne(l,b,y)})}),this.show()},this.editor=e,this.element=t,this.view=r,this.updateDelay=s,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=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!==r.selection.to;if(this.updateDelay>0&&o){this.handleDebouncedUpdate(e,t);return}const s=!(t!=null&&t.selection.eq(e.state.selection)),i=!(t!=null&&t.doc.eq(e.state.doc));this.updateHandler(e,s,i,t)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const xk=n=>new Gr({key:typeof n.pluginKey=="string"?new oi(n.pluginKey):n.pluginKey,view:e=>new Nre({view:e,...n})});ar.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[xk({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});const Ire=ge({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=V(null);return ot(()=>{const{updateDelay:r,editor:o,pluginKey:s,shouldShow:i,tippyOptions:l}=n;o.registerPlugin(xk({updateDelay:r,editor:o,element:t.value,pluginKey:s,shouldShow:i,tippyOptions:l}))}),_n(()=>{const{pluginKey:r,editor:o}=n;o.unregisterPlugin(r)}),()=>{var r;return Qe("div",{ref:t},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});function FS(n){return nI((e,t)=>({get(){return e(),n},set(r){n=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t()})})}}))}class Lre extends ire{constructor(e={}){return super(e),this.contentComponent=null,this.appContext=null,this.reactiveState=FS(this.view.state),this.reactiveExtensionStorage=FS(this.extensionStorage),this.on("beforeTransaction",({nextState:t})=>{this.reactiveState.value=t,this.reactiveExtensionStorage.value=this.extensionStorage}),Ju(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,t){super.registerPlugin(e,t),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const Rre=ge({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(n){const e=V(),t=vt();return ss(()=>{const r=n.editor;r&&r.options.element&&e.value&&it(()=>{if(!e.value||!r.options.element.firstChild)return;const o=x(e.value);e.value.append(...r.options.element.childNodes),r.contentComponent=t.ctx._,t&&(r.appContext={...t.appContext,provides:{...t.provides,...t.appContext.provides}}),r.setOptions({element:o}),r.createNodeViews()})}),_n(()=>{const r=n.editor;if(!r||(r.isDestroyed||r.view.setProps({nodeViews:{}}),r.contentComponent=null,r.appContext=null,!r.options.element.firstChild))return;const o=document.createElement("div");o.append(...r.options.element.childNodes),r.setOptions({element:o})}),{rootEl:e}},render(){return Qe("div",{ref:n=>{this.rootEl=n}})}}),$re=/^\s*>\s$/,Dre=qr.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:n}){return["blockquote",dn(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:$re,type:this.type})]}}),Vre=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,Bre=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,Fre=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,zre=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,jre=Hr.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",dn(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[ua({find:Vre,type:this.type}),ua({find:Fre,type:this.type})]},addPasteRules(){return[da({find:Bre,type:this.type}),da({find:zre,type:this.type})]}}),Hre=qr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",dn(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)}}}),zS=Hr.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",dn(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)}}}}),jS=/^\s*([-+*])\s$/,Ure=qr.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",dn(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Hre.name,this.editor.getAttributes(zS.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:jS,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Sd({find:jS,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(zS.name),editor:this.editor})),[n]}}),Wre=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,Gre=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,qre=Hr.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:n}){return["code",dn(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[ua({find:Wre,type:this.type})]},addPasteRules(){return[da({find:Gre,type:this.type})]}}),Kre=/^```([a-z]+)?[\s\n]$/,Yre=/^~~~([a-z]+)?[\s\n]$/,Jre=qr.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",dn(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[ub({find:Kre,type:this.type,getAttributes:n=>({language:n[1]})}),ub({find:Yre,type:this.type,getAttributes:n=>({language:n[1]})})]},addProseMirrorPlugins(){return[new Gr({key:new oi("codeBlockVSCodeHandler"),props:{handlePaste:(n,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const t=e.clipboardData.getData("text/plain"),r=e.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,s=o==null?void 0:o.mode;if(!t||!s)return!1;const{tr:i,schema:l}=n.state,a=l.text(t.replace(/\r\n?/g,` +`));return i.replaceSelectionWith(this.type.create({language:s},a)),i.selection.$from.parent.type!==this.type&&i.setSelection(Ct.near(i.doc.resolve(Math.max(0,i.selection.from-2)))),i.setMeta("paste",!0),n.dispatch(i),!0}}})]}}),Xre=qr.create({name:"doc",topNode:!0,content:"block+"});function Zre(n={}){return new Gr({view(e){return new Qre(e,n)}})}class Qre{constructor(e,t){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=t.width)!==null&&r!==void 0?r:1,this.color=t.color===!1?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let s=i=>{this[o](i)};return e.dom.addEventListener(o,s),{name:o,handler:s}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){this.cursorPos!=null&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent,r;if(t){let l=e.nodeBefore,a=e.nodeAfter;if(l||a){let c=this.editorView.nodeDOM(this.cursorPos-(l?l.nodeSize:0));if(c){let u=c.getBoundingClientRect(),d=l?u.bottom:u.top;l&&a&&(d=(d+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:u.left,right:u.right,top:d-this.width/2,bottom:d+this.width/2}}}}if(!r){let l=this.editorView.coordsAtPos(this.cursorPos);r={left:l.left-this.width/2,right:l.left+this.width/2,top:l.top,bottom:l.bottom}}let o=this.editorView.dom.offsetParent;this.element||(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",t),this.element.classList.toggle("prosemirror-dropcursor-inline",!t);let s,i;if(!o||o==document.body&&getComputedStyle(o).position=="static")s=-pageXOffset,i=-pageYOffset;else{let l=o.getBoundingClientRect();s=l.left-o.scrollLeft,i=l.top-o.scrollTop}this.element.style.left=r.left-s+"px",this.element.style.top=r.top-i+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),o=r&&r.type.spec.disableDropCursor,s=typeof o=="function"?o(this.editorView,t,e):o;if(t&&!s){let i=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=fA(this.editorView.state.doc,i,this.editorView.dragging.slice);l!=null&&(i=l)}this.setCursor(i),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}const eoe=ar.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[Zre(this.options)]}});class an extends _t{constructor(e){super(e,e)}map(e,t){let r=e.resolve(t.map(this.head));return an.valid(r)?new an(r):_t.near(r)}content(){return Ge.empty}eq(e){return e instanceof an&&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 an(e.resolve(t.pos))}getBookmark(){return new p0(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!toe(e)||!noe(e))return!1;let r=t.type.spec.allowGapCursor;if(r!=null)return r;let o=t.contentMatchAt(e.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(e,t,r=!1){e:for(;;){if(!r&&an.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(an.valid(a))return a}for(;;){let i=t>0?s.firstChild:s.lastChild;if(!i){if(s.isAtom&&!s.isText&&!ct.isSelectable(s)){e=e.doc.resolve(o+s.nodeSize*t),r=!1;continue e}break}s=i,o+=t;let l=e.doc.resolve(o);if(an.valid(l))return l}return null}}}an.prototype.visible=!1;an.findFrom=an.findGapCursorFrom;_t.jsonID("gapcursor",an);class p0{constructor(e){this.pos=e}map(e){return new p0(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return an.valid(t)?new an(t):_t.near(t)}}function toe(n){for(let e=n.depth;e>=0;e--){let t=n.index(e),r=n.node(e);if(t==0){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(t-1);;o=o.lastChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function noe(n){for(let e=n.depth;e>=0;e--){let t=n.indexAfter(e),r=n.node(e);if(t==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(t);;o=o.firstChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function roe(){return new Gr({props:{decorations:loe,createSelectionBetween(n,e,t){return e.pos==t.pos&&an.valid(t)?new an(t):null},handleClick:soe,handleKeyDown:ooe,handleDOMEvents:{beforeinput:ioe}}})}const ooe=ZA({ArrowLeft:qf("horiz",-1),ArrowRight:qf("horiz",1),ArrowUp:qf("vert",-1),ArrowDown:qf("vert",1)});function qf(n,e){const t=n=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,o,s){let i=r.selection,l=e>0?i.$to:i.$from,a=i.empty;if(i instanceof Ct){if(!s.endOfTextblock(t)||l.depth==0)return!1;a=!1,l=r.doc.resolve(e>0?l.after():l.before())}let c=an.findGapCursorFrom(l,e,a);return c?(o&&o(r.tr.setSelection(new an(c))),!0):!1}}function soe(n,e,t){if(!n||!n.editable)return!1;let r=n.state.doc.resolve(e);if(!an.valid(r))return!1;let o=n.posAtCoords({left:t.clientX,top:t.clientY});return o&&o.inside>-1&&ct.isSelectable(n.state.doc.nodeAt(o.inside))?!1:(n.dispatch(n.state.tr.setSelection(new an(r))),!0)}function ioe(n,e){if(e.inputType!="insertCompositionText"||!(n.state.selection instanceof an))return!1;let{$from:t}=n.state.selection,r=t.parent.contentMatchAt(t.index()).findWrapping(n.state.schema.nodes.text);if(!r)return!1;let o=Ne.empty;for(let i=r.length-1;i>=0;i--)o=Ne.from(r[i].createAndFill(null,o));let s=n.state.tr.replace(t.pos,t.pos,new Ge(o,0,0));return s.setSelection(Ct.near(s.doc.resolve(t.pos+1))),n.dispatch(s),!1}function loe(n){if(!(n.selection instanceof an))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Mn.create(n.doc,[so.widget(n.selection.head,e,{key:"gapcursor"})])}const aoe=ar.create({name:"gapCursor",addProseMirrorPlugins(){return[roe()]},extendNodeSchema(n){var e;const t={name:n.name,options:n.options,storage:n.storage};return{allowGapCursor:(e=Ot(Ze(n,"allowGapCursor",t)))!==null&&e!==void 0?e:null}}}),coe=qr.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",dn(this.options.HTMLAttributes,n)]},renderText(){return` +`},addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:o,storedMarks:s}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:i}=this.options,{splittableMarks:l}=r.extensionManager,a=s||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&a&&i){const d=a.filter(f=>l.includes(f.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),uoe=qr.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]}`,dn(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=>ub({find:new RegExp(`^(#{1,${n}})\\s$`),type:this.type,getAttributes:{level:n}}))}});var sp=200,Bn=function(){};Bn.prototype.append=function(e){return e.length?(e=Bn.from(e),!this.length&&e||e.length=t?Bn.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))};Bn.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};Bn.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)};Bn.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};Bn.from=function(e){return e instanceof Bn?e:e&&e.length?new Sk(e):Bn.empty};var Sk=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<=sp)return new e(this.values.concat(o.flatten()))},e.prototype.leafPrepend=function(o){if(this.length+o.length<=sp)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}(Bn);Bn.empty=new Sk([]);var doe=function(n){function e(t,r){n.call(this),this.left=t,this.right=r,this.length=t.length+r.length,this.depth=Math.max(t.depth,r.depth)+1}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return rl&&this.right.forEachInner(r,Math.max(o-l,0),Math.min(this.length,s)-l,i+l)===!1)return!1},e.prototype.forEachInvertedInner=function(r,o,s,i){var l=this.left.length;if(o>l&&this.right.forEachInvertedInner(r,o-l,Math.max(s,l)-l,i+l)===!1||s=s?this.right.slice(r-s,o-s):this.left.slice(r,s).append(this.right.slice(0,o-s))},e.prototype.leafAppend=function(r){var o=this.right.leafAppend(r);if(o)return new e(this.left,o)},e.prototype.leafPrepend=function(r){var o=this.left.leafPrepend(r);if(o)return new e(o,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e}(Bn);const foe=500;class To{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 Xo(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 Xo(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 To(this.items.slice(0,r).append(u.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:a,transform:i,selection:l}}addTransform(e,t,r,o){let s=[],i=this.eventCount,l=this.items,a=!o&&l.length?l.get(l.length-1):null;for(let u=0;upoe&&(l=hoe(l,c),i-=c),new To(l.append(s),i)}remapping(e,t){let r=new Wa;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 To(this.items.append(e.map(t=>new Xo(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]),v=f.selection&&f.selection.map(s.slice(a+1,h));v&&l++,r.push(new Xo(p,g,v))}else r.push(new Xo(p))},o);let c=[];for(let f=t;ffoe&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),r=t.maps.length,o=[],s=0;return this.items.forEach((i,l)=>{if(l>=e)o.push(i),i.selection&&s++;else if(i.step){let a=i.step.map(t.slice(r)),c=a&&a.getMap();if(r--,c&&t.appendMap(c,r),a){let u=i.selection&&i.selection.map(t.slice(r));u&&s++;let d=new Xo(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 To(Bn.from(o.reverse()),s)}}To.empty=new To(Bn.empty,0);function hoe(n,e){let t;return n.forEach((r,o)=>{if(r.selection&&e--==0)return t=o,!1}),n.slice(t)}class Xo{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 Xo(t.getMap().invert(),t,this.selection)}}}class Ti{constructor(e,t,r,o,s){this.done=e,this.undone=t,this.prevRanges=r,this.prevTime=o,this.prevComposition=s}}const poe=20;function goe(n,e,t,r){let o=t.getMeta(Ql),s;if(o)return o.historyState;t.getMeta(boe)&&(n=new Ti(n.done,n.undone,null,0,-1));let i=t.getMeta("appendedTransaction");if(t.steps.length==0)return n;if(i&&i.getMeta(Ql))return i.getMeta(Ql).redo?new Ti(n.done.addTransform(t,void 0,r,wh(e)),n.undone,HS(t.mapping.maps),n.prevTime,n.prevComposition):new Ti(n.done,n.undone.addTransform(t,void 0,r,wh(e)),null,n.prevTime,n.prevComposition);if(t.getMeta("addToHistory")!==!1&&!(i&&i.getMeta("addToHistory")===!1)){let l=t.getMeta("composition"),a=n.prevTime==0||!i&&n.prevComposition!=l&&(n.prevTime<(t.time||0)-r.newGroupDelay||!moe(t,n.prevRanges)),c=i?Nm(n.prevRanges,t.mapping):HS(t.mapping.maps);return new Ti(n.done.addTransform(t,a?e.selection.getBookmark():void 0,r,wh(e)),To.empty,c,t.time,l??n.prevComposition)}else return(s=t.getMeta("rebased"))?new Ti(n.done.rebased(t,s),n.undone.rebased(t,s),Nm(n.prevRanges,t.mapping),n.prevTime,n.prevComposition):new Ti(n.done.addMaps(t.mapping.maps),n.undone.addMaps(t.mapping.maps),Nm(n.prevRanges,t.mapping),n.prevTime,n.prevComposition)}function moe(n,e){if(!e)return!1;if(!n.docChanged)return!0;let t=!1;return n.mapping.maps[0].forEach((r,o)=>{for(let s=0;s=e[s]&&(t=!0)}),t}function HS(n){let e=[];for(let t=n.length-1;t>=0&&e.length==0;t--)n[t].forEach((r,o,s,i)=>e.push(s,i));return e}function Nm(n,e){if(!n)return null;let t=[];for(let r=0;r{let o=Ql.getState(t);if(!o||(n?o.undone:o.done).eventCount==0)return!1;if(r){let s=voe(o,t,n);s&&r(e?s.scrollIntoView():s)}return!0}}const _k=Ek(!1,!0),Tk=Ek(!0,!0),woe=ar.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:n,dispatch:e})=>_k(n,e),redo:()=>({state:n,dispatch:e})=>Tk(n,e)}},addProseMirrorPlugins(){return[yoe(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),Coe=qr.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:n}){return["hr",dn(this.options.HTMLAttributes,n)]},addCommands(){return{setHorizontalRule:()=>({chain:n,state:e})=>{const{selection:t}=e,{$from:r,$to:o}=t,s=n();return r.parentOffset===0?s.insertContentAt({from:Math.max(r.pos-1,0),to:o.pos},{type:this.name}):hk(t)?s.insertContentAt(o.pos,{type:this.name}):s.insertContent({type:this.name}),s.command(({tr:i,dispatch:l})=>{var a;if(l){const{$to:c}=i.selection,u=c.end();if(c.nodeAfter)c.nodeAfter.isTextblock?i.setSelection(Ct.create(i.doc,c.pos+1)):c.nodeAfter.isBlock?i.setSelection(ct.create(i.doc,c.pos)):i.setSelection(Ct.create(i.doc,c.pos));else{const d=(a=c.parent.type.contentMatch.defaultType)===null||a===void 0?void 0:a.create();d&&(i.insert(u,d),i.setSelection(Ct.create(i.doc,u+1)))}i.scrollIntoView()}return!0}).run()}}},addInputRules(){return[lre({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),xoe=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,Soe=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,Eoe=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,_oe=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,Toe=Hr.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",dn(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[ua({find:xoe,type:this.type}),ua({find:Eoe,type:this.type})]},addPasteRules(){return[da({find:Soe,type:this.type}),da({find:_oe,type:this.type})]}}),Ooe=qr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",dn(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Moe=qr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",dn(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)}}}),WS=Hr.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",dn(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)}}}}),GS=/^(\d+)\.\s$/,Aoe=qr.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",dn(this.options.HTMLAttributes,t),0]:["ol",dn(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Moe.name,this.editor.getAttributes(WS.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:GS,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:GS,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(WS.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),koe=qr.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:n}){return["p",dn(this.options.HTMLAttributes,n),0]},addCommands(){return{setParagraph:()=>({commands:n})=>n.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Poe=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,Noe=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,Ioe=Hr.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",dn(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[ua({find:Poe,type:this.type})]},addPasteRules(){return[da({find:Noe,type:this.type})]}}),Loe=qr.create({name:"text",group:"inline"}),Roe=ar.create({name:"starterKit",addExtensions(){var n,e,t,r,o,s,i,l,a,c,u,d,f,h,p,g,v,m;const w=[];return this.options.bold!==!1&&w.push(jre.configure((n=this.options)===null||n===void 0?void 0:n.bold)),this.options.blockquote!==!1&&w.push(Dre.configure((e=this.options)===null||e===void 0?void 0:e.blockquote)),this.options.bulletList!==!1&&w.push(Ure.configure((t=this.options)===null||t===void 0?void 0:t.bulletList)),this.options.code!==!1&&w.push(qre.configure((r=this.options)===null||r===void 0?void 0:r.code)),this.options.codeBlock!==!1&&w.push(Jre.configure((o=this.options)===null||o===void 0?void 0:o.codeBlock)),this.options.document!==!1&&w.push(Xre.configure((s=this.options)===null||s===void 0?void 0:s.document)),this.options.dropcursor!==!1&&w.push(eoe.configure((i=this.options)===null||i===void 0?void 0:i.dropcursor)),this.options.gapcursor!==!1&&w.push(aoe.configure((l=this.options)===null||l===void 0?void 0:l.gapcursor)),this.options.hardBreak!==!1&&w.push(coe.configure((a=this.options)===null||a===void 0?void 0:a.hardBreak)),this.options.heading!==!1&&w.push(uoe.configure((c=this.options)===null||c===void 0?void 0:c.heading)),this.options.history!==!1&&w.push(woe.configure((u=this.options)===null||u===void 0?void 0:u.history)),this.options.horizontalRule!==!1&&w.push(Coe.configure((d=this.options)===null||d===void 0?void 0:d.horizontalRule)),this.options.italic!==!1&&w.push(Toe.configure((f=this.options)===null||f===void 0?void 0:f.italic)),this.options.listItem!==!1&&w.push(Ooe.configure((h=this.options)===null||h===void 0?void 0:h.listItem)),this.options.orderedList!==!1&&w.push(Aoe.configure((p=this.options)===null||p===void 0?void 0:p.orderedList)),this.options.paragraph!==!1&&w.push(koe.configure((g=this.options)===null||g===void 0?void 0:g.paragraph)),this.options.strike!==!1&&w.push(Ioe.configure((v=this.options)===null||v===void 0?void 0:v.strike)),this.options.text!==!1&&w.push(Loe.configure((m=this.options)===null||m===void 0?void 0:m.text)),w}}),$oe=Hr.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",dn(this.options.HTMLAttributes,n),0]},addCommands(){return{setUnderline:()=>({commands:n})=>n.setMark(this.name),toggleUnderline:()=>({commands:n})=>n.toggleMark(this.name),unsetUnderline:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),Doe=Hr.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",dn(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)}}}}),Voe=ar.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:n=>{var e;return(e=n.style.color)===null||e===void 0?void 0:e.replace(/['"]+/g,"")},renderHTML:n=>n.color?{style:`color: ${n.color}`}:{}}}}]},addCommands(){return{setColor:n=>({chain:e})=>e().setMark("textStyle",{color:n}).run(),unsetColor:()=>({chain:n})=>n().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),Boe=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,Foe=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,zoe=Hr.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",dn(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[ua({find:Boe,type:this.type})]},addPasteRules(){return[da({find:Foe,type:this.type})]}}),joe=ar.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:n=>{const e=n.style.textAlign||this.options.defaultAlignment;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:n=>n.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${n.textAlign}`}}}}]},addCommands(){return{setTextAlign:n=>({commands:e})=>this.options.alignments.includes(n)?this.options.types.map(t=>e.updateAttributes(t,{textAlign:n})).every(t=>t):!1,unsetTextAlign:()=>({commands:n})=>this.options.types.map(e=>n.resetAttributes(e,"textAlign")).every(e=>e)}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),Hoe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Uoe=F("path",{fill:"currentColor",d:"M3 21v-2h18v2zm0-4v-2h12v2zm0-4v-2h18v2zm0-4V7h12v2zm0-4V3h18v2z"},null,-1),Woe=[Uoe];function Goe(n,e){return A(),q("svg",Hoe,[...Woe])}const qoe={name:"material-symbols-format-align-left",render:Goe},Koe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Yoe=F("path",{fill:"currentColor",d:"M3 21v-2h18v2zm4-4v-2h10v2zm-4-4v-2h18v2zm4-4V7h10v2zM3 5V3h18v2z"},null,-1),Joe=[Yoe];function Xoe(n,e){return A(),q("svg",Koe,[...Joe])}const Zoe={name:"material-symbols-format-align-center",render:Xoe},Qoe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ese=F("path",{fill:"currentColor",d:"M3 5V3h18v2zm6 4V7h12v2zm-6 4v-2h18v2zm6 4v-2h12v2zm-6 4v-2h18v2z"},null,-1),tse=[ese];function nse(n,e){return A(),q("svg",Qoe,[...tse])}const rse={name:"material-symbols-format-align-right",render:nse},ose={viewBox:"0 0 256 256",width:"1.2em",height:"1.2em"},sse=F("path",{fill:"currentColor",d:"M216 48h-40v-8a24 24 0 0 0-24-24h-48a24 24 0 0 0-24 24v8H40a8 8 0 0 0 0 16h8v144a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16V64h8a8 8 0 0 0 0-16M96 40a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v8H96Zm96 168H64V64h128Zm-80-104v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0m48 0v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0"},null,-1),ise=[sse];function lse(n,e){return A(),q("svg",ose,[...ise])}const ase={name:"ph-trash",render:lse},cse=ge({name:"DialogNode",setup(){const{t:n,tm:e,rt:t}=on();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(Zn(e,this.nodeData),this.setPreview(),this.nodeData.newNode){this.nodeData.nodeName+=e.nodeCnt.toString();const r=ql();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}),it(()=>{this.setPortPos()});const{robotId:t}=He("robotId");this.robotId=t,this.robotType=eJ(this.robotId),this.robotType=="TextBot"&&(this.editor=new Lre({extensions:[Voe,zoe.configure({multicolor:!0}),Roe,$oe,Doe,joe.configure({types:["heading","paragraph"]})],content:this.nodeData.dialogText,editorProps:{transformPastedText(r){return r.replace(/\u200B/g,"").replace(/\xA0/g," ")},transformPastedHTML(r){return r.replace(/\u200B/g,"").replace(/\xA0/g," ")}},onUpdate:()=>{this.$emit("update:modelValue",this.editor.getHTML()),this.nodeData.dialogText=this.editor.getHTML()}}),this.$emit("update:modelValue",this.nodeData.dialogText))},beforeUnmount(){this.editor&&this.editor.destroy()},methods:{hideForm(){this.nodeSetFormVisible=!1},validate(){const n=this.nodeData,e=n.invalidMessages;e.splice(0,e.length),n.nodeName||e.push(this.tm("lang.dialogNode.errors")[0]),n.dialogText.length<1&&e.push(this.tm("lang.dialogNode.errors")[1]),n.dialogText.length>200&&e.push(this.tm("lang.dialogNode.errors")[2]),n.valid=e.length==0},getTextWidth(){return this.$refs.nodeAnswer.offsetWidth},setPreview(){let n=this.nodeData.dialogText.replace(/<[^>]+>/g,"").replace(/\r/g,"");if(n){const e=n.split(` +`);e.length>3&&e.splice(3,e.length-3,"......");const t=this.getNode();e.forEach(function(r,o,s){if(this.$refs.nodeAnswer.getBoundingClientRect().width>t.size().width){const i=(this.$refs.nodeAnswer.scrollWidth-t.size().width)/t.size().width;s[o]=r.substring(0,Math.floor(i*r.length)-5)+"..."}},this),n=e.join(` +`),it(()=>{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")vr.confirm("Switch to plain text and all styles will be lost. Whether to continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{const n=this.nodeData.dialogText.replace(/<\/p>/g,` +`).trim(),e=/(<([^>]+)>)/ig;this.nodeData.dialogText=n.replace(e,"")}).catch(()=>{this.textEditor="2"});else{const n="

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

")+"

";this.$refs.editor.setContent(n)}},async genText(){const n=[{role:"user",content:this.genTextReq.user}];this.genTextReq.system&&n.push({role:"system",content:this.genTextReq.system});const e={robot_id:this.robotId,prompt:JSON.stringify(n)};this.textGenerating=!0,this.genTextBtnText="Generating",this.generatedText="";const o=(await fetch("http://localhost:12715/ai/text/generation",{method:"POST",headers:{"Content-Type":"text/event-stream"},body:JSON.stringify(e)})).body.pipeThrough(new TextDecoderStream).getReader();for(;;){const{value:s,done:i}=await o.read();if(this.processGenedText(s),i){if(this.textGenerating=!1,this.genTextVisible=!1,this.editor){const l=this.editor.state.doc.content.size;this.editor.commands.insertContentAt(l,this.generatedText)}else this.nodeData.dialogText+=this.generatedText;break}}},processGenedText(n){if(n==null||n==null)return;const e=n.split(` + +`);let t="";e.forEach((r,o,s)=>{r.split(` +`).forEach((l,a,c)=>{if(l.indexOf("data: ")==0){let u=l.substring(6);u.length>0&&(t+=u)}})}),t.length>0&&(this.generatedText+=t)},showColorPicker(){this.$refs.colorPicker.click()}},components:{EpPlus:Vu,EpWarning:hl,RiBold:eX,RiItalic:sX,RiStrikethrough:uX,RiUnderline:gX,MaterialSymbolsFormatAlignLeft:qoe,MaterialSymbolsFormatAlignCenter:Zoe,MaterialSymbolsFormatAlignRight:rse,BiHighlighter:_X,RiFontColor:wX,RiHeading:kX,RiListUnordered:RX,RiListOrdered:FX,RiChatQuoteLine:WX,IcBaselineHorizontalRule:JX,PhTrash:ase,IcBaselineUndo:tZ,IcBaselineRedo:iZ,EditorContent:Rre,BubbleMenu:Ire},props:{modelValue:{type:String,default:""}},emits:["update:modelValue"],watch:{modelValue(n){this.editor.getHTML()!==n&&this.editor.commands.setContent(n,!1)}}}),use={class:"nodeBox"},dse={ref:"nodeName",class:"nodeTitle"},fse={key:2,class:"menubar"},hse={class:"demo-drawer__footer"},pse={class:"dialog-footer"},gse={class:"dialog-footer"};function mse(n,e,t,r,o,s){const i=at("EpWarning"),l=dt,a=Lr,c=yn,u=nr,d=at("bubble-menu"),f=at("RiBold"),h=Tn,p=at("RiItalic"),g=at("RiStrikethrough"),v=at("RiUnderline"),m=at("MaterialSymbolsFormatAlignLeft"),w=at("MaterialSymbolsFormatAlignCenter"),b=at("MaterialSymbolsFormatAlignRight"),y=at("BiHighlighter"),S=at("RiFontColor"),E=at("RiHeading"),T=at("RiListUnordered"),M=at("RiListOrdered"),O=at("RiChatQuoteLine"),k=at("IcBaselineHorizontalRule"),P=at("PhTrash"),L=at("IcBaselineUndo"),j=at("IcBaselineRedo"),le=Fy,N=at("editor-content"),R=at("EpPlus"),K=Es,W=Ss,U=tr,Q=Cs,de=fl;return A(),q("div",use,[F("div",dse,[G(oe(n.nodeData.nodeName)+" ",1),$e(F("span",null,[C(a,{class:"box-item",effect:"dark",content:n.nodeData.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[C(l,{color:"red",size:"16"},{default:_(()=>[C(i)]),_:1})]),_:1},8,["content"])],512),[[Ye,n.nodeData.invalidMessages.length>0]])],512),F("div",{ref:"nodeAnswer",style:{"white-space":"pre-wrap","font-size":"12px"}},oe(n.preview),513),C(Q,{modelValue:n.nodeSetFormVisible,"onUpdate:modelValue":e[27]||(e[27]=ee=>n.nodeSetFormVisible=ee),title:n.nodeData.nodeName,direction:"rtl",size:"72%","append-to-body":!0,"destroy-on-close":!0},{default:_(()=>[C(U,{model:n.nodeData},{default:_(()=>[C(u,{label:n.t("lang.common.nodeName"),"label-width":n.formLabelWidth},{default:_(()=>[C(c,{modelValue:n.nodeData.nodeName,"onUpdate:modelValue":e[0]||(e[0]=ee=>n.nodeData.nodeName=ee),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label","label-width"]),C(u,{label:n.t("lang.dialogNode.form.label"),"label-width":n.formLabelWidth},{default:_(()=>[n.editor==null||n.robotType!="TextBot"?(A(),ve(c,{key:0,ref:"textArea",modelValue:n.nodeData.dialogText,"onUpdate:modelValue":e[1]||(e[1]=ee=>n.nodeData.dialogText=ee),type:"textarea",onBlur:n.getSel},null,8,["modelValue","onBlur"])):be("",!0),n.editor&&n.robotType=="TextBot"?(A(),ve(d,{key:1,id:"bubbleMenu",editor:n.editor,"tippy-options":{duration:100}},{default:_(()=>[F("button",{type:"button",class:Z(["inactive",{"is-active":n.editor.isActive("bold")}]),onClick:e[2]||(e[2]=ee=>n.editor.chain().focus().toggleBold().run())}," bold ",2),F("button",{type:"button",class:Z(["inactive",{"is-active":n.editor.isActive("italic")}]),onClick:e[3]||(e[3]=ee=>n.editor.chain().focus().toggleItalic().run())}," italic ",2),F("button",{type:"button",class:Z(["inactive",{"is-active":n.editor.isActive("strike")}]),onClick:e[4]||(e[4]=ee=>n.editor.chain().focus().toggleStrike().run())}," strike ",2)]),_:1},8,["editor"])):be("",!0),n.editor&&n.robotType=="TextBot"?(A(),q("div",fse,[C(le,{size:"normal"},{default:_(()=>[C(h,{color:n.editor.isActive("bold")?n.activeBtnColor:"",onClick:e[5]||(e[5]=ee=>n.editor.chain().focus().toggleBold().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(f)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.isActive("italic")?n.activeBtnColor:"",onClick:e[6]||(e[6]=ee=>n.editor.chain().focus().toggleItalic().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(p)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.isActive("strike")?n.activeBtnColor:"",onClick:e[7]||(e[7]=ee=>n.editor.chain().focus().toggleStrike().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(g)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.isActive("underline")?n.activeBtnColor:"",onClick:e[8]||(e[8]=ee=>n.editor.chain().focus().toggleUnderline().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(v)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.isActive({textAlign:"left"})?n.activeBtnColor:"",onClick:e[9]||(e[9]=ee=>n.editor.chain().focus().setTextAlign("left").run())},{default:_(()=>[C(l,null,{default:_(()=>[C(m)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.isActive({textAlign:"center"})?n.activeBtnColor:"",onClick:e[10]||(e[10]=ee=>n.editor.chain().focus().setTextAlign("center").run())},{default:_(()=>[C(l,null,{default:_(()=>[C(w)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.isActive({textAlign:"right"})?n.activeBtnColor:"",onClick:e[11]||(e[11]=ee=>n.editor.chain().focus().setTextAlign("right").run())},{default:_(()=>[C(l,null,{default:_(()=>[C(b)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.isActive("highlight")?n.activeBtnColor:"",onClick:e[12]||(e[12]=ee=>n.editor.chain().focus().toggleHighlight().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(y)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.getAttributes("textStyle").color,onClick:n.showColorPicker},{default:_(()=>[C(l,null,{default:_(()=>[C(S)]),_:1})]),_:1},8,["color","onClick"]),C(h,{color:n.editor.isActive("heading",{level:1})?n.activeBtnColor:"",onClick:e[13]||(e[13]=ee=>n.editor.chain().focus().toggleHeading({level:1}).run())},{default:_(()=>[C(l,null,{default:_(()=>[C(E)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.isActive("bulletList")?n.activeBtnColor:"",onClick:e[14]||(e[14]=ee=>n.editor.chain().focus().toggleBulletList().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(T)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.isActive("orderedList")?n.activeBtnColor:"",onClick:e[15]||(e[15]=ee=>n.editor.chain().focus().toggleOrderedList().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(M)]),_:1})]),_:1},8,["color"]),C(h,{color:n.editor.isActive("blockquote")?n.activeBtnColor:"",onClick:e[16]||(e[16]=ee=>n.editor.chain().focus().toggleBlockquote().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(O)]),_:1})]),_:1},8,["color"]),C(h,{onClick:e[17]||(e[17]=ee=>n.editor.chain().focus().setHorizontalRule().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(k)]),_:1})]),_:1}),C(h,{onClick:e[18]||(e[18]=ee=>n.editor.chain().focus().clearNodes().unsetAllMarks().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(P)]),_:1})]),_:1}),C(h,{onClick:e[19]||(e[19]=ee=>n.editor.chain().focus().undo().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(L)]),_:1})]),_:1}),C(h,{onClick:e[20]||(e[20]=ee=>n.editor.chain().focus().redo().run())},{default:_(()=>[C(l,null,{default:_(()=>[C(j)]),_:1})]),_:1})]),_:1}),F("input",{ref:"colorPicker",type:"color",style:{visibility:"hidden"},onInput:e[21]||(e[21]=ee=>n.editor.chain().focus().setColor(ee.target.value).run())},null,544)])):be("",!0),n.editor&&n.robotType=="TextBot"?(A(),ve(N,{key:3,editor:n.editor,style:{width:"100%",border:"#e5e9f2 1px solid"},modelValue:n.nodeData.dialogText,"onUpdate:modelValue":e[22]||(e[22]=ee=>n.nodeData.dialogText=ee)},null,8,["editor","modelValue"])):be("",!0)]),_:1},8,["label","label-width"]),C(u,{label:"","label-width":n.formLabelWidth},{default:_(()=>[C(h,{onClick:n.showVarsForm},{default:_(()=>[C(l,null,{default:_(()=>[C(R)]),_:1}),G(" "+oe(n.t("lang.dialogNode.form.addVar")),1)]),_:1},8,["onClick"]),C(h,{onClick:e[23]||(e[23]=ee=>n.genTextVisible=!0)},{default:_(()=>[G(" Generate text from LLM ")]),_:1})]),_:1},8,["label-width"]),C(u,{label:n.t("lang.dialogNode.form.nextStep"),"label-width":n.formLabelWidth},{default:_(()=>[C(W,{modelValue:n.nodeData.nextStep,"onUpdate:modelValue":e[24]||(e[24]=ee=>n.nodeData.nextStep=ee),placeholder:n.t("lang.dialogNode.form.choose")},{default:_(()=>[(A(!0),q(Re,null,St(n.nextSteps,ee=>(A(),ve(K,{key:ee.label,label:ee.label,value:ee.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label","label-width"])]),_:1},8,["model"]),F("div",hse,[C(h,{type:"primary",loading:n.loading,onClick:e[25]||(e[25]=ee=>n.saveForm())},{default:_(()=>[G(oe(n.t("lang.common.save")),1)]),_:1},8,["loading"]),C(h,{onClick:e[26]||(e[26]=ee=>n.hideForm())},{default:_(()=>[G(oe(n.t("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"]),C(de,{modelValue:n.varDialogVisible,"onUpdate:modelValue":e[30]||(e[30]=ee=>n.varDialogVisible=ee),title:n.t("lang.dialogNode.var.title"),width:"30%","append-to-body":!0,"destroy-on-close":!0},{footer:_(()=>[F("span",pse,[C(h,{type:"primary",onClick:n.insertVar},{default:_(()=>[G(oe(n.t("lang.common.insert")),1)]),_:1},8,["onClick"]),C(h,{onClick:e[29]||(e[29]=ee=>n.varDialogVisible=!1)},{default:_(()=>[G(oe(n.t("lang.common.cancel")),1)]),_:1})])]),default:_(()=>[C(W,{modelValue:n.selectedVar,"onUpdate:modelValue":e[28]||(e[28]=ee=>n.selectedVar=ee),class:"m-2",placeholder:n.t("lang.dialogNode.var.choose"),size:"large"},{default:_(()=>[(A(!0),q(Re,null,St(n.vars,ee=>(A(),ve(K,{key:ee.varName,label:ee.varName,value:ee.varName},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["modelValue","title"]),C(de,{modelValue:n.genTextVisible,"onUpdate:modelValue":e[34]||(e[34]=ee=>n.genTextVisible=ee),title:"Prompt",width:"70%","append-to-body":!0,"destroy-on-close":!0},{footer:_(()=>[F("span",gse,[C(h,{type:"primary",onClick:n.genText,loading:n.textGenerating},{default:_(()=>[G(oe(n.genTextBtnText),1)]),_:1},8,["onClick","loading"]),C(h,{onClick:e[33]||(e[33]=ee=>n.genTextVisible=!1)},{default:_(()=>[G(oe(n.t("lang.common.cancel")),1)]),_:1})])]),default:_(()=>[C(U,{model:n.genTextReq},{default:_(()=>[C(u,{label:"System","label-width":n.formLabelWidth},{default:_(()=>[C(c,{modelValue:n.genTextReq.system,"onUpdate:modelValue":e[31]||(e[31]=ee=>n.genTextReq.system=ee),autocomplete:"on"},null,8,["modelValue"])]),_:1},8,["label-width"]),C(u,{label:"User *","label-width":n.formLabelWidth},{default:_(()=>[C(c,{modelValue:n.genTextReq.user,"onUpdate:modelValue":e[32]||(e[32]=ee=>n.genTextReq.user=ee),autocomplete:"on",row:5,type:"textarea"},null,8,["modelValue"])]),_:1},8,["label-width"]),n.generatedText.length>0?(A(),ve(u,{key:0,label:"","label-width":n.formLabelWidth},{default:_(()=>[G(" Following generated text will be inserted when finish. ")]),_:1},8,["label-width"])):be("",!0),C(u,{label:"","label-width":n.formLabelWidth},{default:_(()=>[G(oe(n.generatedText),1)]),_:1},8,["label-width"])]),_:1},8,["model"])]),_:1},8,["modelValue"])])}const vse=wo(cse,[["render",mse],["__scopeId","data-v-d20b4358"]]),bse={class:"nodeBox"},yse={class:"demo-drawer__footer"},qS="90px",wse={__name:"EndNode",setup(n){const{t:e,tm:t,rt:r}=on(),o=V(!1),s=yt({nodeName:"The end",endingText:"",valid:!1,invalidMessages:[],newNode:!0}),i=V(),l=He("getNode");l().on("change:data",({current:h})=>{o.value=!0}),ot(async()=>{const p=l().getData();Zn(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=V();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,v=Lr,m=yn,w=nr,b=tr,y=Tn,S=Cs;return A(),q("div",bse,[F("div",{ref_key:"nodeName",ref:i,class:"nodeTitle"},[G(oe(s.nodeName)+" ",1),$e(F("span",null,[C(v,{class:"box-item",effect:"dark",content:s.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[C(g,{color:"red",size:"16"},{default:_(()=>[C(x(hl))]),_:1})]),_:1},8,["content"])],512),[[Ye,s.invalidMessages.length>0]])],512),F("div",{ref_key:"nodeAnswer",ref:d,style:{"white-space":"pre-wrap","font-size":"12px"}},oe(s.endingText),513),C(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:_(()=>[C(b,{"label-position":h.labelPosition,"label-width":"100px",model:s,style:{"max-width":"460px"}},{default:_(()=>[C(w,{label:x(e)("lang.common.nodeName"),"label-width":qS},{default:_(()=>[C(m,{modelValue:s.nodeName,"onUpdate:modelValue":p[0]||(p[0]=E=>s.nodeName=E)},null,8,["modelValue"])]),_:1},8,["label"]),C(w,{label:"Ending text","label-width":qS},{default:_(()=>[C(m,{modelValue:s.endingText,"onUpdate:modelValue":p[1]||(p[1]=E=>s.endingText=E),type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1},8,["label-position","model"]),F("div",yse,[C(y,{type:"primary",loading:h.loading,onClick:p[2]||(p[2]=E=>f())},{default:_(()=>[G(oe(x(e)("lang.common.save")),1)]),_:1},8,["loading"]),C(y,{onClick:p[3]||(p[3]=E=>u())},{default:_(()=>[G(oe(x(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},Cse=wo(wse,[["__scopeId","data-v-42225c28"]]),xse={class:"nodeBox"},Sse={class:"nodeTitle"},uu="110px",Ese={__name:"GotoNode",setup(n){const{t:e,tm:t,rt:r}=on(),o=He("getNode"),{subflowNames:s,updateSubFlowNames:i}=He("subFlowNamesFn"),l=V(!1),a=V([]),c=V([]),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=yt({nodeName:e("lang.gotoNode.nodeName"),brief:"",gotoType:"",gotoMainFlowId:"",gotoSubFlowName:"",gotoSubFlowId:"",externalLink:"",valid:!1,invalidMessages:[],newNode:!0}),h=V(!1);o().on("change:data",({current:S})=>{l.value=!0}),ot(async()=>{const E=o().getData();Zn(E,f),p(f.goToType),f.newNode&&(f.nodeName+=E.nodeCnt.toString()),f.newNode=!1,m();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 v=t("lang.gotoNode.errors");function m(){const S=f,E=S.invalidMessages;E.splice(0,E.length),S.nodeName||E.push(v[0]),S.gotoType||E.push(v[1]),S.gotoType=="GotoSubFlow"&&!S.gotoSubFlowId&&E.push(v[2]),S.gotoType=="GotoExternalLink"&&!S.externalLink&&E.push(v[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=Lr,O=yn,k=nr,P=Es,L=Ss,j=tr,le=Tn,N=Cs;return A(),q("div",xse,[F("div",Sse,[G(oe(f.nodeName)+" ",1),$e(F("span",null,[C(M,{class:"box-item",effect:"dark",content:f.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[C(T,{color:"red",size:"16"},{default:_(()=>[C(x(hl))]),_:1})]),_:1},8,["content"])],512),[[Ye,f.invalidMessages.length>0]])]),F("div",null,oe(f.brief),1),l.value?(A(),ve(N,{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:_(()=>[C(j,{"label-position":S.labelPosition,"label-width":"70px",model:f,style:{"max-width":"700px"}},{default:_(()=>[C(k,{label:x(e)("lang.common.nodeName"),"label-width":uu},{default:_(()=>[C(O,{modelValue:f.nodeName,"onUpdate:modelValue":E[0]||(E[0]=R=>f.nodeName=R)},null,8,["modelValue"])]),_:1},8,["label"]),C(k,{label:x(e)("lang.gotoNode.gotoType"),"label-width":uu},{default:_(()=>[C(L,{modelValue:f.gotoType,"onUpdate:modelValue":E[1]||(E[1]=R=>f.gotoType=R),placeholder:x(e)("lang.gotoNode.gotoTypePH"),onChange:p},{default:_(()=>[(A(),q(Re,null,St(d,R=>C(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"]),$e(F("div",null,[C(k,{label:x(e)("lang.gotoNode.gotoMainFlow"),"label-width":uu},{default:_(()=>[C(L,{modelValue:f.gotoMainFlowId,"onUpdate:modelValue":E[2]||(E[2]=R=>f.gotoMainFlowId=R),placeholder:x(e)("lang.gotoNode.gotoMainFlowPH"),onChange:g},{default:_(()=>[(A(!0),q(Re,null,St(a.value,R=>(A(),ve(P,{key:R.id,label:R.name,value:R.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])],512),[[Ye,f.gotoType==="GotoMainFlow"]]),$e(F("div",null,[C(k,{label:x(e)("lang.gotoNode.gotoSubFlow"),"label-width":uu},{default:_(()=>[C(L,{modelValue:f.gotoSubFlowId,"onUpdate:modelValue":E[3]||(E[3]=R=>f.gotoSubFlowId=R),placeholder:x(e)("lang.gotoNode.gotoSubFlowPH")},{default:_(()=>[(A(!0),q(Re,null,St(c.value,R=>(A(),ve(P,{key:R.id,label:R.name,value:R.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])],512),[[Ye,h.value]]),$e(F("div",null,[C(k,{label:x(e)("lang.gotoNode.externalLink"),"label-width":uu},{default:_(()=>[C(O,{modelValue:f.externalLink,"onUpdate:modelValue":E[4]||(E[4]=R=>f.externalLink=R)},null,8,["modelValue"])]),_:1},8,["label"])],512),[[Ye,f.gotoType==="GotoExternalLink"]])]),_:1},8,["label-position","model"]),F("div",null,[C(le,{type:"primary",loading:S.loading,onClick:E[5]||(E[5]=R=>y())},{default:_(()=>[G(oe(x(e)("lang.common.save")),1)]),_:1},8,["loading"]),C(le,{onClick:E[6]||(E[6]=R=>w())},{default:_(()=>[G(oe(x(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])):be("",!0)])}}},_se=wo(Ese,[["__scopeId","data-v-e844225f"]]),g0=n=>(Dd("data-v-cfe08cad"),n=n(),Vd(),n),Tse={class:"nodeBox"},Ose=g0(()=>F("div",null,[F("strong",null,"Please note"),G(" that this is just calling the interface, but the returned data will be ignored.")],-1)),Mse=g0(()=>F("div",null,"If you need to obtain data, please create a variable and select a certain interface as the source of the data.",-1)),Ase=g0(()=>F("div",null,"Checkout tutorial.",-1)),kse={class:"demo-drawer__footer"},Lm="100px",Pse={__name:"ExternalHttpNode",setup(n){const{t:e,tm:t,rt:r}=on(),o=V(!1),s=He("getNode"),{robotId:i}=He("robotId"),l=s(),a=yt([]),c=V(),u=V(),d=yt({nodeName:"ExternalHttpNode",httpApiName:"",httpApiId:"",valid:!1,invalidMessages:[],newNode:!0,branches:[]}),f=()=>{const v=d,m=v.invalidMessages;m.splice(0,m.length),(d.httpApiName==""||d.httpApiId=="")&&m.push("Please choose a HTTP interface"),s().getPortAt(0).id==""&&m.push('Please connect "Next" to another node'),v.valid=m.length==0},h=()=>{const v=s().getPortAt(0),m=d.branches[0];m.branchName="Next",m.branchId=v.id,f(),l.setData(d,{silent:!1}),g()},p=v=>{for(var m in a)if(a[m].id==v){d.httpApiName=a[m].name;break}},g=()=>{o.value=!1};return l.on("change:data",({current:v})=>{o.value=!0}),ot(async()=>{const v=await et("GET","external/http",{robotId:i},null,null);if(v.status==200)for(var m in v.data)v.data.hasOwnProperty(m)&&a.push(v.data[m]);l.addPort({group:"absolute",args:{x:c.value.offsetWidth-15,y:c.value.offsetHeight+50},attrs:{text:{text:"Next",fontSize:12}}}),d.branches.push(ql())}),(v,m)=>{const w=dt,b=Lr,y=yn,S=nr,E=Es,T=Ss,M=qy,O=tr,k=Tn,P=Cs;return A(),q("div",Tse,[F("div",{ref_key:"nodeName",ref:c,class:"nodeTitle"},[G(oe(d.nodeName)+" ",1),$e(F("span",null,[C(b,{class:"box-item",effect:"dark",content:d.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[C(w,{color:"red",size:"16"},{default:_(()=>[C(x(hl))]),_:1})]),_:1},8,["content"])],512),[[Ye,d.invalidMessages.length>0]])],512),F("div",null,"Call Http: "+oe(d.httpApiName),1),C(P,{modelValue:o.value,"onUpdate:modelValue":m[5]||(m[5]=L=>o.value=L),title:d.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:_(()=>[C(O,{"label-position":v.labelPosition,"label-width":"70px",model:d,style:{"max-width":"850px"}},{default:_(()=>[C(S,{label:x(e)("lang.common.nodeName"),"label-width":Lm},{default:_(()=>[C(y,{modelValue:d.nodeName,"onUpdate:modelValue":m[0]||(m[0]=L=>d.nodeName=L)},null,8,["modelValue"])]),_:1},8,["label"]),C(S,{label:"HTTP APIs","label-width":Lm},{default:_(()=>[C(T,{ref_key:"apisRef",ref:u,modelValue:d.httpApiId,"onUpdate:modelValue":m[1]||(m[1]=L=>d.httpApiId=L),placeholder:"Choose an http interface",onChange:m[2]||(m[2]=L=>p(L))},{default:_(()=>[(A(!0),q(Re,null,St(a,L=>(A(),ve(E,{key:L.id,label:L.name,value:L.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),C(S,{label:"","label-width":Lm},{default:_(()=>[C(M,{size:"large"},{default:_(()=>[Ose,Mse,Ase]),_:1})]),_:1})]),_:1},8,["label-position","model"]),F("div",kse,[C(k,{type:"primary",loading:v.loading,onClick:m[3]||(m[3]=L=>h())},{default:_(()=>[G(oe(x(e)("lang.common.save")),1)]),_:1},8,["loading"]),C(k,{onClick:m[4]||(m[4]=L=>g())},{default:_(()=>[G(oe(x(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},Nse=wo(Pse,[["__scopeId","data-v-cfe08cad"]]),Ise=n=>(Dd("data-v-abe7dc58"),n=n(),Vd(),n),Lse={class:"nodeBox"},Rse=["checked"],$se=Ise(()=>F("label",{for:"_asyncSend_"},"Send asynchronously",-1)),Dse={class:"demo-drawer__footer"},Vse={__name:"SendEmailNode",setup(n){const{t:e,tm:t}=on(),r=yt({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=V(),i=V(""),l=V(""),a=V(!1),c=He("getNode"),u=c(),d=[];u.on("change:data",({current:v})=>{a.value=!0}),ot(async()=>{const v=u.getData();Zn(v,r),r.newNode?(r.nodeName+=v.nodeCnt.toString(),f(),r.newNode=!1):o=r.asyncSend;let m=await et("GET","variable",null,null,null);m&&m.status==200&&m.data&&(d.splice(0,d.length),m.data.forEach(function(w,b,y){this.push({label:w.varName,value:w.varName})},d)),m=await et("GET","management/settings",null,null,null),m&&m.status==200&&m.data&&(i.value=m.data.smtpHost,l.value=m.data.emailVerificationRegex),h()});const f=()=>{u.removePorts();const v=s.value.offsetHeight+50,m=s.value.offsetWidth-15;r.asyncSend?u.addPort({group:"absolute",args:{x:m,y:v},attrs:{text:{text:t("lang.dialogNode.nextSteps")[1],fontSize:12}}}):(u.addPort({group:"absolute",args:{x:m,y:v},attrs:{text:{text:t("lang.collectNode.branches")[0],fontSize:12}}}),u.addPort({group:"absolute",args:{x:m,y:v+20},attrs:{text:{text:t("lang.collectNode.branches")[1],fontSize:12}}}),u.resize(u.size().width,40+v,{direction:"bottom"}))},h=()=>{const v=r,m=v.invalidMessages;m.splice(0,m.length),i.value||m.push("SMTP host is not configured"),v.nodeName||m.push("Need to fill in the node name");const w=new RegExp(l.value);v.to?v.to.split(";").forEach(function(b){b.match(w)?v.toRecipients.push(b):m.push(b+" is not a valid email format")}):m.push("Need to fill in the email recipient"),v.cc&&v.cc.split(";").forEach(function(b){b.match(w)?v.ccRecipients.push(b):m.push(b+" is not a valid email format")}),v.bcc&&v.bcc.split(";").forEach(function(b){b.match(w)?v.bccRecipients.push(b):m.push(b+" is not a valid email format")}),v.subject||m.push("Need to fill in the email subject"),v.content||m.push("Need to fill in the email content"),(v.branches==null||v.branches.length==0)&&m.push("Wrong node branch information"),v.valid=m.length==0},p=()=>{o!=r.asyncSend&&(o=r.asyncSend,f());const v=c(),m=v.getPorts();r.branches.splice(0,r.branches.length);for(let w=0;w1?"EmailSentSuccessfully":"GotoAnotherNode",r.branches.push(b)}h(),v.setData(r,{silent:!1}),g()},g=()=>{a.value=!1};return(v,m)=>{const w=dt,b=Lr,y=yn,S=nr,E=zy,T=ig,M=tr,O=Tn,k=Cs;return A(),q("div",Lse,[F("div",{ref_key:"nodeName",ref:s,class:"nodeTitle"},[G(oe(r.nodeName)+" ",1),$e(F("span",null,[C(b,{class:"box-item",effect:"dark",content:r.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[C(w,{color:"yellow",size:"16"},{default:_(()=>[C(x(hl))]),_:1})]),_:1},8,["content"])],512),[[Ye,r.invalidMessages.length>0]])],512),F("div",null,"To: "+oe(r.to),1),F("div",null,"Subject: "+oe(r.subject),1),C(k,{modelValue:a.value,"onUpdate:modelValue":m[11]||(m[11]=P=>a.value=P),title:r.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:_(()=>[C(M,{"label-position":v.labelPosition,"label-width":"100px",model:r,style:{"max-width":"500px"}},{default:_(()=>[C(S,{label:x(e)("lang.common.nodeName")},{default:_(()=>[C(y,{modelValue:r.nodeName,"onUpdate:modelValue":m[0]||(m[0]=P=>r.nodeName=P)},null,8,["modelValue"])]),_:1},8,["label"]),C(S,{label:"From","label-width":v.formLabelWidth},{default:_(()=>[C(y,{modelValue:r.from,"onUpdate:modelValue":m[1]||(m[1]=P=>r.from=P),placeholder:""},null,8,["modelValue"])]),_:1},8,["label-width"]),C(S,{label:"To"},{default:_(()=>[C(y,{modelValue:r.to,"onUpdate:modelValue":m[2]||(m[2]=P=>r.to=P),placeholder:""},null,8,["modelValue"])]),_:1}),C(S,{label:""},{default:_(()=>[G(" Separate multiple recipients with semicolons ")]),_:1}),C(S,{label:"Cc"},{default:_(()=>[C(y,{modelValue:r.cc,"onUpdate:modelValue":m[3]||(m[3]=P=>r.cc=P),placeholder:""},null,8,["modelValue"])]),_:1}),C(S,{label:"Bcc"},{default:_(()=>[C(y,{modelValue:r.bcc,"onUpdate:modelValue":m[4]||(m[4]=P=>r.bcc=P),placeholder:""},null,8,["modelValue"])]),_:1}),C(S,{label:"Subject"},{default:_(()=>[C(y,{modelValue:r.subject,"onUpdate:modelValue":m[5]||(m[5]=P=>r.subject=P),placeholder:""},null,8,["modelValue"])]),_:1}),C(S,{label:"Content"},{default:_(()=>[C(y,{modelValue:r.content,"onUpdate:modelValue":m[6]||(m[6]=P=>r.content=P),rows:2,type:"textarea",placeholder:"Please input"},null,8,["modelValue"])]),_:1}),C(S,{label:"Content type"},{default:_(()=>[C(T,{modelValue:r.contentType,"onUpdate:modelValue":m[7]||(m[7]=P=>r.contentType=P),class:"ml-4"},{default:_(()=>[C(E,{label:"TextHtml",size:"large"},{default:_(()=>[G("text/html")]),_:1}),C(E,{label:"TextPlain",size:"large"},{default:_(()=>[G("text/plain")]),_:1})]),_:1},8,["modelValue"])]),_:1}),C(S,{label:""},{default:_(()=>[$e(F("input",{type:"checkbox",id:"_asyncSend_","onUpdate:modelValue":m[8]||(m[8]=P=>r.asyncSend=P),checked:r.asyncSend},null,8,Rse),[[Gi,r.asyncSend]]),$se]),_:1})]),_:1},8,["label-position","model"]),F("div",Dse,[C(O,{type:"primary",loading:v.loading,onClick:m[9]||(m[9]=P=>p())},{default:_(()=>[G(oe(x(e)("lang.common.save")),1)]),_:1},8,["loading"]),C(O,{onClick:m[10]||(m[10]=P=>g())},{default:_(()=>[G(oe(x(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])])}}},Bse=wo(Vse,[["__scopeId","data-v-abe7dc58"]]),Fse={class:"nodeBox"},zse=["innerHTML"],jse={__name:"LlmChatNode",setup(n){const{t:e,tm:t,rt:r}=on(),o=yt({nodeName:"Llm chat node",brief:"",nodeExitType:"exitByIntent",contextLength:5,exitIntent:"",exitSpecificInputs:"",maxChatTimes:1,valid:!1,invalidMessages:[],newNode:!0}),s=He("getNode"),{robotId:i}=He("robotId"),l=V(!1),a=yt([]),c=V(""),u=V(""),d=V();s().on("change:data",({current:v})=>{l.value=!0}),ot(async()=>{const v=s(),m=v.getData();Zn(m,o),v.addPort({group:"absolute",args:{x:d.value.offsetWidth-15,y:104},markup:[{tagName:"circle",selector:"bopdy"},{tagName:"rect",selector:"bg"}],attrs:{text:{text:"Next",fontSize:12},bg:{ref:"text",refWidth:"100%",refHeight:"110%",refX:"-100%",refX2:-15,refY:-5,fill:"rgb(235,238,245)"}}}),o.newNode&&(o.nodeName+=m.nodeCnt.toString()),o.newNode=!1,h(),et("GET","management/settings",{robotId:i},null,null).then(b=>{b.data&&f(b.data)});const w=await et("GET","intent",{robotId:i},null,null);w.status==200&&a.splice(0,a.length,...w.data)});const f=v=>{c.value=v.chatProvider.provider.id,u.value=v.chatProvider.provider.model;let m="Chat model: "+v.chatProvider.provider.model+" from "+v.chatProvider.provider.id;m+="
History context length: "+o.contextLength,m+="
Exit this node by: "+o.nodeExitType,o.brief=m},h=()=>{},p=()=>{g()},g=()=>{l.value=!1};return(v,m)=>{const w=dt,b=Lr,y=yn,S=nr,E=at("router-link"),T=ug,M=zy,O=ig,k=Es,P=Ss,L=tr,j=Tn,le=Cs;return A(),q("div",Fse,[F("div",{ref_key:"nodeName",ref:d,class:"nodeTitle"},[G(oe(o.nodeName)+" ",1),$e(F("span",null,[C(b,{class:"box-item",effect:"dark",content:o.invalidMessages.join("
"),placement:"bottom","raw-content":""},{default:_(()=>[C(w,{color:"red",size:"16"},{default:_(()=>[C(x(hl))]),_:1})]),_:1},8,["content"])],512),[[Ye,o.invalidMessages.length>0]])],512),F("div",{innerHTML:o.brief},null,8,zse),l.value?(A(),ve(le,{key:0,modelValue:l.value,"onUpdate:modelValue":m[8]||(m[8]=N=>l.value=N),title:o.nodeName,direction:"rtl",size:"70%","append-to-body":!0,"destroy-on-close":!0},{default:_(()=>[C(L,{"label-position":v.labelPosition,"label-width":"106px",model:o,style:{"max-width":"700px"}},{default:_(()=>[C(S,{label:x(e)("lang.common.nodeName"),"label-width":v.formLabelWidth},{default:_(()=>[C(y,{modelValue:o.nodeName,"onUpdate:modelValue":m[0]||(m[0]=N=>o.nodeName=N)},null,8,["modelValue"])]),_:1},8,["label","label-width"]),C(S,{label:"Chat model","label-width":v.formLabelWidth},{default:_(()=>[G(oe(c.value)+" - "+oe(u.value)+" (",1),C(E,{to:{name:"settings",params:{robotId:x(i)}}},{default:_(()=>[G("change")]),_:1},8,["to"]),G(") ")]),_:1},8,["label-width"]),C(S,{label:"History length","label-width":v.formLabelWidth},{default:_(()=>[C(T,{modelValue:o.contextLength,"onUpdate:modelValue":m[1]||(m[1]=N=>o.contextLength=N),min:0,max:50,step:5},null,8,["modelValue"]),G(" How many chat history records will be added in prompt. ")]),_:1},8,["label-width"]),C(S,{label:"Exit condition","label-width":v.formLabelWidth},{default:_(()=>[C(O,{modelValue:o.nodeExitType,"onUpdate:modelValue":m[2]||(m[2]=N=>o.nodeExitType=N)},{default:_(()=>[C(M,{value:"exitByIntent"},{default:_(()=>[G("Intent")]),_:1}),C(M,{value:"exitBySpecificInputs"},{default:_(()=>[G("Specific inputs")]),_:1}),C(M,{value:"exitByMaxChatTimes"},{default:_(()=>[G("Max chat times")]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label-width"]),C(S,{label:"","label-width":v.formLabelWidth},{default:_(()=>[$e(C(P,{modelValue:o.exitIntent,"onUpdate:modelValue":m[3]||(m[3]=N=>o.exitIntent=N)},{default:_(()=>[(A(!0),q(Re,null,St(a,N=>(A(),ve(k,{key:N.id,label:N.name,value:N.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),[[Ye,o.nodeExitType=="exitByIntent"]]),$e(C(y,{modelValue:o.exitSpecificInputs,"onUpdate:modelValue":m[4]||(m[4]=N=>o.exitSpecificInputs=N)},null,8,["modelValue"]),[[Ye,o.nodeExitType=="exitBySpecificInputs"]]),$e(C(T,{modelValue:o.maxChatTimes,"onUpdate:modelValue":m[5]||(m[5]=N=>o.maxChatTimes=N),min:1,max:99999,step:1},null,8,["modelValue"]),[[Ye,o.nodeExitType=="exitByMaxChatTimes"]])]),_:1},8,["label-width"])]),_:1},8,["label-position","model"]),F("div",null,[C(j,{type:"primary",onClick:m[6]||(m[6]=N=>p())},{default:_(()=>[G(oe(x(e)("lang.common.save")),1)]),_:1}),C(j,{onClick:m[7]||(m[7]=N=>g())},{default:_(()=>[G(oe(x(e)("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])):be("",!0)])}}},Hse=wo(jse,[["__scopeId","data-v-adb37cc6"]]);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 Ks{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})(Ks||(Ks={}));class KS{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})(KS||(KS={}));function Ok(n,e,t){if(t)switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2]);case 4:return n.call(e,t[0],t[1],t[2],t[3]);case 5:return n.call(e,t[0],t[1],t[2],t[3],t[4]);case 6:return n.call(e,t[0],t[1],t[2],t[3],t[4],t[5]);default:return n.apply(e,t)}return n.call(e)}function pt(n,e,...t){return Ok(n,e,t)}function Use(n){return typeof n=="object"&&n.then&&typeof n.then=="function"}function YS(n){return n!=null&&(n instanceof Promise||Use(n))}function Mk(...n){const e=[];if(n.forEach(r=>{Array.isArray(r)?e.push(...r):e.push(r)}),e.some(r=>YS(r))){const r=e.map(o=>YS(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 Rm(n,e){const t=[];for(let r=0;r(this.off(e,o),Rm([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=Rm([...s],t))}const o=this.listeners["*"];return o!=null?Mk([r,Rm([...o],[e,...t])]):r}emit(e,...t){return this.trigger(e,...t)}}function Gse(n,...e){e.forEach(t=>{Object.getOwnPropertyNames(t.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(n.prototype,r,Object.getOwnPropertyDescriptor(t.prototype,r))})})}const qse=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])};function Kse(n,e){qse(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}class Yse{}const Jse=/^\s*class\s+/.test(`${Yse}`)||/^\s*class\s*\{/.test(`${class{}}`);function m0(n,e){let t;return Jse?t=class extends e{}:(t=function(){return e.apply(this,arguments)},Kse(t,e)),Object.defineProperty(t,"name",{value:n}),t}function JS(n){return n==="__proto__"}function v0(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&&!JS(s)){let i=n;o.forEach(l=>{JS(l)||(i[l]==null&&(i[l]={}),i=i[l])}),i[s]=t}return n}function XS(n,e,t="/"){const r=Array.isArray(e)?e.slice():e.split(t),o=r.pop();if(o)if(r.length>0){const s=v0(n,r);s&&delete s[o]}else delete n[o];return n}var Xse=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class Ur extends Wse{dispose(){this.off()}}Xse([Ks.dispose()],Ur.prototype,"dispose",null);(function(n){n.dispose=Ks.dispose})(Ur||(Ur={}));Gse(Ur,Ks);const Ak=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},kk=Ak(n=>n.replace(/\B([A-Z])/g,"-$1").toLowerCase()),b0=Ak(n=>D6(qp(n)).replace(/ /g,""));function $m(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 ip(){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 Ys(n){return typeof n=="string"&&n.slice(-1)==="%"}function Ro(n,e){if(n==null)return 0;let t;if(typeof n=="string"){if(t=parseFloat(n),Ys(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 fa(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 y0=!1,Pk=!1,Nk=!1,Ik=!1,Lk=!1,Rk=!1,$k=!1,Dk=!1,Vk=!1,Bk=!1,Fk=!1,zk=!1,jk=!1,Hk=!1,Uk=!1,Wk=!1;if(typeof navigator=="object"){const n=navigator.userAgent;y0=n.indexOf("Macintosh")>=0,Pk=!!n.match(/(iPad|iPhone|iPod)/g),Nk=n.indexOf("Windows")>=0,Ik=n.indexOf("MSIE")>=0,Lk=!!n.match(/Trident\/7\./),Rk=!!n.match(/Edge\//),$k=n.indexOf("Mozilla/")>=0&&n.indexOf("MSIE")<0&&n.indexOf("Edge/")<0,Vk=n.indexOf("Chrome/")>=0&&n.indexOf("Edge/")<0,Bk=n.indexOf("Opera/")>=0||n.indexOf("OPR/")>=0,Fk=n.indexOf("Firefox/")>=0,zk=n.indexOf("AppleWebKit/")>=0&&n.indexOf("Chrome/")<0&&n.indexOf("Edge/")<0,typeof document=="object"&&(Wk=!document.createElementNS||`${document.createElementNS("http://www.w3.org/2000/svg","foreignObject")}`!="[object SVGForeignObjectElement]"||n.indexOf("Opera/")>=0)}typeof window=="object"&&(Dk=window.chrome!=null&&window.chrome.app!=null&&window.chrome.app.runtime!=null,Hk=window.PointerEvent!=null&&!y0);if(typeof document=="object"){jk="ontouchstart"in document.documentElement;try{const n=Object.defineProperty({},"passive",{get(){Uk=!0}}),e=document.createElement("div");e.addEventListener&&e.addEventListener("click",()=>{},n)}catch{}}var Xi;(function(n){n.IS_MAC=y0,n.IS_IOS=Pk,n.IS_WINDOWS=Nk,n.IS_IE=Ik,n.IS_IE11=Lk,n.IS_EDGE=Rk,n.IS_NETSCAPE=$k,n.IS_CHROME_APP=Dk,n.IS_CHROME=Vk,n.IS_OPERA=Bk,n.IS_FIREFOX=Fk,n.IS_SAFARI=zk,n.SUPPORT_TOUCH=jk,n.SUPPORT_POINTER=Hk,n.SUPPORT_PASSIVE=Uk,n.NO_FOREIGNOBJECT=Wk,n.SUPPORT_FOREIGNOBJECT=!n.NO_FOREIGNOBJECT})(Xi||(Xi={}));(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})(Xi||(Xi={}));const w0=/[\t\r\n\f]/g,C0=/\S+/g,Sc=n=>` ${n} `;function Ec(n){return n&&n.getAttribute&&n.getAttribute("class")||""}function cf(n,e){if(n==null||e==null)return!1;const t=Sc(Ec(n)),r=Sc(e);return n.nodeType===1?t.replace(w0," ").includes(r):!1}function Nt(n,e){if(!(n==null||e==null)){if(typeof e=="function")return Nt(n,e(Ec(n)));if(typeof e=="string"&&n.nodeType===1){const t=e.match(C0)||[],r=Sc(Ec(n)).replace(w0," ");let o=t.reduce((s,i)=>s.indexOf(Sc(i))<0?`${s}${i} `:s,r);o=o.trim(),r!==o&&n.setAttribute("class",o)}}}function io(n,e){if(n!=null){if(typeof e=="function")return io(n,e(Ec(n)));if((!e||typeof e=="string")&&n.nodeType===1){const t=(e||"").match(C0)||[],r=Sc(Ec(n)).replace(w0," ");let o=t.reduce((s,i)=>{const l=Sc(i);return s.indexOf(l)>-1?s.replace(l," "):s},r);o=e?o.trim():"",r!==o&&n.setAttribute("class",o)}}}function Gk(n,e,t){if(!(n==null||e==null)){if(t!=null&&typeof e=="string"){t?Nt(n,e):io(n,e);return}if(typeof e=="function")return Gk(n,e(Ec(n),t),t);typeof e=="string"&&(e.match(C0)||[]).forEach(o=>{cf(n,o)?io(n,o):Nt(n,o)})}}let ZS=0;function eie(){return ZS+=1,`v${ZS}`}function x0(n){return(n.id==null||n.id==="")&&(n.id=eie()),n.id}function Zi(n){return n==null?!1:typeof n.getScreenCTM=="function"&&n instanceof SVGElement}const Ln={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xml:"http://www.w3.org/XML/1998/namespace",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml"},QS="1.1";function eE(n,e=document){return e.createElement(n)}function S0(n,e=Ln.xhtml,t=document){return t.createElementNS(e,n)}function Go(n,e=document){return S0(n,Ln.svg,e)}function lp(n){if(n){const t=`${n}`,{documentElement:r}=tie(t,{async:!1});return r}const e=document.createElementNS(Ln.svg,"svg");return e.setAttributeNS(Ln.xmlns,"xmlns:xlink",Ln.xlink),e.setAttribute("version",QS),e}function tie(n,e={}){let t;try{const r=new DOMParser;if(e.async!=null){const o=r;o.async=e.async}t=r.parseFromString(n,e.mimeType||"text/xml")}catch{t=void 0}if(!t||t.getElementsByTagName("parsererror").length)throw new Error(`Invalid XML: ${n}`);return t}function nie(n,e=!0){const t=n.nodeName;return e?t.toLowerCase():t.toUpperCase()}function E0(n){let e=0,t=n.previousSibling;for(;t;)t.nodeType===1&&(e+=1),t=t.previousSibling;return e}function rie(n,e){return n.querySelectorAll(e)}function oie(n,e){return n.querySelector(e)}function qk(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 Kk(n,e){const t=e&&e.parentNode;return n===t||!!(t&&t.nodeType===1&&n.compareDocumentPosition(t)&16)}function _c(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 sie(n,e){const t=n.firstChild;return t?_0(t,e):df(n,e)}function _0(n,e){const t=n.parentNode;t&&(Array.isArray(e)?e:[e]).forEach(o=>{o!=null&&t.insertBefore(o,n)})}function iie(n,e){e!=null&&e.appendChild(n)}function tE(n){try{return n instanceof HTMLElement}catch{return typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"}}const Yk=["viewBox","attributeName","attributeType","repeatCount","textLength","lengthAdjust","gradientUnits"];function lie(n,e){return n.getAttribute(e)}function Jk(n,e){const t=Zk(e);t.ns?n.hasAttributeNS(t.ns,t.local)&&n.removeAttributeNS(t.ns,t.local):n.hasAttribute(e)&&n.removeAttribute(e)}function T0(n,e,t){if(t==null)return Jk(n,e);const r=Zk(e);r.ns&&typeof t=="string"?n.setAttributeNS(r.ns,e,t):e==="id"?n.id=`${t}`:n.setAttribute(e,`${t}`)}function Xk(n,e){Object.keys(e).forEach(t=>{T0(n,t,e[t])})}function Wt(n,e,t){if(e==null){const r=n.attributes,o={};for(let s=0;s{const r=Yk.includes(t)?t:kk(t);e[r]=n[t]}),e}function Kf(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 pb(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=Kf(e[t])):o?(s=Kf(n[t]),i=e[t]):(s=Kf(n[t]),i=Kf(e[t])),n[t]=pb(s,i)}else n[t]=e[t]}),n}function aie(n,e,t={}){const r=t.offset||0,o=[],s=[];let i,l,a=null;for(let c=0;c=h&&cu(null,c));return}const d=()=>{u(new Error(`Failed to load image: ${c}`))},f=window.FileReader?p=>{if(p.status===200){const g=new FileReader;g.onload=v=>{const m=v.target.result;u(null,m)},g.onerror=d,g.readAsDataURL(p.response)}else d()}:p=>{const g=v=>{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 v=new Uint8Array(g.length);for(let m=0;m]*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})(nE||(nE={}));let Rl;const uie={px(n){return n},mm(n){return Rl*n},cm(n){return Rl*n*10},in(n){return Rl*n*25.4},pt(n){return Rl*(25.4*n/72)},pc(n){return Rl*(25.4*n/6)}};var rE;(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){Rl==null&&(Rl=e("1","1","mm").width);const s=o?uie[o]:null;return s?s(r):r}n.toPx=t})(rE||(rE={}));const die=/-(.)/g;function fie(n){return n.replace(die,(e,t)=>t.toUpperCase())}const Dm={},oE=["webkit","ms","moz","o"],Qk=typeof document<"u"?document.createElement("div").style:{};function hie(n){for(let e=0;e{r[o]=iE(n,o)}),r}if(typeof e=="string"){if(t===void 0)return iE(n,e);yie(n,e,t);return}for(const r in e)ha(n,r,e[r])}class ft{get[Symbol.toStringTag](){return ft.toStringTag}get type(){return this.node.nodeName}get id(){return this.node.id}set id(e){this.node.id=e}constructor(e,t,r){if(!e)throw new TypeError("Invalid element to create vector");let o;if(ft.isVector(e))o=e.node;else if(typeof e=="string")if(e.toLowerCase()==="svg")o=lp();else if(e[0]==="<"){const s=lp(e);o=document.importNode(s.firstChild,!0)}else o=document.createElementNS(Ln.svg,e);else o=e;this.node=o,t&&this.setAttributes(t),r&&this.append(r)}transform(e,t){return e==null?Tc(this.node):(Tc(this.node,e,t),this)}translate(e,t=0,r={}){return e==null?aE(this.node):(aE(this.node,e,t,r),this)}rotate(e,t,r,o={}){return e==null?vb(this.node):(vb(this.node,e,t,r,o),this)}scale(e,t){return e==null?bb(this.node):(bb(this.node,e,t),this)}getTransformToElement(e){const t=ft.toNode(e);return Wu(this.node,t)}removeAttribute(e){return Jk(this.node,e),this}getAttribute(e){return lie(this.node,e)}setAttribute(e,t){return T0(this.node,e,t),this}setAttributes(e){return Xk(this.node,e),this}attr(e,t){return e==null?Wt(this.node):typeof e=="string"&&t===void 0?Wt(this.node,e):(typeof e=="object"?Wt(this.node,e):Wt(this.node,e,t),this)}svg(){return this.node instanceof SVGSVGElement?this:ft.create(this.node.ownerSVGElement)}defs(){const e=this.svg()||this,t=e.node.getElementsByTagName("defs")[0];return t?ft.create(t):ft.create("defs").appendTo(e)}text(e,t={}){return tP(this.node,e,t),this}tagName(){return nie(this.node)}clone(){return ft.create(this.node.cloneNode(!0))}remove(){return _c(this.node),this}empty(){return uf(this.node),this}append(e){return df(this.node,ft.toNodes(e)),this}appendTo(e){return iie(this.node,ft.isVector(e)?e.node:e),this}prepend(e){return sie(this.node,ft.toNodes(e)),this}before(e){return _0(this.node,ft.toNodes(e)),this}replace(e){return this.node.parentNode&&this.node.parentNode.replaceChild(ft.toNode(e),this.node),ft.create(e)}first(){return this.node.firstChild?ft.create(this.node.firstChild):null}last(){return this.node.lastChild?ft.create(this.node.lastChild):null}get(e){const t=this.node.childNodes[e];return t?ft.create(t):null}indexOf(e){return Array.prototype.slice.call(this.node.childNodes).indexOf(ft.toNode(e))}find(e){const t=[],r=rie(this.node,e);if(r)for(let o=0,s=r.length;oo(l)):[o(i)]}n.toNodes=s})(ft||(ft={}));function wie(n,e){const t=ft.create(e),r=ft.create("textPath"),o=n.d;if(o&&n["xlink:href"]===void 0){const s=ft.create("path").attr("d",o).appendTo(t.defs());r.attr("xlink:href",`#${s.id}`)}return typeof n=="object"&&r.attr(n),r.node}function Cie(n,e,t){const r=t.eol,o=t.baseSize,s=t.lineHeight;let i=0,l;const a={},c=e.length-1;for(let u=0;u<=c;u+=1){let d=e[u],f=null;if(typeof d=="object"){const h=d.attrs,p=ft.create("tspan",h);l=p.node;let g=d.t;r&&u===c&&(g+=r),l.textContent=g;const v=h.class;v&&p.addClass(v),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 eP=/em$/;function Yf(n,e){const t=parseFloat(n);return eP.test(n)?t*e:t}function xie(n,e,t,r){if(!Array.isArray(e))return 0;const o=e.length;if(!o)return 0;let s=e[0];const i=Yf(s.maxFontSize,t)||t;let l=0;const a=Yf(r,t);for(let d=1;d0&&P.setAttribute("dy",w),(O>0||o)&&P.setAttribute("x",l),P.className.baseVal=k,m.appendChild(P),b+=j.length+1}if(i)if(c)w=xie(s,E,v,f);else if(s==="top")w="0.8em";else{let O;switch(T>0?(O=parseFloat(f)||1,O*=T,eP.test(f)||(O/=v)):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"}`));m.firstChild.setAttribute("dy",w),n.appendChild(m)}function Uu(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 lE(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 nP(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 v=ip(),m=[];return n.split(i).map(w=>{const b=nP(w,Object.assign(Object.assign({},e),{height:Number.MAX_SAFE_INTEGER}),t,Object.assign(Object.assign({},r),{eol:v}));b&&m.push(...b.split(v))}),m.slice(0,c).join(i)}const{width:u}=Uu(n,t);if(uo)if(v===c-1){const[w]=lE(f,o-g,h,t);d.push(p?`${w}${p}`:w)}else{const[w,b]=lE(f,o,h,t);d.push(w),f=b,h=Uu(f,t).width}else{d.push(f);break}return d.join(i)}const gb=.551784;function Kn(n,e,t=NaN){const r=n.getAttribute(e);if(r==null)return t;const o=parseFloat(r);return Number.isNaN(o)?t:o}function Sie(n,e=1){const t=n.getTotalLength(),r=[];let o=0,s;for(;o`${t.x} ${t.y}`).join(" L")}`}function cp(n){const e=[],t=n.points;if(t)for(let r=0,o=t.numberOfItems;r=0){const i=_d(n),l=Lie(i);e=[l.translateX,l.translateY],t=[l.rotation],r=[l.scaleX,l.scaleY];const a=[];(e[0]!==0||e[1]!==0)&&a.push(`translate(${e.join(",")})`),(r[0]!==1||r[1]!==1)&&a.push(`scale(${r.join(",")})`),t[0]!==0&&a.push(`rotate(${t[0]})`),n=a.join(" ")}else{const i=n.match(/translate\((.*?)\)/);i&&(e=i[1].split(s));const l=n.match(/rotate\((.*?)\)/);l&&(t=l[1].split(s));const a=n.match(/scale\((.*?)\)/);a&&(r=a[1].split(s))}}const o=r&&r[0]?parseFloat(r[0]):1;return{raw:n||"",translation:{tx:e&&e[0]?parseInt(e[0],10):0,ty:e&&e[1]?parseInt(e[1],10):0},rotation:{angle:t&&t[0]?parseInt(t[0],10):0,cx:t&&t[1]?parseInt(t[1],10):void 0,cy:t&&t[2]?parseInt(t[2],10):void 0},scale:{sx:o,sy:r&&r[1]?parseFloat(r[1]):o}}}function mb(n,e){const t=e.x*n.a+e.y*n.c+0,r=e.x*n.b+e.y*n.d+0;return{x:t,y:r}}function Lie(n){const e=mb(n,{x:0,y:1}),t=mb(n,{x:1,y:0}),r=180/Math.PI*Math.atan2(e.y,e.x)-90,o=180/Math.PI*Math.atan2(t.y,t.x);return{skewX:r,skewY:o,translateX:n.e,translateY:n.f,scaleX:Math.sqrt(n.a*n.a+n.b*n.b),scaleY:Math.sqrt(n.c*n.c+n.d*n.d),rotation:r}}function Rie(n){let e,t,r,o;return n?(e=n.a==null?1:n.a,o=n.d==null?1:n.d,t=n.b,r=n.c):e=o=1,{sx:t?Math.sqrt(e*e+t*t):e,sy:r?Math.sqrt(r*r+o*o):o}}function $ie(n){let e={x:0,y:1};n&&(e=mb(n,e));const t=180*Math.atan2(e.y,e.x)/Math.PI%360-90;return{angle:t%360+(t<0?360:0)}}function Die(n){return{tx:n&&n.e||0,ty:n&&n.f||0}}function Tc(n,e,t={}){if(e==null)return _d(Wt(n,"transform"));if(t.absolute){n.setAttribute("transform",Zc(e));return}const r=n.transform,o=mu(e);r.baseVal.appendItem(o)}function aE(n,e,t=0,r={}){let o=Wt(n,"transform");const s=Og(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 vb(n,e,t,r,o={}){let s=Wt(n,"transform");const i=Og(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 bb(n,e,t){let r=Wt(n,"transform");const o=Og(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 Wu(n,e){if(Zi(e)&&Zi(n)){const t=e.getScreenCTM(),r=n.getScreenCTM();if(t&&r)return t.inverse().multiply(r)}return jn()}function Vie(n,e){let t=jn();if(Zi(e)&&Zi(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=Wu(n,r).inverse();return i.matrixTransform(l)}catch{return o}}var no;(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})(no||(no={}));var jl;(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})(jl||(jl={}));var bt;(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})(bt||(bt={}));(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})(bt||(bt={}));(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})(bt||(bt={}));(function(n){function e(t,r){const o=[],s=jl.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{v.push(m)}),d[p]=v.includes(c)}d[p]&&u.push(h)}u.length&&o.push({elem:c,handlers:u})}}return a{const r=this.originalEvent;this.isDefaultPrevented=bt.returnTrue,r&&!this.isSimulated&&r.preventDefault()},this.stopPropagation=()=>{const r=this.originalEvent;this.isPropagationStopped=bt.returnTrue,r&&!this.isSimulated&&r.stopPropagation()},this.stopImmediatePropagation=()=>{const r=this.originalEvent;this.isImmediatePropagationStopped=bt.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?bt.returnTrue:bt.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})(as||(as={}));(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})(as||(as={}));(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]))})(as||(as={}));(function(n){no.register("load",{noBubble:!0})})();(function(n){no.register("beforeunload",{postDispatch(e,t){t.result!==void 0&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}})})();(function(n){no.register("mouseenter",{delegateType:"mouseover",bindType:"mouseover",handle(e,t){let r;const o=t.relatedTarget,s=t.handleObj;return(!o||o!==e&&!bt.contains(e,o))&&(t.type=s.originType,r=s.handler.call(e,t),t.type="mouseover"),r}}),no.register("mouseleave",{delegateType:"mouseout",bindType:"mouseout",handle(e,t){let r;const o=t.relatedTarget,s=t.handleObj;return(!o||o!==e&&!bt.contains(e,o))&&(t.type=s.originType,r=s.handler.call(e,t),t.type="mouseout"),r}})})();var Fie=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{const{originType:v,namespaces:m}=bt.normalizeType(g);if(!v)return;let w=v,b=no.get(w);w=(u?b.delegateType:b.bindType)||w,b=no.get(w);const y=Object.assign({type:w,originType:v,data:c,selector:u,guid:p,handler:a,namespace:m.join(".")},d),S=f.events;let E=S[w];E||(E=S[w]={handlers:[],delegateCount:0},(!b.setup||b.setup(i,c,m,h)===!1)&&bt.addEventListener(i,w,h)),b.add&&(bt.removeHandlerId(y.handler),b.add(i,y),bt.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=jl.get(i);if(!d)return;const f=d.events;f&&(bt.splitType(l).forEach(h=>{const{originType:p,namespaces:g}=bt.normalizeType(h);if(!p){Object.keys(f).forEach(S=>{r(i,S+h,a,c,!0)});return}let v=p;const m=no.get(v);v=(c?m.delegateType:m.bindType)||v;const w=f[v];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||bt.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),m.remove&&m.remove(i,E))}y&&w.handlers.length===0&&((!m.teardown||m.teardown(i,g,d.handler)===!1)&&bt.removeEventListener(i,v,d.handler),delete f[v])}),Object.keys(f).length===0&&jl.remove(i))}n.off=r;function o(i,l,...a){const c=as.create(l);c.delegateTarget=i;const u=no.get(c.type);if(u.preDispatch&&u.preDispatch(i,c)===!1)return;const d=bt.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 as?i:new as(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 v=no.get(d);if(!c&&v.trigger&&v.trigger(h,u,l)===!1)return;let m;const w=[h];if(!c&&!v.noBubble&&!bt.isWindow(h)){m=v.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?m:v.bindType||d;const T=jl.get(E);T&&T.events[u.type]&&T.handler&&T.handler.call(E,...g);const M=p&&E[p]||null;M&&bt.isValidTarget(E)&&(u.result=M.call(E,...g),u.result===!1&&u.preventDefault())}if(u.type=d,!c&&!u.isDefaultPrevented()){const y=v.preventDefault;if((y==null||y(w.pop(),u,l)===!1)&&bt.isValidTarget(h)&&p&&typeof h[d]=="function"&&!bt.isWindow(h)){const S=h[p];S&&(h[p]=null),e=d,u.isPropagationStopped()&&b.addEventListener(d,bt.stopPropagationCallback),h[d](),u.isPropagationStopped()&&b.removeEventListener(d,bt.stopPropagationCallback),e=void 0,S&&(h[p]=S)}}return u.result}n.trigger=s})(Td||(Td={}));var Wn;(function(n){function e(s,i,l,a,c){return Gu.on(s,i,l,a,c),s}n.on=e;function t(s,i,l,a,c){return Gu.on(s,i,l,a,c,!0),s}n.once=t;function r(s,i,l,a){return Gu.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})(Wn||(Wn={}));var Gu;(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=bt.returnFalse;else if(!l)return;if(a){const c=l;l=function(u,...d){return n.off(r,u),c.call(this,u,...d)},bt.setHandlerId(l,bt.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=bt.returnFalse),Td.off(r,o,i,s)}n.off=t})(Gu||(Gu={}));class lP{constructor(e,t,r){this.animationFrameId=0,this.deltaX=0,this.deltaY=0,this.eventName=Xi.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 aP(n,e=60){let t=null;return(...r)=>{t&&clearTimeout(t),t=window.setTimeout(()=>{n.apply(this,r)},e)}}function zie(n){let e=null,t=[];const r=()=>{if(getComputedStyle(n).position==="static"){const c=n.style;c.position="relative"}const a=document.createElement("object");return a.onload=()=>{a.contentDocument.defaultView.addEventListener("resize",o),o()},a.style.display="block",a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.height="100%",a.style.width="100%",a.style.overflow="hidden",a.style.pointerEvents="none",a.style.zIndex="-1",a.style.opacity="0",a.setAttribute("tabindex","-1"),a.type="text/html",n.appendChild(a),a.data="about:blank",a},o=aP(()=>{t.forEach(a=>a(n))}),s=a=>{e||(e=r()),t.indexOf(a)===-1&&t.push(a)},i=()=>{e&&e.parentNode&&(e.contentDocument&&e.contentDocument.defaultView.removeEventListener("resize",o),e.parentNode.removeChild(e),e=null,t=[])};return{element:n,bind:s,destroy:i,unbind:a=>{const c=t.indexOf(a);c!==-1&&t.splice(c,1),t.length===0&&e&&i()}}}function jie(n){let e=null,t=[];const r=aP(()=>{t.forEach(a=>{a(n)})}),o=()=>{const a=new ResizeObserver(r);return a.observe(n),r(),a},s=a=>{e||(e=o()),t.indexOf(a)===-1&&t.push(a)},i=()=>{e&&(e.disconnect(),t=[],e=null)};return{element:n,bind:s,destroy:i,unbind:a=>{const c=t.indexOf(a);c!==-1&&t.splice(c,1),t.length===0&&e&&i()}}}const Hie=typeof ResizeObserver<"u"?jie:zie;var up;(function(n){const e=new WeakMap;function t(o){let s=e.get(o);return s||(s=Hie(o),e.set(o,s),s)}function r(o){o.destroy(),e.delete(o.element)}n.bind=(o,s)=>{const i=t(o);return i.bind(s),()=>i.unbind(s)},n.clear=o=>{const s=t(o);r(s)}})(up||(up={}));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 yb;(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 zs.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 zs.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,k=Array.isArray(b)?b[3]:E,P=Math.max(T,M,O),L=Math.min(T,M,O),j=(P+L)/2;let le=0,N=0;if(L!==P){const R=P-L;switch(N=j>.5?R/(2-P-L):R/(P+L),P){case T:le=(M-O)/R+(M186?"#000000":"#ffffff":`${O?"#":""}${g(255-k,255-P,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 v(b,y){return w(b,y)}n.lighten=v;function m(b,y){return w(b,-y)}n.darken=m;function w(b,y){if(typeof b=="string"){const T=b[0]==="#",M=parseInt(T?b.substr(1):b,16),O=oo((M>>16)+y,0,255),k=oo((M>>8&255)+y,0,255),P=oo((M&255)+y,0,255);return`${T?"#":""}${(P|k<<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]]}})(zs||(zs={}));(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"}})(zs||(zs={}));class wb{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 Oc;(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,v)=>g===p[v]));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})(Oc||(Oc={}));var pa;(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}}})(pa||(pa={}));(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)}}})(pa||(pa={}));(function(n){function e(N){return-1*Math.cos(N*(Math.PI/2))+1}n.easeInSine=e;function t(N){return Math.sin(N*(Math.PI/2))}n.easeOutSine=t;function r(N){return-.5*(Math.cos(Math.PI*N)-1)}n.easeInOutSine=r;function o(N){return N*N}n.easeInQuad=o;function s(N){return N*(2-N)}n.easeOutQuad=s;function i(N){return N<.5?2*N*N:-1+(4-2*N)*N}n.easeInOutQuad=i;function l(N){return N*N*N}n.easeInCubic=l;function a(N){const R=N-1;return R*R*R+1}n.easeOutCubic=a;function c(N){return N<.5?4*N*N*N:(N-1)*(2*N-2)*(2*N-2)+1}n.easeInOutCubic=c;function u(N){return N*N*N*N}n.easeInQuart=u;function d(N){const R=N-1;return 1-R*R*R*R}n.easeOutQuart=d;function f(N){const R=N-1;return N<.5?8*N*N*N*N:1-8*R*R*R*R}n.easeInOutQuart=f;function h(N){return N*N*N*N*N}n.easeInQuint=h;function p(N){const R=N-1;return 1+R*R*R*R*R}n.easeOutQuint=p;function g(N){const R=N-1;return N<.5?16*N*N*N*N*N:1+16*R*R*R*R*R}n.easeInOutQuint=g;function v(N){return N===0?0:Math.pow(2,10*(N-1))}n.easeInExpo=v;function m(N){return N===1?1:-Math.pow(2,-10*N)+1}n.easeOutExpo=m;function w(N){if(N===0||N===1)return N;const R=N*2,K=R-1;return R<1?.5*Math.pow(2,10*K):.5*(-Math.pow(2,-10*K)+2)}n.easeInOutExpo=w;function b(N){const R=N/1;return-1*(Math.sqrt(1-R*N)-1)}n.easeInCirc=b;function y(N){const R=N-1;return Math.sqrt(1-R*R)}n.easeOutCirc=y;function S(N){const R=N*2,K=R-2;return R<1?-.5*(Math.sqrt(1-R*R)-1):.5*(Math.sqrt(1-K*K)+1)}n.easeInOutCirc=S;function E(N,R=1.70158){return N*N*((R+1)*N-R)}n.easeInBack=E;function T(N,R=1.70158){const K=N/1-1;return K*K*((R+1)*K+R)+1}n.easeOutBack=T;function M(N,R=1.70158){const K=N*2,W=K-2,U=R*1.525;return K<1?.5*K*K*((U+1)*K-U):.5*(W*W*((U+1)*W+U)+2)}n.easeInOutBack=M;function O(N,R=.7){if(N===0||N===1)return N;const W=N/1-1,U=1-R,Q=U/(2*Math.PI)*Math.asin(1);return-(Math.pow(2,10*W)*Math.sin((W-Q)*(2*Math.PI)/U))}n.easeInElastic=O;function k(N,R=.7){const K=1-R,W=N*2;if(N===0||N===1)return N;const U=K/(2*Math.PI)*Math.asin(1);return Math.pow(2,-10*W)*Math.sin((W-U)*(2*Math.PI)/K)+1}n.easeOutElastic=k;function P(N,R=.65){const K=1-R;if(N===0||N===1)return N;const W=N*2,U=W-1,Q=K/(2*Math.PI)*Math.asin(1);return W<1?-.5*(Math.pow(2,10*U)*Math.sin((U-Q)*(2*Math.PI)/K)):Math.pow(2,-10*U)*Math.sin((U-Q)*(2*Math.PI)/K)*.5+1}n.easeInOutElastic=P;function L(N){const R=N/1;if(R<1/2.75)return 7.5625*R*R;if(R<2/2.75){const K=R-.5454545454545454;return 7.5625*K*K+.75}if(R<2.5/2.75){const K=R-.8181818181818182;return 7.5625*K*K+.9375}{const K=R-.9545454545454546;return 7.5625*K*K+.984375}}n.easeOutBounce=L;function j(N){return 1-L(1-N)}n.easeInBounce=j;function le(N){return N<.5?j(N*2)*.5:L(N*2-1)*.5+.5}n.easeInOutBounce=le})(pa||(pa={}));var Hl;(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)}`}}})(Hl||(Hl={}));const qu=[];function Uie(n,e){const t=qu.find(r=>r.name===n);if(!(t&&(t.loadTimes+=1,t.loadTimes>1))&&!Xi.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),qu.push({name:n,loadTimes:1,styleElement:r})}}function Wie(n){const e=qu.findIndex(t=>t.name===n);if(e>-1){const t=qu[e];if(t.loadTimes-=1,t.loadTimes>0)return;let r=t.styleElement;r&&r.parentNode&&r.parentNode.removeChild(r),r=null,qu.splice(e,1)}}var Ut;(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})(Ut||(Ut={}));var jt;(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})(jt||(jt={}));class vl{valueOf(){return this.toJSON()}toString(){return JSON.stringify(this.toJSON())}}class Y extends vl{constructor(e,t){super(),this.x=e??0,this.y=t??0}round(e=0){return this.x=jt.round(this.x,e),this.y=jt.round(this.y,e),this}add(e,t){const r=Y.create(e,t);return this.x+=r.x,this.y+=r.y,this}update(e,t){const r=Y.create(e,t);return this.x=r.x,this.y=r.y,this}translate(e,t){const r=Y.create(e,t);return this.x+=r.x,this.y+=r.y,this}rotate(e,t){const r=Y.rotate(this,e,t);return this.x=r.x,this.y=r.y,this}scale(e,t,r=new Y){const o=Y.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 Y.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 v=r.topRight;v.x>o&&(a=(this.x+this.width-o)/(v.x-o)),v.ys&&(h=(this.y+this.height-s)/(m.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 jt.containsPoint(this,Y.create(e,t))}containsRect(e,t,r,o){const s=Ve.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=Y.clone(e),o=this.center;let s=null;t!=null&&t!==0&&r.rotate(t,o);const i=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],l=new Ke(o,r);for(let a=i.length-1;a>=0;a-=1){const c=i[a].intersectsWithLine(l);if(c!==null){s=c;break}}return s&&t!=null&&t!==0&&s.rotate(-t,o),s}intersectsWithRect(e,t,r,o){const s=Ve.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 Ve(u,d,Math.min(l.x,c.x)-u,Math.min(l.y,c.y)-d)}isIntersectWithRect(e,t,r,o){const s=Ve.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=Ve.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 Ve(l,a,c-l,u-a)}getNearestSideToPoint(e){const t=Y.clone(e),r=t.x-this.x,o=this.x+this.width-t.x,s=t.y-this.y,i=this.y+this.height-t.y;let l=r,a="left";return o=1?r.clone():t.lerp(r,e)}pointAtLength(e){const t=this.start,r=this.end;let o=!0;e<0&&(o=!1,e=-e);const s=this.length();if(e>=s)return o?r.clone():t.clone();const i=(o?e:s-e)/s;return this.pointAt(i)}divideAt(e){const t=this.pointAt(e);return[new Ke(this.start,t),new Ke(t,this.end)]}divideAtLength(e){const t=this.pointAtLength(e);return[new Ke(this.start,t),new Ke(t,this.end)]}containsPoint(e){const t=this.start,r=this.end;if(t.cross(e,r)!==0)return!1;const o=this.length();return!(new Ke(t,e).length()>o||new Ke(e,r).length()>o)}intersect(e,t){const r=e.intersectsWithLine(this,t);return r?Array.isArray(r)?r:[r]:null}intersectsWithLine(e){const t=new Y(this.end.x-this.start.x,this.end.y-this.start.y),r=new Y(e.end.x-e.start.x,e.end.y-e.start.y),o=t.x*r.y-t.y*r.x,s=new Y(e.start.x-this.start.x,e.start.y-this.start.y),i=s.x*r.y-s.y*r.x,l=s.x*t.y-s.y*t.x;if(o===0||i*o<0||l*o<0)return null;if(o>0){if(i>o||l>o)return null}else if(i0&&(o-=i,s-=l,a=o*i+s*l,a<0&&(a=0))),a<0?-1:a>0?1:0}equals(e){return e!=null&&this.start.x===e.start.x&&this.start.y===e.start.y&&this.end.x===e.end.x&&this.end.y===e.end.y}clone(){return new Ke(this.start,this.end)}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){return[this.start.serialize(),this.end.serialize()].join(" ")}}(function(n){function e(t){return t!=null&&t instanceof n}n.isLine=e})(Ke||(Ke={}));class zo extends vl{get center(){return new Y(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 Ve.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=Y.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 Y(this.x,this.y)),c=new Y(l.x/(r*r),l.y/(o*o)),u=new Y(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),v=(-f-g)/d,m=(-f+g)/d;if((v<0||v>1)&&(m<0||m>1))return null;v>=0&&v<=1&&t.push(s.lerp(i,v)),m>=0&&m<=1&&t.push(s.lerp(i,m))}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=Y.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 Y(this.x+d,this.y+f),t?i.rotate(-t,this.getCenter()):i}tangentTheta(e){const t=Y.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 Y(h,p).theta(t)}scale(e,t){return this.a*=e,this.b*=t,this}rotate(e,t){const r=Ve.fromEllipse(this);r.rotate(e,t);const o=zo.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=Y.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 zo(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})(zo||(zo={}));(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})(zo||(zo={}));const Gie=new RegExp("^[\\s\\dLMCZz,.]*$");function qie(n){return typeof n!="string"?!1:Gie.test(n)}function Vm(n,e){return(n%e+e)%e}function Kie(n,e,t,r,o){const s=[],i=n[n.length-1],l=e!=null&&e>0,a=e||0;if(r&&l){n=n.slice();const d=n[0],f=new Y(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[Vm(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,v=h*Math.min(a,p/2)/p,m=d.x+g,w=d.y+v;s.push("L",m,w);let b=n[Vm(u+1,n.length)];for(;utypeof d=="string"?d:+d.toFixed(3)).join(" ")}function cP(n,e={}){const t=[];return n&&n.length&&n.forEach(r=>{Array.isArray(r)?t.push({x:r[0],y:r[1]}):t.push({x:r.x,y:r.y})}),Kie(t,e.round,e.initialMove==null||e.initialMove,e.close,e.exclude)}function dp(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,v=p*p,m=t*t,w=r*r,b=g/m+v/w;let y;if(b>1)t=Math.sqrt(b)*t,r=Math.sqrt(b)*r,y=0;else{let ne=1;s===i&&(ne=-1),y=ne*Math.sqrt((m*w-m*v-w*g)/(m*v+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),k=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 P=O>=0?O:2*Math.PI+O;i===0&&P>0?P-=2*Math.PI:i!==0&&P<0&&(P+=2*Math.PI);const L=P*2/Math.PI,j=Math.ceil(L<0?-1*L:L),le=P/j,N=8/3*Math.sin(le/4)*Math.sin(le/4)/Math.sin(le/2),R=d*t,K=d*r,W=f*t,U=f*r;let Q=Math.cos(k),de=Math.sin(k),ee=-N*(R*de+U*Q),Me=-N*(W*de-K*Q),fe=0,Ce=0;const Oe=[];for(let ne=0;ne+ne.toFixed(2))}function Yie(n,e,t,r,o=0,s=0,i=0,l,a){const c=[],u=dp(n,e,t,r,o,s,i,l,a);if(u!=null)for(let d=0,f=u.length;dY.create(t))}else this.points=[]}scale(e,t,r=new Y){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=Y.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 Ve;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 Ve(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 Y(r+h,o),g=new Ke(e,p);f.intersectsWithLine(g)&&(a+=1)}}l=c}return a%2===1}intersectsWithLine(e){const t=[];for(let r=0,o=this.points.length-1;r0?t:null}isDifferentiable(){for(let e=0,t=this.points.length-1;e=1)return t[r-1].clone();const s=this.length()*e;return this.pointAtLength(s)}pointAtLength(e){const t=this.points,r=t.length;if(r===0)return null;if(r===1)return t[0].clone();let o=!0;e<0&&(o=!1,e=-e);let s=0;for(let l=0,a=r-1;l1&&(e=1);const s=this.length()*e;return this.tangentAtLength(s)}tangentAtLength(e){const t=this.points,r=t.length;if(r===0||r===1)return null;let o=!0;e<0&&(o=!1,e=-e);let s,i=0;for(let l=0,a=r-1;lr.x)&&(r=e[f]);const o=[];for(let f=0;f{let p=f[2]-h[2];return p===0&&(p=h[1]-f[1]),p}),o.length>2){const f=o[o.length-1];o.unshift(f)}const s={},i=[],l=f=>`${f[0].toString()}@${f[1]}`;for(;o.length!==0;){const f=o.pop(),h=f[0];if(s[l(f)])continue;let p=!1;for(;!p;)if(i.length<2)i.push(f),p=!0;else{const g=i.pop(),v=g[0],m=i.pop(),w=m[0],b=w.cross(v,h);if(b<0)i.push(m),i.push(g),i.push(f),p=!0;else if(b===0){const S=v.angleBetween(w,h);Math.abs(S-180)<1e-10||v.equals(h)||w.equals(v)?(s[l(g)]=v,i.push(m)):Math.abs((S+1)%360-1)<1e-10&&(i.push(m),o.push(g))}else s[l(g)]=v,i.push(m)}}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 pn(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})(pn||(pn={}));(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=v*v-4*m*g,E=Math.sqrt(S),!(S<0)&&(b=(-v+E)/(2*g),b>0&&b<1&&h.push(b),y=(-v-E)/(2*g),y>0&&y<1&&h.push(y))}let T,M,O,k=h.length;const P=k;for(;k;)k-=1,w=h[k],O=1-w,T=O*O*O*s+3*O*O*w*l+3*O*w*w*c+w*w*w*d,p[0][k]=T,M=O*O*O*i+3*O*O*w*a+3*O*w*w*u+w*w*w*f,p[1][k]=M;h[P]=0,h[P+1]=1,p[0][P]=s,p[1][P]=i,p[0][P+1]=d,p[1][P+1]=f,h.length=P+2,p[0].length=P+2,p[1].length=P+2;const L=Math.min.apply(null,p[0]),j=Math.min.apply(null,p[1]),le=Math.max.apply(null,p[0]),N=Math.max.apply(null,p[1]);return new Ve(L,j,le-L,N-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,v)=>{const m=g.start.distance(e),w=g.end.distance(e),b=m+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 sn(t,t,t,t),new sn(t,r,o,s)];if(e>=1)return[new sn(t,r,o,s),new sn(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 sn(t,l,a,c),new sn(c,u,d,s)]}endpointDistance(){return this.start.distance(this.end)}getSkeletonPoints(e){const t=this.start,r=this.controlPoint1,o=this.controlPoint2,s=this.end;if(e<=0)return{startControlPoint1:t.clone(),startControlPoint2:t.clone(),divider:t.clone(),dividerControlPoint1:r.clone(),dividerControlPoint2:o.clone()};if(e>=1)return{startControlPoint1:r.clone(),startControlPoint2:o.clone(),divider:s.clone(),dividerControlPoint1:s.clone(),dividerControlPoint2:s.clone()};const i=new Ke(t,r).pointAt(e),l=new Ke(r,o).pointAt(e),a=new Ke(o,s).pointAt(e),c=new Ke(i,l).pointAt(e),u=new Ke(l,a).pointAt(e),d=new Ke(c,u).pointAt(e);return{startControlPoint1:i,startControlPoint2:c,divider:d,dividerControlPoint1:u,dividerControlPoint2:a}}getSubdivisions(e={}){const t=this.getPrecision(e);let r=[new sn(this.start,this.controlPoint1,this.controlPoint2,this.end)];if(t===0)return r;let o=this.endpointDistance();const s=Math.pow(10,-t);let i=0;for(;;){i+=1;const l=[];r.forEach(u=>{const d=u.divide(.5);l.push(d[0],d[1])});const a=l.reduce((u,d)=>u+d.endpointDistance(),0),c=a!==0?(a-o)/a:0;if(i>1&&cr+o.endpointDistance(),0)}lengthAtT(e,t={}){if(e<=0)return 0;const r=t.precision===void 0?this.PRECISION:t.precision;return this.divide(e)[0].length({precision:r})}pointAt(e,t={}){if(e<=0)return this.start.clone();if(e>=1)return this.end.clone();const r=this.tAt(e,t);return this.pointAtT(r)}pointAtLength(e,t={}){const r=this.tAtLength(e,t);return this.pointAtT(r)}pointAtT(e){return e<=0?this.start.clone():e>=1?this.end.clone():this.getSkeletonPoints(e).divider}isDifferentiable(){const e=this.start,t=this.controlPoint1,r=this.controlPoint2,o=this.end;return!(e.equals(t)&&t.equals(r)&&r.equals(o))}tangentAt(e,t={}){if(!this.isDifferentiable())return null;e<0?e=0:e>1&&(e=1);const r=this.tAt(e,t);return this.tangentAtT(r)}tangentAtLength(e,t={}){if(!this.isDifferentiable())return null;const r=this.tAtLength(e,t);return this.tangentAtT(r)}tangentAtT(e){if(!this.isDifferentiable())return null;e<0&&(e=0),e>1&&(e=1);const t=this.getSkeletonPoints(e),r=t.startControlPoint2,o=t.dividerControlPoint1,s=t.divider,i=new Ke(r,o);return i.translate(s.x-r.x,s.y-r.y),i}getPrecision(e={}){return e.precision==null?this.PRECISION:e.precision}getDivisions(e={}){if(e.subdivisions!=null)return e.subdivisions;const t=this.getPrecision(e);return this.getSubdivisions({precision:t})}getOptions(e={}){const t=this.getPrecision(e),r=this.getDivisions(e);return{precision:t,subdivisions:r}}tAt(e,t={}){if(e<=0)return 0;if(e>=1)return 1;const r=this.getOptions(t),s=this.length(r)*e;return this.tAtLength(s,r)}tAtLength(e,t={}){let r=!0;e<0&&(r=!1,e=-e);const o=this.getPrecision(t),s=this.getDivisions(t),i={precision:o,subdivisions:s};let l=null,a,c,u=0,d=0,f=0;const h=s.length;let p=h>0?1/h:0;for(let m=0;mr.push(o.end.clone())),r}toPolyline(e={}){return new pn(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 sn(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})(sn||(sn={}));(function(n){function e(o){const s=o.length,i=[],l=[];let a=2;i[0]=o[0]/a;for(let c=1;cY.clone(f)),i=[],l=[],a=s.length-1;if(a===1)return i[0]=new Y((2*s[0].x+s[1].x)/3,(2*s[0].y+s[1].y)/3),l[0]=new Y(2*i[0].x-s[0].x,2*i[0].y-s[0].y),[i,l];const c=[];for(let f=1;f=1?r:r*e}divideAtT(e){if(this.divideAt)return this.divideAt(e);throw new Error("Neither `divideAtT` nor `divideAt` method is implemented.")}pointAtT(e){if(this.pointAt)return this.pointAt(e);throw new Error("Neither `pointAtT` nor `pointAt` method is implemented.")}tangentAtT(e){if(this.tangentAt)return this.tangentAt(e);throw new Error("Neither `tangentAtT` nor `tangentAt` method is implemented.")}}class lr extends Mg{constructor(e,t){super(),Ke.isLine(e)?this.endPoint=e.end.clone().round(2):this.endPoint=Y.create(e,t).round(2)}get type(){return"L"}get line(){return new Ke(this.start,this.end)}bbox(){return this.line.bbox()}closestPoint(e){return this.line.closestPoint(e)}closestPointLength(e){return this.line.closestPointLength(e)}closestPointNormalizedLength(e){return this.line.closestPointNormalizedLength(e)}closestPointTangent(e){return this.line.closestPointTangent(e)}length(){return this.line.length()}divideAt(e){const t=this.line.divideAt(e);return[new lr(t[0]),new lr(t[1])]}divideAtLength(e){const t=this.line.divideAtLength(e);return[new lr(t[0]),new lr(t[1])]}getSubdivisions(){return[]}pointAt(e){return this.line.pointAt(e)}pointAtLength(e){return this.line.pointAtLength(e)}tangentAt(e){return this.line.tangentAt(e)}tangentAtLength(e){return this.line.tangentAtLength(e)}isDifferentiable(){return this.previousSegment==null?!1:!this.start.equals(this.end)}clone(){return new lr(this.end)}scale(e,t,r){return this.end.scale(e,t,r),this}rotate(e,t){return this.end.rotate(e,t),this}translate(e,t){return typeof e=="number"?this.end.translate(e,t):this.end.translate(e),this}equals(e){return this.type===e.type&&this.start.equals(e.start)&&this.end.equals(e.end)}toJSON(){return{type:this.type,start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){const e=this.end;return`${this.type} ${e.x} ${e.y}`}}(function(n){function e(...t){const r=t.length,o=t[0];if(Ke.isLine(o))return new n(o);if(Y.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 K=t*t,W=r*r,U=(s===i?-1:1)*Math.sqrt(Math.abs((K*W-K*N*N-W*le*le)/(K*N*N+W*le*le)));v=U*t*N/r+(n+l)/2,m=U*-r*le/t+(e+a)/2,p=Math.asin((e-m)/r),g=Math.asin((a-m)/r),p=ng&&(p-=Math.PI*2),!i&&g>p&&(g-=Math.PI*2)}let w=g-p;if(Math.abs(w)>u){const le=g,N=l,R=a;g=p+u*(i&&g>p?1:-1),l=v+t*Math.cos(g),a=m+r*Math.sin(g),f=uP(l,a,t,r,o,0,i,N,R,[g,le,v,m])}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),k=[n,e],P=[n+M*y,e-O*b],L=[l+M*E,a-O*S],j=[l,a];if(P[0]=2*k[0]-P[0],P[1]=2*k[1]-P[1],c)return[P,L,j].concat(f);{f=[P,L,j].concat(f).join().split(",");const le=[],N=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 Xie(n){const e=Jie(n);if(!e||!e.length)return[["M",0,0]];let t=0,r=0,o=0,s=0;const i=[];for(let l=0,a=e.length;l7){a[c].shift();const u=a[c];for(;u.length;)s[c]="A",c+=1,a.splice(c,0,["C"].concat(u.splice(0,6)));a.splice(c,1),l=e.length}}const s=[];let i="",l=e.length;for(let a=0;a0&&(i=s[a-1])),e[a]=r(e[a],t,i),s[a]!=="A"&&c==="C"&&(s[a]="C"),o(e,a);const u=e[a],d=u.length;t.x=u[d-2],t.y=u[d-1],t.bx=parseFloat(u[d-4])||t.x,t.by=parseFloat(u[d-3])||t.y}return(!e[0][0]||e[0][0]!=="M")&&e.unshift(["M",0,0]),e}function Qie(n){return Zie(n).map(e=>e.map(t=>typeof t=="string"?t:jt.round(t,2))).join(",").split(",").join(" ")}class nt extends vl{constructor(e){if(super(),this.PRECISION=3,this.segments=[],Array.isArray(e))if(Ke.isLine(e[0])||sn.isCurve(e[0])){let t=null;e.forEach((o,s)=>{s===0&&this.appendSegment(nt.createSegment("M",o.start)),t!=null&&!t.end.equals(o.start)&&this.appendSegment(nt.createSegment("M",o.start)),Ke.isLine(o)?this.appendSegment(nt.createSegment("L",o.end)):sn.isCurve(o)&&this.appendSegment(nt.createSegment("C",o.controlPoint1,o.controlPoint2,o.end)),t=o})}else e.forEach(r=>{r.isSegment&&this.appendSegment(r)});else e!=null&&(Ke.isLine(e)?(this.appendSegment(nt.createSegment("M",e.start)),this.appendSegment(nt.createSegment("L",e.end))):sn.isCurve(e)?(this.appendSegment(nt.createSegment("M",e.start)),this.appendSegment(nt.createSegment("C",e.controlPoint1,e.controlPoint2,e.end))):pn.isPolyline(e)?e.points&&e.points.length&&e.points.forEach((t,r)=>{const o=r===0?nt.createSegment("M",t):nt.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(Ac.create.call(null,...e))}lineTo(...e){return this.appendSegment(lr.create.call(null,...e))}curveTo(...e){return this.appendSegment(Qr.create.call(null,...e))}arcTo(e,t,r,o,s,i,l){const a=this.end||new Y,c=typeof i=="number"?dp(a.x,a.y,e,t,r,o,s,i,l):dp(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=jt.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=jt.clamp(e.value,0,1);return t[o].pointAtT(s)}divideAt(e,t={}){if(this.segments.length===0)return null;const r=jt.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=jt.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 pn(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 nt;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})(nt||(nt={}));(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 Ac.create.call(null,...o);if(r==="L")return lr.create.call(null,...o);if(r==="C")return Qr.create.call(null,...o);if(r==="z"||r==="Z")return Mc.create();throw new Error(`Invalid path segment type "${r}"`)}n.createSegment=t})(nt||(nt={}));(function(n){n.normalize=Qie,n.isValid=qie,n.drawArc=Yie,n.drawPoints=cP,n.arcToCurves=dp})(nt||(nt={}));class vn{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&&!Xi.isApplyingHMR()&&this.onDuplicated(e);const o=this.options.process,s=o?pt(o,this,e,t):t;return this.data[e]=s,s}unregister(e){const t=e?this.data[e]:null;return delete this.data[e],t}get(e){return e?this.data[e]:null}exist(e){return e?this.data[e]!=null:!1}onDuplicated(e){try{throw this.options.onConflict&&pt(this.options.onConflict,this,e),new Error(`${Rh(this.options.type)} with name '${e}' already registered.`)}catch(t){throw t}}onNotFound(e,t){throw new Error(this.getSpellingSuggestion(e,t))}getSpellingSuggestion(e,t){const r=this.getSpellingSuggestionForName(e),o=t?`${t} ${v6(this.options.type)}`:this.options.type;return`${Rh(o)} with name '${e}' does not exist.${r?` Did you mean '${r}'?`:""}`}getSpellingSuggestionForName(e){return Zse(e,Object.keys(this.data),t=>t)}}(function(n){function e(t){return new n(t)}n.create=e})(vn||(vn={}));const ele={color:"#aaaaaa",thickness:1,markup:"rect",update(n,e){const t=e.thickness*e.sx,r=e.thickness*e.sy;Wt(n,{width:t,height:r,rx:t,ry:r,fill:e.color})}},tle={color:"#aaaaaa",thickness:1,markup:"rect",update(n,e){const t=e.sx<=1?e.thickness*e.sx:e.thickness;Wt(n,{width:t,height:t,rx:t,ry:t,fill:e.color})}},nle={color:"rgba(224,224,224,1)",thickness:1,markup:"path",update(n,e){let t;const r=e.width,o=e.height,s=e.thickness;r-s>=0&&o-s>=0?t=["M",r,0,"H0 M0 0 V0",o].join(" "):t="M 0 0 0 0",Wt(n,{d:t,stroke:e.color,"stroke-width":e.thickness})}},rle=[{color:"rgba(224,224,224,1)",thickness:1,markup:"path",update(n,e){let t;const r=e.width,o=e.height,s=e.thickness;r-s>=0&&o-s>=0?t=["M",r,0,"H0 M0 0 V0",o].join(" "):t="M 0 0 0 0",Wt(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,Wt(n,{d:t,stroke:e.color,"stroke-width":e.thickness})}}],ole=Object.freeze(Object.defineProperty({__proto__:null,dot:ele,doubleMesh:rle,fixedDot:tle,mesh:nle},Symbol.toStringTag,{value:"Module"}));class Vi{constructor(){this.patterns={},this.root=ft.create(lp(),{width:"100%",height:"100%"},[Go("defs")]).node}add(e,t){const r=this.root.childNodes[0];r&&r.appendChild(t),this.patterns[e]=t,ft.create("rect",{width:"100%",height:"100%",fill:`url(#${e})`}).appendTo(this.root)}get(e){return this.patterns[e]}has(e){return this.patterns[e]!=null}}(function(n){n.presets=ole,n.registry=vn.create({type:"grid"}),n.registry.register(n.presets,!0)})(Vi||(Vi={}));const dP=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},fP=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},hP=function(n){const e=document.createElement("canvas"),t=n.width,r=n.height;e.width=2*t,e.height=2*r;const o=e.getContext("2d");return o.drawImage(n,0,0,t,r),o.setTransform(-1,0,0,-1,e.width,e.height),o.drawImage(n,0,0,t,r),o.setTransform(-1,0,0,1,e.width,0),o.drawImage(n,0,0,t,r),o.setTransform(1,0,0,-1,0,e.height),o.drawImage(n,0,0,t,r),e},sle=function(n,e){const t=n.width,r=n.height,o=document.createElement("canvas");o.width=t*3,o.height=r*3;const s=o.getContext("2d"),i=e.angle!=null?-e.angle:-20,l=Ut.toRad(i),a=o.width/4,c=o.height/4;for(let u=0;u<4;u+=1)for(let d=0;d<4;d+=1)(u+d)%2>0&&(s.setTransform(1,0,0,1,(2*u-1)*a,(2*d-1)*c),s.rotate(l),s.drawImage(n,-t/2,-r/2,t,r));return o},ile=Object.freeze(Object.defineProperty({__proto__:null,flipX:dP,flipXY:hP,flipY:fP,watermark:sle},Symbol.toStringTag,{value:"Module"}));var Md;(function(n){n.presets=Object.assign({},ile),n.presets["flip-x"]=dP,n.presets["flip-y"]=fP,n.presets["flip-xy"]=hP,n.registry=vn.create({type:"background pattern"}),n.registry.register(n.presets,!0)})(Md||(Md={}));function O0(n,e){return n??e}function $n(n,e){return n!=null&&Number.isFinite(n)?n:e}function lle(n={}){const e=O0(n.color,"blue"),t=$n(n.width,1),r=$n(n.margin,2),o=$n(n.opacity,1),s=r,i=r+t;return` + + + + + + + + + + + + `.trim()}function ale(n={}){const e=O0(n.color,"red"),t=$n(n.blur,0),r=$n(n.width,1),o=$n(n.opacity,1);return` + + + + + + + + `.trim()}function cle(n={}){const e=$n(n.x,2);return` + + + + `.trim()}function ule(n={}){const e=$n(n.dx,0),t=$n(n.dy,0),r=O0(n.color,"black"),o=$n(n.blur,4),s=$n(n.opacity,1);return"SVGFEDropShadowElement"in window?` + + `.trim():` + + + + + + + + + + + + `.trim()}function dle(n={}){const e=$n(n.amount,1),t=.2126+.7874*(1-e),r=.7152-.7152*(1-e),o=.0722-.0722*(1-e),s=.2126-.2126*(1-e),i=.7152+.2848*(1-e),l=.0722-.0722*(1-e),a=.2126-.2126*(1-e),c=.0722+.9278*(1-e);return` + + + + `.trim()}function fle(n={}){const e=$n(n.amount,1),t=.393+.607*(1-e),r=.769-.769*(1-e),o=.189-.189*(1-e),s=.349-.349*(1-e),i=.686+.314*(1-e),l=.168-.168*(1-e),a=.272-.272*(1-e),c=.534-.534*(1-e),u=.131+.869*(1-e);return` + + + + `.trim()}function hle(n={}){return` + + + + `.trim()}function ple(n={}){return` + + + + `.trim()}function gle(n={}){const e=$n(n.amount,1),t=1-e;return` + + + + + + + + `.trim()}function mle(n={}){const e=$n(n.amount,1);return` + + + + + + + + `.trim()}function vle(n={}){const e=$n(n.amount,1),t=.5-e/2;return` + + + + + + + + `.trim()}const ble=Object.freeze(Object.defineProperty({__proto__:null,blur:cle,brightness:mle,contrast:vle,dropShadow:ule,grayScale:dle,highlight:ale,hueRotate:ple,invert:gle,outline:lle,saturate:hle,sepia:fle},Symbol.toStringTag,{value:"Module"}));var kc;(function(n){n.presets=ble,n.registry=vn.create({type:"filter"}),n.registry.register(n.presets,!0)})(kc||(kc={}));const yle={xlinkHref:"xlink:href",xlinkShow:"xlink:show",xlinkRole:"xlink:role",xlinkType:"xlink:type",xlinkArcrole:"xlink:arcrole",xlinkTitle:"xlink:title",xlinkActuate:"xlink:actuate",xmlSpace:"xml:space",xmlBase:"xml:base",xmlLang:"xml:lang",preserveAspectRatio:"preserveAspectRatio",requiredExtension:"requiredExtension",requiredFeatures:"requiredFeatures",systemLanguage:"systemLanguage",externalResourcesRequired:"externalResourceRequired"},wle={},pP={position:Ag("x","width","origin")},gP={position:Ag("y","height","origin")},Cle={position:Ag("x","width","corner")},xle={position:Ag("y","height","corner")},mP={set:Qi("width","width")},vP={set:Qi("height","height")},Sle={set:Qi("rx","width")},Ele={set:Qi("ry","height")},bP={set:(n=>{const e=Qi(n,"width"),t=Qi(n,"height");return function(r,o){const s=o.refBBox,i=s.height>s.width?e:t;return pt(i,this,r,o)}})("r")},_le={set(n,{refBBox:e}){let t=parseFloat(n);const r=Ys(n);r&&(t/=100);const o=Math.sqrt(e.height*e.height+e.width*e.width);let s;return Number.isFinite(t)&&(r||t>=0&&t<=1?s=t*o:s=Math.max(t+o,0)),{r:s}}},Tle={set:Qi("cx","width")},Ole={set:Qi("cy","height")},yP={set:xP({resetOffset:!0})},Mle={set:xP({resetOffset:!1})},wP={set:SP({resetOffset:!0})},Ale={set:SP({resetOffset:!1})},kle=bP,Ple=yP,Nle=wP,Ile=pP,Lle=gP,Rle=mP,$le=vP;function Ag(n,e,t){return(r,{refBBox:o})=>{if(r==null)return null;let s=parseFloat(r);const i=Ys(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 Y;return a[n]=l||0,a}}function Qi(n,e){return function(t,{refBBox:r}){let o=parseFloat(t);const s=Ys(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 CP(n,e){const t="x6-shape",r=e&&e.resetOffset;return function(o,{elem:s,refBBox:i}){let l=ha(s,t);if(!l||l.value!==o){const g=n(o);l={value:o,shape:g,shapeBBox:g.bbox()},ha(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 xP(n){function e(r){return nt.parse(r)}const t=CP(e,n);return(r,o)=>({d:t(r,o).serialize()})}function SP(n){const e=CP(t=>new pn(t),n);return(t,r)=>({points:e(t,r).serialize()})}const Dle={qualify:ys,set(n,{view:e}){return`url(#${e.graph.defineGradient(n)})`}},Vle={qualify:ys,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)})`}},EP={qualify(n,{attrs:e}){return e.textWrap==null||!ys(e.textWrap)},set(n,{view:e,elem:t,attrs:r}){const o="x6-text",s=ha(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&&(x0(f),l.textPath=Object.assign({"xlink:href":`#${f.id}`},u))}}tP(t,`${n}`,l),ha(t,o,c)}}},Ble={qualify:ys,set(n,{view:e,elem:t,attrs:r,refBBox:o}){const s=n,i=s.width||0;Ys(i)?o.width*=parseFloat(i)/100:i<=0?o.width+=i:o.width=i;const l=s.height||0;Ys(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=nP(`${c}`,o,{"font-weight":r["font-weight"]||r.fontWeight,"font-size":r["font-size"]||r.fontSize,"font-family":r["font-family"]||r.fontFamily,lineHeight:r.lineHeight},{ellipsis:s.ellipsis}):a="",pt(EP.set,this,a,{view:e,elem:t,attrs:r,refBBox:o,cell:e.cell})}},Qc=(n,{attrs:e})=>e.text!==void 0,Fle={qualify:Qc},zle={qualify:Qc},jle={qualify:Qc},Hle={qualify:Qc},Ule={qualify:Qc},Wle={qualify:Qc},Gle={qualify(n,{elem:e}){return e instanceof SVGElement},set(n,{elem:e}){const t="x6-title",r=`${n}`,o=ha(e,t);if(o==null||o!==r){ha(e,t,r);const s=e.firstChild;if(s&&s.tagName.toUpperCase()==="TITLE"){const i=s;i.textContent=r}else{const i=document.createElementNS(e.namespaceURI,"title");i.textContent=r,e.insertBefore(i,s)}}}},qle={offset:_P("x","width","right")},Kle={offset:_P("y","height","bottom")},Yle={offset(n,{refBBox:e}){return n?{x:-e.x,y:-e.y}:{x:0,y:0}}};function _P(n,e,t){return(r,{refBBox:o})=>{const s=new Y;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:Ys(r)?i=o[e]*parseFloat(r)/100:i=0,s[n]=-(o[n]+i),s}}const Jle={qualify:ys,set(n,{elem:e}){ff(e,n)}},Xle={set(n,{elem:e}){e.innerHTML=`${n}`}},Zle={qualify:ys,set(n,{view:e}){return`url(#${e.graph.defineFilter(n)})`}},Qle={set(n){return n!=null&&typeof n=="object"&&n.id?n.id:n}};function bl(n,e,t){let r,o;typeof e=="object"?(r=e.x,o=e.y):(r=e,o=t);const s=nt.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 TP=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=TP(n,["size","width","height","offset","open"]);return OP({size:e,width:t,height:r,offset:o},s===!0,!0,void 0,i)},tae=n=>{var{size:e,width:t,height:r,offset:o,factor:s}=n,i=TP(n,["size","width","height","offset","factor"]);return OP({size:e,width:t,height:r,offset:o},!1,!1,s,i)};function OP(n,e,t,r=3/4,o={}){const s=n.size||10,i=n.width||s,l=n.height||s,a=new nt,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=oo(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:bl(a.serialize(),{x:n.offset!=null?n.offset:-i/2})})}var nae=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{var{size:e,width:t,height:r,offset:o}=n,s=nae(n,["size","width","height","offset"]);const i=e||10,l=t||i,a=r||i,c=new nt;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:bl(c.serialize(),o??-l/2)})};var oae=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{var{d:e,offsetX:t,offsetY:r}=n,o=oae(n,["d","offsetX","offsetY"]);return Object.assign(Object.assign({},o),{tagName:"path",d:bl(e,t,r)})};var iae=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{var{size:e,width:t,height:r,offset:o}=n,s=iae(n,["size","width","height","offset"]);const i=e||10,l=t||i,a=r||i,c=new nt;return c.moveTo(0,0).lineTo(l,a).moveTo(0,a).lineTo(l,0),Object.assign(Object.assign({},s),{tagName:"path",fill:"none",d:bl(c.serialize(),o||-l/2)})};var aae=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{var{width:e,height:t,offset:r,open:o,flip:s}=n,i=aae(n,["width","height","offset","open","flip"]);let l=t||6;const a=e||10,c=o===!0,u=s===!0,d=Object.assign(Object.assign({},i),{tagName:"path"});u&&(l=-l);const f=new nt;return f.moveTo(0,l).lineTo(a,0),c?d.fill="none":(f.lineTo(a,l),f.close()),d.d=bl(f.serialize(),{x:r||-a/2,y:l/2}),d};var MP=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=MP(n,["r"]);const r=e||5;return Object.assign(Object.assign({cx:r},t),{tagName:"circle",r})},uae=n=>{var{r:e}=n,t=MP(n,["r"]);const r=e||5,o=new nt;return o.moveTo(r,0).lineTo(r,r*2),o.moveTo(0,r).lineTo(r*2,r),{children:[Object.assign(Object.assign({},AP({r})),{fill:"none"}),Object.assign(Object.assign({},t),{tagName:"path",d:bl(o.serialize(),-r)})]}};var dae=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{var{rx:e,ry:t}=n,r=dae(n,["rx","ry"]);const o=e||5,s=t||5;return Object.assign(Object.assign({cx:o},r),{tagName:"ellipse",rx:o,ry:s})},hae=Object.freeze(Object.defineProperty({__proto__:null,async:cae,block:eae,circle:AP,circlePlus:uae,classic:tae,cross:lae,diamond:rae,ellipse:fae,path:sae},Symbol.toStringTag,{value:"Module"}));var el;(function(n){n.presets=hae,n.registry=vn.create({type:"marker"}),n.registry.register(n.presets,!0)})(el||(el={}));(function(n){n.normalize=bl})(el||(el={}));var pae=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o1){const i=Math.ceil(s/2);t.refX=e==="marker-start"?i:-i}}return t}const hf=(n,{view:e})=>e.cell.isEdge(),yae={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()}}},kP={qualify:hf,set:kg("getTangentAtLength",{rotate:!0})},wae={qualify:hf,set:kg("getTangentAtLength",{rotate:!1})},PP={qualify:hf,set:kg("getTangentAtRatio",{rotate:!0})},Cae={qualify:hf,set:kg("getTangentAtRatio",{rotate:!1})},xae=kP,Sae=PP;function kg(n,e){const t={x:1,y:0};return(r,o)=>{let s,i;const l=o.view,a=l[n](Number(r));return a?(i=e.rotate?a.vector().vectorAngle(t):0,s=a.start):(s=l.path.start,i=0),i===0?{transform:`translate(${s.x},${s.y}')`}:{transform:`translate(${s.x},${s.y}') rotate(${i})`}}}const Eae=Object.freeze(Object.defineProperty({__proto__:null,annotations:Hle,atConnectionLength:xae,atConnectionLengthIgnoreGradient:wae,atConnectionLengthKeepGradient:kP,atConnectionRatio:Sae,atConnectionRatioIgnoreGradient:Cae,atConnectionRatioKeepGradient:PP,connection:yae,displayEmpty:Wle,eol:Ule,fill:Dle,filter:Zle,html:Xle,lineHeight:Fle,port:Qle,ref:wle,refCx:Tle,refCy:Ole,refD:Ple,refDKeepOffset:Mle,refDResetOffset:yP,refDx:Cle,refDy:xle,refHeight:vP,refHeight2:$le,refPoints:Nle,refPointsKeepOffset:Ale,refPointsResetOffset:wP,refR:kle,refRCircumscribed:_le,refRInscribed:bP,refRx:Sle,refRy:Ele,refWidth:mP,refWidth2:Rle,refX:pP,refX2:Ile,refY:gP,refY2:Lle,resetOffset:Yle,sourceMarker:gae,stroke:Vle,style:Jle,targetMarker:mae,text:EP,textPath:jle,textVerticalAnchor:zle,textWrap:Ble,title:Gle,vertexMarker:vae,xAlign:qle,yAlign:Kle},Symbol.toStringTag,{value:"Module"}));var ms;(function(n){function e(t,r,o){return!!(t!=null&&(typeof t=="string"||typeof t.qualify!="function"||pt(t.qualify,this,r,o)))}n.isValidDefinition=e})(ms||(ms={}));(function(n){n.presets=Object.assign(Object.assign({},yle),Eae),n.registry=vn.create({type:"attribute definition"}),n.registry.register(n.presets,!0)})(ms||(ms={}));const jo={prefixCls:"x6",autoInsertCSS:!0,useCSSSelector:!0,prefix(n){return`${jo.prefixCls}-${n}`}},uE=jo.prefix("highlighted"),_ae={highlight(n,e,t){const r=t&&t.className||uE;Nt(e,r)},unhighlight(n,e,t){const r=t&&t.className||uE;io(e,r)}},dE=jo.prefix("highlight-opacity"),Tae={highlight(n,e){Nt(e,dE)},unhighlight(n,e){io(e,dE)}};var Vt;(function(n){n.normalizeMarker=bl;function e(f,h){const p=Iie(f.x,f.y).matrixTransform(h);return new Y(p.x,p.y)}n.transformPoint=e;function t(f,h){return new Ke(e(f.start,h),e(f.end,h))}n.transformLine=t;function r(f,h){let p=f instanceof pn?f.points:f;return Array.isArray(p)||(p=[]),new pn(p.map(g=>e(g,h)))}n.transformPolyline=r;function o(f,h){const g=Go("svg").createSVGPoint();g.x=f.x,g.y=f.y;const v=g.matrixTransform(h);g.x=f.x+f.width,g.y=f.y;const m=g.matrixTransform(h);g.x=f.x+f.width,g.y=f.y+f.height;const w=g.matrixTransform(h);g.x=f.x,g.y=f.y+f.height;const b=g.matrixTransform(h),y=Math.min(v.x,m.x,w.x,b.x),S=Math.max(v.x,m.x,w.x,b.x),E=Math.min(v.y,m.y,w.y,b.y),T=Math.max(v.y,m.y,w.y,b.y);return new Ve(y,E,S-y,T-E)}n.transformRectangle=o;function s(f,h,p){let g;const v=f.ownerSVGElement;if(!v)return new Ve(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 Ve.create(g);const m=Wu(f,p||v);return o(g,m)}n.bbox=s;function i(f,h={}){let p;if(!f.ownerSVGElement||!Zi(f)){if(tE(f)){const{left:w,top:b,width:y,height:S}=l(f);return new Ve(w,b,y,S)}return new Ve(0,0,0,0)}let v=h.target;if(!h.recursive){try{p=f.getBBox()}catch{p={x:f.clientLeft,y:f.clientTop,width:f.clientWidth,height:f.clientHeight}}if(!v)return Ve.create(p);const w=Wu(f,v);return o(p,w)}{const w=f.childNodes,b=w.length;if(b===0)return i(f,{target:v});v||(v=f);for(let y=0;y{const g=f.getAttribute(p),v=g?parseFloat(g):0;return Number.isNaN(v)?0:v};switch(f instanceof SVGElement&&f.nodeName.toLowerCase()){case"rect":return new Ve(h("x"),h("y"),h("width"),h("height"));case"circle":return new zo(h("cx"),h("cy"),h("r"),h("r"));case"ellipse":return new zo(h("cx"),h("cy"),h("rx"),h("ry"));case"polyline":{const p=cp(f);return new pn(p)}case"polygon":{const p=cp(f);return p.length>1&&p.push(p[0]),new pn(p)}case"path":{let p=f.getAttribute("d");return nt.isValid(p)||(p=nt.normalize(p)),nt.parse(p)}case"line":return new Ke(h("x1"),h("y1"),h("x2"),h("y2"))}return i(f)}n.toGeometryShape=a;function c(f,h,p,g){const v=Y.create(h),m=Y.create(p);g||(g=f instanceof SVGSVGElement?f:f.ownerSVGElement);const w=bb(f);f.setAttribute("transform","");const b=i(f,{target:g}).scale(w.sx,w.sy),y=mu();y.setTranslate(-b.x-b.width/2,-b.y-b.height/2);const S=mu(),E=v.angleBetween(m,v.clone().translate(1,0));E&&S.setRotate(E,0,0);const T=mu(),M=v.clone().move(m,b.width/2);T.setTranslate(2*v.x-M.x,2*v.y-M.y);const O=Wu(f,g),k=mu();k.setMatrix(T.matrix.multiply(S.matrix.multiply(y.matrix.multiply(O.scale(w.sx,w.sy))))),f.setAttribute("transform",Zc(k.matrix))}n.translateAndAutoOrient=c;function u(f){if(f==null)return null;let h=f;do{let p=h.tagName;if(typeof p!="string")return null;if(p=p.toUpperCase(),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(!Zi(h)){if(tE(f)){const{left:v,top:m,width:w,height:b}=l(f);return new Ve(v,m,w,b)}return new Ve(0,0,0,0)}return a(h).bbox()||Ve.create()}n.getBBoxV2=d})(Vt||(Vt={}));const Oae={padding:3,rx:0,ry:0,attrs:{"stroke-width":3,stroke:"#FEB663"}},Mae={highlight(n,e,t){const r=Oi.getHighlighterId(e,t);if(Oi.hasCache(r))return;t=VT({},t,Oae);const o=ft.create(e);let s,i;try{s=o.toPathData()}catch{i=Vt.bbox(o.node,!0),s=oP(Object.assign(Object.assign({},t),i))}const l=Go("path");if(Wt(l,Object.assign({d:s,"pointer-events":"none","vector-effect":"non-scaling-stroke",fill:"none"},t.attrs?Ed(t.attrs):null)),n.isEdgeElement(e))Wt(l,"d",n.getConnectionPathData());else{let u=o.getTransformToElement(n.container);const d=t.padding;if(d){i==null&&(i=Vt.bbox(o.node,!0));const f=i.x+i.width/2,h=i.y+i.height/2;i=Vt.transformRectangle(i,u);const p=Math.max(i.width,1),g=Math.max(i.height,1),v=(p+d)/p,m=(g+d)/g,w=jn({a:v,b:0,c:0,d:m,e:f-v*f,f:h-m*h});u=u.multiply(w)}Tc(l,u)}Nt(l,jo.prefix("highlight-stroke"));const a=n.cell,c=()=>Oi.removeHighlighter(r);a.on("removed",c),a.model&&a.model.on("reseted",c),n.container.appendChild(l),Oi.setCache(r,l)},unhighlight(n,e,t){Oi.removeHighlighter(Oi.getHighlighterId(e,t))}};var Oi;(function(n){function e(i,l){return x0(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&&(_c(l),delete t[i])}n.removeHighlighter=s})(Oi||(Oi={}));const Aae=Object.freeze(Object.defineProperty({__proto__:null,className:_ae,opacity:Tae,stroke:Mae},Symbol.toStringTag,{value:"Module"}));var Ws;(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})(Ws||(Ws={}));(function(n){n.presets=Aae,n.registry=vn.create({type:"highlighter"}),n.registry.register(n.presets,!0)})(Ws||(Ws={}));function Cb(n,e={}){return new Y(Ro(e.x,n.width),Ro(e.y,n.height))}function k0(n,e,t){return Object.assign({angle:e,position:n.toJSON()},t)}const kae=(n,e)=>n.map(({x:t,y:r,angle:o})=>k0(Cb(e,{x:t,y:r}),o||0)),Pae=(n,e,t)=>{const r=t.start||0,o=t.step||20;return NP(n,e,r,(s,i)=>(s+.5-i/2)*o)},Nae=(n,e,t)=>{const r=t.start||0,o=t.step||360/n.length;return NP(n,e,r,s=>s*o)};function NP(n,e,t,r){const o=e.getCenter(),s=e.getTopCenter(),i=e.width/e.height,l=zo.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),k0(f.round(),h,c)})}var Iae=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{const r=Cb(e,t.start||e.getOrigin()),o=Cb(e,t.end||e.getCorner());return pf(n,r,o,t)},Rae=(n,e,t)=>pf(n,e.getTopLeft(),e.getBottomLeft(),t),$ae=(n,e,t)=>pf(n,e.getTopRight(),e.getBottomRight(),t),Dae=(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 Ke(e,t),s=n.length;return n.map((i,l)=>{var{strict:a}=i,c=Iae(i,["strict"]);const u=a||r.strict?(l+1)/(s+1):(l+.5)/s,d=o.pointAt(u);return(c.dx||c.dy)&&d.translate(c.dx||0,c.dy||0),k0(d.round(),0,c)})}const Bae=Object.freeze(Object.defineProperty({__proto__:null,absolute:kae,bottom:Vae,ellipse:Pae,ellipseSpread:Nae,left:Rae,line:Lae,right:$ae,top:Dae},Symbol.toStringTag,{value:"Module"}));var ea;(function(n){n.presets=Bae,n.registry=vn.create({type:"port layout"}),n.registry.register(n.presets,!0)})(ea||(ea={}));const Fae={position:{x:0,y:0},angle:0,attrs:{".":{y:"0","text-anchor":"start"}}};function yl(n,e){const{x:t,y:r,angle:o,attrs:s}=e||{};return VT({},{angle:o,attrs:s,position:{x:t,y:r}},n,Fae)}const zae=(n,e,t)=>yl({position:e.getTopLeft()},t),jae=(n,e,t)=>yl({position:{x:-15,y:0},attrs:{".":{y:".3em","text-anchor":"end"}}},t),Hae=(n,e,t)=>yl({position:{x:15,y:0},attrs:{".":{y:".3em","text-anchor":"start"}}},t),Uae=(n,e,t)=>yl({position:{x:0,y:-15},attrs:{".":{"text-anchor":"middle"}}},t),Wae=(n,e,t)=>yl({position:{x:0,y:15},attrs:{".":{y:".6em","text-anchor":"middle"}}},t),Gae=(n,e,t)=>IP(n,e,!1,t),qae=(n,e,t)=>IP(n,e,!0,t),Kae=(n,e,t)=>LP(n,e,!1,t),Yae=(n,e,t)=>LP(n,e,!0,t);function IP(n,e,t,r){const o=r.offset!=null?r.offset:15,s=e.getCenter().theta(n),i=RP(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"):s$P(n.diff(e.getCenter()),!1,t),Xae=(n,e,t)=>$P(n.diff(e.getCenter()),!0,t);function $P(n,e,t){const r=t.offset!=null?t.offset:20,o=new Y(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",yl({position:i.round().toJSON(),angle:e?c:0,attrs:{".":{y:l,"text-anchor":a}}},t)}const Zae=Object.freeze(Object.defineProperty({__proto__:null,bottom:Wae,inside:Kae,insideOriented:Yae,left:jae,manual:zae,outside:Gae,outsideOriented:qae,radial:Jae,radialOriented:Xae,right:Hae,top:Uae},Symbol.toStringTag,{value:"Module"}));var Pc;(function(n){n.presets=Zae,n.registry=vn.create({type:"port label layout"}),n.registry.register(n.presets,!0)})(Pc||(Pc={}));var Qae=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class en extends Ur{get priority(){return 2}get disposeContainer(){return!0}constructor(){super(),this.cid=xb.uniqueId(),en.views[this.cid]=this}confirmUpdate(e,t){return 0}empty(e=this.container){return uf(e),this}unmount(e=this.container){return _c(e),this}remove(e=this.container){return e===this.container?(this.removeEventListeners(document),this.onRemove(),delete en.views[this.cid],this.disposeContainer&&this.unmount(e)):this.unmount(e),this}onRemove(){}setClass(e,t=this.container){t.classList.value=Array.isArray(e)?e.join(" "):e}addClass(e,t=this.container){return Nt(t,Array.isArray(e)?e.join(" "):e),this}removeClass(e,t=this.container){return io(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&&Wt(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 en.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=E0(e)+1;r=`${e.tagName.toLowerCase()}:nth-child(${o})`,t&&(r+=` > ${t}`),r=this.getSelector(e.parentNode,r)}return r}prefixClassName(e){return jo.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 Wn.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 Wn.on(this.container,e+this.getEventNamespace(),t,r),this}undelegateEvent(e,t,r){const o=e+this.getEventNamespace();return t==null?Wn.off(this.container,o):typeof t=="string"?Wn.off(this.container,o,t,r):Wn.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"&&Wn.on(e,s+o,r,i)}),this}removeEventListeners(e){return e!=null&&Wn.off(e,this.getEventNamespace()),this}getEventNamespace(){return`.${jo.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 en.normalizeEvent(e)}dispose(){this.remove()}}Qae([en.dispose()],en.prototype,"dispose",null);(function(n){function e(o,s){return s?Go(o||"g"):S0(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})(en||(en={}));(function(n){n.views={};function e(t){return n.views[t]||null}n.getView=e})(en||(en={}));var xb;(function(n){let e=0;function t(){const r=`v${e}`;return e+=1,r}n.uniqueId=t})(xb||(xb={}));class ece{constructor(e){this.view=e,this.clean()}clean(){this.elemCache&&this.elemCache.dispose(),this.elemCache=new wb,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 jn(t.matrix)}getShape(e){const t=this.get(e);return t.shape==null&&(t.shape=Vt.toGeometryShape(e)),t.shape.clone()}getBoundingRect(e){const t=this.get(e);return t.boundingRect==null&&(t.boundingRect=Vt.getBBoxV2(e)),t.boundingRect.clone()}}var Yt;(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:ln(c)}n.clone=r;function o(c){return`${c}`.trim().replace(/[\r|\n]/g," ").replace(/>\s+<")}n.sanitize=o;function s(c,u={ns:Ln.svg}){const d=document.createDocumentFragment(),f={},h={},p=[{markup:Array.isArray(c)?c:[c],parent:d,ns:u.ns}];for(;p.length>0;){const g=p.pop();let v=g.ns||Ln.svg;const m=g.markup,w=g.parent;m.forEach(b=>{const y=b.tagName;if(!y)throw new TypeError("Invalid tagName");b.ns&&(v=b.ns);const S=v?S0(y,v):eE(y),E=b.attrs;E&&Wt(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 P=b.groupSelector;Array.isArray(P)||(P=[P]),P.forEach(L=>{f[L]||(f[L]=[]),f[L].push(S)})}w.appendChild(S);const k=b.children;Array.isArray(k)&&p.push({ns:v,markup:k,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?Go("g"):eE("div")}function l(c){if(t(c)){const h=ft.createVectors(c),p=h.length;if(p===1)return{elem:h[0].node};if(p>1){const g=i(h[0].node);return h.forEach(v=>{g.appendChild(v.node)}),{elem:g}}return{}}const u=s(c),d=u.fragment;let f=null;return d.childNodes.length>1?(f=i(d.firstChild),f.appendChild(d)):f=d.firstChild,{elem:f,selectors:u.selectors}}n.renderMarkup=l;function a(c){const u=ft.createVectors(c),d=document.createDocumentFragment();for(let f=0,h=u.length;f ${i} > ${o}`:s=`> ${i}`,s;const l=t.parentNode;if(l&&l.childNodes.length>1){const a=E0(t)+1;s=`${i}:nth-child(${a})`}else s=i;return o&&(s+=` > ${o}`),e(t.parentNode,r,s)}return o}n.getSelector=e})(Yt||(Yt={}));(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})(Yt||(Yt={}));(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})(Yt||(Yt={}));(function(n){function e(t=!1){return{tagName:"foreignObject",selector:"fo",children:[{ns:Ln.xhtml,tagName:"body",selector:"foBody",attrs:{xmlns:Ln.xhtml},style:{width:"100%",height:"100%",background:"transparent"},children:t?[]:[{tagName:"div",selector:"foContent",style:{width:"100%",height:"100%"}}]}]}}n.getForeignObjectMarkup=e})(Yt||(Yt={}));class DP{constructor(e){this.view=e}get cell(){return this.view.cell}getDefinition(e){return this.cell.getAttrDefinition(e)}processAttrs(e,t){let r,o,s,i;const l=[];return Object.keys(t).forEach(a=>{const c=t[a],u=this.getDefinition(a),d=pt(ms.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=Yk.includes(a)?a:kk(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 wb;return Object.keys(e).forEach(l=>{const a=e[l];if(!ys(a))return;const{isCSSSelector:c,elems:u}=en.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)=>cn(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(v=>{const m=i[v],w=this.getDefinition(v);if(w!=null){const b=pt(w.set,this.view,m,c());typeof b=="object"?s=Object.assign(Object.assign({},s),b):b!=null&&(s[v]=b)}}),e instanceof HTMLElement){this.view.setAttrs(s,e);return}const u=s.transform,d=u?`${u}`:null,f=_d(d),h=new Y(f.e,f.f);u&&(delete s.transform,f.e=0,f.f=0);let p=!1;l!=null&&Object.keys(l).forEach(v=>{const m=l[v],w=this.getDefinition(v);if(w!=null){const b=pt(w.position,this.view,m,c());b!=null&&(p=!0,h.translate(Y.create(b)))}}),this.view.setAttrs(s,e);let g=!1;if(a!=null){const v=this.view.getBoundingRectOfElement(e);if(v.width>0&&v.height>0){const m=Vt.transformRectangle(v,f);Object.keys(a).forEach(w=>{const b=a[w],y=this.getDefinition(w);if(y!=null){const S=pt(y.offset,this.view,b,{elem:e,cell:this.cell,view:this.view,attrs:o,refBBox:m});S!=null&&(g=!0,h.translate(Y.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,v=g&&f.ref==null?g.ref:f.ref;let m;if(v){if(m=(o[v]||this.view.find(v,e,r.selectors))[0],!m)throw new Error(`"${v}" reference does not exist.`)}else m=null;const w={node:d,refNode:m,attributes:g,processedAttributes:h},b=l.findIndex(y=>y.refNode===d);b>-1?l.splice(b,0,w):l.push(w)}});const a=new wb;let c;l.forEach(u=>{const d=u.node,f=u.refNode;let h;const p=f!=null&&r.rotatableNode!=null&&Kk(r.rotatableNode,f);if(f&&(h=a.get(f)),!h){const m=p?r.rotatableNode:e;h=f?Vt.getBBox(f,{target:m}):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 v=h;p&&r.rotatableNode!=null&&!r.rotatableNode.contains(d)&&(c||(c=_d(Wt(r.rotatableNode,"transform"))),v=Vt.transformRectangle(h,c)),this.updateRelativeAttrs(d,g,v)})}}class VP{get cell(){return this.view.cell}constructor(e,t,r=[]){this.view=e;const o={},s={};let i=0;Object.keys(t).forEach(a=>{let c=t[a];Array.isArray(c)||(c=[c]),c.forEach(u=>{let d=o[u];d||(i+=1,d=o[u]=1<{o[a]||(i+=1,o[a]=1<25)throw new Error("Maximum number of flags exceeded.");this.flags=o,this.attrs=s,this.bootstrap=r}getFlag(e){const t=this.flags;return t==null?0:Array.isArray(e)?e.reduce((r,o)=>r|t[o],0):t[e]|0}hasAction(e,t){return e&this.getFlag(t)}removeAction(e,t){return e^e&this.getFlag(t)}getBootstrapFlag(){return this.getFlag(this.bootstrap)}getChangedFlag(){let e=0;return this.attrs&&Object.keys(this.attrs).forEach(t=>{this.cell.hasChanged(t)&&(e|=this.attrs[t])}),e}}var tce=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s},nce=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);ou!=null?GT([...Array.isArray(c)?c:[c],...Array.isArray(u)?u:[u]]):Array.isArray(c)?[...c]:[c],r=ln(this.getDefaults()),{bootstrap:o,actions:s,events:i,documentEvents:l}=e,a=nce(e,["bootstrap","actions","events","documentEvents"]);return o&&(r.bootstrap=t(r.bootstrap,o)),s&&Object.entries(s).forEach(([c,u])=>{const d=r.actions[c];u&&d?r.actions[c]=t(d,u):u&&(r.actions[c]=t(u))}),i&&(r.events=Object.assign(Object.assign({},r.events),i)),e.documentEvents&&(r.documentEvents=Object.assign(Object.assign({},r.documentEvents),l)),cn(r,a)}get[Symbol.toStringTag](){return gn.toStringTag}constructor(e,t={}){super(),this.cell=e,this.options=this.ensureOptions(t),this.graph=this.options.graph,this.attr=new DP(this),this.flag=new VP(this,this.options.actions,this.options.bootstrap),this.cache=new ece(this),this.setContainer(this.ensureContainer()),this.setup(),this.init()}init(){}onRemove(){this.removeTools()}get priority(){return this.options.priority}get rootSelector(){return this.options.rootSelector}getConstructor(){return this.constructor}ensureOptions(e){return this.getConstructor().getOptions(e)}getContainerTagName(){return this.options.isSvgElement?"g":"div"}getContainerStyle(){}getContainerAttrs(){return{"data-cell-id":this.cell.id,"data-shape":this.cell.shape}}getContainerClassName(){return this.prefixClassName("cell")}ensureContainer(){return en.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=Yt.parseJSONMarkup(e),o=r.selectors,s=this.rootSelector;if(t&&s){if(o[s])throw new Error("Invalid root selector");o[s]=t}return r}can(e){let t=this.graph.options.interacting;if(typeof t=="function"&&(t=pt(t,this.graph,this)),typeof t=="object"){let r=t[e];return typeof r=="function"&&(r=pt(r,this.graph,this)),r!==!1}return typeof t=="boolean"?t:!1}cleanCache(){return this.cache.clean(),this}getCache(e){return this.cache.get(e)}getDataOfElement(e){return this.cache.getData(e)}getMatrixOfElement(e){return this.cache.getMatrix(e)}getShapeOfElement(e){return this.cache.getShape(e)}getBoundingRectOfElement(e){return this.cache.getBoundingRect(e)}getBBoxOfElement(e){const t=this.getBoundingRectOfElement(e),r=this.getMatrixOfElement(e),o=this.getRootRotatedMatrix(),s=this.getRootTranslatedMatrix();return Vt.transformRectangle(t,s.multiply(o).multiply(r))}getUnrotatedBBoxOfElement(e){const t=this.getBoundingRectOfElement(e),r=this.getMatrixOfElement(e),o=this.getRootTranslatedMatrix();return Vt.transformRectangle(t,o.multiply(r))}getBBox(e={}){let t;if(e.useCellGeometry){const r=this.cell,o=r.isNode()?r.getAngle():0;t=r.getBBox().bbox(o)}else t=this.getBBoxOfElement(this.container);return this.graph.coord.localToGraphRect(t)}getRootTranslatedMatrix(){const e=this.cell,t=e.isNode()?e.getPosition():{x:0,y:0};return jn().translate(t.x,t.y)}getRootRotatedMatrix(){let e=jn();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 Ve),r.selectors==null&&(r.selectors=this.selectors),this.attr.update(e,t,r)}isEdgeElement(e){return this.cell.isEdge()&&(e==null||e===this.container)}prepareHighlight(e,t={}){const r=e||this.container;return t.partial=r===this.container,r}highlight(e,t={}){const r=this.prepareHighlight(e,t);return this.notify("cell:highlight",{magnet:r,options:t,view:this,cell:this.cell}),this.isEdgeView()?this.notify("edge:highlight",{magnet:r,options:t,view:this,edge:this.cell,cell:this.cell}):this.isNodeView()&&this.notify("node:highlight",{magnet:r,options:t,view:this,node:this.cell,cell:this.cell}),this}unhighlight(e,t={}){const r=this.prepareHighlight(e,t);return this.notify("cell:unhighlight",{magnet:r,options:t,view:this,cell:this.cell}),this.isNodeView()?this.notify("node:unhighlight",{magnet:r,options:t,view:this,node:this.cell,cell:this.cell}):this.isEdgeView()&&this.notify("edge:unhighlight",{magnet:r,options:t,view:this,edge:this.cell,cell:this.cell}),this}notifyUnhighlight(e,t){}getEdgeTerminal(e,t,r,o,s){const i=this.cell,l=this.findAttr("port",e),a=e.getAttribute("data-selector"),c={cell:i.id};return a!=null&&(c.magnet=a),l!=null?(c.port=l,i.isNode()&&!i.hasPort(l)&&a==null&&(c.selector=this.getSelector(e))):a==null&&this.container!==e&&(c.selector=this.getSelector(e)),c}getMagnetFromEdgeTerminal(e){const t=this.cell,r=this.container,o=e.port;let s=e.magnet,i;return o!=null&&t.isNode()&&t.hasPort(o)?i=this.findPortElem(o,s)||r:(s||(s=e.selector),!s&&o!=null&&(s=`[port="${o}"]`),i=this.findOne(s,r,this.selectors)),i}hasTools(e){const t=this.tools;return t==null?!1:e==null?!0:t.name===e}addTools(e){if(this.removeTools(),e){if(!this.can("toolsAddable"))return this;const t=En.isToolsView(e)?e:new En(e);this.tools=t,t.config({view:this}),t.mount()}return this}updateTools(e={}){return this.tools&&this.tools.update(e),this}removeTools(){return this.tools&&(this.tools.remove(),this.tools=null),this}hideTools(){return this.tools&&this.tools.hide(),this}showTools(){return this.tools&&this.tools.show(),this}renderTools(){const e=this.cell.getTools();return this.addTools(e),this}notify(e,t){return this.trigger(e,t),this.graph.trigger(e,t),this}getEventArgs(e,t,r){const o=this,s=o.cell;return t==null||r==null?{e,view:o,cell:s}:{e,x:t,y:r,view:o,cell:s}}onClick(e,t,r){this.notify("cell:click",this.getEventArgs(e,t,r))}onDblClick(e,t,r){this.notify("cell:dblclick",this.getEventArgs(e,t,r))}onContextMenu(e,t,r){this.notify("cell:contextmenu",this.getEventArgs(e,t,r))}onMouseDown(e,t,r){this.cell.model&&(this.cachedModelForMouseEvent=this.cell.model,this.cachedModelForMouseEvent.startBatch("mouse")),this.notify("cell:mousedown",this.getEventArgs(e,t,r))}onMouseUp(e,t,r){this.notify("cell:mouseup",this.getEventArgs(e,t,r)),this.cachedModelForMouseEvent&&(this.cachedModelForMouseEvent.stopBatch("mouse",{cell:this.cell}),this.cachedModelForMouseEvent=null)}onMouseMove(e,t,r){this.notify("cell:mousemove",this.getEventArgs(e,t,r))}onMouseOver(e){this.notify("cell:mouseover",this.getEventArgs(e))}onMouseOut(e){this.notify("cell:mouseout",this.getEventArgs(e))}onMouseEnter(e){this.notify("cell:mouseenter",this.getEventArgs(e))}onMouseLeave(e){this.notify("cell:mouseleave",this.getEventArgs(e))}onMouseWheel(e,t,r,o){this.notify("cell:mousewheel",Object.assign({delta:o},this.getEventArgs(e,t,r)))}onCustomEvent(e,t,r,o){this.notify("cell:customevent",Object.assign({name:t},this.getEventArgs(e,r,o))),this.notify(t,Object.assign({},this.getEventArgs(e,r,o)))}onMagnetMouseDown(e,t,r,o){}onMagnetDblClick(e,t,r,o){}onMagnetContextMenu(e,t,r,o){}onLabelMouseDown(e,t,r){}checkMouseleave(e){const t=this.getEventTarget(e,{fromPoint:!0}),r=this.graph.findViewByElem(t);r!==this&&(this.onMouseLeave(e),r&&r.onMouseEnter(e))}dispose(){this.cell.off("changed",this.onCellChanged,this)}}gn.defaults={isSvgElement:!0,rootSelector:"root",priority:0,bootstrap:[],actions:{}};tce([gn.dispose()],gn.prototype,"dispose",null);(function(n){n.Flag=VP,n.Attr=DP})(gn||(gn={}));(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})(gn||(gn={}));(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})(gn||(gn={}));(function(n){n.registry=vn.create({type:"view"})})(gn||(gn={}));class En extends en{get name(){return this.options.name}get graph(){return this.cellView.graph}get cell(){return this.cellView.cell}get[Symbol.toStringTag](){return En.toStringTag}constructor(e={}){super(),this.svgContainer=this.createContainer(!0,e),this.htmlContainer=this.createContainer(!1,e),this.config(e)}createContainer(e,t){const r=e?en.createElement("g",!0):en.createElement("div",!1);return Nt(r,this.prefixClassName("cell-tools")),t.className&&Nt(r,t.className),r}config(e){if(this.options=Object.assign(Object.assign({},this.options),e),!gn.isCellView(e.view)||e.view===this.cellView)return this;this.cellView=e.view,this.cell.isEdge()?(Nt(this.svgContainer,this.prefixClassName("edge-tools")),Nt(this.htmlContainer,this.prefixClassName("edge-tools"))):this.cell.isNode()&&(Nt(this.svgContainer,this.prefixClassName("node-tools")),Nt(this.htmlContainer,this.prefixClassName("node-tools"))),this.svgContainer.setAttribute("data-cell-id",this.cell.id),this.htmlContainer.setAttribute("data-cell-id",this.cell.id),this.name&&(this.svgContainer.setAttribute("data-tools-name",this.name),this.htmlContainer.setAttribute("data-tools-name",this.name));const t=this.options.items;if(!Array.isArray(t))return this;this.tools=[];const r=[];t.forEach(o=>{En.ToolItem.isToolItem(o)?o.name==="vertices"?r.unshift(o):r.push(o):(typeof o=="object"?o.name:o)==="vertices"?r.unshift(o):r.push(o)});for(let o=0;o{e.toolId!==r.cid&&r.isVisible()&&r.update()}),this}focus(e){const t=this.tools;return t&&t.forEach(r=>{e===r?r.show():r.hide()}),this}blur(e){const t=this.tools;return t&&t.forEach(r=>{r!==e&&!r.isVisible()&&(r.show(),r.update())}),this}hide(){return this.focus(null)}show(){return this.blur(null)}remove(){const e=this.tools;return e&&(e.forEach(t=>t.remove()),this.tools=null),_c(this.svgContainer),_c(this.htmlContainer),super.remove()}mount(){const e=this.tools,t=this.cellView;if(t&&e){const r=e.some(s=>s.options.isSVGElement!==!1),o=e.some(s=>s.options.isSVGElement===!1);r&&(this.options.local?t.container:t.graph.view.decorator).appendChild(this.svgContainer),o&&this.graph.container.appendChild(this.htmlContainer)}return this}}(function(n){n.toStringTag=`X6.${n.name}`;function e(t){if(t==null)return!1;if(t instanceof n)return!0;const r=t[Symbol.toStringTag],o=t;return(r==null||r===n.toStringTag)&&o.graph!=null&&o.cell!=null&&typeof o.config=="function"&&typeof o.update=="function"&&typeof o.focus=="function"&&typeof o.blur=="function"&&typeof o.show=="function"&&typeof o.hide=="function"}n.isToolsView=e})(En||(En={}));(function(n){class e extends en{static getDefaults(){return this.defaults}static config(r){this.defaults=this.getOptions(r)}static getOptions(r){return cn(ln(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=en.createElement(this.options.tagName||"g",this.options.isSVGElement!==!1),Nt(this.container,this.prefixClassName("cell-tool")),typeof this.options.className=="string"&&Nt(this.container,this.options.className),this.init()}init(){}getOptions(r){return this.constructor.getOptions(r)}delegateEvents(){return this.options.events&&super.delegateEvents(this.options.events),this}config(r,o){return this.cellView=r,this.parent=o,this.stamp(this.container),this.cell.isEdge()?Nt(this.container,this.prefixClassName("edge-tool")):this.cell.isNode()&&Nt(this.container,this.prefixClassName("node-tool")),this.name&&this.container.setAttribute("data-tool-name",this.name),this.delegateEvents(),this}render(){this.empty();const r=this.options.markup;if(r){const o=Yt.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?b0(i):(r+=1,`CustomTool${r}`)}function s(i){const l=m0(o(i.name),this);return l.config(i),l}t.define=s}(e=n.ToolItem||(n.ToolItem={})),function(t){t.toStringTag=`X6.${t.name}`;function r(o){if(o==null)return!1;if(o instanceof t)return!0;const s=o[Symbol.toStringTag],i=o;return(s==null||s===t.toStringTag)&&i.graph!=null&&i.cell!=null&&typeof i.config=="function"&&typeof i.update=="function"&&typeof i.focus=="function"&&typeof i.blur=="function"&&typeof i.show=="function"&&typeof i.hide=="function"&&typeof i.isVisible=="function"}t.isToolItem=r}(e=n.ToolItem||(n.ToolItem={}))})(En||(En={}));const rce=n=>n;function fE(n,e){return e===0?"0%":`${Math.round(n/e*100)}%`}function BP(n){return(t,r,o,s)=>r.isEdgeElement(o)?sce(n,t,r,o,s):oce(n,t,r,o,s)}function oce(n,e,t,r,o){const s=t.cell,i=s.getAngle(),l=t.getUnrotatedBBoxOfElement(r),a=s.getBBox().getCenter(),c=Y.create(o).rotate(i,a);let u=c.x-l.x,d=c.y-l.y;return n&&(u=fE(u,l.width),d=fE(d,l.height)),e.anchor={name:"topLeft",args:{dx:u,dy:d,rotate:!0}},e}function sce(n,e,t,r,o){const s=t.getConnection();if(!s)return e;const i=s.closestPointLength(o);if(n){const l=s.length();e.anchor={name:"ratio",args:{ratio:i/l}}}else e.anchor={name:"length",args:{length:i}};return e}const ice=BP(!0),lce=BP(!1),ace=Object.freeze(Object.defineProperty({__proto__:null,noop:rce,pinAbsolute:lce,pinRelative:ice},Symbol.toStringTag,{value:"Module"}));var Sb;(function(n){n.presets=ace,n.registry=vn.create({type:"connection strategy"}),n.registry.register(n.presets,!0)})(Sb||(Sb={}));function FP(n,e,t,r){return pt(Sb.presets.pinRelative,this.graph,{},e,t,n,this.cell,r,{}).anchor}function zP(n,e){return e?n.cell.getBBox():n.cell.isEdge()?n.getConnection().bbox():n.getUnrotatedBBoxOfElement(n.container)}class tl extends En.ToolItem{onRender(){Nt(this.container,this.prefixClassName("cell-tool-button")),this.update()}update(){return this.updatePosition(),this}updatePosition(){const t=this.cellView.cell.isEdge()?this.getEdgeMatrix():this.getNodeMatrix();Tc(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=zP(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=Ro(r,a.width),o=Ro(o,a.height);let f=jn().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=Ro(o,1);c>=0&&c<=1?i=e.getTangentAtRatio(c):i=e.getTangentAtLength(c),i?(l=i.start,a=i.vector().vectorAngle(new Y(1,0))||0):(l=e.getConnection().start,a=0);let u=jn().translate(l.x,l.y).rotate(a);return typeof r=="object"?u=u.translate(r.x||0,r.y||0):u=u.translate(0,r),s||(u=u.rotate(-a)),u}onMouseDown(e){if(this.guard(e))return;e.stopPropagation(),e.preventDefault();const t=this.options.onClick;typeof t=="function"&&pt(t,this.cellView,{e,view:this.cellView,cell:this.cellView.cell,btn:this})}}(function(n){n.config({name:"button",useCellGeometry:!0,events:{mousedown:"onMouseDown",touchstart:"onMouseDown"}})})(tl||(tl={}));(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})}})})(tl||(tl={}));var cce=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{this.stopHandleListening(t),t.remove()})}renderHandles(){const e=this.vertices;for(let t=0,r=e.length;tthis.guard(a),attrs:this.options.attrs||{}});i&&i(l),l.updatePosition(o.x,o.y),this.stamp(l.container),this.container.appendChild(l.container),this.handles.push(l),this.startHandleListening(l)}}updateHandles(){const e=this.vertices;for(let t=0,r=e.length;t0?r[e-1]:t.sourceAnchor,s=e0){const o=this.getNeighborPoints(t),s=o.prev,i=o.next;Math.abs(e.x-s.x)new n.Handle(t),markup:[{tagName:"path",selector:"connection",className:e,attrs:{fill:"none",stroke:"transparent","stroke-width":10,cursor:"pointer"}}],events:{[`mousedown .${e}`]:"onPathMouseDown",[`touchstart .${e}`]:"onPathMouseDown"}})})(Ad||(Ad={}));class kd extends En.ToolItem{constructor(){super(...arguments),this.handles=[]}get vertices(){return this.cellView.cell.getVertices()}update(){return this.render(),this}onRender(){Nt(this.container,this.prefixClassName("edge-tool-segments")),this.resetHandles();const e=this.cellView,t=[...this.vertices];t.unshift(e.sourcePoint),t.push(e.targetPoint);for(let r=0,o=t.length;rthis.guard(s),attrs:this.options.attrs||{}});return this.options.processHandle&&this.options.processHandle(o),this.updateHandle(o,e,t),this.container.appendChild(o.container),this.startHandleListening(o),o}startHandleListening(e){e.on("change",this.onHandleChange,this),e.on("changing",this.onHandleChanging,this),e.on("changed",this.onHandleChanged,this)}stopHandleListening(e){e.off("change",this.onHandleChange,this),e.off("changing",this.onHandleChanging,this),e.off("changed",this.onHandleChanged,this)}resetHandles(){const e=this.handles;this.handles=[],e&&e.forEach(t=>{this.stopHandleListening(t),t.remove()})}shiftHandleIndexes(e){const t=this.handles;for(let r=0,o=t.length;rnew n.Handle(e),anchor:FP})})(kd||(kd={}));class hp extends En.ToolItem{get type(){return this.options.type}onRender(){Nt(this.container,this.prefixClassName(`edge-tool-${this.type}-anchor`)),this.toggleArea(!1),this.update()}update(){const e=this.type;return this.cellView.getTerminalView(e)?(this.updateAnchor(),this.updateArea(),this.container.style.display=""):this.container.style.display="none",this}updateAnchor(){const e=this.childNodes;if(!e)return;const t=e.anchor;if(!t)return;const r=this.type,o=this.cellView,s=this.options,i=o.getTerminalAnchor(r),l=o.cell.prop([r,"anchor"]);t.setAttribute("transform",`translate(${i.x}, ${i.y})`);const a=l?s.customAnchorAttrs:s.defaultAnchorAttrs;a&&Object.keys(a).forEach(c=>{t.setAttribute(c,a[c])})}updateArea(){const e=this.childNodes;if(!e)return;const t=e.area;if(!t)return;const r=this.type,o=this.cellView,s=o.getTerminalView(r);if(s){const i=s.cell,l=o.getTerminalMagnet(r);let a=this.options.areaPadding||0;Number.isFinite(a)||(a=0);let c,u,d;s.isEdgeElement(l)?(c=s.getBBox(),u=0,d=c.getCenter()):(c=s.getUnrotatedBBoxOfElement(l),u=i.getAngle(),d=c.getCenter(),u&&d.rotate(-u,i.getBBox().getCenter())),c.inflate(a),Wt(t,{x:-c.width/2,y:-c.height/2,width:c.width,height:c.height,transform:`translate(${d.x}, ${d.y}) rotate(${u})`})}}toggleArea(e){if(this.childNodes){const t=this.childNodes.area;t&&(t.style.display=e?"":"none")}}onMouseDown(e){this.guard(e)||(e.stopPropagation(),e.preventDefault(),this.graph.view.undelegateEvents(),this.options.documentEvents&&this.delegateDocumentEvents(this.options.documentEvents),this.focus(),this.toggleArea(this.options.restrictArea),this.cell.startBatch("move-anchor",{ui:!0,toolId:this.cid}))}resetAnchor(e){const t=this.type,r=this.cell;e?r.prop([t,"anchor"],e,{rewrite:!0,ui:!0,toolId:this.cid}):r.removeProp([t,"anchor"],{ui:!0,toolId:this.cid})}onMouseMove(e){const t=this.type,r=this.cellView,o=r.getTerminalView(t);if(o==null)return;const s=this.normalizeEvent(e),i=o.cell,l=r.getTerminalMagnet(t);let a=this.graph.coord.clientToLocalPoint(s.clientX,s.clientY);const c=this.options.snap;if(typeof c=="function"){const f=pt(c,r,a,o,l,t,r,this);a=Y.create(f)}if(this.options.restrictArea)if(o.isEdgeElement(l)){const f=o.getClosestPoint(a);f&&(a=f)}else{const f=o.getUnrotatedBBoxOfElement(l),h=i.getAngle(),p=i.getBBox().getCenter(),g=a.clone().rotate(h,p);f.containsPoint(g)||(a=f.getNearestPointToPoint(g).rotate(-h,p))}let u;const d=this.options.anchor;typeof d=="function"&&(u=pt(d,r,a,o,l,t,r,this)),this.resetAnchor(u),this.update()}onMouseUp(e){this.graph.view.delegateEvents(),this.undelegateDocumentEvents(),this.blur(),this.toggleArea(!1);const t=this.cellView;this.options.removeRedundancies&&t.removeRedundantLinearVertices({ui:!0,toolId:this.cid}),this.cell.stopBatch("move-anchor",{ui:!0,toolId:this.cid})}onDblClick(){const e=this.options.resetAnchor;e&&this.resetAnchor(e===!0?void 0:e),this.update()}}(function(n){n.config({tagName:"g",markup:[{tagName:"circle",selector:"anchor",attrs:{cursor:"pointer"}},{tagName:"rect",selector:"area",attrs:{"pointer-events":"none",fill:"none",stroke:"#33334F","stroke-dasharray":"2,4",rx:5,ry:5}}],events:{mousedown:"onMouseDown",touchstart:"onMouseDown",dblclick:"onDblClick"},documentEvents:{mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"},customAnchorAttrs:{"stroke-width":4,stroke:"#33334F",fill:"#FFFFFF",r:5},defaultAnchorAttrs:{"stroke-width":2,stroke:"#FFFFFF",fill:"#33334F",r:6},areaPadding:6,snapRadius:10,resetAnchor:!0,restrictArea:!0,removeRedundancies:!0,anchor:FP,snap(e,t,r,o,s,i){const l=i.options.snapRadius||0,a=o==="source",c=a?0:-1,u=this.cell.getVertexAt(c)||this.getTerminalAnchor(a?"target":"source");return u&&(Math.abs(u.x-e.x){this.editor&&(this.editor.focus(),this.selectText())})}selectText(){if(window.getSelection&&this.editor){const e=document.createRange(),t=window.getSelection();e.selectNodeContents(this.editor),t.removeAllRanges(),t.addRange(e)}}getCellText(){const{getText:e}=this.options;if(typeof e=="function")return pt(e,this.cellView,{cell:this.cell,index:this.labelIndex});if(typeof e=="string"){if(this.cell.isNode())return this.cell.attr(e);if(this.cell.isEdge()&&this.labelIndex!==-1)return this.cell.prop(`labels/${this.labelIndex}/attrs/${e}`)}}setCellText(e){const t=this.options.setText;if(typeof t=="function"){pt(t,this.cellView,{cell:this.cell,value:e,index:this.labelIndex,distance:this.distance});return}if(typeof t=="string"){if(this.cell.isNode()){e!==null&&this.cell.attr(t,e);return}if(this.cell.isEdge()){const r=this.cell;if(this.labelIndex===-1){if(e){const o={position:{distance:this.distance},attrs:{}};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"}})})(Nc||(Nc={}));(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"})})(Nc||(Nc={}));var jP=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o1&&(o/=100),n.getPointAtRatio(o)},Pce=function(n,e,t,r){const o=r.length!=null?r.length:20;return n.getPointAtLength(o)},UP=function(n,e,t,r){const o=n.getClosestPoint(t);return o??new Y},Nce=Pg(UP),Ice=function(n,e,t,r){const s=n.getConnection(),i=n.getConnectionSubdivisions(),l=new Ke(t.clone().translate(0,1e6),t.clone().translate(0,-1e6)),a=new Ke(t.clone().translate(1e6,0),t.clone().translate(-1e6,0)),c=l.intersect(s,{segmentSubdivisions:i}),u=a.intersect(s,{segmentSubdivisions:i}),d=[];return c&&d.push(...c),u&&d.push(...u),d.length>0?t.closest(d):r.fallbackAt!=null?HP(n,r.fallbackAt):pt(UP,this,n,e,t,r)},Lce=Pg(Ice),Rce=Object.freeze(Object.defineProperty({__proto__:null,closest:Nce,length:Pce,orth:Lce,ratio:kce},Symbol.toStringTag,{value:"Module"}));var $c;(function(n){n.presets=Rce,n.registry=vn.create({type:"edge endpoint"}),n.registry.register(n.presets,!0)})($c||($c={}));function Ng(n,e,t){let r;if(typeof t=="object"){if(Number.isFinite(t.y)){const s=new Ke(e,n),{start:i,end:l}=s.parallel(t.y);e=i,n=l}r=t.x}else r=t;if(r==null||!Number.isFinite(r))return n;const o=n.distance(e);return r===0&&o>0?n:n.move(e,-Math.min(r,o-1))}function gp(n){const e=n.getAttribute("stroke-width");return e===null?0:parseFloat(e)||0}function $ce(n){if(n==null)return null;let e=n;do{let t=e.tagName;if(typeof t!="string")return null;if(t=t.toUpperCase(),t==="G")e=e.firstElementChild;else if(t==="TITLE")e=e.nextElementSibling;else break}while(e);return e}const WP=function(n,e,t,r){const o=e.getBBoxOfElement(t);r.stroked&&o.inflate(gp(t)/2);const s=n.intersect(o),i=s&&s.length?n.start.closest(s):n.end;return Ng(i,n.start,r.offset)},Dce=function(n,e,t,r,o){const s=e.cell,i=s.isNode()?s.getAngle():0;if(i===0)return pt(WP,this,n,e,t,r,o);const l=e.getUnrotatedBBoxOfElement(t);r.stroked&&l.inflate(gp(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 Ng(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=v0(t,l):o=$ce(t),!Zi(o)){if(o===t||!Zi(t))return i;o=t}const a=e.getShapeOfElement(o),c=e.getMatrixOfElement(o),u=e.getRootTranslatedMatrix(),d=e.getRootRotatedMatrix(),f=u.multiply(d).multiply(c),h=f.inverse(),p=Vt.transformLine(n,h),g=p.start.clone(),v=e.getDataOfElement(o);if(r.insideout===!1){v.shapeBBox==null&&(v.shapeBBox=a.bbox());const y=v.shapeBBox;if(y!=null&&y.containsPoint(g))return i}r.extrapolate===!0&&p.setLength(1e6);let m;if(nt.isPath(a)){const y=r.precision||2;v.segmentSubdivisions==null&&(v.segmentSubdivisions=a.getSegmentSubdivisions({precision:y})),m={precision:y,segmentSubdivisions:v.segmentSubdivisions},s=p.intersect(a,m)}else s=p.intersect(a);s?Array.isArray(s)&&(s=g.closest(s)):r.sticky===!0&&(Ve.isRectangle(a)?s=a.getNearestPointToPoint(g):zo.isEllipse(a)?s=a.intersectsWithLineFromCenterToPoint(g):s=a.closestPoint(g,m));const w=s?Vt.transformPoint(s,f):i;let b=r.offset||0;return r.stroked!==!1&&(typeof b=="object"?(b=Object.assign({},b),b.x==null&&(b.x=0),b.x+=gp(o)/2):b+=gp(o)/2),Ng(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 Xf(n){return new Ve(n.x,n.y,0,0)}function mp(n={}){const e=fa(n.padding||20);return{x:-e.left,y:-e.top,width:e.left+e.right,height:e.top+e.bottom}}function GP(n,e={}){return n.sourceBBox.clone().moveAndExpand(mp(e))}function qP(n,e={}){return n.targetBBox.clone().moveAndExpand(mp(e))}function Uce(n,e={}){return n.sourceAnchor?n.sourceAnchor:GP(n,e).getCenter()}function Wce(n,e={}){return n.targetAnchor?n.targetAnchor:qP(n,e).getCenter()}const KP=function(n,e,t){let r=GP(t,e),o=qP(t,e);const s=Uce(t,e),i=Wce(t,e);r=r.union(Xf(s)),o=o.union(Xf(i));const l=n.map(u=>Y.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 Y(d.x,f.y),g=new Y(f.x,d.y),v=s(d,p),m=s(d,g),w=h?e[h]:null,b=v===h||v!==w&&(m===w||m!==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 Y(d.x,f.y),new Y(f.x,d.y)],v=g.filter(b=>!h.containsPoint(b)),m=v.filter(b=>s(b,d)!==p);let w;if(m.length>0)return w=m.filter(b=>s(d,b)===p).pop(),w=w||m[0],{points:[w],direction:s(w,f)};{w=n6(g,v)[0];const b=Y.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 v=g.points[0];if(h.containsPoint(v)){g=l(d,f,h);const m=g.points[0];if(p.containsPoint(m)){const w=Y.create(d).move(m,-o(h,s(d,m))/2),b=Y.create(f).move(v,-o(p,s(f,v))/2),y=new Ke(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 v=h.union(p).inflate(1),m=v.getCenter(),w=m.distance(f)>m.distance(d),b=w?f:d,y=w?d:f;let S,E,T;g?(S=Y.fromPolar(v.width+v.height,t[g],b),S=v.getNearestPointToPoint(S).move(S,-1)):S=v.getNearestPointToPoint(b).move(b,1),E=r(S,y,v);let M;S.round().equals(E.round())?(E=Y.fromPolar(v.width+v.height,Ut.toRad(S.theta(b))+Math.PI/2,y),E=v.getNearestPointToPoint(E).move(y,1).round(),T=r(S,E,v),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})(Jr||(Jr={}));const Gce={step:10,maxLoopCount:2e3,precision:1,maxDirectionChange:90,perpendicular:!0,excludeTerminals:[],excludeNodes:[],excludeShapes:[],startDirections:["top","right","bottom","left"],endDirections:["top","right","bottom","left"],directionMap:{top:{x:0,y:-1},right:{x:1,y:0},bottom:{x:0,y:1},left:{x:-1,y:0}},cost(){return Ii(this.step,this)},directions(){const n=Ii(this.step,this),e=Ii(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=Ii(this.step,this);return{0:0,45:n/2,90:n/2}},paddingBox(){const n=Ii(this.step,this);return{x:-n,y:-n,width:2*n,height:2*n}},fallbackRouter:KP,draggingRouter:null,snapToGrid:!0};function Ii(n,e){return typeof n=="function"?n.call(e):n}function qce(n){const e=Object.keys(n).reduce((t,r)=>{const o=t;return r==="fallbackRouter"||r==="draggingRouter"||r==="fallbackRoute"?o[r]=n[r]:o[r]=Ii(n[r],n),t},{});if(e.padding){const t=fa(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 Y(0,0),o=new Y(t.offsetX,t.offsetY);t.angle=Ut.normalize(r.theta(o))}),e}const hE=1,pE=2;class Kce{constructor(){this.items=[],this.hash={},this.values={}}add(e,t){this.hash[e]?this.items.splice(this.items.indexOf(e),1):this.hash[e]=hE,this.values[e]=t;const r=$6(this.items,e,o=>this.values[o]);this.items.splice(r,0,e)}pop(){const e=this.items.shift();return e&&(this.hash[e]=pE),e}isOpen(e){return this.hash[e]===hE}isClose(e){return this.hash[e]===pE}isEmpty(){return this.items.length===0}}class Yce{constructor(e){this.options=e,this.mapGridSize=100,this.map={}}build(e,t){const r=this.options,o=r.excludeTerminals.reduce((c,u)=>{const d=t[u];if(d){const f=e.getCell(d.cell);f&&c.push(f)}return c},[]);let s=[];const i=e.getCell(t.getSourceCellId());i&&(s=CC(s,i.getAncestors().map(c=>c.id)));const l=e.getCell(t.getTargetCellId());l&&(s=CC(s,l.getAncestors().map(c=>c.id)));const a=this.mapGridSize;return e.getNodes().reduce((c,u)=>{const d=o.some(v=>v.id===u.id),f=u.shape?r.excludeShapes.includes(u.shape):!1,h=r.excludeNodes.some(v=>typeof v=="string"?u.id===v:v===u),p=s.includes(u.id),g=f||d||h||p;if(u.isVisible()&&!g){const v=u.getBBox().moveAndExpand(r.paddingBox),m=v.getOrigin().snapToGrid(a),w=v.getCorner().snapToGrid(a);for(let b=m.x;b<=w.x;b+=a)for(let y=m.y;y<=w.y;y+=a){const S=new Y(b,y).toString();c[S]==null&&(c[S]=[]),c[S].push(v)}}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 YP(n,e){const t=n.sourceBBox.clone();return e&&e.paddingBox?t.moveAndExpand(e.paddingBox):t}function JP(n,e){const t=n.targetBBox.clone();return e&&e.paddingBox?t.moveAndExpand(e.paddingBox):t}function XP(n,e){return n.sourceAnchor?n.sourceAnchor:YP(n,e).getCenter()}function Jce(n,e){return n.targetAnchor?n.targetAnchor:JP(n,e).getCenter()}function Bm(n,e,t,r,o){const s=360/t,i=n.theta(Xce(n,e,r,o)),l=Ut.normalize(i+s/2);return s*Math.floor(l/s)}function Xce(n,e,t,r){const o=r.step,s=e.x-n.x,i=e.y-n.y,l=s/t.x,a=i/t.y,c=l*o,u=a*o;return new Y(n.x+c,n.y+u)}function gE(n,e){const t=Math.abs(n-e);return t>180?360-t:t}function Zce(n,e){const t=e.step;return e.directions.forEach(r=>{r.gridOffsetX=r.offsetX/t*n.x,r.gridOffsetY=r.offsetY/t*n.y}),e.directions}function Qce(n,e,t){return{source:e.clone(),x:mE(t.x-e.x,n),y:mE(t.y-e.y,n)}}function mE(n,e){if(!n)return e;const t=Math.abs(n),r=Math.round(t/e);if(!r)return t;const o=r*e,i=(t-o)/r;return e+i}function eue(n,e){const t=e.source,r=jt.snapToGrid(n.x-t.x,e.x)+t.x,o=jt.snapToGrid(n.y-t.y,e.y)+t.y;return new Y(r,o)}function vu(n,e){return n.round(e)}function Ch(n,e,t){return vu(eue(n.clone(),e),t)}function Ku(n){return n.toString()}function Fm(n){return new Y(n.x===0?0:Math.abs(n.x)/n.x,n.y===0?0:Math.abs(n.y)/n.y)}function vE(n,e){let t=1/0;for(let r=0,o=e.length;r{if(t.includes(u)){const d=i[u],f=new Y(n.x+d.x*(Math.abs(l.x)+e.width),n.y+d.y*(Math.abs(l.y)+e.height)),p=new Ke(n,f).intersect(e)||[];let g,v=null;for(let m=0;mg)&&(g=b,v=w)}if(v){let m=Ch(v,r,s);e.containsPoint(m)&&(m=Ch(m.translate(d.x*r.x,d.y*r.y),r,s)),c.push(m)}}return c},[]);return e.containsPoint(n)||a.push(Ch(n,r,s)),a}function tue(n,e,t,r,o){const s=[];let i=Fm(o.diff(t)),l=Ku(t),a=n[l],c;for(;a;){c=e[l];const f=Fm(c.diff(a));f.equals(i)||(s.unshift(c),i=f),l=Ku(a),a=n[l]}const u=e[l];return Fm(u.diff(r)).equals(i)||s.unshift(u),s}function nue(n,e,t,r,o){const s=o.precision;let i,l;Ve.isRectangle(e)?i=vu(XP(n,o).clone(),s):i=vu(e.clone(),s),Ve.isRectangle(t)?l=vu(Jce(n,o).clone(),s):l=vu(t.clone(),s);const a=Qce(o.step,i,l),c=i,u=l;let d,f;if(Ve.isRectangle(e)?d=bE(c,e,o.startDirections,a,o):d=[c],Ve.isRectangle(t)?f=bE(l,t,o.endDirections,a,o):f=[u],d=d.filter(h=>r.isAccessible(h)),f=f.filter(h=>r.isAccessible(h)),d.length>0&&f.length>0){const h=new Kce,p={},g={},v={};for(let k=0,P=d.length;k{const L=Ku(P);return k.push(L),k},[]),M=Y.equalPoints(d,f);let O=o.maxLoopCount;for(;!h.isEmpty()&&O>0;){const k=h.pop(),P=p[k],L=g[k],j=v[k],le=P.equals(c),N=L==null;let R;if(N?w?le?R=null:R=Bm(c,P,E,a,o):R=m:R=Bm(L,P,E,a,o),!(N&&M)&&T.indexOf(k)>=0)return o.previousDirectionAngle=R,tue(g,p,P,c,u);for(let W=0;Wo.maxDirectionChange)continue;const Q=Ch(P.clone().translate(b.gridOffsetX||0,b.gridOffsetY||0),a,s),de=Ku(Q);if(h.isClose(de)||!r.isAccessible(Q))continue;if(T.indexOf(de)>=0&&!Q.equals(u)){const Oe=Bm(Q,u,E,a,o);if(gE(U,Oe)>o.maxDirectionChange)continue}const ee=b.cost,Me=le?0:o.penalties[y],fe=j+ee+Me;(!h.isOpen(de)||feY.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 m=t.cell;if((m.getSourceCellId()==null||m.getTargetCellId()==null)&&typeof r.draggingRouter=="function"){const b=d===o?i:d,y=f.getOrigin();g=pt(r.draggingRouter,t,b,y,r)}}if(g==null&&(g=nue(t,d,f,l,r)),g===null)return pt(r.fallbackRouter,this,n,r,t);const v=g[0];v&&v.equals(u)&&g.shift(),u=g[g.length-1]||u,c.push(...g)}return r.snapToGrid?rue(c,t.graph.grid.getGridSize()):c},ZP=function(n,e,t){return pt(oue,this,n,Object.assign(Object.assign({},Gce),e),t)},sue={maxDirectionChange:45,directions(){const n=Ii(this.step,this),e=Ii(this.cost,this),t=Math.ceil(Math.sqrt(n*n<<1));return[{cost:e,offsetX:n,offsetY:0},{cost:t,offsetX:n,offsetY:n},{cost:e,offsetX:0,offsetY:n},{cost:t,offsetX:-n,offsetY:n},{cost:e,offsetX:-n,offsetY:0},{cost:t,offsetX:-n,offsetY:-n},{cost:e,offsetX:0,offsetY:-n},{cost:t,offsetX:n,offsetY:-n}]},fallbackRoute(n,e,t){const r=n.theta(e),o=[];let s={x:e.x,y:n.y},i={x:n.x,y:e.y};if(r%180>90){const b=s;s=i,i=b}const l=r%90<45?s:i,a=new Ke(n,l),c=90*Math.ceil(r/90),u=Y.fromPolar(a.squaredLength(),Ut.toRad(c+135),l),d=new Ke(e,u),f=a.intersectsWithLine(d),h=f||e,p=f?h:n,g=360/t.directions.length,v=p.theta(e),m=Ut.normalize(v+g/2),w=g*Math.floor(m/g);return t.previousDirectionAngle=w,h&&o.push(h.round()),o.push(e),o}},iue=function(n,e,t){return pt(ZP,this,n,Object.assign(Object.assign({},sue),e),t)},lue=function(n,e,t){const r=e.offset||32,o=e.min==null?16:e.min;let s=0,i=e.direction;const l=t.sourceBBox,a=t.targetBBox,c=l.getCenter(),u=a.getCenter();if(typeof r=="number"&&(s=r),i==null){let m=a.left-l.right,w=a.top-l.bottom;m>=0&&w>=0?i=m>=w?"L":"T":m<=0&&w>=0?(m=l.left-a.right,m>=0?i=m>=w?"R":"T":i="T"):m>=0&&w<=0?(w=l.top-a.bottom,w>=0?i=m>=w?"L":"B":i="L"):(m=l.left-a.right,w=l.top-a.bottom,m>=0&&w>=0?i=m>=w?"R":"B":m<=0&&w>=0?i="B":m>=0&&w<=0?i="R":i=Math.abs(m)>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(),v=u.clone();if(g[d]+=h*(l[f]/2+s),v[d]-=h*(a[f]/2+s),p){const m=g.x,w=v.x,b=l.width/2+o,y=a.width/2+o;u.x>c.x?w<=m&&(g.x=Math.max(w,c.x+b),v.x=Math.min(m,u.x-y)):w>=m&&(g.x=Math.min(w,c.x-b),v.x=Math.max(m,u.x+y))}else{const m=g.y,w=v.y,b=l.height/2+o,y=a.height/2+o;u.y>c.y?w<=m&&(g.y=Math.max(w,c.y+b),v.y=Math.min(m,u.y-y)):w>=m&&(g.y=Math.min(w,c.y-b),v.y=Math.max(m,u.y+y))}return[g.toJSON(),...n,v.toJSON()]};function Ma(n,e){if(e!=null&&e!==!1){const t=typeof e=="boolean"?0:e;if(t>0){const r=Y.create(n[1]).move(n[2],t),o=Y.create(n[1]).move(n[0],t);return[r.toJSON(),...n,o.toJSON()]}{const r=n[1];return[Object.assign({},r),...n,Object.assign({},r)]}}return n}const aue=function(n,e,t){const r=e.width||50,s=(e.height||80)/2,i=e.angle||"auto",l=t.sourceAnchor,a=t.targetAnchor,c=t.sourceBBox,u=t.targetBBox;if(l.equals(a)){const d=m=>{const w=Ut.toRad(m),b=Math.sin(w),y=Math.cos(w),S=new Y(l.x+y*r,l.y+b*r),E=new Y(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=m=>{const w=l.clone().move(m,-1),b=new Ke(w,m);return!c.containsPoint(m)&&!c.intersectsWithLine(b)},h=[0,90,180,270,45,135,225,315];if(typeof i=="number")return Ma(d(i),e.merge);const p=c.getCenter();if(p.equals(l))return Ma(d(0),e.merge);const g=p.angleBetween(l,p.clone().translate(1,0));let v=d(g);if(f(v[1]))return Ma(v,e.merge);for(let m=1,w=h.length;m1&&(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?nt.parse(a):a},fue=function(n,e,t,r={}){const o=new nt;o.appendSegment(nt.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(nt.createSegment("C",i,n.y,i,e.y,e.x,e.y))}else{const i=(n.y+e.y)/2;o.appendSegment(nt.createSegment("C",n.x,i,e.x,i,e.x,e.y))}return r.raw?o:o.serialize()},yE=1,Zf=1/3,Qf=2/3;function pue(n){let e=n.graph._jumpOverUpdateList;if(e==null&&(e=n.graph._jumpOverUpdateList=[],n.graph.on("cell:mouseup",()=>{const t=n.graph._jumpOverUpdateList;setTimeout(()=>{for(let r=0;r{e=n.graph._jumpOverUpdateList=[]})),e.indexOf(n)<0){e.push(n);const t=()=>e.splice(e.indexOf(n),1);n.cell.once("change:connector",t),n.cell.once("removed",t)}}function zm(n,e,t=[]){const r=[n,...t,e],o=[];return r.forEach((s,i)=>{const l=r[i+1];l!=null&&o.push(new Ke(s,l))}),o}function gue(n,e){const t=[];return e.forEach(r=>{const o=n.intersectsWithLine(r);o&&t.push(o)}),t}function wE(n,e){return new Ke(n,e).squaredLength()}function mue(n,e,t){return e.reduce((r,o,s)=>{if(vp.includes(o))return r;const i=r.pop()||n,l=Y.create(o).move(i.start,-t);let a=Y.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),vp.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 Ke(h,i.end).rotate(a,h);let g;g=new Ke(i.start,h),u=g.pointAt(2/3).rotate(a,i.start),d=p.pointAt(1/3).rotate(-a,p.end),s=nt.createSegment("C",u,d,p.end),o.appendSegment(s),g=new Ke(h,i.end),u=p.pointAt(1/3).rotate(a,p.end),d=g.pointAt(1/3).rotate(-a,i.end),s=nt.createSegment("C",u,d,i.end),o.appendSegment(s)}else if(t==="gap")s=nt.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 Y(i.start.x+f,i.start.y+h).rotate(a,i.start),d=new Y(i.end.x-f,i.end.y+h).rotate(a,i.end),s=nt.createSegment("C",u,d,i.end),o.appendSegment(s)}}else{const a=n[l+1];r===0||!a||Pd.includes(a)?(s=nt.createSegment("L",i.end),o.appendSegment(s)):vue(r,o,i.end,i.start,a.end)}}),o}function vue(n,e,t,r,o){const s=t.distance(r)/2,i=t.distance(o)/2,l=-Math.min(n,s),a=-Math.min(n,i),c=t.clone().move(r,l).round(),u=t.clone().move(o,a).round(),d=new Y(Zf*c.x+Qf*t.x,Qf*t.y+Zf*c.y),f=new Y(Zf*u.x+Qf*t.x,Qf*t.y+Zf*u.y);let h;h=nt.createSegment("L",c),e.appendSegment(h),h=nt.createSegment("C",d,f,u),e.appendSegment(h)}let Pd,vp;const bue=function(n,e,t,r={}){Pd=[],vp=[],pue(this);const o=r.size||5,s=r.type||"arc",i=r.radius||0,l=r.ignoreConnectors||["smooth"],a=this.graph,u=a.model.getEdges();if(u.length===1)return CE(zm(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)),v=zm(n,e,t),m=g.map(y=>y==null?[]:y===this?v:zm(y.sourcePoint,y.targetPoint,y.routePoints)),w=[];v.forEach(y=>{const S=p.reduce((E,T,M)=>{if(T!==d){const O=gue(y,m[M]);E.push(...O)}return E},[]).sort((E,T)=>wE(y.start,E)-wE(y.start,T));S.length>0?w.push(...mue(y,S,o)):w.push(y)});const b=CE(w,o,s,i);return Pd=[],vp=[],r.raw?b:b.serialize()},yue=Object.freeze(Object.defineProperty({__proto__:null,jumpover:bue,loop:due,normal:uue,rounded:fue,smooth:hue},Symbol.toStringTag,{value:"Module"}));var ta;(function(n){n.presets=yue,n.registry=vn.create({type:"connector"}),n.registry.register(n.presets,!0)})(ta||(ta={}));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 QP extends Ur{constructor(e={}){super(),this.pending=!1,this.changing=!1,this.data={},this.mutate(ln(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=ln(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];Or(l[d],f)||s.push(d),Or(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 v0(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()?ln(this.changed):null;const t=this.changing?this.previous:this.data,r={};let o;for(const s in e){const i=e[s];Or(t[s],i)||(r[s]=i,o=!0)}return o?ln(r):null}toJSON(){return ln(this.data)}clone(){const e=this.constructor;return new e(this.data)}dispose(){this.off(),this.data={},this.previous={},this.changed={},this.pending=!1,this.changing=!1,this.pendingOptions=null,this.trigger("disposed",{store:this})}}wue([Ur.dispose()],QP.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=JF(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 v=a(l(g));this.cell.setPropByPath(d,v),r.progress&&r.progress(Object.assign({progress:g,currentValue:v},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=>Or(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"?pa[e]:e}getInterp(e,t,r){return e?e(t,r):typeof r=="number"?Hl.number(t,r):typeof r=="string"?r[0]==="#"?Hl.color(t,r):Hl.unit(t,r):Hl.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 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},eN=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=cn({},this.defaults,s)}static getMarkup(){return this.markup}static getDefaults(e){return e?this.defaults:ln(this.defaults)}static getAttrHooks(){return this.attrHooks}static applyPropHooks(e,t){return this.propHooks.reduce((r,o)=>o?pt(o,e,r):r,t)}get[Symbol.toStringTag](){return At.toStringTag}constructor(e={}){super();const r=this.constructor.getDefaults(!0),o=cn({},this.preprocess(r),this.preprocess(e));this.id=o.id||ip(),this.store=new QP(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=ip()),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(cn({},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(cn({},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]||ms.registry.get(e);if(!o){const s=qp(e);o=r[s]||ms.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(cn({},o,e))}}return this}replaceData(e,t={}){return this.setData(e,Object.assign(Object.assign({},t),{overwrite:!0}))}updateData(e,t={}){return this.setData(e,Object.assign(Object.assign({},t),{deep:!1}))}removeData(e={}){return this.store.remove("data",e),this}get parent(){return this.getParent()}get children(){return this.getChildren()}getParentId(){return this.store.get("parent")}getParent(){const e=this.getParentId();if(e&&this.model){const t=this.model.getCell(e);return this._parent=t,t}return null}getChildren(){const e=this.store.get("children");if(e&&e.length&&this.model){const t=e.map(r=>{var o;return(o=this.model)===null||o===void 0?void 0:o.getCell(r)}).filter(r=>r!=null);return this._children=t,[...t]}return null}hasParent(){return this.parent!=null}isParentOf(e){return e!=null&&e.getParent()===this}isChildOf(e){return e!=null&&this.getParent()===e}eachChild(e,t){return this.children&&this.children.forEach(e,t),this}filterChild(e,t){return this.children?this.children.filter(e,t):[]}getChildCount(){return this.children==null?0:this.children.length}getChildIndex(e){return this.children==null?-1:this.children.indexOf(e)}getChildAt(e){return this.children!=null&&e>=0?this.children[e]:null}getAncestors(e={}){const t=[];let r=this.getParent();for(;r;)t.push(r),r=e.deep!==!1?r.getParent():null;return t}getDescendants(e={}){if(e.deep!==!1){if(e.breadthFirst){const t=[],r=this.getChildren()||[];for(;r.length>0;){const o=r.shift(),s=o.getChildren();t.push(o),s&&r.push(...s)}return t}{const t=this.getChildren()||[];return t.forEach(r=>{t.push(...r.getDescendants(e))}),t}}return this.getChildren()||[]}isDescendantOf(e,t={}){if(e==null)return!1;if(t.deep!==!1){let r=this.getParent();for(;r;){if(r===e)return!0;r=r.getParent()}return!1}return this.isChildOf(e)}isAncestorOf(e,t={}){return e==null?!1:e.isDescendantOf(this,t)}contains(e){return this.isAncestorOf(e)}getCommonAncestor(...e){return At.getCommonAncestor(this,...e)}setParent(e,t={}){return this._parent=e,e?this.store.set("parent",e.id,t):this.store.remove("parent",t),this}setChildren(e,t={}){return this._children=e,e!=null?this.store.set("children",e.map(r=>r.id),t):this.store.remove("children",t),this}unembed(e,t={}){const r=this.children;if(r!=null&&e!=null){const o=this.getChildIndex(e);o!==-1&&(r.splice(o,1),e.setParent(null,t),this.setChildren(r,t))}return this}embed(e,t={}){return e.addTo(this,t),this}addTo(e,t={}){return At.isCell(e)?e.addChild(this,t):e.addCell(this,t),this}insertTo(e,t,r={}){return e.insertChild(this,t,r),this}addChild(e,t={}){return this.insertChild(e,void 0,t)}insertChild(e,t,r={}){if(e!=null&&e!==this){const o=e.getParent(),s=this!==o;let i=t;if(i==null&&(i=this.getChildCount(),s||(i-=1)),o){const a=o.getChildren();if(a){const c=a.indexOf(e);c>=0&&(e.setParent(null,r),a.splice(c,1),o.setChildren(a,r))}}let l=this.children;if(l==null?(l=[],l.push(e)):l.splice(i,0,e),e.setParent(this,r),this.setChildren(l,r),s&&this.model){const a=this.model.getIncomingEdges(this),c=this.model.getOutgoingEdges(this);a&&a.forEach(u=>u.updateParent(r)),c&&c.forEach(u=>u.updateParent(r))}this.model&&this.model.addCell(e,r)}return this}removeFromParent(e={}){const t=this.getParent();if(t!=null){const r=t.getChildIndex(this);t.removeChildAt(r,e)}return this}removeChild(e,t={}){const r=this.getChildIndex(e);return this.removeChildAt(r,t)}removeChildAt(e,t={}){const r=this.getChildAt(e);return this.children!=null&&r!=null&&(this.unembed(r,t),r.remove(t)),r}remove(e={}){return this.batchUpdate("remove",()=>{const t=this.getParent();t&&t.removeChild(this,e),e.deep!==!1&&this.eachChild(r=>r.remove(e)),this.model&&this.model.removeCell(this,e)}),this}transition(e,t,r={},o="/"){return this.animation.start(e,t,r,o)}stopTransition(e,t,r="/"){return this.animation.stop(e,t,r),this}getTransitions(){return this.animation.get()}translate(e,t,r){return this}scale(e,t,r,o){return this}addTools(e,t,r){const o=Array.isArray(e)?e:[e],s=typeof t=="string"?t:null,i=typeof t=="object"?t:typeof r=="object"?r:{};if(i.reset)return this.setTools({name:s,items:o,local:i.local},i);let l=ln(this.getTools());if(l==null||s==null||l.name===s)return l==null&&(l={}),l.items||(l.items=[]),l.name=s,l.items=[...l.items,...o],this.setTools(Object.assign({},l),i)}setTools(e,t={}){return e==null?this.removeTools():this.store.set("tools",At.normalizeTools(e),t),this}getTools(){return this.store.get("tools")}removeTools(e={}){return this.store.remove("tools",e),this}hasTools(e){const t=this.getTools();return t==null?!1:e==null?!0:t.name===e}hasTool(e){const t=this.getTools();return t==null?!1:t.items.some(r=>typeof r=="string"?r===e:r.name===e)}removeTool(e,t={}){const r=ln(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 Ve}getConnectionPoint(e,t){return new Y}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"&&!ys(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 v=c[p];Or(g,v)&&delete t[p]}}),Object.keys(l).forEach(p=>{const g=l[p],v=u[p];Object.keys(g).forEach(m=>{const w=g[m],b=v?v[m]:null;w!=null&&typeof w=="object"&&!Array.isArray(w)?Object.keys(w).forEach(y=>{const S=w[y];if(v==null||b==null||!un(b)||!Or(b[y],S)){d[p]==null&&(d[p]={}),d[p][m]==null&&(d[p][m]={});const E=d[p][m];E[y]=S}}):(v==null||!Or(b,w))&&(d[p]==null&&(d[p]={}),d[p][m]=w)})});const f=Object.assign(Object.assign({},t),{attrs:FT(d)?void 0:d});f.attrs==null&&delete f.attrs;const h=f;return h.angle===0&&delete h.angle,ln(h)}clone(e={}){if(!e.deep){const r=Object.assign({},this.store.get());e.keepId||delete r.id,delete r.parent,delete r.children;const o=this.constructor;return new o(r)}return At.deepClone(this)[this.id]}findView(e){return e.findViewByCell(this)}startBatch(e,t={},r=this.model){return this.notify("batch:start",{name:e,data:t,cell:this}),r&&r.startBatch(e,Object.assign(Object.assign({},t),{cell:this})),this}stopBatch(e,t={},r=this.model){return r&&r.stopBatch(e,Object.assign(Object.assign({},t),{cell:this})),this.notify("batch:stop",{name:e,data:t,cell:this}),this}batchUpdate(e,t,r){const o=this.model;this.startBatch(e,r,o);const s=t();return this.stopBatch(e,r,o),s}dispose(){this.removeFromParent(),this.store.dispose()}}At.defaults={};At.attrHooks={};At.propHooks=[];Cue([Ur.dispose()],At.prototype,"dispose",null);(function(n){function e(t){return typeof t=="string"?{items:[t]}:Array.isArray(t)?{items:t}:t.items?t:{items:[t]}}n.normalizeTools=e})(At||(At={}));(function(n){n.toStringTag=`X6.${n.name}`;function e(t){if(t==null)return!1;if(t instanceof n)return!0;const r=t[Symbol.toStringTag],o=t;return(r==null||r===n.toStringTag)&&typeof o.isNode=="function"&&typeof o.isEdge=="function"&&typeof o.prop=="function"&&typeof o.attr=="function"}n.isCell=e})(At||(At={}));(function(n){function e(...s){const i=s.filter(a=>a!=null).map(a=>a.getAncestors()).sort((a,c)=>a.length-c.length);return i.shift().find(a=>i.every(c=>c.includes(a)))||null}n.getCommonAncestor=e;function t(s,i={}){let l=null;for(let a=0,c=s.length;a(a[c.id]=c.clone(),a),{});return i.forEach(a=>{const c=l[a.id];if(c.isEdge()){const f=c.getSourceCellId(),h=c.getTargetCellId();f&&l[f]&&c.setSource(Object.assign(Object.assign({},c.getSource()),{cell:l[f].id})),h&&l[h]&&c.setTarget(Object.assign(Object.assign({},c.getTarget()),{cell:l[h].id}))}const u=a.getParent();u&&l[u.id]&&c.setParent(l[u.id]);const d=a.getChildren();if(d&&d.length){const f=d.reduce((h,p)=>(l[p.id]&&h.push(l[p.id]),h),[]);f.length>0&&c.setChildren(f)}}),l}n.cloneCells=o})(At||(At={}));(function(n){n.config({propHooks(e){var{tools:t}=e,r=eN(e,["tools"]);return t&&(r.tools=n.normalizeTools(t)),r}})})(At||(At={}));var Vc;(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})(Vc||(Vc={}));class xue{constructor(e){this.ports=[],this.groups={},this.init(ln(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=ea.registry.get(i);if(d==null)return ea.registry.onNotFound(i);l=d}else l=ea.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,Y.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=cn({},r.attrs,t.attrs),t.position=this.createPosition(r,t),t.label=cn({},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 cn({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=Pc.registry.get(o)||Pc.presets.left;return i?i(t,r,s):null}}var Ig=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{var l;((l=r.exclude)===null||l===void 0?void 0:l.includes(i))||i.translate(e,t,r)})):(this.startBatch("translate",r),this.store.set("position",s,r),this.eachChild(i=>{var l;((l=r.exclude)===null||l===void 0?void 0:l.includes(i))||i.translate(e,t,r)}),this.stopBatch("translate",r)),this}angle(e,t){return e==null?this.getAngle():this.rotate(e,t)}getAngle(){return this.store.get("angle",0)}rotate(e,t={}){const r=this.getAngle();if(t.center){const o=this.getSize(),s=this.getPosition(),i=this.getBBox().getCenter();i.rotate(r-e,t.center);const l=i.x-o.width/2-s.x,a=i.y-o.height/2-s.y;this.startBatch("rotate",{angle:e,options:t}),this.setPosition(s.x+l,s.y+a,t),this.rotate(e,Object.assign(Object.assign({},t),{center:null})),this.stopBatch("rotate")}else this.store.set("angle",t.absolute?e:(r+e)%360,t);return this}getBBox(e={}){if(e.deep){const t=this.getDescendants({deep:!0,breadthFirst:!0});return t.push(this),At.getCellsBBox(t)}return Ve.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=Y.create(c).translate(r.getOrigin()),d=this.getAngle();return d&&u.rotate(-d,o),u}fit(e={}){const r=(this.getChildren()||[]).filter(c=>c.isNode());if(r.length===0)return this;this.startBatch("fit-embeds",e),e.deep&&r.forEach(c=>c.fit(e));let{x:o,y:s,width:i,height:l}=At.getCellsBBox(r);const a=fa(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")||Yt.getPortContainerMarkup()}getPortContainerMarkup(){return this.store.get("portContainerMarkup")||this.getDefaultPortContainerMarkup()}setPortContainerMarkup(e,t={}){return this.store.set("portContainerMarkup",Yt.clone(e),t),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,t={}){return this.store.set("portMarkup",Yt.clone(e),t),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,t={}){return this.store.set("portLabelMarkup",Yt.clone(e),t),this}get ports(){const e=this.store.get("ports",{items:[]});return e.items==null&&(e.items=[]),e}getPorts(){return ln(this.ports.items)}getPortsByGroup(e){return this.getPorts().filter(t=>t.group===e)}getPort(e){return ln(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 Ve(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&&!FT(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 ip()}updatePortData(){const e=this.validatePorts();if(e.length>0)throw this.store.set("ports",this.store.getPrevious("ports")),new Error(e.join(" "));const t=this.port?this.port.getPorts():null;this.port=new xue(this.ports);const r=this.port.getPorts(),o=t?r.filter(i=>t.find(l=>l.id===i.id)?null:i):[...r],s=t?t.filter(i=>r.find(l=>l.id===i.id)?null:i):[];o.length>0&&this.notify("ports:added",{added:o,cell:this,node:this}),s.length>0&&this.notify("ports:removed",{removed:s,cell:this,node:this})}};bn.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})(bn||(bn={}));(function(n){n.config({propHooks(e){var{ports:t}=e,r=Ig(e,["ports"]);return t&&(r.ports=Array.isArray(t)?{items:t}:t),r}})})(bn||(bn={}));(function(n){n.registry=vn.create({type:"node",process(e,t){if(Vc.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=Ig(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}}),Vc.setNodeRegistry(n.registry)})(bn||(bn={}));(function(n){let e=0;function t(s){return s?b0(s):(e+=1,`CustomNode${e}`)}function r(s){const{constructorName:i,overwrite:l}=s,a=Ig(s,["constructorName","overwrite"]),c=m0(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})(bn||(bn={}));var Lg=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);otypeof p=="string"||typeof p=="number";if(r!=null)if(At.isCell(r))f.source={cell:r.id};else if(h(r))f.source={cell:r};else if(Y.isPoint(r))f.source=r.toJSON();else if(Array.isArray(r))f.source={x:r[0],y:r[1]};else{const p=r.cell;At.isCell(p)?f.source=Object.assign(Object.assign({},r),{cell:p.id}):f.source=r}if(o!=null||s!=null){let p=f.source;if(o!=null){const g=h(o)?o:o.id;p?p.cell=g:p=f.source={cell:g}}s!=null&&p&&(p.port=s)}else i!=null&&(f.source=Y.create(i).toJSON());if(l!=null)if(At.isCell(l))f.target={cell:l.id};else if(h(l))f.target={cell:l};else if(Y.isPoint(l))f.target=l.toJSON();else if(Array.isArray(l))f.target={x:l[0],y:l[1]};else{const p=l.cell;At.isCell(p)?f.target=Object.assign(Object.assign({},l),{cell:p.id}):f.target=l}if(a!=null||c!=null){let p=f.target;if(a!=null){const g=h(a)?a:a.id;p?p.cell=g:p=f.target={cell:g}}c!=null&&p&&(p.port=c)}else u!=null&&(f.target=Y.create(u).toJSON());return super.preprocess(f,t)}setup(){super.setup(),this.on("change:labels",e=>this.onLabelsChanged(e)),this.on("change:vertices",e=>this.onVertexsChanged(e))}isEdge(){return!0}disconnect(e={}){return this.store.set({source:{x:0,y:0},target:{x:0,y:0}},e),this}get source(){return this.getSource()}set source(e){this.setSource(e)}getSource(){return this.getTerminal("source")}getSourceCellId(){return this.source.cell}getSourcePortId(){return this.source.port}setSource(e,t,r={}){return this.setTerminal("source",e,t,r)}get target(){return this.getTarget()}set target(e){this.setTarget(e)}getTarget(){return this.getTerminal("target")}getTargetCellId(){return this.target.cell}getTargetPortId(){return this.target.port}setTarget(e,t,r={}){return this.setTerminal("target",e,t,r)}getTerminal(e){return Object.assign({},this.store.get(e))}setTerminal(e,t,r,o={}){if(At.isCell(t))return this.store.set(e,cn({},r,{cell:t.id}),o),this;const s=t;return Y.isPoint(t)||s.x!=null&&s.y!=null?(this.store.set(e,cn({},r,{x:s.x,y:s.y}),o),this):(this.store.set(e,ln(t),o),this)}getSourcePoint(){return this.getTerminalPoint("source")}getTargetPoint(){return this.getTerminalPoint("target")}getTerminalPoint(e){const t=this[e];if(Y.isPointLike(t))return Y.create(t);const r=this.getTerminalCell(e);return r?r.getConnectionPoint(this,e):new Y}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 ln(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||Or(s,i))?null:s):t?[...t]:[],o=e&&t?e.filter(s=>t.find(i=>s===i||Or(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=>Y.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,Y.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=>Y.equals(s,i))?null:s):t?[...t]:[],o=e&&t?e.filter(s=>t.find(i=>Y.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")||Yt.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=>Y.create(s).scale(e,t,r).toJSON(),o)}applyToPoints(e,t={}){const r={},o=this.getSource(),s=this.getTarget();Y.isPointLike(o)&&(r.source=e(o)),Y.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=>Y.create(t)),this.getTargetPoint()];return new pn(e)}updateParent(e){let t=null;const r=this.getSourceCell(),o=this.getTargetCell(),s=this.getParent();return r&&o&&(r===o||r.isDescendantOf(o)?t=o:o.isDescendantOf(r)?t=r:t=At.getCommonAncestor(r,o)),s&&t&&t.id!==s.id&&s.unembed(this,e),t&&(!s||s.id!==t.id)&&t.embed(this,e),t}hasLoop(e={}){const t=this.getSource(),r=this.getTarget(),o=t.cell,s=r.cell;if(!o||!s)return!1;let i=o===s;if(!i&&e.deep&&this._model){const l=this.getSourceCell(),a=this.getTargetCell();l&&a&&(i=l.isAncestorOf(a,e)||a.isAncestorOf(l,e))}return i}getFragmentAncestor(){const e=[this,this.getSourceNode(),this.getTargetNode()].filter(t=>t!=null);return this.getCommonAncestor(...e)}isFragmentDescendantOf(e){const t=this.getFragmentAncestor();return!!t&&(t.id===e.id||t.isDescendantOf(e))}};fn.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})(fn||(fn={}));(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})(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.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})(fn||(fn={}));(function(n){n.registry=vn.create({type:"edge",process(e,t){if(Vc.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=Lg(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}}),Vc.setEdgeRegistry(n.registry)})(fn||(fn={}));(function(n){let e=0;function t(s){return s?b0(s):(e+=1,`CustomEdge${e}`)}function r(s){const{constructorName:i,overwrite:l}=s,a=Lg(s,["constructorName","overwrite"]),c=m0(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})(fn||(fn={}));(function(n){const e="basic.edge";n.config({shape:e,propHooks(t){const{label:r,vertices:o}=t,s=Lg(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=>Y.create(i).toJSON())),s}}),n.registry.register(e,n)})(fn||(fn={}));var Sue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class Eb extends Ur{constructor(e,t={}){super(),this.length=0,this.comparator=t.comparator||"zIndex",this.clean(),e&&this.reset(e,{silent:!0})}toJSON(){return this.cells.map(e=>e.toJSON())}add(e,t,r){let o,s;typeof t=="number"?(o=t,s=Object.assign({merge:!1},r)):(o=this.length,s=Object.assign({merge:!1},t)),o>this.length&&(o=this.length),o<0&&(o+=this.length+1);const i=Array.isArray(e)?e:[e],l=this.comparator&&typeof t!="number"&&s.sort!==!1,a=this.comparator||null;let c=!1;const u=[],d=[];return i.forEach(f=>{const h=this.get(f);h?s.merge&&!f.isSameStore(h)&&(h.setProp(f.getProp(),r),d.push(h),l&&!c&&(a==null||typeof a=="function"?c=h.hasChanged():typeof a=="string"?c=h.hasChanged(a):c=a.some(p=>h.hasChanged(p)))):(u.push(f),this.reference(f))}),u.length&&(l&&(c=!0),this.cells.splice(o,0,...u),this.length=this.cells.length),c&&this.sort({silent:!0}),s.silent||(u.forEach((f,h)=>{const p={cell:f,index:o+h,options:s};this.trigger("added",p),s.dryrun||f.notify("added",Object.assign({},p))}),c&&this.trigger("sorted"),(u.length||d.length)&&this.trigger("updated",{added:u,merged:d,removed:[],options:s})),this}remove(e,t={}){const r=Array.isArray(e)?e:[e],o=this.removeCells(r,t);return!t.silent&&o.length>0&&this.trigger("updated",{options:t,removed:o,added:[],merged:[]}),Array.isArray(e)?o:o[0]}removeCells(e,t){const r=[];for(let o=0;othis.unreference(o)),this.clean(),this.add(e,Object.assign({silent:!0},t)),!t.silent){const o=this.cells.slice();this.trigger("reseted",{options:t,previous:r,current:o});const s=[],i=[];o.forEach(l=>{r.some(c=>c.id===l.id)||s.push(l)}),r.forEach(l=>{o.some(c=>c.id===l.id)||i.push(l)}),this.trigger("updated",{options:t,added:s,removed:i,merged:[]})}return this}push(e,t){return this.add(e,this.length,t)}pop(e){const t=this.at(this.length-1);return this.remove(t,e)}unshift(e,t){return this.add(e,0,t)}shift(e){const t=this.at(0);return this.remove(t,e)}get(e){if(e==null)return null;const t=typeof e=="string"||typeof e=="number"?e:e.id;return this.map[t]||null}has(e){return this.get(e)!=null}at(e){return e<0&&(e+=this.length),this.cells[e]||null}first(){return this.at(0)}last(){return this.at(-1)}indexOf(e){return this.cells.indexOf(e)}toArray(){return this.cells.slice()}sort(e={}){return this.comparator!=null&&(this.cells=O6(this.cells,this.comparator),e.silent||this.trigger("sorted")),this}clone(){const e=this.constructor;return new e(this.cells.slice(),{comparator:this.comparator})}reference(e){this.map[e.id]=e,e.on("*",this.notifyCellEvent,this)}unreference(e){e.off("*",this.notifyCellEvent,this),delete this.map[e.id]}notifyCellEvent(e,t){const r=t.cell;this.trigger(`cell:${e}`,t),r&&(r.isNode()?this.trigger(`node:${e}`,Object.assign(Object.assign({},t),{node:r})):r.isEdge()&&this.trigger(`edge:${e}`,Object.assign(Object.assign({},t),{edge:r})))}clean(){this.length=0,this.cells=[],this.map={}}dispose(){this.reset([])}}Sue([Eb.dispose()],Eb.prototype,"dispose",null);var Eue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class $o extends Ur{get[Symbol.toStringTag](){return $o.toStringTag}constructor(e=[]){super(),this.batches={},this.addings=new WeakMap,this.nodes={},this.edges={},this.outgoings={},this.incomings={},this.collection=new Eb(e),this.setup()}notify(e,t){this.trigger(e,t);const r=this.graph;return r&&(e==="sorted"||e==="reseted"||e==="updated"?r.trigger(`model:${e}`,t):r.trigger(e,t)),this}setup(){const e=this.collection;e.on("sorted",()=>this.notify("sorted",null)),e.on("updated",t=>this.notify("updated",t)),e.on("cell:change:zIndex",()=>this.sortOnChangeZ()),e.on("added",({cell:t})=>{this.onCellAdded(t)}),e.on("removed",t=>{const r=t.cell;this.onCellRemoved(r,t.options),this.notify("cell:removed",t),r.isNode()?this.notify("node:removed",Object.assign(Object.assign({},t),{node:r})):r.isEdge()&&this.notify("edge:removed",Object.assign(Object.assign({},t),{edge:r}))}),e.on("reseted",t=>{this.onReset(t.current),this.notify("reseted",t)}),e.on("edge:change:source",({edge:t})=>this.onEdgeTerminalChanged(t,"source")),e.on("edge:change:target",({edge:t})=>{this.onEdgeTerminalChanged(t,"target")})}sortOnChangeZ(){this.collection.sort()}onCellAdded(e){const t=e.id;e.isEdge()?(e.updateParent(),this.edges[t]=!0,this.onEdgeTerminalChanged(e,"source"),this.onEdgeTerminalChanged(e,"target")):this.nodes[t]=!0}onCellRemoved(e,t){const r=e.id;if(e.isEdge()){delete this.edges[r];const o=e.getSource(),s=e.getTarget();if(o&&o.cell){const i=this.outgoings[o.cell],l=i?i.indexOf(r):-1;l>=0&&(i.splice(l,1),i.length===0&&delete this.outgoings[o.cell])}if(s&&s.cell){const i=this.incomings[s.cell],l=i?i.indexOf(r):-1;l>=0&&(i.splice(l,1),i.length===0&&delete this.incomings[s.cell])}}else delete this.nodes[r];t.clear||(t.disconnectEdges?this.disconnectConnectedEdges(e,t):this.removeConnectedEdges(e,t)),e.model===this&&(e.model=null)}onReset(e){this.nodes={},this.edges={},this.outgoings={},this.incomings={},e.forEach(t=>this.onCellAdded(t))}onEdgeTerminalChanged(e,t){const r=t==="source"?this.outgoings:this.incomings,o=e.previous(t);if(o&&o.cell){const i=At.isCell(o.cell)?o.cell.id:o.cell,l=r[i],a=l?l.indexOf(e.id):-1;a>=0&&(l.splice(a,1),l.length===0&&delete r[i])}const s=e.getTerminal(t);if(s&&s.cell){const i=At.isCell(s.cell)?s.cell.id:s.cell,l=r[i]||[];l.indexOf(e.id)===-1&&l.push(e.id),r[i]=l}}prepareCell(e,t){return!e.model&&(!t||!t.dryrun)&&(e.model=this),e.zIndex==null&&e.setZIndex(this.getMaxZIndex()+1,{silent:!0}),e}resetCells(e,t={}){return e.map(r=>this.prepareCell(r,Object.assign(Object.assign({},t),{dryrun:!0}))),this.collection.reset(e,t),e.map(r=>this.prepareCell(r,{options:t})),this}clear(e={}){const t=this.getCells();if(t.length===0)return this;const r=Object.assign(Object.assign({},e),{clear:!0});return this.batchUpdate("clear",()=>{const o=t.sort((s,i)=>{const l=s.isEdge()?1:2,a=i.isEdge()?1:2;return l-a});for(;o.length>0;){const s=o.shift();s&&s.remove(r)}},r),this}addNode(e,t={}){const r=bn.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 bn.create(e)}addEdge(e,t={}){const r=fn.isEdge(e)?e:this.createEdge(e);return this.addCell(r,t),r}createEdge(e){return fn.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(v=>{if(!s[v.id]){const m=v.getSourceCell(),w=v.getTargetCell();if(!t.enclosed&&m&&d[m.id]&&w&&d[w.id])return;r.push(v),s[v.id]=!0}})};u.forEach(h=>{h.isEdge()||(a&&f(h,!0),l&&f(h,!1))})}return r}isBoundary(e,t){const r=typeof e=="string"?this.getCell(e):e,o=t?this.getIncomingEdges(r):this.getOutgoingEdges(r);return o==null||o.length===0}getBoundaryNodes(e){const t=[];return Object.keys(this.nodes).forEach(r=>{if(this.isBoundary(r,e)){const o=this.getCell(r);o&&t.push(o)}}),t}getRoots(){return this.getBoundaryNodes(!0)}getLeafs(){return this.getBoundaryNodes(!1)}isRoot(e){return this.isBoundary(e,!0)}isLeaf(e){return this.isBoundary(e,!1)}getNeighbors(e,t={}){let r=t.incoming,o=t.outgoing;r==null&&o==null&&(r=o=!0);const i=this.getConnectedEdges(e,t).reduce((l,a)=>{const c=a.hasLoop(t),u=a.getSourceCell(),d=a.getTargetCell();return r&&u&&u.isNode()&&!l[u.id]&&(c||u!==e&&(!t.deep||!u.isDescendantOf(e)))&&(l[u.id]=u),o&&d&&d.isNode()&&!l[d.id]&&(c||d!==e&&(!t.deep||!d.isDescendantOf(e)))&&(l[d.id]=d),l},{});if(e.isEdge()){if(r){const l=e.getSourceCell();l&&l.isNode()&&!i[l.id]&&(i[l.id]=l)}if(o){const l=e.getTargetCell();l&&l.isNode()&&!i[l.id]&&(i[l.id]=l)}}return Object.keys(i).map(l=>i[l])}isNeighbor(e,t,r={}){let o=r.incoming,s=r.outgoing;return o==null&&s==null&&(o=s=!0),this.getConnectedEdges(e,r).some(i=>{const l=i.getSourceCell(),a=i.getTargetCell();return!!(o&&l&&l.id===t.id||s&&a&&a.id===t.id)})}getSuccessors(e,t={}){const r=[];return this.search(e,(o,s)=>{o!==e&&this.matchDistance(s,t.distance)&&r.push(o)},Object.assign(Object.assign({},t),{outgoing:!0})),r}isSuccessor(e,t,r={}){let o=!1;return this.search(e,(s,i)=>{if(s===t&&s!==e&&this.matchDistance(i,r.distance))return o=!0,!1},Object.assign(Object.assign({},r),{outgoing:!0})),o}getPredecessors(e,t={}){const r=[];return this.search(e,(o,s)=>{o!==e&&this.matchDistance(s,t.distance)&&r.push(o)},Object.assign(Object.assign({},t),{incoming:!0})),r}isPredecessor(e,t,r={}){let o=!1;return this.search(e,(s,i)=>{if(s===t&&s!==e&&this.matchDistance(i,r.distance))return o=!0,!1},Object.assign(Object.assign({},r),{incoming:!0})),o}matchDistance(e,t){return t==null?!0:typeof t=="function"?t(e):Array.isArray(t)&&t.includes(e)?!0:e===t}getCommonAncestor(...e){const t=[];return e.forEach(r=>{r&&(Array.isArray(r)?t.push(...r):t.push(r))}),At.getCommonAncestor(...t)}getSubGraph(e,t={}){const r=[],o={},s=[],i=[],l=a=>{o[a.id]||(r.push(a),o[a.id]=a,a.isEdge()&&i.push(a),a.isNode()&&s.push(a))};return e.forEach(a=>{l(a),t.deep&&a.getDescendants({deep:!0}).forEach(u=>l(u))}),i.forEach(a=>{const c=a.getSourceCell(),u=a.getTargetCell();c&&!o[c.id]&&(r.push(c),o[c.id]=c,c.isNode()&&s.push(c)),u&&!o[u.id]&&(r.push(u),o[u.id]=u,u.isNode()&&s.push(u))}),s.forEach(a=>{this.getConnectedEdges(a,t).forEach(u=>{const d=u.getSourceCell(),f=u.getTargetCell();!o[u.id]&&d&&o[d.id]&&f&&o[f.id]&&(r.push(u),o[u.id]=u)})}),r}cloneSubGraph(e,t={}){const r=this.getSubGraph(e,t);return this.cloneCells(r)}cloneCells(e){return At.cloneCells(e)}getNodesFromPoint(e,t){const r=typeof e=="number"?{x:e,y:t||0}:e;return this.getNodes().filter(o=>o.getBBox().containsPoint(r))}getNodesInArea(e,t,r,o,s){const i=typeof e=="number"?new Ve(e,t,r,o):Ve.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 Ve(e,t,r,o):Ve.create(e),l=typeof e=="number"?s:t,a=l&&l.strict;return this.getEdges().filter(c=>{const u=c.getBBox();return u.width===0?u.inflate(1,0):u.height===0&&u.inflate(0,1),a?i.containsRect(u):i.isIntersectWithRect(u)})}getNodesUnderNode(e,t={}){const r=e.getBBox();return(t.by==null||t.by==="bbox"?this.getNodesInArea(r):this.getNodesFromPoint(r[t.by])).filter(s=>e.id!==s.id&&!s.isDescendantOf(e))}getAllCellsBBox(){return this.getCellsBBox(this.getCells())}getCellsBBox(e,t={}){return At.getCellsBBox(e,t)}search(e,t,r={}){r.breadthFirst?this.breadthFirstSearch(e,t,r):this.depthFirstSearch(e,t,r)}breadthFirstSearch(e,t,r={}){const o=[],s={},i={};for(o.push(e),i[e.id]=0;o.length>0;){const l=o.shift();if(l==null||s[l.id]||(s[l.id]=!0,pt(t,this,l,i[l.id])===!1))continue;this.getNeighbors(l,r).forEach(c=>{i[c.id]=i[l.id]+1,o.push(c)})}}depthFirstSearch(e,t,r={}){const o=[],s={},i={};for(o.push(e),i[e.id]=0;o.length>0;){const l=o.pop();if(l==null||s[l.id]||(s[l.id]=!0,pt(t,this,l,i[l.id])===!1))continue;const a=this.getNeighbors(l,r),c=o.length;a.forEach(u=>{i[u.id]=i[l.id]+1,o.splice(c,0,u)})}}getShortestPath(e,t,r={}){const o={};this.getEdges().forEach(c=>{const u=c.getSourceCellId(),d=c.getTargetCellId();u&&d&&(o[u]||(o[u]=[]),o[d]||(o[d]=[]),o[u].push(d),r.directed||o[d].push(u))});const s=typeof e=="string"?e:e.id,i=yb.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 $o.toJSON(this.getCells(),e)}parseJSON(e){return $o.fromJSON(e)}fromJSON(e,t={}){const r=this.parseJSON(e);return this.resetCells(r,t),this}startBatch(e,t={}){return this.batches[e]=(this.batches[e]||0)+1,this.notify("batch:start",{name:e,data:t}),this}stopBatch(e,t={}){return this.batches[e]=(this.batches[e]||0)-1,this.notify("batch:stop",{name:e,data:t}),this}batchUpdate(e,t,r={}){this.startBatch(e,r);const o=t();return this.stopBatch(e,r),o}hasActiveBatch(e=Object.keys(this.batches)){return(Array.isArray(e)?e:[e]).some(r=>this.batches[r]>0)}dispose(){this.collection.dispose()}}Eue([$o.dispose()],$o.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})($o||($o={}));(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(bn.registry.exist(i))return bn.create(s);if(fn.registry.exist(i))return fn.create(s)}throw new Error("The `shape` should be specified when creating a node/edge instance")})}n.fromJSON=t})($o||($o={}));var _ue=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{const{imageUrl:r,imageWidth:o,imageHeight:s}=t,i=Tue(t,["imageUrl","imageWidth","imageHeight"]);if(r!=null||o!=null||s!=null){const l=()=>{if(i.attrs){const a=i.attrs.image;r!=null&&(a[n]=r),o!=null&&(a.width=o),s!=null&&(a.height=s),i.attrs.image=a}};i.attrs?(i.attrs.image==null&&(i.attrs.image={}),l()):(i.attrs={image:{}},l())}return i}}function eu(n,e,t={}){const r={constructorName:n,markup:Oue(n,t.selector),attrs:{[n]:Object.assign({},nl.bodyAttr)}};return(t.parent||nl).define(cn(r,e,{shape:n}))}eu("rect",{attrs:{body:{refWidth:"100%",refHeight:"100%"}}});const Aue=fn.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 kue=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);oArray.isArray(r)?r.join(","):Y.isPointLike(r)?`${r.x}, ${r.y}`:"").join(" ")}n.pointsToString=e,n.config({propHooks(t){const{points:r}=t,o=kue(t,["points"]);if(r){const s=e(r);s&&Xc(o,"attrs/body/refPoints",s)}return o}})})(Bc||(Bc={}));eu("polygon",{},{parent:Bc});eu("polyline",{},{parent:Bc});var Pue=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);othis.resize(),"update"),r=this.handleAction(r,"update",()=>this.update(),"ports"),r=this.handleAction(r,"translate",()=>this.translate()),r=this.handleAction(r,"rotate",()=>this.rotate()),r=this.handleAction(r,"ports",()=>this.renderPorts()),r=this.handleAction(r,"tools",()=>{this.getFlag("tools")===e?this.renderTools():this.updateTools(t)})),r}update(e){this.cleanCache(),this.removePorts();const t=this.cell,r=t.getSize(),o=t.getAttrs();this.updateAttrs(this.container,o,{attrs:e===o?null:e,rootBBox:new Ve(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=>{_c(e.portElement)})}renderPorts(){const e=this.container,t=[];e.childNodes.forEach(i=>{t.push(i)});const r=this.cell.getParsedPorts(),o=yC(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?_0(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=Yt.renderMarkup(this.cell.getPortContainerMarkup());const r=t.elem;if(r==null)throw new Error("Invalid port container markup.");t=Yt.renderMarkup(this.getPortMarkup(e));const o=t.elem,s=t.selectors;if(o==null)throw new Error("Invalid port markup.");this.setAttrs({port:e.id,"port-group":e.group},o);let i="x6-port";e.group&&(i+=` x6-port-${e.group}`),Nt(r,i),Nt(r,"x6-port"),Nt(o,"x6-port-body"),r.appendChild(o);let l=s,a,c;if(this.existPortLabel(e)){if(t=Yt.renderMarkup(this.getPortLabelMarkup(e.label)),a=t.elem,c=t.selectors,a==null)throw new Error("Invalid port label markup.");if(s&&c){for(const d in c)if(s[d]&&d!==this.rootSelector)throw new Error("Selectors within port must be unique.");l=Object.assign(Object.assign({},s),c)}Nt(a,"x6-port-label"),r.appendChild(a)}return this.portsCache[e.id]={portElement:r,portSelectors:l,portLabelElement:a,portLabelSelectors:c,portContentElement:o,portContentSelectors:s},this.graph.options.onPortRendered&&this.graph.options.onPortRendered({port:e,node:this.cell,container:r,selectors:l,labelContainer:a,labelSelectors:c,contentContainer:o,contentSelectors:s}),r}updatePorts(){const e=this.cell.getParsedGroups(),t=Object.keys(e);t.length===0?this.updatePortGroup():t.forEach(r=>this.updatePortGroup(r))}updatePortGroup(e){const t=Ve.fromSize(this.cell.getSize()),r=this.cell.getPortsLayoutByGroup(e,t);for(let o=0,s=r.length;os.options.clickThreshold||this.notify("node:magnet:click",Object.assign({magnet:t},this.getEventArgs(e,r,o)))}onMagnetDblClick(e,t,r,o){this.notify("node:magnet:dblclick",Object.assign({magnet:t},this.getEventArgs(e,r,o)))}onMagnetContextMenu(e,t,r,o){this.notify("node:magnet:contextmenu",Object.assign({magnet:t},this.getEventArgs(e,r,o)))}onMagnetMouseDown(e,t,r,o){this.startMagnetDragging(e,r,o)}onCustomEvent(e,t,r,o){this.notify("node:customevent",Object.assign({name:t},this.getEventArgs(e,r,o))),super.onCustomEvent(e,t,r,o)}prepareEmbedding(e){const t=this.graph,o=this.getEventData(e).cell||this.cell,s=t.findViewByCell(o),i=t.snapToGrid(e.clientX,e.clientY);this.notify("node:embed",{e,node:o,view:s,cell:o,x:i.x,y:i.y,currentParent:o.getParent()})}processEmbedding(e,t){const r=t.cell||this.cell,o=t.graph||this.graph,s=o.options.embedding,i=s.findParent;let l=typeof i=="function"?pt(i,o,{view:this,node:this.cell}).filter(f=>At.isCell(f)&&this.cell.id!==f.id&&!f.isDescendantOf(this.cell)):o.model.getNodesUnderNode(r,{by:i});if(s.frontOnly&&l.length>0){const f=yC(l,"zIndex"),h=y6(Object.keys(f).map(p=>parseInt(p,10)));h&&(l=f[h])}l=l.filter(f=>f.visible);let a=null;const c=t.candidateEmbedView,u=s.validate;for(let f=l.length-1;f>=0;f-=1){const h=l[f];if(c&&c.cell.id===h.id){a=c;break}else{const p=h.findView(o);if(u&&pt(u,o,{child:this.cell,parent:p.cell,childView:this,parentView:p})){a=p;break}}}this.clearEmbedding(t),a&&a.highlight(null,{type:"embedding"}),t.candidateEmbedView=a;const d=o.snapToGrid(e.clientX,e.clientY);this.notify("node:embedding",{e,cell:r,node:r,view:o.findViewByCell(r),x:d.x,y:d.y,currentParent:r.getParent(),candidateParent:a?a.cell:null})}clearEmbedding(e){const t=e.candidateEmbedView;t&&(t.unhighlight(null,{type:"embedding"}),e.candidateEmbedView=null)}finalizeEmbedding(e,t){this.graph.startBatch("embedding");const r=t.cell||this.cell,o=t.graph||this.graph,s=o.findViewByCell(r),i=r.getParent(),l=t.candidateEmbedView;if(l?(l.unhighlight(null,{type:"embedding"}),t.candidateEmbedView=null,(i==null||i.id!==l.cell.id)&&l.cell.insertChild(r,void 0,{ui:!0})):i&&i.unembed(r,{ui:!0}),o.model.getConnectedEdges(r,{deep:!0}).forEach(a=>{a.updateParent({ui:!0})}),s&&l){const a=o.snapToGrid(e.clientX,e.clientY);s.notify("node:embedded",{e,cell:r,x:a.x,y:a.y,node:r,view:o.findViewByCell(r),previousParent:i,currentParent:r.getParent()})}this.graph.stopBatch("embedding")}getDelegatedView(){let e=this.cell,t=this;for(;t&&!e.isEdge();){if(!e.hasParent()||t.can("stopDelegateOnDragging"))return t;e=e.getParent(),t=this.graph.findViewByCell(e)}return null}validateMagnet(e,t,r){if(t.getAttribute("magnet")!=="passive"){const o=this.graph.options.connecting.validateMagnet;return o?pt(o,this.graph,{e:r,magnet:t,view:e,cell:e.cell}):!0}return!1}startMagnetDragging(e,t,r){if(!this.can("magnetConnectable"))return;e.stopPropagation();const o=e.currentTarget,s=this.graph;this.setEventData(e,{targetMagnet:o}),this.validateMagnet(this,o,e)?(s.options.magnetThreshold<=0&&this.startConnectting(e,o,t,r),this.setEventData(e,{action:"magnet"}),this.stopPropagation(e)):this.onMouseDown(e,t,r),s.view.delegateDragEvents(e,this)}startConnectting(e,t,r,o){this.graph.model.startBatch("add-edge");const s=this.createEdgeFromMagnet(t,r,o);s.setEventData(e,s.prepareArrowheadDragging("target",{x:r,y:o,isNewEdge:!0,fallbackAction:"remove"})),this.setEventData(e,{edgeView:s}),s.notifyMouseDown(e,r,o)}getDefaultEdge(e,t){let r;const o=this.graph.options.connecting.createEdge;return o&&(r=pt(o,this.graph,{sourceMagnet:t,sourceView:e,sourceCell:e.cell})),r}createEdgeFromMagnet(e,t,r){const o=this.graph,s=o.model,i=this.getDefaultEdge(this,e);return i.setSource(Object.assign(Object.assign({},i.getSource()),this.getEdgeTerminal(e,t,r,i,"source"))),i.setTarget(Object.assign(Object.assign({},i.getTarget()),{x:t,y:r})),i.addTo(s,{async:!1,ui:!0}),i.findView(o)}dragMagnet(e,t,r){const o=this.getEventData(e),s=o.edgeView;if(s)s.onMouseMove(e,t,r),this.autoScrollGraph(e.clientX,e.clientY);else{const i=this.graph,l=i.options.magnetThreshold,a=this.getEventTarget(e),c=o.targetMagnet;if(l==="onleave"){if(c===a||c.contains(a))return}else if(i.view.getMouseMovedCount(e)<=l)return;this.startConnectting(e,c,t,r)}}stopMagnetDragging(e,t,r){const s=this.eventData(e).edgeView;s&&(s.onMouseUp(e,t,r),this.graph.model.stopBatch("add-edge"))}notifyUnhandledMouseDown(e,t,r){this.notify("node:unhandled:mousedown",{e,x:t,y:r,view:this,cell:this.cell,node:this.cell})}notifyNodeMove(e,t,r,o,s){let i=[s];const l=this.graph.getPlugin("selection");if(l&&l.isSelectionMovable()){const a=l.getSelectedCells();a.includes(s)&&(i=a.filter(c=>c.isNode()))}i.forEach(a=>{this.notify(e,{e:t,x:r,y:o,cell:a,node:a,view:a.findView(this.graph)})})}getRestrictArea(e){const t=this.graph.options.translating.restrict,r=typeof t=="function"?pt(t,this.graph,e):t;return typeof r=="number"?this.graph.transform.getGraphArea().inflate(r):r===!0?this.graph.transform.getGraphArea():r||null}startNodeDragging(e,t,r){const o=this.getDelegatedView();if(o==null||!o.can("nodeMovable"))return this.notifyUnhandledMouseDown(e,t,r);this.setEventData(e,{targetView:o,action:"move"});const s=Y.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=jt.snapToGrid(t+a.x,i),d=jt.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})(Wr||(Wr={}));Wr.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"]}});Wr.registry.register("node",Wr,!0);var Iue=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);othis.update(t)),r=this.handleAction(r,"labels",()=>this.onLabelsChange(t)),r=this.handleAction(r,"tools",()=>this.renderTools()),r)}render(){return this.empty(),this.renderMarkup(),this.labelContainer=null,this.renderLabels(),this.update(),this.renderTools(),this}renderMarkup(){const e=this.cell.markup;if(e){if(typeof e=="string")throw new TypeError("Not support string markup.");return this.renderJSONMarkup(e)}throw new TypeError("Invalid edge markup.")}renderJSONMarkup(e){const t=this.parseJSONMarkup(e,this.container);this.selectors=t.selectors,this.container.append(t.fragment)}customizeLabels(){if(this.labelContainer){const e=this.cell,t=e.labels;for(let r=0,o=t.length;r1){const s=r[1];if(t[s]){if(o===2)return typeof e.propertyValue=="object"&&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=ft.createVectors(e),r=document.createDocumentFragment();for(let o=0,s=t.length;o1||o[0].nodeName.toUpperCase()!=="G"?r=ft.create("g").append(t):r=ft.create(o[0]),r.addClass(this.prefixClassName("edge-label")),{node:r.node,selectors:e.selectors}}updateLabels(){if(this.labelContainer){const e=this.cell,t=e.labels,r=this.can("edgeLabelMovable"),o=e.getDefaultLabel();for(let s=0,i=t.length;sc.toJSON()),a=l.length;return s===a?0:(t.setVertices(l.slice(1,a-1),e),s-a)}getTerminalView(e){switch(e){case"source":return this.sourceView||null;case"target":return this.targetView||null;default:throw new Error(`Unknown terminal type '${e}'`)}}getTerminalAnchor(e){switch(e){case"source":return Y.create(this.sourceAnchor);case"target":return Y.create(this.targetAnchor);default:throw new Error(`Unknown terminal type '${e}'`)}}getTerminalConnectionPoint(e){switch(e){case"source":return Y.create(this.sourcePoint);case"target":return Y.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 pn(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=Y.create(t):d?p=h:p=Y.create(c),s=this.getAnchor(a.anchor,u,f,p,e)}else s=Y.create(a);if(d){const p=Y.create(o||s);i=this.getAnchor(c.anchor,d,h,p,r)}else i=Y.isPointLike(c)?Y.create(c):new Y;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=$c.registry.get(u);if(typeof d!="function")return $c.registry.onNotFound(u);c=pt(d,this,t,r,o,a.args||{},s)}else{const d=Rc.registry.get(u);if(typeof d!="function")return Rc.registry.onNotFound(u);c=pt(d,this,t,r,o,a.args||{},s)}return c?c.round(this.POINT_ROUNDING):new Y}findRoutePoints(e=[]){const t=this.graph.options.connecting.router||Bi.presets.normal,r=this.cell.getRouter()||t;let o;if(typeof r=="function")o=pt(r,this,e,{},this);else{const s=typeof r=="string"?r:r.name,i=typeof r=="string"?{}:r.args||{},l=s?Bi.registry.get(s):Bi.presets.normal;if(typeof l!="function")return Bi.registry.onNotFound(s);o=pt(l,this,e,i,this)}return o==null?e.map(s=>Y.create(s)):o.map(s=>Y.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,v=new Ke(g,t),m=i.connectionPoint||s.sourceConnectionPoint||s.connectionPoint;f=this.getConnectionPoint(m,a,p,v,"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,v=d||t,m=new Ke(v,r);h=this.getConnectionPoint(g,c,p,m,"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=Dc.registry.get(l);if(typeof c!="function")return Dc.registry.onNotFound(l);const u=pt(c,this,o,t,r,a||{},s);return u?u.round(this.POINT_ROUNDING):i}findMarkerPoints(e,t,r){const o=d=>{const f=this.cell.getAttrs(),h=Object.keys(f);for(let p=0,g=h.length;p0?v/g:0),u&&(v=-1*(g-v)||1),s.distance=v;let m;a||(m=d.tangentAtT(p));let w;if(m)w=m.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,v=h.tangentAtLength(g,p);let m,w=o;if(v){if(u)m=v.start,m.translate(a);else{const b=v.clone();b.rotate(-90,v.start),b.setLength(l),m=b.end}d&&(w=v.angle()+o,f&&(w=Ut.normalize((w+90)%180-90)))}else m=h.start,u&&m.translate(a);return jn().translate(m.x,m.y).rotate(w)}getVertexIndex(e,t){const o=this.cell.getVertices(),s=this.getClosestPointLength(new Y(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,v=s==="target"?r:e,m=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 pt(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&&m&&(w=!1):w=b(f)),w&&d!=null&&(typeof d=="boolean"?!d&&Js.isEdgeView(v)&&(w=!1):w=b(d)),w&&u!=null&&m==null&&(typeof u=="boolean"?!u&&Wr.isNodeView(v)&&(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(k=>{const P=k.getSource(),L=k.getTarget();return P&&L&&P.cell===S.cell&&L.cell===E.cell&&P.port!=null&&P.port===S.port&&L.port!=null&&L.port===E.port})&&(w=!1):h||M.some(k=>{const P=k.getSource(),L=k.getTarget();return P&&L&&P.cell===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 pt(o,t,{edge:e,edgeView:s,sourceCell:i,targetCell:l,sourceView:a,targetView:c,sourcePort:e.getSourcePortId(),targetPort:e.getTargetPortId(),sourceMagnet:s.sourceMagnet,targetMagnet:s.targetMagnet})}validateEdge(e,t,r){const o=this.graph;if(!this.allowConnectToBlank(e)){const i=e.getSourceCellId(),l=e.getTargetCellId();if(!(i&&l))return!1}const s=o.options.connecting.validateEdge;return s?pt(s,o,{edge:e,type:t,previous:r}):!0}arrowheadDragging(e,t,r,o){o.x=t,o.y=r,o.currentTarget!==e&&(o.currentMagnet&&o.currentView&&o.currentView.unhighlight(o.currentMagnet,{type:"magnetAdsorbed"}),o.currentView=this.graph.findViewByElem(e),o.currentView?(o.currentMagnet=o.currentView.findMagnet(e),o.currentMagnet&&this.validateConnection(...o.getValidateConnectionArgs(o.currentView,o.currentMagnet),o.currentView.getEdgeTerminal(o.currentMagnet,t,r,this.cell,o.terminalType))?o.currentView.highlight(o.currentMagnet,{type:"magnetAdsorbed"}):o.currentMagnet=null):o.currentMagnet=null),o.currentTarget=e,this.cell.prop(o.terminalType,{x:t,y:r},Object.assign(Object.assign({},o.options),{ui:!0}))}arrowheadDragged(e,t,r){const o=e.currentView,s=e.currentMagnet;if(!s||!o)return;o.unhighlight(s,{type:"magnetAdsorbed"});const i=e.terminalType,l=o.getEdgeTerminal(s,t,r,this.cell,i);this.cell.setTerminal(i,l,{ui:!0})}snapArrowhead(e,t,r){const o=this.graph,{snap:s,allowEdge:i}=o.options.connecting,l=typeof s=="object"&&s.radius||50,a=typeof s=="object"&&s.anchor||"center",c=o.renderer.findViewsInArea({x:e-l,y:t-l,width:2*l,height:2*l},{nodeOnly:!0});if(i){const y=o.renderer.findEdgeViewsFromPoint({x:e,y:t},l).filter(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 Y(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=cn({},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})(Js||(Js={}));Js.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"]}});Js.registry.register("edge",Js,!0);var Lue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class vs extends en{get disposeContainer(){return!1}get options(){return this.graph.options}constructor(e){super(),this.graph=e;const{selectors:t,fragment:r}=Yt.parseJSONMarkup(vs.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=vs.snapshoot(this.container),Nt(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&&At.isCell(t.cell)||this.svg===e.target||this.container===e.target||this.svg.contains(e.target))}findView(e){return this.graph.findViewByElem(e)}onDblClick(e){this.options.preventDefaultDblClick&&e.preventDefault();const t=this.normalizeEvent(e),r=this.findView(t.target);if(this.guard(t,r))return;const o=this.graph.snapToGrid(t.clientX,t.clientY);r?r.onDblClick(t,o.x,o.y):this.graph.trigger("blank:dblclick",{e:t,x:o.x,y:o.y})}onClick(e){if(this.getMouseMovedCount(e)<=this.options.clickThreshold){const t=this.normalizeEvent(e),r=this.findView(t.target);if(this.guard(t,r))return;const o=this.graph.snapToGrid(t.clientX,t.clientY);r?r.onClick(t,o.x,o.y):this.graph.trigger("blank:click",{e:t,x:o.x,y:o.y})}}isPreventDefaultContextMenu(e){let t=this.options.preventDefaultContextMenu;return typeof t=="function"&&(t=pt(t,this.graph,{view:e})),t}onContextMenu(e){const t=this.normalizeEvent(e),r=this.findView(t.target);if(this.isPreventDefaultContextMenu(r)&&e.preventDefault(),this.guard(t,r))return;const o=this.graph.snapToGrid(t.clientX,t.clientY);r?r.onContextMenu(t,o.x,o.y):this.graph.trigger("blank:contextmenu",{e:t,x:o.x,y:o.y})}delegateDragEvents(e,t){e.data==null&&(e.data={}),this.setEventData(e,{currentView:t||null,mouseMovedCount:0,startPosition:{x:e.clientX,y:e.clientY}});const r=this.constructor;this.delegateDocumentEvents(r.documentEvents,e.data),this.undelegateEvents()}getMouseMovedCount(e){return this.getEventData(e).mouseMovedCount||0}onMouseDown(e){const t=this.normalizeEvent(e),r=this.findView(t.target);if(this.guard(t,r))return;this.options.preventDefaultMouseDown&&e.preventDefault();const o=this.graph.snapToGrid(t.clientX,t.clientY);r?r.onMouseDown(t,o.x,o.y):(this.options.preventDefaultBlankAction&&["touchstart"].includes(t.type)&&e.preventDefault(),this.graph.trigger("blank:mousedown",{e:t,x:o.x,y:o.y})),this.delegateDragEvents(t,r)}onMouseMove(e){const t=this.getEventData(e),r=t.startPosition;if(r&&r.x===e.clientX&&r.y===e.clientY||(t.mouseMovedCount==null&&(t.mouseMovedCount=0),t.mouseMovedCount+=1,t.mouseMovedCount<=this.options.moveThreshold))return;const s=this.normalizeEvent(e),i=this.graph.snapToGrid(s.clientX,s.clientY),l=t.currentView;l?l.onMouseMove(s,i.x,i.y):this.graph.trigger("blank:mousemove",{e:s,x:i.x,y:i.y}),this.setEventData(s,t)}onMouseUp(e){this.undelegateDocumentEvents();const t=this.normalizeEvent(e),r=this.graph.snapToGrid(t.clientX,t.clientY),s=this.getEventData(e).currentView;if(s?s.onMouseUp(t,r.x,r.y):this.graph.trigger("blank:mouseup",{e:t,x:r.x,y:r.y}),!e.isPropagationStopped()){const i=new as(e,{type:"click",data:e.data});this.onClick(i)}e.stopImmediatePropagation(),this.delegateEvents()}onMouseOver(e){const t=this.normalizeEvent(e),r=this.findView(t.target);if(!this.guard(t,r))if(r)r.onMouseOver(t);else{if(this.container===t.target)return;this.graph.trigger("blank:mouseover",{e:t})}}onMouseOut(e){const t=this.normalizeEvent(e),r=this.findView(t.target);if(!this.guard(t,r))if(r)r.onMouseOut(t);else{if(this.container===t.target)return;this.graph.trigger("blank:mouseout",{e:t})}}onMouseEnter(e){const t=this.normalizeEvent(e),r=this.findView(t.target);if(this.guard(t,r))return;const o=this.graph.findViewByElem(t.relatedTarget);if(r){if(o===r)return;r.onMouseEnter(t)}else{if(o)return;this.graph.trigger("graph:mouseenter",{e:t})}}onMouseLeave(e){const t=this.normalizeEvent(e),r=this.findView(t.target);if(this.guard(t,r))return;const o=this.graph.findViewByElem(t.relatedTarget);if(r){if(o===r)return;r.onMouseLeave(t)}else{if(o)return;this.graph.trigger("graph:mouseleave",{e:t})}}onMouseWheel(e){const t=this.normalizeEvent(e),r=this.findView(t.target);if(this.guard(t,r))return;const o=t.originalEvent,s=this.graph.snapToGrid(o.clientX,o.clientY),i=Math.max(-1,Math.min(1,o.wheelDelta||-o.detail));r?r.onMouseWheel(t,s.x,s.y,i):this.graph.trigger("blank:mousewheel",{e:t,delta:i,x:s.x,y:s.y})}onCustomEvent(e){const t=e.currentTarget,r=t.getAttribute("event")||t.getAttribute("data-event");if(r){const o=this.findView(t);if(o){const s=this.normalizeEvent(e);if(this.guard(s,o))return;const i=this.graph.snapToGrid(s.clientX,s.clientY);o.onCustomEvent(s,r,i.x,i.y)}}}handleMagnetEvent(e,t){const r=e.currentTarget,o=r.getAttribute("magnet");if(o&&o.toLowerCase()!=="false"){const s=this.findView(r);if(s){const i=this.normalizeEvent(e);if(this.guard(i,s))return;const l=this.graph.snapToGrid(i.clientX,i.clientY);pt(t,this.graph,s,i,r,l.x,l.y)}}}onMagnetMouseDown(e){this.handleMagnetEvent(e,(t,r,o,s,i)=>{t.onMagnetMouseDown(r,o,s,i)})}onMagnetDblClick(e){this.handleMagnetEvent(e,(t,r,o,s,i)=>{t.onMagnetDblClick(r,o,s,i)})}onMagnetContextMenu(e){const t=this.findView(e.target);this.isPreventDefaultContextMenu(t)&&e.preventDefault(),this.handleMagnetEvent(e,(r,o,s,i,l)=>{r.onMagnetContextMenu(o,s,i,l)})}onLabelMouseDown(e){const t=e.currentTarget,r=this.findView(t);if(r){const o=this.normalizeEvent(e);if(this.guard(o,r))return;const s=this.graph.snapToGrid(o.clientX,o.clientY);r.onLabelMouseDown(o,s.x,s.y)}}onImageDragStart(){return!1}dispose(){this.undelegateEvents(),this.undelegateDocumentEvents(),this.restore(),this.restore=()=>{}}}Lue([en.dispose()],vs.prototype,"dispose",null);(function(n){const e=`${jo.prefixCls}-graph`;n.markup=[{ns:Ln.xhtml,tagName:"div",selector:"background",className:`${e}-background`},{ns:Ln.xhtml,tagName:"div",selector:"grid",className:`${e}-grid`},{ns:Ln.svg,tagName:"svg",selector:"svg",className:`${e}-svg`,attrs:{width:"100%",height:"100%","xmlns:xlink":Ln.xlink},children:[{tagName:"defs",selector:"defs"},{tagName:"g",selector:"viewport",className:`${e}-svg-viewport`,children:[{tagName:"g",selector:"primer",className:`${e}-svg-primer`},{tagName:"g",selector:"stage",className:`${e}-svg-stage`},{tagName:"g",selector:"decorator",className:`${e}-svg-decorator`},{tagName:"g",selector:"overlay",className:`${e}-svg-overlay`}]}]}];function t(r){const o=r.cloneNode();return r.childNodes.forEach(s=>o.appendChild(s)),()=>{for(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})(vs||(vs={}));(function(n){const e=jo.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"}})(vs||(vs={}));const Rue=`.x6-graph { + position: relative; + overflow: hidden; + outline: none; + touch-action: none; +} +.x6-graph-background, +.x6-graph-grid, +.x6-graph-svg { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; +} +.x6-graph-background-stage, +.x6-graph-grid-stage, +.x6-graph-svg-stage { + user-select: none; +} +.x6-graph.x6-graph-pannable { + cursor: grab; + cursor: -moz-grab; + cursor: -webkit-grab; +} +.x6-graph.x6-graph-panning { + cursor: grabbing; + cursor: -moz-grabbing; + cursor: -webkit-grabbing; + user-select: none; +} +.x6-node { + cursor: move; + /* stylelint-disable-next-line */ +} +.x6-node.x6-node-immovable { + cursor: default; +} +.x6-node * { + -webkit-user-drag: none; +} +.x6-node .scalable * { + vector-effect: non-scaling-stroke; +} +.x6-node [magnet='true'] { + cursor: crosshair; + transition: opacity 0.3s; +} +.x6-node [magnet='true']:hover { + opacity: 0.7; +} +.x6-node foreignObject { + display: block; + overflow: visible; + background-color: transparent; +} +.x6-node foreignObject > body { + position: static; + width: 100%; + height: 100%; + margin: 0; + padding: 0; + overflow: visible; + background-color: transparent; +} +.x6-edge .source-marker, +.x6-edge .target-marker { + vector-effect: non-scaling-stroke; +} +.x6-edge .connection { + stroke-linejoin: round; + fill: none; +} +.x6-edge .connection-wrap { + cursor: move; + opacity: 0; + fill: none; + stroke: #000; + stroke-width: 15; + stroke-linecap: round; + stroke-linejoin: round; +} +.x6-edge .connection-wrap:hover { + opacity: 0.4; + stroke-opacity: 0.4; +} +.x6-edge .vertices { + cursor: move; + opacity: 0; +} +.x6-edge .vertices .vertex { + fill: #1abc9c; +} +.x6-edge .vertices .vertex :hover { + fill: #34495e; + stroke: none; +} +.x6-edge .vertices .vertex-remove { + cursor: pointer; + fill: #fff; +} +.x6-edge .vertices .vertex-remove-area { + cursor: pointer; + opacity: 0.1; +} +.x6-edge .vertices .vertex-group:hover .vertex-remove-area { + opacity: 1; +} +.x6-edge .arrowheads { + cursor: move; + opacity: 0; +} +.x6-edge .arrowheads .arrowhead { + fill: #1abc9c; +} +.x6-edge .arrowheads .arrowhead :hover { + fill: #f39c12; + stroke: none; +} +.x6-edge .tools { + cursor: pointer; + opacity: 0; +} +.x6-edge .tools .tool-options { + display: none; +} +.x6-edge .tools .tool-remove circle { + fill: #f00; +} +.x6-edge .tools .tool-remove path { + fill: #fff; +} +.x6-edge:hover .vertices, +.x6-edge:hover .arrowheads, +.x6-edge:hover .tools { + opacity: 1; +} +.x6-highlight-opacity { + opacity: 0.3; +} +.x6-cell-tool-editor { + position: relative; + display: inline-block; + min-height: 1em; + margin: 0; + padding: 0; + line-height: 1; + white-space: normal; + text-align: center; + vertical-align: top; + overflow-wrap: normal; + outline: none; + transform-origin: 0 0; + -webkit-user-drag: none; +} +.x6-edge-tool-editor { + border: 1px solid #275fc5; + border-radius: 2px; +} +`;class Hn extends Ks{get options(){return this.graph.options}get model(){return this.graph.model}get view(){return this.graph.view}constructor(e){super(),this.graph=e,this.init()}init(){}}var $ue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class _b extends Hn{init(){Uie("core",Rue)}dispose(){Wie("core")}}$ue([_b.dispose()],_b.prototype,"dispose",null);var Due=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{const h=t[f];typeof h=="boolean"?c[f].enabled=h:c[f]=Object.assign(Object.assign({},c[f]),h)}),c}n.get=e})(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:jo.prefix("available-node")}},magnetAvailable:{name:"className",args:{className:jo.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"]),v=Object.assign(Object.assign(Object.assign({},g),s[c]),{sx:d,sy:f,ox:r.e||0,oy:r.f||0,width:t*d,height:t*f});o.has(u)||o.add(u,ft.create("pattern",{id:u,patternUnits:"userSpaceOnUse"},ft.createVectors(p)).node);const m=o.get(u);typeof h=="function"&&h(m.childNodes[0],v);let w=v.ox%v.width;w<0&&(w+=v.width);let b=v.oy%v.height;b<0&&(b+=v.height),Wt(m,{x:w,y:b,width:v.width,height:v.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 Vi),this.instance}resolveGrid(e){if(!e)return[];const t=e.type;if(t==null)return[Object.assign(Object.assign({},Vi.presets.dot),e.args)];const r=Vi.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 Vi.registry.onNotFound(t)}dispose(){this.stopListening(),this.clear()}}Vue([Hn.dispose()],P0.prototype,"dispose",null);class rN extends Hn{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),jn(this.viewportMatrix)}setMatrix(e){const t=jn(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 wC(e)||(e=this.container.clientWidth),wC(t)||(t=this.container.clientHeight),{width:e,height:t}}getScale(){return Rie(this.getMatrix())}scale(e,t=e,r=0,o=0){if(e=this.clampScale(e),t=this.clampScale(t),r||o){const i=this.getTranslation(),l=i.tx-r*(e-1),a=i.ty-o*(t-1);(l!==i.tx||a!==i.ty)&&this.translate(l,a)}const s=this.getMatrix();return s.a=e,s.d=t,this.setMatrix(s),this.graph.trigger("scale",{sx:e,sy:t,ox:r,oy:o}),this}clampScale(e){const t=this.graph.options.scaling;return oo(e,t.min||.01,t.max||16)}getZoom(){return this.getScale().sx}zoom(e,t){t=t||{};let r=e,o=e;const s=this.getScale(),i=this.getComputedSize();let l=i.width/2,a=i.height/2;if(t.absolute||(r+=s.sx,o+=s.sy),t.scaleGrid&&(r=Math.round(r/t.scaleGrid)*t.scaleGrid,o=Math.round(o/t.scaleGrid)*t.scaleGrid),t.maxScale&&(r=Math.min(t.maxScale,r),o=Math.min(t.maxScale,o)),t.minScale&&(r=Math.max(t.minScale,r),o=Math.max(t.minScale,o)),t.center&&(l=t.center.x,a=t.center.y),r=this.clampScale(r),o=this.clampScale(o),l||a){const c=this.getTranslation(),u=l-(l-c.tx)*(r/s.sx),d=a-(a-c.ty)*(o/s.sy);(u!==c.tx||d!==c.ty)&&this.translate(u,d)}return this.scale(r,o),this}getRotation(){return $ie(this.getMatrix())}rotate(e,t,r){if(t==null||r==null){const s=Vt.getBBox(this.stage);t=s.width/2,r=s.height/2}const o=this.getMatrix().translate(t,r).rotate(e).translate(-t,-r);return this.setMatrix(o),this}getTranslation(){return Die(this.getMatrix())}translate(e,t){const r=this.getMatrix();r.e=e||0,r.f=t||0,this.setMatrix(r);const o=this.getTranslation();return this.options.x=o.tx,this.options.y=o.ty,this.graph.trigger("translate",Object.assign({},o)),this}setOrigin(e,t){return this.translate(e||0,t||0)}fitToContent(e,t,r,o){if(typeof e=="object"){const b=e;e=b.gridWidth||1,t=b.gridHeight||1,r=b.padding||0,o=b}else e=e||1,t=t||1,r=r||0,o==null&&(o={});const s=fa(r),i=o.border||0,l=o.contentArea?Ve.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 v=this.getComputedSize(),m=f!==v.width||h!==v.height;return(p!==c.tx||g!==c.ty)&&this.translate(p,g),m&&this.resize(f,h),new Ve(-p/u,-g/d,f/u,h/d)}scaleContentToFit(e={}){this.scaleContentToFitImpl(e)}scaleContentToFitImpl(e={},t=!0){let r,o;if(e.contentArea){const m=e.contentArea;r=this.graph.localToGraph(m),o=Y.create(m)}else r=this.getContentBBox(e),o=this.graph.graphToLocal(r);if(!r.width||!r.height)return;const s=fa(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 m=this.getComputedSize(),w=this.getTranslation();f={x:w.tx,y:w.ty,width:m.width,height:m.height}}f=Ve.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 v=e.scaleGrid;if(v&&(p=v*Math.floor(p/v),g=v*Math.floor(g/v)),p=oo(p,a,c),g=oo(g,u,d),this.scale(p,g),t){const m=this.options,w=f.x-o.x*p-m.x,b=f.y-o.y*g-m.y;this.translate(w,b)}}getContentArea(e={}){return e.useCellGeometry!==!1?this.model.getAllCellsBBox()||new Ve:Vt.getBBox(this.stage)}getContentBBox(e={}){return this.graph.localToGraph(this.getContentArea(e))}getGraphArea(){const e=Ve.fromSize(this.getComputedSize());return this.graph.graphToLocal(e)}zoomToRect(e,t={}){const r=Ve.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=Ro(t,Math.max(0,o.width)),t<0&&(t=o.width+t),r=Ro(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=Ve.create(e);switch(t){case"center":return this.positionPoint(r.getCenter(),"50%","50%");case"top":return this.positionPoint(r.getTopCenter(),"50%",0);case"top-right":return this.positionPoint(r.getTopRight(),"100%",0);case"right":return this.positionPoint(r.getRightMiddle(),"100%","50%");case"bottom-right":return this.positionPoint(r.getBottomRight(),"100%","100%");case"bottom":return this.positionPoint(r.getBottomCenter(),"50%","100%");case"bottom-left":return this.positionPoint(r.getBottomLeft(),0,"100%");case"left":return this.positionPoint(r.getLeftMiddle(),0,"50%");case"top-left":return this.positionPoint(r.getTopLeft(),0,0);default:return this}}positionCell(e,t){const r=e.getBBox();return this.positionRect(r,t)}positionContent(e,t){const r=this.graph.getContentArea(t);return this.positionRect(r,e)}}var Fue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class N0 extends Hn{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=Ve.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=ad(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=ad(t);const r=document.createElement("img");r.onload=()=>this.drawBackgroundImage(r,e),r.setAttribute("crossorigin","anonymous"),r.src=t.image}else this.drawBackgroundImage(null),this.optionsCache=null}clear(){this.draw()}dispose(){this.clear(),this.stopListening()}}Fue([Hn.dispose()],N0.prototype,"dispose",null);var zue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class I0 extends Hn{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),Wn.on(this.graph.container,"mousedown",this.onRightMouseDown),Wn.on(document.body,{keydown:this.onSpaceKeyDown,keyup:this.onSpaceKeyUp}),this.mousewheelHandle=new lP(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),Wn.off(this.graph.container,"mousedown",this.onRightMouseDown),Wn.off(document.body,{keydown:this.onSpaceKeyDown,keyup:this.onSpaceKeyUp}),this.mousewheelHandle&&this.mousewheelHandle.disable()}allowPanning(e,t){return e.spaceKey=this.isSpaceKeyPressed,this.pannable&&Oc.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(),Wn.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)}),Wn.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(),Wn.off(document.body,".panning"),Wn.off(window,".panning")}updateClassName(){const e=this.view.container,t=this.view.prefixClassName("graph-panning"),r=this.view.prefixClassName("graph-pannable");this.pannable?this.panning?(Nt(e,t),io(e,r)):(io(e,t),Nt(e,r)):(io(e,t),io(e,r))}onMouseDown({e}){if(!this.allowBlankMouseDown(e))return;const t=this.graph.getPlugin("selection"),r=t&&t.allowRubberband(e,!0);(this.allowPanning(e,!0)||this.allowPanning(e)&&!r)&&this.startPanning(e)}onRightMouseDown(e){const t=this.widgetOptions.eventTypes;t!=null&&t.includes("rightMouseDown")&&e.button===2&&this.allowPanning(e,!0)&&this.startPanning(e)}onMouseWheel(e,t,r){this.graph.translateBy(-t,-r)}onSpaceKeyDown(e){e.which===32&&(this.isSpaceKeyPressed=!0)}onSpaceKeyUp(e){e.which===32&&(this.isSpaceKeyPressed=!1)}allowBlankMouseDown(e){const t=this.widgetOptions.eventTypes;return(t==null?void 0:t.includes("leftMouseDown"))&&e.button===0||(t==null?void 0:t.includes("mouseWheelDown"))&&e.button===1}allowMouseWheel(e){var t;return this.pannable&&!e.ctrlKey&&((t=this.widgetOptions.eventTypes)===null||t===void 0?void 0:t.includes("mouseWheel"))}autoPanning(e,t){const o=this.graph.getGraphArea();let s=0,i=0;e<=o.left+10&&(s=-10),t<=o.top+10&&(i=-10),e>=o.right-10&&(s=10),t>=o.bottom-10&&(i=10),(s!==0||i!==0)&&this.graph.translateBy(-s,-i)}enablePanning(){this.pannable||(this.widgetOptions.enabled=!0,this.updateClassName())}disablePanning(){this.pannable&&(this.widgetOptions.enabled=!1,this.updateClassName())}dispose(){this.stopListening()}}zue([Hn.dispose()],I0.prototype,"dispose",null);var jue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class L0 extends Hn{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 lP(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))&&Oc.isMatch(e,this.widgetOptions.modifiers)}onMouseWheel(e){const t=this.widgetOptions.guard;if((t==null||t(e))&&Oc.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=oo(i,l,a),i!==s)if(this.widgetOptions.zoomAtMousePosition){const u=!!this.graph.getPlugin("scroller")?this.graph.clientToLocal(this.startPos):this.graph.clientToGraph(this.startPos);this.graph.zoom(i,{absolute:!0,center:u.clone()})}else this.graph.zoom(i,{absolute:!0});this.currentScale=null,this.cumulatedFactor=1}}dispose(){this.disable()}}jue([Ks.dispose()],L0.prototype,"dispose",null);var Hue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class oN extends Hn{init(){this.resetRenderArea=ih(this.resetRenderArea,200,{leading:!0}),this.resetRenderArea(),this.startListening()}startListening(){this.graph.on("translate",this.resetRenderArea,this),this.graph.on("scale",this.resetRenderArea,this),this.graph.on("resize",this.resetRenderArea,this)}stopListening(){this.graph.off("translate",this.resetRenderArea,this),this.graph.off("scale",this.resetRenderArea,this),this.graph.off("resize",this.resetRenderArea,this)}enableVirtualRender(){this.options.virtual=!0,this.resetRenderArea()}disableVirtualRender(){this.options.virtual=!1,this.graph.renderer.setRenderArea(void 0)}resetRenderArea(){if(this.options.virtual){const e=this.graph.getGraphArea();this.graph.renderer.setRenderArea(e)}}dispose(){this.stopListening()}}Hue([Hn.dispose()],oN.prototype,"dispose",null);class Uue{constructor(){this.isFlushing=!1,this.isFlushPending=!1,this.scheduleId=0,this.queue=[],this.frameInterval=33,this.initialTime=Date.now()}queueJob(e){if(e.priority&Ds.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 Ds;(function(n){n[n.Update=2]="Update",n[n.RenderEdge=4]="RenderEdge",n[n.RenderNode=8]="RenderNode",n[n.PRIOR=1048576]="PRIOR"})(Ds||(Ds={}));var Wue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class On extends Ks{get model(){return this.graph.model}get container(){return this.graph.view.stage}constructor(e){super(),this.views={},this.willRemoveViews={},this.queue=new Uue,this.graph=e,this.init()}init(){this.startListening(),this.renderViews(this.model.getCells())}startListening(){this.model.on("reseted",this.onModelReseted,this),this.model.on("cell:added",this.onCellAdded,this),this.model.on("cell:removed",this.onCellRemoved,this),this.model.on("cell:change:zIndex",this.onCellZIndexChanged,this),this.model.on("cell:change:visible",this.onCellVisibleChanged,this)}stopListening(){this.model.off("reseted",this.onModelReseted,this),this.model.off("cell:added",this.onCellAdded,this),this.model.off("cell:removed",this.onCellRemoved,this),this.model.off("cell:change:zIndex",this.onCellZIndexChanged,this),this.model.off("cell:change:visible",this.onCellVisibleChanged,this)}onModelReseted({options:e}){this.queue.clearJobs(),this.removeZPivots(),this.resetViews();const t=this.model.getCells();this.renderViews(t,Object.assign(Object.assign({},e),{queue:t.map(r=>r.id)}))}onCellAdded({cell:e,options:t}){this.renderViews([e],t)}onCellRemoved({cell:e}){this.removeViews([e])}onCellZIndexChanged({cell:e,options:t}){const r=this.views[e.id];r&&this.requestViewUpdate(r.view,On.FLAG_INSERT,t,Ds.Update,!0)}onCellVisibleChanged({cell:e,current:t}){this.toggleVisible(e,!!t)}requestViewUpdate(e,t,r={},o=Ds.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=Ds.PRIOR,s=!1),this.queue.queueJob({id:i,priority:o,cb:()=>{this.renderViewInArea(e,t,r);const u=r.queue;if(u){const d=u.indexOf(e.cell.id);d>=0&&u.splice(d,1),u.length===0&&this.graph.trigger("render:done")}}}),this.getEffectedEdges(e).forEach(u=>{this.requestViewUpdate(u.view,u.flag,r,o,!1)}),s&&this.flush()}setRenderArea(e){this.renderArea=e,this.flushWaitingViews()}isViewMounted(e){if(e==null)return!1;const t=this.views[e.cell.id];return t?t.state===On.ViewState.MOUNTED:!1}renderViews(e,t={}){e.sort((r,o)=>r.isNode()&&o.isEdge()?-1:0),e.forEach(r=>{const o=r.id,s=this.views;let i=0,l=s[o];if(l)i=On.FLAG_INSERT;else{const a=this.createCellView(r);a&&(a.graph=this.graph,i=On.FLAG_INSERT|a.getBootstrapFlag(),l={view:a,flag:i,options:t,state:On.ViewState.CREATED},this.views[o]=l)}l&&this.requestViewUpdate(l.view,i,t,this.getRenderPriority(l.view),!1)}),this.flush()}renderViewInArea(e,t,r={}){const o=e.cell,s=o.id,i=this.views[s];if(!i)return;let l=0;this.isUpdatable(e)?(l=this.updateView(e,t,r),i.flag=l):i.state===On.ViewState.MOUNTED?(l=this.updateView(e,t,r),i.flag=l):i.state=On.ViewState.WAITING,l&&o.isEdge()&&!(l&e.getFlag(["source","target"]))&&this.queue.queueJob({id:s,priority:Ds.RenderEdge,cb:()=>{this.updateView(e,t,r)}})}removeViews(e){e.forEach(t=>{const r=t.id,o=this.views[r];o&&(this.willRemoveViews[r]=o,delete this.views[r],this.queue.queueJob({id:r,priority:this.getRenderPriority(o.view),cb:()=>{this.removeView(o.view)}}))}),this.flush()}flush(){this.graph.options.async?this.queue.queueFlush():this.queue.queueFlushSync()}flushWaitingViews(){Object.values(this.views).forEach(e=>{if(e&&e.state===On.ViewState.WAITING){const{view:t,flag:r,options:o}=e;this.requestViewUpdate(t,r,o,this.getRenderPriority(t),!1)}}),this.flush()}updateView(e,t,r={}){if(e==null)return 0;if(gn.isCellView(e)){if(t&On.FLAG_REMOVE)return this.removeView(e.cell),0;t&On.FLAG_INSERT&&(this.insertView(e),t^=On.FLAG_INSERT)}return t?e.confirmUpdate(t,r):0}insertView(e){const t=this.views[e.cell.id];if(t){const r=e.cell.getZIndex(),o=this.addZPivot(r);this.container.insertBefore(e.container,o),e.cell.isVisible()||this.toggleVisible(e.cell,!1),t.state=On.ViewState.MOUNTED,this.graph.trigger("view:mounted",{view:e})}}resetViews(){this.willRemoveViews=Object.assign(Object.assign({},this.views),this.willRemoveViews),Object.values(this.willRemoveViews).forEach(e=>{e&&this.removeView(e.view)}),this.views={},this.willRemoveViews={}}removeView(e){const t=e.cell,r=this.willRemoveViews[t.id];r&&e&&(r.view.remove(),delete this.willRemoveViews[t.id],this.graph.trigger("view:unmounted",{view:e}))}toggleVisible(e,t){const r=this.model.getConnectedEdges(e);for(let s=0,i=r.length;so&&(o=l,e-1)}const s=this.container;if(o!==-1/0){const i=t[o];s.insertBefore(r,i.nextSibling)}else s.insertBefore(r,s.firstChild);return r}removeZPivots(){this.zPivots&&Object.values(this.zPivots).forEach(e=>{e&&e.parentNode&&e.parentNode.removeChild(e)}),this.zPivots={}}createCellView(e){const t={graph:this.graph},r=this.graph.options.createCellView;if(r){const s=pt(r,this.graph,e);if(s)return new s(e,t);if(s===null)return null}const o=e.view;if(o!=null&&typeof o=="string"){const s=gn.registry.get(o);return s?new s(e,t):gn.registry.onNotFound(o)}return e.isNode()?new Wr(e,t):e.isEdge()?new Js(e,t):null}getEffectedEdges(e){const t=[],r=e.cell,o=this.model.getConnectedEdges(r);for(let s=0,i=o.length;s{this.views[e].view.dispose()}),this.views={}}}Wue([Ks.dispose()],On.prototype,"dispose",null);(function(n){n.FLAG_INSERT=1<<30,n.FLAG_REMOVE=1<<29,n.FLAG_RENDER=(1<<26)-1})(On||(On={}));(function(n){(function(e){e[e.CREATED=0]="CREATED",e[e.MOUNTED=1]="MOUNTED",e[e.WAITING=2]="WAITING"})(n.ViewState||(n.ViewState={}))})(On||(On={}));var Gue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class R0 extends Hn{constructor(){super(...arguments),this.schedule=new On(this.graph)}requestViewUpdate(e,t,r={}){this.schedule.requestViewUpdate(e,t,r)}isViewMounted(e){return this.schedule.isViewMounted(e)}setRenderArea(e){this.schedule.setRenderArea(e)}findViewByElem(e){if(e==null)return null;const t=this.options.container,r=typeof e=="string"?t.querySelector(e):e instanceof Element?e:e[0];if(r){const o=this.graph.view.findAttr("data-cell-id",r);if(o){const s=this.schedule.views;if(s[o])return s[o].view}}return null}findViewByCell(e){if(e==null)return null;const t=At.isCell(e)?e.id:e,r=this.schedule.views;return r[t]?r[t].view:null}findViewsFromPoint(e){const t={x:e.x,y:e.y};return this.model.getCells().map(r=>this.findViewByCell(r)).filter(r=>r!=null?Vt.getBBox(r.container,{target:this.view.stage}).containsPoint(t):!1)}findEdgeViewsFromPoint(e,t=5){return this.model.getEdges().map(r=>this.findViewByCell(r)).filter(r=>{if(r!=null){const o=r.getClosestPoint(e);if(o)return o.distance(e)<=t}return!1})}findViewsInArea(e,t={}){const r=Ve.create(e);return this.model.getCells().map(o=>this.findViewByCell(o)).filter(o=>{if(o){if(t.nodeOnly&&!o.isNodeView())return!1;const s=Vt.getBBox(o.container,{target:this.view.stage});return s.width===0?s.inflate(1,0):s.height===0&&s.inflate(0,1),t.strict?r.containsRect(s):r.isIntersectWithRect(s)}return!1})}dispose(){this.schedule.dispose()}}Gue([Hn.dispose()],R0.prototype,"dispose",null);var xE=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o{const c=a.opacity!=null&&Number.isFinite(a.opacity)?a.opacity:1;return``}),i=`<${r}>${s.join("")}`,l=Object.assign({id:t},e.attrs);ft.create(i,l).appendTo(this.defs)}return t}marker(e){const{id:t,refX:r,refY:o,markerUnits:s,markerOrient:i,tagName:l,children:a}=e,c=xE(e,["id","refX","refY","markerUnits","markerOrient","tagName","children"]);let u=t;if(u||(u=`marker-${this.cid}-${$m(JSON.stringify(e))}`),!this.isDefined(u)){l!=="path"&&delete c.d;const d=ft.create("marker",{refX:r,refY:o,id:u,overflow:"visible",orient:i??"auto",markerUnits:s||"userSpaceOnUse"},a?a.map(f=>{var{tagName:h}=f,p=xE(f,["tagName"]);return ft.create(`${h}`||"path",Ed(Object.assign(Object.assign({},c),p)))}):[ft.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 iN extends Hn{getClientMatrix(){return jn(this.view.stage.getScreenCTM())}getClientOffset(){const e=this.view.svg.getBoundingClientRect();return new Y(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=Y.create(e,t);return Vt.transformPoint(r,this.graph.matrix())}localToClientPoint(e,t){const r=Y.create(e,t);return Vt.transformPoint(r,this.getClientMatrix())}localToPagePoint(e,t){return(typeof e=="number"?this.localToGraphPoint(e,t):this.localToGraphPoint(e)).translate(this.getPageOffset())}localToGraphRect(e,t,r,o){const s=Ve.create(e,t,r,o);return Vt.transformRectangle(s,this.graph.matrix())}localToClientRect(e,t,r,o){const s=Ve.create(e,t,r,o);return Vt.transformRectangle(s,this.getClientMatrix())}localToPageRect(e,t,r,o){return(typeof e=="number"?this.localToGraphRect(e,t,r,o):this.localToGraphRect(e)).translate(this.getPageOffset())}graphToLocalPoint(e,t){const r=Y.create(e,t);return Vt.transformPoint(r,this.graph.matrix().inverse())}clientToLocalPoint(e,t){const r=Y.create(e,t);return Vt.transformPoint(r,this.getClientMatrix().inverse())}clientToGraphPoint(e,t){const r=Y.create(e,t);return Vt.transformPoint(r,this.graph.matrix().multiply(this.getClientMatrix().inverse()))}pageToLocalPoint(e,t){const o=Y.create(e,t).diff(this.getPageOffset());return this.graphToLocalPoint(o)}graphToLocalRect(e,t,r,o){const s=Ve.create(e,t,r,o);return Vt.transformRectangle(s,this.graph.matrix().inverse())}clientToLocalRect(e,t,r,o){const s=Ve.create(e,t,r,o);return Vt.transformRectangle(s,this.getClientMatrix().inverse())}clientToGraphRect(e,t,r,o){const s=Ve.create(e,t,r,o);return Vt.transformRectangle(s,this.graph.matrix().multiply(this.getClientMatrix().inverse()))}pageToLocalRect(e,t,r,o){const s=Ve.create(e,t,r,o),i=this.getPageOffset();return s.x-=i.x,s.y-=i.y,this.graphToLocalRect(s)}}var que=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class bp extends Hn{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=Ws.registry.get(s);return i==null?Ws.registry.onNotFound(s):(Ws.check(s,i),{name:s,highlighter:i,args:o.args||{}})}getHighlighterId(e,t){return x0(e),t.name+e.id+JSON.stringify(t.args)}unhighlight(e){const t=this.highlights[e];t&&(t.highlighter.unhighlight(t.cellView,t.magnet,t.args),delete this.highlights[e])}dispose(){Object.keys(this.highlights).forEach(e=>this.unhighlight(e)),this.stopListening()}}que([bp.dispose()],bp.prototype,"dispose",null);var Kue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class lN extends Hn{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&&up.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(){up.clear(this.graph.container)}}Kue([Hn.dispose()],lN.prototype,"dispose",null);var Yue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s};class cr extends Ur{get container(){return this.options.container}get[Symbol.toStringTag](){return cr.toStringTag}constructor(e){super(),this.installedPlugins=new Set,this.options=Id.get(e),this.css=new _b(this),this.view=new vs(this),this.defs=new sN(this),this.coord=new iN(this),this.transform=new rN(this),this.highlight=new bp(this),this.grid=new P0(this),this.background=new N0(this),this.options.model?this.model=this.options.model:(this.model=new $o,this.model.graph=this),this.renderer=new R0(this),this.panning=new I0(this),this.mousewheel=new L0(this),this.virtualRender=new oN(this),this.size=new lN(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=>bn.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=>fn.isEdge(r)?r:this.createEdge(r)),t)}removeEdge(e,t={}){return this.model.removeCell(e,t)}createEdge(e){return this.model.createEdge(e)}addCell(e,t={}){return this.model.addCell(e,t),this}removeCell(e,t={}){return this.model.removeCell(e,t)}removeCells(e,t={}){return this.model.removeCells(e,t)}removeConnectedEdges(e,t={}){return this.model.removeConnectedEdges(e,t)}disconnectConnectedEdges(e,t={}){return this.model.disconnectConnectedEdges(e,t),this}hasCell(e){return this.model.has(e)}getCells(){return this.model.getCells()}getCellCount(){return this.model.total()}getNodes(){return this.model.getNodes()}getEdges(){return this.model.getEdges()}getOutgoingEdges(e){return this.model.getOutgoingEdges(e)}getIncomingEdges(e){return this.model.getIncomingEdges(e)}getConnectedEdges(e,t={}){return this.model.getConnectedEdges(e,t)}getRootNodes(){return this.model.getRoots()}getLeafNodes(){return this.model.getLeafs()}isRootNode(e){return this.model.isRoot(e)}isLeafNode(e){return this.model.isLeaf(e)}getNeighbors(e,t={}){return this.model.getNeighbors(e,t)}isNeighbor(e,t,r={}){return this.model.isNeighbor(e,t,r)}getSuccessors(e,t={}){return this.model.getSuccessors(e,t)}isSuccessor(e,t,r={}){return this.model.isSuccessor(e,t,r)}getPredecessors(e,t={}){return this.model.getPredecessors(e,t)}isPredecessor(e,t,r={}){return this.model.isPredecessor(e,t,r)}getCommonAncestor(...e){return this.model.getCommonAncestor(...e)}getSubGraph(e,t={}){return this.model.getSubGraph(e,t)}cloneSubGraph(e,t={}){return this.model.cloneSubGraph(e,t)}cloneCells(e){return this.model.cloneCells(e)}getNodesFromPoint(e,t){return this.model.getNodesFromPoint(e,t)}getNodesInArea(e,t,r,o,s){return this.model.getNodesInArea(e,t,r,o,s)}getNodesUnderNode(e,t={}){return this.model.getNodesUnderNode(e,t)}searchCell(e,t,r={}){return this.model.search(e,t,r),this}getShortestPath(e,t,r={}){return this.model.getShortestPath(e,t,r)}getAllCellsBBox(){return this.model.getAllCellsBBox()}getCellsBBox(e,t={}){return this.model.getCellsBBox(e,t)}startBatch(e,t={}){this.model.startBatch(e,t)}stopBatch(e,t={}){this.model.stopBatch(e,t)}batchUpdate(e,t,r){const o=typeof e=="string"?e:"update",s=typeof e=="string"?t:e,i=typeof t=="function"?r:t;this.startBatch(o,i);const l=s();return this.stopBatch(o,i),l}updateCellId(e,t){return this.model.updateCellId(e,t)}findView(e){return At.isCell(e)?this.findViewByCell(e):this.findViewByElem(e)}findViews(e){return Ve.isRectangleLike(e)?this.findViewsInArea(e):Y.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 Ve.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 Ve.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 Ve.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 Ve.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 Ve.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 Ve.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 Ve.isRectangleLike(e)?this.coord.clientToGraphRect(e):typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof o=="number"?this.coord.clientToGraphRect(e,t,r,o):this.coord.clientToGraphPoint(e,t)}defineFilter(e){return this.defs.filter(e)}defineGradient(e){return this.defs.gradient(e)}defineMarker(e){return this.defs.marker(e)}getGridSize(){return this.grid.getGridSize()}setGridSize(e){return this.grid.setGridSize(e),this}showGrid(){return this.grid.show(),this}hideGrid(){return this.grid.hide(),this}clearGrid(){return this.grid.clear(),this}drawGrid(e){return this.grid.draw(e),this}updateBackground(){return this.background.update(),this}drawBackground(e,t){const r=this.getPlugin("scroller");return r!=null&&(this.options.background==null||!t)?r.drawBackground(e,t):this.background.draw(e),this}clearBackground(e){const t=this.getPlugin("scroller");return t!=null&&(this.options.background==null||!e)?t.clearBackground(e):this.background.clear(),this}enableVirtualRender(){return this.virtualRender.enableVirtualRender(),this}disableVirtualRender(){return this.virtualRender.disableVirtualRender(),this}isMouseWheelEnabled(){return!this.mousewheel.disabled}enableMouseWheel(){return this.mousewheel.enable(),this}disableMouseWheel(){return this.mousewheel.disable(),this}toggleMouseWheel(e){return e==null?this.isMouseWheelEnabled()?this.disableMouseWheel():this.enableMouseWheel():e?this.enableMouseWheel():this.disableMouseWheel(),this}isPannable(){const e=this.getPlugin("scroller");return e?e.isPannable():this.panning.pannable}enablePanning(){const e=this.getPlugin("scroller");return e?e.enablePanning():this.panning.enablePanning(),this}disablePanning(){const e=this.getPlugin("scroller");return e?e.disablePanning():this.panning.disablePanning(),this}togglePanning(e){return e==null?this.isPannable()?this.disablePanning():this.enablePanning():e!==this.isPannable()&&(e?this.enablePanning():this.disablePanning()),this}use(e,...t){return this.installedPlugins.has(e)||(this.installedPlugins.add(e),e.init(this,...t)),this}getPlugin(e){return Array.from(this.installedPlugins).find(t=>t.name===e)}getPlugins(e){return Array.from(this.installedPlugins).filter(t=>e.includes(t.name))}enablePlugins(e){let t=e;Array.isArray(t)||(t=[t]);const r=this.getPlugins(t);return r==null||r.forEach(o=>{var s;(s=o==null?void 0:o.enable)===null||s===void 0||s.call(o)}),this}disablePlugins(e){let t=e;Array.isArray(t)||(t=[t]);const r=this.getPlugins(t);return r==null||r.forEach(o=>{var s;(s=o==null?void 0:o.disable)===null||s===void 0||s.call(o)}),this}isPluginEnabled(e){var t;const r=this.getPlugin(e);return(t=r==null?void 0:r.isEnabled)===null||t===void 0?void 0:t.call(r)}disposePlugins(e){let t=e;Array.isArray(t)||(t=[t]);const r=this.getPlugins(t);return r==null||r.forEach(o=>{o.dispose(),this.installedPlugins.delete(o)}),this}dispose(e=!0){e&&this.model.dispose(),this.css.dispose(),this.defs.dispose(),this.grid.dispose(),this.coord.dispose(),this.transform.dispose(),this.highlight.dispose(),this.background.dispose(),this.mousewheel.dispose(),this.panning.dispose(),this.view.dispose(),this.renderer.dispose(),this.installedPlugins.forEach(t=>{t.dispose()})}}Yue([Ur.dispose()],cr.prototype,"dispose",null);(function(n){n.View=vs,n.Renderer=R0,n.MouseWheel=L0,n.DefsManager=sN,n.GridManager=P0,n.CoordManager=iN,n.TransformManager=rN,n.HighlightManager=bp,n.BackgroundManager=N0,n.PanningManager=I0})(cr||(cr={}));(function(n){n.toStringTag=`X6.${n.name}`;function e(t){if(t==null)return!1;if(t instanceof n)return!0;const r=t[Symbol.toStringTag];return r==null||r===n.toStringTag}n.isGraph=e})(cr||(cr={}));(function(n){function e(t,r){const o=t instanceof HTMLElement?new n({container:t}):new n(t);return r!=null&&o.fromJSON(r),o}n.render=e})(cr||(cr={}));(function(n){n.registerNode=bn.registry.register,n.registerEdge=fn.registry.register,n.registerView=gn.registry.register,n.registerAttr=ms.registry.register,n.registerGrid=Vi.registry.register,n.registerFilter=kc.registry.register,n.registerNodeTool=Ic.registry.register,n.registerEdgeTool=Lc.registry.register,n.registerBackground=Md.registry.register,n.registerHighlighter=Ws.registry.register,n.registerPortLayout=ea.registry.register,n.registerPortLabelLayout=Pc.registry.register,n.registerMarker=el.registry.register,n.registerRouter=Bi.registry.register,n.registerConnector=ta.registry.register,n.registerAnchor=Rc.registry.register,n.registerEdgeAnchor=$c.registry.register,n.registerConnectionPoint=Dc.registry.register})(cr||(cr={}));(function(n){n.unregisterNode=bn.registry.unregister,n.unregisterEdge=fn.registry.unregister,n.unregisterView=gn.registry.unregister,n.unregisterAttr=ms.registry.unregister,n.unregisterGrid=Vi.registry.unregister,n.unregisterFilter=kc.registry.unregister,n.unregisterNodeTool=Ic.registry.unregister,n.unregisterEdgeTool=Lc.registry.unregister,n.unregisterBackground=Md.registry.unregister,n.unregisterHighlighter=Ws.registry.unregister,n.unregisterPortLayout=ea.registry.unregister,n.unregisterPortLabelLayout=Pc.registry.unregister,n.unregisterMarker=el.registry.unregister,n.unregisterRouter=Bi.registry.unregister,n.unregisterConnector=ta.registry.unregister,n.unregisterAnchor=Rc.registry.unregister,n.unregisterEdgeAnchor=$c.registry.unregister,n.unregisterConnectionPoint=Dc.registry.unregister})(cr||(cr={}));var Jue=function(n,e,t,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(s=(o<3?i(s):o>3?i(e,t,s):i(e,t))||s);return o>3&&s&&Object.defineProperty(e,t,s),s},Xue=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);othis.renderHTMLComponent())}renderHTMLComponent(){const r=this.selectors&&this.selectors.foContent;if(r){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)}}Jue([e.dispose()],e.prototype,"dispose",null),n.View=e,function(t){t.action="html",t.config({bootstrap:[t.action],actions:{html:t.action}}),Wr.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({},Yt.getForeignObjectMarkup()),{tagName:"text",selector:"label"}],attrs:{body:{fill:"none",stroke:"none",refWidth:"100%",refHeight:"100%"},fo:{refWidth:"100%",refHeight:"100%"}}}),bn.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=Xue(t,["shape","html","effect","inherit"]);if(!r)throw new Error("should specify shape in config");n.shapeMaps[r]={html:o,effect:s},cr.registerNode(r,Object.assign({inherit:i||"html"},l),!0)}n.register=e})(Fc||(Fc={}));class SE extends bn{}(function(n){function e(t){const r=[],o=Yt.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=cn({},{body:Object.assign({refWidth:null,refHeight:null},o)},t.attrs||{})}}return t}}),bn.registry.register("vue-shape",n,!0)})(SE||(SE={}));var Zue=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);oQe(Fd,{to:t},[Qe(e,{node:r,graph:o})]),provide:()=>({getNode:()=>r,getGraph:()=>o})})))}function ede(n){Rg&&delete yp[n]}function EE(){return Rg}function tde(){return Rg=!0,ge({setup(){return()=>Qe(Re,{},Object.keys(yp).map(n=>Qe(yp[n])))}})}class wp extends Wr{getComponentContainer(){return this.selectors&&this.selectors.foContent}confirmUpdate(e){const t=super.confirmUpdate(e);return this.handleAction(t,wp.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}=aN[t.shape];o&&(EE()?Que(this.targetId(),o,e,t,r):(this.vm=Xb({render(){return Qe(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 EE()&&ede(this.targetId()),this.unmountVueComponent(),super.unmount(),this}}(function(n){n.action="vue",n.config({bootstrap:[n.action],actions:{component:n.action}}),Wr.registry.register("vue-shape-view",n,!0)})(wp||(wp={}));const nde={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},rde=F("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"},null,-1),ode=[rde];function sde(n,e){return A(),q("svg",nde,[...ode])}const ide={name:"ep-delete",render:sde},lde={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},ade=F("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"},null,-1),cde=F("path",{fill:"currentColor",d:"m469.952 554.24l52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"},null,-1),ude=[ade,cde];function dde(n,e){return A(),q("svg",lde,[...ude])}const fde={name:"ep-edit",render:dde},hde={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},pde=F("path",{fill:"currentColor",d:"M280.768 753.728L691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"},null,-1),gde=[pde];function mde(n,e){return A(),q("svg",hde,[...gde])}const vde={name:"ep-finished",render:mde},bde={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},yde=F("path",{fill:"currentColor",d:"m64 448l832-320l-128 704l-446.08-243.328L832 192L242.816 545.472zm256 512V657.024L512 768z"},null,-1),wde=[yde];function Cde(n,e){return A(),q("svg",bde,[...wde])}const xde={name:"ep-promotion",render:Cde},Sde={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},Ede=F("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0a30.592 30.592 0 0 1 0-42.752L764.736 512L452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0a30.592 30.592 0 0 1 0-42.752L508.736 512L196.864 192a30.592 30.592 0 0 1 0-42.688"},null,-1),_de=[Ede];function Tde(n,e){return A(),q("svg",Sde,[..._de])}const _E={name:"ep-d-arrow-right",render:Tde},Ode={class:"text-large font-600 mr-3"},Mde={class:"flex items-center"},Ade=["id","onClick"],kde=["onClick"],Pde={class:"nodesBox"},Nde=["onDragend"],Ide={class:"dialog-footer"},Lde={style:{flex:"auto"}},Rde={__name:"SubFlow",setup(n){const{t:e,tm:t,rt:r}=on(),o=Qs(),s=yo(),i=o.params.robotId,l=tde(),a=V([]),c=V([]);function u(){const Ee=new Array;for(let $=0;$-1;ot(async()=>{const Ee=document.getElementById("canvas");h=new cr({container:Ee,width:Ee.offsetWidth-10,height:Ee.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:I,x:re,y:he,node:pe,view:Se})=>{pe.setTools([{name:"button-remove",args:{x:0,y:0}}])}),h.on("node:mouseleave",({e:I,x:re,y:he,node:pe,view:Se})=>{pe.hasTool("button-remove")&&pe.removeTool("button-remove")}),h.on("node:dblclick",({e:I,x:re,y:he,node:pe,view:Se})=>{pe.setData({currentTime:Date.now()}),p=!0}),h.on("edge:click",({e:I,x:re,y:he,edge:pe,view:Se})=>{pe.setTools(["button-remove"])});const $=await et("GET","subflow",{robotId:i,mainFlowId:g,data:""},null,null);S(m?{status:200,data:$}:$),it(()=>{k(0)})}),bs(()=>{h!=null&&h.dispose()});function w(Ee,$,I){const re=h.addNode({shape:I.type,x:Ee,y:$});I.cnt++,re.setData({nodeType:I.type,nodeCnt:I.cnt}),p=!0}function b(Ee,$){const I=h.pageToLocal(Ee.pageX,Ee.pageY);w(I.x,I.y,$)}function y(Ee){Ee.preventDefault()}function S(Ee){Ee&&Ee.status==200&&Ee.data&&(a.value=Ee.data)}const E=V(!1),T=V("");async function M(){await L();const Ee=await et("POST","subflow/new",{robotId:i,mainFlowId:g,data:T.value},null,null);if(Ee.status==200){const $=a.value.length;S(Ee),it(()=>{k($),T.value=""})}}function O(Ee){a.value.length<2?Zt.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 et("DELETE","subflow",{robotId:i,mainFlowId:g,data:f},null,null)).status==200&&(f=-1,a.value.splice(Ee,1),k(0)),Zt({type:"success",message:e("lang.common.deleted")})}).catch(()=>{})}async function k(Ee){Ee!=f&&(p?vr.confirm(e("lang.flow.changeSaveTip"),"Warning",{confirmButtonText:e("lang.common.save"),cancelButtonText:e("lang.common.cancel"),type:"warning"}).then(async()=>{await L(),P(Ee),p=!1}).catch(()=>{}):P(Ee))}function P(Ee){const $=document.getElementById(j(f));$&&($.style.backgroundColor="white",$.style.color="black"),f=Ee;const I=document.getElementById(j(f));if(I.style.backgroundColor="rgb(245,246,249)",I.style.color="rgb(131,88,179)",a.value[f].canvas){const he=JSON.parse(a.value[f].canvas).cells;h.fromJSON(he)}else h.clearCells()}async function L(){R.value=!0,K.value=!0;const Ee=h.toJSON();Ee.cells.forEach(function(Se,_e,D){Se.shape!="edge"&&(Se.data.nodeId=Se.id)},d);const I=a.value[f],re=[];for(let Se=0;Se0&&!Me.value)return;Me.value&&ne(Me.value,"userText"),Ce||(Ce=Oe());const Ee={robotId:i,mainFlowId:g,sessionId:Ce,userInputResult:fe.value.length==0||Me.value?"Successful":"Timeout",userInput:Me.value,importVariables:[]},$=await et("POST","flow/answer",null,null,Ee);if($.status==200){const I=$.data,re=I.answers;for(let he=0;he{Q.value.setScrollTop(de.value.clientHeight)})}else Bf({title:e("lang.common.errTip"),message:Qe("b",{style:"color: teal"},$.err.message),type:"error"});me.value.focus()}async function X(){fe.value.splice(0,fe.value.length),Me.value="",Ce="",U.value=!1,await ie()}const me=V(),Pe=async()=>{ee.value=!0,await ie()};return(Ee,$)=>{const I=dt,re=qy,he=Tn,pe=xs,Se=LW,_e=IW,D=Lr,B=RW,J=NW,ce=yn,ke=nr,se=tr,te=fl,ue=rg,qe=Fy,ye=Cs,H=uY;return A(),q("div",null,[C(J,null,{default:_(()=>[C(Se,{height:"40px"},{default:_(()=>[C(pe,{title:x(e)("lang.common.back"),onBack:le},{content:_(()=>[F("span",Ode,oe(x(v)),1)]),extra:_(()=>[F("div",Mde,[$e(C(re,null,{default:_(()=>[G(oe(Ee.$tm("lang.flow.steps")[0])+" ",1),C(I,{size:20},{default:_(()=>[C(x(_E))]),_:1})]),_:1},512),[[Ye,m]]),$e(C(he,{type:"primary",class:"ml-2",onClick:L,loading:K.value,size:"large"},{default:_(()=>[C(I,{size:20},{default:_(()=>[C(x(fde))]),_:1}),G(oe(Ee.$t("lang.flow.save")),1)]),_:1},8,["loading"]),[[Ye,!m]]),C(he,{type:"success",onClick:N,loading:W.value,size:"large"},{default:_(()=>[C(I,{size:20},{default:_(()=>[C(x(vde))]),_:1}),G(oe(Ee.$t("lang.flow.pub")),1)]),_:1},8,["loading"]),$e(C(re,null,{default:_(()=>[G(oe(Ee.$tm("lang.flow.steps")[1])+" ",1),C(I,null,{default:_(()=>[C(x(_E))]),_:1})]),_:1},512),[[Ye,m]]),C(he,{color:"#626aef",class:"ml-2",onClick:Pe,size:"large"},{default:_(()=>[C(I,{size:20},{default:_(()=>[C(x(xde))]),_:1}),G(" "+oe(Ee.$t("lang.flow.test")),1)]),_:1})])]),_:1},8,["title"])]),_:1}),C(J,null,{default:_(()=>[C(_e,{width:"150px"},{default:_(()=>[F("div",{class:"newSubFlowBtn",onClick:$[0]||($[0]=xe=>E.value=!0)},[C(I,{size:"16px"},{default:_(()=>[C(x(Vu))]),_:1}),G(" "+oe(Ee.$t("lang.flow.addSubFlow")),1)]),(A(!0),q(Re,null,St(a.value,(xe,Be)=>(A(),q("div",{id:j(Be),key:xe.label,onClick:Ie=>k(Be),class:"subFlowBtn"},[G(oe(xe.name)+" ",1),F("span",{onClick:Ie=>O(Be)},[C(I,null,{default:_(()=>[C(x(ide))]),_:1})],8,kde)],8,Ade))),128))]),_:1}),$e((A(),ve(B,null,{default:_(()=>[F("div",Pde,[(A(),q(Re,null,St(d,xe=>F("div",{key:xe.type,class:Z(["node-btn",xe.type]),draggable:"true",onDragend:Be=>b(Be,xe)},[C(D,{class:"box-item",effect:"dark",content:xe.desc,placement:"right-start"},{default:_(()=>[F("span",null,oe(xe.name),1)]),_:2},1032,["content"])],42,Nde)),64))]),F("div",{id:"canvas",onDragover:y,style:{border:"1px #000 solid"}},null,32),C(x(l))]),_:1})),[[H,R.value]])]),_:1})]),_:1}),C(te,{modelValue:E.value,"onUpdate:modelValue":$[4]||($[4]=xe=>E.value=xe),title:Ee.$t("lang.flow.addSubFlow")},{footer:_(()=>[F("span",Ide,[C(he,{type:"primary",onClick:$[2]||($[2]=xe=>{E.value=!1,M()})},{default:_(()=>[G(oe(Ee.$t("lang.common.add")),1)]),_:1}),C(he,{onClick:$[3]||($[3]=xe=>E.value=!1)},{default:_(()=>[G(oe(Ee.$t("lang.common.cancel")),1)]),_:1})])]),default:_(()=>[C(se,{model:Ee.form},{default:_(()=>[C(ke,{label:x(e)("lang.flow.form.name"),"label-width":"110px"},{default:_(()=>[C(ce,{modelValue:T.value,"onUpdate:modelValue":$[1]||($[1]=xe=>T.value=xe),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),C(ye,{modelValue:ee.value,"onUpdate:modelValue":$[7]||($[7]=xe=>ee.value=xe),direction:"rtl"},{header:_(()=>[F("b",null,oe(Ee.$t("lang.flow.test")),1)]),default:_(()=>[C(ue,{ref_key:"chatScrollbarRef",ref:Q,height:"100%",always:""},{default:_(()=>[F("div",{ref_key:"dryrunChatRecords",ref:de},[(A(!0),q(Re,null,St(fe.value,xe=>(A(),q("div",{key:xe.id,class:Z(xe.cssClass)},[C(re,null,{default:_(()=>[G(oe(xe.text),1)]),_:2},1024)],2))),128))],512)]),_:1},512)]),footer:_(()=>[F("div",Lde,[C(ce,{ref_key:"dryrunInput",ref:me,disabled:U.value,modelValue:Me.value,"onUpdate:modelValue":$[5]||($[5]=xe=>Me.value=xe),placeholder:"",style:{width:"200px"},onKeypress:$[6]||($[6]=xe=>{xe.keyCode==13&&ie()})},null,8,["disabled","modelValue"]),C(qe,null,{default:_(()=>[C(he,{type:"primary",disabled:U.value,onClick:ie},{default:_(()=>[G(oe(Ee.$t("lang.flow.send")),1)]),_:1},8,["disabled"]),C(he,{onClick:X},{default:_(()=>[G(oe(Ee.$t("lang.flow.reset")),1)]),_:1})]),_:1})])]),_:1},8,["modelValue"])])}}},TE=wo(Rde,[["__scopeId","data-v-c1afb5d2"]]),$de={class:"text-large font-600 mr-3"},Dde={class:"flex items-center"},Vde={class:"dialog-footer"},Bde="70px",Fde={__name:"IntentList",setup(n){const{t:e,tm:t,rt:r}=on(),o=Qs(),s=yo(),i=V([]),l=V(!1),a=V(""),c=o.params.robotId;ot(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){vr.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(),Zt({type:"success",message:S("lang.common.deleted")})):Zt({type:"error",message:S.err.message})}).catch(()=>{})}const g=V(""),v=V("");async function m(){if(g.value==null||g.value.length<1)return;const w={robotId:c,id:"",data:g.value},b=await et("POST","intent/detect",null,null,w);b.status==200&&(b.data==null?v.value="No intention detected.":v.value="The detected intention is: "+b.data)}return(w,b)=>{const y=Tn,S=xs,E=nf,T=tf,M=cg,O=yn,k=nr,P=tr,L=fl;return A(),q(Re,null,[C(S,{title:x(e)("lang.common.back"),onBack:u},{content:_(()=>[F("span",$de,oe(w.$t("lang.intent.title")),1)]),extra:_(()=>[F("div",Dde,[C(y,{type:"primary",class:"ml-2",onClick:b[0]||(b[0]=j=>l.value=!0)},{default:_(()=>[G(oe(w.$t("lang.intent.add")),1)]),_:1})])]),_:1},8,["title"]),C(T,{data:i.value,stripe:"",style:{width:"100%"}},{default:_(()=>[C(E,{prop:"name",label:x(t)("lang.intent.table")[0],width:"180"},null,8,["label"]),C(E,{prop:"keyword_num",label:x(t)("lang.intent.table")[1],width:"180"},null,8,["label"]),C(E,{prop:"regex_num",label:x(t)("lang.intent.table")[2],width:"180"},null,8,["label"]),C(E,{prop:"phrase_num",label:x(t)("lang.intent.table")[3],width:"230"},null,8,["label"]),C(E,{fixed:"right",label:x(t)("lang.intent.table")[4],width:"120"},{default:_(j=>[C(y,{link:"",type:"primary",size:"small",onClick:le=>h(j.$index,j.row)},{default:_(()=>[G(oe(w.$t("lang.common.edit")),1)]),_:2},1032,["onClick"]),C(y,{link:"",type:"primary",size:"small",onClick:le=>p(j.$index,j.row)},{default:_(()=>[G(oe(w.$t("lang.common.del")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),C(M),C(O,{modelValue:g.value,"onUpdate:modelValue":b[1]||(b[1]=j=>g.value=j),style:{width:"240px"},placeholder:"Please input some texts",onChange:m},null,8,["modelValue"]),C(y,{type:"primary",onClick:m},{default:_(()=>[G("Test intent detection")]),_:1}),F("div",null,oe(v.value),1),C(L,{modelValue:l.value,"onUpdate:modelValue":b[5]||(b[5]=j=>l.value=j),title:x(e)("lang.intent.form.title")},{footer:_(()=>[F("span",Vde,[C(y,{type:"primary",onClick:b[3]||(b[3]=j=>{l.value=!1,f()})},{default:_(()=>[G(oe(w.$t("lang.common.add")),1)]),_:1}),C(y,{onClick:b[4]||(b[4]=j=>l.value=!1)},{default:_(()=>[G(oe(w.$t("lang.common.cancel")),1)]),_:1})])]),default:_(()=>[C(P,{model:w.form},{default:_(()=>[C(k,{label:x(e)("lang.intent.form.name"),"label-width":Bde},{default:_(()=>[C(O,{modelValue:a.value,"onUpdate:modelValue":b[2]||(b[2]=j=>a.value=j),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["modelValue","title"])],64)}}},zde={class:"text-large font-600 mr-3"},jde=F("b",null,"local model files were missing",-1),Hde=F("b",null,"api-key of OpenAI is empty",-1),Ude={__name:"IntentDetail",setup(n){const{t:e,tm:t,rt:r}=on(),o=Qs(),s=yo(),i=o.query.robotId,l=yt({keywords:[],regexes:[],phrases:[]}),a={robotId:"",id:"",data:""};ot(async()=>{a.robotId=i,a.id=o.query.id;let W=await et("GET","intent/detail",a,null,null);W.status==200&&W.data&&(l.keywords=W.data.keywords,l.regexes=W.data.regexes,l.phrases=W.data.phrases.map((U,Q,de)=>U.phrase)),W=await et("GET","management/settings/model/check/embedding",{robotId:i},null,null),E.value=W==null||W.status==null||W.status!=200});const c=V(""),u=V(!1),d=V(),f=()=>{u.value=!0,it(()=>{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(W){vr.confirm(W+" will be deleted permanently. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const U=l.keywords.indexOf(W);a.id=o.query.id,a.data=U.toString(),(await et("DELETE","intent/keyword",null,null,a)).status==200&&(l.keywords.splice(U,1),Zt({type:"success",message:"Delete completed"}))}).catch(()=>{})}const g=V(""),v=V(!1),m=V(),w=()=>{v.value=!0,it(()=>{m.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)),v.value=!1,g.value=""}async function y(W){vr.confirm(W+" will be deleted permanently. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const U=l.regexes.indexOf(W);a.id=o.query.id,a.data=U.toString(),(await et("DELETE","intent/regex",null,null,a)).status==200&&(l.regexes.splice(U,1),Zt({type:"success",message:"Delete completed"}))}).catch(()=>{})}const S=V(""),E=V(!0),T=V(!1),M=V(),O=V(""),k=V(!1),P=V(!1),L=()=>{T.value=!0,it(()=>{M.value.focus()})};async function j(){if(S.value){a.id=o.query.id,a.data=S.value;const W=await et("POST","intent/phrase",{robotId:i,id:a.id,data:o.query.idx},null,a);W.status==200?l.phrases.push(S.value):(O.value="Added similar sentence failed: "+W.err.message,k.value=!0)}T.value=!1,S.value=""}async function le(W){vr.confirm(W+" will be deleted permanently. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{const U=l.phrases.indexOf(W);a.id=o.query.id,a.data=U.toString(),(await et("DELETE","intent/phrase",null,null,a)).status==200&&(l.phrases.splice(U,1),Zt({type:"success",message:"Delete completed"}))}).catch(()=>{})}const N=async()=>{const W=await et("GET","management/settings",{robotId:i},null,null);if(W.status==200&&W.data&&W.data.sentenceEmbeddingProvider.provider.id=="OpenAI"){vr.confirm("The sentence embedding providor is OpenAI, this will incur some fees. Continue?","Warning",{confirmButtonText:"Regenerate all",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{R()}).catch(()=>{});return}R()},R=async()=>{P.value=!0,et("GET","intent/phrase/regenerate-all",{robotId:i,id:a.id,data:""},null,null).then(W=>P.value=!1)},K=()=>{s.push({name:"intents",params:{robotId:i}})};return(W,U)=>{const Q=xs,de=aM,ee=yn,Me=Tn,fe=at("router-link"),Ce=cg,Oe=Ly;return A(),q(Re,null,[C(Q,{title:x(e)("lang.common.back"),onBack:K},{content:_(()=>[F("span",zde,oe(W.$t("lang.intent.detail.edit"))+": "+oe(x(o).query.name),1)]),_:1},8,["title"]),F("h3",null,oe(W.$t("lang.intent.detail.kw")),1),(A(!0),q(Re,null,St(l.keywords,ne=>(A(),ve(de,{type:"info",key:ne,class:"mx-1",closable:"","disable-transitions":!1,onClose:ie=>p(ne)},{default:_(()=>[G(oe(ne),1)]),_:2},1032,["onClose"]))),128)),u.value?(A(),ve(ee,{key:0,ref_key:"keywordInputRef",ref:d,modelValue:c.value,"onUpdate:modelValue":U[0]||(U[0]=ne=>c.value=ne),class:"ml-1 w-20",size:"small",onKeyup:ir(h,["enter"]),onBlur:h},null,8,["modelValue"])):(A(),ve(Me,{key:1,class:"button-new-tag ml-1",size:"small",onClick:f},{default:_(()=>[G(" + "+oe(W.$t("lang.intent.detail.addKw")),1)]),_:1})),F("h3",null,oe(W.$t("lang.intent.detail.re")),1),(A(!0),q(Re,null,St(l.regexes,ne=>(A(),ve(de,{type:"info",key:ne,class:"mx-1",closable:"","disable-transitions":!1,onClose:ie=>y(ne)},{default:_(()=>[G(oe(ne),1)]),_:2},1032,["onClose"]))),128)),v.value?(A(),ve(ee,{key:2,ref_key:"regexInputRef",ref:m,modelValue:g.value,"onUpdate:modelValue":U[1]||(U[1]=ne=>g.value=ne),class:"ml-1 w-20",size:"small",onKeyup:ir(b,["enter"]),onBlur:b},null,8,["modelValue"])):(A(),ve(Me,{key:3,class:"button-new-tag ml-1",size:"small",onClick:w},{default:_(()=>[G(" + "+oe(W.$t("lang.intent.detail.addRe")),1)]),_:1})),F("h3",null,oe(W.$t("lang.intent.detail.sp")),1),(A(!0),q(Re,null,St(l.phrases,ne=>(A(),ve(de,{type:"info",key:ne,class:"mx-1",closable:"","disable-transitions":!1,onClose:ie=>le(ne)},{default:_(()=>[G(oe(ne),1)]),_:2},1032,["onClose"]))),128)),T.value?(A(),ve(ee,{key:4,ref_key:"phraseInputRef",ref:M,modelValue:S.value,"onUpdate:modelValue":U[2]||(U[2]=ne=>S.value=ne),class:"ml-1 w-20",size:"small",onKeyup:ir(j,["enter"]),onBlur:j},null,8,["modelValue"])):(A(),ve(Me,{key:5,class:"button-new-tag ml-1",size:"small",onClick:L,disabled:E.value},{default:_(()=>[G(" + "+oe(W.$t("lang.intent.detail.addSp")),1)]),_:1},8,["disabled"])),$e(F("div",null,[G(" This feature was disabled because "),jde,G(" or "),Hde,G(", please goto "),C(fe,{to:{name:"settings",params:{robotId:x(i)}}},{default:_(()=>[G("settings")]),_:1},8,["to"]),G(" and select one model first. ")],512),[[Ye,E.value]]),C(Ce),$e(C(Oe,{title:O.value,type:"error",description:"But don't worry, maybe you switched different embedding provider caused this. You can press 'Regenerate all similar sentences.' button below to fix this issue.","show-icon":""},null,8,["title"]),[[Ye,k.value]]),$e(F("div",null,[C(Me,{type:"warning",plain:"",loading:P.value,onClick:N},{default:_(()=>[G(" Regenerate all similar sentences. ")]),_:1},8,["loading"])],512),[[Ye,!E.value]])],64)}}},Wde={class:"text-large font-600 mr-3"},Gde={class:"flex items-center"},qde=F("br",null,null,-1),Kde=["checked"],Yde=F("label",{for:"_cacheEnabled_"},"Enable",-1),Jde={key:0},Xde={key:1},Zde={class:"demo-drawer__footer"},Ns="160px",Qde={__name:"Variable",setup(n){const{t:e,tm:t,rt:r}=on(),o=Qs(),s=yo(),i=o.params.robotId,l=yt({varName:"",varType:"",varValueSource:"",varConstantValue:"",varAssociateData:"",obtainValueExpressionType:"None",obtainValueExpression:"",cacheEnabled:!0}),a=[{label:t("lang.var.types")[0],value:"Str"},{label:t("lang.var.types")[1],value:"Num"}],c=new Map;a.forEach(function(O,k,P){this.set(O.value,O.label)},c);const u=[{label:t("lang.var.sources")[0],value:"Import",disabled:!1},{label:t("lang.var.sources")[1],value:"Collect",disabled:!1},{label:"User input",value:"UserInput",disabled:!1},{label:"Constant value",value:"Constant",disabled:!1},{label:t("lang.var.sources")[2],value:"ExternalHttp",disabled:!1}],d=new Map;u.forEach(function(O,k,P){this.set(O.value,O.label)},d);const f=[{label:"JSON Pointer",value:"JsonPointer",disabled:!1},{label:"Html Scrape",value:"HtmlScrape",disabled:!1}],h=V(!1),p=V([]),g=V([]);async function v(){const O=await et("GET","variable",{robotId:i},null,null);m(O)}ot(async()=>{const O=await et("GET","external/http",{robotId:i},null,null);O&&O.status==200&&(g.value=O.data==null?[]:O.data),await v()});const m=O=>{O&&O.status==200&&(p.value=O.data==null?[]:O.data,p.value.forEach(function(k,P,L){k.varTypeT=c.get(k.varType),k.varValueSourceT=d.get(k.varValueSource)}))},w=()=>{s.push({name:"robotDetail",params:{robotId:i}})},b=()=>{l.varName="",l.varType="",l.varValueSource="",l.constantValue="",l.externalAssociateId="",l.obtainValueExpressionType="None",l.obtainValueExpression="",l.cacheEnabled=!1,E()},y=(O,k)=>{Zn(k,l),E()},S=async(O,k)=>{vr.confirm(k.varName+" will be deleted permanently. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{Zn(k,l),(await et("DELETE","variable",{robotId:i},null,l)).status==200&&(await v(),Zt({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 v(),T()}return(O,k)=>{const P=Tn,L=xs,j=nf,le=tf,N=yn,R=nr,K=Es,W=Ss,U=at("router-link"),Q=tr,de=Cs;return A(),q(Re,null,[C(L,{title:x(e)("lang.common.back"),onBack:w},{content:_(()=>[F("span",Wde,oe(O.$t("lang.var.title")),1)]),extra:_(()=>[F("div",Gde,[C(P,{type:"primary",class:"ml-2",onClick:k[0]||(k[0]=ee=>b())},{default:_(()=>[G(oe(O.$t("lang.var.add")),1)]),_:1})])]),_:1},8,["title"]),C(le,{data:p.value,stripe:"",style:{width:"100%"}},{default:_(()=>[C(j,{prop:"varName",label:x(t)("lang.var.table")[0],width:"300"},null,8,["label"]),C(j,{prop:"varTypeT",label:x(t)("lang.var.table")[1],width:"180"},null,8,["label"]),C(j,{prop:"varValueSourceT",label:x(t)("lang.var.table")[2],width:"200"},null,8,["label"]),C(j,{fixed:"right",label:x(t)("lang.var.table")[3],width:"120"},{default:_(ee=>[C(P,{link:"",type:"primary",size:"small",onClick:Me=>y(ee.$index,ee.row)},{default:_(()=>[G(oe(O.$t("lang.common.edit")),1)]),_:2},1032,["onClick"]),C(P,{link:"",type:"primary",size:"small",onClick:Me=>S(ee.$index,ee.row)},{default:_(()=>[G(oe(O.$t("lang.common.del")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),C(de,{modelValue:h.value,"onUpdate:modelValue":k[11]||(k[11]=ee=>h.value=ee),title:O.$t("lang.var.form.title"),direction:"rtl",size:"50%"},{default:_(()=>[C(Q,{model:O.nodeData},{default:_(()=>[C(R,{label:O.$t("lang.var.form.name"),"label-width":Ns},{default:_(()=>[C(N,{modelValue:l.varName,"onUpdate:modelValue":k[1]||(k[1]=ee=>l.varName=ee),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),C(R,{label:O.$t("lang.var.form.type"),"label-width":Ns},{default:_(()=>[C(W,{modelValue:l.varType,"onUpdate:modelValue":k[2]||(k[2]=ee=>l.varType=ee),placeholder:O.$t("lang.var.form.choose1")},{default:_(()=>[(A(),q(Re,null,St(a,ee=>C(K,{key:ee.label,label:ee.label,value:ee.value,disabled:ee.disabled},null,8,["label","value","disabled"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),C(R,{label:O.$t("lang.var.form.source"),"label-width":Ns},{default:_(()=>[C(W,{modelValue:l.varValueSource,"onUpdate:modelValue":k[3]||(k[3]=ee=>l.varValueSource=ee),placeholder:O.$t("lang.var.form.choose2")},{default:_(()=>[(A(),q(Re,null,St(u,ee=>C(K,{key:ee.label,label:ee.label,value:ee.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),l.varValueSource=="Constant"?(A(),ve(R,{key:0,label:"Constant value","label-width":Ns},{default:_(()=>[C(N,{modelValue:l.varConstantValue,"onUpdate:modelValue":k[4]||(k[4]=ee=>l.varConstantValue=ee),autocomplete:"on"},null,8,["modelValue"])]),_:1})):be("",!0),l.varValueSource=="ExternalHttp"?(A(),ve(R,{key:1,label:"HTTP API","label-width":Ns},{default:_(()=>[C(W,{modelValue:l.varAssociateData,"onUpdate:modelValue":k[5]||(k[5]=ee=>l.varAssociateData=ee),placeholder:"Choose a HTTP API"},{default:_(()=>[(A(!0),q(Re,null,St(g.value,ee=>(A(),ve(K,{key:ee.id,label:ee.name,value:ee.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),qde,C(U,{to:{name:"externalHttpApiDetail",params:{robotId:x(i),id:"new"}}},{default:_(()=>[G("Add new HTTP API")]),_:1},8,["to"])]),_:1})):be("",!0),l.varValueSource=="ExternalHttp"?(A(),ve(R,{key:2,label:"Value expression type","label-width":Ns},{default:_(()=>[C(W,{modelValue:l.obtainValueExpressionType,"onUpdate:modelValue":k[6]||(k[6]=ee=>l.obtainValueExpressionType=ee),placeholder:"Value expression type"},{default:_(()=>[(A(),q(Re,null,St(f,ee=>C(K,{key:ee.label,label:ee.label,value:ee.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})):be("",!0),l.varValueSource=="ExternalHttp"?(A(),ve(R,{key:3,label:"Obtain value expression","label-width":Ns},{default:_(()=>[C(N,{modelValue:l.obtainValueExpression,"onUpdate:modelValue":k[7]||(k[7]=ee=>l.obtainValueExpression=ee),autocomplete:"on",placeholder:l.obtainValueExpressionType=="JsonPointer"?"/data/book/name":"CSS selector syntax like: h1.foo div#bar"},null,8,["modelValue","placeholder"])]),_:1})):be("",!0),l.varValueSource=="ExternalHttp"?(A(),ve(R,{key:4,label:"Cache value","label-width":Ns},{default:_(()=>[$e(F("input",{type:"checkbox",id:"_cacheEnabled_","onUpdate:modelValue":k[8]||(k[8]=ee=>l.cacheEnabled=ee),checked:l.cacheEnabled},null,8,Kde),[[Gi,l.cacheEnabled]]),Yde]),_:1})):be("",!0),l.varValueSource=="ExternalHttp"?(A(),ve(R,{key:5,label:"","label-width":Ns},{default:_(()=>[l.cacheEnabled?(A(),q("span",Jde,"After requesting once, the variable value will be stored in the cache and subsequently read from the cache.")):be("",!0),l.cacheEnabled?be("",!0):(A(),q("span",Xde,"HTTP API will be requested every time"))]),_:1})):be("",!0)]),_:1},8,["model"]),F("div",Zde,[C(P,{type:"primary",loading:O.loading,onClick:k[9]||(k[9]=ee=>M())},{default:_(()=>[G(oe(O.$t("lang.common.save")),1)]),_:1},8,["loading"]),C(P,{onClick:k[10]||(k[10]=ee=>T())},{default:_(()=>[G(oe(O.$t("lang.common.cancel")),1)]),_:1})])]),_:1},8,["modelValue","title"])],64)}}},efe={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},tfe=F("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8l-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0"},null,-1),nfe=[tfe];function rfe(n,e){return A(),q("svg",efe,[...nfe])}const Mi={name:"ep-arrow-right-bold",render:rfe},ofe={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},sfe=F("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088l-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36l-116.224-25.088l-65.28 113.152l79.68 88.192l-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136l-79.808 88.192l65.344 113.152l116.224-25.024l22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152l24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296l116.288 25.024l65.28-113.152l-79.744-88.192l1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136l79.808-88.128l-65.344-113.152l-116.288 24.96l-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384a192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256a128 128 0 0 0 0-256"},null,-1),ife=[sfe];function lfe(n,e){return A(),q("svg",ofe,[...ife])}const Tb={name:"ep-setting",render:lfe},afe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},cfe=F("g",{fill:"none",stroke:"currentColor","stroke-width":"1.5"},[F("path",{d:"M3 10c0-3.771 0-5.657 1.172-6.828C5.343 2 7.229 2 11 2h2c3.771 0 5.657 0 6.828 1.172C21 4.343 21 6.229 21 10v4c0 3.771 0 5.657-1.172 6.828C18.657 22 16.771 22 13 22h-2c-3.771 0-5.657 0-6.828-1.172C3 19.657 3 17.771 3 14z"}),F("path",{"stroke-linecap":"round",d:"M8 12h8M8 8h8m-8 8h5"})],-1),ufe=[cfe];function dfe(n,e){return A(),q("svg",afe,[...ufe])}const cN={name:"solar-document-text-linear",render:dfe},ffe={viewBox:"0 0 16 16",width:"1.2em",height:"1.2em"},hfe=F("g",{fill:"currentColor","fill-rule":"evenodd"},[F("path",{d:"M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"}),F("path",{d:"M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"})],-1),pfe=[hfe];function gfe(n,e){return A(),q("svg",ffe,[...pfe])}const uN={name:"bi-box-arrow-up-right",render:gfe},mfe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},vfe=F("path",{fill:"currentColor",d:"M13.5 2c0 .444-.193.843-.5 1.118V5h5a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h5V3.118A1.5 1.5 0 1 1 13.5 2M6 7a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-7zm-4 3H0v6h2zm20 0h2v6h-2zM9 14.5a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3m6 0a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3"},null,-1),bfe=[vfe];function yfe(n,e){return A(),q("svg",mfe,[...bfe])}const wfe={name:"ri-robot-2-line",render:yfe},Cfe="/assets/outbound-bot-EmsLuWRN.png",xfe="/assets/inbound-bot-PJJg_rST.png",Sfe="/assets/text-bot-CWb_Poym.png",ii=n=>(Dd("data-v-4145b158"),n=n(),Vd(),n),Efe=ii(()=>F("span",{class:"header"}," Workspace ",-1)),_fe=ii(()=>F("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},[F("path",{d:"M256 504c137 0 248-111 248-248S393 8 256 8S8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256S145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z",fill:"currentColor"})],-1)),Tfe={style:{margin:"0",padding:"0"}},Ofe=["id"],Mfe=ii(()=>F("a",{href:"https://github.com/dialogflowchatbot/dialogflow/releases"},"Go to download",-1)),Afe={style:{"margin-left":"50px"}},kfe=ii(()=>F("h1",null,null,-1)),Pfe={class:"title"},Nfe={class:"description"},Ife={class:"title"},Lfe={href:"https://dialogflowchatbot.github.io/docs",target:"_blank"},Rfe={class:"description"},$fe={class:"text-center"},Dfe=ii(()=>F("br",null,null,-1)),Vfe=ii(()=>F("a",{href:"https://dialogflowchatbot.github.io/",target:"_blank"},"https://dialogflowchatbot.github.io/",-1)),Bfe=ii(()=>F("br",null,null,-1)),Ffe=ii(()=>F("a",{href:"https://github.com/dialogflowchatbot/dialogflow/discussions",target:"_blank"},"discussion",-1)),zfe=ii(()=>F("div",{class:"text-center"},[G(" Icons were created by "),F("a",{href:"https://www.flaticon.com/",target:"_blank"},"Flaticon")],-1)),OE="90px",jfe={__name:"Home",setup(n){on();const e=yo(),t=V(""),r=V(0),o=V(!1),s=V(""),i=yt([]),l=V(!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),Zn(w.data.changelog,i),r.value=1):r.value=2:r.value=3,o.value=!1},c=()=>{e.push("/settings")},u=yt([]),d=yt({robotId:"",robotName:"",robotType:""});ot(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:FM(b)}})}const v=w=>w=="OutboundCallBot"?Cfe:w=="InboundCallBot"?xfe:w=="TextBot"?Sfe:"",m=w=>w=="OutboundCallBot"?"Telephone outbound bot":w=="InboundCallBot"?"Telephone incoming bot":w=="TextBot"?"Text chat bot":"";return(w,b)=>{const y=dt,S=Tn,E=ag,T=lg,M=Oq,O=Ly,k=yM,P=Nq,L=xM,j=at("router-link"),le=yn,N=nr,R=Es,K=Ss,W=tr,U=fl;return A(),q(Re,null,[C(T,{class:"header-row"},{default:_(()=>[C(E,{span:8},{default:_(()=>[Efe,C(S,{size:"large",loading:o.value,onClick:a},{default:_(()=>[C(y,{size:"large"},{default:_(()=>[_fe]),_:1})]),_:1},8,["loading"]),C(S,{size:"large",onClick:c},{default:_(()=>[C(y,{size:"large"},{default:_(()=>[C(x(Tb))]),_:1})]),_:1})]),_:1})]),_:1}),C(M,{ref:"popover",placement:"right",title:"Changelog",width:300,trigger:"hover"},{reference:_(()=>[$e(C(S,{class:"m-2",type:"warning",text:""},{default:_(()=>[G("Found new verion: "+oe(s.value),1)]),_:1},512),[[Ye,r.value==1]])]),default:_(()=>[F("ol",Tfe,[(A(!0),q(Re,null,St(i,(Q,de)=>(A(),q("li",{id:de,key:de},oe(Q),9,Ofe))),128))]),Mfe]),_:1},512),$e(C(O,{title:"You're using the latest verion.",type:"success",onClose:b[0]||(b[0]=Q=>r.value=0)},null,512),[[Ye,r.value==2]]),$e(C(O,{title:"Failed to query update information, please try again later.",type:"danger",onClose:b[1]||(b[1]=Q=>r.value=0)},null,512),[[Ye,r.value==3]]),F("p",Afe,[C(T,null,{default:_(()=>[C(E,{span:12},{default:_(()=>[F("h1",null,[C(y,{size:50},{default:_(()=>[C(x(wfe))]),_:1}),G(" Choose a robot to start "),C(S,{size:"large",onClick:p,type:"success"},{default:_(()=>[G(" Create a new robot ")]),_:1})])]),_:1}),C(E,{span:12},{default:_(()=>[kfe]),_:1})]),_:1}),C(L,{wrap:"",size:"large"},{default:_(()=>[(A(!0),q(Re,null,St(u,Q=>(A(),q("div",{class:"grid-content bg-color-light",key:Q.robotId},[C(P,{title:Q.robotName,"sub-title":m(Q.robotType)},{icon:_(()=>[C(k,{src:v(Q.robotType)},null,8,["src"])]),extra:_(()=>[C(S,{type:"primary",onClick:de=>g(Q.robotId,Q.robotName)},{default:_(()=>[G("Detail")]),_:2},1032,["onClick"])]),_:2},1032,["title","sub-title"])]))),128))]),_:1}),F("div",Pfe,[C(y,{size:30},{default:_(()=>[C(x(Tb))]),_:1}),G(" Global settings ")]),F("p",null,[C(y,{size:15},{default:_(()=>[C(x(Mi))]),_:1}),C(j,{to:"/settings"},{default:_(()=>[G("Global settings")]),_:1}),F("div",Nfe,oe(w.$t("lang.guide.desc4")),1)]),F("div",Ife,[C(y,{size:30},{default:_(()=>[C(x(cN))]),_:1}),G(" "+oe(w.$t("lang.guide.title5")),1)]),F("p",null,[C(y,{size:15},{default:_(()=>[C(x(Mi))]),_:1}),F("a",Lfe,[G(oe(w.$t("lang.guide.nav5"))+" ",1),C(y,null,{default:_(()=>[C(x(uN))]),_:1})]),F("div",Rfe,oe(w.$t("lang.guide.desc5")),1)])]),F("p",null,[F("div",$fe,[G(" Version: "+oe(t.value),1),Dfe,Vfe,Bfe,G(" If you have any questions or suggestions, please create a "),Ffe,G(" on Github or email to: dialogflow@yeah.net ")]),zfe]),C(U,{modelValue:l.value,"onUpdate:modelValue":b[6]||(b[6]=Q=>l.value=Q),title:"Create a new robot",width:"60%"},{footer:_(()=>[C(S,{type:"primary",loading:w.loading,onClick:b[4]||(b[4]=Q=>h())},{default:_(()=>[G(oe(w.$t("lang.common.save")),1)]),_:1},8,["loading"]),C(S,{onClick:b[5]||(b[5]=Q=>l.value=!1)},{default:_(()=>[G(oe(w.$t("lang.common.cancel")),1)]),_:1})]),default:_(()=>[C(W,{model:d},{default:_(()=>[C(N,{label:"Name","label-width":OE},{default:_(()=>[C(le,{modelValue:d.robotName,"onUpdate:modelValue":b[2]||(b[2]=Q=>d.robotName=Q),autocomplete:"off"},null,8,["modelValue"])]),_:1}),C(N,{label:"Type","label-width":OE},{default:_(()=>[C(K,{modelValue:d.robotType,"onUpdate:modelValue":b[3]||(b[3]=Q=>d.robotType=Q),placeholder:""},{default:_(()=>[C(R,{label:"Text bot",value:"TextBot"}),C(R,{label:"Inbound call bot",value:"InboundCallBot"}),C(R,{label:"Outbound call bot",value:"OutboundCallBot"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}},Hfe=wo(jfe,[["__scopeId","data-v-4145b158"]]),Ufe=F("span",{class:"text-large font-600 mr-3"}," External HTTP API list ",-1),Wfe={class:"flex items-center"},Gfe={style:{padding:"10px",border:"1px solid #E6A23C","background-color":"#fdf6ec",margin:"10px"}},qfe={__name:"HttpApiList",setup(n){const{t:e,tm:t,rt:r}=on(),o=Qs(),s=yo(),i=o.params.robotId,l=V([]);ot(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)=>{vr.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?(Zt({showClose:!0,message:"Successfully deleted.",type:"success"}),l.value.splice(f,1)):Zt({showClose:!0,message:"Delete failed.",type:"error"})}).catch(()=>{})};return(f,h)=>{const p=Tn,g=xs,v=at("router-link"),m=nf,w=tf;return A(),q(Re,null,[C(g,{title:x(e)("lang.common.back"),onBack:a},{content:_(()=>[Ufe]),extra:_(()=>[F("div",Wfe,[C(p,{type:"primary",class:"ml-2",onClick:h[0]||(h[0]=b=>c())},{default:_(()=>[G("Add new external API")]),_:1})])]),_:1},8,["title"]),F("div",Gfe,[G(" Now you can not only send data to the outside, but also get data from the outside and save it in variables by setting value source to a HTTP API. "),C(v,{to:{name:"variables",params:{robotId:x(i)}}},{default:_(()=>[G("Add new variable")]),_:1},8,["to"])]),C(w,{data:l.value,stripe:"",style:{width:"100%"}},{default:_(()=>[C(m,{prop:"name",label:"HTTP name",width:"450"}),C(m,{prop:"description",label:"Description",width:"500"}),C(m,{fixed:"right",label:x(t)("lang.mainflow.table")[2],width:"270"},{default:_(b=>[C(p,{link:"",type:"primary",size:"small",onClick:y=>u(b.$index,b.row)},{default:_(()=>[G(" Edit ")]),_:2},1032,["onClick"]),G(" | "),C(p,{link:"",type:"primary",size:"small",onClick:y=>d(b.$index,b.row)},{default:_(()=>[G(" Delete ")]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])],64)}}},$0=n=>(Dd("data-v-4fd34b5d"),n=n(),Vd(),n),Kfe={class:"mainBody"},Yfe=$0(()=>F("span",{class:"text-large font-600 mr-3"}," External HTTP API ",-1)),Jfe=$0(()=>F("p",null,null,-1)),Xfe=["checked"],Zfe=$0(()=>F("label",{for:"_asyncReq_"},"Asynchronous",-1)),Qfe={class:"my-header"},ehe=["id"],the={class:"dialog-footer"},nhe={__name:"HttpApiDetail",setup(n){const{t:e,tm:t,rt:r}=on(),o=Qs(),s=yo(),i=o.params.robotId,l=yt({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=yt({name:"",value:"",valueSource:""}),c=V(!1),u=V(!1),d=V(""),f=V("h"),h=V(0),p=yt([]),g=V(""),v=V(),m=o.params.id;ot(async()=>{if(m&&m!="new"){const L=await et("GET","external/http/"+m,{robotId:i},null,null);L&&L.status==200&&Zn(L.data,l)}let k=await et("GET","variable",{robotId:i},null,null);if(k&&k.status==200&&k.data)for(var P in k.data)k.data.hasOwnProperty(P)&&p.push(k.data[P])});const w=()=>{a.name="",a.value="",a.valueSource="Val",h.value=-1;const k=f.value;k=="h"?d.value="Add header parameter":k=="q"?d.value="Add query parameter":k=="f"&&(d.value="Add POST parameter"),c.value=!0},b=()=>{const k=yi(a),P=h.value;P>-1?f.value=="h"?l.headers[P]=k:f.value=="q"?l.queryParams[P]=k:f.value=="f"&&(l.formData[P]=k):f.value=="h"?l.headers.push(k):f.value=="q"?l.queryParams.push(k):f.value=="f"&&l.formData.push(k),c.value=!1},y=k=>{h.value=k,f.value=="h"?Zn(l.headers[k],a):f.value=="q"?Zn(l.queryParams[k],a):f.value=="f"&&Zn(l.formData[k],a),c.value=!0},S=async()=>{l.protocol=l.protocol.replace("://","").toUpperCase();const k=await et("POST","external/http/"+m,{robotId:i},null,l);k&&k.status==200?(Zt({showClose:!0,message:"All data has been saved.",type:"success"}),T()):Zt({showClose:!0,message:"Oops, this is something wrong.",type:"error"})},E=()=>{l.requestBody+="`"+g.value+"`",u.value=!1},T=()=>{s.push({name:"externalHttpApis",params:{robotId:i}})},M=(k,P)=>{},O=k=>{k!="POST"&&f.value=="f"&&(f.value="q")};return(k,P)=>{const L=xs,j=yn,le=nr,N=Es,R=Ss,K=tr,W=qy,U=ug,Q=nf,de=Tn,ee=tf,Me=eY,fe=zy,Ce=ig,Oe=QK,ne=xM,ie=fl;return A(),q("div",Kfe,[C(L,{title:x(e)("lang.common.back"),onBack:T},{content:_(()=>[Yfe]),_:1},8,["title"]),Jfe,C(K,{model:l,"label-width":"90px"},{default:_(()=>[C(le,{label:"Api name"},{default:_(()=>[C(j,{modelValue:l.name,"onUpdate:modelValue":P[0]||(P[0]=X=>l.name=X)},null,8,["modelValue"])]),_:1}),C(le,{label:"Description"},{default:_(()=>[C(j,{modelValue:l.description,"onUpdate:modelValue":P[1]||(P[1]=X=>l.description=X),maxlength:"256",placeholder:"Some descriptions of this API","show-word-limit":"",type:"textarea"},null,8,["modelValue"])]),_:1}),C(le,{label:"Method"},{default:_(()=>[C(R,{modelValue:l.method,"onUpdate:modelValue":P[2]||(P[2]=X=>l.method=X),placeholder:"",onChange:O},{default:_(()=>[C(N,{label:"GET",value:"GET"}),C(N,{label:"POST",value:"POST"})]),_:1},8,["modelValue"])]),_:1}),C(le,{label:"Protocol"},{default:_(()=>[C(R,{modelValue:l.protocol,"onUpdate:modelValue":P[3]||(P[3]=X=>l.protocol=X),placeholder:""},{default:_(()=>[C(N,{label:"HTTP",value:"http://"}),C(N,{label:"HTTPS",value:"https://"})]),_:1},8,["modelValue"])]),_:1}),C(le,{label:"Address"},{default:_(()=>[C(j,{modelValue:l.address,"onUpdate:modelValue":P[4]||(P[4]=X=>l.address=X)},{prepend:_(()=>[G(oe(l.method)+" "+oe(l.protocol),1)]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),C(W,{tag:"b",size:"large"},{default:_(()=>[G("Advanced")]),_:1}),C(K,{model:l,"label-width":"90px"},{default:_(()=>[C(le,{label:"Timed out"},{default:_(()=>[C(U,{modelValue:l.timeoutMilliseconds,"onUpdate:modelValue":P[5]||(P[5]=X=>l.timeoutMilliseconds=X),min:200,max:6e5},null,8,["modelValue"]),G(" milliseconds ")]),_:1}),C(le,{label:"Parameters"},{default:_(()=>[C(Oe,{modelValue:f.value,"onUpdate:modelValue":P[9]||(P[9]=X=>f.value=X),class:"demo-tabs",onTabClick:M},{default:_(()=>[C(Me,{label:"Header",name:"h"},{default:_(()=>[C(ee,{data:l.headers,stripe:"",style:{width:"100%"}},{default:_(()=>[C(Q,{prop:"name",label:"Parameter name",width:"300"}),C(Q,{prop:"value",label:"Parameter value",width:"200"}),C(Q,{fixed:"right",label:x(t)("lang.mainflow.table")[2],width:"270"},{default:_(X=>[C(de,{link:"",type:"primary",size:"small",onClick:me=>y(X.$index)},{default:_(()=>[G(" Edit ")]),_:2},1032,["onClick"]),G(" | "),C(de,{link:"",type:"primary",size:"small",onClick:me=>k.delApi(X.$index,X.row)},{default:_(()=>[G(" Delete ")]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),C(de,{type:"warning",onClick:w},{default:_(()=>[G("+Add header")]),_:1})]),_:1}),C(Me,{label:"Query parameters",name:"q"},{default:_(()=>[C(ee,{data:l.queryParams,stripe:"",style:{width:"100%"}},{default:_(()=>[C(Q,{prop:"name",label:"Parameter name",width:"300"}),C(Q,{prop:"value",label:"Parameter value",width:"200"}),C(Q,{fixed:"right",label:x(t)("lang.mainflow.table")[2],width:"270"},{default:_(X=>[C(de,{link:"",type:"primary",size:"small",onClick:me=>y(X.$index)},{default:_(()=>[G(" Edit ")]),_:2},1032,["onClick"]),G(" | "),C(de,{link:"",type:"primary",size:"small",onClick:me=>k.delApi(X.$index,X.row)},{default:_(()=>[G(" Delete ")]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),C(de,{type:"warning",onClick:w},{default:_(()=>[G("+Add query parameter")]),_:1})]),_:1}),l.method=="POST"?(A(),ve(Me,{key:0,label:"Request body",name:"f"},{default:_(()=>[G(" Request body type: "),C(Ce,{modelValue:l.postContentType,"onUpdate:modelValue":P[6]||(P[6]=X=>l.postContentType=X),class:"ml-4"},{default:_(()=>[C(fe,{label:"UrlEncoded",size:"large"},{default:_(()=>[G("application/x-www-form-urlencoded")]),_:1}),C(fe,{label:"JSON",size:"large"},{default:_(()=>[G("JSON")]),_:1})]),_:1},8,["modelValue"]),l.postContentType=="UrlEncoded"?(A(),ve(ee,{key:0,data:l.formData,stripe:"",style:{width:"100%"}},{default:_(()=>[C(Q,{prop:"name",label:"Parameter name",width:"300"}),C(Q,{prop:"value",label:"Parameter value",width:"200"}),C(Q,{fixed:"right",label:x(t)("lang.mainflow.table")[2],width:"270"},{default:_(X=>[C(de,{link:"",type:"primary",size:"small",onClick:me=>y(X.$index)},{default:_(()=>[G(" Edit ")]),_:2},1032,["onClick"]),G(" | "),C(de,{link:"",type:"primary",size:"small",onClick:me=>k.delApi(X.$index,X.row)},{default:_(()=>[G(" Delete ")]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])):be("",!0),l.postContentType=="UrlEncoded"?(A(),ve(de,{key:1,type:"warning",onClick:w},{default:_(()=>[G("+Add form data")]),_:1})):be("",!0),l.postContentType=="JSON"?(A(),ve(j,{key:2,ref_key:"requestBodyRef",ref:v,modelValue:l.requestBody,"onUpdate:modelValue":P[7]||(P[7]=X=>l.requestBody=X),maxlength:"10240",placeholder:"JSON","show-word-limit":"",type:"textarea"},null,8,["modelValue"])):be("",!0),l.postContentType=="JSON"?(A(),ve(de,{key:3,type:"warning",onClick:P[8]||(P[8]=X=>u.value=!0)},{default:_(()=>[G("+Insert a variable")]),_:1})):be("",!0)]),_:1})):be("",!0)]),_:1},8,["modelValue"])]),_:1}),C(le,{label:"User agent"},{default:_(()=>[C(j,{modelValue:l.userAgent,"onUpdate:modelValue":P[10]||(P[10]=X=>l.userAgent=X)},null,8,["modelValue"])]),_:1}),C(le,{label:"Sync/Async","label-width":k.formLabelWidth},{default:_(()=>[$e(F("input",{type:"checkbox",id:"_asyncReq_","onUpdate:modelValue":P[11]||(P[11]=X=>l.asyncReq=X),checked:l.asyncReq},null,8,Xfe),[[Gi,l.asyncReq]]),Zfe]),_:1},8,["label-width"]),C(le,null,{default:_(()=>[C(de,{type:"primary",onClick:S},{default:_(()=>[G("Save")]),_:1}),C(de,{type:"info",disabled:""},{default:_(()=>[G("Test (WIP)")]),_:1}),C(de,{onClick:T},{default:_(()=>[G("Cancel")]),_:1})]),_:1})]),_:1},8,["model"]),C(ie,{modelValue:c.value,"onUpdate:modelValue":P[17]||(P[17]=X=>c.value=X),width:"60%"},{header:_(({close:X,titleId:me,titleClass:Pe})=>[F("div",Qfe,[F("h4",{id:me,class:Z(Pe)},oe(d.value),11,ehe)])]),footer:_(()=>[C(de,{type:"primary",loading:k.loading,onClick:b},{default:_(()=>[G(oe(k.$t("lang.common.save")),1)]),_:1},8,["loading"]),C(de,{onClick:P[16]||(P[16]=X=>c.value=!1)},{default:_(()=>[G(oe(k.$t("lang.common.cancel")),1)]),_:1})]),default:_(()=>[C(K,{model:a},{default:_(()=>[C(le,{label:"Name","label-width":k.formLabelWidth},{default:_(()=>[C(j,{modelValue:a.name,"onUpdate:modelValue":P[12]||(P[12]=X=>a.name=X),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),C(le,{label:"Value","label-width":k.formLabelWidth},{default:_(()=>[C(ne,{size:"10",spacer:"-"},{default:_(()=>[C(R,{modelValue:a.valueSource,"onUpdate:modelValue":P[13]||(P[13]=X=>a.valueSource=X),placeholder:"",style:{width:"150px"}},{default:_(()=>[C(N,{label:"Const value",value:"Val"}),C(N,{label:"From a variable",value:"Var"})]),_:1},8,["modelValue"]),a.valueSource=="Val"?(A(),ve(j,{key:0,modelValue:a.value,"onUpdate:modelValue":P[14]||(P[14]=X=>a.value=X),autocomplete:"off",style:{width:"400px"}},null,8,["modelValue"])):be("",!0),a.valueSource=="Var"?(A(),ve(R,{key:1,modelValue:g.value,"onUpdate:modelValue":P[15]||(P[15]=X=>g.value=X),placeholder:"Select a varaible",style:{width:"400px"}},{default:_(()=>[(A(!0),q(Re,null,St(p,X=>(A(),ve(N,{key:X.varName,label:X.varName,value:X.varName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):be("",!0)]),_:1})]),_:1},8,["label-width"])]),_:1},8,["model"])]),_:1},8,["modelValue"]),C(ie,{modelValue:u.value,"onUpdate:modelValue":P[20]||(P[20]=X=>u.value=X),title:"Insert a variable",width:"30%"},{footer:_(()=>[F("span",the,[C(de,{type:"primary",onClick:E},{default:_(()=>[G(oe(x(e)("lang.common.insert")),1)]),_:1}),C(de,{onClick:P[19]||(P[19]=X=>u.value=!1)},{default:_(()=>[G(oe(x(e)("lang.common.cancel")),1)]),_:1})])]),default:_(()=>[C(R,{modelValue:g.value,"onUpdate:modelValue":P[18]||(P[18]=X=>g.value=X),class:"m-2",placeholder:"Choose a variable",size:"large"},{default:_(()=>[(A(!0),q(Re,null,St(p,X=>(A(),ve(N,{key:X.varName,label:X.varName,value:X.varName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])])}}},rhe=wo(nhe,[["__scopeId","data-v-4fd34b5d"]]),ohe={key:0},she={__name:"Demos",props:{parentPage:{type:String,default:"home"}},setup(n){const e=n,{t,locale:r}=on(),o=yo();function s(i,l){ZY()?vr.alert(t("lang.home.demoUnvailableContent"),t("lang.home.demoUnvailableTitle"),{dangerouslyUseHTMLString:!0,confirmButtonText:"OK",callback:a=>{}}):o.push({name:"subflow",params:{id:i,name:l}})}return(i,l)=>{const a=WG;return A(),q("div",null,[G(oe(i.$t("lang.home.demo"))+": ",1),e.parentPage=="home"?(A(),q("ol",ohe,[F("li",null,[C(a,{type:"success",onClick:l[0]||(l[0]=c=>s("demo-repay","UmVwYXkgRGVtbw=="))},{default:_(()=>[G(oe(i.$t("lang.home.demo1")),1)]),_:1})]),F("li",null,[C(a,{type:"success",onClick:l[1]||(l[1]=c=>s("demo-collect","SW5mb3JtYXRpb24gQ29sbGVjdGlvbiBEZW1v"))},{default:_(()=>[G(oe(i.$t("lang.home.demo2")),1)]),_:1})]),F("li",null,[C(a,{type:"success",onClick:l[2]||(l[2]=c=>s("demo-notify","T25lIFNlbnRlbmNlIE5vdGlmaWNhdGlvbiBEZW1v"))},{default:_(()=>[G(oe(i.$t("lang.home.demo3")),1)]),_:1})])])):(A(),q(Re,{key:1},[C(a,{type:"success",onClick:l[3]||(l[3]=c=>s("demo-repay","UmVwYXkgRGVtbw=="))},{default:_(()=>[G(oe(i.$t("lang.home.demo1")),1)]),_:1}),G(" | "),C(a,{type:"success",onClick:l[4]||(l[4]=c=>s("demo-collect","SW5mb3JtYXRpb24gQ29sbGVjdGlvbiBEZW1v"))},{default:_(()=>[G(oe(i.$t("lang.home.demo2")),1)]),_:1}),G(" | "),C(a,{type:"success",onClick:l[5]||(l[5]=c=>s("demo-notify","T25lIFNlbnRlbmNlIE5vdGlmaWNhdGlvbiBEZW1v"))},{default:_(()=>[G(oe(i.$t("lang.home.demo3")),1)]),_:1})],64))])}}},ihe={viewBox:"0 0 16 16",width:"1.2em",height:"1.2em"},lhe=F("g",{fill:"currentColor"},[F("path",{d:"M14 1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-2.5a2 2 0 0 0-1.6.8L8 14.333L6.1 11.8a2 2 0 0 0-1.6-.8H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2.5a1 1 0 0 1 .8.4l1.9 2.533a1 1 0 0 0 1.6 0l1.9-2.533a1 1 0 0 1 .8-.4H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"}),F("path",{d:"M5 6a1 1 0 1 1-2 0a1 1 0 0 1 2 0m4 0a1 1 0 1 1-2 0a1 1 0 0 1 2 0m4 0a1 1 0 1 1-2 0a1 1 0 0 1 2 0"})],-1),ahe=[lhe];function che(n,e){return A(),q("svg",ihe,[...ahe])}const uhe={name:"bi-chat-square-dots",render:che},dhe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},fhe=F("path",{fill:"currentColor",d:"M10.614 17.796a.946.946 0 0 1-1.744 0l-.877-2.01a7.742 7.742 0 0 0-3.94-3.992l-2.416-1.072c-.768-.341-.768-1.458 0-1.8l2.34-1.038a7.747 7.747 0 0 0 3.997-4.125l.89-2.142a.946.946 0 0 1 1.757 0l.89 2.142a7.747 7.747 0 0 0 3.997 4.125l2.34 1.039c.768.34.768 1.458 0 1.799l-2.415 1.072a7.742 7.742 0 0 0-3.941 3.991zM4.54 9.822c2.285 1.015 4.144 2.683 5.202 4.978c1.059-2.295 2.917-3.963 5.203-4.978c-2.313-1.026-4.177-2.776-5.203-5.111c-1.025 2.335-2.89 4.085-5.202 5.111M19.4 22.69l.247-.566a4.365 4.365 0 0 1 2.221-2.25l.76-.339a.53.53 0 0 0 0-.963l-.717-.319a4.368 4.368 0 0 1-2.253-2.326l-.254-.611a.507.507 0 0 0-.942 0l-.254.61a4.368 4.368 0 0 1-2.253 2.327l-.718.32a.53.53 0 0 0 0 .962l.76.338a4.365 4.365 0 0 1 2.222 2.251l.247.566c.18.414.754.414.934 0m-1.026-3.643l.562-.559l.55.559l-.55.543z"},null,-1),hhe=[fhe];function phe(n,e){return A(),q("svg",dhe,[...hhe])}const ghe={name:"ri-bard-line",render:phe},mhe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},vhe=F("path",{fill:"currentColor","fill-rule":"evenodd",d:"M12 1.25a.75.75 0 0 1 .75.75v10.973l1.68-1.961a.75.75 0 1 1 1.14.976l-3 3.5a.75.75 0 0 1-1.14 0l-3-3.5a.75.75 0 1 1 1.14-.976l1.68 1.96V2a.75.75 0 0 1 .75-.75M6.996 8.252a.75.75 0 0 1 .008 1.5c-1.093.006-1.868.034-2.457.142c-.566.105-.895.272-1.138.515c-.277.277-.457.666-.556 1.4c-.101.755-.103 1.756-.103 3.191v1c0 1.436.002 2.437.103 3.192c.099.734.28 1.122.556 1.4c.277.276.665.456 1.4.555c.754.102 1.756.103 3.191.103h8c1.435 0 2.436-.001 3.192-.103c.734-.099 1.122-.279 1.399-.556c.277-.277.457-.665.556-1.399c.101-.755.103-1.756.103-3.192v-1c0-1.435-.002-2.436-.103-3.192c-.099-.733-.28-1.122-.556-1.399c-.244-.243-.572-.41-1.138-.515c-.589-.108-1.364-.136-2.457-.142a.75.75 0 1 1 .008-1.5c1.082.006 1.983.032 2.72.167c.758.14 1.403.405 1.928.93c.602.601.86 1.36.982 2.26c.116.866.116 1.969.116 3.336v1.11c0 1.368 0 2.47-.116 3.337c-.122.9-.38 1.658-.982 2.26c-.602.602-1.36.86-2.26.982c-.867.116-1.97.116-3.337.116h-8.11c-1.367 0-2.47 0-3.337-.116c-.9-.121-1.658-.38-2.26-.982c-.602-.602-.86-1.36-.981-2.26c-.117-.867-.117-1.97-.117-3.337v-1.11c0-1.367 0-2.47.117-3.337c.12-.9.38-1.658.981-2.26c.525-.524 1.17-.79 1.928-.929c.737-.135 1.638-.161 2.72-.167","clip-rule":"evenodd"},null,-1),bhe=[vhe];function yhe(n,e){return A(),q("svg",mhe,[...bhe])}const whe={name:"solar-download-outline",render:yhe},Che={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},xhe=F("g",{fill:"none"},[F("path",{stroke:"currentColor","stroke-width":"1.5",d:"M2 5.257C2 3.458 3.567 2 5.5 2S9 3.458 9 5.257C9 7.042 7.883 9.125 6.14 9.87a1.638 1.638 0 0 1-1.28 0C3.117 9.125 2 7.042 2 5.257Zm13 12C15 15.458 16.567 14 18.5 14s3.5 1.458 3.5 3.257c0 1.785-1.117 3.868-2.86 4.613a1.638 1.638 0 0 1-1.28 0c-1.743-.745-2.86-2.828-2.86-4.613Z"}),F("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.5 17.5h.009M5.49 5.5h.01"}),F("path",{fill:"currentColor",d:"M12 4.25a.75.75 0 0 0 0 1.5zM12 19l.53.53a.75.75 0 0 0 0-1.06zm5.206-10.313l.402.633zM6.795 15.313l.402.632zm4.236 1.657a.75.75 0 1 0-1.061 1.06zm-1.061 3a.75.75 0 1 0 1.06 1.06zm6.162-15.72H12v1.5h4.132zM12 18.25H7.868v1.5H12zm4.803-10.195L6.392 14.68l.805 1.265L17.61 9.32zM12.53 18.47l-1.5-1.5l-1.06 1.06l1.5 1.5zm-1.06 0l-1.5 1.5l1.06 1.06l1.5-1.5zm-3.602-.22c-1.25 0-1.726-1.633-.67-2.305l-.806-1.265c-2.321 1.477-1.275 5.07 1.476 5.07zm8.264-12.5c1.25 0 1.726 1.633.671 2.305l.805 1.265c2.322-1.477 1.275-5.07-1.476-5.07z"})],-1),She=[xhe];function Ehe(n,e){return A(),q("svg",Che,[...She])}const _he={name:"solar-routing-2-linear",render:Ehe},$g=n=>(Dd("data-v-0ba8fb96"),n=n(),Vd(),n),The=$g(()=>F("span",{class:"text-large font-600 mr-3"}," Robot detail ",-1)),Ohe={class:"header"},Mhe={style:{"margin-left":"50px"}},Ahe={class:"title"},khe={class:"description"},Phe={class:"title"},Nhe={class:"description"},Ihe=$g(()=>F("br",null,null,-1)),Lhe={class:"title"},Rhe={class:"description"},$he={class:"title"},Dhe=$g(()=>F("div",{class:"description"},"By using this function, you can send data to external URLs and receive response.",-1)),Vhe={class:"title"},Bhe=$g(()=>F("div",{class:"description"},"Change maximum session idle time, Embedding provider and Email STMP information.",-1)),Fhe={class:"title"},zhe={href:"https://dialogflowchatbot.github.io/docs",target:"_blank"},jhe={class:"description"},Hhe={class:"dialog-footer"},Uhe="guide",Whe={__name:"RobotDetail",setup(n){on();const e=Qs(),t=yo(),r=e.params.robotId;let o="";const s=yt({robotId:"",robotName:"",robotType:""}),i=V(!1),l=()=>{t.push("/")};ot(async()=>{const u=await et("GET","robot/detail",{robotId:r},null,null);u.status==200&&u.data!=null?(Zn(u.data,s),o=s.robotName,QY(u.data.robotId,u.data.robotType)):Zt.error("Can NOT find robot information by robotId.")});async function a(){const u=await et("POST","robot",null,null,s);u.status==200?Zt.success("Changed successfully."):Zt.error(u.err.message)}async function c(){vr.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():Zt.error(u.err.message)}).catch(()=>{})}return(u,d)=>{const f=xs,h=Tn,p=ag,g=lg,v=dt,m=at("router-link"),w=yn,b=nr,y=tr,S=fl;return A(),q(Re,null,[C(f,{title:"Robots list",onBack:l},{content:_(()=>[The]),_:1}),C(g,{class:"header-row"},{default:_(()=>[C(p,{span:18},{default:_(()=>[F("span",Ohe,oe(s.robotName),1),C(h,{type:"primary",text:"",onClick:d[0]||(d[0]=E=>{i.value=!0})},{default:_(()=>[G(" Change robot name ")]),_:1})]),_:1}),C(p,{span:3},{default:_(()=>[C(h,{type:"danger",onClick:c},{default:_(()=>[G(" Delete this robot ")]),_:1})]),_:1})]),_:1}),F("p",Mhe,[F("div",Ahe,[C(v,{size:30},{default:_(()=>[C(x(uhe))]),_:1}),G(oe(u.$t("lang.guide.title1")),1)]),F("p",null,[C(v,{size:15},{default:_(()=>[C(x(Mi))]),_:1}),C(m,{to:{name:"mainflows",params:{robotId:x(r)}}},{default:_(()=>[G(oe(u.$t("lang.guide.nav1")),1)]),_:1},8,["to"]),F("div",khe,[C(she,{parentPage:Uhe})])]),F("div",Phe,[C(v,{size:30},{default:_(()=>[C(x(ghe))]),_:1}),G(" "+oe(u.$t("lang.guide.title2")),1)]),F("p",null,[C(v,{size:15},{default:_(()=>[C(x(Mi))]),_:1}),C(m,{to:{name:"intents",params:{robotId:x(r)}}},{default:_(()=>[G(oe(u.$t("lang.guide.nav2")),1)]),_:1},8,["to"]),F("div",Nhe,[G(oe(u.$t("lang.guide.desc2")),1),Ihe,G(` We have built-in "Positive" and "Negative" intentions. If that's not enough, you can add your own `)])]),F("div",Lhe,[C(v,{size:30},{default:_(()=>[C(x(whe))]),_:1}),G(" "+oe(u.$t("lang.guide.title3")),1)]),F("p",null,[C(v,{size:15},{default:_(()=>[C(x(Mi))]),_:1}),C(m,{to:{name:"variables",params:{robotId:x(r)}}},{default:_(()=>[G(oe(u.$t("lang.guide.nav3")),1)]),_:1},8,["to"]),F("div",Rhe,oe(u.$t("lang.guide.desc3")),1)]),F("div",$he,[C(v,{size:30},{default:_(()=>[C(x(_he))]),_:1}),G(" External APIs call ")]),F("p",null,[C(v,{size:15},{default:_(()=>[C(x(Mi))]),_:1}),C(m,{to:{name:"externalHttpApis",params:{robotId:x(r)}}},{default:_(()=>[G("External HTTP API list")]),_:1},8,["to"]),Dhe]),F("div",Vhe,[C(v,{size:30},{default:_(()=>[C(x(Tb))]),_:1}),G(" "+oe(u.$t("lang.guide.title4")),1)]),F("p",null,[C(v,{size:15},{default:_(()=>[C(x(Mi))]),_:1}),C(m,{to:{name:"settings",params:{robotId:x(r)}}},{default:_(()=>[G(oe(u.$t("lang.guide.nav4")),1)]),_:1},8,["to"]),Bhe]),F("div",Fhe,[C(v,{size:30},{default:_(()=>[C(x(cN))]),_:1}),G(" "+oe(u.$t("lang.guide.title5")),1)]),F("p",null,[C(v,{size:15},{default:_(()=>[C(x(Mi))]),_:1}),F("a",zhe,[G(oe(u.$t("lang.guide.nav5"))+" ",1),C(v,null,{default:_(()=>[C(x(uN))]),_:1})]),F("div",jhe,oe(u.$t("lang.guide.desc5")),1)])]),C(S,{modelValue:i.value,"onUpdate:modelValue":d[4]||(d[4]=E=>i.value=E),title:"Change robot name"},{footer:_(()=>[F("span",Hhe,[C(h,{type:"primary",onClick:d[2]||(d[2]=E=>{i.value=!1,a()})},{default:_(()=>[G(oe(u.$t("lang.common.save")),1)]),_:1}),C(h,{onClick:d[3]||(d[3]=E=>{s.robotName=x(o),i.value=!1})},{default:_(()=>[G(oe(u.$t("lang.common.cancel")),1)]),_:1})])]),default:_(()=>[C(y,{model:u.form},{default:_(()=>[C(b,{label:"Name","label-width":u.formLabelWidth},{default:_(()=>[C(w,{modelValue:s.robotName,"onUpdate:modelValue":d[1]||(d[1]=E=>s.robotName=E),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}},Ghe=wo(Whe,[["__scopeId","data-v-0ba8fb96"]]),qhe=[{path:"/",component:Hfe},{path:"/demo/:demo",component:TE},{path:"/mainflows/:robotId",name:"mainflows",component:OJ},{path:"/subflow/:robotId/:id/:name",name:"subflow",component:TE,props:!0},{path:"/settings",component:iJ},{path:"/settings/:robotId",name:"settings",component:SJ},{path:"/robot/:robotId",name:"robotDetail",component:Ghe},{path:"/intents/:robotId",name:"intents",component:Fde},{path:"/intent/detail",component:Ude},{path:"/variables/:robotId",name:"variables",component:Qde},{path:"/external/httpApis/:robotId",name:"externalHttpApis",component:qfe},{path:"/external/httpApi/:robotId/:id",name:"externalHttpApiDetail",component:rhe}],Khe=q3({history:C3(),routes:qhe,scrollBehavior(n,e,t){return{top:0}}}),D0=Xb(Z$);D0.use(Khe);D0.use(X$);D0.mount("#app")});export default Yhe(); diff --git a/src/resources/assets/assets/usedByDialogNodeTextGeneration-DrFqkTqi.png b/src/resources/assets/assets/usedByDialogNodeTextGeneration-DrFqkTqi.png new file mode 100644 index 0000000..7b74d5d Binary files /dev/null and b/src/resources/assets/assets/usedByDialogNodeTextGeneration-DrFqkTqi.png differ diff --git a/src/resources/assets/assets/usedByDialogNodeTextGeneration-thumbnail-C1iQCVQO.png b/src/resources/assets/assets/usedByDialogNodeTextGeneration-thumbnail-C1iQCVQO.png new file mode 100644 index 0000000..852e0c9 Binary files /dev/null and b/src/resources/assets/assets/usedByDialogNodeTextGeneration-thumbnail-C1iQCVQO.png differ diff --git a/src/resources/assets/assets/usedByLlmChatNode-Bv2Fg5P7.png b/src/resources/assets/assets/usedByLlmChatNode-Bv2Fg5P7.png new file mode 100644 index 0000000..386bcad Binary files /dev/null and b/src/resources/assets/assets/usedByLlmChatNode-Bv2Fg5P7.png differ diff --git a/src/resources/assets/assets/usedBySentenceEmbedding-Dmju1hVB.png b/src/resources/assets/assets/usedBySentenceEmbedding-Dmju1hVB.png new file mode 100644 index 0000000..5408a93 Binary files /dev/null and b/src/resources/assets/assets/usedBySentenceEmbedding-Dmju1hVB.png differ diff --git a/src/resources/assets/assets/usedBySentenceEmbedding-thumbnail-DVXz_sh0.png b/src/resources/assets/assets/usedBySentenceEmbedding-thumbnail-DVXz_sh0.png new file mode 100644 index 0000000..b7c4725 Binary files /dev/null and b/src/resources/assets/assets/usedBySentenceEmbedding-thumbnail-DVXz_sh0.png differ