From 0d10a86e1c80441e93455b3f994210d734ee33aa Mon Sep 17 00:00:00 2001 From: moisbo Date: Tue, 7 Nov 2023 05:54:46 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20soil-and?= =?UTF-8?q?-land/socrates-web@0ca4e41e9056d54bae2298784b7ed008a4a98619=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/index-8dc4287f.css | 1 + assets/index-df1f4bc2.js | 96 +++++++++++++++++ favicon.ico | Bin 0 -> 5430 bytes images/edit_help.png | Bin 0 -> 3330 bytes images/ife_main_colour-300x59.jpg | Bin 0 -> 6740 bytes index.html | 16 +++ sample-data-20-year.json | 164 ++++++++++++++++++++++++++++++ spa_github.js | 20 ++++ 8 files changed, 297 insertions(+) create mode 100644 assets/index-8dc4287f.css create mode 100644 assets/index-df1f4bc2.js create mode 100644 favicon.ico create mode 100644 images/edit_help.png create mode 100644 images/ife_main_colour-300x59.jpg create mode 100644 index.html create mode 100644 sample-data-20-year.json create mode 100644 spa_github.js diff --git a/assets/index-8dc4287f.css b/assets/index-8dc4287f.css new file mode 100644 index 0000000..9bc4802 --- /dev/null +++ b/assets/index-8dc4287f.css @@ -0,0 +1 @@ +@charset "UTF-8";:root{--ep-color-primary-rgb: 0, 128, 0;--ep-color-success-rgb: 33, 186, 69;--ep-color-warning-rgb: 242, 113, 28;--ep-color-danger-rgb: 219, 40, 40;--ep-color-error-rgb: 219, 40, 40;--ep-color-info-rgb: 66, 184, 221;--ep-font-size-extra-large: 20px;--ep-font-size-large: 18px;--ep-font-size-medium: 16px;--ep-font-size-base: 14px;--ep-font-size-small: 13px;--ep-font-size-extra-small: 12px;--ep-font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;--ep-font-weight-primary: 500;--ep-font-line-height-primary: 24px;--ep-index-normal: 1;--ep-index-top: 1000;--ep-index-popper: 2000;--ep-border-radius-base: 4px;--ep-border-radius-small: 2px;--ep-border-radius-round: 20px;--ep-border-radius-circle: 100%;--ep-transition-duration: .3s;--ep-transition-duration-fast: .2s;--ep-transition-function-ease-in-out-bezier: cubic-bezier(.645, .045, .355, 1);--ep-transition-function-fast-bezier: cubic-bezier(.23, 1, .32, 1);--ep-transition-all: all var(--ep-transition-duration) var(--ep-transition-function-ease-in-out-bezier);--ep-transition-fade: opacity var(--ep-transition-duration) var(--ep-transition-function-fast-bezier);--ep-transition-md-fade: transform var(--ep-transition-duration) var(--ep-transition-function-fast-bezier), opacity var(--ep-transition-duration) var(--ep-transition-function-fast-bezier);--ep-transition-fade-linear: opacity var(--ep-transition-duration-fast) linear;--ep-transition-border: border-color var(--ep-transition-duration-fast) var(--ep-transition-function-ease-in-out-bezier);--ep-transition-box-shadow: box-shadow var(--ep-transition-duration-fast) var(--ep-transition-function-ease-in-out-bezier);--ep-transition-color: color var(--ep-transition-duration-fast) var(--ep-transition-function-ease-in-out-bezier);--ep-component-size-large: 40px;--ep-component-size: 32px;--ep-component-size-small: 24px;color-scheme:light;--ep-color-white: #ffffff;--ep-color-black: #000000;--ep-color-primary: green;--ep-color-primary-light-3: #4da64d;--ep-color-primary-light-5: #80c080;--ep-color-primary-light-7: #b3d9b3;--ep-color-primary-light-8: #cce6cc;--ep-color-primary-light-9: #e6f2e6;--ep-color-primary-dark-2: #006600;--ep-color-success: #21ba45;--ep-color-success-light-3: #64cf7d;--ep-color-success-light-5: #90dda2;--ep-color-success-light-7: #bceac7;--ep-color-success-light-8: #d3f1da;--ep-color-success-light-9: #e9f8ec;--ep-color-success-dark-2: #1a9537;--ep-color-warning: #f2711c;--ep-color-warning-light-3: #f69c60;--ep-color-warning-light-5: #f9b88e;--ep-color-warning-light-7: #fbd4bb;--ep-color-warning-light-8: #fce3d2;--ep-color-warning-light-9: #fef1e8;--ep-color-warning-dark-2: #c25a16;--ep-color-danger: #db2828;--ep-color-danger-light-3: #e66969;--ep-color-danger-light-5: #ed9494;--ep-color-danger-light-7: #f4bfbf;--ep-color-danger-light-8: #f8d4d4;--ep-color-danger-light-9: #fbeaea;--ep-color-danger-dark-2: #af2020;--ep-color-error: #db2828;--ep-color-error-light-3: #e66969;--ep-color-error-light-5: #ed9494;--ep-color-error-light-7: #f4bfbf;--ep-color-error-light-8: #f8d4d4;--ep-color-error-light-9: #fbeaea;--ep-color-error-dark-2: #af2020;--ep-color-info: #42b8dd;--ep-color-info-light-3: #7bcde7;--ep-color-info-light-5: #a1dcee;--ep-color-info-light-7: #c6eaf5;--ep-color-info-light-8: #d9f1f8;--ep-color-info-light-9: #ecf8fc;--ep-color-info-dark-2: #3593b1;--ep-bg-color: #ffffff;--ep-bg-color-page: #f2f3f5;--ep-bg-color-overlay: #ffffff;--ep-text-color-primary: #303133;--ep-text-color-regular: #606266;--ep-text-color-secondary: #909399;--ep-text-color-placeholder: #a8abb2;--ep-text-color-disabled: #c0c4cc;--ep-border-color: #dcdfe6;--ep-border-color-light: #e4e7ed;--ep-border-color-lighter: #ebeef5;--ep-border-color-extra-light: #f2f6fc;--ep-border-color-dark: #d4d7de;--ep-border-color-darker: #cdd0d6;--ep-fill-color: #f0f2f5;--ep-fill-color-light: #f5f7fa;--ep-fill-color-lighter: #fafafa;--ep-fill-color-extra-light: #fafcff;--ep-fill-color-dark: #ebedf0;--ep-fill-color-darker: #e6e8eb;--ep-fill-color-blank: #ffffff;--ep-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .04), 0px 8px 20px rgba(0, 0, 0, .08);--ep-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, .12);--ep-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, .12);--ep-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);--ep-disabled-bg-color: var(--ep-fill-color-light);--ep-disabled-text-color: var(--ep-text-color-placeholder);--ep-disabled-border-color: var(--ep-border-color-light);--ep-overlay-color: rgba(0, 0, 0, .8);--ep-overlay-color-light: rgba(0, 0, 0, .7);--ep-overlay-color-lighter: rgba(0, 0, 0, .5);--ep-mask-color: rgba(255, 255, 255, .9);--ep-mask-color-extra-light: rgba(255, 255, 255, .3);--ep-border-width: 1px;--ep-border-style: solid;--ep-border-color-hover: var(--ep-text-color-disabled);--ep-border: var(--ep-border-width) var(--ep-border-style) var(--ep-border-color);--ep-svg-monochrome-grey: var(--ep-border-color)}.ep-icon-loading{animation:rotating 2s linear infinite}.ep-icon--right{margin-left:5px}.ep-icon--left{margin-right:5px}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ep-icon{--color: inherit;height:1em;width:1em;line-height:1em;display:inline-flex;justify-content:center;align-items:center;position:relative;fill:currentColor;color:var(--color);font-size:inherit}.ep-icon.is-loading{animation:rotating 2s linear infinite}.ep-icon svg{height:1em;width:1em}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--ep-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.ep-fade-in-linear-enter-active,.ep-fade-in-linear-leave-active{transition:var(--ep-transition-fade-linear)}.ep-fade-in-linear-enter-from,.ep-fade-in-linear-leave-to{opacity:0}.ep-fade-in-enter-active,.ep-fade-in-leave-active{transition:all var(--ep-transition-duration) cubic-bezier(.55,0,.1,1)}.ep-fade-in-enter-from,.ep-fade-in-leave-active{opacity:0}.ep-zoom-in-center-enter-active,.ep-zoom-in-center-leave-active{transition:all var(--ep-transition-duration) cubic-bezier(.55,0,.1,1)}.ep-zoom-in-center-enter-from,.ep-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.ep-zoom-in-top-enter-active,.ep-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:var(--ep-transition-md-fade);transform-origin:center top}.ep-zoom-in-top-enter-active[data-popper-placement^=top],.ep-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.ep-zoom-in-top-enter-from,.ep-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.ep-zoom-in-bottom-enter-active,.ep-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:var(--ep-transition-md-fade);transform-origin:center bottom}.ep-zoom-in-bottom-enter-from,.ep-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.ep-zoom-in-left-enter-active,.ep-zoom-in-left-leave-active{opacity:1;transform:scale(1);transition:var(--ep-transition-md-fade);transform-origin:top left}.ep-zoom-in-left-enter-from,.ep-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--ep-transition-duration) height ease-in-out,var(--ep-transition-duration) padding-top ease-in-out,var(--ep-transition-duration) padding-bottom ease-in-out}.ep-collapse-transition-leave-active,.ep-collapse-transition-enter-active{transition:var(--ep-transition-duration) max-height ease-in-out,var(--ep-transition-duration) padding-top ease-in-out,var(--ep-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--ep-transition-duration) width ease-in-out,var(--ep-transition-duration) padding-left ease-in-out,var(--ep-transition-duration) padding-right ease-in-out}.ep-list-enter-active,.ep-list-leave-active{transition:all 1s}.ep-list-enter-from,.ep-list-leave-to{opacity:0;transform:translateY(-30px)}.ep-list-leave-active{position:absolute!important}.ep-opacity-transition{transition:opacity var(--ep-transition-duration) cubic-bezier(.55,0,.1,1)}:root{--ep-menu-active-color: var(--ep-color-primary);--ep-menu-text-color: var(--ep-text-color-primary);--ep-menu-hover-text-color: var(--ep-color-primary);--ep-menu-bg-color: var(--ep-fill-color-blank);--ep-menu-hover-bg-color: var(--ep-color-primary-light-9);--ep-menu-item-height: 56px;--ep-menu-sub-item-height: calc(var(--ep-menu-item-height) - 6px);--ep-menu-horizontal-sub-item-height: 36px;--ep-menu-item-font-size: var(--ep-font-size-base);--ep-menu-item-hover-fill: var(--ep-color-primary-light-9);--ep-menu-border-color: var(--ep-border-color);--ep-menu-base-level-padding: 20px;--ep-menu-level-padding: 20px;--ep-menu-icon-width: 24px}.ep-menu{border-right:solid 1px var(--ep-menu-border-color);list-style:none;position:relative;margin:0;padding-left:0;background-color:var(--ep-menu-bg-color);box-sizing:border-box}.ep-menu--vertical:not(.ep-menu--collapse):not(.ep-menu--popup-container) .ep-menu-item,.ep-menu--vertical:not(.ep-menu--collapse):not(.ep-menu--popup-container) .ep-sub-menu__title,.ep-menu--vertical:not(.ep-menu--collapse):not(.ep-menu--popup-container) .ep-menu-item-group__title{white-space:nowrap;padding-left:calc(var(--ep-menu-base-level-padding) + var(--ep-menu-level) * var(--ep-menu-level-padding))}.ep-menu--horizontal{display:flex;flex-wrap:nowrap;border-bottom:solid 1px var(--ep-menu-border-color);border-right:none}.ep-menu--horizontal>.ep-menu-item{display:inline-flex;justify-content:center;align-items:center;height:100%;margin:0;border-bottom:2px solid transparent;color:var(--ep-menu-text-color)}.ep-menu--horizontal>.ep-menu-item a,.ep-menu--horizontal>.ep-menu-item a:hover{color:inherit}.ep-menu--horizontal>.ep-menu-item:not(.is-disabled):hover,.ep-menu--horizontal>.ep-menu-item:not(.is-disabled):focus{background-color:#fff}.ep-menu--horizontal>.ep-sub-menu:focus,.ep-menu--horizontal>.ep-sub-menu:hover{outline:none}.ep-menu--horizontal>.ep-sub-menu:hover .ep-sub-menu__title{color:var(--ep-menu-hover-text-color)}.ep-menu--horizontal>.ep-sub-menu.is-active .ep-sub-menu__title{border-bottom:2px solid var(--ep-menu-active-color);color:var(--ep-menu-active-color)}.ep-menu--horizontal>.ep-sub-menu .ep-sub-menu__title{height:100%;border-bottom:2px solid transparent;color:var(--ep-menu-text-color)}.ep-menu--horizontal>.ep-sub-menu .ep-sub-menu__title:hover{background-color:var(--ep-bg-color-overlay)}.ep-menu--horizontal .ep-menu .ep-menu-item,.ep-menu--horizontal .ep-menu .ep-sub-menu__title{background-color:var(--ep-menu-bg-color);display:flex;align-items:center;height:var(--ep-menu-horizontal-sub-item-height);line-height:var(--ep-menu-horizontal-sub-item-height);padding:0 10px;color:var(--ep-menu-text-color)}.ep-menu--horizontal .ep-menu .ep-sub-menu__title{padding-right:40px}.ep-menu--horizontal .ep-menu .ep-menu-item.is-active,.ep-menu--horizontal .ep-menu .ep-sub-menu.is-active>.ep-sub-menu__title{color:var(--ep-menu-active-color)}.ep-menu--horizontal .ep-menu-item:not(.is-disabled):hover,.ep-menu--horizontal .ep-menu-item:not(.is-disabled):focus{outline:none;color:var(--ep-menu-hover-text-color);background-color:var(--ep-menu-hover-bg-color)}.ep-menu--horizontal>.ep-menu-item.is-active{border-bottom:2px solid var(--ep-menu-active-color);color:var(--ep-menu-active-color)!important}.ep-menu--collapse{width:calc(var(--ep-menu-icon-width) + var(--ep-menu-base-level-padding) * 2)}.ep-menu--collapse>.ep-menu-item [class^=ep-icon],.ep-menu--collapse>.ep-sub-menu>.ep-sub-menu__title [class^=ep-icon],.ep-menu--collapse>.ep-menu-item-group>ul>.ep-sub-menu>.ep-sub-menu__title [class^=ep-icon]{margin:0;vertical-align:middle;width:var(--ep-menu-icon-width);text-align:center}.ep-menu--collapse>.ep-menu-item .ep-sub-menu__icon-arrow,.ep-menu--collapse>.ep-sub-menu>.ep-sub-menu__title .ep-sub-menu__icon-arrow,.ep-menu--collapse>.ep-menu-item-group>ul>.ep-sub-menu>.ep-sub-menu__title .ep-sub-menu__icon-arrow{display:none}.ep-menu--collapse>.ep-menu-item>span,.ep-menu--collapse>.ep-sub-menu>.ep-sub-menu__title>span,.ep-menu--collapse>.ep-menu-item-group>ul>.ep-sub-menu>.ep-sub-menu__title>span{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}.ep-menu--collapse>.ep-menu-item.is-active i{color:inherit}.ep-menu--collapse .ep-menu .ep-sub-menu{min-width:200px}.ep-menu--popup{z-index:100;min-width:200px;border:none;padding:5px 0;border-radius:var(--ep-border-radius-small);box-shadow:var(--ep-box-shadow-light)}.ep-menu .ep-icon{flex-shrink:0}.ep-menu-item{display:flex;align-items:center;height:var(--ep-menu-item-height);line-height:var(--ep-menu-item-height);font-size:var(--ep-menu-item-font-size);color:var(--ep-menu-text-color);padding:0 var(--ep-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--ep-transition-duration),background-color var(--ep-transition-duration),color var(--ep-transition-duration);box-sizing:border-box;white-space:nowrap}.ep-menu-item *{vertical-align:bottom}.ep-menu-item i{color:inherit}.ep-menu-item:hover,.ep-menu-item:focus{outline:none}.ep-menu-item:hover{background-color:var(--ep-menu-hover-bg-color)}.ep-menu-item.is-disabled{opacity:.25;cursor:not-allowed;background:none!important}.ep-menu-item [class^=ep-icon]{margin-right:5px;width:var(--ep-menu-icon-width);text-align:center;font-size:18px;vertical-align:middle}.ep-menu-item.is-active{color:var(--ep-menu-active-color)}.ep-menu-item.is-active i{color:inherit}.ep-menu-item .ep-menu-tooltip__trigger{position:absolute;left:0;top:0;height:100%;width:100%;display:inline-flex;align-items:center;box-sizing:border-box;padding:0 var(--ep-menu-base-level-padding)}.ep-sub-menu{list-style:none;margin:0;padding-left:0}.ep-sub-menu__title{display:flex;align-items:center;height:var(--ep-menu-item-height);line-height:var(--ep-menu-item-height);font-size:var(--ep-menu-item-font-size);color:var(--ep-menu-text-color);padding:0 var(--ep-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--ep-transition-duration),background-color var(--ep-transition-duration),color var(--ep-transition-duration);box-sizing:border-box;white-space:nowrap;padding-right:calc(var(--ep-menu-base-level-padding) + var(--ep-menu-icon-width))}.ep-sub-menu__title *{vertical-align:bottom}.ep-sub-menu__title i{color:inherit}.ep-sub-menu__title:hover,.ep-sub-menu__title:focus{outline:none}.ep-sub-menu__title.is-disabled{opacity:.25;cursor:not-allowed;background:none!important}.ep-sub-menu__title:hover{background-color:var(--ep-menu-hover-bg-color)}.ep-sub-menu .ep-menu{border:none}.ep-sub-menu .ep-menu-item{height:var(--ep-menu-sub-item-height);line-height:var(--ep-menu-sub-item-height)}.ep-sub-menu__hide-arrow .ep-sub-menu__icon-arrow{display:none!important}.ep-sub-menu.is-active .ep-sub-menu__title{border-bottom-color:var(--ep-menu-active-color)}.ep-sub-menu.is-disabled .ep-sub-menu__title,.ep-sub-menu.is-disabled .ep-menu-item{opacity:.25;cursor:not-allowed;background:none!important}.ep-sub-menu .ep-icon{vertical-align:middle;margin-right:5px;width:var(--ep-menu-icon-width);text-align:center;font-size:18px}.ep-sub-menu .ep-icon.ep-sub-menu__icon-more{margin-right:0!important}.ep-sub-menu .ep-sub-menu__icon-arrow{position:absolute;top:50%;right:var(--ep-menu-base-level-padding);margin-top:-6px;transition:transform var(--ep-transition-duration);font-size:12px;margin-right:0;width:inherit}.ep-menu-item-group>ul{padding:0}.ep-menu-item-group__title{padding:7px 0 7px var(--ep-menu-base-level-padding);line-height:normal;font-size:12px;color:var(--ep-text-color-secondary)}.horizontal-collapse-transition .ep-sub-menu__title .ep-sub-menu__icon-arrow{transition:var(--ep-transition-duration-fast);opacity:0}.ep-popper{--ep-popper-border-radius: var(--ep-popover-border-radius, 4px);position:absolute;border-radius:var(--ep-popper-border-radius);padding:5px 11px;z-index:2000;font-size:12px;line-height:20px;min-width:10px;word-wrap:break-word;visibility:visible}.ep-popper.is-dark{color:var(--ep-bg-color);background:var(--ep-text-color-primary);border:1px solid var(--ep-text-color-primary)}.ep-popper.is-dark .ep-popper__arrow:before{border:1px solid var(--ep-text-color-primary);background:var(--ep-text-color-primary);right:0}.ep-popper.is-light{background:var(--ep-bg-color-overlay);border:1px solid var(--ep-border-color-light)}.ep-popper.is-light .ep-popper__arrow:before{border:1px solid var(--ep-border-color-light);background:var(--ep-bg-color-overlay);right:0}.ep-popper.is-pure{padding:0}.ep-popper__arrow{position:absolute;width:10px;height:10px;z-index:-1}.ep-popper__arrow:before{position:absolute;width:10px;height:10px;z-index:-1;content:" ";transform:rotate(45deg);background:var(--ep-text-color-primary);box-sizing:border-box}.ep-popper[data-popper-placement^=top]>.ep-popper__arrow{bottom:-5px}.ep-popper[data-popper-placement^=top]>.ep-popper__arrow:before{border-bottom-right-radius:2px}.ep-popper[data-popper-placement^=bottom]>.ep-popper__arrow{top:-5px}.ep-popper[data-popper-placement^=bottom]>.ep-popper__arrow:before{border-top-left-radius:2px}.ep-popper[data-popper-placement^=left]>.ep-popper__arrow{right:-5px}.ep-popper[data-popper-placement^=left]>.ep-popper__arrow:before{border-top-right-radius:2px}.ep-popper[data-popper-placement^=right]>.ep-popper__arrow{left:-5px}.ep-popper[data-popper-placement^=right]>.ep-popper__arrow:before{border-bottom-left-radius:2px}.ep-popper[data-popper-placement^=top] .ep-popper__arrow:before{border-top-color:transparent!important;border-left-color:transparent!important}.ep-popper[data-popper-placement^=bottom] .ep-popper__arrow:before{border-bottom-color:transparent!important;border-right-color:transparent!important}.ep-popper[data-popper-placement^=left] .ep-popper__arrow:before{border-left-color:transparent!important;border-bottom-color:transparent!important}.ep-popper[data-popper-placement^=right] .ep-popper__arrow:before{border-right-color:transparent!important;border-top-color:transparent!important}#app[data-v-aa3fa0a7]{text-align:center;color:var(--ep-text-color-primary)}.main-container[data-v-aa3fa0a7]{height:calc(100vh - var(--ep-menu-item-height) - 3px)}[class*=ep-col-]{box-sizing:border-box}[class*=ep-col-].is-guttered{display:block;min-height:1px}.ep-col-0,.ep-col-0.is-guttered{display:none}.ep-col-0{max-width:0%;flex:0 0 0%}.ep-col-offset-0{margin-left:0%}.ep-col-pull-0{position:relative;right:0%}.ep-col-push-0{position:relative;left:0%}.ep-col-1{max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-offset-1{margin-left:4.1666666667%}.ep-col-pull-1{position:relative;right:4.1666666667%}.ep-col-push-1{position:relative;left:4.1666666667%}.ep-col-2{max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-offset-2{margin-left:8.3333333333%}.ep-col-pull-2{position:relative;right:8.3333333333%}.ep-col-push-2{position:relative;left:8.3333333333%}.ep-col-3{max-width:12.5%;flex:0 0 12.5%}.ep-col-offset-3{margin-left:12.5%}.ep-col-pull-3{position:relative;right:12.5%}.ep-col-push-3{position:relative;left:12.5%}.ep-col-4{max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-offset-4{margin-left:16.6666666667%}.ep-col-pull-4{position:relative;right:16.6666666667%}.ep-col-push-4{position:relative;left:16.6666666667%}.ep-col-5{max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-offset-5{margin-left:20.8333333333%}.ep-col-pull-5{position:relative;right:20.8333333333%}.ep-col-push-5{position:relative;left:20.8333333333%}.ep-col-6{max-width:25%;flex:0 0 25%}.ep-col-offset-6{margin-left:25%}.ep-col-pull-6{position:relative;right:25%}.ep-col-push-6{position:relative;left:25%}.ep-col-7{max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-offset-7{margin-left:29.1666666667%}.ep-col-pull-7{position:relative;right:29.1666666667%}.ep-col-push-7{position:relative;left:29.1666666667%}.ep-col-8{max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-offset-8{margin-left:33.3333333333%}.ep-col-pull-8{position:relative;right:33.3333333333%}.ep-col-push-8{position:relative;left:33.3333333333%}.ep-col-9{max-width:37.5%;flex:0 0 37.5%}.ep-col-offset-9{margin-left:37.5%}.ep-col-pull-9{position:relative;right:37.5%}.ep-col-push-9{position:relative;left:37.5%}.ep-col-10{max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-offset-10{margin-left:41.6666666667%}.ep-col-pull-10{position:relative;right:41.6666666667%}.ep-col-push-10{position:relative;left:41.6666666667%}.ep-col-11{max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-offset-11{margin-left:45.8333333333%}.ep-col-pull-11{position:relative;right:45.8333333333%}.ep-col-push-11{position:relative;left:45.8333333333%}.ep-col-12{max-width:50%;flex:0 0 50%}.ep-col-offset-12{margin-left:50%}.ep-col-pull-12{position:relative;right:50%}.ep-col-push-12{position:relative;left:50%}.ep-col-13{max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-offset-13{margin-left:54.1666666667%}.ep-col-pull-13{position:relative;right:54.1666666667%}.ep-col-push-13{position:relative;left:54.1666666667%}.ep-col-14{max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-offset-14{margin-left:58.3333333333%}.ep-col-pull-14{position:relative;right:58.3333333333%}.ep-col-push-14{position:relative;left:58.3333333333%}.ep-col-15{max-width:62.5%;flex:0 0 62.5%}.ep-col-offset-15{margin-left:62.5%}.ep-col-pull-15{position:relative;right:62.5%}.ep-col-push-15{position:relative;left:62.5%}.ep-col-16{max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-offset-16{margin-left:66.6666666667%}.ep-col-pull-16{position:relative;right:66.6666666667%}.ep-col-push-16{position:relative;left:66.6666666667%}.ep-col-17{max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-offset-17{margin-left:70.8333333333%}.ep-col-pull-17{position:relative;right:70.8333333333%}.ep-col-push-17{position:relative;left:70.8333333333%}.ep-col-18{max-width:75%;flex:0 0 75%}.ep-col-offset-18{margin-left:75%}.ep-col-pull-18{position:relative;right:75%}.ep-col-push-18{position:relative;left:75%}.ep-col-19{max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-offset-19{margin-left:79.1666666667%}.ep-col-pull-19{position:relative;right:79.1666666667%}.ep-col-push-19{position:relative;left:79.1666666667%}.ep-col-20{max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-offset-20{margin-left:83.3333333333%}.ep-col-pull-20{position:relative;right:83.3333333333%}.ep-col-push-20{position:relative;left:83.3333333333%}.ep-col-21{max-width:87.5%;flex:0 0 87.5%}.ep-col-offset-21{margin-left:87.5%}.ep-col-pull-21{position:relative;right:87.5%}.ep-col-push-21{position:relative;left:87.5%}.ep-col-22{max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-offset-22{margin-left:91.6666666667%}.ep-col-pull-22{position:relative;right:91.6666666667%}.ep-col-push-22{position:relative;left:91.6666666667%}.ep-col-23{max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-offset-23{margin-left:95.8333333333%}.ep-col-pull-23{position:relative;right:95.8333333333%}.ep-col-push-23{position:relative;left:95.8333333333%}.ep-col-24{max-width:100%;flex:0 0 100%}.ep-col-offset-24{margin-left:100%}.ep-col-pull-24{position:relative;right:100%}.ep-col-push-24{position:relative;left:100%}@media only screen and (max-width: 768px){.ep-col-xs-0,.ep-col-xs-0.is-guttered{display:none}.ep-col-xs-0{max-width:0%;flex:0 0 0%}.ep-col-xs-offset-0{margin-left:0%}.ep-col-xs-pull-0{position:relative;right:0%}.ep-col-xs-push-0{position:relative;left:0%}.ep-col-xs-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-xs-offset-1{margin-left:4.1666666667%}.ep-col-xs-pull-1{position:relative;right:4.1666666667%}.ep-col-xs-push-1{position:relative;left:4.1666666667%}.ep-col-xs-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-xs-offset-2{margin-left:8.3333333333%}.ep-col-xs-pull-2{position:relative;right:8.3333333333%}.ep-col-xs-push-2{position:relative;left:8.3333333333%}.ep-col-xs-3{display:block;max-width:12.5%;flex:0 0 12.5%}.ep-col-xs-offset-3{margin-left:12.5%}.ep-col-xs-pull-3{position:relative;right:12.5%}.ep-col-xs-push-3{position:relative;left:12.5%}.ep-col-xs-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-xs-offset-4{margin-left:16.6666666667%}.ep-col-xs-pull-4{position:relative;right:16.6666666667%}.ep-col-xs-push-4{position:relative;left:16.6666666667%}.ep-col-xs-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-xs-offset-5{margin-left:20.8333333333%}.ep-col-xs-pull-5{position:relative;right:20.8333333333%}.ep-col-xs-push-5{position:relative;left:20.8333333333%}.ep-col-xs-6{display:block;max-width:25%;flex:0 0 25%}.ep-col-xs-offset-6{margin-left:25%}.ep-col-xs-pull-6{position:relative;right:25%}.ep-col-xs-push-6{position:relative;left:25%}.ep-col-xs-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-xs-offset-7{margin-left:29.1666666667%}.ep-col-xs-pull-7{position:relative;right:29.1666666667%}.ep-col-xs-push-7{position:relative;left:29.1666666667%}.ep-col-xs-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-xs-offset-8{margin-left:33.3333333333%}.ep-col-xs-pull-8{position:relative;right:33.3333333333%}.ep-col-xs-push-8{position:relative;left:33.3333333333%}.ep-col-xs-9{display:block;max-width:37.5%;flex:0 0 37.5%}.ep-col-xs-offset-9{margin-left:37.5%}.ep-col-xs-pull-9{position:relative;right:37.5%}.ep-col-xs-push-9{position:relative;left:37.5%}.ep-col-xs-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-xs-offset-10{margin-left:41.6666666667%}.ep-col-xs-pull-10{position:relative;right:41.6666666667%}.ep-col-xs-push-10{position:relative;left:41.6666666667%}.ep-col-xs-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-xs-offset-11{margin-left:45.8333333333%}.ep-col-xs-pull-11{position:relative;right:45.8333333333%}.ep-col-xs-push-11{position:relative;left:45.8333333333%}.ep-col-xs-12{display:block;max-width:50%;flex:0 0 50%}.ep-col-xs-offset-12{margin-left:50%}.ep-col-xs-pull-12{position:relative;right:50%}.ep-col-xs-push-12{position:relative;left:50%}.ep-col-xs-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-xs-offset-13{margin-left:54.1666666667%}.ep-col-xs-pull-13{position:relative;right:54.1666666667%}.ep-col-xs-push-13{position:relative;left:54.1666666667%}.ep-col-xs-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-xs-offset-14{margin-left:58.3333333333%}.ep-col-xs-pull-14{position:relative;right:58.3333333333%}.ep-col-xs-push-14{position:relative;left:58.3333333333%}.ep-col-xs-15{display:block;max-width:62.5%;flex:0 0 62.5%}.ep-col-xs-offset-15{margin-left:62.5%}.ep-col-xs-pull-15{position:relative;right:62.5%}.ep-col-xs-push-15{position:relative;left:62.5%}.ep-col-xs-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-xs-offset-16{margin-left:66.6666666667%}.ep-col-xs-pull-16{position:relative;right:66.6666666667%}.ep-col-xs-push-16{position:relative;left:66.6666666667%}.ep-col-xs-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-xs-offset-17{margin-left:70.8333333333%}.ep-col-xs-pull-17{position:relative;right:70.8333333333%}.ep-col-xs-push-17{position:relative;left:70.8333333333%}.ep-col-xs-18{display:block;max-width:75%;flex:0 0 75%}.ep-col-xs-offset-18{margin-left:75%}.ep-col-xs-pull-18{position:relative;right:75%}.ep-col-xs-push-18{position:relative;left:75%}.ep-col-xs-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-xs-offset-19{margin-left:79.1666666667%}.ep-col-xs-pull-19{position:relative;right:79.1666666667%}.ep-col-xs-push-19{position:relative;left:79.1666666667%}.ep-col-xs-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-xs-offset-20{margin-left:83.3333333333%}.ep-col-xs-pull-20{position:relative;right:83.3333333333%}.ep-col-xs-push-20{position:relative;left:83.3333333333%}.ep-col-xs-21{display:block;max-width:87.5%;flex:0 0 87.5%}.ep-col-xs-offset-21{margin-left:87.5%}.ep-col-xs-pull-21{position:relative;right:87.5%}.ep-col-xs-push-21{position:relative;left:87.5%}.ep-col-xs-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-xs-offset-22{margin-left:91.6666666667%}.ep-col-xs-pull-22{position:relative;right:91.6666666667%}.ep-col-xs-push-22{position:relative;left:91.6666666667%}.ep-col-xs-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-xs-offset-23{margin-left:95.8333333333%}.ep-col-xs-pull-23{position:relative;right:95.8333333333%}.ep-col-xs-push-23{position:relative;left:95.8333333333%}.ep-col-xs-24{display:block;max-width:100%;flex:0 0 100%}.ep-col-xs-offset-24{margin-left:100%}.ep-col-xs-pull-24{position:relative;right:100%}.ep-col-xs-push-24{position:relative;left:100%}}@media only screen and (min-width: 768px){.ep-col-sm-0,.ep-col-sm-0.is-guttered{display:none}.ep-col-sm-0{max-width:0%;flex:0 0 0%}.ep-col-sm-offset-0{margin-left:0%}.ep-col-sm-pull-0{position:relative;right:0%}.ep-col-sm-push-0{position:relative;left:0%}.ep-col-sm-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-sm-offset-1{margin-left:4.1666666667%}.ep-col-sm-pull-1{position:relative;right:4.1666666667%}.ep-col-sm-push-1{position:relative;left:4.1666666667%}.ep-col-sm-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-sm-offset-2{margin-left:8.3333333333%}.ep-col-sm-pull-2{position:relative;right:8.3333333333%}.ep-col-sm-push-2{position:relative;left:8.3333333333%}.ep-col-sm-3{display:block;max-width:12.5%;flex:0 0 12.5%}.ep-col-sm-offset-3{margin-left:12.5%}.ep-col-sm-pull-3{position:relative;right:12.5%}.ep-col-sm-push-3{position:relative;left:12.5%}.ep-col-sm-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-sm-offset-4{margin-left:16.6666666667%}.ep-col-sm-pull-4{position:relative;right:16.6666666667%}.ep-col-sm-push-4{position:relative;left:16.6666666667%}.ep-col-sm-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-sm-offset-5{margin-left:20.8333333333%}.ep-col-sm-pull-5{position:relative;right:20.8333333333%}.ep-col-sm-push-5{position:relative;left:20.8333333333%}.ep-col-sm-6{display:block;max-width:25%;flex:0 0 25%}.ep-col-sm-offset-6{margin-left:25%}.ep-col-sm-pull-6{position:relative;right:25%}.ep-col-sm-push-6{position:relative;left:25%}.ep-col-sm-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-sm-offset-7{margin-left:29.1666666667%}.ep-col-sm-pull-7{position:relative;right:29.1666666667%}.ep-col-sm-push-7{position:relative;left:29.1666666667%}.ep-col-sm-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-sm-offset-8{margin-left:33.3333333333%}.ep-col-sm-pull-8{position:relative;right:33.3333333333%}.ep-col-sm-push-8{position:relative;left:33.3333333333%}.ep-col-sm-9{display:block;max-width:37.5%;flex:0 0 37.5%}.ep-col-sm-offset-9{margin-left:37.5%}.ep-col-sm-pull-9{position:relative;right:37.5%}.ep-col-sm-push-9{position:relative;left:37.5%}.ep-col-sm-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-sm-offset-10{margin-left:41.6666666667%}.ep-col-sm-pull-10{position:relative;right:41.6666666667%}.ep-col-sm-push-10{position:relative;left:41.6666666667%}.ep-col-sm-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-sm-offset-11{margin-left:45.8333333333%}.ep-col-sm-pull-11{position:relative;right:45.8333333333%}.ep-col-sm-push-11{position:relative;left:45.8333333333%}.ep-col-sm-12{display:block;max-width:50%;flex:0 0 50%}.ep-col-sm-offset-12{margin-left:50%}.ep-col-sm-pull-12{position:relative;right:50%}.ep-col-sm-push-12{position:relative;left:50%}.ep-col-sm-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-sm-offset-13{margin-left:54.1666666667%}.ep-col-sm-pull-13{position:relative;right:54.1666666667%}.ep-col-sm-push-13{position:relative;left:54.1666666667%}.ep-col-sm-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-sm-offset-14{margin-left:58.3333333333%}.ep-col-sm-pull-14{position:relative;right:58.3333333333%}.ep-col-sm-push-14{position:relative;left:58.3333333333%}.ep-col-sm-15{display:block;max-width:62.5%;flex:0 0 62.5%}.ep-col-sm-offset-15{margin-left:62.5%}.ep-col-sm-pull-15{position:relative;right:62.5%}.ep-col-sm-push-15{position:relative;left:62.5%}.ep-col-sm-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-sm-offset-16{margin-left:66.6666666667%}.ep-col-sm-pull-16{position:relative;right:66.6666666667%}.ep-col-sm-push-16{position:relative;left:66.6666666667%}.ep-col-sm-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-sm-offset-17{margin-left:70.8333333333%}.ep-col-sm-pull-17{position:relative;right:70.8333333333%}.ep-col-sm-push-17{position:relative;left:70.8333333333%}.ep-col-sm-18{display:block;max-width:75%;flex:0 0 75%}.ep-col-sm-offset-18{margin-left:75%}.ep-col-sm-pull-18{position:relative;right:75%}.ep-col-sm-push-18{position:relative;left:75%}.ep-col-sm-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-sm-offset-19{margin-left:79.1666666667%}.ep-col-sm-pull-19{position:relative;right:79.1666666667%}.ep-col-sm-push-19{position:relative;left:79.1666666667%}.ep-col-sm-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-sm-offset-20{margin-left:83.3333333333%}.ep-col-sm-pull-20{position:relative;right:83.3333333333%}.ep-col-sm-push-20{position:relative;left:83.3333333333%}.ep-col-sm-21{display:block;max-width:87.5%;flex:0 0 87.5%}.ep-col-sm-offset-21{margin-left:87.5%}.ep-col-sm-pull-21{position:relative;right:87.5%}.ep-col-sm-push-21{position:relative;left:87.5%}.ep-col-sm-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-sm-offset-22{margin-left:91.6666666667%}.ep-col-sm-pull-22{position:relative;right:91.6666666667%}.ep-col-sm-push-22{position:relative;left:91.6666666667%}.ep-col-sm-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-sm-offset-23{margin-left:95.8333333333%}.ep-col-sm-pull-23{position:relative;right:95.8333333333%}.ep-col-sm-push-23{position:relative;left:95.8333333333%}.ep-col-sm-24{display:block;max-width:100%;flex:0 0 100%}.ep-col-sm-offset-24{margin-left:100%}.ep-col-sm-pull-24{position:relative;right:100%}.ep-col-sm-push-24{position:relative;left:100%}}@media only screen and (min-width: 992px){.ep-col-md-0,.ep-col-md-0.is-guttered{display:none}.ep-col-md-0{max-width:0%;flex:0 0 0%}.ep-col-md-offset-0{margin-left:0%}.ep-col-md-pull-0{position:relative;right:0%}.ep-col-md-push-0{position:relative;left:0%}.ep-col-md-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-md-offset-1{margin-left:4.1666666667%}.ep-col-md-pull-1{position:relative;right:4.1666666667%}.ep-col-md-push-1{position:relative;left:4.1666666667%}.ep-col-md-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-md-offset-2{margin-left:8.3333333333%}.ep-col-md-pull-2{position:relative;right:8.3333333333%}.ep-col-md-push-2{position:relative;left:8.3333333333%}.ep-col-md-3{display:block;max-width:12.5%;flex:0 0 12.5%}.ep-col-md-offset-3{margin-left:12.5%}.ep-col-md-pull-3{position:relative;right:12.5%}.ep-col-md-push-3{position:relative;left:12.5%}.ep-col-md-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-md-offset-4{margin-left:16.6666666667%}.ep-col-md-pull-4{position:relative;right:16.6666666667%}.ep-col-md-push-4{position:relative;left:16.6666666667%}.ep-col-md-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-md-offset-5{margin-left:20.8333333333%}.ep-col-md-pull-5{position:relative;right:20.8333333333%}.ep-col-md-push-5{position:relative;left:20.8333333333%}.ep-col-md-6{display:block;max-width:25%;flex:0 0 25%}.ep-col-md-offset-6{margin-left:25%}.ep-col-md-pull-6{position:relative;right:25%}.ep-col-md-push-6{position:relative;left:25%}.ep-col-md-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-md-offset-7{margin-left:29.1666666667%}.ep-col-md-pull-7{position:relative;right:29.1666666667%}.ep-col-md-push-7{position:relative;left:29.1666666667%}.ep-col-md-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-md-offset-8{margin-left:33.3333333333%}.ep-col-md-pull-8{position:relative;right:33.3333333333%}.ep-col-md-push-8{position:relative;left:33.3333333333%}.ep-col-md-9{display:block;max-width:37.5%;flex:0 0 37.5%}.ep-col-md-offset-9{margin-left:37.5%}.ep-col-md-pull-9{position:relative;right:37.5%}.ep-col-md-push-9{position:relative;left:37.5%}.ep-col-md-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-md-offset-10{margin-left:41.6666666667%}.ep-col-md-pull-10{position:relative;right:41.6666666667%}.ep-col-md-push-10{position:relative;left:41.6666666667%}.ep-col-md-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-md-offset-11{margin-left:45.8333333333%}.ep-col-md-pull-11{position:relative;right:45.8333333333%}.ep-col-md-push-11{position:relative;left:45.8333333333%}.ep-col-md-12{display:block;max-width:50%;flex:0 0 50%}.ep-col-md-offset-12{margin-left:50%}.ep-col-md-pull-12{position:relative;right:50%}.ep-col-md-push-12{position:relative;left:50%}.ep-col-md-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-md-offset-13{margin-left:54.1666666667%}.ep-col-md-pull-13{position:relative;right:54.1666666667%}.ep-col-md-push-13{position:relative;left:54.1666666667%}.ep-col-md-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-md-offset-14{margin-left:58.3333333333%}.ep-col-md-pull-14{position:relative;right:58.3333333333%}.ep-col-md-push-14{position:relative;left:58.3333333333%}.ep-col-md-15{display:block;max-width:62.5%;flex:0 0 62.5%}.ep-col-md-offset-15{margin-left:62.5%}.ep-col-md-pull-15{position:relative;right:62.5%}.ep-col-md-push-15{position:relative;left:62.5%}.ep-col-md-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-md-offset-16{margin-left:66.6666666667%}.ep-col-md-pull-16{position:relative;right:66.6666666667%}.ep-col-md-push-16{position:relative;left:66.6666666667%}.ep-col-md-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-md-offset-17{margin-left:70.8333333333%}.ep-col-md-pull-17{position:relative;right:70.8333333333%}.ep-col-md-push-17{position:relative;left:70.8333333333%}.ep-col-md-18{display:block;max-width:75%;flex:0 0 75%}.ep-col-md-offset-18{margin-left:75%}.ep-col-md-pull-18{position:relative;right:75%}.ep-col-md-push-18{position:relative;left:75%}.ep-col-md-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-md-offset-19{margin-left:79.1666666667%}.ep-col-md-pull-19{position:relative;right:79.1666666667%}.ep-col-md-push-19{position:relative;left:79.1666666667%}.ep-col-md-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-md-offset-20{margin-left:83.3333333333%}.ep-col-md-pull-20{position:relative;right:83.3333333333%}.ep-col-md-push-20{position:relative;left:83.3333333333%}.ep-col-md-21{display:block;max-width:87.5%;flex:0 0 87.5%}.ep-col-md-offset-21{margin-left:87.5%}.ep-col-md-pull-21{position:relative;right:87.5%}.ep-col-md-push-21{position:relative;left:87.5%}.ep-col-md-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-md-offset-22{margin-left:91.6666666667%}.ep-col-md-pull-22{position:relative;right:91.6666666667%}.ep-col-md-push-22{position:relative;left:91.6666666667%}.ep-col-md-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-md-offset-23{margin-left:95.8333333333%}.ep-col-md-pull-23{position:relative;right:95.8333333333%}.ep-col-md-push-23{position:relative;left:95.8333333333%}.ep-col-md-24{display:block;max-width:100%;flex:0 0 100%}.ep-col-md-offset-24{margin-left:100%}.ep-col-md-pull-24{position:relative;right:100%}.ep-col-md-push-24{position:relative;left:100%}}@media only screen and (min-width: 1200px){.ep-col-lg-0,.ep-col-lg-0.is-guttered{display:none}.ep-col-lg-0{max-width:0%;flex:0 0 0%}.ep-col-lg-offset-0{margin-left:0%}.ep-col-lg-pull-0{position:relative;right:0%}.ep-col-lg-push-0{position:relative;left:0%}.ep-col-lg-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-lg-offset-1{margin-left:4.1666666667%}.ep-col-lg-pull-1{position:relative;right:4.1666666667%}.ep-col-lg-push-1{position:relative;left:4.1666666667%}.ep-col-lg-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-lg-offset-2{margin-left:8.3333333333%}.ep-col-lg-pull-2{position:relative;right:8.3333333333%}.ep-col-lg-push-2{position:relative;left:8.3333333333%}.ep-col-lg-3{display:block;max-width:12.5%;flex:0 0 12.5%}.ep-col-lg-offset-3{margin-left:12.5%}.ep-col-lg-pull-3{position:relative;right:12.5%}.ep-col-lg-push-3{position:relative;left:12.5%}.ep-col-lg-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-lg-offset-4{margin-left:16.6666666667%}.ep-col-lg-pull-4{position:relative;right:16.6666666667%}.ep-col-lg-push-4{position:relative;left:16.6666666667%}.ep-col-lg-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-lg-offset-5{margin-left:20.8333333333%}.ep-col-lg-pull-5{position:relative;right:20.8333333333%}.ep-col-lg-push-5{position:relative;left:20.8333333333%}.ep-col-lg-6{display:block;max-width:25%;flex:0 0 25%}.ep-col-lg-offset-6{margin-left:25%}.ep-col-lg-pull-6{position:relative;right:25%}.ep-col-lg-push-6{position:relative;left:25%}.ep-col-lg-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-lg-offset-7{margin-left:29.1666666667%}.ep-col-lg-pull-7{position:relative;right:29.1666666667%}.ep-col-lg-push-7{position:relative;left:29.1666666667%}.ep-col-lg-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-lg-offset-8{margin-left:33.3333333333%}.ep-col-lg-pull-8{position:relative;right:33.3333333333%}.ep-col-lg-push-8{position:relative;left:33.3333333333%}.ep-col-lg-9{display:block;max-width:37.5%;flex:0 0 37.5%}.ep-col-lg-offset-9{margin-left:37.5%}.ep-col-lg-pull-9{position:relative;right:37.5%}.ep-col-lg-push-9{position:relative;left:37.5%}.ep-col-lg-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-lg-offset-10{margin-left:41.6666666667%}.ep-col-lg-pull-10{position:relative;right:41.6666666667%}.ep-col-lg-push-10{position:relative;left:41.6666666667%}.ep-col-lg-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-lg-offset-11{margin-left:45.8333333333%}.ep-col-lg-pull-11{position:relative;right:45.8333333333%}.ep-col-lg-push-11{position:relative;left:45.8333333333%}.ep-col-lg-12{display:block;max-width:50%;flex:0 0 50%}.ep-col-lg-offset-12{margin-left:50%}.ep-col-lg-pull-12{position:relative;right:50%}.ep-col-lg-push-12{position:relative;left:50%}.ep-col-lg-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-lg-offset-13{margin-left:54.1666666667%}.ep-col-lg-pull-13{position:relative;right:54.1666666667%}.ep-col-lg-push-13{position:relative;left:54.1666666667%}.ep-col-lg-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-lg-offset-14{margin-left:58.3333333333%}.ep-col-lg-pull-14{position:relative;right:58.3333333333%}.ep-col-lg-push-14{position:relative;left:58.3333333333%}.ep-col-lg-15{display:block;max-width:62.5%;flex:0 0 62.5%}.ep-col-lg-offset-15{margin-left:62.5%}.ep-col-lg-pull-15{position:relative;right:62.5%}.ep-col-lg-push-15{position:relative;left:62.5%}.ep-col-lg-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-lg-offset-16{margin-left:66.6666666667%}.ep-col-lg-pull-16{position:relative;right:66.6666666667%}.ep-col-lg-push-16{position:relative;left:66.6666666667%}.ep-col-lg-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-lg-offset-17{margin-left:70.8333333333%}.ep-col-lg-pull-17{position:relative;right:70.8333333333%}.ep-col-lg-push-17{position:relative;left:70.8333333333%}.ep-col-lg-18{display:block;max-width:75%;flex:0 0 75%}.ep-col-lg-offset-18{margin-left:75%}.ep-col-lg-pull-18{position:relative;right:75%}.ep-col-lg-push-18{position:relative;left:75%}.ep-col-lg-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-lg-offset-19{margin-left:79.1666666667%}.ep-col-lg-pull-19{position:relative;right:79.1666666667%}.ep-col-lg-push-19{position:relative;left:79.1666666667%}.ep-col-lg-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-lg-offset-20{margin-left:83.3333333333%}.ep-col-lg-pull-20{position:relative;right:83.3333333333%}.ep-col-lg-push-20{position:relative;left:83.3333333333%}.ep-col-lg-21{display:block;max-width:87.5%;flex:0 0 87.5%}.ep-col-lg-offset-21{margin-left:87.5%}.ep-col-lg-pull-21{position:relative;right:87.5%}.ep-col-lg-push-21{position:relative;left:87.5%}.ep-col-lg-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-lg-offset-22{margin-left:91.6666666667%}.ep-col-lg-pull-22{position:relative;right:91.6666666667%}.ep-col-lg-push-22{position:relative;left:91.6666666667%}.ep-col-lg-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-lg-offset-23{margin-left:95.8333333333%}.ep-col-lg-pull-23{position:relative;right:95.8333333333%}.ep-col-lg-push-23{position:relative;left:95.8333333333%}.ep-col-lg-24{display:block;max-width:100%;flex:0 0 100%}.ep-col-lg-offset-24{margin-left:100%}.ep-col-lg-pull-24{position:relative;right:100%}.ep-col-lg-push-24{position:relative;left:100%}}@media only screen and (min-width: 1920px){.ep-col-xl-0,.ep-col-xl-0.is-guttered{display:none}.ep-col-xl-0{max-width:0%;flex:0 0 0%}.ep-col-xl-offset-0{margin-left:0%}.ep-col-xl-pull-0{position:relative;right:0%}.ep-col-xl-push-0{position:relative;left:0%}.ep-col-xl-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-xl-offset-1{margin-left:4.1666666667%}.ep-col-xl-pull-1{position:relative;right:4.1666666667%}.ep-col-xl-push-1{position:relative;left:4.1666666667%}.ep-col-xl-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-xl-offset-2{margin-left:8.3333333333%}.ep-col-xl-pull-2{position:relative;right:8.3333333333%}.ep-col-xl-push-2{position:relative;left:8.3333333333%}.ep-col-xl-3{display:block;max-width:12.5%;flex:0 0 12.5%}.ep-col-xl-offset-3{margin-left:12.5%}.ep-col-xl-pull-3{position:relative;right:12.5%}.ep-col-xl-push-3{position:relative;left:12.5%}.ep-col-xl-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-xl-offset-4{margin-left:16.6666666667%}.ep-col-xl-pull-4{position:relative;right:16.6666666667%}.ep-col-xl-push-4{position:relative;left:16.6666666667%}.ep-col-xl-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-xl-offset-5{margin-left:20.8333333333%}.ep-col-xl-pull-5{position:relative;right:20.8333333333%}.ep-col-xl-push-5{position:relative;left:20.8333333333%}.ep-col-xl-6{display:block;max-width:25%;flex:0 0 25%}.ep-col-xl-offset-6{margin-left:25%}.ep-col-xl-pull-6{position:relative;right:25%}.ep-col-xl-push-6{position:relative;left:25%}.ep-col-xl-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-xl-offset-7{margin-left:29.1666666667%}.ep-col-xl-pull-7{position:relative;right:29.1666666667%}.ep-col-xl-push-7{position:relative;left:29.1666666667%}.ep-col-xl-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-xl-offset-8{margin-left:33.3333333333%}.ep-col-xl-pull-8{position:relative;right:33.3333333333%}.ep-col-xl-push-8{position:relative;left:33.3333333333%}.ep-col-xl-9{display:block;max-width:37.5%;flex:0 0 37.5%}.ep-col-xl-offset-9{margin-left:37.5%}.ep-col-xl-pull-9{position:relative;right:37.5%}.ep-col-xl-push-9{position:relative;left:37.5%}.ep-col-xl-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-xl-offset-10{margin-left:41.6666666667%}.ep-col-xl-pull-10{position:relative;right:41.6666666667%}.ep-col-xl-push-10{position:relative;left:41.6666666667%}.ep-col-xl-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-xl-offset-11{margin-left:45.8333333333%}.ep-col-xl-pull-11{position:relative;right:45.8333333333%}.ep-col-xl-push-11{position:relative;left:45.8333333333%}.ep-col-xl-12{display:block;max-width:50%;flex:0 0 50%}.ep-col-xl-offset-12{margin-left:50%}.ep-col-xl-pull-12{position:relative;right:50%}.ep-col-xl-push-12{position:relative;left:50%}.ep-col-xl-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-xl-offset-13{margin-left:54.1666666667%}.ep-col-xl-pull-13{position:relative;right:54.1666666667%}.ep-col-xl-push-13{position:relative;left:54.1666666667%}.ep-col-xl-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-xl-offset-14{margin-left:58.3333333333%}.ep-col-xl-pull-14{position:relative;right:58.3333333333%}.ep-col-xl-push-14{position:relative;left:58.3333333333%}.ep-col-xl-15{display:block;max-width:62.5%;flex:0 0 62.5%}.ep-col-xl-offset-15{margin-left:62.5%}.ep-col-xl-pull-15{position:relative;right:62.5%}.ep-col-xl-push-15{position:relative;left:62.5%}.ep-col-xl-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-xl-offset-16{margin-left:66.6666666667%}.ep-col-xl-pull-16{position:relative;right:66.6666666667%}.ep-col-xl-push-16{position:relative;left:66.6666666667%}.ep-col-xl-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-xl-offset-17{margin-left:70.8333333333%}.ep-col-xl-pull-17{position:relative;right:70.8333333333%}.ep-col-xl-push-17{position:relative;left:70.8333333333%}.ep-col-xl-18{display:block;max-width:75%;flex:0 0 75%}.ep-col-xl-offset-18{margin-left:75%}.ep-col-xl-pull-18{position:relative;right:75%}.ep-col-xl-push-18{position:relative;left:75%}.ep-col-xl-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-xl-offset-19{margin-left:79.1666666667%}.ep-col-xl-pull-19{position:relative;right:79.1666666667%}.ep-col-xl-push-19{position:relative;left:79.1666666667%}.ep-col-xl-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-xl-offset-20{margin-left:83.3333333333%}.ep-col-xl-pull-20{position:relative;right:83.3333333333%}.ep-col-xl-push-20{position:relative;left:83.3333333333%}.ep-col-xl-21{display:block;max-width:87.5%;flex:0 0 87.5%}.ep-col-xl-offset-21{margin-left:87.5%}.ep-col-xl-pull-21{position:relative;right:87.5%}.ep-col-xl-push-21{position:relative;left:87.5%}.ep-col-xl-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-xl-offset-22{margin-left:91.6666666667%}.ep-col-xl-pull-22{position:relative;right:91.6666666667%}.ep-col-xl-push-22{position:relative;left:91.6666666667%}.ep-col-xl-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-xl-offset-23{margin-left:95.8333333333%}.ep-col-xl-pull-23{position:relative;right:95.8333333333%}.ep-col-xl-push-23{position:relative;left:95.8333333333%}.ep-col-xl-24{display:block;max-width:100%;flex:0 0 100%}.ep-col-xl-offset-24{margin-left:100%}.ep-col-xl-pull-24{position:relative;right:100%}.ep-col-xl-push-24{position:relative;left:100%}}.ep-row{display:flex;flex-wrap:wrap;position:relative;box-sizing:border-box}.ep-row.is-justify-center{justify-content:center}.ep-row.is-justify-end{justify-content:flex-end}.ep-row.is-justify-space-between{justify-content:space-between}.ep-row.is-justify-space-around{justify-content:space-around}.ep-row.is-justify-space-evenly{justify-content:space-evenly}.ep-row.is-align-middle{align-items:center}.ep-row.is-align-bottom{align-items:flex-end}.ep-button{--ep-button-font-weight: var(--ep-font-weight-primary);--ep-button-border-color: var(--ep-border-color);--ep-button-bg-color: var(--ep-fill-color-blank);--ep-button-text-color: var(--ep-text-color-regular);--ep-button-disabled-text-color: var(--ep-disabled-text-color);--ep-button-disabled-bg-color: var(--ep-fill-color-blank);--ep-button-disabled-border-color: var(--ep-border-color-light);--ep-button-divide-border-color: rgba(255, 255, 255, .5);--ep-button-hover-text-color: var(--ep-color-primary);--ep-button-hover-bg-color: var(--ep-color-primary-light-9);--ep-button-hover-border-color: var(--ep-color-primary-light-7);--ep-button-active-text-color: var(--ep-button-hover-text-color);--ep-button-active-border-color: var(--ep-color-primary);--ep-button-active-bg-color: var(--ep-button-hover-bg-color);--ep-button-outline-color: var(--ep-color-primary-light-5);--ep-button-hover-link-text-color: var(--ep-color-info);--ep-button-active-color: var(--ep-text-color-primary);display:inline-flex;justify-content:center;align-items:center;line-height:1;height:32px;white-space:nowrap;cursor:pointer;color:var(--ep-button-text-color);text-align:center;box-sizing:border-box;outline:none;transition:.1s;font-weight:var(--ep-button-font-weight);-webkit-user-select:none;user-select:none;vertical-align:middle;-webkit-appearance:none;background-color:var(--ep-button-bg-color);border:var(--ep-border);border-color:var(--ep-button-border-color);padding:8px 49px;font-size:var(--ep-font-size-base);border-radius:var(--ep-border-radius-base)}.ep-button:hover,.ep-button:focus{color:var(--ep-button-hover-text-color);border-color:var(--ep-button-hover-border-color);background-color:var(--ep-button-hover-bg-color);outline:none}.ep-button:active{color:var(--ep-button-active-text-color);border-color:var(--ep-button-active-border-color);background-color:var(--ep-button-active-bg-color);outline:none}.ep-button:focus-visible{outline:2px solid var(--ep-button-outline-color);outline-offset:1px}.ep-button>span{display:inline-flex;align-items:center}.ep-button+.ep-button{margin-left:12px}.ep-button.is-round{padding:8px 49px}.ep-button::-moz-focus-inner{border:0}.ep-button [class*=ep-icon]+span{margin-left:6px}.ep-button [class*=ep-icon] svg{vertical-align:bottom}.ep-button.is-plain{--ep-button-hover-text-color: var(--ep-color-primary);--ep-button-hover-bg-color: var(--ep-fill-color-blank);--ep-button-hover-border-color: var(--ep-color-primary)}.ep-button.is-active{color:var(--ep-button-active-text-color);border-color:var(--ep-button-active-border-color);background-color:var(--ep-button-active-bg-color);outline:none}.ep-button.is-disabled,.ep-button.is-disabled:hover,.ep-button.is-disabled:focus{color:var(--ep-button-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--ep-button-disabled-bg-color);border-color:var(--ep-button-disabled-border-color)}.ep-button.is-loading{position:relative;pointer-events:none}.ep-button.is-loading:before{z-index:1;pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:var(--ep-mask-color-extra-light)}.ep-button.is-round{border-radius:var(--ep-border-radius-round)}.ep-button.is-circle{border-radius:50%;padding:8px}.ep-button.is-text{color:var(--ep-button-text-color);border:0 solid transparent;background-color:transparent}.ep-button.is-text.is-disabled{color:var(--ep-button-disabled-text-color);background-color:transparent!important}.ep-button.is-text:not(.is-disabled):hover,.ep-button.is-text:not(.is-disabled):focus{background-color:var(--ep-fill-color-light)}.ep-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--ep-button-outline-color);outline-offset:1px}.ep-button.is-text:not(.is-disabled):active{background-color:var(--ep-fill-color)}.ep-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--ep-fill-color-light)}.ep-button.is-text:not(.is-disabled).is-has-bg:hover,.ep-button.is-text:not(.is-disabled).is-has-bg:focus{background-color:var(--ep-fill-color)}.ep-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--ep-fill-color-dark)}.ep-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.ep-button.is-link{border-color:transparent;color:var(--ep-button-text-color);background:transparent;padding:2px;height:auto}.ep-button.is-link:hover,.ep-button.is-link:focus{color:var(--ep-button-hover-link-text-color)}.ep-button.is-link.is-disabled{color:var(--ep-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.ep-button.is-link:not(.is-disabled):hover,.ep-button.is-link:not(.is-disabled):focus{border-color:transparent;background-color:transparent}.ep-button.is-link:not(.is-disabled):active{color:var(--ep-button-active-color);border-color:transparent;background-color:transparent}.ep-button--text{border-color:transparent;background:transparent;color:var(--ep-color-primary);padding-left:0;padding-right:0}.ep-button--text.is-disabled{color:var(--ep-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.ep-button--text:not(.is-disabled):hover,.ep-button--text:not(.is-disabled):focus{color:var(--ep-color-primary-light-3);border-color:transparent;background-color:transparent}.ep-button--text:not(.is-disabled):active{color:var(--ep-color-primary-dark-2);border-color:transparent;background-color:transparent}.ep-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.ep-button--primary{--ep-button-text-color: var(--ep-color-white);--ep-button-bg-color: var(--ep-color-primary);--ep-button-border-color: var(--ep-color-primary);--ep-button-outline-color: var(--ep-color-primary-light-5);--ep-button-active-color: var(--ep-color-primary-dark-2);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-link-text-color: var(--ep-color-primary-light-5);--ep-button-hover-bg-color: var(--ep-color-primary-light-3);--ep-button-hover-border-color: var(--ep-color-primary-light-3);--ep-button-active-bg-color: var(--ep-color-primary-dark-2);--ep-button-active-border-color: var(--ep-color-primary-dark-2);--ep-button-disabled-text-color: var(--ep-color-white);--ep-button-disabled-bg-color: var(--ep-color-primary-light-5);--ep-button-disabled-border-color: var(--ep-color-primary-light-5)}.ep-button--primary.is-plain,.ep-button--primary.is-text,.ep-button--primary.is-link{--ep-button-text-color: var(--ep-color-primary);--ep-button-bg-color: var(--ep-color-primary-light-9);--ep-button-border-color: var(--ep-color-primary-light-5);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-bg-color: var(--ep-color-primary);--ep-button-hover-border-color: var(--ep-color-primary);--ep-button-active-text-color: var(--ep-color-white)}.ep-button--primary.is-plain.is-disabled,.ep-button--primary.is-plain.is-disabled:hover,.ep-button--primary.is-plain.is-disabled:focus,.ep-button--primary.is-plain.is-disabled:active,.ep-button--primary.is-text.is-disabled,.ep-button--primary.is-text.is-disabled:hover,.ep-button--primary.is-text.is-disabled:focus,.ep-button--primary.is-text.is-disabled:active,.ep-button--primary.is-link.is-disabled,.ep-button--primary.is-link.is-disabled:hover,.ep-button--primary.is-link.is-disabled:focus,.ep-button--primary.is-link.is-disabled:active{color:var(--ep-color-primary-light-5);background-color:var(--ep-color-primary-light-9);border-color:var(--ep-color-primary-light-8)}.ep-button--success{--ep-button-text-color: var(--ep-color-white);--ep-button-bg-color: var(--ep-color-success);--ep-button-border-color: var(--ep-color-success);--ep-button-outline-color: var(--ep-color-success-light-5);--ep-button-active-color: var(--ep-color-success-dark-2);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-link-text-color: var(--ep-color-success-light-5);--ep-button-hover-bg-color: var(--ep-color-success-light-3);--ep-button-hover-border-color: var(--ep-color-success-light-3);--ep-button-active-bg-color: var(--ep-color-success-dark-2);--ep-button-active-border-color: var(--ep-color-success-dark-2);--ep-button-disabled-text-color: var(--ep-color-white);--ep-button-disabled-bg-color: var(--ep-color-success-light-5);--ep-button-disabled-border-color: var(--ep-color-success-light-5)}.ep-button--success.is-plain,.ep-button--success.is-text,.ep-button--success.is-link{--ep-button-text-color: var(--ep-color-success);--ep-button-bg-color: var(--ep-color-success-light-9);--ep-button-border-color: var(--ep-color-success-light-5);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-bg-color: var(--ep-color-success);--ep-button-hover-border-color: var(--ep-color-success);--ep-button-active-text-color: var(--ep-color-white)}.ep-button--success.is-plain.is-disabled,.ep-button--success.is-plain.is-disabled:hover,.ep-button--success.is-plain.is-disabled:focus,.ep-button--success.is-plain.is-disabled:active,.ep-button--success.is-text.is-disabled,.ep-button--success.is-text.is-disabled:hover,.ep-button--success.is-text.is-disabled:focus,.ep-button--success.is-text.is-disabled:active,.ep-button--success.is-link.is-disabled,.ep-button--success.is-link.is-disabled:hover,.ep-button--success.is-link.is-disabled:focus,.ep-button--success.is-link.is-disabled:active{color:var(--ep-color-success-light-5);background-color:var(--ep-color-success-light-9);border-color:var(--ep-color-success-light-8)}.ep-button--warning{--ep-button-text-color: var(--ep-color-white);--ep-button-bg-color: var(--ep-color-warning);--ep-button-border-color: var(--ep-color-warning);--ep-button-outline-color: var(--ep-color-warning-light-5);--ep-button-active-color: var(--ep-color-warning-dark-2);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-link-text-color: var(--ep-color-warning-light-5);--ep-button-hover-bg-color: var(--ep-color-warning-light-3);--ep-button-hover-border-color: var(--ep-color-warning-light-3);--ep-button-active-bg-color: var(--ep-color-warning-dark-2);--ep-button-active-border-color: var(--ep-color-warning-dark-2);--ep-button-disabled-text-color: var(--ep-color-white);--ep-button-disabled-bg-color: var(--ep-color-warning-light-5);--ep-button-disabled-border-color: var(--ep-color-warning-light-5)}.ep-button--warning.is-plain,.ep-button--warning.is-text,.ep-button--warning.is-link{--ep-button-text-color: var(--ep-color-warning);--ep-button-bg-color: var(--ep-color-warning-light-9);--ep-button-border-color: var(--ep-color-warning-light-5);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-bg-color: var(--ep-color-warning);--ep-button-hover-border-color: var(--ep-color-warning);--ep-button-active-text-color: var(--ep-color-white)}.ep-button--warning.is-plain.is-disabled,.ep-button--warning.is-plain.is-disabled:hover,.ep-button--warning.is-plain.is-disabled:focus,.ep-button--warning.is-plain.is-disabled:active,.ep-button--warning.is-text.is-disabled,.ep-button--warning.is-text.is-disabled:hover,.ep-button--warning.is-text.is-disabled:focus,.ep-button--warning.is-text.is-disabled:active,.ep-button--warning.is-link.is-disabled,.ep-button--warning.is-link.is-disabled:hover,.ep-button--warning.is-link.is-disabled:focus,.ep-button--warning.is-link.is-disabled:active{color:var(--ep-color-warning-light-5);background-color:var(--ep-color-warning-light-9);border-color:var(--ep-color-warning-light-8)}.ep-button--danger{--ep-button-text-color: var(--ep-color-white);--ep-button-bg-color: var(--ep-color-danger);--ep-button-border-color: var(--ep-color-danger);--ep-button-outline-color: var(--ep-color-danger-light-5);--ep-button-active-color: var(--ep-color-danger-dark-2);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-link-text-color: var(--ep-color-danger-light-5);--ep-button-hover-bg-color: var(--ep-color-danger-light-3);--ep-button-hover-border-color: var(--ep-color-danger-light-3);--ep-button-active-bg-color: var(--ep-color-danger-dark-2);--ep-button-active-border-color: var(--ep-color-danger-dark-2);--ep-button-disabled-text-color: var(--ep-color-white);--ep-button-disabled-bg-color: var(--ep-color-danger-light-5);--ep-button-disabled-border-color: var(--ep-color-danger-light-5)}.ep-button--danger.is-plain,.ep-button--danger.is-text,.ep-button--danger.is-link{--ep-button-text-color: var(--ep-color-danger);--ep-button-bg-color: var(--ep-color-danger-light-9);--ep-button-border-color: var(--ep-color-danger-light-5);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-bg-color: var(--ep-color-danger);--ep-button-hover-border-color: var(--ep-color-danger);--ep-button-active-text-color: var(--ep-color-white)}.ep-button--danger.is-plain.is-disabled,.ep-button--danger.is-plain.is-disabled:hover,.ep-button--danger.is-plain.is-disabled:focus,.ep-button--danger.is-plain.is-disabled:active,.ep-button--danger.is-text.is-disabled,.ep-button--danger.is-text.is-disabled:hover,.ep-button--danger.is-text.is-disabled:focus,.ep-button--danger.is-text.is-disabled:active,.ep-button--danger.is-link.is-disabled,.ep-button--danger.is-link.is-disabled:hover,.ep-button--danger.is-link.is-disabled:focus,.ep-button--danger.is-link.is-disabled:active{color:var(--ep-color-danger-light-5);background-color:var(--ep-color-danger-light-9);border-color:var(--ep-color-danger-light-8)}.ep-button--info{--ep-button-text-color: var(--ep-color-white);--ep-button-bg-color: var(--ep-color-info);--ep-button-border-color: var(--ep-color-info);--ep-button-outline-color: var(--ep-color-info-light-5);--ep-button-active-color: var(--ep-color-info-dark-2);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-link-text-color: var(--ep-color-info-light-5);--ep-button-hover-bg-color: var(--ep-color-info-light-3);--ep-button-hover-border-color: var(--ep-color-info-light-3);--ep-button-active-bg-color: var(--ep-color-info-dark-2);--ep-button-active-border-color: var(--ep-color-info-dark-2);--ep-button-disabled-text-color: var(--ep-color-white);--ep-button-disabled-bg-color: var(--ep-color-info-light-5);--ep-button-disabled-border-color: var(--ep-color-info-light-5)}.ep-button--info.is-plain,.ep-button--info.is-text,.ep-button--info.is-link{--ep-button-text-color: var(--ep-color-info);--ep-button-bg-color: var(--ep-color-info-light-9);--ep-button-border-color: var(--ep-color-info-light-5);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-bg-color: var(--ep-color-info);--ep-button-hover-border-color: var(--ep-color-info);--ep-button-active-text-color: var(--ep-color-white)}.ep-button--info.is-plain.is-disabled,.ep-button--info.is-plain.is-disabled:hover,.ep-button--info.is-plain.is-disabled:focus,.ep-button--info.is-plain.is-disabled:active,.ep-button--info.is-text.is-disabled,.ep-button--info.is-text.is-disabled:hover,.ep-button--info.is-text.is-disabled:focus,.ep-button--info.is-text.is-disabled:active,.ep-button--info.is-link.is-disabled,.ep-button--info.is-link.is-disabled:hover,.ep-button--info.is-link.is-disabled:focus,.ep-button--info.is-link.is-disabled:active{color:var(--ep-color-info-light-5);background-color:var(--ep-color-info-light-9);border-color:var(--ep-color-info-light-8)}.ep-button--large{--ep-button-size: 40px;height:var(--ep-button-size);padding:12px 19px;font-size:var(--ep-font-size-base);border-radius:var(--ep-border-radius-base)}.ep-button--large [class*=ep-icon]+span{margin-left:8px}.ep-button--large.is-round{padding:12px 19px}.ep-button--large.is-circle{width:var(--ep-button-size);padding:12px}.ep-button--small{--ep-button-size: 24px;height:var(--ep-button-size);padding:5px 11px;font-size:12px;border-radius:calc(var(--ep-border-radius-base) - 1px)}.ep-button--small [class*=ep-icon]+span{margin-left:4px}.ep-button--small.is-round{padding:5px 11px}.ep-button--small.is-circle{width:var(--ep-button-size);padding:5px}.ep-form{--ep-form-label-font-size: var(--ep-font-size-base)}.ep-form--label-left .ep-form-item__label{justify-content:flex-start}.ep-form--label-top .ep-form-item{display:block}.ep-form--label-top .ep-form-item .ep-form-item__label{display:block;height:auto;text-align:left;margin-bottom:8px;line-height:22px}.ep-form--inline .ep-form-item{display:inline-flex;vertical-align:middle;margin-right:32px}.ep-form--inline.ep-form--label-top{display:flex;flex-wrap:wrap}.ep-form--inline.ep-form--label-top .ep-form-item{display:block}.ep-form--large.ep-form--label-top .ep-form-item .ep-form-item__label{margin-bottom:12px;line-height:22px}.ep-form--default.ep-form--label-top .ep-form-item .ep-form-item__label{margin-bottom:8px;line-height:22px}.ep-form--small.ep-form--label-top .ep-form-item .ep-form-item__label{margin-bottom:4px;line-height:20px}.ep-form-item{display:flex;--font-size: 14px;margin-bottom:18px}.ep-form-item .ep-form-item{margin-bottom:0}.ep-form-item .ep-input__validateIcon{display:none}.ep-form-item--large{--font-size: 14px;--ep-form-label-font-size: var(--font-size);margin-bottom:22px}.ep-form-item--large .ep-form-item__label{height:40px;line-height:40px}.ep-form-item--large .ep-form-item__content{line-height:40px}.ep-form-item--large .ep-form-item__error{padding-top:4px}.ep-form-item--default{--font-size: 14px;--ep-form-label-font-size: var(--font-size);margin-bottom:18px}.ep-form-item--default .ep-form-item__label{height:32px;line-height:32px}.ep-form-item--default .ep-form-item__content{line-height:32px}.ep-form-item--default .ep-form-item__error{padding-top:2px}.ep-form-item--small{--font-size: 12px;--ep-form-label-font-size: var(--font-size);margin-bottom:18px}.ep-form-item--small .ep-form-item__label{height:24px;line-height:24px}.ep-form-item--small .ep-form-item__content{line-height:24px}.ep-form-item--small .ep-form-item__error{padding-top:2px}.ep-form-item__label-wrap{display:flex}.ep-form-item__label{display:inline-flex;justify-content:flex-end;align-items:flex-start;flex:0 0 auto;font-size:var(--ep-form-label-font-size);color:var(--ep-text-color-regular);height:32px;line-height:32px;padding:0 12px 0 0;box-sizing:border-box}.ep-form-item__content{display:flex;flex-wrap:wrap;align-items:center;flex:1;line-height:32px;position:relative;font-size:var(--font-size);min-width:0}.ep-form-item__content .ep-input-group{vertical-align:top}.ep-form-item__error{color:var(--ep-color-danger);font-size:12px;line-height:1;padding-top:2px;position:absolute;top:100%;left:0}.ep-form-item__error--inline{position:relative;top:auto;left:auto;display:inline-block;margin-left:10px}.ep-form-item.is-required:not(.is-no-asterisk).asterisk-left>.ep-form-item__label:before,.ep-form-item.is-required:not(.is-no-asterisk).asterisk-left>.ep-form-item__label-wrap>.ep-form-item__label:before{content:"*";color:var(--ep-color-danger);margin-right:4px}.ep-form-item.is-required:not(.is-no-asterisk).asterisk-right>.ep-form-item__label:after,.ep-form-item.is-required:not(.is-no-asterisk).asterisk-right>.ep-form-item__label-wrap>.ep-form-item__label:after{content:"*";color:var(--ep-color-danger);margin-left:4px}.ep-form-item.is-error .ep-select-v2__wrapper,.ep-form-item.is-error .ep-select-v2__wrapper:focus,.ep-form-item.is-error .ep-textarea__inner,.ep-form-item.is-error .ep-textarea__inner:focus{box-shadow:0 0 0 1px var(--ep-color-danger) inset}.ep-form-item.is-error .ep-input__wrapper{box-shadow:0 0 0 1px var(--ep-color-danger) inset}.ep-form-item.is-error .ep-input-group__append .ep-input__wrapper,.ep-form-item.is-error .ep-input-group__prepend .ep-input__wrapper{box-shadow:0 0 0 1px transparent inset}.ep-form-item.is-error .ep-input__validateIcon{color:var(--ep-color-danger)}.ep-form-item--feedback .ep-input__validateIcon{display:inline-flex}:root{--ep-popup-modal-bg-color: var(--ep-color-black);--ep-popup-modal-opacity: .5}.v-modal-enter{animation:v-modal-in var(--ep-transition-duration-fast) ease}.v-modal-leave{animation:v-modal-out var(--ep-transition-duration-fast) ease forwards}@keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:var(--ep-popup-modal-opacity);background:var(--ep-popup-modal-bg-color)}.ep-popup-parent--hidden{overflow:hidden}.ep-dialog{--ep-dialog-width: 50%;--ep-dialog-margin-top: 15vh;--ep-dialog-bg-color: var(--ep-bg-color);--ep-dialog-box-shadow: var(--ep-box-shadow);--ep-dialog-title-font-size: var(--ep-font-size-large);--ep-dialog-content-font-size: 14px;--ep-dialog-font-line-height: var(--ep-font-line-height-primary);--ep-dialog-padding-primary: 20px;--ep-dialog-border-radius: var(--ep-border-radius-small);position:relative;margin:var(--ep-dialog-margin-top, 15vh) auto 50px;background:var(--ep-dialog-bg-color);border-radius:var(--ep-dialog-border-radius);box-shadow:var(--ep-dialog-box-shadow);box-sizing:border-box;width:var(--ep-dialog-width, 50%)}.ep-dialog:focus{outline:none!important}.ep-dialog.is-align-center{margin:auto}.ep-dialog.is-fullscreen{--ep-dialog-width: 100%;--ep-dialog-margin-top: 0;margin-bottom:0;height:100%;overflow:auto}.ep-dialog__wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;margin:0}.ep-dialog.is-draggable .ep-dialog__header{cursor:move;-webkit-user-select:none;user-select:none}.ep-dialog__header{padding:var(--ep-dialog-padding-primary);padding-bottom:10px;margin-right:16px}.ep-dialog__headerbtn{position:absolute;top:6px;right:0;padding:0;width:54px;height:54px;background:transparent;border:none;outline:none;cursor:pointer;font-size:var(--ep-message-close-size, 16px)}.ep-dialog__headerbtn .ep-dialog__close{color:var(--ep-color-info);font-size:inherit}.ep-dialog__headerbtn:focus .ep-dialog__close,.ep-dialog__headerbtn:hover .ep-dialog__close{color:var(--ep-color-primary)}.ep-dialog__title{line-height:var(--ep-dialog-font-line-height);font-size:var(--ep-dialog-title-font-size);color:var(--ep-text-color-primary)}.ep-dialog__body{padding:calc(var(--ep-dialog-padding-primary) + 10px) var(--ep-dialog-padding-primary);color:var(--ep-text-color-regular);font-size:var(--ep-dialog-content-font-size)}.ep-dialog__footer{padding:var(--ep-dialog-padding-primary);padding-top:10px;text-align:right;box-sizing:border-box}.ep-dialog--center{text-align:center}.ep-dialog--center .ep-dialog__body{text-align:initial;padding:25px calc(var(--ep-dialog-padding-primary) + 5px) 30px}.ep-dialog--center .ep-dialog__footer{text-align:inherit}.ep-overlay-dialog{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto}.dialog-fade-enter-active{animation:modal-fade-in var(--ep-transition-duration)}.dialog-fade-enter-active .ep-overlay-dialog{animation:dialog-fade-in var(--ep-transition-duration)}.dialog-fade-leave-active{animation:modal-fade-out var(--ep-transition-duration)}.dialog-fade-leave-active .ep-overlay-dialog{animation:dialog-fade-out var(--ep-transition-duration)}@keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}.ep-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;height:100%;background-color:var(--ep-overlay-color-lighter);overflow:auto}.ep-overlay .ep-overlay-root{height:0}.ep-table{--ep-table-border-color: var(--ep-border-color-lighter);--ep-table-border: 1px solid var(--ep-table-border-color);--ep-table-text-color: var(--ep-text-color-regular);--ep-table-header-text-color: var(--ep-text-color-secondary);--ep-table-row-hover-bg-color: var(--ep-fill-color-light);--ep-table-current-row-bg-color: var(--ep-color-primary-light-9);--ep-table-header-bg-color: var(--ep-bg-color);--ep-table-fixed-box-shadow: var(--ep-box-shadow-light);--ep-table-bg-color: var(--ep-fill-color-blank);--ep-table-tr-bg-color: var(--ep-fill-color-blank);--ep-table-expanded-cell-bg-color: var(--ep-fill-color-blank);--ep-table-fixed-left-column: inset 10px 0 10px -10px rgba(0, 0, 0, .15);--ep-table-fixed-right-column: inset -10px 0 10px -10px rgba(0, 0, 0, .15);position:relative;overflow:hidden;box-sizing:border-box;height:-moz-fit-content;height:fit-content;width:100%;max-width:100%;background-color:var(--ep-table-bg-color);font-size:14px;color:var(--ep-table-text-color)}.ep-table__inner-wrapper{position:relative;display:flex;flex-direction:column;height:100%}.ep-table__inner-wrapper:before{left:0;bottom:0px;width:100%;height:1px}.ep-table.has-footer.ep-table--scrollable-y tr:last-child td.ep-table__cell,.ep-table.has-footer.ep-table--fluid-height tr:last-child td.ep-table__cell{border-bottom-color:transparent}.ep-table__empty-block{position:sticky;left:0;min-height:60px;text-align:center;width:100%;display:flex;justify-content:center;align-items:center}.ep-table__empty-text{line-height:60px;width:50%;color:var(--ep-text-color-secondary)}.ep-table__expand-column .cell{padding:0;text-align:center;-webkit-user-select:none;user-select:none}.ep-table__expand-icon{position:relative;cursor:pointer;color:var(--ep-text-color-regular);font-size:12px;transition:transform var(--ep-transition-duration-fast) ease-in-out;height:20px}.ep-table__expand-icon--expanded{transform:rotate(90deg)}.ep-table__expand-icon>.ep-icon{font-size:12px}.ep-table__expanded-cell{background-color:var(--ep-table-expanded-cell-bg-color)}.ep-table__expanded-cell[class*=cell]{padding:20px 50px}.ep-table__expanded-cell:hover{background-color:transparent!important}.ep-table__placeholder{display:inline-block;width:20px}.ep-table__append-wrapper{overflow:hidden}.ep-table--fit{border-right:0;border-bottom:0}.ep-table--fit .ep-table__cell.gutter{border-right-width:1px}.ep-table thead{color:var(--ep-table-header-text-color);font-weight:500}.ep-table thead.is-group th.ep-table__cell{background:var(--ep-fill-color-light)}.ep-table .ep-table__cell{padding:8px 0;min-width:0;box-sizing:border-box;text-overflow:ellipsis;vertical-align:middle;position:relative;text-align:left;z-index:1}.ep-table .ep-table__cell.is-center{text-align:center}.ep-table .ep-table__cell.is-right{text-align:right}.ep-table .ep-table__cell.gutter{width:15px;border-right-width:0;border-bottom-width:0;padding:0}.ep-table .ep-table__cell.is-hidden>*{visibility:hidden}.ep-table .cell{box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:normal;word-break:break-all;line-height:23px;padding:0 12px}.ep-table .cell.ep-tooltip{white-space:nowrap;min-width:50px}.ep-table--large{font-size:var(--ep-font-size-base)}.ep-table--large .ep-table__cell{padding:12px 0}.ep-table--large .cell{padding:0 16px}.ep-table--default{font-size:14px}.ep-table--default .ep-table__cell{padding:8px 0}.ep-table--default .cell{padding:0 12px}.ep-table--small{font-size:12px}.ep-table--small .ep-table__cell{padding:4px 0}.ep-table--small .cell{padding:0 8px}.ep-table tr{background-color:var(--ep-table-tr-bg-color)}.ep-table tr input[type=checkbox]{margin:0}.ep-table th.ep-table__cell.is-leaf,.ep-table td.ep-table__cell{border-bottom:var(--ep-table-border)}.ep-table th.ep-table__cell.is-sortable{cursor:pointer}.ep-table th.ep-table__cell{-webkit-user-select:none;user-select:none;background-color:var(--ep-table-header-bg-color)}.ep-table th.ep-table__cell>.cell.highlight{color:var(--ep-color-primary)}.ep-table th.ep-table__cell.required>div:before{display:inline-block;content:"";width:8px;height:8px;border-radius:50%;background:#ff4d51;margin-right:5px;vertical-align:middle}.ep-table td.ep-table__cell div{box-sizing:border-box}.ep-table td.ep-table__cell.gutter{width:0}.ep-table__footer-wrapper{border-top:var(--ep-table-border)}.ep-table--border:after,.ep-table--border:before,.ep-table--border .ep-table__inner-wrapper:after,.ep-table__inner-wrapper:before{content:"";position:absolute;background-color:var(--ep-table-border-color);z-index:3}.ep-table--border .ep-table__inner-wrapper:after{left:0;top:0;width:100%;height:1px}.ep-table--border:before{top:-1px;left:0;width:1px;height:100%}.ep-table--border:after{top:-1px;right:0;width:1px;height:100%}.ep-table--border .ep-table__inner-wrapper{border-right:none;border-bottom:none}.ep-table--border .ep-table__footer-wrapper{position:relative;flex-shrink:0}.ep-table--border .ep-table__cell{border-right:var(--ep-table-border)}.ep-table--border th.ep-table__cell.gutter:last-of-type{border-bottom:var(--ep-table-border);border-bottom-width:1px}.ep-table--border th.ep-table__cell{border-bottom:var(--ep-table-border)}.ep-table--hidden{visibility:hidden}.ep-table__header-wrapper,.ep-table__body-wrapper,.ep-table__footer-wrapper{width:100%}.ep-table__header-wrapper tr td.ep-table-fixed-column--left,.ep-table__header-wrapper tr td.ep-table-fixed-column--right,.ep-table__header-wrapper tr th.ep-table-fixed-column--left,.ep-table__header-wrapper tr th.ep-table-fixed-column--right,.ep-table__body-wrapper tr td.ep-table-fixed-column--left,.ep-table__body-wrapper tr td.ep-table-fixed-column--right,.ep-table__body-wrapper tr th.ep-table-fixed-column--left,.ep-table__body-wrapper tr th.ep-table-fixed-column--right,.ep-table__footer-wrapper tr td.ep-table-fixed-column--left,.ep-table__footer-wrapper tr td.ep-table-fixed-column--right,.ep-table__footer-wrapper tr th.ep-table-fixed-column--left,.ep-table__footer-wrapper tr th.ep-table-fixed-column--right{position:sticky!important;z-index:2;background:var(--ep-bg-color)}.ep-table__header-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__header-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__header-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__header-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--right.is-last-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--right.is-first-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--right.is-last-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--right.is-first-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--right.is-last-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--right.is-first-column:before{content:"";position:absolute;top:0px;width:10px;bottom:-1px;overflow-x:hidden;overflow-y:hidden;box-shadow:none;touch-action:none;pointer-events:none}.ep-table__header-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__header-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--right.is-first-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--right.is-first-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--right.is-first-column:before{left:-10px}.ep-table__header-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__header-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--right.is-last-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--right.is-last-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--right.is-last-column:before{right:-10px;box-shadow:none}.ep-table__header-wrapper tr td.ep-table__fixed-right-patch,.ep-table__header-wrapper tr th.ep-table__fixed-right-patch,.ep-table__body-wrapper tr td.ep-table__fixed-right-patch,.ep-table__body-wrapper tr th.ep-table__fixed-right-patch,.ep-table__footer-wrapper tr td.ep-table__fixed-right-patch,.ep-table__footer-wrapper tr th.ep-table__fixed-right-patch{position:sticky!important;z-index:2;background:#fff;right:0}.ep-table__header-wrapper{flex-shrink:0}.ep-table__header-wrapper tr th.ep-table-fixed-column--left,.ep-table__header-wrapper tr th.ep-table-fixed-column--right{background-color:var(--ep-table-header-bg-color)}.ep-table__header,.ep-table__body,.ep-table__footer{table-layout:fixed;border-collapse:separate}.ep-table__header-wrapper,.ep-table__footer-wrapper{overflow:hidden}.ep-table__header-wrapper tbody td.ep-table__cell,.ep-table__footer-wrapper tbody td.ep-table__cell{background-color:var(--ep-table-row-hover-bg-color);color:var(--ep-table-text-color)}.ep-table__header-wrapper .ep-table-column--selection>.cell,.ep-table__body-wrapper .ep-table-column--selection>.cell{display:inline-flex;align-items:center;height:23px}.ep-table__header-wrapper .ep-table-column--selection .ep-checkbox,.ep-table__body-wrapper .ep-table-column--selection .ep-checkbox{height:unset}.ep-table.is-scrolling-left .ep-table-fixed-column--right.is-first-column:before{box-shadow:var(--ep-table-fixed-right-column)}.ep-table.is-scrolling-left.ep-table--border .ep-table-fixed-column--left.is-last-column.ep-table__cell{border-right:var(--ep-table-border)}.ep-table.is-scrolling-left th.ep-table-fixed-column--left{background-color:var(--ep-table-header-bg-color)}.ep-table.is-scrolling-right .ep-table-fixed-column--left.is-last-column:before{box-shadow:var(--ep-table-fixed-left-column)}.ep-table.is-scrolling-right .ep-table-fixed-column--left.is-last-column.ep-table__cell{border-right:none}.ep-table.is-scrolling-right th.ep-table-fixed-column--right{background-color:var(--ep-table-header-bg-color)}.ep-table.is-scrolling-middle .ep-table-fixed-column--left.is-last-column.ep-table__cell{border-right:none}.ep-table.is-scrolling-middle .ep-table-fixed-column--right.is-first-column:before{box-shadow:var(--ep-table-fixed-right-column)}.ep-table.is-scrolling-middle .ep-table-fixed-column--left.is-last-column:before{box-shadow:var(--ep-table-fixed-left-column)}.ep-table.is-scrolling-none .ep-table-fixed-column--left.is-first-column:before,.ep-table.is-scrolling-none .ep-table-fixed-column--left.is-last-column:before,.ep-table.is-scrolling-none .ep-table-fixed-column--right.is-first-column:before,.ep-table.is-scrolling-none .ep-table-fixed-column--right.is-last-column:before{box-shadow:none}.ep-table.is-scrolling-none th.ep-table-fixed-column--left,.ep-table.is-scrolling-none th.ep-table-fixed-column--right{background-color:var(--ep-table-header-bg-color)}.ep-table__body-wrapper{overflow:hidden;position:relative;flex:1}.ep-table__body-wrapper .ep-scrollbar__bar{z-index:2}.ep-table .caret-wrapper{display:inline-flex;flex-direction:column;align-items:center;height:14px;width:24px;vertical-align:middle;cursor:pointer;overflow:initial;position:relative}.ep-table .sort-caret{width:0;height:0;border:solid 5px transparent;position:absolute;left:7px}.ep-table .sort-caret.ascending{border-bottom-color:var(--ep-text-color-placeholder);top:-5px}.ep-table .sort-caret.descending{border-top-color:var(--ep-text-color-placeholder);bottom:-3px}.ep-table .ascending .sort-caret.ascending{border-bottom-color:var(--ep-color-primary)}.ep-table .descending .sort-caret.descending{border-top-color:var(--ep-color-primary)}.ep-table .hidden-columns{visibility:hidden;position:absolute;z-index:-1}.ep-table--striped .ep-table__body tr.ep-table__row--striped td.ep-table__cell{background:var(--ep-fill-color-lighter)}.ep-table--striped .ep-table__body tr.ep-table__row--striped.current-row td.ep-table__cell{background-color:var(--ep-table-current-row-bg-color)}.ep-table__body tr.hover-row>td.ep-table__cell,.ep-table__body tr.hover-row.current-row>td.ep-table__cell,.ep-table__body tr.hover-row.ep-table__row--striped>td.ep-table__cell,.ep-table__body tr.hover-row.ep-table__row--striped.current-row>td.ep-table__cell{background-color:var(--ep-table-row-hover-bg-color)}.ep-table__body tr.current-row>td.ep-table__cell{background-color:var(--ep-table-current-row-bg-color)}.ep-table__column-resize-proxy{position:absolute;left:200px;top:0;bottom:0;width:0;border-left:var(--ep-table-border);z-index:10}.ep-table__column-filter-trigger{display:inline-block;cursor:pointer}.ep-table__column-filter-trigger i{color:var(--ep-color-info);font-size:14px;vertical-align:middle}.ep-table__border-left-patch{top:0;left:0;width:1px;height:100%;z-index:3;position:absolute;background-color:var(--ep-table-border-color)}.ep-table__border-bottom-patch{left:0;height:1px;z-index:3;position:absolute;background-color:var(--ep-table-border-color)}.ep-table__border-right-patch{top:0;height:100%;width:1px;z-index:3;position:absolute;background-color:var(--ep-table-border-color)}.ep-table--enable-row-transition .ep-table__body td.ep-table__cell{transition:background-color .25s ease}.ep-table--enable-row-hover .ep-table__body tr:hover>td.ep-table__cell{background-color:var(--ep-table-row-hover-bg-color)}.ep-table [class*=ep-table__row--level] .ep-table__expand-icon{display:inline-block;width:12px;line-height:12px;height:12px;text-align:center;margin-right:8px}.ep-table .ep-table.ep-table--border .ep-table__cell{border-right:var(--ep-table-border)}.ep-table:not(.ep-table--border) .ep-table__cell{border-right:none}.ep-table:not(.ep-table--border)>.ep-table__inner-wrapper:after{content:none}.ep-checkbox{--ep-checkbox-font-size: 14px;--ep-checkbox-font-weight: var(--ep-font-weight-primary);--ep-checkbox-text-color: var(--ep-text-color-regular);--ep-checkbox-input-height: 14px;--ep-checkbox-input-width: 14px;--ep-checkbox-border-radius: var(--ep-border-radius-small);--ep-checkbox-bg-color: var(--ep-fill-color-blank);--ep-checkbox-input-border: var(--ep-border);--ep-checkbox-disabled-border-color: var(--ep-border-color);--ep-checkbox-disabled-input-fill: var(--ep-fill-color-light);--ep-checkbox-disabled-icon-color: var(--ep-text-color-placeholder);--ep-checkbox-disabled-checked-input-fill: var(--ep-border-color-extra-light);--ep-checkbox-disabled-checked-input-border-color: var(--ep-border-color);--ep-checkbox-disabled-checked-icon-color: var(--ep-text-color-placeholder);--ep-checkbox-checked-text-color: var(--ep-color-primary);--ep-checkbox-checked-input-border-color: var(--ep-color-primary);--ep-checkbox-checked-bg-color: var(--ep-color-primary);--ep-checkbox-checked-icon-color: var(--ep-color-white);--ep-checkbox-input-border-color-hover: var(--ep-color-primary);color:var(--ep-checkbox-text-color);font-weight:var(--ep-checkbox-font-weight);font-size:var(--ep-font-size-base);position:relative;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;-webkit-user-select:none;user-select:none;margin-right:30px;height:32px}.ep-checkbox.is-disabled{cursor:not-allowed}.ep-checkbox.is-bordered{padding:0 15px 0 9px;border-radius:var(--ep-border-radius-base);border:var(--ep-border);box-sizing:border-box}.ep-checkbox.is-bordered.is-checked{border-color:var(--ep-color-primary)}.ep-checkbox.is-bordered.is-disabled{border-color:var(--ep-border-color-lighter)}.ep-checkbox.is-bordered.ep-checkbox--large{padding:0 19px 0 11px;border-radius:var(--ep-border-radius-base)}.ep-checkbox.is-bordered.ep-checkbox--large .ep-checkbox__label{font-size:var(--ep-font-size-base)}.ep-checkbox.is-bordered.ep-checkbox--large .ep-checkbox__inner{height:14px;width:14px}.ep-checkbox.is-bordered.ep-checkbox--small{padding:0 11px 0 7px;border-radius:calc(var(--ep-border-radius-base) - 1px)}.ep-checkbox.is-bordered.ep-checkbox--small .ep-checkbox__label{font-size:12px}.ep-checkbox.is-bordered.ep-checkbox--small .ep-checkbox__inner{height:12px;width:12px}.ep-checkbox.is-bordered.ep-checkbox--small .ep-checkbox__inner:after{height:6px;width:2px}.ep-checkbox input:focus-visible+.ep-checkbox__inner{outline:2px solid var(--ep-checkbox-input-border-color-hover);outline-offset:1px;border-radius:var(--ep-checkbox-border-radius)}.ep-checkbox__input{white-space:nowrap;cursor:pointer;outline:none;display:inline-flex;position:relative}.ep-checkbox__input.is-disabled .ep-checkbox__inner{background-color:var(--ep-checkbox-disabled-input-fill);border-color:var(--ep-checkbox-disabled-border-color);cursor:not-allowed}.ep-checkbox__input.is-disabled .ep-checkbox__inner:after{cursor:not-allowed;border-color:var(--ep-checkbox-disabled-icon-color)}.ep-checkbox__input.is-disabled.is-checked .ep-checkbox__inner{background-color:var(--ep-checkbox-disabled-checked-input-fill);border-color:var(--ep-checkbox-disabled-checked-input-border-color)}.ep-checkbox__input.is-disabled.is-checked .ep-checkbox__inner:after{border-color:var(--ep-checkbox-disabled-checked-icon-color)}.ep-checkbox__input.is-disabled.is-indeterminate .ep-checkbox__inner{background-color:var(--ep-checkbox-disabled-checked-input-fill);border-color:var(--ep-checkbox-disabled-checked-input-border-color)}.ep-checkbox__input.is-disabled.is-indeterminate .ep-checkbox__inner:before{background-color:var(--ep-checkbox-disabled-checked-icon-color);border-color:var(--ep-checkbox-disabled-checked-icon-color)}.ep-checkbox__input.is-disabled+span.ep-checkbox__label{color:var(--ep-disabled-text-color);cursor:not-allowed}.ep-checkbox__input.is-checked .ep-checkbox__inner{background-color:var(--ep-checkbox-checked-bg-color);border-color:var(--ep-checkbox-checked-input-border-color)}.ep-checkbox__input.is-checked .ep-checkbox__inner:after{transform:rotate(45deg) scaleY(1)}.ep-checkbox__input.is-checked+.ep-checkbox__label{color:var(--ep-checkbox-checked-text-color)}.ep-checkbox__input.is-focus:not(.is-checked) .ep-checkbox__original:not(:focus-visible){border-color:var(--ep-checkbox-input-border-color-hover)}.ep-checkbox__input.is-indeterminate .ep-checkbox__inner{background-color:var(--ep-checkbox-checked-bg-color);border-color:var(--ep-checkbox-checked-input-border-color)}.ep-checkbox__input.is-indeterminate .ep-checkbox__inner:before{content:"";position:absolute;display:block;background-color:var(--ep-checkbox-checked-icon-color);height:2px;transform:scale(.5);left:0;right:0;top:5px}.ep-checkbox__input.is-indeterminate .ep-checkbox__inner:after{display:none}.ep-checkbox__inner{display:inline-block;position:relative;border:var(--ep-checkbox-input-border);border-radius:var(--ep-checkbox-border-radius);box-sizing:border-box;width:var(--ep-checkbox-input-width);height:var(--ep-checkbox-input-height);background-color:var(--ep-checkbox-bg-color);z-index:var(--ep-index-normal);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)}.ep-checkbox__inner:hover{border-color:var(--ep-checkbox-input-border-color-hover)}.ep-checkbox__inner:after{box-sizing:content-box;content:"";border:1px solid var(--ep-checkbox-checked-icon-color);border-left:0;border-top:0;height:7px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);width:3px;transition:transform .15s ease-in .05s;transform-origin:center}.ep-checkbox__original{opacity:0;outline:none;position:absolute;margin:0;width:0;height:0;z-index:-1}.ep-checkbox__label{display:inline-block;padding-left:8px;line-height:1;font-size:var(--ep-checkbox-font-size)}.ep-checkbox.ep-checkbox--large{height:40px}.ep-checkbox.ep-checkbox--large .ep-checkbox__label{font-size:14px}.ep-checkbox.ep-checkbox--large .ep-checkbox__inner{width:14px;height:14px}.ep-checkbox.ep-checkbox--small{height:24px}.ep-checkbox.ep-checkbox--small .ep-checkbox__label{font-size:12px}.ep-checkbox.ep-checkbox--small .ep-checkbox__inner{width:12px;height:12px}.ep-checkbox.ep-checkbox--small .ep-checkbox__input.is-indeterminate .ep-checkbox__inner:before{top:4px}.ep-checkbox.ep-checkbox--small .ep-checkbox__inner:after{width:2px;height:6px}.ep-checkbox:last-of-type{margin-right:0}.ep-tag{--ep-tag-font-size: 12px;--ep-tag-border-radius: 4px;--ep-tag-border-radius-rounded: 9999px;--ep-tag-bg-color: var(--ep-color-primary-light-9);--ep-tag-border-color: var(--ep-color-primary-light-8);--ep-tag-hover-color: var(--ep-color-primary);--ep-tag-text-color: var(--ep-color-primary);background-color:var(--ep-tag-bg-color);border-color:var(--ep-tag-border-color);color:var(--ep-tag-text-color);display:inline-flex;justify-content:center;align-items:center;height:24px;padding:0 9px;font-size:var(--ep-tag-font-size);line-height:1;border-width:1px;border-style:solid;border-radius:var(--ep-tag-border-radius);box-sizing:border-box;white-space:nowrap;--ep-icon-size: 14px}.ep-tag.ep-tag--primary{--ep-tag-bg-color: var(--ep-color-primary-light-9);--ep-tag-border-color: var(--ep-color-primary-light-8);--ep-tag-hover-color: var(--ep-color-primary)}.ep-tag.ep-tag--success{--ep-tag-bg-color: var(--ep-color-success-light-9);--ep-tag-border-color: var(--ep-color-success-light-8);--ep-tag-hover-color: var(--ep-color-success)}.ep-tag.ep-tag--warning{--ep-tag-bg-color: var(--ep-color-warning-light-9);--ep-tag-border-color: var(--ep-color-warning-light-8);--ep-tag-hover-color: var(--ep-color-warning)}.ep-tag.ep-tag--danger{--ep-tag-bg-color: var(--ep-color-danger-light-9);--ep-tag-border-color: var(--ep-color-danger-light-8);--ep-tag-hover-color: var(--ep-color-danger)}.ep-tag.ep-tag--error{--ep-tag-bg-color: var(--ep-color-error-light-9);--ep-tag-border-color: var(--ep-color-error-light-8);--ep-tag-hover-color: var(--ep-color-error)}.ep-tag.ep-tag--info{--ep-tag-bg-color: var(--ep-color-info-light-9);--ep-tag-border-color: var(--ep-color-info-light-8);--ep-tag-hover-color: var(--ep-color-info)}.ep-tag.ep-tag--primary{--ep-tag-text-color: var(--ep-color-primary)}.ep-tag.ep-tag--success{--ep-tag-text-color: var(--ep-color-success)}.ep-tag.ep-tag--warning{--ep-tag-text-color: var(--ep-color-warning)}.ep-tag.ep-tag--danger{--ep-tag-text-color: var(--ep-color-danger)}.ep-tag.ep-tag--error{--ep-tag-text-color: var(--ep-color-error)}.ep-tag.ep-tag--info{--ep-tag-text-color: var(--ep-color-info)}.ep-tag.is-hit{border-color:var(--ep-color-primary)}.ep-tag.is-round{border-radius:var(--ep-tag-border-radius-rounded)}.ep-tag .ep-tag__close{color:var(--ep-tag-text-color)}.ep-tag .ep-tag__close:hover{color:var(--ep-color-white);background-color:var(--ep-tag-hover-color)}.ep-tag .ep-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--ep-icon-size) - 2px);height:var(--ep-icon-size);width:var(--ep-icon-size)}.ep-tag .ep-tag__close{margin-left:6px}.ep-tag--dark{--ep-tag-bg-color: var(--ep-color-primary);--ep-tag-border-color: var(--ep-color-primary);--ep-tag-hover-color: var(--ep-color-primary-light-3);--ep-tag-text-color: var(--ep-color-white)}.ep-tag--dark.ep-tag--primary{--ep-tag-bg-color: var(--ep-color-primary);--ep-tag-border-color: var(--ep-color-primary);--ep-tag-hover-color: var(--ep-color-primary-light-3)}.ep-tag--dark.ep-tag--success{--ep-tag-bg-color: var(--ep-color-success);--ep-tag-border-color: var(--ep-color-success);--ep-tag-hover-color: var(--ep-color-success-light-3)}.ep-tag--dark.ep-tag--warning{--ep-tag-bg-color: var(--ep-color-warning);--ep-tag-border-color: var(--ep-color-warning);--ep-tag-hover-color: var(--ep-color-warning-light-3)}.ep-tag--dark.ep-tag--danger{--ep-tag-bg-color: var(--ep-color-danger);--ep-tag-border-color: var(--ep-color-danger);--ep-tag-hover-color: var(--ep-color-danger-light-3)}.ep-tag--dark.ep-tag--error{--ep-tag-bg-color: var(--ep-color-error);--ep-tag-border-color: var(--ep-color-error);--ep-tag-hover-color: var(--ep-color-error-light-3)}.ep-tag--dark.ep-tag--info{--ep-tag-bg-color: var(--ep-color-info);--ep-tag-border-color: var(--ep-color-info);--ep-tag-hover-color: var(--ep-color-info-light-3)}.ep-tag--dark.ep-tag--primary,.ep-tag--dark.ep-tag--success,.ep-tag--dark.ep-tag--warning,.ep-tag--dark.ep-tag--danger,.ep-tag--dark.ep-tag--error,.ep-tag--dark.ep-tag--info{--ep-tag-text-color: var(--ep-color-white)}.ep-tag--plain{--ep-tag-border-color: var(--ep-color-primary-light-5);--ep-tag-hover-color: var(--ep-color-primary);--ep-tag-bg-color: var(--ep-fill-color-blank)}.ep-tag--plain.ep-tag--primary{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-primary-light-5);--ep-tag-hover-color: var(--ep-color-primary)}.ep-tag--plain.ep-tag--success{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-success-light-5);--ep-tag-hover-color: var(--ep-color-success)}.ep-tag--plain.ep-tag--warning{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-warning-light-5);--ep-tag-hover-color: var(--ep-color-warning)}.ep-tag--plain.ep-tag--danger{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-danger-light-5);--ep-tag-hover-color: var(--ep-color-danger)}.ep-tag--plain.ep-tag--error{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-error-light-5);--ep-tag-hover-color: var(--ep-color-error)}.ep-tag--plain.ep-tag--info{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-info-light-5);--ep-tag-hover-color: var(--ep-color-info)}.ep-tag.is-closable{padding-right:5px}.ep-tag--large{padding:0 11px;height:32px;--ep-icon-size: 16px}.ep-tag--large .ep-tag__close{margin-left:8px}.ep-tag--large.is-closable{padding-right:7px}.ep-tag--small{padding:0 7px;height:20px;--ep-icon-size: 12px}.ep-tag--small .ep-tag__close{margin-left:4px}.ep-tag--small.is-closable{padding-right:3px}.ep-tag--small .ep-icon-close{transform:scale(.8)}.ep-tag.ep-tag--primary.is-hit{border-color:var(--ep-color-primary)}.ep-tag.ep-tag--success.is-hit{border-color:var(--ep-color-success)}.ep-tag.ep-tag--warning.is-hit{border-color:var(--ep-color-warning)}.ep-tag.ep-tag--danger.is-hit{border-color:var(--ep-color-danger)}.ep-tag.ep-tag--error.is-hit{border-color:var(--ep-color-error)}.ep-tag.ep-tag--info.is-hit{border-color:var(--ep-color-info)}.ep-scrollbar{--ep-scrollbar-opacity: .3;--ep-scrollbar-bg-color: var(--ep-text-color-secondary);--ep-scrollbar-hover-opacity: .5;--ep-scrollbar-hover-bg-color: var(--ep-text-color-secondary);overflow:hidden;position:relative;height:100%}.ep-scrollbar__wrap{overflow:auto;height:100%}.ep-scrollbar__wrap--hidden-default{scrollbar-width:none}.ep-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.ep-scrollbar__thumb{position:relative;display:block;width:0;height:0;cursor:pointer;border-radius:inherit;background-color:var(--ep-scrollbar-bg-color, var(--ep-text-color-secondary));transition:var(--ep-transition-duration) background-color;opacity:var(--ep-scrollbar-opacity, .3)}.ep-scrollbar__thumb:hover{background-color:var(--ep-scrollbar-hover-bg-color, var(--ep-text-color-secondary));opacity:var(--ep-scrollbar-hover-opacity, .5)}.ep-scrollbar__bar{position:absolute;right:2px;bottom:2px;z-index:1;border-radius:4px}.ep-scrollbar__bar.is-vertical{width:6px;top:2px}.ep-scrollbar__bar.is-vertical>div{width:100%}.ep-scrollbar__bar.is-horizontal{height:6px;left:2px}.ep-scrollbar__bar.is-horizontal>div{height:100%}.ep-scrollbar-fade-enter-active{transition:opacity .34s ease-out}.ep-scrollbar-fade-leave-active{transition:opacity .12s ease-out}.ep-scrollbar-fade-enter-from,.ep-scrollbar-fade-leave-active{opacity:0}.ep-table-column--selection .cell{padding-left:14px;padding-right:14px}.ep-table-filter{border:solid 1px var(--ep-border-color-lighter);border-radius:2px;background-color:#fff;box-shadow:var(--ep-box-shadow-light);box-sizing:border-box}.ep-table-filter__list{padding:5px 0;margin:0;list-style:none;min-width:100px}.ep-table-filter__list-item{line-height:36px;padding:0 10px;cursor:pointer;font-size:var(--ep-font-size-base)}.ep-table-filter__list-item:hover{background-color:var(--ep-color-primary-light-9);color:var(--ep-color-primary)}.ep-table-filter__list-item.is-active{background-color:var(--ep-color-primary);color:#fff}.ep-table-filter__content{min-width:100px}.ep-table-filter__bottom{border-top:1px solid var(--ep-border-color-lighter);padding:8px}.ep-table-filter__bottom button{background:transparent;border:none;color:var(--ep-text-color-regular);cursor:pointer;font-size:var(--ep-font-size-small);padding:0 3px}.ep-table-filter__bottom button:hover{color:var(--ep-color-primary)}.ep-table-filter__bottom button:focus{outline:none}.ep-table-filter__bottom button.is-disabled{color:var(--ep-disabled-text-color);cursor:not-allowed}.ep-table-filter__wrap{max-height:280px}.ep-table-filter__checkbox-group{padding:10px}.ep-table-filter__checkbox-group label.ep-checkbox{display:flex;align-items:center;margin-right:5px;margin-bottom:12px;margin-left:5px;height:unset}.ep-table-filter__checkbox-group .ep-checkbox:last-child{margin-bottom:0}.ep-textarea{--ep-input-text-color: var(--ep-text-color-regular);--ep-input-border: var(--ep-border);--ep-input-hover-border: var(--ep-border-color-hover);--ep-input-focus-border: var(--ep-color-primary);--ep-input-transparent-border: 0 0 0 1px transparent inset;--ep-input-border-color: var(--ep-border-color);--ep-input-border-radius: var(--ep-border-radius-base);--ep-input-bg-color: var(--ep-fill-color-blank);--ep-input-icon-color: var(--ep-text-color-placeholder);--ep-input-placeholder-color: var(--ep-text-color-placeholder);--ep-input-hover-border-color: var(--ep-border-color-hover);--ep-input-clear-hover-color: var(--ep-text-color-secondary);--ep-input-focus-border-color: var(--ep-color-primary);position:relative;display:inline-block;width:100%;vertical-align:bottom;font-size:var(--ep-font-size-base)}.ep-textarea__inner{position:relative;display:block;resize:vertical;padding:5px 11px;line-height:1.5;box-sizing:border-box;width:100%;font-size:inherit;font-family:inherit;color:var(--ep-input-text-color, var(--ep-text-color-regular));background-color:var(--ep-input-bg-color, var(--ep-fill-color-blank));background-image:none;-webkit-appearance:none;box-shadow:0 0 0 1px var(--ep-input-border-color, var(--ep-border-color)) inset;border-radius:var(--ep-input-border-radius, var(--ep-border-radius-base));transition:var(--ep-transition-box-shadow);border:none}.ep-textarea__inner::placeholder{color:var(--ep-input-placeholder-color, var(--ep-text-color-placeholder))}.ep-textarea__inner:hover{box-shadow:0 0 0 1px var(--ep-input-hover-border-color) inset}.ep-textarea__inner:focus{outline:none;box-shadow:0 0 0 1px var(--ep-input-focus-border-color) inset}.ep-textarea .ep-input__count{color:var(--ep-color-info);background:var(--ep-fill-color-blank);position:absolute;font-size:12px;line-height:14px;bottom:5px;right:10px}.ep-textarea.is-disabled .ep-textarea__inner{background-color:var(--ep-disabled-bg-color);border-color:var(--ep-disabled-border-color);color:var(--ep-disabled-text-color);cursor:not-allowed}.ep-textarea.is-disabled .ep-textarea__inner::placeholder{color:var(--ep-text-color-placeholder)}.ep-textarea.is-exceed .ep-textarea__inner{box-shadow:0 0 0 1px var(--ep-color-danger) inset}.ep-textarea.is-exceed .ep-input__count{color:var(--ep-color-danger)}.ep-input{--ep-input-text-color: var(--ep-text-color-regular);--ep-input-border: var(--ep-border);--ep-input-hover-border: var(--ep-border-color-hover);--ep-input-focus-border: var(--ep-color-primary);--ep-input-transparent-border: 0 0 0 1px transparent inset;--ep-input-border-color: var(--ep-border-color);--ep-input-border-radius: var(--ep-border-radius-base);--ep-input-bg-color: var(--ep-fill-color-blank);--ep-input-icon-color: var(--ep-text-color-placeholder);--ep-input-placeholder-color: var(--ep-text-color-placeholder);--ep-input-hover-border-color: var(--ep-border-color-hover);--ep-input-clear-hover-color: var(--ep-text-color-secondary);--ep-input-focus-border-color: var(--ep-color-primary);--ep-input-height: var(--ep-component-size);position:relative;font-size:var(--ep-font-size-base);display:inline-flex;width:100%;line-height:var(--ep-input-height);box-sizing:border-box;vertical-align:middle}.ep-input::-webkit-scrollbar{z-index:11;width:6px}.ep-input::-webkit-scrollbar:horizontal{height:6px}.ep-input::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:var(--ep-text-color-disabled)}.ep-input::-webkit-scrollbar-corner{background:var(--ep-fill-color-blank)}.ep-input::-webkit-scrollbar-track{background:var(--ep-fill-color-blank)}.ep-input::-webkit-scrollbar-track-piece{background:var(--ep-fill-color-blank);width:6px}.ep-input .ep-input__clear,.ep-input .ep-input__password{color:var(--ep-input-icon-color);font-size:14px;cursor:pointer}.ep-input .ep-input__clear:hover,.ep-input .ep-input__password:hover{color:var(--ep-input-clear-hover-color)}.ep-input .ep-input__count{height:100%;display:inline-flex;align-items:center;color:var(--ep-color-info);font-size:12px}.ep-input .ep-input__count .ep-input__count-inner{background:var(--ep-fill-color-blank);line-height:initial;display:inline-block;padding-left:8px}.ep-input__wrapper{display:inline-flex;flex-grow:1;align-items:center;justify-content:center;padding:1px 11px;background-color:var(--ep-input-bg-color, var(--ep-fill-color-blank));background-image:none;border-radius:var(--ep-input-border-radius, var(--ep-border-radius-base));transition:var(--ep-transition-box-shadow);transform:translateZ(0);box-shadow:0 0 0 1px var(--ep-input-border-color, var(--ep-border-color)) inset}.ep-input__wrapper:hover{box-shadow:0 0 0 1px var(--ep-input-hover-border-color) inset}.ep-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--ep-input-focus-border-color) inset}.ep-input__inner{--ep-input-inner-height: calc(var(--ep-input-height, 32px) - 2px);width:100%;flex-grow:1;-webkit-appearance:none;color:var(--ep-input-text-color, var(--ep-text-color-regular));font-size:inherit;height:var(--ep-input-inner-height);line-height:var(--ep-input-inner-height);padding:0;outline:none;border:none;background:none;box-sizing:border-box}.ep-input__inner:focus{outline:none}.ep-input__inner::placeholder{color:var(--ep-input-placeholder-color, var(--ep-text-color-placeholder))}.ep-input__inner[type=password]::-ms-reveal{display:none}.ep-input__prefix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--ep-input-icon-color, var(--ep-text-color-placeholder));transition:all var(--ep-transition-duration);pointer-events:none}.ep-input__prefix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.ep-input__prefix-inner>:last-child{margin-right:8px}.ep-input__prefix-inner>:first-child,.ep-input__prefix-inner>:first-child.ep-input__icon{margin-left:0}.ep-input__suffix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--ep-input-icon-color, var(--ep-text-color-placeholder));transition:all var(--ep-transition-duration);pointer-events:none}.ep-input__suffix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.ep-input__suffix-inner>:first-child{margin-left:8px}.ep-input .ep-input__icon{height:inherit;line-height:inherit;display:flex;justify-content:center;align-items:center;transition:all var(--ep-transition-duration);margin-left:8px}.ep-input__validateIcon{pointer-events:none}.ep-input.is-active .ep-input__wrapper{box-shadow:0 0 0 1px var(--ep-input-focus-color, ) inset}.ep-input.is-disabled{cursor:not-allowed}.ep-input.is-disabled .ep-input__wrapper{background-color:var(--ep-disabled-bg-color);box-shadow:0 0 0 1px var(--ep-disabled-border-color) inset}.ep-input.is-disabled .ep-input__inner{color:var(--ep-disabled-text-color);-webkit-text-fill-color:var(--ep-disabled-text-color);cursor:not-allowed}.ep-input.is-disabled .ep-input__inner::placeholder{color:var(--ep-text-color-placeholder)}.ep-input.is-disabled .ep-input__icon{cursor:not-allowed}.ep-input.is-exceed .ep-input__wrapper{box-shadow:0 0 0 1px var(--ep-color-danger) inset}.ep-input.is-exceed .ep-input__suffix .ep-input__count{color:var(--ep-color-danger)}.ep-input--large{--ep-input-height: var(--ep-component-size-large);font-size:14px}.ep-input--large .ep-input__wrapper{padding:1px 15px}.ep-input--large .ep-input__inner{--ep-input-inner-height: calc(var(--ep-input-height, 40px) - 2px)}.ep-input--small{--ep-input-height: var(--ep-component-size-small);font-size:12px}.ep-input--small .ep-input__wrapper{padding:1px 7px}.ep-input--small .ep-input__inner{--ep-input-inner-height: calc(var(--ep-input-height, 24px) - 2px)}.ep-input-group{display:inline-flex;width:100%;align-items:stretch}.ep-input-group__append,.ep-input-group__prepend{background-color:var(--ep-fill-color-light);color:var(--ep-color-info);position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:100%;border-radius:var(--ep-input-border-radius);padding:0 20px;white-space:nowrap}.ep-input-group__append:focus,.ep-input-group__prepend:focus{outline:none}.ep-input-group__append .ep-select,.ep-input-group__append .ep-button,.ep-input-group__prepend .ep-select,.ep-input-group__prepend .ep-button{display:inline-block;margin:0 -20px}.ep-input-group__append button.ep-button,.ep-input-group__append button.ep-button:hover,.ep-input-group__append div.ep-select .ep-input__wrapper,.ep-input-group__append div.ep-select:hover .ep-input__wrapper,.ep-input-group__prepend button.ep-button,.ep-input-group__prepend button.ep-button:hover,.ep-input-group__prepend div.ep-select .ep-input__wrapper,.ep-input-group__prepend div.ep-select:hover .ep-input__wrapper{border-color:transparent;background-color:transparent;color:inherit}.ep-input-group__append .ep-button,.ep-input-group__append .ep-input,.ep-input-group__prepend .ep-button,.ep-input-group__prepend .ep-input{font-size:inherit}.ep-input-group__prepend{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--ep-input-border-color) inset,0 1px 0 0 var(--ep-input-border-color) inset,0 -1px 0 0 var(--ep-input-border-color) inset}.ep-input-group__append{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--ep-input-border-color) inset,0 -1px 0 0 var(--ep-input-border-color) inset,-1px 0 0 0 var(--ep-input-border-color) inset}.ep-input-group--prepend>.ep-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.ep-input-group--prepend .ep-input-group__prepend .ep-select .ep-input .ep-input__inner{box-shadow:none!important}.ep-input-group--prepend .ep-input-group__prepend .ep-select .ep-input .ep-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--ep-input-border-color) inset,0 1px 0 0 var(--ep-input-border-color) inset,0 -1px 0 0 var(--ep-input-border-color) inset}.ep-input-group--prepend .ep-input-group__prepend .ep-select .ep-input.is-focus .ep-input__inner{box-shadow:none!important}.ep-input-group--prepend .ep-input-group__prepend .ep-select .ep-input.is-focus .ep-input__wrapper{box-shadow:1px 0 0 0 var(--ep-input-focus-border-color) inset,1px 0 0 0 var(--ep-input-focus-border-color),0 1px 0 0 var(--ep-input-focus-border-color) inset,0 -1px 0 0 var(--ep-input-focus-border-color) inset!important;z-index:2}.ep-input-group--prepend .ep-input-group__prepend .ep-select .ep-input.is-focus .ep-input__wrapper:focus{outline:none;z-index:2;box-shadow:1px 0 0 0 var(--ep-input-focus-border-color) inset,1px 0 0 0 var(--ep-input-focus-border-color),0 1px 0 0 var(--ep-input-focus-border-color) inset,0 -1px 0 0 var(--ep-input-focus-border-color) inset!important}.ep-input-group--prepend .ep-input-group__prepend .ep-select:hover .ep-input__inner{box-shadow:none!important}.ep-input-group--prepend .ep-input-group__prepend .ep-select:hover .ep-input__wrapper{z-index:1;box-shadow:1px 0 0 0 var(--ep-input-hover-border-color) inset,1px 0 0 0 var(--ep-input-hover-border-color),0 1px 0 0 var(--ep-input-hover-border-color) inset,0 -1px 0 0 var(--ep-input-hover-border-color) inset!important}.ep-input-group--append>.ep-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.ep-input-group--append .ep-input-group__append .ep-select .ep-input .ep-input__inner{box-shadow:none!important}.ep-input-group--append .ep-input-group__append .ep-select .ep-input .ep-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--ep-input-border-color) inset,0 -1px 0 0 var(--ep-input-border-color) inset,-1px 0 0 0 var(--ep-input-border-color) inset}.ep-input-group--append .ep-input-group__append .ep-select .ep-input.is-focus .ep-input__inner{box-shadow:none!important}.ep-input-group--append .ep-input-group__append .ep-select .ep-input.is-focus .ep-input__wrapper{z-index:2;box-shadow:-1px 0 0 0 var(--ep-input-focus-border-color),-1px 0 0 0 var(--ep-input-focus-border-color) inset,0 1px 0 0 var(--ep-input-focus-border-color) inset,0 -1px 0 0 var(--ep-input-focus-border-color) inset!important}.ep-input-group--append .ep-input-group__append .ep-select:hover .ep-input__inner{box-shadow:none!important}.ep-input-group--append .ep-input-group__append .ep-select:hover .ep-input__wrapper{z-index:1;box-shadow:-1px 0 0 0 var(--ep-input-hover-border-color),-1px 0 0 0 var(--ep-input-hover-border-color) inset,0 1px 0 0 var(--ep-input-hover-border-color) inset,0 -1px 0 0 var(--ep-input-hover-border-color) inset!important}.ep-alert{--ep-alert-padding: 8px 16px;--ep-alert-border-radius-base: var(--ep-border-radius-base);--ep-alert-title-font-size: 13px;--ep-alert-description-font-size: 12px;--ep-alert-close-font-size: 12px;--ep-alert-close-customed-font-size: 13px;--ep-alert-icon-size: 16px;--ep-alert-icon-large-size: 28px;width:100%;padding:var(--ep-alert-padding);margin:0;box-sizing:border-box;border-radius:var(--ep-alert-border-radius-base);position:relative;background-color:var(--ep-color-white);overflow:hidden;opacity:1;display:flex;align-items:center;transition:opacity var(--ep-transition-duration-fast)}.ep-alert.is-light .ep-alert__close-btn{color:var(--ep-text-color-placeholder)}.ep-alert.is-dark .ep-alert__close-btn,.ep-alert.is-dark .ep-alert__description{color:var(--ep-color-white)}.ep-alert.is-center{justify-content:center}.ep-alert--success{--ep-alert-bg-color: var(--ep-color-success-light-9)}.ep-alert--success.is-light{background-color:var(--ep-alert-bg-color);color:var(--ep-color-success)}.ep-alert--success.is-light .ep-alert__description{color:var(--ep-color-success)}.ep-alert--success.is-dark{background-color:var(--ep-color-success);color:var(--ep-color-white)}.ep-alert--info{--ep-alert-bg-color: var(--ep-color-info-light-9)}.ep-alert--info.is-light{background-color:var(--ep-alert-bg-color);color:var(--ep-color-info)}.ep-alert--info.is-light .ep-alert__description{color:var(--ep-color-info)}.ep-alert--info.is-dark{background-color:var(--ep-color-info);color:var(--ep-color-white)}.ep-alert--warning{--ep-alert-bg-color: var(--ep-color-warning-light-9)}.ep-alert--warning.is-light{background-color:var(--ep-alert-bg-color);color:var(--ep-color-warning)}.ep-alert--warning.is-light .ep-alert__description{color:var(--ep-color-warning)}.ep-alert--warning.is-dark{background-color:var(--ep-color-warning);color:var(--ep-color-white)}.ep-alert--error{--ep-alert-bg-color: var(--ep-color-error-light-9)}.ep-alert--error.is-light{background-color:var(--ep-alert-bg-color);color:var(--ep-color-error)}.ep-alert--error.is-light .ep-alert__description{color:var(--ep-color-error)}.ep-alert--error.is-dark{background-color:var(--ep-color-error);color:var(--ep-color-white)}.ep-alert__content{display:table-cell;padding:0 8px}.ep-alert .ep-alert__icon{font-size:var(--ep-alert-icon-size);width:var(--ep-alert-icon-size)}.ep-alert .ep-alert__icon.is-big{font-size:var(--ep-alert-icon-large-size);width:var(--ep-alert-icon-large-size)}.ep-alert__title{font-size:var(--ep-alert-title-font-size);line-height:18px;vertical-align:text-top}.ep-alert__title.is-bold{font-weight:700}.ep-alert .ep-alert__description{font-size:var(--ep-alert-description-font-size);margin:5px 0 0}.ep-alert .ep-alert__close-btn{font-size:var(--ep-alert-close-font-size);opacity:1;position:absolute;top:12px;right:15px;cursor:pointer}.ep-alert .ep-alert__close-btn.is-customed{font-style:normal;font-size:var(--ep-alert-close-customed-font-size);top:9px}.ep-alert-fade-enter-from,.ep-alert-fade-leave-active{opacity:0}.ep-select-dropdown__item{font-size:var(--ep-font-size-base);padding:0 32px 0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ep-text-color-regular);height:34px;line-height:34px;box-sizing:border-box;cursor:pointer}.ep-select-dropdown__item.is-disabled{color:var(--ep-text-color-placeholder);cursor:not-allowed}.ep-select-dropdown__item.hover,.ep-select-dropdown__item:hover{background-color:var(--ep-fill-color-light)}.ep-select-dropdown__item.selected{color:var(--ep-color-primary);font-weight:700}.ep-select-group{margin:0;padding:0}.ep-select-group__wrap{position:relative;list-style:none;margin:0;padding:0}.ep-select-group__wrap:not(:last-of-type){padding-bottom:24px}.ep-select-group__wrap:not(:last-of-type):after{content:"";position:absolute;display:block;left:20px;right:20px;bottom:12px;height:1px;background:var(--ep-border-color-light)}.ep-select-group__split-dash{position:absolute;left:20px;right:20px;height:1px;background:var(--ep-border-color-light)}.ep-select-group__title{padding-left:20px;font-size:12px;color:var(--ep-color-info);line-height:30px}.ep-select-group .ep-select-dropdown__item{padding-left:20px}.ep-select-dropdown{z-index:calc(var(--ep-index-top) + 1);border-radius:var(--ep-border-radius-base);box-sizing:border-box}.ep-select-dropdown.is-multiple .ep-select-dropdown__item.selected{color:var(--ep-color-primary);background-color:var(--ep-bg-color-overlay)}.ep-select-dropdown.is-multiple .ep-select-dropdown__item.selected.hover{background-color:var(--ep-fill-color-light)}.ep-select-dropdown.is-multiple .ep-select-dropdown__item.selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--ep-color-primary);-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;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%;transform:translateY(-50%);width:12px;height:12px}.ep-select-dropdown.is-multiple .ep-select-dropdown__item.selected.is-disabled:after{background-color:var(--ep-text-color-disabled)}.ep-select-dropdown .ep-select-dropdown__option-item.is-selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--ep-color-primary);-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;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%;transform:translateY(-50%);width:12px;height:12px}.ep-select-dropdown .ep-scrollbar.is-empty .ep-select-dropdown__list{padding:0}.ep-select-dropdown .ep-select-dropdown__item.is-disabled:hover{background-color:unset}.ep-select-dropdown .ep-select-dropdown__item.is-disabled.selected{color:var(--ep-text-color-disabled)}.ep-select-dropdown__empty{padding:10px 0;margin:0;text-align:center;color:var(--ep-text-color-secondary);font-size:var(--ep-select-font-size)}.ep-select-dropdown__wrap{max-height:274px}.ep-select-dropdown__list{list-style:none;padding:6px 0;margin:0;box-sizing:border-box}.ep-select{--ep-select-border-color-hover: var(--ep-border-color-hover);--ep-select-disabled-border: var(--ep-disabled-border-color);--ep-select-font-size: var(--ep-font-size-base);--ep-select-close-hover-color: var(--ep-text-color-secondary);--ep-select-input-color: var(--ep-text-color-placeholder);--ep-select-multiple-input-color: var(--ep-text-color-regular);--ep-select-input-focus-border-color: var(--ep-color-primary);--ep-select-input-font-size: 14px;display:inline-block;position:relative;vertical-align:middle;line-height:32px}.ep-select__popper.ep-popper{background:var(--ep-bg-color-overlay);border:1px solid var(--ep-border-color-light);box-shadow:var(--ep-box-shadow-light)}.ep-select__popper.ep-popper .ep-popper__arrow:before{border:1px solid var(--ep-border-color-light)}.ep-select__popper.ep-popper[data-popper-placement^=top] .ep-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.ep-select__popper.ep-popper[data-popper-placement^=bottom] .ep-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.ep-select__popper.ep-popper[data-popper-placement^=left] .ep-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.ep-select__popper.ep-popper[data-popper-placement^=right] .ep-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.ep-select .ep-select-tags-wrapper.has-prefix{margin-left:6px}.ep-select--large{line-height:40px}.ep-select--large .ep-select-tags-wrapper.has-prefix{margin-left:8px}.ep-select--small{line-height:24px}.ep-select--small .ep-select-tags-wrapper.has-prefix{margin-left:4px}.ep-select .ep-select__tags>span{display:inline-block}.ep-select:hover:not(.ep-select--disabled) .ep-input__wrapper{box-shadow:0 0 0 1px var(--ep-select-border-color-hover) inset}.ep-select .ep-select__tags-text{display:inline-block;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ep-select .ep-input__wrapper{cursor:pointer}.ep-select .ep-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--ep-select-input-focus-border-color) inset!important}.ep-select .ep-input__inner{cursor:pointer}.ep-select .ep-input{display:flex}.ep-select .ep-input .ep-select__caret{color:var(--ep-select-input-color);font-size:var(--ep-select-input-font-size);transition:transform var(--ep-transition-duration);transform:rotate(0);cursor:pointer}.ep-select .ep-input .ep-select__caret.is-reverse{transform:rotate(-180deg)}.ep-select .ep-input .ep-select__caret.is-show-close{font-size:var(--ep-select-font-size);text-align:center;transform:rotate(0);border-radius:var(--ep-border-radius-circle);color:var(--ep-select-input-color);transition:var(--ep-transition-color)}.ep-select .ep-input .ep-select__caret.is-show-close:hover{color:var(--ep-select-close-hover-color)}.ep-select .ep-input .ep-select__caret.ep-icon{position:relative;height:inherit;z-index:2}.ep-select .ep-input.is-disabled .ep-input__wrapper{cursor:not-allowed}.ep-select .ep-input.is-disabled .ep-input__wrapper:hover{box-shadow:0 0 0 1px var(--ep-select-disabled-border) inset}.ep-select .ep-input.is-disabled .ep-input__inner,.ep-select .ep-input.is-disabled .ep-select__caret{cursor:not-allowed}.ep-select .ep-input.is-focus .ep-input__wrapper{box-shadow:0 0 0 1px var(--ep-select-input-focus-border-color) inset!important}.ep-select__input{border:none;outline:none;padding:0;margin-left:15px;color:var(--ep-select-multiple-input-color);font-size:var(--ep-select-font-size);-webkit-appearance:none;appearance:none;height:28px;background-color:transparent}.ep-select__input.is-disabled{cursor:not-allowed}.ep-select__input--iOS{position:absolute;left:0;top:0;z-index:6}.ep-select__input.is-small{height:14px}.ep-select__close{cursor:pointer;position:absolute;top:8px;z-index:var(--ep-index-top);right:25px;color:var(--ep-select-input-color);line-height:18px;font-size:var(--ep-select-input-font-size)}.ep-select__close:hover{color:var(--ep-select-close-hover-color)}.ep-select__tags{position:absolute;line-height:normal;top:50%;transform:translateY(-50%);white-space:normal;z-index:var(--ep-index-normal);display:flex;align-items:center;flex-wrap:wrap;cursor:pointer}.ep-select__tags .ep-tag{box-sizing:border-box;border-color:transparent;margin:2px 6px 2px 0}.ep-select__tags .ep-tag:last-child{margin-right:0}.ep-select__tags .ep-tag .ep-icon-close{background-color:var(--ep-text-color-placeholder);right:-7px;top:0;color:#fff}.ep-select__tags .ep-tag .ep-icon-close:hover{background-color:var(--ep-text-color-secondary)}.ep-select__tags .ep-tag .ep-icon-close:before{display:block;transform:translateY(.5px)}.ep-select__tags .ep-tag--info{background-color:var(--ep-fill-color)}.ep-select__tags.is-disabled{cursor:not-allowed}.ep-select__collapse-tags{white-space:normal;z-index:var(--ep-index-normal);display:flex;align-items:center;flex-wrap:wrap;cursor:pointer}.ep-select__collapse-tags .ep-tag{box-sizing:border-box;border-color:transparent;margin:2px 6px 2px 0}.ep-select__collapse-tags .ep-tag:last-child{margin-right:0}.ep-select__collapse-tags .ep-tag .ep-icon-close{background-color:var(--ep-text-color-placeholder);right:-7px;top:0;color:#fff}.ep-select__collapse-tags .ep-tag .ep-icon-close:hover{background-color:var(--ep-text-color-secondary)}.ep-select__collapse-tags .ep-tag .ep-icon-close:before{display:block;transform:translateY(.5px)}.ep-select__collapse-tags .ep-tag--info{background-color:var(--ep-fill-color)}.ep-select__collapse-tag{line-height:inherit;height:inherit;display:flex}.ep-drawer{--ep-drawer-bg-color: var(--ep-dialog-bg-color, var(--ep-bg-color));--ep-drawer-padding-primary: var(--ep-dialog-padding-primary, 20px);position:absolute;box-sizing:border-box;background-color:var(--ep-drawer-bg-color);display:flex;flex-direction:column;box-shadow:var(--ep-box-shadow-dark);overflow:hidden;transition:all var(--ep-transition-duration)}.ep-drawer .rtl,.ep-drawer .ltr,.ep-drawer .ttb,.ep-drawer .btt{transform:translate(0)}.ep-drawer__sr-focus:focus{outline:none!important}.ep-drawer__header{align-items:center;color:#72767b;display:flex;margin-bottom:32px;padding:var(--ep-drawer-padding-primary);padding-bottom:0}.ep-drawer__header>:first-child{flex:1}.ep-drawer__title{margin:0;flex:1;line-height:inherit;font-size:1rem}.ep-drawer__footer{padding:var(--ep-drawer-padding-primary);padding-top:10px;text-align:right}.ep-drawer__close-btn{display:inline-flex;border:none;cursor:pointer;font-size:var(--ep-font-size-extra-large);color:inherit;background-color:transparent;outline:none}.ep-drawer__close-btn:focus i,.ep-drawer__close-btn:hover i{color:var(--ep-color-primary)}.ep-drawer__body{flex:1;padding:var(--ep-drawer-padding-primary);overflow:auto}.ep-drawer__body>*{box-sizing:border-box}.ep-drawer.ltr,.ep-drawer.rtl{height:100%;top:0;bottom:0}.ep-drawer.ttb,.ep-drawer.btt{width:100%;left:0;right:0}.ep-drawer.ltr{left:0}.ep-drawer.rtl{right:0}.ep-drawer.ttb{top:0}.ep-drawer.btt{bottom:0}.ep-drawer-fade-enter-active,.ep-drawer-fade-leave-active{transition:all var(--ep-transition-duration)}.ep-drawer-fade-enter-from,.ep-drawer-fade-enter-active,.ep-drawer-fade-enter-to,.ep-drawer-fade-leave-from,.ep-drawer-fade-leave-active,.ep-drawer-fade-leave-to{overflow:hidden!important}.ep-drawer-fade-enter-from,.ep-drawer-fade-leave-to{opacity:0}.ep-drawer-fade-enter-to,.ep-drawer-fade-leave-from{opacity:1}.ep-drawer-fade-enter-from .rtl,.ep-drawer-fade-leave-to .rtl{transform:translate(100%)}.ep-drawer-fade-enter-from .ltr,.ep-drawer-fade-leave-to .ltr{transform:translate(-100%)}.ep-drawer-fade-enter-from .ttb,.ep-drawer-fade-leave-to .ttb{transform:translateY(-100%)}.ep-drawer-fade-enter-from .btt,.ep-drawer-fade-leave-to .btt{transform:translateY(100%)}html.dark{color-scheme:dark;--ep-color-primary: #589ef8;--ep-color-primary-light-3: #4475b4;--ep-color-primary-light-5: #365986;--ep-color-primary-light-7: #283d58;--ep-color-primary-light-8: #223042;--ep-color-primary-light-9: #1b222b;--ep-color-primary-dark-2: #79b1f9;--ep-color-success: #21ba45;--ep-color-success-light-3: #1d8836;--ep-color-success-light-5: #1b672d;--ep-color-success-light-7: #184623;--ep-color-success-light-8: #17351e;--ep-color-success-light-9: #152519;--ep-color-success-dark-2: #4dc86a;--ep-color-warning: #f2711c;--ep-color-warning-light-3: #af551a;--ep-color-warning-light-5: #834318;--ep-color-warning-light-7: #573016;--ep-color-warning-light-8: #402716;--ep-color-warning-light-9: #2a1d15;--ep-color-warning-dark-2: #f58d49;--ep-color-danger: #db2828;--ep-color-danger-light-3: #9f2222;--ep-color-danger-light-5: #781e1e;--ep-color-danger-light-7: #501a1a;--ep-color-danger-light-8: #3c1818;--ep-color-danger-light-9: #281616;--ep-color-danger-dark-2: #e25353;--ep-color-error: #db2828;--ep-color-error-light-3: #9f2222;--ep-color-error-light-5: #781e1e;--ep-color-error-light-7: #501a1a;--ep-color-error-light-8: #3c1818;--ep-color-error-light-9: #281616;--ep-color-error-dark-2: #e25353;--ep-color-info: #42b8dd;--ep-color-info-light-3: #3487a1;--ep-color-info-light-5: #2b6679;--ep-color-info-light-7: #224550;--ep-color-info-light-8: #1d353c;--ep-color-info-light-9: #192428;--ep-color-info-dark-2: #68c6e4;--ep-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .36), 0px 8px 20px rgba(0, 0, 0, .72);--ep-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, .72);--ep-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, .72);--ep-box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, .72), 0px 12px 32px #000000, 0px 8px 16px -8px #000000;--ep-bg-color-page: #0a0a0a;--ep-bg-color: #141414;--ep-bg-color-overlay: #1d1e1f;--ep-text-color-primary: #E5EAF3;--ep-text-color-regular: #CFD3DC;--ep-text-color-secondary: #A3A6AD;--ep-text-color-placeholder: #8D9095;--ep-text-color-disabled: #6C6E72;--ep-border-color-darker: #636466;--ep-border-color-dark: #58585B;--ep-border-color: #4C4D4F;--ep-border-color-light: #414243;--ep-border-color-lighter: #363637;--ep-border-color-extra-light: #2B2B2C;--ep-fill-color-darker: #424243;--ep-fill-color-dark: #39393A;--ep-fill-color: #303030;--ep-fill-color-light: #262727;--ep-fill-color-lighter: #1D1D1D;--ep-fill-color-extra-light: #191919;--ep-fill-color-blank: transparent;--ep-mask-color: rgba(0, 0, 0, .8);--ep-mask-color-extra-light: rgba(0, 0, 0, .3)}html.dark .ep-button{--ep-button-disabled-text-color: rgba(255, 255, 255, .5)}html.dark .ep-card{--ep-card-bg-color: var(--ep-bg-color-overlay)}html.dark .ep-empty{--ep-empty-fill-color-0: var(--ep-color-black);--ep-empty-fill-color-1: #4b4b52;--ep-empty-fill-color-2: #36383d;--ep-empty-fill-color-3: #1e1e20;--ep-empty-fill-color-4: #262629;--ep-empty-fill-color-5: #202124;--ep-empty-fill-color-6: #212224;--ep-empty-fill-color-7: #1b1c1f;--ep-empty-fill-color-8: #1c1d1f;--ep-empty-fill-color-9: #18181a}body{font-family:Inter,system-ui,Avenir,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0}a{color:var(--ep-color-primary)}code{border-radius:2px;padding:2px 4px;background-color:var(--ep-color-primary-light-9);color:var(--ep-color-primary)}*,: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 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(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 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(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: }.dark [i~="dark:ep-moon"]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M240.448 240.448a384 384 0 1 0 559.424 525.696a448 448 0 0 1-542.016-542.08a390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1.2em;height:1.2em}[i~=ep-sunny]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M512 704a192 192 0 1 0 0-384a192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512a256 256 0 0 1 0 512zm0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32zM195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248zM64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32zm768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32zM195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1.2em;height:1.2em}.absolute{position:absolute}.relative{position:relative}.grid{display:grid}.m-2{margin:.5rem}.m-4{margin:1rem}.mx-4{margin-left:1rem;margin-right:1rem}.mt-4{margin-top:1rem}.hidden{display:none}.h2{height:.5rem}.h3{height:.75rem}.max-h-\[600px\]{max-height:600px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.w-full{width:100%}[h~=full]{height:100%}.flex{display:flex}.inline-flex,[inline-flex=""]{display:inline-flex}.flex-col{flex-direction:column}.table{display:table}.cursor-pointer{cursor:pointer}.list-inside{list-style-position:inside}.list-none{list-style-type:none}.items-center{align-items:center}.justify-center{justify-content:center}.justify-self-center{justify-self:center}.overflow-x-scroll{overflow-x:scroll}.break-normal{overflow-wrap:normal;word-break:normal}.break-all{word-break:break-all}.border,.border-1,[border=""]{border-width:1px}.border-b-0{border-bottom-width:0}.border-l-4{border-left-width:4px}.border-gray-200{--un-border-opacity:1;border-color:rgba(229,231,235,var(--un-border-opacity))}.border-orange-500{--un-border-opacity:1;border-color:rgba(249,115,22,var(--un-border-opacity))}.border-none{border-style:none}.border-solid{border-style:solid}.bg-orange-100{--un-bg-opacity:1;background-color:rgba(255,237,213,var(--un-bg-opacity))}.bg-transparent{background-color:transparent}.p-2{padding:.5rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.pb-20{padding-bottom:5rem}.pie{-webkit-padding-end:1rem;padding-inline-end:1rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.font-bold{font-weight:700}.text-orange-700{--un-text-opacity:1;color:rgba(194,65,12,var(--un-text-opacity))} diff --git a/assets/index-df1f4bc2.js b/assets/index-df1f4bc2.js new file mode 100644 index 0000000..38f4397 --- /dev/null +++ b/assets/index-df1f4bc2.js @@ -0,0 +1,96 @@ +var XL=Object.defineProperty;var JL=(e,t,n)=>t in e?XL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Re=(e,t,n)=>(JL(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function um(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}const Jt={},wa=[],Cn=()=>{},ZL=()=>!1,QL=/^on[^a-z]/,bd=e=>QL.test(e),cm=e=>e.startsWith("onUpdate:"),mn=Object.assign,fm=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},eI=Object.prototype.hasOwnProperty,wt=(e,t)=>eI.call(e,t),He=Array.isArray,xa=e=>Iu(e)==="[object Map]",yd=e=>Iu(e)==="[object Set]",yy=e=>Iu(e)==="[object Date]",Xe=e=>typeof e=="function",mt=e=>typeof e=="string",iu=e=>typeof e=="symbol",yt=e=>e!==null&&typeof e=="object",Px=e=>yt(e)&&Xe(e.then)&&Xe(e.catch),Rx=Object.prototype.toString,Iu=e=>Rx.call(e),bf=e=>Iu(e).slice(8,-1),kx=e=>Iu(e)==="[object Object]",dm=e=>mt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yf=um(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_d=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},tI=/-(\w)/g,oi=_d(e=>e.replace(tI,(t,n)=>n?n.toUpperCase():"")),nI=/\B([A-Z])/g,Uo=_d(e=>e.replace(nI,"-$1").toLowerCase()),wd=_d(e=>e.charAt(0).toUpperCase()+e.slice(1)),_f=_d(e=>e?`on${wd(e)}`:""),su=(e,t)=>!Object.is(e,t),wf=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Gp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},rI=e=>{const t=mt(e)?Number(e):NaN;return isNaN(t)?e:t};let _y;const Xp=()=>_y||(_y=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vt(e){if(He(e)){const t={};for(let n=0;n{if(n){const r=n.split(sI);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function he(e){let t="";if(mt(e))t=e;else if(He(e))for(let n=0;nxd(n,t))}const pt=e=>mt(e)?e:e==null?"":He(e)||yt(e)&&(e.toString===Rx||!Xe(e.toString))?JSON.stringify(e,Fx,2):String(e),Fx=(e,t)=>t&&t.__v_isRef?Fx(e,t.value):xa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:yd(t)?{[`Set(${t.size})`]:[...t.values()]}:yt(t)&&!He(t)&&!kx(t)?String(t):t;let xr;class $x{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=xr,!t&&xr&&(this.index=(xr.scopes||(xr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=xr;try{return xr=this,t()}finally{xr=n}}}on(){xr=this}off(){xr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Nx=e=>(e.w&Hs)>0,Bx=e=>(e.n&Hs)>0,dI=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(d==="length"||d>=u)&&a.push(c)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":He(e)?dm(n)&&a.push(o.get("length")):(a.push(o.get(Lo)),xa(e)&&a.push(o.get(Zp)));break;case"delete":He(e)||(a.push(o.get(Lo)),xa(e)&&a.push(o.get(Zp)));break;case"set":xa(e)&&a.push(o.get(Lo));break}if(a.length===1)a[0]&&Qp(a[0]);else{const u=[];for(const c of a)c&&u.push(...c);Qp(gm(u))}}function Qp(e,t){const n=He(e)?e:[...e];for(const r of n)r.computed&&xy(r);for(const r of n)r.computed||xy(r)}function xy(e,t){(e!==ei||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function pI(e,t){var n;return(n=Kf.get(e))==null?void 0:n.get(t)}const gI=um("__proto__,__v_isRef,__isVue"),Wx=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(iu)),mI=vm(),vI=vm(!1,!0),bI=vm(!0),Cy=yI();function yI(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ut(this);for(let s=0,o=this.length;s{e[t]=function(...n){Ka();const r=ut(this)[t].apply(this,n);return qa(),r}}),e}function _I(e){const t=ut(this);return cr(t,"has",e),t.hasOwnProperty(e)}function vm(e=!1,t=!1){return function(r,i,s){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&s===(e?t?$I:qx:t?Kx:Ux).get(r))return r;const o=He(r);if(!e){if(o&&wt(Cy,i))return Reflect.get(Cy,i,s);if(i==="hasOwnProperty")return _I}const a=Reflect.get(r,i,s);return(iu(i)?Wx.has(i):gI(i))||(e||cr(r,"get",i),t)?a:Nt(a)?o&&dm(i)?a:a.value:yt(a)?e?Fu(a):vn(a):a}}const wI=Vx(),xI=Vx(!0);function Vx(e=!1){return function(n,r,i,s){let o=n[r];if(Ma(o)&&Nt(o)&&!Nt(i))return!1;if(!e&&(!qf(i)&&!Ma(i)&&(o=ut(o),i=ut(i)),!He(n)&&Nt(o)&&!Nt(i)))return o.value=i,!0;const a=He(n)&&dm(r)?Number(r)e,Cd=e=>Reflect.getPrototypeOf(e);function Nc(e,t,n=!1,r=!1){e=e.__v_raw;const i=ut(e),s=ut(t);n||(t!==s&&cr(i,"get",t),cr(i,"get",s));const{has:o}=Cd(i),a=r?bm:n?wm:ou;if(o.call(i,t))return a(e.get(t));if(o.call(i,s))return a(e.get(s));e!==i&&e.get(t)}function Bc(e,t=!1){const n=this.__v_raw,r=ut(n),i=ut(e);return t||(e!==i&&cr(r,"has",e),cr(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function zc(e,t=!1){return e=e.__v_raw,!t&&cr(ut(e),"iterate",Lo),Reflect.get(e,"size",e)}function Sy(e){e=ut(e);const t=ut(this);return Cd(t).has.call(t,e)||(t.add(e),Ji(t,"add",e,e)),this}function Oy(e,t){t=ut(t);const n=ut(this),{has:r,get:i}=Cd(n);let s=r.call(n,e);s||(e=ut(e),s=r.call(n,e));const o=i.call(n,e);return n.set(e,t),s?su(t,o)&&Ji(n,"set",e,t):Ji(n,"add",e,t),this}function Ey(e){const t=ut(this),{has:n,get:r}=Cd(t);let i=n.call(t,e);i||(e=ut(e),i=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return i&&Ji(t,"delete",e,void 0),s}function My(){const e=ut(this),t=e.size!==0,n=e.clear();return t&&Ji(e,"clear",void 0,void 0),n}function Hc(e,t){return function(r,i){const s=this,o=s.__v_raw,a=ut(o),u=t?bm:e?wm:ou;return!e&&cr(a,"iterate",Lo),o.forEach((c,d)=>r.call(i,u(c),u(d),s))}}function Wc(e,t,n){return function(...r){const i=this.__v_raw,s=ut(i),o=xa(s),a=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,c=i[e](...r),d=n?bm:t?wm:ou;return!t&&cr(s,"iterate",u?Zp:Lo),{next(){const{value:h,done:g}=c.next();return g?{value:h,done:g}:{value:a?[d(h[0]),d(h[1])]:d(h),done:g}},[Symbol.iterator](){return this}}}}function vs(e){return function(...t){return e==="delete"?!1:this}}function TI(){const e={get(s){return Nc(this,s)},get size(){return zc(this)},has:Bc,add:Sy,set:Oy,delete:Ey,clear:My,forEach:Hc(!1,!1)},t={get(s){return Nc(this,s,!1,!0)},get size(){return zc(this)},has:Bc,add:Sy,set:Oy,delete:Ey,clear:My,forEach:Hc(!1,!0)},n={get(s){return Nc(this,s,!0)},get size(){return zc(this,!0)},has(s){return Bc.call(this,s,!0)},add:vs("add"),set:vs("set"),delete:vs("delete"),clear:vs("clear"),forEach:Hc(!0,!1)},r={get(s){return Nc(this,s,!0,!0)},get size(){return zc(this,!0)},has(s){return Bc.call(this,s,!0)},add:vs("add"),set:vs("set"),delete:vs("delete"),clear:vs("clear"),forEach:Hc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Wc(s,!1,!1),n[s]=Wc(s,!0,!1),t[s]=Wc(s,!1,!0),r[s]=Wc(s,!0,!0)}),[e,n,t,r]}const[AI,PI,RI,kI]=TI();function ym(e,t){const n=t?e?kI:RI:e?PI:AI;return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(wt(n,i)&&i in r?n:r,i,s)}const LI={get:ym(!1,!1)},II={get:ym(!1,!0)},FI={get:ym(!0,!1)},Ux=new WeakMap,Kx=new WeakMap,qx=new WeakMap,$I=new WeakMap;function DI(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function NI(e){return e.__v_skip||!Object.isExtensible(e)?0:DI(bf(e))}function vn(e){return Ma(e)?e:_m(e,!1,jx,LI,Ux)}function BI(e){return _m(e,!1,MI,II,Kx)}function Fu(e){return _m(e,!0,EI,FI,qx)}function _m(e,t,n,r,i){if(!yt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const o=NI(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return i.set(e,a),a}function Fs(e){return Ma(e)?Fs(e.__v_raw):!!(e&&e.__v_isReactive)}function Ma(e){return!!(e&&e.__v_isReadonly)}function qf(e){return!!(e&&e.__v_isShallow)}function Yx(e){return Fs(e)||Ma(e)}function ut(e){const t=e&&e.__v_raw;return t?ut(t):e}function Sd(e){return Uf(e,"__v_skip",!0),e}const ou=e=>yt(e)?vn(e):e,wm=e=>yt(e)?Fu(e):e;function Gx(e){Is&&ei&&(e=ut(e),Hx(e.dep||(e.dep=gm())))}function xm(e,t){e=ut(e);const n=e.dep;n&&Qp(n)}function Nt(e){return!!(e&&e.__v_isRef===!0)}function X(e){return Xx(e,!1)}function $s(e){return Xx(e,!0)}function Xx(e,t){return Nt(e)?e:new zI(e,t)}class zI{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ut(t),this._value=n?t:ou(t)}get value(){return Gx(this),this._value}set value(t){const n=this.__v_isShallow||qf(t)||Ma(t);t=n?t:ut(t),su(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ou(t),xm(this))}}function yl(e){xm(e)}function S(e){return Nt(e)?e.value:e}const HI={get:(e,t,n)=>S(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Nt(i)&&!Nt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Jx(e){return Fs(e)?e:new Proxy(e,HI)}function Gs(e){const t=He(e)?new Array(e.length):{};for(const n in e)t[n]=Zx(e,n);return t}class WI{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return pI(ut(this._object),this._key)}}class VI{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Nr(e,t,n){return Nt(e)?e:Xe(e)?new VI(e):yt(e)&&arguments.length>1?Zx(e,t,n):X(e)}function Zx(e,t,n){const r=e[t];return Nt(r)?r:new WI(e,t,n)}class jI{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new mm(t,()=>{this._dirty||(this._dirty=!0,xm(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=ut(this);return Gx(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Qx(e,t,n=!1){let r,i;const s=Xe(e);return s?(r=e,i=Cn):(r=e.get,i=e.set),new jI(r,i,s||!i,n)}function UI(e,...t){}function Ds(e,t,n,r){let i;try{i=r?e(...r):e()}catch(s){Od(s,t,n)}return i}function Br(e,t,n,r){if(Xe(e)){const s=Ds(e,t,n,r);return s&&Px(s)&&s.catch(o=>{Od(o,t,n)}),s}const i=[];for(let s=0;s>>1;lu(Wn[r])yi&&Wn.splice(t,1)}function GI(e){He(e)?Ca.push(...e):(!Ui||!Ui.includes(e,e.allowRecurse?wo+1:wo))&&Ca.push(e),tC()}function Ty(e,t=au?yi+1:0){for(;tlu(n)-lu(r)),wo=0;woe.id==null?1/0:e.id,XI=(e,t)=>{const n=lu(e)-lu(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function rC(e){eg=!1,au=!0,Wn.sort(XI);const t=Cn;try{for(yi=0;yimt(m)?m.trim():m)),h&&(i=n.map(Gp))}let a,u=r[a=_f(t)]||r[a=_f(oi(t))];!u&&s&&(u=r[a=_f(Uo(t))]),u&&Br(u,e,6,i);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Br(c,e,6,i)}}function iC(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let o={},a=!1;if(!Xe(e)){const u=c=>{const d=iC(c,t,!0);d&&(a=!0,mn(o,d))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!s&&!a?(yt(e)&&r.set(e,null),null):(He(s)?s.forEach(u=>o[u]=null):mn(o,s),yt(e)&&r.set(e,o),o)}function Ed(e,t){return!e||!bd(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,Uo(t))||wt(e,t))}let Mn=null,sC=null;function Yf(e){const t=Mn;return Mn=e,sC=e&&e.type.__scopeId||null,t}function z(e,t=Mn,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Hy(-1);const s=Yf(t);let o;try{o=e(...i)}finally{Yf(s),r._d&&Hy(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function fp(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:s,propsOptions:[o],slots:a,attrs:u,emit:c,render:d,renderCache:h,data:g,setupState:m,ctx:b,inheritAttrs:v}=e;let _,y;const C=Yf(e);try{if(n.shapeFlag&4){const w=i||r;_=vi(d.call(w,w,h,s,m,g,b)),y=u}else{const w=t;_=vi(w.length>1?w(s,{attrs:u,slots:a,emit:c}):w(s,null)),y=t.props?u:ZI(u)}}catch(w){Vl.length=0,Od(w,e,1),_=W(ar)}let O=_;if(y&&v!==!1){const w=Object.keys(y),{shapeFlag:M}=O;w.length&&M&7&&(o&&w.some(cm)&&(y=QI(y,o)),O=Zi(O,y))}return n.dirs&&(O=Zi(O),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&(O.transition=n.transition),_=O,Yf(C),_}const ZI=e=>{let t;for(const n in e)(n==="class"||n==="style"||bd(n))&&((t||(t={}))[n]=e[n]);return t},QI=(e,t)=>{const n={};for(const r in e)(!cm(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function eF(e,t,n){const{props:r,children:i,component:s}=e,{props:o,children:a,patchFlag:u}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return r?Ay(r,o,c):!!o;if(u&8){const d=t.dynamicProps;for(let h=0;he.__isSuspense;function rF(e,t){t&&t.pendingBranch?He(e)?t.effects.push(...e):t.effects.push(e):GI(e)}function Ns(e,t){return Om(e,null,t)}const Vc={};function Fe(e,t,n){return Om(e,t,n)}function Om(e,t,{immediate:n,deep:r,flush:i,onTrack:s,onTrigger:o}=Jt){var a;const u=hm()===((a=_n)==null?void 0:a.scope)?_n:null;let c,d=!1,h=!1;if(Nt(e)?(c=()=>e.value,d=qf(e)):Fs(e)?(c=()=>e,r=!0):He(e)?(h=!0,d=e.some(w=>Fs(w)||qf(w)),c=()=>e.map(w=>{if(Nt(w))return w.value;if(Fs(w))return Mo(w);if(Xe(w))return Ds(w,u,2)})):Xe(e)?t?c=()=>Ds(e,u,2):c=()=>{if(!(u&&u.isUnmounted))return g&&g(),Br(e,u,3,[m])}:c=Cn,t&&r){const w=c;c=()=>Mo(w())}let g,m=w=>{g=C.onStop=()=>{Ds(w,u,4)}},b;if(hu)if(m=Cn,t?n&&Br(t,u,3,[c(),h?[]:void 0,m]):c(),i==="sync"){const w=GF();b=w.__watcherHandles||(w.__watcherHandles=[])}else return Cn;let v=h?new Array(e.length).fill(Vc):Vc;const _=()=>{if(C.active)if(t){const w=C.run();(r||d||(h?w.some((M,T)=>su(M,v[T])):su(w,v)))&&(g&&g(),Br(t,u,3,[w,v===Vc?void 0:h&&v[0]===Vc?[]:v,m]),v=w)}else C.run()};_.allowRecurse=!!t;let y;i==="sync"?y=_:i==="post"?y=()=>sr(_,u&&u.suspense):(_.pre=!0,u&&(_.id=u.uid),y=()=>Sm(_));const C=new mm(c,y);t?n?_():v=C.run():i==="post"?sr(C.run.bind(C),u&&u.suspense):C.run();const O=()=>{C.stop(),u&&u.scope&&fm(u.scope.effects,C)};return b&&b.push(O),O}function iF(e,t,n){const r=this.proxy,i=mt(e)?e.includes(".")?oC(r,e):()=>r[e]:e.bind(r,r);let s;Xe(t)?s=t:(s=t.handler,n=t);const o=_n;Aa(this);const a=Om(i,s.bind(r),n);return o?Aa(o):Io(),a}function oC(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{Mo(n,t)});else if(kx(e))for(const n in e)Mo(e[n],t);return e}function gn(e,t){const n=Mn;if(n===null)return e;const r=Pd(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let s=0;s{e.isMounted=!0}),An(()=>{e.isUnmounting=!0}),e}const $r=[Function,Array],lC={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:$r,onEnter:$r,onAfterEnter:$r,onEnterCancelled:$r,onBeforeLeave:$r,onLeave:$r,onAfterLeave:$r,onLeaveCancelled:$r,onBeforeAppear:$r,onAppear:$r,onAfterAppear:$r,onAppearCancelled:$r},sF={name:"BaseTransition",props:lC,setup(e,{slots:t}){const n=kt(),r=aC();let i;return()=>{const s=t.default&&Em(t.default(),!0);if(!s||!s.length)return;let o=s[0];if(s.length>1){for(const v of s)if(v.type!==ar){o=v;break}}const a=ut(e),{mode:u}=a;if(r.isLeaving)return dp(o);const c=Py(o);if(!c)return dp(o);const d=uu(c,a,r,n);cu(c,d);const h=n.subTree,g=h&&Py(h);let m=!1;const{getTransitionKey:b}=c.type;if(b){const v=b();i===void 0?i=v:v!==i&&(i=v,m=!0)}if(g&&g.type!==ar&&(!xo(c,g)||m)){const v=uu(g,a,r,n);if(cu(g,v),u==="out-in")return r.isLeaving=!0,v.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},dp(o);u==="in-out"&&c.type!==ar&&(v.delayLeave=(_,y,C)=>{const O=uC(r,g);O[String(g.key)]=g,_._leaveCb=()=>{y(),_._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=C})}return o}}},oF=sF;function uC(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function uu(e,t,n,r){const{appear:i,mode:s,persisted:o=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:h,onLeave:g,onAfterLeave:m,onLeaveCancelled:b,onBeforeAppear:v,onAppear:_,onAfterAppear:y,onAppearCancelled:C}=t,O=String(e.key),w=uC(n,e),M=(R,F)=>{R&&Br(R,r,9,F)},T=(R,F)=>{const D=F[1];M(R,F),He(R)?R.every(V=>V.length<=1)&&D():R.length<=1&&D()},P={mode:s,persisted:o,beforeEnter(R){let F=a;if(!n.isMounted)if(i)F=v||a;else return;R._leaveCb&&R._leaveCb(!0);const D=w[O];D&&xo(e,D)&&D.el._leaveCb&&D.el._leaveCb(),M(F,[R])},enter(R){let F=u,D=c,V=d;if(!n.isMounted)if(i)F=_||u,D=y||c,V=C||d;else return;let A=!1;const U=R._enterCb=le=>{A||(A=!0,le?M(V,[R]):M(D,[R]),P.delayedLeave&&P.delayedLeave(),R._enterCb=void 0)};F?T(F,[R,U]):U()},leave(R,F){const D=String(e.key);if(R._enterCb&&R._enterCb(!0),n.isUnmounting)return F();M(h,[R]);let V=!1;const A=R._leaveCb=U=>{V||(V=!0,F(),U?M(b,[R]):M(m,[R]),R._leaveCb=void 0,w[D]===e&&delete w[D])};w[D]=e,g?T(g,[R,A]):A()},clone(R){return uu(R,t,n,r)}};return P}function dp(e){if(Md(e))return e=Zi(e),e.children=null,e}function Py(e){return Md(e)?e.children?e.children[0]:void 0:e}function cu(e,t){e.shapeFlag&6&&e.component?cu(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Em(e,t=!1,n){let r=[],i=0;for(let s=0;s1)for(let s=0;smn({name:e.name},t,{setup:e}))():e}const zl=e=>!!e.type.__asyncLoader,Md=e=>e.type.__isKeepAlive;function aF(e,t){fC(e,"a",t)}function cC(e,t){fC(e,"da",t)}function fC(e,t,n=_n){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Td(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Md(i.parent.vnode)&&lF(r,t,n,i),i=i.parent}}function lF(e,t,n,r){const i=Td(t,e,r,!0);Ga(()=>{fm(r[t],i)},n)}function Td(e,t,n=_n,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Ka(),Aa(n);const a=Br(t,n,e,o);return Io(),qa(),a});return r?i.unshift(s):i.push(s),s}}const rs=e=>(t,n=_n)=>(!hu||e==="sp")&&Td(e,(...r)=>t(...r),n),Ya=rs("bm"),It=rs("m"),uF=rs("bu"),Xs=rs("u"),An=rs("bum"),Ga=rs("um"),cF=rs("sp"),fF=rs("rtg"),dF=rs("rtc");function hF(e,t=_n){Td("ec",e,t)}const Mm="components",pF="directives";function Yt(e,t){return Am(Mm,e,!0,t)||e}const dC=Symbol.for("v-ndc");function Fn(e){return mt(e)?Am(Mm,e,!1)||e:e||dC}function Tm(e){return Am(pF,e)}function Am(e,t,n=!0,r=!1){const i=Mn||_n;if(i){const s=i.type;if(e===Mm){const a=KF(s,!1);if(a&&(a===t||a===oi(t)||a===wd(oi(t))))return s}const o=Ry(i[e]||s[e],t)||Ry(i.appContext[e],t);return!o&&r?s:o}}function Ry(e,t){return e&&(e[t]||e[oi(t)]||e[wd(oi(t))])}function En(e,t,n,r){let i;const s=n&&n[r];if(He(e)||mt(e)){i=new Array(e.length);for(let o=0,a=e.length;ot(o,a,void 0,s&&s[a]));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,u=o.length;a{const s=r.fn(...i);return s&&(s.key=r.key),s}:r.fn)}return e}function We(e,t,n={},r,i){if(Mn.isCE||Mn.parent&&zl(Mn.parent)&&Mn.parent.isCE)return t!=="default"&&(n.name=t),W("slot",n,r&&r());let s=e[t];s&&s._c&&(s._d=!1),K();const o=s&&pC(s(n)),a=Me(it,{key:n.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function pC(e){return e.some(t=>Ta(t)?!(t.type===ar||t.type===it&&!pC(t.children)):!0)?e:null}function gF(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:_f(r)]=e[r];return n}const tg=e=>e?EC(e)?Pd(e)||e.proxy:tg(e.parent):null,Hl=mn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>tg(e.parent),$root:e=>tg(e.root),$emit:e=>e.emit,$options:e=>Pm(e),$forceUpdate:e=>e.f||(e.f=()=>Sm(e.update)),$nextTick:e=>e.n||(e.n=bt.bind(e.proxy)),$watch:e=>iF.bind(e)}),hp=(e,t)=>e!==Jt&&!e.__isScriptSetup&&wt(e,t),mF={get({_:e},t){const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:u}=e;let c;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(hp(r,t))return o[t]=1,r[t];if(i!==Jt&&wt(i,t))return o[t]=2,i[t];if((c=e.propsOptions[0])&&wt(c,t))return o[t]=3,s[t];if(n!==Jt&&wt(n,t))return o[t]=4,n[t];ng&&(o[t]=0)}}const d=Hl[t];let h,g;if(d)return t==="$attrs"&&cr(e,"get",t),d(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==Jt&&wt(n,t))return o[t]=4,n[t];if(g=u.config.globalProperties,wt(g,t))return g[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return hp(i,t)?(i[t]=n,!0):r!==Jt&&wt(r,t)?(r[t]=n,!0):wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},o){let a;return!!n[o]||e!==Jt&&wt(e,o)||hp(t,o)||(a=s[0])&&wt(a,o)||wt(r,o)||wt(Hl,o)||wt(i.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:wt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ko(){return gC().slots}function vF(){return gC().attrs}function gC(){const e=kt();return e.setupContext||(e.setupContext=TC(e))}function ky(e){return He(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ng=!0;function bF(e){const t=Pm(e),n=e.proxy,r=e.ctx;ng=!1,t.beforeCreate&&Ly(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:o,watch:a,provide:u,inject:c,created:d,beforeMount:h,mounted:g,beforeUpdate:m,updated:b,activated:v,deactivated:_,beforeDestroy:y,beforeUnmount:C,destroyed:O,unmounted:w,render:M,renderTracked:T,renderTriggered:P,errorCaptured:R,serverPrefetch:F,expose:D,inheritAttrs:V,components:A,directives:U,filters:le}=t;if(c&&yF(c,r,null),o)for(const Z in o){const ie=o[Z];Xe(ie)&&(r[Z]=ie.bind(n))}if(i){const Z=i.call(n,n);yt(Z)&&(e.data=vn(Z))}if(ng=!0,s)for(const Z in s){const ie=s[Z],Q=Xe(ie)?ie.bind(n,n):Xe(ie.get)?ie.get.bind(n,n):Cn,ye=!Xe(ie)&&Xe(ie.set)?ie.set.bind(n):Cn,Ee=B({get:Q,set:ye});Object.defineProperty(r,Z,{enumerable:!0,configurable:!0,get:()=>Ee.value,set:Le=>Ee.value=Le})}if(a)for(const Z in a)mC(a[Z],r,n,Z);if(u){const Z=Xe(u)?u.call(n):u;Reflect.ownKeys(Z).forEach(ie=>{sn(ie,Z[ie])})}d&&Ly(d,e,"c");function te(Z,ie){He(ie)?ie.forEach(Q=>Z(Q.bind(n))):ie&&Z(ie.bind(n))}if(te(Ya,h),te(It,g),te(uF,m),te(Xs,b),te(aF,v),te(cC,_),te(hF,R),te(dF,T),te(fF,P),te(An,C),te(Ga,w),te(cF,F),He(D))if(D.length){const Z=e.exposed||(e.exposed={});D.forEach(ie=>{Object.defineProperty(Z,ie,{get:()=>n[ie],set:Q=>n[ie]=Q})})}else e.exposed||(e.exposed={});M&&e.render===Cn&&(e.render=M),V!=null&&(e.inheritAttrs=V),A&&(e.components=A),U&&(e.directives=U)}function yF(e,t,n=Cn){He(e)&&(e=rg(e));for(const r in e){const i=e[r];let s;yt(i)?"default"in i?s=qe(i.from||r,i.default,!0):s=qe(i.from||r):s=qe(i),Nt(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[r]=s}}function Ly(e,t,n){Br(He(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function mC(e,t,n,r){const i=r.includes(".")?oC(n,r):()=>n[r];if(mt(e)){const s=t[e];Xe(s)&&Fe(i,s)}else if(Xe(e))Fe(i,e.bind(n));else if(yt(e))if(He(e))e.forEach(s=>mC(s,t,n,r));else{const s=Xe(e.handler)?e.handler.bind(n):t[e.handler];Xe(s)&&Fe(i,s,e)}}function Pm(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let u;return a?u=a:!i.length&&!n&&!r?u=t:(u={},i.length&&i.forEach(c=>Gf(u,c,o,!0)),Gf(u,t,o)),yt(t)&&s.set(t,u),u}function Gf(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&Gf(e,s,n,!0),i&&i.forEach(o=>Gf(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=_F[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const _F={data:Iy,props:Fy,emits:Fy,methods:Rl,computed:Rl,beforeCreate:Xn,created:Xn,beforeMount:Xn,mounted:Xn,beforeUpdate:Xn,updated:Xn,beforeDestroy:Xn,beforeUnmount:Xn,destroyed:Xn,unmounted:Xn,activated:Xn,deactivated:Xn,errorCaptured:Xn,serverPrefetch:Xn,components:Rl,directives:Rl,watch:xF,provide:Iy,inject:wF};function Iy(e,t){return t?e?function(){return mn(Xe(e)?e.call(this,this):e,Xe(t)?t.call(this,this):t)}:t:e}function wF(e,t){return Rl(rg(e),rg(t))}function rg(e){if(He(e)){const t={};for(let n=0;n1)return n&&Xe(t)?t.call(r&&r.proxy):t}}function OF(){return!!(_n||Mn||fu)}function EF(e,t,n,r=!1){const i={},s={};Uf(s,Ad,1),e.propsDefaults=Object.create(null),bC(e,t,i,s);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:BI(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function MF(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=e,a=ut(i),[u]=e.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let h=0;h{u=!0;const[g,m]=yC(h,t,!0);mn(o,g),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!s&&!u)return yt(e)&&r.set(e,wa),wa;if(He(s))for(let d=0;d-1,m[1]=v<0||b-1||wt(m,"default"))&&a.push(h)}}}const c=[o,a];return yt(e)&&r.set(e,c),c}function $y(e){return e[0]!=="$"}function Dy(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ny(e,t){return Dy(e)===Dy(t)}function By(e,t){return He(t)?t.findIndex(n=>Ny(n,e)):Xe(t)&&Ny(t,e)?0:-1}const _C=e=>e[0]==="_"||e==="$stable",Rm=e=>He(e)?e.map(vi):[vi(e)],TF=(e,t,n)=>{if(t._n)return t;const r=z((...i)=>Rm(t(...i)),n);return r._c=!1,r},wC=(e,t,n)=>{const r=e._ctx;for(const i in e){if(_C(i))continue;const s=e[i];if(Xe(s))t[i]=TF(i,s,r);else if(s!=null){const o=Rm(s);t[i]=()=>o}}},xC=(e,t)=>{const n=Rm(t);e.slots.default=()=>n},AF=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ut(t),Uf(t,"_",n)):wC(t,e.slots={})}else e.slots={},t&&xC(e,t);Uf(e.slots,Ad,1)},PF=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,o=Jt;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:(mn(i,t),!n&&a===1&&delete i._):(s=!t.$stable,wC(t,i)),o=t}else t&&(xC(e,t),o={default:1});if(s)for(const a in i)!_C(a)&&!(a in o)&&delete i[a]};function sg(e,t,n,r,i=!1){if(He(e)){e.forEach((g,m)=>sg(g,t&&(He(t)?t[m]:t),n,r,i));return}if(zl(r)&&!i)return;const s=r.shapeFlag&4?Pd(r.component)||r.component.proxy:r.el,o=i?null:s,{i:a,r:u}=e,c=t&&t.r,d=a.refs===Jt?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==u&&(mt(c)?(d[c]=null,wt(h,c)&&(h[c]=null)):Nt(c)&&(c.value=null)),Xe(u))Ds(u,a,12,[o,d]);else{const g=mt(u),m=Nt(u);if(g||m){const b=()=>{if(e.f){const v=g?wt(h,u)?h[u]:d[u]:u.value;i?He(v)&&fm(v,s):He(v)?v.includes(s)||v.push(s):g?(d[u]=[s],wt(h,u)&&(h[u]=d[u])):(u.value=[s],e.k&&(d[e.k]=u.value))}else g?(d[u]=o,wt(h,u)&&(h[u]=o)):m&&(u.value=o,e.k&&(d[e.k]=o))};o?(b.id=-1,sr(b,n)):b()}}}const sr=rF;function RF(e){return kF(e)}function kF(e,t){const n=Xp();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:a,createComment:u,setText:c,setElementText:d,parentNode:h,nextSibling:g,setScopeId:m=Cn,insertStaticContent:b}=e,v=($,H,q,se=null,pe=null,me=null,Ae=!1,Se=null,Ce=!!H.dynamicChildren)=>{if($===H)return;$&&!xo($,H)&&(se=Y($),Le($,pe,me,!0),$=null),H.patchFlag===-2&&(Ce=!1,H.dynamicChildren=null);const{type:ge,ref:Be,shapeFlag:Pe}=H;switch(ge){case Xa:_($,H,q,se);break;case ar:y($,H,q,se);break;case pp:$==null&&C(H,q,se,Ae);break;case it:A($,H,q,se,pe,me,Ae,Se,Ce);break;default:Pe&1?M($,H,q,se,pe,me,Ae,Se,Ce):Pe&6?U($,H,q,se,pe,me,Ae,Se,Ce):(Pe&64||Pe&128)&&ge.process($,H,q,se,pe,me,Ae,Se,Ce,de)}Be!=null&&pe&&sg(Be,$&&$.ref,me,H||$,!H)},_=($,H,q,se)=>{if($==null)r(H.el=a(H.children),q,se);else{const pe=H.el=$.el;H.children!==$.children&&c(pe,H.children)}},y=($,H,q,se)=>{$==null?r(H.el=u(H.children||""),q,se):H.el=$.el},C=($,H,q,se)=>{[$.el,$.anchor]=b($.children,H,q,se,$.el,$.anchor)},O=({el:$,anchor:H},q,se)=>{let pe;for(;$&&$!==H;)pe=g($),r($,q,se),$=pe;r(H,q,se)},w=({el:$,anchor:H})=>{let q;for(;$&&$!==H;)q=g($),i($),$=q;i(H)},M=($,H,q,se,pe,me,Ae,Se,Ce)=>{Ae=Ae||H.type==="svg",$==null?T(H,q,se,pe,me,Ae,Se,Ce):F($,H,pe,me,Ae,Se,Ce)},T=($,H,q,se,pe,me,Ae,Se)=>{let Ce,ge;const{type:Be,props:Pe,shapeFlag:ne,transition:Te,dirs:Ue}=$;if(Ce=$.el=o($.type,me,Pe&&Pe.is,Pe),ne&8?d(Ce,$.children):ne&16&&R($.children,Ce,null,se,pe,me&&Be!=="foreignObject",Ae,Se),Ue&&lo($,null,se,"created"),P(Ce,$,$.scopeId,Ae,se),Pe){for(const ot in Pe)ot!=="value"&&!yf(ot)&&s(Ce,ot,null,Pe[ot],me,$.children,se,pe,Je);"value"in Pe&&s(Ce,"value",null,Pe.value),(ge=Pe.onVnodeBeforeMount)&&pi(ge,se,$)}Ue&&lo($,null,se,"beforeMount");const at=(!pe||pe&&!pe.pendingBranch)&&Te&&!Te.persisted;at&&Te.beforeEnter(Ce),r(Ce,H,q),((ge=Pe&&Pe.onVnodeMounted)||at||Ue)&&sr(()=>{ge&&pi(ge,se,$),at&&Te.enter(Ce),Ue&&lo($,null,se,"mounted")},pe)},P=($,H,q,se,pe)=>{if(q&&m($,q),se)for(let me=0;me{for(let ge=Ce;ge<$.length;ge++){const Be=$[ge]=Se?Os($[ge]):vi($[ge]);v(null,Be,H,q,se,pe,me,Ae,Se)}},F=($,H,q,se,pe,me,Ae)=>{const Se=H.el=$.el;let{patchFlag:Ce,dynamicChildren:ge,dirs:Be}=H;Ce|=$.patchFlag&16;const Pe=$.props||Jt,ne=H.props||Jt;let Te;q&&uo(q,!1),(Te=ne.onVnodeBeforeUpdate)&&pi(Te,q,H,$),Be&&lo(H,$,q,"beforeUpdate"),q&&uo(q,!0);const Ue=pe&&H.type!=="foreignObject";if(ge?D($.dynamicChildren,ge,Se,q,se,Ue,me):Ae||ie($,H,Se,null,q,se,Ue,me,!1),Ce>0){if(Ce&16)V(Se,H,Pe,ne,q,se,pe);else if(Ce&2&&Pe.class!==ne.class&&s(Se,"class",null,ne.class,pe),Ce&4&&s(Se,"style",Pe.style,ne.style,pe),Ce&8){const at=H.dynamicProps;for(let ot=0;ot{Te&&pi(Te,q,H,$),Be&&lo(H,$,q,"updated")},se)},D=($,H,q,se,pe,me,Ae)=>{for(let Se=0;Se{if(q!==se){if(q!==Jt)for(const Se in q)!yf(Se)&&!(Se in se)&&s($,Se,q[Se],null,Ae,H.children,pe,me,Je);for(const Se in se){if(yf(Se))continue;const Ce=se[Se],ge=q[Se];Ce!==ge&&Se!=="value"&&s($,Se,ge,Ce,Ae,H.children,pe,me,Je)}"value"in se&&s($,"value",q.value,se.value)}},A=($,H,q,se,pe,me,Ae,Se,Ce)=>{const ge=H.el=$?$.el:a(""),Be=H.anchor=$?$.anchor:a("");let{patchFlag:Pe,dynamicChildren:ne,slotScopeIds:Te}=H;Te&&(Se=Se?Se.concat(Te):Te),$==null?(r(ge,q,se),r(Be,q,se),R(H.children,q,Be,pe,me,Ae,Se,Ce)):Pe>0&&Pe&64&&ne&&$.dynamicChildren?(D($.dynamicChildren,ne,q,pe,me,Ae,Se),(H.key!=null||pe&&H===pe.subTree)&&km($,H,!0)):ie($,H,q,Be,pe,me,Ae,Se,Ce)},U=($,H,q,se,pe,me,Ae,Se,Ce)=>{H.slotScopeIds=Se,$==null?H.shapeFlag&512?pe.ctx.activate(H,q,se,Ae,Ce):le(H,q,se,pe,me,Ae,Ce):ce($,H,Ce)},le=($,H,q,se,pe,me,Ae)=>{const Se=$.component=WF($,se,pe);if(Md($)&&(Se.ctx.renderer=de),VF(Se),Se.asyncDep){if(pe&&pe.registerDep(Se,te),!$.el){const Ce=Se.subTree=W(ar);y(null,Ce,H,q)}return}te(Se,$,H,q,pe,me,Ae)},ce=($,H,q)=>{const se=H.component=$.component;if(eF($,H,q))if(se.asyncDep&&!se.asyncResolved){Z(se,H,q);return}else se.next=H,YI(se.update),se.update();else H.el=$.el,se.vnode=H},te=($,H,q,se,pe,me,Ae)=>{const Se=()=>{if($.isMounted){let{next:Be,bu:Pe,u:ne,parent:Te,vnode:Ue}=$,at=Be,ot;uo($,!1),Be?(Be.el=Ue.el,Z($,Be,Ae)):Be=Ue,Pe&&wf(Pe),(ot=Be.props&&Be.props.onVnodeBeforeUpdate)&&pi(ot,Te,Be,Ue),uo($,!0);const Bt=fp($),ke=$.subTree;$.subTree=Bt,v(ke,Bt,h(ke.el),Y(ke),$,pe,me),Be.el=Bt.el,at===null&&tF($,Bt.el),ne&&sr(ne,pe),(ot=Be.props&&Be.props.onVnodeUpdated)&&sr(()=>pi(ot,Te,Be,Ue),pe)}else{let Be;const{el:Pe,props:ne}=H,{bm:Te,m:Ue,parent:at}=$,ot=zl(H);if(uo($,!1),Te&&wf(Te),!ot&&(Be=ne&&ne.onVnodeBeforeMount)&&pi(Be,at,H),uo($,!0),Pe&&Ve){const Bt=()=>{$.subTree=fp($),Ve(Pe,$.subTree,$,pe,null)};ot?H.type.__asyncLoader().then(()=>!$.isUnmounted&&Bt()):Bt()}else{const Bt=$.subTree=fp($);v(null,Bt,q,se,$,pe,me),H.el=Bt.el}if(Ue&&sr(Ue,pe),!ot&&(Be=ne&&ne.onVnodeMounted)){const Bt=H;sr(()=>pi(Be,at,Bt),pe)}(H.shapeFlag&256||at&&zl(at.vnode)&&at.vnode.shapeFlag&256)&&$.a&&sr($.a,pe),$.isMounted=!0,H=q=se=null}},Ce=$.effect=new mm(Se,()=>Sm(ge),$.scope),ge=$.update=()=>Ce.run();ge.id=$.uid,uo($,!0),ge()},Z=($,H,q)=>{H.component=$;const se=$.vnode.props;$.vnode=H,$.next=null,MF($,H.props,se,q),PF($,H.children,q),Ka(),Ty(),qa()},ie=($,H,q,se,pe,me,Ae,Se,Ce=!1)=>{const ge=$&&$.children,Be=$?$.shapeFlag:0,Pe=H.children,{patchFlag:ne,shapeFlag:Te}=H;if(ne>0){if(ne&128){ye(ge,Pe,q,se,pe,me,Ae,Se,Ce);return}else if(ne&256){Q(ge,Pe,q,se,pe,me,Ae,Se,Ce);return}}Te&8?(Be&16&&Je(ge,pe,me),Pe!==ge&&d(q,Pe)):Be&16?Te&16?ye(ge,Pe,q,se,pe,me,Ae,Se,Ce):Je(ge,pe,me,!0):(Be&8&&d(q,""),Te&16&&R(Pe,q,se,pe,me,Ae,Se,Ce))},Q=($,H,q,se,pe,me,Ae,Se,Ce)=>{$=$||wa,H=H||wa;const ge=$.length,Be=H.length,Pe=Math.min(ge,Be);let ne;for(ne=0;neBe?Je($,pe,me,!0,!1,Pe):R(H,q,se,pe,me,Ae,Se,Ce,Pe)},ye=($,H,q,se,pe,me,Ae,Se,Ce)=>{let ge=0;const Be=H.length;let Pe=$.length-1,ne=Be-1;for(;ge<=Pe&&ge<=ne;){const Te=$[ge],Ue=H[ge]=Ce?Os(H[ge]):vi(H[ge]);if(xo(Te,Ue))v(Te,Ue,q,null,pe,me,Ae,Se,Ce);else break;ge++}for(;ge<=Pe&&ge<=ne;){const Te=$[Pe],Ue=H[ne]=Ce?Os(H[ne]):vi(H[ne]);if(xo(Te,Ue))v(Te,Ue,q,null,pe,me,Ae,Se,Ce);else break;Pe--,ne--}if(ge>Pe){if(ge<=ne){const Te=ne+1,Ue=Tene)for(;ge<=Pe;)Le($[ge],pe,me,!0),ge++;else{const Te=ge,Ue=ge,at=new Map;for(ge=Ue;ge<=ne;ge++){const St=H[ge]=Ce?Os(H[ge]):vi(H[ge]);St.key!=null&&at.set(St.key,ge)}let ot,Bt=0;const ke=ne-Ue+1;let Ke=!1,ct=0;const et=new Array(ke);for(ge=0;ge=ke){Le(St,pe,me,!0);continue}let $t;if(St.key!=null)$t=at.get(St.key);else for(ot=Ue;ot<=ne;ot++)if(et[ot-Ue]===0&&xo(St,H[ot])){$t=ot;break}$t===void 0?Le(St,pe,me,!0):(et[$t-Ue]=ge+1,$t>=ct?ct=$t:Ke=!0,v(St,H[$t],q,null,pe,me,Ae,Se,Ce),Bt++)}const xt=Ke?LF(et):wa;for(ot=xt.length-1,ge=ke-1;ge>=0;ge--){const St=Ue+ge,$t=H[St],ee=St+1{const{el:me,type:Ae,transition:Se,children:Ce,shapeFlag:ge}=$;if(ge&6){Ee($.component.subTree,H,q,se);return}if(ge&128){$.suspense.move(H,q,se);return}if(ge&64){Ae.move($,H,q,de);return}if(Ae===it){r(me,H,q);for(let Pe=0;PeSe.enter(me),pe);else{const{leave:Pe,delayLeave:ne,afterLeave:Te}=Se,Ue=()=>r(me,H,q),at=()=>{Pe(me,()=>{Ue(),Te&&Te()})};ne?ne(me,Ue,at):at()}else r(me,H,q)},Le=($,H,q,se=!1,pe=!1)=>{const{type:me,props:Ae,ref:Se,children:Ce,dynamicChildren:ge,shapeFlag:Be,patchFlag:Pe,dirs:ne}=$;if(Se!=null&&sg(Se,null,q,$,!0),Be&256){H.ctx.deactivate($);return}const Te=Be&1&&ne,Ue=!zl($);let at;if(Ue&&(at=Ae&&Ae.onVnodeBeforeUnmount)&&pi(at,H,$),Be&6)$e($.component,q,se);else{if(Be&128){$.suspense.unmount(q,se);return}Te&&lo($,null,H,"beforeUnmount"),Be&64?$.type.remove($,H,q,pe,de,se):ge&&(me!==it||Pe>0&&Pe&64)?Je(ge,H,q,!1,!0):(me===it&&Pe&384||!pe&&Be&16)&&Je(Ce,H,q),se&&ue($)}(Ue&&(at=Ae&&Ae.onVnodeUnmounted)||Te)&&sr(()=>{at&&pi(at,H,$),Te&&lo($,null,H,"unmounted")},q)},ue=$=>{const{type:H,el:q,anchor:se,transition:pe}=$;if(H===it){Ze(q,se);return}if(H===pp){w($);return}const me=()=>{i(q),pe&&!pe.persisted&&pe.afterLeave&&pe.afterLeave()};if($.shapeFlag&1&&pe&&!pe.persisted){const{leave:Ae,delayLeave:Se}=pe,Ce=()=>Ae(q,me);Se?Se($.el,me,Ce):Ce()}else me()},Ze=($,H)=>{let q;for(;$!==H;)q=g($),i($),$=q;i(H)},$e=($,H,q)=>{const{bum:se,scope:pe,update:me,subTree:Ae,um:Se}=$;se&&wf(se),pe.stop(),me&&(me.active=!1,Le(Ae,$,H,q)),Se&&sr(Se,H),sr(()=>{$.isUnmounted=!0},H),H&&H.pendingBranch&&!H.isUnmounted&&$.asyncDep&&!$.asyncResolved&&$.suspenseId===H.pendingId&&(H.deps--,H.deps===0&&H.resolve())},Je=($,H,q,se=!1,pe=!1,me=0)=>{for(let Ae=me;Ae<$.length;Ae++)Le($[Ae],H,q,se,pe)},Y=$=>$.shapeFlag&6?Y($.component.subTree):$.shapeFlag&128?$.suspense.next():g($.anchor||$.el),oe=($,H,q)=>{$==null?H._vnode&&Le(H._vnode,null,null,!0):v(H._vnode||null,$,H,null,null,null,q),Ty(),nC(),H._vnode=$},de={p:v,um:Le,m:Ee,r:ue,mt:le,mc:R,pc:ie,pbc:D,n:Y,o:e};let Oe,Ve;return t&&([Oe,Ve]=t(de)),{render:oe,hydrate:Oe,createApp:SF(oe,Oe)}}function uo({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function km(e,t,n=!1){const r=e.children,i=t.children;if(He(r)&&He(i))for(let s=0;s>1,e[n[a]]0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=t[o];return n}const IF=e=>e.__isTeleport,Wl=e=>e&&(e.disabled||e.disabled===""),zy=e=>typeof SVGElement<"u"&&e instanceof SVGElement,og=(e,t)=>{const n=e&&e.to;return mt(n)?t?t(n):null:n},FF={__isTeleport:!0,process(e,t,n,r,i,s,o,a,u,c){const{mc:d,pc:h,pbc:g,o:{insert:m,querySelector:b,createText:v,createComment:_}}=c,y=Wl(t.props);let{shapeFlag:C,children:O,dynamicChildren:w}=t;if(e==null){const M=t.el=v(""),T=t.anchor=v("");m(M,n,r),m(T,n,r);const P=t.target=og(t.props,b),R=t.targetAnchor=v("");P&&(m(R,P),o=o||zy(P));const F=(D,V)=>{C&16&&d(O,D,V,i,s,o,a,u)};y?F(n,T):P&&F(P,R)}else{t.el=e.el;const M=t.anchor=e.anchor,T=t.target=e.target,P=t.targetAnchor=e.targetAnchor,R=Wl(e.props),F=R?n:T,D=R?M:P;if(o=o||zy(T),w?(g(e.dynamicChildren,w,F,i,s,o,a),km(e,t,!0)):u||h(e,t,F,D,i,s,o,a,!1),y)R||jc(t,n,M,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const V=t.target=og(t.props,b);V&&jc(t,V,null,c,0)}else R&&jc(t,T,P,c,1)}CC(t)},remove(e,t,n,r,{um:i,o:{remove:s}},o){const{shapeFlag:a,children:u,anchor:c,targetAnchor:d,target:h,props:g}=e;if(h&&s(d),(o||!Wl(g))&&(s(c),a&16))for(let m=0;m0?ti||wa:null,DF(),du>0&&ti&&ti.push(e),e}function _e(e,t,n,r,i,s){return SC(L(e,t,n,r,i,s,!0))}function Me(e,t,n,r,i){return SC(W(e,t,n,r,i,!0))}function Ta(e){return e?e.__v_isVNode===!0:!1}function xo(e,t){return e.type===t.type&&e.key===t.key}const Ad="__vInternal",OC=({key:e})=>e??null,xf=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?mt(e)||Nt(e)||Xe(e)?{i:Mn,r:e,k:t,f:!!n}:e:null);function L(e,t=null,n=null,r=0,i=null,s=e===it?0:1,o=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&OC(t),ref:t&&xf(t),scopeId:sC,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Mn};return a?(Im(u,n),s&128&&e.normalize(u)):n&&(u.shapeFlag|=mt(n)?8:16),du>0&&!o&&ti&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&ti.push(u),u}const W=NF;function NF(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===dC)&&(e=ar),Ta(e)){const a=Zi(e,t,!0);return n&&Im(a,n),du>0&&!s&&ti&&(a.shapeFlag&6?ti[ti.indexOf(e)]=a:ti.push(a)),a.patchFlag|=-2,a}if(qF(e)&&(e=e.__vccOpts),t){t=BF(t);let{class:a,style:u}=t;a&&!mt(a)&&(t.class=he(a)),yt(u)&&(Yx(u)&&!He(u)&&(u=mn({},u)),t.style=Vt(u))}const o=mt(e)?1:nF(e)?128:IF(e)?64:yt(e)?4:Xe(e)?2:0;return L(e,t,n,r,i,o,s,!0)}function BF(e){return e?Yx(e)||Ad in e?mn({},e):e:null}function Zi(e,t,n=!1){const{props:r,ref:i,patchFlag:s,children:o}=e,a=t?Mr(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&OC(a),ref:t&&t.ref?n&&i?He(i)?i.concat(xf(t)):[i,xf(t)]:xf(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==it?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zi(e.ssContent),ssFallback:e.ssFallback&&Zi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function re(e=" ",t=0){return W(Xa,null,e,t)}function Ie(e="",t=!1){return t?(K(),Me(ar,null,e)):W(ar,null,e)}function vi(e){return e==null||typeof e=="boolean"?W(ar):He(e)?W(it,null,e.slice()):typeof e=="object"?Os(e):W(Xa,null,String(e))}function Os(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zi(e)}function Im(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(He(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Im(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Ad in t)?t._ctx=Mn:i===3&&Mn&&(Mn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Xe(t)?(t={default:t,_ctx:Mn},n=32):(t=String(t),r&64?(n=16,t=[re(t)]):n=8);e.children=t,e.shapeFlag|=n}function Mr(...e){const t={};for(let n=0;n_n||Mn;let Fm,da,Wy="__VUE_INSTANCE_SETTERS__";(da=Xp()[Wy])||(da=Xp()[Wy]=[]),da.push(e=>_n=e),Fm=e=>{da.length>1?da.forEach(t=>t(e)):da[0](e)};const Aa=e=>{Fm(e),e.scope.on()},Io=()=>{_n&&_n.scope.off(),Fm(null)};function EC(e){return e.vnode.shapeFlag&4}let hu=!1;function VF(e,t=!1){hu=t;const{props:n,children:r}=e.vnode,i=EC(e);EF(e,n,i,t),AF(e,r);const s=i?jF(e,t):void 0;return hu=!1,s}function jF(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Sd(new Proxy(e.ctx,mF));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?TC(e):null;Aa(e),Ka();const s=Ds(r,e,0,[e.props,i]);if(qa(),Io(),Px(s)){if(s.then(Io,Io),t)return s.then(o=>{Vy(e,o,t)}).catch(o=>{Od(o,e,0)});e.asyncDep=s}else Vy(e,s,t)}else MC(e,t)}function Vy(e,t,n){Xe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:yt(t)&&(e.setupState=Jx(t)),MC(e,n)}let jy;function MC(e,t,n){const r=e.type;if(!e.render){if(!t&&jy&&!r.render){const i=r.template||Pm(e).template;if(i){const{isCustomElement:s,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:u}=r,c=mn(mn({isCustomElement:s,delimiters:a},o),u);r.render=jy(i,c)}}e.render=r.render||Cn}Aa(e),Ka(),bF(e),qa(),Io()}function UF(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return cr(e,"get","$attrs"),t[n]}}))}function TC(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return UF(e)},slots:e.slots,emit:e.emit,expose:t}}function Pd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Jx(Sd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Hl)return Hl[n](e)},has(t,n){return n in t||n in Hl}}))}function KF(e,t=!0){return Xe(e)?e.displayName||e.name:e.name||t&&e.__name}function qF(e){return Xe(e)&&"__vccOpts"in e}const B=(e,t)=>Qx(e,t,hu);function Ye(e,t,n){const r=arguments.length;return r===2?yt(t)&&!He(t)?Ta(t)?W(e,null,[t]):W(e,t):W(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ta(n)&&(n=[n]),W(e,t,n))}const YF=Symbol.for("v-scx"),GF=()=>qe(YF),XF="3.3.4",JF="http://www.w3.org/2000/svg",Co=typeof document<"u"?document:null,Uy=Co&&Co.createElement("template"),ZF={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?Co.createElementNS(JF,e):Co.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Co.createTextNode(e),createComment:e=>Co.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Co.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,s){const o=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{Uy.innerHTML=r?`${e}`:e;const a=Uy.content;if(r){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function QF(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function e$(e,t,n){const r=e.style,i=mt(n);if(n&&!i){if(t&&!mt(t))for(const s in t)n[s]==null&&ag(r,s,"");for(const s in n)ag(r,s,n[s])}else{const s=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=s)}}const Ky=/\s*!important$/;function ag(e,t,n){if(He(n))n.forEach(r=>ag(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=t$(e,t);Ky.test(n)?e.setProperty(Uo(r),n.replace(Ky,""),"important"):e[r]=n}}const qy=["Webkit","Moz","ms"],gp={};function t$(e,t){const n=gp[t];if(n)return n;let r=oi(t);if(r!=="filter"&&r in e)return gp[t]=r;r=wd(r);for(let i=0;imp||(a$.then(()=>mp=0),mp=Date.now());function u$(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Br(c$(r,n.value),t,5,[r])};return n.value=e,n.attached=l$(),n}function c$(e,t){if(He(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Xy=/^on[a-z]/,f$=(e,t,n,r,i=!1,s,o,a,u)=>{t==="class"?QF(e,r,i):t==="style"?e$(e,n,r):bd(t)?cm(t)||s$(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):d$(e,t,r,i))?r$(e,t,r,s,o,a,u):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),n$(e,t,r,i))};function d$(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Xy.test(t)&&Xe(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Xy.test(t)&&mt(n)?!1:t in e}const bs="transition",_l="animation",Hr=(e,{slots:t})=>Ye(oF,PC(e),t);Hr.displayName="Transition";const AC={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},h$=Hr.props=mn({},lC,AC),co=(e,t=[])=>{He(e)?e.forEach(n=>n(...t)):e&&e(...t)},Jy=e=>e?He(e)?e.some(t=>t.length>1):e.length>1:!1;function PC(e){const t={};for(const A in e)A in AC||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:s=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:u=s,appearActiveClass:c=o,appearToClass:d=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,b=p$(i),v=b&&b[0],_=b&&b[1],{onBeforeEnter:y,onEnter:C,onEnterCancelled:O,onLeave:w,onLeaveCancelled:M,onBeforeAppear:T=y,onAppear:P=C,onAppearCancelled:R=O}=t,F=(A,U,le)=>{ws(A,U?d:a),ws(A,U?c:o),le&&le()},D=(A,U)=>{A._isLeaving=!1,ws(A,h),ws(A,m),ws(A,g),U&&U()},V=A=>(U,le)=>{const ce=A?P:C,te=()=>F(U,A,le);co(ce,[U,te]),Zy(()=>{ws(U,A?u:s),Hi(U,A?d:a),Jy(ce)||Qy(U,r,v,te)})};return mn(t,{onBeforeEnter(A){co(y,[A]),Hi(A,s),Hi(A,o)},onBeforeAppear(A){co(T,[A]),Hi(A,u),Hi(A,c)},onEnter:V(!1),onAppear:V(!0),onLeave(A,U){A._isLeaving=!0;const le=()=>D(A,U);Hi(A,h),kC(),Hi(A,g),Zy(()=>{A._isLeaving&&(ws(A,h),Hi(A,m),Jy(w)||Qy(A,r,_,le))}),co(w,[A,le])},onEnterCancelled(A){F(A,!1),co(O,[A])},onAppearCancelled(A){F(A,!0),co(R,[A])},onLeaveCancelled(A){D(A),co(M,[A])}})}function p$(e){if(e==null)return null;if(yt(e))return[vp(e.enter),vp(e.leave)];{const t=vp(e);return[t,t]}}function vp(e){return rI(e)}function Hi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ws(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Zy(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let g$=0;function Qy(e,t,n,r){const i=e._endId=++g$,s=()=>{i===e._endId&&r()};if(n)return setTimeout(s,n);const{type:o,timeout:a,propCount:u}=RC(e,t);if(!o)return r();const c=o+"end";let d=0;const h=()=>{e.removeEventListener(c,g),s()},g=m=>{m.target===e&&++d>=u&&h()};setTimeout(()=>{d(n[b]||"").split(", "),i=r(`${bs}Delay`),s=r(`${bs}Duration`),o=e_(i,s),a=r(`${_l}Delay`),u=r(`${_l}Duration`),c=e_(a,u);let d=null,h=0,g=0;t===bs?o>0&&(d=bs,h=o,g=s.length):t===_l?c>0&&(d=_l,h=c,g=u.length):(h=Math.max(o,c),d=h>0?o>c?bs:_l:null,g=d?d===bs?s.length:u.length:0);const m=d===bs&&/\b(transform|all)(,|$)/.test(r(`${bs}Property`).toString());return{type:d,timeout:h,propCount:g,hasTransform:m}}function e_(e,t){for(;e.lengtht_(n)+t_(e[r])))}function t_(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function kC(){return document.body.offsetHeight}const LC=new WeakMap,IC=new WeakMap,FC={name:"TransitionGroup",props:mn({},h$,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=kt(),r=aC();let i,s;return Xs(()=>{if(!i.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!w$(i[0].el,n.vnode.el,o))return;i.forEach(b$),i.forEach(y$);const a=i.filter(_$);kC(),a.forEach(u=>{const c=u.el,d=c.style;Hi(c,o),d.transform=d.webkitTransform=d.transitionDuration="";const h=c._moveCb=g=>{g&&g.target!==c||(!g||/transform$/.test(g.propertyName))&&(c.removeEventListener("transitionend",h),c._moveCb=null,ws(c,o))};c.addEventListener("transitionend",h)})}),()=>{const o=ut(e),a=PC(o);let u=o.tag||it;i=s,s=t.default?Em(t.default()):[];for(let c=0;cdelete e.mode;FC.props;const v$=FC;function b$(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function y$(e){IC.set(e,e.el.getBoundingClientRect())}function _$(e){const t=LC.get(e),n=IC.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const s=e.el.style;return s.transform=s.webkitTransform=`translate(${r}px,${i}px)`,s.transitionDuration="0s",e}}function w$(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(o=>{o.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(o=>o&&r.classList.add(o)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:s}=RC(r);return i.removeChild(r),s}const Xf=e=>{const t=e.props["onUpdate:modelValue"]||!1;return He(t)?n=>wf(t,n):t};function x$(e){e.target.composing=!0}function n_(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const C$={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=Xf(i);const s=r||i.props&&i.props.type==="number";So(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=Gp(a)),e._assign(a)}),n&&So(e,"change",()=>{e.value=e.value.trim()}),t||(So(e,"compositionstart",x$),So(e,"compositionend",n_),So(e,"change",n_))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},s){if(e._assign=Xf(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&Gp(e.value)===t))return;const o=t??"";e.value!==o&&(e.value=o)}},Jf={deep:!0,created(e,t,n){e._assign=Xf(n),So(e,"change",()=>{const r=e._modelValue,i=S$(e),s=e.checked,o=e._assign;if(He(r)){const a=Ix(r,i),u=a!==-1;if(s&&!u)o(r.concat(i));else if(!s&&u){const c=[...r];c.splice(a,1),o(c)}}else if(yd(r)){const a=new Set(r);s?a.add(i):a.delete(i),o(a)}else o($C(e,s))})},mounted:r_,beforeUpdate(e,t,n){e._assign=Xf(n),r_(e,t,n)}};function r_(e,{value:t,oldValue:n},r){e._modelValue=t,He(t)?e.checked=Ix(t,r.props.value)>-1:yd(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=xd(t,$C(e,!0)))}function S$(e){return"_value"in e?e._value:e.value}function $C(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const O$=["ctrl","shift","alt","meta"],E$={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>O$.some(n=>e[`${n}Key`]&&!t.includes(n))},Cr=(e,t)=>(n,...r)=>{for(let i=0;in=>{if(!("key"in n))return;const r=Uo(n.key);if(t.some(i=>i===r||M$[i]===r))return e(n)},Wr={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):wl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),wl(e,!0),r.enter(e)):r.leave(e,()=>{wl(e,!1)}):wl(e,t))},beforeUnmount(e,{value:t}){wl(e,t)}};function wl(e,t){e.style.display=t?e._vod:"none"}const T$=mn({patchProp:f$},ZF);let i_;function A$(){return i_||(i_=RF(T$))}const P$=(...e)=>{const t=A$().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=R$(r);if(!i)return;const s=t._component;!Xe(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function R$(e){return mt(e)?document.querySelector(e):e}const Cf=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const i=document.createEvent(r);return i.initEvent(t,...n),e.dispatchEvent(i),e},Ki=(e,t,{checkForDefaultPrevented:n=!0}={})=>i=>{const s=e==null?void 0:e(i);if(n===!1||!s)return t==null?void 0:t(i)};var s_;const tn=typeof window<"u",k$=e=>typeof e=="function",L$=e=>typeof e=="string",Zf=()=>{},DC=tn&&((s_=window==null?void 0:window.navigator)==null?void 0:s_.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ws(e){return typeof e=="function"?e():S(e)}function NC(e,t){function n(...r){return new Promise((i,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(s)})}return n}const BC=e=>e();function I$(e,t={}){let n,r,i=Zf;const s=a=>{clearTimeout(a),i(),i=Zf};return a=>{const u=Ws(e),c=Ws(t.maxWait);return n&&s(n),u<=0||c!==void 0&&c<=0?(r&&(s(r),r=null),Promise.resolve(a())):new Promise((d,h)=>{i=t.rejectOnCancel?h:d,c&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,d(a())},c)),n=setTimeout(()=>{r&&s(r),r=null,d(a())},u)})}}function F$(e=BC){const t=X(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...s)=>{t.value&&e(...s)};return{isActive:Fu(t),pause:n,resume:r,eventFilter:i}}function $$(e){return e}function $u(e){return hm()?(pm(e),!0):!1}function D$(e,t=200,n={}){return NC(I$(t,n),e)}function N$(e,t=200,n={}){const r=X(e.value),i=D$(()=>{r.value=e.value},t,n);return Fe(e,()=>i()),r}function B$(e){return typeof e=="function"?B(e):X(e)}function zC(e,t=!0){kt()?It(e):t?e():bt(e)}function Qf(e,t,n={}){const{immediate:r=!0}=n,i=X(!1);let s=null;function o(){s&&(clearTimeout(s),s=null)}function a(){i.value=!1,o()}function u(...c){o(),i.value=!0,s=setTimeout(()=>{i.value=!1,s=null,e(...c)},Ws(t))}return r&&(i.value=!0,tn&&u()),$u(a),{isPending:Fu(i),start:u,stop:a}}function z$(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,i=Nt(e),s=X(e);function o(a){if(arguments.length)return s.value=a,s.value;{const u=Ws(n);return s.value=s.value===u?Ws(r):u,s.value}}return i?o:[s,o]}var o_=Object.getOwnPropertySymbols,H$=Object.prototype.hasOwnProperty,W$=Object.prototype.propertyIsEnumerable,V$=(e,t)=>{var n={};for(var r in e)H$.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&o_)for(var r of o_(e))t.indexOf(r)<0&&W$.call(e,r)&&(n[r]=e[r]);return n};function j$(e,t,n={}){const r=n,{eventFilter:i=BC}=r,s=V$(r,["eventFilter"]);return Fe(e,NC(i,t),s)}var U$=Object.defineProperty,K$=Object.defineProperties,q$=Object.getOwnPropertyDescriptors,ed=Object.getOwnPropertySymbols,HC=Object.prototype.hasOwnProperty,WC=Object.prototype.propertyIsEnumerable,a_=(e,t,n)=>t in e?U$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Y$=(e,t)=>{for(var n in t||(t={}))HC.call(t,n)&&a_(e,n,t[n]);if(ed)for(var n of ed(t))WC.call(t,n)&&a_(e,n,t[n]);return e},G$=(e,t)=>K$(e,q$(t)),X$=(e,t)=>{var n={};for(var r in e)HC.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ed)for(var r of ed(e))t.indexOf(r)<0&&WC.call(e,r)&&(n[r]=e[r]);return n};function J$(e,t,n={}){const r=n,{eventFilter:i}=r,s=X$(r,["eventFilter"]),{eventFilter:o,pause:a,resume:u,isActive:c}=F$(i);return{stop:j$(e,t,G$(Y$({},s),{eventFilter:o})),pause:a,resume:u,isActive:c}}function Ms(e){var t;const n=Ws(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Vs=tn?window:void 0;function _i(...e){let t,n,r,i;if(L$(e[0])||Array.isArray(e[0])?([n,r,i]=e,t=Vs):[t,n,r,i]=e,!t)return Zf;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],o=()=>{s.forEach(d=>d()),s.length=0},a=(d,h,g,m)=>(d.addEventListener(h,g,m),()=>d.removeEventListener(h,g,m)),u=Fe(()=>[Ms(t),Ws(i)],([d,h])=>{o(),d&&s.push(...n.flatMap(g=>r.map(m=>a(d,g,m,h))))},{immediate:!0,flush:"post"}),c=()=>{u(),o()};return $u(c),c}let l_=!1;function Z$(e,t,n={}){const{window:r=Vs,ignore:i=[],capture:s=!0,detectIframe:o=!1}=n;if(!r)return;DC&&!l_&&(l_=!0,Array.from(r.document.body.children).forEach(g=>g.addEventListener("click",Zf)));let a=!0;const u=g=>i.some(m=>{if(typeof m=="string")return Array.from(r.document.querySelectorAll(m)).some(b=>b===g.target||g.composedPath().includes(b));{const b=Ms(m);return b&&(g.target===b||g.composedPath().includes(b))}}),d=[_i(r,"click",g=>{const m=Ms(e);if(!(!m||m===g.target||g.composedPath().includes(m))){if(g.detail===0&&(a=!u(g)),!a){a=!0;return}t(g)}},{passive:!0,capture:s}),_i(r,"pointerdown",g=>{const m=Ms(e);m&&(a=!g.composedPath().includes(m)&&!u(g))},{passive:!0}),o&&_i(r,"blur",g=>{var m;const b=Ms(e);((m=r.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(b!=null&&b.contains(r.document.activeElement))&&t(g)})].filter(Boolean);return()=>d.forEach(g=>g())}function VC(e,t=!1){const n=X(),r=()=>n.value=!!e();return r(),zC(r,t),n}function Q$(e,t={}){const{window:n=Vs}=t,r=VC(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const s=X(!1),o=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",a):i.removeListener(a))},a=()=>{r.value&&(o(),i=n.matchMedia(B$(e).value),s.value=i.matches,"addEventListener"in i?i.addEventListener("change",a):i.addListener(a))};return Ns(a),$u(()=>o()),s}const lg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ug="__vueuse_ssr_handlers__";lg[ug]=lg[ug]||{};const e4=lg[ug];function jC(e,t){return e4[e]||t}function t4(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var n4=Object.defineProperty,u_=Object.getOwnPropertySymbols,r4=Object.prototype.hasOwnProperty,i4=Object.prototype.propertyIsEnumerable,c_=(e,t,n)=>t in e?n4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f_=(e,t)=>{for(var n in t||(t={}))r4.call(t,n)&&c_(e,n,t[n]);if(u_)for(var n of u_(t))i4.call(t,n)&&c_(e,n,t[n]);return e};const s4={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},d_="vueuse-storage";function o4(e,t,n,r={}){var i;const{flush:s="pre",deep:o=!0,listenToStorageChanges:a=!0,writeDefaults:u=!0,mergeDefaults:c=!1,shallow:d,window:h=Vs,eventFilter:g,onError:m=R=>{console.error(R)}}=r,b=(d?$s:X)(t);if(!n)try{n=jC("getDefaultStorage",()=>{var R;return(R=Vs)==null?void 0:R.localStorage})()}catch(R){m(R)}if(!n)return b;const v=Ws(t),_=t4(v),y=(i=r.serializer)!=null?i:s4[_],{pause:C,resume:O}=J$(b,()=>w(b.value),{flush:s,deep:o,eventFilter:g});return h&&a&&(_i(h,"storage",P),_i(h,d_,T)),P(),b;function w(R){try{if(R==null)n.removeItem(e);else{const F=y.write(R),D=n.getItem(e);D!==F&&(n.setItem(e,F),h&&h.dispatchEvent(new CustomEvent(d_,{detail:{key:e,oldValue:D,newValue:F,storageArea:n}})))}}catch(F){m(F)}}function M(R){const F=R?R.newValue:n.getItem(e);if(F==null)return u&&v!==null&&n.setItem(e,y.write(v)),v;if(!R&&c){const D=y.read(F);return k$(c)?c(D,v):_==="object"&&!Array.isArray(D)?f_(f_({},v),D):D}else return typeof F!="string"?F:y.read(F)}function T(R){P(R.detail)}function P(R){if(!(R&&R.storageArea!==n)){if(R&&R.key==null){b.value=v;return}if(!(R&&R.key!==e)){C();try{b.value=M(R)}catch(F){m(F)}finally{R?bt(O):O()}}}}}function UC(e){return Q$("(prefers-color-scheme: dark)",e)}var a4=Object.defineProperty,h_=Object.getOwnPropertySymbols,l4=Object.prototype.hasOwnProperty,u4=Object.prototype.propertyIsEnumerable,p_=(e,t,n)=>t in e?a4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c4=(e,t)=>{for(var n in t||(t={}))l4.call(t,n)&&p_(e,n,t[n]);if(h_)for(var n of h_(t))u4.call(t,n)&&p_(e,n,t[n]);return e};function f4(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:i=Vs,storage:s,storageKey:o="vueuse-color-scheme",listenToStorageChanges:a=!0,storageRef:u,emitAuto:c}=e,d=c4({auto:"",light:"light",dark:"dark"},e.modes||{}),h=UC({window:i}),g=B(()=>h.value?"dark":"light"),m=u||(o==null?X(r):o4(o,r,s,{window:i,listenToStorageChanges:a})),b=B({get(){return m.value==="auto"&&!c?g.value:m.value},set(C){m.value=C}}),v=jC("updateHTMLAttrs",(C,O,w)=>{const M=i==null?void 0:i.document.querySelector(C);if(M)if(O==="class"){const T=w.split(/\s/g);Object.values(d).flatMap(P=>(P||"").split(/\s/g)).filter(Boolean).forEach(P=>{T.includes(P)?M.classList.add(P):M.classList.remove(P)})}else M.setAttribute(O,w)});function _(C){var O;const w=C==="auto"?g.value:C;v(t,n,(O=d[w])!=null?O:w)}function y(C){e.onChanged?e.onChanged(C,_):_(C)}return Fe(b,y,{flush:"post",immediate:!0}),c&&Fe(g,()=>y(b.value),{flush:"post"}),zC(()=>y(b.value)),b}var d4=Object.defineProperty,h4=Object.defineProperties,p4=Object.getOwnPropertyDescriptors,g_=Object.getOwnPropertySymbols,g4=Object.prototype.hasOwnProperty,m4=Object.prototype.propertyIsEnumerable,m_=(e,t,n)=>t in e?d4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v4=(e,t)=>{for(var n in t||(t={}))g4.call(t,n)&&m_(e,n,t[n]);if(g_)for(var n of g_(t))m4.call(t,n)&&m_(e,n,t[n]);return e},b4=(e,t)=>h4(e,p4(t));function y4(e={}){const{valueDark:t="dark",valueLight:n="",window:r=Vs}=e,i=f4(b4(v4({},e),{onChanged:(a,u)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,a==="dark"):u(a)},modes:{dark:t,light:n}})),s=UC({window:r});return B({get(){return i.value==="dark"},set(a){a===s.value?i.value="auto":i.value=a?"dark":"light"}})}var v_=Object.getOwnPropertySymbols,_4=Object.prototype.hasOwnProperty,w4=Object.prototype.propertyIsEnumerable,x4=(e,t)=>{var n={};for(var r in e)_4.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&v_)for(var r of v_(e))t.indexOf(r)<0&&w4.call(e,r)&&(n[r]=e[r]);return n};function js(e,t,n={}){const r=n,{window:i=Vs}=r,s=x4(r,["window"]);let o;const a=VC(()=>i&&"ResizeObserver"in i),u=()=>{o&&(o.disconnect(),o=void 0)},c=Fe(()=>Ms(e),h=>{u(),a.value&&i&&h&&(o=new ResizeObserver(t),o.observe(h,s))},{immediate:!0,flush:"post"}),d=()=>{u(),c()};return $u(d),{isSupported:a,stop:d}}var b_;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(b_||(b_={}));var C4=Object.defineProperty,y_=Object.getOwnPropertySymbols,S4=Object.prototype.hasOwnProperty,O4=Object.prototype.propertyIsEnumerable,__=(e,t,n)=>t in e?C4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E4=(e,t)=>{for(var n in t||(t={}))S4.call(t,n)&&__(e,n,t[n]);if(y_)for(var n of y_(t))O4.call(t,n)&&__(e,n,t[n]);return e};const M4={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]};E4({linear:$$},M4);const T4=()=>tn&&/firefox/i.test(window.navigator.userAgent);var A4=typeof global=="object"&&global&&global.Object===Object&&global;const KC=A4;var P4=typeof self=="object"&&self&&self.Object===Object&&self,R4=KC||P4||Function("return this")();const li=R4;var k4=li.Symbol;const Vr=k4;var qC=Object.prototype,L4=qC.hasOwnProperty,I4=qC.toString,xl=Vr?Vr.toStringTag:void 0;function F4(e){var t=L4.call(e,xl),n=e[xl];try{e[xl]=void 0;var r=!0}catch{}var i=I4.call(e);return r&&(t?e[xl]=n:delete e[xl]),i}var $4=Object.prototype,D4=$4.toString;function N4(e){return D4.call(e)}var B4="[object Null]",z4="[object Undefined]",w_=Vr?Vr.toStringTag:void 0;function qo(e){return e==null?e===void 0?z4:B4:w_&&w_ in Object(e)?F4(e):N4(e)}function Ci(e){return e!=null&&typeof e=="object"}var H4="[object Symbol]";function Rd(e){return typeof e=="symbol"||Ci(e)&&qo(e)==H4}function YC(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n0){if(++t>=yD)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function CD(e){return function(){return e}}var SD=function(){try{var e=Go(Object,"defineProperty");return e({},"",{}),e}catch{}}();const td=SD;var OD=td?function(e,t){return td(e,"toString",{configurable:!0,enumerable:!1,value:CD(t),writable:!0})}:$m;const ED=OD;var MD=xD(ED);const JC=MD;function TD(e,t){for(var n=-1,r=e==null?0:e.length;++n-1&&e%1==0&&e-1&&e%1==0&&e<=ID}function Ja(e){return e!=null&&zm(e.length)&&!Dm(e)}function FD(e,t,n){if(!fr(n))return!1;var r=typeof t;return(r=="number"?Ja(n)&&kd(t,n.length):r=="string"&&t in n)?Du(n[t],e):!1}function $D(e){return LD(function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&FD(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++r-1}function Z3(e,t){var n=this.__data__,r=Ld(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function is(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(a)?t>1?Ym(a,t-1,n,r,i):qm(i,a):r||(i[i.length]=a)}return i}function mN(e){var t=e==null?0:e.length;return t?Ym(e,1):[]}function vN(e){return JC(ZC(e,void 0,mN),e+"")}var bN=rS(Object.getPrototypeOf,Object);const Gm=bN;var yN="[object Object]",_N=Function.prototype,wN=Object.prototype,iS=_N.toString,xN=wN.hasOwnProperty,CN=iS.call(Object);function SN(e){if(!Ci(e)||qo(e)!=yN)return!1;var t=Gm(e);if(t===null)return!0;var n=xN.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&iS.call(n)==CN}function fg(){if(!arguments.length)return[];var e=arguments[0];return Jn(e)?e:[e]}function ON(){this.__data__=new is,this.size=0}function EN(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function MN(e){return this.__data__.get(e)}function TN(e){return this.__data__.has(e)}var AN=200;function PN(e,t){var n=this.__data__;if(n instanceof is){var r=n.__data__;if(!vu||r.lengtha))return!1;var c=s.get(e),d=s.get(t);if(c&&d)return c==t&&d==e;var h=-1,g=!0,m=n&hB?new rd:void 0;for(s.set(e,t),s.set(t,e);++h=t||P<0||h&&R>=s}function y(){var T=wp();if(_(T))return C(T);a=setTimeout(y,v(T))}function C(T){return a=void 0,g&&r?m(T):(r=i=void 0,o)}function O(){a!==void 0&&clearTimeout(a),c=0,r=u=i=a=void 0}function w(){return a===void 0?o:C(wp())}function M(){var T=wp(),P=_(T);if(r=arguments,i=this,u=T,P){if(a===void 0)return b(u);if(h)return clearTimeout(a),a=setTimeout(y,t),m(u)}return a===void 0&&(a=setTimeout(y,t)),o}return M.cancel=O,M.flush=w,M}function mg(e,t,n){(n!==void 0&&!Du(e[t],n)||n===void 0&&!(t in e))&&Nm(e,t,n)}function a5(e){return Ci(e)&&Ja(e)}function vg(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function l5(e){return Nu(e,zu(e))}function u5(e,t,n,r,i,s,o){var a=vg(e,n),u=vg(t,n),c=o.get(u);if(c){mg(e,n,c);return}var d=s?s(a,u,n+"",e,t,o):void 0,h=d===void 0;if(h){var g=Jn(u),m=!g&&gu(u),b=!g&&!m&&Vm(u);d=u,g||m||b?Jn(a)?d=a:a5(a)?d=XC(a):m?(h=!1,d=oS(u,!0)):b?(h=!1,d=cS(u,!0)):d=[]:SN(u)||pu(u)?(d=a,pu(a)?d=l5(a):(!fr(a)||Dm(a))&&(d=fS(u))):h=!1}h&&(o.set(u,d),i(d,u,r,s,o),o.delete(u)),mg(e,n,d)}function _S(e,t,n,r,i){e!==t&&yS(t,function(s,o){if(i||(i=new ii),fr(s))u5(e,t,o,n,_S,r,i);else{var a=r?r(vg(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),mg(e,o,a)}},zu)}function c5(e,t){var n=-1,r=Ja(e)?Array(e.length):[];return n5(e,function(i,s,o){r[++n]=t(i,s,o)}),r}function f5(e,t){var n=Jn(e)?YC:c5;return n(e,XB(t))}function d5(e,t){return Ym(f5(e,t),1)}function id(e){for(var t=-1,n=e==null?0:e.length,r={};++te===void 0,Qi=e=>typeof e=="boolean",jn=e=>typeof e=="number",La=e=>typeof Element>"u"?!1:e instanceof Element,_5=e=>mt(e)?!Number.isNaN(Number(e)):!1,w5=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),yg=e=>Object.keys(e),Of=(e,t,n)=>({get value(){return Hn(e,t,n)},set value(r){y5(e,t,r)}});class x5 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Us(e,t){throw new x5(`[${e}] ${t}`)}const CS=(e="")=>e.split(" ").filter(t=>!!t.trim()),Fo=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},To=(e,t)=>{!e||!t.trim()||e.classList.add(...CS(t))},$o=(e,t)=>{!e||!t.trim()||e.classList.remove(...CS(t))},_g=(e,t)=>{var n;if(!tn||!e||!t)return"";let r=oi(t);r==="float"&&(r="cssFloat");try{const i=e.style[r];if(i)return i;const s=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return s?s[r]:""}catch{return e.style[r]}};function es(e,t="px"){if(!e)return"";if(jn(e)||_5(e))return`${e}${t}`;if(mt(e))return e}let Kc;const C5=e=>{var t;if(!tn)return 0;if(Kc!==void 0)return Kc;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",n.appendChild(i);const s=i.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Kc=r-s,Kc};function S5(e,t){if(!tn)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const i=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),s=i+t.offsetHeight,o=e.scrollTop,a=o+e.clientHeight;ia&&(e.scrollTop=s-e.clientHeight)}/*! Element Plus Icons Vue v2.1.0 */var dr=(e,t)=>{let n=e.__vccOpts||e;for(let[r,i]of t)n[r]=i;return n},O5={name:"ArrowDown"},E5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},M5=L("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),T5=[M5];function A5(e,t,n,r,i,s){return K(),_e("svg",E5,T5)}var Zm=dr(O5,[["render",A5],["__file","arrow-down.vue"]]),P5={name:"ArrowRight"},R5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},k5=L("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),L5=[k5];function I5(e,t,n,r,i,s){return K(),_e("svg",R5,L5)}var Qm=dr(P5,[["render",I5],["__file","arrow-right.vue"]]),F5={name:"ArrowUp"},$5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},D5=L("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),N5=[D5];function B5(e,t,n,r,i,s){return K(),_e("svg",$5,N5)}var z5=dr(F5,[["render",B5],["__file","arrow-up.vue"]]),H5={name:"CircleCheck"},W5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},V5=L("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),j5=L("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),U5=[V5,j5];function K5(e,t,n,r,i,s){return K(),_e("svg",W5,U5)}var q5=dr(H5,[["render",K5],["__file","circle-check.vue"]]),Y5={name:"CircleCloseFilled"},G5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},X5=L("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 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.336L512 457.664z"},null,-1),J5=[X5];function Z5(e,t,n,r,i,s){return K(),_e("svg",G5,J5)}var SS=dr(Y5,[["render",Z5],["__file","circle-close-filled.vue"]]),Q5={name:"CircleClose"},e6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},t6=L("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),n6=L("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),r6=[t6,n6];function i6(e,t,n,r,i,s){return K(),_e("svg",e6,r6)}var ev=dr(Q5,[["render",i6],["__file","circle-close.vue"]]),s6={name:"Close"},o6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},a6=L("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),l6=[a6];function u6(e,t,n,r,i,s){return K(),_e("svg",o6,l6)}var yu=dr(s6,[["render",u6],["__file","close.vue"]]),c6={name:"Hide"},f6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},d6=L("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.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"},null,-1),h6=L("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"},null,-1),p6=[d6,h6];function g6(e,t,n,r,i,s){return K(),_e("svg",f6,p6)}var m6=dr(c6,[["render",g6],["__file","hide.vue"]]),v6={name:"InfoFilled"},b6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},y6=L("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.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.344zM590.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"},null,-1),_6=[y6];function w6(e,t,n,r,i,s){return K(),_e("svg",b6,_6)}var OS=dr(v6,[["render",w6],["__file","info-filled.vue"]]),x6={name:"Loading"},C6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},S6=L("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.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 0zm-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"},null,-1),O6=[S6];function E6(e,t,n,r,i,s){return K(),_e("svg",C6,O6)}var tv=dr(x6,[["render",E6],["__file","loading.vue"]]),M6={name:"More"},T6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},A6=L("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),P6=[A6];function R6(e,t,n,r,i,s){return K(),_e("svg",T6,P6)}var k6=dr(M6,[["render",R6],["__file","more.vue"]]),L6={name:"SuccessFilled"},I6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},F6=L("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-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.336L456.192 600.384z"},null,-1),$6=[F6];function D6(e,t,n,r,i,s){return K(),_e("svg",I6,$6)}var ES=dr(L6,[["render",D6],["__file","success-filled.vue"]]),N6={name:"View"},B6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},z6=L("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 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-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),H6=[z6];function W6(e,t,n,r,i,s){return K(),_e("svg",B6,H6)}var V6=dr(N6,[["render",W6],["__file","view.vue"]]),j6={name:"WarningFilled"},U6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},K6=L("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 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 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),q6=[K6];function Y6(e,t,n,r,i,s){return K(),_e("svg",U6,q6)}var MS=dr(j6,[["render",Y6],["__file","warning-filled.vue"]]);const TS="__epPropKey",st=e=>e,G6=e=>yt(e)&&!!e[TS],Dd=(e,t)=>{if(!yt(e)||G6(e))return e;const{values:n,required:r,default:i,type:s,validator:o}=e,u={type:s,required:!!r,validator:n||o?c=>{let d=!1,h=[];if(n&&(h=Array.from(n),wt(e,"default")&&h.push(i),d||(d=h.includes(c))),o&&(d||(d=o(c))),!d&&h.length>0){const g=[...new Set(h)].map(m=>JSON.stringify(m)).join(", ");UI(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${g}], got value ${JSON.stringify(c)}.`)}return d}:void 0,[TS]:!0};return wt(e,"default")&&(u.default=i),u},Ft=e=>id(Object.entries(e).map(([t,n])=>[t,Dd(n,t)])),ni=st([String,Object,Function]),X6={Close:yu},J6={Close:yu,SuccessFilled:ES,InfoFilled:OS,WarningFilled:MS,CircleCloseFilled:SS},AS={success:ES,warning:MS,error:SS,info:OS},Z6={validating:tv,success:q5,error:ev},Pn=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},Oi=e=>(e.install=Cn,e),Q6=(...e)=>t=>{e.forEach(n=>{Xe(n)?n(t):n.value=t})},Vn={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"},Ln="update:modelValue",PS="change",Wu=["","default","small","large"],ez={large:40,default:32,small:24},tz=e=>ez[e||"default"],nz=e=>["",...Wu].includes(e);var Ef=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Ef||{});const Mf=e=>{const t=He(e)?e:[e],n=[];return t.forEach(r=>{var i;He(r)?n.push(...Mf(r)):Ta(r)&&He(r.children)?n.push(...Mf(r.children)):(n.push(r),Ta(r)&&((i=r.component)!=null&&i.subTree)&&n.push(...Mf(r.component.subTree)))}),n},RS=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Oo=e=>e,rz=["class","style"],iz=/^on[A-Z]/,sz=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=B(()=>((n==null?void 0:n.value)||[]).concat(rz)),i=kt();return B(i?()=>{var s;return id(Object.entries((s=i.proxy)==null?void 0:s.$attrs).filter(([o])=>!r.value.includes(o)&&!(t&&iz.test(o))))}:()=>({}))},Ho=({from:e,replacement:t,scope:n,version:r,ref:i,type:s="API"},o)=>{Fe(()=>S(o),a=>{},{immediate:!0})},oz=(e,t,n)=>{let r={offsetX:0,offsetY:0};const i=a=>{const u=a.clientX,c=a.clientY,{offsetX:d,offsetY:h}=r,g=e.value.getBoundingClientRect(),m=g.left,b=g.top,v=g.width,_=g.height,y=document.documentElement.clientWidth,C=document.documentElement.clientHeight,O=-m+d,w=-b+h,M=y-m-v+d,T=C-b-_+h,P=F=>{const D=Math.min(Math.max(d+F.clientX-u,O),M),V=Math.min(Math.max(h+F.clientY-c,w),T);r={offsetX:D,offsetY:V},e.value.style.transform=`translate(${es(D)}, ${es(V)})`},R=()=>{document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",R)};document.addEventListener("mousemove",P),document.addEventListener("mouseup",R)},s=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},o=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)};It(()=>{Ns(()=>{n.value?s():o()})}),An(()=>{o()})},az=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}});var lz={name:"en",el:{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"},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"}}};const uz=e=>(t,n)=>cz(t,n,S(e)),cz=(e,t,n)=>Hn(n,e,e).replace(/\{(\w+)\}/g,(r,i)=>{var s;return`${(s=t==null?void 0:t[i])!=null?s:`{${i}}`}`}),fz=e=>{const t=B(()=>S(e).name),n=Nt(e)?e:X(e);return{lang:t,locale:n,t:uz(e)}},kS=Symbol("localeContextKey"),Xo=e=>{const t=e||qe(kS,X());return fz(B(()=>t.value||lz))},wg="el",dz="is-",fo=(e,t,n,r,i)=>{let s=`${e}-${t}`;return n&&(s+=`-${n}`),r&&(s+=`__${r}`),i&&(s+=`--${i}`),s},LS=Symbol("namespaceContextKey"),nv=e=>{const t=e||qe(LS,X(wg));return B(()=>S(t)||wg)},Qe=(e,t)=>{const n=nv(t);return{namespace:n,b:(v="")=>fo(n.value,e,v,"",""),e:v=>v?fo(n.value,e,"",v,""):"",m:v=>v?fo(n.value,e,"","",v):"",be:(v,_)=>v&&_?fo(n.value,e,v,_,""):"",em:(v,_)=>v&&_?fo(n.value,e,"",v,_):"",bm:(v,_)=>v&&_?fo(n.value,e,v,"",_):"",bem:(v,_,y)=>v&&_&&y?fo(n.value,e,v,_,y):"",is:(v,..._)=>{const y=_.length>=1?_[0]:!0;return v&&y?`${dz}${v}`:""},cssVar:v=>{const _={};for(const y in v)v[y]&&(_[`--${n.value}-${y}`]=v[y]);return _},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const _={};for(const y in v)v[y]&&(_[`--${n.value}-${e}-${y}`]=v[y]);return _},cssVarBlockName:v=>`--${n.value}-${e}-${v}`}},hz=(e,t={})=>{Nt(e)||Us("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Qe("popup"),r=Qx(()=>n.bm("parent","hidden"));if(!tn||Fo(document.body,r.value))return;let i=0,s=!1,o="0";const a=()=>{setTimeout(()=>{$o(document==null?void 0:document.body,r.value),s&&document&&(document.body.style.width=o)},200)};Fe(e,u=>{if(!u){a();return}s=!Fo(document.body,r.value),s&&(o=document.body.style.width),i=C5(n.namespace.value);const c=document.documentElement.clientHeight0&&(c||d==="scroll")&&s&&(document.body.style.width=`calc(100% - ${i}px)`),To(document.body,r.value)}),pm(()=>a())},pz=Dd({type:st(Boolean),default:null}),gz=Dd({type:st(Function)}),IS=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],i={[e]:pz,[n]:gz};return{useModelToggle:({indicator:o,toggleReason:a,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:d,onHide:h})=>{const g=kt(),{emit:m}=g,b=g.props,v=B(()=>Xe(b[n])),_=B(()=>b[e]===null),y=P=>{o.value!==!0&&(o.value=!0,a&&(a.value=P),Xe(d)&&d(P))},C=P=>{o.value!==!1&&(o.value=!1,a&&(a.value=P),Xe(h)&&h(P))},O=P=>{if(b.disabled===!0||Xe(c)&&!c())return;const R=v.value&&tn;R&&m(t,!0),(_.value||!R)&&y(P)},w=P=>{if(b.disabled===!0||!tn)return;const R=v.value&&tn;R&&m(t,!1),(_.value||!R)&&C(P)},M=P=>{Qi(P)&&(b.disabled&&P?v.value&&m(t,!1):o.value!==P&&(P?y():C()))},T=()=>{o.value?w():O()};return Fe(()=>b[e],M),u&&g.appContext.config.globalProperties.$route!==void 0&&Fe(()=>({...g.proxy.$route}),()=>{u.value&&o.value&&w()}),It(()=>{M(b[e])}),{hide:w,show:O,toggle:T,hasUpdateHandler:v}},useModelToggleProps:i,useModelToggleEmits:r}};IS("modelValue");const FS=e=>{const t=kt();return B(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var lr="top",jr="bottom",Ur="right",ur="left",rv="auto",Vu=[lr,jr,Ur,ur],Ia="start",_u="end",mz="clippingParents",$S="viewport",Cl="popper",vz="reference",Z_=Vu.reduce(function(e,t){return e.concat([t+"-"+Ia,t+"-"+_u])},[]),Nd=[].concat(Vu,[rv]).reduce(function(e,t){return e.concat([t,t+"-"+Ia,t+"-"+_u])},[]),bz="beforeRead",yz="read",_z="afterRead",wz="beforeMain",xz="main",Cz="afterMain",Sz="beforeWrite",Oz="write",Ez="afterWrite",Mz=[bz,yz,_z,wz,xz,Cz,Sz,Oz,Ez];function Si(e){return e?(e.nodeName||"").toLowerCase():null}function ui(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fa(e){var t=ui(e).Element;return e instanceof t||e instanceof Element}function zr(e){var t=ui(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function iv(e){if(typeof ShadowRoot>"u")return!1;var t=ui(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Tz(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!zr(s)||!Si(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function Az(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],s=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=o.reduce(function(u,c){return u[c]="",u},{});!zr(i)||!Si(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(u){i.removeAttribute(u)}))})}}var DS={name:"applyStyles",enabled:!0,phase:"write",fn:Tz,effect:Az,requires:["computeStyles"]};function wi(e){return e.split("-")[0]}var Do=Math.max,od=Math.min,$a=Math.round;function Da(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(zr(e)&&t){var s=e.offsetHeight,o=e.offsetWidth;o>0&&(r=$a(n.width)/o||1),s>0&&(i=$a(n.height)/s||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function sv(e){var t=Da(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function NS(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&iv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ts(e){return ui(e).getComputedStyle(e)}function Pz(e){return["table","td","th"].indexOf(Si(e))>=0}function Js(e){return((Fa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bd(e){return Si(e)==="html"?e:e.assignedSlot||e.parentNode||(iv(e)?e.host:null)||Js(e)}function Q_(e){return!zr(e)||ts(e).position==="fixed"?null:e.offsetParent}function Rz(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&zr(e)){var r=ts(e);if(r.position==="fixed")return null}var i=Bd(e);for(iv(i)&&(i=i.host);zr(i)&&["html","body"].indexOf(Si(i))<0;){var s=ts(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function ju(e){for(var t=ui(e),n=Q_(e);n&&Pz(n)&&ts(n).position==="static";)n=Q_(n);return n&&(Si(n)==="html"||Si(n)==="body"&&ts(n).position==="static")?t:n||Rz(e)||t}function ov(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ul(e,t,n){return Do(e,od(t,n))}function kz(e,t,n){var r=Ul(e,t,n);return r>n?n:r}function BS(){return{top:0,right:0,bottom:0,left:0}}function zS(e){return Object.assign({},BS(),e)}function HS(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Lz=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,zS(typeof e!="number"?e:HS(e,Vu))};function Iz(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=wi(n.placement),u=ov(a),c=[ur,Ur].indexOf(a)>=0,d=c?"height":"width";if(!(!s||!o)){var h=Lz(i.padding,n),g=sv(s),m=u==="y"?lr:ur,b=u==="y"?jr:Ur,v=n.rects.reference[d]+n.rects.reference[u]-o[u]-n.rects.popper[d],_=o[u]-n.rects.reference[u],y=ju(s),C=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,O=v/2-_/2,w=h[m],M=C-g[d]-h[b],T=C/2-g[d]/2+O,P=Ul(w,T,M),R=u;n.modifiersData[r]=(t={},t[R]=P,t.centerOffset=P-T,t)}}function Fz(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!NS(t.elements.popper,i)||(t.elements.arrow=i))}var $z={name:"arrow",enabled:!0,phase:"main",fn:Iz,effect:Fz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Na(e){return e.split("-")[1]}var Dz={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nz(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:$a(t*i)/i||0,y:$a(n*i)/i||0}}function e1(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,o=e.offsets,a=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,g=o.x,m=g===void 0?0:g,b=o.y,v=b===void 0?0:b,_=typeof d=="function"?d({x:m,y:v}):{x:m,y:v};m=_.x,v=_.y;var y=o.hasOwnProperty("x"),C=o.hasOwnProperty("y"),O=ur,w=lr,M=window;if(c){var T=ju(n),P="clientHeight",R="clientWidth";if(T===ui(n)&&(T=Js(n),ts(T).position!=="static"&&a==="absolute"&&(P="scrollHeight",R="scrollWidth")),T=T,i===lr||(i===ur||i===Ur)&&s===_u){w=jr;var F=h&&T===M&&M.visualViewport?M.visualViewport.height:T[P];v-=F-r.height,v*=u?1:-1}if(i===ur||(i===lr||i===jr)&&s===_u){O=Ur;var D=h&&T===M&&M.visualViewport?M.visualViewport.width:T[R];m-=D-r.width,m*=u?1:-1}}var V=Object.assign({position:a},c&&Dz),A=d===!0?Nz({x:m,y:v}):{x:m,y:v};if(m=A.x,v=A.y,u){var U;return Object.assign({},V,(U={},U[w]=C?"0":"",U[O]=y?"0":"",U.transform=(M.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",U))}return Object.assign({},V,(t={},t[w]=C?v+"px":"",t[O]=y?m+"px":"",t.transform="",t))}function Bz(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,a=n.roundOffsets,u=a===void 0?!0:a,c={placement:wi(t.placement),variation:Na(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,e1(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,e1(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var WS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Bz,data:{}},qc={passive:!0};function zz(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,u=ui(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(d){d.addEventListener("scroll",n.update,qc)}),a&&u.addEventListener("resize",n.update,qc),function(){s&&c.forEach(function(d){d.removeEventListener("scroll",n.update,qc)}),a&&u.removeEventListener("resize",n.update,qc)}}var VS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:zz,data:{}},Hz={left:"right",right:"left",bottom:"top",top:"bottom"};function Tf(e){return e.replace(/left|right|bottom|top/g,function(t){return Hz[t]})}var Wz={start:"end",end:"start"};function t1(e){return e.replace(/start|end/g,function(t){return Wz[t]})}function av(e){var t=ui(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function lv(e){return Da(Js(e)).left+av(e).scrollLeft}function Vz(e){var t=ui(e),n=Js(e),r=t.visualViewport,i=n.clientWidth,s=n.clientHeight,o=0,a=0;return r&&(i=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,a=r.offsetTop)),{width:i,height:s,x:o+lv(e),y:a}}function jz(e){var t,n=Js(e),r=av(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=Do(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Do(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+lv(e),u=-r.scrollTop;return ts(i||n).direction==="rtl"&&(a+=Do(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:u}}function uv(e){var t=ts(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function jS(e){return["html","body","#document"].indexOf(Si(e))>=0?e.ownerDocument.body:zr(e)&&uv(e)?e:jS(Bd(e))}function Kl(e,t){var n;t===void 0&&(t=[]);var r=jS(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=ui(r),o=i?[s].concat(s.visualViewport||[],uv(r)?r:[]):r,a=t.concat(o);return i?a:a.concat(Kl(Bd(o)))}function xg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Uz(e){var t=Da(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function n1(e,t){return t===$S?xg(Vz(e)):Fa(t)?Uz(t):xg(jz(Js(e)))}function Kz(e){var t=Kl(Bd(e)),n=["absolute","fixed"].indexOf(ts(e).position)>=0,r=n&&zr(e)?ju(e):e;return Fa(r)?t.filter(function(i){return Fa(i)&&NS(i,r)&&Si(i)!=="body"}):[]}function qz(e,t,n){var r=t==="clippingParents"?Kz(e):[].concat(t),i=[].concat(r,[n]),s=i[0],o=i.reduce(function(a,u){var c=n1(e,u);return a.top=Do(c.top,a.top),a.right=od(c.right,a.right),a.bottom=od(c.bottom,a.bottom),a.left=Do(c.left,a.left),a},n1(e,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function US(e){var t=e.reference,n=e.element,r=e.placement,i=r?wi(r):null,s=r?Na(r):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,u;switch(i){case lr:u={x:o,y:t.y-n.height};break;case jr:u={x:o,y:t.y+t.height};break;case Ur:u={x:t.x+t.width,y:a};break;case ur:u={x:t.x-n.width,y:a};break;default:u={x:t.x,y:t.y}}var c=i?ov(i):null;if(c!=null){var d=c==="y"?"height":"width";switch(s){case Ia:u[c]=u[c]-(t[d]/2-n[d]/2);break;case _u:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function wu(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.boundary,o=s===void 0?mz:s,a=n.rootBoundary,u=a===void 0?$S:a,c=n.elementContext,d=c===void 0?Cl:c,h=n.altBoundary,g=h===void 0?!1:h,m=n.padding,b=m===void 0?0:m,v=zS(typeof b!="number"?b:HS(b,Vu)),_=d===Cl?vz:Cl,y=e.rects.popper,C=e.elements[g?_:d],O=qz(Fa(C)?C:C.contextElement||Js(e.elements.popper),o,u),w=Da(e.elements.reference),M=US({reference:w,element:y,strategy:"absolute",placement:i}),T=xg(Object.assign({},y,M)),P=d===Cl?T:w,R={top:O.top-P.top+v.top,bottom:P.bottom-O.bottom+v.bottom,left:O.left-P.left+v.left,right:P.right-O.right+v.right},F=e.modifiersData.offset;if(d===Cl&&F){var D=F[i];Object.keys(R).forEach(function(V){var A=[Ur,jr].indexOf(V)>=0?1:-1,U=[lr,jr].indexOf(V)>=0?"y":"x";R[V]+=D[U]*A})}return R}function Yz(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?Nd:u,d=Na(r),h=d?a?Z_:Z_.filter(function(b){return Na(b)===d}):Vu,g=h.filter(function(b){return c.indexOf(b)>=0});g.length===0&&(g=h);var m=g.reduce(function(b,v){return b[v]=wu(e,{placement:v,boundary:i,rootBoundary:s,padding:o})[wi(v)],b},{});return Object.keys(m).sort(function(b,v){return m[b]-m[v]})}function Gz(e){if(wi(e)===rv)return[];var t=Tf(e);return[t1(e),t,t1(t)]}function Xz(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!0:o,u=n.fallbackPlacements,c=n.padding,d=n.boundary,h=n.rootBoundary,g=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,v=n.allowedAutoPlacements,_=t.options.placement,y=wi(_),C=y===_,O=u||(C||!b?[Tf(_)]:Gz(_)),w=[_].concat(O).reduce(function(Ze,$e){return Ze.concat(wi($e)===rv?Yz(t,{placement:$e,boundary:d,rootBoundary:h,padding:c,flipVariations:b,allowedAutoPlacements:v}):$e)},[]),M=t.rects.reference,T=t.rects.popper,P=new Map,R=!0,F=w[0],D=0;D=0,ce=le?"width":"height",te=wu(t,{placement:V,boundary:d,rootBoundary:h,altBoundary:g,padding:c}),Z=le?U?Ur:ur:U?jr:lr;M[ce]>T[ce]&&(Z=Tf(Z));var ie=Tf(Z),Q=[];if(s&&Q.push(te[A]<=0),a&&Q.push(te[Z]<=0,te[ie]<=0),Q.every(function(Ze){return Ze})){F=V,R=!1;break}P.set(V,Q)}if(R)for(var ye=b?3:1,Ee=function(Ze){var $e=w.find(function(Je){var Y=P.get(Je);if(Y)return Y.slice(0,Ze).every(function(oe){return oe})});if($e)return F=$e,"break"},Le=ye;Le>0;Le--){var ue=Ee(Le);if(ue==="break")break}t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}}var Jz={name:"flip",enabled:!0,phase:"main",fn:Xz,requiresIfExists:["offset"],data:{_skip:!1}};function r1(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function i1(e){return[lr,Ur,jr,ur].some(function(t){return e[t]>=0})}function Zz(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,o=wu(t,{elementContext:"reference"}),a=wu(t,{altBoundary:!0}),u=r1(o,r),c=r1(a,i,s),d=i1(u),h=i1(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}var Qz={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zz};function eH(e,t,n){var r=wi(e),i=[ur,lr].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[ur,Ur].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function tH(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,o=Nd.reduce(function(d,h){return d[h]=eH(h,t.rects,s),d},{}),a=o[t.placement],u=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}var nH={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tH};function rH(e){var t=e.state,n=e.name;t.modifiersData[n]=US({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var KS={name:"popperOffsets",enabled:!0,phase:"read",fn:rH,data:{}};function iH(e){return e==="x"?"y":"x"}function sH(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!1:o,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,h=n.padding,g=n.tether,m=g===void 0?!0:g,b=n.tetherOffset,v=b===void 0?0:b,_=wu(t,{boundary:u,rootBoundary:c,padding:h,altBoundary:d}),y=wi(t.placement),C=Na(t.placement),O=!C,w=ov(y),M=iH(w),T=t.modifiersData.popperOffsets,P=t.rects.reference,R=t.rects.popper,F=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,D=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(T){if(s){var U,le=w==="y"?lr:ur,ce=w==="y"?jr:Ur,te=w==="y"?"height":"width",Z=T[w],ie=Z+_[le],Q=Z-_[ce],ye=m?-R[te]/2:0,Ee=C===Ia?P[te]:R[te],Le=C===Ia?-R[te]:-P[te],ue=t.elements.arrow,Ze=m&&ue?sv(ue):{width:0,height:0},$e=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:BS(),Je=$e[le],Y=$e[ce],oe=Ul(0,P[te],Ze[te]),de=O?P[te]/2-ye-oe-Je-D.mainAxis:Ee-oe-Je-D.mainAxis,Oe=O?-P[te]/2+ye+oe+Y+D.mainAxis:Le+oe+Y+D.mainAxis,Ve=t.elements.arrow&&ju(t.elements.arrow),$=Ve?w==="y"?Ve.clientTop||0:Ve.clientLeft||0:0,H=(U=V==null?void 0:V[w])!=null?U:0,q=Z+de-H-$,se=Z+Oe-H,pe=Ul(m?od(ie,q):ie,Z,m?Do(Q,se):Q);T[w]=pe,A[w]=pe-Z}if(a){var me,Ae=w==="x"?lr:ur,Se=w==="x"?jr:Ur,Ce=T[M],ge=M==="y"?"height":"width",Be=Ce+_[Ae],Pe=Ce-_[Se],ne=[lr,ur].indexOf(y)!==-1,Te=(me=V==null?void 0:V[M])!=null?me:0,Ue=ne?Be:Ce-P[ge]-R[ge]-Te+D.altAxis,at=ne?Ce+P[ge]+R[ge]-Te-D.altAxis:Pe,ot=m&&ne?kz(Ue,Ce,at):Ul(m?Ue:Be,Ce,m?at:Pe);T[M]=ot,A[M]=ot-Ce}t.modifiersData[r]=A}}var oH={name:"preventOverflow",enabled:!0,phase:"main",fn:sH,requiresIfExists:["offset"]};function aH(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lH(e){return e===ui(e)||!zr(e)?av(e):aH(e)}function uH(e){var t=e.getBoundingClientRect(),n=$a(t.width)/e.offsetWidth||1,r=$a(t.height)/e.offsetHeight||1;return n!==1||r!==1}function cH(e,t,n){n===void 0&&(n=!1);var r=zr(t),i=zr(t)&&uH(t),s=Js(t),o=Da(e,i),a={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Si(t)!=="body"||uv(s))&&(a=lH(t)),zr(t)?(u=Da(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=lv(s))),{x:o.left+a.scrollLeft-u.x,y:o.top+a.scrollTop-u.y,width:o.width,height:o.height}}function fH(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var u=t.get(a);u&&i(u)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function dH(e){var t=fH(e);return Mz.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function hH(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function pH(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var s1={placement:"bottom",modifiers:[],strategy:"absolute"};function o1(){for(var e=arguments.length,t=new Array(e),n=0;n{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=bH(u);Object.assign(o.value,c)},requires:["computeStyles"]},i=B(()=>{const{onFirstUpdate:u,placement:c,strategy:d,modifiers:h}=S(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:d||"absolute",modifiers:[...h||[],r,{name:"applyStyles",enabled:!1}]}}),s=$s(),o=X({styles:{popper:{position:S(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=()=>{s.value&&(s.value.destroy(),s.value=void 0)};return Fe(i,u=>{const c=S(s);c&&c.setOptions(u)},{deep:!0}),Fe([e,t],([u,c])=>{a(),!(!u||!c)&&(s.value=qS(u,c,S(i)))}),An(()=>{a()}),{state:B(()=>{var u;return{...((u=S(s))==null?void 0:u.state)||{}}}),styles:B(()=>S(o).styles),attributes:B(()=>S(o).attributes),update:()=>{var u;return(u=S(s))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=S(s))==null?void 0:u.forceUpdate()},instanceRef:B(()=>S(s))}};function bH(e){const t=Object.keys(e.elements),n=id(t.map(i=>[i,e.styles[i]||{}])),r=id(t.map(i=>[i,e.attributes[i]]));return{styles:n,attributes:r}}const YS=e=>{if(!e)return{onClick:Cn,onMousedown:Cn,onMouseup:Cn};let t=!1,n=!1;return{onClick:o=>{t&&n&&e(o),t=n=!1},onMousedown:o=>{t=o.target===o.currentTarget},onMouseup:o=>{n=o.target===o.currentTarget}}};function a1(){let e;const t=(r,i)=>{n(),e=window.setTimeout(r,i)},n=()=>window.clearTimeout(e);return $u(()=>n()),{registerTimeout:t,cancelTimeout:n}}const l1={prefix:Math.floor(Math.random()*1e4),current:0},yH=Symbol("elIdInjection"),GS=()=>kt()?qe(yH,l1):l1,xu=e=>{const t=GS(),n=nv();return B(()=>S(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let ba=[];const u1=e=>{const t=e;t.key===Vn.esc&&ba.forEach(n=>n(t))},_H=e=>{It(()=>{ba.length===0&&document.addEventListener("keydown",u1),tn&&ba.push(e)}),An(()=>{ba=ba.filter(t=>t!==e),ba.length===0&&tn&&document.removeEventListener("keydown",u1)})};let c1;const XS=()=>{const e=nv(),t=GS(),n=B(()=>`${e.value}-popper-container-${t.prefix}`),r=B(()=>`#${n.value}`);return{id:n,selector:r}},wH=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},xH=()=>{const{id:e,selector:t}=XS();return Ya(()=>{tn&&!c1&&!document.body.querySelector(t.value)&&(c1=wH(e.value))}),{id:e,selector:t}},CH=Ft({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),JS=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:i})=>{const{registerTimeout:s}=a1(),{registerTimeout:o,cancelTimeout:a}=a1();return{onOpen:d=>{s(()=>{r(d);const h=S(n);jn(h)&&h>0&&o(()=>{i(d)},h)},S(e))},onClose:d=>{a(),s(()=>{i(d)},S(t))}}},ZS=Symbol("elForwardRef"),SH=e=>{sn(ZS,{setForwardRef:n=>{e.value=n}})},OH=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),f1=X(0),EH=2e3,QS=Symbol("zIndexContextKey"),fv=e=>{const t=e||qe(QS,void 0),n=B(()=>{const s=S(t);return jn(s)?s:EH}),r=B(()=>n.value+f1.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(f1.value++,r.value)}};function MH(e){const t=X();function n(){if(e.value==null)return;const{selectionStart:i,selectionEnd:s,value:o}=e.value;if(i==null||s==null)return;const a=o.slice(0,Math.max(0,i)),u=o.slice(Math.max(0,s));t.value={selectionStart:i,selectionEnd:s,value:o,beforeTxt:a,afterTxt:u}}function r(){if(e.value==null||t.value==null)return;const{value:i}=e.value,{beforeTxt:s,afterTxt:o,selectionStart:a}=t.value;if(s==null||o==null||a==null)return;let u=i.length;if(i.endsWith(o))u=i.length-o.length;else if(i.startsWith(s))u=s.length;else{const c=s[a-1],d=i.indexOf(c,a-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}return[n,r]}const Za=Dd({type:String,values:Wu,required:!1}),e2=Symbol("size"),TH=()=>{const e=qe(e2,{});return B(()=>S(e.size)||"")},t2=Symbol(),ad=X();function dv(e,t=void 0){const n=kt()?qe(t2,ad):ad;return e?B(()=>{var r,i;return(i=(r=n.value)==null?void 0:r[e])!=null?i:t}):n}const AH=(e,t,n=!1)=>{var r;const i=!!kt(),s=i?dv():void 0,o=(r=t==null?void 0:t.provide)!=null?r:i?sn:void 0;if(!o)return;const a=B(()=>{const u=S(e);return s!=null&&s.value?PH(s.value,u):u});return o(t2,a),o(kS,B(()=>a.value.locale)),o(LS,B(()=>a.value.namespace)),o(QS,B(()=>a.value.zIndex)),o(e2,{size:B(()=>a.value.size||"")}),(n||!ad.value)&&(ad.value=a.value),a},PH=(e,t)=>{var n;const r=[...new Set([...yg(e),...yg(t)])],i={};for(const s of r)i[s]=(n=t[s])!=null?n:e[s];return i},RH=Ft({a11y:{type:Boolean,default:!0},locale:{type:st(Object)},size:Za,button:{type:st(Object)},experimentalFeatures:{type:st(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:st(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),kH={},LH=Ne({name:"ElConfigProvider",props:RH,setup(e,{slots:t}){Fe(()=>e.message,r=>{Object.assign(kH,r??{})},{immediate:!0,deep:!0});const n=AH(e);return()=>We(t,"default",{config:n==null?void 0:n.value})}}),IH=Pn(LH);var Et=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};const FH=Ft({size:{type:st([Number,String])},color:{type:String}}),$H=Ne({name:"ElIcon",inheritAttrs:!1}),DH=Ne({...$H,props:FH,setup(e){const t=e,n=Qe("icon"),r=B(()=>{const{size:i,color:s}=t;return!i&&!s?{}:{fontSize:sd(i)?void 0:es(i),"--color":s}});return(i,s)=>(K(),_e("i",Mr({class:S(n).b(),style:S(r)},i.$attrs),[We(i.$slots,"default")],16))}});var NH=Et(DH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const wn=Pn(NH),BH=["light","dark"],zH=Ft({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:yg(AS),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:BH,default:"light"}}),HH={close:e=>e instanceof MouseEvent},WH=Ne({name:"ElAlert"}),VH=Ne({...WH,props:zH,emits:HH,setup(e,{emit:t}){const n=e,{Close:r}=J6,i=Ko(),s=Qe("alert"),o=X(!0),a=B(()=>AS[n.type]),u=B(()=>[s.e("icon"),{[s.is("big")]:!!n.description||!!i.default}]),c=B(()=>({[s.is("bold")]:n.description||i.default})),d=h=>{o.value=!1,t("close",h)};return(h,g)=>(K(),Me(Hr,{name:S(s).b("fade"),persisted:""},{default:z(()=>[gn(L("div",{class:he([S(s).b(),S(s).m(h.type),S(s).is("center",h.center),S(s).is(h.effect)]),role:"alert"},[h.showIcon&&S(a)?(K(),Me(S(wn),{key:0,class:he(S(u))},{default:z(()=>[(K(),Me(Fn(S(a))))]),_:1},8,["class"])):Ie("v-if",!0),L("div",{class:he(S(s).e("content"))},[h.title||h.$slots.title?(K(),_e("span",{key:0,class:he([S(s).e("title"),S(c)])},[We(h.$slots,"title",{},()=>[re(pt(h.title),1)])],2)):Ie("v-if",!0),h.$slots.default||h.description?(K(),_e("p",{key:1,class:he(S(s).e("description"))},[We(h.$slots,"default",{},()=>[re(pt(h.description),1)])],2)):Ie("v-if",!0),h.closable?(K(),_e(it,{key:2},[h.closeText?(K(),_e("div",{key:0,class:he([S(s).e("close-btn"),S(s).is("customed")]),onClick:d},pt(h.closeText),3)):(K(),Me(S(wn),{key:1,class:he(S(s).e("close-btn")),onClick:d},{default:z(()=>[W(S(r))]),_:1},8,["class"]))],64)):Ie("v-if",!0)],2)],2),[[Wr,o.value]])]),_:3},8,["name"]))}});var jH=Et(VH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const hv=Pn(jH),Qa=Symbol("formContextKey"),Wo=Symbol("formItemContextKey"),ns=(e,t={})=>{const n=X(void 0),r=t.prop?n:FS("size"),i=t.global?n:TH(),s=t.form?{size:void 0}:qe(Qa,void 0),o=t.formItem?{size:void 0}:qe(Wo,void 0);return B(()=>r.value||S(e)||(o==null?void 0:o.size)||(s==null?void 0:s.size)||i.value||"")},zd=e=>{const t=FS("disabled"),n=qe(Qa,void 0);return B(()=>t.value||S(e)||(n==null?void 0:n.disabled)||!1)},el=()=>{const e=qe(Qa,void 0),t=qe(Wo,void 0);return{form:e,formItem:t}},pv=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=X(!1)),r||(r=X(!1));const i=X();let s;const o=B(()=>{var a;return!!(!e.label&&t&&t.inputIds&&((a=t.inputIds)==null?void 0:a.length)<=1)});return It(()=>{s=Fe([Nr(e,"id"),n],([a,u])=>{const c=a??(u?void 0:xu().value);c!==i.value&&(t!=null&&t.removeInputId&&(i.value&&t.removeInputId(i.value),!(r!=null&&r.value)&&!u&&c&&t.addInputId(c)),i.value=c)},{immediate:!0})}),Ga(()=>{s&&s(),t!=null&&t.removeInputId&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:o,inputId:i}},UH=Ft({size:{type:String,values:Wu},disabled:Boolean}),KH=Ft({...UH,model:Object,rules:{type:st(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:{type:Boolean,default:!1},scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),qH={validate:(e,t,n)=>(He(e)||mt(e))&&Qi(t)&&mt(n)};function YH(){const e=X([]),t=B(()=>{if(!e.value.length)return"0";const s=Math.max(...e.value);return s?`${s}px`:""});function n(s){const o=e.value.indexOf(s);return o===-1&&t.value,o}function r(s,o){if(s&&o){const a=n(o);e.value.splice(a,1,s)}else s&&e.value.push(s)}function i(s){const o=n(s);o>-1&&e.value.splice(o,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:i}}const Yc=(e,t)=>{const n=fg(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},GH="ElForm",XH=Ne({name:GH}),JH=Ne({...XH,props:KH,emits:qH,setup(e,{expose:t,emit:n}){const r=e,i=[],s=ns(),o=Qe("form"),a=B(()=>{const{labelPosition:C,inline:O}=r;return[o.b(),o.m(s.value||"default"),{[o.m(`label-${C}`)]:C,[o.m("inline")]:O}]}),u=C=>{i.push(C)},c=C=>{C.prop&&i.splice(i.indexOf(C),1)},d=(C=[])=>{r.model&&Yc(i,C).forEach(O=>O.resetField())},h=(C=[])=>{Yc(i,C).forEach(O=>O.clearValidate())},g=B(()=>!!r.model),m=C=>{if(i.length===0)return[];const O=Yc(i,C);return O.length?O:[]},b=async C=>_(void 0,C),v=async(C=[])=>{if(!g.value)return!1;const O=m(C);if(O.length===0)return!0;let w={};for(const M of O)try{await M.validate("")}catch(T){w={...w,...T}}return Object.keys(w).length===0?!0:Promise.reject(w)},_=async(C=[],O)=>{const w=!Xe(O);try{const M=await v(C);return M===!0&&(O==null||O(M)),M}catch(M){if(M instanceof Error)throw M;const T=M;return r.scrollToError&&y(Object.keys(T)[0]),O==null||O(!1,T),w&&Promise.reject(T)}},y=C=>{var O;const w=Yc(i,C)[0];w&&((O=w.$el)==null||O.scrollIntoView(r.scrollIntoViewOptions))};return Fe(()=>r.rules,()=>{r.validateOnRuleChange&&b().catch(C=>void 0)},{deep:!0}),sn(Qa,vn({...Gs(r),emit:n,resetFields:d,clearValidate:h,validateField:_,addField:u,removeField:c,...YH()})),t({validate:b,validateField:_,resetFields:d,clearValidate:h,scrollToField:y}),(C,O)=>(K(),_e("form",{class:he(S(a))},[We(C.$slots,"default")],2))}});var ZH=Et(JH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function Ao(){return Ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t"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 Af(e,t,n){return eW()?Af=Reflect.construct.bind():Af=function(i,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(i,a),c=new u;return o&&Cu(c,o.prototype),c},Af.apply(null,arguments)}function tW(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Sg(e){var t=typeof Map=="function"?new Map:void 0;return Sg=function(r){if(r===null||!tW(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return Af(r,arguments,Cg(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Cu(i,r)},Sg(e)}var nW=/%[sdj%]/g,rW=function(){};typeof process<"u"&&process.env;function Og(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Or(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=s)return a;switch(a){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return a}});return o}return e}function iW(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Sn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||iW(t)&&typeof e=="string"&&!e)}function sW(e,t,n){var r=[],i=0,s=e.length;function o(a){r.push.apply(r,a||[]),i++,i===s&&n(r)}e.forEach(function(a){t(a,o)})}function d1(e,t,n){var r=0,i=e.length;function s(o){if(o&&o.length){n(o);return}var a=r;r=r+1,a()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},kl={integer:function(t){return kl.number(t)&&parseInt(t,10)===t},float:function(t){return kl.number(t)&&!kl.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!kl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(m1.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(fW())},hex:function(t){return typeof t=="string"&&!!t.match(m1.hex)}},dW=function(t,n,r,i,s){if(t.required&&n===void 0){n2(t,n,r,i,s);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;o.indexOf(a)>-1?kl[a](n)||i.push(Or(s.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&i.push(Or(s.messages.types[a],t.fullField,t.type))},hW=function(t,n,r,i,s){var o=typeof t.len=="number",a=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,h=null,g=typeof n=="number",m=typeof n=="string",b=Array.isArray(n);if(g?h="number":m?h="string":b&&(h="array"),!h)return!1;b&&(d=n.length),m&&(d=n.replace(c,"_").length),o?d!==t.len&&i.push(Or(s.messages[h].len,t.fullField,t.len)):a&&!u&&dt.max?i.push(Or(s.messages[h].max,t.fullField,t.max)):a&&u&&(dt.max)&&i.push(Or(s.messages[h].range,t.fullField,t.min,t.max))},ha="enum",pW=function(t,n,r,i,s){t[ha]=Array.isArray(t[ha])?t[ha]:[],t[ha].indexOf(n)===-1&&i.push(Or(s.messages[ha],t.fullField,t[ha].join(", ")))},gW=function(t,n,r,i,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(Or(s.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(n)||i.push(Or(s.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Tt={required:n2,whitespace:cW,type:dW,range:hW,enum:pW,pattern:gW},mW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n,"string")&&!t.required)return r();Tt.required(t,n,i,o,s,"string"),Sn(n,"string")||(Tt.type(t,n,i,o,s),Tt.range(t,n,i,o,s),Tt.pattern(t,n,i,o,s),t.whitespace===!0&&Tt.whitespace(t,n,i,o,s))}r(o)},vW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n)&&!t.required)return r();Tt.required(t,n,i,o,s),n!==void 0&&Tt.type(t,n,i,o,s)}r(o)},bW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),Sn(n)&&!t.required)return r();Tt.required(t,n,i,o,s),n!==void 0&&(Tt.type(t,n,i,o,s),Tt.range(t,n,i,o,s))}r(o)},yW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n)&&!t.required)return r();Tt.required(t,n,i,o,s),n!==void 0&&Tt.type(t,n,i,o,s)}r(o)},_W=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n)&&!t.required)return r();Tt.required(t,n,i,o,s),Sn(n)||Tt.type(t,n,i,o,s)}r(o)},wW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n)&&!t.required)return r();Tt.required(t,n,i,o,s),n!==void 0&&(Tt.type(t,n,i,o,s),Tt.range(t,n,i,o,s))}r(o)},xW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n)&&!t.required)return r();Tt.required(t,n,i,o,s),n!==void 0&&(Tt.type(t,n,i,o,s),Tt.range(t,n,i,o,s))}r(o)},CW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return r();Tt.required(t,n,i,o,s,"array"),n!=null&&(Tt.type(t,n,i,o,s),Tt.range(t,n,i,o,s))}r(o)},SW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n)&&!t.required)return r();Tt.required(t,n,i,o,s),n!==void 0&&Tt.type(t,n,i,o,s)}r(o)},OW="enum",EW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n)&&!t.required)return r();Tt.required(t,n,i,o,s),n!==void 0&&Tt[OW](t,n,i,o,s)}r(o)},MW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n,"string")&&!t.required)return r();Tt.required(t,n,i,o,s),Sn(n,"string")||Tt.pattern(t,n,i,o,s)}r(o)},TW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n,"date")&&!t.required)return r();if(Tt.required(t,n,i,o,s),!Sn(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),Tt.type(t,u,i,o,s),u&&Tt.range(t,u.getTime(),i,o,s)}}r(o)},AW=function(t,n,r,i,s){var o=[],a=Array.isArray(n)?"array":typeof n;Tt.required(t,n,i,o,s,a),r(o)},xp=function(t,n,r,i,s){var o=t.type,a=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Sn(n,o)&&!t.required)return r();Tt.required(t,n,i,a,s,o),Sn(n,o)||Tt.type(t,n,i,a,s)}r(a)},PW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Sn(n)&&!t.required)return r();Tt.required(t,n,i,o,s)}r(o)},ql={string:mW,method:vW,number:bW,boolean:yW,regexp:_W,integer:wW,float:xW,array:CW,object:SW,enum:EW,pattern:MW,date:TW,url:xp,hex:xp,email:xp,required:AW,any:PW};function Eg(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Mg=Eg(),Uu=function(){function e(n){this.rules=null,this._messages=Mg,this.define(n)}var t=e.prototype;return t.define=function(r){var i=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 o=r[s];i.rules[s]=Array.isArray(o)?o:[o]})},t.messages=function(r){return r&&(this._messages=g1(Eg(),r)),this._messages},t.validate=function(r,i,s){var o=this;i===void 0&&(i={}),s===void 0&&(s=function(){});var a=r,u=i,c=s;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function d(v){var _=[],y={};function C(w){if(Array.isArray(w)){var M;_=(M=_).concat.apply(M,w)}else _.push(w)}for(var O=0;O");const i=Qe("form"),s=X(),o=X(0),a=()=>{var d;if((d=s.value)!=null&&d.firstElementChild){const h=window.getComputedStyle(s.value.firstElementChild).width;return Math.ceil(Number.parseFloat(h))}else return 0},u=(d="update")=>{bt(()=>{t.default&&e.isAutoWidth&&(d==="update"?o.value=a():d==="remove"&&(n==null||n.deregisterLabelWidth(o.value)))})},c=()=>u("update");return It(()=>{c()}),An(()=>{u("remove")}),Xs(()=>c()),Fe(o,(d,h)=>{e.updateAll&&(n==null||n.registerLabelWidth(d,h))}),js(B(()=>{var d,h;return(h=(d=s.value)==null?void 0:d.firstElementChild)!=null?h:null}),c),()=>{var d,h;if(!t)return null;const{isAutoWidth:g}=e;if(g){const m=n==null?void 0:n.autoLabelWidth,b=r==null?void 0:r.hasLabel,v={};if(b&&m&&m!=="auto"){const _=Math.max(0,Number.parseInt(m,10)-o.value),y=n.labelPosition==="left"?"marginRight":"marginLeft";_&&(v[y]=`${_}px`)}return W("div",{ref:s,class:[i.be("item","label-wrap")],style:v},[(d=t.default)==null?void 0:d.call(t)])}else return W(it,{ref:s},[(h=t.default)==null?void 0:h.call(t)])}}});const IW=["role","aria-labelledby"],FW=Ne({name:"ElFormItem"}),$W=Ne({...FW,props:kW,setup(e,{expose:t}){const n=e,r=Ko(),i=qe(Qa,void 0),s=qe(Wo,void 0),o=ns(void 0,{formItem:!1}),a=Qe("form-item"),u=xu().value,c=X([]),d=X(""),h=N$(d,100),g=X(""),m=X();let b,v=!1;const _=B(()=>{if((i==null?void 0:i.labelPosition)==="top")return{};const Y=es(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return Y?{width:Y}:{}}),y=B(()=>{if((i==null?void 0:i.labelPosition)==="top"||i!=null&&i.inline)return{};if(!n.label&&!n.labelWidth&&F)return{};const Y=es(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return!n.label&&!r.label?{marginLeft:Y}:{}}),C=B(()=>[a.b(),a.m(o.value),a.is("error",d.value==="error"),a.is("validating",d.value==="validating"),a.is("success",d.value==="success"),a.is("required",le.value||n.required),a.is("no-asterisk",i==null?void 0:i.hideRequiredAsterisk),(i==null?void 0:i.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[a.m("feedback")]:i==null?void 0:i.statusIcon}]),O=B(()=>Qi(n.inlineMessage)?n.inlineMessage:(i==null?void 0:i.inlineMessage)||!1),w=B(()=>[a.e("error"),{[a.em("error","inline")]:O.value}]),M=B(()=>n.prop?mt(n.prop)?n.prop:n.prop.join("."):""),T=B(()=>!!(n.label||r.label)),P=B(()=>n.for||c.value.length===1?c.value[0]:void 0),R=B(()=>!P.value&&T.value),F=!!s,D=B(()=>{const Y=i==null?void 0:i.model;if(!(!Y||!n.prop))return Of(Y,n.prop).value}),V=B(()=>{const{required:Y}=n,oe=[];n.rules&&oe.push(...fg(n.rules));const de=i==null?void 0:i.rules;if(de&&n.prop){const Oe=Of(de,n.prop).value;Oe&&oe.push(...fg(Oe))}if(Y!==void 0){const Oe=oe.map((Ve,$)=>[Ve,$]).filter(([Ve])=>Object.keys(Ve).includes("required"));if(Oe.length>0)for(const[Ve,$]of Oe)Ve.required!==Y&&(oe[$]={...Ve,required:Y});else oe.push({required:Y})}return oe}),A=B(()=>V.value.length>0),U=Y=>V.value.filter(de=>!de.trigger||!Y?!0:Array.isArray(de.trigger)?de.trigger.includes(Y):de.trigger===Y).map(({trigger:de,...Oe})=>Oe),le=B(()=>V.value.some(Y=>Y.required)),ce=B(()=>{var Y;return h.value==="error"&&n.showMessage&&((Y=i==null?void 0:i.showMessage)!=null?Y:!0)}),te=B(()=>`${n.label||""}${(i==null?void 0:i.labelSuffix)||""}`),Z=Y=>{d.value=Y},ie=Y=>{var oe,de;const{errors:Oe,fields:Ve}=Y;(!Oe||!Ve)&&console.error(Y),Z("error"),g.value=Oe?(de=(oe=Oe==null?void 0:Oe[0])==null?void 0:oe.message)!=null?de:`${n.prop} is required`:"",i==null||i.emit("validate",n.prop,!1,g.value)},Q=()=>{Z("success"),i==null||i.emit("validate",n.prop,!0,"")},ye=async Y=>{const oe=M.value;return new Uu({[oe]:Y}).validate({[oe]:D.value},{firstFields:!0}).then(()=>(Q(),!0)).catch(Oe=>(ie(Oe),Promise.reject(Oe)))},Ee=async(Y,oe)=>{if(v||!n.prop)return!1;const de=Xe(oe);if(!A.value)return oe==null||oe(!1),!1;const Oe=U(Y);return Oe.length===0?(oe==null||oe(!0),!0):(Z("validating"),ye(Oe).then(()=>(oe==null||oe(!0),!0)).catch(Ve=>{const{fields:$}=Ve;return oe==null||oe(!1,$),de?!1:Promise.reject($)}))},Le=()=>{Z(""),g.value="",v=!1},ue=async()=>{const Y=i==null?void 0:i.model;if(!Y||!n.prop)return;const oe=Of(Y,n.prop);v=!0,oe.value=q_(b),await bt(),Le(),v=!1},Ze=Y=>{c.value.includes(Y)||c.value.push(Y)},$e=Y=>{c.value=c.value.filter(oe=>oe!==Y)};Fe(()=>n.error,Y=>{g.value=Y||"",Z(Y?"error":"")},{immediate:!0}),Fe(()=>n.validateStatus,Y=>Z(Y||""));const Je=vn({...Gs(n),$el:m,size:o,validateState:d,labelId:u,inputIds:c,isGroup:R,hasLabel:T,addInputId:Ze,removeInputId:$e,resetField:ue,clearValidate:Le,validate:Ee});return sn(Wo,Je),It(()=>{n.prop&&(i==null||i.addField(Je),b=q_(D.value))}),An(()=>{i==null||i.removeField(Je)}),t({size:o,validateMessage:g,validateState:d,validate:Ee,clearValidate:Le,resetField:ue}),(Y,oe)=>{var de;return K(),_e("div",{ref_key:"formItemRef",ref:m,class:he(S(C)),role:S(R)?"group":void 0,"aria-labelledby":S(R)?S(u):void 0},[W(S(LW),{"is-auto-width":S(_).width==="auto","update-all":((de=S(i))==null?void 0:de.labelWidth)==="auto"},{default:z(()=>[S(T)?(K(),Me(Fn(S(P)?"label":"div"),{key:0,id:S(u),for:S(P),class:he(S(a).e("label")),style:Vt(S(_))},{default:z(()=>[We(Y.$slots,"label",{label:S(te)},()=>[re(pt(S(te)),1)])]),_:3},8,["id","for","class","style"])):Ie("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),L("div",{class:he(S(a).e("content")),style:Vt(S(y))},[We(Y.$slots,"default"),W(v$,{name:`${S(a).namespace.value}-zoom-in-top`},{default:z(()=>[S(ce)?We(Y.$slots,"error",{key:0,error:g.value},()=>[L("div",{class:he(S(w))},pt(g.value),3)]):Ie("v-if",!0)]),_:3},8,["name"])],6)],10,IW)}}});var r2=Et($W,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const DW=Pn(ZH,{FormItem:r2});Oi(r2);let Zr;const NW=` + height:0 !important; + visibility:hidden !important; + ${T4()?"":"overflow:hidden !important;"} + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; +`,BW=["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 zW(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),i=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:BW.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function b1(e,t=1,n){var r;Zr||(Zr=document.createElement("textarea"),document.body.appendChild(Zr));const{paddingSize:i,borderSize:s,boxSizing:o,contextStyle:a}=zW(e);Zr.setAttribute("style",`${a};${NW}`),Zr.value=e.value||e.placeholder||"";let u=Zr.scrollHeight;const c={};o==="border-box"?u=u+s:o==="content-box"&&(u=u-i),Zr.value="";const d=Zr.scrollHeight-i;if(jn(t)){let h=d*t;o==="border-box"&&(h=h+i+s),u=Math.max(h,u),c.minHeight=`${h}px`}if(jn(n)){let h=d*n;o==="border-box"&&(h=h+i+s),u=Math.min(h,u)}return c.height=`${u}px`,(r=Zr.parentNode)==null||r.removeChild(Zr),Zr=void 0,c}const HW=Ft({id:{type:String,default:void 0},size:Za,disabled:Boolean,modelValue:{type:st([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:st([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:ni},prefixIcon:{type:ni},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:st([Object,Array,String]),default:()=>Oo({})}}),WW={[Ln]:e=>mt(e),input:e=>mt(e),change:e=>mt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},VW=["role"],jW=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],UW=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],KW=Ne({name:"ElInput",inheritAttrs:!1}),qW=Ne({...KW,props:HW,emits:WW,setup(e,{expose:t,emit:n}){const r=e,i=vF(),s=Ko(),o=B(()=>{const ne={};return r.containerRole==="combobox"&&(ne["aria-haspopup"]=i["aria-haspopup"],ne["aria-owns"]=i["aria-owns"],ne["aria-expanded"]=i["aria-expanded"]),ne}),a=B(()=>[r.type==="textarea"?_.b():v.b(),v.m(m.value),v.is("disabled",b.value),v.is("exceed",Ee.value),{[v.b("group")]:s.prepend||s.append,[v.bm("group","append")]:s.append,[v.bm("group","prepend")]:s.prepend,[v.m("prefix")]:s.prefix||r.prefixIcon,[v.m("suffix")]:s.suffix||r.suffixIcon||r.clearable||r.showPassword,[v.bm("suffix","password-clear")]:Z.value&&ie.value},i.class]),u=B(()=>[v.e("wrapper"),v.is("focus",O.value)]),c=sz({excludeKeys:B(()=>Object.keys(o.value))}),{form:d,formItem:h}=el(),{inputId:g}=pv(r,{formItemContext:h}),m=ns(),b=zd(),v=Qe("input"),_=Qe("textarea"),y=$s(),C=$s(),O=X(!1),w=X(!1),M=X(!1),T=X(!1),P=X(),R=$s(r.inputStyle),F=B(()=>y.value||C.value),D=B(()=>{var ne;return(ne=d==null?void 0:d.statusIcon)!=null?ne:!1}),V=B(()=>(h==null?void 0:h.validateState)||""),A=B(()=>V.value&&Z6[V.value]),U=B(()=>T.value?V6:m6),le=B(()=>[i.style,r.inputStyle]),ce=B(()=>[r.inputStyle,R.value,{resize:r.resize}]),te=B(()=>ka(r.modelValue)?"":String(r.modelValue)),Z=B(()=>r.clearable&&!b.value&&!r.readonly&&!!te.value&&(O.value||w.value)),ie=B(()=>r.showPassword&&!b.value&&!r.readonly&&!!te.value&&(!!te.value||O.value)),Q=B(()=>r.showWordLimit&&!!c.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!b.value&&!r.readonly&&!r.showPassword),ye=B(()=>te.value.length),Ee=B(()=>!!Q.value&&ye.value>Number(c.value.maxlength)),Le=B(()=>!!s.suffix||!!r.suffixIcon||Z.value||r.showPassword||Q.value||!!V.value&&D.value),[ue,Ze]=MH(y);js(C,ne=>{if(Y(),!Q.value||r.resize!=="both")return;const Te=ne[0],{width:Ue}=Te.contentRect;P.value={right:`calc(100% - ${Ue+15+6}px)`}});const $e=()=>{const{type:ne,autosize:Te}=r;if(!(!tn||ne!=="textarea"||!C.value))if(Te){const Ue=yt(Te)?Te.minRows:void 0,at=yt(Te)?Te.maxRows:void 0,ot=b1(C.value,Ue,at);R.value={overflowY:"hidden",...ot},bt(()=>{C.value.offsetHeight,R.value=ot})}else R.value={minHeight:b1(C.value).minHeight}},Y=(ne=>{let Te=!1;return()=>{var Ue;if(Te||!r.autosize)return;((Ue=C.value)==null?void 0:Ue.offsetParent)===null||(ne(),Te=!0)}})($e),oe=()=>{const ne=F.value;!ne||ne.value===te.value||(ne.value=te.value)},de=async ne=>{ue();let{value:Te}=ne.target;if(r.formatter&&(Te=r.parser?r.parser(Te):Te,Te=r.formatter(Te)),!M.value){if(Te===te.value){oe();return}n(Ln,Te),n("input",Te),await bt(),oe(),Ze()}},Oe=ne=>{n("change",ne.target.value)},Ve=ne=>{n("compositionstart",ne),M.value=!0},$=ne=>{var Te;n("compositionupdate",ne);const Ue=(Te=ne.target)==null?void 0:Te.value,at=Ue[Ue.length-1]||"";M.value=!RS(at)},H=ne=>{n("compositionend",ne),M.value&&(M.value=!1,de(ne))},q=()=>{T.value=!T.value,se()},se=async()=>{var ne;await bt(),(ne=F.value)==null||ne.focus()},pe=()=>{var ne;return(ne=F.value)==null?void 0:ne.blur()},me=ne=>{O.value=!0,n("focus",ne)},Ae=ne=>{var Te;O.value=!1,n("blur",ne),r.validateEvent&&((Te=h==null?void 0:h.validate)==null||Te.call(h,"blur").catch(Ue=>void 0))},Se=ne=>{w.value=!1,n("mouseleave",ne)},Ce=ne=>{w.value=!0,n("mouseenter",ne)},ge=ne=>{n("keydown",ne)},Be=()=>{var ne;(ne=F.value)==null||ne.select()},Pe=()=>{n(Ln,""),n("change",""),n("clear"),n("input","")};return Fe(()=>r.modelValue,()=>{var ne;bt(()=>$e()),r.validateEvent&&((ne=h==null?void 0:h.validate)==null||ne.call(h,"change").catch(Te=>void 0))}),Fe(te,()=>oe()),Fe(()=>r.type,async()=>{await bt(),oe(),$e()}),It(()=>{!r.formatter&&r.parser,oe(),bt($e)}),t({input:y,textarea:C,ref:F,textareaStyle:ce,autosize:Nr(r,"autosize"),focus:se,blur:pe,select:Be,clear:Pe,resizeTextarea:$e}),(ne,Te)=>gn((K(),_e("div",Mr(S(o),{class:S(a),style:S(le),role:ne.containerRole,onMouseenter:Ce,onMouseleave:Se}),[Ie(" input "),ne.type!=="textarea"?(K(),_e(it,{key:0},[Ie(" prepend slot "),ne.$slots.prepend?(K(),_e("div",{key:0,class:he(S(v).be("group","prepend"))},[We(ne.$slots,"prepend")],2)):Ie("v-if",!0),L("div",{class:he(S(u))},[Ie(" prefix slot "),ne.$slots.prefix||ne.prefixIcon?(K(),_e("span",{key:0,class:he(S(v).e("prefix"))},[L("span",{class:he(S(v).e("prefix-inner")),onClick:se},[We(ne.$slots,"prefix"),ne.prefixIcon?(K(),Me(S(wn),{key:0,class:he(S(v).e("icon"))},{default:z(()=>[(K(),Me(Fn(ne.prefixIcon)))]),_:1},8,["class"])):Ie("v-if",!0)],2)],2)):Ie("v-if",!0),L("input",Mr({id:S(g),ref_key:"input",ref:y,class:S(v).e("inner")},S(c),{type:ne.showPassword?T.value?"text":"password":ne.type,disabled:S(b),formatter:ne.formatter,parser:ne.parser,readonly:ne.readonly,autocomplete:ne.autocomplete,tabindex:ne.tabindex,"aria-label":ne.label,placeholder:ne.placeholder,style:ne.inputStyle,form:r.form,onCompositionstart:Ve,onCompositionupdate:$,onCompositionend:H,onInput:de,onFocus:me,onBlur:Ae,onChange:Oe,onKeydown:ge}),null,16,jW),Ie(" suffix slot "),S(Le)?(K(),_e("span",{key:1,class:he(S(v).e("suffix"))},[L("span",{class:he(S(v).e("suffix-inner")),onClick:se},[!S(Z)||!S(ie)||!S(Q)?(K(),_e(it,{key:0},[We(ne.$slots,"suffix"),ne.suffixIcon?(K(),Me(S(wn),{key:0,class:he(S(v).e("icon"))},{default:z(()=>[(K(),Me(Fn(ne.suffixIcon)))]),_:1},8,["class"])):Ie("v-if",!0)],64)):Ie("v-if",!0),S(Z)?(K(),Me(S(wn),{key:1,class:he([S(v).e("icon"),S(v).e("clear")]),onMousedown:Cr(S(Cn),["prevent"]),onClick:Pe},{default:z(()=>[W(S(ev))]),_:1},8,["class","onMousedown"])):Ie("v-if",!0),S(ie)?(K(),Me(S(wn),{key:2,class:he([S(v).e("icon"),S(v).e("password")]),onClick:q},{default:z(()=>[(K(),Me(Fn(S(U))))]),_:1},8,["class"])):Ie("v-if",!0),S(Q)?(K(),_e("span",{key:3,class:he(S(v).e("count"))},[L("span",{class:he(S(v).e("count-inner"))},pt(S(ye))+" / "+pt(S(c).maxlength),3)],2)):Ie("v-if",!0),S(V)&&S(A)&&S(D)?(K(),Me(S(wn),{key:4,class:he([S(v).e("icon"),S(v).e("validateIcon"),S(v).is("loading",S(V)==="validating")])},{default:z(()=>[(K(),Me(Fn(S(A))))]),_:1},8,["class"])):Ie("v-if",!0)],2)],2)):Ie("v-if",!0)],2),Ie(" append slot "),ne.$slots.append?(K(),_e("div",{key:1,class:he(S(v).be("group","append"))},[We(ne.$slots,"append")],2)):Ie("v-if",!0)],64)):(K(),_e(it,{key:1},[Ie(" textarea "),L("textarea",Mr({id:S(g),ref_key:"textarea",ref:C,class:S(_).e("inner")},S(c),{tabindex:ne.tabindex,disabled:S(b),readonly:ne.readonly,autocomplete:ne.autocomplete,style:S(ce),"aria-label":ne.label,placeholder:ne.placeholder,form:r.form,onCompositionstart:Ve,onCompositionupdate:$,onCompositionend:H,onInput:de,onFocus:me,onBlur:Ae,onChange:Oe,onKeydown:ge}),null,16,UW),S(Q)?(K(),_e("span",{key:0,style:Vt(P.value),class:he(S(v).e("count"))},pt(S(ye))+" / "+pt(S(c).maxlength),7)):Ie("v-if",!0)],64))],16,VW)),[[Wr,ne.type!=="hidden"]])}});var YW=Et(qW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const tl=Pn(YW),_a=4,GW={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"}},XW=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),i2=Symbol("scrollbarContextKey"),JW=Ft({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),ZW="Thumb",QW=Ne({__name:"thumb",props:JW,setup(e){const t=e,n=qe(i2),r=Qe("scrollbar");n||Us(ZW,"can not inject scrollbar context");const i=X(),s=X(),o=X({}),a=X(!1);let u=!1,c=!1,d=tn?document.onselectstart:null;const h=B(()=>GW[t.vertical?"vertical":"horizontal"]),g=B(()=>XW({size:t.size,move:t.move,bar:h.value})),m=B(()=>i.value[h.value.offset]**2/n.wrapElement[h.value.scrollSize]/t.ratio/s.value[h.value.offset]),b=T=>{var P;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(P=window.getSelection())==null||P.removeAllRanges(),_(T);const R=T.currentTarget;R&&(o.value[h.value.axis]=R[h.value.offset]-(T[h.value.client]-R.getBoundingClientRect()[h.value.direction]))},v=T=>{if(!s.value||!i.value||!n.wrapElement)return;const P=Math.abs(T.target.getBoundingClientRect()[h.value.direction]-T[h.value.client]),R=s.value[h.value.offset]/2,F=(P-R)*100*m.value/i.value[h.value.offset];n.wrapElement[h.value.scroll]=F*n.wrapElement[h.value.scrollSize]/100},_=T=>{T.stopImmediatePropagation(),u=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",C),d=document.onselectstart,document.onselectstart=()=>!1},y=T=>{if(!i.value||!s.value||u===!1)return;const P=o.value[h.value.axis];if(!P)return;const R=(i.value.getBoundingClientRect()[h.value.direction]-T[h.value.client])*-1,F=s.value[h.value.offset]-P,D=(R-F)*100*m.value/i.value[h.value.offset];n.wrapElement[h.value.scroll]=D*n.wrapElement[h.value.scrollSize]/100},C=()=>{u=!1,o.value[h.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",C),M(),c&&(a.value=!1)},O=()=>{c=!1,a.value=!!t.size},w=()=>{c=!0,a.value=u};An(()=>{M(),document.removeEventListener("mouseup",C)});const M=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return _i(Nr(n,"scrollbarElement"),"mousemove",O),_i(Nr(n,"scrollbarElement"),"mouseleave",w),(T,P)=>(K(),Me(Hr,{name:S(r).b("fade"),persisted:""},{default:z(()=>[gn(L("div",{ref_key:"instance",ref:i,class:he([S(r).e("bar"),S(r).is(S(h).key)]),onMousedown:v},[L("div",{ref_key:"thumb",ref:s,class:he(S(r).e("thumb")),style:Vt(S(g)),onMousedown:b},null,38)],34),[[Wr,T.always||a.value]])]),_:1},8,["name"]))}});var y1=Et(QW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const eV=Ft({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),tV=Ne({__name:"bar",props:eV,setup(e,{expose:t}){const n=e,r=X(0),i=X(0);return t({handleScroll:o=>{if(o){const a=o.offsetHeight-_a,u=o.offsetWidth-_a;i.value=o.scrollTop*100/a*n.ratioY,r.value=o.scrollLeft*100/u*n.ratioX}}}),(o,a)=>(K(),_e(it,null,[W(y1,{move:r.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),W(y1,{move:i.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var nV=Et(tV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const rV=Ft({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:st([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}}),iV={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(jn)},sV="ElScrollbar",oV=Ne({name:sV}),aV=Ne({...oV,props:rV,emits:iV,setup(e,{expose:t,emit:n}){const r=e,i=Qe("scrollbar");let s,o;const a=X(),u=X(),c=X(),d=X("0"),h=X("0"),g=X(),m=X(1),b=X(1),v=B(()=>{const P={};return r.height&&(P.height=es(r.height)),r.maxHeight&&(P.maxHeight=es(r.maxHeight)),[r.wrapStyle,P]}),_=B(()=>[r.wrapClass,i.e("wrap"),{[i.em("wrap","hidden-default")]:!r.native}]),y=B(()=>[i.e("view"),r.viewClass]),C=()=>{var P;u.value&&((P=g.value)==null||P.handleScroll(u.value),n("scroll",{scrollTop:u.value.scrollTop,scrollLeft:u.value.scrollLeft}))};function O(P,R){yt(P)?u.value.scrollTo(P):jn(P)&&jn(R)&&u.value.scrollTo(P,R)}const w=P=>{jn(P)&&(u.value.scrollTop=P)},M=P=>{jn(P)&&(u.value.scrollLeft=P)},T=()=>{if(!u.value)return;const P=u.value.offsetHeight-_a,R=u.value.offsetWidth-_a,F=P**2/u.value.scrollHeight,D=R**2/u.value.scrollWidth,V=Math.max(F,r.minSize),A=Math.max(D,r.minSize);m.value=F/(P-F)/(V/(P-V)),b.value=D/(R-D)/(A/(R-A)),h.value=V+_ar.noresize,P=>{P?(s==null||s(),o==null||o()):({stop:s}=js(c,T),o=_i("resize",T))},{immediate:!0}),Fe(()=>[r.maxHeight,r.height],()=>{r.native||bt(()=>{var P;T(),u.value&&((P=g.value)==null||P.handleScroll(u.value))})}),sn(i2,vn({scrollbarElement:a,wrapElement:u})),It(()=>{r.native||bt(()=>{T()})}),Xs(()=>T()),t({wrapRef:u,update:T,scrollTo:O,setScrollTop:w,setScrollLeft:M,handleScroll:C}),(P,R)=>(K(),_e("div",{ref_key:"scrollbarRef",ref:a,class:he(S(i).b())},[L("div",{ref_key:"wrapRef",ref:u,class:he(S(_)),style:Vt(S(v)),onScroll:C},[(K(),Me(Fn(P.tag),{ref_key:"resizeRef",ref:c,class:he(S(y)),style:Vt(P.viewStyle)},{default:z(()=>[We(P.$slots,"default")]),_:3},8,["class","style"]))],38),P.native?Ie("v-if",!0):(K(),Me(nV,{key:0,ref_key:"barRef",ref:g,height:h.value,width:d.value,always:P.always,"ratio-x":b.value,"ratio-y":m.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var lV=Et(aV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const gv=Pn(lV),mv=Symbol("popper"),s2=Symbol("popperContent"),uV=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],o2=Ft({role:{type:String,values:uV,default:"tooltip"}}),cV=Ne({name:"ElPopper",inheritAttrs:!1}),fV=Ne({...cV,props:o2,setup(e,{expose:t}){const n=e,r=X(),i=X(),s=X(),o=X(),a=B(()=>n.role),u={triggerRef:r,popperInstanceRef:i,contentRef:s,referenceRef:o,role:a};return t(u),sn(mv,u),(c,d)=>We(c.$slots,"default")}});var dV=Et(fV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const a2=Ft({arrowOffset:{type:Number,default:5}}),hV=Ne({name:"ElPopperArrow",inheritAttrs:!1}),pV=Ne({...hV,props:a2,setup(e,{expose:t}){const n=e,r=Qe("popper"),{arrowOffset:i,arrowRef:s,arrowStyle:o}=qe(s2,void 0);return Fe(()=>n.arrowOffset,a=>{i.value=a}),An(()=>{s.value=void 0}),t({arrowRef:s}),(a,u)=>(K(),_e("span",{ref_key:"arrowRef",ref:s,class:he(S(r).e("arrow")),style:Vt(S(o)),"data-popper-arrow":""},null,6))}});var gV=Et(pV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const mV="ElOnlyChild",vV=Ne({name:mV,setup(e,{slots:t,attrs:n}){var r;const i=qe(ZS),s=OH((r=i==null?void 0:i.setForwardRef)!=null?r:Cn);return()=>{var o;const a=(o=t.default)==null?void 0:o.call(t,n);if(!a||a.length>1)return null;const u=l2(a);return u?gn(Zi(u,n),[[s]]):null}}});function l2(e){if(!e)return null;const t=e;for(const n of t){if(yt(n))switch(n.type){case ar:continue;case Xa:case"svg":return _1(n);case it:return l2(n.children);default:return n}return _1(n)}return null}function _1(e){const t=Qe("only-child");return W("span",{class:t.e("content")},[e])}const u2=Ft({virtualRef:{type:st(Object)},virtualTriggering:Boolean,onMouseenter:{type:st(Function)},onMouseleave:{type:st(Function)},onClick:{type:st(Function)},onKeydown:{type:st(Function)},onFocus:{type:st(Function)},onBlur:{type:st(Function)},onContextmenu:{type:st(Function)},id:String,open:Boolean}),bV=Ne({name:"ElPopperTrigger",inheritAttrs:!1}),yV=Ne({...bV,props:u2,setup(e,{expose:t}){const n=e,{role:r,triggerRef:i}=qe(mv,void 0);SH(i);const s=B(()=>a.value?n.id:void 0),o=B(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),a=B(()=>{if(r&&r.value!=="tooltip")return r.value}),u=B(()=>a.value?`${n.open}`:void 0);let c;return It(()=>{Fe(()=>n.virtualRef,d=>{d&&(i.value=Ms(d))},{immediate:!0}),Fe(i,(d,h)=>{c==null||c(),c=void 0,La(d)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(g=>{var m;const b=n[g];b&&(d.addEventListener(g.slice(2).toLowerCase(),b),(m=h==null?void 0:h.removeEventListener)==null||m.call(h,g.slice(2).toLowerCase(),b))}),c=Fe([s,o,a,u],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((m,b)=>{ka(g[b])?d.removeAttribute(m):d.setAttribute(m,g[b])})},{immediate:!0})),La(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>h.removeAttribute(g))},{immediate:!0})}),An(()=>{c==null||c(),c=void 0}),t({triggerRef:i}),(d,h)=>d.virtualTriggering?Ie("v-if",!0):(K(),Me(S(vV),Mr({key:0},d.$attrs,{"aria-controls":S(s),"aria-describedby":S(o),"aria-expanded":S(u),"aria-haspopup":S(a)}),{default:z(()=>[We(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var _V=Et(yV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Cp="focus-trap.focus-after-trapped",Sp="focus-trap.focus-after-released",wV="focus-trap.focusout-prevented",w1={cancelable:!0,bubbles:!1},xV={cancelable:!0,bubbles:!1},x1="focusAfterTrapped",C1="focusAfterReleased",c2=Symbol("elFocusTrap"),vv=X(),Hd=X(0),bv=X(0);let Xc=0;const f2=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},S1=(e,t)=>{for(const n of e)if(!CV(n,t))return n},CV=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},SV=e=>{const t=f2(e),n=S1(t,e),r=S1(t.reverse(),e);return[n,r]},OV=e=>e instanceof HTMLInputElement&&"select"in e,xs=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),bv.value=window.performance.now(),e!==n&&OV(e)&&t&&e.select()}};function O1(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const EV=()=>{let e=[];return{push:r=>{const i=e[0];i&&r!==i&&i.pause(),e=O1(e,r),e.unshift(r)},remove:r=>{var i,s;e=O1(e,r),(s=(i=e[0])==null?void 0:i.resume)==null||s.call(i)}}},MV=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(xs(r,t),document.activeElement!==n)return},E1=EV(),TV=()=>Hd.value>bv.value,Jc=()=>{vv.value="pointer",Hd.value=window.performance.now()},M1=()=>{vv.value="keyboard",Hd.value=window.performance.now()},AV=()=>(It(()=>{Xc===0&&(document.addEventListener("mousedown",Jc),document.addEventListener("touchstart",Jc),document.addEventListener("keydown",M1)),Xc++}),An(()=>{Xc--,Xc<=0&&(document.removeEventListener("mousedown",Jc),document.removeEventListener("touchstart",Jc),document.removeEventListener("keydown",M1))}),{focusReason:vv,lastUserFocusTimestamp:Hd,lastAutomatedFocusTimestamp:bv}),Zc=e=>new CustomEvent(wV,{...xV,detail:e}),PV=Ne({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[x1,C1,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=X();let r,i;const{focusReason:s}=AV();_H(b=>{e.trapped&&!o.paused&&t("release-requested",b)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=b=>{if(!e.loop&&!e.trapped||o.paused)return;const{key:v,altKey:_,ctrlKey:y,metaKey:C,currentTarget:O,shiftKey:w}=b,{loop:M}=e,T=v===Vn.tab&&!_&&!y&&!C,P=document.activeElement;if(T&&P){const R=O,[F,D]=SV(R);if(F&&D){if(!w&&P===D){const A=Zc({focusReason:s.value});t("focusout-prevented",A),A.defaultPrevented||(b.preventDefault(),M&&xs(F,!0))}else if(w&&[F,R].includes(P)){const A=Zc({focusReason:s.value});t("focusout-prevented",A),A.defaultPrevented||(b.preventDefault(),M&&xs(D,!0))}}else if(P===R){const A=Zc({focusReason:s.value});t("focusout-prevented",A),A.defaultPrevented||b.preventDefault()}}};sn(c2,{focusTrapRef:n,onKeydown:a}),Fe(()=>e.focusTrapEl,b=>{b&&(n.value=b)},{immediate:!0}),Fe([n],([b],[v])=>{b&&(b.addEventListener("keydown",a),b.addEventListener("focusin",d),b.addEventListener("focusout",h)),v&&(v.removeEventListener("keydown",a),v.removeEventListener("focusin",d),v.removeEventListener("focusout",h))});const u=b=>{t(x1,b)},c=b=>t(C1,b),d=b=>{const v=S(n);if(!v)return;const _=b.target,y=b.relatedTarget,C=_&&v.contains(_);e.trapped||y&&v.contains(y)||(r=y),C&&t("focusin",b),!o.paused&&e.trapped&&(C?i=_:xs(i,!0))},h=b=>{const v=S(n);if(!(o.paused||!v))if(e.trapped){const _=b.relatedTarget;!ka(_)&&!v.contains(_)&&setTimeout(()=>{if(!o.paused&&e.trapped){const y=Zc({focusReason:s.value});t("focusout-prevented",y),y.defaultPrevented||xs(i,!0)}},0)}else{const _=b.target;_&&v.contains(_)||t("focusout",b)}};async function g(){await bt();const b=S(n);if(b){E1.push(o);const v=b.contains(document.activeElement)?r:document.activeElement;if(r=v,!b.contains(v)){const y=new Event(Cp,w1);b.addEventListener(Cp,u),b.dispatchEvent(y),y.defaultPrevented||bt(()=>{let C=e.focusStartEl;mt(C)||(xs(C),document.activeElement!==C&&(C="first")),C==="first"&&MV(f2(b),!0),(document.activeElement===v||C==="container")&&xs(b)})}}}function m(){const b=S(n);if(b){b.removeEventListener(Cp,u);const v=new CustomEvent(Sp,{...w1,detail:{focusReason:s.value}});b.addEventListener(Sp,c),b.dispatchEvent(v),!v.defaultPrevented&&(s.value=="keyboard"||!TV()||b.contains(document.activeElement))&&xs(r??document.body),b.removeEventListener(Sp,u),E1.remove(o)}}return It(()=>{e.trapped&&g(),Fe(()=>e.trapped,b=>{b?g():m()})}),An(()=>{e.trapped&&m()}),{onKeydown:a}}});function RV(e,t,n,r,i,s){return We(e.$slots,"default",{handleKeydown:e.onKeydown})}var yv=Et(PV,[["render",RV],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const kV=["fixed","absolute"],LV=Ft({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:st(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Nd,default:"bottom"},popperOptions:{type:st(Object),default:()=>({})},strategy:{type:String,values:kV,default:"absolute"}}),d2=Ft({...LV,id:String,style:{type:st([String,Array,Object])},className:{type:st([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:st([String,Array,Object])},popperStyle:{type:st([String,Array,Object])},referenceEl:{type:st(Object)},triggerTargetEl:{type:st(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),IV={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},FV=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:i}=e,s={placement:n,strategy:r,...i,modifiers:[...DV(e),...t]};return NV(s,i==null?void 0:i.modifiers),s},$V=e=>{if(tn)return Ms(e)};function DV(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function NV(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const BV=0,zV=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:i}=qe(mv,void 0),s=X(),o=X(),a=B(()=>({name:"eventListeners",enabled:!!e.visible})),u=B(()=>{var y;const C=S(s),O=(y=S(o))!=null?y:BV;return{name:"arrow",enabled:!h5(C),options:{element:C,padding:O}}}),c=B(()=>({onFirstUpdate:()=>{b()},...FV(e,[S(u),S(a)])})),d=B(()=>$V(e.referenceEl)||S(r)),{attributes:h,state:g,styles:m,update:b,forceUpdate:v,instanceRef:_}=vH(d,n,c);return Fe(_,y=>t.value=y),It(()=>{Fe(()=>{var y;return(y=S(d))==null?void 0:y.getBoundingClientRect()},()=>{b()})}),{attributes:h,arrowRef:s,contentRef:n,instanceRef:_,state:g,styles:m,role:i,forceUpdate:v,update:b}},HV=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:i}=fv(),s=Qe("popper"),o=B(()=>S(t).popper),a=X(e.zIndex||i()),u=B(()=>[s.b(),s.is("pure",e.pure),s.is(e.effect),e.popperClass]),c=B(()=>[{zIndex:S(a)},e.popperStyle||{},S(n).popper]),d=B(()=>r.value==="dialog"?"false":void 0),h=B(()=>S(n).arrow||{});return{ariaModal:d,arrowStyle:h,contentAttrs:o,contentClass:u,contentStyle:c,contentZIndex:a,updateZIndex:()=>{a.value=e.zIndex||i()}}},WV=(e,t)=>{const n=X(!1),r=X();return{focusStartRef:r,trapped:n,onFocusAfterReleased:c=>{var d;((d=c.detail)==null?void 0:d.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:c=>{e.visible&&!n.value&&(c.target&&(r.value=c.target),n.value=!0)},onFocusoutPrevented:c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},VV=Ne({name:"ElPopperContent"}),jV=Ne({...VV,props:d2,emits:IV,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:i,trapped:s,onFocusAfterReleased:o,onFocusAfterTrapped:a,onFocusInTrap:u,onFocusoutPrevented:c,onReleaseRequested:d}=WV(r,n),{attributes:h,arrowRef:g,contentRef:m,styles:b,instanceRef:v,role:_,update:y}=zV(r),{ariaModal:C,arrowStyle:O,contentAttrs:w,contentClass:M,contentStyle:T,updateZIndex:P}=HV(r,{styles:b,attributes:h,role:_}),R=qe(Wo,void 0),F=X();sn(s2,{arrowStyle:O,arrowRef:g,arrowOffset:F}),R&&(R.addInputId||R.removeInputId)&&sn(Wo,{...R,addInputId:Cn,removeInputId:Cn});let D;const V=(U=!0)=>{y(),U&&P()},A=()=>{V(!1),r.visible&&r.focusOnShow?s.value=!0:r.visible===!1&&(s.value=!1)};return It(()=>{Fe(()=>r.triggerTargetEl,(U,le)=>{D==null||D(),D=void 0;const ce=S(U||m.value),te=S(le||m.value);La(ce)&&(D=Fe([_,()=>r.ariaLabel,C,()=>r.id],Z=>{["role","aria-label","aria-modal","id"].forEach((ie,Q)=>{ka(Z[Q])?ce.removeAttribute(ie):ce.setAttribute(ie,Z[Q])})},{immediate:!0})),te!==ce&&La(te)&&["role","aria-label","aria-modal","id"].forEach(Z=>{te.removeAttribute(Z)})},{immediate:!0}),Fe(()=>r.visible,A,{immediate:!0})}),An(()=>{D==null||D(),D=void 0}),t({popperContentRef:m,popperInstanceRef:v,updatePopper:V,contentStyle:T}),(U,le)=>(K(),_e("div",Mr({ref_key:"contentRef",ref:m},S(w),{style:S(T),class:S(M),tabindex:"-1",onMouseenter:le[0]||(le[0]=ce=>U.$emit("mouseenter",ce)),onMouseleave:le[1]||(le[1]=ce=>U.$emit("mouseleave",ce))}),[W(S(yv),{trapped:S(s),"trap-on-focus-in":!0,"focus-trap-el":S(m),"focus-start-el":S(i),onFocusAfterTrapped:S(a),onFocusAfterReleased:S(o),onFocusin:S(u),onFocusoutPrevented:S(c),onReleaseRequested:S(d)},{default:z(()=>[We(U.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var UV=Et(jV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const KV=Pn(dV),_v=Symbol("elTooltip"),wv=Ft({...CH,...d2,appendTo:{type:st([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:st(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),h2=Ft({...u2,disabled:Boolean,trigger:{type:st([String,Array]),default:"hover"},triggerKeys:{type:st(Array),default:()=>[Vn.enter,Vn.space]}}),{useModelToggleProps:qV,useModelToggleEmits:YV,useModelToggle:GV}=IS("visible"),XV=Ft({...o2,...qV,...wv,...h2,...a2,showArrow:{type:Boolean,default:!0}}),JV=[...YV,"before-show","before-hide","show","hide","open","close"],ZV=(e,t)=>He(e)?e.includes(t):e===t,pa=(e,t,n)=>r=>{ZV(S(e),t)&&n(r)},QV=Ne({name:"ElTooltipTrigger"}),ej=Ne({...QV,props:h2,setup(e,{expose:t}){const n=e,r=Qe("tooltip"),{controlled:i,id:s,open:o,onOpen:a,onClose:u,onToggle:c}=qe(_v,void 0),d=X(null),h=()=>{if(S(i)||n.disabled)return!0},g=Nr(n,"trigger"),m=Ki(h,pa(g,"hover",a)),b=Ki(h,pa(g,"hover",u)),v=Ki(h,pa(g,"click",w=>{w.button===0&&c(w)})),_=Ki(h,pa(g,"focus",a)),y=Ki(h,pa(g,"focus",u)),C=Ki(h,pa(g,"contextmenu",w=>{w.preventDefault(),c(w)})),O=Ki(h,w=>{const{code:M}=w;n.triggerKeys.includes(M)&&(w.preventDefault(),c(w))});return t({triggerRef:d}),(w,M)=>(K(),Me(S(_V),{id:S(s),"virtual-ref":w.virtualRef,open:S(o),"virtual-triggering":w.virtualTriggering,class:he(S(r).e("trigger")),onBlur:S(y),onClick:S(v),onContextmenu:S(C),onFocus:S(_),onMouseenter:S(m),onMouseleave:S(b),onKeydown:S(O)},{default:z(()=>[We(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var tj=Et(ej,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const nj=Ne({name:"ElTooltipContent",inheritAttrs:!1}),rj=Ne({...nj,props:wv,setup(e,{expose:t}){const n=e,{selector:r}=XS(),i=Qe("tooltip"),s=X(null),o=X(!1),{controlled:a,id:u,open:c,trigger:d,onClose:h,onOpen:g,onShow:m,onHide:b,onBeforeShow:v,onBeforeHide:_}=qe(_v,void 0),y=B(()=>n.transition||`${i.namespace.value}-fade-in-linear`),C=B(()=>n.persistent);An(()=>{o.value=!0});const O=B(()=>S(C)?!0:S(c)),w=B(()=>n.disabled?!1:S(c)),M=B(()=>n.appendTo||r.value),T=B(()=>{var Z;return(Z=n.style)!=null?Z:{}}),P=B(()=>!S(c)),R=()=>{b()},F=()=>{if(S(a))return!0},D=Ki(F,()=>{n.enterable&&S(d)==="hover"&&g()}),V=Ki(F,()=>{S(d)==="hover"&&h()}),A=()=>{var Z,ie;(ie=(Z=s.value)==null?void 0:Z.updatePopper)==null||ie.call(Z),v==null||v()},U=()=>{_==null||_()},le=()=>{m(),te=Z$(B(()=>{var Z;return(Z=s.value)==null?void 0:Z.popperContentRef}),()=>{if(S(a))return;S(d)!=="hover"&&h()})},ce=()=>{n.virtualTriggering||h()};let te;return Fe(()=>S(c),Z=>{Z||te==null||te()},{flush:"post"}),Fe(()=>n.content,()=>{var Z,ie;(ie=(Z=s.value)==null?void 0:Z.updatePopper)==null||ie.call(Z)}),t({contentRef:s}),(Z,ie)=>(K(),Me(Lm,{disabled:!Z.teleported,to:S(M)},[W(Hr,{name:S(y),onAfterLeave:R,onBeforeEnter:A,onAfterEnter:le,onBeforeLeave:U},{default:z(()=>[S(O)?gn((K(),Me(S(UV),Mr({key:0,id:S(u),ref_key:"contentRef",ref:s},Z.$attrs,{"aria-label":Z.ariaLabel,"aria-hidden":S(P),"boundaries-padding":Z.boundariesPadding,"fallback-placements":Z.fallbackPlacements,"gpu-acceleration":Z.gpuAcceleration,offset:Z.offset,placement:Z.placement,"popper-options":Z.popperOptions,strategy:Z.strategy,effect:Z.effect,enterable:Z.enterable,pure:Z.pure,"popper-class":Z.popperClass,"popper-style":[Z.popperStyle,S(T)],"reference-el":Z.referenceEl,"trigger-target-el":Z.triggerTargetEl,visible:S(w),"z-index":Z.zIndex,onMouseenter:S(D),onMouseleave:S(V),onBlur:ce,onClose:S(h)}),{default:z(()=>[o.value?Ie("v-if",!0):We(Z.$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"])),[[Wr,S(w)]]):Ie("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var ij=Et(rj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const sj=["innerHTML"],oj={key:1},aj=Ne({name:"ElTooltip"}),lj=Ne({...aj,props:XV,emits:JV,setup(e,{expose:t,emit:n}){const r=e;xH();const i=xu(),s=X(),o=X(),a=()=>{var y;const C=S(s);C&&((y=C.popperInstanceRef)==null||y.update())},u=X(!1),c=X(),{show:d,hide:h,hasUpdateHandler:g}=GV({indicator:u,toggleReason:c}),{onOpen:m,onClose:b}=JS({showAfter:Nr(r,"showAfter"),hideAfter:Nr(r,"hideAfter"),autoClose:Nr(r,"autoClose"),open:d,close:h}),v=B(()=>Qi(r.visible)&&!g.value);sn(_v,{controlled:v,id:i,open:Fu(u),trigger:Nr(r,"trigger"),onOpen:y=>{m(y)},onClose:y=>{b(y)},onToggle:y=>{S(u)?b(y):m(y)},onShow:()=>{n("show",c.value)},onHide:()=>{n("hide",c.value)},onBeforeShow:()=>{n("before-show",c.value)},onBeforeHide:()=>{n("before-hide",c.value)},updatePopper:a}),Fe(()=>r.disabled,y=>{y&&u.value&&(u.value=!1)});const _=()=>{var y,C;const O=(C=(y=o.value)==null?void 0:y.contentRef)==null?void 0:C.popperContentRef;return O&&O.contains(document.activeElement)};return cC(()=>u.value&&h()),t({popperRef:s,contentRef:o,isFocusInsideContent:_,updatePopper:a,onOpen:m,onClose:b,hide:h}),(y,C)=>(K(),Me(S(KV),{ref_key:"popperRef",ref:s,role:y.role},{default:z(()=>[W(tj,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:z(()=>[y.$slots.default?We(y.$slots,"default",{key:0}):Ie("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),W(ij,{ref_key:"contentRef",ref:o,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":y.popperClass,"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:z(()=>[We(y.$slots,"content",{},()=>[y.rawContent?(K(),_e("span",{key:0,innerHTML:y.content},null,8,sj)):(K(),_e("span",oj,pt(y.content),1))]),y.showArrow?(K(),Me(S(gV),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):Ie("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 uj=Et(lj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Wd=Pn(uj),p2=Symbol("buttonGroupContextKey"),cj=(e,t)=>{Ho({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},B(()=>e.type==="text"));const n=qe(p2,void 0),r=dv("button"),{form:i}=el(),s=ns(B(()=>n==null?void 0:n.size)),o=zd(),a=X(),u=Ko(),c=B(()=>e.type||(n==null?void 0:n.type)||""),d=B(()=>{var b,v,_;return(_=(v=e.autoInsertSpace)!=null?v:(b=r.value)==null?void 0:b.autoInsertSpace)!=null?_:!1}),h=B(()=>e.tag==="button"?{ariaDisabled:o.value||e.loading,disabled:o.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),g=B(()=>{var b;const v=(b=u.default)==null?void 0:b.call(u);if(d.value&&(v==null?void 0:v.length)===1){const _=v[0];if((_==null?void 0:_.type)===Xa){const y=_.children;return/^\p{Unified_Ideograph}{2}$/u.test(y.trim())}}return!1});return{_disabled:o,_size:s,_type:c,_ref:a,_props:h,shouldAddSpace:g,handleClick:b=>{e.nativeType==="reset"&&(i==null||i.resetFields()),t("click",b)}}},fj=["default","primary","success","warning","info","danger","text",""],dj=["button","submit","reset"],Tg=Ft({size:Za,disabled:Boolean,type:{type:String,values:fj,default:""},icon:{type:ni},nativeType:{type:String,values:dj,default:"button"},loading:Boolean,loadingIcon:{type:ni,default:()=>tv},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:st([String,Object]),default:"button"}}),hj={click:e=>e instanceof MouseEvent};function $n(e,t){pj(e)&&(e="100%");var n=gj(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Qc(e){return Math.min(1,Math.max(0,e))}function pj(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function gj(e){return typeof e=="string"&&e.indexOf("%")!==-1}function g2(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ef(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Po(e){return e.length===1?"0"+e:String(e)}function mj(e,t,n){return{r:$n(e,255)*255,g:$n(t,255)*255,b:$n(n,255)*255}}function T1(e,t,n){e=$n(e,255),t=$n(t,255),n=$n(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),s=0,o=0,a=(r+i)/2;if(r===i)o=0,s=0;else{var u=r-i;switch(o=a>.5?u/(2-r-i):u/(r+i),r){case e:s=(t-n)/u+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function vj(e,t,n){var r,i,s;if(e=$n(e,360),t=$n(t,100),n=$n(n,100),t===0)i=n,s=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,a=2*n-o;r=Op(a,o,e+1/3),i=Op(a,o,e),s=Op(a,o,e-1/3)}return{r:r*255,g:i*255,b:s*255}}function A1(e,t,n){e=$n(e,255),t=$n(t,255),n=$n(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),s=0,o=r,a=r-i,u=r===0?0:a/r;if(r===i)s=0;else{switch(r){case e:s=(t-n)/a+(t>16,g:(e&65280)>>8,b:e&255}}var Ag={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 xj(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,s=null,o=!1,a=!1;return typeof e=="string"&&(e=Oj(e)),typeof e=="object"&&(Di(e.r)&&Di(e.g)&&Di(e.b)?(t=mj(e.r,e.g,e.b),o=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Di(e.h)&&Di(e.s)&&Di(e.v)?(r=ef(e.s),i=ef(e.v),t=bj(e.h,r,i),o=!0,a="hsv"):Di(e.h)&&Di(e.s)&&Di(e.l)&&(r=ef(e.s),s=ef(e.l),t=vj(e.h,r,s),o=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=g2(n),{ok:o,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Cj="[-\\+]?\\d+%?",Sj="[-\\+]?\\d*\\.\\d+%?",Ts="(?:".concat(Sj,")|(?:").concat(Cj,")"),Ep="[\\s|\\(]+(".concat(Ts,")[,|\\s]+(").concat(Ts,")[,|\\s]+(").concat(Ts,")\\s*\\)?"),Mp="[\\s|\\(]+(".concat(Ts,")[,|\\s]+(").concat(Ts,")[,|\\s]+(").concat(Ts,")[,|\\s]+(").concat(Ts,")\\s*\\)?"),Qr={CSS_UNIT:new RegExp(Ts),rgb:new RegExp("rgb"+Ep),rgba:new RegExp("rgba"+Mp),hsl:new RegExp("hsl"+Ep),hsla:new RegExp("hsla"+Mp),hsv:new RegExp("hsv"+Ep),hsva:new RegExp("hsva"+Mp),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 Oj(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Ag[e])e=Ag[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Qr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Qr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Qr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Qr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Qr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Qr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Qr.hex8.exec(e),n?{r:_r(n[1]),g:_r(n[2]),b:_r(n[3]),a:R1(n[4]),format:t?"name":"hex8"}:(n=Qr.hex6.exec(e),n?{r:_r(n[1]),g:_r(n[2]),b:_r(n[3]),format:t?"name":"hex"}:(n=Qr.hex4.exec(e),n?{r:_r(n[1]+n[1]),g:_r(n[2]+n[2]),b:_r(n[3]+n[3]),a:R1(n[4]+n[4]),format:t?"name":"hex8"}:(n=Qr.hex3.exec(e),n?{r:_r(n[1]+n[1]),g:_r(n[2]+n[2]),b:_r(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Di(e){return!!Qr.CSS_UNIT.exec(String(e))}var m2=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=wj(t)),this.originalInput=t;var i=xj(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,s=t.r/255,o=t.g/255,a=t.b/255;return s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),a<=.03928?i=a/12.92:i=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=g2(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=A1(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=A1(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=T1(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=T1(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),P1(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),yj(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round($n(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round($n(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+P1(this.r,this.g,this.b,!1),n=0,r=Object.entries(Ag);n=0,s=!n&&i&&(t.startsWith("hex")||t==="name");return s?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Qc(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Qc(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Qc(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Qc(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),s=n/100,o={r:(i.r-r.r)*s+r.r,g:(i.g-r.g)*s+r.g,b:(i.b-r.b)*s+r.b,a:(i.a-r.a)*s+r.a};return new e(o)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,s=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,s.push(new e(r));return s},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,s=n.v,o=[],a=1/t;t--;)o.push(new e({h:r,s:i,v:s})),s=(s+a)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],s=360/t,o=1;o{let r={};const i=e.color;if(i){const s=new m2(i),o=e.dark?s.tint(20).toString():ys(s,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?ys(s,90):s.tint(90).toString(),"text-color":i,"border-color":e.dark?ys(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":o,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":o}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?ys(s,90):s.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?ys(s,50):s.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?ys(s,80):s.tint(80).toString());else{const a=e.dark?ys(s,30):s.tint(30).toString(),u=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":i,"text-color":u,"border-color":i,"hover-bg-color":a,"hover-text-color":u,"hover-border-color":a,"active-bg-color":o,"active-border-color":o}),t.value){const c=e.dark?ys(s,50):s.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=c,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=c}}}return r})}const Mj=Ne({name:"ElButton"}),Tj=Ne({...Mj,props:Tg,emits:hj,setup(e,{expose:t,emit:n}){const r=e,i=Ej(r),s=Qe("button"),{_ref:o,_size:a,_type:u,_disabled:c,_props:d,shouldAddSpace:h,handleClick:g}=cj(r,n);return t({ref:o,size:a,type:u,disabled:c,shouldAddSpace:h}),(m,b)=>(K(),Me(Fn(m.tag),Mr({ref_key:"_ref",ref:o},S(d),{class:[S(s).b(),S(s).m(S(u)),S(s).m(S(a)),S(s).is("disabled",S(c)),S(s).is("loading",m.loading),S(s).is("plain",m.plain),S(s).is("round",m.round),S(s).is("circle",m.circle),S(s).is("text",m.text),S(s).is("link",m.link),S(s).is("has-bg",m.bg)],style:S(i),onClick:S(g)}),{default:z(()=>[m.loading?(K(),_e(it,{key:0},[m.$slots.loading?We(m.$slots,"loading",{key:0}):(K(),Me(S(wn),{key:1,class:he(S(s).is("loading"))},{default:z(()=>[(K(),Me(Fn(m.loadingIcon)))]),_:1},8,["class"]))],64)):m.icon||m.$slots.icon?(K(),Me(S(wn),{key:1},{default:z(()=>[m.icon?(K(),Me(Fn(m.icon),{key:0})):We(m.$slots,"icon",{key:1})]),_:3})):Ie("v-if",!0),m.$slots.default?(K(),_e("span",{key:2,class:he({[S(s).em("text","expand")]:S(h)})},[We(m.$slots,"default")],2)):Ie("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Aj=Et(Tj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Pj={size:Tg.size,type:Tg.type},Rj=Ne({name:"ElButtonGroup"}),kj=Ne({...Rj,props:Pj,setup(e){const t=e;sn(p2,vn({size:Nr(t,"size"),type:Nr(t,"type")}));const n=Qe("button");return(r,i)=>(K(),_e("div",{class:he(`${S(n).b("group")}`)},[We(r.$slots,"default")],2))}});var v2=Et(kj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const b2=Pn(Aj,{ButtonGroup:v2});Oi(v2);var Zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const Cs=new Map;let k1;tn&&(document.addEventListener("mousedown",e=>k1=e),document.addEventListener("mouseup",e=>{for(const t of Cs.values())for(const{documentHandler:n}of t)n(e,k1)}));function L1(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:La(t.arg)&&n.push(t.arg),function(r,i){const s=t.instance.popperRef,o=r.target,a=i==null?void 0:i.target,u=!t||!t.instance,c=!o||!a,d=e.contains(o)||e.contains(a),h=e===o,g=n.length&&n.some(b=>b==null?void 0:b.contains(o))||n.length&&n.includes(a),m=s&&(s.contains(o)||s.contains(a));u||c||d||h||g||m||t.value(r,i)}}const y2={beforeMount(e,t){Cs.has(e)||Cs.set(e,[]),Cs.get(e).push({documentHandler:L1(e,t),bindingFn:t.value})},updated(e,t){Cs.has(e)||Cs.set(e,[]);const n=Cs.get(e),r=n.findIndex(s=>s.bindingFn===t.oldValue),i={documentHandler:L1(e,t),bindingFn:t.value};r>=0?n.splice(r,1,i):n.push(i)},unmounted(e){Cs.delete(e)}};var I1=!1,Eo,Pg,Rg,Pf,Rf,_2,kf,kg,Lg,Ig,w2,Fg,$g,x2,C2;function rr(){if(!I1){I1=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(Fg=/\b(iPhone|iP[ao]d)/.exec(e),$g=/\b(iP[ao]d)/.exec(e),Ig=/Android/i.exec(e),x2=/FBAN\/\w+;/i.exec(e),C2=/Mobile/i.exec(e),w2=!!/Win64/.exec(e),t){Eo=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Eo&&document&&document.documentMode&&(Eo=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);_2=r?parseFloat(r[1])+4:Eo,Pg=t[2]?parseFloat(t[2]):NaN,Rg=t[3]?parseFloat(t[3]):NaN,Pf=t[4]?parseFloat(t[4]):NaN,Pf?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Rf=t&&t[1]?parseFloat(t[1]):NaN):Rf=NaN}else Eo=Pg=Rg=Rf=Pf=NaN;if(n){if(n[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);kf=i?parseFloat(i[1].replace("_",".")):!0}else kf=!1;kg=!!n[2],Lg=!!n[3]}else kf=kg=Lg=!1}}var Dg={ie:function(){return rr()||Eo},ieCompatibilityMode:function(){return rr()||_2>Eo},ie64:function(){return Dg.ie()&&w2},firefox:function(){return rr()||Pg},opera:function(){return rr()||Rg},webkit:function(){return rr()||Pf},safari:function(){return Dg.webkit()},chrome:function(){return rr()||Rf},windows:function(){return rr()||kg},osx:function(){return rr()||kf},linux:function(){return rr()||Lg},iphone:function(){return rr()||Fg},mobile:function(){return rr()||Fg||$g||Ig||C2},nativeApp:function(){return rr()||x2},android:function(){return rr()||Ig},ipad:function(){return rr()||$g}},Ij=Dg,tf=!!(typeof window<"u"&&window.document&&window.document.createElement),Fj={canUseDOM:tf,canUseWorkers:typeof Worker<"u",canUseEventListeners:tf&&!!(window.addEventListener||window.attachEvent),canUseViewport:tf&&!!window.screen,isInWorker:!tf},S2=Fj,O2;S2.canUseDOM&&(O2=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function $j(e,t){if(!S2.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r=typeof i[n]=="function"}return!r&&O2&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var Dj=$j,F1=10,$1=40,D1=800;function E2(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*F1,i=n*F1,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(e.deltaMode==1?(r*=$1,i*=$1):(r*=D1,i*=D1)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}E2.getEventType=function(){return Ij.firefox()?"DOMMouseScroll":Dj("wheel")?"wheel":"mousewheel"};var Nj=E2;/** +* 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 Bj=function(e,t){if(e&&e.addEventListener){const n=function(r){const i=Nj(r);t&&Reflect.apply(t,this,[r,i])};e.addEventListener("wheel",n,{passive:!0})}},zj={beforeMount(e,t){Bj(e,t.value)}},M2={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,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:Za,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},T2={[Ln]:e=>mt(e)||jn(e)||Qi(e),change:e=>mt(e)||jn(e)||Qi(e)},nl=Symbol("checkboxGroupContextKey"),Hj=({model:e,isChecked:t})=>{const n=qe(nl,void 0),r=B(()=>{var s,o;const a=(s=n==null?void 0:n.max)==null?void 0:s.value,u=(o=n==null?void 0:n.min)==null?void 0:o.value;return!sd(a)&&e.value.length>=a&&!t.value||!sd(u)&&e.value.length<=u&&t.value});return{isDisabled:zd(B(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},Wj=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:i,isLabeledByFormItem:s})=>{const o=qe(nl,void 0),{formItem:a}=el(),{emit:u}=kt();function c(b){var v,_;return b===e.trueLabel||b===!0?(v=e.trueLabel)!=null?v:!0:(_=e.falseLabel)!=null?_:!1}function d(b,v){u("change",c(b),v)}function h(b){if(n.value)return;const v=b.target;u("change",c(v.checked),b)}async function g(b){n.value||!r.value&&!i.value&&s.value&&(b.composedPath().some(y=>y.tagName==="LABEL")||(t.value=c([!1,e.falseLabel].includes(t.value)),await bt(),d(t.value,b)))}const m=B(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return Fe(()=>e.modelValue,()=>{m.value&&(a==null||a.validate("change").catch(b=>void 0))}),{handleChange:h,onClickRoot:g}},Vj=e=>{const t=X(!1),{emit:n}=kt(),r=qe(nl,void 0),i=B(()=>sd(r)===!1),s=X(!1);return{model:B({get(){var a,u;return i.value?(a=r==null?void 0:r.modelValue)==null?void 0:a.value:(u=e.modelValue)!=null?u:t.value},set(a){var u,c;i.value&&He(a)?(s.value=((u=r==null?void 0:r.max)==null?void 0:u.value)!==void 0&&a.length>(r==null?void 0:r.max.value),s.value===!1&&((c=r==null?void 0:r.changeEvent)==null||c.call(r,a))):(n(Ln,a),t.value=a)}}),isGroup:i,isLimitExceeded:s}},jj=(e,t,{model:n})=>{const r=qe(nl,void 0),i=X(!1),s=B(()=>{const c=n.value;return Qi(c)?c:He(c)?yt(e.label)?c.map(ut).some(d=>bg(d,e.label)):c.map(ut).includes(e.label):c!=null?c===e.trueLabel:!!c}),o=ns(B(()=>{var c;return(c=r==null?void 0:r.size)==null?void 0:c.value}),{prop:!0}),a=ns(B(()=>{var c;return(c=r==null?void 0:r.size)==null?void 0:c.value})),u=B(()=>!!(t.default||e.label));return{checkboxButtonSize:o,isChecked:s,isFocused:i,checkboxSize:a,hasOwnLabel:u}},Uj=(e,{model:t})=>{function n(){He(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},A2=(e,t)=>{const{formItem:n}=el(),{model:r,isGroup:i,isLimitExceeded:s}=Vj(e),{isFocused:o,isChecked:a,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d}=jj(e,t,{model:r}),{isDisabled:h}=Hj({model:r,isChecked:a}),{inputId:g,isLabeledByFormItem:m}=pv(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:i}),{handleChange:b,onClickRoot:v}=Wj(e,{model:r,isLimitExceeded:s,hasOwnLabel:d,isDisabled:h,isLabeledByFormItem:m});return Uj(e,{model:r}),{inputId:g,isLabeledByFormItem:m,isChecked:a,isDisabled:h,isFocused:o,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,model:r,handleChange:b,onClickRoot:v}},Kj=["tabindex","role","aria-checked"],qj=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],Yj=["id","aria-hidden","disabled","value","name","tabindex"],Gj=Ne({name:"ElCheckbox"}),Xj=Ne({...Gj,props:M2,emits:T2,setup(e){const t=e,n=Ko(),{inputId:r,isLabeledByFormItem:i,isChecked:s,isDisabled:o,isFocused:a,checkboxSize:u,hasOwnLabel:c,model:d,handleChange:h,onClickRoot:g}=A2(t,n),m=Qe("checkbox"),b=B(()=>[m.b(),m.m(u.value),m.is("disabled",o.value),m.is("bordered",t.border),m.is("checked",s.value)]),v=B(()=>[m.e("input"),m.is("disabled",o.value),m.is("checked",s.value),m.is("indeterminate",t.indeterminate),m.is("focus",a.value)]);return(_,y)=>(K(),Me(Fn(!S(c)&&S(i)?"span":"label"),{class:he(S(b)),"aria-controls":_.indeterminate?_.controls:null,onClick:S(g)},{default:z(()=>[L("span",{class:he(S(v)),tabindex:_.indeterminate?0:void 0,role:_.indeterminate?"checkbox":void 0,"aria-checked":_.indeterminate?"mixed":void 0},[_.trueLabel||_.falseLabel?gn((K(),_e("input",{key:0,id:S(r),"onUpdate:modelValue":y[0]||(y[0]=C=>Nt(d)?d.value=C:null),class:he(S(m).e("original")),type:"checkbox","aria-hidden":_.indeterminate?"true":"false",name:_.name,tabindex:_.tabindex,disabled:S(o),"true-value":_.trueLabel,"false-value":_.falseLabel,onChange:y[1]||(y[1]=(...C)=>S(h)&&S(h)(...C)),onFocus:y[2]||(y[2]=C=>a.value=!0),onBlur:y[3]||(y[3]=C=>a.value=!1)},null,42,qj)),[[Jf,S(d)]]):gn((K(),_e("input",{key:1,id:S(r),"onUpdate:modelValue":y[4]||(y[4]=C=>Nt(d)?d.value=C:null),class:he(S(m).e("original")),type:"checkbox","aria-hidden":_.indeterminate?"true":"false",disabled:S(o),value:_.label,name:_.name,tabindex:_.tabindex,onChange:y[5]||(y[5]=(...C)=>S(h)&&S(h)(...C)),onFocus:y[6]||(y[6]=C=>a.value=!0),onBlur:y[7]||(y[7]=C=>a.value=!1)},null,42,Yj)),[[Jf,S(d)]]),L("span",{class:he(S(m).e("inner"))},null,2)],10,Kj),S(c)?(K(),_e("span",{key:0,class:he(S(m).e("label"))},[We(_.$slots,"default"),_.$slots.default?Ie("v-if",!0):(K(),_e(it,{key:0},[re(pt(_.label),1)],64))],2)):Ie("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Jj=Et(Xj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const Zj=["name","tabindex","disabled","true-value","false-value"],Qj=["name","tabindex","disabled","value"],e9=Ne({name:"ElCheckboxButton"}),t9=Ne({...e9,props:M2,emits:T2,setup(e){const t=e,n=Ko(),{isFocused:r,isChecked:i,isDisabled:s,checkboxButtonSize:o,model:a,handleChange:u}=A2(t,n),c=qe(nl,void 0),d=Qe("checkbox"),h=B(()=>{var m,b,v,_;const y=(b=(m=c==null?void 0:c.fill)==null?void 0:m.value)!=null?b:"";return{backgroundColor:y,borderColor:y,color:(_=(v=c==null?void 0:c.textColor)==null?void 0:v.value)!=null?_:"",boxShadow:y?`-1px 0 0 0 ${y}`:void 0}}),g=B(()=>[d.b("button"),d.bm("button",o.value),d.is("disabled",s.value),d.is("checked",i.value),d.is("focus",r.value)]);return(m,b)=>(K(),_e("label",{class:he(S(g))},[m.trueLabel||m.falseLabel?gn((K(),_e("input",{key:0,"onUpdate:modelValue":b[0]||(b[0]=v=>Nt(a)?a.value=v:null),class:he(S(d).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:S(s),"true-value":m.trueLabel,"false-value":m.falseLabel,onChange:b[1]||(b[1]=(...v)=>S(u)&&S(u)(...v)),onFocus:b[2]||(b[2]=v=>r.value=!0),onBlur:b[3]||(b[3]=v=>r.value=!1)},null,42,Zj)),[[Jf,S(a)]]):gn((K(),_e("input",{key:1,"onUpdate:modelValue":b[4]||(b[4]=v=>Nt(a)?a.value=v:null),class:he(S(d).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:S(s),value:m.label,onChange:b[5]||(b[5]=(...v)=>S(u)&&S(u)(...v)),onFocus:b[6]||(b[6]=v=>r.value=!0),onBlur:b[7]||(b[7]=v=>r.value=!1)},null,42,Qj)),[[Jf,S(a)]]),m.$slots.default||m.label?(K(),_e("span",{key:2,class:he(S(d).be("button","inner")),style:Vt(S(i)?S(h):void 0)},[We(m.$slots,"default",{},()=>[re(pt(m.label),1)])],6)):Ie("v-if",!0)],2))}});var P2=Et(t9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const n9=Ft({modelValue:{type:st(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Za,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),r9={[Ln]:e=>He(e),change:e=>He(e)},i9=Ne({name:"ElCheckboxGroup"}),s9=Ne({...i9,props:n9,emits:r9,setup(e,{emit:t}){const n=e,r=Qe("checkbox"),{formItem:i}=el(),{inputId:s,isLabeledByFormItem:o}=pv(n,{formItemContext:i}),a=async c=>{t(Ln,c),await bt(),t("change",c)},u=B({get(){return n.modelValue},set(c){a(c)}});return sn(nl,{...b5(Gs(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:u,changeEvent:a}),Fe(()=>n.modelValue,()=>{n.validateEvent&&(i==null||i.validate("change").catch(c=>void 0))}),(c,d)=>{var h;return K(),Me(Fn(c.tag),{id:S(s),class:he(S(r).b("group")),role:"group","aria-label":S(o)?void 0:c.label||"checkbox-group","aria-labelledby":S(o)?(h=S(i))==null?void 0:h.labelId:void 0},{default:z(()=>[We(c.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var R2=Et(s9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Ba=Pn(Jj,{CheckboxButton:P2,CheckboxGroup:R2});Oi(P2);Oi(R2);const k2=Ft({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:Wu,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),o9={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},a9=Ne({name:"ElTag"}),l9=Ne({...a9,props:k2,emits:o9,setup(e,{emit:t}){const n=e,r=ns(),i=Qe("tag"),s=B(()=>{const{type:u,hit:c,effect:d,closable:h,round:g}=n;return[i.b(),i.is("closable",h),i.m(u),i.m(r.value),i.m(d),i.is("hit",c),i.is("round",g)]}),o=u=>{t("close",u)},a=u=>{t("click",u)};return(u,c)=>u.disableTransitions?(K(),_e("span",{key:0,class:he(S(s)),style:Vt({backgroundColor:u.color}),onClick:a},[L("span",{class:he(S(i).e("content"))},[We(u.$slots,"default")],2),u.closable?(K(),Me(S(wn),{key:0,class:he(S(i).e("close")),onClick:Cr(o,["stop"])},{default:z(()=>[W(S(yu))]),_:1},8,["class","onClick"])):Ie("v-if",!0)],6)):(K(),Me(Hr,{key:1,name:`${S(i).namespace.value}-zoom-in-center`,appear:""},{default:z(()=>[L("span",{class:he(S(s)),style:Vt({backgroundColor:u.color}),onClick:a},[L("span",{class:he(S(i).e("content"))},[We(u.$slots,"default")],2),u.closable?(K(),Me(S(wn),{key:0,class:he(S(i).e("close")),onClick:Cr(o,["stop"])},{default:z(()=>[W(S(yu))]),_:1},8,["class","onClick"])):Ie("v-if",!0)],6)]),_:3},8,["name"]))}});var u9=Et(l9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const c9=Pn(u9),L2=Symbol("rowContextKey"),f9=["start","center","end","space-around","space-between","space-evenly"],d9=["top","middle","bottom"],h9=Ft({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:f9,default:"start"},align:{type:String,values:d9,default:"top"}}),p9=Ne({name:"ElRow"}),g9=Ne({...p9,props:h9,setup(e){const t=e,n=Qe("row"),r=B(()=>t.gutter);sn(L2,{gutter:r});const i=B(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),s=B(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,t.align!=="top")]);return(o,a)=>(K(),Me(Fn(o.tag),{class:he(S(s)),style:Vt(S(i))},{default:z(()=>[We(o.$slots,"default")]),_:3},8,["class","style"]))}});var m9=Et(g9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const ci=Pn(m9),v9=Ft({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:st([Number,Object]),default:()=>Oo({})},sm:{type:st([Number,Object]),default:()=>Oo({})},md:{type:st([Number,Object]),default:()=>Oo({})},lg:{type:st([Number,Object]),default:()=>Oo({})},xl:{type:st([Number,Object]),default:()=>Oo({})}}),b9=Ne({name:"ElCol"}),y9=Ne({...b9,props:v9,setup(e){const t=e,{gutter:n}=qe(L2,{gutter:B(()=>0)}),r=Qe("col"),i=B(()=>{const o={};return n.value&&(o.paddingLeft=o.paddingRight=`${n.value/2}px`),o}),s=B(()=>{const o=[];return["span","offset","pull","push"].forEach(c=>{const d=t[c];jn(d)&&(c==="span"?o.push(r.b(`${t[c]}`)):d>0&&o.push(r.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{jn(t[c])?o.push(r.b(`${c}-${t[c]}`)):yt(t[c])&&Object.entries(t[c]).forEach(([d,h])=>{o.push(d!=="span"?r.b(`${c}-${d}-${h}`):r.b(`${c}-${h}`))})}),n.value&&o.push(r.is("guttered")),[r.b(),o]});return(o,a)=>(K(),Me(Fn(o.tag),{class:he(S(s)),style:Vt(S(i))},{default:z(()=>[We(o.$slots,"default")]),_:3},8,["class","style"]))}});var _9=Et(y9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const os=Pn(_9),w9=Ne({name:"ElCollapseTransition"}),x9=Ne({...w9,setup(e){const t=Qe("collapse-transition"),n={beforeEnter(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0},enter(r){r.dataset.oldOverflow=r.style.overflow,r.scrollHeight!==0?(r.style.maxHeight=`${r.scrollHeight}px`,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom):(r.style.maxHeight=0,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom),r.style.overflow="hidden"},afterEnter(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow},beforeLeave(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.dataset.oldOverflow=r.style.overflow,r.style.maxHeight=`${r.scrollHeight}px`,r.style.overflow="hidden"},leave(r){r.scrollHeight!==0&&(r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0)},afterLeave(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom}};return(r,i)=>(K(),Me(Hr,Mr({name:S(t).b()},gF(n)),{default:z(()=>[We(r.$slots,"default")]),_:3},16,["name"]))}});var Lf=Et(x9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);Lf.install=e=>{e.component(Lf.name,Lf)};const C9=Lf,S9=Ft({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:st([String,Array,Object])},zIndex:{type:st([String,Number])}}),O9={click:e=>e instanceof MouseEvent},E9="overlay";var M9=Ne({name:"ElOverlay",props:S9,emits:O9,setup(e,{slots:t,emit:n}){const r=Qe(E9),i=u=>{n("click",u)},{onClick:s,onMousedown:o,onMouseup:a}=YS(e.customMaskEvent?void 0:i);return()=>e.mask?W("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:s,onMousedown:o,onMouseup:a},[We(t,"default")],Ef.STYLE|Ef.CLASS|Ef.PROPS,["onClick","onMouseup","onMousedown"]):Ye("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[We(t,"default")])}});const I2=M9,F2=Symbol("dialogInjectionKey"),$2=Ft({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:ni},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),T9={close:()=>!0},A9=["aria-label"],P9=["id"],R9=Ne({name:"ElDialogContent"}),k9=Ne({...R9,props:$2,emits:T9,setup(e){const t=e,{t:n}=Xo(),{Close:r}=X6,{dialogRef:i,headerRef:s,bodyId:o,ns:a,style:u}=qe(F2),{focusTrapRef:c}=qe(c2),d=Q6(c,i),h=B(()=>t.draggable);return oz(i,s,h),(g,m)=>(K(),_e("div",{ref:S(d),class:he([S(a).b(),S(a).is("fullscreen",g.fullscreen),S(a).is("draggable",S(h)),S(a).is("align-center",g.alignCenter),{[S(a).m("center")]:g.center},g.customClass]),style:Vt(S(u)),tabindex:"-1"},[L("header",{ref_key:"headerRef",ref:s,class:he(S(a).e("header"))},[We(g.$slots,"header",{},()=>[L("span",{role:"heading",class:he(S(a).e("title"))},pt(g.title),3)]),g.showClose?(K(),_e("button",{key:0,"aria-label":S(n)("el.dialog.close"),class:he(S(a).e("headerbtn")),type:"button",onClick:m[0]||(m[0]=b=>g.$emit("close"))},[W(S(wn),{class:he(S(a).e("close"))},{default:z(()=>[(K(),Me(Fn(g.closeIcon||S(r))))]),_:1},8,["class"])],10,A9)):Ie("v-if",!0)],2),L("div",{id:S(o),class:he(S(a).e("body"))},[We(g.$slots,"default")],10,P9),g.$slots.footer?(K(),_e("footer",{key:0,class:he(S(a).e("footer"))},[We(g.$slots,"footer")],2)):Ie("v-if",!0)],6))}});var L9=Et(k9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const D2=Ft({...$2,appendToBody:{type:Boolean,default:!1},beforeClose:{type:st(Function)},destroyOnClose:{type:Boolean,default:!1},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:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),N2={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Ln]:e=>Qi(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},B2=(e,t)=>{const r=kt().emit,{nextZIndex:i}=fv();let s="";const o=xu(),a=xu(),u=X(!1),c=X(!1),d=X(!1),h=X(e.zIndex||i());let g,m;const b=dv("namespace",wg),v=B(()=>{const le={},ce=`--${b.value}-dialog`;return e.fullscreen||(e.top&&(le[`${ce}-margin-top`]=e.top),e.width&&(le[`${ce}-width`]=es(e.width))),le}),_=B(()=>e.alignCenter?{display:"flex"}:{});function y(){r("opened")}function C(){r("closed"),r(Ln,!1),e.destroyOnClose&&(d.value=!1)}function O(){r("close")}function w(){m==null||m(),g==null||g(),e.openDelay&&e.openDelay>0?{stop:g}=Qf(()=>R(),e.openDelay):R()}function M(){g==null||g(),m==null||m(),e.closeDelay&&e.closeDelay>0?{stop:m}=Qf(()=>F(),e.closeDelay):F()}function T(){function le(ce){ce||(c.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(le):M()}function P(){e.closeOnClickModal&&T()}function R(){tn&&(u.value=!0)}function F(){u.value=!1}function D(){r("openAutoFocus")}function V(){r("closeAutoFocus")}function A(le){var ce;((ce=le.detail)==null?void 0:ce.focusReason)==="pointer"&&le.preventDefault()}e.lockScroll&&hz(u);function U(){e.closeOnPressEscape&&T()}return Fe(()=>e.modelValue,le=>{le?(c.value=!1,w(),d.value=!0,h.value=e.zIndex?h.value++:i(),bt(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):u.value&&M()}),Fe(()=>e.fullscreen,le=>{t.value&&(le?(s=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=s)}),It(()=>{e.modelValue&&(u.value=!0,d.value=!0,w())}),{afterEnter:y,afterLeave:C,beforeLeave:O,handleClose:T,onModalClick:P,close:M,doClose:F,onOpenAutoFocus:D,onCloseAutoFocus:V,onCloseRequested:U,onFocusoutPrevented:A,titleId:o,bodyId:a,closed:c,style:v,overlayDialogStyle:_,rendered:d,visible:u,zIndex:h}},I9=["aria-label","aria-labelledby","aria-describedby"],F9=Ne({name:"ElDialog",inheritAttrs:!1}),$9=Ne({...F9,props:D2,emits:N2,setup(e,{expose:t}){const n=e,r=Ko();Ho({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)),Ho({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},B(()=>!!n.customClass));const i=Qe("dialog"),s=X(),o=X(),a=X(),{visible:u,titleId:c,bodyId:d,style:h,overlayDialogStyle:g,rendered:m,zIndex:b,afterEnter:v,afterLeave:_,beforeLeave:y,handleClose:C,onModalClick:O,onOpenAutoFocus:w,onCloseAutoFocus:M,onCloseRequested:T,onFocusoutPrevented:P}=B2(n,s);sn(F2,{dialogRef:s,headerRef:o,bodyId:d,ns:i,rendered:m,style:h});const R=YS(O),F=B(()=>n.draggable&&!n.fullscreen);return t({visible:u,dialogContentRef:a}),(D,V)=>(K(),Me(Lm,{to:"body",disabled:!D.appendToBody},[W(Hr,{name:"dialog-fade",onAfterEnter:S(v),onAfterLeave:S(_),onBeforeLeave:S(y),persisted:""},{default:z(()=>[gn(W(S(I2),{"custom-mask-event":"",mask:D.modal,"overlay-class":D.modalClass,"z-index":S(b)},{default:z(()=>[L("div",{role:"dialog","aria-modal":"true","aria-label":D.title||void 0,"aria-labelledby":D.title?void 0:S(c),"aria-describedby":S(d),class:he(`${S(i).namespace.value}-overlay-dialog`),style:Vt(S(g)),onClick:V[0]||(V[0]=(...A)=>S(R).onClick&&S(R).onClick(...A)),onMousedown:V[1]||(V[1]=(...A)=>S(R).onMousedown&&S(R).onMousedown(...A)),onMouseup:V[2]||(V[2]=(...A)=>S(R).onMouseup&&S(R).onMouseup(...A))},[W(S(yv),{loop:"",trapped:S(u),"focus-start-el":"container",onFocusAfterTrapped:S(w),onFocusAfterReleased:S(M),onFocusoutPrevented:S(P),onReleaseRequested:S(T)},{default:z(()=>[S(m)?(K(),Me(L9,Mr({key:0,ref_key:"dialogContentRef",ref:a},D.$attrs,{"custom-class":D.customClass,center:D.center,"align-center":D.alignCenter,"close-icon":D.closeIcon,draggable:S(F),fullscreen:D.fullscreen,"show-close":D.showClose,title:D.title,onClose:S(C)}),hC({header:z(()=>[D.$slots.title?We(D.$slots,"title",{key:1}):We(D.$slots,"header",{key:0,close:S(C),titleId:S(c),titleClass:S(i).e("title")})]),default:z(()=>[We(D.$slots,"default")]),_:2},[D.$slots.footer?{name:"footer",fn:z(()=>[We(D.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):Ie("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,I9)]),_:3},8,["mask","overlay-class","z-index"]),[[Wr,S(u)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var D9=Et($9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const N9=Pn(D9),B9=Ft({...D2,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}}),z9=N2,H9=Ne({name:"ElDrawer",components:{ElOverlay:I2,ElFocusTrap:yv,ElIcon:wn,Close:yu},inheritAttrs:!1,props:B9,emits:z9,setup(e,{slots:t}){Ho({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(()=>!!t.title)),Ho({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},B(()=>!!e.customClass));const n=X(),r=X(),i=Qe("drawer"),{t:s}=Xo(),o=B(()=>e.direction==="rtl"||e.direction==="ltr"),a=B(()=>es(e.size));return{...B2(e,n),drawerRef:n,focusStartRef:r,isHorizontal:o,drawerSize:a,ns:i,t:s}}}),W9=["aria-label","aria-labelledby","aria-describedby"],V9=["id"],j9=["aria-label"],U9=["id"];function K9(e,t,n,r,i,s){const o=Yt("close"),a=Yt("el-icon"),u=Yt("el-focus-trap"),c=Yt("el-overlay");return K(),Me(Lm,{to:"body",disabled:!e.appendToBody},[W(Hr,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:z(()=>[gn(W(c,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:z(()=>[W(u,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:z(()=>[L("div",Mr({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=Cr(()=>{},["stop"]))}),[L("span",{ref:"focusStartRef",class:he(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(K(),_e("header",{key:0,class:he(e.ns.e("header"))},[e.$slots.title?We(e.$slots,"title",{key:1},()=>[Ie(" DEPRECATED SLOT ")]):We(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?Ie("v-if",!0):(K(),_e("span",{key:0,id:e.titleId,role:"heading",class:he(e.ns.e("title"))},pt(e.title),11,V9))]),e.showClose?(K(),_e("button",{key:2,"aria-label":e.t("el.drawer.close"),class:he(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...d)=>e.handleClose&&e.handleClose(...d))},[W(a,{class:he(e.ns.e("close"))},{default:z(()=>[W(o)]),_:1},8,["class"])],10,j9)):Ie("v-if",!0)],2)):Ie("v-if",!0),e.rendered?(K(),_e("div",{key:1,id:e.bodyId,class:he(e.ns.e("body"))},[We(e.$slots,"default")],10,U9)):Ie("v-if",!0),e.$slots.footer?(K(),_e("div",{key:2,class:he(e.ns.e("footer"))},[We(e.$slots,"footer")],2)):Ie("v-if",!0)],16,W9)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Wr,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var q9=Et(H9,[["render",K9],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const Y9=Pn(q9);let G9=class{constructor(t,n){this.parent=t,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",r=>{let i=!1;switch(r.code){case Vn.down:{this.gotoSubIndex(this.subIndex+1),i=!0;break}case Vn.up:{this.gotoSubIndex(this.subIndex-1),i=!0;break}case Vn.tab:{Cf(t,"mouseleave");break}case Vn.enter:case Vn.space:{i=!0,r.currentTarget.click();break}}return i&&(r.preventDefault(),r.stopPropagation()),!1})})}},X9=class{constructor(t,n){this.domNode=t,this.submenu=null,this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new G9(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case Vn.down:{Cf(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case Vn.up:{Cf(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case Vn.tab:{Cf(t.currentTarget,"mouseleave");break}case Vn.enter:case Vn.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},J9=class{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(r=>{r.nodeType===1&&new X9(r,t)})}};const Z9=Ne({name:"ElMenuCollapseTransition",setup(){const e=Qe("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){To(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){$o(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),Fo(n,e.m("collapse"))?($o(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),To(n,e.m("collapse"))):(To(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),$o(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){To(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function Q9(e,t,n,r,i,s){return K(),Me(Hr,Mr({mode:"out-in"},e.listeners),{default:z(()=>[We(e.$slots,"default")]),_:3},16)}var eU=Et(Z9,[["render",Q9],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function z2(e,t){const n=B(()=>{let i=e.parent;const s=[t.value];for(;i.type.name!=="ElMenu";)i.props.index&&s.unshift(i.props.index),i=i.parent;return s});return{parentMenu:B(()=>{let i=e.parent;for(;i&&!["ElMenu","ElSubMenu"].includes(i.type.name);)i=i.parent;return i}),indexPath:n}}function tU(e){return B(()=>{const n=e.backgroundColor;return n?new m2(n).shade(20).toString():""})}const H2=(e,t)=>{const n=Qe("menu");return B(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":tU(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},nU=Ft({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:ni},expandOpenIcon:{type:ni},collapseCloseIcon:{type:ni},collapseOpenIcon:{type:ni}}),nf="ElSubMenu";var xv=Ne({name:nf,props:nU,setup(e,{slots:t,expose:n}){Ho({from:"popper-append-to-body",replacement:"teleported",scope:nf,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},B(()=>e.popperAppendToBody!==void 0));const r=kt(),{indexPath:i,parentMenu:s}=z2(r,B(()=>e.index)),o=Qe("menu"),a=Qe("sub-menu"),u=qe("rootMenu");u||Us(nf,"can not inject root menu");const c=qe(`subMenu:${s.value.uid}`);c||Us(nf,"can not inject sub menu");const d=X({}),h=X({});let g;const m=X(!1),b=X(),v=X(null),_=B(()=>V.value==="horizontal"&&C.value?"bottom-start":"right-start"),y=B(()=>V.value==="horizontal"&&C.value||V.value==="vertical"&&!u.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?T.value?e.expandOpenIcon:e.expandCloseIcon:Zm:e.collapseCloseIcon&&e.collapseOpenIcon?T.value?e.collapseOpenIcon:e.collapseCloseIcon:Qm),C=B(()=>c.level===0),O=B(()=>{var ye;const Ee=(ye=e.teleported)!=null?ye:e.popperAppendToBody;return Ee===void 0?C.value:Ee}),w=B(()=>u.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),M=B(()=>V.value==="horizontal"&&C.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),T=B(()=>u.openedMenus.includes(e.index)),P=B(()=>{let ye=!1;return Object.values(d.value).forEach(Ee=>{Ee.active&&(ye=!0)}),Object.values(h.value).forEach(Ee=>{Ee.active&&(ye=!0)}),ye}),R=B(()=>u.props.backgroundColor||""),F=B(()=>u.props.activeTextColor||""),D=B(()=>u.props.textColor||""),V=B(()=>u.props.mode),A=vn({index:e.index,indexPath:i,active:P}),U=H2(u.props,c.level+1),le=B(()=>V.value!=="horizontal"?{color:D.value}:{borderBottomColor:P.value?u.props.activeTextColor?F.value:"":"transparent",color:P.value?F.value:D.value}),ce=()=>{var ye,Ee,Le;return(Le=(Ee=(ye=v.value)==null?void 0:ye.popperRef)==null?void 0:Ee.popperInstanceRef)==null?void 0:Le.destroy()},te=ye=>{ye||ce()},Z=()=>{u.props.menuTrigger==="hover"&&u.props.mode==="horizontal"||u.props.collapse&&u.props.mode==="vertical"||e.disabled||u.handleSubMenuClick({index:e.index,indexPath:i.value,active:P.value})},ie=(ye,Ee=e.showTimeout)=>{var Le;ye.type!=="focus"&&(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||e.disabled||(c.mouseInChild.value=!0,g==null||g(),{stop:g}=Qf(()=>{u.openMenu(e.index,i.value)},Ee),O.value&&((Le=s.value.vnode.el)==null||Le.dispatchEvent(new MouseEvent("mouseenter")))))},Q=(ye=!1)=>{var Ee,Le;u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||(g==null||g(),c.mouseInChild.value=!1,{stop:g}=Qf(()=>!m.value&&u.closeMenu(e.index,i.value),e.hideTimeout),O.value&&ye&&((Ee=r.parent)==null?void 0:Ee.type.name)==="ElSubMenu"&&((Le=c.handleMouseleave)==null||Le.call(c,!0)))};Fe(()=>u.props.collapse,ye=>te(!!ye));{const ye=Le=>{h.value[Le.index]=Le},Ee=Le=>{delete h.value[Le.index]};sn(`subMenu:${r.uid}`,{addSubMenu:ye,removeSubMenu:Ee,handleMouseleave:Q,mouseInChild:m,level:c.level+1})}return n({opened:T}),It(()=>{u.addSubMenu(A),c.addSubMenu(A)}),An(()=>{c.removeSubMenu(A),u.removeSubMenu(A)}),()=>{var ye;const Ee=[(ye=t.title)==null?void 0:ye.call(t),Ye(wn,{class:a.e("icon-arrow"),style:{transform:T.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&u.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>mt(y.value)?Ye(r.appContext.components[y.value]):Ye(y.value)})],Le=u.isMenuPopup?Ye(Wd,{ref:v,visible:T.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:_.value,teleported:O.value,fallbackPlacements:M.value,transition:w.value,gpuAcceleration:!1},{content:()=>{var ue;return Ye("div",{class:[o.m(V.value),o.m("popup-container"),e.popperClass],onMouseenter:Ze=>ie(Ze,100),onMouseleave:()=>Q(!0),onFocus:Ze=>ie(Ze,100)},[Ye("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${_.value}`)],style:U.value},[(ue=t.default)==null?void 0:ue.call(t)])])},default:()=>Ye("div",{class:a.e("title"),style:[le.value,{backgroundColor:R.value}],onClick:Z},Ee)}):Ye(it,{},[Ye("div",{class:a.e("title"),style:[le.value,{backgroundColor:R.value}],ref:b,onClick:Z},Ee),Ye(C9,{},{default:()=>{var ue;return gn(Ye("ul",{role:"menu",class:[o.b(),o.m("inline")],style:U.value},[(ue=t.default)==null?void 0:ue.call(t)]),[[Wr,T.value]])}})]);return Ye("li",{class:[a.b(),a.is("active",P.value),a.is("opened",T.value),a.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:T.value,onMouseenter:ie,onMouseleave:()=>Q(!0),onFocus:ie},[Le])}}});const rU=Ft({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:st(Array),default:()=>Oo([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),Tp=e=>Array.isArray(e)&&e.every(t=>mt(t)),iU={close:(e,t)=>mt(e)&&Tp(t),open:(e,t)=>mt(e)&&Tp(t),select:(e,t,n,r)=>mt(e)&&Tp(t)&&yt(n)&&(r===void 0||r instanceof Promise)};var sU=Ne({name:"ElMenu",props:rU,emits:iU,setup(e,{emit:t,slots:n,expose:r}){const i=kt(),s=i.appContext.config.globalProperties.$router,o=X(),a=Qe("menu"),u=Qe("sub-menu"),c=X(-1),d=X(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),h=X(e.defaultActive),g=X({}),m=X({}),b=B(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),v=()=>{const V=h.value&&g.value[h.value];if(!V||e.mode==="horizontal"||e.collapse)return;V.indexPath.forEach(U=>{const le=m.value[U];le&&_(U,le.indexPath)})},_=(V,A)=>{d.value.includes(V)||(e.uniqueOpened&&(d.value=d.value.filter(U=>A.includes(U))),d.value.push(V),t("open",V,A))},y=V=>{const A=d.value.indexOf(V);A!==-1&&d.value.splice(A,1)},C=(V,A)=>{y(V),t("close",V,A)},O=({index:V,indexPath:A})=>{d.value.includes(V)?C(V,A):_(V,A)},w=V=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:A,indexPath:U}=V;if(!(ka(A)||ka(U)))if(e.router&&s){const le=V.route||A,ce=s.push(le).then(te=>(te||(h.value=A),te));t("select",A,U,{index:A,indexPath:U,route:le},ce)}else h.value=A,t("select",A,U,{index:A,indexPath:U})},M=V=>{const A=g.value,U=A[V]||h.value&&A[h.value]||A[e.defaultActive];U?h.value=U.index:h.value=V},T=()=>{var V,A;if(!o.value)return-1;const U=Array.from((A=(V=o.value)==null?void 0:V.childNodes)!=null?A:[]).filter(ye=>ye.nodeName!=="#comment"&&(ye.nodeName!=="#text"||ye.nodeValue)),le=64,ce=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),te=Number.parseInt(getComputedStyle(o.value).paddingRight,10),Z=o.value.clientWidth-ce-te;let ie=0,Q=0;return U.forEach((ye,Ee)=>{ie+=ye.offsetWidth||0,ie<=Z-le&&(Q=Ee+1)}),Q===U.length?-1:Q},P=(V,A=33.34)=>{let U;return()=>{U&&clearTimeout(U),U=setTimeout(()=>{V()},A)}};let R=!0;const F=()=>{const V=()=>{c.value=-1,bt(()=>{c.value=T()})};R?V():P(V)(),R=!1};Fe(()=>e.defaultActive,V=>{g.value[V]||(h.value=""),M(V)}),Fe(()=>e.collapse,V=>{V&&(d.value=[])}),Fe(g.value,v);let D;Ns(()=>{e.mode==="horizontal"&&e.ellipsis?D=js(o,F).stop:D==null||D()});{const V=ce=>{m.value[ce.index]=ce},A=ce=>{delete m.value[ce.index]};sn("rootMenu",vn({props:e,openedMenus:d,items:g,subMenus:m,activeIndex:h,isMenuPopup:b,addMenuItem:ce=>{g.value[ce.index]=ce},removeMenuItem:ce=>{delete g.value[ce.index]},addSubMenu:V,removeSubMenu:A,openMenu:_,closeMenu:C,handleMenuItemClick:w,handleSubMenuClick:O})),sn(`subMenu:${i.uid}`,{addSubMenu:V,removeSubMenu:A,mouseInChild:X(!1),level:0})}return It(()=>{e.mode==="horizontal"&&new J9(i.vnode.el,a.namespace.value)}),r({open:A=>{const{indexPath:U}=m.value[A];U.forEach(le=>_(le,U))},close:y,handleResize:F}),()=>{var V,A;let U=(A=(V=n.default)==null?void 0:V.call(n))!=null?A:[];const le=[];if(e.mode==="horizontal"&&o.value){const Z=Mf(U),ie=c.value===-1?Z:Z.slice(0,c.value),Q=c.value===-1?[]:Z.slice(c.value);Q!=null&&Q.length&&e.ellipsis&&(U=ie,le.push(Ye(xv,{index:"sub-menu-more",class:u.e("hide-arrow")},{title:()=>Ye(wn,{class:u.e("icon-more")},{default:()=>Ye(k6)}),default:()=>Q})))}const ce=H2(e,0),te=Ye("ul",{key:String(e.collapse),role:"menubar",ref:o,style:ce.value,class:{[a.b()]:!0,[a.m(e.mode)]:!0,[a.m("collapse")]:e.collapse}},[...U,...le]);return e.collapseTransition&&e.mode==="vertical"?Ye(eU,()=>te):te}}});const oU=Ft({index:{type:st([String,null]),default:null},route:{type:st([String,Object])},disabled:Boolean}),aU={click:e=>mt(e.index)&&Array.isArray(e.indexPath)},Ap="ElMenuItem",lU=Ne({name:Ap,components:{ElTooltip:Wd},props:oU,emits:aU,setup(e,{emit:t}){const n=kt(),r=qe("rootMenu"),i=Qe("menu"),s=Qe("menu-item");r||Us(Ap,"can not inject root menu");const{parentMenu:o,indexPath:a}=z2(n,Nr(e,"index")),u=qe(`subMenu:${o.value.uid}`);u||Us(Ap,"can not inject sub menu");const c=B(()=>e.index===r.activeIndex),d=vn({index:e.index,indexPath:a,active:c}),h=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:a.value,route:e.route}),t("click",d))};return It(()=>{u.addSubMenu(d),r.addMenuItem(d)}),An(()=>{u.removeSubMenu(d),r.removeMenuItem(d)}),{parentMenu:o,rootMenu:r,active:c,nsMenu:i,nsMenuItem:s,handleClick:h}}});function uU(e,t,n,r,i,s){const o=Yt("el-tooltip");return K(),_e("li",{class:he([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...a)=>e.handleClick&&e.handleClick(...a))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(K(),Me(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:z(()=>[We(e.$slots,"title")]),default:z(()=>[L("div",{class:he(e.nsMenu.be("tooltip","trigger"))},[We(e.$slots,"default")],2)]),_:3},8,["effect"])):(K(),_e(it,{key:1},[We(e.$slots,"default"),We(e.$slots,"title")],64))],2)}var W2=Et(lU,[["render",uU],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const cU={title:String},fU="ElMenuItemGroup",dU=Ne({name:fU,props:cU,setup(){return{ns:Qe("menu-item-group")}}});function hU(e,t,n,r,i,s){return K(),_e("li",{class:he(e.ns.b())},[L("div",{class:he(e.ns.e("title"))},[e.$slots.title?We(e.$slots,"title",{key:1}):(K(),_e(it,{key:0},[re(pt(e.title),1)],64))],2),L("ul",null,[We(e.$slots,"default")])],2)}var V2=Et(dU,[["render",hU],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const pU=Pn(sU,{MenuItem:W2,MenuItemGroup:V2,SubMenu:xv}),gU=Oi(W2);Oi(V2);const mU=Oi(xv),j2=Symbol("ElSelectGroup"),Vd=Symbol("ElSelect");function vU(e,t){const n=qe(Vd),r=qe(j2,{disabled:!1}),i=B(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),s=B(()=>n.props.multiple?h(n.props.modelValue,e.value):g(e.value,n.props.modelValue)),o=B(()=>{if(n.props.multiple){const v=n.props.modelValue||[];return!s.value&&v.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=B(()=>e.label||(i.value?"":e.value)),u=B(()=>e.value||e.label||""),c=B(()=>e.disabled||t.groupDisabled||o.value),d=kt(),h=(v=[],_)=>{if(i.value){const y=n.props.valueKey;return v&&v.some(C=>ut(Hn(C,y))===Hn(_,y))}else return v&&v.includes(_)},g=(v,_)=>{if(i.value){const{valueKey:y}=n.props;return Hn(v,y)===Hn(_,y)}else return v===_},m=()=>{!e.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(d.proxy))};Fe(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),Fe(()=>e.value,(v,_)=>{const{remote:y,valueKey:C}=n.props;if(Object.is(v,_)||(n.onOptionDestroy(_,d.proxy),n.onOptionCreate(d.proxy)),!e.created&&!y){if(C&&typeof v=="object"&&typeof _=="object"&&v[C]===_[C])return;n.setSelected()}}),Fe(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:b}=ut(n);return Fe(b,v=>{const{query:_}=S(v),y=new RegExp(w5(_),"i");t.visible=y.test(a.value)||e.created,t.visible||n.filteredOptionsCount--},{immediate:!0}),{select:n,currentLabel:a,currentValue:u,itemSelected:s,isDisabled:c,hoverItem:m}}const bU=Ne({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=Qe("select"),n=vn({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:r,itemSelected:i,isDisabled:s,select:o,hoverItem:a}=vU(e,n),{visible:u,hover:c}=Gs(n),d=kt().proxy;o.onOptionCreate(d),An(()=>{const g=d.value,{selected:m}=o,v=(o.props.multiple?m:[m]).some(_=>_.value===d.value);bt(()=>{o.cachedOptions.get(g)===d&&!v&&o.cachedOptions.delete(g)}),o.onOptionDestroy(g,d)});function h(){e.disabled!==!0&&n.groupDisabled!==!0&&o.handleOptionSelect(d,!0)}return{ns:t,currentLabel:r,itemSelected:i,isDisabled:s,select:o,hoverItem:a,visible:u,hover:c,selectOptionClick:h,states:n}}});function yU(e,t,n,r,i,s){return gn((K(),_e("li",{class:he([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...o)=>e.hoverItem&&e.hoverItem(...o)),onClick:t[1]||(t[1]=Cr((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[We(e.$slots,"default",{},()=>[L("span",null,pt(e.currentLabel),1)])],34)),[[Wr,e.visible]])}var Cv=Et(bU,[["render",yU],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const _U=Ne({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=qe(Vd),t=Qe("select"),n=B(()=>e.props.popperClass),r=B(()=>e.props.multiple),i=B(()=>e.props.fitInputWidth),s=X("");function o(){var a;s.value=`${(a=e.selectWrapper)==null?void 0:a.offsetWidth}px`}return It(()=>{o(),js(e.selectWrapper,o)}),{ns:t,minWidth:s,popperClass:n,isMultiple:r,isFitInputWidth:i}}});function wU(e,t,n,r,i,s){return K(),_e("div",{class:he([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Vt({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[We(e.$slots,"default")],6)}var xU=Et(_U,[["render",wU],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function CU(e){const{t}=Xo();return vn({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1,mouseEnter:!1})}const SU=(e,t,n)=>{const{t:r}=Xo(),i=Qe("select");Ho({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},B(()=>e.suffixTransition===!1));const s=X(null),o=X(null),a=X(null),u=X(null),c=X(null),d=X(null),h=X(null),g=X(-1),m=$s({query:""}),b=$s(""),v=X([]);let _=0;const{form:y,formItem:C}=el(),O=B(()=>!e.filterable||e.multiple||!t.visible),w=B(()=>e.disabled||(y==null?void 0:y.disabled)),M=B(()=>{const ee=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!w.value&&t.inputHovering&&ee}),T=B(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),P=B(()=>i.is("reverse",T.value&&t.visible&&e.suffixTransition)),R=B(()=>e.remote?300:0),F=B(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||r("el.select.noMatch"):t.options.size===0?e.noDataText||r("el.select.noData"):null),D=B(()=>{const ee=Array.from(t.options.values()),we=[];return v.value.forEach(Ge=>{const ft=ee.findIndex(nn=>nn.currentLabel===Ge);ft>-1&&we.push(ee[ft])}),we.length?we:ee}),V=B(()=>Array.from(t.cachedOptions.values())),A=B(()=>{const ee=D.value.filter(we=>!we.created).some(we=>we.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!ee}),U=ns(),le=B(()=>["small"].includes(U.value)?"small":"default"),ce=B({get(){return t.visible&&F.value!==!1},set(ee){t.visible=ee}});Fe([()=>w.value,()=>U.value,()=>y==null?void 0:y.size],()=>{bt(()=>{te()})}),Fe(()=>e.placeholder,ee=>{t.cachedPlaceHolder=t.currentPlaceholder=ee,e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(t.currentPlaceholder="")}),Fe(()=>e.modelValue,(ee,we)=>{e.multiple&&(te(),ee&&ee.length>0||o.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",Z(t.query))),ye(),e.filterable&&!e.multiple&&(t.inputLength=20),!bg(ee,we)&&e.validateEvent&&(C==null||C.validate("change").catch(Ge=>void 0))},{flush:"post",deep:!0}),Fe(()=>t.visible,ee=>{var we,Ge,ft,nn,an;ee?((Ge=(we=u.value)==null?void 0:we.updatePopper)==null||Ge.call(we),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(nn=(ft=a.value)==null?void 0:ft.focus)==null||nn.call(ft),e.multiple?(an=o.value)==null||an.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),Z(t.query),!e.multiple&&!e.remote&&(m.value.query="",yl(m),yl(b)))):(e.filterable&&(Xe(e.filterMethod)&&e.filterMethod(""),Xe(e.remoteMethod)&&e.remoteMethod("")),o.value&&o.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,Le(),bt(()=>{o.value&&o.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",ee)}),Fe(()=>t.options.entries(),()=>{var ee,we,Ge;if(!tn)return;(we=(ee=u.value)==null?void 0:ee.updatePopper)==null||we.call(ee),e.multiple&&te();const ft=((Ge=d.value)==null?void 0:Ge.querySelectorAll("input"))||[];Array.from(ft).includes(document.activeElement)||ye(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&Q()},{flush:"post"}),Fe(()=>t.hoverIndex,ee=>{jn(ee)&&ee>-1?g.value=D.value[ee]||{}:g.value={},D.value.forEach(we=>{we.hover=g.value===we})});const te=()=>{bt(()=>{var ee,we;if(!s.value)return;const Ge=s.value.$el.querySelector("input");_=_||(Ge.clientHeight>0?Ge.clientHeight+2:0);const ft=c.value,nn=tz(U.value||(y==null?void 0:y.size)),an=U.value||nn===_||_<=0?nn:_;!(Ge.offsetParent===null)&&(Ge.style.height=`${(t.selected.length===0?an:Math.max(ft?ft.clientHeight+(ft.clientHeight>an?6:0):0,an))-2}px`),t.tagInMultiLine=Number.parseFloat(Ge.style.height)>=an,t.visible&&F.value!==!1&&((we=(ee=u.value)==null?void 0:ee.updatePopper)==null||we.call(ee))})},Z=async ee=>{if(!(t.previousQuery===ee||t.isOnComposition)){if(t.previousQuery===null&&(Xe(e.filterMethod)||Xe(e.remoteMethod))){t.previousQuery=ee;return}t.previousQuery=ee,bt(()=>{var we,Ge;t.visible&&((Ge=(we=u.value)==null?void 0:we.updatePopper)==null||Ge.call(we))}),t.hoverIndex=-1,e.multiple&&e.filterable&&bt(()=>{const we=o.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,we):we,ie(),te()}),e.remote&&Xe(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(ee)):Xe(e.filterMethod)?(e.filterMethod(ee),yl(b)):(t.filteredOptionsCount=t.optionsCount,m.value.query=ee,yl(m),yl(b)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await bt(),Q())}},ie=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=o.value.value?"":t.cachedPlaceHolder)},Q=()=>{const ee=D.value.filter(ft=>ft.visible&&!ft.disabled&&!ft.states.groupDisabled),we=ee.find(ft=>ft.created),Ge=ee[0];t.hoverIndex=H(D.value,we||Ge)},ye=()=>{var ee;if(e.multiple)t.selectedLabel="";else{const Ge=Ee(e.modelValue);(ee=Ge.props)!=null&&ee.created?(t.createdLabel=Ge.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=Ge.currentLabel,t.selected=Ge,e.filterable&&(t.query=t.selectedLabel);return}const we=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(Ge=>{we.push(Ee(Ge))}),t.selected=we,bt(()=>{te()})},Ee=ee=>{let we;const Ge=bf(ee).toLowerCase()==="object",ft=bf(ee).toLowerCase()==="null",nn=bf(ee).toLowerCase()==="undefined";for(let Kr=t.cachedOptions.size-1;Kr>=0;Kr--){const Zn=V.value[Kr];if(Ge?Hn(Zn.value,e.valueKey)===Hn(ee,e.valueKey):Zn.value===ee){we={value:ee,currentLabel:Zn.currentLabel,isDisabled:Zn.isDisabled};break}}if(we)return we;const an=Ge?ee.label:!ft&&!nn?ee:"",hr={value:ee,currentLabel:an};return e.multiple&&(hr.hitState=!1),hr},Le=()=>{setTimeout(()=>{const ee=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(we=>D.value.findIndex(Ge=>Hn(Ge,ee)===Hn(we,ee)))):t.hoverIndex=-1:t.hoverIndex=D.value.findIndex(we=>ke(we)===ke(t.selected))},300)},ue=()=>{var ee,we;Ze(),(we=(ee=u.value)==null?void 0:ee.updatePopper)==null||we.call(ee),e.multiple&&te()},Ze=()=>{var ee;t.inputWidth=(ee=s.value)==null?void 0:ee.$el.offsetWidth},$e=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,Z(t.query))},Je=Ra(()=>{$e()},R.value),Y=Ra(ee=>{Z(ee.target.value)},R.value),oe=ee=>{bg(e.modelValue,ee)||n.emit(PS,ee)},de=ee=>{if(ee.code!==Vn.delete){if(ee.target.value.length<=0&&!Se()){const we=e.modelValue.slice();we.pop(),n.emit(Ln,we),oe(we)}ee.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}},Oe=(ee,we)=>{const Ge=t.selected.indexOf(we);if(Ge>-1&&!w.value){const ft=e.modelValue.slice();ft.splice(Ge,1),n.emit(Ln,ft),oe(ft),n.emit("remove-tag",we.value)}ee.stopPropagation()},Ve=ee=>{ee.stopPropagation();const we=e.multiple?[]:"";if(!mt(we))for(const Ge of t.selected)Ge.isDisabled&&we.push(Ge.value);n.emit(Ln,we),oe(we),t.hoverIndex=-1,t.visible=!1,n.emit("clear")},$=(ee,we)=>{var Ge;if(e.multiple){const ft=(e.modelValue||[]).slice(),nn=H(ft,ee.value);nn>-1?ft.splice(nn,1):(e.multipleLimit<=0||ft.length{se(ee)})},H=(ee=[],we)=>{if(!yt(we))return ee.indexOf(we);const Ge=e.valueKey;let ft=-1;return ee.some((nn,an)=>ut(Hn(nn,Ge))===Hn(we,Ge)?(ft=an,!0):!1),ft},q=()=>{t.softFocus=!0;const ee=o.value||s.value;ee&&(ee==null||ee.focus())},se=ee=>{var we,Ge,ft,nn,an;const hr=Array.isArray(ee)?ee[0]:ee;let Kr=null;if(hr!=null&&hr.value){const Zn=D.value.filter(rl=>rl.value===hr.value);Zn.length>0&&(Kr=Zn[0].$el)}if(u.value&&Kr){const Zn=(nn=(ft=(Ge=(we=u.value)==null?void 0:we.popperRef)==null?void 0:Ge.contentRef)==null?void 0:ft.querySelector)==null?void 0:nn.call(ft,`.${i.be("dropdown","wrap")}`);Zn&&S5(Zn,Kr)}(an=h.value)==null||an.handleScroll()},pe=ee=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(ee.value,ee),t.cachedOptions.set(ee.value,ee)},me=(ee,we)=>{t.options.get(ee)===we&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(ee))},Ae=ee=>{ee.code!==Vn.backspace&&Se(!1),t.inputLength=o.value.value.length*15+20,te()},Se=ee=>{if(!Array.isArray(t.selected))return;const we=t.selected[t.selected.length-1];if(we)return ee===!0||ee===!1?(we.hitState=ee,ee):(we.hitState=!we.hitState,we.hitState)},Ce=ee=>{const we=ee.target.value;if(ee.type==="compositionend")t.isOnComposition=!1,bt(()=>Z(we));else{const Ge=we[we.length-1]||"";t.isOnComposition=!RS(Ge)}},ge=()=>{bt(()=>se(t.selected))},Be=ee=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),n.emit("focus",ee))},Pe=()=>{var ee,we,Ge;t.visible=!1,(ee=s.value)==null||ee.blur(),(Ge=(we=a.value)==null?void 0:we.blur)==null||Ge.call(we)},ne=ee=>{bt(()=>{t.isSilentBlur?t.isSilentBlur=!1:n.emit("blur",ee)}),t.softFocus=!1},Te=ee=>{Ve(ee)},Ue=()=>{t.visible=!1},at=ee=>{t.visible&&(ee.preventDefault(),ee.stopPropagation(),t.visible=!1)},ot=ee=>{var we;ee&&!t.mouseEnter||w.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!u.value||!u.value.isFocusInsideContent())&&(t.visible=!t.visible),t.visible&&((we=o.value||s.value)==null||we.focus()))},Bt=()=>{t.visible?D.value[t.hoverIndex]&&$(D.value[t.hoverIndex],void 0):ot()},ke=ee=>yt(ee.value)?Hn(ee.value,e.valueKey):ee.value,Ke=B(()=>D.value.filter(ee=>ee.visible).every(ee=>ee.disabled)),ct=B(()=>t.selected.slice(0,e.maxCollapseTags)),et=B(()=>t.selected.slice(e.maxCollapseTags)),xt=ee=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!Ke.value){ee==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):ee==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const we=D.value[t.hoverIndex];(we.disabled===!0||we.states.groupDisabled===!0||!we.visible)&&xt(ee),bt(()=>se(g.value))}};return{optionList:v,optionsArray:D,selectSize:U,handleResize:ue,debouncedOnInputChange:Je,debouncedQueryChange:Y,deletePrevTag:de,deleteTag:Oe,deleteSelected:Ve,handleOptionSelect:$,scrollToOption:se,readonly:O,resetInputHeight:te,showClose:M,iconComponent:T,iconReverse:P,showNewOption:A,collapseTagSize:le,setSelected:ye,managePlaceholder:ie,selectDisabled:w,emptyText:F,toggleLastOptionHitState:Se,resetInputState:Ae,handleComposition:Ce,onOptionCreate:pe,onOptionDestroy:me,handleMenuEnter:ge,handleFocus:Be,blur:Pe,handleBlur:ne,handleClearClick:Te,handleClose:Ue,handleKeydownEscape:at,toggleMenu:ot,selectOption:Bt,getValueKey:ke,navigateOptions:xt,dropMenuVisible:ce,queryChange:m,groupQueryChange:b,showTagList:ct,collapseTagList:et,reference:s,input:o,iOSInput:a,tooltipRef:u,tags:c,selectWrapper:d,scrollbar:h,handleMouseEnter:()=>{t.mouseEnter=!0},handleMouseLeave:()=>{t.mouseEnter=!1}}};var OU=Ne({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:n}){let r=[];function i(s,o){if(s.length!==o.length)return!1;for(const[a]of s.entries())if(s[a]!=o[a])return!1;return!0}return()=>{var s,o;const a=(s=t.default)==null?void 0:s.call(t),u=[];function c(d){Array.isArray(d)&&d.forEach(h=>{var g,m,b,v;const _=(g=(h==null?void 0:h.type)||{})==null?void 0:g.name;_==="ElOptionGroup"?c(!mt(h.children)&&!Array.isArray(h.children)&&Xe((m=h.children)==null?void 0:m.default)?(b=h.children)==null?void 0:b.default():h.children):_==="ElOption"?u.push((v=h.props)==null?void 0:v.label):Array.isArray(h.children)&&c(h.children)})}return a.length&&c((o=a[0])==null?void 0:o.children),i(u,r)||(r=u,n("update-options",u)),a}}});const N1="ElSelect",EU=Ne({name:N1,componentName:N1,components:{ElInput:tl,ElSelectMenu:xU,ElOption:Cv,ElOptions:OU,ElTag:c9,ElScrollbar:gv,ElTooltip:Wd,ElIcon:wn},directives:{ClickOutside:y2},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:nz},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type: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:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},teleported:wv.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:ni,default:ev},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:ni,default:Zm},tagType:{...k2.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:Nd,default:"bottom-start"}},emits:[Ln,PS,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=Qe("select"),r=Qe("input"),{t:i}=Xo(),s=CU(e),{optionList:o,optionsArray:a,selectSize:u,readonly:c,handleResize:d,collapseTagSize:h,debouncedOnInputChange:g,debouncedQueryChange:m,deletePrevTag:b,deleteTag:v,deleteSelected:_,handleOptionSelect:y,scrollToOption:C,setSelected:O,resetInputHeight:w,managePlaceholder:M,showClose:T,selectDisabled:P,iconComponent:R,iconReverse:F,showNewOption:D,emptyText:V,toggleLastOptionHitState:A,resetInputState:U,handleComposition:le,onOptionCreate:ce,onOptionDestroy:te,handleMenuEnter:Z,handleFocus:ie,blur:Q,handleBlur:ye,handleClearClick:Ee,handleClose:Le,handleKeydownEscape:ue,toggleMenu:Ze,selectOption:$e,getValueKey:Je,navigateOptions:Y,dropMenuVisible:oe,reference:de,input:Oe,iOSInput:Ve,tooltipRef:$,tags:H,selectWrapper:q,scrollbar:se,queryChange:pe,groupQueryChange:me,handleMouseEnter:Ae,handleMouseLeave:Se,showTagList:Ce,collapseTagList:ge}=SU(e,s,t),{focus:Be}=az(de),{inputWidth:Pe,selected:ne,inputLength:Te,filteredOptionsCount:Ue,visible:at,softFocus:ot,selectedLabel:Bt,hoverIndex:ke,query:Ke,inputHovering:ct,currentPlaceholder:et,menuVisibleOnFocus:xt,isOnComposition:St,isSilentBlur:$t,options:ee,cachedOptions:we,optionsCount:Ge,prefixWidth:ft,tagInMultiLine:nn}=Gs(s),an=B(()=>{const Dn=[n.b()],Mi=S(u);return Mi&&Dn.push(n.m(Mi)),e.disabled&&Dn.push(n.m("disabled")),Dn}),hr=B(()=>({maxWidth:`${S(Pe)-32}px`,width:"100%"})),Kr=B(()=>({maxWidth:`${S(Pe)>123?S(Pe)-123:S(Pe)-75}px`}));sn(Vd,vn({props:e,options:ee,optionsArray:a,cachedOptions:we,optionsCount:Ge,filteredOptionsCount:Ue,hoverIndex:ke,handleOptionSelect:y,onOptionCreate:ce,onOptionDestroy:te,selectWrapper:q,selected:ne,setSelected:O,queryChange:pe,groupQueryChange:me})),It(()=>{s.cachedPlaceHolder=et.value=e.placeholder||(()=>i("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(et.value=""),js(q,d),e.remote&&e.multiple&&w(),bt(()=>{const Dn=de.value&&de.value.$el;if(Dn&&(Pe.value=Dn.getBoundingClientRect().width,t.slots.prefix)){const Mi=Dn.querySelector(`.${r.e("prefix")}`);ft.value=Math.max(Mi.getBoundingClientRect().width+5,30)}}),O()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(Ln,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(Ln,"");const Zn=B(()=>{var Dn,Mi;return(Mi=(Dn=$.value)==null?void 0:Dn.popperRef)==null?void 0:Mi.contentRef});return{isIOS:DC,onOptionsRendered:Dn=>{o.value=Dn},tagInMultiLine:nn,prefixWidth:ft,selectSize:u,readonly:c,handleResize:d,collapseTagSize:h,debouncedOnInputChange:g,debouncedQueryChange:m,deletePrevTag:b,deleteTag:v,deleteSelected:_,handleOptionSelect:y,scrollToOption:C,inputWidth:Pe,selected:ne,inputLength:Te,filteredOptionsCount:Ue,visible:at,softFocus:ot,selectedLabel:Bt,hoverIndex:ke,query:Ke,inputHovering:ct,currentPlaceholder:et,menuVisibleOnFocus:xt,isOnComposition:St,isSilentBlur:$t,options:ee,resetInputHeight:w,managePlaceholder:M,showClose:T,selectDisabled:P,iconComponent:R,iconReverse:F,showNewOption:D,emptyText:V,toggleLastOptionHitState:A,resetInputState:U,handleComposition:le,handleMenuEnter:Z,handleFocus:ie,blur:Q,handleBlur:ye,handleClearClick:Ee,handleClose:Le,handleKeydownEscape:ue,toggleMenu:Ze,selectOption:$e,getValueKey:Je,navigateOptions:Y,dropMenuVisible:oe,focus:Be,reference:de,input:Oe,iOSInput:Ve,tooltipRef:$,popperPaneRef:Zn,tags:H,selectWrapper:q,scrollbar:se,wrapperKls:an,selectTagsStyle:hr,nsSelect:n,tagTextStyle:Kr,handleMouseEnter:Ae,handleMouseLeave:Se,showTagList:Ce,collapseTagList:ge}}}),MU=["disabled","autocomplete"],TU=["disabled"],AU={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function PU(e,t,n,r,i,s){const o=Yt("el-tag"),a=Yt("el-tooltip"),u=Yt("el-icon"),c=Yt("el-input"),d=Yt("el-option"),h=Yt("el-options"),g=Yt("el-scrollbar"),m=Yt("el-select-menu"),b=Tm("click-outside");return gn((K(),_e("div",{ref:"selectWrapper",class:he(e.wrapperKls),onMouseenter:t[21]||(t[21]=(...v)=>e.handleMouseEnter&&e.handleMouseEnter(...v)),onMouseleave:t[22]||(t[22]=(...v)=>e.handleMouseLeave&&e.handleMouseLeave(...v)),onClick:t[23]||(t[23]=Cr((...v)=>e.toggleMenu&&e.toggleMenu(...v),["stop"]))},[W(a,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:z(()=>[L("div",{class:"select-trigger",onMouseenter:t[19]||(t[19]=v=>e.inputHovering=!0),onMouseleave:t[20]||(t[20]=v=>e.inputHovering=!1)},[e.multiple?(K(),_e("div",{key:0,ref:"tags",class:he([e.nsSelect.e("tags"),e.nsSelect.is("disabled",e.selectDisabled)]),style:Vt(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(K(),Me(Hr,{key:0,onAfterLeave:e.resetInputHeight},{default:z(()=>[L("span",{class:he([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(K(!0),_e(it,null,En(e.showTagList,v=>(K(),Me(o,{key:e.getValueKey(v),closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",onClose:_=>e.deleteTag(_,v)},{default:z(()=>[L("span",{class:he(e.nsSelect.e("tags-text")),style:Vt(e.tagTextStyle)},pt(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(K(),Me(o,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:z(()=>[e.collapseTagsTooltip?(K(),Me(a,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:z(()=>[L("span",{class:he(e.nsSelect.e("tags-text"))},"+ "+pt(e.selected.length-e.maxCollapseTags),3)]),content:z(()=>[L("div",{class:he(e.nsSelect.e("collapse-tags"))},[(K(!0),_e(it,null,En(e.collapseTagList,v=>(K(),_e("div",{key:e.getValueKey(v),class:he(e.nsSelect.e("collapse-tag"))},[W(o,{class:"in-tooltip",closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:_=>e.deleteTag(_,v)},{default:z(()=>[L("span",{class:he(e.nsSelect.e("tags-text")),style:Vt({maxWidth:e.inputWidth-75+"px"})},pt(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(K(),_e("span",{key:1,class:he(e.nsSelect.e("tags-text"))},"+ "+pt(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):Ie("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):Ie("v-if",!0),e.collapseTags?Ie("v-if",!0):(K(),Me(Hr,{key:1,onAfterLeave:e.resetInputHeight},{default:z(()=>[L("span",{class:he([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(K(!0),_e(it,null,En(e.selected,v=>(K(),Me(o,{key:e.getValueKey(v),closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",onClose:_=>e.deleteTag(_,v)},{default:z(()=>[L("span",{class:he(e.nsSelect.e("tags-text")),style:Vt({maxWidth:e.inputWidth-75+"px"})},pt(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),e.filterable?gn((K(),_e("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=v=>e.query=v),type:"text",class:he([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.is("disabled",e.selectDisabled)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Vt({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:t[1]||(t[1]=(...v)=>e.handleFocus&&e.handleFocus(...v)),onBlur:t[2]||(t[2]=(...v)=>e.handleBlur&&e.handleBlur(...v)),onKeyup:t[3]||(t[3]=(...v)=>e.managePlaceholder&&e.managePlaceholder(...v)),onKeydown:[t[4]||(t[4]=(...v)=>e.resetInputState&&e.resetInputState(...v)),t[5]||(t[5]=Jr(Cr(v=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=Jr(Cr(v=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=Jr((...v)=>e.handleKeydownEscape&&e.handleKeydownEscape(...v),["esc"])),t[8]||(t[8]=Jr(Cr((...v)=>e.selectOption&&e.selectOption(...v),["stop","prevent"]),["enter"])),t[9]||(t[9]=Jr((...v)=>e.deletePrevTag&&e.deletePrevTag(...v),["delete"])),t[10]||(t[10]=Jr(v=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onCompositionupdate:t[12]||(t[12]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onCompositionend:t[13]||(t[13]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onInput:t[14]||(t[14]=(...v)=>e.debouncedQueryChange&&e.debouncedQueryChange(...v))},null,46,MU)),[[C$,e.query]]):Ie("v-if",!0)],6)):Ie("v-if",!0),Ie(" fix: https://github.com/element-plus/element-plus/issues/11415 "),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(K(),_e("input",{key:1,ref:"iOSInput",class:he([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.em("input","iOS")]),disabled:e.selectDisabled,type:"text"},null,10,TU)):Ie("v-if",!0),W(c,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[15]||(t[15]=v=>e.selectedLabel=v),type:"text",placeholder:typeof e.currentPlaceholder=="function"?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:he([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[16]||(t[16]=Jr(Cr(v=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[17]||(t[17]=Jr(Cr(v=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),Jr(Cr(e.selectOption,["stop","prevent"]),["enter"]),Jr(e.handleKeydownEscape,["esc"]),t[18]||(t[18]=Jr(v=>e.visible=!1,["tab"]))]},hC({suffix:z(()=>[e.iconComponent&&!e.showClose?(K(),Me(u,{key:0,class:he([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:z(()=>[(K(),Me(Fn(e.iconComponent)))]),_:1},8,["class"])):Ie("v-if",!0),e.showClose&&e.clearIcon?(K(),Me(u,{key:1,class:he([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:z(()=>[(K(),Me(Fn(e.clearIcon)))]),_:1},8,["class","onClick"])):Ie("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:z(()=>[L("div",AU,[We(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:z(()=>[W(m,null,{default:z(()=>[gn(W(g,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:he([e.nsSelect.is("empty",!e.allowCreate&&!!e.query&&e.filteredOptionsCount===0)])},{default:z(()=>[e.showNewOption?(K(),Me(d,{key:0,value:e.query,created:!0},null,8,["value"])):Ie("v-if",!0),W(h,{onUpdateOptions:e.onOptionsRendered},{default:z(()=>[We(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[Wr,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(K(),_e(it,{key:0},[e.$slots.empty?We(e.$slots,"empty",{key:0}):(K(),_e("p",{key:1,class:he(e.nsSelect.be("dropdown","empty"))},pt(e.emptyText),3))],64)):Ie("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[b,e.handleClose,e.popperPaneRef]])}var RU=Et(EU,[["render",PU],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const kU=Ne({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=Qe("select"),n=X(!0),r=kt(),i=X([]);sn(j2,vn({...Gs(e)}));const s=qe(Vd);It(()=>{i.value=o(r.subTree)});const o=u=>{const c=[];return Array.isArray(u.children)&&u.children.forEach(d=>{var h;d.type&&d.type.name==="ElOption"&&d.component&&d.component.proxy?c.push(d.component.proxy):(h=d.children)!=null&&h.length&&c.push(...o(d))}),c},{groupQueryChange:a}=ut(s);return Fe(a,()=>{n.value=i.value.some(u=>u.visible===!0)},{flush:"post"}),{visible:n,ns:t}}});function LU(e,t,n,r,i,s){return gn((K(),_e("ul",{class:he(e.ns.be("group","wrap"))},[L("li",{class:he(e.ns.be("group","title"))},pt(e.label),3),L("li",null,[L("ul",{class:he(e.ns.b("group"))},[We(e.$slots,"default")],2)])],2)),[[Wr,e.visible]])}var U2=Et(kU,[["render",LU],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const IU=Pn(RU,{Option:Cv,OptionGroup:U2}),FU=Oi(Cv);Oi(U2);/*! + * escape-html + * Copyright(c) 2012-2013 TJ Holowaychuk + * Copyright(c) 2015 Andreas Lubbe + * Copyright(c) 2015 Tiancheng "Timothy" Gu + * MIT Licensed + */var $U=/["'&<>]/,DU=NU;function NU(e){var t=""+e,n=$U.exec(t);if(!n)return t;var r,i="",s=0,o=0;for(s=n.index;stypeof c=="string"?Hn(a,c):c(a,u,e))):(t!=="$key"&&yt(a)&&"$value"in a&&(a=a.$value),[yt(a)?Hn(a,t):a])},o=function(a,u){if(r)return r(a.value,u.value);for(let c=0,d=a.key.length;cu.key[c])return 1}return 0};return e.map((a,u)=>({value:a,index:u,key:s?s(a,u):null})).sort((a,u)=>{let c=o(a,u);return c||(c=a.index-u.index),c*+n}).map(a=>a.value)},K2=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},HU=function(e,t){let n=null;for(let r=0;r{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const i of n)r=r[i];return`${r}`}else if(typeof t=="function")return t.call(null,e)},Ro=function(e,t){const n={};return(e||[]).forEach((r,i)=>{n[In(r,t)]={row:r,index:i}}),n};function WU(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(wt(t,r)){const i=t[r];typeof i<"u"&&(n[r]=i)}return n}function Sv(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function q2(e){return e===""||e!==void 0&&(e=Sv(e),Number.isNaN(e)&&(e=80)),e}function VU(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function jU(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Yl(e,t,n){let r=!1;const i=e.indexOf(t),s=i!==-1,o=a=>{a==="add"?e.push(t):e.splice(i,1),r=!0,He(t.children)&&t.children.forEach(u=>{Yl(e,u,n??!s)})};return Qi(n)?n&&!s?o("add"):!n&&s&&o("remove"):o(s?"remove":"add"),r}function UU(e,t,n="children",r="hasChildren"){const i=o=>!(Array.isArray(o)&&o.length);function s(o,a,u){t(o,a,u),a.forEach(c=>{if(c[r]){t(c,null,u+1);return}const d=c[n];i(d)||s(c,d,u+1)})}e.forEach(o=>{if(o[r]){t(o,null,0);return}const a=o[n];i(a)||s(o,a,0)})}let Wi;function KU(e,t,n,r,i){i=wS({enterable:!0,showArrow:!0},i);const s=e==null?void 0:e.dataset.prefix,o=e==null?void 0:e.querySelector(`.${s}-scrollbar__wrap`);function a(){const _=i.effect==="light",y=document.createElement("div");return y.className=[`${s}-popper`,_?"is-light":"is-dark",i.popperClass||""].join(" "),n=BU(n),y.innerHTML=n,y.style.zIndex=String(r()),e==null||e.appendChild(y),y}function u(){const _=document.createElement("div");return _.className=`${s}-popper__arrow`,_}function c(){d&&d.update()}Wi==null||Wi(),Wi=()=>{try{d&&d.destroy(),m&&(e==null||e.removeChild(m)),t.removeEventListener("mouseenter",h),t.removeEventListener("mouseleave",g),o==null||o.removeEventListener("scroll",Wi),Wi=void 0}catch{}};let d=null,h=c,g=Wi;i.enterable&&({onOpen:h,onClose:g}=JS({showAfter:i.showAfter,hideAfter:i.hideAfter,open:c,close:Wi}));const m=a();m.onmouseenter=h,m.onmouseleave=g;const b=[];if(i.offset&&b.push({name:"offset",options:{offset:[0,i.offset]}}),i.showArrow){const _=m.appendChild(u());b.push({name:"arrow",options:{element:_,padding:10}})}const v=i.popperOptions||{};return d=qS(t,m,{placement:i.placement||"top",strategy:"fixed",...v,modifiers:v.modifiers?b.concat(v.modifiers):b}),t.addEventListener("mouseenter",h),t.addEventListener("mouseleave",g),o==null||o.addEventListener("scroll",Wi),d}function Y2(e){return e.children?d5(e.children,Y2):[e]}function z1(e,t){return e+t.colSpan}const G2=(e,t,n,r)=>{let i=0,s=e;const o=n.states.columns.value;if(r){const u=Y2(r[e]);i=o.slice(0,o.indexOf(u[0])).reduce(z1,0),s=i+u.reduce(z1,0)-1}else i=e;let a;switch(t){case"left":s=o.length-n.states.rightFixedLeafColumnsLength.value&&(a="right");break;default:s=o.length-n.states.rightFixedLeafColumnsLength.value&&(a="right")}return a?{direction:a,start:i,after:s}:{}},Ov=(e,t,n,r,i,s=0)=>{const o=[],{direction:a,start:u,after:c}=G2(t,n,r,i);if(a){const d=a==="left";o.push(`${e}-fixed-column--${a}`),d&&c+s===r.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!d&&u-s===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column")}return o};function H1(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Ev=(e,t,n,r)=>{const{direction:i,start:s=0,after:o=0}=G2(e,t,n,r);if(!i)return;const a={},u=i==="left",c=n.states.columns.value;return u?a.left=c.slice(0,s).reduce(H1,0):a.right=c.slice(o+1).reverse().reduce(H1,0),a},za=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function qU(e){const t=kt(),n=X(!1),r=X([]);return{updateExpandRows:()=>{const u=e.data.value||[],c=e.rowKey.value;if(n.value)r.value=u.slice();else if(c){const d=Ro(r.value,c);r.value=u.reduce((h,g)=>{const m=In(g,c);return d[m]&&h.push(g),h},[])}else r.value=[]},toggleRowExpansion:(u,c)=>{Yl(r.value,u,c)&&t.emit("expand-change",u,r.value.slice())},setExpandRowKeys:u=>{t.store.assertRowKey();const c=e.data.value||[],d=e.rowKey.value,h=Ro(c,d);r.value=u.reduce((g,m)=>{const b=h[m];return b&&g.push(b.row),g},[])},isRowExpanded:u=>{const c=e.rowKey.value;return c?!!Ro(r.value,c)[In(u,c)]:r.value.includes(u)},states:{expandRows:r,defaultExpandAll:n}}}function YU(e){const t=kt(),n=X(null),r=X(null),i=c=>{t.store.assertRowKey(),n.value=c,o(c)},s=()=>{n.value=null},o=c=>{const{data:d,rowKey:h}=e;let g=null;h.value&&(g=(S(d)||[]).find(m=>In(m,h.value)===c)),r.value=g,t.emit("current-change",r.value,null)};return{setCurrentRowKey:i,restoreCurrentRowKey:s,setCurrentRowByKey:o,updateCurrentRow:c=>{const d=r.value;if(c&&c!==d){r.value=c,t.emit("current-change",r.value,d);return}!c&&d&&(r.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const c=e.rowKey.value,d=e.data.value||[],h=r.value;if(!d.includes(h)&&h){if(c){const g=In(h,c);o(g)}else r.value=null;r.value===null&&t.emit("current-change",null,h)}else n.value&&(o(n.value),s())},states:{_currentRowKey:n,currentRow:r}}}function GU(e){const t=X([]),n=X({}),r=X(16),i=X(!1),s=X({}),o=X("hasChildren"),a=X("children"),u=kt(),c=B(()=>{if(!e.rowKey.value)return{};const y=e.data.value||[];return h(y)}),d=B(()=>{const y=e.rowKey.value,C=Object.keys(s.value),O={};return C.length&&C.forEach(w=>{if(s.value[w].length){const M={children:[]};s.value[w].forEach(T=>{const P=In(T,y);M.children.push(P),T[o.value]&&!O[P]&&(O[P]={children:[]})}),O[w]=M}}),O}),h=y=>{const C=e.rowKey.value,O={};return UU(y,(w,M,T)=>{const P=In(w,C);Array.isArray(M)?O[P]={children:M.map(R=>In(R,C)),level:T}:i.value&&(O[P]={children:[],lazy:!0,level:T})},a.value,o.value),O},g=(y=!1,C=(O=>(O=u.store)==null?void 0:O.states.defaultExpandAll.value)())=>{var O;const w=c.value,M=d.value,T=Object.keys(w),P={};if(T.length){const R=S(n),F=[],D=(A,U)=>{if(y)return t.value?C||t.value.includes(U):!!(C||A!=null&&A.expanded);{const le=C||t.value&&t.value.includes(U);return!!(A!=null&&A.expanded||le)}};T.forEach(A=>{const U=R[A],le={...w[A]};if(le.expanded=D(U,A),le.lazy){const{loaded:ce=!1,loading:te=!1}=U||{};le.loaded=!!ce,le.loading=!!te,F.push(A)}P[A]=le});const V=Object.keys(M);i.value&&V.length&&F.length&&V.forEach(A=>{const U=R[A],le=M[A].children;if(F.includes(A)){if(P[A].children.length!==0)throw new Error("[ElTable]children must be an empty array.");P[A].children=le}else{const{loaded:ce=!1,loading:te=!1}=U||{};P[A]={lazy:!0,loaded:!!ce,loading:!!te,expanded:D(U,A),children:le,level:""}}})}n.value=P,(O=u.store)==null||O.updateTableScrollY()};Fe(()=>t.value,()=>{g(!0)}),Fe(()=>c.value,()=>{g()}),Fe(()=>d.value,()=>{g()});const m=y=>{t.value=y,g()},b=(y,C)=>{u.store.assertRowKey();const O=e.rowKey.value,w=In(y,O),M=w&&n.value[w];if(w&&M&&"expanded"in M){const T=M.expanded;C=typeof C>"u"?!M.expanded:C,n.value[w].expanded=C,T!==C&&u.emit("expand-change",y,C),u.store.updateTableScrollY()}},v=y=>{u.store.assertRowKey();const C=e.rowKey.value,O=In(y,C),w=n.value[O];i.value&&w&&"loaded"in w&&!w.loaded?_(y,O,w):b(y,void 0)},_=(y,C,O)=>{const{load:w}=u.props;w&&!n.value[C].loaded&&(n.value[C].loading=!0,w(y,O,M=>{if(!Array.isArray(M))throw new TypeError("[ElTable] data must be an array");n.value[C].loading=!1,n.value[C].loaded=!0,n.value[C].expanded=!0,M.length&&(s.value[C]=M),u.emit("expand-change",y,!0)}))};return{loadData:_,loadOrToggle:v,toggleTreeExpansion:b,updateTreeExpandKeys:m,updateTreeData:g,normalize:h,states:{expandRowKeys:t,treeData:n,indent:r,lazy:i,lazyTreeNodeMap:s,lazyColumnIdentifier:o,childrenColumnName:a}}}const XU=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:zU(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},If=e=>{const t=[];return e.forEach(n=>{n.children?t.push.apply(t,If(n.children)):t.push(n)}),t};function JU(){var e;const t=kt(),{size:n}=Gs((e=t.proxy)==null?void 0:e.$props),r=X(null),i=X([]),s=X([]),o=X(!1),a=X([]),u=X([]),c=X([]),d=X([]),h=X([]),g=X([]),m=X([]),b=X([]),v=[],_=X(0),y=X(0),C=X(0),O=X(!1),w=X([]),M=X(!1),T=X(!1),P=X(null),R=X({}),F=X(null),D=X(null),V=X(null),A=X(null),U=X(null);Fe(i,()=>t.state&&Z(!1),{deep:!0});const le=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},ce=ke=>{var Ke;(Ke=ke.children)==null||Ke.forEach(ct=>{ct.fixed=ke.fixed,ce(ct)})},te=()=>{a.value.forEach(xt=>{ce(xt)}),d.value=a.value.filter(xt=>xt.fixed===!0||xt.fixed==="left"),h.value=a.value.filter(xt=>xt.fixed==="right"),d.value.length>0&&a.value[0]&&a.value[0].type==="selection"&&!a.value[0].fixed&&(a.value[0].fixed=!0,d.value.unshift(a.value[0]));const ke=a.value.filter(xt=>!xt.fixed);u.value=[].concat(d.value).concat(ke).concat(h.value);const Ke=If(ke),ct=If(d.value),et=If(h.value);_.value=Ke.length,y.value=ct.length,C.value=et.length,c.value=[].concat(ct).concat(Ke).concat(et),o.value=d.value.length>0||h.value.length>0},Z=(ke,Ke=!1)=>{ke&&te(),Ke?t.state.doLayout():t.state.debouncedUpdateLayout()},ie=ke=>w.value.includes(ke),Q=()=>{O.value=!1,w.value.length&&(w.value=[],t.emit("selection-change",[]))},ye=()=>{let ke;if(r.value){ke=[];const Ke=Ro(w.value,r.value),ct=Ro(i.value,r.value);for(const et in Ke)wt(Ke,et)&&!ct[et]&&ke.push(Ke[et].row)}else ke=w.value.filter(Ke=>!i.value.includes(Ke));if(ke.length){const Ke=w.value.filter(ct=>!ke.includes(ct));w.value=Ke,t.emit("selection-change",Ke.slice())}},Ee=()=>(w.value||[]).slice(),Le=(ke,Ke=void 0,ct=!0)=>{if(Yl(w.value,ke,Ke)){const xt=(w.value||[]).slice();ct&&t.emit("select",xt,ke),t.emit("selection-change",xt)}},ue=()=>{var ke,Ke;const ct=T.value?!O.value:!(O.value||w.value.length);O.value=ct;let et=!1,xt=0;const St=(Ke=(ke=t==null?void 0:t.store)==null?void 0:ke.states)==null?void 0:Ke.rowKey.value;i.value.forEach(($t,ee)=>{const we=ee+xt;P.value?P.value.call(null,$t,we)&&Yl(w.value,$t,ct)&&(et=!0):Yl(w.value,$t,ct)&&(et=!0),xt+=Je(In($t,St))}),et&&t.emit("selection-change",w.value?w.value.slice():[]),t.emit("select-all",w.value)},Ze=()=>{const ke=Ro(w.value,r.value);i.value.forEach(Ke=>{const ct=In(Ke,r.value),et=ke[ct];et&&(w.value[et.index]=Ke)})},$e=()=>{var ke,Ke,ct;if(((ke=i.value)==null?void 0:ke.length)===0){O.value=!1;return}let et;r.value&&(et=Ro(w.value,r.value));const xt=function(we){return et?!!et[In(we,r.value)]:w.value.includes(we)};let St=!0,$t=0,ee=0;for(let we=0,Ge=(i.value||[]).length;we{var Ke;if(!t||!t.store)return 0;const{treeData:ct}=t.store.states;let et=0;const xt=(Ke=ct.value[ke])==null?void 0:Ke.children;return xt&&(et+=xt.length,xt.forEach(St=>{et+=Je(St)})),et},Y=(ke,Ke)=>{Array.isArray(ke)||(ke=[ke]);const ct={};return ke.forEach(et=>{R.value[et.id]=Ke,ct[et.columnKey||et.id]=Ke}),ct},oe=(ke,Ke,ct)=>{D.value&&D.value!==ke&&(D.value.order=null),D.value=ke,V.value=Ke,A.value=ct},de=()=>{let ke=S(s);Object.keys(R.value).forEach(Ke=>{const ct=R.value[Ke];if(!ct||ct.length===0)return;const et=K2({columns:c.value},Ke);et&&et.filterMethod&&(ke=ke.filter(xt=>ct.some(St=>et.filterMethod.call(null,St,xt,et))))}),F.value=ke},Oe=()=>{i.value=XU(F.value,{sortingColumn:D.value,sortProp:V.value,sortOrder:A.value})},Ve=(ke=void 0)=>{ke&&ke.filter||de(),Oe()},$=ke=>{const{tableHeaderRef:Ke}=t.refs;if(!Ke)return;const ct=Object.assign({},Ke.filterPanels),et=Object.keys(ct);if(et.length)if(typeof ke=="string"&&(ke=[ke]),Array.isArray(ke)){const xt=ke.map(St=>HU({columns:c.value},St));et.forEach(St=>{const $t=xt.find(ee=>ee.id===St);$t&&($t.filteredValue=[])}),t.store.commit("filterChange",{column:xt,values:[],silent:!0,multi:!0})}else et.forEach(xt=>{const St=c.value.find($t=>$t.id===xt);St&&(St.filteredValue=[])}),R.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},H=()=>{D.value&&(oe(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:q,toggleRowExpansion:se,updateExpandRows:pe,states:me,isRowExpanded:Ae}=qU({data:i,rowKey:r}),{updateTreeExpandKeys:Se,toggleTreeExpansion:Ce,updateTreeData:ge,loadOrToggle:Be,states:Pe}=GU({data:i,rowKey:r}),{updateCurrentRowData:ne,updateCurrentRow:Te,setCurrentRowKey:Ue,states:at}=YU({data:i,rowKey:r});return{assertRowKey:le,updateColumns:te,scheduleLayout:Z,isSelected:ie,clearSelection:Q,cleanSelection:ye,getSelectionRows:Ee,toggleRowSelection:Le,_toggleAllSelection:ue,toggleAllSelection:null,updateSelectionByRowKey:Ze,updateAllSelected:$e,updateFilters:Y,updateCurrentRow:Te,updateSort:oe,execFilter:de,execSort:Oe,execQuery:Ve,clearFilter:$,clearSort:H,toggleRowExpansion:se,setExpandRowKeysAdapter:ke=>{q(ke),Se(ke)},setCurrentRowKey:Ue,toggleRowExpansionAdapter:(ke,Ke)=>{c.value.some(({type:et})=>et==="expand")?se(ke,Ke):Ce(ke,Ke)},isRowExpanded:Ae,updateExpandRows:pe,updateCurrentRowData:ne,loadOrToggle:Be,updateTreeData:ge,states:{tableSize:n,rowKey:r,data:i,_data:s,isComplex:o,_columns:a,originColumns:u,columns:c,fixedColumns:d,rightFixedColumns:h,leafColumns:g,fixedLeafColumns:m,rightFixedLeafColumns:b,updateOrderFns:v,leafColumnsLength:_,fixedLeafColumnsLength:y,rightFixedLeafColumnsLength:C,isAllSelected:O,selection:w,reserveSelection:M,selectOnIndeterminate:T,selectable:P,filters:R,filteredData:F,sortingColumn:D,sortProp:V,sortOrder:A,hoverRow:U,...me,...Pe,...at}}}function Ng(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=Ng(n.children,t)),n)})}function Bg(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&Bg(t.children)}),e.sort((t,n)=>t.no-n.no)}function ZU(){const e=kt(),t=JU();return{ns:Qe("table"),...t,mutations:{setData(o,a){const u=S(o._data)!==a;o.data.value=a,o._data.value=a,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),S(o.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):u?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(o,a,u,c){const d=S(o._columns);let h=[];u?(u&&!u.children&&(u.children=[]),u.children.push(a),h=Ng(d,u)):(d.push(a),h=d),Bg(h),o._columns.value=h,o.updateOrderFns.push(c),a.type==="selection"&&(o.selectable.value=a.selectable,o.reserveSelection.value=a.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(o,a){var u;((u=a.getColumnIndex)==null?void 0:u.call(a))!==a.no&&(Bg(o._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(o,a,u,c){const d=S(o._columns)||[];if(u)u.children.splice(u.children.findIndex(g=>g.id===a.id),1),bt(()=>{var g;((g=u.children)==null?void 0:g.length)===0&&delete u.children}),o._columns.value=Ng(d,u);else{const g=d.indexOf(a);g>-1&&(d.splice(g,1),o._columns.value=d)}const h=o.updateOrderFns.indexOf(c);h>-1&&o.updateOrderFns.splice(h,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(o,a){const{prop:u,order:c,init:d}=a;if(u){const h=S(o.columns).find(g=>g.property===u);h&&(h.order=c,e.store.updateSort(h,u,c),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(o,a){const{sortingColumn:u,sortProp:c,sortOrder:d}=o,h=S(u),g=S(c),m=S(d);m===null&&(o.sortingColumn.value=null,o.sortProp.value=null);const b={filter:!0};e.store.execQuery(b),(!a||!(a.silent||a.init))&&e.emit("sort-change",{column:h,prop:g,order:m}),e.store.updateTableScrollY()},filterChange(o,a){const{column:u,values:c,silent:d}=a,h=e.store.updateFilters(u,c);e.store.execQuery(),d||e.emit("filter-change",h),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(o,a){e.store.toggleRowSelection(a),e.store.updateAllSelected()},setHoverRow(o,a){o.hoverRow.value=a},setCurrentRow(o,a){e.store.updateCurrentRow(a)}},commit:function(o,...a){const u=e.store.mutations;if(u[o])u[o].apply(e,[e.store.states].concat(a));else throw new Error(`Action not found: ${o}`)},updateTableScrollY:function(){bt(()=>e.layout.updateScrollY.apply(e.layout))}}}const Gl={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 QU(e,t){if(!e)throw new Error("Table is required.");const n=ZU();return n.toggleAllSelection=Ra(n._toggleAllSelection,10),Object.keys(Gl).forEach(r=>{X2(J2(t,r),r,n)}),e7(n,t),n}function e7(e,t){Object.keys(Gl).forEach(n=>{Fe(()=>J2(t,n),r=>{X2(r,n,e)})})}function X2(e,t,n){let r=e,i=Gl[t];typeof Gl[t]=="object"&&(i=i.key,r=r||Gl[t].default),n.states[i].value=r}function J2(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach(i=>{r=r[i]}),r}else return e[t]}class t7{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=X(null),this.scrollX=X(!1),this.scrollY=X(!1),this.bodyWidth=X(null),this.fixedWidth=X(null),this.rightFixedWidth=X(null),this.gutterWidth=0;for(const n in t)wt(t,n)&&(Nt(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let r=!0;const i=this.scrollY.value;return r=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=r,i!==r}return!1}setHeight(t,n="height"){if(!tn)return;const r=this.table.vnode.el;if(t=VU(t),this.height.value=Number(t),!r&&(t||t===0))return bt(()=>this.setHeight(t,n));typeof t=="number"?(r.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(r.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!tn)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let r=0;const i=this.getFlattenColumns(),s=i.filter(u=>typeof u.width!="number");if(i.forEach(u=>{typeof u.width=="number"&&u.realWidth&&(u.realWidth=null)}),s.length>0&&t){if(i.forEach(u=>{r+=Number(u.width||u.minWidth||80)}),r<=n){this.scrollX.value=!1;const u=n-r;if(s.length===1)s[0].realWidth=Number(s[0].minWidth||80)+u;else{const c=s.reduce((g,m)=>g+Number(m.minWidth||80),0),d=u/c;let h=0;s.forEach((g,m)=>{if(m===0)return;const b=Math.floor(Number(g.minWidth||80)*d);h+=b,g.realWidth=Number(g.minWidth||80)+b}),s[0].realWidth=Number(s[0].minWidth||80)+u-h}}else this.scrollX.value=!0,s.forEach(u=>{u.realWidth=Number(u.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else i.forEach(u=>{!u.width&&!u.minWidth?u.realWidth=80:u.realWidth=Number(u.width||u.minWidth),r+=u.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;const o=this.store.states.fixedColumns.value;if(o.length>0){let u=0;o.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.fixedWidth.value=u}const a=this.store.states.rightFixedColumns.value;if(a.length>0){let u=0;a.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.rightFixedWidth.value=u}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(r=>{var i,s;switch(t){case"columns":(i=r.state)==null||i.onColumnsChange(this);break;case"scrollable":(s=r.state)==null||s.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:n7}=Ba,r7=Ne({name:"ElTableFilterPanel",components:{ElCheckbox:Ba,ElCheckboxGroup:n7,ElScrollbar:gv,ElTooltip:Wd,ElIcon:wn,ArrowDown:Zm,ArrowUp:z5},directives:{ClickOutside:y2},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=kt(),{t:n}=Xo(),r=Qe("table-filter"),i=t==null?void 0:t.parent;i.filterPanels.value[e.column.id]||(i.filterPanels.value[e.column.id]=t);const s=X(!1),o=X(null),a=B(()=>e.column&&e.column.filters),u=B({get:()=>{var w;return(((w=e.column)==null?void 0:w.filteredValue)||[])[0]},set:w=>{c.value&&(typeof w<"u"&&w!==null?c.value.splice(0,1,w):c.value.splice(0,1))}}),c=B({get(){return e.column?e.column.filteredValue||[]:[]},set(w){e.column&&e.upDataColumn("filteredValue",w)}}),d=B(()=>e.column?e.column.filterMultiple:!0),h=w=>w.value===u.value,g=()=>{s.value=!1},m=w=>{w.stopPropagation(),s.value=!s.value},b=()=>{s.value=!1},v=()=>{C(c.value),g()},_=()=>{c.value=[],C(c.value),g()},y=w=>{u.value=w,C(typeof w<"u"&&w!==null?c.value:[]),g()},C=w=>{e.store.commit("filterChange",{column:e.column,values:w}),e.store.updateAllSelected()};Fe(s,w=>{e.column&&e.upDataColumn("filterOpened",w)},{immediate:!0});const O=B(()=>{var w,M;return(M=(w=o.value)==null?void 0:w.popperRef)==null?void 0:M.contentRef});return{tooltipVisible:s,multiple:d,filteredValue:c,filterValue:u,filters:a,handleConfirm:v,handleReset:_,handleSelect:y,isActive:h,t:n,ns:r,showFilterPanel:m,hideFilterPanel:b,popperPaneRef:O,tooltip:o}}}),i7={key:0},s7=["disabled"],o7=["label","onClick"];function a7(e,t,n,r,i,s){const o=Yt("el-checkbox"),a=Yt("el-checkbox-group"),u=Yt("el-scrollbar"),c=Yt("arrow-up"),d=Yt("arrow-down"),h=Yt("el-icon"),g=Yt("el-tooltip"),m=Tm("click-outside");return K(),Me(g,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:z(()=>[e.multiple?(K(),_e("div",i7,[L("div",{class:he(e.ns.e("content"))},[W(u,{"wrap-class":e.ns.e("wrap")},{default:z(()=>[W(a,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=b=>e.filteredValue=b),class:he(e.ns.e("checkbox-group"))},{default:z(()=>[(K(!0),_e(it,null,En(e.filters,b=>(K(),Me(o,{key:b.value,label:b.value},{default:z(()=>[re(pt(b.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),L("div",{class:he(e.ns.e("bottom"))},[L("button",{class:he({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...b)=>e.handleConfirm&&e.handleConfirm(...b))},pt(e.t("el.table.confirmFilter")),11,s7),L("button",{type:"button",onClick:t[2]||(t[2]=(...b)=>e.handleReset&&e.handleReset(...b))},pt(e.t("el.table.resetFilter")),1)],2)])):(K(),_e("ul",{key:1,class:he(e.ns.e("list"))},[L("li",{class:he([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=b=>e.handleSelect(null))},pt(e.t("el.table.clearFilter")),3),(K(!0),_e(it,null,En(e.filters,b=>(K(),_e("li",{key:b.value,class:he([e.ns.e("list-item"),e.ns.is("active",e.isActive(b))]),label:b.value,onClick:v=>e.handleSelect(b.value)},pt(b.text),11,o7))),128))],2))]),default:z(()=>[gn((K(),_e("span",{class:he([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...b)=>e.showFilterPanel&&e.showFilterPanel(...b))},[W(h,null,{default:z(()=>[e.column.filterOpened?(K(),Me(c,{key:0})):(K(),Me(d,{key:1}))]),_:1})],2)),[[m,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var l7=Et(r7,[["render",a7],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function Z2(e){const t=kt();Ya(()=>{n.value.addObserver(t)}),It(()=>{r(n.value),i(n.value)}),Xs(()=>{r(n.value),i(n.value)}),Ga(()=>{n.value.removeObserver(t)});const n=B(()=>{const s=e.layout;if(!s)throw new Error("Can not find table layout.");return s}),r=s=>{var o;const a=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col"))||[];if(!a.length)return;const u=s.getFlattenColumns(),c={};u.forEach(d=>{c[d.id]=d});for(let d=0,h=a.length;d{var o,a;const u=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,h=u.length;d{v.stopPropagation()},s=(v,_)=>{!_.filters&&_.sortable?b(v,_,!1):_.filterable&&!_.sortable&&i(v),r==null||r.emit("header-click",_,v)},o=(v,_)=>{r==null||r.emit("header-contextmenu",_,v)},a=X(null),u=X(!1),c=X({}),d=(v,_)=>{if(tn&&!(_.children&&_.children.length>0)&&a.value&&e.border){u.value=!0;const y=r;t("set-drag-visible",!0);const O=(y==null?void 0:y.vnode.el).getBoundingClientRect().left,w=n.vnode.el.querySelector(`th.${_.id}`),M=w.getBoundingClientRect(),T=M.left-O+30;To(w,"noclick"),c.value={startMouseLeft:v.clientX,startLeft:M.right-O,startColumnLeft:M.left-O,tableLeft:O};const P=y==null?void 0:y.refs.resizeProxy;P.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const R=D=>{const V=D.clientX-c.value.startMouseLeft,A=c.value.startLeft+V;P.style.left=`${Math.max(T,A)}px`},F=()=>{if(u.value){const{startColumnLeft:D,startLeft:V}=c.value,U=Number.parseInt(P.style.left,10)-D;_.width=_.realWidth=U,y==null||y.emit("header-dragend",_.width,V-D,_,v),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,a.value=null,c.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",F),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{$o(w,"noclick")},0)};document.addEventListener("mousemove",R),document.addEventListener("mouseup",F)}},h=(v,_)=>{if(_.children&&_.children.length>0)return;const y=v.target;if(!La(y))return;const C=y==null?void 0:y.closest("th");if(!(!_||!_.resizable)&&!u.value&&e.border){const O=C.getBoundingClientRect(),w=document.body.style;O.width>12&&O.right-v.pageX<8?(w.cursor="col-resize",Fo(C,"is-sortable")&&(C.style.cursor="col-resize"),a.value=_):u.value||(w.cursor="",Fo(C,"is-sortable")&&(C.style.cursor="pointer"),a.value=null)}},g=()=>{tn&&(document.body.style.cursor="")},m=({order:v,sortOrders:_})=>{if(v==="")return _[0];const y=_.indexOf(v||null);return _[y>_.length-2?0:y+1]},b=(v,_,y)=>{var C;v.stopPropagation();const O=_.order===y?null:y||m(_),w=(C=v.target)==null?void 0:C.closest("th");if(w&&Fo(w,"noclick")){$o(w,"noclick");return}if(!_.sortable)return;const M=e.store.states;let T=M.sortProp.value,P;const R=M.sortingColumn.value;(R!==_||R===_&&R.order===null)&&(R&&(R.order=null),M.sortingColumn.value=_,T=_.property),O?P=_.order=O:P=_.order=null,M.sortProp.value=T,M.sortOrder.value=P,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:s,handleHeaderContextMenu:o,handleMouseDown:d,handleMouseMove:h,handleMouseOut:g,handleSortClick:b,handleFilterClick:i}}function c7(e){const t=qe(Ei),n=Qe("table");return{getHeaderRowStyle:a=>{const u=t==null?void 0:t.props.headerRowStyle;return typeof u=="function"?u.call(null,{rowIndex:a}):u},getHeaderRowClass:a=>{const u=[],c=t==null?void 0:t.props.headerRowClassName;return typeof c=="string"?u.push(c):typeof c=="function"&&u.push(c.call(null,{rowIndex:a})),u.join(" ")},getHeaderCellStyle:(a,u,c,d)=>{var h;let g=(h=t==null?void 0:t.props.headerCellStyle)!=null?h:{};typeof g=="function"&&(g=g.call(null,{rowIndex:a,columnIndex:u,row:c,column:d}));const m=Ev(u,d.fixed,e.store,c);return za(m,"left"),za(m,"right"),Object.assign({},g,m)},getHeaderCellClass:(a,u,c,d)=>{const h=Ov(n.b(),u,d.fixed,e.store,c),g=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...h];d.children||g.push("is-leaf"),d.sortable&&g.push("is-sortable");const m=t==null?void 0:t.props.headerCellClassName;return typeof m=="string"?g.push(m):typeof m=="function"&&g.push(m.call(null,{rowIndex:a,columnIndex:u,row:c,column:d})),g.push(n.e("cell")),g.filter(b=>!!b).join(" ")}}}const Q2=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,Q2(n.children))):t.push(n)}),t},f7=e=>{let t=1;const n=(s,o)=>{if(o&&(s.level=o.level+1,t{n(u,s),a+=u.colSpan}),s.colSpan=a}else s.colSpan=1};e.forEach(s=>{s.level=1,n(s,void 0)});const r=[];for(let s=0;s{s.children?(s.rowSpan=1,s.children.forEach(o=>o.isSubColumn=!0)):s.rowSpan=t-s.level+1,r[s.level-1].push(s)}),r};function d7(e){const t=qe(Ei),n=B(()=>f7(e.store.states.originColumns.value));return{isGroup:B(()=>{const s=n.value.length>1;return s&&t&&(t.state.isGroup.value=!0),s}),toggleAllSelection:s=>{s.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var h7=Ne({name:"ElTableHeader",components:{ElCheckbox:Ba},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=kt(),r=qe(Ei),i=Qe("table"),s=X({}),{onColumnsChange:o,onScrollableChange:a}=Z2(r);It(async()=>{await bt(),await bt();const{prop:T,order:P}=e.defaultSort;r==null||r.store.commit("sort",{prop:T,order:P,init:!0})});const{handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:d,handleMouseMove:h,handleMouseOut:g,handleSortClick:m,handleFilterClick:b}=u7(e,t),{getHeaderRowStyle:v,getHeaderRowClass:_,getHeaderCellStyle:y,getHeaderCellClass:C}=c7(e),{isGroup:O,toggleAllSelection:w,columnRows:M}=d7(e);return n.state={onColumnsChange:o,onScrollableChange:a},n.filterPanels=s,{ns:i,filterPanels:s,onColumnsChange:o,onScrollableChange:a,columnRows:M,getHeaderRowClass:_,getHeaderRowStyle:v,getHeaderCellClass:C,getHeaderCellStyle:y,handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:d,handleMouseMove:h,handleMouseOut:g,handleSortClick:m,handleFilterClick:b,isGroup:O,toggleAllSelection:w}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:i,getHeaderRowClass:s,getHeaderRowStyle:o,handleHeaderClick:a,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:d,handleSortClick:h,handleMouseOut:g,store:m,$parent:b}=this;let v=1;return Ye("thead",{class:{[e.is("group")]:t}},n.map((_,y)=>Ye("tr",{class:s(y),key:y,style:o(y)},_.map((C,O)=>(C.rowSpan>v&&(v=C.rowSpan),Ye("th",{class:i(y,O,_,C),colspan:C.colSpan,key:`${C.id}-thead`,rowspan:C.rowSpan,style:r(y,O,_,C),onClick:w=>a(w,C),onContextmenu:w=>u(w,C),onMousedown:w=>c(w,C),onMousemove:w=>d(w,C),onMouseout:g},[Ye("div",{class:["cell",C.filteredValue&&C.filteredValue.length>0?"highlight":""]},[C.renderHeader?C.renderHeader({column:C,$index:O,store:m,_self:b}):C.label,C.sortable&&Ye("span",{onClick:w=>h(w,C),class:"caret-wrapper"},[Ye("i",{onClick:w=>h(w,C,"ascending"),class:"sort-caret ascending"}),Ye("i",{onClick:w=>h(w,C,"descending"),class:"sort-caret descending"})]),C.filterable&&Ye(l7,{store:m,placement:C.filterPlacement||"bottom-start",column:C,upDataColumn:(w,M)=>{C[w]=M}})])]))))))}});function p7(e){const t=qe(Ei),n=X(""),r=X(Ye("div")),{nextZIndex:i}=fv(),s=(m,b,v)=>{var _;const y=t,C=Pp(m);let O;const w=(_=y==null?void 0:y.vnode.el)==null?void 0:_.dataset.prefix;C&&(O=B1({columns:e.store.states.columns.value},C,w),O&&(y==null||y.emit(`cell-${v}`,b,O,C,m))),y==null||y.emit(`row-${v}`,b,O,m)},o=(m,b)=>{s(m,b,"dblclick")},a=(m,b)=>{e.store.commit("setCurrentRow",b),s(m,b,"click")},u=(m,b)=>{s(m,b,"contextmenu")},c=Ra(m=>{e.store.commit("setHoverRow",m)},30),d=Ra(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:o,handleClick:a,handleContextMenu:u,handleMouseEnter:c,handleMouseLeave:d,handleCellMouseEnter:(m,b,v)=>{var _;const y=t,C=Pp(m),O=(_=y==null?void 0:y.vnode.el)==null?void 0:_.dataset.prefix;if(C){const R=B1({columns:e.store.states.columns.value},C,O),F=y.hoverState={cell:C,column:R,row:b};y==null||y.emit("cell-mouse-enter",F.row,F.column,F.cell,m)}if(!v)return;const w=m.target.querySelector(".cell");if(!(Fo(w,`${O}-tooltip`)&&w.childNodes.length))return;const M=document.createRange();M.setStart(w,0),M.setEnd(w,w.childNodes.length);const T=Math.round(M.getBoundingClientRect().width),P=(Number.parseInt(_g(w,"paddingLeft"),10)||0)+(Number.parseInt(_g(w,"paddingRight"),10)||0);(T+P>w.offsetWidth||w.scrollWidth>w.offsetWidth)&&KU(t==null?void 0:t.refs.tableWrapper,C,C.innerText||C.textContent,i,v)},handleCellMouseLeave:m=>{if(!Pp(m))return;const v=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",v==null?void 0:v.row,v==null?void 0:v.column,v==null?void 0:v.cell,m)},tooltipContent:n,tooltipTrigger:r}}function g7(e){const t=qe(Ei),n=Qe("table");return{getRowStyle:(c,d)=>{const h=t==null?void 0:t.props.rowStyle;return typeof h=="function"?h.call(null,{row:c,rowIndex:d}):h||null},getRowClass:(c,d)=>{const h=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&c===e.store.states.currentRow.value&&h.push("current-row"),e.stripe&&d%2===1&&h.push(n.em("row","striped"));const g=t==null?void 0:t.props.rowClassName;return typeof g=="string"?h.push(g):typeof g=="function"&&h.push(g.call(null,{row:c,rowIndex:d})),h},getCellStyle:(c,d,h,g)=>{const m=t==null?void 0:t.props.cellStyle;let b=m??{};typeof m=="function"&&(b=m.call(null,{rowIndex:c,columnIndex:d,row:h,column:g}));const v=Ev(d,e==null?void 0:e.fixed,e.store);return za(v,"left"),za(v,"right"),Object.assign({},b,v)},getCellClass:(c,d,h,g,m)=>{const b=Ov(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,m),v=[g.id,g.align,g.className,...b],_=t==null?void 0:t.props.cellClassName;return typeof _=="string"?v.push(_):typeof _=="function"&&v.push(_.call(null,{rowIndex:c,columnIndex:d,row:h,column:g})),v.push(n.e("cell")),v.filter(y=>!!y).join(" ")},getSpan:(c,d,h,g)=>{let m=1,b=1;const v=t==null?void 0:t.props.spanMethod;if(typeof v=="function"){const _=v({row:c,column:d,rowIndex:h,columnIndex:g});Array.isArray(_)?(m=_[0],b=_[1]):typeof _=="object"&&(m=_.rowspan,b=_.colspan)}return{rowspan:m,colspan:b}},getColspanRealWidth:(c,d,h)=>{if(d<1)return c[h].realWidth;const g=c.map(({realWidth:m,width:b})=>m||b).slice(h,h+d);return Number(g.reduce((m,b)=>Number(m)+Number(b),-1))}}}function m7(e){const t=qe(Ei),n=Qe("table"),{handleDoubleClick:r,handleClick:i,handleContextMenu:s,handleMouseEnter:o,handleMouseLeave:a,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:d,tooltipTrigger:h}=p7(e),{getRowStyle:g,getRowClass:m,getCellStyle:b,getCellClass:v,getSpan:_,getColspanRealWidth:y}=g7(e),C=B(()=>e.store.states.columns.value.findIndex(({type:P})=>P==="default")),O=(P,R)=>{const F=t.props.rowKey;return F?In(P,F):R},w=(P,R,F,D=!1)=>{const{tooltipEffect:V,tooltipOptions:A,store:U}=e,{indent:le,columns:ce}=U.states,te=m(P,R);let Z=!0;return F&&(te.push(n.em("row",`level-${F.level}`)),Z=F.display),Ye("tr",{style:[Z?null:{display:"none"},g(P,R)],class:te,key:O(P,R),onDblclick:Q=>r(Q,P),onClick:Q=>i(Q,P),onContextmenu:Q=>s(Q,P),onMouseenter:()=>o(R),onMouseleave:a},ce.value.map((Q,ye)=>{const{rowspan:Ee,colspan:Le}=_(P,Q,R,ye);if(!Ee||!Le)return null;const ue={...Q};ue.realWidth=y(ce.value,Le,ye);const Ze={store:e.store,_self:e.context||t,column:ue,row:P,$index:R,cellIndex:ye,expanded:D};ye===C.value&&F&&(Ze.treeNode={indent:F.level*le.value,level:F.level},typeof F.expanded=="boolean"&&(Ze.treeNode.expanded=F.expanded,"loading"in F&&(Ze.treeNode.loading=F.loading),"noLazyChildren"in F&&(Ze.treeNode.noLazyChildren=F.noLazyChildren)));const $e=`${R},${ye}`,Je=ue.columnKey||ue.rawColumnKey||"",Y=M(ye,Q,Ze),oe=Q.showOverflowTooltip&&wS({effect:V},A,Q.showOverflowTooltip);return Ye("td",{style:b(R,ye,P,Q),class:v(R,ye,P,Q,Le-1),key:`${Je}${$e}`,rowspan:Ee,colspan:Le,onMouseenter:de=>u(de,P,oe),onMouseleave:c},[Y])}))},M=(P,R,F)=>R.renderCell(F);return{wrappedRowRender:(P,R)=>{const F=e.store,{isRowExpanded:D,assertRowKey:V}=F,{treeData:A,lazyTreeNodeMap:U,childrenColumnName:le,rowKey:ce}=F.states,te=F.states.columns.value;if(te.some(({type:ie})=>ie==="expand")){const ie=D(P),Q=w(P,R,void 0,ie),ye=t.renderExpanded;return ie?ye?[[Q,Ye("tr",{key:`expanded-row__${Q.key}`},[Ye("td",{colspan:te.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[ye({row:P,$index:R,store:F,expanded:ie})])])]]:(console.error("[Element Error]renderExpanded is required."),Q):[[Q]]}else if(Object.keys(A.value).length){V();const ie=In(P,ce.value);let Q=A.value[ie],ye=null;Q&&(ye={expanded:Q.expanded,level:Q.level,display:!0},typeof Q.lazy=="boolean"&&(typeof Q.loaded=="boolean"&&Q.loaded&&(ye.noLazyChildren=!(Q.children&&Q.children.length)),ye.loading=Q.loading));const Ee=[w(P,R,ye)];if(Q){let Le=0;const ue=($e,Je)=>{$e&&$e.length&&Je&&$e.forEach(Y=>{const oe={display:Je.display&&Je.expanded,level:Je.level+1,expanded:!1,noLazyChildren:!1,loading:!1},de=In(Y,ce.value);if(de==null)throw new Error("For nested data item, row-key is required.");if(Q={...A.value[de]},Q&&(oe.expanded=Q.expanded,Q.level=Q.level||oe.level,Q.display=!!(Q.expanded&&oe.display),typeof Q.lazy=="boolean"&&(typeof Q.loaded=="boolean"&&Q.loaded&&(oe.noLazyChildren=!(Q.children&&Q.children.length)),oe.loading=Q.loading)),Le++,Ee.push(w(Y,R+Le,oe)),Q){const Oe=U.value[de]||Y[le.value];ue(Oe,Q)}})};Q.display=!0;const Ze=U.value[ie]||P[le.value];ue(Ze,Q)}return Ee}else return w(P,R,void 0)},tooltipContent:d,tooltipTrigger:h}}const v7={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 b7=Ne({name:"ElTableBody",props:v7,setup(e){const t=kt(),n=qe(Ei),r=Qe("table"),{wrappedRowRender:i,tooltipContent:s,tooltipTrigger:o}=m7(e),{onColumnsChange:a,onScrollableChange:u}=Z2(n);return Fe(e.store.states.hoverRow,(c,d)=>{if(!e.store.states.isComplex.value||!tn)return;let h=window.requestAnimationFrame;h||(h=g=>window.setTimeout(g,16)),h(()=>{const g=t==null?void 0:t.vnode.el,m=Array.from((g==null?void 0:g.children)||[]).filter(_=>_==null?void 0:_.classList.contains(`${r.e("row")}`)),b=m[d],v=m[c];b&&$o(b,"hover-row"),v&&To(v,"hover-row")})}),Ga(()=>{var c;(c=Wi)==null||c()}),{ns:r,onColumnsChange:a,onScrollableChange:u,wrappedRowRender:i,tooltipContent:s,tooltipTrigger:o}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return Ye("tbody",{},[n.reduce((r,i)=>r.concat(e(i,r.length)),[])])}});function Mv(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(i=>i.width===void 0)&&(n=[]);const r=i=>{const s={key:`${e.tableLayout}_${i.id}`,style:{},name:void 0};return t?s.style={width:`${i.width}px`}:s.name=i.id,s};return Ye("colgroup",{},n.map(i=>Ye("col",r(i))))}Mv.props=["columns","tableLayout"];function y7(){const e=qe(Ei),t=e==null?void 0:e.store,n=B(()=>t.states.fixedLeafColumnsLength.value),r=B(()=>t.states.rightFixedColumns.value.length),i=B(()=>t.states.columns.value.length),s=B(()=>t.states.fixedColumns.value.length),o=B(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:i,leftFixedCount:s,rightFixedCount:o,columns:t.states.columns}}function _7(e){const{columns:t}=y7(),n=Qe("table");return{getCellClasses:(s,o)=>{const a=s[o],u=[n.e("cell"),a.id,a.align,a.labelClassName,...Ov(n.b(),o,a.fixed,e.store)];return a.className&&u.push(a.className),a.children||u.push(n.is("leaf")),u},getCellStyles:(s,o)=>{const a=Ev(o,s.fixed,e.store);return za(a,"left"),za(a,"right"),a},columns:t}}var w7=Ne({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(e){const{getCellClasses:t,getCellStyles:n,columns:r}=_7(e);return{ns:Qe("table"),getCellClasses:t,getCellStyles:n,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:i,ns:s}=this,o=this.store.states.data.value;let a=[];return r?a=r({columns:e,data:o}):e.forEach((u,c)=>{if(c===0){a[c]=i;return}const d=o.map(b=>Number(b[u.property])),h=[];let g=!0;d.forEach(b=>{if(!Number.isNaN(+b)){g=!1;const v=`${b}`.split(".")[1];h.push(v?v.length:0)}});const m=Math.max.apply(null,h);g?a[c]="":a[c]=d.reduce((b,v)=>{const _=Number(v);return Number.isNaN(+_)?b:Number.parseFloat((b+v).toFixed(Math.min(m,20)))},0)}),Ye("table",{class:s.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[Mv({columns:e}),Ye("tbody",[Ye("tr",{},[...e.map((u,c)=>Ye("td",{key:c,colspan:u.colSpan,rowspan:u.rowSpan,class:n(e,c),style:t(u,c)},[Ye("div",{class:["cell",u.labelClassName]},[a[c]])]))])])])}});function x7(e){return{setCurrentRow:d=>{e.commit("setCurrentRow",d)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(d,h)=>{e.toggleRowSelection(d,h,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:d=>{e.clearFilter(d)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(d,h)=>{e.toggleRowExpansionAdapter(d,h)},clearSort:()=>{e.clearSort()},sort:(d,h)=>{e.commit("sort",{prop:d,order:h})}}}function C7(e,t,n,r){const i=X(!1),s=X(null),o=X(!1),a=ie=>{o.value=ie},u=X({width:null,height:null,headerHeight:null}),c=X(!1),d={display:"inline-block",verticalAlign:"middle"},h=X(),g=X(0),m=X(0),b=X(0),v=X(0);Ns(()=>{t.setHeight(e.height)}),Ns(()=>{t.setMaxHeight(e.maxHeight)}),Fe(()=>[e.currentRowKey,n.states.rowKey],([ie,Q])=>{!S(Q)||!S(ie)||n.setCurrentRowKey(`${ie}`)},{immediate:!0}),Fe(()=>e.data,ie=>{r.store.commit("setData",ie)},{immediate:!0,deep:!0}),Ns(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const _=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},y=(ie,Q)=>{const{pixelX:ye,pixelY:Ee}=Q;Math.abs(ye)>=Math.abs(Ee)&&(r.refs.bodyWrapper.scrollLeft+=Q.pixelX/5)},C=B(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),O=B(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),w=()=>{C.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(R)};It(async()=>{await bt(),n.updateColumns(),F(),requestAnimationFrame(w);const ie=r.vnode.el,Q=r.refs.headerWrapper;e.flexible&&ie&&ie.parentElement&&(ie.parentElement.style.minWidth="0"),u.value={width:h.value=ie.offsetWidth,height:ie.offsetHeight,headerHeight:e.showHeader&&Q?Q.offsetHeight:null},n.states.columns.value.forEach(ye=>{ye.filteredValue&&ye.filteredValue.length&&r.store.commit("filterChange",{column:ye,values:ye.filteredValue,silent:!0})}),r.$ready=!0});const M=(ie,Q)=>{if(!ie)return;const ye=Array.from(ie.classList).filter(Ee=>!Ee.startsWith("is-scrolling-"));ye.push(t.scrollX.value?Q:"is-scrolling-none"),ie.className=ye.join(" ")},T=ie=>{const{tableWrapper:Q}=r.refs;M(Q,ie)},P=ie=>{const{tableWrapper:Q}=r.refs;return!!(Q&&Q.classList.contains(ie))},R=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const $e="is-scrolling-none";P($e)||T($e);return}const ie=r.refs.scrollBarRef.wrapRef;if(!ie)return;const{scrollLeft:Q,offsetWidth:ye,scrollWidth:Ee}=ie,{headerWrapper:Le,footerWrapper:ue}=r.refs;Le&&(Le.scrollLeft=Q),ue&&(ue.scrollLeft=Q);const Ze=Ee-ye-1;Q>=Ze?T("is-scrolling-right"):T(Q===0?"is-scrolling-left":"is-scrolling-middle")},F=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&_i(r.refs.scrollBarRef.wrapRef,"scroll",R,{passive:!0}),e.fit?js(r.vnode.el,D):_i(window,"resize",D),js(r.refs.bodyWrapper,()=>{var ie,Q;D(),(Q=(ie=r.refs)==null?void 0:ie.scrollBarRef)==null||Q.update()}))},D=()=>{var ie,Q,ye;const Ee=r.vnode.el;if(!r.$ready||!Ee)return;let Le=!1;const{width:ue,height:Ze,headerHeight:$e}=u.value,Je=h.value=Ee.offsetWidth;ue!==Je&&(Le=!0);const Y=Ee.offsetHeight;(e.height||C.value)&&Ze!==Y&&(Le=!0);const oe=e.tableLayout==="fixed"?r.refs.headerWrapper:(ie=r.refs.tableHeaderRef)==null?void 0:ie.$el;e.showHeader&&(oe==null?void 0:oe.offsetHeight)!==$e&&(Le=!0),g.value=((Q=r.refs.tableWrapper)==null?void 0:Q.scrollHeight)||0,b.value=(oe==null?void 0:oe.scrollHeight)||0,v.value=((ye=r.refs.footerWrapper)==null?void 0:ye.offsetHeight)||0,m.value=g.value-b.value-v.value,Le&&(u.value={width:Je,height:Y,headerHeight:e.showHeader&&(oe==null?void 0:oe.offsetHeight)||0},w())},V=ns(),A=B(()=>{const{bodyWidth:ie,scrollY:Q,gutterWidth:ye}=t;return ie.value?`${ie.value-(Q.value?ye:0)}px`:""}),U=B(()=>e.maxHeight?"fixed":e.tableLayout),le=B(()=>{if(e.data&&e.data.length)return null;let ie="100%";e.height&&m.value&&(ie=`${m.value}px`);const Q=h.value;return{width:Q?`${Q}px`:"",height:ie}}),ce=B(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),te=B(()=>{if(e.height)return{height:"100%"};if(e.maxHeight){if(Number.isNaN(Number(e.maxHeight)))return{maxHeight:`calc(${e.maxHeight} - ${b.value+v.value}px)`};{const ie=e.maxHeight;if(g.value>=Number(ie))return{maxHeight:`${g.value-b.value-v.value}px`}}}return{}});return{isHidden:i,renderExpanded:s,setDragVisible:a,isGroup:c,handleMouseLeave:_,handleHeaderFooterMousewheel:y,tableSize:V,emptyBlockStyle:le,handleFixedMousewheel:(ie,Q)=>{const ye=r.refs.bodyWrapper;if(Math.abs(Q.spinY)>0){const Ee=ye.scrollTop;Q.pixelY<0&&Ee!==0&&ie.preventDefault(),Q.pixelY>0&&ye.scrollHeight-ye.clientHeight>Ee&&ie.preventDefault(),ye.scrollTop+=Math.ceil(Q.pixelY/5)}else ye.scrollLeft+=Math.ceil(Q.pixelX/5)},resizeProxyVisible:o,bodyWidth:A,resizeState:u,doLayout:w,tableBodyStyles:O,tableLayout:U,scrollbarViewStyle:d,tableInnerStyle:ce,scrollbarStyle:te}}function S7(e){const t=X(),n=()=>{const i=e.vnode.el.querySelector(".hidden-columns"),s={childList:!0,subtree:!0},o=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{o.forEach(a=>a())}),t.value.observe(i,s)};It(()=>{n()}),Ga(()=>{var r;(r=t.value)==null||r.disconnect()})}var O7={data:{type:Array,default:()=>[]},size:Za,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:{type:Boolean,default:!1},flexible:Boolean};const E7=()=>{const e=X(),t=(s,o)=>{const a=e.value;a&&a.scrollTo(s,o)},n=(s,o)=>{const a=e.value;a&&jn(o)&&["Top","Left"].includes(s)&&a[`setScroll${s}`](o)};return{scrollBarRef:e,scrollTo:t,setScrollTop:s=>n("Top",s),setScrollLeft:s=>n("Left",s)}};let M7=1;const T7=Ne({name:"ElTable",directives:{Mousewheel:zj},components:{TableHeader:h7,TableBody:b7,TableFooter:w7,ElScrollbar:gv,hColgroup:Mv},props:O7,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(e){const{t}=Xo(),n=Qe("table"),r=kt();sn(Ei,r);const i=QU(r,e);r.store=i;const s=new t7({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=s;const o=B(()=>(i.states.data.value||[]).length===0),{setCurrentRow:a,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:h,toggleAllSelection:g,toggleRowExpansion:m,clearSort:b,sort:v}=x7(i),{isHidden:_,renderExpanded:y,setDragVisible:C,isGroup:O,handleMouseLeave:w,handleHeaderFooterMousewheel:M,tableSize:T,emptyBlockStyle:P,handleFixedMousewheel:R,resizeProxyVisible:F,bodyWidth:D,resizeState:V,doLayout:A,tableBodyStyles:U,tableLayout:le,scrollbarViewStyle:ce,tableInnerStyle:te,scrollbarStyle:Z}=C7(e,s,i,r),{scrollBarRef:ie,scrollTo:Q,setScrollLeft:ye,setScrollTop:Ee}=E7(),Le=Ra(A,50),ue=`${n.namespace.value}-table_${M7++}`;r.tableId=ue,r.state={isGroup:O,resizeState:V,doLayout:A,debouncedUpdateLayout:Le};const Ze=B(()=>e.sumText||t("el.table.sumText")),$e=B(()=>e.emptyText||t("el.table.emptyText"));return S7(r),{ns:n,layout:s,store:i,handleHeaderFooterMousewheel:M,handleMouseLeave:w,tableId:ue,tableSize:T,isHidden:_,isEmpty:o,renderExpanded:y,resizeProxyVisible:F,resizeState:V,isGroup:O,bodyWidth:D,tableBodyStyles:U,emptyBlockStyle:P,debouncedUpdateLayout:Le,handleFixedMousewheel:R,setCurrentRow:a,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:h,toggleAllSelection:g,toggleRowExpansion:m,clearSort:b,doLayout:A,sort:v,t,setDragVisible:C,context:r,computedSumText:Ze,computedEmptyText:$e,tableLayout:le,scrollbarViewStyle:ce,tableInnerStyle:te,scrollbarStyle:Z,scrollBarRef:ie,scrollTo:Q,setScrollLeft:ye,setScrollTop:Ee}}}),A7=["data-prefix"],P7={ref:"hiddenColumns",class:"hidden-columns"};function R7(e,t,n,r,i,s){const o=Yt("hColgroup"),a=Yt("table-header"),u=Yt("table-body"),c=Yt("el-scrollbar"),d=Yt("table-footer"),h=Tm("mousewheel");return K(),_e("div",{ref:"tableWrapper",class:he([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Vt(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...g)=>e.handleMouseLeave&&e.handleMouseLeave(...g))},[L("div",{class:he(e.ns.e("inner-wrapper")),style:Vt(e.tableInnerStyle)},[L("div",P7,[We(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?gn((K(),_e("div",{key:0,ref:"headerWrapper",class:he(e.ns.e("header-wrapper"))},[L("table",{ref:"tableHeader",class:he(e.ns.e("header")),style:Vt(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[W(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),W(a,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[h,e.handleHeaderFooterMousewheel]]):Ie("v-if",!0),L("div",{ref:"bodyWrapper",class:he(e.ns.e("body-wrapper"))},[W(c,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:z(()=>[L("table",{ref:"tableBody",class:he(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Vt({width:e.bodyWidth,tableLayout:e.tableLayout})},[W(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(K(),Me(a,{key:0,ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):Ie("v-if",!0),W(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),e.isEmpty?(K(),_e("div",{key:0,ref:"emptyBlock",style:Vt(e.emptyBlockStyle),class:he(e.ns.e("empty-block"))},[L("span",{class:he(e.ns.e("empty-text"))},[We(e.$slots,"empty",{},()=>[re(pt(e.computedEmptyText),1)])],2)],6)):Ie("v-if",!0),e.$slots.append?(K(),_e("div",{key:1,ref:"appendWrapper",class:he(e.ns.e("append-wrapper"))},[We(e.$slots,"append")],2)):Ie("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?gn((K(),_e("div",{key:1,ref:"footerWrapper",class:he(e.ns.e("footer-wrapper"))},[W(d,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:Vt(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[Wr,!e.isEmpty],[h,e.handleHeaderFooterMousewheel]]):Ie("v-if",!0),e.border||e.isGroup?(K(),_e("div",{key:2,class:he(e.ns.e("border-left-patch"))},null,2)):Ie("v-if",!0)],6),gn(L("div",{ref:"resizeProxy",class:he(e.ns.e("column-resize-proxy"))},null,2),[[Wr,e.resizeProxyVisible]])],46,A7)}var k7=Et(T7,[["render",R7],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const L7={selection:"table-column--selection",expand:"table__expand-column"},I7={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:""}},F7=e=>L7[e]||"",$7={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return Ye(Ba,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:n,$index:r}){return Ye(Ba,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:i=>i.stopPropagation(),modelValue:n.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return typeof r=="number"?n=t+r:typeof r=="function"&&(n=r(t)),Ye("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,i=[r.e("expand-icon")];return n&&i.push(r.em("expand-icon","expanded")),Ye("div",{class:i,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Ye(wn,null,{default:()=>[Ye(Qm)]})]})},sortable:!1,resizable:!1}};function D7({row:e,column:t,$index:n}){var r;const i=t.property,s=i&&Of(e,i).value;return t&&t.formatter?t.formatter(e,t,s,n):((r=s==null?void 0:s.toString)==null?void 0:r.call(s))||""}function N7({row:e,treeNode:t,store:n},r=!1){const{ns:i}=n;if(!t)return r?[Ye("span",{class:i.e("placeholder")})]:null;const s=[],o=function(a){a.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&s.push(Ye("span",{class:i.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const a=[i.e("expand-icon"),t.expanded?i.em("expand-icon","expanded"):""];let u=Qm;t.loading&&(u=tv),s.push(Ye("div",{class:a,onClick:o},{default:()=>[Ye(wn,{class:{[i.is("loading")]:t.loading}},{default:()=>[Ye(u)]})]}))}else s.push(Ye("span",{class:i.e("placeholder")}));return s}function W1(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function B7(e,t){const n=kt();return{registerComplexWatchers:()=>{const s=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},a=W1(s,o);Object.keys(a).forEach(u=>{const c=o[u];wt(t,c)&&Fe(()=>t[c],d=>{let h=d;c==="width"&&u==="realWidth"&&(h=Sv(d)),c==="minWidth"&&u==="realMinWidth"&&(h=q2(d)),n.columnConfig.value[c]=h,n.columnConfig.value[u]=h;const g=c==="fixed";e.value.store.scheduleLayout(g)})})},registerNormalWatchers:()=>{const s=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],o={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},a=W1(s,o);Object.keys(a).forEach(u=>{const c=o[u];wt(t,c)&&Fe(()=>t[c],d=>{n.columnConfig.value[u]=d})})}}}function z7(e,t,n){const r=kt(),i=X(""),s=X(!1),o=X(),a=X(),u=Qe("table");Ns(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),Ns(()=>{a.value=e.headerAlign?`is-${e.headerAlign}`:o.value,a.value});const c=B(()=>{let w=r.vnode.vParent||r.parent;for(;w&&!w.tableId&&!w.columnId;)w=w.vnode.vParent||w.parent;return w}),d=B(()=>{const{store:w}=r.parent;if(!w)return!1;const{treeData:M}=w.states,T=M.value;return T&&Object.keys(T).length>0}),h=X(Sv(e.width)),g=X(q2(e.minWidth)),m=w=>(h.value&&(w.width=h.value),g.value&&(w.minWidth=g.value),!h.value&&g.value&&(w.width=void 0),w.minWidth||(w.minWidth=80),w.realWidth=Number(w.width===void 0?w.minWidth:w.width),w),b=w=>{const M=w.type,T=$7[M]||{};Object.keys(T).forEach(R=>{const F=T[R];R!=="className"&&F!==void 0&&(w[R]=F)});const P=F7(M);if(P){const R=`${S(u.namespace)}-${P}`;w.className=w.className?`${w.className} ${R}`:R}return w},v=w=>{Array.isArray(w)?w.forEach(T=>M(T)):M(w);function M(T){var P;((P=T==null?void 0:T.type)==null?void 0:P.name)==="ElTableColumn"&&(T.vParent=r)}};return{columnId:i,realAlign:o,isSubColumn:s,realHeaderAlign:a,columnOrTableParent:c,setColumnWidth:m,setColumnForcedProps:b,setColumnRenders:w=>{e.renderHeader||w.type!=="selection"&&(w.renderHeader=T=>{r.columnConfig.value.label;const P=t.header;return P?P(T):w.label});let M=w.renderCell;return w.type==="expand"?(w.renderCell=T=>Ye("div",{class:"cell"},[M(T)]),n.value.renderExpanded=T=>t.default?t.default(T):t.default):(M=M||D7,w.renderCell=T=>{let P=null;if(t.default){const U=t.default(T);P=U.some(le=>le.type!==ar)?U:M(T)}else P=M(T);const{columns:R}=n.value.store.states,F=R.value.findIndex(U=>U.type==="default"),D=d.value&&T.cellIndex===F,V=N7(T,D),A={class:"cell",style:{}};return w.showOverflowTooltip&&(A.class=`${A.class} ${S(u.namespace)}-tooltip`,A.style={width:`${(T.column.realWidth||Number(T.column.width))-1}px`}),v(P),Ye("div",A,[V,P])}),w},getPropsData:(...w)=>w.reduce((M,T)=>(Array.isArray(T)&&T.forEach(P=>{M[P]=e[P]}),M),{}),getColumnElIndex:(w,M)=>Array.prototype.indexOf.call(w,M),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var H7={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:[Boolean,Object],fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let W7=1;var eO=Ne({name:"ElTableColumn",components:{ElCheckbox:Ba},props:H7,setup(e,{slots:t}){const n=kt(),r=X({}),i=B(()=>{let O=n.parent;for(;O&&!O.tableId;)O=O.parent;return O}),{registerNormalWatchers:s,registerComplexWatchers:o}=B7(i,e),{columnId:a,isSubColumn:u,realHeaderAlign:c,columnOrTableParent:d,setColumnWidth:h,setColumnForcedProps:g,setColumnRenders:m,getPropsData:b,getColumnElIndex:v,realAlign:_,updateColumnOrder:y}=z7(e,t,i),C=d.value;a.value=`${C.tableId||C.columnId}_column_${W7++}`,Ya(()=>{u.value=i.value!==C;const O=e.type||"default",w=e.sortable===""?!0:e.sortable,M={...I7[O],id:a.value,type:O,property:e.prop||e.property,align:_,headerAlign:c,showOverflowTooltip:e.showOverflowTooltip,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:w,index:e.index,rawColumnKey:n.vnode.key};let D=b(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);D=WU(M,D),D=jU(m,h,g)(D),r.value=D,s(),o()}),It(()=>{var O;const w=d.value,M=u.value?w.vnode.el.children:(O=w.refs.hiddenColumns)==null?void 0:O.children,T=()=>v(M||[],n.vnode.el);r.value.getColumnIndex=T,T()>-1&&i.value.store.commit("insertColumn",r.value,u.value?w.columnConfig.value:null,y)}),An(()=>{i.value.store.commit("removeColumn",r.value,u.value?C.columnConfig.value:null,y)}),n.columnId=a.value,n.columnConfig=r},render(){var e,t,n;try{const r=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),i=[];if(Array.isArray(r))for(const o of r)((n=o.type)==null?void 0:n.name)==="ElTableColumn"||o.shapeFlag&2?i.push(o):o.type===it&&Array.isArray(o.children)&&o.children.forEach(a=>{(a==null?void 0:a.patchFlag)!==1024&&!mt(a==null?void 0:a.children)&&i.push(a)});return Ye("div",i)}catch{return Ye("div",[])}}});const tO=Pn(k7,{TableColumn:eO}),nO=Oi(eO);const V7=y4(),j7=z$(V7),U7=L("button",{class:"border-none w-full bg-transparent cursor-pointer",style:{height:"var(--ep-menu-item-height)"}},[L("i",{"inline-flex":"",i:"dark:ep-moon ep-sunny"})],-1),K7={__name:"BaseHeader",setup(e){return(t,n)=>{const r=gU,i=mU,s=pU;return K(),Me(s,{class:"el-menu-demo",mode:"horizontal",router:!0},{default:z(()=>[W(r,{index:"/input"},{default:z(()=>[re("SOCRATES")]),_:1}),W(i,{index:"/help"},{title:z(()=>[re("Help")]),default:z(()=>[W(r,{index:"/help#Inputs"},{default:z(()=>[re("Inputs")]),_:1}),W(r,{index:"/help#Results"},{default:z(()=>[re("Results")]),_:1})]),_:1}),W(r,{index:"/contact"},{default:z(()=>[re("Contact")]),_:1}),W(r,{index:"/about"},{default:z(()=>[re("About")]),_:1}),W(r,{h:"full",onClick:n[0]||(n[0]=o=>S(j7)())},{default:z(()=>[U7]),_:1})]),_:1})}}};/*! + * vue-router v4.2.1 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */const ya=typeof window<"u";function q7(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ht=Object.assign;function Rp(e,t){const n={};for(const r in t){const i=t[r];n[r]=ai(i)?i.map(e):e(i)}return n}const Xl=()=>{},ai=Array.isArray,Y7=/\/$/,G7=e=>e.replace(Y7,"");function kp(e,t,n="/"){let r,i={},s="",o="";const a=t.indexOf("#");let u=t.indexOf("?");return a=0&&(u=-1),u>-1&&(r=t.slice(0,u),s=t.slice(u+1,a>-1?a:t.length),i=e(s)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=Q7(r??t,n),{fullPath:r+(s&&"?")+s+o,path:r,query:i,hash:o}}function X7(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function V1(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function J7(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Ha(t.matched[r],n.matched[i])&&rO(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ha(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function rO(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Z7(e[n],t[n]))return!1;return!0}function Z7(e,t){return ai(e)?j1(e,t):ai(t)?j1(t,e):e===t}function j1(e,t){return ai(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Q7(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let s=n.length-1,o,a;for(o=0;o1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var Su;(function(e){e.pop="pop",e.push="push"})(Su||(Su={}));var Jl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Jl||(Jl={}));function eK(e){if(!e)if(ya){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),G7(e)}const tK=/^[^#]+#/;function nK(e,t){return e.replace(tK,"#")+t}function rK(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const jd=()=>({left:window.pageXOffset,top:window.pageYOffset});function iK(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=rK(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function U1(e,t){return(history.state?history.state.position-t:-1)+e}const zg=new Map;function sK(e,t){zg.set(e,t)}function oK(e){const t=zg.get(e);return zg.delete(e),t}let aK=()=>location.protocol+"//"+location.host;function iO(e,t){const{pathname:n,search:r,hash:i}=t,s=e.indexOf("#");if(s>-1){let a=i.includes(e.slice(s))?e.slice(s).length:1,u=i.slice(a);return u[0]!=="/"&&(u="/"+u),V1(u,"")}return V1(n,e)+r+i}function lK(e,t,n,r){let i=[],s=[],o=null;const a=({state:g})=>{const m=iO(e,location),b=n.value,v=t.value;let _=0;if(g){if(n.value=m,t.value=g,o&&o===b){o=null;return}_=v?g.position-v.position:0}else r(m);i.forEach(y=>{y(n.value,b,{delta:_,type:Su.pop,direction:_?_>0?Jl.forward:Jl.back:Jl.unknown})})};function u(){o=n.value}function c(g){i.push(g);const m=()=>{const b=i.indexOf(g);b>-1&&i.splice(b,1)};return s.push(m),m}function d(){const{history:g}=window;g.state&&g.replaceState(Ht({},g.state,{scroll:jd()}),"")}function h(){for(const g of s)g();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:u,listen:c,destroy:h}}function K1(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?jd():null}}function uK(e){const{history:t,location:n}=window,r={value:iO(e,n)},i={value:t.state};i.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(u,c,d){const h=e.indexOf("#"),g=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+u:aK()+e+u;try{t[d?"replaceState":"pushState"](c,"",g),i.value=c}catch(m){console.error(m),n[d?"replace":"assign"](g)}}function o(u,c){const d=Ht({},t.state,K1(i.value.back,u,i.value.forward,!0),c,{position:i.value.position});s(u,d,!0),r.value=u}function a(u,c){const d=Ht({},i.value,t.state,{forward:u,scroll:jd()});s(d.current,d,!0);const h=Ht({},K1(r.value,u,null),{position:d.position+1},c);s(u,h,!1),r.value=u}return{location:r,state:i,push:a,replace:o}}function cK(e){e=eK(e);const t=uK(e),n=lK(e,t.state,t.location,t.replace);function r(s,o=!0){o||n.pauseListeners(),history.go(s)}const i=Ht({location:"",base:e,go:r,createHref:nK.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function fK(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),cK(e)}function dK(e){return typeof e=="string"||e&&typeof e=="object"}function sO(e){return typeof e=="string"||typeof e=="symbol"}const _s={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},oO=Symbol("");var q1;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(q1||(q1={}));function Wa(e,t){return Ht(new Error,{type:e,[oO]:!0},t)}function Ni(e,t){return e instanceof Error&&oO in e&&(t==null||!!(e.type&t))}const Y1="[^/]+?",hK={sensitive:!1,strict:!1,start:!0,end:!0},pK=/[.+*?^${}()[\]/\\]/g;function gK(e,t){const n=Ht({},hK,t),r=[];let i=n.start?"^":"";const s=[];for(const c of e){const d=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let h=0;ht.length?t.length===1&&t[0]===40+40?1:-1:0}function vK(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const bK={type:0,value:""},yK=/[a-zA-Z0-9_]/;function _K(e){if(!e)return[[]];if(e==="/")return[[bK]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${c}": ${m}`)}let n=0,r=n;const i=[];let s;function o(){s&&i.push(s),s=[]}let a=0,u,c="",d="";function h(){c&&(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function g(){c+=u}for(;a{o(C)}:Xl}function o(d){if(sO(d)){const h=r.get(d);h&&(r.delete(d),n.splice(n.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=n.indexOf(d);h>-1&&(n.splice(h,1),d.record.name&&r.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function a(){return n}function u(d){let h=0;for(;h=0&&(d.record.path!==n[h].record.path||!aO(d,n[h]));)h++;n.splice(h,0,d),d.record.name&&!J1(d)&&r.set(d.record.name,d)}function c(d,h){let g,m={},b,v;if("name"in d&&d.name){if(g=r.get(d.name),!g)throw Wa(1,{location:d});v=g.record.name,m=Ht(X1(h.params,g.keys.filter(C=>!C.optional).map(C=>C.name)),d.params&&X1(d.params,g.keys.map(C=>C.name))),b=g.stringify(m)}else if("path"in d)b=d.path,g=n.find(C=>C.re.test(b)),g&&(m=g.parse(b),v=g.record.name);else{if(g=h.name?r.get(h.name):n.find(C=>C.re.test(h.path)),!g)throw Wa(1,{location:d,currentLocation:h});v=g.record.name,m=Ht({},h.params,d.params),b=g.stringify(m)}const _=[];let y=g;for(;y;)_.unshift(y.record),y=y.parent;return{name:v,path:b,params:m,matched:_,meta:OK(_)}}return e.forEach(d=>s(d)),{addRoute:s,resolve:c,removeRoute:o,getRoutes:a,getRecordMatcher:i}}function X1(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function CK(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:SK(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function SK(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function J1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function OK(e){return e.reduce((t,n)=>Ht(t,n.meta),{})}function Z1(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function aO(e,t){return t.children.some(n=>n===e||aO(e,n))}const lO=/#/g,EK=/&/g,MK=/\//g,TK=/=/g,AK=/\?/g,uO=/\+/g,PK=/%5B/g,RK=/%5D/g,cO=/%5E/g,kK=/%60/g,fO=/%7B/g,LK=/%7C/g,dO=/%7D/g,IK=/%20/g;function Tv(e){return encodeURI(""+e).replace(LK,"|").replace(PK,"[").replace(RK,"]")}function FK(e){return Tv(e).replace(fO,"{").replace(dO,"}").replace(cO,"^")}function Hg(e){return Tv(e).replace(uO,"%2B").replace(IK,"+").replace(lO,"%23").replace(EK,"%26").replace(kK,"`").replace(fO,"{").replace(dO,"}").replace(cO,"^")}function $K(e){return Hg(e).replace(TK,"%3D")}function DK(e){return Tv(e).replace(lO,"%23").replace(AK,"%3F")}function NK(e){return e==null?"":DK(e).replace(MK,"%2F")}function ld(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function BK(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;is&&Hg(s)):[r&&Hg(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function zK(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ai(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const HK=Symbol(""),ew=Symbol(""),Av=Symbol(""),hO=Symbol(""),Wg=Symbol("");function Sl(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Es(e,t,n,r,i){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,a)=>{const u=h=>{h===!1?a(Wa(4,{from:n,to:t})):h instanceof Error?a(h):dK(h)?a(Wa(2,{from:t,to:h})):(s&&r.enterCallbacks[i]===s&&typeof h=="function"&&s.push(h),o())},c=e.call(r&&r.instances[i],t,n,u);let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(h=>a(h))})}function Lp(e,t,n,r){const i=[];for(const s of e)for(const o in s.components){let a=s.components[o];if(!(t!=="beforeRouteEnter"&&!s.instances[o]))if(WK(a)){const c=(a.__vccOpts||a)[t];c&&i.push(Es(c,n,r,s,o))}else{let u=a();i.push(()=>u.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${s.path}"`));const d=q7(c)?c.default:c;s.components[o]=d;const g=(d.__vccOpts||d)[t];return g&&Es(g,n,r,s,o)()}))}}return i}function WK(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function tw(e){const t=qe(Av),n=qe(hO),r=B(()=>t.resolve(S(e.to))),i=B(()=>{const{matched:u}=r.value,{length:c}=u,d=u[c-1],h=n.matched;if(!d||!h.length)return-1;const g=h.findIndex(Ha.bind(null,d));if(g>-1)return g;const m=nw(u[c-2]);return c>1&&nw(d)===m&&h[h.length-1].path!==m?h.findIndex(Ha.bind(null,u[c-2])):g}),s=B(()=>i.value>-1&&KK(n.params,r.value.params)),o=B(()=>i.value>-1&&i.value===n.matched.length-1&&rO(n.params,r.value.params));function a(u={}){return UK(u)?t[S(e.replace)?"replace":"push"](S(e.to)).catch(Xl):Promise.resolve()}return{route:r,href:B(()=>r.value.href),isActive:s,isExactActive:o,navigate:a}}const VK=Ne({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:tw,setup(e,{slots:t}){const n=vn(tw(e)),{options:r}=qe(Av),i=B(()=>({[rw(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[rw(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:Ye("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},s)}}}),jK=VK;function UK(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function KK(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!ai(i)||i.length!==r.length||r.some((s,o)=>s!==i[o]))return!1}return!0}function nw(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const rw=(e,t,n)=>e??t??n,qK=Ne({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=qe(Wg),i=B(()=>e.route||r.value),s=qe(ew,0),o=B(()=>{let c=S(s);const{matched:d}=i.value;let h;for(;(h=d[c])&&!h.components;)c++;return c}),a=B(()=>i.value.matched[o.value]);sn(ew,B(()=>o.value+1)),sn(HK,a),sn(Wg,i);const u=X();return Fe(()=>[u.value,a.value,e.name],([c,d,h],[g,m,b])=>{d&&(d.instances[h]=c,m&&m!==d&&c&&c===g&&(d.leaveGuards.size||(d.leaveGuards=m.leaveGuards),d.updateGuards.size||(d.updateGuards=m.updateGuards))),c&&d&&(!m||!Ha(d,m)||!g)&&(d.enterCallbacks[h]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=i.value,d=e.name,h=a.value,g=h&&h.components[d];if(!g)return iw(n.default,{Component:g,route:c});const m=h.props[d],b=m?m===!0?c.params:typeof m=="function"?m(c):m:null,_=Ye(g,Ht({},b,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(h.instances[d]=null)},ref:u}));return iw(n.default,{Component:_,route:c})||_}}});function iw(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const pO=qK;function YK(e){const t=xK(e.routes,e),n=e.parseQuery||BK,r=e.stringifyQuery||Q1,i=e.history,s=Sl(),o=Sl(),a=Sl(),u=$s(_s);let c=_s;ya&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Rp.bind(null,Y=>""+Y),h=Rp.bind(null,NK),g=Rp.bind(null,ld);function m(Y,oe){let de,Oe;return sO(Y)?(de=t.getRecordMatcher(Y),Oe=oe):Oe=Y,t.addRoute(Oe,de)}function b(Y){const oe=t.getRecordMatcher(Y);oe&&t.removeRoute(oe)}function v(){return t.getRoutes().map(Y=>Y.record)}function _(Y){return!!t.getRecordMatcher(Y)}function y(Y,oe){if(oe=Ht({},oe||u.value),typeof Y=="string"){const q=kp(n,Y,oe.path),se=t.resolve({path:q.path},oe),pe=i.createHref(q.fullPath);return Ht(q,se,{params:g(se.params),hash:ld(q.hash),redirectedFrom:void 0,href:pe})}let de;if("path"in Y)de=Ht({},Y,{path:kp(n,Y.path,oe.path).path});else{const q=Ht({},Y.params);for(const se in q)q[se]==null&&delete q[se];de=Ht({},Y,{params:h(q)}),oe.params=h(oe.params)}const Oe=t.resolve(de,oe),Ve=Y.hash||"";Oe.params=d(g(Oe.params));const $=X7(r,Ht({},Y,{hash:FK(Ve),path:Oe.path})),H=i.createHref($);return Ht({fullPath:$,hash:Ve,query:r===Q1?zK(Y.query):Y.query||{}},Oe,{redirectedFrom:void 0,href:H})}function C(Y){return typeof Y=="string"?kp(n,Y,u.value.path):Ht({},Y)}function O(Y,oe){if(c!==Y)return Wa(8,{from:oe,to:Y})}function w(Y){return P(Y)}function M(Y){return w(Ht(C(Y),{replace:!0}))}function T(Y){const oe=Y.matched[Y.matched.length-1];if(oe&&oe.redirect){const{redirect:de}=oe;let Oe=typeof de=="function"?de(Y):de;return typeof Oe=="string"&&(Oe=Oe.includes("?")||Oe.includes("#")?Oe=C(Oe):{path:Oe},Oe.params={}),Ht({query:Y.query,hash:Y.hash,params:"path"in Oe?{}:Y.params},Oe)}}function P(Y,oe){const de=c=y(Y),Oe=u.value,Ve=Y.state,$=Y.force,H=Y.replace===!0,q=T(de);if(q)return P(Ht(C(q),{state:typeof q=="object"?Ht({},Ve,q.state):Ve,force:$,replace:H}),oe||de);const se=de;se.redirectedFrom=oe;let pe;return!$&&J7(r,Oe,de)&&(pe=Wa(16,{to:se,from:Oe}),Ee(Oe,Oe,!0,!1)),(pe?Promise.resolve(pe):D(se,Oe)).catch(me=>Ni(me)?Ni(me,2)?me:ye(me):ie(me,se,Oe)).then(me=>{if(me){if(Ni(me,2))return P(Ht({replace:H},C(me.to),{state:typeof me.to=="object"?Ht({},Ve,me.to.state):Ve,force:$}),oe||se)}else me=A(se,Oe,!0,H,Ve);return V(se,Oe,me),me})}function R(Y,oe){const de=O(Y,oe);return de?Promise.reject(de):Promise.resolve()}function F(Y){const oe=Ze.values().next().value;return oe&&typeof oe.runWithContext=="function"?oe.runWithContext(Y):Y()}function D(Y,oe){let de;const[Oe,Ve,$]=GK(Y,oe);de=Lp(Oe.reverse(),"beforeRouteLeave",Y,oe);for(const q of Oe)q.leaveGuards.forEach(se=>{de.push(Es(se,Y,oe))});const H=R.bind(null,Y,oe);return de.push(H),Je(de).then(()=>{de=[];for(const q of s.list())de.push(Es(q,Y,oe));return de.push(H),Je(de)}).then(()=>{de=Lp(Ve,"beforeRouteUpdate",Y,oe);for(const q of Ve)q.updateGuards.forEach(se=>{de.push(Es(se,Y,oe))});return de.push(H),Je(de)}).then(()=>{de=[];for(const q of Y.matched)if(q.beforeEnter&&!oe.matched.includes(q))if(ai(q.beforeEnter))for(const se of q.beforeEnter)de.push(Es(se,Y,oe));else de.push(Es(q.beforeEnter,Y,oe));return de.push(H),Je(de)}).then(()=>(Y.matched.forEach(q=>q.enterCallbacks={}),de=Lp($,"beforeRouteEnter",Y,oe),de.push(H),Je(de))).then(()=>{de=[];for(const q of o.list())de.push(Es(q,Y,oe));return de.push(H),Je(de)}).catch(q=>Ni(q,8)?q:Promise.reject(q))}function V(Y,oe,de){for(const Oe of a.list())F(()=>Oe(Y,oe,de))}function A(Y,oe,de,Oe,Ve){const $=O(Y,oe);if($)return $;const H=oe===_s,q=ya?history.state:{};de&&(Oe||H?i.replace(Y.fullPath,Ht({scroll:H&&q&&q.scroll},Ve)):i.push(Y.fullPath,Ve)),u.value=Y,Ee(Y,oe,de,H),ye()}let U;function le(){U||(U=i.listen((Y,oe,de)=>{if(!$e.listening)return;const Oe=y(Y),Ve=T(Oe);if(Ve){P(Ht(Ve,{replace:!0}),Oe).catch(Xl);return}c=Oe;const $=u.value;ya&&sK(U1($.fullPath,de.delta),jd()),D(Oe,$).catch(H=>Ni(H,12)?H:Ni(H,2)?(P(H.to,Oe).then(q=>{Ni(q,20)&&!de.delta&&de.type===Su.pop&&i.go(-1,!1)}).catch(Xl),Promise.reject()):(de.delta&&i.go(-de.delta,!1),ie(H,Oe,$))).then(H=>{H=H||A(Oe,$,!1),H&&(de.delta&&!Ni(H,8)?i.go(-de.delta,!1):de.type===Su.pop&&Ni(H,20)&&i.go(-1,!1)),V(Oe,$,H)}).catch(Xl)}))}let ce=Sl(),te=Sl(),Z;function ie(Y,oe,de){ye(Y);const Oe=te.list();return Oe.length?Oe.forEach(Ve=>Ve(Y,oe,de)):console.error(Y),Promise.reject(Y)}function Q(){return Z&&u.value!==_s?Promise.resolve():new Promise((Y,oe)=>{ce.add([Y,oe])})}function ye(Y){return Z||(Z=!Y,le(),ce.list().forEach(([oe,de])=>Y?de(Y):oe()),ce.reset()),Y}function Ee(Y,oe,de,Oe){const{scrollBehavior:Ve}=e;if(!ya||!Ve)return Promise.resolve();const $=!de&&oK(U1(Y.fullPath,0))||(Oe||!de)&&history.state&&history.state.scroll||null;return bt().then(()=>Ve(Y,oe,$)).then(H=>H&&iK(H)).catch(H=>ie(H,Y,oe))}const Le=Y=>i.go(Y);let ue;const Ze=new Set,$e={currentRoute:u,listening:!0,addRoute:m,removeRoute:b,hasRoute:_,getRoutes:v,resolve:y,options:e,push:w,replace:M,go:Le,back:()=>Le(-1),forward:()=>Le(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:te.add,isReady:Q,install(Y){const oe=this;Y.component("RouterLink",jK),Y.component("RouterView",pO),Y.config.globalProperties.$router=oe,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>S(u)}),ya&&!ue&&u.value===_s&&(ue=!0,w(i.location).catch(Ve=>{}));const de={};for(const Ve in _s)de[Ve]=B(()=>u.value[Ve]);Y.provide(Av,oe),Y.provide(hO,vn(de)),Y.provide(Wg,u);const Oe=Y.unmount;Ze.add(Y),Y.unmount=function(){Ze.delete(Y),Ze.size<1&&(c=_s,U&&U(),U=null,u.value=_s,ue=!1,Z=!1),Oe()}}};function Je(Y){return Y.reduce((oe,de)=>oe.then(()=>F(de)),Promise.resolve())}return $e}function GK(e,t){const n=[],r=[],i=[],s=Math.max(t.matched.length,e.matched.length);for(let o=0;oHa(c,a))?r.push(a):n.push(a));const u=e.matched[o];u&&(t.matched.find(c=>Ha(c,u))||i.push(u))}return[n,r,i]}const XK=Ne({__name:"App",setup(e){return(t,n)=>{const r=K7,i=IH;return K(),Me(i,{namespace:"ep"},{default:z(()=>[W(r),W(S(pO))]),_:1})}}});const Ku=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},JK=Ku(XK,[["__scopeId","data-v-aa3fa0a7"]]);const ZK={},QK=L("div",{class:"col-md-1"},null,-1),eq=L("div",{class:"col-md-9"},[L("div",{class:"basic-form"},[L("h3",{class:"center text-3xl"},[re("S.O.C.R.A.T.E.S."),L("br"),re("Soil Organic Carbon Reserves And Transformations in EcoSystems")])])],-1),tq=L("div",{class:"row"},[L("div",{class:"col-md-1"}),L("div",{class:"col-md-9"},[L("div",{class:"basic-form border-noshadow"},[L("h4",{class:"text-1xl"},"A simple model for predicting long-term changes in soil organic carbon in terrestrial ecosystems"),L("p",null,"The maintenance of soil organic carbon (SOC) in terrestrial ecosystems is critical for long-term productivity."),L("p",null,"Simulation models of SOC dynamics are valuable tools in predicting the impacts of climate on carbon storage and developing management strategies for the mitigation of greenhouse gas emissions, however, their utility is generally reduced due to need for specific data. "),L("p",null,"The SOCRATES model is a simple process based representation of SOC dynamics in terrestrial ecosystems, which requires minimal data inputs and specifically designed to examine the impact of land use and land use change on soil carbon storage. It also contains a simple yield calculator."),L("p",null,"SOCRATES was successful in predicting SOC change at eighteen long-term crop, pasture and forestry trials from North America, Europe and Australasia. These trials ranged from 8 to 86 years in duration, over a wide range of climates and soil types.")])])],-1);function nq(e,t){const n=os,r=ci;return K(),Me(r,{class:"m-4 p-4"},{default:z(()=>[W(n,{xl:20,lg:20,md:20,sm:24,xs:24},{default:z(()=>[QK,eq,tq]),_:1})]),_:1})}const gO=Ku(ZK,[["render",nq]]),rq={};function iq(e,t){const n=gO,r=b2,i=Yt("router-link"),s=ci,o=os;return K(),Me(s,null,{default:z(()=>[W(o,{xl:20,lg:20,md:20,sm:24,xs:24},{default:z(()=>[W(n),W(s,{class:"m-4 p-4"},{default:z(()=>[W(i,{to:"/input"},{default:z(({href:a,route:u,navigate:c})=>[W(r,{href:a,onClick:c,class:"btn btn-custom btn-lg btn-block",role:"button"},{default:z(()=>[re("Start Model ")]),_:2},1032,["href","onClick"])]),_:1})]),_:1})]),_:1})]),_:1})}const sq=Ku(rq,[["render",iq]]);/*! + * @kurkle/color v0.3.2 + * https://github.com/kurkle/color#readme + * (c) 2023 Jukka Kurkela + * Released under the MIT License + */function qu(e){return e+.5|0}const As=(e,t,n)=>Math.max(Math.min(e,n),t);function Ll(e){return As(qu(e*2.55),0,255)}function Bs(e){return As(qu(e*255),0,255)}function qi(e){return As(qu(e/2.55)/100,0,1)}function sw(e){return As(qu(e*100),0,100)}const Dr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Vg=[..."0123456789ABCDEF"],oq=e=>Vg[e&15],aq=e=>Vg[(e&240)>>4]+Vg[e&15],rf=e=>(e&240)>>4===(e&15),lq=e=>rf(e.r)&&rf(e.g)&&rf(e.b)&&rf(e.a);function uq(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Dr[e[1]]*17,g:255&Dr[e[2]]*17,b:255&Dr[e[3]]*17,a:t===5?Dr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Dr[e[1]]<<4|Dr[e[2]],g:Dr[e[3]]<<4|Dr[e[4]],b:Dr[e[5]]<<4|Dr[e[6]],a:t===9?Dr[e[7]]<<4|Dr[e[8]]:255})),n}const cq=(e,t)=>e<255?t(e):"";function fq(e){var t=lq(e)?oq:aq;return e?"#"+t(e.r)+t(e.g)+t(e.b)+cq(e.a,t):void 0}const dq=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function mO(e,t,n){const r=t*Math.min(n,1-n),i=(s,o=(s+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function hq(e,t,n){const r=(i,s=(i+e/60)%6)=>n-n*t*Math.max(Math.min(s,4-s,1),0);return[r(5),r(3),r(1)]}function pq(e,t,n){const r=mO(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function gq(e,t,n,r,i){return e===i?(t-n)/r+(t.5?d/(2-s-o):d/(s+o),u=gq(n,r,i,d,s),u=u*60+.5),[u|0,c||0,a]}function Rv(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Bs)}function kv(e,t,n){return Rv(mO,e,t,n)}function mq(e,t,n){return Rv(pq,e,t,n)}function vq(e,t,n){return Rv(hq,e,t,n)}function vO(e){return(e%360+360)%360}function bq(e){const t=dq.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Ll(+t[5]):Bs(+t[5]));const i=vO(+t[2]),s=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?r=mq(i,s,o):t[1]==="hsv"?r=vq(i,s,o):r=kv(i,s,o),{r:r[0],g:r[1],b:r[2],a:n}}function yq(e,t){var n=Pv(e);n[0]=vO(n[0]+t),n=kv(n),e.r=n[0],e.g=n[1],e.b=n[2]}function _q(e){if(!e)return;const t=Pv(e),n=t[0],r=sw(t[1]),i=sw(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${qi(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const ow={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},aw={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function wq(){const e={},t=Object.keys(aw),n=Object.keys(ow);let r,i,s,o,a;for(r=0;r>16&255,s>>8&255,s&255]}return e}let sf;function xq(e){sf||(sf=wq(),sf.transparent=[0,0,0,0]);const t=sf[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const Cq=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Sq(e){const t=Cq.exec(e);let n=255,r,i,s;if(t){if(t[7]!==r){const o=+t[7];n=t[8]?Ll(o):As(o*255,0,255)}return r=+t[1],i=+t[3],s=+t[5],r=255&(t[2]?Ll(r):As(r,0,255)),i=255&(t[4]?Ll(i):As(i,0,255)),s=255&(t[6]?Ll(s):As(s,0,255)),{r,g:i,b:s,a:n}}}function Oq(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${qi(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Ip=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,ga=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Eq(e,t,n){const r=ga(qi(e.r)),i=ga(qi(e.g)),s=ga(qi(e.b));return{r:Bs(Ip(r+n*(ga(qi(t.r))-r))),g:Bs(Ip(i+n*(ga(qi(t.g))-i))),b:Bs(Ip(s+n*(ga(qi(t.b))-s))),a:e.a+n*(t.a-e.a)}}function of(e,t,n){if(e){let r=Pv(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=kv(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function bO(e,t){return e&&Object.assign(t||{},e)}function lw(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Bs(e[3]))):(t=bO(e,{r:0,g:0,b:0,a:1}),t.a=Bs(t.a)),t}function Mq(e){return e.charAt(0)==="r"?Sq(e):bq(e)}class Ou{constructor(t){if(t instanceof Ou)return t;const n=typeof t;let r;n==="object"?r=lw(t):n==="string"&&(r=uq(t)||xq(t)||Mq(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=bO(this._rgb);return t&&(t.a=qi(t.a)),t}set rgb(t){this._rgb=lw(t)}rgbString(){return this._valid?Oq(this._rgb):void 0}hexString(){return this._valid?fq(this._rgb):void 0}hslString(){return this._valid?_q(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let s;const o=n===s?.5:n,a=2*o-1,u=r.a-i.a,c=((a*u===-1?a:(a+u)/(1+a*u))+1)/2;s=1-c,r.r=255&c*r.r+s*i.r+.5,r.g=255&c*r.g+s*i.g+.5,r.b=255&c*r.b+s*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=Eq(this._rgb,t._rgb,n)),this}clone(){return new Ou(this.rgb)}alpha(t){return this._rgb.a=Bs(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=qu(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return of(this._rgb,2,t),this}darken(t){return of(this._rgb,2,-t),this}saturate(t){return of(this._rgb,1,t),this}desaturate(t){return of(this._rgb,1,-t),this}rotate(t){return yq(this._rgb,t),this}}/*! + * Chart.js v4.3.0 + * https://www.chartjs.org + * (c) 2023 Chart.js Contributors + * Released under the MIT License + */function Bi(){}const Tq=(()=>{let e=0;return()=>e++})();function Rt(e){return e===null||typeof e>"u"}function Qt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function At(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function cn(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function wr(e,t){return cn(e)?e:t}function gt(e,t){return typeof e>"u"?t:e}const Aq=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,yO=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function qt(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Wt(e,t,n,r){let i,s,o;if(Qt(e))if(s=e.length,r)for(i=s-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function kq(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function Lq(e){const t=kq(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function Ks(e,t){return(uw[t]||(uw[t]=Lq(t)))(e)}function Lv(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Mu=e=>typeof e<"u",qs=e=>typeof e=="function",cw=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function Iq(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const on=Math.PI,en=2*on,Fq=en+on,fd=Number.POSITIVE_INFINITY,$q=on/180,fn=on/2,ho=on/4,fw=on*2/3,Ps=Math.log10,xi=Math.sign;function Ql(e,t,n){return Math.abs(e-t)i-s).pop(),t}function Va(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Nq(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function wO(e,t,n){let r,i,s;for(r=0,i=e.length;ru&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Fv(e,t,n){n=n||(o=>e[o]1;)s=i+r>>1,n(s)?i=s:r=s;return{lo:i,hi:r}}const Gi=(e,t,n,r)=>Fv(e,n,r?i=>{const s=e[i][t];return se[i][t]Fv(e,n,r=>e[r][t]>=n);function Wq(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{const r="_onData"+Lv(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...s){const o=i.apply(this,s);return e._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...s)}),o}})})}function pw(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(CO.forEach(s=>{delete e[s]}),delete e._chartjs)}function SO(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const OO=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function EO(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,OO.call(window,()=>{r=!1,e.apply(t,n)}))}}function jq(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const $v=e=>e==="start"?"left":e==="end"?"right":"center",zn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,Uq=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function MO(e,t,n){const r=t.length;let i=0,s=r;if(e._sorted){const{iScale:o,_parsed:a}=e,u=o.axis,{min:c,max:d,minDefined:h,maxDefined:g}=o.getUserBounds();h&&(i=Tn(Math.min(Gi(a,o.axis,c).lo,n?r:Gi(t,u,o.getPixelForValue(c)).lo),0,r-1)),g?s=Tn(Math.max(Gi(a,o.axis,d,!0).hi+1,n?0:Gi(t,u,o.getPixelForValue(d),!0).hi+1),i,r)-i:s=r-i}return{start:i,count:s}}function TO(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const s=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),s}const af=e=>e===0||e===1,gw=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*en/n)),mw=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*en/n)+1,eu={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*fn)+1,easeOutSine:e=>Math.sin(e*fn),easeInOutSine:e=>-.5*(Math.cos(on*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>af(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>af(e)?e:gw(e,.075,.3),easeOutElastic:e=>af(e)?e:mw(e,.075,.3),easeInOutElastic(e){return af(e)?e:e<.5?.5*gw(e*2,.1125,.45):.5+.5*mw(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-eu.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?eu.easeInBounce(e*2)*.5:eu.easeOutBounce(e*2-1)*.5+.5};function Dv(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function vw(e){return Dv(e)?e:new Ou(e)}function Fp(e){return Dv(e)?e:new Ou(e).saturate(.5).darken(.1).hexString()}const Kq=["x","y","borderWidth","radius","tension"],qq=["color","borderColor","backgroundColor"];function Yq(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:qq},numbers:{type:"number",properties:Kq}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function Gq(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const bw=new Map;function Xq(e,t){t=t||{};const n=e+JSON.stringify(t);let r=bw.get(n);return r||(r=new Intl.NumberFormat(e,t),bw.set(n,r)),r}function Yu(e,t,n){return Xq(t,n).format(e)}const AO={values(e){return Qt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,s=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),s=Jq(e,n)}const o=Ps(Math.abs(s)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),u={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(u,this.options.ticks.format),Yu(e,r,u)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(Ps(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?AO.numeric.call(this,e,t,n):""}};function Jq(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Ud={formatters:AO};function Zq(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ud.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Vo=Object.create(null),Ug=Object.create(null);function tu(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>Fp(i.backgroundColor),this.hoverBorderColor=(r,i)=>Fp(i.borderColor),this.hoverColor=(r,i)=>Fp(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return $p(this,t,n)}get(t){return tu(this,t)}describe(t,n){return $p(Ug,t,n)}override(t,n){return $p(Vo,t,n)}route(t,n,r,i){const s=tu(this,t),o=tu(this,r),a="_"+n;Object.defineProperties(s,{[a]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const u=this[a],c=o[i];return At(u)?Object.assign({},c,u):gt(u,c)},set(u){this[a]=u}}})}apply(t){t.forEach(n=>n(this))}};var dn=new Qq({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Yq,Gq,Zq]);function eY(e){return!e||Rt(e.size)||Rt(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function dd(e,t,n,r,i){let s=t[i];return s||(s=t[i]=e.measureText(i).width,n.push(i)),s>r&&(r=s),r}function tY(e,t,n,r){r=r||{};let i=r.data=r.data||{},s=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},s=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0;const a=n.length;let u,c,d,h,g;for(u=0;un.length){for(u=0;u0&&e.stroke()}}function Xi(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&s.strokeColor!=="";let u,c;for(e.save(),e.font=i.string,iY(e,s),u=0;u+e||0;function Nv(e,t){const n={},r=At(t),i=r?Object.keys(t):t,s=At(e)?r?o=>gt(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of i)n[o]=cY(s(o));return n}function RO(e){return Nv(e,{top:"y",right:"x",bottom:"y",left:"x"})}function No(e){return Nv(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Kn(e){const t=RO(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function xn(e,t){e=e||{},t=t||dn.font;let n=gt(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=gt(e.style,t.style);r&&!(""+r).match(lY)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:gt(e.family,t.family),lineHeight:uY(gt(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:gt(e.weight,t.weight),string:""};return i.string=eY(i),i}function Il(e,t,n,r){let i=!0,s,o,a;for(s=0,o=e.length;sn&&a===0?0:a+u;return{min:o(r,-Math.abs(s)),max:o(i,s)}}function Zs(e,t){return Object.assign(Object.create(e),t)}function Bv(e,t=[""],n,r,i=()=>e[0]){const s=n||e;typeof r>"u"&&(r=FO("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:s,_fallback:r,_getTarget:i,override:a=>Bv([a,...e],t,s,r)};return new Proxy(o,{deleteProperty(a,u){return delete a[u],delete a._keys,delete e[0][u],!0},get(a,u){return LO(a,u,()=>yY(u,t,e,a))},getOwnPropertyDescriptor(a,u){return Reflect.getOwnPropertyDescriptor(a._scopes[0],u)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,u){return ww(a).includes(u)},ownKeys(a){return ww(a)},set(a,u,c){const d=a._storage||(a._storage=i());return a[u]=d[u]=c,delete a._keys,!0}})}function ja(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:kO(e,r),setContext:s=>ja(e,s,n,r),override:s=>ja(e.override(s),t,n,r)};return new Proxy(i,{deleteProperty(s,o){return delete s[o],delete e[o],!0},get(s,o,a){return LO(s,o,()=>hY(s,o,a))},getOwnPropertyDescriptor(s,o){return s._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(s,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(s,o,a){return e[o]=a,delete s[o],!0}})}function kO(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:qs(n)?n:()=>n,isIndexable:qs(r)?r:()=>r}}const dY=(e,t)=>e?e+Lv(t):t,zv=(e,t)=>At(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function LO(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function hY(e,t,n){const{_proxy:r,_context:i,_subProxy:s,_descriptors:o}=e;let a=r[t];return qs(a)&&o.isScriptable(t)&&(a=pY(t,a,e,n)),Qt(a)&&a.length&&(a=gY(t,a,e,o.isIndexable)),zv(t,a)&&(a=ja(a,i,s&&s[t],o)),a}function pY(e,t,n,r){const{_proxy:i,_context:s,_subProxy:o,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let u=t(s,o||r);return a.delete(e),zv(e,u)&&(u=Hv(i._scopes,i,e,u)),u}function gY(e,t,n,r){const{_proxy:i,_context:s,_subProxy:o,_descriptors:a}=n;if(typeof s.index<"u"&&r(e))return t[s.index%t.length];if(At(t[0])){const u=t,c=i._scopes.filter(d=>d!==u);t=[];for(const d of u){const h=Hv(c,i,e,d);t.push(ja(h,s,o&&o[e],a))}}return t}function IO(e,t,n){return qs(e)?e(t,n):e}const mY=(e,t)=>e===!0?t:typeof e=="string"?Ks(t,e):void 0;function vY(e,t,n,r,i){for(const s of t){const o=mY(n,s);if(o){e.add(o);const a=IO(o._fallback,n,i);if(typeof a<"u"&&a!==n&&a!==r)return a}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function Hv(e,t,n,r){const i=t._rootScopes,s=IO(t._fallback,n,r),o=[...e,...i],a=new Set;a.add(r);let u=_w(a,o,n,s||n,r);return u===null||typeof s<"u"&&s!==n&&(u=_w(a,o,s,u,r),u===null)?!1:Bv(Array.from(a),[""],i,s,()=>bY(t,n,r))}function _w(e,t,n,r,i){for(;n;)n=vY(e,t,n,r,i);return n}function bY(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Qt(i)&&At(n)?n:i||{}}function yY(e,t,n,r){let i;for(const s of t)if(i=FO(dY(s,e),n),typeof i<"u")return zv(e,i)?Hv(n,r,e,i):i}function FO(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function ww(e){let t=e._keys;return t||(t=e._keys=_Y(e._scopes)),t}function _Y(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}function $O(e,t,n,r){const{iScale:i}=e,{key:s="r"}=this._parsing,o=new Array(r);let a,u,c,d;for(a=0,u=r;ate==="x"?"y":"x";function xY(e,t,n,r){const i=e.skip?t:e,s=t,o=n.skip?t:n,a=jg(s,i),u=jg(o,s);let c=a/(a+u),d=u/(a+u);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const h=r*c,g=r*d;return{previous:{x:s.x-h*(o.x-i.x),y:s.y-h*(o.y-i.y)},next:{x:s.x+g*(o.x-i.x),y:s.y+g*(o.y-i.y)}}}function CY(e,t,n){const r=e.length;let i,s,o,a,u,c=Ua(e,0);for(let d=0;d!c.skip)),t.cubicInterpolationMode==="monotone")OY(e,i);else{let c=r?e[e.length-1]:e[0];for(s=0,o=e.length;se.ownerDocument.defaultView.getComputedStyle(e,null);function TY(e,t){return Yd(e).getPropertyValue(t)}const AY=["top","right","bottom","left"];function Bo(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const s=AY[i];r[s]=parseFloat(e[t+"-"+s+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const PY=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function RY(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:s}=r;let o=!1,a,u;if(PY(i,s,e.target))a=i,u=s;else{const c=t.getBoundingClientRect();a=r.clientX-c.left,u=r.clientY-c.top,o=!0}return{x:a,y:u,box:o}}function yo(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Yd(n),s=i.boxSizing==="border-box",o=Bo(i,"padding"),a=Bo(i,"border","width"),{x:u,y:c,box:d}=RY(e,n),h=o.left+(d&&a.left),g=o.top+(d&&a.top);let{width:m,height:b}=t;return s&&(m-=o.width+a.width,b-=o.height+a.height),{x:Math.round((u-h)/m*n.width/r),y:Math.round((c-g)/b*n.height/r)}}function kY(e,t,n){let r,i;if(t===void 0||n===void 0){const s=Wv(e);if(!s)t=e.clientWidth,n=e.clientHeight;else{const o=s.getBoundingClientRect(),a=Yd(s),u=Bo(a,"border","width"),c=Bo(a,"padding");t=o.width-c.width-u.width,n=o.height-c.height-u.height,r=hd(a.maxWidth,s,"clientWidth"),i=hd(a.maxHeight,s,"clientHeight")}}return{width:t,height:n,maxWidth:r||fd,maxHeight:i||fd}}const uf=e=>Math.round(e*10)/10;function LY(e,t,n,r){const i=Yd(e),s=Bo(i,"margin"),o=hd(i.maxWidth,e,"clientWidth")||fd,a=hd(i.maxHeight,e,"clientHeight")||fd,u=kY(e,t,n);let{width:c,height:d}=u;if(i.boxSizing==="content-box"){const g=Bo(i,"border","width"),m=Bo(i,"padding");c-=m.width+g.width,d-=m.height+g.height}return c=Math.max(0,c-s.width),d=Math.max(0,r?c/r:d-s.height),c=uf(Math.min(c,o,u.maxWidth)),d=uf(Math.min(d,a,u.maxHeight)),c&&!d&&(d=uf(c/2)),(t!==void 0||n!==void 0)&&r&&u.height&&d>u.height&&(d=u.height,c=uf(Math.floor(d*r))),{width:c,height:d}}function xw(e,t,n){const r=t||1,i=Math.floor(e.height*r),s=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==s?(e.currentDevicePixelRatio=r,o.height=i,o.width=s,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const IY=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function Cw(e,t){const n=TY(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function _o(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function FY(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function $Y(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},s={x:t.cp1x,y:t.cp1y},o=_o(e,i,n),a=_o(i,s,n),u=_o(s,t,n),c=_o(o,a,n),d=_o(a,u,n);return _o(c,d,n)}const DY=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},NY=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Sa(e,t,n){return e?DY(t,n):NY()}function BO(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function zO(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function HO(e){return e==="angle"?{between:Tu,compare:Bq,normalize:Sr}:{between:Yi,compare:(t,n)=>t-n,normalize:t=>t}}function Sw({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function BY(e,t,n){const{property:r,start:i,end:s}=n,{between:o,normalize:a}=HO(r),u=t.length;let{start:c,end:d,loop:h}=e,g,m;if(h){for(c+=u,d+=u,g=0,m=u;gu(i,O,y)&&a(i,O)!==0,M=()=>a(s,y)===0||u(s,O,y),T=()=>v||w(),P=()=>!v||M();for(let R=d,F=d;R<=h;++R)C=t[R%o],!C.skip&&(y=c(C[r]),y!==O&&(v=u(y,i,s),_===null&&T()&&(_=a(y,i)===0?R:F),_!==null&&P()&&(b.push(Sw({start:_,end:R,loop:g,count:o,style:m})),_=null),F=R,O=y));return _!==null&&b.push(Sw({start:_,end:h,loop:g,count:o,style:m})),b}function VO(e,t){const n=[],r=e.segments;for(let i=0;ii&&e[s%t].skip;)s--;return s%=t,{start:i,end:s}}function HY(e,t,n,r){const i=e.length,s=[];let o=t,a=e[t],u;for(u=t+1;u<=n;++u){const c=e[u%i];c.skip||c.stop?a.skip||(r=!1,s.push({start:t%i,end:(u-1)%i,loop:r}),t=o=c.stop?u:null):(o=u,a.skip&&(t=u)),a=c}return o!==null&&s.push({start:t%i,end:o%i,loop:r}),s}function WY(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const s=!!e._loop,{start:o,end:a}=zY(n,i,s,r);if(r===!0)return Ow(e,[{start:o,end:a,loop:s}],n,t);const u=aa({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=OO.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const s=r.items;let o=s.length-1,a=!1,u;for(;o>=0;--o)u=s[o],u._active?(u._total>r.duration&&(r.duration=u._total),u.tick(t),a=!0):(s[o]=s[s.length-1],s.pop());a&&(i.draw(),this._notify(i,r,t,"progress")),s.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=s.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Vi=new UY;const Mw="transparent",KY={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=vw(e||Mw),i=r.valid&&vw(t||Mw);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class qY{constructor(t,n,r,i){const s=n[r];i=Il([t.to,i,s,t.from]);const o=Il([t.from,s,i]);this._active=!0,this._fn=t.fn||KY[t.type||typeof o],this._easing=eu[t.easing]||eu.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],s=r-this._start,o=this._duration-s;this._start=r,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=Il([t.to,n,i,t.from]),this._from=Il([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,s=this._from,o=this._loop,a=this._to;let u;if(this._active=s!==a&&(o||n1?2-u:u,u=this._easing(Math.min(1,Math.max(0,u))),this._target[i]=this._fn(s,a,u)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i{const s=t[i];if(!At(s))return;const o={};for(const a of n)o[a]=s[a];(Qt(s.properties)&&s.properties||[i]).forEach(a=>{(a===i||!r.has(a))&&r.set(a,o)})})}_animateOptions(t,n){const r=n.options,i=GY(t,r);if(!i)return[];const s=this._createAnimations(i,r);return r.$shared&&YY(t.options.$animations,r).then(()=>{t.options=r},()=>{}),s}_createAnimations(t,n){const r=this._properties,i=[],s=t.$animations||(t.$animations={}),o=Object.keys(n),a=Date.now();let u;for(u=o.length-1;u>=0;--u){const c=o[u];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const d=n[c];let h=s[c];const g=r.get(c);if(h)if(g&&h.active()){h.update(g,d,a);continue}else h.cancel();if(!g||!g.duration){t[c]=d;continue}s[c]=h=new qY(g,t,c,d),i.push(h)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return Vi.add(this._chart,r),!0}}function YY(e,t){const n=[],r=Object.keys(t);for(let i=0;i0||!n&&s<0)return i.index}return null}function kw(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:s,vScale:o,index:a}=r,u=s.axis,c=o.axis,d=QY(s,o,r),h=t.length;let g;for(let m=0;mn[r].axis===t).shift()}function nG(e,t){return Zs(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function rG(e,t,n){return Zs(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Ol(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const s=i._stacks;if(!s||s[r]===void 0||s[r][n]===void 0)return;delete s[r][n],s[r]._visualValues!==void 0&&s[r]._visualValues[n]!==void 0&&delete s[r]._visualValues[n]}}}const Np=e=>e==="reset"||e==="none",Lw=(e,t)=>t?e:Object.assign({},e),iG=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:UO(n,!0),values:null};class si{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Pw(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Ol(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(h,g,m,b)=>h==="x"?g:h==="r"?b:m,s=n.xAxisID=gt(r.xAxisID,Dp(t,"x")),o=n.yAxisID=gt(r.yAxisID,Dp(t,"y")),a=n.rAxisID=gt(r.rAxisID,Dp(t,"r")),u=n.indexAxis,c=n.iAxisID=i(u,s,o,a),d=n.vAxisID=i(u,o,s,a);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&pw(this._data,this),t._stacked&&Ol(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(At(n))this._data=ZY(n);else if(r!==n){if(r){pw(r,this);const i=this._cachedMeta;Ol(i),i._parsed=[]}n&&Object.isExtensible(n)&&Vq(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const s=n._stacked;n._stacked=Pw(n.vScale,n),n.stack!==r.stack&&(i=!0,Ol(n),n.stack=r.stack),this._resyncElements(t),(i||s!==n._stacked)&&kw(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:s,_stacked:o}=r,a=s.axis;let u=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],d,h,g;if(this._parsing===!1)r._parsed=i,r._sorted=!0,g=i;else{Qt(i[t])?g=this.parseArrayData(r,i,t,n):At(i[t])?g=this.parseObjectData(r,i,t,n):g=this.parsePrimitiveData(r,i,t,n);const m=()=>h[a]===null||c&&h[a]v||h=0;--g)if(!b()){this.updateRangeFromParsed(c,t,m,u);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,s,o;for(i=0,s=n.length;i=0&&tthis.getContext(r,i,n),v=c.resolveNamedOptions(g,m,b,h);return v.$shared&&(v.$shared=u,s[o]=Object.freeze(Lw(v,u))),v}_resolveAnimations(t,n,r){const i=this.chart,s=this._cachedDataOpts,o=`animation-${n}`,a=s[o];if(a)return a;let u;if(i.options.animation!==!1){const d=this.chart.config,h=d.datasetAnimationScopeKeys(this._type,n),g=d.getOptionScopes(this.getDataset(),h);u=d.createResolver(g,this.getContext(t,r,n))}const c=new jO(i,u&&u.animations);return u&&u._cacheable&&(s[o]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Np(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,s=this.getSharedOptions(r),o=this.includeOptions(n,s)||s!==i;return this.updateSharedOptions(s,n,r),{sharedOptions:s,includeOptions:o}}updateElement(t,n,r,i){Np(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!Np(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const s=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(s)||s})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[a,u,c]of this._syncList)this[a](u,c);this._syncList=[];const i=r.length,s=n.length,o=Math.min(s,i);o&&this.parse(0,o),s>i?this._insertElements(i,s-i,t):s{for(c.length+=n,a=c.length-1;a>=o;a--)c[a]=c[a-n]};for(u(s),a=t;ai-s))}return e._cache.$bar}function oG(e){const t=e.iScale,n=sG(t,e.type);let r=t._length,i,s,o,a;const u=()=>{o===32767||o===-32768||(Mu(a)&&(r=Math.min(r,Math.abs(o-a)||r)),a=o)};for(i=0,s=n.length;i0?i[e-1]:null,a=eMath.abs(a)&&(u=a,c=o),t[n.axis]=c,t._custom={barStart:u,barEnd:c,start:i,end:s,min:o,max:a}}function KO(e,t,n,r){return Qt(e)?uG(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Iw(e,t,n,r){const i=e.iScale,s=e.vScale,o=i.getLabels(),a=i===s,u=[];let c,d,h,g;for(c=n,d=n+r;c=n?1:-1)}function fG(e){let t,n,r,i,s;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.baseu.controller.options.grouped),s=r.options.stacked,o=[],a=u=>{const c=u.controller.getParsed(n),d=c&&c[u.vScale.axis];if(Rt(d)||isNaN(d))return!0};for(const u of i)if(!(n!==void 0&&a(u))&&((s===!1||o.indexOf(u.stack)===-1||s===void 0&&u.stack===void 0)&&o.push(u.stack),u.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),s=n!==void 0?i.indexOf(n):-1;return s===-1?i.length-1:s}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let s,o;for(s=0,o=n.data.length;s=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:s}=n,o=this.getParsed(t),a=i.getLabelForValue(o.x),u=s.getLabelForValue(o.y),c=o._custom;return{label:r[t]||"",value:"("+a+", "+u+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,i){const s=i==="reset",{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:u,includeOptions:c}=this._getSharedOptions(n,i),d=o.axis,h=a.axis;for(let g=n;gTu(O,a,u,!0)?1:Math.max(w,w*n,M,M*n),b=(O,w,M)=>Tu(O,a,u,!0)?-1:Math.min(w,w*n,M,M*n),v=m(0,c,h),_=m(fn,d,g),y=b(on,c,h),C=b(on+fn,d,g);r=(v-y)/2,i=(_-C)/2,s=-(v+y)/2,o=-(_+C)/2}return{ratioX:r,ratioY:i,offsetX:s,offsetY:o}}class ko extends si{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let s=u=>+r[u];if(At(r[t])){const{key:u="value"}=this._parsing;s=c=>+Ks(r[c],u)}let o,a;for(o=t,a=t+n;o0&&!isNaN(t)?en*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],s=Yu(n._parsed[t],r.options.locale);return{label:i[t]||"",value:s}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,s,o,a,u;if(!t){for(i=0,s=r.data.datasets.length;it!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),Re(ko,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((s,o)=>{const u=t.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,fontColor:i,lineWidth:u.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class Df extends si{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:s}=n,o=this.chart._animationsDisabled;let{start:a,count:u}=MO(n,i,o);this._drawStart=a,this._drawCount=u,TO(n)&&(a=0,u=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!s._decimated,r.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!o,options:c},t),this.updateElements(i,a,u,t)}updateElements(t,n,r,i){const s=i==="reset",{iScale:o,vScale:a,_stacked:u,_dataset:c}=this._cachedMeta,{sharedOptions:d,includeOptions:h}=this._getSharedOptions(n,i),g=o.axis,m=a.axis,{spanGaps:b,segment:v}=this.options,_=Va(b)?b:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||s||i==="none",C=n+r,O=t.length;let w=n>0&&this.getParsed(n-1);for(let M=0;M=C){P.skip=!0;continue}const R=this.getParsed(M),F=Rt(R[m]),D=P[g]=o.getPixelForValue(R[g],M),V=P[m]=s||F?a.getBasePixel():a.getPixelForValue(u?this.applyStack(a,R,u):R[m],M);P.skip=isNaN(D)||isNaN(V)||F,P.stop=M>0&&Math.abs(R[g]-w[g])>_,v&&(P.parsed=R,P.raw=c.data[M]),h&&(P.options=d||this.resolveDataElementOptions(M,T.active?"active":i)),y||this.updateElement(T,M,P,i),w=R}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const s=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,s,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Re(Df,"id","line"),Re(Df,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Re(Df,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class nu extends si{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],s=Yu(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:s}}parseObjectData(t,n,r,i){return $O.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,i)=>{const s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(sn.max&&(n.max=s))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),s=Math.max(i/2,0),o=Math.max(r.cutoutPercentage?s/100*r.cutoutPercentage:1,0),a=(s-o)/t.getVisibleDatasetCount();this.outerRadius=s-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,r,i){const s=i==="reset",o=this.chart,u=o.options.animation,c=this._cachedMeta.rScale,d=c.xCenter,h=c.yCenter,g=c.getIndexAngle(0)-.5*on;let m=g,b;const v=360/this.countVisibleElements();for(b=0;b{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?ri(this.resolveDataElementOptions(t,n).angle||r):0}}Re(nu,"id","polarArea"),Re(nu,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),Re(nu,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((s,o)=>{const u=t.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,fontColor:i,lineWidth:u.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class qg extends ko{}Re(qg,"id","pie"),Re(qg,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Nf extends si{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,i){return $O.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta,r=n.dataset,i=n.data||[],s=n.iScale.getLabels();if(r.points=i,t!=="resize"){const o=this.resolveDatasetElementOptions(t);this.options.showLine||(o.borderWidth=0);const a={_loop:!0,_fullLoop:s.length===i.length,options:o};this.updateElement(r,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){const s=this._cachedMeta.rScale,o=i==="reset";for(let a=n;a0&&this.getParsed(n-1);for(let w=n;w0&&Math.abs(T[m]-O[m])>y,_&&(P.parsed=T,P.raw=c.data[w]),g&&(P.options=h||this.resolveDataElementOptions(w,M.active?"active":i)),C||this.updateElement(M,w,P,i),O=T}this.updateSharedOptions(h,i,d)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let u=n.length-1;u>=0;--u)a=Math.max(a,n[u].size(this.resolveDataElementOptions(u))/2);return a>0&&a}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const s=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,s,o)/2}}Re(Bf,"id","scatter"),Re(Bf,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),Re(Bf,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var mG=Object.freeze({__proto__:null,BarController:Ff,BubbleController:$f,DoughnutController:ko,LineController:Df,PieController:qg,PolarAreaController:nu,RadarController:Nf,ScatterController:Bf});function go(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Vv{constructor(t){Re(this,"options");this.options=t||{}}static override(t){Object.assign(Vv.prototype,t)}init(){}formats(){return go()}parse(){return go()}format(){return go()}add(){return go()}diff(){return go()}startOf(){return go()}endOf(){return go()}}var vG={_date:Vv};function bG(e,t,n,r){const{controller:i,data:s,_sorted:o}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&o&&s.length){const u=a._reversePixels?Hq:Gi;if(r){if(i._sharedOptions){const c=s[0],d=typeof c.getRange=="function"&&c.getRange(t);if(d){const h=u(s,t,n-d),g=u(s,t,n+d);return{lo:h.lo,hi:g.hi}}}}else return u(s,t,n)}return{lo:0,hi:s.length-1}}function Gu(e,t,n,r,i){const s=e.getSortedVisibleDatasetMetas(),o=n[t];for(let a=0,u=s.length;a{u[o](t[n],i)&&(s.push({element:u,datasetIndex:c,index:d}),a=a||u.inRange(t.x,t.y,i))}),r&&!a?[]:s}var xG={evaluateInteractionItems:Gu,modes:{index(e,t,n,r){const i=yo(t,e),s=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?zp(e,i,s,r,o):Hp(e,i,s,!1,r,o),u=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const d=a[0].index,h=c.data[d];h&&!h.skip&&u.push({element:h,datasetIndex:c.index,index:d})}),u):[]},dataset(e,t,n,r){const i=yo(t,e),s=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?zp(e,i,s,r,o):Hp(e,i,s,!1,r,o);if(a.length>0){const u=a[0].datasetIndex,c=e.getDatasetMeta(u).data;a=[];for(let d=0;dn.pos===t)}function Nw(e,t){return e.filter(n=>qO.indexOf(n.pos)===-1&&n.box.axis===t)}function Ml(e,t){return e.sort((n,r)=>{const i=t?r:n,s=t?n:r;return i.weight===s.weight?i.index-s.index:i.weight-s.weight})}function CG(e){const t=[];let n,r,i,s,o,a;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=Ml(El(t,"left"),!0),i=Ml(El(t,"right")),s=Ml(El(t,"top"),!0),o=Ml(El(t,"bottom")),a=Nw(t,"x"),u=Nw(t,"y");return{fullSize:n,leftAndTop:r.concat(s),rightAndBottom:i.concat(u).concat(o).concat(a),chartArea:El(t,"chartArea"),vertical:r.concat(i).concat(u),horizontal:s.concat(o).concat(a)}}function Bw(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function YO(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function MG(e,t,n,r){const{pos:i,box:s}=n,o=e.maxPadding;if(!At(i)){n.size&&(e[i]-=n.size);const h=r[n.stack]||{size:0,count:1};h.size=Math.max(h.size,n.horizontal?s.height:s.width),n.size=h.size/h.count,e[i]+=n.size}s.getPadding&&YO(o,s.getPadding());const a=Math.max(0,t.outerWidth-Bw(o,e,"left","right")),u=Math.max(0,t.outerHeight-Bw(o,e,"top","bottom")),c=a!==e.w,d=u!==e.h;return e.w=a,e.h=u,n.horizontal?{same:c,other:d}:{same:d,other:c}}function TG(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function AG(e,t){const n=t.maxPadding;function r(i){const s={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{s[o]=Math.max(t[o],n[o])}),s}return r(e?["left","right"]:["top","bottom"])}function Fl(e,t,n,r){const i=[];let s,o,a,u,c,d;for(s=0,o=e.length,c=0;s{typeof v.beforeLayout=="function"&&v.beforeLayout()});const d=u.reduce((v,_)=>_.box.options&&_.box.options.display===!1?v:v+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/d,hBoxMaxHeight:o/2}),g=Object.assign({},i);YO(g,Kn(r));const m=Object.assign({maxPadding:g,w:s,h:o,x:i.left,y:i.top},i),b=OG(u.concat(c),h);Fl(a.fullSize,m,h,b),Fl(u,m,h,b),Fl(c,m,h,b)&&Fl(u,m,h,b),TG(m),zw(a.leftAndTop,m,h,b),m.x+=m.w,m.y+=m.h,zw(a.rightAndBottom,m,h,b),e.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},Wt(a.chartArea,v=>{const _=v.box;Object.assign(_,e.chartArea),_.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class GO{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class PG extends GO{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const zf="$chartjs",RG={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Hw=e=>e===null||e==="";function kG(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[zf]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Hw(i)){const s=Cw(e,"width");s!==void 0&&(e.width=s)}if(Hw(r))if(e.style.height==="")e.height=e.width/(t||2);else{const s=Cw(e,"height");s!==void 0&&(e.height=s)}return e}const XO=IY?{passive:!0}:!1;function LG(e,t,n){e.addEventListener(t,n,XO)}function IG(e,t,n){e.canvas.removeEventListener(t,n,XO)}function FG(e,t){const n=RG[e.type]||e.type,{x:r,y:i}=yo(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function pd(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function $G(e,t,n){const r=e.canvas,i=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||pd(a.addedNodes,r),o=o&&!pd(a.removedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function DG(e,t,n){const r=e.canvas,i=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||pd(a.removedNodes,r),o=o&&!pd(a.addedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Pu=new Map;let Ww=0;function JO(){const e=window.devicePixelRatio;e!==Ww&&(Ww=e,Pu.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function NG(e,t){Pu.size||window.addEventListener("resize",JO),Pu.set(e,t)}function BG(e){Pu.delete(e),Pu.size||window.removeEventListener("resize",JO)}function zG(e,t,n){const r=e.canvas,i=r&&Wv(r);if(!i)return;const s=EO((a,u)=>{const c=i.clientWidth;n(a,u),c{const u=a[0],c=u.contentRect.width,d=u.contentRect.height;c===0&&d===0||s(c,d)});return o.observe(i),NG(e,s),o}function Wp(e,t,n){n&&n.disconnect(),t==="resize"&&BG(e)}function HG(e,t,n){const r=e.canvas,i=EO(s=>{e.ctx!==null&&n(FG(s,e))},e);return LG(r,t,i),i}class WG extends GO{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(kG(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[zf])return!1;const r=n[zf].initial;["height","width"].forEach(s=>{const o=r[s];Rt(o)?n.removeAttribute(s):n.setAttribute(s,o)});const i=r.style||{};return Object.keys(i).forEach(s=>{n.style[s]=i[s]}),n.width=n.width,delete n[zf],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:$G,detach:DG,resize:zG}[n]||HG;i[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:Wp,detach:Wp,resize:Wp}[n]||IG)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return LY(t,n,r,i)}isAttached(t){const n=Wv(t);return!!(n&&n.isConnected)}}function VG(e){return!NO()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?PG:WG}var vf;let as=(vf=class{constructor(){Re(this,"x");Re(this,"y");Re(this,"active",!1);Re(this,"options");Re(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Va(this.x)&&Va(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(s=>{i[s]=r[s]&&r[s].active()?r[s]._to:this[s]}),i}},Re(vf,"defaults",{}),Re(vf,"defaultRoutes"),vf);function jG(e,t){const n=e.options.ticks,r=UG(e),i=Math.min(n.maxTicksLimit||r,r),s=n.major.enabled?qG(t):[],o=s.length,a=s[0],u=s[o-1],c=[];if(o>i)return YG(t,c,s,o/i),c;const d=KG(s,t,i);if(o>0){let h,g;const m=o>1?Math.round((u-a)/(o-1)):null;for(ff(t,c,d,Rt(m)?0:a-m,a),h=0,g=o-1;hi)return u}return Math.max(i,1)}function qG(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,Vw=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,jw=(e,t)=>Math.min(t||e,e);function Uw(e,t){const n=[],r=e.length/t,i=e.length;let s=0;for(;so+a)))return u}function ZG(e,t){Wt(e,n=>{const r=n.gc,i=r.length/2;let s;if(i>t){for(s=0;sr?r:n,r=i&&n>r?n:r,{min:wr(n,wr(r,n)),max:wr(r,wr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){qt(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:s,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=fY(this,s,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const u=a=s||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const d=this._getLabelSizes(),h=d.widest.width,g=d.highest.height,m=Tn(this.chart.width-h,0,this.maxWidth);a=t.offset?this.maxWidth/r:m/(r-1),h+6>a&&(a=m/(r-(t.offset?.5:1)),u=this.maxHeight-Tl(t.grid)-n.padding-Kw(t.title,this.chart.options.font),c=Math.sqrt(h*h+g*g),o=Iv(Math.min(Math.asin(Tn((d.highest.height+6)/a,-1,1)),Math.asin(Tn(u/c,-1,1))-Math.asin(Tn(g/c,-1,1)))),o=Math.max(i,Math.min(s,o))),this.labelRotation=o}afterCalculateLabelRotation(){qt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){qt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:s}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const u=Kw(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=Tl(s)+u):(t.height=this.maxHeight,t.width=Tl(s)+u),r.display&&this.ticks.length){const{first:c,last:d,widest:h,highest:g}=this._getLabelSizes(),m=r.padding*2,b=ri(this.labelRotation),v=Math.cos(b),_=Math.sin(b);if(a){const y=r.mirror?0:_*h.width+v*g.height;t.height=Math.min(this.maxHeight,t.height+y+m)}else{const y=r.mirror?0:v*h.width+_*g.height;t.width=Math.min(this.maxWidth,t.width+y+m)}this._calculatePadding(c,d,_,v)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:s,padding:o},position:a}=this.options,u=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let g=0,m=0;u?c?(g=i*t.width,m=r*n.height):(g=r*t.height,m=i*n.width):s==="start"?m=n.width:s==="end"?g=t.width:s!=="inner"&&(g=t.width/2,m=n.width/2),this.paddingLeft=Math.max((g-d+o)*this.width/(this.width-d),0),this.paddingRight=Math.max((m-h+o)*this.width/(this.width-h),0)}else{let d=n.height/2,h=t.height/2;s==="start"?(d=0,h=t.height):s==="end"&&(d=n.height,h=0),this.paddingTop=d+o,this.paddingBottom=h+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){qt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:o[F]||0,height:a[F]||0});return{first:R(0),last:R(n-1),widest:R(T),highest:R(P),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return zq(this._alignToPixels?po(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ta*i?a/r:u/i:u*i0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:s,position:o,border:a}=i,u=s.offset,c=this.isHorizontal(),h=this.ticks.length+(u?1:0),g=Tl(s),m=[],b=a.setContext(this.getContext()),v=b.display?b.width:0,_=v/2,y=function(te){return po(r,te,v)};let C,O,w,M,T,P,R,F,D,V,A,U;if(o==="top")C=y(this.bottom),P=this.bottom-g,F=C-_,V=y(t.top)+_,U=t.bottom;else if(o==="bottom")C=y(this.top),V=t.top,U=y(t.bottom)-_,P=C+_,F=this.top+g;else if(o==="left")C=y(this.right),T=this.right-g,R=C-_,D=y(t.left)+_,A=t.right;else if(o==="right")C=y(this.left),D=t.left,A=y(t.right)-_,T=C+_,R=this.left+g;else if(n==="x"){if(o==="center")C=y((t.top+t.bottom)/2+.5);else if(At(o)){const te=Object.keys(o)[0],Z=o[te];C=y(this.chart.scales[te].getPixelForValue(Z))}V=t.top,U=t.bottom,P=C+_,F=P+g}else if(n==="y"){if(o==="center")C=y((t.left+t.right)/2);else if(At(o)){const te=Object.keys(o)[0],Z=o[te];C=y(this.chart.scales[te].getPixelForValue(Z))}T=C-_,R=T-g,D=t.left,A=t.right}const le=gt(i.ticks.maxTicksLimit,h),ce=Math.max(1,Math.ceil(h/le));for(O=0;Os.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const a=(u,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(u.x,u.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(s=0,o=i.length;s{this.draw(s)}}]:[{z:r,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let s,o;for(s=0,o=n.length;s{const r=n.split("."),i=r.pop(),s=[e].concat(r).join("."),o=t[n].split("."),a=o.pop(),u=o.join(".");dn.route(s,i,u,a)})}function sX(e){return"id"in e&&"defaults"in e}class oX{constructor(){this.controllers=new df(si,"datasets",!0),this.elements=new df(as,"elements"),this.plugins=new df(Object,"plugins"),this.scales=new df(Jo,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const s=r||this._getRegistryForType(i);r||s.isForType(i)||s===this.plugins&&i.id?this._exec(t,s,i):Wt(i,o=>{const a=r||this._getRegistryForType(o);this._exec(t,a,o)})})}_exec(t,n,r){const i=Lv(t);qt(r["before"+i],[],r),n[t](r),qt(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;ns.filter(a=>!o.some(u=>a.plugin.id===u.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function lX(e){const t={},n=[],r=Object.keys(mi.plugins.items);for(let s=0;s1&&qw(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Yw(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function gX(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return Yw(e,"x",n[0])||Yw(e,"y",n[0])}return{}}function mX(e,t){const n=Vo[e.type]||{scales:{}},r=t.scales||{},i=Yg(e.type,t),s=Object.create(null);return Object.keys(r).forEach(o=>{const a=r[o];if(!At(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const u=Gg(o,a,gX(o,e),dn.scales[a.type]),c=hX(u,i),d=n.scales||{};s[o]=Zl(Object.create(null),[{axis:u},a,d[u],d[c]])}),e.data.datasets.forEach(o=>{const a=o.type||e.type,u=o.indexAxis||Yg(a,t),d=(Vo[a]||{}).scales||{};Object.keys(d).forEach(h=>{const g=dX(h,u),m=o[g+"AxisID"]||g;s[m]=s[m]||Object.create(null),Zl(s[m],[{axis:g},r[m],d[h]])})}),Object.keys(s).forEach(o=>{const a=s[o];Zl(a,[dn.scales[a.type],dn.scale])}),s}function ZO(e){const t=e.options||(e.options={});t.plugins=gt(t.plugins,{}),t.scales=mX(e,t)}function QO(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function vX(e){return e=e||{},e.data=QO(e.data),ZO(e),e}const Gw=new Map,eE=new Set;function hf(e,t){let n=Gw.get(e);return n||(n=t(),Gw.set(e,n),eE.add(n)),n}const Al=(e,t,n)=>{const r=Ks(t,n);r!==void 0&&e.add(r)};class bX{constructor(t){this._config=vX(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=QO(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),ZO(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return hf(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return hf(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return hf(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return hf(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:s}=this,o=this._cachedScopes(t,r),a=o.get(n);if(a)return a;const u=new Set;n.forEach(d=>{t&&(u.add(t),d.forEach(h=>Al(u,t,h))),d.forEach(h=>Al(u,i,h)),d.forEach(h=>Al(u,Vo[s]||{},h)),d.forEach(h=>Al(u,dn,h)),d.forEach(h=>Al(u,Ug,h))});const c=Array.from(u);return c.length===0&&c.push(Object.create(null)),eE.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Vo[n]||{},dn.datasets[n]||{},{type:n},dn,Ug]}resolveNamedOptions(t,n,r,i=[""]){const s={$shared:!0},{resolver:o,subPrefixes:a}=Xw(this._resolverCache,t,i);let u=o;if(_X(o,n)){s.$shared=!1,r=qs(r)?r():r;const c=this.createResolver(t,r,a);u=ja(o,r,c)}for(const c of n)s[c]=u[c];return s}createResolver(t,n,r=[""],i){const{resolver:s}=Xw(this._resolverCache,t,r);return At(n)?ja(s,n,void 0,i):s}}function Xw(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let s=r.get(i);return s||(s={resolver:Bv(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,s)),s}const yX=e=>At(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||qs(e[n]),!1);function _X(e,t){const{isScriptable:n,isIndexable:r}=kO(e);for(const i of t){const s=n(i),o=r(i),a=(o||s)&&e[i];if(s&&(qs(a)||yX(a))||o&&Qt(a))return!0}return!1}var wX="4.3.0";const xX=["top","bottom","left","right","chartArea"];function Jw(e,t){return e==="top"||e==="bottom"||xX.indexOf(e)===-1&&t==="x"}function Zw(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Qw(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),qt(n&&n.onComplete,[e],t)}function CX(e){const t=e.chart,n=t.options.animation;qt(n&&n.onProgress,[e],t)}function tE(e){return NO()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Hf={},ex=e=>{const t=tE(e);return Object.values(Hf).filter(n=>n.canvas===t).pop()};function SX(e,t,n){const r=Object.keys(e);for(const i of r){const s=+i;if(s>=t){const o=e[i];delete e[i],(n>0||s>t)&&(e[s+n]=o)}}}function OX(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function EX(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}class bi{static register(...t){mi.add(...t),tx()}static unregister(...t){mi.remove(...t),tx()}constructor(t,n){const r=this.config=new bX(n),i=tE(t),s=ex(i);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||VG(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,o.aspectRatio),u=a&&a.canvas,c=u&&u.height,d=u&&u.width;if(this.id=Tq(),this.ctx=a,this.canvas=u,this.width=d,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new aX,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=jq(h=>this.update(h),o.resizeDelay||0),this._dataChanges=[],Hf[this.id]=this,!a||!u){console.error("Failed to create chart: can't acquire context from the given item");return}Vi.listen(this,"complete",Qw),Vi.listen(this,"progress",CX),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:s}=this;return Rt(t)?n&&s?s:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return mi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():xw(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return yw(this.canvas,this.ctx),this}stop(){return Vi.stop(this),this}resize(t,n){Vi.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,s=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,n,s),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),u=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,xw(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),qt(r.onResize,[this,o],this),this.attached&&this._doResize(u)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Wt(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((o,a)=>(o[a]=!1,o),{});let s=[];n&&(s=s.concat(Object.keys(n).map(o=>{const a=n[o],u=Gg(o,a),c=u==="r",d=u==="x";return{options:a,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),Wt(s,o=>{const a=o.options,u=a.id,c=Gg(u,a),d=gt(a.type,o.dtype);(a.position===void 0||Jw(a.position,c)!==Jw(o.dposition))&&(a.position=o.dposition),i[u]=!0;let h=null;if(u in r&&r[u].type===d)h=r[u];else{const g=mi.getScale(d);h=new g({id:u,type:d,ctx:this.ctx,chart:this}),r[h.id]=h}h.init(a,t)}),Wt(i,(o,a)=>{o||delete r[a]}),Wt(r,o=>{Un.configure(this,o,o.options),Un.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,s)=>i.index-s.index),r>n){for(let i=n;in.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(s=>s===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,d=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Zw("z","_idx"));const{_active:a,_lastEvent:u}=this;u?this._eventHandler(u,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Wt(this.scales,t=>{Un.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!cw(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:s}of n){const o=r==="_removeElements"?-s:s;SX(t,i,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=s=>new Set(t.filter(o=>o[0]===s).map((o,a)=>a+","+o.splice(1).join(","))),i=r(0);for(let s=1;ss.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Un.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Wt(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,s)=>{i._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,s=EX(t)||this.chartArea,o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(i&&Kd(n,{left:r.left===!1?0:s.left-r.left,right:r.right===!1?this.width:s.right+r.right,top:r.top===!1?0:s.top-r.top,bottom:r.bottom===!1?this.height:s.bottom+r.bottom}),t.controller.draw(),i&&qd(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Xi(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const s=xG.modes[n];return typeof s=="function"?s(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(s=>s&&s._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Zs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",s=this.getDatasetMeta(t),o=s.controller._resolveAnimations(void 0,i);Mu(n)?(s.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),o.update(s,{visible:r}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Vi.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,s,o),t[s]=o},i=(s,o,a)=>{s.offsetX=o,s.offsetY=a,this._eventHandler(s)};Wt(this.options.events,s=>r(s,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(u,c)=>{n.addEventListener(this,u,c),t[u]=c},i=(u,c)=>{t[u]&&(n.removeEventListener(this,u,c),delete t[u])},s=(u,c)=>{this.canvas&&this.resize(u,c)};let o;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",s),r("detach",o)};o=()=>{this.attached=!1,i("resize",s),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():o()}unbindEvents(){Wt(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Wt(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let s,o,a,u;for(n==="dataset"&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+i+"DatasetHoverStyle"]()),a=0,u=t.length;a{const a=this.getDatasetMeta(s);if(!a)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:a.data[o],index:o}});!ud(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,s=(u,c)=>u.filter(d=>!c.some(h=>d.datasetIndex===h.datasetIndex&&d.index===h.index)),o=s(n,t),a=r?t:s(t,n);o.length&&this.updateHoverStyle(o,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const s=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(s||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:s}=this,o=n,a=this._getActiveElements(t,i,r,o),u=Iq(t),c=OX(t,this._lastEvent,r,u);r&&(this._lastEvent=null,qt(s.onHover,[t,a,this],this),u&&qt(s.onClick,[t,a,this],this));const d=!ud(a,i);return(d||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,d}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,i)}}Re(bi,"defaults",dn),Re(bi,"instances",Hf),Re(bi,"overrides",Vo),Re(bi,"registry",mi),Re(bi,"version",wX),Re(bi,"getChart",ex);function tx(){return Wt(bi.instances,e=>e._plugins.invalidate())}function MX(e,t,n){const{startAngle:r,pixelMargin:i,x:s,y:o,outerRadius:a,innerRadius:u}=t;let c=i/a;e.beginPath(),e.arc(s,o,a,r-c,n+c),u>i?(c=i/u,e.arc(s,o,u,n+c,r-c,!0)):e.arc(s,o,i,n+fn,r-fn),e.closePath(),e.clip()}function TX(e){return Nv(e,["outerStart","outerEnd","innerStart","innerEnd"])}function AX(e,t,n,r){const i=TX(e.options.borderRadius),s=(n-t)/2,o=Math.min(s,r*t/2),a=u=>{const c=(n-Math.min(s,u))*r/2;return Tn(u,0,Math.min(s,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:Tn(i.innerStart,0,o),innerEnd:Tn(i.innerEnd,0,o)}}function ma(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function gd(e,t,n,r,i,s){const{x:o,y:a,startAngle:u,pixelMargin:c,innerRadius:d}=t,h=Math.max(t.outerRadius+r+n-c,0),g=d>0?d+r+n+c:0;let m=0;const b=i-u;if(r){const ce=d>0?d-r:0,te=h>0?h-r:0,Z=(ce+te)/2,ie=Z!==0?b*Z/(Z+r):b;m=(b-ie)/2}const v=Math.max(.001,b*h-n/on)/h,_=(b-v)/2,y=u+_+m,C=i-_-m,{outerStart:O,outerEnd:w,innerStart:M,innerEnd:T}=AX(t,g,h,C-y),P=h-O,R=h-w,F=y+O/P,D=C-w/R,V=g+M,A=g+T,U=y+M/V,le=C-T/A;if(e.beginPath(),s){const ce=(F+D)/2;if(e.arc(o,a,h,F,ce),e.arc(o,a,h,ce,D),w>0){const Q=ma(R,D,o,a);e.arc(Q.x,Q.y,w,D,C+fn)}const te=ma(A,C,o,a);if(e.lineTo(te.x,te.y),T>0){const Q=ma(A,le,o,a);e.arc(Q.x,Q.y,T,C+fn,le+Math.PI)}const Z=(C-T/g+(y+M/g))/2;if(e.arc(o,a,g,C-T/g,Z,!0),e.arc(o,a,g,Z,y+M/g,!0),M>0){const Q=ma(V,U,o,a);e.arc(Q.x,Q.y,M,U+Math.PI,y-fn)}const ie=ma(P,y,o,a);if(e.lineTo(ie.x,ie.y),O>0){const Q=ma(P,F,o,a);e.arc(Q.x,Q.y,O,y-fn,F)}}else{e.moveTo(o,a);const ce=Math.cos(F)*h+o,te=Math.sin(F)*h+a;e.lineTo(ce,te);const Z=Math.cos(D)*h+o,ie=Math.sin(D)*h+a;e.lineTo(Z,ie)}e.closePath()}function PX(e,t,n,r,i){const{fullCircles:s,startAngle:o,circumference:a}=t;let u=t.endAngle;if(s){gd(e,t,n,r,u,i);for(let c=0;c=en||Tu(o,u,c),_=Yi(a,d+m,h+m);return v&&_}getCenterPoint(n){const{x:r,y:i,startAngle:s,endAngle:o,innerRadius:a,outerRadius:u}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:d}=this.options,h=(s+o)/2,g=(a+u+d+c)/2;return{x:r+Math.cos(h)*g,y:i+Math.sin(h)*g}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:i}=this,s=(r.offset||0)/4,o=(r.spacing||0)/2,a=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>en?Math.floor(i/en):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const u=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(u)*s,Math.sin(u)*s);const c=1-Math.sin(Math.min(on,i||0)),d=s*c;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,PX(n,this,d,o,a),RX(n,this,d,o,a),n.restore()}}Re($l,"id","arc"),Re($l,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),Re($l,"defaultRoutes",{backgroundColor:"backgroundColor"}),Re($l,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function nE(e,t,n=t){e.lineCap=gt(n.borderCapStyle,t.borderCapStyle),e.setLineDash(gt(n.borderDash,t.borderDash)),e.lineDashOffset=gt(n.borderDashOffset,t.borderDashOffset),e.lineJoin=gt(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=gt(n.borderWidth,t.borderWidth),e.strokeStyle=gt(n.borderColor,t.borderColor)}function kX(e,t,n){e.lineTo(n.x,n.y)}function LX(e){return e.stepped?nY:e.tension||e.cubicInterpolationMode==="monotone"?rY:kX}function rE(e,t,n={}){const r=e.length,{start:i=0,end:s=r-1}=n,{start:o,end:a}=t,u=Math.max(i,o),c=Math.min(s,a),d=ia&&s>a;return{count:r,start:u,loop:t.loop,ilen:c(o+(c?a-w:w))%s,O=()=>{v!==_&&(e.lineTo(d,_),e.lineTo(d,v),e.lineTo(d,y))};for(u&&(m=i[C(0)],e.moveTo(m.x,m.y)),g=0;g<=a;++g){if(m=i[C(g)],m.skip)continue;const w=m.x,M=m.y,T=w|0;T===b?(M_&&(_=M),d=(h*d+w)/++h):(O(),e.lineTo(w,M),b=T,h=0,v=_=M),y=M}O()}function Xg(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?FX:IX}function $X(e){return e.stepped?FY:e.tension||e.cubicInterpolationMode==="monotone"?$Y:_o}function DX(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),nE(e,t.options),e.stroke(i)}function NX(e,t,n,r){const{segments:i,options:s}=t,o=Xg(t);for(const a of i)nE(e,s,a.style),e.beginPath(),o(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const BX=typeof Path2D=="function";function zX(e,t,n,r){BX&&!t.options.segment?DX(e,t,n,r):NX(e,t,n,r)}class Rs extends as{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;MY(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=WY(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],s=this.points,o=VO(this,{property:n,start:i,end:i});if(!o.length)return;const a=[],u=$X(r);let c,d;for(c=0,d=o.length;ct!=="borderDash"&&t!=="fill"});function nx(e,t,n,r){const i=e.options,{[n]:s}=e.getProps([n],r);return Math.abs(t-s)e.replace("rgb(","rgba(").replace(")",", 0.5)"));function sE(e){return Jg[e%Jg.length]}function oE(e){return rx[e%rx.length]}function qX(e,t){return e.borderColor=sE(t),e.backgroundColor=oE(t),++t}function YX(e,t){return e.backgroundColor=e.data.map(()=>sE(t++)),t}function GX(e,t){return e.backgroundColor=e.data.map(()=>oE(t++)),t}function XX(e){let t=0;return(n,r)=>{const i=e.getDatasetMeta(r).controller;i instanceof ko?t=YX(n,t):i instanceof nu?t=GX(n,t):i&&(t=qX(n,t))}}function ix(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function JX(e){return e&&(e.borderColor||e.backgroundColor)}var ZX={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:i}=e.config,{elements:s}=i;if(!n.forceOverride&&(ix(r)||JX(i)||s&&ix(s)))return;const o=XX(e);r.forEach(o)}};function QX(e,t,n,r,i){const s=i.samples||r;if(s>=n)return e.slice(t,t+n);const o=[],a=(n-2)/(s-2);let u=0;const c=t+n-1;let d=t,h,g,m,b,v;for(o[u++]=e[d],h=0;hm&&(m=b,g=e[C],v=C);o[u++]=g,d=v}return o[u++]=e[c],o}function eJ(e,t,n,r){let i=0,s=0,o,a,u,c,d,h,g,m,b,v;const _=[],y=t+n-1,C=e[t].x,w=e[y].x-C;for(o=t;ov&&(v=c,g=o),i=(s*i+a.x)/++s;else{const T=o-1;if(!Rt(h)&&!Rt(g)){const P=Math.min(h,g),R=Math.max(h,g);P!==m&&P!==T&&_.push({...e[P],x:i}),R!==m&&R!==T&&_.push({...e[R],x:i})}o>0&&T!==m&&_.push(e[T]),_.push(a),d=M,s=0,b=v=c,h=g=m=o}}return _}function aE(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function sx(e){e.data.datasets.forEach(t=>{aE(t)})}function tJ(e,t){const n=t.length;let r=0,i;const{iScale:s}=e,{min:o,max:a,minDefined:u,maxDefined:c}=s.getUserBounds();return u&&(r=Tn(Gi(t,s.axis,o).lo,0,n-1)),c?i=Tn(Gi(t,s.axis,a).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var nJ={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){sx(e);return}const r=e.width;e.data.datasets.forEach((i,s)=>{const{_data:o,indexAxis:a}=i,u=e.getDatasetMeta(s),c=o||i.data;if(Il([a,e.options.indexAxis])==="y"||!u.controller.supportsDecimation)return;const d=e.scales[u.xAxisID];if(d.type!=="linear"&&d.type!=="time"||e.options.parsing)return;let{start:h,count:g}=tJ(u,c);const m=n.threshold||4*r;if(g<=m){aE(i);return}Rt(o)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(v){this._data=v}}));let b;switch(n.algorithm){case"lttb":b=QX(c,h,g,r,n);break;case"min-max":b=eJ(c,h,g,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=b})},destroy(e){sx(e)}};function rJ(e,t,n){const r=e.segments,i=e.points,s=t.points,o=[];for(const a of r){let{start:u,end:c}=a;c=jv(u,c,i);const d=Zg(n,i[u],i[c],a.loop);if(!t.segments){o.push({source:a,target:d,start:i[u],end:i[c]});continue}const h=VO(t,d);for(const g of h){const m=Zg(n,s[g.start],s[g.end],g.loop),b=WO(a,i,m);for(const v of b)o.push({source:v,target:g,start:{[n]:ox(d,m,"start",Math.max)},end:{[n]:ox(d,m,"end",Math.min)}})}}return o}function Zg(e,t,n,r){if(r)return;let i=t[e],s=n[e];return e==="angle"&&(i=Sr(i),s=Sr(s)),{property:e,start:i,end:s}}function iJ(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,s=[];return t.segments.forEach(({start:o,end:a})=>{a=jv(o,a,i);const u=i[o],c=i[a];r!==null?(s.push({x:u.x,y:r}),s.push({x:c.x,y:r})):n!==null&&(s.push({x:n,y:u.y}),s.push({x:n,y:c.y}))}),s}function jv(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function ox(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function lE(e,t){let n=[],r=!1;return Qt(e)?(r=!0,n=e):n=iJ(e,t),n.length?new Rs({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function ax(e){return e&&e.fill!==!1}function sJ(e,t,n){let i=e[t].fill;const s=[t];let o;if(!n)return i;for(;i!==!1&&s.indexOf(i)===-1;){if(!cn(i))return i;if(o=e[i],!o)return!1;if(o.visible)return i;s.push(i),i=o.fill}return!1}function oJ(e,t,n){const r=cJ(e);if(At(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return cn(i)&&Math.floor(i)===i?aJ(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function aJ(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function lJ(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:At(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function uJ(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:At(e)?r=e.value:r=t.getBaseValue(),r}function cJ(e){const t=e.options,n=t.fill;let r=gt(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function fJ(e){const{scale:t,index:n,line:r}=e,i=[],s=r.segments,o=r.points,a=dJ(t,n);a.push(lE({x:null,y:t.bottom},r));for(let u=0;u=0;--o){const a=i[o].$filler;a&&(a.line.updateControlPoints(s,a.axis),r&&a.fill&&Up(e.ctx,a,s))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const s=r[i].$filler;ax(s)&&Up(e.ctx,s,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!ax(r)||n.drawTime!=="beforeDatasetDraw"||Up(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const fx=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},CJ=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class dx extends as{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=qt(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=xn(r.font),s=i.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:u}=fx(r,s);let c,d;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(o,s,a,u)+10):(d=this.maxHeight,c=this._fitCols(o,i,a,u)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:s,maxWidth:o,options:{labels:{padding:a}}}=this,u=this.legendHitBoxes=[],c=this.lineWidths=[0],d=i+a;let h=t;s.textAlign="left",s.textBaseline="middle";let g=-1,m=-d;return this.legendItems.forEach((b,v)=>{const _=r+n/2+s.measureText(b.text).width;(v===0||c[c.length-1]+_+2*a>o)&&(h+=d,c[c.length-(v>0?0:1)]=0,m+=d,g++),u[v]={left:0,top:m,row:g,width:_,height:i},c[c.length-1]+=_+a}),h}_fitCols(t,n,r,i){const{ctx:s,maxHeight:o,options:{labels:{padding:a}}}=this,u=this.legendHitBoxes=[],c=this.columnSizes=[],d=o-t;let h=a,g=0,m=0,b=0,v=0;return this.legendItems.forEach((_,y)=>{const{itemWidth:C,itemHeight:O}=SJ(r,n,s,_,i);y>0&&m+O+2*a>d&&(h+=g+a,c.push({width:g,height:m}),b+=g+a,v++,g=m=0),u[y]={left:b,top:m,col:v,width:C,height:O},g=Math.max(g,C),m+=O+a}),h+=g,c.push({width:g,height:m}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:s}}=this,o=Sa(s,this.left,this.width);if(this.isHorizontal()){let a=0,u=zn(r,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,u=zn(r,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+t+i,c.left=o.leftForLtr(o.x(u),c.width),u+=c.width+i}else{let a=0,u=zn(r,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,u=zn(r,this.top+t+i,this.bottom-this.columnSizes[a].height)),c.top=u,c.left+=this.left+i,c.left=o.leftForLtr(o.x(c.left),c.width),u+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Kd(t,this),this._draw(),qd(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:s,labels:o}=t,a=dn.color,u=Sa(t.rtl,this.left,this.width),c=xn(o.font),{padding:d}=o,h=c.size,g=h/2;let m;this.drawTitle(),i.textAlign=u.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:b,boxHeight:v,itemHeight:_}=fx(o,h),y=function(T,P,R){if(isNaN(b)||b<=0||isNaN(v)||v<0)return;i.save();const F=gt(R.lineWidth,1);if(i.fillStyle=gt(R.fillStyle,a),i.lineCap=gt(R.lineCap,"butt"),i.lineDashOffset=gt(R.lineDashOffset,0),i.lineJoin=gt(R.lineJoin,"miter"),i.lineWidth=F,i.strokeStyle=gt(R.strokeStyle,a),i.setLineDash(gt(R.lineDash,[])),o.usePointStyle){const D={radius:v*Math.SQRT2/2,pointStyle:R.pointStyle,rotation:R.rotation,borderWidth:F},V=u.xPlus(T,b/2),A=P+g;PO(i,D,V,A,o.pointStyleWidth&&b)}else{const D=P+Math.max((h-v)/2,0),V=u.leftForLtr(T,b),A=No(R.borderRadius);i.beginPath(),Object.values(A).some(U=>U!==0)?Au(i,{x:V,y:D,w:b,h:v,radius:A}):i.rect(V,D,b,v),i.fill(),F!==0&&i.stroke()}i.restore()},C=function(T,P,R){jo(i,R.text,T,P+_/2,c,{strikethrough:R.hidden,textAlign:u.textAlign(R.textAlign)})},O=this.isHorizontal(),w=this._computeTitleHeight();O?m={x:zn(s,this.left+d,this.right-r[0]),y:this.top+d+w,line:0}:m={x:this.left+d,y:zn(s,this.top+w+d,this.bottom-n[0].height),line:0},BO(this.ctx,t.textDirection);const M=_+d;this.legendItems.forEach((T,P)=>{i.strokeStyle=T.fontColor,i.fillStyle=T.fontColor;const R=i.measureText(T.text).width,F=u.textAlign(T.textAlign||(T.textAlign=o.textAlign)),D=b+g+R;let V=m.x,A=m.y;u.setWidth(this.width),O?P>0&&V+D+d>this.right&&(A=m.y+=M,m.line++,V=m.x=zn(s,this.left+d,this.right-r[m.line])):P>0&&A+M>this.bottom&&(V=m.x=V+n[m.line].width+d,m.line++,A=m.y=zn(s,this.top+w+d,this.bottom-n[m.line].height));const U=u.x(V);if(y(U,A,T),V=Uq(F,V+b+g,O?V+D:this.right,t.rtl),C(u.x(V),A,T),O)m.x+=D+d;else if(typeof T.text!="string"){const le=c.lineHeight;m.y+=cE(T,le)}else m.y+=M}),zO(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=xn(n.font),i=Kn(n.padding);if(!n.display)return;const s=Sa(t.rtl,this.left,this.width),o=this.ctx,a=n.position,u=r.size/2,c=i.top+u;let d,h=this.left,g=this.width;if(this.isHorizontal())g=Math.max(...this.lineWidths),d=this.top+c,h=zn(t.align,h,this.right-g);else{const b=this.columnSizes.reduce((v,_)=>Math.max(v,_.height),0);d=c+zn(t.align,this.top,this.bottom-b-t.labels.padding-this._computeTitleHeight())}const m=zn(a,h,h+g);o.textAlign=s.textAlign($v(a)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,jo(o,n.text,m,d,r)}_computeTitleHeight(){const t=this.options.title,n=xn(t.font),r=Kn(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,s;if(Yi(t,this.left,this.right)&&Yi(n,this.top,this.bottom)){for(s=this.legendHitBoxes,r=0;rs.length>o.length?s:o)),t+n.size/2+r.measureText(i).width}function EJ(e,t,n){let r=e;return typeof t.text!="string"&&(r=cE(t,n)),r}function cE(e,t){const n=e.text?e.text.length+.5:0;return t*n}function MJ(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var TJ={id:"legend",_element:dx,start(e,t,n){const r=e.legend=new dx({ctx:e.ctx,options:n,chart:e});Un.configure(e,r,n),Un.addBox(e,r)},stop(e){Un.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Un.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:s,useBorderRadius:o,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(u=>{const c=u.controller.getStyle(n?0:void 0),d=Kn(c.borderWidth);return{text:t[u.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!u.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(a||c.borderRadius),datasetIndex:u.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Uv extends as{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=Qt(r.text)?r.text.length:1;this._padding=Kn(r.padding);const s=i*xn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:s,options:o}=this,a=o.align;let u=0,c,d,h;return this.isHorizontal()?(d=zn(a,r,s),h=n+t,c=s-r):(o.position==="left"?(d=r+t,h=zn(a,i,n),u=on*-.5):(d=s-t,h=zn(a,n,i),u=on*.5),c=i-n),{titleX:d,titleY:h,maxWidth:c,rotation:u}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=xn(n.font),s=r.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:u,rotation:c}=this._drawArgs(s);jo(t,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:c,textAlign:$v(n.align),textBaseline:"middle",translation:[o,a]})}}function AJ(e,t){const n=new Uv({ctx:e.ctx,options:t,chart:e});Un.configure(e,n,t),Un.addBox(e,n),e.titleBlock=n}var PJ={id:"title",_element:Uv,start(e,t,n){AJ(e,n)},stop(e){const t=e.titleBlock;Un.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Un.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const pf=new WeakMap;var RJ={id:"subtitle",start(e,t,n){const r=new Uv({ctx:e.ctx,options:n,chart:e});Un.configure(e,r,n),Un.addBox(e,r),pf.set(e,r)},stop(e){Un.removeBox(e,pf.get(e)),pf.delete(e)},beforeUpdate(e,t,n){const r=pf.get(e);Un.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Dl={average(e){if(!e.length)return!1;let t,n,r=0,i=0,s=0;for(t=0,n=e.length;t-1?e.split(` +`):e}function kJ(e,t){const{element:n,datasetIndex:r,index:i}=t,s=e.getDatasetMeta(r).controller,{label:o,value:a}=s.getLabelAndValue(i);return{chart:e,label:o,parsed:s.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:a,dataset:s.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function hx(e,t){const n=e.chart.ctx,{body:r,footer:i,title:s}=e,{boxWidth:o,boxHeight:a}=t,u=xn(t.bodyFont),c=xn(t.titleFont),d=xn(t.footerFont),h=s.length,g=i.length,m=r.length,b=Kn(t.padding);let v=b.height,_=0,y=r.reduce((w,M)=>w+M.before.length+M.lines.length+M.after.length,0);if(y+=e.beforeBody.length+e.afterBody.length,h&&(v+=h*c.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),y){const w=t.displayColors?Math.max(a,u.lineHeight):u.lineHeight;v+=m*w+(y-m)*u.lineHeight+(y-1)*t.bodySpacing}g&&(v+=t.footerMarginTop+g*d.lineHeight+(g-1)*t.footerSpacing);let C=0;const O=function(w){_=Math.max(_,n.measureText(w).width+C)};return n.save(),n.font=c.string,Wt(e.title,O),n.font=u.string,Wt(e.beforeBody.concat(e.afterBody),O),C=t.displayColors?o+2+t.boxPadding:0,Wt(r,w=>{Wt(w.before,O),Wt(w.lines,O),Wt(w.after,O)}),C=0,n.font=d.string,Wt(e.footer,O),n.restore(),_+=b.width,{width:_,height:v}}function LJ(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function IJ(e,t,n,r){const{x:i,width:s}=r,o=n.caretSize+n.caretPadding;if(e==="left"&&i+s+o>t.width||e==="right"&&i-s-o<0)return!0}function FJ(e,t,n,r){const{x:i,width:s}=n,{width:o,chartArea:{left:a,right:u}}=e;let c="center";return r==="center"?c=i<=(a+u)/2?"left":"right":i<=s/2?c="left":i>=o-s/2&&(c="right"),IJ(c,e,t,n)&&(c="center"),c}function px(e,t,n){const r=n.yAlign||t.yAlign||LJ(e,n);return{xAlign:n.xAlign||t.xAlign||FJ(e,t,n,r),yAlign:r}}function $J(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function DJ(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function gx(e,t,n,r){const{caretSize:i,caretPadding:s,cornerRadius:o}=e,{xAlign:a,yAlign:u}=n,c=i+s,{topLeft:d,topRight:h,bottomLeft:g,bottomRight:m}=No(o);let b=$J(t,a);const v=DJ(t,u,c);return u==="center"?a==="left"?b+=c:a==="right"&&(b-=c):a==="left"?b-=Math.max(d,g)+i:a==="right"&&(b+=Math.max(h,m)+i),{x:Tn(b,0,r.width-t.width),y:Tn(v,0,r.height-t.height)}}function gf(e,t,n){const r=Kn(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function mx(e){return gi([],ji(e))}function NJ(e,t,n){return Zs(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function vx(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const fE={beforeTitle:Bi,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?fE[t].call(n,r):i}class Qg extends as{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,s=new jO(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=NJ(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=ir(r,"beforeTitle",this,t),s=ir(r,"title",this,t),o=ir(r,"afterTitle",this,t);let a=[];return a=gi(a,ji(i)),a=gi(a,ji(s)),a=gi(a,ji(o)),a}getBeforeBody(t,n){return mx(ir(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return Wt(t,s=>{const o={before:[],lines:[],after:[]},a=vx(r,s);gi(o.before,ji(ir(a,"beforeLabel",this,s))),gi(o.lines,ir(a,"label",this,s)),gi(o.after,ji(ir(a,"afterLabel",this,s))),i.push(o)}),i}getAfterBody(t,n){return mx(ir(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=ir(r,"beforeFooter",this,t),s=ir(r,"footer",this,t),o=ir(r,"afterFooter",this,t);let a=[];return a=gi(a,ji(i)),a=gi(a,ji(s)),a=gi(a,ji(o)),a}_createItems(t){const n=this._active,r=this.chart.data,i=[],s=[],o=[];let a=[],u,c;for(u=0,c=n.length;ut.filter(d,h,g,r))),t.itemSort&&(a=a.sort((d,h)=>t.itemSort(d,h,r))),Wt(a,d=>{const h=vx(t.callbacks,d);i.push(ir(h,"labelColor",this,d)),s.push(ir(h,"labelPointStyle",this,d)),o.push(ir(h,"labelTextColor",this,d))}),this.labelColors=i,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=a,a}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let s,o=[];if(!i.length)this.opacity!==0&&(s={opacity:0});else{const a=Dl[r.position].call(this,i,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const u=this._size=hx(this,r),c=Object.assign({},a,u),d=px(this.chart,r,c),h=gx(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,s={opacity:1,x:h.x,y:h.y,width:u.width,height:u.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const s=this.getCaretPosition(t,r,i);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:s}=this,{caretSize:o,cornerRadius:a}=r,{topLeft:u,topRight:c,bottomLeft:d,bottomRight:h}=No(a),{x:g,y:m}=t,{width:b,height:v}=n;let _,y,C,O,w,M;return s==="center"?(w=m+v/2,i==="left"?(_=g,y=_-o,O=w+o,M=w-o):(_=g+b,y=_+o,O=w-o,M=w+o),C=_):(i==="left"?y=g+Math.max(u,d)+o:i==="right"?y=g+b-Math.max(c,h)-o:y=this.caretX,s==="top"?(O=m,w=O-o,_=y-o,C=y+o):(O=m+v,w=O+o,_=y+o,C=y-o),M=O),{x1:_,x2:y,x3:C,y1:O,y2:w,y3:M}}drawTitle(t,n,r){const i=this.title,s=i.length;let o,a,u;if(s){const c=Sa(r.rtl,this.x,this.width);for(t.x=gf(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",o=xn(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,u=0;uC!==0)?(t.beginPath(),t.fillStyle=s.multiKeyBackground,Au(t,{x:v,y:b,w:c,h:u,radius:y}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),Au(t,{x:_,y:b+1,w:c-2,h:u-2,radius:y}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(v,b,c,u),t.strokeRect(v,b,c,u),t.fillStyle=o.backgroundColor,t.fillRect(_,b+1,c-2,u-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:s,bodyAlign:o,displayColors:a,boxHeight:u,boxWidth:c,boxPadding:d}=r,h=xn(r.bodyFont);let g=h.lineHeight,m=0;const b=Sa(r.rtl,this.x,this.width),v=function(R){n.fillText(R,b.x(t.x+m),t.y+g/2),t.y+=g+s},_=b.textAlign(o);let y,C,O,w,M,T,P;for(n.textAlign=o,n.textBaseline="middle",n.font=h.string,t.x=gf(this,_,r),n.fillStyle=r.bodyColor,Wt(this.beforeBody,v),m=a&&_!=="right"?o==="center"?c/2+d:c+2+d:0,w=0,T=i.length;w0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,s=r&&r.y;if(i||s){const o=Dl[t.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=hx(this,t),u=Object.assign({},o,this._size),c=px(n,t,u),d=gx(t,u,c,n);(i._to!==d.x||s._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},s={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=Kn(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(s,t,i,n),BO(t,n.textDirection),s.y+=o.top,this.drawTitle(s,t,n),this.drawBody(s,t,n),this.drawFooter(s,t,n),zO(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:a,index:u})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[u],index:u}}),s=!ud(r,i),o=this._positionChanged(i,n);(s||o)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,s=this._active||[],o=this._getActiveElements(t,s,n,r),a=this._positionChanged(o,t),u=n||!ud(o,s)||a;return u&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),u}_getActiveElements(t,n,r,i){const s=this.options;if(t.type==="mouseout")return[];if(!i)return n;const o=this.chart.getElementsAtEventForMode(t,s.mode,s,r);return s.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:r,caretY:i,options:s}=this,o=Dl[s.position].call(this,t,n);return o!==!1&&(r!==o.x||i!==o.y)}}Re(Qg,"positioners",Dl);var BJ={id:"tooltip",_element:Qg,positioners:Dl,afterInit(e,t,n){n&&(e.tooltip=new Qg({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:fE},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},zJ=Object.freeze({__proto__:null,Colors:ZX,Decimation:nJ,Filler:xJ,Legend:TJ,SubTitle:RJ,Title:PJ,Tooltip:BJ});const HJ=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function WJ(e,t,n,r){const i=e.indexOf(t);if(i===-1)return HJ(e,t,n,r);const s=e.lastIndexOf(t);return i!==s?n:i}const VJ=(e,t)=>e===null?null:Tn(Math.round(e),0,t);function bx(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Re(em,"id","category"),Re(em,"defaults",{ticks:{callback:bx}});function jJ(e,t){const n=[],{bounds:i,step:s,min:o,max:a,precision:u,count:c,maxTicks:d,maxDigits:h,includeBounds:g}=e,m=s||1,b=d-1,{min:v,max:_}=t,y=!Rt(o),C=!Rt(a),O=!Rt(c),w=(_-v)/(h+1);let M=dw((_-v)/b/m)*m,T,P,R,F;if(M<1e-14&&!y&&!C)return[{value:v},{value:_}];F=Math.ceil(_/M)-Math.floor(v/M),F>b&&(M=dw(F*M/b/m)*m),Rt(u)||(T=Math.pow(10,u),M=Math.ceil(M*T)/T),i==="ticks"?(P=Math.floor(v/M)*M,R=Math.ceil(_/M)*M):(P=v,R=_),y&&C&&s&&Nq((a-o)/s,M/1e3)?(F=Math.round(Math.min((a-o)/M,d)),M=(a-o)/F,P=o,R=a):O?(P=y?o:P,R=C?a:R,F=c-1,M=(R-P)/F):(F=(R-P)/M,Ql(F,Math.round(F),M/1e3)?F=Math.round(F):F=Math.ceil(F));const D=Math.max(hw(M),hw(P));T=Math.pow(10,Rt(u)?D:u),P=Math.round(P*T)/T,R=Math.round(R*T)/T;let V=0;for(y&&(g&&P!==o?(n.push({value:o}),Pa)break;n.push({value:A})}return C&&g&&R!==a?n.length&&Ql(n[n.length-1].value,a,yx(a,w,e))?n[n.length-1].value=a:n.push({value:a}):(!C||R===a)&&n.push({value:R}),n}function yx(e,t,{horizontal:n,minRotation:r}){const i=ri(r),s=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/s,o)}class md extends Jo{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Rt(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:s}=this;const o=u=>i=n?i:u,a=u=>s=r?s:u;if(t){const u=xi(i),c=xi(s);u<0&&c<0?a(0):u>0&&c>0&&o(0)}if(i===s){let u=s===0?1:Math.abs(s*.05);a(s+u),t||o(i-u)}this.min=i,this.max=s}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},s=this._range||this,o=jJ(i,s);return t.bounds==="ticks"&&wO(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Yu(t,this.chart.options.locale,this.options.ticks.format)}}class tm extends md{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=cn(t)?t:0,this.max=cn(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=ri(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,s.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Re(tm,"id","linear"),Re(tm,"defaults",{ticks:{callback:Ud.formatters.numeric}});const Ru=e=>Math.floor(Ps(e)),mo=(e,t)=>Math.pow(10,Ru(e)+t);function _x(e){return e/Math.pow(10,Ru(e))===1}function wx(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function UJ(e,t){const n=t-e;let r=Ru(n);for(;wx(e,t,r)>10;)r++;for(;wx(e,t,r)<10;)r--;return Math.min(r,Ru(e))}function KJ(e,{min:t,max:n}){t=wr(e.min,t);const r=[],i=Ru(t);let s=UJ(t,n),o=s<0?Math.pow(10,Math.abs(s)):1;const a=Math.pow(10,s),u=i>s?Math.pow(10,i):0,c=Math.round((t-u)*o)/o,d=Math.floor((t-u)/a/10)*a*10;let h=Math.floor((c-d)/Math.pow(10,s)),g=wr(e.min,Math.round((u+d+h*Math.pow(10,s))*o)/o);for(;g=10?h=h<15?15:20:h++,h>=20&&(s++,h=2,o=s>=0?1:o),g=Math.round((u+d+h*Math.pow(10,s))*o)/o;const m=wr(e.max,g);return r.push({value:m,major:_x(m),significand:h}),r}class nm extends Jo{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=md.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return cn(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=cn(t)?Math.max(0,t):null,this.max=cn(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!cn(this._userMin)&&(this.min=t===mo(this.min,0)?mo(this.min,-1):mo(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const s=a=>r=t?r:a,o=a=>i=n?i:a;r===i&&(r<=0?(s(1),o(10)):(s(mo(r,-1)),o(mo(i,1)))),r<=0&&s(mo(i,-1)),i<=0&&o(mo(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=KJ(n,this);return t.bounds==="ticks"&&wO(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Yu(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ps(t),this._valueRange=Ps(this.max)-Ps(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ps(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}Re(nm,"id","logarithmic"),Re(nm,"defaults",{ticks:{callback:Ud.formatters.logarithmic,major:{enabled:!0}}});function rm(e){const t=e.ticks;if(t.display&&e.display){const n=Kn(t.backdropPadding);return gt(t.font&&t.font.size,dn.font.size)+n.height}return 0}function qJ(e,t,n){return n=Qt(n)?n:[n],{w:tY(e,t.string,n),h:n.length*t.lineHeight}}function xx(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function YJ(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],s=e._pointLabels.length,o=e.options.pointLabels,a=o.centerPointLabels?on/s:0;for(let u=0;ut.r&&(a=(r.end-t.r)/s,e.r=Math.max(e.r,t.r+a)),i.startt.b&&(u=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+u))}function XJ(e,t,n){const r=e.drawingArea,{extra:i,additionalAngle:s,padding:o,size:a}=n,u=e.getPointPosition(t,r+i+o,s),c=Math.round(Iv(Sr(u.angle+fn))),d=tZ(u.y,a.h,c),h=QJ(c),g=eZ(u.x,a.w,h);return{visible:!0,x:u.x,y:d,textAlign:h,left:g,top:d,right:g+a.w,bottom:d+a.h}}function JJ(e,t){if(!t)return!0;const{left:n,top:r,right:i,bottom:s}=e;return!(Xi({x:n,y:r},t)||Xi({x:n,y:s},t)||Xi({x:i,y:r},t)||Xi({x:i,y:s},t))}function ZJ(e,t,n){const r=[],i=e._pointLabels.length,s=e.options,{centerPointLabels:o,display:a}=s.pointLabels,u={extra:rm(s)/2,additionalAngle:o?on/i:0};let c;for(let d=0;d270||n<90)&&(e-=t),e}function nZ(e,t,n){const{left:r,top:i,right:s,bottom:o}=n,{backdropColor:a}=t;if(!Rt(a)){const u=No(t.borderRadius),c=Kn(t.backdropPadding);e.fillStyle=a;const d=r-c.left,h=i-c.top,g=s-r+c.width,m=o-i+c.height;Object.values(u).some(b=>b!==0)?(e.beginPath(),Au(e,{x:d,y:h,w:g,h:m,radius:u}),e.fill()):e.fillRect(d,h,g,m)}}function rZ(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const s=e._pointLabelItems[i];if(!s.visible)continue;const o=r.setContext(e.getPointLabelContext(i));nZ(n,o,s);const a=xn(o.font),{x:u,y:c,textAlign:d}=s;jo(n,e._pointLabels[i],u,c+a.lineHeight/2,a,{color:o.color,textAlign:d,textBaseline:"middle"})}}function dE(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,en);else{let s=e.getPointPosition(0,t);i.moveTo(s.x,s.y);for(let o=1;o{const i=qt(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?YJ(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=en/(this._pointLabels.length||1),r=this.options.startAngle||0;return Sr(t*n+ri(r))}getDistanceFromCenterForValue(t){if(Rt(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(Rt(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(h!==0){u=this.getDistanceFromCenterForValue(d.value);const g=this.getContext(h),m=i.setContext(g),b=s.setContext(g);iZ(this,m,u,o,b)}}),r.display){for(t.save(),a=o-1;a>=0;a--){const d=r.setContext(this.getPointLabelContext(a)),{color:h,lineWidth:g}=d;!g||!h||(t.lineWidth=g,t.strokeStyle=h,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,u=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,u),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let s,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,u)=>{if(u===0&&!n.reverse)return;const c=r.setContext(this.getContext(u)),d=xn(c.font);if(s=this.getDistanceFromCenterForValue(this.ticks[u].value),c.showLabelBackdrop){t.font=d.string,o=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const h=Kn(c.backdropPadding);t.fillRect(-o/2-h.left,-s-d.size/2-h.top,o+h.width,d.size+h.height)}jo(t,a.label,0,-s,d,{color:c.color})}),t.restore()}drawTitle(){}}Re(Nl,"id","radialLinear"),Re(Nl,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ud.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Re(Nl,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Re(Nl,"descriptors",{angleLines:{_fallback:"grid"}});const Gd={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},or=Object.keys(Gd);function oZ(e,t){return e-t}function Cx(e,t){if(Rt(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:s}=e._parseOpts;let o=t;return typeof r=="function"&&(o=r(o)),cn(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(Va(s)||s===!0)?n.startOf(o,"isoWeek",s):n.startOf(o,i)),+o)}function Sx(e,t,n,r){const i=or.length;for(let s=or.indexOf(e);s=or.indexOf(n);s--){const o=or[s];if(Gd[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return or[n?or.indexOf(n):0]}function lZ(e){for(let t=or.indexOf(e)+1,n=or.length;t=t?n[r]:n[i];e[s]=!0}}function uZ(e,t,n,r){const i=e._adapter,s=+i.startOf(t[0].value,r),o=t[t.length-1].value;let a,u;for(a=s;a<=o;a=+i.add(a,1,r))u=n[a],u>=0&&(t[u].major=!0);return t}function Ex(e,t,n){const r=[],i={},s=t.length;let o,a;for(o=0;o+t.value))}initOffsets(t=[]){let n=0,r=0,i,s;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,s=this.getDecimalForValue(t[t.length-1]),t.length===1?r=s:r=(s-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=Tn(n,0,o),r=Tn(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,s=i.time,o=s.unit||Sx(s.minUnit,n,r,this._getLabelCapacity(n)),a=gt(i.ticks.stepSize,1),u=o==="week"?s.isoWeekday:!1,c=Va(u)||u===!0,d={};let h=n,g,m;if(c&&(h=+t.startOf(h,"isoWeek",u)),h=+t.startOf(h,c?"day":o),t.diff(r,n,o)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+o);const b=i.ticks.source==="data"&&this.getDataTimestamps();for(g=h,m=0;gv-_).map(v=>+v)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,s=this._unit,o=n||i[s];return this._adapter.format(t,o)}_tickFormatFunction(t,n,r,i){const s=this.options,o=s.ticks.callback;if(o)return qt(o,[t,n,r],this);const a=s.time.displayFormats,u=this._unit,c=this._majorUnit,d=u&&a[u],h=c&&a[c],g=r[n],m=c&&h&&g&&g.major;return this._adapter.format(t,i||(m?h:d))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Gi(e,"pos",t)),{pos:s,time:a}=e[r],{pos:o,time:u}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Gi(e,"time",t)),{time:s,pos:a}=e[r],{time:o,pos:u}=e[i]);const c=o-s;return c?a+(u-a)*(t-s)/c:a}class im extends ku{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=mf(n,this.min),this._tableRange=mf(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],s=[];let o,a,u,c,d;for(o=0,a=t.length;o=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,a=i.length;o{n=new bi(r,{type:"pie",data:{labels:["Soil C (0-30 cm)","Nitrous Oxide (Fertiliser)","Nitrous Oxide (Mineralised)","Nitrous Oxide (Residues)","Nitrous Oxide (Indirect)","Nitrous Oxide (Urine)","Methane (Animal)"],datasets:[{label:" ",backgroundColor:["rgb(44,55,166)","rgb(255, 99, 132)","rgb(54, 162, 235)","rgb(255, 205, 86)","rgb(79,73,79)","rgb(206,58,31)","rgb(217,109,62)"],data:[t.data.co2[t.data.years.length-1],t.data.n2o.fert[t.data.years.length-1],t.data.n2o.min[t.data.years.length-1],t.data.n2o.res[t.data.years.length-1],t.data.n2o.indirect[t.data.years.length-1],t.data.n2o.urine[t.data.years.length-1],t.data.ch4.animal[t.data.years.length-1]]}]},hoverOffset:1,options:{responsive:!0,maintainAspectRatio:!0}})};return It(()=>{r=document.getElementById("pieChartCanvas"),i()}),Xs(()=>{n.data={labels:["Soil C (0-30 cm)","Nitrous Oxide (Fertiliser)","Nitrous Oxide (Mineralised)","Nitrous Oxide (Residues)","Nitrous Oxide (Indirect)","Nitrous Oxide (Urine)","Methane (Animal)"],datasets:[{label:" ",backgroundColor:["rgb(44,55,166)","rgb(255, 99, 132)","rgb(54, 162, 235)","rgb(255, 205, 86)","rgb(79,73,79)","rgb(206,58,31)","rgb(217,109,62)"],data:[t.data.co2[t.data.years.length-1],t.data.n2o.fert[t.data.years.length-1],t.data.n2o.min[t.data.years.length-1],t.data.n2o.res[t.data.years.length-1],t.data.n2o.indirect[t.data.years.length-1],t.data.n2o.urine[t.data.years.length-1],t.data.ch4.animal[t.data.years.length-1]]}]},n.update()}),(s,o)=>(K(),_e(it,null,[L("div",dZ,[L("h3",hZ,pt(t.label),1)]),pZ],64))}};const mZ=L("h3",null,"Simulation Results",-1),vZ=L("br",null,null,-1),bZ=L("br",null,null,-1),yZ=L("sub",null,"2",-1),_Z=L("br",null,null,-1),wZ=L("sub",null,"2",-1),xZ=L("br",null,null,-1),CZ=L("sub",null,"2",-1),SZ=L("br",null,null,-1),OZ=L("sub",null,"2",-1),EZ=L("br",null,null,-1),MZ=L("sub",null,"2",-1),TZ=L("br",null,null,-1),AZ=L("sub",null,"4",-1),PZ=L("br",null,null,-1),RZ=L("div",{class:"table-error"},null,-1),kZ={__name:"ResultsTable",props:["results","initialOC"],setup(e){const t=e,n=B(()=>{const r=ut(t.results),i=[];i.push({year:r.years[0]-1,oc:t.initialOC});for(let s=0;s{const s=nO,o=tO,a=ci;return K(),_e(it,null,[mZ,W(a,null,{default:z(()=>[W(o,{data:n.value,border:"",style:{width:"100%"}},{default:z(()=>[W(s,{prop:"year",label:"Year"}),W(s,{prop:"crop",label:"Crop"}),W(s,{prop:"rain",label:"Rain"}),W(s,{prop:"yields",label:"Yield"}),W(s,{prop:"biomass","min-width":"90px"},{header:z(()=>[re("Biomass")]),_:1}),W(s,{prop:"nitrogen",label:"Fert"}),W(s,{prop:"urine",label:"Urine"}),W(s,{prop:"oc","min-width":"100px"},{header:z(()=>[re("OC"),vZ,re("(0-10 cm)")]),_:1}),W(s,{prop:"co2","min-width":"100px"},{header:z(()=>[re("Soil C "),bZ,re("(0-30 cm)")]),_:1}),W(s,{prop:"n2o_fert","min-width":"100px"},{header:z(()=>[re("N"),yZ,re("O"),_Z,re("(Fertiliser)")]),_:1}),W(s,{prop:"n2o_min","min-width":"120px"},{header:z(()=>[re("N"),wZ,re("O"),xZ,re("(Mineralised)")]),_:1}),W(s,{prop:"n2o_res","min-width":"110px"},{header:z(()=>[re("N"),CZ,re("O"),SZ,re("(Residues)")]),_:1}),W(s,{prop:"n2o_indirect","min-width":"100px"},{header:z(()=>[re("N"),OZ,re("O"),EZ,re("(Indirect)")]),_:1}),W(s,{prop:"n2o_urine","min-width":"90px"},{header:z(()=>[re("N"),MZ,re("O"),TZ,re("(Urine)")]),_:1}),W(s,{prop:"ch4_animal","min-width":"90px"},{header:z(()=>[re("CH"),AZ,PZ,re("(Animal)")]),_:1}),W(s,{prop:"total",label:"TOTAL"})]),_:1},8,["data"]),RZ]),_:1})],64)}}},LZ=L("h3",null,"Table of management",-1),IZ=L("div",{class:"table-error"},null,-1),FZ={__name:"ManagementTable",props:["results"],setup(e){const t=e,n=B(()=>{const r=ut(t.results),i=[],s=["crop","nitrogen","stubble","grazing"];for(let o of s){const a={};a.year=o.charAt(0).toUpperCase()+o.slice(1);for(let u=0;u{const s=nO,o=tO,a=ci;return K(),_e(it,null,[LZ,W(a,null,{default:z(()=>[W(o,{data:n.value,border:"",style:{width:"100%"}},{default:z(()=>[W(s,{prop:"year",label:"Year",width:"100px"}),(K(!0),_e(it,null,En(e.results.years,u=>(K(),Me(s,{prop:`'${u}'`},{header:z(()=>[re(pt(u),1)]),_:2},1032,["prop"]))),256))]),_:1},8,["data"]),IZ]),_:1})],64)}}},$Z=L("div",{class:"grid"},[L("h3",{class:"justify-self-center text-3xl"},"Results")],-1),DZ=L("div",null,[L("canvas",{id:"lineChartCanvas",style:{position:"relative",height:"40vh",width:"80vw"}})],-1),NZ={__name:"LineChart",props:["label","xAxis","data"],setup(e){const t=e;let n,r;const i=({min:s,max:o})=>{n=new bi(r,{type:"line",data:{labels:t.xAxis,datasets:[{label:t.label,backgroundColor:"rgba(220,220,220,0.26)",borderColor:"rgb(53,148,126)",data:t.data}]},options:{responsive:!0,maintainAspectRatio:!1,lineTension:0,scales:{y:{ticks:{beginAtZero:!1,padding:25},suggestedMin:s,suggestedMax:o},x:{}}}})};return It(()=>{r=document.getElementById("lineChartCanvas");const s=t.data[0]+t.data[0]*.01,o=t.data[t.data.length-1]-t.data[t.data.length-1]*.01;i({min:o,max:s,data:t.data})}),Xs(()=>{const s=t.data[0]+t.data[0]*.01,o=t.data[t.data.length-1]-t.data[t.data.length-1]*.01;n.options={responsive:!0,maintainAspectRatio:!0,lineTension:0,scales:{y:{ticks:{beginAtZero:!1,padding:25},suggestedMin:o,suggestedMax:s},x:{}}},n.data={labels:t.xAxis,datasets:[{label:t.label,backgroundColor:"rgba(220,220,220,0.26)",borderColor:"rgb(53,148,126)",data:t.data}]},n.update()}),(s,o)=>(K(),_e(it,null,[$Z,DZ],64))}};var vd={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */vd.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",a="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,d="__lodash_placeholder__",h=1,g=2,m=4,b=1,v=2,_=1,y=2,C=4,O=8,w=16,M=32,T=64,P=128,R=256,F=512,D=30,V="...",A=800,U=16,le=1,ce=2,te=3,Z=1/0,ie=9007199254740991,Q=17976931348623157e292,ye=0/0,Ee=4294967295,Le=Ee-1,ue=Ee>>>1,Ze=[["ary",P],["bind",_],["bindKey",y],["curry",O],["curryRight",w],["flip",F],["partial",M],["partialRight",T],["rearg",R]],$e="[object Arguments]",Je="[object Array]",Y="[object AsyncFunction]",oe="[object Boolean]",de="[object Date]",Oe="[object DOMException]",Ve="[object Error]",$="[object Function]",H="[object GeneratorFunction]",q="[object Map]",se="[object Number]",pe="[object Null]",me="[object Object]",Ae="[object Promise]",Se="[object Proxy]",Ce="[object RegExp]",ge="[object Set]",Be="[object String]",Pe="[object Symbol]",ne="[object Undefined]",Te="[object WeakMap]",Ue="[object WeakSet]",at="[object ArrayBuffer]",ot="[object DataView]",Bt="[object Float32Array]",ke="[object Float64Array]",Ke="[object Int8Array]",ct="[object Int16Array]",et="[object Int32Array]",xt="[object Uint8Array]",St="[object Uint8ClampedArray]",$t="[object Uint16Array]",ee="[object Uint32Array]",we=/\b__p \+= '';/g,Ge=/\b(__p \+=) '' \+/g,ft=/(__e\(.*?\)|\b__t\)) \+\n'';/g,nn=/&(?:amp|lt|gt|quot|#39);/g,an=/[&<>"']/g,hr=RegExp(nn.source),Kr=RegExp(an.source),Zn=/<%-([\s\S]+?)%>/g,rl=/<%([\s\S]+?)%>/g,Dn=/<%=([\s\S]+?)%>/g,Mi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,OE=/^\w*$/,EE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qd=/[\\^$.*+?()[\]{}|]/g,ME=RegExp(Qd.source),eh=/^\s+/,TE=/\s/,AE=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,PE=/\{\n\/\* \[wrapped with (.+)\] \*/,RE=/,? & /,kE=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,LE=/[()=,{}\[\]\/\s]/,IE=/\\(\\)?/g,FE=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qv=/\w*$/,$E=/^[-+]0x[0-9a-f]+$/i,DE=/^0b[01]+$/i,NE=/^\[object .+?Constructor\]$/,BE=/^0o[0-7]+$/i,zE=/^(?:0|[1-9]\d*)$/,HE=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xu=/($^)/,WE=/['\n\r\u2028\u2029\\]/g,Ju="\\ud800-\\udfff",VE="\\u0300-\\u036f",jE="\\ufe20-\\ufe2f",UE="\\u20d0-\\u20ff",Yv=VE+jE+UE,Gv="\\u2700-\\u27bf",Xv="a-z\\xdf-\\xf6\\xf8-\\xff",KE="\\xac\\xb1\\xd7\\xf7",qE="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",YE="\\u2000-\\u206f",GE=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Jv="A-Z\\xc0-\\xd6\\xd8-\\xde",Zv="\\ufe0e\\ufe0f",Qv=KE+qE+YE+GE,th="['’]",XE="["+Ju+"]",eb="["+Qv+"]",Zu="["+Yv+"]",tb="\\d+",JE="["+Gv+"]",nb="["+Xv+"]",rb="[^"+Ju+Qv+tb+Gv+Xv+Jv+"]",nh="\\ud83c[\\udffb-\\udfff]",ZE="(?:"+Zu+"|"+nh+")",ib="[^"+Ju+"]",rh="(?:\\ud83c[\\udde6-\\uddff]){2}",ih="[\\ud800-\\udbff][\\udc00-\\udfff]",Zo="["+Jv+"]",sb="\\u200d",ob="(?:"+nb+"|"+rb+")",QE="(?:"+Zo+"|"+rb+")",ab="(?:"+th+"(?:d|ll|m|re|s|t|ve))?",lb="(?:"+th+"(?:D|LL|M|RE|S|T|VE))?",ub=ZE+"?",cb="["+Zv+"]?",eM="(?:"+sb+"(?:"+[ib,rh,ih].join("|")+")"+cb+ub+")*",tM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",fb=cb+ub+eM,rM="(?:"+[JE,rh,ih].join("|")+")"+fb,iM="(?:"+[ib+Zu+"?",Zu,rh,ih,XE].join("|")+")",sM=RegExp(th,"g"),oM=RegExp(Zu,"g"),sh=RegExp(nh+"(?="+nh+")|"+iM+fb,"g"),aM=RegExp([Zo+"?"+nb+"+"+ab+"(?="+[eb,Zo,"$"].join("|")+")",QE+"+"+lb+"(?="+[eb,Zo+ob,"$"].join("|")+")",Zo+"?"+ob+"+"+ab,Zo+"+"+lb,nM,tM,tb,rM].join("|"),"g"),lM=RegExp("["+sb+Ju+Yv+Zv+"]"),uM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,cM=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],fM=-1,Gt={};Gt[Bt]=Gt[ke]=Gt[Ke]=Gt[ct]=Gt[et]=Gt[xt]=Gt[St]=Gt[$t]=Gt[ee]=!0,Gt[$e]=Gt[Je]=Gt[at]=Gt[oe]=Gt[ot]=Gt[de]=Gt[Ve]=Gt[$]=Gt[q]=Gt[se]=Gt[me]=Gt[Ce]=Gt[ge]=Gt[Be]=Gt[Te]=!1;var Ut={};Ut[$e]=Ut[Je]=Ut[at]=Ut[ot]=Ut[oe]=Ut[de]=Ut[Bt]=Ut[ke]=Ut[Ke]=Ut[ct]=Ut[et]=Ut[q]=Ut[se]=Ut[me]=Ut[Ce]=Ut[ge]=Ut[Be]=Ut[Pe]=Ut[xt]=Ut[St]=Ut[$t]=Ut[ee]=!0,Ut[Ve]=Ut[$]=Ut[Te]=!1;var dM={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},hM={"&":"&","<":"<",">":">",'"':""","'":"'"},pM={"&":"&","<":"<",">":">",""":'"',"'":"'"},gM={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},mM=parseFloat,vM=parseInt,db=typeof Zt=="object"&&Zt&&Zt.Object===Object&&Zt,bM=typeof self=="object"&&self&&self.Object===Object&&self,Rn=db||bM||Function("return this")(),oh=t&&!t.nodeType&&t,Qs=oh&&!0&&e&&!e.nodeType&&e,hb=Qs&&Qs.exports===oh,ah=hb&&db.process,Tr=function(){try{var G=Qs&&Qs.require&&Qs.require("util").types;return G||ah&&ah.binding&&ah.binding("util")}catch{}}(),pb=Tr&&Tr.isArrayBuffer,gb=Tr&&Tr.isDate,mb=Tr&&Tr.isMap,vb=Tr&&Tr.isRegExp,bb=Tr&&Tr.isSet,yb=Tr&&Tr.isTypedArray;function pr(G,fe,ae){switch(ae.length){case 0:return G.call(fe);case 1:return G.call(fe,ae[0]);case 2:return G.call(fe,ae[0],ae[1]);case 3:return G.call(fe,ae[0],ae[1],ae[2])}return G.apply(fe,ae)}function yM(G,fe,ae,ze){for(var dt=-1,Lt=G==null?0:G.length;++dt-1}function lh(G,fe,ae){for(var ze=-1,dt=G==null?0:G.length;++ze-1;);return ae}function Mb(G,fe){for(var ae=G.length;ae--&&Qo(fe,G[ae],0)>-1;);return ae}function TM(G,fe){for(var ae=G.length,ze=0;ae--;)G[ae]===fe&&++ze;return ze}var AM=dh(dM),PM=dh(hM);function RM(G){return"\\"+gM[G]}function kM(G,fe){return G==null?n:G[fe]}function ea(G){return lM.test(G)}function LM(G){return uM.test(G)}function IM(G){for(var fe,ae=[];!(fe=G.next()).done;)ae.push(fe.value);return ae}function mh(G){var fe=-1,ae=Array(G.size);return G.forEach(function(ze,dt){ae[++fe]=[dt,ze]}),ae}function Tb(G,fe){return function(ae){return G(fe(ae))}}function cs(G,fe){for(var ae=-1,ze=G.length,dt=0,Lt=[];++ae-1}function wT(l,f){var p=this.__data__,x=mc(p,l);return x<0?(++this.size,p.push([l,f])):p[x][1]=f,this}Ti.prototype.clear=vT,Ti.prototype.delete=bT,Ti.prototype.get=yT,Ti.prototype.has=_T,Ti.prototype.set=wT;function Ai(l){var f=-1,p=l==null?0:l.length;for(this.clear();++f=f?l:f)),l}function kr(l,f,p,x,E,I){var N,j=f&h,J=f&g,ve=f&m;if(p&&(N=E?p(l,x,E,I):p(l)),N!==n)return N;if(!ln(l))return l;var be=ht(l);if(be){if(N=OA(l),!j)return Qn(l,N)}else{var xe=Bn(l),De=xe==$||xe==H;if(ms(l))return c0(l,j);if(xe==me||xe==$e||De&&!E){if(N=J||De?{}:A0(l),!j)return J?pA(l,DT(N,l)):hA(l,zb(N,l))}else{if(!Ut[xe])return E?l:{};N=EA(l,xe,j)}}I||(I=new Yr);var je=I.get(l);if(je)return je;I.set(l,N),iy(l)?l.forEach(function(rt){N.add(kr(rt,f,p,rt,l,I))}):ny(l)&&l.forEach(function(rt,Ot){N.set(Ot,kr(rt,f,p,Ot,l,I))});var nt=ve?J?Wh:Hh:J?tr:On,_t=be?n:nt(l);return Ar(_t||l,function(rt,Ot){_t&&(Ot=rt,rt=l[Ot]),cl(N,Ot,kr(rt,f,p,Ot,l,I))}),N}function NT(l){var f=On(l);return function(p){return Hb(p,l,f)}}function Hb(l,f,p){var x=p.length;if(l==null)return!x;for(l=jt(l);x--;){var E=p[x],I=f[E],N=l[E];if(N===n&&!(E in l)||!I(N))return!1}return!0}function Wb(l,f,p){if(typeof l!="function")throw new Pr(o);return vl(function(){l.apply(n,p)},f)}function fl(l,f,p,x){var E=-1,I=Qu,N=!0,j=l.length,J=[],ve=f.length;if(!j)return J;p&&(f=rn(f,gr(p))),x?(I=lh,N=!1):f.length>=i&&(I=il,N=!1,f=new no(f));e:for(;++EE?0:E+p),x=x===n||x>E?E:vt(x),x<0&&(x+=E),x=p>x?0:oy(x);p0&&p(j)?f>1?kn(j,f-1,p,x,E):us(E,j):x||(E[E.length]=j)}return E}var Ch=m0(),Ub=m0(!0);function fi(l,f){return l&&Ch(l,f,On)}function Sh(l,f){return l&&Ub(l,f,On)}function bc(l,f){return ls(f,function(p){return Ii(l[p])})}function io(l,f){f=ps(f,l);for(var p=0,x=f.length;l!=null&&pf}function HT(l,f){return l!=null&&zt.call(l,f)}function WT(l,f){return l!=null&&f in jt(l)}function VT(l,f,p){return l>=Nn(f,p)&&l=120&&be.length>=120)?new no(N&&be):n}be=l[0];var xe=-1,De=j[0];e:for(;++xe-1;)j!==l&&uc.call(j,J,1),uc.call(l,J,1);return l}function n0(l,f){for(var p=l?f.length:0,x=p-1;p--;){var E=f[p];if(p==x||E!==I){var I=E;Li(E)?uc.call(l,E,1):Ih(l,E)}}return l}function Rh(l,f){return l+dc($b()*(f-l+1))}function nA(l,f,p,x){for(var E=-1,I=yn(fc((f-l)/(p||1)),0),N=ae(I);I--;)N[x?I:++E]=l,l+=p;return N}function kh(l,f){var p="";if(!l||f<1||f>ie)return p;do f%2&&(p+=l),f=dc(f/2),f&&(l+=l);while(f);return p}function Ct(l,f){return Gh(k0(l,f,nr),l+"")}function rA(l){return Bb(fa(l))}function iA(l,f){var p=fa(l);return Ac(p,ro(f,0,p.length))}function pl(l,f,p,x){if(!ln(l))return l;f=ps(f,l);for(var E=-1,I=f.length,N=I-1,j=l;j!=null&&++EE?0:E+f),p=p>E?E:p,p<0&&(p+=E),E=f>p?0:p-f>>>0,f>>>=0;for(var I=ae(E);++x>>1,N=l[I];N!==null&&!vr(N)&&(p?N<=f:N=i){var ve=f?null:bA(l);if(ve)return tc(ve);N=!1,E=il,J=new no}else J=f?[]:j;e:for(;++x=x?l:Lr(l,f,p)}var u0=GM||function(l){return Rn.clearTimeout(l)};function c0(l,f){if(f)return l.slice();var p=l.length,x=Rb?Rb(p):new l.constructor(p);return l.copy(x),x}function Nh(l){var f=new l.constructor(l.byteLength);return new ac(f).set(new ac(l)),f}function uA(l,f){var p=f?Nh(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.byteLength)}function cA(l){var f=new l.constructor(l.source,qv.exec(l));return f.lastIndex=l.lastIndex,f}function fA(l){return ul?jt(ul.call(l)):{}}function f0(l,f){var p=f?Nh(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.length)}function d0(l,f){if(l!==f){var p=l!==n,x=l===null,E=l===l,I=vr(l),N=f!==n,j=f===null,J=f===f,ve=vr(f);if(!j&&!ve&&!I&&l>f||I&&N&&J&&!j&&!ve||x&&N&&J||!p&&J||!E)return 1;if(!x&&!I&&!ve&&l=j)return J;var ve=p[x];return J*(ve=="desc"?-1:1)}}return l.index-f.index}function h0(l,f,p,x){for(var E=-1,I=l.length,N=p.length,j=-1,J=f.length,ve=yn(I-N,0),be=ae(J+ve),xe=!x;++j1?p[E-1]:n,N=E>2?p[2]:n;for(I=l.length>3&&typeof I=="function"?(E--,I):n,N&&Yn(p[0],p[1],N)&&(I=E<3?n:I,E=1),f=jt(f);++x-1?E[I?f[N]:N]:n}}function y0(l){return ki(function(f){var p=f.length,x=p,E=Rr.prototype.thru;for(l&&f.reverse();x--;){var I=f[x];if(typeof I!="function")throw new Pr(o);if(E&&!N&&Mc(I)=="wrapper")var N=new Rr([],!0)}for(x=N?x:p;++x1&&Pt.reverse(),be&&Jj))return!1;var ve=I.get(l),be=I.get(f);if(ve&&be)return ve==f&&be==l;var xe=-1,De=!0,je=p&v?new no:n;for(I.set(l,f),I.set(f,l);++xe1?"& ":"")+f[x],f=f.join(p>2?", ":" "),l.replace(AE,`{ +/* [wrapped with `+f+`] */ +`)}function TA(l){return ht(l)||ao(l)||!!(Ib&&l&&l[Ib])}function Li(l,f){var p=typeof l;return f=f??ie,!!f&&(p=="number"||p!="symbol"&&zE.test(l))&&l>-1&&l%1==0&&l0){if(++f>=A)return arguments[0]}else f=0;return l.apply(n,arguments)}}function Ac(l,f){var p=-1,x=l.length,E=x-1;for(f=f===n?x:f;++p1?l[f-1]:n;return p=typeof p=="function"?(l.pop(),p):n,j0(l,p)});function U0(l){var f=k(l);return f.__chain__=!0,f}function BP(l,f){return f(l),l}function Pc(l,f){return f(l)}var zP=ki(function(l){var f=l.length,p=f?l[0]:0,x=this.__wrapped__,E=function(I){return xh(I,l)};return f>1||this.__actions__.length||!(x instanceof Mt)||!Li(p)?this.thru(E):(x=x.slice(p,+p+(f?1:0)),x.__actions__.push({func:Pc,args:[E],thisArg:n}),new Rr(x,this.__chain__).thru(function(I){return f&&!I.length&&I.push(n),I}))});function HP(){return U0(this)}function WP(){return new Rr(this.value(),this.__chain__)}function VP(){this.__values__===n&&(this.__values__=sy(this.value()));var l=this.__index__>=this.__values__.length,f=l?n:this.__values__[this.__index__++];return{done:l,value:f}}function jP(){return this}function UP(l){for(var f,p=this;p instanceof gc;){var x=N0(p);x.__index__=0,x.__values__=n,f?E.__wrapped__=x:f=x;var E=x;p=p.__wrapped__}return E.__wrapped__=l,f}function KP(){var l=this.__wrapped__;if(l instanceof Mt){var f=l;return this.__actions__.length&&(f=new Mt(this)),f=f.reverse(),f.__actions__.push({func:Pc,args:[Xh],thisArg:n}),new Rr(f,this.__chain__)}return this.thru(Xh)}function qP(){return a0(this.__wrapped__,this.__actions__)}var YP=xc(function(l,f,p){zt.call(l,p)?++l[p]:Pi(l,p,1)});function GP(l,f,p){var x=ht(l)?_b:BT;return p&&Yn(l,f,p)&&(f=n),x(l,tt(f,3))}function XP(l,f){var p=ht(l)?ls:jb;return p(l,tt(f,3))}var JP=b0(B0),ZP=b0(z0);function QP(l,f){return kn(Rc(l,f),1)}function eR(l,f){return kn(Rc(l,f),Z)}function tR(l,f,p){return p=p===n?1:vt(p),kn(Rc(l,f),p)}function K0(l,f){var p=ht(l)?Ar:ds;return p(l,tt(f,3))}function q0(l,f){var p=ht(l)?_M:Vb;return p(l,tt(f,3))}var nR=xc(function(l,f,p){zt.call(l,p)?l[p].push(f):Pi(l,p,[f])});function rR(l,f,p,x){l=er(l)?l:fa(l),p=p&&!x?vt(p):0;var E=l.length;return p<0&&(p=yn(E+p,0)),$c(l)?p<=E&&l.indexOf(f,p)>-1:!!E&&Qo(l,f,p)>-1}var iR=Ct(function(l,f,p){var x=-1,E=typeof f=="function",I=er(l)?ae(l.length):[];return ds(l,function(N){I[++x]=E?pr(f,N,p):dl(N,f,p)}),I}),sR=xc(function(l,f,p){Pi(l,p,f)});function Rc(l,f){var p=ht(l)?rn:Xb;return p(l,tt(f,3))}function oR(l,f,p,x){return l==null?[]:(ht(f)||(f=f==null?[]:[f]),p=x?n:p,ht(p)||(p=p==null?[]:[p]),e0(l,f,p))}var aR=xc(function(l,f,p){l[p?0:1].push(f)},function(){return[[],[]]});function lR(l,f,p){var x=ht(l)?uh:Sb,E=arguments.length<3;return x(l,tt(f,4),p,E,ds)}function uR(l,f,p){var x=ht(l)?wM:Sb,E=arguments.length<3;return x(l,tt(f,4),p,E,Vb)}function cR(l,f){var p=ht(l)?ls:jb;return p(l,Ic(tt(f,3)))}function fR(l){var f=ht(l)?Bb:rA;return f(l)}function dR(l,f,p){(p?Yn(l,f,p):f===n)?f=1:f=vt(f);var x=ht(l)?IT:iA;return x(l,f)}function hR(l){var f=ht(l)?FT:oA;return f(l)}function pR(l){if(l==null)return 0;if(er(l))return $c(l)?ta(l):l.length;var f=Bn(l);return f==q||f==ge?l.size:Th(l).length}function gR(l,f,p){var x=ht(l)?ch:aA;return p&&Yn(l,f,p)&&(f=n),x(l,tt(f,3))}var mR=Ct(function(l,f){if(l==null)return[];var p=f.length;return p>1&&Yn(l,f[0],f[1])?f=[]:p>2&&Yn(f[0],f[1],f[2])&&(f=[f[0]]),e0(l,kn(f,1),[])}),kc=XM||function(){return Rn.Date.now()};function vR(l,f){if(typeof f!="function")throw new Pr(o);return l=vt(l),function(){if(--l<1)return f.apply(this,arguments)}}function Y0(l,f,p){return f=p?n:f,f=l&&f==null?l.length:f,Ri(l,P,n,n,n,n,f)}function G0(l,f){var p;if(typeof f!="function")throw new Pr(o);return l=vt(l),function(){return--l>0&&(p=f.apply(this,arguments)),l<=1&&(f=n),p}}var Zh=Ct(function(l,f,p){var x=_;if(p.length){var E=cs(p,ua(Zh));x|=M}return Ri(l,x,f,p,E)}),X0=Ct(function(l,f,p){var x=_|y;if(p.length){var E=cs(p,ua(X0));x|=M}return Ri(f,x,l,p,E)});function J0(l,f,p){f=p?n:f;var x=Ri(l,O,n,n,n,n,n,f);return x.placeholder=J0.placeholder,x}function Z0(l,f,p){f=p?n:f;var x=Ri(l,w,n,n,n,n,n,f);return x.placeholder=Z0.placeholder,x}function Q0(l,f,p){var x,E,I,N,j,J,ve=0,be=!1,xe=!1,De=!0;if(typeof l!="function")throw new Pr(o);f=Fr(f)||0,ln(p)&&(be=!!p.leading,xe="maxWait"in p,I=xe?yn(Fr(p.maxWait)||0,f):I,De="trailing"in p?!!p.trailing:De);function je(pn){var Xr=x,$i=E;return x=E=n,ve=pn,N=l.apply($i,Xr),N}function nt(pn){return ve=pn,j=vl(Ot,f),be?je(pn):N}function _t(pn){var Xr=pn-J,$i=pn-ve,by=f-Xr;return xe?Nn(by,I-$i):by}function rt(pn){var Xr=pn-J,$i=pn-ve;return J===n||Xr>=f||Xr<0||xe&&$i>=I}function Ot(){var pn=kc();if(rt(pn))return Pt(pn);j=vl(Ot,_t(pn))}function Pt(pn){return j=n,De&&x?je(pn):(x=E=n,N)}function br(){j!==n&&u0(j),ve=0,x=J=E=j=n}function Gn(){return j===n?N:Pt(kc())}function yr(){var pn=kc(),Xr=rt(pn);if(x=arguments,E=this,J=pn,Xr){if(j===n)return nt(J);if(xe)return u0(j),j=vl(Ot,f),je(J)}return j===n&&(j=vl(Ot,f)),N}return yr.cancel=br,yr.flush=Gn,yr}var bR=Ct(function(l,f){return Wb(l,1,f)}),yR=Ct(function(l,f,p){return Wb(l,Fr(f)||0,p)});function _R(l){return Ri(l,F)}function Lc(l,f){if(typeof l!="function"||f!=null&&typeof f!="function")throw new Pr(o);var p=function(){var x=arguments,E=f?f.apply(this,x):x[0],I=p.cache;if(I.has(E))return I.get(E);var N=l.apply(this,x);return p.cache=I.set(E,N)||I,N};return p.cache=new(Lc.Cache||Ai),p}Lc.Cache=Ai;function Ic(l){if(typeof l!="function")throw new Pr(o);return function(){var f=arguments;switch(f.length){case 0:return!l.call(this);case 1:return!l.call(this,f[0]);case 2:return!l.call(this,f[0],f[1]);case 3:return!l.call(this,f[0],f[1],f[2])}return!l.apply(this,f)}}function wR(l){return G0(2,l)}var xR=lA(function(l,f){f=f.length==1&&ht(f[0])?rn(f[0],gr(tt())):rn(kn(f,1),gr(tt()));var p=f.length;return Ct(function(x){for(var E=-1,I=Nn(x.length,p);++E=f}),ao=qb(function(){return arguments}())?qb:function(l){return un(l)&&zt.call(l,"callee")&&!Lb.call(l,"callee")},ht=ae.isArray,DR=pb?gr(pb):UT;function er(l){return l!=null&&Fc(l.length)&&!Ii(l)}function hn(l){return un(l)&&er(l)}function NR(l){return l===!0||l===!1||un(l)&&qn(l)==oe}var ms=ZM||cp,BR=gb?gr(gb):KT;function zR(l){return un(l)&&l.nodeType===1&&!bl(l)}function HR(l){if(l==null)return!0;if(er(l)&&(ht(l)||typeof l=="string"||typeof l.splice=="function"||ms(l)||ca(l)||ao(l)))return!l.length;var f=Bn(l);if(f==q||f==ge)return!l.size;if(ml(l))return!Th(l).length;for(var p in l)if(zt.call(l,p))return!1;return!0}function WR(l,f){return hl(l,f)}function VR(l,f,p){p=typeof p=="function"?p:n;var x=p?p(l,f):n;return x===n?hl(l,f,n,p):!!x}function ep(l){if(!un(l))return!1;var f=qn(l);return f==Ve||f==Oe||typeof l.message=="string"&&typeof l.name=="string"&&!bl(l)}function jR(l){return typeof l=="number"&&Fb(l)}function Ii(l){if(!ln(l))return!1;var f=qn(l);return f==$||f==H||f==Y||f==Se}function ty(l){return typeof l=="number"&&l==vt(l)}function Fc(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=ie}function ln(l){var f=typeof l;return l!=null&&(f=="object"||f=="function")}function un(l){return l!=null&&typeof l=="object"}var ny=mb?gr(mb):YT;function UR(l,f){return l===f||Mh(l,f,jh(f))}function KR(l,f,p){return p=typeof p=="function"?p:n,Mh(l,f,jh(f),p)}function qR(l){return ry(l)&&l!=+l}function YR(l){if(RA(l))throw new dt(s);return Yb(l)}function GR(l){return l===null}function XR(l){return l==null}function ry(l){return typeof l=="number"||un(l)&&qn(l)==se}function bl(l){if(!un(l)||qn(l)!=me)return!1;var f=lc(l);if(f===null)return!0;var p=zt.call(f,"constructor")&&f.constructor;return typeof p=="function"&&p instanceof p&&ic.call(p)==KM}var tp=vb?gr(vb):GT;function JR(l){return ty(l)&&l>=-ie&&l<=ie}var iy=bb?gr(bb):XT;function $c(l){return typeof l=="string"||!ht(l)&&un(l)&&qn(l)==Be}function vr(l){return typeof l=="symbol"||un(l)&&qn(l)==Pe}var ca=yb?gr(yb):JT;function ZR(l){return l===n}function QR(l){return un(l)&&Bn(l)==Te}function ek(l){return un(l)&&qn(l)==Ue}var tk=Ec(Ah),nk=Ec(function(l,f){return l<=f});function sy(l){if(!l)return[];if(er(l))return $c(l)?qr(l):Qn(l);if(sl&&l[sl])return IM(l[sl]());var f=Bn(l),p=f==q?mh:f==ge?tc:fa;return p(l)}function Fi(l){if(!l)return l===0?l:0;if(l=Fr(l),l===Z||l===-Z){var f=l<0?-1:1;return f*Q}return l===l?l:0}function vt(l){var f=Fi(l),p=f%1;return f===f?p?f-p:f:0}function oy(l){return l?ro(vt(l),0,Ee):0}function Fr(l){if(typeof l=="number")return l;if(vr(l))return ye;if(ln(l)){var f=typeof l.valueOf=="function"?l.valueOf():l;l=ln(f)?f+"":f}if(typeof l!="string")return l===0?l:+l;l=Ob(l);var p=DE.test(l);return p||BE.test(l)?vM(l.slice(2),p?2:8):$E.test(l)?ye:+l}function ay(l){return di(l,tr(l))}function rk(l){return l?ro(vt(l),-ie,ie):l===0?l:0}function Dt(l){return l==null?"":mr(l)}var ik=aa(function(l,f){if(ml(f)||er(f)){di(f,On(f),l);return}for(var p in f)zt.call(f,p)&&cl(l,p,f[p])}),ly=aa(function(l,f){di(f,tr(f),l)}),Dc=aa(function(l,f,p,x){di(f,tr(f),l,x)}),sk=aa(function(l,f,p,x){di(f,On(f),l,x)}),ok=ki(xh);function ak(l,f){var p=oa(l);return f==null?p:zb(p,f)}var lk=Ct(function(l,f){l=jt(l);var p=-1,x=f.length,E=x>2?f[2]:n;for(E&&Yn(f[0],f[1],E)&&(x=1);++p1),I}),di(l,Wh(l),p),x&&(p=kr(p,h|g|m,yA));for(var E=f.length;E--;)Ih(p,f[E]);return p});function Ek(l,f){return cy(l,Ic(tt(f)))}var Mk=ki(function(l,f){return l==null?{}:eA(l,f)});function cy(l,f){if(l==null)return{};var p=rn(Wh(l),function(x){return[x]});return f=tt(f),t0(l,p,function(x,E){return f(x,E[0])})}function Tk(l,f,p){f=ps(f,l);var x=-1,E=f.length;for(E||(E=1,l=n);++xf){var x=l;l=f,f=x}if(p||l%1||f%1){var E=$b();return Nn(l+E*(f-l+mM("1e-"+((E+"").length-1))),f)}return Rh(l,f)}var Bk=la(function(l,f,p){return f=f.toLowerCase(),l+(p?hy(f):f)});function hy(l){return ip(Dt(l).toLowerCase())}function py(l){return l=Dt(l),l&&l.replace(HE,AM).replace(oM,"")}function zk(l,f,p){l=Dt(l),f=mr(f);var x=l.length;p=p===n?x:ro(vt(p),0,x);var E=p;return p-=f.length,p>=0&&l.slice(p,E)==f}function Hk(l){return l=Dt(l),l&&Kr.test(l)?l.replace(an,PM):l}function Wk(l){return l=Dt(l),l&&ME.test(l)?l.replace(Qd,"\\$&"):l}var Vk=la(function(l,f,p){return l+(p?"-":"")+f.toLowerCase()}),jk=la(function(l,f,p){return l+(p?" ":"")+f.toLowerCase()}),Uk=v0("toLowerCase");function Kk(l,f,p){l=Dt(l),f=vt(f);var x=f?ta(l):0;if(!f||x>=f)return l;var E=(f-x)/2;return Oc(dc(E),p)+l+Oc(fc(E),p)}function qk(l,f,p){l=Dt(l),f=vt(f);var x=f?ta(l):0;return f&&x>>0,p?(l=Dt(l),l&&(typeof f=="string"||f!=null&&!tp(f))&&(f=mr(f),!f&&ea(l))?gs(qr(l),0,p):l.split(f,p)):[]}var eL=la(function(l,f,p){return l+(p?" ":"")+ip(f)});function tL(l,f,p){return l=Dt(l),p=p==null?0:ro(vt(p),0,l.length),f=mr(f),l.slice(p,p+f.length)==f}function nL(l,f,p){var x=k.templateSettings;p&&Yn(l,f,p)&&(f=n),l=Dt(l),f=Dc({},f,x,S0);var E=Dc({},f.imports,x.imports,S0),I=On(E),N=gh(E,I),j,J,ve=0,be=f.interpolate||Xu,xe="__p += '",De=vh((f.escape||Xu).source+"|"+be.source+"|"+(be===Dn?FE:Xu).source+"|"+(f.evaluate||Xu).source+"|$","g"),je="//# sourceURL="+(zt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++fM+"]")+` +`;l.replace(De,function(rt,Ot,Pt,br,Gn,yr){return Pt||(Pt=br),xe+=l.slice(ve,yr).replace(WE,RM),Ot&&(j=!0,xe+=`' + +__e(`+Ot+`) + +'`),Gn&&(J=!0,xe+=`'; +`+Gn+`; +__p += '`),Pt&&(xe+=`' + +((__t = (`+Pt+`)) == null ? '' : __t) + +'`),ve=yr+rt.length,rt}),xe+=`'; +`;var nt=zt.call(f,"variable")&&f.variable;if(!nt)xe=`with (obj) { +`+xe+` +} +`;else if(LE.test(nt))throw new dt(a);xe=(J?xe.replace(we,""):xe).replace(Ge,"$1").replace(ft,"$1;"),xe="function("+(nt||"obj")+`) { +`+(nt?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(j?", __e = _.escape":"")+(J?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+xe+`return __p +}`;var _t=my(function(){return Lt(I,je+"return "+xe).apply(n,N)});if(_t.source=xe,ep(_t))throw _t;return _t}function rL(l){return Dt(l).toLowerCase()}function iL(l){return Dt(l).toUpperCase()}function sL(l,f,p){if(l=Dt(l),l&&(p||f===n))return Ob(l);if(!l||!(f=mr(f)))return l;var x=qr(l),E=qr(f),I=Eb(x,E),N=Mb(x,E)+1;return gs(x,I,N).join("")}function oL(l,f,p){if(l=Dt(l),l&&(p||f===n))return l.slice(0,Ab(l)+1);if(!l||!(f=mr(f)))return l;var x=qr(l),E=Mb(x,qr(f))+1;return gs(x,0,E).join("")}function aL(l,f,p){if(l=Dt(l),l&&(p||f===n))return l.replace(eh,"");if(!l||!(f=mr(f)))return l;var x=qr(l),E=Eb(x,qr(f));return gs(x,E).join("")}function lL(l,f){var p=D,x=V;if(ln(f)){var E="separator"in f?f.separator:E;p="length"in f?vt(f.length):p,x="omission"in f?mr(f.omission):x}l=Dt(l);var I=l.length;if(ea(l)){var N=qr(l);I=N.length}if(p>=I)return l;var j=p-ta(x);if(j<1)return x;var J=N?gs(N,0,j).join(""):l.slice(0,j);if(E===n)return J+x;if(N&&(j+=J.length-j),tp(E)){if(l.slice(j).search(E)){var ve,be=J;for(E.global||(E=vh(E.source,Dt(qv.exec(E))+"g")),E.lastIndex=0;ve=E.exec(be);)var xe=ve.index;J=J.slice(0,xe===n?j:xe)}}else if(l.indexOf(mr(E),j)!=j){var De=J.lastIndexOf(E);De>-1&&(J=J.slice(0,De))}return J+x}function uL(l){return l=Dt(l),l&&hr.test(l)?l.replace(nn,NM):l}var cL=la(function(l,f,p){return l+(p?" ":"")+f.toUpperCase()}),ip=v0("toUpperCase");function gy(l,f,p){return l=Dt(l),f=p?n:f,f===n?LM(l)?HM(l):SM(l):l.match(f)||[]}var my=Ct(function(l,f){try{return pr(l,n,f)}catch(p){return ep(p)?p:new dt(p)}}),fL=ki(function(l,f){return Ar(f,function(p){p=hi(p),Pi(l,p,Zh(l[p],l))}),l});function dL(l){var f=l==null?0:l.length,p=tt();return l=f?rn(l,function(x){if(typeof x[1]!="function")throw new Pr(o);return[p(x[0]),x[1]]}):[],Ct(function(x){for(var E=-1;++Eie)return[];var p=Ee,x=Nn(l,Ee);f=tt(f),l-=Ee;for(var E=ph(x,f);++p0||f<0)?new Mt(p):(l<0?p=p.takeRight(-l):l&&(p=p.drop(l)),f!==n&&(f=vt(f),p=f<0?p.dropRight(-f):p.take(f-l)),p)},Mt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Mt.prototype.toArray=function(){return this.take(Ee)},fi(Mt.prototype,function(l,f){var p=/^(?:filter|find|map|reject)|While$/.test(f),x=/^(?:head|last)$/.test(f),E=k[x?"take"+(f=="last"?"Right":""):f],I=x||/^find/.test(f);E&&(k.prototype[f]=function(){var N=this.__wrapped__,j=x?[1]:arguments,J=N instanceof Mt,ve=j[0],be=J||ht(N),xe=function(Ot){var Pt=E.apply(k,us([Ot],j));return x&&De?Pt[0]:Pt};be&&p&&typeof ve=="function"&&ve.length!=1&&(J=be=!1);var De=this.__chain__,je=!!this.__actions__.length,nt=I&&!De,_t=J&&!je;if(!I&&be){N=_t?N:new Mt(this);var rt=l.apply(N,j);return rt.__actions__.push({func:Pc,args:[xe],thisArg:n}),new Rr(rt,De)}return nt&&_t?l.apply(this,j):(rt=this.thru(xe),nt?x?rt.value()[0]:rt.value():rt)})}),Ar(["pop","push","shift","sort","splice","unshift"],function(l){var f=nc[l],p=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",x=/^(?:pop|shift)$/.test(l);k.prototype[l]=function(){var E=arguments;if(x&&!this.__chain__){var I=this.value();return f.apply(ht(I)?I:[],E)}return this[p](function(N){return f.apply(ht(N)?N:[],E)})}}),fi(Mt.prototype,function(l,f){var p=k[f];if(p){var x=p.name+"";zt.call(sa,x)||(sa[x]=[]),sa[x].push({name:f,func:p})}}),sa[Cc(n,y).name]=[{name:"wrapper",func:n}],Mt.prototype.clone=uT,Mt.prototype.reverse=cT,Mt.prototype.value=fT,k.prototype.at=zP,k.prototype.chain=HP,k.prototype.commit=WP,k.prototype.next=VP,k.prototype.plant=UP,k.prototype.reverse=KP,k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=qP,k.prototype.first=k.prototype.head,sl&&(k.prototype[sl]=jP),k},na=WM();Qs?((Qs.exports=na)._=na,oh._=na):Rn._=na}).call(Zt)})(vd,vd.exports);var Mx=vd.exports;const BZ=L("p",null,[re("Add "),L("span",{class:"font-bold"},"Simulation period in years"),re(" and "),L("span",{class:"font-bold"},"Start Year")],-1),zZ={__name:"YieldsTable",props:["annualYields","startYear","periodLength","rotationTable","rotationLength","plants"],emits:["updateYields"],setup(e,{emit:t}){const n=e,r=vn({annualYields:[]});Fe(()=>n.annualYields,a=>{r.annualYields=n.annualYields},{immediate:!0}),Fe(()=>n.periodLength,a=>{var u,c,d,h;r.annualYields=n.annualYields;for(let g=0;gn.rotationLength,a=>{o(),t("updateYields",{annualYields:r.annualYields})},{immediate:!0}),Fe(()=>n.rotationTable,a=>{o(),t("updateYields",{annualYields:r.annualYields})},{immediate:!0});function i({$event:a,key:u}){s(a,u),t("updateYields",{annualYields:r.annualYields})}function s(a,u){r.annualYields[u].yield=a}function o(){var u,c;let a=0;for(let d=0;d<((u=r.annualYields)==null?void 0:u.length);d++)if(n.rotationTable[a]){const g=n.rotationTable[a].plant.id;r.annualYields[d].rotation=(c=n.plants[g])==null?void 0:c.name,a++,a>=n.rotationLength&&(a=0)}}return(a,u)=>{const c=os,d=ci,h=tl;return K(),_e("div",null,[W(d,{class:""},{default:z(()=>[W(c,{span:24,class:"p-2 text-center text-2xl"},{default:z(()=>[re("Annual Yields")]),_:1})]),_:1}),parseInt(n.periodLength)>0&&parseInt(n.startYear)>=0?(K(!0),_e(it,{key:0},En(r.annualYields,(g,m,b)=>(K(),Me(d,{key:b},{default:z(()=>[W(c,{span:24,class:"p-2"},{default:z(()=>{var v,_;return[W(h,{modelValue:(_=(v=r.annualYields)==null?void 0:v[m])==null?void 0:_.yield,onInput:y=>i({$event:y,key:m})},{prepend:z(()=>[re(pt(g.year),1)]),_:2},1032,["modelValue","onInput"])]}),_:2},1024)]),_:2},1024))),128)):(K(),Me(d,{key:1},{default:z(()=>[BZ]),_:1}))])}}};const HZ={class:"flex flex-col"},WZ=L("p",null,[re("Add "),L("span",{class:"font-bold"},"Simulation period in years")],-1),VZ={__name:"YearlyTable",props:["annualRainfall","periodLength","startYear"],emits:["updateAnnualRainfall"],setup(e,{emit:t}){const n=e,r=vn({annualRainfall:n.annualRainfall});Ya(()=>{var o,a,u,c;if(parseInt(n.periodLength)>0)for(let d=0;dn.periodLength,o=>{for(let a=0;a{const u=os,c=ci,d=hv,h=tl;return K(),_e("div",HZ,[W(c,{class:""},{default:z(()=>[W(u,{span:24,class:"p-2 text-center text-2xl"},{default:z(()=>[re("Yearly Rain")]),_:1})]),_:1}),W(c,null,{default:z(()=>[W(d,{title:"Error: If all monthly rainfall values are zero, float division by zero",type:"info"})]),_:1}),W(c,null,{default:z(()=>[W(u,{span:6,class:"p-2 font-bold"},{default:z(()=>[re("Year")]),_:1}),W(u,{span:18,class:"p-2 font-bold"},{default:z(()=>[re("Rainfall (mm)")]),_:1})]),_:1}),parseInt(n.periodLength)>0?(K(!0),_e(it,{key:0},En(parseInt(n.periodLength),(g,m)=>(K(),Me(c,{key:g},{default:z(()=>[W(u,{span:6,class:"p-2"},{default:z(()=>[re(pt(parseInt(n.startYear)-1+parseInt(g)),1)]),_:2},1024),W(u,{span:18,class:"p-2"},{default:z(()=>{var b,v;return[W(h,{modelValue:(v=(b=r.annualRainfall)==null?void 0:b[m])==null?void 0:v.rainfall,onInput:_=>i({$event:_,key:m})},null,8,["modelValue","onInput"])]}),_:2},1024)]),_:2},1024))),128)):(K(),Me(c,{key:1},{default:z(()=>[WZ]),_:1}))])}}},jZ={__name:"MonthlyTable",props:["monthRainTemp","periodLength","startYear"],emits:["updateMonthRainTemps"],setup(e,{emit:t}){const n=e,r=vn({monthRainTemp:[]}),i=["January","February","March","April","May","June","July","August","September","October","November","December"];Ya(()=>{var u,c,d,h,g,m,b,v;const a=[];for(let _=0;_{const c=os,d=ci,h=hv,g=tl;return K(),_e("div",null,[W(d,{class:""},{default:z(()=>[W(c,{span:24,class:"p-2 text-center text-2xl"},{default:z(()=>[re("Monthly Rain Temperature")]),_:1})]),_:1}),W(d,null,{default:z(()=>[W(h,{title:"Error: If all monthly rainfall values are zero, float division by zero",type:"info"})]),_:1}),W(d,null,{default:z(()=>[W(c,{span:6,class:"p-2 font-bold"},{default:z(()=>[re("Month")]),_:1}),W(c,{span:9,class:"p-2 font-bold"},{default:z(()=>[re("Rainfall (mm)")]),_:1}),W(c,{span:9,class:"p-2 font-bold"},{default:z(()=>[re("Temperature (℃)")]),_:1})]),_:1}),(K(),_e(it,null,En(i,(m,b)=>W(d,{key:b,class:""},{default:z(()=>[W(c,{span:6,class:"p-2"},{default:z(()=>[re(pt(m),1)]),_:2},1024),W(c,{span:9,class:"p-2"},{default:z(()=>[W(g,{modelValue:r.monthRainTemp[b].rainfall,onInput:v=>s({$event:v,index:b,key:"rainfall"})},null,8,["modelValue","onInput"])]),_:2},1024),W(c,{span:9,class:"p-2"},{default:z(()=>[W(g,{modelValue:r.monthRainTemp[b].temperature,onInput:v=>s({$event:v,index:b,key:"temperature"})},null,8,["modelValue","onInput"])]),_:2},1024)]),_:2},1024)),64))])}}};const UZ=L("div",{class:"parameter-error"},null,-1),KZ={__name:"ParameterTable",props:["parameters"],setup(e){const t=e,n=vn({parameters:[]});return Xs(()=>{n.parameters=t.parameters}),It(()=>{n.parameters=t.parameters}),(r,i)=>{const s=os,o=ci,a=tl;return K(),_e(it,null,[W(o,{class:""},{default:z(()=>[W(s,{span:24,class:"p-2 text-center text-2xl"},{default:z(()=>[re("Parameter")]),_:1})]),_:1}),(K(!0),_e(it,null,En(n.parameters,(u,c)=>(K(),Me(o,{key:c,class:""},{default:z(()=>[W(s,{span:24,class:"p-2"},{default:z(()=>[W(a,{modelValue:n.parameters[c],"onUpdate:modelValue":d=>n.parameters[c]=d,type:"number"},{prepend:z(()=>[re(pt(c),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024))),128)),UZ],64)}}};var qZ=!1;/*! + * pinia v2.1.7 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */let hE;const Xd=e=>hE=e,pE=Symbol();function sm(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ru;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ru||(ru={}));function YZ(){const e=Dx(!0),t=e.run(()=>X({}));let n=[],r=[];const i=Sd({install(s){Xd(i),i._a=s,s.provide(pE,i),s.config.globalProperties.$pinia=i,r.forEach(o=>n.push(o)),r=[]},use(s){return!this._a&&!qZ?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const gE=()=>{};function Tx(e,t,n,r=gE){e.push(t);const i=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&hm()&&pm(i),i}function va(e,...t){e.slice().forEach(n=>{n(...t)})}const GZ=e=>e();function om(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];sm(i)&&sm(r)&&e.hasOwnProperty(n)&&!Nt(r)&&!Fs(r)?e[n]=om(i,r):e[n]=r}return e}const XZ=Symbol();function JZ(e){return!sm(e)||!e.hasOwnProperty(XZ)}const{assign:Ss}=Object;function ZZ(e){return!!(Nt(e)&&e.effect)}function QZ(e,t,n,r){const{state:i,actions:s,getters:o}=t,a=n.state.value[e];let u;function c(){a||(n.state.value[e]=i?i():{});const d=Gs(n.state.value[e]);return Ss(d,s,Object.keys(o||{}).reduce((h,g)=>(h[g]=Sd(B(()=>{Xd(n);const m=n._s.get(e);return o[g].call(m,m)})),h),{}))}return u=mE(e,c,t,n,r,!0),u}function mE(e,t,n={},r,i,s){let o;const a=Ss({actions:{}},n),u={deep:!0};let c,d,h=[],g=[],m;const b=r.state.value[e];!s&&!b&&(r.state.value[e]={}),X({});let v;function _(R){let F;c=d=!1,typeof R=="function"?(R(r.state.value[e]),F={type:ru.patchFunction,storeId:e,events:m}):(om(r.state.value[e],R),F={type:ru.patchObject,payload:R,storeId:e,events:m});const D=v=Symbol();bt().then(()=>{v===D&&(c=!0)}),d=!0,va(h,F,r.state.value[e])}const y=s?function(){const{state:F}=n,D=F?F():{};this.$patch(V=>{Ss(V,D)})}:gE;function C(){o.stop(),h=[],g=[],r._s.delete(e)}function O(R,F){return function(){Xd(r);const D=Array.from(arguments),V=[],A=[];function U(te){V.push(te)}function le(te){A.push(te)}va(g,{args:D,name:R,store:M,after:U,onError:le});let ce;try{ce=F.apply(this&&this.$id===e?this:M,D)}catch(te){throw va(A,te),te}return ce instanceof Promise?ce.then(te=>(va(V,te),te)).catch(te=>(va(A,te),Promise.reject(te))):(va(V,ce),ce)}}const w={_p:r,$id:e,$onAction:Tx.bind(null,g),$patch:_,$reset:y,$subscribe(R,F={}){const D=Tx(h,R,F.detached,()=>V()),V=o.run(()=>Fe(()=>r.state.value[e],A=>{(F.flush==="sync"?d:c)&&R({storeId:e,type:ru.direct,events:m},A)},Ss({},u,F)));return D},$dispose:C},M=vn(w);r._s.set(e,M);const P=(r._a&&r._a.runWithContext||GZ)(()=>r._e.run(()=>(o=Dx()).run(t)));for(const R in P){const F=P[R];if(Nt(F)&&!ZZ(F)||Fs(F))s||(b&&JZ(F)&&(Nt(F)?F.value=b[R]:om(F,b[R])),r.state.value[e][R]=F);else if(typeof F=="function"){const D=O(R,F);P[R]=D,a.actions[R]=F}}return Ss(M,P),Ss(ut(M),P),Object.defineProperty(M,"$state",{get:()=>r.state.value[e],set:R=>{_(F=>{Ss(F,R)})}}),r._p.forEach(R=>{Ss(M,o.run(()=>R({store:M,app:r._a,pinia:r,options:a})))}),b&&s&&n.hydrate&&n.hydrate(M.$state,b),c=!0,d=!0,M}function eQ(e,t,n){let r,i;const s=typeof t=="function";typeof e=="string"?(r=e,i=s?n:t):(i=e,r=e.id);function o(a,u){const c=OF();return a=a||(c?qe(pE,null):null),a&&Xd(a),a=hE,a._s.has(r)||(s?mE(r,t,i,a):QZ(r,i,a)),a._s.get(r)}return o.$id=r,o}class Oa{static getParameters(){return{cnRate_1:.84,cnRate_2:.07,cnRate_3:.055,cnRate_4:9e-4,cnRate_5:.95,labile:2,stable:98,pastureMf:.16,fallowMf:.9,cropMf:.26,bd:1.3,dlayr:10,depth30_10:2.33,cn:60,porghum:.03,grz:.6,rootGrz:.55,rootP:.5,rootGl:.4,rootWgt:.4,hi_0:.42,hi_1:.42,hi_2:.42,hi_3:.42,hi_4:.35,hi_5:1,hi_6:1,hi_7:1,storedHFC:3,tempAmplitude:30,rainAmplitude:30,tempRand:20,precipRand:30,annpar:75,heavyRetained:40,lightRetained:70,baseRetained:88,nurate:.2,tam:48.5,ef1:.01,ef2:.0075,n2o_n:1.57,gwpn2o:265,co2_c:3.67,fracf:.1,fracu:.2,fracl:.3,ch4_sheep:8,gwp_ch4:28}}}Re(Oa,"version","1.0.0");async function tQ({socrates:e,parameters:t}){let n=await fetch("https://api.socrates-soil.net/run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({socrates:e,parameters:t})}),r=n.status;if(n=await n.json(),r===200)return n;throw new Error(n==null?void 0:n.message)}async function nQ(){let e=await fetch("sample-data-20-year.json");if(e.status===200)return e=await e.json(),e}var Lu={},Er={};Object.defineProperty(Er,"__esModule",{value:!0});Er.excelBOM=Er.defaultCsv2JsonOptions=Er.defaultJson2CsvOptions=Er.errors=void 0;Er.errors={optionsRequired:"Options were not passed and are required.",json2csv:{cannotCallOn:"Cannot call json2csv on",dataCheckFailure:"Data provided was not an array of documents.",notSameSchema:"Not all documents have the same schema."},csv2json:{cannotCallOn:"Cannot call csv2json on",dataCheckFailure:"CSV is not a string."}};Er.defaultJson2CsvOptions={checkSchemaDifferences:!1,delimiter:{field:",",wrap:'"',eol:` +`},emptyFieldValue:void 0,excelBOM:!1,excludeKeys:[],expandArrayObjects:!1,prependHeader:!0,preventCsvInjection:!1,sortHeader:!1,trimFieldValues:!1,trimHeaderFields:!1,unwindArrays:!1,useDateIso8601Format:!1,useLocaleFormat:!1,wrapBooleans:!1};Er.defaultCsv2JsonOptions={delimiter:{field:",",wrap:'"',eol:` +`},excelBOM:!1,preventCsvInjection:!1,trimFieldValues:!1,trimHeaderFields:!1,wrapBooleans:!1};Er.excelBOM="\uFEFF";var Jd={},Ys={};/** + * @license MIT + * doc-path + * Copyright (c) 2015-present, Michael Rodrigues. + */Object.defineProperty(Ys,"__esModule",{value:!0});Ys.setPath=Ys.evaluatePath=void 0;function Bl(e,t){if(!e)return null;const{dotIndex:n,key:r,remaining:i}=vE(t),s=typeof e=="object"&&t in e?e[t]:void 0,o=typeof e=="object"&&r in e?e[r]:void 0;return n>=0&&typeof e=="object"&&!(t in e)?Array.isArray(o)?o.map(a=>Bl(a,i)):Bl(o,i):Array.isArray(e)?e.map(a=>Bl(a,t)):n>=0&&t!==r&&typeof e=="object"&&r in e?Bl(o,i):n===-1&&typeof e=="object"&&r in e&&!(t in e)?o:s}Ys.evaluatePath=Bl;function rQ(e,t,n){if(e){if(!t)throw new Error("No keyPath was provided.")}else throw new Error("No object was provided.");return jf(e,t,n)}Ys.setPath=rQ;function jf(e,t,n){const{dotIndex:r,key:i,remaining:s}=vE(t);if(t.startsWith("__proto__")||t.startsWith("constructor")||t.startsWith("prototype"))return e;if(r>=0){if(typeof e=="object"&&e!==null&&!(i in e)&&Array.isArray(e))return e.forEach(o=>jf(o,t,n)),e;typeof e=="object"&&e!==null&&!(i in e)&&!Array.isArray(e)&&(e[i]={}),jf(e[i],s,n)}else{if(Array.isArray(e))return e.forEach(o=>jf(o,s,n)),e;e[i]=n}return e}function vE(e){const t=iQ(e);return{dotIndex:t,key:e.slice(0,t>=0?t:void 0).replace(/\\./g,"."),remaining:e.slice(t+1)}}function iQ(e){for(let t=0;t0?e[t-1]:"";if(e[t]==="."&&n!=="\\")return t}return-1}var bE={},zs={};Object.defineProperty(zs,"__esModule",{value:!0});zs.isDocumentToRecurOn=zs.flatten=zs.unique=void 0;function sQ(e){return[...new Set(e)]}zs.unique=sQ;function oQ(e){return[].concat(...e)}zs.flatten=oQ;function aQ(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&Object.keys(e).length}zs.isDocumentToRecurOn=aQ;var yE={};Object.defineProperty(yE,"__esModule",{value:!0});(function(e){var t=Zt&&Zt.__createBinding||(Object.create?function(m,b,v,_){_===void 0&&(_=v);var y=Object.getOwnPropertyDescriptor(b,v);(!y||("get"in y?!b.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return b[v]}}),Object.defineProperty(m,_,y)}:function(m,b,v,_){_===void 0&&(_=v),m[_]=b[v]}),n=Zt&&Zt.__setModuleDefault||(Object.create?function(m,b){Object.defineProperty(m,"default",{enumerable:!0,value:b})}:function(m,b){m.default=b}),r=Zt&&Zt.__importStar||function(m){if(m&&m.__esModule)return m;var b={};if(m!=null)for(var v in m)v!=="default"&&Object.prototype.hasOwnProperty.call(m,v)&&t(b,m,v);return n(b,m),b},i=Zt&&Zt.__exportStar||function(m,b){for(var v in m)v!=="default"&&!Object.prototype.hasOwnProperty.call(b,v)&&t(b,m,v)};Object.defineProperty(e,"__esModule",{value:!0}),e.deepKeysFromList=e.deepKeys=void 0;const s=r(zs);i(yE,e);function o(m,b){const v=g(b);return typeof m=="object"&&m!==null?u("",m,v):[]}e.deepKeys=o;function a(m,b){const v=g(b);return m.map(_=>typeof _=="object"&&_!==null?o(_,v):[])}e.deepKeysFromList=a;function u(m,b,v){const _=Object.keys(b).map(y=>{const C=h(m,d(y,v));return s.isDocumentToRecurOn(b[y])?u(C,b[y],v):v.expandArrayObjects&&Array.isArray(b[y])?c(b[y],C,v):v.ignoreEmptyArrays&&Array.isArray(b[y])&&!b[y].length?[]:C});return s.flatten(_)}function c(m,b,v){let _=a(m,v);return m.length?m.length&&s.flatten(_).length===0?[b]:(_=_.map(y=>Array.isArray(y)&&y.length===0?[b]:y.map(C=>h(b,d(C,v)))),s.unique(s.flatten(_))):v.ignoreEmptyArraysWhenExpanding?[]:[b]}function d(m,b){return b.escapeNestedDots?m.replace(/\./g,"\\."):m}function h(m,b){return m?m+"."+b:b}function g(m){return{expandArrayObjects:!1,ignoreEmptyArraysWhenExpanding:!1,escapeNestedDots:!1,ignoreEmptyArrays:!1,...m??{}}}})(bE);var lt={};Object.defineProperty(lt,"__esModule",{value:!0});lt.isInvalid=lt.flatten=lt.unique=lt.arrayDifference=lt.isError=lt.isUndefined=lt.isNull=lt.isObject=lt.isString=lt.isNumber=lt.unwind=lt.getNCharacters=lt.removeEmptyFields=lt.isEmptyField=lt.computeSchemaDifferences=lt.isDateRepresentation=lt.isStringRepresentation=lt.deepCopy=lt.validate=lt.buildC2JOptions=lt.buildJ2COptions=void 0;const Kp=Ys,Ls=Er,lQ=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,qp=1e5;function uQ(e){var t,n,r;return{...Ls.defaultJson2CsvOptions,...e,delimiter:{field:((t=e==null?void 0:e.delimiter)==null?void 0:t.field)??Ls.defaultJson2CsvOptions.delimiter.field,wrap:((n=e==null?void 0:e.delimiter)==null?void 0:n.wrap)||Ls.defaultJson2CsvOptions.delimiter.wrap,eol:((r=e==null?void 0:e.delimiter)==null?void 0:r.eol)||Ls.defaultJson2CsvOptions.delimiter.eol},fieldTitleMap:Object.create({})}}lt.buildJ2COptions=uQ;function cQ(e){var t,n,r;return{...Ls.defaultCsv2JsonOptions,...e,delimiter:{field:((t=e==null?void 0:e.delimiter)==null?void 0:t.field)??Ls.defaultCsv2JsonOptions.delimiter.field,wrap:((n=e==null?void 0:e.delimiter)==null?void 0:n.wrap)||Ls.defaultCsv2JsonOptions.delimiter.wrap,eol:((r=e==null?void 0:e.delimiter)==null?void 0:r.eol)||Ls.defaultCsv2JsonOptions.delimiter.eol}}}lt.buildC2JOptions=cQ;function fQ(e,t,n){if(!e)throw new Error(`${n.cannotCallOn} ${e}.`);if(!t(e))throw new Error(n.dataCheckFailure);return!0}lt.validate=fQ;function am(e){return JSON.parse(JSON.stringify(e))}lt.deepCopy=am;function dQ(e,t){const n=e[0],r=e.length-1,i=e[r];return n===t.delimiter.wrap&&i===t.delimiter.wrap}lt.isStringRepresentation=dQ;function hQ(e){return lQ.test(e)}lt.isDateRepresentation=hQ;function pQ(e,t){return lm(e,t).concat(lm(t,e))}lt.computeSchemaDifferences=pQ;function _E(e){return xE(e)||wE(e)||e===""}lt.isEmptyField=_E;function gQ(e){return e.filter(t=>!_E(t))}lt.removeEmptyFields=gQ;function mQ(e,t,n){return e.substring(t,t+n)}lt.getNCharacters=mQ;function vQ(e,t,n){const r=(0,Kp.evaluatePath)(t,n);let i=am(t);Array.isArray(r)&&r.length?r.forEach(s=>{i=am(t),e.push((0,Kp.setPath)(i,n,s))}):(Array.isArray(r)&&r.length===0&&(0,Kp.setPath)(i,n,""),e.push(i))}function bQ(e,t){const n=[];return e.forEach(r=>{vQ(n,r,t)}),n}lt.unwind=bQ;function yQ(e){return!isNaN(Number(e))}lt.isNumber=yQ;function _Q(e){return typeof e=="string"}lt.isString=_Q;function wQ(e){return typeof e=="object"}lt.isObject=wQ;function wE(e){return e===null}lt.isNull=wE;function xE(e){return typeof e>"u"}lt.isUndefined=xE;function xQ(e){return Object.prototype.toString.call(e)==="[object Error]"}lt.isError=xQ;function lm(e,t){return e.filter(n=>!t.includes(n))}lt.arrayDifference=lm;function CQ(e){return[...new Set(e)]}lt.unique=CQ;function SQ(e){if(e.flat)return e.flat();if(e.length>qp){let t=[];for(let n=0;nt.concat(n),[])}lt.flatten=SQ;function OQ(e){return e===1/0||e===-1/0}lt.isInvalid=OQ;var EQ=Zt&&Zt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),MQ=Zt&&Zt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),TQ=Zt&&Zt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&EQ(t,e,n);return MQ(t,e),t};Object.defineProperty(Jd,"__esModule",{value:!0});Jd.Json2Csv=void 0;const AQ=Ys,PQ=bE,Ax=Er,zi=TQ(lt),RQ=function(e){const t=new RegExp(e.delimiter.wrap,"g"),n=/\r?\n|\r/,r=e.parseValue&&typeof e.parseValue=="function"?e.parseValue:null,i=e.expandArrayObjects&&!e.unwindArrays,s={expandArrayObjects:i,ignoreEmptyArraysWhenExpanding:i,escapeNestedDots:!0};async function o(A){return(0,PQ.deepKeysFromList)(A,s)}function a(A){return e.checkSchemaDifferences?u(A):zi.unique(zi.flatten(A))}function u(A){const U=A[0],le=A.slice(1);if(c(U,le))throw new Error(Ax.errors.json2csv.notSameSchema);return U}function c(A,U){return U.reduce((le,ce)=>zi.computeSchemaDifferences(A,ce).length>0?le+1:le,0)}function d(A){return e.excludeKeys?A.filter(U=>!e.excludeKeys.includes(U)):A}function h(A){return e.sortHeader&&typeof e.sortHeader=="function"?A.sort(e.sortHeader):e.sortHeader?A.sort():A}function g(A){return e.trimHeaderFields&&(A.headerFields=A.headerFields.map(U=>U.split(".").map(le=>le.trim()).join("."))),A}function m(A){return e.prependHeader&&(A.headerFields=A.headerFields.map(function(U){return R(U)})),A}function b(A){const U=Object.keys(e.fieldTitleMap);return A.header=A.headerFields.map(function(le){const ce=U.includes(le)?e.fieldTitleMap[le]:le;return R(ce)}).join(e.delimiter.field),A}function v(){return e.keys?e.keys.map(A=>typeof A=="object"&&"field"in A?(e.fieldTitleMap[A.field]=A.title??A.field,A.field):A):[]}function _(A){const U=v();return e.keys&&(e.keys=U,!e.unwindArrays)?Promise.resolve(U).then(d).then(h):o(A).then(a).then(d).then(h)}async function y(A,U=!1){if(e.unwindArrays){const le=A.records.length;return A.headerFields.forEach(ce=>{A.records=zi.unwind(A.records,ce)}),_(A.records).then(ce=>{if(A.headerFields=ce,le!==A.records.length)return y(A);if(!U)return y(A,!0);if(e.keys){const te=v();A.headerFields=d(te)}return A})}return A}function C(A){return A.recordString=A.records.map(U=>{const le=w(U,A.headerFields),ce=le.map(te=>{te=T(te),te=P(te);let Z=r?r(te,M):M(te);return Z=R(Z),Z});return F(ce)}).join(e.delimiter.eol),A}function O(A){const U=zi.removeEmptyFields(A);return!A.length||!U.length?e.emptyFieldValue||"":U.length===1?U[0]:A}function w(A,U){const le=[];return U.forEach(ce=>{let te=(0,AQ.evaluatePath)(A,ce);!zi.isUndefined(e.emptyFieldValue)&&zi.isEmptyField(te)?te=e.emptyFieldValue:e.expandArrayObjects&&Array.isArray(te)&&(te=O(te)),le.push(te)}),le}function M(A){const U=A instanceof Date;return A===null||Array.isArray(A)||typeof A=="object"&&!U?JSON.stringify(A):typeof A>"u"?"undefined":U&&e.useDateIso8601Format?A.toISOString():e.useLocaleFormat?A.toLocaleString():A.toString()}function T(A){return e.trimFieldValues?Array.isArray(A)?A.map(T):typeof A=="string"?A.trim():A:A}function P(A){return e.preventCsvInjection?Array.isArray(A)?A.map(P):typeof A=="string"&&!zi.isNumber(A)?A.replace(/^[=+\-@\t\r]+/g,""):A:A}function R(A){const U=e.delimiter.wrap;return A.includes(e.delimiter.wrap)&&(A=A.replace(t,U+U)),(A.includes(e.delimiter.field)||A.includes(e.delimiter.wrap)||A.match(n)||e.wrapBooleans&&(A==="true"||A==="false"))&&(A=U+A+U),A}function F(A){return A.join(e.delimiter.field)}function D(A){const U=A.header,le=A.recordString;return(e.excelBOM?Ax.excelBOM:"")+(e.prependHeader?U+e.delimiter.eol:"")+le}async function V(A){return zi.isObject(A)&&!A.length&&(A=[A]),_(A).then(U=>({headerFields:U,records:A,header:"",recordString:""})).then(y).then(C).then(m).then(g).then(b).then(D)}return{convert:V}};Jd.Json2Csv=RQ;var Zd={},kQ=Zt&&Zt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),LQ=Zt&&Zt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),IQ=Zt&&Zt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&kQ(t,e,n);return LQ(t,e),t};Object.defineProperty(Zd,"__esModule",{value:!0});Zd.Csv2Json=void 0;const FQ=Ys,$Q=Er,vo=IQ(lt),DQ=function(e){const t=new RegExp(e.delimiter.wrap+e.delimiter.wrap,"g"),n=new RegExp("^"+$Q.excelBOM),r=e.parseValue&&typeof e.parseValue=="function"?e.parseValue:JSON.parse;function i(C){return C=m(C),e.trimHeaderFields?C.split(".").map(O=>O.trim()).join("."):C}function s(C){let O=[];if(e.headerFields)O=e.headerFields.map((w,M)=>({value:i(w),index:M}));else if(O=C[0].map((M,T)=>({value:i(M),index:T})),e.keys){const M=e.keys;O=O.filter(T=>M.includes(T.value))}return{lines:C,headerFields:O,recordLines:[]}}async function o(C){return e.excelBOM?C.replace(n,""):C}function a(C){const O=[],w=C.length-1,M=e.delimiter.eol.length,T={insideWrapDelimiter:!1,parsingValue:!0,justParsedDoubleQuote:!1,startIndex:0};let P=[],R,F,D,V,A=0;for(;A{const T=c(M,O);try{return(0,FQ.setPath)(w,M.value,T)}catch{return w}},{})}function m(C){const O=C[0],w=C.length-1,M=C[w];return O===e.delimiter.wrap&&M===e.delimiter.wrap?C.substr(1,w-1):C}function b(C){return C.replace(t,e.delimiter.wrap)}function v(C){return C.recordLines.reduce((O,w)=>{w=w.map(T=>(T=m(T),T=b(T),T=h(T),T));const M=g(C.headerFields,w);return O.concat(M)},[])}function _(C){try{if(vo.isStringRepresentation(C,e)&&!vo.isDateRepresentation(C))return C;const O=r(C);return Array.isArray(O)?O.map(h):O}catch(O){return O}}async function y(C){return o(C).then(a).then(s).then(u).then(v)}return{convert:y}};Zd.Csv2Json=DQ;Object.defineProperty(Lu,"__esModule",{value:!0});Lu.csv2json=SE=Lu.json2csv=void 0;const CE=Er,NQ=Jd,BQ=Zd,Ea=lt;async function zQ(e,t){const n=(0,Ea.buildJ2COptions)(t??{});return(0,Ea.validate)(e,Ea.isObject,CE.errors.json2csv),(0,NQ.Json2Csv)(n).convert(e)}var SE=Lu.json2csv=zQ;async function HQ(e,t){const n=(0,Ea.buildC2JOptions)(t??{});return(0,Ea.validate)(e,Ea.isString,CE.errors.csv2json),(0,BQ.Csv2Json)(n).convert(e)}Lu.csv2json=HQ;async function WQ({results:e,initialOC:t}){const n=[];n.push({year:e.years[0]-1,crop:"",rain:"",yields:"",biomass:"",nitrogen:"",urine:"",oc:t,co2:"",n2o_fert:"",n2o_min:"",n2o_res:"",n2o_indirect:"",n2o_urine:"",ch4_animal:"",total:""});for(let i=0;i({version:Oa.version,soilProperties:null,clay:0,cec:0,initialOC:0,startYear:0,periodLength:0,rotationLength:0,climateMethodDataEntry:null,monthRainTemp:[{rainfall:0,temperature:0}],annualRainfall:[{rainfall:0}],annualYields:[],averageAnnualRainFall:0,annualMeanTemperature:0,randomizeRainAndTemperature:0,rotationTable:[],yieldsMethodDataEntry:0,parameters:Oa.getParameters(),showParameters:!1,results:null,socrates:{soil:{},simulation:{},climate:{},rotation:{},yields:{}},toggleAnnualYields:!1,toggleMonthlyClimate:!1,toggleYearlyClimate:!1,rotationTableMessage:null,displayRunInNotebook:!1,jupyterNotebook:[],showLoadDialog:!1,selectedFile:null,socratesOld:{},errors:[]}),actions:{deleteRotation(e){this.rotationTable.splice(e,1),this.rotationLength--},updateRotation(e){if(e){this.rotationLength=parseInt(e);for(let t=0;t{if(t.errors=[],c(),d(),t.errors.length===0)try{const O=await tQ({socrates:ut(t.socrates),parameters:ut(t.parameters)});t.results=O.run,_("resultsOfInputPage")}catch(O){t.errors.push(O.message),console.error(O)}},a=async()=>{t.errors=[];try{t.socrates=await nQ(),h()}catch(O){t.errors.push(O.message),console.error(O)}t.showLoadDialog=!1},u=O=>{t.selectedFile=O.target.files[0];const w=new FileReader;w.onload=M=>{try{const T=JSON.parse(M.target.result);T&&(T.version?(t.socrates=T,h()):(t.socratesOld=T,g()))}catch{t.errors.push("Invalid JSON file.")}},w.readAsText(t.selectedFile),t.showLoadDialog=!1};function c(){try{if(t.socrates.version=t.version,t.socrates.soil.soil_properties=parseInt(t.soilProperties),(!t.socrates.soil.soil_properties&&t.socrates.soil.soil_properties!==0||t.socrates.soil.soil_properties<0&&t.socrates.soil.soil_properties>7)&&t.errors.push("Select soil properties"),t.socrates.soil.clay_percentage=parseFloat(t.clay),t.socrates.soil.cec=parseFloat(t.cec),t.socrates.soil.initial_oc=parseFloat(t.initialOC),t.socrates.simulation.initial_oc===0&&t.errors.push("Insert a value for Initial OC%"),t.socrates.simulation.start_year=parseInt(t.startYear),!t.socrates.simulation.start_year&&t.socrates.simulation.start_year!==0&&t.errors.push("Simulation Start year missing"),t.socrates.simulation.period_length=parseInt(t.periodLength),(!t.socrates.simulation.period_length&&t.socrates.simulation.period_length!==0||t.socrates.simulation.period_length<=0)&&t.errors.push("Add simulation period in years"),t.socrates.simulation.rotation_length=parseInt(t.rotationLength),(!t.socrates.simulation.rotation_length&&t.socrates.simulation.rotation_length!==0||t.socrates.simulation.rotation_length<1)&&t.errors.push("Add length of rotation in years"),t.socrates.climate.climate_method_data_entry=t.climateMethodDataEntry,(!t.socrates.climate.climate_method_data_entry&&t.socrates.climate.climate_method_data_entry!==0||t.socrates.climate.climate_method_data_entry<0)&&t.errors.push("Missing: Method of entering data"),t.socrates.climate.average_annual_rainfall=parseFloat(t.averageAnnualRainFall),t.socrates.climate.annual_mean_temperature=parseFloat(t.annualMeanTemperature),t.socrates.climate.randomize_rain_and_temperature=t.randomizeRainAndTemperature,t.socrates.climate.annual_rainfall=[],C(t.annualRainfall))for(let O of t.annualRainfall)t.socrates.climate.annual_rainfall.push({rainfall:parseFloat(O==null?void 0:O.rainfall)});if(t.socrates.climate.month_rain_temp=[],C(t.monthRainTemp))for(let O of t.monthRainTemp)t.socrates.climate.month_rain_temp.push({rainfall:parseFloat(O==null?void 0:O.rainfall),temperature:parseFloat(O==null?void 0:O.temperature)});t.socrates.rotation=[];for(let O of t.rotationTable){const w={year:parseInt(O.year),plant:parseInt(O.plant),stubble:parseInt(O.stubble),graze:parseInt(O.graze),fertiliser:parseFloat(O.fertiliser)};!w.plant&&w.plant!==0||w.plant<0||w.plant>7?t.errors.push(`Missing or incorrect plant in rotation year #${w.year}`):(!w.stubble&&w.stubble!==0&&t.errors.push(`Stubble management missing in rotation year #${w.year}`),!w.fertiliser&&w.fertiliser!==0&&t.errors.push(`Fertiliser missing in rotation year #${w.year}`)),t.socrates.rotation.push(w)}if(t.socrates.rotation<1&&t.errors.push("Add rotation crop"),t.socrates.yields.yields_method_data_entry=t.yieldsMethodDataEntry,t.socrates.yields.annual_yields=[],C(t.annualYields)){const O=[];for(let w of t.annualYields){const M={year:w==null?void 0:w.year,rotation:w==null?void 0:w.rotation,yield:parseFloat(w.yield)};!M.yield&&M.yield!==0&&O.push(`Missing: yield in year #${M.year}`),t.socrates.yields.annual_yields.push(M)}O.length>0&&O.push("Missing: some yield values")}else t.socrates.yields.annual_yields=[]}catch(O){t.errors.push(`${O.name} ${O.message}`),console.error(O)}}function d(){for(let O of Object.keys(t.parameters))t.parameters[O]=parseFloat(t.parameters[O])}function h(){try{t.version=t.socrates.version||Oa.version,t.soilProperties=t.socrates.soil.soil_properties,t.clay=t.socrates.soil.clay_percentage,t.cec=t.socrates.soil.cec,t.initialOC=t.socrates.soil.initial_oc,t.startYear=t.socrates.simulation.start_year,t.periodLength=t.socrates.simulation.period_length,t.rotationLength=t.socrates.simulation.rotation_length,t.climateMethodDataEntry=t.socrates.climate.climate_method_data_entry,t.averageAnnualRainFall=t.socrates.climate.average_annual_rainfall,t.annualMeanTemperature=t.socrates.climate.annual_mean_temperature,t.randomizeRainAndTemperature=t.socrates.climate.randomize_rain_and_temperature,t.annualRainfall=t.socrates.climate.annual_rainfall,t.monthRainTemp=t.socrates.climate.month_rain_temp,t.rotationTable=t.socrates.rotation,t.yieldsMethodDataEntry=t.socrates.yields.yields_method_data_entry,t.annualYields=t.socrates.yields.annual_yields}catch(O){t.errors.push(O.message),console.error(O)}}function g(){try{t.version=Oa.version,t.soilProperties=t.socratesOld.soil.soilProperties,t.clay=t.socratesOld.soil.clayPercentage,t.cec=t.socratesOld.soil.cec||0,t.initialOC=t.socratesOld.soil.initialOC,t.startYear=t.socratesOld.simulation.startYear,t.periodLength=t.socratesOld.simulation.periodLength,t.rotationLength=t.socratesOld.simulation.rotationLength,t.climateMethodDataEntry=t.socratesOld.climate.climateMethodDataEntry,t.averageAnnualRainFall=t.socratesOld.climate.averageAnnualRainfall,t.annualMeanTemperature=t.socratesOld.climate.annualMeanTemperature,t.randomizeRainAndTemperature=t.socratesOld.climate.randomizeRainAndTemperature,t.annualRainfall=t.socratesOld.climate.annualRainFall,t.monthRainTemp=t.socratesOld.climate.monthRainTemp,t.rotationTable=t.socratesOld.rotation,t.yieldsMethodDataEntry=t.socratesOld.yields.yieldsMethodDataEntry,t.annualYields=t.socratesOld.yields.annualYields,t.socratesOld.parametersEdited&&(t.parameters=t.socratesOld.parameters)}catch(O){t.errors.push(O.message),console.error(O)}}function m(){t.$reset()}async function b(){const O=await WQ({results:t.results,initialOC:t.initialOC}),w="data.csv",M=new Blob([O],{type:"text/csv;charset=utf-8;"});if(navigator.msSaveBlob)navigator.msSaveBlob(M,w);else{const T=document.createElement("a");if(T.download!==void 0){const P=URL.createObjectURL(M);T.setAttribute("href",P),T.setAttribute("download",w),T.style.visibility="hidden",document.body.appendChild(T),T.click(),document.body.removeChild(T)}}}function v(){c();const O=ut(t.socrates),w=JSON.stringify(O,null,2),M=new Blob([w],{type:"application/json"}),T=window.URL.createObjectURL(M),P=document.createElement("a");P.style.display="none",P.href=T,P.download="socrates.json",document.body.appendChild(P),P.click(),window.URL.revokeObjectURL(T),document.body.removeChild(P)}function _(O){setTimeout(function(){document.getElementById(O).scrollIntoView({behavior:"smooth"})},100)}function y(){t.displayRunInNotebook=!0;const O=JSON.stringify(t.socrates),w=JSON.stringify(t.parameters);t.jupyterSource=["!pip install requests","import os","import json","import requests","socrates_json = '''",O,"'''","socrates = json.loads(socrates_json)","parameters_json = '''",w,"'''","parameters = json.loads(parameters_json)",'api_url = "https://api.socrates-soil.net/run"',"payload = {"," 'socrates' : socrates,"," 'parameters': parameters","}","response = requests.post(api_url, json=payload)","results = response.json()","results"]}function C(O){return O==null?!1:typeof O[Symbol.iterator]=="function"}return(O,w)=>{const M=os,T=ci,P=b2,R=KZ,F=Y9,D=FU,V=IU,A=tl,U=hv,le=jZ,ce=VZ,te=zZ,Z=NZ,ie=FZ,Q=kZ,ye=gZ,Ee=N9,Le=DW;return K(),_e("div",jQ,[W(T,{gutter:20,class:"flex flex-col justify-center items-center"},{default:z(()=>[W(M,{span:24,xl:20,lg:20,md:24,sm:24,xs:24},{default:z(()=>[UQ]),_:1}),S(t).errors.length>0?(K(),Me(M,{key:0,span:24,xl:20,lg:20,md:20,sm:24,xs:24,class:"py-10"},{default:z(()=>[W(T,{span:24,class:""},{default:z(()=>[L("div",KQ,[qQ,(K(!0),_e(it,null,En(S(t).errors,ue=>(K(),_e("p",YQ,pt(ue),1))),256))])]),_:1})]),_:1})):Ie("",!0),W(M,{span:24,xl:20,lg:20,md:20,sm:24,xs:24},{default:z(()=>[W(P,{onClick:w[0]||(w[0]=ue=>S(t).showParameters=!S(t).showParameters)},{default:z(()=>[re(pt(S(t).showParameters?"Hide Parameters":"Show Parameters"),1)]),_:1}),W(F,{modelValue:S(t).showParameters,"onUpdate:modelValue":w[3]||(w[3]=ue=>S(t).showParameters=ue),title:"Climate","with-header":!1,direction:"ltr",class:"min-w-fit"},{footer:z(()=>[L("div",XQ,[W(P,{type:"primary",onClick:w[2]||(w[2]=ue=>S(t).showParameters=!1)},{default:z(()=>[re("Close")]),_:1})])]),default:z(()=>[GQ,L("p",null,[W(P,{onClick:w[1]||(w[1]=ue=>S(t).resetParameters())},{default:z(()=>[re("Reset Parameters")]),_:1})]),W(R,{parameters:S(t).parameters},null,8,["parameters"])]),_:1},8,["modelValue"]),JQ,W(T,null,{default:z(()=>[W(M,{class:"py-1"},{default:z(()=>[L("div",ZQ,[QQ,W(V,{modelValue:S(t).soilProperties,"onUpdate:modelValue":w[4]||(w[4]=ue=>S(t).soilProperties=ue),class:"m-2",placeholder:"Select"},{default:z(()=>[(K(),_e(it,null,En(n,ue=>W(D,{key:ue.id,label:ue.type,value:ue.id},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),W(M,{class:"py-1",xl:8,lg:8,md:8,sm:8,xs:24},{default:z(()=>[L("div",eee,[W(A,{modelValue:S(t).clay,"onUpdate:modelValue":w[5]||(w[5]=ue=>S(t).clay=ue),placeholder:"Clay %",disabled:S(t).soilProperties!==6},{prepend:z(()=>[re("Clay %")]),_:1},8,["modelValue","disabled"])])]),_:1}),W(M,{class:"py-1",xl:8,lg:8,md:8,sm:8,xs:24},{default:z(()=>[L("div",tee,[W(A,{modelValue:S(t).cec,"onUpdate:modelValue":w[6]||(w[6]=ue=>S(t).cec=ue),placeholder:"CEC",disabled:S(t).soilProperties!==7},{prepend:z(()=>[re("CEC")]),_:1},8,["modelValue","disabled"])])]),_:1}),W(M,{class:"py-1",xl:8,lg:8,md:8,sm:8,xs:24},{default:z(()=>[L("div",nee,[W(A,{modelValue:S(t).initialOC,"onUpdate:modelValue":w[7]||(w[7]=ue=>S(t).initialOC=ue),placeholder:"OC"},{prepend:z(()=>[re("Initial OC %")]),_:1},8,["modelValue"])])]),_:1})]),_:1}),ree,W(T,null,{default:z(()=>[W(M,{class:"py-1",xl:8,lg:8,md:8,sm:8,xs:24},{default:z(()=>[L("div",iee,[W(A,{modelValue:S(t).startYear,"onUpdate:modelValue":w[8]||(w[8]=ue=>S(t).startYear=ue),placeholder:"(eg. 1990)"},{prepend:z(()=>[re("Start year")]),_:1},8,["modelValue"])])]),_:1}),W(M,{class:"py-1",xl:8,lg:8,md:8,sm:8,xs:24},{default:z(()=>[L("div",see,[W(A,{modelValue:S(t).periodLength,"onUpdate:modelValue":w[9]||(w[9]=ue=>S(t).periodLength=ue),placeholder:"Period"},{prepend:z(()=>[re("Simulation period in years")]),_:1},8,["modelValue"])])]),_:1}),W(M,{class:"py-1",xl:8,lg:8,md:8,sm:8,xs:24},{default:z(()=>[L("div",oee,[W(A,{modelValue:S(t).rotationLength,"onUpdate:modelValue":w[10]||(w[10]=ue=>S(t).rotationLength=ue),placeholder:"(eg. Peas - Wheat would be 2)",onChange:S(t).updateRotationLength},{prepend:z(()=>[re("Length of rotation in years")]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),L("div",null,[aee,W(T,null,{default:z(()=>[W(M,{class:"py-1"},{default:z(()=>[L("div",lee,[uee,W(V,{modelValue:S(t).climateMethodDataEntry,"onUpdate:modelValue":w[11]||(w[11]=ue=>S(t).climateMethodDataEntry=ue),class:"m-2",placeholder:"Select"},{default:z(()=>[W(D,{label:"Enter yearly rainfall & mean temperature",value:0}),W(D,{label:"Enter average rainfall & mean temperature",value:1}),W(D,{label:"Enter monthly rainfall & mean temperature",value:4})]),_:1},8,["modelValue"]),W(T,null,{default:z(()=>[W(U,{title:"Note: Error if rainfall value is zero",type:"info"})]),_:1}),S(t).climateMethodDataEntry===4?(K(),Me(P,{key:0,onClick:w[12]||(w[12]=ue=>S(t).toggleMonthlyClimate=!S(t).toggleMonthlyClimate)},{default:z(()=>[re(pt(S(t).toggleMonthlyClimate?"Hide Monthly Rain/Temperature":"Show Monthly Rain/Temperature"),1)]),_:1})):Ie("",!0),S(t).climateMethodDataEntry===0?(K(),Me(P,{key:1,onClick:w[13]||(w[13]=ue=>S(t).toggleYearlyClimate=!S(t).toggleYearlyClimate)},{default:z(()=>[re(pt(S(t).toggleYearlyClimate?"Hide Yearly Rain":"Show Yearly Rain"),1)]),_:1})):Ie("",!0)])]),_:1}),W(M,{class:"py-1"},{default:z(()=>[cee]),_:1}),W(M,{class:"py-1",xl:24,lg:24,md:24,sm:24,xs:24},{default:z(()=>[S(t).climateMethodDataEntry===4?(K(),Me(F,{key:0,title:"Climate",modelValue:S(t).toggleMonthlyClimate,"onUpdate:modelValue":w[15]||(w[15]=ue=>S(t).toggleMonthlyClimate=ue),"with-header":!1,direction:"rtl",class:"min-w-fit"},{footer:z(()=>[L("div",fee,[W(P,{type:"primary",onClick:w[14]||(w[14]=ue=>S(t).toggleMonthlyClimate=!1)},{default:z(()=>[re("Close")]),_:1})])]),default:z(()=>[W(le,{monthRainTemp:S(t).monthRainTemp,periodLength:S(t).periodLength,startYear:S(t).startYear,onUpdateMonthRainTemps:S(t).updateMonthRainTemps},null,8,["monthRainTemp","periodLength","startYear","onUpdateMonthRainTemps"])]),_:1},8,["modelValue"])):Ie("",!0),S(t).climateMethodDataEntry===0?(K(),Me(F,{key:1,title:"Climate",modelValue:S(t).toggleYearlyClimate,"onUpdate:modelValue":w[17]||(w[17]=ue=>S(t).toggleYearlyClimate=ue),direction:"rtl","with-header":!1,class:"min-w-fit"},{footer:z(()=>[L("div",dee,[W(P,{type:"primary",onClick:w[16]||(w[16]=ue=>S(t).toggleYearlyClimate=!1)},{default:z(()=>[re("Close")]),_:1})])]),default:z(()=>[W(ce,{annualRainfall:S(t).annualRainfall,periodLength:S(t).periodLength,startYear:S(t).startYear,onUpdateAnnualRainfall:S(t).updateRainfall},null,8,["annualRainfall","periodLength","startYear","onUpdateAnnualRainfall"])]),_:1},8,["modelValue"])):Ie("",!0)]),_:1}),W(M,{class:"py-1",xl:12,lg:12,md:12,sm:12,xs:24},{default:z(()=>[L("div",hee,[W(A,{modelValue:S(t).averageAnnualRainFall,"onUpdate:modelValue":w[18]||(w[18]=ue=>S(t).averageAnnualRainFall=ue),placeholder:"Rain",disabled:S(t).climateMethodDataEntry===4||S(t).climateMethodDataEntry===0},{prepend:z(()=>[re("Average annual rainfall (mm)")]),_:1},8,["modelValue","disabled"])])]),_:1}),W(M,{class:"py-1",xl:12,lg:12,md:12,sm:12,xs:24},{default:z(()=>[L("div",pee,[W(A,{modelValue:S(t).annualMeanTemperature,"onUpdate:modelValue":w[19]||(w[19]=ue=>S(t).annualMeanTemperature=ue),placeholder:"Temperature",disabled:S(t).climateMethodDataEntry===4},{prepend:z(()=>[re("Annual mean temperature (℃)")]),_:1},8,["modelValue","disabled"])])]),_:1}),W(M,{class:"py-1"},{default:z(()=>[L("div",null,[gee,W(V,{modelValue:S(t).randomizeRainAndTemperature,"onUpdate:modelValue":w[20]||(w[20]=ue=>S(t).randomizeRainAndTemperature=ue),class:"m-2",placeholder:"Select"},{default:z(()=>[W(D,{label:"No",value:0}),W(D,{label:"Yes",value:1})]),_:1},8,["modelValue"])])]),_:1})]),_:1})]),L("div",null,[mee,S(t).rotationTableMessage?(K(),Me(T,{key:0,span:24},{default:z(()=>[re(pt(S(t).rotationTableMessage),1)]),_:1})):Ie("",!0),W(T,{class:"border-solid border-1 border-b-0 border-gray-200"},{default:z(()=>[W(M,{span:1,class:"p-2 text-center"},{default:z(()=>[re("Year")]),_:1}),W(M,{span:5,class:"p-2 text-center"},{default:z(()=>[re("Plant")]),_:1}),W(M,{span:5,class:"p-2 text-center"},{default:z(()=>[re("Stubble")]),_:1}),W(M,{span:5,class:"p-2 text-center"},{default:z(()=>[re("Graze")]),_:1}),W(M,{span:5,class:"p-2 text-center"},{default:z(()=>[re("Fertiliser")]),_:1}),W(M,{span:3})]),_:1}),(K(!0),_e(it,null,En(S(t).rotationTable,(ue,Ze)=>(K(),Me(T,{key:Ze,class:"border-solid border-1 border-gray-200"},{default:z(()=>[W(M,{span:2,class:"p-2"},{default:z(()=>[W(A,{modelValue:ue.year,"onUpdate:modelValue":$e=>ue.year=$e},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),W(M,{span:5,class:"p-2"},{default:z(()=>[W(V,{modelValue:ue.plant,"onUpdate:modelValue":$e=>ue.plant=$e},{default:z(()=>[(K(),_e(it,null,En(r,$e=>W(D,{key:$e.id,label:$e.name,value:$e.id},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024),W(M,{span:5,class:"p-2"},{default:z(()=>[W(V,{modelValue:ue.stubble,"onUpdate:modelValue":$e=>ue.stubble=$e},{default:z(()=>[(K(),_e(it,null,En(s,$e=>W(D,{key:$e.id,label:$e.name,value:$e.id},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024),W(M,{span:5,class:"p-2"},{default:z(()=>[W(V,{modelValue:ue.graze,"onUpdate:modelValue":$e=>ue.graze=$e,clearable:"",disabled:ue.stubble===0},{default:z(()=>[(K(),_e(it,null,En(i,$e=>W(D,{key:$e.id,label:$e.name,value:$e.id,disabled:ue.stubble===0},null,8,["label","value","disabled"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1024),W(M,{span:5,class:"p-2"},{default:z(()=>[W(A,{modelValue:ue.fertiliser,"onUpdate:modelValue":$e=>ue.fertiliser=$e},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),W(M,{span:2,class:"p-2"},{default:z(()=>[Ze===S(t).rotationLength-1?(K(),Me(P,{key:0,link:"",type:"primary",size:"small",class:"w-full",onClick:Cr($e=>S(t).deleteRotation(Ze),["prevent"])},{default:z(()=>[re(" Remove ")]),_:2},1032,["onClick"])):Ie("",!0)]),_:2},1024)]),_:2},1024))),128)),W(T,null,{default:z(()=>[W(P,{class:"mt-4 w-full",onClick:S(t).addRotation},{default:z(()=>[re("Add Rotation")]),_:1},8,["onClick"])]),_:1}),vee]),L("div",null,[bee,W(T,null,{default:z(()=>[W(M,{class:"py-1"},{default:z(()=>[L("div",null,[yee,W(V,{modelValue:S(t).yieldsMethodDataEntry,"onUpdate:modelValue":w[21]||(w[21]=ue=>S(t).yieldsMethodDataEntry=ue),class:"m-2",placeholder:"Select",onChange:S(t).selectYield},{default:z(()=>[W(D,{label:"Enter annual yields manually",value:0}),W(D,{label:"Computer will calculate annual yields",value:1})]),_:1},8,["modelValue","onChange"]),_ee,S(t).yieldsMethodDataEntry===0?(K(),Me(P,{key:0,onClick:w[22]||(w[22]=ue=>S(t).toggleAnnualYields=!S(t).toggleAnnualYields)},{default:z(()=>[re(pt(S(t).toggleAnnualYields?"Hide Annual Yields":"Show Annual Yields"),1)]),_:1})):Ie("",!0)])]),_:1})]),_:1}),W(F,{title:"Annual Yields",modelValue:S(t).toggleAnnualYields,"onUpdate:modelValue":w[24]||(w[24]=ue=>S(t).toggleAnnualYields=ue),direction:"rtl","with-header":!1,class:"min-w-fit"},{footer:z(()=>[L("div",wee,[W(P,{type:"primary",onClick:w[23]||(w[23]=ue=>S(t).toggleAnnualYields=!1)},{default:z(()=>[re("Close")]),_:1})])]),default:z(()=>[W(te,{annualYields:S(t).annualYields,startYear:S(t).startYear,periodLength:S(t).periodLength,rotationLenght:S(t).rotationTable.length,rotationTable:S(t).rotationTable,plants:r,onUpdateYields:S(t).updateYields},null,8,["annualYields","startYear","periodLength","rotationLenght","rotationTable","onUpdateYields"])]),_:1},8,["modelValue"])]),S(t).errors.length>0?(K(),Me(M,{key:0,span:24,xl:20,lg:20,md:24,sm:24,xs:24,class:"py-10"},{default:z(()=>[W(T,{span:24,class:"flex flex-col justify-center items-center"},{default:z(()=>[L("div",xee,[Cee,(K(!0),_e(it,null,En(S(t).errors,ue=>(K(),_e("p",See,pt(ue),1))),256))])]),_:1})]),_:1})):Ie("",!0)]),_:1}),W(M,{span:24,xl:20,lg:20,md:20,sm:24,xs:24,class:"py-10"},{default:z(()=>[L("div",null,[W(P,{onClick:w[25]||(w[25]=ue=>o()),size:"large",type:"primary"},{default:z(()=>[re("Run")]),_:1}),W(P,{onClick:w[26]||(w[26]=ue=>S(t).showLoadDialog=!0),size:"large",type:"primary"},{default:z(()=>[re("Load Data ")]),_:1}),W(P,{onClick:w[27]||(w[27]=ue=>m()),size:"large",type:"warning"},{default:z(()=>[re("Clear Form")]),_:1}),W(P,{onClick:w[28]||(w[28]=ue=>v()),size:"large",type:"info"},{default:z(()=>[re("Save Inputs")]),_:1})])]),_:1}),S(t).results?(K(),Me(M,{key:1,span:24,xl:20,lg:20,md:20,sm:24,xs:24,id:"resultsOfInputPage"},{default:z(()=>[W(T,{span:24,class:"max-h-[600px]"},{default:z(()=>[W(Z,{label:"Organic Carbon (0-10cm)","x-axis":S(t).results.years,data:S(t).results.organic_carbon.data_points},null,8,["label","x-axis","data"])]),_:1})]),_:1})):Ie("",!0),S(t).results?(K(),Me(M,{key:2,span:24,xl:20,lg:20,md:20,sm:24,xs:24},{default:z(()=>[W(ie,{results:S(t).results},null,8,["results"])]),_:1})):Ie("",!0),S(t).results?(K(),Me(M,{key:3,span:24,xl:20,lg:20,md:20,sm:24,xs:24},{default:z(()=>[W(Q,{results:S(t).results,"initial-o-c":S(t).initialOC},null,8,["results","initial-o-c"])]),_:1})):Ie("",!0),S(t).results?(K(),Me(M,{key:4,span:24,xl:20,lg:20,md:20,sm:24,xs:24},{default:z(()=>[W(ye,{label:"Total greenhouse gas emissions",data:S(t).results},null,8,["data"])]),_:1})):Ie("",!0),S(t).results?(K(),Me(M,{key:5,span:24,xl:20,lg:20,md:20,sm:24,xs:24,class:"py-10"},{default:z(()=>[L("div",null,[W(P,{onClick:w[29]||(w[29]=ue=>b()),"data-toggle":"modal",size:"large",type:"primary"},{default:z(()=>[re("Save Results")]),_:1}),S(t).results?(K(),Me(P,{key:0,onClick:w[30]||(w[30]=ue=>y()),size:"large",type:"primary"},{default:z(()=>[re("Run in notebook ")]),_:1})):Ie("",!0),W(P,{onClick:w[31]||(w[31]=ue=>_("topOfInputPage")),size:"large",type:"info"},{default:z(()=>[re("Scroll to Top")]),_:1})])]),_:1})):Ie("",!0)]),_:1}),W(T,{class:"pb-20"}),W(Ee,{modelValue:S(t).displayRunInNotebook,"onUpdate:modelValue":w[33]||(w[33]=ue=>S(t).displayRunInNotebook=ue),title:"## Copy and Paste the following code in a jupyter notebook ##"},{footer:z(()=>[L("div",Tee,[W(P,{type:"primary",onClick:w[32]||(w[32]=ue=>S(t).displayRunInNotebook=!1)},{default:z(()=>[re("Close")]),_:1})])]),default:z(()=>[L("div",Oee,[L("code",null,[L("ul",Eee,[(K(!0),_e(it,null,En(S(t).jupyterSource,ue=>(K(),_e("li",Mee,pt(ue),1))),256))])])])]),_:1},8,["modelValue"]),W(Ee,{modelValue:S(t).showLoadDialog,"onUpdate:modelValue":w[37]||(w[37]=ue=>S(t).showLoadDialog=ue),title:"Load Data"},{default:z(()=>[W(Le,null,{default:z(()=>[L("input",{type:"file",onChange:w[34]||(w[34]=ue=>u(ue)),onClick:w[35]||(w[35]=ue=>ue.target.value=""),accept:"application/json"},null,32)]),_:1}),Aee,Pee,Ree,kee,L("div",null,[W(P,{onClick:w[36]||(w[36]=ue=>a()),size:"large",type:"primary"},{default:z(()=>[re("Load Example Data")]),_:1})])]),_:1},8,["modelValue"])])}}},Yp=""+new URL("../images/edit_help.png",import.meta.url).href,Iee={},Fee=L("div",{class:"col-md-1"},null,-1),$ee=L("div",{class:"col-md-10"},[L("div",{class:"basic-form"},[L("h3",{class:"center"},"SOCRATES Help"),L("h4",null,[L("a",{id:"Inputs",name:"Inputs",href:"#/help/#Inputs"},"INPUTS")]),L("h3",null,"Soil"),L("div",{class:"border-noshadow"},[L("h4",null,"Soil content"),L("p",null,"Socrates needs the Cation Exchange Capacity (CEC) of the soil. If CEC is not available then estimates are made from the clay % or the soil type. If you have the CEC value use this, otherwise Clay% or lastly soil type."),L("h4",null,"Clay %"),L("p",null,[re("Enter the % of "),L("strong",null,"clay"),re(" in the soil as indicated on a soil test.")]),L("h4",null,"CEC"),L("p",null,[re("Enter the "),L("strong",null,"CEC"),re(" (Cation Exchange Capacity) in mmol/kg as indicated on a soil test.")]),L("h4",null,"Initial OC %"),L("p",null,[re("Enter the "),L("strong",null,"OC"),re(" (Organic Carbon percentage) as indicated on a soil test. As soils can vary quite widely due to past management, a starting value is important to obtain.")])]),L("h3",null,"Simulation"),L("div",{class:"border-noshadow"},[L("h4",null,"Start year (eg. 1990)"),L("p",null,[re("This is needed for the graphs and when stored weather data is used (See "),L("strong",null,"Simulation period in years"),re(").")]),L("h4",null,"Simulation period in years"),L("p",null,"This is the length of time the simulation will run. As changes are usually very slow, a period of ten years is a good starting point."),L("h4",null,"Simulation period in years"),L("p",null,[re("Must be in range - 1960 to 1990 (See "),L("strong",null,"Method of entering data - Closest town actual data"),re("). ")]),L("h4",null,"Length of rotation in years (eg. Peas - Wheat would be 2)"),L("p",null,"The length of rotation or cropping/pasture sequence can be short (ie. 2) or very long if a non-repeating sequence is used. For example, if the simulation runs for tens years then a rotation can also be ten years. Other examples include;"),L("ul",null,[L("li",null,"Fallow - Wheat 2 years"),L("li",null,"Fallow - Wheat - Pasture 3 years"),L("li",null,"Wheat - Wheat - Pasture - Pasture 4 years")])]),L("h3",null,"Climate"),L("div",{class:"border-noshadow"},[L("h4",null,"Method of entering data"),L("p",null,"Socrates offers the user the option to enter their own weather data in various ways including the use stored weather data from selected sites. The latter option allows different management options to be tested for a period where rainfall and temperature are known. For example, we could find out what would have happened if burning had continued at Walpeup during 1980 to 1990 compared to paddocks not burnt."),L("ul",null,[L("li",null,[re("Enter yearly rainfall & mean temperature (Select and click "),L("img",{src:Yp,height:"20px"}),re(" to edit) ")]),L("li",null,[re("Enter average rainfall & mean temperature (Select and click "),L("img",{src:Yp,height:"20px"}),re(" to edit) ")]),L("li",null,"Closest town, stored weather averages"),L("li",null,"Closest town, actual weather data"),L("li",null,[re("Enter monthly rainfall & mean temperature (Select and click "),L("img",{src:Yp,height:"20px"}),re(" to edit) ")])]),L("h4",null,"Annual mean temperature"),L("p",null,"Enter the mean temperature for the simulation."),L("h4",null,"Average annual rainfall"),L("p",null,[re("The average Jan - Dec rainfall will be used for the period of the simulation. The "),L("strong",null,"Average annual rainfall"),re(" window opens when this option is selected.")]),L("h4",null,"Closest town, average climate"),L("p",null,"The average rainfall and temperature for the selected town will for the period of the simulation. Once selected, chose the town closest to your particular station."),L("h4",null,"Closest town, actual rainfall (1960 - 1990)"),L("p",null,"The actual rainfall and temperature for the selected period will be used in the simulation. Once selected, choose the town closest to your particular situation. This option is very good for introducing variation and testing the effects of various management options."),L("h4",null,"Randomise annual rainfall"),L("p",null,"This option is only available when average rainfall is selected. This allows the computer generate variations in rainfall from year to year (+-30%) rather than the rainfall value being the same.")]),L("h3",null,"Rotation"),L("div",{class:"border-noshadow"},[L("p",null,"The amount of organic carbon added or lost from the soil varies between crops, pasture and fallow. It is also influenced by management factors such as burning of stubbles, hay or stubble removal, grazing and nitrogen application."),L("p",null,[re("Information is entered for each of the rotations (There is a maximum length of "),L("strong",null,"20"),re(" different crops or phases in one rotation sequence). The number of years is determined by the entry in the "),L("strong",null,"Length of rotation in years"),re(" (Simulation section) box. For example, a Fallow - Wheat - Pasture rotation would have three years displayed with information required on the management of each phase of the rotation.")]),L("p",null,"Options: For each phase of the rotation a crop, pasture or fallow option needs to be selected."),L("table",{class:"table table-fluid table-bordered"},[L("tr",null,[L("th",null,"Year"),L("th",null,"Stubble management"),L("th",null,"Grazed"),L("th",null,"Fertiliser N")]),L("tr",null,[L("td",null,"1...20"),L("td",null,"Enter whether the stubble is removed or burnt. Removal may be as hay, stubble harvesting or burning. "),L("td",null,"Grazing is another form of removal. The intensity of grazing determines the amount removed."),L("td",null,"Enter the amount of nitrogen in kg/ha that is applied to the paddock.")])])]),L("h3",null,"Yields"),L("div",{class:"border-noshadow"},[L("h4",null,"Method of entering yields"),L("p",null,"Socrates requires dry matter production (kg/ha) for pastures and crop yield (kg/ha) for crops."),L("h4",null,"Enter annual yields manually"),L("p",null,[re("Enter grain yields (kg/ha) for crops and dry matter production (kg/ha) for pasture. You can use your own records or hypothetical values. "),L("br"),re("The yield is entered opposite the corresponding year. The yield figure is the yield of a crop or the dry matter production (pastures) in kilograms per hectare for that season. The total dry matter production (including roots) will be estimated from these figures. ")]),L("h4",null,"Computer will calculate annual yields"),L("p",null,"When yields are not available, Socrates can estimate them using a modified form of the French-Schultz growing season rainfall (+ stored water) vs yield model (these can be modified by the user if site specific data is available, see next paragraph). We assume that during as average season crops and pastures will have available (before evaporation) approximately 70% of the growing season rainfall.")])]),L("div",{class:"basic-form"},[L("h4",null,[L("a",{id:"Results",name:"Results",href:"#/help#Results"},"RESULTS")]),L("h3",null,"Organic carbon (%)"),L("div",{class:"border-noshadow"},[L("p",null,"This graph reports the change in soil organic carbon (0-10 cm) based on the rotation, management, sol type and location.")]),L("h3",null,"Relative change in carbon"),L("div",{class:"border-noshadow"},[L("p",null,"This graph is the relative change per annum in soil OC (%) expressed as a percentage (not the same at absolute OC % change).")]),L("h3",null,"Yield"),L("div",{class:"border-noshadow"},[L("p",null,"The grain and pasture yields (kg/ha) each year")]),L("h3",null,"Table of management"),L("div",{class:"border-noshadow"},[L("p",null,"this provides a summary of the crop/pasture and management imposed every year")]),L("h3",null,"Simulation Results"),L("div",{class:"border-noshadow"},[L("p",null,"If you Select View Data"),L("ul",null,[L("li",null,"Crop - Crop of Pasture Type."),L("li",null,"Rain - Annual rainfall (mm)."),L("li",null,"Yield - Grain or Pasture production (kg/ha)."),L("li",null,"Biomass - the amount of carbon left after removing grain and after grazing (if any), including roots. "),L("li",null,"Fert - the amount of nitrogen fertiliser applied (kg N/ha)."),L("li",null,"Urine - the amount of urine (as N) produced by the animals that graze the crop residue or pasture. "),L("li",null,"OC (0-10 cm) - the change in soil organic carbon over time in response to agricultural management (e.g. biomass, grazing, rotation). ")]),L("p",null,[re("The following are all expressed as CO"),L("sub",null,"2"),re(" equivalents (kg/ha)")]),L("ul",null,[L("li",null,[re("N"),L("sub",null,"2"),re("O (fertiliser) - N"),L("sub",null,"2"),re("O produced from the application of nitrogen fertiliser - current 1% of nitrogen applied (kg N/ha). N"),L("sub",null,"2"),re("O Global Warming Potential = 296 ")]),L("li",null,[re("N"),L("sub",null,"2"),re("O mineralised - the amount of N"),L("sub",null,"2"),re("O mineralised from soil organic matter.")]),L("li",null,[re("N"),L("sub",null,"2"),re("O residues - the amount of N"),L("sub",null,"2"),re("O produced as result of the decomposition of crop and root residues. ")]),L("li",null,[re("N"),L("sub",null,"2"),re("O (indirect) - N"),L("sub",null,"2"),re("O produced from volatilisation and leaching of nitrogen applied as fertiliser and urine. ")]),L("li",null,[re("N"),L("sub",null,"2"),re("O (urine) - N"),L("sub",null,"2"),re("O from urine from animals currently 1% of total nitrogen in urine. This does not currently include N"),L("sub",null,"2"),re("O from dung from animals. ")]),L("li",null,[re("CH"),L("sub",null,"4"),re(" (animals) - methane produced from animals. CH"),L("sub",null,"4"),re(" Global Warming Potential = 34 ")]),L("li",null,[re("Total - total greenhouse gas emissions"),L("br"),re(" As each year is calculated, the cumulative emissions (i.e. adding successive years) is displayed. ")])])])])],-1);function Dee(e,t){const n=os,r=ci;return K(),Me(r,{class:"m-4 p-4"},{default:z(()=>[W(n,{xl:20,lg:20,md:20,sm:24,xs:24},{default:z(()=>[Fee,$ee]),_:1})]),_:1})}const Nee=Ku(Iee,[["render",Dee]]),Bee={},zee=L("div",{class:"col-md-1"},null,-1),Hee=L("div",{class:"col-md-10"},[L("div",{class:"basic-form"},[L("h5",{class:"text-2xl"},[L("strong",null,[re("For further information on S.O.C.R.A.T.E.S. "),L("br"),L("br"),re(" Please contact the project coordinator Professor Peter Grace")])]),L("p",{class:"text-1xl"},[L("strong",null,"Institute for Future Environments"),L("br"),re(" Level 7, P Block "),L("br"),re(" Queensland University of Technology "),L("br"),re(" Gardens Point Campus "),L("br"),re(" GPO Box 2434 "),L("br"),re(" BRISBANE QLD 4001 "),L("br"),re(" Phone: (07) 3138 1904 "),L("br"),re(" Fax: (07) 3138 4438 "),L("br"),re(" Email: "),L("a",{href:"mailto:ife@qut.edu.au"},"pr.grace@qut.edu.au")])])],-1);function Wee(e,t){const n=os,r=ci;return K(),Me(r,{class:"m-4 p-4"},{default:z(()=>[W(n,{xl:20,lg:20,md:20,sm:24,xs:24},{default:z(()=>[zee,Hee]),_:1})]),_:1})}const Vee=Ku(Bee,[["render",Wee]]),jee=YK({history:fK(),routes:[{path:"/",name:"home",component:sq},{path:"/input",name:"input",component:Lee},{path:"/help",name:"help",component:Nee},{path:"/contact",name:"contact",component:Vee},{path:"/about",name:"about",component:gO}]});const Kv=P$(JK),Uee=YZ();Kv.use(jee);Kv.use(Uee);Kv.mount("#app"); diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..81579a00fd18dd9f19d60289bc0ffbab775da1c7 GIT binary patch literal 5430 zcmc)OdDM+%7Y6Xxl$1(E8j*z3oT3R$$SQ>>O-d4JL=zP%(xjr1q7fxcR4SU4p)@EO zXf&i~jz+ul+h4~zpS8a4pYMUJ(dSu|=GD=9%%;S6{{N zzyBUDyzoL^-)5U_at-mCxAV?B$GPX88<$;nS@i7LGj6=`#+W*FY8-ONAZ>$u~N zJ7VR^mGReKf91TBPC6;J+G?vf=bUq5;J|@#(M1=<%$YOewbx$Dc>DJ4n=xE_?X`Kv zi!Z+T9|R)y+i$Ethpa1uD$x|s~Oj!haQ?(z7l z$dM!CrkiexyY9Lx+P7~X&6+h!?B(<3n{SRUzW5?B@Z0I9pPqUA>8GDEcIR5OXi@z9 z^Uv|rQ%}XIr=FVcaFc_lpME;$|M0^PF>&I=#77Qb2;+wydMM;_&YU@k+0|EHojG2z zWJ$dJ_S^CC#~;V2QKMqTiWTwo*Iy^j&ph)?&Tr75LFQ=4kRfsO(MLy@E?uH)*RHW} z;lf;N@ZiD8f$rVA$Ju9}9Zx>_WOVM_IbW~8{(9`T+ir32!3W27+ie#eI&_Futy;zQ z+i#y7*mc)kqjv4uam+EteX+`cbHVB5mtT%$%a&#SUwrY! zj9;vBFlNk{oC6=9-+%x8+|PPA@#dRv#+P4ynYqEO-+ucoIrhyr-^4rbyp!i~#={Rk zJaw~R!Ggef=Yk_G!PtFrvuf3;>SDeutS~~@9a+l z{A|MwH_Y?%9r)1=E#qJ5zzd$_92F~8%(d28XPwx3>#g&QyX>+{uGzF{)AYIr9(W*b zzy0>i0epG;zWeSQx7>0|dR?trwW50U>KTjJ)d|?pJYDeT(n0srrcFzaw12f~)iU?( z+O^BI_u6Z(T#HY_K&*UJZBhfyI_s=l-!)!tzIvce?6~8O$(hYI+bq3?2GyxjJuF_l zIQ6L($@#kLuABSw3$gQXXXYVdpecU9ckrNo{rY)+{y1*jxZu0u!i~*0-#lv8tQpQi z%e?lJPd-Ucgu`c_eHQcP&CC1Xjo&-%v{T}@>86`T!-fsBw&D~2-(!zGQV)Fk)?07Q zHN{l7Zr#i|uOB{qc>1U7&eObk^WbGZ!-OB;f&F2LQ?9FXw6pQX8%O!_<+JXKTisP> zooCA}w@hw3i+buE59t;sti#Xs4r-h@)%x?#KR+>rA-qd_1=^5*dBedLEm~v@n{2X4 z_6+J)(VNu(I)NFFho5@vOmu;R&Z@?b9z8niyU*6873cf>^Uq7^m!ItqZ#jh<%=A5a z8+eL=w_6A2pMCb(4zklY(9{ljR=bp>BT!(?UX<0wA_K+ifWq)Ud z!O)>YlgBhflX#8?lO|1y*|TS7A0RLCAy$4PKI@-$+G*Jv;3yBX)*ElUkzUBl)*iUT zx712|@LT7DpIG+Zd+*eSeo#M2&tio&&EPKm;y>Jn4I7sIfId(kiGRFEj{ej6#q3_S zR-Y;c>(M^^{C@JuC#S#jczN~R*}dycU@m6oo;!DLuAw)Efu7B8#U8B`0~%BN^=W!R zF`KLRv9~qEZXX&`r=6WA;GezVW`A6Ajm~g`9_>$G_^lq54qDWAsvTm0kNRpYekvyY ziEe06F4L5Pu`gEeNEc&}1M=!;n^zOK)r{@9Y7-Ga@Ysu;J&p)5>mDUOKaSAW^ znts*q)}JwBM#hNydPF^zwSWEf*X-4NSK}Ue6GJ@8loq zP4j~9)0Sr&wO>4X2|W~!snK!(7Z|~sx9}o;A`a6LozR8eh#%v3(bx4x*5Su+>D{|` z*2da}=MizKfBFXXh*rd7ZQ8F~xpLMeeK9|QrCv?#pbZ+8TlGO)Ma{zURMiAQdDsI}n2FATYn z3w?<5=&j5(2j=3`N0={%G$G&gf8TxgrFQug-0bYDz$+f=In}yq2@G5p6aI}U zXcAXkQ!9BD4cJG0r6F3BZ}Y$X_S@u*9z-q1YdpkfK3wz$dU^NVcaxX&DJHRaPSGcr zYh67H%=O586$jz!eE7*9=mFP?!+!jus4ds6#Y_1mZPO&4(kfoaJMPMxGuq!e^sBGK zbsRHKtok09`~L#&c-AZ(?k&EG*L@eK|5@l0oROcXDF&~{N8He}iAArb zj_7&d;4IGP%<76~3Gc-^!+Ut7{~vjYL9Y*g+^1*xx3}kNIj2X%GrZV%jC}f^fg0=F z{2Zn{l84eO4#-RKvv)7Qi_yy*_t;;qJ%8!_ah!JGuSYh_>+(-ui);8P7H7t}BF5hB z<67x(y%>|dVFDjL08P*mOsvi8c$J*EuQ?EiryIj literal 0 HcmV?d00001 diff --git a/images/edit_help.png b/images/edit_help.png new file mode 100644 index 0000000000000000000000000000000000000000..707e04a94caf3c80f973817c385acfb4cee185f6 GIT binary patch literal 3330 zcmV+d4gKKLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vFIcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya? z2D1z#2HOnI7(B%_ac?{wFUQ;QQA1tBKtrWrm0_3Rgps+?Jfqb{jYbcQX~taRB;#$y zZN{S}1|}gUOHJxc?wV3fxuz+mJ4`!F$IZ;mqRrNsHJd##*D~ju=bP7?-?v~|cv>vB zsJ6IeNwVZxrdjT`yl#bBIa#GxRa#xMMy;K#CDyyGyQdMSxlWT#tDe?p!?5wT$+oGt z8L;Kp2HUQ-ZMJ=3XJQv;x5ci*?vuTfeY$;({XGW_huIFR9a(?@3)XSs8O^N5RyOM=TTmp(3=8^+zpz2r)C z^>JO{deZfso3oq3?Wo(Y?l$ge?uXo;%ru`Vo>?<<(8I_>;8Eq#KMS9gFl*neeosSB zfoHYnBQIkwkyowPu(zdms`p{<7e4kra-ZWq<2*OsGTvEV%s0Td$hXT+!*8Bnh2KMe zBmZRodjHV?r+_5^X9J0WL4jKW`}lf%A-|44I@@LTvf1rHjG(ze6+w@Jt%Bvjts!X0 z?2xS?_ve_-kiKB_KiJlZ$9G`c^=E@oNG)mWWaNo-3TIW8)$Hg0Ub-~8?KhvJ>$ z3*&nim@mj(aCxE5!t{lw7O5^0EIO7zOo&c6l<+|iDySBWCGrz@C5{St!X3hAA}`T4 z(TLbXTq+(;@<=L8dXnssyft|w#WSTW<++3>sgS%(4NTpeI-VAqb|7ssJvzNHgOZVu zaYCvgO_R1~>SyL=cFU|~g|hy|Zi}}s9+d~lYqOB71z9Z$wnC=pR9Yz4DhIM>Wmjgu z&56o6maCpC&F##y%G;1PobR9i?GnNg;gYtchD%p19a!eQtZF&3JaKv33gZ<8D~47E ztUS1iwkmDaPpj=$m#%)jCVEY4fnLGNg2A-`YwHVD3gv};>)hAvT~AmqS>Lr``i7kw zJ{5_It`yrBmlc25DBO7E8;5VoznR>Ww5hAaxn$2~(q`%A-YuS64wkBy=9dm`4cXeX z4c}I@?e+FW+b@^RDBHV(wnMq2zdX3SWv9u`%{xC-q*U}&`cyXV(%rRT*Z6MH?i+i& z_B8C(+grT%{XWUQ+f@NoP1R=AW&26{v-dx)iK^-Nmiuj8txj!m?Z*Ss1N{dh4z}01 z)YTo*JycSU)+_5r4#yw9{+;i4Ee$peRgIj+;v;ZGdF1K$3E%e~4LaI(jC-u%2h$&R z9cLXcYC@Xwnns&bn)_Q~Te?roKGD|d-g^8;+aC{{G(1^(O7m37Y1-+6)01cN&y1aw zoqc{T`P^XJqPBbIW6s}d4{z_f5Om?vMgNQEJG?v2T=KYd^0M3I6IZxbny)%vZR&LD zJpPl@Psh8QyPB@KTx+@RdcC!KX7}kEo;S|j^u2lU7XQ}Oo;f|;z4Ll+_r>@1-xl3| zawq-H%e&ckC+@AhPrP6BKT#_XdT7&;F71j}Joy zkC~6lh7E@6o;W@^IpRNZ{ptLtL(gQ-CY~4mqW;US7Zxvm_|@yz&e53Bp_lTPlfP|z zrTyx_>lv@x#=^!PzR7qqF<$gm`|ZJZ+;<)Cqu&ot2z=0000WV@Og>004R=004l4008;_004mL004C`008P>0026e000+nl3&F} z0006lNkl%oraen zkC2iSi?*S05sDNb8Yf=lm1RpaDa;Z!0i@U_v87C7Yi1-LfBOE*jL=$Z3Np&8)e76T zky0|7&2j^#wZl2H`lI1Zc5CWdV`n^=~`dcDpSs1O1n z1OSW0B8IJ0Dww8;=XtsHY7|AWXG^6LwOS3|_j3t)uP%TDkWv;R8x(`Gkg!^7ic%N; z!=A0&W&!FtiucRIYp-8Oh9-bw@(Dgam`ebgrqq79QH;MISZKg#uou4@L93zZ)I}oD z)XKU}4BBZ6-uA@dO&i6BYk2iiG8_noX+4`vS&ieyZ|z4%Kv7Jt;VUq{QP~7o!X}PY zaBBUhM}Mdzd{afDD3wFbuP7o0(3xpjEiqfhs0bh5K(jdo1WQAA>FEP-6Y6 zbQ;+GCO3=m?Jj;^?m)qH(t`q&Q*@fNsv3fa7I^$jGCGz=tL%OtaeyULR?ypid3mdM zbC!8L#a%o}7ii@)7O;Af%R9w*sd=|NodP>;!JAeFsVfce(}CoweR|Kub9ubN{i(8P zn;EMo8TJ0sNg>N@a8}r&fEG{LLLC^hu3%?ZHi{zZ^?EJ=_cN6Q@O_^~qmfHkAq3@e z+!aXIb@4n8+qQG7Xt&#qi-KVo^!xqX-FMw9x__B0igZn1sMPgi0C>~Z9oTY4i~s-t M07*qoM6N<$g6tMBQvd(} literal 0 HcmV?d00001 diff --git a/images/ife_main_colour-300x59.jpg b/images/ife_main_colour-300x59.jpg new file mode 100644 index 0000000000000000000000000000000000000000..acc7ace18fa816093fa01dbf4f132a197298a1f4 GIT binary patch literal 6740 zcmbW5XIPU>x9@Ly7o{Urihw96(xgQ|O6W+F&_qNC2uSaVf{0QTDN2>ziAa+oMM?xj zq(hLB1Vl<8krp5%o9BJ^-sfEV(>`a-tobna%v|%Ed(B+`8OkhW88~mG57q~$r~rWK zECCcUpsssYPutr3u9~RF!)sno+&x4?Zpd91l@1Ps`g(|hjSNJMEc6USLzER{u8R5x zyFP{ng^Oy6-n!0AnFn+M8fxl)@|n?|WjaPWI$ByfW(Ed&MpkB4Ru*O!7PfO7=h@C( zILE?rp6C1pPA+b4ZdP_)J{~SU4lZu4e+HqVIqO49$3#cR#Kp$K#`XVfly2YxBcM)o zm4-?TpuRvwbAgJ|2Z)?O(oy}(fd4cq>a#i0GcYnSvz#?(IuB4&(a=!S()=^)v)0jP z-vQbSbR3s%Xw!3Ax-y9Qb16J~Q^+W;Q{TgVcMLCa^Fcri6EhDlAOA(k%Tm%ZR}__$ zRa9@O>E6-PH!uVnSy|iI+TF8B&YQye9wzadck$d00>+qmBoxt-gn!WfMfSe~i~0W|`){!S!-WD^X{gSA9?b;+ z1RPzFsq@GXPXU*_`DUXhkty|o`b$@DL47C^#I+8suqVoq1;Tj)ST;ZVJanZ1j;n9( z!9?xGy6`4T&(zEc%Qp%*_j5e!>T0*Mkw*6E+$~oMOW)CuTvRP0UB7q|3n>7d_GD0( zpwlc-z84aF7{9gV37f0b$akN$iuuF!G{Ju$RPcUokVxZ$KofUIYy5j3Nh$VM!+xeS z`+r~_x>WJyI;u&JQFrIAokkRJ5h(zACaIIhtJswAD7n(p?lDuc?_}KTbESgrj**p0 zb3~N`2Vy;erh6=`SNo?#Cw{Mf_=+>!a~_$I{N8a3O7q0BJp|JQ?og^F-aOblEs*P+ zE02CXH0pCz0sVVI-bULl8Gkc*sGHDg#<-GzIJxF&=gfPW3a>|`OK#^0H+ZO}#29YZ zS;qfn3(p8k>5x`jub4`je3)M~qG{Xd?BS!4oxV|R+7^%qt=(%*-2q9FE}?7vkdV{5 z<>2*GQZNIuj&Q z!jjc^lY?q7o7ztA%#%?cHDB=gj$5>LQxPpV77QXrq|x9xnWb$$EK6^)ywSnO#lqtx zNO{80(k+C6L%~P%7Qbsth#7dV;p!-_0SA88u>Uji{o+Y*L)&~kGNv27@zbWBtz@CG znF0iAsZxL!=ZHrXKqsnzsM1IQuv7a5Bu;UouAds02%JWfV?~o!mC)Y)oT|}j60Y_E zOboQb+Wirsxa1QfFAC7$@>|k7SQ>}{5bWXtVcL$ctRF9E~a{Ulx zK2s-VC^e;_Kl4dX*r?brXDDg+shR9=LKw-{E#12I<#THR+ZLEl=;MQrL=$E98*x_@ zd?AbE>>z_Vn_YR_=!sSs;vg1Z{z7qwnT6B8+@Ci;eNyghE^DJ{dMs9o*@2>LG%!jF*xOsQt}Zevw%8ze5gt4AHQec zHu!nJ`J{M~0z8DrLDqWU&yEe^H1w~%sP@+Uo)(?vqM)Hsv-zTXOE2ouNo15I0n`UV z@$7c zt5qqgGNNc{_)}uLMn#J^4zTMcgC75CGp=`I$US*Clh5_JYd*WC?55+)_oYu}sf6C%EZCI-tX84o^kv42 zJ$1gg)qCF*_|3ORhX;O`MqvqW55|aZ2*VilFoESy3lJzyR-0}hKNgoY58Er#C6{R} zCzqVNcOatfK$kdD-|)MVKcF-m5hoi;Zr02WtI=|aiz}2~XxAgzfxx?ZFsHB_G!o~H zcQAO{ze~(=>S$_oQCqz~J#X>%e1JVVi8*_MOev#5;u)P|=3uf$?T z2O^@h{5|Ps5ryCA^<2>I626v5(G&#+Ia$fPi|m{_C0;$gn1g+l-rxS!HWt+kOqz(v zZb<jkJ#^m>0DsE*=fVG;Z!lBK_d50v!2#ZVOv0=td5bq3tkCkEz%U3km0;PFhU8`DZlp&GPWYwg)vjwL1( zBPc+RZE#}pHSAcY$lUA(>u38NrOTg_+3Wg~S>Q`LohIX*iko9m&%8@Y&a$&`uz?RM5n4{;uoPfStb^ptQO6RW$GkCaJ`*nVE=o_s z_DR)vs3{y*{!0lzO5%1SgDJo>_?C$wDL^T^3ma@q`6E))7cuMQTgU2;Gl50T#Ta}AiR zmr8(M|ohH*v38jRs|`h)v#>mQIyg8=Y_KAJliiK ztCN35tg)%ZRt0Y$gQ$au!-*=*G;^ZNbfuz?U;(4A5FfX@kM>K^ecEvDUB9i?3NMHO z&J8VOXEau~m%}mwE#ztEt5M#~)aCanzGQQ}9Q}*nQsyjoS_9(@1NB;Y-z0A8O^O?S ze}h`js{i%N#Q$rJXWz=n^0^he7}yZJi30TPpj0rwP>$I=uiViBs;jMET4NUdl=*(# zxpDMDr*zndEUZ(H6okehw(##>{p>kWRYjSOY!=TcRZnK`wGz18>^Mhd7bLk?=l(<^ z^dtrC)(qxY^kt+!&=tK+kf!o1!6X2VmS6)epwUtf5RxuR0RH9cdR&0zKb|0cY{9U* zsxMuFSa%~_f}S0e)Rv10ko(-n_7s4&k^-c8WBpE8kQAUu4+gbc_akvslfj7Ot}S^H z@+VllS#EeI0wxy4N7O5cI)`V=dLE>n*j}qP4R#01=Q-bf7_cU3 zV_>!JY=s5QT6O2E5*z#p^e5IcV$)JzUYr)jggvJ=Jiq~bgUD|;M{6U>U%=F&K!nUD z?-Ea#+<23z{>DuSo`V^xYztoh`PtVUuW!-hT0PcMkJ6k9X44rM?LRi{pGvyvXf7BE zWTc3i)UfL_#kTwUr+7DW2Qn*p*lG*~EX*yAcIMfSTnRI3#G2XqJ9y7-Z+?ZT!vPF|3)+v=pBaU>rUZV)6jhE?N-eFDJw~$4NgRlt>EoEe3gQIh zO9O+}o%4Du7ydYIlWq31zEXhao!rD*=y!V}Owb$95a!Uq#>_O2?Z3AMA00}i#L^`6 z5Q|TA!gSF#&)<4o%;=aozY)^*@Sys-UEFWa!D|KE2GZ%N+X=HXT1sJ@y>{8bW!0E3 zSH7-UB;3Lk=cBDVd~X|o7Hp+}W~y4kz1&eD#*5_MnGp-tdAP zb%<;_v4FsCO0-{Q^XrG?l+Ojt+vT}Isl&Iqwq7cqV`=7!eB+q@l|8;wkieVR zgk#Xjfh2%Gyg(601+LVyHNEG~@x6}pWS-;yW1hvTFSgVdSP{&!JlIGq!BB}T+2-G3LxouJotPiRN&7VvAc+E8Xac=B zz8tTdTr%&imXD~J_ryCaEC__fj(n!~U|a$0PQI+`vfBnES;MX&$}z|*lbGC`d06>} z{h|&E(3`J7(9aRvjnbJ25@CgOOdmAgo%KQlubIkjS^MCTjhWK)H`5lX*c0JGQ8)34 zy^!DK6^pw5p`{XRa=B@78A<&erE7)v(=L$FRrkC;RaEvkb)xF>Z1XJgBK%`>^U`+8 zmm@T}M?DM9N2y?LBaNqhax2#~LAGG-6S;knVKK?>wDt_uC~LWjX!%lpS*z(_xH(lGIDX z3QW4D(Tl=EEO8!^=LFezxVP#3m$(xNp%~lt zyLWl6*0=t79#owoTvJy0cdjWqXndx#)9`Ms*^R(2(Eu21h+{<*j(ASkk3sx4M9c2aQ4INu7)Yp(K?EzgK&k?csiJO$@;C zq-fP49qpBy=brB4!03(YCV{$5o5NZv+p@!u=={`e4-f6Sn|&03<8e^5?TpE%wu!pn z3zc)T&hw5=FY_0CRk*}sTfg14QC--$B2RP{1~@h>3wYO=QIF;QBiq&u=8C~lWl(lJ zM!O{+yspzb1y$l9-`=z``(d~(T_$ zlFZ^C2((-W33Slatw(g0x?)D;HjswelB9LjdEfZ$cKD|!PZrLpDn>gucVZ_@^U=7< z^_^=`KQIZq_8=%IuD&NwHf;0GoG)6Ue>_criI!^6QC6r|9N2Zxk|g#n7cks|wzQ2V zD2`}N+)ez^kZBy(-*=DUyNQQP%(?AY@oYafC&fIK(3QUGacGlLdA2&Ip1-psacbF| z;WX#Otsmm_thL$r8*LWwzA$?J;q9BPX45MVpO`+_05yVQYhYqwR$q;)P>!P*b>)u6 zwgfapfkppg1#)pWw0WEze^ERRq3Omjg`0np5n;J#yt5qQda?Yxpny)%9Qc%UOy7ym@$P_d69XP61%4#iZ2F zfzA#DhOZHw2m%tV-vWKO3ym;1K+M!p3zznz37jiAr}O{QXWA79h!)U zawX8OD;DrCu9Fp8nj<4kIo3>5*opgwkmOti$(fS~u~*C*)DJwYbNaGzws?#amz!qnxfjqB3_;N#L6W z_;FMp>)TxB-Myb32KX5aTR{SQ%nr%LJrb>cjjz8A8GI zeErdEdI47bL%EI+Q}rcS^A;)P6&kBtl9%1o>4IPTe)hx#WAKJ?5z3$XX=oR9*F&9! zr&7NSOF)9BeiU+z%@>}5ShLb!FVELMlg%i3^ggn$ma_+C9pO6l_yIvLZn_w_{{bQc zS9f$-hl zi9UWN(~l- zy8P7-;qQA`#ILA~bYJ^fXE;c+5vvC^zEN%J)mj?4uNRfEdbg>`Cj|H;+6M~ei0=oxuWzix7-#>Z!YI0i#8#_s`Ut)l< zZDu>SqK9ie4Ai3gvw9OX+2l)RN1$O6uZI$24DU1Nrf6=idr6ajX2(8%kTGsIQL&wh`q)+v`S;HG2X-|0cg^=Fk`FP%@aa^uZ_E!ZP+%rw> z`kH7>;&}D?nn?+va`N5dN_0m7z*sa#WJm&Z`zK5uXc!4c|d?I{byxcxE zJdj$|-SW4sFd!uJ2H%`+ZdAfK*$sIJgBKiS6CvrngfPp&O?15nS(ZkSw7x_RuQ`kMJagk%{KSDOhha|Q2@lRGu8G!;k8Ap + + + + + SOCRATES Web + + + + +
+ + + + + diff --git a/sample-data-20-year.json b/sample-data-20-year.json new file mode 100644 index 0000000..8d81334 --- /dev/null +++ b/sample-data-20-year.json @@ -0,0 +1,164 @@ +{ + "soil": { + "soil_properties": 7, + "cec": 80, + "initial_oc": 1.2 + }, + "simulation": { + "start_year": 1963, + "period_length": 20, + "rotation_length": 3 + }, + "climate": { + "climate_method_data_entry": 1, + "average_annual_rainfall": 600, + "annual_mean_temperature": 16.7, + "randomize_rain_and_temperature": 0, + "annual_rainfall": [ + { + "rainfall": 1 + }, + { + "rainfall": 1 + } + ], + "month_rain_temp": [ + { + "rainfall": null, + "temperature": null + }, + { + "rainfall": null, + "temperature": null + } + ] + }, + "rotation": [ + { + "year": 1, + "plant": 6, + "stubble": null, + "graze": null, + "fertiliser": 0 + }, + { + "year": 2, + "plant": 0, + "stubble": 0, + "graze": null, + "fertiliser": 200 + }, + { + "year": 3, + "plant": 5, + "stubble": null, + "graze": 1, + "fertiliser": 0 + } + ], + "yields": { + "yields_method_data_entry": 0, + "annual_yields": [ + { + "year": 1963, + "rotation": "Fallow", + "yield": 0 + }, + { + "year": 1964, + "rotation": "Wheat", + "yield": 3311 + }, + { + "year": 1965, + "rotation": "Legume Pasture", + "yield": 3638 + }, + { + "year": 1966, + "rotation": "Fallow", + "yield": 0 + }, + { + "year": 1967, + "rotation": "Wheat", + "yield": 1195 + }, + { + "year": 1968, + "rotation": "Legume Pasture", + "yield": 7357 + }, + { + "year": 1969, + "rotation": "Fallow", + "yield": 0 + }, + { + "year": 1970, + "rotation": "Wheat", + "yield": 2724 + }, + { + "year": 1971, + "rotation": "Legume Pasture", + "yield": 3034 + }, + { + "year": 1972, + "rotation": "Fallow", + "yield": 0 + }, + { + "year": 1973, + "rotation": "Wheat", + "yield": 1682 + }, + { + "year": 1974, + "rotation": "Legume Pasture", + "yield": 5208 + }, + { + "year": 1975, + "rotation": "Fallow", + "yield": 0 + }, + { + "year": 1976, + "rotation": "Wheat", + "yield": 2912 + }, + { + "year": 1977, + "rotation": "Legume Pasture", + "yield": 2034 + }, + { + "year": 1978, + "rotation": "Fallow", + "yield": 0 + }, + { + "year": 1979, + "rotation": "Wheat", + "yield": 2238 + }, + { + "year": 1980, + "rotation": "Legume Pasture", + "yield": 1273 + }, + { + "year": 1981, + "rotation": "Fallow", + "yield": 0 + }, + { + "year": 1982, + "rotation": "Wheat", + "yield": 1768 + } + ] + } +} diff --git a/spa_github.js b/spa_github.js new file mode 100644 index 0000000..3bc48f2 --- /dev/null +++ b/spa_github.js @@ -0,0 +1,20 @@ +// Single Page Apps for GitHub Pages +// MIT License +// https://github.com/rafgraph/spa-github-pages +// This script checks to see if a redirect is present in the query string, +// converts it back into the correct url and adds it to the +// browser's history using window.history.replaceState(...), +// which won't cause the browser to attempt to load the new url. +// When the single page app is loaded further down in this file, +// the correct url will be waiting in the browser's history for +// the single page app to route accordingly. +(function (l) { + if (l.search[1] === '/') { + var decoded = l.search.slice(1).split('&').map(function (s) { + return s.replace(/~and~/g, '&'); + }).join('?'); + window.history.replaceState(null, null, + l.pathname.slice(0, -1) + decoded + l.hash + ); + } +}(window.location));