@lifesg/react-design-system 1.0.0-alpha.2 → 1.0.0-alpha.20
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/README.md +2 -0
- package/accordion/accordion-item.style.d.ts +5 -2
- package/accordion/accordion.style.d.ts +1 -1
- package/accordion/index.js +165 -172
- package/accordion/index.js.map +1 -1
- package/alert/alert.style.d.ts +4 -1
- package/alert/index.js +107 -119
- package/alert/index.js.map +1 -1
- package/animations/index.js +1 -1
- package/animations/index.js.map +1 -1
- package/box-container/box-container.styles.d.ts +8 -1
- package/box-container/index.js +69 -74
- package/box-container/index.js.map +1 -1
- package/breadcrumb/breadcrumb.style.d.ts +4 -4
- package/breadcrumb/index.js +102 -106
- package/breadcrumb/index.js.map +1 -1
- package/breadcrumb/types.d.ts +5 -1
- package/button/button.d.ts +2 -2
- package/button/index.js +140 -143
- package/button/index.js.map +1 -1
- package/card/card.d.ts +3 -0
- package/card/card.style.d.ts +1 -0
- package/card/index.d.ts +1 -0
- package/card/index.js +132 -0
- package/card/index.js.map +1 -0
- package/{icon → card}/package.json +1 -1
- package/card/types.d.ts +4 -0
- package/checkbox/checkbox.d.ts +1 -1
- package/checkbox/checkbox.style.d.ts +4 -1
- package/checkbox/index.js +11 -21
- package/checkbox/index.js.map +1 -1
- package/cjs/index.js +1999 -1021
- package/cjs/index.js.map +1 -1
- package/color/color.d.ts +4 -59
- package/color/index.js +1 -1
- package/color/index.js.map +1 -1
- package/color/types.d.ts +5 -1
- package/date-input/date-input.d.ts +1 -1
- package/date-input/date-input.style.d.ts +2 -6
- package/date-input/index.js +121 -136
- package/date-input/index.js.map +1 -1
- package/date-input/types.d.ts +14 -16
- package/design-token/design-token.d.ts +4 -0
- package/design-token/index.d.ts +2 -0
- package/design-token/index.js +6 -0
- package/design-token/index.js.map +1 -0
- package/design-token/package.json +7 -0
- package/design-token/types.d.ts +7 -0
- package/error-display/error-display-data.d.ts +11 -0
- package/error-display/error-display.d.ts +3 -0
- package/error-display/error-display.style.d.ts +7 -0
- package/error-display/index.d.ts +2 -0
- package/error-display/index.js +322 -0
- package/error-display/index.js.map +1 -0
- package/error-display/package.json +7 -0
- package/error-display/types.d.ts +20 -0
- package/feedback-rating/feedback-rating-data.d.ts +5 -0
- package/feedback-rating/feedback-rating-stars-container-data.d.ts +3 -0
- package/feedback-rating/feedback-rating-stars-container.d.ts +3 -0
- package/feedback-rating/feedback-rating-stars-container.styles.d.ts +12 -0
- package/feedback-rating/feedback-rating.d.ts +3 -0
- package/feedback-rating/feedback-rating.styles.d.ts +5 -0
- package/feedback-rating/index.d.ts +2 -0
- package/feedback-rating/index.js +329 -0
- package/feedback-rating/index.js.map +1 -0
- package/feedback-rating/package.json +7 -0
- package/feedback-rating/types.d.ts +14 -0
- package/footer/footer-download-app.d.ts +2 -0
- package/footer/footer-download-app.style.d.ts +6 -0
- package/footer/footer-helper.d.ts +12 -0
- package/footer/footer.d.ts +3 -0
- package/footer/footer.style.d.ts +12 -0
- package/footer/index.d.ts +2 -0
- package/footer/index.js +373 -0
- package/footer/index.js.map +1 -0
- package/footer/package.json +7 -0
- package/footer/types.d.ts +31 -0
- package/form/form-custom-field.d.ts +3 -0
- package/form/form-input-group.d.ts +1 -1
- package/form/form-input.d.ts +1 -1
- package/form/form-label-addon.d.ts +1 -2
- package/form/form-label.d.ts +1 -1
- package/form/form-label.style.d.ts +1 -0
- package/form/form-phone-number-input.d.ts +3 -0
- package/form/form-textarea.d.ts +1 -1
- package/form/form-unit-number-input.d.ts +3 -0
- package/form/index.d.ts +9 -6
- package/form/index.js +774 -629
- package/form/index.js.map +1 -1
- package/form/types.d.ts +14 -5
- package/icon-button/icon-button.d.ts +1 -1
- package/icon-button/icon-button.style.d.ts +6 -1
- package/icon-button/index.js +9 -15
- package/icon-button/index.js.map +1 -1
- package/icon-button/types.d.ts +2 -3
- package/index.d.ts +11 -1
- package/index.js +1997 -1019
- package/index.js.map +1 -1
- package/input/index.js +84 -41
- package/input/index.js.map +1 -1
- package/input/input.d.ts +1 -1
- package/input/input.style.d.ts +9 -0
- package/input/types.d.ts +2 -0
- package/input-group/index.js +392 -312
- package/input-group/index.js.map +1 -1
- package/input-group/input-group-list-addon.d.ts +1 -1
- package/input-group/input-group-list-addon.style.d.ts +4 -1
- package/input-group/input-group.d.ts +1 -1
- package/input-group/input-group.style.d.ts +1 -2
- package/input-group/types.d.ts +8 -8
- package/input-select/index.js +278 -242
- package/input-select/index.js.map +1 -1
- package/input-select/input-select-wrapper.d.ts +1 -1
- package/input-select/input-select.d.ts +1 -1
- package/input-select/input-select.styles.d.ts +5 -1
- package/input-select/types.d.ts +15 -11
- package/input-textarea/index.js +132 -121
- package/input-textarea/index.js.map +1 -1
- package/input-textarea/textarea-counter.d.ts +2 -1
- package/input-textarea/textarea.d.ts +2 -2
- package/input-textarea/types.d.ts +1 -0
- package/layout/container.d.ts +3 -0
- package/layout/content.d.ts +3 -0
- package/layout/index.d.ts +7 -0
- package/layout/index.js +55 -0
- package/layout/index.js.map +1 -0
- package/layout/package.json +7 -0
- package/layout/section.d.ts +3 -0
- package/layout/types.d.ts +15 -0
- package/link-list/index.js +130 -130
- package/link-list/index.js.map +1 -1
- package/link-list/link-list.styles.d.ts +12 -2
- package/link-list/types.d.ts +1 -1
- package/masonry/index.js.map +1 -1
- package/masonry/masonry.d.ts +2 -2
- package/masthead/index.d.ts +1 -0
- package/masthead/index.js +9 -0
- package/masthead/index.js.map +1 -0
- package/masthead/masthead.d.ts +2 -0
- package/masthead/masthead.style.d.ts +1 -0
- package/masthead/package.json +7 -0
- package/media/index.js +1 -1
- package/media/index.js.map +1 -1
- package/media/media.d.ts +2 -1
- package/modal/index.d.ts +1 -1
- package/modal/index.js +30 -43
- package/modal/index.js.map +1 -1
- package/modal/modal-box.styles.d.ts +5 -2
- package/modal/modal.d.ts +1 -1
- package/modal/modal.styles.d.ts +1 -0
- package/modal/types.d.ts +4 -2
- package/navbar/brand.d.ts +10 -0
- package/navbar/brand.styles.d.ts +5 -0
- package/navbar/drawer.d.ts +3 -0
- package/navbar/drawer.styles.d.ts +15 -0
- package/navbar/index.d.ts +7 -0
- package/navbar/index.js +651 -0
- package/navbar/index.js.map +1 -0
- package/navbar/navbar-action-buttons.d.ts +10 -0
- package/navbar/navbar-action-buttons.styles.d.ts +9 -0
- package/navbar/navbar-items.d.ts +11 -0
- package/navbar/navbar-items.styles.d.ts +10 -0
- package/navbar/navbar.d.ts +3 -0
- package/navbar/navbar.styles.d.ts +19 -0
- package/navbar/package.json +7 -0
- package/navbar/types.d.ts +56 -0
- package/notification-banner/index.d.ts +3 -0
- package/notification-banner/index.js +266 -0
- package/notification-banner/index.js.map +1 -0
- package/notification-banner/notification-banner-hoc.d.ts +3 -0
- package/notification-banner/notification-banner.d.ts +6 -0
- package/notification-banner/notification-banner.styles.d.ts +15 -0
- package/notification-banner/package.json +7 -0
- package/notification-banner/types.d.ts +22 -0
- package/overlay/index.js +1 -1
- package/overlay/index.js.map +1 -1
- package/overlay/types.d.ts +1 -1
- package/package.json +4 -1
- package/phone-number-input/data/country-code.d.ts +1 -0
- package/phone-number-input/index.d.ts +1 -0
- package/phone-number-input/index.js +850 -0
- package/phone-number-input/index.js.map +1 -0
- package/phone-number-input/package.json +7 -0
- package/phone-number-input/phone-number-input-helper.d.ts +5 -0
- package/phone-number-input/phone-number-input.d.ts +3 -0
- package/phone-number-input/phone-number-input.styles.d.ts +1 -0
- package/phone-number-input/types.d.ts +42 -0
- package/popover/index.js +148 -153
- package/popover/index.js.map +1 -1
- package/popover/popover.styles.d.ts +1 -1
- package/popover/types.d.ts +3 -3
- package/progress-indicator/index.d.ts +2 -0
- package/progress-indicator/index.js +240 -0
- package/progress-indicator/index.js.map +1 -0
- package/progress-indicator/package.json +7 -0
- package/progress-indicator/progress-indicator.d.ts +3 -0
- package/progress-indicator/progress-indicator.style.d.ts +19 -0
- package/progress-indicator/types.d.ts +9 -0
- package/radio-button/index.js +7 -7
- package/radio-button/index.js.map +1 -1
- package/shared/dropdown-list/dropdown-list.d.ts +1 -1
- package/shared/dropdown-list/dropdown-list.styles.d.ts +6 -2
- package/shared/dropdown-list/dropdown-search.d.ts +2 -1
- package/shared/dropdown-list/dropdown-search.styles.d.ts +9 -1
- package/shared/dropdown-list/types.d.ts +21 -12
- package/smart-app-banner/index.d.ts +2 -0
- package/smart-app-banner/index.js +373 -0
- package/smart-app-banner/index.js.map +1 -0
- package/smart-app-banner/package.json +7 -0
- package/smart-app-banner/smart-app-banner.d.ts +3 -0
- package/smart-app-banner/smart-app-banner.styles.d.ts +31 -0
- package/smart-app-banner/types.d.ts +18 -0
- package/spec/design-token-spec/base-design-token-set.d.ts +2 -0
- package/text/index.js +62 -65
- package/text/index.js.map +1 -1
- package/text/text-style.d.ts +4 -100
- package/text-list/index.js +7 -7
- package/text-list/index.js.map +1 -1
- package/theme/design-token-helper.d.ts +2 -0
- package/theme/index.js +1 -1
- package/theme/index.js.map +1 -1
- package/theme/types.d.ts +12 -3
- package/timeline/index.js +95 -98
- package/timeline/index.js.map +1 -1
- package/timepicker/index.js +213 -207
- package/timepicker/index.js.map +1 -1
- package/timepicker/timepicker-dropdown.styles.d.ts +2 -2
- package/timepicker/types.d.ts +3 -3
- package/toggle-button/index.js +118 -121
- package/toggle-button/index.js.map +1 -1
- package/tooltip/index.js +127 -125
- package/tooltip/index.js.map +1 -1
- package/tooltip/tooltip.styles.d.ts +3 -1
- package/unit-number/index.d.ts +2 -0
- package/unit-number/index.js +403 -0
- package/unit-number/index.js.map +1 -0
- package/unit-number/package.json +7 -0
- package/unit-number/types.d.ts +27 -0
- package/unit-number/unit-number-input.d.ts +3 -0
- package/unit-number/unit-number-input.style.d.ts +16 -0
- package/util/date-helper.d.ts +19 -0
- package/util/index.d.ts +2 -0
- package/util/utility-types.d.ts +3 -0
- package/icon/arrow-right-icon.d.ts +0 -3
- package/icon/icon.d.ts +0 -3
- package/icon/index.d.ts +0 -2
- package/icon/index.js +0 -12
- package/icon/index.js.map +0 -1
- package/icon/info-icon.d.ts +0 -3
- package/icon/play-alt-icon.d.ts +0 -3
- package/icon/search-icon.d.ts +0 -3
- package/icon/shared.style.d.ts +0 -1
- package/icon/types.d.ts +0 -9
package/input-group/index.js
CHANGED
|
@@ -1,200 +1,239 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
fill: ${Ht.Neutral[8]};
|
|
8
|
-
}
|
|
9
|
-
`,Vt=t=>e(Mt,{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 16 16",...t,children:e("g",{fill:"none",fillRule:"evenodd",children:e("g",{id:"path",fillRule:"nonzero",children:e("g",{children:e("g",{children:e("g",{children:e("path",{d:"M8.706 14.603l6.075-6.075c.294-.29.294-.765 0-1.06L8.706 1.398c-.29-.294-.765-.294-1.06 0l-.693.694c-.3.297-.294.78.013 1.072L10.73 6.75H1.75c-.416 0-.75.334-.75.75v1c0 .416.334.75.75.75h8.981l-3.765 3.587c-.304.291-.31.775-.013 1.072l.694.694c.29.294.765.294 1.06 0z",transform:"translate(-2384.000000, -760.000000) translate(2253.000000, 692.000000) translate(16.000000, 64.000000) translate(115.000000, 4.000000) translate(0.000000, 0.000000)"})})})})})})}),Rt=t=>e(Mt,{width:"1rem",height:"1rem",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",...t,children:e("path",{id:"path",d:"M20\n\t\t8.639c-.934\n\t\t0-1.742.342-2.43 1.03-.684.684-1.03 1.495-1.03 2.429 0 .931.346 1.742 1.03 2.426.688.688 1.496 1.03 2.43 1.03.931 0 1.742-.342 2.43-1.03.684-.684 1.026-1.495 1.026-2.426 0-.934-.342-1.745-1.026-2.43-.688-.687-1.499-1.03-2.43-1.03m4.61 20.91v-1.976a.959.959 0 0 0-.287-.7.959.959 0 0 0-.7-.286h-.99v-8.232a.954.954 0 0 0-.287-.7.945.945 0 0 0-.7-.29h-5.269a.95.95 0 0 0-.7.29.954.954 0 0 0-.286.7v1.976c0 .271.095.506.286.7a.959.959 0 0 0 .7.287h.99v5.269h-.99a.959.959 0 0 0-.7.286.959.959 0 0 0-.286.7v1.977c0 .274.095.505.286.7a.959.959 0 0 0 .7.286h7.246a.959.959 0 0 0 .7-.287.959.959 0 0 0 .286-.7M20 2.5c3.15 0 6.068.788 8.75 2.365a17.67 17.67 0 0 1 6.385 6.386C36.71 13.933 37.5 16.848 37.5 20c0 3.15-.79 6.068-2.365 8.751a17.71 17.71 0 0 1-6.385 6.385C26.068 36.712 23.15 37.5 20 37.5c-3.153 0-6.068-.788-8.75-2.363a17.71 17.71 0 0 1-6.385-6.385c-1.575-2.683-2.365-5.6-2.365-8.75 0-3.154.79-6.069 2.365-8.751a17.67 17.67 0 0 1 6.385-6.386C13.932 3.288 16.847 2.5 20 2.5",fillRule:"nonzero"})}),Tt=t=>e(Mt,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 64 64",id:"play-icon",...t,children:e("path",{id:"path",d:"M52.762 37.237 20.474 53.38A5.856 5.856 0 0 1 12 48.143V15.856a5.856 5.856 0 0 1 8.474-5.238l32.288 16.144a5.856 5.856 0 0 1 0 10.475z",fillRule:"nonzero"})}),Lt=t=>e(Mt,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 32 32",fill:"none",...t,children:e("g",{id:"search",children:e("path",{id:"path",fillRule:"evenodd",clipRule:"evenodd",d:"M7.60986 7.60986C5.86994 9.34977 5 11.445 5 13.8956C5 16.3462 5.86994 18.4414 7.60986 20.1813C9.34977 21.9212 11.445 22.7911 13.8956 22.7911C15.6355 22.7911 17.2345 22.3133 18.6926 21.3576L24.2063 26.8713C24.3044 26.9571 24.4146 27 24.5372 27C24.6597 27 24.77 26.9571 24.868 26.8713L26.8713 24.868C26.9571 24.77 27 24.6597 27 24.5372C27 24.4146 26.9571 24.3044 26.8713 24.2063L21.3576 18.6926C22.3133 17.2345 22.7911 15.6355 22.7911 13.8956C22.7911 11.445 21.9212 9.34977 20.1813 7.60986C18.4414 5.86994 16.3462 5 13.8956 5C11.445 5 9.34977 5.86994 7.60986 7.60986ZM9.59484 18.178C8.4063 16.9894 7.81205 15.562 7.81205 13.8956C7.81205 12.2292 8.4063 10.8017 9.59484 9.61321C10.7834 8.42468 12.2169 7.83042 13.8956 7.83042C15.5742 7.83042 17.0047 8.42162 18.1872 9.60403C19.3696 10.7864 19.9608 12.2169 19.9608 13.8956C19.9608 15.5742 19.3696 17.0047 18.1872 18.1872C17.0047 19.3696 15.5742 19.9608 13.8956 19.9608C12.2169 19.9608 10.7834 19.3665 9.59484 18.178Z"})})}),Wt=({type:t,...r})=>{switch(t){case"arrow-right":return e(Vt,{...r});case"info":return e(Rt,{...r});case"search":return e(Lt,{...r});case"play-alt":return e(Tt,{...r});default:{const n=`sgds-icon sgds-icon-${t}`,i=r.className?`${n} ${r.className}`:n;return e(qt,{...r,className:i})}}},qt=h.span`
|
|
10
|
-
font-size: 1rem;
|
|
11
|
-
`;var Ut;!function(e){e.transformWithSpaces=(e,t)=>{const r="(.{"+t+"})";return e.replace(/[^\dA-Z]/gi,"").replace(new RegExp(r,"g"),"$1 ").trim()},e.padValue=(e,t)=>{if("0"===e)return t?e:e.padStart(2,"0");if(""===e)return e;return parseInt(e).toString().padStart(2,"0")},e.shouldTruncateToTwoLines=(e,t)=>{const r=Math.floor(t/9);return e.length>=2*r||1===e.split(" ").length&&e.length>r},e.truncateOneLine=(e,t,r,n)=>{let i=0;t>r&&(i=Math.floor((t-r)/8));const o=n+i;if(o<e.length){const t=Math.floor(o/2);return e.substring(0,t)+" ... "+e.substring(e.length-t,e.length)}return e}}(Ut||(Ut={}));const Qt={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},Gt={collections:{base:{D1:{fontFamily:Qt.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Qt.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Qt.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Qt.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Qt.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Qt.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Qt.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Qt.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Qt.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Qt.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Qt.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Qt.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Qt.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Qt.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Xt=e=>t=>{const r=t.theme,n=Nt(Gt,r[Dt.textStyleScheme]);return r.options&&r.options.textStyle?Ct(n,e,r.options.textStyle):Ct(n,e)},Zt={D1:{fontFamily:Xt("D1.fontFamily"),fontSize:Xt("D1.fontSize"),fontWeight:Xt("D1.fontWeight"),lineHeight:Xt("D1.lineHeight"),letterSpacing:Xt("D1.letterSpacing")},D2:{fontFamily:Xt("D2.fontFamily"),fontSize:Xt("D2.fontSize"),fontWeight:Xt("D2.fontWeight"),lineHeight:Xt("D2.lineHeight"),letterSpacing:Xt("D2.letterSpacing")},D3:{fontFamily:Xt("D3.fontFamily"),fontSize:Xt("D3.fontSize"),fontWeight:Xt("D3.fontWeight"),lineHeight:Xt("D3.lineHeight"),letterSpacing:Xt("D3.letterSpacing")},D4:{fontFamily:Xt("D4.fontFamily"),fontSize:Xt("D4.fontSize"),fontWeight:Xt("D4.fontWeight"),lineHeight:Xt("D4.lineHeight"),letterSpacing:Xt("D4.letterSpacing")},DBody:{fontFamily:Xt("DBody.fontFamily"),fontSize:Xt("DBody.fontSize"),fontWeight:Xt("DBody.fontWeight"),lineHeight:Xt("DBody.lineHeight"),letterSpacing:Xt("DBody.letterSpacing")},H1:{fontFamily:Xt("H1.fontFamily"),fontSize:Xt("H1.fontSize"),fontWeight:Xt("H1.fontWeight"),lineHeight:Xt("H1.lineHeight"),letterSpacing:Xt("H1.letterSpacing")},H2:{fontFamily:Xt("H2.fontFamily"),fontSize:Xt("H2.fontSize"),fontWeight:Xt("H2.fontWeight"),lineHeight:Xt("H2.lineHeight"),letterSpacing:Xt("H2.letterSpacing")},H3:{fontFamily:Xt("H3.fontFamily"),fontSize:Xt("H3.fontSize"),fontWeight:Xt("H3.fontWeight"),lineHeight:Xt("H3.lineHeight"),letterSpacing:Xt("H3.letterSpacing")},H4:{fontFamily:Xt("H4.fontFamily"),fontSize:Xt("H4.fontSize"),fontWeight:Xt("H4.fontWeight"),lineHeight:Xt("H4.lineHeight"),letterSpacing:Xt("H4.letterSpacing")},H5:{fontFamily:Xt("H5.fontFamily"),fontSize:Xt("H5.fontSize"),fontWeight:Xt("H5.fontWeight"),lineHeight:Xt("H5.lineHeight"),letterSpacing:Xt("H5.letterSpacing")},H6:{fontFamily:Xt("H6.fontFamily"),fontSize:Xt("H6.fontSize"),fontWeight:Xt("H6.fontWeight"),lineHeight:Xt("H6.lineHeight"),letterSpacing:Xt("H6.letterSpacing")},Body:{fontFamily:Xt("Body.fontFamily"),fontSize:Xt("Body.fontSize"),fontWeight:Xt("Body.fontWeight"),lineHeight:Xt("Body.lineHeight"),letterSpacing:Xt("Body.letterSpacing")},BodySmall:{fontFamily:Xt("BodySmall.fontFamily"),fontSize:Xt("BodySmall.fontSize"),fontWeight:Xt("BodySmall.fontWeight"),lineHeight:Xt("BodySmall.lineHeight"),letterSpacing:Xt("BodySmall.letterSpacing")},XSmall:{fontFamily:Xt("XSmall.fontFamily"),fontSize:Xt("XSmall.fontSize"),fontWeight:Xt("XSmall.fontWeight"),lineHeight:Xt("XSmall.lineHeight"),letterSpacing:Xt("XSmall.letterSpacing")}},Kt=e=>{switch(e){case 700:case"bold":return Qt.Bold;case 600:case"semibold":return Qt.Semibold;case 300:case"light":return Qt.Light;case 400:case"regular":return Qt.Regular;default:return""}},Yt=(e,t)=>r=>{const n=Zt[e].fontFamily(r),i=Zt[e].fontWeight(r);return Object.values(Qt).includes(n)?p`
|
|
12
|
-
font-family: ${Kt(t)||Kt(i)||n};
|
|
1
|
+
import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i from"react";import o,{useEffect as a,useLayoutEffect as s,useState as l,useRef as c,forwardRef as u,useCallback as d,useContext as h,useMemo as p}from"react";import f,{css as g,keyframes as m}from"styled-components";import{unstable_batchedUpdates as y}from"react-dom";var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},v=Array.isArray,w="object"==typeof b&&b&&b.Object===Object&&b,_=w,$="object"==typeof self&&self&&self.Object===Object&&self,x=_||$||Function("return this")(),S=x.Symbol,C=S,k=Object.prototype,F=k.hasOwnProperty,j=k.toString,O=C?C.toStringTag:void 0;var B=function(e){var t=F.call(e,O),r=e[O];try{e[O]=void 0;var n=!0}catch(e){}var i=j.call(e);return n&&(t?e[O]=r:delete e[O]),i},A=Object.prototype.toString;var P=B,z=function(e){return A.call(e)},I=S?S.toStringTag:void 0;var N=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":I&&I in Object(e)?P(e):z(e)};var D=function(e){return null!=e&&"object"==typeof e},E=N,H=D;var M=function(e){return"symbol"==typeof e||H(e)&&"[object Symbol]"==E(e)},V=v,L=M,T=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,R=/^\w*$/;var W=function(e,t){if(V(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!L(e))||(R.test(e)||!T.test(e)||null!=t&&e in Object(t))};var q=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},U=N,Q=q;var Z,G=function(e){if(!Q(e))return!1;var t=U(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},X=x["__core-js_shared__"],K=(Z=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+Z:"";var Y=function(e){return!!K&&K in e},J=Function.prototype.toString;var ee=function(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""},te=G,re=Y,ne=q,ie=ee,oe=/^\[object .+?Constructor\]$/,ae=Function.prototype,se=Object.prototype,le=ae.toString,ce=se.hasOwnProperty,ue=RegExp("^"+le.call(ce).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var de=function(e){return!(!ne(e)||re(e))&&(te(e)?ue:oe).test(ie(e))},he=function(e,t){return null==e?void 0:e[t]};var pe=function(e,t){var r=he(e,t);return de(r)?r:void 0},fe=pe(Object,"create"),ge=fe;var me=function(){this.__data__=ge?ge(null):{},this.size=0};var ye=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},be=fe,ve=Object.prototype.hasOwnProperty;var we=function(e){var t=this.__data__;if(be){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ve.call(t,e)?t[e]:void 0},_e=fe,$e=Object.prototype.hasOwnProperty;var xe=fe;var Se=me,Ce=ye,ke=we,Fe=function(e){var t=this.__data__;return _e?void 0!==t[e]:$e.call(t,e)},je=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=xe&&void 0===t?"__lodash_hash_undefined__":t,this};function Oe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Oe.prototype.clear=Se,Oe.prototype.delete=Ce,Oe.prototype.get=ke,Oe.prototype.has=Fe,Oe.prototype.set=je;var Be=Oe;var Ae=function(){this.__data__=[],this.size=0};var Pe=function(e,t){return e===t||e!=e&&t!=t},ze=Pe;var Ie=function(e,t){for(var r=e.length;r--;)if(ze(e[r][0],t))return r;return-1},Ne=Ie,De=Array.prototype.splice;var Ee=Ie;var He=Ie;var Me=Ie;var Ve=Ae,Le=function(e){var t=this.__data__,r=Ne(t,e);return!(r<0)&&(r==t.length-1?t.pop():De.call(t,r,1),--this.size,!0)},Te=function(e){var t=this.__data__,r=Ee(t,e);return r<0?void 0:t[r][1]},Re=function(e){return He(this.__data__,e)>-1},We=function(e,t){var r=this.__data__,n=Me(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function qe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}qe.prototype.clear=Ve,qe.prototype.delete=Le,qe.prototype.get=Te,qe.prototype.has=Re,qe.prototype.set=We;var Ue=qe,Qe=pe(x,"Map"),Ze=Be,Ge=Ue,Xe=Qe;var Ke=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ye=function(e,t){var r=e.__data__;return Ke(t)?r["string"==typeof t?"string":"hash"]:r.map},Je=Ye;var et=Ye;var tt=Ye;var rt=Ye;var nt=function(){this.size=0,this.__data__={hash:new Ze,map:new(Xe||Ge),string:new Ze}},it=function(e){var t=Je(this,e).delete(e);return this.size-=t?1:0,t},ot=function(e){return et(this,e).get(e)},at=function(e){return tt(this,e).has(e)},st=function(e,t){var r=rt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function lt(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}lt.prototype.clear=nt,lt.prototype.delete=it,lt.prototype.get=ot,lt.prototype.has=at,lt.prototype.set=st;var ct=lt,ut=ct;function dt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(dt.Cache||ut),r}dt.Cache=ut;var ht=dt;var pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ft=/\\(\\)?/g,gt=function(e){var t=ht(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(pt,(function(e,r,n,i){t.push(n?i.replace(ft,"$1"):r||e)})),t}));var mt=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i},yt=v,bt=M,vt=S?S.prototype:void 0,wt=vt?vt.toString:void 0;var _t=function e(t){if("string"==typeof t)return t;if(yt(t))return mt(t,e)+"";if(bt(t))return wt?wt.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r},$t=_t;var xt=v,St=W,Ct=gt,kt=function(e){return null==e?"":$t(e)};var Ft=function(e,t){return xt(e)?e:St(e,t)?[e]:Ct(kt(e))},jt=M;var Ot=function(e){if("string"==typeof e||jt(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},Bt=Ft,At=Ot;var Pt=function(e,t){for(var r=0,n=(t=Bt(t,e)).length;null!=e&&r<n;)e=e[At(t[r++])];return r&&r==n?e:void 0},zt=Pt;var It=function(e,t,r){var n=null==e?void 0:zt(e,t);return void 0===n?r:n};const Nt=(e,t,r)=>t?It(r,t)||It(e,t):r||e,Dt=(e,t)=>{const r=t||e.defaultValue;return It(e.collections,r)};var Et;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme"}(Et||(Et={}));const Ht={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}},Shadow:{Accent:"rgba(87, 169, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)"}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}},Shadow:{Accent:"rgba(161, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)"}}},defaultValue:"base"},Mt=e=>t=>{const r=t.theme,n=Dt(Ht,r[Et.colorScheme]);return r.options&&r.options.color?Nt(n,e,r.options.color):Nt(n,e)},Vt={Brand:{1:Mt("Brand.1"),2:Mt("Brand.2"),3:Mt("Brand.3"),4:Mt("Brand.4"),5:Mt("Brand.5"),6:Mt("Brand.6")},Primary:Mt("Primary"),PrimaryDark:Mt("PrimaryDark"),Secondary:Mt("Secondary"),Accent:{Light:{1:Mt("Accent.Light.1"),2:Mt("Accent.Light.2"),3:Mt("Accent.Light.3"),4:Mt("Accent.Light.4"),5:Mt("Accent.Light.5"),6:Mt("Accent.Light.6")},Dark:{1:Mt("Accent.Dark.1"),2:Mt("Accent.Dark.2"),3:Mt("Accent.Dark.3")}},Neutral:{1:Mt("Neutral.1"),2:Mt("Neutral.2"),3:Mt("Neutral.3"),4:Mt("Neutral.4"),5:Mt("Neutral.5"),6:Mt("Neutral.6"),7:Mt("Neutral.7"),8:Mt("Neutral.8")},Validation:{Green:{Text:Mt("Validation.Green.Text"),Icon:Mt("Validation.Green.Icon"),Border:Mt("Validation.Green.Border"),Background:Mt("Validation.Green.Background")},Orange:{Text:Mt("Validation.Orange.Text"),Icon:Mt("Validation.Orange.Icon"),Border:Mt("Validation.Orange.Border"),Background:Mt("Validation.Orange.Background"),Badge:Mt("Validation.Orange.Badge")},Red:{Text:Mt("Validation.Red.Text"),Icon:Mt("Validation.Red.Icon"),Border:Mt("Validation.Red.Border"),Background:Mt("Validation.Red.Background")}},Shadow:{Accent:Mt("Shadow.Accent"),Red:Mt("Shadow.Red")}},Lt={collections:{base:{InputBoxShadow:g`
|
|
2
|
+
inset 0 0 6px 1px ${Vt.Shadow.Accent}
|
|
3
|
+
`,InputErrorBoxShadow:g`
|
|
4
|
+
inset 0 0 6px 1px ${Vt.Shadow.Red}
|
|
5
|
+
`}},defaultValue:"base"},Tt=e=>t=>{const r=t.theme,n=Dt(Lt,r[Et.designTokenScheme]);return r.options?.designToken?Nt(n,e,r.options.designToken):Nt(n,e)},Rt=Tt("InputBoxShadow"),Wt=Tt("InputErrorBoxShadow");var qt;!function(e){e.transformWithSpaces=(e,t)=>{const r="(.{"+t+"})";return e.replace(/[^\dA-Z]/gi,"").replace(new RegExp(r,"g"),"$1 ").trim()},e.padValue=(e,t)=>{if("0"===e)return t?e:e.padStart(2,"0");if(""===e)return e;return parseInt(e).toString().padStart(2,"0")},e.shouldTruncateToTwoLines=(e,t)=>{const r=Math.floor(t/9);return e.length>=2*r||1===e.split(" ").length&&e.length>r},e.truncateOneLine=(e,t,r,n)=>{let i=0;t>r&&(i=Math.floor((t-r)/8));const o=n+i;if(o<e.length){const t=Math.floor(o/2);return e.substring(0,t)+" ... "+e.substring(e.length-t,e.length)}return e}}(qt||(qt={}));var Ut,Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});var Zt=e;const Gt=e=>Zt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Zt.jsx("path",{d:"M9.99991 11.229L5.97891 15.25C5.81224 15.4167 5.61091 15.4967 5.37491 15.49C5.13891 15.4827 4.93757 15.3957 4.77091 15.229C4.60424 15.0623 4.52091 14.8577 4.52091 14.615C4.52091 14.3717 4.60424 14.1667 4.77091 14L8.77091 10L4.74991 5.979C4.58324 5.81233 4.50324 5.60767 4.50991 5.365C4.51724 5.12167 4.60424 4.91667 4.77091 4.75C4.93757 4.58333 5.14224 4.5 5.38491 4.5C5.62824 4.5 5.83324 4.58333 5.99991 4.75L9.99991 8.771L14.0209 4.75C14.1876 4.58333 14.3922 4.5 14.6349 4.5C14.8782 4.5 15.0832 4.58333 15.2499 4.75C15.4166 4.91667 15.4999 5.12167 15.4999 5.365C15.4999 5.60767 15.4166 5.81233 15.2499 5.979L11.2289 10L15.2499 14.021C15.4166 14.1877 15.4999 14.389 15.4999 14.625C15.4999 14.861 15.4166 15.0623 15.2499 15.229C15.0832 15.3957 14.8782 15.479 14.6349 15.479C14.3922 15.479 14.1876 15.3957 14.0209 15.229L9.99991 11.229Z",fill:"currentColor"})});Gt.displayName="CrossIcon",Ut=Qt.CrossIcon=Gt;const Xt={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},Kt={collections:{base:{D1:{fontFamily:Xt.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Xt.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Xt.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Xt.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Xt.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Xt.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Xt.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Xt.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Xt.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Xt.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Xt.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Xt.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Xt.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Xt.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Yt=e=>t=>{const r=t.theme,n=Dt(Kt,r[Et.textStyleScheme]);return r.options&&r.options.textStyle?Nt(n,e,r.options.textStyle):Nt(n,e)},Jt={D1:{fontFamily:Yt("D1.fontFamily"),fontSize:Yt("D1.fontSize"),fontWeight:Yt("D1.fontWeight"),lineHeight:Yt("D1.lineHeight"),letterSpacing:Yt("D1.letterSpacing")},D2:{fontFamily:Yt("D2.fontFamily"),fontSize:Yt("D2.fontSize"),fontWeight:Yt("D2.fontWeight"),lineHeight:Yt("D2.lineHeight"),letterSpacing:Yt("D2.letterSpacing")},D3:{fontFamily:Yt("D3.fontFamily"),fontSize:Yt("D3.fontSize"),fontWeight:Yt("D3.fontWeight"),lineHeight:Yt("D3.lineHeight"),letterSpacing:Yt("D3.letterSpacing")},D4:{fontFamily:Yt("D4.fontFamily"),fontSize:Yt("D4.fontSize"),fontWeight:Yt("D4.fontWeight"),lineHeight:Yt("D4.lineHeight"),letterSpacing:Yt("D4.letterSpacing")},DBody:{fontFamily:Yt("DBody.fontFamily"),fontSize:Yt("DBody.fontSize"),fontWeight:Yt("DBody.fontWeight"),lineHeight:Yt("DBody.lineHeight"),letterSpacing:Yt("DBody.letterSpacing")},H1:{fontFamily:Yt("H1.fontFamily"),fontSize:Yt("H1.fontSize"),fontWeight:Yt("H1.fontWeight"),lineHeight:Yt("H1.lineHeight"),letterSpacing:Yt("H1.letterSpacing")},H2:{fontFamily:Yt("H2.fontFamily"),fontSize:Yt("H2.fontSize"),fontWeight:Yt("H2.fontWeight"),lineHeight:Yt("H2.lineHeight"),letterSpacing:Yt("H2.letterSpacing")},H3:{fontFamily:Yt("H3.fontFamily"),fontSize:Yt("H3.fontSize"),fontWeight:Yt("H3.fontWeight"),lineHeight:Yt("H3.lineHeight"),letterSpacing:Yt("H3.letterSpacing")},H4:{fontFamily:Yt("H4.fontFamily"),fontSize:Yt("H4.fontSize"),fontWeight:Yt("H4.fontWeight"),lineHeight:Yt("H4.lineHeight"),letterSpacing:Yt("H4.letterSpacing")},H5:{fontFamily:Yt("H5.fontFamily"),fontSize:Yt("H5.fontSize"),fontWeight:Yt("H5.fontWeight"),lineHeight:Yt("H5.lineHeight"),letterSpacing:Yt("H5.letterSpacing")},H6:{fontFamily:Yt("H6.fontFamily"),fontSize:Yt("H6.fontSize"),fontWeight:Yt("H6.fontWeight"),lineHeight:Yt("H6.lineHeight"),letterSpacing:Yt("H6.letterSpacing")},Body:{fontFamily:Yt("Body.fontFamily"),fontSize:Yt("Body.fontSize"),fontWeight:Yt("Body.fontWeight"),lineHeight:Yt("Body.lineHeight"),letterSpacing:Yt("Body.letterSpacing")},BodySmall:{fontFamily:Yt("BodySmall.fontFamily"),fontSize:Yt("BodySmall.fontSize"),fontWeight:Yt("BodySmall.fontWeight"),lineHeight:Yt("BodySmall.lineHeight"),letterSpacing:Yt("BodySmall.letterSpacing")},XSmall:{fontFamily:Yt("XSmall.fontFamily"),fontSize:Yt("XSmall.fontSize"),fontWeight:Yt("XSmall.fontWeight"),lineHeight:Yt("XSmall.lineHeight"),letterSpacing:Yt("XSmall.letterSpacing")}},er=e=>{switch(e){case 700:case"bold":return Xt.Bold;case 600:case"semibold":return Xt.Semibold;case 300:case"light":return Xt.Light;case 400:case"regular":return Xt.Regular;default:return""}},tr=(e,t)=>r=>{const n=Jt[e].fontFamily(r),i=Jt[e].fontWeight(r);return Object.values(Xt).includes(n)?g`
|
|
6
|
+
font-family: ${er(t)||er(i)||n};
|
|
13
7
|
font-weight: normal !important;
|
|
14
|
-
`:
|
|
8
|
+
`:g`
|
|
15
9
|
font-family: ${n};
|
|
16
|
-
font-weight: ${(
|
|
17
|
-
`},
|
|
18
|
-
${
|
|
10
|
+
font-weight: ${(rr(t)||i)??"normal"};
|
|
11
|
+
`},rr=e=>{switch(e){case 300:case"light":return 300;case 400:case"regular":return 400;case 600:case"semibold":return 600;case 700:case"bold":return 700;case 900:case"black":return 900;default:return""}},nr=(e,t,r=!1)=>n=>{const i=Jt[e],o=i.fontSize(n);return g`
|
|
12
|
+
${tr(e,t)}
|
|
19
13
|
font-size: ${o}rem !important;
|
|
20
14
|
line-height: ${i.lineHeight}rem !important;
|
|
21
15
|
letter-spacing: ${i.letterSpacing(n)||0}rem !important;
|
|
22
|
-
${
|
|
16
|
+
${g`
|
|
23
17
|
margin-bottom: ${o*(r?1.05:0)}rem;
|
|
24
18
|
`}
|
|
25
|
-
`},
|
|
19
|
+
`},ir=(e=!1,t=!1)=>t?g`
|
|
26
20
|
display: block;
|
|
27
|
-
`:e?
|
|
21
|
+
`:e?g`
|
|
28
22
|
display: inline;
|
|
29
|
-
`:
|
|
23
|
+
`:g`
|
|
30
24
|
display: block;
|
|
31
|
-
`,
|
|
32
|
-
${
|
|
33
|
-
border: 1px solid ${
|
|
25
|
+
`,or=f.div`
|
|
26
|
+
${nr("Body","regular")}
|
|
27
|
+
border: 1px solid ${Vt.Neutral[5]};
|
|
34
28
|
border-radius: 4px;
|
|
35
|
-
display:
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
display: flex;
|
|
30
|
+
position: relative;
|
|
31
|
+
flex-direction: row;
|
|
32
|
+
height: 100%;
|
|
38
33
|
width: 100%;
|
|
39
|
-
background: ${
|
|
40
|
-
color: ${
|
|
34
|
+
background: ${Vt.Neutral[8]};
|
|
35
|
+
color: ${Vt.Neutral[1]};
|
|
41
36
|
|
|
42
|
-
:focus
|
|
43
|
-
:active {
|
|
37
|
+
:focus-within {
|
|
44
38
|
outline: none;
|
|
45
|
-
border: 1px solid ${
|
|
46
|
-
box-shadow:
|
|
39
|
+
border: 1px solid ${Vt.Accent.Light[1]};
|
|
40
|
+
box-shadow: ${Rt};
|
|
47
41
|
}
|
|
48
42
|
|
|
49
43
|
::placeholder,
|
|
50
44
|
::-webkit-input-placeholder {
|
|
51
|
-
color: ${
|
|
45
|
+
color: ${Vt.Neutral[3]};
|
|
52
46
|
}
|
|
53
47
|
|
|
54
|
-
${e=>e.
|
|
48
|
+
${e=>{if("number"===e.type)return g`
|
|
49
|
+
// Chrome, Safari, Edge, Opera
|
|
50
|
+
::-webkit-outer-spin-button,
|
|
51
|
+
::-webkit-inner-spin-button {
|
|
52
|
+
-webkit-appearance: none;
|
|
53
|
+
margin: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Firefox
|
|
57
|
+
-moz-appearance: textfield;
|
|
58
|
+
`}}
|
|
59
|
+
|
|
60
|
+
${e=>e.readOnly?g`
|
|
55
61
|
border: none;
|
|
56
|
-
padding
|
|
62
|
+
padding: 0.2rem 0 0.3rem;
|
|
57
63
|
background: transparent !important;
|
|
58
|
-
|
|
59
|
-
:focus,
|
|
60
|
-
:active {
|
|
64
|
+
:focus-within {
|
|
61
65
|
border: none;
|
|
62
66
|
box-shadow: none;
|
|
63
67
|
}
|
|
64
|
-
`:e.disabled?
|
|
65
|
-
background: ${
|
|
66
|
-
|
|
68
|
+
`:e.disabled?g`
|
|
69
|
+
background: ${Vt.Neutral[6](e)};
|
|
70
|
+
:hover {
|
|
71
|
+
cursor: not-allowed;
|
|
72
|
+
}
|
|
67
73
|
|
|
68
|
-
:focus
|
|
69
|
-
:active {
|
|
74
|
+
:focus-within {
|
|
70
75
|
outline: none;
|
|
71
|
-
border: 1px solid ${
|
|
76
|
+
border: 1px solid ${Vt.Neutral[5](e)};
|
|
72
77
|
box-shadow: none;
|
|
73
78
|
}
|
|
74
|
-
`:e.error?
|
|
75
|
-
border: 1px solid ${
|
|
79
|
+
`:e.error?g`
|
|
80
|
+
border: 1px solid ${Vt.Validation.Red.Border(e)};
|
|
76
81
|
|
|
77
|
-
:focus
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
box-shadow: inset 0 0 4px 1px rgba(221, 102, 102, 0.8);
|
|
82
|
+
:focus-within {
|
|
83
|
+
border: 1px solid ${Vt.Validation.Red.Border(e)};
|
|
84
|
+
box-shadow: ${Wt};
|
|
81
85
|
}
|
|
82
86
|
`:void 0}
|
|
83
|
-
`,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
`,ar=f.input`
|
|
88
|
+
// overwrite default styles
|
|
89
|
+
background: transparent;
|
|
90
|
+
border: none;
|
|
91
|
+
height: 3rem;
|
|
92
|
+
width: 100%;
|
|
93
|
+
|
|
94
|
+
${nr("Body","regular")}
|
|
95
|
+
padding: 0.2rem 1rem 0.3rem; // Somehow the input text appears lower
|
|
96
|
+
|
|
97
|
+
:focus,
|
|
98
|
+
:active {
|
|
99
|
+
outline: none;
|
|
100
|
+
border: none;
|
|
101
|
+
box-shadow: none;
|
|
102
|
+
}
|
|
103
|
+
`,sr=f.button`
|
|
104
|
+
position: relative;
|
|
105
|
+
display: flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
padding: 0.875rem 1rem;
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
|
|
110
|
+
color: ${Vt.Neutral[3]};
|
|
111
|
+
background-color: transparent;
|
|
112
|
+
border: none;
|
|
113
|
+
`,lr=f(Ut)`
|
|
114
|
+
height: 1.25rem;
|
|
115
|
+
width: 1.25rem;
|
|
116
|
+
`,cr=o.forwardRef((({value:e,spacing:n,type:i,error:o,disabled:a,readOnly:s,onChange:l,onClear:c,allowClear:u=!1,...d},h)=>{const p=()=>"tel"===i&&n,f=e=>{const t=e.target,r=t.value,n=t.value.replace(/\s/g,"");t.value=n,l(e),t.value=r},g=e?(e=>e?p()?qt.transformWithSpaces(e,n):e:"")(e):e,m=l?e=>{p()?f(e):l(e)}:void 0,y=u&&!a&&!s&&!o;return t(or,{error:o,disabled:a,readOnly:s,className:d.className,children:[r(ar,{"data-testid":"input",ref:h,disabled:a,value:g,error:o,onChange:m,type:i,readOnly:s,...d}),y&&r(sr,{onClick:()=>{c&&c()},children:r(lr,{})})]})}));var ur,dr={};Object.defineProperty(dr,"__esModule",{value:!0});var hr=e;const pr=e=>hr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:hr.jsx("path",{d:"M4.25 17.5C3.764 17.5 3.35067 17.33 3.01 16.99C2.67 16.6493 2.5 16.236 2.5 15.75V4.25C2.5 3.764 2.67 3.35067 3.01 3.01C3.35067 2.67 3.764 2.5 4.25 2.5H9.208C9.444 2.5 9.649 2.58667 9.823 2.76C9.99633 2.934 10.083 3.139 10.083 3.375C10.083 3.611 9.99633 3.816 9.823 3.99C9.649 4.16333 9.444 4.25 9.208 4.25H4.25V15.75H15.75V10.792C15.75 10.556 15.8367 10.351 16.01 10.177C16.184 10.0037 16.389 9.917 16.625 9.917C16.861 9.917 17.066 10.0037 17.24 10.177C17.4133 10.351 17.5 10.556 17.5 10.792V15.75C17.5 16.236 17.33 16.6493 16.99 16.99C16.6493 17.33 16.236 17.5 15.75 17.5H4.25ZM7.5 12.5C7.33333 12.3333 7.25 12.1283 7.25 11.885C7.25 11.6423 7.33333 11.4377 7.5 11.271L14.521 4.25H12.708C12.472 4.25 12.2673 4.16333 12.094 3.99C11.92 3.816 11.833 3.611 11.833 3.375C11.833 3.139 11.92 2.934 12.094 2.76C12.2673 2.58667 12.472 2.5 12.708 2.5H16.625C16.861 2.5 17.066 2.58667 17.24 2.76C17.4133 2.934 17.5 3.139 17.5 3.375V7.292C17.5 7.528 17.4133 7.73267 17.24 7.906C17.066 8.08 16.861 8.167 16.625 8.167C16.389 8.167 16.184 8.08 16.01 7.906C15.8367 7.73267 15.75 7.528 15.75 7.292V5.479L8.708 12.521C8.54133 12.6877 8.34367 12.771 8.115 12.771C7.88567 12.771 7.68067 12.6807 7.5 12.5Z",fill:"currentColor"})});var fr;pr.displayName="ExternalIcon",ur=dr.ExternalIcon=pr,function(e){e.D1=f.h1`
|
|
117
|
+
${e=>g`
|
|
118
|
+
${nr("D1",e.weight,e.paragraph)}
|
|
119
|
+
color: ${Vt.Neutral[1]};
|
|
120
|
+
${ir(e.inline,e.paragraph)}
|
|
88
121
|
`}
|
|
89
|
-
`,e.D2=
|
|
90
|
-
${e=>
|
|
91
|
-
${
|
|
92
|
-
color: ${
|
|
93
|
-
${
|
|
122
|
+
`,e.D2=f.h1`
|
|
123
|
+
${e=>g`
|
|
124
|
+
${nr("D2",e.weight,e.paragraph)}
|
|
125
|
+
color: ${Vt.Neutral[1]};
|
|
126
|
+
${ir(e.inline,e.paragraph)}
|
|
94
127
|
`}
|
|
95
|
-
`,e.D3=
|
|
96
|
-
${e=>
|
|
97
|
-
${
|
|
98
|
-
color: ${
|
|
99
|
-
${
|
|
128
|
+
`,e.D3=f.h1`
|
|
129
|
+
${e=>g`
|
|
130
|
+
${nr("D3",e.weight,e.paragraph)}
|
|
131
|
+
color: ${Vt.Neutral[1]};
|
|
132
|
+
${ir(e.inline,e.paragraph)}
|
|
100
133
|
`}
|
|
101
|
-
`,e.D4=
|
|
102
|
-
${e=>
|
|
103
|
-
${
|
|
104
|
-
color: ${
|
|
105
|
-
${
|
|
134
|
+
`,e.D4=f.h1`
|
|
135
|
+
${e=>g`
|
|
136
|
+
${nr("D4",e.weight,e.paragraph)}
|
|
137
|
+
color: ${Vt.Neutral[1]};
|
|
138
|
+
${ir(e.inline,e.paragraph)}
|
|
106
139
|
`}
|
|
107
|
-
`,e.DBody=
|
|
108
|
-
${e=>
|
|
109
|
-
${
|
|
110
|
-
color: ${
|
|
111
|
-
${
|
|
140
|
+
`,e.DBody=f.h1`
|
|
141
|
+
${e=>g`
|
|
142
|
+
${nr("DBody",e.weight,e.paragraph)}
|
|
143
|
+
color: ${Vt.Neutral[1]};
|
|
144
|
+
${ir(e.inline,e.paragraph)}
|
|
112
145
|
`}
|
|
113
|
-
`,e.H1=
|
|
114
|
-
${e=>
|
|
115
|
-
${
|
|
116
|
-
color: ${
|
|
117
|
-
${
|
|
146
|
+
`,e.H1=f.h1`
|
|
147
|
+
${e=>g`
|
|
148
|
+
${nr("H1",e.weight,e.paragraph)}
|
|
149
|
+
color: ${Vt.Neutral[1]};
|
|
150
|
+
${ir(e.inline,e.paragraph)}
|
|
118
151
|
`}
|
|
119
|
-
`,e.H2=
|
|
120
|
-
${e=>
|
|
121
|
-
${
|
|
122
|
-
color: ${
|
|
123
|
-
${
|
|
152
|
+
`,e.H2=f.h2`
|
|
153
|
+
${e=>g`
|
|
154
|
+
${nr("H2",e.weight,e.paragraph)}
|
|
155
|
+
color: ${Vt.Neutral[1]};
|
|
156
|
+
${ir(e.inline,e.paragraph)}
|
|
124
157
|
`}
|
|
125
|
-
`,e.H3=
|
|
126
|
-
${e=>
|
|
127
|
-
${
|
|
128
|
-
color: ${
|
|
129
|
-
${
|
|
158
|
+
`,e.H3=f.h3`
|
|
159
|
+
${e=>g`
|
|
160
|
+
${nr("H3",e.weight,e.paragraph)}
|
|
161
|
+
color: ${Vt.Neutral[1]};
|
|
162
|
+
${ir(e.inline,e.paragraph)}
|
|
130
163
|
`}
|
|
131
|
-
`,e.H4=
|
|
132
|
-
${e=>
|
|
133
|
-
${
|
|
134
|
-
color: ${
|
|
135
|
-
${
|
|
164
|
+
`,e.H4=f.h4`
|
|
165
|
+
${e=>g`
|
|
166
|
+
${nr("H4",e.weight,e.paragraph)}
|
|
167
|
+
color: ${Vt.Neutral[1]};
|
|
168
|
+
${ir(e.inline,e.paragraph)}
|
|
136
169
|
`}
|
|
137
|
-
`,e.H5=
|
|
138
|
-
${e=>
|
|
139
|
-
${
|
|
140
|
-
color: ${
|
|
141
|
-
${
|
|
170
|
+
`,e.H5=f.h5`
|
|
171
|
+
${e=>g`
|
|
172
|
+
${nr("H5",e.weight,e.paragraph)}
|
|
173
|
+
color: ${Vt.Neutral[1]};
|
|
174
|
+
${ir(e.inline,e.paragraph)}
|
|
142
175
|
`}
|
|
143
|
-
`,e.H6=
|
|
144
|
-
${e=>
|
|
145
|
-
${
|
|
146
|
-
color: ${
|
|
147
|
-
${
|
|
176
|
+
`,e.H6=f.h6`
|
|
177
|
+
${e=>g`
|
|
178
|
+
${nr("H6",e.weight,e.paragraph)}
|
|
179
|
+
color: ${Vt.Neutral[1]};
|
|
180
|
+
${ir(e.inline,e.paragraph)}
|
|
148
181
|
`}
|
|
149
|
-
`,e.Body=
|
|
150
|
-
${e=>
|
|
151
|
-
${
|
|
152
|
-
color: ${
|
|
153
|
-
${
|
|
182
|
+
`,e.Body=f.p`
|
|
183
|
+
${e=>g`
|
|
184
|
+
${nr("Body",e.weight,e.paragraph)}
|
|
185
|
+
color: ${Vt.Neutral[1]};
|
|
186
|
+
${ir(e.inline,e.paragraph)}
|
|
154
187
|
`}
|
|
155
|
-
`,e.BodySmall=
|
|
156
|
-
${e=>
|
|
157
|
-
${
|
|
158
|
-
color: ${
|
|
159
|
-
${
|
|
188
|
+
`,e.BodySmall=f.p`
|
|
189
|
+
${e=>g`
|
|
190
|
+
${nr("BodySmall",e.weight,e.paragraph)}
|
|
191
|
+
color: ${Vt.Neutral[1]};
|
|
192
|
+
${ir(e.inline,e.paragraph)}
|
|
160
193
|
`}
|
|
161
|
-
`,e.XSmall=
|
|
162
|
-
${e=>
|
|
163
|
-
${
|
|
164
|
-
color: ${
|
|
165
|
-
${
|
|
194
|
+
`,e.XSmall=f.span`
|
|
195
|
+
${e=>g`
|
|
196
|
+
${nr("XSmall",e.weight,e.paragraph)}
|
|
197
|
+
color: ${Vt.Neutral[1]};
|
|
198
|
+
${ir(e.inline,e.paragraph)}
|
|
166
199
|
`}
|
|
167
|
-
`,e.Hyperlink={Default:e=>
|
|
168
|
-
${e=>
|
|
169
|
-
${
|
|
170
|
-
color: ${
|
|
200
|
+
`,e.Hyperlink={Default:e=>yr({...e,textStyle:"Body"}),Small:e=>yr({...e,textStyle:"BodySmall"})}}(fr||(fr={}));const gr=f.a`
|
|
201
|
+
${e=>g`
|
|
202
|
+
${nr(e.textStyle,e.weight)}
|
|
203
|
+
color: ${Vt.Primary};
|
|
171
204
|
text-decoration: none;
|
|
172
205
|
|
|
173
206
|
:hover,
|
|
174
207
|
:active,
|
|
175
208
|
:focus {
|
|
176
|
-
color: ${
|
|
209
|
+
color: ${Vt.Secondary};
|
|
210
|
+
|
|
211
|
+
svg {
|
|
212
|
+
color: ${Vt.Secondary};
|
|
213
|
+
}
|
|
177
214
|
}
|
|
178
215
|
`}
|
|
179
|
-
`,
|
|
216
|
+
`,mr=f(ur)`
|
|
217
|
+
height: 1rem;
|
|
218
|
+
width: 1rem;
|
|
180
219
|
margin-left: 0.4rem;
|
|
181
|
-
|
|
220
|
+
vertical-align: middle;
|
|
221
|
+
`,yr=({external:e=!1,children:n,...i})=>t(gr,{...i,children:[n,e&&r(mr,{})]});var br;!function(e){e[e.Subpage=0]="Subpage",e[e.Domain=1]="Domain"}(br||(br={}));const vr=f.div`
|
|
182
222
|
display: flex;
|
|
183
223
|
position: relative;
|
|
184
|
-
border: 1px solid ${
|
|
224
|
+
border: 1px solid ${Vt.Neutral[5]};
|
|
185
225
|
border-radius: 4px;
|
|
186
|
-
background: ${
|
|
226
|
+
background: ${Vt.Neutral[8]};
|
|
187
227
|
height: 3rem;
|
|
188
228
|
width: 100%;
|
|
229
|
+
flex-direction: ${e=>"right"===e.$position?"row-reverse":"row"};
|
|
189
230
|
|
|
190
231
|
:focus-within {
|
|
191
|
-
border: 1px solid ${
|
|
192
|
-
box-shadow:
|
|
232
|
+
border: 1px solid ${Vt.Accent.Light[1]};
|
|
233
|
+
box-shadow: ${Rt};
|
|
193
234
|
}
|
|
194
235
|
|
|
195
|
-
${e=>
|
|
196
|
-
flex-direction: row-reverse;
|
|
197
|
-
`:e.$readOnly?p`
|
|
236
|
+
${e=>e.$readOnly?g`
|
|
198
237
|
border: none;
|
|
199
238
|
padding-left: 0rem;
|
|
200
239
|
background: transparent !important;
|
|
@@ -203,41 +242,46 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import*as n from
|
|
|
203
242
|
border: none;
|
|
204
243
|
box-shadow: none;
|
|
205
244
|
}
|
|
206
|
-
`:e.disabled?
|
|
207
|
-
background: ${
|
|
245
|
+
`:e.disabled?g`
|
|
246
|
+
background: ${Vt.Neutral[6](e)};
|
|
208
247
|
:hover {
|
|
209
248
|
cursor: not-allowed;
|
|
210
249
|
}
|
|
211
250
|
|
|
212
251
|
:focus-within {
|
|
213
|
-
border: 1px solid ${
|
|
252
|
+
border: 1px solid ${Vt.Neutral[5](e)};
|
|
214
253
|
box-shadow: none;
|
|
215
254
|
}
|
|
216
|
-
`:e.$error?
|
|
217
|
-
border: 1px solid ${
|
|
255
|
+
`:e.$error?g`
|
|
256
|
+
border: 1px solid ${Vt.Validation.Red.Border(e)};
|
|
218
257
|
|
|
219
258
|
:focus-within {
|
|
220
|
-
border: 1px solid ${
|
|
221
|
-
box-shadow:
|
|
259
|
+
border: 1px solid ${Vt.Validation.Red.Border(e)};
|
|
260
|
+
box-shadow: ${Wt};
|
|
222
261
|
}
|
|
223
262
|
`:void 0}
|
|
224
|
-
`,
|
|
263
|
+
`,wr=f(cr)`
|
|
225
264
|
// overwrite default styles
|
|
226
265
|
background: transparent;
|
|
227
266
|
border: none;
|
|
228
|
-
|
|
229
|
-
:
|
|
267
|
+
|
|
268
|
+
:focus-within {
|
|
230
269
|
outline: none;
|
|
231
270
|
border: none;
|
|
232
271
|
box-shadow: none;
|
|
233
272
|
}
|
|
234
273
|
|
|
235
|
-
${e=>"right"===e.$position?
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
274
|
+
${e=>"right"===e.$position?g`
|
|
275
|
+
:not(:only-child) {
|
|
276
|
+
padding-right: 0;
|
|
277
|
+
}
|
|
278
|
+
`:g`
|
|
279
|
+
padding: unset;
|
|
280
|
+
:not(:only-child) {
|
|
281
|
+
padding-left: 0;
|
|
282
|
+
}
|
|
239
283
|
`}
|
|
240
|
-
`,
|
|
284
|
+
`,_r=f.div`
|
|
241
285
|
position: relative;
|
|
242
286
|
display: flex;
|
|
243
287
|
align-items: center;
|
|
@@ -245,42 +289,41 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import*as n from
|
|
|
245
289
|
border-bottom-left-radius: 4px;
|
|
246
290
|
padding: 0 0.6875rem 0 1rem;
|
|
247
291
|
|
|
248
|
-
${
|
|
249
|
-
color: ${
|
|
292
|
+
${nr("Body","regular")}
|
|
293
|
+
color: ${Vt.Neutral[1]};
|
|
250
294
|
|
|
251
295
|
/* SVG Icon */
|
|
252
296
|
svg {
|
|
253
297
|
height: 1.5rem;
|
|
254
298
|
width: 1.5rem;
|
|
255
299
|
#path {
|
|
256
|
-
fill: ${
|
|
300
|
+
fill: ${Vt.Neutral[1]};
|
|
257
301
|
}
|
|
258
302
|
}
|
|
259
303
|
|
|
260
|
-
${e=>
|
|
261
|
-
|
|
304
|
+
${e=>e.$readOnly?g`
|
|
305
|
+
padding-left: 0rem;
|
|
306
|
+
`:e.disabled?g`
|
|
307
|
+
color: ${Vt.Neutral[4](e)};
|
|
262
308
|
svg {
|
|
263
309
|
#path {
|
|
264
|
-
fill: ${
|
|
310
|
+
fill: ${Vt.Neutral[4](e)};
|
|
265
311
|
}
|
|
266
312
|
}
|
|
267
|
-
|
|
268
|
-
`;h(Wt)`
|
|
269
|
-
padding-left: 0.5rem;
|
|
270
|
-
color: ${Ht.Neutral[4]};
|
|
271
|
-
`;var hr=function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1},pr=We;var fr=We,gr=qe,mr=st;var yr=We,vr=function(){this.__data__=new pr,this.size=0},br=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},wr=function(e){return this.__data__.get(e)},_r=function(e){return this.__data__.has(e)},$r=function(e,t){var r=this.__data__;if(r instanceof fr){var n=r.__data__;if(!gr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new mr(n)}return r.set(e,t),this.size=r.size,this};function xr(e){var t=this.__data__=new yr(e);this.size=t.size}xr.prototype.clear=vr,xr.prototype.delete=br,xr.prototype.get=wr,xr.prototype.has=_r,xr.prototype.set=$r;var Sr=xr;var kr=st,Fr=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Or=function(e){return this.__data__.has(e)};function jr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new kr;++t<r;)this.add(e[t])}jr.prototype.add=jr.prototype.push=Fr,jr.prototype.has=Or;var Br=jr,zr=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1},Ar=function(e,t){return e.has(t)};var Pr=function(e,t,r,n,i,o){var a=1&r,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=2&r?new Br:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var f=e[d],g=t[d];if(n)var m=a?n(g,f,d,t,e,o):n(f,g,d,e,t,o);if(void 0!==m){if(m)continue;h=!1;break}if(p){if(!zr(t,(function(e,t){if(!Ar(p,t)&&(f===e||i(f,e,r,n,o)))return p.push(t)}))){h=!1;break}}else if(f!==g&&!i(f,g,r,n,o)){h=!1;break}}return o.delete(e),o.delete(t),h};var Cr=_.Uint8Array,Nr=ze,Dr=Pr,Er=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r},Ir=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Hr=$?$.prototype:void 0,Mr=Hr?Hr.valueOf:void 0;var Vr=function(e,t,r,n,i,o,a){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new Cr(e),new Cr(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Nr(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Er;case"[object Set]":var l=1&n;if(s||(s=Ir),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;n|=2,a.set(e,t);var u=Dr(s(e),s(t),n,i,o,a);return a.delete(e),u;case"[object Symbol]":if(Mr)return Mr.call(e)==Mr.call(t)}return!1};var Rr=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e},Tr=y;var Lr=function(e,t,r){var n=t(e);return Tr(e)?n:Rr(n,r(e))};var Wr=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o},qr=function(){return[]},Ur=Object.prototype.propertyIsEnumerable,Qr=Object.getOwnPropertySymbols,Gr=Qr?function(e){return null==e?[]:(e=Object(e),Wr(Qr(e),(function(t){return Ur.call(e,t)})))}:qr;var Xr=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},Zr=C,Kr=N;var Yr=function(e){return Kr(e)&&"[object Arguments]"==Zr(e)},Jr=N,en=Object.prototype,tn=en.hasOwnProperty,rn=en.propertyIsEnumerable,nn=Yr(function(){return arguments}())?Yr:function(e){return Jr(e)&&tn.call(e,"callee")&&!rn.call(e,"callee")},on={exports:{}};var an=function(){return!1};!function(e,t){var r=_,n=an,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=(a?a.isBuffer:void 0)||n;e.exports=s}(on,on.exports);var sn=/^(?:0|[1-9]\d*)$/;var ln=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&sn.test(e))&&e>-1&&e%1==0&&e<t};var cn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},un=C,dn=cn,hn=N,pn={};pn["[object Float32Array]"]=pn["[object Float64Array]"]=pn["[object Int8Array]"]=pn["[object Int16Array]"]=pn["[object Int32Array]"]=pn["[object Uint8Array]"]=pn["[object Uint8ClampedArray]"]=pn["[object Uint16Array]"]=pn["[object Uint32Array]"]=!0,pn["[object Arguments]"]=pn["[object Array]"]=pn["[object ArrayBuffer]"]=pn["[object Boolean]"]=pn["[object DataView]"]=pn["[object Date]"]=pn["[object Error]"]=pn["[object Function]"]=pn["[object Map]"]=pn["[object Number]"]=pn["[object Object]"]=pn["[object RegExp]"]=pn["[object Set]"]=pn["[object String]"]=pn["[object WeakMap]"]=!1;var fn=function(e){return hn(e)&&dn(e.length)&&!!pn[un(e)]};var gn=function(e){return function(t){return e(t)}},mn={exports:{}};!function(e,t){var r=v,n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&r.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}(mn,mn.exports);var yn=fn,vn=gn,bn=mn.exports,wn=bn&&bn.isTypedArray,_n=wn?vn(wn):yn,$n=Xr,xn=nn,Sn=y,kn=on.exports,Fn=ln,On=_n,jn=Object.prototype.hasOwnProperty;var Bn=function(e,t){var r=Sn(e),n=!r&&xn(e),i=!r&&!n&&kn(e),o=!r&&!n&&!i&&On(e),a=r||n||i||o,s=a?$n(e.length,String):[],l=s.length;for(var c in e)!t&&!jn.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Fn(c,l))||s.push(c);return s},zn=Object.prototype;var An=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||zn)};var Pn=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),Cn=An,Nn=Pn,Dn=Object.prototype.hasOwnProperty;var En=Q,In=cn;var Hn=Bn,Mn=function(e){if(!Cn(e))return Nn(e);var t=[];for(var r in Object(e))Dn.call(e,r)&&"constructor"!=r&&t.push(r);return t},Vn=function(e){return null!=e&&In(e.length)&&!En(e)};var Rn=function(e){return Vn(e)?Hn(e):Mn(e)},Tn=Lr,Ln=Gr,Wn=Rn;var qn=function(e){return Tn(e,Wn,Ln)},Un=Object.prototype.hasOwnProperty;var Qn=function(e,t,r,n,i,o){var a=1&r,s=qn(e),l=s.length;if(l!=qn(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:Un.call(t,u)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var p=!0;o.set(e,t),o.set(t,e);for(var f=a;++c<l;){var g=e[u=s[c]],m=t[u];if(n)var y=a?n(m,g,u,t,e,o):n(g,m,u,e,t,o);if(!(void 0===y?g===m||i(g,m,r,n,o):y)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p},Gn=de(_,"DataView"),Xn=qe,Zn=de(_,"Promise"),Kn=de(_,"Set"),Yn=de(_,"WeakMap"),Jn=C,ei=Y,ti=ei(Gn),ri=ei(Xn),ni=ei(Zn),ii=ei(Kn),oi=ei(Yn),ai=Jn;(Gn&&"[object DataView]"!=ai(new Gn(new ArrayBuffer(1)))||Xn&&"[object Map]"!=ai(new Xn)||Zn&&"[object Promise]"!=ai(Zn.resolve())||Kn&&"[object Set]"!=ai(new Kn)||Yn&&"[object WeakMap]"!=ai(new Yn))&&(ai=function(e){var t=Jn(e),r="[object Object]"==t?e.constructor:void 0,n=r?ei(r):"";if(n)switch(n){case ti:return"[object DataView]";case ri:return"[object Map]";case ni:return"[object Promise]";case ii:return"[object Set]";case oi:return"[object WeakMap]"}return t});var si=Sr,li=Pr,ci=Vr,ui=Qn,di=ai,hi=y,pi=on.exports,fi=_n,gi="[object Object]",mi=Object.prototype.hasOwnProperty;var yi=function(e,t,r,n,i,o){var a=hi(e),s=hi(t),l=a?"[object Array]":di(e),c=s?"[object Array]":di(t),u=(l="[object Arguments]"==l?gi:l)==gi,d=(c="[object Arguments]"==c?gi:c)==gi,h=l==c;if(h&&pi(e)){if(!pi(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new si),a||fi(e)?li(e,t,r,n,i,o):ci(e,t,l,r,n,i,o);if(!(1&r)){var p=u&&mi.call(e,"__wrapped__"),f=d&&mi.call(t,"__wrapped__");if(p||f){var g=p?e.value():e,m=f?t.value():t;return o||(o=new si),i(g,m,r,n,o)}}return!!h&&(o||(o=new si),ui(e,t,r,n,i,o))},vi=N;var bi=function e(t,r,n,i,o){return t===r||(null==t||null==r||!vi(t)&&!vi(r)?t!=t&&r!=r:yi(t,r,n,i,e,o))},wi=Sr,_i=bi;var $i=L;var xi=function(e){return e==e&&!$i(e)},Si=xi,ki=Rn;var Fi=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},Oi=function(e,t,r,n){var i=r.length,o=i,a=!n;if(null==e)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=r[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new wi;if(n)var h=n(c,u,l,e,t,d);if(!(void 0===h?_i(u,c,3,n,d):h))return!1}}return!0},ji=function(e){for(var t=ki(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Si(i)]}return t},Bi=Fi;var zi=kt,Ai=nn,Pi=y,Ci=ln,Ni=cn,Di=Ot;var Ei=function(e,t){return null!=e&&t in Object(e)},Ii=function(e,t,r){for(var n=-1,i=(t=zi(t,e)).length,o=!1;++n<i;){var a=Di(t[n]);if(!(o=null!=e&&r(e,a)))break;e=e[a]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&Ni(i)&&Ci(a,i)&&(Pi(e)||Ai(e))};var Hi=bi,Mi=Pt,Vi=function(e,t){return null!=e&&Ii(e,t,Ei)},Ri=T,Ti=xi,Li=Fi,Wi=Ot;var qi=zt;var Ui=function(e){return function(t){return null==t?void 0:t[e]}},Qi=function(e){return function(t){return qi(t,e)}},Gi=T,Xi=Ot;var Zi=function(e){var t=ji(e);return 1==t.length&&t[0][2]?Bi(t[0][0],t[0][1]):function(r){return r===e||Oi(r,e,t)}},Ki=function(e,t){return Ri(e)&&Ti(t)?Li(Wi(e),t):function(r){var n=Mi(r,e);return void 0===n&&n===t?Vi(r,e):Hi(t,n,3)}},Yi=function(e){return e},Ji=y,eo=function(e){return Gi(e)?Ui(Xi(e)):Qi(e)};var to=/\s/;var ro=function(e){for(var t=e.length;t--&&to.test(e.charAt(t)););return t},no=/^\s+/;var io=function(e){return e?e.slice(0,ro(e)+1).replace(no,""):e},oo=L,ao=I,so=/^[-+]0x[0-9a-f]+$/i,lo=/^0b[01]+$/i,co=/^0o[0-7]+$/i,uo=parseInt;var ho=function(e){if("number"==typeof e)return e;if(ao(e))return NaN;if(oo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=oo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=io(e);var r=lo.test(e);return r||co.test(e)?uo(e.slice(2),r?2:8):so.test(e)?NaN:+e};var po=function(e){return e?Infinity===(e=ho(e))||-Infinity===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var fo=hr,go=function(e){return"function"==typeof e?e:null==e?Yi:"object"==typeof e?Ji(e)?Ki(e[0],e[1]):Zi(e):eo(e)},mo=function(e){var t=po(e),r=t%1;return t==t?r?t-r:t:0},yo=Math.max;var vo=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:mo(r);return i<0&&(i=yo(n+i,0)),fo(e,go(t),i)},bo={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},wo=i.createContext&&i.createContext(bo),_o=function(){return _o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},_o.apply(this,arguments)},$o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};function xo(e){return e&&e.map((function(e,t){return i.createElement(e.tag,_o({key:t},e.attr),xo(e.child))}))}function So(e){return function(t){return i.createElement(ko,_o({attr:_o({},e.attr)},t),xo(e.child))}}function ko(e){var t=function(t){var r,n=e.attr,o=e.size,a=e.title,s=$o(e,["attr","size","title"]),l=o||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),i.createElement("svg",_o({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,n,s,{className:r,style:_o(_o({color:e.color||t.color},t.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&i.createElement("title",null,a),e.children)};return void 0!==wo?i.createElement(wo.Consumer,null,(function(e){return t(e)})):t(bo)}function Fo(e){return So({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.6 48 48 141.601 48 256s93.6 208 208 208 208-93.601 208-208S370.4 48 256 48zm24 312h-48v-40h48v40zm0-88h-48V144h48v128z"}}]})(e)}let Oo=Lo();const jo=e=>Mo(e,Oo);let Bo=Lo();jo.write=e=>Mo(e,Bo);let zo=Lo();jo.onStart=e=>Mo(e,zo);let Ao=Lo();jo.onFrame=e=>Mo(e,Ao);let Po=Lo();jo.onFinish=e=>Mo(e,Po);let Co=[];jo.setTimeout=(e,t)=>{let r=jo.now()+t,n=()=>{let e=Co.findIndex((e=>e.cancel==n));~e&&Co.splice(e,1),Io-=~e?1:0},i={time:r,handler:e,cancel:n};return Co.splice(No(r),0,i),Io+=1,Vo(),i};let No=e=>~(~Co.findIndex((t=>t.time>e))||~Co.length);jo.cancel=e=>{zo.delete(e),Ao.delete(e),Oo.delete(e),Bo.delete(e),Po.delete(e)},jo.sync=e=>{Ho=!0,jo.batchedUpdates(e),Ho=!1},jo.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...e){t=e,jo.onStart(r)}return n.handler=e,n.cancel=()=>{zo.delete(r),t=null},n};let Do="undefined"!=typeof window?window.requestAnimationFrame:()=>{};jo.use=e=>Do=e,jo.now="undefined"!=typeof performance?()=>performance.now():Date.now,jo.batchedUpdates=e=>e(),jo.catch=console.error,jo.frameLoop="always",jo.advance=()=>{"demand"!==jo.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):To()};let Eo=-1,Io=0,Ho=!1;function Mo(e,t){Ho?(t.delete(e),e(0)):(t.add(e),Vo())}function Vo(){Eo<0&&(Eo=0,"demand"!==jo.frameLoop&&Do(Ro))}function Ro(){~Eo&&(Do(Ro),jo.batchedUpdates(To))}function To(){let e=Eo;Eo=jo.now();let t=No(Eo);t&&(Wo(Co.splice(0,t),(e=>e.handler())),Io-=t),zo.flush(),Oo.flush(e?Math.min(64,Eo-e):16.667),Ao.flush(),Bo.flush(),Po.flush(),Io||(Eo=-1)}function Lo(){let e=new Set,t=e;return{add(r){Io+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(Io-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,Io-=t.size,Wo(t,(t=>t(r)&&e.add(t))),Io+=e.size,t=e)}}}function Wo(e,t){e.forEach((e=>{try{t(e)}catch(e){jo.catch(e)}}))}function qo(){}const Uo={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function Qo(e,t){if(Uo.arr(e)){if(!Uo.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}const Go=(e,t)=>e.forEach(t);function Xo(e,t,r){if(Uo.arr(e))for(let n=0;n<e.length;n++)t.call(r,e[n],`${n}`);else for(const n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n)}const Zo=e=>Uo.und(e)?[]:Uo.arr(e)?e:[e];function Ko(e,t){if(e.size){const r=Array.from(e);e.clear(),Go(r,t)}}const Yo=(e,...t)=>Ko(e,(e=>e(...t))),Jo=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let ea,ta,ra=null,na=!1,ia=qo;var oa=Object.freeze({__proto__:null,get createStringInterpolator(){return ea},get to(){return ta},get colors(){return ra},get skipAnimation(){return na},get willAdvance(){return ia},assign:e=>{e.to&&(ta=e.to),e.now&&(jo.now=e.now),void 0!==e.colors&&(ra=e.colors),null!=e.skipAnimation&&(na=e.skipAnimation),e.createStringInterpolator&&(ea=e.createStringInterpolator),e.requestAnimationFrame&&jo.use(e.requestAnimationFrame),e.batchedUpdates&&(jo.batchedUpdates=e.batchedUpdates),e.willAdvance&&(ia=e.willAdvance),e.frameLoop&&(jo.frameLoop=e.frameLoop)}});const aa=new Set;let sa=[],la=[],ca=0;const ua={get idle(){return!aa.size&&!sa.length},start(e){ca>e.priority?(aa.add(e),jo.onStart(da)):(ha(e),jo(fa))},advance:fa,sort(e){if(ca)jo.onFrame((()=>ua.sort(e)));else{const t=sa.indexOf(e);~t&&(sa.splice(t,1),pa(e))}},clear(){sa=[],aa.clear()}};function da(){aa.forEach(ha),aa.clear(),jo(fa)}function ha(e){sa.includes(e)||pa(e)}function pa(e){sa.splice(function(e,t){const r=e.findIndex(t);return r<0?e.length:r}(sa,(t=>t.priority>e.priority)),0,e)}function fa(e){const t=la;for(let r=0;r<sa.length;r++){const n=sa[r];ca=n.priority,n.idle||(ia(n),n.advance(e),n.idle||t.push(n))}return ca=0,la=sa,la.length=0,sa=t,sa.length>0}const ga="[-+]?\\d*\\.?\\d+";function ma(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const ya=new RegExp("rgb"+ma(ga,ga,ga)),va=new RegExp("rgba"+ma(ga,ga,ga,ga)),ba=new RegExp("hsl"+ma(ga,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),wa=new RegExp("hsla"+ma(ga,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",ga)),_a=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,$a=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,xa=/^#([0-9a-fA-F]{6})$/,Sa=/^#([0-9a-fA-F]{8})$/;function ka(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Fa(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,i=2*r-n,o=ka(i,n,e+1/3),a=ka(i,n,e),s=ka(i,n,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function Oa(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ja(e){return(parseFloat(e)%360+360)%360/360}function Ba(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function za(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Aa(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=xa.exec(e))?parseInt(t[1]+"ff",16)>>>0:ra&&void 0!==ra[e]?ra[e]:(t=ya.exec(e))?(Oa(t[1])<<24|Oa(t[2])<<16|Oa(t[3])<<8|255)>>>0:(t=va.exec(e))?(Oa(t[1])<<24|Oa(t[2])<<16|Oa(t[3])<<8|Ba(t[4]))>>>0:(t=_a.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Sa.exec(e))?parseInt(t[1],16)>>>0:(t=$a.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ba.exec(e))?(255|Fa(ja(t[1]),za(t[2]),za(t[3])))>>>0:(t=wa.exec(e))?(Fa(ja(t[1]),za(t[2]),za(t[3]))|Ba(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const Pa=(e,t,r)=>{if(Uo.fun(e))return e;if(Uo.arr(e))return Pa({range:e,output:t,extrapolate:r});if(Uo.str(e.output[0]))return ea(e);const n=e,i=n.output,o=n.range||[0,1],a=n.extrapolateLeft||n.extrapolate||"extend",s=n.extrapolateRight||n.extrapolate||"extend",l=n.easing||(e=>e);return e=>{const t=function(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}(e,o);return function(e,t,r,n,i,o,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>r){if("identity"===s)return c;"clamp"===s&&(c=r)}if(n===i)return n;if(t===r)return e<=t?n:i;t===-1/0?c=-c:r===1/0?c-=t:c=(c-t)/(r-t);c=o(c),n===-1/0?c=-c:i===1/0?c+=n:c=c*(i-n)+n;return c}(e,o[t],o[t+1],i[t],i[t+1],l,a,s,n.map)}};function Ca(){return Ca=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ca.apply(this,arguments)}const Na=Symbol.for("FluidValue.get"),Da=Symbol.for("FluidValue.observers"),Ea=e=>Boolean(e&&e[Na]),Ia=e=>e&&e[Na]?e[Na]():e,Ha=e=>e[Da]||null;function Ma(e,t){let r=e[Da];r&&r.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class Va{constructor(e){if(this[Na]=void 0,this[Da]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Ra(this,e)}}const Ra=(e,t)=>Wa(e,Na,t);function Ta(e,t){if(e[Na]){let r=e[Da];r||Wa(e,Da,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function La(e,t){let r=e[Da];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[Da]=null,e.observerRemoved&&e.observerRemoved(n,t)}}const Wa=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),qa=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ua=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Qa=new RegExp(`(${qa.source})(%|[a-z]+)`,"i"),Ga=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Xa=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Za=e=>{const[t,r]=Ka(e);if(!t||Jo())return e;const n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(r&&r.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(r);return t||e}return r&&Xa.test(r)?Za(r):r||e},Ka=e=>{const t=Xa.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]};let Ya;const Ja=(e,t,r,n,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`,es=e=>{Ya||(Ya=ra?new RegExp(`(${Object.keys(ra).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Ia(e).replace(Xa,Za).replace(Ua,Aa).replace(Ya,Aa))),r=t.map((e=>e.match(qa).map(Number))),n=r[0].map(((e,t)=>r.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>Pa(Ca({},e,{output:t}))));return e=>{var r;const i=!Qa.test(t[0])&&(null==(r=t.find((e=>Qa.test(e))))?void 0:r.replace(qa,""));let o=0;return t[0].replace(qa,(()=>`${n[o++](e)}${i||""}`)).replace(Ga,Ja)}},ts="react-spring: ",rs=e=>{const t=e;let r=!1;if("function"!=typeof t)throw new TypeError(`${ts}once requires a function parameter`);return(...e)=>{r||(t(...e),r=!0)}},ns=rs(console.warn);const is=rs(console.warn);function os(e){return Uo.str(e)&&("#"==e[0]||/\d/.test(e)||!Jo()&&Xa.test(e)||e in(ra||{}))}const as="undefined"!=typeof window&&window.document&&window.document.createElement?n.useLayoutEffect:n.useEffect;function ss(){const e=a()[1],t=(()=>{const e=s(!1);return as((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}const ls=e=>o(e,cs),cs=[];function us(e){const t=s();return o((()=>{t.current=e})),t.current}const ds=Symbol.for("Animated:node"),hs=e=>e&&e[ds],ps=(e,t)=>{return r=e,n=ds,i=t,Object.defineProperty(r,n,{value:i,writable:!0,configurable:!0});var r,n,i},fs=e=>e&&e[ds]&&e[ds].getPayload();class gs{constructor(){this.payload=void 0,ps(this,this)}getPayload(){return this.payload||[]}}class ms extends gs{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,Uo.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new ms(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Uo.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Uo.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class ys extends ms{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Pa({output:[e,e]})}static create(e){return new ys(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Uo.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Pa({output:[this.getValue(),e]})),this._value=0,super.reset()}}const vs={dependencies:null};class bs extends gs{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Xo(this.source,((r,n)=>{var i;(i=r)&&i[ds]===i?t[n]=r.getValue(e):Ea(r)?t[n]=Ia(r):e||(t[n]=r)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Go(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Xo(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){vs.dependencies&&Ea(e)&&vs.dependencies.add(e);const t=fs(e);t&&Go(t,(e=>this.add(e)))}}class ws extends bs{constructor(e){super(e)}static create(e){return new ws(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,r)=>t.setValue(e[r]))).some(Boolean):(super.setValue(e.map(_s)),!0)}}function _s(e){return(os(e)?ys:ms).create(e)}function $s(e){const t=hs(e);return t?t.constructor:Uo.arr(e)?ws:os(e)?ys:ms}function xs(){return xs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xs.apply(this,arguments)}const Ss=(e,t)=>{const r=!Uo.fun(e)||e.prototype&&e.prototype.isReactComponent;return l(((i,a)=>{const l=s(null),u=r&&c((e=>{l.current=function(e,t){e&&(Uo.fun(e)?e(t):e.current=t);return t}(a,e)}),[a]),[d,h]=function(e,t){const r=new Set;vs.dependencies=r,e.style&&(e=xs({},e,{style:t.createAnimatedStyle(e.style)}));return e=new bs(e),vs.dependencies=null,[e,r]}(i,t),p=ss(),f=()=>{const e=l.current;if(r&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,d.getValue(!0)))&&p()},g=new ks(f,h),m=s();as((()=>(m.current=g,Go(h,(e=>Ta(e,g))),()=>{m.current&&(Go(m.current.deps,(e=>La(e,m.current))),jo.cancel(m.current.update))}))),o(f,[]),ls((()=>()=>{const e=m.current;Go(e.deps,(t=>La(t,e)))}));const y=t.getComponentProps(d.getValue());return n.createElement(e,xs({},y,{ref:u}))}))};class ks{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&jo.write(this.update)}}const Fs=Symbol.for("AnimatedComponent"),Os=e=>Uo.str(e)?e:e&&Uo.str(e.displayName)?e.displayName:Uo.fun(e)&&e.name||null;function js(){return js=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},js.apply(this,arguments)}function Bs(e,...t){return Uo.fun(e)?e(...t):e}const zs=(e,t)=>!0===e||!!(t&&e&&(Uo.fun(e)?e(t):Zo(e).includes(t))),As=(e,t)=>Uo.obj(e)?t&&e[t]:e,Ps=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Cs=e=>e,Ns=(e,t=Cs)=>{let r=Ds;e.default&&!0!==e.default&&(e=e.default,r=Object.keys(e));const n={};for(const i of r){const r=t(e[i],i);Uo.und(r)||(n[i]=r)}return n},Ds=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Es={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 Is(e){const t=function(e){const t={};let r=0;if(Xo(e,((e,n)=>{Es[n]||(t[n]=e,r++)})),r)return t}(e);if(t){const r={to:t};return Xo(e,((e,n)=>n in t||(r[n]=e))),r}return js({},e)}function Hs(e){return e=Ia(e),Uo.arr(e)?e.map(Hs):os(e)?oa.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Ms(e){for(const t in e)return!0;return!1}function Vs(e){return Uo.fun(e)||Uo.arr(e)&&Uo.obj(e[0])}function Rs(e,t){var r;null==(r=e.ref)||r.delete(e),null==t||t.delete(e)}function Ts(e,t){var r;t&&e.ref!==t&&(null==(r=e.ref)||r.delete(e),t.add(e),e.ref=t)}const Ls=1.70158,Ws=1.525*Ls,qs=2*Math.PI/3,Us=2*Math.PI/4.5,Qs=e=>{const t=7.5625,r=2.75;return e<1/r?t*e*e:e<2/r?t*(e-=1.5/r)*e+.75:e<2.5/r?t*(e-=2.25/r)*e+.9375:t*(e-=2.625/r)*e+.984375},Gs=js({},{tension:170,friction:26},{mass:1,damping:1,easing:{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=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?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=>2.70158*e*e*e-Ls*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+Ls*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Ws)/2:(Math.pow(2*e-2,2)*((Ws+1)*(2*e-2)+Ws)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*qs),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*qs)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Us)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Us)/2+1,easeInBounce:e=>1-Qs(1-e),easeOutBounce:Qs,easeInOutBounce:e=>e<.5?(1-Qs(1-2*e))/2:(1+Qs(2*e-1))/2}.linear,clamp:!1});class Xs{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,Gs)}}function Zs(e,t){if(Uo.und(t.decay)){const r=!Uo.und(t.tension)||!Uo.und(t.friction);!r&&Uo.und(t.frequency)&&Uo.und(t.damping)&&Uo.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}const Ks=[];class Ys{constructor(){this.changed=!1,this.values=Ks,this.toValues=null,this.fromValues=Ks,this.to=void 0,this.from=void 0,this.config=new Xs,this.immediate=!1}}function Js(e,{key:t,props:r,defaultProps:n,state:i,actions:o}){return new Promise(((a,s)=>{var l;let c,u,d=zs(null!=(l=r.cancel)?l:null==n?void 0:n.cancel,t);if(d)f();else{Uo.und(r.pause)||(i.paused=zs(r.pause,t));let e=null==n?void 0:n.pause;!0!==e&&(e=i.paused||zs(e,t)),c=Bs(r.delay||0,t),e?(i.resumeQueue.add(p),o.pause()):(o.resume(),p())}function h(){i.resumeQueue.add(p),i.timeouts.delete(u),u.cancel(),c=u.time-jo.now()}function p(){c>0&&!oa.skipAnimation?(i.delayed=!0,u=jo.setTimeout(f,c),i.pauseQueue.add(h),i.timeouts.add(u)):f()}function f(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(h),i.timeouts.delete(u),e<=(i.cancelId||0)&&(d=!0);try{o.start(js({},r,{callId:e,cancel:d}),a)}catch(e){s(e)}}}))}const el=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?nl(e.get()):t.every((e=>e.noop))?tl(e.get()):rl(e.get(),t.every((e=>e.finished))),tl=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),rl=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),nl=e=>({value:e,cancelled:!0,finished:!1});function il(e,t,r,n){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=r;return o||e!==s||t.reset?r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;const c=Ns(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const h=new Promise(((e,t)=>(u=e,d=t))),p=e=>{const t=i<=(r.cancelId||0)&&nl(n)||i!==r.asyncId&&rl(n,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const o=new al,a=new sl;return(async()=>{if(oa.skipAnimation)throw ol(r),a.result=rl(n,!1),d(a),a;p(o);const s=Uo.obj(e)?js({},e):js({},t,{to:e});s.parentId=i,Xo(c,((e,t)=>{Uo.und(s[t])&&(s[t]=e)}));const l=await n.start(s);return p(o),r.paused&&await new Promise((e=>{r.resumeQueue.add(e)})),l})()};let g;if(oa.skipAnimation)return ol(r),rl(n,!1);try{let t;t=Uo.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,n.stop.bind(n))),await Promise.all([t.then(u),h]),g=rl(n.get(),!0,!1)}catch(e){if(e instanceof al)g=e.result;else{if(!(e instanceof sl))throw e;g=e.result}}finally{i==r.asyncId&&(r.asyncId=o,r.asyncTo=o?s:void 0,r.promise=o?l:void 0)}return Uo.fun(a)&&jo.batchedUpdates((()=>{a(g,n,n.item)})),g})():l}function ol(e,t){Ko(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class al 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 sl extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const ll=e=>e instanceof ul;let cl=1;class ul extends Va{constructor(...e){super(...e),this.id=cl++,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=hs(this);return e&&e.getValue()}to(...e){return oa.to(this,e)}interpolate(...e){return ns(`${ts}The "interpolate" function is deprecated in v9 (use "to" instead)`),oa.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Ma(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ua.sort(this),Ma(this,{type:"priority",parent:this,priority:e})}}const dl=Symbol.for("SpringPhase"),hl=e=>(1&e[dl])>0,pl=e=>(2&e[dl])>0,fl=e=>(4&e[dl])>0,gl=(e,t)=>t?e[dl]|=3:e[dl]&=-3,ml=(e,t)=>t?e[dl]|=4:e[dl]&=-5;class yl extends ul{constructor(e,t){if(super(),this.key=void 0,this.animation=new Ys,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,!Uo.und(e)||!Uo.und(t)){const r=Uo.obj(e)?js({},e):js({},t,{from:e});Uo.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(pl(this)||this._state.asyncTo)||fl(this)}get goal(){return Ia(this.animation.to)}get velocity(){const e=hs(this);return e instanceof ms?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return hl(this)}get isAnimating(){return pl(this)}get isPaused(){return fl(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{config:i,toValues:o}=n;const a=fs(n.to);!a&&Ea(n.to)&&(o=Zo(Ia(n.to))),n.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==ys?1:a?a[l].lastPosition:o[l];let u=n.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const r=n.fromValues[l],o=null!=s.v0?s.v0:s.v0=Uo.arr(i.velocity)?i.velocity[l]:i.velocity;let a;if(Uo.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,n=Math.exp(-(1-e)*t);d=r+o/(1-e)*(1-n),u=Math.abs(s.lastPosition-d)<.1,a=o*n}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.precision||(r==c?.005:Math.min(1,.001*Math.abs(c-r))),n=i.restVelocity||t/10,l=i.clamp?0:i.bounce,h=!Uo.und(l),p=r==c?s.v0>0:r<c;let f,g=!1;const m=1,y=Math.ceil(e/m);for(let e=0;e<y&&(f=Math.abs(a)>n,f||(u=Math.abs(c-d)<=t,!u));++e){h&&(g=d==c||d>c==p,g&&(a=-a*l,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*m,d+=a*m}}else{let n=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),n=(i.progress||0)+t/this._memoizedDuration,n=n>1?1:n<0?0:n,s.durationProgress=n),d=r+i.easing(n)*(c-r),a=(d-s.lastPosition)/e,u=1==n}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,i.round)&&(r=!0)}));const s=hs(this),l=s.getValue();if(t){const e=Ia(n.to);l===e&&!r||i.decay?r&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else r&&this._onChange(l)}set(e){return jo.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(pl(this)){const{to:e,config:t}=this.animation;jo.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let r;return Uo.und(e)?(r=this.queue||[],this.queue=[]):r=[Uo.obj(e)?e:js({},t,{to:e})],Promise.all(r.map((e=>this._update(e)))).then((e=>el(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),ol(this._state,e&&this._lastCallId),jo.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:r,from:n}=e;r=Uo.obj(r)?r[t]:r,(null==r||Vs(r))&&(r=void 0),n=Uo.obj(n)?n[t]:n,null==n&&(n=void 0);const i={to:r,from:n};return hl(this)||(e.reverse&&([r,n]=[n,r]),n=Ia(n),Uo.und(n)?hs(this)||this._set(r):this._set(n)),i}_update(e,t){let r=js({},e);const{key:n,defaultProps:i}=this;r.default&&Object.assign(i,Ns(r,((e,t)=>/^on/.test(t)?As(e,n):e))),Sl(this,r,"onProps"),kl(this,"onProps",r,this);const o=this._prepareNode(r);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 a=this._state;return Js(++this._lastCallId,{key:n,props:r,defaultProps:i,state:a,actions:{pause:()=>{fl(this)||(ml(this,!0),Yo(a.pauseQueue),kl(this,"onPause",rl(this,vl(this,this.animation.to)),this))},resume:()=>{fl(this)&&(ml(this,!1),pl(this)&&this._resume(),Yo(a.resumeQueue),kl(this,"onResume",rl(this,vl(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((e=>{if(r.loop&&e.finished&&(!t||!e.noop)){const e=bl(r);if(e)return this._update(e,!0)}return e}))}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(nl(this));const n=!Uo.und(e.to),i=!Uo.und(e.from);if(n||i){if(!(t.callId>this._lastToId))return r(nl(this));this._lastToId=t.callId}const{key:o,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!i||n||t.default&&!Uo.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const h=!Qo(d,c);h&&(s.from=d),d=Ia(d);const p=!Qo(u,l);p&&this._focus(u);const f=Vs(t.to),{config:g}=s,{decay:m,velocity:y}=g;(n||i)&&(g.velocity=0),t.config&&!f&&function(e,t,r){r&&(Zs(r=js({},r),t),t=js({},r,t)),Zs(e,t),Object.assign(e,t);for(const t in Gs)null==e[t]&&(e[t]=Gs[t]);let{mass:n,frequency:i,damping:o}=e;Uo.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*n,e.friction=4*Math.PI*o*n/i)}(g,Bs(t.config,o),t.config!==a.config?Bs(a.config,o):void 0);let v=hs(this);if(!v||Uo.und(u))return r(rl(this,!0));const b=Uo.und(t.reset)?i&&!t.default:!Uo.und(d)&&zs(t.reset,o),w=b?d:this.get(),_=Hs(u),$=Uo.num(_)||Uo.arr(_)||os(_),x=!f&&(!$||zs(a.immediate||t.immediate,o));if(p){const e=$s(u);if(e!==v.constructor){if(!x)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(_)}}const S=v.constructor;let k=Ea(u),F=!1;if(!k){const e=b||!hl(this)&&h;(p||e)&&(F=Qo(Hs(w),_),k=!F),(Qo(s.immediate,x)||x)&&Qo(g.decay,m)&&Qo(g.velocity,y)||(k=!0)}if(F&&pl(this)&&(s.changed&&!b?k=!0:k||this._stop(l)),!f&&((k||Ea(l))&&(s.values=v.getPayload(),s.toValues=Ea(u)?null:S==ys?[1]:Zo(_)),s.immediate!=x&&(s.immediate=x,x||b||this._set(l)),k)){const{onRest:e}=s;Go(xl,(e=>Sl(this,t,e)));const n=rl(this,vl(this,l));Yo(this._pendingCalls,n),this._pendingCalls.add(r),s.changed&&jo.batchedUpdates((()=>{s.changed=!b,null==e||e(n,this),b?Bs(a.onRest,n):null==s.onStart||s.onStart(n,this)}))}b&&this._set(w),f?r(il(t.to,t,this._state,this)):k?this._start():pl(this)&&!p?this._pendingCalls.add(r):r(tl(w))}_focus(e){const t=this.animation;e!==t.to&&(Ha(this)&&this._detach(),t.to=e,Ha(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ea(t)&&(Ta(t,this),ll(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ea(e)&&La(e,this)}_set(e,t=!0){const r=Ia(e);if(!Uo.und(r)){const e=hs(this);if(!e||!Qo(r,e.getValue())){const n=$s(r);e&&e.constructor==n?e.setValue(r):ps(this,n.create(r)),e&&jo.batchedUpdates((()=>{this._onChange(r,t)}))}}return hs(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,kl(this,"onStart",rl(this,vl(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Bs(this.animation.onChange,e,this)),Bs(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;hs(this).reset(Ia(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),pl(this)||(gl(this,!0),fl(this)||this._resume())}_resume(){oa.skipAnimation?this.finish():ua.start(this)}_stop(e,t){if(pl(this)){gl(this,!1);const r=this.animation;Go(r.values,(e=>{e.done=!0})),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),Ma(this,{type:"idle",parent:this});const n=t?nl(this.get()):rl(this.get(),vl(this,null!=e?e:r.to));Yo(this._pendingCalls,n),r.changed&&(r.changed=!1,kl(this,"onRest",n,this))}}}function vl(e,t){const r=Hs(t);return Qo(Hs(e.get()),r)}function bl(e,t=e.loop,r=e.to){let n=Bs(t);if(n){const i=!0!==n&&Is(n),o=(i||e).reverse,a=!i||i.reset;return wl(js({},e,{loop:t,default:!1,pause:void 0,to:!o||Vs(r)?r:void 0,from:a?e.from:void 0,reset:a},i))}}function wl(e){const{to:t,from:r}=e=Is(e),n=new Set;return Uo.obj(t)&&$l(t,n),Uo.obj(r)&&$l(r,n),e.keys=n.size?Array.from(n):null,e}function _l(e){const t=wl(e);return Uo.und(t.default)&&(t.default=Ns(t)),t}function $l(e,t){Xo(e,((e,r)=>null!=e&&t.add(r)))}const xl=["onStart","onRest","onChange","onPause","onResume"];function Sl(e,t,r){e.animation[r]=t[r]!==Ps(t,r)?As(t[r],e.key):void 0}function kl(e,t,...r){var n,i,o,a;null==(n=(i=e.animation)[t])||n.call(i,...r),null==(o=(a=e.defaultProps)[t])||o.call(a,...r)}const Fl=["onStart","onChange","onRest"];let Ol=1;class jl{constructor(e,t){this.id=Ol++,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),t&&(this._flush=t),e&&this.start(js({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(((t,r)=>e[r]=t.get())),e}set(e){for(const t in e){const r=e[t];Uo.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(wl(e)),this}start(e){let{queue:t}=this;return e?t=Zo(e).map(wl):this.queue=[],this._flush?this._flush(this,t):(Dl(this,t),Bl(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;Go(Zo(t),(t=>r[t].stop(!!e)))}else ol(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Uo.und(e))this.start({pause:!0});else{const t=this.springs;Go(Zo(e),(e=>t[e].pause()))}return this}resume(e){if(Uo.und(e))this.start({pause:!1});else{const t=this.springs;Go(Zo(e),(e=>t[e].resume()))}return this}each(e){Xo(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,i=this._changed.size>0;(n&&!this._started||i&&!this._started)&&(this._started=!0,Ko(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!n&&this._started,a=i||o&&r.size?this.get():null;i&&t.size&&Ko(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),o&&(this._started=!1,Ko(r,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}jo.onFrame(this._onFrame)}}function Bl(e,t){return Promise.all(t.map((t=>zl(e,t)))).then((t=>el(e,t)))}async function zl(e,t,r){const{keys:n,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,c=Uo.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const u=Uo.arr(i)||Uo.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Go(Fl,(r=>{const n=t[r];if(Uo.fun(n)){const i=e._events[r];t[r]=({finished:e,cancelled:t})=>{const r=i.get(n);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):i.set(n,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[r]=t[r])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Yo(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(n||Object.keys(e.springs)).map((r=>e.springs[r].start(t))),p=!0===t.cancel||!0===Ps(t,"cancel");(u||p&&d.asyncId)&&h.push(Js(++e._lastAsyncId,{props:t,state:d,actions:{pause:qo,resume:qo,start(t,r){p?(ol(d,e._lastAsyncId),r(nl(e))):(t.onRest=s,r(il(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=el(e,await Promise.all(h));if(a&&f.finished&&(!r||!f.noop)){const r=bl(t,a,i);if(r)return Dl(e,[r]),zl(e,r,!0)}return l&&jo.batchedUpdates((()=>l(f,e,e.item))),f}function Al(e,t){const r=js({},e.springs);return t&&Go(Zo(t),(e=>{Uo.und(e.keys)&&(e=wl(e)),Uo.obj(e.to)||(e=js({},e,{to:void 0})),Nl(r,e,(e=>Cl(e)))})),Pl(e,r),r}function Pl(e,t){Xo(t,((t,r)=>{e.springs[r]||(e.springs[r]=t,Ta(t,e))}))}function Cl(e,t){const r=new yl;return r.key=e,t&&Ta(r,t),r}function Nl(e,t,r){t.keys&&Go(t.keys,(n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)}))}function Dl(e,t){Go(t,(t=>{Nl(e.springs,t,(t=>Cl(t,e)))}))}const El=["children"],Il=e=>{let{children:t}=e,r=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,El);const i=u(Hl),l=r.pause||!!i.pause,c=r.immediate||!!i.immediate;r=function(e,t){const[r]=a((()=>({inputs:t,result:e()}))),n=s(),i=n.current;let l=i;l?Boolean(t&&l.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,l.inputs))||(l={inputs:t,result:e()}):l=r;return o((()=>{n.current=l,i==r&&(r.inputs=r.result=void 0)}),[l]),l.result}((()=>({pause:l,immediate:c})),[l,c]);const{Provider:d}=Hl;return n.createElement(d,{value:r},t)},Hl=(Ml=Il,Vl={},Object.assign(Ml,n.createContext(Vl)),Ml.Provider._context=Ml,Ml.Consumer._context=Ml,Ml);var Ml,Vl;Il.Provider=Hl.Provider,Il.Consumer=Hl.Consumer;const Rl=()=>{const e=[],t=function(t){is(`${ts}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`);const n=[];return Go(e,((e,i)=>{if(Uo.und(t))n.push(e.start());else{const o=r(t,e,i);o&&n.push(e.start(o))}})),n};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){return Go(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Go(e,(e=>e.resume(...arguments))),this},t.set=function(t){Go(e,(e=>e.set(t)))},t.start=function(t){const r=[];return Go(e,((e,n)=>{if(Uo.und(t))r.push(e.start());else{const i=this._getProps(t,e,n);i&&r.push(e.start(i))}})),r},t.stop=function(){return Go(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Go(e,((e,r)=>e.update(this._getProps(t,e,r)))),this};const r=function(e,t,r){return Uo.fun(e)?e(r,t):e};return t._getProps=r,t};function Tl(e,t,r){const n=Uo.fun(t)&&t;n&&!r&&(r=[]);const i=d((()=>n||3==arguments.length?Rl():void 0),[]),o=s(0),a=ss(),l=d((()=>({ctrls:[],queue:[],flush(e,t){const r=Al(e,t);return o.current>0&&!l.queue.length&&!Object.keys(r).some((t=>!e.springs[t]))?Bl(e,t):new Promise((n=>{Pl(e,r),l.queue.push((()=>{n(Bl(e,t))})),a()}))}})),[]),c=s([...l.ctrls]),h=[],p=us(e)||0;function f(e,r){for(let i=e;i<r;i++){const e=c.current[i]||(c.current[i]=new jl(null,l.flush)),r=n?n(i,e):t[i];r&&(h[i]=_l(r))}}d((()=>{Go(c.current.slice(e,p),(e=>{Rs(e,i),e.stop(!0)})),c.current.length=e,f(p,e)}),[e]),d((()=>{f(0,Math.min(p,e))}),r);const g=c.current.map(((e,t)=>Al(e,h[t]))),m=u(Il),y=us(m),v=m!==y&&Ms(m);as((()=>{o.current++,l.ctrls=c.current;const{queue:e}=l;e.length&&(l.queue=[],Go(e,(e=>e()))),Go(c.current,((e,t)=>{null==i||i.add(e),v&&e.start({default:m});const r=h[t];r&&(Ts(e,r.ref),e.ref?e.queue.push(r):e.start(r))}))})),ls((()=>()=>{Go(l.ctrls,(e=>e.stop(!0)))}));const b=g.map((e=>js({},e)));return i?[b,i]:b}let Ll;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(Ll||(Ll={}));class Wl extends ul{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Pa(...t);const r=this._get(),n=$s(r);ps(this,n.create(r))}advance(e){const t=this._get();Qo(t,this.get())||(hs(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Ul(this._active)&&Ql(this)}_get(){const e=Uo.arr(this.source)?this.source.map(Ia):Zo(Ia(this.source));return this.calc(...e)}_start(){this.idle&&!Ul(this._active)&&(this.idle=!1,Go(fs(this),(e=>{e.done=!1})),oa.skipAnimation?(jo.batchedUpdates((()=>this.advance())),Ql(this)):ua.start(this))}_attach(){let e=1;Go(Zo(this.source),(t=>{Ea(t)&&Ta(t,this),ll(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Go(Zo(this.source),(e=>{Ea(e)&&La(e,this)})),this._active.clear(),Ql(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Zo(this.source).reduce(((e,t)=>Math.max(e,(ll(t)?t.priority:0)+1)),0))}}function ql(e){return!1!==e.idle}function Ul(e){return!e.size||Array.from(e).every(ql)}function Ql(e){e.idle||(e.idle=!0,Go(fs(e),(e=>{e.done=!0})),Ma(e,{type:"idle",parent:e}))}function Gl(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}oa.assign({createStringInterpolator:es,to:(e,t)=>new Wl(e,t)});const Xl=["style","children","scrollTop","scrollLeft"],Zl=/^--/;function Kl(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Zl.test(e)||Jl.hasOwnProperty(e)&&Jl[e]?(""+t).trim():t+"px"}const Yl={};let Jl={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 ec=["Webkit","Ms","Moz","O"];Jl=Object.keys(Jl).reduce(((e,t)=>(ec.forEach((r=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(r,t)]=e[t])),e)),Jl);const tc=["x","y","z"],rc=/^(matrix|translate|scale|rotate|skew)/,nc=/^(translate)/,ic=/^(rotate|skew)/,oc=(e,t)=>Uo.num(e)&&0!==e?e+t:e,ac=(e,t)=>Uo.arr(e)?e.every((e=>ac(e,t))):Uo.num(e)?e===t:parseFloat(e)===t;class sc extends bs{constructor(e){let{x:t,y:r,z:n}=e,i=Gl(e,tc);const o=[],a=[];(t||r||n)&&(o.push([t||0,r||0,n||0]),a.push((e=>[`translate3d(${e.map((e=>oc(e,"px"))).join(",")})`,ac(e,0)]))),Xo(i,((e,t)=>{if("transform"===t)o.push([e||""]),a.push((e=>[e,""===e]));else if(rc.test(t)){if(delete i[t],Uo.und(e))return;const r=nc.test(t)?"px":ic.test(t)?"deg":"";o.push(Zo(e)),a.push("rotate3d"===t?([e,t,n,i])=>[`rotate3d(${e},${t},${n},${oc(i,r)})`,ac(i,0)]:e=>[`${t}(${e.map((e=>oc(e,r))).join(",")})`,ac(e,t.startsWith("scale")?1:0)])}})),o.length&&(i.transform=new lc(o,a)),super(i)}}class lc extends Va{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Go(this.inputs,((r,n)=>{const i=Ia(r[0]),[o,a]=this.transforms[n](Uo.arr(i)?i:r.map(Ia));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Go(this.inputs,(e=>Go(e,(e=>Ea(e)&&Ta(e,this)))))}observerRemoved(e){0==e&&Go(this.inputs,(e=>Go(e,(e=>Ea(e)&&La(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Ma(this,e)}}const cc=["scrollTop","scrollLeft"];oa.assign({batchedUpdates:g,createStringInterpolator:es,colors:{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}});const uc=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:r=(e=>new bs(e)),getComponentProps:n=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},o=e=>{const t=Os(e)||"Anonymous";return(e=Uo.str(e)?o[e]||(o[e]=Ss(e,i)):e[Fs]||(e[Fs]=Ss(e,i))).displayName=`Animated(${t})`,e};return Xo(e,((t,r)=>{Uo.arr(e)&&(r=Os(t)),o[r]=o(t)})),{animated:o}})(["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"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,n=t,{style:i,children:o,scrollTop:a,scrollLeft:s}=n,l=Gl(n,Xl),c=Object.values(l),u=Object.keys(l).map((t=>r||e.hasAttribute(t)?t:Yl[t]||(Yl[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){const r=Kl(t,i[t]);Zl.test(t)?e.style.setProperty(t,r):e.style[t]=r}u.forEach(((t,r)=>{e.setAttribute(t,c[r])})),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s)},createAnimatedStyle:e=>new sc(e),getComponentProps:e=>Gl(e,cc)}),dc=uc.animated,hc={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},pc=e=>Object.keys(hc).reduce(((t,r)=>{const n=hc[r];return t[r]=`@media screen and (${e}: ${n}px)`,t}),{}),fc=pc("max-width"),gc=(pc("min-width"),h.div`
|
|
313
|
+
`:void 0}
|
|
314
|
+
`;var $r=function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1},xr=Ue;var Sr=Ue,Cr=Qe,kr=ct;var Fr=Ue,jr=function(){this.__data__=new xr,this.size=0},Or=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Br=function(e){return this.__data__.get(e)},Ar=function(e){return this.__data__.has(e)},Pr=function(e,t){var r=this.__data__;if(r instanceof Sr){var n=r.__data__;if(!Cr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new kr(n)}return r.set(e,t),this.size=r.size,this};function zr(e){var t=this.__data__=new Fr(e);this.size=t.size}zr.prototype.clear=jr,zr.prototype.delete=Or,zr.prototype.get=Br,zr.prototype.has=Ar,zr.prototype.set=Pr;var Ir=zr;var Nr=ct,Dr=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Er=function(e){return this.__data__.has(e)};function Hr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Nr;++t<r;)this.add(e[t])}Hr.prototype.add=Hr.prototype.push=Dr,Hr.prototype.has=Er;var Mr=Hr,Vr=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1},Lr=function(e,t){return e.has(t)};var Tr=function(e,t,r,n,i,o){var a=1&r,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=2&r?new Mr:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var f=e[d],g=t[d];if(n)var m=a?n(g,f,d,t,e,o):n(f,g,d,e,t,o);if(void 0!==m){if(m)continue;h=!1;break}if(p){if(!Vr(t,(function(e,t){if(!Lr(p,t)&&(f===e||i(f,e,r,n,o)))return p.push(t)}))){h=!1;break}}else if(f!==g&&!i(f,g,r,n,o)){h=!1;break}}return o.delete(e),o.delete(t),h};var Rr=x.Uint8Array,Wr=Pe,qr=Tr,Ur=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r},Qr=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Zr=S?S.prototype:void 0,Gr=Zr?Zr.valueOf:void 0;var Xr=function(e,t,r,n,i,o,a){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new Rr(e),new Rr(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Wr(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Ur;case"[object Set]":var l=1&n;if(s||(s=Qr),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;n|=2,a.set(e,t);var u=qr(s(e),s(t),n,i,o,a);return a.delete(e),u;case"[object Symbol]":if(Gr)return Gr.call(e)==Gr.call(t)}return!1};var Kr=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e},Yr=v;var Jr=function(e,t,r){var n=t(e);return Yr(e)?n:Kr(n,r(e))};var en=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o},tn=function(){return[]},rn=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols,on=nn?function(e){return null==e?[]:(e=Object(e),en(nn(e),(function(t){return rn.call(e,t)})))}:tn;var an=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},sn=N,ln=D;var cn=function(e){return ln(e)&&"[object Arguments]"==sn(e)},un=D,dn=Object.prototype,hn=dn.hasOwnProperty,pn=dn.propertyIsEnumerable,fn=cn(function(){return arguments}())?cn:function(e){return un(e)&&hn.call(e,"callee")&&!pn.call(e,"callee")},gn={exports:{}};var mn=function(){return!1};!function(e,t){var r=x,n=mn,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=(a?a.isBuffer:void 0)||n;e.exports=s}(gn,gn.exports);var yn=/^(?:0|[1-9]\d*)$/;var bn=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&yn.test(e))&&e>-1&&e%1==0&&e<t};var vn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},wn=N,_n=vn,$n=D,xn={};xn["[object Float32Array]"]=xn["[object Float64Array]"]=xn["[object Int8Array]"]=xn["[object Int16Array]"]=xn["[object Int32Array]"]=xn["[object Uint8Array]"]=xn["[object Uint8ClampedArray]"]=xn["[object Uint16Array]"]=xn["[object Uint32Array]"]=!0,xn["[object Arguments]"]=xn["[object Array]"]=xn["[object ArrayBuffer]"]=xn["[object Boolean]"]=xn["[object DataView]"]=xn["[object Date]"]=xn["[object Error]"]=xn["[object Function]"]=xn["[object Map]"]=xn["[object Number]"]=xn["[object Object]"]=xn["[object RegExp]"]=xn["[object Set]"]=xn["[object String]"]=xn["[object WeakMap]"]=!1;var Sn=function(e){return $n(e)&&_n(e.length)&&!!xn[wn(e)]};var Cn=function(e){return function(t){return e(t)}},kn={exports:{}};!function(e,t){var r=w,n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&r.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}(kn,kn.exports);var Fn=Sn,jn=Cn,On=kn.exports,Bn=On&&On.isTypedArray,An=Bn?jn(Bn):Fn,Pn=an,zn=fn,In=v,Nn=gn.exports,Dn=bn,En=An,Hn=Object.prototype.hasOwnProperty;var Mn=function(e,t){var r=In(e),n=!r&&zn(e),i=!r&&!n&&Nn(e),o=!r&&!n&&!i&&En(e),a=r||n||i||o,s=a?Pn(e.length,String):[],l=s.length;for(var c in e)!t&&!Hn.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Dn(c,l))||s.push(c);return s},Vn=Object.prototype;var Ln=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Vn)};var Tn=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),Rn=Ln,Wn=Tn,qn=Object.prototype.hasOwnProperty;var Un=G,Qn=vn;var Zn=Mn,Gn=function(e){if(!Rn(e))return Wn(e);var t=[];for(var r in Object(e))qn.call(e,r)&&"constructor"!=r&&t.push(r);return t},Xn=function(e){return null!=e&&Qn(e.length)&&!Un(e)};var Kn=function(e){return Xn(e)?Zn(e):Gn(e)},Yn=Jr,Jn=on,ei=Kn;var ti=function(e){return Yn(e,ei,Jn)},ri=Object.prototype.hasOwnProperty;var ni=function(e,t,r,n,i,o){var a=1&r,s=ti(e),l=s.length;if(l!=ti(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:ri.call(t,u)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var p=!0;o.set(e,t),o.set(t,e);for(var f=a;++c<l;){var g=e[u=s[c]],m=t[u];if(n)var y=a?n(m,g,u,t,e,o):n(g,m,u,e,t,o);if(!(void 0===y?g===m||i(g,m,r,n,o):y)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var b=e.constructor,v=t.constructor;b==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(p=!1)}return o.delete(e),o.delete(t),p},ii=pe(x,"DataView"),oi=Qe,ai=pe(x,"Promise"),si=pe(x,"Set"),li=pe(x,"WeakMap"),ci=N,ui=ee,di=ui(ii),hi=ui(oi),pi=ui(ai),fi=ui(si),gi=ui(li),mi=ci;(ii&&"[object DataView]"!=mi(new ii(new ArrayBuffer(1)))||oi&&"[object Map]"!=mi(new oi)||ai&&"[object Promise]"!=mi(ai.resolve())||si&&"[object Set]"!=mi(new si)||li&&"[object WeakMap]"!=mi(new li))&&(mi=function(e){var t=ci(e),r="[object Object]"==t?e.constructor:void 0,n=r?ui(r):"";if(n)switch(n){case di:return"[object DataView]";case hi:return"[object Map]";case pi:return"[object Promise]";case fi:return"[object Set]";case gi:return"[object WeakMap]"}return t});var yi=Ir,bi=Tr,vi=Xr,wi=ni,_i=mi,$i=v,xi=gn.exports,Si=An,Ci="[object Object]",ki=Object.prototype.hasOwnProperty;var Fi=function(e,t,r,n,i,o){var a=$i(e),s=$i(t),l=a?"[object Array]":_i(e),c=s?"[object Array]":_i(t),u=(l="[object Arguments]"==l?Ci:l)==Ci,d=(c="[object Arguments]"==c?Ci:c)==Ci,h=l==c;if(h&&xi(e)){if(!xi(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new yi),a||Si(e)?bi(e,t,r,n,i,o):vi(e,t,l,r,n,i,o);if(!(1&r)){var p=u&&ki.call(e,"__wrapped__"),f=d&&ki.call(t,"__wrapped__");if(p||f){var g=p?e.value():e,m=f?t.value():t;return o||(o=new yi),i(g,m,r,n,o)}}return!!h&&(o||(o=new yi),wi(e,t,r,n,i,o))},ji=D;var Oi=function e(t,r,n,i,o){return t===r||(null==t||null==r||!ji(t)&&!ji(r)?t!=t&&r!=r:Fi(t,r,n,i,e,o))},Bi=Ir,Ai=Oi;var Pi=q;var zi=function(e){return e==e&&!Pi(e)},Ii=zi,Ni=Kn;var Di=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},Ei=function(e,t,r,n){var i=r.length,o=i,a=!n;if(null==e)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=r[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new Bi;if(n)var h=n(c,u,l,e,t,d);if(!(void 0===h?Ai(u,c,3,n,d):h))return!1}}return!0},Hi=function(e){for(var t=Ni(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Ii(i)]}return t},Mi=Di;var Vi=Ft,Li=fn,Ti=v,Ri=bn,Wi=vn,qi=Ot;var Ui=function(e,t){return null!=e&&t in Object(e)},Qi=function(e,t,r){for(var n=-1,i=(t=Vi(t,e)).length,o=!1;++n<i;){var a=qi(t[n]);if(!(o=null!=e&&r(e,a)))break;e=e[a]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&Wi(i)&&Ri(a,i)&&(Ti(e)||Li(e))};var Zi=Oi,Gi=It,Xi=function(e,t){return null!=e&&Qi(e,t,Ui)},Ki=W,Yi=zi,Ji=Di,eo=Ot;var to=Pt;var ro=function(e){return function(t){return null==t?void 0:t[e]}},no=function(e){return function(t){return to(t,e)}},io=W,oo=Ot;var ao=function(e){var t=Hi(e);return 1==t.length&&t[0][2]?Mi(t[0][0],t[0][1]):function(r){return r===e||Ei(r,e,t)}},so=function(e,t){return Ki(e)&&Yi(t)?Ji(eo(e),t):function(r){var n=Gi(r,e);return void 0===n&&n===t?Xi(r,e):Zi(t,n,3)}},lo=function(e){return e},co=v,uo=function(e){return io(e)?ro(oo(e)):no(e)};var ho=/\s/;var po=function(e){for(var t=e.length;t--&&ho.test(e.charAt(t)););return t},fo=/^\s+/;var go=function(e){return e?e.slice(0,po(e)+1).replace(fo,""):e},mo=q,yo=M,bo=/^[-+]0x[0-9a-f]+$/i,vo=/^0b[01]+$/i,wo=/^0o[0-7]+$/i,_o=parseInt;var $o=function(e){if("number"==typeof e)return e;if(yo(e))return NaN;if(mo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=mo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=go(e);var r=vo.test(e);return r||wo.test(e)?_o(e.slice(2),r?2:8):bo.test(e)?NaN:+e};var xo=function(e){return e?Infinity===(e=$o(e))||-Infinity===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var So=$r,Co=function(e){return"function"==typeof e?e:null==e?lo:"object"==typeof e?co(e)?so(e[0],e[1]):ao(e):uo(e)},ko=function(e){var t=xo(e),r=t%1;return t==t?r?t-r:t:0},Fo=Math.max;var jo=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:ko(r);return i<0&&(i=Fo(n+i,0)),So(e,Co(t),i)};let Oo=qo();const Bo=e=>Lo(e,Oo);let Ao=qo();Bo.write=e=>Lo(e,Ao);let Po=qo();Bo.onStart=e=>Lo(e,Po);let zo=qo();Bo.onFrame=e=>Lo(e,zo);let Io=qo();Bo.onFinish=e=>Lo(e,Io);let No=[];Bo.setTimeout=(e,t)=>{let r=Bo.now()+t,n=()=>{let e=No.findIndex((e=>e.cancel==n));~e&&No.splice(e,1),Mo-=~e?1:0},i={time:r,handler:e,cancel:n};return No.splice(Do(r),0,i),Mo+=1,To(),i};let Do=e=>~(~No.findIndex((t=>t.time>e))||~No.length);Bo.cancel=e=>{Po.delete(e),zo.delete(e),Io.delete(e),Oo.delete(e),Ao.delete(e)},Bo.sync=e=>{Vo=!0,Bo.batchedUpdates(e),Vo=!1},Bo.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...e){t=e,Bo.onStart(r)}return n.handler=e,n.cancel=()=>{Po.delete(r),t=null},n};let Eo="undefined"!=typeof window?window.requestAnimationFrame:()=>{};Bo.use=e=>Eo=e,Bo.now="undefined"!=typeof performance?()=>performance.now():Date.now,Bo.batchedUpdates=e=>e(),Bo.catch=console.error,Bo.frameLoop="always",Bo.advance=()=>{"demand"!==Bo.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Wo()};let Ho=-1,Mo=0,Vo=!1;function Lo(e,t){Vo?(t.delete(e),e(0)):(t.add(e),To())}function To(){Ho<0&&(Ho=0,"demand"!==Bo.frameLoop&&Eo(Ro))}function Ro(){~Ho&&(Eo(Ro),Bo.batchedUpdates(Wo))}function Wo(){let e=Ho;Ho=Bo.now();let t=Do(Ho);t&&(Uo(No.splice(0,t),(e=>e.handler())),Mo-=t),Mo?(Po.flush(),Oo.flush(e?Math.min(64,Ho-e):16.667),zo.flush(),Ao.flush(),Io.flush()):Ho=-1}function qo(){let e=new Set,t=e;return{add(r){Mo+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(Mo-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,Mo-=t.size,Uo(t,(t=>t(r)&&e.add(t))),Mo+=e.size,t=e)}}}function Uo(e,t){e.forEach((e=>{try{t(e)}catch(e){Bo.catch(e)}}))}function Qo(){}const Zo={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function Go(e,t){if(Zo.arr(e)){if(!Zo.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}const Xo=(e,t)=>e.forEach(t);function Ko(e,t,r){if(Zo.arr(e))for(let n=0;n<e.length;n++)t.call(r,e[n],`${n}`);else for(const n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n)}const Yo=e=>Zo.und(e)?[]:Zo.arr(e)?e:[e];function Jo(e,t){if(e.size){const r=Array.from(e);e.clear(),Xo(r,t)}}const ea=(e,...t)=>Jo(e,(e=>e(...t))),ta=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let ra,na,ia=null,oa=!1,aa=Qo;var sa=Object.freeze({__proto__:null,get createStringInterpolator(){return ra},get to(){return na},get colors(){return ia},get skipAnimation(){return oa},get willAdvance(){return aa},assign:e=>{e.to&&(na=e.to),e.now&&(Bo.now=e.now),void 0!==e.colors&&(ia=e.colors),null!=e.skipAnimation&&(oa=e.skipAnimation),e.createStringInterpolator&&(ra=e.createStringInterpolator),e.requestAnimationFrame&&Bo.use(e.requestAnimationFrame),e.batchedUpdates&&(Bo.batchedUpdates=e.batchedUpdates),e.willAdvance&&(aa=e.willAdvance),e.frameLoop&&(Bo.frameLoop=e.frameLoop)}});const la=new Set;let ca=[],ua=[],da=0;const ha={get idle(){return!la.size&&!ca.length},start(e){da>e.priority?(la.add(e),Bo.onStart(pa)):(fa(e),Bo(ma))},advance:ma,sort(e){if(da)Bo.onFrame((()=>ha.sort(e)));else{const t=ca.indexOf(e);~t&&(ca.splice(t,1),ga(e))}},clear(){ca=[],la.clear()}};function pa(){la.forEach(fa),la.clear(),Bo(ma)}function fa(e){ca.includes(e)||ga(e)}function ga(e){ca.splice(function(e,t){const r=e.findIndex(t);return r<0?e.length:r}(ca,(t=>t.priority>e.priority)),0,e)}function ma(e){const t=ua;for(let r=0;r<ca.length;r++){const n=ca[r];da=n.priority,n.idle||(aa(n),n.advance(e),n.idle||t.push(n))}return da=0,ua=ca,ua.length=0,ca=t,ca.length>0}const ya="[-+]?\\d*\\.?\\d+";function ba(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const va=new RegExp("rgb"+ba(ya,ya,ya)),wa=new RegExp("rgba"+ba(ya,ya,ya,ya)),_a=new RegExp("hsl"+ba(ya,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),$a=new RegExp("hsla"+ba(ya,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",ya)),xa=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Sa=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ca=/^#([0-9a-fA-F]{6})$/,ka=/^#([0-9a-fA-F]{8})$/;function Fa(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function ja(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,i=2*r-n,o=Fa(i,n,e+1/3),a=Fa(i,n,e),s=Fa(i,n,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function Oa(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Ba(e){return(parseFloat(e)%360+360)%360/360}function Aa(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Pa(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function za(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ca.exec(e))?parseInt(t[1]+"ff",16)>>>0:ia&&void 0!==ia[e]?ia[e]:(t=va.exec(e))?(Oa(t[1])<<24|Oa(t[2])<<16|Oa(t[3])<<8|255)>>>0:(t=wa.exec(e))?(Oa(t[1])<<24|Oa(t[2])<<16|Oa(t[3])<<8|Aa(t[4]))>>>0:(t=xa.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ka.exec(e))?parseInt(t[1],16)>>>0:(t=Sa.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=_a.exec(e))?(255|ja(Ba(t[1]),Pa(t[2]),Pa(t[3])))>>>0:(t=$a.exec(e))?(ja(Ba(t[1]),Pa(t[2]),Pa(t[3]))|Aa(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const Ia=(e,t,r)=>{if(Zo.fun(e))return e;if(Zo.arr(e))return Ia({range:e,output:t,extrapolate:r});if(Zo.str(e.output[0]))return ra(e);const n=e,i=n.output,o=n.range||[0,1],a=n.extrapolateLeft||n.extrapolate||"extend",s=n.extrapolateRight||n.extrapolate||"extend",l=n.easing||(e=>e);return e=>{const t=function(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}(e,o);return function(e,t,r,n,i,o,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>r){if("identity"===s)return c;"clamp"===s&&(c=r)}if(n===i)return n;if(t===r)return e<=t?n:i;t===-1/0?c=-c:r===1/0?c-=t:c=(c-t)/(r-t);c=o(c),n===-1/0?c=-c:i===1/0?c+=n:c=c*(i-n)+n;return c}(e,o[t],o[t+1],i[t],i[t+1],l,a,s,n.map)}};function Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Na.apply(this,arguments)}const Da=Symbol.for("FluidValue.get"),Ea=Symbol.for("FluidValue.observers"),Ha=e=>Boolean(e&&e[Da]),Ma=e=>e&&e[Da]?e[Da]():e,Va=e=>e[Ea]||null;function La(e,t){let r=e[Ea];r&&r.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class Ta{constructor(e){if(this[Da]=void 0,this[Ea]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Ra(this,e)}}const Ra=(e,t)=>Ua(e,Da,t);function Wa(e,t){if(e[Da]){let r=e[Ea];r||Ua(e,Ea,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function qa(e,t){let r=e[Ea];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[Ea]=null,e.observerRemoved&&e.observerRemoved(n,t)}}const Ua=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),Qa=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Za=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ga=new RegExp(`(${Qa.source})(%|[a-z]+)`,"i"),Xa=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ka=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ya=e=>{const[t,r]=Ja(e);if(!t||ta())return e;const n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(r&&r.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(r);return t||e}return r&&Ka.test(r)?Ya(r):r||e},Ja=e=>{const t=Ka.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]};let es;const ts=(e,t,r,n,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`,rs=e=>{es||(es=ia?new RegExp(`(${Object.keys(ia).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Ma(e).replace(Ka,Ya).replace(Za,za).replace(es,za))),r=t.map((e=>e.match(Qa).map(Number))),n=r[0].map(((e,t)=>r.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>Ia(Na({},e,{output:t}))));return e=>{var r;const i=!Ga.test(t[0])&&(null==(r=t.find((e=>Ga.test(e))))?void 0:r.replace(Qa,""));let o=0;return t[0].replace(Qa,(()=>`${n[o++](e)}${i||""}`)).replace(Xa,ts)}},ns="react-spring: ",is=e=>{const t=e;let r=!1;if("function"!=typeof t)throw new TypeError(`${ns}once requires a function parameter`);return(...e)=>{r||(t(...e),r=!0)}},os=is(console.warn);const as=is(console.warn);function ss(e){return Zo.str(e)&&("#"==e[0]||/\d/.test(e)||!ta()&&Ka.test(e)||e in(ia||{}))}const ls=ta()?a:s;function cs(){const e=l()[1],t=(()=>{const e=c(!1);return ls((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}const us=e=>a(e,ds),ds=[];function hs(e){const t=c();return a((()=>{t.current=e})),t.current}const ps=Symbol.for("Animated:node"),fs=e=>e&&e[ps],gs=(e,t)=>{return r=e,n=ps,i=t,Object.defineProperty(r,n,{value:i,writable:!0,configurable:!0});var r,n,i},ms=e=>e&&e[ps]&&e[ps].getPayload();class ys{constructor(){this.payload=void 0,gs(this,this)}getPayload(){return this.payload||[]}}class bs extends ys{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,Zo.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new bs(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Zo.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Zo.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class vs extends bs{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Ia({output:[e,e]})}static create(e){return new vs(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Zo.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Ia({output:[this.getValue(),e]})),this._value=0,super.reset()}}const ws={dependencies:null};class _s extends ys{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Ko(this.source,((r,n)=>{var i;(i=r)&&i[ps]===i?t[n]=r.getValue(e):Ha(r)?t[n]=Ma(r):e||(t[n]=r)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Xo(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Ko(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ws.dependencies&&Ha(e)&&ws.dependencies.add(e);const t=ms(e);t&&Xo(t,(e=>this.add(e)))}}class $s extends _s{constructor(e){super(e)}static create(e){return new $s(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,r)=>t.setValue(e[r]))).some(Boolean):(super.setValue(e.map(xs)),!0)}}function xs(e){return(ss(e)?vs:bs).create(e)}function Ss(e){const t=fs(e);return t?t.constructor:Zo.arr(e)?$s:ss(e)?vs:bs}function Cs(){return Cs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cs.apply(this,arguments)}const ks=(e,t)=>{const r=!Zo.fun(e)||e.prototype&&e.prototype.isReactComponent;return u(((n,o)=>{const s=c(null),l=r&&d((e=>{s.current=function(e,t){e&&(Zo.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[u,h]=function(e,t){const r=new Set;ws.dependencies=r,e.style&&(e=Cs({},e,{style:t.createAnimatedStyle(e.style)}));return e=new _s(e),ws.dependencies=null,[e,r]}(n,t),p=cs(),f=()=>{const e=s.current;if(r&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))&&p()},g=new Fs(f,h),m=c();ls((()=>(m.current=g,Xo(h,(e=>Wa(e,g))),()=>{m.current&&(Xo(m.current.deps,(e=>qa(e,m.current))),Bo.cancel(m.current.update))}))),a(f,[]),us((()=>()=>{const e=m.current;Xo(e.deps,(t=>qa(t,e)))}));const y=t.getComponentProps(u.getValue());return i.createElement(e,Cs({},y,{ref:l}))}))};class Fs{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&Bo.write(this.update)}}const js=Symbol.for("AnimatedComponent"),Os=e=>Zo.str(e)?e:e&&Zo.str(e.displayName)?e.displayName:Zo.fun(e)&&e.name||null;function Bs(){return Bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bs.apply(this,arguments)}function As(e,...t){return Zo.fun(e)?e(...t):e}const Ps=(e,t)=>!0===e||!!(t&&e&&(Zo.fun(e)?e(t):Yo(e).includes(t))),zs=(e,t)=>Zo.obj(e)?t&&e[t]:e,Is=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Ns=e=>e,Ds=(e,t=Ns)=>{let r=Es;e.default&&!0!==e.default&&(e=e.default,r=Object.keys(e));const n={};for(const i of r){const r=t(e[i],i);Zo.und(r)||(n[i]=r)}return n},Es=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Hs={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 Ms(e){const t=function(e){const t={};let r=0;if(Ko(e,((e,n)=>{Hs[n]||(t[n]=e,r++)})),r)return t}(e);if(t){const r={to:t};return Ko(e,((e,n)=>n in t||(r[n]=e))),r}return Bs({},e)}function Vs(e){return e=Ma(e),Zo.arr(e)?e.map(Vs):ss(e)?sa.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Ls(e){for(const t in e)return!0;return!1}function Ts(e){return Zo.fun(e)||Zo.arr(e)&&Zo.obj(e[0])}function Rs(e,t){var r;null==(r=e.ref)||r.delete(e),null==t||t.delete(e)}function Ws(e,t){var r;t&&e.ref!==t&&(null==(r=e.ref)||r.delete(e),t.add(e),e.ref=t)}const qs=1.70158,Us=1.525*qs,Qs=2*Math.PI/3,Zs=2*Math.PI/4.5,Gs=e=>{const t=7.5625,r=2.75;return e<1/r?t*e*e:e<2/r?t*(e-=1.5/r)*e+.75:e<2.5/r?t*(e-=2.25/r)*e+.9375:t*(e-=2.625/r)*e+.984375},Xs=Bs({},{tension:170,friction:26},{mass:1,damping:1,easing:{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=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?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=>2.70158*e*e*e-qs*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+qs*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Us)/2:(Math.pow(2*e-2,2)*((Us+1)*(2*e-2)+Us)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Qs),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Qs)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Zs)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Zs)/2+1,easeInBounce:e=>1-Gs(1-e),easeOutBounce:Gs,easeInOutBounce:e=>e<.5?(1-Gs(1-2*e))/2:(1+Gs(2*e-1))/2}.linear,clamp:!1});class Ks{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,Xs)}}function Ys(e,t){if(Zo.und(t.decay)){const r=!Zo.und(t.tension)||!Zo.und(t.friction);!r&&Zo.und(t.frequency)&&Zo.und(t.damping)&&Zo.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}const Js=[];class el{constructor(){this.changed=!1,this.values=Js,this.toValues=null,this.fromValues=Js,this.to=void 0,this.from=void 0,this.config=new Ks,this.immediate=!1}}function tl(e,{key:t,props:r,defaultProps:n,state:i,actions:o}){return new Promise(((a,s)=>{var l;let c,u,d=Ps(null!=(l=r.cancel)?l:null==n?void 0:n.cancel,t);if(d)f();else{Zo.und(r.pause)||(i.paused=Ps(r.pause,t));let e=null==n?void 0:n.pause;!0!==e&&(e=i.paused||Ps(e,t)),c=As(r.delay||0,t),e?(i.resumeQueue.add(p),o.pause()):(o.resume(),p())}function h(){i.resumeQueue.add(p),i.timeouts.delete(u),u.cancel(),c=u.time-Bo.now()}function p(){c>0&&!sa.skipAnimation?(i.delayed=!0,u=Bo.setTimeout(f,c),i.pauseQueue.add(h),i.timeouts.add(u)):f()}function f(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(h),i.timeouts.delete(u),e<=(i.cancelId||0)&&(d=!0);try{o.start(Bs({},r,{callId:e,cancel:d}),a)}catch(e){s(e)}}}))}const rl=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?ol(e.get()):t.every((e=>e.noop))?nl(e.get()):il(e.get(),t.every((e=>e.finished))),nl=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),il=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),ol=e=>({value:e,cancelled:!0,finished:!1});function al(e,t,r,n){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=r;return o||e!==s||t.reset?r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;const c=Ds(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const h=new Promise(((e,t)=>(u=e,d=t))),p=e=>{const t=i<=(r.cancelId||0)&&ol(n)||i!==r.asyncId&&il(n,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const o=new ll,a=new cl;return(async()=>{if(sa.skipAnimation)throw sl(r),a.result=il(n,!1),d(a),a;p(o);const s=Zo.obj(e)?Bs({},e):Bs({},t,{to:e});s.parentId=i,Ko(c,((e,t)=>{Zo.und(s[t])&&(s[t]=e)}));const l=await n.start(s);return p(o),r.paused&&await new Promise((e=>{r.resumeQueue.add(e)})),l})()};let g;if(sa.skipAnimation)return sl(r),il(n,!1);try{let t;t=Zo.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,n.stop.bind(n))),await Promise.all([t.then(u),h]),g=il(n.get(),!0,!1)}catch(e){if(e instanceof ll)g=e.result;else{if(!(e instanceof cl))throw e;g=e.result}}finally{i==r.asyncId&&(r.asyncId=o,r.asyncTo=o?s:void 0,r.promise=o?l:void 0)}return Zo.fun(a)&&Bo.batchedUpdates((()=>{a(g,n,n.item)})),g})():l}function sl(e,t){Jo(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class ll 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 cl extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const ul=e=>e instanceof hl;let dl=1;class hl extends Ta{constructor(...e){super(...e),this.id=dl++,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=fs(this);return e&&e.getValue()}to(...e){return sa.to(this,e)}interpolate(...e){return os(`${ns}The "interpolate" function is deprecated in v9 (use "to" instead)`),sa.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){La(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ha.sort(this),La(this,{type:"priority",parent:this,priority:e})}}const pl=Symbol.for("SpringPhase"),fl=e=>(1&e[pl])>0,gl=e=>(2&e[pl])>0,ml=e=>(4&e[pl])>0,yl=(e,t)=>t?e[pl]|=3:e[pl]&=-3,bl=(e,t)=>t?e[pl]|=4:e[pl]&=-5;class vl extends hl{constructor(e,t){if(super(),this.key=void 0,this.animation=new el,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,!Zo.und(e)||!Zo.und(t)){const r=Zo.obj(e)?Bs({},e):Bs({},t,{from:e});Zo.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(gl(this)||this._state.asyncTo)||ml(this)}get goal(){return Ma(this.animation.to)}get velocity(){const e=fs(this);return e instanceof bs?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return fl(this)}get isAnimating(){return gl(this)}get isPaused(){return ml(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{config:i,toValues:o}=n;const a=ms(n.to);!a&&Ha(n.to)&&(o=Yo(Ma(n.to))),n.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==vs?1:a?a[l].lastPosition:o[l];let u=n.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const r=n.fromValues[l],o=null!=s.v0?s.v0:s.v0=Zo.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const h=i.precision||(r==c?.005:Math.min(1,.001*Math.abs(c-r)));if(Zo.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,n=Math.exp(-(1-e)*t);d=r+o/(1-e)*(1-n),u=Math.abs(s.lastPosition-d)<=h,a=o*n}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||h/10,n=i.clamp?0:i.bounce,l=!Zo.und(n),p=r==c?s.v0>0:r<c;let f,g=!1;const m=1,y=Math.ceil(e/m);for(let e=0;e<y&&(f=Math.abs(a)>t,f||(u=Math.abs(c-d)<=h,!u));++e){l&&(g=d==c||d>c==p,g&&(a=-a*n,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*m,d+=a*m}}else{let n=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),n=(i.progress||0)+t/this._memoizedDuration,n=n>1?1:n<0?0:n,s.durationProgress=n),d=r+i.easing(n)*(c-r),a=(d-s.lastPosition)/e,u=1==n}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,i.round)&&(r=!0)}));const s=fs(this),l=s.getValue();if(t){const e=Ma(n.to);l===e&&!r||i.decay?r&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else r&&this._onChange(l)}set(e){return Bo.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(gl(this)){const{to:e,config:t}=this.animation;Bo.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let r;return Zo.und(e)?(r=this.queue||[],this.queue=[]):r=[Zo.obj(e)?e:Bs({},t,{to:e})],Promise.all(r.map((e=>this._update(e)))).then((e=>rl(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),sl(this._state,e&&this._lastCallId),Bo.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:r,from:n}=e;r=Zo.obj(r)?r[t]:r,(null==r||Ts(r))&&(r=void 0),n=Zo.obj(n)?n[t]:n,null==n&&(n=void 0);const i={to:r,from:n};return fl(this)||(e.reverse&&([r,n]=[n,r]),n=Ma(n),Zo.und(n)?fs(this)||this._set(r):this._set(n)),i}_update(e,t){let r=Bs({},e);const{key:n,defaultProps:i}=this;r.default&&Object.assign(i,Ds(r,((e,t)=>/^on/.test(t)?zs(e,n):e))),kl(this,r,"onProps"),Fl(this,"onProps",r,this);const o=this._prepareNode(r);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 a=this._state;return tl(++this._lastCallId,{key:n,props:r,defaultProps:i,state:a,actions:{pause:()=>{ml(this)||(bl(this,!0),ea(a.pauseQueue),Fl(this,"onPause",il(this,wl(this,this.animation.to)),this))},resume:()=>{ml(this)&&(bl(this,!1),gl(this)&&this._resume(),ea(a.resumeQueue),Fl(this,"onResume",il(this,wl(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((e=>{if(r.loop&&e.finished&&(!t||!e.noop)){const e=_l(r);if(e)return this._update(e,!0)}return e}))}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(ol(this));const n=!Zo.und(e.to),i=!Zo.und(e.from);if(n||i){if(!(t.callId>this._lastToId))return r(ol(this));this._lastToId=t.callId}const{key:o,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!i||n||t.default&&!Zo.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const h=!Go(d,c);h&&(s.from=d),d=Ma(d);const p=!Go(u,l);p&&this._focus(u);const f=Ts(t.to),{config:g}=s,{decay:m,velocity:y}=g;(n||i)&&(g.velocity=0),t.config&&!f&&function(e,t,r){r&&(Ys(r=Bs({},r),t),t=Bs({},r,t)),Ys(e,t),Object.assign(e,t);for(const t in Xs)null==e[t]&&(e[t]=Xs[t]);let{mass:n,frequency:i,damping:o}=e;Zo.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*n,e.friction=4*Math.PI*o*n/i)}(g,As(t.config,o),t.config!==a.config?As(a.config,o):void 0);let b=fs(this);if(!b||Zo.und(u))return r(il(this,!0));const v=Zo.und(t.reset)?i&&!t.default:!Zo.und(d)&&Ps(t.reset,o),w=v?d:this.get(),_=Vs(u),$=Zo.num(_)||Zo.arr(_)||ss(_),x=!f&&(!$||Ps(a.immediate||t.immediate,o));if(p){const e=Ss(u);if(e!==b.constructor){if(!x)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(_)}}const S=b.constructor;let C=Ha(u),k=!1;if(!C){const e=v||!fl(this)&&h;(p||e)&&(k=Go(Vs(w),_),C=!k),(Go(s.immediate,x)||x)&&Go(g.decay,m)&&Go(g.velocity,y)||(C=!0)}if(k&&gl(this)&&(s.changed&&!v?C=!0:C||this._stop(l)),!f&&((C||Ha(l))&&(s.values=b.getPayload(),s.toValues=Ha(u)?null:S==vs?[1]:Yo(_)),s.immediate!=x&&(s.immediate=x,x||v||this._set(l)),C)){const{onRest:e}=s;Xo(Cl,(e=>kl(this,t,e)));const n=il(this,wl(this,l));ea(this._pendingCalls,n),this._pendingCalls.add(r),s.changed&&Bo.batchedUpdates((()=>{s.changed=!v,null==e||e(n,this),v?As(a.onRest,n):null==s.onStart||s.onStart(n,this)}))}v&&this._set(w),f?r(al(t.to,t,this._state,this)):C?this._start():gl(this)&&!p?this._pendingCalls.add(r):r(nl(w))}_focus(e){const t=this.animation;e!==t.to&&(Va(this)&&this._detach(),t.to=e,Va(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ha(t)&&(Wa(t,this),ul(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ha(e)&&qa(e,this)}_set(e,t=!0){const r=Ma(e);if(!Zo.und(r)){const e=fs(this);if(!e||!Go(r,e.getValue())){const n=Ss(r);e&&e.constructor==n?e.setValue(r):gs(this,n.create(r)),e&&Bo.batchedUpdates((()=>{this._onChange(r,t)}))}}return fs(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Fl(this,"onStart",il(this,wl(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),As(this.animation.onChange,e,this)),As(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;fs(this).reset(Ma(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),gl(this)||(yl(this,!0),ml(this)||this._resume())}_resume(){sa.skipAnimation?this.finish():ha.start(this)}_stop(e,t){if(gl(this)){yl(this,!1);const r=this.animation;Xo(r.values,(e=>{e.done=!0})),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),La(this,{type:"idle",parent:this});const n=t?ol(this.get()):il(this.get(),wl(this,null!=e?e:r.to));ea(this._pendingCalls,n),r.changed&&(r.changed=!1,Fl(this,"onRest",n,this))}}}function wl(e,t){const r=Vs(t);return Go(Vs(e.get()),r)}function _l(e,t=e.loop,r=e.to){let n=As(t);if(n){const i=!0!==n&&Ms(n),o=(i||e).reverse,a=!i||i.reset;return $l(Bs({},e,{loop:t,default:!1,pause:void 0,to:!o||Ts(r)?r:void 0,from:a?e.from:void 0,reset:a},i))}}function $l(e){const{to:t,from:r}=e=Ms(e),n=new Set;return Zo.obj(t)&&Sl(t,n),Zo.obj(r)&&Sl(r,n),e.keys=n.size?Array.from(n):null,e}function xl(e){const t=$l(e);return Zo.und(t.default)&&(t.default=Ds(t)),t}function Sl(e,t){Ko(e,((e,r)=>null!=e&&t.add(r)))}const Cl=["onStart","onRest","onChange","onPause","onResume"];function kl(e,t,r){e.animation[r]=t[r]!==Is(t,r)?zs(t[r],e.key):void 0}function Fl(e,t,...r){var n,i,o,a;null==(n=(i=e.animation)[t])||n.call(i,...r),null==(o=(a=e.defaultProps)[t])||o.call(a,...r)}const jl=["onStart","onChange","onRest"];let Ol=1;class Bl{constructor(e,t){this.id=Ol++,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),t&&(this._flush=t),e&&this.start(Bs({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(((t,r)=>e[r]=t.get())),e}set(e){for(const t in e){const r=e[t];Zo.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push($l(e)),this}start(e){let{queue:t}=this;return e?t=Yo(e).map($l):this.queue=[],this._flush?this._flush(this,t):(El(this,t),Al(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;Xo(Yo(t),(t=>r[t].stop(!!e)))}else sl(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Zo.und(e))this.start({pause:!0});else{const t=this.springs;Xo(Yo(e),(e=>t[e].pause()))}return this}resume(e){if(Zo.und(e))this.start({pause:!1});else{const t=this.springs;Xo(Yo(e),(e=>t[e].resume()))}return this}each(e){Ko(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,i=this._changed.size>0;(n&&!this._started||i&&!this._started)&&(this._started=!0,Jo(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!n&&this._started,a=i||o&&r.size?this.get():null;i&&t.size&&Jo(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),o&&(this._started=!1,Jo(r,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}Bo.onFrame(this._onFrame)}}function Al(e,t){return Promise.all(t.map((t=>Pl(e,t)))).then((t=>rl(e,t)))}async function Pl(e,t,r){const{keys:n,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,c=Zo.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const u=Zo.arr(i)||Zo.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Xo(jl,(r=>{const n=t[r];if(Zo.fun(n)){const i=e._events[r];t[r]=({finished:e,cancelled:t})=>{const r=i.get(n);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):i.set(n,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[r]=t[r])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,ea(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(n||Object.keys(e.springs)).map((r=>e.springs[r].start(t))),p=!0===t.cancel||!0===Is(t,"cancel");(u||p&&d.asyncId)&&h.push(tl(++e._lastAsyncId,{props:t,state:d,actions:{pause:Qo,resume:Qo,start(t,r){p?(sl(d,e._lastAsyncId),r(ol(e))):(t.onRest=s,r(al(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=rl(e,await Promise.all(h));if(a&&f.finished&&(!r||!f.noop)){const r=_l(t,a,i);if(r)return El(e,[r]),Pl(e,r,!0)}return l&&Bo.batchedUpdates((()=>l(f,e,e.item))),f}function zl(e,t){const r=Bs({},e.springs);return t&&Xo(Yo(t),(e=>{Zo.und(e.keys)&&(e=$l(e)),Zo.obj(e.to)||(e=Bs({},e,{to:void 0})),Dl(r,e,(e=>Nl(e)))})),Il(e,r),r}function Il(e,t){Ko(t,((t,r)=>{e.springs[r]||(e.springs[r]=t,Wa(t,e))}))}function Nl(e,t){const r=new vl;return r.key=e,t&&Wa(r,t),r}function Dl(e,t,r){t.keys&&Xo(t.keys,(n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)}))}function El(e,t){Xo(t,(t=>{Dl(e.springs,t,(t=>Nl(t,e)))}))}const Hl=["children"],Ml=e=>{let{children:t}=e,r=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,Hl);const n=h(Vl),o=r.pause||!!n.pause,s=r.immediate||!!n.immediate;r=function(e,t){const[r]=l((()=>({inputs:t,result:e()}))),n=c(),i=n.current;let o=i;o?Boolean(t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,o.inputs))||(o={inputs:t,result:e()}):o=r;return a((()=>{n.current=o,i==r&&(r.inputs=r.result=void 0)}),[o]),o.result}((()=>({pause:o,immediate:s})),[o,s]);const{Provider:u}=Vl;return i.createElement(u,{value:r},t)},Vl=(Ll=Ml,Tl={},Object.assign(Ll,i.createContext(Tl)),Ll.Provider._context=Ll,Ll.Consumer._context=Ll,Ll);var Ll,Tl;Ml.Provider=Vl.Provider,Ml.Consumer=Vl.Consumer;const Rl=()=>{const e=[],t=function(t){as(`${ns}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`);const n=[];return Xo(e,((e,i)=>{if(Zo.und(t))n.push(e.start());else{const o=r(t,e,i);o&&n.push(e.start(o))}})),n};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){return Xo(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Xo(e,(e=>e.resume(...arguments))),this},t.set=function(t){Xo(e,(e=>e.set(t)))},t.start=function(t){const r=[];return Xo(e,((e,n)=>{if(Zo.und(t))r.push(e.start());else{const i=this._getProps(t,e,n);i&&r.push(e.start(i))}})),r},t.stop=function(){return Xo(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Xo(e,((e,r)=>e.update(this._getProps(t,e,r)))),this};const r=function(e,t,r){return Zo.fun(e)?e(r,t):e};return t._getProps=r,t};function Wl(e,t,r){const n=Zo.fun(t)&&t;n&&!r&&(r=[]);const i=p((()=>n||3==arguments.length?Rl():void 0),[]),o=c(0),a=cs(),s=p((()=>({ctrls:[],queue:[],flush(e,t){const r=zl(e,t);return o.current>0&&!s.queue.length&&!Object.keys(r).some((t=>!e.springs[t]))?Al(e,t):new Promise((n=>{Il(e,r),s.queue.push((()=>{n(Al(e,t))})),a()}))}})),[]),l=c([...s.ctrls]),u=[],d=hs(e)||0;function f(e,r){for(let i=e;i<r;i++){const e=l.current[i]||(l.current[i]=new Bl(null,s.flush)),r=n?n(i,e):t[i];r&&(u[i]=xl(r))}}p((()=>{Xo(l.current.slice(e,d),(e=>{Rs(e,i),e.stop(!0)})),l.current.length=e,f(d,e)}),[e]),p((()=>{f(0,Math.min(d,e))}),r);const g=l.current.map(((e,t)=>zl(e,u[t]))),m=h(Ml),y=hs(m),b=m!==y&&Ls(m);ls((()=>{o.current++,s.ctrls=l.current;const{queue:e}=s;e.length&&(s.queue=[],Xo(e,(e=>e()))),Xo(l.current,((e,t)=>{null==i||i.add(e),b&&e.start({default:m});const r=u[t];r&&(Ws(e,r.ref),e.ref?e.queue.push(r):e.start(r))}))})),us((()=>()=>{Xo(s.ctrls,(e=>e.stop(!0)))}));const v=g.map((e=>Bs({},e)));return i?[v,i]:v}let ql;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(ql||(ql={}));class Ul extends hl{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Ia(...t);const r=this._get(),n=Ss(r);gs(this,n.create(r))}advance(e){const t=this._get();Go(t,this.get())||(fs(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Zl(this._active)&&Gl(this)}_get(){const e=Zo.arr(this.source)?this.source.map(Ma):Yo(Ma(this.source));return this.calc(...e)}_start(){this.idle&&!Zl(this._active)&&(this.idle=!1,Xo(ms(this),(e=>{e.done=!1})),sa.skipAnimation?(Bo.batchedUpdates((()=>this.advance())),Gl(this)):ha.start(this))}_attach(){let e=1;Xo(Yo(this.source),(t=>{Ha(t)&&Wa(t,this),ul(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Xo(Yo(this.source),(e=>{Ha(e)&&qa(e,this)})),this._active.clear(),Gl(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Yo(this.source).reduce(((e,t)=>Math.max(e,(ul(t)?t.priority:0)+1)),0))}}function Ql(e){return!1!==e.idle}function Zl(e){return!e.size||Array.from(e).every(Ql)}function Gl(e){e.idle||(e.idle=!0,Xo(ms(e),(e=>{e.done=!0})),La(e,{type:"idle",parent:e}))}function Xl(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}sa.assign({createStringInterpolator:rs,to:(e,t)=>new Ul(e,t)});const Kl=["style","children","scrollTop","scrollLeft"],Yl=/^--/;function Jl(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Yl.test(e)||tc.hasOwnProperty(e)&&tc[e]?(""+t).trim():t+"px"}const ec={};let tc={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 rc=["Webkit","Ms","Moz","O"];tc=Object.keys(tc).reduce(((e,t)=>(rc.forEach((r=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(r,t)]=e[t])),e)),tc);const nc=["x","y","z"],ic=/^(matrix|translate|scale|rotate|skew)/,oc=/^(translate)/,ac=/^(rotate|skew)/,sc=(e,t)=>Zo.num(e)&&0!==e?e+t:e,lc=(e,t)=>Zo.arr(e)?e.every((e=>lc(e,t))):Zo.num(e)?e===t:parseFloat(e)===t;class cc extends _s{constructor(e){let{x:t,y:r,z:n}=e,i=Xl(e,nc);const o=[],a=[];(t||r||n)&&(o.push([t||0,r||0,n||0]),a.push((e=>[`translate3d(${e.map((e=>sc(e,"px"))).join(",")})`,lc(e,0)]))),Ko(i,((e,t)=>{if("transform"===t)o.push([e||""]),a.push((e=>[e,""===e]));else if(ic.test(t)){if(delete i[t],Zo.und(e))return;const r=oc.test(t)?"px":ac.test(t)?"deg":"";o.push(Yo(e)),a.push("rotate3d"===t?([e,t,n,i])=>[`rotate3d(${e},${t},${n},${sc(i,r)})`,lc(i,0)]:e=>[`${t}(${e.map((e=>sc(e,r))).join(",")})`,lc(e,t.startsWith("scale")?1:0)])}})),o.length&&(i.transform=new uc(o,a)),super(i)}}class uc extends Ta{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Xo(this.inputs,((r,n)=>{const i=Ma(r[0]),[o,a]=this.transforms[n](Zo.arr(i)?i:r.map(Ma));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Xo(this.inputs,(e=>Xo(e,(e=>Ha(e)&&Wa(e,this)))))}observerRemoved(e){0==e&&Xo(this.inputs,(e=>Xo(e,(e=>Ha(e)&&qa(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),La(this,e)}}const dc=["scrollTop","scrollLeft"];sa.assign({batchedUpdates:y,createStringInterpolator:rs,colors:{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}});const hc=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:r=(e=>new _s(e)),getComponentProps:n=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},o=e=>{const t=Os(e)||"Anonymous";return(e=Zo.str(e)?o[e]||(o[e]=ks(e,i)):e[js]||(e[js]=ks(e,i))).displayName=`Animated(${t})`,e};return Ko(e,((t,r)=>{Zo.arr(e)&&(r=Os(t)),o[r]=o(t)})),{animated:o}})(["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"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,n=t,{style:i,children:o,scrollTop:a,scrollLeft:s}=n,l=Xl(n,Kl),c=Object.values(l),u=Object.keys(l).map((t=>r||e.hasAttribute(t)?t:ec[t]||(ec[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){const r=Jl(t,i[t]);Yl.test(t)?e.style.setProperty(t,r):e.style[t]=r}u.forEach(((t,r)=>{e.setAttribute(t,c[r])})),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s)},createAnimatedStyle:e=>new cc(e),getComponentProps:e=>Xl(e,dc)}),pc=hc.animated,fc={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},gc=e=>Object.keys(fc).reduce(((t,r)=>{const n=fc[r];return t[r]=`@media screen and (${e}: ${n}px)`,t}),{}),mc=gc("max-width"),yc=(gc("min-width"),f.div`
|
|
272
315
|
display: inline-block;
|
|
273
316
|
position: relative;
|
|
274
317
|
width: ${e=>e.$size}px;
|
|
275
318
|
height: ${e=>e.$size}px;
|
|
276
|
-
`),
|
|
319
|
+
`),bc=m`
|
|
277
320
|
0% {
|
|
278
321
|
transform: rotate(0deg);
|
|
279
322
|
}
|
|
280
323
|
100% {
|
|
281
324
|
transform: rotate(360deg);
|
|
282
325
|
}
|
|
283
|
-
`,
|
|
326
|
+
`,vc=f.div`
|
|
284
327
|
box-sizing: border-box;
|
|
285
328
|
display: block;
|
|
286
329
|
position: absolute;
|
|
@@ -290,16 +333,16 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import*as n from
|
|
|
290
333
|
border-width: ${e=>e.$borderWidth}px;
|
|
291
334
|
border-style: solid;
|
|
292
335
|
border-radius: 50%;
|
|
293
|
-
border-color: ${e=>e.$color||
|
|
336
|
+
border-color: ${e=>e.$color||Vt.Neutral[8](e)}
|
|
294
337
|
transparent transparent transparent;
|
|
295
|
-
animation: ${
|
|
296
|
-
`,
|
|
338
|
+
animation: ${bc} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
|
339
|
+
`,wc=f(vc)`
|
|
297
340
|
animation-delay: -0.45s;
|
|
298
|
-
`,
|
|
341
|
+
`,_c=f(vc)`
|
|
299
342
|
animation-delay: -0.3s;
|
|
300
|
-
|
|
343
|
+
`,$c=f(vc)`
|
|
301
344
|
animation-delay: -0.15s;
|
|
302
|
-
`;
|
|
345
|
+
`;f.button`
|
|
303
346
|
padding: 0.5rem 1rem;
|
|
304
347
|
min-width: 4rem;
|
|
305
348
|
border-radius: 4px;
|
|
@@ -318,22 +361,22 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import*as n from
|
|
|
318
361
|
// -----------------------------------------------------------------------------
|
|
319
362
|
// BUTTON STYLE + TEXT COLOR
|
|
320
363
|
// -----------------------------------------------------------------------------
|
|
321
|
-
${e=>{switch(e.$buttonStyle){case"secondary":return
|
|
322
|
-
background-color: ${
|
|
323
|
-
border: 1px solid ${
|
|
364
|
+
${e=>{switch(e.$buttonStyle){case"secondary":return g`
|
|
365
|
+
background-color: ${Vt.Neutral[8](e)};
|
|
366
|
+
border: 1px solid ${Vt.Primary(e)};
|
|
324
367
|
|
|
325
368
|
span {
|
|
326
|
-
color: ${
|
|
369
|
+
color: ${Vt.Primary(e)};
|
|
327
370
|
}
|
|
328
|
-
`;case"light":return
|
|
329
|
-
background-color: ${
|
|
330
|
-
border: 1px solid ${
|
|
371
|
+
`;case"light":return g`
|
|
372
|
+
background-color: ${Vt.Neutral[8](e)};
|
|
373
|
+
border: 1px solid ${Vt.Neutral[5](e)};
|
|
331
374
|
|
|
332
375
|
span {
|
|
333
|
-
color: ${
|
|
376
|
+
color: ${Vt.Primary(e)};
|
|
334
377
|
}
|
|
335
|
-
`;case"disabled":return
|
|
336
|
-
background-color: ${
|
|
378
|
+
`;case"disabled":return g`
|
|
379
|
+
background-color: ${Vt.Neutral[6](e)};
|
|
337
380
|
border: 1px solid transparent;
|
|
338
381
|
cursor: not-allowed;
|
|
339
382
|
|
|
@@ -342,9 +385,9 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import*as n from
|
|
|
342
385
|
}
|
|
343
386
|
|
|
344
387
|
span {
|
|
345
|
-
color: ${
|
|
388
|
+
color: ${Vt.Neutral[3](e)};
|
|
346
389
|
}
|
|
347
|
-
`;case"link":return
|
|
390
|
+
`;case"link":return g`
|
|
348
391
|
background-color: transparent;
|
|
349
392
|
border: none;
|
|
350
393
|
border-radius: unset;
|
|
@@ -353,52 +396,52 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import*as n from
|
|
|
353
396
|
box-shadow: none;
|
|
354
397
|
}
|
|
355
398
|
|
|
356
|
-
color: ${
|
|
399
|
+
color: ${Vt.Primary};
|
|
357
400
|
:hover,
|
|
358
401
|
:active,
|
|
359
402
|
:focus {
|
|
360
403
|
span {
|
|
361
|
-
color: ${
|
|
404
|
+
color: ${Vt.Secondary};
|
|
362
405
|
}
|
|
363
406
|
}
|
|
364
|
-
`;default:return
|
|
365
|
-
background-color: ${
|
|
407
|
+
`;default:return g`
|
|
408
|
+
background-color: ${Vt.Primary(e)};
|
|
366
409
|
border: 1px solid transparent;
|
|
367
410
|
|
|
368
|
-
${
|
|
411
|
+
${mc.mobileL} {
|
|
369
412
|
width: 100%;
|
|
370
413
|
}
|
|
371
414
|
|
|
372
415
|
span {
|
|
373
|
-
color: ${
|
|
416
|
+
color: ${Vt.Neutral[8](e)};
|
|
374
417
|
}
|
|
375
418
|
`}}}
|
|
376
419
|
|
|
377
420
|
// -----------------------------------------------------------------------------
|
|
378
421
|
// BUTTON SIZE + TEXT SIZE
|
|
379
422
|
// -----------------------------------------------------------------------------
|
|
380
|
-
${e=>"small"===e.$buttonSizeStyle?
|
|
423
|
+
${e=>"small"===e.$buttonSizeStyle?g`
|
|
381
424
|
height: 2.5rem;
|
|
382
425
|
span {
|
|
383
|
-
${
|
|
426
|
+
${nr("H5","semibold")}
|
|
384
427
|
}
|
|
385
428
|
|
|
386
|
-
${
|
|
429
|
+
${mc.mobileS} {
|
|
387
430
|
height: auto;
|
|
388
431
|
}
|
|
389
|
-
`:
|
|
432
|
+
`:g`
|
|
390
433
|
height: 3rem;
|
|
391
434
|
span {
|
|
392
|
-
${
|
|
435
|
+
${nr("H4","semibold")}
|
|
393
436
|
}
|
|
394
437
|
|
|
395
|
-
${
|
|
438
|
+
${mc.mobileS} {
|
|
396
439
|
height: auto;
|
|
397
440
|
}
|
|
398
441
|
`}
|
|
399
|
-
`;const
|
|
442
|
+
`;const xc=f((({color:e,className:n,size:i=18})=>t(yc,{className:n,$size:i,$color:e,children:[r(vc,{id:"inner1",$size:i-2,$borderWidth:2}),r(wc,{id:"inner2",$size:i-2,$borderWidth:2}),r(_c,{id:"inner3",$size:i-2,$borderWidth:2}),r($c,{id:"inner4",$size:i-2,$borderWidth:2})]})))`
|
|
400
443
|
margin-right: 0.5rem;
|
|
401
|
-
${e=>{let t;switch(e.$buttonStyle){case"secondary":case"light":case"link":t=
|
|
444
|
+
${e=>{let t;switch(e.$buttonStyle){case"secondary":case"light":case"link":t=Vt.Primary(e);break;case"disabled":t=Vt.Neutral[3](e);break;default:t=Vt.Neutral[8](e)}return g`
|
|
402
445
|
#inner1,
|
|
403
446
|
#inner2,
|
|
404
447
|
#inner3,
|
|
@@ -406,12 +449,12 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import*as n from
|
|
|
406
449
|
border-color: ${t} transparent transparent transparent;
|
|
407
450
|
}
|
|
408
451
|
`}}
|
|
409
|
-
|
|
452
|
+
`;var Sc,Cc={};Object.defineProperty(Cc,"__esModule",{value:!0});var kc=e;const Fc=e=>kc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:kc.jsx("path",{d:"M9.99999 10.792C10.236 10.792 10.441 10.705 10.615 10.531C10.7883 10.3577 10.875 10.153 10.875 9.91701V6.70801C10.875 6.47201 10.7883 6.27067 10.615 6.10401C10.441 5.93734 10.236 5.85401 9.99999 5.85401C9.76399 5.85401 9.55899 5.94101 9.38499 6.11501C9.21166 6.28834 9.12499 6.49301 9.12499 6.72901V9.93801C9.12499 10.174 9.21166 10.3753 9.38499 10.542C9.55899 10.7087 9.76399 10.792 9.99999 10.792ZM9.99999 14.188C10.236 14.188 10.441 14.108 10.615 13.948C10.7883 13.788 10.875 13.576 10.875 13.312C10.875 13.076 10.7883 12.8713 10.615 12.698C10.441 12.5247 10.236 12.438 9.99999 12.438C9.76399 12.438 9.55899 12.5247 9.38499 12.698C9.21166 12.8713 9.12499 13.076 9.12499 13.312C9.12499 13.576 9.21166 13.788 9.38499 13.948C9.55899 14.108 9.76399 14.188 9.99999 14.188ZM9.99999 18.333C8.84733 18.333 7.76399 18.1143 6.74999 17.677C5.73599 17.2397 4.85399 16.646 4.10399 15.896C3.35399 15.146 2.76033 14.264 2.32299 13.25C1.88566 12.236 1.66699 11.1527 1.66699 10C1.66699 8.84734 1.88566 7.76401 2.32299 6.75001C2.76033 5.73601 3.35399 4.85401 4.10399 4.10401C4.85399 3.35401 5.73599 2.76034 6.74999 2.32301C7.76399 1.88567 8.84733 1.66701 9.99999 1.66701C11.1527 1.66701 12.236 1.88567 13.25 2.32301C14.264 2.76034 15.146 3.35401 15.896 4.10401C16.646 4.85401 17.2397 5.73601 17.677 6.75001C18.1143 7.76401 18.333 8.84734 18.333 10C18.333 11.1527 18.1143 12.236 17.677 13.25C17.2397 14.264 16.646 15.146 15.896 15.896C15.146 16.646 14.264 17.2397 13.25 17.677C12.236 18.1143 11.1527 18.333 9.99999 18.333Z",fill:"currentColor"})});Fc.displayName="ExclamationCircleFillIcon",Sc=Cc.ExclamationCircleFillIcon=Fc;var jc,Oc={};Object.defineProperty(Oc,"__esModule",{value:!0});var Bc=e;const Ac=e=>Bc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Bc.jsx("path",{d:"M7.97897 14.646C7.86764 14.646 7.75997 14.625 7.65597 14.583C7.55197 14.5417 7.4513 14.4723 7.35397 14.375L3.83297 10.854C3.6663 10.6873 3.58664 10.4757 3.59397 10.219C3.60064 9.96167 3.6873 9.74967 3.85397 9.583C4.02064 9.41634 4.22897 9.333 4.47897 9.333C4.72897 9.333 4.9373 9.41634 5.10397 9.583L8.02097 12.5L14.917 5.604C15.0836 5.43734 15.2883 5.354 15.531 5.354C15.7743 5.354 15.9793 5.43734 16.146 5.604C16.3126 5.77067 16.396 5.97567 16.396 6.219C16.396 6.46167 16.3126 6.66634 16.146 6.833L8.60397 14.375C8.50664 14.4723 8.40597 14.5417 8.30197 14.583C8.19797 14.625 8.0903 14.646 7.97897 14.646Z",fill:"currentColor"})});Ac.displayName="TickIcon",jc=Oc.TickIcon=Ac;const Pc=f.div`
|
|
410
453
|
display: flex;
|
|
411
454
|
justify-content: center;
|
|
412
455
|
align-items: center;
|
|
413
456
|
|
|
414
|
-
${e=>{let t,r;if("small"===e.$displaySize)t="1.5rem",r="1.5rem";else t="2rem",r="2rem";return
|
|
457
|
+
${e=>{let t,r;if("small"===e.$displaySize)t="1.5rem",r="1.5rem";else t="2rem",r="2rem";return g`
|
|
415
458
|
height: ${t};
|
|
416
459
|
width: ${r};
|
|
417
460
|
`}}
|
|
@@ -419,26 +462,26 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import*as n from
|
|
|
419
462
|
position: relative;
|
|
420
463
|
border-radius: 4px;
|
|
421
464
|
transition: all 200ms ease-in-out;
|
|
422
|
-
border: 1px solid ${
|
|
465
|
+
border: 1px solid ${Vt.Accent.Light[2]};
|
|
423
466
|
background: transparent;
|
|
424
467
|
|
|
425
|
-
${e=>{let t,r;return e.selected&&(t=
|
|
426
|
-
`,
|
|
468
|
+
${e=>{let t,r;return e.selected&&(t=Vt.Primary(e),r=Vt.Primary(e)),e.disabled&&(t=Vt.Neutral[6](e),r=Vt.Neutral[6](e)),`\n\t\t\tborder: 1px solid ${t};\n\t\t\tbackground: ${r};\n\t\t`}}
|
|
469
|
+
`,zc=f.input`
|
|
427
470
|
position: absolute;
|
|
428
471
|
opacity: 0;
|
|
429
472
|
height: 100%;
|
|
430
473
|
width: 100%;
|
|
431
474
|
cursor: ${e=>e.disabled?"not-allowed":"pointer"};
|
|
432
|
-
`,
|
|
433
|
-
${e=>{let t;if("small"===e.$displaySize)t="1.
|
|
434
|
-
|
|
475
|
+
`,Ic=f(jc)`
|
|
476
|
+
${e=>{let t;if("small"===e.$displaySize)t="1.5rem";else t="1.75rem";return g`
|
|
477
|
+
height: ${t};
|
|
478
|
+
width: ${t};
|
|
435
479
|
`}}
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
`,kc=h(dc.div)`
|
|
480
|
+
color: ${e=>e.disabled?Vt.Neutral[4]:Vt.Neutral[8]};
|
|
481
|
+
`,Nc=f(pc.div)`
|
|
439
482
|
overflow: hidden;
|
|
440
483
|
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.2);
|
|
441
|
-
`,
|
|
484
|
+
`,Dc=f.ul`
|
|
442
485
|
border-bottom-left-radius: 4px;
|
|
443
486
|
border-bottom-right-radius: 4px;
|
|
444
487
|
background: transparent;
|
|
@@ -456,31 +499,31 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import*as n from
|
|
|
456
499
|
}
|
|
457
500
|
|
|
458
501
|
::-webkit-scrollbar-thumb {
|
|
459
|
-
background: ${
|
|
460
|
-
border-right: 5px solid ${
|
|
502
|
+
background: ${Vt.Neutral[4]};
|
|
503
|
+
border-right: 5px solid ${Vt.Neutral[8]};
|
|
461
504
|
border-top-right-radius: 4px;
|
|
462
505
|
border-bottom-right-radius: 4px;
|
|
463
506
|
}
|
|
464
507
|
|
|
465
|
-
${
|
|
508
|
+
${mc.mobileL} {
|
|
466
509
|
max-height: 15rem;
|
|
467
510
|
}
|
|
468
|
-
`,
|
|
511
|
+
`,Ec=f.li`
|
|
469
512
|
:hover,
|
|
470
513
|
:focus,
|
|
471
514
|
:active {
|
|
472
|
-
background: ${
|
|
515
|
+
background: ${Vt.Accent.Light[5]};
|
|
473
516
|
}
|
|
474
|
-
${e=>{if(e.checked)return
|
|
475
|
-
background: ${
|
|
517
|
+
${e=>{if(e.checked)return g`
|
|
518
|
+
background: ${Vt.Accent.Light[5]};
|
|
476
519
|
`}}
|
|
477
|
-
`,
|
|
520
|
+
`,Hc=f.button`
|
|
478
521
|
display: flex;
|
|
479
|
-
${e=>e.multiSelect?
|
|
522
|
+
${e=>e.multiSelect?g`
|
|
480
523
|
padding: 0.5rem 1rem;
|
|
481
|
-
`:
|
|
524
|
+
`:g`
|
|
482
525
|
padding: 0 1rem;
|
|
483
|
-
height: 3.5rem;
|
|
526
|
+
min-height: 3.5rem;
|
|
484
527
|
align-items: center;
|
|
485
528
|
`}
|
|
486
529
|
margin: 0 -0.5rem;
|
|
@@ -493,48 +536,52 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import*as n from
|
|
|
493
536
|
:visited,
|
|
494
537
|
:focus,
|
|
495
538
|
:active {
|
|
496
|
-
outline-color: ${
|
|
539
|
+
outline-color: ${Vt.Accent.Light[3]};
|
|
497
540
|
}
|
|
498
541
|
|
|
499
542
|
span {
|
|
500
543
|
margin-bottom: 0;
|
|
501
544
|
}
|
|
502
|
-
`;
|
|
545
|
+
`;f.div`
|
|
503
546
|
position: relative;
|
|
504
547
|
border-radius: 4px;
|
|
505
548
|
display: flex;
|
|
506
549
|
justify-content: center;
|
|
507
550
|
align-items: center;
|
|
508
|
-
background: ${
|
|
509
|
-
`;const
|
|
510
|
-
${
|
|
511
|
-
color: ${
|
|
551
|
+
background: ${Vt.Neutral[8]};
|
|
552
|
+
`;const Mc=f.div`
|
|
553
|
+
${nr("Body","regular")}
|
|
554
|
+
color: ${Vt.Neutral[1]};
|
|
512
555
|
text-align: left;
|
|
513
556
|
line-height: 1.375rem;
|
|
514
557
|
overflow: hidden;
|
|
515
|
-
${e=>{if("middle"!==e.truncateType)return
|
|
558
|
+
${e=>{if("middle"!==e.truncateType)return g`
|
|
516
559
|
display: -webkit-box;
|
|
517
560
|
text-overflow: ellipsis;
|
|
518
561
|
-webkit-line-clamp: 2;
|
|
519
562
|
-webkit-box-orient: vertical;
|
|
520
563
|
`}}
|
|
521
|
-
`,
|
|
564
|
+
`,Vc=f.span`
|
|
565
|
+
color: ${Vt.Neutral[4]};
|
|
566
|
+
display: inline;
|
|
567
|
+
padding-left: 0.4rem;
|
|
568
|
+
`,Lc=f.div`
|
|
522
569
|
display: flex;
|
|
523
570
|
flex-direction: column;
|
|
524
|
-
`,
|
|
571
|
+
`,Tc=f.div`
|
|
525
572
|
width: 100%;
|
|
526
573
|
height: 1.5rem;
|
|
527
574
|
word-break: break-all;
|
|
528
575
|
overflow: hidden;
|
|
529
|
-
`,
|
|
576
|
+
`,Rc=f.div`
|
|
530
577
|
width: 100%;
|
|
531
578
|
text-overflow: ellipsis;
|
|
532
579
|
white-space: nowrap;
|
|
533
580
|
overflow: hidden;
|
|
534
581
|
direction: rtl;
|
|
535
582
|
text-align: right;
|
|
536
|
-
`;
|
|
537
|
-
color: ${
|
|
583
|
+
`;f(fr.Hyperlink.Default)`
|
|
584
|
+
color: ${Vt.Neutral[1]} !important;
|
|
538
585
|
padding: 1.25rem 1rem;
|
|
539
586
|
margin-bottom: 0;
|
|
540
587
|
|
|
@@ -542,56 +589,69 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import*as n from
|
|
|
542
589
|
:visited,
|
|
543
590
|
:focus,
|
|
544
591
|
:active {
|
|
545
|
-
outline-color: ${
|
|
546
|
-
color: ${
|
|
592
|
+
outline-color: ${Vt.Accent.Light[3]};
|
|
593
|
+
color: ${Vt.Neutral[1]};
|
|
547
594
|
}
|
|
548
|
-
`;const
|
|
595
|
+
`;const Wc=f((({className:e,checked:n,disabled:i,onChange:o,onKeyPress:s,displaySize:c="default",...u})=>{const[d,h]=l(n);a((()=>{h(n)}),[n]);const p=e=>{if(!i){const t=e;if(!(" "===t.key||"change"===e.type))return;o&&o(e),s&&s(t)}};return t(Pc,{selected:d,disabled:i,className:e,"data-testid":"checkbox",$displaySize:c,role:"checkbox","aria-checked":d,"aria-labelledby":"checkbox-input",tabIndex:i?-1:0,onKeyDown:p,children:[r(zc,{id:"checkbox-input","data-testid":"checkbox-input","aria-hidden":"true",type:"checkbox",tabIndex:-1,onChange:p,disabled:i,checked:d,...u}),d&&r(Ic,{id:"checkmark","data-testid":"checkmark",disabled:i,$displaySize:c})]})}))`
|
|
549
596
|
flex: 0 0 1.5rem;
|
|
550
597
|
margin-right: 1rem;
|
|
551
|
-
`,
|
|
598
|
+
`,qc=f.div`
|
|
552
599
|
width: 100%;
|
|
553
600
|
display: flex;
|
|
554
601
|
justify-content: flex-end;
|
|
555
602
|
padding: 1rem 0 0.5rem 0;
|
|
556
|
-
`,
|
|
557
|
-
${
|
|
603
|
+
`,Uc=f.button`
|
|
604
|
+
${nr("Body","semibold")}
|
|
558
605
|
background-color: transparent;
|
|
559
606
|
background-repeat: no-repeat;
|
|
560
607
|
border: none;
|
|
561
608
|
cursor: pointer;
|
|
562
609
|
overflow: hidden;
|
|
563
610
|
outline: none;
|
|
564
|
-
${e=>`\n\t\t\tcolor: ${
|
|
565
|
-
`,
|
|
611
|
+
${e=>`\n\t\t\tcolor: ${Vt.Primary(e)};\n\t\t`}
|
|
612
|
+
`,Qc=f.div`
|
|
566
613
|
width: 100%;
|
|
567
614
|
display: flex;
|
|
568
615
|
padding: 1rem 0.5rem;
|
|
569
616
|
align-items: center;
|
|
570
|
-
`,
|
|
617
|
+
`,Zc=f(fr.Body)``,Gc=f(Sc)`
|
|
618
|
+
margin-right: 0.625rem;
|
|
619
|
+
height: 1.5rem;
|
|
620
|
+
width: 1.5rem;
|
|
621
|
+
color: ${Vt.Validation.Red.Icon};
|
|
622
|
+
`;var Xc,Kc={};Object.defineProperty(Kc,"__esModule",{value:!0});var Yc=e;const Jc=e=>Yc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Yc.jsx("path",{d:"M15.688 16.896L11.125 12.333C10.667 12.6803 10.1703 12.941 9.635 13.115C9.10033 13.2883 8.54133 13.375 7.958 13.375C6.44467 13.375 5.15667 12.8507 4.094 11.802C3.03133 10.7533 2.5 9.472 2.5 7.958C2.5 6.44467 3.03133 5.15667 4.094 4.094C5.15667 3.03133 6.44467 2.5 7.958 2.5C9.472 2.5 10.7533 3.03133 11.802 4.094C12.8507 5.15667 13.375 6.44467 13.375 7.958C13.375 8.54133 13.2917 9.10033 13.125 9.635C12.9583 10.1703 12.6943 10.66 12.333 11.104L16.917 15.708C17.0837 15.8747 17.1633 16.0727 17.156 16.302C17.1493 16.5313 17.0627 16.7293 16.896 16.896C16.7293 17.0627 16.528 17.146 16.292 17.146C16.056 17.146 15.8547 17.0627 15.688 16.896ZM7.958 11.625C8.972 11.625 9.83667 11.2673 10.552 10.552C11.2673 9.83667 11.625 8.972 11.625 7.958C11.625 6.93067 11.2707 6.05567 10.562 5.333C9.854 4.611 8.986 4.25 7.958 4.25C6.93067 4.25 6.05567 4.611 5.333 5.333C4.611 6.05567 4.25 6.93067 4.25 7.958C4.25 8.986 4.611 9.854 5.333 10.562C6.05567 11.2707 6.93067 11.625 7.958 11.625Z",fill:"currentColor"})});Jc.displayName="MagnifierIcon",Xc=Kc.MagnifierIcon=Jc;const eu=f.button`
|
|
571
623
|
display: flex;
|
|
624
|
+
justify-content: center;
|
|
572
625
|
align-items: center;
|
|
573
|
-
|
|
574
|
-
|
|
626
|
+
padding: 1.5rem;
|
|
627
|
+
background-color: transparent;
|
|
628
|
+
border: none;
|
|
629
|
+
cursor: pointer;
|
|
575
630
|
|
|
576
|
-
|
|
577
|
-
height:
|
|
578
|
-
width:
|
|
631
|
+
img {
|
|
632
|
+
height: 1rem;
|
|
633
|
+
width: 1rem;
|
|
579
634
|
}
|
|
580
635
|
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
636
|
+
&:active,
|
|
637
|
+
&:focus {
|
|
638
|
+
${({$outline:e})=>"none"===e&&"outline: none;"}
|
|
639
|
+
|
|
640
|
+
${({$highlight:e})=>e&&g`
|
|
641
|
+
background-color: ${Vt.Neutral[7]};
|
|
642
|
+
`}
|
|
643
|
+
}
|
|
644
|
+
`,tu=o.forwardRef((({children:e,focusHighlight:t=!0,focusOutline:n="none",...i},o)=>r(eu,{ref:o,$outline:n,$highlight:t,...i,children:e}))),ru=f.li`
|
|
645
|
+
background: ${Vt.Neutral[7]};
|
|
586
646
|
display: flex;
|
|
587
647
|
border-radius: 4px;
|
|
588
648
|
align-items: center;
|
|
589
|
-
`,
|
|
590
|
-
${
|
|
591
|
-
height:
|
|
649
|
+
`,nu=f.input`
|
|
650
|
+
${nr("Body","regular")}
|
|
651
|
+
height: 3rem;
|
|
592
652
|
border: none;
|
|
593
653
|
background: transparent;
|
|
594
|
-
|
|
654
|
+
flex: 1;
|
|
595
655
|
padding: 0 0.5rem 0 0;
|
|
596
656
|
|
|
597
657
|
:focus,
|
|
@@ -601,26 +661,32 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import*as n from
|
|
|
601
661
|
|
|
602
662
|
::placeholder,
|
|
603
663
|
::-webkit-input-placeholder {
|
|
604
|
-
color: ${
|
|
664
|
+
color: ${Vt.Neutral[3]};
|
|
605
665
|
}
|
|
606
|
-
`,
|
|
607
|
-
height: 1.
|
|
608
|
-
width: 1.
|
|
666
|
+
`,iu=f(Xc)`
|
|
667
|
+
height: 1.375rem;
|
|
668
|
+
width: 1.375rem;
|
|
609
669
|
margin: 0 0.5rem;
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
670
|
+
color: ${Vt.Neutral[3]};
|
|
671
|
+
`,ou=f(tu)`
|
|
672
|
+
padding: 0;
|
|
673
|
+
margin: 0 0.5rem;
|
|
674
|
+
color: ${Vt.Neutral[3]};
|
|
675
|
+
cursor: pointer;
|
|
676
|
+
`,au=f(Ut)`
|
|
677
|
+
height: 1.375rem;
|
|
678
|
+
width: 1.375rem;
|
|
679
|
+
color: ${Vt.Neutral[3]};
|
|
680
|
+
`,su=u(((e,n)=>{const{onClear:i,...o}=e;return t(ru,{children:[r(iu,{}),r(nu,{ref:n,...o}),o.value&&r(ou,{"aria-label":"Clear search",focusOutline:"browser",onClick:i,children:r(au,{})})]},"search")})),lu=({listItems:e,listExtractor:i,valueExtractor:o,onSelectItem:s,listStyleWidth:u,visible:d,enableSearch:h,searchPlaceholder:p="Search",onSearch:f,searchFunction:g,onDismiss:m,multiSelect:y,selectedItems:b,onSelectAll:v,onRetry:w,itemsLoadState:_="success",itemTruncationType:$="end",renderListItem:x,...S})=>{const[C,k]=l(0),[F,j]=l(""),[O,B]=l(e),[A,P]=l(0),z=function(e,t){const r=Zo.fun(e),[[n],i]=Wl(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[n,i]:n}({height:A}),I=c(),N=c(),D=c([]),E=c(),H=c(C),M=c(O),V=e=>{H.current=e,k(e)},L=e=>{M.current=e,B(e)};a((()=>(document.addEventListener("keydown",Q),()=>{document.removeEventListener("keydown",Q)})),[]),a((()=>{q(F)}),[F]),a((()=>{j(""),d?(P(U()),E&&E.current?(E.current.focus(),V(-1)):D.current[C]&&D.current[C].focus()):P(0)}),[d]),a((()=>{if(d){const e=U();P(e)}}),[O]),a((()=>{L(e),j(""),V(0)}),[e]);const T=e=>i?i(e):e.toString(),R=e=>{const t=i?i(e):e.toString();let r=0;return N&&N.current&&(r=N.current.getBoundingClientRect().width-100),qt.shouldTruncateToTwoLines("string"==typeof t?t:t.title,r)},W=e=>jo(b,e)>-1,q=t=>{if(""===t)L(e);else if(g){const e=g(t);L(e)}else{const r=e.filter((e=>{const r=T(e),n="object"==typeof r?r.title.toLowerCase():r.toLowerCase();return"object"==typeof r&&r.secondaryLabel?n.includes(t.trim().toLowerCase())||r.secondaryLabel.includes(t.trim().toLowerCase()):n.includes(t.trim().toLowerCase())}));L(r)}},U=()=>N&&N.current?N.current.getBoundingClientRect().height:0,Q=e=>{if(I&&I.current.contains(e.target))switch(e.code){case"ArrowDown":if(H.current<M.current.length-1){const e=H.current+1;D.current[e].focus(),V(e)}break;case"ArrowUp":if(H.current>0){const e=H.current-1;D.current[e].focus(),V(H.current-1)}break;case"Escape":m&&m()}},Z=(e,t)=>{e.preventDefault(),s&&s(t,(e=>o?o(e):e)(t))},G=e=>{const t=e.target.value;j(t),f&&f()},X=()=>{j(""),f&&f()},K=()=>{w&&w()},Y=e=>{const n=T(e),i="string"==typeof n?n:n.title;return t(Lc,{"data-testid":"truncate-middle-container",children:[r(Tc,{children:i}),t(Rc,{children:[" ",i]})]})},J=e=>{const i=T(e);return"string"==typeof i?r(n,{children:i}):t(n,{children:[i.title,i.secondaryLabel&&r(Vc,{children:i.secondaryLabel})]})},ee=()=>{if(!w||w&&"success"===_)return O.map(((e,n)=>r(Ec,{checked:W(e)&&!y,children:t(Hc,{onClick:t=>{Z(t,e)},ref:e=>D.current[n]=e,"data-testid":"list-item",type:"button",tabIndex:d?0:-1,multiSelect:y,children:[y&&r(Wc,{checked:W(e),displaySize:"small"}),x?x(e,{selected:W(e)}):r(Mc,{truncateType:$,children:"middle"===$&&R(e)?Y(e):J(e)})]})},((e,t)=>`item_${t}__${o?o(e):e}`)(e,n))))},te=()=>{if(y&&O.length>0&&!F&&"success"===_)return r(qc,{children:r(Uc,{onClick:v,children:0===b.length?"Select all":"Unselect all"})},"selectAll")},re=()=>{if(F&&0===O.length)return t(Qc,{"data-testid":"list-no-results",children:[r(Gc,{"data-testid":"no-result-icon"}),r(Zc,{children:"No results found."})]},"noResults")},ne=()=>{if(w&&"loading"===_)return t(Qc,{"data-testid":"list-loading",children:[r(xc,{$buttonStyle:"secondary",size:24}),r(Zc,{children:"Loading..."})]},"loading")},ie=()=>{if(w&&"fail"===_)return t(Qc,{"data-testid":"list-fail",children:[r(Gc,{"data-testid":"load-error-icon"}),r(Zc,{children:"Failed to load."}),r(Uc,{onClick:K,children:"Try again."})]},"noResults")};return r(Nc,{style:z,"data-testid":d?"dropdown-container":"dropdown-container-hidden",ref:I,children:(()=>{if(d)return t(Dc,{ref:N,"data-testid":"dropdown-list",width:u,role:"list",...S,children:[(h||g)&&"success"===_?r(su,{ref:E,onChange:G,value:F,placeholder:p,"data-testid":"search-input","aria-label":"search-input",tabIndex:d?0:-1,onClear:X}):null,te(),re(),ne(),ie(),ee()]})})()})};var cu,uu={};Object.defineProperty(uu,"__esModule",{value:!0});var du=e;const hu=e=>du.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:du.jsx("path",{d:"M2.62611 5.81312C2.84811 5.59112 3.10478 5.48012 3.39611 5.48012C3.68811 5.48012 3.94511 5.59112 4.16711 5.81312L10.1881 11.8341L16.2301 5.79212C16.4381 5.58412 16.6881 5.48012 16.9801 5.48012C17.2714 5.48012 17.5281 5.59112 17.7501 5.81312C17.9588 6.02179 18.0631 6.27545 18.0631 6.57412C18.0631 6.87279 17.9588 7.12612 17.7501 7.33412L10.8131 14.2721C10.7158 14.3688 10.6151 14.4381 10.5111 14.4801C10.4071 14.5215 10.2994 14.5421 10.1881 14.5421C10.0768 14.5421 9.96911 14.5215 9.86511 14.4801C9.76111 14.4381 9.66044 14.3688 9.56311 14.2721L2.60511 7.31312C2.38244 7.09112 2.27811 6.83779 2.29211 6.55312C2.30611 6.26845 2.41744 6.02179 2.62611 5.81312Z",fill:"currentColor"})});hu.displayName="ChevronDownIcon",cu=uu.ChevronDownIcon=hu;const pu="all 300ms cubic-bezier(0.21, 0.79, 0.53, 1)",fu=f.div`
|
|
615
681
|
position: relative;
|
|
616
682
|
min-height: 3rem;
|
|
617
683
|
height: 3rem;
|
|
618
684
|
width: 100%;
|
|
619
685
|
|
|
620
|
-
${
|
|
686
|
+
${mc.tablet} {
|
|
621
687
|
height: auto;
|
|
622
688
|
}
|
|
623
|
-
`,
|
|
689
|
+
`,gu=f.button`
|
|
624
690
|
display: flex;
|
|
625
691
|
position: relative;
|
|
626
692
|
align-items: center;
|
|
@@ -636,7 +702,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import*as n from
|
|
|
636
702
|
:active {
|
|
637
703
|
outline: none;
|
|
638
704
|
}
|
|
639
|
-
`,
|
|
705
|
+
`,mu=m`
|
|
640
706
|
from {
|
|
641
707
|
position: absolute;
|
|
642
708
|
top: 0;
|
|
@@ -648,82 +714,94 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import*as n from
|
|
|
648
714
|
to {
|
|
649
715
|
position: relative;
|
|
650
716
|
}
|
|
651
|
-
`,
|
|
717
|
+
`,yu=f.div`
|
|
652
718
|
position: relative;
|
|
653
|
-
border: 1px solid ${
|
|
719
|
+
border: 1px solid ${Vt.Neutral[5]};
|
|
654
720
|
border-radius: ${"4px"};
|
|
655
|
-
background: ${
|
|
721
|
+
background: ${Vt.Neutral[8]};
|
|
656
722
|
|
|
657
723
|
:focus-within {
|
|
658
|
-
border: 1px solid ${
|
|
659
|
-
box-shadow:
|
|
724
|
+
border: 1px solid ${Vt.Accent.Light[1]};
|
|
725
|
+
box-shadow: ${Rt};
|
|
660
726
|
}
|
|
661
727
|
|
|
662
|
-
${e=>e.expanded?
|
|
728
|
+
${e=>e.expanded?g`
|
|
663
729
|
position: absolute;
|
|
664
730
|
top: 0;
|
|
665
731
|
left: 0;
|
|
666
732
|
width: 100%;
|
|
667
733
|
z-index: 2;
|
|
668
|
-
`:
|
|
669
|
-
animation: ${
|
|
734
|
+
`:g`
|
|
735
|
+
animation: ${mu} 0.5s ease-in-out;
|
|
670
736
|
`}
|
|
671
737
|
|
|
672
|
-
${e=>e.disabled?
|
|
673
|
-
background: ${
|
|
738
|
+
${e=>e.disabled?g`
|
|
739
|
+
background: ${Vt.Neutral[6](e)};
|
|
674
740
|
|
|
675
|
-
${
|
|
741
|
+
${gu} {
|
|
676
742
|
cursor: not-allowed;
|
|
677
743
|
}
|
|
678
744
|
|
|
679
745
|
:focus-within {
|
|
680
|
-
border: 1px solid ${
|
|
746
|
+
border: 1px solid ${Vt.Neutral[5](e)};
|
|
681
747
|
box-shadow: none;
|
|
682
748
|
}
|
|
683
|
-
`:e
|
|
684
|
-
border:
|
|
749
|
+
`:e.$readOnly?g`
|
|
750
|
+
border: none;
|
|
751
|
+
background: transparent !important;
|
|
752
|
+
|
|
753
|
+
${gu} {
|
|
754
|
+
padding-left: 0rem;
|
|
755
|
+
}
|
|
685
756
|
|
|
686
757
|
:focus-within {
|
|
687
|
-
border:
|
|
688
|
-
box-shadow:
|
|
758
|
+
border: none;
|
|
759
|
+
box-shadow: none;
|
|
760
|
+
}
|
|
761
|
+
`:e.error?g`
|
|
762
|
+
border: 1px solid ${Vt.Validation.Red.Border(e)};
|
|
763
|
+
|
|
764
|
+
:focus-within {
|
|
765
|
+
border: 1px solid ${Vt.Validation.Red.Border(e)};
|
|
766
|
+
box-shadow: ${Wt};
|
|
689
767
|
}
|
|
690
768
|
`:void 0}
|
|
691
|
-
`;
|
|
769
|
+
`;f.div`
|
|
692
770
|
transform: rotate(${e=>e.expanded?180:0}deg);
|
|
693
|
-
transition: ${
|
|
771
|
+
transition: ${pu};
|
|
694
772
|
margin-left: 1rem;
|
|
695
|
-
`,
|
|
696
|
-
color: ${
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
`,
|
|
773
|
+
`,f(cu)`
|
|
774
|
+
color: ${Vt.Neutral[3]};
|
|
775
|
+
height: ${Jt.Body.fontSize}rem;
|
|
776
|
+
width: ${Jt.Body.fontSize}rem;
|
|
777
|
+
`,f.div`
|
|
700
778
|
height: 1px;
|
|
701
|
-
background: ${
|
|
779
|
+
background: ${Vt.Neutral[5]};
|
|
702
780
|
margin: 0 0.5rem;
|
|
703
|
-
`,
|
|
781
|
+
`,f.div`
|
|
704
782
|
display: flex;
|
|
705
783
|
flex: 1;
|
|
706
|
-
`;const
|
|
784
|
+
`;const bu=f(fr.Body)`
|
|
707
785
|
text-align: left;
|
|
708
786
|
line-height: 1.375rem;
|
|
709
|
-
${e=>{if("middle"!==e.truncateType)return
|
|
787
|
+
${e=>{if("middle"!==e.truncateType)return g`
|
|
710
788
|
display: -webkit-box;
|
|
711
789
|
-webkit-line-clamp: 1;
|
|
712
790
|
-webkit-box-orient: vertical;
|
|
713
791
|
text-overflow: ellipsis;
|
|
714
792
|
`}}
|
|
715
793
|
overflow: hidden;
|
|
716
|
-
`;
|
|
717
|
-
color: ${
|
|
718
|
-
`;const
|
|
794
|
+
`;f(bu)`
|
|
795
|
+
color: ${Vt.Neutral[3]};
|
|
796
|
+
`;const vu=fu,wu=f(yu)``,_u=f.div`
|
|
719
797
|
position: relative;
|
|
720
798
|
display: flex;
|
|
721
799
|
height: 3rem;
|
|
722
|
-
margin: 0
|
|
723
|
-
${e=>{if(e.$expanded)return
|
|
724
|
-
border-bottom: 1px solid ${
|
|
800
|
+
margin-left: 0.5rem;
|
|
801
|
+
${e=>{if(e.$expanded)return g`
|
|
802
|
+
border-bottom: 1px solid ${Vt.Neutral[5](e)};
|
|
725
803
|
`}}
|
|
726
|
-
|
|
804
|
+
`,$u=f.button`
|
|
727
805
|
display: flex;
|
|
728
806
|
position: relative;
|
|
729
807
|
align-items: center;
|
|
@@ -737,20 +815,21 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import*as n from
|
|
|
737
815
|
|
|
738
816
|
:focus,
|
|
739
817
|
:active {
|
|
740
|
-
outline-color: ${
|
|
818
|
+
outline-color: ${Vt.Accent.Light[3]};
|
|
741
819
|
}
|
|
742
|
-
`,
|
|
820
|
+
`,xu=f.div`
|
|
743
821
|
transform: rotate(${e=>e.$expanded?180:0}deg);
|
|
744
|
-
transition: ${
|
|
822
|
+
transition: ${pu};
|
|
745
823
|
margin-left: 1rem;
|
|
746
|
-
`,
|
|
747
|
-
color: ${
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
824
|
+
`,Su=f(cu)`
|
|
825
|
+
color: ${Vt.Neutral[3]};
|
|
826
|
+
height: ${Jt.Body.fontSize}rem;
|
|
827
|
+
width: ${Jt.Body.fontSize}rem;
|
|
828
|
+
vertical-align: bottom;
|
|
829
|
+
`,Cu=f.div`
|
|
751
830
|
display: flex;
|
|
752
831
|
flex: 1 1 auto;
|
|
753
|
-
`,
|
|
832
|
+
`,ku=f(fr.Body)`
|
|
754
833
|
text-align: left;
|
|
755
834
|
line-height: 1.375rem;
|
|
756
835
|
display: -webkit-box;
|
|
@@ -758,11 +837,12 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import*as n from
|
|
|
758
837
|
-webkit-box-orient: vertical;
|
|
759
838
|
overflow: hidden;
|
|
760
839
|
text-overflow: ellipsis;
|
|
761
|
-
`,
|
|
762
|
-
color: ${
|
|
763
|
-
`,
|
|
840
|
+
`,Fu=f(ku)`
|
|
841
|
+
color: ${Vt.Neutral[3]};
|
|
842
|
+
`,ju=f.div`
|
|
764
843
|
margin: 1rem 1rem 1rem 0;
|
|
765
844
|
width: 1px;
|
|
766
|
-
|
|
767
|
-
|
|
845
|
+
height: 1.25rem;
|
|
846
|
+
background: ${Vt.Neutral[5]};
|
|
847
|
+
`,Ou=({addon:e,error:i,onChange:o,...s})=>{const{value:u,placeholder:d,options:h,enableSearch:p,searchFunction:f,searchPlaceholder:g,valueExtractor:m,listExtractor:y,displayValueExtractor:b,selectedOption:v,onSelectOption:w,onHideOptions:_,onShowOptions:$,"data-selector-testid":x}=e.attributes,[S,C]=l(u),[k,F]=l(!1),j=c(),O=c();a((()=>{C(u)}),[u]),a((()=>(document.addEventListener("mousedown",A),()=>{document.removeEventListener("mousedown",A)})),[]);const B=e=>{!e&&_&&_(),e&&$&&$()},A=e=>{if(!s.disabled){if(j&&j.current.contains(e.target))return;F(!1),B(!1)}},P=e=>{e.preventDefault(),s.disabled||(F(!k),B(!k))},z=(e,t)=>{C(e),F(!1),B(!1),O&&O.current.focus(),w&&w(e,t)},I=e=>{o&&o(e)};return r(vu,{children:t(wu,{ref:j,disabled:s.disabled,error:i&&!k,expanded:k,children:[t(_u,{$expanded:k,children:[r($u,{ref:O,type:"button","data-testid":x||"addon-selector",onClick:P,children:t(n,{children:[t(Cu,{children:[d&&!S&&r(Fu,{children:d}),S&&r(ku,{"data-testid":"selector-label",children:b?b(S):m?m(S):S.toString()})]}),r(xu,{$expanded:k,children:r(Su,{})})]})}),r(ju,{}),r(wr,{...s,error:i,onChange:I,"data-testid":s["data-testid"]||"input"})]}),h&&h.length>0?r(lu,{listItems:h,selectedItems:v?[v]:[],onSelectItem:z,valueExtractor:m,listExtractor:y,visible:k,enableSearch:p,searchFunction:f,searchPlaceholder:g,"data-testid":"dropdown-list"}):null]})})},Bu=o.forwardRef((({addon:e,error:n,...i},o)=>{const a=()=>r(vr,{disabled:i.disabled,$error:n,$readOnly:i.readOnly,"data-testid":i["data-testid"],children:r(wr,{ref:o,...i,"data-testid":"input"})});if(!e)return a();{const{type:o="label",position:s="left"}=e,{allowClear:l}=i;switch(o){case"list":{const t=e.attributes;return t.options&&t.options.length>0?r(Ou,{addon:e,error:n,...i}):a()}case"custom":{const o=e.attributes;return o.children?t(vr,{$error:n,disabled:i.disabled,$readOnly:i.readOnly,"data-testid":i["data-testid"],$position:s,children:[r(_r,{"data-testid":"addon",disabled:i.disabled,$readOnly:i.readOnly,children:o.children}),r(wr,{...i,allowClear:l&&"right"!==s,error:n,$position:s,"data-testid":"input"})]}):a()}default:{const o=e.attributes;return o.value?t(vr,{disabled:i.disabled,$error:n,$readOnly:i.readOnly,"data-testid":i["data-testid"],$position:s,children:[r(_r,{"data-testid":"addon",disabled:i.disabled,$readOnly:i.readOnly,children:o.value}),r(wr,{...i,allowClear:l&&"right"!==s,error:n,$position:s,"data-testid":"input"})]}):a()}}}}));export{Bu as InputGroup};
|
|
768
848
|
//# sourceMappingURL=index.js.map
|