@tachybase/module-web 1.0.18 → 1.0.25
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.
- package/dist/client/core/schema/components/header/HeaderShareModal.d.ts +6 -0
- package/dist/client/core/schema/components/header/style.d.ts +8 -0
- package/dist/client/index.js +154 -47
- package/dist/externalVersion.js +7 -7
- package/dist/locale/zh-CN.js +18 -0
- package/dist/node_modules/cronstrue/package.json +1 -1
- package/package.json +12 -9
package/dist/client/index.js
CHANGED
|
@@ -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(R,f){typeof exports=="object"&&typeof module!="undefined"?f(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("@tachybase/components"),require("@tachybase/utils/client")):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","@tachybase/components","@tachybase/utils/client"],f):(R=typeof globalThis!="undefined"?globalThis:R||self,f(R["@tachybase/module-web"]={},R.jsxRuntime,R["@tachybase/client"],R["react-router-dom"],R.react,R["react-dom"],R["@ant-design/icons"],R.antd,R["react-i18next"],R["@tachybase/schema"],R.ahooks,R.lodash,R["@tachybase/components"],R["@tachybase/utils"]))})(this,function(R,f,h,ie,i,
|
|
2
|
+
(function(R,f){typeof exports=="object"&&typeof module!="undefined"?f(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("@tachybase/components"),require("@tachybase/utils/client")):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","@tachybase/components","@tachybase/utils/client"],f):(R=typeof globalThis!="undefined"?globalThis:R||self,f(R["@tachybase/module-web"]={},R.jsxRuntime,R["@tachybase/client"],R["react-router-dom"],R.react,R["react-dom"],R["@ant-design/icons"],R.antd,R["react-i18next"],R["@tachybase/schema"],R.ahooks,R.lodash,R["@tachybase/components"],R["@tachybase/utils"]))})(this,function(R,f,h,ie,i,Tt,Te,le,We,$,te,Le,bs,Ce){"use strict";var hp=Object.defineProperty,pp=Object.defineProperties;var gp=Object.getOwnPropertyDescriptors;var Zo=Object.getOwnPropertySymbols;var Gl=Object.prototype.hasOwnProperty,ql=Object.prototype.propertyIsEnumerable;var Yl=(R,f,h)=>f in R?hp(R,f,{enumerable:!0,configurable:!0,writable:!0,value:h}):R[f]=h,B=(R,f)=>{for(var h in f||(f={}))Gl.call(f,h)&&Yl(R,h,f[h]);if(Zo)for(var h of Zo(f))ql.call(f,h)&&Yl(R,h,f[h]);return R},ae=(R,f)=>pp(R,gp(f));var vs=(R,f)=>{var h={};for(var ie in R)Gl.call(R,ie)&&f.indexOf(ie)<0&&(h[ie]=R[ie]);if(R!=null&&Zo)for(var ie of Zo(R))f.indexOf(ie)<0&&ql.call(R,ie)&&(h[ie]=R[ie]);return h};var fe=(R,f,h)=>new Promise((ie,i)=>{var Tt=We=>{try{le(h.next(We))}catch($){i($)}},Te=We=>{try{le(h.throw(We))}catch($){i($)}},le=We=>We.done?ie(We.value):Promise.resolve(We.value).then(Tt,Te);le((h=h.apply(R,f)).next())});function ys(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 X=ys(i),Xl=ys(Tt),Jl=({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,m=u/d;o(b=>{if(m<1)return m;if(b<1)return 1})}),s=e.current;return r.observe(s),()=>r.unobserve(s)},[]),f.jsx("div",{className:"auto-scaling-text",style:{transition:"transform 0.5s ease",transform:`scale(${n},${n})`},ref:e,children:t})},Ql=n=>{var o=n,{value:t}=o,e=vs(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]),f.jsx("div",ae(B({},e),{className:"calculator-display",children:f.jsx(Jl,{children:s})}))},be=o=>{var r=o,{onPress:t,className:e}=r,n=vs(r,["onPress","className"]);return f.jsx("button",B({onClick:t,className:`calculator-key ${e}`},n))},xs=h.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
|
-
`})),Is={"/":(e,t)=>e/t,"*":(e,t)=>e*t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"=":(e,t)=>t},rc=i.forwardRef(({className:e},t)=>{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)},m=()=>{s("0")},g=()=>{s(r.substring(0,r.length-1)||"0")},v=()=>{const S=parseFloat(r)*-1;s(String(S))},p=()=>{if(parseFloat(r)===0)return;const k=r.replace(/^-?\d*\.?/,""),I=parseFloat(r)/100;s(String(I.toFixed(k.length+2)))},y=()=>{/\./.test(r)||(s(r+"."),u(!1))},b=S=>{c?(s(String(S)),u(!1)):s(r==="0"?String(S):r+S)},C=S=>{const k=parseFloat(r);if(n==null)o(k);else if(a){const I=n||0,M=Is[a](I,k);o(M),s(String(M))}u(!0),l(S)};i.useEffect(()=>{const S=k=>{let{key:I}=k;I==="Enter"&&(I="="),/\d/.test(I)?(k.preventDefault(),b(parseInt(I,10))):I in Is?(k.preventDefault(),C(I)):I==="."?(k.preventDefault(),y()):I==="%"?(k.preventDefault(),p()):I==="Backspace"?(k.preventDefault(),g()):I==="Clear"&&(k.preventDefault(),r!=="0"?m():d())};return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}});const w=r!=="0",x=w?"C":"AC";return f.jsxs("div",{className:"calculator",ref:t,children:[f.jsx(oc,{value:r}),f.jsxs("div",{className:"calculator-keypad",children:[f.jsxs("div",{className:"input-keys",children:[f.jsxs("div",{className:"function-keys",children:[f.jsx(be,{className:"key-clear",onPress:()=>w?m():d(),children:x}),f.jsx(be,{className:"key-sign",onPress:()=>v(),children:"±"}),f.jsx(be,{className:"key-percent",onPress:()=>p(),children:"%"})]}),f.jsxs("div",{className:"digit-keys",children:[f.jsx(be,{className:"key-0",onPress:()=>b(0),children:"0"}),f.jsx(be,{className:"key-dot",onPress:()=>y(),children:"●"}),f.jsx(be,{className:"key-1",onPress:()=>b(1),children:"1"}),f.jsx(be,{className:"key-2",onPress:()=>b(2),children:"2"}),f.jsx(be,{className:"key-3",onPress:()=>b(3),children:"3"}),f.jsx(be,{className:"key-4",onPress:()=>b(4),children:"4"}),f.jsx(be,{className:"key-5",onPress:()=>b(5),children:"5"}),f.jsx(be,{className:"key-6",onPress:()=>b(6),children:"6"}),f.jsx(be,{className:"key-7",onPress:()=>b(7),children:"7"}),f.jsx(be,{className:"key-8",onPress:()=>b(8),children:"8"}),f.jsx(be,{className:"key-9",onPress:()=>b(9),children:"9"})]})]}),f.jsxs("div",{className:"operator-keys",children:[f.jsx(be,{className:"key-divide",onPress:()=>C("/"),children:"÷"}),f.jsx(be,{className:"key-multiply",onPress:()=>C("*"),children:"×"}),f.jsx(be,{className:"key-subtract",onPress:()=>C("-"),children:"−"}),f.jsx(be,{className:"key-add",onPress:()=>C("+"),children:"+"}),f.jsx(be,{className:"key-equals",onPress:()=>C("="),children:"="})]})]})]})}),sc=i.forwardRef((e,t)=>{const{styles:n}=Es();return f.jsx(rc,{ref:t,className:n.container})}),ic=({children:e,updateTransform:t=(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,m=u.pageY-o.current.startY,g=`translate(${d}px,${m}px)`;t(g,d,m,s),o.current.dx=d,o.current.dy=m},c=u=>{document.removeEventListener("mousemove",l)};return s.addEventListener("mousedown",a),document.addEventListener("mouseup",c),()=>{s.removeEventListener("mousedown",a),document.removeEventListener("mouseup",c)}},[t]);const r=ae(B({},e.props.style),{cursor:"move",userSelect:"none"});return i.cloneElement(i.Children.only(e),{ref:n,style:r})},$s=i.createContext({}),ac=()=>i.useContext($s),lc=({children:e})=>{const[t,n]=i.useState(!1),{styles:o}=Es();return f.jsxs($s.Provider,{value:{visible:t,setVisible:n},children:[e,t?Ot.createPortal(f.jsx("div",{className:o.container,children:f.jsx(ic,{children:f.jsx(sc,{})})}),document.body):null]})},cc=()=>{const{visible:e,setVisible:t}=ac();return f.jsx(de.FloatButton,{type:e?"primary":"default",icon:f.jsx(Ke.CalculatorOutlined,{}),onClick:()=>{t(n=>!n)}})},uc=e=>f.jsx(h.PinnedPluginListProvider,{items:{ca:{order:300,component:"CalculatorButton",pin:!0,isPublic:!0,belongTo:"hoverbutton"}},children:f.jsx(h.SchemaComponentOptions,{components:{CalculatorButton:cc},children:e.children})});class dc extends h.Plugin{load(){return me(this,null,function*(){this.app.use(uc),this.app.use(lc)})}}const fc=()=>{const{designable:e,setDesignable:t}=h.useDesignable();return h.useHotkeys("Ctrl+Shift+U",()=>t(!e),[e]),f.jsx(de.FloatButton,{icon:f.jsx(h.Icon,{type:"Design"}),type:e?"primary":"default",onClick:()=>t(!e)})},mc=e=>f.jsx(h.PinnedPluginListProvider,{items:{db:{order:60,component:"DesignableButton",pin:!0,snippet:"ui.*",belongTo:"hoverbutton"}},children:f.jsx(h.SchemaComponentOptions,{components:{DesignableButton:fc},children:e.children})});class hc extends h.Plugin{load(){return me(this,null,function*(){this.app.use(mc)})}}const _s=i.createContext({open:!1,setOpen:e=>{}}),pc=({children:e})=>{const[t,n]=i.useState(!1);return f.jsxs(_s.Provider,{value:{open:t,setOpen:n},children:[e,f.jsx(vc,{open:t,setOpen:n})]})},gc=()=>i.useContext(_s),vc=({open:e,setOpen:t})=>{const n=i.useRef();i.useEffect(()=>{e&&n.current&&setTimeout(()=>{n.current.focus()},0)},[e,n]);const o=()=>{t(!1)},r=()=>{t(!1)};return f.jsx(de.Modal,{title:f.jsx(de.Input,{style:{width:"100%"},autoFocus:!0,ref:n}),closable:!1,open:e,onOk:o,onCancel:r,footer:null,children:f.jsx("p",{})})},bc=()=>{const{setOpen:e}=gc();return h.useHotkeys("Ctrl+K",()=>e(t=>!t),[]),h.useHotkeys("Cmd+K",()=>e(t=>!t),[]),f.jsx(de.FloatButton,{icon:f.jsx(Ke.SearchOutlined,{}),onClick:()=>e(!0)})},yc=e=>f.jsx(h.PinnedPluginListProvider,{items:{saj:{order:30,component:"SearchAndJumpButton",pin:!0,snippet:"pm.*",belongTo:"hoverbutton"}},children:f.jsx(h.SchemaComponentOptions,{components:{SearchAndJumpButton:bc},children:e.children})});class Cc extends h.Plugin{load(){return me(this,null,function*(){this.app.use(yc),this.app.use(pc)})}}const Ho="client";function ut(e){return`{{t('${e}', { ns: '${Ho}', nsMode: 'fallback' })}}`}const qe=(e,t=!0)=>t?h.tval(e,{ns:Ho}):h.tval(e);function le(){return We.useTranslation([Ho,"core"],{nsMode:"fallback"})}const xc=new h.SchemaInitializer({name:"mobilePage:addBlock",title:'{{t("Add block")}}',icon:"PlusOutlined",wrap:h.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:ut("Map"),Component:"MapBlockInitializer"},{title:qe("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:ut("Menu"),Component:"MMenuBlockInitializer"},{name:"markdown",title:qe("Demonstration text"),Component:"MarkdownBlockInitializer"},{name:"settings",title:ut("Settings"),Component:"MSettingsBlockInitializer"}]},{name:"filterBlocks",type:"itemGroup",title:'{{t("Filter blocks")}}',children:[{name:"tabSearch",title:qe("TabSearch"),Component:"TabSearchBlockInitializer"},{name:"imageSearch",title:qe("ImageSearch"),icon:"tab-search",Component:"ImageSearchInitializer"}]}]}),Sc=()=>{const e=h.useSchemaInitializerItem(),{insert:t}=h.useSchemaInitializer();return f.jsx(h.SchemaInitializerItem,B({icon:f.jsx(Ke.MenuOutlined,{}),onClick:()=>me(this,null,function*(){t({type:"void","x-component":"MMenu","x-designer":"MMenu.Designer","x-component-props":{}})})},e))},Tt=!!(typeof window!="undefined"&&typeof document!="undefined"&&window.document&&window.document.createElement);Tt&&document.addEventListener("touchstart",()=>{},!0);function yt(e,t,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(m){a(m)}}function c(d){try{u(o.throw(d))}catch(m){a(m)}}function u(d){d.done?s(d.value):r(d.value).then(l,c)}u((o=o.apply(e,t||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Oe="${label}不是一个有效的${type}",wc={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:Oe,method:Oe,array:Oe,object:Oe,number:Oe,date:Oe,boolean:Oe,integer:Oe,float:Oe,regexp:Oe,email:Oe,url:Oe,hex:Oe},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 kc(){return wc.current}const Ec=i.createContext(null);function Pe(){var e;return(e=i.useContext(Ec))!==null&&e!==void 0?e:kc()}function we(e,t){const n=e;for(const o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);return n}var Ct=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function xt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ps={exports:{}};/*!
|
|
121
|
+
`})),Cs={"/":(t,e)=>t/e,"*":(t,e)=>t*e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"=":(t,e)=>e},Rl=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)},m=()=>{s("0")},b=()=>{s(r.substring(0,r.length-1)||"0")},v=()=>{const w=parseFloat(r)*-1;s(String(w))},p=()=>{if(parseFloat(r)===0)return;const k=r.replace(/^-?\d*\.?/,""),I=parseFloat(r)/100;s(String(I.toFixed(k.length+2)))},y=()=>{/\./.test(r)||(s(r+"."),u(!1))},g=w=>{c?(s(String(w)),u(!1)):s(r==="0"?String(w):r+w)},x=w=>{const k=parseFloat(r);if(n==null)o(k);else if(a){const I=n||0,_=Cs[a](I,k);o(_),s(String(_))}u(!0),l(w)};i.useEffect(()=>{const w=k=>{let{key:I}=k;I==="Enter"&&(I="="),/\d/.test(I)?(k.preventDefault(),g(parseInt(I,10))):I in Cs?(k.preventDefault(),x(I)):I==="."?(k.preventDefault(),y()):I==="%"?(k.preventDefault(),p()):I==="Backspace"?(k.preventDefault(),b()):I==="Clear"&&(k.preventDefault(),r!=="0"?m():d())};return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}});const S=r!=="0",C=S?"C":"AC";return f.jsxs("div",{className:"calculator",ref:e,children:[f.jsx(Ql,{value:r}),f.jsxs("div",{className:"calculator-keypad",children:[f.jsxs("div",{className:"input-keys",children:[f.jsxs("div",{className:"function-keys",children:[f.jsx(be,{className:"key-clear",onPress:()=>S?m():d(),children:C}),f.jsx(be,{className:"key-sign",onPress:()=>v(),children:"±"}),f.jsx(be,{className:"key-percent",onPress:()=>p(),children:"%"})]}),f.jsxs("div",{className:"digit-keys",children:[f.jsx(be,{className:"key-0",onPress:()=>g(0),children:"0"}),f.jsx(be,{className:"key-dot",onPress:()=>y(),children:"●"}),f.jsx(be,{className:"key-1",onPress:()=>g(1),children:"1"}),f.jsx(be,{className:"key-2",onPress:()=>g(2),children:"2"}),f.jsx(be,{className:"key-3",onPress:()=>g(3),children:"3"}),f.jsx(be,{className:"key-4",onPress:()=>g(4),children:"4"}),f.jsx(be,{className:"key-5",onPress:()=>g(5),children:"5"}),f.jsx(be,{className:"key-6",onPress:()=>g(6),children:"6"}),f.jsx(be,{className:"key-7",onPress:()=>g(7),children:"7"}),f.jsx(be,{className:"key-8",onPress:()=>g(8),children:"8"}),f.jsx(be,{className:"key-9",onPress:()=>g(9),children:"9"})]})]}),f.jsxs("div",{className:"operator-keys",children:[f.jsx(be,{className:"key-divide",onPress:()=>x("/"),children:"÷"}),f.jsx(be,{className:"key-multiply",onPress:()=>x("*"),children:"×"}),f.jsx(be,{className:"key-subtract",onPress:()=>x("-"),children:"−"}),f.jsx(be,{className:"key-add",onPress:()=>x("+"),children:"+"}),f.jsx(be,{className:"key-equals",onPress:()=>x("="),children:"="})]})]})]})}),ec=i.forwardRef((t,e)=>{const{styles:n}=xs();return f.jsx(Rl,{ref:e,className:n.container})}),tc=({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,m=u.pageY-o.current.startY,b=`translate(${d}px,${m}px)`;e(b,d,m,s),o.current.dx=d,o.current.dy=m},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=ae(B({},t.props.style),{cursor:"move",userSelect:"none"});return i.cloneElement(i.Children.only(t),{ref:n,style:r})},Ss=i.createContext({}),nc=()=>i.useContext(Ss),oc=({children:t})=>{const[e,n]=i.useState(!1),{styles:o}=xs();return f.jsxs(Ss.Provider,{value:{visible:e,setVisible:n},children:[t,e?Tt.createPortal(f.jsx("div",{className:o.container,children:f.jsx(tc,{children:f.jsx(ec,{})})}),document.body):null]})},rc=()=>{const{visible:t,setVisible:e}=nc();return f.jsx(le.FloatButton,{type:t?"primary":"default",icon:f.jsx(Te.CalculatorOutlined,{}),onClick:()=>{e(n=>!n)}})},sc=t=>f.jsx(h.PinnedPluginListProvider,{items:{ca:{order:300,component:"CalculatorButton",pin:!0,isPublic:!0,belongTo:"hoverbutton"}},children:f.jsx(h.SchemaComponentOptions,{components:{CalculatorButton:rc},children:t.children})});class ic extends h.Plugin{load(){return fe(this,null,function*(){this.app.use(sc),this.app.use(oc)})}}const ac=()=>{const{designable:t,setDesignable:e}=h.useDesignable();return h.useHotkeys("Ctrl+Shift+U",()=>e(!t),[t]),f.jsx(le.FloatButton,{icon:f.jsx(h.Icon,{type:"Design"}),type:t?"primary":"default",onClick:()=>e(!t)})},lc=t=>f.jsx(h.PinnedPluginListProvider,{items:{db:{order:60,component:"DesignableButton",pin:!0,snippet:"ui.*",belongTo:"hoverbutton"}},children:f.jsx(h.SchemaComponentOptions,{components:{DesignableButton:ac},children:t.children})});class cc extends h.Plugin{load(){return fe(this,null,function*(){this.app.use(lc)})}}const ws=i.createContext({open:!1,setOpen:t=>{}}),uc=({children:t})=>{const[e,n]=i.useState(!1);return f.jsxs(ws.Provider,{value:{open:e,setOpen:n},children:[t,f.jsx(fc,{open:e,setOpen:n})]})},dc=()=>i.useContext(ws),fc=({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 f.jsx(le.Modal,{title:f.jsx(le.Input,{style:{width:"100%"},autoFocus:!0,ref:n}),closable:!1,open:t,onOk:o,onCancel:r,footer:null,children:f.jsx("p",{})})},mc=()=>{const{setOpen:t}=dc();return h.useHotkeys("Ctrl+K",()=>t(e=>!e),[]),h.useHotkeys("Cmd+K",()=>t(e=>!e),[]),f.jsx(le.FloatButton,{icon:f.jsx(Te.SearchOutlined,{}),onClick:()=>t(!0)})},hc=t=>f.jsx(h.PinnedPluginListProvider,{items:{saj:{order:30,component:"SearchAndJumpButton",pin:!0,snippet:"pm.*",belongTo:"hoverbutton"}},children:f.jsx(h.SchemaComponentOptions,{components:{SearchAndJumpButton:mc},children:t.children})});class pc extends h.Plugin{load(){return fe(this,null,function*(){this.app.use(hc),this.app.use(uc)})}}const jo="client";function ut(t){return`{{t('${t}', { ns: '${jo}', nsMode: 'fallback' })}}`}const qe=(t,e=!0)=>e?h.tval(t,{ns:jo}):h.tval(t);function ce(){return We.useTranslation([jo,"core"],{nsMode:"fallback"})}const gc=new h.SchemaInitializer({name:"mobilePage:addBlock",title:'{{t("Add block")}}',icon:"PlusOutlined",wrap:h.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:ut("Map"),Component:"MapBlockInitializer"},{title:qe("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:ut("Menu"),Component:"MMenuBlockInitializer"},{name:"markdown",title:qe("Demonstration text"),Component:"MarkdownBlockInitializer"},{name:"settings",title:ut("Settings"),Component:"MSettingsBlockInitializer"}]},{name:"filterBlocks",type:"itemGroup",title:'{{t("Filter blocks")}}',children:[{name:"tabSearch",title:qe("TabSearch"),Component:"TabSearchBlockInitializer"},{name:"imageSearch",title:qe("ImageSearch"),icon:"tab-search",Component:"ImageSearchInitializer"}]}]}),vc=()=>{const t=h.useSchemaInitializerItem(),{insert:e}=h.useSchemaInitializer();return f.jsx(h.SchemaInitializerItem,B({icon:f.jsx(Te.MenuOutlined,{}),onClick:()=>fe(this,null,function*(){e({type:"void","x-component":"MMenu","x-designer":"MMenu.Designer","x-component-props":{}})})},t))},Ot=!!(typeof window!="undefined"&&typeof document!="undefined"&&window.document&&window.document.createElement);Ot&&document.addEventListener("touchstart",()=>{},!0);function yt(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(m){a(m)}}function c(d){try{u(o.throw(d))}catch(m){a(m)}}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 Oe="${label}不是一个有效的${type}",bc={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:Oe,method:Oe,array:Oe,object:Oe,number:Oe,date:Oe,boolean:Oe,integer:Oe,float:Oe,regexp:Oe,email:Oe,url:Oe,hex:Oe},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 yc(){return bc.current}const xc=i.createContext(null);function Pe(){var t;return(t=i.useContext(xc))!==null&&t!==void 0?t:yc()}function we(t,e){const n=t;for(const o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);return n}var xt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ct(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ks={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
|
-
*/(function(e){(function(){var t={}.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)t.call(s,l)&&s[l]&&(a=r(a,l));return a}function r(s,a){return a?s?s+" "+a:s+a:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ps);var Ic=Ps.exports;const K=xt(Ic);function Y(e,t){const n=Object.assign({},t.props);e.className&&(n.className=K(t.props.className,e.className)),e.style&&(n.style=Object.assign(Object.assign({},n.style),e.style)),e.tabIndex!==void 0&&(n.tabIndex=e.tabIndex);for(const o in e)e.hasOwnProperty(o)&&(o.startsWith("data-")||o.startsWith("aria-"))&&(n[o]=e[o]);return i.cloneElement(t,n)}function oe(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(o=>{n[o]!==void 0&&(t[o]=n[o])})}),t}function Uo(e,...t){for(let n=t.length-1;n>=0;n-=1)if(t[n]!==void 0)return t[n];return e}const Ms=10;function $c(e,t){return e>t&&e>Ms?"horizontal":t>e&&t>Ms?"vertical":""}function _c(){const e=i.useRef(0),t=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 v=g.touches[0];n.current=v.clientX<0?0:v.clientX-e.current,o.current=v.clientY-t.current,r.current=Math.abs(n.current),s.current=Math.abs(o.current),a.current||(a.current=$c(r.current,s.current))},start:g=>{u(),e.current=g.touches[0].clientX,t.current=g.touches[0].clientY},reset:u,startX:e,startY:t,deltaX:n,deltaY:o,offsetX:r,offsetY:s,direction:a,isVertical:l,isHorizontal:c}}const Pc=Tt?window:void 0,Mc=["scroll","auto","overlay"];function Fc(e){return e.nodeType===1}function Nc(e,t=Pc){let n=e;for(;n&&n!==t&&Fc(n);){if(n===document.body)return t;const{overflowY:o}=window.getComputedStyle(n);if(Mc.includes(o)&&n.scrollHeight>n.clientHeight)return n;n=n.parentNode}return t}let On=!1;if(Tt)try{const e={};Object.defineProperty(e,"passive",{get(){On=!0}}),window.addEventListener("test-passive",null,e)}catch(e){}let en=0;const Fs="adm-overflow-hidden";function Oc(e){let t=e==null?void 0:e.parentElement;for(;t;){if(t.clientHeight<t.scrollHeight)return t;t=t.parentElement}return null}function Ns(e,t){const n=_c(),o=a=>{n.move(a);const l=n.deltaY.current>0?"10":"01",c=Nc(a.target,e.current);if(!c)return;if(t==="strict"){const p=Oc(a.target);if(p===document.body||p===document.documentElement){a.preventDefault();return}}const{scrollHeight:u,offsetHeight:d,scrollTop:m}=c,{height:g}=c.getBoundingClientRect();let v="11";m===0?v=d>=u?"00":"01":u<=Math.round(g+m)&&(v="10"),v!=="11"&&n.isVertical()&&!(parseInt(v,2)&parseInt(l,2))&&a.cancelable&&On&&a.preventDefault()},r=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",o,On?{passive:!1}:!1),en||document.body.classList.add(Fs),en++},s=()=>{en&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",o),en--,en||document.body.classList.remove(Fs))};i.useEffect(()=>{if(t)return r(),()=>{s()}},[t])}let Yo=nn();const Q=e=>tn(e,Yo);let Go=nn();Q.write=e=>tn(e,Go);let Tn=nn();Q.onStart=e=>tn(e,Tn);let qo=nn();Q.onFrame=e=>tn(e,qo);let Xo=nn();Q.onFinish=e=>tn(e,Xo);let Dt=[];Q.setTimeout=(e,t)=>{let n=Q.now()+t,o=()=>{let s=Dt.findIndex(a=>a.cancel==o);~s&&Dt.splice(s,1),ft-=~s?1:0},r={time:n,handler:e,cancel:o};return Dt.splice(Os(n),0,r),ft+=1,Ts(),r};let Os=e=>~(~Dt.findIndex(t=>t.time>e)||~Dt.length);Q.cancel=e=>{Tn.delete(e),qo.delete(e),Xo.delete(e),Yo.delete(e),Go.delete(e)},Q.sync=e=>{Jo=!0,Q.batchedUpdates(e),Jo=!1},Q.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function o(...r){t=r,Q.onStart(n)}return o.handler=e,o.cancel=()=>{Tn.delete(n),t=null},o};let Qo=typeof window!="undefined"?window.requestAnimationFrame:()=>{};Q.use=e=>Qo=e,Q.now=typeof performance!="undefined"?()=>performance.now():Date.now,Q.batchedUpdates=e=>e(),Q.catch=console.error,Q.frameLoop="always",Q.advance=()=>{Q.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):As()};let dt=-1,ft=0,Jo=!1;function tn(e,t){Jo?(t.delete(e),e(0)):(t.add(e),Ts())}function Ts(){dt<0&&(dt=0,Q.frameLoop!=="demand"&&Qo(Ds))}function Tc(){dt=-1}function Ds(){~dt&&(Qo(Ds),Q.batchedUpdates(As))}function As(){let e=dt;dt=Q.now();let t=Os(dt);if(t&&(Ls(Dt.splice(0,t),n=>n.handler()),ft-=t),!ft){Tc();return}Tn.flush(),Yo.flush(e?Math.min(64,dt-e):16.667),qo.flush(),Go.flush(),Xo.flush()}function nn(){let e=new Set,t=e;return{add(n){ft+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return ft-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,ft-=t.size,Ls(t,o=>o(n)&&e.add(o)),ft+=e.size,t=e)}}}function Ls(e,t){e.forEach(n=>{try{t(n)}catch(o){Q.catch(o)}})}function Ro(){}const Dc=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),A={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function rt(e,t){if(A.arr(e)){if(!A.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const se=(e,t)=>e.forEach(t);function Xe(e,t,n){if(A.arr(e)){for(let o=0;o<e.length;o++)t.call(n,e[o],`${o}`);return}for(const o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o)}const Te=e=>A.und(e)?[]:A.arr(e)?e:[e];function on(e,t){if(e.size){const n=Array.from(e);e.clear(),se(n,t)}}const rn=(e,...t)=>on(e,n=>n(...t)),er=()=>typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let tr,Bs,mt=null,Vs=!1,nr=Ro;var Qe=Object.freeze({__proto__:null,get createStringInterpolator(){return tr},get to(){return Bs},get colors(){return mt},get skipAnimation(){return Vs},get willAdvance(){return nr},assign:e=>{e.to&&(Bs=e.to),e.now&&(Q.now=e.now),e.colors!==void 0&&(mt=e.colors),e.skipAnimation!=null&&(Vs=e.skipAnimation),e.createStringInterpolator&&(tr=e.createStringInterpolator),e.requestAnimationFrame&&Q.use(e.requestAnimationFrame),e.batchedUpdates&&(Q.batchedUpdates=e.batchedUpdates),e.willAdvance&&(nr=e.willAdvance),e.frameLoop&&(Q.frameLoop=e.frameLoop)}});const sn=new Set;let Le=[],or=[],Dn=0;const An={get idle(){return!sn.size&&!Le.length},start(e){Dn>e.priority?(sn.add(e),Q.onStart(Ac)):(zs(e),Q(rr))},advance:rr,sort(e){if(Dn)Q.onFrame(()=>An.sort(e));else{const t=Le.indexOf(e);~t&&(Le.splice(t,1),Zs(e))}},clear(){Le=[],sn.clear()}};function Ac(){sn.forEach(zs),sn.clear(),Q(rr)}function zs(e){Le.includes(e)||Zs(e)}function Zs(e){Le.splice(Lc(Le,t=>t.priority>e.priority),0,e)}function rr(e){const t=or;for(let n=0;n<Le.length;n++){const o=Le[n];Dn=o.priority,o.idle||(nr(o),o.advance(e),o.idle||t.push(o))}return Dn=0,or=Le,or.length=0,Le=t,Le.length>0}function Lc(e,t){const n=e.findIndex(t);return n<0?e.length:n}const Bc=(e,t,n)=>Math.min(Math.max(n,e),t),Vc={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},He="[-+]?\\d*\\.?\\d+",Ln=He+"%";function Bn(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const zc=new RegExp("rgb"+Bn(He,He,He)),Zc=new RegExp("rgba"+Bn(He,He,He,He)),jc=new RegExp("hsl"+Bn(He,Ln,Ln)),Kc=new RegExp("hsla"+Bn(He,Ln,Ln,He)),Wc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Hc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Uc=/^#([0-9a-fA-F]{6})$/,Yc=/^#([0-9a-fA-F]{8})$/;function Gc(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Uc.exec(e))?parseInt(t[1]+"ff",16)>>>0:mt&&mt[e]!==void 0?mt[e]:(t=zc.exec(e))?(At(t[1])<<24|At(t[2])<<16|At(t[3])<<8|255)>>>0:(t=Zc.exec(e))?(At(t[1])<<24|At(t[2])<<16|At(t[3])<<8|Ws(t[4]))>>>0:(t=Wc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Yc.exec(e))?parseInt(t[1],16)>>>0:(t=Hc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=jc.exec(e))?(js(Ks(t[1]),Vn(t[2]),Vn(t[3]))|255)>>>0:(t=Kc.exec(e))?(js(Ks(t[1]),Vn(t[2]),Vn(t[3]))|Ws(t[4]))>>>0:null}function sr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function js(e,t,n){const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,s=sr(r,o,e+1/3),a=sr(r,o,e),l=sr(r,o,e-1/3);return Math.round(s*255)<<24|Math.round(a*255)<<16|Math.round(l*255)<<8}function At(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Ks(e){return(parseFloat(e)%360+360)%360/360}function Ws(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Vn(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Hs(e){let t=Gc(e);if(t===null)return e;t=t||0;let n=(t&4278190080)>>>24,o=(t&16711680)>>>16,r=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${o}, ${r}, ${s})`}const an=(e,t,n)=>{if(A.fun(e))return e;if(A.arr(e))return an({range:e,output:t,extrapolate:n});if(A.str(e.output[0]))return tr(e);const o=e,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=Xc(u,s);return qc(u,s[d],s[d+1],r[d],r[d+1],c,a,l,o.map)}};function qc(e,t,n,o,r,s,a,l,c){let u=c?c(e):e;if(u<t){if(a==="identity")return u;a==="clamp"&&(u=t)}if(u>n){if(l==="identity")return u;l==="clamp"&&(u=n)}return o===r?o:t===n?e<=t?o:r:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=s(u),o===-1/0?u=-u:r===1/0?u=u+o:u=u*(r-o)+o,u)}function Xc(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}const Qc=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const o=n*e,r=t==="end"?Math.floor(o):Math.ceil(o);return Bc(0,1,r/e)},zn=1.70158,Zn=zn*1.525,Us=zn+1,Ys=2*Math.PI/3,Gs=2*Math.PI/4.5,jn=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Jc={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Us*e*e*e-zn*e*e,easeOutBack:e=>1+Us*Math.pow(e-1,3)+zn*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Zn+1)*2*e-Zn)/2:(Math.pow(2*e-2,2)*((Zn+1)*(e*2-2)+Zn)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Ys),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Ys)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Gs))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Gs)/2+1,easeInBounce:e=>1-jn(1-e),easeOutBounce:jn,easeInOutBounce:e=>e<.5?(1-jn(1-2*e))/2:(1+jn(2*e-1))/2,steps:Qc};function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ir.apply(this,arguments)}const Lt=Symbol.for("FluidValue.get"),St=Symbol.for("FluidValue.observers"),Be=e=>!!(e&&e[Lt]),Me=e=>e&&e[Lt]?e[Lt]():e,qs=e=>e[St]||null;function Rc(e,t){e.eventObserved?e.eventObserved(t):e(t)}function ln(e,t){let n=e[St];n&&n.forEach(o=>{Rc(o,t)})}class Xs{constructor(t){if(this[Lt]=void 0,this[St]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");eu(this,t)}}const eu=(e,t)=>Qs(e,Lt,t);function Bt(e,t){if(e[Lt]){let n=e[St];n||Qs(e,St,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function cn(e,t){let n=e[St];if(n&&n.has(t)){const o=n.size-1;o?n.delete(t):e[St]=null,e.observerRemoved&&e.observerRemoved(o,t)}}const Qs=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Kn=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,tu=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Js=new RegExp(`(${Kn.source})(%|[a-z]+)`,"i"),nu=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Wn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Rs=e=>{const[t,n]=ou(e);if(!t||er())return e;const o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(n&&n.startsWith("--")){const r=window.getComputedStyle(document.documentElement).getPropertyValue(n);return r||e}else{if(n&&Wn.test(n))return Rs(n);if(n)return n}return e},ou=e=>{const t=Wn.exec(e);if(!t)return[,];const[,n,o]=t;return[n,o]};let ar;const ru=(e,t,n,o,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,ei=e=>{ar||(ar=mt?new RegExp(`(${Object.keys(mt).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>Me(s).replace(Wn,Rs).replace(tu,Hs).replace(ar,Hs)),n=t.map(s=>s.match(Kn).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=>an(ir({},e,{output:s})));return s=>{var a;const l=!Js.test(t[0])&&((a=t.find(u=>Js.test(u)))==null?void 0:a.replace(Kn,""));let c=0;return t[0].replace(Kn,()=>`${r[c++](s)}${l||""}`).replace(nu,ru)}},lr="react-spring: ",ti=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${lr}once requires a function parameter`);return(...o)=>{n||(t(...o),n=!0)}},su=ti(console.warn);function iu(){su(`${lr}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const au=ti(console.warn);function lu(){au(`${lr}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 Hn(e){return A.str(e)&&(e[0]=="#"||/\d/.test(e)||!er()&&Wn.test(e)||e in(mt||{}))}const cr=er()?i.useEffect:i.useLayoutEffect,cu=()=>{const e=i.useRef(!1);return cr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function ni(){const e=i.useState()[1],t=cu();return()=>{t.current&&e(Math.random())}}function uu(e,t){const[n]=i.useState(()=>({inputs:t,result:e()})),o=i.useRef(),r=o.current;let s=r;return s?t&&s.inputs&&du(t,s.inputs)||(s={inputs:t,result:e()}):s=n,i.useEffect(()=>{o.current=s,r==n&&(n.inputs=n.result=void 0)},[s]),s.result}function du(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const oi=e=>i.useEffect(e,fu),fu=[];function ri(e){const t=i.useRef();return i.useEffect(()=>{t.current=e}),t.current}const un=Symbol.for("Animated:node"),mu=e=>!!e&&e[un]===e,Je=e=>e&&e[un],ur=(e,t)=>Dc(e,un,t),Un=e=>e&&e[un]&&e[un].getPayload();class si{constructor(){this.payload=void 0,ur(this,this)}getPayload(){return this.payload||[]}}class Vt extends si{constructor(t){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=t,A.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new Vt(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return A.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,A.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}}class zt extends Vt{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=an({output:[t,t]})}static create(t){return new zt(t)}getValue(){let t=this._string;return t==null?this._string=this._toString(this._value):t}setValue(t){if(A.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=an({output:[this.getValue(),t]})),this._value=0,super.reset()}}const Yn={dependencies:null};class Gn extends si{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const n={};return Xe(this.source,(o,r)=>{mu(o)?n[r]=o.getValue(t):Be(o)?n[r]=Me(o):t||(n[r]=o)}),n}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&se(this.payload,t=>t.reset())}_makePayload(t){if(t){const n=new Set;return Xe(t,this._addToPayload,n),Array.from(n)}}_addToPayload(t){Yn.dependencies&&Be(t)&&Yn.dependencies.add(t);const n=Un(t);n&&se(n,o=>this.add(o))}}class dr extends Gn{constructor(t){super(t)}static create(t){return new dr(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((o,r)=>o.setValue(t[r])).some(Boolean):(super.setValue(t.map(hu)),!0)}}function hu(e){return(Hn(e)?zt:Vt).create(e)}function fr(e){const t=Je(e);return t?t.constructor:A.arr(e)?dr:Hn(e)?zt:Vt}function qn(){return qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},qn.apply(this,arguments)}const ii=(e,t)=>{const n=!A.fun(e)||e.prototype&&e.prototype.isReactComponent;return i.forwardRef((o,r)=>{const s=i.useRef(null),a=n&&i.useCallback(p=>{s.current=vu(r,p)},[r]),[l,c]=gu(o,t),u=ni(),d=()=>{const p=s.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,l.getValue(!0)):!1)===!1&&u()},m=new pu(d,c),g=i.useRef();cr(()=>(g.current=m,se(c,p=>Bt(p,m)),()=>{g.current&&(se(g.current.deps,p=>cn(p,g.current)),Q.cancel(g.current.update))})),i.useEffect(d,[]),oi(()=>()=>{const p=g.current;se(p.deps,y=>cn(y,p))});const v=t.getComponentProps(l.getValue());return X.createElement(e,qn({},v,{ref:a}))})};class pu{constructor(t,n){this.update=t,this.deps=n}eventObserved(t){t.type=="change"&&Q.write(this.update)}}function gu(e,t){const n=new Set;return Yn.dependencies=n,e.style&&(e=qn({},e,{style:t.createAnimatedStyle(e.style)})),e=new Gn(e),Yn.dependencies=null,[e,n]}function vu(e,t){return e&&(A.fun(e)?e(t):e.current=t),t}const ai=Symbol.for("AnimatedComponent"),bu=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=r=>new Gn(r),getComponentProps:o=r=>r}={})=>{const r={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:o},s=a=>{const l=li(a)||"Anonymous";return A.str(a)?a=s[a]||(s[a]=ii(a,r)):a=a[ai]||(a[ai]=ii(a,r)),a.displayName=`Animated(${l})`,a};return Xe(e,(a,l)=>{A.arr(e)&&(l=li(a)),s[l]=s(a)}),{animated:s}},li=e=>A.str(e)?e:e&&A.str(e.displayName)?e.displayName:A.fun(e)&&e.name||null;function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Se.apply(this,arguments)}function wt(e,...t){return A.fun(e)?e(...t):e}const dn=(e,t)=>e===!0||!!(t&&e&&(A.fun(e)?e(t):Te(e).includes(t))),ci=(e,t)=>A.obj(e)?t&&e[t]:e,ui=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,yu=e=>e,mr=(e,t=yu)=>{let n=Cu;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const o={};for(const r of n){const s=t(e[r],r);A.und(s)||(o[r]=s)}return o},Cu=["config","onProps","onStart","onChange","onPause","onResume","onRest"],xu={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 Su(e){const t={};let n=0;if(Xe(e,(o,r)=>{xu[r]||(t[r]=o,n++)}),n)return t}function di(e){const t=Su(e);if(t){const n={to:t};return Xe(e,(o,r)=>r in t||(n[r]=o)),n}return Se({},e)}function fn(e){return e=Me(e),A.arr(e)?e.map(fn):Hn(e)?Qe.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function wu(e){for(const t in e)return!0;return!1}function hr(e){return A.fun(e)||A.arr(e)&&A.obj(e[0])}function ku(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function Eu(e,t){if(t&&e.ref!==t){var n;(n=e.ref)==null||n.delete(e),t.add(e),e.ref=t}}const pr=Se({},{default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}}.default,{mass:1,damping:1,easing:Jc.linear,clamp:!1});class Iu{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,pr)}}function $u(e,t,n){n&&(n=Se({},n),fi(n,t),t=Se({},n,t)),fi(e,t),Object.assign(e,t);for(const a in pr)e[a]==null&&(e[a]=pr[a]);let{mass:o,frequency:r,damping:s}=e;return A.und(r)||(r<.01&&(r=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*s*o/r),e}function fi(e,t){if(!A.und(t.decay))e.duration=void 0;else{const n=!A.und(t.tension)||!A.und(t.friction);(n||!A.und(t.frequency)||!A.und(t.damping)||!A.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}const mi=[];class _u{constructor(){this.changed=!1,this.values=mi,this.toValues=null,this.fromValues=mi,this.to=void 0,this.from=void 0,this.config=new Iu,this.immediate=!1}}function hi(e,{key:t,props:n,defaultProps:o,state:r,actions:s}){return new Promise((a,l)=>{var c;let u,d,m=dn((c=n.cancel)!=null?c:o==null?void 0:o.cancel,t);if(m)p();else{A.und(n.pause)||(r.paused=dn(n.pause,t));let y=o==null?void 0:o.pause;y!==!0&&(y=r.paused||dn(y,t)),u=wt(n.delay||0,t),y?(r.resumeQueue.add(v),s.pause()):(s.resume(),v())}function g(){r.resumeQueue.add(v),r.timeouts.delete(d),d.cancel(),u=d.time-Q.now()}function v(){u>0&&!Qe.skipAnimation?(r.delayed=!0,d=Q.setTimeout(p,u),r.pauseQueue.add(g),r.timeouts.add(d)):p()}function p(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(g),r.timeouts.delete(d),e<=(r.cancelId||0)&&(m=!0);try{s.start(Se({},n,{callId:e,cancel:m}),a)}catch(y){l(y)}}})}const gr=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Zt(e.get()):t.every(n=>n.noop)?pi(e.get()):Ue(e.get(),t.every(n=>n.finished)),pi=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ue=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Zt=e=>({value:e,cancelled:!0,finished:!1});function gi(e,t,n,o){const{callId:r,parentId:s,onRest:a}=t,{asyncTo:l,promise:c}=n;return!s&&e===l&&!t.reset?c:n.promise=me(this,null,function*(){n.asyncId=r,n.asyncTo=e;const u=mr(t,(b,C)=>C==="onRest"?void 0:b);let d,m;const g=new Promise((b,C)=>(d=b,m=C)),v=b=>{const C=r<=(n.cancelId||0)&&Zt(o)||r!==n.asyncId&&Ue(o,!1);if(C)throw b.result=C,m(b),b},p=(b,C)=>{const w=new vi,x=new bi;return me(this,null,function*(){if(Qe.skipAnimation)throw mn(n),x.result=Ue(o,!1),m(x),x;v(w);const S=A.obj(b)?Se({},b):Se({},C,{to:b});S.parentId=r,Xe(u,(I,M)=>{A.und(S[M])&&(S[M]=I)});const k=yield o.start(S);return v(w),n.paused&&(yield new Promise(I=>{n.resumeQueue.add(I)})),k})};let y;if(Qe.skipAnimation)return mn(n),Ue(o,!1);try{let b;A.arr(e)?b=(C=>me(this,null,function*(){for(const w of C)yield p(w)}))(e):b=Promise.resolve(e(p,o.stop.bind(o))),yield Promise.all([b.then(d),g]),y=Ue(o.get(),!0,!1)}catch(b){if(b instanceof vi)y=b.result;else if(b instanceof bi)y=b.result;else throw b}finally{r==n.asyncId&&(n.asyncId=s,n.asyncTo=s?l:void 0,n.promise=s?c:void 0)}return A.fun(a)&&Q.batchedUpdates(()=>{a(y,o,o.item)}),y})}function mn(e,t){on(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class vi 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 bi extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const vr=e=>e instanceof br;let Pu=1;class br extends Xs{constructor(...t){super(...t),this.id=Pu++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=Je(this);return t&&t.getValue()}to(...t){return Qe.to(this,t)}interpolate(...t){return iu(),Qe.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,n=!1){ln(this,{type:"change",parent:this,value:t,idle:n})}_onPriorityChange(t){this.idle||An.sort(this),ln(this,{type:"priority",parent:this,priority:t})}}const kt=Symbol.for("SpringPhase"),yi=1,yr=2,Cr=4,xr=e=>(e[kt]&yi)>0,ht=e=>(e[kt]&yr)>0,hn=e=>(e[kt]&Cr)>0,Ci=(e,t)=>t?e[kt]|=yr|yi:e[kt]&=~yr,xi=(e,t)=>t?e[kt]|=Cr:e[kt]&=~Cr;class Mu extends br{constructor(t,n){if(super(),this.key=void 0,this.animation=new _u,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,!A.und(t)||!A.und(n)){const o=A.obj(t)?Se({},t):Se({},n,{from:t});A.und(o.default)&&(o.default=!0),this.start(o)}}get idle(){return!(ht(this)||this._state.asyncTo)||hn(this)}get goal(){return Me(this.animation.to)}get velocity(){const t=Je(this);return t instanceof Vt?t.lastVelocity||0:t.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return xr(this)}get isAnimating(){return ht(this)}get isPaused(){return hn(this)}get isDelayed(){return this._state.delayed}advance(t){let n=!0,o=!1;const r=this.animation;let{config:s,toValues:a}=r;const l=Un(r.to);!l&&Be(r.to)&&(a=Te(Me(r.to))),r.values.forEach((d,m)=>{if(d.done)return;const g=d.constructor==zt?1:l?l[m].lastPosition:a[m];let v=r.immediate,p=g;if(!v){if(p=d.lastPosition,s.tension<=0){d.done=!0;return}let y=d.elapsedTime+=t;const b=r.fromValues[m],C=d.v0!=null?d.v0:d.v0=A.arr(s.velocity)?s.velocity[m]:s.velocity;let w;const x=s.precision||(b==g?.005:Math.min(1,Math.abs(g-b)*.001));if(A.und(s.duration))if(s.decay){const S=s.decay===!0?.998:s.decay,k=Math.exp(-(1-S)*y);p=b+C/(1-S)*(1-k),v=Math.abs(d.lastPosition-p)<=x,w=C*k}else{w=d.lastVelocity==null?C:d.lastVelocity;const S=s.restVelocity||x/10,k=s.clamp?0:s.bounce,I=!A.und(k),M=b==g?d.v0>0:b<g;let O,L=!1;const F=1,N=Math.ceil(t/F);for(let W=0;W<N&&(O=Math.abs(w)>S,!(!O&&(v=Math.abs(g-p)<=x,v)));++W){I&&(L=p==g||p>g==M,L&&(w=-w*k,p=g));const V=-s.tension*1e-6*(p-g),_=-s.friction*.001*w,P=(V+_)/s.mass;w=w+P*F,p=p+w*F}}else{let S=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,d.durationProgress>0&&(d.elapsedTime=s.duration*d.durationProgress,y=d.elapsedTime+=t)),S=(s.progress||0)+y/this._memoizedDuration,S=S>1?1:S<0?0:S,d.durationProgress=S),p=b+s.easing(S)*(g-b),w=(p-d.lastPosition)/t,v=S==1}d.lastVelocity=w,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),v=!0)}l&&!l[m].done&&(v=!1),v?d.done=!0:n=!1,d.setValue(p,s.round)&&(o=!0)});const c=Je(this),u=c.getValue();if(n){const d=Me(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(t){return Q.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ht(this)){const{to:t,config:n}=this.animation;Q.batchedUpdates(()=>{this._onStart(),n.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,n){let o;return A.und(t)?(o=this.queue||[],this.queue=[]):o=[A.obj(t)?t:Se({},n,{to:t})],Promise.all(o.map(r=>this._update(r))).then(r=>gr(this,r))}stop(t){const{to:n}=this.animation;return this._focus(this.get()),mn(this._state,t&&this._lastCallId),Q.batchedUpdates(()=>this._stop(n,t)),this}reset(){this._update({reset:!0})}eventObserved(t){t.type=="change"?this._start():t.type=="priority"&&(this.priority=t.priority+1)}_prepareNode(t){const n=this.key||"";let{to:o,from:r}=t;o=A.obj(o)?o[n]:o,(o==null||hr(o))&&(o=void 0),r=A.obj(r)?r[n]:r,r==null&&(r=void 0);const s={to:o,from:r};return xr(this)||(t.reverse&&([o,r]=[r,o]),r=Me(r),A.und(r)?Je(this)||this._set(o):this._set(r)),s}_update(t,n){let o=Se({},t);const{key:r,defaultProps:s}=this;o.default&&Object.assign(s,mr(o,(c,u)=>/^on/.test(u)?ci(c,r):c)),ki(this,o,"onProps"),vn(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 hi(++this._lastCallId,{key:r,props:o,defaultProps:s,state:l,actions:{pause:()=>{hn(this)||(xi(this,!0),rn(l.pauseQueue),vn(this,"onPause",Ue(this,pn(this,this.animation.to)),this))},resume:()=>{hn(this)&&(xi(this,!1),ht(this)&&this._resume(),rn(l.resumeQueue),vn(this,"onResume",Ue(this,pn(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(c=>{if(o.loop&&c.finished&&!(n&&c.noop)){const u=Si(o);if(u)return this._update(u,!0)}return c})}_merge(t,n,o){if(n.cancel)return this.stop(!0),o(Zt(this));const r=!A.und(t.to),s=!A.und(t.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:m=u,from:g=d}=t;s&&!r&&(!n.default||A.und(m))&&(m=g),n.reverse&&([m,g]=[g,m]);const v=!rt(g,d);v&&(c.from=g),g=Me(g);const p=!rt(m,u);p&&this._focus(m);const y=hr(n.to),{config:b}=c,{decay:C,velocity:w}=b;(r||s)&&(b.velocity=0),n.config&&!y&&$u(b,wt(n.config,a),n.config!==l.config?wt(l.config,a):void 0);let x=Je(this);if(!x||A.und(m))return o(Ue(this,!0));const S=A.und(n.reset)?s&&!n.default:!A.und(g)&&dn(n.reset,a),k=S?g:this.get(),I=fn(m),M=A.num(I)||A.arr(I)||Hn(I),O=!y&&(!M||dn(l.immediate||n.immediate,a));if(p){const W=fr(m);if(W!==x.constructor)if(O)x=this._set(I);else throw Error(`Cannot animate between ${x.constructor.name} and ${W.name}, as the "to" prop suggests`)}const L=x.constructor;let F=Be(m),N=!1;if(!F){const W=S||!xr(this)&&v;(p||W)&&(N=rt(fn(k),I),F=!N),(!rt(c.immediate,O)&&!O||!rt(b.decay,C)||!rt(b.velocity,w))&&(F=!0)}if(N&&ht(this)&&(c.changed&&!S?F=!0:F||this._stop(u)),!y&&((F||Be(u))&&(c.values=x.getPayload(),c.toValues=Be(m)?null:L==zt?[1]:Te(I)),c.immediate!=O&&(c.immediate=O,!O&&!S&&this._set(u)),F)){const{onRest:W}=c;se(Nu,_=>ki(this,n,_));const V=Ue(this,pn(this,u));rn(this._pendingCalls,V),this._pendingCalls.add(o),c.changed&&Q.batchedUpdates(()=>{c.changed=!S,W==null||W(V,this),S?wt(l.onRest,V):c.onStart==null||c.onStart(V,this)})}S&&this._set(k),y?o(gi(n.to,n,this._state,this)):F?this._start():ht(this)&&!p?this._pendingCalls.add(o):o(pi(k))}_focus(t){const n=this.animation;t!==n.to&&(qs(this)&&this._detach(),n.to=t,qs(this)&&this._attach())}_attach(){let t=0;const{to:n}=this.animation;Be(n)&&(Bt(n,this),vr(n)&&(t=n.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;Be(t)&&cn(t,this)}_set(t,n=!0){const o=Me(t);if(!A.und(o)){const r=Je(this);if(!r||!rt(o,r.getValue())){const s=fr(o);!r||r.constructor!=s?ur(this,s.create(o)):r.setValue(o),r&&Q.batchedUpdates(()=>{this._onChange(o,n)})}}return Je(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,vn(this,"onStart",Ue(this,pn(this,t.to)),this))}_onChange(t,n){n||(this._onStart(),wt(this.animation.onChange,t,this)),wt(this.defaultProps.onChange,t,this),super._onChange(t,n)}_start(){const t=this.animation;Je(this).reset(Me(t.to)),t.immediate||(t.fromValues=t.values.map(n=>n.lastPosition)),ht(this)||(Ci(this,!0),hn(this)||this._resume())}_resume(){Qe.skipAnimation?this.finish():An.start(this)}_stop(t,n){if(ht(this)){Ci(this,!1);const o=this.animation;se(o.values,s=>{s.done=!0}),o.toValues&&(o.onChange=o.onPause=o.onResume=void 0),ln(this,{type:"idle",parent:this});const r=n?Zt(this.get()):Ue(this.get(),pn(this,t!=null?t:o.to));rn(this._pendingCalls,r),o.changed&&(o.changed=!1,vn(this,"onRest",r,this))}}}function pn(e,t){const n=fn(t),o=fn(e.get());return rt(o,n)}function Si(e,t=e.loop,n=e.to){let o=wt(t);if(o){const r=o!==!0&&di(o),s=(r||e).reverse,a=!r||r.reset;return gn(Se({},e,{loop:t,default:!1,pause:void 0,to:!s||hr(n)?n:void 0,from:a?e.from:void 0,reset:a},r))}}function gn(e){const{to:t,from:n}=e=di(e),o=new Set;return A.obj(t)&&wi(t,o),A.obj(n)&&wi(n,o),e.keys=o.size?Array.from(o):null,e}function Fu(e){const t=gn(e);return A.und(t.default)&&(t.default=mr(t)),t}function wi(e,t){Xe(e,(n,o)=>n!=null&&t.add(o))}const Nu=["onStart","onRest","onChange","onPause","onResume"];function ki(e,t,n){e.animation[n]=t[n]!==ui(t,n)?ci(t[n],e.key):void 0}function vn(e,t,...n){var o,r,s,a;(o=(r=e.animation)[t])==null||o.call(r,...n),(s=(a=e.defaultProps)[t])==null||s.call(a,...n)}const Ou=["onStart","onChange","onRest"];let Tu=1,Du=class{constructor(t,n){this.id=Tu++,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),t&&this.start(Se({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each((n,o)=>t[o]=n.get()),t}set(t){for(const n in t){const o=t[n];A.und(o)||this.springs[n].set(o)}}update(t){return t&&this.queue.push(gn(t)),this}start(t){let{queue:n}=this;return t?n=Te(t).map(gn):this.queue=[],this._flush?this._flush(this,n):(Mi(this,n),Sr(this,n))}stop(t,n){if(t!==!!t&&(n=t),n){const o=this.springs;se(Te(n),r=>o[r].stop(!!t))}else mn(this._state,this._lastAsyncId),this.each(o=>o.stop(!!t));return this}pause(t){if(A.und(t))this.start({pause:!0});else{const n=this.springs;se(Te(t),o=>n[o].pause())}return this}resume(t){if(A.und(t))this.start({pause:!1});else{const n=this.springs;se(Te(t),o=>n[o].resume())}return this}each(t){Xe(this.springs,t)}_onFrame(){const{onStart:t,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,on(t,([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&&on(n,([c,u])=>{u.value=l,c(u,this,this._item)}),a&&(this._started=!1,on(o,([c,u])=>{u.value=l,c(u,this,this._item)}))}eventObserved(t){if(t.type=="change")this._changed.add(t.parent),t.idle||this._active.add(t.parent);else if(t.type=="idle")this._active.delete(t.parent);else return;Q.onFrame(this._onFrame)}};function Sr(e,t){return Promise.all(t.map(n=>Ei(e,n))).then(n=>gr(e,n))}function Ei(e,t,n){return me(this,null,function*(){const{keys:o,to:r,from:s,loop:a,onRest:l,onResolve:c}=t,u=A.obj(t.default)&&t.default;a&&(t.loop=!1),r===!1&&(t.to=null),s===!1&&(t.from=null);const d=A.arr(r)||A.fun(r)?r:void 0;d?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):se(Ou,y=>{const b=t[y];if(A.fun(b)){const C=e._events[y];t[y]=({finished:w,cancelled:x})=>{const S=C.get(b);S?(w||(S.finished=!1),x&&(S.cancelled=!0)):C.set(b,{value:null,finished:w||!1,cancelled:x||!1})},u&&(u[y]=t[y])}});const m=e._state;t.pause===!m.paused?(m.paused=t.pause,rn(t.pause?m.pauseQueue:m.resumeQueue)):m.paused&&(t.pause=!0);const g=(o||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),v=t.cancel===!0||ui(t,"cancel")===!0;(d||v&&m.asyncId)&&g.push(hi(++e._lastAsyncId,{props:t,state:m,actions:{pause:Ro,resume:Ro,start(y,b){v?(mn(m,e._lastAsyncId),b(Zt(e))):(y.onRest=l,b(gi(d,y,m,e)))}}})),m.paused&&(yield new Promise(y=>{m.resumeQueue.add(y)}));const p=gr(e,yield Promise.all(g));if(a&&p.finished&&!(n&&p.noop)){const y=Si(t,a,r);if(y)return Mi(e,[y]),Ei(e,y,!0)}return c&&Q.batchedUpdates(()=>c(p,e,e.item)),p})}function Ii(e,t){const n=Se({},e.springs);return t&&se(Te(t),o=>{A.und(o.keys)&&(o=gn(o)),A.obj(o.to)||(o=Se({},o,{to:void 0})),Pi(n,o,r=>_i(r))}),$i(e,n),n}function $i(e,t){Xe(t,(n,o)=>{e.springs[o]||(e.springs[o]=n,Bt(n,e))})}function _i(e,t){const n=new Mu;return n.key=e,t&&Bt(n,t),n}function Pi(e,t,n){t.keys&&se(t.keys,o=>{(e[o]||(e[o]=n(o)))._prepareNode(t)})}function Mi(e,t){se(t,n=>{Pi(e.springs,n,o=>_i(o,e))})}function Au(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,s;for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}const Lu=["children"],Xn=e=>{let{children:t}=e,n=Au(e,Lu);const o=i.useContext(Qn),r=n.pause||!!o.pause,s=n.immediate||!!o.immediate;n=uu(()=>({pause:r,immediate:s}),[r,s]);const{Provider:a}=Qn;return X.createElement(a,{value:n},t)},Qn=Bu(Xn,{});Xn.Provider=Qn.Provider,Xn.Consumer=Qn.Consumer;function Bu(e,t){return Object.assign(e,X.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}const Vu=()=>{const e=[],t=function(r){lu();const s=[];return se(e,(a,l)=>{if(A.und(r))s.push(a.start());else{const c=n(r,a,l);c&&s.push(a.start(c))}}),s};t.current=e,t.add=function(o){e.includes(o)||e.push(o)},t.delete=function(o){const r=e.indexOf(o);~r&&e.splice(r,1)},t.pause=function(){return se(e,o=>o.pause(...arguments)),this},t.resume=function(){return se(e,o=>o.resume(...arguments)),this},t.set=function(o){se(e,r=>r.set(o))},t.start=function(o){const r=[];return se(e,(s,a)=>{if(A.und(o))r.push(s.start());else{const l=this._getProps(o,s,a);l&&r.push(s.start(l))}}),r},t.stop=function(){return se(e,o=>o.stop(...arguments)),this},t.update=function(o){return se(e,(r,s)=>r.update(this._getProps(o,r,s))),this};const n=function(r,s,a){return A.fun(r)?r(a,s):r};return t._getProps=n,t};function zu(e,t,n){const o=A.fun(t)&&t;o&&!n&&(n=[]);const r=i.useMemo(()=>o||arguments.length==3?Vu():void 0,[]),s=i.useRef(0),a=ni(),l=i.useMemo(()=>({ctrls:[],queue:[],flush(C,w){const x=Ii(C,w);return s.current>0&&!l.queue.length&&!Object.keys(x).some(k=>!C.springs[k])?Sr(C,w):new Promise(k=>{$i(C,x),l.queue.push(()=>{k(Sr(C,w))}),a()})}}),[]),c=i.useRef([...l.ctrls]),u=[],d=ri(e)||0;i.useMemo(()=>{se(c.current.slice(e,d),C=>{ku(C,r),C.stop(!0)}),c.current.length=e,m(d,e)},[e]),i.useMemo(()=>{m(0,Math.min(d,e))},n);function m(C,w){for(let x=C;x<w;x++){const S=c.current[x]||(c.current[x]=new Du(null,l.flush)),k=o?o(x,S):t[x];k&&(u[x]=Fu(k))}}const g=c.current.map((C,w)=>Ii(C,u[w])),v=i.useContext(Xn),p=ri(v),y=v!==p&&wu(v);cr(()=>{s.current++,l.ctrls=c.current;const{queue:C}=l;C.length&&(l.queue=[],se(C,w=>w())),se(c.current,(w,x)=>{r==null||r.add(w),y&&w.start({default:v});const S=u[x];S&&(Eu(w,S.ref),w.ref?w.queue.push(S):w.start(S))})}),oi(()=>()=>{se(l.ctrls,C=>C.stop(!0))});const b=g.map(C=>Se({},C));return r?[b,r]:b}function Ve(e,t){const n=A.fun(e),[[o],r]=zu(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[o,r]:o}let Fi;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(Fi||(Fi={}));class Zu extends br{constructor(t,n){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=an(...n);const o=this._get(),r=fr(o);ur(this,r.create(o))}advance(t){const n=this._get(),o=this.get();rt(n,o)||(Je(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&Ni(this._active)&&wr(this)}_get(){const t=A.arr(this.source)?this.source.map(Me):Te(Me(this.source));return this.calc(...t)}_start(){this.idle&&!Ni(this._active)&&(this.idle=!1,se(Un(this),t=>{t.done=!1}),Qe.skipAnimation?(Q.batchedUpdates(()=>this.advance()),wr(this)):An.start(this))}_attach(){let t=1;se(Te(this.source),n=>{Be(n)&&Bt(n,this),vr(n)&&(n.idle||this._active.add(n),t=Math.max(t,n.priority+1))}),this.priority=t,this._start()}_detach(){se(Te(this.source),t=>{Be(t)&&cn(t,this)}),this._active.clear(),wr(this)}eventObserved(t){t.type=="change"?t.idle?this.advance():(this._active.add(t.parent),this._start()):t.type=="idle"?this._active.delete(t.parent):t.type=="priority"&&(this.priority=Te(this.source).reduce((n,o)=>Math.max(n,(vr(o)?o.priority:0)+1),0))}}function ju(e){return e.idle!==!1}function Ni(e){return!e.size||Array.from(e).every(ju)}function wr(e){e.idle||(e.idle=!0,se(Un(e),t=>{t.done=!0}),ln(e,{type:"idle",parent:e}))}Qe.assign({createStringInterpolator:ei,to:(e,t)=>new Zu(e,t)});function kr(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,s;for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}const Ku=["style","children","scrollTop","scrollLeft","viewBox"],Oi=/^--/;function Wu(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Oi.test(e)&&!(bn.hasOwnProperty(e)&&bn[e])?t+"px":(""+t).trim()}const Ti={};function Hu(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",o=t,{style:r,children:s,scrollTop:a,scrollLeft:l,viewBox:c}=o,u=kr(o,Ku),d=Object.values(u),m=Object.keys(u).map(g=>n||e.hasAttribute(g)?g:Ti[g]||(Ti[g]=g.replace(/([A-Z])/g,v=>"-"+v.toLowerCase())));s!==void 0&&(e.textContent=s);for(let g in r)if(r.hasOwnProperty(g)){const v=Wu(g,r[g]);Oi.test(g)?e.style.setProperty(g,v):e.style[g]=v}m.forEach((g,v)=>{e.setAttribute(g,d[v])}),a!==void 0&&(e.scrollTop=a),l!==void 0&&(e.scrollLeft=l),c!==void 0&&e.setAttribute("viewBox",c)}let bn={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 Uu=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Yu=["Webkit","Ms","Moz","O"];bn=Object.keys(bn).reduce((e,t)=>(Yu.forEach(n=>e[Uu(n,t)]=e[t]),e),bn);const Gu=["x","y","z"],qu=/^(matrix|translate|scale|rotate|skew)/,Xu=/^(translate)/,Qu=/^(rotate|skew)/,Er=(e,t)=>A.num(e)&&e!==0?e+t:e,Jn=(e,t)=>A.arr(e)?e.every(n=>Jn(n,t)):A.num(e)?e===t:parseFloat(e)===t;class Ju extends Gn{constructor(t){let{x:n,y:o,z:r}=t,s=kr(t,Gu);const a=[],l=[];(n||o||r)&&(a.push([n||0,o||0,r||0]),l.push(c=>[`translate3d(${c.map(u=>Er(u,"px")).join(",")})`,Jn(c,0)])),Xe(s,(c,u)=>{if(u==="transform")a.push([c||""]),l.push(d=>[d,d===""]);else if(qu.test(u)){if(delete s[u],A.und(c))return;const d=Xu.test(u)?"px":Qu.test(u)?"deg":"";a.push(Te(c)),l.push(u==="rotate3d"?([m,g,v,p])=>[`rotate3d(${m},${g},${v},${Er(p,d)})`,Jn(p,0)]:m=>[`${u}(${m.map(g=>Er(g,d)).join(",")})`,Jn(m,u.startsWith("scale")?1:0)])}}),a.length&&(s.transform=new Ru(a,l)),super(s)}}class Ru extends Xs{constructor(t,n){super(),this._value=null,this.inputs=t,this.transforms=n}get(){return this._value||(this._value=this._get())}_get(){let t="",n=!0;return se(this.inputs,(o,r)=>{const s=Me(o[0]),[a,l]=this.transforms[r](A.arr(s)?s:o.map(Me));t+=" "+a,n=n&&l}),n?"none":t}observerAdded(t){t==1&&se(this.inputs,n=>se(n,o=>Be(o)&&Bt(o,this)))}observerRemoved(t){t==0&&se(this.inputs,n=>se(n,o=>Be(o)&&cn(o,this)))}eventObserved(t){t.type=="change"&&(this._value=null),ln(this,t)}}const ed=["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"],td=["scrollTop","scrollLeft"];Qe.assign({batchedUpdates:Ot.unstable_batchedUpdates,createStringInterpolator:ei,colors:Vc});const ke=bu(ed,{applyAnimatedValues:Hu,createAnimatedStyle:e=>new Ju(e),getComponentProps:e=>kr(e,td)}).animated;function nd(e){return(typeof e=="function"?e():e)||document.body}function Rn(e,t){if(Tt&&e){const n=nd(e);return Ot.createPortal(t,n)}return t}function od(e){const t=i.useRef(e);return e&&(t.current=!0),!!t.current}const eo=e=>rd(e.active,e.forceRender,e.destroyOnClose)?e.children:null;function rd(e,t,n){const o=od(e);return t||e?!0:o?!n:!1}const sd={click:"onClick",touchstart:"onTouchStart"};function Di(e,t){const n=Object.assign({},t.props);for(const o of e){const r=sd[o];n[r]=function(s){var a,l;s.stopPropagation(),(l=(a=t.props)[r])===null||l===void 0||l.call(a,s)}}return i.cloneElement(t,n)}const Ir="adm-mask",id={default:.55,thin:.35,thick:.75},ad={black:"0, 0, 0",white:"255, 255, 255"},ld={visible:!0,destroyOnClose:!1,forceRender:!1,color:"black",opacity:"default",disableBodyScroll:!0,getContainer:null,stopPropagation:["click"]},to=e=>{const t=oe(ld,e),{locale:n}=Pe(),o=i.useRef(null);Ns(o,t.visible&&t.disableBodyScroll);const r=i.useMemo(()=>{var d;const m=(d=id[t.opacity])!==null&&d!==void 0?d:t.opacity,g=ad[t.color];return g?`rgba(${g}, ${m})`:t.color},[t.color,t.opacity]),[s,a]=i.useState(t.visible),l=te.useUnmountedRef(),{opacity:c}=Ve({opacity:t.visible?1:0,config:{precision:.01,mass:1,tension:250,friction:30,clamp:!0},onStart:()=>{a(!0)},onRest:()=>{var d,m;l.current||(a(t.visible),t.visible?(d=t.afterShow)===null||d===void 0||d.call(t):(m=t.afterClose)===null||m===void 0||m.call(t))}}),u=Di(t.stopPropagation,Y(t,i.createElement(ke.div,{className:Ir,ref:o,"aria-hidden":!0,style:Object.assign(Object.assign({},t.style),{background:r,opacity:c,display:s?void 0:"none"}),onClick:d=>{var m;d.target===d.currentTarget&&((m=t.onMaskClick)===null||m===void 0||m.call(t,d))}},t.onMaskClick&&i.createElement("div",{className:`${Ir}-aria-button`,role:"button","aria-label":n.Mask.name,onClick:t.onMaskClick}),i.createElement("div",{className:`${Ir}-content`},t.children))));return i.createElement(eo,{active:s,forceRender:t.forceRender,destroyOnClose:t.destroyOnClose},Rn(t.getContainer,u))};function cd(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"AddOutline-AddOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"AddOutline-add"},X.createElement("rect",{id:"AddOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 Ai(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"CheckOutline-CheckOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"CheckOutline-编组"},X.createElement("rect",{id:"CheckOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 ud(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"CloseCircleFill-CloseCircleFill",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"CloseCircleFill-编组"},X.createElement("rect",{id:"CloseCircleFill-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 no(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"CloseOutline-CloseOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"CloseOutline-编组"},X.createElement("rect",{id:"CloseOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 dd(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"DownOutline-DownOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",null,X.createElement("rect",{id:"DownOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 fd(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"LeftOutline-LeftOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"LeftOutline-编组"},X.createElement("rect",{id:"LeftOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 md(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"RightOutline-RightOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"RightOutline-RightOutlined"},X.createElement("rect",{id:"RightOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 hd(e){return X.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"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),X.createElement("g",{id:"SearchOutline-SearchOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"SearchOutline-编组"},X.createElement("rect",{id:"SearchOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 pd={closeOnMaskClick:!1,closeIcon:i.createElement(no,null),destroyOnClose:!1,disableBodyScroll:!0,forceRender:!1,getContainer:()=>document.body,mask:!0,showCloseButton:!1,stopPropagation:["click"],visible:!1};function gd(e){const[t,n]=i.useState(e);return te.useIsomorphicLayoutEffect(()=>{n(e)},[e]),t}function vd(e,t,n){return Math.max(t,Math.min(e,n))}const ve={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Li(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Bi(e,t,n,o=.15){return o===0?vd(e,t,n):e<t?-Li(t-e,n-t,o)+t:e>n?+Li(e-n,n-t,o)+n:e}function bd(e,[t,n],[o,r]){const[[s,a],[l,c]]=e;return[Bi(t,s,a,o),Bi(n,l,c,r)]}function yd(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cd(e){var t=yd(e,"string");return typeof t=="symbol"?t:String(t)}function Ee(e,t,n){return t=Cd(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vi(Object(n),!0).forEach(function(o){Ee(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vi(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}const zi={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 Zi(e){return e?e[0].toUpperCase()+e.slice(1):""}const xd=["enter","leave"];function Sd(e=!1,t){return e&&!xd.includes(t)}function wd(e,t="",n=!1){const o=zi[e],r=o&&o[t]||t;return"on"+Zi(e)+Zi(r)+(Sd(n,r)?"Capture":"")}const kd=["gotpointercapture","lostpointercapture"];function Ed(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const o=kd.includes(t)?"capturecapture":"capture",r=!!~t.indexOf(o);return r&&(t=t.replace("capture","")),{device:t,capture:r,passive:n}}function Id(e,t=""){const n=zi[e],o=n&&n[t]||t;return e+o}function oo(e){return"touches"in e}function ji(e){return oo(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function $d(e){return Array.from(e.touches).filter(t=>{var n,o;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(o=n.contains)===null||o===void 0?void 0:o.call(n,t.target))})}function _d(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Ki(e){return oo(e)?_d(e)[0]:e}function $r(e,t){try{const n=t.clientX-e.clientX,o=t.clientY-e.clientY,r=(t.clientX+e.clientX)/2,s=(t.clientY+e.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 Pd(e){return $d(e).map(t=>t.identifier)}function Wi(e,t){const[n,o]=Array.from(e.touches).filter(r=>t.includes(r.identifier));return $r(n,o)}function _r(e){const t=Ki(e);return oo(e)?t.identifier:t.pointerId}function Hi(e){const t=Ki(e);return[t.clientX,t.clientY]}const Ui=40,Yi=800;function Gi(e){let{deltaX:t,deltaY:n,deltaMode:o}=e;return o===1?(t*=Ui,n*=Ui):o===2&&(t*=Yi,n*=Yi),[t,n]}function Md(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:o,metaKey:r,ctrlKey:s}=e;Object.assign(t,{shiftKey:n,altKey:o,metaKey:r,ctrlKey:s})}return t}function ro(e,...t){return typeof e=="function"?e(...t):e}function Fd(){}function Nd(...e){return e.length===0?Fd:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function qi(e,t){return Object.assign({},t,e||{})}const Od=32;class Xi{constructor(t,n,o){this.ctrl=t,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(t){this.ctrl.state[this.key]=t}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:t,shared:n,ingKey:o,args:r}=this;n[o]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=r,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,o=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=o.from?ro(o.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:o,shared:r}=this;n.args=this.args;let s=0;if(t&&(n.event=t,o.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,Md(t)),r.down=r.pressed=r.buttons%2===1||r.touches>0,s=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const I=n._delta.map(Math.abs);ve.addTo(n._distance,I)}this.axisIntent&&this.axisIntent(t);const[a,l]=n._movement,[c,u]=o.threshold,{_step:d,values:m}=n;if(o.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(a)>=c&&m[0]),d[1]===!1&&(d[1]=Math.abs(l)>=u&&m[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[I,M]=m;g[0]=d[0]!==!1?I-d[0]:0,g[1]=d[1]!==!1?M-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 v=n.offset,p=n._active&&!n._blocked||n.active;p&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=r[this.ingKey]=n._active,t&&(n.first&&("bounds"in o&&(n._bounds=ro(o.bounds,n)),this.setup&&this.setup()),n.movement=g,this.computeOffset()));const[y,b]=n.offset,[[C,w],[x,S]]=n._bounds;n.overflow=[y<C?-1:y>w?1:0,b<x?-1:b>S?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 k=n._active?o.rubberband||[0,0]:[0,0];if(n.offset=bd(n._bounds,n.offset,k),n.delta=ve.sub(n.offset,v),this.computeMovement(),p&&(!n.last||s>Od)){n.delta=ve.sub(n.offset,v);const I=n.delta.map(Math.abs);ve.addTo(n.distance,I),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&s>0&&(n.velocity=[I[0]/s,I[1]/s],n.timeDelta=s)}}emit(){const t=this.state,n=this.shared,o=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!o.triggerAllEvents)return;const r=this.handler(pe(pe(pe({},n),t),{},{[this.aliasKey]:t.values}));r!==void 0&&(t.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function Td([e,t],n){const o=Math.abs(e),r=Math.abs(t);if(o>r&&o>n)return"x";if(r>o&&r>n)return"y"}class Qi extends Xi{constructor(...t){super(...t),Ee(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=ve.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=ve.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,o=this.config;if(!n.axis&&t){const r=typeof o.axisThreshold=="object"?o.axisThreshold[ji(t)]:o.axisThreshold;n.axis=Td(n._movement,r)}n._blocked=(o.lockDirection||!!o.axis)&&!n.axis||!!o.axis&&o.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const Dd=e=>e,Ji=.15,Ri={enabled(e=!0){return e},eventOptions(e,t,n){return pe(pe({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[Ji,Ji];case!1:return[0,0];default:return ve.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return ve.toVector(e)},transform(e,t,n){const o=e||n.shared.transform;return this.hasCustomTransform=!!o,o||Dd},threshold(e){return ve.toVector(e,0)}},Ad=0,jt=pe(pe({},Ri),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=Ad){return e},bounds(e={}){if(typeof e=="function")return s=>jt.bounds(e(s));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:o=-1/0,bottom:r=1/0}=e;return[[t,n],[o,r]]}}),ea={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class Ld extends Qi{constructor(...t){super(...t),Ee(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),o=t.currentTarget.getBoundingClientRect(),r={left:n.left-o.left+t.offset[0],right:n.right-o.right+t.offset[0],top:n.top-o.top+t.offset[1],bottom:n.bottom-o.bottom+t.offset[1]};t._bounds=jt.bounds(r)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._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(t){const n=this.config,o=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const r=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(r&&r.size>1&&o._pointerActive)&&(this.start(t),this.setupPointer(t),o._pointerId=_r(t),o._pointerActive=!0,this.computeValues(Hi(t)),this.computeInitial(),n.preventScrollAxis&&ji(t)!=="mouse"?(o._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,o=this.config;if(!n._pointerActive)return;const r=_r(t);if(n._pointerId!==void 0&&r!==n._pointerId)return;const s=Hi(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=ve.sub(s,n._values),this.computeValues(s)),ve.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);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(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch(l){}const n=this.state,o=this.config;if(!n._active||!n._pointerActive)return;const r=_r(t);if(n._pointerId!==void 0&&r!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);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,[m,g]=o.swipe.velocity,[v,p]=o.swipe.distance,y=o.swipe.duration;if(n.elapsedTime<y){const b=Math.abs(l/n.timeDelta),C=Math.abs(c/n.timeDelta);b>m&&Math.abs(u)>v&&(n.swipe[0]=Math.sign(l)),C>g&&Math.abs(d)>p&&(n.swipe[1]=Math.sign(c))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,o=n.device;n.pointerLock&&t.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(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,Bd(t);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,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=ea[t.key];if(n){const o=this.state,r=t.shiftKey?10:t.altKey?.1:1;this.start(t),o._delta=n(this.config.keyboardDisplacement,r),o._keyboardActive=!0,ve.addTo(o._movement,o._delta),this.compute(t),this.emit()}}keyUp(t){t.key in ea&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function Bd(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const yn=typeof window!="undefined"&&window.document&&window.document.createElement;function ta(){return yn&&"ontouchstart"in window}function Vd(){return ta()||yn&&window.navigator.maxTouchPoints>1}function zd(){return yn&&"onpointerdown"in window}function Zd(){return yn&&"exitPointerLock"in window.document}function jd(){try{return"constructor"in GestureEvent}catch(e){return!1}}const ze={isBrowser:yn,gesture:jd(),touch:ta(),touchscreen:Vd(),pointer:zd(),pointerLock:Zd()},Kd=250,Wd=180,Hd=.5,Ud=50,Yd=250,Gd=10,na={mouse:0,touch:0,pen:8},qd=pe(pe({},jt),{},{device(e,t,{pointer:{touch:n=!1,lock:o=!1,mouse:r=!1}={}}){return this.pointerLock=o&&ze.pointerLock,ze.touch&&n?"touch":this.pointerLock?"mouse":ze.pointer&&!r?"pointer":ze.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?Kd:void 0,!(!ze.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:o=1,keys:r=!0}={}}){return this.pointerButtons=o,this.keys=r,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:o=3,axis:r=void 0}){const s=ve.toVector(e,n?o:r?1:0);return this.filterTaps=n,this.tapsThreshold=o,s},swipe({velocity:e=Hd,distance:t=Ud,duration:n=Yd}={}){return{velocity:this.transform(ve.toVector(e)),distance:this.transform(ve.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return Wd;case!1:return 0;default:return e}},axisThreshold(e){return e?pe(pe({},na),e):na},keyboardDisplacement(e=Gd){return e}});function oa(e){const[t,n]=e.overflow,[o,r]=e._delta,[s,a]=e._direction;(t<0&&o>0&&s<0||t>0&&o<0&&s>0)&&(e._movement[0]=e._movementBound[0]),(n<0&&r>0&&a<0||n>0&&r<0&&a>0)&&(e._movement[1]=e._movementBound[1])}const Xd=30,Qd=100;class Jd extends Xi{constructor(...t){super(...t),Ee(this,"ingKey","pinching"),Ee(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();const t=this.state;t._touchIds=[],t.canceled=!1,t.cancel=this.cancel.bind(this),t.turns=0}computeOffset(){const{type:t,movement:n,lastOffset:o}=this.state;t==="wheel"?this.state.offset=ve.add(n,o):this.state.offset=[(1+n[0])*o[0],n[1]+o[1]]}computeMovement(){const{offset:t,lastOffset:n}=this.state;this.state.movement=[t[0]/n[0],t[1]-n[1]]}axisIntent(){const t=this.state,[n,o]=t._movement;if(!t.axis){const r=Math.abs(n)*Xd-Math.abs(o);r<0?t.axis="angle":r>0&&(t.axis="scale")}}restrictToAxis(t){this.config.lockDirection&&(this.state.axis==="scale"?t[1]=0:this.state.axis==="angle"&&(t[0]=0))}cancel(){const t=this.state;t.canceled||setTimeout(()=>{t.canceled=!0,t._active=!1,this.compute(),this.emit()},0)}touchStart(t){this.ctrl.setEventIds(t);const n=this.state,o=this.ctrl.touchIds;if(n._active&&n._touchIds.every(s=>o.has(s))||o.size<2)return;this.start(t),n._touchIds=Array.from(o).slice(0,2);const r=Wi(t,n._touchIds);r&&this.pinchStart(t,r)}pointerStart(t){if(t.buttons!=null&&t.buttons%2!==1)return;this.ctrl.setEventIds(t),t.target.setPointerCapture(t.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(t.pointerId,t),n._pointerEvents.size<2))return;this.start(t);const s=$r(...Array.from(o.values()));s&&this.pinchStart(t,s)}pinchStart(t,n){const o=this.state;o.origin=n.origin,this.computeValues([n.distance,n.angle]),this.computeInitial(),this.compute(t),this.emit()}touchMove(t){if(!this.state._active)return;const n=Wi(t,this.state._touchIds);n&&this.pinchMove(t,n)}pointerMove(t){const n=this.state._pointerEvents;if(n.has(t.pointerId)&&n.set(t.pointerId,t),!this.state._active)return;const o=$r(...Array.from(n.values()));o&&this.pinchMove(t,o)}pinchMove(t,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(t),this.emit()}touchEnd(t){this.ctrl.setEventIds(t),this.state._active&&this.state._touchIds.some(n=>!this.ctrl.touchIds.has(n))&&(this.state._active=!1,this.compute(t),this.emit())}pointerEnd(t){const n=this.state;this.ctrl.setEventIds(t);try{t.target.releasePointerCapture(t.pointerId)}catch(o){}n._pointerEvents.has(t.pointerId)&&n._pointerEvents.delete(t.pointerId),n._active&&n._pointerEvents.size<2&&(n._active=!1,this.compute(t),this.emit())}gestureStart(t){t.cancelable&&t.preventDefault();const n=this.state;n._active||(this.start(t),this.computeValues([t.scale,t.rotation]),n.origin=[t.clientX,t.clientY],this.compute(t),this.emit())}gestureMove(t){if(t.cancelable&&t.preventDefault(),!this.state._active)return;const n=this.state;this.computeValues([t.scale,t.rotation]),n.origin=[t.clientX,t.clientY];const o=n._movement;n._movement=[t.scale-1,t.rotation],n._delta=ve.sub(n._movement,o),this.compute(t),this.emit()}gestureEnd(t){this.state._active&&(this.state._active=!1,this.compute(t),this.emit())}wheel(t){const n=this.config.modifierKey;n&&(Array.isArray(n)?!n.find(o=>t[o]):!t[n])||(this.state._active?this.wheelChange(t):this.wheelStart(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(t){this.start(t),this.wheelChange(t)}wheelChange(t){"uv"in t||t.cancelable&&t.preventDefault();const o=this.state;o._delta=[-Gi(t)[1]/Qd*o.offset[0],0],ve.addTo(o._movement,o._delta),oa(o),this.state.origin=[t.clientX,t.clientY],this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){const n=this.config.device;n&&(t(n,"start",this[n+"Start"].bind(this)),t(n,"change",this[n+"Move"].bind(this)),t(n,"end",this[n+"End"].bind(this)),t(n,"cancel",this[n+"End"].bind(this)),t("lostPointerCapture","",this[n+"End"].bind(this))),this.config.pinchOnWheel&&t("wheel","",this.wheel.bind(this),{passive:!1})}}const Rd=pe(pe({},Ri),{},{device(e,t,{shared:n,pointer:{touch:o=!1}={}}){if(n.target&&!ze.touch&&ze.gesture)return"gesture";if(ze.touch&&o)return"touch";if(ze.touchscreen){if(ze.pointer)return"pointer";if(ze.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:o={}}){const r=a=>{const l=qi(ro(n,a),{min:-1/0,max:1/0});return[l.min,l.max]},s=a=>{const l=qi(ro(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(e,t,n){return this.lockDirection=n.axis==="lock",ve.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});pe(pe({},jt),{},{mouseOnly:(e=!0)=>e});class e1 extends Qi{constructor(...t){super(...t),Ee(this,"ingKey","wheeling")}wheel(t){this.state._active||this.start(t),this.wheelChange(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(t){const n=this.state;n._delta=Gi(t),ve.addTo(n._movement,n._delta),oa(n),this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){t("wheel","",this.wheel.bind(this))}}const t1=jt;pe(pe({},jt),{},{mouseOnly:(e=!0)=>e});const Pr=new Map,Mr=new Map;function Fr(e){Pr.set(e.key,e.engine),Mr.set(e.key,e.resolver)}const ra={key:"drag",engine:Ld,resolver:qd},n1={key:"pinch",engine:Jd,resolver:Rd},o1={key:"wheel",engine:e1,resolver:t1};function r1(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,s;for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}function s1(e,t){if(e==null)return{};var n=r1(e,t),o,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}const i1={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=ze.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},a1=["target","eventOptions","window","enabled","transform"];function so(e={},t){const n={};for(const[o,r]of Object.entries(t))switch(typeof r){case"function":n[o]=r.call(n,e[o],o,e);break;case"object":n[o]=so(e[o],r);break;case"boolean":r&&(n[o]=e[o]);break}return n}function l1(e,t,n={}){const o=e,{target:r,eventOptions:s,window:a,enabled:l,transform:c}=o,u=s1(o,a1);if(n.shared=so({target:r,eventOptions:s,window:a,enabled:l,transform:c},i1),t){const d=Mr.get(t);n[t]=so(pe({shared:n.shared},u),d)}else for(const d in u){const m=Mr.get(d);m&&(n[d]=so(pe({shared:n.shared},u[d]),m))}return n}class sa{constructor(t,n){Ee(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,o,r,s){const a=this._listeners,l=Id(n,o),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=pe(pe({},c),s);t.addEventListener(l,r,u);const d=()=>{t.removeEventListener(l,r,u),a.delete(d)};return a.add(d),d}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class c1{constructor(){Ee(this,"_timeouts",new Map)}add(t,n,o=140,...r){this.remove(t),this._timeouts.set(t,window.setTimeout(n,o,...r))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class u1{constructor(t){Ee(this,"gestures",new Set),Ee(this,"_targetEventStore",new sa(this)),Ee(this,"gestureEventStores",{}),Ee(this,"gestureTimeoutStores",{}),Ee(this,"handlers",{}),Ee(this,"config",{}),Ee(this,"pointerIds",new Set),Ee(this,"touchIds",new Set),Ee(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),d1(this,t)}setEventIds(t){if(oo(t))return this.touchIds=new Set(Pd(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=l1(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){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=ia(o,l.eventOptions,!!r);if(l.enabled){const u=Pr.get(a);new u(this,t,a).bind(c)}}const s=ia(o,n.eventOptions,!!r);for(const a in this.nativeHandlers)s(a,"",l=>this.nativeHandlers[a](pe(pe({},this.state.shared),{},{event:l,args:t})),void 0,!0)}for(const s in o)o[s]=Nd(...o[s]);if(!r)return o;for(const s in o){const{device:a,capture:l,passive:c}=Ed(s);this._targetEventStore.add(r,a,"",o[s],{capture:l,passive:c})}}}}function Kt(e,t){e.gestures.add(t),e.gestureEventStores[t]=new sa(e,t),e.gestureTimeoutStores[t]=new c1}function d1(e,t){t.drag&&Kt(e,"drag"),t.wheel&&Kt(e,"wheel"),t.scroll&&Kt(e,"scroll"),t.move&&Kt(e,"move"),t.pinch&&Kt(e,"pinch"),t.hover&&Kt(e,"hover")}const ia=(e,t,n)=>(o,r,s,a={},l=!1)=>{var c,u;const d=(c=a.capture)!==null&&c!==void 0?c:t.capture,m=(u=a.passive)!==null&&u!==void 0?u:t.passive;let g=l?o:wd(o,r,d);n&&m&&(g+="Passive"),e[g]=e[g]||[],e[g].push(s)},f1=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function m1(e){const t={},n={},o=new Set;for(let r in e)f1.test(r)?(o.add(RegExp.lastMatch),n[r]=e[r]):t[r]=e[r];return[n,t,o]}function Wt(e,t,n,o,r,s){if(!e.has(n)||!Pr.has(o))return;const a=n+"Start",l=n+"End",c=u=>{let d;return u.first&&a in t&&t[a](u),n in t&&(d=t[n](u)),u.last&&l in t&&t[l](u),d};r[o]=c,s[o]=s[o]||{}}function h1(e,t){const[n,o,r]=m1(e),s={};return Wt(r,n,"onDrag","drag",s,t),Wt(r,n,"onWheel","wheel",s,t),Wt(r,n,"onScroll","scroll",s,t),Wt(r,n,"onPinch","pinch",s,t),Wt(r,n,"onMove","move",s,t),Wt(r,n,"onHover","hover",s,t),{handlers:s,config:t,nativeHandlers:o}}function Nr(e,t={},n,o){const r=i.useMemo(()=>new u1(e),[]);if(r.applyHandlers(e,o),r.applyConfig(t,n),i.useEffect(r.effect.bind(r)),i.useEffect(()=>r.clean.bind(r),[]),t.target===void 0)return r.bind.bind(r)}function io(e,t){return Fr(ra),Nr({drag:e},t||{},"drag")}function p1(e,t){return Fr(o1),Nr({wheel:e},t||{},"wheel")}function g1(e){return e.forEach(Fr),function(n,o){const{handlers:r,nativeHandlers:s,config:a}=h1(n,o||{});return Nr(r,a,void 0,s)}}const ao="adm-popup",v1=Object.assign(Object.assign({},pd),{closeOnSwipe:!1,position:"bottom"}),Ht=e=>{const{locale:t,popup:n={}}=Pe(),o=oe(v1,n,e),r=K(`${ao}-body`,o.bodyClassName,`${ao}-body-position-${o.position}`),[s,a]=i.useState(o.visible),l=i.useRef(null);Ns(l,o.disableBodyScroll&&s?"strict":!1),te.useIsomorphicLayoutEffect(()=>{o.visible&&a(!0)},[o.visible]);const c=te.useUnmountedRef(),{percent:u}=Ve({percent:o.visible?0:100,config:{precision:.1,mass:.4,tension:300,friction:30},onRest:()=>{var v,p;c.current||(a(o.visible),o.visible?(v=o.afterShow)===null||v===void 0||v.call(o):(p=o.afterClose)===null||p===void 0||p.call(o))}}),d=io(({swipe:[,v]})=>{var p;o.closeOnSwipe&&(v===1&&o.position==="bottom"||v===-1&&o.position==="top")&&((p=o.onClose)===null||p===void 0||p.call(o))},{axis:"y",enabled:["top","bottom"].includes(o.position)}),m=gd(s&&o.visible),g=Di(o.stopPropagation,Y(o,i.createElement("div",Object.assign({className:ao,onClick:o.onClick,style:{display:s?void 0:"none",touchAction:["top","bottom"].includes(o.position)?"none":"auto"}},d()),o.mask&&i.createElement(to,{visible:m,forceRender:o.forceRender,destroyOnClose:o.destroyOnClose,onMaskClick:v=>{var p,y;(p=o.onMaskClick)===null||p===void 0||p.call(o,v),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(ke.div,{className:r,style:Object.assign(Object.assign({},o.bodyStyle),{pointerEvents:u.to(v=>v===0?"unset":"none"),transform:u.to(v=>o.position==="bottom"?`translate(0, ${v}%)`:o.position==="top"?`translate(0, -${v}%)`:o.position==="left"?`translate(-${v}%, 0)`:o.position==="right"?`translate(${v}%, 0)`:"none")}),ref:l},o.showCloseButton&&i.createElement("a",{className:K(`${ao}-close-icon`,"adm-plain-anchor"),onClick:()=>{var v;(v=o.onClose)===null||v===void 0||v.call(o)},role:"button","aria-label":t.common.close},o.closeIcon),o.children))));return i.createElement(eo,{active:s,forceRender:o.forceRender,destroyOnClose:o.destroyOnClose},Rn(o.getContainer,g))},aa="adm-safe-area",Cn=e=>Y(e,i.createElement("div",{className:K(aa,`${aa}-position-${e.position}`)})),lo=Object.assign({},tc),{version:b1,render:y1,unmountComponentAtNode:C1}=lo;let co;try{Number((b1||"").split(".")[0])>=18&&lo.createRoot&&(co=lo.createRoot)}catch(e){}function la(e){const{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:t}=lo;t&&typeof t=="object"&&(t.usingClientEntryPoint=e)}const uo="__antd_mobile_root__";function x1(e,t){y1(e,t)}function S1(e,t){la(!0);const n=t[uo]||co(t);la(!1),n.render(e),t[uo]=n}function w1(e,t){if(co){S1(e,t);return}x1(e,t)}function k1(e){return C1(e)}function E1(e){return yt(this,void 0,void 0,function*(){return Promise.resolve().then(()=>{var t;(t=e[uo])===null||t===void 0||t.unmount(),delete e[uo]})})}function I1(e){return co?E1(e):k1(e)}function Or(e){const t=document.createElement("div");document.body.appendChild(t);function n(){I1(t)&&t.parentNode&&t.parentNode.removeChild(t)}return w1(e,t),n}function xn(e){const t=i.forwardRef((r,s)=>{const[a,l]=i.useState(!1),c=i.useRef(!1),[u,d]=i.useState(e),m=i.useRef(0);i.useEffect(()=>{c.current?v():l(!0)},[]);function g(){var p,y;c.current=!0,l(!1),(y=(p=u.props).onClose)===null||y===void 0||y.call(p)}function v(){var p,y;o(),(y=(p=u.props).afterClose)===null||y===void 0||y.call(p)}return i.useImperativeHandle(s,()=>({close:g,replace:p=>{var y,b;m.current++,(b=(y=u.props).afterClose)===null||b===void 0||b.call(y),d(p)}})),i.cloneElement(u,Object.assign(Object.assign({},u.props),{key:m.current,visible:a,onClose:g,afterClose:v}))}),n=i.createRef(),o=Or(i.createElement(t,{ref:n}));return{close:()=>yt(this,void 0,void 0,function*(){var r,s,a;n.current?(a=n.current)===null||a===void 0||a.close():(o(),(s=(r=e.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 _e="adm-action-sheet",$1={visible:!1,actions:[],cancelText:"",closeOnAction:!1,closeOnMaskClick:!0,safeArea:!0,destroyOnClose:!1,forceRender:!1},ca=e=>{const t=oe($1,e),{styles:n}=t;return i.createElement(Ht,{visible:t.visible,onMaskClick:()=>{var o,r;(o=t.onMaskClick)===null||o===void 0||o.call(t),t.closeOnMaskClick&&((r=t.onClose)===null||r===void 0||r.call(t))},afterClose:t.afterClose,className:K(`${_e}-popup`,t.popupClassName),style:t.popupStyle,getContainer:t.getContainer,destroyOnClose:t.destroyOnClose,forceRender:t.forceRender,bodyStyle:n==null?void 0:n.body,maskStyle:n==null?void 0:n.mask},Y(t,i.createElement("div",{className:_e},t.extra&&i.createElement("div",{className:`${_e}-extra`},t.extra),i.createElement("div",{className:`${_e}-button-list`},t.actions.map((o,r)=>i.createElement("div",{key:o.key,className:`${_e}-button-item-wrapper`},i.createElement("a",{className:K("adm-plain-anchor",`${_e}-button-item`,{[`${_e}-button-item-danger`]:o.danger,[`${_e}-button-item-disabled`]:o.disabled,[`${_e}-button-item-bold`]:o.bold}),onClick:()=>{var s,a,l;(s=o.onClick)===null||s===void 0||s.call(o),(a=t.onAction)===null||a===void 0||a.call(t,o,r),t.closeOnAction&&((l=t.onClose)===null||l===void 0||l.call(t))},role:"option","aria-disabled":o.disabled},i.createElement("div",{className:`${_e}-button-item-name`},o.text),o.description&&i.createElement("div",{className:`${_e}-button-item-description`},o.description))))),t.cancelText&&i.createElement("div",{className:`${_e}-cancel`,role:"option","aria-label":t.cancelText},i.createElement("div",{className:`${_e}-button-item-wrapper`},i.createElement("a",{className:K("adm-plain-anchor",`${_e}-button-item`),onClick:t.onClose},i.createElement("div",{className:`${_e}-button-item-name`},t.cancelText)))),t.safeArea&&i.createElement(Cn,{position:"bottom"}))))};function _1(e){return xn(i.createElement(ca,Object.assign({},e)))}const P1=we(ca,{show:_1}),ua="adm-auto-center",M1=e=>Y(e,i.createElement("div",{className:ua},i.createElement("div",{className:`${ua}-content`},e.children)));var Tr={},F1=Ct&&Ct.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tr,"__esModule",{value:!0});var Dr=Tr.staged=void 0;const N1=F1(i);function da(e){return typeof e=="function"?N1.default.createElement(O1,{stage:e}):e}function O1(e){const t=e.stage();return da(t)}function T1(e){return function(n,o){const r=e(n,o);return da(r)}}Dr=Tr.staged=T1;function Et(e){return typeof e=="number"?`${e}px`:e}const D1=e=>{const t=i.useRef(null),[n]=te.useInViewport(t);return i.useEffect(()=>{n&&e.onActive()},[n]),i.createElement("div",{ref:t})},Ar=te.createUpdateEffect(te.useIsomorphicLayoutEffect),A1=()=>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"})),L1=()=>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"})),fo="adm-image",B1={fit:"fill",placeholder:i.createElement("div",{className:`${fo}-tip`},i.createElement(A1,null)),fallback:i.createElement("div",{className:`${fo}-tip`},i.createElement(L1,null)),lazy:!1,draggable:!1},fa=Dr(e=>{const t=oe(B1,e),[n,o]=i.useState(!1),[r,s]=i.useState(!1),a=i.useRef(null),l=i.useRef(null);let c=t.src,u=t.srcSet;const[d,m]=i.useState(!t.lazy);c=d?t.src:void 0,u=d?t.srcSet:void 0,Ar(()=>{o(!1),s(!1)},[c]),i.useEffect(()=>{var p;!((p=l.current)===null||p===void 0)&&p.complete&&o(!0)},[]);function g(){if(r)return i.createElement(i.Fragment,null,t.fallback);const p=i.createElement("img",{ref:l,id:t.id,className:`${fo}-img`,src:c,alt:t.alt,onClick:t.onClick,onLoad:y=>{var b;o(!0),(b=t.onLoad)===null||b===void 0||b.call(t,y)},onError:y=>{var b;s(!0),(b=t.onError)===null||b===void 0||b.call(t,y)},style:{objectFit:t.fit,display:n?"block":"none"},crossOrigin:t.crossOrigin,decoding:t.decoding,loading:t.loading,referrerPolicy:t.referrerPolicy,sizes:t.sizes,srcSet:u,useMap:t.useMap,draggable:t.draggable});return i.createElement(i.Fragment,null,!n&&t.placeholder,p)}const v={};return t.width&&(v["--width"]=Et(t.width),v.width=Et(t.width)),t.height&&(v["--height"]=Et(t.height),v.height=Et(t.height)),Y(t,i.createElement("div",{ref:a,className:fo,style:v,onClick:t.onContainerClick},t.lazy&&!d&&i.createElement(D1,{onActive:()=>{m(!0)}}),g()))}),Ut="adm-badge",ma=i.createElement(i.Fragment,null),ha=we(e=>{const{content:t,color:n,children:o}=e,r=t===ma,s=K(Ut,{[`${Ut}-fixed`]:!!o,[`${Ut}-dot`]:r,[`${Ut}-bordered`]:e.bordered}),a=t||t===0?Y(e,i.createElement("div",{className:s,style:{"--color":n}},!r&&i.createElement("div",{className:`${Ut}-content`},t))):null;return o?i.createElement("div",{className:K(`${Ut}-wrapper`,e.wrapperClassName),style:e.wrapperStyle},o,a):a},{dot:ma}),V1="adm-dot-loading",z1={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},Z1={color:"default"},j1=i.memo(e=>{var t;const n=oe(Z1,e);return Y(n,i.createElement("div",{style:{color:(t=z1[n.color])!==null&&t!==void 0?t:n.color},className:K("adm-loading",V1)},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 K1(e){return!!e&&typeof e=="object"&&typeof e.then=="function"}function W1(){return Tt?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1}const Ze="adm-button",H1={color:"default",fill:"solid",block:!1,loading:!1,loadingIcon:i.createElement(j1,{color:"currentColor"}),type:"button",shape:"default",size:"middle"},st=i.forwardRef((e,t)=>{const n=oe(H1,e),[o,r]=i.useState(!1),s=i.useRef(null),a=n.loading==="auto"?o:n.loading,l=n.disabled||a;i.useImperativeHandle(t,()=>({get nativeElement(){return s.current}}));const c=u=>yt(void 0,void 0,void 0,function*(){if(!n.onClick)return;const d=n.onClick(u);if(K1(d))try{r(!0),yield d,r(!1)}catch(m){throw r(!1),m}});return Y(n,i.createElement("button",{ref:s,type:n.type,onClick:c,className:K(Ze,{[`${Ze}-${n.color}`]:n.color,[`${Ze}-block`]:n.block,[`${Ze}-disabled`]:l,[`${Ze}-fill-outline`]:n.fill==="outline",[`${Ze}-fill-none`]:n.fill==="none",[`${Ze}-mini`]:n.size==="mini",[`${Ze}-small`]:n.size==="small",[`${Ze}-large`]:n.size==="large",[`${Ze}-loading`]:a},`${Ze}-shape-${n.shape}`),disabled:l,onMouseDown:n.onMouseDown,onMouseUp:n.onMouseUp,onTouchStart:n.onTouchStart,onTouchEnd:n.onTouchEnd},a?i.createElement("div",{className:`${Ze}-loading-wrapper`},n.loadingIcon,n.loadingText):i.createElement("span",null,n.children)))});var pa={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Ct,function(){var n=1e3,o=6e4,r=36e5,s="millisecond",a="second",l="minute",c="hour",u="day",d="week",m="month",g="quarter",v="year",p="date",y="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var P=["th","st","nd","rd"],E=_%100;return"["+_+(P[(E-20)%10]||P[E]||P[0])+"]"}},x=function(_,P,E){var D=String(_);return!D||D.length>=P?_:""+Array(P+1-D.length).join(E)+_},S={s:x,z:function(_){var P=-_.utcOffset(),E=Math.abs(P),D=Math.floor(E/60),T=E%60;return(P<=0?"+":"-")+x(D,2,"0")+":"+x(T,2,"0")},m:function _(P,E){if(P.date()<E.date())return-_(E,P);var D=12*(E.year()-P.year())+(E.month()-P.month()),T=P.clone().add(D,m),z=E-T<0,j=P.clone().add(D+(z?-1:1),m);return+(-(D+(E-T)/(z?T-j:j-T))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:m,y:v,w:d,d:u,D:p,h:c,m:l,s:a,ms:s,Q:g}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},k="en",I={};I[k]=w;var M="$isDayjsObject",O=function(_){return _ instanceof W||!(!_||!_[M])},L=function _(P,E,D){var T;if(!P)return k;if(typeof P=="string"){var z=P.toLowerCase();I[z]&&(T=z),E&&(I[z]=E,T=z);var j=P.split("-");if(!T&&j.length>1)return _(j[0])}else{var H=P.name;I[H]=P,T=H}return!D&&T&&(k=T),T||!D&&k},F=function(_,P){if(O(_))return _.clone();var E=typeof P=="object"?P:{};return E.date=_,E.args=arguments,new W(E)},N=S;N.l=L,N.i=O,N.w=function(_,P){return F(_,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var W=function(){function _(E){this.$L=L(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[M]=!0}var P=_.prototype;return P.parse=function(E){this.$d=function(D){var T=D.date,z=D.utc;if(T===null)return new Date(NaN);if(N.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var j=T.match(b);if(j){var H=j[2]-1||0,U=(j[7]||"0").substring(0,3);return z?new Date(Date.UTC(j[1],H,j[3]||1,j[4]||0,j[5]||0,j[6]||0,U)):new Date(j[1],H,j[3]||1,j[4]||0,j[5]||0,j[6]||0,U)}}return new Date(T)}(E),this.init()},P.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},P.$utils=function(){return N},P.isValid=function(){return this.$d.toString()!==y},P.isSame=function(E,D){var T=F(E);return this.startOf(D)<=T&&T<=this.endOf(D)},P.isAfter=function(E,D){return F(E)<this.startOf(D)},P.isBefore=function(E,D){return this.endOf(D)<F(E)},P.$g=function(E,D,T){return N.u(E)?this[D]:this.set(T,E)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(E,D){var T=this,z=!!N.u(D)||D,j=N.p(E),H=function(Z,G){var re=N.w(T.$u?Date.UTC(T.$y,G,Z):new Date(T.$y,G,Z),T);return z?re:re.endOf(u)},U=function(Z,G){return N.w(T.toDate()[Z].apply(T.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(G)),T)},J=this.$W,ne=this.$M,ee=this.$D,Ne="set"+(this.$u?"UTC":"");switch(j){case v:return z?H(1,0):H(31,11);case m:return z?H(1,ne):H(0,ne+1);case d:var q=this.$locale().weekStart||0,ue=(J<q?J+7:J)-q;return H(z?ee-ue:ee+(6-ue),ne);case u:case p:return U(Ne+"Hours",0);case c:return U(Ne+"Minutes",1);case l:return U(Ne+"Seconds",2);case a:return U(Ne+"Milliseconds",3);default:return this.clone()}},P.endOf=function(E){return this.startOf(E,!1)},P.$set=function(E,D){var T,z=N.p(E),j="set"+(this.$u?"UTC":""),H=(T={},T[u]=j+"Date",T[p]=j+"Date",T[m]=j+"Month",T[v]=j+"FullYear",T[c]=j+"Hours",T[l]=j+"Minutes",T[a]=j+"Seconds",T[s]=j+"Milliseconds",T)[z],U=z===u?this.$D+(D-this.$W):D;if(z===m||z===v){var J=this.clone().set(p,1);J.$d[H](U),J.init(),this.$d=J.set(p,Math.min(this.$D,J.daysInMonth())).$d}else H&&this.$d[H](U);return this.init(),this},P.set=function(E,D){return this.clone().$set(E,D)},P.get=function(E){return this[N.p(E)]()},P.add=function(E,D){var T,z=this;E=Number(E);var j=N.p(D),H=function(ne){var ee=F(z);return N.w(ee.date(ee.date()+Math.round(ne*E)),z)};if(j===m)return this.set(m,this.$M+E);if(j===v)return this.set(v,this.$y+E);if(j===u)return H(1);if(j===d)return H(7);var U=(T={},T[l]=o,T[c]=r,T[a]=n,T)[j]||1,J=this.$d.getTime()+E*U;return N.w(J,this)},P.subtract=function(E,D){return this.add(-1*E,D)},P.format=function(E){var D=this,T=this.$locale();if(!this.isValid())return T.invalidDate||y;var z=E||"YYYY-MM-DDTHH:mm:ssZ",j=N.z(this),H=this.$H,U=this.$m,J=this.$M,ne=T.weekdays,ee=T.months,Ne=T.meridiem,q=function(G,re,ge,Ce){return G&&(G[re]||G(D,z))||ge[re].slice(0,Ce)},ue=function(G){return N.s(H%12||12,G,"0")},Z=Ne||function(G,re,ge){var Ce=G<12?"AM":"PM";return ge?Ce.toLowerCase():Ce};return z.replace(C,function(G,re){return re||function(ge){switch(ge){case"YY":return String(D.$y).slice(-2);case"YYYY":return N.s(D.$y,4,"0");case"M":return J+1;case"MM":return N.s(J+1,2,"0");case"MMM":return q(T.monthsShort,J,ee,3);case"MMMM":return q(ee,J);case"D":return D.$D;case"DD":return N.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return q(T.weekdaysMin,D.$W,ne,2);case"ddd":return q(T.weekdaysShort,D.$W,ne,3);case"dddd":return ne[D.$W];case"H":return String(H);case"HH":return N.s(H,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return Z(H,U,!0);case"A":return Z(H,U,!1);case"m":return String(U);case"mm":return N.s(U,2,"0");case"s":return String(D.$s);case"ss":return N.s(D.$s,2,"0");case"SSS":return N.s(D.$ms,3,"0");case"Z":return j}return null}(G)||j.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(E,D,T){var z,j=this,H=N.p(D),U=F(E),J=(U.utcOffset()-this.utcOffset())*o,ne=this-U,ee=function(){return N.m(j,U)};switch(H){case v:z=ee()/12;break;case m:z=ee();break;case g:z=ee()/3;break;case d:z=(ne-J)/6048e5;break;case u:z=(ne-J)/864e5;break;case c:z=ne/r;break;case l:z=ne/o;break;case a:z=ne/n;break;default:z=ne}return T?z:N.a(z)},P.daysInMonth=function(){return this.endOf(m).$D},P.$locale=function(){return I[this.$L]},P.locale=function(E,D){if(!E)return this.$L;var T=this.clone(),z=L(E,D,!0);return z&&(T.$L=z),T},P.clone=function(){return N.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},_}(),V=W.prototype;return F.prototype=V,[["$ms",s],["$s",a],["$m",l],["$H",c],["$W",u],["$M",m],["$y",v],["$D",p]].forEach(function(_){V[_[1]]=function(P){return this.$g(P,_[0],_[1])}}),F.extend=function(_,P){return _.$i||(_(P,W,F),_.$i=!0),F},F.locale=L,F.isDayjs=O,F.unix=function(_){return F(1e3*_)},F.en=I[k],F.Ls=I,F.p={},F})})(pa);var U1=pa.exports;const he=xt(U1),ga=()=>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"})))))),va=()=>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 ba={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Ct,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,m,g,v,p=a(this),y=(d=this.isoWeekYear(),m=this.$u,g=(m?s.utc:s)().year(d).startOf("year"),v=4-g.isoWeekday(),g.isoWeekday()>4&&(v+=7),g.add(v,n));return p.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 m=this.$utils(),g=!!m.u(d)||d;return m.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)}}})})(ba);var Y1=ba.exports;const Lr=xt(Y1);function Ie(e){const{value:t,defaultValue:n,onChange:o}=e,r=te.useUpdate(),s=i.useRef(t!==void 0?t:n);t!==void 0&&(s.current=t);const a=te.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 G1(e,t){return e.replace(/\$\{\w+\}/g,n=>{const o=n.slice(2,-1);return t[o]})}function ya(e,t){return e===void 0||t===null?null:Array.isArray(t)?t:[t,t]}function Br(e){return he().year(e.year).month(e.month-1).date(1)}he.extend(Lr);const fe="adm-calendar",q1={weekStartsOn:"Sunday",defaultValue:null,allowClear:!0,prevMonthButton:i.createElement(ga,null),prevYearButton:i.createElement(va,null),nextMonthButton:i.createElement(ga,null),nextYearButton:i.createElement(va,null)},X1=i.forwardRef((e,t)=>{const n=he(),o=oe(q1,e),{locale:r}=Pe(),s=[...r.Calendar.markItems];if(o.weekStartsOn==="Sunday"){const x=s.pop();x&&s.unshift(x)}const[a,l]=Ie({value:o.value===void 0?void 0:ya(o.selectionMode,o.value),defaultValue:ya(o.selectionMode,o.defaultValue),onChange:x=>{var S,k;o.selectionMode==="single"?(S=o.onChange)===null||S===void 0||S.call(o,x?x[0]:null):o.selectionMode==="range"&&((k=o.onChange)===null||k===void 0||k.call(o,x))}}),[c,u]=i.useState(!1),[d,m]=i.useState(()=>he(a?a[0]:n).date(1));te.useUpdateEffect(()=>{var x;(x=o.onPageChange)===null||x===void 0||x.call(o,d.year(),d.month()+1)},[d]),i.useImperativeHandle(t,()=>({jumpTo:x=>{let S;typeof x=="function"?S=x({year:d.year(),month:d.month()+1}):S=x,m(Br(S))},jumpToToday:()=>{m(he().date(1))}}));const g=(x,S,k)=>{const I=d[x](S,k);if(x==="subtract"&&o.minPage){const M=Br(o.minPage);if(I.isBefore(M,k))return}if(x==="add"&&o.maxPage){const M=Br(o.maxPage);if(I.isAfter(M,k))return}m(I)},v=i.createElement("div",{className:`${fe}-header`},i.createElement("a",{className:`${fe}-arrow-button ${fe}-arrow-button-year`,onClick:()=>{g("subtract",1,"year")}},o.prevYearButton),i.createElement("a",{className:`${fe}-arrow-button ${fe}-arrow-button-month`,onClick:()=>{g("subtract",1,"month")}},o.prevMonthButton),i.createElement("div",{className:`${fe}-title`},G1(r.Calendar.yearAndMonth,{year:d.year().toString(),month:(d.month()+1).toString()})),i.createElement("a",{className:K(`${fe}-arrow-button`,`${fe}-arrow-button-right`,`${fe}-arrow-button-right-month`),onClick:()=>{g("add",1,"month")}},o.nextMonthButton),i.createElement("a",{className:K(`${fe}-arrow-button`,`${fe}-arrow-button-right`,`${fe}-arrow-button-right-year`),onClick:()=>{g("add",1,"year")}},o.nextYearButton)),p=i.useMemo(()=>o.max&&he(o.max),[o.max]),y=i.useMemo(()=>o.min&&he(o.min),[o.min]);function b(){var x;const S=[];let k=d.subtract(d.isoWeekday(),"day");for(o.weekStartsOn==="Monday"&&(k=k.add(1,"day"));S.length<6*7;){const I=k;let M=!1,O=!1,L=!1,F=!1,N=!1;if(a){const[_,P]=a;O=I.isSame(_,"day"),L=I.isSame(P,"day"),M=O||L||I.isAfter(_,"day")&&I.isBefore(P,"day"),M&&(F=(S.length%7===0||I.isSame(I.startOf("month"),"day"))&&!O,N=(S.length%7===6||I.isSame(I.endOf("month"),"day"))&&!L)}const W=I.month()===d.month(),V=o.shouldDisableDate?o.shouldDisableDate(I.toDate()):p&&I.isAfter(p,"day")||y&&I.isBefore(y,"day");S.push(i.createElement("div",{key:I.valueOf(),className:K(`${fe}-cell`,(V||!W)&&`${fe}-cell-disabled`,W&&{[`${fe}-cell-today`]:I.isSame(n,"day"),[`${fe}-cell-selected`]:M,[`${fe}-cell-selected-begin`]:O,[`${fe}-cell-selected-end`]:L,[`${fe}-cell-selected-row-begin`]:F,[`${fe}-cell-selected-row-end`]:N}),onClick:()=>{if(!o.selectionMode||V)return;const _=I.toDate();W||m(I.clone().date(1));function P(){if(!o.allowClear||!a)return!1;const[E,D]=a;return I.isSame(E,"date")&&I.isSame(D,"day")}if(o.selectionMode==="single"){if(o.allowClear&&P()){l(null);return}l([_,_])}else if(o.selectionMode==="range"){if(!a){l([_,_]),u(!0);return}if(P()){l(null),u(!1);return}if(c){const E=a[0];l(E>_?[_,E]:[E,_]),u(!1)}else l([_,_]),u(!0)}}},i.createElement("div",{className:`${fe}-cell-top`},o.renderDate?o.renderDate(I.toDate()):I.date()),i.createElement("div",{className:`${fe}-cell-bottom`},(x=o.renderLabel)===null||x===void 0?void 0:x.call(o,I.toDate())))),k=k.add(1,"day")}return S}const C=i.createElement("div",{className:`${fe}-cells`},b()),w=i.createElement("div",{className:`${fe}-mark`},s.map((x,S)=>i.createElement("div",{key:S,className:`${fe}-mark-cell`},x)));return Y(o,i.createElement("div",{className:fe},v,w,C))});var Ca={exports:{}},ce={};/**
|
|
125
|
+
*/(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})()})(ks);var Cc=ks.exports;const K=Ct(Cc);function Y(t,e){const n=Object.assign({},e.props);t.className&&(n.className=K(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 oe(...t){const e={};return t.forEach(n=>{n&&Object.keys(n).forEach(o=>{n[o]!==void 0&&(e[o]=n[o])})}),e}function Ko(t,...e){for(let n=e.length-1;n>=0;n-=1)if(e[n]!==void 0)return e[n];return t}const Es=10;function Sc(t,e){return t>e&&t>Es?"horizontal":e>t&&e>Es?"vertical":""}function wc(){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:b=>{const v=b.touches[0];n.current=v.clientX<0?0:v.clientX-t.current,o.current=v.clientY-e.current,r.current=Math.abs(n.current),s.current=Math.abs(o.current),a.current||(a.current=Sc(r.current,s.current))},start:b=>{u(),t.current=b.touches[0].clientX,e.current=b.touches[0].clientY},reset:u,startX:t,startY:e,deltaX:n,deltaY:o,offsetX:r,offsetY:s,direction:a,isVertical:l,isHorizontal:c}}const kc=Ot?window:void 0,Ec=["scroll","auto","overlay"];function Ic(t){return t.nodeType===1}function $c(t,e=kc){let n=t;for(;n&&n!==e&&Ic(n);){if(n===document.body)return e;const{overflowY:o}=window.getComputedStyle(n);if(Ec.includes(o)&&n.scrollHeight>n.clientHeight)return n;n=n.parentNode}return e}let Tn=!1;if(Ot)try{const t={};Object.defineProperty(t,"passive",{get(){Tn=!0}}),window.addEventListener("test-passive",null,t)}catch(t){}let en=0;const Is="adm-overflow-hidden";function _c(t){let e=t==null?void 0:t.parentElement;for(;e;){if(e.clientHeight<e.scrollHeight)return e;e=e.parentElement}return null}function $s(t,e){const n=wc(),o=a=>{n.move(a);const l=n.deltaY.current>0?"10":"01",c=$c(a.target,t.current);if(!c)return;if(e==="strict"){const p=_c(a.target);if(p===document.body||p===document.documentElement){a.preventDefault();return}}const{scrollHeight:u,offsetHeight:d,scrollTop:m}=c,{height:b}=c.getBoundingClientRect();let v="11";m===0?v=d>=u?"00":"01":u<=Math.round(b+m)&&(v="10"),v!=="11"&&n.isVertical()&&!(parseInt(v,2)&parseInt(l,2))&&a.cancelable&&Tn&&a.preventDefault()},r=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",o,Tn?{passive:!1}:!1),en||document.body.classList.add(Is),en++},s=()=>{en&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",o),en--,en||document.body.classList.remove(Is))};i.useEffect(()=>{if(e)return r(),()=>{s()}},[e])}let Wo=nn();const J=t=>tn(t,Wo);let Ho=nn();J.write=t=>tn(t,Ho);let On=nn();J.onStart=t=>tn(t,On);let Uo=nn();J.onFrame=t=>tn(t,Uo);let Yo=nn();J.onFinish=t=>tn(t,Yo);let Dt=[];J.setTimeout=(t,e)=>{let n=J.now()+e,o=()=>{let s=Dt.findIndex(a=>a.cancel==o);~s&&Dt.splice(s,1),ft-=~s?1:0},r={time:n,handler:t,cancel:o};return Dt.splice(_s(n),0,r),ft+=1,Ps(),r};let _s=t=>~(~Dt.findIndex(e=>e.time>t)||~Dt.length);J.cancel=t=>{On.delete(t),Uo.delete(t),Yo.delete(t),Wo.delete(t),Ho.delete(t)},J.sync=t=>{qo=!0,J.batchedUpdates(t),qo=!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=()=>{On.delete(n),e=null},o};let Go=typeof window!="undefined"?window.requestAnimationFrame:()=>{};J.use=t=>Go=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"):Ms()};let dt=-1,ft=0,qo=!1;function tn(t,e){qo?(e.delete(t),t(0)):(e.add(t),Ps())}function Ps(){dt<0&&(dt=0,J.frameLoop!=="demand"&&Go(Fs))}function Pc(){dt=-1}function Fs(){~dt&&(Go(Fs),J.batchedUpdates(Ms))}function Ms(){let t=dt;dt=J.now();let e=_s(dt);if(e&&(Ns(Dt.splice(0,e),n=>n.handler()),ft-=e),!ft){Pc();return}On.flush(),Wo.flush(t?Math.min(64,dt-t):16.667),Uo.flush(),Ho.flush(),Yo.flush()}function nn(){let t=new Set,e=t;return{add(n){ft+=e==t&&!t.has(n)?1:0,t.add(n)},delete(n){return ft-=e==t&&t.has(n)?1:0,t.delete(n)},flush(n){e.size&&(t=new Set,ft-=e.size,Ns(e,o=>o(n)&&t.add(o)),ft+=t.size,e=t)}}}function Ns(t,e){t.forEach(n=>{try{e(n)}catch(o){J.catch(o)}})}function Xo(){}const Fc=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),A={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 rt(t,e){if(A.arr(t)){if(!A.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 se=(t,e)=>t.forEach(e);function Xe(t,e,n){if(A.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 De=t=>A.und(t)?[]:A.arr(t)?t:[t];function on(t,e){if(t.size){const n=Array.from(t);t.clear(),se(n,e)}}const rn=(t,...e)=>on(t,n=>n(...e)),Jo=()=>typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let Qo,Ts,mt=null,Os=!1,Ro=Xo;var Je=Object.freeze({__proto__:null,get createStringInterpolator(){return Qo},get to(){return Ts},get colors(){return mt},get skipAnimation(){return Os},get willAdvance(){return Ro},assign:t=>{t.to&&(Ts=t.to),t.now&&(J.now=t.now),t.colors!==void 0&&(mt=t.colors),t.skipAnimation!=null&&(Os=t.skipAnimation),t.createStringInterpolator&&(Qo=t.createStringInterpolator),t.requestAnimationFrame&&J.use(t.requestAnimationFrame),t.batchedUpdates&&(J.batchedUpdates=t.batchedUpdates),t.willAdvance&&(Ro=t.willAdvance),t.frameLoop&&(J.frameLoop=t.frameLoop)}});const sn=new Set;let Be=[],er=[],Dn=0;const An={get idle(){return!sn.size&&!Be.length},start(t){Dn>t.priority?(sn.add(t),J.onStart(Mc)):(Ds(t),J(tr))},advance:tr,sort(t){if(Dn)J.onFrame(()=>An.sort(t));else{const e=Be.indexOf(t);~e&&(Be.splice(e,1),As(t))}},clear(){Be=[],sn.clear()}};function Mc(){sn.forEach(Ds),sn.clear(),J(tr)}function Ds(t){Be.includes(t)||As(t)}function As(t){Be.splice(Nc(Be,e=>e.priority>t.priority),0,t)}function tr(t){const e=er;for(let n=0;n<Be.length;n++){const o=Be[n];Dn=o.priority,o.idle||(Ro(o),o.advance(t),o.idle||e.push(o))}return Dn=0,er=Be,er.length=0,Be=e,Be.length>0}function Nc(t,e){const n=t.findIndex(e);return n<0?t.length:n}const Tc={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},He="[-+]?\\d*\\.?\\d+",Ln=He+"%";function Bn(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const Oc=new RegExp("rgb"+Bn(He,He,He)),Dc=new RegExp("rgba"+Bn(He,He,He,He)),Ac=new RegExp("hsl"+Bn(He,Ln,Ln)),Lc=new RegExp("hsla"+Bn(He,Ln,Ln,He)),Bc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,zc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Vc=/^#([0-9a-fA-F]{6})$/,Zc=/^#([0-9a-fA-F]{8})$/;function jc(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=Vc.exec(t))?parseInt(e[1]+"ff",16)>>>0:mt&&mt[t]!==void 0?mt[t]:(e=Oc.exec(t))?(At(e[1])<<24|At(e[2])<<16|At(e[3])<<8|255)>>>0:(e=Dc.exec(t))?(At(e[1])<<24|At(e[2])<<16|At(e[3])<<8|zs(e[4]))>>>0:(e=Bc.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Zc.exec(t))?parseInt(e[1],16)>>>0:(e=zc.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=Ac.exec(t))?(Ls(Bs(e[1]),zn(e[2]),zn(e[3]))|255)>>>0:(e=Lc.exec(t))?(Ls(Bs(e[1]),zn(e[2]),zn(e[3]))|zs(e[4]))>>>0:null}function nr(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 Ls(t,e,n){const o=n<.5?n*(1+e):n+e-n*e,r=2*n-o,s=nr(r,o,t+1/3),a=nr(r,o,t),l=nr(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 Bs(t){return(parseFloat(t)%360+360)%360/360}function zs(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function zn(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function Vs(t){let e=jc(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 an=(t,e,n)=>{if(A.fun(t))return t;if(A.arr(t))return an({range:t,output:e,extrapolate:n});if(A.str(t.output[0]))return Qo(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=Wc(u,s);return Kc(u,s[d],s[d+1],r[d],r[d+1],c,a,l,o.map)}};function Kc(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 Wc(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}const Hc={linear:t=>t};function or(){return or=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},or.apply(this,arguments)}const Lt=Symbol.for("FluidValue.get"),St=Symbol.for("FluidValue.observers"),ze=t=>!!(t&&t[Lt]),Fe=t=>t&&t[Lt]?t[Lt]():t,Zs=t=>t[St]||null;function Uc(t,e){t.eventObserved?t.eventObserved(e):t(e)}function ln(t,e){let n=t[St];n&&n.forEach(o=>{Uc(o,e)})}class js{constructor(e){if(this[Lt]=void 0,this[St]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Yc(this,e)}}const Yc=(t,e)=>Ks(t,Lt,e);function Bt(t,e){if(t[Lt]){let n=t[St];n||Ks(t,St,n=new Set),n.has(e)||(n.add(e),t.observerAdded&&t.observerAdded(n.size,e))}return e}function cn(t,e){let n=t[St];if(n&&n.has(e)){const o=n.size-1;o?n.delete(e):t[St]=null,t.observerRemoved&&t.observerRemoved(o,e)}}const Ks=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),Vn=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Gc=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ws=new RegExp(`(${Vn.source})(%|[a-z]+)`,"i"),qc=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Zn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Hs=t=>{const[e,n]=Xc(t);if(!e||Jo())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&&Zn.test(n))return Hs(n);if(n)return n}return t},Xc=t=>{const e=Zn.exec(t);if(!e)return[,];const[,n,o]=e;return[n,o]};let rr;const Jc=(t,e,n,o,r)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,Us=t=>{rr||(rr=mt?new RegExp(`(${Object.keys(mt).join("|")})(?!\\w)`,"g"):/^\b$/);const e=t.output.map(s=>Fe(s).replace(Zn,Hs).replace(Gc,Vs).replace(rr,Vs)),n=e.map(s=>s.match(Vn).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=>an(or({},t,{output:s})));return s=>{var a;const l=!Ws.test(e[0])&&((a=e.find(u=>Ws.test(u)))==null?void 0:a.replace(Vn,""));let c=0;return e[0].replace(Vn,()=>`${r[c++](s)}${l||""}`).replace(qc,Jc)}},sr="react-spring: ",Ys=t=>{const e=t;let n=!1;if(typeof e!="function")throw new TypeError(`${sr}once requires a function parameter`);return(...o)=>{n||(e(...o),n=!0)}},Qc=Ys(console.warn);function Rc(){Qc(`${sr}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const eu=Ys(console.warn);function tu(){eu(`${sr}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 jn(t){return A.str(t)&&(t[0]=="#"||/\d/.test(t)||!Jo()&&Zn.test(t)||t in(mt||{}))}const ir=Jo()?i.useEffect:i.useLayoutEffect,nu=()=>{const t=i.useRef(!1);return ir(()=>(t.current=!0,()=>{t.current=!1}),[]),t};function Gs(){const t=i.useState()[1],e=nu();return()=>{e.current&&t(Math.random())}}function ou(t,e){const[n]=i.useState(()=>({inputs:e,result:t()})),o=i.useRef(),r=o.current;let s=r;return s?e&&s.inputs&&ru(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 ru(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 qs=t=>i.useEffect(t,su),su=[];function Xs(t){const e=i.useRef();return i.useEffect(()=>{e.current=t}),e.current}const un=Symbol.for("Animated:node"),iu=t=>!!t&&t[un]===t,Qe=t=>t&&t[un],ar=(t,e)=>Fc(t,un,e),Kn=t=>t&&t[un]&&t[un].getPayload();class Js{constructor(){this.payload=void 0,ar(this,this)}getPayload(){return this.payload||[]}}class zt extends Js{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,A.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new zt(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,n){return A.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,A.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class Vt extends zt{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=an({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(A.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=an({output:[this.getValue(),e]})),this._value=0,super.reset()}}const Wn={dependencies:null};class Hn extends Js{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const n={};return Xe(this.source,(o,r)=>{iu(o)?n[r]=o.getValue(e):ze(o)?n[r]=Fe(o):e||(n[r]=o)}),n}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&se(this.payload,e=>e.reset())}_makePayload(e){if(e){const n=new Set;return Xe(e,this._addToPayload,n),Array.from(n)}}_addToPayload(e){Wn.dependencies&&ze(e)&&Wn.dependencies.add(e);const n=Kn(e);n&&se(n,o=>this.add(o))}}class lr extends Hn{constructor(e){super(e)}static create(e){return new lr(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(au)),!0)}}function au(t){return(jn(t)?Vt:zt).create(t)}function cr(t){const e=Qe(t);return e?e.constructor:A.arr(t)?lr:jn(t)?Vt:zt}function Un(){return Un=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},Un.apply(this,arguments)}const Qs=(t,e)=>{const n=!A.fun(t)||t.prototype&&t.prototype.isReactComponent;return i.forwardRef((o,r)=>{const s=i.useRef(null),a=n&&i.useCallback(p=>{s.current=uu(r,p)},[r]),[l,c]=cu(o,e),u=Gs(),d=()=>{const p=s.current;if(n&&!p)return;(p?e.applyAnimatedValues(p,l.getValue(!0)):!1)===!1&&u()},m=new lu(d,c),b=i.useRef();ir(()=>(b.current=m,se(c,p=>Bt(p,m)),()=>{b.current&&(se(b.current.deps,p=>cn(p,b.current)),J.cancel(b.current.update))})),i.useEffect(d,[]),qs(()=>()=>{const p=b.current;se(p.deps,y=>cn(y,p))});const v=e.getComponentProps(l.getValue());return X.createElement(t,Un({},v,{ref:a}))})};class lu{constructor(e,n){this.update=e,this.deps=n}eventObserved(e){e.type=="change"&&J.write(this.update)}}function cu(t,e){const n=new Set;return Wn.dependencies=n,t.style&&(t=Un({},t,{style:e.createAnimatedStyle(t.style)})),t=new Hn(t),Wn.dependencies=null,[t,n]}function uu(t,e){return t&&(A.fun(t)?t(e):t.current=e),e}const Rs=Symbol.for("AnimatedComponent"),du=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:n=r=>new Hn(r),getComponentProps:o=r=>r}={})=>{const r={applyAnimatedValues:e,createAnimatedStyle:n,getComponentProps:o},s=a=>{const l=ei(a)||"Anonymous";return A.str(a)?a=s[a]||(s[a]=Qs(a,r)):a=a[Rs]||(a[Rs]=Qs(a,r)),a.displayName=`Animated(${l})`,a};return Xe(t,(a,l)=>{A.arr(t)&&(l=ei(a)),s[l]=s(a)}),{animated:s}},ei=t=>A.str(t)?t:t&&A.str(t.displayName)?t.displayName:A.fun(t)&&t.name||null;function Se(){return Se=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},Se.apply(this,arguments)}function wt(t,...e){return A.fun(t)?t(...e):t}const dn=(t,e)=>t===!0||!!(e&&t&&(A.fun(t)?t(e):De(t).includes(e))),ti=(t,e)=>A.obj(t)?e&&t[e]:t,ni=(t,e)=>t.default===!0?t[e]:t.default?t.default[e]:void 0,fu=t=>t,ur=(t,e=fu)=>{let n=mu;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);A.und(s)||(o[r]=s)}return o},mu=["config","onProps","onStart","onChange","onPause","onResume","onRest"],hu={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 pu(t){const e={};let n=0;if(Xe(t,(o,r)=>{hu[r]||(e[r]=o,n++)}),n)return e}function oi(t){const e=pu(t);if(e){const n={to:e};return Xe(t,(o,r)=>r in e||(n[r]=o)),n}return Se({},t)}function fn(t){return t=Fe(t),A.arr(t)?t.map(fn):jn(t)?Je.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function gu(t){for(const e in t)return!0;return!1}function dr(t){return A.fun(t)||A.arr(t)&&A.obj(t[0])}function vu(t,e){var n;(n=t.ref)==null||n.delete(t),e==null||e.delete(t)}function bu(t,e){if(e&&t.ref!==e){var n;(n=t.ref)==null||n.delete(t),e.add(t),t.ref=e}}const fr=Se({},{default:{tension:170,friction:26}}.default,{mass:1,damping:1,easing:Hc.linear,clamp:!1});class yu{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,fr)}}function xu(t,e,n){n&&(n=Se({},n),ri(n,e),e=Se({},n,e)),ri(t,e),Object.assign(t,e);for(const a in fr)t[a]==null&&(t[a]=fr[a]);let{mass:o,frequency:r,damping:s}=t;return A.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 ri(t,e){if(!A.und(e.decay))t.duration=void 0;else{const n=!A.und(e.tension)||!A.und(e.friction);(n||!A.und(e.frequency)||!A.und(e.damping)||!A.und(e.mass))&&(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}}const si=[];class Cu{constructor(){this.changed=!1,this.values=si,this.toValues=null,this.fromValues=si,this.to=void 0,this.from=void 0,this.config=new yu,this.immediate=!1}}function ii(t,{key:e,props:n,defaultProps:o,state:r,actions:s}){return new Promise((a,l)=>{var c;let u,d,m=dn((c=n.cancel)!=null?c:o==null?void 0:o.cancel,e);if(m)p();else{A.und(n.pause)||(r.paused=dn(n.pause,e));let y=o==null?void 0:o.pause;y!==!0&&(y=r.paused||dn(y,e)),u=wt(n.delay||0,e),y?(r.resumeQueue.add(v),s.pause()):(s.resume(),v())}function b(){r.resumeQueue.add(v),r.timeouts.delete(d),d.cancel(),u=d.time-J.now()}function v(){u>0&&!Je.skipAnimation?(r.delayed=!0,d=J.setTimeout(p,u),r.pauseQueue.add(b),r.timeouts.add(d)):p()}function p(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(b),r.timeouts.delete(d),t<=(r.cancelId||0)&&(m=!0);try{s.start(Se({},n,{callId:t,cancel:m}),a)}catch(y){l(y)}}})}const mr=(t,e)=>e.length==1?e[0]:e.some(n=>n.cancelled)?Zt(t.get()):e.every(n=>n.noop)?ai(t.get()):Ue(t.get(),e.every(n=>n.finished)),ai=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),Ue=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),Zt=t=>({value:t,cancelled:!0,finished:!1});function li(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=fe(this,null,function*(){n.asyncId=r,n.asyncTo=t;const u=ur(e,(g,x)=>x==="onRest"?void 0:g);let d,m;const b=new Promise((g,x)=>(d=g,m=x)),v=g=>{const x=r<=(n.cancelId||0)&&Zt(o)||r!==n.asyncId&&Ue(o,!1);if(x)throw g.result=x,m(g),g},p=(g,x)=>{const S=new ci,C=new ui;return fe(this,null,function*(){if(Je.skipAnimation)throw mn(n),C.result=Ue(o,!1),m(C),C;v(S);const w=A.obj(g)?Se({},g):Se({},x,{to:g});w.parentId=r,Xe(u,(I,_)=>{A.und(w[_])&&(w[_]=I)});const k=yield o.start(w);return v(S),n.paused&&(yield new Promise(I=>{n.resumeQueue.add(I)})),k})};let y;if(Je.skipAnimation)return mn(n),Ue(o,!1);try{let g;A.arr(t)?g=(x=>fe(this,null,function*(){for(const S of x)yield p(S)}))(t):g=Promise.resolve(t(p,o.stop.bind(o))),yield Promise.all([g.then(d),b]),y=Ue(o.get(),!0,!1)}catch(g){if(g instanceof ci)y=g.result;else if(g instanceof ui)y=g.result;else throw g}finally{r==n.asyncId&&(n.asyncId=s,n.asyncTo=s?l:void 0,n.promise=s?c:void 0)}return A.fun(a)&&J.batchedUpdates(()=>{a(y,o,o.item)}),y})}function mn(t,e){on(t.timeouts,n=>n.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}class ci 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 ui extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const hr=t=>t instanceof pr;let Su=1;class pr extends js{constructor(...e){super(...e),this.id=Su++,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=Qe(this);return e&&e.getValue()}to(...e){return Je.to(this,e)}interpolate(...e){return Rc(),Je.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){ln(this,{type:"change",parent:this,value:e,idle:n})}_onPriorityChange(e){this.idle||An.sort(this),ln(this,{type:"priority",parent:this,priority:e})}}const kt=Symbol.for("SpringPhase"),di=1,fi=2,mi=4,gr=t=>(t[kt]&di)>0,ht=t=>(t[kt]&fi)>0,hn=t=>(t[kt]&mi)>0,hi=(t,e)=>e?t[kt]|=fi|di:t[kt]&=-3,pi=(t,e)=>e?t[kt]|=mi:t[kt]&=-5;class wu extends pr{constructor(e,n){if(super(),this.key=void 0,this.animation=new Cu,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,!A.und(e)||!A.und(n)){const o=A.obj(e)?Se({},e):Se({},n,{from:e});A.und(o.default)&&(o.default=!0),this.start(o)}}get idle(){return!(ht(this)||this._state.asyncTo)||hn(this)}get goal(){return Fe(this.animation.to)}get velocity(){const e=Qe(this);return e instanceof zt?e.lastVelocity||0:e.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return gr(this)}get isAnimating(){return ht(this)}get isPaused(){return hn(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=Kn(r.to);!l&&ze(r.to)&&(a=De(Fe(r.to))),r.values.forEach((d,m)=>{if(d.done)return;const b=d.constructor==Vt?1:l?l[m].lastPosition:a[m];let v=r.immediate,p=b;if(!v){if(p=d.lastPosition,s.tension<=0){d.done=!0;return}let y=d.elapsedTime+=e;const g=r.fromValues[m],x=d.v0!=null?d.v0:d.v0=A.arr(s.velocity)?s.velocity[m]:s.velocity;let S;const C=s.precision||(g==b?.005:Math.min(1,Math.abs(b-g)*.001));if(A.und(s.duration))if(s.decay){const w=s.decay===!0?.998:s.decay,k=Math.exp(-(1-w)*y);p=g+x/(1-w)*(1-k),v=Math.abs(d.lastPosition-p)<=C,S=x*k}else{S=d.lastVelocity==null?x:d.lastVelocity;const w=s.restVelocity||C/10,k=s.clamp?0:s.bounce,I=!A.und(k),_=g==b?d.v0>0:g<b;let T,L=!1;const M=1,N=Math.ceil(e/M);for(let W=0;W<N&&(T=Math.abs(S)>w,!(!T&&(v=Math.abs(b-p)<=C,v)));++W){I&&(L=p==b||p>b==_,L&&(S=-S*k,p=b));const z=-s.tension*1e-6*(p-b),P=-s.friction*.001*S,F=(z+P)/s.mass;S=S+F*M,p=p+S*M}}else{let w=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)),w=(s.progress||0)+y/this._memoizedDuration,w=w>1?1:w<0?0:w,d.durationProgress=w),p=g+s.easing(w)*(b-g),S=(p-d.lastPosition)/e,v=w==1}d.lastVelocity=S,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),v=!0)}l&&!l[m].done&&(v=!1),v?d.done=!0:n=!1,d.setValue(p,s.round)&&(o=!0)});const c=Qe(this),u=c.getValue();if(n){const d=Fe(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(ht(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 A.und(e)?(o=this.queue||[],this.queue=[]):o=[A.obj(e)?e:Se({},n,{to:e})],Promise.all(o.map(r=>this._update(r))).then(r=>mr(this,r))}stop(e){const{to:n}=this.animation;return this._focus(this.get()),mn(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=A.obj(o)?o[n]:o,(o==null||dr(o))&&(o=void 0),r=A.obj(r)?r[n]:r,r==null&&(r=void 0);const s={to:o,from:r};return gr(this)||(e.reverse&&([o,r]=[r,o]),r=Fe(r),A.und(r)?Qe(this)||this._set(o):this._set(r)),s}_update(e,n){let o=Se({},e);const{key:r,defaultProps:s}=this;o.default&&Object.assign(s,ur(o,(c,u)=>/^on/.test(u)?ti(c,r):c)),bi(this,o,"onProps"),vn(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 ii(++this._lastCallId,{key:r,props:o,defaultProps:s,state:l,actions:{pause:()=>{hn(this)||(pi(this,!0),rn(l.pauseQueue),vn(this,"onPause",Ue(this,pn(this,this.animation.to)),this))},resume:()=>{hn(this)&&(pi(this,!1),ht(this)&&this._resume(),rn(l.resumeQueue),vn(this,"onResume",Ue(this,pn(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(c=>{if(o.loop&&c.finished&&!(n&&c.noop)){const u=gi(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=!A.und(e.to),s=!A.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:m=u,from:b=d}=e;s&&!r&&(!n.default||A.und(m))&&(m=b),n.reverse&&([m,b]=[b,m]);const v=!rt(b,d);v&&(c.from=b),b=Fe(b);const p=!rt(m,u);p&&this._focus(m);const y=dr(n.to),{config:g}=c,{decay:x,velocity:S}=g;(r||s)&&(g.velocity=0),n.config&&!y&&xu(g,wt(n.config,a),n.config!==l.config?wt(l.config,a):void 0);let C=Qe(this);if(!C||A.und(m))return o(Ue(this,!0));const w=A.und(n.reset)?s&&!n.default:!A.und(b)&&dn(n.reset,a),k=w?b:this.get(),I=fn(m),_=A.num(I)||A.arr(I)||jn(I),T=!y&&(!_||dn(l.immediate||n.immediate,a));if(p){const W=cr(m);if(W!==C.constructor)if(T)C=this._set(I);else throw Error(`Cannot animate between ${C.constructor.name} and ${W.name}, as the "to" prop suggests`)}const L=C.constructor;let M=ze(m),N=!1;if(!M){const W=w||!gr(this)&&v;(p||W)&&(N=rt(fn(k),I),M=!N),(!rt(c.immediate,T)&&!T||!rt(g.decay,x)||!rt(g.velocity,S))&&(M=!0)}if(N&&ht(this)&&(c.changed&&!w?M=!0:M||this._stop(u)),!y&&((M||ze(u))&&(c.values=C.getPayload(),c.toValues=ze(m)?null:L==Vt?[1]:De(I)),c.immediate!=T&&(c.immediate=T,!T&&!w&&this._set(u)),M)){const{onRest:W}=c;se(Eu,P=>bi(this,n,P));const z=Ue(this,pn(this,u));rn(this._pendingCalls,z),this._pendingCalls.add(o),c.changed&&J.batchedUpdates(()=>{c.changed=!w,W==null||W(z,this),w?wt(l.onRest,z):c.onStart==null||c.onStart(z,this)})}w&&this._set(k),y?o(li(n.to,n,this._state,this)):M?this._start():ht(this)&&!p?this._pendingCalls.add(o):o(ai(k))}_focus(e){const n=this.animation;e!==n.to&&(Zs(this)&&this._detach(),n.to=e,Zs(this)&&this._attach())}_attach(){let e=0;const{to:n}=this.animation;ze(n)&&(Bt(n,this),hr(n)&&(e=n.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ze(e)&&cn(e,this)}_set(e,n=!0){const o=Fe(e);if(!A.und(o)){const r=Qe(this);if(!r||!rt(o,r.getValue())){const s=cr(o);!r||r.constructor!=s?ar(this,s.create(o)):r.setValue(o),r&&J.batchedUpdates(()=>{this._onChange(o,n)})}}return Qe(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,vn(this,"onStart",Ue(this,pn(this,e.to)),this))}_onChange(e,n){n||(this._onStart(),wt(this.animation.onChange,e,this)),wt(this.defaultProps.onChange,e,this),super._onChange(e,n)}_start(){const e=this.animation;Qe(this).reset(Fe(e.to)),e.immediate||(e.fromValues=e.values.map(n=>n.lastPosition)),ht(this)||(hi(this,!0),hn(this)||this._resume())}_resume(){Je.skipAnimation?this.finish():An.start(this)}_stop(e,n){if(ht(this)){hi(this,!1);const o=this.animation;se(o.values,s=>{s.done=!0}),o.toValues&&(o.onChange=o.onPause=o.onResume=void 0),ln(this,{type:"idle",parent:this});const r=n?Zt(this.get()):Ue(this.get(),pn(this,e!=null?e:o.to));rn(this._pendingCalls,r),o.changed&&(o.changed=!1,vn(this,"onRest",r,this))}}}function pn(t,e){const n=fn(e),o=fn(t.get());return rt(o,n)}function gi(t,e=t.loop,n=t.to){let o=wt(e);if(o){const r=o!==!0&&oi(o),s=(r||t).reverse,a=!r||r.reset;return gn(Se({},t,{loop:e,default:!1,pause:void 0,to:!s||dr(n)?n:void 0,from:a?t.from:void 0,reset:a},r))}}function gn(t){const{to:e,from:n}=t=oi(t),o=new Set;return A.obj(e)&&vi(e,o),A.obj(n)&&vi(n,o),t.keys=o.size?Array.from(o):null,t}function ku(t){const e=gn(t);return A.und(e.default)&&(e.default=ur(e)),e}function vi(t,e){Xe(t,(n,o)=>n!=null&&e.add(o))}const Eu=["onStart","onRest","onChange","onPause","onResume"];function bi(t,e,n){t.animation[n]=e[n]!==ni(e,n)?ti(e[n],t.key):void 0}function vn(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 Iu=["onStart","onChange","onRest"];let $u=1,_u=class{constructor(e,n){this.id=$u++,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(Se({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];A.und(o)||this.springs[n].set(o)}}update(e){return e&&this.queue.push(gn(e)),this}start(e){let{queue:n}=this;return e?n=De(e).map(gn):this.queue=[],this._flush?this._flush(this,n):(ki(this,n),vr(this,n))}stop(e,n){if(e!==!!e&&(n=e),n){const o=this.springs;se(De(n),r=>o[r].stop(!!e))}else mn(this._state,this._lastAsyncId),this.each(o=>o.stop(!!e));return this}pause(e){if(A.und(e))this.start({pause:!0});else{const n=this.springs;se(De(e),o=>n[o].pause())}return this}resume(e){if(A.und(e))this.start({pause:!1});else{const n=this.springs;se(De(e),o=>n[o].resume())}return this}each(e){Xe(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,on(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&&on(n,([c,u])=>{u.value=l,c(u,this,this._item)}),a&&(this._started=!1,on(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 vr(t,e){return Promise.all(e.map(n=>yi(t,n))).then(n=>mr(t,n))}function yi(t,e,n){return fe(this,null,function*(){const{keys:o,to:r,from:s,loop:a,onRest:l,onResolve:c}=e,u=A.obj(e.default)&&e.default;a&&(e.loop=!1),r===!1&&(e.to=null),s===!1&&(e.from=null);const d=A.arr(r)||A.fun(r)?r:void 0;d?(e.to=void 0,e.onRest=void 0,u&&(u.onRest=void 0)):se(Iu,y=>{const g=e[y];if(A.fun(g)){const x=t._events[y];e[y]=({finished:S,cancelled:C})=>{const w=x.get(g);w?(S||(w.finished=!1),C&&(w.cancelled=!0)):x.set(g,{value:null,finished:S||!1,cancelled:C||!1})},u&&(u[y]=e[y])}});const m=t._state;e.pause===!m.paused?(m.paused=e.pause,rn(e.pause?m.pauseQueue:m.resumeQueue)):m.paused&&(e.pause=!0);const b=(o||Object.keys(t.springs)).map(y=>t.springs[y].start(e)),v=e.cancel===!0||ni(e,"cancel")===!0;(d||v&&m.asyncId)&&b.push(ii(++t._lastAsyncId,{props:e,state:m,actions:{pause:Xo,resume:Xo,start(y,g){v?(mn(m,t._lastAsyncId),g(Zt(t))):(y.onRest=l,g(li(d,y,m,t)))}}})),m.paused&&(yield new Promise(y=>{m.resumeQueue.add(y)}));const p=mr(t,yield Promise.all(b));if(a&&p.finished&&!(n&&p.noop)){const y=gi(e,a,r);if(y)return ki(t,[y]),yi(t,y,!0)}return c&&J.batchedUpdates(()=>c(p,t,t.item)),p})}function xi(t,e){const n=Se({},t.springs);return e&&se(De(e),o=>{A.und(o.keys)&&(o=gn(o)),A.obj(o.to)||(o=Se({},o,{to:void 0})),wi(n,o,r=>Si(r))}),Ci(t,n),n}function Ci(t,e){Xe(e,(n,o)=>{t.springs[o]||(t.springs[o]=n,Bt(n,t))})}function Si(t,e){const n=new wu;return n.key=t,e&&Bt(n,e),n}function wi(t,e,n){e.keys&&se(e.keys,o=>{(t[o]||(t[o]=n(o)))._prepareNode(e)})}function ki(t,e){se(e,n=>{wi(t.springs,n,o=>Si(o,t))})}function Pu(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 Fu=["children"],Yn=t=>{let{children:e}=t,n=Pu(t,Fu);const o=i.useContext(Gn),r=n.pause||!!o.pause,s=n.immediate||!!o.immediate;n=ou(()=>({pause:r,immediate:s}),[r,s]);const{Provider:a}=Gn;return X.createElement(a,{value:n},e)},Gn=Mu(Yn,{});Yn.Provider=Gn.Provider,Yn.Consumer=Gn.Consumer;function Mu(t,e){return Object.assign(t,X.createContext(e)),t.Provider._context=t,t.Consumer._context=t,t}const Nu=()=>{const t=[],e=function(r){tu();const s=[];return se(t,(a,l)=>{if(A.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 se(t,o=>o.pause(...arguments)),this},e.resume=function(){return se(t,o=>o.resume(...arguments)),this},e.set=function(o){se(t,r=>r.set(o))},e.start=function(o){const r=[];return se(t,(s,a)=>{if(A.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 se(t,o=>o.stop(...arguments)),this},e.update=function(o){return se(t,(r,s)=>r.update(this._getProps(o,r,s))),this};const n=function(r,s,a){return A.fun(r)?r(a,s):r};return e._getProps=n,e};function Tu(t,e,n){const o=A.fun(e)&&e;o&&!n&&(n=[]);const r=i.useMemo(()=>o||arguments.length==3?Nu():void 0,[]),s=i.useRef(0),a=Gs(),l=i.useMemo(()=>({ctrls:[],queue:[],flush(x,S){const C=xi(x,S);return s.current>0&&!l.queue.length&&!Object.keys(C).some(k=>!x.springs[k])?vr(x,S):new Promise(k=>{Ci(x,C),l.queue.push(()=>{k(vr(x,S))}),a()})}}),[]),c=i.useRef([...l.ctrls]),u=[],d=Xs(t)||0;i.useMemo(()=>{se(c.current.slice(t,d),x=>{vu(x,r),x.stop(!0)}),c.current.length=t,m(d,t)},[t]),i.useMemo(()=>{m(0,Math.min(d,t))},n);function m(x,S){for(let C=x;C<S;C++){const w=c.current[C]||(c.current[C]=new _u(null,l.flush)),k=o?o(C,w):e[C];k&&(u[C]=ku(k))}}const b=c.current.map((x,S)=>xi(x,u[S])),v=i.useContext(Yn),p=Xs(v),y=v!==p&&gu(v);ir(()=>{s.current++,l.ctrls=c.current;const{queue:x}=l;x.length&&(l.queue=[],se(x,S=>S())),se(c.current,(S,C)=>{r==null||r.add(S),y&&S.start({default:v});const w=u[C];w&&(bu(S,w.ref),S.ref?S.queue.push(w):S.start(w))})}),qs(()=>()=>{se(l.ctrls,x=>x.stop(!0))});const g=b.map(x=>Se({},x));return r?[g,r]:g}function Ve(t,e){const n=A.fun(t),[[o],r]=Tu(1,n?t:[t],n?e||[]:e);return n||arguments.length==2?[o,r]:o}let Ei;(function(t){t.MOUNT="mount",t.ENTER="enter",t.UPDATE="update",t.LEAVE="leave"})(Ei||(Ei={}));class Ou extends pr{constructor(e,n){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=an(...n);const o=this._get(),r=cr(o);ar(this,r.create(o))}advance(e){const n=this._get(),o=this.get();rt(n,o)||(Qe(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&Ii(this._active)&&br(this)}_get(){const e=A.arr(this.source)?this.source.map(Fe):De(Fe(this.source));return this.calc(...e)}_start(){this.idle&&!Ii(this._active)&&(this.idle=!1,se(Kn(this),e=>{e.done=!1}),Je.skipAnimation?(J.batchedUpdates(()=>this.advance()),br(this)):An.start(this))}_attach(){let e=1;se(De(this.source),n=>{ze(n)&&Bt(n,this),hr(n)&&(n.idle||this._active.add(n),e=Math.max(e,n.priority+1))}),this.priority=e,this._start()}_detach(){se(De(this.source),e=>{ze(e)&&cn(e,this)}),this._active.clear(),br(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=De(this.source).reduce((n,o)=>Math.max(n,(hr(o)?o.priority:0)+1),0))}}function Du(t){return t.idle!==!1}function Ii(t){return!t.size||Array.from(t).every(Du)}function br(t){t.idle||(t.idle=!0,se(Kn(t),e=>{e.done=!0}),ln(t,{type:"idle",parent:t}))}Je.assign({createStringInterpolator:Us,to:(t,e)=>new Ou(t,e)});function yr(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 Au=["style","children","scrollTop","scrollLeft","viewBox"],$i=/^--/;function Lu(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e=="number"&&e!==0&&!$i.test(t)&&!(bn.hasOwnProperty(t)&&bn[t])?e+"px":(""+e).trim()}const _i={};function Bu(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=yr(o,Au),d=Object.values(u),m=Object.keys(u).map(b=>n||t.hasAttribute(b)?b:_i[b]||(_i[b]=b.replace(/([A-Z])/g,v=>"-"+v.toLowerCase())));s!==void 0&&(t.textContent=s);for(let b in r)if(r.hasOwnProperty(b)){const v=Lu(b,r[b]);$i.test(b)?t.style.setProperty(b,v):t.style[b]=v}m.forEach((b,v)=>{t.setAttribute(b,d[v])}),a!==void 0&&(t.scrollTop=a),l!==void 0&&(t.scrollLeft=l),c!==void 0&&t.setAttribute("viewBox",c)}let bn={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 zu=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),Vu=["Webkit","Ms","Moz","O"];bn=Object.keys(bn).reduce((t,e)=>(Vu.forEach(n=>t[zu(n,e)]=t[e]),t),bn);const Zu=["x","y","z"],ju=/^(matrix|translate|scale|rotate|skew)/,Ku=/^(translate)/,Wu=/^(rotate|skew)/,xr=(t,e)=>A.num(t)&&t!==0?t+e:t,qn=(t,e)=>A.arr(t)?t.every(n=>qn(n,e)):A.num(t)?t===e:parseFloat(t)===e;class Hu extends Hn{constructor(e){let{x:n,y:o,z:r}=e,s=yr(e,Zu);const a=[],l=[];(n||o||r)&&(a.push([n||0,o||0,r||0]),l.push(c=>[`translate3d(${c.map(u=>xr(u,"px")).join(",")})`,qn(c,0)])),Xe(s,(c,u)=>{if(u==="transform")a.push([c||""]),l.push(d=>[d,d===""]);else if(ju.test(u)){if(delete s[u],A.und(c))return;const d=Ku.test(u)?"px":Wu.test(u)?"deg":"";a.push(De(c)),l.push(u==="rotate3d"?([m,b,v,p])=>[`rotate3d(${m},${b},${v},${xr(p,d)})`,qn(p,0)]:m=>[`${u}(${m.map(b=>xr(b,d)).join(",")})`,qn(m,u.startsWith("scale")?1:0)])}}),a.length&&(s.transform=new Uu(a,l)),super(s)}}class Uu extends js{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 se(this.inputs,(o,r)=>{const s=Fe(o[0]),[a,l]=this.transforms[r](A.arr(s)?s:o.map(Fe));e+=" "+a,n=n&&l}),n?"none":e}observerAdded(e){e==1&&se(this.inputs,n=>se(n,o=>ze(o)&&Bt(o,this)))}observerRemoved(e){e==0&&se(this.inputs,n=>se(n,o=>ze(o)&&cn(o,this)))}eventObserved(e){e.type=="change"&&(this._value=null),ln(this,e)}}const Yu=["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"],Gu=["scrollTop","scrollLeft"];Je.assign({batchedUpdates:Tt.unstable_batchedUpdates,createStringInterpolator:Us,colors:Tc});const ke=du(Yu,{applyAnimatedValues:Bu,createAnimatedStyle:t=>new Hu(t),getComponentProps:t=>yr(t,Gu)}).animated;function qu(t){return(typeof t=="function"?t():t)||document.body}function Xn(t,e){if(Ot&&t){const n=qu(t);return Tt.createPortal(e,n)}return e}function Xu(t){const e=i.useRef(t);return t&&(e.current=!0),!!e.current}const Jn=t=>Ju(t.active,t.forceRender,t.destroyOnClose)?t.children:null;function Ju(t,e,n){const o=Xu(t);return e||t?!0:o?!n:!1}const Qu={click:"onClick",touchstart:"onTouchStart"};function Pi(t,e){const n=Object.assign({},e.props);for(const o of t){const r=Qu[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 Cr="adm-mask",Ru={default:.55,thin:.35,thick:.75},ed={black:"0, 0, 0",white:"255, 255, 255"},td={visible:!0,destroyOnClose:!1,forceRender:!1,color:"black",opacity:"default",disableBodyScroll:!0,getContainer:null,stopPropagation:["click"]},Qn=t=>{const e=oe(td,t),{locale:n}=Pe(),o=i.useRef(null);$s(o,e.visible&&e.disableBodyScroll);const r=i.useMemo(()=>{var d;const m=(d=Ru[e.opacity])!==null&&d!==void 0?d:e.opacity,b=ed[e.color];return b?`rgba(${b}, ${m})`:e.color},[e.color,e.opacity]),[s,a]=i.useState(e.visible),l=te.useUnmountedRef(),{opacity:c}=Ve({opacity:e.visible?1:0,config:{precision:.01,mass:1,tension:250,friction:30,clamp:!0},onStart:()=>{a(!0)},onRest:()=>{var d,m;l.current||(a(e.visible),e.visible?(d=e.afterShow)===null||d===void 0||d.call(e):(m=e.afterClose)===null||m===void 0||m.call(e))}}),u=Pi(e.stopPropagation,Y(e,i.createElement(ke.div,{className:Cr,ref:o,"aria-hidden":!0,style:Object.assign(Object.assign({},e.style),{background:r,opacity:c,display:s?void 0:"none"}),onClick:d=>{var m;d.target===d.currentTarget&&((m=e.onMaskClick)===null||m===void 0||m.call(e,d))}},e.onMaskClick&&i.createElement("div",{className:`${Cr}-aria-button`,role:"button","aria-label":n.Mask.name,onClick:e.onMaskClick}),i.createElement("div",{className:`${Cr}-content`},e.children))));return i.createElement(Jn,{active:s,forceRender:e.forceRender,destroyOnClose:e.destroyOnClose},Xn(e.getContainer,u))};function nd(t){return X.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(" ")}),X.createElement("g",{id:"AddOutline-AddOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"AddOutline-add"},X.createElement("rect",{id:"AddOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 Fi(t){return X.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(" ")}),X.createElement("g",{id:"CheckOutline-CheckOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"CheckOutline-编组"},X.createElement("rect",{id:"CheckOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 od(t){return X.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(" ")}),X.createElement("g",{id:"CloseCircleFill-CloseCircleFill",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"CloseCircleFill-编组"},X.createElement("rect",{id:"CloseCircleFill-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 Rn(t){return X.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(" ")}),X.createElement("g",{id:"CloseOutline-CloseOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"CloseOutline-编组"},X.createElement("rect",{id:"CloseOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 rd(t){return X.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(" ")}),X.createElement("g",{id:"DownOutline-DownOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",null,X.createElement("rect",{id:"DownOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 sd(t){return X.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(" ")}),X.createElement("g",{id:"LeftOutline-LeftOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"LeftOutline-编组"},X.createElement("rect",{id:"LeftOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 id(t){return X.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(" ")}),X.createElement("g",{id:"RightOutline-RightOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"RightOutline-RightOutlined"},X.createElement("rect",{id:"RightOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 ad(t){return X.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(" ")}),X.createElement("g",{id:"SearchOutline-SearchOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},X.createElement("g",{id:"SearchOutline-编组"},X.createElement("rect",{id:"SearchOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),X.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 ld={closeOnMaskClick:!1,closeIcon:i.createElement(Rn,null),destroyOnClose:!1,disableBodyScroll:!0,forceRender:!1,getContainer:()=>document.body,mask:!0,showCloseButton:!1,stopPropagation:["click"],visible:!1};function cd(t){const[e,n]=i.useState(t);return te.useIsomorphicLayoutEffect(()=>{n(t)},[t]),e}function ud(t,e,n){return Math.max(e,Math.min(t,n))}const ve={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 Mi(t,e,n){return e===0||Math.abs(e)===1/0?Math.pow(t,n*5):t*e*n/(e+n*t)}function Ni(t,e,n,o=.15){return o===0?ud(t,e,n):t<e?-Mi(e-t,n-e,o)+e:t>n?+Mi(t-n,n-e,o)+n:t}function dd(t,[e,n],[o,r]){const[[s,a],[l,c]]=t;return[Ni(e,s,a,o),Ni(n,l,c,r)]}function fd(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 md(t){var e=fd(t,"string");return typeof e=="symbol"?e:String(e)}function Ee(t,e,n){return e=md(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ti(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 pe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ti(Object(n),!0).forEach(function(o){Ee(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ti(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}const Oi={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 Di(t){return t?t[0].toUpperCase()+t.slice(1):""}const hd=["enter","leave"];function pd(t=!1,e){return t&&!hd.includes(e)}function gd(t,e="",n=!1){const o=Oi[t],r=o&&o[e]||e;return"on"+Di(t)+Di(r)+(pd(n,r)?"Capture":"")}const vd=["gotpointercapture","lostpointercapture"];function bd(t){let e=t.substring(2).toLowerCase();const n=!!~e.indexOf("passive");n&&(e=e.replace("passive",""));const o=vd.includes(e)?"capturecapture":"capture",r=!!~e.indexOf(o);return r&&(e=e.replace("capture","")),{device:e,capture:r,passive:n}}function yd(t,e=""){const n=Oi[t],o=n&&n[e]||e;return t+o}function eo(t){return"touches"in t}function Ai(t){return eo(t)?"touch":"pointerType"in t?t.pointerType:"mouse"}function xd(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 Cd(t){return t.type==="touchend"||t.type==="touchcancel"?t.changedTouches:t.targetTouches}function Li(t){return eo(t)?Cd(t)[0]:t}function Sr(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 Sd(t){return xd(t).map(e=>e.identifier)}function Bi(t,e){const[n,o]=Array.from(t.touches).filter(r=>e.includes(r.identifier));return Sr(n,o)}function wr(t){const e=Li(t);return eo(t)?e.identifier:e.pointerId}function zi(t){const e=Li(t);return[e.clientX,e.clientY]}const Vi=40,Zi=800;function ji(t){let{deltaX:e,deltaY:n,deltaMode:o}=t;return o===1?(e*=Vi,n*=Vi):o===2&&(e*=Zi,n*=Zi),[e,n]}function wd(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 to(t,...e){return typeof t=="function"?t(...e):t}function kd(){}function Ed(...t){return t.length===0?kd:t.length===1?t[0]:function(){let e;for(const n of t)e=n.apply(this,arguments)||e;return e}}function Ki(t,e){return Object.assign({},e,t||{})}const Id=32;class Wi{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?to(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,wd(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 I=n._delta.map(Math.abs);ve.addTo(n._distance,I)}this.axisIntent&&this.axisIntent(e);const[a,l]=n._movement,[c,u]=o.threshold,{_step:d,values:m}=n;if(o.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(a)>=c&&m[0]),d[1]===!1&&(d[1]=Math.abs(l)>=u&&m[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 b=[0,0];if(o.hasCustomTransform){const[I,_]=m;b[0]=d[0]!==!1?I-d[0]:0,b[1]=d[1]!==!1?_-d[1]:0}else b[0]=d[0]!==!1?a-d[0]:0,b[1]=d[1]!==!1?l-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(b);const v=n.offset,p=n._active&&!n._blocked||n.active;p&&(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=to(o.bounds,n)),this.setup&&this.setup()),n.movement=b,this.computeOffset()));const[y,g]=n.offset,[[x,S],[C,w]]=n._bounds;n.overflow=[y<x?-1:y>S?1:0,g<C?-1:g>w?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 k=n._active?o.rubberband||[0,0]:[0,0];if(n.offset=dd(n._bounds,n.offset,k),n.delta=ve.sub(n.offset,v),this.computeMovement(),p&&(!n.last||s>Id)){n.delta=ve.sub(n.offset,v);const I=n.delta.map(Math.abs);ve.addTo(n.distance,I),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&s>0&&(n.velocity=[I[0]/s,I[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(pe(pe(pe({},n),e),{},{[this.aliasKey]:e.values}));r!==void 0&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function $d([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 Hi extends Wi{constructor(...e){super(...e),Ee(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=ve.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=ve.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[Ai(e)]:o.axisThreshold;n.axis=$d(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 _d=t=>t,Ui=.15,Yi={enabled(t=!0){return t},eventOptions(t,e,n){return pe(pe({},n.shared.eventOptions),t)},preventDefault(t=!1){return t},triggerAllEvents(t=!1){return t},rubberband(t=0){switch(t){case!0:return[Ui,Ui];case!1:return[0,0];default:return ve.toVector(t)}},from(t){if(typeof t=="function")return t;if(t!=null)return ve.toVector(t)},transform(t,e,n){const o=t||n.shared.transform;return this.hasCustomTransform=!!o,o||_d},threshold(t){return ve.toVector(t,0)}},Pd=0,jt=pe(pe({},Yi),{},{axis(t,e,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(t=Pd){return t},bounds(t={}){if(typeof t=="function")return s=>jt.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]]}}),Gi={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 Fd extends Hi{constructor(...e){super(...e),Ee(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=jt.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=wr(e),o._pointerActive=!0,this.computeValues(zi(e)),this.computeInitial(),n.preventScrollAxis&&Ai(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=wr(e);if(n._pointerId!==void 0&&r!==n._pointerId)return;const s=zi(e);if(document.pointerLockElement===e.target?n._delta=[e.movementX,e.movementY]:(n._delta=ve.sub(s,n._values),this.computeValues(s)),ve.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=wr(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,[m,b]=o.swipe.velocity,[v,p]=o.swipe.distance,y=o.swipe.duration;if(n.elapsedTime<y){const g=Math.abs(l/n.timeDelta),x=Math.abs(c/n.timeDelta);g>m&&Math.abs(u)>v&&(n.swipe[0]=Math.sign(l)),x>b&&Math.abs(d)>p&&(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,Md(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=Gi[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,ve.addTo(o._movement,o._delta),this.compute(e),this.emit()}}keyUp(e){e.key in Gi&&(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 Md(t){"persist"in t&&typeof t.persist=="function"&&t.persist()}const yn=typeof window!="undefined"&&window.document&&window.document.createElement;function qi(){return yn&&"ontouchstart"in window}function Nd(){return qi()||yn&&window.navigator.maxTouchPoints>1}function Td(){return yn&&"onpointerdown"in window}function Od(){return yn&&"exitPointerLock"in window.document}function Dd(){try{return"constructor"in GestureEvent}catch(t){return!1}}const Ze={isBrowser:yn,gesture:Dd(),touch:qi(),touchscreen:Nd(),pointer:Td(),pointerLock:Od()},Ad=250,Ld=180,Bd=.5,zd=50,Vd=250,Zd=10,Xi={mouse:0,touch:0,pen:8},jd=pe(pe({},jt),{},{device(t,e,{pointer:{touch:n=!1,lock:o=!1,mouse:r=!1}={}}){return this.pointerLock=o&&Ze.pointerLock,Ze.touch&&n?"touch":this.pointerLock?"mouse":Ze.pointer&&!r?"pointer":Ze.touch?"touch":"mouse"},preventScrollAxis(t,e,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&t?Ad:void 0,!(!Ze.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=ve.toVector(t,n?o:r?1:0);return this.filterTaps=n,this.tapsThreshold=o,s},swipe({velocity:t=Bd,distance:e=zd,duration:n=Vd}={}){return{velocity:this.transform(ve.toVector(t)),distance:this.transform(ve.toVector(e)),duration:n}},delay(t=0){switch(t){case!0:return Ld;case!1:return 0;default:return t}},axisThreshold(t){return t?pe(pe({},Xi),t):Xi},keyboardDisplacement(t=Zd){return t}});function Ji(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 Kd=30,Wd=100;class Hd extends Wi{constructor(...e){super(...e),Ee(this,"ingKey","pinching"),Ee(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=ve.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)*Kd-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=Bi(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=Sr(...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=Bi(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=Sr(...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=ve.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=[-ji(e)[1]/Wd*o.offset[0],0],ve.addTo(o._movement,o._delta),Ji(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 Ud=pe(pe({},Yi),{},{device(t,e,{shared:n,pointer:{touch:o=!1}={}}){if(n.target&&!Ze.touch&&Ze.gesture)return"gesture";if(Ze.touch&&o)return"touch";if(Ze.touchscreen){if(Ze.pointer)return"pointer";if(Ze.touch)return"touch"}},bounds(t,e,{scaleBounds:n={},angleBounds:o={}}){const r=a=>{const l=Ki(to(n,a),{min:-1/0,max:1/0});return[l.min,l.max]},s=a=>{const l=Ki(to(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",ve.toVector(t,this.lockDirection?[.1,3]:0)},modifierKey(t){return t===void 0?"ctrlKey":t},pinchOnWheel(t=!0){return t}});pe(pe({},jt),{},{mouseOnly:(t=!0)=>t});class Yd extends Hi{constructor(...e){super(...e),Ee(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=ji(e),ve.addTo(n._movement,n._delta),Ji(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 Gd=jt;pe(pe({},jt),{},{mouseOnly:(t=!0)=>t});const kr=new Map,Er=new Map;function Ir(t){kr.set(t.key,t.engine),Er.set(t.key,t.resolver)}const Qi={key:"drag",engine:Fd,resolver:jd},qd={key:"pinch",engine:Hd,resolver:Ud},Xd={key:"wheel",engine:Yd,resolver:Gd};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 Qd(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 Rd={target(t){if(t)return()=>"current"in t?t.current:t},enabled(t=!0){return t},window(t=Ze.isBrowser?window:void 0){return t},eventOptions({passive:t=!0,capture:e=!1}={}){return{passive:t,capture:e}},transform(t){return t}},e1=["target","eventOptions","window","enabled","transform"];function no(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]=no(t[o],r);break;case"boolean":r&&(n[o]=t[o]);break}return n}function t1(t,e,n={}){const o=t,{target:r,eventOptions:s,window:a,enabled:l,transform:c}=o,u=Qd(o,e1);if(n.shared=no({target:r,eventOptions:s,window:a,enabled:l,transform:c},Rd),e){const d=Er.get(e);n[e]=no(pe({shared:n.shared},u),d)}else for(const d in u){const m=Er.get(d);m&&(n[d]=no(pe({shared:n.shared},u[d]),m))}return n}class Ri{constructor(e,n){Ee(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=n}add(e,n,o,r,s){const a=this._listeners,l=yd(n,o),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=pe(pe({},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 n1{constructor(){Ee(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 o1{constructor(e){Ee(this,"gestures",new Set),Ee(this,"_targetEventStore",new Ri(this)),Ee(this,"gestureEventStores",{}),Ee(this,"gestureTimeoutStores",{}),Ee(this,"handlers",{}),Ee(this,"config",{}),Ee(this,"pointerIds",new Set),Ee(this,"touchIds",new Set),Ee(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),r1(this,e)}setEventIds(e){if(eo(e))return this.touchIds=new Set(Sd(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=t1(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=ea(o,l.eventOptions,!!r);if(l.enabled){const u=kr.get(a);new u(this,e,a).bind(c)}}const s=ea(o,n.eventOptions,!!r);for(const a in this.nativeHandlers)s(a,"",l=>this.nativeHandlers[a](pe(pe({},this.state.shared),{},{event:l,args:e})),void 0,!0)}for(const s in o)o[s]=Ed(...o[s]);if(!r)return o;for(const s in o){const{device:a,capture:l,passive:c}=bd(s);this._targetEventStore.add(r,a,"",o[s],{capture:l,passive:c})}}}}function Kt(t,e){t.gestures.add(e),t.gestureEventStores[e]=new Ri(t,e),t.gestureTimeoutStores[e]=new n1}function r1(t,e){e.drag&&Kt(t,"drag"),e.wheel&&Kt(t,"wheel"),e.scroll&&Kt(t,"scroll"),e.move&&Kt(t,"move"),e.pinch&&Kt(t,"pinch"),e.hover&&Kt(t,"hover")}const ea=(t,e,n)=>(o,r,s,a={},l=!1)=>{var c,u;const d=(c=a.capture)!==null&&c!==void 0?c:e.capture,m=(u=a.passive)!==null&&u!==void 0?u:e.passive;let b=l?o:gd(o,r,d);n&&m&&(b+="Passive"),t[b]=t[b]||[],t[b].push(s)},s1=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function i1(t){const e={},n={},o=new Set;for(let r in t)s1.test(r)?(o.add(RegExp.lastMatch),n[r]=t[r]):e[r]=t[r];return[n,e,o]}function Wt(t,e,n,o,r,s){if(!t.has(n)||!kr.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 a1(t,e){const[n,o,r]=i1(t),s={};return Wt(r,n,"onDrag","drag",s,e),Wt(r,n,"onWheel","wheel",s,e),Wt(r,n,"onScroll","scroll",s,e),Wt(r,n,"onPinch","pinch",s,e),Wt(r,n,"onMove","move",s,e),Wt(r,n,"onHover","hover",s,e),{handlers:s,config:e,nativeHandlers:o}}function $r(t,e={},n,o){const r=i.useMemo(()=>new o1(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 oo(t,e){return Ir(Qi),$r({drag:t},e||{},"drag")}function l1(t,e){return Ir(Xd),$r({wheel:t},e||{},"wheel")}function c1(t){return t.forEach(Ir),function(n,o){const{handlers:r,nativeHandlers:s,config:a}=a1(n,o||{});return $r(r,a,void 0,s)}}const ro="adm-popup",u1=Object.assign(Object.assign({},ld),{closeOnSwipe:!1,position:"bottom"}),Ht=t=>{const{locale:e,popup:n={}}=Pe(),o=oe(u1,n,t),r=K(`${ro}-body`,o.bodyClassName,`${ro}-body-position-${o.position}`),[s,a]=i.useState(o.visible),l=i.useRef(null);$s(l,o.disableBodyScroll&&s?"strict":!1),te.useIsomorphicLayoutEffect(()=>{o.visible&&a(!0)},[o.visible]);const c=te.useUnmountedRef(),{percent:u}=Ve({percent:o.visible?0:100,config:{precision:.1,mass:.4,tension:300,friction:30},onRest:()=>{var v,p;c.current||(a(o.visible),o.visible?(v=o.afterShow)===null||v===void 0||v.call(o):(p=o.afterClose)===null||p===void 0||p.call(o))}}),d=oo(({swipe:[,v]})=>{var p;o.closeOnSwipe&&(v===1&&o.position==="bottom"||v===-1&&o.position==="top")&&((p=o.onClose)===null||p===void 0||p.call(o))},{axis:"y",enabled:["top","bottom"].includes(o.position)}),m=cd(s&&o.visible),b=Pi(o.stopPropagation,Y(o,i.createElement("div",Object.assign({className:ro,onClick:o.onClick,style:{display:s?void 0:"none",touchAction:["top","bottom"].includes(o.position)?"none":"auto"}},d()),o.mask&&i.createElement(Qn,{visible:m,forceRender:o.forceRender,destroyOnClose:o.destroyOnClose,onMaskClick:v=>{var p,y;(p=o.onMaskClick)===null||p===void 0||p.call(o,v),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(ke.div,{className:r,style:Object.assign(Object.assign({},o.bodyStyle),{pointerEvents:u.to(v=>v===0?"unset":"none"),transform:u.to(v=>o.position==="bottom"?`translate(0, ${v}%)`:o.position==="top"?`translate(0, -${v}%)`:o.position==="left"?`translate(-${v}%, 0)`:o.position==="right"?`translate(${v}%, 0)`:"none")}),ref:l},o.showCloseButton&&i.createElement("a",{className:K(`${ro}-close-icon`,"adm-plain-anchor"),onClick:()=>{var v;(v=o.onClose)===null||v===void 0||v.call(o)},role:"button","aria-label":e.common.close},o.closeIcon),o.children))));return i.createElement(Jn,{active:s,forceRender:o.forceRender,destroyOnClose:o.destroyOnClose},Xn(o.getContainer,b))},ta="adm-safe-area",xn=t=>Y(t,i.createElement("div",{className:K(ta,`${ta}-position-${t.position}`)})),so=Object.assign({},Xl),{version:d1,render:f1,unmountComponentAtNode:m1}=so;let io;try{Number((d1||"").split(".")[0])>=18&&so.createRoot&&(io=so.createRoot)}catch(t){}function na(t){const{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:e}=so;e&&typeof e=="object"&&(e.usingClientEntryPoint=t)}const ao="__antd_mobile_root__";function h1(t,e){f1(t,e)}function p1(t,e){na(!0);const n=e[ao]||io(e);na(!1),n.render(t),e[ao]=n}function g1(t,e){if(io){p1(t,e);return}h1(t,e)}function v1(t){return m1(t)}function b1(t){return yt(this,void 0,void 0,function*(){return Promise.resolve().then(()=>{var e;(e=t[ao])===null||e===void 0||e.unmount(),delete t[ao]})})}function y1(t){return io?b1(t):v1(t)}function _r(t){const e=document.createElement("div");document.body.appendChild(e);function n(){y1(e)&&e.parentNode&&e.parentNode.removeChild(e)}return g1(t,e),n}function Cn(t){const e=i.forwardRef((r,s)=>{const[a,l]=i.useState(!1),c=i.useRef(!1),[u,d]=i.useState(t),m=i.useRef(0);i.useEffect(()=>{c.current?v():l(!0)},[]);function b(){var p,y;c.current=!0,l(!1),(y=(p=u.props).onClose)===null||y===void 0||y.call(p)}function v(){var p,y;o(),(y=(p=u.props).afterClose)===null||y===void 0||y.call(p)}return i.useImperativeHandle(s,()=>({close:b,replace:p=>{var y,g;m.current++,(g=(y=u.props).afterClose)===null||g===void 0||g.call(y),d(p)}})),i.cloneElement(u,Object.assign(Object.assign({},u.props),{key:m.current,visible:a,onClose:b,afterClose:v}))}),n=i.createRef(),o=_r(i.createElement(e,{ref:n}));return{close:()=>yt(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 _e="adm-action-sheet",x1={visible:!1,actions:[],cancelText:"",closeOnAction:!1,closeOnMaskClick:!0,safeArea:!0,destroyOnClose:!1,forceRender:!1},oa=t=>{const e=oe(x1,t),{styles:n}=e;return i.createElement(Ht,{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:K(`${_e}-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},Y(e,i.createElement("div",{className:_e},e.extra&&i.createElement("div",{className:`${_e}-extra`},e.extra),i.createElement("div",{className:`${_e}-button-list`},e.actions.map((o,r)=>i.createElement("div",{key:o.key,className:`${_e}-button-item-wrapper`},i.createElement("a",{className:K("adm-plain-anchor",`${_e}-button-item`,{[`${_e}-button-item-danger`]:o.danger,[`${_e}-button-item-disabled`]:o.disabled,[`${_e}-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:`${_e}-button-item-name`},o.text),o.description&&i.createElement("div",{className:`${_e}-button-item-description`},o.description))))),e.cancelText&&i.createElement("div",{className:`${_e}-cancel`,role:"option","aria-label":e.cancelText},i.createElement("div",{className:`${_e}-button-item-wrapper`},i.createElement("a",{className:K("adm-plain-anchor",`${_e}-button-item`),onClick:e.onClose},i.createElement("div",{className:`${_e}-button-item-name`},e.cancelText)))),e.safeArea&&i.createElement(xn,{position:"bottom"}))))};function C1(t){return Cn(i.createElement(oa,Object.assign({},t)))}const S1=we(oa,{show:C1}),ra="adm-auto-center",w1=t=>Y(t,i.createElement("div",{className:ra},i.createElement("div",{className:`${ra}-content`},t.children)));var Pr={},k1=xt&&xt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pr,"__esModule",{value:!0});var Fr=Pr.staged=void 0;const E1=k1(i);function sa(t){return typeof t=="function"?E1.default.createElement(I1,{stage:t}):t}function I1(t){const e=t.stage();return sa(e)}function $1(t){return function(n,o){const r=t(n,o);return sa(r)}}Fr=Pr.staged=$1;function Et(t){return typeof t=="number"?`${t}px`:t}const _1=t=>{const e=i.useRef(null),[n]=te.useInViewport(e);return i.useEffect(()=>{n&&t.onActive()},[n]),i.createElement("div",{ref:e})},Mr=te.createUpdateEffect(te.useIsomorphicLayoutEffect),P1=()=>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"})),F1=()=>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"})),lo="adm-image",M1={fit:"fill",placeholder:i.createElement("div",{className:`${lo}-tip`},i.createElement(P1,null)),fallback:i.createElement("div",{className:`${lo}-tip`},i.createElement(F1,null)),lazy:!1,draggable:!1},ia=Fr(t=>{const e=oe(M1,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,m]=i.useState(!e.lazy);c=d?e.src:void 0,u=d?e.srcSet:void 0,Mr(()=>{o(!1),s(!1)},[c]),i.useEffect(()=>{var p;!((p=l.current)===null||p===void 0)&&p.complete&&o(!0)},[]);function b(){if(r)return i.createElement(i.Fragment,null,e.fallback);const p=i.createElement("img",{ref:l,id:e.id,className:`${lo}-img`,src:c,alt:e.alt,onClick:e.onClick,onLoad:y=>{var g;o(!0),(g=e.onLoad)===null||g===void 0||g.call(e,y)},onError:y=>{var g;s(!0),(g=e.onError)===null||g===void 0||g.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,p)}const v={};return e.width&&(v["--width"]=Et(e.width),v.width=Et(e.width)),e.height&&(v["--height"]=Et(e.height),v.height=Et(e.height)),Y(e,i.createElement("div",{ref:a,className:lo,style:v,onClick:e.onContainerClick},e.lazy&&!d&&i.createElement(_1,{onActive:()=>{m(!0)}}),b()))}),Ut="adm-badge",aa=i.createElement(i.Fragment,null),la=we(t=>{const{content:e,color:n,children:o}=t,r=e===aa,s=K(Ut,{[`${Ut}-fixed`]:!!o,[`${Ut}-dot`]:r,[`${Ut}-bordered`]:t.bordered}),a=e||e===0?Y(t,i.createElement("div",{className:s,style:{"--color":n}},!r&&i.createElement("div",{className:`${Ut}-content`},e))):null;return o?i.createElement("div",{className:K(`${Ut}-wrapper`,t.wrapperClassName),style:t.wrapperStyle},o,a):a},{dot:aa}),N1="adm-dot-loading",T1={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},O1={color:"default"},D1=i.memo(t=>{var e;const n=oe(O1,t);return Y(n,i.createElement("div",{style:{color:(e=T1[n.color])!==null&&e!==void 0?e:n.color},className:K("adm-loading",N1)},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 A1(t){return!!t&&typeof t=="object"&&typeof t.then=="function"}function L1(){return Ot?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1}const je="adm-button",B1={color:"default",fill:"solid",block:!1,loading:!1,loadingIcon:i.createElement(D1,{color:"currentColor"}),type:"button",shape:"default",size:"middle"},st=i.forwardRef((t,e)=>{const n=oe(B1,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=>yt(void 0,void 0,void 0,function*(){if(!n.onClick)return;const d=n.onClick(u);if(A1(d))try{r(!0),yield d,r(!1)}catch(m){throw r(!1),m}});return Y(n,i.createElement("button",{ref:s,type:n.type,onClick:c,className:K(je,{[`${je}-${n.color}`]:n.color,[`${je}-block`]:n.block,[`${je}-disabled`]:l,[`${je}-fill-outline`]:n.fill==="outline",[`${je}-fill-none`]:n.fill==="none",[`${je}-mini`]:n.size==="mini",[`${je}-small`]:n.size==="small",[`${je}-large`]:n.size==="large",[`${je}-loading`]:a},`${je}-shape-${n.shape}`),disabled:l,onMouseDown:n.onMouseDown,onMouseUp:n.onMouseUp,onTouchStart:n.onTouchStart,onTouchEnd:n.onTouchEnd},a?i.createElement("div",{className:`${je}-loading-wrapper`},n.loadingIcon,n.loadingText):i.createElement("span",null,n.children)))});var ca={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(xt,function(){var n=1e3,o=6e4,r=36e5,s="millisecond",a="second",l="minute",c="hour",u="day",d="week",m="month",b="quarter",v="year",p="date",y="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var F=["th","st","nd","rd"],E=P%100;return"["+P+(F[(E-20)%10]||F[E]||F[0])+"]"}},C=function(P,F,E){var D=String(P);return!D||D.length>=F?P:""+Array(F+1-D.length).join(E)+P},w={s:C,z:function(P){var F=-P.utcOffset(),E=Math.abs(F),D=Math.floor(E/60),O=E%60;return(F<=0?"+":"-")+C(D,2,"0")+":"+C(O,2,"0")},m:function P(F,E){if(F.date()<E.date())return-P(E,F);var D=12*(E.year()-F.year())+(E.month()-F.month()),O=F.clone().add(D,m),V=E-O<0,j=F.clone().add(D+(V?-1:1),m);return+(-(D+(E-O)/(V?O-j:j-O))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:m,y:v,w:d,d:u,D:p,h:c,m:l,s:a,ms:s,Q:b}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},k="en",I={};I[k]=S;var _="$isDayjsObject",T=function(P){return P instanceof W||!(!P||!P[_])},L=function P(F,E,D){var O;if(!F)return k;if(typeof F=="string"){var V=F.toLowerCase();I[V]&&(O=V),E&&(I[V]=E,O=V);var j=F.split("-");if(!O&&j.length>1)return P(j[0])}else{var H=F.name;I[H]=F,O=H}return!D&&O&&(k=O),O||!D&&k},M=function(P,F){if(T(P))return P.clone();var E=typeof F=="object"?F:{};return E.date=P,E.args=arguments,new W(E)},N=w;N.l=L,N.i=T,N.w=function(P,F){return M(P,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var W=function(){function P(E){this.$L=L(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[_]=!0}var F=P.prototype;return F.parse=function(E){this.$d=function(D){var O=D.date,V=D.utc;if(O===null)return new Date(NaN);if(N.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var j=O.match(g);if(j){var H=j[2]-1||0,U=(j[7]||"0").substring(0,3);return V?new Date(Date.UTC(j[1],H,j[3]||1,j[4]||0,j[5]||0,j[6]||0,U)):new Date(j[1],H,j[3]||1,j[4]||0,j[5]||0,j[6]||0,U)}}return new Date(O)}(E),this.init()},F.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},F.$utils=function(){return N},F.isValid=function(){return this.$d.toString()!==y},F.isSame=function(E,D){var O=M(E);return this.startOf(D)<=O&&O<=this.endOf(D)},F.isAfter=function(E,D){return M(E)<this.startOf(D)},F.isBefore=function(E,D){return this.endOf(D)<M(E)},F.$g=function(E,D,O){return N.u(E)?this[D]:this.set(O,E)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(E,D){var O=this,V=!!N.u(D)||D,j=N.p(E),H=function(Z,G){var re=N.w(O.$u?Date.UTC(O.$y,G,Z):new Date(O.$y,G,Z),O);return V?re:re.endOf(u)},U=function(Z,G){return N.w(O.toDate()[Z].apply(O.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(G)),O)},Q=this.$W,ne=this.$M,ee=this.$D,Ne="set"+(this.$u?"UTC":"");switch(j){case v:return V?H(1,0):H(31,11);case m:return V?H(1,ne):H(0,ne+1);case d:var q=this.$locale().weekStart||0,de=(Q<q?Q+7:Q)-q;return H(V?ee-de:ee+(6-de),ne);case u:case p:return U(Ne+"Hours",0);case c:return U(Ne+"Minutes",1);case l:return U(Ne+"Seconds",2);case a:return U(Ne+"Milliseconds",3);default:return this.clone()}},F.endOf=function(E){return this.startOf(E,!1)},F.$set=function(E,D){var O,V=N.p(E),j="set"+(this.$u?"UTC":""),H=(O={},O[u]=j+"Date",O[p]=j+"Date",O[m]=j+"Month",O[v]=j+"FullYear",O[c]=j+"Hours",O[l]=j+"Minutes",O[a]=j+"Seconds",O[s]=j+"Milliseconds",O)[V],U=V===u?this.$D+(D-this.$W):D;if(V===m||V===v){var Q=this.clone().set(p,1);Q.$d[H](U),Q.init(),this.$d=Q.set(p,Math.min(this.$D,Q.daysInMonth())).$d}else H&&this.$d[H](U);return this.init(),this},F.set=function(E,D){return this.clone().$set(E,D)},F.get=function(E){return this[N.p(E)]()},F.add=function(E,D){var O,V=this;E=Number(E);var j=N.p(D),H=function(ne){var ee=M(V);return N.w(ee.date(ee.date()+Math.round(ne*E)),V)};if(j===m)return this.set(m,this.$M+E);if(j===v)return this.set(v,this.$y+E);if(j===u)return H(1);if(j===d)return H(7);var U=(O={},O[l]=o,O[c]=r,O[a]=n,O)[j]||1,Q=this.$d.getTime()+E*U;return N.w(Q,this)},F.subtract=function(E,D){return this.add(-1*E,D)},F.format=function(E){var D=this,O=this.$locale();if(!this.isValid())return O.invalidDate||y;var V=E||"YYYY-MM-DDTHH:mm:ssZ",j=N.z(this),H=this.$H,U=this.$m,Q=this.$M,ne=O.weekdays,ee=O.months,Ne=O.meridiem,q=function(G,re,ge,xe){return G&&(G[re]||G(D,V))||ge[re].slice(0,xe)},de=function(G){return N.s(H%12||12,G,"0")},Z=Ne||function(G,re,ge){var xe=G<12?"AM":"PM";return ge?xe.toLowerCase():xe};return V.replace(x,function(G,re){return re||function(ge){switch(ge){case"YY":return String(D.$y).slice(-2);case"YYYY":return N.s(D.$y,4,"0");case"M":return Q+1;case"MM":return N.s(Q+1,2,"0");case"MMM":return q(O.monthsShort,Q,ee,3);case"MMMM":return q(ee,Q);case"D":return D.$D;case"DD":return N.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return q(O.weekdaysMin,D.$W,ne,2);case"ddd":return q(O.weekdaysShort,D.$W,ne,3);case"dddd":return ne[D.$W];case"H":return String(H);case"HH":return N.s(H,2,"0");case"h":return de(1);case"hh":return de(2);case"a":return Z(H,U,!0);case"A":return Z(H,U,!1);case"m":return String(U);case"mm":return N.s(U,2,"0");case"s":return String(D.$s);case"ss":return N.s(D.$s,2,"0");case"SSS":return N.s(D.$ms,3,"0");case"Z":return j}return null}(G)||j.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(E,D,O){var V,j=this,H=N.p(D),U=M(E),Q=(U.utcOffset()-this.utcOffset())*o,ne=this-U,ee=function(){return N.m(j,U)};switch(H){case v:V=ee()/12;break;case m:V=ee();break;case b:V=ee()/3;break;case d:V=(ne-Q)/6048e5;break;case u:V=(ne-Q)/864e5;break;case c:V=ne/r;break;case l:V=ne/o;break;case a:V=ne/n;break;default:V=ne}return O?V:N.a(V)},F.daysInMonth=function(){return this.endOf(m).$D},F.$locale=function(){return I[this.$L]},F.locale=function(E,D){if(!E)return this.$L;var O=this.clone(),V=L(E,D,!0);return V&&(O.$L=V),O},F.clone=function(){return N.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},P}(),z=W.prototype;return M.prototype=z,[["$ms",s],["$s",a],["$m",l],["$H",c],["$W",u],["$M",m],["$y",v],["$D",p]].forEach(function(P){z[P[1]]=function(F){return this.$g(F,P[0],P[1])}}),M.extend=function(P,F){return P.$i||(P(F,W,M),P.$i=!0),M},M.locale=L,M.isDayjs=T,M.unix=function(P){return M(1e3*P)},M.en=I[k],M.Ls=I,M.p={},M})})(ca);var z1=ca.exports;const he=Ct(z1),ua=()=>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"})))))),da=()=>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 fa={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(xt,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,m,b,v,p=a(this),y=(d=this.isoWeekYear(),m=this.$u,b=(m?s.utc:s)().year(d).startOf("year"),v=4-b.isoWeekday(),b.isoWeekday()>4&&(v+=7),b.add(v,n));return p.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 m=this.$utils(),b=!!m.u(d)||d;return m.p(u)==="isoweek"?b?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)}}})})(fa);var V1=fa.exports;const Nr=Ct(V1);function Ie(t){const{value:e,defaultValue:n,onChange:o}=t,r=te.useUpdate(),s=i.useRef(e!==void 0?e:n);e!==void 0&&(s.current=e);const a=te.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 Z1(t,e){return t.replace(/\$\{\w+\}/g,n=>{const o=n.slice(2,-1);return e[o]})}function ma(t,e){return t===void 0||e===null?null:Array.isArray(e)?e:[e,e]}function Tr(t){return he().year(t.year).month(t.month-1).date(1)}he.extend(Nr);const me="adm-calendar",j1={weekStartsOn:"Sunday",defaultValue:null,allowClear:!0,prevMonthButton:i.createElement(ua,null),prevYearButton:i.createElement(da,null),nextMonthButton:i.createElement(ua,null),nextYearButton:i.createElement(da,null)},K1=i.forwardRef((t,e)=>{const n=he(),o=oe(j1,t),{locale:r}=Pe(),s=[...r.Calendar.markItems];if(o.weekStartsOn==="Sunday"){const C=s.pop();C&&s.unshift(C)}const[a,l]=Ie({value:o.value===void 0?void 0:ma(o.selectionMode,o.value),defaultValue:ma(o.selectionMode,o.defaultValue),onChange:C=>{var w,k;o.selectionMode==="single"?(w=o.onChange)===null||w===void 0||w.call(o,C?C[0]:null):o.selectionMode==="range"&&((k=o.onChange)===null||k===void 0||k.call(o,C))}}),[c,u]=i.useState(!1),[d,m]=i.useState(()=>he(a?a[0]:n).date(1));te.useUpdateEffect(()=>{var C;(C=o.onPageChange)===null||C===void 0||C.call(o,d.year(),d.month()+1)},[d]),i.useImperativeHandle(e,()=>({jumpTo:C=>{let w;typeof C=="function"?w=C({year:d.year(),month:d.month()+1}):w=C,m(Tr(w))},jumpToToday:()=>{m(he().date(1))}}));const b=(C,w,k)=>{const I=d[C](w,k);if(C==="subtract"&&o.minPage){const _=Tr(o.minPage);if(I.isBefore(_,k))return}if(C==="add"&&o.maxPage){const _=Tr(o.maxPage);if(I.isAfter(_,k))return}m(I)},v=i.createElement("div",{className:`${me}-header`},i.createElement("a",{className:`${me}-arrow-button ${me}-arrow-button-year`,onClick:()=>{b("subtract",1,"year")}},o.prevYearButton),i.createElement("a",{className:`${me}-arrow-button ${me}-arrow-button-month`,onClick:()=>{b("subtract",1,"month")}},o.prevMonthButton),i.createElement("div",{className:`${me}-title`},Z1(r.Calendar.yearAndMonth,{year:d.year().toString(),month:(d.month()+1).toString()})),i.createElement("a",{className:K(`${me}-arrow-button`,`${me}-arrow-button-right`,`${me}-arrow-button-right-month`),onClick:()=>{b("add",1,"month")}},o.nextMonthButton),i.createElement("a",{className:K(`${me}-arrow-button`,`${me}-arrow-button-right`,`${me}-arrow-button-right-year`),onClick:()=>{b("add",1,"year")}},o.nextYearButton)),p=i.useMemo(()=>o.max&&he(o.max),[o.max]),y=i.useMemo(()=>o.min&&he(o.min),[o.min]);function g(){var C;const w=[];let k=d.subtract(d.isoWeekday(),"day");for(o.weekStartsOn==="Monday"&&(k=k.add(1,"day"));w.length<6*7;){const I=k;let _=!1,T=!1,L=!1,M=!1,N=!1;if(a){const[P,F]=a;T=I.isSame(P,"day"),L=I.isSame(F,"day"),_=T||L||I.isAfter(P,"day")&&I.isBefore(F,"day"),_&&(M=(w.length%7===0||I.isSame(I.startOf("month"),"day"))&&!T,N=(w.length%7===6||I.isSame(I.endOf("month"),"day"))&&!L)}const W=I.month()===d.month(),z=o.shouldDisableDate?o.shouldDisableDate(I.toDate()):p&&I.isAfter(p,"day")||y&&I.isBefore(y,"day");w.push(i.createElement("div",{key:I.valueOf(),className:K(`${me}-cell`,(z||!W)&&`${me}-cell-disabled`,W&&{[`${me}-cell-today`]:I.isSame(n,"day"),[`${me}-cell-selected`]:_,[`${me}-cell-selected-begin`]:T,[`${me}-cell-selected-end`]:L,[`${me}-cell-selected-row-begin`]:M,[`${me}-cell-selected-row-end`]:N}),onClick:()=>{if(!o.selectionMode||z)return;const P=I.toDate();W||m(I.clone().date(1));function F(){if(!o.allowClear||!a)return!1;const[E,D]=a;return I.isSame(E,"date")&&I.isSame(D,"day")}if(o.selectionMode==="single"){if(o.allowClear&&F()){l(null);return}l([P,P])}else if(o.selectionMode==="range"){if(!a){l([P,P]),u(!0);return}if(F()){l(null),u(!1);return}if(c){const E=a[0];l(E>P?[P,E]:[E,P]),u(!1)}else l([P,P]),u(!0)}}},i.createElement("div",{className:`${me}-cell-top`},o.renderDate?o.renderDate(I.toDate()):I.date()),i.createElement("div",{className:`${me}-cell-bottom`},(C=o.renderLabel)===null||C===void 0?void 0:C.call(o,I.toDate())))),k=k.add(1,"day")}return w}const x=i.createElement("div",{className:`${me}-cells`},g()),S=i.createElement("div",{className:`${me}-mark`},s.map((C,w)=>i.createElement("div",{key:w,className:`${me}-mark-cell`},C)));return Y(o,i.createElement("div",{className:me},v,S,x))});var ha={exports:{}},ue={};/**
|
|
126
126
|
* @license React
|
|
127
127
|
* react-is.production.min.js
|
|
128
128
|
*
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
*
|
|
131
131
|
* This source code is licensed under the MIT license found in the
|
|
132
132
|
* LICENSE file in the root directory of this source tree.
|
|
133
|
-
*/var Vr=Symbol.for("react.element"),zr=Symbol.for("react.portal"),mo=Symbol.for("react.fragment"),ho=Symbol.for("react.strict_mode"),po=Symbol.for("react.profiler"),go=Symbol.for("react.provider"),vo=Symbol.for("react.context"),Q1=Symbol.for("react.server_context"),bo=Symbol.for("react.forward_ref"),yo=Symbol.for("react.suspense"),Co=Symbol.for("react.suspense_list"),xo=Symbol.for("react.memo"),So=Symbol.for("react.lazy"),J1=Symbol.for("react.offscreen"),xa;xa=Symbol.for("react.module.reference");function je(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Vr:switch(e=e.type,e){case mo:case po:case ho:case yo:case Co:return e;default:switch(e=e&&e.$$typeof,e){case Q1:case vo:case bo:case So:case xo:case go:return e;default:return t}}case zr:return t}}}ce.ContextConsumer=vo,ce.ContextProvider=go,ce.Element=Vr,ce.ForwardRef=bo,ce.Fragment=mo,ce.Lazy=So,ce.Memo=xo,ce.Portal=zr,ce.Profiler=po,ce.StrictMode=ho,ce.Suspense=yo,ce.SuspenseList=Co,ce.isAsyncMode=function(){return!1},ce.isConcurrentMode=function(){return!1},ce.isContextConsumer=function(e){return je(e)===vo},ce.isContextProvider=function(e){return je(e)===go},ce.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vr},ce.isForwardRef=function(e){return je(e)===bo},ce.isFragment=function(e){return je(e)===mo},ce.isLazy=function(e){return je(e)===So},ce.isMemo=function(e){return je(e)===xo},ce.isPortal=function(e){return je(e)===zr},ce.isProfiler=function(e){return je(e)===po},ce.isStrictMode=function(e){return je(e)===ho},ce.isSuspense=function(e){return je(e)===yo},ce.isSuspenseList=function(e){return je(e)===Co},ce.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===mo||e===po||e===ho||e===yo||e===Co||e===J1||typeof e=="object"&&e!==null&&(e.$$typeof===So||e.$$typeof===xo||e.$$typeof===go||e.$$typeof===vo||e.$$typeof===bo||e.$$typeof===xa||e.getModuleId!==void 0)},ce.typeOf=je,Ca.exports=ce;var R1=Ca.exports;const wo="adm-divider",e0={contentPosition:"center",direction:"horizontal"},Zr=e=>{const t=oe(e0,e);return Y(t,i.createElement("div",{className:K(wo,`${wo}-${t.direction}`,`${wo}-${t.contentPosition}`)},t.children&&i.createElement("div",{className:`${wo}-content`},t.children)))};function Sa(e,t){const n=te.useMemoizedFn(e);te.useIsomorphicLayoutEffect(()=>{const o=t.current;if(o)if(window.ResizeObserver){let r;const s=new ResizeObserver(()=>{r=window.requestAnimationFrame(()=>n(o))});return s.observe(o),()=>{window.cancelAnimationFrame(r),s.disconnect()}}else n(o)},[t])}function t0(e,t,n){if(e&&typeof MutationObserver!="undefined"){let o=new MutationObserver(()=>{n()});return o.observe(e,t),()=>{o&&(o.disconnect(),o=null)}}return()=>{}}function wa(e,t,n){const o=te.useMemoizedFn(e);i.useEffect(()=>t0(t.current,n,o),[t])}function ye(e,t,n){let o=e;return t!==void 0&&(o=Math.max(e,t)),n!==void 0&&(o=Math.min(o,n)),o}const n0=(e,t)=>{const[{scrollLeft:n},o]=Ve(()=>({scrollLeft:0,config:{tension:300,clamp:!0}}));function r(s=!1){const a=e.current;if(!a||t===void 0)return;const c=a.children.item(t).children.item(0),u=c.offsetLeft,d=c.offsetWidth,m=a.offsetWidth,g=a.scrollWidth,v=a.scrollLeft;if(g-m<=0)return;const y=ye(u-(m-d)/2,0,g-m);o.start({scrollLeft:y,from:{scrollLeft:v},immediate:s&&!n.isAnimating})}return te.useIsomorphicLayoutEffect(()=>{r(!0)},[]),Ar(()=>{r()},[t]),wa(()=>{r(!0)},e,{subtree:!0,childList:!0,characterData:!0}),{scrollLeft:n,animate:r}},ko="adm-scroll-mask",o0=e=>{const t=i.useRef(null),[{leftMaskOpacity:n,rightMaskOpacity:o},r]=Ve(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}})),{run:s}=te.useThrottleFn((a=!1)=>{if(!t.current)return;const c=e.scrollTrackRef.current;if(!c)return;const u=c.scrollLeft,d=u>0,m=u+c.offsetWidth<c.scrollWidth;r.start({leftMaskOpacity:d?1:0,rightMaskOpacity:m?1:0,immediate:a})},{wait:100,trailing:!0,leading:!0});return i.useEffect(()=>{s(!0)},[]),i.useEffect(()=>{const a=e.scrollTrackRef.current;if(a)return a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)},[]),i.createElement(i.Fragment,null,i.createElement(ke.div,{ref:t,className:K(ko,`${ko}-left`),style:{opacity:n}}),i.createElement(ke.div,{className:K(ko,`${ko}-right`),style:{opacity:o}}))};function jr(e,t){let n=0;function o(r){i.Children.forEach(r,s=>{R1.isFragment(s)?o(s.props.children):(t(s,n),n+=1)})}o(e)}function ka(e,t,n){return e*t*n/(t+n*e)}function Eo(e,t,n,o,r=.15){return r===0?ye(e,t,n):e<t?-ka(t-e,o,r)+t:e>n?+ka(e-n,o,r)+n:e}var r0=typeof Element!="undefined",s0=typeof Map=="function",i0=typeof Set=="function",a0=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Io(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,o,r;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(!Io(e[o],t[o]))return!1;return!0}var s;if(s0&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(o=s.next()).done;)if(!t.has(o.value[0]))return!1;for(s=e.entries();!(o=s.next()).done;)if(!Io(o.value[1],t.get(o.value[0])))return!1;return!0}if(i0&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(o=s.next()).done;)if(!t.has(o.value[0]))return!1;return!0}if(a0&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[o]))return!1;if(r0&&e instanceof Element)return!1;for(o=n;o--!==0;)if(!((r[o]==="_owner"||r[o]==="__v"||r[o]==="__o")&&e.$$typeof)&&!Io(e[r[o]],t[r[o]]))return!1;return!0}return e!==e&&t!==t}var l0=function(t,n){try{return Io(t,n)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}};const Kr=xt(l0);function Ea(e){if(e==null||e==="")return 0;const t=e.trim();return t.endsWith("px")?parseFloat(t):t.endsWith("rem")?parseFloat(t)*parseFloat(window.getComputedStyle(document.documentElement).fontSize):t.endsWith("vw")?parseFloat(t)*window.innerWidth/100:0}const Re="adm-picker-view",Ia=i.memo(e=>{const{value:t,column:n,renderLabel:o}=e;function r(C){e.onSelect(C,e.index)}const[{y:s},a]=Ve(()=>({from:{y:0},config:{tension:400,mass:.8}})),l=i.useRef(!1),c=i.useRef(null),u=i.useRef(null),d=i.useRef(34);te.useIsomorphicLayoutEffect(()=>{const C=u.current;C&&(d.current=Ea(window.getComputedStyle(C).getPropertyValue("height")))}),te.useIsomorphicLayoutEffect(()=>{if(l.current||t===null)return;const C=n.findIndex(x=>x.value===t);if(C<0)return;const w=C*-d.current;a.start({y:w,immediate:s.goal!==w})},[t,n]),te.useIsomorphicLayoutEffect(()=>{if(n.length===0)t!==null&&r(null);else if(!n.some(C=>C.value===t)){const C=n[0];r(C.value)}},[n,t]);function m(C){const w=C*-d.current;a.start({y:w});const x=n[C];x&&r(x.value)}const g=C=>{const{direction:[,w],distance:[,x],velocity:[,S],offset:[,k],last:I}=C;return{direction:w,distance:x,velocity:S,offset:k,last:I}},v=C=>{l.current=!0;const w=-((n.length-1)*d.current),x=0,{direction:S,last:k,velocity:I,offset:M}=g(C);if(k){l.current=!1;const O=M+I*S*50,L=ye(O,w,x),F=-Math.round(L/d.current);m(F)}else{const O=M;a.start({y:Eo(O,w,x,d.current*50,.2)})}},p=C=>{l.current=!0;const w=-((n.length-1)*d.current),x=0,{direction:S,last:k,velocity:I,distance:M}=g(C),O=-S,L=s.get();if(k){l.current=!1;const F=I*O*50,N=L+M*O+F,W=ye(N,w,x),V=-Math.round(W/d.current);m(V)}else{const F=L+M*O;a.start({y:Eo(F,w,x,d.current*50,.2)})}};io(C=>{C.event.stopPropagation(),v(C)},{axis:"y",from:()=>[0,s.get()],filterTaps:!0,pointer:{touch:!0},target:c}),p1(C=>{C.event.stopPropagation(),p(C)},{target:e.mouseWheel?c:void 0,axis:"y",from:()=>[0,s.get()],preventDefault:!0,eventOptions:On?{passive:!1}:void 0});let y=null;function b(){if(y===null)return null;const C=n[y],w=y-1,x=y+1,S=n[w],k=n[x];return i.createElement("div",{className:`${Re}-column-accessible`},i.createElement("div",{className:`${Re}-column-accessible-current`,role:"button","aria-label":C?`当前选择的是:${C.label}`:"当前未选择"},"-"),i.createElement("div",{className:`${Re}-column-accessible-button`,onClick:()=>{S&&m(w)},role:S?"button":"text","aria-label":S?`选择上一项:${S.label}`:"没有上一项"},"-"),i.createElement("div",{className:`${Re}-column-accessible-button`,onClick:()=>{k&&m(x)},role:k?"button":"text","aria-label":k?`选择下一项:${k.label}`:"没有下一项"},"-"))}return i.createElement("div",{className:`${Re}-column`},i.createElement("div",{className:`${Re}-item-height-measure`,ref:u}),i.createElement(ke.div,{ref:c,style:{translateY:s},className:`${Re}-column-wheel`,"aria-hidden":!0},n.map((C,w)=>{var x;const S=e.value===C.value;S&&(y=w);function k(){l.current=!1,m(w)}return i.createElement("div",{key:(x=C.key)!==null&&x!==void 0?x:C.value,"data-selected":S,className:K(`${Re}-column-item`,{[`${Re}-column-item-active`]:S}),onClick:k,"aria-hidden":!S,"aria-label":S?"active":""},i.createElement("div",{className:`${Re}-column-item-label`},o(C)))})),b())},(e,t)=>!(e.index!==t.index||e.value!==t.value||e.onSelect!==t.onSelect||e.renderLabel!==t.renderLabel||e.mouseWheel!==t.mouseWheel||!Kr(e.column,t.column)));Ia.displayName="Wheel";function $a(e){let t=null;return()=>(t===null&&(t=e()),t)}function _a(e,t){const n=$a(()=>(typeof e=="function"?e(t):e).map(a=>a.map(l=>typeof l=="string"?{label:l,value:l}:l))),o=$a(()=>t.map((s,a)=>{var l;const c=n()[a];return c&&(l=c.find(u=>u.value===s))!==null&&l!==void 0?l:null}));return{get columns(){return n()},get items(){return o()}}}function Pa(e,t){return i.useMemo(()=>_a(e,t),[e,t])}const Ma=e=>e.label;var Fa={exports:{}},Na={};/**
|
|
133
|
+
*/var Or=Symbol.for("react.element"),Dr=Symbol.for("react.portal"),co=Symbol.for("react.fragment"),uo=Symbol.for("react.strict_mode"),fo=Symbol.for("react.profiler"),mo=Symbol.for("react.provider"),ho=Symbol.for("react.context"),W1=Symbol.for("react.server_context"),po=Symbol.for("react.forward_ref"),go=Symbol.for("react.suspense"),vo=Symbol.for("react.suspense_list"),bo=Symbol.for("react.memo"),yo=Symbol.for("react.lazy"),H1=Symbol.for("react.offscreen"),pa;pa=Symbol.for("react.module.reference");function Ke(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case Or:switch(t=t.type,t){case co:case fo:case uo:case go:case vo:return t;default:switch(t=t&&t.$$typeof,t){case W1:case ho:case po:case yo:case bo:case mo:return t;default:return e}}case Dr:return e}}}ue.ContextConsumer=ho,ue.ContextProvider=mo,ue.Element=Or,ue.ForwardRef=po,ue.Fragment=co,ue.Lazy=yo,ue.Memo=bo,ue.Portal=Dr,ue.Profiler=fo,ue.StrictMode=uo,ue.Suspense=go,ue.SuspenseList=vo,ue.isAsyncMode=function(){return!1},ue.isConcurrentMode=function(){return!1},ue.isContextConsumer=function(t){return Ke(t)===ho},ue.isContextProvider=function(t){return Ke(t)===mo},ue.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===Or},ue.isForwardRef=function(t){return Ke(t)===po},ue.isFragment=function(t){return Ke(t)===co},ue.isLazy=function(t){return Ke(t)===yo},ue.isMemo=function(t){return Ke(t)===bo},ue.isPortal=function(t){return Ke(t)===Dr},ue.isProfiler=function(t){return Ke(t)===fo},ue.isStrictMode=function(t){return Ke(t)===uo},ue.isSuspense=function(t){return Ke(t)===go},ue.isSuspenseList=function(t){return Ke(t)===vo},ue.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===co||t===fo||t===uo||t===go||t===vo||t===H1||typeof t=="object"&&t!==null&&(t.$$typeof===yo||t.$$typeof===bo||t.$$typeof===mo||t.$$typeof===ho||t.$$typeof===po||t.$$typeof===pa||t.getModuleId!==void 0)},ue.typeOf=Ke,ha.exports=ue;var U1=ha.exports;const xo="adm-divider",Y1={contentPosition:"center",direction:"horizontal"},Ar=t=>{const e=oe(Y1,t);return Y(e,i.createElement("div",{className:K(xo,`${xo}-${e.direction}`,`${xo}-${e.contentPosition}`)},e.children&&i.createElement("div",{className:`${xo}-content`},e.children)))};function ga(t,e){const n=te.useMemoizedFn(t);te.useIsomorphicLayoutEffect(()=>{const o=e.current;if(o)if(window.ResizeObserver){let r;const s=new ResizeObserver(()=>{r=window.requestAnimationFrame(()=>n(o))});return s.observe(o),()=>{window.cancelAnimationFrame(r),s.disconnect()}}else n(o)},[e])}function G1(t,e,n){if(t&&typeof MutationObserver!="undefined"){let o=new MutationObserver(()=>{n()});return o.observe(t,e),()=>{o&&(o.disconnect(),o=null)}}return()=>{}}function va(t,e,n){const o=te.useMemoizedFn(t);i.useEffect(()=>G1(e.current,n,o),[e])}function ye(t,e,n){let o=t;return e!==void 0&&(o=Math.max(t,e)),n!==void 0&&(o=Math.min(o,n)),o}const q1=(t,e)=>{const[{scrollLeft:n},o]=Ve(()=>({scrollLeft:0,config:{tension:300,clamp:!0}}));function r(s=!1){const a=t.current;if(!a||e===void 0)return;const c=a.children.item(e).children.item(0),u=c.offsetLeft,d=c.offsetWidth,m=a.offsetWidth,b=a.scrollWidth,v=a.scrollLeft;if(b-m<=0)return;const y=ye(u-(m-d)/2,0,b-m);o.start({scrollLeft:y,from:{scrollLeft:v},immediate:s&&!n.isAnimating})}return te.useIsomorphicLayoutEffect(()=>{r(!0)},[]),Mr(()=>{r()},[e]),va(()=>{r(!0)},t,{subtree:!0,childList:!0,characterData:!0}),{scrollLeft:n,animate:r}},Co="adm-scroll-mask",X1=t=>{const e=i.useRef(null),[{leftMaskOpacity:n,rightMaskOpacity:o},r]=Ve(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}})),{run:s}=te.useThrottleFn((a=!1)=>{if(!e.current)return;const c=t.scrollTrackRef.current;if(!c)return;const u=c.scrollLeft,d=u>0,m=u+c.offsetWidth<c.scrollWidth;r.start({leftMaskOpacity:d?1:0,rightMaskOpacity:m?1:0,immediate:a})},{wait:100,trailing:!0,leading:!0});return i.useEffect(()=>{s(!0)},[]),i.useEffect(()=>{const a=t.scrollTrackRef.current;if(a)return a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)},[]),i.createElement(i.Fragment,null,i.createElement(ke.div,{ref:e,className:K(Co,`${Co}-left`),style:{opacity:n}}),i.createElement(ke.div,{className:K(Co,`${Co}-right`),style:{opacity:o}}))};function Lr(t,e){let n=0;function o(r){i.Children.forEach(r,s=>{U1.isFragment(s)?o(s.props.children):(e(s,n),n+=1)})}o(t)}function ba(t,e,n){return t*e*n/(e+n*t)}function So(t,e,n,o,r=.15){return r===0?ye(t,e,n):t<e?-ba(e-t,o,r)+e:t>n?+ba(t-n,o,r)+n:t}var J1=typeof Element!="undefined",Q1=typeof Map=="function",R1=typeof Set=="function",e0=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function wo(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,o,r;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(o=n;o--!==0;)if(!wo(t[o],e[o]))return!1;return!0}var s;if(Q1&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(s=t.entries();!(o=s.next()).done;)if(!e.has(o.value[0]))return!1;for(s=t.entries();!(o=s.next()).done;)if(!wo(o.value[1],e.get(o.value[0])))return!1;return!0}if(R1&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(s=t.entries();!(o=s.next()).done;)if(!e.has(o.value[0]))return!1;return!0}if(e0&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(o=n;o--!==0;)if(t[o]!==e[o])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,r[o]))return!1;if(J1&&t instanceof Element)return!1;for(o=n;o--!==0;)if(!((r[o]==="_owner"||r[o]==="__v"||r[o]==="__o")&&t.$$typeof)&&!wo(t[r[o]],e[r[o]]))return!1;return!0}return t!==t&&e!==e}var t0=function(e,n){try{return wo(e,n)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}};const Br=Ct(t0);function ya(t){if(t==null||t==="")return 0;const e=t.trim();return e.endsWith("px")?parseFloat(e):e.endsWith("rem")?parseFloat(e)*parseFloat(window.getComputedStyle(document.documentElement).fontSize):e.endsWith("vw")?parseFloat(e)*window.innerWidth/100:0}const Re="adm-picker-view",xa=i.memo(t=>{const{value:e,column:n,renderLabel:o}=t;function r(x){t.onSelect(x,t.index)}const[{y:s},a]=Ve(()=>({from:{y:0},config:{tension:400,mass:.8}})),l=i.useRef(!1),c=i.useRef(null),u=i.useRef(null),d=i.useRef(34);te.useIsomorphicLayoutEffect(()=>{const x=u.current;x&&(d.current=ya(window.getComputedStyle(x).getPropertyValue("height")))}),te.useIsomorphicLayoutEffect(()=>{if(l.current||e===null)return;const x=n.findIndex(C=>C.value===e);if(x<0)return;const S=x*-d.current;a.start({y:S,immediate:s.goal!==S})},[e,n]),te.useIsomorphicLayoutEffect(()=>{if(n.length===0)e!==null&&r(null);else if(!n.some(x=>x.value===e)){const x=n[0];r(x.value)}},[n,e]);function m(x){const S=x*-d.current;a.start({y:S});const C=n[x];C&&r(C.value)}const b=x=>{const{direction:[,S],distance:[,C],velocity:[,w],offset:[,k],last:I}=x;return{direction:S,distance:C,velocity:w,offset:k,last:I}},v=x=>{l.current=!0;const S=-((n.length-1)*d.current),C=0,{direction:w,last:k,velocity:I,offset:_}=b(x);if(k){l.current=!1;const T=_+I*w*50,L=ye(T,S,C),M=-Math.round(L/d.current);m(M)}else{const T=_;a.start({y:So(T,S,C,d.current*50,.2)})}},p=x=>{l.current=!0;const S=-((n.length-1)*d.current),C=0,{direction:w,last:k,velocity:I,distance:_}=b(x),T=-w,L=s.get();if(k){l.current=!1;const M=I*T*50,N=L+_*T+M,W=ye(N,S,C),z=-Math.round(W/d.current);m(z)}else{const M=L+_*T;a.start({y:So(M,S,C,d.current*50,.2)})}};oo(x=>{x.event.stopPropagation(),v(x)},{axis:"y",from:()=>[0,s.get()],filterTaps:!0,pointer:{touch:!0},target:c}),l1(x=>{x.event.stopPropagation(),p(x)},{target:t.mouseWheel?c:void 0,axis:"y",from:()=>[0,s.get()],preventDefault:!0,eventOptions:Tn?{passive:!1}:void 0});let y=null;function g(){if(y===null)return null;const x=n[y],S=y-1,C=y+1,w=n[S],k=n[C];return i.createElement("div",{className:`${Re}-column-accessible`},i.createElement("div",{className:`${Re}-column-accessible-current`,role:"button","aria-label":x?`当前选择的是:${x.label}`:"当前未选择"},"-"),i.createElement("div",{className:`${Re}-column-accessible-button`,onClick:()=>{w&&m(S)},role:w?"button":"text","aria-label":w?`选择上一项:${w.label}`:"没有上一项"},"-"),i.createElement("div",{className:`${Re}-column-accessible-button`,onClick:()=>{k&&m(C)},role:k?"button":"text","aria-label":k?`选择下一项:${k.label}`:"没有下一项"},"-"))}return i.createElement("div",{className:`${Re}-column`},i.createElement("div",{className:`${Re}-item-height-measure`,ref:u}),i.createElement(ke.div,{ref:c,style:{translateY:s},className:`${Re}-column-wheel`,"aria-hidden":!0},n.map((x,S)=>{var C;const w=t.value===x.value;w&&(y=S);function k(){l.current=!1,m(S)}return i.createElement("div",{key:(C=x.key)!==null&&C!==void 0?C:x.value,"data-selected":w,className:K(`${Re}-column-item`,{[`${Re}-column-item-active`]:w}),onClick:k,"aria-hidden":!w,"aria-label":w?"active":""},i.createElement("div",{className:`${Re}-column-item-label`},o(x)))})),g())},(t,e)=>!(t.index!==e.index||t.value!==e.value||t.onSelect!==e.onSelect||t.renderLabel!==e.renderLabel||t.mouseWheel!==e.mouseWheel||!Br(t.column,e.column)));xa.displayName="Wheel";function Ca(t){let e=null;return()=>(e===null&&(e=t()),e)}function Sa(t,e){const n=Ca(()=>(typeof t=="function"?t(e):t).map(a=>a.map(l=>typeof l=="string"?{label:l,value:l}:l))),o=Ca(()=>e.map((s,a)=>{var l;const c=n()[a];return c&&(l=c.find(u=>u.value===s))!==null&&l!==void 0?l:null}));return{get columns(){return n()},get items(){return o()}}}function wa(t,e){return i.useMemo(()=>Sa(t,e),[t,e])}const ka=t=>t.label;var Ea={exports:{}},Ia={};/**
|
|
134
134
|
* @license React
|
|
135
135
|
* use-sync-external-store-shim.production.min.js
|
|
136
136
|
*
|
|
@@ -138,25 +138,25 @@
|
|
|
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 Yt=i;function c0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var u0=typeof Object.is=="function"?Object.is:c0,d0=Yt.useState,f0=Yt.useEffect,m0=Yt.useLayoutEffect,h0=Yt.useDebugValue;function p0(e,t){var n=t(),o=d0({inst:{value:n,getSnapshot:t}}),r=o[0].inst,s=o[1];return m0(function(){r.value=n,r.getSnapshot=t,Wr(r)&&s({inst:r})},[e,n,t]),f0(function(){return Wr(r)&&s({inst:r}),e(function(){Wr(r)&&s({inst:r})})},[e]),h0(n),n}function Wr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!u0(e,n)}catch(o){return!0}}function g0(e,t){return t()}var v0=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?g0:p0;Na.useSyncExternalStore=Yt.useSyncExternalStore!==void 0?Yt.useSyncExternalStore:v0,Fa.exports=Na;var b0=Fa.exports;let y0=!1;const Oa=new Set;function Ta(){return y0}function C0(e){return Oa.add(e),()=>{Oa.delete(e)}}function x0(){return b0.useSyncExternalStore(C0,Ta,Ta)}const Hr="adm-spin-loading",S0={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},w0={color:"default"},k0=15*3.14159265358979*2,Ur=i.memo(e=>{var t;const n=oe(w0,e),o=x0(),{percent:r}=Ve({cancel:o,loop:{reverse:!0},from:{percent:80},to:{percent:30},config:{duration:1200}});return Y(n,i.createElement(ke.div,{className:Hr,style:{"--color":(t=S0[n.color])!==null&&t!==void 0?t:n.color,"--percent":r}},i.createElement("svg",{className:`${Hr}-svg`,viewBox:"0 0 32 32"},i.createElement(ke.circle,{className:`${Hr}-fill`,fill:"transparent",strokeWidth:"2",strokeDasharray:k0,strokeDashoffset:r,strokeLinecap:"square",r:15,cx:16,cy:16}))))}),Gt="adm-picker-view",E0={defaultValue:[],renderLabel:Ma,mouseWheel:!1,loadingContent:i.createElement("div",{className:`${Gt}-loading-content`},i.createElement(Ur,null))},Yr=i.memo(e=>{const t=oe(E0,e),[n,o]=i.useState(t.value===void 0?t.defaultValue:t.value);i.useEffect(()=>{t.value!==void 0&&t.value!==n&&o(t.value)},[t.value]),i.useEffect(()=>{if(t.value===n)return;const l=window.setTimeout(()=>{t.value!==void 0&&t.value!==n&&o(t.value)},1e3);return()=>{window.clearTimeout(l)}},[t.value,n]);const r=Pa(t.columns,n),s=r.columns;te.useDebounceEffect(()=>{var l;t.value!==n&&((l=t.onChange)===null||l===void 0||l.call(t,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 Y(t,i.createElement("div",{className:`${Gt}`},t.loading?t.loadingContent:i.createElement(i.Fragment,null,s.map((l,c)=>i.createElement(Ia,{key:c,index:c,column:l,value:n[c],onSelect:a,renderLabel:t.renderLabel,mouseWheel:t.mouseWheel})),i.createElement("div",{className:`${Gt}-mask`},i.createElement("div",{className:`${Gt}-mask-top`}),i.createElement("div",{className:`${Gt}-mask-middle`}),i.createElement("div",{className:`${Gt}-mask-bottom`})))))});Yr.displayName="PickerView";const pt="adm-picker",I0={defaultValue:[],closeOnMaskClick:!0,renderLabel:Ma,destroyOnClose:!1,forceRender:!1},Gr=i.memo(i.forwardRef((e,t)=>{var n;const{locale:o}=Pe(),r=oe(I0,{confirmText:o.common.confirm,cancelText:o.common.cancel},e),[s,a]=Ie({value:r.visible,defaultValue:!1,onChange:b=>{var C;b===!1&&((C=r.onClose)===null||C===void 0||C.call(r))}}),l={toggle:()=>{a(b=>!b)},open:()=>{a(!0)},close:()=>{a(!1)}};i.useImperativeHandle(t,()=>l);const[c,u]=Ie(Object.assign(Object.assign({},r),{onChange:b=>{var C;const w=_a(r.columns,b);(C=r.onConfirm)===null||C===void 0||C.call(r,b,w)}})),d=Pa(r.columns,c),[m,g]=i.useState(c);i.useEffect(()=>{m!==c&&g(c)},[s]),i.useEffect(()=>{s||g(c)},[c]);const v=te.useMemoizedFn((b,C)=>{var w;g(b),s&&((w=r.onSelect)===null||w===void 0||w.call(r,b,C))}),p=Y(r,i.createElement("div",{className:pt},i.createElement("div",{className:`${pt}-header`},i.createElement("a",{role:"button",className:`${pt}-header-button`,onClick:()=>{var b;(b=r.onCancel)===null||b===void 0||b.call(r),a(!1)}},r.cancelText),i.createElement("div",{className:`${pt}-header-title`},r.title),i.createElement("a",{role:"button",className:K(`${pt}-header-button`,r.loading&&`${pt}-header-button-disabled`),onClick:()=>{r.loading||(u(m,!0),a(!1))},"aria-disabled":r.loading},r.confirmText)),i.createElement("div",{className:`${pt}-body`},i.createElement(Yr,{loading:r.loading,loadingContent:r.loadingContent,columns:r.columns,renderLabel:r.renderLabel,value:m,mouseWheel:r.mouseWheel,onChange:v})))),y=i.createElement(Ht,{style:r.popupStyle,className:K(`${pt}-popup`,r.popupClassName),visible:s,position:"bottom",onMaskClick:()=>{var b;r.closeOnMaskClick&&((b=r.onCancel)===null||b===void 0||b.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},p,i.createElement(Cn,{position:"bottom"}));return i.createElement(i.Fragment,null,y,(n=r.children)===null||n===void 0?void 0:n.call(r,d.items,l))}));Gr.displayName="Picker";function $0(e){return new Promise(t=>{const n=()=>{const[r,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Gr,Object.assign({},e,{visible:r,onConfirm:(a,l)=>{var c;(c=e.onConfirm)===null||c===void 0||c.call(e,a,l),t(a)},onClose:()=>{var a;(a=e.onClose)===null||a===void 0||a.call(e),s(!1),t(null)},afterClose:()=>{var a;(a=e.afterClose)===null||a===void 0||a.call(e),o()}}))},o=Or(i.createElement(n,null))})}const Da=we(Gr,{prompt:$0}),Fe="adm-tabs",_0=()=>null,P0={activeLineMode:"auto",stretch:!0,direction:"ltr"},$o=we(e=>{var t;const n=oe(P0,e),o=i.useRef(null),r=i.useRef(null),s={};let a=null;const l=[],c=n.direction==="rtl";jr(n.children,(k,I)=>{if(!i.isValidElement(k))return;const M=k.key;if(typeof M!="string")return;I===0&&(a=M);const O=l.push(k);s[M]=O-1});const[u,d]=Ie({value:n.activeKey,defaultValue:(t=n.defaultActiveKey)!==null&&t!==void 0?t:a,onChange:k=>{var I;k!==null&&((I=n.onChange)===null||I===void 0||I.call(n,k))}}),[{x:m,width:g},v]=Ve(()=>({x:0,width:0,config:{tension:300,clamp:!0}})),[{scrollLeft:p},y]=Ve(()=>({scrollLeft:0,config:{tension:300,clamp:!0}})),[{leftMaskOpacity:b,rightMaskOpacity:C},w]=Ve(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}}));function x(k=!1,I=!1){const M=o.current;if(!M)return;const O=s[u];if(O===void 0){v.start({x:0,width:0,immediate:!0});return}const L=r.current;if(!L)return;const F=M.children.item(O+1),N=F.children.item(0),W=N.offsetLeft,V=N.offsetWidth,_=F.offsetLeft,P=F.offsetWidth,E=M.offsetWidth,D=M.scrollWidth,T=M.scrollLeft,z=L.offsetWidth;let j=0,H=0;if(n.activeLineMode==="auto"?(j=W,H=V):n.activeLineMode==="full"?(j=_,H=P):j=W+(V-z)/2,c){const ne=["auto","full"].includes(n.activeLineMode)?H:z;j=-(E-j-ne)}v.start({x:j,width:H,immediate:k});const U=D-E;if(U<=0)return;let J=0;c?J=-ye(E/2-W+V/2-z,0,U):J=ye(W-(E-V)/2,0,U),(!I||n.autoScroll!==!1)&&y.start({scrollLeft:J,from:{scrollLeft:T},immediate:k})}te.useIsomorphicLayoutEffect(()=>{x(!m.isAnimating)},[]),Ar(()=>{x()},[u,c,n.activeLineMode]),Sa(()=>{x(!m.isAnimating)},o),wa(()=>{x(!m.isAnimating,!0)},o,{subtree:!0,childList:!0,characterData:!0});const{run:S}=te.useThrottleFn((k=!1)=>{const I=o.current;if(!I)return;const M=I.scrollLeft;let O=!1,L=!1;c?(O=Math.round(-M)+I.offsetWidth<I.scrollWidth,L=M<0):(O=M>0,L=M+I.offsetWidth<I.scrollWidth),w.start({leftMaskOpacity:O?1:0,rightMaskOpacity:L?1:0,immediate:k})},{wait:100,trailing:!0,leading:!0});return te.useIsomorphicLayoutEffect(()=>{S(!0)},[]),Y(n,i.createElement("div",{className:Fe,style:{direction:n.direction}},i.createElement("div",{className:`${Fe}-header`},i.createElement(ke.div,{className:K(`${Fe}-header-mask`,`${Fe}-header-mask-left`),style:{opacity:b}}),i.createElement(ke.div,{className:K(`${Fe}-header-mask`,`${Fe}-header-mask-right`),style:{opacity:C}}),i.createElement(ke.div,{className:`${Fe}-tab-list`,ref:o,scrollLeft:p,onScroll:S,role:"tablist"},i.createElement(ke.div,{ref:r,className:`${Fe}-tab-line`,style:{width:n.activeLineMode==="fixed"?"var(--fixed-active-line-width, 30px)":g,x:m}}),l.map(k=>Y(k.props,i.createElement("div",{key:k.key,className:K(`${Fe}-tab-wrapper`,{[`${Fe}-tab-wrapper-stretch`]:n.stretch})},i.createElement("div",{onClick:()=>{const{key:I}=k;k.props.disabled||I!=null&&d(I.toString())},className:K(`${Fe}-tab`,{[`${Fe}-tab-active`]:k.key===u,[`${Fe}-tab-disabled`]:k.props.disabled}),role:"tab","aria-selected":k.key===u},k.props.title)))))),l.map(k=>{if(k.props.children===void 0)return null;const I=k.key===u;return i.createElement(eo,{key:k.key,active:I,forceRender:k.props.forceRender,destroyOnClose:k.props.destroyOnClose},i.createElement("div",{className:`${Fe}-content`,style:{display:I?"block":"none"}},k.props.children))})))},{Tab:_0}),Sn="adm-list",M0={mode:"default"},F0=i.forwardRef((e,t)=>{const n=oe(M0,e),o=i.useRef(null);return i.useImperativeHandle(t,()=>({get nativeElement(){return o.current}})),Y(n,i.createElement("div",{className:K(Sn,`${Sn}-${n.mode}`),ref:o},n.header&&i.createElement("div",{className:`${Sn}-header`},n.header),i.createElement("div",{className:`${Sn}-body`},i.createElement("div",{className:`${Sn}-body-inner`},n.children))))});function _o(e){return e!=null&&e!==!1}const it="adm-list-item",qt=we(F0,{Item:e=>{var t,n;const{arrow:o,arrowIcon:r}=e,{list:s={}}=Pe(),a=(t=e.clickable)!==null&&t!==void 0?t:!!e.onClick,l=(n=o!=null?o:r)!==null&&n!==void 0?n:a,c=Uo(s.arrowIcon,o!==!0?o:null,r!==!0?r:null),u=i.createElement("div",{className:`${it}-content`},_o(e.prefix)&&i.createElement("div",{className:`${it}-content-prefix`},e.prefix),i.createElement("div",{className:`${it}-content-main`},_o(e.title)&&i.createElement("div",{className:`${it}-title`},e.title),e.children,_o(e.description)&&i.createElement("div",{className:`${it}-description`},e.description)),_o(e.extra)&&i.createElement("div",{className:`${it}-content-extra`},e.extra),l&&i.createElement("div",{className:`${it}-content-arrow`},c||i.createElement(md,null)));return Y(e,i.createElement(a?"a":"div",{className:K(`${it}`,a?["adm-plain-anchor"]:[],e.disabled&&`${it}-disabled`),onClick:e.disabled?void 0:e.onClick},u))}}),Aa=i.createContext(null),N0="adm-check-list",O0={multiple:!1,defaultValue:[],activeIcon:i.createElement(Ai,null)},T0=e=>{const{checkList:t={}}=Pe(),n=oe(O0,t,e),[o,r]=Ie(n);function s(m){n.multiple?r([...o,m]):r([m])}function a(m){r(o.filter(g=>g!==m))}const{activeIcon:l,extra:c,disabled:u,readOnly:d}=n;return i.createElement(Aa.Provider,{value:{value:o,check:s,uncheck:a,activeIcon:l,extra:c,disabled:u,readOnly:d}},Y(n,i.createElement(qt,{mode:n.mode,className:N0},n.children)))},Po="adm-check-list-item",Mo=we(T0,{Item:e=>{const t=i.useContext(Aa);if(t===null)return null;const n=t.value.includes(e.value),o=e.readOnly||t.readOnly,r=n?t.activeIcon:null,s=t.extra?t.extra(n):r,a=i.createElement("div",{className:`${Po}-extra`},s);return Y(e,i.createElement(qt.Item,{title:e.title,className:K(Po,o&&`${Po}-readonly`,n&&`${Po}-active`),description:e.description,prefix:e.prefix,onClick:l=>{var c;o||(n?t.uncheck(e.value):t.check(e.value),(c=e.onClick)===null||c===void 0||c.call(e,l))},arrow:!1,clickable:!o,extra:a,disabled:e.disabled||t.disabled},e.children))}});function D0(e){var t=e+"",n=t.indexOf("...");return n>=0&&(n<t.indexOf(")")||t.indexOf("arguments")>=0)}function La(e,t){t||(t={});var n=t.vargs||D0(e),o=[],r=new Map,s,a,l=function(v){return a=setTimeout(function(){if(s){r.delete(v);return}o.splice(v,1)},t.maxAge)},c=t.maxAge>0&&t.maxAge<1/0?l:0,u=t.equals?t.equals:0,d=t.maxArgs,m=t.serializer,g;return e.length===1&&!t.equals&&!n?(g=function(v){m&&(v=m(v));var p;return r.get(v)||(!c||c(v),r.set(v,p=e.call(this,v)),p)},s=1):u?g=function(){for(var v=d||arguments.length,p=o.length,y=-1;++y<p;)if(o[y].length===v){for(var b=-1;++b<v&&u(arguments[b],o[y][b]););if(b===v)return o[y].val}return o[y]=arguments,!c||c(y),arguments.val=e.apply(this,o[y])}:g=function(){for(var v=d||arguments.length,p=o.length,y=-1;++y<p;)if(o[y].length===v){for(var b=-1;++b<v&&arguments[b]===o[y][b];);if(b===v)return o[y].val}return o[y]=arguments,!c||c(y),arguments.val=e.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(v=>v.val)},g}function A0(e,t){const{valueName:n,childrenName:o}=t,r=i.useMemo(()=>La(l=>{const c=[];let u=e;for(const d of l){const m=u.find(g=>g[n]===d);if(!m||(c.push(m),!m[o]))break;u=m[o]}return c},{equals:Kr}),[e]),s=i.useMemo(()=>La(l=>l.reduce((u,d)=>{var m;return((m=u.find(g=>g[n]===d))===null||m===void 0?void 0:m[o])||[]},e).length===0,{equals:Kr}),[e]);function a(l){return{get items(){return r(l)},get isLeaf(){return s(l)}}}return a}const Ba=[];function L0(e,t){const n=[];for(let o=e;o<=t;o++)n.push(o);return n}const wn="adm-skeleton",qr=e=>Y(e,i.createElement("div",{className:K(wn,{[`${wn}-animated`]:e.animated})})),B0=e=>Y(e,i.createElement(qr,{animated:e.animated,className:`${wn}-title`})),V0={lineCount:3},Fo=we(qr,{Title:B0,Paragraph:e=>{const t=oe(V0,e),n=L0(1,t.lineCount),o=i.createElement("div",{className:`${wn}-paragraph`},n.map(r=>i.createElement(qr,{key:r,animated:t.animated,className:`${wn}-paragraph-line`})));return Y(t,o)}}),z0=(e={})=>i.useMemo(()=>{const{label:n="label",value:o="value",disabled:r="disabled",children:s="children"}=e;return[n,o,s,r]},[JSON.stringify(e)]),Ye="adm-cascader-view",Z0={defaultValue:[]},j0=we(e=>{const t=oe(Z0,e),{locale:n}=Pe(),[o,r,s,a]=z0(t.fieldNames),l=A0(t.options,{valueName:r,childrenName:s}),[c,u]=Ie(Object.assign(Object.assign({},t),{onChange:b=>{var C;(C=t.onChange)===null||C===void 0||C.call(t,b,l(b))}})),[d,m]=i.useState(0),g=i.useMemo(()=>{const b=[];let C=t.options,w=!1;for(const x of c){const S=C.find(k=>k[r]===x);if(b.push({selected:S,options:C}),!S||!S[s]){w=!0;break}C=S[s]}return w||b.push({selected:void 0,options:C}),b},[c,t.options]);te.useUpdateEffect(()=>{var b;(b=t.onTabsChange)===null||b===void 0||b.call(t,d)},[d]),i.useEffect(()=>{m(g.length-1)},[c]),i.useEffect(()=>{const b=g.length-1;d>b&&m(b)},[d,g]);const v=(b,C)=>{const w=c.slice(0,C);b!==void 0&&(w[C]=b),u(w)},p=b=>t.loading||b===Ba,y=t.placeholder||n.Cascader.placeholder;return Y(t,i.createElement("div",{className:Ye},i.createElement($o,{activeKey:d.toString(),onChange:b=>{const C=parseInt(b);m(C)},stretch:!1,className:`${Ye}-tabs`},g.map((b,C)=>{const w=b.selected;return i.createElement($o.Tab,{key:C.toString(),title:i.createElement("div",{className:`${Ye}-header-title`},w?w[o]:typeof y=="function"?y(C):y),forceRender:!0},i.createElement("div",{className:`${Ye}-content`},p(b.options)?i.createElement("div",{className:`${Ye}-skeleton`},i.createElement(Fo,{className:`${Ye}-skeleton-line-1`,animated:!0}),i.createElement(Fo,{className:`${Ye}-skeleton-line-2`,animated:!0}),i.createElement(Fo,{className:`${Ye}-skeleton-line-3`,animated:!0}),i.createElement(Fo,{className:`${Ye}-skeleton-line-4`,animated:!0})):i.createElement(Mo,{value:[c[C]],onChange:x=>v(x[0],C),activeIcon:t.activeIcon},b.options.map(x=>{const S=c[C]===x[r];return i.createElement(Mo.Item,{value:x[r],key:x[r],disabled:x[a],className:K(`${Ye}-item`,{[`${Ye}-item-active`]:S})},x[o])}))))}))))},{optionSkeleton:Ba}),Va=i.createContext(null),K0={disabled:!1,defaultValue:[]},W0=e=>{const t=oe(K0,e),[n,o]=Ie(t);return i.createElement(Va.Provider,{value:{value:n,disabled:t.disabled,check:r=>{o([...n,r])},uncheck:r=>{o(n.filter(s=>s!==r))}}},t.children)},za=i.memo(e=>Y(e,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"})))),H0=i.memo(e=>Y(e,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"})))),Za=e=>{const t=i.useRef(null),n=te.useMemoizedFn(o=>{o.stopPropagation(),o.stopImmediatePropagation();const r=o.target.checked;r!==e.checked&&e.onChange(r)});return i.useEffect(()=>{if(e.disabled||!t.current)return;const o=t.current;return o.addEventListener("click",n),()=>{o.removeEventListener("click",n)}},[e.disabled,e.onChange]),i.createElement("input",{ref:t,type:e.type,checked:e.checked,onChange:()=>{},disabled:e.disabled,id:e.id})},gt="adm-checkbox",U0={defaultChecked:!1,indeterminate:!1},Y0=i.forwardRef((e,t)=>{const n=i.useContext(Va),o=oe(U0,e);let[r,s]=Ie({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(t,()=>({check:()=>{s(!0)},uncheck:()=>{s(!1)},toggle:()=>{s(!r)}}));const c=()=>o.icon?i.createElement("div",{className:`${gt}-custom-icon`},o.icon(r,o.indeterminate)):i.createElement("div",{className:`${gt}-icon`},o.indeterminate?i.createElement(H0,null):r&&i.createElement(za,null));return Y(o,i.createElement("label",{onClick:o.onClick,className:K(gt,{[`${gt}-checked`]:r&&!o.indeterminate,[`${gt}-indeterminate`]:o.indeterminate,[`${gt}-disabled`]:a,[`${gt}-block`]:o.block})},i.createElement(Za,{type:"checkbox",checked:r,onChange:s,disabled:a,id:o.id}),c(),o.children&&i.createElement("div",{className:`${gt}-content`},o.children)))}),Xr=we(Y0,{Group:W0});var ja={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Ct,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}}})})(ja);var G0=ja.exports;const Ka=xt(G0);var Wa={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Ct,function(){return function(n,o){o.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}})})(Wa);var q0=Wa.exports;const Ha=xt(q0),kn="TILL_NOW";he.extend(Lr),he.extend(Ka),he.extend(Ha);const vt={year:0,month:1,day:2,hour:3,minute:4,second:5};function X0(e,t,n,o,r,s,a){const l=[],c=t.getFullYear(),u=t.getMonth()+1,d=t.getDate(),m=t.getHours(),g=t.getMinutes(),v=t.getSeconds(),p=n.getFullYear(),y=n.getMonth()+1,b=n.getDate(),C=n.getHours(),w=n.getMinutes(),x=n.getSeconds(),S=vt[o],k=parseInt(e[0]),I=he(Qr([e[0],e[1],"1"])),M=parseInt(e[1]),O=parseInt(e[2]),L=parseInt(e[3]),F=parseInt(e[4]),N=k===c,W=k===p,V=N&&M===u,_=W&&M===y,P=V&&O===d,E=_&&O===b,D=P&&L===m,T=E&&L===C,z=D&&F===g,j=T&&F===w,H=(U,J,ne)=>{let ee=[];for(let ue=U;ue<=J;ue++)ee.push(ue);const Ne=e.slice(0,vt[ne]),q=s==null?void 0:s[ne];return q&&typeof q=="function"&&(ee=ee.filter(ue=>q(ue,{get date(){const Z=[...Ne,ue.toString()];return Qr(Z)}}))),ee};if(S>=vt.year){const ne=H(c,p,"year");l.push(ne.map(ee=>({label:r("year",ee),value:ee.toString()})))}if(S>=vt.month){const ne=H(N?u:1,W?y:12,"month");l.push(ne.map(ee=>({label:r("month",ee),value:ee.toString()})))}if(S>=vt.day){const U=V?d:1,J=_?b:I.daysInMonth(),ne=H(U,J,"day");l.push(ne.map(ee=>({label:r("day",ee),value:ee.toString()})))}if(S>=vt.hour){const ne=H(P?m:0,E?C:23,"hour");l.push(ne.map(ee=>({label:r("hour",ee),value:ee.toString()})))}if(S>=vt.minute){const ne=H(D?g:0,T?w:59,"minute");l.push(ne.map(ee=>({label:r("minute",ee),value:ee.toString()})))}if(S>=vt.second){const ne=H(z?v:0,j?x:59,"second");l.push(ne.map(ee=>({label:r("second",ee),value:ee.toString()})))}if(a&&(l[0].push({label:r("now",null),value:kn}),kn===(e==null?void 0:e[0])))for(let U=1;U<l.length;U+=1)l[U]=[];return l}function Q0(e){return e?[e.getFullYear().toString(),(e.getMonth()+1).toString(),e.getDate().toString(),e.getHours().toString(),e.getMinutes().toString(),e.getSeconds().toString()]:[]}function Qr(e){var t,n,o,r,s,a;const l=(t=e[0])!==null&&t!==void 0?t:"1900",c=(n=e[1])!==null&&n!==void 0?n:"1",u=(o=e[2])!==null&&o!==void 0?o:"1",d=(r=e[3])!==null&&r!==void 0?r:"0",m=(s=e[4])!==null&&s!==void 0?s:"0",g=(a=e[5])!==null&&a!==void 0?a:"0";return new Date(parseInt(l),parseInt(c)-1,parseInt(u),parseInt(d),parseInt(m),parseInt(g))}var Ua={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Ct,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 m=this.$utils(),g=!!m.u(d)||d;if(m.p(u)===o){var v=this.quarter()-1;return g?this.month(3*v).startOf(n).startOf("day"):this.month(3*v+2).endOf(n).endOf("day")}return c.bind(this)(u,d)}}})})(Ua);var J0=Ua.exports;const R0=xt(J0);he.extend(R0);const No={year:0,quarter:1};function ef(e,t,n,o,r,s){const a=[],l=t.getFullYear(),c=n.getFullYear(),u=No[o],d=parseInt(e[0]),m=d===l,g=d===c,v=he(t),p=he(n),y=v.quarter(),b=p.quarter(),C=(w,x,S)=>{let k=[];for(let O=w;O<=x;O++)k.push(O);const I=e.slice(0,No[S]),M=s==null?void 0:s[S];return M&&typeof M=="function"&&(k=k.filter(O=>M(O,{get date(){const L=[...I,O.toString()];return Ya(L)}}))),k};if(u>=No.year){const S=C(l,c,"year");a.push(S.map(k=>({label:r("year",k),value:k.toString()})))}if(u>=No.quarter){const S=C(m?y:1,g?b:4,"quarter");a.push(S.map(k=>({label:r("quarter",k),value:k.toString()})))}return a}function tf(e){if(!e)return[];const t=he(e);return[t.year().toString(),t.quarter().toString()]}function Ya(e){var t,n;const o=(t=e[0])!==null&&t!==void 0?t:"1900",r=(n=e[1])!==null&&n!==void 0?n:"1";return he().year(parseInt(o)).quarter(parseInt(r)).hour(0).minute(0).second(0).toDate()}he.extend(Lr),he.extend(Ka),he.extend(Ha);const En={year:0,week:1,"week-day":2};function nf(e,t,n,o,r,s){const a=[],l=t.getFullYear(),c=n.getFullYear(),u=En[o],d=parseInt(e[0]),m=d===l,g=d===c,v=he(t),p=he(n),y=v.isoWeek(),b=p.isoWeek(),C=v.isoWeekday(),w=p.isoWeekday(),x=parseInt(e[1]),S=m&&x===y,k=g&&x===b,I=he(`${d}-01-01`).isoWeeksInYear(),M=(O,L,F)=>{let N=[];for(let _=O;_<=L;_++)N.push(_);const W=e.slice(0,En[F]),V=s==null?void 0:s[F];return V&&typeof V=="function"&&(N=N.filter(_=>V(_,{get date(){const P=[...W,_.toString()];return Ga(P)}}))),N};if(u>=En.year){const F=M(l,c,"year");a.push(F.map(N=>({label:r("year",N),value:N.toString()})))}if(u>=En.week){const F=M(m?y:1,g?b:I,"week");a.push(F.map(N=>({label:r("week",N),value:N.toString()})))}if(u>=En["week-day"]){const F=M(S?C:1,k?w:7,"week-day");a.push(F.map(N=>({label:r("week-day",N),value:N.toString()})))}return a}function of(e){if(!e)return[];const t=he(e);return[t.isoWeekYear().toString(),t.isoWeek().toString(),t.isoWeekday().toString()]}function Ga(e){var t,n,o;const r=(t=e[0])!==null&&t!==void 0?t:"1900",s=(n=e[1])!==null&&n!==void 0?n:"1",a=(o=e[2])!==null&&o!==void 0?o:"1";return he().year(parseInt(r)).isoWeek(parseInt(s)).isoWeekday(parseInt(a)).hour(0).minute(0).second(0).toDate()}const rf={year:1,month:2,day:3,hour:4,minute:5,second:6},sf=(e,t)=>{if(t.includes("week"))return of(e);if(t.includes("quarter"))return tf(e);{const n=t;return Q0(e).slice(0,rf[n])}},qa=(e,t)=>{if((e==null?void 0:e[0])===kn){const n=new Date;return n.tillNow=!0,n}return t.includes("week")?Ga(e):t.includes("quarter")?Ya(e):Qr(e)},af=(e,t,n,o,r,s,a)=>o.startsWith("week")?nf(e,t,n,o,r,s):o.startsWith("quarter")?ef(e,t,n,o,r,s):X0(e,t,n,o,r,s,a);function lf(e){const{locale:t}=Pe();return i.useCallback((n,o)=>{if(e)return e(n,o);switch(n){case"minute":case"second":case"hour":return("0"+o.toString()).slice(-2);case"now":return t.DatePicker.tillNow;default:return o.toString()}},[e])}const Xa=new Date().getFullYear(),cf={min:new Date(new Date().setFullYear(Xa-10)),max:new Date(new Date().setFullYear(Xa+10)),precision:"day",defaultValue:null},Qa=i.forwardRef((e,t)=>{const n=oe(cf,e),{renderLabel:o}=n,[r,s]=Ie({value:n.value,defaultValue:n.defaultValue,onChange:g=>{var v;g!==null&&((v=n.onConfirm)===null||v===void 0||v.call(n,g))}}),a=i.useMemo(()=>new Date,[]),l=lf(o),c=i.useMemo(()=>{let g=r!=null?r:a;return g.tillNow?[kn]:(g=new Date(ye(g.getTime(),n.min.getTime(),n.max.getTime())),sf(g,n.precision))},[r,n.precision,n.min,n.max]),u=i.useCallback(g=>{const v=qa(g,n.precision);s(v,!0)},[s,n.precision]),d=te.useMemoizedFn(g=>{var v;const p=qa(g,n.precision);(v=n.onSelect)===null||v===void 0||v.call(n,p)}),m=i.useCallback(g=>af(g,n.min,n.max,n.precision,l,n.filter,n.tillNow),[n.min,n.max,n.precision,l,n.tillNow]);return Y(n,i.createElement(Da,{ref:t,columns:m,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,v)=>{var p;return(p=n.children)===null||p===void 0?void 0:p.call(n,r,v)}))});function uf(e){return new Promise(t=>{const n=()=>{const[r,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Qa,Object.assign({},e,{visible:r,onConfirm:a=>{var l;(l=e.onConfirm)===null||l===void 0||l.call(e,a),t(a)},onClose:()=>{var a;(a=e.onClose)===null||a===void 0||a.call(e),s(!1),t(null)},afterClose:()=>{var a;(a=e.afterClose)===null||a===void 0||a.call(e),o()}}))},o=Or(i.createElement(n,null))})}const df=we(Qa,{prompt:uf,DATE_NOW:kn});var Ja;(function(e){e[e.HIGH_SURROGATE_START=55296]="HIGH_SURROGATE_START",e[e.HIGH_SURROGATE_END=56319]="HIGH_SURROGATE_END",e[e.LOW_SURROGATE_START=56320]="LOW_SURROGATE_START",e[e.REGIONAL_INDICATOR_START=127462]="REGIONAL_INDICATOR_START",e[e.REGIONAL_INDICATOR_END=127487]="REGIONAL_INDICATOR_END",e[e.FITZPATRICK_MODIFIER_START=127995]="FITZPATRICK_MODIFIER_START",e[e.FITZPATRICK_MODIFIER_END=127999]="FITZPATRICK_MODIFIER_END",e[e.VARIATION_MODIFIER_START=65024]="VARIATION_MODIFIER_START",e[e.VARIATION_MODIFIER_END=65039]="VARIATION_MODIFIER_END",e[e.DIACRITICAL_MARKS_START=8400]="DIACRITICAL_MARKS_START",e[e.DIACRITICAL_MARKS_END=8447]="DIACRITICAL_MARKS_END",e[e.SUBDIVISION_INDICATOR_START=127988]="SUBDIVISION_INDICATOR_START",e[e.TAGS_START=917504]="TAGS_START",e[e.TAGS_END=917631]="TAGS_END",e[e.ZWJ=8205]="ZWJ"})(Ja||(Ja={}));const ff=Object.freeze([776,2359,2367,2984,3007,3021,3633,3635,3648,3657,4352,4449,4520]);var Ra;function Jr(e){if(typeof e!="string")throw new TypeError("string cannot be undefined or null");const t=[];let n=0,o=0;for(;n<e.length;)o+=mf(n+o,e),Cf(e[n+o])&&o++,vf(e[n+o])&&o++,bf(e[n+o])&&o++,xf(e[n+o])?o++:(t.push(e.substring(n,n+o)),n+=o,o=0);return t}function mf(e,t){const n=t[e];if(!hf(n)||e===t.length-1)return 1;const o=n+t[e+1];let r=t.substring(e+2,e+5);return el(o)&&el(r)?4:pf(o)&&yf(r)?t.slice(e).indexOf(String.fromCodePoint(917631))+2:gf(r)?4:2}function hf(e){return e&&It(e[0].charCodeAt(0),55296,56319)}function el(e){return It(Rr(e),127462,127487)}function pf(e){return It(Rr(e),127988,127988)}function gf(e){return It(Rr(e),127995,127999)}function vf(e){return typeof e=="string"&&It(e.charCodeAt(0),65024,65039)}function bf(e){return typeof e=="string"&&It(e.charCodeAt(0),8400,8447)}function yf(e){const t=e.codePointAt(0);return typeof e=="string"&&typeof t=="number"&&It(t,917504,917631)}function Cf(e){return typeof e=="string"&&ff.includes(e.charCodeAt(0))}function xf(e){return typeof e=="string"&&e.charCodeAt(0)===8205}function Rr(e){return(e.charCodeAt(0)-55296<<10)+(e.charCodeAt(1)-56320)+65536}function It(e,t,n){return e>=t&&e<=n}(function(e){e[e.unit_1=1]="unit_1",e[e.unit_2=2]="unit_2",e[e.unit_4=4]="unit_4"})(Ra||(Ra={}));const $t="adm-error-block",Sf={status:"default"};function wf(e){return n=>{var o;const r=oe(Sf,n),{locale:s}=Pe(),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:e[r.status],d=typeof u=="string"?i.createElement("img",{src:u,alt:"error block image"}):u;return Y(r,i.createElement("div",{className:K($t,{[`${$t}-full-page`]:r.fullPage})},i.createElement("div",{className:`${$t}-image`},d),i.createElement("div",{className:`${$t}-description`},![void 0,null].includes(c)&&i.createElement("div",{className:`${$t}-description-title`},c),![void 0,null].includes(l)&&i.createElement("div",{className:`${$t}-description-subtitle`},l)),r.children&&i.createElement("div",{className:`${$t}-content`},r.children)))}}const kf=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"}))),Ef=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)"})))),If=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"})))),$f=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})))),_f=wf({default:kf,disconnected:Ef,empty:If,busy:$f});let Xt=null,Qt=null;Tt&&(Xt=document.createElement("div"),Xt.className="adm-px-tester",Xt.style.setProperty("--size","10"),document.body.appendChild(Xt),Qt=document.createElement("div"),Qt.className="adm-px-tester",document.body.appendChild(Qt));function Pf(e){return Xt===null||Qt===null||Xt.getBoundingClientRect().height===10?e:(Qt.style.setProperty("--size",e.toString()),Qt.getBoundingClientRect().height)}const tl="adm-grid",et=we(e=>{const t={"--columns":e.columns.toString()},{gap:n}=e;return n!==void 0&&(Array.isArray(n)?(t["--gap-horizontal"]=Et(n[0]),t["--gap-vertical"]=Et(n[1])):t["--gap"]=Et(n)),Y(e,i.createElement("div",{className:tl,style:t},e.children))},{Item:e=>{const t=oe({span:1},e),n={"--item-span":t.span};return Y(t,i.createElement("div",{className:`${tl}-item`,style:n,onClick:t.onClick},t.children))}}),Mf=g1([ra,n1]),Oo=()=>[1,0,0,1,0,0],nl=e=>e[4],ol=e=>e[5],In=e=>e[0],$n=(e,t,n)=>rl([1,0,0,1,t,n],e),Ff=(e,t,n=t)=>rl([t,0,0,n,0,0],e),Nf=(e,[t,n])=>[e[0]*t+e[2]*n+e[4],e[1]*t+e[3]*n+e[5]],rl=(e,t)=>[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]],es="adm-image-viewer",sl=e=>{const{dragLockRef:t,maxZoom:n}=e,o=i.useRef([]),r=i.useRef(null),s=i.useRef(null),[{matrix:a},l]=Ve(()=>({matrix:Oo(),config:{tension:200}})),c=te.useSize(r),u=te.useSize(s),d=i.useRef(!1),m=p=>{if(!c||!u)return{x:{position:0,minX:0,maxX:0},y:{position:0,minY:0,maxY:0}};const y=-c.width/2,b=-c.height/2,C=-u.width/2,w=-u.height/2,x=In(p),S=x*u.width,k=x*u.height,I=y-(S-c.width),M=y,O=b-(k-c.height),L=b,[F,N]=Nf(p,[C,w]);return{x:{position:F,minX:I,maxX:M},y:{position:N,minY:O,maxY:L}}},g=(p,y,b,C=0)=>[p<=y-C,p>=b+C],v=(p,y,b=!1)=>{if(!c||!u)return p;const C=In(p),w=C*u.width,x=C*u.height,{x:{position:S,minX:k,maxX:I},y:{position:M,minY:O,maxY:L}}=m(p);if(y==="translate"){let F=S,N=M;return w>c.width?F=b?ye(S,k,I):Eo(S,k,I,C*50):F=-w/2,x>c.height?N=b?ye(M,O,L):Eo(M,O,L,C*50):N=-x/2,$n(p,F-S,N-M)}if(y==="scale"&&b){const[F,N]=[w>c.width?ye(S,k,I):-w/2,x>c.height?ye(M,O,L):-x/2];return $n(p,F-S,N-M)}return p};return Mf({onDrag:p=>{var y;if(p.first){const{x:{position:C,minX:w,maxX:x}}=m(a.get());o.current=g(C,w,x);return}if(p.pinching)return p.cancel();if(p.tap&&p.elapsedTime>0&&p.elapsedTime<1e3){(y=e.onTap)===null||y===void 0||y.call(e);return}const b=In(a.get());if(t&&(t.current=b!==1),!d.current&&b<=1)l.start({matrix:Oo()});else{const C=a.get(),w=[p.offset[0]-nl(C),p.offset[1]-ol(C)],x=$n(C,...p.last?[w[0]+p.velocity[0]*p.direction[0]*200,w[1]+p.velocity[1]*p.direction[1]*200]:w);l.start({matrix:v(x,"translate",p.last),immediate:!p.last});const{x:{position:S,minX:k,maxX:I}}=m(x);p.last&&o.current.some(M=>M)&&g(S,k,I).some(M=>M)&&(t&&(t.current=!1),l.start({matrix:Oo()}))}},onPinch:p=>{var y;d.current=!p.last;const[b]=p.offset;if(b<0)return;let C;n==="auto"?C=c&&u?Math.max(c.height/u.height,c.width/u.width):1:C=n;const w=p.last?ye(b,1,C):b;if((y=e.onZoomChange)===null||y===void 0||y.call(e,w),p.last&&w<=1)l.start({matrix:Oo()}),t&&(t.current=!1);else{if(!c)return;const x=a.get(),S=In(x),k=p.origin[0]-c.width/2,I=p.origin[1]-c.height/2;let M=$n(x,-k,-I);M=Ff(M,w/S),M=$n(M,k,I),l.start({matrix:v(M,"scale",p.last),immediate:!p.last}),t&&(t.current=!0)}}},{target:r,drag:{from:()=>[nl(a.get()),ol(a.get())],pointer:{touch:!0}},pinch:{from:()=>[In(a.get()),0],pointer:{touch:!0}}}),i.createElement("div",{className:`${es}-slide`},i.createElement("div",{className:`${es}-control`,ref:r},i.createElement(ke.div,{className:`${es}-image-wrapper`,style:{matrix:a}},i.createElement("img",{ref:s,src:e.image,draggable:!1,alt:e.image}))))},ts="adm-image-viewer",Of=i.forwardRef((e,t)=>{const n=window.innerWidth+Pf(16),[{x:o},r]=Ve(()=>({x:e.defaultIndex*n,config:{tension:250,clamp:!0}})),s=e.images.length;function a(u,d=!1){var m;const g=ye(u,0,s-1);(m=e.onIndexChange)===null||m===void 0||m.call(e,g),r.start({x:g*n,immediate:d})}i.useImperativeHandle(t,()=>({swipeTo:a}));const l=i.useRef(!1),c=io(u=>{if(l.current)return;const[d]=u.offset;if(u.last){const m=Math.floor(d/n),g=m+1,v=Math.min(u.velocity[0]*2e3,n)*u.direction[0];a(ye(Math.round((d+v)/n),m,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:`${ts}-slides`},c()),i.createElement(ke.div,{className:`${ts}-indicator`},o.to(u=>`${ye(Math.round(u/n),0,s-1)+1} / ${s}`)),i.createElement(ke.div,{className:`${ts}-slides-inner`,style:{x:o.to(u=>-u)}},e.images.map((u,d)=>i.createElement(sl,{key:d,image:u,onTap:e.onTap,maxZoom:e.maxZoom,onZoomChange:m=>{if(m!==1){const g=Math.round(o.get()/n);r.start({x:g*n})}},dragLockRef:l}))))}),To="adm-image-viewer",il={maxZoom:3,getContainer:null,visible:!1},al=e=>{var t,n,o;const r=oe(il,e),s=i.createElement(to,{visible:r.visible,disableBodyScroll:!1,opacity:"thick",afterClose:r.afterClose,destroyOnClose:!0,className:(t=r==null?void 0:r.classNames)===null||t===void 0?void 0:t.mask},i.createElement("div",{className:K(`${To}-content`,(n=r==null?void 0:r.classNames)===null||n===void 0?void 0:n.body)},r.image&&i.createElement(sl,{image:r.image,onTap:r.onClose,maxZoom:r.maxZoom})),r.image&&i.createElement("div",{className:`${To}-footer`},(o=r.renderFooter)===null||o===void 0?void 0:o.call(r,r.image),i.createElement(Cn,{position:"bottom"})));return Rn(r.getContainer,s)},Tf=Object.assign(Object.assign({},il),{defaultIndex:0}),ll=i.forwardRef((e,t)=>{var n,o,r;const s=oe(Tf,e),[a,l]=i.useState(s.defaultIndex),c=i.useRef(null);i.useImperativeHandle(t,()=>({swipeTo:(m,g)=>{var v;l(m),(v=c.current)===null||v===void 0||v.swipeTo(m,g)}}));const u=i.useCallback(m=>{var g;m!==a&&(l(m),(g=s.onIndexChange)===null||g===void 0||g.call(s,m))},[s.onIndexChange,a]),d=i.createElement(to,{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:K(`${To}-content`,(o=s==null?void 0:s.classNames)===null||o===void 0?void 0:o.body)},s.images&&i.createElement(Of,{ref:c,defaultIndex:a,onIndexChange:u,images:s.images,onTap:s.onClose,maxZoom:s.maxZoom})),s.images&&i.createElement("div",{className:`${To}-footer`},(r=s.renderFooter)===null||r===void 0?void 0:r.call(s,s.images[a],a),i.createElement(Cn,{position:"bottom"})));return Rn(s.getContainer,d)}),Jt=new Set;function Df(e){ns();const t=xn(i.createElement(al,Object.assign({},e,{afterClose:()=>{var n;Jt.delete(t),(n=e.afterClose)===null||n===void 0||n.call(e)}})));return Jt.add(t),t}function Af(e){ns();const t=xn(i.createElement(ll,Object.assign({},e,{afterClose:()=>{var n;Jt.delete(t),(n=e.afterClose)===null||n===void 0||n.call(e)}})));return Jt.add(t),t}function ns(){Jt.forEach(e=>{e.close()}),Jt.clear()}const Lf=we(ll,{show:Af}),Bf=we(al,{Multi:Lf,show:Df,clear:ns}),_t="adm-image-uploader",cl=e=>{const{locale:t}=Pe(),{url:n,file:o,deletable:r,deleteIcon:s,onDelete:a,imageFit:l}=e,c=i.useMemo(()=>n||(o?URL.createObjectURL(o):""),[n,o]);i.useEffect(()=>()=>{o&&URL.revokeObjectURL(c)},[c,o]);function u(){return e.status==="pending"&&i.createElement("div",{className:`${_t}-cell-mask`},i.createElement("span",{className:`${_t}-cell-loading`},i.createElement(Ur,{color:"white"}),i.createElement("span",{className:`${_t}-cell-mask-message`},t.ImageUploader.uploading)))}function d(){return r&&i.createElement("span",{className:`${_t}-cell-delete`,onClick:a},s)}return i.createElement("div",{className:K(`${_t}-cell`,e.status==="fail"&&`${_t}-cell-fail`)},i.createElement(fa,{className:`${_t}-cell-image`,src:c,fit:l,onClick:e.onClick}),u(),d())},Pt="adm-space",Vf={direction:"horizontal"},_n=e=>{const t=oe(Vf,e),{direction:n,onClick:o}=t;return Y(t,i.createElement("div",{className:K(Pt,{[`${Pt}-wrap`]:t.wrap,[`${Pt}-block`]:t.block,[`${Pt}-${n}`]:!0,[`${Pt}-align-${t.align}`]:!!t.align,[`${Pt}-justify-${t.justify}`]:!!t.justify}),onClick:o},i.Children.map(t.children,r=>r!=null&&i.createElement("div",{className:`${Pt}-item`},r))))},tt="adm-image-uploader",zf={disableUpload:!1,deletable:!0,deleteIcon:i.createElement(no,{className:`${tt}-cell-delete-icon`}),showUpload:!0,multiple:!1,maxCount:0,defaultValue:[],accept:"image/*",preview:!0,showFailed:!0,imageFit:"cover"},ul=i.forwardRef((e,t)=>{const{locale:n}=Pe(),o=oe(zf,e),{columns:r}=o,[s,a]=Ie(o),[l,c]=i.useState([]),u=i.useRef(null),d=te.useSize(u),m=i.useRef(null),[g,v]=i.useState(80),p=i.useRef(null);te.useIsomorphicLayoutEffect(()=>{const V=m.current;if(r&&d&&V){const _=d.width,P=Ea(window.getComputedStyle(V).getPropertyValue("height"));v((_-P*(r-1))/r)}},[d==null?void 0:d.width]);const y={"--cell-size":g+"px"};te.useIsomorphicLayoutEffect(()=>{c(V=>V.filter(_=>_.url===void 0?!0:!s.some(P=>P.url===_.url)))},[s]),te.useIsomorphicLayoutEffect(()=>{var V;(V=o.onUploadQueueChange)===null||V===void 0||V.call(o,l.map(_=>({id:_.id,status:_.status})))},[l]);const b=i.useRef(0),{maxCount:C,onPreview:w,renderItem:x}=o;function S(V,_){return yt(this,void 0,void 0,function*(){const{beforeUpload:P}=o;let E=V;return E=yield P==null?void 0:P(V,_),E})}function k(V){return o.showFailed?V:V.filter(_=>_.status!=="fail")}function I(V){var _;return yt(this,void 0,void 0,function*(){V.persist();const{files:P}=V.target;if(!P)return;let E=[].slice.call(P);if(V.target.value="",o.beforeUpload){const z=E.map(j=>S(j,E));yield Promise.all(z).then(j=>{E=j.filter(Boolean)})}if(E.length===0)return;if(C>0){const z=s.length+E.length-C;z>0&&(E=E.slice(0,E.length-z),(_=o.onCountExceed)===null||_===void 0||_.call(o,z))}const D=E.map(z=>({id:b.current++,status:"pending",file:z}));c(z=>[...k(z),...D]);const T=[];yield Promise.all(D.map((z,j)=>yt(this,void 0,void 0,function*(){try{const H=yield o.upload(z.file);T[j]=H,c(U=>U.map(J=>J.id===z.id?Object.assign(Object.assign({},J),{status:"success",url:H.url}):J))}catch(H){throw c(U=>U.map(J=>J.id===z.id?Object.assign(Object.assign({},J),{status:"fail"}):J)),H}}))).catch(z=>console.error(z)),a(z=>z.concat(T))})}const M=i.useRef(null);function O(V){M.current=Bf.Multi.show({images:s.map(_=>_.url),defaultIndex:V,onClose:()=>{M.current=null}})}te.useUnmount(()=>{var V;(V=M.current)===null||V===void 0||V.close()});const L=k(l),F=o.showUpload&&(C===0||s.length+L.length<C),N=()=>s.map((V,_)=>{var P,E;const D=i.createElement(cl,{key:(P=V.key)!==null&&P!==void 0?P:_,url:(E=V.thumbnailUrl)!==null&&E!==void 0?E:V.url,deletable:o.deletable,deleteIcon:o.deleteIcon,imageFit:o.imageFit,onClick:()=>{o.preview&&O(_),w&&w(_,V)},onDelete:()=>yt(void 0,void 0,void 0,function*(){var T;(yield(T=o.onDelete)===null||T===void 0?void 0:T.call(o,V))!==!1&&a(s.filter((j,H)=>H!==_))})});return x?x(D,V,s):D}),W=i.createElement(i.Fragment,null,N(),l.map(V=>!o.showFailed&&V.status==="fail"?null:i.createElement(cl,{key:V.id,file:V.file,deletable:V.status!=="pending",deleteIcon:o.deleteIcon,status:V.status,imageFit:o.imageFit,onDelete:()=>{c(l.filter(_=>_.id!==V.id))}})),i.createElement("div",{className:`${tt}-upload-button-wrap`,style:F?void 0:{display:"none"}},o.children||i.createElement("span",{className:`${tt}-cell ${tt}-upload-button`,role:"button","aria-label":n.ImageUploader.upload},i.createElement("span",{className:`${tt}-upload-button-icon`},i.createElement(cd,null))),!o.disableUpload&&i.createElement("input",{"aria-label":n.ImageUploader.upload,ref:p,capture:o.capture,accept:o.accept,multiple:o.multiple,type:"file",className:`${tt}-input`,onChange:I})));return i.useImperativeHandle(t,()=>({get nativeElement(){return p.current}})),Y(o,i.createElement("div",{className:tt,ref:u},r?i.createElement(et,{className:`${tt}-grid`,columns:r,style:y},i.createElement("div",{className:`${tt}-gap-measure`,ref:m}),W.props.children):i.createElement(_n,{className:`${tt}-space`,wrap:!0,block:!0},W.props.children)))});function dl({onEnterPress:e,onKeyDown:t,nativeInputRef:n,enterKeyHint:o}){const r=s=>{e&&(s.code==="Enter"||s.keyCode===13)&&e(s),t==null||t(s)};return te.useIsomorphicLayoutEffect(()=>{const s=n.current;if(!(!o||!s))return s.setAttribute("enterkeyhint",o),()=>{s.removeAttribute("enterkeyhint")}},[o]),r}const Do="adm-input",Zf={defaultValue:"",clearIcon:i.createElement(ud,null),onlyShowClearWhenFocus:!0},os=i.forwardRef((e,t)=>{const{locale:n,input:o={}}=Pe(),r=oe(Zf,o,e),[s,a]=Ie(r),[l,c]=i.useState(!1),u=i.useRef(!1),d=i.useRef(null),m=dl({onEnterPress:r.onEnterPress,onKeyDown:r.onKeyDown,nativeInputRef:d,enterKeyHint:r.enterKeyHint});i.useImperativeHandle(t,()=>({clear:()=>{a("")},focus:()=>{var p;(p=d.current)===null||p===void 0||p.focus()},blur:()=>{var p;(p=d.current)===null||p===void 0||p.blur()},get nativeElement(){return d.current}}));function g(){let p=s;if(r.type==="number"){const y=p&&ye(parseFloat(p),r.min,r.max).toString();Number(p)!==Number(y)&&(p=y)}p!==s&&a(p)}const v=!r.clearable||!s||r.readOnly?!1:r.onlyShowClearWhenFocus?l:!0;return Y(r,i.createElement("div",{className:K(`${Do}`,r.disabled&&`${Do}-disabled`)},i.createElement("input",{ref:d,className:`${Do}-element`,value:s,onChange:p=>{a(p.target.value)},onFocus:p=>{var y;c(!0),(y=r.onFocus)===null||y===void 0||y.call(r,p)},onBlur:p=>{var y;c(!1),g(),(y=r.onBlur)===null||y===void 0||y.call(r,p)},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:m,onKeyUp:r.onKeyUp,onCompositionStart:p=>{var y;u.current=!0,(y=r.onCompositionStart)===null||y===void 0||y.call(r,p)},onCompositionEnd:p=>{var y;u.current=!1,(y=r.onCompositionEnd)===null||y===void 0||y.call(r,p)},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"]}),v&&i.createElement("div",{className:`${Do}-clear`,onMouseDown:p=>{p.preventDefault()},onClick:()=>{var p,y;a(""),(p=r.onClear)===null||p===void 0||p.call(r),W1()&&u.current&&(u.current=!1,(y=d.current)===null||y===void 0||y.blur())},"aria-label":n.Input.clear},r.clearIcon)))}),nt="adm-jumbo-tabs",fl=we(e=>{var t;const n=i.useRef(null),o=i.useRef(null),r={};let s=null;const a=[];jr(e.children,(m,g)=>{if(!i.isValidElement(m))return;const v=m.key;if(typeof v!="string")return;g===0&&(s=v);const p=a.push(m);r[v]=p-1});const[l,c]=Ie({value:e.activeKey,defaultValue:(t=e.defaultActiveKey)!==null&&t!==void 0?t:s,onChange:m=>{var g;m!==null&&((g=e.onChange)===null||g===void 0||g.call(e,m))}}),{scrollLeft:u,animate:d}=n0(n,r[l]);return Sa(()=>{d(!0)},o),Y(e,i.createElement("div",{className:nt,ref:o},i.createElement("div",{className:`${nt}-header`},i.createElement(o0,{scrollTrackRef:n}),i.createElement(ke.div,{className:`${nt}-tab-list`,ref:n,scrollLeft:u},a.map(m=>Y(m.props,i.createElement("div",{key:m.key,className:`${nt}-tab-wrapper`},i.createElement("div",{onClick:()=>{const{key:g}=m;m.props.disabled||g!=null&&c(g.toString())},className:K(`${nt}-tab`,{[`${nt}-tab-active`]:m.key===l,[`${nt}-tab-disabled`]:m.props.disabled})},i.createElement("div",{className:`${nt}-tab-title`},m.props.title),i.createElement("div",{className:`${nt}-tab-description`},m.props.description))))))),a.map(m=>{if(m.props.children===void 0)return null;const g=m.key===l;return i.createElement(eo,{key:m.key,active:g,forceRender:m.props.forceRender,destroyOnClose:m.props.destroyOnClose},i.createElement("div",{className:`${nt}-content`,style:{display:g?"block":"none"}},m.props.children))})))},{Tab:()=>null}),Rt="adm-nav-bar",ml=i.createElement(fd,null),jf=e=>{const{navBar:t={}}=Pe(),n=oe(t,e),{back:o,backIcon:r,backArrow:s}=n,a=t.backIcon||ml,l=Uo(ml,t.backIcon,s===!0?a:s,r===!0?a:r);return Y(n,i.createElement("div",{className:K(Rt)},i.createElement("div",{className:`${Rt}-left`,role:"button"},o!==null&&i.createElement("div",{className:`${Rt}-back`,onClick:n.onBack},l&&i.createElement("span",{className:`${Rt}-back-arrow`},l),i.createElement("span",{"aria-hidden":"true"},o)),n.left),i.createElement("div",{className:`${Rt}-title`},n.children),i.createElement("div",{className:`${Rt}-right`},n.right)))},Pn="adm-page-indicator",Kf={color:"primary",direction:"horizontal"},Wf=i.memo(e=>{const t=oe(Kf,e),n=[];for(let o=0;o<t.total;o++)n.push(i.createElement("div",{key:o,className:K(`${Pn}-dot`,{[`${Pn}-dot-active`]:t.current===o})}));return Y(t,i.createElement("div",{className:K(Pn,`${Pn}-${t.direction}`,`${Pn}-color-${t.color}`)},n))}),hl=i.createContext(null),Hf={disabled:!1,defaultValue:null},Uf=e=>{const t=oe(Hf,e),[n,o]=Ie({value:t.value,defaultValue:t.defaultValue,onChange:r=>{var s;r!==null&&((s=t.onChange)===null||s===void 0||s.call(t,r))}});return i.createElement(hl.Provider,{value:{value:n===null?[]:[n],check:r=>{o(r)},uncheck:()=>{},disabled:t.disabled}},t.children)},Mt="adm-radio",Yf={defaultChecked:!1},rs=we(e=>{const t=oe(Yf,e),n=i.useContext(hl);let[o,r]=Ie({value:t.checked,defaultValue:t.defaultChecked,onChange:t.onChange}),s=t.disabled;const{value:a}=t;n&&a!==void 0&&(o=n.value.includes(a),r=c=>{var u;c?n.check(a):n.uncheck(a),(u=t.onChange)===null||u===void 0||u.call(t,c)},s=s||n.disabled);const l=()=>t.icon?i.createElement("div",{className:`${Mt}-custom-icon`},t.icon(o)):i.createElement("div",{className:`${Mt}-icon`},o&&i.createElement(za,null));return Y(t,i.createElement("label",{onClick:t.onClick,className:K(Mt,{[`${Mt}-checked`]:o,[`${Mt}-disabled`]:s,[`${Mt}-block`]:t.block})},i.createElement(Za,{type:"radio",checked:o,onChange:r,disabled:s,id:t.id}),l(),t.children&&i.createElement("div",{className:`${Mt}-content`},t.children)))},{Group:Uf}),bt="adm-search-bar",Gf={clearable:!0,onlyShowClearWhenFocus:!1,showCancelButton:!1,defaultValue:"",clearOnCancel:!0},pl=i.forwardRef((e,t)=>{const{locale:n,searchBar:o={}}=Pe(),r=oe(Gf,o,{cancelText:n.common.cancel},e),s=Uo(i.createElement(hd,null),o.searchIcon,e.icon,e.searchIcon),[a,l]=Ie(r),[c,u]=i.useState(!1),d=i.useRef(null),m=i.useRef(!1);i.useImperativeHandle(t,()=>({clear:()=>{var v;return(v=d.current)===null||v===void 0?void 0:v.clear()},focus:()=>{var v;return(v=d.current)===null||v===void 0?void 0:v.focus()},blur:()=>{var v;return(v=d.current)===null||v===void 0?void 0:v.blur()},get nativeElement(){var v,p;return(p=(v=d.current)===null||v===void 0?void 0:v.nativeElement)!==null&&p!==void 0?p:null}}));const g=()=>{let v;return typeof r.showCancelButton=="function"?v=r.showCancelButton(c,a):v=r.showCancelButton&&c,v&&i.createElement("div",{className:`${bt}-suffix`},i.createElement(st,{fill:"none",className:`${bt}-cancel-button`,onClick:()=>{var p,y,b;r.clearOnCancel&&((p=d.current)===null||p===void 0||p.clear()),(y=d.current)===null||y===void 0||y.blur(),(b=r.onCancel)===null||b===void 0||b.call(r)},onMouseDown:p=>{p.preventDefault()}},r.cancelText))};return Y(r,i.createElement("div",{className:K(bt,{[`${bt}-active`]:c})},i.createElement("div",{className:`${bt}-input-box`},s&&i.createElement("div",{className:`${bt}-input-box-icon`},s),i.createElement(os,{ref:d,className:K(`${bt}-input`,{[`${bt}-input-without-icon`]:!s}),value:a,onChange:l,maxLength:r.maxLength,autoFocus:r.autoFocus,placeholder:r.placeholder,clearable:r.clearable,onlyShowClearWhenFocus:r.onlyShowClearWhenFocus,onFocus:v=>{var p;u(!0),(p=r.onFocus)===null||p===void 0||p.call(r,v)},onBlur:v=>{var p;u(!1),(p=r.onBlur)===null||p===void 0||p.call(r,v)},onClear:r.onClear,type:"search",enterKeyHint:"search",onEnterPress:()=>{var v,p;m.current||((v=d.current)===null||v===void 0||v.blur(),(p=r.onSearch)===null||p===void 0||p.call(r,a))},"aria-label":n.SearchBar.name,onCompositionStart:v=>{var p;m.current=!0,(p=r.onCompositionStart)===null||p===void 0||p.call(r,v)},onCompositionEnd:v=>{var p;m.current=!1,(p=r.onCompositionEnd)===null||p===void 0||p.call(r,v)}})),g()))}),gl=e=>Y(e,i.createElement("div",{className:"adm-swiper-item",onClick:e.onClick},e.children));function qf(e){const[t,n]=i.useState(e),o=i.useRef(t);return i.useEffect(()=>{o.current=t},[t]),[t,n,o]}function Xf(e,t){const n=Object.keys(e),o=Object.keys(t),r=new Set([...n,...o]),s={};return r.forEach(a=>{const l=e[a],c=t[a];typeof l=="function"&&typeof c=="function"?s[a]=function(...u){l(...u),c(...u)}:s[a]=l||c}),s}const ot="adm-swiper",Qf={mousedown:"onMouseDown",mousemove:"onMouseMove",mouseup:"onMouseUp"},Jf={defaultIndex:0,allowTouchMove:!0,autoplay:!1,autoplayInterval:3e3,loop:!1,direction:"horizontal",slideSize:100,trackOffset:0,stuckAtBoundary:!0,rubberband:!0,stopPropagation:[]};let Ao;const Rf=i.forwardRef(Dr((e,t)=>{const n=oe(Jf,e),{direction:o,total:r,children:s,indicator:a}=n,[l]=i.useState({}),c=i.useRef(null),u=o==="vertical",d=n.slideSize/100,m=n.trackOffset/100,{validChildren:g,count:v,renderChildren:p}=i.useMemo(()=>{let b=0,C,w;return typeof s=="function"?C=s:w=i.Children.map(s,x=>!i.isValidElement(x)||x.type!==gl?null:(b++,x)),{renderChildren:C,validChildren:w,count:b}},[s]),y=r!=null?r:v;return y===0||!g&&!p?null:()=>{let b=n.loop;d*(y-1)<1&&(b=!1);const C=i.useRef(null);function w(){const Z=C.current;return Z?(u?Z.offsetHeight:Z.offsetWidth)*n.slideSize/100:0}const[x,S,k]=te.useGetState(n.defaultIndex),[I,M,O]=qf(!1);function L(Z){let G=0,re=y-1;return n.stuckAtBoundary&&(G+=m/d,re-=(1-d-m)/d),ye(Z,G,re)}const[{position:F},N]=Ve(()=>({position:L(x)*100,config:{tension:200,friction:30},onRest:()=>{if(O.current||!b)return;const Z=F.get(),G=100*y,re=ss(Z,G);re!==Z&&N.start({position:re,immediate:!0})}}),[y]),W=i.useRef(null);function V(){var Z;(Z=W.current)===null||Z===void 0||Z.call(W),O.current=!1}const _=io(Z=>{if(W.current=Z.cancel,!Z.intentional||(Z.first&&!Ao&&(Ao=l),Ao!==l))return;Ao=Z.last?void 0:l;const G=w();if(!G)return;const re=u?1:0,ge=Z.offset[re],Ce=Z.direction[re],Ko=Z.velocity[re];if(M(!0),!Z.last)N.start({position:ge*100/G,immediate:!0});else{const Nn=Math.floor(ge/G),v2=Nn+1,b2=Math.round((ge+Ko*2e3*Ce)/G);P(ye(b2,Nn,v2)),window.setTimeout(()=>{M(!1)})}},{transform:([Z,G])=>[-Z,-G],from:()=>{const Z=w();return[F.get()/100*Z,F.get()/100*Z]},triggerAllEvents:!0,bounds:()=>{if(b)return{};const Z=w(),G=L(0)*Z,re=L(y-1)*Z;return u?{top:G,bottom:re}:{left:G,right:re}},rubberband:n.rubberband,axis:u?"y":"x",preventScroll:!u,pointer:{touch:!0}});function P(Z,G=!1){var re;const ge=Math.round(Z),Ce=b?ss(ge,y):ye(ge,0,y-1);Ce!==k()&&((re=n.onIndexChange)===null||re===void 0||re.call(n,Ce)),S(Ce),N.start({position:(b?ge:L(ge))*100,immediate:G})}function E(){P(Math.round(F.get()/100)+1)}function D(){P(Math.round(F.get()/100)-1)}i.useImperativeHandle(t,()=>({swipeTo:P,swipeNext:E,swipePrev:D})),te.useIsomorphicLayoutEffect(()=>{const Z=y-1;x>Z&&P(Z,!0)});const{autoplay:T,autoplayInterval:z}=n,j=()=>{c.current=window.setTimeout(()=>{T==="reverse"?D():E(),j()},z)};i.useEffect(()=>{if(!(!T||I))return j(),()=>{c.current&&window.clearTimeout(c.current)}},[T,z,I,y]);function H(Z,G){let re={};return b&&(re={[u?"y":"x"]:F.to(ge=>{let Ce=-ge+Z*100;const Ko=y*100,Nn=Ko/2;return Ce=ss(Ce+Nn,Ko)-Nn,`${Ce}%`}),[u?"top":"left"]:`-${Z*100}%`}),i.createElement(ke.div,{className:K(`${ot}-slide`,{[`${ot}-slide-active`]:x===Z}),style:re,key:Z},G)}function U(){if(p&&r){const G=Math.max(x-2,0),re=Math.min(x+2,r-1),ge=[];for(let Ce=G;Ce<=re;Ce+=1)ge.push(H(Ce,p(Ce)));return i.createElement(i.Fragment,null,i.createElement("div",{className:`${ot}-slide-placeholder`,style:{width:`${G*100}%`}}),ge)}return i.Children.map(g,(Z,G)=>H(G,Z))}function J(){return b?i.createElement("div",{className:`${ot}-track-inner`},U()):i.createElement(ke.div,{className:`${ot}-track-inner`,style:{[u?"y":"x"]:F.to(Z=>`${-Z}%`)}},U())}const ne={"--slide-size":`${n.slideSize}%`,"--track-offset":`${n.trackOffset}%`},ee=Object.assign({},n.allowTouchMove?_():{}),Ne={};for(const Z of n.stopPropagation){const G=Qf[Z];Ne[G]=function(re){re.stopPropagation()}}const q=Xf(ee,Ne);let ue=null;return typeof a=="function"?ue=a(y,x):a!==!1&&(ue=i.createElement("div",{className:`${ot}-indicator`},i.createElement(Wf,Object.assign({},n.indicatorProps,{total:y,current:x,direction:o})))),Y(n,i.createElement("div",{className:K(ot,`${ot}-${o}`),style:ne},i.createElement("div",Object.assign({ref:C,className:K(`${ot}-track`,{[`${ot}-track-allow-touch-move`]:n.allowTouchMove}),onClickCapture:Z=>{O.current&&Z.stopPropagation(),V()}},q),J()),ue))}}));function ss(e,t){const n=e%t;return n<0?n+t:n}const Lo=we(Rf,{Item:gl}),em=()=>null,at="adm-tab-bar",tm={safeArea:!1},is=we(e=>{var t;const n=oe(tm,e);let o=null;const r=[];jr(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]=Ie({value:n.activeKey,defaultValue:(t=n.defaultActiveKey)!==null&&t!==void 0?t:o,onChange:l=>{var c;l!==null&&((c=n.onChange)===null||c===void 0||c.call(n,l))}});return Y(n,i.createElement("div",{className:at},i.createElement("div",{className:`${at}-wrap`},r.map(l=>{const c=l.key===s;function u(){const d=l.props.icon&&i.createElement("div",{className:`${at}-item-icon`},typeof l.props.icon=="function"?l.props.icon(c):l.props.icon),m=l.props.title&&i.createElement("div",{className:K(`${at}-item-title`,!!d&&`${at}-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(ha,{content:l.props.badge,className:`${at}-icon-badge`},d),m):m?i.createElement(ha,{content:l.props.badge,className:`${at}-title-badge`},m):null}return Y(l.props,i.createElement("div",{key:l.key,onClick:()=>{var d,m;const{key:g}=l;g!=null&&(a(g.toString()),(m=(d=l.props).onClick)===null||m===void 0||m.call(d))},className:K(`${at}-item`,{[`${at}-item-active`]:c})},u()))})),n.safeArea&&i.createElement(Cn,{position:"bottom"})))},{Item:em}),vl="adm-tag",nm={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)"},om={color:"default",fill:"solid",round:!1},as=e=>{var t;const n=oe(om,e),o=(t=nm[n.color])!==null&&t!==void 0?t:n.color,r={"--border-color":o,"--text-color":n.fill==="outline"?o:"#ffffff","--background-color":n.fill==="outline"?"transparent":o};return Y(n,i.createElement("span",{style:r,onClick:n.onClick,className:K(vl,{[`${vl}-round`]:n.round})},n.children))},Mn="adm-text-area",bl={rows:2,showCount:!1,autoSize:!1,defaultValue:""},yl=i.forwardRef((e,t)=>{const n=oe(bl,e),{autoSize:o,showCount:r,maxLength:s}=n,[a,l]=Ie(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),m=dl({onEnterPress:n.onEnterPress,onKeyDown:n.onKeyDown,nativeInputRef:c,enterKeyHint:n.enterKeyHint});i.useImperativeHandle(t,()=>({clear:()=>{l("")},focus:()=>{var b;(b=c.current)===null||b===void 0||b.focus()},blur:()=>{var b;(b=c.current)===null||b===void 0||b.blur()},get nativeElement(){return c.current}})),te.useIsomorphicLayoutEffect(()=>{if(!o)return;const b=c.current,C=d.current;if(!b||(b.style.height=u.current,!C))return;let w=C.scrollHeight;if(typeof o=="object"){const x=window.getComputedStyle(b),S=parseFloat(x.lineHeight);o.minRows&&(w=Math.max(w,o.minRows*S)),o.maxRows&&(w=Math.min(w,o.maxRows*S))}u.current=`${w}px`,b.style.height=`${w}px`},[a,o]);const g=i.useRef(!1);let v;const p=Jr(a).length;typeof r=="function"?v=r(p,s):r&&(v=i.createElement("div",{className:`${Mn}-count`},s===void 0?p:p+"/"+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)),Y(n,i.createElement("div",{className:Mn},i.createElement("textarea",{ref:c,className:`${Mn}-element`,rows:y,value:a,placeholder:n.placeholder,onChange:b=>{let C=b.target.value;s&&!g.current&&(C=Jr(C).slice(0,s).join("")),l(C)},id:n.id,onCompositionStart:b=>{var C;g.current=!0,(C=n.onCompositionStart)===null||C===void 0||C.call(n,b)},onCompositionEnd:b=>{var C;if(g.current=!1,s){const w=b.target.value;l(Jr(w).slice(0,s).join(""))}(C=n.onCompositionEnd)===null||C===void 0||C.call(n,b)},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:m}),v,o&&i.createElement("textarea",{ref:d,className:`${Mn}-element ${Mn}-element-hidden`,value:a,rows:y,"aria-hidden":!0,readOnly:!0})))});yl.defaultProps=bl;const lt="adm-toast",rm={maskClickable:!0,stopPropagation:["click"]},sm=e=>{const t=oe(rm,e),{maskClickable:n,content:o,icon:r,position:s}=t,a=i.useMemo(()=>{if(r==null)return null;switch(r){case"success":return i.createElement(Ai,{className:`${lt}-icon-success`});case"fail":return i.createElement(no,{className:`${lt}-icon-fail`});case"loading":return i.createElement(Ur,{color:"white",className:`${lt}-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(to,{visible:t.visible,destroyOnClose:!0,opacity:0,disableBodyScroll:!n,getContainer:t.getContainer,afterClose:t.afterClose,style:Object.assign({pointerEvents:n?"none":"auto"},t.maskStyle),className:K(`${lt}-mask`,t.maskClassName),stopPropagation:t.stopPropagation},i.createElement("div",{className:K(`${lt}-wrap`)},i.createElement("div",{style:{top:l},className:K(`${lt}-main`,r?`${lt}-main-icon`:`${lt}-main-text`)},a&&i.createElement("div",{className:`${lt}-icon`},a),i.createElement(M1,null,o))))};let De=null,ls=null;const Bo={duration:2e3,position:"center",maskClickable:!0},im=e=>i.createElement(sm,Object.assign({},e));function am(e){var t;const n=oe(Bo,typeof e=="string"?{content:e}:e),o=i.createElement(im,Object.assign({},n,{onClose:()=>{De=null}}));return De?!((t=De.isRendered)===null||t===void 0)&&t.call(De)?De.replace(o):(De.close(),De=xn(o)):De=xn(o),ls&&window.clearTimeout(ls),n.duration!==0&&(ls=window.setTimeout(()=>{Cl()},n.duration)),De}function Cl(){De==null||De.close(),De=null}function lm(e){e.duration!==void 0&&(Bo.duration=e.duration),e.position!==void 0&&(Bo.position=e.position),e.maskClickable!==void 0&&(Bo.maskClickable=e.maskClickable)}const cs={show:am,clear:Cl,config:lm},xl={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}}}},cm=e=>{const{t}=le(),n=$.useFieldSchema(),{dn:o}=h.useDesignable(),r=$.useField(),s={dn:o,field:r,fieldSchema:n};return f.jsx(h.SchemaSettingsDropdown,ae(B({title:f.jsx(de.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)"},icon:f.jsx(Ke.MenuOutlined,{}),type:"dashed",children:t("Menu configuration")})},s),{children:f.jsx(h.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:t("Delete menu block")},breakRemoveOn:{"x-component":"Grid"}},"remove")}))},Fn=()=>{const{dn:e}=h.useDesignable(),t=$.useFieldSchema(),n=$.useField();return{onUpdateComponentProps:te.useMemoizedFn(r=>me(this,null,function*(){Ae.set(t,"x-component-props",r),n.componentProps=B(B({},n.componentProps),r),yield e.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"],"x-server-hooks":[{type:"onSelfSave",method:"extractTextToLocale"}]}}),yield e.refresh()}))}},Sl={properties:{name:{type:"string",title:ut("Menu name"),required:!0,"x-component":"Input","x-decorator":"FormItem"},icon:{"x-decorator":"FormItem","x-component":"IconPicker",title:ut("Icon"),"x-component-props":{}}}},um=e=>{const{icon:t,name:n}=e,o=h.useDesigner(),r=ie.useNavigate(),s=ie.useLocation(),a=$.useFieldSchema(),l=h.useCompile(),c=ie.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 f.jsxs(h.SortableItem,{className:h.cx("tb-mobile-menu-item",h.css`
|
|
141
|
+
*/var Yt=i;function n0(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var o0=typeof Object.is=="function"?Object.is:n0,r0=Yt.useState,s0=Yt.useEffect,i0=Yt.useLayoutEffect,a0=Yt.useDebugValue;function l0(t,e){var n=e(),o=r0({inst:{value:n,getSnapshot:e}}),r=o[0].inst,s=o[1];return i0(function(){r.value=n,r.getSnapshot=e,zr(r)&&s({inst:r})},[t,n,e]),s0(function(){return zr(r)&&s({inst:r}),t(function(){zr(r)&&s({inst:r})})},[t]),a0(n),n}function zr(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!o0(t,n)}catch(o){return!0}}function c0(t,e){return e()}var u0=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?c0:l0;Ia.useSyncExternalStore=Yt.useSyncExternalStore!==void 0?Yt.useSyncExternalStore:u0,Ea.exports=Ia;var d0=Ea.exports;let f0=!1;const $a=new Set;function _a(){return f0}function m0(t){return $a.add(t),()=>{$a.delete(t)}}function h0(){return d0.useSyncExternalStore(m0,_a,_a)}const Vr="adm-spin-loading",p0={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},g0={color:"default"},v0=15*3.14159265358979*2,Zr=i.memo(t=>{var e;const n=oe(g0,t),o=h0(),{percent:r}=Ve({cancel:o,loop:{reverse:!0},from:{percent:80},to:{percent:30},config:{duration:1200}});return Y(n,i.createElement(ke.div,{className:Vr,style:{"--color":(e=p0[n.color])!==null&&e!==void 0?e:n.color,"--percent":r}},i.createElement("svg",{className:`${Vr}-svg`,viewBox:"0 0 32 32"},i.createElement(ke.circle,{className:`${Vr}-fill`,fill:"transparent",strokeWidth:"2",strokeDasharray:v0,strokeDashoffset:r,strokeLinecap:"square",r:15,cx:16,cy:16}))))}),Gt="adm-picker-view",b0={defaultValue:[],renderLabel:ka,mouseWheel:!1,loadingContent:i.createElement("div",{className:`${Gt}-loading-content`},i.createElement(Zr,null))},jr=i.memo(t=>{const e=oe(b0,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=wa(e.columns,n),s=r.columns;te.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 Y(e,i.createElement("div",{className:`${Gt}`},e.loading?e.loadingContent:i.createElement(i.Fragment,null,s.map((l,c)=>i.createElement(xa,{key:c,index:c,column:l,value:n[c],onSelect:a,renderLabel:e.renderLabel,mouseWheel:e.mouseWheel})),i.createElement("div",{className:`${Gt}-mask`},i.createElement("div",{className:`${Gt}-mask-top`}),i.createElement("div",{className:`${Gt}-mask-middle`}),i.createElement("div",{className:`${Gt}-mask-bottom`})))))});jr.displayName="PickerView";const pt="adm-picker",y0={defaultValue:[],closeOnMaskClick:!0,renderLabel:ka,destroyOnClose:!1,forceRender:!1},Kr=i.memo(i.forwardRef((t,e)=>{var n;const{locale:o}=Pe(),r=oe(y0,{confirmText:o.common.confirm,cancelText:o.common.cancel},t),[s,a]=Ie({value:r.visible,defaultValue:!1,onChange:g=>{var x;g===!1&&((x=r.onClose)===null||x===void 0||x.call(r))}}),l={toggle:()=>{a(g=>!g)},open:()=>{a(!0)},close:()=>{a(!1)}};i.useImperativeHandle(e,()=>l);const[c,u]=Ie(Object.assign(Object.assign({},r),{onChange:g=>{var x;const S=Sa(r.columns,g);(x=r.onConfirm)===null||x===void 0||x.call(r,g,S)}})),d=wa(r.columns,c),[m,b]=i.useState(c);i.useEffect(()=>{m!==c&&b(c)},[s]),i.useEffect(()=>{s||b(c)},[c]);const v=te.useMemoizedFn((g,x)=>{var S;b(g),s&&((S=r.onSelect)===null||S===void 0||S.call(r,g,x))}),p=Y(r,i.createElement("div",{className:pt},i.createElement("div",{className:`${pt}-header`},i.createElement("a",{role:"button",className:`${pt}-header-button`,onClick:()=>{var g;(g=r.onCancel)===null||g===void 0||g.call(r),a(!1)}},r.cancelText),i.createElement("div",{className:`${pt}-header-title`},r.title),i.createElement("a",{role:"button",className:K(`${pt}-header-button`,r.loading&&`${pt}-header-button-disabled`),onClick:()=>{r.loading||(u(m,!0),a(!1))},"aria-disabled":r.loading},r.confirmText)),i.createElement("div",{className:`${pt}-body`},i.createElement(jr,{loading:r.loading,loadingContent:r.loadingContent,columns:r.columns,renderLabel:r.renderLabel,value:m,mouseWheel:r.mouseWheel,onChange:v})))),y=i.createElement(Ht,{style:r.popupStyle,className:K(`${pt}-popup`,r.popupClassName),visible:s,position:"bottom",onMaskClick:()=>{var g;r.closeOnMaskClick&&((g=r.onCancel)===null||g===void 0||g.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},p,i.createElement(xn,{position:"bottom"}));return i.createElement(i.Fragment,null,y,(n=r.children)===null||n===void 0?void 0:n.call(r,d.items,l))}));Kr.displayName="Picker";function x0(t){return new Promise(e=>{const n=()=>{const[r,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Kr,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=_r(i.createElement(n,null))})}const Pa=we(Kr,{prompt:x0}),Me="adm-tabs",C0=()=>null,S0={activeLineMode:"auto",stretch:!0,direction:"ltr"},ko=we(t=>{var e;const n=oe(S0,t),o=i.useRef(null),r=i.useRef(null),s={};let a=null;const l=[],c=n.direction==="rtl";Lr(n.children,(k,I)=>{if(!i.isValidElement(k))return;const _=k.key;if(typeof _!="string")return;I===0&&(a=_);const T=l.push(k);s[_]=T-1});const[u,d]=Ie({value:n.activeKey,defaultValue:(e=n.defaultActiveKey)!==null&&e!==void 0?e:a,onChange:k=>{var I;k!==null&&((I=n.onChange)===null||I===void 0||I.call(n,k))}}),[{x:m,width:b},v]=Ve(()=>({x:0,width:0,config:{tension:300,clamp:!0}})),[{scrollLeft:p},y]=Ve(()=>({scrollLeft:0,config:{tension:300,clamp:!0}})),[{leftMaskOpacity:g,rightMaskOpacity:x},S]=Ve(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}}));function C(k=!1,I=!1){const _=o.current;if(!_)return;const T=s[u];if(T===void 0){v.start({x:0,width:0,immediate:!0});return}const L=r.current;if(!L)return;const M=_.children.item(T+1),N=M.children.item(0),W=N.offsetLeft,z=N.offsetWidth,P=M.offsetLeft,F=M.offsetWidth,E=_.offsetWidth,D=_.scrollWidth,O=_.scrollLeft,V=L.offsetWidth;let j=0,H=0;if(n.activeLineMode==="auto"?(j=W,H=z):n.activeLineMode==="full"?(j=P,H=F):j=W+(z-V)/2,c){const ne=["auto","full"].includes(n.activeLineMode)?H:V;j=-(E-j-ne)}v.start({x:j,width:H,immediate:k});const U=D-E;if(U<=0)return;let Q=0;c?Q=-ye(E/2-W+z/2-V,0,U):Q=ye(W-(E-z)/2,0,U),(!I||n.autoScroll!==!1)&&y.start({scrollLeft:Q,from:{scrollLeft:O},immediate:k})}te.useIsomorphicLayoutEffect(()=>{C(!m.isAnimating)},[]),Mr(()=>{C()},[u,c,n.activeLineMode]),ga(()=>{C(!m.isAnimating)},o),va(()=>{C(!m.isAnimating,!0)},o,{subtree:!0,childList:!0,characterData:!0});const{run:w}=te.useThrottleFn((k=!1)=>{const I=o.current;if(!I)return;const _=I.scrollLeft;let T=!1,L=!1;c?(T=Math.round(-_)+I.offsetWidth<I.scrollWidth,L=_<0):(T=_>0,L=_+I.offsetWidth<I.scrollWidth),S.start({leftMaskOpacity:T?1:0,rightMaskOpacity:L?1:0,immediate:k})},{wait:100,trailing:!0,leading:!0});return te.useIsomorphicLayoutEffect(()=>{w(!0)},[]),Y(n,i.createElement("div",{className:Me,style:{direction:n.direction}},i.createElement("div",{className:`${Me}-header`},i.createElement(ke.div,{className:K(`${Me}-header-mask`,`${Me}-header-mask-left`),style:{opacity:g}}),i.createElement(ke.div,{className:K(`${Me}-header-mask`,`${Me}-header-mask-right`),style:{opacity:x}}),i.createElement(ke.div,{className:`${Me}-tab-list`,ref:o,scrollLeft:p,onScroll:w,role:"tablist"},i.createElement(ke.div,{ref:r,className:`${Me}-tab-line`,style:{width:n.activeLineMode==="fixed"?"var(--fixed-active-line-width, 30px)":b,x:m}}),l.map(k=>Y(k.props,i.createElement("div",{key:k.key,className:K(`${Me}-tab-wrapper`,{[`${Me}-tab-wrapper-stretch`]:n.stretch})},i.createElement("div",{onClick:()=>{const{key:I}=k;k.props.disabled||I!=null&&d(I.toString())},className:K(`${Me}-tab`,{[`${Me}-tab-active`]:k.key===u,[`${Me}-tab-disabled`]:k.props.disabled}),role:"tab","aria-selected":k.key===u},k.props.title)))))),l.map(k=>{if(k.props.children===void 0)return null;const I=k.key===u;return i.createElement(Jn,{key:k.key,active:I,forceRender:k.props.forceRender,destroyOnClose:k.props.destroyOnClose},i.createElement("div",{className:`${Me}-content`,style:{display:I?"block":"none"}},k.props.children))})))},{Tab:C0}),Sn="adm-list",w0={mode:"default"},k0=i.forwardRef((t,e)=>{const n=oe(w0,t),o=i.useRef(null);return i.useImperativeHandle(e,()=>({get nativeElement(){return o.current}})),Y(n,i.createElement("div",{className:K(Sn,`${Sn}-${n.mode}`),ref:o},n.header&&i.createElement("div",{className:`${Sn}-header`},n.header),i.createElement("div",{className:`${Sn}-body`},i.createElement("div",{className:`${Sn}-body-inner`},n.children))))});function Eo(t){return t!=null&&t!==!1}const it="adm-list-item",qt=we(k0,{Item:t=>{var e,n;const{arrow:o,arrowIcon:r}=t,{list:s={}}=Pe(),a=(e=t.clickable)!==null&&e!==void 0?e:!!t.onClick,l=(n=o!=null?o:r)!==null&&n!==void 0?n:a,c=Ko(s.arrowIcon,o!==!0?o:null,r!==!0?r:null),u=i.createElement("div",{className:`${it}-content`},Eo(t.prefix)&&i.createElement("div",{className:`${it}-content-prefix`},t.prefix),i.createElement("div",{className:`${it}-content-main`},Eo(t.title)&&i.createElement("div",{className:`${it}-title`},t.title),t.children,Eo(t.description)&&i.createElement("div",{className:`${it}-description`},t.description)),Eo(t.extra)&&i.createElement("div",{className:`${it}-content-extra`},t.extra),l&&i.createElement("div",{className:`${it}-content-arrow`},c||i.createElement(id,null)));return Y(t,i.createElement(a?"a":"div",{className:K(`${it}`,a?["adm-plain-anchor"]:[],t.disabled&&`${it}-disabled`),onClick:t.disabled?void 0:t.onClick},u))}}),Fa=i.createContext(null),E0="adm-check-list",I0={multiple:!1,defaultValue:[],activeIcon:i.createElement(Fi,null)},$0=t=>{const{checkList:e={}}=Pe(),n=oe(I0,e,t),[o,r]=Ie(n);function s(m){n.multiple?r([...o,m]):r([m])}function a(m){r(o.filter(b=>b!==m))}const{activeIcon:l,extra:c,disabled:u,readOnly:d}=n;return i.createElement(Fa.Provider,{value:{value:o,check:s,uncheck:a,activeIcon:l,extra:c,disabled:u,readOnly:d}},Y(n,i.createElement(qt,{mode:n.mode,className:E0},n.children)))},Io="adm-check-list-item",$o=we($0,{Item:t=>{const e=i.useContext(Fa);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:`${Io}-extra`},s);return Y(t,i.createElement(qt.Item,{title:t.title,className:K(Io,o&&`${Io}-readonly`,n&&`${Io}-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 _0(t){var e=t+"",n=e.indexOf("...");return n>=0&&(n<e.indexOf(")")||e.indexOf("arguments")>=0)}function Ma(t,e){e||(e={});var n=e.vargs||_0(t),o=[],r=new Map,s,a,l=function(v){return a=setTimeout(function(){if(s){r.delete(v);return}o.splice(v,1)},e.maxAge)},c=e.maxAge>0&&e.maxAge<1/0?l:0,u=e.equals?e.equals:0,d=e.maxArgs,m=e.serializer,b;return t.length===1&&!e.equals&&!n?(b=function(v){m&&(v=m(v));var p;return r.get(v)||(!c||c(v),r.set(v,p=t.call(this,v)),p)},s=1):u?b=function(){for(var v=d||arguments.length,p=o.length,y=-1;++y<p;)if(o[y].length===v){for(var g=-1;++g<v&&u(arguments[g],o[y][g]););if(g===v)return o[y].val}return o[y]=arguments,!c||c(y),arguments.val=t.apply(this,o[y])}:b=function(){for(var v=d||arguments.length,p=o.length,y=-1;++y<p;)if(o[y].length===v){for(var g=-1;++g<v&&arguments[g]===o[y][g];);if(g===v)return o[y].val}return o[y]=arguments,!c||c(y),arguments.val=t.apply(this,o[y])},b.clear=function(){a&&clearTimeout(a),r.clear(),o=[]},b.keys=function(){return s?[...r.keys()]:o.slice()},b.values=function(){return s?[...r.values()]:o.map(v=>v.val)},b}function P0(t,e){const{valueName:n,childrenName:o}=e,r=i.useMemo(()=>Ma(l=>{const c=[];let u=t;for(const d of l){const m=u.find(b=>b[n]===d);if(!m||(c.push(m),!m[o]))break;u=m[o]}return c},{equals:Br}),[t]),s=i.useMemo(()=>Ma(l=>l.reduce((u,d)=>{var m;return((m=u.find(b=>b[n]===d))===null||m===void 0?void 0:m[o])||[]},t).length===0,{equals:Br}),[t]);function a(l){return{get items(){return r(l)},get isLeaf(){return s(l)}}}return a}const Na=[];function F0(t,e){const n=[];for(let o=t;o<=e;o++)n.push(o);return n}const wn="adm-skeleton",Wr=t=>Y(t,i.createElement("div",{className:K(wn,{[`${wn}-animated`]:t.animated})})),M0=t=>Y(t,i.createElement(Wr,{animated:t.animated,className:`${wn}-title`})),N0={lineCount:3},_o=we(Wr,{Title:M0,Paragraph:t=>{const e=oe(N0,t),n=F0(1,e.lineCount),o=i.createElement("div",{className:`${wn}-paragraph`},n.map(r=>i.createElement(Wr,{key:r,animated:e.animated,className:`${wn}-paragraph-line`})));return Y(e,o)}}),T0=(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)]),Ye="adm-cascader-view",O0={defaultValue:[]},D0=we(t=>{const e=oe(O0,t),{locale:n}=Pe(),[o,r,s,a]=T0(e.fieldNames),l=P0(e.options,{valueName:r,childrenName:s}),[c,u]=Ie(Object.assign(Object.assign({},e),{onChange:g=>{var x;(x=e.onChange)===null||x===void 0||x.call(e,g,l(g))}})),[d,m]=i.useState(0),b=i.useMemo(()=>{const g=[];let x=e.options,S=!1;for(const C of c){const w=x.find(k=>k[r]===C);if(g.push({selected:w,options:x}),!w||!w[s]){S=!0;break}x=w[s]}return S||g.push({selected:void 0,options:x}),g},[c,e.options]);te.useUpdateEffect(()=>{var g;(g=e.onTabsChange)===null||g===void 0||g.call(e,d)},[d]),i.useEffect(()=>{m(b.length-1)},[c]),i.useEffect(()=>{const g=b.length-1;d>g&&m(g)},[d,b]);const v=(g,x)=>{const S=c.slice(0,x);g!==void 0&&(S[x]=g),u(S)},p=g=>e.loading||g===Na,y=e.placeholder||n.Cascader.placeholder;return Y(e,i.createElement("div",{className:Ye},i.createElement(ko,{activeKey:d.toString(),onChange:g=>{const x=parseInt(g);m(x)},stretch:!1,className:`${Ye}-tabs`},b.map((g,x)=>{const S=g.selected;return i.createElement(ko.Tab,{key:x.toString(),title:i.createElement("div",{className:`${Ye}-header-title`},S?S[o]:typeof y=="function"?y(x):y),forceRender:!0},i.createElement("div",{className:`${Ye}-content`},p(g.options)?i.createElement("div",{className:`${Ye}-skeleton`},i.createElement(_o,{className:`${Ye}-skeleton-line-1`,animated:!0}),i.createElement(_o,{className:`${Ye}-skeleton-line-2`,animated:!0}),i.createElement(_o,{className:`${Ye}-skeleton-line-3`,animated:!0}),i.createElement(_o,{className:`${Ye}-skeleton-line-4`,animated:!0})):i.createElement($o,{value:[c[x]],onChange:C=>v(C[0],x),activeIcon:e.activeIcon},g.options.map(C=>{const w=c[x]===C[r];return i.createElement($o.Item,{value:C[r],key:C[r],disabled:C[a],className:K(`${Ye}-item`,{[`${Ye}-item-active`]:w})},C[o])}))))}))))},{optionSkeleton:Na}),Ta=i.createContext(null),A0={disabled:!1,defaultValue:[]},L0=t=>{const e=oe(A0,t),[n,o]=Ie(e);return i.createElement(Ta.Provider,{value:{value:n,disabled:e.disabled,check:r=>{o([...n,r])},uncheck:r=>{o(n.filter(s=>s!==r))}}},e.children)},Oa=i.memo(t=>Y(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"})))),B0=i.memo(t=>Y(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"})))),Da=t=>{const e=i.useRef(null),n=te.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})},gt="adm-checkbox",z0={defaultChecked:!1,indeterminate:!1},V0=i.forwardRef((t,e)=>{const n=i.useContext(Ta),o=oe(z0,t);let[r,s]=Ie({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:`${gt}-custom-icon`},o.icon(r,o.indeterminate)):i.createElement("div",{className:`${gt}-icon`},o.indeterminate?i.createElement(B0,null):r&&i.createElement(Oa,null));return Y(o,i.createElement("label",{onClick:o.onClick,className:K(gt,{[`${gt}-checked`]:r&&!o.indeterminate,[`${gt}-indeterminate`]:o.indeterminate,[`${gt}-disabled`]:a,[`${gt}-block`]:o.block})},i.createElement(Da,{type:"checkbox",checked:r,onChange:s,disabled:a,id:o.id}),c(),o.children&&i.createElement("div",{className:`${gt}-content`},o.children)))}),Hr=we(V0,{Group:L0});var Aa={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(xt,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}}})})(Aa);var Z0=Aa.exports;const La=Ct(Z0);var Ba={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(xt,function(){return function(n,o){o.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}})})(Ba);var j0=Ba.exports;const za=Ct(j0),kn="TILL_NOW";he.extend(Nr),he.extend(La),he.extend(za);const vt={year:0,month:1,day:2,hour:3,minute:4,second:5};function K0(t,e,n,o,r,s,a){const l=[],c=e.getFullYear(),u=e.getMonth()+1,d=e.getDate(),m=e.getHours(),b=e.getMinutes(),v=e.getSeconds(),p=n.getFullYear(),y=n.getMonth()+1,g=n.getDate(),x=n.getHours(),S=n.getMinutes(),C=n.getSeconds(),w=vt[o],k=parseInt(t[0]),I=he(Ur([t[0],t[1],"1"])),_=parseInt(t[1]),T=parseInt(t[2]),L=parseInt(t[3]),M=parseInt(t[4]),N=k===c,W=k===p,z=N&&_===u,P=W&&_===y,F=z&&T===d,E=P&&T===g,D=F&&L===m,O=E&&L===x,V=D&&M===b,j=O&&M===S,H=(U,Q,ne)=>{let ee=[];for(let de=U;de<=Q;de++)ee.push(de);const Ne=t.slice(0,vt[ne]),q=s==null?void 0:s[ne];return q&&typeof q=="function"&&(ee=ee.filter(de=>q(de,{get date(){const Z=[...Ne,de.toString()];return Ur(Z)}}))),ee};if(w>=vt.year){const ne=H(c,p,"year");l.push(ne.map(ee=>({label:r("year",ee),value:ee.toString()})))}if(w>=vt.month){const ne=H(N?u:1,W?y:12,"month");l.push(ne.map(ee=>({label:r("month",ee),value:ee.toString()})))}if(w>=vt.day){const U=z?d:1,Q=P?g:I.daysInMonth(),ne=H(U,Q,"day");l.push(ne.map(ee=>({label:r("day",ee),value:ee.toString()})))}if(w>=vt.hour){const ne=H(F?m:0,E?x:23,"hour");l.push(ne.map(ee=>({label:r("hour",ee),value:ee.toString()})))}if(w>=vt.minute){const ne=H(D?b:0,O?S:59,"minute");l.push(ne.map(ee=>({label:r("minute",ee),value:ee.toString()})))}if(w>=vt.second){const ne=H(V?v:0,j?C:59,"second");l.push(ne.map(ee=>({label:r("second",ee),value:ee.toString()})))}if(a&&(l[0].push({label:r("now",null),value:kn}),kn===(t==null?void 0:t[0])))for(let U=1;U<l.length;U+=1)l[U]=[];return l}function W0(t){return t?[t.getFullYear().toString(),(t.getMonth()+1).toString(),t.getDate().toString(),t.getHours().toString(),t.getMinutes().toString(),t.getSeconds().toString()]:[]}function Ur(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",m=(s=t[4])!==null&&s!==void 0?s:"0",b=(a=t[5])!==null&&a!==void 0?a:"0";return new Date(parseInt(l),parseInt(c)-1,parseInt(u),parseInt(d),parseInt(m),parseInt(b))}var Va={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(xt,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 m=this.$utils(),b=!!m.u(d)||d;if(m.p(u)===o){var v=this.quarter()-1;return b?this.month(3*v).startOf(n).startOf("day"):this.month(3*v+2).endOf(n).endOf("day")}return c.bind(this)(u,d)}}})})(Va);var H0=Va.exports;const U0=Ct(H0);he.extend(U0);const Po={year:0,quarter:1};function Y0(t,e,n,o,r,s){const a=[],l=e.getFullYear(),c=n.getFullYear(),u=Po[o],d=parseInt(t[0]),m=d===l,b=d===c,v=he(e),p=he(n),y=v.quarter(),g=p.quarter(),x=(S,C,w)=>{let k=[];for(let T=S;T<=C;T++)k.push(T);const I=t.slice(0,Po[w]),_=s==null?void 0:s[w];return _&&typeof _=="function"&&(k=k.filter(T=>_(T,{get date(){const L=[...I,T.toString()];return Za(L)}}))),k};if(u>=Po.year){const w=x(l,c,"year");a.push(w.map(k=>({label:r("year",k),value:k.toString()})))}if(u>=Po.quarter){const w=x(m?y:1,b?g:4,"quarter");a.push(w.map(k=>({label:r("quarter",k),value:k.toString()})))}return a}function G0(t){if(!t)return[];const e=he(t);return[e.year().toString(),e.quarter().toString()]}function Za(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 he().year(parseInt(o)).quarter(parseInt(r)).hour(0).minute(0).second(0).toDate()}he.extend(Nr),he.extend(La),he.extend(za);const En={year:0,week:1,"week-day":2};function q0(t,e,n,o,r,s){const a=[],l=e.getFullYear(),c=n.getFullYear(),u=En[o],d=parseInt(t[0]),m=d===l,b=d===c,v=he(e),p=he(n),y=v.isoWeek(),g=p.isoWeek(),x=v.isoWeekday(),S=p.isoWeekday(),C=parseInt(t[1]),w=m&&C===y,k=b&&C===g,I=he(`${d}-01-01`).isoWeeksInYear(),_=(T,L,M)=>{let N=[];for(let P=T;P<=L;P++)N.push(P);const W=t.slice(0,En[M]),z=s==null?void 0:s[M];return z&&typeof z=="function"&&(N=N.filter(P=>z(P,{get date(){const F=[...W,P.toString()];return ja(F)}}))),N};if(u>=En.year){const M=_(l,c,"year");a.push(M.map(N=>({label:r("year",N),value:N.toString()})))}if(u>=En.week){const M=_(m?y:1,b?g:I,"week");a.push(M.map(N=>({label:r("week",N),value:N.toString()})))}if(u>=En["week-day"]){const M=_(w?x:1,k?S:7,"week-day");a.push(M.map(N=>({label:r("week-day",N),value:N.toString()})))}return a}function X0(t){if(!t)return[];const e=he(t);return[e.isoWeekYear().toString(),e.isoWeek().toString(),e.isoWeekday().toString()]}function ja(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 he().year(parseInt(r)).isoWeek(parseInt(s)).isoWeekday(parseInt(a)).hour(0).minute(0).second(0).toDate()}const J0={year:1,month:2,day:3,hour:4,minute:5,second:6},Q0=(t,e)=>{if(e.includes("week"))return X0(t);if(e.includes("quarter"))return G0(t);{const n=e;return W0(t).slice(0,J0[n])}},Ka=(t,e)=>{if((t==null?void 0:t[0])===kn){const n=new Date;return n.tillNow=!0,n}return e.includes("week")?ja(t):e.includes("quarter")?Za(t):Ur(t)},R0=(t,e,n,o,r,s,a)=>o.startsWith("week")?q0(t,e,n,o,r,s):o.startsWith("quarter")?Y0(t,e,n,o,r,s):K0(t,e,n,o,r,s,a);function ef(t){const{locale:e}=Pe();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 Wa=new Date().getFullYear(),tf={min:new Date(new Date().setFullYear(Wa-10)),max:new Date(new Date().setFullYear(Wa+10)),precision:"day",defaultValue:null},Ha=i.forwardRef((t,e)=>{const n=oe(tf,t),{renderLabel:o}=n,[r,s]=Ie({value:n.value,defaultValue:n.defaultValue,onChange:b=>{var v;b!==null&&((v=n.onConfirm)===null||v===void 0||v.call(n,b))}}),a=i.useMemo(()=>new Date,[]),l=ef(o),c=i.useMemo(()=>{let b=r!=null?r:a;return b.tillNow?[kn]:(b=new Date(ye(b.getTime(),n.min.getTime(),n.max.getTime())),Q0(b,n.precision))},[r,n.precision,n.min,n.max]),u=i.useCallback(b=>{const v=Ka(b,n.precision);s(v,!0)},[s,n.precision]),d=te.useMemoizedFn(b=>{var v;const p=Ka(b,n.precision);(v=n.onSelect)===null||v===void 0||v.call(n,p)}),m=i.useCallback(b=>R0(b,n.min,n.max,n.precision,l,n.filter,n.tillNow),[n.min,n.max,n.precision,l,n.tillNow]);return Y(n,i.createElement(Pa,{ref:e,columns:m,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},(b,v)=>{var p;return(p=n.children)===null||p===void 0?void 0:p.call(n,r,v)}))});function nf(t){return new Promise(e=>{const n=()=>{const[r,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Ha,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=_r(i.createElement(n,null))})}const of=we(Ha,{prompt:nf,DATE_NOW:kn});var Ua;(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"})(Ua||(Ua={}));const rf=Object.freeze([776,2359,2367,2984,3007,3021,3633,3635,3648,3657,4352,4449,4520]);var Ya;function Yr(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+=sf(n+o,t),mf(t[n+o])&&o++,uf(t[n+o])&&o++,df(t[n+o])&&o++,hf(t[n+o])?o++:(e.push(t.substring(n,n+o)),n+=o,o=0);return e}function sf(t,e){const n=e[t];if(!af(n)||t===e.length-1)return 1;const o=n+e[t+1];let r=e.substring(t+2,t+5);return Ga(o)&&Ga(r)?4:lf(o)&&ff(r)?e.slice(t).indexOf(String.fromCodePoint(917631))+2:cf(r)?4:2}function af(t){return t&&It(t[0].charCodeAt(0),55296,56319)}function Ga(t){return It(Gr(t),127462,127487)}function lf(t){return It(Gr(t),127988,127988)}function cf(t){return It(Gr(t),127995,127999)}function uf(t){return typeof t=="string"&&It(t.charCodeAt(0),65024,65039)}function df(t){return typeof t=="string"&&It(t.charCodeAt(0),8400,8447)}function ff(t){const e=t.codePointAt(0);return typeof t=="string"&&typeof e=="number"&&It(e,917504,917631)}function mf(t){return typeof t=="string"&&rf.includes(t.charCodeAt(0))}function hf(t){return typeof t=="string"&&t.charCodeAt(0)===8205}function Gr(t){return(t.charCodeAt(0)-55296<<10)+(t.charCodeAt(1)-56320)+65536}function It(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"})(Ya||(Ya={}));const $t="adm-error-block",pf={status:"default"};function gf(t){return n=>{var o;const r=oe(pf,n),{locale:s}=Pe(),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 Y(r,i.createElement("div",{className:K($t,{[`${$t}-full-page`]:r.fullPage})},i.createElement("div",{className:`${$t}-image`},d),i.createElement("div",{className:`${$t}-description`},![void 0,null].includes(c)&&i.createElement("div",{className:`${$t}-description-title`},c),![void 0,null].includes(l)&&i.createElement("div",{className:`${$t}-description-subtitle`},l)),r.children&&i.createElement("div",{className:`${$t}-content`},r.children)))}}const vf=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"}))),bf=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)"})))),yf=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"})))),xf=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})))),Cf=gf({default:vf,disconnected:bf,empty:yf,busy:xf});let Xt=null,Jt=null;Ot&&(Xt=document.createElement("div"),Xt.className="adm-px-tester",Xt.style.setProperty("--size","10"),document.body.appendChild(Xt),Jt=document.createElement("div"),Jt.className="adm-px-tester",document.body.appendChild(Jt));function Sf(t){return Xt===null||Jt===null||Xt.getBoundingClientRect().height===10?t:(Jt.style.setProperty("--size",t.toString()),Jt.getBoundingClientRect().height)}const qa="adm-grid",et=we(t=>{const e={"--columns":t.columns.toString()},{gap:n}=t;return n!==void 0&&(Array.isArray(n)?(e["--gap-horizontal"]=Et(n[0]),e["--gap-vertical"]=Et(n[1])):e["--gap"]=Et(n)),Y(t,i.createElement("div",{className:qa,style:e},t.children))},{Item:t=>{const e=oe({span:1},t),n={"--item-span":e.span};return Y(e,i.createElement("div",{className:`${qa}-item`,style:n,onClick:e.onClick},e.children))}}),wf=c1([Qi,qd]),Fo=()=>[1,0,0,1,0,0],Xa=t=>t[4],Ja=t=>t[5],In=t=>t[0],$n=(t,e,n)=>Qa([1,0,0,1,e,n],t),kf=(t,e,n=e)=>Qa([e,0,0,n,0,0],t),Ef=(t,[e,n])=>[t[0]*e+t[2]*n+t[4],t[1]*e+t[3]*n+t[5]],Qa=(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]],qr="adm-image-viewer",Ra=t=>{const{dragLockRef:e,maxZoom:n}=t,o=i.useRef([]),r=i.useRef(null),s=i.useRef(null),[{matrix:a},l]=Ve(()=>({matrix:Fo(),config:{tension:200}})),c=te.useSize(r),u=te.useSize(s),d=i.useRef(!1),m=p=>{if(!c||!u)return{x:{position:0,minX:0,maxX:0},y:{position:0,minY:0,maxY:0}};const y=-c.width/2,g=-c.height/2,x=-u.width/2,S=-u.height/2,C=In(p),w=C*u.width,k=C*u.height,I=y-(w-c.width),_=y,T=g-(k-c.height),L=g,[M,N]=Ef(p,[x,S]);return{x:{position:M,minX:I,maxX:_},y:{position:N,minY:T,maxY:L}}},b=(p,y,g,x=0)=>[p<=y-x,p>=g+x],v=(p,y,g=!1)=>{if(!c||!u)return p;const x=In(p),S=x*u.width,C=x*u.height,{x:{position:w,minX:k,maxX:I},y:{position:_,minY:T,maxY:L}}=m(p);if(y==="translate"){let M=w,N=_;return S>c.width?M=g?ye(w,k,I):So(w,k,I,x*50):M=-S/2,C>c.height?N=g?ye(_,T,L):So(_,T,L,x*50):N=-C/2,$n(p,M-w,N-_)}if(y==="scale"&&g){const[M,N]=[S>c.width?ye(w,k,I):-S/2,C>c.height?ye(_,T,L):-C/2];return $n(p,M-w,N-_)}return p};return wf({onDrag:p=>{var y;if(p.first){const{x:{position:x,minX:S,maxX:C}}=m(a.get());o.current=b(x,S,C);return}if(p.pinching)return p.cancel();if(p.tap&&p.elapsedTime>0&&p.elapsedTime<1e3){(y=t.onTap)===null||y===void 0||y.call(t);return}const g=In(a.get());if(e&&(e.current=g!==1),!d.current&&g<=1)l.start({matrix:Fo()});else{const x=a.get(),S=[p.offset[0]-Xa(x),p.offset[1]-Ja(x)],C=$n(x,...p.last?[S[0]+p.velocity[0]*p.direction[0]*200,S[1]+p.velocity[1]*p.direction[1]*200]:S);l.start({matrix:v(C,"translate",p.last),immediate:!p.last});const{x:{position:w,minX:k,maxX:I}}=m(C);p.last&&o.current.some(_=>_)&&b(w,k,I).some(_=>_)&&(e&&(e.current=!1),l.start({matrix:Fo()}))}},onPinch:p=>{var y;d.current=!p.last;const[g]=p.offset;if(g<0)return;let x;n==="auto"?x=c&&u?Math.max(c.height/u.height,c.width/u.width):1:x=n;const S=p.last?ye(g,1,x):g;if((y=t.onZoomChange)===null||y===void 0||y.call(t,S),p.last&&S<=1)l.start({matrix:Fo()}),e&&(e.current=!1);else{if(!c)return;const C=a.get(),w=In(C),k=p.origin[0]-c.width/2,I=p.origin[1]-c.height/2;let _=$n(C,-k,-I);_=kf(_,S/w),_=$n(_,k,I),l.start({matrix:v(_,"scale",p.last),immediate:!p.last}),e&&(e.current=!0)}}},{target:r,drag:{from:()=>[Xa(a.get()),Ja(a.get())],pointer:{touch:!0}},pinch:{from:()=>[In(a.get()),0],pointer:{touch:!0}}}),i.createElement("div",{className:`${qr}-slide`},i.createElement("div",{className:`${qr}-control`,ref:r},i.createElement(ke.div,{className:`${qr}-image-wrapper`,style:{matrix:a}},i.createElement("img",{ref:s,src:t.image,draggable:!1,alt:t.image}))))},Xr="adm-image-viewer",If=i.forwardRef((t,e)=>{const n=window.innerWidth+Sf(16),[{x:o},r]=Ve(()=>({x:t.defaultIndex*n,config:{tension:250,clamp:!0}})),s=t.images.length;function a(u,d=!1){var m;const b=ye(u,0,s-1);(m=t.onIndexChange)===null||m===void 0||m.call(t,b),r.start({x:b*n,immediate:d})}i.useImperativeHandle(e,()=>({swipeTo:a}));const l=i.useRef(!1),c=oo(u=>{if(l.current)return;const[d]=u.offset;if(u.last){const m=Math.floor(d/n),b=m+1,v=Math.min(u.velocity[0]*2e3,n)*u.direction[0];a(ye(Math.round((d+v)/n),m,b))}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:`${Xr}-slides`},c()),i.createElement(ke.div,{className:`${Xr}-indicator`},o.to(u=>`${ye(Math.round(u/n),0,s-1)+1} / ${s}`)),i.createElement(ke.div,{className:`${Xr}-slides-inner`,style:{x:o.to(u=>-u)}},t.images.map((u,d)=>i.createElement(Ra,{key:d,image:u,onTap:t.onTap,maxZoom:t.maxZoom,onZoomChange:m=>{if(m!==1){const b=Math.round(o.get()/n);r.start({x:b*n})}},dragLockRef:l}))))}),Mo="adm-image-viewer",el={maxZoom:3,getContainer:null,visible:!1},tl=t=>{var e,n,o;const r=oe(el,t),s=i.createElement(Qn,{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:K(`${Mo}-content`,(n=r==null?void 0:r.classNames)===null||n===void 0?void 0:n.body)},r.image&&i.createElement(Ra,{image:r.image,onTap:r.onClose,maxZoom:r.maxZoom})),r.image&&i.createElement("div",{className:`${Mo}-footer`},(o=r.renderFooter)===null||o===void 0?void 0:o.call(r,r.image),i.createElement(xn,{position:"bottom"})));return Xn(r.getContainer,s)},$f=Object.assign(Object.assign({},el),{defaultIndex:0}),nl=i.forwardRef((t,e)=>{var n,o,r;const s=oe($f,t),[a,l]=i.useState(s.defaultIndex),c=i.useRef(null);i.useImperativeHandle(e,()=>({swipeTo:(m,b)=>{var v;l(m),(v=c.current)===null||v===void 0||v.swipeTo(m,b)}}));const u=i.useCallback(m=>{var b;m!==a&&(l(m),(b=s.onIndexChange)===null||b===void 0||b.call(s,m))},[s.onIndexChange,a]),d=i.createElement(Qn,{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:K(`${Mo}-content`,(o=s==null?void 0:s.classNames)===null||o===void 0?void 0:o.body)},s.images&&i.createElement(If,{ref:c,defaultIndex:a,onIndexChange:u,images:s.images,onTap:s.onClose,maxZoom:s.maxZoom})),s.images&&i.createElement("div",{className:`${Mo}-footer`},(r=s.renderFooter)===null||r===void 0?void 0:r.call(s,s.images[a],a),i.createElement(xn,{position:"bottom"})));return Xn(s.getContainer,d)}),Qt=new Set;function _f(t){Jr();const e=Cn(i.createElement(tl,Object.assign({},t,{afterClose:()=>{var n;Qt.delete(e),(n=t.afterClose)===null||n===void 0||n.call(t)}})));return Qt.add(e),e}function Pf(t){Jr();const e=Cn(i.createElement(nl,Object.assign({},t,{afterClose:()=>{var n;Qt.delete(e),(n=t.afterClose)===null||n===void 0||n.call(t)}})));return Qt.add(e),e}function Jr(){Qt.forEach(t=>{t.close()}),Qt.clear()}const Ff=we(nl,{show:Pf}),Mf=we(tl,{Multi:Ff,show:_f,clear:Jr}),_t="adm-image-uploader",ol=t=>{const{locale:e}=Pe(),{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:`${_t}-cell-mask`},i.createElement("span",{className:`${_t}-cell-loading`},i.createElement(Zr,{color:"white"}),i.createElement("span",{className:`${_t}-cell-mask-message`},e.ImageUploader.uploading)))}function d(){return r&&i.createElement("span",{className:`${_t}-cell-delete`,onClick:a},s)}return i.createElement("div",{className:K(`${_t}-cell`,t.status==="fail"&&`${_t}-cell-fail`)},i.createElement(ia,{className:`${_t}-cell-image`,src:c,fit:l,onClick:t.onClick}),u(),d())},Pt="adm-space",Nf={direction:"horizontal"},_n=t=>{const e=oe(Nf,t),{direction:n,onClick:o}=e;return Y(e,i.createElement("div",{className:K(Pt,{[`${Pt}-wrap`]:e.wrap,[`${Pt}-block`]:e.block,[`${Pt}-${n}`]:!0,[`${Pt}-align-${e.align}`]:!!e.align,[`${Pt}-justify-${e.justify}`]:!!e.justify}),onClick:o},i.Children.map(e.children,r=>r!=null&&i.createElement("div",{className:`${Pt}-item`},r))))},tt="adm-image-uploader",Tf={disableUpload:!1,deletable:!0,deleteIcon:i.createElement(Rn,{className:`${tt}-cell-delete-icon`}),showUpload:!0,multiple:!1,maxCount:0,defaultValue:[],accept:"image/*",preview:!0,showFailed:!0,imageFit:"cover"},rl=i.forwardRef((t,e)=>{const{locale:n}=Pe(),o=oe(Tf,t),{columns:r}=o,[s,a]=Ie(o),[l,c]=i.useState([]),u=i.useRef(null),d=te.useSize(u),m=i.useRef(null),[b,v]=i.useState(80),p=i.useRef(null);te.useIsomorphicLayoutEffect(()=>{const z=m.current;if(r&&d&&z){const P=d.width,F=ya(window.getComputedStyle(z).getPropertyValue("height"));v((P-F*(r-1))/r)}},[d==null?void 0:d.width]);const y={"--cell-size":b+"px"};te.useIsomorphicLayoutEffect(()=>{c(z=>z.filter(P=>P.url===void 0?!0:!s.some(F=>F.url===P.url)))},[s]),te.useIsomorphicLayoutEffect(()=>{var z;(z=o.onUploadQueueChange)===null||z===void 0||z.call(o,l.map(P=>({id:P.id,status:P.status})))},[l]);const g=i.useRef(0),{maxCount:x,onPreview:S,renderItem:C}=o;function w(z,P){return yt(this,void 0,void 0,function*(){const{beforeUpload:F}=o;let E=z;return E=yield F==null?void 0:F(z,P),E})}function k(z){return o.showFailed?z:z.filter(P=>P.status!=="fail")}function I(z){var P;return yt(this,void 0,void 0,function*(){z.persist();const{files:F}=z.target;if(!F)return;let E=[].slice.call(F);if(z.target.value="",o.beforeUpload){const V=E.map(j=>w(j,E));yield Promise.all(V).then(j=>{E=j.filter(Boolean)})}if(E.length===0)return;if(x>0){const V=s.length+E.length-x;V>0&&(E=E.slice(0,E.length-V),(P=o.onCountExceed)===null||P===void 0||P.call(o,V))}const D=E.map(V=>({id:g.current++,status:"pending",file:V}));c(V=>[...k(V),...D]);const O=[];yield Promise.all(D.map((V,j)=>yt(this,void 0,void 0,function*(){try{const H=yield o.upload(V.file);O[j]=H,c(U=>U.map(Q=>Q.id===V.id?Object.assign(Object.assign({},Q),{status:"success",url:H.url}):Q))}catch(H){throw c(U=>U.map(Q=>Q.id===V.id?Object.assign(Object.assign({},Q),{status:"fail"}):Q)),H}}))).catch(V=>console.error(V)),a(V=>V.concat(O))})}const _=i.useRef(null);function T(z){_.current=Mf.Multi.show({images:s.map(P=>P.url),defaultIndex:z,onClose:()=>{_.current=null}})}te.useUnmount(()=>{var z;(z=_.current)===null||z===void 0||z.close()});const L=k(l),M=o.showUpload&&(x===0||s.length+L.length<x),N=()=>s.map((z,P)=>{var F,E;const D=i.createElement(ol,{key:(F=z.key)!==null&&F!==void 0?F:P,url:(E=z.thumbnailUrl)!==null&&E!==void 0?E:z.url,deletable:o.deletable,deleteIcon:o.deleteIcon,imageFit:o.imageFit,onClick:()=>{o.preview&&T(P),S&&S(P,z)},onDelete:()=>yt(void 0,void 0,void 0,function*(){var O;(yield(O=o.onDelete)===null||O===void 0?void 0:O.call(o,z))!==!1&&a(s.filter((j,H)=>H!==P))})});return C?C(D,z,s):D}),W=i.createElement(i.Fragment,null,N(),l.map(z=>!o.showFailed&&z.status==="fail"?null:i.createElement(ol,{key:z.id,file:z.file,deletable:z.status!=="pending",deleteIcon:o.deleteIcon,status:z.status,imageFit:o.imageFit,onDelete:()=>{c(l.filter(P=>P.id!==z.id))}})),i.createElement("div",{className:`${tt}-upload-button-wrap`,style:M?void 0:{display:"none"}},o.children||i.createElement("span",{className:`${tt}-cell ${tt}-upload-button`,role:"button","aria-label":n.ImageUploader.upload},i.createElement("span",{className:`${tt}-upload-button-icon`},i.createElement(nd,null))),!o.disableUpload&&i.createElement("input",{"aria-label":n.ImageUploader.upload,ref:p,capture:o.capture,accept:o.accept,multiple:o.multiple,type:"file",className:`${tt}-input`,onChange:I})));return i.useImperativeHandle(e,()=>({get nativeElement(){return p.current}})),Y(o,i.createElement("div",{className:tt,ref:u},r?i.createElement(et,{className:`${tt}-grid`,columns:r,style:y},i.createElement("div",{className:`${tt}-gap-measure`,ref:m}),W.props.children):i.createElement(_n,{className:`${tt}-space`,wrap:!0,block:!0},W.props.children)))});function sl({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 te.useIsomorphicLayoutEffect(()=>{const s=n.current;if(!(!o||!s))return s.setAttribute("enterkeyhint",o),()=>{s.removeAttribute("enterkeyhint")}},[o]),r}const No="adm-input",Of={defaultValue:"",clearIcon:i.createElement(od,null),onlyShowClearWhenFocus:!0},Qr=i.forwardRef((t,e)=>{const{locale:n,input:o={}}=Pe(),r=oe(Of,o,t),[s,a]=Ie(r),[l,c]=i.useState(!1),u=i.useRef(!1),d=i.useRef(null),m=sl({onEnterPress:r.onEnterPress,onKeyDown:r.onKeyDown,nativeInputRef:d,enterKeyHint:r.enterKeyHint});i.useImperativeHandle(e,()=>({clear:()=>{a("")},focus:()=>{var p;(p=d.current)===null||p===void 0||p.focus()},blur:()=>{var p;(p=d.current)===null||p===void 0||p.blur()},get nativeElement(){return d.current}}));function b(){let p=s;if(r.type==="number"){const y=p&&ye(parseFloat(p),r.min,r.max).toString();Number(p)!==Number(y)&&(p=y)}p!==s&&a(p)}const v=!r.clearable||!s||r.readOnly?!1:r.onlyShowClearWhenFocus?l:!0;return Y(r,i.createElement("div",{className:K(`${No}`,r.disabled&&`${No}-disabled`)},i.createElement("input",{ref:d,className:`${No}-element`,value:s,onChange:p=>{a(p.target.value)},onFocus:p=>{var y;c(!0),(y=r.onFocus)===null||y===void 0||y.call(r,p)},onBlur:p=>{var y;c(!1),b(),(y=r.onBlur)===null||y===void 0||y.call(r,p)},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:m,onKeyUp:r.onKeyUp,onCompositionStart:p=>{var y;u.current=!0,(y=r.onCompositionStart)===null||y===void 0||y.call(r,p)},onCompositionEnd:p=>{var y;u.current=!1,(y=r.onCompositionEnd)===null||y===void 0||y.call(r,p)},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"]}),v&&i.createElement("div",{className:`${No}-clear`,onMouseDown:p=>{p.preventDefault()},onClick:()=>{var p,y;a(""),(p=r.onClear)===null||p===void 0||p.call(r),L1()&&u.current&&(u.current=!1,(y=d.current)===null||y===void 0||y.blur())},"aria-label":n.Input.clear},r.clearIcon)))}),nt="adm-jumbo-tabs",il=we(t=>{var e;const n=i.useRef(null),o=i.useRef(null),r={};let s=null;const a=[];Lr(t.children,(m,b)=>{if(!i.isValidElement(m))return;const v=m.key;if(typeof v!="string")return;b===0&&(s=v);const p=a.push(m);r[v]=p-1});const[l,c]=Ie({value:t.activeKey,defaultValue:(e=t.defaultActiveKey)!==null&&e!==void 0?e:s,onChange:m=>{var b;m!==null&&((b=t.onChange)===null||b===void 0||b.call(t,m))}}),{scrollLeft:u,animate:d}=q1(n,r[l]);return ga(()=>{d(!0)},o),Y(t,i.createElement("div",{className:nt,ref:o},i.createElement("div",{className:`${nt}-header`},i.createElement(X1,{scrollTrackRef:n}),i.createElement(ke.div,{className:`${nt}-tab-list`,ref:n,scrollLeft:u},a.map(m=>Y(m.props,i.createElement("div",{key:m.key,className:`${nt}-tab-wrapper`},i.createElement("div",{onClick:()=>{const{key:b}=m;m.props.disabled||b!=null&&c(b.toString())},className:K(`${nt}-tab`,{[`${nt}-tab-active`]:m.key===l,[`${nt}-tab-disabled`]:m.props.disabled})},i.createElement("div",{className:`${nt}-tab-title`},m.props.title),i.createElement("div",{className:`${nt}-tab-description`},m.props.description))))))),a.map(m=>{if(m.props.children===void 0)return null;const b=m.key===l;return i.createElement(Jn,{key:m.key,active:b,forceRender:m.props.forceRender,destroyOnClose:m.props.destroyOnClose},i.createElement("div",{className:`${nt}-content`,style:{display:b?"block":"none"}},m.props.children))})))},{Tab:()=>null}),Rt="adm-nav-bar",al=i.createElement(sd,null),Df=t=>{const{navBar:e={}}=Pe(),n=oe(e,t),{back:o,backIcon:r,backArrow:s}=n,a=e.backIcon||al,l=Ko(al,e.backIcon,s===!0?a:s,r===!0?a:r);return Y(n,i.createElement("div",{className:K(Rt)},i.createElement("div",{className:`${Rt}-left`,role:"button"},o!==null&&i.createElement("div",{className:`${Rt}-back`,onClick:n.onBack},l&&i.createElement("span",{className:`${Rt}-back-arrow`},l),i.createElement("span",{"aria-hidden":"true"},o)),n.left),i.createElement("div",{className:`${Rt}-title`},n.children),i.createElement("div",{className:`${Rt}-right`},n.right)))},Pn="adm-page-indicator",Af={color:"primary",direction:"horizontal"},Lf=i.memo(t=>{const e=oe(Af,t),n=[];for(let o=0;o<e.total;o++)n.push(i.createElement("div",{key:o,className:K(`${Pn}-dot`,{[`${Pn}-dot-active`]:e.current===o})}));return Y(e,i.createElement("div",{className:K(Pn,`${Pn}-${e.direction}`,`${Pn}-color-${e.color}`)},n))}),ll=i.createContext(null),Bf={disabled:!1,defaultValue:null},zf=t=>{const e=oe(Bf,t),[n,o]=Ie({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(ll.Provider,{value:{value:n===null?[]:[n],check:r=>{o(r)},uncheck:()=>{},disabled:e.disabled}},e.children)},Ft="adm-radio",Vf={defaultChecked:!1},Rr=we(t=>{const e=oe(Vf,t),n=i.useContext(ll);let[o,r]=Ie({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:`${Ft}-custom-icon`},e.icon(o)):i.createElement("div",{className:`${Ft}-icon`},o&&i.createElement(Oa,null));return Y(e,i.createElement("label",{onClick:e.onClick,className:K(Ft,{[`${Ft}-checked`]:o,[`${Ft}-disabled`]:s,[`${Ft}-block`]:e.block})},i.createElement(Da,{type:"radio",checked:o,onChange:r,disabled:s,id:e.id}),l(),e.children&&i.createElement("div",{className:`${Ft}-content`},e.children)))},{Group:zf}),bt="adm-search-bar",Zf={clearable:!0,onlyShowClearWhenFocus:!1,showCancelButton:!1,defaultValue:"",clearOnCancel:!0},cl=i.forwardRef((t,e)=>{const{locale:n,searchBar:o={}}=Pe(),r=oe(Zf,o,{cancelText:n.common.cancel},t),s=Ko(i.createElement(ad,null),o.searchIcon,t.icon,t.searchIcon),[a,l]=Ie(r),[c,u]=i.useState(!1),d=i.useRef(null),m=i.useRef(!1);i.useImperativeHandle(e,()=>({clear:()=>{var v;return(v=d.current)===null||v===void 0?void 0:v.clear()},focus:()=>{var v;return(v=d.current)===null||v===void 0?void 0:v.focus()},blur:()=>{var v;return(v=d.current)===null||v===void 0?void 0:v.blur()},get nativeElement(){var v,p;return(p=(v=d.current)===null||v===void 0?void 0:v.nativeElement)!==null&&p!==void 0?p:null}}));const b=()=>{let v;return typeof r.showCancelButton=="function"?v=r.showCancelButton(c,a):v=r.showCancelButton&&c,v&&i.createElement("div",{className:`${bt}-suffix`},i.createElement(st,{fill:"none",className:`${bt}-cancel-button`,onClick:()=>{var p,y,g;r.clearOnCancel&&((p=d.current)===null||p===void 0||p.clear()),(y=d.current)===null||y===void 0||y.blur(),(g=r.onCancel)===null||g===void 0||g.call(r)},onMouseDown:p=>{p.preventDefault()}},r.cancelText))};return Y(r,i.createElement("div",{className:K(bt,{[`${bt}-active`]:c})},i.createElement("div",{className:`${bt}-input-box`},s&&i.createElement("div",{className:`${bt}-input-box-icon`},s),i.createElement(Qr,{ref:d,className:K(`${bt}-input`,{[`${bt}-input-without-icon`]:!s}),value:a,onChange:l,maxLength:r.maxLength,autoFocus:r.autoFocus,placeholder:r.placeholder,clearable:r.clearable,onlyShowClearWhenFocus:r.onlyShowClearWhenFocus,onFocus:v=>{var p;u(!0),(p=r.onFocus)===null||p===void 0||p.call(r,v)},onBlur:v=>{var p;u(!1),(p=r.onBlur)===null||p===void 0||p.call(r,v)},onClear:r.onClear,type:"search",enterKeyHint:"search",onEnterPress:()=>{var v,p;m.current||((v=d.current)===null||v===void 0||v.blur(),(p=r.onSearch)===null||p===void 0||p.call(r,a))},"aria-label":n.SearchBar.name,onCompositionStart:v=>{var p;m.current=!0,(p=r.onCompositionStart)===null||p===void 0||p.call(r,v)},onCompositionEnd:v=>{var p;m.current=!1,(p=r.onCompositionEnd)===null||p===void 0||p.call(r,v)}})),b()))}),ul=t=>Y(t,i.createElement("div",{className:"adm-swiper-item",onClick:t.onClick},t.children));function jf(t){const[e,n]=i.useState(t),o=i.useRef(e);return i.useEffect(()=>{o.current=e},[e]),[e,n,o]}function Kf(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 ot="adm-swiper",Wf={mousedown:"onMouseDown",mousemove:"onMouseMove",mouseup:"onMouseUp"},Hf={defaultIndex:0,allowTouchMove:!0,autoplay:!1,autoplayInterval:3e3,loop:!1,direction:"horizontal",slideSize:100,trackOffset:0,stuckAtBoundary:!0,rubberband:!0,stopPropagation:[]};let To;const Uf=i.forwardRef(Fr((t,e)=>{const n=oe(Hf,t),{direction:o,total:r,children:s,indicator:a}=n,[l]=i.useState({}),c=i.useRef(null),u=o==="vertical",d=n.slideSize/100,m=n.trackOffset/100,{validChildren:b,count:v,renderChildren:p}=i.useMemo(()=>{let g=0,x,S;return typeof s=="function"?x=s:S=i.Children.map(s,C=>!i.isValidElement(C)||C.type!==ul?null:(g++,C)),{renderChildren:x,validChildren:S,count:g}},[s]),y=r!=null?r:v;return y===0||!b&&!p?null:()=>{let g=n.loop;d*(y-1)<1&&(g=!1);const x=i.useRef(null);function S(){const Z=x.current;return Z?(u?Z.offsetHeight:Z.offsetWidth)*n.slideSize/100:0}const[C,w,k]=te.useGetState(n.defaultIndex),[I,_,T]=jf(!1);function L(Z){let G=0,re=y-1;return n.stuckAtBoundary&&(G+=m/d,re-=(1-d-m)/d),ye(Z,G,re)}const[{position:M},N]=Ve(()=>({position:L(C)*100,config:{tension:200,friction:30},onRest:()=>{if(T.current||!g)return;const Z=M.get(),G=100*y,re=es(Z,G);re!==Z&&N.start({position:re,immediate:!0})}}),[y]),W=i.useRef(null);function z(){var Z;(Z=W.current)===null||Z===void 0||Z.call(W),T.current=!1}const P=oo(Z=>{if(W.current=Z.cancel,!Z.intentional||(Z.first&&!To&&(To=l),To!==l))return;To=Z.last?void 0:l;const G=S();if(!G)return;const re=u?1:0,ge=Z.offset[re],xe=Z.direction[re],Vo=Z.velocity[re];if(_(!0),!Z.last)N.start({position:ge*100/G,immediate:!0});else{const Nn=Math.floor(ge/G),fp=Nn+1,mp=Math.round((ge+Vo*2e3*xe)/G);F(ye(mp,Nn,fp)),window.setTimeout(()=>{_(!1)})}},{transform:([Z,G])=>[-Z,-G],from:()=>{const Z=S();return[M.get()/100*Z,M.get()/100*Z]},triggerAllEvents:!0,bounds:()=>{if(g)return{};const Z=S(),G=L(0)*Z,re=L(y-1)*Z;return u?{top:G,bottom:re}:{left:G,right:re}},rubberband:n.rubberband,axis:u?"y":"x",preventScroll:!u,pointer:{touch:!0}});function F(Z,G=!1){var re;const ge=Math.round(Z),xe=g?es(ge,y):ye(ge,0,y-1);xe!==k()&&((re=n.onIndexChange)===null||re===void 0||re.call(n,xe)),w(xe),N.start({position:(g?ge:L(ge))*100,immediate:G})}function E(){F(Math.round(M.get()/100)+1)}function D(){F(Math.round(M.get()/100)-1)}i.useImperativeHandle(e,()=>({swipeTo:F,swipeNext:E,swipePrev:D})),te.useIsomorphicLayoutEffect(()=>{const Z=y-1;C>Z&&F(Z,!0)});const{autoplay:O,autoplayInterval:V}=n,j=()=>{c.current=window.setTimeout(()=>{O==="reverse"?D():E(),j()},V)};i.useEffect(()=>{if(!(!O||I))return j(),()=>{c.current&&window.clearTimeout(c.current)}},[O,V,I,y]);function H(Z,G){let re={};return g&&(re={[u?"y":"x"]:M.to(ge=>{let xe=-ge+Z*100;const Vo=y*100,Nn=Vo/2;return xe=es(xe+Nn,Vo)-Nn,`${xe}%`}),[u?"top":"left"]:`-${Z*100}%`}),i.createElement(ke.div,{className:K(`${ot}-slide`,{[`${ot}-slide-active`]:C===Z}),style:re,key:Z},G)}function U(){if(p&&r){const G=Math.max(C-2,0),re=Math.min(C+2,r-1),ge=[];for(let xe=G;xe<=re;xe+=1)ge.push(H(xe,p(xe)));return i.createElement(i.Fragment,null,i.createElement("div",{className:`${ot}-slide-placeholder`,style:{width:`${G*100}%`}}),ge)}return i.Children.map(b,(Z,G)=>H(G,Z))}function Q(){return g?i.createElement("div",{className:`${ot}-track-inner`},U()):i.createElement(ke.div,{className:`${ot}-track-inner`,style:{[u?"y":"x"]:M.to(Z=>`${-Z}%`)}},U())}const ne={"--slide-size":`${n.slideSize}%`,"--track-offset":`${n.trackOffset}%`},ee=Object.assign({},n.allowTouchMove?P():{}),Ne={};for(const Z of n.stopPropagation){const G=Wf[Z];Ne[G]=function(re){re.stopPropagation()}}const q=Kf(ee,Ne);let de=null;return typeof a=="function"?de=a(y,C):a!==!1&&(de=i.createElement("div",{className:`${ot}-indicator`},i.createElement(Lf,Object.assign({},n.indicatorProps,{total:y,current:C,direction:o})))),Y(n,i.createElement("div",{className:K(ot,`${ot}-${o}`),style:ne},i.createElement("div",Object.assign({ref:x,className:K(`${ot}-track`,{[`${ot}-track-allow-touch-move`]:n.allowTouchMove}),onClickCapture:Z=>{T.current&&Z.stopPropagation(),z()}},q),Q()),de))}}));function es(t,e){const n=t%e;return n<0?n+e:n}const Oo=we(Uf,{Item:ul}),Yf=()=>null,at="adm-tab-bar",Gf={safeArea:!1},ts=we(t=>{var e;const n=oe(Gf,t);let o=null;const r=[];Lr(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]=Ie({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 Y(n,i.createElement("div",{className:at},i.createElement("div",{className:`${at}-wrap`},r.map(l=>{const c=l.key===s;function u(){const d=l.props.icon&&i.createElement("div",{className:`${at}-item-icon`},typeof l.props.icon=="function"?l.props.icon(c):l.props.icon),m=l.props.title&&i.createElement("div",{className:K(`${at}-item-title`,!!d&&`${at}-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(la,{content:l.props.badge,className:`${at}-icon-badge`},d),m):m?i.createElement(la,{content:l.props.badge,className:`${at}-title-badge`},m):null}return Y(l.props,i.createElement("div",{key:l.key,onClick:()=>{var d,m;const{key:b}=l;b!=null&&(a(b.toString()),(m=(d=l.props).onClick)===null||m===void 0||m.call(d))},className:K(`${at}-item`,{[`${at}-item-active`]:c})},u()))})),n.safeArea&&i.createElement(xn,{position:"bottom"})))},{Item:Yf}),dl="adm-tag",qf={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)"},Xf={color:"default",fill:"solid",round:!1},ns=t=>{var e;const n=oe(Xf,t),o=(e=qf[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 Y(n,i.createElement("span",{style:r,onClick:n.onClick,className:K(dl,{[`${dl}-round`]:n.round})},n.children))},Fn="adm-text-area",fl={rows:2,showCount:!1,autoSize:!1,defaultValue:""},ml=i.forwardRef((t,e)=>{const n=oe(fl,t),{autoSize:o,showCount:r,maxLength:s}=n,[a,l]=Ie(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),m=sl({onEnterPress:n.onEnterPress,onKeyDown:n.onKeyDown,nativeInputRef:c,enterKeyHint:n.enterKeyHint});i.useImperativeHandle(e,()=>({clear:()=>{l("")},focus:()=>{var g;(g=c.current)===null||g===void 0||g.focus()},blur:()=>{var g;(g=c.current)===null||g===void 0||g.blur()},get nativeElement(){return c.current}})),te.useIsomorphicLayoutEffect(()=>{if(!o)return;const g=c.current,x=d.current;if(!g||(g.style.height=u.current,!x))return;let S=x.scrollHeight;if(typeof o=="object"){const C=window.getComputedStyle(g),w=parseFloat(C.lineHeight);o.minRows&&(S=Math.max(S,o.minRows*w)),o.maxRows&&(S=Math.min(S,o.maxRows*w))}u.current=`${S}px`,g.style.height=`${S}px`},[a,o]);const b=i.useRef(!1);let v;const p=Yr(a).length;typeof r=="function"?v=r(p,s):r&&(v=i.createElement("div",{className:`${Fn}-count`},s===void 0?p:p+"/"+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)),Y(n,i.createElement("div",{className:Fn},i.createElement("textarea",{ref:c,className:`${Fn}-element`,rows:y,value:a,placeholder:n.placeholder,onChange:g=>{let x=g.target.value;s&&!b.current&&(x=Yr(x).slice(0,s).join("")),l(x)},id:n.id,onCompositionStart:g=>{var x;b.current=!0,(x=n.onCompositionStart)===null||x===void 0||x.call(n,g)},onCompositionEnd:g=>{var x;if(b.current=!1,s){const S=g.target.value;l(Yr(S).slice(0,s).join(""))}(x=n.onCompositionEnd)===null||x===void 0||x.call(n,g)},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:m}),v,o&&i.createElement("textarea",{ref:d,className:`${Fn}-element ${Fn}-element-hidden`,value:a,rows:y,"aria-hidden":!0,readOnly:!0})))});ml.defaultProps=fl;const lt="adm-toast",Jf={maskClickable:!0,stopPropagation:["click"]},Qf=t=>{const e=oe(Jf,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(Fi,{className:`${lt}-icon-success`});case"fail":return i.createElement(Rn,{className:`${lt}-icon-fail`});case"loading":return i.createElement(Zr,{color:"white",className:`${lt}-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(Qn,{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:K(`${lt}-mask`,e.maskClassName),stopPropagation:e.stopPropagation},i.createElement("div",{className:K(`${lt}-wrap`)},i.createElement("div",{style:{top:l},className:K(`${lt}-main`,r?`${lt}-main-icon`:`${lt}-main-text`)},a&&i.createElement("div",{className:`${lt}-icon`},a),i.createElement(w1,null,o))))};let Ae=null,os=null;const Do={duration:2e3,position:"center",maskClickable:!0},Rf=t=>i.createElement(Qf,Object.assign({},t));function em(t){var e;const n=oe(Do,typeof t=="string"?{content:t}:t),o=i.createElement(Rf,Object.assign({},n,{onClose:()=>{Ae=null}}));return Ae?!((e=Ae.isRendered)===null||e===void 0)&&e.call(Ae)?Ae.replace(o):(Ae.close(),Ae=Cn(o)):Ae=Cn(o),os&&window.clearTimeout(os),n.duration!==0&&(os=window.setTimeout(()=>{hl()},n.duration)),Ae}function hl(){Ae==null||Ae.close(),Ae=null}function tm(t){t.duration!==void 0&&(Do.duration=t.duration),t.position!==void 0&&(Do.position=t.position),t.maskClickable!==void 0&&(Do.maskClickable=t.maskClickable)}const rs={show:em,clear:hl,config:tm},pl={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}}}},nm=t=>{const{t:e}=ce(),n=$.useFieldSchema(),{dn:o}=h.useDesignable(),r=$.useField(),s={dn:o,field:r,fieldSchema:n};return f.jsx(h.SchemaSettingsDropdown,ae(B({title:f.jsx(le.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)"},icon:f.jsx(Te.MenuOutlined,{}),type:"dashed",children:e("Menu configuration")})},s),{children:f.jsx(h.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:e("Delete menu block")},breakRemoveOn:{"x-component":"Grid"}},"remove")}))},Mn=()=>{const{dn:t}=h.useDesignable(),e=$.useFieldSchema(),n=$.useField();return{onUpdateComponentProps:te.useMemoizedFn(r=>fe(this,null,function*(){Le.set(e,"x-component-props",r),n.componentProps=B(B({},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()}))}},gl={properties:{name:{type:"string",title:ut("Menu name"),required:!0,"x-component":"Input","x-decorator":"FormItem"},icon:{"x-decorator":"FormItem","x-component":"IconPicker",title:ut("Icon"),"x-component-props":{}}}},om=t=>{const{icon:e,name:n}=t,o=h.useDesigner(),r=ie.useNavigate(),s=ie.useLocation(),a=$.useFieldSchema(),l=h.useCompile(),c=ie.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 f.jsxs(h.SortableItem,{className:h.cx("tb-mobile-menu-item",h.css`
|
|
142
142
|
width: 100%;
|
|
143
143
|
background: var(--adm-color-background);
|
|
144
144
|
> .adm-list-item {
|
|
145
145
|
background: inherit;
|
|
146
146
|
}
|
|
147
|
-
`),children:[f.jsx(qt.Item,ae(B({arrow:!0,clickable:!0},
|
|
148
|
-
--adm-color-primary: ${
|
|
149
|
-
--adm-color-primary-hover: ${
|
|
150
|
-
--adm-color-primary-active: ${
|
|
151
|
-
--padding-left: ${
|
|
152
|
-
--adm-color-background: ${
|
|
153
|
-
--adm-color-border: ${
|
|
147
|
+
`),children:[f.jsx(qt.Item,ae(B({arrow:!0,clickable:!0},t),{prefix:f.jsx(h.Icon,{type:e}),onClick:u,children:l(n)})),f.jsx(o,{})]})},rm=()=>{const{t}=ce(),{onUpdateComponentProps:e}=Mn(),n=$.useField();return f.jsxs(h.GeneralSchemaDesigner,{children:[f.jsx(h.SchemaSettingsModalItem,{title:t("Edit menu info"),initialValues:n.componentProps,schema:gl,onSubmit:e}),f.jsx(h.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:t("Delete menu item?")},breakRemoveOn:{"x-component":"MMenu"}},"remove")]})},vl=om;vl.Designer=rm;const sm=h.createStyles(({token:t,css:e})=>({mobileMenu:e`
|
|
148
|
+
--adm-color-primary: ${t.colorPrimary};
|
|
149
|
+
--adm-color-primary-hover: ${t.colorPrimaryHover};
|
|
150
|
+
--adm-color-primary-active: ${t.colorPrimaryActive};
|
|
151
|
+
--padding-left: ${t.paddingSM}px;
|
|
152
|
+
--adm-color-background: ${t.colorBgContainer};
|
|
153
|
+
--adm-color-border: ${t.colorBorder};
|
|
154
154
|
|
|
155
|
-
background: ${
|
|
155
|
+
background: ${t.colorBgContainer};
|
|
156
156
|
width: 100%;
|
|
157
157
|
margin-bottom: var(--tb-spacing);
|
|
158
|
-
`})),
|
|
159
|
-
--adm-color-primary: ${
|
|
158
|
+
`})),ss=t=>{const{styles:e}=sm(),n=h.useDesigner(),o=$.useFieldSchema(),{insertBeforeEnd:r,designable:s}=h.useDesignable(),{t:a}=ce(),l=c=>{const u={page:pl};return r({type:"void",title:c.name,"x-component":"MMenu.Item","x-component-props":c,"x-designer":"MMenu.Item.Designer",properties:u})};return f.jsx(h.SortableItem,{className:h.cx("tb-mobile-menu",e.mobileMenu),children:f.jsxs(qt,{children:[s&&f.jsx(qt.Item,{children:f.jsx(n,{})}),f.jsx(h.DndContext,{children:f.jsx(h.SchemaComponent,{onlyRenderProperties:!0,schema:o})}),s?f.jsx(qt.Item,{children:f.jsx(h.SchemaInitializerActionModal,{buttonText:a("Add menu item"),title:a("Add menu item"),schema:gl,onSubmit:l})}):null]})})};ss.Item=vl,ss.Designer=nm;const Ao=(t,e)=>t.reduceProperties((o,r)=>o||r["x-component"]===e&&r),im=t=>Ao(t,"Grid"),am=["Grid","Grid.Row"],lm=["Grid.Col"],is=(t,e)=>{if(!t)return 0;let n=0;return lm.includes(t["x-component"])&&(n+=1),n>=e||am.includes(t["x-component"])&&t.mapProperties(o=>{n+=is(o,e)}),n},cm=()=>{const{t}=ce(),e=$.useFieldSchema(),{onUpdateComponentProps:n}=Mn(),o=$.useField(),{dn:r}=h.useDesignable(),s=ie.useNavigate(),a=Ao(e,"MTabBar"),l=a&&o.componentProps.tabBarEnabled!==!1,c={dn:r,field:o,fieldSchema:e};return f.jsx(h.SchemaSettingsDropdown,ae(B({title:f.jsx(le.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)",width:"100%"},icon:f.jsx(Te.MenuOutlined,{}),type:"dashed",children:t("App level Configuration")})},c),{children:f.jsx(h.SchemaSettingsSwitchItem,{checked:l,title:t("Enable TabBar"),onChange:u=>fe(this,null,function*(){if(u&&!a){const d=Ao(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:ut("Untitled")},properties:{page:d.toJSON()}}}})}yield n({tabBarEnabled:u}),u===!1&&s("../")})})}))},um=h.createStyles(({token:t,css:e})=>({mobileContainer:e`
|
|
159
|
+
--adm-color-primary: ${t.colorPrimary};
|
|
160
160
|
|
|
161
161
|
& > .general-schema-designer > .general-schema-designer-icons {
|
|
162
162
|
right: unset;
|
|
@@ -169,45 +169,152 @@
|
|
|
169
169
|
height: 100%;
|
|
170
170
|
overflow-y: scroll;
|
|
171
171
|
position: initial !important;
|
|
172
|
-
`,tabBar:
|
|
172
|
+
`,tabBar:e`
|
|
173
173
|
& > .general-schema-designer {
|
|
174
|
-
--tb-designer-top: ${
|
|
174
|
+
--tb-designer-top: ${t.marginMD}px;
|
|
175
175
|
}
|
|
176
176
|
position: fixed;
|
|
177
|
-
background: ${
|
|
177
|
+
background: ${t.colorBgContainer};
|
|
178
178
|
width: 100%;
|
|
179
179
|
bottom: 0;
|
|
180
180
|
left: 0;
|
|
181
181
|
z-index: 1000;
|
|
182
|
-
`})),
|
|
182
|
+
`})),bl=(t,e)=>t.reduceProperties((n,o)=>{if(n)return n;if(o["x-component"]==="MTabBar")return bl(o,e);if(o["x-component"]==="MTabBar.Item"&&e===o["x-uid"])return o}),dm=()=>{const{name:t}=ie.useParams(),e=$.useFieldSchema();if(!t)return f.jsx(f.Fragment,{});const n=bl(e.properties.tabBar,t.replace("tab_",""));return n?f.jsx(h.SchemaComponent,{schema:n}):f.jsx(ie.Navigate,{replace:!0,to:"../"})},as=t=>{var v,p;const{styles:e}=um(),{token:n}=h.useToken(),o=h.useDesigner(),r=$.useFieldSchema(),s=ie.useNavigate(),a=ie.useParams(),l=ie.useLocation(),u=$.useField().componentProps.tabBarEnabled!==!1,d=(v=r==null?void 0:r.properties)==null?void 0:v.tabBar,m=d!=null&&d.properties?Object.keys(d.properties)[0]:null;let b=null;return m&&(b=(p=d==null?void 0:d.properties[m])==null?void 0:p["x-uid"]),i.useEffect(()=>{if(b&&!a.name){const y=l.pathname.endsWith("/")?l.pathname.slice(0,-1):l.pathname;s(`${y}/tab_${b}`,{replace:!0})}},[l.pathname,s,a.name,b]),f.jsx(h.MobileProvider,{children:f.jsxs(h.SortableItem,{eid:"tb-mobile-scroll-wrapper",className:h.cx("tb-mobile-container",e.mobileContainer),children:[f.jsx(o,{}),f.jsx("div",{style:{paddingBottom:b?n.paddingLG*2:0},className:"tb-mobile-container-content",children:b?f.jsx(dm,{}):f.jsx(h.SchemaComponent,{filterProperties:y=>y["x-component"]!=="MTabBar",schema:r})}),u&&f.jsx("div",{className:h.cx("tb-mobile-container-tab-bar",e.tabBar),children:f.jsx(h.SchemaComponent,{onlyRenderProperties:!0,filterProperties:y=>y["x-component"]==="MTabBar",schema:r})})]})})};as.Designer=cm,as.displayName="MContainer";const yl={properties:{title:{type:"string",title:"{{ t('Title') }}",required:!0,"x-component":"Input","x-decorator":"FormItem"},icon:{required:!0,"x-decorator":"FormItem","x-component":"IconPicker",title:"{{ t('Icon') }}","x-component-props":{}}}},fm=()=>{const t=h.useDesigner();return f.jsx(h.SortableItem,{className:h.cx("tb-mobile-tab-bar-item",h.css`
|
|
183
183
|
position: absolute !important;
|
|
184
184
|
width: 100%;
|
|
185
185
|
height: 100%;
|
|
186
186
|
top: 0;
|
|
187
187
|
left: 0;
|
|
188
|
-
`),children:f.jsx(
|
|
188
|
+
`),children:f.jsx(t,{})})},mm=()=>{const{t}=ce(),e=$.useFieldSchema(),{onUpdateComponentProps:n}=Mn(),o=$.useField(),r=Object.keys(e.parent.properties).length;return f.jsxs(h.GeneralSchemaDesigner,{children:[f.jsx(h.SchemaSettingsModalItem,{title:t("Edit info"),initialValues:o.componentProps,schema:yl,onSubmit:n}),r>1?f.jsx(h.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:t("Delete tab item?")},breakRemoveOn:{"x-component":"MTabBar"}},"remove"):null]})},xl=fm;xl.Designer=mm;const ls=t=>{const e=$.useFieldSchema(),{designable:n}=h.useDesignable(),{t:o}=ce(),{insertBeforeEnd:r}=h.useDesignable(),s=ie.useNavigate(),a=ie.useParams(),l=h.useCompile(),c=i.useCallback(u=>r({type:"void","x-component":"MTabBar.Item","x-component-props":u,"x-designer":"MTabBar.Item.Designer",properties:{[$.uid()]:pl},"x-server-hooks":[{type:"onSelfSave",method:"extractTextToLocale"}]}),[]);return f.jsx(h.SortableItem,{className:h.cx("tb-mobile-tab-bar",h.css`
|
|
189
189
|
position: relative;
|
|
190
190
|
width: 100%;
|
|
191
191
|
display: flex;
|
|
192
192
|
align-items: center;
|
|
193
|
-
`),children:f.jsx(h.DndContext,{children:f.jsxs(
|
|
193
|
+
`),children:f.jsx(h.DndContext,{children:f.jsxs(ts,{activeKey:a.name,onChange:u=>{u!=="add-tab"&&s(`/mobile/${u}`)},safeArea:!0,className:h.cx(h.css`
|
|
194
194
|
width: 100%;
|
|
195
|
-
`),children:[
|
|
195
|
+
`),children:[e.mapProperties((u,d)=>{const m=u["x-component-props"];return i.createElement(ts.Item,ae(B({},m),{key:`tab_${u["x-uid"]}`,title:f.jsxs(f.Fragment,{children:[o(l(m.title)),f.jsx(h.SchemaComponent,{schema:u,name:d})]}),icon:m.icon?f.jsx(h.Icon,{type:m.icon}):void 0}))}),n&&(!e.properties||Object.keys(e.properties).length<5)?f.jsx(ts.Item,{className:h.css`
|
|
196
196
|
.adm-tab-bar-item-icon {
|
|
197
197
|
height: auto;
|
|
198
198
|
}
|
|
199
|
-
`,icon:f.jsx(h.SchemaInitializerActionModal,{title:o("Add tab"),onSubmit:c,schema:
|
|
199
|
+
`,icon:f.jsx(h.SchemaInitializerActionModal,{title:o("Add tab"),onSubmit:c,schema:yl})},"add-tab"):null]})})})};ls.Item=xl,ls.displayName="MTabBar";const hm=h.createStyles(({css:t,token:e})=>({mobileNav:t`
|
|
200
|
+
position: relative;
|
|
201
|
+
width: 100%;
|
|
202
|
+
.ant-btn {
|
|
203
|
+
display: flex;
|
|
204
|
+
align-items: center;
|
|
205
|
+
height: 100%;
|
|
206
|
+
position: absolute;
|
|
207
|
+
right: 20px;
|
|
208
|
+
bottom: 0;
|
|
209
|
+
border: none;
|
|
210
|
+
}
|
|
211
|
+
`})),pm=h.createStyles(({css:t,token:e})=>({firstmodal:t`
|
|
212
|
+
.ant-modal-content {
|
|
213
|
+
position: relative;
|
|
214
|
+
overflow: hidden;
|
|
215
|
+
border-radius: 16px;
|
|
216
|
+
padding: 0;
|
|
217
|
+
&::before,
|
|
218
|
+
&::after {
|
|
219
|
+
content: '';
|
|
220
|
+
position: absolute;
|
|
221
|
+
width: 300px;
|
|
222
|
+
height: 300px;
|
|
223
|
+
background: radial-gradient(circle, rgba(0, 149, 255, 0.11) 0%, transparent 70%);
|
|
224
|
+
z-index: 0;
|
|
225
|
+
pointer-events: none;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
&::before {
|
|
229
|
+
top: -165px;
|
|
230
|
+
left: -10px;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
&::after {
|
|
234
|
+
bottom: -160px;
|
|
235
|
+
right: -150px;
|
|
236
|
+
}
|
|
237
|
+
.ant-modal-header {
|
|
238
|
+
text-align: center;
|
|
239
|
+
margin-bottom: 20px;
|
|
240
|
+
margin-top: 30px;
|
|
241
|
+
.ant-modal-title {
|
|
242
|
+
font-size: x-large;
|
|
243
|
+
font-weight: 400;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
.ant-modal-body {
|
|
247
|
+
justify-items: center;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
`,secondmodal:t`
|
|
251
|
+
display: flex;
|
|
252
|
+
justify-content: center;
|
|
253
|
+
align-items: center;
|
|
254
|
+
width: 100%;
|
|
255
|
+
margin-top: 20px;
|
|
256
|
+
margin-bottom: 40px;
|
|
257
|
+
position: relative;
|
|
258
|
+
gap: 15%;
|
|
259
|
+
padding-left: 8%;
|
|
260
|
+
padding-right: 8%;
|
|
261
|
+
.tb-header-modal-list {
|
|
262
|
+
width: 50%;
|
|
263
|
+
gap: 10px;
|
|
264
|
+
display: flex;
|
|
265
|
+
flex-direction: column;
|
|
266
|
+
justify-content: center;
|
|
267
|
+
text-align: center;
|
|
268
|
+
border: 1px solid transparent;
|
|
269
|
+
border-color: rgba(203, 227, 254, 0.62);
|
|
270
|
+
box-shadow: none;
|
|
271
|
+
border-radius: 12px;
|
|
272
|
+
padding: 16px;
|
|
273
|
+
transition:
|
|
274
|
+
box-shadow 0.2s ease,
|
|
275
|
+
transform 0.2s ease;
|
|
276
|
+
z-index: 1;
|
|
277
|
+
position: relative;
|
|
278
|
+
&:hover {
|
|
279
|
+
border-color: rgba(0, 120, 255, 0.3);
|
|
280
|
+
box-shadow: 0 4px 16px rgba(0, 120, 255, 0.15);
|
|
281
|
+
}
|
|
282
|
+
&:active {
|
|
283
|
+
box-shadow: none;
|
|
284
|
+
transform: translateY(2px);
|
|
285
|
+
}
|
|
286
|
+
.anticon {
|
|
287
|
+
width: 100%;
|
|
288
|
+
display: flex;
|
|
289
|
+
justify-content: center;
|
|
290
|
+
svg {
|
|
291
|
+
width: 30px;
|
|
292
|
+
height: 30px;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
.tb-header-modal-list-text {
|
|
296
|
+
text-align: center;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
`,imageModal:t`
|
|
300
|
+
display: flex;
|
|
301
|
+
justify-content: center;
|
|
302
|
+
.ant-modal-content {
|
|
303
|
+
width: 280px;
|
|
304
|
+
height: 360px;
|
|
305
|
+
}
|
|
306
|
+
`})),Cl=({open:t,setOpen:e,title:n="",uid:o})=>{const[r,s]=i.useState(!1),{styles:a}=pm(),{t:l}=h.useTranslation(),{copyLink:c,imageAction:u}=h.useShareActions({title:n,uid:o});return f.jsxs(le.Modal,{open:t,className:a.firstmodal,title:l("Share"),footer:null,width:300,onCancel:()=>{e(!1)},children:[f.jsxs("div",{className:a.secondmodal,children:[f.jsxs("div",{className:"tb-header-modal-list",onClick:c,children:[f.jsx(h.Icon,{type:"PaperClipOutlined"}),l("Copy link")]}),f.jsxs("div",{className:"tb-header-modal-list",onClick:()=>{s(!0)},children:[f.jsx(h.Icon,{type:"QrcodeOutlined"}),l("Generate QR code")]})]}),f.jsx(le.Modal,{className:a.imageModal,open:r,footer:null,onCancel:()=>{s(!1)},children:u()})]})},gm=t=>{var v,p,y,g,x;const{showBack:e}=t,{t:n}=ce(),o=$.useField(),r=$.useFieldSchema(),{dn:s}=h.useDesignable(),{onUpdateComponentProps:a}=Mn(),l=(v=r==null?void 0:r.properties)==null?void 0:v.header,c=!!l&&((p=o.componentProps)==null?void 0:p.headerEnabled)!==!1,u=(y=r==null?void 0:r.properties)==null?void 0:y.tabs,d=!!u&&((g=o.componentProps)==null?void 0:g.tabsEnabled)!==!1,{title:m}=h.useSchemaToolbar(),b={dn:s,field:o,fieldSchema:r};return f.jsxs(h.SchemaSettingsDropdown,ae(B({title:f.jsx(le.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)",width:"100%"},icon:f.jsx(Te.MenuOutlined,{}),type:"dashed",children:n("Page configuration")})},b),{children:[f.jsx(h.SchemaSettingsSwitchItem,{checked:c,title:n("Enable Header"),onChange:S=>fe(this,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({headerEnabled:S})})}),f.jsx(h.SchemaSettingsSwitchItem,{checked:d,title:n("Enable Tabs"),onChange:S=>fe(this,null,function*(){if(!u){const C=im(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:ut("Untitled"),"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer","x-component-props":{},properties:{grid:ae(B({},C),{"x-uid":$.uid()})}}}})}yield a({tabsEnabled:S})})}),f.jsx(h.SchemaSettingsSwitchItem,{checked:(x=r["x-component-props"])==null?void 0:x.enableSharePage,title:n("Enable Share page"),onChange:S=>fe(this,null,function*(){r["x-component-props"]=r["x-component-props"]||{},r["x-component-props"].enableSharePage=S,r.title||(r.title=m),s.emit("patch",{schema:{"x-uid":r["x-uid"],"x-component-props":r["x-component-props"],title:r.title}}),s.refresh()})})]}))},vm=h.createStyles(({token:t,css:e})=>({globalActionCSS:e`
|
|
200
307
|
#tb-position-container > & {
|
|
201
|
-
height: ${
|
|
308
|
+
height: ${t.sizeXXL}px;
|
|
202
309
|
border-top: 1px solid var(--tb-box-bg);
|
|
203
310
|
margin-bottom: 0px !important;
|
|
204
311
|
padding: 0 var(--tb-spacing);
|
|
205
312
|
align-items: center;
|
|
206
313
|
overflow-x: auto;
|
|
207
|
-
background: ${
|
|
314
|
+
background: ${t.colorBgContainer};
|
|
208
315
|
z-index: 100;
|
|
209
316
|
}
|
|
210
|
-
`,mobilePage:
|
|
317
|
+
`,mobilePage:e`
|
|
211
318
|
background: var(--tb-box-bg);
|
|
212
319
|
display: flex;
|
|
213
320
|
flex-direction: column;
|
|
@@ -216,23 +323,23 @@
|
|
|
216
323
|
overflow-x: hidden;
|
|
217
324
|
overflow-y: auto;
|
|
218
325
|
padding-bottom: var(--tb-spacing);
|
|
219
|
-
`,mobilePageHeader:
|
|
326
|
+
`,mobilePageHeader:e`
|
|
220
327
|
& > .ant-tabs > .ant-tabs-nav {
|
|
221
328
|
.ant-tabs-tab {
|
|
222
329
|
margin: 0 !important;
|
|
223
|
-
padding: 0 ${
|
|
330
|
+
padding: 0 ${t.paddingContentHorizontal}px !important;
|
|
224
331
|
}
|
|
225
|
-
background: ${
|
|
332
|
+
background: ${t.colorBgContainer};
|
|
226
333
|
}
|
|
227
334
|
display: flex;
|
|
228
335
|
flex-direction: column;
|
|
229
|
-
`})),
|
|
336
|
+
`})),bm=t=>{var x,S,C,w;const{styles:e}=vm(),n=h.useDesigner(),o=$.useField(),r=$.useFieldSchema(),[s,a]=ie.useSearchParams(),l=(x=r.properties)==null?void 0:x.tabs,c=o.componentProps.headerEnabled!==!1,u=o.componentProps.tabsEnabled!==!1&&l,[d,m]=i.useState(!1);let b=Ao(r,"MPage");if(!u&&!b&&l){const k=Object.values(l.properties||{}).sort((I,_)=>I["x-index"]-_["x-index"]);k.length!==0&&(b=k[0])}const v=r.root===r.parent;let p=!1;if(!l&&r.properties)p=is(r.properties.grid,2)===1;else if(s.has("tab")&&((S=l==null?void 0:l.properties)!=null&&S[s.get("tab")]))p=is((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 k=Object.values(l.properties).sort((I,_)=>I["x-index"]-_["x-index"])[0];k&&setTimeout(()=>{a([["tab",k.name.toString()]],{replace:!0})})}const y=i.useCallback(k=>{a([["tab",k]],{replace:!0})},[a]),g=i.useCallback(k=>f.jsx(h.TabsContextProvider,{children:p?f.jsx(h.ActionBarProvider,{container:(typeof k.active=="undefined"||k.active)&&v?document.getElementById("tb-position-container"):null,forceProps:{layout:"one-column",className:e.globalActionCSS},children:k.children}):k.children}),[p,v,e.globalActionCSS]);return f.jsxs(h.SortableItem,{eid:"tb-mobile-scroll-wrapper",className:h.cx("tb-mobile-page",e.mobilePage),children:[f.jsx(n,B({},r==null?void 0:r["x-designer-props"])),f.jsxs("div",{style:{paddingBottom:l?null:"var(--tb-spacing)"},className:h.cx("tb-mobile-page-header",e.mobilePageHeader,{[h.css`
|
|
230
337
|
& > .ant-tb-grid {
|
|
231
338
|
margin-top: 14px;
|
|
232
339
|
}
|
|
233
|
-
`]:l&&!u||!l}),children:[c
|
|
340
|
+
`]:l&&!u||!l}),children:[c?f.jsx($.RecursionField,{schema:r,filterProperties:k=>k["x-component"]==="MHeader"}):f.jsx("div",{style:{display:"flex",justifyContent:"end",backgroundColor:"#ffffff",paddingRight:"20px"},children:f.jsx(le.Button,{icon:f.jsx(Te.ShareAltOutlined,{}),style:{border:"none"},onClick:()=>{m(!0)}})}),f.jsx(h.TabsContextProvider,{PaneRoot:g,activeKey:s.get("tab"),onChange:y,children:f.jsx($.RecursionField,{schema:u?r:b,filterProperties:k=>k["x-component"]==="Tabs"||k["x-component"]==="Grid"||k["x-component"]==="Grid.Row"})})]}),f.jsx(g,{children:!l&&f.jsx($.RecursionField,{schema:r,filterProperties:k=>k["x-component"]!=="MHeader"})}),f.jsx(Cl,{open:d,setOpen:m,uid:r["x-uid"]})]})},cs=t=>f.jsx(h.FilterBlockProvider,{children:f.jsx(bm,B({},t))});cs.Designer=gm,cs.displayName="MPage";const ym=()=>{const t=$.useField(),{onUpdateComponentProps:e}=Mn(),{t:n}=ce();return f.jsx(h.GeneralSchemaDesigner,{draggable:!1,children:f.jsx(h.SchemaSettingsModalItem,{title:n("Edit info"),components:{Switch:bs.Switch},initialValues:t.componentProps,schema:{properties:{title:{type:"string",title:n("Title"),required:!0,"x-component":"Input","x-decorator":"FormItem"},showBack:{type:"boolean",title:n("Display back button"),"x-component":"Switch","x-decorator":"FormItem"}}},onSubmit:e})})},Sl=t=>{var y;const e=$.useField(),{title:n=ut("Untitled"),showBack:o=!1}=B(B({},t),e==null?void 0:e.componentProps),r=h.useDesigner(),a=h.useCompile()(n),l=ie.useNavigate(),{setTitle:c}=h.useDocumentTitle(),{token:u}=h.useToken(),{styles:d}=hm(),[m,b]=i.useState(!1),v=$.useFieldSchema();i.useEffect(()=>{c(a)},[a]);const p=i.useMemo(()=>({width:"100%",background:u.colorBgContainer}),[u.colorBgContainer]);return f.jsxs(h.SortableItem,{className:h.cx("tb-mobile-header"),style:p,children:[f.jsxs(Df,{backArrow:o,onBack:()=>l(-1),className:d.mobileNav,children:[f.jsx("div",{children:a}),f.jsx(le.Button,{icon:f.jsx(Te.ShareAltOutlined,{}),onClick:()=>{b(!0)}})]}),f.jsx(r,{}),f.jsx(Cl,{open:m,setOpen:b,title:n,uid:(y=v.parent)==null?void 0:y["x-uid"]})]})};Sl.Designer=ym;const xm=()=>{const{t}=ce();return f.jsx(h.GeneralSchemaDesigner,{children:f.jsx(h.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:t("Delete settings block")},breakRemoveOn:{"x-component":"Grid"}},"remove")})},wl=()=>{const t=h.useDesigner();return f.jsxs(h.SortableItem,{className:h.cx("tb-mobile-setting",h.css`
|
|
234
341
|
margin-bottom: var(--tb-spacing);
|
|
235
|
-
`),children:[f.jsx(
|
|
342
|
+
`),children:[f.jsx(t,{}),f.jsx(h.SettingsMenu,{redirectUrl:"/mobile"})]})};wl.Designer=xm;const Cm=()=>{const t=h.useSchemaInitializerItem(),{insert:e}=h.useSchemaInitializer();return f.jsx(h.SchemaInitializerItem,B({icon:f.jsx(Te.SettingOutlined,{}),onClick:()=>fe(this,null,function*(){e({type:"void","x-component":"MSettings","x-designer":"MSettings.Designer","x-component-props":{}})})},t))},Sm=["select","multipleSelect","radioGroup","checkboxGroup"],wm=["oho","obo","o2m","m2o","m2m"],km=["datetime"],Em=["input","textarea","phone","email","url","percent","password","color","icon","formula","sequence"],Im=["integer","number"],Ge=t=>t==="TabSearchCollapsibleInputItem"||t==="TabSearchCollapsibleInputMItem",ct=t=>Sm.includes(t),$e=t=>wm.includes(t),Mt=t=>km.includes(t),kl=t=>Em.includes(t),$m=t=>Im.includes(t),El=t=>Ce.dayjs(t).format("YYYY-MM-DD"),Lo=t=>JSON.stringify(Ce.dayjs(t));function _m(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,m=[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"][m],properties:{}}}}const Pm=new h.SchemaInitializer({name:"ImageSearchView:configureFields",title:'{{t("Configure fields")}}',style:{marginTop:16},icon:"SettingOutlined",items:[{name:"choicesFields",type:"itemGroup",title:'{{t("Choices fields")}}',useChildren:Fm}]});function Fm(){const t=h.useCollection(),e=t==null?void 0:t.fields,n=h.useCollectionManager();return h.useIsMobile(),e.map(r=>{var d,m;const{interface:s,target:a}=r,l=(m=(d=n.getCollection(a))==null?void 0:d.getPrimaryKey())!=null?m:"id",c=ct(s),u=$e(s);return c||u?_m({collection:t,field:r,label:l,isCanBeOptional:c,isCanBeRelated:u}):null}).filter(Boolean)}function Mm(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:{[Ce.uid()]:{type:"void","x-action":"imageSearch","x-initializer":"ImageSearchView:configureFields","x-component":"ImageSearchView"}}}}function Nm(t){const{filterCollections:e}=t,n=h.useSchemaInitializerItem(),{insert:o}=h.useSchemaInitializer(),r=a=>fe(this,[a],function*({item:s}){const{dataSource:l,collectionName:c,name:u}=s,d=Mm({dataSource:l,collection:c||u,blockType:"filter"});o(d)});return f.jsx(h.DataBlockInitializer,ae(B({},n),{componentType:"ImageSearch",filter:e,onCreateBlockSchema:r}))}const Tm=({collection:t,children:e})=>f.jsx(h.DataBlockProvider,{collection:t,children:e}),Om=()=>{const t=h.useDesigner(),e=$.useFieldSchema(),{render:n}=h.useSchemaInitializerRender(e["x-initializer"],e["x-initializer-props"]);return f.jsxs(f.Fragment,{children:[f.jsx(t,{}),f.jsx($.RecursionField,{schema:e,onlyRenderProperties:!0}),f.jsx(i.Fragment,{children:n()})]})},Dm=()=>{const t=$.useFieldSchema(),e=h.useCollection(),{getDataBlocks:n}=h.useFilterBlock();return i.useMemo(()=>e==null?void 0:e.getField(t.name),[e,t.name]),{onSelected:(r,s)=>{const{targets:a,uid:l}=h.findFilterTargets(t);n().forEach(c=>{var p,y,g;if(!a.find(x=>x.uid===c.uid))return;const d=`${l}${t.name}`,m=((p=c.service.params)==null?void 0:p[0])||{};let b=((g=(y=c.service.params)==null?void 0:y[1])==null?void 0:g.filters)||{};if(r.length)b[d]={[s]:r};else{if(c.dataLoadingMode==="manual")return c.clearData();delete b[d]}const v=h.mergeFilter([...Object.values(b),c.defaultFilter]);if(r.length===1&&r[0]==="all"){const x=Object.keys(b[d]);v.$and?(x.forEach(S=>{v.$and.forEach((C,w)=>{C[S]&&v.$and.splice(w,1)})}),v.$and=v.$and.filter(Boolean)):delete v[x[0]],b[d]={}}return b=Le.omitBy(b,x=>x==null||Le.isObject(x)&&Le.isEmpty(x)),c.doFilter(ae(B({},m),{page:1,filter:v}),{filters:b})})}}},Am=()=>{const t=h.useSchemaInitializerItem(),{insert:e}=h.useSchemaInitializer(),{schema:n,title:o}=t,{exists:r,remove:s}=h.useCurrentSchema(n.name,"name",t.find,t.remove),a=()=>{if(r)return s();const{schema:l}=t,c=$.merge(n||{},l||{});e(c)};return f.jsx(h.SchemaInitializerSwitch,{checked:r,title:o,onClick:a})},Lm=new h.SchemaSettings({name:"fieldSettings:component:ImageSearchItem",items:[{name:"decoratorOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t}=ce();return{title:t("Generic properties")}},useChildren(){return[{name:"setTheDataScope",Component:h.SchemaSettingsDataScope,useComponentProps(){var l,c;const t=$.useFieldSchema(),{form:e}=h.useFormBlockContext(),n=$.useField(),o=h.useCollectionManager(),s=h.useCollection().getField(t.name)||o.getCollectionField(t["x-collection-field"]),{dn:a}=h.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;Le.set(n.componentProps,"params",ae(B({},(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!Ge(t["x-component"])}},{name:"titleField",type:"select",useComponentProps(){var b,v,p,y;const t=$.useFieldSchema(),{t:e}=ce(),n=h.useCollectionManager(),o=h.useCollection(),r=(b=t["x-component-props"])==null?void 0:b.collectionName,s=(v=t["x-component-props"])==null?void 0:v.correlation,a=o.getField(t.fieldName)||n.getCollectionField(t["x-collection-field"])||n.getCollection(r+"."+s),l=h.useCompile(),{dn:c}=h.useDesignable(),d=(a!=null&&a.target?n.getCollectionFields(a==null?void 0:a.target):[]).filter(g=>!(g!=null&&g.target)&&g.type!=="boolean").map(g=>{var x;return{value:g==null?void 0:g.name,label:l((x=g==null?void 0:g.uiSchema)==null?void 0:x.title)||(g==null?void 0:g.name)}}),m=g=>{var C,w,k;const x={"x-uid":t["x-uid"]},S=ae(B(B({},(w=(C=a==null?void 0:a.uiSchema)==null?void 0:C["x-component-props"])==null?void 0:w.fieldNames),(k=t["x-component-props"])==null?void 0:k.fieldNames),{label:g});t["x-component-props"]=t["x-component-props"]||{},t["x-component-props"].fieldNames=S,x["x-component-props"]=t["x-component-props"],c.emit("patch",{schema:x}),c.refresh()};return{key:"title-field",title:e("Title field"),options:d,value:(y=(p=t["x-component-props"])==null?void 0:p.fieldNames)==null?void 0:y.label,onChange:m}},useVisible(){var e;const t=$.useFieldSchema();return Ge(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}=ce(),e=$.useFieldSchema(),{dn:n}=h.useDesignable();return{removeParentsIfNoChildren:!0,confirm:{title:t("Delete field")},breakRemoveOn:o=>(Ge(e["x-component"])&&(Object.values(o.properties).forEach(r=>{Ge(r["x-component"])&&r.name!==e.name&&delete o.properties[r.name]}),n.emit("patch",{schema:o})),o["x-component"]==="TabSearch")}}}]}),Bm=t=>f.jsx(h.SchemaToolbar,B({draggable:!0,showBorder:!0,showBackground:!0,initializer:!1},t)),zm=h.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,items:o,onSelect:r}=Vm(t);return e?f.jsxs(h.SortableItem,{children:[f.jsx(n,{}),f.jsx(il,{onChange:r,children:o.map(({key:s,label:a,imageUrl:l})=>f.jsx(il.Tab,{title:"",description:f.jsx(Zm,{srcUrl:l,label:a})},s))})]}):null},{displayName:"ImageSearchItemView"});function Vm(t){var g,x;const{list:e,onSelected:n,valueKey:o,labelKey:r,filterKey:s}=t,a=$.useFieldSchema(),l=h.useCollection(),{t:c}=ce(),u=i.useMemo(()=>l==null?void 0:l.getField(a.fieldName),[l,a.fieldName]),d=h.useDesigner(),m=o||(u==null?void 0:u.targetKey)||"id",b=r||((x=(g=a["x-component-props"])==null?void 0:g.fieldNames)==null?void 0:x.label)||m,v=S=>{var w;const C=((w=S.keyPath)==null?void 0:w[0])||S;n([C],s)},p={title:b,key:m},y=(e||[]).map(S=>{var M;const{type:C,["image_show"]:w,[p.title]:k,[p.key]:I}=S,_=(location==null?void 0:location.origin)||"",T=(M=w==null?void 0:w[0])==null?void 0:M.url;let L=T!=null?T:"";return L.includes("http")||(L=`${_}${T}`),C==="all"?{label:c("AllProducts"),key:"all",imageUrl:L}:{label:k,key:I,imageUrl:L}});return{collectionField:u,Designer:d,items:y,onSelect:v}}const Zm=t=>{const{srcUrl:e,label:n}=t;return f.jsxs("div",{className:h.css`
|
|
236
343
|
display: 'flex';
|
|
237
344
|
flex-direction: 'column';
|
|
238
345
|
width: '100%';
|
|
@@ -240,11 +347,11 @@
|
|
|
240
347
|
:active {
|
|
241
348
|
background-color: transparent;
|
|
242
349
|
}
|
|
243
|
-
`,children:[f.jsx(
|
|
350
|
+
`,children:[f.jsx(ia,{src:e,width:100,height:100,fit:"fill"}),f.jsx("p",{className:h.css`
|
|
244
351
|
font-weight: 400;
|
|
245
352
|
font-size: 17.6px;
|
|
246
353
|
line-height: 1;
|
|
247
|
-
`,children:n})]})},
|
|
354
|
+
`,children:n})]})},Bo=()=>{const t=$.useFieldSchema();h.useCollection();const{getDataBlocks:e}=h.useFilterBlock();return{onSelected:(o,r,s={canBeCalculatedField:!1,customLabelKey:"",needSort:!1})=>{const{canBeCalculatedField:a,customLabelKey:l,needSort:c=!0}=s,{targets:u,uid:d}=h.findFilterTargets(t);e().forEach(m=>{var S,C,w,k,I;if(!u.find(_=>_.uid===m.uid))return;const v=`${d}${t.name}`,p=((S=m.service.params)==null?void 0:S[0])||{};let y=((w=(C=m.service.params)==null?void 0:C[1])==null?void 0:w.filters)||{};if(o.length)o[0]?y[v]={[r]:o}:(k=y[v])==null||delete k[r],a&&(y[v]={[r]:Number((I=o==null?void 0:o[0])!=null?I:0)});else{if(m.dataLoadingMode==="manual")return m.clearData();delete y[v]}const g=h.mergeFilter([...Object.values(y),m.defaultFilter]);if(o.length===1&&o[0]==="all"){const _=Object.keys(y[v]);g.$and?(_.forEach(T=>{g.$and.forEach((L,M)=>{L[T]&&g.$and.splice(M,1)})}),g.$and=g.$and.filter(Boolean)):delete g[_[0]],y[v]={}}y=Le.omitBy(y,_=>_==null||Le.isObject(_)&&Le.isEmpty(_));let x=ae(B({},p),{page:1,filter:g});return c?x=ae(B({},x),{"sort[]":`-${l}`}):x=Le.omit(x,["sort[]"]),m.doFilter(x,{filters:y})})}}},jm=()=>{var u,d,m,b;const t=$.useFieldSchema(),e=h.useCollection(),n=h.useCollectionManager(),o=Km({collection:e}),r=t.fieldName,s=i.useMemo(()=>e==null?void 0:e.getField(r),[e,r]),{onSelected:a}=Bo();if(!e)return{};const l={list:null,valueKey:"",labelKey:"",filterKey:""};l.valueKey=s!=null&&s.target?(u=n.getCollection(s.target))==null?void 0:u.getPrimaryKey():"id",l.labelKey=((m=(d=t["x-component-props"])==null?void 0:d.fieldNames)==null?void 0:m.label)||l.valueKey;const c=t["x-component-props"].interface;if(ct(c)){const v=o.find(g=>g.name===t.fieldName),p={select:"$in",multipleSelect:"$anyOf",checkboxGroup:"$anyOf",radioGroup:"$in"},y=((b=v==null?void 0:v.uiSchema)==null?void 0:b.enum)||[];l.valueKey="value",l.labelKey="label",l.list=y,l.filterKey=`${v.name}.${p[v.interface]}`}return{list:l.list,valueKey:l.valueKey,labelKey:l.labelKey,onSelected:a,filterKey:l.filterKey}},Km=({collection:t})=>{var n;return((n=t==null?void 0:t.fields)!=null?n:[]).filter(o=>ct(o.interface)&&o.uiSchema.enum)},Wm=()=>{var v,p,y,g,x;const t=$.useFieldSchema(),e=h.useCollection(),n=$.useField(),o={dataSource:"main"},r=h.useDataSourceHeaders(o==null?void 0:o.dataSource),s=h.useCollectionManager(),a=i.useMemo(()=>e==null?void 0:e.getField(t.fieldName),[e,t.fieldName]),l=a==null?void 0:a.name,c=t["x-component-props"].interface,{onSelected:u}=Dm(),d={list:null,valueKey:"",labelKey:"",filterKey:""};d.valueKey=a!=null&&a.target?(v=s.getCollection(a.target))==null?void 0:v.getPrimaryKey():"id",d.labelKey=((y=(p=t["x-component-props"])==null?void 0:p.fieldNames)==null?void 0:y.label)||d.valueKey;const m=((x=(g=t["x-component-props"])==null?void 0:g.fieldNames)==null?void 0:x.imageShow)||"imageShow",{data:b}=Hm({headers:r,collectionField:a,result:d,imageShow:m,field:n,fieldInterface:c});if(d.filterKey=`${l}.${d.valueKey}.$in`,d.list=(b==null?void 0:b.data)||[],!!a)return{list:d.list,valueKey:d.valueKey,labelKey:d.labelKey,filterKey:d.filterKey,onSelected:u}},Hm=({headers:t,collectionField:e,result:n,imageShow:o,field:r,fieldInterface:s})=>{var c,u;const{data:a,run:l}=h.useRequest({headers:t,resource:e==null?void 0:e.target,action:"list",params:B({fields:[n.labelKey,n.valueKey,o,"type"],pageSize:200,page:1},(c=r.componentProps)==null?void 0:c.params)},{manual:!0,debounceWait:300});return i.useEffect(()=>{$e(s)&&(e!=null&&e.target)&&l()},[n.labelKey,n.valueKey,JSON.stringify(((u=r.componentProps)==null?void 0:u.params)||{}),$e(s)]),{data:a}},Um=h.withDynamicSchemaProps(t=>{const{fieldValue:e,data:n,changeNav:o}=t;if(!n)return;const r=n.data.length?n.data.map((s,a)=>{var l,c;return(l=s[e][0])!=null&&l.url?f.jsx(Oo.Item,{children:f.jsx("div",{className:us,style:{backgroundImage:`url(${(c=s[e][0])==null?void 0:c.url})`,backgroundSize:"100% 100%",backgroundAttachment:"fixed"},onClick:()=>{o(s)}})},a):f.jsx(Oo.Item,{children:f.jsx("div",{className:us,style:{backgroundColor:"#e0e0e0"},children:"无法加载此内容"})},a)}).filter(Boolean):[f.jsx(Oo.Item,{children:f.jsx("div",{className:us,style:{backgroundColor:"#e0e0e0"},children:"当前卡片没有可加载数据"})},0)];return f.jsx(h.BlockItem,{children:f.jsx(Oo,{loop:!0,autoplay:!0,children:r})})}),us=h.css`
|
|
248
355
|
height: 20vh;
|
|
249
356
|
color: #ffffff;
|
|
250
357
|
display: flex;
|
|
@@ -252,17 +359,17 @@
|
|
|
252
359
|
align-items: center;
|
|
253
360
|
font-size: 25px;
|
|
254
361
|
user-select: none;
|
|
255
|
-
`,
|
|
362
|
+
`,Ym=()=>{const{insert:t}=h.useSchemaInitializer(),e=h.useCollectionManager(),n=h.useSchemaInitializerItem(),o=s=>fe(this,[s],function*({item:r}){const a=e.getCollection(r.name),l=a.fields.find(u=>u.interface==="attachment");if(!l){rs.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 f.jsx(h.DataBlockInitializer,ae(B({},n),{icon:"swiper-block",componentType:"Swiper",onCreateBlockSchema:o}))},Gm=new h.SchemaSettings({name:"SwiperFieldSettings",items:[{name:"setTheDataScope",Component:h.SchemaSettingsDataScope,useComponentProps(){var s,a;const t=$.useFieldSchema(),{form:e}=h.useFormBlockContext(),n=$.useField(),o=h.useCollection(),{dn:r}=h.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;Le.set(n.componentProps,"params",ae(B({},(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}=ce(),n=h.useCollection(),o=h.useCompile(),{dn:r}=h.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}=h.useDesignable(),{t:n}=ce(),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}]}),Il=()=>{const t=ie.useParams(),{name:e,collection:n,field:o,fieldParams:r}=t,s={};return s[o]=r,f.jsx(h.DataBlockProvider,{collection:n,dataSource:"main",children:f.jsx(h.CollectionRecordProvider,{record:s,parentRecord:null,children:f.jsx(h.RemoteSchemaComponent,{uid:e})})})},qm=()=>{const t=$.useFieldSchema(),e=ie.useNavigate(),n=t.properties?Object.values(t.properties):null,{insertAdjacent:o}=h.useDesignable(),s=h.useCollection().targetKey||"id",{filter:a,pageSize:l,fieldValue:c,resourceName:u}=t["x-component-props"],{data:d,run:m}=h.useRequest({resource:u+":list",params:{filter:a,pageSize:l||5,appends:c?[c]:[]}});return i.useEffect(()=>{m()},[a,l,c]),{data:d,fieldValue:c,changeNav:v=>{if(v.isIdentical){const p=n==null?void 0:n.find(y=>y["x-component-props"].fixedComponent);p?e(`/mobile/${p["x-uid"]}/image/${u}/${s}/${v[s]}`):o("beforeEnd",$l(v,"fixedComponent"),{onSuccess(y){y&&e(`/mobile/${y["x-uid"]}`)}})}else{const p=n==null?void 0:n.find(y=>y.name===String(v.id));p?e(`/mobile/${p["x-uid"]}`):o("beforeEnd",$l(v),{onSuccess(y){y&&e(`/mobile/${y["x-uid"]}`)}})}}}},$l=(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"}}}}}),Xm=()=>{const{fieldSchema:t,Designer:e,render:n,filterProperties:o}=Jm();return f.jsxs(f.Fragment,{children:[f.jsx(e,{}),f.jsx($.RecursionField,{schema:t,onlyRenderProperties:!0,filterProperties:o}),f.jsx(i.Fragment,{children:n()})]})},Jm=()=>{const t=h.useDesigner(),e=$.useFieldSchema(),{render:n}=h.useSchemaInitializerRender(e["x-initializer"],e["x-initializer-props"]);return{fieldSchema:e,Designer:t,render:n,filterProperties:r=>Ge(r["x-component"])?r===Object.values(r.parent.properties).filter(s=>Ge(s["x-component"]))[0]:!0}},_l=t=>{const{onSelected:e}=Bo(),n=$.useFieldSchema(),o=h.useCollection(),r=h.useCollectionManager(),{dn:s}=h.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=h.useDesigner(),[m,b]=i.useState(n.fieldName),[v,p]=i.useState(n["x-component-props"].interface),y=Mt(v)?Lo(Ce.dayjs(new Date).startOf("date"))+"&"+Lo(Ce.dayjs(new Date).endOf("date")):"",[g,x]=i.useState(y),S=Object.values(u).map(T=>{if(Ge(T["x-component"]))return{label:T.title,value:T.fieldName,interface:T["x-component-props"].interface}}).filter(Boolean),C=T=>{let L,M=`${m}.$includes`;const N=$m(v);if(N&&(M=`${m}.$notEmpty`),Mt(v)&&(L=T.split("&").map(W=>JSON.parse(W)),M=`${m}.$dateBetween`),$e(v)){const W=n["x-component-props"].fieldNames.label;M=`${n["x-component-props"].correlation}.${W}.$includes`}e(L||[T],M,{canBeCalculatedField:N,customLabelKey:m,needSort:a})};return{collectionField:c,Designer:d,options:S,value:g,onSelectChange:T=>{const L=Object.values(u).find(M=>M.fieldName===T)["x-component-props"].interface;if($e(L)){const M=r.getCollection(o.name+"."+T).titleField;n["x-component-props"].correlation=T,n["x-component-props"].fieldNames={label:M},s.emit("patch",{schema:{"u-id":n["u-id"],"x-component-props":n["x-component-props"]}}),s.refresh()}p(L),Mt(L)?x(Lo(new Date)+"&"+Lo(new Date)):x(""),b(T)},onInputChange:T=>{var N,W;const L={current:null};clearTimeout(L.current);const M=(W=(N=T.target)==null?void 0:N.value)!=null?W:T;x(M),M===""&&(L.current=setTimeout(()=>{C(M)},2e3))},onButtonClick:()=>{C(g)},customLabelKey:m,fieldInterface:v,onDateClick:T=>{C(T)},needSort:a,setNeedSort:l}},Qm=t=>{const{options:e,onChange:n}=t;return e.length>1?f.jsxs(le.Col,{flex:1,style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[f.jsx(le.Select,{style:{width:"100%"},options:e,defaultValue:e[0].value,onChange:n}),f.jsx(le.Divider,{type:"vertical",style:{height:"70%"}})]}):null},Rm=t=>{const{options:e,value:n,onChange:o}=t,{t:r}=ce();return f.jsx(le.Col,{flex:e.length>1?3:4,children:f.jsx(le.Input,{placeholder:r("Please enter search content"),value:n,onChange:o})})},eh=t=>{const{options:e,value:n,onInputChange:o}=t,r=n.split("&"),s=a=>{const l=`"${a[0]}"&"${a[1]}"`;o(l)};return f.jsx(le.Col,{flex:e.length>1?3:4,children:f.jsx(bs.DatePicker.RangePicker,{className:h.css`
|
|
256
363
|
width: 100%;
|
|
257
364
|
border: none;
|
|
258
365
|
input {
|
|
259
366
|
text-align: center;
|
|
260
367
|
}
|
|
261
|
-
`,value:r,onChange:s})})},
|
|
368
|
+
`,value:r,onChange:s})})},th=t=>{const{onClick:e}=t,{t:n}=ce();return f.jsx(le.Col,{flex:1,children:f.jsx(le.Button,{style:{width:"100%",color:"#2c6eff"},type:"link",onClick:e,children:n("Search")})})},nh=h.withDynamicSchemaProps(t=>{const{fieldInterface:e,collectionField:n,Designer:o,options:r,value:s,onSelectChange:a,onInputChange:l,onButtonClick:c,customLabelKey:u,onDateClick:d}=_l();return n?f.jsxs(h.SortableItem,{children:[f.jsx(o,{}),f.jsx(le.ConfigProvider,{theme:{token:{colorBgContainer:"#f9f9f9",colorBorder:"none"},components:{Input:{colorBorder:"#f9f9f9",activeShadow:"none",hoverBorderColor:"none",activeBorderColor:"none"},Divider:{colorSplit:"#c1c2c5"}}},children:f.jsxs(le.Row,{style:{marginTop:"2vh",backgroundColor:"#f9f9f9"},children:[f.jsx(Qm,{options:r,onChange:a,customLabelKey:u}),Mt(e)?f.jsx(eh,{options:r,value:s,onInputChange:l,onChange:d}):f.jsx(Rm,{options:r,value:s,onChange:l}),f.jsx(th,{onClick:c})]})})]}):null},{displayName:"TabSearchCollapsibleInputItem"}),oh=t=>{var l;const{options:e,onChange:n,customLabelKey:o}=t,r=e.map(c=>({text:c.label,key:c.value})),[s,a]=i.useState(!1);return e.length>1?f.jsxs(et.Item,{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between"},onClick:()=>{a(!0)},children:[f.jsx("span",{style:{textAlign:"center",width:"100%"},children:(l=e.find(c=>c.value===o))==null?void 0:l.label}),f.jsx(rd,{}),e.length<=5?f.jsx(S1,{visible:s,actions:r,closeOnAction:!0,onClose:()=>a(!1),onAction:c=>{n(c.key)}}):f.jsx(Pa,{columns:[e],visible:s,onClose:()=>{a(!1)},defaultValue:o,onConfirm:c=>{n(c[0])}}),f.jsx(Ar,{direction:"vertical",style:{height:"70%",margin:"0 0 0 5px"}})]}):null},rh=t=>{const{options:e,value:n,onChange:o,onInputChange:r}=t,s=n.split("&"),[a,l]=i.useState(!1),[c,u]=i.useState(0),d=Ce.dayjs().subtract(10,"year").toDate(),m=Ce.dayjs().add(3,"year").toDate(),b=()=>{l(!0)},v=([p,y])=>{const g=Ce.dayjs(p).startOf("date").toISOString(),x=Ce.dayjs(y).endOf("date").toISOString(),S=`"${g}"&"${x}"`;r(S),o(S),c>0&&c%2===1?(l(!1),u(0)):u(C=>C+1)};return f.jsxs(et.Item,{span:e.length>1?3:4,children:[f.jsx("div",{onClick:b,children:f.jsxs(et,{columns:5,children:[f.jsx(et.Item,{span:2,style:{textAlign:"end"},children:El(JSON.parse(s[0]))}),f.jsx(et.Item,{span:1,style:{textAlign:"center"},children:"-"}),f.jsx(et.Item,{span:2,style:{textAlign:"start"},children:El(JSON.parse(s[1]))})]})}),f.jsx(Ht,{visible:a,destroyOnClose:!0,mask:!0,closeOnMaskClick:!0,onMaskClick:()=>l(!1),onClose:()=>l(!1),children:f.jsx(K1,{selectionMode:"range",allowClear:!0,min:d,max:m,onChange:v})})]})},sh=t=>{const{options:e,value:n,onChange:o}=t,{t:r}=ce();return f.jsx(et.Item,{style:{flex:1},span:e.length>1?2:3,children:f.jsx(Qr,{placeholder:r("Please enter search content"),value:n,onChange:o,style:{"--font-size":"12px",marginLeft:"5px"}})})},ih=t=>{const{onClick:e}=t,{t:n}=ce();return f.jsx(et.Item,{onClick:e,style:{color:"#2c6eff",textAlign:"center",cursor:"pointer"},children:n("Search")})},ah=h.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,options:o,value:r,onSelectChange:s,onInputChange:a,onButtonClick:l,customLabelKey:c,fieldInterface:u,onDateClick:d}=_l(),{t:m}=ce();return e?f.jsxs(h.SortableItem,{children:[f.jsx(n,{}),f.jsx("div",{className:h.css`
|
|
262
369
|
display: flex;
|
|
263
370
|
flex-direction: row;
|
|
264
371
|
align-items: center;
|
|
265
|
-
`,children:f.jsxs(et,{columns:4,style:{flex:1,display:"flex",flexDirection:"row",justifyContent:"flex-start",padding:"10px",backgroundColor:"#f9f9f9",borderRadius:"5px",margin:"5px 0 0 0"},children:[f.jsx(lh,{options:o,onChange:a,customLabelKey:u}),Ft(d)?f.jsx(ch,{value:r,onChange:m,onInputChange:l,options:o}):f.jsxs(f.Fragment,{children:[f.jsx(uh,{options:o,value:r,onChange:l}),f.jsx(dh,{onClick:c})]})]})})]}):null},{displayName:"TabSearchCollapsibleInputItem"}),mh=h.withDynamicSchemaProps(e=>{const{collectionField:t,Designer:n,items:o,onSelect:r}=Tl(e);return t?f.jsxs(h.SortableItem,{children:[f.jsx(n,{}),f.jsx($o,{style:{"--title-font-size":"12px",color:"#a5a5a5"},onChange:r,children:o.map(s=>f.jsx($o.Tab,{title:s.label},s.key))})]}):null},{displayName:"TabSearchFieldItem"}),Tl=e=>{var b,C;const{list:t,onSelected:n,valueKey:o,labelKey:r,filterKey:s}=e,{t:a}=le(),l=$.useFieldSchema(),c=h.useCollection(),u=i.useMemo(()=>c==null?void 0:c.getField(l.fieldName),[c,l.fieldName]),d=h.useDesigner(),m=o||(u==null?void 0:u.targetKey)||"id",g=r||((C=(b=l["x-component-props"])==null?void 0:b.fieldNames)==null?void 0:C.label)||m,v=w=>{var S;const x=((S=w.keyPath)==null?void 0:S[0])||w;n([x],s)},p={title:g||m,key:m},y=[];return t!=null&&t.length&&t.forEach(w=>{y.push({label:w[p.title],key:w[p.key]})}),y==null||y.unshift({label:a("all"),key:"all"}),{collectionField:u,Designer:d,items:y,onSelect:v}},hh=h.withDynamicSchemaProps(e=>{const{collectionField:t,Designer:n,items:o,onSelect:r}=Tl(e);return t?f.jsxs(h.SortableItem,{children:[f.jsx(n,{}),f.jsx(de.ConfigProvider,{theme:{components:{Menu:{itemColor:"#a5a5a5",itemHoverColor:"#1d2ffff18"}}},children:f.jsx(de.Menu,{items:o,mode:"horizontal",onSelect:r,defaultSelectedKeys:["all"]})})]}):null},{displayName:"TabSearchFieldItem"}),ph=()=>{var u,d,m,g,v,p;const e=$.useFieldSchema(),t=h.useCollection(),n=((u=e["x-component-props"])==null?void 0:u.currentCollection)||(t==null?void 0:t.name),o=gh(n),r=h.useCollectionManager(),s=i.useMemo(()=>t==null?void 0:t.getField(e.fieldName),[t,e.fieldName]),{onSelected:a}=Zo(),l={list:null,valueKey:"",labelKey:"",filterKey:""};if(!t)return;l.valueKey=s!=null&&s.target?(d=r.getCollection(s.target))==null?void 0:d.getPrimaryKey():"id",l.labelKey=((g=(m=e["x-component-props"])==null?void 0:m.fieldNames)==null?void 0:g.label)||l.valueKey;const c=(v=e["x-component-props"])==null?void 0:v.interface;if(ct(c)){const y=o.find(w=>w.name===e.fieldName.split(".").findLast(Boolean)),b={select:"$in",multipleSelect:"$anyOf",checkboxGroup:"$anyOf",radioGroup:"$in"};e.fieldName;const C=((p=y==null?void 0:y.uiSchema)==null?void 0:p.enum)||[];l.valueKey="value",l.labelKey="label",l.list=C,l.filterKey=`${e.fieldName}.${b[y==null?void 0:y.interface]}`}return{list:l.list,valueKey:l.valueKey,labelKey:l.labelKey,onSelected:a,filterKey:l.filterKey}},gh=e=>{var r;const n=h.useCollectionManager().getCollection(e);return((r=n==null?void 0:n.fields)!=null?r:[]).filter(s=>ct(s.interface)&&s.uiSchema.enum)},vh=()=>{var p,y,b,C,w;const e=$.useFieldSchema(),t=h.useCollection(),n=$.useField(),o={dataSource:"main"},r=h.useDataSourceHeaders(o==null?void 0:o.dataSource),s=h.useCollectionManager(),a=i.useMemo(()=>t==null?void 0:t.getField(e.fieldName),[t,e.fieldName]),c=e["x-component-props"].currentCollection===(t==null?void 0:t.name)?a==null?void 0:a.name:e.fieldName,u=e["x-component-props"].interface,d={list:null,valueKey:"",labelKey:"",filterKey:""},{onSelected:m}=Zo();d.valueKey=a!=null&&a.target?(p=s.getCollection(a.target))==null?void 0:p.getPrimaryKey():"id",d.labelKey=((b=(y=e["x-component-props"])==null?void 0:y.fieldNames)==null?void 0:b.label)||d.valueKey;const{data:g,run:v}=h.useRequest({headers:r,resource:a==null?void 0:a.target,action:"list",params:B({fields:[d.labelKey,d.valueKey],pageSize:200,page:1},(C=n.componentProps)==null?void 0:C.params)},{manual:!0,debounceWait:300});return i.useEffect(()=>{$e(u)&&(a!=null&&a.target)&&v()},[d.labelKey,d.valueKey,JSON.stringify(((w=n.componentProps)==null?void 0:w.params)||{}),$e(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:m,filterKey:d.filterKey}):{}},bh=e=>{const{collectionName:t,dataSource:n,blockType:o}=e;return{type:"void","x-decorator":"TabSearchProvider","x-decorator-props":{collection:t,dataSource:n,blockType:o},"x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:filterCollapse","x-component":"CardItem","x-filter-targets":[],properties:{[xe.uid()]:{type:"void","x-action":"tabSearch","x-initializer":"tabSearch:configureFields","x-component":"TabSearch"}}}},yh=e=>{const{filterCollections:t,onlyCurrentDataSource:n,hideChildrenIfSingleCollection:o}=e,r=h.useSchemaInitializerItem(),{insert:s}=h.useSchemaInitializer(),a=c=>me(this,[c],function*({item:l}){const u=bh({dataSource:l.dataSource,collectionName:l.collectionName||l.name,blockType:"filter"});s(u)});return f.jsx(h.DataBlockInitializer,ae(B({},r),{onlyCurrentDataSource:n,icon:"tab-search",componentType:"TabSearch",filter:t,hideChildrenIfSingleCollection:o,onCreateBlockSchema:a}))},gs=e=>{var l,c;const{field:t,itemComponent:n,label:o,itemUseProps:r,collection:s,type:a}=e;return{name:t.key,title:(l=t.uiSchema)==null?void 0:l.title,Component:"TabSearchFieldSchemaInitializerGadget",schema:{name:t.name+a,fieldName:t.name,title:(c=t.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:t.interface,collectionName:s==null?void 0:s.name,correlation:t.name},properties:{}}}},Ch={TabSearchCollapsibleInputItem:"TabSearchCollapsibleInputMItem",useTabSearchFieldItemProps:"useTabSearchFieldItemRelatedProps",TabSearchFieldItem:"TabSearchFieldMItem"};function Dl(e){return Ch[e]}const xh=()=>{const e=Al("textField"),t=Al("choiceField"),n=[{type:"itemGroup",title:qe("Display association Textfields",!1),children:e},{type:"itemGroup",title:qe("Display association Choicefields",!1),children:t}];return f.jsx(h.SchemaInitializerChildren,{children:n})};function Al(e){const t=h.useCollection(),{name:n,allFields:o}=t||{},{getCollectionFields:r}=Sh();h.useIsMobile();const s=h.useCollectionManager(),a=o==null?void 0:o.filter(({interface:d})=>$e(d)),l={collectionName:n,getCollectionFields:r,processedCollections:[],collectionManager:s};let c=[];return e==="textField"?c=a.map(d=>{var v;const m=$e(d.interface)?(v=s.getCollection(`${n}.${d.name}`))==null?void 0:v.titleField:d.name;return Ll(ae(B({},l),{field:d,label:m,schemaName:d.name}))}):e==="choiceField"&&(c=a.map(d=>{var v;const m=((v=s.getCollection(d.target))==null?void 0:v.getPrimaryKey())||"id";return Bl(ae(B({},l),{field:d,label:m,schemaName:d.name}))})),c.filter(Boolean)}function Ll(e,t){var g,v,p,y,b;const{field:n,label:o,schemaName:r,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c}=e,{interface:u}=n,d=ct(u),m=$e(u);if(["m2o","obo"].includes(u)){if(l.includes(n.target))return null;const C=a(n.target);return{type:"subMenu",name:(g=n.uiSchema)==null?void 0:g.title,title:(v=n.uiSchema)==null?void 0:v.title,children:C.toSorted((w,x)=>+Object.hasOwn(w,"target")-+Object.hasOwn(x,"target")).map(w=>{var S;const x=$e(n.interface)?(S=c.getCollection(`${name}.${n.name}`))==null?void 0:S.titleField:n.name;return Ll({field:w,label:x,schemaName:`${r}.${w.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c})}).filter(Boolean)}}return h.isAssocField(n)||!Pl(u)&&!$e(u)&&!Ft(u)?null:{name:((p=n.uiSchema)==null?void 0:p.title)||n.name,title:((y=n.uiSchema)==null?void 0:y.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:r,title:`${(b=n.uiSchema)==null?void 0:b.title}`,fieldName:`${r}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${r}`,"x-component":Dl("TabSearchCollapsibleInputItem"),"x-component-props":{fieldNames:{label:o},interface:n.interface,collectionName:s,correlation:n.name},"x-use-component-props":Vl({useTabSearchFieldItemProps:d,useTabSearchFieldItemRelatedProps:m})}}}function Bl(e,t){var v,p,y,b,C;const{field:n,label:o,schemaName:r,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c,currentCollection:u}=e,{interface:d}=n,m=ct(d),g=$e(d);if(["m2o","obo"].includes(d)&&!n.choiceTag){if(l.includes(n.target))return null;const w=a(n.target);return{type:"subMenu",name:(v=n.uiSchema)==null?void 0:v.title,title:(p=n.uiSchema)==null?void 0:p.title,children:w.reduce((x,S)=>(Object.hasOwn(S,"target")&&["m2o","obo"].includes(S.interface)&&x.push(ae(B({},S),{choiceTag:!0})),[...x,S]),[]).toSorted((x,S)=>+Object.hasOwn(x,"target")*2-+Object.hasOwn(x,"choiceTag")-+Object.hasOwn(S,"target")*2-+Object.hasOwn(S,"choiceTag")).map(x=>{var k;const S=((k=c.getCollection(n.target))==null?void 0:k.getPrimaryKey())||"id";return Bl({field:x,label:S,schemaName:`${r}.${x.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c,currentCollection:n.target})}).filter(Boolean)}}return h.isAssocField(n)&&!n.choiceTag||!ct(d)&&!$e(d)?null:{type:"item",name:((y=n.uiSchema)==null?void 0:y.title)||n.name,title:((b=n.uiSchema)==null?void 0:b.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:r,title:`${(C=n.uiSchema)==null?void 0:C.title}`,fieldName:`${r}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${r}`,"x-component":Dl("TabSearchFieldItem"),"x-component-props":{fieldNames:{label:o},interface:n.interface,collectionName:s,correlation:n.name,currentCollection:u},"x-use-component-props":Vl({useTabSearchFieldItemProps:m,useTabSearchFieldItemRelatedProps:g})}}}function Sh(e){const t=h.useDataSourceManager(),n=h.useCollectionManager(),o=h.useDataSource(),r=(o==null?void 0:o.key)||void 0,s=i.useCallback(l=>{var c;return n&&!l?n:(c=t==null?void 0:t.getDataSource(l||r))==null?void 0:c.collectionManager},[n,t,r]);return{getCollectionFields:i.useCallback((l,c)=>{var d,m;if(!l)return[];const u=(d=s(c))==null?void 0:d.getCollection(l);return((m=u==null?void 0:u.getAllFields)==null?void 0:m.call(u))||(u==null?void 0:u.getFields())||[]},[t,s])}}function Vl(e){const t=Object.entries(e).find(([,o])=>o),[n]=t||[];return n}const wh=new h.SchemaInitializer({name:"tabSearch:configureFields",style:{marginTop:16},icon:"SettingOutlined",title:qe("Configure fields"),items:[{name:"textFields",type:"itemGroup",title:qe("Text fields"),useChildren:kh},{name:"choicesFields",type:"itemGroup",title:qe("Choices fields"),useChildren:Eh},{name:"divider",type:"divider"},{name:"associationFields",Component:xh},{name:"divider",type:"divider"},{title:qe("Add text",!1),Component:"MarkdownFormItemInitializer",name:"addText"}]});function kh(){const e=h.useCollection(),t=e.fields,n=h.useCollectionManager(),r=h.useIsMobile()?"TabSearchCollapsibleInputMItem":"TabSearchCollapsibleInputItem";return t.map(a=>{if(!a.isForeignKey&&(Pl(a.interface)||$e(a.interface)||Ft(a.interface))){const l=$e(a.interface)?n.getCollection(`${e.name}.${a.name}`).titleField:a.name;return gs({field:a,itemComponent:r,label:l,collection:e,type:"text"})}}).filter(Boolean)}function Eh(){const t=h.useCollection().fields,n=h.useCollectionManager(),r=h.useIsMobile()?"TabSearchFieldMItem":"TabSearchFieldItem";return t.map(a=>{var c;const l=((c=n.getCollection(a.target))==null?void 0:c.getPrimaryKey())||"id";if(ct(a.interface))return gs({field:a,itemComponent:r,label:l,itemUseProps:"useTabSearchFieldItemProps",type:"choices"});if($e(a.interface))return gs({field:a,itemComponent:r,label:l,itemUseProps:"useTabSearchFieldItemRelatedProps",type:"choices"})}).filter(Boolean)}const Ih=()=>{const e=h.useSchemaInitializerItem(),{schema:t}=e,{exists:n,remove:o}=h.useCurrentSchema(t.name,"name",e.find,e.remove),{insert:r}=h.useSchemaInitializer(),s=()=>{var l;if(n)return o();const a=$.merge(t||{},e.schema||{});(l=e==null?void 0:e.schemaInitialize)==null||l.call(e,a),r(a)};return f.jsx(h.SchemaInitializerSwitch,{checked:n,title:e.title,onClick:s})},$h=e=>f.jsx(h.DataBlockProvider,{collection:e.collection,children:e.children}),_h=new h.SchemaSettings({name:"fieldSettings:TabSearchItem",items:[{name:"decoratorOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t:e}=le();return{title:e("Generic properties")}},useChildren(){return[{name:"setTheDataScope",Component:h.SchemaSettingsDataScope,useComponentProps(){var l,c;const e=$.useFieldSchema(),{form:t}=h.useFormBlockContext(),n=$.useField(),o=h.useCollectionManager(),s=h.useCollection().getField(e.fieldName)||o.getCollectionField(e["x-collection-field"]),{dn:a}=h.useDesignable();return{collectionName:s==null?void 0:s.target,defaultFilter:((c=(l=e==null?void 0:e["x-component-props"])==null?void 0:l.params)==null?void 0:c.filter)||{},form:t,onSubmit:({filter:u})=>{var d;Ae.set(n.componentProps,"params",ae(B({},(d=n.componentProps)==null?void 0:d.params),{filter:u})),e["x-component-props"].params=n.componentProps.params,a.emit("patch",{schema:{"x-uid":e["x-uid"],"x-component-props":e["x-component-props"]}})}}},useVisible(){const e=$.useFieldSchema();return!Ge(e["x-component"])}},{name:"titleField",type:"select",useComponentProps(){var y,b;const e=$.useFieldSchema(),{t}=le(),n=h.useCollectionManager(),o=h.useCollection(),r=e["x-component-props"]||{},{collectionName:s,currentCollection:a,correlation:l}=r,c=a||s||o.name,u=o.getField(e.fieldName)||n.getCollectionField(e["x-collection-field"])||n.getCollection(c+"."+l),d=h.useCompile(),{dn:m}=h.useDesignable(),v=(u!=null&&u.target?n.getCollectionFields(u==null?void 0:u.target):[]).filter(C=>!(C!=null&&C.target)&&C.type!=="boolean").map(C=>{var w;return{value:C==null?void 0:C.name,label:d((w=C==null?void 0:C.uiSchema)==null?void 0:w.title)||(C==null?void 0:C.name)}}),p=C=>{var S,k,I;const w={"x-uid":e["x-uid"]},x=ae(B(B({},(k=(S=u==null?void 0:u.uiSchema)==null?void 0:S["x-component-props"])==null?void 0:k.fieldNames),(I=e["x-component-props"])==null?void 0:I.fieldNames),{label:C});e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].fieldNames=x,w["x-component-props"]=e["x-component-props"],m.emit("patch",{schema:w}),m.refresh()};return{key:"title-field",title:t("Title field"),options:v,value:(b=(y=e["x-component-props"])==null?void 0:y.fieldNames)==null?void 0:b.label,onChange:p}},useVisible(){var t;const e=$.useFieldSchema();return Ge(e["x-component"])||((t=e["x-component-props"])==null?void 0:t.correlation)}}]}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100,useComponentProps(){const{t:e}=le(),t=$.useFieldSchema(),{dn:n}=h.useDesignable();return{removeParentsIfNoChildren:!0,confirm:{title:e("Delete field")},breakRemoveOn:o=>(Ge(t["x-component"])&&(Object.values(o.properties).forEach(r=>{Ge(r["x-component"])&&r.name!==t.name&&delete o.properties[r.name]}),n.emit("patch",{schema:o})),o["x-component"]==="TabSearch")}}}]}),Nt=$.connect(os,$.mapProps(e=>ae(B({placeholder:"请输入内容",clearable:!0},e),{style:B({"--font-size":"12px"},e==null?void 0:e.style)})),$.mapReadPretty(e=>f.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:e.value}))),Ph=$.connect(yl,$.mapProps(e=>ae(B({},e),{placeholder:"请输入内容",clearable:!0,style:B({"--font-size":"12px"},e==null?void 0:e.style)})),$.mapReadPretty(e=>f.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:e.value})));Nt.TextArea=Ph;const Mh={red:"#fc9792",magenta:"#ffa3cc",volcano:"#ffb38b",orange:"#ffcf86",gold:"#ffe184",lime:"#e7ff84",green:"#aee884",cyan:"#7ce5d9",blue:"#86c3ff",geekblue:"#a3bfff",purple:"#cda3f6",default:"#d4d4d4"},vs=e=>Mh[e],bs=$.connect(Xr,$.mapProps(e=>B({},e)));bs.Group=$.connect(e=>{const t=h.useCollectionField(),n=(t==null?void 0:t.uiSchema.enum)||[],o=e.value||[];return f.jsx(Xr.Group,{value:o,children:n.map((r,s)=>f.jsx(Xr,ae(B({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)}e.onChange(o)}},e),{children:r.label}),s))})},$.mapProps((e,t)=>B({},e)),$.mapReadPretty(e=>{if(!$.isValid(e.value))return f.jsx("div",{});const{value:t}=e,n=$.useField(),o=h.useCollectionField(),r=n.dataSource||(o==null?void 0:o.uiSchema.enum)||[];return f.jsx("div",{children:r.filter(s=>s.value===t).map((s,a)=>f.jsx(as,{color:vs(s.color),children:s.label},a))})}));const zl=$.connect(e=>{const{t}=h.useTranslation(),{value:n,onChange:o}=e,[r,s]=i.useState(!1),[a,l]=i.useState(n),c=a?xe.dayjs(a).format("YYYY-MM-DD"):t("please enter the date"),u=()=>s(!0),d=()=>s(!1),m=v=>{l(v),o(v),s(!1)},g=i.useMemo(()=>{const v=xe.dayjs(a);if(v.isValid())return v.toDate()},[a]);return f.jsxs(f.Fragment,{children:[f.jsx(st,{onClick:u,children:c}),f.jsx(df,{visible:r,value:g,onClose:d,onConfirm:m})]})},$.mapProps(e=>B({},e)),$.mapReadPretty(e=>{const t=B({},e);return t.value=e.value?xe.dayjs(e.value).format("YYYY-MM-DD"):"",f.jsx("div",{children:t.value})})),Fh=$.connect(e=>{const[t,n]=i.useState([]),[o,r]=i.useState(!1),s=e.value||[];i.useEffect(()=>{if(!o&&e.value){const l=e.value.map(c=>({url:c.url,key:c.id,thumbnailUrl:c.url}));n(l)}},[e.value]);const a=h.useAPIClient();return f.jsx(ul,{value:t,upload:l=>me(this,null,function*(){const{name:c}=l;if(Nh(c)){const d=new FormData;d.append("file",l);let m;return yield a.request({url:e.action,method:"post",data:d}).then(g=>{var v;m=(v=g==null?void 0:g.data)==null?void 0:v.data,s.push(m)}).catch(()=>{}),{url:m==null?void 0:m.url,key:m==null?void 0:m.id,thumbnailUrl:m==null?void 0:m.url}}}),onChange:l=>{n(l),r(!0),e.onChange(s)},onDelete:l=>{const c=s.findIndex(u=>u.id===l.key);s.splice(c,1),e.onChange(s)}})},$.mapProps(e=>B({},e)),$.mapReadPretty(e=>{const{showCount:t,value:n=[]}=e,o=n.slice(0,t);return f.jsx(ul,ae(B({},e),{value:o,disableUpload:!0,showUpload:!1,upload:()=>me(this,null,function*(){return{url:""}})}))})),Nh=e=>/\.(png|jpg|jpeg|gif|webp)$/i.test(e),ys=$.connect(rs,$.mapProps({value:"checked",onInput:"onChange"}));ys.Group=$.connect(e=>{const t=h.useCollectionField(),n=(t==null?void 0:t.uiSchema.enum)||[];return f.jsx(rs.Group,ae(B({},e),{children:n.map((o,r)=>f.jsx(rs,{value:o.value,style:{"--font-size":"12px","--icon-size":"18px",marginLeft:"10px"},children:o.label},r))}))},$.mapProps((e,t)=>(i.useEffect(()=>{var o;const n=(o=t.dataSource)==null?void 0:o.find(r=>r.value===e.value);n&&t.setValue(n.value)},[e.value,t.dataSource]),B({},e))),$.mapReadPretty(e=>{if(!$.isValid(e.value))return f.jsx("div",{});const{value:t}=e,n=$.useField(),o=h.useCollectionField(),r=n.dataSource||(o==null?void 0:o.uiSchema.enum)||[];return f.jsx("div",{children:r.filter(s=>s.value===t).map((s,a)=>f.jsx(as,{color:vs(s.color),children:s.label},a))})}));const Oh=h.createStyles(({css:e})=>({PopupStyle:e`
|
|
372
|
+
`,children:f.jsxs(et,{columns:4,style:{flex:1,display:"flex",flexDirection:"row",justifyContent:"flex-start",padding:"10px",backgroundColor:"#f9f9f9",borderRadius:"5px",margin:"5px 0 0 0"},children:[f.jsx(oh,{options:o,onChange:s,customLabelKey:c}),Mt(u)?f.jsx(rh,{value:r,onChange:d,onInputChange:a,options:o}):f.jsxs(f.Fragment,{children:[f.jsx(sh,{options:o,value:r,onChange:a}),f.jsx(ih,{onClick:l})]})]})})]}):null},{displayName:"TabSearchCollapsibleInputItem"}),lh=h.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,items:o,onSelect:r}=Pl(t);return e?f.jsxs(h.SortableItem,{children:[f.jsx(n,{}),f.jsx(ko,{style:{"--title-font-size":"12px",color:"#a5a5a5"},onChange:r,children:o.map(s=>f.jsx(ko.Tab,{title:s.label},s.key))})]}):null},{displayName:"TabSearchFieldItem"}),Pl=t=>{var g,x;const{list:e,onSelected:n,valueKey:o,labelKey:r,filterKey:s}=t,{t:a}=ce(),l=$.useFieldSchema(),c=h.useCollection(),u=i.useMemo(()=>c==null?void 0:c.getField(l.fieldName),[c,l.fieldName]),d=h.useDesigner(),m=o||(u==null?void 0:u.targetKey)||"id",b=r||((x=(g=l["x-component-props"])==null?void 0:g.fieldNames)==null?void 0:x.label)||m,v=S=>{var w;const C=((w=S.keyPath)==null?void 0:w[0])||S;n([C],s)},p={title:b,key:m},y=[];return e!=null&&e.length&&e.forEach(S=>{y.push({label:S[p.title],key:S[p.key]})}),y==null||y.unshift({label:a("all"),key:"all"}),{collectionField:u,Designer:d,items:y,onSelect:v}},ch=h.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,items:o,onSelect:r}=Pl(t);return e?f.jsxs(h.SortableItem,{children:[f.jsx(n,{}),f.jsx(le.ConfigProvider,{theme:{components:{Menu:{itemColor:"#a5a5a5",itemHoverColor:"#1d2ffff18"}}},children:f.jsx(le.Menu,{items:o,mode:"horizontal",onSelect:r,defaultSelectedKeys:["all"]})})]}):null},{displayName:"TabSearchFieldItem"}),uh=()=>{var u,d,m,b,v,p;const t=$.useFieldSchema(),e=h.useCollection(),n=((u=t["x-component-props"])==null?void 0:u.currentCollection)||(e==null?void 0:e.name),o=dh(n),r=h.useCollectionManager(),s=i.useMemo(()=>e==null?void 0:e.getField(t.fieldName),[e,t.fieldName]),{onSelected:a}=Bo(),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=((b=(m=t["x-component-props"])==null?void 0:m.fieldNames)==null?void 0:b.label)||l.valueKey;const c=(v=t["x-component-props"])==null?void 0:v.interface;if(ct(c)){const y=o.find(S=>S.name===t.fieldName.split(".").findLast(Boolean)),g={select:"$in",multipleSelect:"$anyOf",checkboxGroup:"$anyOf",radioGroup:"$in"};t.fieldName;const x=((p=y==null?void 0:y.uiSchema)==null?void 0:p.enum)||[];l.valueKey="value",l.labelKey="label",l.list=x,l.filterKey=`${t.fieldName}.${g[y==null?void 0:y.interface]}`}return{list:l.list,valueKey:l.valueKey,labelKey:l.labelKey,onSelected:a,filterKey:l.filterKey}},dh=t=>{var r;const n=h.useCollectionManager().getCollection(t);return((r=n==null?void 0:n.fields)!=null?r:[]).filter(s=>ct(s.interface)&&s.uiSchema.enum)},fh=()=>{var p,y,g,x,S;const t=$.useFieldSchema(),e=h.useCollection(),n=$.useField(),o={dataSource:"main"},r=h.useDataSourceHeaders(o==null?void 0:o.dataSource),s=h.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:m}=Bo();d.valueKey=a!=null&&a.target?(p=s.getCollection(a.target))==null?void 0:p.getPrimaryKey():"id",d.labelKey=((g=(y=t["x-component-props"])==null?void 0:y.fieldNames)==null?void 0:g.label)||d.valueKey;const{data:b,run:v}=h.useRequest({headers:r,resource:a==null?void 0:a.target,action:"list",params:B({fields:[d.labelKey,d.valueKey],pageSize:200,page:1},(x=n.componentProps)==null?void 0:x.params)},{manual:!0,debounceWait:300});return i.useEffect(()=>{$e(u)&&(a!=null&&a.target)&&v()},[d.labelKey,d.valueKey,JSON.stringify(((S=n.componentProps)==null?void 0:S.params)||{}),$e(u)]),a?(d.filterKey=`${c}.${d.valueKey}.$in`,d.list=(b==null?void 0:b.data)||[],{list:d.list,valueKey:d.valueKey,labelKey:d.labelKey,onSelected:m,filterKey:d.filterKey}):{}},mh=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:{[Ce.uid()]:{type:"void","x-action":"tabSearch","x-initializer":"tabSearch:configureFields","x-component":"TabSearch"}}}},hh=t=>{const{filterCollections:e,onlyCurrentDataSource:n,hideChildrenIfSingleCollection:o}=t,r=h.useSchemaInitializerItem(),{insert:s}=h.useSchemaInitializer(),a=c=>fe(this,[c],function*({item:l}){const u=mh({dataSource:l.dataSource,collectionName:l.collectionName||l.name,blockType:"filter"});s(u)});return f.jsx(h.DataBlockInitializer,ae(B({},r),{onlyCurrentDataSource:n,icon:"tab-search",componentType:"TabSearch",filter:e,hideChildrenIfSingleCollection:o,onCreateBlockSchema:a}))},ds=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:{}}}},ph={TabSearchCollapsibleInputItem:"TabSearchCollapsibleInputMItem",useTabSearchFieldItemProps:"useTabSearchFieldItemRelatedProps",TabSearchFieldItem:"TabSearchFieldMItem"};function Fl(t){return ph[t]}const gh=()=>{const t=Ml("textField"),e=Ml("choiceField"),n=[{type:"itemGroup",title:qe("Display association Textfields",!1),children:t},{type:"itemGroup",title:qe("Display association Choicefields",!1),children:e}];return f.jsx(h.SchemaInitializerChildren,{children:n})};function Ml(t){const e=h.useCollection(),{name:n,allFields:o}=e||{},{getCollectionFields:r}=vh();h.useIsMobile();const s=h.useCollectionManager(),a=o==null?void 0:o.filter(({interface:d})=>$e(d)),l={collectionName:n,getCollectionFields:r,processedCollections:[],collectionManager:s};let c=[];return t==="textField"?c=a.map(d=>{var v;const m=$e(d.interface)?(v=s.getCollection(`${n}.${d.name}`))==null?void 0:v.titleField:d.name;return Nl(ae(B({},l),{field:d,label:m,schemaName:d.name}))}):t==="choiceField"&&(c=a.map(d=>{var v;const m=((v=s.getCollection(d.target))==null?void 0:v.getPrimaryKey())||"id";return Tl(ae(B({},l),{field:d,label:m,schemaName:d.name}))})),c.filter(Boolean)}function Nl(t,e){var b,v,p,y,g;const{field:n,label:o,schemaName:r,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c}=t,{interface:u}=n,d=ct(u),m=$e(u);if(["m2o","obo"].includes(u)){if(l.includes(n.target))return null;const x=a(n.target);return{type:"subMenu",name:(b=n.uiSchema)==null?void 0:b.title,title:(v=n.uiSchema)==null?void 0:v.title,children:x.toSorted((S,C)=>+Object.hasOwn(S,"target")-+Object.hasOwn(C,"target")).map(S=>{var w;const C=$e(n.interface)?(w=c.getCollection(`${name}.${n.name}`))==null?void 0:w.titleField:n.name;return Nl({field:S,label:C,schemaName:`${r}.${S.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c})}).filter(Boolean)}}return h.isAssocField(n)||!kl(u)&&!$e(u)&&!Mt(u)?null:{name:((p=n.uiSchema)==null?void 0:p.title)||n.name,title:((y=n.uiSchema)==null?void 0:y.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:r,title:`${(g=n.uiSchema)==null?void 0:g.title}`,fieldName:`${r}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${r}`,"x-component":Fl("TabSearchCollapsibleInputItem"),"x-component-props":{fieldNames:{label:o},interface:n.interface,collectionName:s,correlation:n.name},"x-use-component-props":Ol({useTabSearchFieldItemProps:d,useTabSearchFieldItemRelatedProps:m})}}}function Tl(t,e){var v,p,y,g,x;const{field:n,label:o,schemaName:r,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c,currentCollection:u}=t,{interface:d}=n,m=ct(d),b=$e(d);if(["m2o","obo"].includes(d)&&!n.choiceTag){if(l.includes(n.target))return null;const S=a(n.target);return{type:"subMenu",name:(v=n.uiSchema)==null?void 0:v.title,title:(p=n.uiSchema)==null?void 0:p.title,children:S.reduce((C,w)=>(Object.hasOwn(w,"target")&&["m2o","obo"].includes(w.interface)&&C.push(ae(B({},w),{choiceTag:!0})),[...C,w]),[]).toSorted((C,w)=>+Object.hasOwn(C,"target")*2-+Object.hasOwn(C,"choiceTag")-+Object.hasOwn(w,"target")*2-+Object.hasOwn(w,"choiceTag")).map(C=>{var k;const w=((k=c.getCollection(n.target))==null?void 0:k.getPrimaryKey())||"id";return Tl({field:C,label:w,schemaName:`${r}.${C.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c,currentCollection:n.target})}).filter(Boolean)}}return h.isAssocField(n)&&!n.choiceTag||!ct(d)&&!$e(d)?null:{type:"item",name:((y=n.uiSchema)==null?void 0:y.title)||n.name,title:((g=n.uiSchema)==null?void 0:g.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:r,title:`${(x=n.uiSchema)==null?void 0:x.title}`,fieldName:`${r}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${r}`,"x-component":Fl("TabSearchFieldItem"),"x-component-props":{fieldNames:{label:o},interface:n.interface,collectionName:s,correlation:n.name,currentCollection:u},"x-use-component-props":Ol({useTabSearchFieldItemProps:m,useTabSearchFieldItemRelatedProps:b})}}}function vh(t){const e=h.useDataSourceManager(),n=h.useCollectionManager(),o=h.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,m;if(!l)return[];const u=(d=s(c))==null?void 0:d.getCollection(l);return((m=u==null?void 0:u.getAllFields)==null?void 0:m.call(u))||(u==null?void 0:u.getFields())||[]},[e,s])}}function Ol(t){const e=Object.entries(t).find(([,o])=>o),[n]=e||[];return n}const bh=new h.SchemaInitializer({name:"tabSearch:configureFields",style:{marginTop:16},icon:"SettingOutlined",title:qe("Configure fields"),items:[{name:"textFields",type:"itemGroup",title:qe("Text fields"),useChildren:yh},{name:"choicesFields",type:"itemGroup",title:qe("Choices fields"),useChildren:xh},{name:"divider",type:"divider"},{name:"associationFields",Component:gh},{name:"divider",type:"divider"},{title:qe("Add text",!1),Component:"MarkdownFormItemInitializer",name:"addText"}]});function yh(){const t=h.useCollection(),e=t.fields,n=h.useCollectionManager(),r=h.useIsMobile()?"TabSearchCollapsibleInputMItem":"TabSearchCollapsibleInputItem";return e.map(a=>{if(!a.isForeignKey&&(kl(a.interface)||$e(a.interface)||Mt(a.interface))){const l=$e(a.interface)?n.getCollection(`${t.name}.${a.name}`).titleField:a.name;return ds({field:a,itemComponent:r,label:l,collection:t,type:"text"})}}).filter(Boolean)}function xh(){const e=h.useCollection().fields,n=h.useCollectionManager(),r=h.useIsMobile()?"TabSearchFieldMItem":"TabSearchFieldItem";return e.map(a=>{var c;const l=((c=n.getCollection(a.target))==null?void 0:c.getPrimaryKey())||"id";if(ct(a.interface))return ds({field:a,itemComponent:r,label:l,itemUseProps:"useTabSearchFieldItemProps",type:"choices"});if($e(a.interface))return ds({field:a,itemComponent:r,label:l,itemUseProps:"useTabSearchFieldItemRelatedProps",type:"choices"})}).filter(Boolean)}const Ch=()=>{const t=h.useSchemaInitializerItem(),{schema:e}=t,{exists:n,remove:o}=h.useCurrentSchema(e.name,"name",t.find,t.remove),{insert:r}=h.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 f.jsx(h.SchemaInitializerSwitch,{checked:n,title:t.title,onClick:s})},Sh=t=>f.jsx(h.DataBlockProvider,{collection:t.collection,children:t.children}),wh=new h.SchemaSettings({name:"fieldSettings:TabSearchItem",items:[{name:"decoratorOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t}=ce();return{title:t("Generic properties")}},useChildren(){return[{name:"setTheDataScope",Component:h.SchemaSettingsDataScope,useComponentProps(){var l,c;const t=$.useFieldSchema(),{form:e}=h.useFormBlockContext(),n=$.useField(),o=h.useCollectionManager(),s=h.useCollection().getField(t.fieldName)||o.getCollectionField(t["x-collection-field"]),{dn:a}=h.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;Le.set(n.componentProps,"params",ae(B({},(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!Ge(t["x-component"])}},{name:"titleField",type:"select",useComponentProps(){var y,g;const t=$.useFieldSchema(),{t:e}=ce(),n=h.useCollectionManager(),o=h.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=h.useCompile(),{dn:m}=h.useDesignable(),v=(u!=null&&u.target?n.getCollectionFields(u==null?void 0:u.target):[]).filter(x=>!(x!=null&&x.target)&&x.type!=="boolean").map(x=>{var S;return{value:x==null?void 0:x.name,label:d((S=x==null?void 0:x.uiSchema)==null?void 0:S.title)||(x==null?void 0:x.name)}}),p=x=>{var w,k,I;const S={"x-uid":t["x-uid"]},C=ae(B(B({},(k=(w=u==null?void 0:u.uiSchema)==null?void 0:w["x-component-props"])==null?void 0:k.fieldNames),(I=t["x-component-props"])==null?void 0:I.fieldNames),{label:x});t["x-component-props"]=t["x-component-props"]||{},t["x-component-props"].fieldNames=C,S["x-component-props"]=t["x-component-props"],m.emit("patch",{schema:S}),m.refresh()};return{key:"title-field",title:e("Title field"),options:v,value:(g=(y=t["x-component-props"])==null?void 0:y.fieldNames)==null?void 0:g.label,onChange:p}},useVisible(){var e;const t=$.useFieldSchema();return Ge(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}=ce(),e=$.useFieldSchema(),{dn:n}=h.useDesignable();return{removeParentsIfNoChildren:!0,confirm:{title:t("Delete field")},breakRemoveOn:o=>(Ge(e["x-component"])&&(Object.values(o.properties).forEach(r=>{Ge(r["x-component"])&&r.name!==e.name&&delete o.properties[r.name]}),n.emit("patch",{schema:o})),o["x-component"]==="TabSearch")}}}]}),Nt=$.connect(Qr,$.mapProps(t=>ae(B({placeholder:"请输入内容",clearable:!0},t),{style:B({"--font-size":"12px"},t==null?void 0:t.style)})),$.mapReadPretty(t=>f.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:t.value}))),kh=$.connect(ml,$.mapProps(t=>ae(B({},t),{placeholder:"请输入内容",clearable:!0,style:B({"--font-size":"12px"},t==null?void 0:t.style)})),$.mapReadPretty(t=>f.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:t.value})));Nt.TextArea=kh;const Eh={red:"#fc9792",magenta:"#ffa3cc",volcano:"#ffb38b",orange:"#ffcf86",gold:"#ffe184",lime:"#e7ff84",green:"#aee884",cyan:"#7ce5d9",blue:"#86c3ff",geekblue:"#a3bfff",purple:"#cda3f6",default:"#d4d4d4"},fs=t=>Eh[t],ms=$.connect(Hr,$.mapProps(t=>B({},t)));ms.Group=$.connect(t=>{const e=h.useCollectionField(),n=(e==null?void 0:e.uiSchema.enum)||[],o=t.value||[];return f.jsx(Hr.Group,{value:o,children:n.map((r,s)=>f.jsx(Hr,ae(B({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)=>B({},t)),$.mapReadPretty(t=>{if(!$.isValid(t.value))return f.jsx("div",{});const{value:e}=t,n=$.useField(),o=h.useCollectionField(),r=n.dataSource||(o==null?void 0:o.uiSchema.enum)||[];return f.jsx("div",{children:r.filter(s=>s.value===e).map((s,a)=>f.jsx(ns,{color:fs(s.color),children:s.label},a))})}));const Dl=$.connect(t=>{const{t:e}=h.useTranslation(),{value:n,onChange:o}=t,[r,s]=i.useState(!1),[a,l]=i.useState(n),c=a?Ce.dayjs(a).format("YYYY-MM-DD"):e("please enter the date"),u=()=>s(!0),d=()=>s(!1),m=v=>{l(v),o(v),s(!1)},b=i.useMemo(()=>{const v=Ce.dayjs(a);if(v.isValid())return v.toDate()},[a]);return f.jsxs(f.Fragment,{children:[f.jsx(st,{onClick:u,children:c}),f.jsx(of,{visible:r,value:b,onClose:d,onConfirm:m})]})},$.mapProps(t=>B({},t)),$.mapReadPretty(t=>{const e=B({},t);return e.value=t.value?Ce.dayjs(t.value).format("YYYY-MM-DD"):"",f.jsx("div",{children:e.value})})),Ih=$.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=h.useAPIClient();return f.jsx(rl,{value:e,upload:l=>fe(this,null,function*(){const{name:c}=l;if($h(c)){const d=new FormData;d.append("file",l);let m;return yield a.request({url:t.action,method:"post",data:d}).then(b=>{var v;m=(v=b==null?void 0:b.data)==null?void 0:v.data,s.push(m)}).catch(()=>{}),{url:m==null?void 0:m.url,key:m==null?void 0:m.id,thumbnailUrl:m==null?void 0:m.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=>B({},t)),$.mapReadPretty(t=>{const{showCount:e,value:n=[]}=t,o=n.slice(0,e);return f.jsx(rl,ae(B({},t),{value:o,disableUpload:!0,showUpload:!1,upload:()=>fe(this,null,function*(){return{url:""}})}))})),$h=t=>/\.(png|jpg|jpeg|gif|webp)$/i.test(t),hs=$.connect(Rr,$.mapProps({value:"checked",onInput:"onChange"}));hs.Group=$.connect(t=>{const e=h.useCollectionField(),n=(e==null?void 0:e.uiSchema.enum)||[];return f.jsx(Rr.Group,ae(B({},t),{children:n.map((o,r)=>f.jsx(Rr,{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]),B({},t))),$.mapReadPretty(t=>{if(!$.isValid(t.value))return f.jsx("div",{});const{value:e}=t,n=$.useField(),o=h.useCollectionField(),r=n.dataSource||(o==null?void 0:o.uiSchema.enum)||[];return f.jsx("div",{children:r.filter(s=>s.value===e).map((s,a)=>f.jsx(ns,{color:fs(s.color),children:s.label},a))})}));const _h=h.createStyles(({css:t})=>({PopupStyle:t`
|
|
266
373
|
.adm-popup-body {
|
|
267
374
|
padding: 10px;
|
|
268
375
|
.adm-space {
|
|
@@ -282,12 +389,12 @@
|
|
|
282
389
|
text-align: center;
|
|
283
390
|
}
|
|
284
391
|
}
|
|
285
|
-
`})),
|
|
392
|
+
`})),Ph=$.observer(t=>{const{fieldSchema:e}=t,[n,o]=i.useState(!1),r=e.reduceProperties((a,l)=>{const c=l.reduceProperties((u,d)=>d["x-component"]==="AssociationField.AddNewer"?d:u);return c||a},{}),s=()=>{o(!0)};return f.jsxs("div",{children:[f.jsx(st,{color:"primary",fill:"outline",onClick:s,children:"添加"}),f.jsx(Ht,{visible:n,onMaskClick:()=>{o(!1)},showCloseButton:!0,onClose:()=>{o(!1)},className:h.css`
|
|
286
393
|
.adm-popup-body {
|
|
287
394
|
height: 80vh;
|
|
288
395
|
overflow: auto;
|
|
289
396
|
}
|
|
290
|
-
`,children:f.jsx(h.MobileProvider,{children:f.jsx(h.ActionContextProvider,{visible:n,setVisible:o,children:f.jsx($.RecursionField,{schema:r,onlyRenderProperties:!0})})})})]})},{displayName:"CreateRecordAction"}),
|
|
397
|
+
`,children:f.jsx(h.MobileProvider,{children:f.jsx(h.ActionContextProvider,{visible:n,setVisible:o,children:f.jsx($.RecursionField,{schema:r,onlyRenderProperties:!0})})})})]})},{displayName:"CreateRecordAction"}),Fh=$.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),[m,b]=i.useState(""),{styles:v}=_h(),[p,y]=i.useState([]),g=$.useFieldSchema(),x=h.useCollectionManager(),S=h.useCollection(),[C]=h.useFieldServiceFilter(o==null?void 0:o.params),[w,k]=i.useState({}),I=h.useAPIClient(),[_,T]=i.useState(e),L=(r==null?void 0:r.label)||"label",M=(r==null?void 0:r.value)||"value";let N="";Ce.isArray(e)?e.forEach((E,D)=>{N+=`${E[L]}${e.length-1===D?"":", "}`}):e&&typeof e=="object"&&(N=e[L]);const{run:W}=h.useRequest({resource:n,action:"list",params:{filter:B(B({},C==null?void 0:C.filter),w)}},{manual:!0,onSuccess(E){var D;if(E){const O=(D=E.data)==null?void 0:D.map(V=>ae(B({},V),{label:V[L],value:V[M]}));y(O)}}});i.useEffect(()=>{z()},[w,u]);const z=()=>{var E;if(n)W();else if(g["x-collection-field"]){const O=(E=x.getCollectionField(g["x-collection-field"]).uiSchema)==null?void 0:E.enum;y(O)}else y(g.enum)},P=E=>{E[L]=I.request({url:n+":create",method:"post",data:E}).then(D=>{D.status===200?rs.show({icon:"success",content:"添加成功"}):rs.show({icon:"fail",content:"失败成功"});const O=B({},w);delete O[L],k(O),b(""),d(!1)}).catch(()=>{})},F=()=>{const E={};E[L]=m,P(E)};return f.jsx(h.CollectionProvider,{name:n||(S==null?void 0:S.name),children:f.jsxs(h.BlockItem,{children:[f.jsx("div",{onClick:()=>{g["x-disabled"]||(d(!0),z())},style:{color:"#c5c5c5"},children:e!=null&&e.length||e&&!Ce.isArray(e)?f.jsx(Nt,{style:{"--color":"#1e8bf1"},value:N,disabled:g["x-disabled"]}):f.jsx(_n,{children:g["x-disabled"]?"":"请选择内容"})}),f.jsx(Ht,{visible:u,className:`${v.PopupStyle}`,onMaskClick:()=>{d(!1)},children:f.jsxs(h.MobileProvider,{children:[f.jsx(cl,{placeholder:"请输入内容",value:m,onChange:E=>{const D=B({},w);D[L]={$includes:E},k(D),b(E)}}),m&&s==="quickAdd"?f.jsxs(_n,{justify:"center",align:"center",onClick:F,children:["+ 创建",m]}):null,f.jsx(Ar,{}),l||c==="multiple"?f.jsx($o,{multiple:!0,className:`${v.checkListStyle}`,onChange:E=>{if(!E.length){T(null);return}const D=p.filter(O=>E.includes(O.value));T(D)},children:p.map((E,D)=>f.jsx($o.Item,{value:E.value,children:E.label},D))}):f.jsx(jr,{columns:[p],onChange:E=>{const D=p.find(O=>O.value===E[0]);T(D)}}),f.jsxs(_n,{justify:"evenly",align:"center",children:[s==="modalAdd"?f.jsx(h.SchemaComponent,{components:{CreateRecordAction:Ph},schema:{type:"void",name:"CreateRecord","x-component":"CreateRecordAction","x-component-props":{fieldSchema:g}}}):null,f.jsx(st,{color:"primary",onClick:()=>{d(!1);const E=B({},w);E[L]&&delete E[L],b(""),k(E)},children:"取消"}),f.jsx(st,{color:"primary",onClick:()=>{a(_),d(!1);const E=B({},w);E[L]&&delete E[L],b(""),k(E)},children:"确定"})]})]})})]})})}),ps=$.connect(Fh,$.mapProps(t=>{const e=B({},t),n=$.useFieldSchema(),r=h.useCollectionManager().getCollection(n["x-collection-field"]),s=$.useField(),a=h.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))),B({},e)}),$.mapReadPretty(t=>{var n,o;const e=h.useCollectionField();if(typeof t.value=="object")return f.jsx(h.AssociationField.ReadPretty,B({},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 f.jsx(ns,{color:fs(r==null?void 0:r.color),children:r==null?void 0:r.label})}})),Mh=h.createStyles(({css:t})=>({PopupStyle:t`
|
|
291
398
|
.adm-popup-body {
|
|
292
399
|
padding: 10px;
|
|
293
400
|
.adm-space {
|
|
@@ -307,13 +414,13 @@
|
|
|
307
414
|
text-align: center;
|
|
308
415
|
}
|
|
309
416
|
}
|
|
310
|
-
`})),
|
|
417
|
+
`})),Al=$.observer(t=>{var ee,Ne;const{service:e,fieldNames:n,disabled:o,useLoadData:r,useDataSource:s,multiple:a,onChange:l,value:c,formCascaderValues:u,index:d}=t,m=$.useFieldSchema(),b=h.useCollectionManager(),{styles:v}=Mh(),p=b.getCollectionField(m["x-collection-field"]),y=((ee=m["x-component-props"])==null?void 0:ee.changOnSelect)||!1,g=b.getCollection(m["x-collection-field"]),x=p.interface==="chinaRegion",[S,C]=i.useState([]),[w,k]=i.useState(!1),[I]=h.useFieldServiceFilter(e==null?void 0:e.params),[_,T]=i.useState(I),[L,M]=i.useState(""),[N,W]=i.useState(c),[z,P]=i.useState(""),[F,E]=i.useState([]),D=$.useField(),{loading:O,run:V}=h.useRequest({resource:g==null?void 0:g.name,action:"list",params:{filter:_,tree:!0}},{manual:!0,onSuccess({data:q}){if(q){C(q),D.dataSource=q||[];const de=Nh(q);E(de),c&&P(zo(de,c,"",n.label))}}}),j=r==null?void 0:r(t),{loading:H,run:U}=(s==null?void 0:s({onSuccess(q){D.dataSource=(q==null?void 0:q.data)||[],C(q==null?void 0:q.data)}}))||{loading:!0,run:null};!z&&c&&x&&P(Ll(c,n)),i.useEffect(()=>{!x&&(g!=null&&g.name)&&ne()},[_]),i.useEffect(()=>{!x&&F.length&&P(zo(F,c,"",n.label))},[(Ne=m["x-component-props"])==null?void 0:Ne.fieldNames]);const Q=q=>fe(this,null,function*(){W(q?x?q:q[q.length-1]:{})}),ne=()=>{x?U():V()};return f.jsxs(h.CollectionProvider,{name:p.collectionName,children:[f.jsxs("div",{onClick:()=>{o||(k(!0),ne())},style:{display:"flex",alignItems:"center"},children:[c&&Object.keys(c).length?f.jsx(Nt,{style:{"--color":"#1e8bf1"},value:z,disabled:o,clearable:!1}):f.jsx(Nt,{value:z?"":"请选择",style:{"--color":"#c5c5c5"}}),c&&Object.keys(c).length||u&&d!==0?f.jsx(Rn,{style:{margin:"5px 10px 5px 20px"},onClick:()=>{if(d){const q=[...u];u.length===1&&d===0?q[d]={}:q.splice(d,1),l(q)}else l({})}}):null]}),f.jsx(Ht,{visible:w,className:`${v.PopupStyle}`,onMaskClick:()=>{k(!1)},children:f.jsxs(h.MobileProvider,{children:[x?null:f.jsxs(f.Fragment,{children:[f.jsx(cl,{placeholder:"请输入内容",value:L,onChange:q=>{const de=B({},_);de[n.label]={$includes:q},T(de),M(q)}}),f.jsx(Ar,{})]}),f.jsx(D0,{loading:x?H:O,fieldNames:n,options:S,onChange:(q,de)=>{if(x){const Z=D.componentProps.maxLevel,G=de.items[de.items.length-1];Z>G.level&&(G.children=[]),j(de.items,re=>{re!=null&&re.data.length&&(G.children=re.data.map(ge=>(Z>ge.level&&(ge.isLeaf=!1),ge)),C([...S]))})}Q(de.items)}}),f.jsxs(_n,{justify:"evenly",align:"center",children:[f.jsx(st,{color:"primary",onClick:()=>{k(!1);const q=B({},_);q[n.label]&&delete q[n.label],M(""),T(q)},children:"取消"}),f.jsx(st,{color:"primary",onClick:()=>{const q=a?Th(u,N,d):N;l(q);const de=x?Ll(N,n):zo(F,N,"",n.label);if(P(de),k(!1),!x){const Z=B({},_);delete Z[n.label],M(""),T(Z)}},disabled:y?!(N&&N!=="{}"):!(N&&N!=="{}"&&(!(N!=null&&N.children)||!(N!=null&&N.children.length))),children:"确定"})]})]})})]})}),zo=(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 zo(t,s,a,o)}return r},Nh=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},Th=(t,e,n)=>{const o=[];return t&&(n||n===0)?(t[n]=e,o.push(...t)):o.push(e),o},Ll=(t,e)=>t==null?void 0:t.reduce((n,o,r)=>n+`${o[e.label]}${t.length-1===r?"":"/"}`,""),Oh=$.observer(t=>{const{value:e,onChange:n,multiple:o}=t,{t:r}=ce();return f.jsxs(f.Fragment,{children:[Ce.isArray(e)&&o?f.jsx(f.Fragment,{children:e.map((s,a)=>{const l=ae(B({},t),{value:s,formCascaderValues:e||[],index:a});return i.createElement(Al,ae(B({},l),{key:a}))})}):f.jsx(Al,B({},t)),o?f.jsx(f.Fragment,{children:f.jsxs(st,{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]})}),Dh={label:"label",value:"value",children:"children"},Ah=t=>{const{fieldNames:e=Dh}=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 f.jsx("div",{children:a.map((l,c)=>f.jsxs("span",{children:[typeof l=="object"?l[e.label]:l,o>c+1&&" / "]},c))})},Bl=$.connect(Oh,$.mapProps(t=>B({},t)),$.mapReadPretty(t=>{const e=$.useFieldSchema();return h.useCollectionManager().getCollectionField(e["x-collection-field"]).interface==="chinaRegion"?f.jsx(Ah,B({},t)):f.jsx(h.AssociationField.ReadPretty,B({},t))})),Lh=i.createContext(null),zl=()=>i.useContext(Lh),Bh=h.css`
|
|
311
418
|
padding: 0 var(--tb-spacing);
|
|
312
419
|
& > .tb-action-bar {
|
|
313
420
|
padding: unset !important;
|
|
314
421
|
background: unset !important;
|
|
315
422
|
}
|
|
316
|
-
`,
|
|
423
|
+
`,zh=()=>({className:Bh}),Vh={xs:1,sm:1,md:1,lg:1,xl:1,xxl:1},Zh=()=>({columnCount:zl()?Vh:null,pagination:{simple:!0}}),jh=()=>{const t=ie.useNavigate();return window.location.pathname.split("/")[1]==="mobile"?f.jsx(Cf,{status:"empty",title:"Sorry, the page you visited does not exist.",description:f.jsx(st,{onClick:()=>t("/mobile",{replace:!0}),color:"primary",children:"Back Home"}),className:h.css`
|
|
317
424
|
.adm-error-block-image {
|
|
318
425
|
height: 30vh;
|
|
319
426
|
}
|
|
@@ -328,13 +435,13 @@
|
|
|
328
435
|
height: 3.5vh;
|
|
329
436
|
font-size: 50px;
|
|
330
437
|
}
|
|
331
|
-
`}):f.jsx(h.AppNotFound,{})},Hl=()=>window.JsBridge,Gh=(e,t)=>Hl().invoke(e,t),qh=()=>!!Hl(),Ul={onBackPressed:()=>{history.length===1?Gh({action:"moveTaskToBack"}):history.back()}};Object.keys(Ul).forEach(e=>{window[e]=Ul[e]});const Yl=i.memo(e=>{const t=ie.useLocation(),n=ie.useNavigate();return i.useEffect(()=>{qh()&&t.pathname==="/admin"&&n("/mobile",{replace:!0})},[t.pathname,n]),f.jsx(f.Fragment,{children:e.children})});Yl.displayName="MobileClientProvider";const Xh=()=>{const e=ie.useNavigate(),{token:t}=h.useToken(),{t:n}=le();return f.jsx(de.Tooltip,{title:n("Mobile UI"),children:f.jsx(de.Button,{icon:f.jsx(Ke.MobileOutlined,{style:{color:t.colorTextHeaderMenu}}),title:n("Mobile UI"),onClick:()=>{e("/mobile")}})})},Qh=e=>f.jsx(h.PinnedPluginListProvider,{items:{me:{order:210,component:"MobileLink",pin:!0,isPublic:!0,belongTo:"pinnedmenu"}},children:f.jsx(h.SchemaComponentOptions,{components:{MobileLink:Xh},children:e.children})}),Gl=()=>{const e=$.useFieldSchema(),{t}=We.useTranslation(),{duplicateData:n}=h.useFormBlockContext(),o=h.useCollectionManager();if(n)return n;const{items:r=[],display:s=!0}=Rh(e);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){xe.error(d),c.fields=[]}});const a=[{key:"none",title:t("None")}].concat(r.map((c,u)=>ae(B({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)}},Jh=({style:e={},templateKey:t="none",collection:n})=>{const o=$.useForm(),{templates:r,enabled:s,defaultTemplate:a}=Gl(),l=h.useCollectionManager(),c=h.compatibleDataId(r),u=t,[d,m]=i.useState(null),g=h.useAPIClient();We.useTranslation(),i.useEffect(()=>{s&&a&&(o.__template=!0,a.key==="duplicate"&&p(a.dataId,a))},[]),i.useEffect(()=>{c!=null&&c.some(b=>b.key===u)||v("none")},[c]);const v=i.useCallback(b=>me(this,null,function*(){m(null),o==null||o.reset()}),[]),p=i.useCallback((b,C)=>me(this,null,function*(){const w=ae(B({},C),{dataId:b});m(C),e2(g,w).then(x=>(o&&x&&(o.reset(),o.__template=!0,xe.forEach(x,(S,k)=>{var I;S&&(o.values[k]=S,(I=o==null?void 0:o.setInitialValuesIn)==null||I.call(o,k,S))})),x)).catch(x=>{console.error(x)})}),[]);if(!s)return null;const y=c==null?void 0:c.find(b=>b.key===u);return y&&n&&(y.collection=n),u!=="none"&&y&&f.jsx(h.RemoteSelect,{fieldNames:{label:y==null?void 0:y.titleField,value:"id"},target:y==null?void 0:y.collection,value:d,objectValue:!0,service:{resource:y==null?void 0:y.collection,params:{filter:y==null?void 0:y.dataScope}},onChange:b=>p(b==null?void 0:b.id,B(B({},b),y)),targetField:l.getCollectionField(`${y==null?void 0:y.collection}.${y.titleField}`)})};function Rh(e){const t=h.findFormBlock(e);return t?Ae.cloneDeep(t["x-data-templates"])||{}:{}}function e2(e,t,n){return me(this,null,function*(){if(!(t.fields.length===0||!t.dataId))return e.resource(t.collection).get({filterByTk:t.dataId,fields:t.fields,isTemplate:!0}).then(o=>{var r;return(r=o.data)==null?void 0:r.data})})}const t2=new h.SchemaSettings({name:"fieldSettings:component:DataSelect",items:[{name:"templateSelect",type:"select",useComponentProps(){var a;const{templates:e}=Gl(),t=h.compatibleDataId(e),{t:n}=le(),o=$.useField(),r=$.useFieldSchema(),{dn:s}=h.useDesignable();return{title:n("Template Select"),value:((a=o.componentProps)==null?void 0:a.templateKey)||"none",fieldNames:{label:"title",value:"key"},options:t,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 e=h.useCollectionManager(),t=h.useCompile(),n=e.getCollections().map(c=>({label:t(c.title),value:c.name})),{t:o}=le(),r=$.useField(),s=$.useFieldSchema(),{dn:a}=h.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 n2 extends h.Plugin{load(){return me(this,null,function*(){this.app.addComponents({DataSelect:Jh}),this.app.schemaSettingsManager.add(t2);const t={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",t.name,t),this.app.schemaInitializerManager.addItem("details:configureFields",t.name,t)})}}const o2="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",r2="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",s2="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 i2=e=>decodeURI(e).replace("data:image/svg+xml,","");const xs=e=>()=>f.jsx("div",{dangerouslySetInnerHTML:{__html:i2(e)}}),a2=e=>f.jsx(h.Icon,B({component:xs(o2)},e)),l2=e=>f.jsx(h.Icon,B({component:xs(r2)},e)),c2=e=>f.jsx(h.Icon,B({component:xs(s2)},e));h.Icon.register({"notice-block":a2,"swiper-block":l2,"tab-search":c2});const u2=e=>f.jsx(h.MobileProvider,{children:f.jsx(h.SchemaComponentOptions,{components:{MMenuBlockInitializer:Sc,MSettingsBlockInitializer:Im,MContainer:fs,MMenu:us,MTabBar:ms,MPage:hs,MHeader:$l,MSettings:_l,SwiperBlockInitializer:Jm,SwiperBlock:Qm,SwiperPage:Fl,TabSearch:th,TabSearchProvider:$h,TabSearchBlockInitializer:yh,TabSearchFieldItem:hh,TabSearchFieldMItem:mh,TabSearchCollapsibleInputItem:ah,TabSearchCollapsibleInputMItem:fh,TabSearchFieldSchemaInitializerGadget:Ih,ImageSearchView:Vm,ImageSearchInitializer:Lm,ImageSearchProvider:Bm,ImageSearchItemIntializer:Zm,ImageSearchItemToolbar:Km,ImageSearchItemView:Wm,MInput:Nt,MCheckbox:bs,MDatePicker:zl,MRadio:ys,MImageUploader:Fh,MCascader:Kl,MSelect:Cs,Input:Nt,"Input.TextArea":Nt.TextArea,"Radio.Group":ys.Group,"Checkbox.Group":bs.Group,DatePicker:zl,Select:Cs,AlternativeAssociationSelect:Cs,Cascader:Kl},scope:{useGridCardBlockItemProps:Wh,useGridCardBlockProps:Uh,useSwiperBlockProps:eh,usePropsOptionalImageSearchItemField:Ym,usePropsRelatedImageSearchItemField:qm,useTabSearchFieldItemProps:ph,useTabSearchFieldItemRelatedProps:vh},children:e.children})}),d2=()=>{const{t:e}=le(),t=h.useApp(),n=()=>{const o=window.location,r=o.hash.slice(o.hash.indexOf("/"));window.open(t.getRouteUrl(r))};return f.jsx("div",{className:h.css`
|
|
438
|
+
`}):f.jsx(h.AppNotFound,{})},Vl=()=>window.JsBridge,Kh=(t,e)=>Vl().invoke(t,e),Wh=()=>!!Vl(),Zl={onBackPressed:()=>{history.length===1?Kh({action:"moveTaskToBack"}):history.back()}};Object.keys(Zl).forEach(t=>{window[t]=Zl[t]});const jl=i.memo(t=>{const e=ie.useLocation(),n=ie.useNavigate();return i.useEffect(()=>{Wh()&&e.pathname==="/admin"&&n("/mobile",{replace:!0})},[e.pathname,n]),f.jsx(f.Fragment,{children:t.children})});jl.displayName="MobileClientProvider";const Hh=()=>{const t=ie.useNavigate(),{token:e}=h.useToken(),{t:n}=ce();return f.jsx(le.Tooltip,{title:n("Mobile UI"),children:f.jsx(le.Button,{icon:f.jsx(Te.MobileOutlined,{style:{color:e.colorTextHeaderMenu}}),title:n("Mobile UI"),onClick:()=>{t("/mobile")}})})},Uh=t=>f.jsx(h.PinnedPluginListProvider,{items:{me:{order:210,component:"MobileLink",pin:!0,isPublic:!0,belongTo:"pinnedmenu"}},children:f.jsx(h.SchemaComponentOptions,{components:{MobileLink:Hh},children:t.children})}),Kl=()=>{const t=$.useFieldSchema(),{t:e}=We.useTranslation(),{duplicateData:n}=h.useFormBlockContext(),o=h.useCollectionManager();if(n)return n;const{items:r=[],display:s=!0}=Gh(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){Ce.error(d),c.fields=[]}});const a=[{key:"none",title:e("None")}].concat(r.map((c,u)=>ae(B({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)}},Yh=({style:t={},templateKey:e="none",collection:n})=>{const o=$.useForm(),{templates:r,enabled:s,defaultTemplate:a}=Kl(),l=h.useCollectionManager(),c=h.compatibleDataId(r),u=e,[d,m]=i.useState(null),b=h.useAPIClient(),{t:v}=We.useTranslation();i.useEffect(()=>{s&&a&&(o.__template=!0,a.key==="duplicate"&&y(a.dataId,a))},[]),i.useEffect(()=>{c!=null&&c.some(x=>x.key===u)||p("none")},[c]);const p=i.useCallback(x=>fe(this,null,function*(){m(null),o==null||o.reset()}),[]),y=i.useCallback((x,S)=>fe(this,null,function*(){const C=ae(B({},S),{dataId:x});m(S),qh(b,C).then(w=>(o&&w&&(o.reset(),o.__template=!0,Ce.forEach(w,(k,I)=>{var _;k&&(o.values[I]=k,(_=o==null?void 0:o.setInitialValuesIn)==null||_.call(o,I,k))})),w)).catch(w=>{console.error(w)})}),[]);if(!s)return null;const g=c==null?void 0:c.find(x=>x.key===u);return g&&n&&(g.collection=n),u!=="none"&&g&&f.jsx(h.RemoteSelect,{fieldNames:{label:g==null?void 0:g.titleField,value:"id"},target:g==null?void 0:g.collection,value:d,objectValue:!0,service:{resource:g==null?void 0:g.collection,params:{filter:g==null?void 0:g.dataScope}},onChange:x=>y(x==null?void 0:x.id,B(B({},x),g)),targetField:l.getCollectionField(`${g==null?void 0:g.collection}.${g.titleField}`)})};function Gh(t){const e=h.findFormBlock(t);return e?Le.cloneDeep(e["x-data-templates"])||{}:{}}function qh(t,e,n){return fe(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 Xh=new h.SchemaSettings({name:"fieldSettings:component:DataSelect",items:[{name:"templateSelect",type:"select",useComponentProps(){var a;const{templates:t}=Kl(),e=h.compatibleDataId(t),{t:n}=ce(),o=$.useField(),r=$.useFieldSchema(),{dn:s}=h.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=h.useCollectionManager(),e=h.useCompile(),n=t.getCollections().map(c=>({label:e(c.title),value:c.name})),{t:o}=ce(),r=$.useField(),s=$.useFieldSchema(),{dn:a}=h.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 Jh extends h.Plugin{load(){return fe(this,null,function*(){this.app.addComponents({DataSelect:Yh}),this.app.schemaSettingsManager.add(Xh);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 Qh="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",Rh="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",ep="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 tp=t=>decodeURI(t).replace("data:image/svg+xml,","");const gs=t=>()=>f.jsx("div",{dangerouslySetInnerHTML:{__html:tp(t)}}),np=t=>f.jsx(h.Icon,B({component:gs(Qh)},t)),op=t=>f.jsx(h.Icon,B({component:gs(Rh)},t)),rp=t=>f.jsx(h.Icon,B({component:gs(ep)},t));h.Icon.register({"notice-block":np,"swiper-block":op,"tab-search":rp});const sp=t=>f.jsx(h.MobileProvider,{children:f.jsx(h.SchemaComponentOptions,{components:{MMenuBlockInitializer:vc,MSettingsBlockInitializer:Cm,MContainer:as,MMenu:ss,MTabBar:ls,MPage:cs,MHeader:Sl,MSettings:wl,SwiperBlockInitializer:Ym,SwiperBlock:Um,SwiperPage:Il,TabSearch:Xm,TabSearchProvider:Sh,TabSearchBlockInitializer:hh,TabSearchFieldItem:ch,TabSearchFieldMItem:lh,TabSearchCollapsibleInputItem:nh,TabSearchCollapsibleInputMItem:ah,TabSearchFieldSchemaInitializerGadget:Ch,ImageSearchView:Om,ImageSearchInitializer:Nm,ImageSearchProvider:Tm,ImageSearchItemIntializer:Am,ImageSearchItemToolbar:Bm,ImageSearchItemView:zm,MInput:Nt,MCheckbox:ms,MDatePicker:Dl,MRadio:hs,MImageUploader:Ih,MCascader:Bl,MSelect:ps,Input:Nt,"Input.TextArea":Nt.TextArea,"Radio.Group":hs.Group,"Checkbox.Group":ms.Group,DatePicker:Dl,Select:ps,AlternativeAssociationSelect:ps,Cascader:Bl},scope:{useGridCardBlockItemProps:zh,useGridCardBlockProps:Zh,useSwiperBlockProps:qm,usePropsOptionalImageSearchItemField:jm,usePropsRelatedImageSearchItemField:Wm,useTabSearchFieldItemProps:uh,useTabSearchFieldItemRelatedProps:fh},children:t.children})}),ip=()=>{const{t}=ce(),e=h.useApp(),n=()=>{const o=window.location,r=o.hash.slice(o.hash.indexOf("/"));window.open(e.getRouteUrl(r))};return f.jsx("div",{className:h.css`
|
|
332
439
|
position: absolute;
|
|
333
440
|
top: -40px;
|
|
334
441
|
right: 0;
|
|
335
|
-
`,children:f.jsx(
|
|
442
|
+
`,children:f.jsx(le.Button,{type:"dashed",onClick:n,icon:f.jsx(Te.LinkOutlined,{}),children:t("Preview")})})},ap=h.css`
|
|
336
443
|
--tb-spacing: 14px;
|
|
337
|
-
`,
|
|
444
|
+
`,lp=h.css``,cp=h.css`
|
|
338
445
|
--tb-designer-top: 2px;
|
|
339
446
|
--tb-designer-right: 2px;
|
|
340
447
|
.tb-sortable-designer:hover {
|
|
@@ -369,13 +476,13 @@
|
|
|
369
476
|
}
|
|
370
477
|
}
|
|
371
478
|
}
|
|
372
|
-
`,
|
|
479
|
+
`,Wl={getContainer:".tb-mobile-application",width:"90%",style:{position:"absolute"}},up=ae(B({},Wl),{style:{maxWidth:"calc(100% - 16px)"},maskStyle:{position:"absolute"},wrapClassName:h.css`
|
|
373
480
|
position: absolute !important;
|
|
374
|
-
`}),
|
|
481
|
+
`}),dp=()=>"default-admin-mobile",Hl=t=>{const e=dp(),n=ie.useParams(),o=zl(),r=i.useMemo(()=>o?i.Fragment:h.AdminProvider,[o]);return h.useViewport(),f.jsx(r,{children:f.jsxs(sp,{children:[f.jsx(ip,{}),f.jsx(h.ActionContextProvider,{modalProps:up,drawerProps:Wl,children:f.jsxs("div",{className:h.cx("tb-mobile-application",cp,ap,lp,h.css`
|
|
375
482
|
display: flex;
|
|
376
483
|
flex-direction: column;
|
|
377
484
|
width: 100%;
|
|
378
485
|
height: 100%;
|
|
379
486
|
position: relative;
|
|
380
487
|
overflow: hidden;
|
|
381
|
-
`),children:[n.name&&!n.name.startsWith("tab_")?f.jsx(ie.Outlet,{}):f.jsx(h.RemoteSchemaComponent,{uid:
|
|
488
|
+
`),children:[n.name&&!n.name.startsWith("tab_")?f.jsx(ie.Outlet,{}):f.jsx(h.RemoteSchemaComponent,{uid:e,children:t.children},e),f.jsx("div",{id:"tb-position-container"})]})})]})})};class Ul extends h.Plugin{afterAdd(){return fe(this,null,function*(){this.pm.add(Jh,{name:"plugin-data-select"}),this.app.pm.add(pc,{name:"SearchAndJump"}),this.app.pm.add(cc,{name:"Designable"}),this.app.pm.add(ic,{name:"calculator"})})}load(){return fe(this,null,function*(){this.setMobileRouter(),this.addRoutes(),this.app.use(jl),this.app.use(Uh),this.app.schemaInitializerManager.add(gc),this.app.schemaInitializerManager.add(Pm),this.app.schemaInitializerManager.add(bh),this.app.schemaSettingsManager.add(Gm),this.app.schemaSettingsManager.add(Lm),this.app.schemaSettingsManager.add(wh)})}setMobileRouter(){const e=h.createRouterManager({type:"hash"},this.app);this.router.add("not-found",{path:"*",Component:jh}),e.add("root",{path:"/",element:f.jsx(ie.Navigate,{replace:!0,to:"/mobile"})}),e.add("mobile",{path:"/mobile",element:f.jsx(Hl,{})}),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:f.jsx(Hl,{})}),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:Il})}}R.ModuleWeb=Ul,R.default=Ul,Object.defineProperties(R,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|