@lifesg/react-design-system 1.0.0 → 1.0.2
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/cjs/index.js +5 -5
- package/cjs/index.js.map +1 -1
- package/date-input/index.js +78 -78
- package/date-input/index.js.map +1 -1
- package/filter/index.js +166 -166
- package/filter/index.js.map +1 -1
- package/form/index.js +112 -112
- package/form/index.js.map +1 -1
- package/index.js +5 -5
- package/index.js.map +1 -1
- package/input-group/index.js +58 -58
- package/input-group/index.js.map +1 -1
- package/input-select/index.js +168 -168
- package/input-select/index.js.map +1 -1
- package/package.json +1 -1
- package/phone-number-input/index.js +59 -59
- package/phone-number-input/index.js.map +1 -1
- package/time-slot-bar/index.js +80 -80
- package/time-slot-bar/index.js.map +1 -1
- package/timepicker/index.js +205 -205
- package/timepicker/index.js.map +1 -1
- package/toggle/index.js +147 -147
- package/toggle/index.js.map +1 -1
- package/util/index.d.ts +1 -0
- package/util/simple-id-generator.d.ts +6 -0
package/form/index.js
CHANGED
|
@@ -407,13 +407,13 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
407
407
|
&:not(:last-child) {
|
|
408
408
|
margin-bottom: 2rem;
|
|
409
409
|
}
|
|
410
|
-
`,wn=({label:e,errorMessage:n,id:a,disabled:i,children:o,"data-error-testid":s})=>{const l=()=>s||(a?`${a}-error-message`:"error-message"),d=()=>!!n;return t(vn,{children:[e&&r(yn,"string"==typeof e?{htmlFor:`${a}-base`,"data-testid":a?`${a}-label`:"form-label",disabled:i,children:e}:{htmlFor:`${a}-base`,"data-testid":a?`${a}-label`:"form-label",disabled:i,...e}),(()=>{const e={"aria-invalid":d(),"aria-describedby":d()&&l()};return c.map(o,(t=>u(t,e)))})(),n&&r(gn,{id:l(),weight:"semibold",tabIndex:0,"data-testid":l(),children:n})]})};var xn={exports:{}};xn.exports=function(){var e=1e3,t=6e4,r=36e5,n="millisecond",a="second",i="minute",o="hour",s="day",l="week",c="month",u="quarter",d="year",h="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},b=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},y={s:b,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),a=r%60;return(t<=0?"+":"-")+b(n,2,"0")+":"+b(a,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),a=t.clone().add(n,c),i=r-a<0,o=t.clone().add(n+(i?-1:1),c);return+(-(n+(r-a)/(i?a-o:o-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:h,h:o,m:i,s:a,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",w={};w[v]=g;var x=function(e){return e instanceof _},$=function e(t,r,n){var a;if(!t)return v;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(a=i),r&&(w[i]=r,a=i);var o=t.split("-");if(!a&&o.length>1)return e(o[0])}else{var s=t.name;w[s]=t,a=s}return!n&&a&&(v=a),a||!n&&v},C=function(e,t){if(x(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new _(r)},S=y;S.l=$,S.i=x,S.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var _=function(){function g(e){this.$L=$(e.locale,null,!0),this.parse(e)}var b=g.prototype;return b.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(f);if(n){var a=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},b.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},b.$utils=function(){return S},b.isValid=function(){return!(this.$d.toString()===p)},b.isSame=function(e,t){var r=C(e);return this.startOf(t)<=r&&r<=this.endOf(t)},b.isAfter=function(e,t){return C(e)<this.startOf(t)},b.isBefore=function(e,t){return this.endOf(t)<C(e)},b.$g=function(e,t,r){return S.u(e)?this[t]:this.set(r,e)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(e,t){var r=this,n=!!S.u(t)||t,u=S.p(e),p=function(e,t){var a=S.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return n?a:a.endOf(s)},f=function(e,t){return S.w(r.toDate()[e].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},m=this.$W,g=this.$M,b=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return n?p(1,0):p(31,11);case c:return n?p(1,g):p(0,g+1);case l:var v=this.$locale().weekStart||0,w=(m<v?m+7:m)-v;return p(n?b-w:b+(6-w),g);case s:case h:return f(y+"Hours",0);case o:return f(y+"Minutes",1);case i:return f(y+"Seconds",2);case a:return f(y+"Milliseconds",3);default:return this.clone()}},b.endOf=function(e){return this.startOf(e,!1)},b.$set=function(e,t){var r,l=S.p(e),u="set"+(this.$u?"UTC":""),p=(r={},r[s]=u+"Date",r[h]=u+"Date",r[c]=u+"Month",r[d]=u+"FullYear",r[o]=u+"Hours",r[i]=u+"Minutes",r[a]=u+"Seconds",r[n]=u+"Milliseconds",r)[l],f=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(h,1);m.$d[p](f),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},b.set=function(e,t){return this.clone().$set(e,t)},b.get=function(e){return this[S.p(e)]()},b.add=function(n,u){var h,p=this;n=Number(n);var f=S.p(u),m=function(e){var t=C(p);return S.w(t.date(t.date()+Math.round(e*n)),p)};if(f===c)return this.set(c,this.$M+n);if(f===d)return this.set(d,this.$y+n);if(f===s)return m(1);if(f===l)return m(7);var g=(h={},h[i]=t,h[o]=r,h[a]=e,h)[f]||1,b=this.$d.getTime()+n*g;return S.w(b,this)},b.subtract=function(e,t){return this.add(-1*e,t)},b.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||p;var n=e||"YYYY-MM-DDTHH:mm:ssZ",a=S.z(this),i=this.$H,o=this.$m,s=this.$M,l=r.weekdays,c=r.months,u=function(e,r,a,i){return e&&(e[r]||e(t,n))||a[r].slice(0,i)},d=function(e){return S.s(i%12||12,e,"0")},h=r.meridiem||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n},f={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:S.s(s+1,2,"0"),MMM:u(r.monthsShort,s,c,3),MMMM:u(c,s),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:u(r.weekdaysMin,this.$W,l,2),ddd:u(r.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(i),HH:S.s(i,2,"0"),h:d(1),hh:d(2),a:h(i,o,!0),A:h(i,o,!1),m:String(o),mm:S.s(o,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:a};return n.replace(m,(function(e,t){return t||f[e]||a.replace(":","")}))},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(n,h,p){var f,m=S.p(h),g=C(n),b=(g.utcOffset()-this.utcOffset())*t,y=this-g,v=S.m(this,g);return v=(f={},f[d]=v/12,f[c]=v,f[u]=v/3,f[l]=(y-b)/6048e5,f[s]=(y-b)/864e5,f[o]=y/r,f[i]=y/t,f[a]=y/e,f)[m]||y,p?v:S.a(v)},b.daysInMonth=function(){return this.endOf(c).$D},b.$locale=function(){return w[this.$L]},b.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=$(e,t,!0);return n&&(r.$L=n),r},b.clone=function(){return S.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},g}(),k=_.prototype;return C.prototype=k,[["$ms",n],["$s",a],["$m",i],["$H",o],["$W",s],["$M",c],["$y",d],["$D",h]].forEach((function(e){k[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||(e(t,_,C),e.$i=!0),C},C.locale=$,C.isDayjs=x,C.unix=function(e){return C(1e3*e)},C.en=w[v],C.Ls=w,C.p={},C}();var $n,Cn=xn.exports;!function(e){e.generateDays=e=>{const t=e.startOf("month"),r=Cn(t).startOf("week");return Sn(r).map((e=>_n(e)))},e.generateMonths=e=>{const t=[];for(let r=0;r<12;r++){const n=e.month(r);t.push(Cn(n))}return t},e.generateDecadeOfYears=e=>{const t=e.year(),r=10*Math.floor(t/10),n=e.year(r),a=[n.subtract(1,"year"),n];for(let e=1;e<11;e++)a.push(n.add(e,"year"));return a},e.getStartEndDecade=e=>{const t=10*Math.floor(+e.format("YYYY")/10);return{beginDecade:t,endDecade:+Cn(`${t+9}-01-01`).format("YYYY")}}}($n||($n={}));const Sn=e=>{const t=[e];for(let r=1;r<6;r++){const n=e.add(r,"week");t.push(n)}return t},_n=e=>{const t=[];for(let r=0;r<7;r++){const n=e.add(r,"day");t.push(n)}return t},kn=[1,3,5,7,8,10,12],On=[4,6,9,11];var jn,Mn;!function(e){e.clampDay=(t,r,n)=>{const a=parseInt(t),i=parseInt(r),o=parseInt(n);return 0==a?"1":kn.includes(i)?Math.min(a,31).toString():On.includes(i)?Math.min(a,30).toString():2===i?e.isLeapYear(o)?Math.min(a,29).toString():Math.min(a,28).toString():t},e.clampMonth=e=>{const t=parseInt(e);return 0==t?"1":t>12?"12":e},e.isLeapYear=e=>e%4==0&&e%100!=0||e%400==0,e.getTimeDiffInMinutes=(e,t,r="HH:mm")=>{const n=Cn(e,r);return Cn(t,r).diff(n,"minute")}}(jn||(jn={})),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 a=0;t>r&&(a=Math.floor((t-r)/8));const i=n+a;if(i<e.length){const t=Math.floor(i/2);return e.substring(0,t)+" ... "+e.substring(e.length-t,e.length)}return e}}(
|
|
410
|
+
`,wn=({label:e,errorMessage:n,id:a,disabled:i,children:o,"data-error-testid":s})=>{const l=()=>s||(a?`${a}-error-message`:"error-message"),d=()=>!!n;return t(vn,{children:[e&&r(yn,"string"==typeof e?{htmlFor:`${a}-base`,"data-testid":a?`${a}-label`:"form-label",disabled:i,children:e}:{htmlFor:`${a}-base`,"data-testid":a?`${a}-label`:"form-label",disabled:i,...e}),(()=>{const e={"aria-invalid":d(),"aria-describedby":d()&&l()};return c.map(o,(t=>u(t,e)))})(),n&&r(gn,{id:l(),weight:"semibold",tabIndex:0,"data-testid":l(),children:n})]})};var xn={exports:{}};xn.exports=function(){var e=1e3,t=6e4,r=36e5,n="millisecond",a="second",i="minute",o="hour",s="day",l="week",c="month",u="quarter",d="year",h="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},b=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},y={s:b,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),a=r%60;return(t<=0?"+":"-")+b(n,2,"0")+":"+b(a,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),a=t.clone().add(n,c),i=r-a<0,o=t.clone().add(n+(i?-1:1),c);return+(-(n+(r-a)/(i?a-o:o-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:h,h:o,m:i,s:a,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",w={};w[v]=g;var x=function(e){return e instanceof _},$=function e(t,r,n){var a;if(!t)return v;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(a=i),r&&(w[i]=r,a=i);var o=t.split("-");if(!a&&o.length>1)return e(o[0])}else{var s=t.name;w[s]=t,a=s}return!n&&a&&(v=a),a||!n&&v},C=function(e,t){if(x(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new _(r)},S=y;S.l=$,S.i=x,S.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var _=function(){function g(e){this.$L=$(e.locale,null,!0),this.parse(e)}var b=g.prototype;return b.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(f);if(n){var a=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},b.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},b.$utils=function(){return S},b.isValid=function(){return!(this.$d.toString()===p)},b.isSame=function(e,t){var r=C(e);return this.startOf(t)<=r&&r<=this.endOf(t)},b.isAfter=function(e,t){return C(e)<this.startOf(t)},b.isBefore=function(e,t){return this.endOf(t)<C(e)},b.$g=function(e,t,r){return S.u(e)?this[t]:this.set(r,e)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(e,t){var r=this,n=!!S.u(t)||t,u=S.p(e),p=function(e,t){var a=S.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return n?a:a.endOf(s)},f=function(e,t){return S.w(r.toDate()[e].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},m=this.$W,g=this.$M,b=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return n?p(1,0):p(31,11);case c:return n?p(1,g):p(0,g+1);case l:var v=this.$locale().weekStart||0,w=(m<v?m+7:m)-v;return p(n?b-w:b+(6-w),g);case s:case h:return f(y+"Hours",0);case o:return f(y+"Minutes",1);case i:return f(y+"Seconds",2);case a:return f(y+"Milliseconds",3);default:return this.clone()}},b.endOf=function(e){return this.startOf(e,!1)},b.$set=function(e,t){var r,l=S.p(e),u="set"+(this.$u?"UTC":""),p=(r={},r[s]=u+"Date",r[h]=u+"Date",r[c]=u+"Month",r[d]=u+"FullYear",r[o]=u+"Hours",r[i]=u+"Minutes",r[a]=u+"Seconds",r[n]=u+"Milliseconds",r)[l],f=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(h,1);m.$d[p](f),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},b.set=function(e,t){return this.clone().$set(e,t)},b.get=function(e){return this[S.p(e)]()},b.add=function(n,u){var h,p=this;n=Number(n);var f=S.p(u),m=function(e){var t=C(p);return S.w(t.date(t.date()+Math.round(e*n)),p)};if(f===c)return this.set(c,this.$M+n);if(f===d)return this.set(d,this.$y+n);if(f===s)return m(1);if(f===l)return m(7);var g=(h={},h[i]=t,h[o]=r,h[a]=e,h)[f]||1,b=this.$d.getTime()+n*g;return S.w(b,this)},b.subtract=function(e,t){return this.add(-1*e,t)},b.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||p;var n=e||"YYYY-MM-DDTHH:mm:ssZ",a=S.z(this),i=this.$H,o=this.$m,s=this.$M,l=r.weekdays,c=r.months,u=function(e,r,a,i){return e&&(e[r]||e(t,n))||a[r].slice(0,i)},d=function(e){return S.s(i%12||12,e,"0")},h=r.meridiem||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n},f={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:S.s(s+1,2,"0"),MMM:u(r.monthsShort,s,c,3),MMMM:u(c,s),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:u(r.weekdaysMin,this.$W,l,2),ddd:u(r.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(i),HH:S.s(i,2,"0"),h:d(1),hh:d(2),a:h(i,o,!0),A:h(i,o,!1),m:String(o),mm:S.s(o,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:a};return n.replace(m,(function(e,t){return t||f[e]||a.replace(":","")}))},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(n,h,p){var f,m=S.p(h),g=C(n),b=(g.utcOffset()-this.utcOffset())*t,y=this-g,v=S.m(this,g);return v=(f={},f[d]=v/12,f[c]=v,f[u]=v/3,f[l]=(y-b)/6048e5,f[s]=(y-b)/864e5,f[o]=y/r,f[i]=y/t,f[a]=y/e,f)[m]||y,p?v:S.a(v)},b.daysInMonth=function(){return this.endOf(c).$D},b.$locale=function(){return w[this.$L]},b.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=$(e,t,!0);return n&&(r.$L=n),r},b.clone=function(){return S.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},g}(),k=_.prototype;return C.prototype=k,[["$ms",n],["$s",a],["$m",i],["$H",o],["$W",s],["$M",c],["$y",d],["$D",h]].forEach((function(e){k[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||(e(t,_,C),e.$i=!0),C},C.locale=$,C.isDayjs=x,C.unix=function(e){return C(1e3*e)},C.en=w[v],C.Ls=w,C.p={},C}();var $n,Cn=xn.exports;!function(e){e.generateDays=e=>{const t=e.startOf("month"),r=Cn(t).startOf("week");return Sn(r).map((e=>_n(e)))},e.generateMonths=e=>{const t=[];for(let r=0;r<12;r++){const n=e.month(r);t.push(Cn(n))}return t},e.generateDecadeOfYears=e=>{const t=e.year(),r=10*Math.floor(t/10),n=e.year(r),a=[n.subtract(1,"year"),n];for(let e=1;e<11;e++)a.push(n.add(e,"year"));return a},e.getStartEndDecade=e=>{const t=10*Math.floor(+e.format("YYYY")/10);return{beginDecade:t,endDecade:+Cn(`${t+9}-01-01`).format("YYYY")}}}($n||($n={}));const Sn=e=>{const t=[e];for(let r=1;r<6;r++){const n=e.add(r,"week");t.push(n)}return t},_n=e=>{const t=[];for(let r=0;r<7;r++){const n=e.add(r,"day");t.push(n)}return t},kn=[1,3,5,7,8,10,12],On=[4,6,9,11];var jn,Mn,Bn;!function(e){e.clampDay=(t,r,n)=>{const a=parseInt(t),i=parseInt(r),o=parseInt(n);return 0==a?"1":kn.includes(i)?Math.min(a,31).toString():On.includes(i)?Math.min(a,30).toString():2===i?e.isLeapYear(o)?Math.min(a,29).toString():Math.min(a,28).toString():t},e.clampMonth=e=>{const t=parseInt(e);return 0==t?"1":t>12?"12":e},e.isLeapYear=e=>e%4==0&&e%100!=0||e%400==0,e.getTimeDiffInMinutes=(e,t,r="HH:mm")=>{const n=Cn(e,r);return Cn(t,r).diff(n,"minute")}}(jn||(jn={})),function(e){e.generate=()=>Math.random().toString(36).substring(2,9)}(Mn||(Mn={})),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 a=0;t>r&&(a=Math.floor((t-r)/8));const i=n+a;if(i<e.length){const t=Math.floor(i/2);return e.substring(0,t)+" ... "+e.substring(e.length-t,e.length)}return e}}(Bn||(Bn={}));const In={collections:{base:{InputBoxShadow:x`
|
|
411
411
|
inset 0 0 6px 1px ${_r.Shadow.Accent}
|
|
412
412
|
`,InputErrorBoxShadow:x`
|
|
413
413
|
inset 0 0 6px 1px ${_r.Shadow.Red}
|
|
414
414
|
`,ElevationBoxShadow:x`
|
|
415
415
|
0px 2px 8px ${_r.Shadow.Elevation}
|
|
416
|
-
`}},defaultValue:"base"},
|
|
416
|
+
`}},defaultValue:"base"},En=e=>t=>{const r=t.theme,n=xr(In,r[$r.designTokenScheme]);return r.options?.designToken?wr(n,e,r.options.designToken):wr(n,e)},Tn=En("InputBoxShadow"),Fn=En("InputErrorBoxShadow"),Nn=(En("ElevationBoxShadow"),w.div`
|
|
417
417
|
display: flex;
|
|
418
418
|
position: relative;
|
|
419
419
|
align-items: center;
|
|
@@ -427,7 +427,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
427
427
|
:focus,
|
|
428
428
|
:focus-within {
|
|
429
429
|
border: 1px solid ${_r.Accent.Light[1]};
|
|
430
|
-
box-shadow: ${
|
|
430
|
+
box-shadow: ${Tn};
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
${e=>e.$readOnly?x`
|
|
@@ -454,17 +454,17 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
454
454
|
|
|
455
455
|
:focus-within {
|
|
456
456
|
border: 1px solid ${_r.Validation.Red.Border(e)};
|
|
457
|
-
box-shadow: ${
|
|
457
|
+
box-shadow: ${Fn};
|
|
458
458
|
}
|
|
459
459
|
`:void 0}
|
|
460
|
-
`),
|
|
460
|
+
`),Pn=w.div`
|
|
461
461
|
position: absolute;
|
|
462
462
|
top: 0;
|
|
463
463
|
left: ${e=>e.$readOnly?"-0.5rem":"1rem"};
|
|
464
464
|
height: 100%;
|
|
465
465
|
display: flex;
|
|
466
466
|
align-items: center;
|
|
467
|
-
`,
|
|
467
|
+
`,Dn=w.input`
|
|
468
468
|
${Tr("Body","regular")}
|
|
469
469
|
background: transparent;
|
|
470
470
|
height: 100%;
|
|
@@ -494,20 +494,20 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
494
494
|
${e=>{if(e.disabled)return x`
|
|
495
495
|
cursor: not-allowed;
|
|
496
496
|
`}}
|
|
497
|
-
`,
|
|
497
|
+
`,An=w(Dn)`
|
|
498
498
|
width: 2.6rem;
|
|
499
|
-
`,
|
|
499
|
+
`,Ln=w(Dn)`
|
|
500
500
|
width: 3.5rem;
|
|
501
|
-
`,
|
|
501
|
+
`,zn=w(Nr.Body)`
|
|
502
502
|
margin: 0.1rem 0.2rem 0 0.2rem;
|
|
503
503
|
${e=>{if(e.$hide)return x`
|
|
504
504
|
color: ${_r.Neutral[3]};
|
|
505
505
|
`}}
|
|
506
|
-
`;w(
|
|
506
|
+
`;w(zn)`
|
|
507
507
|
${e=>{if(e.$compress)return x`
|
|
508
508
|
margin: 0.1rem 0.1rem 0 0.1rem;
|
|
509
509
|
`}}
|
|
510
|
-
`;const
|
|
510
|
+
`;const Hn=({disabled:e,error:n,value:a,onChange:i,onBlur:c,onChangeRaw:u,onBlurRaw:d,readOnly:h,id:p,...f})=>{const[m,g]=o(""),[b,y]=o(""),[v,w]=o(""),[x,$]=o("none"),C=s(null),S=s(null),_=s(null),k=s(null),O=s(m),j=s(b),M=s(v),B=s(x),I=e=>{O.current=e,g(e)},E=e=>{j.current=e,y(e)},T=e=>{M.current=e,w(e)},F=e=>{B.current=e,$(e)};l((()=>(document.addEventListener("mousedown",N),C.current&&C.current.addEventListener("keydown",P),()=>{document.removeEventListener("mousedown",N),C.current&&C.current.removeEventListener("keydown",P)})),[x]),l((()=>{"day"===x&&2===m.length&&_.current&&_.current.focus()}),[m]),l((()=>{"month"===x&&2===b.length&&k.current&&k.current.focus()}),[b]),l((()=>{H(a)}),[a]);const N=t=>{e||h||C&&C.current.contains(t.target)||"none"!==B.current&&(F("none"),V())},P=e=>{"year"===e.target.name&&"Tab"===e.code&&(F("none"),V())},D=e=>{F(e.target.name),e.target.select()},A=e=>{const t=e.target.name,r=Bn.padValue(e.target.value,!0);switch(t){case"day":I(r);break;case"month":E(r)}const n=m.length&&b.length&&4===v.length,a="day"===t,i=jn.clampMonth(b);n&&(I(Bn.padValue(jn.clampDay(a?r:m,i,v))),E(Bn.padValue(i)))},L=e=>{const t=e.target.name,r=e.target.value.replace(/[^0-9]/g,"");switch(t){case"day":I(r),R(r,t);break;case"month":E(r),R(r,t);break;case"year":T(r),R(r,t)}},z=e=>{"Backspace"!==e.code&&"Backspace"!==e.key||("month"===x&&0===b.length&&S.current.focus(),"year"===x&&0===v.length&&_.current.focus())},H=e=>{if(void 0===e||""===e)I(""),E(""),T("");else{const t=new Date(e);if(!isNaN(t.getTime())){const e=(t.getMonth()+1).toString(),r=t.getFullYear().toString(),n=jn.clampDay(t.getDate().toString(),e,r);I(Bn.padValue(n)),E(Bn.padValue(e)),T(r)}}},R=(e,t)=>{if(i){const r={day:m,month:b,year:v};r[t]=e;const n=W(r);i(n)}if(u){const r=[..."day"===t?[Bn.padValue(e)]:[m],..."month"===t?[Bn.padValue(e)]:[b],..."year"===t?[e]:[v]];u(r)}},V=()=>{if(c){const e={day:O.current,month:j.current,year:M.current},t=W(e);c(t)}if(d){const e=[Bn.padValue(O.current.toString()),Bn.padValue(j.current.toString()),M.current];d(e)}},W=e=>{const t=[e.year,e.month,e.day];return e.day.length>=1&&e.month.length>=1&&4===e.year.length?t.join("-"):t.every((e=>""===e))?"":Rn};return r(Nn,{ref:C,onClick:()=>{"none"===x&&S.current&&S.current.focus()},disabled:e,$error:n,id:p,"data-testid":f["data-testid"],$readOnly:h,children:t(Pn,{$readOnly:h,children:[r(Dn,{name:"day",maxLength:2,value:m,ref:S,onFocus:D,onBlur:A,onChange:L,disabled:e,type:"text",inputMode:"numeric",pattern:"[0-9]{2}","data-testid":"day-input","aria-label":"day-input",readOnly:h,placeholder:"day"!==x||h?"DD":""}),r(zn,{$hide:0===m.length,children:"/"}),r(An,{name:"month",maxLength:2,value:b,ref:_,onFocus:D,onBlur:A,onChange:L,onKeyDown:z,disabled:e,type:"text",inputMode:"numeric",pattern:"[0-9]{2}","data-testid":"month-input","aria-label":"month-input",readOnly:h,placeholder:"month"!==x||h?"MM":""}),r(zn,{$hide:0===b.length,children:"/"}),r(Ln,{name:"year",maxLength:4,value:v,ref:k,onFocus:D,onBlur:A,onChange:L,onKeyDown:z,disabled:e,type:"text",inputMode:"numeric",pattern:"[0-9]{4}","data-testid":"year-input","aria-label":"year-input",readOnly:h,placeholder:"year"!==x||h?"YYYY":""})]})})},Rn="Invalid date",Vn=w.div`
|
|
511
511
|
display: flex;
|
|
512
512
|
align-items: center;
|
|
513
513
|
position: relative;
|
|
@@ -521,7 +521,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
521
521
|
|
|
522
522
|
:focus-within {
|
|
523
523
|
border: 1px solid ${_r.Accent.Light[1]};
|
|
524
|
-
box-shadow: ${
|
|
524
|
+
box-shadow: ${Tn};
|
|
525
525
|
}
|
|
526
526
|
|
|
527
527
|
${e=>e.$readOnly?x`
|
|
@@ -546,10 +546,10 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
546
546
|
|
|
547
547
|
:focus-within {
|
|
548
548
|
border: 1px solid ${_r.Validation.Red.Border(e)};
|
|
549
|
-
box-shadow: ${
|
|
549
|
+
box-shadow: ${Fn};
|
|
550
550
|
}
|
|
551
551
|
`:void 0}
|
|
552
|
-
`,
|
|
552
|
+
`,Wn=w.input`
|
|
553
553
|
${Tr("Body","regular")}
|
|
554
554
|
color: ${_r.Neutral[1]};
|
|
555
555
|
|
|
@@ -585,7 +585,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
585
585
|
`:e.disabled?x`
|
|
586
586
|
cursor: not-allowed;
|
|
587
587
|
`:void 0}
|
|
588
|
-
`,
|
|
588
|
+
`,Un=w.button`
|
|
589
589
|
position: relative;
|
|
590
590
|
height: auto;
|
|
591
591
|
padding: 0 1rem;
|
|
@@ -596,10 +596,10 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
596
596
|
color: ${_r.Neutral[3]};
|
|
597
597
|
background-color: transparent;
|
|
598
598
|
border: none;
|
|
599
|
-
`,
|
|
599
|
+
`,qn=w(Gr)`
|
|
600
600
|
height: 1.25rem;
|
|
601
601
|
width: 1.25rem;
|
|
602
|
-
`,
|
|
602
|
+
`,Qn=i.forwardRef((({value:e,spacing:n,type:a,error:i,disabled:o,readOnly:l,onChange:c,onClear:u,allowClear:h=!1,className:p,...f},m)=>{const g=s();d(m,(()=>g.current),[]);const b=()=>"tel"===a&&n,y=e=>{const t=e.target,r=t.value,n=t.value.replace(/\s/g,"");t.value=n,c(e),t.value=r},v=e?(e=>e?b()?Bn.transformWithSpaces(e,n):e:"")(e):e;return t(Vn,{disabled:o,$error:i,$readOnly:l,className:p,children:[r(Wn,{"data-testid":"input",ref:g,disabled:o,value:v,onChange:e=>{c&&(b()?y(e):c(e))},type:a,readOnly:l,...f}),h&&!o&&!l&&!!e&&r(Un,{onClick:()=>{u&&u(),g&&g.current&&g.current.focus()},children:r(qn,{})})]})})),Zn=i.forwardRef(((e,t)=>{const{label:n,errorMessage:a,id:i="form-field","data-error-testid":o,"data-testid":s,...l}=e;return r(wn,{id:i,label:n,errorMessage:a,disabled:l.disabled,"data-error-testid":o,children:r(Qn,{id:`${i}-base`,"data-testid":s||i,ref:t,error:!!a,...l})})})),Yn=w.div`
|
|
603
603
|
display: flex;
|
|
604
604
|
position: relative;
|
|
605
605
|
border: 1px solid ${_r.Neutral[5]};
|
|
@@ -612,7 +612,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
612
612
|
|
|
613
613
|
:focus-within {
|
|
614
614
|
border: 1px solid ${_r.Accent.Light[1]};
|
|
615
|
-
box-shadow: ${
|
|
615
|
+
box-shadow: ${Tn};
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
${e=>e.$readOnly?x`
|
|
@@ -639,10 +639,10 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
639
639
|
|
|
640
640
|
:focus-within {
|
|
641
641
|
border: 1px solid ${_r.Validation.Red.Border(e)};
|
|
642
|
-
box-shadow: ${
|
|
642
|
+
box-shadow: ${Fn};
|
|
643
643
|
}
|
|
644
644
|
`:void 0}
|
|
645
|
-
`,
|
|
645
|
+
`,Gn=w(Qn)`
|
|
646
646
|
// overwrite default styles
|
|
647
647
|
&&& {
|
|
648
648
|
background: transparent;
|
|
@@ -655,7 +655,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
655
655
|
box-shadow: none;
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
|
-
`,
|
|
658
|
+
`,Xn=w.div`
|
|
659
659
|
position: relative;
|
|
660
660
|
display: flex;
|
|
661
661
|
align-items: center;
|
|
@@ -686,19 +686,19 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
686
686
|
`:x`
|
|
687
687
|
margin-right: ${e.$readOnly?"0.25rem":"0.75rem"};
|
|
688
688
|
`};
|
|
689
|
-
`;var Xn=function(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i<a;)if(t(e[i],i,e))return i;return-1},Kn=It;var Jn=It,ea=Et,ta=Zt;var ra=It,na=function(){this.__data__=new Kn,this.size=0},aa=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ia=function(e){return this.__data__.get(e)},oa=function(e){return this.__data__.has(e)},sa=function(e,t){var r=this.__data__;if(r instanceof Jn){var n=r.__data__;if(!ea||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ta(n)}return r.set(e,t),this.size=r.size,this};function la(e){var t=this.__data__=new ra(e);this.size=t.size}la.prototype.clear=na,la.prototype.delete=aa,la.prototype.get=ia,la.prototype.has=oa,la.prototype.set=sa;var ca=la;var ua=Zt,da=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ha=function(e){return this.__data__.has(e)};function pa(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new ua;++t<r;)this.add(e[t])}pa.prototype.add=pa.prototype.push=da,pa.prototype.has=ha;var fa=pa,ma=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},ga=function(e,t){return e.has(t)};var ba=function(e,t,r,n,a,i){var o=1&r,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=2&r?new fa:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var f=e[d],m=t[d];if(n)var g=o?n(m,f,d,t,e,i):n(f,m,d,e,t,i);if(void 0!==g){if(g)continue;h=!1;break}if(p){if(!ma(t,(function(e,t){if(!ga(p,t)&&(f===e||a(f,e,r,n,i)))return p.push(t)}))){h=!1;break}}else if(f!==m&&!a(f,m,r,n,i)){h=!1;break}}return i.delete(e),i.delete(t),h};var ya=A.Uint8Array,va=bt,wa=ba,xa=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r},$a=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Ca=U?U.prototype:void 0,Sa=Ca?Ca.valueOf:void 0;var _a=function(e,t,r,n,a,i,o){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||!i(new ya(e),new ya(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return va(+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=xa;case"[object Set]":var l=1&n;if(s||(s=$a),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=2,o.set(e,t);var u=wa(s(e),s(t),n,a,i,o);return o.delete(e),u;case"[object Symbol]":if(Sa)return Sa.call(e)==Sa.call(t)}return!1};var ka=function(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e},Oa=_e;var ja=function(e,t,r){var n=t(e);return Oa(e)?n:ka(n,r(e))};var Ma=function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i},Ba=function(){return[]},Ia=Object.prototype.propertyIsEnumerable,Ea=Object.getOwnPropertySymbols,Ta=Ea?function(e){return null==e?[]:(e=Object(e),Ma(Ea(e),(function(t){return Ia.call(e,t)})))}:Ba;var Fa=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},Na=re,Pa=ne;var Da=function(e){return Pa(e)&&"[object Arguments]"==Na(e)},Aa=ne,La=Object.prototype,za=La.hasOwnProperty,Ha=La.propertyIsEnumerable,Ra=Da(function(){return arguments}())?Da:function(e){return Aa(e)&&za.call(e,"callee")&&!Ha.call(e,"callee")},Va={exports:{}};var Wa=function(){return!1};!function(e,t){var r=A,n=Wa,a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,o=i&&i.exports===a?r.Buffer:void 0,s=(o?o.isBuffer:void 0)||n;e.exports=s}(Va,Va.exports);var Ua=/^(?:0|[1-9]\d*)$/;var qa=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Ua.test(e))&&e>-1&&e%1==0&&e<t};var Qa=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Za=re,Ya=Qa,Ga=ne,Xa={};Xa["[object Float32Array]"]=Xa["[object Float64Array]"]=Xa["[object Int8Array]"]=Xa["[object Int16Array]"]=Xa["[object Int32Array]"]=Xa["[object Uint8Array]"]=Xa["[object Uint8ClampedArray]"]=Xa["[object Uint16Array]"]=Xa["[object Uint32Array]"]=!0,Xa["[object Arguments]"]=Xa["[object Array]"]=Xa["[object ArrayBuffer]"]=Xa["[object Boolean]"]=Xa["[object DataView]"]=Xa["[object Date]"]=Xa["[object Error]"]=Xa["[object Function]"]=Xa["[object Map]"]=Xa["[object Number]"]=Xa["[object Object]"]=Xa["[object RegExp]"]=Xa["[object Set]"]=Xa["[object String]"]=Xa["[object WeakMap]"]=!1;var Ka=function(e){return Ga(e)&&Ya(e.length)&&!!Xa[Za(e)]};var Ja=function(e){return function(t){return e(t)}},ei={exports:{}};!function(e,t){var r=N,n=t&&!t.nodeType&&t,a=n&&e&&!e.nodeType&&e,i=a&&a.exports===n&&r.process,o=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o}(ei,ei.exports);var ti=Ka,ri=Ja,ni=ei.exports,ai=ni&&ni.isTypedArray,ii=ai?ri(ai):ti,oi=Fa,si=Ra,li=_e,ci=Va.exports,ui=qa,di=ii,hi=Object.prototype.hasOwnProperty;var pi=function(e,t){var r=li(e),n=!r&&si(e),a=!r&&!n&&ci(e),i=!r&&!n&&!a&&di(e),o=r||n||a||i,s=o?oi(e.length,String):[],l=s.length;for(var c in e)!t&&!hi.call(e,c)||o&&("length"==c||a&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ui(c,l))||s.push(c);return s},fi=Object.prototype;var mi=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||fi)};var gi=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),bi=mi,yi=gi,vi=Object.prototype.hasOwnProperty;var wi=Fe,xi=Qa;var $i=function(e){return null!=e&&xi(e.length)&&!wi(e)},Ci=pi,Si=function(e){if(!bi(e))return yi(e);var t=[];for(var r in Object(e))vi.call(e,r)&&"constructor"!=r&&t.push(r);return t},_i=$i;var ki=function(e){return _i(e)?Ci(e):Si(e)},Oi=ja,ji=Ta,Mi=ki;var Bi=function(e){return Oi(e,Mi,ji)},Ii=Object.prototype.hasOwnProperty;var Ei=function(e,t,r,n,a,i){var o=1&r,s=Bi(e),l=s.length;if(l!=Bi(t).length&&!o)return!1;for(var c=l;c--;){var u=s[c];if(!(o?u in t:Ii.call(t,u)))return!1}var d=i.get(e),h=i.get(t);if(d&&h)return d==t&&h==e;var p=!0;i.set(e,t),i.set(t,e);for(var f=o;++c<l;){var m=e[u=s[c]],g=t[u];if(n)var b=o?n(g,m,u,t,e,i):n(m,g,u,e,t,i);if(!(void 0===b?m===g||a(m,g,r,n,i):b)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var y=e.constructor,v=t.constructor;y==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(p=!1)}return i.delete(e),i.delete(t),p},Ti=Ke(A,"DataView"),Fi=Et,Ni=Ke(A,"Promise"),Pi=Ke(A,"Set"),Di=Ke(A,"WeakMap"),Ai=re,Li=Le,zi="[object Map]",Hi="[object Promise]",Ri="[object Set]",Vi="[object WeakMap]",Wi="[object DataView]",Ui=Li(Ti),qi=Li(Fi),Qi=Li(Ni),Zi=Li(Pi),Yi=Li(Di),Gi=Ai;(Ti&&Gi(new Ti(new ArrayBuffer(1)))!=Wi||Fi&&Gi(new Fi)!=zi||Ni&&Gi(Ni.resolve())!=Hi||Pi&&Gi(new Pi)!=Ri||Di&&Gi(new Di)!=Vi)&&(Gi=function(e){var t=Ai(e),r="[object Object]"==t?e.constructor:void 0,n=r?Li(r):"";if(n)switch(n){case Ui:return Wi;case qi:return zi;case Qi:return Hi;case Zi:return Ri;case Yi:return Vi}return t});var Xi=ca,Ki=ba,Ji=_a,eo=Ei,to=Gi,ro=_e,no=Va.exports,ao=ii,io="[object Arguments]",oo="[object Array]",so="[object Object]",lo=Object.prototype.hasOwnProperty;var co=function(e,t,r,n,a,i){var o=ro(e),s=ro(t),l=o?oo:to(e),c=s?oo:to(t),u=(l=l==io?so:l)==so,d=(c=c==io?so:c)==so,h=l==c;if(h&&no(e)){if(!no(t))return!1;o=!0,u=!1}if(h&&!u)return i||(i=new Xi),o||ao(e)?Ki(e,t,r,n,a,i):Ji(e,t,l,r,n,a,i);if(!(1&r)){var p=u&&lo.call(e,"__wrapped__"),f=d&&lo.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,g=f?t.value():t;return i||(i=new Xi),a(m,g,r,n,i)}}return!!h&&(i||(i=new Xi),eo(e,t,r,n,a,i))},uo=ne;var ho=function e(t,r,n,a,i){return t===r||(null==t||null==r||!uo(t)&&!uo(r)?t!=t&&r!=r:co(t,r,n,a,e,i))},po=ca,fo=ho;var mo=F;var go=function(e){return e==e&&!mo(e)},bo=go,yo=ki;var vo=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},wo=function(e,t,r,n){var a=r.length,i=a,o=!n;if(null==e)return!i;for(e=Object(e);a--;){var s=r[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){var l=(s=r[a])[0],c=e[l],u=s[1];if(o&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new po;if(n)var h=n(c,u,l,e,t,d);if(!(void 0===h?fo(u,c,3,n,d):h))return!1}}return!0},xo=function(e){for(var t=yo(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,bo(a)]}return t},$o=vo;var Co=hr,So=Ra,_o=_e,ko=qa,Oo=Qa,jo=fr;var Mo=function(e,t){return null!=e&&t in Object(e)},Bo=function(e,t,r){for(var n=-1,a=(t=Co(t,e)).length,i=!1;++n<a;){var o=jo(t[n]);if(!(i=null!=e&&r(e,o)))break;e=e[o]}return i||++n!=a?i:!!(a=null==e?0:e.length)&&Oo(a)&&ko(o,a)&&(_o(e)||So(e))};var Io=ho,Eo=vr,To=function(e,t){return null!=e&&Bo(e,t,Mo)},Fo=Be,No=go,Po=vo,Do=fr;var Ao=br;var Lo=function(e){return function(t){return null==t?void 0:t[e]}},zo=function(e){return function(t){return Ao(t,e)}},Ho=Be,Ro=fr;var Vo=function(e){var t=xo(e);return 1==t.length&&t[0][2]?$o(t[0][0],t[0][1]):function(r){return r===e||wo(r,e,t)}},Wo=function(e,t){return Fo(e)&&No(t)?Po(Do(e),t):function(r){var n=Eo(r,e);return void 0===n&&n===t?To(r,e):Io(t,n,3)}},Uo=function(e){return e},qo=_e,Qo=function(e){return Ho(e)?Lo(Ro(e)):zo(e)};var Zo=function(e){return"function"==typeof e?e:null==e?Uo:"object"==typeof e?qo(e)?Wo(e[0],e[1]):Vo(e):Qo(e)},Yo=fe,Go=1/0;var Xo=function(e){return e?(e=Yo(e))===Go||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var Ko=Xn,Jo=Zo,es=function(e){var t=Xo(e),r=t%1;return t==t?r?t-r:t:0},ts=Math.max;var rs=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=null==r?0:es(r);return a<0&&(a=ts(n+a,0)),Ko(e,Jo(t),a)};let ns=vs();const as=e=>ms(e,ns);let is=vs();as.write=e=>ms(e,is);let os=vs();as.onStart=e=>ms(e,os);let ss=vs();as.onFrame=e=>ms(e,ss);let ls=vs();as.onFinish=e=>ms(e,ls);let cs=[];as.setTimeout=(e,t)=>{let r=as.now()+t,n=()=>{let e=cs.findIndex((e=>e.cancel==n));~e&&cs.splice(e,1),ps-=~e?1:0},a={time:r,handler:e,cancel:n};return cs.splice(us(r),0,a),ps+=1,gs(),a};let us=e=>~(~cs.findIndex((t=>t.time>e))||~cs.length);as.cancel=e=>{os.delete(e),ss.delete(e),ls.delete(e),ns.delete(e),is.delete(e)},as.sync=e=>{fs=!0,as.batchedUpdates(e),fs=!1},as.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...e){t=e,as.onStart(r)}return n.handler=e,n.cancel=()=>{os.delete(r),t=null},n};let ds="undefined"!=typeof window?window.requestAnimationFrame:()=>{};as.use=e=>ds=e,as.now="undefined"!=typeof performance?()=>performance.now():Date.now,as.batchedUpdates=e=>e(),as.catch=console.error,as.frameLoop="always",as.advance=()=>{"demand"!==as.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):ys()};let hs=-1,ps=0,fs=!1;function ms(e,t){fs?(t.delete(e),e(0)):(t.add(e),gs())}function gs(){hs<0&&(hs=0,"demand"!==as.frameLoop&&ds(bs))}function bs(){~hs&&(ds(bs),as.batchedUpdates(ys))}function ys(){let e=hs;hs=as.now();let t=us(hs);t&&(ws(cs.splice(0,t),(e=>e.handler())),ps-=t),ps?(os.flush(),ns.flush(e?Math.min(64,hs-e):16.667),ss.flush(),is.flush(),ls.flush()):hs=-1}function vs(){let e=new Set,t=e;return{add(r){ps+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(ps-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,ps-=t.size,ws(t,(t=>t(r)&&e.add(t))),ps+=e.size,t=e)}}}function ws(e,t){e.forEach((e=>{try{t(e)}catch(e){as.catch(e)}}))}function xs(){}const $s={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 Cs(e,t){if($s.arr(e)){if(!$s.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 Ss=(e,t)=>e.forEach(t);function _s(e,t,r){if($s.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 ks=e=>$s.und(e)?[]:$s.arr(e)?e:[e];function Os(e,t){if(e.size){const r=Array.from(e);e.clear(),Ss(r,t)}}const js=(e,...t)=>Os(e,(e=>e(...t))),Ms=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let Bs,Is,Es=null,Ts=!1,Fs=xs;var Ns=Object.freeze({__proto__:null,get createStringInterpolator(){return Bs},get to(){return Is},get colors(){return Es},get skipAnimation(){return Ts},get willAdvance(){return Fs},assign:e=>{e.to&&(Is=e.to),e.now&&(as.now=e.now),void 0!==e.colors&&(Es=e.colors),null!=e.skipAnimation&&(Ts=e.skipAnimation),e.createStringInterpolator&&(Bs=e.createStringInterpolator),e.requestAnimationFrame&&as.use(e.requestAnimationFrame),e.batchedUpdates&&(as.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Fs=e.willAdvance),e.frameLoop&&(as.frameLoop=e.frameLoop)}});const Ps=new Set;let Ds=[],As=[],Ls=0;const zs={get idle(){return!Ps.size&&!Ds.length},start(e){Ls>e.priority?(Ps.add(e),as.onStart(Hs)):(Rs(e),as(Ws))},advance:Ws,sort(e){if(Ls)as.onFrame((()=>zs.sort(e)));else{const t=Ds.indexOf(e);~t&&(Ds.splice(t,1),Vs(e))}},clear(){Ds=[],Ps.clear()}};function Hs(){Ps.forEach(Rs),Ps.clear(),as(Ws)}function Rs(e){Ds.includes(e)||Vs(e)}function Vs(e){Ds.splice(function(e,t){const r=e.findIndex(t);return r<0?e.length:r}(Ds,(t=>t.priority>e.priority)),0,e)}function Ws(e){const t=As;for(let r=0;r<Ds.length;r++){const n=Ds[r];Ls=n.priority,n.idle||(Fs(n),n.advance(e),n.idle||t.push(n))}return Ls=0,As=Ds,As.length=0,Ds=t,Ds.length>0}const Us="[-+]?\\d*\\.?\\d+",qs=Us+"%";function Qs(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const Zs=new RegExp("rgb"+Qs(Us,Us,Us)),Ys=new RegExp("rgba"+Qs(Us,Us,Us,Us)),Gs=new RegExp("hsl"+Qs(Us,qs,qs)),Xs=new RegExp("hsla"+Qs(Us,qs,qs,Us)),Ks=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Js=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,el=/^#([0-9a-fA-F]{6})$/,tl=/^#([0-9a-fA-F]{8})$/;function rl(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 nl(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,a=2*r-n,i=rl(a,n,e+1/3),o=rl(a,n,e),s=rl(a,n,e-1/3);return Math.round(255*i)<<24|Math.round(255*o)<<16|Math.round(255*s)<<8}function al(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function il(e){return(parseFloat(e)%360+360)%360/360}function ol(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function sl(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function ll(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=el.exec(e))?parseInt(t[1]+"ff",16)>>>0:Es&&void 0!==Es[e]?Es[e]:(t=Zs.exec(e))?(al(t[1])<<24|al(t[2])<<16|al(t[3])<<8|255)>>>0:(t=Ys.exec(e))?(al(t[1])<<24|al(t[2])<<16|al(t[3])<<8|ol(t[4]))>>>0:(t=Ks.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=tl.exec(e))?parseInt(t[1],16)>>>0:(t=Js.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Gs.exec(e))?(255|nl(il(t[1]),sl(t[2]),sl(t[3])))>>>0:(t=Xs.exec(e))?(nl(il(t[1]),sl(t[2]),sl(t[3]))|ol(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 cl=(e,t,r)=>{if($s.fun(e))return e;if($s.arr(e))return cl({range:e,output:t,extrapolate:r});if($s.str(e.output[0]))return Bs(e);const n=e,a=n.output,i=n.range||[0,1],o=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,i);return function(e,t,r,n,a,i,o,s,l){let c=l?l(e):e;if(c<t){if("identity"===o)return c;"clamp"===o&&(c=t)}if(c>r){if("identity"===s)return c;"clamp"===s&&(c=r)}if(n===a)return n;if(t===r)return e<=t?n:a;t===-1/0?c=-c:r===1/0?c-=t:c=(c-t)/(r-t);c=i(c),n===-1/0?c=-c:a===1/0?c+=n:c=c*(a-n)+n;return c}(e,i[t],i[t+1],a[t],a[t+1],l,o,s,n.map)}};const ul=1.70158,dl=1.525*ul,hl=ul+1,pl=2*Math.PI/3,fl=2*Math.PI/4.5,ml=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},gl={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=>hl*e*e*e-ul*e*e,easeOutBack:e=>1+hl*Math.pow(e-1,3)+ul*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-dl)/2:(Math.pow(2*e-2,2)*((dl+1)*(2*e-2)+dl)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*pl),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*pl)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*fl)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*fl)/2+1,easeInBounce:e=>1-ml(1-e),easeOutBounce:ml,easeInOutBounce:e=>e<.5?(1-ml(1-2*e))/2:(1+ml(2*e-1))/2,steps:(e,t="end")=>r=>{const n=(r="end"===t?Math.min(r,.999):Math.max(r,.001))*e,a="end"===t?Math.floor(n):Math.ceil(n);return i=0,o=1,s=a/e,Math.min(Math.max(s,i),o);var i,o,s}};function bl(){return bl=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},bl.apply(this,arguments)}const yl=Symbol.for("FluidValue.get"),vl=Symbol.for("FluidValue.observers"),wl=e=>Boolean(e&&e[yl]),xl=e=>e&&e[yl]?e[yl]():e,$l=e=>e[vl]||null;function Cl(e,t){let r=e[vl];r&&r.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class Sl{constructor(e){if(this[yl]=void 0,this[vl]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");_l(this,e)}}const _l=(e,t)=>jl(e,yl,t);function kl(e,t){if(e[yl]){let r=e[vl];r||jl(e,vl,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function Ol(e,t){let r=e[vl];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[vl]=null,e.observerRemoved&&e.observerRemoved(n,t)}}const jl=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),Ml=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Bl=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Il=new RegExp(`(${Ml.source})(%|[a-z]+)`,"i"),El=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Tl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Fl=e=>{const[t,r]=Nl(e);if(!t||Ms())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&&Tl.test(r)?Fl(r):r||e},Nl=e=>{const t=Tl.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]};let Pl;const Dl=(e,t,r,n,a)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${a})`,Al=e=>{Pl||(Pl=Es?new RegExp(`(${Object.keys(Es).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>xl(e).replace(Tl,Fl).replace(Bl,ll).replace(Pl,ll))),r=t.map((e=>e.match(Ml).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=>cl(bl({},e,{output:t}))));return e=>{var r;const a=!Il.test(t[0])&&(null==(r=t.find((e=>Il.test(e))))?void 0:r.replace(Ml,""));let i=0;return t[0].replace(Ml,(()=>`${n[i++](e)}${a||""}`)).replace(El,Dl)}},Ll="react-spring: ",zl=e=>{const t=e;let r=!1;if("function"!=typeof t)throw new TypeError(`${Ll}once requires a function parameter`);return(...e)=>{r||(t(...e),r=!0)}},Hl=zl(console.warn);const Rl=zl(console.warn);function Vl(e){return $s.str(e)&&("#"==e[0]||/\d/.test(e)||!Ms()&&Tl.test(e)||e in(Es||{}))}const Wl=Ms()?l:h,Ul=()=>{const e=s(!1);return Wl((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function ql(){const e=o()[1],t=Ul();return()=>{t.current&&e(Math.random())}}const Ql=e=>l(e,Zl),Zl=[];function Yl(e){const t=s();return l((()=>{t.current=e})),t.current}const Gl=Symbol.for("Animated:node"),Xl=e=>e&&e[Gl],Kl=(e,t)=>{return r=e,n=Gl,a=t,Object.defineProperty(r,n,{value:a,writable:!0,configurable:!0});var r,n,a},Jl=e=>e&&e[Gl]&&e[Gl].getPayload();class ec{constructor(){this.payload=void 0,Kl(this,this)}getPayload(){return this.payload||[]}}class tc extends ec{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,$s.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new tc(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return $s.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,$s.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class rc extends tc{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=cl({output:[e,e]})}static create(e){return new rc(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if($s.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=cl({output:[this.getValue(),e]})),this._value=0,super.reset()}}const nc={dependencies:null};class ac extends ec{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return _s(this.source,((r,n)=>{var a;(a=r)&&a[Gl]===a?t[n]=r.getValue(e):wl(r)?t[n]=xl(r):e||(t[n]=r)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ss(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return _s(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){nc.dependencies&&wl(e)&&nc.dependencies.add(e);const t=Jl(e);t&&Ss(t,(e=>this.add(e)))}}class ic extends ac{constructor(e){super(e)}static create(e){return new ic(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(oc)),!0)}}function oc(e){return(Vl(e)?rc:tc).create(e)}function sc(e){const t=Xl(e);return t?t.constructor:$s.arr(e)?ic:Vl(e)?rc:tc}function lc(){return lc=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},lc.apply(this,arguments)}const cc=(e,t)=>{const r=!$s.fun(e)||e.prototype&&e.prototype.isReactComponent;return p(((n,i)=>{const o=s(null),c=r&&f((e=>{o.current=function(e,t){e&&($s.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[u,d]=function(e,t){const r=new Set;nc.dependencies=r,e.style&&(e=lc({},e,{style:t.createAnimatedStyle(e.style)}));return e=new ac(e),nc.dependencies=null,[e,r]}(n,t),h=ql(),p=()=>{const e=o.current;if(r&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))&&h()},m=new uc(p,d),g=s();Wl((()=>(g.current=m,Ss(d,(e=>kl(e,m))),()=>{g.current&&(Ss(g.current.deps,(e=>Ol(e,g.current))),as.cancel(g.current.update))}))),l(p,[]),Ql((()=>()=>{const e=g.current;Ss(e.deps,(t=>Ol(t,e)))}));const b=t.getComponentProps(u.getValue());return a.createElement(e,lc({},b,{ref:c}))}))};class uc{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&as.write(this.update)}}const dc=Symbol.for("AnimatedComponent"),hc=e=>$s.str(e)?e:e&&$s.str(e.displayName)?e.displayName:$s.fun(e)&&e.name||null;function pc(){return pc=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},pc.apply(this,arguments)}function fc(e,...t){return $s.fun(e)?e(...t):e}const mc=(e,t)=>!0===e||!!(t&&e&&($s.fun(e)?e(t):ks(e).includes(t))),gc=(e,t)=>$s.obj(e)?t&&e[t]:e,bc=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,yc=e=>e,vc=(e,t=yc)=>{let r=wc;e.default&&!0!==e.default&&(e=e.default,r=Object.keys(e));const n={};for(const a of r){const r=t(e[a],a);$s.und(r)||(n[a]=r)}return n},wc=["config","onProps","onStart","onChange","onPause","onResume","onRest"],xc={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 $c(e){const t=function(e){const t={};let r=0;if(_s(e,((e,n)=>{xc[n]||(t[n]=e,r++)})),r)return t}(e);if(t){const r={to:t};return _s(e,((e,n)=>n in t||(r[n]=e))),r}return pc({},e)}function Cc(e){return e=xl(e),$s.arr(e)?e.map(Cc):Vl(e)?Ns.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Sc(e){return $s.fun(e)||$s.arr(e)&&$s.obj(e[0])}const _c=pc({},{tension:170,friction:26},{mass:1,damping:1,easing:gl.linear,clamp:!1});class kc{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,_c)}}function Oc(e,t){if($s.und(t.decay)){const r=!$s.und(t.tension)||!$s.und(t.friction);!r&&$s.und(t.frequency)&&$s.und(t.damping)&&$s.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}const jc=[];class Mc{constructor(){this.changed=!1,this.values=jc,this.toValues=null,this.fromValues=jc,this.to=void 0,this.from=void 0,this.config=new kc,this.immediate=!1}}function Bc(e,{key:t,props:r,defaultProps:n,state:a,actions:i}){return new Promise(((o,s)=>{var l;let c,u,d=mc(null!=(l=r.cancel)?l:null==n?void 0:n.cancel,t);if(d)f();else{$s.und(r.pause)||(a.paused=mc(r.pause,t));let e=null==n?void 0:n.pause;!0!==e&&(e=a.paused||mc(e,t)),c=fc(r.delay||0,t),e?(a.resumeQueue.add(p),i.pause()):(i.resume(),p())}function h(){a.resumeQueue.add(p),a.timeouts.delete(u),u.cancel(),c=u.time-as.now()}function p(){c>0&&!Ns.skipAnimation?(a.delayed=!0,u=as.setTimeout(f,c),a.pauseQueue.add(h),a.timeouts.add(u)):f()}function f(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(h),a.timeouts.delete(u),e<=(a.cancelId||0)&&(d=!0);try{i.start(pc({},r,{callId:e,cancel:d}),o)}catch(e){s(e)}}}))}const Ic=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Fc(e.get()):t.every((e=>e.noop))?Ec(e.get()):Tc(e.get(),t.every((e=>e.finished))),Ec=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Tc=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),Fc=e=>({value:e,cancelled:!0,finished:!1});function Nc(e,t,r,n){const{callId:a,parentId:i,onRest:o}=t,{asyncTo:s,promise:l}=r;return i||e!==s||t.reset?r.promise=(async()=>{r.asyncId=a,r.asyncTo=e;const c=vc(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=a<=(r.cancelId||0)&&Fc(n)||a!==r.asyncId&&Tc(n,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const i=new Dc,o=new Ac;return(async()=>{if(Ns.skipAnimation)throw Pc(r),o.result=Tc(n,!1),d(o),o;p(i);const s=$s.obj(e)?pc({},e):pc({},t,{to:e});s.parentId=a,_s(c,((e,t)=>{$s.und(s[t])&&(s[t]=e)}));const l=await n.start(s);return p(i),r.paused&&await new Promise((e=>{r.resumeQueue.add(e)})),l})()};let m;if(Ns.skipAnimation)return Pc(r),Tc(n,!1);try{let t;t=$s.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]),m=Tc(n.get(),!0,!1)}catch(e){if(e instanceof Dc)m=e.result;else{if(!(e instanceof Ac))throw e;m=e.result}}finally{a==r.asyncId&&(r.asyncId=i,r.asyncTo=i?s:void 0,r.promise=i?l:void 0)}return $s.fun(o)&&as.batchedUpdates((()=>{o(m,n,n.item)})),m})():l}function Pc(e,t){Os(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class Dc 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 Ac extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const Lc=e=>e instanceof Hc;let zc=1;class Hc extends Sl{constructor(...e){super(...e),this.id=zc++,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=Xl(this);return e&&e.getValue()}to(...e){return Ns.to(this,e)}interpolate(...e){return Hl(`${Ll}The "interpolate" function is deprecated in v9 (use "to" instead)`),Ns.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){Cl(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||zs.sort(this),Cl(this,{type:"priority",parent:this,priority:e})}}const Rc=Symbol.for("SpringPhase"),Vc=e=>(1&e[Rc])>0,Wc=e=>(2&e[Rc])>0,Uc=e=>(4&e[Rc])>0,qc=(e,t)=>t?e[Rc]|=3:e[Rc]&=-3,Qc=(e,t)=>t?e[Rc]|=4:e[Rc]&=-5;class Zc extends Hc{constructor(e,t){if(super(),this.key=void 0,this.animation=new Mc,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,!$s.und(e)||!$s.und(t)){const r=$s.obj(e)?pc({},e):pc({},t,{from:e});$s.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(Wc(this)||this._state.asyncTo)||Uc(this)}get goal(){return xl(this.animation.to)}get velocity(){const e=Xl(this);return e instanceof tc?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return Vc(this)}get isAnimating(){return Wc(this)}get isPaused(){return Uc(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{config:a,toValues:i}=n;const o=Jl(n.to);!o&&wl(n.to)&&(i=ks(xl(n.to))),n.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==rc?1:o?o[l].lastPosition:i[l];let u=n.immediate,d=c;if(!u){if(d=s.lastPosition,a.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const r=n.fromValues[l],i=null!=s.v0?s.v0:s.v0=$s.arr(a.velocity)?a.velocity[l]:a.velocity;let o;const h=a.precision||(r==c?.005:Math.min(1,.001*Math.abs(c-r)));if($s.und(a.duration))if(a.decay){const e=!0===a.decay?.998:a.decay,n=Math.exp(-(1-e)*t);d=r+i/(1-e)*(1-n),u=Math.abs(s.lastPosition-d)<=h,o=i*n}else{o=null==s.lastVelocity?i:s.lastVelocity;const t=a.restVelocity||h/10,n=a.clamp?0:a.bounce,l=!$s.und(n),p=r==c?s.v0>0:r<c;let f,m=!1;const g=1,b=Math.ceil(e/g);for(let e=0;e<b&&(f=Math.abs(o)>t,f||(u=Math.abs(c-d)<=h,!u));++e){l&&(m=d==c||d>c==p,m&&(o=-o*n,d=c));o+=(1e-6*-a.tension*(d-c)+.001*-a.friction*o)/a.mass*g,d+=o*g}}else{let n=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,s.durationProgress>0&&(s.elapsedTime=a.duration*s.durationProgress,t=s.elapsedTime+=e)),n=(a.progress||0)+t/this._memoizedDuration,n=n>1?1:n<0?0:n,s.durationProgress=n),d=r+a.easing(n)*(c-r),o=(d-s.lastPosition)/e,u=1==n}s.lastVelocity=o,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}o&&!o[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,a.round)&&(r=!0)}));const s=Xl(this),l=s.getValue();if(t){const e=xl(n.to);l===e&&!r||a.decay?r&&a.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else r&&this._onChange(l)}set(e){return as.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Wc(this)){const{to:e,config:t}=this.animation;as.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 $s.und(e)?(r=this.queue||[],this.queue=[]):r=[$s.obj(e)?e:pc({},t,{to:e})],Promise.all(r.map((e=>this._update(e)))).then((e=>Ic(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Pc(this._state,e&&this._lastCallId),as.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=$s.obj(r)?r[t]:r,(null==r||Sc(r))&&(r=void 0),n=$s.obj(n)?n[t]:n,null==n&&(n=void 0);const a={to:r,from:n};return Vc(this)||(e.reverse&&([r,n]=[n,r]),n=xl(n),$s.und(n)?Xl(this)||this._set(r):this._set(n)),a}_update(e,t){let r=pc({},e);const{key:n,defaultProps:a}=this;r.default&&Object.assign(a,vc(r,((e,t)=>/^on/.test(t)?gc(e,n):e))),tu(this,r,"onProps"),ru(this,"onProps",r,this);const i=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 o=this._state;return Bc(++this._lastCallId,{key:n,props:r,defaultProps:a,state:o,actions:{pause:()=>{Uc(this)||(Qc(this,!0),js(o.pauseQueue),ru(this,"onPause",Tc(this,Yc(this,this.animation.to)),this))},resume:()=>{Uc(this)&&(Qc(this,!1),Wc(this)&&this._resume(),js(o.resumeQueue),ru(this,"onResume",Tc(this,Yc(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then((e=>{if(r.loop&&e.finished&&(!t||!e.noop)){const e=Gc(r);if(e)return this._update(e,!0)}return e}))}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(Fc(this));const n=!$s.und(e.to),a=!$s.und(e.from);if(n||a){if(!(t.callId>this._lastToId))return r(Fc(this));this._lastToId=t.callId}const{key:i,defaultProps:o,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!a||n||t.default&&!$s.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const h=!Cs(d,c);h&&(s.from=d),d=xl(d);const p=!Cs(u,l);p&&this._focus(u);const f=Sc(t.to),{config:m}=s,{decay:g,velocity:b}=m;(n||a)&&(m.velocity=0),t.config&&!f&&function(e,t,r){r&&(Oc(r=pc({},r),t),t=pc({},r,t)),Oc(e,t),Object.assign(e,t);for(const t in _c)null==e[t]&&(e[t]=_c[t]);let{mass:n,frequency:a,damping:i}=e;$s.und(a)||(a<.01&&(a=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/a,2)*n,e.friction=4*Math.PI*i*n/a)}(m,fc(t.config,i),t.config!==o.config?fc(o.config,i):void 0);let y=Xl(this);if(!y||$s.und(u))return r(Tc(this,!0));const v=$s.und(t.reset)?a&&!t.default:!$s.und(d)&&mc(t.reset,i),w=v?d:this.get(),x=Cc(u),$=$s.num(x)||$s.arr(x)||Vl(x),C=!f&&(!$||mc(o.immediate||t.immediate,i));if(p){const e=sc(u);if(e!==y.constructor){if(!C)throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`);y=this._set(x)}}const S=y.constructor;let _=wl(u),k=!1;if(!_){const e=v||!Vc(this)&&h;(p||e)&&(k=Cs(Cc(w),x),_=!k),(Cs(s.immediate,C)||C)&&Cs(m.decay,g)&&Cs(m.velocity,b)||(_=!0)}if(k&&Wc(this)&&(s.changed&&!v?_=!0:_||this._stop(l)),!f&&((_||wl(l))&&(s.values=y.getPayload(),s.toValues=wl(u)?null:S==rc?[1]:ks(x)),s.immediate!=C&&(s.immediate=C,C||v||this._set(l)),_)){const{onRest:e}=s;Ss(eu,(e=>tu(this,t,e)));const n=Tc(this,Yc(this,l));js(this._pendingCalls,n),this._pendingCalls.add(r),s.changed&&as.batchedUpdates((()=>{s.changed=!v,null==e||e(n,this),v?fc(o.onRest,n):null==s.onStart||s.onStart(n,this)}))}v&&this._set(w),f?r(Nc(t.to,t,this._state,this)):_?this._start():Wc(this)&&!p?this._pendingCalls.add(r):r(Ec(w))}_focus(e){const t=this.animation;e!==t.to&&($l(this)&&this._detach(),t.to=e,$l(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;wl(t)&&(kl(t,this),Lc(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;wl(e)&&Ol(e,this)}_set(e,t=!0){const r=xl(e);if(!$s.und(r)){const e=Xl(this);if(!e||!Cs(r,e.getValue())){const n=sc(r);e&&e.constructor==n?e.setValue(r):Kl(this,n.create(r)),e&&as.batchedUpdates((()=>{this._onChange(r,t)}))}}return Xl(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,ru(this,"onStart",Tc(this,Yc(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),fc(this.animation.onChange,e,this)),fc(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Xl(this).reset(xl(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),Wc(this)||(qc(this,!0),Uc(this)||this._resume())}_resume(){Ns.skipAnimation?this.finish():zs.start(this)}_stop(e,t){if(Wc(this)){qc(this,!1);const r=this.animation;Ss(r.values,(e=>{e.done=!0})),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),Cl(this,{type:"idle",parent:this});const n=t?Fc(this.get()):Tc(this.get(),Yc(this,null!=e?e:r.to));js(this._pendingCalls,n),r.changed&&(r.changed=!1,ru(this,"onRest",n,this))}}}function Yc(e,t){const r=Cc(t);return Cs(Cc(e.get()),r)}function Gc(e,t=e.loop,r=e.to){let n=fc(t);if(n){const a=!0!==n&&$c(n),i=(a||e).reverse,o=!a||a.reset;return Xc(pc({},e,{loop:t,default:!1,pause:void 0,to:!i||Sc(r)?r:void 0,from:o?e.from:void 0,reset:o},a))}}function Xc(e){const{to:t,from:r}=e=$c(e),n=new Set;return $s.obj(t)&&Jc(t,n),$s.obj(r)&&Jc(r,n),e.keys=n.size?Array.from(n):null,e}function Kc(e){const t=Xc(e);return $s.und(t.default)&&(t.default=vc(t)),t}function Jc(e,t){_s(e,((e,r)=>null!=e&&t.add(r)))}const eu=["onStart","onRest","onChange","onPause","onResume"];function tu(e,t,r){e.animation[r]=t[r]!==bc(t,r)?gc(t[r],e.key):void 0}function ru(e,t,...r){var n,a,i,o;null==(n=(a=e.animation)[t])||n.call(a,...r),null==(i=(o=e.defaultProps)[t])||i.call(o,...r)}const nu=["onStart","onChange","onRest"];let au=1;class iu{constructor(e,t){this.id=au++,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(pc({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];$s.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(Xc(e)),this}start(e){let{queue:t}=this;return e?t=ks(e).map(Xc):this.queue=[],this._flush?this._flush(this,t):(hu(this,t),ou(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;Ss(ks(t),(t=>r[t].stop(!!e)))}else Pc(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if($s.und(e))this.start({pause:!0});else{const t=this.springs;Ss(ks(e),(e=>t[e].pause()))}return this}resume(e){if($s.und(e))this.start({pause:!1});else{const t=this.springs;Ss(ks(e),(e=>t[e].resume()))}return this}each(e){_s(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,a=this._changed.size>0;(n&&!this._started||a&&!this._started)&&(this._started=!0,Os(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const i=!n&&this._started,o=a||i&&r.size?this.get():null;a&&t.size&&Os(t,(([e,t])=>{t.value=o,e(t,this,this._item)})),i&&(this._started=!1,Os(r,(([e,t])=>{t.value=o,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)}as.onFrame(this._onFrame)}}function ou(e,t){return Promise.all(t.map((t=>su(e,t)))).then((t=>Ic(e,t)))}async function su(e,t,r){const{keys:n,to:a,from:i,loop:o,onRest:s,onResolve:l}=t,c=$s.obj(t.default)&&t.default;o&&(t.loop=!1),!1===a&&(t.to=null),!1===i&&(t.from=null);const u=$s.arr(a)||$s.fun(a)?a:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Ss(nu,(r=>{const n=t[r];if($s.fun(n)){const a=e._events[r];t[r]=({finished:e,cancelled:t})=>{const r=a.get(n);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):a.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,js(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===bc(t,"cancel");(u||p&&d.asyncId)&&h.push(Bc(++e._lastAsyncId,{props:t,state:d,actions:{pause:xs,resume:xs,start(t,r){p?(Pc(d,e._lastAsyncId),r(Fc(e))):(t.onRest=s,r(Nc(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=Ic(e,await Promise.all(h));if(o&&f.finished&&(!r||!f.noop)){const r=Gc(t,o,a);if(r)return hu(e,[r]),su(e,r,!0)}return l&&as.batchedUpdates((()=>l(f,e,e.item))),f}function lu(e,t){const r=pc({},e.springs);return t&&Ss(ks(t),(e=>{$s.und(e.keys)&&(e=Xc(e)),$s.obj(e.to)||(e=pc({},e,{to:void 0})),du(r,e,(e=>uu(e)))})),cu(e,r),r}function cu(e,t){_s(t,((t,r)=>{e.springs[r]||(e.springs[r]=t,kl(t,e))}))}function uu(e,t){const r=new Zc;return r.key=e,t&&kl(r,t),r}function du(e,t,r){t.keys&&Ss(t.keys,(n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)}))}function hu(e,t){Ss(t,(t=>{du(e.springs,t,(t=>uu(t,e)))}))}const pu=["children"],fu=e=>{let{children:t}=e,r=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,pu);const n=m(mu),i=r.pause||!!n.pause,c=r.immediate||!!n.immediate;r=function(e,t){const[r]=o((()=>({inputs:t,result:e()}))),n=s(),a=n.current;let i=a;i?Boolean(t&&i.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,i.inputs))||(i={inputs:t,result:e()}):i=r;return l((()=>{n.current=i,a==r&&(r.inputs=r.result=void 0)}),[i]),i.result}((()=>({pause:i,immediate:c})),[i,c]);const{Provider:u}=mu;return a.createElement(u,{value:r},t)},mu=(gu=fu,bu={},Object.assign(gu,a.createContext(bu)),gu.Provider._context=gu,gu.Consumer._context=gu,gu);var gu,bu;fu.Provider=mu.Provider,fu.Consumer=mu.Consumer;const yu=()=>{const e=[],t=function(t){Rl(`${Ll}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 Ss(e,((e,a)=>{if($s.und(t))n.push(e.start());else{const i=r(t,e,a);i&&n.push(e.start(i))}})),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 Ss(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Ss(e,(e=>e.resume(...arguments))),this},t.set=function(t){Ss(e,(e=>e.set(t)))},t.start=function(t){const r=[];return Ss(e,((e,n)=>{if($s.und(t))r.push(e.start());else{const a=this._getProps(t,e,n);a&&r.push(e.start(a))}})),r},t.stop=function(){return Ss(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Ss(e,((e,r)=>e.update(this._getProps(t,e,r)))),this};const r=function(e,t,r){return $s.fun(e)?e(r,t):e};return t._getProps=r,t};function vu(e,t){const r=$s.fun(e),[[n],a]=function(e,t,r){const n=$s.fun(t)&&t;n&&!r&&(r=[]);const a=g((()=>n||3==arguments.length?yu():void 0),[]),i=s(0),o=ql(),l=g((()=>({ctrls:[],queue:[],flush(e,t){const r=lu(e,t);return i.current>0&&!l.queue.length&&!Object.keys(r).some((t=>!e.springs[t]))?ou(e,t):new Promise((n=>{cu(e,r),l.queue.push((()=>{n(ou(e,t))})),o()}))}})),[]),c=s([...l.ctrls]),u=[],d=Yl(e)||0;function h(e,r){for(let a=e;a<r;a++){const e=c.current[a]||(c.current[a]=new iu(null,l.flush)),r=n?n(a,e):t[a];r&&(u[a]=Kc(r))}}g((()=>{Ss(c.current.slice(e,d),(e=>{!function(e,t){var r;null==(r=e.ref)||r.delete(e),null==t||t.delete(e)}(e,a),e.stop(!0)})),c.current.length=e,h(d,e)}),[e]),g((()=>{h(0,Math.min(d,e))}),r);const p=c.current.map(((e,t)=>lu(e,u[t]))),f=m(fu),b=Yl(f),y=f!==b&&function(e){for(const t in e)return!0;return!1}(f);Wl((()=>{i.current++,l.ctrls=c.current;const{queue:e}=l;e.length&&(l.queue=[],Ss(e,(e=>e()))),Ss(c.current,((e,t)=>{null==a||a.add(e),y&&e.start({default:f});const r=u[t];r&&(function(e,t){var r;t&&e.ref!==t&&(null==(r=e.ref)||r.delete(e),t.add(e),e.ref=t)}(e,r.ref),e.ref?e.queue.push(r):e.start(r))}))})),Ql((()=>()=>{Ss(l.ctrls,(e=>e.stop(!0)))}));const v=p.map((e=>pc({},e)));return a?[v,a]:v}(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[n,a]:n}let wu;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(wu||(wu={}));class xu extends Hc{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=cl(...t);const r=this._get(),n=sc(r);Kl(this,n.create(r))}advance(e){const t=this._get();Cs(t,this.get())||(Xl(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Cu(this._active)&&Su(this)}_get(){const e=$s.arr(this.source)?this.source.map(xl):ks(xl(this.source));return this.calc(...e)}_start(){this.idle&&!Cu(this._active)&&(this.idle=!1,Ss(Jl(this),(e=>{e.done=!1})),Ns.skipAnimation?(as.batchedUpdates((()=>this.advance())),Su(this)):zs.start(this))}_attach(){let e=1;Ss(ks(this.source),(t=>{wl(t)&&kl(t,this),Lc(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Ss(ks(this.source),(e=>{wl(e)&&Ol(e,this)})),this._active.clear(),Su(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=ks(this.source).reduce(((e,t)=>Math.max(e,(Lc(t)?t.priority:0)+1)),0))}}function $u(e){return!1!==e.idle}function Cu(e){return!e.size||Array.from(e).every($u)}function Su(e){e.idle||(e.idle=!0,Ss(Jl(e),(e=>{e.done=!0})),Cl(e,{type:"idle",parent:e}))}function _u(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}Ns.assign({createStringInterpolator:Al,to:(e,t)=>new xu(e,t)});const ku=["style","children","scrollTop","scrollLeft","viewBox"],Ou=/^--/;function ju(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Ou.test(e)||Bu.hasOwnProperty(e)&&Bu[e]?(""+t).trim():t+"px"}const Mu={};let Bu={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 Iu=["Webkit","Ms","Moz","O"];Bu=Object.keys(Bu).reduce(((e,t)=>(Iu.forEach((r=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(r,t)]=e[t])),e)),Bu);const Eu=["x","y","z"],Tu=/^(matrix|translate|scale|rotate|skew)/,Fu=/^(translate)/,Nu=/^(rotate|skew)/,Pu=(e,t)=>$s.num(e)&&0!==e?e+t:e,Du=(e,t)=>$s.arr(e)?e.every((e=>Du(e,t))):$s.num(e)?e===t:parseFloat(e)===t;class Au extends ac{constructor(e){let{x:t,y:r,z:n}=e,a=_u(e,Eu);const i=[],o=[];(t||r||n)&&(i.push([t||0,r||0,n||0]),o.push((e=>[`translate3d(${e.map((e=>Pu(e,"px"))).join(",")})`,Du(e,0)]))),_s(a,((e,t)=>{if("transform"===t)i.push([e||""]),o.push((e=>[e,""===e]));else if(Tu.test(t)){if(delete a[t],$s.und(e))return;const r=Fu.test(t)?"px":Nu.test(t)?"deg":"";i.push(ks(e)),o.push("rotate3d"===t?([e,t,n,a])=>[`rotate3d(${e},${t},${n},${Pu(a,r)})`,Du(a,0)]:e=>[`${t}(${e.map((e=>Pu(e,r))).join(",")})`,Du(e,t.startsWith("scale")?1:0)])}})),i.length&&(a.transform=new Lu(i,o)),super(a)}}class Lu extends Sl{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 Ss(this.inputs,((r,n)=>{const a=xl(r[0]),[i,o]=this.transforms[n]($s.arr(a)?a:r.map(xl));e+=" "+i,t=t&&o})),t?"none":e}observerAdded(e){1==e&&Ss(this.inputs,(e=>Ss(e,(e=>wl(e)&&kl(e,this)))))}observerRemoved(e){0==e&&Ss(this.inputs,(e=>Ss(e,(e=>wl(e)&&Ol(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Cl(this,e)}}const zu=["scrollTop","scrollLeft"];Ns.assign({batchedUpdates:S,createStringInterpolator:Al,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 Hu=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:r=(e=>new ac(e)),getComponentProps:n=(e=>e)}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},i=e=>{const t=hc(e)||"Anonymous";return(e=$s.str(e)?i[e]||(i[e]=cc(e,a)):e[dc]||(e[dc]=cc(e,a))).displayName=`Animated(${t})`,e};return _s(e,((t,r)=>{$s.arr(e)&&(r=hc(t)),i[r]=i(t)})),{animated:i}})(["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:a,children:i,scrollTop:o,scrollLeft:s,viewBox:l}=n,c=_u(n,ku),u=Object.values(c),d=Object.keys(c).map((t=>r||e.hasAttribute(t)?t:Mu[t]||(Mu[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==i&&(e.textContent=i);for(let t in a)if(a.hasOwnProperty(t)){const r=ju(t,a[t]);Ou.test(t)?e.style.setProperty(t,r):e.style[t]=r}d.forEach(((t,r)=>{e.setAttribute(t,u[r])})),void 0!==o&&(e.scrollTop=o),void 0!==s&&(e.scrollLeft=s),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new Au(e),getComponentProps:e=>_u(e,zu)}),Ru=Hu.animated,Vu=w.div`
|
|
689
|
+
`;var Kn=It;var Jn=It,ea=Et,ta=Zt;var ra=It,na=function(){this.__data__=new Kn,this.size=0},aa=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ia=function(e){return this.__data__.get(e)},oa=function(e){return this.__data__.has(e)},sa=function(e,t){var r=this.__data__;if(r instanceof Jn){var n=r.__data__;if(!ea||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ta(n)}return r.set(e,t),this.size=r.size,this};function la(e){var t=this.__data__=new ra(e);this.size=t.size}la.prototype.clear=na,la.prototype.delete=aa,la.prototype.get=ia,la.prototype.has=oa,la.prototype.set=sa;var ca=la;var ua=Zt,da=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ha=function(e){return this.__data__.has(e)};function pa(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new ua;++t<r;)this.add(e[t])}pa.prototype.add=pa.prototype.push=da,pa.prototype.has=ha;var fa=pa,ma=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},ga=function(e,t){return e.has(t)};var ba=function(e,t,r,n,a,i){var o=1&r,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=2&r?new fa:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var f=e[d],m=t[d];if(n)var g=o?n(m,f,d,t,e,i):n(f,m,d,e,t,i);if(void 0!==g){if(g)continue;h=!1;break}if(p){if(!ma(t,(function(e,t){if(!ga(p,t)&&(f===e||a(f,e,r,n,i)))return p.push(t)}))){h=!1;break}}else if(f!==m&&!a(f,m,r,n,i)){h=!1;break}}return i.delete(e),i.delete(t),h};var ya=A.Uint8Array,va=bt,wa=ba,xa=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r},$a=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Ca=U?U.prototype:void 0,Sa=Ca?Ca.valueOf:void 0;var _a=function(e,t,r,n,a,i,o){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||!i(new ya(e),new ya(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return va(+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=xa;case"[object Set]":var l=1&n;if(s||(s=$a),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=2,o.set(e,t);var u=wa(s(e),s(t),n,a,i,o);return o.delete(e),u;case"[object Symbol]":if(Sa)return Sa.call(e)==Sa.call(t)}return!1};var ka=function(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e},Oa=_e;var ja=function(e,t,r){var n=t(e);return Oa(e)?n:ka(n,r(e))};var Ma=function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i},Ba=function(){return[]},Ia=Object.prototype.propertyIsEnumerable,Ea=Object.getOwnPropertySymbols,Ta=Ea?function(e){return null==e?[]:(e=Object(e),Ma(Ea(e),(function(t){return Ia.call(e,t)})))}:Ba;var Fa=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},Na=re,Pa=ne;var Da=function(e){return Pa(e)&&"[object Arguments]"==Na(e)},Aa=ne,La=Object.prototype,za=La.hasOwnProperty,Ha=La.propertyIsEnumerable,Ra=Da(function(){return arguments}())?Da:function(e){return Aa(e)&&za.call(e,"callee")&&!Ha.call(e,"callee")},Va={exports:{}};var Wa=function(){return!1};!function(e,t){var r=A,n=Wa,a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,o=i&&i.exports===a?r.Buffer:void 0,s=(o?o.isBuffer:void 0)||n;e.exports=s}(Va,Va.exports);var Ua=/^(?:0|[1-9]\d*)$/;var qa=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Ua.test(e))&&e>-1&&e%1==0&&e<t};var Qa=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Za=re,Ya=Qa,Ga=ne,Xa={};Xa["[object Float32Array]"]=Xa["[object Float64Array]"]=Xa["[object Int8Array]"]=Xa["[object Int16Array]"]=Xa["[object Int32Array]"]=Xa["[object Uint8Array]"]=Xa["[object Uint8ClampedArray]"]=Xa["[object Uint16Array]"]=Xa["[object Uint32Array]"]=!0,Xa["[object Arguments]"]=Xa["[object Array]"]=Xa["[object ArrayBuffer]"]=Xa["[object Boolean]"]=Xa["[object DataView]"]=Xa["[object Date]"]=Xa["[object Error]"]=Xa["[object Function]"]=Xa["[object Map]"]=Xa["[object Number]"]=Xa["[object Object]"]=Xa["[object RegExp]"]=Xa["[object Set]"]=Xa["[object String]"]=Xa["[object WeakMap]"]=!1;var Ka=function(e){return Ga(e)&&Ya(e.length)&&!!Xa[Za(e)]};var Ja=function(e){return function(t){return e(t)}},ei={exports:{}};!function(e,t){var r=N,n=t&&!t.nodeType&&t,a=n&&e&&!e.nodeType&&e,i=a&&a.exports===n&&r.process,o=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o}(ei,ei.exports);var ti=Ka,ri=Ja,ni=ei.exports,ai=ni&&ni.isTypedArray,ii=ai?ri(ai):ti,oi=Fa,si=Ra,li=_e,ci=Va.exports,ui=qa,di=ii,hi=Object.prototype.hasOwnProperty;var pi=function(e,t){var r=li(e),n=!r&&si(e),a=!r&&!n&&ci(e),i=!r&&!n&&!a&&di(e),o=r||n||a||i,s=o?oi(e.length,String):[],l=s.length;for(var c in e)!t&&!hi.call(e,c)||o&&("length"==c||a&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ui(c,l))||s.push(c);return s},fi=Object.prototype;var mi=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||fi)};var gi=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),bi=mi,yi=gi,vi=Object.prototype.hasOwnProperty;var wi=Fe,xi=Qa;var $i=function(e){return null!=e&&xi(e.length)&&!wi(e)},Ci=pi,Si=function(e){if(!bi(e))return yi(e);var t=[];for(var r in Object(e))vi.call(e,r)&&"constructor"!=r&&t.push(r);return t},_i=$i;var ki=function(e){return _i(e)?Ci(e):Si(e)},Oi=ja,ji=Ta,Mi=ki;var Bi=function(e){return Oi(e,Mi,ji)},Ii=Object.prototype.hasOwnProperty;var Ei=function(e,t,r,n,a,i){var o=1&r,s=Bi(e),l=s.length;if(l!=Bi(t).length&&!o)return!1;for(var c=l;c--;){var u=s[c];if(!(o?u in t:Ii.call(t,u)))return!1}var d=i.get(e),h=i.get(t);if(d&&h)return d==t&&h==e;var p=!0;i.set(e,t),i.set(t,e);for(var f=o;++c<l;){var m=e[u=s[c]],g=t[u];if(n)var b=o?n(g,m,u,t,e,i):n(m,g,u,e,t,i);if(!(void 0===b?m===g||a(m,g,r,n,i):b)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var y=e.constructor,v=t.constructor;y==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(p=!1)}return i.delete(e),i.delete(t),p},Ti=Ke(A,"DataView"),Fi=Et,Ni=Ke(A,"Promise"),Pi=Ke(A,"Set"),Di=Ke(A,"WeakMap"),Ai=re,Li=Le,zi="[object Map]",Hi="[object Promise]",Ri="[object Set]",Vi="[object WeakMap]",Wi="[object DataView]",Ui=Li(Ti),qi=Li(Fi),Qi=Li(Ni),Zi=Li(Pi),Yi=Li(Di),Gi=Ai;(Ti&&Gi(new Ti(new ArrayBuffer(1)))!=Wi||Fi&&Gi(new Fi)!=zi||Ni&&Gi(Ni.resolve())!=Hi||Pi&&Gi(new Pi)!=Ri||Di&&Gi(new Di)!=Vi)&&(Gi=function(e){var t=Ai(e),r="[object Object]"==t?e.constructor:void 0,n=r?Li(r):"";if(n)switch(n){case Ui:return Wi;case qi:return zi;case Qi:return Hi;case Zi:return Ri;case Yi:return Vi}return t});var Xi=ca,Ki=ba,Ji=_a,eo=Ei,to=Gi,ro=_e,no=Va.exports,ao=ii,io="[object Arguments]",oo="[object Array]",so="[object Object]",lo=Object.prototype.hasOwnProperty;var co=function(e,t,r,n,a,i){var o=ro(e),s=ro(t),l=o?oo:to(e),c=s?oo:to(t),u=(l=l==io?so:l)==so,d=(c=c==io?so:c)==so,h=l==c;if(h&&no(e)){if(!no(t))return!1;o=!0,u=!1}if(h&&!u)return i||(i=new Xi),o||ao(e)?Ki(e,t,r,n,a,i):Ji(e,t,l,r,n,a,i);if(!(1&r)){var p=u&&lo.call(e,"__wrapped__"),f=d&&lo.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,g=f?t.value():t;return i||(i=new Xi),a(m,g,r,n,i)}}return!!h&&(i||(i=new Xi),eo(e,t,r,n,a,i))},uo=ne;var ho=function e(t,r,n,a,i){return t===r||(null==t||null==r||!uo(t)&&!uo(r)?t!=t&&r!=r:co(t,r,n,a,e,i))},po=ca,fo=ho;var mo=F;var go=function(e){return e==e&&!mo(e)},bo=go,yo=ki;var vo=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},wo=function(e,t,r,n){var a=r.length,i=a,o=!n;if(null==e)return!i;for(e=Object(e);a--;){var s=r[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){var l=(s=r[a])[0],c=e[l],u=s[1];if(o&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new po;if(n)var h=n(c,u,l,e,t,d);if(!(void 0===h?fo(u,c,3,n,d):h))return!1}}return!0},xo=function(e){for(var t=yo(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,bo(a)]}return t},$o=vo;var Co=hr,So=Ra,_o=_e,ko=qa,Oo=Qa,jo=fr;var Mo=function(e,t){return null!=e&&t in Object(e)},Bo=function(e,t,r){for(var n=-1,a=(t=Co(t,e)).length,i=!1;++n<a;){var o=jo(t[n]);if(!(i=null!=e&&r(e,o)))break;e=e[o]}return i||++n!=a?i:!!(a=null==e?0:e.length)&&Oo(a)&&ko(o,a)&&(_o(e)||So(e))};var Io=ho,Eo=vr,To=function(e,t){return null!=e&&Bo(e,t,Mo)},Fo=Be,No=go,Po=vo,Do=fr;var Ao=br;var Lo=function(e){return function(t){return null==t?void 0:t[e]}},zo=function(e){return function(t){return Ao(t,e)}},Ho=Be,Ro=fr;var Vo=function(e){var t=xo(e);return 1==t.length&&t[0][2]?$o(t[0][0],t[0][1]):function(r){return r===e||wo(r,e,t)}},Wo=function(e,t){return Fo(e)&&No(t)?Po(Do(e),t):function(r){var n=Eo(r,e);return void 0===n&&n===t?To(r,e):Io(t,n,3)}},Uo=function(e){return e},qo=_e,Qo=function(e){return Ho(e)?Lo(Ro(e)):zo(e)};var Zo=function(e){return"function"==typeof e?e:null==e?Uo:"object"==typeof e?qo(e)?Wo(e[0],e[1]):Vo(e):Qo(e)},Yo=Zo,Go=$i,Xo=ki;var Ko=function(e){return function(t,r,n){var a=Object(t);if(!Go(t)){var i=Yo(r);t=Xo(t),r=function(e){return i(a[e],e,a)}}var o=e(t,r,n);return o>-1?a[i?t[o]:o]:void 0}};var Jo=fe,es=1/0;var ts=function(e){return e?(e=Jo(e))===es||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var rs=function(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i<a;)if(t(e[i],i,e))return i;return-1},ns=Zo,as=function(e){var t=ts(e),r=t%1;return t==t?r?t-r:t:0},is=Math.max;var os=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=null==r?0:as(r);return a<0&&(a=is(n+a,0)),rs(e,ns(t),a)},ss=Ko(os),ls=ho;var cs=function(e,t){return ls(e,t)};let us=ks();const ds=e=>$s(e,us);let hs=ks();ds.write=e=>$s(e,hs);let ps=ks();ds.onStart=e=>$s(e,ps);let fs=ks();ds.onFrame=e=>$s(e,fs);let ms=ks();ds.onFinish=e=>$s(e,ms);let gs=[];ds.setTimeout=(e,t)=>{let r=ds.now()+t,n=()=>{let e=gs.findIndex((e=>e.cancel==n));~e&&gs.splice(e,1),ws-=~e?1:0},a={time:r,handler:e,cancel:n};return gs.splice(bs(r),0,a),ws+=1,Cs(),a};let bs=e=>~(~gs.findIndex((t=>t.time>e))||~gs.length);ds.cancel=e=>{ps.delete(e),fs.delete(e),ms.delete(e),us.delete(e),hs.delete(e)},ds.sync=e=>{xs=!0,ds.batchedUpdates(e),xs=!1},ds.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...e){t=e,ds.onStart(r)}return n.handler=e,n.cancel=()=>{ps.delete(r),t=null},n};let ys="undefined"!=typeof window?window.requestAnimationFrame:()=>{};ds.use=e=>ys=e,ds.now="undefined"!=typeof performance?()=>performance.now():Date.now,ds.batchedUpdates=e=>e(),ds.catch=console.error,ds.frameLoop="always",ds.advance=()=>{"demand"!==ds.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):_s()};let vs=-1,ws=0,xs=!1;function $s(e,t){xs?(t.delete(e),e(0)):(t.add(e),Cs())}function Cs(){vs<0&&(vs=0,"demand"!==ds.frameLoop&&ys(Ss))}function Ss(){~vs&&(ys(Ss),ds.batchedUpdates(_s))}function _s(){let e=vs;vs=ds.now();let t=bs(vs);t&&(Os(gs.splice(0,t),(e=>e.handler())),ws-=t),ws?(ps.flush(),us.flush(e?Math.min(64,vs-e):16.667),fs.flush(),hs.flush(),ms.flush()):vs=-1}function ks(){let e=new Set,t=e;return{add(r){ws+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(ws-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,ws-=t.size,Os(t,(t=>t(r)&&e.add(t))),ws+=e.size,t=e)}}}function Os(e,t){e.forEach((e=>{try{t(e)}catch(e){ds.catch(e)}}))}function js(){}const Ms={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 Bs(e,t){if(Ms.arr(e)){if(!Ms.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 Is=(e,t)=>e.forEach(t);function Es(e,t,r){if(Ms.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 Ts=e=>Ms.und(e)?[]:Ms.arr(e)?e:[e];function Fs(e,t){if(e.size){const r=Array.from(e);e.clear(),Is(r,t)}}const Ns=(e,...t)=>Fs(e,(e=>e(...t))),Ps=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let Ds,As,Ls=null,zs=!1,Hs=js;var Rs=Object.freeze({__proto__:null,get createStringInterpolator(){return Ds},get to(){return As},get colors(){return Ls},get skipAnimation(){return zs},get willAdvance(){return Hs},assign:e=>{e.to&&(As=e.to),e.now&&(ds.now=e.now),void 0!==e.colors&&(Ls=e.colors),null!=e.skipAnimation&&(zs=e.skipAnimation),e.createStringInterpolator&&(Ds=e.createStringInterpolator),e.requestAnimationFrame&&ds.use(e.requestAnimationFrame),e.batchedUpdates&&(ds.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Hs=e.willAdvance),e.frameLoop&&(ds.frameLoop=e.frameLoop)}});const Vs=new Set;let Ws=[],Us=[],qs=0;const Qs={get idle(){return!Vs.size&&!Ws.length},start(e){qs>e.priority?(Vs.add(e),ds.onStart(Zs)):(Ys(e),ds(Xs))},advance:Xs,sort(e){if(qs)ds.onFrame((()=>Qs.sort(e)));else{const t=Ws.indexOf(e);~t&&(Ws.splice(t,1),Gs(e))}},clear(){Ws=[],Vs.clear()}};function Zs(){Vs.forEach(Ys),Vs.clear(),ds(Xs)}function Ys(e){Ws.includes(e)||Gs(e)}function Gs(e){Ws.splice(function(e,t){const r=e.findIndex(t);return r<0?e.length:r}(Ws,(t=>t.priority>e.priority)),0,e)}function Xs(e){const t=Us;for(let r=0;r<Ws.length;r++){const n=Ws[r];qs=n.priority,n.idle||(Hs(n),n.advance(e),n.idle||t.push(n))}return qs=0,Us=Ws,Us.length=0,Ws=t,Ws.length>0}const Ks="[-+]?\\d*\\.?\\d+",Js=Ks+"%";function el(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const tl=new RegExp("rgb"+el(Ks,Ks,Ks)),rl=new RegExp("rgba"+el(Ks,Ks,Ks,Ks)),nl=new RegExp("hsl"+el(Ks,Js,Js)),al=new RegExp("hsla"+el(Ks,Js,Js,Ks)),il=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ol=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,sl=/^#([0-9a-fA-F]{6})$/,ll=/^#([0-9a-fA-F]{8})$/;function cl(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 ul(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,a=2*r-n,i=cl(a,n,e+1/3),o=cl(a,n,e),s=cl(a,n,e-1/3);return Math.round(255*i)<<24|Math.round(255*o)<<16|Math.round(255*s)<<8}function dl(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function hl(e){return(parseFloat(e)%360+360)%360/360}function pl(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function fl(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function ml(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=sl.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ls&&void 0!==Ls[e]?Ls[e]:(t=tl.exec(e))?(dl(t[1])<<24|dl(t[2])<<16|dl(t[3])<<8|255)>>>0:(t=rl.exec(e))?(dl(t[1])<<24|dl(t[2])<<16|dl(t[3])<<8|pl(t[4]))>>>0:(t=il.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ll.exec(e))?parseInt(t[1],16)>>>0:(t=ol.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=nl.exec(e))?(255|ul(hl(t[1]),fl(t[2]),fl(t[3])))>>>0:(t=al.exec(e))?(ul(hl(t[1]),fl(t[2]),fl(t[3]))|pl(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 gl=(e,t,r)=>{if(Ms.fun(e))return e;if(Ms.arr(e))return gl({range:e,output:t,extrapolate:r});if(Ms.str(e.output[0]))return Ds(e);const n=e,a=n.output,i=n.range||[0,1],o=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,i);return function(e,t,r,n,a,i,o,s,l){let c=l?l(e):e;if(c<t){if("identity"===o)return c;"clamp"===o&&(c=t)}if(c>r){if("identity"===s)return c;"clamp"===s&&(c=r)}if(n===a)return n;if(t===r)return e<=t?n:a;t===-1/0?c=-c:r===1/0?c-=t:c=(c-t)/(r-t);c=i(c),n===-1/0?c=-c:a===1/0?c+=n:c=c*(a-n)+n;return c}(e,i[t],i[t+1],a[t],a[t+1],l,o,s,n.map)}};const bl=1.70158,yl=1.525*bl,vl=bl+1,wl=2*Math.PI/3,xl=2*Math.PI/4.5,$l=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},Cl={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=>vl*e*e*e-bl*e*e,easeOutBack:e=>1+vl*Math.pow(e-1,3)+bl*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-yl)/2:(Math.pow(2*e-2,2)*((yl+1)*(2*e-2)+yl)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*wl),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*wl)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*xl)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*xl)/2+1,easeInBounce:e=>1-$l(1-e),easeOutBounce:$l,easeInOutBounce:e=>e<.5?(1-$l(1-2*e))/2:(1+$l(2*e-1))/2,steps:(e,t="end")=>r=>{const n=(r="end"===t?Math.min(r,.999):Math.max(r,.001))*e,a="end"===t?Math.floor(n):Math.ceil(n);return i=0,o=1,s=a/e,Math.min(Math.max(s,i),o);var i,o,s}};function Sl(){return Sl=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},Sl.apply(this,arguments)}const _l=Symbol.for("FluidValue.get"),kl=Symbol.for("FluidValue.observers"),Ol=e=>Boolean(e&&e[_l]),jl=e=>e&&e[_l]?e[_l]():e,Ml=e=>e[kl]||null;function Bl(e,t){let r=e[kl];r&&r.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class Il{constructor(e){if(this[_l]=void 0,this[kl]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");El(this,e)}}const El=(e,t)=>Nl(e,_l,t);function Tl(e,t){if(e[_l]){let r=e[kl];r||Nl(e,kl,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function Fl(e,t){let r=e[kl];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[kl]=null,e.observerRemoved&&e.observerRemoved(n,t)}}const Nl=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),Pl=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Dl=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Al=new RegExp(`(${Pl.source})(%|[a-z]+)`,"i"),Ll=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,zl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Hl=e=>{const[t,r]=Rl(e);if(!t||Ps())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&&zl.test(r)?Hl(r):r||e},Rl=e=>{const t=zl.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]};let Vl;const Wl=(e,t,r,n,a)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${a})`,Ul=e=>{Vl||(Vl=Ls?new RegExp(`(${Object.keys(Ls).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>jl(e).replace(zl,Hl).replace(Dl,ml).replace(Vl,ml))),r=t.map((e=>e.match(Pl).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=>gl(Sl({},e,{output:t}))));return e=>{var r;const a=!Al.test(t[0])&&(null==(r=t.find((e=>Al.test(e))))?void 0:r.replace(Pl,""));let i=0;return t[0].replace(Pl,(()=>`${n[i++](e)}${a||""}`)).replace(Ll,Wl)}},ql="react-spring: ",Ql=e=>{const t=e;let r=!1;if("function"!=typeof t)throw new TypeError(`${ql}once requires a function parameter`);return(...e)=>{r||(t(...e),r=!0)}},Zl=Ql(console.warn);const Yl=Ql(console.warn);function Gl(e){return Ms.str(e)&&("#"==e[0]||/\d/.test(e)||!Ps()&&zl.test(e)||e in(Ls||{}))}const Xl=Ps()?l:h,Kl=()=>{const e=s(!1);return Xl((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function Jl(){const e=o()[1],t=Kl();return()=>{t.current&&e(Math.random())}}const ec=e=>l(e,tc),tc=[];function rc(e){const t=s();return l((()=>{t.current=e})),t.current}const nc=Symbol.for("Animated:node"),ac=e=>e&&e[nc],ic=(e,t)=>{return r=e,n=nc,a=t,Object.defineProperty(r,n,{value:a,writable:!0,configurable:!0});var r,n,a},oc=e=>e&&e[nc]&&e[nc].getPayload();class sc{constructor(){this.payload=void 0,ic(this,this)}getPayload(){return this.payload||[]}}class lc extends sc{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,Ms.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new lc(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Ms.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,Ms.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class cc extends lc{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=gl({output:[e,e]})}static create(e){return new cc(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Ms.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=gl({output:[this.getValue(),e]})),this._value=0,super.reset()}}const uc={dependencies:null};class dc extends sc{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Es(this.source,((r,n)=>{var a;(a=r)&&a[nc]===a?t[n]=r.getValue(e):Ol(r)?t[n]=jl(r):e||(t[n]=r)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Is(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Es(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){uc.dependencies&&Ol(e)&&uc.dependencies.add(e);const t=oc(e);t&&Is(t,(e=>this.add(e)))}}class hc extends dc{constructor(e){super(e)}static create(e){return new hc(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(pc)),!0)}}function pc(e){return(Gl(e)?cc:lc).create(e)}function fc(e){const t=ac(e);return t?t.constructor:Ms.arr(e)?hc:Gl(e)?cc:lc}function mc(){return mc=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},mc.apply(this,arguments)}const gc=(e,t)=>{const r=!Ms.fun(e)||e.prototype&&e.prototype.isReactComponent;return p(((n,i)=>{const o=s(null),c=r&&f((e=>{o.current=function(e,t){e&&(Ms.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[u,d]=function(e,t){const r=new Set;uc.dependencies=r,e.style&&(e=mc({},e,{style:t.createAnimatedStyle(e.style)}));return e=new dc(e),uc.dependencies=null,[e,r]}(n,t),h=Jl(),p=()=>{const e=o.current;if(r&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))&&h()},m=new bc(p,d),g=s();Xl((()=>(g.current=m,Is(d,(e=>Tl(e,m))),()=>{g.current&&(Is(g.current.deps,(e=>Fl(e,g.current))),ds.cancel(g.current.update))}))),l(p,[]),ec((()=>()=>{const e=g.current;Is(e.deps,(t=>Fl(t,e)))}));const b=t.getComponentProps(u.getValue());return a.createElement(e,mc({},b,{ref:c}))}))};class bc{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&ds.write(this.update)}}const yc=Symbol.for("AnimatedComponent"),vc=e=>Ms.str(e)?e:e&&Ms.str(e.displayName)?e.displayName:Ms.fun(e)&&e.name||null;function wc(){return wc=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},wc.apply(this,arguments)}function xc(e,...t){return Ms.fun(e)?e(...t):e}const $c=(e,t)=>!0===e||!!(t&&e&&(Ms.fun(e)?e(t):Ts(e).includes(t))),Cc=(e,t)=>Ms.obj(e)?t&&e[t]:e,Sc=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,_c=e=>e,kc=(e,t=_c)=>{let r=Oc;e.default&&!0!==e.default&&(e=e.default,r=Object.keys(e));const n={};for(const a of r){const r=t(e[a],a);Ms.und(r)||(n[a]=r)}return n},Oc=["config","onProps","onStart","onChange","onPause","onResume","onRest"],jc={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 Mc(e){const t=function(e){const t={};let r=0;if(Es(e,((e,n)=>{jc[n]||(t[n]=e,r++)})),r)return t}(e);if(t){const r={to:t};return Es(e,((e,n)=>n in t||(r[n]=e))),r}return wc({},e)}function Bc(e){return e=jl(e),Ms.arr(e)?e.map(Bc):Gl(e)?Rs.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Ic(e){return Ms.fun(e)||Ms.arr(e)&&Ms.obj(e[0])}const Ec=wc({},{tension:170,friction:26},{mass:1,damping:1,easing:Cl.linear,clamp:!1});class Tc{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,Ec)}}function Fc(e,t){if(Ms.und(t.decay)){const r=!Ms.und(t.tension)||!Ms.und(t.friction);!r&&Ms.und(t.frequency)&&Ms.und(t.damping)&&Ms.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}const Nc=[];class Pc{constructor(){this.changed=!1,this.values=Nc,this.toValues=null,this.fromValues=Nc,this.to=void 0,this.from=void 0,this.config=new Tc,this.immediate=!1}}function Dc(e,{key:t,props:r,defaultProps:n,state:a,actions:i}){return new Promise(((o,s)=>{var l;let c,u,d=$c(null!=(l=r.cancel)?l:null==n?void 0:n.cancel,t);if(d)f();else{Ms.und(r.pause)||(a.paused=$c(r.pause,t));let e=null==n?void 0:n.pause;!0!==e&&(e=a.paused||$c(e,t)),c=xc(r.delay||0,t),e?(a.resumeQueue.add(p),i.pause()):(i.resume(),p())}function h(){a.resumeQueue.add(p),a.timeouts.delete(u),u.cancel(),c=u.time-ds.now()}function p(){c>0&&!Rs.skipAnimation?(a.delayed=!0,u=ds.setTimeout(f,c),a.pauseQueue.add(h),a.timeouts.add(u)):f()}function f(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(h),a.timeouts.delete(u),e<=(a.cancelId||0)&&(d=!0);try{i.start(wc({},r,{callId:e,cancel:d}),o)}catch(e){s(e)}}}))}const Ac=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Hc(e.get()):t.every((e=>e.noop))?Lc(e.get()):zc(e.get(),t.every((e=>e.finished))),Lc=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),zc=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),Hc=e=>({value:e,cancelled:!0,finished:!1});function Rc(e,t,r,n){const{callId:a,parentId:i,onRest:o}=t,{asyncTo:s,promise:l}=r;return i||e!==s||t.reset?r.promise=(async()=>{r.asyncId=a,r.asyncTo=e;const c=kc(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=a<=(r.cancelId||0)&&Hc(n)||a!==r.asyncId&&zc(n,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const i=new Wc,o=new Uc;return(async()=>{if(Rs.skipAnimation)throw Vc(r),o.result=zc(n,!1),d(o),o;p(i);const s=Ms.obj(e)?wc({},e):wc({},t,{to:e});s.parentId=a,Es(c,((e,t)=>{Ms.und(s[t])&&(s[t]=e)}));const l=await n.start(s);return p(i),r.paused&&await new Promise((e=>{r.resumeQueue.add(e)})),l})()};let m;if(Rs.skipAnimation)return Vc(r),zc(n,!1);try{let t;t=Ms.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]),m=zc(n.get(),!0,!1)}catch(e){if(e instanceof Wc)m=e.result;else{if(!(e instanceof Uc))throw e;m=e.result}}finally{a==r.asyncId&&(r.asyncId=i,r.asyncTo=i?s:void 0,r.promise=i?l:void 0)}return Ms.fun(o)&&ds.batchedUpdates((()=>{o(m,n,n.item)})),m})():l}function Vc(e,t){Fs(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class Wc 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 Uc extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const qc=e=>e instanceof Zc;let Qc=1;class Zc extends Il{constructor(...e){super(...e),this.id=Qc++,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=ac(this);return e&&e.getValue()}to(...e){return Rs.to(this,e)}interpolate(...e){return Zl(`${ql}The "interpolate" function is deprecated in v9 (use "to" instead)`),Rs.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){Bl(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Qs.sort(this),Bl(this,{type:"priority",parent:this,priority:e})}}const Yc=Symbol.for("SpringPhase"),Gc=e=>(1&e[Yc])>0,Xc=e=>(2&e[Yc])>0,Kc=e=>(4&e[Yc])>0,Jc=(e,t)=>t?e[Yc]|=3:e[Yc]&=-3,eu=(e,t)=>t?e[Yc]|=4:e[Yc]&=-5;class tu extends Zc{constructor(e,t){if(super(),this.key=void 0,this.animation=new Pc,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,!Ms.und(e)||!Ms.und(t)){const r=Ms.obj(e)?wc({},e):wc({},t,{from:e});Ms.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(Xc(this)||this._state.asyncTo)||Kc(this)}get goal(){return jl(this.animation.to)}get velocity(){const e=ac(this);return e instanceof lc?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return Gc(this)}get isAnimating(){return Xc(this)}get isPaused(){return Kc(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{config:a,toValues:i}=n;const o=oc(n.to);!o&&Ol(n.to)&&(i=Ts(jl(n.to))),n.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==cc?1:o?o[l].lastPosition:i[l];let u=n.immediate,d=c;if(!u){if(d=s.lastPosition,a.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const r=n.fromValues[l],i=null!=s.v0?s.v0:s.v0=Ms.arr(a.velocity)?a.velocity[l]:a.velocity;let o;const h=a.precision||(r==c?.005:Math.min(1,.001*Math.abs(c-r)));if(Ms.und(a.duration))if(a.decay){const e=!0===a.decay?.998:a.decay,n=Math.exp(-(1-e)*t);d=r+i/(1-e)*(1-n),u=Math.abs(s.lastPosition-d)<=h,o=i*n}else{o=null==s.lastVelocity?i:s.lastVelocity;const t=a.restVelocity||h/10,n=a.clamp?0:a.bounce,l=!Ms.und(n),p=r==c?s.v0>0:r<c;let f,m=!1;const g=1,b=Math.ceil(e/g);for(let e=0;e<b&&(f=Math.abs(o)>t,f||(u=Math.abs(c-d)<=h,!u));++e){l&&(m=d==c||d>c==p,m&&(o=-o*n,d=c));o+=(1e-6*-a.tension*(d-c)+.001*-a.friction*o)/a.mass*g,d+=o*g}}else{let n=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,s.durationProgress>0&&(s.elapsedTime=a.duration*s.durationProgress,t=s.elapsedTime+=e)),n=(a.progress||0)+t/this._memoizedDuration,n=n>1?1:n<0?0:n,s.durationProgress=n),d=r+a.easing(n)*(c-r),o=(d-s.lastPosition)/e,u=1==n}s.lastVelocity=o,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}o&&!o[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,a.round)&&(r=!0)}));const s=ac(this),l=s.getValue();if(t){const e=jl(n.to);l===e&&!r||a.decay?r&&a.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else r&&this._onChange(l)}set(e){return ds.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Xc(this)){const{to:e,config:t}=this.animation;ds.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 Ms.und(e)?(r=this.queue||[],this.queue=[]):r=[Ms.obj(e)?e:wc({},t,{to:e})],Promise.all(r.map((e=>this._update(e)))).then((e=>Ac(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Vc(this._state,e&&this._lastCallId),ds.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=Ms.obj(r)?r[t]:r,(null==r||Ic(r))&&(r=void 0),n=Ms.obj(n)?n[t]:n,null==n&&(n=void 0);const a={to:r,from:n};return Gc(this)||(e.reverse&&([r,n]=[n,r]),n=jl(n),Ms.und(n)?ac(this)||this._set(r):this._set(n)),a}_update(e,t){let r=wc({},e);const{key:n,defaultProps:a}=this;r.default&&Object.assign(a,kc(r,((e,t)=>/^on/.test(t)?Cc(e,n):e))),lu(this,r,"onProps"),cu(this,"onProps",r,this);const i=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 o=this._state;return Dc(++this._lastCallId,{key:n,props:r,defaultProps:a,state:o,actions:{pause:()=>{Kc(this)||(eu(this,!0),Ns(o.pauseQueue),cu(this,"onPause",zc(this,ru(this,this.animation.to)),this))},resume:()=>{Kc(this)&&(eu(this,!1),Xc(this)&&this._resume(),Ns(o.resumeQueue),cu(this,"onResume",zc(this,ru(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then((e=>{if(r.loop&&e.finished&&(!t||!e.noop)){const e=nu(r);if(e)return this._update(e,!0)}return e}))}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(Hc(this));const n=!Ms.und(e.to),a=!Ms.und(e.from);if(n||a){if(!(t.callId>this._lastToId))return r(Hc(this));this._lastToId=t.callId}const{key:i,defaultProps:o,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!a||n||t.default&&!Ms.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const h=!Bs(d,c);h&&(s.from=d),d=jl(d);const p=!Bs(u,l);p&&this._focus(u);const f=Ic(t.to),{config:m}=s,{decay:g,velocity:b}=m;(n||a)&&(m.velocity=0),t.config&&!f&&function(e,t,r){r&&(Fc(r=wc({},r),t),t=wc({},r,t)),Fc(e,t),Object.assign(e,t);for(const t in Ec)null==e[t]&&(e[t]=Ec[t]);let{mass:n,frequency:a,damping:i}=e;Ms.und(a)||(a<.01&&(a=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/a,2)*n,e.friction=4*Math.PI*i*n/a)}(m,xc(t.config,i),t.config!==o.config?xc(o.config,i):void 0);let y=ac(this);if(!y||Ms.und(u))return r(zc(this,!0));const v=Ms.und(t.reset)?a&&!t.default:!Ms.und(d)&&$c(t.reset,i),w=v?d:this.get(),x=Bc(u),$=Ms.num(x)||Ms.arr(x)||Gl(x),C=!f&&(!$||$c(o.immediate||t.immediate,i));if(p){const e=fc(u);if(e!==y.constructor){if(!C)throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`);y=this._set(x)}}const S=y.constructor;let _=Ol(u),k=!1;if(!_){const e=v||!Gc(this)&&h;(p||e)&&(k=Bs(Bc(w),x),_=!k),(Bs(s.immediate,C)||C)&&Bs(m.decay,g)&&Bs(m.velocity,b)||(_=!0)}if(k&&Xc(this)&&(s.changed&&!v?_=!0:_||this._stop(l)),!f&&((_||Ol(l))&&(s.values=y.getPayload(),s.toValues=Ol(u)?null:S==cc?[1]:Ts(x)),s.immediate!=C&&(s.immediate=C,C||v||this._set(l)),_)){const{onRest:e}=s;Is(su,(e=>lu(this,t,e)));const n=zc(this,ru(this,l));Ns(this._pendingCalls,n),this._pendingCalls.add(r),s.changed&&ds.batchedUpdates((()=>{s.changed=!v,null==e||e(n,this),v?xc(o.onRest,n):null==s.onStart||s.onStart(n,this)}))}v&&this._set(w),f?r(Rc(t.to,t,this._state,this)):_?this._start():Xc(this)&&!p?this._pendingCalls.add(r):r(Lc(w))}_focus(e){const t=this.animation;e!==t.to&&(Ml(this)&&this._detach(),t.to=e,Ml(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ol(t)&&(Tl(t,this),qc(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ol(e)&&Fl(e,this)}_set(e,t=!0){const r=jl(e);if(!Ms.und(r)){const e=ac(this);if(!e||!Bs(r,e.getValue())){const n=fc(r);e&&e.constructor==n?e.setValue(r):ic(this,n.create(r)),e&&ds.batchedUpdates((()=>{this._onChange(r,t)}))}}return ac(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,cu(this,"onStart",zc(this,ru(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),xc(this.animation.onChange,e,this)),xc(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ac(this).reset(jl(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),Xc(this)||(Jc(this,!0),Kc(this)||this._resume())}_resume(){Rs.skipAnimation?this.finish():Qs.start(this)}_stop(e,t){if(Xc(this)){Jc(this,!1);const r=this.animation;Is(r.values,(e=>{e.done=!0})),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),Bl(this,{type:"idle",parent:this});const n=t?Hc(this.get()):zc(this.get(),ru(this,null!=e?e:r.to));Ns(this._pendingCalls,n),r.changed&&(r.changed=!1,cu(this,"onRest",n,this))}}}function ru(e,t){const r=Bc(t);return Bs(Bc(e.get()),r)}function nu(e,t=e.loop,r=e.to){let n=xc(t);if(n){const a=!0!==n&&Mc(n),i=(a||e).reverse,o=!a||a.reset;return au(wc({},e,{loop:t,default:!1,pause:void 0,to:!i||Ic(r)?r:void 0,from:o?e.from:void 0,reset:o},a))}}function au(e){const{to:t,from:r}=e=Mc(e),n=new Set;return Ms.obj(t)&&ou(t,n),Ms.obj(r)&&ou(r,n),e.keys=n.size?Array.from(n):null,e}function iu(e){const t=au(e);return Ms.und(t.default)&&(t.default=kc(t)),t}function ou(e,t){Es(e,((e,r)=>null!=e&&t.add(r)))}const su=["onStart","onRest","onChange","onPause","onResume"];function lu(e,t,r){e.animation[r]=t[r]!==Sc(t,r)?Cc(t[r],e.key):void 0}function cu(e,t,...r){var n,a,i,o;null==(n=(a=e.animation)[t])||n.call(a,...r),null==(i=(o=e.defaultProps)[t])||i.call(o,...r)}const uu=["onStart","onChange","onRest"];let du=1;class hu{constructor(e,t){this.id=du++,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(wc({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];Ms.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(au(e)),this}start(e){let{queue:t}=this;return e?t=Ts(e).map(au):this.queue=[],this._flush?this._flush(this,t):(vu(this,t),pu(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;Is(Ts(t),(t=>r[t].stop(!!e)))}else Vc(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Ms.und(e))this.start({pause:!0});else{const t=this.springs;Is(Ts(e),(e=>t[e].pause()))}return this}resume(e){if(Ms.und(e))this.start({pause:!1});else{const t=this.springs;Is(Ts(e),(e=>t[e].resume()))}return this}each(e){Es(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,a=this._changed.size>0;(n&&!this._started||a&&!this._started)&&(this._started=!0,Fs(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const i=!n&&this._started,o=a||i&&r.size?this.get():null;a&&t.size&&Fs(t,(([e,t])=>{t.value=o,e(t,this,this._item)})),i&&(this._started=!1,Fs(r,(([e,t])=>{t.value=o,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)}ds.onFrame(this._onFrame)}}function pu(e,t){return Promise.all(t.map((t=>fu(e,t)))).then((t=>Ac(e,t)))}async function fu(e,t,r){const{keys:n,to:a,from:i,loop:o,onRest:s,onResolve:l}=t,c=Ms.obj(t.default)&&t.default;o&&(t.loop=!1),!1===a&&(t.to=null),!1===i&&(t.from=null);const u=Ms.arr(a)||Ms.fun(a)?a:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Is(uu,(r=>{const n=t[r];if(Ms.fun(n)){const a=e._events[r];t[r]=({finished:e,cancelled:t})=>{const r=a.get(n);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):a.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,Ns(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===Sc(t,"cancel");(u||p&&d.asyncId)&&h.push(Dc(++e._lastAsyncId,{props:t,state:d,actions:{pause:js,resume:js,start(t,r){p?(Vc(d,e._lastAsyncId),r(Hc(e))):(t.onRest=s,r(Rc(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=Ac(e,await Promise.all(h));if(o&&f.finished&&(!r||!f.noop)){const r=nu(t,o,a);if(r)return vu(e,[r]),fu(e,r,!0)}return l&&ds.batchedUpdates((()=>l(f,e,e.item))),f}function mu(e,t){const r=wc({},e.springs);return t&&Is(Ts(t),(e=>{Ms.und(e.keys)&&(e=au(e)),Ms.obj(e.to)||(e=wc({},e,{to:void 0})),yu(r,e,(e=>bu(e)))})),gu(e,r),r}function gu(e,t){Es(t,((t,r)=>{e.springs[r]||(e.springs[r]=t,Tl(t,e))}))}function bu(e,t){const r=new tu;return r.key=e,t&&Tl(r,t),r}function yu(e,t,r){t.keys&&Is(t.keys,(n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)}))}function vu(e,t){Is(t,(t=>{yu(e.springs,t,(t=>bu(t,e)))}))}const wu=["children"],xu=e=>{let{children:t}=e,r=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,wu);const n=m($u),i=r.pause||!!n.pause,c=r.immediate||!!n.immediate;r=function(e,t){const[r]=o((()=>({inputs:t,result:e()}))),n=s(),a=n.current;let i=a;i?Boolean(t&&i.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,i.inputs))||(i={inputs:t,result:e()}):i=r;return l((()=>{n.current=i,a==r&&(r.inputs=r.result=void 0)}),[i]),i.result}((()=>({pause:i,immediate:c})),[i,c]);const{Provider:u}=$u;return a.createElement(u,{value:r},t)},$u=(Cu=xu,Su={},Object.assign(Cu,a.createContext(Su)),Cu.Provider._context=Cu,Cu.Consumer._context=Cu,Cu);var Cu,Su;xu.Provider=$u.Provider,xu.Consumer=$u.Consumer;const _u=()=>{const e=[],t=function(t){Yl(`${ql}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 Is(e,((e,a)=>{if(Ms.und(t))n.push(e.start());else{const i=r(t,e,a);i&&n.push(e.start(i))}})),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 Is(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Is(e,(e=>e.resume(...arguments))),this},t.set=function(t){Is(e,(e=>e.set(t)))},t.start=function(t){const r=[];return Is(e,((e,n)=>{if(Ms.und(t))r.push(e.start());else{const a=this._getProps(t,e,n);a&&r.push(e.start(a))}})),r},t.stop=function(){return Is(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Is(e,((e,r)=>e.update(this._getProps(t,e,r)))),this};const r=function(e,t,r){return Ms.fun(e)?e(r,t):e};return t._getProps=r,t};function ku(e,t){const r=Ms.fun(e),[[n],a]=function(e,t,r){const n=Ms.fun(t)&&t;n&&!r&&(r=[]);const a=g((()=>n||3==arguments.length?_u():void 0),[]),i=s(0),o=Jl(),l=g((()=>({ctrls:[],queue:[],flush(e,t){const r=mu(e,t);return i.current>0&&!l.queue.length&&!Object.keys(r).some((t=>!e.springs[t]))?pu(e,t):new Promise((n=>{gu(e,r),l.queue.push((()=>{n(pu(e,t))})),o()}))}})),[]),c=s([...l.ctrls]),u=[],d=rc(e)||0;function h(e,r){for(let a=e;a<r;a++){const e=c.current[a]||(c.current[a]=new hu(null,l.flush)),r=n?n(a,e):t[a];r&&(u[a]=iu(r))}}g((()=>{Is(c.current.slice(e,d),(e=>{!function(e,t){var r;null==(r=e.ref)||r.delete(e),null==t||t.delete(e)}(e,a),e.stop(!0)})),c.current.length=e,h(d,e)}),[e]),g((()=>{h(0,Math.min(d,e))}),r);const p=c.current.map(((e,t)=>mu(e,u[t]))),f=m(xu),b=rc(f),y=f!==b&&function(e){for(const t in e)return!0;return!1}(f);Xl((()=>{i.current++,l.ctrls=c.current;const{queue:e}=l;e.length&&(l.queue=[],Is(e,(e=>e()))),Is(c.current,((e,t)=>{null==a||a.add(e),y&&e.start({default:f});const r=u[t];r&&(function(e,t){var r;t&&e.ref!==t&&(null==(r=e.ref)||r.delete(e),t.add(e),e.ref=t)}(e,r.ref),e.ref?e.queue.push(r):e.start(r))}))})),ec((()=>()=>{Is(l.ctrls,(e=>e.stop(!0)))}));const v=p.map((e=>wc({},e)));return a?[v,a]:v}(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[n,a]:n}let Ou;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(Ou||(Ou={}));class ju extends Zc{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=gl(...t);const r=this._get(),n=fc(r);ic(this,n.create(r))}advance(e){const t=this._get();Bs(t,this.get())||(ac(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Bu(this._active)&&Iu(this)}_get(){const e=Ms.arr(this.source)?this.source.map(jl):Ts(jl(this.source));return this.calc(...e)}_start(){this.idle&&!Bu(this._active)&&(this.idle=!1,Is(oc(this),(e=>{e.done=!1})),Rs.skipAnimation?(ds.batchedUpdates((()=>this.advance())),Iu(this)):Qs.start(this))}_attach(){let e=1;Is(Ts(this.source),(t=>{Ol(t)&&Tl(t,this),qc(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Is(Ts(this.source),(e=>{Ol(e)&&Fl(e,this)})),this._active.clear(),Iu(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=Ts(this.source).reduce(((e,t)=>Math.max(e,(qc(t)?t.priority:0)+1)),0))}}function Mu(e){return!1!==e.idle}function Bu(e){return!e.size||Array.from(e).every(Mu)}function Iu(e){e.idle||(e.idle=!0,Is(oc(e),(e=>{e.done=!0})),Bl(e,{type:"idle",parent:e}))}function Eu(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}Rs.assign({createStringInterpolator:Ul,to:(e,t)=>new ju(e,t)});const Tu=["style","children","scrollTop","scrollLeft","viewBox"],Fu=/^--/;function Nu(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Fu.test(e)||Du.hasOwnProperty(e)&&Du[e]?(""+t).trim():t+"px"}const Pu={};let Du={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 Au=["Webkit","Ms","Moz","O"];Du=Object.keys(Du).reduce(((e,t)=>(Au.forEach((r=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(r,t)]=e[t])),e)),Du);const Lu=["x","y","z"],zu=/^(matrix|translate|scale|rotate|skew)/,Hu=/^(translate)/,Ru=/^(rotate|skew)/,Vu=(e,t)=>Ms.num(e)&&0!==e?e+t:e,Wu=(e,t)=>Ms.arr(e)?e.every((e=>Wu(e,t))):Ms.num(e)?e===t:parseFloat(e)===t;class Uu extends dc{constructor(e){let{x:t,y:r,z:n}=e,a=Eu(e,Lu);const i=[],o=[];(t||r||n)&&(i.push([t||0,r||0,n||0]),o.push((e=>[`translate3d(${e.map((e=>Vu(e,"px"))).join(",")})`,Wu(e,0)]))),Es(a,((e,t)=>{if("transform"===t)i.push([e||""]),o.push((e=>[e,""===e]));else if(zu.test(t)){if(delete a[t],Ms.und(e))return;const r=Hu.test(t)?"px":Ru.test(t)?"deg":"";i.push(Ts(e)),o.push("rotate3d"===t?([e,t,n,a])=>[`rotate3d(${e},${t},${n},${Vu(a,r)})`,Wu(a,0)]:e=>[`${t}(${e.map((e=>Vu(e,r))).join(",")})`,Wu(e,t.startsWith("scale")?1:0)])}})),i.length&&(a.transform=new qu(i,o)),super(a)}}class qu extends Il{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 Is(this.inputs,((r,n)=>{const a=jl(r[0]),[i,o]=this.transforms[n](Ms.arr(a)?a:r.map(jl));e+=" "+i,t=t&&o})),t?"none":e}observerAdded(e){1==e&&Is(this.inputs,(e=>Is(e,(e=>Ol(e)&&Tl(e,this)))))}observerRemoved(e){0==e&&Is(this.inputs,(e=>Is(e,(e=>Ol(e)&&Fl(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Bl(this,e)}}const Qu=["scrollTop","scrollLeft"];Rs.assign({batchedUpdates:S,createStringInterpolator:Ul,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 Zu=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:r=(e=>new dc(e)),getComponentProps:n=(e=>e)}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},i=e=>{const t=vc(e)||"Anonymous";return(e=Ms.str(e)?i[e]||(i[e]=gc(e,a)):e[yc]||(e[yc]=gc(e,a))).displayName=`Animated(${t})`,e};return Es(e,((t,r)=>{Ms.arr(e)&&(r=vc(t)),i[r]=i(t)})),{animated:i}})(["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:a,children:i,scrollTop:o,scrollLeft:s,viewBox:l}=n,c=Eu(n,Tu),u=Object.values(c),d=Object.keys(c).map((t=>r||e.hasAttribute(t)?t:Pu[t]||(Pu[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==i&&(e.textContent=i);for(let t in a)if(a.hasOwnProperty(t)){const r=Nu(t,a[t]);Fu.test(t)?e.style.setProperty(t,r):e.style[t]=r}d.forEach(((t,r)=>{e.setAttribute(t,u[r])})),void 0!==o&&(e.scrollTop=o),void 0!==s&&(e.scrollLeft=s),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new Uu(e),getComponentProps:e=>Eu(e,Qu)}),Yu=Zu.animated,Gu=w.div`
|
|
690
690
|
display: inline-block;
|
|
691
691
|
position: relative;
|
|
692
692
|
width: ${e=>e.$size}px;
|
|
693
693
|
height: ${e=>e.$size}px;
|
|
694
|
-
`,
|
|
694
|
+
`,Xu=$`
|
|
695
695
|
0% {
|
|
696
696
|
transform: rotate(0deg);
|
|
697
697
|
}
|
|
698
698
|
100% {
|
|
699
699
|
transform: rotate(360deg);
|
|
700
700
|
}
|
|
701
|
-
`,
|
|
701
|
+
`,Ku=w.div`
|
|
702
702
|
box-sizing: border-box;
|
|
703
703
|
display: block;
|
|
704
704
|
position: absolute;
|
|
@@ -710,14 +710,14 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
710
710
|
border-radius: 50%;
|
|
711
711
|
border-color: ${e=>e.$color||_r.Neutral[8](e)}
|
|
712
712
|
transparent transparent transparent;
|
|
713
|
-
animation: ${
|
|
714
|
-
`,
|
|
713
|
+
animation: ${Xu} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
|
714
|
+
`,Ju=w(Ku)`
|
|
715
715
|
animation-delay: -0.45s;
|
|
716
|
-
`,
|
|
716
|
+
`,ed=w(Ku)`
|
|
717
717
|
animation-delay: -0.3s;
|
|
718
|
-
`,
|
|
718
|
+
`,td=w(Ku)`
|
|
719
719
|
animation-delay: -0.15s;
|
|
720
|
-
`,
|
|
720
|
+
`,rd=w.button`
|
|
721
721
|
padding: 0.5rem 1rem;
|
|
722
722
|
min-width: 4rem;
|
|
723
723
|
border-radius: 4px;
|
|
@@ -814,7 +814,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
814
814
|
height: auto;
|
|
815
815
|
}
|
|
816
816
|
`}
|
|
817
|
-
`,
|
|
817
|
+
`,nd=w((({color:e,className:n,size:a=18})=>t(Gu,{className:n,$size:a,$color:e,children:[r(Ku,{id:"inner1",$size:a-2,$borderWidth:2}),r(Ju,{id:"inner2",$size:a-2,$borderWidth:2}),r(ed,{id:"inner3",$size:a-2,$borderWidth:2}),r(td,{id:"inner4",$size:a-2,$borderWidth:2})]})))`
|
|
818
818
|
margin-right: 0.5rem;
|
|
819
819
|
${e=>{let t;switch(e.$buttonStyle){case"secondary":case"light":case"link":t=_r.Primary(e);break;case"disabled":t=_r.Neutral[3](e);break;default:t=_r.Neutral[8](e)}return x`
|
|
820
820
|
#inner1,
|
|
@@ -824,7 +824,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
824
824
|
border-color: ${t} transparent transparent transparent;
|
|
825
825
|
}
|
|
826
826
|
`}}
|
|
827
|
-
`;var
|
|
827
|
+
`;var ad,id={};Object.defineProperty(id,"__esModule",{value:!0});var od=e;const sd=e=>od.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:od.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"})});sd.displayName="ExclamationCircleFillIcon",ad=id.ExclamationCircleFillIcon=sd;var ld,cd={};Object.defineProperty(cd,"__esModule",{value:!0});var ud=e;const dd=e=>ud.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:ud.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"})});dd.displayName="TickIcon",ld=cd.TickIcon=dd;const hd=w.div`
|
|
828
828
|
display: flex;
|
|
829
829
|
justify-content: center;
|
|
830
830
|
align-items: center;
|
|
@@ -841,22 +841,22 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
841
841
|
background: transparent;
|
|
842
842
|
|
|
843
843
|
${e=>{let t,r;return e.selected&&(t=_r.Primary(e),r=_r.Primary(e)),e.disabled&&(t=_r.Neutral[6](e),r=_r.Neutral[6](e)),`\n\t\t\tborder: 1px solid ${t};\n\t\t\tbackground: ${r};\n\t\t`}}
|
|
844
|
-
`,
|
|
844
|
+
`,pd=w.input`
|
|
845
845
|
position: absolute;
|
|
846
846
|
opacity: 0;
|
|
847
847
|
height: 100%;
|
|
848
848
|
width: 100%;
|
|
849
849
|
cursor: ${e=>e.disabled?"not-allowed":"pointer"};
|
|
850
|
-
`,
|
|
850
|
+
`,fd=w(ld)`
|
|
851
851
|
${e=>{let t;if("small"===e.$displaySize)t="1.5rem";else t="1.75rem";return x`
|
|
852
852
|
height: ${t};
|
|
853
853
|
width: ${t};
|
|
854
854
|
`}}
|
|
855
855
|
color: ${e=>e.disabled?_r.Neutral[4]:_r.Neutral[8]};
|
|
856
|
-
`,
|
|
856
|
+
`,md=w(Yu.div)`
|
|
857
857
|
overflow: hidden;
|
|
858
858
|
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.2);
|
|
859
|
-
`,
|
|
859
|
+
`,gd=w.ul`
|
|
860
860
|
border-bottom-left-radius: 4px;
|
|
861
861
|
border-bottom-right-radius: 4px;
|
|
862
862
|
background: transparent;
|
|
@@ -883,7 +883,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
883
883
|
${Qr.mobileL} {
|
|
884
884
|
max-height: 15rem;
|
|
885
885
|
}
|
|
886
|
-
`,
|
|
886
|
+
`,bd=w.li`
|
|
887
887
|
:hover,
|
|
888
888
|
:focus,
|
|
889
889
|
:active {
|
|
@@ -892,7 +892,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
892
892
|
${e=>{if(e.checked)return x`
|
|
893
893
|
background: ${_r.Accent.Light[5]};
|
|
894
894
|
`}}
|
|
895
|
-
`,
|
|
895
|
+
`,yd=w.button`
|
|
896
896
|
display: flex;
|
|
897
897
|
${e=>e.multiSelect?x`
|
|
898
898
|
padding: 0.5rem 1rem;
|
|
@@ -924,7 +924,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
924
924
|
justify-content: center;
|
|
925
925
|
align-items: center;
|
|
926
926
|
background: ${_r.Neutral[8]};
|
|
927
|
-
`;const
|
|
927
|
+
`;const vd=w.div`
|
|
928
928
|
${Tr("Body","regular")}
|
|
929
929
|
color: ${_r.Neutral[1]};
|
|
930
930
|
text-align: left;
|
|
@@ -936,19 +936,19 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
936
936
|
-webkit-line-clamp: 2;
|
|
937
937
|
-webkit-box-orient: vertical;
|
|
938
938
|
`}}
|
|
939
|
-
`,
|
|
939
|
+
`,wd=w.span`
|
|
940
940
|
color: ${_r.Neutral[4]};
|
|
941
941
|
display: inline;
|
|
942
942
|
padding-left: 0.4rem;
|
|
943
|
-
`,
|
|
943
|
+
`,xd=w.div`
|
|
944
944
|
display: flex;
|
|
945
945
|
flex-direction: column;
|
|
946
|
-
|
|
946
|
+
`,$d=w.div`
|
|
947
947
|
width: 100%;
|
|
948
948
|
height: 1.5rem;
|
|
949
949
|
word-break: break-all;
|
|
950
950
|
overflow: hidden;
|
|
951
|
-
`,
|
|
951
|
+
`,Cd=w.div`
|
|
952
952
|
width: 100%;
|
|
953
953
|
text-overflow: ellipsis;
|
|
954
954
|
white-space: nowrap;
|
|
@@ -967,15 +967,15 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
967
967
|
outline-color: ${_r.Accent.Light[3]};
|
|
968
968
|
color: ${_r.Neutral[1]};
|
|
969
969
|
}
|
|
970
|
-
`;const
|
|
970
|
+
`;const Sd=w((({className:e,checked:n,disabled:a,onChange:i,onKeyPress:s,displaySize:c="default",...u})=>{const[d,h]=o(n);l((()=>{h(n)}),[n]);const p=e=>{if(!a){const t=e;if(!(" "===t.key||"change"===e.type))return;i&&i(e),s&&s(t)}};return t(hd,{selected:d,disabled:a,className:e,"data-testid":"checkbox",$displaySize:c,role:"checkbox","aria-checked":d,"aria-labelledby":"checkbox-input",tabIndex:a?-1:0,onKeyDown:p,children:[r(pd,{id:"checkbox-input","data-testid":"checkbox-input","aria-hidden":"true",type:"checkbox",tabIndex:-1,onChange:p,disabled:a,checked:d,...u}),d&&r(fd,{id:"checkmark","data-testid":"checkmark",disabled:a,$displaySize:c})]})}))`
|
|
971
971
|
flex: 0 0 1.5rem;
|
|
972
972
|
margin-right: 1rem;
|
|
973
|
-
`,
|
|
973
|
+
`,_d=w.div`
|
|
974
974
|
width: 100%;
|
|
975
975
|
display: flex;
|
|
976
976
|
justify-content: flex-end;
|
|
977
977
|
padding: 1rem 0 0.5rem 0;
|
|
978
|
-
`,
|
|
978
|
+
`,kd=w.button`
|
|
979
979
|
${Tr("Body","semibold")}
|
|
980
980
|
background-color: transparent;
|
|
981
981
|
background-repeat: no-repeat;
|
|
@@ -984,22 +984,22 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
984
984
|
overflow: hidden;
|
|
985
985
|
outline: none;
|
|
986
986
|
${e=>`\n\t\t\tcolor: ${_r.Primary(e)};\n\t\t`}
|
|
987
|
-
`,
|
|
987
|
+
`,Od=w.div`
|
|
988
988
|
width: 100%;
|
|
989
989
|
display: flex;
|
|
990
990
|
padding: 1rem 0.5rem;
|
|
991
991
|
align-items: center;
|
|
992
|
-
`,
|
|
992
|
+
`,jd=w(Nr.Body)``,Md=w(ad)`
|
|
993
993
|
margin-right: 0.625rem;
|
|
994
994
|
height: 1.5rem;
|
|
995
995
|
width: 1.5rem;
|
|
996
996
|
color: ${_r.Validation.Red.Icon};
|
|
997
|
-
`;var
|
|
997
|
+
`;var Bd,Id={};Object.defineProperty(Id,"__esModule",{value:!0});var Ed=e;const Td=e=>Ed.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Ed.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"})});Td.displayName="MagnifierIcon",Bd=Id.MagnifierIcon=Td;const Fd=w.li`
|
|
998
998
|
background: ${_r.Neutral[7]};
|
|
999
999
|
display: flex;
|
|
1000
1000
|
border-radius: 4px;
|
|
1001
1001
|
align-items: center;
|
|
1002
|
-
`,
|
|
1002
|
+
`,Nd=w.input`
|
|
1003
1003
|
${Tr("Body","regular")}
|
|
1004
1004
|
height: 3rem;
|
|
1005
1005
|
border: none;
|
|
@@ -1017,21 +1017,21 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1017
1017
|
::-webkit-input-placeholder {
|
|
1018
1018
|
color: ${_r.Neutral[3]};
|
|
1019
1019
|
}
|
|
1020
|
-
`,
|
|
1020
|
+
`,Pd=w(Bd)`
|
|
1021
1021
|
height: 1.375rem;
|
|
1022
1022
|
width: 1.375rem;
|
|
1023
1023
|
margin: 0 0.5rem;
|
|
1024
1024
|
color: ${_r.Neutral[3]};
|
|
1025
|
-
`,
|
|
1025
|
+
`,Dd=w(tn)`
|
|
1026
1026
|
padding: 0;
|
|
1027
1027
|
margin: 0 0.5rem;
|
|
1028
1028
|
color: ${_r.Neutral[3]};
|
|
1029
1029
|
cursor: pointer;
|
|
1030
|
-
`,
|
|
1030
|
+
`,Ad=w(Gr)`
|
|
1031
1031
|
height: 1.375rem;
|
|
1032
1032
|
width: 1.375rem;
|
|
1033
1033
|
color: ${_r.Neutral[3]};
|
|
1034
|
-
`,
|
|
1034
|
+
`,Ld=p(((e,n)=>{const{onClear:a,...i}=e;return t(Fd,{children:[r(Pd,{}),r(Nd,{ref:n,...i}),i.value&&r(Dd,{"aria-label":"Clear search",focusOutline:"browser",onClick:a,children:r(Ad,{})})]},"search")})),zd=({listItems:e,listExtractor:a,valueExtractor:i,onSelectItem:c,listStyleWidth:u,visible:d,enableSearch:h,searchPlaceholder:p="Search",onSearch:f,searchFunction:m,onDismiss:g,multiSelect:b,selectedItems:y,onSelectAll:v,onRetry:w,itemsLoadState:x="success",itemTruncationType:$="end",renderListItem:C,onBlur:S,..._})=>{const[k,O]=o(0),[j,M]=o(""),[B,I]=o(e),[E,T]=o(0),F=ku({height:E}),N=s(),P=s(),D=s([]),A=s(),L=s(k),z=s(B),H=e=>{L.current=e,O(e)},R=e=>{z.current=e,I(e)};l((()=>(document.addEventListener("keydown",Z),()=>{document.removeEventListener("keydown",Z)})),[]),l((()=>{q(j)}),[j]),l((()=>{M(""),d?(T(Q()),A&&A.current?(A.current.focus(),H(-1)):D.current[k]&&D.current[k].focus()):T(0)}),[d]),l((()=>{if(d){const e=Q();T(e)}}),[B]),l((()=>{R(e),M(""),H(0)}),[e]);const V=e=>a?a(e):e.toString(),W=e=>{const t=a?a(e):e.toString();let r=0;return P&&P.current&&(r=P.current.getBoundingClientRect().width-100),Bn.shouldTruncateToTwoLines("string"==typeof t?t:t.title,r)},U=e=>!!ss(y,(t=>cs(t,e))),q=t=>{if(""===t)R(e);else if(m){const e=m(t);R(e)}else{const r=e.filter((e=>{const r=V(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())}));R(r)}},Q=()=>P&&P.current?P.current.getBoundingClientRect().height:0,Z=e=>{if(N&&N.current.contains(e.target))switch(e.code){case"ArrowDown":if(L.current<z.current.length-1){const e=L.current+1;D.current[e].focus(),H(e)}break;case"ArrowUp":if(L.current>0){const e=L.current-1;D.current[e].focus(),H(L.current-1)}break;case"Escape":g&&g()}},Y=(e,t)=>{e.preventDefault(),c&&c(t,(e=>i?i(e):e)(t))},G=e=>{const t=e.target.value;M(t),f&&f()},X=()=>{M(""),f&&f()},K=()=>{w&&w()},J=()=>{S&&S()},ee=e=>{const n=V(e),a="string"==typeof n?n:n.title;return t(xd,{"data-testid":"truncate-middle-container",children:[r($d,{children:a}),t(Cd,{children:[" ",a]})]})},te=e=>{const a=V(e);return"string"==typeof a?r(n,{children:a}):t(n,{children:[a.title,a.secondaryLabel&&r(wd,{children:a.secondaryLabel})]})},re=()=>{if(!w||w&&"success"===x)return B.map(((e,n)=>r(bd,{checked:U(e)&&!b,children:t(yd,{onClick:t=>{Y(t,e)},ref:e=>D.current[n]=e,"data-testid":"list-item",type:"button",tabIndex:d?0:-1,multiSelect:b,onBlur:J,children:[b&&r(Sd,{checked:U(e),displaySize:"small"}),C?C(e,{selected:U(e)}):r(vd,{truncateType:$,children:"middle"===$&&W(e)?ee(e):te(e)})]})},((e,t)=>`item_${t}__${i?i(e):e}`)(e,n))))},ne=()=>{if(b&&B.length>0&&!j&&"success"===x)return r(_d,{children:r(kd,{onClick:v,children:0===y.length?"Select all":"Unselect all"})},"selectAll")},ae=()=>{if(j&&0===B.length)return t(Od,{"data-testid":"list-no-results",children:[r(Md,{"data-testid":"no-result-icon"}),r(jd,{children:"No results found."})]},"noResults")},ie=()=>{if(w&&"loading"===x)return t(Od,{"data-testid":"list-loading",children:[r(nd,{$buttonStyle:"secondary",size:24}),r(jd,{children:"Loading..."})]},"loading")},oe=()=>{if(w&&"fail"===x)return t(Od,{"data-testid":"list-fail",children:[r(Md,{"data-testid":"load-error-icon"}),r(jd,{children:"Failed to load."}),r(kd,{onClick:K,children:"Try again."})]},"noResults")};return r(md,{style:F,"data-testid":d?"dropdown-container":"dropdown-container-hidden",ref:N,children:(()=>{if(d)return t(gd,{ref:P,"data-testid":"dropdown-list",width:u,role:"list",..._,children:[(h||m)&&"success"===x?r(Ld,{ref:A,onChange:G,value:j,placeholder:p,"data-testid":"search-input","aria-label":"search-input",tabIndex:d?0:-1,onClear:X}):null,ne(),ae(),ie(),oe(),re()]})})()})};var Hd,Rd={};Object.defineProperty(Rd,"__esModule",{value:!0});var Vd=e;const Wd=e=>Vd.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Vd.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"})});Wd.displayName="ChevronDownIcon",Hd=Rd.ChevronDownIcon=Wd;const Ud=w.div`
|
|
1035
1035
|
position: relative;
|
|
1036
1036
|
min-height: 3rem;
|
|
1037
1037
|
height: 3rem; // Need this to persist the height when expanding or collapsing list
|
|
@@ -1040,7 +1040,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1040
1040
|
${Qr.tablet} {
|
|
1041
1041
|
height: auto;
|
|
1042
1042
|
}
|
|
1043
|
-
`,
|
|
1043
|
+
`,qd=w.button`
|
|
1044
1044
|
display: flex;
|
|
1045
1045
|
position: relative;
|
|
1046
1046
|
align-items: center;
|
|
@@ -1061,7 +1061,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1061
1061
|
:focus-visible {
|
|
1062
1062
|
outline: 2px solid ${_r.Accent.Light[3]};
|
|
1063
1063
|
}
|
|
1064
|
-
`,
|
|
1064
|
+
`,Qd=$`
|
|
1065
1065
|
from {
|
|
1066
1066
|
position: absolute;
|
|
1067
1067
|
top: 0;
|
|
@@ -1073,7 +1073,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1073
1073
|
to {
|
|
1074
1074
|
position: relative;
|
|
1075
1075
|
}
|
|
1076
|
-
`,
|
|
1076
|
+
`,Zd=w.div`
|
|
1077
1077
|
position: relative;
|
|
1078
1078
|
border: 1px solid ${_r.Neutral[5]};
|
|
1079
1079
|
border-radius: ${"4px"};
|
|
@@ -1081,7 +1081,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1081
1081
|
|
|
1082
1082
|
:focus-within {
|
|
1083
1083
|
border: 1px solid ${_r.Accent.Light[1]};
|
|
1084
|
-
box-shadow: ${
|
|
1084
|
+
box-shadow: ${Tn};
|
|
1085
1085
|
}
|
|
1086
1086
|
|
|
1087
1087
|
${e=>e.expanded?x`
|
|
@@ -1091,13 +1091,13 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1091
1091
|
width: 100%;
|
|
1092
1092
|
z-index: 2;
|
|
1093
1093
|
`:x`
|
|
1094
|
-
animation: ${
|
|
1094
|
+
animation: ${Qd} 0.5s ease-in-out;
|
|
1095
1095
|
`}
|
|
1096
1096
|
|
|
1097
1097
|
${e=>e.disabled?x`
|
|
1098
1098
|
background: ${_r.Neutral[6](e)};
|
|
1099
1099
|
|
|
1100
|
-
${
|
|
1100
|
+
${qd} {
|
|
1101
1101
|
cursor: not-allowed;
|
|
1102
1102
|
}
|
|
1103
1103
|
|
|
@@ -1109,7 +1109,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1109
1109
|
border: none;
|
|
1110
1110
|
background: transparent !important;
|
|
1111
1111
|
|
|
1112
|
-
${
|
|
1112
|
+
${qd} {
|
|
1113
1113
|
padding-left: 0rem;
|
|
1114
1114
|
}
|
|
1115
1115
|
|
|
@@ -1122,25 +1122,25 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1122
1122
|
|
|
1123
1123
|
:focus-within {
|
|
1124
1124
|
border: 1px solid ${_r.Validation.Red.Border(e)};
|
|
1125
|
-
box-shadow: ${
|
|
1125
|
+
box-shadow: ${Fn};
|
|
1126
1126
|
}
|
|
1127
1127
|
`:void 0}
|
|
1128
|
-
`,
|
|
1128
|
+
`,Yd=w.div`
|
|
1129
1129
|
transform: rotate(${e=>e.expanded?180:0}deg);
|
|
1130
1130
|
transition: ${on};
|
|
1131
1131
|
margin-left: 1rem;
|
|
1132
|
-
`,
|
|
1132
|
+
`,Gd=w(Hd)`
|
|
1133
1133
|
color: ${_r.Neutral[3]};
|
|
1134
1134
|
height: ${Mr.Body.fontSize}rem;
|
|
1135
1135
|
width: ${Mr.Body.fontSize}rem;
|
|
1136
|
-
`,
|
|
1136
|
+
`,Xd=w.div`
|
|
1137
1137
|
height: 1px;
|
|
1138
1138
|
background: ${_r.Neutral[5]};
|
|
1139
1139
|
margin: 0 0.5rem;
|
|
1140
|
-
`,
|
|
1140
|
+
`,Kd=w.div`
|
|
1141
1141
|
display: flex;
|
|
1142
1142
|
flex: 1;
|
|
1143
|
-
`,
|
|
1143
|
+
`,Jd=w(Nr.Body)`
|
|
1144
1144
|
text-align: left;
|
|
1145
1145
|
line-height: 1.375rem;
|
|
1146
1146
|
${e=>{if("middle"!==e.truncateType)return x`
|
|
@@ -1150,9 +1150,9 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1150
1150
|
text-overflow: ellipsis;
|
|
1151
1151
|
`}}
|
|
1152
1152
|
overflow: hidden;
|
|
1153
|
-
`,
|
|
1153
|
+
`,eh=w(Jd)`
|
|
1154
1154
|
color: ${_r.Neutral[3]};
|
|
1155
|
-
`,
|
|
1155
|
+
`,th=Ud,rh=w(Zd)``,nh=w.div`
|
|
1156
1156
|
position: relative;
|
|
1157
1157
|
display: flex;
|
|
1158
1158
|
margin: 0 1rem;
|
|
@@ -1169,29 +1169,29 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1169
1169
|
`:x`
|
|
1170
1170
|
flex-direction: row;
|
|
1171
1171
|
`}
|
|
1172
|
-
`,
|
|
1172
|
+
`,ah=w(qd)`
|
|
1173
1173
|
padding: 0;
|
|
1174
1174
|
width: auto;
|
|
1175
|
-
`,
|
|
1175
|
+
`,ih=w.div`
|
|
1176
1176
|
height: 3rem;
|
|
1177
1177
|
display: flex;
|
|
1178
1178
|
align-items: center;
|
|
1179
1179
|
padding: 0;
|
|
1180
1180
|
background: transparent;
|
|
1181
1181
|
margin-right: 0.75rem;
|
|
1182
|
-
`,
|
|
1182
|
+
`,oh=w.div`
|
|
1183
1183
|
transform: rotate(${e=>e.$expanded?180:0}deg);
|
|
1184
1184
|
transition: ${on};
|
|
1185
1185
|
margin: 0 0.75rem;
|
|
1186
|
-
`,
|
|
1186
|
+
`,sh=w(Hd)`
|
|
1187
1187
|
color: ${_r.Neutral[3]};
|
|
1188
1188
|
height: ${Mr.Body.fontSize}rem;
|
|
1189
1189
|
width: ${Mr.Body.fontSize}rem;
|
|
1190
1190
|
vertical-align: bottom;
|
|
1191
|
-
`,
|
|
1191
|
+
`,lh=w.div`
|
|
1192
1192
|
display: flex;
|
|
1193
1193
|
flex: 1 1 auto;
|
|
1194
|
-
`,
|
|
1194
|
+
`,ch=w(Nr.Body)`
|
|
1195
1195
|
text-align: left;
|
|
1196
1196
|
display: -webkit-box;
|
|
1197
1197
|
-webkit-line-clamp: 2;
|
|
@@ -1199,9 +1199,9 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1199
1199
|
overflow: hidden;
|
|
1200
1200
|
text-overflow: ellipsis;
|
|
1201
1201
|
margin-top: 1px; // align with input
|
|
1202
|
-
`,
|
|
1202
|
+
`,uh=w(ch)`
|
|
1203
1203
|
color: ${_r.Neutral[3]};
|
|
1204
|
-
`,
|
|
1204
|
+
`,dh=w.div`
|
|
1205
1205
|
width: 1px;
|
|
1206
1206
|
background: ${_r.Neutral[5]};
|
|
1207
1207
|
|
|
@@ -1214,16 +1214,16 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1214
1214
|
`:x`
|
|
1215
1215
|
margin: 1rem 0.75rem 1rem 0;
|
|
1216
1216
|
`}
|
|
1217
|
-
`,
|
|
1217
|
+
`,hh=({addon:e,error:a,onChange:i,readOnly:c,className:u,onBlur:d,...h})=>{const{placeholder:p,options:f,enableSearch:m,searchFunction:g,searchPlaceholder:b,valueExtractor:y,listExtractor:v,displayValueExtractor:w,selectedOption:x,onSelectOption:$,onHideOptions:C,onShowOptions:S,"data-selector-testid":_}=e.attributes,{position:k}=e,[O,j]=o(x),[M,B]=o(!1),I=s(),E=s();l((()=>{j(x)}),[x]),l((()=>(document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)})),[]);const T=()=>w?w(O):y?y(O):O.toString(),F=e=>{!e&&C&&C(),e&&S&&S()},N=e=>{if(!h.disabled){if(I&&I.current.contains(e.target))return;B(!1),F(!1),L()}},P=e=>{e.preventDefault(),h.disabled||(B(!M),F(!M))},D=(e,t)=>{j(e),B(!1),F(!1),E&&E.current.focus(),$&&$(e,t)},A=e=>{i&&i(e)},L=()=>{d&&d()},z=()=>{B(!1),F(!1),E&&E.current.focus()};return r(th,{className:u,children:t(rh,{ref:I,disabled:h.disabled,error:a&&!M,expanded:M,$readOnly:c,children:[t(nh,{$expanded:M,$readOnly:c,$position:k,children:[c?O?r(ih,{children:r(ch,{"data-testid":"selector-label",children:T()})}):null:r(ah,{ref:E,type:"button",disabled:h.disabled,"data-testid":_||"addon-selector",onClick:P,children:t(n,{children:[t(lh,{children:[p&&!O&&r(uh,{children:p}),O&&r(ch,{"data-testid":"selector-label",children:T()})]}),r(oh,{$expanded:M,children:r(sh,{})})]})}),r(dh,{$readOnly:c,$position:k}),r(Gn,{...h,readOnly:c,error:a,onChange:A,"data-testid":h["data-testid"]||"input",onBlur:L})]}),f&&f.length>0?r(zd,{listItems:f,selectedItems:x?[x]:[],onSelectItem:D,valueExtractor:y,listExtractor:v,visible:M,enableSearch:m,searchFunction:g,searchPlaceholder:b,"data-testid":"dropdown-list",onBlur:L,onDismiss:z}):null]})})},ph=i.forwardRef((({addon:e,error:n,className:a,...i},o)=>{const s=()=>r(Yn,{disabled:i.disabled,$error:n,$readOnly:i.readOnly,"data-testid":i["data-testid"],className:a,children:r(Gn,{ref:o,...i,"data-testid":"input"})});if(!e)return s();{const{type:o="label",position:l="left"}=e,{allowClear:c}=i;switch(o){case"list":{const t=e.attributes;return t.options&&t.options.length>0?r(hh,{addon:e,error:n,className:a,...i}):s()}case"custom":{const o=e.attributes;return o.children?t(Vn,{$error:n,disabled:i.disabled,$readOnly:i.readOnly,"data-testid":i["data-testid"],$position:l,className:a,children:[r(Xn,{"data-testid":"addon",disabled:i.disabled,$readOnly:i.readOnly,$position:l,children:o.children}),r(Gn,{...i,allowClear:c&&"right"!==l,error:n,"data-testid":"input"})]}):s()}default:{const o=e.attributes;return o.value?t(Vn,{disabled:i.disabled,$error:n,$readOnly:i.readOnly,"data-testid":i["data-testid"],$position:l,className:a,children:[r(Xn,{"data-testid":"addon",disabled:i.disabled,$readOnly:i.readOnly,$position:l,children:o.value}),r(Gn,{...i,allowClear:c&&"right"!==l,error:n,"data-testid":"input"})]}):s()}}}})),fh=i.forwardRef(((e,t)=>{const{label:n,errorMessage:a,id:i="form-field-group","data-error-testid":o,"data-testid":s,...l}=e;return r(wn,{id:i,label:n,errorMessage:a,disabled:l.disabled,"data-error-testid":o,children:r(ph,{ref:t,id:`${i}-base`,"data-testid":s||i,error:!!a,...l})})})),mh=({children:e,show:t,error:n,disabled:a,testId:i,onBlur:o,readOnly:c})=>{const u=s(),d=s(t);l((()=>(document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)})),[]),l((()=>{d.current=t}),[t]);const h=e=>{if(!a){if(u&&u.current.contains(e.target))return;d.current&&o()}};return r(Ud,{children:r(Zd,{ref:u,error:n&&!t,disabled:a,$readOnly:c,expanded:t,"data-testid":i,children:e})})},gh=({selectedOptions:e,placeholder:a="Select",options:i,disabled:c,error:u,"data-testid":d,enableSearch:h=!1,searchFunction:p,searchPlaceholder:f,valueExtractor:m,listExtractor:g,onSelectOptions:b,listStyleWidth:y,onShowOptions:v,onHideOptions:w,onRetry:x,optionsLoadState:$="success",optionTruncationType:C="end",...S})=>{const[_,k]=o(e||[]),[O,j]=o(!1),M=s();l((()=>{k(e||[])}),[e]);const B=(e,t)=>{const r=[..._],n=os(_,(e=>(m?m(e):e)===t));n>-1?r.splice(n,1):r.push(e),k(r),T(!1),M&&M.current.focus(),b&&b(r)},I=()=>{O&&(j(!1),T(!1)),M&&M.current.focus()},E=()=>{_&&_.length>0?(k([]),b([])):(k(i),b(i))},T=e=>{!e&&w&&w(),e&&v&&v()};return t(mh,{show:O,error:u&&!O,disabled:c,testId:d,onBlur:()=>{j(!1),T(!1)},children:[r(qd,{ref:M,type:"button","data-testid":"selector",onClick:e=>{e.preventDefault(),c||(j(!O),T(!O))},...S,children:t(n,{children:[r(Kd,{children:_&&0!==_.length?r(Jd,{children:_&&0!=_.length?`${_.length} selected`:a}):r(eh,{truncateType:C,children:a})}),r(Yd,{expanded:O,children:r(Gd,{})})]})}),O&&r(Xd,{}),i&&i.length>0||x?r(zd,{listItems:i,onSelectItem:B,onDismiss:I,valueExtractor:m,listExtractor:g,listStyleWidth:y,visible:O,enableSearch:h,searchFunction:p,searchPlaceholder:f,"data-testid":"dropdown-list",multiSelect:!0,selectedItems:_,onSelectAll:E,onRetry:x,itemsLoadState:$,itemTruncationType:C}):null]})},bh=({selectedOption:e,placeholder:a="Select",options:i,disabled:c,error:u,"data-testid":d,id:h,enableSearch:p=!1,searchFunction:f,searchPlaceholder:m,valueExtractor:g,valueToStringFunction:b,listExtractor:y,displayValueExtractor:v,onSelectOption:w,listStyleWidth:x,onShowOptions:$,onHideOptions:C,onRetry:S,optionsLoadState:_="success",optionTruncationType:k="end",renderCustomSelectedOption:O,renderListItem:j,...M})=>{const[B,I]=o(e),[E,T]=o(!1),F=s(),N=s();l((()=>{I(e)}),[e]);const P=(e,t)=>{I(e),T(!1),L(!1),F&&F.current.focus(),w&&w(e,t)},D=()=>{E&&(T(!1),L(!1)),F&&F.current.focus()},A=e=>{if("middle"===k){let t=0;return N&&N.current&&(t=N.current.getBoundingClientRect().width),Bn.truncateOneLine((e=>"string"==typeof e?e:b(e)||e.toString())(e),t,120,8)}return e},L=e=>{!e&&C&&C(),e&&$&&$()};return t(mh,{show:E,error:u&&!E,disabled:c,readOnly:M.readOnly,testId:d,onBlur:()=>{T(!1),L(!1)},children:[r(qd,{ref:F,type:"button","data-testid":h||"selector",disabled:c,onClick:e=>{e.preventDefault(),c||M.readOnly||(T(!E),L(!E))},...M,children:t(n,{children:[r(Kd,{ref:N,children:B?O?O(B):r(Jd,{truncateType:k,children:A(v?v(B):g?g(B):B.toString())}):r(eh,{truncateType:k,children:a})}),!M.readOnly&&r(Yd,{expanded:E,children:r(Gd,{})})]})}),E&&r(Xd,{}),i&&i.length>0?r(zd,{listItems:i,onSelectItem:P,onDismiss:D,valueExtractor:g,listExtractor:y,listStyleWidth:x,visible:E,enableSearch:p,searchPlaceholder:m,searchFunction:f,"data-testid":"dropdown-list",selectedItems:B?[B]:[],onRetry:S,itemsLoadState:_,itemTruncationType:k,renderListItem:j}):null]})},yh=w(Nr.H6)`
|
|
1218
1218
|
text-align: right;
|
|
1219
1219
|
|
|
1220
1220
|
${e=>{if(e.disabled)return x`
|
|
1221
1221
|
color: ${_r.Neutral[4](e)};
|
|
1222
1222
|
`}}
|
|
1223
|
-
`,
|
|
1223
|
+
`,vh=({value:e,maxLength:t,disabled:a,renderCustomCounter:s})=>{const[c,u]=o("");l((()=>{u(d(`${e||""}`))}),[e,t]);const d=e=>{if(s)return s(t,e.toString().length);{const r=t-e.toString().length;return r<=1?`${r} character left`:`${r.toLocaleString()} characters left`}};return r(n,{children:i.isValidElement(c)?c:r(yh,{"data-testid":"counter-label",weight:"semibold",disabled:a,children:c})})},wh=w.div`
|
|
1224
1224
|
display: flex;
|
|
1225
1225
|
flex-direction: column;
|
|
1226
|
-
`,
|
|
1226
|
+
`,xh=w.textarea`
|
|
1227
1227
|
border: 1px solid ${_r.Neutral[5]};
|
|
1228
1228
|
border-radius: 4px;
|
|
1229
1229
|
display: block;
|
|
@@ -1239,7 +1239,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1239
1239
|
:active {
|
|
1240
1240
|
outline: none;
|
|
1241
1241
|
border: 1px solid ${_r.Accent.Light[1]};
|
|
1242
|
-
box-shadow: ${
|
|
1242
|
+
box-shadow: ${Tn};
|
|
1243
1243
|
}
|
|
1244
1244
|
|
|
1245
1245
|
::placeholder,
|
|
@@ -1273,20 +1273,20 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1273
1273
|
:focus,
|
|
1274
1274
|
:active {
|
|
1275
1275
|
border: 1px solid ${_r.Validation.Red.Border(e)};
|
|
1276
|
-
box-shadow: ${
|
|
1276
|
+
box-shadow: ${Fn};
|
|
1277
1277
|
}
|
|
1278
1278
|
`:void 0}
|
|
1279
|
-
|
|
1279
|
+
`,$h=i.forwardRef((({value:e,disabled:t,error:n,rows:a=5,...i},o)=>r(xh,{ref:o,disabled:t,value:e,error:n,rows:a,...i})));i.forwardRef((({value:e,disabled:n,rows:a=5,onChange:i,...s},c)=>{const[u,d]=o(e);l((()=>{d(e)}),[e]);return t(wh,{children:[r(xh,{ref:c,disabled:n,value:u,rows:a||5,onChange:e=>{const t=e.target.value;s.maxLength&&t.length>s.maxLength||(d(t),e.target.value=t,i&&i(e))},...s}),s.maxLength&&r(vh,{disabled:n,value:u,maxLength:s.maxLength,renderCustomCounter:s.renderCustomCounter})]})}));const Ch=w.div`
|
|
1280
1280
|
display: flex;
|
|
1281
1281
|
justify-content: flex-end;
|
|
1282
1282
|
margin-top: 0.25rem;
|
|
1283
|
-
`,
|
|
1283
|
+
`,Sh=w.div`
|
|
1284
1284
|
display: flex;
|
|
1285
1285
|
flex: 1;
|
|
1286
1286
|
margin-right: 0.75rem;
|
|
1287
|
-
`,
|
|
1287
|
+
`,_h=w(gn)`
|
|
1288
1288
|
margin-top: 0;
|
|
1289
|
-
`,vh=i.forwardRef(((e,n)=>{const{label:a,value:i,errorMessage:s,id:c="form-textarea","data-error-testid":u,"data-testid":d,onChange:h,...p}=e,[f,m]=o(i);l((()=>{m(i)}),[i]);return t(wn,{id:c,label:a,disabled:p.disabled,children:[r(mh,{id:`${c}-base`,"data-testid":d||c,value:f,error:!!s,onChange:e=>{const t=e.target.value;p.maxLength&&t.length>p.maxLength||(m(t),e.target.value=t,h&&h(e))},ref:n,...p}),t(gh,{children:[s&&r(bh,{children:r(yh,{weight:"semibold","data-testid":u||(c?`${c}-error-message`:"error-message"),children:s})}),p.maxLength&&r(hh,{disabled:p.disabled,value:f,maxLength:p.maxLength,renderCustomCounter:p.renderCustomCounter})]})]})}));var wh;!function(e){e.getTimeValues=(e,t)=>{const r={hour:"",minute:"",period:"am"};if(!t)return r;try{if("24hr"===e){const n=Ch(t,e);r.minute=Mn.padValue(n.minute);const a=parseInt(n.hour);0===Math.floor(a/12)?(r.period="am",r.hour=0===a?"12":Mn.padValue(a.toString())):(r.period="pm",r.hour=12===a?a.toString():Mn.padValue((a-12).toString()))}else{const n=Ch(t,e);r.hour=Mn.padValue(n.hour),r.minute=Mn.padValue(n.minute),r.period="am"===n.period.toLowerCase()?"am":"pm"}return r}catch(e){return r}},e.updateMinutes=(e,t)=>{const r=parseInt(e);if(isNaN(r))return"add"===t?Mn.padValue("0"):"55";const n=Math.floor(r/5),a=(("add"===t?n+1:r%5==0?n-1:n)%12+12)%12;return Mn.padValue((5*a).toString())},e.updateHours=(e,t)=>{const r=parseInt(e);if(isNaN(r))return"add"===t?Mn.padValue("1"):"12";const n="add"===t?r+1:r-1;return n<=12&&n>0?Mn.padValue(n.toString()):13===n?Mn.padValue("1"):"12"},e.convertTo24HourFormat=e=>{const t=parseInt(e.hour);let r;return r="pm"===e.period?12===t?t.toString():(t+12).toString():12===t?"00":e.hour,`${r}:${e.minute}`},e.convertHourTo12HourFormat=e=>{const t=parseInt(e),r=t%12==0?12..toString():(t%12).toString();return Mn.padValue(r)},e.formatValue=(e,t)=>{try{const r=Ch(e,t),n=Mn.padValue(r.hour);let a=`${n}:${Mn.padValue(r.minute)}`;return"12hr"===t?(a+=r.period.toLowerCase(),a):a}catch(e){return""}}}(wh||(wh={}));const xh=(e,t)=>{const r=parseInt(e);return"24hr"===t?r>=0&&r<=23:r>=1&&r<=12},$h=e=>{const t=parseInt(e);return t>=0&&t<=59},Ch=(e,t)=>{const r=e.split(":"),n=new Error("Invalid format");if("12hr"===t){if(2!==r.length||4!==r[1].length)throw n;const e=r[1].substring(0,2),i=r[1].substring(2);if(!xh(r[0],t)||!$h(e)||"am"!==(a=i).toLowerCase()&&"pm"!==a.toLowerCase())throw n;return{hour:r[0],minute:e,period:r[1].substring(2)}}if(2!==r.length)throw n;if(!xh(r[0],t)||!$h(r[1]))throw n;return{hour:r[0],minute:r[1]};var a};var Sh,_h={};Object.defineProperty(_h,"__esModule",{value:!0});var kh=e;const Oh=e=>kh.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:kh.jsx("path",{d:"M17.7279 14.2091C17.5059 14.4311 17.2492 14.5421 16.9579 14.5421C16.6659 14.5421 16.4089 14.4311 16.1869 14.2091L10.1659 8.18812L4.12389 14.2301C3.91589 14.4381 3.66589 14.5421 3.37389 14.5421C3.08256 14.5421 2.82589 14.4311 2.60389 14.2091C2.39523 14.0005 2.29089 13.7468 2.29089 13.4481C2.29089 13.1495 2.39523 12.8961 2.60389 12.6881L9.54089 5.75012C9.63823 5.65346 9.73889 5.58412 9.84289 5.54212C9.94689 5.50079 10.0546 5.48012 10.1659 5.48012C10.2772 5.48012 10.3849 5.50079 10.4889 5.54212C10.5929 5.58412 10.6936 5.65346 10.7909 5.75012L17.7489 12.7091C17.9716 12.9311 18.0759 13.1845 18.0619 13.4691C18.0479 13.7538 17.9366 14.0005 17.7279 14.2091Z",fill:"currentColor"})});Oh.displayName="ChevronUpIcon",Sh=_h.ChevronUpIcon=Oh;var jh=function(e,t){return jh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},jh(e,t)};var Mh=function(){return Mh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Mh.apply(this,arguments)};var Bh="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var Ih=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Eh="object"==typeof Bh&&Bh&&Bh.Object===Object&&Bh,Th="object"==typeof self&&self&&self.Object===Object&&self,Fh=Eh||Th||Function("return this")(),Nh=Fh,Ph=function(){return Nh.Date.now()},Dh=/\s/;var Ah=function(e){for(var t=e.length;t--&&Dh.test(e.charAt(t)););return t},Lh=/^\s+/;var zh=function(e){return e?e.slice(0,Ah(e)+1).replace(Lh,""):e},Hh=Fh.Symbol,Rh=Hh,Vh=Object.prototype,Wh=Vh.hasOwnProperty,Uh=Vh.toString,qh=Rh?Rh.toStringTag:void 0;var Qh=function(e){var t=Wh.call(e,qh),r=e[qh];try{e[qh]=void 0;var n=!0}catch(e){}var a=Uh.call(e);return n&&(t?e[qh]=r:delete e[qh]),a},Zh=Object.prototype.toString;var Yh=Qh,Gh=function(e){return Zh.call(e)},Xh=Hh?Hh.toStringTag:void 0;var Kh=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Xh&&Xh in Object(e)?Yh(e):Gh(e)},Jh=function(e){return null!=e&&"object"==typeof e};var ep=zh,tp=Ih,rp=function(e){return"symbol"==typeof e||Jh(e)&&"[object Symbol]"==Kh(e)},np=/^[-+]0x[0-9a-f]+$/i,ap=/^0b[01]+$/i,ip=/^0o[0-7]+$/i,op=parseInt;var sp=Ih,lp=Ph,cp=function(e){if("number"==typeof e)return e;if(rp(e))return NaN;if(tp(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tp(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ep(e);var r=ap.test(e);return r||ip.test(e)?op(e.slice(2),r?2:8):np.test(e)?NaN:+e},up=Math.max,dp=Math.min;var hp=function(e,t,r){var n,a,i,o,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var r=n,i=a;return n=a=void 0,c=t,o=e.apply(i,r)}function f(e){var r=e-l;return void 0===l||r>=t||r<0||d&&e-c>=i}function m(){var e=lp();if(f(e))return g(e);s=setTimeout(m,function(e){var r=t-(e-l);return d?dp(r,i-(e-c)):r}(e))}function g(e){return s=void 0,h&&n?p(e):(n=a=void 0,o)}function b(){var e=lp(),r=f(e);if(n=arguments,a=this,l=e,r){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?p(e):o}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),o}return t=cp(t)||0,sp(r)&&(u=!!r.leading,i=(d="maxWait"in r)?up(cp(r.maxWait)||0,t):i,h="trailing"in r?!!r.trailing:h),b.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=a=s=void 0},b.flush=function(){return void 0===s?o:g(lp())},b},pp=hp,fp=Ih;var mp=function(e,t,r){var n=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return fp(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),pp(e,t,{leading:n,maxWait:t,trailing:a})},gp=function(e,t,r,n){switch(t){case"debounce":return hp(e,r,n);case"throttle":return mp(e,r,n);default:return e}},bp=function(e){return"function"==typeof e},yp=function(){return"undefined"==typeof window},vp=function(e){return e instanceof Element||e instanceof HTMLDocument},wp=function(e,t,r,n){return function(a){var i=a.width,o=a.height;t((function(t){return t.width===i&&t.height===o||t.width===i&&!n||t.height===o&&!r?t:(e&&bp(e)&&e(i,o),{width:i,height:o})}))}};!function(e){function t(t){var r=e.call(this,t)||this;r.cancelHandler=function(){r.resizeHandler&&r.resizeHandler.cancel&&(r.resizeHandler.cancel(),r.resizeHandler=null)},r.attachObserver=function(){var e=r.props,t=e.targetRef,n=e.observerOptions;if(!yp()){t&&t.current&&(r.targetRef.current=t.current);var a=r.getElement();a&&(r.observableElement&&r.observableElement===a||(r.observableElement=a,r.resizeObserver.observe(a,n)))}},r.getElement=function(){var e=r.props,t=e.querySelector,n=e.targetDomEl;if(yp())return null;if(t)return document.querySelector(t);if(n&&vp(n))return n;if(r.targetRef&&vp(r.targetRef.current))return r.targetRef.current;var a=_(r);if(!a)return null;switch(r.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return a;default:return a.parentElement}},r.createResizeHandler=function(e){var t=r.props,n=t.handleWidth,a=void 0===n||n,i=t.handleHeight,o=void 0===i||i,s=t.onResize;if(a||o){var l=wp(s,r.setState.bind(r),a,o);e.forEach((function(e){var t=e&&e.contentRect||{},n=t.width,a=t.height;!r.skipOnMount&&!yp()&&l({width:n,height:a}),r.skipOnMount=!1}))}},r.getRenderType=function(){var e=r.props,t=e.render,n=e.children;return bp(t)?"renderProp":bp(n)?"childFunction":b(n)?"child":Array.isArray(n)?"childArray":"parent"};var n=t.skipOnMount,a=t.refreshMode,i=t.refreshRate,o=void 0===i?1e3:i,s=t.refreshOptions;return r.state={width:void 0,height:void 0},r.skipOnMount=n,r.targetRef=y(),r.observableElement=null,yp()||(r.resizeHandler=gp(r.createResizeHandler,a,o,s),r.resizeObserver=new window.ResizeObserver(r.resizeHandler)),r}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}jh(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){yp()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,r=t.render,n=t.children,i=t.nodeType,o=void 0===i?"div":i,s=this.state,l={width:s.width,height:s.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return r&&r(l);case"childFunction":return(e=n)(l);case"child":if((e=n).type&&"string"==typeof e.type){var c=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 a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(l,["targetRef"]);return u(e,c)}return u(e,l);case"childArray":return(e=n).map((function(e){return!!e&&u(e,l)}));default:return a.createElement(o,null)}}}(v);var xp=yp()?l:h;const $p={Default:i.forwardRef(((e,n)=>{const{children:a,disabled:i=!1,loading:o=!1,styleType:s="default",...l}=e,c={$buttonStyle:i?"disabled":s,$buttonSizeStyle:"default"};return t(Yu,{ref:n,"data-testid":l["data-testid"]||"button",disabled:i,...c,...l,children:[o&&r(Gu,{...c}),r("span",{children:a})]})})),Small:i.forwardRef(((e,n)=>{const{children:a,disabled:i=!1,loading:o=!1,styleType:s="default",...l}=e,c={$buttonStyle:i?"disabled":s,$buttonSizeStyle:"small"};return t(Yu,{ref:n,"data-testid":l["data-testid"]||"button",disabled:i,...c,...l,children:[o&&r(Gu,{...c,size:16}),r("span",{children:a})]})}))},Cp=w.div`
|
|
1289
|
+
`,kh=i.forwardRef(((e,n)=>{const{label:a,value:i,errorMessage:s,id:c="form-textarea","data-error-testid":u,"data-testid":d,onChange:h,...p}=e,[f,m]=o(i);l((()=>{m(i)}),[i]);return t(wn,{id:c,label:a,disabled:p.disabled,children:[r($h,{id:`${c}-base`,"data-testid":d||c,value:f,error:!!s,onChange:e=>{const t=e.target.value;p.maxLength&&t.length>p.maxLength||(m(t),e.target.value=t,h&&h(e))},ref:n,...p}),t(Ch,{children:[s&&r(Sh,{children:r(_h,{weight:"semibold","data-testid":u||(c?`${c}-error-message`:"error-message"),children:s})}),p.maxLength&&r(vh,{disabled:p.disabled,value:f,maxLength:p.maxLength,renderCustomCounter:p.renderCustomCounter})]})]})}));var Oh;!function(e){e.getTimeValues=(e,t)=>{const r={hour:"",minute:"",period:"am"};if(!t)return r;try{if("24hr"===e){const n=Bh(t,e);r.minute=Bn.padValue(n.minute);const a=parseInt(n.hour);0===Math.floor(a/12)?(r.period="am",r.hour=0===a?"12":Bn.padValue(a.toString())):(r.period="pm",r.hour=12===a?a.toString():Bn.padValue((a-12).toString()))}else{const n=Bh(t,e);r.hour=Bn.padValue(n.hour),r.minute=Bn.padValue(n.minute),r.period="am"===n.period.toLowerCase()?"am":"pm"}return r}catch(e){return r}},e.updateMinutes=(e,t)=>{const r=parseInt(e);if(isNaN(r))return"add"===t?Bn.padValue("0"):"55";const n=Math.floor(r/5),a=(("add"===t?n+1:r%5==0?n-1:n)%12+12)%12;return Bn.padValue((5*a).toString())},e.updateHours=(e,t)=>{const r=parseInt(e);if(isNaN(r))return"add"===t?Bn.padValue("1"):"12";const n="add"===t?r+1:r-1;return n<=12&&n>0?Bn.padValue(n.toString()):13===n?Bn.padValue("1"):"12"},e.convertTo24HourFormat=e=>{const t=parseInt(e.hour);let r;return r="pm"===e.period?12===t?t.toString():(t+12).toString():12===t?"00":e.hour,`${r}:${e.minute}`},e.convertHourTo12HourFormat=e=>{const t=parseInt(e),r=t%12==0?12..toString():(t%12).toString();return Bn.padValue(r)},e.formatValue=(e,t)=>{try{const r=Bh(e,t),n=Bn.padValue(r.hour);let a=`${n}:${Bn.padValue(r.minute)}`;return"12hr"===t?(a+=r.period.toLowerCase(),a):a}catch(e){return""}}}(Oh||(Oh={}));const jh=(e,t)=>{const r=parseInt(e);return"24hr"===t?r>=0&&r<=23:r>=1&&r<=12},Mh=e=>{const t=parseInt(e);return t>=0&&t<=59},Bh=(e,t)=>{const r=e.split(":"),n=new Error("Invalid format");if("12hr"===t){if(2!==r.length||4!==r[1].length)throw n;const e=r[1].substring(0,2),i=r[1].substring(2);if(!jh(r[0],t)||!Mh(e)||"am"!==(a=i).toLowerCase()&&"pm"!==a.toLowerCase())throw n;return{hour:r[0],minute:e,period:r[1].substring(2)}}if(2!==r.length)throw n;if(!jh(r[0],t)||!Mh(r[1]))throw n;return{hour:r[0],minute:r[1]};var a};var Ih,Eh={};Object.defineProperty(Eh,"__esModule",{value:!0});var Th=e;const Fh=e=>Th.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Th.jsx("path",{d:"M17.7279 14.2091C17.5059 14.4311 17.2492 14.5421 16.9579 14.5421C16.6659 14.5421 16.4089 14.4311 16.1869 14.2091L10.1659 8.18812L4.12389 14.2301C3.91589 14.4381 3.66589 14.5421 3.37389 14.5421C3.08256 14.5421 2.82589 14.4311 2.60389 14.2091C2.39523 14.0005 2.29089 13.7468 2.29089 13.4481C2.29089 13.1495 2.39523 12.8961 2.60389 12.6881L9.54089 5.75012C9.63823 5.65346 9.73889 5.58412 9.84289 5.54212C9.94689 5.50079 10.0546 5.48012 10.1659 5.48012C10.2772 5.48012 10.3849 5.50079 10.4889 5.54212C10.5929 5.58412 10.6936 5.65346 10.7909 5.75012L17.7489 12.7091C17.9716 12.9311 18.0759 13.1845 18.0619 13.4691C18.0479 13.7538 17.9366 14.0005 17.7279 14.2091Z",fill:"currentColor"})});Fh.displayName="ChevronUpIcon",Ih=Eh.ChevronUpIcon=Fh;var Nh=function(e,t){return Nh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Nh(e,t)};var Ph=function(){return Ph=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Ph.apply(this,arguments)};var Dh="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var Ah=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Lh="object"==typeof Dh&&Dh&&Dh.Object===Object&&Dh,zh="object"==typeof self&&self&&self.Object===Object&&self,Hh=Lh||zh||Function("return this")(),Rh=Hh,Vh=function(){return Rh.Date.now()},Wh=/\s/;var Uh=function(e){for(var t=e.length;t--&&Wh.test(e.charAt(t)););return t},qh=/^\s+/;var Qh=function(e){return e?e.slice(0,Uh(e)+1).replace(qh,""):e},Zh=Hh.Symbol,Yh=Zh,Gh=Object.prototype,Xh=Gh.hasOwnProperty,Kh=Gh.toString,Jh=Yh?Yh.toStringTag:void 0;var ep=function(e){var t=Xh.call(e,Jh),r=e[Jh];try{e[Jh]=void 0;var n=!0}catch(e){}var a=Kh.call(e);return n&&(t?e[Jh]=r:delete e[Jh]),a},tp=Object.prototype.toString;var rp=ep,np=function(e){return tp.call(e)},ap=Zh?Zh.toStringTag:void 0;var ip=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ap&&ap in Object(e)?rp(e):np(e)},op=function(e){return null!=e&&"object"==typeof e};var sp=Qh,lp=Ah,cp=function(e){return"symbol"==typeof e||op(e)&&"[object Symbol]"==ip(e)},up=/^[-+]0x[0-9a-f]+$/i,dp=/^0b[01]+$/i,hp=/^0o[0-7]+$/i,pp=parseInt;var fp=Ah,mp=Vh,gp=function(e){if("number"==typeof e)return e;if(cp(e))return NaN;if(lp(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=lp(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=sp(e);var r=dp.test(e);return r||hp.test(e)?pp(e.slice(2),r?2:8):up.test(e)?NaN:+e},bp=Math.max,yp=Math.min;var vp=function(e,t,r){var n,a,i,o,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var r=n,i=a;return n=a=void 0,c=t,o=e.apply(i,r)}function f(e){var r=e-l;return void 0===l||r>=t||r<0||d&&e-c>=i}function m(){var e=mp();if(f(e))return g(e);s=setTimeout(m,function(e){var r=t-(e-l);return d?yp(r,i-(e-c)):r}(e))}function g(e){return s=void 0,h&&n?p(e):(n=a=void 0,o)}function b(){var e=mp(),r=f(e);if(n=arguments,a=this,l=e,r){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?p(e):o}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),o}return t=gp(t)||0,fp(r)&&(u=!!r.leading,i=(d="maxWait"in r)?bp(gp(r.maxWait)||0,t):i,h="trailing"in r?!!r.trailing:h),b.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=a=s=void 0},b.flush=function(){return void 0===s?o:g(mp())},b},wp=vp,xp=Ah;var $p=function(e,t,r){var n=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return xp(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),wp(e,t,{leading:n,maxWait:t,trailing:a})},Cp=function(e,t,r,n){switch(t){case"debounce":return vp(e,r,n);case"throttle":return $p(e,r,n);default:return e}},Sp=function(e){return"function"==typeof e},_p=function(){return"undefined"==typeof window},kp=function(e){return e instanceof Element||e instanceof HTMLDocument},Op=function(e,t,r,n){return function(a){var i=a.width,o=a.height;t((function(t){return t.width===i&&t.height===o||t.width===i&&!n||t.height===o&&!r?t:(e&&Sp(e)&&e(i,o),{width:i,height:o})}))}};!function(e){function t(t){var r=e.call(this,t)||this;r.cancelHandler=function(){r.resizeHandler&&r.resizeHandler.cancel&&(r.resizeHandler.cancel(),r.resizeHandler=null)},r.attachObserver=function(){var e=r.props,t=e.targetRef,n=e.observerOptions;if(!_p()){t&&t.current&&(r.targetRef.current=t.current);var a=r.getElement();a&&(r.observableElement&&r.observableElement===a||(r.observableElement=a,r.resizeObserver.observe(a,n)))}},r.getElement=function(){var e=r.props,t=e.querySelector,n=e.targetDomEl;if(_p())return null;if(t)return document.querySelector(t);if(n&&kp(n))return n;if(r.targetRef&&kp(r.targetRef.current))return r.targetRef.current;var a=_(r);if(!a)return null;switch(r.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return a;default:return a.parentElement}},r.createResizeHandler=function(e){var t=r.props,n=t.handleWidth,a=void 0===n||n,i=t.handleHeight,o=void 0===i||i,s=t.onResize;if(a||o){var l=Op(s,r.setState.bind(r),a,o);e.forEach((function(e){var t=e&&e.contentRect||{},n=t.width,a=t.height;!r.skipOnMount&&!_p()&&l({width:n,height:a}),r.skipOnMount=!1}))}},r.getRenderType=function(){var e=r.props,t=e.render,n=e.children;return Sp(t)?"renderProp":Sp(n)?"childFunction":b(n)?"child":Array.isArray(n)?"childArray":"parent"};var n=t.skipOnMount,a=t.refreshMode,i=t.refreshRate,o=void 0===i?1e3:i,s=t.refreshOptions;return r.state={width:void 0,height:void 0},r.skipOnMount=n,r.targetRef=y(),r.observableElement=null,_p()||(r.resizeHandler=Cp(r.createResizeHandler,a,o,s),r.resizeObserver=new window.ResizeObserver(r.resizeHandler)),r}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Nh(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){_p()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,r=t.render,n=t.children,i=t.nodeType,o=void 0===i?"div":i,s=this.state,l={width:s.width,height:s.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return r&&r(l);case"childFunction":return(e=n)(l);case"child":if((e=n).type&&"string"==typeof e.type){var c=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 a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(l,["targetRef"]);return u(e,c)}return u(e,l);case"childArray":return(e=n).map((function(e){return!!e&&u(e,l)}));default:return a.createElement(o,null)}}}(v);var jp=_p()?l:h;const Mp={Default:i.forwardRef(((e,n)=>{const{children:a,disabled:i=!1,loading:o=!1,styleType:s="default",...l}=e,c={$buttonStyle:i?"disabled":s,$buttonSizeStyle:"default"};return t(rd,{ref:n,"data-testid":l["data-testid"]||"button",disabled:i,...c,...l,children:[o&&r(nd,{...c}),r("span",{children:a})]})})),Small:i.forwardRef(((e,n)=>{const{children:a,disabled:i=!1,loading:o=!1,styleType:s="default",...l}=e,c={$buttonStyle:i?"disabled":s,$buttonSizeStyle:"small"};return t(rd,{ref:n,"data-testid":l["data-testid"]||"button",disabled:i,...c,...l,children:[o&&r(nd,{...c,size:16}),r("span",{children:a})]})}))},Bp=w.div`
|
|
1290
1290
|
position: relative;
|
|
1291
1291
|
display: inline-flex;
|
|
1292
1292
|
min-width: 10.375rem;
|
|
@@ -1346,7 +1346,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1346
1346
|
border-color: ${_r.Accent.Light[1]};
|
|
1347
1347
|
}
|
|
1348
1348
|
`}
|
|
1349
|
-
`,
|
|
1349
|
+
`,Ip=w.input`
|
|
1350
1350
|
position: absolute;
|
|
1351
1351
|
height: 100%;
|
|
1352
1352
|
width: 100%;
|
|
@@ -1357,10 +1357,10 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1357
1357
|
/* Hide appearance but keep it focusable using keyboard interactions */
|
|
1358
1358
|
appearance: none;
|
|
1359
1359
|
background: transparent;
|
|
1360
|
-
`,
|
|
1360
|
+
`,Ep=w.div`
|
|
1361
1361
|
display: flex;
|
|
1362
1362
|
flex-direction: column;
|
|
1363
|
-
`,
|
|
1363
|
+
`,Tp=w.label`
|
|
1364
1364
|
${e=>e.$selected&&!e.$indicator?x`
|
|
1365
1365
|
${Tr("H4","semibold")}
|
|
1366
1366
|
`:x`
|
|
@@ -1374,7 +1374,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1374
1374
|
`:e.$selected?x`
|
|
1375
1375
|
color: ${_r.Primary(e)};
|
|
1376
1376
|
`:void 0}
|
|
1377
|
-
`;var
|
|
1377
|
+
`;var Fp,Np={};Object.defineProperty(Np,"__esModule",{value:!0});var Pp=e;const Dp=e=>Pp.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Pp.jsx("path",{d:"M10 18C8.90267 18 7.868 17.7917 6.896 17.375C5.924 16.9583 5.07333 16.3853 4.344 15.656C3.61467 14.9267 3.04167 14.076 2.625 13.104C2.20833 12.132 2 11.0973 2 10C2 8.88867 2.20833 7.85033 2.625 6.885C3.04167 5.92033 3.61467 5.07333 4.344 4.344C5.07333 3.61467 5.924 3.04167 6.896 2.625C7.868 2.20833 8.90267 2 10 2C11.1113 2 12.1497 2.20833 13.115 2.625C14.0797 3.04167 14.9267 3.61467 15.656 4.344C16.3853 5.07333 16.9583 5.92033 17.375 6.885C17.7917 7.85033 18 8.88867 18 10C18 11.0973 17.7917 12.132 17.375 13.104C16.9583 14.076 16.3853 14.9267 15.656 15.656C14.9267 16.3853 14.0797 16.9583 13.115 17.375C12.1497 17.7917 11.1113 18 10 18ZM10 16.5C11.8053 16.5 13.34 15.868 14.604 14.604C15.868 13.34 16.5 11.8053 16.5 10C16.5 8.19467 15.868 6.66 14.604 5.396C13.34 4.132 11.8053 3.5 10 3.5C8.19467 3.5 6.66 4.132 5.396 5.396C4.132 6.66 3.5 8.19467 3.5 10C3.5 11.8053 4.132 13.34 5.396 14.604C6.66 15.868 8.19467 16.5 10 16.5Z",fill:"currentColor"})});Dp.displayName="CircleIcon",Fp=Np.CircleIcon=Dp;var Ap,Lp={};Object.defineProperty(Lp,"__esModule",{value:!0});var zp=e;const Hp=e=>zp.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:zp.jsx("path",{d:"M10 14C11.1113 14 12.0557 13.611 12.833 12.833C13.611 12.0557 14 11.1113 14 10C14 8.88867 13.611 7.94433 12.833 7.167C12.0557 6.389 11.1113 6 10 6C8.88867 6 7.94433 6.389 7.167 7.167C6.389 7.94433 6 8.88867 6 10C6 11.1113 6.389 12.0557 7.167 12.833C7.94433 13.611 8.88867 14 10 14ZM10 18C8.90267 18 7.868 17.7917 6.896 17.375C5.924 16.9583 5.07333 16.3853 4.344 15.656C3.61467 14.9267 3.04167 14.076 2.625 13.104C2.20833 12.132 2 11.0973 2 10C2 8.88867 2.20833 7.85033 2.625 6.885C3.04167 5.92033 3.61467 5.07333 4.344 4.344C5.07333 3.61467 5.924 3.04167 6.896 2.625C7.868 2.20833 8.90267 2 10 2C11.1113 2 12.1497 2.20833 13.115 2.625C14.0797 3.04167 14.9267 3.61467 15.656 4.344C16.3853 5.07333 16.9583 5.92033 17.375 6.885C17.7917 7.85033 18 8.88867 18 10C18 11.0973 17.7917 12.132 17.375 13.104C16.9583 14.076 16.3853 14.9267 15.656 15.656C14.9267 16.3853 14.0797 16.9583 13.115 17.375C12.1497 17.7917 11.1113 18 10 18ZM10 16.5C11.8053 16.5 13.34 15.868 14.604 14.604C15.868 13.34 16.5 11.8053 16.5 10C16.5 8.19467 15.868 6.66 14.604 5.396C13.34 4.132 11.8053 3.5 10 3.5C8.19467 3.5 6.66 4.132 5.396 5.396C4.132 6.66 3.5 8.19467 3.5 10C3.5 11.8053 4.132 13.34 5.396 14.604C6.66 15.868 8.19467 16.5 10 16.5Z",fill:"currentColor"})});Hp.displayName="CircleDotIcon",Ap=Lp.CircleDotIcon=Hp;var Rp,Vp={};Object.defineProperty(Vp,"__esModule",{value:!0});var Wp=e;const Up=e=>Wp.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Wp.jsx("path",{d:"M4.5 17C4.08333 17 3.72933 16.854 3.438 16.562C3.146 16.2707 3 15.9167 3 15.5V4.5C3 4.08333 3.146 3.72933 3.438 3.438C3.72933 3.146 4.08333 3 4.5 3H15.5C15.9167 3 16.2707 3.146 16.562 3.438C16.854 3.72933 17 4.08333 17 4.5V15.5C17 15.9167 16.854 16.2707 16.562 16.562C16.2707 16.854 15.9167 17 15.5 17H4.5ZM4.5 15.5H15.5V4.5H4.5V15.5Z",fill:"currentColor"})});Up.displayName="SquareIcon",Rp=Vp.SquareIcon=Up;var qp,Qp={};Object.defineProperty(Qp,"__esModule",{value:!0});var Zp=e;const Yp=e=>Zp.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Zp.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.5H15.75C16.236 2.5 16.6493 2.67 16.99 3.01C17.33 3.35067 17.5 3.764 17.5 4.25V15.75C17.5 16.236 17.33 16.6493 16.99 16.99C16.6493 17.33 16.236 17.5 15.75 17.5H4.25ZM8.875 13.188C8.98633 13.188 9.094 13.167 9.198 13.125C9.302 13.083 9.40267 13.0137 9.5 12.917L14.125 8.292C14.2917 8.12533 14.375 7.924 14.375 7.688C14.375 7.45133 14.2917 7.24267 14.125 7.062C13.9443 6.89533 13.736 6.812 13.5 6.812C13.264 6.812 13.0627 6.89533 12.896 7.062L8.875 11.083L7.125 9.333C6.95833 9.16633 6.757 9.083 6.521 9.083C6.285 9.083 6.08367 9.16633 5.917 9.333C5.73633 9.51367 5.646 9.722 5.646 9.958C5.646 10.194 5.73633 10.3953 5.917 10.562L8.25 12.917C8.34733 13.0137 8.448 13.083 8.552 13.125C8.656 13.167 8.76367 13.188 8.875 13.188Z",fill:"currentColor"})});Yp.displayName="SquareTickFillIcon",qp=Qp.SquareTickFillIcon=Yp;const Gp=w.div`
|
|
1378
1378
|
height: 1.625rem;
|
|
1379
1379
|
width: 1.625rem;
|
|
1380
1380
|
margin-right: 0.5rem;
|
|
@@ -1389,7 +1389,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1389
1389
|
color: ${_r.Neutral[4]};
|
|
1390
1390
|
`};
|
|
1391
1391
|
}
|
|
1392
|
-
`,
|
|
1392
|
+
`,Xp=({type:e,active:t=!1,disabled:n,className:a})=>{let i;switch(e){case"checkbox":i=r(t?qp:Rp,{});break;case"radio":i=r(t?Ap:Fp,{});break;case"tick":i=r(ld,{});break;case"cross":i=r(Gr,{});break;default:i=null}return r(Gp,{className:a,$active:t,disabled:n,children:i})},Kp=w(Yu.div)`
|
|
1393
1393
|
position: absolute;
|
|
1394
1394
|
top: 3.5rem;
|
|
1395
1395
|
left: 0;
|
|
@@ -1403,13 +1403,13 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1403
1403
|
${Qr.tablet} {
|
|
1404
1404
|
width: 100%;
|
|
1405
1405
|
}
|
|
1406
|
-
`,
|
|
1406
|
+
`,Jp=w.div`
|
|
1407
1407
|
position: relative;
|
|
1408
1408
|
width: 100%;
|
|
1409
1409
|
padding: 0.5rem 1.25rem 1.5rem 1.25rem;
|
|
1410
1410
|
display: flex;
|
|
1411
1411
|
flex-direction: column;
|
|
1412
|
-
`,
|
|
1412
|
+
`,ef=w.div`
|
|
1413
1413
|
display: flex;
|
|
1414
1414
|
align-items: center;
|
|
1415
1415
|
justify-content: space-between;
|
|
@@ -1417,7 +1417,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1417
1417
|
${Qr.mobileS} {
|
|
1418
1418
|
flex-direction: column;
|
|
1419
1419
|
}
|
|
1420
|
-
`,
|
|
1420
|
+
`,tf=w.div`
|
|
1421
1421
|
display: flex;
|
|
1422
1422
|
justify-content: flex-end;
|
|
1423
1423
|
margin-top: 1rem;
|
|
@@ -1427,7 +1427,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1427
1427
|
margin-top: 2rem;
|
|
1428
1428
|
padding-top: 1.5rem;
|
|
1429
1429
|
}
|
|
1430
|
-
`,
|
|
1430
|
+
`,rf=w.div`
|
|
1431
1431
|
display: flex;
|
|
1432
1432
|
align-items: center;
|
|
1433
1433
|
margin-right: 2rem;
|
|
@@ -1435,7 +1435,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1435
1435
|
${Qr.mobileM} {
|
|
1436
1436
|
margin-right: 0;
|
|
1437
1437
|
}
|
|
1438
|
-
`,
|
|
1438
|
+
`,nf=w.div`
|
|
1439
1439
|
display: flex;
|
|
1440
1440
|
|
|
1441
1441
|
${Qr.tablet} {
|
|
@@ -1446,15 +1446,15 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1446
1446
|
flex-direction: row;
|
|
1447
1447
|
width: 100%;
|
|
1448
1448
|
}
|
|
1449
|
-
`,
|
|
1449
|
+
`,af=w.div`
|
|
1450
1450
|
display: flex;
|
|
1451
1451
|
flex-direction: column;
|
|
1452
1452
|
align-items: center;
|
|
1453
|
-
`,
|
|
1453
|
+
`,of=w(tn)`
|
|
1454
1454
|
width: 5rem;
|
|
1455
1455
|
padding: 1rem 0;
|
|
1456
1456
|
color: ${_r.Primary};
|
|
1457
|
-
`,
|
|
1457
|
+
`,sf=w(Nr.Body)`
|
|
1458
1458
|
margin: 0 0.75rem;
|
|
1459
1459
|
|
|
1460
1460
|
${Qr.tablet} {
|
|
@@ -1464,7 +1464,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1464
1464
|
${Qr.mobileS} {
|
|
1465
1465
|
margin: 0 0.75rem;
|
|
1466
1466
|
}
|
|
1467
|
-
`,
|
|
1467
|
+
`,lf=w.input`
|
|
1468
1468
|
${Tr("Body","regular")}
|
|
1469
1469
|
border-radius: ${"4px"};
|
|
1470
1470
|
height: 3rem;
|
|
@@ -1501,7 +1501,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1501
1501
|
${Qr.mobileS} {
|
|
1502
1502
|
width: 6rem;
|
|
1503
1503
|
}
|
|
1504
|
-
`,
|
|
1504
|
+
`,cf=w((({type:e="checkbox",indicator:n,checked:a,styleType:i="default",children:c,disabled:u,error:d,name:h,id:p,className:f,"data-testid":m,onChange:g})=>{const[b,y]=o(a),[v]=o(Mn.generate()),w=p?`${p}-input`:`tg-${v}-input`,x=s();l((()=>{y(a)}),[a]);return t(Bp,{$selected:b,$disabled:u,className:f,$styleType:i,$error:d,$indicator:n,id:p,"data-testid":m,children:[n&&(()=>{let t;switch(e){case"yes":t="tick";break;case"no":t="cross";break;case"checkbox":case"radio":t=e}return r(Xp,{type:t,active:b,disabled:u})})(),r(Ip,{ref:x,name:h,id:w,type:"checkbox"===e?"checkbox":"radio","data-testid":"toggle-input",disabled:u,onChange:t=>{if(!u){switch(e){case"checkbox":b||y((e=>!e));break;case"radio":case"yes":case"no":b||y(!0)}g&&g(t)}},checked:b}),r(Ep,{children:r(Tp,{htmlFor:w,$selected:b,$indicator:n,$disabled:u,"data-testid":"toggle-label",children:c})})]})}))`
|
|
1505
1505
|
min-width: 5rem;
|
|
1506
1506
|
|
|
1507
1507
|
:not(:last-of-type) {
|
|
@@ -1522,7 +1522,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1522
1522
|
margin-bottom: 0;
|
|
1523
1523
|
}
|
|
1524
1524
|
}
|
|
1525
|
-
`,
|
|
1525
|
+
`,uf=w(Mp.Small)`
|
|
1526
1526
|
width: 7rem;
|
|
1527
1527
|
|
|
1528
1528
|
:not(:last-of-type) {
|
|
@@ -1532,9 +1532,9 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1532
1532
|
${Qr.tablet} {
|
|
1533
1533
|
width: 50%;
|
|
1534
1534
|
}
|
|
1535
|
-
`;var
|
|
1535
|
+
`;var df,hf,pf;!function(e){e.HOUR_UP="hour-up",e.HOUR_DOWN="hour-down",e.MINUTE_UP="minute-up",e.MINUTE_DOWN="minute-down"}(df||(df={})),function(e){e.HOUR="hour",e.MINUTE="minute"}(hf||(hf={})),function(e){e.AM="am",e.PM="pm"}(pf||(pf={}));const ff=({id:e,value:n,show:a,format:i,onChange:c,onCancel:u})=>{const d=Oh.getTimeValues(i,n),[h,p]=o(d.hour),[m,g]=o(d.minute),[b,y]=o(d.period),v=s(),w=s(),x=function(e){void 0===e&&(e={});var t=e.skipOnMount,r=void 0!==t&&t,n=e.refreshMode,a=e.refreshRate,i=void 0===a?1e3:a,l=e.refreshOptions,c=e.handleWidth,u=void 0===c||c,d=e.handleHeight,h=void 0===d||d,p=e.targetRef,f=e.observerOptions,m=e.onResize,g=s(r),b=s(null),y=null!=p?p:b,v=s(),w=o({width:void 0,height:void 0}),x=w[0],$=w[1];return jp((function(){if(!_p()){var e=Op(m,$,u,h);v.current=Cp((function(t){(u||h)&&t.forEach((function(t){var r=t&&t.contentRect||{},n=r.width,a=r.height;!g.current&&!_p()&&e({width:n,height:a}),g.current=!1}))}),n,i,l);var t=new window.ResizeObserver(v.current);return y.current&&t.observe(y.current,f),function(){t.disconnect();var e=v.current;e&&e.cancel&&e.cancel()}}}),[n,i,l,u,h,m,f,y.current]),Ph({ref:y},x)}();l((()=>{if(a&&v.current&&v.current.focus(),a){const{hour:e,minute:t,period:r}=Oh.getTimeValues(i,n);p(e),g(t),y(r)}}),[a,n,i]),l((()=>{const e=v.current,t=w.current;return e&&e.addEventListener("keydown",$),t&&t.addEventListener("keydown",$),()=>{e&&e.removeEventListener("keydown",$),t&&t.removeEventListener("keydown",$)}}),[]);const $=e=>{["Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Tab","Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(e.code)||["Backspace","0","1","2","3","4","5","6","7","8","9"].includes(e.key)||e.preventDefault()},C=f((e=>{switch(e.currentTarget.name){case df.MINUTE_UP:g(Oh.updateMinutes(m,"add"));break;case df.MINUTE_DOWN:g(Oh.updateMinutes(m,"minus"));break;case df.HOUR_UP:p(Oh.updateHours(h,"add"));break;case df.HOUR_DOWN:p(Oh.updateHours(h,"minus"))}}),[h,m]),S=e=>{e.target.select()},_=e=>{const t=e.target.value;switch(e.target.name){case hf.HOUR:t.length<=2&&p(t);break;case hf.MINUTE:t.length<=2&&g(t)}},k=e=>{const t=parseInt(e.target.value);if(!isNaN(t))switch(e.target.name){case hf.HOUR:{const r=t>23||t<0?d.hour:Oh.convertHourTo12HourFormat(e.target.value);p(r);break}case hf.MINUTE:{const r=t>59||t<0?d.minute:e.target.value;g(Bn.padValue(r));break}}},O=e=>{switch(e.target.name){case pf.AM:y("am");break;case pf.PM:y("pm")}},j=t=>e?`${e}-${t}`:t,M=ku({height:a?x.height+32:0});return r(Kp,{"data-testid":"animated-dropdown-wrapper",style:M,children:t(Jp,{ref:x.ref,"data-testid":j("timepicker-dropdown"),children:[t(ef,{children:[t(rf,{children:[t(af,{children:[r(of,{"aria-label":"increase hour",name:df.HOUR_UP,type:"button",tabIndex:-1,onClick:C,"data-testid":j("hour-increment-button"),children:r(Ih,{})}),r(lf,{"aria-label":"hour",type:"number",name:hf.HOUR,id:"hour",maxLength:2,pattern:"[0-9]{2}",ref:v,value:h,onFocus:S,onChange:_,onBlur:k,min:1,max:12,placeholder:"HH","data-testid":j("hour-input")}),r(of,{"aria-label":"decrease hour",name:df.HOUR_DOWN,type:"button",tabIndex:-1,onClick:C,"data-testid":j("hour-decrement-button"),children:r(Hd,{})})]}),r(sf,{children:":"}),t(af,{children:[r(of,{"aria-label":"increase minute",name:df.MINUTE_UP,type:"button",tabIndex:-1,onClick:C,"data-testid":j("minute-increment-button"),children:r(Ih,{})}),r(lf,{"aria-label":"minute",type:"number",name:hf.MINUTE,id:"minute",maxLength:2,pattern:"[0-9]{2}",ref:w,value:m,onChange:_,onBlur:k,onFocus:S,min:0,max:59,placeholder:"MM","data-testid":j("minute-input")}),r(of,{"aria-label":"decrease minute",name:df.MINUTE_DOWN,type:"button",tabIndex:-1,onClick:C,"data-testid":j("minute-decrement-button"),children:r(Hd,{})})]})]}),t(nf,{children:[r(cf,{checked:"am"===b,name:pf.AM,type:"radio",onChange:O,"data-testid":j("am-toggle"),"aria-label":"AM",children:"AM"}),r(cf,{checked:"pm"===b,name:pf.PM,type:"radio",onChange:O,"data-testid":j("pm-toggle"),"aria-label":"PM",children:"PM"})]})]}),t(tf,{children:[r(uf,{"aria-label":"close selector",type:"button",styleType:"secondary",onClick:u,"data-testid":j("cancel-button"),children:"Cancel"}),r(uf,{"aria-label":"confirm selection",type:"button",onClick:()=>{let e;e="24hr"===i?Oh.convertTo24HourFormat({hour:h,minute:m,period:b}):`${h}:${m}${b}`,c(e)},disabled:""===h||""===m,"data-testid":j("confirm-button"),children:"Confirm"})]})]})})},mf=w.div`
|
|
1536
1536
|
position: relative;
|
|
1537
|
-
`,
|
|
1537
|
+
`,gf=w.input`
|
|
1538
1538
|
${Tr("Body","regular")}
|
|
1539
1539
|
border: 1px solid ${_r.Neutral[5]};
|
|
1540
1540
|
border-radius: 4px;
|
|
@@ -1557,14 +1557,14 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1557
1557
|
border: 1px solid ${_r.Validation.Red.Border(e)};
|
|
1558
1558
|
`:e.error&&e.focused?x`
|
|
1559
1559
|
border: 1px solid ${_r.Validation.Red.Border(e)};
|
|
1560
|
-
box-shadow: ${
|
|
1560
|
+
box-shadow: ${Fn};
|
|
1561
1561
|
`:e.focused?x`
|
|
1562
1562
|
border: 1px solid ${_r.Accent.Light[1]};
|
|
1563
|
-
box-shadow: ${
|
|
1563
|
+
box-shadow: ${Tn};
|
|
1564
1564
|
`:void 0}
|
|
1565
|
-
`,
|
|
1565
|
+
`,bf=({id:e,disabled:n=!1,error:a,value:i,defaultValue:c,placeholder:u,format:d="24hr",onChange:h,onBlur:p,onSelectionCancel:m,...g})=>{const[b,y]=o(!1),v=s();l((()=>(document.addEventListener("mousedown",x),document.addEventListener("keyup",$),()=>{document.removeEventListener("mousedown",x),document.removeEventListener("keyup",$)})),[b]);const w=f((()=>{n||b||y(!0)}),[b]),x=e=>{n||C(e)},$=e=>{if("Tab"===e.code)C(e)},C=e=>{v&&!v.current.contains(e.target)&&b&&(y(!1),p&&p())},S=f((()=>"12hr"===d?"HH:MMam":"HH:MM"),[d,u]);return t(mf,{ref:v,id:e,...g,children:[r(gf,{onFocus:w,focused:b,readOnly:!0,placeholder:u||S(),value:Oh.formatValue(i,d),defaultValue:c,disabled:n,error:a,"data-testid":e?`${e}-timepicker-selector`:"timepicker-selector"}),r(ff,{id:e,show:b,value:i||c,format:d,onCancel:()=>{y(!1),m&&m()},onChange:e=>{y(!1),h&&h(e)}})]})},yf=w(Xn)`
|
|
1566
1566
|
margin-right: 0.25rem;
|
|
1567
|
-
`,
|
|
1567
|
+
`,vf=w(Qn)`
|
|
1568
1568
|
// overwrite default styles
|
|
1569
1569
|
background: transparent;
|
|
1570
1570
|
border: none;
|
|
@@ -1590,7 +1590,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1590
1590
|
// Firefox
|
|
1591
1591
|
-moz-appearance: textfield;
|
|
1592
1592
|
}
|
|
1593
|
-
`,
|
|
1593
|
+
`,wf=w(vf)`
|
|
1594
1594
|
// Cheat to balance the placeholder look while ensuring enough width
|
|
1595
1595
|
margin-left: 0.5rem;
|
|
1596
1596
|
width: 6rem;
|
|
@@ -1598,16 +1598,16 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
1598
1598
|
input {
|
|
1599
1599
|
text-align: left;
|
|
1600
1600
|
}
|
|
1601
|
-
`,
|
|
1601
|
+
`,xf=w(Nr.Body)`
|
|
1602
1602
|
margin: 0 0.25rem;
|
|
1603
1603
|
${e=>{if(e.$inactive)return x`
|
|
1604
1604
|
color: ${_r.Neutral[3]};
|
|
1605
1605
|
`}}
|
|
1606
|
-
|
|
1606
|
+
`,$f=w.div`
|
|
1607
1607
|
display: flex;
|
|
1608
|
-
`,
|
|
1608
|
+
`,Cf=w(Nr.Body)`
|
|
1609
1609
|
${e=>{if(e.$inactive)return x`
|
|
1610
1610
|
color: ${_r.Neutral[3]};
|
|
1611
1611
|
`}}
|
|
1612
|
-
`,bf=({disabled:e,error:a,value:i,onChange:c,onBlur:u,onChangeRaw:d,onBlurRaw:h,readOnly:p,placeholder:f="00-8888",...m})=>{const[g,b]=o(""),[y,v]=o(""),[w,x]=o("none"),$=s(null),C=s(null),S=s(null),_=s(g),k=s(y),O=s(w),j=e=>{_.current=e,b(e)},M=e=>{k.current=e,v(e)},B=e=>{O.current=e,x(e)};l((()=>(document.addEventListener("mousedown",I),$.current&&$.current.addEventListener("keydown",E),()=>{document.removeEventListener("mousedown",I),$.current&&$.current.removeEventListener("keydown",E)})),[w]),l((()=>{"floor"===w&&3===g.length&&S.current&&S.current.focus()}),[g]),l((()=>{A(i)}),[i]);const I=t=>{e||p||$&&$.current.contains(t.target)||"none"!==O.current&&(B("none"),z())},E=e=>{"unit"===e.target.name&&"Tab"===e.code&&(B("none"),z())},T=e=>{B(e.target.name),e.target.select()},F=e=>{const t=e.target.name,r=e.target.value;"floor"===t?j(D(r)):M(D(r))},N=e=>{const t=e.target.name,r=e.target.value.toLocaleUpperCase().replace(/[^0-9A-Za-z]/,"");"floor"===t?(j(r),L(r,t)):(M(r),L(r,t))},P=e=>{"Backspace"!==e.code&&"Backspace"!==e.key||"unit"===w&&0===y.length&&C.current.focus()},D=e=>/^[0-9]$/.test(e)?Mn.padValue(e,!0):e.toLocaleUpperCase(),A=e=>{if(e!==yf)if(void 0===e||0===e.length)j(""),M("");else{const t=e.split("-");if(2===t.length){const e=t[0],r=t[1];j("floor"===w?e:D(e)),M("unit"===w?r:D(r))}}},L=(e,t)=>{if(!c&&!d)return;const r={floor:_.current,unit:k.current};if(r[t]=e,c){const e=H(r);c(e)}d&&d([r.floor,r.unit])},z=()=>{if(!u&&!h)return;const e={floor:D(_.current),unit:D(k.current)};if(u){const t=H(e);u(t)}h&&h([e.floor,e.unit])},H=e=>{const t=[e.floor,e.unit];return e.floor.length>0&&e.unit.length>0?t.join("-"):t.every((e=>""===e))?"":yf},R=e=>e.split("-");return t(Rn,{ref:$,onClick:()=>{"none"===w&&C.current&&C.current.focus()},disabled:e,$error:a,$readOnly:p,"data-testid":m["data-testid"],children:[r(df,{"data-testid":"addon",disabled:e,$readOnly:p,children:"#"}),p&&i?(()=>{const e=i.split("-");return t(mf,{children:[r(gf,{children:e[0]}),r(ff,{children:"-"}),r(gf,{children:e[1]})]})})():t(n,{children:[r(hf,{name:"floor",maxLength:3,value:g,ref:C,onFocus:T,onBlur:F,onChange:N,disabled:e,readOnly:p,type:"text",pattern:"[0-9A-Z]{2,3}","data-testid":"floor-input","aria-label":"floor-input",placeholder:"floor"!==w||p?R(f)[0]:""}),r(ff,{$inactive:0===g.length,children:"-"}),r(pf,{name:"unit",maxLength:5,value:y,ref:S,onFocus:T,onBlur:F,onChange:N,onKeyDown:P,disabled:e,readOnly:p,type:"text",pattern:"[0-9A-Z]{2,5}","data-testid":"unit-input","aria-label":"unit-input",placeholder:"unit"!==w||p?R(f)[1]:""})]})]})},yf="Invalid unit number";var vf=function(e,t,r,n){var a=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++a]);++a<i;)r=t(r,e[a],a,e);return r};var wf=function(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++a];if(!1===r(i[l],l,i))break}return t}}(),xf=ki;var $f=$i;var Cf=function(e,t){return function(r,n){if(null==r)return r;if(!$f(r))return e(r,n);for(var a=r.length,i=t?a:-1,o=Object(r);(t?i--:++i<a)&&!1!==n(o[i],i,o););return r}}((function(e,t){return e&&wf(e,t,xf)}));var Sf=vf,_f=Cf,kf=Zo,Of=function(e,t,r,n,a){return a(e,(function(e,a,i){r=n?(n=!1,e):t(r,e,a,i)})),r},jf=_e;var Mf=function(e,t,r){var n=jf(e)?Sf:Of,a=arguments.length<3;return n(e,kf(t),r,a,_f)};const Bf=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........"],["Armenia",["asia","ex-ussr"],"am","374",".. ......"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ...."],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ... ...."],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599",""],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86",".. ........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506",".... ...."],["Côte d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599",""],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420","... ... ..."],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1",""],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503",".... ...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502",".... ...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509",".... ...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91","..... ....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... ......."],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ... .. .."],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996","... ... ..."],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371",".. ... ..."],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60",".. .... ...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ...."],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) .. .. .."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","... ... ...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","... ......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","... ... ..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1",""],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ... .. .."],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and Príncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65",".... ...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ... ..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ... ...."],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998",".. ... .. .."],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ...."],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],If=(e,t,r,n)=>r?e+"".padEnd(t.length,".")+" "+r:e+"".padEnd(t.length,".")+" "+n;var Ef;!function(e){e.getCountries=()=>[].concat(...Bf.map((e=>({name:e[0],regions:e[1],iso2:e[2],countryCode:e[3],format:If("+",e[3],e[4],"... ... ... ... ..")})))),e.formatNumber=(e="",t)=>{if(!t)return e;const r=e.replace(/[\s()]+/g,""),{format:n}=t,a=n.split(" ");a.shift();const i=a.join(" ");return Mf(i,((e,t)=>{if(0===e.remainingText.length)return e;if("."!==t)return{formattedText:e.formattedText+t,remainingText:e.remainingText};const[r,...n]=e.remainingText;return{formattedText:e.formattedText+r,remainingText:n}}),{formattedText:"",remainingText:r}).formattedText}}(Ef||(Ef={}));const Tf=({onChange:e,value:t,allowClear:n,onClear:a,onBlur:i,error:c,fixedCountry:u=!1,optionPlaceholder:d="Select",optionSearchPlaceholder:h,enableSearch:p,onHideOptions:f,onShowOptions:m,placeholder:g,...b})=>{const[y]=o(Ef.getCountries()),[v,w]=o(void 0),[x,$]=o(""),C=s();l((()=>{const e=y.filter((e=>e.countryCode===Ff(t?.countryCode)))[0];w(e),$(Ef.formatNumber(t?.number,e))}),[t]);const S=t=>{e?_(x,t):k(x,t)},_=(t,r)=>{const n=Ef.formatNumber(t,r);e({number:n.replace(/[\s()]+/g,""),countryCode:r&&Nf(r.countryCode)})},k=(e,t)=>{$(Ef.formatNumber(e,t)),w(t)};return r(oh,{ref:C,value:x,onChange:t=>{const r=t.target.value.replace(/[^0-9]/g,"");e?_(r,v):k(r,v)},allowClear:n&&!!x,onClear:()=>{a?a():$("")},onBlur:i,error:c,placeholder:g,addon:u?{type:"label",attributes:{value:Nf(v?.countryCode)}}:{type:"list",attributes:{placeholder:d,options:y,selectedOption:v,enableSearch:p,searchPlaceholder:h,valueExtractor:e=>`+${e.countryCode}`,listExtractor:e=>({title:e.name,secondaryLabel:Nf(e.countryCode)}),onSelectOption:S,onHideOptions:f,onShowOptions:m}},inputMode:"numeric",...b})},Ff=e=>e?e.replace("+",""):"",Nf=e=>e?e.includes("+")?e:`+${e}`:"",Pf={DateInput:({label:e,errorMessage:t,id:n="form-date-input","data-error-testid":a,"data-testid":i,...o})=>r(wn,{id:n,label:e,errorMessage:t,"data-error-testid":a,disabled:o.disabled,children:r(zn,{id:`${n}-base`,"data-testid":i||n,error:!!t,...o})}),Input:Qn,InputGroup:sh,Label:yn,MultiSelect:({label:e,errorMessage:t,id:n="form-multi-select","data-error-testid":a,"data-testid":i,enableSearch:o=!1,...s})=>r(wn,{id:n,label:e,errorMessage:t,"data-error-testid":a,disabled:s.disabled,children:r(ch,{id:`${n}-base`,"data-testid":i||n,error:!!t,enableSearch:o,...s})}),Select:({label:e,errorMessage:t,id:n="form-select","data-error-testid":a,"data-testid":i,enableSearch:o=!1,...s})=>r(wn,{id:n,label:e,errorMessage:t,"data-error-testid":a,disabled:s.disabled,children:r(uh,{id:`${n}-base`,"data-testid":i||n,error:!!t,enableSearch:o,...s})}),Textarea:vh,Timepicker:({label:e,errorMessage:t,id:n="form-timepicker","data-error-testid":a,"data-testid":i,...o})=>r(wn,{id:n,label:e,errorMessage:t,disabled:o.disabled,"data-error-testid":a,children:r(uf,{id:`${n}-base`,"data-testid":i||n,error:!!t,...o})}),CustomField:({id:e="form-custom-field","data-error-testid":t,children:n,...a})=>r(wn,{id:e,"data-error-testid":t,...a,children:n}),UnitNumberInput:({label:e,errorMessage:t,id:n="form-unit-number-input","data-error-testid":a,"data-testid":i,...o})=>r(wn,{id:n,label:e,errorMessage:t,"data-error-testid":a,disabled:o.disabled,children:r(bf,{id:`${n}-base`,"data-testid":i||n,error:!!t,...o})}),PhoneNumberInput:({label:e,errorMessage:t,id:n="form-phone-number-input","data-error-testid":a,"data-testid":i,...o})=>r(wn,{id:n,label:e,errorMessage:t,"data-error-testid":a,disabled:o.disabled,children:r(Tf,{id:`${n}-base`,"data-testid":i||n,error:!!t,...o})})};export{Pf as Form};
|
|
1612
|
+
`,Sf=({disabled:e,error:a,value:i,onChange:c,onBlur:u,onChangeRaw:d,onBlurRaw:h,readOnly:p,placeholder:f="00-8888",...m})=>{const[g,b]=o(""),[y,v]=o(""),[w,x]=o("none"),$=s(null),C=s(null),S=s(null),_=s(g),k=s(y),O=s(w),j=e=>{_.current=e,b(e)},M=e=>{k.current=e,v(e)},B=e=>{O.current=e,x(e)};l((()=>(document.addEventListener("mousedown",I),$.current&&$.current.addEventListener("keydown",E),()=>{document.removeEventListener("mousedown",I),$.current&&$.current.removeEventListener("keydown",E)})),[w]),l((()=>{"floor"===w&&3===g.length&&S.current&&S.current.focus()}),[g]),l((()=>{A(i)}),[i]);const I=t=>{e||p||$&&$.current.contains(t.target)||"none"!==O.current&&(B("none"),z())},E=e=>{"unit"===e.target.name&&"Tab"===e.code&&(B("none"),z())},T=e=>{B(e.target.name),e.target.select()},F=e=>{const t=e.target.name,r=e.target.value;"floor"===t?j(D(r)):M(D(r))},N=e=>{const t=e.target.name,r=e.target.value.toLocaleUpperCase().replace(/[^0-9A-Za-z]/,"");"floor"===t?(j(r),L(r,t)):(M(r),L(r,t))},P=e=>{"Backspace"!==e.code&&"Backspace"!==e.key||"unit"===w&&0===y.length&&C.current.focus()},D=e=>/^[0-9]$/.test(e)?Bn.padValue(e,!0):e.toLocaleUpperCase(),A=e=>{if(e!==_f)if(void 0===e||0===e.length)j(""),M("");else{const t=e.split("-");if(2===t.length){const e=t[0],r=t[1];j("floor"===w?e:D(e)),M("unit"===w?r:D(r))}}},L=(e,t)=>{if(!c&&!d)return;const r={floor:_.current,unit:k.current};if(r[t]=e,c){const e=H(r);c(e)}d&&d([r.floor,r.unit])},z=()=>{if(!u&&!h)return;const e={floor:D(_.current),unit:D(k.current)};if(u){const t=H(e);u(t)}h&&h([e.floor,e.unit])},H=e=>{const t=[e.floor,e.unit];return e.floor.length>0&&e.unit.length>0?t.join("-"):t.every((e=>""===e))?"":_f},R=e=>e.split("-");return t(Vn,{ref:$,onClick:()=>{"none"===w&&C.current&&C.current.focus()},disabled:e,$error:a,$readOnly:p,"data-testid":m["data-testid"],children:[r(yf,{"data-testid":"addon",disabled:e,$readOnly:p,children:"#"}),p&&i?(()=>{const e=i.split("-");return t($f,{children:[r(Cf,{children:e[0]}),r(xf,{children:"-"}),r(Cf,{children:e[1]})]})})():t(n,{children:[r(vf,{name:"floor",maxLength:3,value:g,ref:C,onFocus:T,onBlur:F,onChange:N,disabled:e,readOnly:p,type:"text",pattern:"[0-9A-Z]{2,3}","data-testid":"floor-input","aria-label":"floor-input",placeholder:"floor"!==w||p?R(f)[0]:""}),r(xf,{$inactive:0===g.length,children:"-"}),r(wf,{name:"unit",maxLength:5,value:y,ref:S,onFocus:T,onBlur:F,onChange:N,onKeyDown:P,disabled:e,readOnly:p,type:"text",pattern:"[0-9A-Z]{2,5}","data-testid":"unit-input","aria-label":"unit-input",placeholder:"unit"!==w||p?R(f)[1]:""})]})]})},_f="Invalid unit number";var kf=function(e,t,r,n){var a=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++a]);++a<i;)r=t(r,e[a],a,e);return r};var Of=function(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++a];if(!1===r(i[l],l,i))break}return t}}(),jf=ki;var Mf=$i;var Bf=function(e,t){return function(r,n){if(null==r)return r;if(!Mf(r))return e(r,n);for(var a=r.length,i=t?a:-1,o=Object(r);(t?i--:++i<a)&&!1!==n(o[i],i,o););return r}}((function(e,t){return e&&Of(e,t,jf)}));var If=kf,Ef=Bf,Tf=Zo,Ff=function(e,t,r,n,a){return a(e,(function(e,a,i){r=n?(n=!1,e):t(r,e,a,i)})),r},Nf=_e;var Pf=function(e,t,r){var n=Nf(e)?If:Ff,a=arguments.length<3;return n(e,Tf(t),r,a,Ef)};const Df=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........"],["Armenia",["asia","ex-ussr"],"am","374",".. ......"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ...."],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ... ...."],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599",""],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86",".. ........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506",".... ...."],["Côte d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599",""],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420","... ... ..."],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1",""],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503",".... ...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502",".... ...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509",".... ...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91","..... ....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... ......."],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ... .. .."],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996","... ... ..."],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371",".. ... ..."],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60",".. .... ...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ...."],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) .. .. .."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","... ... ...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","... ......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","... ... ..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1",""],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ... .. .."],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and Príncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65",".... ...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ... ..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ... ...."],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998",".. ... .. .."],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ...."],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],Af=(e,t,r,n)=>r?e+"".padEnd(t.length,".")+" "+r:e+"".padEnd(t.length,".")+" "+n;var Lf;!function(e){e.getCountries=()=>[].concat(...Df.map((e=>({name:e[0],regions:e[1],iso2:e[2],countryCode:e[3],format:Af("+",e[3],e[4],"... ... ... ... ..")})))),e.formatNumber=(e="",t)=>{if(!t)return e;const r=e.replace(/[\s()]+/g,""),{format:n}=t,a=n.split(" ");a.shift();const i=a.join(" ");return Pf(i,((e,t)=>{if(0===e.remainingText.length)return e;if("."!==t)return{formattedText:e.formattedText+t,remainingText:e.remainingText};const[r,...n]=e.remainingText;return{formattedText:e.formattedText+r,remainingText:n}}),{formattedText:"",remainingText:r}).formattedText}}(Lf||(Lf={}));const zf=({onChange:e,value:t,allowClear:n,onClear:a,onBlur:i,error:c,fixedCountry:u=!1,optionPlaceholder:d="Select",optionSearchPlaceholder:h,enableSearch:p,onHideOptions:f,onShowOptions:m,placeholder:g,...b})=>{const[y]=o(Lf.getCountries()),[v,w]=o(void 0),[x,$]=o(""),C=s();l((()=>{const e=y.filter((e=>e.countryCode===Hf(t?.countryCode)))[0];w(e),$(Lf.formatNumber(t?.number,e))}),[t]);const S=t=>{e?_(x,t):k(x,t)},_=(t,r)=>{const n=Lf.formatNumber(t,r);e({number:n.replace(/[\s()]+/g,""),countryCode:r&&Rf(r.countryCode)})},k=(e,t)=>{$(Lf.formatNumber(e,t)),w(t)};return r(ph,{ref:C,value:x,onChange:t=>{const r=t.target.value.replace(/[^0-9]/g,"");e?_(r,v):k(r,v)},allowClear:n&&!!x,onClear:()=>{a?a():$("")},onBlur:i,error:c,placeholder:g,addon:u?{type:"label",attributes:{value:Rf(v?.countryCode)}}:{type:"list",attributes:{placeholder:d,options:y,selectedOption:v,enableSearch:p,searchPlaceholder:h,valueExtractor:e=>`+${e.countryCode}`,listExtractor:e=>({title:e.name,secondaryLabel:Rf(e.countryCode)}),onSelectOption:S,onHideOptions:f,onShowOptions:m}},inputMode:"numeric",...b})},Hf=e=>e?e.replace("+",""):"",Rf=e=>e?e.includes("+")?e:`+${e}`:"",Vf={DateInput:({label:e,errorMessage:t,id:n="form-date-input","data-error-testid":a,"data-testid":i,...o})=>r(wn,{id:n,label:e,errorMessage:t,"data-error-testid":a,disabled:o.disabled,children:r(Hn,{id:`${n}-base`,"data-testid":i||n,error:!!t,...o})}),Input:Zn,InputGroup:fh,Label:yn,MultiSelect:({label:e,errorMessage:t,id:n="form-multi-select","data-error-testid":a,"data-testid":i,enableSearch:o=!1,...s})=>r(wn,{id:n,label:e,errorMessage:t,"data-error-testid":a,disabled:s.disabled,children:r(gh,{id:`${n}-base`,"data-testid":i||n,error:!!t,enableSearch:o,...s})}),Select:({label:e,errorMessage:t,id:n="form-select","data-error-testid":a,"data-testid":i,enableSearch:o=!1,...s})=>r(wn,{id:n,label:e,errorMessage:t,"data-error-testid":a,disabled:s.disabled,children:r(bh,{id:`${n}-base`,"data-testid":i||n,error:!!t,enableSearch:o,...s})}),Textarea:kh,Timepicker:({label:e,errorMessage:t,id:n="form-timepicker","data-error-testid":a,"data-testid":i,...o})=>r(wn,{id:n,label:e,errorMessage:t,disabled:o.disabled,"data-error-testid":a,children:r(bf,{id:`${n}-base`,"data-testid":i||n,error:!!t,...o})}),CustomField:({id:e="form-custom-field","data-error-testid":t,children:n,...a})=>r(wn,{id:e,"data-error-testid":t,...a,children:n}),UnitNumberInput:({label:e,errorMessage:t,id:n="form-unit-number-input","data-error-testid":a,"data-testid":i,...o})=>r(wn,{id:n,label:e,errorMessage:t,"data-error-testid":a,disabled:o.disabled,children:r(Sf,{id:`${n}-base`,"data-testid":i||n,error:!!t,...o})}),PhoneNumberInput:({label:e,errorMessage:t,id:n="form-phone-number-input","data-error-testid":a,"data-testid":i,...o})=>r(wn,{id:n,label:e,errorMessage:t,"data-error-testid":a,disabled:o.disabled,children:r(zf,{id:`${n}-base`,"data-testid":i||n,error:!!t,...o})})};export{Vf as Form};
|
|
1613
1613
|
//# sourceMappingURL=index.js.map
|