@tachybase/module-web 1.3.25 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  (function(){"use strict";try{if(typeof document!="undefined"){var a=document.createElement("style");a.id="@tachybase/module-web",a.appendChild(document.createTextNode(':root{--adm-radius-s: 4px;--adm-radius-m: 8px;--adm-radius-l: 12px;--adm-font-size-1: 9px;--adm-font-size-2: 10px;--adm-font-size-3: 11px;--adm-font-size-4: 12px;--adm-font-size-5: 13px;--adm-font-size-6: 14px;--adm-font-size-7: 15px;--adm-font-size-8: 16px;--adm-font-size-9: 17px;--adm-font-size-10: 18px;--adm-color-primary: #1677ff;--adm-color-success: #00b578;--adm-color-warning: #ff8f1f;--adm-color-danger: #ff3141;--adm-color-yellow: #ff9f18;--adm-color-orange: #ff6430;--adm-color-wathet: #e7f1ff;--adm-color-text: #333333;--adm-color-text-secondary: #666666;--adm-color-weak: #999999;--adm-color-light: #cccccc;--adm-color-border: #eeeeee;--adm-color-background: #ffffff;--adm-color-highlight: var(--adm-color-danger);--adm-color-white: #ffffff;--adm-color-box: #f5f5f5;--adm-color-text-light-solid: var(--adm-color-white);--adm-color-text-dark-solid: #000000;--adm-color-fill-content: var(--adm-color-box);--adm-font-size-main: var(--adm-font-size-5);--adm-font-family: -apple-system, blinkmacsystemfont, "Helvetica Neue", helvetica, segoe ui, arial, roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--adm-border-color: var(--adm-color-border)}html[data-prefers-color-scheme=dark]{--adm-color-primary: #3086ff;--adm-color-success: #34b368;--adm-color-warning: #ffa930;--adm-color-danger: #ff4a58;--adm-color-yellow: #ffa930;--adm-color-orange: #e65a2b;--adm-color-wathet: #0d2543;--adm-color-text: #e6e6e6;--adm-color-text-secondary: #b3b3b3;--adm-color-weak: #808080;--adm-color-light: #4d4d4d;--adm-color-border: #2b2b2b;--adm-color-box: #0a0a0a;--adm-color-background: #1a1a1a;--adm-color-background-body: var(--adm-color-background);--adm-border-color: var(--adm-color-border)}:root{-webkit-tap-highlight-color:rgba(0,0,0,0)}html{background-color:var(--adm-color-background-body)}body{color:var(--adm-color-text);font-size:var(--adm-font-size-main);font-family:var(--adm-font-family)}a,button{cursor:pointer}a{color:var(--adm-color-primary);transition:opacity ease-in-out .2s}a:active{opacity:.8}.adm-plain-anchor{color:unset;transition:none}.adm-plain-anchor:active{opacity:unset}body.adm-overflow-hidden{overflow:hidden!important}div.adm-px-tester{--size: 1;height:calc(var(--size) / 2 * 2px);width:0;position:fixed;left:-100vw;top:-100vh;-webkit-user-select:none;user-select:none;pointer-events:none}.adm-action-sheet-popup>.adm-popup-body{border-top-left-radius:8px;border-top-right-radius:8px;overflow:hidden}.adm-action-sheet-extra{display:flex;justify-content:center;color:var(--adm-color-weak);font-size:var(--adm-font-size-7);padding:18px 12px;border-bottom:1px solid var(--adm-color-border)}.adm-action-sheet-button-list,.adm-action-sheet-button-item-wrapper{border-bottom:1px solid var(--adm-color-border)}.adm-action-sheet-button-item-wrapper:last-child{border-bottom:none}.adm-action-sheet-button-item{text-align:center;display:block;background-color:var(--adm-color-background);padding:16px}.adm-action-sheet-button-item:active{background-color:var(--adm-color-border)}.adm-action-sheet-button-item-disabled{cursor:not-allowed;pointer-events:none;opacity:.4}.adm-action-sheet-button-item-name{color:var(--adm-color-text);font-size:var(--adm-font-size-10)}.adm-action-sheet-button-item-description{font-size:var(--adm-font-size-6);color:var(--adm-color-weak);padding-top:4px}.adm-action-sheet-button-item-danger .adm-action-sheet-button-item-name{color:var(--adm-color-danger)}.adm-action-sheet-button-item-bold .adm-action-sheet-button-item-name{font-weight:700}.adm-action-sheet-cancel{background-color:var(--adm-color-fill-content);padding-top:8px}.adm-popup{--z-index: var(--adm-popup-z-index, 1000);position:fixed;z-index:var(--z-index)}.adm-popup-body{position:fixed;background-color:var(--adm-color-background);z-index:calc(var(--z-index) + 10)}.adm-popup-body .adm-popup-close-icon{position:absolute;z-index:100}.adm-popup-body-position-bottom{width:100%;bottom:0;left:0}.adm-popup-body-position-bottom .adm-popup-close-icon{right:8px;top:8px}.adm-popup-body-position-top{width:100%;top:0;left:0}.adm-popup-body-position-top .adm-popup-close-icon{right:8px;bottom:8px}.adm-popup-body-position-left{height:100%;top:0;left:0}.adm-popup-body-position-left .adm-popup-close-icon{right:8px;top:8px}.adm-popup-body-position-right{height:100%;top:0;right:0}.adm-popup-body-position-right .adm-popup-close-icon{left:8px;top:8px}.adm-popup-close-icon{cursor:pointer;padding:4px;font-size:18px;line-height:1;color:var(--adm-color-weak)}.adm-mask{--z-index: var(--adm-mask-z-index, 1000);position:fixed;top:0;left:0;z-index:var(--z-index);display:block;width:100%;height:100%}.adm-mask-aria-button{position:absolute;top:0;left:0;z-index:0;width:100%;height:100%;pointer-events:none}.adm-mask-content{z-index:1}.adm-safe-area{--multiple: var(--adm-safe-area-multiple, 1);display:block;width:100%}.adm-safe-area-position-top{padding-top:calc(env(safe-area-inset-top) * var(--multiple))}.adm-safe-area-position-bottom{padding-bottom:calc(env(safe-area-inset-bottom) * var(--multiple))}.adm-auto-center{display:flex;justify-content:center}.adm-auto-center-content{flex:0 1 auto}.adm-image{--width: var(--adm-image-width, auto);--height: var(--adm-image-height, auto);width:var(--width);height:var(--height);display:block;overflow:hidden}.adm-image-img{width:100%;height:100%}.adm-image-tip{position:relative;background-color:var(--adm-color-fill-content);height:100%;min-height:24px;min-width:24px}.adm-image-tip>svg{width:24px;height:24px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:var(--adm-color-weak)}.adm-badge-wrapper{display:inline-block;position:relative}.adm-badge{display:inline-flex;vertical-align:middle;box-sizing:content-box;border-radius:100px;background-color:var(--color);--right: 0;--top: 0;--color: var(--adm-badge-color, var(--adm-color-highlight))}.adm-badge-content{color:var(--adm-color-text-light-solid);box-sizing:border-box;min-width:8px;padding:1px 4px;font-size:var(--adm-font-size-1);line-height:12px;white-space:nowrap;font-weight:400;text-align:center}.adm-badge-fixed{position:absolute;right:var(--right);top:var(--top);transform:translate(50%,-50%)}.adm-badge-dot{min-width:10px;width:10px;height:10px;border-radius:5px}.adm-badge-bordered{border:solid 1px var(--adm-color-text-light-solid)}.adm-button{--color: var(--adm-color-text-light-solid);--text-color: var(--adm-button-text-color, var(--adm-color-text));--background-color: var(--adm-button-background-color, var(--adm-color-background));--border-radius: var(--adm-button-border-radius, 4px);--border-width: var(--adm-button-border-width, 1px);--border-style: var(--adm-button-border-style, solid);--border-color: var(--adm-button-border-color, var(--adm-color-border));color:var(--text-color);background-color:var(--background-color);position:relative;display:inline-block;box-sizing:border-box;height:auto;padding:7px 12px;margin:0;font-size:var(--adm-font-size-9);line-height:1.4;text-align:center;border:var(--border-width) var(--border-style) var(--border-color);border-radius:var(--border-radius);cursor:pointer;transition:opacity ease .15s;-webkit-user-select:none;user-select:none}.adm-button:focus{outline:none}.adm-button:before{position:absolute;top:0;left:0;transform:translate(calc(var(--border-width) * -1),calc(var(--border-width) * -1));width:100%;height:100%;background-color:var(--adm-color-text-dark-solid);border:var(--border-width) var(--border-style) var(--adm-color-text-dark-solid);border-radius:var(--border-radius);opacity:0;content:" ";box-sizing:content-box}.adm-button:active:before{opacity:.08}.adm-button-default.adm-button-fill-outline{--background-color: transparent;--border-color: var(--adm-color-text)}.adm-button-default.adm-button-fill-none{--background-color: transparent;--border-width: 0px}.adm-button:not(.adm-button-default){--text-color: var(--adm-color-text-light-solid);--background-color: var(--color);--border-color: var(--color)}.adm-button:not(.adm-button-default).adm-button-fill-outline{--text-color: var(--color);--background-color: transparent}.adm-button:not(.adm-button-default).adm-button-fill-none{--text-color: var(--color);--background-color: transparent;--border-width: 0px}.adm-button-primary{--color: var(--adm-color-primary)}.adm-button-success{--color: var(--adm-color-success)}.adm-button-danger{--color: var(--adm-color-danger)}.adm-button-warning{--color: var(--adm-color-warning)}.adm-button-block{display:block;width:100%}.adm-button-disabled{cursor:not-allowed;opacity:.4}.adm-button-disabled:active:before{display:none}.adm-button.adm-button-mini{padding-top:3px;padding-bottom:3px;font-size:var(--adm-font-size-main)}.adm-button.adm-button-mini.adm-button-shape-rounded{padding-left:9px;padding-right:9px}.adm-button.adm-button-small{padding-top:3px;padding-bottom:3px;font-size:var(--adm-font-size-7)}.adm-button.adm-button-large{padding-top:11px;padding-bottom:11px;font-size:var(--adm-font-size-10)}.adm-button.adm-button-shape-rounded{--border-radius: 1000px}.adm-button.adm-button-shape-rectangular{--border-radius: 0}.adm-button-loading{vertical-align:bottom}.adm-button-loading-wrapper{display:flex;height:1.4em;align-items:center;justify-content:center}.adm-button-loading-wrapper>.adm-loading{opacity:.6}.adm-dot-loading{display:inline-block}.adm-calendar .adm-calendar-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding-top:4px}.adm-calendar .adm-calendar-header a.adm-calendar-arrow-button{padding:4px 8px;display:block;flex:none}.adm-calendar .adm-calendar-header a.adm-calendar-arrow-button svg{height:22px}.adm-calendar .adm-calendar-header a.adm-calendar-arrow-button.adm-calendar-arrow-button-right svg{transform:rotate(180deg)}.adm-calendar .adm-calendar-header .adm-calendar-title{font-size:var(--adm-font-size-10);flex:auto;text-align:center}.adm-calendar .adm-calendar-body{display:flex;flex-wrap:wrap}.adm-calendar-cells{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:stretch;padding:8px 8px 4px}.adm-calendar-cell{flex:none;box-sizing:border-box;width:calc(100% / 7);height:48px;margin-bottom:4px;padding:2px;color:var(--adm-color-text);cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}.adm-calendar-cell.adm-calendar-cell-today{color:var(--adm-color-primary)}.adm-calendar-cell.adm-calendar-cell-disabled,.adm-calendar-cell.adm-calendar-cell-disabled .adm-calendar-cell-bottom{color:var(--adm-color-light)}.adm-calendar-cell.adm-calendar-cell-selected.adm-calendar-cell.adm-calendar-cell-selected{background:var(--adm-color-primary);color:var(--adm-color-white)}.adm-calendar-cell.adm-calendar-cell-selected .adm-calendar-cell-bottom{color:var(--adm-color-white)}.adm-calendar-cell.adm-calendar-cell-selected.adm-calendar-cell.adm-calendar-cell-selected-begin{border-top-left-radius:4px;border-bottom-left-radius:4px}.adm-calendar-cell.adm-calendar-cell-selected.adm-calendar-cell.adm-calendar-cell-selected-end{border-top-right-radius:4px;border-bottom-right-radius:4px}.adm-calendar-cell.adm-calendar-cell-disabled.adm-calendar-cell.adm-calendar-cell-selected{color:var(--adm-color-light)}.adm-calendar-cell .adm-calendar-cell-top{flex:none;font-size:var(--adm-font-size-10)}.adm-calendar-cell .adm-calendar-cell-bottom{flex:none;font-size:var(--adm-font-size-4);height:12px;line-height:12px;color:var(--adm-color-weak)}.adm-calendar-mark{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;border-bottom:solid 1px var(--adm-color-border);height:45px;box-sizing:border-box;font-size:var(--adm-font-size-7);padding:0 8px}.adm-calendar-mark .adm-calendar-mark-cell{flex:1;text-align:center}.adm-divider-horizontal{display:flex;align-items:center;margin:16px 0;border-width:0;border-color:var(--adm-color-border);border-style:solid;color:var(--adm-color-weak);font-size:14px}.adm-divider-left.adm-divider-horizontal:before{max-width:10%}.adm-divider-right.adm-divider-horizontal:after{max-width:10%}.adm-divider-horizontal:after,.adm-divider-horizontal:before{flex:auto;display:block;content:"";border-style:inherit;border-color:inherit;border-width:1px 0 0}.adm-divider-horizontal .adm-divider-content{flex:none;padding:0 16px}.adm-divider-vertical{position:relative;top:-.06em;display:inline-block;height:.9em;margin:0 16px;vertical-align:middle;border-top:0;border-left:1px solid var(--adm-color-border)}.adm-scroll-mask{position:absolute;top:0;bottom:0;z-index:1;width:30px;height:100%;pointer-events:none}.adm-scroll-mask-left{left:0;background:linear-gradient(to right,var(--adm-color-background),rgba(255,255,255,0))}.adm-scroll-mask-right{right:0;background:linear-gradient(to left,var(--adm-color-background),rgba(255,255,255,0))}.adm-picker{--header-button-font-size: var(--adm-font-size-7);--title-font-size: var(--adm-font-size-7);--item-font-size: var(--adm-font-size-8);--item-height: 34px;width:100%;height:300px;overflow:hidden;position:relative;display:flex;flex-direction:column;---item-font-size: var(--item-font-size);---item-height: var(--item-height)}.adm-picker .adm-picker-view.adm-picker-view{--item-font-size: var(---item-font-size);--item-height: var(---item-height)}.adm-picker-header{flex-shrink:0;border-bottom:solid 1px var(--adm-color-border);display:flex;justify-content:space-between;align-items:center;padding:4px}.adm-picker-header-button{font-size:var(--header-button-font-size);display:inline-block;padding:8px}.adm-picker-header-button-disabled,.adm-picker-header-button-disabled:active{opacity:.4;cursor:not-allowed}.adm-picker-header-title{padding:4px;font-size:var(--title-font-size);color:var(--adm-color-text);text-align:center;flex:1}.adm-picker-body{flex:1;width:100%;height:100%}.adm-picker-body>.adm-picker-view{--height: 100%}.adm-picker-popup .adm-popup-body{border-top-left-radius:8px;border-top-right-radius:8px}.adm-spin-loading{--color: var(--adm-color-weak);--size: 32px;width:var(--size);height:var(--size)}.adm-spin-loading-svg{width:100%;height:100%;animation:adm-spin-loading-rotate .8s infinite linear}.adm-spin-loading-svg>.adm-spin-loading-fill{stroke:var(--color)}@keyframes adm-spin-loading-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.adm-picker-view{--height: 240px;--item-height: 34px;--item-font-size: var(--adm-font-size-8);height:var(--height);width:100%;display:flex;position:relative;overflow:hidden;background:var(--adm-color-background)}.adm-picker-view-column{height:100%;flex:1;-webkit-user-select:none;user-select:none;touch-action:none;position:relative;z-index:0}.adm-picker-view-column-wheel{width:100%;cursor:-webkit-grab;cursor:grab;position:absolute;top:calc(50% - var(--item-height) / 2);left:0}.adm-picker-view-column-wheel:before{content:" ";display:block;position:absolute;width:100%;height:100vh;top:-100vh}.adm-picker-view-column-wheel:after{content:" ";display:block;position:absolute;width:100%;height:100vh;bottom:-100vh}.adm-picker-view-column-item{font-size:var(--item-font-size);padding:0 6px;height:var(--item-height);display:flex;justify-content:center;align-items:center}.adm-picker-view-column-item-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.adm-picker-view-column-accessible{width:100%;height:100%;pointer-events:none;opacity:0;display:flex;flex-direction:column;position:relative;top:calc(var(--item-height) * -1);z-index:0;padding-bottom:1px}.adm-picker-view-column-accessible>*{flex:1;text-overflow:ellipsis}.adm-picker-view-column-accessible-current{position:absolute;width:100%;height:100%}.adm-picker-view-column-accessible-button{width:100%;height:100%}.adm-picker-view-mask{position:absolute;z-index:10000;left:0;top:0;width:100%;height:100%;display:flex;flex-direction:column;pointer-events:none}.adm-picker-view-mask-top,.adm-picker-view-mask-bottom{flex:auto}.adm-picker-view-mask-middle{height:var(--item-height);box-sizing:border-box;flex:none;border-top:solid 1px var(--adm-color-border);border-bottom:solid 1px var(--adm-color-border)}.adm-picker-view-mask-top{background:var(--adm-color-background);-webkit-mask:linear-gradient(0deg,rgba(0,0,0,.6) 0%,rgba(0,0,0,.8) 50%,#000000 100%);mask:linear-gradient(0deg,rgba(0,0,0,.6) 0%,rgba(0,0,0,.8) 50%,#000000 100%)}.adm-picker-view-mask-bottom{background:var(--adm-color-background);-webkit-mask:linear-gradient(180deg,rgba(0,0,0,.6) 0%,rgba(0,0,0,.8) 50%,#000000 100%);mask:linear-gradient(180deg,rgba(0,0,0,.6) 0%,rgba(0,0,0,.8) 50%,#000000 100%)}.adm-picker-view-loading-content{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.adm-picker-view-item-height-measure{position:relative;left:0;top:0;height:var(--item-height);width:0;pointer-events:none}.adm-cascader-view{--height: auto}.adm-cascader-view-tabs.adm-tabs{--title-font-size: var(--adm-font-size-6);--content-padding: none}.adm-cascader-view-header-title{max-width:84px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.adm-cascader-view-content{height:var(--height);overflow-y:auto}.adm-cascader-view-content>.adm-check-list{--border-inner: none;--border-bottom: none;--border-top: none}.adm-cascader-view-item{font-size:var(--adm-font-size-6)}.adm-cascader-view-item-active{color:var(--adm-color-primary)}.adm-cascader-view .adm-list-inner{margin-bottom:0}.adm-cascader-view-skeleton{padding:16px 12px}.adm-cascader-view-skeleton .adm-skeleton{margin-bottom:16px;--height: 18px;--width: 80%;--border-radius: 2px}.adm-cascader-view-skeleton .adm-skeleton.adm-cascader-view-skeleton-line-3{--width: 90%}.adm-cascader-view-skeleton .adm-skeleton.adm-cascader-view-skeleton-line-4{--width: 60%}.adm-tabs{--title-font-size: var(--adm-font-size-9);--content-padding: 12px;--active-line-height: 2px;--active-line-border-radius: var(--active-line-height);--active-line-color: var(--adm-color-primary);--active-title-color: var(--adm-color-primary);position:relative;min-width:0}.adm-tabs-header{position:relative;border-bottom:solid 1px var(--adm-color-border)}.adm-tabs-tab-list{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:center;position:relative;overflow-x:scroll;scrollbar-width:none}.adm-tabs-tab-list::-webkit-scrollbar{display:none}.adm-tabs-tab-wrapper{padding:0 12px}.adm-tabs-tab-wrapper-stretch{flex:auto}.adm-tabs-tab{white-space:nowrap;padding:8px 0 10px;width:-webkit-min-content;width:min-content;margin:0 auto;font-size:var(--title-font-size);position:relative;cursor:pointer}.adm-tabs-tab-active{color:var(--active-title-color)}.adm-tabs-tab-disabled{opacity:.5;cursor:not-allowed}.adm-tabs-tab-line{position:absolute;bottom:0;height:var(--active-line-height);background:var(--active-line-color);border-radius:var(--active-line-border-radius)}.adm-tabs-content{padding:var(--content-padding)}.adm-tabs-header-mask{position:absolute;top:0;bottom:0;z-index:1;width:30px;height:100%;pointer-events:none}.adm-tabs-header-mask-left{left:0;background:linear-gradient(to right,var(--adm-color-background),rgba(255,255,255,0))}.adm-tabs-header-mask-right{right:0;background:linear-gradient(to left,var(--adm-color-background),rgba(255,255,255,0))}.adm-check-list-item-extra{font-size:var(--adm-font-size-10);line-height:1;color:var(--adm-color-primary)}.adm-check-list-item-readonly{cursor:unset}.adm-list{--header-font-size: var(--adm-font-size-7);--prefix-width: "auto";--prefix-padding-right: 12px;--align-items: center;--active-background-color: var(--adm-color-border);--border-inner: solid 1px var(--adm-color-border);--border-top: solid 1px var(--adm-color-border);--border-bottom: solid 1px var(--adm-color-border);--padding-left: 12px;--padding-right: 12px;--font-size: var(--adm-font-size-9);--extra-max-width: 70%}.adm-list-header{color:var(--adm-color-weak);font-size:var(--header-font-size);padding:8px var(--padding-right) 8px var(--padding-left)}.adm-list-body{background-color:var(--adm-color-background);overflow:hidden;font-size:var(--font-size)}.adm-list-body-inner{margin-top:-1px}.adm-list-default .adm-list-body{border-top:var(--border-top);border-bottom:var(--border-bottom)}.adm-list-card{margin:12px}.adm-list-card .adm-list-body{border-radius:8px}.adm-list-card .adm-list-header{padding-left:0}.adm-list-item{display:block;padding-left:var(--padding-left);position:relative;background-color:var(--adm-color-background);line-height:1.5}.adm-list-item-title,.adm-list-item-description{color:var(--adm-color-weak);font-size:var(--adm-font-size-main)}.adm-list-item-content{display:flex;align-items:var(--align-items);justify-content:flex-start;border-top:var(--border-inner);padding-right:var(--padding-right)}.adm-list-item-content-prefix{width:var(--prefix-width);flex:none;padding-right:var(--prefix-padding-right)}.adm-list-item-content-main{flex:auto;padding:12px 0}.adm-list-item-content-extra{flex:none;padding-left:12px;font-size:var(--adm-font-size-7);color:var(--adm-color-weak);max-width:var(--extra-max-width)}.adm-list-item-content-arrow{flex:none;display:flex;align-items:center;margin-left:4px;color:var(--adm-color-light);font-size:19px}.adm-list-item-disabled{cursor:not-allowed}.adm-list-item-disabled.adm-list-item-disabled>.adm-list-item-content>*{opacity:.4;pointer-events:none}a.adm-list-item:active:not(.adm-list-item-disabled){background-color:var(--active-background-color)}a.adm-list-item:active:not(.adm-list-item-disabled):after{content:" ";display:block;position:absolute;width:100%;bottom:-1px;left:0;border-bottom:var(--border-inner)}.adm-skeleton{--width: 100%;--height: 0;--border-radius: 0;background-color:#bebebe33;border-radius:var(--border-radius);width:var(--width);height:var(--height);display:block}.adm-skeleton.adm-skeleton-animated{background:linear-gradient(90deg,#bebebe33 25%,#8181813d 37%,#bebebe33 63%);background-size:400% 100%;animation:adm-skeleton-loading 1.4s ease infinite}.adm-skeleton.adm-skeleton-title{--width: 45%;--height: 32px;--border-radius: 2px;margin-bottom:16px;margin-top:16px}.adm-skeleton.adm-skeleton-paragraph-line{--height: 18px;--border-radius: 2px;margin-top:12px;margin-bottom:12px}.adm-skeleton.adm-skeleton-paragraph-line:last-child{--width: 65%}@keyframes adm-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.adm-checkbox{--icon-size: 22px;--font-size: var(--adm-font-size-9);--gap: 8px;display:inline-flex;vertical-align:text-bottom;justify-content:flex-start;align-items:center;cursor:pointer}.adm-checkbox input{display:none}.adm-checkbox .adm-checkbox-icon{flex:none;border:1px solid var(--adm-color-light);border-radius:var(--icon-size);box-sizing:border-box;width:var(--icon-size);height:var(--icon-size);color:var(--adm-color-text-light-solid)}.adm-checkbox .adm-checkbox-icon>svg{display:block;width:100%;height:100%}.adm-checkbox.adm-checkbox-block{display:flex}.adm-checkbox.adm-checkbox-checked .adm-checkbox-icon{border-color:var(--adm-color-primary);background-color:var(--adm-color-primary)}.adm-checkbox.adm-checkbox-disabled{cursor:not-allowed}.adm-checkbox.adm-checkbox-disabled .adm-checkbox-content{opacity:.4}.adm-checkbox.adm-checkbox-disabled .adm-checkbox-icon.adm-checkbox-icon{color:var(--adm-color-light);border-color:var(--adm-color-light);background-color:var(--adm-color-fill-content)}.adm-checkbox .adm-checkbox-custom-icon{font-size:var(--icon-size)}.adm-checkbox.adm-checkbox-indeterminate .adm-checkbox-icon{background-color:var(--adm-color-background);color:var(--adm-color-primary)}.adm-checkbox-content{flex:0 1 auto;font-size:var(--font-size);padding-left:var(--gap)}.adm-error-block{--color: var(--adm-color-text);--image-height: var(--adm-error-block-image-height, 100px);--image-height-full-page: var(--adm-error-block-image-height-full-page, 200px);--image-width: var(--adm-error-block-image-width, auto);--image-width-full-page: var(--adm-error-block-image-width-full-page, auto);box-sizing:border-box;text-align:center}.adm-error-block-image{height:var(--image-height);width:var(--image-width);max-width:100%}.adm-error-block-image svg,.adm-error-block-image img{height:100%}.adm-error-block-description{font-size:var(--adm-font-size-4);color:var(--adm-color-weak);line-height:1.4;margin-top:12px}.adm-error-block-description-title{font-size:var(--adm-font-size-7)}.adm-error-block-description-subtitle{margin-top:8px}.adm-error-block-content{margin-top:12px}.adm-error-block-full-page{padding-top:calc(50vh - var(--image-height-full-page))}.adm-error-block-full-page .adm-error-block-image{height:var(--image-height-full-page);width:var(--image-width-full-page)}.adm-error-block-full-page .adm-error-block-description{margin-top:20px;font-size:var(--adm-font-size-main)}.adm-error-block-full-page .adm-error-block-description-title{font-size:20px;color:var(--adm-color-text)}.adm-grid{--gap: 0;--gap-horizontal: var(--gap);--gap-vertical: var(--gap);display:grid;grid-gap:10px;-webkit-column-gap:var(--gap-horizontal);column-gap:var(--gap-horizontal);row-gap:var(--gap-vertical);grid-template-columns:repeat(var(--columns),minmax(0,1fr));align-items:stretch}.adm-grid-item{grid-column-end:span var(--item-span)}.adm-image-viewer-content{width:100vw;height:100vh;touch-action:none;-webkit-user-select:none;user-select:none}.adm-image-viewer-footer{position:absolute;width:100%;bottom:0;z-index:1}.adm-image-viewer-slides{height:100%;position:relative;z-index:1;cursor:-webkit-grab;cursor:grab;touch-action:none}.adm-image-viewer-slides-inner{height:100%;white-space:nowrap}.adm-image-viewer-slides-inner>*{margin-right:16px}.adm-image-viewer-slide{position:relative;width:100%;height:100%;display:inline-block}.adm-image-viewer-control{position:absolute;z-index:1;left:0;top:0;width:100%;height:100%;cursor:-webkit-grab;cursor:grab;touch-action:none}.adm-image-viewer-image-wrapper{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.adm-image-viewer-image-wrapper img{display:block;max-width:100%;max-height:100%}.adm-image-viewer-indicator{position:absolute;z-index:2;left:50%;top:12px;transform:translate(-50%);color:var(--adm-color-border);font-size:var(--adm-font-size-6)}.adm-space-item{flex:none}.adm-space{display:inline-flex;--gap: 8px;--gap-vertical: var(--gap);--gap-horizontal: var(--gap)}.adm-space-vertical{flex-direction:column}.adm-space-vertical>.adm-space-item{margin-bottom:var(--gap-vertical)}.adm-space-vertical>.adm-space-item:last-child{margin-bottom:0}.adm-space-horizontal{flex-direction:row}.adm-space-horizontal>.adm-space-item{margin-right:var(--gap-horizontal)}.adm-space-horizontal>.adm-space-item:last-child{margin-right:0}.adm-space-horizontal.adm-space-wrap{flex-wrap:wrap;margin-bottom:calc(var(--gap-vertical) * -1)}.adm-space-horizontal.adm-space-wrap>.adm-space-item{padding-bottom:var(--gap-vertical)}.adm-space.adm-space-block{display:flex}.adm-space-align-center{align-items:center}.adm-space-align-start{align-items:flex-start}.adm-space-align-end{align-items:flex-end}.adm-space-align-baseline{align-items:baseline}.adm-space-justify-center{justify-content:center}.adm-space-justify-start{justify-content:flex-start}.adm-space-justify-end{justify-content:flex-end}.adm-space-justify-between{justify-content:space-between}.adm-space-justify-around{justify-content:space-around}.adm-space-justify-evenly{justify-content:space-evenly}.adm-space-justify-stretch{justify-content:stretch}.adm-image-uploader{--cell-size: 80px;--gap: 12px;---gap: var(--gap);---gap-horizontal: var(--gap-horizontal, var(--gap));---gap-vertical: var(--gap-vertical, var(--gap))}.adm-image-uploader-grid,.adm-image-uploader-space{--gap: var(---gap);--gap-horizontal: var(---gap-horizontal);--gap-vertical: var(---gap-vertical)}.adm-image-uploader-cell{position:relative;width:var(--cell-size);height:var(--cell-size);border-radius:4px;overflow:hidden}.adm-image-uploader-cell-fail{border:red solid 1px;box-sizing:border-box}.adm-image-uploader-cell-delete{position:absolute;top:0;right:0;width:14px;height:14px;background-color:#000000b3;border-radius:0 0 0 12px;font-size:8px;color:var(--adm-color-white);cursor:pointer}.adm-image-uploader-cell-delete-icon{position:absolute;left:4px;top:3px}.adm-image-uploader-cell-mask{position:absolute;top:0;right:0;bottom:0;left:0;color:var(--adm-color-white);background-color:#323233e0}.adm-image-uploader-cell-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;box-sizing:border-box;padding-top:8px}.adm-image-uploader-cell-mask-message{display:inline-block;padding:6px 4px;font-size:var(--adm-font-size-4)}.adm-image-uploader-cell-image{width:var(--cell-size);height:var(--cell-size)}.adm-image-uploader-upload-button-wrap{position:relative}.adm-image-uploader-upload-button-wrap .adm-image-uploader-upload-button{background-color:var(--adm-color-box);text-align:center;line-height:var(--cell-size);display:block}.adm-image-uploader-upload-button-wrap .adm-image-uploader-upload-button-icon{color:var(--adm-color-weak);font-size:32px}.adm-image-uploader-upload-button-wrap .adm-image-uploader-input{cursor:pointer;position:absolute;opacity:0;left:0;top:0;width:100%;height:100%;border-radius:4px}.adm-image-uploader .adm-image-uploader-gap-measure{position:absolute;left:0;top:0;height:var(--gap-horizontal);width:0}.adm-input{--font-size: var(--adm-font-size-9);--color: var(--adm-color-text);--placeholder-color: var(--adm-color-light);--text-align: left;--background-color: transparent;display:flex;justify-content:flex-start;align-items:center;width:100%;max-width:100%;max-height:100%;min-height:24px;background-color:var(--background-color)}.adm-input-disabled{opacity:.4;cursor:not-allowed}.adm-input-element{flex:auto;display:inline-block;box-sizing:border-box;width:100%;max-width:100%;max-height:100%;padding:0;margin:0;color:var(--color);font-size:var(--font-size);line-height:1.5;background:transparent;border:0;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;min-height:1.5em;text-align:var(--text-align)}.adm-input-element::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit}.adm-input-element::placeholder{color:var(--placeholder-color);font-family:inherit}.adm-input-element:-webkit-autofill{background-color:transparent}.adm-input-element:read-only{cursor:default}.adm-input-element:invalid{box-shadow:none}.adm-input-element::-ms-clear{display:none}.adm-input-element::-ms-reveal{display:none}.adm-input-element::-webkit-search-cancel-button{display:none}.adm-input-element::-webkit-search-decoration{display:none}.adm-input-element:disabled{opacity:1}.adm-input-element[type=date],.adm-input-element[type=time],.adm-input-element[type=datetime-local]{min-height:1.5em}.adm-input-element[type=search]{-webkit-appearance:none}.adm-input-element[readonly]{pointer-events:none}.adm-input-clear{flex:none;margin-left:8px;color:var(--adm-color-light);padding:4px;cursor:pointer}.adm-input-clear:active{color:var(--adm-color-weak)}.adm-input-clear .antd-mobile-icon{display:block;font-size:var(--adm-font-size-7)}.adm-jumbo-tabs{--gap: 8px;position:relative;min-width:0}.adm-jumbo-tabs-header{position:relative;border-bottom:solid 1px var(--adm-color-border)}.adm-jumbo-tabs-tab-list{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:center;position:relative;overflow-x:scroll;padding:0 var(--gap);scrollbar-width:none}.adm-jumbo-tabs-tab-list::-webkit-scrollbar{display:none}.adm-jumbo-tabs-tab-wrapper{flex:auto;padding:0 calc(var(--gap) / 2);text-align:center}.adm-jumbo-tabs-tab{display:flex;flex-direction:column;align-items:center;position:relative;width:-webkit-min-content;width:min-content;margin:0 auto;padding:12px 0;cursor:pointer;font-size:var(--adm-font-size-9);white-space:nowrap}.adm-jumbo-tabs-tab-title{line-height:24px;padding:0 4px}.adm-jumbo-tabs-tab-description{width:-webkit-min-content;width:min-content;padding:0 8px;border-radius:10px;color:var(--adm-color-weak);font-size:var(--adm-font-size-main);background-color:var(--adm-color-fill-content)}.adm-jumbo-tabs-tab-active{color:var(--adm-color-primary)}.adm-jumbo-tabs-tab-active .adm-jumbo-tabs-tab-description{color:var(--adm-color-text-light-solid);background-color:var(--adm-color-primary)}.adm-jumbo-tabs-tab-disabled{opacity:.5;cursor:not-allowed}.adm-jumbo-tabs-content{padding:12px}.adm-nav-bar{--height: 45px;--border-bottom: none;display:flex;align-items:center;height:var(--height);border-bottom:var(--border-bottom);padding:0 12px;white-space:nowrap}.adm-nav-bar-left,.adm-nav-bar-right{flex:1}.adm-nav-bar-title{flex:auto;text-align:center;overflow:hidden;text-overflow:ellipsis}.adm-nav-bar-back{display:flex;align-items:center;margin-right:16px;padding:6px 0;cursor:pointer}.adm-nav-bar-back-arrow{font-size:24px;margin-right:4px}.adm-nav-bar-left{font-size:var(--adm-font-size-7);display:flex;justify-content:flex-start;align-items:center}.adm-nav-bar-title{justify-content:center;white-space:nowrap;font-size:var(--adm-font-size-10);padding:0 12px}.adm-nav-bar-right{text-align:right}.adm-page-indicator{display:flex;width:auto;--dot-color: var(--adm-color-light);--active-dot-color: var(--adm-color-primary);--dot-size: 3px;--active-dot-size: 13px;--dot-border-radius: 1px;--active-dot-border-radius: var(--dot-border-radius);--dot-spacing: 3px}.adm-page-indicator-dot{display:block;width:var(--dot-size);height:var(--dot-size);border-radius:var(--dot-border-radius);background:var(--dot-color)}.adm-page-indicator-dot:last-child{margin-right:0}.adm-page-indicator-dot-active{border-radius:var(--active-dot-border-radius);background:var(--active-dot-color)}.adm-page-indicator-color-white{--dot-color: rgba(255, 255, 255, .5);--active-dot-color: var(--adm-color-text-light-solid)}.adm-page-indicator-horizontal{flex-direction:row}.adm-page-indicator-horizontal .adm-page-indicator-dot{margin-right:var(--dot-spacing)}.adm-page-indicator-horizontal .adm-page-indicator-dot-active{width:var(--active-dot-size)}.adm-page-indicator-vertical{flex-direction:column}.adm-page-indicator-vertical .adm-page-indicator-dot{margin-bottom:var(--dot-spacing)}.adm-page-indicator-vertical .adm-page-indicator-dot-active{height:var(--active-dot-size)}.adm-radio{--icon-size: 22px;--font-size: var(--adm-font-size-9);--gap: 8px;display:inline-flex;vertical-align:text-bottom;justify-content:flex-start;align-items:center;cursor:pointer}.adm-radio input[type=radio]{display:none}.adm-radio .adm-radio-icon{flex:none;border:1px solid var(--adm-color-light);border-radius:var(--icon-size);box-sizing:border-box;width:var(--icon-size);height:var(--icon-size);color:var(--adm-color-text-light-solid)}.adm-radio .adm-radio-icon>svg{display:block;width:100%;height:100%}.adm-radio.adm-radio-block{display:flex}.adm-radio.adm-radio-checked .adm-radio-icon{border-color:var(--adm-color-primary);background-color:var(--adm-color-primary)}.adm-radio.adm-radio-disabled{cursor:not-allowed}.adm-radio.adm-radio-disabled .adm-radio-content{opacity:.4}.adm-radio.adm-radio-disabled .adm-radio-icon{color:var(--adm-color-light);border-color:var(--adm-color-light);background-color:var(--adm-color-fill-content)}.adm-radio .adm-radio-custom-icon{font-size:var(--icon-size)}.adm-radio-content{flex:0 1 auto;font-size:var(--font-size);padding-left:var(--gap)}.adm-search-bar{--height: 32px;--padding-left: 8px;--background: var(--adm-color-fill-content);--border-radius: 6px;--placeholder-color: var(--adm-color-weak);---placeholder-color: var(--placeholder-color);display:flex;justify-content:center;align-items:center;height:var(--height)}.adm-search-bar .adm-search-bar-input-box{flex:auto;background:var(--background);border-radius:var(--border-radius);border:solid 1px transparent;display:flex;justify-content:center;align-items:center;padding-left:var(--padding-left)}.adm-search-bar .adm-search-bar-input-box .adm-search-bar-input-box-icon{flex:none;color:var(--adm-color-light);font-size:var(--adm-font-size-8)}.adm-search-bar .adm-search-bar-input-box .adm-search-bar-input{flex:auto;padding:4px 8px 4px 4px;height:calc(var(--height) - 2px);box-sizing:border-box}.adm-search-bar .adm-search-bar-input-box .adm-search-bar-input.adm-input{--placeholder-color: var(---placeholder-color);--font-size: var(--adm-font-size-7)}.adm-search-bar .adm-search-bar-input-box .adm-search-bar-input .adm-input-element{line-height:19px}.adm-search-bar .adm-search-bar-input-box .adm-search-bar-input.adm-search-bar-input-without-icon{padding-left:8px}.adm-search-bar .adm-search-bar-suffix{flex:none;margin-left:4px}.adm-search-bar .adm-search-bar-cancel-button.adm-button{padding:3px 12px}.adm-search-bar-active .adm-input.adm-input.adm-input{--placeholder-color: var(--adm-color-light)}.adm-search-bar-active .adm-search-bar-input-box{border-color:var(--adm-color-primary);background:var(--adm-color-background)}.adm-swiper{--height: auto;--width: 100%;--border-radius: 0;--track-padding: 0;--slide-size: 100%;--track-offset: 0%;display:block;width:var(--width);height:var(--height);position:relative;border-radius:var(--border-radius);z-index:0;overflow:hidden}.adm-swiper-track{width:100%;height:100%;white-space:nowrap;padding:var(--track-padding)}.adm-swiper-track-allow-touch-move{cursor:-webkit-grab;cursor:grab}.adm-swiper-track-inner{width:100%;height:100%;overflow:visible;position:relative;display:flex;flex-wrap:nowrap}.adm-swiper-slide,.adm-swiper-slide-placeholder{width:100%;height:100%;display:block;position:relative;white-space:unset;flex:none}.adm-swiper-item{display:block;width:100%;height:100%;white-space:normal}.adm-swiper-horizontal .adm-swiper-track-allow-touch-move{touch-action:pan-y}.adm-swiper-horizontal .adm-swiper-indicator{position:absolute;bottom:6px;left:50%;transform:translate(-50%)}.adm-swiper-horizontal .adm-swiper-track{transform:translate(var(--track-offset))}.adm-swiper-horizontal .adm-swiper-track-inner{flex-direction:row;width:var(--slide-size)}.adm-swiper-vertical .adm-swiper-track-allow-touch-move{touch-action:pan-x}.adm-swiper-vertical .adm-swiper-indicator{position:absolute;right:6px;top:50%;transform:translateY(-50%)}.adm-swiper-vertical .adm-swiper-track{transform:translateY(var(--track-offset))}.adm-swiper-vertical .adm-swiper-track-inner{flex-direction:column;height:var(--slide-size)}.adm-tab-bar-wrap{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;min-height:48px}.adm-tab-bar-item{flex:1;color:var(--adm-color-text-secondary);white-space:nowrap;padding:4px 8px;width:-webkit-min-content;width:min-content;position:relative;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-direction:column}.adm-tab-bar-item-icon{font-size:24px;height:24px;line-height:1}.adm-tab-bar-item-title{font-size:var(--adm-font-size-2);line-height:15px}.adm-tab-bar-item-title-with-icon{margin-top:2px}.adm-tab-bar-item-active{color:var(--adm-color-primary)}.adm-tab-bar-icon-badge{--top: 6px}.adm-tab-bar-title-badge{--right: -2px;--top: -2px}.adm-tag{--border-radius: var(--adm-tag-border-radius, 2px);padding:2px 4px;font-size:var(--adm-font-size-3);line-height:1;font-weight:400;background:var(--background-color);color:var(--text-color);display:inline-block;white-space:nowrap;border-radius:var(--border-radius);border:1px solid var(--border-color);box-sizing:border-box}.adm-tag-round{border-radius:100px}.adm-text-area{--font-size: var(--adm-font-size-9);--color: var(--adm-color-text);--placeholder-color: var(--adm-color-light);--disabled-color: var(--adm-color-weak);--text-align: left;--count-text-align: right;position:relative;width:100%;max-width:100%;max-height:100%}.adm-text-area-element{font-family:var(--adm-font-family);resize:none;flex:auto;display:block;box-sizing:border-box;width:100%;max-width:100%;max-height:100%;padding:0;margin:0;color:var(--color);font-size:var(--font-size);line-height:1.5;background:transparent;border:0;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;min-height:1.5em;text-align:var(--text-align)}.adm-text-area-element::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit}.adm-text-area-element::placeholder{color:var(--placeholder-color);font-family:inherit}.adm-text-area-element:-webkit-autofill{background-color:transparent}.adm-text-area-element:disabled{color:var(--disabled-color);cursor:not-allowed;opacity:1;-webkit-text-fill-color:var(--disabled-color)}.adm-text-area-element:read-only{cursor:default}.adm-text-area-element:invalid{box-shadow:none}.adm-text-area-element::-ms-clear{display:none}.adm-text-area-element-hidden{visibility:hidden;position:absolute;top:0;left:0;z-index:-1000}.adm-text-area-count{text-align:var(--count-text-align);color:var(--adm-color-weak);font-size:var(--adm-font-size-9);padding-top:8px}.adm-toast-mask .adm-toast-wrap{position:fixed;top:0;left:0;width:100%;height:100%;text-align:center}.adm-toast-mask .adm-toast-main{display:inline-block;position:relative;top:50%;transform:translateY(-50%);width:auto;max-width:204px;max-height:70%;overflow:auto;color:#fff;word-break:break-all;background-color:#000000b3;border-radius:8px;pointer-events:all;font-size:var(--adm-font-size-7);line-height:1.5;box-sizing:border-box;text-align:initial}.adm-toast-mask .adm-toast-main-text{padding:12px;min-width:0}.adm-toast-mask .adm-toast-main-icon{padding:35px 12px;min-width:150px}.adm-toast-mask .adm-toast-main-icon .adm-toast-icon{text-align:center;margin-bottom:8px;font-size:36px;line-height:1}.adm-toast-loading{--size: 48px;margin:0 auto 8px}')),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- (function(W,p){typeof exports=="object"&&typeof module!="undefined"?p(exports,require("react/jsx-runtime"),require("@tachybase/client"),require("react-router-dom"),require("react"),require("react-dom"),require("@ant-design/icons"),require("antd"),require("react-i18next"),require("@tachybase/schema"),require("ahooks"),require("lodash"),require("@tego/client"),require("dayjs")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@tachybase/client","react-router-dom","react","react-dom","@ant-design/icons","antd","react-i18next","@tachybase/schema","ahooks","lodash","@tego/client","dayjs"],p):(W=typeof globalThis!="undefined"?globalThis:W||self,p(W["@tachybase/module-web"]={},W.jsxRuntime,W["@tachybase/client"],W["react-router-dom"],W.react,W["react-dom"],W["@ant-design/icons"],W.antd,W["react-i18next"],W["@tachybase/schema"],W.ahooks,W.lodash,W["@tego/client"],W.dayjs))})(this,function(W,p,m,R,i,Tt,Ve,se,We,_,H,Fe,Ue,J){"use strict";var Rp=Object.defineProperty,eh=Object.defineProperties;var th=Object.getOwnPropertyDescriptors;var Mo=Object.getOwnPropertySymbols;var Bl=Object.prototype.hasOwnProperty,Vl=Object.prototype.propertyIsEnumerable;var Ll=(W,p,m)=>p in W?Rp(W,p,{enumerable:!0,configurable:!0,writable:!0,value:m}):W[p]=m,T=(W,p)=>{for(var m in p||(p={}))Bl.call(p,m)&&Ll(W,m,p[m]);if(Mo)for(var m of Mo(p))Vl.call(p,m)&&Ll(W,m,p[m]);return W},U=(W,p)=>eh(W,th(p));var us=(W,p)=>{var m={};for(var R in W)Bl.call(W,R)&&p.indexOf(R)<0&&(m[R]=W[R]);if(W!=null&&Mo)for(var R of Mo(W))p.indexOf(R)<0&&Vl.call(W,R)&&(m[R]=W[R]);return m};var ae=(W,p,m)=>new Promise((R,i)=>{var Tt=We=>{try{se(m.next(We))}catch(_){i(_)}},Ve=We=>{try{se(m.throw(We))}catch(_){i(_)}},se=We=>We.done?R(We.value):Promise.resolve(We.value).then(Tt,Ve);se((m=m.apply(W,p)).next())});function ds(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const Z=ds(i),zl=ds(Tt),Zl=({children:t})=>{const e=i.useRef(),[n,o]=i.useState(1);return i.useEffect(()=>{const r=new ResizeObserver(a=>{const l=a[0].target,u=l.parentNode.offsetWidth,d=l.offsetWidth,f=u/d;o(g=>{if(f<1)return f;if(g<1)return 1})}),s=e.current;return r.observe(s),()=>r.unobserve(s)},[]),p.jsx("div",{className:"auto-scaling-text",style:{transition:"transform 0.5s ease",transform:`scale(${n},${n})`},ref:e,children:t})},jl=n=>{var o=n,{value:t}=o,e=us(o,["value"]);const r=navigator.language||"en-US";let s=parseFloat(t).toLocaleString(r,{useGrouping:!0,maximumFractionDigits:6});const a=t.match(/\.\d*?(0*)$/);return a&&(s+=/[1-9]/.test(a[0])?a[1]:a[0]),p.jsx("div",U(T({},e),{className:"calculator-display",children:p.jsx(Zl,{children:s})}))},he=o=>{var r=o,{onPress:t,className:e}=r,n=us(r,["onPress","className"]);return p.jsx("button",T({onClick:t,className:`calculator-key ${e}`},n))},fs=m.createStyles(({css:t})=>({container:t`
2
+ (function(W,p){typeof exports=="object"&&typeof module!="undefined"?p(exports,require("react/jsx-runtime"),require("@tachybase/client"),require("react-router-dom"),require("react"),require("react-dom"),require("@ant-design/icons"),require("antd"),require("react-i18next"),require("@tachybase/schema"),require("ahooks"),require("lodash"),require("@tego/client"),require("dayjs")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@tachybase/client","react-router-dom","react","react-dom","@ant-design/icons","antd","react-i18next","@tachybase/schema","ahooks","lodash","@tego/client","dayjs"],p):(W=typeof globalThis!="undefined"?globalThis:W||self,p(W["@tachybase/module-web"]={},W.jsxRuntime,W["@tachybase/client"],W["react-router-dom"],W.react,W["react-dom"],W["@ant-design/icons"],W.antd,W["react-i18next"],W["@tachybase/schema"],W.ahooks,W.lodash,W["@tego/client"],W.dayjs))})(this,function(W,p,m,R,i,Tt,Ve,se,We,_,H,Fe,Ue,J){"use strict";var Rp=Object.defineProperty,eh=Object.defineProperties;var th=Object.getOwnPropertyDescriptors;var Mo=Object.getOwnPropertySymbols;var Bl=Object.prototype.hasOwnProperty,Vl=Object.prototype.propertyIsEnumerable;var Ll=(W,p,m)=>p in W?Rp(W,p,{enumerable:!0,configurable:!0,writable:!0,value:m}):W[p]=m,T=(W,p)=>{for(var m in p||(p={}))Bl.call(p,m)&&Ll(W,m,p[m]);if(Mo)for(var m of Mo(p))Vl.call(p,m)&&Ll(W,m,p[m]);return W},U=(W,p)=>eh(W,th(p));var us=(W,p)=>{var m={};for(var R in W)Bl.call(W,R)&&p.indexOf(R)<0&&(m[R]=W[R]);if(W!=null&&Mo)for(var R of Mo(W))p.indexOf(R)<0&&Vl.call(W,R)&&(m[R]=W[R]);return m};var le=(W,p,m)=>new Promise((R,i)=>{var Tt=We=>{try{se(m.next(We))}catch(_){i(_)}},Ve=We=>{try{se(m.throw(We))}catch(_){i(_)}},se=We=>We.done?R(We.value):Promise.resolve(We.value).then(Tt,Ve);se((m=m.apply(W,p)).next())});function ds(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const Z=ds(i),zl=ds(Tt),Zl=({children:t})=>{const e=i.useRef(),[n,o]=i.useState(1);return i.useEffect(()=>{const r=new ResizeObserver(a=>{const l=a[0].target,u=l.parentNode.offsetWidth,d=l.offsetWidth,f=u/d;o(g=>{if(f<1)return f;if(g<1)return 1})}),s=e.current;return r.observe(s),()=>r.unobserve(s)},[]),p.jsx("div",{className:"auto-scaling-text",style:{transition:"transform 0.5s ease",transform:`scale(${n},${n})`},ref:e,children:t})},jl=n=>{var o=n,{value:t}=o,e=us(o,["value"]);const r=navigator.language||"en-US";let s=parseFloat(t).toLocaleString(r,{useGrouping:!0,maximumFractionDigits:6});const a=t.match(/\.\d*?(0*)$/);return a&&(s+=/[1-9]/.test(a[0])?a[1]:a[0]),p.jsx("div",U(T({},e),{className:"calculator-display",children:p.jsx(Zl,{children:s})}))},he=o=>{var r=o,{onPress:t,className:e}=r,n=us(r,["onPress","className"]);return p.jsx("button",T({onClick:t,className:`calculator-key ${e}`},n))},fs=m.createStyles(({css:t})=>({container:t`
3
3
  position: fixed;
4
4
  top: 50%;
5
5
  left: 50%;
@@ -118,11 +118,11 @@
118
118
  .calculator .operator-keys {
119
119
  background: linear-gradient(to bottom, rgba(252, 156, 23, 1) 0%, rgba(247, 126, 27, 1) 100%);
120
120
  }
121
- `})),ms={"/":(t,e)=>t/e,"*":(t,e)=>t*e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"=":(t,e)=>e},Kl=i.forwardRef(({className:t},e)=>{const[n,o]=i.useState(null),[r,s]=i.useState("0"),[a,l]=i.useState(null),[c,u]=i.useState(!1),d=()=>{o(null),s("0"),l(null),u(!1)},f=()=>{s("0")},g=()=>{s(r.substring(0,r.length-1)||"0")},b=()=>{const C=parseFloat(r)*-1;s(String(C))},x=()=>{if(parseFloat(r)===0)return;const w=r.replace(/^-?\d*\.?/,""),E=parseFloat(r)/100;s(String(E.toFixed(w.length+2)))},y=()=>{/\./.test(r)||(s(r+"."),u(!1))},h=C=>{c?(s(String(C)),u(!1)):s(r==="0"?String(C):r+C)},v=C=>{const w=parseFloat(r);if(n==null)o(w);else if(a){const E=n||0,I=ms[a](E,w);o(I),s(String(I))}u(!0),l(C)};i.useEffect(()=>{const C=w=>{let{key:E}=w;E==="Enter"&&(E="="),/\d/.test(E)?(w.preventDefault(),h(parseInt(E,10))):E in ms?(w.preventDefault(),v(E)):E==="."?(w.preventDefault(),y()):E==="%"?(w.preventDefault(),x()):E==="Backspace"?(w.preventDefault(),g()):E==="Clear"&&(w.preventDefault(),r!=="0"?f():d())};return document.addEventListener("keydown",C),()=>{document.removeEventListener("keydown",C)}});const k=r!=="0",S=k?"C":"AC";return p.jsxs("div",{className:"calculator",ref:e,children:[p.jsx(jl,{value:r}),p.jsxs("div",{className:"calculator-keypad",children:[p.jsxs("div",{className:"input-keys",children:[p.jsxs("div",{className:"function-keys",children:[p.jsx(he,{className:"key-clear",onPress:()=>k?f():d(),children:S}),p.jsx(he,{className:"key-sign",onPress:()=>b(),children:"±"}),p.jsx(he,{className:"key-percent",onPress:()=>x(),children:"%"})]}),p.jsxs("div",{className:"digit-keys",children:[p.jsx(he,{className:"key-0",onPress:()=>h(0),children:"0"}),p.jsx(he,{className:"key-dot",onPress:()=>y(),children:"●"}),p.jsx(he,{className:"key-1",onPress:()=>h(1),children:"1"}),p.jsx(he,{className:"key-2",onPress:()=>h(2),children:"2"}),p.jsx(he,{className:"key-3",onPress:()=>h(3),children:"3"}),p.jsx(he,{className:"key-4",onPress:()=>h(4),children:"4"}),p.jsx(he,{className:"key-5",onPress:()=>h(5),children:"5"}),p.jsx(he,{className:"key-6",onPress:()=>h(6),children:"6"}),p.jsx(he,{className:"key-7",onPress:()=>h(7),children:"7"}),p.jsx(he,{className:"key-8",onPress:()=>h(8),children:"8"}),p.jsx(he,{className:"key-9",onPress:()=>h(9),children:"9"})]})]}),p.jsxs("div",{className:"operator-keys",children:[p.jsx(he,{className:"key-divide",onPress:()=>v("/"),children:"÷"}),p.jsx(he,{className:"key-multiply",onPress:()=>v("*"),children:"×"}),p.jsx(he,{className:"key-subtract",onPress:()=>v("-"),children:"−"}),p.jsx(he,{className:"key-add",onPress:()=>v("+"),children:"+"}),p.jsx(he,{className:"key-equals",onPress:()=>v("="),children:"="})]})]})]})}),Wl=i.forwardRef((t,e)=>{const{styles:n}=fs();return p.jsx(Kl,{ref:e,className:n.container})}),Ul=({children:t,updateTransform:e=(n,o,r,s)=>{s.style.transform=n}})=>{const n=i.useRef(),o=i.useRef({startX:0,startY:0,dx:0,dy:0,tx:0,ty:0});i.useEffect(()=>{const s=n.current;if(!s)return;const a=u=>{u.button===0&&(document.addEventListener("mousemove",l),o.current.startX=u.pageX-o.current.dx,o.current.startY=u.pageY-o.current.dy)},l=u=>{const d=u.pageX-o.current.startX,f=u.pageY-o.current.startY,g=`translate(${d}px,${f}px)`;e(g,d,f,s),o.current.dx=d,o.current.dy=f},c=u=>{document.removeEventListener("mousemove",l)};return s.addEventListener("mousedown",a),document.addEventListener("mouseup",c),()=>{s.removeEventListener("mousedown",a),document.removeEventListener("mouseup",c)}},[e]);const r=U(T({},t.props.style),{cursor:"move",userSelect:"none"});return i.cloneElement(i.Children.only(t),{ref:n,style:r})},ps=i.createContext({}),Hl=()=>i.useContext(ps),ql=({children:t})=>{const[e,n]=i.useState(!1),{styles:o}=fs();return p.jsxs(ps.Provider,{value:{visible:e,setVisible:n},children:[t,e?Tt.createPortal(p.jsx("div",{className:o.container,children:p.jsx(Ul,{children:p.jsx(Wl,{})})}),document.body):null]})},Gl=()=>{const{visible:t,setVisible:e}=Hl();return p.jsx(se.FloatButton,{type:t?"primary":"default",icon:p.jsx(Ve.CalculatorOutlined,{}),onClick:()=>{e(n=>!n)}})},Yl=t=>p.jsx(m.PinnedPluginListProvider,{items:{ca:{order:300,component:"CalculatorButton",pin:!0,isPublic:!0,belongTo:"hoverbutton"}},children:p.jsx(m.SchemaComponentOptions,{components:{CalculatorButton:Gl},children:t.children})});class Xl extends m.Plugin{load(){return ae(this,null,function*(){this.app.use(Yl),this.app.use(ql)})}}const Jl=()=>{const{designable:t,setDesignable:e}=m.useDesignable();return m.useHotkeys("Ctrl+Shift+U",()=>e(!t),[t]),p.jsx(se.FloatButton,{icon:p.jsx(m.Icon,{type:"Design"}),type:t?"primary":"default",onClick:()=>e(!t)})},Ql=t=>p.jsx(m.PinnedPluginListProvider,{items:{db:{order:60,component:"DesignableButton",pin:!0,snippet:"ui.*",belongTo:"hoverbutton"}},children:p.jsx(m.SchemaComponentOptions,{components:{DesignableButton:Jl},children:t.children})});class Rl extends m.Plugin{load(){return ae(this,null,function*(){this.app.use(Ql)})}}const hs=i.createContext({open:!1,setOpen:t=>{}}),ec=({children:t})=>{const[e,n]=i.useState(!1);return p.jsxs(hs.Provider,{value:{open:e,setOpen:n},children:[t,p.jsx(nc,{open:e,setOpen:n})]})},tc=()=>i.useContext(hs),nc=({open:t,setOpen:e})=>{const n=i.useRef();i.useEffect(()=>{t&&n.current&&setTimeout(()=>{n.current.focus()},0)},[t,n]);const o=()=>{e(!1)},r=()=>{e(!1)};return p.jsx(se.Modal,{title:p.jsx(se.Input,{style:{width:"100%"},autoFocus:!0,ref:n}),closable:!1,open:t,onOk:o,onCancel:r,footer:null,children:p.jsx("p",{})})},oc=()=>{const{setOpen:t}=tc();return m.useHotkeys("Ctrl+K",()=>t(e=>!e),[]),m.useHotkeys("Cmd+K",()=>t(e=>!e),[]),p.jsx(se.FloatButton,{icon:p.jsx(Ve.SearchOutlined,{}),onClick:()=>t(!0)})},rc=t=>p.jsx(m.PinnedPluginListProvider,{items:{saj:{order:30,component:"SearchAndJumpButton",pin:!0,snippet:"pm.*",belongTo:"hoverbutton"}},children:p.jsx(m.SchemaComponentOptions,{components:{SearchAndJumpButton:oc},children:t.children})});class sc extends m.Plugin{load(){return ae(this,null,function*(){this.app.use(rc),this.app.use(ec)})}}const No="client";function at(t){return m.i18n.t(t,{ns:No})}function lt(t){return`{{t('${t}', { ns: '${No}', nsMode: 'fallback' })}}`}const He=(t,e=!0)=>e?m.tval(t,{ns:No}):m.tval(t),ic=new m.SchemaInitializer({name:"mobilePage:addBlock",title:'{{t("Add block")}}',icon:"PlusOutlined",wrap:m.gridRowColWrap,items:[{name:"dataBlocks",type:"itemGroup",title:'{{t("Data blocks")}}',children:[{name:"gridCard",type:"item",title:'{{t("Grid Card")}}',Component:"GridCardBlockInitializer"},{name:"table",title:'{{t("Table")}}',Component:"TableBlockInitializer"},{name:"form",title:'{{t("Form")}}',Component:"FormBlockInitializer"},{name:"details",title:'{{t("Details")}}',Component:"DetailsBlockInitializer"},{name:"calendar",title:'{{t("Calendar")}}',Component:"CalendarBlockInitializer"},{name:"mapBlock",title:lt("Map"),Component:"MapBlockInitializer"},{title:He("Swiper"),name:"swiper",type:"item",Component:"SwiperBlockInitializer"},{title:"notice",name:"notice",type:"item",Component:"NoticeBlockInitializer"},{name:"chartV2",title:'{{t("Charts")}}',Component:"ChartV2BlockInitializer"}]},{name:"otherBlocks",type:"itemGroup",title:'{{t("Other blocks")}}',children:[{name:"menu",title:lt("Menu"),Component:"MMenuBlockInitializer"},{name:"markdown",title:He("Demonstration text"),Component:"MarkdownBlockInitializer"},{name:"settings",title:lt("Settings"),Component:"MSettingsBlockInitializer"}]},{name:"filterBlocks",type:"itemGroup",title:'{{t("Filter blocks")}}',children:[{name:"tabSearch",title:He("TabSearch"),Component:"TabSearchBlockInitializer"},{name:"imageSearch",title:He("ImageSearch"),icon:"tab-search",Component:"ImageSearchInitializer"}]}]}),ac=()=>{const t=m.useSchemaInitializerItem(),{insert:e}=m.useSchemaInitializer();return p.jsx(m.SchemaInitializerItem,T({icon:p.jsx(Ve.MenuOutlined,{}),onClick:()=>ae(null,null,function*(){e({type:"void","x-component":"MMenu","x-designer":"MMenu.Designer","x-component-props":{}})})},t))},Mt=!!(typeof window!="undefined"&&typeof document!="undefined"&&window.document&&window.document.createElement);Mt&&document.addEventListener("touchstart",()=>{},!0);function vt(t,e,n,o){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(d){try{u(o.next(d))}catch(f){a(f)}}function c(d){try{u(o.throw(d))}catch(f){a(f)}}function u(d){d.done?s(d.value):r(d.value).then(l,c)}u((o=o.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Te="${label}不是一个有效的${type}",lc={current:{locale:{locale:"zh-CH",common:{confirm:"确定",cancel:"取消",loading:"加载中",close:"关闭"},Calendar:{title:"日期选择",confirm:"确认",start:"开始",end:"结束",today:"今日",markItems:["一","二","三","四","五","六","日"],yearAndMonth:"${year}年${month}月"},Cascader:{placeholder:"请选择"},Dialog:{ok:"我知道了"},DatePicker:{tillNow:"至今"},ErrorBlock:{default:{title:"页面遇到一些小问题",description:"待会来试试"},busy:{title:"前方拥堵",description:"刷新试试"},disconnected:{title:"网络有点忙",description:"动动手指帮忙修复"},empty:{title:"没有找到你需要的东西",description:"找找其他的吧"}},Form:{required:"必填",optional:"选填",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:Te,method:Te,array:Te,object:Te,number:Te,date:Te,boolean:Te,integer:Te,float:Te,regexp:Te,email:Te,url:Te,hex:Te},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},ImageUploader:{uploading:"上传中...",upload:"上传"},InfiniteScroll:{noMore:"没有更多了",failedToLoad:"加载失败",retry:"重新加载"},Input:{clear:"清除"},Mask:{name:"背景蒙层"},Modal:{ok:"我知道了"},PasscodeInput:{name:"密码输入框"},PullToRefresh:{pulling:"下拉刷新",canRelease:"释放立即刷新",complete:"刷新成功"},SearchBar:{name:"搜索框"},Slider:{name:"滑动输入条"},Stepper:{decrease:"减少",increase:"增加"},Switch:{name:"开关"},Selector:{name:"选择组"}}}};function cc(){return lc.current}const uc=i.createContext(null);function Ie(){var t;return(t=i.useContext(uc))!==null&&t!==void 0?t:cc()}function ye(t,e){const n=t;for(const o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);return n}function Nt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Oo={exports:{}};/*!
121
+ `})),ms={"/":(t,e)=>t/e,"*":(t,e)=>t*e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"=":(t,e)=>e},Kl=i.forwardRef(({className:t},e)=>{const[n,o]=i.useState(null),[r,s]=i.useState("0"),[a,l]=i.useState(null),[c,u]=i.useState(!1),d=()=>{o(null),s("0"),l(null),u(!1)},f=()=>{s("0")},g=()=>{s(r.substring(0,r.length-1)||"0")},b=()=>{const C=parseFloat(r)*-1;s(String(C))},x=()=>{if(parseFloat(r)===0)return;const w=r.replace(/^-?\d*\.?/,""),E=parseFloat(r)/100;s(String(E.toFixed(w.length+2)))},y=()=>{/\./.test(r)||(s(r+"."),u(!1))},h=C=>{c?(s(String(C)),u(!1)):s(r==="0"?String(C):r+C)},v=C=>{const w=parseFloat(r);if(n==null)o(w);else if(a){const E=n||0,I=ms[a](E,w);o(I),s(String(I))}u(!0),l(C)};i.useEffect(()=>{const C=w=>{let{key:E}=w;E==="Enter"&&(E="="),/\d/.test(E)?(w.preventDefault(),h(parseInt(E,10))):E in ms?(w.preventDefault(),v(E)):E==="."?(w.preventDefault(),y()):E==="%"?(w.preventDefault(),x()):E==="Backspace"?(w.preventDefault(),g()):E==="Clear"&&(w.preventDefault(),r!=="0"?f():d())};return document.addEventListener("keydown",C),()=>{document.removeEventListener("keydown",C)}});const k=r!=="0",S=k?"C":"AC";return p.jsxs("div",{className:"calculator",ref:e,children:[p.jsx(jl,{value:r}),p.jsxs("div",{className:"calculator-keypad",children:[p.jsxs("div",{className:"input-keys",children:[p.jsxs("div",{className:"function-keys",children:[p.jsx(he,{className:"key-clear",onPress:()=>k?f():d(),children:S}),p.jsx(he,{className:"key-sign",onPress:()=>b(),children:"±"}),p.jsx(he,{className:"key-percent",onPress:()=>x(),children:"%"})]}),p.jsxs("div",{className:"digit-keys",children:[p.jsx(he,{className:"key-0",onPress:()=>h(0),children:"0"}),p.jsx(he,{className:"key-dot",onPress:()=>y(),children:"●"}),p.jsx(he,{className:"key-1",onPress:()=>h(1),children:"1"}),p.jsx(he,{className:"key-2",onPress:()=>h(2),children:"2"}),p.jsx(he,{className:"key-3",onPress:()=>h(3),children:"3"}),p.jsx(he,{className:"key-4",onPress:()=>h(4),children:"4"}),p.jsx(he,{className:"key-5",onPress:()=>h(5),children:"5"}),p.jsx(he,{className:"key-6",onPress:()=>h(6),children:"6"}),p.jsx(he,{className:"key-7",onPress:()=>h(7),children:"7"}),p.jsx(he,{className:"key-8",onPress:()=>h(8),children:"8"}),p.jsx(he,{className:"key-9",onPress:()=>h(9),children:"9"})]})]}),p.jsxs("div",{className:"operator-keys",children:[p.jsx(he,{className:"key-divide",onPress:()=>v("/"),children:"÷"}),p.jsx(he,{className:"key-multiply",onPress:()=>v("*"),children:"×"}),p.jsx(he,{className:"key-subtract",onPress:()=>v("-"),children:"−"}),p.jsx(he,{className:"key-add",onPress:()=>v("+"),children:"+"}),p.jsx(he,{className:"key-equals",onPress:()=>v("="),children:"="})]})]})]})}),Wl=i.forwardRef((t,e)=>{const{styles:n}=fs();return p.jsx(Kl,{ref:e,className:n.container})}),Ul=({children:t,updateTransform:e=(n,o,r,s)=>{s.style.transform=n}})=>{const n=i.useRef(),o=i.useRef({startX:0,startY:0,dx:0,dy:0,tx:0,ty:0});i.useEffect(()=>{const s=n.current;if(!s)return;const a=u=>{u.button===0&&(document.addEventListener("mousemove",l),o.current.startX=u.pageX-o.current.dx,o.current.startY=u.pageY-o.current.dy)},l=u=>{const d=u.pageX-o.current.startX,f=u.pageY-o.current.startY,g=`translate(${d}px,${f}px)`;e(g,d,f,s),o.current.dx=d,o.current.dy=f},c=u=>{document.removeEventListener("mousemove",l)};return s.addEventListener("mousedown",a),document.addEventListener("mouseup",c),()=>{s.removeEventListener("mousedown",a),document.removeEventListener("mouseup",c)}},[e]);const r=U(T({},t.props.style),{cursor:"move",userSelect:"none"});return i.cloneElement(i.Children.only(t),{ref:n,style:r})},ps=i.createContext({}),Hl=()=>i.useContext(ps),ql=({children:t})=>{const[e,n]=i.useState(!1),{styles:o}=fs();return p.jsxs(ps.Provider,{value:{visible:e,setVisible:n},children:[t,e?Tt.createPortal(p.jsx("div",{className:o.container,children:p.jsx(Ul,{children:p.jsx(Wl,{})})}),document.body):null]})},Gl=()=>{const{visible:t,setVisible:e}=Hl();return p.jsx(se.FloatButton,{type:t?"primary":"default",icon:p.jsx(Ve.CalculatorOutlined,{}),onClick:()=>{e(n=>!n)}})},Yl=t=>p.jsx(m.PinnedPluginListProvider,{items:{ca:{order:300,component:"CalculatorButton",pin:!0,isPublic:!0,belongTo:"hoverbutton"}},children:p.jsx(m.SchemaComponentOptions,{components:{CalculatorButton:Gl},children:t.children})});class Xl extends m.Plugin{load(){return le(this,null,function*(){this.app.use(Yl),this.app.use(ql)})}}const Jl=()=>{const{designable:t,setDesignable:e}=m.useDesignable();return m.useHotkeys("Ctrl+Shift+U",()=>e(!t),[t]),p.jsx(se.FloatButton,{icon:p.jsx(m.Icon,{type:"Design"}),type:t?"primary":"default",onClick:()=>e(!t)})},Ql=t=>p.jsx(m.PinnedPluginListProvider,{items:{db:{order:60,component:"DesignableButton",pin:!0,snippet:"ui.*",belongTo:"hoverbutton"}},children:p.jsx(m.SchemaComponentOptions,{components:{DesignableButton:Jl},children:t.children})});class Rl extends m.Plugin{load(){return le(this,null,function*(){this.app.use(Ql)})}}const hs=i.createContext({open:!1,setOpen:t=>{}}),ec=({children:t})=>{const[e,n]=i.useState(!1);return p.jsxs(hs.Provider,{value:{open:e,setOpen:n},children:[t,p.jsx(nc,{open:e,setOpen:n})]})},tc=()=>i.useContext(hs),nc=({open:t,setOpen:e})=>{const n=i.useRef();i.useEffect(()=>{t&&n.current&&setTimeout(()=>{n.current.focus()},0)},[t,n]);const o=()=>{e(!1)},r=()=>{e(!1)};return p.jsx(se.Modal,{title:p.jsx(se.Input,{style:{width:"100%"},autoFocus:!0,ref:n}),closable:!1,open:t,onOk:o,onCancel:r,footer:null,children:p.jsx("p",{})})},oc=()=>{const{setOpen:t}=tc();return m.useHotkeys("Ctrl+K",()=>t(e=>!e),[]),m.useHotkeys("Cmd+K",()=>t(e=>!e),[]),p.jsx(se.FloatButton,{icon:p.jsx(Ve.SearchOutlined,{}),onClick:()=>t(!0)})},rc=t=>p.jsx(m.PinnedPluginListProvider,{items:{saj:{order:30,component:"SearchAndJumpButton",pin:!0,snippet:"pm.*",belongTo:"hoverbutton"}},children:p.jsx(m.SchemaComponentOptions,{components:{SearchAndJumpButton:oc},children:t.children})});class sc extends m.Plugin{load(){return le(this,null,function*(){this.app.use(rc),this.app.use(ec)})}}const No="client";function at(t){return m.i18n.t(t,{ns:No})}function lt(t){return`{{t('${t}', { ns: '${No}', nsMode: 'fallback' })}}`}const He=(t,e=!0)=>e?m.tval(t,{ns:No}):m.tval(t),ic=new m.SchemaInitializer({name:"mobilePage:addBlock",title:'{{t("Add block")}}',icon:"PlusOutlined",wrap:m.gridRowColWrap,items:[{name:"dataBlocks",type:"itemGroup",title:'{{t("Data blocks")}}',children:[{name:"gridCard",type:"item",title:'{{t("Grid Card")}}',Component:"GridCardBlockInitializer"},{name:"table",title:'{{t("Table")}}',Component:"TableBlockInitializer"},{name:"form",title:'{{t("Form")}}',Component:"FormBlockInitializer"},{name:"details",title:'{{t("Details")}}',Component:"DetailsBlockInitializer"},{name:"calendar",title:'{{t("Calendar")}}',Component:"CalendarBlockInitializer"},{name:"mapBlock",title:lt("Map"),Component:"MapBlockInitializer"},{title:He("Swiper"),name:"swiper",type:"item",Component:"SwiperBlockInitializer"},{title:"notice",name:"notice",type:"item",Component:"NoticeBlockInitializer"},{name:"chartV2",title:'{{t("Charts")}}',Component:"ChartV2BlockInitializer"}]},{name:"otherBlocks",type:"itemGroup",title:'{{t("Other blocks")}}',children:[{name:"menu",title:lt("Menu"),Component:"MMenuBlockInitializer"},{name:"markdown",title:He("Demonstration text"),Component:"MarkdownBlockInitializer"},{name:"settings",title:lt("Settings"),Component:"MSettingsBlockInitializer"}]},{name:"filterBlocks",type:"itemGroup",title:'{{t("Filter blocks")}}',children:[{name:"tabSearch",title:He("TabSearch"),Component:"TabSearchBlockInitializer"},{name:"imageSearch",title:He("ImageSearch"),icon:"tab-search",Component:"ImageSearchInitializer"}]}]}),ac=()=>{const t=m.useSchemaInitializerItem(),{insert:e}=m.useSchemaInitializer();return p.jsx(m.SchemaInitializerItem,T({icon:p.jsx(Ve.MenuOutlined,{}),onClick:()=>le(null,null,function*(){e({type:"void","x-component":"MMenu","x-designer":"MMenu.Designer","x-component-props":{}})})},t))},Mt=!!(typeof window!="undefined"&&typeof document!="undefined"&&window.document&&window.document.createElement);Mt&&document.addEventListener("touchstart",()=>{},!0);function vt(t,e,n,o){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(d){try{u(o.next(d))}catch(f){a(f)}}function c(d){try{u(o.throw(d))}catch(f){a(f)}}function u(d){d.done?s(d.value):r(d.value).then(l,c)}u((o=o.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Te="${label}不是一个有效的${type}",lc={current:{locale:{locale:"zh-CH",common:{confirm:"确定",cancel:"取消",loading:"加载中",close:"关闭"},Calendar:{title:"日期选择",confirm:"确认",start:"开始",end:"结束",today:"今日",markItems:["一","二","三","四","五","六","日"],yearAndMonth:"${year}年${month}月"},Cascader:{placeholder:"请选择"},Dialog:{ok:"我知道了"},DatePicker:{tillNow:"至今"},ErrorBlock:{default:{title:"页面遇到一些小问题",description:"待会来试试"},busy:{title:"前方拥堵",description:"刷新试试"},disconnected:{title:"网络有点忙",description:"动动手指帮忙修复"},empty:{title:"没有找到你需要的东西",description:"找找其他的吧"}},Form:{required:"必填",optional:"选填",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:Te,method:Te,array:Te,object:Te,number:Te,date:Te,boolean:Te,integer:Te,float:Te,regexp:Te,email:Te,url:Te,hex:Te},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},ImageUploader:{uploading:"上传中...",upload:"上传"},InfiniteScroll:{noMore:"没有更多了",failedToLoad:"加载失败",retry:"重新加载"},Input:{clear:"清除"},Mask:{name:"背景蒙层"},Modal:{ok:"我知道了"},PasscodeInput:{name:"密码输入框"},PullToRefresh:{pulling:"下拉刷新",canRelease:"释放立即刷新",complete:"刷新成功"},SearchBar:{name:"搜索框"},Slider:{name:"滑动输入条"},Stepper:{decrease:"减少",increase:"增加"},Switch:{name:"开关"},Selector:{name:"选择组"}}}};function cc(){return lc.current}const uc=i.createContext(null);function Ie(){var t;return(t=i.useContext(uc))!==null&&t!==void 0?t:cc()}function ye(t,e){const n=t;for(const o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);return n}function Nt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Oo={exports:{}};/*!
122
122
  Copyright (c) 2018 Jed Watson.
123
123
  Licensed under the MIT License (MIT), see
124
124
  http://jedwatson.github.io/classnames
125
- */var gs;function dc(){return gs||(gs=1,function(t){(function(){var e={}.hasOwnProperty;function n(){for(var s="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(s=r(s,o(l)))}return s}function o(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var l in s)e.call(s,l)&&s[l]&&(a=r(a,l));return a}function r(s,a){return a?s?s+" "+a:s+a:s}t.exports?(n.default=n,t.exports=n):window.classNames=n})()}(Oo)),Oo.exports}var fc=dc();const B=Nt(fc);function z(t,e){const n=Object.assign({},e.props);t.className&&(n.className=B(e.props.className,t.className)),t.style&&(n.style=Object.assign(Object.assign({},n.style),t.style)),t.tabIndex!==void 0&&(n.tabIndex=t.tabIndex);for(const o in t)t.hasOwnProperty(o)&&(o.startsWith("data-")||o.startsWith("aria-"))&&(n[o]=t[o]);return i.cloneElement(e,n)}function q(...t){const e={};return t.forEach(n=>{n&&Object.keys(n).forEach(o=>{n[o]!==void 0&&(e[o]=n[o])})}),e}function Ao(t,...e){for(let n=e.length-1;n>=0;n-=1)if(e[n]!==void 0)return e[n];return t}const vs=10;function mc(t,e){return t>e&&t>vs?"horizontal":e>t&&e>vs?"vertical":""}function pc(){const t=i.useRef(0),e=i.useRef(0),n=i.useRef(0),o=i.useRef(0),r=i.useRef(0),s=i.useRef(0),a=i.useRef(""),l=()=>a.current==="vertical",c=()=>a.current==="horizontal",u=()=>{n.current=0,o.current=0,r.current=0,s.current=0,a.current=""};return{move:g=>{const b=g.touches[0];n.current=b.clientX<0?0:b.clientX-t.current,o.current=b.clientY-e.current,r.current=Math.abs(n.current),s.current=Math.abs(o.current),a.current||(a.current=mc(r.current,s.current))},start:g=>{u(),t.current=g.touches[0].clientX,e.current=g.touches[0].clientY},reset:u,startX:t,startY:e,deltaX:n,deltaY:o,offsetX:r,offsetY:s,direction:a,isVertical:l,isHorizontal:c}}const hc=Mt?window:void 0,gc=["scroll","auto","overlay"];function vc(t){return t.nodeType===1}function bc(t,e=hc){let n=t;for(;n&&n!==e&&vc(n);){if(n===document.body)return e;const{overflowY:o}=window.getComputedStyle(n);if(gc.includes(o)&&n.scrollHeight>n.clientHeight)return n;n=n.parentNode}return e}let Tn=!1;if(Mt)try{const t={};Object.defineProperty(t,"passive",{get(){Tn=!0}}),window.addEventListener("test-passive",null,t)}catch(t){}let Qt=0;const bs="adm-overflow-hidden";function yc(t){let e=t==null?void 0:t.parentElement;for(;e;){if(e.clientHeight<e.scrollHeight)return e;e=e.parentElement}return null}function ys(t,e){const n=pc(),o=a=>{n.move(a);const l=n.deltaY.current>0?"10":"01",c=bc(a.target,t.current);if(!c)return;if(e==="strict"){const x=yc(a.target);if(x===document.body||x===document.documentElement){a.preventDefault();return}}const{scrollHeight:u,offsetHeight:d,scrollTop:f}=c,{height:g}=c.getBoundingClientRect();let b="11";f===0?b=d>=u?"00":"01":u<=Math.round(g+f)&&(b="10"),b!=="11"&&n.isVertical()&&!(parseInt(b,2)&parseInt(l,2))&&a.cancelable&&Tn&&a.preventDefault()},r=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",o,Tn?{passive:!1}:!1),Qt||document.body.classList.add(bs),Qt++},s=()=>{Qt&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",o),Qt--,Qt||document.body.classList.remove(bs))};i.useEffect(()=>{if(e)return r(),()=>{s()}},[e])}let Do=en();const j=t=>Rt(t,Do);let Lo=en();j.write=t=>Rt(t,Lo);let Mn=en();j.onStart=t=>Rt(t,Mn);let Bo=en();j.onFrame=t=>Rt(t,Bo);let Vo=en();j.onFinish=t=>Rt(t,Vo);let Ot=[];j.setTimeout=(t,e)=>{let n=j.now()+e,o=()=>{let s=Ot.findIndex(a=>a.cancel==o);~s&&Ot.splice(s,1),ut-=~s?1:0},r={time:n,handler:t,cancel:o};return Ot.splice(xs(n),0,r),ut+=1,Cs(),r};let xs=t=>~(~Ot.findIndex(e=>e.time>t)||~Ot.length);j.cancel=t=>{Mn.delete(t),Bo.delete(t),Vo.delete(t),Do.delete(t),Lo.delete(t)},j.sync=t=>{Zo=!0,j.batchedUpdates(t),Zo=!1},j.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function o(...r){e=r,j.onStart(n)}return o.handler=t,o.cancel=()=>{Mn.delete(n),e=null},o};let zo=typeof window!="undefined"?window.requestAnimationFrame:()=>{};j.use=t=>zo=t,j.now=typeof performance!="undefined"?()=>performance.now():Date.now,j.batchedUpdates=t=>t(),j.catch=console.error,j.frameLoop="always",j.advance=()=>{j.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):ks()};let ct=-1,ut=0,Zo=!1;function Rt(t,e){Zo?(e.delete(t),t(0)):(e.add(t),Cs())}function Cs(){ct<0&&(ct=0,j.frameLoop!=="demand"&&zo(Ss))}function xc(){ct=-1}function Ss(){~ct&&(zo(Ss),j.batchedUpdates(ks))}function ks(){let t=ct;ct=j.now();let e=xs(ct);if(e&&(ws(Ot.splice(0,e),n=>n.handler()),ut-=e),!ut){xc();return}Mn.flush(),Do.flush(t?Math.min(64,ct-t):16.667),Bo.flush(),Lo.flush(),Vo.flush()}function en(){let t=new Set,e=t;return{add(n){ut+=e==t&&!t.has(n)?1:0,t.add(n)},delete(n){return ut-=e==t&&t.has(n)?1:0,t.delete(n)},flush(n){e.size&&(t=new Set,ut-=e.size,ws(e,o=>o(n)&&t.add(o)),ut+=t.size,e=t)}}}function ws(t,e){t.forEach(n=>{try{e(n)}catch(o){j.catch(o)}})}function jo(){}const Cc=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),F={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function tt(t,e){if(F.arr(t)){if(!F.arr(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return t===e}const Q=(t,e)=>t.forEach(e);function qe(t,e,n){if(F.arr(t)){for(let o=0;o<t.length;o++)e.call(n,t[o],`${o}`);return}for(const o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o)}const Me=t=>F.und(t)?[]:F.arr(t)?t:[t];function tn(t,e){if(t.size){const n=Array.from(t);t.clear(),Q(n,e)}}const nn=(t,...e)=>tn(t,n=>n(...e)),Ko=()=>typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let Wo,Es,dt=null,Is=!1,Uo=jo;var Ge=Object.freeze({__proto__:null,get createStringInterpolator(){return Wo},get to(){return Es},get colors(){return dt},get skipAnimation(){return Is},get willAdvance(){return Uo},assign:t=>{t.to&&(Es=t.to),t.now&&(j.now=t.now),t.colors!==void 0&&(dt=t.colors),t.skipAnimation!=null&&(Is=t.skipAnimation),t.createStringInterpolator&&(Wo=t.createStringInterpolator),t.requestAnimationFrame&&j.use(t.requestAnimationFrame),t.batchedUpdates&&(j.batchedUpdates=t.batchedUpdates),t.willAdvance&&(Uo=t.willAdvance),t.frameLoop&&(j.frameLoop=t.frameLoop)}});const on=new Set;let Oe=[],Ho=[],Nn=0;const On={get idle(){return!on.size&&!Oe.length},start(t){Nn>t.priority?(on.add(t),j.onStart(Sc)):(_s(t),j(qo))},advance:qo,sort(t){if(Nn)j.onFrame(()=>On.sort(t));else{const e=Oe.indexOf(t);~e&&(Oe.splice(e,1),Ps(t))}},clear(){Oe=[],on.clear()}};function Sc(){on.forEach(_s),on.clear(),j(qo)}function _s(t){Oe.includes(t)||Ps(t)}function Ps(t){Oe.splice(kc(Oe,e=>e.priority>t.priority),0,t)}function qo(t){const e=Ho;for(let n=0;n<Oe.length;n++){const o=Oe[n];Nn=o.priority,o.idle||(Uo(o),o.advance(t),o.idle||e.push(o))}return Nn=0,Ho=Oe,Ho.length=0,Oe=e,Oe.length>0}function kc(t,e){const n=t.findIndex(e);return n<0?t.length:n}const wc={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ze="[-+]?\\d*\\.?\\d+",An=ze+"%";function Dn(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const Ec=new RegExp("rgb"+Dn(ze,ze,ze)),Ic=new RegExp("rgba"+Dn(ze,ze,ze,ze)),_c=new RegExp("hsl"+Dn(ze,An,An)),Pc=new RegExp("hsla"+Dn(ze,An,An,ze)),$c=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Fc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Tc=/^#([0-9a-fA-F]{6})$/,Mc=/^#([0-9a-fA-F]{8})$/;function Nc(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=Tc.exec(t))?parseInt(e[1]+"ff",16)>>>0:dt&&dt[t]!==void 0?dt[t]:(e=Ec.exec(t))?(At(e[1])<<24|At(e[2])<<16|At(e[3])<<8|255)>>>0:(e=Ic.exec(t))?(At(e[1])<<24|At(e[2])<<16|At(e[3])<<8|Ts(e[4]))>>>0:(e=$c.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Mc.exec(t))?parseInt(e[1],16)>>>0:(e=Fc.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=_c.exec(t))?($s(Fs(e[1]),Ln(e[2]),Ln(e[3]))|255)>>>0:(e=Pc.exec(t))?($s(Fs(e[1]),Ln(e[2]),Ln(e[3]))|Ts(e[4]))>>>0:null}function Go(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function $s(t,e,n){const o=n<.5?n*(1+e):n+e-n*e,r=2*n-o,s=Go(r,o,t+1/3),a=Go(r,o,t),l=Go(r,o,t-1/3);return Math.round(s*255)<<24|Math.round(a*255)<<16|Math.round(l*255)<<8}function At(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function Fs(t){return(parseFloat(t)%360+360)%360/360}function Ts(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function Ln(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function Ms(t){let e=Nc(t);if(e===null)return t;e=e||0;let n=(e&4278190080)>>>24,o=(e&16711680)>>>16,r=(e&65280)>>>8,s=(e&255)/255;return`rgba(${n}, ${o}, ${r}, ${s})`}const rn=(t,e,n)=>{if(F.fun(t))return t;if(F.arr(t))return rn({range:t,output:e,extrapolate:n});if(F.str(t.output[0]))return Wo(t);const o=t,r=o.output,s=o.range||[0,1],a=o.extrapolateLeft||o.extrapolate||"extend",l=o.extrapolateRight||o.extrapolate||"extend",c=o.easing||(u=>u);return u=>{const d=Ac(u,s);return Oc(u,s[d],s[d+1],r[d],r[d+1],c,a,l,o.map)}};function Oc(t,e,n,o,r,s,a,l,c){let u=c?c(t):t;if(u<e){if(a==="identity")return u;a==="clamp"&&(u=e)}if(u>n){if(l==="identity")return u;l==="clamp"&&(u=n)}return o===r?o:e===n?t<=e?o:r:(e===-1/0?u=-u:n===1/0?u=u-e:u=(u-e)/(n-e),u=s(u),o===-1/0?u=-u:r===1/0?u=u+o:u=u*(r-o)+o,u)}function Ac(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}const Dc={linear:t=>t};function Yo(){return Yo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Yo.apply(this,arguments)}const Dt=Symbol.for("FluidValue.get"),bt=Symbol.for("FluidValue.observers"),Ae=t=>!!(t&&t[Dt]),_e=t=>t&&t[Dt]?t[Dt]():t,Ns=t=>t[bt]||null;function Lc(t,e){t.eventObserved?t.eventObserved(e):t(e)}function sn(t,e){let n=t[bt];n&&n.forEach(o=>{Lc(o,e)})}class Os{constructor(e){if(this[Dt]=void 0,this[bt]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Bc(this,e)}}const Bc=(t,e)=>As(t,Dt,e);function Lt(t,e){if(t[Dt]){let n=t[bt];n||As(t,bt,n=new Set),n.has(e)||(n.add(e),t.observerAdded&&t.observerAdded(n.size,e))}return e}function an(t,e){let n=t[bt];if(n&&n.has(e)){const o=n.size-1;o?n.delete(e):t[bt]=null,t.observerRemoved&&t.observerRemoved(o,e)}}const As=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),Bn=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Vc=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ds=new RegExp(`(${Bn.source})(%|[a-z]+)`,"i"),zc=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Vn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ls=t=>{const[e,n]=Zc(t);if(!e||Ko())return t;const o=window.getComputedStyle(document.documentElement).getPropertyValue(e);if(o)return o.trim();if(n&&n.startsWith("--")){const r=window.getComputedStyle(document.documentElement).getPropertyValue(n);return r||t}else{if(n&&Vn.test(n))return Ls(n);if(n)return n}return t},Zc=t=>{const e=Vn.exec(t);if(!e)return[,];const[,n,o]=e;return[n,o]};let Xo;const jc=(t,e,n,o,r)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,Bs=t=>{Xo||(Xo=dt?new RegExp(`(${Object.keys(dt).join("|")})(?!\\w)`,"g"):/^\b$/);const e=t.output.map(s=>_e(s).replace(Vn,Ls).replace(Vc,Ms).replace(Xo,Ms)),n=e.map(s=>s.match(Bn).map(Number)),r=n[0].map((s,a)=>n.map(l=>{if(!(a in l))throw Error('The arity of each "output" value must be equal');return l[a]})).map(s=>rn(Yo({},t,{output:s})));return s=>{var a;const l=!Ds.test(e[0])&&((a=e.find(u=>Ds.test(u)))==null?void 0:a.replace(Bn,""));let c=0;return e[0].replace(Bn,()=>`${r[c++](s)}${l||""}`).replace(zc,jc)}},Jo="react-spring: ",Vs=t=>{const e=t;let n=!1;if(typeof e!="function")throw new TypeError(`${Jo}once requires a function parameter`);return(...o)=>{n||(e(...o),n=!0)}},Kc=Vs(console.warn);function Wc(){Kc(`${Jo}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const Uc=Vs(console.warn);function Hc(){Uc(`${Jo}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function zn(t){return F.str(t)&&(t[0]=="#"||/\d/.test(t)||!Ko()&&Vn.test(t)||t in(dt||{}))}const Qo=Ko()?i.useEffect:i.useLayoutEffect,qc=()=>{const t=i.useRef(!1);return Qo(()=>(t.current=!0,()=>{t.current=!1}),[]),t};function zs(){const t=i.useState()[1],e=qc();return()=>{e.current&&t(Math.random())}}function Gc(t,e){const[n]=i.useState(()=>({inputs:e,result:t()})),o=i.useRef(),r=o.current;let s=r;return s?e&&s.inputs&&Yc(e,s.inputs)||(s={inputs:e,result:t()}):s=n,i.useEffect(()=>{o.current=s,r==n&&(n.inputs=n.result=void 0)},[s]),s.result}function Yc(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const Zs=t=>i.useEffect(t,Xc),Xc=[];function js(t){const e=i.useRef();return i.useEffect(()=>{e.current=t}),e.current}const ln=Symbol.for("Animated:node"),Jc=t=>!!t&&t[ln]===t,Ye=t=>t&&t[ln],Ro=(t,e)=>Cc(t,ln,e),Zn=t=>t&&t[ln]&&t[ln].getPayload();class Ks{constructor(){this.payload=void 0,Ro(this,this)}getPayload(){return this.payload||[]}}class Bt extends Ks{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,F.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Bt(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,n){return F.num(e)&&(this.lastPosition=e,n&&(e=Math.round(e/n)*n,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,F.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class Vt extends Bt{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=rn({output:[e,e]})}static create(e){return new Vt(e)}getValue(){let e=this._string;return e==null?this._string=this._toString(this._value):e}setValue(e){if(F.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=rn({output:[this.getValue(),e]})),this._value=0,super.reset()}}const jn={dependencies:null};class Kn extends Ks{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const n={};return qe(this.source,(o,r)=>{Jc(o)?n[r]=o.getValue(e):Ae(o)?n[r]=_e(o):e||(n[r]=o)}),n}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Q(this.payload,e=>e.reset())}_makePayload(e){if(e){const n=new Set;return qe(e,this._addToPayload,n),Array.from(n)}}_addToPayload(e){jn.dependencies&&Ae(e)&&jn.dependencies.add(e);const n=Zn(e);n&&Q(n,o=>this.add(o))}}class er extends Kn{constructor(e){super(e)}static create(e){return new er(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const n=this.getPayload();return e.length==n.length?n.map((o,r)=>o.setValue(e[r])).some(Boolean):(super.setValue(e.map(Qc)),!0)}}function Qc(t){return(zn(t)?Vt:Bt).create(t)}function tr(t){const e=Ye(t);return e?e.constructor:F.arr(t)?er:zn(t)?Vt:Bt}function Wn(){return Wn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Wn.apply(this,arguments)}const Ws=(t,e)=>{const n=!F.fun(t)||t.prototype&&t.prototype.isReactComponent;return i.forwardRef((o,r)=>{const s=i.useRef(null),a=n&&i.useCallback(x=>{s.current=tu(r,x)},[r]),[l,c]=eu(o,e),u=zs(),d=()=>{const x=s.current;if(n&&!x)return;(x?e.applyAnimatedValues(x,l.getValue(!0)):!1)===!1&&u()},f=new Rc(d,c),g=i.useRef();Qo(()=>(g.current=f,Q(c,x=>Lt(x,f)),()=>{g.current&&(Q(g.current.deps,x=>an(x,g.current)),j.cancel(g.current.update))})),i.useEffect(d,[]),Zs(()=>()=>{const x=g.current;Q(x.deps,y=>an(y,x))});const b=e.getComponentProps(l.getValue());return Z.createElement(t,Wn({},b,{ref:a}))})};class Rc{constructor(e,n){this.update=e,this.deps=n}eventObserved(e){e.type=="change"&&j.write(this.update)}}function eu(t,e){const n=new Set;return jn.dependencies=n,t.style&&(t=Wn({},t,{style:e.createAnimatedStyle(t.style)})),t=new Kn(t),jn.dependencies=null,[t,n]}function tu(t,e){return t&&(F.fun(t)?t(e):t.current=e),e}const Us=Symbol.for("AnimatedComponent"),nu=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:n=r=>new Kn(r),getComponentProps:o=r=>r}={})=>{const r={applyAnimatedValues:e,createAnimatedStyle:n,getComponentProps:o},s=a=>{const l=Hs(a)||"Anonymous";return F.str(a)?a=s[a]||(s[a]=Ws(a,r)):a=a[Us]||(a[Us]=Ws(a,r)),a.displayName=`Animated(${l})`,a};return qe(t,(a,l)=>{F.arr(t)&&(l=Hs(a)),s[l]=s(a)}),{animated:s}},Hs=t=>F.str(t)?t:t&&F.str(t.displayName)?t.displayName:F.fun(t)&&t.name||null;function be(){return be=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},be.apply(this,arguments)}function yt(t,...e){return F.fun(t)?t(...e):t}const cn=(t,e)=>t===!0||!!(e&&t&&(F.fun(t)?t(e):Me(t).includes(e))),qs=(t,e)=>F.obj(t)?e&&t[e]:t,Gs=(t,e)=>t.default===!0?t[e]:t.default?t.default[e]:void 0,ou=t=>t,nr=(t,e=ou)=>{let n=ru;t.default&&t.default!==!0&&(t=t.default,n=Object.keys(t));const o={};for(const r of n){const s=e(t[r],r);F.und(s)||(o[r]=s)}return o},ru=["config","onProps","onStart","onChange","onPause","onResume","onRest"],su={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function iu(t){const e={};let n=0;if(qe(t,(o,r)=>{su[r]||(e[r]=o,n++)}),n)return e}function Ys(t){const e=iu(t);if(e){const n={to:e};return qe(t,(o,r)=>r in e||(n[r]=o)),n}return be({},t)}function un(t){return t=_e(t),F.arr(t)?t.map(un):zn(t)?Ge.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function au(t){for(const e in t)return!0;return!1}function or(t){return F.fun(t)||F.arr(t)&&F.obj(t[0])}function lu(t,e){var n;(n=t.ref)==null||n.delete(t),e==null||e.delete(t)}function cu(t,e){if(e&&t.ref!==e){var n;(n=t.ref)==null||n.delete(t),e.add(t),t.ref=e}}const rr=be({},{default:{tension:170,friction:26}}.default,{mass:1,damping:1,easing:Dc.linear,clamp:!1});class uu{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,rr)}}function du(t,e,n){n&&(n=be({},n),Xs(n,e),e=be({},n,e)),Xs(t,e),Object.assign(t,e);for(const a in rr)t[a]==null&&(t[a]=rr[a]);let{mass:o,frequency:r,damping:s}=t;return F.und(r)||(r<.01&&(r=.01),s<0&&(s=0),t.tension=Math.pow(2*Math.PI/r,2)*o,t.friction=4*Math.PI*s*o/r),t}function Xs(t,e){if(!F.und(e.decay))t.duration=void 0;else{const n=!F.und(e.tension)||!F.und(e.friction);(n||!F.und(e.frequency)||!F.und(e.damping)||!F.und(e.mass))&&(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}}const Js=[];class fu{constructor(){this.changed=!1,this.values=Js,this.toValues=null,this.fromValues=Js,this.to=void 0,this.from=void 0,this.config=new uu,this.immediate=!1}}function Qs(t,{key:e,props:n,defaultProps:o,state:r,actions:s}){return new Promise((a,l)=>{var c;let u,d,f=cn((c=n.cancel)!=null?c:o==null?void 0:o.cancel,e);if(f)x();else{F.und(n.pause)||(r.paused=cn(n.pause,e));let y=o==null?void 0:o.pause;y!==!0&&(y=r.paused||cn(y,e)),u=yt(n.delay||0,e),y?(r.resumeQueue.add(b),s.pause()):(s.resume(),b())}function g(){r.resumeQueue.add(b),r.timeouts.delete(d),d.cancel(),u=d.time-j.now()}function b(){u>0&&!Ge.skipAnimation?(r.delayed=!0,d=j.setTimeout(x,u),r.pauseQueue.add(g),r.timeouts.add(d)):x()}function x(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(g),r.timeouts.delete(d),t<=(r.cancelId||0)&&(f=!0);try{s.start(be({},n,{callId:t,cancel:f}),a)}catch(y){l(y)}}})}const sr=(t,e)=>e.length==1?e[0]:e.some(n=>n.cancelled)?zt(t.get()):e.every(n=>n.noop)?Rs(t.get()):Ze(t.get(),e.every(n=>n.finished)),Rs=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),Ze=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),zt=t=>({value:t,cancelled:!0,finished:!1});function ei(t,e,n,o){const{callId:r,parentId:s,onRest:a}=e,{asyncTo:l,promise:c}=n;return!s&&t===l&&!e.reset?c:n.promise=ae(null,null,function*(){n.asyncId=r,n.asyncTo=t;const u=nr(e,(h,v)=>v==="onRest"?void 0:h);let d,f;const g=new Promise((h,v)=>(d=h,f=v)),b=h=>{const v=r<=(n.cancelId||0)&&zt(o)||r!==n.asyncId&&Ze(o,!1);if(v)throw h.result=v,f(h),h},x=(h,v)=>{const k=new ti,S=new ni;return ae(null,null,function*(){if(Ge.skipAnimation)throw dn(n),S.result=Ze(o,!1),f(S),S;b(k);const C=F.obj(h)?be({},h):be({},v,{to:h});C.parentId=r,qe(u,(E,I)=>{F.und(C[I])&&(C[I]=E)});const w=yield o.start(C);return b(k),n.paused&&(yield new Promise(E=>{n.resumeQueue.add(E)})),w})};let y;if(Ge.skipAnimation)return dn(n),Ze(o,!1);try{let h;F.arr(t)?h=(v=>ae(null,null,function*(){for(const k of v)yield x(k)}))(t):h=Promise.resolve(t(x,o.stop.bind(o))),yield Promise.all([h.then(d),g]),y=Ze(o.get(),!0,!1)}catch(h){if(h instanceof ti)y=h.result;else if(h instanceof ni)y=h.result;else throw h}finally{r==n.asyncId&&(n.asyncId=s,n.asyncTo=s?l:void 0,n.promise=s?c:void 0)}return F.fun(a)&&j.batchedUpdates(()=>{a(y,o,o.item)}),y})}function dn(t,e){tn(t.timeouts,n=>n.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}class ti extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class ni extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const ir=t=>t instanceof ar;let mu=1;class ar extends Os{constructor(...e){super(...e),this.id=mu++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Ye(this);return e&&e.getValue()}to(...e){return Ge.to(this,e)}interpolate(...e){return Wc(),Ge.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,n=!1){sn(this,{type:"change",parent:this,value:e,idle:n})}_onPriorityChange(e){this.idle||On.sort(this),sn(this,{type:"priority",parent:this,priority:e})}}const xt=Symbol.for("SpringPhase"),oi=1,lr=2,cr=4,ur=t=>(t[xt]&oi)>0,ft=t=>(t[xt]&lr)>0,fn=t=>(t[xt]&cr)>0,ri=(t,e)=>e?t[xt]|=lr|oi:t[xt]&=~lr,si=(t,e)=>e?t[xt]|=cr:t[xt]&=~cr;class pu extends ar{constructor(e,n){if(super(),this.key=void 0,this.animation=new fu,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!F.und(e)||!F.und(n)){const o=F.obj(e)?be({},e):be({},n,{from:e});F.und(o.default)&&(o.default=!0),this.start(o)}}get idle(){return!(ft(this)||this._state.asyncTo)||fn(this)}get goal(){return _e(this.animation.to)}get velocity(){const e=Ye(this);return e instanceof Bt?e.lastVelocity||0:e.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return ur(this)}get isAnimating(){return ft(this)}get isPaused(){return fn(this)}get isDelayed(){return this._state.delayed}advance(e){let n=!0,o=!1;const r=this.animation;let{config:s,toValues:a}=r;const l=Zn(r.to);!l&&Ae(r.to)&&(a=Me(_e(r.to))),r.values.forEach((d,f)=>{if(d.done)return;const g=d.constructor==Vt?1:l?l[f].lastPosition:a[f];let b=r.immediate,x=g;if(!b){if(x=d.lastPosition,s.tension<=0){d.done=!0;return}let y=d.elapsedTime+=e;const h=r.fromValues[f],v=d.v0!=null?d.v0:d.v0=F.arr(s.velocity)?s.velocity[f]:s.velocity;let k;const S=s.precision||(h==g?.005:Math.min(1,Math.abs(g-h)*.001));if(F.und(s.duration))if(s.decay){const C=s.decay===!0?.998:s.decay,w=Math.exp(-(1-C)*y);x=h+v/(1-C)*(1-w),b=Math.abs(d.lastPosition-x)<=S,k=v*w}else{k=d.lastVelocity==null?v:d.lastVelocity;const C=s.restVelocity||S/10,w=s.clamp?0:s.bounce,E=!F.und(w),I=h==g?d.v0>0:h<g;let P,N=!1;const $=1,A=Math.ceil(e/$);for(let V=0;V<A&&(P=Math.abs(k)>C,!(!P&&(b=Math.abs(g-x)<=S,b)));++V){E&&(N=x==g||x>g==I,N&&(k=-k*w,x=g));const M=-s.tension*1e-6*(x-g),O=-s.friction*.001*k,K=(M+O)/s.mass;k=k+K*$,x=x+k*$}}else{let C=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,d.durationProgress>0&&(d.elapsedTime=s.duration*d.durationProgress,y=d.elapsedTime+=e)),C=(s.progress||0)+y/this._memoizedDuration,C=C>1?1:C<0?0:C,d.durationProgress=C),x=h+s.easing(C)*(g-h),k=(x-d.lastPosition)/e,b=C==1}d.lastVelocity=k,Number.isNaN(x)&&(console.warn("Got NaN while animating:",this),b=!0)}l&&!l[f].done&&(b=!1),b?d.done=!0:n=!1,d.setValue(x,s.round)&&(o=!0)});const c=Ye(this),u=c.getValue();if(n){const d=_e(r.to);(u!==d||o)&&!s.decay?(c.setValue(d),this._onChange(d)):o&&s.decay&&this._onChange(u),this._stop()}else o&&this._onChange(u)}set(e){return j.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ft(this)){const{to:e,config:n}=this.animation;j.batchedUpdates(()=>{this._onStart(),n.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,n){let o;return F.und(e)?(o=this.queue||[],this.queue=[]):o=[F.obj(e)?e:be({},n,{to:e})],Promise.all(o.map(r=>this._update(r))).then(r=>sr(this,r))}stop(e){const{to:n}=this.animation;return this._focus(this.get()),dn(this._state,e&&this._lastCallId),j.batchedUpdates(()=>this._stop(n,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const n=this.key||"";let{to:o,from:r}=e;o=F.obj(o)?o[n]:o,(o==null||or(o))&&(o=void 0),r=F.obj(r)?r[n]:r,r==null&&(r=void 0);const s={to:o,from:r};return ur(this)||(e.reverse&&([o,r]=[r,o]),r=_e(r),F.und(r)?Ye(this)||this._set(o):this._set(r)),s}_update(e,n){let o=be({},e);const{key:r,defaultProps:s}=this;o.default&&Object.assign(s,nr(o,(c,u)=>/^on/.test(u)?qs(c,r):c)),li(this,o,"onProps"),hn(this,"onProps",o,this);const a=this._prepareNode(o);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const l=this._state;return Qs(++this._lastCallId,{key:r,props:o,defaultProps:s,state:l,actions:{pause:()=>{fn(this)||(si(this,!0),nn(l.pauseQueue),hn(this,"onPause",Ze(this,mn(this,this.animation.to)),this))},resume:()=>{fn(this)&&(si(this,!1),ft(this)&&this._resume(),nn(l.resumeQueue),hn(this,"onResume",Ze(this,mn(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(c=>{if(o.loop&&c.finished&&!(n&&c.noop)){const u=ii(o);if(u)return this._update(u,!0)}return c})}_merge(e,n,o){if(n.cancel)return this.stop(!0),o(zt(this));const r=!F.und(e.to),s=!F.und(e.from);if(r||s)if(n.callId>this._lastToId)this._lastToId=n.callId;else return o(zt(this));const{key:a,defaultProps:l,animation:c}=this,{to:u,from:d}=c;let{to:f=u,from:g=d}=e;s&&!r&&(!n.default||F.und(f))&&(f=g),n.reverse&&([f,g]=[g,f]);const b=!tt(g,d);b&&(c.from=g),g=_e(g);const x=!tt(f,u);x&&this._focus(f);const y=or(n.to),{config:h}=c,{decay:v,velocity:k}=h;(r||s)&&(h.velocity=0),n.config&&!y&&du(h,yt(n.config,a),n.config!==l.config?yt(l.config,a):void 0);let S=Ye(this);if(!S||F.und(f))return o(Ze(this,!0));const C=F.und(n.reset)?s&&!n.default:!F.und(g)&&cn(n.reset,a),w=C?g:this.get(),E=un(f),I=F.num(E)||F.arr(E)||zn(E),P=!y&&(!I||cn(l.immediate||n.immediate,a));if(x){const V=tr(f);if(V!==S.constructor)if(P)S=this._set(E);else throw Error(`Cannot animate between ${S.constructor.name} and ${V.name}, as the "to" prop suggests`)}const N=S.constructor;let $=Ae(f),A=!1;if(!$){const V=C||!ur(this)&&b;(x||V)&&(A=tt(un(w),E),$=!A),(!tt(c.immediate,P)&&!P||!tt(h.decay,v)||!tt(h.velocity,k))&&($=!0)}if(A&&ft(this)&&(c.changed&&!C?$=!0:$||this._stop(u)),!y&&(($||Ae(u))&&(c.values=S.getPayload(),c.toValues=Ae(f)?null:N==Vt?[1]:Me(E)),c.immediate!=P&&(c.immediate=P,!P&&!C&&this._set(u)),$)){const{onRest:V}=c;Q(gu,O=>li(this,n,O));const M=Ze(this,mn(this,u));nn(this._pendingCalls,M),this._pendingCalls.add(o),c.changed&&j.batchedUpdates(()=>{c.changed=!C,V==null||V(M,this),C?yt(l.onRest,M):c.onStart==null||c.onStart(M,this)})}C&&this._set(w),y?o(ei(n.to,n,this._state,this)):$?this._start():ft(this)&&!x?this._pendingCalls.add(o):o(Rs(w))}_focus(e){const n=this.animation;e!==n.to&&(Ns(this)&&this._detach(),n.to=e,Ns(this)&&this._attach())}_attach(){let e=0;const{to:n}=this.animation;Ae(n)&&(Lt(n,this),ir(n)&&(e=n.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ae(e)&&an(e,this)}_set(e,n=!0){const o=_e(e);if(!F.und(o)){const r=Ye(this);if(!r||!tt(o,r.getValue())){const s=tr(o);!r||r.constructor!=s?Ro(this,s.create(o)):r.setValue(o),r&&j.batchedUpdates(()=>{this._onChange(o,n)})}}return Ye(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,hn(this,"onStart",Ze(this,mn(this,e.to)),this))}_onChange(e,n){n||(this._onStart(),yt(this.animation.onChange,e,this)),yt(this.defaultProps.onChange,e,this),super._onChange(e,n)}_start(){const e=this.animation;Ye(this).reset(_e(e.to)),e.immediate||(e.fromValues=e.values.map(n=>n.lastPosition)),ft(this)||(ri(this,!0),fn(this)||this._resume())}_resume(){Ge.skipAnimation?this.finish():On.start(this)}_stop(e,n){if(ft(this)){ri(this,!1);const o=this.animation;Q(o.values,s=>{s.done=!0}),o.toValues&&(o.onChange=o.onPause=o.onResume=void 0),sn(this,{type:"idle",parent:this});const r=n?zt(this.get()):Ze(this.get(),mn(this,e!=null?e:o.to));nn(this._pendingCalls,r),o.changed&&(o.changed=!1,hn(this,"onRest",r,this))}}}function mn(t,e){const n=un(e),o=un(t.get());return tt(o,n)}function ii(t,e=t.loop,n=t.to){let o=yt(e);if(o){const r=o!==!0&&Ys(o),s=(r||t).reverse,a=!r||r.reset;return pn(be({},t,{loop:e,default:!1,pause:void 0,to:!s||or(n)?n:void 0,from:a?t.from:void 0,reset:a},r))}}function pn(t){const{to:e,from:n}=t=Ys(t),o=new Set;return F.obj(e)&&ai(e,o),F.obj(n)&&ai(n,o),t.keys=o.size?Array.from(o):null,t}function hu(t){const e=pn(t);return F.und(e.default)&&(e.default=nr(e)),e}function ai(t,e){qe(t,(n,o)=>n!=null&&e.add(o))}const gu=["onStart","onRest","onChange","onPause","onResume"];function li(t,e,n){t.animation[n]=e[n]!==Gs(e,n)?qs(e[n],t.key):void 0}function hn(t,e,...n){var o,r,s,a;(o=(r=t.animation)[e])==null||o.call(r,...n),(s=(a=t.defaultProps)[e])==null||s.call(a,...n)}const vu=["onStart","onChange","onRest"];let bu=1,yu=class{constructor(e,n){this.id=bu++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),n&&(this._flush=n),e&&this.start(be({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((n,o)=>e[o]=n.get()),e}set(e){for(const n in e){const o=e[n];F.und(o)||this.springs[n].set(o)}}update(e){return e&&this.queue.push(pn(e)),this}start(e){let{queue:n}=this;return e?n=Me(e).map(pn):this.queue=[],this._flush?this._flush(this,n):(pi(this,n),dr(this,n))}stop(e,n){if(e!==!!e&&(n=e),n){const o=this.springs;Q(Me(n),r=>o[r].stop(!!e))}else dn(this._state,this._lastAsyncId),this.each(o=>o.stop(!!e));return this}pause(e){if(F.und(e))this.start({pause:!0});else{const n=this.springs;Q(Me(e),o=>n[o].pause())}return this}resume(e){if(F.und(e))this.start({pause:!1});else{const n=this.springs;Q(Me(e),o=>n[o].resume())}return this}each(e){qe(this.springs,e)}_onFrame(){const{onStart:e,onChange:n,onRest:o}=this._events,r=this._active.size>0,s=this._changed.size>0;(r&&!this._started||s&&!this._started)&&(this._started=!0,tn(e,([c,u])=>{u.value=this.get(),c(u,this,this._item)}));const a=!r&&this._started,l=s||a&&o.size?this.get():null;s&&n.size&&tn(n,([c,u])=>{u.value=l,c(u,this,this._item)}),a&&(this._started=!1,tn(o,([c,u])=>{u.value=l,c(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;j.onFrame(this._onFrame)}};function dr(t,e){return Promise.all(e.map(n=>ci(t,n))).then(n=>sr(t,n))}function ci(t,e,n){return ae(this,null,function*(){const{keys:o,to:r,from:s,loop:a,onRest:l,onResolve:c}=e,u=F.obj(e.default)&&e.default;a&&(e.loop=!1),r===!1&&(e.to=null),s===!1&&(e.from=null);const d=F.arr(r)||F.fun(r)?r:void 0;d?(e.to=void 0,e.onRest=void 0,u&&(u.onRest=void 0)):Q(vu,y=>{const h=e[y];if(F.fun(h)){const v=t._events[y];e[y]=({finished:k,cancelled:S})=>{const C=v.get(h);C?(k||(C.finished=!1),S&&(C.cancelled=!0)):v.set(h,{value:null,finished:k||!1,cancelled:S||!1})},u&&(u[y]=e[y])}});const f=t._state;e.pause===!f.paused?(f.paused=e.pause,nn(e.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(e.pause=!0);const g=(o||Object.keys(t.springs)).map(y=>t.springs[y].start(e)),b=e.cancel===!0||Gs(e,"cancel")===!0;(d||b&&f.asyncId)&&g.push(Qs(++t._lastAsyncId,{props:e,state:f,actions:{pause:jo,resume:jo,start(y,h){b?(dn(f,t._lastAsyncId),h(zt(t))):(y.onRest=l,h(ei(d,y,f,t)))}}})),f.paused&&(yield new Promise(y=>{f.resumeQueue.add(y)}));const x=sr(t,yield Promise.all(g));if(a&&x.finished&&!(n&&x.noop)){const y=ii(e,a,r);if(y)return pi(t,[y]),ci(t,y,!0)}return c&&j.batchedUpdates(()=>c(x,t,t.item)),x})}function ui(t,e){const n=be({},t.springs);return e&&Q(Me(e),o=>{F.und(o.keys)&&(o=pn(o)),F.obj(o.to)||(o=be({},o,{to:void 0})),mi(n,o,r=>fi(r))}),di(t,n),n}function di(t,e){qe(e,(n,o)=>{t.springs[o]||(t.springs[o]=n,Lt(n,t))})}function fi(t,e){const n=new pu;return n.key=t,e&&Lt(n,e),n}function mi(t,e,n){e.keys&&Q(e.keys,o=>{(t[o]||(t[o]=n(o)))._prepareNode(e)})}function pi(t,e){Q(e,n=>{mi(t.springs,n,o=>fi(o,t))})}function xu(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,s;for(s=0;s<o.length;s++)r=o[s],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}const Cu=["children"],Un=t=>{let{children:e}=t,n=xu(t,Cu);const o=i.useContext(Hn),r=n.pause||!!o.pause,s=n.immediate||!!o.immediate;n=Gc(()=>({pause:r,immediate:s}),[r,s]);const{Provider:a}=Hn;return Z.createElement(a,{value:n},e)},Hn=Su(Un,{});Un.Provider=Hn.Provider,Un.Consumer=Hn.Consumer;function Su(t,e){return Object.assign(t,Z.createContext(e)),t.Provider._context=t,t.Consumer._context=t,t}const ku=()=>{const t=[],e=function(r){Hc();const s=[];return Q(t,(a,l)=>{if(F.und(r))s.push(a.start());else{const c=n(r,a,l);c&&s.push(a.start(c))}}),s};e.current=t,e.add=function(o){t.includes(o)||t.push(o)},e.delete=function(o){const r=t.indexOf(o);~r&&t.splice(r,1)},e.pause=function(){return Q(t,o=>o.pause(...arguments)),this},e.resume=function(){return Q(t,o=>o.resume(...arguments)),this},e.set=function(o){Q(t,r=>r.set(o))},e.start=function(o){const r=[];return Q(t,(s,a)=>{if(F.und(o))r.push(s.start());else{const l=this._getProps(o,s,a);l&&r.push(s.start(l))}}),r},e.stop=function(){return Q(t,o=>o.stop(...arguments)),this},e.update=function(o){return Q(t,(r,s)=>r.update(this._getProps(o,r,s))),this};const n=function(r,s,a){return F.fun(r)?r(a,s):r};return e._getProps=n,e};function wu(t,e,n){const o=F.fun(e)&&e;o&&!n&&(n=[]);const r=i.useMemo(()=>o||arguments.length==3?ku():void 0,[]),s=i.useRef(0),a=zs(),l=i.useMemo(()=>({ctrls:[],queue:[],flush(v,k){const S=ui(v,k);return s.current>0&&!l.queue.length&&!Object.keys(S).some(w=>!v.springs[w])?dr(v,k):new Promise(w=>{di(v,S),l.queue.push(()=>{w(dr(v,k))}),a()})}}),[]),c=i.useRef([...l.ctrls]),u=[],d=js(t)||0;i.useMemo(()=>{Q(c.current.slice(t,d),v=>{lu(v,r),v.stop(!0)}),c.current.length=t,f(d,t)},[t]),i.useMemo(()=>{f(0,Math.min(d,t))},n);function f(v,k){for(let S=v;S<k;S++){const C=c.current[S]||(c.current[S]=new yu(null,l.flush)),w=o?o(S,C):e[S];w&&(u[S]=hu(w))}}const g=c.current.map((v,k)=>ui(v,u[k])),b=i.useContext(Un),x=js(b),y=b!==x&&au(b);Qo(()=>{s.current++,l.ctrls=c.current;const{queue:v}=l;v.length&&(l.queue=[],Q(v,k=>k())),Q(c.current,(k,S)=>{r==null||r.add(k),y&&k.start({default:b});const C=u[S];C&&(cu(k,C.ref),k.ref?k.queue.push(C):k.start(C))})}),Zs(()=>()=>{Q(l.ctrls,v=>v.stop(!0))});const h=g.map(v=>be({},v));return r?[h,r]:h}function De(t,e){const n=F.fun(t),[[o],r]=wu(1,n?t:[t],n?e||[]:e);return n||arguments.length==2?[o,r]:o}let hi;(function(t){t.MOUNT="mount",t.ENTER="enter",t.UPDATE="update",t.LEAVE="leave"})(hi||(hi={}));class Eu extends ar{constructor(e,n){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=rn(...n);const o=this._get(),r=tr(o);Ro(this,r.create(o))}advance(e){const n=this._get(),o=this.get();tt(n,o)||(Ye(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&gi(this._active)&&fr(this)}_get(){const e=F.arr(this.source)?this.source.map(_e):Me(_e(this.source));return this.calc(...e)}_start(){this.idle&&!gi(this._active)&&(this.idle=!1,Q(Zn(this),e=>{e.done=!1}),Ge.skipAnimation?(j.batchedUpdates(()=>this.advance()),fr(this)):On.start(this))}_attach(){let e=1;Q(Me(this.source),n=>{Ae(n)&&Lt(n,this),ir(n)&&(n.idle||this._active.add(n),e=Math.max(e,n.priority+1))}),this.priority=e,this._start()}_detach(){Q(Me(this.source),e=>{Ae(e)&&an(e,this)}),this._active.clear(),fr(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Me(this.source).reduce((n,o)=>Math.max(n,(ir(o)?o.priority:0)+1),0))}}function Iu(t){return t.idle!==!1}function gi(t){return!t.size||Array.from(t).every(Iu)}function fr(t){t.idle||(t.idle=!0,Q(Zn(t),e=>{e.done=!0}),sn(t,{type:"idle",parent:t}))}Ge.assign({createStringInterpolator:Bs,to:(t,e)=>new Eu(t,e)});function mr(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,s;for(s=0;s<o.length;s++)r=o[s],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}const _u=["style","children","scrollTop","scrollLeft","viewBox"],vi=/^--/;function Pu(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e=="number"&&e!==0&&!vi.test(t)&&!(gn.hasOwnProperty(t)&&gn[t])?e+"px":(""+e).trim()}const bi={};function $u(t,e){if(!t.nodeType||!t.setAttribute)return!1;const n=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter",o=e,{style:r,children:s,scrollTop:a,scrollLeft:l,viewBox:c}=o,u=mr(o,_u),d=Object.values(u),f=Object.keys(u).map(g=>n||t.hasAttribute(g)?g:bi[g]||(bi[g]=g.replace(/([A-Z])/g,b=>"-"+b.toLowerCase())));s!==void 0&&(t.textContent=s);for(let g in r)if(r.hasOwnProperty(g)){const b=Pu(g,r[g]);vi.test(g)?t.style.setProperty(g,b):t.style[g]=b}f.forEach((g,b)=>{t.setAttribute(g,d[b])}),a!==void 0&&(t.scrollTop=a),l!==void 0&&(t.scrollLeft=l),c!==void 0&&t.setAttribute("viewBox",c)}let gn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Fu=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),Tu=["Webkit","Ms","Moz","O"];gn=Object.keys(gn).reduce((t,e)=>(Tu.forEach(n=>t[Fu(n,e)]=t[e]),t),gn);const Mu=["x","y","z"],Nu=/^(matrix|translate|scale|rotate|skew)/,Ou=/^(translate)/,Au=/^(rotate|skew)/,pr=(t,e)=>F.num(t)&&t!==0?t+e:t,qn=(t,e)=>F.arr(t)?t.every(n=>qn(n,e)):F.num(t)?t===e:parseFloat(t)===e;class Du extends Kn{constructor(e){let{x:n,y:o,z:r}=e,s=mr(e,Mu);const a=[],l=[];(n||o||r)&&(a.push([n||0,o||0,r||0]),l.push(c=>[`translate3d(${c.map(u=>pr(u,"px")).join(",")})`,qn(c,0)])),qe(s,(c,u)=>{if(u==="transform")a.push([c||""]),l.push(d=>[d,d===""]);else if(Nu.test(u)){if(delete s[u],F.und(c))return;const d=Ou.test(u)?"px":Au.test(u)?"deg":"";a.push(Me(c)),l.push(u==="rotate3d"?([f,g,b,x])=>[`rotate3d(${f},${g},${b},${pr(x,d)})`,qn(x,0)]:f=>[`${u}(${f.map(g=>pr(g,d)).join(",")})`,qn(f,u.startsWith("scale")?1:0)])}}),a.length&&(s.transform=new Lu(a,l)),super(s)}}class Lu extends Os{constructor(e,n){super(),this._value=null,this.inputs=e,this.transforms=n}get(){return this._value||(this._value=this._get())}_get(){let e="",n=!0;return Q(this.inputs,(o,r)=>{const s=_e(o[0]),[a,l]=this.transforms[r](F.arr(s)?s:o.map(_e));e+=" "+a,n=n&&l}),n?"none":e}observerAdded(e){e==1&&Q(this.inputs,n=>Q(n,o=>Ae(o)&&Lt(o,this)))}observerRemoved(e){e==0&&Q(this.inputs,n=>Q(n,o=>Ae(o)&&an(o,this)))}eventObserved(e){e.type=="change"&&(this._value=null),sn(this,e)}}const Bu=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Vu=["scrollTop","scrollLeft"];Ge.assign({batchedUpdates:Tt.unstable_batchedUpdates,createStringInterpolator:Bs,colors:wc});const xe=nu(Bu,{applyAnimatedValues:$u,createAnimatedStyle:t=>new Du(t),getComponentProps:t=>mr(t,Vu)}).animated;function zu(t){return(typeof t=="function"?t():t)||document.body}function Gn(t,e){if(Mt&&t){const n=zu(t);return Tt.createPortal(e,n)}return e}function Zu(t){const e=i.useRef(t);return t&&(e.current=!0),!!e.current}const Yn=t=>ju(t.active,t.forceRender,t.destroyOnClose)?t.children:null;function ju(t,e,n){const o=Zu(t);return e||t?!0:o?!n:!1}const Ku={click:"onClick",touchstart:"onTouchStart"};function yi(t,e){const n=Object.assign({},e.props);for(const o of t){const r=Ku[o];n[r]=function(s){var a,l;s.stopPropagation(),(l=(a=e.props)[r])===null||l===void 0||l.call(a,s)}}return i.cloneElement(e,n)}const hr="adm-mask",Wu={default:.55,thin:.35,thick:.75},Uu={black:"0, 0, 0",white:"255, 255, 255"},Hu={visible:!0,destroyOnClose:!1,forceRender:!1,color:"black",opacity:"default",disableBodyScroll:!0,getContainer:null,stopPropagation:["click"]},Xn=t=>{const e=q(Hu,t),{locale:n}=Ie(),o=i.useRef(null);ys(o,e.visible&&e.disableBodyScroll);const r=i.useMemo(()=>{var d;const f=(d=Wu[e.opacity])!==null&&d!==void 0?d:e.opacity,g=Uu[e.color];return g?`rgba(${g}, ${f})`:e.color},[e.color,e.opacity]),[s,a]=i.useState(e.visible),l=H.useUnmountedRef(),{opacity:c}=De({opacity:e.visible?1:0,config:{precision:.01,mass:1,tension:250,friction:30,clamp:!0},onStart:()=>{a(!0)},onRest:()=>{var d,f;l.current||(a(e.visible),e.visible?(d=e.afterShow)===null||d===void 0||d.call(e):(f=e.afterClose)===null||f===void 0||f.call(e))}}),u=yi(e.stopPropagation,z(e,i.createElement(xe.div,{className:hr,ref:o,"aria-hidden":!0,style:Object.assign(Object.assign({},e.style),{background:r,opacity:c,display:s?void 0:"none"}),onClick:d=>{var f;d.target===d.currentTarget&&((f=e.onMaskClick)===null||f===void 0||f.call(e,d))}},e.onMaskClick&&i.createElement("div",{className:`${hr}-aria-button`,role:"button","aria-label":n.Mask.name,onClick:e.onMaskClick}),i.createElement("div",{className:`${hr}-content`},e.children))));return i.createElement(Yn,{active:s,forceRender:e.forceRender,destroyOnClose:e.destroyOnClose},Gn(e.getContainer,u))};function qu(t){return Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),Z.createElement("g",{id:"AddOutline-AddOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},Z.createElement("g",{id:"AddOutline-add"},Z.createElement("rect",{id:"AddOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),Z.createElement("path",{d:"M25.1,6.5 C25.3209139,6.5 25.5,6.6790861 25.5,6.9 L25.5,22.5 L41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L25.5,25.5 L25.5,41.1 C25.5,41.3209139 25.3209139,41.5 25.1,41.5 L22.9,41.5 C22.6790861,41.5 22.5,41.3209139 22.5,41.1 L22.5,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L22.5,22.5 L22.5,6.9 C22.5,6.6790861 22.6790861,6.5 22.9,6.5 L25.1,6.5 Z",id:"AddOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function xi(t){return Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),Z.createElement("g",{id:"CheckOutline-CheckOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},Z.createElement("g",{id:"CheckOutline-编组"},Z.createElement("rect",{id:"CheckOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),Z.createElement("path",{d:"M44.309608,12.6841286 L21.2180499,35.5661955 L21.2180499,35.5661955 C20.6343343,36.1446015 19.6879443,36.1446015 19.1042286,35.5661955 C19.0538201,35.5162456 19.0077648,35.4636155 18.9660627,35.4087682 C18.9113105,35.368106 18.8584669,35.3226694 18.808302,35.2729607 L3.6903839,20.2920499 C3.53346476,20.1365529 3.53231192,19.8832895 3.68780898,19.7263704 C3.7629255,19.6505669 3.86521855,19.6079227 3.97193622,19.6079227 L7.06238923,19.6079227 C7.16784214,19.6079227 7.26902895,19.6495648 7.34393561,19.7237896 L20.160443,32.4236157 L20.160443,32.4236157 L40.656066,12.115858 C40.7309719,12.0416387 40.8321549,12 40.9376034,12 L44.0280571,12 C44.248971,12 44.4280571,12.1790861 44.4280571,12.4 C44.4280571,12.5067183 44.3854124,12.609012 44.309608,12.6841286 Z",id:"CheckOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function Gu(t){return Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),Z.createElement("g",{id:"CloseCircleFill-CloseCircleFill",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},Z.createElement("g",{id:"CloseCircleFill-编组"},Z.createElement("rect",{id:"CloseCircleFill-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),Z.createElement("path",{d:"M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M18.6753876,16 L15.5637812,16 C15.4576916,16 15.3559474,16.0421451 15.2809323,16.1171635 C15.124726,16.2733766 15.1247316,16.5266426 15.2809447,16.6828489 L15.2809447,16.6828489 L22.299066,23.7006641 L14.6828159,31.3171619 C14.6078042,31.3921761 14.5656632,31.4939157 14.5656632,31.6 C14.5656632,31.8209139 14.7447493,32 14.9656632,32 L14.9656632,32 L18.0753284,32 C18.1814068,32 18.2831412,31.9578638 18.3581544,31.8828594 L18.3581544,31.8828594 L24.420066,25.8216641 L30.4818451,31.8828564 C30.5568585,31.9578626 30.6585942,32 30.7646741,32 L30.7646741,32 L33.8763476,32 C33.9824309,32 34.0841695,31.9578599 34.1591835,31.8828496 C34.315397,31.7266436 34.3154031,31.4733776 34.1591972,31.3171641 L34.1591972,31.3171641 L26.542066,23.6996641 L33.5591874,16.6828489 C33.6342057,16.6078338 33.6763508,16.5060896 33.6763508,16.4 C33.6763508,16.1790861 33.4972647,16 33.2763508,16 L33.2763508,16 L30.1637654,16 C30.0576705,16 29.9559218,16.0421493 29.8809058,16.1171741 L29.8809058,16.1171741 L24.420066,21.5786641 L18.9582218,16.1171488 C18.883208,16.0421394 18.7814701,16 18.6753876,16 L18.6753876,16 Z",id:"CloseCircleFill-形状结合",fill:"currentColor",fillRule:"nonzero"}))))}function Jn(t){return Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),Z.createElement("g",{id:"CloseOutline-CloseOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},Z.createElement("g",{id:"CloseOutline-编组"},Z.createElement("rect",{id:"CloseOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),Z.createElement("path",{d:"M10.6085104,8.11754663 L24.1768397,21.8195031 L24.1768397,21.8195031 L37.7443031,8.1175556 C37.8194278,8.04168616 37.9217669,7.999 38.0285372,7.999 L41.1040268,7.999 C41.3249407,7.999 41.5040268,8.1780861 41.5040268,8.399 C41.5040268,8.50440471 41.4624226,8.60554929 41.3882578,8.68044752 L26.2773302,23.9408235 L26.2773302,23.9408235 L41.5021975,39.3175645 C41.65763,39.4745475 41.6563731,39.7278104 41.4993901,39.8832429 C41.4244929,39.9574004 41.3233534,39.999 41.2179546,39.999 L38.1434012,39.999 C38.0366291,39.999 37.9342885,39.9563124 37.8591634,39.8804408 L24.1768397,26.0621438 L24.1768397,26.0621438 L10.4936501,39.8804497 C10.4185257,39.9563159 10.3161889,39.999 10.2094212,39.999 L7.13584526,39.999 C6.91493136,39.999 6.73584526,39.8199139 6.73584526,39.599 C6.73584526,39.4936017 6.77744443,39.3924627 6.85160121,39.3175656 L22.0763492,23.9408235 L22.0763492,23.9408235 L6.96554081,8.68044639 C6.81010226,8.52346929 6.81134951,8.27020637 6.9683266,8.11476782 C7.04322474,8.04060377 7.14436883,7.999 7.24977299,7.999 L10.3242852,7.999 C10.4310511,7.999 10.5333863,8.04168267 10.6085104,8.11754663 Z",id:"CloseOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function Yu(t){return Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),Z.createElement("g",{id:"DownOutline-DownOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},Z.createElement("g",null,Z.createElement("rect",{id:"DownOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),Z.createElement("path",{d:"M5.11219264,16.3947957 L22.6612572,34.5767382 L22.6612572,34.5767382 C23.2125856,35.1304785 24.0863155,35.1630514 24.6755735,34.6744571 L24.7825775,34.5767382 L42.8834676,16.3956061 C42.9580998,16.320643 43,16.2191697 43,16.1133896 L43,12.9866673 C43,12.7657534 42.8209139,12.5866673 42.6,12.5866673 C42.4936115,12.5866673 42.391606,12.6290496 42.316542,12.7044413 L23.7816937,31.3201933 L23.7816937,31.3201933 L5.6866816,12.7237117 C5.53262122,12.5653818 5.27937888,12.5619207 5.121049,12.7159811 C5.04365775,12.7912854 5,12.8946805 5,13.0026627 L5,16.1170064 C5,16.2206403 5.04022164,16.3202292 5.11219264,16.3947957 Z",id:"DownOutline-down",fill:"currentColor",fillRule:"nonzero"}))))}function Xu(t){return Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),Z.createElement("g",{id:"LeftOutline-LeftOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},Z.createElement("g",{id:"LeftOutline-编组"},Z.createElement("rect",{id:"LeftOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),Z.createElement("path",{d:"M31.7053818,5.11219264 L13.5234393,22.6612572 L13.5234393,22.6612572 C12.969699,23.2125856 12.9371261,24.0863155 13.4257204,24.6755735 L13.5234393,24.7825775 L31.7045714,42.8834676 C31.7795345,42.9580998 31.8810078,43 31.9867879,43 L35.1135102,43 C35.3344241,43 35.5135102,42.8209139 35.5135102,42.6 C35.5135102,42.4936115 35.4711279,42.391606 35.3957362,42.316542 L16.7799842,23.7816937 L16.7799842,23.7816937 L35.3764658,5.6866816 C35.5347957,5.53262122 35.5382568,5.27937888 35.3841964,5.121049 C35.3088921,5.04365775 35.205497,5 35.0975148,5 L31.9831711,5 C31.8795372,5 31.7799483,5.04022164 31.7053818,5.11219264 Z",id:"LeftOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function Ju(t){return Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),Z.createElement("g",{id:"RightOutline-RightOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},Z.createElement("g",{id:"RightOutline-RightOutlined"},Z.createElement("rect",{id:"RightOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),Z.createElement("path",{d:"M17.3947957,5.11219264 L35.5767382,22.6612572 L35.5767382,22.6612572 C36.1304785,23.2125856 36.1630514,24.0863155 35.6744571,24.6755735 L35.5767382,24.7825775 L17.3956061,42.8834676 C17.320643,42.9580998 17.2191697,43 17.1133896,43 L13.9866673,43 C13.7657534,43 13.5866673,42.8209139 13.5866673,42.6 C13.5866673,42.4936115 13.6290496,42.391606 13.7044413,42.316542 L32.3201933,23.7816937 L32.3201933,23.7816937 L13.7237117,5.6866816 C13.5653818,5.53262122 13.5619207,5.27937888 13.7159811,5.121049 C13.7912854,5.04365775 13.8946805,5 14.0026627,5 L17.1170064,5 C17.2206403,5 17.3202292,5.04022164 17.3947957,5.11219264 Z",id:"RightOutline-right",fill:"currentColor",fillRule:"nonzero"}))))}function Qu(t){return Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),Z.createElement("g",{id:"SearchOutline-SearchOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},Z.createElement("g",{id:"SearchOutline-编组"},Z.createElement("rect",{id:"SearchOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),Z.createElement("path",{d:"M10.2434135,10.1505371 C17.2346315,3.28315429 28.5696354,3.28315429 35.5608534,10.1505371 C42.3159331,16.7859644 42.5440954,27.4048667 36.2453405,34.3093889 L43.7095294,41.6422249 C43.8671196,41.7970419 43.8693677,42.0502979 43.7145508,42.2078881 C43.7128864,42.2095822 43.7112069,42.2112616 43.7095126,42.2129259 L42.1705322,43.7246464 C42.014915,43.8775072 41.7655181,43.8775006 41.6099089,43.7246316 L34.0775268,36.3248916 L34.0775268,36.3248916 C27.0485579,41.8551751 16.7593545,41.4200547 10.2434135,35.0195303 C3.25219551,28.1521474 3.25219551,17.0179199 10.2434135,10.1505371 Z M12.3532001,12.2229532 C6.52718516,17.9457722 6.52718516,27.2242951 12.3532001,32.9471142 C18.1792151,38.6699332 27.6250517,38.6699332 33.4510667,32.9471142 C39.2770817,27.2242951 39.2770817,17.9457722 33.4510667,12.2229532 C27.6250517,6.50013419 18.1792151,6.50013419 12.3532001,12.2229532 Z",id:"SearchOutline-形状",fill:"currentColor",fillRule:"nonzero"}))))}const Ru={closeOnMaskClick:!1,closeIcon:i.createElement(Jn,null),destroyOnClose:!1,disableBodyScroll:!0,forceRender:!1,getContainer:()=>document.body,mask:!0,showCloseButton:!1,stopPropagation:["click"],visible:!1};function ed(t){const[e,n]=i.useState(t);return H.useIsomorphicLayoutEffect(()=>{n(t)},[t]),e}function td(t,e,n){return Math.max(e,Math.min(t,n))}const pe={toVector(t,e){return t===void 0&&(t=e),Array.isArray(t)?t:[t,t]},add(t,e){return[t[0]+e[0],t[1]+e[1]]},sub(t,e){return[t[0]-e[0],t[1]-e[1]]},addTo(t,e){t[0]+=e[0],t[1]+=e[1]},subTo(t,e){t[0]-=e[0],t[1]-=e[1]}};function Ci(t,e,n){return e===0||Math.abs(e)===1/0?Math.pow(t,n*5):t*e*n/(e+n*t)}function Si(t,e,n,o=.15){return o===0?td(t,e,n):t<e?-Ci(e-t,n-e,o)+e:t>n?+Ci(t-n,n-e,o)+n:t}function nd(t,[e,n],[o,r]){const[[s,a],[l,c]]=t;return[Si(e,s,a,o),Si(n,l,c,r)]}function od(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function rd(t){var e=od(t,"string");return typeof e=="symbol"?e:String(e)}function Ce(t,e,n){return e=rd(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ki(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function de(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ki(Object(n),!0).forEach(function(o){Ce(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ki(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}const wi={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function Ei(t){return t?t[0].toUpperCase()+t.slice(1):""}const sd=["enter","leave"];function id(t=!1,e){return t&&!sd.includes(e)}function ad(t,e="",n=!1){const o=wi[t],r=o&&o[e]||e;return"on"+Ei(t)+Ei(r)+(id(n,r)?"Capture":"")}const ld=["gotpointercapture","lostpointercapture"];function cd(t){let e=t.substring(2).toLowerCase();const n=!!~e.indexOf("passive");n&&(e=e.replace("passive",""));const o=ld.includes(e)?"capturecapture":"capture",r=!!~e.indexOf(o);return r&&(e=e.replace("capture","")),{device:e,capture:r,passive:n}}function ud(t,e=""){const n=wi[t],o=n&&n[e]||e;return t+o}function Qn(t){return"touches"in t}function Ii(t){return Qn(t)?"touch":"pointerType"in t?t.pointerType:"mouse"}function dd(t){return Array.from(t.touches).filter(e=>{var n,o;return e.target===t.currentTarget||((n=t.currentTarget)===null||n===void 0||(o=n.contains)===null||o===void 0?void 0:o.call(n,e.target))})}function fd(t){return t.type==="touchend"||t.type==="touchcancel"?t.changedTouches:t.targetTouches}function _i(t){return Qn(t)?fd(t)[0]:t}function gr(t,e){try{const n=e.clientX-t.clientX,o=e.clientY-t.clientY,r=(e.clientX+t.clientX)/2,s=(e.clientY+t.clientY)/2,a=Math.hypot(n,o);return{angle:-(Math.atan2(n,o)*180)/Math.PI,distance:a,origin:[r,s]}}catch(n){}return null}function md(t){return dd(t).map(e=>e.identifier)}function Pi(t,e){const[n,o]=Array.from(t.touches).filter(r=>e.includes(r.identifier));return gr(n,o)}function vr(t){const e=_i(t);return Qn(t)?e.identifier:e.pointerId}function $i(t){const e=_i(t);return[e.clientX,e.clientY]}const Fi=40,Ti=800;function Mi(t){let{deltaX:e,deltaY:n,deltaMode:o}=t;return o===1?(e*=Fi,n*=Fi):o===2&&(e*=Ti,n*=Ti),[e,n]}function pd(t){const e={};if("buttons"in t&&(e.buttons=t.buttons),"shiftKey"in t){const{shiftKey:n,altKey:o,metaKey:r,ctrlKey:s}=t;Object.assign(e,{shiftKey:n,altKey:o,metaKey:r,ctrlKey:s})}return e}function Rn(t,...e){return typeof t=="function"?t(...e):t}function hd(){}function gd(...t){return t.length===0?hd:t.length===1?t[0]:function(){let e;for(const n of t)e=n.apply(this,arguments)||e;return e}}function Ni(t,e){return Object.assign({},e,t||{})}const vd=32;class Oi{constructor(e,n,o){this.ctrl=e,this.args=n,this.key=o,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:n,ingKey:o,args:r}=this;n[o]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const n=this.state,o=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=e.target,n.currentTarget=e.currentTarget,n.lastOffset=o.from?Rn(o.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=e.timeStamp)}computeValues(e){const n=this.state;n._values=e,n.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:n,config:o,shared:r}=this;n.args=this.args;let s=0;if(e&&(n.event=e,o.preventDefault&&e.cancelable&&n.event.preventDefault(),n.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,pd(e)),r.down=r.pressed=r.buttons%2===1||r.touches>0,s=e.timeStamp-n.timeStamp,n.timeStamp=e.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const E=n._delta.map(Math.abs);pe.addTo(n._distance,E)}this.axisIntent&&this.axisIntent(e);const[a,l]=n._movement,[c,u]=o.threshold,{_step:d,values:f}=n;if(o.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(a)>=c&&f[0]),d[1]===!1&&(d[1]=Math.abs(l)>=u&&f[1])):(d[0]===!1&&(d[0]=Math.abs(a)>=c&&Math.sign(a)*c),d[1]===!1&&(d[1]=Math.abs(l)>=u&&Math.sign(l)*u)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const g=[0,0];if(o.hasCustomTransform){const[E,I]=f;g[0]=d[0]!==!1?E-d[0]:0,g[1]=d[1]!==!1?I-d[1]:0}else g[0]=d[0]!==!1?a-d[0]:0,g[1]=d[1]!==!1?l-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(g);const b=n.offset,x=n._active&&!n._blocked||n.active;x&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=r[this.ingKey]=n._active,e&&(n.first&&("bounds"in o&&(n._bounds=Rn(o.bounds,n)),this.setup&&this.setup()),n.movement=g,this.computeOffset()));const[y,h]=n.offset,[[v,k],[S,C]]=n._bounds;n.overflow=[y<v?-1:y>k?1:0,h<S?-1:h>C?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const w=n._active?o.rubberband||[0,0]:[0,0];if(n.offset=nd(n._bounds,n.offset,w),n.delta=pe.sub(n.offset,b),this.computeMovement(),x&&(!n.last||s>vd)){n.delta=pe.sub(n.offset,b);const E=n.delta.map(Math.abs);pe.addTo(n.distance,E),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&s>0&&(n.velocity=[E[0]/s,E[1]/s],n.timeDelta=s)}}emit(){const e=this.state,n=this.shared,o=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!o.triggerAllEvents)return;const r=this.handler(de(de(de({},n),e),{},{[this.aliasKey]:e.values}));r!==void 0&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function bd([t,e],n){const o=Math.abs(t),r=Math.abs(e);if(o>r&&o>n)return"x";if(r>o&&r>n)return"y"}class Ai extends Oi{constructor(...e){super(...e),Ce(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=pe.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=pe.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const n=this.state,o=this.config;if(!n.axis&&e){const r=typeof o.axisThreshold=="object"?o.axisThreshold[Ii(e)]:o.axisThreshold;n.axis=bd(n._movement,r)}n._blocked=(o.lockDirection||!!o.axis)&&!n.axis||!!o.axis&&o.axis!==n.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0;break}}}const yd=t=>t,Di=.15,Li={enabled(t=!0){return t},eventOptions(t,e,n){return de(de({},n.shared.eventOptions),t)},preventDefault(t=!1){return t},triggerAllEvents(t=!1){return t},rubberband(t=0){switch(t){case!0:return[Di,Di];case!1:return[0,0];default:return pe.toVector(t)}},from(t){if(typeof t=="function")return t;if(t!=null)return pe.toVector(t)},transform(t,e,n){const o=t||n.shared.transform;return this.hasCustomTransform=!!o,o||yd},threshold(t){return pe.toVector(t,0)}},xd=0,Zt=de(de({},Li),{},{axis(t,e,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(t=xd){return t},bounds(t={}){if(typeof t=="function")return s=>Zt.bounds(t(s));if("current"in t)return()=>t.current;if(typeof HTMLElement=="function"&&t instanceof HTMLElement)return t;const{left:e=-1/0,right:n=1/0,top:o=-1/0,bottom:r=1/0}=t;return[[e,n],[o,r]]}}),Bi={ArrowRight:(t,e=1)=>[t*e,0],ArrowLeft:(t,e=1)=>[-1*t*e,0],ArrowUp:(t,e=1)=>[0,-1*t*e],ArrowDown:(t,e=1)=>[0,t*e]};class Cd extends Ai{constructor(...e){super(...e),Ce(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const n=e._bounds.getBoundingClientRect(),o=e.currentTarget.getBoundingClientRect(),r={left:n.left-o.left+e.offset[0],right:n.right-o.right+e.offset[0],top:n.top-o.top+e.offset[1],bottom:n.bottom-o.bottom+e.offset[1]};e._bounds=Zt.bounds(r)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const n=this.config,o=this.state;if(e.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(e.buttons):n.pointerButtons!==-1&&n.pointerButtons!==e.buttons))return;const r=this.ctrl.setEventIds(e);n.pointerCapture&&e.target.setPointerCapture(e.pointerId),!(r&&r.size>1&&o._pointerActive)&&(this.start(e),this.setupPointer(e),o._pointerId=vr(e),o._pointerActive=!0,this.computeValues($i(e)),this.computeInitial(),n.preventScrollAxis&&Ii(e)!=="mouse"?(o._active=!1,this.setupScrollPrevention(e)):n.delay>0?(this.setupDelayTrigger(e),n.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const n=this.state,o=this.config;if(!n._pointerActive)return;const r=vr(e);if(n._pointerId!==void 0&&r!==n._pointerId)return;const s=$i(e);if(document.pointerLockElement===e.target?n._delta=[e.movementX,e.movementY]:(n._delta=pe.sub(s,n._values),this.computeValues(s)),pe.addTo(n._movement,n._delta),this.compute(e),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(e);return}if(o.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===o.preventScrollAxis||o.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}else return;this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(l){}const n=this.state,o=this.config;if(!n._active||!n._pointerActive)return;const r=vr(e);if(n._pointerId!==void 0&&r!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[s,a]=n._distance;if(n.tap=s<=o.tapsThreshold&&a<=o.tapsThreshold,n.tap&&o.filterTaps)n._force=!0;else{const[l,c]=n._delta,[u,d]=n._movement,[f,g]=o.swipe.velocity,[b,x]=o.swipe.distance,y=o.swipe.duration;if(n.elapsedTime<y){const h=Math.abs(l/n.timeDelta),v=Math.abs(c/n.timeDelta);h>f&&Math.abs(u)>b&&(n.swipe[0]=Math.sign(l)),v>g&&Math.abs(d)>x&&(n.swipe[1]=Math.sign(c))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const n=this.config,o=n.device;n.pointerLock&&e.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,o,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,o,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,o,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,Sd(e);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){const n=Bi[e.key];if(n){const o=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),o._delta=n(this.config.keyboardDisplacement,r),o._keyboardActive=!0,pe.addTo(o._movement,o._delta),this.compute(e),this.emit()}}keyUp(e){e.key in Bi&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const n=this.config.device;e(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(n,"change",this.pointerMove.bind(this)),e(n,"end",this.pointerUp.bind(this)),e(n,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function Sd(t){"persist"in t&&typeof t.persist=="function"&&t.persist()}const vn=typeof window!="undefined"&&window.document&&window.document.createElement;function Vi(){return vn&&"ontouchstart"in window}function kd(){return Vi()||vn&&window.navigator.maxTouchPoints>1}function wd(){return vn&&"onpointerdown"in window}function Ed(){return vn&&"exitPointerLock"in window.document}function Id(){try{return"constructor"in GestureEvent}catch(t){return!1}}const Le={isBrowser:vn,gesture:Id(),touch:Vi(),touchscreen:kd(),pointer:wd(),pointerLock:Ed()},_d=250,Pd=180,$d=.5,Fd=50,Td=250,Md=10,zi={mouse:0,touch:0,pen:8},Nd=de(de({},Zt),{},{device(t,e,{pointer:{touch:n=!1,lock:o=!1,mouse:r=!1}={}}){return this.pointerLock=o&&Le.pointerLock,Le.touch&&n?"touch":this.pointerLock?"mouse":Le.pointer&&!r?"pointer":Le.touch?"touch":"mouse"},preventScrollAxis(t,e,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&t?_d:void 0,!(!Le.touchscreen||n===!1))return t||(n!==void 0?"y":void 0)},pointerCapture(t,e,{pointer:{capture:n=!0,buttons:o=1,keys:r=!0}={}}){return this.pointerButtons=o,this.keys=r,!this.pointerLock&&this.device==="pointer"&&n},threshold(t,e,{filterTaps:n=!1,tapsThreshold:o=3,axis:r=void 0}){const s=pe.toVector(t,n?o:r?1:0);return this.filterTaps=n,this.tapsThreshold=o,s},swipe({velocity:t=$d,distance:e=Fd,duration:n=Td}={}){return{velocity:this.transform(pe.toVector(t)),distance:this.transform(pe.toVector(e)),duration:n}},delay(t=0){switch(t){case!0:return Pd;case!1:return 0;default:return t}},axisThreshold(t){return t?de(de({},zi),t):zi},keyboardDisplacement(t=Md){return t}});function Zi(t){const[e,n]=t.overflow,[o,r]=t._delta,[s,a]=t._direction;(e<0&&o>0&&s<0||e>0&&o<0&&s>0)&&(t._movement[0]=t._movementBound[0]),(n<0&&r>0&&a<0||n>0&&r<0&&a>0)&&(t._movement[1]=t._movementBound[1])}const Od=30,Ad=100;class Dd extends Oi{constructor(...e){super(...e),Ce(this,"ingKey","pinching"),Ce(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();const e=this.state;e._touchIds=[],e.canceled=!1,e.cancel=this.cancel.bind(this),e.turns=0}computeOffset(){const{type:e,movement:n,lastOffset:o}=this.state;e==="wheel"?this.state.offset=pe.add(n,o):this.state.offset=[(1+n[0])*o[0],n[1]+o[1]]}computeMovement(){const{offset:e,lastOffset:n}=this.state;this.state.movement=[e[0]/n[0],e[1]-n[1]]}axisIntent(){const e=this.state,[n,o]=e._movement;if(!e.axis){const r=Math.abs(n)*Od-Math.abs(o);r<0?e.axis="angle":r>0&&(e.axis="scale")}}restrictToAxis(e){this.config.lockDirection&&(this.state.axis==="scale"?e[1]=0:this.state.axis==="angle"&&(e[0]=0))}cancel(){const e=this.state;e.canceled||setTimeout(()=>{e.canceled=!0,e._active=!1,this.compute(),this.emit()},0)}touchStart(e){this.ctrl.setEventIds(e);const n=this.state,o=this.ctrl.touchIds;if(n._active&&n._touchIds.every(s=>o.has(s))||o.size<2)return;this.start(e),n._touchIds=Array.from(o).slice(0,2);const r=Pi(e,n._touchIds);r&&this.pinchStart(e,r)}pointerStart(e){if(e.buttons!=null&&e.buttons%2!==1)return;this.ctrl.setEventIds(e),e.target.setPointerCapture(e.pointerId);const n=this.state,o=n._pointerEvents,r=this.ctrl.pointerIds;if(n._active&&Array.from(o.keys()).every(a=>r.has(a))||(o.size<2&&o.set(e.pointerId,e),n._pointerEvents.size<2))return;this.start(e);const s=gr(...Array.from(o.values()));s&&this.pinchStart(e,s)}pinchStart(e,n){const o=this.state;o.origin=n.origin,this.computeValues([n.distance,n.angle]),this.computeInitial(),this.compute(e),this.emit()}touchMove(e){if(!this.state._active)return;const n=Pi(e,this.state._touchIds);n&&this.pinchMove(e,n)}pointerMove(e){const n=this.state._pointerEvents;if(n.has(e.pointerId)&&n.set(e.pointerId,e),!this.state._active)return;const o=gr(...Array.from(n.values()));o&&this.pinchMove(e,o)}pinchMove(e,n){const o=this.state,r=o._values[1],s=n.angle-r;let a=0;Math.abs(s)>270&&(a+=Math.sign(s)),this.computeValues([n.distance,n.angle-360*a]),o.origin=n.origin,o.turns=a,o._movement=[o._values[0]/o._initial[0]-1,o._values[1]-o._initial[1]],this.compute(e),this.emit()}touchEnd(e){this.ctrl.setEventIds(e),this.state._active&&this.state._touchIds.some(n=>!this.ctrl.touchIds.has(n))&&(this.state._active=!1,this.compute(e),this.emit())}pointerEnd(e){const n=this.state;this.ctrl.setEventIds(e);try{e.target.releasePointerCapture(e.pointerId)}catch(o){}n._pointerEvents.has(e.pointerId)&&n._pointerEvents.delete(e.pointerId),n._active&&n._pointerEvents.size<2&&(n._active=!1,this.compute(e),this.emit())}gestureStart(e){e.cancelable&&e.preventDefault();const n=this.state;n._active||(this.start(e),this.computeValues([e.scale,e.rotation]),n.origin=[e.clientX,e.clientY],this.compute(e),this.emit())}gestureMove(e){if(e.cancelable&&e.preventDefault(),!this.state._active)return;const n=this.state;this.computeValues([e.scale,e.rotation]),n.origin=[e.clientX,e.clientY];const o=n._movement;n._movement=[e.scale-1,e.rotation],n._delta=pe.sub(n._movement,o),this.compute(e),this.emit()}gestureEnd(e){this.state._active&&(this.state._active=!1,this.compute(e),this.emit())}wheel(e){const n=this.config.modifierKey;n&&(Array.isArray(n)?!n.find(o=>e[o]):!e[n])||(this.state._active?this.wheelChange(e):this.wheelStart(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(e){this.start(e),this.wheelChange(e)}wheelChange(e){"uv"in e||e.cancelable&&e.preventDefault();const o=this.state;o._delta=[-Mi(e)[1]/Ad*o.offset[0],0],pe.addTo(o._movement,o._delta),Zi(o),this.state.origin=[e.clientX,e.clientY],this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){const n=this.config.device;n&&(e(n,"start",this[n+"Start"].bind(this)),e(n,"change",this[n+"Move"].bind(this)),e(n,"end",this[n+"End"].bind(this)),e(n,"cancel",this[n+"End"].bind(this)),e("lostPointerCapture","",this[n+"End"].bind(this))),this.config.pinchOnWheel&&e("wheel","",this.wheel.bind(this),{passive:!1})}}const Ld=de(de({},Li),{},{device(t,e,{shared:n,pointer:{touch:o=!1}={}}){if(n.target&&!Le.touch&&Le.gesture)return"gesture";if(Le.touch&&o)return"touch";if(Le.touchscreen){if(Le.pointer)return"pointer";if(Le.touch)return"touch"}},bounds(t,e,{scaleBounds:n={},angleBounds:o={}}){const r=a=>{const l=Ni(Rn(n,a),{min:-1/0,max:1/0});return[l.min,l.max]},s=a=>{const l=Ni(Rn(o,a),{min:-1/0,max:1/0});return[l.min,l.max]};return typeof n!="function"&&typeof o!="function"?[r(),s()]:a=>[r(a),s(a)]},threshold(t,e,n){return this.lockDirection=n.axis==="lock",pe.toVector(t,this.lockDirection?[.1,3]:0)},modifierKey(t){return t===void 0?"ctrlKey":t},pinchOnWheel(t=!0){return t}});de(de({},Zt),{},{mouseOnly:(t=!0)=>t});class Bd extends Ai{constructor(...e){super(...e),Ce(this,"ingKey","wheeling")}wheel(e){this.state._active||this.start(e),this.wheelChange(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(e){const n=this.state;n._delta=Mi(e),pe.addTo(n._movement,n._delta),Zi(n),this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){e("wheel","",this.wheel.bind(this))}}const Vd=Zt;de(de({},Zt),{},{mouseOnly:(t=!0)=>t});const br=new Map,yr=new Map;function xr(t){br.set(t.key,t.engine),yr.set(t.key,t.resolver)}const ji={key:"drag",engine:Cd,resolver:Nd},zd={key:"pinch",engine:Dd,resolver:Ld},Zd={key:"wheel",engine:Bd,resolver:Vd};function jd(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,s;for(s=0;s<o.length;s++)r=o[s],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function Kd(t,e){if(t==null)return{};var n=jd(t,e),o,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)o=s[r],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}const Wd={target(t){if(t)return()=>"current"in t?t.current:t},enabled(t=!0){return t},window(t=Le.isBrowser?window:void 0){return t},eventOptions({passive:t=!0,capture:e=!1}={}){return{passive:t,capture:e}},transform(t){return t}},Ud=["target","eventOptions","window","enabled","transform"];function eo(t={},e){const n={};for(const[o,r]of Object.entries(e))switch(typeof r){case"function":n[o]=r.call(n,t[o],o,t);break;case"object":n[o]=eo(t[o],r);break;case"boolean":r&&(n[o]=t[o]);break}return n}function Hd(t,e,n={}){const o=t,{target:r,eventOptions:s,window:a,enabled:l,transform:c}=o,u=Kd(o,Ud);if(n.shared=eo({target:r,eventOptions:s,window:a,enabled:l,transform:c},Wd),e){const d=yr.get(e);n[e]=eo(de({shared:n.shared},u),d)}else for(const d in u){const f=yr.get(d);f&&(n[d]=eo(de({shared:n.shared},u[d]),f))}return n}class Ki{constructor(e,n){Ce(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=n}add(e,n,o,r,s){const a=this._listeners,l=ud(n,o),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=de(de({},c),s);e.addEventListener(l,r,u);const d=()=>{e.removeEventListener(l,r,u),a.delete(d)};return a.add(d),d}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}}class qd{constructor(){Ce(this,"_timeouts",new Map)}add(e,n,o=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(n,o,...r))}remove(e){const n=this._timeouts.get(e);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class Gd{constructor(e){Ce(this,"gestures",new Set),Ce(this,"_targetEventStore",new Ki(this)),Ce(this,"gestureEventStores",{}),Ce(this,"gestureTimeoutStores",{}),Ce(this,"handlers",{}),Ce(this,"config",{}),Ce(this,"pointerIds",new Set),Ce(this,"touchIds",new Set),Ce(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),Yd(this,e)}setEventIds(e){if(Qn(e))return this.touchIds=new Set(md(e)),this.touchIds;if("pointerId"in e)return e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId),this.pointerIds}applyHandlers(e,n){this.handlers=e,this.nativeHandlers=n}applyConfig(e,n){this.config=Hd(e,n,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const n=this.config.shared,o={};let r;if(!(n.target&&(r=n.target(),!r))){if(n.enabled){for(const a of this.gestures){const l=this.config[a],c=Wi(o,l.eventOptions,!!r);if(l.enabled){const u=br.get(a);new u(this,e,a).bind(c)}}const s=Wi(o,n.eventOptions,!!r);for(const a in this.nativeHandlers)s(a,"",l=>this.nativeHandlers[a](de(de({},this.state.shared),{},{event:l,args:e})),void 0,!0)}for(const s in o)o[s]=gd(...o[s]);if(!r)return o;for(const s in o){const{device:a,capture:l,passive:c}=cd(s);this._targetEventStore.add(r,a,"",o[s],{capture:l,passive:c})}}}}function jt(t,e){t.gestures.add(e),t.gestureEventStores[e]=new Ki(t,e),t.gestureTimeoutStores[e]=new qd}function Yd(t,e){e.drag&&jt(t,"drag"),e.wheel&&jt(t,"wheel"),e.scroll&&jt(t,"scroll"),e.move&&jt(t,"move"),e.pinch&&jt(t,"pinch"),e.hover&&jt(t,"hover")}const Wi=(t,e,n)=>(o,r,s,a={},l=!1)=>{var c,u;const d=(c=a.capture)!==null&&c!==void 0?c:e.capture,f=(u=a.passive)!==null&&u!==void 0?u:e.passive;let g=l?o:ad(o,r,d);n&&f&&(g+="Passive"),t[g]=t[g]||[],t[g].push(s)},Xd=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function Jd(t){const e={},n={},o=new Set;for(let r in t)Xd.test(r)?(o.add(RegExp.lastMatch),n[r]=t[r]):e[r]=t[r];return[n,e,o]}function Kt(t,e,n,o,r,s){if(!t.has(n)||!br.has(o))return;const a=n+"Start",l=n+"End",c=u=>{let d;return u.first&&a in e&&e[a](u),n in e&&(d=e[n](u)),u.last&&l in e&&e[l](u),d};r[o]=c,s[o]=s[o]||{}}function Qd(t,e){const[n,o,r]=Jd(t),s={};return Kt(r,n,"onDrag","drag",s,e),Kt(r,n,"onWheel","wheel",s,e),Kt(r,n,"onScroll","scroll",s,e),Kt(r,n,"onPinch","pinch",s,e),Kt(r,n,"onMove","move",s,e),Kt(r,n,"onHover","hover",s,e),{handlers:s,config:e,nativeHandlers:o}}function Cr(t,e={},n,o){const r=i.useMemo(()=>new Gd(t),[]);if(r.applyHandlers(t,o),r.applyConfig(e,n),i.useEffect(r.effect.bind(r)),i.useEffect(()=>r.clean.bind(r),[]),e.target===void 0)return r.bind.bind(r)}function to(t,e){return xr(ji),Cr({drag:t},e||{},"drag")}function Rd(t,e){return xr(Zd),Cr({wheel:t},e||{},"wheel")}function e1(t){return t.forEach(xr),function(n,o){const{handlers:r,nativeHandlers:s,config:a}=Qd(n,o||{});return Cr(r,a,void 0,s)}}const no="adm-popup",t1=Object.assign(Object.assign({},Ru),{closeOnSwipe:!1,position:"bottom"}),Wt=t=>{const{locale:e,popup:n={}}=Ie(),o=q(t1,n,t),r=B(`${no}-body`,o.bodyClassName,`${no}-body-position-${o.position}`),[s,a]=i.useState(o.visible),l=i.useRef(null);ys(l,o.disableBodyScroll&&s?"strict":!1),H.useIsomorphicLayoutEffect(()=>{o.visible&&a(!0)},[o.visible]);const c=H.useUnmountedRef(),{percent:u}=De({percent:o.visible?0:100,config:{precision:.1,mass:.4,tension:300,friction:30},onRest:()=>{var b,x;c.current||(a(o.visible),o.visible?(b=o.afterShow)===null||b===void 0||b.call(o):(x=o.afterClose)===null||x===void 0||x.call(o))}}),d=to(({swipe:[,b]})=>{var x;o.closeOnSwipe&&(b===1&&o.position==="bottom"||b===-1&&o.position==="top")&&((x=o.onClose)===null||x===void 0||x.call(o))},{axis:"y",enabled:["top","bottom"].includes(o.position)}),f=ed(s&&o.visible),g=yi(o.stopPropagation,z(o,i.createElement("div",Object.assign({className:no,onClick:o.onClick,style:{display:s?void 0:"none",touchAction:["top","bottom"].includes(o.position)?"none":"auto"}},d()),o.mask&&i.createElement(Xn,{visible:f,forceRender:o.forceRender,destroyOnClose:o.destroyOnClose,onMaskClick:b=>{var x,y;(x=o.onMaskClick)===null||x===void 0||x.call(o,b),o.closeOnMaskClick&&((y=o.onClose)===null||y===void 0||y.call(o))},className:o.maskClassName,style:o.maskStyle,disableBodyScroll:!1,stopPropagation:o.stopPropagation}),i.createElement(xe.div,{className:r,style:Object.assign(Object.assign({},o.bodyStyle),{pointerEvents:u.to(b=>b===0?"unset":"none"),transform:u.to(b=>o.position==="bottom"?`translate(0, ${b}%)`:o.position==="top"?`translate(0, -${b}%)`:o.position==="left"?`translate(-${b}%, 0)`:o.position==="right"?`translate(${b}%, 0)`:"none")}),ref:l},o.showCloseButton&&i.createElement("a",{className:B(`${no}-close-icon`,"adm-plain-anchor"),onClick:()=>{var b;(b=o.onClose)===null||b===void 0||b.call(o)},role:"button","aria-label":e.common.close},o.closeIcon),o.children))));return i.createElement(Yn,{active:s,forceRender:o.forceRender,destroyOnClose:o.destroyOnClose},Gn(o.getContainer,g))},Ui="adm-safe-area",bn=t=>z(t,i.createElement("div",{className:B(Ui,`${Ui}-position-${t.position}`)})),oo=Object.assign({},zl),{version:n1,render:o1,unmountComponentAtNode:r1}=oo;let ro;try{Number((n1||"").split(".")[0])>=18&&oo.createRoot&&(ro=oo.createRoot)}catch(t){}function Hi(t){const{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:e}=oo;e&&typeof e=="object"&&(e.usingClientEntryPoint=t)}const so="__antd_mobile_root__";function s1(t,e){o1(t,e)}function i1(t,e){Hi(!0);const n=e[so]||ro(e);Hi(!1),n.render(t),e[so]=n}function a1(t,e){if(ro){i1(t,e);return}s1(t,e)}function l1(t){return r1(t)}function c1(t){return vt(this,void 0,void 0,function*(){return Promise.resolve().then(()=>{var e;(e=t[so])===null||e===void 0||e.unmount(),delete t[so]})})}function u1(t){return ro?c1(t):l1(t)}function Sr(t){const e=document.createElement("div");document.body.appendChild(e);function n(){u1(e)&&e.parentNode&&e.parentNode.removeChild(e)}return a1(t,e),n}function yn(t){const e=i.forwardRef((r,s)=>{const[a,l]=i.useState(!1),c=i.useRef(!1),[u,d]=i.useState(t),f=i.useRef(0);i.useEffect(()=>{c.current?b():l(!0)},[]);function g(){var x,y;c.current=!0,l(!1),(y=(x=u.props).onClose)===null||y===void 0||y.call(x)}function b(){var x,y;o(),(y=(x=u.props).afterClose)===null||y===void 0||y.call(x)}return i.useImperativeHandle(s,()=>({close:g,replace:x=>{var y,h;f.current++,(h=(y=u.props).afterClose)===null||h===void 0||h.call(y),d(x)}})),i.cloneElement(u,Object.assign(Object.assign({},u.props),{key:f.current,visible:a,onClose:g,afterClose:b}))}),n=i.createRef(),o=Sr(i.createElement(e,{ref:n}));return{close:()=>vt(this,void 0,void 0,function*(){var r,s,a;n.current?(a=n.current)===null||a===void 0||a.close():(o(),(s=(r=t.props).afterClose)===null||s===void 0||s.call(r))}),replace:r=>{var s;(s=n.current)===null||s===void 0||s.replace(r)},isRendered:()=>!!n.current}}const Ee="adm-action-sheet",d1={visible:!1,actions:[],cancelText:"",closeOnAction:!1,closeOnMaskClick:!0,safeArea:!0,destroyOnClose:!1,forceRender:!1},qi=t=>{const e=q(d1,t),{styles:n}=e;return i.createElement(Wt,{visible:e.visible,onMaskClick:()=>{var o,r;(o=e.onMaskClick)===null||o===void 0||o.call(e),e.closeOnMaskClick&&((r=e.onClose)===null||r===void 0||r.call(e))},afterClose:e.afterClose,className:B(`${Ee}-popup`,e.popupClassName),style:e.popupStyle,getContainer:e.getContainer,destroyOnClose:e.destroyOnClose,forceRender:e.forceRender,bodyStyle:n==null?void 0:n.body,maskStyle:n==null?void 0:n.mask},z(e,i.createElement("div",{className:Ee},e.extra&&i.createElement("div",{className:`${Ee}-extra`},e.extra),i.createElement("div",{className:`${Ee}-button-list`},e.actions.map((o,r)=>i.createElement("div",{key:o.key,className:`${Ee}-button-item-wrapper`},i.createElement("a",{className:B("adm-plain-anchor",`${Ee}-button-item`,{[`${Ee}-button-item-danger`]:o.danger,[`${Ee}-button-item-disabled`]:o.disabled,[`${Ee}-button-item-bold`]:o.bold}),onClick:()=>{var s,a,l;(s=o.onClick)===null||s===void 0||s.call(o),(a=e.onAction)===null||a===void 0||a.call(e,o,r),e.closeOnAction&&((l=e.onClose)===null||l===void 0||l.call(e))},role:"option","aria-disabled":o.disabled},i.createElement("div",{className:`${Ee}-button-item-name`},o.text),o.description&&i.createElement("div",{className:`${Ee}-button-item-description`},o.description))))),e.cancelText&&i.createElement("div",{className:`${Ee}-cancel`,role:"option","aria-label":e.cancelText},i.createElement("div",{className:`${Ee}-button-item-wrapper`},i.createElement("a",{className:B("adm-plain-anchor",`${Ee}-button-item`),onClick:e.onClose},i.createElement("div",{className:`${Ee}-button-item-name`},e.cancelText)))),e.safeArea&&i.createElement(bn,{position:"bottom"}))))};function f1(t){return yn(i.createElement(qi,Object.assign({},t)))}const m1=ye(qi,{show:f1}),Gi="adm-auto-center",p1=t=>z(t,i.createElement("div",{className:Gi},i.createElement("div",{className:`${Gi}-content`},t.children)));var Ct={},Yi;function h1(){if(Yi)return Ct;Yi=1;var t=Ct&&Ct.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.staged=void 0;const e=t(i);function n(s){return typeof s=="function"?e.default.createElement(o,{stage:s}):s}function o(s){const a=s.stage();return n(a)}function r(s){return function(l,c){const u=s(l,c);return n(u)}}return Ct.staged=r,Ct}var Xi=h1();function St(t){return typeof t=="number"?`${t}px`:t}const g1=t=>{const e=i.useRef(null),[n]=H.useInViewport(e);return i.useEffect(()=>{n&&t.onActive()},[n]),i.createElement("div",{ref:e})},kr=H.createUpdateEffect(H.useIsomorphicLayoutEffect),v1=()=>i.createElement("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M41.396 6.234c1.923 0 3.487 1.574 3.487 3.505v29.14c0 1.937-1.568 3.51-3.491 3.51H6.604c-1.923 0-3.487-1.573-3.487-3.51V9.745c0-1.936 1.564-3.51 3.487-3.51Zm0 2.847H6.604c-.355 0-.654.3-.654.658V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.405 2.405 0 0 1 1.933.752l4.182 4.525 7.58-11.005a2.374 2.374 0 0 1 1.96-1.01c.79 0 1.532.38 1.966 1.01L42.05 34.89V9.74a.664.664 0 0 0-.654-.658Zm-28.305 2.763a3.119 3.119 0 0 1 3.117 3.117 3.119 3.119 0 0 1-3.117 3.117 3.122 3.122 0 0 1-3.117-3.117 3.119 3.119 0 0 1 3.117-3.117Z",fill:"#DBDBDB",fillRule:"nonzero"})),b1=()=>i.createElement("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M19.233 6.233 17.42 9.08l-10.817.001a.665.665 0 0 0-.647.562l-.007.096V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.415 2.415 0 0 1 1.807.625l.126.127 4.182 4.525 2.267-3.292 5.461 7.841-4.065 7.375H6.604c-1.86 0-3.382-1.47-3.482-3.317l-.005-.192V9.744c0-1.872 1.461-3.405 3.296-3.505l.19-.005h12.63Zm22.163 0c1.86 0 3.382 1.472 3.482 3.314l.005.192v29.14a3.507 3.507 0 0 1-3.3 3.505l-.191.006H27.789l3.63-6.587.06-.119a1.87 1.87 0 0 0-.163-1.853l-6.928-9.949 3.047-4.422a2.374 2.374 0 0 1 1.96-1.01 2.4 2.4 0 0 1 1.86.87l.106.14L42.05 34.89V9.74a.664.664 0 0 0-.654-.658H21.855l1.812-2.848h17.73Zm-28.305 5.611c.794 0 1.52.298 2.07.788l-.843 1.325-.067.114a1.87 1.87 0 0 0 .11 1.959l.848 1.217c-.556.515-1.3.83-2.118.83a3.122 3.122 0 0 1-3.117-3.116 3.119 3.119 0 0 1 3.117-3.117Z",fill:"#DBDBDB",fillRule:"nonzero"})),io="adm-image",y1={fit:"fill",placeholder:i.createElement("div",{className:`${io}-tip`},i.createElement(v1,null)),fallback:i.createElement("div",{className:`${io}-tip`},i.createElement(b1,null)),lazy:!1,draggable:!1},Ji=Xi.staged(t=>{const e=q(y1,t),[n,o]=i.useState(!1),[r,s]=i.useState(!1),a=i.useRef(null),l=i.useRef(null);let c=e.src,u=e.srcSet;const[d,f]=i.useState(!e.lazy);c=d?e.src:void 0,u=d?e.srcSet:void 0,kr(()=>{o(!1),s(!1)},[c]),i.useEffect(()=>{var x;!((x=l.current)===null||x===void 0)&&x.complete&&o(!0)},[]);function g(){if(r)return i.createElement(i.Fragment,null,e.fallback);const x=i.createElement("img",{ref:l,id:e.id,className:`${io}-img`,src:c,alt:e.alt,onClick:e.onClick,onLoad:y=>{var h;o(!0),(h=e.onLoad)===null||h===void 0||h.call(e,y)},onError:y=>{var h;s(!0),(h=e.onError)===null||h===void 0||h.call(e,y)},style:{objectFit:e.fit,display:n?"block":"none"},crossOrigin:e.crossOrigin,decoding:e.decoding,loading:e.loading,referrerPolicy:e.referrerPolicy,sizes:e.sizes,srcSet:u,useMap:e.useMap,draggable:e.draggable});return i.createElement(i.Fragment,null,!n&&e.placeholder,x)}const b={};return e.width&&(b["--width"]=St(e.width),b.width=St(e.width)),e.height&&(b["--height"]=St(e.height),b.height=St(e.height)),z(e,i.createElement("div",{ref:a,className:io,style:b,onClick:e.onContainerClick},e.lazy&&!d&&i.createElement(g1,{onActive:()=>{f(!0)}}),g()))}),Ut="adm-badge",Qi=i.createElement(i.Fragment,null),Ri=ye(t=>{const{content:e,color:n,children:o}=t,r=e===Qi,s=B(Ut,{[`${Ut}-fixed`]:!!o,[`${Ut}-dot`]:r,[`${Ut}-bordered`]:t.bordered}),a=e||e===0?z(t,i.createElement("div",{className:s,style:{"--color":n}},!r&&i.createElement("div",{className:`${Ut}-content`},e))):null;return o?i.createElement("div",{className:B(`${Ut}-wrapper`,t.wrapperClassName),style:t.wrapperStyle},o,a):a},{dot:Qi}),x1="adm-dot-loading",C1={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},S1={color:"default"},k1=i.memo(t=>{var e;const n=q(S1,t);return z(n,i.createElement("div",{style:{color:(e=C1[n.color])!==null&&e!==void 0?e:n.color},className:B("adm-loading",x1)},i.createElement("svg",{height:"1em",viewBox:"0 0 100 40",style:{verticalAlign:"-0.125em"}},i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-100.000000, -71.000000)"},i.createElement("g",{transform:"translate(95.000000, 71.000000)"},i.createElement("g",{transform:"translate(5.000000, 0.000000)"},[0,1,2].map(o=>i.createElement("rect",{key:o,fill:"currentColor",x:20+o*26,y:"16",width:"8",height:"8",rx:"2"},i.createElement("animate",{attributeName:"y",from:"16",to:"16",dur:"2s",begin:`${o*.2}s`,repeatCount:"indefinite",values:"16; 6; 26; 16; 16",keyTimes:"0; 0.1; 0.3; 0.4; 1"}))))))))))});function w1(t){return!!t&&typeof t=="object"&&typeof t.then=="function"}function E1(){return Mt?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1}const Be="adm-button",I1={color:"default",fill:"solid",block:!1,loading:!1,loadingIcon:i.createElement(k1,{color:"currentColor"}),type:"button",shape:"default",size:"middle"},nt=i.forwardRef((t,e)=>{const n=q(I1,t),[o,r]=i.useState(!1),s=i.useRef(null),a=n.loading==="auto"?o:n.loading,l=n.disabled||a;i.useImperativeHandle(e,()=>({get nativeElement(){return s.current}}));const c=u=>vt(void 0,void 0,void 0,function*(){if(!n.onClick)return;const d=n.onClick(u);if(w1(d))try{r(!0),yield d,r(!1)}catch(f){throw r(!1),f}});return z(n,i.createElement("button",{ref:s,type:n.type,onClick:c,className:B(Be,{[`${Be}-${n.color}`]:n.color,[`${Be}-block`]:n.block,[`${Be}-disabled`]:l,[`${Be}-fill-outline`]:n.fill==="outline",[`${Be}-fill-none`]:n.fill==="none",[`${Be}-mini`]:n.size==="mini",[`${Be}-small`]:n.size==="small",[`${Be}-large`]:n.size==="large",[`${Be}-loading`]:a},`${Be}-shape-${n.shape}`),disabled:l,onMouseDown:n.onMouseDown,onMouseUp:n.onMouseUp,onTouchStart:n.onTouchStart,onTouchEnd:n.onTouchEnd},a?i.createElement("div",{className:`${Be}-loading-wrapper`},n.loadingIcon,n.loadingText):i.createElement("span",null,n.children)))}),ea=()=>i.createElement("svg",{height:"1em",viewBox:"0 0 44 44"},i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-100.000000, -22.000000)"},i.createElement("g",{transform:"translate(100.000000, 22.000000)"},i.createElement("rect",{x:"0",y:"0",width:"44",height:"44"}),i.createElement("g",{transform:"translate(12.000000, 4.000000)",fill:"currentColor",fillRule:"nonzero"},i.createElement("path",{d:"M19.4833058,2.71985611 L3.53051139,17.0699744 C3.0173831,17.5315665 2.97522952,18.3220903 3.43630803,18.8357433 L3.43630796,18.8357432 C3.46601289,18.8688164 3.49745845,18.9002801 3.53051133,18.9300007 L19.4833057,33.2801611 C20.1234001,33.8559077 20.1759552,34.8420707 19.6007967,35.4827774 C19.0256382,36.1235263 18.0404824,36.1761351 17.400388,35.6003885 L1.44759367,21.2502703 L1.4475933,21.25027 C1.33208743,21.1463692 1.22220259,21.036372 1.11840792,20.920748 C-0.49302969,19.1256817 -0.345639536,16.3628317 1.4475933,14.7497465 L17.4003877,0.399628282 C18.0404821,-0.176160428 19.0256378,-0.123509422 19.6007963,0.517239417 C20.1759548,1.1579461 20.1233997,2.14410915 19.4833053,2.7198557 L19.4833058,2.71985611 Z"})))))),ta=()=>i.createElement("svg",{height:"1em",viewBox:"0 0 44 44"},i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-24.000000, -22.000000)"},i.createElement("g",{transform:"translate(24.000000, 22.000000)"},i.createElement("rect",{x:"0",y:"0",width:"44",height:"44"}),i.createElement("g",{transform:"translate(7.000000, 4.000000)",fill:"currentColor",fillRule:"nonzero"},i.createElement("path",{d:"M19.4833058,2.71985611 L3.53051139,17.0699744 C3.0173831,17.5315665 2.97522952,18.3220903 3.43630803,18.8357433 L3.43630796,18.8357432 C3.46601289,18.8688164 3.49745845,18.9002801 3.53051133,18.9300007 L19.4833057,33.2801611 C20.1234001,33.8559077 20.1759552,34.8420707 19.6007967,35.4827774 C19.0256382,36.1235263 18.0404824,36.1761351 17.400388,35.6003885 L1.44759367,21.2502703 L1.4475933,21.25027 C1.33208743,21.1463692 1.22220259,21.036372 1.11840792,20.920748 C-0.49302969,19.1256817 -0.345639536,16.3628317 1.4475933,14.7497465 L17.4003877,0.399628282 C18.0404821,-0.176160428 19.0256378,-0.123509422 19.6007963,0.517239417 C20.1759548,1.1579461 20.1233997,2.14410915 19.4833053,2.7198557 L19.4833058,2.71985611 Z"}),i.createElement("path",{d:"M19.5305114,17.0699744 C19.0173831,17.5315665 18.9752295,18.3220903 19.436308,18.8357433 C19.4660129,18.8688164 19.4974585,18.9002801 19.5305113,18.9300007 L29.4833057,27.2801611 C30.1234001,27.8559077 30.1759552,28.8420707 29.6007967,29.4827774 C29.0256382,30.1235263 28.0404824,30.1761351 27.400388,29.6003885 L17.4475937,21.2502703 C17.3320874,21.1463692 17.2222026,21.036372 17.1184079,20.920748 C15.5069703,19.1256817 15.6543605,16.3628317 17.4475933,14.7497465 L27.4003877,6.39962828 C28.0404821,5.82383957 29.0256378,5.87649058 29.6007963,6.51723942 C30.1759548,7.1579461 30.1233997,8.14410915 29.4833053,8.7198557 L19.5305114,17.0699744 Z"}))))));var ao={exports:{}},_1=ao.exports,na;function P1(){return na||(na=1,function(t,e){(function(n,o){t.exports=o()})(_1,function(){var n="day";return function(o,r,s){var a=function(u){return u.add(4-u.isoWeekday(),n)},l=r.prototype;l.isoWeekYear=function(){return a(this).year()},l.isoWeek=function(u){if(!this.$utils().u(u))return this.add(7*(u-this.isoWeek()),n);var d,f,g,b,x=a(this),y=(d=this.isoWeekYear(),f=this.$u,g=(f?s.utc:s)().year(d).startOf("year"),b=4-g.isoWeekday(),g.isoWeekday()>4&&(b+=7),g.add(b,n));return x.diff(y,"week")+1},l.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var c=l.startOf;l.startOf=function(u,d){var f=this.$utils(),g=!!f.u(d)||d;return f.p(u)==="isoweek"?g?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(u,d)}}})}(ao)),ao.exports}var $1=P1();const wr=Nt($1);function Se(t){const{value:e,defaultValue:n,onChange:o}=t,r=H.useUpdate(),s=i.useRef(e!==void 0?e:n);e!==void 0&&(s.current=e);const a=H.useMemoizedFn((l,c=!1)=>{const u=typeof l=="function"?l(s.current):l;if(!(!c&&u===s.current))return s.current=u,r(),o==null?void 0:o(u)});return[s.current,a]}function F1(t,e){return t.replace(/\$\{\w+\}/g,n=>{const o=n.slice(2,-1);return e[o]})}function oa(t,e){return t===void 0||e===null?null:Array.isArray(e)?e:[e,e]}function Er(t){return J().year(t.year).month(t.month-1).date(1)}J.extend(wr);const le="adm-calendar",T1={weekStartsOn:"Sunday",defaultValue:null,allowClear:!0,prevMonthButton:i.createElement(ea,null),prevYearButton:i.createElement(ta,null),nextMonthButton:i.createElement(ea,null),nextYearButton:i.createElement(ta,null)},M1=i.forwardRef((t,e)=>{const n=J(),o=q(T1,t),{locale:r}=Ie(),s=[...r.Calendar.markItems];if(o.weekStartsOn==="Sunday"){const S=s.pop();S&&s.unshift(S)}const[a,l]=Se({value:o.value===void 0?void 0:oa(o.selectionMode,o.value),defaultValue:oa(o.selectionMode,o.defaultValue),onChange:S=>{var C,w;o.selectionMode==="single"?(C=o.onChange)===null||C===void 0||C.call(o,S?S[0]:null):o.selectionMode==="range"&&((w=o.onChange)===null||w===void 0||w.call(o,S))}}),[c,u]=i.useState(!1),[d,f]=i.useState(()=>J(a?a[0]:n).date(1));H.useUpdateEffect(()=>{var S;(S=o.onPageChange)===null||S===void 0||S.call(o,d.year(),d.month()+1)},[d]),i.useImperativeHandle(e,()=>({jumpTo:S=>{let C;typeof S=="function"?C=S({year:d.year(),month:d.month()+1}):C=S,f(Er(C))},jumpToToday:()=>{f(J().date(1))}}));const g=(S,C,w)=>{const E=d[S](C,w);if(S==="subtract"&&o.minPage){const I=Er(o.minPage);if(E.isBefore(I,w))return}if(S==="add"&&o.maxPage){const I=Er(o.maxPage);if(E.isAfter(I,w))return}f(E)},b=i.createElement("div",{className:`${le}-header`},i.createElement("a",{className:`${le}-arrow-button ${le}-arrow-button-year`,onClick:()=>{g("subtract",1,"year")}},o.prevYearButton),i.createElement("a",{className:`${le}-arrow-button ${le}-arrow-button-month`,onClick:()=>{g("subtract",1,"month")}},o.prevMonthButton),i.createElement("div",{className:`${le}-title`},F1(r.Calendar.yearAndMonth,{year:d.year().toString(),month:(d.month()+1).toString()})),i.createElement("a",{className:B(`${le}-arrow-button`,`${le}-arrow-button-right`,`${le}-arrow-button-right-month`),onClick:()=>{g("add",1,"month")}},o.nextMonthButton),i.createElement("a",{className:B(`${le}-arrow-button`,`${le}-arrow-button-right`,`${le}-arrow-button-right-year`),onClick:()=>{g("add",1,"year")}},o.nextYearButton)),x=i.useMemo(()=>o.max&&J(o.max),[o.max]),y=i.useMemo(()=>o.min&&J(o.min),[o.min]);function h(){var S;const C=[];let w=d.subtract(d.isoWeekday(),"day");for(o.weekStartsOn==="Monday"&&(w=w.add(1,"day"));C.length<6*7;){const E=w;let I=!1,P=!1,N=!1,$=!1,A=!1;if(a){const[O,K]=a;P=E.isSame(O,"day"),N=E.isSame(K,"day"),I=P||N||E.isAfter(O,"day")&&E.isBefore(K,"day"),I&&($=(C.length%7===0||E.isSame(E.startOf("month"),"day"))&&!P,A=(C.length%7===6||E.isSame(E.endOf("month"),"day"))&&!N)}const V=E.month()===d.month(),M=o.shouldDisableDate?o.shouldDisableDate(E.toDate()):x&&E.isAfter(x,"day")||y&&E.isBefore(y,"day");C.push(i.createElement("div",{key:E.valueOf(),className:B(`${le}-cell`,(M||!V)&&`${le}-cell-disabled`,V&&{[`${le}-cell-today`]:E.isSame(n,"day"),[`${le}-cell-selected`]:I,[`${le}-cell-selected-begin`]:P,[`${le}-cell-selected-end`]:N,[`${le}-cell-selected-row-begin`]:$,[`${le}-cell-selected-row-end`]:A}),onClick:()=>{if(!o.selectionMode||M)return;const O=E.toDate();V||f(E.clone().date(1));function K(){if(!o.allowClear||!a)return!1;const[G,me]=a;return E.isSame(G,"date")&&E.isSame(me,"day")}if(o.selectionMode==="single"){if(o.allowClear&&K()){l(null);return}l([O,O])}else if(o.selectionMode==="range"){if(!a){l([O,O]),u(!0);return}if(K()){l(null),u(!1);return}if(c){const G=a[0];l(G>O?[O,G]:[G,O]),u(!1)}else l([O,O]),u(!0)}}},i.createElement("div",{className:`${le}-cell-top`},o.renderDate?o.renderDate(E.toDate()):E.date()),i.createElement("div",{className:`${le}-cell-bottom`},(S=o.renderLabel)===null||S===void 0?void 0:S.call(o,E.toDate())))),w=w.add(1,"day")}return C}const v=i.createElement("div",{className:`${le}-cells`},h()),k=i.createElement("div",{className:`${le}-mark`},s.map((S,C)=>i.createElement("div",{key:C,className:`${le}-mark-cell`},S)));return z(o,i.createElement("div",{className:le},b,k,v))});var Ir={exports:{}},ee={};/**
125
+ */var gs;function dc(){return gs||(gs=1,function(t){(function(){var e={}.hasOwnProperty;function n(){for(var s="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(s=r(s,o(l)))}return s}function o(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var l in s)e.call(s,l)&&s[l]&&(a=r(a,l));return a}function r(s,a){return a?s?s+" "+a:s+a:s}t.exports?(n.default=n,t.exports=n):window.classNames=n})()}(Oo)),Oo.exports}var fc=dc();const B=Nt(fc);function z(t,e){const n=Object.assign({},e.props);t.className&&(n.className=B(e.props.className,t.className)),t.style&&(n.style=Object.assign(Object.assign({},n.style),t.style)),t.tabIndex!==void 0&&(n.tabIndex=t.tabIndex);for(const o in t)t.hasOwnProperty(o)&&(o.startsWith("data-")||o.startsWith("aria-"))&&(n[o]=t[o]);return i.cloneElement(e,n)}function q(...t){const e={};return t.forEach(n=>{n&&Object.keys(n).forEach(o=>{n[o]!==void 0&&(e[o]=n[o])})}),e}function Ao(t,...e){for(let n=e.length-1;n>=0;n-=1)if(e[n]!==void 0)return e[n];return t}const vs=10;function mc(t,e){return t>e&&t>vs?"horizontal":e>t&&e>vs?"vertical":""}function pc(){const t=i.useRef(0),e=i.useRef(0),n=i.useRef(0),o=i.useRef(0),r=i.useRef(0),s=i.useRef(0),a=i.useRef(""),l=()=>a.current==="vertical",c=()=>a.current==="horizontal",u=()=>{n.current=0,o.current=0,r.current=0,s.current=0,a.current=""};return{move:g=>{const b=g.touches[0];n.current=b.clientX<0?0:b.clientX-t.current,o.current=b.clientY-e.current,r.current=Math.abs(n.current),s.current=Math.abs(o.current),a.current||(a.current=mc(r.current,s.current))},start:g=>{u(),t.current=g.touches[0].clientX,e.current=g.touches[0].clientY},reset:u,startX:t,startY:e,deltaX:n,deltaY:o,offsetX:r,offsetY:s,direction:a,isVertical:l,isHorizontal:c}}const hc=Mt?window:void 0,gc=["scroll","auto","overlay"];function vc(t){return t.nodeType===1}function bc(t,e=hc){let n=t;for(;n&&n!==e&&vc(n);){if(n===document.body)return e;const{overflowY:o}=window.getComputedStyle(n);if(gc.includes(o)&&n.scrollHeight>n.clientHeight)return n;n=n.parentNode}return e}let Tn=!1;if(Mt)try{const t={};Object.defineProperty(t,"passive",{get(){Tn=!0}}),window.addEventListener("test-passive",null,t)}catch(t){}let Qt=0;const bs="adm-overflow-hidden";function yc(t){let e=t==null?void 0:t.parentElement;for(;e;){if(e.clientHeight<e.scrollHeight)return e;e=e.parentElement}return null}function ys(t,e){const n=pc(),o=a=>{n.move(a);const l=n.deltaY.current>0?"10":"01",c=bc(a.target,t.current);if(!c)return;if(e==="strict"){const x=yc(a.target);if(x===document.body||x===document.documentElement){a.preventDefault();return}}const{scrollHeight:u,offsetHeight:d,scrollTop:f}=c,{height:g}=c.getBoundingClientRect();let b="11";f===0?b=d>=u?"00":"01":u<=Math.round(g+f)&&(b="10"),b!=="11"&&n.isVertical()&&!(parseInt(b,2)&parseInt(l,2))&&a.cancelable&&Tn&&a.preventDefault()},r=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",o,Tn?{passive:!1}:!1),Qt||document.body.classList.add(bs),Qt++},s=()=>{Qt&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",o),Qt--,Qt||document.body.classList.remove(bs))};i.useEffect(()=>{if(e)return r(),()=>{s()}},[e])}let Do=en();const j=t=>Rt(t,Do);let Lo=en();j.write=t=>Rt(t,Lo);let Mn=en();j.onStart=t=>Rt(t,Mn);let Bo=en();j.onFrame=t=>Rt(t,Bo);let Vo=en();j.onFinish=t=>Rt(t,Vo);let Ot=[];j.setTimeout=(t,e)=>{let n=j.now()+e,o=()=>{let s=Ot.findIndex(a=>a.cancel==o);~s&&Ot.splice(s,1),ut-=~s?1:0},r={time:n,handler:t,cancel:o};return Ot.splice(xs(n),0,r),ut+=1,Cs(),r};let xs=t=>~(~Ot.findIndex(e=>e.time>t)||~Ot.length);j.cancel=t=>{Mn.delete(t),Bo.delete(t),Vo.delete(t),Do.delete(t),Lo.delete(t)},j.sync=t=>{Zo=!0,j.batchedUpdates(t),Zo=!1},j.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function o(...r){e=r,j.onStart(n)}return o.handler=t,o.cancel=()=>{Mn.delete(n),e=null},o};let zo=typeof window!="undefined"?window.requestAnimationFrame:()=>{};j.use=t=>zo=t,j.now=typeof performance!="undefined"?()=>performance.now():Date.now,j.batchedUpdates=t=>t(),j.catch=console.error,j.frameLoop="always",j.advance=()=>{j.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):ks()};let ct=-1,ut=0,Zo=!1;function Rt(t,e){Zo?(e.delete(t),t(0)):(e.add(t),Cs())}function Cs(){ct<0&&(ct=0,j.frameLoop!=="demand"&&zo(Ss))}function xc(){ct=-1}function Ss(){~ct&&(zo(Ss),j.batchedUpdates(ks))}function ks(){let t=ct;ct=j.now();let e=xs(ct);if(e&&(ws(Ot.splice(0,e),n=>n.handler()),ut-=e),!ut){xc();return}Mn.flush(),Do.flush(t?Math.min(64,ct-t):16.667),Bo.flush(),Lo.flush(),Vo.flush()}function en(){let t=new Set,e=t;return{add(n){ut+=e==t&&!t.has(n)?1:0,t.add(n)},delete(n){return ut-=e==t&&t.has(n)?1:0,t.delete(n)},flush(n){e.size&&(t=new Set,ut-=e.size,ws(e,o=>o(n)&&t.add(o)),ut+=t.size,e=t)}}}function ws(t,e){t.forEach(n=>{try{e(n)}catch(o){j.catch(o)}})}function jo(){}const Cc=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),F={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function tt(t,e){if(F.arr(t)){if(!F.arr(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return t===e}const Q=(t,e)=>t.forEach(e);function qe(t,e,n){if(F.arr(t)){for(let o=0;o<t.length;o++)e.call(n,t[o],`${o}`);return}for(const o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o)}const Me=t=>F.und(t)?[]:F.arr(t)?t:[t];function tn(t,e){if(t.size){const n=Array.from(t);t.clear(),Q(n,e)}}const nn=(t,...e)=>tn(t,n=>n(...e)),Ko=()=>typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let Wo,Es,dt=null,Is=!1,Uo=jo;var Ge=Object.freeze({__proto__:null,get createStringInterpolator(){return Wo},get to(){return Es},get colors(){return dt},get skipAnimation(){return Is},get willAdvance(){return Uo},assign:t=>{t.to&&(Es=t.to),t.now&&(j.now=t.now),t.colors!==void 0&&(dt=t.colors),t.skipAnimation!=null&&(Is=t.skipAnimation),t.createStringInterpolator&&(Wo=t.createStringInterpolator),t.requestAnimationFrame&&j.use(t.requestAnimationFrame),t.batchedUpdates&&(j.batchedUpdates=t.batchedUpdates),t.willAdvance&&(Uo=t.willAdvance),t.frameLoop&&(j.frameLoop=t.frameLoop)}});const on=new Set;let Oe=[],Ho=[],Nn=0;const On={get idle(){return!on.size&&!Oe.length},start(t){Nn>t.priority?(on.add(t),j.onStart(Sc)):(_s(t),j(qo))},advance:qo,sort(t){if(Nn)j.onFrame(()=>On.sort(t));else{const e=Oe.indexOf(t);~e&&(Oe.splice(e,1),Ps(t))}},clear(){Oe=[],on.clear()}};function Sc(){on.forEach(_s),on.clear(),j(qo)}function _s(t){Oe.includes(t)||Ps(t)}function Ps(t){Oe.splice(kc(Oe,e=>e.priority>t.priority),0,t)}function qo(t){const e=Ho;for(let n=0;n<Oe.length;n++){const o=Oe[n];Nn=o.priority,o.idle||(Uo(o),o.advance(t),o.idle||e.push(o))}return Nn=0,Ho=Oe,Ho.length=0,Oe=e,Oe.length>0}function kc(t,e){const n=t.findIndex(e);return n<0?t.length:n}const wc={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ze="[-+]?\\d*\\.?\\d+",An=ze+"%";function Dn(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const Ec=new RegExp("rgb"+Dn(ze,ze,ze)),Ic=new RegExp("rgba"+Dn(ze,ze,ze,ze)),_c=new RegExp("hsl"+Dn(ze,An,An)),Pc=new RegExp("hsla"+Dn(ze,An,An,ze)),$c=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Fc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Tc=/^#([0-9a-fA-F]{6})$/,Mc=/^#([0-9a-fA-F]{8})$/;function Nc(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=Tc.exec(t))?parseInt(e[1]+"ff",16)>>>0:dt&&dt[t]!==void 0?dt[t]:(e=Ec.exec(t))?(At(e[1])<<24|At(e[2])<<16|At(e[3])<<8|255)>>>0:(e=Ic.exec(t))?(At(e[1])<<24|At(e[2])<<16|At(e[3])<<8|Ts(e[4]))>>>0:(e=$c.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Mc.exec(t))?parseInt(e[1],16)>>>0:(e=Fc.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=_c.exec(t))?($s(Fs(e[1]),Ln(e[2]),Ln(e[3]))|255)>>>0:(e=Pc.exec(t))?($s(Fs(e[1]),Ln(e[2]),Ln(e[3]))|Ts(e[4]))>>>0:null}function Go(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function $s(t,e,n){const o=n<.5?n*(1+e):n+e-n*e,r=2*n-o,s=Go(r,o,t+1/3),a=Go(r,o,t),l=Go(r,o,t-1/3);return Math.round(s*255)<<24|Math.round(a*255)<<16|Math.round(l*255)<<8}function At(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function Fs(t){return(parseFloat(t)%360+360)%360/360}function Ts(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function Ln(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function Ms(t){let e=Nc(t);if(e===null)return t;e=e||0;let n=(e&4278190080)>>>24,o=(e&16711680)>>>16,r=(e&65280)>>>8,s=(e&255)/255;return`rgba(${n}, ${o}, ${r}, ${s})`}const rn=(t,e,n)=>{if(F.fun(t))return t;if(F.arr(t))return rn({range:t,output:e,extrapolate:n});if(F.str(t.output[0]))return Wo(t);const o=t,r=o.output,s=o.range||[0,1],a=o.extrapolateLeft||o.extrapolate||"extend",l=o.extrapolateRight||o.extrapolate||"extend",c=o.easing||(u=>u);return u=>{const d=Ac(u,s);return Oc(u,s[d],s[d+1],r[d],r[d+1],c,a,l,o.map)}};function Oc(t,e,n,o,r,s,a,l,c){let u=c?c(t):t;if(u<e){if(a==="identity")return u;a==="clamp"&&(u=e)}if(u>n){if(l==="identity")return u;l==="clamp"&&(u=n)}return o===r?o:e===n?t<=e?o:r:(e===-1/0?u=-u:n===1/0?u=u-e:u=(u-e)/(n-e),u=s(u),o===-1/0?u=-u:r===1/0?u=u+o:u=u*(r-o)+o,u)}function Ac(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}const Dc={linear:t=>t};function Yo(){return Yo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Yo.apply(this,arguments)}const Dt=Symbol.for("FluidValue.get"),bt=Symbol.for("FluidValue.observers"),Ae=t=>!!(t&&t[Dt]),_e=t=>t&&t[Dt]?t[Dt]():t,Ns=t=>t[bt]||null;function Lc(t,e){t.eventObserved?t.eventObserved(e):t(e)}function sn(t,e){let n=t[bt];n&&n.forEach(o=>{Lc(o,e)})}class Os{constructor(e){if(this[Dt]=void 0,this[bt]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Bc(this,e)}}const Bc=(t,e)=>As(t,Dt,e);function Lt(t,e){if(t[Dt]){let n=t[bt];n||As(t,bt,n=new Set),n.has(e)||(n.add(e),t.observerAdded&&t.observerAdded(n.size,e))}return e}function an(t,e){let n=t[bt];if(n&&n.has(e)){const o=n.size-1;o?n.delete(e):t[bt]=null,t.observerRemoved&&t.observerRemoved(o,e)}}const As=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),Bn=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Vc=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ds=new RegExp(`(${Bn.source})(%|[a-z]+)`,"i"),zc=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Vn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ls=t=>{const[e,n]=Zc(t);if(!e||Ko())return t;const o=window.getComputedStyle(document.documentElement).getPropertyValue(e);if(o)return o.trim();if(n&&n.startsWith("--")){const r=window.getComputedStyle(document.documentElement).getPropertyValue(n);return r||t}else{if(n&&Vn.test(n))return Ls(n);if(n)return n}return t},Zc=t=>{const e=Vn.exec(t);if(!e)return[,];const[,n,o]=e;return[n,o]};let Xo;const jc=(t,e,n,o,r)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,Bs=t=>{Xo||(Xo=dt?new RegExp(`(${Object.keys(dt).join("|")})(?!\\w)`,"g"):/^\b$/);const e=t.output.map(s=>_e(s).replace(Vn,Ls).replace(Vc,Ms).replace(Xo,Ms)),n=e.map(s=>s.match(Bn).map(Number)),r=n[0].map((s,a)=>n.map(l=>{if(!(a in l))throw Error('The arity of each "output" value must be equal');return l[a]})).map(s=>rn(Yo({},t,{output:s})));return s=>{var a;const l=!Ds.test(e[0])&&((a=e.find(u=>Ds.test(u)))==null?void 0:a.replace(Bn,""));let c=0;return e[0].replace(Bn,()=>`${r[c++](s)}${l||""}`).replace(zc,jc)}},Jo="react-spring: ",Vs=t=>{const e=t;let n=!1;if(typeof e!="function")throw new TypeError(`${Jo}once requires a function parameter`);return(...o)=>{n||(e(...o),n=!0)}},Kc=Vs(console.warn);function Wc(){Kc(`${Jo}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const Uc=Vs(console.warn);function Hc(){Uc(`${Jo}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function zn(t){return F.str(t)&&(t[0]=="#"||/\d/.test(t)||!Ko()&&Vn.test(t)||t in(dt||{}))}const Qo=Ko()?i.useEffect:i.useLayoutEffect,qc=()=>{const t=i.useRef(!1);return Qo(()=>(t.current=!0,()=>{t.current=!1}),[]),t};function zs(){const t=i.useState()[1],e=qc();return()=>{e.current&&t(Math.random())}}function Gc(t,e){const[n]=i.useState(()=>({inputs:e,result:t()})),o=i.useRef(),r=o.current;let s=r;return s?e&&s.inputs&&Yc(e,s.inputs)||(s={inputs:e,result:t()}):s=n,i.useEffect(()=>{o.current=s,r==n&&(n.inputs=n.result=void 0)},[s]),s.result}function Yc(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const Zs=t=>i.useEffect(t,Xc),Xc=[];function js(t){const e=i.useRef();return i.useEffect(()=>{e.current=t}),e.current}const ln=Symbol.for("Animated:node"),Jc=t=>!!t&&t[ln]===t,Ye=t=>t&&t[ln],Ro=(t,e)=>Cc(t,ln,e),Zn=t=>t&&t[ln]&&t[ln].getPayload();class Ks{constructor(){this.payload=void 0,Ro(this,this)}getPayload(){return this.payload||[]}}class Bt extends Ks{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,F.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Bt(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,n){return F.num(e)&&(this.lastPosition=e,n&&(e=Math.round(e/n)*n,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,F.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class Vt extends Bt{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=rn({output:[e,e]})}static create(e){return new Vt(e)}getValue(){let e=this._string;return e==null?this._string=this._toString(this._value):e}setValue(e){if(F.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=rn({output:[this.getValue(),e]})),this._value=0,super.reset()}}const jn={dependencies:null};class Kn extends Ks{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const n={};return qe(this.source,(o,r)=>{Jc(o)?n[r]=o.getValue(e):Ae(o)?n[r]=_e(o):e||(n[r]=o)}),n}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Q(this.payload,e=>e.reset())}_makePayload(e){if(e){const n=new Set;return qe(e,this._addToPayload,n),Array.from(n)}}_addToPayload(e){jn.dependencies&&Ae(e)&&jn.dependencies.add(e);const n=Zn(e);n&&Q(n,o=>this.add(o))}}class er extends Kn{constructor(e){super(e)}static create(e){return new er(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const n=this.getPayload();return e.length==n.length?n.map((o,r)=>o.setValue(e[r])).some(Boolean):(super.setValue(e.map(Qc)),!0)}}function Qc(t){return(zn(t)?Vt:Bt).create(t)}function tr(t){const e=Ye(t);return e?e.constructor:F.arr(t)?er:zn(t)?Vt:Bt}function Wn(){return Wn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Wn.apply(this,arguments)}const Ws=(t,e)=>{const n=!F.fun(t)||t.prototype&&t.prototype.isReactComponent;return i.forwardRef((o,r)=>{const s=i.useRef(null),a=n&&i.useCallback(x=>{s.current=tu(r,x)},[r]),[l,c]=eu(o,e),u=zs(),d=()=>{const x=s.current;if(n&&!x)return;(x?e.applyAnimatedValues(x,l.getValue(!0)):!1)===!1&&u()},f=new Rc(d,c),g=i.useRef();Qo(()=>(g.current=f,Q(c,x=>Lt(x,f)),()=>{g.current&&(Q(g.current.deps,x=>an(x,g.current)),j.cancel(g.current.update))})),i.useEffect(d,[]),Zs(()=>()=>{const x=g.current;Q(x.deps,y=>an(y,x))});const b=e.getComponentProps(l.getValue());return Z.createElement(t,Wn({},b,{ref:a}))})};class Rc{constructor(e,n){this.update=e,this.deps=n}eventObserved(e){e.type=="change"&&j.write(this.update)}}function eu(t,e){const n=new Set;return jn.dependencies=n,t.style&&(t=Wn({},t,{style:e.createAnimatedStyle(t.style)})),t=new Kn(t),jn.dependencies=null,[t,n]}function tu(t,e){return t&&(F.fun(t)?t(e):t.current=e),e}const Us=Symbol.for("AnimatedComponent"),nu=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:n=r=>new Kn(r),getComponentProps:o=r=>r}={})=>{const r={applyAnimatedValues:e,createAnimatedStyle:n,getComponentProps:o},s=a=>{const l=Hs(a)||"Anonymous";return F.str(a)?a=s[a]||(s[a]=Ws(a,r)):a=a[Us]||(a[Us]=Ws(a,r)),a.displayName=`Animated(${l})`,a};return qe(t,(a,l)=>{F.arr(t)&&(l=Hs(a)),s[l]=s(a)}),{animated:s}},Hs=t=>F.str(t)?t:t&&F.str(t.displayName)?t.displayName:F.fun(t)&&t.name||null;function be(){return be=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},be.apply(this,arguments)}function yt(t,...e){return F.fun(t)?t(...e):t}const cn=(t,e)=>t===!0||!!(e&&t&&(F.fun(t)?t(e):Me(t).includes(e))),qs=(t,e)=>F.obj(t)?e&&t[e]:t,Gs=(t,e)=>t.default===!0?t[e]:t.default?t.default[e]:void 0,ou=t=>t,nr=(t,e=ou)=>{let n=ru;t.default&&t.default!==!0&&(t=t.default,n=Object.keys(t));const o={};for(const r of n){const s=e(t[r],r);F.und(s)||(o[r]=s)}return o},ru=["config","onProps","onStart","onChange","onPause","onResume","onRest"],su={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function iu(t){const e={};let n=0;if(qe(t,(o,r)=>{su[r]||(e[r]=o,n++)}),n)return e}function Ys(t){const e=iu(t);if(e){const n={to:e};return qe(t,(o,r)=>r in e||(n[r]=o)),n}return be({},t)}function un(t){return t=_e(t),F.arr(t)?t.map(un):zn(t)?Ge.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function au(t){for(const e in t)return!0;return!1}function or(t){return F.fun(t)||F.arr(t)&&F.obj(t[0])}function lu(t,e){var n;(n=t.ref)==null||n.delete(t),e==null||e.delete(t)}function cu(t,e){if(e&&t.ref!==e){var n;(n=t.ref)==null||n.delete(t),e.add(t),t.ref=e}}const rr=be({},{default:{tension:170,friction:26}}.default,{mass:1,damping:1,easing:Dc.linear,clamp:!1});class uu{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,rr)}}function du(t,e,n){n&&(n=be({},n),Xs(n,e),e=be({},n,e)),Xs(t,e),Object.assign(t,e);for(const a in rr)t[a]==null&&(t[a]=rr[a]);let{mass:o,frequency:r,damping:s}=t;return F.und(r)||(r<.01&&(r=.01),s<0&&(s=0),t.tension=Math.pow(2*Math.PI/r,2)*o,t.friction=4*Math.PI*s*o/r),t}function Xs(t,e){if(!F.und(e.decay))t.duration=void 0;else{const n=!F.und(e.tension)||!F.und(e.friction);(n||!F.und(e.frequency)||!F.und(e.damping)||!F.und(e.mass))&&(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}}const Js=[];class fu{constructor(){this.changed=!1,this.values=Js,this.toValues=null,this.fromValues=Js,this.to=void 0,this.from=void 0,this.config=new uu,this.immediate=!1}}function Qs(t,{key:e,props:n,defaultProps:o,state:r,actions:s}){return new Promise((a,l)=>{var c;let u,d,f=cn((c=n.cancel)!=null?c:o==null?void 0:o.cancel,e);if(f)x();else{F.und(n.pause)||(r.paused=cn(n.pause,e));let y=o==null?void 0:o.pause;y!==!0&&(y=r.paused||cn(y,e)),u=yt(n.delay||0,e),y?(r.resumeQueue.add(b),s.pause()):(s.resume(),b())}function g(){r.resumeQueue.add(b),r.timeouts.delete(d),d.cancel(),u=d.time-j.now()}function b(){u>0&&!Ge.skipAnimation?(r.delayed=!0,d=j.setTimeout(x,u),r.pauseQueue.add(g),r.timeouts.add(d)):x()}function x(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(g),r.timeouts.delete(d),t<=(r.cancelId||0)&&(f=!0);try{s.start(be({},n,{callId:t,cancel:f}),a)}catch(y){l(y)}}})}const sr=(t,e)=>e.length==1?e[0]:e.some(n=>n.cancelled)?zt(t.get()):e.every(n=>n.noop)?Rs(t.get()):Ze(t.get(),e.every(n=>n.finished)),Rs=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),Ze=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),zt=t=>({value:t,cancelled:!0,finished:!1});function ei(t,e,n,o){const{callId:r,parentId:s,onRest:a}=e,{asyncTo:l,promise:c}=n;return!s&&t===l&&!e.reset?c:n.promise=le(null,null,function*(){n.asyncId=r,n.asyncTo=t;const u=nr(e,(h,v)=>v==="onRest"?void 0:h);let d,f;const g=new Promise((h,v)=>(d=h,f=v)),b=h=>{const v=r<=(n.cancelId||0)&&zt(o)||r!==n.asyncId&&Ze(o,!1);if(v)throw h.result=v,f(h),h},x=(h,v)=>{const k=new ti,S=new ni;return le(null,null,function*(){if(Ge.skipAnimation)throw dn(n),S.result=Ze(o,!1),f(S),S;b(k);const C=F.obj(h)?be({},h):be({},v,{to:h});C.parentId=r,qe(u,(E,I)=>{F.und(C[I])&&(C[I]=E)});const w=yield o.start(C);return b(k),n.paused&&(yield new Promise(E=>{n.resumeQueue.add(E)})),w})};let y;if(Ge.skipAnimation)return dn(n),Ze(o,!1);try{let h;F.arr(t)?h=(v=>le(null,null,function*(){for(const k of v)yield x(k)}))(t):h=Promise.resolve(t(x,o.stop.bind(o))),yield Promise.all([h.then(d),g]),y=Ze(o.get(),!0,!1)}catch(h){if(h instanceof ti)y=h.result;else if(h instanceof ni)y=h.result;else throw h}finally{r==n.asyncId&&(n.asyncId=s,n.asyncTo=s?l:void 0,n.promise=s?c:void 0)}return F.fun(a)&&j.batchedUpdates(()=>{a(y,o,o.item)}),y})}function dn(t,e){tn(t.timeouts,n=>n.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}class ti extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class ni extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const ir=t=>t instanceof ar;let mu=1;class ar extends Os{constructor(...e){super(...e),this.id=mu++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Ye(this);return e&&e.getValue()}to(...e){return Ge.to(this,e)}interpolate(...e){return Wc(),Ge.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,n=!1){sn(this,{type:"change",parent:this,value:e,idle:n})}_onPriorityChange(e){this.idle||On.sort(this),sn(this,{type:"priority",parent:this,priority:e})}}const xt=Symbol.for("SpringPhase"),oi=1,lr=2,cr=4,ur=t=>(t[xt]&oi)>0,ft=t=>(t[xt]&lr)>0,fn=t=>(t[xt]&cr)>0,ri=(t,e)=>e?t[xt]|=lr|oi:t[xt]&=~lr,si=(t,e)=>e?t[xt]|=cr:t[xt]&=~cr;class pu extends ar{constructor(e,n){if(super(),this.key=void 0,this.animation=new fu,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!F.und(e)||!F.und(n)){const o=F.obj(e)?be({},e):be({},n,{from:e});F.und(o.default)&&(o.default=!0),this.start(o)}}get idle(){return!(ft(this)||this._state.asyncTo)||fn(this)}get goal(){return _e(this.animation.to)}get velocity(){const e=Ye(this);return e instanceof Bt?e.lastVelocity||0:e.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return ur(this)}get isAnimating(){return ft(this)}get isPaused(){return fn(this)}get isDelayed(){return this._state.delayed}advance(e){let n=!0,o=!1;const r=this.animation;let{config:s,toValues:a}=r;const l=Zn(r.to);!l&&Ae(r.to)&&(a=Me(_e(r.to))),r.values.forEach((d,f)=>{if(d.done)return;const g=d.constructor==Vt?1:l?l[f].lastPosition:a[f];let b=r.immediate,x=g;if(!b){if(x=d.lastPosition,s.tension<=0){d.done=!0;return}let y=d.elapsedTime+=e;const h=r.fromValues[f],v=d.v0!=null?d.v0:d.v0=F.arr(s.velocity)?s.velocity[f]:s.velocity;let k;const S=s.precision||(h==g?.005:Math.min(1,Math.abs(g-h)*.001));if(F.und(s.duration))if(s.decay){const C=s.decay===!0?.998:s.decay,w=Math.exp(-(1-C)*y);x=h+v/(1-C)*(1-w),b=Math.abs(d.lastPosition-x)<=S,k=v*w}else{k=d.lastVelocity==null?v:d.lastVelocity;const C=s.restVelocity||S/10,w=s.clamp?0:s.bounce,E=!F.und(w),I=h==g?d.v0>0:h<g;let P,N=!1;const $=1,A=Math.ceil(e/$);for(let V=0;V<A&&(P=Math.abs(k)>C,!(!P&&(b=Math.abs(g-x)<=S,b)));++V){E&&(N=x==g||x>g==I,N&&(k=-k*w,x=g));const M=-s.tension*1e-6*(x-g),O=-s.friction*.001*k,K=(M+O)/s.mass;k=k+K*$,x=x+k*$}}else{let C=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,d.durationProgress>0&&(d.elapsedTime=s.duration*d.durationProgress,y=d.elapsedTime+=e)),C=(s.progress||0)+y/this._memoizedDuration,C=C>1?1:C<0?0:C,d.durationProgress=C),x=h+s.easing(C)*(g-h),k=(x-d.lastPosition)/e,b=C==1}d.lastVelocity=k,Number.isNaN(x)&&(console.warn("Got NaN while animating:",this),b=!0)}l&&!l[f].done&&(b=!1),b?d.done=!0:n=!1,d.setValue(x,s.round)&&(o=!0)});const c=Ye(this),u=c.getValue();if(n){const d=_e(r.to);(u!==d||o)&&!s.decay?(c.setValue(d),this._onChange(d)):o&&s.decay&&this._onChange(u),this._stop()}else o&&this._onChange(u)}set(e){return j.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ft(this)){const{to:e,config:n}=this.animation;j.batchedUpdates(()=>{this._onStart(),n.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,n){let o;return F.und(e)?(o=this.queue||[],this.queue=[]):o=[F.obj(e)?e:be({},n,{to:e})],Promise.all(o.map(r=>this._update(r))).then(r=>sr(this,r))}stop(e){const{to:n}=this.animation;return this._focus(this.get()),dn(this._state,e&&this._lastCallId),j.batchedUpdates(()=>this._stop(n,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const n=this.key||"";let{to:o,from:r}=e;o=F.obj(o)?o[n]:o,(o==null||or(o))&&(o=void 0),r=F.obj(r)?r[n]:r,r==null&&(r=void 0);const s={to:o,from:r};return ur(this)||(e.reverse&&([o,r]=[r,o]),r=_e(r),F.und(r)?Ye(this)||this._set(o):this._set(r)),s}_update(e,n){let o=be({},e);const{key:r,defaultProps:s}=this;o.default&&Object.assign(s,nr(o,(c,u)=>/^on/.test(u)?qs(c,r):c)),li(this,o,"onProps"),hn(this,"onProps",o,this);const a=this._prepareNode(o);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const l=this._state;return Qs(++this._lastCallId,{key:r,props:o,defaultProps:s,state:l,actions:{pause:()=>{fn(this)||(si(this,!0),nn(l.pauseQueue),hn(this,"onPause",Ze(this,mn(this,this.animation.to)),this))},resume:()=>{fn(this)&&(si(this,!1),ft(this)&&this._resume(),nn(l.resumeQueue),hn(this,"onResume",Ze(this,mn(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(c=>{if(o.loop&&c.finished&&!(n&&c.noop)){const u=ii(o);if(u)return this._update(u,!0)}return c})}_merge(e,n,o){if(n.cancel)return this.stop(!0),o(zt(this));const r=!F.und(e.to),s=!F.und(e.from);if(r||s)if(n.callId>this._lastToId)this._lastToId=n.callId;else return o(zt(this));const{key:a,defaultProps:l,animation:c}=this,{to:u,from:d}=c;let{to:f=u,from:g=d}=e;s&&!r&&(!n.default||F.und(f))&&(f=g),n.reverse&&([f,g]=[g,f]);const b=!tt(g,d);b&&(c.from=g),g=_e(g);const x=!tt(f,u);x&&this._focus(f);const y=or(n.to),{config:h}=c,{decay:v,velocity:k}=h;(r||s)&&(h.velocity=0),n.config&&!y&&du(h,yt(n.config,a),n.config!==l.config?yt(l.config,a):void 0);let S=Ye(this);if(!S||F.und(f))return o(Ze(this,!0));const C=F.und(n.reset)?s&&!n.default:!F.und(g)&&cn(n.reset,a),w=C?g:this.get(),E=un(f),I=F.num(E)||F.arr(E)||zn(E),P=!y&&(!I||cn(l.immediate||n.immediate,a));if(x){const V=tr(f);if(V!==S.constructor)if(P)S=this._set(E);else throw Error(`Cannot animate between ${S.constructor.name} and ${V.name}, as the "to" prop suggests`)}const N=S.constructor;let $=Ae(f),A=!1;if(!$){const V=C||!ur(this)&&b;(x||V)&&(A=tt(un(w),E),$=!A),(!tt(c.immediate,P)&&!P||!tt(h.decay,v)||!tt(h.velocity,k))&&($=!0)}if(A&&ft(this)&&(c.changed&&!C?$=!0:$||this._stop(u)),!y&&(($||Ae(u))&&(c.values=S.getPayload(),c.toValues=Ae(f)?null:N==Vt?[1]:Me(E)),c.immediate!=P&&(c.immediate=P,!P&&!C&&this._set(u)),$)){const{onRest:V}=c;Q(gu,O=>li(this,n,O));const M=Ze(this,mn(this,u));nn(this._pendingCalls,M),this._pendingCalls.add(o),c.changed&&j.batchedUpdates(()=>{c.changed=!C,V==null||V(M,this),C?yt(l.onRest,M):c.onStart==null||c.onStart(M,this)})}C&&this._set(w),y?o(ei(n.to,n,this._state,this)):$?this._start():ft(this)&&!x?this._pendingCalls.add(o):o(Rs(w))}_focus(e){const n=this.animation;e!==n.to&&(Ns(this)&&this._detach(),n.to=e,Ns(this)&&this._attach())}_attach(){let e=0;const{to:n}=this.animation;Ae(n)&&(Lt(n,this),ir(n)&&(e=n.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ae(e)&&an(e,this)}_set(e,n=!0){const o=_e(e);if(!F.und(o)){const r=Ye(this);if(!r||!tt(o,r.getValue())){const s=tr(o);!r||r.constructor!=s?Ro(this,s.create(o)):r.setValue(o),r&&j.batchedUpdates(()=>{this._onChange(o,n)})}}return Ye(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,hn(this,"onStart",Ze(this,mn(this,e.to)),this))}_onChange(e,n){n||(this._onStart(),yt(this.animation.onChange,e,this)),yt(this.defaultProps.onChange,e,this),super._onChange(e,n)}_start(){const e=this.animation;Ye(this).reset(_e(e.to)),e.immediate||(e.fromValues=e.values.map(n=>n.lastPosition)),ft(this)||(ri(this,!0),fn(this)||this._resume())}_resume(){Ge.skipAnimation?this.finish():On.start(this)}_stop(e,n){if(ft(this)){ri(this,!1);const o=this.animation;Q(o.values,s=>{s.done=!0}),o.toValues&&(o.onChange=o.onPause=o.onResume=void 0),sn(this,{type:"idle",parent:this});const r=n?zt(this.get()):Ze(this.get(),mn(this,e!=null?e:o.to));nn(this._pendingCalls,r),o.changed&&(o.changed=!1,hn(this,"onRest",r,this))}}}function mn(t,e){const n=un(e),o=un(t.get());return tt(o,n)}function ii(t,e=t.loop,n=t.to){let o=yt(e);if(o){const r=o!==!0&&Ys(o),s=(r||t).reverse,a=!r||r.reset;return pn(be({},t,{loop:e,default:!1,pause:void 0,to:!s||or(n)?n:void 0,from:a?t.from:void 0,reset:a},r))}}function pn(t){const{to:e,from:n}=t=Ys(t),o=new Set;return F.obj(e)&&ai(e,o),F.obj(n)&&ai(n,o),t.keys=o.size?Array.from(o):null,t}function hu(t){const e=pn(t);return F.und(e.default)&&(e.default=nr(e)),e}function ai(t,e){qe(t,(n,o)=>n!=null&&e.add(o))}const gu=["onStart","onRest","onChange","onPause","onResume"];function li(t,e,n){t.animation[n]=e[n]!==Gs(e,n)?qs(e[n],t.key):void 0}function hn(t,e,...n){var o,r,s,a;(o=(r=t.animation)[e])==null||o.call(r,...n),(s=(a=t.defaultProps)[e])==null||s.call(a,...n)}const vu=["onStart","onChange","onRest"];let bu=1,yu=class{constructor(e,n){this.id=bu++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),n&&(this._flush=n),e&&this.start(be({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((n,o)=>e[o]=n.get()),e}set(e){for(const n in e){const o=e[n];F.und(o)||this.springs[n].set(o)}}update(e){return e&&this.queue.push(pn(e)),this}start(e){let{queue:n}=this;return e?n=Me(e).map(pn):this.queue=[],this._flush?this._flush(this,n):(pi(this,n),dr(this,n))}stop(e,n){if(e!==!!e&&(n=e),n){const o=this.springs;Q(Me(n),r=>o[r].stop(!!e))}else dn(this._state,this._lastAsyncId),this.each(o=>o.stop(!!e));return this}pause(e){if(F.und(e))this.start({pause:!0});else{const n=this.springs;Q(Me(e),o=>n[o].pause())}return this}resume(e){if(F.und(e))this.start({pause:!1});else{const n=this.springs;Q(Me(e),o=>n[o].resume())}return this}each(e){qe(this.springs,e)}_onFrame(){const{onStart:e,onChange:n,onRest:o}=this._events,r=this._active.size>0,s=this._changed.size>0;(r&&!this._started||s&&!this._started)&&(this._started=!0,tn(e,([c,u])=>{u.value=this.get(),c(u,this,this._item)}));const a=!r&&this._started,l=s||a&&o.size?this.get():null;s&&n.size&&tn(n,([c,u])=>{u.value=l,c(u,this,this._item)}),a&&(this._started=!1,tn(o,([c,u])=>{u.value=l,c(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;j.onFrame(this._onFrame)}};function dr(t,e){return Promise.all(e.map(n=>ci(t,n))).then(n=>sr(t,n))}function ci(t,e,n){return le(this,null,function*(){const{keys:o,to:r,from:s,loop:a,onRest:l,onResolve:c}=e,u=F.obj(e.default)&&e.default;a&&(e.loop=!1),r===!1&&(e.to=null),s===!1&&(e.from=null);const d=F.arr(r)||F.fun(r)?r:void 0;d?(e.to=void 0,e.onRest=void 0,u&&(u.onRest=void 0)):Q(vu,y=>{const h=e[y];if(F.fun(h)){const v=t._events[y];e[y]=({finished:k,cancelled:S})=>{const C=v.get(h);C?(k||(C.finished=!1),S&&(C.cancelled=!0)):v.set(h,{value:null,finished:k||!1,cancelled:S||!1})},u&&(u[y]=e[y])}});const f=t._state;e.pause===!f.paused?(f.paused=e.pause,nn(e.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(e.pause=!0);const g=(o||Object.keys(t.springs)).map(y=>t.springs[y].start(e)),b=e.cancel===!0||Gs(e,"cancel")===!0;(d||b&&f.asyncId)&&g.push(Qs(++t._lastAsyncId,{props:e,state:f,actions:{pause:jo,resume:jo,start(y,h){b?(dn(f,t._lastAsyncId),h(zt(t))):(y.onRest=l,h(ei(d,y,f,t)))}}})),f.paused&&(yield new Promise(y=>{f.resumeQueue.add(y)}));const x=sr(t,yield Promise.all(g));if(a&&x.finished&&!(n&&x.noop)){const y=ii(e,a,r);if(y)return pi(t,[y]),ci(t,y,!0)}return c&&j.batchedUpdates(()=>c(x,t,t.item)),x})}function ui(t,e){const n=be({},t.springs);return e&&Q(Me(e),o=>{F.und(o.keys)&&(o=pn(o)),F.obj(o.to)||(o=be({},o,{to:void 0})),mi(n,o,r=>fi(r))}),di(t,n),n}function di(t,e){qe(e,(n,o)=>{t.springs[o]||(t.springs[o]=n,Lt(n,t))})}function fi(t,e){const n=new pu;return n.key=t,e&&Lt(n,e),n}function mi(t,e,n){e.keys&&Q(e.keys,o=>{(t[o]||(t[o]=n(o)))._prepareNode(e)})}function pi(t,e){Q(e,n=>{mi(t.springs,n,o=>fi(o,t))})}function xu(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,s;for(s=0;s<o.length;s++)r=o[s],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}const Cu=["children"],Un=t=>{let{children:e}=t,n=xu(t,Cu);const o=i.useContext(Hn),r=n.pause||!!o.pause,s=n.immediate||!!o.immediate;n=Gc(()=>({pause:r,immediate:s}),[r,s]);const{Provider:a}=Hn;return Z.createElement(a,{value:n},e)},Hn=Su(Un,{});Un.Provider=Hn.Provider,Un.Consumer=Hn.Consumer;function Su(t,e){return Object.assign(t,Z.createContext(e)),t.Provider._context=t,t.Consumer._context=t,t}const ku=()=>{const t=[],e=function(r){Hc();const s=[];return Q(t,(a,l)=>{if(F.und(r))s.push(a.start());else{const c=n(r,a,l);c&&s.push(a.start(c))}}),s};e.current=t,e.add=function(o){t.includes(o)||t.push(o)},e.delete=function(o){const r=t.indexOf(o);~r&&t.splice(r,1)},e.pause=function(){return Q(t,o=>o.pause(...arguments)),this},e.resume=function(){return Q(t,o=>o.resume(...arguments)),this},e.set=function(o){Q(t,r=>r.set(o))},e.start=function(o){const r=[];return Q(t,(s,a)=>{if(F.und(o))r.push(s.start());else{const l=this._getProps(o,s,a);l&&r.push(s.start(l))}}),r},e.stop=function(){return Q(t,o=>o.stop(...arguments)),this},e.update=function(o){return Q(t,(r,s)=>r.update(this._getProps(o,r,s))),this};const n=function(r,s,a){return F.fun(r)?r(a,s):r};return e._getProps=n,e};function wu(t,e,n){const o=F.fun(e)&&e;o&&!n&&(n=[]);const r=i.useMemo(()=>o||arguments.length==3?ku():void 0,[]),s=i.useRef(0),a=zs(),l=i.useMemo(()=>({ctrls:[],queue:[],flush(v,k){const S=ui(v,k);return s.current>0&&!l.queue.length&&!Object.keys(S).some(w=>!v.springs[w])?dr(v,k):new Promise(w=>{di(v,S),l.queue.push(()=>{w(dr(v,k))}),a()})}}),[]),c=i.useRef([...l.ctrls]),u=[],d=js(t)||0;i.useMemo(()=>{Q(c.current.slice(t,d),v=>{lu(v,r),v.stop(!0)}),c.current.length=t,f(d,t)},[t]),i.useMemo(()=>{f(0,Math.min(d,t))},n);function f(v,k){for(let S=v;S<k;S++){const C=c.current[S]||(c.current[S]=new yu(null,l.flush)),w=o?o(S,C):e[S];w&&(u[S]=hu(w))}}const g=c.current.map((v,k)=>ui(v,u[k])),b=i.useContext(Un),x=js(b),y=b!==x&&au(b);Qo(()=>{s.current++,l.ctrls=c.current;const{queue:v}=l;v.length&&(l.queue=[],Q(v,k=>k())),Q(c.current,(k,S)=>{r==null||r.add(k),y&&k.start({default:b});const C=u[S];C&&(cu(k,C.ref),k.ref?k.queue.push(C):k.start(C))})}),Zs(()=>()=>{Q(l.ctrls,v=>v.stop(!0))});const h=g.map(v=>be({},v));return r?[h,r]:h}function De(t,e){const n=F.fun(t),[[o],r]=wu(1,n?t:[t],n?e||[]:e);return n||arguments.length==2?[o,r]:o}let hi;(function(t){t.MOUNT="mount",t.ENTER="enter",t.UPDATE="update",t.LEAVE="leave"})(hi||(hi={}));class Eu extends ar{constructor(e,n){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=rn(...n);const o=this._get(),r=tr(o);Ro(this,r.create(o))}advance(e){const n=this._get(),o=this.get();tt(n,o)||(Ye(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&gi(this._active)&&fr(this)}_get(){const e=F.arr(this.source)?this.source.map(_e):Me(_e(this.source));return this.calc(...e)}_start(){this.idle&&!gi(this._active)&&(this.idle=!1,Q(Zn(this),e=>{e.done=!1}),Ge.skipAnimation?(j.batchedUpdates(()=>this.advance()),fr(this)):On.start(this))}_attach(){let e=1;Q(Me(this.source),n=>{Ae(n)&&Lt(n,this),ir(n)&&(n.idle||this._active.add(n),e=Math.max(e,n.priority+1))}),this.priority=e,this._start()}_detach(){Q(Me(this.source),e=>{Ae(e)&&an(e,this)}),this._active.clear(),fr(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Me(this.source).reduce((n,o)=>Math.max(n,(ir(o)?o.priority:0)+1),0))}}function Iu(t){return t.idle!==!1}function gi(t){return!t.size||Array.from(t).every(Iu)}function fr(t){t.idle||(t.idle=!0,Q(Zn(t),e=>{e.done=!0}),sn(t,{type:"idle",parent:t}))}Ge.assign({createStringInterpolator:Bs,to:(t,e)=>new Eu(t,e)});function mr(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,s;for(s=0;s<o.length;s++)r=o[s],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}const _u=["style","children","scrollTop","scrollLeft","viewBox"],vi=/^--/;function Pu(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e=="number"&&e!==0&&!vi.test(t)&&!(gn.hasOwnProperty(t)&&gn[t])?e+"px":(""+e).trim()}const bi={};function $u(t,e){if(!t.nodeType||!t.setAttribute)return!1;const n=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter",o=e,{style:r,children:s,scrollTop:a,scrollLeft:l,viewBox:c}=o,u=mr(o,_u),d=Object.values(u),f=Object.keys(u).map(g=>n||t.hasAttribute(g)?g:bi[g]||(bi[g]=g.replace(/([A-Z])/g,b=>"-"+b.toLowerCase())));s!==void 0&&(t.textContent=s);for(let g in r)if(r.hasOwnProperty(g)){const b=Pu(g,r[g]);vi.test(g)?t.style.setProperty(g,b):t.style[g]=b}f.forEach((g,b)=>{t.setAttribute(g,d[b])}),a!==void 0&&(t.scrollTop=a),l!==void 0&&(t.scrollLeft=l),c!==void 0&&t.setAttribute("viewBox",c)}let gn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Fu=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),Tu=["Webkit","Ms","Moz","O"];gn=Object.keys(gn).reduce((t,e)=>(Tu.forEach(n=>t[Fu(n,e)]=t[e]),t),gn);const Mu=["x","y","z"],Nu=/^(matrix|translate|scale|rotate|skew)/,Ou=/^(translate)/,Au=/^(rotate|skew)/,pr=(t,e)=>F.num(t)&&t!==0?t+e:t,qn=(t,e)=>F.arr(t)?t.every(n=>qn(n,e)):F.num(t)?t===e:parseFloat(t)===e;class Du extends Kn{constructor(e){let{x:n,y:o,z:r}=e,s=mr(e,Mu);const a=[],l=[];(n||o||r)&&(a.push([n||0,o||0,r||0]),l.push(c=>[`translate3d(${c.map(u=>pr(u,"px")).join(",")})`,qn(c,0)])),qe(s,(c,u)=>{if(u==="transform")a.push([c||""]),l.push(d=>[d,d===""]);else if(Nu.test(u)){if(delete s[u],F.und(c))return;const d=Ou.test(u)?"px":Au.test(u)?"deg":"";a.push(Me(c)),l.push(u==="rotate3d"?([f,g,b,x])=>[`rotate3d(${f},${g},${b},${pr(x,d)})`,qn(x,0)]:f=>[`${u}(${f.map(g=>pr(g,d)).join(",")})`,qn(f,u.startsWith("scale")?1:0)])}}),a.length&&(s.transform=new Lu(a,l)),super(s)}}class Lu extends Os{constructor(e,n){super(),this._value=null,this.inputs=e,this.transforms=n}get(){return this._value||(this._value=this._get())}_get(){let e="",n=!0;return Q(this.inputs,(o,r)=>{const s=_e(o[0]),[a,l]=this.transforms[r](F.arr(s)?s:o.map(_e));e+=" "+a,n=n&&l}),n?"none":e}observerAdded(e){e==1&&Q(this.inputs,n=>Q(n,o=>Ae(o)&&Lt(o,this)))}observerRemoved(e){e==0&&Q(this.inputs,n=>Q(n,o=>Ae(o)&&an(o,this)))}eventObserved(e){e.type=="change"&&(this._value=null),sn(this,e)}}const Bu=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Vu=["scrollTop","scrollLeft"];Ge.assign({batchedUpdates:Tt.unstable_batchedUpdates,createStringInterpolator:Bs,colors:wc});const xe=nu(Bu,{applyAnimatedValues:$u,createAnimatedStyle:t=>new Du(t),getComponentProps:t=>mr(t,Vu)}).animated;function zu(t){return(typeof t=="function"?t():t)||document.body}function Gn(t,e){if(Mt&&t){const n=zu(t);return Tt.createPortal(e,n)}return e}function Zu(t){const e=i.useRef(t);return t&&(e.current=!0),!!e.current}const Yn=t=>ju(t.active,t.forceRender,t.destroyOnClose)?t.children:null;function ju(t,e,n){const o=Zu(t);return e||t?!0:o?!n:!1}const Ku={click:"onClick",touchstart:"onTouchStart"};function yi(t,e){const n=Object.assign({},e.props);for(const o of t){const r=Ku[o];n[r]=function(s){var a,l;s.stopPropagation(),(l=(a=e.props)[r])===null||l===void 0||l.call(a,s)}}return i.cloneElement(e,n)}const hr="adm-mask",Wu={default:.55,thin:.35,thick:.75},Uu={black:"0, 0, 0",white:"255, 255, 255"},Hu={visible:!0,destroyOnClose:!1,forceRender:!1,color:"black",opacity:"default",disableBodyScroll:!0,getContainer:null,stopPropagation:["click"]},Xn=t=>{const e=q(Hu,t),{locale:n}=Ie(),o=i.useRef(null);ys(o,e.visible&&e.disableBodyScroll);const r=i.useMemo(()=>{var d;const f=(d=Wu[e.opacity])!==null&&d!==void 0?d:e.opacity,g=Uu[e.color];return g?`rgba(${g}, ${f})`:e.color},[e.color,e.opacity]),[s,a]=i.useState(e.visible),l=H.useUnmountedRef(),{opacity:c}=De({opacity:e.visible?1:0,config:{precision:.01,mass:1,tension:250,friction:30,clamp:!0},onStart:()=>{a(!0)},onRest:()=>{var d,f;l.current||(a(e.visible),e.visible?(d=e.afterShow)===null||d===void 0||d.call(e):(f=e.afterClose)===null||f===void 0||f.call(e))}}),u=yi(e.stopPropagation,z(e,i.createElement(xe.div,{className:hr,ref:o,"aria-hidden":!0,style:Object.assign(Object.assign({},e.style),{background:r,opacity:c,display:s?void 0:"none"}),onClick:d=>{var f;d.target===d.currentTarget&&((f=e.onMaskClick)===null||f===void 0||f.call(e,d))}},e.onMaskClick&&i.createElement("div",{className:`${hr}-aria-button`,role:"button","aria-label":n.Mask.name,onClick:e.onMaskClick}),i.createElement("div",{className:`${hr}-content`},e.children))));return i.createElement(Yn,{active:s,forceRender:e.forceRender,destroyOnClose:e.destroyOnClose},Gn(e.getContainer,u))};function qu(t){return Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),Z.createElement("g",{id:"AddOutline-AddOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},Z.createElement("g",{id:"AddOutline-add"},Z.createElement("rect",{id:"AddOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),Z.createElement("path",{d:"M25.1,6.5 C25.3209139,6.5 25.5,6.6790861 25.5,6.9 L25.5,22.5 L41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L25.5,25.5 L25.5,41.1 C25.5,41.3209139 25.3209139,41.5 25.1,41.5 L22.9,41.5 C22.6790861,41.5 22.5,41.3209139 22.5,41.1 L22.5,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L22.5,22.5 L22.5,6.9 C22.5,6.6790861 22.6790861,6.5 22.9,6.5 L25.1,6.5 Z",id:"AddOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function xi(t){return Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),Z.createElement("g",{id:"CheckOutline-CheckOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},Z.createElement("g",{id:"CheckOutline-编组"},Z.createElement("rect",{id:"CheckOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),Z.createElement("path",{d:"M44.309608,12.6841286 L21.2180499,35.5661955 L21.2180499,35.5661955 C20.6343343,36.1446015 19.6879443,36.1446015 19.1042286,35.5661955 C19.0538201,35.5162456 19.0077648,35.4636155 18.9660627,35.4087682 C18.9113105,35.368106 18.8584669,35.3226694 18.808302,35.2729607 L3.6903839,20.2920499 C3.53346476,20.1365529 3.53231192,19.8832895 3.68780898,19.7263704 C3.7629255,19.6505669 3.86521855,19.6079227 3.97193622,19.6079227 L7.06238923,19.6079227 C7.16784214,19.6079227 7.26902895,19.6495648 7.34393561,19.7237896 L20.160443,32.4236157 L20.160443,32.4236157 L40.656066,12.115858 C40.7309719,12.0416387 40.8321549,12 40.9376034,12 L44.0280571,12 C44.248971,12 44.4280571,12.1790861 44.4280571,12.4 C44.4280571,12.5067183 44.3854124,12.609012 44.309608,12.6841286 Z",id:"CheckOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function Gu(t){return Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),Z.createElement("g",{id:"CloseCircleFill-CloseCircleFill",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},Z.createElement("g",{id:"CloseCircleFill-编组"},Z.createElement("rect",{id:"CloseCircleFill-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),Z.createElement("path",{d:"M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M18.6753876,16 L15.5637812,16 C15.4576916,16 15.3559474,16.0421451 15.2809323,16.1171635 C15.124726,16.2733766 15.1247316,16.5266426 15.2809447,16.6828489 L15.2809447,16.6828489 L22.299066,23.7006641 L14.6828159,31.3171619 C14.6078042,31.3921761 14.5656632,31.4939157 14.5656632,31.6 C14.5656632,31.8209139 14.7447493,32 14.9656632,32 L14.9656632,32 L18.0753284,32 C18.1814068,32 18.2831412,31.9578638 18.3581544,31.8828594 L18.3581544,31.8828594 L24.420066,25.8216641 L30.4818451,31.8828564 C30.5568585,31.9578626 30.6585942,32 30.7646741,32 L30.7646741,32 L33.8763476,32 C33.9824309,32 34.0841695,31.9578599 34.1591835,31.8828496 C34.315397,31.7266436 34.3154031,31.4733776 34.1591972,31.3171641 L34.1591972,31.3171641 L26.542066,23.6996641 L33.5591874,16.6828489 C33.6342057,16.6078338 33.6763508,16.5060896 33.6763508,16.4 C33.6763508,16.1790861 33.4972647,16 33.2763508,16 L33.2763508,16 L30.1637654,16 C30.0576705,16 29.9559218,16.0421493 29.8809058,16.1171741 L29.8809058,16.1171741 L24.420066,21.5786641 L18.9582218,16.1171488 C18.883208,16.0421394 18.7814701,16 18.6753876,16 L18.6753876,16 Z",id:"CloseCircleFill-形状结合",fill:"currentColor",fillRule:"nonzero"}))))}function Jn(t){return Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),Z.createElement("g",{id:"CloseOutline-CloseOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},Z.createElement("g",{id:"CloseOutline-编组"},Z.createElement("rect",{id:"CloseOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),Z.createElement("path",{d:"M10.6085104,8.11754663 L24.1768397,21.8195031 L24.1768397,21.8195031 L37.7443031,8.1175556 C37.8194278,8.04168616 37.9217669,7.999 38.0285372,7.999 L41.1040268,7.999 C41.3249407,7.999 41.5040268,8.1780861 41.5040268,8.399 C41.5040268,8.50440471 41.4624226,8.60554929 41.3882578,8.68044752 L26.2773302,23.9408235 L26.2773302,23.9408235 L41.5021975,39.3175645 C41.65763,39.4745475 41.6563731,39.7278104 41.4993901,39.8832429 C41.4244929,39.9574004 41.3233534,39.999 41.2179546,39.999 L38.1434012,39.999 C38.0366291,39.999 37.9342885,39.9563124 37.8591634,39.8804408 L24.1768397,26.0621438 L24.1768397,26.0621438 L10.4936501,39.8804497 C10.4185257,39.9563159 10.3161889,39.999 10.2094212,39.999 L7.13584526,39.999 C6.91493136,39.999 6.73584526,39.8199139 6.73584526,39.599 C6.73584526,39.4936017 6.77744443,39.3924627 6.85160121,39.3175656 L22.0763492,23.9408235 L22.0763492,23.9408235 L6.96554081,8.68044639 C6.81010226,8.52346929 6.81134951,8.27020637 6.9683266,8.11476782 C7.04322474,8.04060377 7.14436883,7.999 7.24977299,7.999 L10.3242852,7.999 C10.4310511,7.999 10.5333863,8.04168267 10.6085104,8.11754663 Z",id:"CloseOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function Yu(t){return Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),Z.createElement("g",{id:"DownOutline-DownOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},Z.createElement("g",null,Z.createElement("rect",{id:"DownOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),Z.createElement("path",{d:"M5.11219264,16.3947957 L22.6612572,34.5767382 L22.6612572,34.5767382 C23.2125856,35.1304785 24.0863155,35.1630514 24.6755735,34.6744571 L24.7825775,34.5767382 L42.8834676,16.3956061 C42.9580998,16.320643 43,16.2191697 43,16.1133896 L43,12.9866673 C43,12.7657534 42.8209139,12.5866673 42.6,12.5866673 C42.4936115,12.5866673 42.391606,12.6290496 42.316542,12.7044413 L23.7816937,31.3201933 L23.7816937,31.3201933 L5.6866816,12.7237117 C5.53262122,12.5653818 5.27937888,12.5619207 5.121049,12.7159811 C5.04365775,12.7912854 5,12.8946805 5,13.0026627 L5,16.1170064 C5,16.2206403 5.04022164,16.3202292 5.11219264,16.3947957 Z",id:"DownOutline-down",fill:"currentColor",fillRule:"nonzero"}))))}function Xu(t){return Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),Z.createElement("g",{id:"LeftOutline-LeftOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},Z.createElement("g",{id:"LeftOutline-编组"},Z.createElement("rect",{id:"LeftOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),Z.createElement("path",{d:"M31.7053818,5.11219264 L13.5234393,22.6612572 L13.5234393,22.6612572 C12.969699,23.2125856 12.9371261,24.0863155 13.4257204,24.6755735 L13.5234393,24.7825775 L31.7045714,42.8834676 C31.7795345,42.9580998 31.8810078,43 31.9867879,43 L35.1135102,43 C35.3344241,43 35.5135102,42.8209139 35.5135102,42.6 C35.5135102,42.4936115 35.4711279,42.391606 35.3957362,42.316542 L16.7799842,23.7816937 L16.7799842,23.7816937 L35.3764658,5.6866816 C35.5347957,5.53262122 35.5382568,5.27937888 35.3841964,5.121049 C35.3088921,5.04365775 35.205497,5 35.0975148,5 L31.9831711,5 C31.8795372,5 31.7799483,5.04022164 31.7053818,5.11219264 Z",id:"LeftOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function Ju(t){return Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),Z.createElement("g",{id:"RightOutline-RightOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},Z.createElement("g",{id:"RightOutline-RightOutlined"},Z.createElement("rect",{id:"RightOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),Z.createElement("path",{d:"M17.3947957,5.11219264 L35.5767382,22.6612572 L35.5767382,22.6612572 C36.1304785,23.2125856 36.1630514,24.0863155 35.6744571,24.6755735 L35.5767382,24.7825775 L17.3956061,42.8834676 C17.320643,42.9580998 17.2191697,43 17.1133896,43 L13.9866673,43 C13.7657534,43 13.5866673,42.8209139 13.5866673,42.6 C13.5866673,42.4936115 13.6290496,42.391606 13.7044413,42.316542 L32.3201933,23.7816937 L32.3201933,23.7816937 L13.7237117,5.6866816 C13.5653818,5.53262122 13.5619207,5.27937888 13.7159811,5.121049 C13.7912854,5.04365775 13.8946805,5 14.0026627,5 L17.1170064,5 C17.2206403,5 17.3202292,5.04022164 17.3947957,5.11219264 Z",id:"RightOutline-right",fill:"currentColor",fillRule:"nonzero"}))))}function Qu(t){return Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),Z.createElement("g",{id:"SearchOutline-SearchOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},Z.createElement("g",{id:"SearchOutline-编组"},Z.createElement("rect",{id:"SearchOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),Z.createElement("path",{d:"M10.2434135,10.1505371 C17.2346315,3.28315429 28.5696354,3.28315429 35.5608534,10.1505371 C42.3159331,16.7859644 42.5440954,27.4048667 36.2453405,34.3093889 L43.7095294,41.6422249 C43.8671196,41.7970419 43.8693677,42.0502979 43.7145508,42.2078881 C43.7128864,42.2095822 43.7112069,42.2112616 43.7095126,42.2129259 L42.1705322,43.7246464 C42.014915,43.8775072 41.7655181,43.8775006 41.6099089,43.7246316 L34.0775268,36.3248916 L34.0775268,36.3248916 C27.0485579,41.8551751 16.7593545,41.4200547 10.2434135,35.0195303 C3.25219551,28.1521474 3.25219551,17.0179199 10.2434135,10.1505371 Z M12.3532001,12.2229532 C6.52718516,17.9457722 6.52718516,27.2242951 12.3532001,32.9471142 C18.1792151,38.6699332 27.6250517,38.6699332 33.4510667,32.9471142 C39.2770817,27.2242951 39.2770817,17.9457722 33.4510667,12.2229532 C27.6250517,6.50013419 18.1792151,6.50013419 12.3532001,12.2229532 Z",id:"SearchOutline-形状",fill:"currentColor",fillRule:"nonzero"}))))}const Ru={closeOnMaskClick:!1,closeIcon:i.createElement(Jn,null),destroyOnClose:!1,disableBodyScroll:!0,forceRender:!1,getContainer:()=>document.body,mask:!0,showCloseButton:!1,stopPropagation:["click"],visible:!1};function ed(t){const[e,n]=i.useState(t);return H.useIsomorphicLayoutEffect(()=>{n(t)},[t]),e}function td(t,e,n){return Math.max(e,Math.min(t,n))}const pe={toVector(t,e){return t===void 0&&(t=e),Array.isArray(t)?t:[t,t]},add(t,e){return[t[0]+e[0],t[1]+e[1]]},sub(t,e){return[t[0]-e[0],t[1]-e[1]]},addTo(t,e){t[0]+=e[0],t[1]+=e[1]},subTo(t,e){t[0]-=e[0],t[1]-=e[1]}};function Ci(t,e,n){return e===0||Math.abs(e)===1/0?Math.pow(t,n*5):t*e*n/(e+n*t)}function Si(t,e,n,o=.15){return o===0?td(t,e,n):t<e?-Ci(e-t,n-e,o)+e:t>n?+Ci(t-n,n-e,o)+n:t}function nd(t,[e,n],[o,r]){const[[s,a],[l,c]]=t;return[Si(e,s,a,o),Si(n,l,c,r)]}function od(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function rd(t){var e=od(t,"string");return typeof e=="symbol"?e:String(e)}function Ce(t,e,n){return e=rd(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ki(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function de(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ki(Object(n),!0).forEach(function(o){Ce(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ki(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}const wi={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function Ei(t){return t?t[0].toUpperCase()+t.slice(1):""}const sd=["enter","leave"];function id(t=!1,e){return t&&!sd.includes(e)}function ad(t,e="",n=!1){const o=wi[t],r=o&&o[e]||e;return"on"+Ei(t)+Ei(r)+(id(n,r)?"Capture":"")}const ld=["gotpointercapture","lostpointercapture"];function cd(t){let e=t.substring(2).toLowerCase();const n=!!~e.indexOf("passive");n&&(e=e.replace("passive",""));const o=ld.includes(e)?"capturecapture":"capture",r=!!~e.indexOf(o);return r&&(e=e.replace("capture","")),{device:e,capture:r,passive:n}}function ud(t,e=""){const n=wi[t],o=n&&n[e]||e;return t+o}function Qn(t){return"touches"in t}function Ii(t){return Qn(t)?"touch":"pointerType"in t?t.pointerType:"mouse"}function dd(t){return Array.from(t.touches).filter(e=>{var n,o;return e.target===t.currentTarget||((n=t.currentTarget)===null||n===void 0||(o=n.contains)===null||o===void 0?void 0:o.call(n,e.target))})}function fd(t){return t.type==="touchend"||t.type==="touchcancel"?t.changedTouches:t.targetTouches}function _i(t){return Qn(t)?fd(t)[0]:t}function gr(t,e){try{const n=e.clientX-t.clientX,o=e.clientY-t.clientY,r=(e.clientX+t.clientX)/2,s=(e.clientY+t.clientY)/2,a=Math.hypot(n,o);return{angle:-(Math.atan2(n,o)*180)/Math.PI,distance:a,origin:[r,s]}}catch(n){}return null}function md(t){return dd(t).map(e=>e.identifier)}function Pi(t,e){const[n,o]=Array.from(t.touches).filter(r=>e.includes(r.identifier));return gr(n,o)}function vr(t){const e=_i(t);return Qn(t)?e.identifier:e.pointerId}function $i(t){const e=_i(t);return[e.clientX,e.clientY]}const Fi=40,Ti=800;function Mi(t){let{deltaX:e,deltaY:n,deltaMode:o}=t;return o===1?(e*=Fi,n*=Fi):o===2&&(e*=Ti,n*=Ti),[e,n]}function pd(t){const e={};if("buttons"in t&&(e.buttons=t.buttons),"shiftKey"in t){const{shiftKey:n,altKey:o,metaKey:r,ctrlKey:s}=t;Object.assign(e,{shiftKey:n,altKey:o,metaKey:r,ctrlKey:s})}return e}function Rn(t,...e){return typeof t=="function"?t(...e):t}function hd(){}function gd(...t){return t.length===0?hd:t.length===1?t[0]:function(){let e;for(const n of t)e=n.apply(this,arguments)||e;return e}}function Ni(t,e){return Object.assign({},e,t||{})}const vd=32;class Oi{constructor(e,n,o){this.ctrl=e,this.args=n,this.key=o,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:n,ingKey:o,args:r}=this;n[o]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const n=this.state,o=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=e.target,n.currentTarget=e.currentTarget,n.lastOffset=o.from?Rn(o.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=e.timeStamp)}computeValues(e){const n=this.state;n._values=e,n.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:n,config:o,shared:r}=this;n.args=this.args;let s=0;if(e&&(n.event=e,o.preventDefault&&e.cancelable&&n.event.preventDefault(),n.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,pd(e)),r.down=r.pressed=r.buttons%2===1||r.touches>0,s=e.timeStamp-n.timeStamp,n.timeStamp=e.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const E=n._delta.map(Math.abs);pe.addTo(n._distance,E)}this.axisIntent&&this.axisIntent(e);const[a,l]=n._movement,[c,u]=o.threshold,{_step:d,values:f}=n;if(o.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(a)>=c&&f[0]),d[1]===!1&&(d[1]=Math.abs(l)>=u&&f[1])):(d[0]===!1&&(d[0]=Math.abs(a)>=c&&Math.sign(a)*c),d[1]===!1&&(d[1]=Math.abs(l)>=u&&Math.sign(l)*u)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const g=[0,0];if(o.hasCustomTransform){const[E,I]=f;g[0]=d[0]!==!1?E-d[0]:0,g[1]=d[1]!==!1?I-d[1]:0}else g[0]=d[0]!==!1?a-d[0]:0,g[1]=d[1]!==!1?l-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(g);const b=n.offset,x=n._active&&!n._blocked||n.active;x&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=r[this.ingKey]=n._active,e&&(n.first&&("bounds"in o&&(n._bounds=Rn(o.bounds,n)),this.setup&&this.setup()),n.movement=g,this.computeOffset()));const[y,h]=n.offset,[[v,k],[S,C]]=n._bounds;n.overflow=[y<v?-1:y>k?1:0,h<S?-1:h>C?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const w=n._active?o.rubberband||[0,0]:[0,0];if(n.offset=nd(n._bounds,n.offset,w),n.delta=pe.sub(n.offset,b),this.computeMovement(),x&&(!n.last||s>vd)){n.delta=pe.sub(n.offset,b);const E=n.delta.map(Math.abs);pe.addTo(n.distance,E),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&s>0&&(n.velocity=[E[0]/s,E[1]/s],n.timeDelta=s)}}emit(){const e=this.state,n=this.shared,o=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!o.triggerAllEvents)return;const r=this.handler(de(de(de({},n),e),{},{[this.aliasKey]:e.values}));r!==void 0&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function bd([t,e],n){const o=Math.abs(t),r=Math.abs(e);if(o>r&&o>n)return"x";if(r>o&&r>n)return"y"}class Ai extends Oi{constructor(...e){super(...e),Ce(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=pe.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=pe.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const n=this.state,o=this.config;if(!n.axis&&e){const r=typeof o.axisThreshold=="object"?o.axisThreshold[Ii(e)]:o.axisThreshold;n.axis=bd(n._movement,r)}n._blocked=(o.lockDirection||!!o.axis)&&!n.axis||!!o.axis&&o.axis!==n.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0;break}}}const yd=t=>t,Di=.15,Li={enabled(t=!0){return t},eventOptions(t,e,n){return de(de({},n.shared.eventOptions),t)},preventDefault(t=!1){return t},triggerAllEvents(t=!1){return t},rubberband(t=0){switch(t){case!0:return[Di,Di];case!1:return[0,0];default:return pe.toVector(t)}},from(t){if(typeof t=="function")return t;if(t!=null)return pe.toVector(t)},transform(t,e,n){const o=t||n.shared.transform;return this.hasCustomTransform=!!o,o||yd},threshold(t){return pe.toVector(t,0)}},xd=0,Zt=de(de({},Li),{},{axis(t,e,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(t=xd){return t},bounds(t={}){if(typeof t=="function")return s=>Zt.bounds(t(s));if("current"in t)return()=>t.current;if(typeof HTMLElement=="function"&&t instanceof HTMLElement)return t;const{left:e=-1/0,right:n=1/0,top:o=-1/0,bottom:r=1/0}=t;return[[e,n],[o,r]]}}),Bi={ArrowRight:(t,e=1)=>[t*e,0],ArrowLeft:(t,e=1)=>[-1*t*e,0],ArrowUp:(t,e=1)=>[0,-1*t*e],ArrowDown:(t,e=1)=>[0,t*e]};class Cd extends Ai{constructor(...e){super(...e),Ce(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const n=e._bounds.getBoundingClientRect(),o=e.currentTarget.getBoundingClientRect(),r={left:n.left-o.left+e.offset[0],right:n.right-o.right+e.offset[0],top:n.top-o.top+e.offset[1],bottom:n.bottom-o.bottom+e.offset[1]};e._bounds=Zt.bounds(r)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const n=this.config,o=this.state;if(e.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(e.buttons):n.pointerButtons!==-1&&n.pointerButtons!==e.buttons))return;const r=this.ctrl.setEventIds(e);n.pointerCapture&&e.target.setPointerCapture(e.pointerId),!(r&&r.size>1&&o._pointerActive)&&(this.start(e),this.setupPointer(e),o._pointerId=vr(e),o._pointerActive=!0,this.computeValues($i(e)),this.computeInitial(),n.preventScrollAxis&&Ii(e)!=="mouse"?(o._active=!1,this.setupScrollPrevention(e)):n.delay>0?(this.setupDelayTrigger(e),n.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const n=this.state,o=this.config;if(!n._pointerActive)return;const r=vr(e);if(n._pointerId!==void 0&&r!==n._pointerId)return;const s=$i(e);if(document.pointerLockElement===e.target?n._delta=[e.movementX,e.movementY]:(n._delta=pe.sub(s,n._values),this.computeValues(s)),pe.addTo(n._movement,n._delta),this.compute(e),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(e);return}if(o.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===o.preventScrollAxis||o.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}else return;this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(l){}const n=this.state,o=this.config;if(!n._active||!n._pointerActive)return;const r=vr(e);if(n._pointerId!==void 0&&r!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[s,a]=n._distance;if(n.tap=s<=o.tapsThreshold&&a<=o.tapsThreshold,n.tap&&o.filterTaps)n._force=!0;else{const[l,c]=n._delta,[u,d]=n._movement,[f,g]=o.swipe.velocity,[b,x]=o.swipe.distance,y=o.swipe.duration;if(n.elapsedTime<y){const h=Math.abs(l/n.timeDelta),v=Math.abs(c/n.timeDelta);h>f&&Math.abs(u)>b&&(n.swipe[0]=Math.sign(l)),v>g&&Math.abs(d)>x&&(n.swipe[1]=Math.sign(c))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const n=this.config,o=n.device;n.pointerLock&&e.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,o,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,o,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,o,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,Sd(e);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){const n=Bi[e.key];if(n){const o=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),o._delta=n(this.config.keyboardDisplacement,r),o._keyboardActive=!0,pe.addTo(o._movement,o._delta),this.compute(e),this.emit()}}keyUp(e){e.key in Bi&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const n=this.config.device;e(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(n,"change",this.pointerMove.bind(this)),e(n,"end",this.pointerUp.bind(this)),e(n,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function Sd(t){"persist"in t&&typeof t.persist=="function"&&t.persist()}const vn=typeof window!="undefined"&&window.document&&window.document.createElement;function Vi(){return vn&&"ontouchstart"in window}function kd(){return Vi()||vn&&window.navigator.maxTouchPoints>1}function wd(){return vn&&"onpointerdown"in window}function Ed(){return vn&&"exitPointerLock"in window.document}function Id(){try{return"constructor"in GestureEvent}catch(t){return!1}}const Le={isBrowser:vn,gesture:Id(),touch:Vi(),touchscreen:kd(),pointer:wd(),pointerLock:Ed()},_d=250,Pd=180,$d=.5,Fd=50,Td=250,Md=10,zi={mouse:0,touch:0,pen:8},Nd=de(de({},Zt),{},{device(t,e,{pointer:{touch:n=!1,lock:o=!1,mouse:r=!1}={}}){return this.pointerLock=o&&Le.pointerLock,Le.touch&&n?"touch":this.pointerLock?"mouse":Le.pointer&&!r?"pointer":Le.touch?"touch":"mouse"},preventScrollAxis(t,e,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&t?_d:void 0,!(!Le.touchscreen||n===!1))return t||(n!==void 0?"y":void 0)},pointerCapture(t,e,{pointer:{capture:n=!0,buttons:o=1,keys:r=!0}={}}){return this.pointerButtons=o,this.keys=r,!this.pointerLock&&this.device==="pointer"&&n},threshold(t,e,{filterTaps:n=!1,tapsThreshold:o=3,axis:r=void 0}){const s=pe.toVector(t,n?o:r?1:0);return this.filterTaps=n,this.tapsThreshold=o,s},swipe({velocity:t=$d,distance:e=Fd,duration:n=Td}={}){return{velocity:this.transform(pe.toVector(t)),distance:this.transform(pe.toVector(e)),duration:n}},delay(t=0){switch(t){case!0:return Pd;case!1:return 0;default:return t}},axisThreshold(t){return t?de(de({},zi),t):zi},keyboardDisplacement(t=Md){return t}});function Zi(t){const[e,n]=t.overflow,[o,r]=t._delta,[s,a]=t._direction;(e<0&&o>0&&s<0||e>0&&o<0&&s>0)&&(t._movement[0]=t._movementBound[0]),(n<0&&r>0&&a<0||n>0&&r<0&&a>0)&&(t._movement[1]=t._movementBound[1])}const Od=30,Ad=100;class Dd extends Oi{constructor(...e){super(...e),Ce(this,"ingKey","pinching"),Ce(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();const e=this.state;e._touchIds=[],e.canceled=!1,e.cancel=this.cancel.bind(this),e.turns=0}computeOffset(){const{type:e,movement:n,lastOffset:o}=this.state;e==="wheel"?this.state.offset=pe.add(n,o):this.state.offset=[(1+n[0])*o[0],n[1]+o[1]]}computeMovement(){const{offset:e,lastOffset:n}=this.state;this.state.movement=[e[0]/n[0],e[1]-n[1]]}axisIntent(){const e=this.state,[n,o]=e._movement;if(!e.axis){const r=Math.abs(n)*Od-Math.abs(o);r<0?e.axis="angle":r>0&&(e.axis="scale")}}restrictToAxis(e){this.config.lockDirection&&(this.state.axis==="scale"?e[1]=0:this.state.axis==="angle"&&(e[0]=0))}cancel(){const e=this.state;e.canceled||setTimeout(()=>{e.canceled=!0,e._active=!1,this.compute(),this.emit()},0)}touchStart(e){this.ctrl.setEventIds(e);const n=this.state,o=this.ctrl.touchIds;if(n._active&&n._touchIds.every(s=>o.has(s))||o.size<2)return;this.start(e),n._touchIds=Array.from(o).slice(0,2);const r=Pi(e,n._touchIds);r&&this.pinchStart(e,r)}pointerStart(e){if(e.buttons!=null&&e.buttons%2!==1)return;this.ctrl.setEventIds(e),e.target.setPointerCapture(e.pointerId);const n=this.state,o=n._pointerEvents,r=this.ctrl.pointerIds;if(n._active&&Array.from(o.keys()).every(a=>r.has(a))||(o.size<2&&o.set(e.pointerId,e),n._pointerEvents.size<2))return;this.start(e);const s=gr(...Array.from(o.values()));s&&this.pinchStart(e,s)}pinchStart(e,n){const o=this.state;o.origin=n.origin,this.computeValues([n.distance,n.angle]),this.computeInitial(),this.compute(e),this.emit()}touchMove(e){if(!this.state._active)return;const n=Pi(e,this.state._touchIds);n&&this.pinchMove(e,n)}pointerMove(e){const n=this.state._pointerEvents;if(n.has(e.pointerId)&&n.set(e.pointerId,e),!this.state._active)return;const o=gr(...Array.from(n.values()));o&&this.pinchMove(e,o)}pinchMove(e,n){const o=this.state,r=o._values[1],s=n.angle-r;let a=0;Math.abs(s)>270&&(a+=Math.sign(s)),this.computeValues([n.distance,n.angle-360*a]),o.origin=n.origin,o.turns=a,o._movement=[o._values[0]/o._initial[0]-1,o._values[1]-o._initial[1]],this.compute(e),this.emit()}touchEnd(e){this.ctrl.setEventIds(e),this.state._active&&this.state._touchIds.some(n=>!this.ctrl.touchIds.has(n))&&(this.state._active=!1,this.compute(e),this.emit())}pointerEnd(e){const n=this.state;this.ctrl.setEventIds(e);try{e.target.releasePointerCapture(e.pointerId)}catch(o){}n._pointerEvents.has(e.pointerId)&&n._pointerEvents.delete(e.pointerId),n._active&&n._pointerEvents.size<2&&(n._active=!1,this.compute(e),this.emit())}gestureStart(e){e.cancelable&&e.preventDefault();const n=this.state;n._active||(this.start(e),this.computeValues([e.scale,e.rotation]),n.origin=[e.clientX,e.clientY],this.compute(e),this.emit())}gestureMove(e){if(e.cancelable&&e.preventDefault(),!this.state._active)return;const n=this.state;this.computeValues([e.scale,e.rotation]),n.origin=[e.clientX,e.clientY];const o=n._movement;n._movement=[e.scale-1,e.rotation],n._delta=pe.sub(n._movement,o),this.compute(e),this.emit()}gestureEnd(e){this.state._active&&(this.state._active=!1,this.compute(e),this.emit())}wheel(e){const n=this.config.modifierKey;n&&(Array.isArray(n)?!n.find(o=>e[o]):!e[n])||(this.state._active?this.wheelChange(e):this.wheelStart(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(e){this.start(e),this.wheelChange(e)}wheelChange(e){"uv"in e||e.cancelable&&e.preventDefault();const o=this.state;o._delta=[-Mi(e)[1]/Ad*o.offset[0],0],pe.addTo(o._movement,o._delta),Zi(o),this.state.origin=[e.clientX,e.clientY],this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){const n=this.config.device;n&&(e(n,"start",this[n+"Start"].bind(this)),e(n,"change",this[n+"Move"].bind(this)),e(n,"end",this[n+"End"].bind(this)),e(n,"cancel",this[n+"End"].bind(this)),e("lostPointerCapture","",this[n+"End"].bind(this))),this.config.pinchOnWheel&&e("wheel","",this.wheel.bind(this),{passive:!1})}}const Ld=de(de({},Li),{},{device(t,e,{shared:n,pointer:{touch:o=!1}={}}){if(n.target&&!Le.touch&&Le.gesture)return"gesture";if(Le.touch&&o)return"touch";if(Le.touchscreen){if(Le.pointer)return"pointer";if(Le.touch)return"touch"}},bounds(t,e,{scaleBounds:n={},angleBounds:o={}}){const r=a=>{const l=Ni(Rn(n,a),{min:-1/0,max:1/0});return[l.min,l.max]},s=a=>{const l=Ni(Rn(o,a),{min:-1/0,max:1/0});return[l.min,l.max]};return typeof n!="function"&&typeof o!="function"?[r(),s()]:a=>[r(a),s(a)]},threshold(t,e,n){return this.lockDirection=n.axis==="lock",pe.toVector(t,this.lockDirection?[.1,3]:0)},modifierKey(t){return t===void 0?"ctrlKey":t},pinchOnWheel(t=!0){return t}});de(de({},Zt),{},{mouseOnly:(t=!0)=>t});class Bd extends Ai{constructor(...e){super(...e),Ce(this,"ingKey","wheeling")}wheel(e){this.state._active||this.start(e),this.wheelChange(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(e){const n=this.state;n._delta=Mi(e),pe.addTo(n._movement,n._delta),Zi(n),this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){e("wheel","",this.wheel.bind(this))}}const Vd=Zt;de(de({},Zt),{},{mouseOnly:(t=!0)=>t});const br=new Map,yr=new Map;function xr(t){br.set(t.key,t.engine),yr.set(t.key,t.resolver)}const ji={key:"drag",engine:Cd,resolver:Nd},zd={key:"pinch",engine:Dd,resolver:Ld},Zd={key:"wheel",engine:Bd,resolver:Vd};function jd(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,s;for(s=0;s<o.length;s++)r=o[s],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function Kd(t,e){if(t==null)return{};var n=jd(t,e),o,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)o=s[r],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}const Wd={target(t){if(t)return()=>"current"in t?t.current:t},enabled(t=!0){return t},window(t=Le.isBrowser?window:void 0){return t},eventOptions({passive:t=!0,capture:e=!1}={}){return{passive:t,capture:e}},transform(t){return t}},Ud=["target","eventOptions","window","enabled","transform"];function eo(t={},e){const n={};for(const[o,r]of Object.entries(e))switch(typeof r){case"function":n[o]=r.call(n,t[o],o,t);break;case"object":n[o]=eo(t[o],r);break;case"boolean":r&&(n[o]=t[o]);break}return n}function Hd(t,e,n={}){const o=t,{target:r,eventOptions:s,window:a,enabled:l,transform:c}=o,u=Kd(o,Ud);if(n.shared=eo({target:r,eventOptions:s,window:a,enabled:l,transform:c},Wd),e){const d=yr.get(e);n[e]=eo(de({shared:n.shared},u),d)}else for(const d in u){const f=yr.get(d);f&&(n[d]=eo(de({shared:n.shared},u[d]),f))}return n}class Ki{constructor(e,n){Ce(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=n}add(e,n,o,r,s){const a=this._listeners,l=ud(n,o),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=de(de({},c),s);e.addEventListener(l,r,u);const d=()=>{e.removeEventListener(l,r,u),a.delete(d)};return a.add(d),d}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}}class qd{constructor(){Ce(this,"_timeouts",new Map)}add(e,n,o=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(n,o,...r))}remove(e){const n=this._timeouts.get(e);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class Gd{constructor(e){Ce(this,"gestures",new Set),Ce(this,"_targetEventStore",new Ki(this)),Ce(this,"gestureEventStores",{}),Ce(this,"gestureTimeoutStores",{}),Ce(this,"handlers",{}),Ce(this,"config",{}),Ce(this,"pointerIds",new Set),Ce(this,"touchIds",new Set),Ce(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),Yd(this,e)}setEventIds(e){if(Qn(e))return this.touchIds=new Set(md(e)),this.touchIds;if("pointerId"in e)return e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId),this.pointerIds}applyHandlers(e,n){this.handlers=e,this.nativeHandlers=n}applyConfig(e,n){this.config=Hd(e,n,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const n=this.config.shared,o={};let r;if(!(n.target&&(r=n.target(),!r))){if(n.enabled){for(const a of this.gestures){const l=this.config[a],c=Wi(o,l.eventOptions,!!r);if(l.enabled){const u=br.get(a);new u(this,e,a).bind(c)}}const s=Wi(o,n.eventOptions,!!r);for(const a in this.nativeHandlers)s(a,"",l=>this.nativeHandlers[a](de(de({},this.state.shared),{},{event:l,args:e})),void 0,!0)}for(const s in o)o[s]=gd(...o[s]);if(!r)return o;for(const s in o){const{device:a,capture:l,passive:c}=cd(s);this._targetEventStore.add(r,a,"",o[s],{capture:l,passive:c})}}}}function jt(t,e){t.gestures.add(e),t.gestureEventStores[e]=new Ki(t,e),t.gestureTimeoutStores[e]=new qd}function Yd(t,e){e.drag&&jt(t,"drag"),e.wheel&&jt(t,"wheel"),e.scroll&&jt(t,"scroll"),e.move&&jt(t,"move"),e.pinch&&jt(t,"pinch"),e.hover&&jt(t,"hover")}const Wi=(t,e,n)=>(o,r,s,a={},l=!1)=>{var c,u;const d=(c=a.capture)!==null&&c!==void 0?c:e.capture,f=(u=a.passive)!==null&&u!==void 0?u:e.passive;let g=l?o:ad(o,r,d);n&&f&&(g+="Passive"),t[g]=t[g]||[],t[g].push(s)},Xd=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function Jd(t){const e={},n={},o=new Set;for(let r in t)Xd.test(r)?(o.add(RegExp.lastMatch),n[r]=t[r]):e[r]=t[r];return[n,e,o]}function Kt(t,e,n,o,r,s){if(!t.has(n)||!br.has(o))return;const a=n+"Start",l=n+"End",c=u=>{let d;return u.first&&a in e&&e[a](u),n in e&&(d=e[n](u)),u.last&&l in e&&e[l](u),d};r[o]=c,s[o]=s[o]||{}}function Qd(t,e){const[n,o,r]=Jd(t),s={};return Kt(r,n,"onDrag","drag",s,e),Kt(r,n,"onWheel","wheel",s,e),Kt(r,n,"onScroll","scroll",s,e),Kt(r,n,"onPinch","pinch",s,e),Kt(r,n,"onMove","move",s,e),Kt(r,n,"onHover","hover",s,e),{handlers:s,config:e,nativeHandlers:o}}function Cr(t,e={},n,o){const r=i.useMemo(()=>new Gd(t),[]);if(r.applyHandlers(t,o),r.applyConfig(e,n),i.useEffect(r.effect.bind(r)),i.useEffect(()=>r.clean.bind(r),[]),e.target===void 0)return r.bind.bind(r)}function to(t,e){return xr(ji),Cr({drag:t},e||{},"drag")}function Rd(t,e){return xr(Zd),Cr({wheel:t},e||{},"wheel")}function e1(t){return t.forEach(xr),function(n,o){const{handlers:r,nativeHandlers:s,config:a}=Qd(n,o||{});return Cr(r,a,void 0,s)}}const no="adm-popup",t1=Object.assign(Object.assign({},Ru),{closeOnSwipe:!1,position:"bottom"}),Wt=t=>{const{locale:e,popup:n={}}=Ie(),o=q(t1,n,t),r=B(`${no}-body`,o.bodyClassName,`${no}-body-position-${o.position}`),[s,a]=i.useState(o.visible),l=i.useRef(null);ys(l,o.disableBodyScroll&&s?"strict":!1),H.useIsomorphicLayoutEffect(()=>{o.visible&&a(!0)},[o.visible]);const c=H.useUnmountedRef(),{percent:u}=De({percent:o.visible?0:100,config:{precision:.1,mass:.4,tension:300,friction:30},onRest:()=>{var b,x;c.current||(a(o.visible),o.visible?(b=o.afterShow)===null||b===void 0||b.call(o):(x=o.afterClose)===null||x===void 0||x.call(o))}}),d=to(({swipe:[,b]})=>{var x;o.closeOnSwipe&&(b===1&&o.position==="bottom"||b===-1&&o.position==="top")&&((x=o.onClose)===null||x===void 0||x.call(o))},{axis:"y",enabled:["top","bottom"].includes(o.position)}),f=ed(s&&o.visible),g=yi(o.stopPropagation,z(o,i.createElement("div",Object.assign({className:no,onClick:o.onClick,style:{display:s?void 0:"none",touchAction:["top","bottom"].includes(o.position)?"none":"auto"}},d()),o.mask&&i.createElement(Xn,{visible:f,forceRender:o.forceRender,destroyOnClose:o.destroyOnClose,onMaskClick:b=>{var x,y;(x=o.onMaskClick)===null||x===void 0||x.call(o,b),o.closeOnMaskClick&&((y=o.onClose)===null||y===void 0||y.call(o))},className:o.maskClassName,style:o.maskStyle,disableBodyScroll:!1,stopPropagation:o.stopPropagation}),i.createElement(xe.div,{className:r,style:Object.assign(Object.assign({},o.bodyStyle),{pointerEvents:u.to(b=>b===0?"unset":"none"),transform:u.to(b=>o.position==="bottom"?`translate(0, ${b}%)`:o.position==="top"?`translate(0, -${b}%)`:o.position==="left"?`translate(-${b}%, 0)`:o.position==="right"?`translate(${b}%, 0)`:"none")}),ref:l},o.showCloseButton&&i.createElement("a",{className:B(`${no}-close-icon`,"adm-plain-anchor"),onClick:()=>{var b;(b=o.onClose)===null||b===void 0||b.call(o)},role:"button","aria-label":e.common.close},o.closeIcon),o.children))));return i.createElement(Yn,{active:s,forceRender:o.forceRender,destroyOnClose:o.destroyOnClose},Gn(o.getContainer,g))},Ui="adm-safe-area",bn=t=>z(t,i.createElement("div",{className:B(Ui,`${Ui}-position-${t.position}`)})),oo=Object.assign({},zl),{version:n1,render:o1,unmountComponentAtNode:r1}=oo;let ro;try{Number((n1||"").split(".")[0])>=18&&oo.createRoot&&(ro=oo.createRoot)}catch(t){}function Hi(t){const{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:e}=oo;e&&typeof e=="object"&&(e.usingClientEntryPoint=t)}const so="__antd_mobile_root__";function s1(t,e){o1(t,e)}function i1(t,e){Hi(!0);const n=e[so]||ro(e);Hi(!1),n.render(t),e[so]=n}function a1(t,e){if(ro){i1(t,e);return}s1(t,e)}function l1(t){return r1(t)}function c1(t){return vt(this,void 0,void 0,function*(){return Promise.resolve().then(()=>{var e;(e=t[so])===null||e===void 0||e.unmount(),delete t[so]})})}function u1(t){return ro?c1(t):l1(t)}function Sr(t){const e=document.createElement("div");document.body.appendChild(e);function n(){u1(e)&&e.parentNode&&e.parentNode.removeChild(e)}return a1(t,e),n}function yn(t){const e=i.forwardRef((r,s)=>{const[a,l]=i.useState(!1),c=i.useRef(!1),[u,d]=i.useState(t),f=i.useRef(0);i.useEffect(()=>{c.current?b():l(!0)},[]);function g(){var x,y;c.current=!0,l(!1),(y=(x=u.props).onClose)===null||y===void 0||y.call(x)}function b(){var x,y;o(),(y=(x=u.props).afterClose)===null||y===void 0||y.call(x)}return i.useImperativeHandle(s,()=>({close:g,replace:x=>{var y,h;f.current++,(h=(y=u.props).afterClose)===null||h===void 0||h.call(y),d(x)}})),i.cloneElement(u,Object.assign(Object.assign({},u.props),{key:f.current,visible:a,onClose:g,afterClose:b}))}),n=i.createRef(),o=Sr(i.createElement(e,{ref:n}));return{close:()=>vt(this,void 0,void 0,function*(){var r,s,a;n.current?(a=n.current)===null||a===void 0||a.close():(o(),(s=(r=t.props).afterClose)===null||s===void 0||s.call(r))}),replace:r=>{var s;(s=n.current)===null||s===void 0||s.replace(r)},isRendered:()=>!!n.current}}const Ee="adm-action-sheet",d1={visible:!1,actions:[],cancelText:"",closeOnAction:!1,closeOnMaskClick:!0,safeArea:!0,destroyOnClose:!1,forceRender:!1},qi=t=>{const e=q(d1,t),{styles:n}=e;return i.createElement(Wt,{visible:e.visible,onMaskClick:()=>{var o,r;(o=e.onMaskClick)===null||o===void 0||o.call(e),e.closeOnMaskClick&&((r=e.onClose)===null||r===void 0||r.call(e))},afterClose:e.afterClose,className:B(`${Ee}-popup`,e.popupClassName),style:e.popupStyle,getContainer:e.getContainer,destroyOnClose:e.destroyOnClose,forceRender:e.forceRender,bodyStyle:n==null?void 0:n.body,maskStyle:n==null?void 0:n.mask},z(e,i.createElement("div",{className:Ee},e.extra&&i.createElement("div",{className:`${Ee}-extra`},e.extra),i.createElement("div",{className:`${Ee}-button-list`},e.actions.map((o,r)=>i.createElement("div",{key:o.key,className:`${Ee}-button-item-wrapper`},i.createElement("a",{className:B("adm-plain-anchor",`${Ee}-button-item`,{[`${Ee}-button-item-danger`]:o.danger,[`${Ee}-button-item-disabled`]:o.disabled,[`${Ee}-button-item-bold`]:o.bold}),onClick:()=>{var s,a,l;(s=o.onClick)===null||s===void 0||s.call(o),(a=e.onAction)===null||a===void 0||a.call(e,o,r),e.closeOnAction&&((l=e.onClose)===null||l===void 0||l.call(e))},role:"option","aria-disabled":o.disabled},i.createElement("div",{className:`${Ee}-button-item-name`},o.text),o.description&&i.createElement("div",{className:`${Ee}-button-item-description`},o.description))))),e.cancelText&&i.createElement("div",{className:`${Ee}-cancel`,role:"option","aria-label":e.cancelText},i.createElement("div",{className:`${Ee}-button-item-wrapper`},i.createElement("a",{className:B("adm-plain-anchor",`${Ee}-button-item`),onClick:e.onClose},i.createElement("div",{className:`${Ee}-button-item-name`},e.cancelText)))),e.safeArea&&i.createElement(bn,{position:"bottom"}))))};function f1(t){return yn(i.createElement(qi,Object.assign({},t)))}const m1=ye(qi,{show:f1}),Gi="adm-auto-center",p1=t=>z(t,i.createElement("div",{className:Gi},i.createElement("div",{className:`${Gi}-content`},t.children)));var Ct={},Yi;function h1(){if(Yi)return Ct;Yi=1;var t=Ct&&Ct.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.staged=void 0;const e=t(i);function n(s){return typeof s=="function"?e.default.createElement(o,{stage:s}):s}function o(s){const a=s.stage();return n(a)}function r(s){return function(l,c){const u=s(l,c);return n(u)}}return Ct.staged=r,Ct}var Xi=h1();function St(t){return typeof t=="number"?`${t}px`:t}const g1=t=>{const e=i.useRef(null),[n]=H.useInViewport(e);return i.useEffect(()=>{n&&t.onActive()},[n]),i.createElement("div",{ref:e})},kr=H.createUpdateEffect(H.useIsomorphicLayoutEffect),v1=()=>i.createElement("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M41.396 6.234c1.923 0 3.487 1.574 3.487 3.505v29.14c0 1.937-1.568 3.51-3.491 3.51H6.604c-1.923 0-3.487-1.573-3.487-3.51V9.745c0-1.936 1.564-3.51 3.487-3.51Zm0 2.847H6.604c-.355 0-.654.3-.654.658V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.405 2.405 0 0 1 1.933.752l4.182 4.525 7.58-11.005a2.374 2.374 0 0 1 1.96-1.01c.79 0 1.532.38 1.966 1.01L42.05 34.89V9.74a.664.664 0 0 0-.654-.658Zm-28.305 2.763a3.119 3.119 0 0 1 3.117 3.117 3.119 3.119 0 0 1-3.117 3.117 3.122 3.122 0 0 1-3.117-3.117 3.119 3.119 0 0 1 3.117-3.117Z",fill:"#DBDBDB",fillRule:"nonzero"})),b1=()=>i.createElement("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M19.233 6.233 17.42 9.08l-10.817.001a.665.665 0 0 0-.647.562l-.007.096V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.415 2.415 0 0 1 1.807.625l.126.127 4.182 4.525 2.267-3.292 5.461 7.841-4.065 7.375H6.604c-1.86 0-3.382-1.47-3.482-3.317l-.005-.192V9.744c0-1.872 1.461-3.405 3.296-3.505l.19-.005h12.63Zm22.163 0c1.86 0 3.382 1.472 3.482 3.314l.005.192v29.14a3.507 3.507 0 0 1-3.3 3.505l-.191.006H27.789l3.63-6.587.06-.119a1.87 1.87 0 0 0-.163-1.853l-6.928-9.949 3.047-4.422a2.374 2.374 0 0 1 1.96-1.01 2.4 2.4 0 0 1 1.86.87l.106.14L42.05 34.89V9.74a.664.664 0 0 0-.654-.658H21.855l1.812-2.848h17.73Zm-28.305 5.611c.794 0 1.52.298 2.07.788l-.843 1.325-.067.114a1.87 1.87 0 0 0 .11 1.959l.848 1.217c-.556.515-1.3.83-2.118.83a3.122 3.122 0 0 1-3.117-3.116 3.119 3.119 0 0 1 3.117-3.117Z",fill:"#DBDBDB",fillRule:"nonzero"})),io="adm-image",y1={fit:"fill",placeholder:i.createElement("div",{className:`${io}-tip`},i.createElement(v1,null)),fallback:i.createElement("div",{className:`${io}-tip`},i.createElement(b1,null)),lazy:!1,draggable:!1},Ji=Xi.staged(t=>{const e=q(y1,t),[n,o]=i.useState(!1),[r,s]=i.useState(!1),a=i.useRef(null),l=i.useRef(null);let c=e.src,u=e.srcSet;const[d,f]=i.useState(!e.lazy);c=d?e.src:void 0,u=d?e.srcSet:void 0,kr(()=>{o(!1),s(!1)},[c]),i.useEffect(()=>{var x;!((x=l.current)===null||x===void 0)&&x.complete&&o(!0)},[]);function g(){if(r)return i.createElement(i.Fragment,null,e.fallback);const x=i.createElement("img",{ref:l,id:e.id,className:`${io}-img`,src:c,alt:e.alt,onClick:e.onClick,onLoad:y=>{var h;o(!0),(h=e.onLoad)===null||h===void 0||h.call(e,y)},onError:y=>{var h;s(!0),(h=e.onError)===null||h===void 0||h.call(e,y)},style:{objectFit:e.fit,display:n?"block":"none"},crossOrigin:e.crossOrigin,decoding:e.decoding,loading:e.loading,referrerPolicy:e.referrerPolicy,sizes:e.sizes,srcSet:u,useMap:e.useMap,draggable:e.draggable});return i.createElement(i.Fragment,null,!n&&e.placeholder,x)}const b={};return e.width&&(b["--width"]=St(e.width),b.width=St(e.width)),e.height&&(b["--height"]=St(e.height),b.height=St(e.height)),z(e,i.createElement("div",{ref:a,className:io,style:b,onClick:e.onContainerClick},e.lazy&&!d&&i.createElement(g1,{onActive:()=>{f(!0)}}),g()))}),Ut="adm-badge",Qi=i.createElement(i.Fragment,null),Ri=ye(t=>{const{content:e,color:n,children:o}=t,r=e===Qi,s=B(Ut,{[`${Ut}-fixed`]:!!o,[`${Ut}-dot`]:r,[`${Ut}-bordered`]:t.bordered}),a=e||e===0?z(t,i.createElement("div",{className:s,style:{"--color":n}},!r&&i.createElement("div",{className:`${Ut}-content`},e))):null;return o?i.createElement("div",{className:B(`${Ut}-wrapper`,t.wrapperClassName),style:t.wrapperStyle},o,a):a},{dot:Qi}),x1="adm-dot-loading",C1={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},S1={color:"default"},k1=i.memo(t=>{var e;const n=q(S1,t);return z(n,i.createElement("div",{style:{color:(e=C1[n.color])!==null&&e!==void 0?e:n.color},className:B("adm-loading",x1)},i.createElement("svg",{height:"1em",viewBox:"0 0 100 40",style:{verticalAlign:"-0.125em"}},i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-100.000000, -71.000000)"},i.createElement("g",{transform:"translate(95.000000, 71.000000)"},i.createElement("g",{transform:"translate(5.000000, 0.000000)"},[0,1,2].map(o=>i.createElement("rect",{key:o,fill:"currentColor",x:20+o*26,y:"16",width:"8",height:"8",rx:"2"},i.createElement("animate",{attributeName:"y",from:"16",to:"16",dur:"2s",begin:`${o*.2}s`,repeatCount:"indefinite",values:"16; 6; 26; 16; 16",keyTimes:"0; 0.1; 0.3; 0.4; 1"}))))))))))});function w1(t){return!!t&&typeof t=="object"&&typeof t.then=="function"}function E1(){return Mt?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1}const Be="adm-button",I1={color:"default",fill:"solid",block:!1,loading:!1,loadingIcon:i.createElement(k1,{color:"currentColor"}),type:"button",shape:"default",size:"middle"},nt=i.forwardRef((t,e)=>{const n=q(I1,t),[o,r]=i.useState(!1),s=i.useRef(null),a=n.loading==="auto"?o:n.loading,l=n.disabled||a;i.useImperativeHandle(e,()=>({get nativeElement(){return s.current}}));const c=u=>vt(void 0,void 0,void 0,function*(){if(!n.onClick)return;const d=n.onClick(u);if(w1(d))try{r(!0),yield d,r(!1)}catch(f){throw r(!1),f}});return z(n,i.createElement("button",{ref:s,type:n.type,onClick:c,className:B(Be,{[`${Be}-${n.color}`]:n.color,[`${Be}-block`]:n.block,[`${Be}-disabled`]:l,[`${Be}-fill-outline`]:n.fill==="outline",[`${Be}-fill-none`]:n.fill==="none",[`${Be}-mini`]:n.size==="mini",[`${Be}-small`]:n.size==="small",[`${Be}-large`]:n.size==="large",[`${Be}-loading`]:a},`${Be}-shape-${n.shape}`),disabled:l,onMouseDown:n.onMouseDown,onMouseUp:n.onMouseUp,onTouchStart:n.onTouchStart,onTouchEnd:n.onTouchEnd},a?i.createElement("div",{className:`${Be}-loading-wrapper`},n.loadingIcon,n.loadingText):i.createElement("span",null,n.children)))}),ea=()=>i.createElement("svg",{height:"1em",viewBox:"0 0 44 44"},i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-100.000000, -22.000000)"},i.createElement("g",{transform:"translate(100.000000, 22.000000)"},i.createElement("rect",{x:"0",y:"0",width:"44",height:"44"}),i.createElement("g",{transform:"translate(12.000000, 4.000000)",fill:"currentColor",fillRule:"nonzero"},i.createElement("path",{d:"M19.4833058,2.71985611 L3.53051139,17.0699744 C3.0173831,17.5315665 2.97522952,18.3220903 3.43630803,18.8357433 L3.43630796,18.8357432 C3.46601289,18.8688164 3.49745845,18.9002801 3.53051133,18.9300007 L19.4833057,33.2801611 C20.1234001,33.8559077 20.1759552,34.8420707 19.6007967,35.4827774 C19.0256382,36.1235263 18.0404824,36.1761351 17.400388,35.6003885 L1.44759367,21.2502703 L1.4475933,21.25027 C1.33208743,21.1463692 1.22220259,21.036372 1.11840792,20.920748 C-0.49302969,19.1256817 -0.345639536,16.3628317 1.4475933,14.7497465 L17.4003877,0.399628282 C18.0404821,-0.176160428 19.0256378,-0.123509422 19.6007963,0.517239417 C20.1759548,1.1579461 20.1233997,2.14410915 19.4833053,2.7198557 L19.4833058,2.71985611 Z"})))))),ta=()=>i.createElement("svg",{height:"1em",viewBox:"0 0 44 44"},i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-24.000000, -22.000000)"},i.createElement("g",{transform:"translate(24.000000, 22.000000)"},i.createElement("rect",{x:"0",y:"0",width:"44",height:"44"}),i.createElement("g",{transform:"translate(7.000000, 4.000000)",fill:"currentColor",fillRule:"nonzero"},i.createElement("path",{d:"M19.4833058,2.71985611 L3.53051139,17.0699744 C3.0173831,17.5315665 2.97522952,18.3220903 3.43630803,18.8357433 L3.43630796,18.8357432 C3.46601289,18.8688164 3.49745845,18.9002801 3.53051133,18.9300007 L19.4833057,33.2801611 C20.1234001,33.8559077 20.1759552,34.8420707 19.6007967,35.4827774 C19.0256382,36.1235263 18.0404824,36.1761351 17.400388,35.6003885 L1.44759367,21.2502703 L1.4475933,21.25027 C1.33208743,21.1463692 1.22220259,21.036372 1.11840792,20.920748 C-0.49302969,19.1256817 -0.345639536,16.3628317 1.4475933,14.7497465 L17.4003877,0.399628282 C18.0404821,-0.176160428 19.0256378,-0.123509422 19.6007963,0.517239417 C20.1759548,1.1579461 20.1233997,2.14410915 19.4833053,2.7198557 L19.4833058,2.71985611 Z"}),i.createElement("path",{d:"M19.5305114,17.0699744 C19.0173831,17.5315665 18.9752295,18.3220903 19.436308,18.8357433 C19.4660129,18.8688164 19.4974585,18.9002801 19.5305113,18.9300007 L29.4833057,27.2801611 C30.1234001,27.8559077 30.1759552,28.8420707 29.6007967,29.4827774 C29.0256382,30.1235263 28.0404824,30.1761351 27.400388,29.6003885 L17.4475937,21.2502703 C17.3320874,21.1463692 17.2222026,21.036372 17.1184079,20.920748 C15.5069703,19.1256817 15.6543605,16.3628317 17.4475933,14.7497465 L27.4003877,6.39962828 C28.0404821,5.82383957 29.0256378,5.87649058 29.6007963,6.51723942 C30.1759548,7.1579461 30.1233997,8.14410915 29.4833053,8.7198557 L19.5305114,17.0699744 Z"}))))));var ao={exports:{}},_1=ao.exports,na;function P1(){return na||(na=1,function(t,e){(function(n,o){t.exports=o()})(_1,function(){var n="day";return function(o,r,s){var a=function(u){return u.add(4-u.isoWeekday(),n)},l=r.prototype;l.isoWeekYear=function(){return a(this).year()},l.isoWeek=function(u){if(!this.$utils().u(u))return this.add(7*(u-this.isoWeek()),n);var d,f,g,b,x=a(this),y=(d=this.isoWeekYear(),f=this.$u,g=(f?s.utc:s)().year(d).startOf("year"),b=4-g.isoWeekday(),g.isoWeekday()>4&&(b+=7),g.add(b,n));return x.diff(y,"week")+1},l.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var c=l.startOf;l.startOf=function(u,d){var f=this.$utils(),g=!!f.u(d)||d;return f.p(u)==="isoweek"?g?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(u,d)}}})}(ao)),ao.exports}var $1=P1();const wr=Nt($1);function Se(t){const{value:e,defaultValue:n,onChange:o}=t,r=H.useUpdate(),s=i.useRef(e!==void 0?e:n);e!==void 0&&(s.current=e);const a=H.useMemoizedFn((l,c=!1)=>{const u=typeof l=="function"?l(s.current):l;if(!(!c&&u===s.current))return s.current=u,r(),o==null?void 0:o(u)});return[s.current,a]}function F1(t,e){return t.replace(/\$\{\w+\}/g,n=>{const o=n.slice(2,-1);return e[o]})}function oa(t,e){return t===void 0||e===null?null:Array.isArray(e)?e:[e,e]}function Er(t){return J().year(t.year).month(t.month-1).date(1)}J.extend(wr);const ce="adm-calendar",T1={weekStartsOn:"Sunday",defaultValue:null,allowClear:!0,prevMonthButton:i.createElement(ea,null),prevYearButton:i.createElement(ta,null),nextMonthButton:i.createElement(ea,null),nextYearButton:i.createElement(ta,null)},M1=i.forwardRef((t,e)=>{const n=J(),o=q(T1,t),{locale:r}=Ie(),s=[...r.Calendar.markItems];if(o.weekStartsOn==="Sunday"){const S=s.pop();S&&s.unshift(S)}const[a,l]=Se({value:o.value===void 0?void 0:oa(o.selectionMode,o.value),defaultValue:oa(o.selectionMode,o.defaultValue),onChange:S=>{var C,w;o.selectionMode==="single"?(C=o.onChange)===null||C===void 0||C.call(o,S?S[0]:null):o.selectionMode==="range"&&((w=o.onChange)===null||w===void 0||w.call(o,S))}}),[c,u]=i.useState(!1),[d,f]=i.useState(()=>J(a?a[0]:n).date(1));H.useUpdateEffect(()=>{var S;(S=o.onPageChange)===null||S===void 0||S.call(o,d.year(),d.month()+1)},[d]),i.useImperativeHandle(e,()=>({jumpTo:S=>{let C;typeof S=="function"?C=S({year:d.year(),month:d.month()+1}):C=S,f(Er(C))},jumpToToday:()=>{f(J().date(1))}}));const g=(S,C,w)=>{const E=d[S](C,w);if(S==="subtract"&&o.minPage){const I=Er(o.minPage);if(E.isBefore(I,w))return}if(S==="add"&&o.maxPage){const I=Er(o.maxPage);if(E.isAfter(I,w))return}f(E)},b=i.createElement("div",{className:`${ce}-header`},i.createElement("a",{className:`${ce}-arrow-button ${ce}-arrow-button-year`,onClick:()=>{g("subtract",1,"year")}},o.prevYearButton),i.createElement("a",{className:`${ce}-arrow-button ${ce}-arrow-button-month`,onClick:()=>{g("subtract",1,"month")}},o.prevMonthButton),i.createElement("div",{className:`${ce}-title`},F1(r.Calendar.yearAndMonth,{year:d.year().toString(),month:(d.month()+1).toString()})),i.createElement("a",{className:B(`${ce}-arrow-button`,`${ce}-arrow-button-right`,`${ce}-arrow-button-right-month`),onClick:()=>{g("add",1,"month")}},o.nextMonthButton),i.createElement("a",{className:B(`${ce}-arrow-button`,`${ce}-arrow-button-right`,`${ce}-arrow-button-right-year`),onClick:()=>{g("add",1,"year")}},o.nextYearButton)),x=i.useMemo(()=>o.max&&J(o.max),[o.max]),y=i.useMemo(()=>o.min&&J(o.min),[o.min]);function h(){var S;const C=[];let w=d.subtract(d.isoWeekday(),"day");for(o.weekStartsOn==="Monday"&&(w=w.add(1,"day"));C.length<6*7;){const E=w;let I=!1,P=!1,N=!1,$=!1,A=!1;if(a){const[O,K]=a;P=E.isSame(O,"day"),N=E.isSame(K,"day"),I=P||N||E.isAfter(O,"day")&&E.isBefore(K,"day"),I&&($=(C.length%7===0||E.isSame(E.startOf("month"),"day"))&&!P,A=(C.length%7===6||E.isSame(E.endOf("month"),"day"))&&!N)}const V=E.month()===d.month(),M=o.shouldDisableDate?o.shouldDisableDate(E.toDate()):x&&E.isAfter(x,"day")||y&&E.isBefore(y,"day");C.push(i.createElement("div",{key:E.valueOf(),className:B(`${ce}-cell`,(M||!V)&&`${ce}-cell-disabled`,V&&{[`${ce}-cell-today`]:E.isSame(n,"day"),[`${ce}-cell-selected`]:I,[`${ce}-cell-selected-begin`]:P,[`${ce}-cell-selected-end`]:N,[`${ce}-cell-selected-row-begin`]:$,[`${ce}-cell-selected-row-end`]:A}),onClick:()=>{if(!o.selectionMode||M)return;const O=E.toDate();V||f(E.clone().date(1));function K(){if(!o.allowClear||!a)return!1;const[G,me]=a;return E.isSame(G,"date")&&E.isSame(me,"day")}if(o.selectionMode==="single"){if(o.allowClear&&K()){l(null);return}l([O,O])}else if(o.selectionMode==="range"){if(!a){l([O,O]),u(!0);return}if(K()){l(null),u(!1);return}if(c){const G=a[0];l(G>O?[O,G]:[G,O]),u(!1)}else l([O,O]),u(!0)}}},i.createElement("div",{className:`${ce}-cell-top`},o.renderDate?o.renderDate(E.toDate()):E.date()),i.createElement("div",{className:`${ce}-cell-bottom`},(S=o.renderLabel)===null||S===void 0?void 0:S.call(o,E.toDate())))),w=w.add(1,"day")}return C}const v=i.createElement("div",{className:`${ce}-cells`},h()),k=i.createElement("div",{className:`${ce}-mark`},s.map((S,C)=>i.createElement("div",{key:C,className:`${ce}-mark-cell`},S)));return z(o,i.createElement("div",{className:ce},b,k,v))});var Ir={exports:{}},ee={};/**
126
126
  * @license React
127
127
  * react-is.production.min.js
128
128
  *
@@ -138,7 +138,7 @@
138
138
  *
139
139
  * This source code is licensed under the MIT license found in the
140
140
  * LICENSE file in the root directory of this source tree.
141
- */var ga;function j1(){if(ga)return Mr;ga=1;var t=i;function e(f,g){return f===g&&(f!==0||1/f===1/g)||f!==f&&g!==g}var n=typeof Object.is=="function"?Object.is:e,o=t.useState,r=t.useEffect,s=t.useLayoutEffect,a=t.useDebugValue;function l(f,g){var b=g(),x=o({inst:{value:b,getSnapshot:g}}),y=x[0].inst,h=x[1];return s(function(){y.value=b,y.getSnapshot=g,c(y)&&h({inst:y})},[f,b,g]),r(function(){return c(y)&&h({inst:y}),f(function(){c(y)&&h({inst:y})})},[f]),a(b),b}function c(f){var g=f.getSnapshot;f=f.value;try{var b=g();return!n(f,b)}catch(x){return!0}}function u(f,g){return g()}var d=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?u:l;return Mr.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,Mr}var va;function K1(){return va||(va=1,Tr.exports=j1()),Tr.exports}var W1=K1();let U1=!1;const ba=new Set;function ya(){return U1}function H1(t){return ba.add(t),()=>{ba.delete(t)}}function q1(){return W1.useSyncExternalStore(H1,ya,ya)}const Nr="adm-spin-loading",G1={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},Y1={color:"default"},X1=15*3.14159265358979*2,Or=i.memo(t=>{var e;const n=q(Y1,t),o=q1(),{percent:r}=De({cancel:o,loop:{reverse:!0},from:{percent:80},to:{percent:30},config:{duration:1200}});return z(n,i.createElement(xe.div,{className:Nr,style:{"--color":(e=G1[n.color])!==null&&e!==void 0?e:n.color,"--percent":r}},i.createElement("svg",{className:`${Nr}-svg`,viewBox:"0 0 32 32"},i.createElement(xe.circle,{className:`${Nr}-fill`,fill:"transparent",strokeWidth:"2",strokeDasharray:X1,strokeDashoffset:r,strokeLinecap:"square",r:15,cx:16,cy:16}))))}),Ht="adm-picker-view",J1={defaultValue:[],renderLabel:ha,mouseWheel:!1,loadingContent:i.createElement("div",{className:`${Ht}-loading-content`},i.createElement(Or,null))},Ar=i.memo(t=>{const e=q(J1,t),[n,o]=i.useState(e.value===void 0?e.defaultValue:e.value);i.useEffect(()=>{e.value!==void 0&&e.value!==n&&o(e.value)},[e.value]),i.useEffect(()=>{if(e.value===n)return;const l=window.setTimeout(()=>{e.value!==void 0&&e.value!==n&&o(e.value)},1e3);return()=>{window.clearTimeout(l)}},[e.value,n]);const r=pa(e.columns,n),s=r.columns;H.useDebounceEffect(()=>{var l;e.value!==n&&((l=e.onChange)===null||l===void 0||l.call(e,n,r))},[n],{wait:0,leading:!1,trailing:!0});const a=i.useCallback((l,c)=>{o(u=>{const d=[...u];return d[c]=l,d})},[]);return z(e,i.createElement("div",{className:`${Ht}`},e.loading?e.loadingContent:i.createElement(i.Fragment,null,s.map((l,c)=>i.createElement(da,{key:c,index:c,column:l,value:n[c],onSelect:a,renderLabel:e.renderLabel,mouseWheel:e.mouseWheel})),i.createElement("div",{className:`${Ht}-mask`},i.createElement("div",{className:`${Ht}-mask-top`}),i.createElement("div",{className:`${Ht}-mask-middle`}),i.createElement("div",{className:`${Ht}-mask-bottom`})))))});Ar.displayName="PickerView";const mt="adm-picker",Q1={defaultValue:[],closeOnMaskClick:!0,renderLabel:ha,destroyOnClose:!1,forceRender:!1},Dr=i.memo(i.forwardRef((t,e)=>{var n;const{locale:o}=Ie(),r=q(Q1,{confirmText:o.common.confirm,cancelText:o.common.cancel},t),[s,a]=Se({value:r.visible,defaultValue:!1,onChange:h=>{var v;h===!1&&((v=r.onClose)===null||v===void 0||v.call(r))}}),l={toggle:()=>{a(h=>!h)},open:()=>{a(!0)},close:()=>{a(!1)}};i.useImperativeHandle(e,()=>l);const[c,u]=Se(Object.assign(Object.assign({},r),{onChange:h=>{var v;const k=ma(r.columns,h);(v=r.onConfirm)===null||v===void 0||v.call(r,h,k)}})),d=pa(r.columns,c),[f,g]=i.useState(c);i.useEffect(()=>{f!==c&&g(c)},[s]),i.useEffect(()=>{s||g(c)},[c]);const b=H.useMemoizedFn((h,v)=>{var k;g(h),s&&((k=r.onSelect)===null||k===void 0||k.call(r,h,v))}),x=z(r,i.createElement("div",{className:mt},i.createElement("div",{className:`${mt}-header`},i.createElement("a",{role:"button",className:`${mt}-header-button`,onClick:()=>{var h;(h=r.onCancel)===null||h===void 0||h.call(r),a(!1)}},r.cancelText),i.createElement("div",{className:`${mt}-header-title`},r.title),i.createElement("a",{role:"button",className:B(`${mt}-header-button`,r.loading&&`${mt}-header-button-disabled`),onClick:()=>{r.loading||(u(f,!0),a(!1))},"aria-disabled":r.loading},r.confirmText)),i.createElement("div",{className:`${mt}-body`},i.createElement(Ar,{loading:r.loading,loadingContent:r.loadingContent,columns:r.columns,renderLabel:r.renderLabel,value:f,mouseWheel:r.mouseWheel,onChange:b})))),y=i.createElement(Wt,{style:r.popupStyle,className:B(`${mt}-popup`,r.popupClassName),visible:s,position:"bottom",onMaskClick:()=>{var h;r.closeOnMaskClick&&((h=r.onCancel)===null||h===void 0||h.call(r),a(!1))},getContainer:r.getContainer,destroyOnClose:r.destroyOnClose,afterShow:r.afterShow,afterClose:r.afterClose,onClick:r.onClick,forceRender:r.forceRender,stopPropagation:r.stopPropagation},x,i.createElement(bn,{position:"bottom"}));return i.createElement(i.Fragment,null,y,(n=r.children)===null||n===void 0?void 0:n.call(r,d.items,l))}));Dr.displayName="Picker";function R1(t){return new Promise(e=>{const n=()=>{const[r,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Dr,Object.assign({},t,{visible:r,onConfirm:(a,l)=>{var c;(c=t.onConfirm)===null||c===void 0||c.call(t,a,l),e(a)},onClose:()=>{var a;(a=t.onClose)===null||a===void 0||a.call(t),s(!1),e(null)},afterClose:()=>{var a;(a=t.afterClose)===null||a===void 0||a.call(t),o()}}))},o=Sr(i.createElement(n,null))})}const xa=ye(Dr,{prompt:R1}),Pe="adm-tabs",e0=()=>null,t0={activeLineMode:"auto",stretch:!0,direction:"ltr"},fo=ye(t=>{var e;const n=q(t0,t),o=i.useRef(null),r=i.useRef(null),s={};let a=null;const l=[],c=n.direction==="rtl";Pr(n.children,(w,E)=>{if(!i.isValidElement(w))return;const I=w.key;if(typeof I!="string")return;E===0&&(a=I);const P=l.push(w);s[I]=P-1});const[u,d]=Se({value:n.activeKey,defaultValue:(e=n.defaultActiveKey)!==null&&e!==void 0?e:a,onChange:w=>{var E;w!==null&&((E=n.onChange)===null||E===void 0||E.call(n,w))}}),[{x:f,width:g},b]=De(()=>({x:0,width:0,config:{tension:300,clamp:!0}})),[{scrollLeft:x},y]=De(()=>({scrollLeft:0,config:{tension:300,clamp:!0}})),[{leftMaskOpacity:h,rightMaskOpacity:v},k]=De(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}}));function S(w=!1,E=!1){const I=o.current;if(!I)return;const P=s[u];if(P===void 0){b.start({x:0,width:0,immediate:!0});return}const N=r.current;if(!N)return;const $=I.children.item(P+1),A=$.children.item(0),V=A.offsetLeft,M=A.offsetWidth,O=$.offsetLeft,K=$.offsetWidth,G=I.offsetWidth,me=I.scrollWidth,ve=I.scrollLeft,oe=N.offsetWidth;let ue=0,L=0;if(n.activeLineMode==="auto"?(ue=V,L=M):n.activeLineMode==="full"?(ue=O,L=K):ue=V+(M-oe)/2,c){const ce=["auto","full"].includes(n.activeLineMode)?L:oe;ue=-(G-ue-ce)}b.start({x:ue,width:L,immediate:w});const Y=me-G;if(Y<=0)return;let te=0;c?te=-ge(G/2-V+M/2-oe,0,Y):te=ge(V-(G-M)/2,0,Y),(!E||n.autoScroll!==!1)&&y.start({scrollLeft:te,from:{scrollLeft:ve},immediate:w})}H.useIsomorphicLayoutEffect(()=>{S(!f.isAnimating)},[]),kr(()=>{S()},[u,c,n.activeLineMode]),ia(()=>{S(!f.isAnimating)},o),aa(()=>{S(!f.isAnimating,!0)},o,{subtree:!0,childList:!0,characterData:!0});const{run:C}=H.useThrottleFn((w=!1)=>{const E=o.current;if(!E)return;const I=E.scrollLeft;let P=!1,N=!1;c?(P=Math.round(-I)+E.offsetWidth<E.scrollWidth,N=I<0):(P=I>0,N=I+E.offsetWidth<E.scrollWidth),k.start({leftMaskOpacity:P?1:0,rightMaskOpacity:N?1:0,immediate:w})},{wait:100,trailing:!0,leading:!0});return H.useIsomorphicLayoutEffect(()=>{C(!0)},[]),z(n,i.createElement("div",{className:Pe,style:{direction:n.direction}},i.createElement("div",{className:`${Pe}-header`},i.createElement(xe.div,{className:B(`${Pe}-header-mask`,`${Pe}-header-mask-left`),style:{opacity:h}}),i.createElement(xe.div,{className:B(`${Pe}-header-mask`,`${Pe}-header-mask-right`),style:{opacity:v}}),i.createElement(xe.div,{className:`${Pe}-tab-list`,ref:o,scrollLeft:x,onScroll:C,role:"tablist"},i.createElement(xe.div,{ref:r,className:`${Pe}-tab-line`,style:{width:n.activeLineMode==="fixed"?"var(--fixed-active-line-width, 30px)":g,x:f}}),l.map(w=>z(w.props,i.createElement("div",{key:w.key,className:B(`${Pe}-tab-wrapper`,{[`${Pe}-tab-wrapper-stretch`]:n.stretch})},i.createElement("div",{onClick:()=>{const{key:E}=w;w.props.disabled||E!=null&&d(E.toString())},className:B(`${Pe}-tab`,{[`${Pe}-tab-active`]:w.key===u,[`${Pe}-tab-disabled`]:w.props.disabled}),role:"tab","aria-selected":w.key===u},w.props.title)))))),l.map(w=>{if(w.props.children===void 0)return null;const E=w.key===u;return i.createElement(Yn,{key:w.key,active:E,forceRender:w.props.forceRender,destroyOnClose:w.props.destroyOnClose},i.createElement("div",{className:`${Pe}-content`,style:{display:E?"block":"none"}},w.props.children))})))},{Tab:e0}),xn="adm-list",n0={mode:"default"},o0=i.forwardRef((t,e)=>{const n=q(n0,t),o=i.useRef(null);return i.useImperativeHandle(e,()=>({get nativeElement(){return o.current}})),z(n,i.createElement("div",{className:B(xn,`${xn}-${n.mode}`),ref:o},n.header&&i.createElement("div",{className:`${xn}-header`},n.header),i.createElement("div",{className:`${xn}-body`},i.createElement("div",{className:`${xn}-body-inner`},n.children))))});function mo(t){return t!=null&&t!==!1}const ot="adm-list-item",qt=ye(o0,{Item:t=>{var e,n;const{arrow:o,arrowIcon:r}=t,{list:s={}}=Ie(),a=(e=t.clickable)!==null&&e!==void 0?e:!!t.onClick,l=(n=o!=null?o:r)!==null&&n!==void 0?n:a,c=Ao(s.arrowIcon,o!==!0?o:null,r!==!0?r:null),u=i.createElement("div",{className:`${ot}-content`},mo(t.prefix)&&i.createElement("div",{className:`${ot}-content-prefix`},t.prefix),i.createElement("div",{className:`${ot}-content-main`},mo(t.title)&&i.createElement("div",{className:`${ot}-title`},t.title),t.children,mo(t.description)&&i.createElement("div",{className:`${ot}-description`},t.description)),mo(t.extra)&&i.createElement("div",{className:`${ot}-content-extra`},t.extra),l&&i.createElement("div",{className:`${ot}-content-arrow`},c||i.createElement(Ju,null)));return z(t,i.createElement(a?"a":"div",{className:B(`${ot}`,a?["adm-plain-anchor"]:[],t.disabled&&`${ot}-disabled`),onClick:t.disabled?void 0:t.onClick},u))}}),Ca=i.createContext(null),r0="adm-check-list",s0={multiple:!1,defaultValue:[],activeIcon:i.createElement(xi,null)},i0=t=>{const{checkList:e={}}=Ie(),n=q(s0,e,t),[o,r]=Se(n);function s(f){n.multiple?r([...o,f]):r([f])}function a(f){r(o.filter(g=>g!==f))}const{activeIcon:l,extra:c,disabled:u,readOnly:d}=n;return i.createElement(Ca.Provider,{value:{value:o,check:s,uncheck:a,activeIcon:l,extra:c,disabled:u,readOnly:d}},z(n,i.createElement(qt,{mode:n.mode,className:r0},n.children)))},po="adm-check-list-item",ho=ye(i0,{Item:t=>{const e=i.useContext(Ca);if(e===null)return null;const n=e.value.includes(t.value),o=t.readOnly||e.readOnly,r=n?e.activeIcon:null,s=e.extra?e.extra(n):r,a=i.createElement("div",{className:`${po}-extra`},s);return z(t,i.createElement(qt.Item,{title:t.title,className:B(po,o&&`${po}-readonly`,n&&`${po}-active`),description:t.description,prefix:t.prefix,onClick:l=>{var c;o||(n?e.uncheck(t.value):e.check(t.value),(c=t.onClick)===null||c===void 0||c.call(t,l))},arrow:!1,clickable:!o,extra:a,disabled:t.disabled||e.disabled},t.children))}});function a0(t){var e=t+"",n=e.indexOf("...");return n>=0&&(n<e.indexOf(")")||e.indexOf("arguments")>=0)}function Sa(t,e){e||(e={});var n=e.vargs||a0(t),o=[],r=new Map,s,a,l=function(b){return a=setTimeout(function(){if(s){r.delete(b);return}o.splice(b,1)},e.maxAge)},c=e.maxAge>0&&e.maxAge<1/0?l:0,u=e.equals?e.equals:0,d=e.maxArgs,f=e.serializer,g;return t.length===1&&!e.equals&&!n?(g=function(b){f&&(b=f(b));var x;return r.get(b)||(!c||c(b),r.set(b,x=t.call(this,b)),x)},s=1):u?g=function(){for(var b=d||arguments.length,x=o.length,y=-1;++y<x;)if(o[y].length===b){for(var h=-1;++h<b&&u(arguments[h],o[y][h]););if(h===b)return o[y].val}return o[y]=arguments,!c||c(y),arguments.val=t.apply(this,o[y])}:g=function(){for(var b=d||arguments.length,x=o.length,y=-1;++y<x;)if(o[y].length===b){for(var h=-1;++h<b&&arguments[h]===o[y][h];);if(h===b)return o[y].val}return o[y]=arguments,!c||c(y),arguments.val=t.apply(this,o[y])},g.clear=function(){a&&clearTimeout(a),r.clear(),o=[]},g.keys=function(){return s?[...r.keys()]:o.slice()},g.values=function(){return s?[...r.values()]:o.map(b=>b.val)},g}function l0(t,e){const{valueName:n,childrenName:o}=e,r=i.useMemo(()=>Sa(l=>{const c=[];let u=t;for(const d of l){const f=u.find(g=>g[n]===d);if(!f||(c.push(f),!f[o]))break;u=f[o]}return c},{equals:Fr}),[t]),s=i.useMemo(()=>Sa(l=>l.reduce((u,d)=>{var f;return((f=u.find(g=>g[n]===d))===null||f===void 0?void 0:f[o])||[]},t).length===0,{equals:Fr}),[t]);function a(l){return{get items(){return r(l)},get isLeaf(){return s(l)}}}return a}const ka=[];function c0(t,e){const n=[];for(let o=t;o<=e;o++)n.push(o);return n}const Cn="adm-skeleton",Lr=t=>z(t,i.createElement("div",{className:B(Cn,{[`${Cn}-animated`]:t.animated})})),u0=t=>z(t,i.createElement(Lr,{animated:t.animated,className:`${Cn}-title`})),d0={lineCount:3},go=ye(Lr,{Title:u0,Paragraph:t=>{const e=q(d0,t),n=c0(1,e.lineCount),o=i.createElement("div",{className:`${Cn}-paragraph`},n.map(r=>i.createElement(Lr,{key:r,animated:e.animated,className:`${Cn}-paragraph-line`})));return z(e,o)}}),f0=(t={})=>i.useMemo(()=>{const{label:n="label",value:o="value",disabled:r="disabled",children:s="children"}=t;return[n,o,s,r]},[JSON.stringify(t)]),je="adm-cascader-view",m0={defaultValue:[]},p0=ye(t=>{const e=q(m0,t),{locale:n}=Ie(),[o,r,s,a]=f0(e.fieldNames),l=l0(e.options,{valueName:r,childrenName:s}),[c,u]=Se(Object.assign(Object.assign({},e),{onChange:h=>{var v;(v=e.onChange)===null||v===void 0||v.call(e,h,l(h))}})),[d,f]=i.useState(0),g=i.useMemo(()=>{const h=[];let v=e.options,k=!1;for(const S of c){const C=v.find(w=>w[r]===S);if(h.push({selected:C,options:v}),!C||!C[s]){k=!0;break}v=C[s]}return k||h.push({selected:void 0,options:v}),h},[c,e.options]);H.useUpdateEffect(()=>{var h;(h=e.onTabsChange)===null||h===void 0||h.call(e,d)},[d]),i.useEffect(()=>{f(g.length-1)},[c]),i.useEffect(()=>{const h=g.length-1;d>h&&f(h)},[d,g]);const b=(h,v)=>{const k=c.slice(0,v);h!==void 0&&(k[v]=h),u(k)},x=h=>e.loading||h===ka,y=e.placeholder||n.Cascader.placeholder;return z(e,i.createElement("div",{className:je},i.createElement(fo,{activeKey:d.toString(),onChange:h=>{const v=parseInt(h);f(v)},stretch:!1,className:`${je}-tabs`},g.map((h,v)=>{const k=h.selected;return i.createElement(fo.Tab,{key:v.toString(),title:i.createElement("div",{className:`${je}-header-title`},k?k[o]:typeof y=="function"?y(v):y),forceRender:!0},i.createElement("div",{className:`${je}-content`},x(h.options)?i.createElement("div",{className:`${je}-skeleton`},i.createElement(go,{className:`${je}-skeleton-line-1`,animated:!0}),i.createElement(go,{className:`${je}-skeleton-line-2`,animated:!0}),i.createElement(go,{className:`${je}-skeleton-line-3`,animated:!0}),i.createElement(go,{className:`${je}-skeleton-line-4`,animated:!0})):i.createElement(ho,{value:[c[v]],onChange:S=>b(S[0],v),activeIcon:e.activeIcon},h.options.map(S=>{const C=c[v]===S[r];return i.createElement(ho.Item,{value:S[r],key:S[r],disabled:S[a],className:B(`${je}-item`,{[`${je}-item-active`]:C})},S[o])}))))}))))},{optionSkeleton:ka}),wa=i.createContext(null),h0={disabled:!1,defaultValue:[]},g0=t=>{const e=q(h0,t),[n,o]=Se(e);return i.createElement(wa.Provider,{value:{value:n,disabled:e.disabled,check:r=>{o([...n,r])},uncheck:r=>{o(n.filter(s=>s!==r))}}},e.children)},Ea=i.memo(t=>z(t,i.createElement("svg",{viewBox:"0 0 40 40"},i.createElement("path",{d:"M31.5541766,15 L28.0892433,15 L28.0892434,15 C27.971052,15 27.8576674,15.044522 27.7740471,15.1239792 L18.2724722,24.1625319 L13.2248725,19.3630279 L13.2248725,19.3630279 C13.1417074,19.2834412 13.0287551,19.2384807 12.9107898,19.2380079 L9.44474455,19.2380079 L9.44474454,19.2380079 C9.19869815,19.2384085 8.99957935,19.4284738 9,19.66253 C9,19.7747587 9.04719253,19.8823283 9.13066188,19.9616418 L17.0907466,27.5338228 C17.4170809,27.8442545 17.8447695,28 18.2713393,28 L18.2980697,28 C18.7168464,27.993643 19.133396,27.8378975 19.4530492,27.5338228 L31.8693384,15.7236361 L31.8693384,15.7236361 C32.0434167,15.5582251 32.0435739,15.2898919 31.8696892,15.1242941 C31.7860402,15.0446329 31.6725052,15 31.5541421,15 L31.5541766,15 Z",fill:"currentColor"})))),v0=i.memo(t=>z(t,i.createElement("svg",{viewBox:"0 0 40 40"},i.createElement("path",{d:"M20,9 C26.0752953,9 31,13.9247047 31,20 C31,26.0752953 26.0752953,31 20,31 C13.9247047,31 9,26.0752953 9,20 C9,13.9247047 13.9247047,9 20,9 Z",fill:"currentColor"})))),Ia=t=>{const e=i.useRef(null),n=H.useMemoizedFn(o=>{o.stopPropagation(),o.stopImmediatePropagation();const r=o.target.checked;r!==t.checked&&t.onChange(r)});return i.useEffect(()=>{if(t.disabled||!e.current)return;const o=e.current;return o.addEventListener("click",n),()=>{o.removeEventListener("click",n)}},[t.disabled,t.onChange]),i.createElement("input",{ref:e,type:t.type,checked:t.checked,onChange:()=>{},disabled:t.disabled,id:t.id})},pt="adm-checkbox",b0={defaultChecked:!1,indeterminate:!1},y0=i.forwardRef((t,e)=>{const n=i.useContext(wa),o=q(b0,t);let[r,s]=Se({value:o.checked,defaultValue:o.defaultChecked,onChange:o.onChange}),a=o.disabled;const{value:l}=o;n&&l!==void 0&&(r=n.value.includes(l),s=u=>{var d;u?n.check(l):n.uncheck(l),(d=o.onChange)===null||d===void 0||d.call(o,u)},a=a||n.disabled),i.useImperativeHandle(e,()=>({check:()=>{s(!0)},uncheck:()=>{s(!1)},toggle:()=>{s(!r)}}));const c=()=>o.icon?i.createElement("div",{className:`${pt}-custom-icon`},o.icon(r,o.indeterminate)):i.createElement("div",{className:`${pt}-icon`},o.indeterminate?i.createElement(v0,null):r&&i.createElement(Ea,null));return z(o,i.createElement("label",{onClick:o.onClick,className:B(pt,{[`${pt}-checked`]:r&&!o.indeterminate,[`${pt}-indeterminate`]:o.indeterminate,[`${pt}-disabled`]:a,[`${pt}-block`]:o.block})},i.createElement(Ia,{type:"checkbox",checked:r,onChange:s,disabled:a,id:o.id}),c(),o.children&&i.createElement("div",{className:`${pt}-content`},o.children)))}),Br=ye(y0,{Group:g0});var vo={exports:{}},x0=vo.exports,_a;function C0(){return _a||(_a=1,function(t,e){(function(n,o){t.exports=o()})(x0,function(){return function(n,o){o.prototype.isoWeeksInYear=function(){var r=this.isLeapYear(),s=this.endOf("y").day();return s===4||r&&s===5?53:52}}})}(vo)),vo.exports}var S0=C0();const Pa=Nt(S0);var bo={exports:{}},k0=bo.exports,$a;function w0(){return $a||($a=1,function(t,e){(function(n,o){t.exports=o()})(k0,function(){return function(n,o){o.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}})}(bo)),bo.exports}var E0=w0();const Fa=Nt(E0),Sn="TILL_NOW";J.extend(wr),J.extend(Pa),J.extend(Fa);const ht={year:0,month:1,day:2,hour:3,minute:4,second:5};function I0(t,e,n,o,r,s,a){const l=[],c=e.getFullYear(),u=e.getMonth()+1,d=e.getDate(),f=e.getHours(),g=e.getMinutes(),b=e.getSeconds(),x=n.getFullYear(),y=n.getMonth()+1,h=n.getDate(),v=n.getHours(),k=n.getMinutes(),S=n.getSeconds(),C=ht[o],w=parseInt(t[0]),E=J(Vr([t[0],t[1],"1"])),I=parseInt(t[1]),P=parseInt(t[2]),N=parseInt(t[3]),$=parseInt(t[4]),A=w===c,V=w===x,M=A&&I===u,O=V&&I===y,K=M&&P===d,G=O&&P===h,me=K&&N===f,ve=G&&N===v,oe=me&&$===g,ue=ve&&$===k,L=(Y,te,ce)=>{let ie=[];for(let fe=Y;fe<=te;fe++)ie.push(fe);const Ft=t.slice(0,ht[ce]),X=s==null?void 0:s[ce];return X&&typeof X=="function"&&(ie=ie.filter(fe=>X(fe,{get date(){const D=[...Ft,fe.toString()];return Vr(D)}}))),ie};if(C>=ht.year){const ce=L(c,x,"year");l.push(ce.map(ie=>({label:r("year",ie),value:ie.toString()})))}if(C>=ht.month){const ce=L(A?u:1,V?y:12,"month");l.push(ce.map(ie=>({label:r("month",ie),value:ie.toString()})))}if(C>=ht.day){const Y=M?d:1,te=O?h:E.daysInMonth(),ce=L(Y,te,"day");l.push(ce.map(ie=>({label:r("day",ie),value:ie.toString()})))}if(C>=ht.hour){const ce=L(K?f:0,G?v:23,"hour");l.push(ce.map(ie=>({label:r("hour",ie),value:ie.toString()})))}if(C>=ht.minute){const ce=L(me?g:0,ve?k:59,"minute");l.push(ce.map(ie=>({label:r("minute",ie),value:ie.toString()})))}if(C>=ht.second){const ce=L(oe?b:0,ue?S:59,"second");l.push(ce.map(ie=>({label:r("second",ie),value:ie.toString()})))}if(a&&(l[0].push({label:r("now",null),value:Sn}),Sn===(t==null?void 0:t[0])))for(let Y=1;Y<l.length;Y+=1)l[Y]=[];return l}function _0(t){return t?[t.getFullYear().toString(),(t.getMonth()+1).toString(),t.getDate().toString(),t.getHours().toString(),t.getMinutes().toString(),t.getSeconds().toString()]:[]}function Vr(t){var e,n,o,r,s,a;const l=(e=t[0])!==null&&e!==void 0?e:"1900",c=(n=t[1])!==null&&n!==void 0?n:"1",u=(o=t[2])!==null&&o!==void 0?o:"1",d=(r=t[3])!==null&&r!==void 0?r:"0",f=(s=t[4])!==null&&s!==void 0?s:"0",g=(a=t[5])!==null&&a!==void 0?a:"0";return new Date(parseInt(l),parseInt(c)-1,parseInt(u),parseInt(d),parseInt(f),parseInt(g))}var yo={exports:{}},P0=yo.exports,Ta;function $0(){return Ta||(Ta=1,function(t,e){(function(n,o){t.exports=o()})(P0,function(){var n="month",o="quarter";return function(r,s){var a=s.prototype;a.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var l=a.add;a.add=function(u,d){return u=Number(u),this.$utils().p(d)===o?this.add(3*u,n):l.bind(this)(u,d)};var c=a.startOf;a.startOf=function(u,d){var f=this.$utils(),g=!!f.u(d)||d;if(f.p(u)===o){var b=this.quarter()-1;return g?this.month(3*b).startOf(n).startOf("day"):this.month(3*b+2).endOf(n).endOf("day")}return c.bind(this)(u,d)}}})}(yo)),yo.exports}var F0=$0();const T0=Nt(F0);J.extend(T0);const xo={year:0,quarter:1};function M0(t,e,n,o,r,s){const a=[],l=e.getFullYear(),c=n.getFullYear(),u=xo[o],d=parseInt(t[0]),f=d===l,g=d===c,b=J(e),x=J(n),y=b.quarter(),h=x.quarter(),v=(k,S,C)=>{let w=[];for(let P=k;P<=S;P++)w.push(P);const E=t.slice(0,xo[C]),I=s==null?void 0:s[C];return I&&typeof I=="function"&&(w=w.filter(P=>I(P,{get date(){const N=[...E,P.toString()];return Ma(N)}}))),w};if(u>=xo.year){const C=v(l,c,"year");a.push(C.map(w=>({label:r("year",w),value:w.toString()})))}if(u>=xo.quarter){const C=v(f?y:1,g?h:4,"quarter");a.push(C.map(w=>({label:r("quarter",w),value:w.toString()})))}return a}function N0(t){if(!t)return[];const e=J(t);return[e.year().toString(),e.quarter().toString()]}function Ma(t){var e,n;const o=(e=t[0])!==null&&e!==void 0?e:"1900",r=(n=t[1])!==null&&n!==void 0?n:"1";return J().year(parseInt(o)).quarter(parseInt(r)).hour(0).minute(0).second(0).toDate()}J.extend(wr),J.extend(Pa),J.extend(Fa);const kn={year:0,week:1,"week-day":2};function O0(t,e,n,o,r,s){const a=[],l=e.getFullYear(),c=n.getFullYear(),u=kn[o],d=parseInt(t[0]),f=d===l,g=d===c,b=J(e),x=J(n),y=b.isoWeek(),h=x.isoWeek(),v=b.isoWeekday(),k=x.isoWeekday(),S=parseInt(t[1]),C=f&&S===y,w=g&&S===h,E=J(`${d}-01-01`).isoWeeksInYear(),I=(P,N,$)=>{let A=[];for(let O=P;O<=N;O++)A.push(O);const V=t.slice(0,kn[$]),M=s==null?void 0:s[$];return M&&typeof M=="function"&&(A=A.filter(O=>M(O,{get date(){const K=[...V,O.toString()];return Na(K)}}))),A};if(u>=kn.year){const $=I(l,c,"year");a.push($.map(A=>({label:r("year",A),value:A.toString()})))}if(u>=kn.week){const $=I(f?y:1,g?h:E,"week");a.push($.map(A=>({label:r("week",A),value:A.toString()})))}if(u>=kn["week-day"]){const $=I(C?v:1,w?k:7,"week-day");a.push($.map(A=>({label:r("week-day",A),value:A.toString()})))}return a}function A0(t){if(!t)return[];const e=J(t);return[e.isoWeekYear().toString(),e.isoWeek().toString(),e.isoWeekday().toString()]}function Na(t){var e,n,o;const r=(e=t[0])!==null&&e!==void 0?e:"1900",s=(n=t[1])!==null&&n!==void 0?n:"1",a=(o=t[2])!==null&&o!==void 0?o:"1";return J(`${parseInt(r)}-01-01`).isoWeek(parseInt(s)).isoWeekday(parseInt(a)).hour(0).minute(0).second(0).toDate()}const D0={year:1,month:2,day:3,hour:4,minute:5,second:6},L0=(t,e)=>{if(e.includes("week"))return A0(t);if(e.includes("quarter"))return N0(t);{const n=e;return _0(t).slice(0,D0[n])}},Oa=(t,e)=>{if((t==null?void 0:t[0])===Sn){const n=new Date;return n.tillNow=!0,n}return e.includes("week")?Na(t):e.includes("quarter")?Ma(t):Vr(t)},B0=(t,e,n,o,r,s,a)=>o.startsWith("week")?O0(t,e,n,o,r,s):o.startsWith("quarter")?M0(t,e,n,o,r,s):I0(t,e,n,o,r,s,a);function V0(t){const{locale:e}=Ie();return i.useCallback((n,o)=>{if(t)return t(n,o);switch(n){case"minute":case"second":case"hour":return("0"+o.toString()).slice(-2);case"now":return e.DatePicker.tillNow;default:return o.toString()}},[t])}const Aa=new Date().getFullYear(),z0={min:new Date(new Date().setFullYear(Aa-10)),max:new Date(new Date().setFullYear(Aa+10)),precision:"day",defaultValue:null},Da=i.forwardRef((t,e)=>{const n=q(z0,t),{renderLabel:o}=n,[r,s]=Se({value:n.value,defaultValue:n.defaultValue,onChange:g=>{var b;g!==null&&((b=n.onConfirm)===null||b===void 0||b.call(n,g))}}),a=i.useMemo(()=>new Date,[]),l=V0(o),c=i.useMemo(()=>{let g=r!=null?r:a;return g.tillNow?[Sn]:(g=new Date(ge(g.getTime(),n.min.getTime(),n.max.getTime())),L0(g,n.precision))},[r,n.precision,n.min,n.max]),u=i.useCallback(g=>{const b=Oa(g,n.precision);s(b,!0)},[s,n.precision]),d=H.useMemoizedFn(g=>{var b;const x=Oa(g,n.precision);(b=n.onSelect)===null||b===void 0||b.call(n,x)}),f=i.useCallback(g=>B0(g,n.min,n.max,n.precision,l,n.filter,n.tillNow),[n.min,n.max,n.precision,l,n.tillNow]);return z(n,i.createElement(xa,{ref:e,columns:f,value:c,onCancel:n.onCancel,onClose:n.onClose,closeOnMaskClick:n.closeOnMaskClick,visible:n.visible,confirmText:n.confirmText,cancelText:n.cancelText,onConfirm:u,onSelect:d,getContainer:n.getContainer,loading:n.loading,loadingContent:n.loadingContent,afterShow:n.afterShow,afterClose:n.afterClose,onClick:n.onClick,title:n.title,stopPropagation:n.stopPropagation,mouseWheel:n.mouseWheel,destroyOnClose:n.destroyOnClose,forceRender:n.forceRender},(g,b)=>{var x;return(x=n.children)===null||x===void 0?void 0:x.call(n,r,b)}))});function Z0(t){return new Promise(e=>{const n=()=>{const[r,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Da,Object.assign({},t,{visible:r,onConfirm:a=>{var l;(l=t.onConfirm)===null||l===void 0||l.call(t,a),e(a)},onClose:()=>{var a;(a=t.onClose)===null||a===void 0||a.call(t),s(!1),e(null)},afterClose:()=>{var a;(a=t.afterClose)===null||a===void 0||a.call(t),o()}}))},o=Sr(i.createElement(n,null))})}const j0=ye(Da,{prompt:Z0,DATE_NOW:Sn});var La;(function(t){t[t.HIGH_SURROGATE_START=55296]="HIGH_SURROGATE_START",t[t.HIGH_SURROGATE_END=56319]="HIGH_SURROGATE_END",t[t.LOW_SURROGATE_START=56320]="LOW_SURROGATE_START",t[t.REGIONAL_INDICATOR_START=127462]="REGIONAL_INDICATOR_START",t[t.REGIONAL_INDICATOR_END=127487]="REGIONAL_INDICATOR_END",t[t.FITZPATRICK_MODIFIER_START=127995]="FITZPATRICK_MODIFIER_START",t[t.FITZPATRICK_MODIFIER_END=127999]="FITZPATRICK_MODIFIER_END",t[t.VARIATION_MODIFIER_START=65024]="VARIATION_MODIFIER_START",t[t.VARIATION_MODIFIER_END=65039]="VARIATION_MODIFIER_END",t[t.DIACRITICAL_MARKS_START=8400]="DIACRITICAL_MARKS_START",t[t.DIACRITICAL_MARKS_END=8447]="DIACRITICAL_MARKS_END",t[t.SUBDIVISION_INDICATOR_START=127988]="SUBDIVISION_INDICATOR_START",t[t.TAGS_START=917504]="TAGS_START",t[t.TAGS_END=917631]="TAGS_END",t[t.ZWJ=8205]="ZWJ"})(La||(La={}));const K0=Object.freeze([776,2359,2367,2984,3007,3021,3633,3635,3648,3657,4352,4449,4520]);var Ba;function zr(t){if(typeof t!="string")throw new TypeError("string cannot be undefined or null");const e=[];let n=0,o=0;for(;n<t.length;)o+=W0(n+o,t),J0(t[n+o])&&o++,G0(t[n+o])&&o++,Y0(t[n+o])&&o++,Q0(t[n+o])?o++:(e.push(t.substring(n,n+o)),n+=o,o=0);return e}function W0(t,e){const n=e[t];if(!U0(n)||t===e.length-1)return 1;const o=n+e[t+1];let r=e.substring(t+2,t+5);return Va(o)&&Va(r)?4:H0(o)&&X0(r)?e.slice(t).indexOf(String.fromCodePoint(917631))+2:q0(r)?4:2}function U0(t){return t&&kt(t[0].charCodeAt(0),55296,56319)}function Va(t){return kt(Zr(t),127462,127487)}function H0(t){return kt(Zr(t),127988,127988)}function q0(t){return kt(Zr(t),127995,127999)}function G0(t){return typeof t=="string"&&kt(t.charCodeAt(0),65024,65039)}function Y0(t){return typeof t=="string"&&kt(t.charCodeAt(0),8400,8447)}function X0(t){const e=t.codePointAt(0);return typeof t=="string"&&typeof e=="number"&&kt(e,917504,917631)}function J0(t){return typeof t=="string"&&K0.includes(t.charCodeAt(0))}function Q0(t){return typeof t=="string"&&t.charCodeAt(0)===8205}function Zr(t){return(t.charCodeAt(0)-55296<<10)+(t.charCodeAt(1)-56320)+65536}function kt(t,e,n){return t>=e&&t<=n}(function(t){t[t.unit_1=1]="unit_1",t[t.unit_2=2]="unit_2",t[t.unit_4=4]="unit_4"})(Ba||(Ba={}));const wt="adm-error-block",R0={status:"default"};function ef(t){return n=>{var o;const r=q(R0,n),{locale:s}=Ie(),a=s.ErrorBlock[r.status],l="description"in r?r.description:a.description,c="title"in r?r.title:a.title,u=(o=r.image)!==null&&o!==void 0?o:t[r.status],d=typeof u=="string"?i.createElement("img",{src:u,alt:"error block image"}):u;return z(r,i.createElement("div",{className:B(wt,{[`${wt}-full-page`]:r.fullPage})},i.createElement("div",{className:`${wt}-image`},d),i.createElement("div",{className:`${wt}-description`},![void 0,null].includes(c)&&i.createElement("div",{className:`${wt}-description-title`},c),![void 0,null].includes(l)&&i.createElement("div",{className:`${wt}-description-subtitle`},l)),r.children&&i.createElement("div",{className:`${wt}-content`},r.children)))}}const tf=i.createElement("svg",{viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-default-a"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("circle",{id:"error-block-image-default-d",cx:18.823,cy:18.823,r:18.823}),i.createElement("rect",{id:"error-block-image-default-b",x:3.5,y:9,width:51.429,height:88,rx:4.571})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M73.557.004c19.435-.311 38.696 17.016 51.523 35.287 8.708-10.822 17.127-16.233 25.255-16.233 13.333 0 28.35 14.274 45.053 42.822 1.769 3.024-3.582 7.435-16.054 13.231l-41.322 1.37c-7.343 5.872-31.225.626-69.152 1.234-27.79.445-45.759-1.234-53.908-5.037C3.2 71.143-1.625 68.686.48 65.308 27.371 22.12 51.73.353 73.557.003Zm93.098 49.53a1.125 1.125 0 0 0-.401.072l-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.283 1.719 4.153 3.898 4.314l.026.001v3.805c0 .39.25.705.56.705.31 0 .56-.316.56-.705l.001-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734Zm-100-5a1.125 1.125 0 0 0-.331.05l-.035.01-.035.012-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.212 1.613 4.036 3.695 4.294l.203.02.026.001v3.805c0 .39.25.705.56.705.282 0 .515-.26.555-.6l.006-.105v-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734ZM52.64 38.348l-.15.008-.149.023-.032.007-.032.008-.078.022-.045.015-.045.016-.06.023-.038.017-.038.017-.058.028-.022.011a2.201 2.201 0 0 0-.323.204l-.05.038-.05.04-.025.02-.025.021a3.742 3.742 0 0 0-.31.294l-.036.04c-.035.037-.07.076-.105.116-.01.012-.02.025-.031.036a3.275 3.275 0 0 0-.081.098l-.063.078c-2.031 2.583-3.48 8.692-3.48 11.027 0 2.636 1.846 4.832 4.292 5.323l.224.04-.064-.012.105.018.103.014v4.618c0 .47.299.85.667.85.337 0 .615-.32.659-.735l.006-.115v-4.618c.18-.023.355-.054.527-.094l.256-.067.196-.06c2.136-.706 3.68-2.75 3.68-5.162 0-2.996-2.383-12.207-5.325-12.207Z",transform:"translate(2.286 22.286)",fill:"url(#error-block-image-default-a)"}),i.createElement("g",{transform:"rotate(-90 102.429 55.357)"},i.createElement("path",{d:"M6.857 0H52a6.857 6.857 0 0 1 6.857 6.857v92A6.857 6.857 0 0 1 52 105.714H6.857A6.857 6.857 0 0 1 0 98.857v-92A6.857 6.857 0 0 1 6.857 0Z",fill:"#7EACFF"}),i.createElement("mask",{id:"error-block-image-default-c",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-default-b"})),i.createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-default-b"}),i.createElement("path",{d:"M11.838 91.8a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-2.858 0a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.16-2.305a.64.64 0 0 1 .628.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-2.982-.04a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm5.268-.531a.64.64 0 0 1 .628.651.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.858-1.143a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-6.37-.917c.209 0 .377.175.377.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm3.512-.798.093.007a.644.644 0 0 1 .535.645.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.652.627-.652Zm5.715 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-11.429 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.261.241c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm11.833-.812a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.628-.651c0-.36.281-.652.628-.652Zm-4.851.399c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm10.313-2.056a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-2.354-.128a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.652.628-.652Zm-13.798.311c.207 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.377-.39c0-.217.169-.392.377-.392Zm11.832-.812a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-6.285 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm3.428 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-6.118.24c.208 0 .376.176.376.392a.384.384 0 0 1-.376.39.384.384 0 0 1-.377-.39c0-.216.169-.391.377-.391Zm11.261-2.525a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm-3.557.484c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.478-.555a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.512-.26c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.857 0c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-4.571 0c.207 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm14.898-1.835a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-8.027-.245c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.169-.391.376-.391Zm6.271-1.349c.208 0 .377.175.377.391a.384.384 0 0 1-.377.391.384.384 0 0 1-.376-.39c0-.217.169-.392.376-.392Zm-11.484-.481c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm15.103-.972c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.39c0-.217.168-.392.376-.392Zm-9.333-1.404c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-6.819-.405c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Z",fill:"#003CFF",fillRule:"nonzero",mask:"url(#error-block-image-default-c)",transform:"rotate(116 12.367 83.503)"}),i.createElement("path",{stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"M36.774 5.474H21.523"}),i.createElement("path",{d:"m67.818 94.025-4.996 3.913m4.996 11.91-4.996-3.912m-1.142 9.145-1.143-6.288m10.71-6.768h-7.262",stroke:"#4486FE",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"})),i.createElement("circle",{cx:8.571,cy:8.571,r:8.571,transform:"translate(22.857 142)",fill:"#FFCD6B",fillRule:"nonzero"}),i.createElement("g",{transform:"translate(132.857 124)"},i.createElement("mask",{id:"error-block-image-default-e",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-default-d"})),i.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-default-d"}),i.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:13.886,cy:15.12,r:18.823}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:23.4,cy:29.057,r:1}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.343,cy:29.829,r:1}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:18.771,cy:32.657,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:29.571,cy:25.971,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:19.286,cy:7.971,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:26.486,cy:5.914,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:11.057,cy:6.943,r:1}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.086,cy:15.686,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:22.886,cy:14.657,r:1})),i.createElement("path",{d:"m87.429 135.123 6.591-9.378v-.08h-5.99v-2.559h10.038v1.787l-6.44 9.254v.082h6.56v2.557h-10.76v-1.663Zm12.185-5.889 4.948-7.047v-.056h-4.498v-1.917h7.536v1.34l-4.849 6.942v.059h4.923v1.92h-8.06v-1.24Zm10.345.702 3.708-5.274v-.045h-3.372v-1.437h5.648v1.003l-3.628 5.206v.045H116v1.438h-6.041v-.936Z",fill:"#FFF",fillRule:"nonzero"}))),nf=i.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("title",null,"@反馈/异常/网络服务异常"),i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-disconnected-c"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("circle",{id:"error-block-image-disconnected-d",cx:22.309,cy:22.309,r:22.309}),i.createElement("path",{id:"error-block-image-disconnected-a",d:"M0 0h400v400H0z"})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("mask",{id:"error-block-image-disconnected-b",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-disconnected-a"})),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"url(#error-block-image-disconnected-c)"},i.createElement("path",{d:"M151.686 45.58c38.869-.623 77.391 34.03 103.046 70.573 17.416-21.644 34.253-32.465 50.51-32.465 26.666 0 56.701 28.548 90.105 85.643 3.539 6.05-7.164 14.87-32.107 26.462l-82.643 2.741c-14.686 11.745-62.45 1.252-138.305 2.467-55.58.89-91.518-2.468-107.816-10.074-23.505-3.07-33.154-7.983-28.946-14.74C59.313 89.813 108.03 46.278 151.686 45.58Zm186.195 99.06-.127.003-.126.01a2.32 2.32 0 0 0-.465.103l-.032.01-.031.01a2.364 2.364 0 0 0-.181.071 2.52 2.52 0 0 0-.116.054l-.133.067-.042.024-.036.02a2.946 2.946 0 0 0-.133.08l-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024a4.906 4.906 0 0 0-.31.27l-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.108.008v7.608c0 .779.502 1.41 1.121 1.41.62 0 1.121-.632 1.121-1.41v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-200-10-.127.003-.126.01a2.32 2.32 0 0 0-.368.073l-.049.014-.048.016-.032.01-.031.01a2.364 2.364 0 0 0-.181.071l-.058.026-.058.028-.133.067-.042.024-.036.02-.066.039-.067.041-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024l-.156.13-.154.14-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.054.004.054.004v7.608c0 .779.502 1.41 1.121 1.41.58 0 1.058-.556 1.115-1.266l.006-.144v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-28.029-12.373-.107.002-.106.006a2.978 2.978 0 0 0-.551.095 3.444 3.444 0 0 0-.323.104 3.962 3.962 0 0 0-.61.297c-.076.045-.15.092-.226.141-4.964 3.312-8.728 18.445-8.728 23.77 0 5.434 3.922 9.935 9.04 10.726l.28.04v9.236c0 .886.532 1.614 1.21 1.692l.121.007.122-.007c.638-.074 1.147-.723 1.204-1.538l.006-.155v-9.235c5.254-.668 9.32-5.234 9.32-10.767 0-5.993-4.77-24.414-10.652-24.414Z"})),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)"},i.createElement("g",{transform:"translate(85.858 150.644)"},i.createElement("path",{d:"M116.26 28.467c1.352 0 2.703.018 4.054.054 3.923.385 10.188 4.248 9.267 11.061-.878 6.496-5.836 9.089-8.962 9.529a130.762 130.762 0 0 0-4.36-.072c-28.567 0-60.654 10.149-96.22 30.676l-2.227 1.297c-.744.437-1.49.878-2.236 1.323-4.878 2.911-11.193 1.316-14.103-3.562C-1.438 73.894.157 67.58 5.035 64.67 45.34 40.62 82.4 28.467 116.26 28.467Zm22 11.63c1.03-5.942 6.376-8.618 11.084-8.08C172.14 36.91 194.83 46.86 217.37 61.794c4.735 3.138 6.03 9.52 2.893 14.255-3.138 4.736-9.52 6.031-14.256 2.893-20.111-13.325-40.075-22.165-59.935-26.584a9.974 9.974 0 0 0-.325-.088c-3.987-1.015-8.602-5.738-7.487-12.175ZM116.26 77.418c22.777 0 45.4 7.057 67.73 20.988 4.82 3.007 6.289 9.351 3.282 14.17-3.007 4.82-9.351 6.29-14.17 3.283-19.194-11.974-38.095-17.87-56.842-17.87s-37.648 5.896-56.842 17.87c-4.82 3.007-11.164 1.537-14.17-3.282-3.007-4.82-1.538-11.164 3.282-14.171 22.33-13.931 44.953-20.988 67.73-20.988ZM117.974 124.67c9.85 0 17.303 1.69 25.687 5.082l.82.337 2.9 1.231 3.008 1.252.77.305.107.04c5.326 1.976 8.042 7.895 6.066 13.221-1.976 5.326-7.895 8.042-13.221 6.067l-.713-.27-.726-.285-.763-.31-1.263-.527-2.944-1.26-1.125-.473c-6.393-2.648-11.433-3.838-18.603-3.838-8.223 0-16.532 2.126-25.028 6.475-5.056 2.588-11.254.587-13.842-4.47-2.589-5.056-.588-11.253 4.47-13.842 11.313-5.791 22.814-8.735 34.4-8.735ZM118.235 197.047c7.15 0 13.77-.897 19.841-2.721 5.44-1.635 8.526-7.37 6.892-12.81-1.635-5.44-7.37-8.526-12.81-6.892-4.072 1.224-8.707 1.851-13.923 1.851-4.36 0-8.79-1.045-13.373-3.21l-.626-.301c-5.095-2.512-11.262-.418-13.773 4.678-2.512 5.095-.418 11.261 4.678 13.773 7.559 3.727 15.288 5.632 23.094 5.632Z",fill:"#377EFF",fillRule:"nonzero"}),i.createElement("path",{d:"M198.35 62.413c2.755-4.967 9.016-6.76 13.984-4.004 13.068 7.25 19.124 18.535 17.615 30.952-1.157 9.515-6.83 18.757-14.096 24.352-13.364 10.29-34.915 9.401-49.363-1.91-4.472-3.502-5.26-9.967-1.758-14.44 3.436-4.388 9.724-5.229 14.185-1.952l.255.194c7.283 5.702 18.475 6.164 24.13 1.809 3.072-2.366 5.766-6.754 6.226-10.536.467-3.844-1.21-7.07-6.796-10.267l-.378-.213c-4.967-2.756-6.76-9.017-4.004-13.985ZM61.35 103.092c-2.84-4.92-9.13-6.607-14.05-3.768-20.662 11.922-21.772 35.751-6.018 51.69 13.752 13.914 33.192 13.447 50.507 1.158 4.633-3.288 5.723-9.708 2.436-14.34-3.288-4.633-9.709-5.724-14.341-2.436-9.763 6.928-18.07 7.128-23.97 1.158-6.761-6.84-6.498-14.501 1.35-19.225l.317-.187c4.92-2.84 6.608-9.13 3.769-14.05ZM129.103 135.702c1.688-5.424 7.454-8.453 12.878-6.764 14.776 4.599 23.437 13.727 25.259 25.58 1.316 8.561-1.228 17.533-5.58 24.052-3.132 4.688-7.388 8.287-12.504 11.112-3.03 1.673-5.75 2.811-9.37 4.066l-1.4.477c-5.387 1.806-11.217-1.097-13.022-6.484-1.805-5.386 1.098-11.216 6.484-13.02l1.09-.374c6.032-2.112 9.602-4.19 11.613-7.201 1.693-2.535 2.818-6.502 2.356-9.503-.564-3.673-3.432-6.696-11.04-9.063-5.424-1.689-8.452-7.454-6.764-12.878Z",fill:"#377EFF",fillRule:"nonzero"}),i.createElement("path",{d:"M148.072 181.58c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.236-9.096-10.275-9.707",stroke:"#FFF",strokeWidth:.571,strokeLinecap:"round"}),i.createElement("ellipse",{fill:"#7EACFF",transform:"rotate(10 147 41.933)",cx:147,cy:41.933,rx:9.143,ry:10.286}),i.createElement("path",{d:"M210.422 107.472c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.668-9.883-11.572-12.067M51.604 131.769c-3.15-6.8-3.537-12.694-1.161-17.685 2.376-4.99 5.57-8.136 9.583-9.438",stroke:"#003CFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M21.53 64.408c4.946-3.389 9.817-6.026 14.612-7.912",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"m113.243 15.444 9.588 8.314M144.31 9.405l-5.775 11.3m18.389-1.246-11.907 4.643M127.64 5.66l2.77 14.255",stroke:"#4486FE",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}))),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)"},i.createElement("g",{transform:"translate(275.143 302.571)"},i.createElement("mask",{id:"error-block-image-disconnected-e",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-disconnected-d"})),i.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-disconnected-d"}),i.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:16.457,cy:17.92,r:22.309}),i.createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:14.263,cy:12.069,r:2.194}))),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"#FBBE47",fillRule:"nonzero"},i.createElement("circle",{cx:12,cy:12,r:12,transform:"translate(84 297.714)"})))),of=i.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-empty-a"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("path",{d:"M146.183 18.461c31.705 23.336 33.349 71.85 4.93 96.614-.252.22 6.172 5.602 13.577 11.414l.686.537.69.54.695.54.348.27.698.54a341.27 341.27 0 0 0 8.806 6.596c1.114.802 4.643-.853 10.587-4.965l-.532 12.218a1.2 1.2 0 0 1-.481.91l-10.868 8.111c-1.405 1.048-3.32 1.185-4.854.072l-35.578-25.834c-33.414 17.333-79.913 15-109.804-7-33.444-24.616-33.444-75.95 0-100.563 33.443-24.615 87.657-24.615 121.1 0Zm-60.469 7.653C51.63 26.114 24 44.534 24 67.257S51.63 108.4 85.714 108.4s61.715-18.42 61.715-41.143c0-22.722-27.63-41.143-61.715-41.143Z",id:"error-block-image-empty-b"})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M157.964 244.661H0L3.806 100.13a4.572 4.572 0 0 1 4.353-4.446l.217-.006h45.588V68.2a4.572 4.572 0 0 1 4.356-4.567l.216-.005h65.498l2.554-58.689a4.571 4.571 0 0 1 4.779-4.367l.214.015 87.79 8.222a4.572 4.572 0 0 1 4.126 4.133l.015.212 3.146 69.652L301.634 64.9a4.571 4.571 0 0 1 5.628 4.231l.005.215v43.955l56.162.001v130.264h-56.163v.001h-82.383v-.004h-66.919v1.098ZM89.503 160.03h-9.968v8.436h9.968v-8.436Zm0-14.507h-9.968v8.435h9.968v-8.435Zm197.985-5.15h-9.967v8.432h9.967v-8.431Zm-197.985-8.806h-9.968v8.436h9.968v-8.436Zm197.985-5.153h-9.967v8.432h9.967v-8.432Zm0-14.503h-9.967v8.432h9.967v-8.432Zm-84.643-.777h-30.8v8.436h30.8v-8.436Zm84.643-13.186h-9.967v8.436h9.967v-8.436Zm-84.643-3.29h-30.8v8.436h30.8v-8.436Zm0-15.912h-30.8v8.436h30.8v-8.436Z",transform:"translate(18.286 50.286)",fill:"url(#error-block-image-empty-a)"}),i.createElement("g",{transform:"translate(108.571 189.886)"},i.createElement("mask",{id:"error-block-image-empty-c",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-empty-b"})),i.createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-empty-b"}),i.createElement("path",{d:"M131.429 134.686a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285ZM128 133.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm21.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-9.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm12-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM120 128.971a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm16-1.142.125.006a1.143 1.143 0 1 1-.125-.006Zm11.429 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-22.857 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm17.143-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285ZM136 125.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-13.143 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm4.572-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm18.857-2.286a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-16-1.143.124.007a1.143 1.143 0 1 1-.124-.007Zm11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm36.572 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-37.143 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm13.715-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm9.714-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm18.286-3.428a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-11.429 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-28 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm17.715-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm17.143-4.571a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.428 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-5.143 1.142a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-8-1.142a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm-9.143 0a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm30.286-3.429a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM124 109.543a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.715-4.572a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-22.858-1.142a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm-11.428-3.429a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM124 99.257a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM49.143 55.829a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-9.143-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm21.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM52 52.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm12-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-19.429-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm16-1.143.124.007a1.143 1.143 0 1 1-.124-.007Zm11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm17.143-1.142a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.429-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-13.143 1.143a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm4.572-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM64 44.4a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-16-1.143.125.007a1.143 1.143 0 1 1-.125-.007Zm11.429 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.858 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm36.572 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM30.286 44.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM44 43.257a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm9.714-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM72 38.686a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.429 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-28 1.143a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm5.715-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM56 37.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM60.57 32.97a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM44 34.114a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-8-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-9.143 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm30.286-3.428a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-15.429 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.715 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714-4.572a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-22.857-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-11.429-3.428a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM41.714 20.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Z",fill:"#003CFF",fillRule:"nonzero",mask:"url(#error-block-image-empty-c)"})),i.createElement("path",{d:"M295.213 319.24c.744.546.745 1.433.002 1.98l-11.806 8.81c-1.069.799-3.326.474-4.853-.609l-35.622-25.241c-33.375 17.037-79.545 14.615-109.28-7.271-33.443-24.615-33.443-64.521 0-89.133 33.443-24.616 87.657-24.616 121.1 0 31.706 23.336 33.35 60.42 4.931 85.185-.543.473 35.528 26.278 35.528 26.278ZM148.06 220.015c-25.44 17.853-25.44 46.8 0 64.652 25.44 17.85 66.689 17.85 92.129 0 25.436-17.853 25.436-46.799 0-64.652-25.44-17.853-66.688-17.853-92.129 0Z",fill:"#5D96FE"}),i.createElement("path",{d:"M123.514 233.021c2.185-5.241 5.67-9.735 10.453-13.482M264.967 271.54c-2.185 5.24-5.67 9.734-10.453 13.481",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M81.143 252.571c7.574 0 13.714 23.88 13.714 31.649 0 6.97-4.942 12.755-11.429 13.871v11.672c0 1.235-.767 2.237-1.713 2.237-.904 0-1.644-.912-1.71-2.07l-.005-.167v-11.526c-7.04-.595-12.571-6.644-12.571-14.017 0-7.024 5.02-27.222 11.581-31.027l.096-.053c.027-.016.055-.03.082-.045l.067-.035.066-.033.1-.05.094-.041a3.34 3.34 0 0 1 .224-.093l.11-.042.097-.032c.038-.013.077-.025.115-.036l.053-.016.053-.014a3.351 3.351 0 0 1 .23-.055l.085-.016a3.95 3.95 0 0 1 .441-.054l.11-.005.11-.002Z",fill:"#FFCD6B",fillRule:"nonzero"}),i.createElement("g",{transform:"translate(283.429 177.143)",fillRule:"nonzero"},i.createElement("path",{d:"M22.475.847c12.34 0 22.345 37.935 22.345 50.276 0 11.395-8.53 20.798-19.552 22.172v19.019c0 1.932-1.25 3.5-2.792 3.5-1.49 0-2.707-1.46-2.79-3.301l-.004-.2-.001-19.018C8.659 71.92.13 62.518.13 51.123.13 40.071 8.154 8.49 18.694 2.015l.054-.031a5.94 5.94 0 0 1 .214-.128l.088-.048c.213-.12.427-.228.642-.326l.135-.06.18-.075.135-.053a5.796 5.796 0 0 1 .464-.16 4.44 4.44 0 0 1 .33-.092l.124-.03a7.122 7.122 0 0 1 .31-.065l.018-.003a6.305 6.305 0 0 1 .756-.088l.165-.007.166-.002Z",fill:"#FFCD6B"}),i.createElement("path",{d:"M22.475.847c12.34 0 22.345 37.935 22.345 50.276 0 11.395-8.53 20.798-19.552 22.172v19.019c0 1.932-1.25 3.5-2.792 3.5-1.543 0-2.794-1.566-2.794-3.5V73.295C8.659 71.921.13 62.518.13 51.123.13 38.783 10.134.847 22.475.847Z",fill:"#FFCD6B"}),i.createElement("circle",{fill:"#FFB400",cx:26.4,cy:56.869,r:1.45}),i.createElement("circle",{fill:"#FFB400",cx:39.453,cy:58.319,r:1}),i.createElement("circle",{fill:"#FFB400",cx:17.698,cy:63.637,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:38.002,cy:51.068,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:18.665,cy:17.228,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:32.201,cy:13.36,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:26.83,cy:20.666,r:1.45}),i.createElement("circle",{fill:"#FFB400",cx:38.969,cy:31.731,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:25.433,cy:29.797,r:1.45}),i.createElement("path",{d:"M34.197 53.033c0 9.825-6.934 18.017-16.172 19.987a22.44 22.44 0 0 0 4.45.448c12.34 0 22.344-10.004 22.344-22.345C44.82 38.783 34.815.847 22.475.847c8.947 14.03 11.722 40.891 11.722 52.186Z",fill:"#FBBE47"})))),rf=i.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-busy-a"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("circle",{id:"error-block-image-busy-b",cx:34.857,cy:34.857,r:34.857})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M157.964 243.667H0L3.806 99.134a4.572 4.572 0 0 1 4.353-4.446l.217-.005h45.588V67.205a4.572 4.572 0 0 1 4.356-4.566l.216-.005 65.498-.001 2.554-58.688a4.571 4.571 0 0 1 4.779-4.368l.214.015 87.79 8.222a4.572 4.572 0 0 1 4.126 4.133l.015.213 3.146 69.652 74.976-17.906a4.571 4.571 0 0 1 5.628 4.23l.005.216v43.955h56.162v130.265l-56.163-.001v.002h-82.383v-.004h-66.919v1.098Zm-68.461-84.631h-9.968v8.435h9.968v-8.435Zm0-14.508h-9.968v8.436h9.968v-8.436Zm197.985-5.149h-9.967v8.432h9.967v-8.432Zm-197.985-8.806h-9.968v8.436h9.968v-8.436Zm197.985-5.153h-9.967v8.432h9.967v-8.432Zm0-14.503h-9.967v8.432h9.967v-8.432Zm-84.643-.777h-30.8v8.436h30.8v-8.436Zm84.643-13.186h-9.967v8.435h9.967v-8.435Zm-84.643-3.29h-30.8v8.435h30.8v-8.435Zm0-15.912h-30.8v8.436h30.8v-8.436Z",transform:"translate(18.286 51.286)",fill:"url(#error-block-image-busy-a)"}),i.createElement("path",{d:"m250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l.958-.01c-.376 7.363 3.679 59.93 34.894 62.659 4.203.367 7.432.39 7.475 4.609.042 4.218-3.176 4.307-7.37 4.76-34.593 3.737-34.136 56.004-33.61 63.357l-.957.01c-5.276.053-9.51 4.373-9.455 9.649.053 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.054 9.508-4.374 9.455-9.648-.055-5.276-4.374-9.51-9.65-9.455l-.958.01c.377-7.363-.729-59.672-34.894-62.66-4.202-.367-7.432-.39-7.474-4.608-.043-4.219 3.175-4.308 7.369-4.76 31.276-3.377 34.136-56.004 33.61-63.357l.958-.01c5.276-.053 9.508-4.373 9.455-9.649-.055-5.276-4.374-9.509-9.65-9.454Z",fill:"#377EFF"}),i.createElement("path",{d:"M233.524 314.422c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.894-5.644c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.149 17.865c.108.684.773 1.147 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm-2.144-8.182c.109.684.773 1.148 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-1.586-4.694c.108.684.772 1.148 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.013-5.88c.109.685.773 1.148 1.484 1.036.71-.113 1.2-.759 1.09-1.443-.107-.684-.772-1.148-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm.236 15.575c.108.685.772 1.148 1.483 1.035.71-.112 1.2-.758 1.09-1.442-.107-.685-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.442Zm-.4 4.494c.108.684.772 1.147 1.483 1.035.71-.113 1.2-.759 1.091-1.443-.108-.684-.773-1.148-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-3.88-8.601c.108.684.772 1.147 1.483 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-.524-7.186c.065.41.463.688.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-2.265-4.102c.109.684.773 1.148 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.147-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm-.545-6.518c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm2.098 23.629c.109.684.773 1.147 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.443Zm-.756-9.65c.043.274.309.46.593.414a.512.512 0 0 0 .437-.577.512.512 0 0 0-.594-.414.512.512 0 0 0-.436.577Zm-.808 20.96c.109.684.773 1.147 1.484 1.034.71-.112 1.2-.758 1.09-1.442-.108-.685-.772-1.148-1.483-1.036-.71.113-1.199.759-1.09 1.443Zm-4.691-31.966c.065.41.463.689.89.621.426-.068.72-.455.654-.866-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm2.098 23.628c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.967-12.416c.109.684.773 1.147 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm1.073 6.772c.108.685.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.036-.711.113-1.2.759-1.091 1.443Zm-.009-3.131c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.43-9.03c.065.41.463.688.89.62.426-.067.72-.454.655-.865-.065-.41-.464-.689-.89-.62-.427.067-.72.454-.655.865ZM214.5 333.38c.108.685.772 1.148 1.483 1.036.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.711.112-1.2.758-1.091 1.442Zm-.156-7.178c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm-1.871-4.72c.108.684.773 1.147 1.483 1.034.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.035-.71.112-1.2.758-1.091 1.442Zm-1.614-6.857c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-.894-5.644c.065.41.464.689.89.621.427-.067.72-.455.655-.866-.065-.41-.463-.688-.89-.62-.427.067-.72.455-.655.865Zm-1.43-9.03c.065.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.958 14.225c.065.41.463.689.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-.703 12.81c.065.41.464.688.89.62.427-.067.72-.455.655-.865-.065-.41-.463-.689-.89-.621-.427.067-.72.455-.655.866Zm-4.543-22.536c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm2.806 30.138c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm-5.694-17.996c.065.41.463.688.89.62.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.866Zm-2.935-13.343c.066.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.463-.689-.89-.621-.426.068-.72.455-.655.866Z",fill:"#003CFF",fillRule:"nonzero"}),i.createElement("path",{d:"m250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l101.963-1.04c5.276-.052 9.508-4.372 9.455-9.648-.055-5.276-4.374-9.509-9.65-9.454ZM252.64 331.241l-101.964 1.038c-5.275.054-9.508 4.374-9.454 9.65.054 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.053 9.507-4.373 9.454-9.649-.054-5.275-4.374-9.508-9.649-9.454Z",fill:"#7EACFF"}),i.createElement("path",{stroke:"#003CFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"m196.824 197.298 52.216-.506M193.329 330.5h52.215"}),i.createElement("path",{d:"M167.367 228.041c-4.091-10.787-6.086-20.934-5.985-30.44",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("circle",{cx:14.857,cy:14.857,r:14.857,transform:"translate(106.857 248.571)",fill:"#FFCD6B",fillRule:"nonzero"}),i.createElement("g",{transform:"translate(236.571 284.571)"},i.createElement("mask",{id:"error-block-image-busy-c",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-busy-b"})),i.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-busy-b"}),i.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:25.714,cy:28,r:34.857}),i.createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:22.286,cy:18.857,r:3.429})))),sf=ef({default:tf,disconnected:nf,empty:of,busy:rf});let Gt=null,Yt=null;Mt&&(Gt=document.createElement("div"),Gt.className="adm-px-tester",Gt.style.setProperty("--size","10"),document.body.appendChild(Gt),Yt=document.createElement("div"),Yt.className="adm-px-tester",document.body.appendChild(Yt));function af(t){return Gt===null||Yt===null||Gt.getBoundingClientRect().height===10?t:(Yt.style.setProperty("--size",t.toString()),Yt.getBoundingClientRect().height)}const za="adm-grid",Je=ye(t=>{const e={"--columns":t.columns.toString()},{gap:n}=t;return n!==void 0&&(Array.isArray(n)?(e["--gap-horizontal"]=St(n[0]),e["--gap-vertical"]=St(n[1])):e["--gap"]=St(n)),z(t,i.createElement("div",{className:za,style:e},t.children))},{Item:t=>{const e=q({span:1},t),n={"--item-span":e.span};return z(e,i.createElement("div",{className:`${za}-item`,style:n,onClick:e.onClick},e.children))}}),Co=()=>[1,0,0,1,0,0],Za=t=>t[4],ja=t=>t[5],wn=t=>t[0],En=(t,e,n)=>Ka([1,0,0,1,e,n],t),lf=(t,e,n=e)=>Ka([e,0,0,n,0,0],t),cf=(t,[e,n])=>[t[0]*e+t[2]*n+t[4],t[1]*e+t[3]*n+t[5]],Ka=(t,e)=>[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]],uf=e1([ji,zd]),jr="adm-image-viewer",Wa=t=>{const{dragLockRef:e,maxZoom:n,imageRender:o,index:r}=t,s=i.useRef([]),a=i.useRef(null),l=i.useRef(null),[{matrix:c},u]=De(()=>({matrix:Co(),config:{tension:200}})),d=H.useSize(a),f=H.useSize(l),g=i.useRef(!1),b=v=>{if(!d||!f)return{x:{position:0,minX:0,maxX:0},y:{position:0,minY:0,maxY:0}};const k=-d.width/2,S=-d.height/2,C=-f.width/2,w=-f.height/2,E=wn(v),I=E*f.width,P=E*f.height,N=k-(I-d.width),$=k,A=S-(P-d.height),V=S,[M,O]=cf(v,[C,w]);return{x:{position:M,minX:N,maxX:$},y:{position:O,minY:A,maxY:V}}},x=(v,k,S,C=0)=>[v<=k-C,v>=S+C],y=(v,k,S=!1)=>{if(!d||!f)return v;const C=wn(v),w=C*f.width,E=C*f.height,{x:{position:I,minX:P,maxX:N},y:{position:$,minY:A,maxY:V}}=b(v);if(k==="translate"){let M=I,O=$;return w>d.width?M=S?ge(I,P,N):uo(I,P,N,C*50):M=-w/2,E>d.height?O=S?ge($,A,V):uo($,A,V,C*50):O=-E/2,En(v,M-I,O-$)}if(k==="scale"&&S){const[M,O]=[w>d.width?ge(I,P,N):-w/2,E>d.height?ge($,A,V):-E/2];return En(v,M-I,O-$)}return v};uf({onDrag:v=>{var k;if(v.first){const{x:{position:C,minX:w,maxX:E}}=b(c.get());s.current=x(C,w,E);return}if(v.pinching)return v.cancel();if(v.tap&&v.elapsedTime>0&&v.elapsedTime<1e3){(k=t.onTap)===null||k===void 0||k.call(t);return}const S=wn(c.get());if(e&&(e.current=S!==1),!g.current&&S<=1)u.start({matrix:Co()});else{const C=c.get(),w=[v.offset[0]-Za(C),v.offset[1]-ja(C)],E=En(C,...v.last?[w[0]+v.velocity[0]*v.direction[0]*200,w[1]+v.velocity[1]*v.direction[1]*200]:w);u.start({matrix:y(E,"translate",v.last),immediate:!v.last});const{x:{position:I,minX:P,maxX:N}}=b(E);v.last&&s.current.some($=>$)&&x(I,P,N).some($=>$)&&(e&&(e.current=!1),u.start({matrix:Co()}))}},onPinch:v=>{var k;g.current=!v.last;const[S]=v.offset;if(S<0)return;let C;n==="auto"?C=d&&f?Math.max(d.height/f.height,d.width/f.width):1:C=n;const w=v.last?ge(S,1,C):S;if((k=t.onZoomChange)===null||k===void 0||k.call(t,w),v.last&&w<=1)u.start({matrix:Co()}),e&&(e.current=!1);else{if(!d)return;const E=c.get(),I=wn(E),P=v.origin[0]-d.width/2,N=v.origin[1]-d.height/2;let $=En(E,-P,-N);$=lf($,w/I),$=En($,P,N),u.start({matrix:y($,"scale",v.last),immediate:!v.last}),e&&(e.current=!0)}}},{target:a,drag:{from:()=>[Za(c.get()),ja(c.get())],pointer:{touch:!0}},pinch:{from:()=>[wn(c.get()),0],pointer:{touch:!0}}});const h=typeof o=="function"&&o(t.image,{index:r});return i.createElement("div",{className:`${jr}-slide`},i.createElement("div",{className:`${jr}-control`,ref:a},i.createElement(xe.div,{className:`${jr}-image-wrapper`,style:{matrix:c}},h||i.createElement("img",{ref:l,src:t.image,draggable:!1,alt:t.image}))))},Kr="adm-image-viewer",df=i.forwardRef((t,e)=>{const n=window.innerWidth+af(16),[{x:o},r]=De(()=>({x:t.defaultIndex*n,config:{tension:250,clamp:!0}})),s=t.images.length;function a(u,d=!1){var f;const g=ge(u,0,s-1);(f=t.onIndexChange)===null||f===void 0||f.call(t,g),r.start({x:g*n,immediate:d})}i.useImperativeHandle(e,()=>({swipeTo:a}));const l=i.useRef(!1),c=to(u=>{if(l.current)return;const[d]=u.offset;if(u.last){const f=Math.floor(d/n),g=f+1,b=Math.min(u.velocity[0]*2e3,n)*u.direction[0];a(ge(Math.round((d+b)/n),f,g))}else r.start({x:d,immediate:!0})},{transform:([u,d])=>[-u,d],from:()=>[o.get(),0],bounds:()=>({left:0,right:(s-1)*n}),rubberband:!0,axis:"x",pointer:{touch:!0}});return i.createElement("div",Object.assign({className:`${Kr}-slides`},c()),i.createElement(xe.div,{className:`${Kr}-indicator`},o.to(u=>`${ge(Math.round(u/n),0,s-1)+1} / ${s}`)),i.createElement(xe.div,{className:`${Kr}-slides-inner`,style:{x:o.to(u=>-u)}},t.images.map((u,d)=>i.createElement(Wa,{key:d,image:u,onTap:t.onTap,maxZoom:t.maxZoom,imageRender:t.imageRender,index:d,onZoomChange:f=>{if(f!==1){const g=Math.round(o.get()/n);r.start({x:g*n})}},dragLockRef:l}))))}),So="adm-image-viewer",Ua={maxZoom:3,getContainer:null,visible:!1},Ha=t=>{var e,n,o;const r=q(Ua,t),s=i.createElement(Xn,{visible:r.visible,disableBodyScroll:!1,opacity:"thick",afterClose:r.afterClose,destroyOnClose:!0,className:(e=r==null?void 0:r.classNames)===null||e===void 0?void 0:e.mask},i.createElement("div",{className:B(`${So}-content`,(n=r==null?void 0:r.classNames)===null||n===void 0?void 0:n.body)},(r.image||typeof r.imageRender=="function")&&i.createElement(Wa,{image:r.image,onTap:r.onClose,maxZoom:r.maxZoom,imageRender:r.imageRender})),r.image&&i.createElement("div",{className:`${So}-footer`},(o=r.renderFooter)===null||o===void 0?void 0:o.call(r,r.image),i.createElement(bn,{position:"bottom"})));return Gn(r.getContainer,s)},ff=Object.assign(Object.assign({},Ua),{defaultIndex:0}),qa=i.forwardRef((t,e)=>{var n,o,r;const s=q(ff,t),[a,l]=i.useState(s.defaultIndex),c=i.useRef(null);i.useImperativeHandle(e,()=>({swipeTo:(f,g)=>{var b;l(f),(b=c.current)===null||b===void 0||b.swipeTo(f,g)}}));const u=i.useCallback(f=>{var g;f!==a&&(l(f),(g=s.onIndexChange)===null||g===void 0||g.call(s,f))},[s.onIndexChange,a]),d=i.createElement(Xn,{visible:s.visible,disableBodyScroll:!1,opacity:"thick",afterClose:s.afterClose,destroyOnClose:!0,className:(n=s==null?void 0:s.classNames)===null||n===void 0?void 0:n.mask},i.createElement("div",{className:B(`${So}-content`,(o=s==null?void 0:s.classNames)===null||o===void 0?void 0:o.body)},s.images&&i.createElement(df,{ref:c,defaultIndex:a,onIndexChange:u,images:s.images,onTap:s.onClose,maxZoom:s.maxZoom,imageRender:s.imageRender})),s.images&&i.createElement("div",{className:`${So}-footer`},(r=s.renderFooter)===null||r===void 0?void 0:r.call(s,s.images[a],a),i.createElement(bn,{position:"bottom"})));return Gn(s.getContainer,d)}),Xt=new Set;function mf(t){Wr();const e=yn(i.createElement(Ha,Object.assign({},t,{afterClose:()=>{var n;Xt.delete(e),(n=t.afterClose)===null||n===void 0||n.call(t)}})));return Xt.add(e),e}function pf(t){Wr();const e=yn(i.createElement(qa,Object.assign({},t,{afterClose:()=>{var n;Xt.delete(e),(n=t.afterClose)===null||n===void 0||n.call(t)}})));return Xt.add(e),e}function Wr(){Xt.forEach(t=>{t.close()}),Xt.clear()}const hf=ye(qa,{show:pf}),gf=ye(Ha,{Multi:hf,show:mf,clear:Wr}),Et="adm-space",vf={direction:"horizontal"},In=t=>{const e=q(vf,t),{direction:n,onClick:o}=e;return z(e,i.createElement("div",{className:B(Et,{[`${Et}-wrap`]:e.wrap,[`${Et}-block`]:e.block,[`${Et}-${n}`]:!0,[`${Et}-align-${e.align}`]:!!e.align,[`${Et}-justify-${e.justify}`]:!!e.justify}),onClick:o},i.Children.map(e.children,r=>r!=null&&i.createElement("div",{className:`${Et}-item`},r))))},It="adm-image-uploader",Ga=t=>{const{locale:e}=Ie(),{url:n,file:o,deletable:r,deleteIcon:s,onDelete:a,imageFit:l}=t,c=i.useMemo(()=>n||(o?URL.createObjectURL(o):""),[n,o]);i.useEffect(()=>()=>{o&&URL.revokeObjectURL(c)},[c,o]);function u(){return t.status==="pending"&&i.createElement("div",{className:`${It}-cell-mask`},i.createElement("span",{className:`${It}-cell-loading`},i.createElement(Or,{color:"white"}),i.createElement("span",{className:`${It}-cell-mask-message`},e.ImageUploader.uploading)))}function d(){return r&&i.createElement("span",{className:`${It}-cell-delete`,onClick:a},s)}return i.createElement("div",{className:B(`${It}-cell`,t.status==="fail"&&`${It}-cell-fail`)},i.createElement(Ji,{className:`${It}-cell-image`,src:c,fit:l,onClick:t.onClick}),u(),d())},Qe="adm-image-uploader",bf={disableUpload:!1,deletable:!0,deleteIcon:i.createElement(Jn,{className:`${Qe}-cell-delete-icon`}),showUpload:!0,multiple:!1,maxCount:0,defaultValue:[],accept:"image/*",preview:!0,showFailed:!0,imageFit:"cover"},Ya=i.forwardRef((t,e)=>{const{locale:n}=Ie(),o=q(bf,t),{columns:r}=o,[s,a]=Se(o),[l,c]=i.useState([]),u=i.useRef(null),d=H.useSize(u),f=i.useRef(null),[g,b]=i.useState(80),x=i.useRef(null);H.useIsomorphicLayoutEffect(()=>{const M=f.current;if(r&&d&&M){const O=d.width,K=ua(window.getComputedStyle(M).getPropertyValue("height"));b((O-K*(r-1))/r)}},[d==null?void 0:d.width]);const y={"--cell-size":g+"px"};H.useIsomorphicLayoutEffect(()=>{c(M=>M.filter(O=>O.url===void 0?!0:!s.some(K=>K.url===O.url)))},[s]),H.useIsomorphicLayoutEffect(()=>{var M;(M=o.onUploadQueueChange)===null||M===void 0||M.call(o,l.map(O=>({id:O.id,status:O.status})))},[l]);const h=i.useRef(0),{maxCount:v,onPreview:k,renderItem:S}=o;function C(M,O){return vt(this,void 0,void 0,function*(){const{beforeUpload:K}=o;let G=M;return G=yield K==null?void 0:K(M,O),G})}function w(M){return o.showFailed?M:M.filter(O=>O.status!=="fail")}function E(M){var O;return vt(this,void 0,void 0,function*(){M.persist();const{files:K}=M.target;if(!K)return;let G=[].slice.call(K);if(M.target.value="",o.beforeUpload){const oe=G.map(ue=>C(ue,G));yield Promise.all(oe).then(ue=>{G=ue.filter(Boolean)})}if(G.length===0)return;if(v>0){const oe=s.length+G.length-v;oe>0&&(G=G.slice(0,G.length-oe),(O=o.onCountExceed)===null||O===void 0||O.call(o,oe))}const me=G.map(oe=>({id:h.current++,status:"pending",file:oe}));c(oe=>[...w(oe),...me]);const ve=[];yield Promise.all(me.map((oe,ue)=>vt(this,void 0,void 0,function*(){try{const L=yield o.upload(oe.file);ve[ue]=L,c(Y=>Y.map(te=>te.id===oe.id?Object.assign(Object.assign({},te),{status:"success",url:L.url}):te))}catch(L){c(Y=>Y.map(te=>te.id===oe.id?Object.assign(Object.assign({},te),{status:"fail"}):te)),console.error(L)}}))),a(oe=>oe.concat(ve).filter(Boolean))})}const I=i.useRef(null);function P(M){I.current=gf.Multi.show({images:s.map(O=>O.url),defaultIndex:M,onClose:()=>{I.current=null}})}H.useUnmount(()=>{var M;(M=I.current)===null||M===void 0||M.close()});const N=w(l),$=o.showUpload&&(v===0||s.length+N.length<v),A=()=>s.map((M,O)=>{var K,G;const me=i.createElement(Ga,{key:(K=M.key)!==null&&K!==void 0?K:O,url:(G=M.thumbnailUrl)!==null&&G!==void 0?G:M.url,deletable:o.deletable,deleteIcon:o.deleteIcon,imageFit:o.imageFit,onClick:()=>{o.preview&&P(O),k&&k(O,M)},onDelete:()=>vt(void 0,void 0,void 0,function*(){var ve;(yield(ve=o.onDelete)===null||ve===void 0?void 0:ve.call(o,M))!==!1&&a(s.filter((ue,L)=>L!==O))})});return S?S(me,M,s):me}),V=i.createElement(i.Fragment,null,A(),l.map(M=>!o.showFailed&&M.status==="fail"?null:i.createElement(Ga,{key:M.id,file:M.file,deletable:M.status!=="pending",deleteIcon:o.deleteIcon,status:M.status,imageFit:o.imageFit,onDelete:()=>{c(l.filter(O=>O.id!==M.id))}})),i.createElement("div",{className:`${Qe}-upload-button-wrap`,style:$?void 0:{display:"none"}},o.children||i.createElement("span",{className:`${Qe}-cell ${Qe}-upload-button`,role:"button","aria-label":n.ImageUploader.upload},i.createElement("span",{className:`${Qe}-upload-button-icon`},i.createElement(qu,null))),!o.disableUpload&&i.createElement("input",{"aria-label":n.ImageUploader.upload,ref:x,capture:o.capture,accept:o.accept,multiple:o.multiple,type:"file",className:`${Qe}-input`,onChange:E})));return i.useImperativeHandle(e,()=>({get nativeElement(){return x.current}})),z(o,i.createElement("div",{className:Qe,ref:u},r?i.createElement(Je,{className:`${Qe}-grid`,columns:r,style:y},i.createElement("div",{className:`${Qe}-gap-measure`,ref:f}),V.props.children):i.createElement(In,{className:`${Qe}-space`,wrap:!0,block:!0},V.props.children)))});function Xa({onEnterPress:t,onKeyDown:e,nativeInputRef:n,enterKeyHint:o}){const r=s=>{t&&(s.code==="Enter"||s.keyCode===13)&&t(s),e==null||e(s)};return H.useIsomorphicLayoutEffect(()=>{const s=n.current;if(!(!o||!s))return s.setAttribute("enterkeyhint",o),()=>{s.removeAttribute("enterkeyhint")}},[o]),r}const ko="adm-input",yf={defaultValue:"",clearIcon:i.createElement(Gu,null),onlyShowClearWhenFocus:!0},Ur=i.forwardRef((t,e)=>{const{locale:n,input:o={}}=Ie(),r=q(yf,o,t),[s,a]=Se(r),[l,c]=i.useState(!1),u=i.useRef(!1),d=i.useRef(null),f=Xa({onEnterPress:r.onEnterPress,onKeyDown:r.onKeyDown,nativeInputRef:d,enterKeyHint:r.enterKeyHint});i.useImperativeHandle(e,()=>({clear:()=>{a("")},focus:()=>{var x;(x=d.current)===null||x===void 0||x.focus()},blur:()=>{var x;(x=d.current)===null||x===void 0||x.blur()},get nativeElement(){return d.current}}));function g(){let x=s;if(r.type==="number"){const y=x&&ge(parseFloat(x),r.min,r.max).toString();Number(x)!==Number(y)&&(x=y)}x!==s&&a(x)}const b=!r.clearable||!s||r.readOnly?!1:r.onlyShowClearWhenFocus?l:!0;return z(r,i.createElement("div",{className:B(`${ko}`,r.disabled&&`${ko}-disabled`)},i.createElement("input",{ref:d,className:`${ko}-element`,value:s,onChange:x=>{a(x.target.value)},onFocus:x=>{var y;c(!0),(y=r.onFocus)===null||y===void 0||y.call(r,x)},onBlur:x=>{var y;c(!1),g(),(y=r.onBlur)===null||y===void 0||y.call(r,x)},onPaste:r.onPaste,id:r.id,placeholder:r.placeholder,disabled:r.disabled,readOnly:r.readOnly,maxLength:r.maxLength,minLength:r.minLength,max:r.max,min:r.min,autoComplete:r.autoComplete,enterKeyHint:r.enterKeyHint,autoFocus:r.autoFocus,pattern:r.pattern,inputMode:r.inputMode,type:r.type,name:r.name,autoCapitalize:r.autoCapitalize,autoCorrect:r.autoCorrect,onKeyDown:f,onKeyUp:r.onKeyUp,onCompositionStart:x=>{var y;u.current=!0,(y=r.onCompositionStart)===null||y===void 0||y.call(r,x)},onCompositionEnd:x=>{var y;u.current=!1,(y=r.onCompositionEnd)===null||y===void 0||y.call(r,x)},onClick:r.onClick,step:r.step,role:r.role,"aria-valuenow":r["aria-valuenow"],"aria-valuemax":r["aria-valuemax"],"aria-valuemin":r["aria-valuemin"],"aria-label":r["aria-label"]}),b&&i.createElement("div",{className:`${ko}-clear`,onMouseDown:x=>{x.preventDefault()},onClick:()=>{var x,y;a(""),(x=r.onClear)===null||x===void 0||x.call(r),E1()&&u.current&&(u.current=!1,(y=d.current)===null||y===void 0||y.blur())},"aria-label":n.Input.clear},r.clearIcon)))}),Re="adm-jumbo-tabs",Ja=ye(t=>{var e;const n=i.useRef(null),o=i.useRef(null),r={};let s=null;const a=[];Pr(t.children,(f,g)=>{if(!i.isValidElement(f))return;const b=f.key;if(typeof b!="string")return;g===0&&(s=b);const x=a.push(f);r[b]=x-1});const[l,c]=Se({value:t.activeKey,defaultValue:(e=t.defaultActiveKey)!==null&&e!==void 0?e:s,onChange:f=>{var g;f!==null&&((g=t.onChange)===null||g===void 0||g.call(t,f))}}),{scrollLeft:u,animate:d}=B1(n,r[l]);return ia(()=>{d(!0)},o),z(t,i.createElement("div",{className:Re,ref:o},i.createElement("div",{className:`${Re}-header`},i.createElement(V1,{scrollTrackRef:n}),i.createElement(xe.div,{className:`${Re}-tab-list`,ref:n,scrollLeft:u},a.map(f=>z(f.props,i.createElement("div",{key:f.key,className:`${Re}-tab-wrapper`},i.createElement("div",{onClick:()=>{const{key:g}=f;f.props.disabled||g!=null&&c(g.toString())},className:B(`${Re}-tab`,{[`${Re}-tab-active`]:f.key===l,[`${Re}-tab-disabled`]:f.props.disabled})},i.createElement("div",{className:`${Re}-tab-title`},f.props.title),i.createElement("div",{className:`${Re}-tab-description`},f.props.description))))))),a.map(f=>{if(f.props.children===void 0)return null;const g=f.key===l;return i.createElement(Yn,{key:f.key,active:g,forceRender:f.props.forceRender,destroyOnClose:f.props.destroyOnClose},i.createElement("div",{className:`${Re}-content`,style:{display:g?"block":"none"}},f.props.children))})))},{Tab:()=>null}),Jt="adm-nav-bar",Qa=i.createElement(Xu,null),xf=t=>{const{navBar:e={}}=Ie(),n=q(e,t),{back:o,backIcon:r,backArrow:s}=n,a=e.backIcon||Qa,l=Ao(Qa,e.backIcon,s===!0?a:s,r===!0?a:r);return z(n,i.createElement("div",{className:B(Jt)},i.createElement("div",{className:`${Jt}-left`,role:"button"},o!==null&&i.createElement("div",{className:`${Jt}-back`,onClick:n.onBack},l&&i.createElement("span",{className:`${Jt}-back-arrow`},l),i.createElement("span",{"aria-hidden":"true"},o)),n.left),i.createElement("div",{className:`${Jt}-title`},n.children),i.createElement("div",{className:`${Jt}-right`},n.right)))},_n="adm-page-indicator",Cf={color:"primary",direction:"horizontal"},Sf=i.memo(t=>{const e=q(Cf,t),n=[];for(let o=0;o<e.total;o++)n.push(i.createElement("div",{key:o,className:B(`${_n}-dot`,{[`${_n}-dot-active`]:e.current===o})}));return z(e,i.createElement("div",{className:B(_n,`${_n}-${e.direction}`,`${_n}-color-${e.color}`)},n))}),Ra=i.createContext(null),kf={disabled:!1,defaultValue:null},wf=t=>{const e=q(kf,t),[n,o]=Se({value:e.value,defaultValue:e.defaultValue,onChange:r=>{var s;r!==null&&((s=e.onChange)===null||s===void 0||s.call(e,r))}});return i.createElement(Ra.Provider,{value:{value:n===null?[]:[n],check:r=>{o(r)},uncheck:()=>{},disabled:e.disabled}},e.children)},_t="adm-radio",Ef={defaultChecked:!1},Hr=ye(t=>{const e=q(Ef,t),n=i.useContext(Ra);let[o,r]=Se({value:e.checked,defaultValue:e.defaultChecked,onChange:e.onChange}),s=e.disabled;const{value:a}=e;n&&a!==void 0&&(o=n.value.includes(a),r=c=>{var u;c?n.check(a):n.uncheck(a),(u=e.onChange)===null||u===void 0||u.call(e,c)},s=s||n.disabled);const l=()=>e.icon?i.createElement("div",{className:`${_t}-custom-icon`},e.icon(o)):i.createElement("div",{className:`${_t}-icon`},o&&i.createElement(Ea,null));return z(e,i.createElement("label",{onClick:e.onClick,className:B(_t,{[`${_t}-checked`]:o,[`${_t}-disabled`]:s,[`${_t}-block`]:e.block})},i.createElement(Ia,{type:"radio",checked:o,onChange:r,disabled:s,id:e.id}),l(),e.children&&i.createElement("div",{className:`${_t}-content`},e.children)))},{Group:wf}),gt="adm-search-bar",If={clearable:!0,onlyShowClearWhenFocus:!1,showCancelButton:!1,defaultValue:"",clearOnCancel:!0},el=i.forwardRef((t,e)=>{const{locale:n,searchBar:o={}}=Ie(),r=q(If,o,{cancelText:n.common.cancel},t),s=Ao(i.createElement(Qu,null),o.searchIcon,t.icon,t.searchIcon),[a,l]=Se(r),[c,u]=i.useState(!1),d=i.useRef(null),f=i.useRef(!1);i.useImperativeHandle(e,()=>({clear:()=>{var b;return(b=d.current)===null||b===void 0?void 0:b.clear()},focus:()=>{var b;return(b=d.current)===null||b===void 0?void 0:b.focus()},blur:()=>{var b;return(b=d.current)===null||b===void 0?void 0:b.blur()},get nativeElement(){var b,x;return(x=(b=d.current)===null||b===void 0?void 0:b.nativeElement)!==null&&x!==void 0?x:null}}));const g=()=>{let b;return typeof r.showCancelButton=="function"?b=r.showCancelButton(c,a):b=r.showCancelButton&&c,b&&i.createElement("div",{className:`${gt}-suffix`},i.createElement(nt,{fill:"none",className:`${gt}-cancel-button`,onClick:()=>{var x,y,h;r.clearOnCancel&&((x=d.current)===null||x===void 0||x.clear()),(y=d.current)===null||y===void 0||y.blur(),(h=r.onCancel)===null||h===void 0||h.call(r)},onMouseDown:x=>{x.preventDefault()}},r.cancelText))};return z(r,i.createElement("div",{className:B(gt,{[`${gt}-active`]:c})},i.createElement("div",{className:`${gt}-input-box`},s&&i.createElement("div",{className:`${gt}-input-box-icon`},s),i.createElement(Ur,{ref:d,className:B(`${gt}-input`,{[`${gt}-input-without-icon`]:!s}),value:a,onChange:l,maxLength:r.maxLength,autoFocus:r.autoFocus,placeholder:r.placeholder,clearable:r.clearable,onlyShowClearWhenFocus:r.onlyShowClearWhenFocus,onFocus:b=>{var x;u(!0),(x=r.onFocus)===null||x===void 0||x.call(r,b)},onBlur:b=>{var x;u(!1),(x=r.onBlur)===null||x===void 0||x.call(r,b)},onClear:r.onClear,type:"search",enterKeyHint:"search",onEnterPress:()=>{var b,x;f.current||((b=d.current)===null||b===void 0||b.blur(),(x=r.onSearch)===null||x===void 0||x.call(r,a))},"aria-label":n.SearchBar.name,onCompositionStart:b=>{var x;f.current=!0,(x=r.onCompositionStart)===null||x===void 0||x.call(r,b)},onCompositionEnd:b=>{var x;f.current=!1,(x=r.onCompositionEnd)===null||x===void 0||x.call(r,b)}})),g()))}),tl=t=>z(t,i.createElement("div",{className:"adm-swiper-item",onClick:t.onClick},t.children));function _f(t){const[e,n]=i.useState(t),o=i.useRef(e);return i.useEffect(()=>{o.current=e},[e]),[e,n,o]}function Pf(t,e){const n=Object.keys(t),o=Object.keys(e),r=new Set([...n,...o]),s={};return r.forEach(a=>{const l=t[a],c=e[a];typeof l=="function"&&typeof c=="function"?s[a]=function(...u){l(...u),c(...u)}:s[a]=l||c}),s}const et="adm-swiper",$f={mousedown:"onMouseDown",mousemove:"onMouseMove",mouseup:"onMouseUp"},Ff={defaultIndex:0,allowTouchMove:!0,autoplay:!1,autoplayInterval:3e3,loop:!1,direction:"horizontal",slideSize:100,trackOffset:0,stuckAtBoundary:!0,rubberband:!0,stopPropagation:[]};let wo;const Tf=i.forwardRef(Xi.staged((t,e)=>{const n=q(Ff,t),{direction:o,total:r,children:s,indicator:a}=n,[l]=i.useState({}),c=i.useRef(null),u=o==="vertical",d=n.slideSize/100,f=n.trackOffset/100,{validChildren:g,count:b,renderChildren:x}=i.useMemo(()=>{let h=0,v,k;return typeof s=="function"?v=s:k=i.Children.map(s,S=>!i.isValidElement(S)||S.type!==tl?null:(h++,S)),{renderChildren:v,validChildren:k,count:h}},[s]),y=r!=null?r:b;return y===0||!g&&!x?null:()=>{let h=n.loop;d*(y-1)<1&&(h=!1);const v=i.useRef(null);function k(){const D=v.current;return D?(u?D.offsetHeight:D.offsetWidth)*n.slideSize/100:0}const[S,C,w]=H.useGetState(n.defaultIndex),[E,I,P]=_f(!1);function N(D){let ne=0,re=y-1;return n.stuckAtBoundary&&(ne+=f/d,re-=(1-d-f)/d),ge(D,ne,re)}const[{position:$},A]=De(()=>({position:N(S)*100,config:{tension:200,friction:30},onRest:()=>{if(P.current||!h)return;const D=$.get(),ne=100*y,re=qr(D,ne);re!==D&&A.start({position:re,immediate:!0})}}),[y]),V=i.useRef(null);function M(){var D;(D=V.current)===null||D===void 0||D.call(V),P.current=!1}const O=to(D=>{if(V.current=D.cancel,!D.intentional||(D.first&&!wo&&(wo=l),wo!==l))return;wo=D.last?void 0:l;const ne=k();if(!ne)return;const re=u?1:0,we=D.offset[re],$e=D.direction[re],To=D.velocity[re];if(I(!0),!D.last)A.start({position:we*100/ne,immediate:!0});else{const Fn=Math.floor(we/ne),Jp=Fn+1,Qp=Math.round((we+To*2e3*$e)/ne);K(ge(Qp,Fn,Jp)),window.setTimeout(()=>{I(!1)})}},{transform:([D,ne])=>[-D,-ne],from:()=>{const D=k();return[$.get()/100*D,$.get()/100*D]},triggerAllEvents:!0,bounds:()=>{if(h)return{};const D=k(),ne=N(0)*D,re=N(y-1)*D;return u?{top:ne,bottom:re}:{left:ne,right:re}},rubberband:n.rubberband,axis:u?"y":"x",preventScroll:!u,pointer:{touch:!0}});function K(D,ne=!1){var re;const we=Math.round(D),$e=h?qr(we,y):ge(we,0,y-1);$e!==w()&&((re=n.onIndexChange)===null||re===void 0||re.call(n,$e)),C($e),A.start({position:(h?we:N(we))*100,immediate:ne})}function G(){K(Math.round($.get()/100)+1)}function me(){K(Math.round($.get()/100)-1)}i.useImperativeHandle(e,()=>({swipeTo:K,swipeNext:G,swipePrev:me})),H.useIsomorphicLayoutEffect(()=>{const D=y-1;S>D&&K(D,!0)});const{autoplay:ve,autoplayInterval:oe}=n,ue=()=>{c.current=window.setTimeout(()=>{ve==="reverse"?me():G(),ue()},oe)};i.useEffect(()=>{if(!(!ve||E))return ue(),()=>{c.current&&window.clearTimeout(c.current)}},[ve,oe,E,y]);function L(D,ne){let re={};return h&&(re={[u?"y":"x"]:$.to(we=>{let $e=-we+D*100;const To=y*100,Fn=To/2;return $e=qr($e+Fn,To)-Fn,`${$e}%`}),[u?"top":"left"]:`-${D*100}%`}),i.createElement(xe.div,{className:B(`${et}-slide`,{[`${et}-slide-active`]:S===D}),style:re,key:D},ne)}function Y(){if(x&&r){const ne=Math.max(S-2,0),re=Math.min(S+2,r-1),we=[];for(let $e=ne;$e<=re;$e+=1)we.push(L($e,x($e)));return i.createElement(i.Fragment,null,i.createElement("div",{className:`${et}-slide-placeholder`,style:{width:`${ne*100}%`}}),we)}return i.Children.map(g,(D,ne)=>L(ne,D))}function te(){return h?i.createElement("div",{className:`${et}-track-inner`},Y()):i.createElement(xe.div,{className:`${et}-track-inner`,style:{[u?"y":"x"]:$.to(D=>`${-D}%`)}},Y())}const ce={"--slide-size":`${n.slideSize}%`,"--track-offset":`${n.trackOffset}%`},ie=Object.assign({},n.allowTouchMove?O():{}),Ft={};for(const D of n.stopPropagation){const ne=$f[D];Ft[ne]=function(re){re.stopPropagation()}}const X=Pf(ie,Ft);let fe=null;return typeof a=="function"?fe=a(y,S):a!==!1&&(fe=i.createElement("div",{className:`${et}-indicator`},i.createElement(Sf,Object.assign({},n.indicatorProps,{total:y,current:S,direction:o})))),z(n,i.createElement("div",{className:B(et,`${et}-${o}`),style:ce},i.createElement("div",Object.assign({ref:v,className:B(`${et}-track`,{[`${et}-track-allow-touch-move`]:n.allowTouchMove}),onClickCapture:D=>{P.current&&D.stopPropagation(),M()}},X),te()),fe))}}));function qr(t,e){const n=t%e;return n<0?n+e:n}const Eo=ye(Tf,{Item:tl}),Mf=()=>null,rt="adm-tab-bar",Nf={safeArea:!1},Gr=ye(t=>{var e;const n=q(Nf,t);let o=null;const r=[];Pr(n.children,(l,c)=>{if(!i.isValidElement(l))return;const u=l.key;typeof u=="string"&&(c===0&&(o=u),r.push(l))});const[s,a]=Se({value:n.activeKey,defaultValue:(e=n.defaultActiveKey)!==null&&e!==void 0?e:o,onChange:l=>{var c;l!==null&&((c=n.onChange)===null||c===void 0||c.call(n,l))}});return z(n,i.createElement("div",{className:rt},i.createElement("div",{className:`${rt}-wrap`},r.map(l=>{const c=l.key===s;function u(){const d=l.props.icon&&i.createElement("div",{className:`${rt}-item-icon`},typeof l.props.icon=="function"?l.props.icon(c):l.props.icon),f=l.props.title&&i.createElement("div",{className:B(`${rt}-item-title`,!!d&&`${rt}-item-title-with-icon`)},typeof l.props.title=="function"?l.props.title(c):l.props.title);return d?i.createElement(i.Fragment,null,i.createElement(Ri,{content:l.props.badge,className:`${rt}-icon-badge`},d),f):f?i.createElement(Ri,{content:l.props.badge,className:`${rt}-title-badge`},f):null}return z(l.props,i.createElement("div",{key:l.key,onClick:()=>{var d,f;const{key:g}=l;g!=null&&(a(g.toString()),(f=(d=l.props).onClick)===null||f===void 0||f.call(d))},className:B(`${rt}-item`,{[`${rt}-item-active`]:c})},u()))})),n.safeArea&&i.createElement(bn,{position:"bottom"})))},{Item:Mf}),nl="adm-tag",Of={default:"var(--adm-color-text-secondary, #666666)",primary:"var(--adm-color-primary, #1677ff)",success:"var(--adm-color-success, #00b578)",warning:"var(--adm-color-warning, #ff8f1f)",danger:"var(--adm-color-danger, #ff3141)"},Af={color:"default",fill:"solid",round:!1},Yr=t=>{var e;const n=q(Af,t),o=(e=Of[n.color])!==null&&e!==void 0?e:n.color,r={"--border-color":o,"--text-color":n.fill==="outline"?o:"#ffffff","--background-color":n.fill==="outline"?"transparent":o};return z(n,i.createElement("span",{style:r,onClick:n.onClick,className:B(nl,{[`${nl}-round`]:n.round})},n.children))},Pn="adm-text-area",ol={rows:2,showCount:!1,autoSize:!1,defaultValue:""},rl=i.forwardRef((t,e)=>{const n=q(ol,t),{autoSize:o,showCount:r,maxLength:s}=n,[a,l]=Se(Object.assign(Object.assign({},n),{value:n.value===null?"":n.value}));n.value;const c=i.useRef(null),u=i.useRef("auto"),d=i.useRef(null),f=Xa({onEnterPress:n.onEnterPress,onKeyDown:n.onKeyDown,nativeInputRef:c,enterKeyHint:n.enterKeyHint});i.useImperativeHandle(e,()=>({clear:()=>{l("")},focus:()=>{var h;(h=c.current)===null||h===void 0||h.focus()},blur:()=>{var h;(h=c.current)===null||h===void 0||h.blur()},get nativeElement(){return c.current}})),H.useIsomorphicLayoutEffect(()=>{if(!o)return;const h=c.current,v=d.current;if(!h||(h.style.height=u.current,!v))return;let k=v.scrollHeight;if(typeof o=="object"){const S=window.getComputedStyle(h),C=parseFloat(S.lineHeight);o.minRows&&(k=Math.max(k,o.minRows*C)),o.maxRows&&(k=Math.min(k,o.maxRows*C))}u.current=`${k}px`,h.style.height=`${k}px`},[a,o]);const g=i.useRef(!1);let b;const x=zr(a).length;typeof r=="function"?b=r(x,s):r&&(b=i.createElement("div",{className:`${Pn}-count`},s===void 0?x:x+"/"+s));let y=n.rows;return typeof o=="object"&&(o.maxRows&&y>o.maxRows&&(y=o.maxRows),o.minRows&&y<o.minRows&&(y=o.minRows)),z(n,i.createElement("div",{className:Pn},i.createElement("textarea",{ref:c,className:`${Pn}-element`,rows:y,value:a,placeholder:n.placeholder,onChange:h=>{let v=h.target.value;s&&!g.current&&(v=zr(v).slice(0,s).join("")),l(v)},id:n.id,onCompositionStart:h=>{var v;g.current=!0,(v=n.onCompositionStart)===null||v===void 0||v.call(n,h)},onCompositionEnd:h=>{var v;if(g.current=!1,s){const k=h.target.value;l(zr(k).slice(0,s).join(""))}(v=n.onCompositionEnd)===null||v===void 0||v.call(n,h)},autoComplete:n.autoComplete,autoFocus:n.autoFocus,disabled:n.disabled,readOnly:n.readOnly,name:n.name,onFocus:n.onFocus,onBlur:n.onBlur,onClick:n.onClick,onKeyDown:f}),b,o&&i.createElement("textarea",{ref:d,className:`${Pn}-element ${Pn}-element-hidden`,value:a,rows:y,"aria-hidden":!0,readOnly:!0})))});rl.defaultProps=ol;const st="adm-toast",Df={maskClickable:!0,stopPropagation:["click"]},Lf=t=>{const e=q(Df,t),{maskClickable:n,content:o,icon:r,position:s}=e,a=i.useMemo(()=>{if(r==null)return null;switch(r){case"success":return i.createElement(xi,{className:`${st}-icon-success`});case"fail":return i.createElement(Jn,{className:`${st}-icon-fail`});case"loading":return i.createElement(Or,{color:"white",className:`${st}-loading`});default:return r}},[r]),l=i.useMemo(()=>{switch(s){case"top":return"20%";case"bottom":return"80%";default:return"50%"}},[s]);return i.createElement(Xn,{visible:e.visible,destroyOnClose:!0,opacity:0,disableBodyScroll:!n,getContainer:e.getContainer,afterClose:e.afterClose,style:Object.assign({pointerEvents:n?"none":"auto"},e.maskStyle),className:B(`${st}-mask`,e.maskClassName),stopPropagation:e.stopPropagation},i.createElement("div",{className:B(`${st}-wrap`)},i.createElement("div",{style:{top:l},className:B(`${st}-main`,r?`${st}-main-icon`:`${st}-main-text`)},a&&i.createElement("div",{className:`${st}-icon`},a),i.createElement(p1,null,o))))};let Ne=null,Xr=null;const Io={duration:2e3,position:"center",maskClickable:!0},Bf=t=>i.createElement(Lf,Object.assign({},t));function Vf(t){var e;const n=q(Io,typeof t=="string"?{content:t}:t),o=i.createElement(Bf,Object.assign({},n,{onClose:()=>{Ne=null}}));return Ne?!((e=Ne.isRendered)===null||e===void 0)&&e.call(Ne)?Ne.replace(o):(Ne.close(),Ne=yn(o)):Ne=yn(o),Xr&&window.clearTimeout(Xr),n.duration!==0&&(Xr=window.setTimeout(()=>{sl()},n.duration)),Ne}function sl(){Ne==null||Ne.close(),Ne=null}function zf(t){t.duration!==void 0&&(Io.duration=t.duration),t.position!==void 0&&(Io.position=t.position),t.maskClickable!==void 0&&(Io.maskClickable=t.maskClickable)}const Jr={show:Vf,clear:sl,config:zf},il={type:"void","x-component":"MPage","x-designer":"MPage.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"mobilePage:addBlock","x-component-props":{showDivider:!1}}}},Zf=t=>{const{t:e}=m.useTranslation(),n=_.useFieldSchema(),{dn:o}=m.useDesignable(),r=_.useField(),s={dn:o,field:r,fieldSchema:n};return p.jsx(m.SchemaSettingsDropdown,U(T({title:p.jsx(se.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)"},icon:p.jsx(Ve.MenuOutlined,{}),type:"dashed",children:e("Menu configuration")})},s),{children:p.jsx(m.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:e("Delete menu block")},breakRemoveOn:{"x-component":"Grid"}},"remove")}))},$n=()=>{const{dn:t}=m.useDesignable(),e=_.useFieldSchema(),n=_.useField();return{onUpdateComponentProps:H.useMemoizedFn(r=>ae(null,null,function*(){Fe.set(e,"x-component-props",r),n.componentProps=T(T({},n.componentProps),r),yield t.emit("patch",{schema:{"x-uid":e["x-uid"],"x-component-props":e["x-component-props"],"x-server-hooks":[{type:"onSelfSave",method:"extractTextToLocale"}]}}),yield t.refresh()}))}},al={properties:{name:{type:"string",title:lt("Menu name"),required:!0,"x-component":"Input","x-decorator":"FormItem"},icon:{"x-decorator":"FormItem","x-component":"IconPicker",title:lt("Icon"),"x-component-props":{}}}},jf=t=>{const{icon:e,name:n}=t,o=m.useDesigner(),r=R.useNavigate(),s=R.useLocation(),a=_.useFieldSchema(),l=m.useCompile(),c=R.useParams(),u=()=>{const d=s.pathname.endsWith("/")?s.pathname.slice(0,-1):s.pathname;r(c.name?`/mobile/${a["x-uid"]}`:`${d}/${a["x-uid"]}`)};return p.jsxs(m.SortableItem,{className:m.cx("tb-mobile-menu-item",m.css`
141
+ */var ga;function j1(){if(ga)return Mr;ga=1;var t=i;function e(f,g){return f===g&&(f!==0||1/f===1/g)||f!==f&&g!==g}var n=typeof Object.is=="function"?Object.is:e,o=t.useState,r=t.useEffect,s=t.useLayoutEffect,a=t.useDebugValue;function l(f,g){var b=g(),x=o({inst:{value:b,getSnapshot:g}}),y=x[0].inst,h=x[1];return s(function(){y.value=b,y.getSnapshot=g,c(y)&&h({inst:y})},[f,b,g]),r(function(){return c(y)&&h({inst:y}),f(function(){c(y)&&h({inst:y})})},[f]),a(b),b}function c(f){var g=f.getSnapshot;f=f.value;try{var b=g();return!n(f,b)}catch(x){return!0}}function u(f,g){return g()}var d=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?u:l;return Mr.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,Mr}var va;function K1(){return va||(va=1,Tr.exports=j1()),Tr.exports}var W1=K1();let U1=!1;const ba=new Set;function ya(){return U1}function H1(t){return ba.add(t),()=>{ba.delete(t)}}function q1(){return W1.useSyncExternalStore(H1,ya,ya)}const Nr="adm-spin-loading",G1={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},Y1={color:"default"},X1=15*3.14159265358979*2,Or=i.memo(t=>{var e;const n=q(Y1,t),o=q1(),{percent:r}=De({cancel:o,loop:{reverse:!0},from:{percent:80},to:{percent:30},config:{duration:1200}});return z(n,i.createElement(xe.div,{className:Nr,style:{"--color":(e=G1[n.color])!==null&&e!==void 0?e:n.color,"--percent":r}},i.createElement("svg",{className:`${Nr}-svg`,viewBox:"0 0 32 32"},i.createElement(xe.circle,{className:`${Nr}-fill`,fill:"transparent",strokeWidth:"2",strokeDasharray:X1,strokeDashoffset:r,strokeLinecap:"square",r:15,cx:16,cy:16}))))}),Ht="adm-picker-view",J1={defaultValue:[],renderLabel:ha,mouseWheel:!1,loadingContent:i.createElement("div",{className:`${Ht}-loading-content`},i.createElement(Or,null))},Ar=i.memo(t=>{const e=q(J1,t),[n,o]=i.useState(e.value===void 0?e.defaultValue:e.value);i.useEffect(()=>{e.value!==void 0&&e.value!==n&&o(e.value)},[e.value]),i.useEffect(()=>{if(e.value===n)return;const l=window.setTimeout(()=>{e.value!==void 0&&e.value!==n&&o(e.value)},1e3);return()=>{window.clearTimeout(l)}},[e.value,n]);const r=pa(e.columns,n),s=r.columns;H.useDebounceEffect(()=>{var l;e.value!==n&&((l=e.onChange)===null||l===void 0||l.call(e,n,r))},[n],{wait:0,leading:!1,trailing:!0});const a=i.useCallback((l,c)=>{o(u=>{const d=[...u];return d[c]=l,d})},[]);return z(e,i.createElement("div",{className:`${Ht}`},e.loading?e.loadingContent:i.createElement(i.Fragment,null,s.map((l,c)=>i.createElement(da,{key:c,index:c,column:l,value:n[c],onSelect:a,renderLabel:e.renderLabel,mouseWheel:e.mouseWheel})),i.createElement("div",{className:`${Ht}-mask`},i.createElement("div",{className:`${Ht}-mask-top`}),i.createElement("div",{className:`${Ht}-mask-middle`}),i.createElement("div",{className:`${Ht}-mask-bottom`})))))});Ar.displayName="PickerView";const mt="adm-picker",Q1={defaultValue:[],closeOnMaskClick:!0,renderLabel:ha,destroyOnClose:!1,forceRender:!1},Dr=i.memo(i.forwardRef((t,e)=>{var n;const{locale:o}=Ie(),r=q(Q1,{confirmText:o.common.confirm,cancelText:o.common.cancel},t),[s,a]=Se({value:r.visible,defaultValue:!1,onChange:h=>{var v;h===!1&&((v=r.onClose)===null||v===void 0||v.call(r))}}),l={toggle:()=>{a(h=>!h)},open:()=>{a(!0)},close:()=>{a(!1)}};i.useImperativeHandle(e,()=>l);const[c,u]=Se(Object.assign(Object.assign({},r),{onChange:h=>{var v;const k=ma(r.columns,h);(v=r.onConfirm)===null||v===void 0||v.call(r,h,k)}})),d=pa(r.columns,c),[f,g]=i.useState(c);i.useEffect(()=>{f!==c&&g(c)},[s]),i.useEffect(()=>{s||g(c)},[c]);const b=H.useMemoizedFn((h,v)=>{var k;g(h),s&&((k=r.onSelect)===null||k===void 0||k.call(r,h,v))}),x=z(r,i.createElement("div",{className:mt},i.createElement("div",{className:`${mt}-header`},i.createElement("a",{role:"button",className:`${mt}-header-button`,onClick:()=>{var h;(h=r.onCancel)===null||h===void 0||h.call(r),a(!1)}},r.cancelText),i.createElement("div",{className:`${mt}-header-title`},r.title),i.createElement("a",{role:"button",className:B(`${mt}-header-button`,r.loading&&`${mt}-header-button-disabled`),onClick:()=>{r.loading||(u(f,!0),a(!1))},"aria-disabled":r.loading},r.confirmText)),i.createElement("div",{className:`${mt}-body`},i.createElement(Ar,{loading:r.loading,loadingContent:r.loadingContent,columns:r.columns,renderLabel:r.renderLabel,value:f,mouseWheel:r.mouseWheel,onChange:b})))),y=i.createElement(Wt,{style:r.popupStyle,className:B(`${mt}-popup`,r.popupClassName),visible:s,position:"bottom",onMaskClick:()=>{var h;r.closeOnMaskClick&&((h=r.onCancel)===null||h===void 0||h.call(r),a(!1))},getContainer:r.getContainer,destroyOnClose:r.destroyOnClose,afterShow:r.afterShow,afterClose:r.afterClose,onClick:r.onClick,forceRender:r.forceRender,stopPropagation:r.stopPropagation},x,i.createElement(bn,{position:"bottom"}));return i.createElement(i.Fragment,null,y,(n=r.children)===null||n===void 0?void 0:n.call(r,d.items,l))}));Dr.displayName="Picker";function R1(t){return new Promise(e=>{const n=()=>{const[r,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Dr,Object.assign({},t,{visible:r,onConfirm:(a,l)=>{var c;(c=t.onConfirm)===null||c===void 0||c.call(t,a,l),e(a)},onClose:()=>{var a;(a=t.onClose)===null||a===void 0||a.call(t),s(!1),e(null)},afterClose:()=>{var a;(a=t.afterClose)===null||a===void 0||a.call(t),o()}}))},o=Sr(i.createElement(n,null))})}const xa=ye(Dr,{prompt:R1}),Pe="adm-tabs",e0=()=>null,t0={activeLineMode:"auto",stretch:!0,direction:"ltr"},fo=ye(t=>{var e;const n=q(t0,t),o=i.useRef(null),r=i.useRef(null),s={};let a=null;const l=[],c=n.direction==="rtl";Pr(n.children,(w,E)=>{if(!i.isValidElement(w))return;const I=w.key;if(typeof I!="string")return;E===0&&(a=I);const P=l.push(w);s[I]=P-1});const[u,d]=Se({value:n.activeKey,defaultValue:(e=n.defaultActiveKey)!==null&&e!==void 0?e:a,onChange:w=>{var E;w!==null&&((E=n.onChange)===null||E===void 0||E.call(n,w))}}),[{x:f,width:g},b]=De(()=>({x:0,width:0,config:{tension:300,clamp:!0}})),[{scrollLeft:x},y]=De(()=>({scrollLeft:0,config:{tension:300,clamp:!0}})),[{leftMaskOpacity:h,rightMaskOpacity:v},k]=De(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}}));function S(w=!1,E=!1){const I=o.current;if(!I)return;const P=s[u];if(P===void 0){b.start({x:0,width:0,immediate:!0});return}const N=r.current;if(!N)return;const $=I.children.item(P+1),A=$.children.item(0),V=A.offsetLeft,M=A.offsetWidth,O=$.offsetLeft,K=$.offsetWidth,G=I.offsetWidth,me=I.scrollWidth,ve=I.scrollLeft,oe=N.offsetWidth;let ue=0,L=0;if(n.activeLineMode==="auto"?(ue=V,L=M):n.activeLineMode==="full"?(ue=O,L=K):ue=V+(M-oe)/2,c){const ie=["auto","full"].includes(n.activeLineMode)?L:oe;ue=-(G-ue-ie)}b.start({x:ue,width:L,immediate:w});const Y=me-G;if(Y<=0)return;let te=0;c?te=-ge(G/2-V+M/2-oe,0,Y):te=ge(V-(G-M)/2,0,Y),(!E||n.autoScroll!==!1)&&y.start({scrollLeft:te,from:{scrollLeft:ve},immediate:w})}H.useIsomorphicLayoutEffect(()=>{S(!f.isAnimating)},[]),kr(()=>{S()},[u,c,n.activeLineMode]),ia(()=>{S(!f.isAnimating)},o),aa(()=>{S(!f.isAnimating,!0)},o,{subtree:!0,childList:!0,characterData:!0});const{run:C}=H.useThrottleFn((w=!1)=>{const E=o.current;if(!E)return;const I=E.scrollLeft;let P=!1,N=!1;c?(P=Math.round(-I)+E.offsetWidth<E.scrollWidth,N=I<0):(P=I>0,N=I+E.offsetWidth<E.scrollWidth),k.start({leftMaskOpacity:P?1:0,rightMaskOpacity:N?1:0,immediate:w})},{wait:100,trailing:!0,leading:!0});return H.useIsomorphicLayoutEffect(()=>{C(!0)},[]),z(n,i.createElement("div",{className:Pe,style:{direction:n.direction}},i.createElement("div",{className:`${Pe}-header`},i.createElement(xe.div,{className:B(`${Pe}-header-mask`,`${Pe}-header-mask-left`),style:{opacity:h}}),i.createElement(xe.div,{className:B(`${Pe}-header-mask`,`${Pe}-header-mask-right`),style:{opacity:v}}),i.createElement(xe.div,{className:`${Pe}-tab-list`,ref:o,scrollLeft:x,onScroll:C,role:"tablist"},i.createElement(xe.div,{ref:r,className:`${Pe}-tab-line`,style:{width:n.activeLineMode==="fixed"?"var(--fixed-active-line-width, 30px)":g,x:f}}),l.map(w=>z(w.props,i.createElement("div",{key:w.key,className:B(`${Pe}-tab-wrapper`,{[`${Pe}-tab-wrapper-stretch`]:n.stretch})},i.createElement("div",{onClick:()=>{const{key:E}=w;w.props.disabled||E!=null&&d(E.toString())},className:B(`${Pe}-tab`,{[`${Pe}-tab-active`]:w.key===u,[`${Pe}-tab-disabled`]:w.props.disabled}),role:"tab","aria-selected":w.key===u},w.props.title)))))),l.map(w=>{if(w.props.children===void 0)return null;const E=w.key===u;return i.createElement(Yn,{key:w.key,active:E,forceRender:w.props.forceRender,destroyOnClose:w.props.destroyOnClose},i.createElement("div",{className:`${Pe}-content`,style:{display:E?"block":"none"}},w.props.children))})))},{Tab:e0}),xn="adm-list",n0={mode:"default"},o0=i.forwardRef((t,e)=>{const n=q(n0,t),o=i.useRef(null);return i.useImperativeHandle(e,()=>({get nativeElement(){return o.current}})),z(n,i.createElement("div",{className:B(xn,`${xn}-${n.mode}`),ref:o},n.header&&i.createElement("div",{className:`${xn}-header`},n.header),i.createElement("div",{className:`${xn}-body`},i.createElement("div",{className:`${xn}-body-inner`},n.children))))});function mo(t){return t!=null&&t!==!1}const ot="adm-list-item",qt=ye(o0,{Item:t=>{var e,n;const{arrow:o,arrowIcon:r}=t,{list:s={}}=Ie(),a=(e=t.clickable)!==null&&e!==void 0?e:!!t.onClick,l=(n=o!=null?o:r)!==null&&n!==void 0?n:a,c=Ao(s.arrowIcon,o!==!0?o:null,r!==!0?r:null),u=i.createElement("div",{className:`${ot}-content`},mo(t.prefix)&&i.createElement("div",{className:`${ot}-content-prefix`},t.prefix),i.createElement("div",{className:`${ot}-content-main`},mo(t.title)&&i.createElement("div",{className:`${ot}-title`},t.title),t.children,mo(t.description)&&i.createElement("div",{className:`${ot}-description`},t.description)),mo(t.extra)&&i.createElement("div",{className:`${ot}-content-extra`},t.extra),l&&i.createElement("div",{className:`${ot}-content-arrow`},c||i.createElement(Ju,null)));return z(t,i.createElement(a?"a":"div",{className:B(`${ot}`,a?["adm-plain-anchor"]:[],t.disabled&&`${ot}-disabled`),onClick:t.disabled?void 0:t.onClick},u))}}),Ca=i.createContext(null),r0="adm-check-list",s0={multiple:!1,defaultValue:[],activeIcon:i.createElement(xi,null)},i0=t=>{const{checkList:e={}}=Ie(),n=q(s0,e,t),[o,r]=Se(n);function s(f){n.multiple?r([...o,f]):r([f])}function a(f){r(o.filter(g=>g!==f))}const{activeIcon:l,extra:c,disabled:u,readOnly:d}=n;return i.createElement(Ca.Provider,{value:{value:o,check:s,uncheck:a,activeIcon:l,extra:c,disabled:u,readOnly:d}},z(n,i.createElement(qt,{mode:n.mode,className:r0},n.children)))},po="adm-check-list-item",ho=ye(i0,{Item:t=>{const e=i.useContext(Ca);if(e===null)return null;const n=e.value.includes(t.value),o=t.readOnly||e.readOnly,r=n?e.activeIcon:null,s=e.extra?e.extra(n):r,a=i.createElement("div",{className:`${po}-extra`},s);return z(t,i.createElement(qt.Item,{title:t.title,className:B(po,o&&`${po}-readonly`,n&&`${po}-active`),description:t.description,prefix:t.prefix,onClick:l=>{var c;o||(n?e.uncheck(t.value):e.check(t.value),(c=t.onClick)===null||c===void 0||c.call(t,l))},arrow:!1,clickable:!o,extra:a,disabled:t.disabled||e.disabled},t.children))}});function a0(t){var e=t+"",n=e.indexOf("...");return n>=0&&(n<e.indexOf(")")||e.indexOf("arguments")>=0)}function Sa(t,e){e||(e={});var n=e.vargs||a0(t),o=[],r=new Map,s,a,l=function(b){return a=setTimeout(function(){if(s){r.delete(b);return}o.splice(b,1)},e.maxAge)},c=e.maxAge>0&&e.maxAge<1/0?l:0,u=e.equals?e.equals:0,d=e.maxArgs,f=e.serializer,g;return t.length===1&&!e.equals&&!n?(g=function(b){f&&(b=f(b));var x;return r.get(b)||(!c||c(b),r.set(b,x=t.call(this,b)),x)},s=1):u?g=function(){for(var b=d||arguments.length,x=o.length,y=-1;++y<x;)if(o[y].length===b){for(var h=-1;++h<b&&u(arguments[h],o[y][h]););if(h===b)return o[y].val}return o[y]=arguments,!c||c(y),arguments.val=t.apply(this,o[y])}:g=function(){for(var b=d||arguments.length,x=o.length,y=-1;++y<x;)if(o[y].length===b){for(var h=-1;++h<b&&arguments[h]===o[y][h];);if(h===b)return o[y].val}return o[y]=arguments,!c||c(y),arguments.val=t.apply(this,o[y])},g.clear=function(){a&&clearTimeout(a),r.clear(),o=[]},g.keys=function(){return s?[...r.keys()]:o.slice()},g.values=function(){return s?[...r.values()]:o.map(b=>b.val)},g}function l0(t,e){const{valueName:n,childrenName:o}=e,r=i.useMemo(()=>Sa(l=>{const c=[];let u=t;for(const d of l){const f=u.find(g=>g[n]===d);if(!f||(c.push(f),!f[o]))break;u=f[o]}return c},{equals:Fr}),[t]),s=i.useMemo(()=>Sa(l=>l.reduce((u,d)=>{var f;return((f=u.find(g=>g[n]===d))===null||f===void 0?void 0:f[o])||[]},t).length===0,{equals:Fr}),[t]);function a(l){return{get items(){return r(l)},get isLeaf(){return s(l)}}}return a}const ka=[];function c0(t,e){const n=[];for(let o=t;o<=e;o++)n.push(o);return n}const Cn="adm-skeleton",Lr=t=>z(t,i.createElement("div",{className:B(Cn,{[`${Cn}-animated`]:t.animated})})),u0=t=>z(t,i.createElement(Lr,{animated:t.animated,className:`${Cn}-title`})),d0={lineCount:3},go=ye(Lr,{Title:u0,Paragraph:t=>{const e=q(d0,t),n=c0(1,e.lineCount),o=i.createElement("div",{className:`${Cn}-paragraph`},n.map(r=>i.createElement(Lr,{key:r,animated:e.animated,className:`${Cn}-paragraph-line`})));return z(e,o)}}),f0=(t={})=>i.useMemo(()=>{const{label:n="label",value:o="value",disabled:r="disabled",children:s="children"}=t;return[n,o,s,r]},[JSON.stringify(t)]),je="adm-cascader-view",m0={defaultValue:[]},p0=ye(t=>{const e=q(m0,t),{locale:n}=Ie(),[o,r,s,a]=f0(e.fieldNames),l=l0(e.options,{valueName:r,childrenName:s}),[c,u]=Se(Object.assign(Object.assign({},e),{onChange:h=>{var v;(v=e.onChange)===null||v===void 0||v.call(e,h,l(h))}})),[d,f]=i.useState(0),g=i.useMemo(()=>{const h=[];let v=e.options,k=!1;for(const S of c){const C=v.find(w=>w[r]===S);if(h.push({selected:C,options:v}),!C||!C[s]){k=!0;break}v=C[s]}return k||h.push({selected:void 0,options:v}),h},[c,e.options]);H.useUpdateEffect(()=>{var h;(h=e.onTabsChange)===null||h===void 0||h.call(e,d)},[d]),i.useEffect(()=>{f(g.length-1)},[c]),i.useEffect(()=>{const h=g.length-1;d>h&&f(h)},[d,g]);const b=(h,v)=>{const k=c.slice(0,v);h!==void 0&&(k[v]=h),u(k)},x=h=>e.loading||h===ka,y=e.placeholder||n.Cascader.placeholder;return z(e,i.createElement("div",{className:je},i.createElement(fo,{activeKey:d.toString(),onChange:h=>{const v=parseInt(h);f(v)},stretch:!1,className:`${je}-tabs`},g.map((h,v)=>{const k=h.selected;return i.createElement(fo.Tab,{key:v.toString(),title:i.createElement("div",{className:`${je}-header-title`},k?k[o]:typeof y=="function"?y(v):y),forceRender:!0},i.createElement("div",{className:`${je}-content`},x(h.options)?i.createElement("div",{className:`${je}-skeleton`},i.createElement(go,{className:`${je}-skeleton-line-1`,animated:!0}),i.createElement(go,{className:`${je}-skeleton-line-2`,animated:!0}),i.createElement(go,{className:`${je}-skeleton-line-3`,animated:!0}),i.createElement(go,{className:`${je}-skeleton-line-4`,animated:!0})):i.createElement(ho,{value:[c[v]],onChange:S=>b(S[0],v),activeIcon:e.activeIcon},h.options.map(S=>{const C=c[v]===S[r];return i.createElement(ho.Item,{value:S[r],key:S[r],disabled:S[a],className:B(`${je}-item`,{[`${je}-item-active`]:C})},S[o])}))))}))))},{optionSkeleton:ka}),wa=i.createContext(null),h0={disabled:!1,defaultValue:[]},g0=t=>{const e=q(h0,t),[n,o]=Se(e);return i.createElement(wa.Provider,{value:{value:n,disabled:e.disabled,check:r=>{o([...n,r])},uncheck:r=>{o(n.filter(s=>s!==r))}}},e.children)},Ea=i.memo(t=>z(t,i.createElement("svg",{viewBox:"0 0 40 40"},i.createElement("path",{d:"M31.5541766,15 L28.0892433,15 L28.0892434,15 C27.971052,15 27.8576674,15.044522 27.7740471,15.1239792 L18.2724722,24.1625319 L13.2248725,19.3630279 L13.2248725,19.3630279 C13.1417074,19.2834412 13.0287551,19.2384807 12.9107898,19.2380079 L9.44474455,19.2380079 L9.44474454,19.2380079 C9.19869815,19.2384085 8.99957935,19.4284738 9,19.66253 C9,19.7747587 9.04719253,19.8823283 9.13066188,19.9616418 L17.0907466,27.5338228 C17.4170809,27.8442545 17.8447695,28 18.2713393,28 L18.2980697,28 C18.7168464,27.993643 19.133396,27.8378975 19.4530492,27.5338228 L31.8693384,15.7236361 L31.8693384,15.7236361 C32.0434167,15.5582251 32.0435739,15.2898919 31.8696892,15.1242941 C31.7860402,15.0446329 31.6725052,15 31.5541421,15 L31.5541766,15 Z",fill:"currentColor"})))),v0=i.memo(t=>z(t,i.createElement("svg",{viewBox:"0 0 40 40"},i.createElement("path",{d:"M20,9 C26.0752953,9 31,13.9247047 31,20 C31,26.0752953 26.0752953,31 20,31 C13.9247047,31 9,26.0752953 9,20 C9,13.9247047 13.9247047,9 20,9 Z",fill:"currentColor"})))),Ia=t=>{const e=i.useRef(null),n=H.useMemoizedFn(o=>{o.stopPropagation(),o.stopImmediatePropagation();const r=o.target.checked;r!==t.checked&&t.onChange(r)});return i.useEffect(()=>{if(t.disabled||!e.current)return;const o=e.current;return o.addEventListener("click",n),()=>{o.removeEventListener("click",n)}},[t.disabled,t.onChange]),i.createElement("input",{ref:e,type:t.type,checked:t.checked,onChange:()=>{},disabled:t.disabled,id:t.id})},pt="adm-checkbox",b0={defaultChecked:!1,indeterminate:!1},y0=i.forwardRef((t,e)=>{const n=i.useContext(wa),o=q(b0,t);let[r,s]=Se({value:o.checked,defaultValue:o.defaultChecked,onChange:o.onChange}),a=o.disabled;const{value:l}=o;n&&l!==void 0&&(r=n.value.includes(l),s=u=>{var d;u?n.check(l):n.uncheck(l),(d=o.onChange)===null||d===void 0||d.call(o,u)},a=a||n.disabled),i.useImperativeHandle(e,()=>({check:()=>{s(!0)},uncheck:()=>{s(!1)},toggle:()=>{s(!r)}}));const c=()=>o.icon?i.createElement("div",{className:`${pt}-custom-icon`},o.icon(r,o.indeterminate)):i.createElement("div",{className:`${pt}-icon`},o.indeterminate?i.createElement(v0,null):r&&i.createElement(Ea,null));return z(o,i.createElement("label",{onClick:o.onClick,className:B(pt,{[`${pt}-checked`]:r&&!o.indeterminate,[`${pt}-indeterminate`]:o.indeterminate,[`${pt}-disabled`]:a,[`${pt}-block`]:o.block})},i.createElement(Ia,{type:"checkbox",checked:r,onChange:s,disabled:a,id:o.id}),c(),o.children&&i.createElement("div",{className:`${pt}-content`},o.children)))}),Br=ye(y0,{Group:g0});var vo={exports:{}},x0=vo.exports,_a;function C0(){return _a||(_a=1,function(t,e){(function(n,o){t.exports=o()})(x0,function(){return function(n,o){o.prototype.isoWeeksInYear=function(){var r=this.isLeapYear(),s=this.endOf("y").day();return s===4||r&&s===5?53:52}}})}(vo)),vo.exports}var S0=C0();const Pa=Nt(S0);var bo={exports:{}},k0=bo.exports,$a;function w0(){return $a||($a=1,function(t,e){(function(n,o){t.exports=o()})(k0,function(){return function(n,o){o.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}})}(bo)),bo.exports}var E0=w0();const Fa=Nt(E0),Sn="TILL_NOW";J.extend(wr),J.extend(Pa),J.extend(Fa);const ht={year:0,month:1,day:2,hour:3,minute:4,second:5};function I0(t,e,n,o,r,s,a){const l=[],c=e.getFullYear(),u=e.getMonth()+1,d=e.getDate(),f=e.getHours(),g=e.getMinutes(),b=e.getSeconds(),x=n.getFullYear(),y=n.getMonth()+1,h=n.getDate(),v=n.getHours(),k=n.getMinutes(),S=n.getSeconds(),C=ht[o],w=parseInt(t[0]),E=J(Vr([t[0],t[1],"1"])),I=parseInt(t[1]),P=parseInt(t[2]),N=parseInt(t[3]),$=parseInt(t[4]),A=w===c,V=w===x,M=A&&I===u,O=V&&I===y,K=M&&P===d,G=O&&P===h,me=K&&N===f,ve=G&&N===v,oe=me&&$===g,ue=ve&&$===k,L=(Y,te,ie)=>{let ae=[];for(let fe=Y;fe<=te;fe++)ae.push(fe);const Ft=t.slice(0,ht[ie]),X=s==null?void 0:s[ie];return X&&typeof X=="function"&&(ae=ae.filter(fe=>X(fe,{get date(){const D=[...Ft,fe.toString()];return Vr(D)}}))),ae};if(C>=ht.year){const ie=L(c,x,"year");l.push(ie.map(ae=>({label:r("year",ae),value:ae.toString()})))}if(C>=ht.month){const ie=L(A?u:1,V?y:12,"month");l.push(ie.map(ae=>({label:r("month",ae),value:ae.toString()})))}if(C>=ht.day){const Y=M?d:1,te=O?h:E.daysInMonth(),ie=L(Y,te,"day");l.push(ie.map(ae=>({label:r("day",ae),value:ae.toString()})))}if(C>=ht.hour){const ie=L(K?f:0,G?v:23,"hour");l.push(ie.map(ae=>({label:r("hour",ae),value:ae.toString()})))}if(C>=ht.minute){const ie=L(me?g:0,ve?k:59,"minute");l.push(ie.map(ae=>({label:r("minute",ae),value:ae.toString()})))}if(C>=ht.second){const ie=L(oe?b:0,ue?S:59,"second");l.push(ie.map(ae=>({label:r("second",ae),value:ae.toString()})))}if(a&&(l[0].push({label:r("now",null),value:Sn}),Sn===(t==null?void 0:t[0])))for(let Y=1;Y<l.length;Y+=1)l[Y]=[];return l}function _0(t){return t?[t.getFullYear().toString(),(t.getMonth()+1).toString(),t.getDate().toString(),t.getHours().toString(),t.getMinutes().toString(),t.getSeconds().toString()]:[]}function Vr(t){var e,n,o,r,s,a;const l=(e=t[0])!==null&&e!==void 0?e:"1900",c=(n=t[1])!==null&&n!==void 0?n:"1",u=(o=t[2])!==null&&o!==void 0?o:"1",d=(r=t[3])!==null&&r!==void 0?r:"0",f=(s=t[4])!==null&&s!==void 0?s:"0",g=(a=t[5])!==null&&a!==void 0?a:"0";return new Date(parseInt(l),parseInt(c)-1,parseInt(u),parseInt(d),parseInt(f),parseInt(g))}var yo={exports:{}},P0=yo.exports,Ta;function $0(){return Ta||(Ta=1,function(t,e){(function(n,o){t.exports=o()})(P0,function(){var n="month",o="quarter";return function(r,s){var a=s.prototype;a.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var l=a.add;a.add=function(u,d){return u=Number(u),this.$utils().p(d)===o?this.add(3*u,n):l.bind(this)(u,d)};var c=a.startOf;a.startOf=function(u,d){var f=this.$utils(),g=!!f.u(d)||d;if(f.p(u)===o){var b=this.quarter()-1;return g?this.month(3*b).startOf(n).startOf("day"):this.month(3*b+2).endOf(n).endOf("day")}return c.bind(this)(u,d)}}})}(yo)),yo.exports}var F0=$0();const T0=Nt(F0);J.extend(T0);const xo={year:0,quarter:1};function M0(t,e,n,o,r,s){const a=[],l=e.getFullYear(),c=n.getFullYear(),u=xo[o],d=parseInt(t[0]),f=d===l,g=d===c,b=J(e),x=J(n),y=b.quarter(),h=x.quarter(),v=(k,S,C)=>{let w=[];for(let P=k;P<=S;P++)w.push(P);const E=t.slice(0,xo[C]),I=s==null?void 0:s[C];return I&&typeof I=="function"&&(w=w.filter(P=>I(P,{get date(){const N=[...E,P.toString()];return Ma(N)}}))),w};if(u>=xo.year){const C=v(l,c,"year");a.push(C.map(w=>({label:r("year",w),value:w.toString()})))}if(u>=xo.quarter){const C=v(f?y:1,g?h:4,"quarter");a.push(C.map(w=>({label:r("quarter",w),value:w.toString()})))}return a}function N0(t){if(!t)return[];const e=J(t);return[e.year().toString(),e.quarter().toString()]}function Ma(t){var e,n;const o=(e=t[0])!==null&&e!==void 0?e:"1900",r=(n=t[1])!==null&&n!==void 0?n:"1";return J().year(parseInt(o)).quarter(parseInt(r)).hour(0).minute(0).second(0).toDate()}J.extend(wr),J.extend(Pa),J.extend(Fa);const kn={year:0,week:1,"week-day":2};function O0(t,e,n,o,r,s){const a=[],l=e.getFullYear(),c=n.getFullYear(),u=kn[o],d=parseInt(t[0]),f=d===l,g=d===c,b=J(e),x=J(n),y=b.isoWeek(),h=x.isoWeek(),v=b.isoWeekday(),k=x.isoWeekday(),S=parseInt(t[1]),C=f&&S===y,w=g&&S===h,E=J(`${d}-01-01`).isoWeeksInYear(),I=(P,N,$)=>{let A=[];for(let O=P;O<=N;O++)A.push(O);const V=t.slice(0,kn[$]),M=s==null?void 0:s[$];return M&&typeof M=="function"&&(A=A.filter(O=>M(O,{get date(){const K=[...V,O.toString()];return Na(K)}}))),A};if(u>=kn.year){const $=I(l,c,"year");a.push($.map(A=>({label:r("year",A),value:A.toString()})))}if(u>=kn.week){const $=I(f?y:1,g?h:E,"week");a.push($.map(A=>({label:r("week",A),value:A.toString()})))}if(u>=kn["week-day"]){const $=I(C?v:1,w?k:7,"week-day");a.push($.map(A=>({label:r("week-day",A),value:A.toString()})))}return a}function A0(t){if(!t)return[];const e=J(t);return[e.isoWeekYear().toString(),e.isoWeek().toString(),e.isoWeekday().toString()]}function Na(t){var e,n,o;const r=(e=t[0])!==null&&e!==void 0?e:"1900",s=(n=t[1])!==null&&n!==void 0?n:"1",a=(o=t[2])!==null&&o!==void 0?o:"1";return J(`${parseInt(r)}-01-01`).isoWeek(parseInt(s)).isoWeekday(parseInt(a)).hour(0).minute(0).second(0).toDate()}const D0={year:1,month:2,day:3,hour:4,minute:5,second:6},L0=(t,e)=>{if(e.includes("week"))return A0(t);if(e.includes("quarter"))return N0(t);{const n=e;return _0(t).slice(0,D0[n])}},Oa=(t,e)=>{if((t==null?void 0:t[0])===Sn){const n=new Date;return n.tillNow=!0,n}return e.includes("week")?Na(t):e.includes("quarter")?Ma(t):Vr(t)},B0=(t,e,n,o,r,s,a)=>o.startsWith("week")?O0(t,e,n,o,r,s):o.startsWith("quarter")?M0(t,e,n,o,r,s):I0(t,e,n,o,r,s,a);function V0(t){const{locale:e}=Ie();return i.useCallback((n,o)=>{if(t)return t(n,o);switch(n){case"minute":case"second":case"hour":return("0"+o.toString()).slice(-2);case"now":return e.DatePicker.tillNow;default:return o.toString()}},[t])}const Aa=new Date().getFullYear(),z0={min:new Date(new Date().setFullYear(Aa-10)),max:new Date(new Date().setFullYear(Aa+10)),precision:"day",defaultValue:null},Da=i.forwardRef((t,e)=>{const n=q(z0,t),{renderLabel:o}=n,[r,s]=Se({value:n.value,defaultValue:n.defaultValue,onChange:g=>{var b;g!==null&&((b=n.onConfirm)===null||b===void 0||b.call(n,g))}}),a=i.useMemo(()=>new Date,[]),l=V0(o),c=i.useMemo(()=>{let g=r!=null?r:a;return g.tillNow?[Sn]:(g=new Date(ge(g.getTime(),n.min.getTime(),n.max.getTime())),L0(g,n.precision))},[r,n.precision,n.min,n.max]),u=i.useCallback(g=>{const b=Oa(g,n.precision);s(b,!0)},[s,n.precision]),d=H.useMemoizedFn(g=>{var b;const x=Oa(g,n.precision);(b=n.onSelect)===null||b===void 0||b.call(n,x)}),f=i.useCallback(g=>B0(g,n.min,n.max,n.precision,l,n.filter,n.tillNow),[n.min,n.max,n.precision,l,n.tillNow]);return z(n,i.createElement(xa,{ref:e,columns:f,value:c,onCancel:n.onCancel,onClose:n.onClose,closeOnMaskClick:n.closeOnMaskClick,visible:n.visible,confirmText:n.confirmText,cancelText:n.cancelText,onConfirm:u,onSelect:d,getContainer:n.getContainer,loading:n.loading,loadingContent:n.loadingContent,afterShow:n.afterShow,afterClose:n.afterClose,onClick:n.onClick,title:n.title,stopPropagation:n.stopPropagation,mouseWheel:n.mouseWheel,destroyOnClose:n.destroyOnClose,forceRender:n.forceRender},(g,b)=>{var x;return(x=n.children)===null||x===void 0?void 0:x.call(n,r,b)}))});function Z0(t){return new Promise(e=>{const n=()=>{const[r,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Da,Object.assign({},t,{visible:r,onConfirm:a=>{var l;(l=t.onConfirm)===null||l===void 0||l.call(t,a),e(a)},onClose:()=>{var a;(a=t.onClose)===null||a===void 0||a.call(t),s(!1),e(null)},afterClose:()=>{var a;(a=t.afterClose)===null||a===void 0||a.call(t),o()}}))},o=Sr(i.createElement(n,null))})}const j0=ye(Da,{prompt:Z0,DATE_NOW:Sn});var La;(function(t){t[t.HIGH_SURROGATE_START=55296]="HIGH_SURROGATE_START",t[t.HIGH_SURROGATE_END=56319]="HIGH_SURROGATE_END",t[t.LOW_SURROGATE_START=56320]="LOW_SURROGATE_START",t[t.REGIONAL_INDICATOR_START=127462]="REGIONAL_INDICATOR_START",t[t.REGIONAL_INDICATOR_END=127487]="REGIONAL_INDICATOR_END",t[t.FITZPATRICK_MODIFIER_START=127995]="FITZPATRICK_MODIFIER_START",t[t.FITZPATRICK_MODIFIER_END=127999]="FITZPATRICK_MODIFIER_END",t[t.VARIATION_MODIFIER_START=65024]="VARIATION_MODIFIER_START",t[t.VARIATION_MODIFIER_END=65039]="VARIATION_MODIFIER_END",t[t.DIACRITICAL_MARKS_START=8400]="DIACRITICAL_MARKS_START",t[t.DIACRITICAL_MARKS_END=8447]="DIACRITICAL_MARKS_END",t[t.SUBDIVISION_INDICATOR_START=127988]="SUBDIVISION_INDICATOR_START",t[t.TAGS_START=917504]="TAGS_START",t[t.TAGS_END=917631]="TAGS_END",t[t.ZWJ=8205]="ZWJ"})(La||(La={}));const K0=Object.freeze([776,2359,2367,2984,3007,3021,3633,3635,3648,3657,4352,4449,4520]);var Ba;function zr(t){if(typeof t!="string")throw new TypeError("string cannot be undefined or null");const e=[];let n=0,o=0;for(;n<t.length;)o+=W0(n+o,t),J0(t[n+o])&&o++,G0(t[n+o])&&o++,Y0(t[n+o])&&o++,Q0(t[n+o])?o++:(e.push(t.substring(n,n+o)),n+=o,o=0);return e}function W0(t,e){const n=e[t];if(!U0(n)||t===e.length-1)return 1;const o=n+e[t+1];let r=e.substring(t+2,t+5);return Va(o)&&Va(r)?4:H0(o)&&X0(r)?e.slice(t).indexOf(String.fromCodePoint(917631))+2:q0(r)?4:2}function U0(t){return t&&kt(t[0].charCodeAt(0),55296,56319)}function Va(t){return kt(Zr(t),127462,127487)}function H0(t){return kt(Zr(t),127988,127988)}function q0(t){return kt(Zr(t),127995,127999)}function G0(t){return typeof t=="string"&&kt(t.charCodeAt(0),65024,65039)}function Y0(t){return typeof t=="string"&&kt(t.charCodeAt(0),8400,8447)}function X0(t){const e=t.codePointAt(0);return typeof t=="string"&&typeof e=="number"&&kt(e,917504,917631)}function J0(t){return typeof t=="string"&&K0.includes(t.charCodeAt(0))}function Q0(t){return typeof t=="string"&&t.charCodeAt(0)===8205}function Zr(t){return(t.charCodeAt(0)-55296<<10)+(t.charCodeAt(1)-56320)+65536}function kt(t,e,n){return t>=e&&t<=n}(function(t){t[t.unit_1=1]="unit_1",t[t.unit_2=2]="unit_2",t[t.unit_4=4]="unit_4"})(Ba||(Ba={}));const wt="adm-error-block",R0={status:"default"};function ef(t){return n=>{var o;const r=q(R0,n),{locale:s}=Ie(),a=s.ErrorBlock[r.status],l="description"in r?r.description:a.description,c="title"in r?r.title:a.title,u=(o=r.image)!==null&&o!==void 0?o:t[r.status],d=typeof u=="string"?i.createElement("img",{src:u,alt:"error block image"}):u;return z(r,i.createElement("div",{className:B(wt,{[`${wt}-full-page`]:r.fullPage})},i.createElement("div",{className:`${wt}-image`},d),i.createElement("div",{className:`${wt}-description`},![void 0,null].includes(c)&&i.createElement("div",{className:`${wt}-description-title`},c),![void 0,null].includes(l)&&i.createElement("div",{className:`${wt}-description-subtitle`},l)),r.children&&i.createElement("div",{className:`${wt}-content`},r.children)))}}const tf=i.createElement("svg",{viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-default-a"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("circle",{id:"error-block-image-default-d",cx:18.823,cy:18.823,r:18.823}),i.createElement("rect",{id:"error-block-image-default-b",x:3.5,y:9,width:51.429,height:88,rx:4.571})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M73.557.004c19.435-.311 38.696 17.016 51.523 35.287 8.708-10.822 17.127-16.233 25.255-16.233 13.333 0 28.35 14.274 45.053 42.822 1.769 3.024-3.582 7.435-16.054 13.231l-41.322 1.37c-7.343 5.872-31.225.626-69.152 1.234-27.79.445-45.759-1.234-53.908-5.037C3.2 71.143-1.625 68.686.48 65.308 27.371 22.12 51.73.353 73.557.003Zm93.098 49.53a1.125 1.125 0 0 0-.401.072l-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.283 1.719 4.153 3.898 4.314l.026.001v3.805c0 .39.25.705.56.705.31 0 .56-.316.56-.705l.001-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734Zm-100-5a1.125 1.125 0 0 0-.331.05l-.035.01-.035.012-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.212 1.613 4.036 3.695 4.294l.203.02.026.001v3.805c0 .39.25.705.56.705.282 0 .515-.26.555-.6l.006-.105v-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734ZM52.64 38.348l-.15.008-.149.023-.032.007-.032.008-.078.022-.045.015-.045.016-.06.023-.038.017-.038.017-.058.028-.022.011a2.201 2.201 0 0 0-.323.204l-.05.038-.05.04-.025.02-.025.021a3.742 3.742 0 0 0-.31.294l-.036.04c-.035.037-.07.076-.105.116-.01.012-.02.025-.031.036a3.275 3.275 0 0 0-.081.098l-.063.078c-2.031 2.583-3.48 8.692-3.48 11.027 0 2.636 1.846 4.832 4.292 5.323l.224.04-.064-.012.105.018.103.014v4.618c0 .47.299.85.667.85.337 0 .615-.32.659-.735l.006-.115v-4.618c.18-.023.355-.054.527-.094l.256-.067.196-.06c2.136-.706 3.68-2.75 3.68-5.162 0-2.996-2.383-12.207-5.325-12.207Z",transform:"translate(2.286 22.286)",fill:"url(#error-block-image-default-a)"}),i.createElement("g",{transform:"rotate(-90 102.429 55.357)"},i.createElement("path",{d:"M6.857 0H52a6.857 6.857 0 0 1 6.857 6.857v92A6.857 6.857 0 0 1 52 105.714H6.857A6.857 6.857 0 0 1 0 98.857v-92A6.857 6.857 0 0 1 6.857 0Z",fill:"#7EACFF"}),i.createElement("mask",{id:"error-block-image-default-c",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-default-b"})),i.createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-default-b"}),i.createElement("path",{d:"M11.838 91.8a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-2.858 0a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.16-2.305a.64.64 0 0 1 .628.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-2.982-.04a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm5.268-.531a.64.64 0 0 1 .628.651.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.858-1.143a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-6.37-.917c.209 0 .377.175.377.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm3.512-.798.093.007a.644.644 0 0 1 .535.645.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.652.627-.652Zm5.715 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-11.429 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.261.241c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm11.833-.812a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.628-.651c0-.36.281-.652.628-.652Zm-4.851.399c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm10.313-2.056a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-2.354-.128a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.652.628-.652Zm-13.798.311c.207 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.377-.39c0-.217.169-.392.377-.392Zm11.832-.812a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-6.285 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm3.428 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-6.118.24c.208 0 .376.176.376.392a.384.384 0 0 1-.376.39.384.384 0 0 1-.377-.39c0-.216.169-.391.377-.391Zm11.261-2.525a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm-3.557.484c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.478-.555a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.512-.26c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.857 0c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-4.571 0c.207 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm14.898-1.835a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-8.027-.245c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.169-.391.376-.391Zm6.271-1.349c.208 0 .377.175.377.391a.384.384 0 0 1-.377.391.384.384 0 0 1-.376-.39c0-.217.169-.392.376-.392Zm-11.484-.481c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm15.103-.972c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.39c0-.217.168-.392.376-.392Zm-9.333-1.404c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-6.819-.405c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Z",fill:"#003CFF",fillRule:"nonzero",mask:"url(#error-block-image-default-c)",transform:"rotate(116 12.367 83.503)"}),i.createElement("path",{stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"M36.774 5.474H21.523"}),i.createElement("path",{d:"m67.818 94.025-4.996 3.913m4.996 11.91-4.996-3.912m-1.142 9.145-1.143-6.288m10.71-6.768h-7.262",stroke:"#4486FE",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"})),i.createElement("circle",{cx:8.571,cy:8.571,r:8.571,transform:"translate(22.857 142)",fill:"#FFCD6B",fillRule:"nonzero"}),i.createElement("g",{transform:"translate(132.857 124)"},i.createElement("mask",{id:"error-block-image-default-e",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-default-d"})),i.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-default-d"}),i.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:13.886,cy:15.12,r:18.823}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:23.4,cy:29.057,r:1}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.343,cy:29.829,r:1}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:18.771,cy:32.657,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:29.571,cy:25.971,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:19.286,cy:7.971,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:26.486,cy:5.914,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:11.057,cy:6.943,r:1}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.086,cy:15.686,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:22.886,cy:14.657,r:1})),i.createElement("path",{d:"m87.429 135.123 6.591-9.378v-.08h-5.99v-2.559h10.038v1.787l-6.44 9.254v.082h6.56v2.557h-10.76v-1.663Zm12.185-5.889 4.948-7.047v-.056h-4.498v-1.917h7.536v1.34l-4.849 6.942v.059h4.923v1.92h-8.06v-1.24Zm10.345.702 3.708-5.274v-.045h-3.372v-1.437h5.648v1.003l-3.628 5.206v.045H116v1.438h-6.041v-.936Z",fill:"#FFF",fillRule:"nonzero"}))),nf=i.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("title",null,"@反馈/异常/网络服务异常"),i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-disconnected-c"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("circle",{id:"error-block-image-disconnected-d",cx:22.309,cy:22.309,r:22.309}),i.createElement("path",{id:"error-block-image-disconnected-a",d:"M0 0h400v400H0z"})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("mask",{id:"error-block-image-disconnected-b",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-disconnected-a"})),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"url(#error-block-image-disconnected-c)"},i.createElement("path",{d:"M151.686 45.58c38.869-.623 77.391 34.03 103.046 70.573 17.416-21.644 34.253-32.465 50.51-32.465 26.666 0 56.701 28.548 90.105 85.643 3.539 6.05-7.164 14.87-32.107 26.462l-82.643 2.741c-14.686 11.745-62.45 1.252-138.305 2.467-55.58.89-91.518-2.468-107.816-10.074-23.505-3.07-33.154-7.983-28.946-14.74C59.313 89.813 108.03 46.278 151.686 45.58Zm186.195 99.06-.127.003-.126.01a2.32 2.32 0 0 0-.465.103l-.032.01-.031.01a2.364 2.364 0 0 0-.181.071 2.52 2.52 0 0 0-.116.054l-.133.067-.042.024-.036.02a2.946 2.946 0 0 0-.133.08l-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024a4.906 4.906 0 0 0-.31.27l-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.108.008v7.608c0 .779.502 1.41 1.121 1.41.62 0 1.121-.632 1.121-1.41v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-200-10-.127.003-.126.01a2.32 2.32 0 0 0-.368.073l-.049.014-.048.016-.032.01-.031.01a2.364 2.364 0 0 0-.181.071l-.058.026-.058.028-.133.067-.042.024-.036.02-.066.039-.067.041-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024l-.156.13-.154.14-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.054.004.054.004v7.608c0 .779.502 1.41 1.121 1.41.58 0 1.058-.556 1.115-1.266l.006-.144v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-28.029-12.373-.107.002-.106.006a2.978 2.978 0 0 0-.551.095 3.444 3.444 0 0 0-.323.104 3.962 3.962 0 0 0-.61.297c-.076.045-.15.092-.226.141-4.964 3.312-8.728 18.445-8.728 23.77 0 5.434 3.922 9.935 9.04 10.726l.28.04v9.236c0 .886.532 1.614 1.21 1.692l.121.007.122-.007c.638-.074 1.147-.723 1.204-1.538l.006-.155v-9.235c5.254-.668 9.32-5.234 9.32-10.767 0-5.993-4.77-24.414-10.652-24.414Z"})),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)"},i.createElement("g",{transform:"translate(85.858 150.644)"},i.createElement("path",{d:"M116.26 28.467c1.352 0 2.703.018 4.054.054 3.923.385 10.188 4.248 9.267 11.061-.878 6.496-5.836 9.089-8.962 9.529a130.762 130.762 0 0 0-4.36-.072c-28.567 0-60.654 10.149-96.22 30.676l-2.227 1.297c-.744.437-1.49.878-2.236 1.323-4.878 2.911-11.193 1.316-14.103-3.562C-1.438 73.894.157 67.58 5.035 64.67 45.34 40.62 82.4 28.467 116.26 28.467Zm22 11.63c1.03-5.942 6.376-8.618 11.084-8.08C172.14 36.91 194.83 46.86 217.37 61.794c4.735 3.138 6.03 9.52 2.893 14.255-3.138 4.736-9.52 6.031-14.256 2.893-20.111-13.325-40.075-22.165-59.935-26.584a9.974 9.974 0 0 0-.325-.088c-3.987-1.015-8.602-5.738-7.487-12.175ZM116.26 77.418c22.777 0 45.4 7.057 67.73 20.988 4.82 3.007 6.289 9.351 3.282 14.17-3.007 4.82-9.351 6.29-14.17 3.283-19.194-11.974-38.095-17.87-56.842-17.87s-37.648 5.896-56.842 17.87c-4.82 3.007-11.164 1.537-14.17-3.282-3.007-4.82-1.538-11.164 3.282-14.171 22.33-13.931 44.953-20.988 67.73-20.988ZM117.974 124.67c9.85 0 17.303 1.69 25.687 5.082l.82.337 2.9 1.231 3.008 1.252.77.305.107.04c5.326 1.976 8.042 7.895 6.066 13.221-1.976 5.326-7.895 8.042-13.221 6.067l-.713-.27-.726-.285-.763-.31-1.263-.527-2.944-1.26-1.125-.473c-6.393-2.648-11.433-3.838-18.603-3.838-8.223 0-16.532 2.126-25.028 6.475-5.056 2.588-11.254.587-13.842-4.47-2.589-5.056-.588-11.253 4.47-13.842 11.313-5.791 22.814-8.735 34.4-8.735ZM118.235 197.047c7.15 0 13.77-.897 19.841-2.721 5.44-1.635 8.526-7.37 6.892-12.81-1.635-5.44-7.37-8.526-12.81-6.892-4.072 1.224-8.707 1.851-13.923 1.851-4.36 0-8.79-1.045-13.373-3.21l-.626-.301c-5.095-2.512-11.262-.418-13.773 4.678-2.512 5.095-.418 11.261 4.678 13.773 7.559 3.727 15.288 5.632 23.094 5.632Z",fill:"#377EFF",fillRule:"nonzero"}),i.createElement("path",{d:"M198.35 62.413c2.755-4.967 9.016-6.76 13.984-4.004 13.068 7.25 19.124 18.535 17.615 30.952-1.157 9.515-6.83 18.757-14.096 24.352-13.364 10.29-34.915 9.401-49.363-1.91-4.472-3.502-5.26-9.967-1.758-14.44 3.436-4.388 9.724-5.229 14.185-1.952l.255.194c7.283 5.702 18.475 6.164 24.13 1.809 3.072-2.366 5.766-6.754 6.226-10.536.467-3.844-1.21-7.07-6.796-10.267l-.378-.213c-4.967-2.756-6.76-9.017-4.004-13.985ZM61.35 103.092c-2.84-4.92-9.13-6.607-14.05-3.768-20.662 11.922-21.772 35.751-6.018 51.69 13.752 13.914 33.192 13.447 50.507 1.158 4.633-3.288 5.723-9.708 2.436-14.34-3.288-4.633-9.709-5.724-14.341-2.436-9.763 6.928-18.07 7.128-23.97 1.158-6.761-6.84-6.498-14.501 1.35-19.225l.317-.187c4.92-2.84 6.608-9.13 3.769-14.05ZM129.103 135.702c1.688-5.424 7.454-8.453 12.878-6.764 14.776 4.599 23.437 13.727 25.259 25.58 1.316 8.561-1.228 17.533-5.58 24.052-3.132 4.688-7.388 8.287-12.504 11.112-3.03 1.673-5.75 2.811-9.37 4.066l-1.4.477c-5.387 1.806-11.217-1.097-13.022-6.484-1.805-5.386 1.098-11.216 6.484-13.02l1.09-.374c6.032-2.112 9.602-4.19 11.613-7.201 1.693-2.535 2.818-6.502 2.356-9.503-.564-3.673-3.432-6.696-11.04-9.063-5.424-1.689-8.452-7.454-6.764-12.878Z",fill:"#377EFF",fillRule:"nonzero"}),i.createElement("path",{d:"M148.072 181.58c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.236-9.096-10.275-9.707",stroke:"#FFF",strokeWidth:.571,strokeLinecap:"round"}),i.createElement("ellipse",{fill:"#7EACFF",transform:"rotate(10 147 41.933)",cx:147,cy:41.933,rx:9.143,ry:10.286}),i.createElement("path",{d:"M210.422 107.472c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.668-9.883-11.572-12.067M51.604 131.769c-3.15-6.8-3.537-12.694-1.161-17.685 2.376-4.99 5.57-8.136 9.583-9.438",stroke:"#003CFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M21.53 64.408c4.946-3.389 9.817-6.026 14.612-7.912",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"m113.243 15.444 9.588 8.314M144.31 9.405l-5.775 11.3m18.389-1.246-11.907 4.643M127.64 5.66l2.77 14.255",stroke:"#4486FE",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}))),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)"},i.createElement("g",{transform:"translate(275.143 302.571)"},i.createElement("mask",{id:"error-block-image-disconnected-e",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-disconnected-d"})),i.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-disconnected-d"}),i.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:16.457,cy:17.92,r:22.309}),i.createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:14.263,cy:12.069,r:2.194}))),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"#FBBE47",fillRule:"nonzero"},i.createElement("circle",{cx:12,cy:12,r:12,transform:"translate(84 297.714)"})))),of=i.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-empty-a"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("path",{d:"M146.183 18.461c31.705 23.336 33.349 71.85 4.93 96.614-.252.22 6.172 5.602 13.577 11.414l.686.537.69.54.695.54.348.27.698.54a341.27 341.27 0 0 0 8.806 6.596c1.114.802 4.643-.853 10.587-4.965l-.532 12.218a1.2 1.2 0 0 1-.481.91l-10.868 8.111c-1.405 1.048-3.32 1.185-4.854.072l-35.578-25.834c-33.414 17.333-79.913 15-109.804-7-33.444-24.616-33.444-75.95 0-100.563 33.443-24.615 87.657-24.615 121.1 0Zm-60.469 7.653C51.63 26.114 24 44.534 24 67.257S51.63 108.4 85.714 108.4s61.715-18.42 61.715-41.143c0-22.722-27.63-41.143-61.715-41.143Z",id:"error-block-image-empty-b"})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M157.964 244.661H0L3.806 100.13a4.572 4.572 0 0 1 4.353-4.446l.217-.006h45.588V68.2a4.572 4.572 0 0 1 4.356-4.567l.216-.005h65.498l2.554-58.689a4.571 4.571 0 0 1 4.779-4.367l.214.015 87.79 8.222a4.572 4.572 0 0 1 4.126 4.133l.015.212 3.146 69.652L301.634 64.9a4.571 4.571 0 0 1 5.628 4.231l.005.215v43.955l56.162.001v130.264h-56.163v.001h-82.383v-.004h-66.919v1.098ZM89.503 160.03h-9.968v8.436h9.968v-8.436Zm0-14.507h-9.968v8.435h9.968v-8.435Zm197.985-5.15h-9.967v8.432h9.967v-8.431Zm-197.985-8.806h-9.968v8.436h9.968v-8.436Zm197.985-5.153h-9.967v8.432h9.967v-8.432Zm0-14.503h-9.967v8.432h9.967v-8.432Zm-84.643-.777h-30.8v8.436h30.8v-8.436Zm84.643-13.186h-9.967v8.436h9.967v-8.436Zm-84.643-3.29h-30.8v8.436h30.8v-8.436Zm0-15.912h-30.8v8.436h30.8v-8.436Z",transform:"translate(18.286 50.286)",fill:"url(#error-block-image-empty-a)"}),i.createElement("g",{transform:"translate(108.571 189.886)"},i.createElement("mask",{id:"error-block-image-empty-c",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-empty-b"})),i.createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-empty-b"}),i.createElement("path",{d:"M131.429 134.686a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285ZM128 133.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm21.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-9.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm12-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM120 128.971a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm16-1.142.125.006a1.143 1.143 0 1 1-.125-.006Zm11.429 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-22.857 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm17.143-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285ZM136 125.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-13.143 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm4.572-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm18.857-2.286a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-16-1.143.124.007a1.143 1.143 0 1 1-.124-.007Zm11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm36.572 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-37.143 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm13.715-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm9.714-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm18.286-3.428a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-11.429 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-28 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm17.715-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm17.143-4.571a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.428 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-5.143 1.142a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-8-1.142a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm-9.143 0a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm30.286-3.429a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM124 109.543a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.715-4.572a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-22.858-1.142a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm-11.428-3.429a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM124 99.257a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM49.143 55.829a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-9.143-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm21.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM52 52.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm12-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-19.429-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm16-1.143.124.007a1.143 1.143 0 1 1-.124-.007Zm11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm17.143-1.142a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.429-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-13.143 1.143a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm4.572-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM64 44.4a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-16-1.143.125.007a1.143 1.143 0 1 1-.125-.007Zm11.429 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.858 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm36.572 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM30.286 44.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM44 43.257a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm9.714-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM72 38.686a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.429 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-28 1.143a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm5.715-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM56 37.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM60.57 32.97a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM44 34.114a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-8-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-9.143 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm30.286-3.428a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-15.429 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.715 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714-4.572a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-22.857-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-11.429-3.428a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM41.714 20.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Z",fill:"#003CFF",fillRule:"nonzero",mask:"url(#error-block-image-empty-c)"})),i.createElement("path",{d:"M295.213 319.24c.744.546.745 1.433.002 1.98l-11.806 8.81c-1.069.799-3.326.474-4.853-.609l-35.622-25.241c-33.375 17.037-79.545 14.615-109.28-7.271-33.443-24.615-33.443-64.521 0-89.133 33.443-24.616 87.657-24.616 121.1 0 31.706 23.336 33.35 60.42 4.931 85.185-.543.473 35.528 26.278 35.528 26.278ZM148.06 220.015c-25.44 17.853-25.44 46.8 0 64.652 25.44 17.85 66.689 17.85 92.129 0 25.436-17.853 25.436-46.799 0-64.652-25.44-17.853-66.688-17.853-92.129 0Z",fill:"#5D96FE"}),i.createElement("path",{d:"M123.514 233.021c2.185-5.241 5.67-9.735 10.453-13.482M264.967 271.54c-2.185 5.24-5.67 9.734-10.453 13.481",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M81.143 252.571c7.574 0 13.714 23.88 13.714 31.649 0 6.97-4.942 12.755-11.429 13.871v11.672c0 1.235-.767 2.237-1.713 2.237-.904 0-1.644-.912-1.71-2.07l-.005-.167v-11.526c-7.04-.595-12.571-6.644-12.571-14.017 0-7.024 5.02-27.222 11.581-31.027l.096-.053c.027-.016.055-.03.082-.045l.067-.035.066-.033.1-.05.094-.041a3.34 3.34 0 0 1 .224-.093l.11-.042.097-.032c.038-.013.077-.025.115-.036l.053-.016.053-.014a3.351 3.351 0 0 1 .23-.055l.085-.016a3.95 3.95 0 0 1 .441-.054l.11-.005.11-.002Z",fill:"#FFCD6B",fillRule:"nonzero"}),i.createElement("g",{transform:"translate(283.429 177.143)",fillRule:"nonzero"},i.createElement("path",{d:"M22.475.847c12.34 0 22.345 37.935 22.345 50.276 0 11.395-8.53 20.798-19.552 22.172v19.019c0 1.932-1.25 3.5-2.792 3.5-1.49 0-2.707-1.46-2.79-3.301l-.004-.2-.001-19.018C8.659 71.92.13 62.518.13 51.123.13 40.071 8.154 8.49 18.694 2.015l.054-.031a5.94 5.94 0 0 1 .214-.128l.088-.048c.213-.12.427-.228.642-.326l.135-.06.18-.075.135-.053a5.796 5.796 0 0 1 .464-.16 4.44 4.44 0 0 1 .33-.092l.124-.03a7.122 7.122 0 0 1 .31-.065l.018-.003a6.305 6.305 0 0 1 .756-.088l.165-.007.166-.002Z",fill:"#FFCD6B"}),i.createElement("path",{d:"M22.475.847c12.34 0 22.345 37.935 22.345 50.276 0 11.395-8.53 20.798-19.552 22.172v19.019c0 1.932-1.25 3.5-2.792 3.5-1.543 0-2.794-1.566-2.794-3.5V73.295C8.659 71.921.13 62.518.13 51.123.13 38.783 10.134.847 22.475.847Z",fill:"#FFCD6B"}),i.createElement("circle",{fill:"#FFB400",cx:26.4,cy:56.869,r:1.45}),i.createElement("circle",{fill:"#FFB400",cx:39.453,cy:58.319,r:1}),i.createElement("circle",{fill:"#FFB400",cx:17.698,cy:63.637,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:38.002,cy:51.068,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:18.665,cy:17.228,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:32.201,cy:13.36,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:26.83,cy:20.666,r:1.45}),i.createElement("circle",{fill:"#FFB400",cx:38.969,cy:31.731,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:25.433,cy:29.797,r:1.45}),i.createElement("path",{d:"M34.197 53.033c0 9.825-6.934 18.017-16.172 19.987a22.44 22.44 0 0 0 4.45.448c12.34 0 22.344-10.004 22.344-22.345C44.82 38.783 34.815.847 22.475.847c8.947 14.03 11.722 40.891 11.722 52.186Z",fill:"#FBBE47"})))),rf=i.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-busy-a"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("circle",{id:"error-block-image-busy-b",cx:34.857,cy:34.857,r:34.857})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M157.964 243.667H0L3.806 99.134a4.572 4.572 0 0 1 4.353-4.446l.217-.005h45.588V67.205a4.572 4.572 0 0 1 4.356-4.566l.216-.005 65.498-.001 2.554-58.688a4.571 4.571 0 0 1 4.779-4.368l.214.015 87.79 8.222a4.572 4.572 0 0 1 4.126 4.133l.015.213 3.146 69.652 74.976-17.906a4.571 4.571 0 0 1 5.628 4.23l.005.216v43.955h56.162v130.265l-56.163-.001v.002h-82.383v-.004h-66.919v1.098Zm-68.461-84.631h-9.968v8.435h9.968v-8.435Zm0-14.508h-9.968v8.436h9.968v-8.436Zm197.985-5.149h-9.967v8.432h9.967v-8.432Zm-197.985-8.806h-9.968v8.436h9.968v-8.436Zm197.985-5.153h-9.967v8.432h9.967v-8.432Zm0-14.503h-9.967v8.432h9.967v-8.432Zm-84.643-.777h-30.8v8.436h30.8v-8.436Zm84.643-13.186h-9.967v8.435h9.967v-8.435Zm-84.643-3.29h-30.8v8.435h30.8v-8.435Zm0-15.912h-30.8v8.436h30.8v-8.436Z",transform:"translate(18.286 51.286)",fill:"url(#error-block-image-busy-a)"}),i.createElement("path",{d:"m250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l.958-.01c-.376 7.363 3.679 59.93 34.894 62.659 4.203.367 7.432.39 7.475 4.609.042 4.218-3.176 4.307-7.37 4.76-34.593 3.737-34.136 56.004-33.61 63.357l-.957.01c-5.276.053-9.51 4.373-9.455 9.649.053 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.054 9.508-4.374 9.455-9.648-.055-5.276-4.374-9.51-9.65-9.455l-.958.01c.377-7.363-.729-59.672-34.894-62.66-4.202-.367-7.432-.39-7.474-4.608-.043-4.219 3.175-4.308 7.369-4.76 31.276-3.377 34.136-56.004 33.61-63.357l.958-.01c5.276-.053 9.508-4.373 9.455-9.649-.055-5.276-4.374-9.509-9.65-9.454Z",fill:"#377EFF"}),i.createElement("path",{d:"M233.524 314.422c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.894-5.644c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.149 17.865c.108.684.773 1.147 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm-2.144-8.182c.109.684.773 1.148 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-1.586-4.694c.108.684.772 1.148 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.013-5.88c.109.685.773 1.148 1.484 1.036.71-.113 1.2-.759 1.09-1.443-.107-.684-.772-1.148-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm.236 15.575c.108.685.772 1.148 1.483 1.035.71-.112 1.2-.758 1.09-1.442-.107-.685-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.442Zm-.4 4.494c.108.684.772 1.147 1.483 1.035.71-.113 1.2-.759 1.091-1.443-.108-.684-.773-1.148-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-3.88-8.601c.108.684.772 1.147 1.483 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-.524-7.186c.065.41.463.688.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-2.265-4.102c.109.684.773 1.148 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.147-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm-.545-6.518c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm2.098 23.629c.109.684.773 1.147 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.443Zm-.756-9.65c.043.274.309.46.593.414a.512.512 0 0 0 .437-.577.512.512 0 0 0-.594-.414.512.512 0 0 0-.436.577Zm-.808 20.96c.109.684.773 1.147 1.484 1.034.71-.112 1.2-.758 1.09-1.442-.108-.685-.772-1.148-1.483-1.036-.71.113-1.199.759-1.09 1.443Zm-4.691-31.966c.065.41.463.689.89.621.426-.068.72-.455.654-.866-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm2.098 23.628c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.967-12.416c.109.684.773 1.147 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm1.073 6.772c.108.685.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.036-.711.113-1.2.759-1.091 1.443Zm-.009-3.131c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.43-9.03c.065.41.463.688.89.62.426-.067.72-.454.655-.865-.065-.41-.464-.689-.89-.62-.427.067-.72.454-.655.865ZM214.5 333.38c.108.685.772 1.148 1.483 1.036.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.711.112-1.2.758-1.091 1.442Zm-.156-7.178c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm-1.871-4.72c.108.684.773 1.147 1.483 1.034.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.035-.71.112-1.2.758-1.091 1.442Zm-1.614-6.857c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-.894-5.644c.065.41.464.689.89.621.427-.067.72-.455.655-.866-.065-.41-.463-.688-.89-.62-.427.067-.72.455-.655.865Zm-1.43-9.03c.065.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.958 14.225c.065.41.463.689.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-.703 12.81c.065.41.464.688.89.62.427-.067.72-.455.655-.865-.065-.41-.463-.689-.89-.621-.427.067-.72.455-.655.866Zm-4.543-22.536c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm2.806 30.138c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm-5.694-17.996c.065.41.463.688.89.62.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.866Zm-2.935-13.343c.066.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.463-.689-.89-.621-.426.068-.72.455-.655.866Z",fill:"#003CFF",fillRule:"nonzero"}),i.createElement("path",{d:"m250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l101.963-1.04c5.276-.052 9.508-4.372 9.455-9.648-.055-5.276-4.374-9.509-9.65-9.454ZM252.64 331.241l-101.964 1.038c-5.275.054-9.508 4.374-9.454 9.65.054 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.053 9.507-4.373 9.454-9.649-.054-5.275-4.374-9.508-9.649-9.454Z",fill:"#7EACFF"}),i.createElement("path",{stroke:"#003CFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"m196.824 197.298 52.216-.506M193.329 330.5h52.215"}),i.createElement("path",{d:"M167.367 228.041c-4.091-10.787-6.086-20.934-5.985-30.44",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("circle",{cx:14.857,cy:14.857,r:14.857,transform:"translate(106.857 248.571)",fill:"#FFCD6B",fillRule:"nonzero"}),i.createElement("g",{transform:"translate(236.571 284.571)"},i.createElement("mask",{id:"error-block-image-busy-c",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-busy-b"})),i.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-busy-b"}),i.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:25.714,cy:28,r:34.857}),i.createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:22.286,cy:18.857,r:3.429})))),sf=ef({default:tf,disconnected:nf,empty:of,busy:rf});let Gt=null,Yt=null;Mt&&(Gt=document.createElement("div"),Gt.className="adm-px-tester",Gt.style.setProperty("--size","10"),document.body.appendChild(Gt),Yt=document.createElement("div"),Yt.className="adm-px-tester",document.body.appendChild(Yt));function af(t){return Gt===null||Yt===null||Gt.getBoundingClientRect().height===10?t:(Yt.style.setProperty("--size",t.toString()),Yt.getBoundingClientRect().height)}const za="adm-grid",Je=ye(t=>{const e={"--columns":t.columns.toString()},{gap:n}=t;return n!==void 0&&(Array.isArray(n)?(e["--gap-horizontal"]=St(n[0]),e["--gap-vertical"]=St(n[1])):e["--gap"]=St(n)),z(t,i.createElement("div",{className:za,style:e},t.children))},{Item:t=>{const e=q({span:1},t),n={"--item-span":e.span};return z(e,i.createElement("div",{className:`${za}-item`,style:n,onClick:e.onClick},e.children))}}),Co=()=>[1,0,0,1,0,0],Za=t=>t[4],ja=t=>t[5],wn=t=>t[0],En=(t,e,n)=>Ka([1,0,0,1,e,n],t),lf=(t,e,n=e)=>Ka([e,0,0,n,0,0],t),cf=(t,[e,n])=>[t[0]*e+t[2]*n+t[4],t[1]*e+t[3]*n+t[5]],Ka=(t,e)=>[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]],uf=e1([ji,zd]),jr="adm-image-viewer",Wa=t=>{const{dragLockRef:e,maxZoom:n,imageRender:o,index:r}=t,s=i.useRef([]),a=i.useRef(null),l=i.useRef(null),[{matrix:c},u]=De(()=>({matrix:Co(),config:{tension:200}})),d=H.useSize(a),f=H.useSize(l),g=i.useRef(!1),b=v=>{if(!d||!f)return{x:{position:0,minX:0,maxX:0},y:{position:0,minY:0,maxY:0}};const k=-d.width/2,S=-d.height/2,C=-f.width/2,w=-f.height/2,E=wn(v),I=E*f.width,P=E*f.height,N=k-(I-d.width),$=k,A=S-(P-d.height),V=S,[M,O]=cf(v,[C,w]);return{x:{position:M,minX:N,maxX:$},y:{position:O,minY:A,maxY:V}}},x=(v,k,S,C=0)=>[v<=k-C,v>=S+C],y=(v,k,S=!1)=>{if(!d||!f)return v;const C=wn(v),w=C*f.width,E=C*f.height,{x:{position:I,minX:P,maxX:N},y:{position:$,minY:A,maxY:V}}=b(v);if(k==="translate"){let M=I,O=$;return w>d.width?M=S?ge(I,P,N):uo(I,P,N,C*50):M=-w/2,E>d.height?O=S?ge($,A,V):uo($,A,V,C*50):O=-E/2,En(v,M-I,O-$)}if(k==="scale"&&S){const[M,O]=[w>d.width?ge(I,P,N):-w/2,E>d.height?ge($,A,V):-E/2];return En(v,M-I,O-$)}return v};uf({onDrag:v=>{var k;if(v.first){const{x:{position:C,minX:w,maxX:E}}=b(c.get());s.current=x(C,w,E);return}if(v.pinching)return v.cancel();if(v.tap&&v.elapsedTime>0&&v.elapsedTime<1e3){(k=t.onTap)===null||k===void 0||k.call(t);return}const S=wn(c.get());if(e&&(e.current=S!==1),!g.current&&S<=1)u.start({matrix:Co()});else{const C=c.get(),w=[v.offset[0]-Za(C),v.offset[1]-ja(C)],E=En(C,...v.last?[w[0]+v.velocity[0]*v.direction[0]*200,w[1]+v.velocity[1]*v.direction[1]*200]:w);u.start({matrix:y(E,"translate",v.last),immediate:!v.last});const{x:{position:I,minX:P,maxX:N}}=b(E);v.last&&s.current.some($=>$)&&x(I,P,N).some($=>$)&&(e&&(e.current=!1),u.start({matrix:Co()}))}},onPinch:v=>{var k;g.current=!v.last;const[S]=v.offset;if(S<0)return;let C;n==="auto"?C=d&&f?Math.max(d.height/f.height,d.width/f.width):1:C=n;const w=v.last?ge(S,1,C):S;if((k=t.onZoomChange)===null||k===void 0||k.call(t,w),v.last&&w<=1)u.start({matrix:Co()}),e&&(e.current=!1);else{if(!d)return;const E=c.get(),I=wn(E),P=v.origin[0]-d.width/2,N=v.origin[1]-d.height/2;let $=En(E,-P,-N);$=lf($,w/I),$=En($,P,N),u.start({matrix:y($,"scale",v.last),immediate:!v.last}),e&&(e.current=!0)}}},{target:a,drag:{from:()=>[Za(c.get()),ja(c.get())],pointer:{touch:!0}},pinch:{from:()=>[wn(c.get()),0],pointer:{touch:!0}}});const h=typeof o=="function"&&o(t.image,{index:r});return i.createElement("div",{className:`${jr}-slide`},i.createElement("div",{className:`${jr}-control`,ref:a},i.createElement(xe.div,{className:`${jr}-image-wrapper`,style:{matrix:c}},h||i.createElement("img",{ref:l,src:t.image,draggable:!1,alt:t.image}))))},Kr="adm-image-viewer",df=i.forwardRef((t,e)=>{const n=window.innerWidth+af(16),[{x:o},r]=De(()=>({x:t.defaultIndex*n,config:{tension:250,clamp:!0}})),s=t.images.length;function a(u,d=!1){var f;const g=ge(u,0,s-1);(f=t.onIndexChange)===null||f===void 0||f.call(t,g),r.start({x:g*n,immediate:d})}i.useImperativeHandle(e,()=>({swipeTo:a}));const l=i.useRef(!1),c=to(u=>{if(l.current)return;const[d]=u.offset;if(u.last){const f=Math.floor(d/n),g=f+1,b=Math.min(u.velocity[0]*2e3,n)*u.direction[0];a(ge(Math.round((d+b)/n),f,g))}else r.start({x:d,immediate:!0})},{transform:([u,d])=>[-u,d],from:()=>[o.get(),0],bounds:()=>({left:0,right:(s-1)*n}),rubberband:!0,axis:"x",pointer:{touch:!0}});return i.createElement("div",Object.assign({className:`${Kr}-slides`},c()),i.createElement(xe.div,{className:`${Kr}-indicator`},o.to(u=>`${ge(Math.round(u/n),0,s-1)+1} / ${s}`)),i.createElement(xe.div,{className:`${Kr}-slides-inner`,style:{x:o.to(u=>-u)}},t.images.map((u,d)=>i.createElement(Wa,{key:d,image:u,onTap:t.onTap,maxZoom:t.maxZoom,imageRender:t.imageRender,index:d,onZoomChange:f=>{if(f!==1){const g=Math.round(o.get()/n);r.start({x:g*n})}},dragLockRef:l}))))}),So="adm-image-viewer",Ua={maxZoom:3,getContainer:null,visible:!1},Ha=t=>{var e,n,o;const r=q(Ua,t),s=i.createElement(Xn,{visible:r.visible,disableBodyScroll:!1,opacity:"thick",afterClose:r.afterClose,destroyOnClose:!0,className:(e=r==null?void 0:r.classNames)===null||e===void 0?void 0:e.mask},i.createElement("div",{className:B(`${So}-content`,(n=r==null?void 0:r.classNames)===null||n===void 0?void 0:n.body)},(r.image||typeof r.imageRender=="function")&&i.createElement(Wa,{image:r.image,onTap:r.onClose,maxZoom:r.maxZoom,imageRender:r.imageRender})),r.image&&i.createElement("div",{className:`${So}-footer`},(o=r.renderFooter)===null||o===void 0?void 0:o.call(r,r.image),i.createElement(bn,{position:"bottom"})));return Gn(r.getContainer,s)},ff=Object.assign(Object.assign({},Ua),{defaultIndex:0}),qa=i.forwardRef((t,e)=>{var n,o,r;const s=q(ff,t),[a,l]=i.useState(s.defaultIndex),c=i.useRef(null);i.useImperativeHandle(e,()=>({swipeTo:(f,g)=>{var b;l(f),(b=c.current)===null||b===void 0||b.swipeTo(f,g)}}));const u=i.useCallback(f=>{var g;f!==a&&(l(f),(g=s.onIndexChange)===null||g===void 0||g.call(s,f))},[s.onIndexChange,a]),d=i.createElement(Xn,{visible:s.visible,disableBodyScroll:!1,opacity:"thick",afterClose:s.afterClose,destroyOnClose:!0,className:(n=s==null?void 0:s.classNames)===null||n===void 0?void 0:n.mask},i.createElement("div",{className:B(`${So}-content`,(o=s==null?void 0:s.classNames)===null||o===void 0?void 0:o.body)},s.images&&i.createElement(df,{ref:c,defaultIndex:a,onIndexChange:u,images:s.images,onTap:s.onClose,maxZoom:s.maxZoom,imageRender:s.imageRender})),s.images&&i.createElement("div",{className:`${So}-footer`},(r=s.renderFooter)===null||r===void 0?void 0:r.call(s,s.images[a],a),i.createElement(bn,{position:"bottom"})));return Gn(s.getContainer,d)}),Xt=new Set;function mf(t){Wr();const e=yn(i.createElement(Ha,Object.assign({},t,{afterClose:()=>{var n;Xt.delete(e),(n=t.afterClose)===null||n===void 0||n.call(t)}})));return Xt.add(e),e}function pf(t){Wr();const e=yn(i.createElement(qa,Object.assign({},t,{afterClose:()=>{var n;Xt.delete(e),(n=t.afterClose)===null||n===void 0||n.call(t)}})));return Xt.add(e),e}function Wr(){Xt.forEach(t=>{t.close()}),Xt.clear()}const hf=ye(qa,{show:pf}),gf=ye(Ha,{Multi:hf,show:mf,clear:Wr}),Et="adm-space",vf={direction:"horizontal"},In=t=>{const e=q(vf,t),{direction:n,onClick:o}=e;return z(e,i.createElement("div",{className:B(Et,{[`${Et}-wrap`]:e.wrap,[`${Et}-block`]:e.block,[`${Et}-${n}`]:!0,[`${Et}-align-${e.align}`]:!!e.align,[`${Et}-justify-${e.justify}`]:!!e.justify}),onClick:o},i.Children.map(e.children,r=>r!=null&&i.createElement("div",{className:`${Et}-item`},r))))},It="adm-image-uploader",Ga=t=>{const{locale:e}=Ie(),{url:n,file:o,deletable:r,deleteIcon:s,onDelete:a,imageFit:l}=t,c=i.useMemo(()=>n||(o?URL.createObjectURL(o):""),[n,o]);i.useEffect(()=>()=>{o&&URL.revokeObjectURL(c)},[c,o]);function u(){return t.status==="pending"&&i.createElement("div",{className:`${It}-cell-mask`},i.createElement("span",{className:`${It}-cell-loading`},i.createElement(Or,{color:"white"}),i.createElement("span",{className:`${It}-cell-mask-message`},e.ImageUploader.uploading)))}function d(){return r&&i.createElement("span",{className:`${It}-cell-delete`,onClick:a},s)}return i.createElement("div",{className:B(`${It}-cell`,t.status==="fail"&&`${It}-cell-fail`)},i.createElement(Ji,{className:`${It}-cell-image`,src:c,fit:l,onClick:t.onClick}),u(),d())},Qe="adm-image-uploader",bf={disableUpload:!1,deletable:!0,deleteIcon:i.createElement(Jn,{className:`${Qe}-cell-delete-icon`}),showUpload:!0,multiple:!1,maxCount:0,defaultValue:[],accept:"image/*",preview:!0,showFailed:!0,imageFit:"cover"},Ya=i.forwardRef((t,e)=>{const{locale:n}=Ie(),o=q(bf,t),{columns:r}=o,[s,a]=Se(o),[l,c]=i.useState([]),u=i.useRef(null),d=H.useSize(u),f=i.useRef(null),[g,b]=i.useState(80),x=i.useRef(null);H.useIsomorphicLayoutEffect(()=>{const M=f.current;if(r&&d&&M){const O=d.width,K=ua(window.getComputedStyle(M).getPropertyValue("height"));b((O-K*(r-1))/r)}},[d==null?void 0:d.width]);const y={"--cell-size":g+"px"};H.useIsomorphicLayoutEffect(()=>{c(M=>M.filter(O=>O.url===void 0?!0:!s.some(K=>K.url===O.url)))},[s]),H.useIsomorphicLayoutEffect(()=>{var M;(M=o.onUploadQueueChange)===null||M===void 0||M.call(o,l.map(O=>({id:O.id,status:O.status})))},[l]);const h=i.useRef(0),{maxCount:v,onPreview:k,renderItem:S}=o;function C(M,O){return vt(this,void 0,void 0,function*(){const{beforeUpload:K}=o;let G=M;return G=yield K==null?void 0:K(M,O),G})}function w(M){return o.showFailed?M:M.filter(O=>O.status!=="fail")}function E(M){var O;return vt(this,void 0,void 0,function*(){M.persist();const{files:K}=M.target;if(!K)return;let G=[].slice.call(K);if(M.target.value="",o.beforeUpload){const oe=G.map(ue=>C(ue,G));yield Promise.all(oe).then(ue=>{G=ue.filter(Boolean)})}if(G.length===0)return;if(v>0){const oe=s.length+G.length-v;oe>0&&(G=G.slice(0,G.length-oe),(O=o.onCountExceed)===null||O===void 0||O.call(o,oe))}const me=G.map(oe=>({id:h.current++,status:"pending",file:oe}));c(oe=>[...w(oe),...me]);const ve=[];yield Promise.all(me.map((oe,ue)=>vt(this,void 0,void 0,function*(){try{const L=yield o.upload(oe.file);ve[ue]=L,c(Y=>Y.map(te=>te.id===oe.id?Object.assign(Object.assign({},te),{status:"success",url:L.url}):te))}catch(L){c(Y=>Y.map(te=>te.id===oe.id?Object.assign(Object.assign({},te),{status:"fail"}):te)),console.error(L)}}))),a(oe=>oe.concat(ve).filter(Boolean))})}const I=i.useRef(null);function P(M){I.current=gf.Multi.show({images:s.map(O=>O.url),defaultIndex:M,onClose:()=>{I.current=null}})}H.useUnmount(()=>{var M;(M=I.current)===null||M===void 0||M.close()});const N=w(l),$=o.showUpload&&(v===0||s.length+N.length<v),A=()=>s.map((M,O)=>{var K,G;const me=i.createElement(Ga,{key:(K=M.key)!==null&&K!==void 0?K:O,url:(G=M.thumbnailUrl)!==null&&G!==void 0?G:M.url,deletable:o.deletable,deleteIcon:o.deleteIcon,imageFit:o.imageFit,onClick:()=>{o.preview&&P(O),k&&k(O,M)},onDelete:()=>vt(void 0,void 0,void 0,function*(){var ve;(yield(ve=o.onDelete)===null||ve===void 0?void 0:ve.call(o,M))!==!1&&a(s.filter((ue,L)=>L!==O))})});return S?S(me,M,s):me}),V=i.createElement(i.Fragment,null,A(),l.map(M=>!o.showFailed&&M.status==="fail"?null:i.createElement(Ga,{key:M.id,file:M.file,deletable:M.status!=="pending",deleteIcon:o.deleteIcon,status:M.status,imageFit:o.imageFit,onDelete:()=>{c(l.filter(O=>O.id!==M.id))}})),i.createElement("div",{className:`${Qe}-upload-button-wrap`,style:$?void 0:{display:"none"}},o.children||i.createElement("span",{className:`${Qe}-cell ${Qe}-upload-button`,role:"button","aria-label":n.ImageUploader.upload},i.createElement("span",{className:`${Qe}-upload-button-icon`},i.createElement(qu,null))),!o.disableUpload&&i.createElement("input",{"aria-label":n.ImageUploader.upload,ref:x,capture:o.capture,accept:o.accept,multiple:o.multiple,type:"file",className:`${Qe}-input`,onChange:E})));return i.useImperativeHandle(e,()=>({get nativeElement(){return x.current}})),z(o,i.createElement("div",{className:Qe,ref:u},r?i.createElement(Je,{className:`${Qe}-grid`,columns:r,style:y},i.createElement("div",{className:`${Qe}-gap-measure`,ref:f}),V.props.children):i.createElement(In,{className:`${Qe}-space`,wrap:!0,block:!0},V.props.children)))});function Xa({onEnterPress:t,onKeyDown:e,nativeInputRef:n,enterKeyHint:o}){const r=s=>{t&&(s.code==="Enter"||s.keyCode===13)&&t(s),e==null||e(s)};return H.useIsomorphicLayoutEffect(()=>{const s=n.current;if(!(!o||!s))return s.setAttribute("enterkeyhint",o),()=>{s.removeAttribute("enterkeyhint")}},[o]),r}const ko="adm-input",yf={defaultValue:"",clearIcon:i.createElement(Gu,null),onlyShowClearWhenFocus:!0},Ur=i.forwardRef((t,e)=>{const{locale:n,input:o={}}=Ie(),r=q(yf,o,t),[s,a]=Se(r),[l,c]=i.useState(!1),u=i.useRef(!1),d=i.useRef(null),f=Xa({onEnterPress:r.onEnterPress,onKeyDown:r.onKeyDown,nativeInputRef:d,enterKeyHint:r.enterKeyHint});i.useImperativeHandle(e,()=>({clear:()=>{a("")},focus:()=>{var x;(x=d.current)===null||x===void 0||x.focus()},blur:()=>{var x;(x=d.current)===null||x===void 0||x.blur()},get nativeElement(){return d.current}}));function g(){let x=s;if(r.type==="number"){const y=x&&ge(parseFloat(x),r.min,r.max).toString();Number(x)!==Number(y)&&(x=y)}x!==s&&a(x)}const b=!r.clearable||!s||r.readOnly?!1:r.onlyShowClearWhenFocus?l:!0;return z(r,i.createElement("div",{className:B(`${ko}`,r.disabled&&`${ko}-disabled`)},i.createElement("input",{ref:d,className:`${ko}-element`,value:s,onChange:x=>{a(x.target.value)},onFocus:x=>{var y;c(!0),(y=r.onFocus)===null||y===void 0||y.call(r,x)},onBlur:x=>{var y;c(!1),g(),(y=r.onBlur)===null||y===void 0||y.call(r,x)},onPaste:r.onPaste,id:r.id,placeholder:r.placeholder,disabled:r.disabled,readOnly:r.readOnly,maxLength:r.maxLength,minLength:r.minLength,max:r.max,min:r.min,autoComplete:r.autoComplete,enterKeyHint:r.enterKeyHint,autoFocus:r.autoFocus,pattern:r.pattern,inputMode:r.inputMode,type:r.type,name:r.name,autoCapitalize:r.autoCapitalize,autoCorrect:r.autoCorrect,onKeyDown:f,onKeyUp:r.onKeyUp,onCompositionStart:x=>{var y;u.current=!0,(y=r.onCompositionStart)===null||y===void 0||y.call(r,x)},onCompositionEnd:x=>{var y;u.current=!1,(y=r.onCompositionEnd)===null||y===void 0||y.call(r,x)},onClick:r.onClick,step:r.step,role:r.role,"aria-valuenow":r["aria-valuenow"],"aria-valuemax":r["aria-valuemax"],"aria-valuemin":r["aria-valuemin"],"aria-label":r["aria-label"]}),b&&i.createElement("div",{className:`${ko}-clear`,onMouseDown:x=>{x.preventDefault()},onClick:()=>{var x,y;a(""),(x=r.onClear)===null||x===void 0||x.call(r),E1()&&u.current&&(u.current=!1,(y=d.current)===null||y===void 0||y.blur())},"aria-label":n.Input.clear},r.clearIcon)))}),Re="adm-jumbo-tabs",Ja=ye(t=>{var e;const n=i.useRef(null),o=i.useRef(null),r={};let s=null;const a=[];Pr(t.children,(f,g)=>{if(!i.isValidElement(f))return;const b=f.key;if(typeof b!="string")return;g===0&&(s=b);const x=a.push(f);r[b]=x-1});const[l,c]=Se({value:t.activeKey,defaultValue:(e=t.defaultActiveKey)!==null&&e!==void 0?e:s,onChange:f=>{var g;f!==null&&((g=t.onChange)===null||g===void 0||g.call(t,f))}}),{scrollLeft:u,animate:d}=B1(n,r[l]);return ia(()=>{d(!0)},o),z(t,i.createElement("div",{className:Re,ref:o},i.createElement("div",{className:`${Re}-header`},i.createElement(V1,{scrollTrackRef:n}),i.createElement(xe.div,{className:`${Re}-tab-list`,ref:n,scrollLeft:u},a.map(f=>z(f.props,i.createElement("div",{key:f.key,className:`${Re}-tab-wrapper`},i.createElement("div",{onClick:()=>{const{key:g}=f;f.props.disabled||g!=null&&c(g.toString())},className:B(`${Re}-tab`,{[`${Re}-tab-active`]:f.key===l,[`${Re}-tab-disabled`]:f.props.disabled})},i.createElement("div",{className:`${Re}-tab-title`},f.props.title),i.createElement("div",{className:`${Re}-tab-description`},f.props.description))))))),a.map(f=>{if(f.props.children===void 0)return null;const g=f.key===l;return i.createElement(Yn,{key:f.key,active:g,forceRender:f.props.forceRender,destroyOnClose:f.props.destroyOnClose},i.createElement("div",{className:`${Re}-content`,style:{display:g?"block":"none"}},f.props.children))})))},{Tab:()=>null}),Jt="adm-nav-bar",Qa=i.createElement(Xu,null),xf=t=>{const{navBar:e={}}=Ie(),n=q(e,t),{back:o,backIcon:r,backArrow:s}=n,a=e.backIcon||Qa,l=Ao(Qa,e.backIcon,s===!0?a:s,r===!0?a:r);return z(n,i.createElement("div",{className:B(Jt)},i.createElement("div",{className:`${Jt}-left`,role:"button"},o!==null&&i.createElement("div",{className:`${Jt}-back`,onClick:n.onBack},l&&i.createElement("span",{className:`${Jt}-back-arrow`},l),i.createElement("span",{"aria-hidden":"true"},o)),n.left),i.createElement("div",{className:`${Jt}-title`},n.children),i.createElement("div",{className:`${Jt}-right`},n.right)))},_n="adm-page-indicator",Cf={color:"primary",direction:"horizontal"},Sf=i.memo(t=>{const e=q(Cf,t),n=[];for(let o=0;o<e.total;o++)n.push(i.createElement("div",{key:o,className:B(`${_n}-dot`,{[`${_n}-dot-active`]:e.current===o})}));return z(e,i.createElement("div",{className:B(_n,`${_n}-${e.direction}`,`${_n}-color-${e.color}`)},n))}),Ra=i.createContext(null),kf={disabled:!1,defaultValue:null},wf=t=>{const e=q(kf,t),[n,o]=Se({value:e.value,defaultValue:e.defaultValue,onChange:r=>{var s;r!==null&&((s=e.onChange)===null||s===void 0||s.call(e,r))}});return i.createElement(Ra.Provider,{value:{value:n===null?[]:[n],check:r=>{o(r)},uncheck:()=>{},disabled:e.disabled}},e.children)},_t="adm-radio",Ef={defaultChecked:!1},Hr=ye(t=>{const e=q(Ef,t),n=i.useContext(Ra);let[o,r]=Se({value:e.checked,defaultValue:e.defaultChecked,onChange:e.onChange}),s=e.disabled;const{value:a}=e;n&&a!==void 0&&(o=n.value.includes(a),r=c=>{var u;c?n.check(a):n.uncheck(a),(u=e.onChange)===null||u===void 0||u.call(e,c)},s=s||n.disabled);const l=()=>e.icon?i.createElement("div",{className:`${_t}-custom-icon`},e.icon(o)):i.createElement("div",{className:`${_t}-icon`},o&&i.createElement(Ea,null));return z(e,i.createElement("label",{onClick:e.onClick,className:B(_t,{[`${_t}-checked`]:o,[`${_t}-disabled`]:s,[`${_t}-block`]:e.block})},i.createElement(Ia,{type:"radio",checked:o,onChange:r,disabled:s,id:e.id}),l(),e.children&&i.createElement("div",{className:`${_t}-content`},e.children)))},{Group:wf}),gt="adm-search-bar",If={clearable:!0,onlyShowClearWhenFocus:!1,showCancelButton:!1,defaultValue:"",clearOnCancel:!0},el=i.forwardRef((t,e)=>{const{locale:n,searchBar:o={}}=Ie(),r=q(If,o,{cancelText:n.common.cancel},t),s=Ao(i.createElement(Qu,null),o.searchIcon,t.icon,t.searchIcon),[a,l]=Se(r),[c,u]=i.useState(!1),d=i.useRef(null),f=i.useRef(!1);i.useImperativeHandle(e,()=>({clear:()=>{var b;return(b=d.current)===null||b===void 0?void 0:b.clear()},focus:()=>{var b;return(b=d.current)===null||b===void 0?void 0:b.focus()},blur:()=>{var b;return(b=d.current)===null||b===void 0?void 0:b.blur()},get nativeElement(){var b,x;return(x=(b=d.current)===null||b===void 0?void 0:b.nativeElement)!==null&&x!==void 0?x:null}}));const g=()=>{let b;return typeof r.showCancelButton=="function"?b=r.showCancelButton(c,a):b=r.showCancelButton&&c,b&&i.createElement("div",{className:`${gt}-suffix`},i.createElement(nt,{fill:"none",className:`${gt}-cancel-button`,onClick:()=>{var x,y,h;r.clearOnCancel&&((x=d.current)===null||x===void 0||x.clear()),(y=d.current)===null||y===void 0||y.blur(),(h=r.onCancel)===null||h===void 0||h.call(r)},onMouseDown:x=>{x.preventDefault()}},r.cancelText))};return z(r,i.createElement("div",{className:B(gt,{[`${gt}-active`]:c})},i.createElement("div",{className:`${gt}-input-box`},s&&i.createElement("div",{className:`${gt}-input-box-icon`},s),i.createElement(Ur,{ref:d,className:B(`${gt}-input`,{[`${gt}-input-without-icon`]:!s}),value:a,onChange:l,maxLength:r.maxLength,autoFocus:r.autoFocus,placeholder:r.placeholder,clearable:r.clearable,onlyShowClearWhenFocus:r.onlyShowClearWhenFocus,onFocus:b=>{var x;u(!0),(x=r.onFocus)===null||x===void 0||x.call(r,b)},onBlur:b=>{var x;u(!1),(x=r.onBlur)===null||x===void 0||x.call(r,b)},onClear:r.onClear,type:"search",enterKeyHint:"search",onEnterPress:()=>{var b,x;f.current||((b=d.current)===null||b===void 0||b.blur(),(x=r.onSearch)===null||x===void 0||x.call(r,a))},"aria-label":n.SearchBar.name,onCompositionStart:b=>{var x;f.current=!0,(x=r.onCompositionStart)===null||x===void 0||x.call(r,b)},onCompositionEnd:b=>{var x;f.current=!1,(x=r.onCompositionEnd)===null||x===void 0||x.call(r,b)}})),g()))}),tl=t=>z(t,i.createElement("div",{className:"adm-swiper-item",onClick:t.onClick},t.children));function _f(t){const[e,n]=i.useState(t),o=i.useRef(e);return i.useEffect(()=>{o.current=e},[e]),[e,n,o]}function Pf(t,e){const n=Object.keys(t),o=Object.keys(e),r=new Set([...n,...o]),s={};return r.forEach(a=>{const l=t[a],c=e[a];typeof l=="function"&&typeof c=="function"?s[a]=function(...u){l(...u),c(...u)}:s[a]=l||c}),s}const et="adm-swiper",$f={mousedown:"onMouseDown",mousemove:"onMouseMove",mouseup:"onMouseUp"},Ff={defaultIndex:0,allowTouchMove:!0,autoplay:!1,autoplayInterval:3e3,loop:!1,direction:"horizontal",slideSize:100,trackOffset:0,stuckAtBoundary:!0,rubberband:!0,stopPropagation:[]};let wo;const Tf=i.forwardRef(Xi.staged((t,e)=>{const n=q(Ff,t),{direction:o,total:r,children:s,indicator:a}=n,[l]=i.useState({}),c=i.useRef(null),u=o==="vertical",d=n.slideSize/100,f=n.trackOffset/100,{validChildren:g,count:b,renderChildren:x}=i.useMemo(()=>{let h=0,v,k;return typeof s=="function"?v=s:k=i.Children.map(s,S=>!i.isValidElement(S)||S.type!==tl?null:(h++,S)),{renderChildren:v,validChildren:k,count:h}},[s]),y=r!=null?r:b;return y===0||!g&&!x?null:()=>{let h=n.loop;d*(y-1)<1&&(h=!1);const v=i.useRef(null);function k(){const D=v.current;return D?(u?D.offsetHeight:D.offsetWidth)*n.slideSize/100:0}const[S,C,w]=H.useGetState(n.defaultIndex),[E,I,P]=_f(!1);function N(D){let ne=0,re=y-1;return n.stuckAtBoundary&&(ne+=f/d,re-=(1-d-f)/d),ge(D,ne,re)}const[{position:$},A]=De(()=>({position:N(S)*100,config:{tension:200,friction:30},onRest:()=>{if(P.current||!h)return;const D=$.get(),ne=100*y,re=qr(D,ne);re!==D&&A.start({position:re,immediate:!0})}}),[y]),V=i.useRef(null);function M(){var D;(D=V.current)===null||D===void 0||D.call(V),P.current=!1}const O=to(D=>{if(V.current=D.cancel,!D.intentional||(D.first&&!wo&&(wo=l),wo!==l))return;wo=D.last?void 0:l;const ne=k();if(!ne)return;const re=u?1:0,we=D.offset[re],$e=D.direction[re],To=D.velocity[re];if(I(!0),!D.last)A.start({position:we*100/ne,immediate:!0});else{const Fn=Math.floor(we/ne),Jp=Fn+1,Qp=Math.round((we+To*2e3*$e)/ne);K(ge(Qp,Fn,Jp)),window.setTimeout(()=>{I(!1)})}},{transform:([D,ne])=>[-D,-ne],from:()=>{const D=k();return[$.get()/100*D,$.get()/100*D]},triggerAllEvents:!0,bounds:()=>{if(h)return{};const D=k(),ne=N(0)*D,re=N(y-1)*D;return u?{top:ne,bottom:re}:{left:ne,right:re}},rubberband:n.rubberband,axis:u?"y":"x",preventScroll:!u,pointer:{touch:!0}});function K(D,ne=!1){var re;const we=Math.round(D),$e=h?qr(we,y):ge(we,0,y-1);$e!==w()&&((re=n.onIndexChange)===null||re===void 0||re.call(n,$e)),C($e),A.start({position:(h?we:N(we))*100,immediate:ne})}function G(){K(Math.round($.get()/100)+1)}function me(){K(Math.round($.get()/100)-1)}i.useImperativeHandle(e,()=>({swipeTo:K,swipeNext:G,swipePrev:me})),H.useIsomorphicLayoutEffect(()=>{const D=y-1;S>D&&K(D,!0)});const{autoplay:ve,autoplayInterval:oe}=n,ue=()=>{c.current=window.setTimeout(()=>{ve==="reverse"?me():G(),ue()},oe)};i.useEffect(()=>{if(!(!ve||E))return ue(),()=>{c.current&&window.clearTimeout(c.current)}},[ve,oe,E,y]);function L(D,ne){let re={};return h&&(re={[u?"y":"x"]:$.to(we=>{let $e=-we+D*100;const To=y*100,Fn=To/2;return $e=qr($e+Fn,To)-Fn,`${$e}%`}),[u?"top":"left"]:`-${D*100}%`}),i.createElement(xe.div,{className:B(`${et}-slide`,{[`${et}-slide-active`]:S===D}),style:re,key:D},ne)}function Y(){if(x&&r){const ne=Math.max(S-2,0),re=Math.min(S+2,r-1),we=[];for(let $e=ne;$e<=re;$e+=1)we.push(L($e,x($e)));return i.createElement(i.Fragment,null,i.createElement("div",{className:`${et}-slide-placeholder`,style:{width:`${ne*100}%`}}),we)}return i.Children.map(g,(D,ne)=>L(ne,D))}function te(){return h?i.createElement("div",{className:`${et}-track-inner`},Y()):i.createElement(xe.div,{className:`${et}-track-inner`,style:{[u?"y":"x"]:$.to(D=>`${-D}%`)}},Y())}const ie={"--slide-size":`${n.slideSize}%`,"--track-offset":`${n.trackOffset}%`},ae=Object.assign({},n.allowTouchMove?O():{}),Ft={};for(const D of n.stopPropagation){const ne=$f[D];Ft[ne]=function(re){re.stopPropagation()}}const X=Pf(ae,Ft);let fe=null;return typeof a=="function"?fe=a(y,S):a!==!1&&(fe=i.createElement("div",{className:`${et}-indicator`},i.createElement(Sf,Object.assign({},n.indicatorProps,{total:y,current:S,direction:o})))),z(n,i.createElement("div",{className:B(et,`${et}-${o}`),style:ie},i.createElement("div",Object.assign({ref:v,className:B(`${et}-track`,{[`${et}-track-allow-touch-move`]:n.allowTouchMove}),onClickCapture:D=>{P.current&&D.stopPropagation(),M()}},X),te()),fe))}}));function qr(t,e){const n=t%e;return n<0?n+e:n}const Eo=ye(Tf,{Item:tl}),Mf=()=>null,rt="adm-tab-bar",Nf={safeArea:!1},Gr=ye(t=>{var e;const n=q(Nf,t);let o=null;const r=[];Pr(n.children,(l,c)=>{if(!i.isValidElement(l))return;const u=l.key;typeof u=="string"&&(c===0&&(o=u),r.push(l))});const[s,a]=Se({value:n.activeKey,defaultValue:(e=n.defaultActiveKey)!==null&&e!==void 0?e:o,onChange:l=>{var c;l!==null&&((c=n.onChange)===null||c===void 0||c.call(n,l))}});return z(n,i.createElement("div",{className:rt},i.createElement("div",{className:`${rt}-wrap`},r.map(l=>{const c=l.key===s;function u(){const d=l.props.icon&&i.createElement("div",{className:`${rt}-item-icon`},typeof l.props.icon=="function"?l.props.icon(c):l.props.icon),f=l.props.title&&i.createElement("div",{className:B(`${rt}-item-title`,!!d&&`${rt}-item-title-with-icon`)},typeof l.props.title=="function"?l.props.title(c):l.props.title);return d?i.createElement(i.Fragment,null,i.createElement(Ri,{content:l.props.badge,className:`${rt}-icon-badge`},d),f):f?i.createElement(Ri,{content:l.props.badge,className:`${rt}-title-badge`},f):null}return z(l.props,i.createElement("div",{key:l.key,onClick:()=>{var d,f;const{key:g}=l;g!=null&&(a(g.toString()),(f=(d=l.props).onClick)===null||f===void 0||f.call(d))},className:B(`${rt}-item`,{[`${rt}-item-active`]:c})},u()))})),n.safeArea&&i.createElement(bn,{position:"bottom"})))},{Item:Mf}),nl="adm-tag",Of={default:"var(--adm-color-text-secondary, #666666)",primary:"var(--adm-color-primary, #1677ff)",success:"var(--adm-color-success, #00b578)",warning:"var(--adm-color-warning, #ff8f1f)",danger:"var(--adm-color-danger, #ff3141)"},Af={color:"default",fill:"solid",round:!1},Yr=t=>{var e;const n=q(Af,t),o=(e=Of[n.color])!==null&&e!==void 0?e:n.color,r={"--border-color":o,"--text-color":n.fill==="outline"?o:"#ffffff","--background-color":n.fill==="outline"?"transparent":o};return z(n,i.createElement("span",{style:r,onClick:n.onClick,className:B(nl,{[`${nl}-round`]:n.round})},n.children))},Pn="adm-text-area",ol={rows:2,showCount:!1,autoSize:!1,defaultValue:""},rl=i.forwardRef((t,e)=>{const n=q(ol,t),{autoSize:o,showCount:r,maxLength:s}=n,[a,l]=Se(Object.assign(Object.assign({},n),{value:n.value===null?"":n.value}));n.value;const c=i.useRef(null),u=i.useRef("auto"),d=i.useRef(null),f=Xa({onEnterPress:n.onEnterPress,onKeyDown:n.onKeyDown,nativeInputRef:c,enterKeyHint:n.enterKeyHint});i.useImperativeHandle(e,()=>({clear:()=>{l("")},focus:()=>{var h;(h=c.current)===null||h===void 0||h.focus()},blur:()=>{var h;(h=c.current)===null||h===void 0||h.blur()},get nativeElement(){return c.current}})),H.useIsomorphicLayoutEffect(()=>{if(!o)return;const h=c.current,v=d.current;if(!h||(h.style.height=u.current,!v))return;let k=v.scrollHeight;if(typeof o=="object"){const S=window.getComputedStyle(h),C=parseFloat(S.lineHeight);o.minRows&&(k=Math.max(k,o.minRows*C)),o.maxRows&&(k=Math.min(k,o.maxRows*C))}u.current=`${k}px`,h.style.height=`${k}px`},[a,o]);const g=i.useRef(!1);let b;const x=zr(a).length;typeof r=="function"?b=r(x,s):r&&(b=i.createElement("div",{className:`${Pn}-count`},s===void 0?x:x+"/"+s));let y=n.rows;return typeof o=="object"&&(o.maxRows&&y>o.maxRows&&(y=o.maxRows),o.minRows&&y<o.minRows&&(y=o.minRows)),z(n,i.createElement("div",{className:Pn},i.createElement("textarea",{ref:c,className:`${Pn}-element`,rows:y,value:a,placeholder:n.placeholder,onChange:h=>{let v=h.target.value;s&&!g.current&&(v=zr(v).slice(0,s).join("")),l(v)},id:n.id,onCompositionStart:h=>{var v;g.current=!0,(v=n.onCompositionStart)===null||v===void 0||v.call(n,h)},onCompositionEnd:h=>{var v;if(g.current=!1,s){const k=h.target.value;l(zr(k).slice(0,s).join(""))}(v=n.onCompositionEnd)===null||v===void 0||v.call(n,h)},autoComplete:n.autoComplete,autoFocus:n.autoFocus,disabled:n.disabled,readOnly:n.readOnly,name:n.name,onFocus:n.onFocus,onBlur:n.onBlur,onClick:n.onClick,onKeyDown:f}),b,o&&i.createElement("textarea",{ref:d,className:`${Pn}-element ${Pn}-element-hidden`,value:a,rows:y,"aria-hidden":!0,readOnly:!0})))});rl.defaultProps=ol;const st="adm-toast",Df={maskClickable:!0,stopPropagation:["click"]},Lf=t=>{const e=q(Df,t),{maskClickable:n,content:o,icon:r,position:s}=e,a=i.useMemo(()=>{if(r==null)return null;switch(r){case"success":return i.createElement(xi,{className:`${st}-icon-success`});case"fail":return i.createElement(Jn,{className:`${st}-icon-fail`});case"loading":return i.createElement(Or,{color:"white",className:`${st}-loading`});default:return r}},[r]),l=i.useMemo(()=>{switch(s){case"top":return"20%";case"bottom":return"80%";default:return"50%"}},[s]);return i.createElement(Xn,{visible:e.visible,destroyOnClose:!0,opacity:0,disableBodyScroll:!n,getContainer:e.getContainer,afterClose:e.afterClose,style:Object.assign({pointerEvents:n?"none":"auto"},e.maskStyle),className:B(`${st}-mask`,e.maskClassName),stopPropagation:e.stopPropagation},i.createElement("div",{className:B(`${st}-wrap`)},i.createElement("div",{style:{top:l},className:B(`${st}-main`,r?`${st}-main-icon`:`${st}-main-text`)},a&&i.createElement("div",{className:`${st}-icon`},a),i.createElement(p1,null,o))))};let Ne=null,Xr=null;const Io={duration:2e3,position:"center",maskClickable:!0},Bf=t=>i.createElement(Lf,Object.assign({},t));function Vf(t){var e;const n=q(Io,typeof t=="string"?{content:t}:t),o=i.createElement(Bf,Object.assign({},n,{onClose:()=>{Ne=null}}));return Ne?!((e=Ne.isRendered)===null||e===void 0)&&e.call(Ne)?Ne.replace(o):(Ne.close(),Ne=yn(o)):Ne=yn(o),Xr&&window.clearTimeout(Xr),n.duration!==0&&(Xr=window.setTimeout(()=>{sl()},n.duration)),Ne}function sl(){Ne==null||Ne.close(),Ne=null}function zf(t){t.duration!==void 0&&(Io.duration=t.duration),t.position!==void 0&&(Io.position=t.position),t.maskClickable!==void 0&&(Io.maskClickable=t.maskClickable)}const Jr={show:Vf,clear:sl,config:zf},il={type:"void","x-component":"MPage","x-designer":"MPage.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"mobilePage:addBlock","x-component-props":{showDivider:!1}}}},Zf=t=>{const{t:e}=m.useTranslation(),n=_.useFieldSchema(),{dn:o}=m.useDesignable(),r=_.useField(),s={dn:o,field:r,fieldSchema:n};return p.jsx(m.SchemaSettingsDropdown,U(T({title:p.jsx(se.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)"},icon:p.jsx(Ve.MenuOutlined,{}),type:"dashed",children:e("Menu configuration")})},s),{children:p.jsx(m.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:e("Delete menu block")},breakRemoveOn:{"x-component":"Grid"}},"remove")}))},$n=()=>{const{dn:t}=m.useDesignable(),e=_.useFieldSchema(),n=_.useField();return{onUpdateComponentProps:H.useMemoizedFn(r=>le(null,null,function*(){Fe.set(e,"x-component-props",r),n.componentProps=T(T({},n.componentProps),r),yield t.emit("patch",{schema:{"x-uid":e["x-uid"],"x-component-props":e["x-component-props"],"x-server-hooks":[{type:"onSelfSave",method:"extractTextToLocale"}]}}),yield t.refresh()}))}},al={properties:{name:{type:"string",title:lt("Menu name"),required:!0,"x-component":"Input","x-decorator":"FormItem"},icon:{"x-decorator":"FormItem","x-component":"IconPicker",title:lt("Icon"),"x-component-props":{}}}},jf=t=>{const{icon:e,name:n}=t,o=m.useDesigner(),r=R.useNavigate(),s=R.useLocation(),a=_.useFieldSchema(),l=m.useCompile(),c=R.useParams(),u=()=>{const d=s.pathname.endsWith("/")?s.pathname.slice(0,-1):s.pathname;r(c.name?`/mobile/${a["x-uid"]}`:`${d}/${a["x-uid"]}`)};return p.jsxs(m.SortableItem,{className:m.cx("tb-mobile-menu-item",m.css`
142
142
  width: 100%;
143
143
  background: var(--adm-color-background);
144
144
  > .adm-list-item {
@@ -155,7 +155,7 @@
155
155
  background: ${t.colorBgContainer};
156
156
  width: 100%;
157
157
  margin-bottom: var(--tb-spacing);
158
- `})),Qr=t=>{const{styles:e}=Wf(),n=m.useDesigner(),o=_.useFieldSchema(),{insertBeforeEnd:r,designable:s}=m.useDesignable(),{t:a}=m.useTranslation(),l=c=>{const u={page:il};return r({type:"void",title:c.name,"x-component":"MMenu.Item","x-component-props":c,"x-designer":"MMenu.Item.Designer",properties:u})};return p.jsx(m.SortableItem,{className:m.cx("tb-mobile-menu",e.mobileMenu),children:p.jsxs(qt,{children:[s&&p.jsx(qt.Item,{children:p.jsx(n,{})}),p.jsx(m.DndContext,{children:p.jsx(m.SchemaComponent,{onlyRenderProperties:!0,schema:o})}),s?p.jsx(qt.Item,{children:p.jsx(m.SchemaInitializerActionModal,{buttonText:a("Add menu item"),title:a("Add menu item"),schema:al,onSubmit:l})}):null]})})};Qr.Item=ll,Qr.Designer=Zf;const _o=(t,e)=>t.reduceProperties((o,r)=>o||r["x-component"]===e&&r),Uf=t=>_o(t,"Grid"),Hf=["Grid","Grid.Row"],qf=["Grid.Col"],Rr=(t,e)=>{if(!t)return 0;let n=0;return qf.includes(t["x-component"])&&(n+=1),n>=e||Hf.includes(t["x-component"])&&t.mapProperties(o=>{n+=Rr(o,e)}),n},Gf=()=>{const{t}=m.useTranslation(),e=_.useFieldSchema(),{onUpdateComponentProps:n}=$n(),o=_.useField(),{dn:r}=m.useDesignable(),s=R.useNavigate(),a=_o(e,"MTabBar"),l=a&&o.componentProps.tabBarEnabled!==!1,c={dn:r,field:o,fieldSchema:e};return p.jsx(m.SchemaSettingsDropdown,U(T({title:p.jsx(se.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)",width:"100%"},icon:p.jsx(Ve.MenuOutlined,{}),type:"dashed",children:t("App level Configuration")})},c),{children:p.jsx(m.SchemaSettingsSwitchItem,{checked:l,title:t("Enable TabBar"),onChange:u=>ae(null,null,function*(){if(u&&!a){const d=_o(e,"MPage");yield r.remove(d),yield r.insertBeforeEnd({type:"void","x-component":"MTabBar","x-component-props":{},name:"tabBar",properties:{[_.uid()]:{type:"void","x-component":"MTabBar.Item","x-designer":"MTabBar.Item.Designer","x-component-props":{icon:"HomeOutlined",title:lt("Untitled")},properties:{page:d.toJSON()}}}})}yield n({tabBarEnabled:u}),u===!1&&s("../")})})}))},Yf=m.createStyles(({token:t,css:e})=>({mobileContainer:e`
158
+ `})),Qr=t=>{const{styles:e}=Wf(),n=m.useDesigner(),o=_.useFieldSchema(),{insertBeforeEnd:r,designable:s}=m.useDesignable(),{t:a}=m.useTranslation(),l=c=>{const u={page:il};return r({type:"void",title:c.name,"x-component":"MMenu.Item","x-component-props":c,"x-designer":"MMenu.Item.Designer",properties:u})};return p.jsx(m.SortableItem,{className:m.cx("tb-mobile-menu",e.mobileMenu),children:p.jsxs(qt,{children:[s&&p.jsx(qt.Item,{children:p.jsx(n,{})}),p.jsx(m.DndContext,{children:p.jsx(m.SchemaComponent,{onlyRenderProperties:!0,schema:o})}),s?p.jsx(qt.Item,{children:p.jsx(m.SchemaInitializerActionModal,{buttonText:a("Add menu item"),title:a("Add menu item"),schema:al,onSubmit:l})}):null]})})};Qr.Item=ll,Qr.Designer=Zf;const _o=(t,e)=>t.reduceProperties((o,r)=>o||r["x-component"]===e&&r),Uf=t=>_o(t,"Grid"),Hf=["Grid","Grid.Row"],qf=["Grid.Col"],Rr=(t,e)=>{if(!t)return 0;let n=0;return qf.includes(t["x-component"])&&(n+=1),n>=e||Hf.includes(t["x-component"])&&t.mapProperties(o=>{n+=Rr(o,e)}),n},Gf=()=>{const{t}=m.useTranslation(),e=_.useFieldSchema(),{onUpdateComponentProps:n}=$n(),o=_.useField(),{dn:r}=m.useDesignable(),s=R.useNavigate(),a=_o(e,"MTabBar"),l=a&&o.componentProps.tabBarEnabled!==!1,c={dn:r,field:o,fieldSchema:e};return p.jsx(m.SchemaSettingsDropdown,U(T({title:p.jsx(se.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)",width:"100%"},icon:p.jsx(Ve.MenuOutlined,{}),type:"dashed",children:t("App level Configuration")})},c),{children:p.jsx(m.SchemaSettingsSwitchItem,{checked:l,title:t("Enable TabBar"),onChange:u=>le(null,null,function*(){if(u&&!a){const d=_o(e,"MPage");yield r.remove(d),yield r.insertBeforeEnd({type:"void","x-component":"MTabBar","x-component-props":{},name:"tabBar",properties:{[_.uid()]:{type:"void","x-component":"MTabBar.Item","x-designer":"MTabBar.Item.Designer","x-component-props":{icon:"HomeOutlined",title:lt("Untitled")},properties:{page:d.toJSON()}}}})}yield n({tabBarEnabled:u}),u===!1&&s("../")})})}))},Yf=m.createStyles(({token:t,css:e})=>({mobileContainer:e`
159
159
  --adm-color-primary: ${t.colorPrimary};
160
160
 
161
161
  & > .general-schema-designer > .general-schema-designer-icons {
@@ -196,7 +196,7 @@
196
196
  .adm-tab-bar-item-icon {
197
197
  height: auto;
198
198
  }
199
- `,icon:p.jsx(m.SchemaInitializerActionModal,{title:o("Add tab"),onSubmit:c,schema:ul})},"add-tab"):null]})})})};ts.Item=dl,ts.displayName="MTabBar";const Rf=t=>{var x,y,h,v,k;const{showBack:e}=t,{t:n}=m.useTranslation(),o=_.useField(),r=_.useFieldSchema(),{dn:s}=m.useDesignable(),{onUpdateComponentProps:a}=$n(),l=(x=r==null?void 0:r.properties)==null?void 0:x.header,c=!!l&&((y=o.componentProps)==null?void 0:y.headerEnabled)!==!1,u=(h=r==null?void 0:r.properties)==null?void 0:h.tabs,d=!!u&&((v=o.componentProps)==null?void 0:v.tabsEnabled)!==!1,f={dn:s,field:o,fieldSchema:r},b=(k=m.useApp().schemaSettingsManager.get("MPage:Dropdown"))==null?void 0:k.options;return p.jsxs(m.SchemaSettingsDropdown,U(T({title:p.jsx(se.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)",width:"100%"},icon:p.jsx(Ve.MenuOutlined,{}),type:"dashed",children:n("Page configuration")})},f),{children:[p.jsx(m.SchemaSettingsSwitchItem,{checked:c,title:n("Enable Header"),onChange:S=>ae(null,null,function*(){var C;l||(yield s.insertAfterBegin({type:"void",name:"header","x-component":"MHeader","x-designer":"MHeader.Designer","x-component-props":{title:(C=r.parent["x-component-props"])==null?void 0:C.name,showBack:e}})),yield a(U(T({},r["x-component-props"]),{headerEnabled:S}))})}),p.jsx(m.SchemaSettingsSwitchItem,{checked:d,title:n("Enable Tabs"),onChange:S=>ae(null,null,function*(){if(!u){const C=Uf(r);return yield s.remove(C),s.insertBeforeEnd({type:"void",name:"tabs","x-component":"Tabs","x-component-props":{},"x-initializer":"popup:addTab","x-initializer-props":{gridInitializer:"mobilePage:addBlock"},properties:{tab1:{type:"void",title:lt("Untitled"),"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer","x-component-props":{},properties:{grid:U(T({},C),{"x-uid":_.uid()})}}}})}yield a({tabsEnabled:S})})}),b.items.map(S=>{const C={name:S.name,type:"void","x-component":S.Component,"x-component-props":{fieldSchema:r}};return S.useVisible()&&p.jsx(m.SchemaComponent,{schema:C})})]}))},em=m.createStyles(({token:t,css:e})=>({globalActionCSS:e`
199
+ `,icon:p.jsx(m.SchemaInitializerActionModal,{title:o("Add tab"),onSubmit:c,schema:ul})},"add-tab"):null]})})})};ts.Item=dl,ts.displayName="MTabBar";const Rf=t=>{var x,y,h,v,k;const{showBack:e}=t,{t:n}=m.useTranslation(),o=_.useField(),r=_.useFieldSchema(),{dn:s}=m.useDesignable(),{onUpdateComponentProps:a}=$n(),l=(x=r==null?void 0:r.properties)==null?void 0:x.header,c=!!l&&((y=o.componentProps)==null?void 0:y.headerEnabled)!==!1,u=(h=r==null?void 0:r.properties)==null?void 0:h.tabs,d=!!u&&((v=o.componentProps)==null?void 0:v.tabsEnabled)!==!1,f={dn:s,field:o,fieldSchema:r},b=(k=m.useApp().schemaSettingsManager.get("MPage:Dropdown"))==null?void 0:k.options;return p.jsxs(m.SchemaSettingsDropdown,U(T({title:p.jsx(se.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)",width:"100%"},icon:p.jsx(Ve.MenuOutlined,{}),type:"dashed",children:n("Page configuration")})},f),{children:[p.jsx(m.SchemaSettingsSwitchItem,{checked:c,title:n("Enable Header"),onChange:S=>le(null,null,function*(){var C;l||(yield s.insertAfterBegin({type:"void",name:"header","x-component":"MHeader","x-designer":"MHeader.Designer","x-component-props":{title:(C=r.parent["x-component-props"])==null?void 0:C.name,showBack:e}})),yield a(U(T({},r["x-component-props"]),{headerEnabled:S}))})}),p.jsx(m.SchemaSettingsSwitchItem,{checked:d,title:n("Enable Tabs"),onChange:S=>le(null,null,function*(){if(!u){const C=Uf(r);return yield s.remove(C),s.insertBeforeEnd({type:"void",name:"tabs","x-component":"Tabs","x-component-props":{},"x-initializer":"popup:addTab","x-initializer-props":{gridInitializer:"mobilePage:addBlock"},properties:{tab1:{type:"void",title:lt("Untitled"),"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer","x-component-props":{},properties:{grid:U(T({},C),{"x-uid":_.uid()})}}}})}yield a({tabsEnabled:S})})}),b.items.map(S=>{const C={name:S.name,type:"void","x-component":S.Component,"x-component-props":{fieldSchema:r}};return S.useVisible()&&p.jsx(m.SchemaComponent,{schema:C})})]}))},em=m.createStyles(({token:t,css:e})=>({globalActionCSS:e`
200
200
  #tb-position-container > & {
201
201
  height: ${t.sizeXXL}px;
202
202
  border-top: 1px solid var(--tb-box-bg);
@@ -226,7 +226,7 @@
226
226
  }
227
227
  display: flex;
228
228
  flex-direction: column;
229
- `})),tm=t=>{var v,k,S,C,w,E;const{styles:e}=em(),n=m.useDesigner(),o=_.useField(),r=_.useFieldSchema(),[s,a]=R.useSearchParams(),l=(v=r.properties)==null?void 0:v.tabs,c=o.componentProps.headerEnabled!==!1,u=o.componentProps.tabsEnabled!==!1&&l,d=r["x-extend-components"],f=(k=r["x-component-props"])==null?void 0:k.enableSharePage;let g=_o(r,"MPage");if(!u&&!g&&l){const I=Object.values(l.properties||{}).sort((P,N)=>P["x-index"]-N["x-index"]);I.length!==0&&(g=I[0])}const b=r.root===r.parent;let x=!1;if(!l&&r.properties)x=Rr(r.properties.grid,2)===1;else if(s.has("tab")&&((S=l==null?void 0:l.properties)!=null&&S[s.get("tab")]))x=Rr((w=(C=l.properties[s.get("tab")])==null?void 0:C.properties)==null?void 0:w.grid,2)===1;else if(l!=null&&l.properties){const I=Object.values(l.properties).sort((P,N)=>P["x-index"]-N["x-index"])[0];I&&setTimeout(()=>{a([["tab",I.name.toString()]],{replace:!0})})}const y=i.useCallback(I=>{a([["tab",I]],{replace:!0})},[a]),h=i.useCallback(I=>p.jsx(m.TabsContextProvider,{children:x?p.jsx(m.ActionBarProvider,{container:(typeof I.active=="undefined"||I.active)&&b?document.getElementById("tb-position-container"):null,forceProps:{layout:"one-column",className:e.globalActionCSS},children:I.children}):I.children}),[x,b,e.globalActionCSS]);return p.jsxs(m.SortableItem,{eid:"tb-mobile-scroll-wrapper",className:m.cx("tb-mobile-page",e.mobilePage),children:[p.jsx(n,T({},r==null?void 0:r["x-designer-props"])),p.jsxs("div",{style:{paddingBottom:l?null:"var(--tb-spacing)"},className:m.cx("tb-mobile-page-header",e.mobilePageHeader,{[m.css`
229
+ `})),tm=t=>{var v,k,S,C,w,E;const{styles:e}=em(),n=m.useDesigner(),o=_.useField(),r=_.useFieldSchema(),[s,a]=R.useSearchParams(),l=(v=r.properties)==null?void 0:v.tabs,c=o.componentProps.headerEnabled,u=o.componentProps.tabsEnabled!==!1&&l,d=r["x-extend-components"]||{},f=(k=r["x-component-props"])==null?void 0:k.enableSharePage;let g=_o(r,"MPage");if(!u&&!g&&l){const I=Object.values(l.properties||{}).sort((P,N)=>P["x-index"]-N["x-index"]);I.length!==0&&(g=I[0])}const b=r.root===r.parent;let x=!1;if(!l&&r.properties)x=Rr(r.properties.grid,2)===1;else if(s.has("tab")&&((S=l==null?void 0:l.properties)!=null&&S[s.get("tab")]))x=Rr((w=(C=l.properties[s.get("tab")])==null?void 0:C.properties)==null?void 0:w.grid,2)===1;else if(l!=null&&l.properties){const I=Object.values(l.properties).sort((P,N)=>P["x-index"]-N["x-index"])[0];I&&setTimeout(()=>{a([["tab",I.name.toString()]],{replace:!0})})}const y=i.useCallback(I=>{a([["tab",I]],{replace:!0})},[a]),h=i.useCallback(I=>p.jsx(m.TabsContextProvider,{children:x?p.jsx(m.ActionBarProvider,{container:(typeof I.active=="undefined"||I.active)&&b?document.getElementById("tb-position-container"):null,forceProps:{layout:"one-column",className:e.globalActionCSS},children:I.children}):I.children}),[x,b,e.globalActionCSS]);return p.jsxs(m.SortableItem,{eid:"tb-mobile-scroll-wrapper",className:m.cx("tb-mobile-page",e.mobilePage),children:[p.jsx(n,T({},r==null?void 0:r["x-designer-props"])),p.jsxs("div",{style:{paddingBottom:l?null:"var(--tb-spacing)"},className:m.cx("tb-mobile-page-header",e.mobilePageHeader,{[m.css`
230
230
  & > .ant-tb-grid {
231
231
  margin-top: 14px;
232
232
  }
@@ -242,9 +242,9 @@
242
242
  bottom: 0;
243
243
  border: none;
244
244
  }
245
- `})),fl=t=>{var h,v;const e=_.useField(),{title:n=lt("Untitled"),showBack:o=!1}=T(T({},t),e==null?void 0:e.componentProps),r=m.useDesigner(),a=m.useCompile()(n),l=R.useNavigate(),{setTitle:c}=m.useDocumentTitle(),{token:u}=m.useToken(),{styles:d}=om(),g=_.useFieldSchema().parent,b=g["x-extend-components"],x=(h=g["x-component-props"])==null?void 0:h.enableSharePage;i.useEffect(()=>{c(a)},[a]);const y=i.useMemo(()=>({width:"100%",background:u.colorBgContainer}),[u.colorBgContainer]);return p.jsxs(m.SortableItem,{className:m.cx("tb-mobile-header"),style:y,children:[p.jsxs(xf,{backArrow:o,onBack:()=>l(-1),className:d.mobileNav,children:[p.jsx("div",{children:a}),p.jsx(p.Fragment,{children:(v=Object.values(b))==null?void 0:v.map(k=>{const S={type:"void",name:k.name,"x-component":k.component,"x-comonent-props":{}},C=U(T({},t),{isHeaderEnabled:!0,fieldSchema:g,title:n,enabledSharePage:x});return p.jsx(m.PageExtendComponentProvider,U(T({},C),{children:p.jsx(m.SchemaComponent,{schema:S})}))})})]}),p.jsx(r,{})]})};fl.Designer=nm;const rm=()=>{const{t}=m.useTranslation();return p.jsx(m.GeneralSchemaDesigner,{children:p.jsx(m.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:t("Delete settings block")},breakRemoveOn:{"x-component":"Grid"}},"remove")})},ml=()=>{const t=m.useDesigner();return p.jsxs(m.SortableItem,{className:m.cx("tb-mobile-setting",m.css`
245
+ `})),fl=t=>{var h,v;const e=_.useField(),{title:n=lt("Untitled"),showBack:o=!1}=T(T({},t),e==null?void 0:e.componentProps),r=m.useDesigner(),a=m.useCompile()(n),l=R.useNavigate(),{setTitle:c}=m.useDocumentTitle(),{token:u}=m.useToken(),{styles:d}=om(),g=_.useFieldSchema().parent,b=g["x-extend-components"]||{},x=(h=g["x-component-props"])==null?void 0:h.enableSharePage;i.useEffect(()=>{c(a)},[a]);const y=i.useMemo(()=>({width:"100%",background:u.colorBgContainer}),[u.colorBgContainer]);return p.jsxs(m.SortableItem,{className:m.cx("tb-mobile-header"),style:y,children:[p.jsxs(xf,{backArrow:o,onBack:()=>l(-1),className:d.mobileNav,children:[p.jsx("div",{children:a}),p.jsx(p.Fragment,{children:(v=Object.values(b))==null?void 0:v.map(k=>{const S={type:"void",name:k.name,"x-component":k.component,"x-comonent-props":{}},C=U(T({},t),{isHeaderEnabled:!0,fieldSchema:g,title:n,enabledSharePage:x});return p.jsx(m.PageExtendComponentProvider,U(T({},C),{children:p.jsx(m.SchemaComponent,{schema:S})}))})})]}),p.jsx(r,{})]})};fl.Designer=nm;const rm=()=>{const{t}=m.useTranslation();return p.jsx(m.GeneralSchemaDesigner,{children:p.jsx(m.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:t("Delete settings block")},breakRemoveOn:{"x-component":"Grid"}},"remove")})},ml=()=>{const t=m.useDesigner();return p.jsxs(m.SortableItem,{className:m.cx("tb-mobile-setting",m.css`
246
246
  margin-bottom: var(--tb-spacing);
247
- `),children:[p.jsx(t,{}),p.jsx(m.SettingsMenu,{redirectUrl:"/mobile"})]})};ml.Designer=rm;const sm=()=>{const t=m.useSchemaInitializerItem(),{insert:e}=m.useSchemaInitializer();return p.jsx(m.SchemaInitializerItem,T({icon:p.jsx(Ve.SettingOutlined,{}),onClick:()=>ae(null,null,function*(){e({type:"void","x-component":"MSettings","x-designer":"MSettings.Designer","x-component-props":{}})})},t))},im=new m.SchemaSettings({name:"MPage:Dropdown",items:[]}),am=["select","multipleSelect","radioGroup","checkboxGroup"],lm=["oho","obo","o2m","m2o","m2m"],cm=["datetime"],um=["input","textarea","phone","email","url","percent","password","color","icon","formula","sequence"],dm=["integer","number"],Ke=t=>t==="TabSearchCollapsibleInputItem"||t==="TabSearchCollapsibleInputMItem",it=t=>am.includes(t),ke=t=>lm.includes(t),Pt=t=>cm.includes(t),pl=t=>um.includes(t),fm=t=>dm.includes(t),hl=t=>J(t).format("YYYY-MM-DD"),Po=t=>JSON.stringify(J(t));function mm(t){const{field:e,label:n,isCanBeOptional:o,isCanBeRelated:r,collection:s}=t,{key:a,name:l,uiSchema:c,interface:u}=e,d=c==null?void 0:c.title,f=[o,r].indexOf(!0);return{name:a,title:d,Component:"ImageSearchItemIntializer",schema:{name:`${l}-choice`,fieldName:l,title:d,type:"void","x-toolbar":"ImageSearchItemToolbar","x-settings":"fieldSettings:component:ImageSearchItem","x-component":"ImageSearchItemView","x-component-props":{fieldNames:{label:n,imageShow:"image_show"},interface:u,collectionName:s==null?void 0:s.name,correlation:l},"x-use-component-props":["usePropsOptionalImageSearchItemField","usePropsRelatedImageSearchItemField"][f],properties:{}}}}const pm=new m.SchemaInitializer({name:"ImageSearchView:configureFields",title:'{{t("Configure fields")}}',style:{marginTop:16},icon:"SettingOutlined",items:[{name:"choicesFields",type:"itemGroup",title:'{{t("Choices fields")}}',useChildren:hm}]});function hm(){const t=m.useCollection(),e=t==null?void 0:t.fields,n=m.useCollectionManager();return m.useIsMobile(),e.map(r=>{var d,f;const{interface:s,target:a}=r,l=(f=(d=n.getCollection(a))==null?void 0:d.getPrimaryKey())!=null?f:"id",c=it(s),u=ke(s);return c||u?mm({collection:t,field:r,label:l,isCanBeOptional:c,isCanBeRelated:u}):null}).filter(Boolean)}function gm(t){const{collection:e,dataSource:n,blockType:o}=t;return{type:"void","x-decorator":"ImageSearchProvider","x-decorator-props":{collection:e,dataSource:n,blockType:o},"x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:filterCollapse","x-component":"CardItem","x-filter-targets":[],properties:{[Ue.uid()]:{type:"void","x-action":"imageSearch","x-initializer":"ImageSearchView:configureFields","x-component":"ImageSearchView"}}}}function vm(t){const{filterCollections:e}=t,n=m.useSchemaInitializerItem(),{insert:o}=m.useSchemaInitializer(),r=a=>ae(null,[a],function*({item:s}){const{dataSource:l,collectionName:c,name:u}=s,d=gm({dataSource:l,collection:c||u,blockType:"filter"});o(d)});return p.jsx(m.DataBlockInitializer,U(T({},n),{componentType:"ImageSearch",filter:e,onCreateBlockSchema:r}))}const bm=({collection:t,children:e})=>p.jsx(m.DataBlockProvider,{collection:t,children:e}),ym=()=>{const t=m.useDesigner(),e=_.useFieldSchema(),{render:n}=m.useSchemaInitializerRender(e["x-initializer"],e["x-initializer-props"]);return p.jsxs(p.Fragment,{children:[p.jsx(t,{}),p.jsx(_.RecursionField,{schema:e,onlyRenderProperties:!0}),p.jsx(i.Fragment,{children:n()})]})},xm=()=>{const t=_.useFieldSchema(),e=m.useCollection(),{getDataBlocks:n}=m.useFilterBlock();return i.useMemo(()=>e==null?void 0:e.getField(t.name),[e,t.name]),{onSelected:(r,s)=>{const{targets:a,uid:l}=m.findFilterTargets(t);n().forEach(c=>{var x,y,h;if(!a.find(v=>v.uid===c.uid))return;const d=`${l}${t.name}`,f=((x=c.service.params)==null?void 0:x[0])||{};let g=((h=(y=c.service.params)==null?void 0:y[1])==null?void 0:h.filters)||{};if(r.length)g[d]={[s]:r};else{if(c.dataLoadingMode==="manual")return c.clearData();delete g[d]}const b=m.mergeFilter([...Object.values(g),c.defaultFilter]);if(r.length===1&&r[0]==="all"){const v=Object.keys(g[d]);b.$and?(v.forEach(k=>{b.$and.forEach((S,C)=>{S[k]&&b.$and.splice(C,1)})}),b.$and=b.$and.filter(Boolean)):delete b[v[0]],g[d]={}}return g=Fe.omitBy(g,v=>v==null||Fe.isObject(v)&&Fe.isEmpty(v)),c.doFilter(U(T({},f),{page:1,filter:b}),{filters:g})})}}},Cm=()=>{const t=m.useSchemaInitializerItem(),{insert:e}=m.useSchemaInitializer(),{schema:n,title:o}=t,{exists:r,remove:s}=m.useCurrentSchema(n.name,"name",t.find,t.remove),a=()=>{if(r)return s();const{schema:l}=t,c=_.merge(n||{},l||{});e(c)};return p.jsx(m.SchemaInitializerSwitch,{checked:r,title:o,onClick:a})},Sm=new m.SchemaSettings({name:"fieldSettings:component:ImageSearchItem",items:[{name:"decoratorOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t}=m.useTranslation();return{title:t("Generic properties")}},useChildren(){return[{name:"setTheDataScope",Component:m.SchemaSettingsDataScope,useComponentProps(){var l,c;const t=_.useFieldSchema(),{form:e}=m.useFormBlockContext(),n=_.useField(),o=m.useCollectionManager(),s=m.useCollection().getField(t.name)||o.getCollectionField(t["x-collection-field"]),{dn:a}=m.useDesignable();return{collectionName:s==null?void 0:s.target,defaultFilter:((c=(l=t==null?void 0:t["x-component-props"])==null?void 0:l.params)==null?void 0:c.filter)||{},form:e,onSubmit:({filter:u})=>{var d;Fe.set(n.componentProps,"params",U(T({},(d=n.componentProps)==null?void 0:d.params),{filter:u})),t["x-component-props"].params=n.componentProps.params,a.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"]}})}}},useVisible(){const t=_.useFieldSchema();return!Ke(t["x-component"])}},{name:"titleField",type:"select",useComponentProps(){var g,b,x,y;const t=_.useFieldSchema(),{t:e}=m.useTranslation(),n=m.useCollectionManager(),o=m.useCollection(),r=(g=t["x-component-props"])==null?void 0:g.collectionName,s=(b=t["x-component-props"])==null?void 0:b.correlation,a=o.getField(t.fieldName)||n.getCollectionField(t["x-collection-field"])||n.getCollection(r+"."+s),l=m.useCompile(),{dn:c}=m.useDesignable(),d=(a!=null&&a.target?n.getCollectionFields(a==null?void 0:a.target):[]).filter(h=>!(h!=null&&h.target)&&h.type!=="boolean").map(h=>{var v;return{value:h==null?void 0:h.name,label:l((v=h==null?void 0:h.uiSchema)==null?void 0:v.title)||(h==null?void 0:h.name)}}),f=h=>{var S,C,w;const v={"x-uid":t["x-uid"]},k=U(T(T({},(C=(S=a==null?void 0:a.uiSchema)==null?void 0:S["x-component-props"])==null?void 0:C.fieldNames),(w=t["x-component-props"])==null?void 0:w.fieldNames),{label:h});t["x-component-props"]=t["x-component-props"]||{},t["x-component-props"].fieldNames=k,v["x-component-props"]=t["x-component-props"],c.emit("patch",{schema:v}),c.refresh()};return{key:"title-field",title:e("Title field"),options:d,value:(y=(x=t["x-component-props"])==null?void 0:x.fieldNames)==null?void 0:y.label,onChange:f}},useVisible(){var e;const t=_.useFieldSchema();return Ke(t["x-component"])||((e=t["x-component-props"])==null?void 0:e.correlation)}}]}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100,useComponentProps(){const{t}=m.useTranslation(),e=_.useFieldSchema(),{dn:n}=m.useDesignable();return{removeParentsIfNoChildren:!0,confirm:{title:t("Delete field")},breakRemoveOn:o=>(Ke(e["x-component"])&&(Object.values(o.properties).forEach(r=>{Ke(r["x-component"])&&r.name!==e.name&&delete o.properties[r.name]}),n.emit("patch",{schema:o})),o["x-component"]==="TabSearch")}}}]}),km=t=>p.jsx(m.SchemaToolbar,T({draggable:!0,showBorder:!0,showBackground:!0,initializer:!1},t)),wm=m.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,items:o,onSelect:r}=Em(t);return e?p.jsxs(m.SortableItem,{children:[p.jsx(n,{}),p.jsx(Ja,{onChange:r,children:o.map(({key:s,label:a,imageUrl:l})=>p.jsx(Ja.Tab,{title:"",description:p.jsx(Im,{srcUrl:l,label:a})},s))})]}):null},{displayName:"ImageSearchItemView"});function Em(t){var h,v;const{list:e,onSelected:n,valueKey:o,labelKey:r,filterKey:s}=t,a=_.useFieldSchema(),l=m.useCollection(),{t:c}=m.useTranslation(),u=i.useMemo(()=>l==null?void 0:l.getField(a.fieldName),[l,a.fieldName]),d=m.useDesigner(),f=o||(u==null?void 0:u.targetKey)||"id",g=r||((v=(h=a["x-component-props"])==null?void 0:h.fieldNames)==null?void 0:v.label)||f,b=k=>{var C;const S=((C=k.keyPath)==null?void 0:C[0])||k;n([S],s)},x={title:g,key:f},y=(e||[]).map(k=>{var $;const{type:S,["image_show"]:C,[x.title]:w,[x.key]:E}=k,I=(location==null?void 0:location.origin)||"",P=($=C==null?void 0:C[0])==null?void 0:$.url;let N=P!=null?P:"";return N.includes("http")||(N=`${I}${P}`),S==="all"?{label:c("AllProducts"),key:"all",imageUrl:N}:{label:w,key:E,imageUrl:N}});return{collectionField:u,Designer:d,items:y,onSelect:b}}const Im=t=>{const{srcUrl:e,label:n}=t;return p.jsxs("div",{className:m.css`
247
+ `),children:[p.jsx(t,{}),p.jsx(m.SettingsMenu,{redirectUrl:"/mobile"})]})};ml.Designer=rm;const sm=()=>{const t=m.useSchemaInitializerItem(),{insert:e}=m.useSchemaInitializer();return p.jsx(m.SchemaInitializerItem,T({icon:p.jsx(Ve.SettingOutlined,{}),onClick:()=>le(null,null,function*(){e({type:"void","x-component":"MSettings","x-designer":"MSettings.Designer","x-component-props":{}})})},t))},im=new m.SchemaSettings({name:"MPage:Dropdown",items:[]}),am=["select","multipleSelect","radioGroup","checkboxGroup"],lm=["oho","obo","o2m","m2o","m2m"],cm=["datetime"],um=["input","textarea","phone","email","url","percent","password","color","icon","formula","sequence"],dm=["integer","number"],Ke=t=>t==="TabSearchCollapsibleInputItem"||t==="TabSearchCollapsibleInputMItem",it=t=>am.includes(t),ke=t=>lm.includes(t),Pt=t=>cm.includes(t),pl=t=>um.includes(t),fm=t=>dm.includes(t),hl=t=>J(t).format("YYYY-MM-DD"),Po=t=>JSON.stringify(J(t));function mm(t){const{field:e,label:n,isCanBeOptional:o,isCanBeRelated:r,collection:s}=t,{key:a,name:l,uiSchema:c,interface:u}=e,d=c==null?void 0:c.title,f=[o,r].indexOf(!0);return{name:a,title:d,Component:"ImageSearchItemIntializer",schema:{name:`${l}-choice`,fieldName:l,title:d,type:"void","x-toolbar":"ImageSearchItemToolbar","x-settings":"fieldSettings:component:ImageSearchItem","x-component":"ImageSearchItemView","x-component-props":{fieldNames:{label:n,imageShow:"image_show"},interface:u,collectionName:s==null?void 0:s.name,correlation:l},"x-use-component-props":["usePropsOptionalImageSearchItemField","usePropsRelatedImageSearchItemField"][f],properties:{}}}}const pm=new m.SchemaInitializer({name:"ImageSearchView:configureFields",title:'{{t("Configure fields")}}',style:{marginTop:16},icon:"SettingOutlined",items:[{name:"choicesFields",type:"itemGroup",title:'{{t("Choices fields")}}',useChildren:hm}]});function hm(){const t=m.useCollection(),e=t==null?void 0:t.fields,n=m.useCollectionManager();return m.useIsMobile(),e.map(r=>{var d,f;const{interface:s,target:a}=r,l=(f=(d=n.getCollection(a))==null?void 0:d.getPrimaryKey())!=null?f:"id",c=it(s),u=ke(s);return c||u?mm({collection:t,field:r,label:l,isCanBeOptional:c,isCanBeRelated:u}):null}).filter(Boolean)}function gm(t){const{collection:e,dataSource:n,blockType:o}=t;return{type:"void","x-decorator":"ImageSearchProvider","x-decorator-props":{collection:e,dataSource:n,blockType:o},"x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:filterCollapse","x-component":"CardItem","x-filter-targets":[],properties:{[Ue.uid()]:{type:"void","x-action":"imageSearch","x-initializer":"ImageSearchView:configureFields","x-component":"ImageSearchView"}}}}function vm(t){const{filterCollections:e}=t,n=m.useSchemaInitializerItem(),{insert:o}=m.useSchemaInitializer(),r=a=>le(null,[a],function*({item:s}){const{dataSource:l,collectionName:c,name:u}=s,d=gm({dataSource:l,collection:c||u,blockType:"filter"});o(d)});return p.jsx(m.DataBlockInitializer,U(T({},n),{componentType:"ImageSearch",filter:e,onCreateBlockSchema:r}))}const bm=({collection:t,children:e})=>p.jsx(m.DataBlockProvider,{collection:t,children:e}),ym=()=>{const t=m.useDesigner(),e=_.useFieldSchema(),{render:n}=m.useSchemaInitializerRender(e["x-initializer"],e["x-initializer-props"]);return p.jsxs(p.Fragment,{children:[p.jsx(t,{}),p.jsx(_.RecursionField,{schema:e,onlyRenderProperties:!0}),p.jsx(i.Fragment,{children:n()})]})},xm=()=>{const t=_.useFieldSchema(),e=m.useCollection(),{getDataBlocks:n}=m.useFilterBlock();return i.useMemo(()=>e==null?void 0:e.getField(t.name),[e,t.name]),{onSelected:(r,s)=>{const{targets:a,uid:l}=m.findFilterTargets(t);n().forEach(c=>{var x,y,h;if(!a.find(v=>v.uid===c.uid))return;const d=`${l}${t.name}`,f=((x=c.service.params)==null?void 0:x[0])||{};let g=((h=(y=c.service.params)==null?void 0:y[1])==null?void 0:h.filters)||{};if(r.length)g[d]={[s]:r};else{if(c.dataLoadingMode==="manual")return c.clearData();delete g[d]}const b=m.mergeFilter([...Object.values(g),c.defaultFilter]);if(r.length===1&&r[0]==="all"){const v=Object.keys(g[d]);b.$and?(v.forEach(k=>{b.$and.forEach((S,C)=>{S[k]&&b.$and.splice(C,1)})}),b.$and=b.$and.filter(Boolean)):delete b[v[0]],g[d]={}}return g=Fe.omitBy(g,v=>v==null||Fe.isObject(v)&&Fe.isEmpty(v)),c.doFilter(U(T({},f),{page:1,filter:b}),{filters:g})})}}},Cm=()=>{const t=m.useSchemaInitializerItem(),{insert:e}=m.useSchemaInitializer(),{schema:n,title:o}=t,{exists:r,remove:s}=m.useCurrentSchema(n.name,"name",t.find,t.remove),a=()=>{if(r)return s();const{schema:l}=t,c=_.merge(n||{},l||{});e(c)};return p.jsx(m.SchemaInitializerSwitch,{checked:r,title:o,onClick:a})},Sm=new m.SchemaSettings({name:"fieldSettings:component:ImageSearchItem",items:[{name:"decoratorOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t}=m.useTranslation();return{title:t("Generic properties")}},useChildren(){return[{name:"setTheDataScope",Component:m.SchemaSettingsDataScope,useComponentProps(){var l,c;const t=_.useFieldSchema(),{form:e}=m.useFormBlockContext(),n=_.useField(),o=m.useCollectionManager(),s=m.useCollection().getField(t.name)||o.getCollectionField(t["x-collection-field"]),{dn:a}=m.useDesignable();return{collectionName:s==null?void 0:s.target,defaultFilter:((c=(l=t==null?void 0:t["x-component-props"])==null?void 0:l.params)==null?void 0:c.filter)||{},form:e,onSubmit:({filter:u})=>{var d;Fe.set(n.componentProps,"params",U(T({},(d=n.componentProps)==null?void 0:d.params),{filter:u})),t["x-component-props"].params=n.componentProps.params,a.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"]}})}}},useVisible(){const t=_.useFieldSchema();return!Ke(t["x-component"])}},{name:"titleField",type:"select",useComponentProps(){var g,b,x,y;const t=_.useFieldSchema(),{t:e}=m.useTranslation(),n=m.useCollectionManager(),o=m.useCollection(),r=(g=t["x-component-props"])==null?void 0:g.collectionName,s=(b=t["x-component-props"])==null?void 0:b.correlation,a=o.getField(t.fieldName)||n.getCollectionField(t["x-collection-field"])||n.getCollection(r+"."+s),l=m.useCompile(),{dn:c}=m.useDesignable(),d=(a!=null&&a.target?n.getCollectionFields(a==null?void 0:a.target):[]).filter(h=>!(h!=null&&h.target)&&h.type!=="boolean").map(h=>{var v;return{value:h==null?void 0:h.name,label:l((v=h==null?void 0:h.uiSchema)==null?void 0:v.title)||(h==null?void 0:h.name)}}),f=h=>{var S,C,w;const v={"x-uid":t["x-uid"]},k=U(T(T({},(C=(S=a==null?void 0:a.uiSchema)==null?void 0:S["x-component-props"])==null?void 0:C.fieldNames),(w=t["x-component-props"])==null?void 0:w.fieldNames),{label:h});t["x-component-props"]=t["x-component-props"]||{},t["x-component-props"].fieldNames=k,v["x-component-props"]=t["x-component-props"],c.emit("patch",{schema:v}),c.refresh()};return{key:"title-field",title:e("Title field"),options:d,value:(y=(x=t["x-component-props"])==null?void 0:x.fieldNames)==null?void 0:y.label,onChange:f}},useVisible(){var e;const t=_.useFieldSchema();return Ke(t["x-component"])||((e=t["x-component-props"])==null?void 0:e.correlation)}}]}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100,useComponentProps(){const{t}=m.useTranslation(),e=_.useFieldSchema(),{dn:n}=m.useDesignable();return{removeParentsIfNoChildren:!0,confirm:{title:t("Delete field")},breakRemoveOn:o=>(Ke(e["x-component"])&&(Object.values(o.properties).forEach(r=>{Ke(r["x-component"])&&r.name!==e.name&&delete o.properties[r.name]}),n.emit("patch",{schema:o})),o["x-component"]==="TabSearch")}}}]}),km=t=>p.jsx(m.SchemaToolbar,T({draggable:!0,showBorder:!0,showBackground:!0,initializer:!1},t)),wm=m.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,items:o,onSelect:r}=Em(t);return e?p.jsxs(m.SortableItem,{children:[p.jsx(n,{}),p.jsx(Ja,{onChange:r,children:o.map(({key:s,label:a,imageUrl:l})=>p.jsx(Ja.Tab,{title:"",description:p.jsx(Im,{srcUrl:l,label:a})},s))})]}):null},{displayName:"ImageSearchItemView"});function Em(t){var h,v;const{list:e,onSelected:n,valueKey:o,labelKey:r,filterKey:s}=t,a=_.useFieldSchema(),l=m.useCollection(),{t:c}=m.useTranslation(),u=i.useMemo(()=>l==null?void 0:l.getField(a.fieldName),[l,a.fieldName]),d=m.useDesigner(),f=o||(u==null?void 0:u.targetKey)||"id",g=r||((v=(h=a["x-component-props"])==null?void 0:h.fieldNames)==null?void 0:v.label)||f,b=k=>{var C;const S=((C=k.keyPath)==null?void 0:C[0])||k;n([S],s)},x={title:g,key:f},y=(e||[]).map(k=>{var $;const{type:S,["image_show"]:C,[x.title]:w,[x.key]:E}=k,I=(location==null?void 0:location.origin)||"",P=($=C==null?void 0:C[0])==null?void 0:$.url;let N=P!=null?P:"";return N.includes("http")||(N=`${I}${P}`),S==="all"?{label:c("AllProducts"),key:"all",imageUrl:N}:{label:w,key:E,imageUrl:N}});return{collectionField:u,Designer:d,items:y,onSelect:b}}const Im=t=>{const{srcUrl:e,label:n}=t;return p.jsxs("div",{className:m.css`
248
248
  display: 'flex';
249
249
  flex-direction: 'column';
250
250
  width: '100%';
@@ -264,7 +264,7 @@
264
264
  align-items: center;
265
265
  font-size: 25px;
266
266
  user-select: none;
267
- `,Mm=()=>{const{insert:t}=m.useSchemaInitializer(),e=m.useCollectionManager(),n=m.useSchemaInitializerItem(),o=s=>ae(null,[s],function*({item:r}){const a=e.getCollection(r.name),l=a.fields.find(u=>u.interface==="attachment");if(!l){Jr.show({content:"当前数据源暂无可加载数据"});return}const c={type:"void",name:r.name,title:a.title,"x-decorator":"DataBlockProvider","x-decorator-props":{collection:r.name,dataSource:"main"},"x-toolbar":"BlockSchemaToolbar","x-settings":"SwiperFieldSettings","x-component":"SwiperBlock","x-use-component-props":"useSwiperBlockProps","x-component-props":{resourceName:r.name,fieldValue:l.name}};t(c)});return p.jsx(m.DataBlockInitializer,U(T({},n),{icon:"swiper-block",componentType:"Swiper",onCreateBlockSchema:o}))},Nm=new m.SchemaSettings({name:"SwiperFieldSettings",items:[{name:"setTheDataScope",Component:m.SchemaSettingsDataScope,useComponentProps(){var s,a;const t=_.useFieldSchema(),{form:e}=m.useFormBlockContext(),n=_.useField(),o=m.useCollection(),{dn:r}=m.useDesignable();return{collectionName:o.getOptions().name,defaultFilter:((a=(s=t==null?void 0:t["x-component-props"])==null?void 0:s.params)==null?void 0:a.filter)||{},form:e,onSubmit:({filter:l})=>{var c;Fe.set(n.componentProps,"params",U(T({},(c=n.componentProps)==null?void 0:c.params),{filter:l})),t["x-component-props"].params=n.componentProps.params,r.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"]}})}}}},{name:"setShowField",type:"select",useComponentProps(){const t=_.useFieldSchema(),{t:e}=m.useTranslation(),n=m.useCollection(),o=m.useCompile(),{dn:r}=m.useDesignable(),s=n.fields.map(l=>{var c;if((l==null?void 0:l.interface)==="attachment")return{label:o((c=l.uiSchema)==null?void 0:c.title)||l.name,value:l.name}}).filter(Boolean),a=l=>{const c={"x-uid":t["x-uid"]};t["x-component-props"].fieldValue=l,c["x-component-props"]=t["x-component-props"],r.emit("patch",{schema:c}),r.refresh()};return{title:e("Set show field"),options:s,value:t["x-component-props"].fieldValue,onChange:a}}},{name:"setFieldCount",type:"select",useComponentProps(){const t=_.useFieldSchema(),{dn:e}=m.useDesignable(),{t:n}=m.useTranslation(),o=[];for(let s=1;s<=20;s++)o.push({label:s,value:s});const r=s=>{t["x-component-props"].pageSize=s,e.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"]}}),e.refresh()};return{title:n("Set field count"),options:o,value:t["x-component-props"].pageSize||5,onChange:r}}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100}]}),gl=()=>{const t=R.useParams(),{name:e,collection:n,field:o,fieldParams:r}=t,s={};return s[o]=r,p.jsx(m.DataBlockProvider,{collection:n,dataSource:"main",children:p.jsx(m.CollectionRecordProvider,{record:s,parentRecord:null,children:p.jsx(m.RemoteSchemaComponent,{uid:e})})})},Om=()=>{const t=_.useFieldSchema(),e=R.useNavigate(),n=t.properties?Object.values(t.properties):null,{insertAdjacent:o}=m.useDesignable(),s=m.useCollection().targetKey||"id",{filter:a,pageSize:l,fieldValue:c,resourceName:u}=t["x-component-props"],{data:d,run:f}=m.useRequest({resource:u+":list",params:{filter:a,pageSize:l||5,appends:c?[c]:[]}});return i.useEffect(()=>{f()},[a,l,c]),{data:d,fieldValue:c,changeNav:b=>{if(b.isIdentical){const x=n==null?void 0:n.find(y=>y["x-component-props"].fixedComponent);x?e(`/mobile/${x["x-uid"]}/image/${u}/${s}/${b[s]}`):o("beforeEnd",vl(b,"fixedComponent"),{onSuccess(y){y&&e(`/mobile/${y["x-uid"]}`)}})}else{const x=n==null?void 0:n.find(y=>y.name===String(b.id));x?e(`/mobile/${x["x-uid"]}`):o("beforeEnd",vl(b),{onSuccess(y){y&&e(`/mobile/${y["x-uid"]}`)}})}}}},vl=(t,e)=>({type:"void",title:t.title,name:t.id,"x-component":"MMenu.Item","x-component-props":{imgItem:t,fixedComponent:e},"x-designer":"MMenu.Item.Designer",properties:{page:{type:"void","x-component":"MPage","x-designer":"MPage.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"mobilePage:addBlock"}}}}}),Am=()=>{const{fieldSchema:t,Designer:e,render:n,filterProperties:o}=Dm();return p.jsxs(p.Fragment,{children:[p.jsx(e,{}),p.jsx(_.RecursionField,{schema:t,onlyRenderProperties:!0,filterProperties:o}),p.jsx(i.Fragment,{children:n()})]})},Dm=()=>{const t=m.useDesigner(),e=_.useFieldSchema(),{render:n}=m.useSchemaInitializerRender(e["x-initializer"],e["x-initializer-props"]);return{fieldSchema:e,Designer:t,render:n,filterProperties:r=>Ke(r["x-component"])?r===Object.values(r.parent.properties).filter(s=>Ke(s["x-component"]))[0]:!0}},bl=t=>{const{onSelected:e}=$o(),n=_.useFieldSchema(),o=m.useCollection(),r=m.useCollectionManager(),{dn:s}=m.useDesignable(),[a,l]=i.useState(!1),c=i.useMemo(()=>o==null?void 0:o.getField(n.fieldName),[o,n.fieldName]),u=n.parent.properties,d=m.useDesigner(),[f,g]=i.useState(n.fieldName),[b,x]=i.useState(n["x-component-props"].interface),y=Pt(b)?Po(J(new Date).startOf("date"))+"&"+Po(J(new Date).endOf("date")):"",[h,v]=i.useState(y),k=Object.values(u).map(P=>{if(Ke(P["x-component"]))return{label:P.title,value:P.fieldName,interface:P["x-component-props"].interface}}).filter(Boolean),S=P=>{let N,$=`${f}.$includes`;const A=fm(b);if(A&&($=`${f}.$notEmpty`),Pt(b)&&(N=P.split("&").map(V=>JSON.parse(V)),$=`${f}.$dateBetween`),ke(b)){const V=n["x-component-props"].fieldNames.label;$=`${n["x-component-props"].correlation}.${V}.$includes`}e(N||[P],$,{canBeCalculatedField:A,customLabelKey:f,needSort:a})};return{collectionField:c,Designer:d,options:k,value:h,onSelectChange:P=>{const N=Object.values(u).find($=>$.fieldName===P)["x-component-props"].interface;if(ke(N)){const $=r.getCollection(o.name+"."+P).titleField;n["x-component-props"].correlation=P,n["x-component-props"].fieldNames={label:$},s.emit("patch",{schema:{"u-id":n["u-id"],"x-component-props":n["x-component-props"]}}),s.refresh()}x(N),Pt(N)?v(Po(new Date)+"&"+Po(new Date)):v(""),g(P)},onInputChange:P=>{var A,V;const N={current:null};clearTimeout(N.current);const $=(V=(A=P.target)==null?void 0:A.value)!=null?V:P;v($),$===""&&(N.current=setTimeout(()=>{S($)},2e3))},onButtonClick:()=>{S(h)},customLabelKey:f,fieldInterface:b,onDateClick:P=>{S(P)},needSort:a,setNeedSort:l}},Lm=t=>{const{options:e,onChange:n}=t;return e.length>1?p.jsxs(se.Col,{flex:1,style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[p.jsx(se.Select,{style:{width:"100%"},options:e,defaultValue:e[0].value,onChange:n}),p.jsx(se.Divider,{type:"vertical",style:{height:"70%"}})]}):null},Bm=t=>{const{options:e,value:n,onChange:o}=t,{t:r}=m.useTranslation();return p.jsx(se.Col,{flex:e.length>1?3:4,children:p.jsx(se.Input,{placeholder:r("Please enter search content"),value:n,onChange:o})})},Vm=t=>{const{options:e,value:n,onInputChange:o}=t,r=n.split("&"),s=a=>{const l=`"${a[0]}"&"${a[1]}"`;o(l)};return p.jsx(se.Col,{flex:e.length>1?3:4,children:p.jsx(Ue.DatePicker.RangePicker,{className:m.css`
267
+ `,Mm=()=>{const{insert:t}=m.useSchemaInitializer(),e=m.useCollectionManager(),n=m.useSchemaInitializerItem(),o=s=>le(null,[s],function*({item:r}){const a=e.getCollection(r.name),l=a.fields.find(u=>u.interface==="attachment");if(!l){Jr.show({content:"当前数据源暂无可加载数据"});return}const c={type:"void",name:r.name,title:a.title,"x-decorator":"DataBlockProvider","x-decorator-props":{collection:r.name,dataSource:"main"},"x-toolbar":"BlockSchemaToolbar","x-settings":"SwiperFieldSettings","x-component":"SwiperBlock","x-use-component-props":"useSwiperBlockProps","x-component-props":{resourceName:r.name,fieldValue:l.name}};t(c)});return p.jsx(m.DataBlockInitializer,U(T({},n),{icon:"swiper-block",componentType:"Swiper",onCreateBlockSchema:o}))},Nm=new m.SchemaSettings({name:"SwiperFieldSettings",items:[{name:"setTheDataScope",Component:m.SchemaSettingsDataScope,useComponentProps(){var s,a;const t=_.useFieldSchema(),{form:e}=m.useFormBlockContext(),n=_.useField(),o=m.useCollection(),{dn:r}=m.useDesignable();return{collectionName:o.getOptions().name,defaultFilter:((a=(s=t==null?void 0:t["x-component-props"])==null?void 0:s.params)==null?void 0:a.filter)||{},form:e,onSubmit:({filter:l})=>{var c;Fe.set(n.componentProps,"params",U(T({},(c=n.componentProps)==null?void 0:c.params),{filter:l})),t["x-component-props"].params=n.componentProps.params,r.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"]}})}}}},{name:"setShowField",type:"select",useComponentProps(){const t=_.useFieldSchema(),{t:e}=m.useTranslation(),n=m.useCollection(),o=m.useCompile(),{dn:r}=m.useDesignable(),s=n.fields.map(l=>{var c;if((l==null?void 0:l.interface)==="attachment")return{label:o((c=l.uiSchema)==null?void 0:c.title)||l.name,value:l.name}}).filter(Boolean),a=l=>{const c={"x-uid":t["x-uid"]};t["x-component-props"].fieldValue=l,c["x-component-props"]=t["x-component-props"],r.emit("patch",{schema:c}),r.refresh()};return{title:e("Set show field"),options:s,value:t["x-component-props"].fieldValue,onChange:a}}},{name:"setFieldCount",type:"select",useComponentProps(){const t=_.useFieldSchema(),{dn:e}=m.useDesignable(),{t:n}=m.useTranslation(),o=[];for(let s=1;s<=20;s++)o.push({label:s,value:s});const r=s=>{t["x-component-props"].pageSize=s,e.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"]}}),e.refresh()};return{title:n("Set field count"),options:o,value:t["x-component-props"].pageSize||5,onChange:r}}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100}]}),gl=()=>{const t=R.useParams(),{name:e,collection:n,field:o,fieldParams:r}=t,s={};return s[o]=r,p.jsx(m.DataBlockProvider,{collection:n,dataSource:"main",children:p.jsx(m.CollectionRecordProvider,{record:s,parentRecord:null,children:p.jsx(m.RemoteSchemaComponent,{uid:e})})})},Om=()=>{const t=_.useFieldSchema(),e=R.useNavigate(),n=t.properties?Object.values(t.properties):null,{insertAdjacent:o}=m.useDesignable(),s=m.useCollection().targetKey||"id",{filter:a,pageSize:l,fieldValue:c,resourceName:u}=t["x-component-props"],{data:d,run:f}=m.useRequest({resource:u+":list",params:{filter:a,pageSize:l||5,appends:c?[c]:[]}});return i.useEffect(()=>{f()},[a,l,c]),{data:d,fieldValue:c,changeNav:b=>{if(b.isIdentical){const x=n==null?void 0:n.find(y=>y["x-component-props"].fixedComponent);x?e(`/mobile/${x["x-uid"]}/image/${u}/${s}/${b[s]}`):o("beforeEnd",vl(b,"fixedComponent"),{onSuccess(y){y&&e(`/mobile/${y["x-uid"]}`)}})}else{const x=n==null?void 0:n.find(y=>y.name===String(b.id));x?e(`/mobile/${x["x-uid"]}`):o("beforeEnd",vl(b),{onSuccess(y){y&&e(`/mobile/${y["x-uid"]}`)}})}}}},vl=(t,e)=>({type:"void",title:t.title,name:t.id,"x-component":"MMenu.Item","x-component-props":{imgItem:t,fixedComponent:e},"x-designer":"MMenu.Item.Designer",properties:{page:{type:"void","x-component":"MPage","x-designer":"MPage.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"mobilePage:addBlock"}}}}}),Am=()=>{const{fieldSchema:t,Designer:e,render:n,filterProperties:o}=Dm();return p.jsxs(p.Fragment,{children:[p.jsx(e,{}),p.jsx(_.RecursionField,{schema:t,onlyRenderProperties:!0,filterProperties:o}),p.jsx(i.Fragment,{children:n()})]})},Dm=()=>{const t=m.useDesigner(),e=_.useFieldSchema(),{render:n}=m.useSchemaInitializerRender(e["x-initializer"],e["x-initializer-props"]);return{fieldSchema:e,Designer:t,render:n,filterProperties:r=>Ke(r["x-component"])?r===Object.values(r.parent.properties).filter(s=>Ke(s["x-component"]))[0]:!0}},bl=t=>{const{onSelected:e}=$o(),n=_.useFieldSchema(),o=m.useCollection(),r=m.useCollectionManager(),{dn:s}=m.useDesignable(),[a,l]=i.useState(!1),c=i.useMemo(()=>o==null?void 0:o.getField(n.fieldName),[o,n.fieldName]),u=n.parent.properties,d=m.useDesigner(),[f,g]=i.useState(n.fieldName),[b,x]=i.useState(n["x-component-props"].interface),y=Pt(b)?Po(J(new Date).startOf("date"))+"&"+Po(J(new Date).endOf("date")):"",[h,v]=i.useState(y),k=Object.values(u).map(P=>{if(Ke(P["x-component"]))return{label:P.title,value:P.fieldName,interface:P["x-component-props"].interface}}).filter(Boolean),S=P=>{let N,$=`${f}.$includes`;const A=fm(b);if(A&&($=`${f}.$notEmpty`),Pt(b)&&(N=P.split("&").map(V=>JSON.parse(V)),$=`${f}.$dateBetween`),ke(b)){const V=n["x-component-props"].fieldNames.label;$=`${n["x-component-props"].correlation}.${V}.$includes`}e(N||[P],$,{canBeCalculatedField:A,customLabelKey:f,needSort:a})};return{collectionField:c,Designer:d,options:k,value:h,onSelectChange:P=>{const N=Object.values(u).find($=>$.fieldName===P)["x-component-props"].interface;if(ke(N)){const $=r.getCollection(o.name+"."+P).titleField;n["x-component-props"].correlation=P,n["x-component-props"].fieldNames={label:$},s.emit("patch",{schema:{"u-id":n["u-id"],"x-component-props":n["x-component-props"]}}),s.refresh()}x(N),Pt(N)?v(Po(new Date)+"&"+Po(new Date)):v(""),g(P)},onInputChange:P=>{var A,V;const N={current:null};clearTimeout(N.current);const $=(V=(A=P.target)==null?void 0:A.value)!=null?V:P;v($),$===""&&(N.current=setTimeout(()=>{S($)},2e3))},onButtonClick:()=>{S(h)},customLabelKey:f,fieldInterface:b,onDateClick:P=>{S(P)},needSort:a,setNeedSort:l}},Lm=t=>{const{options:e,onChange:n}=t;return e.length>1?p.jsxs(se.Col,{flex:1,style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[p.jsx(se.Select,{style:{width:"100%"},options:e,defaultValue:e[0].value,onChange:n}),p.jsx(se.Divider,{type:"vertical",style:{height:"70%"}})]}):null},Bm=t=>{const{options:e,value:n,onChange:o}=t,{t:r}=m.useTranslation();return p.jsx(se.Col,{flex:e.length>1?3:4,children:p.jsx(se.Input,{placeholder:r("Please enter search content"),value:n,onChange:o})})},Vm=t=>{const{options:e,value:n,onInputChange:o}=t,r=n.split("&"),s=a=>{const l=`"${a[0]}"&"${a[1]}"`;o(l)};return p.jsx(se.Col,{flex:e.length>1?3:4,children:p.jsx(Ue.DatePicker.RangePicker,{className:m.css`
268
268
  width: 100%;
269
269
  border: none;
270
270
  input {
@@ -274,7 +274,7 @@
274
274
  display: flex;
275
275
  flex-direction: row;
276
276
  align-items: center;
277
- `,children:p.jsxs(Je,{columns:4,style:{flex:1,display:"flex",flexDirection:"row",justifyContent:"flex-start",padding:"10px",backgroundColor:"#f9f9f9",borderRadius:"5px",margin:"5px 0 0 0"},children:[p.jsx(jm,{options:o,onChange:s,customLabelKey:c}),Pt(u)?p.jsx(Km,{value:r,onChange:d,onInputChange:a,options:o}):p.jsxs(p.Fragment,{children:[p.jsx(Wm,{options:o,value:r,onChange:a}),p.jsx(Um,{onClick:l})]})]})})]}):null},{displayName:"TabSearchCollapsibleInputItem"}),qm=m.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,items:o,onSelect:r}=yl(t);return e?p.jsxs(m.SortableItem,{children:[p.jsx(n,{}),p.jsx(fo,{style:{"--title-font-size":"12px",color:"#a5a5a5"},onChange:r,children:o.map(s=>p.jsx(fo.Tab,{title:s.label},s.key))})]}):null},{displayName:"TabSearchFieldItem"}),yl=t=>{var h,v;const{list:e,onSelected:n,valueKey:o,labelKey:r,filterKey:s}=t,{t:a}=m.useTranslation(),l=_.useFieldSchema(),c=m.useCollection(),u=i.useMemo(()=>c==null?void 0:c.getField(l.fieldName),[c,l.fieldName]),d=m.useDesigner(),f=o||(u==null?void 0:u.targetKey)||"id",g=r||((v=(h=l["x-component-props"])==null?void 0:h.fieldNames)==null?void 0:v.label)||f,b=k=>{var C;const S=((C=k.keyPath)==null?void 0:C[0])||k;n([S],s)},x={title:g,key:f},y=[];return e!=null&&e.length&&e.forEach(k=>{y.push({label:k[x.title],key:k[x.key]})}),y==null||y.unshift({label:a("all"),key:"all"}),{collectionField:u,Designer:d,items:y,onSelect:b}},Gm=m.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,items:o,onSelect:r}=yl(t);return e?p.jsxs(m.SortableItem,{children:[p.jsx(n,{}),p.jsx(se.ConfigProvider,{theme:{components:{Menu:{itemColor:"#a5a5a5",itemHoverColor:"#1d2ffff18"}}},children:p.jsx(se.Menu,{items:o,mode:"horizontal",onSelect:r,defaultSelectedKeys:["all"]})})]}):null},{displayName:"TabSearchFieldItem"}),Ym=()=>{var u,d,f,g,b,x;const t=_.useFieldSchema(),e=m.useCollection(),n=((u=t["x-component-props"])==null?void 0:u.currentCollection)||(e==null?void 0:e.name),o=Xm(n),r=m.useCollectionManager(),s=i.useMemo(()=>e==null?void 0:e.getField(t.fieldName),[e,t.fieldName]),{onSelected:a}=$o(),l={list:null,valueKey:"",labelKey:"",filterKey:""};if(!e)return;l.valueKey=s!=null&&s.target?(d=r.getCollection(s.target))==null?void 0:d.getPrimaryKey():"id",l.labelKey=((g=(f=t["x-component-props"])==null?void 0:f.fieldNames)==null?void 0:g.label)||l.valueKey;const c=(b=t["x-component-props"])==null?void 0:b.interface;if(it(c)){const y=o.find(k=>k.name===t.fieldName.split(".").findLast(Boolean)),h={select:"$in",multipleSelect:"$anyOf",checkboxGroup:"$anyOf",radioGroup:"$in"};t.fieldName;const v=((x=y==null?void 0:y.uiSchema)==null?void 0:x.enum)||[];l.valueKey="value",l.labelKey="label",l.list=v,l.filterKey=`${t.fieldName}.${h[y==null?void 0:y.interface]}`}return{list:l.list,valueKey:l.valueKey,labelKey:l.labelKey,onSelected:a,filterKey:l.filterKey}},Xm=t=>{var r;const n=m.useCollectionManager().getCollection(t);return((r=n==null?void 0:n.fields)!=null?r:[]).filter(s=>it(s.interface)&&s.uiSchema.enum)},Jm=()=>{var x,y,h,v,k;const t=_.useFieldSchema(),e=m.useCollection(),n=_.useField(),o={dataSource:"main"},r=m.useDataSourceHeaders(o==null?void 0:o.dataSource),s=m.useCollectionManager(),a=i.useMemo(()=>e==null?void 0:e.getField(t.fieldName),[e,t.fieldName]),c=t["x-component-props"].currentCollection===(e==null?void 0:e.name)?a==null?void 0:a.name:t.fieldName,u=t["x-component-props"].interface,d={list:null,valueKey:"",labelKey:"",filterKey:""},{onSelected:f}=$o();d.valueKey=a!=null&&a.target?(x=s.getCollection(a.target))==null?void 0:x.getPrimaryKey():"id",d.labelKey=((h=(y=t["x-component-props"])==null?void 0:y.fieldNames)==null?void 0:h.label)||d.valueKey;const{data:g,run:b}=m.useRequest({headers:r,resource:a==null?void 0:a.target,action:"list",params:T({fields:[d.labelKey,d.valueKey],pageSize:200,page:1},(v=n.componentProps)==null?void 0:v.params)},{manual:!0,debounceWait:300});return i.useEffect(()=>{ke(u)&&(a!=null&&a.target)&&b()},[d.labelKey,d.valueKey,JSON.stringify(((k=n.componentProps)==null?void 0:k.params)||{}),ke(u)]),a?(d.filterKey=`${c}.${d.valueKey}.$in`,d.list=(g==null?void 0:g.data)||[],{list:d.list,valueKey:d.valueKey,labelKey:d.labelKey,onSelected:f,filterKey:d.filterKey}):{}},Qm=t=>{const{collectionName:e,dataSource:n,blockType:o}=t;return{type:"void","x-decorator":"TabSearchProvider","x-decorator-props":{collection:e,dataSource:n,blockType:o},"x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:filterCollapse","x-component":"CardItem","x-filter-targets":[],properties:{[Ue.uid()]:{type:"void","x-action":"tabSearch","x-initializer":"tabSearch:configureFields","x-component":"TabSearch"}}}},Rm=t=>{const{filterCollections:e,onlyCurrentDataSource:n,hideChildrenIfSingleCollection:o}=t,r=m.useSchemaInitializerItem(),{insert:s}=m.useSchemaInitializer(),a=c=>ae(null,[c],function*({item:l}){const u=Qm({dataSource:l.dataSource,collectionName:l.collectionName||l.name,blockType:"filter"});s(u)});return p.jsx(m.DataBlockInitializer,U(T({},r),{onlyCurrentDataSource:n,icon:"tab-search",componentType:"TabSearch",filter:e,hideChildrenIfSingleCollection:o,onCreateBlockSchema:a}))},rs=t=>{var l,c;const{field:e,itemComponent:n,label:o,itemUseProps:r,collection:s,type:a}=t;return{name:e.key,title:(l=e.uiSchema)==null?void 0:l.title,Component:"TabSearchFieldSchemaInitializerGadget",schema:{name:e.name+a,fieldName:e.name,title:(c=e.uiSchema)==null?void 0:c.title,type:"void","x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-component":n,"x-use-component-props":r,"x-component-props":{fieldNames:{label:o},interface:e.interface,collectionName:s==null?void 0:s.name,correlation:e.name},properties:{}}}},ep={TabSearchCollapsibleInputItem:"TabSearchCollapsibleInputMItem",useTabSearchFieldItemProps:"useTabSearchFieldItemRelatedProps",TabSearchFieldItem:"TabSearchFieldMItem"};function xl(t){return ep[t]}const tp=()=>{const t=Cl("textField"),e=Cl("choiceField"),n=[{type:"itemGroup",title:He("Display association Textfields",!1),children:t},{type:"itemGroup",title:He("Display association Choicefields",!1),children:e}];return p.jsx(m.SchemaInitializerChildren,{children:n})};function Cl(t){const e=m.useCollection(),{name:n,allFields:o}=e||{},{getCollectionFields:r}=np();m.useIsMobile();const s=m.useCollectionManager(),a=o==null?void 0:o.filter(({interface:d})=>ke(d)),l={collectionName:n,getCollectionFields:r,processedCollections:[],collectionManager:s};let c=[];return t==="textField"?c=a.map(d=>{var b;const f=ke(d.interface)?(b=s.getCollection(`${n}.${d.name}`))==null?void 0:b.titleField:d.name;return Sl(U(T({},l),{field:d,label:f,schemaName:d.name}))}):t==="choiceField"&&(c=a.map(d=>{var b;const f=((b=s.getCollection(d.target))==null?void 0:b.getPrimaryKey())||"id";return kl(U(T({},l),{field:d,label:f,schemaName:d.name}))})),c.filter(Boolean)}function Sl(t,e){var g,b,x,y,h;const{field:n,label:o,schemaName:r,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c}=t,{interface:u}=n,d=it(u),f=ke(u);if(["m2o","obo"].includes(u)){if(l.includes(n.target))return null;const v=a(n.target);return{type:"subMenu",name:(g=n.uiSchema)==null?void 0:g.title,title:(b=n.uiSchema)==null?void 0:b.title,children:v.toSorted((k,S)=>+Object.hasOwn(k,"target")-+Object.hasOwn(S,"target")).map(k=>{var C;const S=ke(n.interface)?(C=c.getCollection(`${name}.${n.name}`))==null?void 0:C.titleField:n.name;return Sl({field:k,label:S,schemaName:`${r}.${k.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c})}).filter(Boolean)}}return m.isAssocField(n)||!pl(u)&&!ke(u)&&!Pt(u)?null:{name:((x=n.uiSchema)==null?void 0:x.title)||n.name,title:((y=n.uiSchema)==null?void 0:y.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:r,title:`${(h=n.uiSchema)==null?void 0:h.title}`,fieldName:`${r}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${r}`,"x-component":xl("TabSearchCollapsibleInputItem"),"x-component-props":{fieldNames:{label:o},interface:n.interface,collectionName:s,correlation:n.name},"x-use-component-props":wl({useTabSearchFieldItemProps:d,useTabSearchFieldItemRelatedProps:f})}}}function kl(t,e){var b,x,y,h,v;const{field:n,label:o,schemaName:r,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c,currentCollection:u}=t,{interface:d}=n,f=it(d),g=ke(d);if(["m2o","obo"].includes(d)&&!n.choiceTag){if(l.includes(n.target))return null;const k=a(n.target);return{type:"subMenu",name:(b=n.uiSchema)==null?void 0:b.title,title:(x=n.uiSchema)==null?void 0:x.title,children:k.reduce((S,C)=>(Object.hasOwn(C,"target")&&["m2o","obo"].includes(C.interface)&&S.push(U(T({},C),{choiceTag:!0})),[...S,C]),[]).toSorted((S,C)=>+Object.hasOwn(S,"target")*2-+Object.hasOwn(S,"choiceTag")-+Object.hasOwn(C,"target")*2-+Object.hasOwn(C,"choiceTag")).map(S=>{var w;const C=((w=c.getCollection(n.target))==null?void 0:w.getPrimaryKey())||"id";return kl({field:S,label:C,schemaName:`${r}.${S.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c,currentCollection:n.target})}).filter(Boolean)}}return m.isAssocField(n)&&!n.choiceTag||!it(d)&&!ke(d)?null:{type:"item",name:((y=n.uiSchema)==null?void 0:y.title)||n.name,title:((h=n.uiSchema)==null?void 0:h.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:r,title:`${(v=n.uiSchema)==null?void 0:v.title}`,fieldName:`${r}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${r}`,"x-component":xl("TabSearchFieldItem"),"x-component-props":{fieldNames:{label:o},interface:n.interface,collectionName:s,correlation:n.name,currentCollection:u},"x-use-component-props":wl({useTabSearchFieldItemProps:f,useTabSearchFieldItemRelatedProps:g})}}}function np(t){const e=m.useDataSourceManager(),n=m.useCollectionManager(),o=m.useDataSource(),r=(o==null?void 0:o.key)||void 0,s=i.useCallback(l=>{var c;return n&&!l?n:(c=e==null?void 0:e.getDataSource(l||r))==null?void 0:c.collectionManager},[n,e,r]);return{getCollectionFields:i.useCallback((l,c)=>{var d,f;if(!l)return[];const u=(d=s(c))==null?void 0:d.getCollection(l);return((f=u==null?void 0:u.getAllFields)==null?void 0:f.call(u))||(u==null?void 0:u.getFields())||[]},[e,s])}}function wl(t){const e=Object.entries(t).find(([,o])=>o),[n]=e||[];return n}const op=new m.SchemaInitializer({name:"tabSearch:configureFields",style:{marginTop:16},icon:"SettingOutlined",title:He("Configure fields"),items:[{name:"textFields",type:"itemGroup",title:He("Text fields"),useChildren:rp},{name:"choicesFields",type:"itemGroup",title:He("Choices fields"),useChildren:sp},{name:"divider",type:"divider"},{name:"associationFields",Component:tp},{name:"divider",type:"divider"},{title:He("Add text",!1),Component:"MarkdownFormItemInitializer",name:"addText"}]});function rp(){const t=m.useCollection(),e=t.fields,n=m.useCollectionManager(),r=m.useIsMobile()?"TabSearchCollapsibleInputMItem":"TabSearchCollapsibleInputItem";return e.map(a=>{if(!a.isForeignKey&&(pl(a.interface)||ke(a.interface)||Pt(a.interface))){const l=ke(a.interface)?n.getCollection(`${t.name}.${a.name}`).titleField:a.name;return rs({field:a,itemComponent:r,label:l,collection:t,type:"text"})}}).filter(Boolean)}function sp(){const e=m.useCollection().fields,n=m.useCollectionManager(),r=m.useIsMobile()?"TabSearchFieldMItem":"TabSearchFieldItem";return e.map(a=>{var c;const l=((c=n.getCollection(a.target))==null?void 0:c.getPrimaryKey())||"id";if(it(a.interface))return rs({field:a,itemComponent:r,label:l,itemUseProps:"useTabSearchFieldItemProps",type:"choices"});if(ke(a.interface))return rs({field:a,itemComponent:r,label:l,itemUseProps:"useTabSearchFieldItemRelatedProps",type:"choices"})}).filter(Boolean)}const ip=()=>{const t=m.useSchemaInitializerItem(),{schema:e}=t,{exists:n,remove:o}=m.useCurrentSchema(e.name,"name",t.find,t.remove),{insert:r}=m.useSchemaInitializer(),s=()=>{var l;if(n)return o();const a=_.merge(e||{},t.schema||{});(l=t==null?void 0:t.schemaInitialize)==null||l.call(t,a),r(a)};return p.jsx(m.SchemaInitializerSwitch,{checked:n,title:t.title,onClick:s})},ap=t=>p.jsx(m.DataBlockProvider,{collection:t.collection,children:t.children}),lp=new m.SchemaSettings({name:"fieldSettings:TabSearchItem",items:[{name:"decoratorOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t}=m.useTranslation();return{title:t("Generic properties")}},useChildren(){return[{name:"setTheDataScope",Component:m.SchemaSettingsDataScope,useComponentProps(){var l,c;const t=_.useFieldSchema(),{form:e}=m.useFormBlockContext(),n=_.useField(),o=m.useCollectionManager(),s=m.useCollection().getField(t.fieldName)||o.getCollectionField(t["x-collection-field"]),{dn:a}=m.useDesignable();return{collectionName:s==null?void 0:s.target,defaultFilter:((c=(l=t==null?void 0:t["x-component-props"])==null?void 0:l.params)==null?void 0:c.filter)||{},form:e,onSubmit:({filter:u})=>{var d;Fe.set(n.componentProps,"params",U(T({},(d=n.componentProps)==null?void 0:d.params),{filter:u})),t["x-component-props"].params=n.componentProps.params,a.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"]}})}}},useVisible(){const t=_.useFieldSchema();return!Ke(t["x-component"])}},{name:"titleField",type:"select",useComponentProps(){var y,h;const t=_.useFieldSchema(),{t:e}=m.useTranslation(),n=m.useCollectionManager(),o=m.useCollection(),r=t["x-component-props"]||{},{collectionName:s,currentCollection:a,correlation:l}=r,c=a||s||o.name,u=o.getField(t.fieldName)||n.getCollectionField(t["x-collection-field"])||n.getCollection(c+"."+l),d=m.useCompile(),{dn:f}=m.useDesignable(),b=(u!=null&&u.target?n.getCollectionFields(u==null?void 0:u.target):[]).filter(v=>!(v!=null&&v.target)&&v.type!=="boolean").map(v=>{var k;return{value:v==null?void 0:v.name,label:d((k=v==null?void 0:v.uiSchema)==null?void 0:k.title)||(v==null?void 0:v.name)}}),x=v=>{var C,w,E;const k={"x-uid":t["x-uid"]},S=U(T(T({},(w=(C=u==null?void 0:u.uiSchema)==null?void 0:C["x-component-props"])==null?void 0:w.fieldNames),(E=t["x-component-props"])==null?void 0:E.fieldNames),{label:v});t["x-component-props"]=t["x-component-props"]||{},t["x-component-props"].fieldNames=S,k["x-component-props"]=t["x-component-props"],f.emit("patch",{schema:k}),f.refresh()};return{key:"title-field",title:e("Title field"),options:b,value:(h=(y=t["x-component-props"])==null?void 0:y.fieldNames)==null?void 0:h.label,onChange:x}},useVisible(){var e;const t=_.useFieldSchema();return Ke(t["x-component"])||((e=t["x-component-props"])==null?void 0:e.correlation)}}]}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100,useComponentProps(){const{t}=m.useTranslation(),e=_.useFieldSchema(),{dn:n}=m.useDesignable();return{removeParentsIfNoChildren:!0,confirm:{title:t("Delete field")},breakRemoveOn:o=>(Ke(e["x-component"])&&(Object.values(o.properties).forEach(r=>{Ke(r["x-component"])&&r.name!==e.name&&delete o.properties[r.name]}),n.emit("patch",{schema:o})),o["x-component"]==="TabSearch")}}}]}),$t=_.connect(Ur,_.mapProps(t=>U(T({placeholder:"请输入内容",clearable:!0},t),{style:T({"--font-size":"12px"},t==null?void 0:t.style)})),_.mapReadPretty(t=>p.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:t.value}))),cp=_.connect(rl,_.mapProps(t=>U(T({},t),{placeholder:"请输入内容",clearable:!0,style:T({"--font-size":"12px"},t==null?void 0:t.style)})),_.mapReadPretty(t=>p.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:t.value})));$t.TextArea=cp;const up={red:"#fc9792",magenta:"#ffa3cc",volcano:"#ffb38b",orange:"#ffcf86",gold:"#ffe184",lime:"#e7ff84",green:"#aee884",cyan:"#7ce5d9",blue:"#86c3ff",geekblue:"#a3bfff",purple:"#cda3f6",default:"#d4d4d4"},ss=t=>up[t],is=_.connect(Br,_.mapProps(t=>T({},t)));is.Group=_.connect(t=>{const e=m.useCollectionField(),n=(e==null?void 0:e.uiSchema.enum)||[],o=t.value||[];return p.jsx(Br.Group,{value:o,children:n.map((r,s)=>p.jsx(Br,U(T({value:r.value,style:{"--icon-size":"12px","--font-size":"12px"},onChange:a=>{if(a)o.push(r.value);else{const l=o.findIndex(c=>{var u;return((u=r.value)==null?void 0:u.toString())===c});o.splice(l,1)}t.onChange(o)}},t),{children:r.label}),s))})},_.mapProps((t,e)=>T({},t)),_.mapReadPretty(t=>{if(!_.isValid(t.value))return p.jsx("div",{});const{value:e}=t,n=_.useField(),o=m.useCollectionField(),r=n.dataSource||(o==null?void 0:o.uiSchema.enum)||[];return p.jsx("div",{children:r.filter(s=>s.value===e).map((s,a)=>p.jsx(Yr,{color:ss(s.color),children:s.label},a))})}));const El=_.connect(t=>{const{t:e}=m.useTranslation(),{value:n,onChange:o}=t,[r,s]=i.useState(!1),a=i.useMemo(()=>n?J(n).format("YYYY-MM-DD"):e("please enter the date"),[n]),l=()=>s(!0),c=()=>s(!1),u=f=>{o(f),s(!1)},d=i.useMemo(()=>{const f=J(n);if(f.isValid())return f.toDate()},[n]);return p.jsxs(p.Fragment,{children:[p.jsx(nt,{onClick:l,children:a}),p.jsx(j0,{visible:r,value:d,onClose:c,onConfirm:u})]})},_.mapProps(t=>T({},t)),_.mapReadPretty(t=>{const e=T({},t);return e.value=t.value?J(t.value).format("YYYY-MM-DD"):"",p.jsx("div",{children:e.value})})),dp=_.connect(t=>{const[e,n]=i.useState([]),[o,r]=i.useState(!1),s=t.value||[];i.useEffect(()=>{if(!o&&t.value){const l=t.value.map(c=>({url:c.url,key:c.id,thumbnailUrl:c.url}));n(l)}},[t.value]);const a=m.useAPIClient();return p.jsx(Ya,{value:e,upload:l=>ae(null,null,function*(){const{name:c}=l;if(fp(c)){const d=new FormData;d.append("file",l);let f;return yield a.request({url:t.action,method:"post",data:d}).then(g=>{var b;f=(b=g==null?void 0:g.data)==null?void 0:b.data,s.push(f)}).catch(()=>{}),{url:f==null?void 0:f.url,key:f==null?void 0:f.id,thumbnailUrl:f==null?void 0:f.url}}}),onChange:l=>{n(l),r(!0),t.onChange(s)},onDelete:l=>{const c=s.findIndex(u=>u.id===l.key);s.splice(c,1),t.onChange(s)}})},_.mapProps(t=>T({},t)),_.mapReadPretty(t=>{const{showCount:e,value:n=[]}=t,o=n.slice(0,e);return p.jsx(Ya,U(T({},t),{value:o,disableUpload:!0,showUpload:!1,upload:()=>ae(null,null,function*(){return{url:""}})}))})),fp=t=>/\.(png|jpg|jpeg|gif|webp)$/i.test(t),as=_.connect(Hr,_.mapProps({value:"checked",onInput:"onChange"}));as.Group=_.connect(t=>{const e=m.useCollectionField(),n=(e==null?void 0:e.uiSchema.enum)||[];return p.jsx(Hr.Group,U(T({},t),{children:n.map((o,r)=>p.jsx(Hr,{value:o.value,style:{"--font-size":"12px","--icon-size":"18px",marginLeft:"10px"},children:o.label},r))}))},_.mapProps((t,e)=>(i.useEffect(()=>{var o;const n=(o=e.dataSource)==null?void 0:o.find(r=>r.value===t.value);n&&e.setValue(n.value)},[t.value,e.dataSource]),T({},t))),_.mapReadPretty(t=>{if(!_.isValid(t.value))return p.jsx("div",{});const{value:e}=t,n=_.useField(),o=m.useCollectionField(),r=n.dataSource||(o==null?void 0:o.uiSchema.enum)||[];return p.jsx("div",{children:r.filter(s=>s.value===e).map((s,a)=>p.jsx(Yr,{color:ss(s.color),children:s.label},a))})}));const mp=m.createStyles(({css:t})=>({PopupStyle:t`
277
+ `,children:p.jsxs(Je,{columns:4,style:{flex:1,display:"flex",flexDirection:"row",justifyContent:"flex-start",padding:"10px",backgroundColor:"#f9f9f9",borderRadius:"5px",margin:"5px 0 0 0"},children:[p.jsx(jm,{options:o,onChange:s,customLabelKey:c}),Pt(u)?p.jsx(Km,{value:r,onChange:d,onInputChange:a,options:o}):p.jsxs(p.Fragment,{children:[p.jsx(Wm,{options:o,value:r,onChange:a}),p.jsx(Um,{onClick:l})]})]})})]}):null},{displayName:"TabSearchCollapsibleInputItem"}),qm=m.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,items:o,onSelect:r}=yl(t);return e?p.jsxs(m.SortableItem,{children:[p.jsx(n,{}),p.jsx(fo,{style:{"--title-font-size":"12px",color:"#a5a5a5"},onChange:r,children:o.map(s=>p.jsx(fo.Tab,{title:s.label},s.key))})]}):null},{displayName:"TabSearchFieldItem"}),yl=t=>{var h,v;const{list:e,onSelected:n,valueKey:o,labelKey:r,filterKey:s}=t,{t:a}=m.useTranslation(),l=_.useFieldSchema(),c=m.useCollection(),u=i.useMemo(()=>c==null?void 0:c.getField(l.fieldName),[c,l.fieldName]),d=m.useDesigner(),f=o||(u==null?void 0:u.targetKey)||"id",g=r||((v=(h=l["x-component-props"])==null?void 0:h.fieldNames)==null?void 0:v.label)||f,b=k=>{var C;const S=((C=k.keyPath)==null?void 0:C[0])||k;n([S],s)},x={title:g,key:f},y=[];return e!=null&&e.length&&e.forEach(k=>{y.push({label:k[x.title],key:k[x.key]})}),y==null||y.unshift({label:a("all"),key:"all"}),{collectionField:u,Designer:d,items:y,onSelect:b}},Gm=m.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,items:o,onSelect:r}=yl(t);return e?p.jsxs(m.SortableItem,{children:[p.jsx(n,{}),p.jsx(se.ConfigProvider,{theme:{components:{Menu:{itemColor:"#a5a5a5",itemHoverColor:"#1d2ffff18"}}},children:p.jsx(se.Menu,{items:o,mode:"horizontal",onSelect:r,defaultSelectedKeys:["all"]})})]}):null},{displayName:"TabSearchFieldItem"}),Ym=()=>{var u,d,f,g,b,x;const t=_.useFieldSchema(),e=m.useCollection(),n=((u=t["x-component-props"])==null?void 0:u.currentCollection)||(e==null?void 0:e.name),o=Xm(n),r=m.useCollectionManager(),s=i.useMemo(()=>e==null?void 0:e.getField(t.fieldName),[e,t.fieldName]),{onSelected:a}=$o(),l={list:null,valueKey:"",labelKey:"",filterKey:""};if(!e)return;l.valueKey=s!=null&&s.target?(d=r.getCollection(s.target))==null?void 0:d.getPrimaryKey():"id",l.labelKey=((g=(f=t["x-component-props"])==null?void 0:f.fieldNames)==null?void 0:g.label)||l.valueKey;const c=(b=t["x-component-props"])==null?void 0:b.interface;if(it(c)){const y=o.find(k=>k.name===t.fieldName.split(".").findLast(Boolean)),h={select:"$in",multipleSelect:"$anyOf",checkboxGroup:"$anyOf",radioGroup:"$in"};t.fieldName;const v=((x=y==null?void 0:y.uiSchema)==null?void 0:x.enum)||[];l.valueKey="value",l.labelKey="label",l.list=v,l.filterKey=`${t.fieldName}.${h[y==null?void 0:y.interface]}`}return{list:l.list,valueKey:l.valueKey,labelKey:l.labelKey,onSelected:a,filterKey:l.filterKey}},Xm=t=>{var r;const n=m.useCollectionManager().getCollection(t);return((r=n==null?void 0:n.fields)!=null?r:[]).filter(s=>it(s.interface)&&s.uiSchema.enum)},Jm=()=>{var x,y,h,v,k;const t=_.useFieldSchema(),e=m.useCollection(),n=_.useField(),o={dataSource:"main"},r=m.useDataSourceHeaders(o==null?void 0:o.dataSource),s=m.useCollectionManager(),a=i.useMemo(()=>e==null?void 0:e.getField(t.fieldName),[e,t.fieldName]),c=t["x-component-props"].currentCollection===(e==null?void 0:e.name)?a==null?void 0:a.name:t.fieldName,u=t["x-component-props"].interface,d={list:null,valueKey:"",labelKey:"",filterKey:""},{onSelected:f}=$o();d.valueKey=a!=null&&a.target?(x=s.getCollection(a.target))==null?void 0:x.getPrimaryKey():"id",d.labelKey=((h=(y=t["x-component-props"])==null?void 0:y.fieldNames)==null?void 0:h.label)||d.valueKey;const{data:g,run:b}=m.useRequest({headers:r,resource:a==null?void 0:a.target,action:"list",params:T({fields:[d.labelKey,d.valueKey],pageSize:200,page:1},(v=n.componentProps)==null?void 0:v.params)},{manual:!0,debounceWait:300});return i.useEffect(()=>{ke(u)&&(a!=null&&a.target)&&b()},[d.labelKey,d.valueKey,JSON.stringify(((k=n.componentProps)==null?void 0:k.params)||{}),ke(u)]),a?(d.filterKey=`${c}.${d.valueKey}.$in`,d.list=(g==null?void 0:g.data)||[],{list:d.list,valueKey:d.valueKey,labelKey:d.labelKey,onSelected:f,filterKey:d.filterKey}):{}},Qm=t=>{const{collectionName:e,dataSource:n,blockType:o}=t;return{type:"void","x-decorator":"TabSearchProvider","x-decorator-props":{collection:e,dataSource:n,blockType:o},"x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:filterCollapse","x-component":"CardItem","x-filter-targets":[],properties:{[Ue.uid()]:{type:"void","x-action":"tabSearch","x-initializer":"tabSearch:configureFields","x-component":"TabSearch"}}}},Rm=t=>{const{filterCollections:e,onlyCurrentDataSource:n,hideChildrenIfSingleCollection:o}=t,r=m.useSchemaInitializerItem(),{insert:s}=m.useSchemaInitializer(),a=c=>le(null,[c],function*({item:l}){const u=Qm({dataSource:l.dataSource,collectionName:l.collectionName||l.name,blockType:"filter"});s(u)});return p.jsx(m.DataBlockInitializer,U(T({},r),{onlyCurrentDataSource:n,icon:"tab-search",componentType:"TabSearch",filter:e,hideChildrenIfSingleCollection:o,onCreateBlockSchema:a}))},rs=t=>{var l,c;const{field:e,itemComponent:n,label:o,itemUseProps:r,collection:s,type:a}=t;return{name:e.key,title:(l=e.uiSchema)==null?void 0:l.title,Component:"TabSearchFieldSchemaInitializerGadget",schema:{name:e.name+a,fieldName:e.name,title:(c=e.uiSchema)==null?void 0:c.title,type:"void","x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-component":n,"x-use-component-props":r,"x-component-props":{fieldNames:{label:o},interface:e.interface,collectionName:s==null?void 0:s.name,correlation:e.name},properties:{}}}},ep={TabSearchCollapsibleInputItem:"TabSearchCollapsibleInputMItem",useTabSearchFieldItemProps:"useTabSearchFieldItemRelatedProps",TabSearchFieldItem:"TabSearchFieldMItem"};function xl(t){return ep[t]}const tp=()=>{const t=Cl("textField"),e=Cl("choiceField"),n=[{type:"itemGroup",title:He("Display association Textfields",!1),children:t},{type:"itemGroup",title:He("Display association Choicefields",!1),children:e}];return p.jsx(m.SchemaInitializerChildren,{children:n})};function Cl(t){const e=m.useCollection(),{name:n,allFields:o}=e||{},{getCollectionFields:r}=np();m.useIsMobile();const s=m.useCollectionManager(),a=o==null?void 0:o.filter(({interface:d})=>ke(d)),l={collectionName:n,getCollectionFields:r,processedCollections:[],collectionManager:s};let c=[];return t==="textField"?c=a.map(d=>{var b;const f=ke(d.interface)?(b=s.getCollection(`${n}.${d.name}`))==null?void 0:b.titleField:d.name;return Sl(U(T({},l),{field:d,label:f,schemaName:d.name}))}):t==="choiceField"&&(c=a.map(d=>{var b;const f=((b=s.getCollection(d.target))==null?void 0:b.getPrimaryKey())||"id";return kl(U(T({},l),{field:d,label:f,schemaName:d.name}))})),c.filter(Boolean)}function Sl(t,e){var g,b,x,y,h;const{field:n,label:o,schemaName:r,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c}=t,{interface:u}=n,d=it(u),f=ke(u);if(["m2o","obo"].includes(u)){if(l.includes(n.target))return null;const v=a(n.target);return{type:"subMenu",name:(g=n.uiSchema)==null?void 0:g.title,title:(b=n.uiSchema)==null?void 0:b.title,children:v.toSorted((k,S)=>+Object.hasOwn(k,"target")-+Object.hasOwn(S,"target")).map(k=>{var C;const S=ke(n.interface)?(C=c.getCollection(`${name}.${n.name}`))==null?void 0:C.titleField:n.name;return Sl({field:k,label:S,schemaName:`${r}.${k.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c})}).filter(Boolean)}}return m.isAssocField(n)||!pl(u)&&!ke(u)&&!Pt(u)?null:{name:((x=n.uiSchema)==null?void 0:x.title)||n.name,title:((y=n.uiSchema)==null?void 0:y.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:r,title:`${(h=n.uiSchema)==null?void 0:h.title}`,fieldName:`${r}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${r}`,"x-component":xl("TabSearchCollapsibleInputItem"),"x-component-props":{fieldNames:{label:o},interface:n.interface,collectionName:s,correlation:n.name},"x-use-component-props":wl({useTabSearchFieldItemProps:d,useTabSearchFieldItemRelatedProps:f})}}}function kl(t,e){var b,x,y,h,v;const{field:n,label:o,schemaName:r,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c,currentCollection:u}=t,{interface:d}=n,f=it(d),g=ke(d);if(["m2o","obo"].includes(d)&&!n.choiceTag){if(l.includes(n.target))return null;const k=a(n.target);return{type:"subMenu",name:(b=n.uiSchema)==null?void 0:b.title,title:(x=n.uiSchema)==null?void 0:x.title,children:k.reduce((S,C)=>(Object.hasOwn(C,"target")&&["m2o","obo"].includes(C.interface)&&S.push(U(T({},C),{choiceTag:!0})),[...S,C]),[]).toSorted((S,C)=>+Object.hasOwn(S,"target")*2-+Object.hasOwn(S,"choiceTag")-+Object.hasOwn(C,"target")*2-+Object.hasOwn(C,"choiceTag")).map(S=>{var w;const C=((w=c.getCollection(n.target))==null?void 0:w.getPrimaryKey())||"id";return kl({field:S,label:C,schemaName:`${r}.${S.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c,currentCollection:n.target})}).filter(Boolean)}}return m.isAssocField(n)&&!n.choiceTag||!it(d)&&!ke(d)?null:{type:"item",name:((y=n.uiSchema)==null?void 0:y.title)||n.name,title:((h=n.uiSchema)==null?void 0:h.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:r,title:`${(v=n.uiSchema)==null?void 0:v.title}`,fieldName:`${r}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${r}`,"x-component":xl("TabSearchFieldItem"),"x-component-props":{fieldNames:{label:o},interface:n.interface,collectionName:s,correlation:n.name,currentCollection:u},"x-use-component-props":wl({useTabSearchFieldItemProps:f,useTabSearchFieldItemRelatedProps:g})}}}function np(t){const e=m.useDataSourceManager(),n=m.useCollectionManager(),o=m.useDataSource(),r=(o==null?void 0:o.key)||void 0,s=i.useCallback(l=>{var c;return n&&!l?n:(c=e==null?void 0:e.getDataSource(l||r))==null?void 0:c.collectionManager},[n,e,r]);return{getCollectionFields:i.useCallback((l,c)=>{var d,f;if(!l)return[];const u=(d=s(c))==null?void 0:d.getCollection(l);return((f=u==null?void 0:u.getAllFields)==null?void 0:f.call(u))||(u==null?void 0:u.getFields())||[]},[e,s])}}function wl(t){const e=Object.entries(t).find(([,o])=>o),[n]=e||[];return n}const op=new m.SchemaInitializer({name:"tabSearch:configureFields",style:{marginTop:16},icon:"SettingOutlined",title:He("Configure fields"),items:[{name:"textFields",type:"itemGroup",title:He("Text fields"),useChildren:rp},{name:"choicesFields",type:"itemGroup",title:He("Choices fields"),useChildren:sp},{name:"divider",type:"divider"},{name:"associationFields",Component:tp},{name:"divider",type:"divider"},{title:He("Add text",!1),Component:"MarkdownFormItemInitializer",name:"addText"}]});function rp(){const t=m.useCollection(),e=t.fields,n=m.useCollectionManager(),r=m.useIsMobile()?"TabSearchCollapsibleInputMItem":"TabSearchCollapsibleInputItem";return e.map(a=>{if(!a.isForeignKey&&(pl(a.interface)||ke(a.interface)||Pt(a.interface))){const l=ke(a.interface)?n.getCollection(`${t.name}.${a.name}`).titleField:a.name;return rs({field:a,itemComponent:r,label:l,collection:t,type:"text"})}}).filter(Boolean)}function sp(){const e=m.useCollection().fields,n=m.useCollectionManager(),r=m.useIsMobile()?"TabSearchFieldMItem":"TabSearchFieldItem";return e.map(a=>{var c;const l=((c=n.getCollection(a.target))==null?void 0:c.getPrimaryKey())||"id";if(it(a.interface))return rs({field:a,itemComponent:r,label:l,itemUseProps:"useTabSearchFieldItemProps",type:"choices"});if(ke(a.interface))return rs({field:a,itemComponent:r,label:l,itemUseProps:"useTabSearchFieldItemRelatedProps",type:"choices"})}).filter(Boolean)}const ip=()=>{const t=m.useSchemaInitializerItem(),{schema:e}=t,{exists:n,remove:o}=m.useCurrentSchema(e.name,"name",t.find,t.remove),{insert:r}=m.useSchemaInitializer(),s=()=>{var l;if(n)return o();const a=_.merge(e||{},t.schema||{});(l=t==null?void 0:t.schemaInitialize)==null||l.call(t,a),r(a)};return p.jsx(m.SchemaInitializerSwitch,{checked:n,title:t.title,onClick:s})},ap=t=>p.jsx(m.DataBlockProvider,{collection:t.collection,children:t.children}),lp=new m.SchemaSettings({name:"fieldSettings:TabSearchItem",items:[{name:"decoratorOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t}=m.useTranslation();return{title:t("Generic properties")}},useChildren(){return[{name:"setTheDataScope",Component:m.SchemaSettingsDataScope,useComponentProps(){var l,c;const t=_.useFieldSchema(),{form:e}=m.useFormBlockContext(),n=_.useField(),o=m.useCollectionManager(),s=m.useCollection().getField(t.fieldName)||o.getCollectionField(t["x-collection-field"]),{dn:a}=m.useDesignable();return{collectionName:s==null?void 0:s.target,defaultFilter:((c=(l=t==null?void 0:t["x-component-props"])==null?void 0:l.params)==null?void 0:c.filter)||{},form:e,onSubmit:({filter:u})=>{var d;Fe.set(n.componentProps,"params",U(T({},(d=n.componentProps)==null?void 0:d.params),{filter:u})),t["x-component-props"].params=n.componentProps.params,a.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"]}})}}},useVisible(){const t=_.useFieldSchema();return!Ke(t["x-component"])}},{name:"titleField",type:"select",useComponentProps(){var y,h;const t=_.useFieldSchema(),{t:e}=m.useTranslation(),n=m.useCollectionManager(),o=m.useCollection(),r=t["x-component-props"]||{},{collectionName:s,currentCollection:a,correlation:l}=r,c=a||s||o.name,u=o.getField(t.fieldName)||n.getCollectionField(t["x-collection-field"])||n.getCollection(c+"."+l),d=m.useCompile(),{dn:f}=m.useDesignable(),b=(u!=null&&u.target?n.getCollectionFields(u==null?void 0:u.target):[]).filter(v=>!(v!=null&&v.target)&&v.type!=="boolean").map(v=>{var k;return{value:v==null?void 0:v.name,label:d((k=v==null?void 0:v.uiSchema)==null?void 0:k.title)||(v==null?void 0:v.name)}}),x=v=>{var C,w,E;const k={"x-uid":t["x-uid"]},S=U(T(T({},(w=(C=u==null?void 0:u.uiSchema)==null?void 0:C["x-component-props"])==null?void 0:w.fieldNames),(E=t["x-component-props"])==null?void 0:E.fieldNames),{label:v});t["x-component-props"]=t["x-component-props"]||{},t["x-component-props"].fieldNames=S,k["x-component-props"]=t["x-component-props"],f.emit("patch",{schema:k}),f.refresh()};return{key:"title-field",title:e("Title field"),options:b,value:(h=(y=t["x-component-props"])==null?void 0:y.fieldNames)==null?void 0:h.label,onChange:x}},useVisible(){var e;const t=_.useFieldSchema();return Ke(t["x-component"])||((e=t["x-component-props"])==null?void 0:e.correlation)}}]}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100,useComponentProps(){const{t}=m.useTranslation(),e=_.useFieldSchema(),{dn:n}=m.useDesignable();return{removeParentsIfNoChildren:!0,confirm:{title:t("Delete field")},breakRemoveOn:o=>(Ke(e["x-component"])&&(Object.values(o.properties).forEach(r=>{Ke(r["x-component"])&&r.name!==e.name&&delete o.properties[r.name]}),n.emit("patch",{schema:o})),o["x-component"]==="TabSearch")}}}]}),$t=_.connect(Ur,_.mapProps(t=>U(T({placeholder:"请输入内容",clearable:!0},t),{style:T({"--font-size":"12px"},t==null?void 0:t.style)})),_.mapReadPretty(t=>p.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:t.value}))),cp=_.connect(rl,_.mapProps(t=>U(T({},t),{placeholder:"请输入内容",clearable:!0,style:T({"--font-size":"12px"},t==null?void 0:t.style)})),_.mapReadPretty(t=>p.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:t.value})));$t.TextArea=cp;const up={red:"#fc9792",magenta:"#ffa3cc",volcano:"#ffb38b",orange:"#ffcf86",gold:"#ffe184",lime:"#e7ff84",green:"#aee884",cyan:"#7ce5d9",blue:"#86c3ff",geekblue:"#a3bfff",purple:"#cda3f6",default:"#d4d4d4"},ss=t=>up[t],is=_.connect(Br,_.mapProps(t=>T({},t)));is.Group=_.connect(t=>{const e=m.useCollectionField(),n=(e==null?void 0:e.uiSchema.enum)||[],o=t.value||[];return p.jsx(Br.Group,{value:o,children:n.map((r,s)=>p.jsx(Br,U(T({value:r.value,style:{"--icon-size":"12px","--font-size":"12px"},onChange:a=>{if(a)o.push(r.value);else{const l=o.findIndex(c=>{var u;return((u=r.value)==null?void 0:u.toString())===c});o.splice(l,1)}t.onChange(o)}},t),{children:r.label}),s))})},_.mapProps((t,e)=>T({},t)),_.mapReadPretty(t=>{if(!_.isValid(t.value))return p.jsx("div",{});const{value:e}=t,n=_.useField(),o=m.useCollectionField(),r=n.dataSource||(o==null?void 0:o.uiSchema.enum)||[];return p.jsx("div",{children:r.filter(s=>s.value===e).map((s,a)=>p.jsx(Yr,{color:ss(s.color),children:s.label},a))})}));const El=_.connect(t=>{const{t:e}=m.useTranslation(),{value:n,onChange:o}=t,[r,s]=i.useState(!1),a=i.useMemo(()=>n?J(n).format("YYYY-MM-DD"):e("please enter the date"),[n]),l=()=>s(!0),c=()=>s(!1),u=f=>{o(f),s(!1)},d=i.useMemo(()=>{const f=J(n);if(f.isValid())return f.toDate()},[n]);return p.jsxs(p.Fragment,{children:[p.jsx(nt,{onClick:l,children:a}),p.jsx(j0,{visible:r,value:d,onClose:c,onConfirm:u})]})},_.mapProps(t=>T({},t)),_.mapReadPretty(t=>{const e=T({},t);return e.value=t.value?J(t.value).format("YYYY-MM-DD"):"",p.jsx("div",{children:e.value})})),dp=_.connect(t=>{const[e,n]=i.useState([]),[o,r]=i.useState(!1),s=t.value||[];i.useEffect(()=>{if(!o&&t.value){const l=t.value.map(c=>({url:c.url,key:c.id,thumbnailUrl:c.url}));n(l)}},[t.value]);const a=m.useAPIClient();return p.jsx(Ya,{value:e,upload:l=>le(null,null,function*(){const{name:c}=l;if(fp(c)){const d=new FormData;d.append("file",l);let f;return yield a.request({url:t.action,method:"post",data:d}).then(g=>{var b;f=(b=g==null?void 0:g.data)==null?void 0:b.data,s.push(f)}).catch(()=>{}),{url:f==null?void 0:f.url,key:f==null?void 0:f.id,thumbnailUrl:f==null?void 0:f.url}}}),onChange:l=>{n(l),r(!0),t.onChange(s)},onDelete:l=>{const c=s.findIndex(u=>u.id===l.key);s.splice(c,1),t.onChange(s)}})},_.mapProps(t=>T({},t)),_.mapReadPretty(t=>{const{showCount:e,value:n=[]}=t,o=n.slice(0,e);return p.jsx(Ya,U(T({},t),{value:o,disableUpload:!0,showUpload:!1,upload:()=>le(null,null,function*(){return{url:""}})}))})),fp=t=>/\.(png|jpg|jpeg|gif|webp)$/i.test(t),as=_.connect(Hr,_.mapProps({value:"checked",onInput:"onChange"}));as.Group=_.connect(t=>{const e=m.useCollectionField(),n=(e==null?void 0:e.uiSchema.enum)||[];return p.jsx(Hr.Group,U(T({},t),{children:n.map((o,r)=>p.jsx(Hr,{value:o.value,style:{"--font-size":"12px","--icon-size":"18px",marginLeft:"10px"},children:o.label},r))}))},_.mapProps((t,e)=>(i.useEffect(()=>{var o;const n=(o=e.dataSource)==null?void 0:o.find(r=>r.value===t.value);n&&e.setValue(n.value)},[t.value,e.dataSource]),T({},t))),_.mapReadPretty(t=>{if(!_.isValid(t.value))return p.jsx("div",{});const{value:e}=t,n=_.useField(),o=m.useCollectionField(),r=n.dataSource||(o==null?void 0:o.uiSchema.enum)||[];return p.jsx("div",{children:r.filter(s=>s.value===e).map((s,a)=>p.jsx(Yr,{color:ss(s.color),children:s.label},a))})}));const mp=m.createStyles(({css:t})=>({PopupStyle:t`
278
278
  .adm-popup-body {
279
279
  padding: 10px;
280
280
  .adm-space {
@@ -311,7 +311,7 @@
311
311
  height: 80vh;
312
312
  overflow: auto;
313
313
  }
314
- `,children:p.jsx(m.MobileProvider,{children:p.jsx(m.ActionContextProvider,{visible:n,setVisible:o,children:p.jsx(_.RecursionField,{schema:r,onlyRenderProperties:!0})})})})]})},{displayName:"CreateRecordAction"}),hp=_.observer(t=>{const{value:e,collectionName:n,service:o,fieldNames:r,addMode:s,onChange:a,multiple:l,mode:c}=t,[u,d]=i.useState(!1),[f,g]=i.useState(""),{styles:b}=mp(),[x,y]=i.useState([]),h=_.useFieldSchema(),v=m.useCollectionManager(),k=m.useCollection(),[S]=m.useFieldServiceFilter(o==null?void 0:o.params),[C,w]=i.useState({}),E=m.useAPIClient(),I=(r==null?void 0:r.label)||"label",P=(r==null?void 0:r.value)||"value",N=i.useMemo(()=>Ue.isArray(e)?e.map(L=>L[P]):e&&typeof e=="object"?[e[P]]:[],[e,P]),[$,A]=i.useState([]),V=i.useMemo(()=>x.filter(L=>L[I].includes(f)),[x,f]),M=i.useMemo(()=>Ue.isArray(e)?e.map(L=>L[I]).join(", "):e&&typeof e=="object"?e[I]:"",[e,I]),{run:O}=m.useRequest({resource:n,action:"list",params:{filter:T(T({},S==null?void 0:S.filter),C)}},{manual:!0,onSuccess(L){var Y;if(L){const te=(Y=L.data)==null?void 0:Y.map(ce=>U(T({},ce),{label:ce[I],value:ce[P]}));y(te)}}}),K=()=>{var L;if(n)O();else if(h["x-collection-field"]){const te=(L=v.getCollectionField(h["x-collection-field"]).uiSchema)==null?void 0:L.enum;y(te)}else y(h.enum)},G=()=>ae(null,null,function*(){(yield E.request({url:n+":create",method:"post",data:{[I]:f}})).status===200?Jr.show({icon:"success",content:at("Add success")}):Jr.show({icon:"fail",content:at("Add failed")});const Y=T({},C);delete Y[I],w(Y),g(""),d(!1)}),me=L=>{g(L),w(U(T({},C),{[I]:{$includes:L}}))},ve=L=>{A(L)},oe=()=>{const L=T({},C);L[I]&&delete L[I];const Y=x.filter(te=>$.includes(te.value));a(Y),d(!1),g(""),w(L)},ue=i.useMemo(()=>Fe.debounce(O,300),[O]);return i.useEffect(()=>(n&&f&&ue(),()=>{ue.cancel()}),[f,ue]),i.useEffect(()=>{K()},[C,u]),i.useEffect(()=>{A(N)},[N]),p.jsx(m.CollectionProvider,{name:n||(k==null?void 0:k.name),children:p.jsxs(m.BlockItem,{children:[p.jsx("div",{onClick:()=>{h["x-disabled"]||(d(!0),K())},style:{color:"#c5c5c5"},children:e!=null&&e.length||e&&!Ue.isArray(e)?p.jsx($t,{style:{"--color":"#1e8bf1"},value:M,disabled:h["x-disabled"]}):p.jsx(In,{children:h["x-disabled"]?"":at("Please select content")})}),p.jsx(Wt,{visible:u,className:`${b.PopupStyle}`,onMaskClick:()=>{d(!1)},children:p.jsxs(m.MobileProvider,{children:[p.jsx(el,{placeholder:at("Please enter search content"),value:f,onChange:me}),f&&s==="quickAdd"?p.jsxs(In,{justify:"center",align:"center",onClick:G,children:["+ ",at("Add")," ",f]}):null,p.jsx(_r,{}),l||c==="multiple"?p.jsx(ho,{multiple:!0,className:`${b.checkListStyle}`,value:$,onChange:ve,children:V.map((L,Y)=>p.jsx(ho.Item,{value:L.value,children:L.label},Y))}):p.jsx(Ar,{value:$,className:`${b.customPickerView}`,columns:[V],onChange:L=>{A(L)}}),p.jsxs(In,{justify:"evenly",align:"center",children:[s==="modalAdd"?p.jsx(m.SchemaComponent,{components:{CreateRecordAction:pp},schema:{type:"void",name:"CreateRecord","x-component":"CreateRecordAction","x-component-props":{fieldSchema:h}}}):null,p.jsx(nt,{color:"primary",onClick:()=>{d(!1);const L=T({},C);L[I]&&delete L[I],g(""),w(L)},children:at("Cancel")}),p.jsx(nt,{color:"primary",onClick:oe,children:at("Confirm")})]})]})})]})})}),ls=_.connect(hp,_.mapProps(t=>{const e=T({},t),n=_.useFieldSchema(),r=m.useCollectionManager().getCollection(n["x-collection-field"]),s=_.useField(),a=m.useCollectionField(),l=s.dataSource||(a==null?void 0:a.uiSchema.enum)||[];return r&&(e.collectionName=r.name),typeof e.value!="object"&&(e.value=l.filter(c=>c.value.toString()===(e==null?void 0:e.value))),T({},e)}),_.mapReadPretty(t=>{var n,o;const e=m.useCollectionField();if(typeof t.value=="object")return p.jsx(m.AssociationField.ReadPretty,T({},t));{const r=(o=(n=e==null?void 0:e.uiSchema)==null?void 0:n.enum)==null?void 0:o.find(s=>s.value===t.value);return p.jsx(Yr,{color:ss(r==null?void 0:r.color),children:r==null?void 0:r.label})}})),gp=m.createStyles(({css:t})=>({PopupStyle:t`
314
+ `,children:p.jsx(m.MobileProvider,{children:p.jsx(m.ActionContextProvider,{visible:n,setVisible:o,children:p.jsx(_.RecursionField,{schema:r,onlyRenderProperties:!0})})})})]})},{displayName:"CreateRecordAction"}),hp=_.observer(t=>{const{value:e,collectionName:n,service:o,fieldNames:r,addMode:s,onChange:a,multiple:l,mode:c}=t,[u,d]=i.useState(!1),[f,g]=i.useState(""),{styles:b}=mp(),[x,y]=i.useState([]),h=_.useFieldSchema(),v=m.useCollectionManager(),k=m.useCollection(),[S]=m.useFieldServiceFilter(o==null?void 0:o.params),[C,w]=i.useState({}),E=m.useAPIClient(),I=(r==null?void 0:r.label)||"label",P=(r==null?void 0:r.value)||"value",N=i.useMemo(()=>Ue.isArray(e)?e.map(L=>L[P]):e&&typeof e=="object"?[e[P]]:[],[e,P]),[$,A]=i.useState([]),V=i.useMemo(()=>x.filter(L=>L[I].includes(f)),[x,f]),M=i.useMemo(()=>Ue.isArray(e)?e.map(L=>L[I]).join(", "):e&&typeof e=="object"?e[I]:"",[e,I]),{run:O}=m.useRequest({resource:n,action:"list",params:{filter:T(T({},S==null?void 0:S.filter),C)}},{manual:!0,onSuccess(L){var Y;if(L){const te=(Y=L.data)==null?void 0:Y.map(ie=>U(T({},ie),{label:ie[I],value:ie[P]}));y(te)}}}),K=()=>{var L;if(n)O();else if(h["x-collection-field"]){const te=(L=v.getCollectionField(h["x-collection-field"]).uiSchema)==null?void 0:L.enum;y(te)}else y(h.enum)},G=()=>le(null,null,function*(){(yield E.request({url:n+":create",method:"post",data:{[I]:f}})).status===200?Jr.show({icon:"success",content:at("Add success")}):Jr.show({icon:"fail",content:at("Add failed")});const Y=T({},C);delete Y[I],w(Y),g(""),d(!1)}),me=L=>{g(L),w(U(T({},C),{[I]:{$includes:L}}))},ve=L=>{A(L)},oe=()=>{const L=T({},C);L[I]&&delete L[I];const Y=x.filter(ie=>$.includes(ie.value)),te=l?Y:Y[0];a(te),d(!1),g(""),w(L)},ue=i.useMemo(()=>Fe.debounce(O,300),[O]);return i.useEffect(()=>(n&&f&&ue(),()=>{ue.cancel()}),[f,ue]),i.useEffect(()=>{K()},[C,u]),i.useEffect(()=>{A(N)},[N]),p.jsx(m.CollectionProvider,{name:n||(k==null?void 0:k.name),children:p.jsxs(m.BlockItem,{children:[p.jsx("div",{onClick:()=>{h["x-disabled"]||(d(!0),K())},style:{color:"#c5c5c5"},children:e!=null&&e.length||e&&!Ue.isArray(e)?p.jsx($t,{style:{"--color":"#1e8bf1"},value:M,disabled:h["x-disabled"]}):p.jsx(In,{children:h["x-disabled"]?"":at("Please select content")})}),p.jsx(Wt,{visible:u,className:`${b.PopupStyle}`,onMaskClick:()=>{d(!1)},children:p.jsxs(m.MobileProvider,{children:[p.jsx(el,{placeholder:at("Please enter search content"),value:f,onChange:me}),f&&s==="quickAdd"?p.jsxs(In,{justify:"center",align:"center",onClick:G,children:["+ ",at("Add")," ",f]}):null,p.jsx(_r,{}),l||c==="multiple"?p.jsx(ho,{multiple:!0,className:`${b.checkListStyle}`,value:$,onChange:ve,children:V.map((L,Y)=>p.jsx(ho.Item,{value:L.value,children:L.label},Y))}):p.jsx(Ar,{value:$,className:`${b.customPickerView}`,columns:[V],onChange:L=>{A(L)}}),p.jsxs(In,{justify:"evenly",align:"center",children:[s==="modalAdd"?p.jsx(m.SchemaComponent,{components:{CreateRecordAction:pp},schema:{type:"void",name:"CreateRecord","x-component":"CreateRecordAction","x-component-props":{fieldSchema:h}}}):null,p.jsx(nt,{color:"primary",onClick:()=>{d(!1);const L=T({},C);L[I]&&delete L[I],g(""),w(L)},children:at("Cancel")}),p.jsx(nt,{color:"primary",onClick:oe,children:at("Confirm")})]})]})})]})})}),ls=_.connect(hp,_.mapProps(t=>{const e=T({},t),n=_.useFieldSchema(),r=m.useCollectionManager().getCollection(n["x-collection-field"]),s=_.useField(),a=m.useCollectionField(),l=s.dataSource||(a==null?void 0:a.uiSchema.enum)||[];return r&&(e.collectionName=r.name),typeof e.value!="object"&&(e.value=l.filter(c=>c.value.toString()===(e==null?void 0:e.value))),T({},e)}),_.mapReadPretty(t=>{var n,o;const e=m.useCollectionField();if(typeof t.value=="object")return p.jsx(m.AssociationField.ReadPretty,T({},t));{const r=(o=(n=e==null?void 0:e.uiSchema)==null?void 0:n.enum)==null?void 0:o.find(s=>s.value===t.value);return p.jsx(Yr,{color:ss(r==null?void 0:r.color),children:r==null?void 0:r.label})}})),gp=m.createStyles(({css:t})=>({PopupStyle:t`
315
315
  .adm-popup-body {
316
316
  padding: 10px;
317
317
  .adm-space {
@@ -331,7 +331,7 @@
331
331
  text-align: center;
332
332
  }
333
333
  }
334
- `})),Il=_.observer(t=>{var ie,Ft;const{service:e,fieldNames:n,disabled:o,useLoadData:r,useDataSource:s,multiple:a,onChange:l,value:c,formCascaderValues:u,index:d}=t,f=_.useFieldSchema(),g=m.useCollectionManager(),{styles:b}=gp(),x=g.getCollectionField(f["x-collection-field"]),y=((ie=f["x-component-props"])==null?void 0:ie.changOnSelect)||!1,h=g.getCollection(f["x-collection-field"]),v=x.interface==="chinaRegion",[k,S]=i.useState([]),[C,w]=i.useState(!1),[E]=m.useFieldServiceFilter(e==null?void 0:e.params),[I,P]=i.useState(E),[N,$]=i.useState(""),[A,V]=i.useState(c),[M,O]=i.useState(""),[K,G]=i.useState([]),me=_.useField(),{loading:ve,run:oe}=m.useRequest({resource:h==null?void 0:h.name,action:"list",params:{filter:I,tree:!0}},{manual:!0,onSuccess({data:X}){if(X){S(X),me.dataSource=X||[];const fe=vp(X);G(fe),c&&O(Fo(fe,c,"",n.label))}}}),ue=r==null?void 0:r(t),{loading:L,run:Y}=(s==null?void 0:s({onSuccess(X){me.dataSource=(X==null?void 0:X.data)||[],S(X==null?void 0:X.data)}}))||{loading:!0,run:null};!M&&c&&v&&O(_l(c,n)),i.useEffect(()=>{!v&&(h!=null&&h.name)&&ce()},[I]),i.useEffect(()=>{!v&&K.length&&O(Fo(K,c,"",n.label))},[(Ft=f["x-component-props"])==null?void 0:Ft.fieldNames]);const te=X=>ae(null,null,function*(){V(X?v?X:X[X.length-1]:{})}),ce=()=>{v?Y():oe()};return p.jsxs(m.CollectionProvider,{name:x.collectionName,children:[p.jsxs("div",{onClick:()=>{o||(w(!0),ce())},style:{display:"flex",alignItems:"center"},children:[c&&Object.keys(c).length?p.jsx($t,{style:{"--color":"#1e8bf1"},value:M,disabled:o,clearable:!1}):p.jsx($t,{value:M?"":"请选择",style:{"--color":"#c5c5c5"}}),c&&Object.keys(c).length||u&&d!==0?p.jsx(Jn,{style:{margin:"5px 10px 5px 20px"},onClick:()=>{if(d){const X=[...u];u.length===1&&d===0?X[d]={}:X.splice(d,1),l(X)}else l({})}}):null]}),p.jsx(Wt,{visible:C,className:`${b.PopupStyle}`,onMaskClick:()=>{w(!1)},children:p.jsxs(m.MobileProvider,{children:[v?null:p.jsxs(p.Fragment,{children:[p.jsx(el,{placeholder:"请输入内容",value:N,onChange:X=>{const fe=T({},I);fe[n.label]={$includes:X},P(fe),$(X)}}),p.jsx(_r,{})]}),p.jsx(p0,{loading:v?L:ve,fieldNames:n,options:k,onChange:(X,fe)=>{if(v){const D=me.componentProps.maxLevel,ne=fe.items[fe.items.length-1];D>ne.level&&(ne.children=[]),ue(fe.items,re=>{re!=null&&re.data.length&&(ne.children=re.data.map(we=>(D>we.level&&(we.isLeaf=!1),we)),S([...k]))})}te(fe.items)}}),p.jsxs(In,{justify:"evenly",align:"center",children:[p.jsx(nt,{color:"primary",onClick:()=>{w(!1);const X=T({},I);X[n.label]&&delete X[n.label],$(""),P(X)},children:"取消"}),p.jsx(nt,{color:"primary",onClick:()=>{const X=a?bp(u,A,d):A;l(X);const fe=v?_l(A,n):Fo(K,A,"",n.label);if(O(fe),w(!1),!v){const D=T({},I);delete D[n.label],$(""),P(D)}},disabled:y?!(A&&A!=="{}"):!(A&&A!=="{}"&&(!(A!=null&&A.children)||!(A!=null&&A.children.length))),children:"确定"})]})]})})]})}),Fo=(t,e,n,o)=>{const r=`${(e==null?void 0:e[o])||""}${n}`;if(e!=null&&e.parentId){const s=t.find(l=>l.id===e.parentId),a=`/${r}`;return Fo(t,s,a,o)}return r},vp=t=>{const e=(o,r)=>(r.push(o),o!=null&&o.children&&o.children.forEach(s=>e(s,r)),r),n=[];return t.forEach(o=>{const r=e(o,[]);n.push(...r)}),n},bp=(t,e,n)=>{const o=[];return t&&(n||n===0)?(t[n]=e,o.push(...t)):o.push(e),o},_l=(t,e)=>t==null?void 0:t.reduce((n,o,r)=>n+`${o[e.label]}${t.length-1===r?"":"/"}`,""),yp=_.observer(t=>{const{value:e,onChange:n,multiple:o}=t,{t:r}=m.useTranslation();return p.jsxs(p.Fragment,{children:[Ue.isArray(e)&&o?p.jsx(p.Fragment,{children:e.map((s,a)=>{const l=U(T({},t),{value:s,formCascaderValues:e||[],index:a});return i.createElement(Il,U(T({},l),{key:a}))})}):p.jsx(Il,T({},t)),o?p.jsx(p.Fragment,{children:p.jsxs(nt,{style:{textAlign:"center",width:"100%",border:"1px dashed #c5c5c5",color:"#c5c5c5",fontSize:"12px",height:"5vh",lineHeight:"2vh"},onClick:()=>{const s=e?[...e,{}]:[{},{}];n(s)},children:["+ ",r("Add new")]})}):null]})}),xp={label:"label",value:"value",children:"children"},Cp=t=>{const{fieldNames:e=xp}=t,n=_.toArr(t.value),o=n.length;let s=_.useField().dataSource;const a=[];for(const l of n)if(typeof l=="object")a.push(l);else{const c=s==null?void 0:s.find(u=>u[e.value]===l);s=(c==null?void 0:c[e.children])||[],a.push(c||{label:l,value:l})}return p.jsx("div",{children:a.map((l,c)=>p.jsxs("span",{children:[typeof l=="object"?l[e.label]:l,o>c+1&&" / "]},c))})},Pl=_.connect(yp,_.mapProps(t=>T({},t)),_.mapReadPretty(t=>{const e=_.useFieldSchema();return m.useCollectionManager().getCollectionField(e["x-collection-field"]).interface==="chinaRegion"?p.jsx(Cp,T({},t)):p.jsx(m.AssociationField.ReadPretty,T({},t))})),Sp=i.createContext(null),$l=()=>i.useContext(Sp),kp=m.css`
334
+ `})),Il=_.observer(t=>{var ae,Ft;const{service:e,fieldNames:n,disabled:o,useLoadData:r,useDataSource:s,multiple:a,onChange:l,value:c,formCascaderValues:u,index:d}=t,f=_.useFieldSchema(),g=m.useCollectionManager(),{styles:b}=gp(),x=g.getCollectionField(f["x-collection-field"]),y=((ae=f["x-component-props"])==null?void 0:ae.changOnSelect)||!1,h=g.getCollection(f["x-collection-field"]),v=x.interface==="chinaRegion",[k,S]=i.useState([]),[C,w]=i.useState(!1),[E]=m.useFieldServiceFilter(e==null?void 0:e.params),[I,P]=i.useState(E),[N,$]=i.useState(""),[A,V]=i.useState(c),[M,O]=i.useState(""),[K,G]=i.useState([]),me=_.useField(),{loading:ve,run:oe}=m.useRequest({resource:h==null?void 0:h.name,action:"list",params:{filter:I,tree:!0}},{manual:!0,onSuccess({data:X}){if(X){S(X),me.dataSource=X||[];const fe=vp(X);G(fe),c&&O(Fo(fe,c,"",n.label))}}}),ue=r==null?void 0:r(t),{loading:L,run:Y}=(s==null?void 0:s({onSuccess(X){me.dataSource=(X==null?void 0:X.data)||[],S(X==null?void 0:X.data)}}))||{loading:!0,run:null};!M&&c&&v&&O(_l(c,n)),i.useEffect(()=>{!v&&(h!=null&&h.name)&&ie()},[I]),i.useEffect(()=>{!v&&K.length&&O(Fo(K,c,"",n.label))},[(Ft=f["x-component-props"])==null?void 0:Ft.fieldNames]);const te=X=>le(null,null,function*(){V(X?v?X:X[X.length-1]:{})}),ie=()=>{v?Y():oe()};return p.jsxs(m.CollectionProvider,{name:x.collectionName,children:[p.jsxs("div",{onClick:()=>{o||(w(!0),ie())},style:{display:"flex",alignItems:"center"},children:[c&&Object.keys(c).length?p.jsx($t,{style:{"--color":"#1e8bf1"},value:M,disabled:o,clearable:!1}):p.jsx($t,{value:M?"":"请选择",style:{"--color":"#c5c5c5"}}),c&&Object.keys(c).length||u&&d!==0?p.jsx(Jn,{style:{margin:"5px 10px 5px 20px"},onClick:()=>{if(d){const X=[...u];u.length===1&&d===0?X[d]={}:X.splice(d,1),l(X)}else l({})}}):null]}),p.jsx(Wt,{visible:C,className:`${b.PopupStyle}`,onMaskClick:()=>{w(!1)},children:p.jsxs(m.MobileProvider,{children:[v?null:p.jsxs(p.Fragment,{children:[p.jsx(el,{placeholder:"请输入内容",value:N,onChange:X=>{const fe=T({},I);fe[n.label]={$includes:X},P(fe),$(X)}}),p.jsx(_r,{})]}),p.jsx(p0,{loading:v?L:ve,fieldNames:n,options:k,onChange:(X,fe)=>{if(v){const D=me.componentProps.maxLevel,ne=fe.items[fe.items.length-1];D>ne.level&&(ne.children=[]),ue(fe.items,re=>{re!=null&&re.data.length&&(ne.children=re.data.map(we=>(D>we.level&&(we.isLeaf=!1),we)),S([...k]))})}te(fe.items)}}),p.jsxs(In,{justify:"evenly",align:"center",children:[p.jsx(nt,{color:"primary",onClick:()=>{w(!1);const X=T({},I);X[n.label]&&delete X[n.label],$(""),P(X)},children:"取消"}),p.jsx(nt,{color:"primary",onClick:()=>{const X=a?bp(u,A,d):A;l(X);const fe=v?_l(A,n):Fo(K,A,"",n.label);if(O(fe),w(!1),!v){const D=T({},I);delete D[n.label],$(""),P(D)}},disabled:y?!(A&&A!=="{}"):!(A&&A!=="{}"&&(!(A!=null&&A.children)||!(A!=null&&A.children.length))),children:"确定"})]})]})})]})}),Fo=(t,e,n,o)=>{const r=`${(e==null?void 0:e[o])||""}${n}`;if(e!=null&&e.parentId){const s=t.find(l=>l.id===e.parentId),a=`/${r}`;return Fo(t,s,a,o)}return r},vp=t=>{const e=(o,r)=>(r.push(o),o!=null&&o.children&&o.children.forEach(s=>e(s,r)),r),n=[];return t.forEach(o=>{const r=e(o,[]);n.push(...r)}),n},bp=(t,e,n)=>{const o=[];return t&&(n||n===0)?(t[n]=e,o.push(...t)):o.push(e),o},_l=(t,e)=>t==null?void 0:t.reduce((n,o,r)=>n+`${o[e.label]}${t.length-1===r?"":"/"}`,""),yp=_.observer(t=>{const{value:e,onChange:n,multiple:o}=t,{t:r}=m.useTranslation();return p.jsxs(p.Fragment,{children:[Ue.isArray(e)&&o?p.jsx(p.Fragment,{children:e.map((s,a)=>{const l=U(T({},t),{value:s,formCascaderValues:e||[],index:a});return i.createElement(Il,U(T({},l),{key:a}))})}):p.jsx(Il,T({},t)),o?p.jsx(p.Fragment,{children:p.jsxs(nt,{style:{textAlign:"center",width:"100%",border:"1px dashed #c5c5c5",color:"#c5c5c5",fontSize:"12px",height:"5vh",lineHeight:"2vh"},onClick:()=>{const s=e?[...e,{}]:[{},{}];n(s)},children:["+ ",r("Add new")]})}):null]})}),xp={label:"label",value:"value",children:"children"},Cp=t=>{const{fieldNames:e=xp}=t,n=_.toArr(t.value),o=n.length;let s=_.useField().dataSource;const a=[];for(const l of n)if(typeof l=="object")a.push(l);else{const c=s==null?void 0:s.find(u=>u[e.value]===l);s=(c==null?void 0:c[e.children])||[],a.push(c||{label:l,value:l})}return p.jsx("div",{children:a.map((l,c)=>p.jsxs("span",{children:[typeof l=="object"?l[e.label]:l,o>c+1&&" / "]},c))})},Pl=_.connect(yp,_.mapProps(t=>T({},t)),_.mapReadPretty(t=>{const e=_.useFieldSchema();return m.useCollectionManager().getCollectionField(e["x-collection-field"]).interface==="chinaRegion"?p.jsx(Cp,T({},t)):p.jsx(m.AssociationField.ReadPretty,T({},t))})),Sp=i.createContext(null),$l=()=>i.useContext(Sp),kp=m.css`
335
335
  padding: 0 var(--tb-spacing);
336
336
  & > .tb-action-bar {
337
337
  padding: unset !important;
@@ -352,7 +352,7 @@
352
352
  height: 3.5vh;
353
353
  font-size: 50px;
354
354
  }
355
- `}):p.jsx(m.AppNotFound,{})},Fl=()=>window.JsBridge,Pp=(t,e)=>Fl().invoke(t,e),$p=()=>!!Fl(),Tl={onBackPressed:()=>{history.length===1?Pp({action:"moveTaskToBack"}):history.back()}};Object.keys(Tl).forEach(t=>{window[t]=Tl[t]});const Ml=i.memo(t=>{const e=R.useLocation(),n=R.useNavigate();return i.useEffect(()=>{$p()&&e.pathname==="/admin"&&n("/mobile",{replace:!0})},[e.pathname,n]),p.jsx(p.Fragment,{children:t.children})});Ml.displayName="MobileClientProvider";const Fp=()=>{const t=R.useNavigate(),{token:e}=m.useToken(),{t:n}=m.useTranslation();return p.jsx(se.Tooltip,{title:n("Mobile UI"),children:p.jsx(se.Button,{icon:p.jsx(Ve.MobileOutlined,{style:{color:e.colorTextHeaderMenu}}),title:n("Mobile UI"),onClick:()=>{t("/mobile")}})})},Tp=t=>p.jsx(m.PinnedPluginListProvider,{items:{me:{order:210,component:"MobileLink",pin:!0,isPublic:!0,belongTo:"pinnedmenu"}},children:p.jsx(m.SchemaComponentOptions,{components:{MobileLink:Fp},children:t.children})}),Nl=()=>{const t=_.useFieldSchema(),{t:e}=We.useTranslation(),{duplicateData:n}=m.useFormBlockContext(),o=m.useCollectionManager();if(n)return n;const{items:r=[],display:s=!0}=Np(t);r.forEach(c=>{var u;try{c.fields=(u=c.fields)==null?void 0:u.map(d=>o.getCollectionField(`${c.collection}.${d}`)?d:"").filter(Boolean)}catch(d){Ue.error(d),c.fields=[]}});const a=[{key:"none",title:e("None")}].concat(r.map((c,u)=>U(T({key:u},c),{isLeaf:c.dataId!==null&&c.dataId!==void 0,titleCollectionField:(c==null?void 0:c.titleField)&&o.getCollectionField(`${c.collection}.${c.titleField}`)}))),l=r.find(c=>c.default);return{templates:a,display:s,defaultTemplate:l,enabled:r.length>0&&r.every(c=>c.dataId||c.dataScope)}},Mp=({style:t={},templateKey:e="none",collection:n})=>{const o=_.useForm(),{templates:r,enabled:s,defaultTemplate:a}=Nl(),l=m.useCollectionManager(),c=m.compatibleDataId(r),u=e,[d,f]=i.useState(null),g=m.useAPIClient(),{t:b}=We.useTranslation();i.useEffect(()=>{s&&a&&(o.__template=!0,a.key==="duplicate"&&y(a.dataId,a))},[]),i.useEffect(()=>{c!=null&&c.some(v=>v.key===u)||x("none")},[c]);const x=i.useCallback(v=>ae(null,null,function*(){f(null),o==null||o.reset()}),[]),y=i.useCallback((v,k)=>ae(null,null,function*(){const S=U(T({},k),{dataId:v});f(k),Op(g,S).then(C=>(o&&C&&(o.reset(),o.__template=!0,Ue.forEach(C,(w,E)=>{var I;w&&(o.values[E]=w,(I=o==null?void 0:o.setInitialValuesIn)==null||I.call(o,E,w))})),C)).catch(C=>{console.error(C)})}),[]);if(!s)return null;const h=c==null?void 0:c.find(v=>v.key===u);return h&&n&&(h.collection=n),u!=="none"&&h&&p.jsx(m.RemoteSelect,{fieldNames:{label:h==null?void 0:h.titleField,value:"id"},target:h==null?void 0:h.collection,value:d,objectValue:!0,service:{resource:h==null?void 0:h.collection,params:{filter:h==null?void 0:h.dataScope}},onChange:v=>y(v==null?void 0:v.id,T(T({},v),h)),targetField:l.getCollectionField(`${h==null?void 0:h.collection}.${h.titleField}`)})};function Np(t){const e=m.findFormBlock(t);return e?Fe.cloneDeep(e["x-data-templates"])||{}:{}}function Op(t,e,n){return ae(this,null,function*(){if(!(e.fields.length===0||!e.dataId))return t.resource(e.collection).get({filterByTk:e.dataId,fields:e.fields,isTemplate:!0}).then(o=>{var r;return(r=o.data)==null?void 0:r.data})})}const Ap=new m.SchemaSettings({name:"fieldSettings:component:DataSelect",items:[{name:"templateSelect",type:"select",useComponentProps(){var a;const{templates:t}=Nl(),e=m.compatibleDataId(t),{t:n}=m.useTranslation(),o=_.useField(),r=_.useFieldSchema(),{dn:s}=m.useDesignable();return{title:n("Template Select"),value:((a=o.componentProps)==null?void 0:a.templateKey)||"none",fieldNames:{label:"title",value:"key"},options:e,onChange(l){const c={"x-uid":r["x-uid"]};r["x-component-props"].templateKey=l,r["x-acl-ignore"]=!0,c["x-component-props"]=r["x-component-props"],c["x-acl-ignore"]=!0,o.componentProps.templateKey=l,s.emit("patch",{schema:c})}}}},{name:"collectionSelect",type:"select",useComponentProps(){var l;const t=m.useCollectionManager(),e=m.useCompile(),n=t.getCollections().map(c=>({label:e(c.title),value:c.name})),{t:o}=m.useTranslation(),r=_.useField(),s=_.useFieldSchema(),{dn:a}=m.useDesignable();return{title:o("Collection Select"),value:(l=r.componentProps)==null?void 0:l.collection,options:n,onChange(c){const u={"x-uid":s["x-uid"]};s["x-component-props"].collection=c,s["x-acl-ignore"]=!0,u["x-component-props"]=s["x-component-props"],u["x-acl-ignore"]=!0,r.componentProps.collection=c,a.emit("patch",{schema:u})}}}}]});class Dp extends m.Plugin{load(){return ae(this,null,function*(){this.app.addComponents({DataSelect:Mp}),this.app.schemaSettingsManager.add(Ap);const e={name:"SelectData",title:this.t("Select Data"),Component:"BlockItemInitializer",schema:{type:"void","x-decorator":"FormItem","x-settings":"fieldSettings:FormItem","x-component":"DataSelect","x-component-props":{mode:"DataSelect"}}};this.app.schemaInitializerManager.addItem("form:configureFields",e.name,e),this.app.schemaInitializerManager.addItem("details:configureFields",e.name,e)})}}const Lp="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20width='1em'%20height='1em'%20fill='currentColor'%3e%3cpath%20d='M338.773333%20362.666667H170.666667v298.666666h105.578666l45.013334%200.021334%2017.258666%200.426666L682.666667%20809.258667V214.890667L338.773333%20362.666667z%20m-17.578666-85.333334L768%2085.333333v853.333334l-448-191.978667L85.333333%20746.666667V277.333333h235.861334zM170.666667%20661.333333v85.333334h85.333333v-85.333334H170.666667zM853.333333%20298.666667h85.333334v426.666666h-85.333334z'%20fill='%23000000'%20%3e%3c/path%3e%3c/svg%3e",Bp="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20width='1em'%20height='1em'%20fill='currentColor'%3e%3cpath%20d='M0%20219.428571h73.142857v585.142858H0V219.428571z%20m950.857143%200h73.142857v585.142858h-73.142857V219.428571z%20m-146.285714-146.285714a73.142857%2073.142857%200%200%201%2073.142857%2073.142857v731.428572a73.142857%2073.142857%200%200%201-73.142857%2073.142857H219.428571a73.142857%2073.142857%200%200%201-73.142857-73.142857V146.285714a73.142857%2073.142857%200%200%201%2073.142857-73.142857h585.142858z%20m0%2073.142857H219.428571v731.428572h585.142858V146.285714zM365.714286%20694.857143a36.571429%2036.571429%200%201%201%200%2073.142857%2036.571429%2036.571429%200%200%201%200-73.142857z%20m146.285714%200a36.571429%2036.571429%200%201%201%200%2073.142857%2036.571429%2036.571429%200%200%201%200-73.142857z%20m146.285714%200a36.571429%2036.571429%200%201%201%200%2073.142857%2036.571429%2036.571429%200%200%201%200-73.142857z'%3e%3c/path%3e%3c/svg%3e",Vp="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20width='1em'%20height='1em'%20fill='currentColor'%3e%3cpath%20d='M1263.243636%20908.939636l-156.485818-156.392727c25.6-37.050182%2039.842909-79.685818%2039.842909-128.093091%200-125.114182-102.4-227.514182-227.607272-227.514182a228.258909%20228.258909%200%200%200-227.514182%20227.514182c0%20125.207273%20102.4%20227.607273%20227.514182%20227.607273%2048.407273%200%2091.042909-14.242909%20128-39.842909l156.392727%20156.392727a41.239273%2041.239273%200%200%200%2059.764363%200c19.921455-17.035636%2019.921455-45.428364%200-59.671273zM921.786182%20766.696727a140.846545%20140.846545%200%200%201-142.242909-142.242909c0-79.592727%2062.557091-142.149818%20142.242909-142.149818%2079.592727%200%20142.242909%2062.557091%20142.242909%20142.149818%200%2079.685818-62.650182%20142.242909-142.242909%20142.242909z'%3e%3c/path%3e%3cpath%20d='M694.272%20894.696727H111.150545v-512h583.121455a43.752727%2043.752727%200%200%200%2042.728727-42.635636%2043.752727%2043.752727%200%200%200-42.728727-42.728727H111.150545V98.304h853.364364v156.392727a43.752727%2043.752727%200%200%200%2042.635636%2042.635637%2043.752727%2043.752727%200%200%200%2042.728728-42.635637V69.818182a57.064727%2057.064727%200%200%200-56.878546-56.878546H82.757818A57.064727%2057.064727%200%200%200%2025.879273%2069.818182v853.364363c0%2031.278545%2025.6%2056.785455%2056.785454%2056.785455h611.607273a43.752727%2043.752727%200%200%200%2042.728727-42.635636%2043.752727%2043.752727%200%200%200-42.728727-42.635637z'%3e%3c/path%3e%3cpath%20d='M637.393455%20155.182545c-22.714182%200-42.635636%2021.690182-42.635637%2046.545455%200%2024.762182%2019.921455%2046.545455%2042.635637%2046.545455h28.485818c22.714182%200%2042.635636-21.783273%2042.635636-46.545455%200-24.855273-19.921455-46.545455-42.635636-46.545455h-28.485818z%20m-199.121455%200c-22.714182%200-42.635636%2021.690182-42.635636%2046.545455%200%2024.762182%2019.921455%2046.545455%2042.635636%2046.545455h28.485818c22.714182%200%2042.635636-21.783273%2042.635637-46.545455%200-24.855273-19.921455-46.545455-42.635637-46.545455h-28.485818z%20m-199.121455%200c-22.714182%200-42.635636%2021.690182-42.635636%2046.545455%200%2024.762182%2019.921455%2046.545455%2042.635636%2046.545455h28.485819c22.714182%200%2042.635636-21.783273%2042.635636-46.545455%200-24.855273-19.921455-46.545455-42.635636-46.545455h-28.485819z'%3e%3c/path%3e%3c/svg%3e";let zp=t=>decodeURI(t).replace("data:image/svg+xml,","");const cs=t=>()=>p.jsx("div",{dangerouslySetInnerHTML:{__html:zp(t)}}),Zp=t=>p.jsx(m.Icon,T({component:cs(Lp)},t)),jp=t=>p.jsx(m.Icon,T({component:cs(Bp)},t)),Kp=t=>p.jsx(m.Icon,T({component:cs(Vp)},t));m.Icon.register({"notice-block":Zp,"swiper-block":jp,"tab-search":Kp});const Wp=t=>p.jsx(m.MobileProvider,{children:p.jsx(m.SchemaComponentOptions,{components:{MMenuBlockInitializer:ac,MSettingsBlockInitializer:sm,MContainer:es,MMenu:Qr,MTabBar:ts,MPage:ns,MHeader:fl,MSettings:ml,SwiperBlockInitializer:Mm,SwiperBlock:Tm,SwiperPage:gl,TabSearch:Am,TabSearchProvider:ap,TabSearchBlockInitializer:Rm,TabSearchFieldItem:Gm,TabSearchFieldMItem:qm,TabSearchCollapsibleInputItem:Zm,TabSearchCollapsibleInputMItem:Hm,TabSearchFieldSchemaInitializerGadget:ip,ImageSearchView:ym,ImageSearchInitializer:vm,ImageSearchProvider:bm,ImageSearchItemIntializer:Cm,ImageSearchItemToolbar:km,ImageSearchItemView:wm,MInput:$t,MCheckbox:is,MDatePicker:El,MRadio:as,MImageUploader:dp,MCascader:Pl,MSelect:ls,Input:$t,"Input.TextArea":$t.TextArea,"Radio.Group":as.Group,"Checkbox.Group":is.Group,DatePicker:El,Select:ls,AlternativeAssociationSelect:ls,Cascader:Pl},scope:{useGridCardBlockItemProps:wp,useGridCardBlockProps:Ip,useSwiperBlockProps:Om,usePropsOptionalImageSearchItemField:_m,usePropsRelatedImageSearchItemField:$m,useTabSearchFieldItemProps:Ym,useTabSearchFieldItemRelatedProps:Jm},children:t.children})}),Up=()=>{const{t}=m.useTranslation(),e=m.useApp(),n=()=>{const o=window.location,r=o.hash.slice(o.hash.indexOf("/"));window.open(e.getRouteUrl(r))};return p.jsx("div",{className:m.css`
355
+ `}):p.jsx(m.AppNotFound,{})},Fl=()=>window.JsBridge,Pp=(t,e)=>Fl().invoke(t,e),$p=()=>!!Fl(),Tl={onBackPressed:()=>{history.length===1?Pp({action:"moveTaskToBack"}):history.back()}};Object.keys(Tl).forEach(t=>{window[t]=Tl[t]});const Ml=i.memo(t=>{const e=R.useLocation(),n=R.useNavigate();return i.useEffect(()=>{$p()&&e.pathname==="/admin"&&n("/mobile",{replace:!0})},[e.pathname,n]),p.jsx(p.Fragment,{children:t.children})});Ml.displayName="MobileClientProvider";const Fp=()=>{const t=R.useNavigate(),{token:e}=m.useToken(),{t:n}=m.useTranslation();return p.jsx(se.Tooltip,{title:n("Mobile UI"),children:p.jsx(se.Button,{icon:p.jsx(Ve.MobileOutlined,{style:{color:e.colorTextHeaderMenu}}),title:n("Mobile UI"),onClick:()=>{t("/mobile")}})})},Tp=t=>p.jsx(m.PinnedPluginListProvider,{items:{me:{order:210,component:"MobileLink",pin:!0,isPublic:!0,belongTo:"pinnedmenu"}},children:p.jsx(m.SchemaComponentOptions,{components:{MobileLink:Fp},children:t.children})}),Nl=()=>{const t=_.useFieldSchema(),{t:e}=We.useTranslation(),{duplicateData:n}=m.useFormBlockContext(),o=m.useCollectionManager();if(n)return n;const{items:r=[],display:s=!0}=Np(t);r.forEach(c=>{var u;try{c.fields=(u=c.fields)==null?void 0:u.map(d=>o.getCollectionField(`${c.collection}.${d}`)?d:"").filter(Boolean)}catch(d){Ue.error(d),c.fields=[]}});const a=[{key:"none",title:e("None")}].concat(r.map((c,u)=>U(T({key:u},c),{isLeaf:c.dataId!==null&&c.dataId!==void 0,titleCollectionField:(c==null?void 0:c.titleField)&&o.getCollectionField(`${c.collection}.${c.titleField}`)}))),l=r.find(c=>c.default);return{templates:a,display:s,defaultTemplate:l,enabled:r.length>0&&r.every(c=>c.dataId||c.dataScope)}},Mp=({style:t={},templateKey:e="none",collection:n})=>{const o=_.useForm(),{templates:r,enabled:s,defaultTemplate:a}=Nl(),l=m.useCollectionManager(),c=m.compatibleDataId(r),u=e,[d,f]=i.useState(null),g=m.useAPIClient(),{t:b}=We.useTranslation();i.useEffect(()=>{s&&a&&(o.__template=!0,a.key==="duplicate"&&y(a.dataId,a))},[]),i.useEffect(()=>{c!=null&&c.some(v=>v.key===u)||x("none")},[c]);const x=i.useCallback(v=>le(null,null,function*(){f(null),o==null||o.reset()}),[]),y=i.useCallback((v,k)=>le(null,null,function*(){const S=U(T({},k),{dataId:v});f(k),Op(g,S).then(C=>(o&&C&&(o.reset(),o.__template=!0,Ue.forEach(C,(w,E)=>{var I;w&&(o.values[E]=w,(I=o==null?void 0:o.setInitialValuesIn)==null||I.call(o,E,w))})),C)).catch(C=>{console.error(C)})}),[]);if(!s)return null;const h=c==null?void 0:c.find(v=>v.key===u);return h&&n&&(h.collection=n),u!=="none"&&h&&p.jsx(m.RemoteSelect,{fieldNames:{label:h==null?void 0:h.titleField,value:"id"},target:h==null?void 0:h.collection,value:d,objectValue:!0,service:{resource:h==null?void 0:h.collection,params:{filter:h==null?void 0:h.dataScope}},onChange:v=>y(v==null?void 0:v.id,T(T({},v),h)),targetField:l.getCollectionField(`${h==null?void 0:h.collection}.${h.titleField}`)})};function Np(t){const e=m.findFormBlock(t);return e?Fe.cloneDeep(e["x-data-templates"])||{}:{}}function Op(t,e,n){return le(this,null,function*(){if(!(e.fields.length===0||!e.dataId))return t.resource(e.collection).get({filterByTk:e.dataId,fields:e.fields,isTemplate:!0}).then(o=>{var r;return(r=o.data)==null?void 0:r.data})})}const Ap=new m.SchemaSettings({name:"fieldSettings:component:DataSelect",items:[{name:"templateSelect",type:"select",useComponentProps(){var a;const{templates:t}=Nl(),e=m.compatibleDataId(t),{t:n}=m.useTranslation(),o=_.useField(),r=_.useFieldSchema(),{dn:s}=m.useDesignable();return{title:n("Template Select"),value:((a=o.componentProps)==null?void 0:a.templateKey)||"none",fieldNames:{label:"title",value:"key"},options:e,onChange(l){const c={"x-uid":r["x-uid"]};r["x-component-props"].templateKey=l,r["x-acl-ignore"]=!0,c["x-component-props"]=r["x-component-props"],c["x-acl-ignore"]=!0,o.componentProps.templateKey=l,s.emit("patch",{schema:c})}}}},{name:"collectionSelect",type:"select",useComponentProps(){var l;const t=m.useCollectionManager(),e=m.useCompile(),n=t.getCollections().map(c=>({label:e(c.title),value:c.name})),{t:o}=m.useTranslation(),r=_.useField(),s=_.useFieldSchema(),{dn:a}=m.useDesignable();return{title:o("Collection Select"),value:(l=r.componentProps)==null?void 0:l.collection,options:n,onChange(c){const u={"x-uid":s["x-uid"]};s["x-component-props"].collection=c,s["x-acl-ignore"]=!0,u["x-component-props"]=s["x-component-props"],u["x-acl-ignore"]=!0,r.componentProps.collection=c,a.emit("patch",{schema:u})}}}}]});class Dp extends m.Plugin{load(){return le(this,null,function*(){this.app.addComponents({DataSelect:Mp}),this.app.schemaSettingsManager.add(Ap);const e={name:"SelectData",title:this.t("Select Data"),Component:"BlockItemInitializer",schema:{type:"void","x-decorator":"FormItem","x-settings":"fieldSettings:FormItem","x-component":"DataSelect","x-component-props":{mode:"DataSelect"}}};this.app.schemaInitializerManager.addItem("form:configureFields",e.name,e),this.app.schemaInitializerManager.addItem("details:configureFields",e.name,e)})}}const Lp="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20width='1em'%20height='1em'%20fill='currentColor'%3e%3cpath%20d='M338.773333%20362.666667H170.666667v298.666666h105.578666l45.013334%200.021334%2017.258666%200.426666L682.666667%20809.258667V214.890667L338.773333%20362.666667z%20m-17.578666-85.333334L768%2085.333333v853.333334l-448-191.978667L85.333333%20746.666667V277.333333h235.861334zM170.666667%20661.333333v85.333334h85.333333v-85.333334H170.666667zM853.333333%20298.666667h85.333334v426.666666h-85.333334z'%20fill='%23000000'%20%3e%3c/path%3e%3c/svg%3e",Bp="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20width='1em'%20height='1em'%20fill='currentColor'%3e%3cpath%20d='M0%20219.428571h73.142857v585.142858H0V219.428571z%20m950.857143%200h73.142857v585.142858h-73.142857V219.428571z%20m-146.285714-146.285714a73.142857%2073.142857%200%200%201%2073.142857%2073.142857v731.428572a73.142857%2073.142857%200%200%201-73.142857%2073.142857H219.428571a73.142857%2073.142857%200%200%201-73.142857-73.142857V146.285714a73.142857%2073.142857%200%200%201%2073.142857-73.142857h585.142858z%20m0%2073.142857H219.428571v731.428572h585.142858V146.285714zM365.714286%20694.857143a36.571429%2036.571429%200%201%201%200%2073.142857%2036.571429%2036.571429%200%200%201%200-73.142857z%20m146.285714%200a36.571429%2036.571429%200%201%201%200%2073.142857%2036.571429%2036.571429%200%200%201%200-73.142857z%20m146.285714%200a36.571429%2036.571429%200%201%201%200%2073.142857%2036.571429%2036.571429%200%200%201%200-73.142857z'%3e%3c/path%3e%3c/svg%3e",Vp="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20width='1em'%20height='1em'%20fill='currentColor'%3e%3cpath%20d='M1263.243636%20908.939636l-156.485818-156.392727c25.6-37.050182%2039.842909-79.685818%2039.842909-128.093091%200-125.114182-102.4-227.514182-227.607272-227.514182a228.258909%20228.258909%200%200%200-227.514182%20227.514182c0%20125.207273%20102.4%20227.607273%20227.514182%20227.607273%2048.407273%200%2091.042909-14.242909%20128-39.842909l156.392727%20156.392727a41.239273%2041.239273%200%200%200%2059.764363%200c19.921455-17.035636%2019.921455-45.428364%200-59.671273zM921.786182%20766.696727a140.846545%20140.846545%200%200%201-142.242909-142.242909c0-79.592727%2062.557091-142.149818%20142.242909-142.149818%2079.592727%200%20142.242909%2062.557091%20142.242909%20142.149818%200%2079.685818-62.650182%20142.242909-142.242909%20142.242909z'%3e%3c/path%3e%3cpath%20d='M694.272%20894.696727H111.150545v-512h583.121455a43.752727%2043.752727%200%200%200%2042.728727-42.635636%2043.752727%2043.752727%200%200%200-42.728727-42.728727H111.150545V98.304h853.364364v156.392727a43.752727%2043.752727%200%200%200%2042.635636%2042.635637%2043.752727%2043.752727%200%200%200%2042.728728-42.635637V69.818182a57.064727%2057.064727%200%200%200-56.878546-56.878546H82.757818A57.064727%2057.064727%200%200%200%2025.879273%2069.818182v853.364363c0%2031.278545%2025.6%2056.785455%2056.785454%2056.785455h611.607273a43.752727%2043.752727%200%200%200%2042.728727-42.635636%2043.752727%2043.752727%200%200%200-42.728727-42.635637z'%3e%3c/path%3e%3cpath%20d='M637.393455%20155.182545c-22.714182%200-42.635636%2021.690182-42.635637%2046.545455%200%2024.762182%2019.921455%2046.545455%2042.635637%2046.545455h28.485818c22.714182%200%2042.635636-21.783273%2042.635636-46.545455%200-24.855273-19.921455-46.545455-42.635636-46.545455h-28.485818z%20m-199.121455%200c-22.714182%200-42.635636%2021.690182-42.635636%2046.545455%200%2024.762182%2019.921455%2046.545455%2042.635636%2046.545455h28.485818c22.714182%200%2042.635636-21.783273%2042.635637-46.545455%200-24.855273-19.921455-46.545455-42.635637-46.545455h-28.485818z%20m-199.121455%200c-22.714182%200-42.635636%2021.690182-42.635636%2046.545455%200%2024.762182%2019.921455%2046.545455%2042.635636%2046.545455h28.485819c22.714182%200%2042.635636-21.783273%2042.635636-46.545455%200-24.855273-19.921455-46.545455-42.635636-46.545455h-28.485819z'%3e%3c/path%3e%3c/svg%3e";let zp=t=>decodeURI(t).replace("data:image/svg+xml,","");const cs=t=>()=>p.jsx("div",{dangerouslySetInnerHTML:{__html:zp(t)}}),Zp=t=>p.jsx(m.Icon,T({component:cs(Lp)},t)),jp=t=>p.jsx(m.Icon,T({component:cs(Bp)},t)),Kp=t=>p.jsx(m.Icon,T({component:cs(Vp)},t));m.Icon.register({"notice-block":Zp,"swiper-block":jp,"tab-search":Kp});const Wp=t=>p.jsx(m.MobileProvider,{children:p.jsx(m.SchemaComponentOptions,{components:{MMenuBlockInitializer:ac,MSettingsBlockInitializer:sm,MContainer:es,MMenu:Qr,MTabBar:ts,MPage:ns,MHeader:fl,MSettings:ml,SwiperBlockInitializer:Mm,SwiperBlock:Tm,SwiperPage:gl,TabSearch:Am,TabSearchProvider:ap,TabSearchBlockInitializer:Rm,TabSearchFieldItem:Gm,TabSearchFieldMItem:qm,TabSearchCollapsibleInputItem:Zm,TabSearchCollapsibleInputMItem:Hm,TabSearchFieldSchemaInitializerGadget:ip,ImageSearchView:ym,ImageSearchInitializer:vm,ImageSearchProvider:bm,ImageSearchItemIntializer:Cm,ImageSearchItemToolbar:km,ImageSearchItemView:wm,MInput:$t,MCheckbox:is,MDatePicker:El,MRadio:as,MImageUploader:dp,MCascader:Pl,MSelect:ls,Input:$t,"Input.TextArea":$t.TextArea,"Radio.Group":as.Group,"Checkbox.Group":is.Group,DatePicker:El,Select:ls,AlternativeAssociationSelect:ls,Cascader:Pl},scope:{useGridCardBlockItemProps:wp,useGridCardBlockProps:Ip,useSwiperBlockProps:Om,usePropsOptionalImageSearchItemField:_m,usePropsRelatedImageSearchItemField:$m,useTabSearchFieldItemProps:Ym,useTabSearchFieldItemRelatedProps:Jm},children:t.children})}),Up=()=>{const{t}=m.useTranslation(),e=m.useApp(),n=()=>{const o=window.location,r=o.hash.slice(o.hash.indexOf("/"));window.open(e.getRouteUrl(r))};return p.jsx("div",{className:m.css`
356
356
  position: absolute;
357
357
  top: -40px;
358
358
  right: 0;
@@ -402,4 +402,4 @@
402
402
  height: 100%;
403
403
  position: relative;
404
404
  overflow: hidden;
405
- `),children:[n.name&&!n.name.startsWith("tab_")?p.jsx(R.Outlet,{}):p.jsx(m.RemoteSchemaComponent,{uid:e,children:t.children},e),p.jsx("div",{id:"tb-position-container"})]})})]})})};class Dl extends m.Plugin{afterAdd(){return ae(this,null,function*(){this.pm.add(Dp,{name:"plugin-data-select"}),this.app.pm.add(sc,{name:"SearchAndJump"}),this.app.pm.add(Rl,{name:"Designable"}),this.app.pm.add(Xl,{name:"calculator"})})}load(){return ae(this,null,function*(){this.setMobileRouter(),this.addRoutes(),this.app.use(Ml),this.app.use(Tp),this.app.schemaInitializerManager.add(ic),this.app.schemaInitializerManager.add(pm),this.app.schemaInitializerManager.add(op),this.app.schemaSettingsManager.add(Nm),this.app.schemaSettingsManager.add(Sm),this.app.schemaSettingsManager.add(lp),this.app.schemaSettingsManager.add(im)})}setMobileRouter(){const e=m.createRouterManager({type:"hash"},this.app);this.router.add("not-found",{path:"*",Component:_p}),e.add("root",{path:"/",element:p.jsx(R.Navigate,{replace:!0,to:"/mobile"})}),e.add("mobile",{path:"/mobile",element:p.jsx(Al,{})}),e.add("mobile.page",{path:"/mobile/:name",Component:"RouteSchemaComponent"}),this.mobileRouter=e}getMobileRouterComponent(){return this.mobileRouter.getRouterComponent()}addRoutes(){this.app.router.add("mobile",{path:"/mobile",element:p.jsx(Al,{})}),this.app.router.add("mobile.page",{path:"/mobile/:name",Component:"RouteSchemaComponent"}),this.app.router.add("mobile.swiper.page",{path:"/mobile/:name/image/:collection/:field/:fieldParams",Component:gl})}}W.ModuleWeb=Dl,W.default=Dl,Object.defineProperties(W,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
405
+ `),children:[n.name&&!n.name.startsWith("tab_")?p.jsx(R.Outlet,{}):p.jsx(m.RemoteSchemaComponent,{uid:e,children:t.children},e),p.jsx("div",{id:"tb-position-container"})]})})]})})};class Dl extends m.Plugin{afterAdd(){return le(this,null,function*(){this.pm.add(Dp,{name:"plugin-data-select"}),this.app.pm.add(sc,{name:"SearchAndJump"}),this.app.pm.add(Rl,{name:"Designable"}),this.app.pm.add(Xl,{name:"calculator"})})}load(){return le(this,null,function*(){this.setMobileRouter(),this.addRoutes(),this.app.use(Ml),this.app.use(Tp),this.app.schemaInitializerManager.add(ic),this.app.schemaInitializerManager.add(pm),this.app.schemaInitializerManager.add(op),this.app.schemaSettingsManager.add(Nm),this.app.schemaSettingsManager.add(Sm),this.app.schemaSettingsManager.add(lp),this.app.schemaSettingsManager.add(im)})}setMobileRouter(){const e=m.createRouterManager({type:"hash"},this.app);this.router.add("not-found",{path:"*",Component:_p}),e.add("root",{path:"/",element:p.jsx(R.Navigate,{replace:!0,to:"/mobile"})}),e.add("mobile",{path:"/mobile",element:p.jsx(Al,{})}),e.add("mobile.page",{path:"/mobile/:name",Component:"RouteSchemaComponent"}),this.mobileRouter=e}getMobileRouterComponent(){return this.mobileRouter.getRouterComponent()}addRoutes(){this.app.router.add("mobile",{path:"/mobile",element:p.jsx(Al,{})}),this.app.router.add("mobile.page",{path:"/mobile/:name",Component:"RouteSchemaComponent"}),this.app.router.add("mobile.swiper.page",{path:"/mobile/:name/image/:collection/:field/:fieldParams",Component:gl})}}W.ModuleWeb=Dl,W.default=Dl,Object.defineProperties(W,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});