@clicktap/ui 0.0.21 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -36,7 +36,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
36
36
  *
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
- */var _c=z$(G$());function W$(e){return _c.Children.toArray(e).filter(t=>(0,_c.isValidElement)(t))}var[Y$,Mp]=M$({name:"AvatarGroupContext",strict:!1}),q$={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},Z$={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},X$={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},J$={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},Q$={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},e3={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},t3={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},de={solid:q$,shadow:Z$,bordered:X$,flat:J$,faded:Q$,light:e3,ghost:t3},zc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,tt=e=>!e||typeof e!="object"||Object.keys(e).length===0,n3=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function kp(e,t){e.forEach(function(n){Array.isArray(n)?kp(n,t):t.push(n)})}function Rp(e){let t=[];return kp(e,t),t}var Fp=(...e)=>Rp(e).filter(Boolean),Bp=(e,t)=>{let n={},r=Object.keys(e),o=Object.keys(t);for(let i of r)if(o.includes(i)){let a=e[i],s=t[i];typeof a=="object"&&typeof s=="object"?n[i]=Bp(a,s):Array.isArray(a)||Array.isArray(s)?n[i]=Fp(s,a):n[i]=s+" "+a}else n[i]=e[i];for(let i of o)r.includes(i)||(n[i]=t[i]);return n},Uc=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function r3(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=Ip(t))&&(r&&(r+=" "),r+=n);return r}function Ip(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=Ip(e[r]))&&(n&&(n+=" "),n+=t);return n}var Ll="-";function o3(e){var t=a3(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=r===void 0?{}:r;function i(s){var l=s.split(Ll);return l[0]===""&&l.length!==1&&l.shift(),Lp(l,t)||i3(s)}function a(s,l){var d=n[s]||[];return l&&o[s]?[].concat(d,o[s]):d}return{getClassGroupId:i,getConflictingClassGroupIds:a}}function Lp(e,t){var a;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?Lp(e.slice(1),r):void 0;if(o)return o;if(t.validators.length!==0){var i=e.join(Ll);return(a=t.validators.find(function(s){var l=s.validator;return l(i)}))==null?void 0:a.classGroupId}}var Hc=/^\[(.+)\]$/;function i3(e){if(Hc.test(e)){var t=Hc.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function a3(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=l3(Object.entries(e.classGroups),n);return o.forEach(function(i){var a=i[0],s=i[1];Ms(s,r,a,t)}),r}function Ms(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var i=o===""?t:Gc(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(s3(o)){Ms(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(function(a){var s=a[0],l=a[1];Ms(l,Gc(t,s),n,r)})})}function Gc(e,t){var n=e;return t.split(Ll).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function s3(e){return e.isThemeGetter}function l3(e,t){return t?e.map(function(n){var r=n[0],o=n[1],i=o.map(function(a){return typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(function(s){var l=s[0],d=s[1];return[t+l,d]})):a});return[r,i]}):e}function u3(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(i,a){n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)}return{get:function(a){var s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set:function(a,s){n.has(a)?n.set(a,s):o(a,s)}}}var Vp="!";function c3(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(a){for(var s=[],l=0,d=0,c,f=0;f<a.length;f++){var p=a[f];if(l===0){if(p===r&&(n||a.slice(f,f+o)===t)){s.push(a.slice(d,f)),d=f+o;continue}if(p==="/"){c=f;continue}}p==="["?l++:p==="]"&&l--}var h=s.length===0?a:a.substring(d),b=h.startsWith(Vp),g=b?h.substring(1):h,y=c&&c>d?c-d:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:y}}}function d3(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function f3(e){return{cache:u3(e.cacheSize),splitModifiers:c3(e),...o3(e)}}var p3=/\s+/;function h3(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(p3).map(function(a){var s=n(a),l=s.modifiers,d=s.hasImportantModifier,c=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?c.substring(0,f):c),h=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:a};if(p=r(c),!p)return{isTailwindClass:!1,originalClassName:a};h=!1}var b=d3(l).join(":"),g=d?b+Vp:b;return{isTailwindClass:!0,modifierId:g,classGroupId:p,originalClassName:a,hasPostfixModifier:h}}).reverse().filter(function(a){if(!a.isTailwindClass)return!0;var s=a.modifierId,l=a.classGroupId,d=a.hasPostfixModifier,c=s+l;return i.has(c)?!1:(i.add(c),o(l,d).forEach(function(f){return i.add(s+f)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function ks(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,i,a=s;function s(d){var c=t[0],f=t.slice(1),p=f.reduce(function(h,b){return b(h)},c());return r=f3(p),o=r.cache.get,i=r.cache.set,a=l,l(d)}function l(d){var c=o(d);if(c)return c;var f=h3(d,r);return i(d,f),f}return function(){return a(r3.apply(null,arguments))}}function xe(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var Op=/^\[(?:([a-z-]+):)?(.+)\]$/i,b3=/^\d+\/\d+$/,m3=new Set(["px","full","screen"]),g3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,v3=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,y3=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function gt(e){return wn(e)||m3.has(e)||b3.test(e)||Rs(e)}function Rs(e){return Bn(e,"length",E3)}function $3(e){return Bn(e,"size",Np)}function x3(e){return Bn(e,"position",Np)}function w3(e){return Bn(e,"url",P3)}function Uo(e){return Bn(e,"number",wn)}function wn(e){return!Number.isNaN(Number(e))}function C3(e){return e.endsWith("%")&&wn(e.slice(0,-1))}function kr(e){return Wc(e)||Bn(e,"number",Wc)}function ce(e){return Op.test(e)}function Rr(){return!0}function Jt(e){return g3.test(e)}function D3(e){return Bn(e,"",S3)}function Bn(e,t,n){var r=Op.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function E3(e){return v3.test(e)}function Np(){return!1}function P3(e){return e.startsWith("url(")}function Wc(e){return Number.isInteger(Number(e))}function S3(e){return y3.test(e)}function Fs(){var e=xe("colors"),t=xe("spacing"),n=xe("blur"),r=xe("brightness"),o=xe("borderColor"),i=xe("borderRadius"),a=xe("borderSpacing"),s=xe("borderWidth"),l=xe("contrast"),d=xe("grayscale"),c=xe("hueRotate"),f=xe("invert"),p=xe("gap"),h=xe("gradientColorStops"),b=xe("gradientColorStopPositions"),g=xe("inset"),y=xe("margin"),$=xe("opacity"),C=xe("padding"),w=xe("saturate"),E=xe("scale"),P=xe("sepia"),k=xe("skew"),N=xe("space"),v=xe("translate"),L=function(){return["auto","contain","none"]},F=function(){return["auto","hidden","clip","visible","scroll"]},A=function(){return["auto",ce,t]},B=function(){return[ce,t]},R=function(){return["",gt]},I=function(){return["auto",wn,ce]},K=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},V=function(){return["solid","dashed","dotted","double","none"]},T=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},G=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",ce]},H=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},D=function(){return[wn,Uo]},O=function(){return[wn,ce]};return{cacheSize:500,theme:{colors:[Rr],spacing:[gt],blur:["none","",Jt,ce],brightness:D(),borderColor:[e],borderRadius:["none","","full",Jt,ce],borderSpacing:B(),borderWidth:R(),contrast:D(),grayscale:Y(),hueRotate:O(),invert:Y(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[C3,Rs],inset:A(),margin:A(),opacity:D(),padding:B(),saturate:D(),scale:D(),sepia:Y(),skew:O(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",ce]}],container:["container"],columns:[{columns:[Jt]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(K(),[ce])}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",kr]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ce]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",kr]}],"grid-cols":[{"grid-cols":[Rr]}],"col-start-end":[{col:["auto",{span:["full",kr]},ce]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Rr]}],"row-start-end":[{row:["auto",{span:[kr]},ce]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ce]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(G())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(G(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(G(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",ce,t]}],"min-w":[{"min-w":["min","max","fit",ce,gt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Jt]},Jt,ce]}],h:[{h:[ce,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",ce,gt]}],"max-h":[{"max-h":[ce,t,"min","max","fit"]}],"font-size":[{text:["base",Jt,Rs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Uo]}],"font-family":[{font:[Rr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ce]}],"line-clamp":[{"line-clamp":["none",wn,Uo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ce,gt]}],"list-image":[{"list-image":["none",ce]}],"list-style-type":[{list:["none","disc","decimal",ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[$]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(V(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",gt]}],"underline-offset":[{"underline-offset":["auto",ce,gt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[$]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(K(),[x3])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",$3]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},w3]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[$]}],"border-style":[{border:[].concat(V(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[$]}],"divide-style":[{divide:V()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(V())}],"outline-offset":[{"outline-offset":[ce,gt]}],"outline-w":[{outline:[gt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[$]}],"ring-offset-w":[{"ring-offset":[gt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Jt,D3]}],"shadow-color":[{shadow:[Rr]}],opacity:[{opacity:[$]}],"mix-blend":[{"mix-blend":T()}],"bg-blend":[{"bg-blend":T()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Jt,ce]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[$]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ce]}],duration:[{duration:O()}],ease:[{ease:["linear","in","out","in-out",ce]}],delay:[{delay:O()}],animate:[{animate:["none","spin","ping","pulse","bounce",ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[kr,ce]}],"translate-x":[{"translate-x":[v]}],"translate-y":[{"translate-y":[v]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ce]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[gt,Uo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function T3(e,t){for(var n in t)Kp(e,n,t[n]);return e}var A3=Object.prototype.hasOwnProperty,M3=new Set(["string","number","boolean"]);function Kp(e,t,n){if(!A3.call(e,t)||M3.has(typeof n)||n===null){e[t]=n;return}if(Array.isArray(n)&&Array.isArray(e[t])){e[t]=e[t].concat(n);return}if(typeof n=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=n;return}for(var r in n)Kp(e[t],r,n[r])}}function k3(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return typeof e=="function"?ks.apply(void 0,[Fs,e].concat(n)):ks.apply(void 0,[function(){return T3(Fs(),e)}].concat(n))}var R3=ks(Fs),F3={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},jp=e=>e||void 0,eo=(...e)=>jp(Rp(e).filter(Boolean).join(" ")),Na=null,$i={},Bs=!1,Fr=(...e)=>t=>t.twMerge?((!Na||Bs)&&(Bs=!1,Na=tt($i)?R3:k3($i)),jp(Na(eo(e)))):eo(e),Yc=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=eo(e[n],t[n]):e[n]=t[n];return e},B3=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:a=[],defaultVariants:s={}}=e,l={...F3,...t},d=n!=null&&n.base?eo(n.base,e==null?void 0:e.base):e==null?void 0:e.base,c=n!=null&&n.variants&&!tt(n.variants)?Bp(o,n.variants):o,f=n!=null&&n.defaultVariants&&!tt(n.defaultVariants)?{...n.defaultVariants,...s}:s;!tt(l.twMergeConfig)&&!n3(l.twMergeConfig,$i)&&(Bs=!0,$i=l.twMergeConfig);let p=tt(n==null?void 0:n.slots),h=tt(r)?{}:{base:eo(e==null?void 0:e.base,p&&(n==null?void 0:n.base)),...r},b=p?h:Yc({...n==null?void 0:n.slots},tt(h)?{base:e==null?void 0:e.base}:h),g=$=>{if(tt(c)&&tt(r)&&p)return Fr(d,$==null?void 0:$.class,$==null?void 0:$.className)(l);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof i}`);if(a&&!Array.isArray(a))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof a}`);let C=(B,R,I=[],K)=>{let V=I;if(typeof R=="string")V=V.concat(Uc(R).split(" ").map(T=>`${B}:${T}`));else if(Array.isArray(R))V=V.concat(R.reduce((T,G)=>T.concat(`${B}:${G}`),[]));else if(typeof R=="object"&&typeof K=="string"){for(let T in R)if(R.hasOwnProperty(T)&&T===K){let G=R[T];if(G&&typeof G=="string"){let Y=Uc(G);V[K]?V[K]=V[K].concat(Y.split(" ").map(H=>`${B}:${H}`)):V[K]=Y.split(" ").map(H=>`${B}:${H}`)}else Array.isArray(G)&&G.length>0&&(V[K]=G.reduce((Y,H)=>Y.concat(`${B}:${H}`),[]))}}return V},w=(B,R=c,I=null,K=null)=>{var V;let T=R[B];if(!T||tt(T))return null;let G=(V=K==null?void 0:K[B])!=null?V:$==null?void 0:$[B];if(G===null)return null;let Y=zc(G),H=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,D=f==null?void 0:f[B],O=[];if(typeof Y=="object"&&H)for(let[J,Q]of Object.entries(Y)){let re=T[Q];if(J==="initial"){D=Q;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(J)||(O=C(J,re,O,I))}let W=T[Y]||T[zc(D)];return typeof O=="object"&&typeof I=="string"&&O[I]?Yc(O,W):O.length>0?(O.push(W),O):W},E=()=>c?Object.keys(c).map(B=>w(B,c)):null,P=(B,R)=>{if(!c||typeof c!="object")return null;let I=new Array;for(let K in c){let V=w(K,c,B,R),T=B==="base"&&typeof V=="string"?V:V&&V[B];T&&(I[I.length]=T)}return I},k={};for(let B in $)$[B]!==void 0&&(k[B]=$[B]);let N=(B,R)=>{var I;let K=typeof($==null?void 0:$[B])=="object"?{[B]:(I=$[B])==null?void 0:I.initial}:{};return{...f,...k,...K,...R}},v=(B=[],R)=>{let I=[];for(let{class:K,className:V,...T}of B){let G=!0;for(let[Y,H]of Object.entries(T)){let D=N(Y,R);if(Array.isArray(H)){if(!H.includes(D[Y])){G=!1;break}}else if(D[Y]!==H){G=!1;break}}G&&(K&&I.push(K),V&&I.push(V))}return I},L=B=>{let R=v(i,B),I=v(n==null?void 0:n.compoundVariants,B);return Fp(I,R)},F=B=>{let R=L(B);if(!Array.isArray(R))return R;let I={};for(let K of R)if(typeof K=="string"&&(I.base=Fr(I.base,K)(l)),typeof K=="object")for(let[V,T]of Object.entries(K))I[V]=Fr(I[V],T)(l);return I},A=B=>{if(a.length<1)return null;let R={};for(let{slots:I=[],class:K,className:V,...T}of a){if(!tt(T)){let G=!0;for(let Y of Object.keys(T)){let H=N(Y,B)[Y];if(H===void 0||(Array.isArray(T[Y])?!T[Y].includes(H):T[Y]!==H)){G=!1;break}}if(!G)continue}for(let G of I)R[G]=R[G]||[],R[G].push([K,V])}return R};if(!tt(r)||!p){let B={};if(typeof b=="object"&&!tt(b))for(let R of Object.keys(b))B[R]=I=>{var K,V;return Fr(b[R],P(R,I),((K=F(I))!=null?K:[])[R],((V=A(I))!=null?V:[])[R],I==null?void 0:I.class,I==null?void 0:I.className)(l)};return B}return Fr(d,E(),L(),$==null?void 0:$.class,$==null?void 0:$.className)(l)},y=()=>{if(!(!c||typeof c!="object"))return Object.keys(c)};return g.variantKeys=y(),g.extend=n,g.base=d,g.slots=b,g.variants=c,g.defaultVariants=f,g.compoundSlots=a,g.compoundVariants=i,g},Ho=["small","medium","large"],Xi=(e,t)=>{var n,r,o;return B3(e,{...t,twMerge:(n=t==null?void 0:t.twMerge)!=null?n:!0,twMergeConfig:{...t==null?void 0:t.twMergeConfig,theme:{...(r=t==null?void 0:t.twMergeConfig)==null?void 0:r.theme,opacity:["disabled"],spacing:["divider"],borderWidth:Ho,borderRadius:Ho},classGroups:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.classGroups,shadow:[{shadow:Ho}],"font-size":[{text:["tiny",...Ho]}],"bg-image":["bg-stripe-gradient"]}}})},_p=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],Ka=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],qc=Xi({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",..._p],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-none","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:de.solid.foreground},primary:{base:"before:bg-primary",content:de.solid.primary},secondary:{base:"before:bg-secondary",content:de.solid.secondary},success:{base:"before:bg-success",content:de.solid.success},warning:{base:"before:bg-warning",content:de.solid.warning},danger:{base:"before:bg-danger",content:de.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",disableAnimation:!1,triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]}),I3=Xi({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",..._p],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...Ka,"flex","items-center","justify-center"],name:[...Ka,"font-normal","text-center","text-inherit"],icon:[...Ka,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:de.solid.default},primary:{base:de.solid.primary},secondary:{base:de.solid.secondary},success:{base:de.solid.success},warning:{base:de.solid.warning},danger:{base:de.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ms-2 data-[hover=true]:-translate-x-3 rtl:data-[hover=true]:translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3 rtl:data-[focus-visible=true]:translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}}},defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-primary"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]}),L3=Xi({slots:{base:"flex items-center justify-center h-auto w-max-content",count:"hover:-translate-x-0"},variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}}),Zc=Xi({slots:{base:["relative","inline-flex","shrink-0"],badge:["flex","z-10","flex-wrap","absolute","box-border","rounded-full","whitespace-nowrap","place-content-center","origin-center","items-center","text-inherit","select-none","font-regular","scale-100","opacity-100","subpixel-antialiased","data-[invisible=true]:scale-0","data-[invisible=true]:opacity-0"]},variants:{variant:{solid:{},flat:{},faded:{badge:"border-medium"},shadow:{}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{badge:"px-1 text-tiny"},md:{badge:"px-1 text-small"},lg:{badge:"px-1 text-small"}},placement:{"top-right":{},"top-left":{},"bottom-right":{},"bottom-left":{}},shape:{circle:{},rectangle:{}},isInvisible:{true:{}},isOneChar:{true:{badge:"px-0"}},isDot:{true:{}},disableAnimation:{true:{badge:"transition-none"},false:{badge:"transition-transform-opacity !ease-soft-spring !duration-300"}},showOutline:{true:{badge:"border-2 border-background"},false:{badge:"border-transparent border-0"}}},defaultVariants:{variant:"solid",color:"default",size:"md",shape:"rectangle",placement:"top-right",showOutline:!0,disableAnimation:!1,isInvisible:!1},compoundVariants:[{variant:"solid",color:"default",class:{badge:de.solid.default}},{variant:"solid",color:"primary",class:{badge:de.solid.primary}},{variant:"solid",color:"secondary",class:{badge:de.solid.secondary}},{variant:"solid",color:"success",class:{badge:de.solid.success}},{variant:"solid",color:"warning",class:{badge:de.solid.warning}},{variant:"solid",color:"danger",class:{badge:de.solid.danger}},{variant:"shadow",color:"default",class:{badge:de.shadow.default}},{variant:"shadow",color:"primary",class:{badge:de.shadow.primary}},{variant:"shadow",color:"secondary",class:{badge:de.shadow.secondary}},{variant:"shadow",color:"success",class:{badge:de.shadow.success}},{variant:"shadow",color:"warning",class:{badge:de.shadow.warning}},{variant:"shadow",color:"danger",class:{badge:de.shadow.danger}},{variant:"flat",color:"default",class:{badge:de.flat.default}},{variant:"flat",color:"primary",class:{badge:de.flat.primary}},{variant:"flat",color:"secondary",class:{badge:de.flat.secondary}},{variant:"flat",color:"success",class:{badge:de.flat.success}},{variant:"flat",color:"warning",class:{badge:de.flat.warning}},{variant:"flat",color:"danger",class:{badge:de.flat.danger}},{variant:"faded",color:"default",class:{badge:de.faded.default}},{variant:"faded",color:"primary",class:{badge:de.faded.primary}},{variant:"faded",color:"secondary",class:{badge:de.faded.secondary}},{variant:"faded",color:"success",class:{badge:de.faded.success}},{variant:"faded",color:"warning",class:{badge:de.faded.warning}},{variant:"faded",color:"danger",class:{badge:de.faded.danger}},{isOneChar:!0,size:"sm",class:{badge:"w-4 h-4 min-w-4 min-h-4"}},{isOneChar:!0,size:"md",class:{badge:"w-5 h-5 min-w-5 min-h-5"}},{isOneChar:!0,size:"lg",class:{badge:"w-6 h-6 min-w-6 min-h-6"}},{isDot:!0,size:"sm",class:{badge:"w-3 h-3 min-w-3 min-h-3"}},{isDot:!0,size:"md",class:{badge:"w-3.5 h-3.5 min-w-3.5 min-h-3.5"}},{isDot:!0,size:"lg",class:{badge:"w-4 h-4 min-w-4 min-h-4"}},{placement:"top-right",shape:"rectangle",class:{badge:"top-[5%] right-[5%] translate-x-1/2 -translate-y-1/2"}},{placement:"top-left",shape:"rectangle",class:{badge:"top-[5%] left-[5%] -translate-x-1/2 -translate-y-1/2"}},{placement:"bottom-right",shape:"rectangle",class:{badge:"bottom-[5%] right-[5%] translate-x-1/2 translate-y-1/2"}},{placement:"bottom-left",shape:"rectangle",class:{badge:"bottom-[5%] left-[5%] -translate-x-1/2 translate-y-1/2"}},{placement:"top-right",shape:"circle",class:{badge:"top-[10%] right-[10%] translate-x-1/2 -translate-y-1/2"}},{placement:"top-left",shape:"circle",class:{badge:"top-[10%] left-[10%] -translate-x-1/2 -translate-y-1/2"}},{placement:"bottom-right",shape:"circle",class:{badge:"bottom-[10%] right-[10%] translate-x-1/2 translate-y-1/2"}},{placement:"bottom-left",shape:"circle",class:{badge:"bottom-[10%] left-[10%] -translate-x-1/2 translate-y-1/2"}}]});function bt(e,t,n){let[r,o]=u.useState(e||t),i=u.useRef(e!==void 0),a=e!==void 0;u.useEffect(()=>{let d=i.current;d!==a&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),i.current=a},[a]);let s=a?e:r,l=u.useCallback((d,...c)=>{let f=(p,...h)=>{n&&(Object.is(s,p)||n(p,...h)),a||(s=p)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((h,...b)=>{let g=d(a?s:h,...b);return f(g,...c),a?h:g})):(a||o(d),f(d,...c))},[a,s,n]);return[s,l]}function pt(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Qe(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,i=Math.abs(o)*2>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o;isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(n/r)*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor((n-t)/r)*r);let a=r.toString(),s=a.indexOf("."),l=s>=0?a.length-s:0;if(l>0){let d=Math.pow(10,l);i=Math.round(i*d)/d}return i}const xi={prefix:String(Math.round(Math.random()*1e10)),current:0},zp=u.createContext(xi),V3=u.createContext(!1);let O3=!!(typeof window<"u"&&window.document&&window.document.createElement),ja=new WeakMap;function N3(e=!1){let t=u.useContext(zp),n=u.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let a=ja.get(i);a==null?ja.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,ja.delete(i))}n.current=++t.current}return n.current}function K3(e){let t=u.useContext(zp);t===xi&&!O3&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=N3(!!e),r=t===xi&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function j3(e){let t=u.useId(),[n]=u.useState(At()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${xi.prefix}`;return e||`${r}-${t}`}const _3=typeof u.useId=="function"?j3:K3;function z3(){return!1}function U3(){return!0}function H3(e){return()=>{}}function At(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(H3,z3,U3):u.useContext(V3)}function Up(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Up(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function G3(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Up(e))&&(r&&(r+=" "),r+=t);return r}const be=typeof document<"u"?u.useLayoutEffect:()=>{};function Pe(e){const t=u.useRef(null);return be(()=>{t.current=e},[e]),u.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function W3(e){let[t,n]=u.useState(e),r=u.useRef(null),o=Pe(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?o():n(a.value)});be(()=>{r.current&&o()});let i=Pe(a=>{r.current=a(t),o()});return[t,i]}let Y3=!!(typeof window<"u"&&window.document&&window.document.createElement),wi=new Map;function _e(e){let[t,n]=u.useState(e),r=u.useRef(null),o=_3(t),i=u.useCallback(a=>{r.current=a},[]);return Y3&&wi.set(o,i),be(()=>{let a=o;return()=>{wi.delete(a)}},[o]),u.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),o}function q3(e,t){if(e===t)return e;let n=wi.get(e);if(n)return n(t),t;let r=wi.get(t);return r?(r(e),e):t}function rn(e=[]){let t=_e(),[n,r]=W3(t),o=u.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return be(o,[t,o,...e]),n}function an(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const ye=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ft=e=>e&&"window"in e&&e.window===e?e:ye(e).defaultView||window;function X(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],a=r[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=an(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=G3(i,a):o==="id"&&i&&a?t.id=q3(i,a):t[o]=a!==void 0?a:i}}return t}function Ji(...e){return e.length===1?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const Z3=new Set(["id"]),X3=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),J3=new Set(["href","target","rel","download","ping","referrerPolicy"]),Q3=/^(data-.*)$/;function le(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(Z3.has(a)||n&&X3.has(a)||r&&J3.has(a)||o!=null&&o.has(a)||Q3.test(a))&&(i[a]=e[a]);return i}function Pt(e){if(ex())e.focus({preventScroll:!0});else{let t=tx(e);e.focus(),nx(t)}}let Go=null;function ex(){if(Go==null){Go=!1;try{document.createElement("div").focus({get preventScroll(){return Go=!0,!0}})}catch{}}return Go}function tx(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function nx(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Qi(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Vl(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Ut(){return Vl(/^Mac/i)}function Hp(){return Vl(/^iPhone/i)}function Gp(){return Vl(/^iPad/i)||Ut()&&navigator.maxTouchPoints>1}function pr(){return Hp()||Gp()}function ui(){return Ut()||pr()}function Ol(){return Qi(/AppleWebKit/i)&&!rx()}function rx(){return Qi(/Chrome/i)}function Nl(){return Qi(/Android/i)}function ox(){return Qi(/Firefox/i)}const ix=u.createContext({isNative:!0,open:lx});function bo(){return u.useContext(ix)}function ax(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Tn(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;ox()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Ut()?i=!0:a=!0);let d=Ol()&&Ut()&&!Gp()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});Tn.isOpening=n,Pt(e),e.dispatchEvent(d),Tn.isOpening=!1}Tn.isOpening=!1;function sx(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function lx(e,t){sx(e,n=>Tn(n,t))}let Yn=new Map,Is=new Set;function Xc(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=Yn.get(r.target);o||(o=new Set,Yn.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=Yn.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),Yn.delete(r.target)),Yn.size===0)){for(let i of Is)i();Is.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Xc():document.addEventListener("DOMContentLoaded",Xc));function Wp(e){requestAnimationFrame(()=>{Yn.size===0?e():Is.add(e)})}function hr(){let e=u.useRef(new Map),t=u.useCallback((o,i,a,s)=>{let l=s!=null&&s.once?(...d)=>{e.current.delete(a),a(...d)}:a;e.current.set(a,{type:i,eventTarget:o,fn:l,options:s}),o.addEventListener(i,a,s)},[]),n=u.useCallback((o,i,a,s)=>{var l;let d=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;o.removeEventListener(i,d,s),e.current.delete(a)},[]),r=u.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return u.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function An(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=_e(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function mt(e){const t=u.useRef(null);return u.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}),[e])}function ux(){return typeof window.ResizeObserver<"u"}function Kl(e){const{ref:t,onResize:n}=e;u.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(ux()){const o=new window.ResizeObserver(i=>{i.length&&n()});return o.observe(r),()=>{r&&o.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function jl(e,t){be(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function to(e,t){let n=e;for(Ci(n,t)&&(n=n.parentElement);n&&!Ci(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Ci(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}let lt=typeof document<"u"&&window.visualViewport;function cx(){let e=At(),[t,n]=u.useState(()=>e?{width:0,height:0}:Jc());return u.useEffect(()=>{let r=()=>{n(o=>{let i=Jc();return i.width===o.width&&i.height===o.height?o:i})};return lt?lt.addEventListener("resize",r):window.addEventListener("resize",r),()=>{lt?lt.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function Jc(){return{width:lt&&(lt==null?void 0:lt.width)||window.innerWidth,height:lt&&(lt==null?void 0:lt.height)||window.innerHeight}}let dx=0;const _a=new Map;function Yp(e){let[t,n]=u.useState();return be(()=>{if(!e)return;let r=_a.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${dx++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},_a.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),_a.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Di(e,t,n,r){let o=Pe(n),i=n==null;u.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,r),()=>{a.removeEventListener(t,o,r)}},[e,t,r,i,o])}function qp(e,t){let n=Qc(e,t,"left"),r=Qc(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:d}=getComputedStyle(e),c=e.scrollLeft+parseInt(d,10),f=e.scrollTop+parseInt(l,10),p=c+e.clientWidth,h=f+e.clientHeight;n<=a?a=n-parseInt(d,10):n+o>p&&(a+=n+o-p),r<=f?s=r-parseInt(l,10):r+i>h&&(s+=r+i-h),e.scrollLeft=a,e.scrollTop=s}function Qc(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function Ls(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=to(e);for(;e&&l&&e!==a&&l!==a;)qp(l,e),e=l,l=to(e)}else{var n;let{left:l,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:f}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(d-f)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function Vs(e){return e.mozInputSource===0&&e.isTrusted?!0:Nl()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function fx(e){return!Nl()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function px(e,t){let n=u.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function mo(e,t,n){let r=u.useRef(t),o=Pe(()=>{n&&n(r.current)});u.useEffect(()=>{var i;let a=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return a==null||a.addEventListener("reset",o),()=>{a==null||a.removeEventListener("reset",o)}},[e,o])}function hx(e,t){return t.get?t.get.call(e):t.value}function Zp(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function bx(e,t){var n=Zp(e,t,"get");return hx(e,n)}function mx(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function go(e,t,n){mx(e,t),t.set(e,n)}function gx(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function ed(e,t,n){var r=Zp(e,t,"set");return gx(e,r,n),n}let Xn="default",Os="",ci=new WeakMap;function Ns(e){if(pr()){if(Xn==="default"){const t=ye(e);Os=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Xn="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(ci.set(e,e.style.userSelect),e.style.userSelect="none")}function jr(e){if(pr()){if(Xn!=="disabled")return;Xn="restoring",setTimeout(()=>{Wp(()=>{if(Xn==="restoring"){const t=ye(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Os||""),Os="",Xn="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ci.has(e)){let t=ci.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ci.delete(e)}}const no=u.createContext({register:()=>{}});no.displayName="PressResponderContext";function vx(e){let t=u.useContext(no);if(t){let{register:n,...r}=t;e=X(r,e),n()}return jl(t,e.ref),e}var Wo=new WeakMap;class Yo{continuePropagation(){ed(this,Wo,!1)}get shouldStopPropagation(){return bx(this,Wo)}constructor(t,n,r){go(this,Wo,{writable:!0,value:void 0}),ed(this,Wo,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const td=Symbol("linkClicked");function sn(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:a,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:c,ref:f,...p}=vx(e),[h,b]=u.useState(!1),g=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:y,removeAllGlobalListeners:$}=hr(),C=Pe((v,L)=>{let F=g.current;if(a||F.didFirePressStart)return!1;let A=!0;if(F.isTriggeringEvent=!0,r){let B=new Yo("pressstart",L,v);r(B),A=B.shouldStopPropagation}return n&&n(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,b(!0),A}),w=Pe((v,L,F=!0)=>{let A=g.current;if(!A.didFirePressStart)return!1;A.ignoreClickAfterPress=!0,A.didFirePressStart=!1,A.isTriggeringEvent=!0;let B=!0;if(o){let R=new Yo("pressend",L,v);o(R),B=R.shouldStopPropagation}if(n&&n(!1),b(!1),t&&F&&!a){let R=new Yo("press",L,v);t(R),B&&(B=R.shouldStopPropagation)}return A.isTriggeringEvent=!1,B}),E=Pe((v,L)=>{let F=g.current;if(a)return!1;if(i){F.isTriggeringEvent=!0;let A=new Yo("pressup",L,v);return i(A),F.isTriggeringEvent=!1,A.shouldStopPropagation}return!0}),P=Pe(v=>{let L=g.current;L.isPressed&&L.target&&(L.isOverTarget&&L.pointerType!=null&&w(kt(L.target,v),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,$(),c||jr(L.target))}),k=Pe(v=>{d&&P(v)}),N=u.useMemo(()=>{let v=g.current,L={onKeyDown(A){if(za(A.nativeEvent,A.currentTarget)&&A.currentTarget.contains(A.target)){var B;rd(A.target,A.key)&&A.preventDefault();let R=!0;if(!v.isPressed&&!A.repeat){v.target=A.currentTarget,v.isPressed=!0,R=C(A,"keyboard");let I=A.currentTarget,K=V=>{za(V,I)&&!V.repeat&&I.contains(V.target)&&v.target&&E(kt(v.target,V),"keyboard")};y(ye(A.currentTarget),"keyup",an(K,F),!0)}R&&A.stopPropagation(),A.metaKey&&Ut()&&((B=v.metaKeyEvents)===null||B===void 0||B.set(A.key,A.nativeEvent))}else A.key==="Meta"&&(v.metaKeyEvents=new Map)},onClick(A){if(!(A&&!A.currentTarget.contains(A.target))&&A&&A.button===0&&!v.isTriggeringEvent&&!Tn.isOpening){let B=!0;if(a&&A.preventDefault(),!v.ignoreClickAfterPress&&!v.ignoreEmulatedMouseEvents&&!v.isPressed&&(v.pointerType==="virtual"||Vs(A.nativeEvent))){!a&&!l&&Pt(A.currentTarget);let R=C(A,"virtual"),I=E(A,"virtual"),K=w(A,"virtual");B=R&&I&&K}v.ignoreEmulatedMouseEvents=!1,v.ignoreClickAfterPress=!1,B&&A.stopPropagation()}}},F=A=>{var B;if(v.isPressed&&v.target&&za(A,v.target)){var R;rd(A.target,A.key)&&A.preventDefault();let K=A.target;w(kt(v.target,A),"keyboard",v.target.contains(K)),$(),A.key!=="Enter"&&_l(v.target)&&v.target.contains(K)&&!A[td]&&(A[td]=!0,Tn(v.target,A,!1)),v.isPressed=!1,(R=v.metaKeyEvents)===null||R===void 0||R.delete(A.key)}else if(A.key==="Meta"&&(!((B=v.metaKeyEvents)===null||B===void 0)&&B.size)){var I;let K=v.metaKeyEvents;v.metaKeyEvents=void 0;for(let V of K.values())(I=v.target)===null||I===void 0||I.dispatchEvent(new KeyboardEvent("keyup",V))}};if(typeof PointerEvent<"u"){L.onPointerDown=I=>{if(I.button!==0||!I.currentTarget.contains(I.target))return;if(fx(I.nativeEvent)){v.pointerType="virtual";return}Ua(I.currentTarget)&&I.preventDefault(),v.pointerType=I.pointerType;let K=!0;v.isPressed||(v.isPressed=!0,v.isOverTarget=!0,v.activePointerId=I.pointerId,v.target=I.currentTarget,!a&&!l&&Pt(I.currentTarget),c||Ns(v.target),K=C(I,v.pointerType),y(ye(I.currentTarget),"pointermove",A,!1),y(ye(I.currentTarget),"pointerup",B,!1),y(ye(I.currentTarget),"pointercancel",R,!1)),K&&I.stopPropagation()},L.onMouseDown=I=>{I.currentTarget.contains(I.target)&&I.button===0&&(Ua(I.currentTarget)&&I.preventDefault(),I.stopPropagation())},L.onPointerUp=I=>{!I.currentTarget.contains(I.target)||v.pointerType==="virtual"||I.button===0&&Un(I,I.currentTarget)&&E(I,v.pointerType||I.pointerType)};let A=I=>{I.pointerId===v.activePointerId&&(v.target&&Un(I,v.target)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,C(kt(v.target,I),v.pointerType)):v.target&&v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,w(kt(v.target,I),v.pointerType,!1),k(I)))},B=I=>{I.pointerId===v.activePointerId&&v.isPressed&&I.button===0&&v.target&&(Un(I,v.target)&&v.pointerType!=null?w(kt(v.target,I),v.pointerType):v.isOverTarget&&v.pointerType!=null&&w(kt(v.target,I),v.pointerType,!1),v.isPressed=!1,v.isOverTarget=!1,v.activePointerId=null,v.pointerType=null,$(),c||jr(v.target))},R=I=>{P(I)};L.onDragStart=I=>{I.currentTarget.contains(I.target)&&P(I)}}else{L.onMouseDown=R=>{if(R.button!==0||!R.currentTarget.contains(R.target))return;if(Ua(R.currentTarget)&&R.preventDefault(),v.ignoreEmulatedMouseEvents){R.stopPropagation();return}v.isPressed=!0,v.isOverTarget=!0,v.target=R.currentTarget,v.pointerType=Vs(R.nativeEvent)?"virtual":"mouse",!a&&!l&&Pt(R.currentTarget),C(R,v.pointerType)&&R.stopPropagation(),y(ye(R.currentTarget),"mouseup",A,!1)},L.onMouseEnter=R=>{if(!R.currentTarget.contains(R.target))return;let I=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!0,I=C(R,v.pointerType)),I&&R.stopPropagation()},L.onMouseLeave=R=>{if(!R.currentTarget.contains(R.target))return;let I=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!1,I=w(R,v.pointerType,!1),k(R)),I&&R.stopPropagation()},L.onMouseUp=R=>{R.currentTarget.contains(R.target)&&!v.ignoreEmulatedMouseEvents&&R.button===0&&E(R,v.pointerType||"mouse")};let A=R=>{if(R.button===0){if(v.isPressed=!1,$(),v.ignoreEmulatedMouseEvents){v.ignoreEmulatedMouseEvents=!1;return}v.target&&Un(R,v.target)&&v.pointerType!=null?w(kt(v.target,R),v.pointerType):v.target&&v.isOverTarget&&v.pointerType!=null&&w(kt(v.target,R),v.pointerType,!1),v.isOverTarget=!1}};L.onTouchStart=R=>{if(!R.currentTarget.contains(R.target))return;let I=yx(R.nativeEvent);if(!I)return;v.activePointerId=I.identifier,v.ignoreEmulatedMouseEvents=!0,v.isOverTarget=!0,v.isPressed=!0,v.target=R.currentTarget,v.pointerType="touch",!a&&!l&&Pt(R.currentTarget),c||Ns(v.target),C(R,v.pointerType)&&R.stopPropagation(),y(ft(R.currentTarget),"scroll",B,!0)},L.onTouchMove=R=>{if(!R.currentTarget.contains(R.target))return;if(!v.isPressed){R.stopPropagation();return}let I=nd(R.nativeEvent,v.activePointerId),K=!0;I&&Un(I,R.currentTarget)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,K=C(R,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,K=w(R,v.pointerType,!1),k(R)),K&&R.stopPropagation()},L.onTouchEnd=R=>{if(!R.currentTarget.contains(R.target))return;if(!v.isPressed){R.stopPropagation();return}let I=nd(R.nativeEvent,v.activePointerId),K=!0;I&&Un(I,R.currentTarget)&&v.pointerType!=null?(E(R,v.pointerType),K=w(R,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(K=w(R,v.pointerType,!1)),K&&R.stopPropagation(),v.isPressed=!1,v.activePointerId=null,v.isOverTarget=!1,v.ignoreEmulatedMouseEvents=!0,v.target&&!c&&jr(v.target),$()},L.onTouchCancel=R=>{R.currentTarget.contains(R.target)&&(R.stopPropagation(),v.isPressed&&P(R))};let B=R=>{v.isPressed&&R.target.contains(v.target)&&P({currentTarget:v.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=R=>{R.currentTarget.contains(R.target)&&P(R)}}return L},[y,a,l,$,c,P,k,w,C,E]);return u.useEffect(()=>()=>{var v;c||jr((v=g.current.target)!==null&&v!==void 0?v:void 0)},[c]),{isPressed:s||h,pressProps:X(p,N)}}function _l(e){return e.tagName==="A"&&e.hasAttribute("href")}function za(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof ft(o).HTMLInputElement&&!Xp(o,n)||o instanceof ft(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&_l(o))&&n!=="Enter")}function yx(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function nd(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const o=n[r];if(o.identifier===t)return o}return null}function kt(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function $x(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function xx(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Un(e,t){let n=t.getBoundingClientRect(),r=$x(e);return xx(n,r)}function Ua(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function rd(e,t){return e instanceof HTMLInputElement?!Xp(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!_l(e)}const wx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Xp(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":wx.has(e.type)}const Cx=u.forwardRef(({children:e,...t},n)=>{let r=u.useRef(!1),o=u.useContext(no);n=mt(n||(o==null?void 0:o.ref));let i=X(o||{},{...t,ref:n,register(){r.current=!0,o&&o.register()}});return jl(o,n),u.useEffect(()=>{r.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)},[]),u.createElement(no.Provider,{value:i},e)});function Dx({children:e}){let t=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(no.Provider,{value:t},e)}class Ex{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Jp(e){let t=u.useRef({isFocused:!1,observer:null});be(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Pe(r=>{e==null||e(r)});return u.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=a=>{t.current.isFocused=!1,o.disabled&&n(new Ex("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function ea(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=u.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),a=Jp(i),s=u.useCallback(l=>{l.target===l.currentTarget&&document.activeElement===l.target&&(n&&n(l),o&&o(!0),a(l))},[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}let Ht=null,ro=new Set,Gr=new Map,Mn=!1,Ks=!1;const Px={Tab:!0,Escape:!0};function ta(e,t){for(let n of ro)n(e,t)}function Sx(e){return!(e.metaKey||!Ut()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ei(e){Mn=!0,Sx(e)&&(Ht="keyboard",ta("keyboard",e))}function ct(e){Ht="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Mn=!0,ta("pointer",e))}function Qp(e){Vs(e)&&(Mn=!0,Ht="virtual")}function e0(e){e.target===window||e.target===document||(!Mn&&!Ks&&(Ht="virtual",ta("virtual",e)),Mn=!1,Ks=!1)}function t0(){Mn=!1,Ks=!0}function Pi(e){if(typeof window>"u"||Gr.get(ft(e)))return;const t=ft(e),n=ye(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Mn=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ei,!0),n.addEventListener("keyup",Ei,!0),n.addEventListener("click",Qp,!0),t.addEventListener("focus",e0,!0),t.addEventListener("blur",t0,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ct,!0),n.addEventListener("pointermove",ct,!0),n.addEventListener("pointerup",ct,!0)):(n.addEventListener("mousedown",ct,!0),n.addEventListener("mousemove",ct,!0),n.addEventListener("mouseup",ct,!0)),t.addEventListener("beforeunload",()=>{n0(e)},{once:!0}),Gr.set(t,{focus:r})}const n0=(e,t)=>{const n=ft(e),r=ye(e);t&&r.removeEventListener("DOMContentLoaded",t),Gr.has(n)&&(n.HTMLElement.prototype.focus=Gr.get(n).focus,r.removeEventListener("keydown",Ei,!0),r.removeEventListener("keyup",Ei,!0),r.removeEventListener("click",Qp,!0),n.removeEventListener("focus",e0,!0),n.removeEventListener("blur",t0,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ct,!0),r.removeEventListener("pointermove",ct,!0),r.removeEventListener("pointerup",ct,!0)):(r.removeEventListener("mousedown",ct,!0),r.removeEventListener("mousemove",ct,!0),r.removeEventListener("mouseup",ct,!0)),Gr.delete(n))};function Tx(e){const t=ye(e);let n;return t.readyState!=="loading"?Pi(e):(n=()=>{Pi(e)},t.addEventListener("DOMContentLoaded",n)),()=>n0(e,n)}typeof document<"u"&&Tx();function lr(){return Ht!=="pointer"}function Si(){return Ht}function r0(e){Ht=e,ta(e,null)}function Ax(){Pi();let[e,t]=u.useState(Ht);return u.useEffect(()=>{let n=()=>{t(Ht)};return ro.add(n),()=>{ro.delete(n)}},[]),At()?null:e}const Mx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function kx(e,t,n){var r;const o=typeof window<"u"?ft(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?ft(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?ft(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?ft(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!Mx.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof i||(n==null?void 0:n.target)instanceof a&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof s&&!Px[n.key])}function Rx(e,t,n){Pi(),u.useEffect(()=>{let r=(o,i)=>{kx(!!(n!=null&&n.isTextInput),o,i)&&e(lr())};return ro.add(r),()=>{ro.delete(r)}},t)}function br(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=u.useRef({isFocusWithin:!1}),a=u.useCallback(d=>{i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(d),o&&o(!1))},[n,o,i]),s=Jp(a),l=u.useCallback(d=>{!i.current.isFocusWithin&&document.activeElement===d.target&&(r&&r(d),o&&o(!0),i.current.isFocusWithin=!0,s(d))},[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}let Ti=!1,Ha=0;function js(){Ti=!0,setTimeout(()=>{Ti=!1},50)}function od(e){e.pointerType==="touch"&&js()}function Fx(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",od):document.addEventListener("touchend",js),Ha++,()=>{Ha--,!(Ha>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",od):document.removeEventListener("touchend",js))}}function Fe(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=u.useState(!1),s=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(Fx,[]);let{hoverProps:l,triggerHoverEnd:d}=u.useMemo(()=>{let c=(h,b)=>{if(s.pointerType=b,o||b==="touch"||s.isHovered||!h.currentTarget.contains(h.target))return;s.isHovered=!0;let g=h.currentTarget;s.target=g,t&&t({type:"hoverstart",target:g,pointerType:b}),n&&n(!0),a(!0)},f=(h,b)=>{if(s.pointerType="",s.target=null,b==="touch"||!s.isHovered)return;s.isHovered=!1;let g=h.currentTarget;r&&r({type:"hoverend",target:g,pointerType:b}),n&&n(!1),a(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{Ti&&h.pointerType==="mouse"||c(h,h.pointerType)},p.onPointerLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,h.pointerType)}):(p.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!s.ignoreEmulatedMouseEvents&&!Ti&&c(h,"mouse"),s.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,"mouse")}),{hoverProps:p,triggerHoverEnd:f}},[t,n,r,o,s]);return u.useEffect(()=>{o&&d({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:l,isHovered:i}}function o0(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Pe(l=>{n&&qo(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),s=Pe(l=>{n&&n(l)});u.useEffect(()=>{let l=i.current;if(r)return;const d=t.current,c=ye(d);if(typeof PointerEvent<"u"){let f=p=>{l.isPointerDown&&qo(p,t)&&s(p),l.isPointerDown=!1};return c.addEventListener("pointerdown",a,!0),c.addEventListener("pointerup",f,!0),()=>{c.removeEventListener("pointerdown",a,!0),c.removeEventListener("pointerup",f,!0)}}else{let f=h=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&qo(h,t)&&s(h),l.isPointerDown=!1},p=h=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&qo(h,t)&&s(h),l.isPointerDown=!1};return c.addEventListener("mousedown",a,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",a,!0),c.addEventListener("touchend",p,!0),()=>{c.removeEventListener("mousedown",a,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",a,!0),c.removeEventListener("touchend",p,!0)}}},[t,r,a,s])}function qo(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function id(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function zl(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:id(e.onKeyDown),onKeyUp:id(e.onKeyUp)}}}function i0(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,o=u.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:a}=hr(),s=Pe((c,f,p,h)=>{p===0&&h===0||(o.current.didMove||(o.current.didMove=!0,t==null||t({type:"movestart",pointerType:f,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey})),n==null||n({type:"move",pointerType:f,deltaX:p,deltaY:h,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey}))}),l=Pe((c,f)=>{jr(),o.current.didMove&&(r==null||r({type:"moveend",pointerType:f,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey}))});return{moveProps:u.useMemo(()=>{let c={},f=()=>{Ns(),o.current.didMove=!1};if(typeof PointerEvent>"u"){let h=$=>{if($.button===0){var C,w,E,P;s($,"mouse",$.pageX-((E=(C=o.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&E!==void 0?E:0),$.pageY-((P=(w=o.current.lastPosition)===null||w===void 0?void 0:w.pageY)!==null&&P!==void 0?P:0)),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},b=$=>{$.button===0&&(l($,"mouse"),a(window,"mousemove",h,!1),a(window,"mouseup",b,!1))};c.onMouseDown=$=>{$.button===0&&(f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i(window,"mousemove",h,!1),i(window,"mouseup",b,!1))};let g=$=>{let C=[...$.changedTouches].findIndex(({identifier:N})=>N===o.current.id);if(C>=0){var w,E;let{pageX:N,pageY:v}=$.changedTouches[C];var P,k;s($,"touch",N-((P=(w=o.current.lastPosition)===null||w===void 0?void 0:w.pageX)!==null&&P!==void 0?P:0),v-((k=(E=o.current.lastPosition)===null||E===void 0?void 0:E.pageY)!==null&&k!==void 0?k:0)),o.current.lastPosition={pageX:N,pageY:v}}},y=$=>{[...$.changedTouches].findIndex(({identifier:w})=>w===o.current.id)>=0&&(l($,"touch"),o.current.id=null,a(window,"touchmove",g),a(window,"touchend",y),a(window,"touchcancel",y))};c.onTouchStart=$=>{if($.changedTouches.length===0||o.current.id!=null)return;let{pageX:C,pageY:w,identifier:E}=$.changedTouches[0];f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:C,pageY:w},o.current.id=E,i(window,"touchmove",g,!1),i(window,"touchend",y,!1),i(window,"touchcancel",y,!1)}}else{let h=g=>{if(g.pointerId===o.current.id){var y,$;let E=g.pointerType||"mouse";var C,w;s(g,E,g.pageX-((C=(y=o.current.lastPosition)===null||y===void 0?void 0:y.pageX)!==null&&C!==void 0?C:0),g.pageY-((w=($=o.current.lastPosition)===null||$===void 0?void 0:$.pageY)!==null&&w!==void 0?w:0)),o.current.lastPosition={pageX:g.pageX,pageY:g.pageY}}},b=g=>{if(g.pointerId===o.current.id){let y=g.pointerType||"mouse";l(g,y),o.current.id=null,a(window,"pointermove",h,!1),a(window,"pointerup",b,!1),a(window,"pointercancel",b,!1)}};c.onPointerDown=g=>{g.button===0&&o.current.id==null&&(f(),g.stopPropagation(),g.preventDefault(),o.current.lastPosition={pageX:g.pageX,pageY:g.pageY},o.current.id=g.pointerId,i(window,"pointermove",h,!1),i(window,"pointerup",b,!1),i(window,"pointercancel",b,!1))}}let p=(h,b,g)=>{f(),s(h,"keyboard",b,g),l(h,"keyboard")};return c.onKeyDown=h=>{switch(h.key){case"Left":case"ArrowLeft":h.preventDefault(),h.stopPropagation(),p(h,-1,0);break;case"Right":case"ArrowRight":h.preventDefault(),h.stopPropagation(),p(h,1,0);break;case"Up":case"ArrowUp":h.preventDefault(),h.stopPropagation(),p(h,0,-1);break;case"Down":case"ArrowDown":h.preventDefault(),h.stopPropagation(),p(h,0,1);break}},c},[o,i,a,s,l])}}function Bx(e,t){let{onScroll:n,isDisabled:r}=e,o=u.useCallback(i=>{i.ctrlKey||(i.preventDefault(),i.stopPropagation(),n&&n({deltaX:i.deltaX,deltaY:i.deltaY}))},[n]);Di(t,"wheel",r?void 0:o)}const Ix=500;function a0(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=Ix,accessibilityDescription:a}=e;const s=u.useRef();let{addGlobalListener:l,removeGlobalListener:d}=hr(),{pressProps:c}=sn({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),s.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...p,type:"longpress"}),s.current=void 0},i),p.pointerType==="touch")){let h=b=>{b.preventDefault()};l(p.target,"contextmenu",h,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{d(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){s.current&&clearTimeout(s.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=Yp(o&&!t?a:void 0);return{longPressProps:X(c,f)}}function kn(e){const t=ye(e);if(Si()==="virtual"){let n=t.activeElement;Wp(()=>{t.activeElement===n&&e.isConnected&&Pt(e)})}else Pt(e)}function Lx(e){const t=ft(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:a,visibility:s}=i(e);o=a!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function Vx(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function s0(e,t){return e.nodeName!=="#comment"&&Lx(e)&&Vx(e,t)&&(!e.parentElement||s0(e.parentElement,e))}const ad=u.createContext(null);let ve=null;function Ul(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=u.useRef(null),a=u.useRef(null),s=u.useRef([]),{parentNode:l}=u.useContext(ad)||{},d=u.useMemo(()=>new _s({scopeRef:s}),[s]);be(()=>{let p=l||ke.root;if(ke.getTreeNode(p.scopeRef)&&ve&&!Mi(ve,p.scopeRef)){let h=ke.getTreeNode(ve);h&&(p=h)}p.addChild(d),ke.addNode(d)},[d,l]),be(()=>{let p=ke.getTreeNode(s);p&&(p.contain=!!n)},[n]),be(()=>{var p;let h=(p=i.current)===null||p===void 0?void 0:p.nextSibling,b=[];for(;h&&h!==a.current;)b.push(h),h=h.nextSibling;s.current=b},[t]),Ux(s,r,n),jx(s,n),Gx(s,r,n),zx(s,o),u.useEffect(()=>{const p=ye(s.current?s.current[0]:void 0).activeElement;let h=null;if(Ge(p,s.current)){for(let b of ke.traverse())b.scopeRef&&Ge(p,b.scopeRef.current)&&(h=b);h===ke.getTreeNode(s)&&(ve=h.scopeRef)}},[s]),be(()=>()=>{var p,h,b;let g=(b=(h=ke.getTreeNode(s))===null||h===void 0||(p=h.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&b!==void 0?b:null;(s===ve||Mi(s,ve))&&(!g||ke.getTreeNode(g))&&(ve=g),ke.removeTreeNode(s)},[s]);let c=u.useMemo(()=>Ox(s),[]),f=u.useMemo(()=>({focusManager:c,parentNode:d}),[d,c]);return u.createElement(ad.Provider,{value:f},u.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,u.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function Ox(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||ye(n[0]).activeElement,l=n[0].previousElementSibling,d=Cn(n),c=Ze(d,{tabbable:o,accept:a},n);c.currentNode=Ge(s,n)?s:l;let f=c.nextNode();return!f&&i&&(c.currentNode=l,f=c.nextNode()),f&&et(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||ye(n[0]).activeElement,l=n[n.length-1].nextElementSibling,d=Cn(n),c=Ze(d,{tabbable:o,accept:a},n);c.currentNode=Ge(s,n)?s:l;let f=c.previousNode();return!f&&i&&(c.currentNode=l,f=c.previousNode()),f&&et(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Cn(n),a=Ze(i,{tabbable:r,accept:o},n);a.currentNode=n[0].previousElementSibling;let s=a.nextNode();return s&&et(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Cn(n),a=Ze(i,{tabbable:r,accept:o},n);a.currentNode=n[n.length-1].nextElementSibling;let s=a.previousNode();return s&&et(s,!0),s}}}const Hl=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],Nx=Hl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Hl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Kx=Hl.join(':not([hidden]):not([tabindex="-1"]),');function Cn(e){return e[0].parentElement}function _r(e){let t=ke.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function jx(e,t){let n=u.useRef(),r=u.useRef();be(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=ye(o?o[0]:void 0);let a=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!_r(e))return;let c=i.activeElement,f=e.current;if(!f||!Ge(c,f))return;let p=Cn(f),h=Ze(p,{tabbable:!0},f);if(!c)return;h.currentNode=c;let b=d.shiftKey?h.previousNode():h.nextNode();b||(h.currentNode=d.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,b=d.shiftKey?h.previousNode():h.nextNode()),d.preventDefault(),b&&et(b,!0)},s=d=>{(!ve||Mi(ve,e))&&Ge(d.target,e.current)?(ve=e,n.current=d.target):_r(e)&&!Ai(d.target,e)?n.current?n.current.focus():ve&&ve.current&&ki(ve.current):_r(e)&&(n.current=d.target)},l=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(i.activeElement&&_r(e)&&!Ai(i.activeElement,e))if(ve=e,i.body.contains(d.target)){var c;n.current=d.target,(c=n.current)===null||c===void 0||c.focus()}else ve.current&&ki(ve.current)})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(d=>d.addEventListener("focusin",s,!1)),o==null||o.forEach(d=>d.addEventListener("focusout",l,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(d=>d.removeEventListener("focusin",s,!1)),o==null||o.forEach(d=>d.removeEventListener("focusout",l,!1))}},[e,t]),be(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function l0(e){return Ai(e)}function Ge(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Ai(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of ke.traverse(ke.getTreeNode(t)))if(n&&Ge(e,n.current))return!0;return!1}function _x(e){return Ai(e,ve)}function Mi(e,t){var n;let r=(n=ke.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function et(e,t=!1){if(e!=null&&!t)try{kn(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function ki(e,t=!0){let n=e[0].previousElementSibling,r=Cn(e),o=Ze(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();t&&!i&&(r=Cn(e),o=Ze(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),et(i)}function zx(e,t){const n=u.useRef(t);u.useEffect(()=>{if(n.current){ve=e;const r=ye(e.current?e.current[0]:void 0);!Ge(r.activeElement,ve.current)&&e.current&&ki(e.current)}n.current=!1},[e])}function Ux(e,t,n){be(()=>{if(t||n)return;let r=e.current;const o=ye(r?r[0]:void 0);let i=a=>{let s=a.target;Ge(s,e.current)?ve=e:l0(s)||(ve=null)};return o.addEventListener("focusin",i,!1),r==null||r.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,n])}function Hx(e){let t=ke.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Gx(e,t,n){const r=u.useRef(typeof document<"u"?ye(e.current?e.current[0]:void 0).activeElement:null);be(()=>{let o=e.current;const i=ye(o?o[0]:void 0);if(!t||n)return;let a=()=>{(!ve||Mi(ve,e))&&Ge(i.activeElement,e.current)&&(ve=e)};return i.addEventListener("focusin",a,!1),o==null||o.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,n]),be(()=>{const o=ye(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!_r(e))return;let s=o.activeElement;if(!Ge(s,e.current))return;let l=ke.getTreeNode(e);if(!l)return;let d=l.nodeToRestore,c=Ze(o.body,{tabbable:!0});c.currentNode=s;let f=a.shiftKey?c.previousNode():c.nextNode();if((!d||!o.body.contains(d)||d===o.body)&&(d=void 0,l.nodeToRestore=void 0),(!f||!Ge(f,e.current))&&d){c.currentNode=d;do f=a.shiftKey?c.previousNode():c.nextNode();while(Ge(f,e.current));a.preventDefault(),a.stopPropagation(),f?et(f,!0):l0(d)?et(d,!0):s.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),be(()=>{const o=ye(e.current?e.current[0]:void 0);if(!t)return;let i=ke.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let s=ke.getTreeNode(e);if(!s)return;let l=s.nodeToRestore;if(t&&l&&(Ge(o.activeElement,e.current)||o.activeElement===o.body&&Hx(e))){let d=ke.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let c=d.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){et(c.nodeToRestore);return}c=c.parent}for(c=d.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&ke.getTreeNode(c.scopeRef)){ki(c.scopeRef.current,!0);return}c=c.parent}}})}}}},[e,t])}function Ze(e,t,n){let r=t!=null&&t.tabbable?Kx:Nx,o=ye(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var a;return!(t==null||(a=t.from)===null||a===void 0)&&a.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&s0(i)&&(!n||Ge(i,n))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function u0(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||ye(r).activeElement,d=Ze(r,{tabbable:i,accept:s});r.contains(l)&&(d.currentNode=l);let c=d.nextNode();return!c&&a&&(d.currentNode=r,c=d.nextNode()),c&&et(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||ye(r).activeElement,d=Ze(r,{tabbable:i,accept:s});if(r.contains(l))d.currentNode=l;else{let f=Ga(d);return f&&et(f,!0),f??null}let c=d.previousNode();if(!c&&a){d.currentNode=r;let f=Ga(d);if(!f)return null;c=f}return c&&et(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,s=Ze(r,{tabbable:o,accept:i}).nextNode();return s&&et(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=Ze(r,{tabbable:o,accept:i}),s=Ga(a);return s&&et(s,!0),s??null}}}function Ga(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Gl{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new _s({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ge(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Gl;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new _s({scopeRef:null}),this.fastMap.set(null,this.root)}}class _s{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let ke=new Gl;function Ye(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=u.useRef({isFocused:!1,isFocusVisible:t||lr()}),[i,a]=u.useState(!1),[s,l]=u.useState(()=>o.current.isFocused&&o.current.isFocusVisible),d=u.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),c=u.useCallback(h=>{o.current.isFocused=h,a(h),d()},[d]);Rx(h=>{o.current.isFocusVisible=h,d()},[],{isTextInput:n});let{focusProps:f}=ea({isDisabled:r,onFocusChange:c}),{focusWithinProps:p}=br({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:s,focusProps:r?p:f}}let Wx=u.createContext(null);function Yx(e){let t=u.useContext(Wx)||{};jl(t,e);let{ref:n,...r}=t;return r}function mr(e,t){let{focusProps:n}=ea(e),{keyboardProps:r}=zl(e),o=X(n,r),i=Yx(t),a=e.isDisabled?{}:i,s=u.useRef(e.autoFocus);return u.useEffect(()=>{s.current&&t.current&&kn(t.current),s.current=!1},[t]),{focusableProps:X({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}function qx(e,t){let n=t==null?void 0:t.isDisabled,[r,o]=u.useState(!1);return be(()=>{if(e!=null&&e.current&&!n){let i=()=>{if(e.current){let s=Ze(e.current,{tabbable:!0});o(!!s.nextNode())}};i();let a=new MutationObserver(i);return a.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{a.disconnect()}}}),n?!1:r}var c0=globalThis!=null&&globalThis.document?u.useLayoutEffect:u.useEffect;function Zx(e={}){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:a,sizes:s,ignoreFallback:l}=e,[d,c]=u.useState("pending");u.useEffect(()=>{c(n?"loading":"pending")},[n]);const f=u.useRef(),p=u.useCallback(()=>{if(!n)return;h();const b=new Image;b.src=n,a&&(b.crossOrigin=a),r&&(b.srcset=r),s&&(b.sizes=s),t&&(b.loading=t),b.onload=g=>{h(),c("loaded"),o==null||o(g)},b.onerror=g=>{h(),c("failed"),i==null||i(g)},f.current=b},[n,a,r,s,o,i,t]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return c0(()=>{if(!l)return d==="loading"&&p(),()=>{h()}},[d,p,l]),l?"loaded":d}function Xx(e={}){var t,n,r,o,i;const a=Mp(),s=!!a,{as:l,ref:d,src:c,name:f,icon:p,classNames:h,fallback:b,alt:g=f||"avatar",imgRef:y,color:$=(t=a==null?void 0:a.color)!=null?t:"default",radius:C=(n=a==null?void 0:a.radius)!=null?n:"full",size:w=(r=a==null?void 0:a.size)!=null?r:"md",isBordered:E=(o=a==null?void 0:a.isBordered)!=null?o:!1,isDisabled:P=(i=a==null?void 0:a.isDisabled)!=null?i:!1,isFocusable:k=!1,getInitials:N=R$,ignoreFallback:v=!1,showFallback:L=!1,ImgComponent:F="img",imgProps:A,className:B,onError:R,...I}=e,K=l||"span",V=As(d),T=As(y),{isFocusVisible:G,isFocused:Y,focusProps:H}=Ye(),{isHovered:D,hoverProps:O}=Fe({isDisabled:P}),J=Zx({src:c,onError:R,ignoreFallback:v})==="loaded",Q=(!c||!J)&&L,re=u.useMemo(()=>{var se;return I3({color:$,radius:C,size:w,isBordered:E,isDisabled:P,isInGroup:s,isInGridGroup:(se=a==null?void 0:a.isGrid)!=null?se:!1})},[$,C,w,E,P,s,a==null?void 0:a.isGrid]),z=sr(h==null?void 0:h.base,B),q=u.useMemo(()=>k||l==="button",[k,l]),te=u.useCallback((se={})=>({ref:V,tabIndex:q?0:-1,"data-hover":Et(D),"data-focus":Et(Y),"data-focus-visible":Et(G),className:re.base({class:sr(z,se==null?void 0:se.className)}),...X(I,O,q?H:{})}),[q,re,z,H,I]),ae=u.useCallback((se={})=>({ref:T,src:c,"data-loaded":Et(J),className:re.img({class:h==null?void 0:h.img}),...X(A,se)}),[re,J,A,c,T]);return{Component:K,ImgComponent:F,src:c,alt:g,icon:p,name:f,imgRef:T,slots:re,classNames:h,fallback:b,isImgLoaded:J,showFallback:Q,ignoreFallback:v,getInitials:N,getAvatarProps:te,getImageProps:ae}}const Jx=Symbol.for("react-aria.i18n.locale"),Qx=Symbol.for("react-aria.i18n.strings");let Hn;class In{getStringForLocale(t,n){let o=this.getStringsForLocale(n)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}getStringsForLocale(t){let n=this.strings[t];return n||(n=e5(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[Jx];if(Hn===void 0){let o=window[Qx];if(!o)return null;Hn={};for(let i in o)Hn[i]=new In({[n]:o[i]},n)}let r=Hn==null?void 0:Hn[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings={...t},this.defaultLocale=n}}function e5(e,t,n="en-US"){if(t[e])return t[e];let r=t5(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function t5(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const sd=new Map,ld=new Map;class d0{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,a=sd.get(i);a||(a=new Intl.PluralRules(this.locale,{type:r}),sd.set(i,a));let s=a.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=ld.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),ld.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}function Nt(e,t){return e-t*Math.floor(e/t)}const f0=1721426;function Dn(e,t,n,r){t=vo(e,t);let o=t-1,i=-2;return n<=2?i=0:nn(t)&&(i=-1),f0-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+i+r)}function nn(e){return e%4===0&&(e%100!==0||e%400===0)}function vo(e,t){return e==="BC"?1-t:t}function na(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const n5={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class nt{fromJulianDay(t){let n=t,r=n-f0,o=Math.floor(r/146097),i=Nt(r,146097),a=Math.floor(i/36524),s=Nt(i,36524),l=Math.floor(s/1461),d=Nt(s,1461),c=Math.floor(d/365),f=o*400+a*100+l*4+c+(a!==4&&c!==4?1:0),[p,h]=na(f),b=n-Dn(p,h,1,1),g=2;n<Dn(p,h,3,1)?g=0:nn(h)&&(g=1);let y=Math.floor(((b+g)*12+373)/367),$=n-Dn(p,h,y,1)+1;return new Re(p,h,y,$)}toJulianDay(t){return Dn(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return n5[nn(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return nn(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}function p0(e){return Lt(Date.now(),e)}function r5(e){return y0(p0(e))}function h0(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function b0(e,t){return ud(e)-ud(t)}function ud(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Wa=null;function Wl(){return Wa==null&&(Wa=new Intl.DateTimeFormat().resolvedOptions().timeZone),Wa}function o5(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function i5(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function ur(e){e=Xe(e,new nt);let t=vo(e.era,e.year);return m0(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function m0(e,t,n,r,o,i,a){let s=new Date;return s.setUTCHours(r,o,i,a),s.setUTCFullYear(e,t-1,n),s.getTime()}function zs(e,t){if(t==="UTC")return 0;if(e>0&&t===Wl())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:o,hour:i,minute:a,second:s}=g0(e,t);return m0(n,r,o,i,a,s,0)-Math.floor(e/1e3)*1e3}const cd=new Map;function g0(e,t){let n=cd.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),cd.set(t,n));let r=n.formatToParts(new Date(e)),o={};for(let i of r)i.type!=="literal"&&(o[i.type]=i.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const dd=864e5;function a5(e,t,n,r){return(n===r?[n]:[n,r]).filter(i=>s5(e,t,i))}function s5(e,t,n){let r=g0(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function It(e,t,n="compatible"){let r=ln(e);if(t==="UTC")return ur(r);if(t===Wl()&&n==="compatible"){r=Xe(r,new nt);let l=new Date,d=vo(r.era,r.year);return l.setFullYear(d,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let o=ur(r),i=zs(o-dd,t),a=zs(o+dd,t),s=a5(r,t,o-i,o-a);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-i,o-a);case"compatible":case"later":return Math.max(o-i,o-a);case"reject":throw new RangeError("No such absolute time found")}}function v0(e,t,n="compatible"){return new Date(It(e,t,n))}function Lt(e,t){let n=zs(e,t),r=new Date(e+n),o=r.getUTCFullYear(),i=r.getUTCMonth()+1,a=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),d=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new io(o,i,a,t,n,s,l,d,c)}function y0(e){return new Re(e.calendar,e.era,e.year,e.month,e.day)}function ln(e,t){let n=0,r=0,o=0,i=0;if("timeZone"in e)({hour:n,minute:r,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:o,millisecond:i}=t),new Ri(e.calendar,e.era,e.year,e.month,e.day,n,r,o,i)}function fd(e){return new oa(e.hour,e.minute,e.second,e.millisecond)}function Xe(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Rn(r),r}function $0(e,t,n){if(e instanceof io)return e.timeZone===t?e:u5(e,t);let r=It(e,t,n);return Lt(r,t)}function l5(e){let t=ur(e)-e.offset;return new Date(t)}function u5(e,t){let n=ur(e)-e.offset;return Xe(Lt(n,t),e.calendar)}const Br=36e5;function ra(e,t){let n=e.copy(),r="hour"in n?D0(n,t):0;Us(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Hs(n),x0(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,c5(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let o=n.calendar.getYearsInEra(n);if(n.year>o){var i,a;let l=(i=(a=n.calendar).isInverseEra)===null||i===void 0?void 0:i.call(a,n);n.year=o,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Us(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Hs(e){for(;e.month<1;)Us(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Us(e,1)}function c5(e){for(;e.day<1;)e.month--,Hs(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Hs(e)}function x0(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Rn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),x0(e)}function Yl(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function w0(e,t){return ra(e,Yl(t))}function ql(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Rn(n),n}function oo(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),C0(n),n}function d5(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Zo(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Zo(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Zo(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Zo(e.hour,24),t}function C0(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Zo(e,t){let n=e%t;return n<0&&(n+=t),n}function D0(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,d5(e)}function E0(e,t){let n=e.copy();return D0(n,t),n}function f5(e,t){return E0(e,Yl(t))}function Zl(e,t,n,r){let o=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Vt(l,n,0,s.length-1,r==null?void 0:r.round),o.era=s[l],Rn(o);break}case"year":var i,a;!((i=(a=o.calendar).isInverseEra)===null||i===void 0)&&i.call(a,o)&&(n=-n),o.year=Vt(e.year,n,-1/0,9999,r==null?void 0:r.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=Vt(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":o.day=Vt(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),Rn(o),o}function Xl(e,t,n,r){let o=e.copy();switch(t){case"hour":{let i=e.hour,a=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=i>=12;a=l?12:0,s=l?23:11}o.hour=Vt(i,n,a,s,r==null?void 0:r.round);break}case"minute":o.minute=Vt(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":o.second=Vt(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":o.millisecond=Vt(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function Vt(e,t,n,r,o=!1){if(o){e+=Math.sign(t),e<n&&(e=r);let i=Math.abs(t);t>0?e=Math.ceil(e/i)*i:e=Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function P0(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let o=ra(ln(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=It(o,e.timeZone)}else n=ur(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Lt(n,e.timeZone);return Xe(r,e.calendar)}function p5(e,t){return P0(e,Yl(t))}function h5(e,t,n,r){switch(t){case"hour":{let o=0,i=23;if((r==null?void 0:r.hourCycle)===12){let b=e.hour>=12;o=b?12:0,i=b?23:11}let a=ln(e),s=Xe(oo(a,{hour:o}),new nt),l=[It(s,e.timeZone,"earlier"),It(s,e.timeZone,"later")].filter(b=>Lt(b,e.timeZone).day===s.day)[0],d=Xe(oo(a,{hour:i}),new nt),c=[It(d,e.timeZone,"earlier"),It(d,e.timeZone,"later")].filter(b=>Lt(b,e.timeZone).day===d.day).pop(),f=ur(e)-e.offset,p=Math.floor(f/Br),h=f%Br;return f=Vt(p,n,Math.floor(l/Br),Math.floor(c/Br),r==null?void 0:r.round)*Br+h,Xe(Lt(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Xl(e,t,n,r);case"era":case"year":case"month":case"day":{let o=Zl(ln(e),t,n,r),i=It(o,e.timeZone);return Xe(Lt(i,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function b5(e,t,n){let r=ln(e),o=oo(ql(r,t),t);if(o.compare(r)===0)return e;let i=It(o,e.timeZone,n);return Xe(Lt(i,e.timeZone),e.calendar)}function S0(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function T0(e){let t=Xe(e,new nt);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function A0(e){return`${T0(e)}T${S0(e)}`}function m5(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function g5(e){return`${A0(e)}${m5(e.offset)}[${e.timeZone}]`}function Jl(e){let t=typeof e[0]=="object"?e.shift():new nt,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),o=e.shift(),i=e.shift();return[t,n,r,o,i]}var v5=new WeakMap;class Re{copy(){return this.era?new Re(this.calendar,this.era,this.year,this.month,this.day):new Re(this.calendar,this.year,this.month,this.day)}add(t){return ra(this,t)}subtract(t){return w0(this,t)}set(t){return ql(this,t)}cycle(t,n,r){return Zl(this,t,n,r)}toDate(t){return v0(this,t)}toString(){return T0(this)}compare(t){return h0(this,t)}constructor(...t){go(this,v5,{writable:!0,value:void 0});let[n,r,o,i,a]=Jl(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,Rn(this)}}var y5=new WeakMap;class oa{copy(){return new oa(this.hour,this.minute,this.second,this.millisecond)}add(t){return E0(this,t)}subtract(t){return f5(this,t)}set(t){return oo(this,t)}cycle(t,n,r){return Xl(this,t,n,r)}toString(){return S0(this)}compare(t){return b0(this,t)}constructor(t=0,n=0,r=0,o=0){go(this,y5,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=o,C0(this)}}var $5=new WeakMap;class Ri{copy(){return this.era?new Ri(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Ri(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return ra(this,t)}subtract(t){return w0(this,t)}set(t){return ql(oo(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Zl(this,t,n,r);default:return Xl(this,t,n,r)}}toDate(t,n){return v0(this,t,n)}toString(){return A0(this)}compare(t){let n=h0(this,t);return n===0?b0(this,ln(t)):n}constructor(...t){go(this,$5,{writable:!0,value:void 0});let[n,r,o,i,a]=Jl(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Rn(this)}}var x5=new WeakMap;class io{copy(){return this.era?new io(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new io(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return P0(this,t)}subtract(t){return p5(this,t)}set(t,n){return b5(this,t,n)}cycle(t,n,r){return h5(this,t,n,r)}toDate(){return l5(this)}toString(){return g5(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-$0(t,this.timeZone).toDate().getTime()}constructor(...t){go(this,x5,{writable:!0,value:void 0});let[n,r,o,i,a]=Jl(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Rn(this)}}const or=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],w5=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],di=[1867,1911,1925,1988,2018],en=["meiji","taisho","showa","heisei","reiwa"];function pd(e){const t=or.findIndex(([n,r,o])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<o);return t===-1?or.length-1:t===0?0:t-1}function Ya(e){let t=di[en.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Re(e.year+t,e.month,e.day)}class C5 extends nt{fromJulianDay(t){let n=super.fromJulianDay(t),r=pd(n);return new Re(this,en[r],n.year-di[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Ya(t))}balanceDate(t){let n=Ya(t),r=pd(n);en[r]!==t.era&&(t.era=en[r],t.year=n.year-di[r]),this.constrainDate(t)}constrainDate(t){let n=en.indexOf(t.era),r=w5[n];if(r!=null){let[o,i,a]=r,s=o-di[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(i,t.month),t.month===i&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,o,i]=or[n];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(i,t.day))}}getEras(){return en}getYearsInEra(t){let n=en.indexOf(t.era),r=or[n],o=or[n+1];if(o==null)return 9999-r[0]+1;let i=o[0]-r[0];return(t.month<o[1]||t.month===o[1]&&t.day<o[2])&&i++,i}getDaysInMonth(t){return super.getDaysInMonth(Ya(t))}getMinimumMonthInYear(t){let n=hd(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=hd(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function hd(e){if(e.year===1){let t=en.indexOf(e.era);return or[t]}}const M0=-543;class D5 extends nt{fromJulianDay(t){let n=super.fromJulianDay(t),r=vo(n.era,n.year);return new Re(this,r-M0,n.month,n.day)}toJulianDay(t){return super.toJulianDay(bd(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(bd(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function bd(e){let[t,n]=na(e.year+M0);return new Re(t,n,e.month,e.day)}const Fi=1911;function k0(e){return e.era==="minguo"?e.year+Fi:1-e.year+Fi}function md(e){let t=e-Fi;return t>0?["minguo",t]:["before_minguo",1-t]}class E5 extends nt{fromJulianDay(t){let n=super.fromJulianDay(t),r=vo(n.era,n.year),[o,i]=md(r);return new Re(this,o,i,n.month,n.day)}toJulianDay(t){return super.toJulianDay(gd(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=md(k0(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(gd(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Fi}constructor(...t){super(...t),this.identifier="roc"}}function gd(e){let[t,n]=na(k0(e));return new Re(t,n,e.month,e.day)}const P5=1948321;function S5(e){let t=e>0?e-474:e-473,n=Nt(t,2820)+474;return Nt((n+38)*31,128)<31}function Xo(e,t,n){let r=e>0?e-474:e-473,o=Nt(r,2820)+474,i=t<=7?31*(t-1):30*(t-1)+6;return P5-1+1029983*Math.floor(r/2820)+365*(o-1)+Math.floor((31*o-5)/128)+i+n}class T5{fromJulianDay(t){let n=t-Xo(475,1,1),r=Math.floor(n/1029983),o=Nt(n,1029983),i=o===1029982?2820:Math.floor((128*o+46878)/46751),a=474+2820*r+i;a<=0&&a--;let s=t-Xo(a,1,1)+1,l=s<=186?Math.ceil(s/31):Math.ceil((s-6)/31),d=t-Xo(a,l,1)+1;return new Re(this,a,l,d)}toJulianDay(t){return Xo(t.year,t.month,t.day)}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||S5(t.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const qa=78,vd=80;class A5 extends nt{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-qa,o=t-Dn(n.era,n.year,1,1),i;o<vd?(r--,i=nn(n.year-1)?31:30,o+=i+155+90+10):(i=nn(n.year)?31:30,o-=vd);let a,s;if(o<i)a=1,s=o+1;else{let l=o-i;l<155?(a=Math.floor(l/31)+2,s=l%31+1):(l-=155,a=Math.floor(l/30)+7,s=l%30+1)}return new Re(this,r,a,s)}toJulianDay(t){let n=t.year+qa,[r,o]=na(n),i,a;return nn(o)?(i=31,a=Dn(r,o,3,21)):(i=30,a=Dn(r,o,3,22)),t.month===1?a+t.day-1:(a+=i+Math.min(t.month-2,5)*31,t.month>=8&&(a+=(t.month-7)*30),a+=t.day-1,a)}getDaysInMonth(t){return t.month===1&&nn(t.year+qa)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Bi=1948440,yd=1948439,ut=1300,Gn=1600,M5=460322;function Ii(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function R0(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+Ii(t,r,1,1)))/29.5)+1),i=n-Ii(t,r,o,1)+1;return new Re(e,r,o,i)}function $d(e){return(14+11*e)%30<11}class Ql{fromJulianDay(t){return R0(this,Bi,t)}toJulianDay(t){return Ii(Bi,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&$d(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return $d(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class k5 extends Ql{fromJulianDay(t){return R0(this,yd,t)}toJulianDay(t){return Ii(yd,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const R5="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Gs,ir;function fi(e){return M5+ir[e-ut]}function zr(e,t){let n=e-ut,r=1<<11-(t-1);return Gs[n]&r?30:29}function xd(e,t){let n=fi(e);for(let r=1;r<t;r++)n+=zr(e,r);return n}function wd(e){return ir[e+1-ut]-ir[e-ut]}class F5 extends Ql{fromJulianDay(t){let n=t-Bi,r=fi(ut),o=fi(Gn);if(n<r||n>o)return super.fromJulianDay(t);{let i=ut-1,a=1,s=1;for(;s>0;){i++,s=n-fi(i)+1;let l=wd(i);if(s===l){a=12;break}else if(s<l){let d=zr(i,a);for(a=1;s>d;)s-=d,a++,d=zr(i,a);break}}return new Re(this,i,a,n-xd(i,a)+1)}}toJulianDay(t){return t.year<ut||t.year>Gn?super.toJulianDay(t):Bi+xd(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ut||t.year>Gn?super.getDaysInMonth(t):zr(t.year,t.month)}getDaysInYear(t){return t.year<ut||t.year>Gn?super.getDaysInYear(t):wd(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Gs||(Gs=new Uint16Array(Uint8Array.from(atob(R5),t=>t.charCodeAt(0)).buffer)),!ir){ir=new Uint32Array(Gn-ut+1);let t=0;for(let n=ut;n<=Gn;n++){ir[n-ut]=t;for(let r=1;r<=12;r++)t+=zr(n,r)}}}}const Cd=347997,F0=1080,B0=24*F0,B5=29,I5=12*F0+793,L5=B5*B0+I5;function $n(e){return Nt(e*7+1,19)<7}function pi(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Nt(3*(r+1),7)<3&&(r+=1),r}function V5(e){let t=pi(e-1),n=pi(e);return pi(e+1)-n===356?2:n-t===382?1:0}function Wr(e){return pi(e)+V5(e)}function I0(e){return Wr(e+1)-Wr(e)}function O5(e){let t=I0(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Jo(e,t){if(t>=6&&!$n(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=O5(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?$n(e)?30:0:30}class N5{fromJulianDay(t){let n=t-Cd,r=n*B0/L5,o=Math.floor((19*r+234)/235)+1,i=Wr(o),a=Math.floor(n-i);for(;a<1;)o--,i=Wr(o),a=Math.floor(n-i);let s=1,l=0;for(;l<a;)l+=Jo(o,s),s++;s--,l-=Jo(o,s);let d=a-l;return new Re(this,o,s,d)}toJulianDay(t){let n=Wr(t.year);for(let r=1;r<t.month;r++)n+=Jo(t.year,r);return n+t.day+Cd}getDaysInMonth(t){return Jo(t.year,t.month)}getMonthsInYear(t){return $n(t.year)?13:12}getDaysInYear(t){return I0(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&($n(n.year)&&!$n(t.year)&&n.month>6?t.month--:!$n(n.year)&&$n(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Ws=1723856,Dd=1824665,Ys=5500;function Li(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function eu(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Li(e,n,1,1))/30),o=t+1-Li(e,n,r,1);return[n,r,o]}function L0(e){return Math.floor(e%4/3)}function V0(e,t){return t%13!==0?30:L0(e)+5}class tu{fromJulianDay(t){let[n,r,o]=eu(Ws,t),i="AM";return n<=0&&(i="AA",n+=Ys),new Re(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Ys),Li(Ws,n,t.month,t.day)}getDaysInMonth(t){return V0(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+L0(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class K5 extends tu{fromJulianDay(t){let[n,r,o]=eu(Ws,t);return n+=Ys,new Re(this,"AA",n,r,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class j5 extends tu{fromJulianDay(t){let[n,r,o]=eu(Dd,t),i="CE";return n<=0&&(i="BCE",n=1-n),new Re(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Li(Dd,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),V0(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function O0(e){switch(e){case"buddhist":return new D5;case"ethiopic":return new tu;case"ethioaa":return new K5;case"coptic":return new j5;case"hebrew":return new N5;case"indian":return new A5;case"islamic-civil":return new Ql;case"islamic-tbla":return new k5;case"islamic-umalqura":return new F5;case"japanese":return new C5;case"persian":return new T5;case"roc":return new E5;case"gregory":default:return new nt}}let Za=new Map;class Yr{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),o=this.formatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return U5()&&(this.resolvedHourCycle||(this.resolvedHourCycle=H5(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=N0(t,n),this.options=n}}const _5={true:{ja:"h11"},false:{}};function N0(e,t={}){if(typeof t.hour12=="boolean"&&z5()){t={...t};let o=_5[String(t.hour12)][e.split("-")[0]],i=t.hour12?"h12":"h23";t.hourCycle=o??i,delete t.hour12}let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(Za.has(n))return Za.get(n);let r=new Intl.DateTimeFormat(e,t);return Za.set(n,r),r}let Xa=null;function z5(){return Xa==null&&(Xa=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Xa}let Ja=null;function U5(){return Ja==null&&(Ja=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Ja}function H5(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=N0(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(i=>i.type==="hour").value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(i=>i.type==="hour").value,10);if(r===0&&o===23)return"h23";if(r===24&&o===23)return"h24";if(r===0&&o===11)return"h11";if(r===12&&o===11)return"h12";throw new Error("Unexpected hour cycle result")}let Qa=new Map,qs=!1;try{qs=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Vi=!1;try{Vi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const K0={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Oi{format(t){let n="";if(!qs&&this.options.signDisplay!=null?n=W5(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Vi){var r;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return n;let s=(r=K0[o])===null||r===void 0?void 0:r[i];n+=s[a]||s.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!qs&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Vi&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=G5(t,n),this.options=n}}function G5(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Vi){var r;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=K0[a])===null||r===void 0)&&r[s]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(Qa.has(o))return Qa.get(o);let i=new Intl.NumberFormat(e,t);return Qa.set(o,i),i}function W5(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(n)}}const Y5=new RegExp("^.*\\(.*\\).*$"),q5=["latn","arab","hanidec"];class nu{parse(t){return es(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return es(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return es(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const Ed=new Map;function es(e,t,n){let r=Pd(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of q5)if(o!==r.options.numberingSystem){let i=Pd(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(n))return i}}return r}function Pd(e,t){let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),r=Ed.get(n);return r||(r=new Z5(e,t),Ed.set(n,r)),r}class Z5{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=Qo(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let o=n.indexOf("-");n=n.replace("-","");let i=n.indexOf(".");i===-1&&(i=n.length),n=n.replace(".",""),i-2===0?n=`0.${n}`:i-2===-1?n=`0.0${n}`:i-2===-2?n="0.00":n=`${n.slice(0,i-2)}.${n.slice(i-2)}`,o>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){let o={...this.options,style:"decimal",minimumFractionDigits:Math.min(this.options.minimumFractionDigits+2,20),maximumFractionDigits:Math.min(this.options.maximumFractionDigits+2,20)};return new nu(this.locale,o).parse(new Oi(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&Y5.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(t=Qo(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=Qo(t,".",String.fromCharCode(8239))),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=Qo(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=J5(t,this.formatter,this.options,n);var r,o;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const Sd=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),X5=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function J5(e,t,n,r){var o,i,a,s;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21}),d=l.formatToParts(-10000.111),c=l.formatToParts(10000.111),f=X5.map(F=>l.formatToParts(F));var p;let h=(p=(o=d.find(F=>F.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&p!==void 0?p:"-",b=(i=c.find(F=>F.type==="plusSign"))===null||i===void 0?void 0:i.value;!b&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(b="+");let y=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(F=>F.type==="decimal"))===null||a===void 0?void 0:a.value,$=(s=d.find(F=>F.type==="group"))===null||s===void 0?void 0:s.value,C=d.filter(F=>!Sd.has(F.type)).map(F=>Td(F.value)),w=f.flatMap(F=>F.filter(A=>!Sd.has(A.type)).map(A=>Td(A.value))),E=[...new Set([...C,...w])].sort((F,A)=>A.length-F.length),P=E.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${E.join("|")}|[\\p{White_Space}]`,"gu"),k=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),N=new Map(k.map((F,A)=>[F,A])),v=new RegExp(`[${k.join("")}]`,"g");return{minusSign:h,plusSign:b,decimal:y,group:$,literals:P,numeral:v,index:F=>String(N.get(F))}}function Qo(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Td(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Q5=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),e2=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function t2(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Q5.has(n.script)}let t=e.split("-")[0];return e2.has(t)}const n2=Symbol.for("react-aria.i18n.locale");function j0(){let e=typeof window<"u"&&window[n2]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:t2(e)?"rtl":"ltr"}}let Zs=j0(),Ur=new Set;function Ad(){Zs=j0();for(let e of Ur)e(Zs)}function r2(){let e=At(),[t,n]=u.useState(Zs);return u.useEffect(()=>(Ur.size===0&&window.addEventListener("languagechange",Ad),Ur.add(n),()=>{Ur.delete(n),Ur.size===0&&window.removeEventListener("languagechange",Ad)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const o2=u.createContext(null);function Ve(){let e=r2();return u.useContext(o2)||e}const Md=new WeakMap;function i2(e){let t=Md.get(e);return t||(t=new In(e),Md.set(e,t)),t}function _0(e,t){return t&&In.getGlobalDictionaryForPackage(t)||i2(e)}function gr(e,t){let{locale:n}=Ve(),r=_0(e,t);return u.useMemo(()=>new d0(n,r),[n,r])}function ei(e){e=px(e??{},a2);let{locale:t}=Ve();return u.useMemo(()=>new Yr(t,e),[t,e])}function a2(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o of n)if(t[o]!==e[o])return!1;return!0}function Ni(e={}){let{locale:t}=Ve();return u.useMemo(()=>new Oi(t,e),[t,e])}let ts=new Map;function ru(e){let{locale:t}=Ve(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(ts.has(n))return ts.get(n);let r=new Intl.Collator(t,e);return ts.set(n,r),r}function z0(e){let t=ru({usage:"search",...e}),n=u.useCallback((i,a)=>a.length===0?!0:(i=i.normalize("NFC"),a=a.normalize("NFC"),t.compare(i.slice(0,a.length),a)===0),[t]),r=u.useCallback((i,a)=>a.length===0?!0:(i=i.normalize("NFC"),a=a.normalize("NFC"),t.compare(i.slice(-a.length),a)===0),[t]),o=u.useCallback((i,a)=>{if(a.length===0)return!0;i=i.normalize("NFC"),a=a.normalize("NFC");let s=0,l=a.length;for(;s+l<=i.length;s++){let d=i.slice(s,s+l);if(t.compare(a,d)===0)return!0}return!1},[t]);return u.useMemo(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])}var U0={};U0={dismiss:"تجاهل"};var H0={};H0={dismiss:"Отхвърляне"};var G0={};G0={dismiss:"Odstranit"};var W0={};W0={dismiss:"Luk"};var Y0={};Y0={dismiss:"Schließen"};var q0={};q0={dismiss:"Απόρριψη"};var Z0={};Z0={dismiss:"Dismiss"};var X0={};X0={dismiss:"Descartar"};var J0={};J0={dismiss:"Lõpeta"};var Q0={};Q0={dismiss:"Hylkää"};var eh={};eh={dismiss:"Rejeter"};var th={};th={dismiss:"התעלם"};var nh={};nh={dismiss:"Odbaci"};var rh={};rh={dismiss:"Elutasítás"};var oh={};oh={dismiss:"Ignora"};var ih={};ih={dismiss:"閉じる"};var ah={};ah={dismiss:"무시"};var sh={};sh={dismiss:"Atmesti"};var lh={};lh={dismiss:"Nerādīt"};var uh={};uh={dismiss:"Lukk"};var ch={};ch={dismiss:"Negeren"};var dh={};dh={dismiss:"Zignoruj"};var fh={};fh={dismiss:"Descartar"};var ph={};ph={dismiss:"Dispensar"};var hh={};hh={dismiss:"Revocare"};var bh={};bh={dismiss:"Пропустить"};var mh={};mh={dismiss:"Zrušiť"};var gh={};gh={dismiss:"Opusti"};var vh={};vh={dismiss:"Odbaci"};var yh={};yh={dismiss:"Avvisa"};var $h={};$h={dismiss:"Kapat"};var xh={};xh={dismiss:"Скасувати"};var wh={};wh={dismiss:"取消"};var Ch={};Ch={dismiss:"關閉"};const kd={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function s2(e={}){let{style:t,isFocusable:n}=e,[r,o]=u.useState(!1),{focusWithinProps:i}=br({isDisabled:!n,onFocusWithinChange:s=>o(s)}),a=u.useMemo(()=>r?t:t?{...kd,...t}:kd,[r]);return{visuallyHiddenProps:{...i,style:a}}}function ia(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:a}=s2(e);return u.createElement(n,X(i,a),t)}function l2(e){return e&&e.__esModule?e.default:e}const Jn={top:"top",bottom:"top",left:"left",right:"left"},Ki={top:"bottom",bottom:"top",left:"right",right:"left"},u2={top:"left",left:"top"},Xs={top:"height",left:"width"},Dh={width:"totalWidth",height:"totalHeight"},ti={};let Je=typeof document<"u"&&window.visualViewport;function Rd(e){let t=0,n=0,r=0,o=0,i=0,a=0,s={},l=(Je==null?void 0:Je.scale)>1;if(e.tagName==="BODY"){let f=document.documentElement;r=f.clientWidth,o=f.clientHeight;var d;t=(d=Je==null?void 0:Je.width)!==null&&d!==void 0?d:r;var c;n=(c=Je==null?void 0:Je.height)!==null&&c!==void 0?c:o,s.top=f.scrollTop||e.scrollTop,s.left=f.scrollLeft||e.scrollLeft,Je&&(i=Je.offsetTop,a=Je.offsetLeft)}else({width:t,height:n,top:i,left:a}=ar(e)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,o=n;return Ol()&&(e.tagName==="BODY"||e.tagName==="HTML")&&l&&(s.top=0,s.left=0,i=Je.pageTop,a=Je.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:o,scroll:s,top:i,left:a}}function c2(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Fd(e,t,n,r,o,i,a){let s=o.scroll[e],l=r[Xs[e]],d=r.scroll[Jn[e]]+i,c=l+r.scroll[Jn[e]]-i,f=t-s+a[e]-r[Jn[e]],p=t-s+n+a[e]-r[Jn[e]];return f<d?d-f:p>c?Math.max(c-p,d-f):0}function d2(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Bd(e){if(ti[e])return ti[e];let[t,n]=e.split(" "),r=Jn[t]||"right",o=u2[r];Jn[n]||(n="center");let i=Xs[r],a=Xs[o];return ti[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:a},ti[e]}function ns(e,t,n,r,o,i,a,s,l,d){let{placement:c,crossPlacement:f,axis:p,crossAxis:h,size:b,crossSize:g}=r,y={};y[h]=e[h],f==="center"?y[h]+=(e[g]-n[g])/2:f!==h&&(y[h]+=e[g]-n[g]),y[h]+=i;const $=e[h]-n[g]+l+d,C=e[h]+e[g]-l-d;if(y[h]=pt(y[h],$,C),c===p){const w=s?a[b]:t[Dh[b]];y[Ki[p]]=Math.floor(w-e[p]+o)}else y[p]=Math.floor(e[p]+e[b]+o);return y}function f2(e,t,n,r,o,i,a,s){const l=r?n.height:t[Dh.height];let d=e.top!=null?n.top+e.top:n.top+(l-e.bottom-a),c=s!=="top"?Math.max(0,t.height+t.top+t.scroll.top-d-(o.top+o.bottom+i)):Math.max(0,d+a-(t.top+t.scroll.top)-(o.top+o.bottom+i));return Math.min(t.height-i*2,c)}function Id(e,t,n,r,o,i){let{placement:a,axis:s,size:l}=i;return a===s?Math.max(0,n[s]-e[s]-e.scroll[s]+t[s]-r[s]-r[Ki[s]]-o):Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-r[s]-r[Ki[s]]-o)}function p2(e,t,n,r,o,i,a,s,l,d,c,f,p,h,b,g){let y=Bd(e),{size:$,crossAxis:C,crossSize:w,placement:E,crossPlacement:P}=y,k=ns(t,s,n,y,c,f,d,p,b,g),N=c,v=Id(s,d,t,o,i+c,y);if(a&&r[$]>v){let Y=Bd(`${Ki[E]} ${P}`),H=ns(t,s,n,Y,c,f,d,p,b,g);Id(s,d,t,o,i+c,Y)>v&&(y=Y,k=H,N=c)}let L="bottom";y.axis==="top"?y.placement==="top"?L="top":y.placement==="bottom"&&(L="bottom"):y.crossAxis==="top"&&(y.crossPlacement==="top"?L="bottom":y.crossPlacement==="bottom"&&(L="top"));let F=Fd(C,k[C],n[w],s,l,i,d);k[C]+=F;let A=f2(k,s,d,p,o,i,n.height,L);h&&h<A&&(A=h),n.height=Math.min(n.height,A),k=ns(t,s,n,y,N,f,d,p,b,g),F=Fd(C,k[C],n[w],s,l,i,d),k[C]+=F;let B={},R=t[C]+.5*t[w]-n[C];const I=b/2+g,K=n[w]-b/2-g,V=t[C]-n[C]+b/2,T=t[C]+t[w]-n[C]-b/2,G=pt(R,V,T);return B[C]=pt(G,I,K),{position:k,maxHeight:A,arrowOffsetLeft:B.left,arrowOffsetTop:B.top,placement:y.placement}}function h2(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:s,offset:l,crossOffset:d,maxHeight:c,arrowSize:f=0,arrowBoundaryOffset:p=0}=e,h=r instanceof HTMLElement?b2(r):document.documentElement,b=h===document.documentElement;const g=window.getComputedStyle(h).position;let y=!!g&&g!=="static",$=b?ar(n):Ld(n,h);if(!b){let{marginTop:v,marginLeft:L}=window.getComputedStyle(n);$.top+=parseInt(v,10)||0,$.left+=parseInt(L,10)||0}let C=ar(r),w=d2(r);C.width+=w.left+w.right,C.height+=w.top+w.bottom;let E=c2(o),P=Rd(s),k=Rd(h),N=s.tagName==="BODY"?ar(h):Ld(h,s);return h.tagName==="HTML"&&s.tagName==="BODY"&&(k.scroll.top=0,k.scroll.left=0),p2(t,$,C,E,w,i,a,P,k,N,l,d,y,c,f,p)}function ar(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:a,clientTop:s,clientLeft:l}=document.documentElement;return{top:t+i-s,left:n+a-l,width:r,height:o}}function Ld(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:o,left:i,width:a,height:s}=e.getBoundingClientRect();r={top:o,left:i,width:a,height:s}}else{r=ar(e);let o=ar(t),i=window.getComputedStyle(t);o.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=o.top,r.left-=o.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function b2(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Vd(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Vd(t);)t=t.parentElement;return t||document.documentElement}function Vd(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const Eh=new WeakMap;function m2(e){let{triggerRef:t,isOpen:n,onClose:r}=e;u.useEffect(()=>{if(!n||r===null)return;let o=i=>{let a=i.target;if(!t.current||a instanceof Node&&!a.contains(t.current))return;let s=r||Eh.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let Te=typeof document<"u"&&window.visualViewport;function Ph(e){let{direction:t}=Ve(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:a="bottom",containerPadding:s=12,shouldFlip:l=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:c=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:h=!0,onClose:b,maxHeight:g,arrowBoundaryOffset:y=0}=e,[$,C]=u.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),w=[p,a,o.current,r.current,i.current,s,l,d,c,f,h,t,g,y,n],E=u.useRef(Te==null?void 0:Te.scale);u.useEffect(()=>{h&&(E.current=Te==null?void 0:Te.scale)},[h]);let P=u.useCallback(()=>{if(p===!1||!h||!o.current||!r.current||!i.current||!d||(Te==null?void 0:Te.scale)!==E.current)return;!g&&o.current&&(o.current.style.maxHeight="none");let v=h2({placement:v2(a,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current,padding:s,shouldFlip:l,boundaryElement:d,offset:c,crossOffset:f,maxHeight:g,arrowSize:n,arrowBoundaryOffset:y});Object.keys(v.position).forEach(L=>o.current.style[L]=v.position[L]+"px"),o.current.style.maxHeight=v.maxHeight!=null?v.maxHeight+"px":void 0,C(v)},w);be(P,w),g2(P),Kl({ref:o,onResize:P});let k=u.useRef(!1);be(()=>{let v,L=()=>{k.current=!0,clearTimeout(v),v=setTimeout(()=>{k.current=!1},500),P()},F=()=>{k.current&&L()};return Te==null||Te.addEventListener("resize",L),Te==null||Te.addEventListener("scroll",F),()=>{Te==null||Te.removeEventListener("resize",L),Te==null||Te.removeEventListener("scroll",F)}},[P]);let N=u.useCallback(()=>{k.current||b()},[b,k]);return m2({triggerRef:r,isOpen:h,onClose:b&&N}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...$.position,maxHeight:$.maxHeight}},placement:$.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$.arrowOffsetLeft,top:$.arrowOffsetTop}},updatePosition:P}}function g2(e){be(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function v2(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Rt=[];function ou(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;u.useEffect(()=>(o&&Rt.push(t),()=>{let b=Rt.indexOf(t);b>=0&&Rt.splice(b,1)}),[o,t]);let l=()=>{Rt[Rt.length-1]===t&&n&&n()},d=b=>{(!s||s(b.target))&&Rt[Rt.length-1]===t&&(b.stopPropagation(),b.preventDefault())},c=b=>{(!s||s(b.target))&&(Rt[Rt.length-1]===t&&(b.stopPropagation(),b.preventDefault()),l())},f=b=>{b.key==="Escape"&&!a&&(b.stopPropagation(),b.preventDefault(),l())};o0({ref:t,onInteractOutside:i&&o?c:null,onInteractOutsideStart:d});let{focusWithinProps:p}=br({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||_x(b.relatedTarget)||(!s||s(b.relatedTarget))&&n()}}),h=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:h}}}function y2(e,t,n){let{type:r}=e,{isOpen:o}=t;u.useEffect(()=>{n&&n.current&&Eh.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let a=_e();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?a:null,onPress:t.toggle},overlayProps:{id:a}}}const rs=typeof document<"u"&&window.visualViewport,$2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ni=0,os;function Sh(e={}){let{isDisabled:t}=e;be(()=>{if(!t)return ni++,ni===1&&(pr()?os=w2():os=x2()),()=>{ni--,ni===0&&os()}},[t])}function x2(){return an(Qn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qn(document.documentElement,"overflow","hidden"))}function w2(){let e,t,n=d=>{e=to(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Qn(e,"overscrollBehavior","contain"))},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()},o=d=>{let c=d.target;Nd(c)&&c!==document.activeElement&&(d.preventDefault(),s(),c.style.transform="translateY(-2000px)",c.focus(),requestAnimationFrame(()=>{c.style.transform=""})),t&&t()},i=d=>{let c=d.target;Nd(c)&&(s(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",rs&&(rs.height<window.innerHeight?requestAnimationFrame(()=>{Od(c)}):rs.addEventListener("resize",()=>Od(c),{once:!0}))}))},a=null,s=()=>{if(a)return;let d=()=>{window.scrollTo(0,0)},c=window.pageXOffset,f=window.pageYOffset;a=an(Ir(window,"scroll",d),Qn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qn(document.documentElement,"overflow","hidden"),Qn(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(c,f)}),window.scrollTo(0,0)},l=an(Ir(document,"touchstart",n,{passive:!1,capture:!0}),Ir(document,"touchmove",r,{passive:!1,capture:!0}),Ir(document,"touchend",o,{passive:!1,capture:!0}),Ir(document,"focus",i,!0));return()=>{t==null||t(),a==null||a(),l()}}function Qn(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Ir(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Od(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=to(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top;o>r+e.clientHeight&&(n.scrollTop+=o-r)}e=n.parentElement}}function Nd(e){return e instanceof HTMLInputElement&&!$2.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const Js=u.createContext(null);function C2(e){let{children:t}=e,n=u.useContext(Js),[r,o]=u.useState(0),i=u.useMemo(()=>({parent:n,modalCount:r,addModal(){o(a=>a+1),n&&n.addModal()},removeModal(){o(a=>a-1),n&&n.removeModal()}}),[n,r]);return u.createElement(Js.Provider,{value:i},t)}function D2(){let e=u.useContext(Js);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function E2(e){let{modalProviderProps:t}=D2();return u.createElement("div",{"data-overlay-container":!0,...e,...t})}function P2(e){return u.createElement(C2,null,u.createElement(E2,e))}function Kd(e){let t=At(),{portalContainer:n=t?null:document.body,...r}=e;if(u.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let o=u.createElement(P2,r);return Wt.createPortal(o,n)}var Th={};Th={"ar-AE":U0,"bg-BG":H0,"cs-CZ":G0,"da-DK":W0,"de-DE":Y0,"el-GR":q0,"en-US":Z0,"es-ES":X0,"et-EE":J0,"fi-FI":Q0,"fr-FR":eh,"he-IL":th,"hr-HR":nh,"hu-HU":rh,"it-IT":oh,"ja-JP":ih,"ko-KR":ah,"lt-LT":sh,"lv-LV":lh,"nb-NO":uh,"nl-NL":ch,"pl-PL":dh,"pt-BR":fh,"pt-PT":ph,"ro-RO":hh,"ru-RU":bh,"sk-SK":mh,"sl-SI":gh,"sr-SP":vh,"sv-SE":yh,"tr-TR":$h,"uk-UA":xh,"zh-CN":wh,"zh-TW":Ch};function Qs(e){let{onDismiss:t,...n}=e,r=gr(l2(Th),"@react-aria/overlays"),o=An(n,r.format("dismiss")),i=()=>{t&&t()};return u.createElement(ia,null,u.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let Lr=new WeakMap,ot=[];function iu(e,t=document.body){let n=new Set(e),r=new Set,o=l=>{for(let p of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let d=p=>{if(n.has(p)||r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of n)if(p.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),f=d(l);if(f===NodeFilter.FILTER_ACCEPT&&i(l),f!==NodeFilter.FILTER_REJECT){let p=c.nextNode();for(;p!=null;)i(p),p=c.nextNode()}},i=l=>{var d;let c=(d=Lr.get(l))!==null&&d!==void 0?d:0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),r.add(l),Lr.set(l,c+1))};ot.length&&ot[ot.length-1].disconnect(),o(t);let a=new MutationObserver(l=>{for(let d of l)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(d.target))){for(let c of d.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of d.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&o(c)}});a.observe(t,{childList:!0,subtree:!0});let s={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return ot.push(s),()=>{a.disconnect();for(let l of r){let d=Lr.get(l);d===1?(l.removeAttribute("aria-hidden"),Lr.delete(l)):Lr.set(l,d-1)}s===ot[ot.length-1]?(ot.pop(),ot.length&&ot[ot.length-1].observe()):ot.splice(ot.indexOf(s),1)}}function S2(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a,...s}=e,{overlayProps:l,underlayProps:d}=ou({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a},r),{overlayProps:c,arrowProps:f,placement:p}=Ph({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return Sh({isDisabled:o||!t.isOpen}),be(()=>{if(t.isOpen&&!o&&r.current)return iu([r.current])},[o,t.isOpen,r]),{popoverProps:X(l,c),arrowProps:f,underlayProps:d,placement:p}}const Ah=u.createContext(null);function Mh(e){let t=At(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,i]=u.useState(!1),a=u.useMemo(()=>({contain:o,setContain:i}),[o,i]);if(!n)return null;let s=e.children;return e.disableFocusManagement||(s=u.createElement(Ul,{restoreFocus:!0,contain:o&&!r},s)),s=u.createElement(Ah.Provider,{value:a},u.createElement(Dx,null,s)),Wt.createPortal(s,n)}function kh(){let e=u.useContext(Ah),t=e==null?void 0:e.setContain;be(()=>{t==null||t(!0)},[t])}function T2(e,t,n){let{overlayProps:r,underlayProps:o}=ou({...e,isOpen:t.isOpen,onClose:t.close},n);return Sh({isDisabled:!t.isOpen}),kh(),u.useEffect(()=>{if(t.isOpen)return iu([n.current])},[t.isOpen,n]),{modalProps:X(r),underlayProps:o}}function aa(e){return u.forwardRef(e)}var Rh=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return n?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,a)=>({...i,[a]:e[a]}),{}),r]:[e,r]},Fh=aa((e,t)=>{const{Component:n,ImgComponent:r,src:o,icon:i=S.jsx(A$,{}),alt:a,classNames:s,slots:l,name:d,showFallback:c,fallback:f,getInitials:p,getAvatarProps:h,getImageProps:b}=Xx({...e,ref:t}),g=u.useMemo(()=>!c&&o?null:f?S.jsx("div",{"aria-label":a,className:l.fallback({class:s==null?void 0:s.fallback}),role:"img",children:f}):d?S.jsx("span",{"aria-label":a,className:l.name({class:s==null?void 0:s.name}),role:"img",children:p(d)}):S.jsx("span",{"aria-label":a,className:l.icon({class:s==null?void 0:s.icon}),role:"img",children:i}),[c,o,f,d,s]);return S.jsxs(n,{...h(),children:[o&&S.jsx(r,{...b(),alt:a}),g]})});Fh.displayName="NextUI.Avatar";var Bh=Fh;function A2(e={}){const{as:t,ref:n,max:r=5,total:o,size:i,color:a,radius:s,children:l,isBordered:d,isDisabled:c,isGrid:f,renderCount:p,className:h,classNames:b,...g}=e,y=As(n),$=t||"div",C=u.useMemo(()=>({size:i,color:a,radius:s,isGrid:f,isBordered:d,isDisabled:c}),[i,a,s,f,d,c]),w=u.useMemo(()=>L3({className:h,isGrid:f}),[h,f]),E=W$(l),P=r?E.slice(0,r):E,k=o||(r!=null?E.length-r:-1),N=P.map((F,A)=>{const B=A===0,R=A===P.length-1,I={className:sr(B?"ms-0":f?"":"-ms-2",R&&k<1?"hover:-translate-x-0":"")};return u.cloneElement(F,I$(I))});return{Component:$,context:C,remainingCount:k,clones:N,renderCount:p,getAvatarGroupProps:()=>({ref:y,className:w.base({class:sr(b==null?void 0:b.base,h)}),role:"group",...g}),getAvatarGroupCountProps:()=>({className:w.count({class:b==null?void 0:b.count})})}}var Ih=aa((e,t)=>{const{Component:n,clones:r,context:o,remainingCount:i,getAvatarGroupCountProps:a,getAvatarGroupProps:s,renderCount:l=d=>S.jsx(Bh,{...a(),name:`+${d}`})}=A2({...e,ref:t});return S.jsx(n,{...s(),children:S.jsxs(Y$,{value:o,children:[r,i>0&&l(i)]})})});Ih.displayName="NextUI.AvatarGroup";var M2=Ih;const x={fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"],monospace:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:100,extralight:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},borderRadius:{.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{primary:"#4785ff",secondary:"#b8cfff",tertiary:"#d6e4ff",background:"#f0f5ff",inherit:"inherit",current:"currentColor",transparent:"transparent",black:"rgb(0 0 0)",white:"rgb(255 255 255)",slate:{50:"rgb(248 250 252)",100:"rgb(241 245 249)",200:"rgb(226 232 240)",300:"rgb(203 213 225)",400:"rgb(148 163 184)",500:"rgb(100 116 139)",600:"rgb(71 85 105)",700:"rgb(51 65 85)",800:"rgb(30 41 59)",900:"rgb(15 23 42)"},gray:{50:"rgb(249 250 251)",100:"rgb(243 244 246)",200:"rgb(229 231 235)",300:"rgb(209 213 219)",400:"rgb(156 163 175)",500:"rgb(107 114 128)",600:"rgb(75 85 99)",700:"rgb(55 65 81)",800:"rgb(31 41 55)",900:"rgb(17 24 39)"},zinc:{50:"rgb(250 250 250)",100:"rgb(244 244 245)",200:"rgb(228 228 231)",300:"rgb(212 212 216)",400:"rgb(161 161 170)",500:"rgb(113 113 122)",600:"rgb(82 82 91)",700:"rgb(63 63 70)",800:"rgb(39 39 42)",900:"rgb(24 24 27)"},neutral:{50:"rgb(250 250 250)",100:"rgb(245 245 245)",200:"rgb(229 229 229)",300:"rgb(212 212 212)",400:"rgb(163 163 163)",500:"rgb(115 115 115)",600:"rgb(82 82 82)",700:"rgb(64 64 64)",800:"rgb(38 38 38)",900:"rgb(23 23 23)"},stone:{50:"rgb(250 250 249)",100:"rgb(245 245 244)",200:"rgb(231 229 228)",300:"rgb(214 211 209)",400:"rgb(168 162 158)",500:"rgb(120 113 108)",600:"rgb(87 83 78)",700:"rgb(68 64 60)",800:"rgb(41 37 36)",900:"rgb(28 25 23)"},red:{50:"rgb(254 242 242)",100:"rgb(254 226 226)",200:"rgb(254 202 202)",300:"rgb(252 165 165)",400:"rgb(248 113 113)",500:"rgb(239 68 68)",600:"rgb(220 38 38)",700:"rgb(185 28 28)",800:"rgb(153 27 27)",900:"rgb(127 29 29)"},orange:{50:"rgb(255 247 237)",100:"rgb(255 237 213)",200:"rgb(254 215 170)",300:"rgb(253 186 116)",400:"rgb(251 146 60)",500:"rgb(249 115 22)",600:"rgb(234 88 12)",700:"rgb(194 65 12)",800:"rgb(154 52 18)",900:"rgb(124 45 18)"},amber:{50:"rgb(255 251 235)",100:"rgb(254 243 199)",200:"rgb(253 230 138)",300:"rgb(252 211 77)",400:"rgb(251 191 36)",500:"rgb(245 158 11)",600:"rgb(217 119 6)",700:"rgb(180 83 9)",800:"rgb(146 64 14)",900:"rgb(120 53 15)"},yellow:{50:"rgb(254 252 232)",100:"rgb(254 249 195)",200:"rgb(254 240 138)",300:"rgb(253 224 71)",400:"rgb(250 204 21)",500:"rgb(234 179 8)",600:"rgb(202 138 4)",700:"rgb(161 98 7)",800:"rgb(133 77 14)",900:"rgb(113 63 18)"},lime:{50:"rgb(247 254 231)",100:"rgb(236 252 203)",200:"rgb(217 249 157)",300:"rgb(190 242 100)",400:"rgb(163 230 53)",500:"rgb(132 204 22)",600:"rgb(101 163 13)",700:"rgb(77 124 15)",800:"rgb(63 98 18)",900:"rgb(54 83 20)"},green:{50:"rgb(240 253 244)",100:"rgb(220 252 231)",200:"rgb(187 247 208)",300:"rgb(134 239 172)",400:"rgb(74 222 128)",500:"rgb(34 197 94)",600:"rgb(22 163 74)",700:"rgb(21 128 61)",800:"rgb(22 101 52)",900:"rgb(20 83 45)"},emerald:{50:"rgb(236 253 245)",100:"rgb(209 250 229)",200:"rgb(167 243 208)",300:"rgb(110 231 183)",400:"rgb(52 211 153)",500:"rgb(16 185 129)",600:"rgb(5 150 105)",700:"rgb(4 120 87)",800:"rgb(6 95 70)",900:"rgb(6 78 59)"},teal:{50:"rgb(240 253 250)",100:"rgb(204 251 241)",200:"rgb(153 246 228)",300:"rgb(94 234 212)",400:"rgb(45 212 191)",500:"rgb(20 184 166)",600:"rgb(13 148 136)",700:"rgb(15 118 110)",800:"rgb(17 94 89)",900:"rgb(19 78 74)"},cyan:{50:"rgb(236 254 255)",100:"rgb(207 250 254)",200:"rgb(165 243 252)",300:"rgb(103 232 249)",400:"rgb(34 211 238)",500:"rgb(6 182 212)",600:"rgb(8 145 178)",700:"rgb(14 116 144)",800:"rgb(21 94 117)",900:"rgb(22 78 99)"},sky:{50:"rgb(240 249 255)",100:"rgb(224 242 254)",200:"rgb(186 230 253)",300:"rgb(125 211 252)",400:"rgb(56 189 248)",500:"rgb(14 165 233)",600:"rgb(2 132 199)",700:"rgb(3 105 161)",800:"rgb(7 89 133)",900:"rgb(12 74 110)"},blue:{50:"rgb(239 246 255)",100:"rgb(219 234 254)",200:"rgb(191 219 254)",300:"rgb(147 197 253)",400:"rgb(96 165 250)",500:"rgb(59 130 246)",600:"rgb(37 99 235)",700:"rgb(29 78 216)",800:"rgb(30 64 175)",900:"rgb(30 58 138)"},indigo:{50:"rgb(238 242 255)",100:"rgb(224 231 255)",200:"rgb(199 210 254)",300:"rgb(165 180 252)",400:"rgb(129 140 248)",500:"rgb(99 102 241)",600:"rgb(79 70 229)",700:"rgb(67 56 202)",800:"rgb(55 48 163)",900:"rgb(49 46 129)"},violet:{50:"rgb(245 243 255)",100:"rgb(237 233 254)",200:"rgb(221 214 254)",300:"rgb(196 181 253)",400:"rgb(167 139 250)",500:"rgb(139 92 246)",600:"rgb(124 58 237)",700:"rgb(109 40 217)",800:"rgb(91 33 182)",900:"rgb(76 29 149)"},purple:{50:"rgb(250 245 255)",100:"rgb(243 232 255)",200:"rgb(233 213 255)",300:"rgb(216 180 254)",400:"rgb(192 132 252)",500:"rgb(168 85 247)",600:"rgb(147 51 234)",700:"rgb(126 34 206)",800:"rgb(107 33 168)",900:"rgb(88 28 135)"},fuchsia:{50:"rgb(253 244 255)",100:"rgb(250 232 255)",200:"rgb(245 208 254)",300:"rgb(240 171 252)",400:"rgb(232 121 249)",500:"rgb(217 70 239)",600:"rgb(192 38 211)",700:"rgb(162 28 175)",800:"rgb(134 25 143)",900:"rgb(112 26 117)"},pink:{50:"rgb(253 242 248)",100:"rgb(252 231 243)",200:"rgb(251 207 232)",300:"rgb(249 168 212)",400:"rgb(244 114 182)",500:"rgb(236 72 153)",600:"rgb(219 39 119)",700:"rgb(190 24 93)",800:"rgb(157 23 77)",900:"rgb(131 24 67)"},rose:{50:"rgb(255 241 242)",100:"rgb(255 228 230)",200:"rgb(254 205 211)",300:"rgb(253 164 175)",400:"rgb(251 113 133)",500:"rgb(244 63 94)",600:"rgb(225 29 72)",700:"rgb(190 18 60)",800:"rgb(159 18 57)",900:"rgb(136 19 55)"}},spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},height:{auto:"auto",px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},components:{button:{primary:{color:"#FFF",backgroundColor:"#000"}},Card:{border:"1px solid rgb(226 232 240)",padding:"1rem",backgroundColor:"transparent",borderRadius:"2px",boxShadow:"rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px"},"Card.Content":{padding:0,fontSize:"0.9rem"},"Card.Header":{fontSize:"1.125rem",fontWeight:"700",marginBottom:"1rem"}}};function Lh(e,t){const n={...e};return Object.entries(t).forEach(([r,o])=>{o!==null&&typeof o=="object"&&!Array.isArray(o)?((n[r]===void 0||n[r]===null)&&(n[r]={}),n[r]=Lh(n[r],o)):n[r]=o}),n}const k2=_.div`
39
+ */var _c=z$(G$());function W$(e){return _c.Children.toArray(e).filter(t=>(0,_c.isValidElement)(t))}var[Y$,Mp]=M$({name:"AvatarGroupContext",strict:!1}),q$={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},Z$={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},X$={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},J$={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},Q$={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},e3={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},t3={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},de={solid:q$,shadow:Z$,bordered:X$,flat:J$,faded:Q$,light:e3,ghost:t3},zc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,tt=e=>!e||typeof e!="object"||Object.keys(e).length===0,n3=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function kp(e,t){e.forEach(function(n){Array.isArray(n)?kp(n,t):t.push(n)})}function Rp(e){let t=[];return kp(e,t),t}var Fp=(...e)=>Rp(e).filter(Boolean),Bp=(e,t)=>{let n={},r=Object.keys(e),o=Object.keys(t);for(let i of r)if(o.includes(i)){let a=e[i],s=t[i];typeof a=="object"&&typeof s=="object"?n[i]=Bp(a,s):Array.isArray(a)||Array.isArray(s)?n[i]=Fp(s,a):n[i]=s+" "+a}else n[i]=e[i];for(let i of o)r.includes(i)||(n[i]=t[i]);return n},Uc=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function r3(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=Ip(t))&&(r&&(r+=" "),r+=n);return r}function Ip(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=Ip(e[r]))&&(n&&(n+=" "),n+=t);return n}var Ll="-";function o3(e){var t=a3(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=r===void 0?{}:r;function i(s){var l=s.split(Ll);return l[0]===""&&l.length!==1&&l.shift(),Lp(l,t)||i3(s)}function a(s,l){var d=n[s]||[];return l&&o[s]?[].concat(d,o[s]):d}return{getClassGroupId:i,getConflictingClassGroupIds:a}}function Lp(e,t){var a;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?Lp(e.slice(1),r):void 0;if(o)return o;if(t.validators.length!==0){var i=e.join(Ll);return(a=t.validators.find(function(s){var l=s.validator;return l(i)}))==null?void 0:a.classGroupId}}var Hc=/^\[(.+)\]$/;function i3(e){if(Hc.test(e)){var t=Hc.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function a3(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=l3(Object.entries(e.classGroups),n);return o.forEach(function(i){var a=i[0],s=i[1];Ms(s,r,a,t)}),r}function Ms(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var i=o===""?t:Gc(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(s3(o)){Ms(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(function(a){var s=a[0],l=a[1];Ms(l,Gc(t,s),n,r)})})}function Gc(e,t){var n=e;return t.split(Ll).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function s3(e){return e.isThemeGetter}function l3(e,t){return t?e.map(function(n){var r=n[0],o=n[1],i=o.map(function(a){return typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(function(s){var l=s[0],d=s[1];return[t+l,d]})):a});return[r,i]}):e}function u3(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(i,a){n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)}return{get:function(a){var s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set:function(a,s){n.has(a)?n.set(a,s):o(a,s)}}}var Vp="!";function c3(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(a){for(var s=[],l=0,d=0,c,f=0;f<a.length;f++){var p=a[f];if(l===0){if(p===r&&(n||a.slice(f,f+o)===t)){s.push(a.slice(d,f)),d=f+o;continue}if(p==="/"){c=f;continue}}p==="["?l++:p==="]"&&l--}var h=s.length===0?a:a.substring(d),b=h.startsWith(Vp),g=b?h.substring(1):h,y=c&&c>d?c-d:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:y}}}function d3(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function f3(e){return{cache:u3(e.cacheSize),splitModifiers:c3(e),...o3(e)}}var p3=/\s+/;function h3(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(p3).map(function(a){var s=n(a),l=s.modifiers,d=s.hasImportantModifier,c=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?c.substring(0,f):c),h=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:a};if(p=r(c),!p)return{isTailwindClass:!1,originalClassName:a};h=!1}var b=d3(l).join(":"),g=d?b+Vp:b;return{isTailwindClass:!0,modifierId:g,classGroupId:p,originalClassName:a,hasPostfixModifier:h}}).reverse().filter(function(a){if(!a.isTailwindClass)return!0;var s=a.modifierId,l=a.classGroupId,d=a.hasPostfixModifier,c=s+l;return i.has(c)?!1:(i.add(c),o(l,d).forEach(function(f){return i.add(s+f)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function ks(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,i,a=s;function s(d){var c=t[0],f=t.slice(1),p=f.reduce(function(h,b){return b(h)},c());return r=f3(p),o=r.cache.get,i=r.cache.set,a=l,l(d)}function l(d){var c=o(d);if(c)return c;var f=h3(d,r);return i(d,f),f}return function(){return a(r3.apply(null,arguments))}}function xe(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var Op=/^\[(?:([a-z-]+):)?(.+)\]$/i,b3=/^\d+\/\d+$/,m3=new Set(["px","full","screen"]),g3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,v3=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,y3=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function gt(e){return wn(e)||m3.has(e)||b3.test(e)||Rs(e)}function Rs(e){return Bn(e,"length",E3)}function $3(e){return Bn(e,"size",Np)}function x3(e){return Bn(e,"position",Np)}function w3(e){return Bn(e,"url",P3)}function Uo(e){return Bn(e,"number",wn)}function wn(e){return!Number.isNaN(Number(e))}function C3(e){return e.endsWith("%")&&wn(e.slice(0,-1))}function kr(e){return Wc(e)||Bn(e,"number",Wc)}function ce(e){return Op.test(e)}function Rr(){return!0}function Jt(e){return g3.test(e)}function D3(e){return Bn(e,"",S3)}function Bn(e,t,n){var r=Op.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function E3(e){return v3.test(e)}function Np(){return!1}function P3(e){return e.startsWith("url(")}function Wc(e){return Number.isInteger(Number(e))}function S3(e){return y3.test(e)}function Fs(){var e=xe("colors"),t=xe("spacing"),n=xe("blur"),r=xe("brightness"),o=xe("borderColor"),i=xe("borderRadius"),a=xe("borderSpacing"),s=xe("borderWidth"),l=xe("contrast"),d=xe("grayscale"),c=xe("hueRotate"),f=xe("invert"),p=xe("gap"),h=xe("gradientColorStops"),b=xe("gradientColorStopPositions"),g=xe("inset"),y=xe("margin"),$=xe("opacity"),C=xe("padding"),w=xe("saturate"),E=xe("scale"),P=xe("sepia"),k=xe("skew"),N=xe("space"),v=xe("translate"),L=function(){return["auto","contain","none"]},F=function(){return["auto","hidden","clip","visible","scroll"]},A=function(){return["auto",ce,t]},B=function(){return[ce,t]},R=function(){return["",gt]},I=function(){return["auto",wn,ce]},K=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},V=function(){return["solid","dashed","dotted","double","none"]},T=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},G=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",ce]},H=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},D=function(){return[wn,Uo]},O=function(){return[wn,ce]};return{cacheSize:500,theme:{colors:[Rr],spacing:[gt],blur:["none","",Jt,ce],brightness:D(),borderColor:[e],borderRadius:["none","","full",Jt,ce],borderSpacing:B(),borderWidth:R(),contrast:D(),grayscale:Y(),hueRotate:O(),invert:Y(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[C3,Rs],inset:A(),margin:A(),opacity:D(),padding:B(),saturate:D(),scale:D(),sepia:Y(),skew:O(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",ce]}],container:["container"],columns:[{columns:[Jt]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(K(),[ce])}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",kr]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ce]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",kr]}],"grid-cols":[{"grid-cols":[Rr]}],"col-start-end":[{col:["auto",{span:["full",kr]},ce]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Rr]}],"row-start-end":[{row:["auto",{span:[kr]},ce]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ce]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(G())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(G(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(G(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",ce,t]}],"min-w":[{"min-w":["min","max","fit",ce,gt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Jt]},Jt,ce]}],h:[{h:[ce,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",ce,gt]}],"max-h":[{"max-h":[ce,t,"min","max","fit"]}],"font-size":[{text:["base",Jt,Rs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Uo]}],"font-family":[{font:[Rr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ce]}],"line-clamp":[{"line-clamp":["none",wn,Uo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ce,gt]}],"list-image":[{"list-image":["none",ce]}],"list-style-type":[{list:["none","disc","decimal",ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[$]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(V(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",gt]}],"underline-offset":[{"underline-offset":["auto",ce,gt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[$]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(K(),[x3])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",$3]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},w3]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[$]}],"border-style":[{border:[].concat(V(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[$]}],"divide-style":[{divide:V()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(V())}],"outline-offset":[{"outline-offset":[ce,gt]}],"outline-w":[{outline:[gt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[$]}],"ring-offset-w":[{"ring-offset":[gt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Jt,D3]}],"shadow-color":[{shadow:[Rr]}],opacity:[{opacity:[$]}],"mix-blend":[{"mix-blend":T()}],"bg-blend":[{"bg-blend":T()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Jt,ce]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[$]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ce]}],duration:[{duration:O()}],ease:[{ease:["linear","in","out","in-out",ce]}],delay:[{delay:O()}],animate:[{animate:["none","spin","ping","pulse","bounce",ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[kr,ce]}],"translate-x":[{"translate-x":[v]}],"translate-y":[{"translate-y":[v]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ce]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[gt,Uo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function T3(e,t){for(var n in t)Kp(e,n,t[n]);return e}var A3=Object.prototype.hasOwnProperty,M3=new Set(["string","number","boolean"]);function Kp(e,t,n){if(!A3.call(e,t)||M3.has(typeof n)||n===null){e[t]=n;return}if(Array.isArray(n)&&Array.isArray(e[t])){e[t]=e[t].concat(n);return}if(typeof n=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=n;return}for(var r in n)Kp(e[t],r,n[r])}}function k3(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return typeof e=="function"?ks.apply(void 0,[Fs,e].concat(n)):ks.apply(void 0,[function(){return T3(Fs(),e)}].concat(n))}var R3=ks(Fs),F3={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},jp=e=>e||void 0,eo=(...e)=>jp(Rp(e).filter(Boolean).join(" ")),Na=null,$i={},Bs=!1,Fr=(...e)=>t=>t.twMerge?((!Na||Bs)&&(Bs=!1,Na=tt($i)?R3:k3($i)),jp(Na(eo(e)))):eo(e),Yc=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=eo(e[n],t[n]):e[n]=t[n];return e},B3=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:a=[],defaultVariants:s={}}=e,l={...F3,...t},d=n!=null&&n.base?eo(n.base,e==null?void 0:e.base):e==null?void 0:e.base,c=n!=null&&n.variants&&!tt(n.variants)?Bp(o,n.variants):o,f=n!=null&&n.defaultVariants&&!tt(n.defaultVariants)?{...n.defaultVariants,...s}:s;!tt(l.twMergeConfig)&&!n3(l.twMergeConfig,$i)&&(Bs=!0,$i=l.twMergeConfig);let p=tt(n==null?void 0:n.slots),h=tt(r)?{}:{base:eo(e==null?void 0:e.base,p&&(n==null?void 0:n.base)),...r},b=p?h:Yc({...n==null?void 0:n.slots},tt(h)?{base:e==null?void 0:e.base}:h),g=$=>{if(tt(c)&&tt(r)&&p)return Fr(d,$==null?void 0:$.class,$==null?void 0:$.className)(l);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof i}`);if(a&&!Array.isArray(a))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof a}`);let C=(B,R,I=[],K)=>{let V=I;if(typeof R=="string")V=V.concat(Uc(R).split(" ").map(T=>`${B}:${T}`));else if(Array.isArray(R))V=V.concat(R.reduce((T,G)=>T.concat(`${B}:${G}`),[]));else if(typeof R=="object"&&typeof K=="string"){for(let T in R)if(R.hasOwnProperty(T)&&T===K){let G=R[T];if(G&&typeof G=="string"){let Y=Uc(G);V[K]?V[K]=V[K].concat(Y.split(" ").map(H=>`${B}:${H}`)):V[K]=Y.split(" ").map(H=>`${B}:${H}`)}else Array.isArray(G)&&G.length>0&&(V[K]=G.reduce((Y,H)=>Y.concat(`${B}:${H}`),[]))}}return V},w=(B,R=c,I=null,K=null)=>{var V;let T=R[B];if(!T||tt(T))return null;let G=(V=K==null?void 0:K[B])!=null?V:$==null?void 0:$[B];if(G===null)return null;let Y=zc(G),H=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,D=f==null?void 0:f[B],O=[];if(typeof Y=="object"&&H)for(let[J,Q]of Object.entries(Y)){let re=T[Q];if(J==="initial"){D=Q;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(J)||(O=C(J,re,O,I))}let W=T[Y]||T[zc(D)];return typeof O=="object"&&typeof I=="string"&&O[I]?Yc(O,W):O.length>0?(O.push(W),O):W},E=()=>c?Object.keys(c).map(B=>w(B,c)):null,P=(B,R)=>{if(!c||typeof c!="object")return null;let I=new Array;for(let K in c){let V=w(K,c,B,R),T=B==="base"&&typeof V=="string"?V:V&&V[B];T&&(I[I.length]=T)}return I},k={};for(let B in $)$[B]!==void 0&&(k[B]=$[B]);let N=(B,R)=>{var I;let K=typeof($==null?void 0:$[B])=="object"?{[B]:(I=$[B])==null?void 0:I.initial}:{};return{...f,...k,...K,...R}},v=(B=[],R)=>{let I=[];for(let{class:K,className:V,...T}of B){let G=!0;for(let[Y,H]of Object.entries(T)){let D=N(Y,R);if(Array.isArray(H)){if(!H.includes(D[Y])){G=!1;break}}else if(D[Y]!==H){G=!1;break}}G&&(K&&I.push(K),V&&I.push(V))}return I},L=B=>{let R=v(i,B),I=v(n==null?void 0:n.compoundVariants,B);return Fp(I,R)},F=B=>{let R=L(B);if(!Array.isArray(R))return R;let I={};for(let K of R)if(typeof K=="string"&&(I.base=Fr(I.base,K)(l)),typeof K=="object")for(let[V,T]of Object.entries(K))I[V]=Fr(I[V],T)(l);return I},A=B=>{if(a.length<1)return null;let R={};for(let{slots:I=[],class:K,className:V,...T}of a){if(!tt(T)){let G=!0;for(let Y of Object.keys(T)){let H=N(Y,B)[Y];if(H===void 0||(Array.isArray(T[Y])?!T[Y].includes(H):T[Y]!==H)){G=!1;break}}if(!G)continue}for(let G of I)R[G]=R[G]||[],R[G].push([K,V])}return R};if(!tt(r)||!p){let B={};if(typeof b=="object"&&!tt(b))for(let R of Object.keys(b))B[R]=I=>{var K,V;return Fr(b[R],P(R,I),((K=F(I))!=null?K:[])[R],((V=A(I))!=null?V:[])[R],I==null?void 0:I.class,I==null?void 0:I.className)(l)};return B}return Fr(d,E(),L(),$==null?void 0:$.class,$==null?void 0:$.className)(l)},y=()=>{if(!(!c||typeof c!="object"))return Object.keys(c)};return g.variantKeys=y(),g.extend=n,g.base=d,g.slots=b,g.variants=c,g.defaultVariants=f,g.compoundSlots=a,g.compoundVariants=i,g},Ho=["small","medium","large"],Xi=(e,t)=>{var n,r,o;return B3(e,{...t,twMerge:(n=t==null?void 0:t.twMerge)!=null?n:!0,twMergeConfig:{...t==null?void 0:t.twMergeConfig,theme:{...(r=t==null?void 0:t.twMergeConfig)==null?void 0:r.theme,opacity:["disabled"],spacing:["divider"],borderWidth:Ho,borderRadius:Ho},classGroups:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.classGroups,shadow:[{shadow:Ho}],"font-size":[{text:["tiny",...Ho]}],"bg-image":["bg-stripe-gradient"]}}})},_p=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],Ka=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],qc=Xi({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",..._p],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-none","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:de.solid.foreground},primary:{base:"before:bg-primary",content:de.solid.primary},secondary:{base:"before:bg-secondary",content:de.solid.secondary},success:{base:"before:bg-success",content:de.solid.success},warning:{base:"before:bg-warning",content:de.solid.warning},danger:{base:"before:bg-danger",content:de.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",disableAnimation:!1,triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]}),I3=Xi({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",..._p],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...Ka,"flex","items-center","justify-center"],name:[...Ka,"font-normal","text-center","text-inherit"],icon:[...Ka,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:de.solid.default},primary:{base:de.solid.primary},secondary:{base:de.solid.secondary},success:{base:de.solid.success},warning:{base:de.solid.warning},danger:{base:de.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ms-2 data-[hover=true]:-translate-x-3 rtl:data-[hover=true]:translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3 rtl:data-[focus-visible=true]:translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}}},defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-primary"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]}),L3=Xi({slots:{base:"flex items-center justify-center h-auto w-max-content",count:"hover:-translate-x-0"},variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}}),Zc=Xi({slots:{base:["relative","inline-flex","shrink-0"],badge:["flex","z-10","flex-wrap","absolute","box-border","rounded-full","whitespace-nowrap","place-content-center","origin-center","items-center","text-inherit","select-none","font-regular","scale-100","opacity-100","subpixel-antialiased","data-[invisible=true]:scale-0","data-[invisible=true]:opacity-0"]},variants:{variant:{solid:{},flat:{},faded:{badge:"border-medium"},shadow:{}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{badge:"px-1 text-tiny"},md:{badge:"px-1 text-small"},lg:{badge:"px-1 text-small"}},placement:{"top-right":{},"top-left":{},"bottom-right":{},"bottom-left":{}},shape:{circle:{},rectangle:{}},isInvisible:{true:{}},isOneChar:{true:{badge:"px-0"}},isDot:{true:{}},disableAnimation:{true:{badge:"transition-none"},false:{badge:"transition-transform-opacity !ease-soft-spring !duration-300"}},showOutline:{true:{badge:"border-2 border-background"},false:{badge:"border-transparent border-0"}}},defaultVariants:{variant:"solid",color:"default",size:"md",shape:"rectangle",placement:"top-right",showOutline:!0,disableAnimation:!1,isInvisible:!1},compoundVariants:[{variant:"solid",color:"default",class:{badge:de.solid.default}},{variant:"solid",color:"primary",class:{badge:de.solid.primary}},{variant:"solid",color:"secondary",class:{badge:de.solid.secondary}},{variant:"solid",color:"success",class:{badge:de.solid.success}},{variant:"solid",color:"warning",class:{badge:de.solid.warning}},{variant:"solid",color:"danger",class:{badge:de.solid.danger}},{variant:"shadow",color:"default",class:{badge:de.shadow.default}},{variant:"shadow",color:"primary",class:{badge:de.shadow.primary}},{variant:"shadow",color:"secondary",class:{badge:de.shadow.secondary}},{variant:"shadow",color:"success",class:{badge:de.shadow.success}},{variant:"shadow",color:"warning",class:{badge:de.shadow.warning}},{variant:"shadow",color:"danger",class:{badge:de.shadow.danger}},{variant:"flat",color:"default",class:{badge:de.flat.default}},{variant:"flat",color:"primary",class:{badge:de.flat.primary}},{variant:"flat",color:"secondary",class:{badge:de.flat.secondary}},{variant:"flat",color:"success",class:{badge:de.flat.success}},{variant:"flat",color:"warning",class:{badge:de.flat.warning}},{variant:"flat",color:"danger",class:{badge:de.flat.danger}},{variant:"faded",color:"default",class:{badge:de.faded.default}},{variant:"faded",color:"primary",class:{badge:de.faded.primary}},{variant:"faded",color:"secondary",class:{badge:de.faded.secondary}},{variant:"faded",color:"success",class:{badge:de.faded.success}},{variant:"faded",color:"warning",class:{badge:de.faded.warning}},{variant:"faded",color:"danger",class:{badge:de.faded.danger}},{isOneChar:!0,size:"sm",class:{badge:"w-4 h-4 min-w-4 min-h-4"}},{isOneChar:!0,size:"md",class:{badge:"w-5 h-5 min-w-5 min-h-5"}},{isOneChar:!0,size:"lg",class:{badge:"w-6 h-6 min-w-6 min-h-6"}},{isDot:!0,size:"sm",class:{badge:"w-3 h-3 min-w-3 min-h-3"}},{isDot:!0,size:"md",class:{badge:"w-3.5 h-3.5 min-w-3.5 min-h-3.5"}},{isDot:!0,size:"lg",class:{badge:"w-4 h-4 min-w-4 min-h-4"}},{placement:"top-right",shape:"rectangle",class:{badge:"top-[5%] right-[5%] translate-x-1/2 -translate-y-1/2"}},{placement:"top-left",shape:"rectangle",class:{badge:"top-[5%] left-[5%] -translate-x-1/2 -translate-y-1/2"}},{placement:"bottom-right",shape:"rectangle",class:{badge:"bottom-[5%] right-[5%] translate-x-1/2 translate-y-1/2"}},{placement:"bottom-left",shape:"rectangle",class:{badge:"bottom-[5%] left-[5%] -translate-x-1/2 translate-y-1/2"}},{placement:"top-right",shape:"circle",class:{badge:"top-[10%] right-[10%] translate-x-1/2 -translate-y-1/2"}},{placement:"top-left",shape:"circle",class:{badge:"top-[10%] left-[10%] -translate-x-1/2 -translate-y-1/2"}},{placement:"bottom-right",shape:"circle",class:{badge:"bottom-[10%] right-[10%] translate-x-1/2 translate-y-1/2"}},{placement:"bottom-left",shape:"circle",class:{badge:"bottom-[10%] left-[10%] -translate-x-1/2 translate-y-1/2"}}]});function bt(e,t,n){let[r,o]=u.useState(e||t),i=u.useRef(e!==void 0),a=e!==void 0;u.useEffect(()=>{let d=i.current;d!==a&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),i.current=a},[a]);let s=a?e:r,l=u.useCallback((d,...c)=>{let f=(p,...h)=>{n&&(Object.is(s,p)||n(p,...h)),a||(s=p)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((h,...b)=>{let g=d(a?s:h,...b);return f(g,...c),a?h:g})):(a||o(d),f(d,...c))},[a,s,n]);return[s,l]}function pt(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Qe(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,i=Math.abs(o)*2>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o;isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(n/r)*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor((n-t)/r)*r);let a=r.toString(),s=a.indexOf("."),l=s>=0?a.length-s:0;if(l>0){let d=Math.pow(10,l);i=Math.round(i*d)/d}return i}const xi={prefix:String(Math.round(Math.random()*1e10)),current:0},zp=u.createContext(xi),V3=u.createContext(!1);let O3=!!(typeof window<"u"&&window.document&&window.document.createElement),ja=new WeakMap;function N3(e=!1){let t=u.useContext(zp),n=u.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let a=ja.get(i);a==null?ja.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,ja.delete(i))}n.current=++t.current}return n.current}function K3(e){let t=u.useContext(zp);t===xi&&!O3&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=N3(!!e),r=t===xi&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function j3(e){let t=u.useId(),[n]=u.useState(At()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${xi.prefix}`;return e||`${r}-${t}`}const _3=typeof u.useId=="function"?j3:K3;function z3(){return!1}function U3(){return!0}function H3(e){return()=>{}}function At(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(H3,z3,U3):u.useContext(V3)}function Up(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Up(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function G3(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Up(e))&&(r&&(r+=" "),r+=t);return r}const be=typeof document<"u"?u.useLayoutEffect:()=>{};function Pe(e){const t=u.useRef(null);return be(()=>{t.current=e},[e]),u.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function W3(e){let[t,n]=u.useState(e),r=u.useRef(null),o=Pe(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?o():n(a.value)});be(()=>{r.current&&o()});let i=Pe(a=>{r.current=a(t),o()});return[t,i]}let Y3=!!(typeof window<"u"&&window.document&&window.document.createElement),wi=new Map;function _e(e){let[t,n]=u.useState(e),r=u.useRef(null),o=_3(t),i=u.useCallback(a=>{r.current=a},[]);return Y3&&wi.set(o,i),be(()=>{let a=o;return()=>{wi.delete(a)}},[o]),u.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),o}function q3(e,t){if(e===t)return e;let n=wi.get(e);if(n)return n(t),t;let r=wi.get(t);return r?(r(e),e):t}function rn(e=[]){let t=_e(),[n,r]=W3(t),o=u.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return be(o,[t,o,...e]),n}function an(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const ye=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ft=e=>e&&"window"in e&&e.window===e?e:ye(e).defaultView||window;function X(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],a=r[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=an(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=G3(i,a):o==="id"&&i&&a?t.id=q3(i,a):t[o]=a!==void 0?a:i}}return t}function Ji(...e){return e.length===1?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const Z3=new Set(["id"]),X3=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),J3=new Set(["href","target","rel","download","ping","referrerPolicy"]),Q3=/^(data-.*)$/;function le(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(Z3.has(a)||n&&X3.has(a)||r&&J3.has(a)||o!=null&&o.has(a)||Q3.test(a))&&(i[a]=e[a]);return i}function Pt(e){if(ex())e.focus({preventScroll:!0});else{let t=tx(e);e.focus(),nx(t)}}let Go=null;function ex(){if(Go==null){Go=!1;try{document.createElement("div").focus({get preventScroll(){return Go=!0,!0}})}catch{}}return Go}function tx(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function nx(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Qi(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Vl(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Ut(){return Vl(/^Mac/i)}function Hp(){return Vl(/^iPhone/i)}function Gp(){return Vl(/^iPad/i)||Ut()&&navigator.maxTouchPoints>1}function pr(){return Hp()||Gp()}function ui(){return Ut()||pr()}function Ol(){return Qi(/AppleWebKit/i)&&!rx()}function rx(){return Qi(/Chrome/i)}function Nl(){return Qi(/Android/i)}function ox(){return Qi(/Firefox/i)}const ix=u.createContext({isNative:!0,open:lx});function bo(){return u.useContext(ix)}function ax(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Tn(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;ox()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Ut()?i=!0:a=!0);let d=Ol()&&Ut()&&!Gp()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});Tn.isOpening=n,Pt(e),e.dispatchEvent(d),Tn.isOpening=!1}Tn.isOpening=!1;function sx(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function lx(e,t){sx(e,n=>Tn(n,t))}let Yn=new Map,Is=new Set;function Xc(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=Yn.get(r.target);o||(o=new Set,Yn.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=Yn.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),Yn.delete(r.target)),Yn.size===0)){for(let i of Is)i();Is.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Xc():document.addEventListener("DOMContentLoaded",Xc));function Wp(e){requestAnimationFrame(()=>{Yn.size===0?e():Is.add(e)})}function hr(){let e=u.useRef(new Map),t=u.useCallback((o,i,a,s)=>{let l=s!=null&&s.once?(...d)=>{e.current.delete(a),a(...d)}:a;e.current.set(a,{type:i,eventTarget:o,fn:l,options:s}),o.addEventListener(i,a,s)},[]),n=u.useCallback((o,i,a,s)=>{var l;let d=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;o.removeEventListener(i,d,s),e.current.delete(a)},[]),r=u.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return u.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function An(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=_e(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function mt(e){const t=u.useRef(null);return u.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}),[e])}function ux(){return typeof window.ResizeObserver<"u"}function Kl(e){const{ref:t,onResize:n}=e;u.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(ux()){const o=new window.ResizeObserver(i=>{i.length&&n()});return o.observe(r),()=>{r&&o.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function jl(e,t){be(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function to(e,t){let n=e;for(Ci(n,t)&&(n=n.parentElement);n&&!Ci(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Ci(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}let lt=typeof document<"u"&&window.visualViewport;function cx(){let e=At(),[t,n]=u.useState(()=>e?{width:0,height:0}:Jc());return u.useEffect(()=>{let r=()=>{n(o=>{let i=Jc();return i.width===o.width&&i.height===o.height?o:i})};return lt?lt.addEventListener("resize",r):window.addEventListener("resize",r),()=>{lt?lt.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function Jc(){return{width:lt&&(lt==null?void 0:lt.width)||window.innerWidth,height:lt&&(lt==null?void 0:lt.height)||window.innerHeight}}let dx=0;const _a=new Map;function Yp(e){let[t,n]=u.useState();return be(()=>{if(!e)return;let r=_a.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${dx++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},_a.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),_a.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Di(e,t,n,r){let o=Pe(n),i=n==null;u.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,r),()=>{a.removeEventListener(t,o,r)}},[e,t,r,i,o])}function qp(e,t){let n=Qc(e,t,"left"),r=Qc(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:d}=getComputedStyle(e),c=e.scrollLeft+parseInt(d,10),f=e.scrollTop+parseInt(l,10),p=c+e.clientWidth,h=f+e.clientHeight;n<=a?a=n-parseInt(d,10):n+o>p&&(a+=n+o-p),r<=f?s=r-parseInt(l,10):r+i>h&&(s+=r+i-h),e.scrollLeft=a,e.scrollTop=s}function Qc(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function Ls(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=to(e);for(;e&&l&&e!==a&&l!==a;)qp(l,e),e=l,l=to(e)}else{var n;let{left:l,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:f}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(d-f)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function Vs(e){return e.mozInputSource===0&&e.isTrusted?!0:Nl()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function fx(e){return!Nl()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function px(e,t){let n=u.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function mo(e,t,n){let r=u.useRef(t),o=Pe(()=>{n&&n(r.current)});u.useEffect(()=>{var i;let a=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return a==null||a.addEventListener("reset",o),()=>{a==null||a.removeEventListener("reset",o)}},[e,o])}function hx(e,t){return t.get?t.get.call(e):t.value}function Zp(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function bx(e,t){var n=Zp(e,t,"get");return hx(e,n)}function mx(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function go(e,t,n){mx(e,t),t.set(e,n)}function gx(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function ed(e,t,n){var r=Zp(e,t,"set");return gx(e,r,n),n}let Xn="default",Os="",ci=new WeakMap;function Ns(e){if(pr()){if(Xn==="default"){const t=ye(e);Os=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Xn="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(ci.set(e,e.style.userSelect),e.style.userSelect="none")}function jr(e){if(pr()){if(Xn!=="disabled")return;Xn="restoring",setTimeout(()=>{Wp(()=>{if(Xn==="restoring"){const t=ye(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Os||""),Os="",Xn="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ci.has(e)){let t=ci.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ci.delete(e)}}const no=u.createContext({register:()=>{}});no.displayName="PressResponderContext";function vx(e){let t=u.useContext(no);if(t){let{register:n,...r}=t;e=X(r,e),n()}return jl(t,e.ref),e}var Wo=new WeakMap;class Yo{continuePropagation(){ed(this,Wo,!1)}get shouldStopPropagation(){return bx(this,Wo)}constructor(t,n,r){go(this,Wo,{writable:!0,value:void 0}),ed(this,Wo,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const td=Symbol("linkClicked");function sn(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:a,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:c,ref:f,...p}=vx(e),[h,b]=u.useState(!1),g=u.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:y,removeAllGlobalListeners:$}=hr(),C=Pe((v,L)=>{let F=g.current;if(a||F.didFirePressStart)return!1;let A=!0;if(F.isTriggeringEvent=!0,r){let B=new Yo("pressstart",L,v);r(B),A=B.shouldStopPropagation}return n&&n(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,b(!0),A}),w=Pe((v,L,F=!0)=>{let A=g.current;if(!A.didFirePressStart)return!1;A.ignoreClickAfterPress=!0,A.didFirePressStart=!1,A.isTriggeringEvent=!0;let B=!0;if(o){let R=new Yo("pressend",L,v);o(R),B=R.shouldStopPropagation}if(n&&n(!1),b(!1),t&&F&&!a){let R=new Yo("press",L,v);t(R),B&&(B=R.shouldStopPropagation)}return A.isTriggeringEvent=!1,B}),E=Pe((v,L)=>{let F=g.current;if(a)return!1;if(i){F.isTriggeringEvent=!0;let A=new Yo("pressup",L,v);return i(A),F.isTriggeringEvent=!1,A.shouldStopPropagation}return!0}),P=Pe(v=>{let L=g.current;L.isPressed&&L.target&&(L.isOverTarget&&L.pointerType!=null&&w(kt(L.target,v),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,$(),c||jr(L.target))}),k=Pe(v=>{d&&P(v)}),N=u.useMemo(()=>{let v=g.current,L={onKeyDown(A){if(za(A.nativeEvent,A.currentTarget)&&A.currentTarget.contains(A.target)){var B;rd(A.target,A.key)&&A.preventDefault();let R=!0;if(!v.isPressed&&!A.repeat){v.target=A.currentTarget,v.isPressed=!0,R=C(A,"keyboard");let I=A.currentTarget,K=V=>{za(V,I)&&!V.repeat&&I.contains(V.target)&&v.target&&E(kt(v.target,V),"keyboard")};y(ye(A.currentTarget),"keyup",an(K,F),!0)}R&&A.stopPropagation(),A.metaKey&&Ut()&&((B=v.metaKeyEvents)===null||B===void 0||B.set(A.key,A.nativeEvent))}else A.key==="Meta"&&(v.metaKeyEvents=new Map)},onClick(A){if(!(A&&!A.currentTarget.contains(A.target))&&A&&A.button===0&&!v.isTriggeringEvent&&!Tn.isOpening){let B=!0;if(a&&A.preventDefault(),!v.ignoreClickAfterPress&&!v.ignoreEmulatedMouseEvents&&!v.isPressed&&(v.pointerType==="virtual"||Vs(A.nativeEvent))){!a&&!l&&Pt(A.currentTarget);let R=C(A,"virtual"),I=E(A,"virtual"),K=w(A,"virtual");B=R&&I&&K}v.ignoreEmulatedMouseEvents=!1,v.ignoreClickAfterPress=!1,B&&A.stopPropagation()}}},F=A=>{var B;if(v.isPressed&&v.target&&za(A,v.target)){var R;rd(A.target,A.key)&&A.preventDefault();let K=A.target;w(kt(v.target,A),"keyboard",v.target.contains(K)),$(),A.key!=="Enter"&&_l(v.target)&&v.target.contains(K)&&!A[td]&&(A[td]=!0,Tn(v.target,A,!1)),v.isPressed=!1,(R=v.metaKeyEvents)===null||R===void 0||R.delete(A.key)}else if(A.key==="Meta"&&(!((B=v.metaKeyEvents)===null||B===void 0)&&B.size)){var I;let K=v.metaKeyEvents;v.metaKeyEvents=void 0;for(let V of K.values())(I=v.target)===null||I===void 0||I.dispatchEvent(new KeyboardEvent("keyup",V))}};if(typeof PointerEvent<"u"){L.onPointerDown=I=>{if(I.button!==0||!I.currentTarget.contains(I.target))return;if(fx(I.nativeEvent)){v.pointerType="virtual";return}Ua(I.currentTarget)&&I.preventDefault(),v.pointerType=I.pointerType;let K=!0;v.isPressed||(v.isPressed=!0,v.isOverTarget=!0,v.activePointerId=I.pointerId,v.target=I.currentTarget,!a&&!l&&Pt(I.currentTarget),c||Ns(v.target),K=C(I,v.pointerType),y(ye(I.currentTarget),"pointermove",A,!1),y(ye(I.currentTarget),"pointerup",B,!1),y(ye(I.currentTarget),"pointercancel",R,!1)),K&&I.stopPropagation()},L.onMouseDown=I=>{I.currentTarget.contains(I.target)&&I.button===0&&(Ua(I.currentTarget)&&I.preventDefault(),I.stopPropagation())},L.onPointerUp=I=>{!I.currentTarget.contains(I.target)||v.pointerType==="virtual"||I.button===0&&Un(I,I.currentTarget)&&E(I,v.pointerType||I.pointerType)};let A=I=>{I.pointerId===v.activePointerId&&(v.target&&Un(I,v.target)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,C(kt(v.target,I),v.pointerType)):v.target&&v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,w(kt(v.target,I),v.pointerType,!1),k(I)))},B=I=>{I.pointerId===v.activePointerId&&v.isPressed&&I.button===0&&v.target&&(Un(I,v.target)&&v.pointerType!=null?w(kt(v.target,I),v.pointerType):v.isOverTarget&&v.pointerType!=null&&w(kt(v.target,I),v.pointerType,!1),v.isPressed=!1,v.isOverTarget=!1,v.activePointerId=null,v.pointerType=null,$(),c||jr(v.target))},R=I=>{P(I)};L.onDragStart=I=>{I.currentTarget.contains(I.target)&&P(I)}}else{L.onMouseDown=R=>{if(R.button!==0||!R.currentTarget.contains(R.target))return;if(Ua(R.currentTarget)&&R.preventDefault(),v.ignoreEmulatedMouseEvents){R.stopPropagation();return}v.isPressed=!0,v.isOverTarget=!0,v.target=R.currentTarget,v.pointerType=Vs(R.nativeEvent)?"virtual":"mouse",!a&&!l&&Pt(R.currentTarget),C(R,v.pointerType)&&R.stopPropagation(),y(ye(R.currentTarget),"mouseup",A,!1)},L.onMouseEnter=R=>{if(!R.currentTarget.contains(R.target))return;let I=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!0,I=C(R,v.pointerType)),I&&R.stopPropagation()},L.onMouseLeave=R=>{if(!R.currentTarget.contains(R.target))return;let I=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!1,I=w(R,v.pointerType,!1),k(R)),I&&R.stopPropagation()},L.onMouseUp=R=>{R.currentTarget.contains(R.target)&&!v.ignoreEmulatedMouseEvents&&R.button===0&&E(R,v.pointerType||"mouse")};let A=R=>{if(R.button===0){if(v.isPressed=!1,$(),v.ignoreEmulatedMouseEvents){v.ignoreEmulatedMouseEvents=!1;return}v.target&&Un(R,v.target)&&v.pointerType!=null?w(kt(v.target,R),v.pointerType):v.target&&v.isOverTarget&&v.pointerType!=null&&w(kt(v.target,R),v.pointerType,!1),v.isOverTarget=!1}};L.onTouchStart=R=>{if(!R.currentTarget.contains(R.target))return;let I=yx(R.nativeEvent);if(!I)return;v.activePointerId=I.identifier,v.ignoreEmulatedMouseEvents=!0,v.isOverTarget=!0,v.isPressed=!0,v.target=R.currentTarget,v.pointerType="touch",!a&&!l&&Pt(R.currentTarget),c||Ns(v.target),C(R,v.pointerType)&&R.stopPropagation(),y(ft(R.currentTarget),"scroll",B,!0)},L.onTouchMove=R=>{if(!R.currentTarget.contains(R.target))return;if(!v.isPressed){R.stopPropagation();return}let I=nd(R.nativeEvent,v.activePointerId),K=!0;I&&Un(I,R.currentTarget)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,K=C(R,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,K=w(R,v.pointerType,!1),k(R)),K&&R.stopPropagation()},L.onTouchEnd=R=>{if(!R.currentTarget.contains(R.target))return;if(!v.isPressed){R.stopPropagation();return}let I=nd(R.nativeEvent,v.activePointerId),K=!0;I&&Un(I,R.currentTarget)&&v.pointerType!=null?(E(R,v.pointerType),K=w(R,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(K=w(R,v.pointerType,!1)),K&&R.stopPropagation(),v.isPressed=!1,v.activePointerId=null,v.isOverTarget=!1,v.ignoreEmulatedMouseEvents=!0,v.target&&!c&&jr(v.target),$()},L.onTouchCancel=R=>{R.currentTarget.contains(R.target)&&(R.stopPropagation(),v.isPressed&&P(R))};let B=R=>{v.isPressed&&R.target.contains(v.target)&&P({currentTarget:v.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=R=>{R.currentTarget.contains(R.target)&&P(R)}}return L},[y,a,l,$,c,P,k,w,C,E]);return u.useEffect(()=>()=>{var v;c||jr((v=g.current.target)!==null&&v!==void 0?v:void 0)},[c]),{isPressed:s||h,pressProps:X(p,N)}}function _l(e){return e.tagName==="A"&&e.hasAttribute("href")}function za(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof ft(o).HTMLInputElement&&!Xp(o,n)||o instanceof ft(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&_l(o))&&n!=="Enter")}function yx(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function nd(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const o=n[r];if(o.identifier===t)return o}return null}function kt(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function $x(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function xx(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Un(e,t){let n=t.getBoundingClientRect(),r=$x(e);return xx(n,r)}function Ua(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function rd(e,t){return e instanceof HTMLInputElement?!Xp(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!_l(e)}const wx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Xp(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":wx.has(e.type)}const Cx=u.forwardRef(({children:e,...t},n)=>{let r=u.useRef(!1),o=u.useContext(no);n=mt(n||(o==null?void 0:o.ref));let i=X(o||{},{...t,ref:n,register(){r.current=!0,o&&o.register()}});return jl(o,n),u.useEffect(()=>{r.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)},[]),u.createElement(no.Provider,{value:i},e)});function Dx({children:e}){let t=u.useMemo(()=>({register:()=>{}}),[]);return u.createElement(no.Provider,{value:t},e)}class Ex{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Jp(e){let t=u.useRef({isFocused:!1,observer:null});be(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Pe(r=>{e==null||e(r)});return u.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=a=>{t.current.isFocused=!1,o.disabled&&n(new Ex("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function ea(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=u.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),a=Jp(i),s=u.useCallback(l=>{l.target===l.currentTarget&&document.activeElement===l.target&&(n&&n(l),o&&o(!0),a(l))},[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}let Ht=null,ro=new Set,Gr=new Map,Mn=!1,Ks=!1;const Px={Tab:!0,Escape:!0};function ta(e,t){for(let n of ro)n(e,t)}function Sx(e){return!(e.metaKey||!Ut()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ei(e){Mn=!0,Sx(e)&&(Ht="keyboard",ta("keyboard",e))}function ct(e){Ht="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Mn=!0,ta("pointer",e))}function Qp(e){Vs(e)&&(Mn=!0,Ht="virtual")}function e0(e){e.target===window||e.target===document||(!Mn&&!Ks&&(Ht="virtual",ta("virtual",e)),Mn=!1,Ks=!1)}function t0(){Mn=!1,Ks=!0}function Pi(e){if(typeof window>"u"||Gr.get(ft(e)))return;const t=ft(e),n=ye(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Mn=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ei,!0),n.addEventListener("keyup",Ei,!0),n.addEventListener("click",Qp,!0),t.addEventListener("focus",e0,!0),t.addEventListener("blur",t0,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ct,!0),n.addEventListener("pointermove",ct,!0),n.addEventListener("pointerup",ct,!0)):(n.addEventListener("mousedown",ct,!0),n.addEventListener("mousemove",ct,!0),n.addEventListener("mouseup",ct,!0)),t.addEventListener("beforeunload",()=>{n0(e)},{once:!0}),Gr.set(t,{focus:r})}const n0=(e,t)=>{const n=ft(e),r=ye(e);t&&r.removeEventListener("DOMContentLoaded",t),Gr.has(n)&&(n.HTMLElement.prototype.focus=Gr.get(n).focus,r.removeEventListener("keydown",Ei,!0),r.removeEventListener("keyup",Ei,!0),r.removeEventListener("click",Qp,!0),n.removeEventListener("focus",e0,!0),n.removeEventListener("blur",t0,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ct,!0),r.removeEventListener("pointermove",ct,!0),r.removeEventListener("pointerup",ct,!0)):(r.removeEventListener("mousedown",ct,!0),r.removeEventListener("mousemove",ct,!0),r.removeEventListener("mouseup",ct,!0)),Gr.delete(n))};function Tx(e){const t=ye(e);let n;return t.readyState!=="loading"?Pi(e):(n=()=>{Pi(e)},t.addEventListener("DOMContentLoaded",n)),()=>n0(e,n)}typeof document<"u"&&Tx();function lr(){return Ht!=="pointer"}function Si(){return Ht}function r0(e){Ht=e,ta(e,null)}function Ax(){Pi();let[e,t]=u.useState(Ht);return u.useEffect(()=>{let n=()=>{t(Ht)};return ro.add(n),()=>{ro.delete(n)}},[]),At()?null:e}const Mx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function kx(e,t,n){var r;const o=typeof window<"u"?ft(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?ft(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?ft(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?ft(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!Mx.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof i||(n==null?void 0:n.target)instanceof a&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof s&&!Px[n.key])}function Rx(e,t,n){Pi(),u.useEffect(()=>{let r=(o,i)=>{kx(!!(n!=null&&n.isTextInput),o,i)&&e(lr())};return ro.add(r),()=>{ro.delete(r)}},t)}function br(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=u.useRef({isFocusWithin:!1}),a=u.useCallback(d=>{i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(d),o&&o(!1))},[n,o,i]),s=Jp(a),l=u.useCallback(d=>{!i.current.isFocusWithin&&document.activeElement===d.target&&(r&&r(d),o&&o(!0),i.current.isFocusWithin=!0,s(d))},[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}let Ti=!1,Ha=0;function js(){Ti=!0,setTimeout(()=>{Ti=!1},50)}function od(e){e.pointerType==="touch"&&js()}function Fx(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",od):document.addEventListener("touchend",js),Ha++,()=>{Ha--,!(Ha>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",od):document.removeEventListener("touchend",js))}}function Fe(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=u.useState(!1),s=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(Fx,[]);let{hoverProps:l,triggerHoverEnd:d}=u.useMemo(()=>{let c=(h,b)=>{if(s.pointerType=b,o||b==="touch"||s.isHovered||!h.currentTarget.contains(h.target))return;s.isHovered=!0;let g=h.currentTarget;s.target=g,t&&t({type:"hoverstart",target:g,pointerType:b}),n&&n(!0),a(!0)},f=(h,b)=>{if(s.pointerType="",s.target=null,b==="touch"||!s.isHovered)return;s.isHovered=!1;let g=h.currentTarget;r&&r({type:"hoverend",target:g,pointerType:b}),n&&n(!1),a(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{Ti&&h.pointerType==="mouse"||c(h,h.pointerType)},p.onPointerLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,h.pointerType)}):(p.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!s.ignoreEmulatedMouseEvents&&!Ti&&c(h,"mouse"),s.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,"mouse")}),{hoverProps:p,triggerHoverEnd:f}},[t,n,r,o,s]);return u.useEffect(()=>{o&&d({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:l,isHovered:i}}function o0(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=u.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Pe(l=>{n&&qo(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),s=Pe(l=>{n&&n(l)});u.useEffect(()=>{let l=i.current;if(r)return;const d=t.current,c=ye(d);if(typeof PointerEvent<"u"){let f=p=>{l.isPointerDown&&qo(p,t)&&s(p),l.isPointerDown=!1};return c.addEventListener("pointerdown",a,!0),c.addEventListener("pointerup",f,!0),()=>{c.removeEventListener("pointerdown",a,!0),c.removeEventListener("pointerup",f,!0)}}else{let f=h=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&qo(h,t)&&s(h),l.isPointerDown=!1},p=h=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&qo(h,t)&&s(h),l.isPointerDown=!1};return c.addEventListener("mousedown",a,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",a,!0),c.addEventListener("touchend",p,!0),()=>{c.removeEventListener("mousedown",a,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",a,!0),c.removeEventListener("touchend",p,!0)}}},[t,r,a,s])}function qo(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function id(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function zl(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:id(e.onKeyDown),onKeyUp:id(e.onKeyUp)}}}function i0(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,o=u.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:a}=hr(),s=Pe((c,f,p,h)=>{p===0&&h===0||(o.current.didMove||(o.current.didMove=!0,t==null||t({type:"movestart",pointerType:f,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey})),n==null||n({type:"move",pointerType:f,deltaX:p,deltaY:h,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey}))}),l=Pe((c,f)=>{jr(),o.current.didMove&&(r==null||r({type:"moveend",pointerType:f,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey}))});return{moveProps:u.useMemo(()=>{let c={},f=()=>{Ns(),o.current.didMove=!1};if(typeof PointerEvent>"u"){let h=$=>{if($.button===0){var C,w,E,P;s($,"mouse",$.pageX-((E=(C=o.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&E!==void 0?E:0),$.pageY-((P=(w=o.current.lastPosition)===null||w===void 0?void 0:w.pageY)!==null&&P!==void 0?P:0)),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},b=$=>{$.button===0&&(l($,"mouse"),a(window,"mousemove",h,!1),a(window,"mouseup",b,!1))};c.onMouseDown=$=>{$.button===0&&(f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i(window,"mousemove",h,!1),i(window,"mouseup",b,!1))};let g=$=>{let C=[...$.changedTouches].findIndex(({identifier:N})=>N===o.current.id);if(C>=0){var w,E;let{pageX:N,pageY:v}=$.changedTouches[C];var P,k;s($,"touch",N-((P=(w=o.current.lastPosition)===null||w===void 0?void 0:w.pageX)!==null&&P!==void 0?P:0),v-((k=(E=o.current.lastPosition)===null||E===void 0?void 0:E.pageY)!==null&&k!==void 0?k:0)),o.current.lastPosition={pageX:N,pageY:v}}},y=$=>{[...$.changedTouches].findIndex(({identifier:w})=>w===o.current.id)>=0&&(l($,"touch"),o.current.id=null,a(window,"touchmove",g),a(window,"touchend",y),a(window,"touchcancel",y))};c.onTouchStart=$=>{if($.changedTouches.length===0||o.current.id!=null)return;let{pageX:C,pageY:w,identifier:E}=$.changedTouches[0];f(),$.stopPropagation(),$.preventDefault(),o.current.lastPosition={pageX:C,pageY:w},o.current.id=E,i(window,"touchmove",g,!1),i(window,"touchend",y,!1),i(window,"touchcancel",y,!1)}}else{let h=g=>{if(g.pointerId===o.current.id){var y,$;let E=g.pointerType||"mouse";var C,w;s(g,E,g.pageX-((C=(y=o.current.lastPosition)===null||y===void 0?void 0:y.pageX)!==null&&C!==void 0?C:0),g.pageY-((w=($=o.current.lastPosition)===null||$===void 0?void 0:$.pageY)!==null&&w!==void 0?w:0)),o.current.lastPosition={pageX:g.pageX,pageY:g.pageY}}},b=g=>{if(g.pointerId===o.current.id){let y=g.pointerType||"mouse";l(g,y),o.current.id=null,a(window,"pointermove",h,!1),a(window,"pointerup",b,!1),a(window,"pointercancel",b,!1)}};c.onPointerDown=g=>{g.button===0&&o.current.id==null&&(f(),g.stopPropagation(),g.preventDefault(),o.current.lastPosition={pageX:g.pageX,pageY:g.pageY},o.current.id=g.pointerId,i(window,"pointermove",h,!1),i(window,"pointerup",b,!1),i(window,"pointercancel",b,!1))}}let p=(h,b,g)=>{f(),s(h,"keyboard",b,g),l(h,"keyboard")};return c.onKeyDown=h=>{switch(h.key){case"Left":case"ArrowLeft":h.preventDefault(),h.stopPropagation(),p(h,-1,0);break;case"Right":case"ArrowRight":h.preventDefault(),h.stopPropagation(),p(h,1,0);break;case"Up":case"ArrowUp":h.preventDefault(),h.stopPropagation(),p(h,0,-1);break;case"Down":case"ArrowDown":h.preventDefault(),h.stopPropagation(),p(h,0,1);break}},c},[o,i,a,s,l])}}function Bx(e,t){let{onScroll:n,isDisabled:r}=e,o=u.useCallback(i=>{i.ctrlKey||(i.preventDefault(),i.stopPropagation(),n&&n({deltaX:i.deltaX,deltaY:i.deltaY}))},[n]);Di(t,"wheel",r?void 0:o)}const Ix=500;function a0(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=Ix,accessibilityDescription:a}=e;const s=u.useRef();let{addGlobalListener:l,removeGlobalListener:d}=hr(),{pressProps:c}=sn({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),s.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...p,type:"longpress"}),s.current=void 0},i),p.pointerType==="touch")){let h=b=>{b.preventDefault()};l(p.target,"contextmenu",h,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{d(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){s.current&&clearTimeout(s.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=Yp(o&&!t?a:void 0);return{longPressProps:X(c,f)}}function kn(e){const t=ye(e);if(Si()==="virtual"){let n=t.activeElement;Wp(()=>{t.activeElement===n&&e.isConnected&&Pt(e)})}else Pt(e)}function Lx(e){const t=ft(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:a,visibility:s}=i(e);o=a!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function Vx(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function s0(e,t){return e.nodeName!=="#comment"&&Lx(e)&&Vx(e,t)&&(!e.parentElement||s0(e.parentElement,e))}const ad=u.createContext(null);let ve=null;function Ul(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=u.useRef(null),a=u.useRef(null),s=u.useRef([]),{parentNode:l}=u.useContext(ad)||{},d=u.useMemo(()=>new _s({scopeRef:s}),[s]);be(()=>{let p=l||ke.root;if(ke.getTreeNode(p.scopeRef)&&ve&&!Mi(ve,p.scopeRef)){let h=ke.getTreeNode(ve);h&&(p=h)}p.addChild(d),ke.addNode(d)},[d,l]),be(()=>{let p=ke.getTreeNode(s);p&&(p.contain=!!n)},[n]),be(()=>{var p;let h=(p=i.current)===null||p===void 0?void 0:p.nextSibling,b=[];for(;h&&h!==a.current;)b.push(h),h=h.nextSibling;s.current=b},[t]),Ux(s,r,n),jx(s,n),Gx(s,r,n),zx(s,o),u.useEffect(()=>{const p=ye(s.current?s.current[0]:void 0).activeElement;let h=null;if(Ge(p,s.current)){for(let b of ke.traverse())b.scopeRef&&Ge(p,b.scopeRef.current)&&(h=b);h===ke.getTreeNode(s)&&(ve=h.scopeRef)}},[s]),be(()=>()=>{var p,h,b;let g=(b=(h=ke.getTreeNode(s))===null||h===void 0||(p=h.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&b!==void 0?b:null;(s===ve||Mi(s,ve))&&(!g||ke.getTreeNode(g))&&(ve=g),ke.removeTreeNode(s)},[s]);let c=u.useMemo(()=>Ox(s),[]),f=u.useMemo(()=>({focusManager:c,parentNode:d}),[d,c]);return u.createElement(ad.Provider,{value:f},u.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,u.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function Ox(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||ye(n[0]).activeElement,l=n[0].previousElementSibling,d=Cn(n),c=Ze(d,{tabbable:o,accept:a},n);c.currentNode=Ge(s,n)?s:l;let f=c.nextNode();return!f&&i&&(c.currentNode=l,f=c.nextNode()),f&&et(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||ye(n[0]).activeElement,l=n[n.length-1].nextElementSibling,d=Cn(n),c=Ze(d,{tabbable:o,accept:a},n);c.currentNode=Ge(s,n)?s:l;let f=c.previousNode();return!f&&i&&(c.currentNode=l,f=c.previousNode()),f&&et(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Cn(n),a=Ze(i,{tabbable:r,accept:o},n);a.currentNode=n[0].previousElementSibling;let s=a.nextNode();return s&&et(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Cn(n),a=Ze(i,{tabbable:r,accept:o},n);a.currentNode=n[n.length-1].nextElementSibling;let s=a.previousNode();return s&&et(s,!0),s}}}const Hl=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],Nx=Hl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Hl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Kx=Hl.join(':not([hidden]):not([tabindex="-1"]),');function Cn(e){return e[0].parentElement}function _r(e){let t=ke.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function jx(e,t){let n=u.useRef(),r=u.useRef();be(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=ye(o?o[0]:void 0);let a=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!_r(e))return;let c=i.activeElement,f=e.current;if(!f||!Ge(c,f))return;let p=Cn(f),h=Ze(p,{tabbable:!0},f);if(!c)return;h.currentNode=c;let b=d.shiftKey?h.previousNode():h.nextNode();b||(h.currentNode=d.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,b=d.shiftKey?h.previousNode():h.nextNode()),d.preventDefault(),b&&et(b,!0)},s=d=>{(!ve||Mi(ve,e))&&Ge(d.target,e.current)?(ve=e,n.current=d.target):_r(e)&&!Ai(d.target,e)?n.current?n.current.focus():ve&&ve.current&&ki(ve.current):_r(e)&&(n.current=d.target)},l=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(i.activeElement&&_r(e)&&!Ai(i.activeElement,e))if(ve=e,i.body.contains(d.target)){var c;n.current=d.target,(c=n.current)===null||c===void 0||c.focus()}else ve.current&&ki(ve.current)})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(d=>d.addEventListener("focusin",s,!1)),o==null||o.forEach(d=>d.addEventListener("focusout",l,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(d=>d.removeEventListener("focusin",s,!1)),o==null||o.forEach(d=>d.removeEventListener("focusout",l,!1))}},[e,t]),be(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function l0(e){return Ai(e)}function Ge(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Ai(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of ke.traverse(ke.getTreeNode(t)))if(n&&Ge(e,n.current))return!0;return!1}function _x(e){return Ai(e,ve)}function Mi(e,t){var n;let r=(n=ke.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function et(e,t=!1){if(e!=null&&!t)try{kn(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function ki(e,t=!0){let n=e[0].previousElementSibling,r=Cn(e),o=Ze(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();t&&!i&&(r=Cn(e),o=Ze(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),et(i)}function zx(e,t){const n=u.useRef(t);u.useEffect(()=>{if(n.current){ve=e;const r=ye(e.current?e.current[0]:void 0);!Ge(r.activeElement,ve.current)&&e.current&&ki(e.current)}n.current=!1},[e])}function Ux(e,t,n){be(()=>{if(t||n)return;let r=e.current;const o=ye(r?r[0]:void 0);let i=a=>{let s=a.target;Ge(s,e.current)?ve=e:l0(s)||(ve=null)};return o.addEventListener("focusin",i,!1),r==null||r.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,n])}function Hx(e){let t=ke.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Gx(e,t,n){const r=u.useRef(typeof document<"u"?ye(e.current?e.current[0]:void 0).activeElement:null);be(()=>{let o=e.current;const i=ye(o?o[0]:void 0);if(!t||n)return;let a=()=>{(!ve||Mi(ve,e))&&Ge(i.activeElement,e.current)&&(ve=e)};return i.addEventListener("focusin",a,!1),o==null||o.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,n]),be(()=>{const o=ye(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!_r(e))return;let s=o.activeElement;if(!Ge(s,e.current))return;let l=ke.getTreeNode(e);if(!l)return;let d=l.nodeToRestore,c=Ze(o.body,{tabbable:!0});c.currentNode=s;let f=a.shiftKey?c.previousNode():c.nextNode();if((!d||!o.body.contains(d)||d===o.body)&&(d=void 0,l.nodeToRestore=void 0),(!f||!Ge(f,e.current))&&d){c.currentNode=d;do f=a.shiftKey?c.previousNode():c.nextNode();while(Ge(f,e.current));a.preventDefault(),a.stopPropagation(),f?et(f,!0):l0(d)?et(d,!0):s.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),be(()=>{const o=ye(e.current?e.current[0]:void 0);if(!t)return;let i=ke.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let s=ke.getTreeNode(e);if(!s)return;let l=s.nodeToRestore;if(t&&l&&(Ge(o.activeElement,e.current)||o.activeElement===o.body&&Hx(e))){let d=ke.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let c=d.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){et(c.nodeToRestore);return}c=c.parent}for(c=d.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&ke.getTreeNode(c.scopeRef)){ki(c.scopeRef.current,!0);return}c=c.parent}}})}}}},[e,t])}function Ze(e,t,n){let r=t!=null&&t.tabbable?Kx:Nx,o=ye(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var a;return!(t==null||(a=t.from)===null||a===void 0)&&a.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&s0(i)&&(!n||Ge(i,n))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function u0(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||ye(r).activeElement,d=Ze(r,{tabbable:i,accept:s});r.contains(l)&&(d.currentNode=l);let c=d.nextNode();return!c&&a&&(d.currentNode=r,c=d.nextNode()),c&&et(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n,l=o||ye(r).activeElement,d=Ze(r,{tabbable:i,accept:s});if(r.contains(l))d.currentNode=l;else{let f=Ga(d);return f&&et(f,!0),f??null}let c=d.previousNode();if(!c&&a){d.currentNode=r;let f=Ga(d);if(!f)return null;c=f}return c&&et(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,s=Ze(r,{tabbable:o,accept:i}).nextNode();return s&&et(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=Ze(r,{tabbable:o,accept:i}),s=Ga(a);return s&&et(s,!0),s??null}}}function Ga(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Gl{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new _s({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ge(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Gl;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new _s({scopeRef:null}),this.fastMap.set(null,this.root)}}class _s{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let ke=new Gl;function Ye(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=u.useRef({isFocused:!1,isFocusVisible:t||lr()}),[i,a]=u.useState(!1),[s,l]=u.useState(()=>o.current.isFocused&&o.current.isFocusVisible),d=u.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),c=u.useCallback(h=>{o.current.isFocused=h,a(h),d()},[d]);Rx(h=>{o.current.isFocusVisible=h,d()},[],{isTextInput:n});let{focusProps:f}=ea({isDisabled:r,onFocusChange:c}),{focusWithinProps:p}=br({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:s,focusProps:r?p:f}}let Wx=u.createContext(null);function Yx(e){let t=u.useContext(Wx)||{};jl(t,e);let{ref:n,...r}=t;return r}function mr(e,t){let{focusProps:n}=ea(e),{keyboardProps:r}=zl(e),o=X(n,r),i=Yx(t),a=e.isDisabled?{}:i,s=u.useRef(e.autoFocus);return u.useEffect(()=>{s.current&&t.current&&kn(t.current),s.current=!1},[t]),{focusableProps:X({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}function qx(e,t){let n=t==null?void 0:t.isDisabled,[r,o]=u.useState(!1);return be(()=>{if(e!=null&&e.current&&!n){let i=()=>{if(e.current){let s=Ze(e.current,{tabbable:!0});o(!!s.nextNode())}};i();let a=new MutationObserver(i);return a.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{a.disconnect()}}}),n?!1:r}var c0=globalThis!=null&&globalThis.document?u.useLayoutEffect:u.useEffect;function Zx(e={}){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:a,sizes:s,ignoreFallback:l}=e,[d,c]=u.useState("pending");u.useEffect(()=>{c(n?"loading":"pending")},[n]);const f=u.useRef(),p=u.useCallback(()=>{if(!n)return;h();const b=new Image;b.src=n,a&&(b.crossOrigin=a),r&&(b.srcset=r),s&&(b.sizes=s),t&&(b.loading=t),b.onload=g=>{h(),c("loaded"),o==null||o(g)},b.onerror=g=>{h(),c("failed"),i==null||i(g)},f.current=b},[n,a,r,s,o,i,t]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return c0(()=>{if(!l)return d==="loading"&&p(),()=>{h()}},[d,p,l]),l?"loaded":d}function Xx(e={}){var t,n,r,o,i;const a=Mp(),s=!!a,{as:l,ref:d,src:c,name:f,icon:p,classNames:h,fallback:b,alt:g=f||"avatar",imgRef:y,color:$=(t=a==null?void 0:a.color)!=null?t:"default",radius:C=(n=a==null?void 0:a.radius)!=null?n:"full",size:w=(r=a==null?void 0:a.size)!=null?r:"md",isBordered:E=(o=a==null?void 0:a.isBordered)!=null?o:!1,isDisabled:P=(i=a==null?void 0:a.isDisabled)!=null?i:!1,isFocusable:k=!1,getInitials:N=R$,ignoreFallback:v=!1,showFallback:L=!1,ImgComponent:F="img",imgProps:A,className:B,onError:R,...I}=e,K=l||"span",V=As(d),T=As(y),{isFocusVisible:G,isFocused:Y,focusProps:H}=Ye(),{isHovered:D,hoverProps:O}=Fe({isDisabled:P}),J=Zx({src:c,onError:R,ignoreFallback:v})==="loaded",Q=(!c||!J)&&L,re=u.useMemo(()=>{var se;return I3({color:$,radius:C,size:w,isBordered:E,isDisabled:P,isInGroup:s,isInGridGroup:(se=a==null?void 0:a.isGrid)!=null?se:!1})},[$,C,w,E,P,s,a==null?void 0:a.isGrid]),z=sr(h==null?void 0:h.base,B),q=u.useMemo(()=>k||l==="button",[k,l]),te=u.useCallback((se={})=>({ref:V,tabIndex:q?0:-1,"data-hover":Et(D),"data-focus":Et(Y),"data-focus-visible":Et(G),className:re.base({class:sr(z,se==null?void 0:se.className)}),...X(I,O,q?H:{})}),[q,re,z,H,I]),ae=u.useCallback((se={})=>({ref:T,src:c,"data-loaded":Et(J),className:re.img({class:h==null?void 0:h.img}),...X(A,se)}),[re,J,A,c,T]);return{Component:K,ImgComponent:F,src:c,alt:g,icon:p,name:f,imgRef:T,slots:re,classNames:h,fallback:b,isImgLoaded:J,showFallback:Q,ignoreFallback:v,getInitials:N,getAvatarProps:te,getImageProps:ae}}const Jx=Symbol.for("react-aria.i18n.locale"),Qx=Symbol.for("react-aria.i18n.strings");let Hn;class In{getStringForLocale(t,n){let o=this.getStringsForLocale(n)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}getStringsForLocale(t){let n=this.strings[t];return n||(n=e5(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[Jx];if(Hn===void 0){let o=window[Qx];if(!o)return null;Hn={};for(let i in o)Hn[i]=new In({[n]:o[i]},n)}let r=Hn==null?void 0:Hn[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings={...t},this.defaultLocale=n}}function e5(e,t,n="en-US"){if(t[e])return t[e];let r=t5(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function t5(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const sd=new Map,ld=new Map;class d0{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,a=sd.get(i);a||(a=new Intl.PluralRules(this.locale,{type:r}),sd.set(i,a));let s=a.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=ld.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),ld.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}function Nt(e,t){return e-t*Math.floor(e/t)}const f0=1721426;function Dn(e,t,n,r){t=vo(e,t);let o=t-1,i=-2;return n<=2?i=0:nn(t)&&(i=-1),f0-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+i+r)}function nn(e){return e%4===0&&(e%100!==0||e%400===0)}function vo(e,t){return e==="BC"?1-t:t}function na(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const n5={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class nt{fromJulianDay(t){let n=t,r=n-f0,o=Math.floor(r/146097),i=Nt(r,146097),a=Math.floor(i/36524),s=Nt(i,36524),l=Math.floor(s/1461),d=Nt(s,1461),c=Math.floor(d/365),f=o*400+a*100+l*4+c+(a!==4&&c!==4?1:0),[p,h]=na(f),b=n-Dn(p,h,1,1),g=2;n<Dn(p,h,3,1)?g=0:nn(h)&&(g=1);let y=Math.floor(((b+g)*12+373)/367),$=n-Dn(p,h,y,1)+1;return new Re(p,h,y,$)}toJulianDay(t){return Dn(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return n5[nn(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return nn(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}function p0(e){return Lt(Date.now(),e)}function r5(e){return y0(p0(e))}function h0(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function b0(e,t){return ud(e)-ud(t)}function ud(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Wa=null;function Wl(){return Wa==null&&(Wa=new Intl.DateTimeFormat().resolvedOptions().timeZone),Wa}function o5(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function i5(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function ur(e){e=Xe(e,new nt);let t=vo(e.era,e.year);return m0(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function m0(e,t,n,r,o,i,a){let s=new Date;return s.setUTCHours(r,o,i,a),s.setUTCFullYear(e,t-1,n),s.getTime()}function zs(e,t){if(t==="UTC")return 0;if(e>0&&t===Wl())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:o,hour:i,minute:a,second:s}=g0(e,t);return m0(n,r,o,i,a,s,0)-Math.floor(e/1e3)*1e3}const cd=new Map;function g0(e,t){let n=cd.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),cd.set(t,n));let r=n.formatToParts(new Date(e)),o={};for(let i of r)i.type!=="literal"&&(o[i.type]=i.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const dd=864e5;function a5(e,t,n,r){return(n===r?[n]:[n,r]).filter(i=>s5(e,t,i))}function s5(e,t,n){let r=g0(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function It(e,t,n="compatible"){let r=ln(e);if(t==="UTC")return ur(r);if(t===Wl()&&n==="compatible"){r=Xe(r,new nt);let l=new Date,d=vo(r.era,r.year);return l.setFullYear(d,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let o=ur(r),i=zs(o-dd,t),a=zs(o+dd,t),s=a5(r,t,o-i,o-a);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-i,o-a);case"compatible":case"later":return Math.max(o-i,o-a);case"reject":throw new RangeError("No such absolute time found")}}function v0(e,t,n="compatible"){return new Date(It(e,t,n))}function Lt(e,t){let n=zs(e,t),r=new Date(e+n),o=r.getUTCFullYear(),i=r.getUTCMonth()+1,a=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),d=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new io(o,i,a,t,n,s,l,d,c)}function y0(e){return new Re(e.calendar,e.era,e.year,e.month,e.day)}function ln(e,t){let n=0,r=0,o=0,i=0;if("timeZone"in e)({hour:n,minute:r,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:o,millisecond:i}=t),new Ri(e.calendar,e.era,e.year,e.month,e.day,n,r,o,i)}function fd(e){return new oa(e.hour,e.minute,e.second,e.millisecond)}function Xe(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Rn(r),r}function $0(e,t,n){if(e instanceof io)return e.timeZone===t?e:u5(e,t);let r=It(e,t,n);return Lt(r,t)}function l5(e){let t=ur(e)-e.offset;return new Date(t)}function u5(e,t){let n=ur(e)-e.offset;return Xe(Lt(n,t),e.calendar)}const Br=36e5;function ra(e,t){let n=e.copy(),r="hour"in n?D0(n,t):0;Us(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Hs(n),x0(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,c5(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let o=n.calendar.getYearsInEra(n);if(n.year>o){var i,a;let l=(i=(a=n.calendar).isInverseEra)===null||i===void 0?void 0:i.call(a,n);n.year=o,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Us(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Hs(e){for(;e.month<1;)Us(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Us(e,1)}function c5(e){for(;e.day<1;)e.month--,Hs(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Hs(e)}function x0(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Rn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),x0(e)}function Yl(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function w0(e,t){return ra(e,Yl(t))}function ql(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Rn(n),n}function oo(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),C0(n),n}function d5(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Zo(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Zo(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Zo(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Zo(e.hour,24),t}function C0(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Zo(e,t){let n=e%t;return n<0&&(n+=t),n}function D0(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,d5(e)}function E0(e,t){let n=e.copy();return D0(n,t),n}function f5(e,t){return E0(e,Yl(t))}function Zl(e,t,n,r){let o=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Vt(l,n,0,s.length-1,r==null?void 0:r.round),o.era=s[l],Rn(o);break}case"year":var i,a;!((i=(a=o.calendar).isInverseEra)===null||i===void 0)&&i.call(a,o)&&(n=-n),o.year=Vt(e.year,n,-1/0,9999,r==null?void 0:r.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=Vt(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":o.day=Vt(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),Rn(o),o}function Xl(e,t,n,r){let o=e.copy();switch(t){case"hour":{let i=e.hour,a=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=i>=12;a=l?12:0,s=l?23:11}o.hour=Vt(i,n,a,s,r==null?void 0:r.round);break}case"minute":o.minute=Vt(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":o.second=Vt(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":o.millisecond=Vt(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function Vt(e,t,n,r,o=!1){if(o){e+=Math.sign(t),e<n&&(e=r);let i=Math.abs(t);t>0?e=Math.ceil(e/i)*i:e=Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function P0(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let o=ra(ln(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=It(o,e.timeZone)}else n=ur(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Lt(n,e.timeZone);return Xe(r,e.calendar)}function p5(e,t){return P0(e,Yl(t))}function h5(e,t,n,r){switch(t){case"hour":{let o=0,i=23;if((r==null?void 0:r.hourCycle)===12){let b=e.hour>=12;o=b?12:0,i=b?23:11}let a=ln(e),s=Xe(oo(a,{hour:o}),new nt),l=[It(s,e.timeZone,"earlier"),It(s,e.timeZone,"later")].filter(b=>Lt(b,e.timeZone).day===s.day)[0],d=Xe(oo(a,{hour:i}),new nt),c=[It(d,e.timeZone,"earlier"),It(d,e.timeZone,"later")].filter(b=>Lt(b,e.timeZone).day===d.day).pop(),f=ur(e)-e.offset,p=Math.floor(f/Br),h=f%Br;return f=Vt(p,n,Math.floor(l/Br),Math.floor(c/Br),r==null?void 0:r.round)*Br+h,Xe(Lt(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Xl(e,t,n,r);case"era":case"year":case"month":case"day":{let o=Zl(ln(e),t,n,r),i=It(o,e.timeZone);return Xe(Lt(i,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function b5(e,t,n){let r=ln(e),o=oo(ql(r,t),t);if(o.compare(r)===0)return e;let i=It(o,e.timeZone,n);return Xe(Lt(i,e.timeZone),e.calendar)}function S0(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function T0(e){let t=Xe(e,new nt);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function A0(e){return`${T0(e)}T${S0(e)}`}function m5(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function g5(e){return`${A0(e)}${m5(e.offset)}[${e.timeZone}]`}function Jl(e){let t=typeof e[0]=="object"?e.shift():new nt,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),o=e.shift(),i=e.shift();return[t,n,r,o,i]}var v5=new WeakMap;class Re{copy(){return this.era?new Re(this.calendar,this.era,this.year,this.month,this.day):new Re(this.calendar,this.year,this.month,this.day)}add(t){return ra(this,t)}subtract(t){return w0(this,t)}set(t){return ql(this,t)}cycle(t,n,r){return Zl(this,t,n,r)}toDate(t){return v0(this,t)}toString(){return T0(this)}compare(t){return h0(this,t)}constructor(...t){go(this,v5,{writable:!0,value:void 0});let[n,r,o,i,a]=Jl(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,Rn(this)}}var y5=new WeakMap;class oa{copy(){return new oa(this.hour,this.minute,this.second,this.millisecond)}add(t){return E0(this,t)}subtract(t){return f5(this,t)}set(t){return oo(this,t)}cycle(t,n,r){return Xl(this,t,n,r)}toString(){return S0(this)}compare(t){return b0(this,t)}constructor(t=0,n=0,r=0,o=0){go(this,y5,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=o,C0(this)}}var $5=new WeakMap;class Ri{copy(){return this.era?new Ri(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Ri(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return ra(this,t)}subtract(t){return w0(this,t)}set(t){return ql(oo(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Zl(this,t,n,r);default:return Xl(this,t,n,r)}}toDate(t,n){return v0(this,t,n)}toString(){return A0(this)}compare(t){let n=h0(this,t);return n===0?b0(this,ln(t)):n}constructor(...t){go(this,$5,{writable:!0,value:void 0});let[n,r,o,i,a]=Jl(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Rn(this)}}var x5=new WeakMap;class io{copy(){return this.era?new io(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new io(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return P0(this,t)}subtract(t){return p5(this,t)}set(t,n){return b5(this,t,n)}cycle(t,n,r){return h5(this,t,n,r)}toDate(){return l5(this)}toString(){return g5(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-$0(t,this.timeZone).toDate().getTime()}constructor(...t){go(this,x5,{writable:!0,value:void 0});let[n,r,o,i,a]=Jl(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Rn(this)}}const or=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],w5=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],di=[1867,1911,1925,1988,2018],en=["meiji","taisho","showa","heisei","reiwa"];function pd(e){const t=or.findIndex(([n,r,o])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<o);return t===-1?or.length-1:t===0?0:t-1}function Ya(e){let t=di[en.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Re(e.year+t,e.month,e.day)}class C5 extends nt{fromJulianDay(t){let n=super.fromJulianDay(t),r=pd(n);return new Re(this,en[r],n.year-di[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Ya(t))}balanceDate(t){let n=Ya(t),r=pd(n);en[r]!==t.era&&(t.era=en[r],t.year=n.year-di[r]),this.constrainDate(t)}constrainDate(t){let n=en.indexOf(t.era),r=w5[n];if(r!=null){let[o,i,a]=r,s=o-di[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(i,t.month),t.month===i&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,o,i]=or[n];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(i,t.day))}}getEras(){return en}getYearsInEra(t){let n=en.indexOf(t.era),r=or[n],o=or[n+1];if(o==null)return 9999-r[0]+1;let i=o[0]-r[0];return(t.month<o[1]||t.month===o[1]&&t.day<o[2])&&i++,i}getDaysInMonth(t){return super.getDaysInMonth(Ya(t))}getMinimumMonthInYear(t){let n=hd(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=hd(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function hd(e){if(e.year===1){let t=en.indexOf(e.era);return or[t]}}const M0=-543;class D5 extends nt{fromJulianDay(t){let n=super.fromJulianDay(t),r=vo(n.era,n.year);return new Re(this,r-M0,n.month,n.day)}toJulianDay(t){return super.toJulianDay(bd(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(bd(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function bd(e){let[t,n]=na(e.year+M0);return new Re(t,n,e.month,e.day)}const Fi=1911;function k0(e){return e.era==="minguo"?e.year+Fi:1-e.year+Fi}function md(e){let t=e-Fi;return t>0?["minguo",t]:["before_minguo",1-t]}class E5 extends nt{fromJulianDay(t){let n=super.fromJulianDay(t),r=vo(n.era,n.year),[o,i]=md(r);return new Re(this,o,i,n.month,n.day)}toJulianDay(t){return super.toJulianDay(gd(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=md(k0(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(gd(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Fi}constructor(...t){super(...t),this.identifier="roc"}}function gd(e){let[t,n]=na(k0(e));return new Re(t,n,e.month,e.day)}const P5=1948321;function S5(e){let t=e>0?e-474:e-473,n=Nt(t,2820)+474;return Nt((n+38)*31,128)<31}function Xo(e,t,n){let r=e>0?e-474:e-473,o=Nt(r,2820)+474,i=t<=7?31*(t-1):30*(t-1)+6;return P5-1+1029983*Math.floor(r/2820)+365*(o-1)+Math.floor((31*o-5)/128)+i+n}class T5{fromJulianDay(t){let n=t-Xo(475,1,1),r=Math.floor(n/1029983),o=Nt(n,1029983),i=o===1029982?2820:Math.floor((128*o+46878)/46751),a=474+2820*r+i;a<=0&&a--;let s=t-Xo(a,1,1)+1,l=s<=186?Math.ceil(s/31):Math.ceil((s-6)/31),d=t-Xo(a,l,1)+1;return new Re(this,a,l,d)}toJulianDay(t){return Xo(t.year,t.month,t.day)}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||S5(t.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const qa=78,vd=80;class A5 extends nt{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-qa,o=t-Dn(n.era,n.year,1,1),i;o<vd?(r--,i=nn(n.year-1)?31:30,o+=i+155+90+10):(i=nn(n.year)?31:30,o-=vd);let a,s;if(o<i)a=1,s=o+1;else{let l=o-i;l<155?(a=Math.floor(l/31)+2,s=l%31+1):(l-=155,a=Math.floor(l/30)+7,s=l%30+1)}return new Re(this,r,a,s)}toJulianDay(t){let n=t.year+qa,[r,o]=na(n),i,a;return nn(o)?(i=31,a=Dn(r,o,3,21)):(i=30,a=Dn(r,o,3,22)),t.month===1?a+t.day-1:(a+=i+Math.min(t.month-2,5)*31,t.month>=8&&(a+=(t.month-7)*30),a+=t.day-1,a)}getDaysInMonth(t){return t.month===1&&nn(t.year+qa)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Bi=1948440,yd=1948439,ut=1300,Gn=1600,M5=460322;function Ii(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function R0(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+Ii(t,r,1,1)))/29.5)+1),i=n-Ii(t,r,o,1)+1;return new Re(e,r,o,i)}function $d(e){return(14+11*e)%30<11}class Ql{fromJulianDay(t){return R0(this,Bi,t)}toJulianDay(t){return Ii(Bi,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&$d(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return $d(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class k5 extends Ql{fromJulianDay(t){return R0(this,yd,t)}toJulianDay(t){return Ii(yd,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const R5="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Gs,ir;function fi(e){return M5+ir[e-ut]}function zr(e,t){let n=e-ut,r=1<<11-(t-1);return Gs[n]&r?30:29}function xd(e,t){let n=fi(e);for(let r=1;r<t;r++)n+=zr(e,r);return n}function wd(e){return ir[e+1-ut]-ir[e-ut]}class F5 extends Ql{fromJulianDay(t){let n=t-Bi,r=fi(ut),o=fi(Gn);if(n<r||n>o)return super.fromJulianDay(t);{let i=ut-1,a=1,s=1;for(;s>0;){i++,s=n-fi(i)+1;let l=wd(i);if(s===l){a=12;break}else if(s<l){let d=zr(i,a);for(a=1;s>d;)s-=d,a++,d=zr(i,a);break}}return new Re(this,i,a,n-xd(i,a)+1)}}toJulianDay(t){return t.year<ut||t.year>Gn?super.toJulianDay(t):Bi+xd(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ut||t.year>Gn?super.getDaysInMonth(t):zr(t.year,t.month)}getDaysInYear(t){return t.year<ut||t.year>Gn?super.getDaysInYear(t):wd(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Gs||(Gs=new Uint16Array(Uint8Array.from(atob(R5),t=>t.charCodeAt(0)).buffer)),!ir){ir=new Uint32Array(Gn-ut+1);let t=0;for(let n=ut;n<=Gn;n++){ir[n-ut]=t;for(let r=1;r<=12;r++)t+=zr(n,r)}}}}const Cd=347997,F0=1080,B0=24*F0,B5=29,I5=12*F0+793,L5=B5*B0+I5;function $n(e){return Nt(e*7+1,19)<7}function pi(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Nt(3*(r+1),7)<3&&(r+=1),r}function V5(e){let t=pi(e-1),n=pi(e);return pi(e+1)-n===356?2:n-t===382?1:0}function Wr(e){return pi(e)+V5(e)}function I0(e){return Wr(e+1)-Wr(e)}function O5(e){let t=I0(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Jo(e,t){if(t>=6&&!$n(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=O5(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?$n(e)?30:0:30}class N5{fromJulianDay(t){let n=t-Cd,r=n*B0/L5,o=Math.floor((19*r+234)/235)+1,i=Wr(o),a=Math.floor(n-i);for(;a<1;)o--,i=Wr(o),a=Math.floor(n-i);let s=1,l=0;for(;l<a;)l+=Jo(o,s),s++;s--,l-=Jo(o,s);let d=a-l;return new Re(this,o,s,d)}toJulianDay(t){let n=Wr(t.year);for(let r=1;r<t.month;r++)n+=Jo(t.year,r);return n+t.day+Cd}getDaysInMonth(t){return Jo(t.year,t.month)}getMonthsInYear(t){return $n(t.year)?13:12}getDaysInYear(t){return I0(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&($n(n.year)&&!$n(t.year)&&n.month>6?t.month--:!$n(n.year)&&$n(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Ws=1723856,Dd=1824665,Ys=5500;function Li(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function eu(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Li(e,n,1,1))/30),o=t+1-Li(e,n,r,1);return[n,r,o]}function L0(e){return Math.floor(e%4/3)}function V0(e,t){return t%13!==0?30:L0(e)+5}class tu{fromJulianDay(t){let[n,r,o]=eu(Ws,t),i="AM";return n<=0&&(i="AA",n+=Ys),new Re(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Ys),Li(Ws,n,t.month,t.day)}getDaysInMonth(t){return V0(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+L0(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class K5 extends tu{fromJulianDay(t){let[n,r,o]=eu(Ws,t);return n+=Ys,new Re(this,"AA",n,r,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class j5 extends tu{fromJulianDay(t){let[n,r,o]=eu(Dd,t),i="CE";return n<=0&&(i="BCE",n=1-n),new Re(this,i,n,r,o)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Li(Dd,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),V0(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function O0(e){switch(e){case"buddhist":return new D5;case"ethiopic":return new tu;case"ethioaa":return new K5;case"coptic":return new j5;case"hebrew":return new N5;case"indian":return new A5;case"islamic-civil":return new Ql;case"islamic-tbla":return new k5;case"islamic-umalqura":return new F5;case"japanese":return new C5;case"persian":return new T5;case"roc":return new E5;case"gregory":default:return new nt}}let Za=new Map;class Yr{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),o=this.formatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return U5()&&(this.resolvedHourCycle||(this.resolvedHourCycle=H5(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=N0(t,n),this.options=n}}const _5={true:{ja:"h11"},false:{}};function N0(e,t={}){if(typeof t.hour12=="boolean"&&z5()){t={...t};let o=_5[String(t.hour12)][e.split("-")[0]],i=t.hour12?"h12":"h23";t.hourCycle=o??i,delete t.hour12}let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(Za.has(n))return Za.get(n);let r=new Intl.DateTimeFormat(e,t);return Za.set(n,r),r}let Xa=null;function z5(){return Xa==null&&(Xa=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Xa}let Ja=null;function U5(){return Ja==null&&(Ja=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Ja}function H5(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=N0(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(i=>i.type==="hour").value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(i=>i.type==="hour").value,10);if(r===0&&o===23)return"h23";if(r===24&&o===23)return"h24";if(r===0&&o===11)return"h11";if(r===12&&o===11)return"h12";throw new Error("Unexpected hour cycle result")}let Qa=new Map,qs=!1;try{qs=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Vi=!1;try{Vi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const K0={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Oi{format(t){let n="";if(!qs&&this.options.signDisplay!=null?n=W5(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Vi){var r;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return n;let s=(r=K0[o])===null||r===void 0?void 0:r[i];n+=s[a]||s.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!qs&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Vi&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=G5(t,n),this.options=n}}function G5(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Vi){var r;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=K0[a])===null||r===void 0)&&r[s]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(Qa.has(o))return Qa.get(o);let i=new Intl.NumberFormat(e,t);return Qa.set(o,i),i}function W5(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(n)}}const Y5=new RegExp("^.*\\(.*\\).*$"),q5=["latn","arab","hanidec"];class nu{parse(t){return es(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return es(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return es(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const Ed=new Map;function es(e,t,n){let r=Pd(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of q5)if(o!==r.options.numberingSystem){let i=Pd(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(n))return i}}return r}function Pd(e,t){let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),r=Ed.get(n);return r||(r=new Z5(e,t),Ed.set(n,r)),r}class Z5{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=Qo(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let o=n.indexOf("-");n=n.replace("-","");let i=n.indexOf(".");i===-1&&(i=n.length),n=n.replace(".",""),i-2===0?n=`0.${n}`:i-2===-1?n=`0.0${n}`:i-2===-2?n="0.00":n=`${n.slice(0,i-2)}.${n.slice(i-2)}`,o>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){let o={...this.options,style:"decimal",minimumFractionDigits:Math.min(this.options.minimumFractionDigits+2,20),maximumFractionDigits:Math.min(this.options.maximumFractionDigits+2,20)};return new nu(this.locale,o).parse(new Oi(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&Y5.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(t=Qo(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=Qo(t,".",String.fromCharCode(8239))),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=Qo(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=J5(t,this.formatter,this.options,n);var r,o;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const Sd=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),X5=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function J5(e,t,n,r){var o,i,a,s;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21}),d=l.formatToParts(-10000.111),c=l.formatToParts(10000.111),f=X5.map(F=>l.formatToParts(F));var p;let h=(p=(o=d.find(F=>F.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&p!==void 0?p:"-",b=(i=c.find(F=>F.type==="plusSign"))===null||i===void 0?void 0:i.value;!b&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(b="+");let y=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(F=>F.type==="decimal"))===null||a===void 0?void 0:a.value,$=(s=d.find(F=>F.type==="group"))===null||s===void 0?void 0:s.value,C=d.filter(F=>!Sd.has(F.type)).map(F=>Td(F.value)),w=f.flatMap(F=>F.filter(A=>!Sd.has(A.type)).map(A=>Td(A.value))),E=[...new Set([...C,...w])].sort((F,A)=>A.length-F.length),P=E.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${E.join("|")}|[\\p{White_Space}]`,"gu"),k=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),N=new Map(k.map((F,A)=>[F,A])),v=new RegExp(`[${k.join("")}]`,"g");return{minusSign:h,plusSign:b,decimal:y,group:$,literals:P,numeral:v,index:F=>String(N.get(F))}}function Qo(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Td(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Q5=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),e2=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function t2(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Q5.has(n.script)}let t=e.split("-")[0];return e2.has(t)}const n2=Symbol.for("react-aria.i18n.locale");function j0(){let e=typeof window<"u"&&window[n2]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:t2(e)?"rtl":"ltr"}}let Zs=j0(),Ur=new Set;function Ad(){Zs=j0();for(let e of Ur)e(Zs)}function r2(){let e=At(),[t,n]=u.useState(Zs);return u.useEffect(()=>(Ur.size===0&&window.addEventListener("languagechange",Ad),Ur.add(n),()=>{Ur.delete(n),Ur.size===0&&window.removeEventListener("languagechange",Ad)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const o2=u.createContext(null);function Ve(){let e=r2();return u.useContext(o2)||e}const Md=new WeakMap;function i2(e){let t=Md.get(e);return t||(t=new In(e),Md.set(e,t)),t}function _0(e,t){return t&&In.getGlobalDictionaryForPackage(t)||i2(e)}function gr(e,t){let{locale:n}=Ve(),r=_0(e,t);return u.useMemo(()=>new d0(n,r),[n,r])}function ei(e){e=px(e??{},a2);let{locale:t}=Ve();return u.useMemo(()=>new Yr(t,e),[t,e])}function a2(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o of n)if(t[o]!==e[o])return!1;return!0}function Ni(e={}){let{locale:t}=Ve();return u.useMemo(()=>new Oi(t,e),[t,e])}let ts=new Map;function ru(e){let{locale:t}=Ve(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(ts.has(n))return ts.get(n);let r=new Intl.Collator(t,e);return ts.set(n,r),r}function z0(e){let t=ru({usage:"search",...e}),n=u.useCallback((i,a)=>a.length===0?!0:(i=i.normalize("NFC"),a=a.normalize("NFC"),t.compare(i.slice(0,a.length),a)===0),[t]),r=u.useCallback((i,a)=>a.length===0?!0:(i=i.normalize("NFC"),a=a.normalize("NFC"),t.compare(i.slice(-a.length),a)===0),[t]),o=u.useCallback((i,a)=>{if(a.length===0)return!0;i=i.normalize("NFC"),a=a.normalize("NFC");let s=0,l=a.length;for(;s+l<=i.length;s++){let d=i.slice(s,s+l);if(t.compare(a,d)===0)return!0}return!1},[t]);return u.useMemo(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])}var U0={};U0={dismiss:"تجاهل"};var H0={};H0={dismiss:"Отхвърляне"};var G0={};G0={dismiss:"Odstranit"};var W0={};W0={dismiss:"Luk"};var Y0={};Y0={dismiss:"Schließen"};var q0={};q0={dismiss:"Απόρριψη"};var Z0={};Z0={dismiss:"Dismiss"};var X0={};X0={dismiss:"Descartar"};var J0={};J0={dismiss:"Lõpeta"};var Q0={};Q0={dismiss:"Hylkää"};var eh={};eh={dismiss:"Rejeter"};var th={};th={dismiss:"התעלם"};var nh={};nh={dismiss:"Odbaci"};var rh={};rh={dismiss:"Elutasítás"};var oh={};oh={dismiss:"Ignora"};var ih={};ih={dismiss:"閉じる"};var ah={};ah={dismiss:"무시"};var sh={};sh={dismiss:"Atmesti"};var lh={};lh={dismiss:"Nerādīt"};var uh={};uh={dismiss:"Lukk"};var ch={};ch={dismiss:"Negeren"};var dh={};dh={dismiss:"Zignoruj"};var fh={};fh={dismiss:"Descartar"};var ph={};ph={dismiss:"Dispensar"};var hh={};hh={dismiss:"Revocare"};var bh={};bh={dismiss:"Пропустить"};var mh={};mh={dismiss:"Zrušiť"};var gh={};gh={dismiss:"Opusti"};var vh={};vh={dismiss:"Odbaci"};var yh={};yh={dismiss:"Avvisa"};var $h={};$h={dismiss:"Kapat"};var xh={};xh={dismiss:"Скасувати"};var wh={};wh={dismiss:"取消"};var Ch={};Ch={dismiss:"關閉"};const kd={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function s2(e={}){let{style:t,isFocusable:n}=e,[r,o]=u.useState(!1),{focusWithinProps:i}=br({isDisabled:!n,onFocusWithinChange:s=>o(s)}),a=u.useMemo(()=>r?t:t?{...kd,...t}:kd,[r]);return{visuallyHiddenProps:{...i,style:a}}}function ia(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:a}=s2(e);return u.createElement(n,X(i,a),t)}function l2(e){return e&&e.__esModule?e.default:e}const Jn={top:"top",bottom:"top",left:"left",right:"left"},Ki={top:"bottom",bottom:"top",left:"right",right:"left"},u2={top:"left",left:"top"},Xs={top:"height",left:"width"},Dh={width:"totalWidth",height:"totalHeight"},ti={};let Je=typeof document<"u"&&window.visualViewport;function Rd(e){let t=0,n=0,r=0,o=0,i=0,a=0,s={},l=(Je==null?void 0:Je.scale)>1;if(e.tagName==="BODY"){let f=document.documentElement;r=f.clientWidth,o=f.clientHeight;var d;t=(d=Je==null?void 0:Je.width)!==null&&d!==void 0?d:r;var c;n=(c=Je==null?void 0:Je.height)!==null&&c!==void 0?c:o,s.top=f.scrollTop||e.scrollTop,s.left=f.scrollLeft||e.scrollLeft,Je&&(i=Je.offsetTop,a=Je.offsetLeft)}else({width:t,height:n,top:i,left:a}=ar(e)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,o=n;return Ol()&&(e.tagName==="BODY"||e.tagName==="HTML")&&l&&(s.top=0,s.left=0,i=Je.pageTop,a=Je.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:o,scroll:s,top:i,left:a}}function c2(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Fd(e,t,n,r,o,i,a){let s=o.scroll[e],l=r[Xs[e]],d=r.scroll[Jn[e]]+i,c=l+r.scroll[Jn[e]]-i,f=t-s+a[e]-r[Jn[e]],p=t-s+n+a[e]-r[Jn[e]];return f<d?d-f:p>c?Math.max(c-p,d-f):0}function d2(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Bd(e){if(ti[e])return ti[e];let[t,n]=e.split(" "),r=Jn[t]||"right",o=u2[r];Jn[n]||(n="center");let i=Xs[r],a=Xs[o];return ti[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:a},ti[e]}function ns(e,t,n,r,o,i,a,s,l,d){let{placement:c,crossPlacement:f,axis:p,crossAxis:h,size:b,crossSize:g}=r,y={};y[h]=e[h],f==="center"?y[h]+=(e[g]-n[g])/2:f!==h&&(y[h]+=e[g]-n[g]),y[h]+=i;const $=e[h]-n[g]+l+d,C=e[h]+e[g]-l-d;if(y[h]=pt(y[h],$,C),c===p){const w=s?a[b]:t[Dh[b]];y[Ki[p]]=Math.floor(w-e[p]+o)}else y[p]=Math.floor(e[p]+e[b]+o);return y}function f2(e,t,n,r,o,i,a,s){const l=r?n.height:t[Dh.height];let d=e.top!=null?n.top+e.top:n.top+(l-e.bottom-a),c=s!=="top"?Math.max(0,t.height+t.top+t.scroll.top-d-(o.top+o.bottom+i)):Math.max(0,d+a-(t.top+t.scroll.top)-(o.top+o.bottom+i));return Math.min(t.height-i*2,c)}function Id(e,t,n,r,o,i){let{placement:a,axis:s,size:l}=i;return a===s?Math.max(0,n[s]-e[s]-e.scroll[s]+t[s]-r[s]-r[Ki[s]]-o):Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-r[s]-r[Ki[s]]-o)}function p2(e,t,n,r,o,i,a,s,l,d,c,f,p,h,b,g){let y=Bd(e),{size:$,crossAxis:C,crossSize:w,placement:E,crossPlacement:P}=y,k=ns(t,s,n,y,c,f,d,p,b,g),N=c,v=Id(s,d,t,o,i+c,y);if(a&&r[$]>v){let Y=Bd(`${Ki[E]} ${P}`),H=ns(t,s,n,Y,c,f,d,p,b,g);Id(s,d,t,o,i+c,Y)>v&&(y=Y,k=H,N=c)}let L="bottom";y.axis==="top"?y.placement==="top"?L="top":y.placement==="bottom"&&(L="bottom"):y.crossAxis==="top"&&(y.crossPlacement==="top"?L="bottom":y.crossPlacement==="bottom"&&(L="top"));let F=Fd(C,k[C],n[w],s,l,i,d);k[C]+=F;let A=f2(k,s,d,p,o,i,n.height,L);h&&h<A&&(A=h),n.height=Math.min(n.height,A),k=ns(t,s,n,y,N,f,d,p,b,g),F=Fd(C,k[C],n[w],s,l,i,d),k[C]+=F;let B={},R=t[C]+.5*t[w]-n[C];const I=b/2+g,K=n[w]-b/2-g,V=t[C]-n[C]+b/2,T=t[C]+t[w]-n[C]-b/2,G=pt(R,V,T);return B[C]=pt(G,I,K),{position:k,maxHeight:A,arrowOffsetLeft:B.left,arrowOffsetTop:B.top,placement:y.placement}}function h2(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:s,offset:l,crossOffset:d,maxHeight:c,arrowSize:f=0,arrowBoundaryOffset:p=0}=e,h=r instanceof HTMLElement?b2(r):document.documentElement,b=h===document.documentElement;const g=window.getComputedStyle(h).position;let y=!!g&&g!=="static",$=b?ar(n):Ld(n,h);if(!b){let{marginTop:v,marginLeft:L}=window.getComputedStyle(n);$.top+=parseInt(v,10)||0,$.left+=parseInt(L,10)||0}let C=ar(r),w=d2(r);C.width+=w.left+w.right,C.height+=w.top+w.bottom;let E=c2(o),P=Rd(s),k=Rd(h),N=s.tagName==="BODY"?ar(h):Ld(h,s);return h.tagName==="HTML"&&s.tagName==="BODY"&&(k.scroll.top=0,k.scroll.left=0),p2(t,$,C,E,w,i,a,P,k,N,l,d,y,c,f,p)}function ar(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:a,clientTop:s,clientLeft:l}=document.documentElement;return{top:t+i-s,left:n+a-l,width:r,height:o}}function Ld(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:o,left:i,width:a,height:s}=e.getBoundingClientRect();r={top:o,left:i,width:a,height:s}}else{r=ar(e);let o=ar(t),i=window.getComputedStyle(t);o.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=o.top,r.left-=o.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function b2(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Vd(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Vd(t);)t=t.parentElement;return t||document.documentElement}function Vd(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const Eh=new WeakMap;function m2(e){let{triggerRef:t,isOpen:n,onClose:r}=e;u.useEffect(()=>{if(!n||r===null)return;let o=i=>{let a=i.target;if(!t.current||a instanceof Node&&!a.contains(t.current))return;let s=r||Eh.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let Te=typeof document<"u"&&window.visualViewport;function Ph(e){let{direction:t}=Ve(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:a="bottom",containerPadding:s=12,shouldFlip:l=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:c=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:h=!0,onClose:b,maxHeight:g,arrowBoundaryOffset:y=0}=e,[$,C]=u.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),w=[p,a,o.current,r.current,i.current,s,l,d,c,f,h,t,g,y,n],E=u.useRef(Te==null?void 0:Te.scale);u.useEffect(()=>{h&&(E.current=Te==null?void 0:Te.scale)},[h]);let P=u.useCallback(()=>{if(p===!1||!h||!o.current||!r.current||!i.current||!d||(Te==null?void 0:Te.scale)!==E.current)return;!g&&o.current&&(o.current.style.maxHeight="none");let v=h2({placement:v2(a,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current,padding:s,shouldFlip:l,boundaryElement:d,offset:c,crossOffset:f,maxHeight:g,arrowSize:n,arrowBoundaryOffset:y});Object.keys(v.position).forEach(L=>o.current.style[L]=v.position[L]+"px"),o.current.style.maxHeight=v.maxHeight!=null?v.maxHeight+"px":void 0,C(v)},w);be(P,w),g2(P),Kl({ref:o,onResize:P});let k=u.useRef(!1);be(()=>{let v,L=()=>{k.current=!0,clearTimeout(v),v=setTimeout(()=>{k.current=!1},500),P()},F=()=>{k.current&&L()};return Te==null||Te.addEventListener("resize",L),Te==null||Te.addEventListener("scroll",F),()=>{Te==null||Te.removeEventListener("resize",L),Te==null||Te.removeEventListener("scroll",F)}},[P]);let N=u.useCallback(()=>{k.current||b()},[b,k]);return m2({triggerRef:r,isOpen:h,onClose:b&&N}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...$.position,maxHeight:$.maxHeight}},placement:$.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$.arrowOffsetLeft,top:$.arrowOffsetTop}},updatePosition:P}}function g2(e){be(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function v2(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Rt=[];function ou(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;u.useEffect(()=>(o&&Rt.push(t),()=>{let b=Rt.indexOf(t);b>=0&&Rt.splice(b,1)}),[o,t]);let l=()=>{Rt[Rt.length-1]===t&&n&&n()},d=b=>{(!s||s(b.target))&&Rt[Rt.length-1]===t&&(b.stopPropagation(),b.preventDefault())},c=b=>{(!s||s(b.target))&&(Rt[Rt.length-1]===t&&(b.stopPropagation(),b.preventDefault()),l())},f=b=>{b.key==="Escape"&&!a&&(b.stopPropagation(),b.preventDefault(),l())};o0({ref:t,onInteractOutside:i&&o?c:null,onInteractOutsideStart:d});let{focusWithinProps:p}=br({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||_x(b.relatedTarget)||(!s||s(b.relatedTarget))&&n()}}),h=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:h}}}function y2(e,t,n){let{type:r}=e,{isOpen:o}=t;u.useEffect(()=>{n&&n.current&&Eh.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let a=_e();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?a:null,onPress:t.toggle},overlayProps:{id:a}}}const rs=typeof document<"u"&&window.visualViewport,$2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ni=0,os;function Sh(e={}){let{isDisabled:t}=e;be(()=>{if(!t)return ni++,ni===1&&(pr()?os=w2():os=x2()),()=>{ni--,ni===0&&os()}},[t])}function x2(){return an(Qn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qn(document.documentElement,"overflow","hidden"))}function w2(){let e,t,n=d=>{e=to(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Qn(e,"overscrollBehavior","contain"))},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()},o=d=>{let c=d.target;Nd(c)&&c!==document.activeElement&&(d.preventDefault(),s(),c.style.transform="translateY(-2000px)",c.focus(),requestAnimationFrame(()=>{c.style.transform=""})),t&&t()},i=d=>{let c=d.target;Nd(c)&&(s(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",rs&&(rs.height<window.innerHeight?requestAnimationFrame(()=>{Od(c)}):rs.addEventListener("resize",()=>Od(c),{once:!0}))}))},a=null,s=()=>{if(a)return;let d=()=>{window.scrollTo(0,0)},c=window.pageXOffset,f=window.pageYOffset;a=an(Ir(window,"scroll",d),Qn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qn(document.documentElement,"overflow","hidden"),Qn(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(c,f)}),window.scrollTo(0,0)},l=an(Ir(document,"touchstart",n,{passive:!1,capture:!0}),Ir(document,"touchmove",r,{passive:!1,capture:!0}),Ir(document,"touchend",o,{passive:!1,capture:!0}),Ir(document,"focus",i,!0));return()=>{t==null||t(),a==null||a(),l()}}function Qn(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Ir(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Od(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=to(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top;o>r+e.clientHeight&&(n.scrollTop+=o-r)}e=n.parentElement}}function Nd(e){return e instanceof HTMLInputElement&&!$2.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const Js=u.createContext(null);function C2(e){let{children:t}=e,n=u.useContext(Js),[r,o]=u.useState(0),i=u.useMemo(()=>({parent:n,modalCount:r,addModal(){o(a=>a+1),n&&n.addModal()},removeModal(){o(a=>a-1),n&&n.removeModal()}}),[n,r]);return u.createElement(Js.Provider,{value:i},t)}function D2(){let e=u.useContext(Js);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function E2(e){let{modalProviderProps:t}=D2();return u.createElement("div",{"data-overlay-container":!0,...e,...t})}function P2(e){return u.createElement(C2,null,u.createElement(E2,e))}function Kd(e){let t=At(),{portalContainer:n=t?null:document.body,...r}=e;if(u.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let o=u.createElement(P2,r);return Wt.createPortal(o,n)}var Th={};Th={"ar-AE":U0,"bg-BG":H0,"cs-CZ":G0,"da-DK":W0,"de-DE":Y0,"el-GR":q0,"en-US":Z0,"es-ES":X0,"et-EE":J0,"fi-FI":Q0,"fr-FR":eh,"he-IL":th,"hr-HR":nh,"hu-HU":rh,"it-IT":oh,"ja-JP":ih,"ko-KR":ah,"lt-LT":sh,"lv-LV":lh,"nb-NO":uh,"nl-NL":ch,"pl-PL":dh,"pt-BR":fh,"pt-PT":ph,"ro-RO":hh,"ru-RU":bh,"sk-SK":mh,"sl-SI":gh,"sr-SP":vh,"sv-SE":yh,"tr-TR":$h,"uk-UA":xh,"zh-CN":wh,"zh-TW":Ch};function Qs(e){let{onDismiss:t,...n}=e,r=gr(l2(Th),"@react-aria/overlays"),o=An(n,r.format("dismiss")),i=()=>{t&&t()};return u.createElement(ia,null,u.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let Lr=new WeakMap,ot=[];function iu(e,t=document.body){let n=new Set(e),r=new Set,o=l=>{for(let p of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let d=p=>{if(n.has(p)||r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of n)if(p.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),f=d(l);if(f===NodeFilter.FILTER_ACCEPT&&i(l),f!==NodeFilter.FILTER_REJECT){let p=c.nextNode();for(;p!=null;)i(p),p=c.nextNode()}},i=l=>{var d;let c=(d=Lr.get(l))!==null&&d!==void 0?d:0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),r.add(l),Lr.set(l,c+1))};ot.length&&ot[ot.length-1].disconnect(),o(t);let a=new MutationObserver(l=>{for(let d of l)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(d.target))){for(let c of d.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of d.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&o(c)}});a.observe(t,{childList:!0,subtree:!0});let s={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return ot.push(s),()=>{a.disconnect();for(let l of r){let d=Lr.get(l);d===1?(l.removeAttribute("aria-hidden"),Lr.delete(l)):Lr.set(l,d-1)}s===ot[ot.length-1]?(ot.pop(),ot.length&&ot[ot.length-1].observe()):ot.splice(ot.indexOf(s),1)}}function S2(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a,...s}=e,{overlayProps:l,underlayProps:d}=ou({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a},r),{overlayProps:c,arrowProps:f,placement:p}=Ph({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return Sh({isDisabled:o||!t.isOpen}),be(()=>{if(t.isOpen&&!o&&r.current)return iu([r.current])},[o,t.isOpen,r]),{popoverProps:X(l,c),arrowProps:f,underlayProps:d,placement:p}}const Ah=u.createContext(null);function Mh(e){let t=At(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,i]=u.useState(!1),a=u.useMemo(()=>({contain:o,setContain:i}),[o,i]);if(!n)return null;let s=e.children;return e.disableFocusManagement||(s=u.createElement(Ul,{restoreFocus:!0,contain:o&&!r},s)),s=u.createElement(Ah.Provider,{value:a},u.createElement(Dx,null,s)),Wt.createPortal(s,n)}function kh(){let e=u.useContext(Ah),t=e==null?void 0:e.setContain;be(()=>{t==null||t(!0)},[t])}function T2(e,t,n){let{overlayProps:r,underlayProps:o}=ou({...e,isOpen:t.isOpen,onClose:t.close},n);return Sh({isDisabled:!t.isOpen}),kh(),u.useEffect(()=>{if(t.isOpen)return iu([n.current])},[t.isOpen,n]),{modalProps:X(r),underlayProps:o}}function aa(e){return u.forwardRef(e)}var Rh=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return n?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,a)=>({...i,[a]:e[a]}),{}),r]:[e,r]},Fh=aa((e,t)=>{const{Component:n,ImgComponent:r,src:o,icon:i=S.jsx(A$,{}),alt:a,classNames:s,slots:l,name:d,showFallback:c,fallback:f,getInitials:p,getAvatarProps:h,getImageProps:b}=Xx({...e,ref:t}),g=u.useMemo(()=>!c&&o?null:f?S.jsx("div",{"aria-label":a,className:l.fallback({class:s==null?void 0:s.fallback}),role:"img",children:f}):d?S.jsx("span",{"aria-label":a,className:l.name({class:s==null?void 0:s.name}),role:"img",children:p(d)}):S.jsx("span",{"aria-label":a,className:l.icon({class:s==null?void 0:s.icon}),role:"img",children:i}),[c,o,f,d,s]);return S.jsxs(n,{...h(),children:[o&&S.jsx(r,{...b(),alt:a}),g]})});Fh.displayName="NextUI.Avatar";var Bh=Fh;function A2(e={}){const{as:t,ref:n,max:r=5,total:o,size:i,color:a,radius:s,children:l,isBordered:d,isDisabled:c,isGrid:f,renderCount:p,className:h,classNames:b,...g}=e,y=As(n),$=t||"div",C=u.useMemo(()=>({size:i,color:a,radius:s,isGrid:f,isBordered:d,isDisabled:c}),[i,a,s,f,d,c]),w=u.useMemo(()=>L3({className:h,isGrid:f}),[h,f]),E=W$(l),P=r?E.slice(0,r):E,k=o||(r!=null?E.length-r:-1),N=P.map((F,A)=>{const B=A===0,R=A===P.length-1,I={className:sr(B?"ms-0":f?"":"-ms-2",R&&k<1?"hover:-translate-x-0":"")};return u.cloneElement(F,I$(I))});return{Component:$,context:C,remainingCount:k,clones:N,renderCount:p,getAvatarGroupProps:()=>({ref:y,className:w.base({class:sr(b==null?void 0:b.base,h)}),role:"group",...g}),getAvatarGroupCountProps:()=>({className:w.count({class:b==null?void 0:b.count})})}}var Ih=aa((e,t)=>{const{Component:n,clones:r,context:o,remainingCount:i,getAvatarGroupCountProps:a,getAvatarGroupProps:s,renderCount:l=d=>S.jsx(Bh,{...a(),name:`+${d}`})}=A2({...e,ref:t});return S.jsx(n,{...s(),children:S.jsxs(Y$,{value:o,children:[r,i>0&&l(i)]})})});Ih.displayName="NextUI.AvatarGroup";var M2=Ih;const x={fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"],monospace:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:100,extralight:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},borderRadius:{.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{primary:"#4785ff",secondary:"#b8cfff",tertiary:"#d6e4ff",background:"#f0f5ff",inherit:"inherit",current:"currentColor",transparent:"transparent",black:"rgb(0 0 0)",white:"rgb(255 255 255)",slate:{50:"rgb(248 250 252)",100:"rgb(241 245 249)",200:"rgb(226 232 240)",300:"rgb(203 213 225)",400:"rgb(148 163 184)",500:"rgb(100 116 139)",600:"rgb(71 85 105)",700:"rgb(51 65 85)",800:"rgb(30 41 59)",900:"rgb(15 23 42)"},gray:{50:"rgb(249 250 251)",100:"rgb(243 244 246)",200:"rgb(229 231 235)",300:"rgb(209 213 219)",400:"rgb(156 163 175)",500:"rgb(107 114 128)",600:"rgb(75 85 99)",700:"rgb(55 65 81)",800:"rgb(31 41 55)",900:"rgb(17 24 39)"},zinc:{50:"rgb(250 250 250)",100:"rgb(244 244 245)",200:"rgb(228 228 231)",300:"rgb(212 212 216)",400:"rgb(161 161 170)",500:"rgb(113 113 122)",600:"rgb(82 82 91)",700:"rgb(63 63 70)",800:"rgb(39 39 42)",900:"rgb(24 24 27)"},neutral:{50:"rgb(250 250 250)",100:"rgb(245 245 245)",200:"rgb(229 229 229)",300:"rgb(212 212 212)",400:"rgb(163 163 163)",500:"rgb(115 115 115)",600:"rgb(82 82 82)",700:"rgb(64 64 64)",800:"rgb(38 38 38)",900:"rgb(23 23 23)"},stone:{50:"rgb(250 250 249)",100:"rgb(245 245 244)",200:"rgb(231 229 228)",300:"rgb(214 211 209)",400:"rgb(168 162 158)",500:"rgb(120 113 108)",600:"rgb(87 83 78)",700:"rgb(68 64 60)",800:"rgb(41 37 36)",900:"rgb(28 25 23)"},red:{50:"rgb(254 242 242)",100:"rgb(254 226 226)",200:"rgb(254 202 202)",300:"rgb(252 165 165)",400:"rgb(248 113 113)",500:"rgb(239 68 68)",600:"rgb(220 38 38)",700:"rgb(185 28 28)",800:"rgb(153 27 27)",900:"rgb(127 29 29)"},orange:{50:"rgb(255 247 237)",100:"rgb(255 237 213)",200:"rgb(254 215 170)",300:"rgb(253 186 116)",400:"rgb(251 146 60)",500:"rgb(249 115 22)",600:"rgb(234 88 12)",700:"rgb(194 65 12)",800:"rgb(154 52 18)",900:"rgb(124 45 18)"},amber:{50:"rgb(255 251 235)",100:"rgb(254 243 199)",200:"rgb(253 230 138)",300:"rgb(252 211 77)",400:"rgb(251 191 36)",500:"rgb(245 158 11)",600:"rgb(217 119 6)",700:"rgb(180 83 9)",800:"rgb(146 64 14)",900:"rgb(120 53 15)"},yellow:{50:"rgb(254 252 232)",100:"rgb(254 249 195)",200:"rgb(254 240 138)",300:"rgb(253 224 71)",400:"rgb(250 204 21)",500:"rgb(234 179 8)",600:"rgb(202 138 4)",700:"rgb(161 98 7)",800:"rgb(133 77 14)",900:"rgb(113 63 18)"},lime:{50:"rgb(247 254 231)",100:"rgb(236 252 203)",200:"rgb(217 249 157)",300:"rgb(190 242 100)",400:"rgb(163 230 53)",500:"rgb(132 204 22)",600:"rgb(101 163 13)",700:"rgb(77 124 15)",800:"rgb(63 98 18)",900:"rgb(54 83 20)"},green:{50:"rgb(240 253 244)",100:"rgb(220 252 231)",200:"rgb(187 247 208)",300:"rgb(134 239 172)",400:"rgb(74 222 128)",500:"rgb(34 197 94)",600:"rgb(22 163 74)",700:"rgb(21 128 61)",800:"rgb(22 101 52)",900:"rgb(20 83 45)"},emerald:{50:"rgb(236 253 245)",100:"rgb(209 250 229)",200:"rgb(167 243 208)",300:"rgb(110 231 183)",400:"rgb(52 211 153)",500:"rgb(16 185 129)",600:"rgb(5 150 105)",700:"rgb(4 120 87)",800:"rgb(6 95 70)",900:"rgb(6 78 59)"},teal:{50:"rgb(240 253 250)",100:"rgb(204 251 241)",200:"rgb(153 246 228)",300:"rgb(94 234 212)",400:"rgb(45 212 191)",500:"rgb(20 184 166)",600:"rgb(13 148 136)",700:"rgb(15 118 110)",800:"rgb(17 94 89)",900:"rgb(19 78 74)"},cyan:{50:"rgb(236 254 255)",100:"rgb(207 250 254)",200:"rgb(165 243 252)",300:"rgb(103 232 249)",400:"rgb(34 211 238)",500:"rgb(6 182 212)",600:"rgb(8 145 178)",700:"rgb(14 116 144)",800:"rgb(21 94 117)",900:"rgb(22 78 99)"},sky:{50:"rgb(240 249 255)",100:"rgb(224 242 254)",200:"rgb(186 230 253)",300:"rgb(125 211 252)",400:"rgb(56 189 248)",500:"rgb(14 165 233)",600:"rgb(2 132 199)",700:"rgb(3 105 161)",800:"rgb(7 89 133)",900:"rgb(12 74 110)"},blue:{50:"rgb(239 246 255)",100:"rgb(219 234 254)",200:"rgb(191 219 254)",300:"rgb(147 197 253)",400:"rgb(96 165 250)",500:"rgb(59 130 246)",600:"rgb(37 99 235)",700:"rgb(29 78 216)",800:"rgb(30 64 175)",900:"rgb(30 58 138)"},indigo:{50:"rgb(238 242 255)",100:"rgb(224 231 255)",200:"rgb(199 210 254)",300:"rgb(165 180 252)",400:"rgb(129 140 248)",500:"rgb(99 102 241)",600:"rgb(79 70 229)",700:"rgb(67 56 202)",800:"rgb(55 48 163)",900:"rgb(49 46 129)"},violet:{50:"rgb(245 243 255)",100:"rgb(237 233 254)",200:"rgb(221 214 254)",300:"rgb(196 181 253)",400:"rgb(167 139 250)",500:"rgb(139 92 246)",600:"rgb(124 58 237)",700:"rgb(109 40 217)",800:"rgb(91 33 182)",900:"rgb(76 29 149)"},purple:{50:"rgb(250 245 255)",100:"rgb(243 232 255)",200:"rgb(233 213 255)",300:"rgb(216 180 254)",400:"rgb(192 132 252)",500:"rgb(168 85 247)",600:"rgb(147 51 234)",700:"rgb(126 34 206)",800:"rgb(107 33 168)",900:"rgb(88 28 135)"},fuchsia:{50:"rgb(253 244 255)",100:"rgb(250 232 255)",200:"rgb(245 208 254)",300:"rgb(240 171 252)",400:"rgb(232 121 249)",500:"rgb(217 70 239)",600:"rgb(192 38 211)",700:"rgb(162 28 175)",800:"rgb(134 25 143)",900:"rgb(112 26 117)"},pink:{50:"rgb(253 242 248)",100:"rgb(252 231 243)",200:"rgb(251 207 232)",300:"rgb(249 168 212)",400:"rgb(244 114 182)",500:"rgb(236 72 153)",600:"rgb(219 39 119)",700:"rgb(190 24 93)",800:"rgb(157 23 77)",900:"rgb(131 24 67)"},rose:{50:"rgb(255 241 242)",100:"rgb(255 228 230)",200:"rgb(254 205 211)",300:"rgb(253 164 175)",400:"rgb(251 113 133)",500:"rgb(244 63 94)",600:"rgb(225 29 72)",700:"rgb(190 18 60)",800:"rgb(159 18 57)",900:"rgb(136 19 55)"}},spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},height:{auto:"auto",px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},components:{button:{primary:{color:"#FFF",backgroundColor:"#000"}},Card:{border:"1px solid rgb(226 232 240)",padding:"1rem",backgroundColor:"transparent",borderRadius:"2px",boxShadow:"rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px"},"Card.Content":{padding:0,fontSize:"0.9rem"},"Card.Header":{fontSize:"1.125rem",fontWeight:"700",marginBottom:"1rem"}}};function Lh(e,t){const n={...e};return Object.entries(t).forEach(([r,o])=>{o!==null&&typeof o=="object"&&!Array.isArray(o)?((n[r]===void 0||n[r]===null)&&(n[r]={}),n[r]=Lh(n[r],o)):n[r]=o}),n}const k2=_.styled.div`
40
40
  z-index: 1;
41
41
 
42
42
  &:not(:first-child) {
@@ -48,7 +48,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
48
48
  transform: ${({isInGroup:e,isGrid:t})=>!t&&e?"translateY(-0.8rem)":"none"};
49
49
  }
50
50
  }
51
- `,R2=_(Bh)`
51
+ `,R2=_.styled(Bh)`
52
52
  background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[100])??x.colors.slate[100]}};
53
53
  display: flex;
54
54
  align-items: center;
@@ -95,12 +95,12 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
95
95
  overflow: hidden;
96
96
  text-align: center;
97
97
  }
98
- `;function F2({icon:e,...t}){const n=Mp();return S.jsx(k2,{isInGroup:!!n,isGrid:!!(n!=null&&n.isGrid),children:S.jsx(R2,{...t,icon:e||S.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M20 21C20 19.6044 20 18.9067 19.8278 18.3389C19.44 17.0605 18.4395 16.06 17.1611 15.6722C16.5933 15.5 15.8956 15.5 14.5 15.5H9.5C8.10444 15.5 7.40665 15.5 6.83886 15.6722C5.56045 16.06 4.56004 17.0605 4.17224 18.3389C4 18.9067 4 19.6044 4 21M16.5 7.5C16.5 9.98528 14.4853 12 12 12C9.51472 12 7.5 9.98528 7.5 7.5C7.5 5.01472 9.51472 3 12 3C14.4853 3 16.5 5.01472 16.5 7.5Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})}const B2=_(M2)`
98
+ `;function F2({icon:e,...t}){const n=Mp();return S.jsx(k2,{isInGroup:!!n,isGrid:!!(n!=null&&n.isGrid),children:S.jsx(R2,{...t,icon:e||S.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M20 21C20 19.6044 20 18.9067 19.8278 18.3389C19.44 17.0605 18.4395 16.06 17.1611 15.6722C16.5933 15.5 15.8956 15.5 14.5 15.5H9.5C8.10444 15.5 7.40665 15.5 6.83886 15.6722C5.56045 16.06 4.56004 17.0605 4.17224 18.3389C4 18.9067 4 19.6044 4 21M16.5 7.5C16.5 9.98528 14.4853 12 12 12C9.51472 12 7.5 9.98528 7.5 7.5C7.5 5.01472 9.51472 3 12 3C14.4853 3 16.5 5.01472 16.5 7.5Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})}const B2=_.styled(M2)`
99
99
  display: ${({isGrid:e})=>e?"inline-grid":"flex"};
100
100
  grid-template-columns: repeat(4, minmax(0, 1fr));
101
101
  align-items: center;
102
102
  gap: ${({isGrid:e})=>e?"0.75rem":"0"};
103
- `;function I2({children:e,isGrid:t,renderCount:n}){return S.jsx(B2,{isGrid:t,max:0,renderCount:n??(()=>{}),children:e})}const au=u.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),sa=u.createContext({}),la=u.createContext(null),su=typeof document<"u",lu=su?u.useLayoutEffect:u.useEffect,uu=u.createContext({strict:!1}),cu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),L2="framerAppearId",Vh="data-"+cu(L2),V2={skipAnimations:!1,useManualTiming:!1};class jd{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function O2(e){let t=new jd,n=new jd,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,d=!1,c=!1)=>{const f=c&&o,p=f?t:n;return d&&a.add(l),p.add(l)&&f&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let d=0;d<r;d++){const c=t.order[d];a.has(c)&&(s.schedule(c),e()),c(l)}o=!1,i&&(i=!1,s.process(l))}};return s}const ri=["read","resolveKeyframes","update","preRender","render","postRender"],N2=40;function Oh(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=ri.reduce((f,p)=>(f[p]=O2(()=>n=!0),f),{}),a=f=>{i[f].process(o)},s=()=>{const f=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(f-o.timestamp,N2),1),o.timestamp=f,o.isProcessing=!0,ri.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(s))},l=()=>{n=!0,r=!0,o.isProcessing||e(s)};return{schedule:ri.reduce((f,p)=>{const h=i[p];return f[p]=(b,g=!1,y=!1)=>(n||l(),h.schedule(b,g,y)),f},{}),cancel:f=>ri.forEach(p=>i[p].cancel(f)),state:o,steps:i}}const{schedule:du,cancel:CA}=Oh(queueMicrotask,!1);function K2(e,t,n,r){const{visualElement:o}=u.useContext(sa),i=u.useContext(uu),a=u.useContext(la),s=u.useContext(au).reducedMotion,l=u.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const d=l.current;u.useInsertionEffect(()=>{d&&d.update(n,a)});const c=u.useRef(!!(n[Vh]&&!window.HandoffComplete));return lu(()=>{d&&(du.postRender(d.render),c.current&&d.animationState&&d.animationState.animateChanges())}),u.useEffect(()=>{d&&(d.updateFeatures(),!c.current&&d.animationState&&d.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),d}function er(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function j2(e,t,n){return u.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):er(n)&&(n.current=r))},[t])}function ao(e){return typeof e=="string"||Array.isArray(e)}function ua(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const fu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pu=["initial",...fu];function ca(e){return ua(e.animate)||pu.some(t=>ao(e[t]))}function Nh(e){return!!(ca(e)||e.variants)}function _2(e,t){if(ca(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ao(n)?n:void 0,animate:ao(r)?r:void 0}}return e.inherit!==!1?t:{}}function z2(e){const{initial:t,animate:n}=_2(e,u.useContext(sa));return u.useMemo(()=>({initial:t,animate:n}),[_d(t),_d(n)])}function _d(e){return Array.isArray(e)?e.join(" "):e}const zd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},so={};for(const e in zd)so[e]={isEnabled:t=>zd[e].some(n=>!!t[n])};function el(e){for(const t in e)so[t]={...so[t],...e[t]}}const hu=u.createContext({}),Kh=u.createContext({}),U2=Symbol.for("motionComponentSymbol");function H2({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&el(e);function i(s,l){let d;const c={...u.useContext(au),...s,layoutId:G2(s)},{isStatic:f}=c,p=z2(s),h=r(s,f);if(!f&&su){p.visualElement=K2(o,h,c,t);const b=u.useContext(Kh),g=u.useContext(uu).strict;p.visualElement&&(d=p.visualElement.loadFeatures(c,g,e,b))}return S.jsxs(sa.Provider,{value:p,children:[d&&p.visualElement?S.jsx(d,{visualElement:p.visualElement,...c}):null,n(o,s,j2(h,p.visualElement,l),h,f,p.visualElement)]})}const a=u.forwardRef(i);return a[U2]=o,a}function G2({layoutId:e}){const t=u.useContext(hu).id;return t&&e!==void 0?t+"-"+e:e}function jh(e){function t(r,o={}){return H2(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const W2=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function bu(e){return typeof e!="string"||e.includes("-")?!1:!!(W2.indexOf(e)>-1||/[A-Z]/u.test(e))}const ji={};function Y2(e){Object.assign(ji,e)}const yo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ln=new Set(yo);function _h(e,{layout:t,layoutId:n}){return Ln.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ji[e]||e==="opacity")}const We=e=>!!(e&&e.getVelocity),q2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Z2=yo.length;function X2(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;a<Z2;a++){const s=yo[a];if(e[s]!==void 0){const l=q2[s]||s;i+=`${l}(${e[s]}) `}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}const zh=e=>t=>typeof t=="string"&&t.startsWith(e),Uh=zh("--"),J2=zh("var(--"),mu=e=>J2(e)?Q2.test(e.split("/*")[0].trim()):!1,Q2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,e6=(e,t)=>t&&typeof e=="number"?t.transform(e):e,un=(e,t,n)=>n>t?t:n<e?e:n,vr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qr={...vr,transform:e=>un(0,1,e)},oi={...vr,default:1},Zr=e=>Math.round(e*1e5)/1e5,gu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,t6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,n6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function $o(e){return typeof e=="string"}const xo=e=>({test:t=>$o(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qt=xo("deg"),St=xo("%"),ne=xo("px"),r6=xo("vh"),o6=xo("vw"),Ud={...St,parse:e=>St.parse(e)/100,transform:e=>St.transform(e*100)},Hd={...vr,transform:Math.round},Hh={borderWidth:ne,borderTopWidth:ne,borderRightWidth:ne,borderBottomWidth:ne,borderLeftWidth:ne,borderRadius:ne,radius:ne,borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomRightRadius:ne,borderBottomLeftRadius:ne,width:ne,maxWidth:ne,height:ne,maxHeight:ne,size:ne,top:ne,right:ne,bottom:ne,left:ne,padding:ne,paddingTop:ne,paddingRight:ne,paddingBottom:ne,paddingLeft:ne,margin:ne,marginTop:ne,marginRight:ne,marginBottom:ne,marginLeft:ne,rotate:Qt,rotateX:Qt,rotateY:Qt,rotateZ:Qt,scale:oi,scaleX:oi,scaleY:oi,scaleZ:oi,skew:Qt,skewX:Qt,skewY:Qt,distance:ne,translateX:ne,translateY:ne,translateZ:ne,x:ne,y:ne,z:ne,perspective:ne,transformPerspective:ne,opacity:qr,originX:Ud,originY:Ud,originZ:ne,zIndex:Hd,backgroundPositionX:ne,backgroundPositionY:ne,fillOpacity:qr,strokeOpacity:qr,numOctaves:Hd};function vu(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,d=!1,c=!0;for(const f in t){const p=t[f];if(Uh(f)){i[f]=p;continue}const h=Hh[f],b=e6(p,h);if(Ln.has(f)){if(l=!0,a[f]=b,!c)continue;p!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(d=!0,s[f]=b):o[f]=b}if(t.transform||(l||r?o.transform=X2(e.transform,n,c,r):o.transform&&(o.transform="none")),d){const{originX:f="50%",originY:p="50%",originZ:h=0}=s;o.transformOrigin=`${f} ${p} ${h}`}}const yu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Gh(e,t,n){for(const r in t)!We(t[r])&&!_h(r,n)&&(e[r]=t[r])}function i6({transformTemplate:e},t,n){return u.useMemo(()=>{const r=yu();return vu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function a6(e,t,n){const r=e.style||{},o={};return Gh(o,r,e),Object.assign(o,i6(e,t,n)),o}function s6(e,t,n){const r={},o=a6(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const l6=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function _i(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||l6.has(e)}let Wh=e=>!_i(e);function u6(e){e&&(Wh=t=>t.startsWith("on")?!_i(t):e(t))}try{u6(require("@emotion/is-prop-valid").default)}catch{}function c6(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Wh(o)||n===!0&&_i(o)||!t&&!_i(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Gd(e,t,n){return typeof e=="string"?e:ne.transform(t+n*e)}function d6(e,t,n){const r=Gd(t,e.x,e.width),o=Gd(n,e.y,e.height);return`${r} ${o}`}const f6={offset:"stroke-dashoffset",array:"stroke-dasharray"},p6={offset:"strokeDashoffset",array:"strokeDasharray"};function h6(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?f6:p6;e[i.offset]=ne.transform(-r);const a=ne.transform(t),s=ne.transform(n);e[i.array]=`${a} ${s}`}function $u(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...d},c,f,p){if(vu(e,d,c,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:b,dimensions:g}=e;h.transform&&(g&&(b.transform=h.transform),delete h.transform),g&&(o!==void 0||i!==void 0||b.transform)&&(b.transformOrigin=d6(g,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),a!==void 0&&h6(h,a,s,l,!1)}const Yh=()=>({...yu(),attrs:{}}),xu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function b6(e,t,n,r){const o=u.useMemo(()=>{const i=Yh();return $u(i,t,{enableHardwareAcceleration:!1},xu(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Gh(i,e.style,e),o.style={...i,...o.style}}return o}function m6(e=!1){return(n,r,o,{latestValues:i},a)=>{const l=(bu(n)?b6:s6)(r,i,a,n),d=c6(r,typeof n=="string",e),c=n!==u.Fragment?{...d,...l,ref:o}:{},{children:f}=r,p=u.useMemo(()=>We(f)?f.get():f,[f]);return u.createElement(n,{...c,children:p})}}function qh(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Zh=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Xh(e,t,n,r){qh(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Zh.has(o)?o:cu(o),t.attrs[o])}function wu(e,t,n){var r;const{style:o}=e,i={};for(const a in o)(We(o[a])||t.style&&We(t.style[a])||_h(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[a]=o[a]);return i}function Jh(e,t,n){const r=wu(e,t,n);for(const o in e)if(We(e[o])||We(t[o])){const i=yo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function Cu(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function Qh(e){const t=u.useRef(null);return t.current===null&&(t.current=e()),t.current}const tl=e=>Array.isArray(e),g6=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),v6=e=>tl(e)?e[e.length-1]||0:e;function hi(e){const t=We(e)?e.get():e;return g6(t)?t.toValue():t}function y6({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:$6(r,o,i,e),renderState:t()};return n&&(a.mount=s=>n(r,s,a)),a}const eb=e=>(t,n)=>{const r=u.useContext(sa),o=u.useContext(la),i=()=>y6(e,t,r,o);return n?i():Qh(i)};function $6(e,t,n,r){const o={},i=r(e,{});for(const p in i)o[p]=hi(i[p]);let{initial:a,animate:s}=e;const l=ca(e),d=Nh(e);t&&d&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=n?n.initial===!1:!1;c=c||a===!1;const f=c?s:a;return f&&typeof f!="boolean"&&!ua(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const b=Cu(e,h);if(!b)return;const{transitionEnd:g,transition:y,...$}=b;for(const C in $){let w=$[C];if(Array.isArray(w)){const E=c?w.length-1:0;w=w[E]}w!==null&&(o[C]=w)}for(const C in g)o[C]=g[C]}),o}const ze=e=>e,{schedule:Le,cancel:cn,state:je,steps:is}=Oh(typeof requestAnimationFrame<"u"?requestAnimationFrame:ze,!0),x6={useVisualState:eb({scrapeMotionValuesFromProps:Jh,createRenderState:Yh,onMount:(e,t,{renderState:n,latestValues:r})=>{Le.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Le.render(()=>{$u(n,r,{enableHardwareAcceleration:!1},xu(t.tagName),e.transformTemplate),Xh(t,n)})}})},w6={useVisualState:eb({scrapeMotionValuesFromProps:wu,createRenderState:yu})};function tb(e,{forwardMotionProps:t=!1},n,r){return{...bu(e)?x6:w6,preloadedFeatures:n,useRender:m6(t),createVisualElement:r,Component:e}}function Ot(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const nb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function da(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const C6=e=>t=>nb(t)&&e(t,da(t));function Kt(e,t,n,r){return Ot(e,t,C6(n),r)}const D6=(e,t)=>n=>t(e(n)),jt=(...e)=>e.reduce(D6);function rb(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Wd=rb("dragHorizontal"),Yd=rb("dragVertical");function ob(e){let t=!1;if(e==="y")t=Yd();else if(e==="x")t=Wd();else{const n=Wd(),r=Yd();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ib(){const e=ob(!0);return e?(e(),!1):!0}class fn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function qd(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,a)=>{if(i.pointerType==="touch"||ib())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t);const l=s[r];l&&l(i,a)};return Kt(e.current,n,o,{passive:!e.getProps()[r]})}class E6 extends fn{mount(){this.unmount=jt(qd(this.node,!0),qd(this.node,!1))}unmount(){}}class P6 extends fn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=jt(Ot(this.node.current,"focus",()=>this.onFocus()),Ot(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ab=(e,t)=>t?e===t?!0:ab(e,t.parentElement):!1;function as(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,da(n))}class S6 extends fn{constructor(){super(...arguments),this.removeStartListeners=ze,this.removeEndListeners=ze,this.removeAccessibleListeners=ze,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Kt(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:d,onTapCancel:c,globalTapTarget:f}=this.node.getProps();!f&&!ab(this.node.current,s.target)?c&&c(s,l):d&&d(s,l)},{passive:!(r.onTap||r.onPointerUp)}),a=Kt(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=jt(i,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||as("up",(l,d)=>{const{onTap:c}=this.node.getProps();c&&c(l,d)})};this.removeEndListeners(),this.removeEndListeners=Ot(this.node.current,"keyup",a),as("down",(s,l)=>{this.startPress(s,l)})},n=Ot(this.node.current,"keydown",t),r=()=>{this.isPressing&&as("cancel",(i,a)=>this.cancelPress(i,a))},o=Ot(this.node.current,"blur",r);this.removeAccessibleListeners=jt(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&r(t,n)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ib()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&r(t,n)}mount(){const t=this.node.getProps(),n=Kt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Ot(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=jt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const nl=new WeakMap,ss=new WeakMap,T6=e=>{const t=nl.get(e.target);t&&t(e)},A6=e=>{e.forEach(T6)};function M6({root:e,...t}){const n=e||document;ss.has(n)||ss.set(n,{});const r=ss.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(A6,{root:e,...t})),r[o]}function k6(e,t,n){const r=M6(t);return nl.set(e,n),r.observe(e),()=>{nl.delete(e),r.unobserve(e)}}const R6={some:0,all:1};class F6 extends fn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:R6[o]},s=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),p=d?c:f;p&&p(l)};return k6(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(B6(t,n))&&this.startObserver()}unmount(){}}function B6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const sb={inView:{Feature:F6},tap:{Feature:S6},focus:{Feature:P6},hover:{Feature:E6}};function lb(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function I6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function L6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function fa(e,t,n){const r=e.getProps();return Cu(r,t,n!==void 0?n:r.custom,I6(e),L6(e))}const _t=e=>e*1e3,zt=e=>e/1e3,V6={type:"spring",stiffness:500,damping:25,restSpeed:10},O6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),N6={type:"keyframes",duration:.8},K6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},j6=(e,{keyframes:t})=>t.length>2?N6:Ln.has(e)?e.startsWith("scale")?O6(t[1]):V6:K6;function _6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:d,...c}){return!!Object.keys(c).length}function Du(e,t){return e[t]||e.default||e}const z6=e=>e!==null;function pa(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(z6),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}let bi;function U6(){bi=void 0}const on={now:()=>(bi===void 0&&on.set(je.isProcessing||V2.useManualTiming?je.timestamp:performance.now()),bi),set:e=>{bi=e,queueMicrotask(U6)}},ub=e=>/^0[^.\s]+$/u.test(e);function H6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ub(e):!0}let wo=ze,Tt=ze;process.env.NODE_ENV!=="production"&&(wo=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Tt=(e,t)=>{if(!e)throw new Error(t)});const cb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),G6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function W6(e){const t=G6.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Y6=4;function db(e,t,n=1){Tt(n<=Y6,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=W6(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return cb(a)?parseFloat(a):a}return mu(o)?db(o,t,n+1):o}const q6=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Zd=e=>e===vr||e===ne,Xd=(e,t)=>parseFloat(e.split(", ")[t]),Jd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Xd(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Xd(i[1],e):0}},Z6=new Set(["x","y","z"]),X6=yo.filter(e=>!Z6.has(e));function J6(e){const t=[];return X6.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const cr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Jd(4,13),y:Jd(5,14)};cr.translateX=cr.x;cr.translateY=cr.y;const fb=e=>t=>t.test(e),Q6={test:e=>e==="auto",parse:e=>e},pb=[vr,ne,St,Qt,o6,r6,Q6],Qd=e=>pb.find(fb(e)),Pn=new Set;let rl=!1,ol=!1;function hb(){if(ol){const e=Array.from(Pn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=J6(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,a])=>{var s;(s=r.getValue(i))===null||s===void 0||s.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ol=!1,rl=!1,Pn.forEach(e=>e.complete()),Pn.clear()}function bb(){Pn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ol=!0)})}function ew(){bb(),hb()}class Eu{constructor(t,n,r,o,i,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Pn.add(this),rl||(rl=!0,Le.read(bb),Le.resolveKeyframes(hb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const a=o==null?void 0:o.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const l=r.readValue(n,s);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=s),o&&a===void 0&&o.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Pn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Pn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Pu=(e,t)=>n=>!!($o(n)&&n6.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),mb=(e,t,n)=>r=>{if(!$o(r))return r;const[o,i,a,s]=r.match(gu);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},tw=e=>un(0,255,e),ls={...vr,transform:e=>Math.round(tw(e))},En={test:Pu("rgb","red"),parse:mb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ls.transform(e)+", "+ls.transform(t)+", "+ls.transform(n)+", "+Zr(qr.transform(r))+")"};function nw(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const il={test:Pu("#"),parse:nw,transform:En.transform},tr={test:Pu("hsl","hue"),parse:mb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+St.transform(Zr(t))+", "+St.transform(Zr(n))+", "+Zr(qr.transform(r))+")"},He={test:e=>En.test(e)||il.test(e)||tr.test(e),parse:e=>En.test(e)?En.parse(e):tr.test(e)?tr.parse(e):il.parse(e),transform:e=>$o(e)?e:e.hasOwnProperty("red")?En.transform(e):tr.transform(e)};function rw(e){var t,n;return isNaN(e)&&$o(e)&&(((t=e.match(gu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(t6))===null||n===void 0?void 0:n.length)||0)>0}const gb="number",vb="color",ow="var",iw="var(",ef="${}",aw=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function zi(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(aw,l=>(He.test(l)?(r.color.push(i),o.push(vb),n.push(He.parse(l))):l.startsWith(iw)?(r.var.push(i),o.push(ow),n.push(l)):(r.number.push(i),o.push(gb),n.push(parseFloat(l))),++i,ef)).split(ef);return{values:n,split:s,indexes:r,types:o}}function yb(e){return zi(e).values}function $b(e){const{split:t,types:n}=zi(e),r=t.length;return o=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],o[a]!==void 0){const s=n[a];s===gb?i+=Zr(o[a]):s===vb?i+=He.transform(o[a]):i+=o[a]}return i}}const sw=e=>typeof e=="number"?0:e;function lw(e){const t=yb(e);return $b(e)(t.map(sw))}const dn={test:rw,parse:yb,createTransformer:$b,getAnimatableNone:lw},uw=new Set(["brightness","contrast","saturate","opacity"]);function cw(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(gu)||[];if(!r)return e;const o=n.replace(r,"");let i=uw.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const dw=/\b([a-z-]*)\(.*?\)/gu,al={...dn,getAnimatableNone:e=>{const t=e.match(dw);return t?t.map(cw).join(" "):e}},fw={...Hh,color:He,backgroundColor:He,outlineColor:He,fill:He,stroke:He,borderColor:He,borderTopColor:He,borderRightColor:He,borderBottomColor:He,borderLeftColor:He,filter:al,WebkitFilter:al},Su=e=>fw[e];function xb(e,t){let n=Su(e);return n!==al&&(n=dn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function pw(e,t,n){let r=0,o;for(;r<e.length&&!o;)typeof e[r]=="string"&&e[r]!=="none"&&e[r]!=="0"&&(o=e[r]),r++;if(o&&n)for(const i of t)e[i]=xb(n,o)}class wb extends Eu{constructor(t,n,r,o){super(t,n,r,o,o==null?void 0:o.owner,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){const d=t[l];if(typeof d=="string"&&mu(d)){const c=db(d,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=d)}}if(!q6.has(r)||t.length!==2)return this.resolveNoneKeyframes();const[o,i]=t,a=Qd(o),s=Qd(i);if(a!==s)if(Zd(a)&&Zd(s))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)H6(t[o])&&r.push(o);r.length&&pw(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=cr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const a=o.length-1,s=o[a];o[a]=cr[r](n.measureViewportBox(),window.getComputedStyle(n.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,d])=>{n.getValue(l).set(d)}),this.resolveNoneKeyframes()}}function hw(e){let t;return()=>(t===void 0&&(t=e()),t)}const tf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(dn.test(e)||e==="0")&&!e.startsWith("url("));function bw(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function mw(e,t,n,r){const o=e[0];if(o===null)return!1;const i=e[e.length-1],a=tf(o,t),s=tf(i,t);return wo(a===s,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!a||!s?!1:bw(e)||n==="spring"&&r}class Cb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:a,...s},this.updateFinishedPromise()}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ew(),this._resolved}onKeyframesResolved(t,n){this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:a,onComplete:s,onUpdate:l,isGenerator:d}=this.options;if(!d&&!mw(t,r,o,i))if(a)this.options.duration=0;else{l==null||l(pa(t,this.options,n)),s==null||s(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function Db(e,t){return t?e*(1e3/t):0}const gw=5;function Eb(e,t,n){const r=Math.max(t-gw,0);return Db(n-e(r),t-r)}const us=.001,vw=.01,nf=10,yw=.05,$w=1;function xw({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;wo(e<=_t(nf),"Spring duration must be 10 seconds or less");let a=1-t;a=un(yw,$w,a),e=un(vw,nf,zt(e)),a<1?(o=d=>{const c=d*a,f=c*e,p=c-n,h=sl(d,a),b=Math.exp(-f);return us-p/h*b},i=d=>{const f=d*a*e,p=f*n+n,h=Math.pow(a,2)*Math.pow(d,2)*e,b=Math.exp(-f),g=sl(Math.pow(d,2),a);return(-o(d)+us>0?-1:1)*((p-h)*b)/g}):(o=d=>{const c=Math.exp(-d*e),f=(d-n)*e+1;return-us+c*f},i=d=>{const c=Math.exp(-d*e),f=(n-d)*(e*e);return c*f});const s=5/e,l=Cw(o,i,s);if(e=_t(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const ww=12;function Cw(e,t,n){let r=n;for(let o=1;o<ww;o++)r=r-e(r)/t(r);return r}function sl(e,t){return e*Math.sqrt(1-t*t)}const Dw=["duration","bounce"],Ew=["stiffness","damping","mass"];function rf(e,t){return t.some(n=>e[n]!==void 0)}function Pw(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!rf(e,Ew)&&rf(e,Dw)){const n=xw(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Pb({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:d,duration:c,velocity:f,isResolvedFromDuration:p}=Pw({...r,velocity:-zt(r.velocity||0)}),h=f||0,b=l/(2*Math.sqrt(s*d)),g=i-o,y=zt(Math.sqrt(s/d)),$=Math.abs(g)<5;n||(n=$?.01:2),t||(t=$?.005:.5);let C;if(b<1){const w=sl(y,b);C=E=>{const P=Math.exp(-b*y*E);return i-P*((h+b*y*g)/w*Math.sin(w*E)+g*Math.cos(w*E))}}else if(b===1)C=w=>i-Math.exp(-y*w)*(g+(h+y*g)*w);else{const w=y*Math.sqrt(b*b-1);C=E=>{const P=Math.exp(-b*y*E),k=Math.min(w*E,300);return i-P*((h+b*y*g)*Math.sinh(k)+w*g*Math.cosh(k))/w}}return{calculatedDuration:p&&c||null,next:w=>{const E=C(w);if(p)a.done=w>=c;else{let P=h;w!==0&&(b<1?P=Eb(C,w,E):P=0);const k=Math.abs(P)<=n,N=Math.abs(i-E)<=t;a.done=k&&N}return a.value=a.done?i:E,a}}}function of({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:d=.5,restSpeed:c}){const f=e[0],p={done:!1,value:f},h=v=>s!==void 0&&v<s||l!==void 0&&v>l,b=v=>s===void 0?l:l===void 0||Math.abs(s-v)<Math.abs(l-v)?s:l;let g=n*t;const y=f+g,$=a===void 0?y:a(y);$!==y&&(g=$-f);const C=v=>-g*Math.exp(-v/r),w=v=>$+C(v),E=v=>{const L=C(v),F=w(v);p.done=Math.abs(L)<=d,p.value=p.done?$:F};let P,k;const N=v=>{h(p.value)&&(P=v,k=Pb({keyframes:[p.value,b(p.value)],velocity:Eb(w,v,p.value),damping:o,stiffness:i,restDelta:d,restSpeed:c}))};return N(0),{calculatedDuration:null,next:v=>{let L=!1;return!k&&P===void 0&&(L=!0,E(v),N(v)),P!==void 0&&v>=P?k.next(v-P):(!L&&E(v),p)}}}const Sb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Sw=1e-7,Tw=12;function Aw(e,t,n,r,o){let i,a,s=0;do a=t+(n-t)/2,i=Sb(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>Sw&&++s<Tw);return a}function Co(e,t,n,r){if(e===t&&n===r)return ze;const o=i=>Aw(i,0,1,e,n);return i=>i===0||i===1?i:Sb(o(i),t,r)}const Mw=Co(.42,0,1,1),kw=Co(0,0,.58,1),Tb=Co(.42,0,.58,1),Rw=e=>Array.isArray(e)&&typeof e[0]!="number",Ab=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Mb=e=>t=>1-e(1-t),Tu=e=>1-Math.sin(Math.acos(e)),kb=Mb(Tu),Fw=Ab(Tu),Rb=Co(.33,1.53,.69,.99),Au=Mb(Rb),Bw=Ab(Au),Iw=e=>(e*=2)<1?.5*Au(e):.5*(2-Math.pow(2,-10*(e-1))),af={linear:ze,easeIn:Mw,easeInOut:Tb,easeOut:kw,circIn:Tu,circInOut:Fw,circOut:kb,backIn:Au,backInOut:Bw,backOut:Rb,anticipate:Iw},sf=e=>{if(Array.isArray(e)){Tt(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Co(t,n,r,o)}else if(typeof e=="string")return Tt(af[e]!==void 0,`Invalid easing type '${e}'`),af[e];return e},lo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ee=(e,t,n)=>e+(t-e)*n;function cs(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Lw({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=cs(l,s,e+1/3),i=cs(l,s,e),a=cs(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}const ds=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Vw=[il,En,tr],Ow=e=>Vw.find(t=>t.test(e));function lf(e){const t=Ow(e);Tt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===tr&&(n=Lw(n)),n}const uf=(e,t)=>{const n=lf(e),r=lf(t),o={...n};return i=>(o.red=ds(n.red,r.red,i),o.green=ds(n.green,r.green,i),o.blue=ds(n.blue,r.blue,i),o.alpha=Ee(n.alpha,r.alpha,i),En.transform(o))};function ll(e,t){return n=>n>0?t:e}function Nw(e,t){return n=>Ee(e,t,n)}function Mu(e){return typeof e=="number"?Nw:typeof e=="string"?mu(e)?ll:He.test(e)?uf:_w:Array.isArray(e)?Fb:typeof e=="object"?He.test(e)?uf:Kw:ll}function Fb(e,t){const n=[...e],r=n.length,o=e.map((i,a)=>Mu(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=o[a](i);return n}}function Kw(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Mu(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function jw(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=(n=e.values[s])!==null&&n!==void 0?n:0;r[i]=l,o[a]++}return r}const _w=(e,t)=>{const n=dn.createTransformer(t),r=zi(e),o=zi(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?jt(Fb(jw(r,o),o.values),n):(wo(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ll(e,t))};function Bb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ee(e,t,n):Mu(e)(e,t)}function zw(e,t,n){const r=[],o=n||Bb,i=e.length-1;for(let a=0;a<i;a++){let s=o(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||ze:t;s=jt(l,s)}r.push(s)}return r}function Uw(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Tt(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=zw(t,r,o),s=a.length,l=d=>{let c=0;if(s>1)for(;c<e.length-2&&!(d<e[c+1]);c++);const f=lo(e[c],e[c+1],d);return a[c](f)};return n?d=>l(un(e[0],e[i-1],d)):l}function Hw(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=lo(0,t,r);e.push(Ee(n,1,o))}}function Gw(e){const t=[0];return Hw(t,e.length-1),t}function Ww(e,t){return e.map(n=>n*t)}function Yw(e,t){return e.map(()=>t||Tb).splice(0,e.length-1)}function Ui({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Rw(r)?r.map(sf):sf(r),i={done:!1,value:t[0]},a=Ww(n&&n.length===t.length?n:Gw(t),e),s=Uw(a,t,{ease:Array.isArray(o)?o:Yw(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}const cf=2e4;function qw(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<cf;)t+=n,r=e.next(t);return t>=cf?1/0:t}const Zw=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Le.update(t,!0),stop:()=>cn(t),now:()=>je.isProcessing?je.timestamp:on.now()}},Xw={decay:of,inertia:of,tween:Ui,keyframes:Ui,spring:Pb},Jw=e=>e/100;class ku extends Cb{constructor({KeyframeResolver:t=Eu,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:s}=this.options;s&&s()};const{name:r,motionValue:o,keyframes:i}=this.options,a=(s,l)=>this.onKeyframesResolved(s,l);r&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(i,a,r,o):this.resolver=new t(i,a,r,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:a=0}=this.options,s=Xw[n]||Ui;let l,d;s!==Ui&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Tt(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=jt(Jw,Bb(t[0],t[1])),t=[0,100]);const c=s({...this.options,keyframes:t});i==="mirror"&&(d=s({...this.options,keyframes:[...t].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=qw(c));const{calculatedDuration:f}=c,p=f+o,h=p*(r+1)-o;return{generator:c,mirroredGenerator:d,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:p,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:v}=this.options;return{done:!0,value:v[v.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:d,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return i.next(0);const{delay:p,repeat:h,repeatType:b,repeatDelay:g,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const $=this.currentTime-p*(this.speed>=0?1:-1),C=this.speed>=0?$<0:$>c;this.currentTime=Math.max($,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let w=this.currentTime,E=i;if(h){const v=Math.min(this.currentTime,c)/f;let L=Math.floor(v),F=v%1;!F&&v>=1&&(F=1),F===1&&L--,L=Math.min(L,h+1),!!(L%2)&&(b==="reverse"?(F=1-F,g&&(F-=g/f)):b==="mirror"&&(E=a)),w=un(0,1,F)*f}const P=C?{done:!1,value:l[0]}:E.next(w);s&&(P.value=s(P.value));let{done:k}=P;!C&&d!==null&&(k=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return N&&o!==void 0&&(P.value=pa(l,this.options,o)),y&&y(P.value),N&&this.finish(),P}get duration(){const{resolved:t}=this;return t?zt(t.calculatedDuration):0}get time(){return zt(this.currentTime)}set time(t){t=_t(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=zt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Zw,onPlay:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Ib=e=>Array.isArray(e)&&typeof e[0]=="number";function Lb(e){return!!(!e||typeof e=="string"&&e in Ru||Ib(e)||Array.isArray(e)&&e.every(Lb))}const Hr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ru={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hr([0,.65,.55,1]),circOut:Hr([.55,0,1,.45]),backIn:Hr([.31,.01,.66,-.59]),backOut:Hr([.33,1.53,.69,.99])};function Qw(e){return Vb(e)||Ru.easeOut}function Vb(e){if(e)return Ib(e)?Hr(e):Array.isArray(e)?e.map(Qw):Ru[e]}function e7(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const d={[t]:n};l&&(d.offset=l);const c=Vb(s);return Array.isArray(c)&&(d.easing=c),e.animate(d,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}const t7=hw(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),n7=new Set(["opacity","clipPath","filter","transform"]),Hi=10,r7=2e4;function o7(e){return e.type==="spring"||e.name==="backgroundColor"||!Lb(e.ease)}function i7(e,t){const n=new ku({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<r7;)r=n.sample(i),o.push(r.value),i+=Hi;return{times:void 0,keyframes:o,duration:i-Hi,ease:"linear"}}class df extends Cb{constructor(t){super(t);const{name:n,motionValue:r,keyframes:o}=this.options;this.resolver=new wb(o,(i,a)=>this.onKeyframesResolved(i,a),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:a,type:s,motionValue:l,name:d}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(o7(this.options)){const{onComplete:f,onUpdate:p,motionValue:h,...b}=this.options,g=i7(t,b);t=g.keyframes,t.length===1&&(t[1]=t[0]),o=g.duration,i=g.times,a=g.ease,s="keyframes"}const c=e7(l.owner.current,d,t,{...this.options,duration:o,times:i,ease:a});return c.startTime=on.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;l.set(pa(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:o,times:i,type:s,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return zt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return zt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=_t(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return ze;const{animation:r}=n;r.timeline=t,r.onfinish=null}return ze}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:a,times:s}=t;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:l,onUpdate:d,onComplete:c,...f}=this.options,p=new ku({...f,keyframes:r,duration:o,type:i,ease:a,times:s,isGenerator:!0}),h=_t(this.time);l.setWithVelocity(p.sample(h-Hi).value,p.sample(h).value,Hi)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:a,type:s}=t;return t7()&&r&&n7.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&a!==0&&s!=="inertia"}}const Fu=(e,t,n,r={},o,i)=>a=>{const s=Du(r,e)||{},l=s.delay||r.delay||0;let{elapsed:d=0}=r;d=d-_t(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-d,onUpdate:p=>{t.set(p),s.onUpdate&&s.onUpdate(p)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};_6(s)||(c={...c,...j6(e,c)}),c.duration&&(c.duration=_t(c.duration)),c.repeatDelay&&(c.repeatDelay=_t(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const p=pa(c.keyframes,s);if(p!==void 0){Le.update(()=>{c.onUpdate(p),c.onComplete()});return}}return!i&&df.supports(c)?new df(c):new ku(c)};function Gi(e){return!!(We(e)&&e.add)}function Bu(e,t){e.indexOf(t)===-1&&e.push(t)}function Iu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Lu{constructor(){this.subscriptions=[]}add(t){return Bu(this.subscriptions,t),()=>Iu(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ff=new Set;function Vu(e,t,n){e||ff.has(t)||(console.warn(t),n&&console.warn(n),ff.add(t))}const pf=30,a7=e=>!isNaN(parseFloat(e));class s7{constructor(t,n={}){this.version="11.1.7",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=on.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=a7(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=on.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Vu(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Lu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Le.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=on.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>pf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,pf);return Db(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function uo(e,t){return new s7(e,t)}function l7(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,uo(n))}function u7(e,t){const n=fa(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const a in i){const s=v6(i[a]);l7(e,a,s)}}function c7({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ob(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;const d=e.getValue("willChange");r&&(a=r);const c=[],f=o&&e.animationState&&e.animationState.getState()[o];for(const p in l){const h=e.getValue(p,(i=e.latestValues[p])!==null&&i!==void 0?i:null),b=l[p];if(b===void 0||f&&c7(f,p))continue;const g={delay:n,elapsed:0,...Du(a||{},p)};let y=!1;if(window.HandoffAppearAnimations){const w=e.getProps()[Vh];if(w){const E=window.HandoffAppearAnimations(w,p);E!==null&&(g.elapsed=E,y=!0)}}h.start(Fu(p,h,b,e.shouldReduceMotion&&Ln.has(p)?{type:!1}:g,e,y));const $=h.animation;$&&(Gi(d)&&(d.add(p),$.then(()=>d.remove(p))),c.push($))}return s&&Promise.all(c).then(()=>{Le.update(()=>{s&&u7(e,s)})}),c}function ul(e,t,n={}){var r;const o=fa(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const a=o?()=>Promise.all(Ob(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:p}=i;return d7(e,t,c+d,f,p,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[d,c]=l==="beforeChildren"?[a,s]:[s,a];return d().then(()=>c())}else return Promise.all([a(),s(n.delay)])}function d7(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=o===1?(d=0)=>d*r:(d=0)=>s-d*r;return Array.from(e.variantChildren).sort(f7).forEach((d,c)=>{d.notify("AnimationStart",t),a.push(ul(d,t,{...i,delay:n+l(c)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function f7(e,t){return e.sortNodePosition(t)}function p7(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>ul(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=ul(e,t,n);else{const o=typeof t=="function"?fa(e,t,n.custom):t;r=Promise.all(Ob(e,o,n))}return r.then(()=>{Le.postRender(()=>{e.notify("AnimationComplete",t)})})}const h7=[...fu].reverse(),b7=fu.length;function m7(e){return t=>Promise.all(t.map(({animation:n,options:r})=>p7(e,n,r)))}function g7(e){let t=m7(e);const n=y7();let r=!0;const o=l=>(d,c)=>{var f;const p=fa(e,c,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(p){const{transition:h,transitionEnd:b,...g}=p;d={...d,...g,...b}}return d};function i(l){t=l(e)}function a(l){const d=e.getProps(),c=e.getVariantContext(!0)||{},f=[],p=new Set;let h={},b=1/0;for(let y=0;y<b7;y++){const $=h7[y],C=n[$],w=d[$]!==void 0?d[$]:c[$],E=ao(w),P=$===l?C.isActive:null;P===!1&&(b=y);let k=w===c[$]&&w!==d[$]&&E;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),C.protectedKeys={...h},!C.isActive&&P===null||!w&&!C.prevProp||ua(w)||typeof w=="boolean")continue;let v=v7(C.prevProp,w)||$===l&&C.isActive&&!k&&E||y>b&&E,L=!1;const F=Array.isArray(w)?w:[w];let A=F.reduce(o($),{});P===!1&&(A={});const{prevResolvedValues:B={}}=C,R={...B,...A},I=K=>{v=!0,p.has(K)&&(L=!0,p.delete(K)),C.needsAnimating[K]=!0;const V=e.getValue(K);V&&(V.liveStyle=!1)};for(const K in R){const V=A[K],T=B[K];if(h.hasOwnProperty(K))continue;let G=!1;tl(V)&&tl(T)?G=!lb(V,T):G=V!==T,G?V!=null?I(K):p.add(K):V!==void 0&&p.has(K)?I(K):C.protectedKeys[K]=!0}C.prevProp=w,C.prevResolvedValues=A,C.isActive&&(h={...h,...A}),r&&e.blockInitialAnimation&&(v=!1),v&&(!k||L)&&f.push(...F.map(K=>({animation:K,options:{type:$}})))}if(p.size){const y={};p.forEach($=>{const C=e.getBaseTarget($),w=e.getValue($);w&&(w.liveStyle=!0),y[$]=C??null}),f.push({animation:y})}let g=!!f.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(f):Promise.resolve()}function s(l,d){var c;if(n[l].isActive===d)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(p=>{var h;return(h=p.animationState)===null||h===void 0?void 0:h.setActive(l,d)}),n[l].isActive=d;const f=a(l);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>n}}function v7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!lb(t,e):!1}function hn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function y7(){return{animate:hn(!0),whileInView:hn(),whileHover:hn(),whileTap:hn(),whileDrag:hn(),whileFocus:hn(),exit:hn()}}class $7 extends fn{constructor(t){super(t),t.animationState||(t.animationState=g7(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ua(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let x7=0;class w7 extends fn{constructor(){super(...arguments),this.id=x7++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Nb={animation:{Feature:$7},exit:{Feature:w7}},hf=(e,t)=>Math.abs(e-t);function C7(e,t){const n=hf(e.x,t.x),r=hf(e.y,t.y);return Math.sqrt(n**2+r**2)}class Kb{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=ps(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=C7(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:b}=f,{timestamp:g}=je;this.history.push({...b,timestamp:g});const{onStart:y,onMove:$}=this.handlers;p||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),$&&$(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=fs(p,this.transformPagePoint),Le.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:b,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=ps(f.type==="pointercancel"?this.lastMoveEventInfo:fs(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,y),b&&b(f,y)},!nb(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const a=da(t),s=fs(a,this.transformPagePoint),{point:l}=s,{timestamp:d}=je;this.history=[{...l,timestamp:d}];const{onSessionStart:c}=n;c&&c(t,ps(s,this.history)),this.removeListeners=jt(Kt(this.contextWindow,"pointermove",this.handlePointerMove),Kt(this.contextWindow,"pointerup",this.handlePointerUp),Kt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),cn(this.updatePoint)}}function fs(e,t){return t?{point:t(e.point)}:e}function bf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ps({point:e},t){return{point:e,delta:bf(e,jb(t)),offset:bf(e,D7(t)),velocity:E7(t,.1)}}function D7(e){return e[0]}function jb(e){return e[e.length-1]}function E7(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=jb(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>_t(t)));)n--;if(!r)return{x:0,y:0};const i=zt(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function rt(e){return e.max-e.min}function cl(e,t=0,n=.01){return Math.abs(e-t)<=n}function mf(e,t,n,r=.5){e.origin=r,e.originPoint=Ee(t.min,t.max,e.origin),e.scale=rt(n)/rt(t),(cl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ee(n.min,n.max,e.origin)-e.originPoint,(cl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Xr(e,t,n,r){mf(e.x,t.x,n.x,r?r.originX:void 0),mf(e.y,t.y,n.y,r?r.originY:void 0)}function gf(e,t,n){e.min=n.min+t.min,e.max=e.min+rt(t)}function P7(e,t,n){gf(e.x,t.x,n.x),gf(e.y,t.y,n.y)}function vf(e,t,n){e.min=t.min-n.min,e.max=e.min+rt(t)}function Jr(e,t,n){vf(e.x,t.x,n.x),vf(e.y,t.y,n.y)}function S7(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ee(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ee(n,e,r.max):Math.min(e,n)),e}function yf(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function T7(e,{top:t,left:n,bottom:r,right:o}){return{x:yf(e.x,n,o),y:yf(e.y,t,r)}}function $f(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function A7(e,t){return{x:$f(e.x,t.x),y:$f(e.y,t.y)}}function M7(e,t){let n=.5;const r=rt(e),o=rt(t);return o>r?n=lo(t.min,t.max-r,e.min):r>o&&(n=lo(e.min,e.max-o,t.min)),un(0,1,n)}function k7(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const dl=.35;function R7(e=dl){return e===!1?e=0:e===!0&&(e=dl),{x:xf(e,"left","right"),y:xf(e,"top","bottom")}}function xf(e,t,n){return{min:wf(e,t),max:wf(e,n)}}function wf(e,t){return typeof e=="number"?e:e[t]||0}const Cf=()=>({translate:0,scale:1,origin:0,originPoint:0}),nr=()=>({x:Cf(),y:Cf()}),Df=()=>({min:0,max:0}),Ae=()=>({x:Df(),y:Df()});function st(e){return[e("x"),e("y")]}function _b({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function F7({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function B7(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function hs(e){return e===void 0||e===1}function fl({scale:e,scaleX:t,scaleY:n}){return!hs(e)||!hs(t)||!hs(n)}function gn(e){return fl(e)||zb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function zb(e){return Ef(e.x)||Ef(e.y)}function Ef(e){return e&&e!=="0%"}function Wi(e,t,n){const r=e-n,o=t*r;return n+o}function Pf(e,t,n,r,o){return o!==void 0&&(e=Wi(e,o,r)),Wi(e,n,r)+t}function pl(e,t=0,n=1,r,o){e.min=Pf(e.min,t,n,r,o),e.max=Pf(e.max,t,n,r,o)}function Ub(e,{x:t,y:n}){pl(e.x,t.translate,t.scale,t.originPoint),pl(e.y,n.translate,n.scale,n.originPoint)}function I7(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const l=i.instance;l&&l.style&&l.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Ub(e,a)),r&&gn(i.latestValues)&&rr(e,i.latestValues))}t.x=Sf(t.x),t.y=Sf(t.y)}function Sf(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function tn(e,t){e.min=e.min+t,e.max=e.max+t}function Tf(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,a=Ee(e.min,e.max,i);pl(e,t[n],t[r],a,t.scale)}const L7=["x","scaleX","originX"],V7=["y","scaleY","originY"];function rr(e,t){Tf(e.x,t,L7),Tf(e.y,t,V7)}function Hb(e,t){return _b(B7(e.getBoundingClientRect(),t))}function O7(e,t,n){const r=Hb(e,n),{scroll:o}=t;return o&&(tn(r.x,o.offset.x),tn(r.y,o.offset.y)),r}const Gb=({current:e})=>e?e.ownerDocument.defaultView:null,N7=new WeakMap;class K7{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ae(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(da(c,"page").point)},i=(c,f)=>{const{drag:p,dragPropagation:h,onDragStart:b}=this.getProps();if(p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ob(p),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),st(y=>{let $=this.getAxisMotionValue(y).get()||0;if(St.test($)){const{projection:C}=this.visualElement;if(C&&C.layout){const w=C.layout.layoutBox[y];w&&($=rt(w)*(parseFloat($)/100))}}this.originPoint[y]=$}),b&&b(c,f);const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(c,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:b,onDrag:g}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:y}=f;if(h&&this.currentDirection===null){this.currentDirection=j7(y),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),g&&g(c,f)},s=(c,f)=>this.stop(c,f),l=()=>st(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Kb(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:Gb(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&i(t,n)}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!ii(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=S7(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&er(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=T7(o.layoutBox,n):this.constraints=!1,this.elastic=R7(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&st(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=k7(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!er(t))return!1;const r=t.current;Tt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=O7(r,o.root,this.visualElement.getTransformPagePoint());let a=A7(o.layout.layoutBox,i);if(n){const s=n(F7(a));this.hasMutatedConstraints=!!s,s&&(a=_b(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},d=st(c=>{if(!ii(c,n,this.currentDirection))return;let f=l&&l[c]||{};a&&(f={min:0,max:0});const p=o?200:1e6,h=o?40:1e7,b={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(c,b)});return Promise.all(d).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Fu(t,r,0,n,this.visualElement))}stopAnimation(){st(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){st(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){st(n=>{const{drag:r}=this.getProps();if(!ii(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[n];i.set(t[n]-Ee(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!er(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};st(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const l=s.get();o[a]=M7({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),st(a=>{if(!ii(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:d}=this.constraints[a];s.set(Ee(l,d,o[a]))})}addListeners(){if(!this.visualElement.current)return;N7.set(this.visualElement,this);const t=this.visualElement.current,n=Kt(t,"pointerdown",l=>{const{drag:d,dragListener:c=!0}=this.getProps();d&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();er(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const a=Ot(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(st(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=dl,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function ii(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function j7(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class _7 extends fn{constructor(t){super(t),this.removeGroupControls=ze,this.removeListeners=ze,this.controls=new K7(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ze}unmount(){this.removeGroupControls(),this.removeListeners()}}const Af=e=>(t,n)=>{e&&e(t,n)};class z7 extends fn{constructor(){super(...arguments),this.removePointerDownListener=ze}onPointerDown(t){this.session=new Kb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Af(t),onStart:Af(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&o(i,a)}}}mount(){this.removePointerDownListener=Kt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function U7(){const e=u.useContext(la);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=u.useId();return u.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const mi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Mf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Vr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ne.test(e))e=parseFloat(e);else return e;const n=Mf(e,t.target.x),r=Mf(e,t.target.y);return`${n}% ${r}%`}},H7={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=dn.parse(e);if(o.length>5)return r;const i=dn.createTransformer(e),a=typeof o[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const d=Ee(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=d),typeof o[3+a]=="number"&&(o[3+a]/=d),i(o)}};class G7 extends u.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;Y2(W7),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),mi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Le.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),du.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Wb(e){const[t,n]=U7(),r=u.useContext(hu);return S.jsx(G7,{...e,layoutGroup:r,switchLayoutGroup:u.useContext(Kh),isPresent:t,safeToRemove:n})}const W7={borderRadius:{...Vr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vr,borderTopRightRadius:Vr,borderBottomLeftRadius:Vr,borderBottomRightRadius:Vr,boxShadow:H7},Yb=["TopLeft","TopRight","BottomLeft","BottomRight"],Y7=Yb.length,kf=e=>typeof e=="string"?parseFloat(e):e,Rf=e=>typeof e=="number"||ne.test(e);function q7(e,t,n,r,o,i){o?(e.opacity=Ee(0,n.opacity!==void 0?n.opacity:1,Z7(r)),e.opacityExit=Ee(t.opacity!==void 0?t.opacity:1,0,X7(r))):i&&(e.opacity=Ee(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<Y7;a++){const s=`border${Yb[a]}Radius`;let l=Ff(t,s),d=Ff(n,s);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||Rf(l)===Rf(d)?(e[s]=Math.max(Ee(kf(l),kf(d),r),0),(St.test(d)||St.test(l))&&(e[s]+="%")):e[s]=d}(t.rotate||n.rotate)&&(e.rotate=Ee(t.rotate||0,n.rotate||0,r))}function Ff(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Z7=qb(0,.5,kb),X7=qb(.5,.95,ze);function qb(e,t,n){return r=>r<e?0:r>t?1:n(lo(e,t,r))}function Bf(e,t){e.min=t.min,e.max=t.max}function it(e,t){Bf(e.x,t.x),Bf(e.y,t.y)}function If(e,t,n,r,o){return e-=t,e=Wi(e,1/n,r),o!==void 0&&(e=Wi(e,1/o,r)),e}function J7(e,t=0,n=1,r=.5,o,i=e,a=e){if(St.test(t)&&(t=parseFloat(t),t=Ee(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Ee(i.min,i.max,r);e===i&&(s-=t),e.min=If(e.min,t,n,s,o),e.max=If(e.max,t,n,s,o)}function Lf(e,t,[n,r,o],i,a){J7(e,t[n],t[r],t[o],t.scale,i,a)}const Q7=["x","scaleX","originX"],eC=["y","scaleY","originY"];function Vf(e,t,n,r){Lf(e.x,t,Q7,n?n.x:void 0,r?r.x:void 0),Lf(e.y,t,eC,n?n.y:void 0,r?r.y:void 0)}function Of(e){return e.translate===0&&e.scale===1}function Zb(e){return Of(e.x)&&Of(e.y)}function tC(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Xb(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Nf(e){return rt(e.x)/rt(e.y)}class nC{constructor(){this.members=[]}add(t){Bu(this.members,t),t.scheduleRender()}remove(t){if(Iu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Kf(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:c,rotateX:f,rotateY:p,skewX:h,skewY:b}=n;d&&(r=`perspective(${d}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),h&&(r+=`skewX(${h}deg) `),b&&(r+=`skewY(${b}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const rC=(e,t)=>e.depth-t.depth;class oC{constructor(){this.children=[],this.isDirty=!1}add(t){Bu(this.children,t),this.isDirty=!0}remove(t){Iu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rC),this.isDirty=!1,this.children.forEach(t)}}function iC(e,t){const n=on.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(cn(r),e(i-t))};return Le.read(r,!0),()=>cn(r)}function aC(e){window.MotionDebug&&window.MotionDebug.record(e)}function sC(e){return e instanceof SVGElement&&e.tagName!=="svg"}function lC(e,t,n){const r=We(e)?e:uo(e);return r.start(Fu("",r,t,n)),r.animation}const bs=["","X","Y","Z"],uC={visibility:"hidden"},jf=1e3;let cC=0;const vn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ms(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Jb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=cC++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,vn.totalNodes=vn.resolvedTargetDeltas=vn.recalculatedProjection=0,this.nodes.forEach(pC),this.nodes.forEach(vC),this.nodes.forEach(yC),this.nodes.forEach(hC),aC(vn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new oC)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Lu),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const l=this.eventHandlers.get(a);l&&l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=sC(a),this.instance=a;const{layoutId:l,layout:d,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(d||l)&&(this.isLayoutDirty=!0),e){let f;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=iC(p,250),mi.hasAnimatedSinceResize&&(mi.hasAnimatedSinceResize=!1,this.nodes.forEach(zf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||d)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||DC,{onLayoutAnimationStart:y,onLayoutAnimationComplete:$}=c.getProps(),C=!this.targetLayout||!Xb(this.targetLayout,b)||h,w=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,w);const E={...Du(g,"layout"),onPlay:y,onComplete:$};(c.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else p||zf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,cn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach($C),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(_f);return}this.isUpdating||this.nodes.forEach(mC),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(gC),this.nodes.forEach(dC),this.nodes.forEach(fC),this.clearAllSnapshots();const s=on.now();je.delta=un(0,1e3/60,s-je.timestamp),je.timestamp=s,je.isProcessing=!0,is.update.process(je),is.preRender.process(je),is.render.process(je),je.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,du.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(bC),this.sharedNodes.forEach(xC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Le.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Le.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ae(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!Zb(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,c=d!==this.prevTransformTemplateValue;a&&(s||gn(this.latestValues)||c)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),EC(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Ae();const s=a.measureViewportBox(),{scroll:l}=this.root;return l&&(tn(s.x,l.offset.x),tn(s.y,l.offset.y)),s}removeElementScroll(a){const s=Ae();it(s,a);for(let l=0;l<this.path.length;l++){const d=this.path[l],{scroll:c,options:f}=d;if(d!==this.root&&c&&f.layoutScroll){if(c.isRoot){it(s,a);const{scroll:p}=this.root;p&&(tn(s.x,-p.offset.x),tn(s.y,-p.offset.y))}tn(s.x,c.offset.x),tn(s.y,c.offset.y)}}return s}applyTransform(a,s=!1){const l=Ae();it(l,a);for(let d=0;d<this.path.length;d++){const c=this.path[d];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&rr(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),gn(c.latestValues)&&rr(l,c.latestValues)}return gn(this.latestValues)&&rr(l,this.latestValues),l}removeTransform(a){const s=Ae();it(s,a);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!gn(d.latestValues))continue;fl(d.latestValues)&&d.updateSnapshot();const c=Ae(),f=d.measurePageBox();it(c,f),Vf(s,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,c)}return gn(this.latestValues)&&Vf(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==je.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var s;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==l;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:p}=this.options;if(!(!this.layout||!(f||p))){if(this.resolvedRelativeTargetAt=je.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ae(),this.relativeTargetOrigin=Ae(),Jr(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ae(),this.targetWithTransforms=Ae()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),P7(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):it(this.target,this.layout.layoutBox),Ub(this.target,this.targetDelta)):it(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ae(),this.relativeTargetOrigin=Ae(),Jr(this.relativeTargetOrigin,this.target,h.target),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}vn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||fl(this.parent.latestValues)||zb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const s=this.getLead(),l=!!this.resumingFrom||this!==s;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===je.timestamp&&(d=!1),d)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;it(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,h=this.treeScale.y;I7(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=Ae());const{target:b}=s;if(!b){this.projectionTransform&&(this.projectionDelta=nr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=nr(),this.projectionDeltaWithTransform=nr());const g=this.projectionTransform;Xr(this.projectionDelta,this.layoutCorrected,b,this.latestValues),this.projectionTransform=Kf(this.projectionDelta,this.treeScale),(this.projectionTransform!==g||this.treeScale.x!==p||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),vn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,s=!1){const l=this.snapshot,d=l?l.latestValues:{},c={...this.latestValues},f=nr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const p=Ae(),h=l?l.source:void 0,b=this.layout?this.layout.source:void 0,g=h!==b,y=this.getStack(),$=!y||y.members.length<=1,C=!!(g&&!$&&this.options.crossfade===!0&&!this.path.some(CC));this.animationProgress=0;let w;this.mixTargetDelta=E=>{const P=E/1e3;Uf(f.x,a.x,P),Uf(f.y,a.y,P),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jr(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wC(this.relativeTarget,this.relativeTargetOrigin,p,P),w&&tC(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Ae()),it(w,this.relativeTarget)),g&&(this.animationValues=c,q7(c,d,this.latestValues,P,C,$)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(cn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Le.update(()=>{mi.hasAnimatedSinceResize=!0,this.currentAnimation=lC(0,jf,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(jf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:d,latestValues:c}=a;if(!(!s||!l||!d)){if(this!==a&&this.layout&&d&&Qb(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||Ae();const f=rt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const p=rt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p}it(s,l),rr(s,c),Xr(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new nC),this.sharedNodes.get(a).add(s);const d=s.options.initialPromotionConfig;s.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const d={};l.z&&ms("z",a,d,this.animationValues);for(let c=0;c<bs.length;c++)ms(`rotate${bs[c]}`,a,d,this.animationValues),ms(`skew${bs[c]}`,a,d,this.animationValues);a.render();for(const c in d)a.setStaticValue(c,d[c]),this.animationValues&&(this.animationValues[c]=d[c]);a.scheduleRender()}getProjectionStyles(a){var s,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return uC;const d={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=hi(a==null?void 0:a.pointerEvents)||"",d.transform=c?c(this.latestValues,""):"none",d;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=hi(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!gn(this.latestValues)&&(g.transform=c?c({},""):"none",this.hasProjected=!1),g}const p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),d.transform=Kf(this.projectionDeltaWithTransform,this.treeScale,p),c&&(d.transform=c(p,d.transform));const{x:h,y:b}=this.projectionDelta;d.transformOrigin=`${h.origin*100}% ${b.origin*100}% 0`,f.animationValues?d.opacity=f===this?(l=(s=p.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const g in ji){if(p[g]===void 0)continue;const{correct:y,applyTo:$}=ji[g],C=d.transform==="none"?p[g]:y(p[g],f);if($){const w=$.length;for(let E=0;E<w;E++)d[$[E]]=C}else d[g]=C}return this.options.layoutId&&(d.pointerEvents=f===this?hi(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(_f),this.root.sharedNodes.clear()}}}function dC(e){e.updateLayout()}function fC(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;i==="size"?st(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=rt(p);p.min=r[f].min,p.max=p.min+h}):Qb(i,n.layoutBox,r)&&st(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=rt(r[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=nr();Xr(s,r,n.layoutBox);const l=nr();a?Xr(l,e.applyTransform(o,!0),n.measuredBox):Xr(l,r,n.layoutBox);const d=!Zb(s);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const b=Ae();Jr(b,n.layoutBox,p.layoutBox);const g=Ae();Jr(g,r,h.layoutBox),Xb(b,g)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=b,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:d,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function pC(e){vn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function hC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function bC(e){e.clearSnapshot()}function _f(e){e.clearMeasurements()}function mC(e){e.isLayoutDirty=!1}function gC(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function zf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vC(e){e.resolveTargetDelta()}function yC(e){e.calcProjection()}function $C(e){e.resetSkewAndRotation()}function xC(e){e.removeLeadSnapshot()}function Uf(e,t,n){e.translate=Ee(t.translate,0,n),e.scale=Ee(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Hf(e,t,n,r){e.min=Ee(t.min,n.min,r),e.max=Ee(t.max,n.max,r)}function wC(e,t,n,r){Hf(e.x,t.x,n.x,r),Hf(e.y,t.y,n.y,r)}function CC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const DC={duration:.45,ease:[.4,0,.1,1]},Gf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Wf=Gf("applewebkit/")&&!Gf("chrome/")?Math.round:ze;function Yf(e){e.min=Wf(e.min),e.max=Wf(e.max)}function EC(e){Yf(e.x),Yf(e.y)}function Qb(e,t,n){return e==="position"||e==="preserve-aspect"&&!cl(Nf(t),Nf(n),.2)}const PC=Jb({attachResizeListener:(e,t)=>Ot(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gs={current:void 0},em=Jb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gs.current){const e=new PC({});e.mount(window),e.setOptions({layoutScroll:!0}),gs.current=e}return gs.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),SC={pan:{Feature:z7},drag:{Feature:_7,ProjectionNode:em,MeasureLayout:Wb}},hl={current:null},tm={current:!1};function TC(){if(tm.current=!0,!!su)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hl.current=e.matches;e.addListener(t),t()}else hl.current=!1}function AC(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(We(i))e.addValue(o,i),Gi(r)&&r.add(o),process.env.NODE_ENV==="development"&&Vu(i.version==="11.1.7",`Attempting to mix Framer Motion versions ${i.version} with 11.1.7 may not work as expected.`);else if(We(a))e.addValue(o,uo(i,{owner:e})),Gi(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const s=e.getValue(o);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,uo(s!==void 0?s:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const qf=new WeakMap,MC=[...pb,He,dn],kC=e=>MC.find(fb(e)),nm=Object.keys(so),RC=nm.length,Zf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],FC=pu.length;function rm(e){if(e)return e.options.allowProjection!==!1?e.projection:rm(e.parent)}class BC{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:a},s={}){this.resolveKeyframes=(p,h,b,g)=>new this.KeyframeResolver(p,h,b,g,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Eu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Le.render(this.render,!1,!0);const{latestValues:l,renderState:d}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=ca(n),this.isVariantNode=Nh(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const h=f[p];l[p]!==void 0&&We(h)&&(h.set(l[p],!1),Gi(c)&&c.add(p))}}mount(t){this.current=t,qf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),tm.current||TC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:hl.current,process.env.NODE_ENV!=="production"&&Vu(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;qf.delete(this.current),this.projection&&this.projection.unmount(),cn(this.notifyUpdate),cn(this.render),this.valueSubscriptions.forEach(n=>n()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const n in this.events)this.events[n].clear();for(const n in this.features)(t=this.features[n])===null||t===void 0||t.unmount();this.current=null}bindToMotionValue(t,n){const r=Ln.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Le.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let a,s;if(process.env.NODE_ENV!=="production"&&o&&r){const l="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?wo(!1,l):Tt(!1,l)}for(let l=0;l<RC;l++){const d=nm[l],{isEnabled:c,Feature:f,ProjectionNode:p,MeasureLayout:h}=so[d];p&&(a=p),c(n)&&(!this.features[d]&&f&&(this.features[d]=new f(this)),h&&(s=h))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,rm(this.parent));const{layoutId:l,layout:d,drag:c,dragConstraints:f,layoutScroll:p,layoutRoot:h}=n;this.projection.setOptions({layoutId:l,layout:d,alwaysMeasureLayout:!!c||f&&er(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:i,layoutScroll:p,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ae()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Zf.length;r++){const o=Zf[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,a=t[i];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=AC(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<FC;r++){const o=pu[r],i=this.props[o];(ao(i)||i===!1)&&(n[o]=i)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=uo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(cb(o)||ub(o))?o=parseFloat(o):!kC(o)&&dn.test(n)&&(o=xb(t,n)),this.setBaseTarget(t,We(o)?o.get():o)),We(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const a=Cu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(o=a[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!We(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Lu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class om extends BC{constructor(){super(...arguments),this.KeyframeResolver=wb}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function IC(e){return window.getComputedStyle(e)}class LC extends om{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Ln.has(n)){const r=Su(n);return r&&r.default||0}else{const r=IC(t),o=(Uh(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Hb(t,n)}build(t,n,r,o){vu(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return wu(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;We(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){qh(t,n,r,o)}}class VC extends om{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ln.has(n)){const r=Su(n);return r&&r.default||0}return n=Zh.has(n)?n:cu(n),t.getAttribute(n)}measureInstanceViewportBox(){return Ae()}scrapeMotionValuesFromProps(t,n,r){return Jh(t,n,r)}build(t,n,r,o){$u(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){Xh(t,n,r,o)}mount(t){this.isSVGTag=xu(t.tagName),super.mount(t)}}const im=(e,t)=>bu(e)?new VC(t,{enableHardwareAcceleration:!1}):new LC(t,{allowProjection:e!==u.Fragment,enableHardwareAcceleration:!0}),OC={layout:{ProjectionNode:em,MeasureLayout:Wb}},NC={...Nb,...sb,...SC,...OC},yr=jh((e,t)=>tb(e,t,NC,im)),KC=jh(tb);function am(){const e=u.useRef(!1);return lu(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function jC(){const e=am(),[t,n]=u.useState(0),r=u.useCallback(()=>{e.current&&n(t+1)},[t]);return[u.useCallback(()=>Le.postRender(r),[r]),t]}class _C extends Sn.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function zC({children:e,isPresent:t}){const n=u.useId(),r=u.useRef(null),o=u.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=u.useContext(au);return u.useInsertionEffect(()=>{const{width:a,height:s,top:l,left:d}=o.current;if(t||!r.current||!a||!s)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
103
+ `;function I2({children:e,isGrid:t,renderCount:n}){return S.jsx(B2,{isGrid:t,max:0,renderCount:n??void 0,children:e})}const au=u.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),sa=u.createContext({}),la=u.createContext(null),su=typeof document<"u",lu=su?u.useLayoutEffect:u.useEffect,uu=u.createContext({strict:!1}),cu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),L2="framerAppearId",Vh="data-"+cu(L2),V2={skipAnimations:!1,useManualTiming:!1};class jd{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function O2(e){let t=new jd,n=new jd,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,d=!1,c=!1)=>{const f=c&&o,p=f?t:n;return d&&a.add(l),p.add(l)&&f&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let d=0;d<r;d++){const c=t.order[d];a.has(c)&&(s.schedule(c),e()),c(l)}o=!1,i&&(i=!1,s.process(l))}};return s}const ri=["read","resolveKeyframes","update","preRender","render","postRender"],N2=40;function Oh(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=ri.reduce((f,p)=>(f[p]=O2(()=>n=!0),f),{}),a=f=>{i[f].process(o)},s=()=>{const f=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(f-o.timestamp,N2),1),o.timestamp=f,o.isProcessing=!0,ri.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(s))},l=()=>{n=!0,r=!0,o.isProcessing||e(s)};return{schedule:ri.reduce((f,p)=>{const h=i[p];return f[p]=(b,g=!1,y=!1)=>(n||l(),h.schedule(b,g,y)),f},{}),cancel:f=>ri.forEach(p=>i[p].cancel(f)),state:o,steps:i}}const{schedule:du,cancel:CA}=Oh(queueMicrotask,!1);function K2(e,t,n,r){const{visualElement:o}=u.useContext(sa),i=u.useContext(uu),a=u.useContext(la),s=u.useContext(au).reducedMotion,l=u.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const d=l.current;u.useInsertionEffect(()=>{d&&d.update(n,a)});const c=u.useRef(!!(n[Vh]&&!window.HandoffComplete));return lu(()=>{d&&(du.postRender(d.render),c.current&&d.animationState&&d.animationState.animateChanges())}),u.useEffect(()=>{d&&(d.updateFeatures(),!c.current&&d.animationState&&d.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),d}function er(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function j2(e,t,n){return u.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):er(n)&&(n.current=r))},[t])}function ao(e){return typeof e=="string"||Array.isArray(e)}function ua(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const fu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pu=["initial",...fu];function ca(e){return ua(e.animate)||pu.some(t=>ao(e[t]))}function Nh(e){return!!(ca(e)||e.variants)}function _2(e,t){if(ca(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ao(n)?n:void 0,animate:ao(r)?r:void 0}}return e.inherit!==!1?t:{}}function z2(e){const{initial:t,animate:n}=_2(e,u.useContext(sa));return u.useMemo(()=>({initial:t,animate:n}),[_d(t),_d(n)])}function _d(e){return Array.isArray(e)?e.join(" "):e}const zd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},so={};for(const e in zd)so[e]={isEnabled:t=>zd[e].some(n=>!!t[n])};function el(e){for(const t in e)so[t]={...so[t],...e[t]}}const hu=u.createContext({}),Kh=u.createContext({}),U2=Symbol.for("motionComponentSymbol");function H2({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&el(e);function i(s,l){let d;const c={...u.useContext(au),...s,layoutId:G2(s)},{isStatic:f}=c,p=z2(s),h=r(s,f);if(!f&&su){p.visualElement=K2(o,h,c,t);const b=u.useContext(Kh),g=u.useContext(uu).strict;p.visualElement&&(d=p.visualElement.loadFeatures(c,g,e,b))}return S.jsxs(sa.Provider,{value:p,children:[d&&p.visualElement?S.jsx(d,{visualElement:p.visualElement,...c}):null,n(o,s,j2(h,p.visualElement,l),h,f,p.visualElement)]})}const a=u.forwardRef(i);return a[U2]=o,a}function G2({layoutId:e}){const t=u.useContext(hu).id;return t&&e!==void 0?t+"-"+e:e}function jh(e){function t(r,o={}){return H2(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const W2=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function bu(e){return typeof e!="string"||e.includes("-")?!1:!!(W2.indexOf(e)>-1||/[A-Z]/u.test(e))}const ji={};function Y2(e){Object.assign(ji,e)}const yo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ln=new Set(yo);function _h(e,{layout:t,layoutId:n}){return Ln.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ji[e]||e==="opacity")}const We=e=>!!(e&&e.getVelocity),q2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Z2=yo.length;function X2(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;a<Z2;a++){const s=yo[a];if(e[s]!==void 0){const l=q2[s]||s;i+=`${l}(${e[s]}) `}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}const zh=e=>t=>typeof t=="string"&&t.startsWith(e),Uh=zh("--"),J2=zh("var(--"),mu=e=>J2(e)?Q2.test(e.split("/*")[0].trim()):!1,Q2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,e6=(e,t)=>t&&typeof e=="number"?t.transform(e):e,un=(e,t,n)=>n>t?t:n<e?e:n,vr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qr={...vr,transform:e=>un(0,1,e)},oi={...vr,default:1},Zr=e=>Math.round(e*1e5)/1e5,gu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,t6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,n6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function $o(e){return typeof e=="string"}const xo=e=>({test:t=>$o(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qt=xo("deg"),St=xo("%"),ne=xo("px"),r6=xo("vh"),o6=xo("vw"),Ud={...St,parse:e=>St.parse(e)/100,transform:e=>St.transform(e*100)},Hd={...vr,transform:Math.round},Hh={borderWidth:ne,borderTopWidth:ne,borderRightWidth:ne,borderBottomWidth:ne,borderLeftWidth:ne,borderRadius:ne,radius:ne,borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomRightRadius:ne,borderBottomLeftRadius:ne,width:ne,maxWidth:ne,height:ne,maxHeight:ne,size:ne,top:ne,right:ne,bottom:ne,left:ne,padding:ne,paddingTop:ne,paddingRight:ne,paddingBottom:ne,paddingLeft:ne,margin:ne,marginTop:ne,marginRight:ne,marginBottom:ne,marginLeft:ne,rotate:Qt,rotateX:Qt,rotateY:Qt,rotateZ:Qt,scale:oi,scaleX:oi,scaleY:oi,scaleZ:oi,skew:Qt,skewX:Qt,skewY:Qt,distance:ne,translateX:ne,translateY:ne,translateZ:ne,x:ne,y:ne,z:ne,perspective:ne,transformPerspective:ne,opacity:qr,originX:Ud,originY:Ud,originZ:ne,zIndex:Hd,backgroundPositionX:ne,backgroundPositionY:ne,fillOpacity:qr,strokeOpacity:qr,numOctaves:Hd};function vu(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,d=!1,c=!0;for(const f in t){const p=t[f];if(Uh(f)){i[f]=p;continue}const h=Hh[f],b=e6(p,h);if(Ln.has(f)){if(l=!0,a[f]=b,!c)continue;p!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(d=!0,s[f]=b):o[f]=b}if(t.transform||(l||r?o.transform=X2(e.transform,n,c,r):o.transform&&(o.transform="none")),d){const{originX:f="50%",originY:p="50%",originZ:h=0}=s;o.transformOrigin=`${f} ${p} ${h}`}}const yu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Gh(e,t,n){for(const r in t)!We(t[r])&&!_h(r,n)&&(e[r]=t[r])}function i6({transformTemplate:e},t,n){return u.useMemo(()=>{const r=yu();return vu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function a6(e,t,n){const r=e.style||{},o={};return Gh(o,r,e),Object.assign(o,i6(e,t,n)),o}function s6(e,t,n){const r={},o=a6(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const l6=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function _i(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||l6.has(e)}let Wh=e=>!_i(e);function u6(e){e&&(Wh=t=>t.startsWith("on")?!_i(t):e(t))}try{u6(require("@emotion/is-prop-valid").default)}catch{}function c6(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Wh(o)||n===!0&&_i(o)||!t&&!_i(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Gd(e,t,n){return typeof e=="string"?e:ne.transform(t+n*e)}function d6(e,t,n){const r=Gd(t,e.x,e.width),o=Gd(n,e.y,e.height);return`${r} ${o}`}const f6={offset:"stroke-dashoffset",array:"stroke-dasharray"},p6={offset:"strokeDashoffset",array:"strokeDasharray"};function h6(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?f6:p6;e[i.offset]=ne.transform(-r);const a=ne.transform(t),s=ne.transform(n);e[i.array]=`${a} ${s}`}function $u(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...d},c,f,p){if(vu(e,d,c,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:b,dimensions:g}=e;h.transform&&(g&&(b.transform=h.transform),delete h.transform),g&&(o!==void 0||i!==void 0||b.transform)&&(b.transformOrigin=d6(g,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),a!==void 0&&h6(h,a,s,l,!1)}const Yh=()=>({...yu(),attrs:{}}),xu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function b6(e,t,n,r){const o=u.useMemo(()=>{const i=Yh();return $u(i,t,{enableHardwareAcceleration:!1},xu(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Gh(i,e.style,e),o.style={...i,...o.style}}return o}function m6(e=!1){return(n,r,o,{latestValues:i},a)=>{const l=(bu(n)?b6:s6)(r,i,a,n),d=c6(r,typeof n=="string",e),c=n!==u.Fragment?{...d,...l,ref:o}:{},{children:f}=r,p=u.useMemo(()=>We(f)?f.get():f,[f]);return u.createElement(n,{...c,children:p})}}function qh(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Zh=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Xh(e,t,n,r){qh(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Zh.has(o)?o:cu(o),t.attrs[o])}function wu(e,t,n){var r;const{style:o}=e,i={};for(const a in o)(We(o[a])||t.style&&We(t.style[a])||_h(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[a]=o[a]);return i}function Jh(e,t,n){const r=wu(e,t,n);for(const o in e)if(We(e[o])||We(t[o])){const i=yo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function Cu(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function Qh(e){const t=u.useRef(null);return t.current===null&&(t.current=e()),t.current}const tl=e=>Array.isArray(e),g6=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),v6=e=>tl(e)?e[e.length-1]||0:e;function hi(e){const t=We(e)?e.get():e;return g6(t)?t.toValue():t}function y6({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:$6(r,o,i,e),renderState:t()};return n&&(a.mount=s=>n(r,s,a)),a}const eb=e=>(t,n)=>{const r=u.useContext(sa),o=u.useContext(la),i=()=>y6(e,t,r,o);return n?i():Qh(i)};function $6(e,t,n,r){const o={},i=r(e,{});for(const p in i)o[p]=hi(i[p]);let{initial:a,animate:s}=e;const l=ca(e),d=Nh(e);t&&d&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=n?n.initial===!1:!1;c=c||a===!1;const f=c?s:a;return f&&typeof f!="boolean"&&!ua(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const b=Cu(e,h);if(!b)return;const{transitionEnd:g,transition:y,...$}=b;for(const C in $){let w=$[C];if(Array.isArray(w)){const E=c?w.length-1:0;w=w[E]}w!==null&&(o[C]=w)}for(const C in g)o[C]=g[C]}),o}const ze=e=>e,{schedule:Le,cancel:cn,state:je,steps:is}=Oh(typeof requestAnimationFrame<"u"?requestAnimationFrame:ze,!0),x6={useVisualState:eb({scrapeMotionValuesFromProps:Jh,createRenderState:Yh,onMount:(e,t,{renderState:n,latestValues:r})=>{Le.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Le.render(()=>{$u(n,r,{enableHardwareAcceleration:!1},xu(t.tagName),e.transformTemplate),Xh(t,n)})}})},w6={useVisualState:eb({scrapeMotionValuesFromProps:wu,createRenderState:yu})};function tb(e,{forwardMotionProps:t=!1},n,r){return{...bu(e)?x6:w6,preloadedFeatures:n,useRender:m6(t),createVisualElement:r,Component:e}}function Ot(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const nb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function da(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const C6=e=>t=>nb(t)&&e(t,da(t));function Kt(e,t,n,r){return Ot(e,t,C6(n),r)}const D6=(e,t)=>n=>t(e(n)),jt=(...e)=>e.reduce(D6);function rb(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Wd=rb("dragHorizontal"),Yd=rb("dragVertical");function ob(e){let t=!1;if(e==="y")t=Yd();else if(e==="x")t=Wd();else{const n=Wd(),r=Yd();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ib(){const e=ob(!0);return e?(e(),!1):!0}class fn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function qd(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,a)=>{if(i.pointerType==="touch"||ib())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t);const l=s[r];l&&l(i,a)};return Kt(e.current,n,o,{passive:!e.getProps()[r]})}class E6 extends fn{mount(){this.unmount=jt(qd(this.node,!0),qd(this.node,!1))}unmount(){}}class P6 extends fn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=jt(Ot(this.node.current,"focus",()=>this.onFocus()),Ot(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ab=(e,t)=>t?e===t?!0:ab(e,t.parentElement):!1;function as(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,da(n))}class S6 extends fn{constructor(){super(...arguments),this.removeStartListeners=ze,this.removeEndListeners=ze,this.removeAccessibleListeners=ze,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Kt(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:d,onTapCancel:c,globalTapTarget:f}=this.node.getProps();!f&&!ab(this.node.current,s.target)?c&&c(s,l):d&&d(s,l)},{passive:!(r.onTap||r.onPointerUp)}),a=Kt(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=jt(i,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||as("up",(l,d)=>{const{onTap:c}=this.node.getProps();c&&c(l,d)})};this.removeEndListeners(),this.removeEndListeners=Ot(this.node.current,"keyup",a),as("down",(s,l)=>{this.startPress(s,l)})},n=Ot(this.node.current,"keydown",t),r=()=>{this.isPressing&&as("cancel",(i,a)=>this.cancelPress(i,a))},o=Ot(this.node.current,"blur",r);this.removeAccessibleListeners=jt(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&r(t,n)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ib()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&r(t,n)}mount(){const t=this.node.getProps(),n=Kt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Ot(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=jt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const nl=new WeakMap,ss=new WeakMap,T6=e=>{const t=nl.get(e.target);t&&t(e)},A6=e=>{e.forEach(T6)};function M6({root:e,...t}){const n=e||document;ss.has(n)||ss.set(n,{});const r=ss.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(A6,{root:e,...t})),r[o]}function k6(e,t,n){const r=M6(t);return nl.set(e,n),r.observe(e),()=>{nl.delete(e),r.unobserve(e)}}const R6={some:0,all:1};class F6 extends fn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:R6[o]},s=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),p=d?c:f;p&&p(l)};return k6(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(B6(t,n))&&this.startObserver()}unmount(){}}function B6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const sb={inView:{Feature:F6},tap:{Feature:S6},focus:{Feature:P6},hover:{Feature:E6}};function lb(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function I6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function L6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function fa(e,t,n){const r=e.getProps();return Cu(r,t,n!==void 0?n:r.custom,I6(e),L6(e))}const _t=e=>e*1e3,zt=e=>e/1e3,V6={type:"spring",stiffness:500,damping:25,restSpeed:10},O6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),N6={type:"keyframes",duration:.8},K6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},j6=(e,{keyframes:t})=>t.length>2?N6:Ln.has(e)?e.startsWith("scale")?O6(t[1]):V6:K6;function _6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:d,...c}){return!!Object.keys(c).length}function Du(e,t){return e[t]||e.default||e}const z6=e=>e!==null;function pa(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(z6),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}let bi;function U6(){bi=void 0}const on={now:()=>(bi===void 0&&on.set(je.isProcessing||V2.useManualTiming?je.timestamp:performance.now()),bi),set:e=>{bi=e,queueMicrotask(U6)}},ub=e=>/^0[^.\s]+$/u.test(e);function H6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ub(e):!0}let wo=ze,Tt=ze;process.env.NODE_ENV!=="production"&&(wo=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Tt=(e,t)=>{if(!e)throw new Error(t)});const cb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),G6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function W6(e){const t=G6.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Y6=4;function db(e,t,n=1){Tt(n<=Y6,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=W6(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return cb(a)?parseFloat(a):a}return mu(o)?db(o,t,n+1):o}const q6=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Zd=e=>e===vr||e===ne,Xd=(e,t)=>parseFloat(e.split(", ")[t]),Jd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Xd(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Xd(i[1],e):0}},Z6=new Set(["x","y","z"]),X6=yo.filter(e=>!Z6.has(e));function J6(e){const t=[];return X6.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const cr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Jd(4,13),y:Jd(5,14)};cr.translateX=cr.x;cr.translateY=cr.y;const fb=e=>t=>t.test(e),Q6={test:e=>e==="auto",parse:e=>e},pb=[vr,ne,St,Qt,o6,r6,Q6],Qd=e=>pb.find(fb(e)),Pn=new Set;let rl=!1,ol=!1;function hb(){if(ol){const e=Array.from(Pn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=J6(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,a])=>{var s;(s=r.getValue(i))===null||s===void 0||s.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ol=!1,rl=!1,Pn.forEach(e=>e.complete()),Pn.clear()}function bb(){Pn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ol=!0)})}function ew(){bb(),hb()}class Eu{constructor(t,n,r,o,i,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Pn.add(this),rl||(rl=!0,Le.read(bb),Le.resolveKeyframes(hb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const a=o==null?void 0:o.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const l=r.readValue(n,s);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=s),o&&a===void 0&&o.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Pn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Pn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Pu=(e,t)=>n=>!!($o(n)&&n6.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),mb=(e,t,n)=>r=>{if(!$o(r))return r;const[o,i,a,s]=r.match(gu);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},tw=e=>un(0,255,e),ls={...vr,transform:e=>Math.round(tw(e))},En={test:Pu("rgb","red"),parse:mb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ls.transform(e)+", "+ls.transform(t)+", "+ls.transform(n)+", "+Zr(qr.transform(r))+")"};function nw(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const il={test:Pu("#"),parse:nw,transform:En.transform},tr={test:Pu("hsl","hue"),parse:mb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+St.transform(Zr(t))+", "+St.transform(Zr(n))+", "+Zr(qr.transform(r))+")"},He={test:e=>En.test(e)||il.test(e)||tr.test(e),parse:e=>En.test(e)?En.parse(e):tr.test(e)?tr.parse(e):il.parse(e),transform:e=>$o(e)?e:e.hasOwnProperty("red")?En.transform(e):tr.transform(e)};function rw(e){var t,n;return isNaN(e)&&$o(e)&&(((t=e.match(gu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(t6))===null||n===void 0?void 0:n.length)||0)>0}const gb="number",vb="color",ow="var",iw="var(",ef="${}",aw=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function zi(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(aw,l=>(He.test(l)?(r.color.push(i),o.push(vb),n.push(He.parse(l))):l.startsWith(iw)?(r.var.push(i),o.push(ow),n.push(l)):(r.number.push(i),o.push(gb),n.push(parseFloat(l))),++i,ef)).split(ef);return{values:n,split:s,indexes:r,types:o}}function yb(e){return zi(e).values}function $b(e){const{split:t,types:n}=zi(e),r=t.length;return o=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],o[a]!==void 0){const s=n[a];s===gb?i+=Zr(o[a]):s===vb?i+=He.transform(o[a]):i+=o[a]}return i}}const sw=e=>typeof e=="number"?0:e;function lw(e){const t=yb(e);return $b(e)(t.map(sw))}const dn={test:rw,parse:yb,createTransformer:$b,getAnimatableNone:lw},uw=new Set(["brightness","contrast","saturate","opacity"]);function cw(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(gu)||[];if(!r)return e;const o=n.replace(r,"");let i=uw.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const dw=/\b([a-z-]*)\(.*?\)/gu,al={...dn,getAnimatableNone:e=>{const t=e.match(dw);return t?t.map(cw).join(" "):e}},fw={...Hh,color:He,backgroundColor:He,outlineColor:He,fill:He,stroke:He,borderColor:He,borderTopColor:He,borderRightColor:He,borderBottomColor:He,borderLeftColor:He,filter:al,WebkitFilter:al},Su=e=>fw[e];function xb(e,t){let n=Su(e);return n!==al&&(n=dn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function pw(e,t,n){let r=0,o;for(;r<e.length&&!o;)typeof e[r]=="string"&&e[r]!=="none"&&e[r]!=="0"&&(o=e[r]),r++;if(o&&n)for(const i of t)e[i]=xb(n,o)}class wb extends Eu{constructor(t,n,r,o){super(t,n,r,o,o==null?void 0:o.owner,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){const d=t[l];if(typeof d=="string"&&mu(d)){const c=db(d,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=d)}}if(!q6.has(r)||t.length!==2)return this.resolveNoneKeyframes();const[o,i]=t,a=Qd(o),s=Qd(i);if(a!==s)if(Zd(a)&&Zd(s))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)H6(t[o])&&r.push(o);r.length&&pw(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=cr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const a=o.length-1,s=o[a];o[a]=cr[r](n.measureViewportBox(),window.getComputedStyle(n.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,d])=>{n.getValue(l).set(d)}),this.resolveNoneKeyframes()}}function hw(e){let t;return()=>(t===void 0&&(t=e()),t)}const tf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(dn.test(e)||e==="0")&&!e.startsWith("url("));function bw(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function mw(e,t,n,r){const o=e[0];if(o===null)return!1;const i=e[e.length-1],a=tf(o,t),s=tf(i,t);return wo(a===s,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!a||!s?!1:bw(e)||n==="spring"&&r}class Cb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:a,...s},this.updateFinishedPromise()}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ew(),this._resolved}onKeyframesResolved(t,n){this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:a,onComplete:s,onUpdate:l,isGenerator:d}=this.options;if(!d&&!mw(t,r,o,i))if(a)this.options.duration=0;else{l==null||l(pa(t,this.options,n)),s==null||s(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function Db(e,t){return t?e*(1e3/t):0}const gw=5;function Eb(e,t,n){const r=Math.max(t-gw,0);return Db(n-e(r),t-r)}const us=.001,vw=.01,nf=10,yw=.05,$w=1;function xw({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;wo(e<=_t(nf),"Spring duration must be 10 seconds or less");let a=1-t;a=un(yw,$w,a),e=un(vw,nf,zt(e)),a<1?(o=d=>{const c=d*a,f=c*e,p=c-n,h=sl(d,a),b=Math.exp(-f);return us-p/h*b},i=d=>{const f=d*a*e,p=f*n+n,h=Math.pow(a,2)*Math.pow(d,2)*e,b=Math.exp(-f),g=sl(Math.pow(d,2),a);return(-o(d)+us>0?-1:1)*((p-h)*b)/g}):(o=d=>{const c=Math.exp(-d*e),f=(d-n)*e+1;return-us+c*f},i=d=>{const c=Math.exp(-d*e),f=(n-d)*(e*e);return c*f});const s=5/e,l=Cw(o,i,s);if(e=_t(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const ww=12;function Cw(e,t,n){let r=n;for(let o=1;o<ww;o++)r=r-e(r)/t(r);return r}function sl(e,t){return e*Math.sqrt(1-t*t)}const Dw=["duration","bounce"],Ew=["stiffness","damping","mass"];function rf(e,t){return t.some(n=>e[n]!==void 0)}function Pw(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!rf(e,Ew)&&rf(e,Dw)){const n=xw(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Pb({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:d,duration:c,velocity:f,isResolvedFromDuration:p}=Pw({...r,velocity:-zt(r.velocity||0)}),h=f||0,b=l/(2*Math.sqrt(s*d)),g=i-o,y=zt(Math.sqrt(s/d)),$=Math.abs(g)<5;n||(n=$?.01:2),t||(t=$?.005:.5);let C;if(b<1){const w=sl(y,b);C=E=>{const P=Math.exp(-b*y*E);return i-P*((h+b*y*g)/w*Math.sin(w*E)+g*Math.cos(w*E))}}else if(b===1)C=w=>i-Math.exp(-y*w)*(g+(h+y*g)*w);else{const w=y*Math.sqrt(b*b-1);C=E=>{const P=Math.exp(-b*y*E),k=Math.min(w*E,300);return i-P*((h+b*y*g)*Math.sinh(k)+w*g*Math.cosh(k))/w}}return{calculatedDuration:p&&c||null,next:w=>{const E=C(w);if(p)a.done=w>=c;else{let P=h;w!==0&&(b<1?P=Eb(C,w,E):P=0);const k=Math.abs(P)<=n,N=Math.abs(i-E)<=t;a.done=k&&N}return a.value=a.done?i:E,a}}}function of({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:d=.5,restSpeed:c}){const f=e[0],p={done:!1,value:f},h=v=>s!==void 0&&v<s||l!==void 0&&v>l,b=v=>s===void 0?l:l===void 0||Math.abs(s-v)<Math.abs(l-v)?s:l;let g=n*t;const y=f+g,$=a===void 0?y:a(y);$!==y&&(g=$-f);const C=v=>-g*Math.exp(-v/r),w=v=>$+C(v),E=v=>{const L=C(v),F=w(v);p.done=Math.abs(L)<=d,p.value=p.done?$:F};let P,k;const N=v=>{h(p.value)&&(P=v,k=Pb({keyframes:[p.value,b(p.value)],velocity:Eb(w,v,p.value),damping:o,stiffness:i,restDelta:d,restSpeed:c}))};return N(0),{calculatedDuration:null,next:v=>{let L=!1;return!k&&P===void 0&&(L=!0,E(v),N(v)),P!==void 0&&v>=P?k.next(v-P):(!L&&E(v),p)}}}const Sb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Sw=1e-7,Tw=12;function Aw(e,t,n,r,o){let i,a,s=0;do a=t+(n-t)/2,i=Sb(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>Sw&&++s<Tw);return a}function Co(e,t,n,r){if(e===t&&n===r)return ze;const o=i=>Aw(i,0,1,e,n);return i=>i===0||i===1?i:Sb(o(i),t,r)}const Mw=Co(.42,0,1,1),kw=Co(0,0,.58,1),Tb=Co(.42,0,.58,1),Rw=e=>Array.isArray(e)&&typeof e[0]!="number",Ab=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Mb=e=>t=>1-e(1-t),Tu=e=>1-Math.sin(Math.acos(e)),kb=Mb(Tu),Fw=Ab(Tu),Rb=Co(.33,1.53,.69,.99),Au=Mb(Rb),Bw=Ab(Au),Iw=e=>(e*=2)<1?.5*Au(e):.5*(2-Math.pow(2,-10*(e-1))),af={linear:ze,easeIn:Mw,easeInOut:Tb,easeOut:kw,circIn:Tu,circInOut:Fw,circOut:kb,backIn:Au,backInOut:Bw,backOut:Rb,anticipate:Iw},sf=e=>{if(Array.isArray(e)){Tt(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Co(t,n,r,o)}else if(typeof e=="string")return Tt(af[e]!==void 0,`Invalid easing type '${e}'`),af[e];return e},lo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ee=(e,t,n)=>e+(t-e)*n;function cs(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Lw({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=cs(l,s,e+1/3),i=cs(l,s,e),a=cs(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}const ds=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Vw=[il,En,tr],Ow=e=>Vw.find(t=>t.test(e));function lf(e){const t=Ow(e);Tt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===tr&&(n=Lw(n)),n}const uf=(e,t)=>{const n=lf(e),r=lf(t),o={...n};return i=>(o.red=ds(n.red,r.red,i),o.green=ds(n.green,r.green,i),o.blue=ds(n.blue,r.blue,i),o.alpha=Ee(n.alpha,r.alpha,i),En.transform(o))};function ll(e,t){return n=>n>0?t:e}function Nw(e,t){return n=>Ee(e,t,n)}function Mu(e){return typeof e=="number"?Nw:typeof e=="string"?mu(e)?ll:He.test(e)?uf:_w:Array.isArray(e)?Fb:typeof e=="object"?He.test(e)?uf:Kw:ll}function Fb(e,t){const n=[...e],r=n.length,o=e.map((i,a)=>Mu(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=o[a](i);return n}}function Kw(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Mu(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function jw(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=(n=e.values[s])!==null&&n!==void 0?n:0;r[i]=l,o[a]++}return r}const _w=(e,t)=>{const n=dn.createTransformer(t),r=zi(e),o=zi(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?jt(Fb(jw(r,o),o.values),n):(wo(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ll(e,t))};function Bb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ee(e,t,n):Mu(e)(e,t)}function zw(e,t,n){const r=[],o=n||Bb,i=e.length-1;for(let a=0;a<i;a++){let s=o(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||ze:t;s=jt(l,s)}r.push(s)}return r}function Uw(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Tt(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=zw(t,r,o),s=a.length,l=d=>{let c=0;if(s>1)for(;c<e.length-2&&!(d<e[c+1]);c++);const f=lo(e[c],e[c+1],d);return a[c](f)};return n?d=>l(un(e[0],e[i-1],d)):l}function Hw(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=lo(0,t,r);e.push(Ee(n,1,o))}}function Gw(e){const t=[0];return Hw(t,e.length-1),t}function Ww(e,t){return e.map(n=>n*t)}function Yw(e,t){return e.map(()=>t||Tb).splice(0,e.length-1)}function Ui({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Rw(r)?r.map(sf):sf(r),i={done:!1,value:t[0]},a=Ww(n&&n.length===t.length?n:Gw(t),e),s=Uw(a,t,{ease:Array.isArray(o)?o:Yw(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}const cf=2e4;function qw(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<cf;)t+=n,r=e.next(t);return t>=cf?1/0:t}const Zw=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Le.update(t,!0),stop:()=>cn(t),now:()=>je.isProcessing?je.timestamp:on.now()}},Xw={decay:of,inertia:of,tween:Ui,keyframes:Ui,spring:Pb},Jw=e=>e/100;class ku extends Cb{constructor({KeyframeResolver:t=Eu,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:s}=this.options;s&&s()};const{name:r,motionValue:o,keyframes:i}=this.options,a=(s,l)=>this.onKeyframesResolved(s,l);r&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(i,a,r,o):this.resolver=new t(i,a,r,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:a=0}=this.options,s=Xw[n]||Ui;let l,d;s!==Ui&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Tt(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=jt(Jw,Bb(t[0],t[1])),t=[0,100]);const c=s({...this.options,keyframes:t});i==="mirror"&&(d=s({...this.options,keyframes:[...t].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=qw(c));const{calculatedDuration:f}=c,p=f+o,h=p*(r+1)-o;return{generator:c,mirroredGenerator:d,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:p,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:v}=this.options;return{done:!0,value:v[v.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:d,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return i.next(0);const{delay:p,repeat:h,repeatType:b,repeatDelay:g,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const $=this.currentTime-p*(this.speed>=0?1:-1),C=this.speed>=0?$<0:$>c;this.currentTime=Math.max($,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let w=this.currentTime,E=i;if(h){const v=Math.min(this.currentTime,c)/f;let L=Math.floor(v),F=v%1;!F&&v>=1&&(F=1),F===1&&L--,L=Math.min(L,h+1),!!(L%2)&&(b==="reverse"?(F=1-F,g&&(F-=g/f)):b==="mirror"&&(E=a)),w=un(0,1,F)*f}const P=C?{done:!1,value:l[0]}:E.next(w);s&&(P.value=s(P.value));let{done:k}=P;!C&&d!==null&&(k=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return N&&o!==void 0&&(P.value=pa(l,this.options,o)),y&&y(P.value),N&&this.finish(),P}get duration(){const{resolved:t}=this;return t?zt(t.calculatedDuration):0}get time(){return zt(this.currentTime)}set time(t){t=_t(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=zt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Zw,onPlay:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Ib=e=>Array.isArray(e)&&typeof e[0]=="number";function Lb(e){return!!(!e||typeof e=="string"&&e in Ru||Ib(e)||Array.isArray(e)&&e.every(Lb))}const Hr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ru={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hr([0,.65,.55,1]),circOut:Hr([.55,0,1,.45]),backIn:Hr([.31,.01,.66,-.59]),backOut:Hr([.33,1.53,.69,.99])};function Qw(e){return Vb(e)||Ru.easeOut}function Vb(e){if(e)return Ib(e)?Hr(e):Array.isArray(e)?e.map(Qw):Ru[e]}function e7(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const d={[t]:n};l&&(d.offset=l);const c=Vb(s);return Array.isArray(c)&&(d.easing=c),e.animate(d,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}const t7=hw(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),n7=new Set(["opacity","clipPath","filter","transform"]),Hi=10,r7=2e4;function o7(e){return e.type==="spring"||e.name==="backgroundColor"||!Lb(e.ease)}function i7(e,t){const n=new ku({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<r7;)r=n.sample(i),o.push(r.value),i+=Hi;return{times:void 0,keyframes:o,duration:i-Hi,ease:"linear"}}class df extends Cb{constructor(t){super(t);const{name:n,motionValue:r,keyframes:o}=this.options;this.resolver=new wb(o,(i,a)=>this.onKeyframesResolved(i,a),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:a,type:s,motionValue:l,name:d}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(o7(this.options)){const{onComplete:f,onUpdate:p,motionValue:h,...b}=this.options,g=i7(t,b);t=g.keyframes,t.length===1&&(t[1]=t[0]),o=g.duration,i=g.times,a=g.ease,s="keyframes"}const c=e7(l.owner.current,d,t,{...this.options,duration:o,times:i,ease:a});return c.startTime=on.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;l.set(pa(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:o,times:i,type:s,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return zt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return zt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=_t(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return ze;const{animation:r}=n;r.timeline=t,r.onfinish=null}return ze}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:a,times:s}=t;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:l,onUpdate:d,onComplete:c,...f}=this.options,p=new ku({...f,keyframes:r,duration:o,type:i,ease:a,times:s,isGenerator:!0}),h=_t(this.time);l.setWithVelocity(p.sample(h-Hi).value,p.sample(h).value,Hi)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:a,type:s}=t;return t7()&&r&&n7.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&a!==0&&s!=="inertia"}}const Fu=(e,t,n,r={},o,i)=>a=>{const s=Du(r,e)||{},l=s.delay||r.delay||0;let{elapsed:d=0}=r;d=d-_t(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-d,onUpdate:p=>{t.set(p),s.onUpdate&&s.onUpdate(p)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};_6(s)||(c={...c,...j6(e,c)}),c.duration&&(c.duration=_t(c.duration)),c.repeatDelay&&(c.repeatDelay=_t(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const p=pa(c.keyframes,s);if(p!==void 0){Le.update(()=>{c.onUpdate(p),c.onComplete()});return}}return!i&&df.supports(c)?new df(c):new ku(c)};function Gi(e){return!!(We(e)&&e.add)}function Bu(e,t){e.indexOf(t)===-1&&e.push(t)}function Iu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Lu{constructor(){this.subscriptions=[]}add(t){return Bu(this.subscriptions,t),()=>Iu(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ff=new Set;function Vu(e,t,n){e||ff.has(t)||(console.warn(t),n&&console.warn(n),ff.add(t))}const pf=30,a7=e=>!isNaN(parseFloat(e));class s7{constructor(t,n={}){this.version="11.1.7",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=on.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=a7(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=on.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Vu(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Lu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Le.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=on.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>pf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,pf);return Db(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function uo(e,t){return new s7(e,t)}function l7(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,uo(n))}function u7(e,t){const n=fa(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const a in i){const s=v6(i[a]);l7(e,a,s)}}function c7({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ob(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;const d=e.getValue("willChange");r&&(a=r);const c=[],f=o&&e.animationState&&e.animationState.getState()[o];for(const p in l){const h=e.getValue(p,(i=e.latestValues[p])!==null&&i!==void 0?i:null),b=l[p];if(b===void 0||f&&c7(f,p))continue;const g={delay:n,elapsed:0,...Du(a||{},p)};let y=!1;if(window.HandoffAppearAnimations){const w=e.getProps()[Vh];if(w){const E=window.HandoffAppearAnimations(w,p);E!==null&&(g.elapsed=E,y=!0)}}h.start(Fu(p,h,b,e.shouldReduceMotion&&Ln.has(p)?{type:!1}:g,e,y));const $=h.animation;$&&(Gi(d)&&(d.add(p),$.then(()=>d.remove(p))),c.push($))}return s&&Promise.all(c).then(()=>{Le.update(()=>{s&&u7(e,s)})}),c}function ul(e,t,n={}){var r;const o=fa(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const a=o?()=>Promise.all(Ob(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:p}=i;return d7(e,t,c+d,f,p,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[d,c]=l==="beforeChildren"?[a,s]:[s,a];return d().then(()=>c())}else return Promise.all([a(),s(n.delay)])}function d7(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=o===1?(d=0)=>d*r:(d=0)=>s-d*r;return Array.from(e.variantChildren).sort(f7).forEach((d,c)=>{d.notify("AnimationStart",t),a.push(ul(d,t,{...i,delay:n+l(c)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function f7(e,t){return e.sortNodePosition(t)}function p7(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>ul(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=ul(e,t,n);else{const o=typeof t=="function"?fa(e,t,n.custom):t;r=Promise.all(Ob(e,o,n))}return r.then(()=>{Le.postRender(()=>{e.notify("AnimationComplete",t)})})}const h7=[...fu].reverse(),b7=fu.length;function m7(e){return t=>Promise.all(t.map(({animation:n,options:r})=>p7(e,n,r)))}function g7(e){let t=m7(e);const n=y7();let r=!0;const o=l=>(d,c)=>{var f;const p=fa(e,c,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(p){const{transition:h,transitionEnd:b,...g}=p;d={...d,...g,...b}}return d};function i(l){t=l(e)}function a(l){const d=e.getProps(),c=e.getVariantContext(!0)||{},f=[],p=new Set;let h={},b=1/0;for(let y=0;y<b7;y++){const $=h7[y],C=n[$],w=d[$]!==void 0?d[$]:c[$],E=ao(w),P=$===l?C.isActive:null;P===!1&&(b=y);let k=w===c[$]&&w!==d[$]&&E;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),C.protectedKeys={...h},!C.isActive&&P===null||!w&&!C.prevProp||ua(w)||typeof w=="boolean")continue;let v=v7(C.prevProp,w)||$===l&&C.isActive&&!k&&E||y>b&&E,L=!1;const F=Array.isArray(w)?w:[w];let A=F.reduce(o($),{});P===!1&&(A={});const{prevResolvedValues:B={}}=C,R={...B,...A},I=K=>{v=!0,p.has(K)&&(L=!0,p.delete(K)),C.needsAnimating[K]=!0;const V=e.getValue(K);V&&(V.liveStyle=!1)};for(const K in R){const V=A[K],T=B[K];if(h.hasOwnProperty(K))continue;let G=!1;tl(V)&&tl(T)?G=!lb(V,T):G=V!==T,G?V!=null?I(K):p.add(K):V!==void 0&&p.has(K)?I(K):C.protectedKeys[K]=!0}C.prevProp=w,C.prevResolvedValues=A,C.isActive&&(h={...h,...A}),r&&e.blockInitialAnimation&&(v=!1),v&&(!k||L)&&f.push(...F.map(K=>({animation:K,options:{type:$}})))}if(p.size){const y={};p.forEach($=>{const C=e.getBaseTarget($),w=e.getValue($);w&&(w.liveStyle=!0),y[$]=C??null}),f.push({animation:y})}let g=!!f.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(f):Promise.resolve()}function s(l,d){var c;if(n[l].isActive===d)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(p=>{var h;return(h=p.animationState)===null||h===void 0?void 0:h.setActive(l,d)}),n[l].isActive=d;const f=a(l);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>n}}function v7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!lb(t,e):!1}function hn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function y7(){return{animate:hn(!0),whileInView:hn(),whileHover:hn(),whileTap:hn(),whileDrag:hn(),whileFocus:hn(),exit:hn()}}class $7 extends fn{constructor(t){super(t),t.animationState||(t.animationState=g7(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ua(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let x7=0;class w7 extends fn{constructor(){super(...arguments),this.id=x7++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Nb={animation:{Feature:$7},exit:{Feature:w7}},hf=(e,t)=>Math.abs(e-t);function C7(e,t){const n=hf(e.x,t.x),r=hf(e.y,t.y);return Math.sqrt(n**2+r**2)}class Kb{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=ps(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=C7(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:b}=f,{timestamp:g}=je;this.history.push({...b,timestamp:g});const{onStart:y,onMove:$}=this.handlers;p||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),$&&$(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=fs(p,this.transformPagePoint),Le.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:b,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=ps(f.type==="pointercancel"?this.lastMoveEventInfo:fs(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,y),b&&b(f,y)},!nb(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const a=da(t),s=fs(a,this.transformPagePoint),{point:l}=s,{timestamp:d}=je;this.history=[{...l,timestamp:d}];const{onSessionStart:c}=n;c&&c(t,ps(s,this.history)),this.removeListeners=jt(Kt(this.contextWindow,"pointermove",this.handlePointerMove),Kt(this.contextWindow,"pointerup",this.handlePointerUp),Kt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),cn(this.updatePoint)}}function fs(e,t){return t?{point:t(e.point)}:e}function bf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ps({point:e},t){return{point:e,delta:bf(e,jb(t)),offset:bf(e,D7(t)),velocity:E7(t,.1)}}function D7(e){return e[0]}function jb(e){return e[e.length-1]}function E7(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=jb(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>_t(t)));)n--;if(!r)return{x:0,y:0};const i=zt(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function rt(e){return e.max-e.min}function cl(e,t=0,n=.01){return Math.abs(e-t)<=n}function mf(e,t,n,r=.5){e.origin=r,e.originPoint=Ee(t.min,t.max,e.origin),e.scale=rt(n)/rt(t),(cl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ee(n.min,n.max,e.origin)-e.originPoint,(cl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Xr(e,t,n,r){mf(e.x,t.x,n.x,r?r.originX:void 0),mf(e.y,t.y,n.y,r?r.originY:void 0)}function gf(e,t,n){e.min=n.min+t.min,e.max=e.min+rt(t)}function P7(e,t,n){gf(e.x,t.x,n.x),gf(e.y,t.y,n.y)}function vf(e,t,n){e.min=t.min-n.min,e.max=e.min+rt(t)}function Jr(e,t,n){vf(e.x,t.x,n.x),vf(e.y,t.y,n.y)}function S7(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ee(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ee(n,e,r.max):Math.min(e,n)),e}function yf(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function T7(e,{top:t,left:n,bottom:r,right:o}){return{x:yf(e.x,n,o),y:yf(e.y,t,r)}}function $f(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function A7(e,t){return{x:$f(e.x,t.x),y:$f(e.y,t.y)}}function M7(e,t){let n=.5;const r=rt(e),o=rt(t);return o>r?n=lo(t.min,t.max-r,e.min):r>o&&(n=lo(e.min,e.max-o,t.min)),un(0,1,n)}function k7(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const dl=.35;function R7(e=dl){return e===!1?e=0:e===!0&&(e=dl),{x:xf(e,"left","right"),y:xf(e,"top","bottom")}}function xf(e,t,n){return{min:wf(e,t),max:wf(e,n)}}function wf(e,t){return typeof e=="number"?e:e[t]||0}const Cf=()=>({translate:0,scale:1,origin:0,originPoint:0}),nr=()=>({x:Cf(),y:Cf()}),Df=()=>({min:0,max:0}),Ae=()=>({x:Df(),y:Df()});function st(e){return[e("x"),e("y")]}function _b({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function F7({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function B7(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function hs(e){return e===void 0||e===1}function fl({scale:e,scaleX:t,scaleY:n}){return!hs(e)||!hs(t)||!hs(n)}function gn(e){return fl(e)||zb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function zb(e){return Ef(e.x)||Ef(e.y)}function Ef(e){return e&&e!=="0%"}function Wi(e,t,n){const r=e-n,o=t*r;return n+o}function Pf(e,t,n,r,o){return o!==void 0&&(e=Wi(e,o,r)),Wi(e,n,r)+t}function pl(e,t=0,n=1,r,o){e.min=Pf(e.min,t,n,r,o),e.max=Pf(e.max,t,n,r,o)}function Ub(e,{x:t,y:n}){pl(e.x,t.translate,t.scale,t.originPoint),pl(e.y,n.translate,n.scale,n.originPoint)}function I7(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const l=i.instance;l&&l.style&&l.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Ub(e,a)),r&&gn(i.latestValues)&&rr(e,i.latestValues))}t.x=Sf(t.x),t.y=Sf(t.y)}function Sf(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function tn(e,t){e.min=e.min+t,e.max=e.max+t}function Tf(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,a=Ee(e.min,e.max,i);pl(e,t[n],t[r],a,t.scale)}const L7=["x","scaleX","originX"],V7=["y","scaleY","originY"];function rr(e,t){Tf(e.x,t,L7),Tf(e.y,t,V7)}function Hb(e,t){return _b(B7(e.getBoundingClientRect(),t))}function O7(e,t,n){const r=Hb(e,n),{scroll:o}=t;return o&&(tn(r.x,o.offset.x),tn(r.y,o.offset.y)),r}const Gb=({current:e})=>e?e.ownerDocument.defaultView:null,N7=new WeakMap;class K7{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ae(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(da(c,"page").point)},i=(c,f)=>{const{drag:p,dragPropagation:h,onDragStart:b}=this.getProps();if(p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ob(p),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),st(y=>{let $=this.getAxisMotionValue(y).get()||0;if(St.test($)){const{projection:C}=this.visualElement;if(C&&C.layout){const w=C.layout.layoutBox[y];w&&($=rt(w)*(parseFloat($)/100))}}this.originPoint[y]=$}),b&&b(c,f);const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(c,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:b,onDrag:g}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:y}=f;if(h&&this.currentDirection===null){this.currentDirection=j7(y),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),g&&g(c,f)},s=(c,f)=>this.stop(c,f),l=()=>st(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Kb(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:Gb(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&i(t,n)}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!ii(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=S7(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&er(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=T7(o.layoutBox,n):this.constraints=!1,this.elastic=R7(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&st(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=k7(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!er(t))return!1;const r=t.current;Tt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=O7(r,o.root,this.visualElement.getTransformPagePoint());let a=A7(o.layout.layoutBox,i);if(n){const s=n(F7(a));this.hasMutatedConstraints=!!s,s&&(a=_b(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},d=st(c=>{if(!ii(c,n,this.currentDirection))return;let f=l&&l[c]||{};a&&(f={min:0,max:0});const p=o?200:1e6,h=o?40:1e7,b={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(c,b)});return Promise.all(d).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Fu(t,r,0,n,this.visualElement))}stopAnimation(){st(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){st(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){st(n=>{const{drag:r}=this.getProps();if(!ii(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[n];i.set(t[n]-Ee(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!er(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};st(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const l=s.get();o[a]=M7({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),st(a=>{if(!ii(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:d}=this.constraints[a];s.set(Ee(l,d,o[a]))})}addListeners(){if(!this.visualElement.current)return;N7.set(this.visualElement,this);const t=this.visualElement.current,n=Kt(t,"pointerdown",l=>{const{drag:d,dragListener:c=!0}=this.getProps();d&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();er(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const a=Ot(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(st(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=dl,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function ii(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function j7(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class _7 extends fn{constructor(t){super(t),this.removeGroupControls=ze,this.removeListeners=ze,this.controls=new K7(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ze}unmount(){this.removeGroupControls(),this.removeListeners()}}const Af=e=>(t,n)=>{e&&e(t,n)};class z7 extends fn{constructor(){super(...arguments),this.removePointerDownListener=ze}onPointerDown(t){this.session=new Kb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Af(t),onStart:Af(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&o(i,a)}}}mount(){this.removePointerDownListener=Kt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function U7(){const e=u.useContext(la);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=u.useId();return u.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const mi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Mf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Vr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ne.test(e))e=parseFloat(e);else return e;const n=Mf(e,t.target.x),r=Mf(e,t.target.y);return`${n}% ${r}%`}},H7={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=dn.parse(e);if(o.length>5)return r;const i=dn.createTransformer(e),a=typeof o[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const d=Ee(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=d),typeof o[3+a]=="number"&&(o[3+a]/=d),i(o)}};class G7 extends u.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;Y2(W7),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),mi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Le.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),du.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Wb(e){const[t,n]=U7(),r=u.useContext(hu);return S.jsx(G7,{...e,layoutGroup:r,switchLayoutGroup:u.useContext(Kh),isPresent:t,safeToRemove:n})}const W7={borderRadius:{...Vr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vr,borderTopRightRadius:Vr,borderBottomLeftRadius:Vr,borderBottomRightRadius:Vr,boxShadow:H7},Yb=["TopLeft","TopRight","BottomLeft","BottomRight"],Y7=Yb.length,kf=e=>typeof e=="string"?parseFloat(e):e,Rf=e=>typeof e=="number"||ne.test(e);function q7(e,t,n,r,o,i){o?(e.opacity=Ee(0,n.opacity!==void 0?n.opacity:1,Z7(r)),e.opacityExit=Ee(t.opacity!==void 0?t.opacity:1,0,X7(r))):i&&(e.opacity=Ee(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<Y7;a++){const s=`border${Yb[a]}Radius`;let l=Ff(t,s),d=Ff(n,s);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||Rf(l)===Rf(d)?(e[s]=Math.max(Ee(kf(l),kf(d),r),0),(St.test(d)||St.test(l))&&(e[s]+="%")):e[s]=d}(t.rotate||n.rotate)&&(e.rotate=Ee(t.rotate||0,n.rotate||0,r))}function Ff(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Z7=qb(0,.5,kb),X7=qb(.5,.95,ze);function qb(e,t,n){return r=>r<e?0:r>t?1:n(lo(e,t,r))}function Bf(e,t){e.min=t.min,e.max=t.max}function it(e,t){Bf(e.x,t.x),Bf(e.y,t.y)}function If(e,t,n,r,o){return e-=t,e=Wi(e,1/n,r),o!==void 0&&(e=Wi(e,1/o,r)),e}function J7(e,t=0,n=1,r=.5,o,i=e,a=e){if(St.test(t)&&(t=parseFloat(t),t=Ee(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Ee(i.min,i.max,r);e===i&&(s-=t),e.min=If(e.min,t,n,s,o),e.max=If(e.max,t,n,s,o)}function Lf(e,t,[n,r,o],i,a){J7(e,t[n],t[r],t[o],t.scale,i,a)}const Q7=["x","scaleX","originX"],eC=["y","scaleY","originY"];function Vf(e,t,n,r){Lf(e.x,t,Q7,n?n.x:void 0,r?r.x:void 0),Lf(e.y,t,eC,n?n.y:void 0,r?r.y:void 0)}function Of(e){return e.translate===0&&e.scale===1}function Zb(e){return Of(e.x)&&Of(e.y)}function tC(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Xb(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Nf(e){return rt(e.x)/rt(e.y)}class nC{constructor(){this.members=[]}add(t){Bu(this.members,t),t.scheduleRender()}remove(t){if(Iu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Kf(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:c,rotateX:f,rotateY:p,skewX:h,skewY:b}=n;d&&(r=`perspective(${d}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),h&&(r+=`skewX(${h}deg) `),b&&(r+=`skewY(${b}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const rC=(e,t)=>e.depth-t.depth;class oC{constructor(){this.children=[],this.isDirty=!1}add(t){Bu(this.children,t),this.isDirty=!0}remove(t){Iu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rC),this.isDirty=!1,this.children.forEach(t)}}function iC(e,t){const n=on.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(cn(r),e(i-t))};return Le.read(r,!0),()=>cn(r)}function aC(e){window.MotionDebug&&window.MotionDebug.record(e)}function sC(e){return e instanceof SVGElement&&e.tagName!=="svg"}function lC(e,t,n){const r=We(e)?e:uo(e);return r.start(Fu("",r,t,n)),r.animation}const bs=["","X","Y","Z"],uC={visibility:"hidden"},jf=1e3;let cC=0;const vn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ms(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Jb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=cC++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,vn.totalNodes=vn.resolvedTargetDeltas=vn.recalculatedProjection=0,this.nodes.forEach(pC),this.nodes.forEach(vC),this.nodes.forEach(yC),this.nodes.forEach(hC),aC(vn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new oC)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Lu),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const l=this.eventHandlers.get(a);l&&l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=sC(a),this.instance=a;const{layoutId:l,layout:d,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(d||l)&&(this.isLayoutDirty=!0),e){let f;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=iC(p,250),mi.hasAnimatedSinceResize&&(mi.hasAnimatedSinceResize=!1,this.nodes.forEach(zf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||d)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||DC,{onLayoutAnimationStart:y,onLayoutAnimationComplete:$}=c.getProps(),C=!this.targetLayout||!Xb(this.targetLayout,b)||h,w=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,w);const E={...Du(g,"layout"),onPlay:y,onComplete:$};(c.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else p||zf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,cn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach($C),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(_f);return}this.isUpdating||this.nodes.forEach(mC),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(gC),this.nodes.forEach(dC),this.nodes.forEach(fC),this.clearAllSnapshots();const s=on.now();je.delta=un(0,1e3/60,s-je.timestamp),je.timestamp=s,je.isProcessing=!0,is.update.process(je),is.preRender.process(je),is.render.process(je),je.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,du.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(bC),this.sharedNodes.forEach(xC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Le.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Le.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ae(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!Zb(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,c=d!==this.prevTransformTemplateValue;a&&(s||gn(this.latestValues)||c)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),EC(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Ae();const s=a.measureViewportBox(),{scroll:l}=this.root;return l&&(tn(s.x,l.offset.x),tn(s.y,l.offset.y)),s}removeElementScroll(a){const s=Ae();it(s,a);for(let l=0;l<this.path.length;l++){const d=this.path[l],{scroll:c,options:f}=d;if(d!==this.root&&c&&f.layoutScroll){if(c.isRoot){it(s,a);const{scroll:p}=this.root;p&&(tn(s.x,-p.offset.x),tn(s.y,-p.offset.y))}tn(s.x,c.offset.x),tn(s.y,c.offset.y)}}return s}applyTransform(a,s=!1){const l=Ae();it(l,a);for(let d=0;d<this.path.length;d++){const c=this.path[d];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&rr(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),gn(c.latestValues)&&rr(l,c.latestValues)}return gn(this.latestValues)&&rr(l,this.latestValues),l}removeTransform(a){const s=Ae();it(s,a);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!gn(d.latestValues))continue;fl(d.latestValues)&&d.updateSnapshot();const c=Ae(),f=d.measurePageBox();it(c,f),Vf(s,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,c)}return gn(this.latestValues)&&Vf(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==je.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var s;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==l;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:p}=this.options;if(!(!this.layout||!(f||p))){if(this.resolvedRelativeTargetAt=je.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ae(),this.relativeTargetOrigin=Ae(),Jr(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ae(),this.targetWithTransforms=Ae()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),P7(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):it(this.target,this.layout.layoutBox),Ub(this.target,this.targetDelta)):it(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ae(),this.relativeTargetOrigin=Ae(),Jr(this.relativeTargetOrigin,this.target,h.target),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}vn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||fl(this.parent.latestValues)||zb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const s=this.getLead(),l=!!this.resumingFrom||this!==s;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===je.timestamp&&(d=!1),d)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;it(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,h=this.treeScale.y;I7(this.layoutCorrected,this.treeScale,this.path,l),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=Ae());const{target:b}=s;if(!b){this.projectionTransform&&(this.projectionDelta=nr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=nr(),this.projectionDeltaWithTransform=nr());const g=this.projectionTransform;Xr(this.projectionDelta,this.layoutCorrected,b,this.latestValues),this.projectionTransform=Kf(this.projectionDelta,this.treeScale),(this.projectionTransform!==g||this.treeScale.x!==p||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),vn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,s=!1){const l=this.snapshot,d=l?l.latestValues:{},c={...this.latestValues},f=nr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const p=Ae(),h=l?l.source:void 0,b=this.layout?this.layout.source:void 0,g=h!==b,y=this.getStack(),$=!y||y.members.length<=1,C=!!(g&&!$&&this.options.crossfade===!0&&!this.path.some(CC));this.animationProgress=0;let w;this.mixTargetDelta=E=>{const P=E/1e3;Uf(f.x,a.x,P),Uf(f.y,a.y,P),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jr(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wC(this.relativeTarget,this.relativeTargetOrigin,p,P),w&&tC(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Ae()),it(w,this.relativeTarget)),g&&(this.animationValues=c,q7(c,d,this.latestValues,P,C,$)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(cn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Le.update(()=>{mi.hasAnimatedSinceResize=!0,this.currentAnimation=lC(0,jf,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(jf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:d,latestValues:c}=a;if(!(!s||!l||!d)){if(this!==a&&this.layout&&d&&Qb(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||Ae();const f=rt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const p=rt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p}it(s,l),rr(s,c),Xr(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new nC),this.sharedNodes.get(a).add(s);const d=s.options.initialPromotionConfig;s.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const d={};l.z&&ms("z",a,d,this.animationValues);for(let c=0;c<bs.length;c++)ms(`rotate${bs[c]}`,a,d,this.animationValues),ms(`skew${bs[c]}`,a,d,this.animationValues);a.render();for(const c in d)a.setStaticValue(c,d[c]),this.animationValues&&(this.animationValues[c]=d[c]);a.scheduleRender()}getProjectionStyles(a){var s,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return uC;const d={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=hi(a==null?void 0:a.pointerEvents)||"",d.transform=c?c(this.latestValues,""):"none",d;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=hi(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!gn(this.latestValues)&&(g.transform=c?c({},""):"none",this.hasProjected=!1),g}const p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),d.transform=Kf(this.projectionDeltaWithTransform,this.treeScale,p),c&&(d.transform=c(p,d.transform));const{x:h,y:b}=this.projectionDelta;d.transformOrigin=`${h.origin*100}% ${b.origin*100}% 0`,f.animationValues?d.opacity=f===this?(l=(s=p.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const g in ji){if(p[g]===void 0)continue;const{correct:y,applyTo:$}=ji[g],C=d.transform==="none"?p[g]:y(p[g],f);if($){const w=$.length;for(let E=0;E<w;E++)d[$[E]]=C}else d[g]=C}return this.options.layoutId&&(d.pointerEvents=f===this?hi(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(_f),this.root.sharedNodes.clear()}}}function dC(e){e.updateLayout()}function fC(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;i==="size"?st(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=rt(p);p.min=r[f].min,p.max=p.min+h}):Qb(i,n.layoutBox,r)&&st(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=rt(r[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=nr();Xr(s,r,n.layoutBox);const l=nr();a?Xr(l,e.applyTransform(o,!0),n.measuredBox):Xr(l,r,n.layoutBox);const d=!Zb(s);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const b=Ae();Jr(b,n.layoutBox,p.layoutBox);const g=Ae();Jr(g,r,h.layoutBox),Xb(b,g)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=b,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:d,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function pC(e){vn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function hC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function bC(e){e.clearSnapshot()}function _f(e){e.clearMeasurements()}function mC(e){e.isLayoutDirty=!1}function gC(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function zf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vC(e){e.resolveTargetDelta()}function yC(e){e.calcProjection()}function $C(e){e.resetSkewAndRotation()}function xC(e){e.removeLeadSnapshot()}function Uf(e,t,n){e.translate=Ee(t.translate,0,n),e.scale=Ee(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Hf(e,t,n,r){e.min=Ee(t.min,n.min,r),e.max=Ee(t.max,n.max,r)}function wC(e,t,n,r){Hf(e.x,t.x,n.x,r),Hf(e.y,t.y,n.y,r)}function CC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const DC={duration:.45,ease:[.4,0,.1,1]},Gf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Wf=Gf("applewebkit/")&&!Gf("chrome/")?Math.round:ze;function Yf(e){e.min=Wf(e.min),e.max=Wf(e.max)}function EC(e){Yf(e.x),Yf(e.y)}function Qb(e,t,n){return e==="position"||e==="preserve-aspect"&&!cl(Nf(t),Nf(n),.2)}const PC=Jb({attachResizeListener:(e,t)=>Ot(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gs={current:void 0},em=Jb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gs.current){const e=new PC({});e.mount(window),e.setOptions({layoutScroll:!0}),gs.current=e}return gs.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),SC={pan:{Feature:z7},drag:{Feature:_7,ProjectionNode:em,MeasureLayout:Wb}},hl={current:null},tm={current:!1};function TC(){if(tm.current=!0,!!su)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hl.current=e.matches;e.addListener(t),t()}else hl.current=!1}function AC(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(We(i))e.addValue(o,i),Gi(r)&&r.add(o),process.env.NODE_ENV==="development"&&Vu(i.version==="11.1.7",`Attempting to mix Framer Motion versions ${i.version} with 11.1.7 may not work as expected.`);else if(We(a))e.addValue(o,uo(i,{owner:e})),Gi(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const s=e.getValue(o);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,uo(s!==void 0?s:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const qf=new WeakMap,MC=[...pb,He,dn],kC=e=>MC.find(fb(e)),nm=Object.keys(so),RC=nm.length,Zf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],FC=pu.length;function rm(e){if(e)return e.options.allowProjection!==!1?e.projection:rm(e.parent)}class BC{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:a},s={}){this.resolveKeyframes=(p,h,b,g)=>new this.KeyframeResolver(p,h,b,g,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Eu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Le.render(this.render,!1,!0);const{latestValues:l,renderState:d}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=ca(n),this.isVariantNode=Nh(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const h=f[p];l[p]!==void 0&&We(h)&&(h.set(l[p],!1),Gi(c)&&c.add(p))}}mount(t){this.current=t,qf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),tm.current||TC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:hl.current,process.env.NODE_ENV!=="production"&&Vu(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;qf.delete(this.current),this.projection&&this.projection.unmount(),cn(this.notifyUpdate),cn(this.render),this.valueSubscriptions.forEach(n=>n()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const n in this.events)this.events[n].clear();for(const n in this.features)(t=this.features[n])===null||t===void 0||t.unmount();this.current=null}bindToMotionValue(t,n){const r=Ln.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Le.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let a,s;if(process.env.NODE_ENV!=="production"&&o&&r){const l="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?wo(!1,l):Tt(!1,l)}for(let l=0;l<RC;l++){const d=nm[l],{isEnabled:c,Feature:f,ProjectionNode:p,MeasureLayout:h}=so[d];p&&(a=p),c(n)&&(!this.features[d]&&f&&(this.features[d]=new f(this)),h&&(s=h))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,rm(this.parent));const{layoutId:l,layout:d,drag:c,dragConstraints:f,layoutScroll:p,layoutRoot:h}=n;this.projection.setOptions({layoutId:l,layout:d,alwaysMeasureLayout:!!c||f&&er(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:i,layoutScroll:p,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ae()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Zf.length;r++){const o=Zf[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,a=t[i];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=AC(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<FC;r++){const o=pu[r],i=this.props[o];(ao(i)||i===!1)&&(n[o]=i)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=uo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(cb(o)||ub(o))?o=parseFloat(o):!kC(o)&&dn.test(n)&&(o=xb(t,n)),this.setBaseTarget(t,We(o)?o.get():o)),We(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const a=Cu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(o=a[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!We(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Lu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class om extends BC{constructor(){super(...arguments),this.KeyframeResolver=wb}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function IC(e){return window.getComputedStyle(e)}class LC extends om{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Ln.has(n)){const r=Su(n);return r&&r.default||0}else{const r=IC(t),o=(Uh(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Hb(t,n)}build(t,n,r,o){vu(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return wu(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;We(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){qh(t,n,r,o)}}class VC extends om{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ln.has(n)){const r=Su(n);return r&&r.default||0}return n=Zh.has(n)?n:cu(n),t.getAttribute(n)}measureInstanceViewportBox(){return Ae()}scrapeMotionValuesFromProps(t,n,r){return Jh(t,n,r)}build(t,n,r,o){$u(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){Xh(t,n,r,o)}mount(t){this.isSVGTag=xu(t.tagName),super.mount(t)}}const im=(e,t)=>bu(e)?new VC(t,{enableHardwareAcceleration:!1}):new LC(t,{allowProjection:e!==u.Fragment,enableHardwareAcceleration:!0}),OC={layout:{ProjectionNode:em,MeasureLayout:Wb}},NC={...Nb,...sb,...SC,...OC},yr=jh((e,t)=>tb(e,t,NC,im)),KC=jh(tb);function am(){const e=u.useRef(!1);return lu(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function jC(){const e=am(),[t,n]=u.useState(0),r=u.useCallback(()=>{e.current&&n(t+1)},[t]);return[u.useCallback(()=>Le.postRender(r),[r]),t]}class _C extends Sn.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function zC({children:e,isPresent:t}){const n=u.useId(),r=u.useRef(null),o=u.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=u.useContext(au);return u.useInsertionEffect(()=>{const{width:a,height:s,top:l,left:d}=o.current;if(t||!r.current||!a||!s)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
104
104
  [data-motion-pop-id="${n}"] {
105
105
  position: absolute !important;
106
106
  width: ${a}px !important;
@@ -108,18 +108,18 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
108
108
  top: ${l}px !important;
109
109
  left: ${d}px !important;
110
110
  }
111
- `),()=>{document.head.removeChild(c)}},[t]),S.jsx(_C,{isPresent:t,childRef:r,sizeRef:o,children:Sn.cloneElement(e,{ref:r})})}const vs=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=Qh(UC),l=u.useId(),d=u.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{s.set(c,!0);for(const f of s.values())if(!f)return;r&&r()},register:c=>(s.set(c,!1),()=>s.delete(c))}),i?[Math.random()]:[n]);return u.useMemo(()=>{s.forEach((c,f)=>s.set(f,!1))},[n]),Sn.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=S.jsx(zC,{isPresent:n,children:e})),S.jsx(la.Provider,{value:d,children:e})};function UC(){return new Map}function HC(e){return u.useEffect(()=>()=>e(),[])}const yn=e=>e.key||"";function GC(e,t){e.forEach(n=>{const r=yn(n);t.set(r,n)})}function WC(e){const t=[];return u.Children.forEach(e,n=>{u.isValidElement(n)&&t.push(n)}),t}const sm=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{Tt(!o,"Replace exitBeforeEnter with mode='wait'");const s=u.useContext(hu).forceRender||jC()[0],l=am(),d=WC(e);let c=d;const f=u.useRef(new Map).current,p=u.useRef(c),h=u.useRef(new Map).current,b=u.useRef(!0);if(lu(()=>{b.current=!1,GC(d,h),p.current=c}),HC(()=>{b.current=!0,h.clear(),f.clear()}),b.current)return S.jsx(S.Fragment,{children:c.map(C=>S.jsx(vs,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:a,children:C},yn(C)))});c=[...c];const g=p.current.map(yn),y=d.map(yn),$=g.length;for(let C=0;C<$;C++){const w=g[C];y.indexOf(w)===-1&&!f.has(w)&&f.set(w,void 0)}return a==="wait"&&f.size&&(c=[]),f.forEach((C,w)=>{if(y.indexOf(w)!==-1)return;const E=h.get(w);if(!E)return;const P=g.indexOf(w);let k=C;if(!k){const N=()=>{f.delete(w);const v=Array.from(h.keys()).filter(L=>!y.includes(L));if(v.forEach(L=>h.delete(L)),p.current=d.filter(L=>{const F=yn(L);return F===w||v.includes(F)}),!f.size){if(l.current===!1)return;s(),r&&r()}};k=S.jsx(vs,{isPresent:!1,onExitComplete:N,custom:t,presenceAffectsLayout:i,mode:a,children:E},yn(E)),f.set(w,k)}c.splice(P,0,k)}),c=c.map(C=>{const w=C.key;return f.has(w)?C:S.jsx(vs,{isPresent:!0,presenceAffectsLayout:i,mode:a,children:C},yn(C))}),process.env.NODE_ENV!=="production"&&a==="wait"&&c.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),S.jsx(S.Fragment,{children:f.size?c:c.map(C=>u.cloneElement(C))})};function YC({children:e,features:t,strict:n=!1}){const[,r]=u.useState(!ys(t)),o=u.useRef(void 0);if(!ys(t)){const{renderer:i,...a}=t;o.current=i,el(a)}return u.useEffect(()=>{ys(t)&&t().then(({renderer:i,...a})=>{el(a),o.current=i,r(!0)})},[]),S.jsx(uu.Provider,{value:{renderer:o.current,strict:n},children:e})}function ys(e){return typeof e=="function"}const qC={renderer:im,...Nb,...sb};function ZC(e){const[t,n]=Rh(e,Zc.variantKeys),{as:r,children:o,className:i,content:a,classNames:s,...l}=t,d=r||"span",c=u.useMemo(()=>{var g;return((g=String(a))==null?void 0:g.length)===1||(e==null?void 0:e.isOneChar)},[a,e==null?void 0:e.isOneChar]),f=u.useMemo(()=>{var g;return((g=String(a))==null?void 0:g.length)===0},[a]),p=sr(s==null?void 0:s.badge,i),h=u.useMemo(()=>Zc({...n,showOutline:e!=null&&e.disableOutline?!(e!=null&&e.disableOutline):e==null?void 0:e.showOutline,isOneChar:c,isDot:f}),[Sp(n),c,f]),b=()=>({className:h.badge({class:p}),"data-invisible":e.isInvisible,...l});return{Component:d,children:o,content:a,slots:h,classNames:s,disableAnimation:e==null?void 0:e.disableAnimation,isInvisible:e==null?void 0:e.isInvisible,getBadgeProps:b}}var lm=aa((e,t)=>{const{Component:n,children:r,content:o,slots:i,classNames:a,getBadgeProps:s}=ZC({...e});return S.jsxs("div",{className:i.base({class:a==null?void 0:a.base}),children:[r,S.jsx(n,{ref:t,...s(),children:o})]})});lm.displayName="NextUI.Badge";var XC=lm;const JC=_.div`
111
+ `),()=>{document.head.removeChild(c)}},[t]),S.jsx(_C,{isPresent:t,childRef:r,sizeRef:o,children:Sn.cloneElement(e,{ref:r})})}const vs=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=Qh(UC),l=u.useId(),d=u.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{s.set(c,!0);for(const f of s.values())if(!f)return;r&&r()},register:c=>(s.set(c,!1),()=>s.delete(c))}),i?[Math.random()]:[n]);return u.useMemo(()=>{s.forEach((c,f)=>s.set(f,!1))},[n]),Sn.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=S.jsx(zC,{isPresent:n,children:e})),S.jsx(la.Provider,{value:d,children:e})};function UC(){return new Map}function HC(e){return u.useEffect(()=>()=>e(),[])}const yn=e=>e.key||"";function GC(e,t){e.forEach(n=>{const r=yn(n);t.set(r,n)})}function WC(e){const t=[];return u.Children.forEach(e,n=>{u.isValidElement(n)&&t.push(n)}),t}const sm=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{Tt(!o,"Replace exitBeforeEnter with mode='wait'");const s=u.useContext(hu).forceRender||jC()[0],l=am(),d=WC(e);let c=d;const f=u.useRef(new Map).current,p=u.useRef(c),h=u.useRef(new Map).current,b=u.useRef(!0);if(lu(()=>{b.current=!1,GC(d,h),p.current=c}),HC(()=>{b.current=!0,h.clear(),f.clear()}),b.current)return S.jsx(S.Fragment,{children:c.map(C=>S.jsx(vs,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:a,children:C},yn(C)))});c=[...c];const g=p.current.map(yn),y=d.map(yn),$=g.length;for(let C=0;C<$;C++){const w=g[C];y.indexOf(w)===-1&&!f.has(w)&&f.set(w,void 0)}return a==="wait"&&f.size&&(c=[]),f.forEach((C,w)=>{if(y.indexOf(w)!==-1)return;const E=h.get(w);if(!E)return;const P=g.indexOf(w);let k=C;if(!k){const N=()=>{f.delete(w);const v=Array.from(h.keys()).filter(L=>!y.includes(L));if(v.forEach(L=>h.delete(L)),p.current=d.filter(L=>{const F=yn(L);return F===w||v.includes(F)}),!f.size){if(l.current===!1)return;s(),r&&r()}};k=S.jsx(vs,{isPresent:!1,onExitComplete:N,custom:t,presenceAffectsLayout:i,mode:a,children:E},yn(E)),f.set(w,k)}c.splice(P,0,k)}),c=c.map(C=>{const w=C.key;return f.has(w)?C:S.jsx(vs,{isPresent:!0,presenceAffectsLayout:i,mode:a,children:C},yn(C))}),process.env.NODE_ENV!=="production"&&a==="wait"&&c.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),S.jsx(S.Fragment,{children:f.size?c:c.map(C=>u.cloneElement(C))})};function YC({children:e,features:t,strict:n=!1}){const[,r]=u.useState(!ys(t)),o=u.useRef(void 0);if(!ys(t)){const{renderer:i,...a}=t;o.current=i,el(a)}return u.useEffect(()=>{ys(t)&&t().then(({renderer:i,...a})=>{el(a),o.current=i,r(!0)})},[]),S.jsx(uu.Provider,{value:{renderer:o.current,strict:n},children:e})}function ys(e){return typeof e=="function"}const qC={renderer:im,...Nb,...sb};function ZC(e){const[t,n]=Rh(e,Zc.variantKeys),{as:r,children:o,className:i,content:a,classNames:s,...l}=t,d=r||"span",c=u.useMemo(()=>{var g;return((g=String(a))==null?void 0:g.length)===1||(e==null?void 0:e.isOneChar)},[a,e==null?void 0:e.isOneChar]),f=u.useMemo(()=>{var g;return((g=String(a))==null?void 0:g.length)===0},[a]),p=sr(s==null?void 0:s.badge,i),h=u.useMemo(()=>Zc({...n,showOutline:e!=null&&e.disableOutline?!(e!=null&&e.disableOutline):e==null?void 0:e.showOutline,isOneChar:c,isDot:f}),[Sp(n),c,f]),b=()=>({className:h.badge({class:p}),"data-invisible":e.isInvisible,...l});return{Component:d,children:o,content:a,slots:h,classNames:s,disableAnimation:e==null?void 0:e.disableAnimation,isInvisible:e==null?void 0:e.isInvisible,getBadgeProps:b}}var lm=aa((e,t)=>{const{Component:n,children:r,content:o,slots:i,classNames:a,getBadgeProps:s}=ZC({...e});return S.jsxs("div",{className:i.base({class:a==null?void 0:a.base}),children:[r,S.jsx(n,{ref:t,...s(),children:o})]})});lm.displayName="NextUI.Badge";var XC=lm;const JC=_.styled.div`
112
112
  position: relative;
113
113
  display: inline-flex;
114
114
  flex-shrink: 0;
115
- `,QC=_.div`
115
+ `,QC=_.styled.div`
116
116
  position: absolute;
117
117
  z-index: 2;
118
118
 
119
119
  transform: ${({placement:e})=>{const t={"top-right":"translate(50%, -50%)","bottom-right":"translate(50%, 50%)","bottom-left":"translate(-50%, 50%)","top-left":"translate(-50%, -50%)"};return e&&t[e]?t[e]:t["top-right"]}};
120
120
 
121
121
  ${({placement:e,shape:t})=>{const n={rectangle:"5%",circle:"10%"};let r=n.rectangle;t&&n[t]&&(r=n[t]);const o={"top-right":{top:r,right:r},"bottom-right":{bottom:r,right:r},"top-left":{top:r,left:r},"bottom-left":{bottom:r,left:r}};return e&&o[e]?o[e]:o["top-right"]}};
122
- `,eD=_(XC)`
122
+ `,eD=_.styled(XC)`
123
123
  display: flex;
124
124
  flex-wrap: wrap;
125
125
  place-content: center;
@@ -176,17 +176,17 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
176
176
  *
177
177
  * This source code is licensed under the MIT license found in the
178
178
  * LICENSE file in the root directory of this source tree.
179
- */var pp;function LE(){return pp||(pp=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=u,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(w){{for(var E=arguments.length,P=new Array(E>1?E-1:0),k=1;k<E;k++)P[k-1]=arguments[k];r("error",w,P)}}function r(w,E,P){{var k=t.ReactDebugCurrentFrame,N=k.getStackAddendum();N!==""&&(E+="%s",P=P.concat([N]));var v=P.map(function(L){return String(L)});v.unshift("Warning: "+E),Function.prototype.apply.call(console[w],console,v)}}function o(w,E){return w===E&&(w!==0||1/w===1/E)||w!==w&&E!==E}var i=typeof Object.is=="function"?Object.is:o,a=e.useState,s=e.useEffect,l=e.useLayoutEffect,d=e.useDebugValue,c=!1,f=!1;function p(w,E,P){c||e.startTransition!==void 0&&(c=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var k=E();if(!f){var N=E();i(k,N)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}var v=a({inst:{value:k,getSnapshot:E}}),L=v[0].inst,F=v[1];return l(function(){L.value=k,L.getSnapshot=E,h(L)&&F({inst:L})},[w,k,E]),s(function(){h(L)&&F({inst:L});var A=function(){h(L)&&F({inst:L})};return w(A)},[w]),d(k),k}function h(w){var E=w.getSnapshot,P=w.value;try{var k=E();return!i(P,k)}catch{return!0}}function b(w,E,P){return E()}var g=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y=!g,$=y?b:p,C=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:$;Ps.useSyncExternalStore=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ps}process.env.NODE_ENV==="production"?$l.exports=IE():$l.exports=LE();var VE=$l.exports;class Yu{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new Yu(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t}constructor(t,n){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=t,this.key=n}}class P4{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}appendChild(t){this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode;let r=n;for(;r;)r.index++,r=r.nextSibling;t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(t){if(t.parentNode!==this)return;this.ownerDocument.startTransaction();let n=t.nextSibling;for(;n;)n.index--,n=n.nextSibling;t.nextSibling&&(t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.removeNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=t}}class fo extends P4{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof fo?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var t,n,r,o;let i=this.ownerDocument.getMutableNode(this);i.index=this.index,i.level=this.level,i.parentKey=this.parentNode instanceof fo?this.parentNode.node.key:null;var a;i.prevKey=(a=(t=this.previousSibling)===null||t===void 0?void 0:t.node.key)!==null&&a!==void 0?a:null;var s;i.nextKey=(s=(n=this.nextSibling)===null||n===void 0?void 0:n.node.key)!==null&&s!==void 0?s:null,i.hasChildNodes=!!this.firstChild;var l;i.firstChildKey=(l=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&l!==void 0?l:null;var d;i.lastChildKey=(d=(o=this.lastChild)===null||o===void 0?void 0:o.node.key)!==null&&d!==void 0?d:null}setProps(t,n,r){let o=this.ownerDocument.getMutableNode(this),{value:i,textValue:a,id:s,...l}=t;if(l.ref=n,o.props=l,o.rendered=r,o.value=i,o.textValue=a||(typeof r=="string"?r:"")||t["aria-label"]||"",s!=null&&s!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=s}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new Yu(t,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class OE{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),o=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?n.get(o.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class NE extends P4{get isConnected(){return!0}createElement(t){return new fo(t,this)}getMutableNode(t){let n=t.node;return this.mutatedNodes.has(t)||(n=t.node.clone(),this.mutatedNodes.add(t),t.node=n),this.markDirty(t),n}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(t){this.dirtyNodes.add(t)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(t){let n=this.getMutableCollection();if(!n.getItem(t.node.key)){n.addNode(t.node);for(let r of t)this.addNode(r)}this.markDirty(t)}removeNode(t){for(let r of t)this.removeNode(r);this.getMutableCollection().removeNode(t.node.key),this.markDirty(t)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof fo&&i.isConnected&&i.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var t,n;let i=this.getMutableCollection();for(let a of this.mutatedNodes)a.isConnected&&i.addNode(a.node);var r,o;i.commit((r=(t=this.firstChild)===null||t===void 0?void 0:t.node.key)!==null&&r!==void 0?r:null,(o=(n=this.lastChild)===null||n===void 0?void 0:n.node.key)!==null&&o!==void 0?o:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let t of this.subscriptions)t()}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=t,this.collectionMutated=!0}}function xr(e){let{children:t,items:n,idScope:r,addIdAndValue:o,dependencies:i=[]}=e,a=u.useMemo(()=>new WeakMap,i);return u.useMemo(()=>{if(n&&typeof t=="function"){let d=[];for(let c of n){let f=a.get(c);if(!f){f=t(c);var s,l;let p=(l=(s=f.props.id)!==null&&s!==void 0?s:c.key)!==null&&l!==void 0?l:c.id;if(p==null)throw new Error("Could not determine key for item");r&&(p=r+":"+p),f=u.cloneElement(f,o?{key:p,id:p,value:c}:{key:p}),a.set(c,f)}d.push(f)}return d}else if(typeof t!="function")return t},[t,n,a,r,o])}function KE(e){return xr({...e,addIdAndValue:!0})}const S4=u.createContext(!1);function qu(e,t){let{collection:n,document:r}=Zu(t);return{portal:T4(e,r),collection:n}}function jE(e,t,n){let r=At(),o=u.useRef(r);o.current=r;let i=u.useCallback(()=>o.current?n():t(),[t,n]);return VE.useSyncExternalStore(e,i)}const _E=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:jE;function Zu(e){let t=u.useMemo(()=>new NE(e||new OE),[e]),n=u.useCallback(a=>t.subscribe(a),[t]),r=u.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=u.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:_E(n,r,o),document:t}}const xl=u.createContext(null),Eo=u.createContext(null);function T4(e,t){let n=u.useContext(Eo),r=t??n,o=KE(e),i=u.useMemo(()=>u.createElement(S4.Provider,{value:!0},o),[o]);return At()?u.createElement(xl.Provider,{value:r},i):Wt.createPortal(i,r)}function A4(e){return u.createElement(u.Fragment,null,T4(e))}function M4(e,t,n){let r=u.useContext(S4);var o;return r?(o=va(e,t,n,"children"in t?t.children:null))!==null&&o!==void 0?o:u.createElement(u.Fragment,null):null}function zE(e,t,n){return u.useCallback(r=>{r==null||r.setProps(e,t,n)},[e,t,n])}function va(e,t,n,r,o){let i=zE(t,n,r),a=u.useContext(xl);if(a){let s=a.ownerDocument.nodesByProps.get(t);return s||(s=a.ownerDocument.createElement(e),s.setProps(t,n,r),a.appendChild(s),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(t,s)),o?u.createElement(xl.Provider,{value:s},o):null}return u.createElement(e,{ref:i},o)}const UE=Symbol("callback"),wl=Symbol("default");function Oe({values:e,children:t}){for(let[n,r]of e)t=u.createElement(n.Provider,{value:r},t);return t}function he(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:i,values:a}=e;return u.useMemo(()=>{let s,l,d;return typeof t=="function"?s=t(a):s=t,typeof n=="function"?l=n(a):l=n,typeof r=="function"?d=r(a):r==null?d=i:d=r,{className:s??o,style:l,children:d,"data-rac":""}},[t,n,r,o,i,a])}function ya(e,t){let n=u.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(i=>`"${i}"`));if(!t&&!n.slots[wl])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let o=t||wl;if(!n.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${r}.`);return n.slots[o]}return n}function me(e,t,n){let r=ya(n,e.slot)||{},{ref:o,[UE]:i,...a}=r,s=mt(u.useMemo(()=>Ji(t,o),[t,o])),l=X(a,e);return"style"in a&&a.style&&typeof a.style=="object"&&"style"in e&&e.style&&typeof e.style=="object"&&(l.style={...a.style,...e.style}),u.useEffect(()=>{i&&i(e)},[i,e]),[l,s]}function yt(){let[e,t]=u.useState(!0),n=u.useRef(!1),r=u.useCallback(o=>{n.current=!0,t(!!o)},[]);return be(()=>{n.current||t(!1)},[]),[r,e]}function Xu(e,t=!0){let[n,r]=u.useState(!0);return k4(e,n&&t,u.useCallback(()=>r(!1),[])),n&&t}function Cl(e,t){let[n,r]=u.useState(!1),[o,i]=u.useState("idle");return!t&&e.current&&o==="idle"&&(n=!0,r(!0),i("exiting")),!e.current&&o==="exited"&&i("idle"),k4(e,n,u.useCallback(()=>{i("exited"),r(!1)},[])),n}function k4(e,t,n){let r=u.useRef(null);t&&e.current&&(r.current=window.getComputedStyle(e.current).animation),be(()=>{if(t&&e.current){let o=window.getComputedStyle(e.current);if(o.animationName&&o.animationName!=="none"&&o.animation!==r.current){let i=s=>{s.target===e.current&&(a.removeEventListener("animationend",i),Wt.flushSync(()=>{n()}))},a=e.current;return a.addEventListener("animationend",i),()=>{a.removeEventListener("animationend",i)}}else n()}},[e,t,n])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const po=u.createContext(!1),HE=typeof DocumentFragment<"u"?new DocumentFragment:null;function R4(e){let t=u.useContext(po),n=At();if(t)return u.createElement(u.Fragment,null,e.children);let r=u.createElement(po.Provider,{value:!0},e.children);return n?u.createElement("template",{"data-react-aria-hidden":!0},r):Wt.createPortal(r,HE)}function $a(e){let t=(n,r)=>u.useContext(po)?null:e(n,r);return t.displayName=e.displayName||e.name,u.forwardRef(t)}function Fn(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}const F4=u.createContext(null);function GE(e,t){[e,t]=me(e,t,F4);let n=e.href?"a":"span",{linkProps:r,isPressed:o}=oD({...e,elementType:n},t),{hoverProps:i,isHovered:a}=Fe(e),{focusProps:s,isFocused:l,isFocusVisible:d}=Ye(),c=he({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:o,isHovered:a,isFocused:l,isFocusVisible:d}});return u.createElement(n,{ref:t,slot:e.slot||void 0,...X(c,r,i,s),"data-focused":l||void 0,"data-hovered":a||void 0,"data-pressed":o||void 0,"data-focus-visible":d||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},c.children)}const xa=u.forwardRef(GE),WE=u.createContext(null);function YE(e,t){[e,t]=me(e,t,WE);let{portal:n,collection:r}=qu(e);return u.createElement(u.Fragment,null,n,u.createElement(qE,{props:e,collection:r,breadcrumbsRef:t}))}function qE({props:e,collection:t,breadcrumbsRef:n}){var r;return u.createElement("ol",{ref:n,...le(e,{labelable:!0}),slot:e.slot||void 0,style:e.style,className:(r=e.className)!==null&&r!==void 0?r:"react-aria-Breadcrumbs"},[...t].map((o,i)=>u.createElement(JE,{key:o.key,node:o,isCurrent:i===t.size-1,isDisabled:e.isDisabled,onAction:e.onAction})))}const ZE=u.forwardRef(YE);function XE(e,t){return va("item",e,t,e.children)}const B4=u.forwardRef(XE);function JE({node:e,isCurrent:t,isDisabled:n,onAction:r}){let o={"aria-current":t?"page":null,isDisabled:n||t,onPress:()=>r==null?void 0:r(e.key)};var i;return u.createElement("li",{...le(e.props),ref:e.props.ref,style:e.props.style,className:(i=e.props.className)!==null&&i!==void 0?i:"react-aria-Breadcrumb"},u.createElement(F4.Provider,{value:o},e.rendered))}const QE=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Ju=u.createContext({});function e8(e,t){[e,t]=me(e,t,Ju);let n=e,{buttonProps:r,isPressed:o}=um(e,t),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye(e),{hoverProps:l,isHovered:d}=Fe(e),c=he({...e,values:{isHovered:d,isPressed:o,isFocused:a,isFocusVisible:s,isDisabled:e.isDisabled||!1},defaultClassName:"react-aria-Button"});return u.createElement("button",{...le(e,{propNames:QE}),...X(r,i,l),...c,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":n.isPressed||o||void 0,"data-hovered":d||void 0,"data-focused":a||void 0,"data-focus-visible":s||void 0})}const I4=$a(e8),t8=u.createContext({}),Yt=u.createContext({});function n8(e,t){[e,t]=me(e,t,Yt);let{elementType:n="span",...r}=e;return u.createElement(n,{className:"react-aria-Text",...r,ref:t})}const wr=u.forwardRef(n8),Vn=u.createContext(null);function r8(e,t){let n=u.useContext(Vn);return n!=null&&n.isInvalid?u.createElement(o8,{...e,ref:t}):null}const Po=u.forwardRef(r8),o8=u.forwardRef((e,t)=>{let n=u.useContext(Vn),r=he({...e,defaultClassName:"react-aria-FieldError",defaultChildren:n.validationErrors.join(" "),values:n});return u.createElement(wr,{slot:"errorMessage",...r,ref:t})}),Mt=u.createContext({});function i8(e,t){[e,t]=me(e,t,Mt);let{elementType:n="label",...r}=e;return u.createElement(n,{className:"react-aria-Label",...r,ref:t})}const qt=$a(i8),a8=u.createContext(null),s8=u.createContext(null);function l8(e,t){[e,t]=me(e,t,s8);let n=u.useRef(null),r=u.useContext(a8);var o;let{labelProps:i,inputProps:a,isSelected:s,isDisabled:l,isReadOnly:d,isPressed:c,isInvalid:f}=r?bD({...e,value:e.value,children:typeof e.children=="function"?!0:e.children},r,n):bm({...e,children:typeof e.children=="function"?!0:e.children,validationBehavior:(o=e.validationBehavior)!==null&&o!==void 0?o:"native"},ha(e),n),{isFocused:p,isFocusVisible:h,focusProps:b}=Ye(),g=l||d,{hoverProps:y,isHovered:$}=Fe({...e,isDisabled:g}),C=he({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:s,isIndeterminate:e.isIndeterminate||!1,isPressed:c,isHovered:$,isFocused:p,isFocusVisible:h,isDisabled:l,isReadOnly:d,isInvalid:f,isRequired:e.isRequired||!1}}),w=le(e);return delete w.id,u.createElement("label",{...X(w,i,y,C),ref:t,slot:e.slot||void 0,"data-selected":s||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":c||void 0,"data-hovered":$||void 0,"data-focused":p||void 0,"data-focus-visible":h||void 0,"data-disabled":l||void 0,"data-readonly":d||void 0,"data-invalid":f||void 0,"data-required":e.isRequired||void 0},u.createElement(ia,{elementType:"span"},u.createElement("input",{...X(a,b),ref:n})),C.children)}const u8=u.forwardRef(l8),Cr=u.createContext({});function c8(e,t){[e,t]=me(e,t,Cr);let{isDisabled:n,isInvalid:r,onHoverStart:o,onHoverChange:i,onHoverEnd:a,...s}=e,{hoverProps:l,isHovered:d}=Fe({onHoverStart:o,onHoverChange:i,onHoverEnd:a,isDisabled:n}),{isFocused:c,isFocusVisible:f,focusProps:p}=Ye({within:!0});n??(n=!!e["aria-disabled"]&&e["aria-disabled"]!=="false"),r??(r=!!e["aria-invalid"]&&e["aria-invalid"]!=="false");let h=he({...e,values:{isHovered:d,isFocusWithin:c,isFocusVisible:f,isDisabled:n,isInvalid:r},defaultClassName:"react-aria-Group"});var b,g;return u.createElement("div",{...X(s,p,l),...h,ref:t,role:(b=e.role)!==null&&b!==void 0?b:"group",slot:(g=e.slot)!==null&&g!==void 0?g:void 0,"data-focus-within":c||void 0,"data-hovered":d||void 0,"data-focus-visible":f||void 0,"data-disabled":n||void 0,"data-invalid":r||void 0},h.children)}const Qu=u.forwardRef(c8),On=u.createContext({});let d8=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...o}=e;return o};function f8(e,t){[e,t]=me(e,t,On);let{hoverProps:n,isHovered:r}=Fe(e),{isFocused:o,isFocusVisible:i,focusProps:a}=Ye({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",l=he({...e,values:{isHovered:r,isFocused:o,isFocusVisible:i,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return u.createElement("input",{...X(d8(e),a,n),...l,ref:t,"data-focused":o||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":i||void 0,"data-invalid":s||void 0})}const So=$a(f8),L4=u.createContext(null);function p8(e,t){let{render:n}=u.useContext(L4);return u.createElement(u.Fragment,null,n(e,t))}const h8=u.forwardRef(p8),ec=u.createContext({}),b8=u.createContext({});function m8(e,t){let[n,r]=me(e,t,b8),o=M4("header",e,t);return o||u.createElement("header",{className:"react-aria-Header",...n,ref:r},n.children)}const V4=u.forwardRef(m8),tc=u.createContext({});function g8(e,t){let[n,r]=me(e,t,tc),{elementType:o,orientation:i,style:a,className:s}=n,l=o||"hr";l==="hr"&&i==="vertical"&&(l="div");let{separatorProps:d}=Vy({elementType:o,orientation:i}),c=M4("separator",e,t);return c||u.createElement(l,{...le(n),...d,style:a,className:s??"react-aria-Separator",ref:r,slot:n.slot||void 0})}const O4=u.forwardRef(g8),wa=u.createContext(null),To=u.createContext(null);function v8(e,t){[e,t]=me(e,t,wa);let n=u.useContext(po),r=u.useContext(To);return u.useContext(Eo)?u.createElement(A4,e):r?n?null:u.createElement(N4,{state:r,props:e,listBoxRef:t}):u.createElement(y8,{props:e,listBoxRef:t})}function y8({props:e,listBoxRef:t}){let{portal:n,collection:r}=qu(e);e={...e,collection:r,children:null,items:null};let o=jy(e);return u.createElement(u.Fragment,null,n,u.createElement(N4,{state:o,props:e,listBoxRef:t}))}const $8=u.forwardRef(v8);function N4({state:e,props:t,listBoxRef:n}){let{dragAndDropHooks:r,layout:o="stack",orientation:i="vertical"}=t,{collection:a,selectionManager:s}=e,l=!!(r!=null&&r.useDraggableCollectionState),d=!!(r!=null&&r.useDroppableCollectionState),{direction:c}=Ve(),{disabledBehavior:f,disabledKeys:p}=s,h=ru({usage:"search",sensitivity:"base"}),b=u.useMemo(()=>t.keyboardDelegate||new ju({collection:a,collator:h,ref:n,disabledKeys:f==="selection"?new Set:p,layout:o,orientation:i,direction:c}),[a,h,n,f,p,i,c,t.keyboardDelegate,o]),{listBoxProps:g}=DD({...t,shouldSelectOnPressUp:l||t.shouldSelectOnPressUp,keyboardDelegate:b},e,n),y=xr({items:a,children:K=>{switch(K.type){case"section":return u.createElement(x8,{section:K});case"separator":return u.createElement(O4,K.props);case"item":return u.createElement(K4,{item:K});default:throw new Error("Unsupported node type in Menu: "+K.type)}}}),$=u.useRef(l),C=u.useRef(d);u.useEffect(()=>{$.current!==l&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),C.current!==d&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[l,d]);let w,E,P,k=!1,N=null,v=u.useRef(null);if(l&&r){w=r.useDraggableCollectionState({collection:a,selectionManager:s,preview:r.renderDragPreview?v:void 0}),r.useDraggableCollection({},w,n);let K=r.DragPreview;N=r.renderDragPreview?u.createElement(K,{ref:v},r.renderDragPreview):null}if(d&&r){E=r.useDroppableCollectionState({collection:a,selectionManager:s});let K=r.dropTargetDelegate||new r.ListDropTargetDelegate(a,n,{orientation:i,layout:o,direction:c});P=r.useDroppableCollection({keyboardDelegate:b,dropTargetDelegate:K},E,n),k=E.isDropTarget({type:"root"})}let{focusProps:L,isFocused:F,isFocusVisible:A}=Ye(),B={isDropTarget:k,isEmpty:e.collection.size===0,isFocused:F,isFocusVisible:A,layout:t.layout||"stack",state:e},R=he({className:t.className,style:t.style,defaultClassName:"react-aria-ListBox",values:B}),I=null;return e.collection.size===0&&t.renderEmptyState&&(I=u.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(B))),u.createElement(Ul,null,u.createElement("div",{...le(t),...X(g,L,P==null?void 0:P.collectionProps),...R,ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":k||void 0,"data-empty":e.collection.size===0||void 0,"data-focused":F||void 0,"data-focus-visible":A||void 0,"data-layout":t.layout||"stack","data-orientation":t.orientation||"vertical"},u.createElement(Oe,{values:[[wa,t],[To,e],[ec,{dragAndDropHooks:r,dragState:w,dropState:E}],[tc,{elementType:"div"}],[L4,{render:E8}]]},y),I,N))}function x8({section:e,className:t,style:n}){var r,o;let i=u.useContext(To),[a,s]=yt();var l;let{headingProps:d,groupProps:c}=PD({heading:s,"aria-label":(l=e.props["aria-label"])!==null&&l!==void 0?l:void 0}),f=xr({items:i.collection.getChildren(e.key),children:p=>{switch(p.type){case"header":return u.createElement(w8,{item:p,headingProps:d,headingRef:a});case"item":return u.createElement(K4,{item:p});default:throw new Error("Unsupported element type in Section: "+p.type)}}});return u.createElement("section",{...le(e.props),...c,className:t||((r=e.props)===null||r===void 0?void 0:r.className)||"react-aria-Section",style:n||((o=e.props)===null||o===void 0?void 0:o.style),ref:e.props.ref},f)}function w8({item:e,headingProps:t,headingRef:n}){let{ref:r,...o}=e.props;return u.createElement(V4,{...t,...o,ref:Ji(n,r)},e.rendered)}function C8(e,t){return va("item",e,t,e.children)}const D8=u.forwardRef(C8);function K4({item:e}){var t;let n=mt(e.props.ref),r=u.useContext(To),{dragAndDropHooks:o,dragState:i,dropState:a}=u.useContext(ec),{optionProps:s,labelProps:l,descriptionProps:d,...c}=ED({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},r,n),{hoverProps:f,isHovered:p}=Fe({isDisabled:!c.allowsSelection&&!c.hasAction}),h=null;i&&o&&(h=o.useDraggableItem({key:e.key},i));let b=null;a&&o&&(b=o.useDroppableItem({target:{type:"item",key:e.key,dropPosition:"on"}},a,n));let g=e.props,y=i&&i.isDragging(e.key),$=he({...g,id:void 0,children:e.rendered,defaultClassName:"react-aria-ListBoxItem",values:{...c,isHovered:p,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior,allowsDragging:!!i,isDragging:y,isDropTarget:b==null?void 0:b.isDropTarget}}),C=(o==null?void 0:o.renderDropIndicator)||(E=>u.createElement(h8,{target:E}));u.useEffect(()=>{e.textValue||console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[e.textValue]);let w=g.href?"a":"div";return u.createElement(u.Fragment,null,(o==null?void 0:o.useDropIndicator)&&C({type:"item",key:e.key,dropPosition:"before"}),u.createElement(w,{...X(s,f,h==null?void 0:h.dragProps,b==null?void 0:b.dropProps),...$,ref:n,"data-allows-dragging":!!i||void 0,"data-selected":c.isSelected||void 0,"data-disabled":c.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":c.isFocused||void 0,"data-focus-visible":c.isFocusVisible||void 0,"data-pressed":c.isPressed||void 0,"data-dragging":y||void 0,"data-drop-target":(b==null?void 0:b.isDropTarget)||void 0,"data-selection-mode":r.selectionManager.selectionMode==="none"?void 0:r.selectionManager.selectionMode},u.createElement(Oe,{values:[[Yt,{slots:{label:l,description:d}}]]},$.children)),(o==null?void 0:o.useDropIndicator)&&r.collection.getKeyAfter(e.key)==null&&C({type:"item",key:e.key,dropPosition:"after"}))}function E8(e,t){t=mt(t);let{dragAndDropHooks:n,dropState:r}=u.useContext(ec),{dropIndicatorProps:o,isHidden:i,isDropTarget:a}=n.useDropIndicator(e,r,t);return i?null:u.createElement(S8,{...e,dropIndicatorProps:o,isDropTarget:a,ref:t})}function P8(e,t){let{dropIndicatorProps:n,isDropTarget:r,...o}=e,i=he({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return u.createElement("div",{...n,...i,role:"option",ref:t,"data-drop-target":r||void 0})}const S8=u.forwardRef(P8),T8=u.createContext({placement:"bottom"}),dr=u.createContext(null);function A8(e,t){[e,t]=me(e,t,dr);let n=u.useContext(Nn),r=ga(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=Cl(t,o.isOpen)||e.isExiting||!1;if(u.useContext(po)){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1})),u.createElement(u.Fragment,null,s)}return o&&!o.isOpen&&!i?null:u.createElement(M8,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:i})}const j4=u.forwardRef(A8);function M8({state:e,isExiting:t,UNSTABLE_portalContainer:n,...r}){var o;let{popoverProps:i,underlayProps:a,arrowProps:s,placement:l}=S2({...r,offset:(o=r.offset)!==null&&o!==void 0?o:8},e),d=r.popoverRef,c=Xu(d,!!l)||r.isEntering||!1,f=he({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:l,isEntering:c,isExiting:t}}),p={...i.style,...f.style};return u.createElement(Mh,{isExiting:t,portalContainer:n},!r.isNonModal&&e.isOpen&&u.createElement("div",{"data-testid":"underlay",...a,style:{position:"fixed",inset:0}}),u.createElement("div",{...X(le(r),i),...f,ref:d,slot:r.slot||void 0,style:p,"data-trigger":r.trigger,"data-placement":l,"data-entering":c||void 0,"data-exiting":t||void 0},!r.isNonModal&&u.createElement(Qs,{onDismiss:e.close}),u.createElement(T8.Provider,{value:{...s,placement:l}},f.children),u.createElement(Qs,{onDismiss:e.close})))}const k8=u.createContext(null),Nn=u.createContext(null);function R8(e,t){let n=e["aria-labelledby"];[e,t]=me(e,t,k8);let{dialogProps:r,titleProps:o}=GD({...e,"aria-labelledby":n},t),i=u.useContext(Nn),a=e.children;typeof a=="function"&&(a=a({close:(i==null?void 0:i.close)||(()=>{})})),!r["aria-label"]&&!r["aria-labelledby"]&&(e["aria-labelledby"]?r["aria-labelledby"]=e["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));var s;return u.createElement("section",{...le(e),...r,ref:t,slot:e.slot||void 0,style:e.style,className:(s=e.className)!==null&&s!==void 0?s:"react-aria-Dialog"},u.createElement(Oe,{values:[[t8,{slots:{[wl]:{},title:{...o,level:2}}}]]},a))}const _4=u.forwardRef(R8),F8=u.createContext(null),B8=u.createContext(null);function I8(e,t){[e,t]=me(e,t,F8);let{collection:n,document:r}=Zu(),{children:o,isDisabled:i=!1,isInvalid:a=!1,isRequired:s=!1}=e;o=u.useMemo(()=>typeof o=="function"?o({isOpen:!1,isDisabled:i,isInvalid:a,isRequired:s}):o,[o,i,a,s]);var l;return u.createElement(u.Fragment,null,u.createElement(R4,null,u.createElement(Oe,{values:[[Eo,r],[wa,{items:(l=e.items)!==null&&l!==void 0?l:e.defaultItems}]]},o)),u.createElement(L8,{props:e,collection:n,comboBoxRef:t}))}function L8({props:e,collection:t,comboBoxRef:n}){let{name:r,formValue:o="key",allowsCustomValue:i}=e;i&&(o="text");let{contains:a}=z0({sensitivity:"base"});var s;let l=aE({defaultFilter:e.defaultFilter||a,...e,items:e.items,children:void 0,collection:t,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"}),d=u.useRef(null),c=u.useRef(null),f=u.useRef(null),p=u.useRef(null),[h,b]=yt();var g;let{buttonProps:y,inputProps:$,listBoxProps:C,labelProps:w,descriptionProps:E,errorMessageProps:P,...k}=VD({...Fn(e),label:b,inputRef:c,buttonRef:d,listBoxRef:f,popoverRef:p,name:o==="text"?r:void 0,validationBehavior:(g=e.validationBehavior)!==null&&g!==void 0?g:"native"},l),[N,v]=u.useState(null),L=u.useCallback(()=>{if(c.current){var R;let I=(R=d.current)===null||R===void 0?void 0:R.getBoundingClientRect(),K=c.current.getBoundingClientRect(),V=I?Math.min(I.left,K.left):K.left,T=I?Math.max(I.right,K.right):K.right;v(T-V+"px")}},[d,c,v]);Kl({ref:c,onResize:L});let F=u.useMemo(()=>({isOpen:l.isOpen,isDisabled:e.isDisabled||!1,isInvalid:k.isInvalid||!1,isRequired:e.isRequired||!1}),[l.isOpen,e.isDisabled,k.isInvalid,e.isRequired]),A=he({...e,values:F,defaultClassName:"react-aria-ComboBox"}),B=le(e);return delete B.id,u.createElement(Oe,{values:[[B8,l],[Mt,{...w,ref:h}],[Ju,{...y,ref:d,isPressed:l.isOpen}],[On,{...$,ref:c}],[Nn,l],[dr,{ref:p,triggerRef:c,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":N}}],[wa,{...C,ref:f}],[To,l],[Yt,{slots:{description:E,errorMessage:P}}],[Cr,{isInvalid:k.isInvalid,isDisabled:e.isDisabled||!1}],[Vn,k]]},u.createElement("div",{...B,...A,ref:n,slot:e.slot||void 0,"data-focused":l.isFocused||void 0,"data-open":l.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":k.isInvalid||void 0,"data-required":e.isRequired||void 0}),r&&o==="key"&&u.createElement("input",{type:"hidden",name:r,value:l.selectedKey}))}const V8=u.forwardRef(I8),z4=u.createContext(null),O8=u.createContext(null),Ao=u.createContext(null),Ca=u.createContext(null);function N8(e,t){[e,t]=me(e,t,z4);let{locale:n}=Ve();var r;let o=Wu({...e,locale:n,createCalendar:O0,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=yt(),l=u.useRef(null);var d;let{labelProps:c,fieldProps:f,inputProps:p,descriptionProps:h,errorMessageProps:b,...g}=Hu({...Fn(e),label:s,inputRef:l,validationBehavior:(d=e.validationBehavior)!==null&&d!==void 0?d:"native"},o,i),y=he({...Fn(e),values:{state:o,isInvalid:o.isInvalid,isDisabled:o.isDisabled},defaultClassName:"react-aria-DateField"}),$=le(e);return delete $.id,u.createElement(Oe,{values:[[Ao,o],[Cr,{...f,ref:i,isInvalid:o.isInvalid}],[On,{...p,ref:l}],[Mt,{...c,ref:a,elementType:"span"}],[Yt,{slots:{description:h,errorMessage:b}}],[Vn,g]]},u.createElement("div",{...$,...y,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const K8=u.forwardRef(N8);function j8(e,t){[e,t]=me(e,t,O8);let{locale:n}=Ve();var r;let o=xE({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=yt(),l=u.useRef(null);var d;let{labelProps:c,fieldProps:f,inputProps:p,descriptionProps:h,errorMessageProps:b,...g}=jD({...Fn(e),label:s,inputRef:l,validationBehavior:(d=e.validationBehavior)!==null&&d!==void 0?d:"native"},o,i),y=he({...e,values:{state:o,isInvalid:o.isInvalid,isDisabled:o.isDisabled},defaultClassName:"react-aria-TimeField"}),$=le(e);return delete $.id,u.createElement(Oe,{values:[[Ca,o],[Cr,{...f,ref:i,isInvalid:o.isInvalid}],[On,{...p,ref:l}],[Mt,{...c,ref:a,elementType:"span"}],[Yt,{slots:{description:h,errorMessage:b}}],[Vn,g]]},u.createElement("div",{...$,...y,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const _8=u.forwardRef(j8);function z8(e,t){let n=u.useContext(Ao),r=u.useContext(Ca);return n||r?u.createElement(U4,{...e,ref:t}):u.createElement(U8,{...e,ref:t})}const U8=u.forwardRef((e,t)=>{let[n,r]=me({slot:e.slot},t,z4),{locale:o}=Ve(),i=Wu({...n,locale:o,createCalendar:O0}),a=u.useRef(null),{fieldProps:s,inputProps:l}=Hu({...n,inputRef:a},i,r);return u.createElement(Oe,{values:[[Ao,i],[On,{...l,ref:a}],[Cr,{...s,ref:r,isInvalid:i.isInvalid}]]},u.createElement(U4,e))}),U4=u.forwardRef((e,t)=>{let{className:n,children:r}=e,o=u.useContext(Ao),i=u.useContext(Ca),a=o??i;return u.createElement(u.Fragment,null,u.createElement(Qu,{...e,ref:t,slot:e.slot||void 0,className:n??"react-aria-DateInput",isInvalid:a.isInvalid},a.segments.map((s,l)=>u.cloneElement(r(s),{key:l}))),u.createElement(So,null))}),H4=u.forwardRef(z8);function H8({segment:e,...t},n){let r=u.useContext(Ao),o=u.useContext(Ca),i=r??o,a=mt(n),{segmentProps:s}=UD(e,i,a),{focusProps:l,isFocused:d,isFocusVisible:c}=Ye(),{hoverProps:f,isHovered:p}=Fe({...t,isDisabled:i.isDisabled||e.type==="literal"}),h=he({...t,values:{...e,isReadOnly:!e.isEditable,isInvalid:i.isInvalid,isDisabled:i.isDisabled,isHovered:p,isFocused:d,isFocusVisible:c},defaultChildren:e.text,defaultClassName:"react-aria-DateSegment"});return u.createElement("div",{...X(le(t),s,l,f),...h,ref:a,"data-placeholder":e.isPlaceholder||void 0,"data-invalid":i.isInvalid||void 0,"data-readonly":!e.isEditable||void 0,"data-disabled":i.isDisabled||void 0,"data-type":e.type,"data-hovered":p||void 0,"data-focused":d||void 0,"data-focus-visible":c||void 0})}const G4=u.forwardRef(H8),W4=u.createContext({}),Y4=u.createContext(null),Mo=u.createContext(null),q4=u.createContext(null);function Z4(e){let{item:t,parentMenuRef:n}=e,r=u.useContext(Mo);return xr({items:r.collection.getChildren(t.key),children:i=>{switch(i.type){case"item":return u.createElement(Z8,{item:i,popover:t.rendered[1],parentMenuRef:n,delay:t.props.delay});default:throw new Error("Unsupported element type in SubmenuTrigger: "+t.type)}}})}function G8(e,t){[e,t]=me(e,t,Y4);let{portal:n,collection:r}=qu(e);return u.createElement(u.Fragment,null,r.size>0&&u.createElement(W8,{props:e,collection:r,menuRef:t}),n)}function W8({props:e,collection:t,menuRef:n}){let r=FE({...e,collection:t,children:void 0}),[o,i]=u.useState(null),{menuProps:a}=AD(e,r,n),s=u.useContext(q4),l=u.useContext(dr),d=xr({items:r.collection,children:p=>{switch(p.type){case"section":return u.createElement(q8,{section:p,parentMenuRef:n});case"separator":return u.createElement(O4,p.props);case"item":return u.createElement(X4,{item:p});case"submenutrigger":return u.createElement(Z4,{item:p,parentMenuRef:n});default:throw new Error("Unsupported node type in Menu: "+p.type)}}}),c=(l==null?void 0:l.trigger)==="SubmenuTrigger";o0({ref:n,onInteractOutside:p=>{s&&!(o!=null&&o.contains(p.target))&&s.close()},isDisabled:c||(s==null?void 0:s.UNSTABLE_expandedKeysStack.length)===0});var f;return u.createElement(Ul,null,u.createElement("div",{...le(e),...a,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,style:e.style,className:(f=e.className)!==null&&f!==void 0?f:"react-aria-Menu"},u.createElement(Oe,{values:[[Mo,r],[tc,{elementType:"div"}],[dr,{UNSTABLE_portalContainer:o||void 0}]]},d)),u.createElement("div",{ref:i,style:{width:"100vw",position:"absolute",top:0}}))}const Y8=u.forwardRef(G8);function q8({section:e,className:t,style:n,parentMenuRef:r,...o}){var i,a;let s=u.useContext(Mo),[l,d]=yt();var c;let{headingProps:f,groupProps:p}=MD({heading:d,"aria-label":(c=e["aria-label"])!==null&&c!==void 0?c:void 0}),h=xr({items:s.collection.getChildren(e.key),children:b=>{switch(b.type){case"header":{let{ref:g,...y}=b.props;return u.createElement(V4,{...f,...y,ref:Ji(l,g)},b.rendered)}case"item":return u.createElement(X4,{item:b});case"submenutrigger":return u.createElement(Z4,{item:b,parentMenuRef:r});default:throw new Error("Unsupported element type in Section: "+b.type)}}});return u.createElement("section",{...le(o),...p,className:t||((i=e.props)===null||i===void 0?void 0:i.className)||"react-aria-Section",style:n||((a=e.props)===null||a===void 0?void 0:a.style),ref:e.props.ref},h)}function X4({item:e}){var t;let n=u.useContext(Mo),r=mt(e.props.ref),{menuItemProps:o,labelProps:i,descriptionProps:a,keyboardShortcutProps:s,...l}=Ig({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},n,r),d=e.props,{isFocusVisible:c,focusProps:f}=Ye(),{hoverProps:p,isHovered:h}=Fe({isDisabled:l.isDisabled}),b=he({...d,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...l,isHovered:h,isFocusVisible:c,selectionMode:n.selectionManager.selectionMode,selectionBehavior:n.selectionManager.selectionBehavior,hasSubmenu:!1,isOpen:!1}}),g=d.href?"a":"div";return u.createElement(g,{...X(o,f,p),...b,ref:r,"data-disabled":l.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":l.isFocused||void 0,"data-focus-visible":c||void 0,"data-pressed":l.isPressed||void 0,"data-selected":l.isSelected||void 0,"data-selection-mode":n.selectionManager.selectionMode==="none"?void 0:n.selectionManager.selectionMode},u.createElement(Oe,{values:[[Yt,{slots:{label:i,description:a}}],[W4,s]]},b.children))}function Z8({item:e,popover:t,parentMenuRef:n,delay:r}){let o=u.useContext(Mo),i=ya(dr),a=mt(e.props.ref),s=u.useContext(q4),l=wE({triggerKey:e.key},s),d=u.useRef(null),{submenuTriggerProps:c,submenuProps:f,popoverProps:p}=BD({node:e,parentMenuRef:n,submenuRef:d,delay:r},l,a),{menuItemProps:h,labelProps:b,descriptionProps:g,keyboardShortcutProps:y,...$}=Ig({key:e.key,...c},o,a),C=e.props,{hoverProps:w,isHovered:E}=Fe({isDisabled:$.isDisabled}),{isFocusVisible:P,focusProps:k}=Ye(),N=he({...C,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...$,isHovered:E,isFocusVisible:P,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,hasSubmenu:!0,isOpen:l.isOpen}});return u.createElement(Oe,{values:[[Yt,{slots:{label:b,description:g}}],[W4,y],[Y4,f],[Nn,l],[dr,{ref:d,trigger:"SubmenuTrigger",triggerRef:a,placement:"end top",UNSTABLE_portalContainer:i.UNSTABLE_portalContainer||void 0,...p}]]},u.createElement("div",{...X(h,k,w),...N,ref:a,"data-disabled":$.isDisabled||void 0,"data-hovered":E||void 0,"data-focused":$.isFocused||void 0,"data-focus-visible":P||void 0,"data-pressed":$.isPressed||void 0,"data-selected":$.isSelected||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode,"data-has-submenu":!0,"data-open":l.isOpen||void 0},N.children),t)}const X8=u.createContext(null);function J8(e,t){[e,t]=me(e,t,X8);let{value:n=0,minValue:r=0,maxValue:o=100}=e;n=pt(n,r,o);let[i,a]=yt(),{meterProps:s,labelProps:l}=WD({...e,label:a}),d=(n-r)/(o-r)*100,c=he({...e,defaultClassName:"react-aria-Meter",values:{percentage:d,valueText:s["aria-valuetext"]}});return u.createElement("div",{...s,...c,ref:t,slot:e.slot||void 0},u.createElement(Mt.Provider,{value:{...l,ref:i,elementType:"span"}},c.children))}const Q8=u.forwardRef(J8),eP=u.createContext(null),nc=u.createContext(null);function tP(e,t){if(u.useContext(nc))return u.createElement(hp,{...e,modalRef:t},e.children);let{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,children:l,isEntering:d,isExiting:c,UNSTABLE_portalContainer:f,...p}=e;return u.createElement(J4,{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,isEntering:d,isExiting:c,UNSTABLE_portalContainer:f},u.createElement(hp,{...p,modalRef:t},l))}const nP=u.forwardRef(tP);function rP(e,t){[e,t]=me(e,t,eP);let n=u.useContext(Nn),r=ga(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=mt(t),a=u.useRef(null),s=Cl(i,o.isOpen),l=Cl(a,o.isOpen),d=s||l||e.isExiting||!1,c=At();return!o.isOpen&&!d||c?null:u.createElement(oP,{...e,state:o,isExiting:d,overlayRef:i,modalRef:a})}const J4=u.forwardRef(rP);function oP({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:o,underlayProps:i}=T2(t,r,n),a=Xu(t.overlayRef)||t.isEntering||!1,s=he({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:t.isExiting,state:r}}),l=cx(),d={...s.style,"--visual-viewport-height":l.height+"px"};return u.createElement(Mh,{isExiting:t.isExiting,portalContainer:e},u.createElement("div",{...X(le(t),i),...s,style:d,ref:t.overlayRef,"data-entering":a||void 0,"data-exiting":t.isExiting||void 0},u.createElement(Oe,{values:[[nc,{modalProps:o,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[Nn,r]]},s.children)))}function hp(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:o}=u.useContext(nc),i=u.useContext(Nn),a=u.useMemo(()=>Ji(e.modalRef,n),[e.modalRef,n]),s=mt(a),l=Xu(s),d=he({...e,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:r,state:i}});return u.createElement("div",{...X(le(e),t),...d,ref:s,"data-entering":l||void 0,"data-exiting":r||void 0},o&&u.createElement(Qs,{onDismiss:i.close}),d.children)}const iP=u.createContext(null),aP=u.createContext(null);function sP(e,t){[e,t]=me(e,t,iP);let{locale:n}=Ve();var r;let o=CE({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=yt();var l;let{labelProps:d,groupProps:c,inputProps:f,incrementButtonProps:p,decrementButtonProps:h,descriptionProps:b,errorMessageProps:g,...y}=qD({...Fn(e),label:s,validationBehavior:(l=e.validationBehavior)!==null&&l!==void 0?l:"native"},o,i),$=he({...e,values:{state:o,isDisabled:e.isDisabled||!1,isInvalid:y.isInvalid||!1},defaultClassName:"react-aria-NumberField"}),C=le(e);return delete C.id,u.createElement(Oe,{values:[[aP,o],[Cr,c],[On,{...f,ref:i}],[Mt,{...d,ref:a}],[Ju,{slots:{increment:p,decrement:h}}],[Yt,{slots:{description:b,errorMessage:g}}],[Vn,y]]},u.createElement("div",{...C,...$,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":y.isInvalid||void 0}),e.name&&u.createElement("input",{type:"hidden",name:e.name,value:isNaN(o.numberValue)?"":o.numberValue}))}const lP=u.forwardRef(sP),uP=u.createContext(null);function cP(e,t){[e,t]=me(e,t,uP);let{value:n=0,minValue:r=0,maxValue:o=100,isIndeterminate:i=!1}=e;n=pt(n,r,o);let[a,s]=yt(),{progressBarProps:l,labelProps:d}=ty({...e,label:s}),c=i?void 0:(n-r)/(o-r)*100,f=he({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:l["aria-valuetext"],isIndeterminate:i}});return u.createElement("div",{...l,...f,ref:t,slot:e.slot||void 0},u.createElement(Mt.Provider,{value:{...d,ref:a,elementType:"span"}},f.children))}const Q4=u.forwardRef(cP),dP=u.createContext(null),Da=u.createContext(null),rc=u.createContext(null),e1=u.createContext(null);function fP(e,t){[e,t]=me(e,t,dP);let n=u.useRef(null),r=Ni(e.formatOptions),o=SE({...e,numberFormatter:r}),[i,a]=yt(),{groupProps:s,trackProps:l,labelProps:d,outputProps:c}=ZD({...e,label:a},o,n),f=he({...e,values:{orientation:o.orientation,isDisabled:o.isDisabled,state:o},defaultClassName:"react-aria-Slider"}),p=le(e);return delete p.id,u.createElement(Oe,{values:[[Da,o],[rc,{...l,ref:n}],[e1,c],[Mt,{...d,ref:i}]]},u.createElement("div",{...p,...s,...f,ref:t,slot:e.slot||void 0,"data-orientation":o.orientation,"data-disabled":o.isDisabled||void 0}))}const pP=u.forwardRef(fP);function hP(e,t){[e,t]=me(e,t,e1);let{children:n,style:r,className:o,...i}=e,a=u.useContext(Da),s=he({className:o,style:r,children:n,defaultChildren:a.getThumbValueLabel(0),defaultClassName:"react-aria-SliderOutput",values:{orientation:a.orientation,isDisabled:a.isDisabled,state:a}});return u.createElement("output",{...i,...s,ref:t,"data-orientation":a.orientation||void 0,"data-disabled":a.isDisabled||void 0})}const bP=u.forwardRef(hP);function mP(e,t){[e,t]=me(e,t,rc);let n=u.useContext(Da),{onHoverStart:r,onHoverEnd:o,onHoverChange:i,...a}=e,{hoverProps:s,isHovered:l}=Fe({onHoverStart:r,onHoverEnd:o,onHoverChange:i}),d=he({...e,defaultClassName:"react-aria-SliderTrack",values:{orientation:n.orientation,isDisabled:n.isDisabled,isHovered:l,state:n}});return u.createElement("div",{...X(a,s),...d,ref:t,"data-hovered":l||void 0,"data-orientation":n.orientation||void 0,"data-disabled":n.isDisabled||void 0})}const gP=u.forwardRef(mP);function vP(e,t){let n=u.useContext(Da),{ref:r}=ya(rc),{index:o=0}=e,i=u.useRef(null),[a,s]=yt(),{thumbProps:l,inputProps:d,labelProps:c,isDragging:f,isFocused:p,isDisabled:h}=XD({...e,index:o,trackRef:r,inputRef:i,label:s},n),{focusProps:b,isFocusVisible:g}=Ye(),{hoverProps:y,isHovered:$}=Fe(e),C=he({...e,defaultClassName:"react-aria-SliderThumb",values:{state:n,isHovered:$,isDragging:f,isFocused:p,isFocusVisible:g,isDisabled:h}}),w=le(e);return delete w.id,u.createElement("div",{...X(w,l,y),...C,ref:t,style:{...l.style,...C.style},"data-hovered":$||void 0,"data-dragging":f||void 0,"data-focused":p||void 0,"data-focus-visible":g||void 0,"data-disabled":h||void 0},u.createElement(ia,null,u.createElement("input",{ref:i,...X(d,b)})),u.createElement(Oe,{values:[[Mt,{...c,ref:a}]]},C.children))}const yP=u.forwardRef(vP),$P=u.createContext(null);function xP(e,t){[e,t]=me(e,t,$P);let n=u.useRef(null),r=ha(e),{labelProps:o,inputProps:i,isSelected:a,isDisabled:s,isReadOnly:l,isPressed:d}=JD({...Fn(e),children:typeof e.children=="function"?!0:e.children},r,n),{isFocused:c,isFocusVisible:f,focusProps:p}=Ye(),h=e.isDisabled||e.isReadOnly,{hoverProps:b,isHovered:g}=Fe({...e,isDisabled:h}),y=he({...e,defaultClassName:"react-aria-Switch",values:{isSelected:a,isPressed:d,isHovered:g,isFocused:c,isFocusVisible:f,isDisabled:s,isReadOnly:l,state:r}}),$=le(e);return delete $.id,u.createElement("label",{...X($,o,b,y),ref:t,slot:e.slot||void 0,"data-selected":a||void 0,"data-pressed":d||void 0,"data-hovered":g||void 0,"data-focused":c||void 0,"data-focus-visible":f||void 0,"data-disabled":s||void 0,"data-readonly":l||void 0},u.createElement(ia,{elementType:"span"},u.createElement("input",{...i,...p,ref:n})),y.children)}const wP=u.forwardRef(xP),oc=u.createContext(null),ic=u.createContext(null);function CP(e,t){[e,t]=me(e,t,oc);let{collection:n,document:r}=Zu(),{children:o,orientation:i="horizontal"}=e;return o=u.useMemo(()=>typeof o=="function"?o({orientation:i}):o,[o,i]),u.createElement(u.Fragment,null,u.createElement(R4,null,u.createElement(Eo.Provider,{value:r},o)),u.createElement(DP,{props:e,collection:n,tabsRef:t}))}function DP({props:e,tabsRef:t,collection:n}){let{orientation:r="horizontal"}=e,o=TE({...e,collection:n,children:void 0}),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye({within:!0}),l=u.useMemo(()=>({orientation:r,isFocusWithin:a,isFocusVisible:s}),[r,a,s]),d=he({...e,defaultClassName:"react-aria-Tabs",values:l});return u.createElement("div",{...le(e),...i,...d,ref:t,slot:e.slot||void 0,"data-focused":a||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":o.isDisabled||void 0},u.createElement(Oe,{values:[[oc,e],[ic,o]]},d.children))}const EP=u.forwardRef(CP);function PP(e,t){return u.useContext(Eo)?u.createElement(A4,e):u.createElement(SP,{props:e,forwardedRef:t})}function SP({props:e,forwardedRef:t}){let n=u.useContext(ic),{orientation:r="horizontal",keyboardActivation:o="automatic"}=ya(oc),i=mt(t),{tabListProps:a}=nE({...e,orientation:r,keyboardActivation:o},n,i),s=he({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:r,state:n}}),l=le(e);return delete l.id,u.createElement("div",{...l,...a,ref:i,...s,"data-orientation":r||void 0},[...n.collection].map(d=>u.createElement(kP,{key:d.key,item:d,state:n})))}const TP=u.forwardRef(PP);function AP(e,t){return va("item",e,t,e.children)}const MP=u.forwardRef(AP);function kP({item:e,state:t}){let n=mt(e.props.ref),{tabProps:r,isSelected:o,isDisabled:i,isPressed:a}=QD({key:e.key,...e.props},t,n),{focusProps:s,isFocused:l,isFocusVisible:d}=Ye(),{hoverProps:c,isHovered:f}=Fe({isDisabled:i}),p=he({...e.props,children:e.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:o,isDisabled:i,isFocused:l,isFocusVisible:d,isPressed:a,isHovered:f,state:t}}),h=e.props.href?"a":"div";return u.createElement(h,{...X(r,s,c,p),ref:n,"data-selected":o||void 0,"data-disabled":i||void 0,"data-focus-visible":d||void 0,"data-pressed":a||void 0,"data-hovered":f||void 0})}function RP(e,t){const n=u.useContext(ic);let r=mt(t),{tabPanelProps:o}=eE(e,n,r),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye(),l=n.selectedKey===e.id,d=he({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!l,state:n}});if(!l&&!e.shouldForceMount)return null;let c=le(e);delete c.id;let f=l?X(c,o,i,d):d;return u.createElement("div",{...f,ref:r,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:l?void 0:"true","data-inert":l?void 0:"true"})}const FP=$a(RP),BP=u.createContext({}),IP=u.createContext(null);function LP(e,t){[e,t]=me(e,t,IP);let n=u.useRef(null),[r,o]=yt(),[i,a]=u.useState("input");var s;let{labelProps:l,inputProps:d,descriptionProps:c,errorMessageProps:f,...p}=zu({...Fn(e),inputElementType:i,label:o,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"},n),h=u.useCallback(g=>{n.current=g,g&&a(g instanceof HTMLTextAreaElement?"textarea":"input")},[]),b=he({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid},defaultClassName:"react-aria-TextField"});return u.createElement("div",{...le(e),...b,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0},u.createElement(Oe,{values:[[Mt,{...l,ref:r}],[On,{...d,ref:h}],[BP,{...d,ref:h}],[Yt,{slots:{description:c,errorMessage:f}}],[Vn,p]]},b.children))}const Ea=u.forwardRef(LP),VP=u.createContext({});function OP(e,t){[e,t]=me(e,t,VP);let n=ha(e),{buttonProps:r,isPressed:o}=iD(e,n,t),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye(e),{hoverProps:l,isHovered:d}=Fe(e),c=he({...e,values:{isHovered:d,isPressed:o,isFocused:a,isSelected:n.isSelected,isFocusVisible:s,isDisabled:e.isDisabled||!1,state:n},defaultClassName:"react-aria-ToggleButton"});return u.createElement("button",{...X(r,i,l),...c,ref:t,slot:e.slot||void 0,"data-focused":a||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":o||void 0,"data-selected":n.isSelected||void 0,"data-hovered":d||void 0,"data-focus-visible":s||void 0})}const NP=u.forwardRef(OP),KP=_(ZE)`
179
+ */var pp;function LE(){return pp||(pp=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=u,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(w){{for(var E=arguments.length,P=new Array(E>1?E-1:0),k=1;k<E;k++)P[k-1]=arguments[k];r("error",w,P)}}function r(w,E,P){{var k=t.ReactDebugCurrentFrame,N=k.getStackAddendum();N!==""&&(E+="%s",P=P.concat([N]));var v=P.map(function(L){return String(L)});v.unshift("Warning: "+E),Function.prototype.apply.call(console[w],console,v)}}function o(w,E){return w===E&&(w!==0||1/w===1/E)||w!==w&&E!==E}var i=typeof Object.is=="function"?Object.is:o,a=e.useState,s=e.useEffect,l=e.useLayoutEffect,d=e.useDebugValue,c=!1,f=!1;function p(w,E,P){c||e.startTransition!==void 0&&(c=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var k=E();if(!f){var N=E();i(k,N)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}var v=a({inst:{value:k,getSnapshot:E}}),L=v[0].inst,F=v[1];return l(function(){L.value=k,L.getSnapshot=E,h(L)&&F({inst:L})},[w,k,E]),s(function(){h(L)&&F({inst:L});var A=function(){h(L)&&F({inst:L})};return w(A)},[w]),d(k),k}function h(w){var E=w.getSnapshot,P=w.value;try{var k=E();return!i(P,k)}catch{return!0}}function b(w,E,P){return E()}var g=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y=!g,$=y?b:p,C=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:$;Ps.useSyncExternalStore=C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ps}process.env.NODE_ENV==="production"?$l.exports=IE():$l.exports=LE();var VE=$l.exports;class Yu{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new Yu(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t}constructor(t,n){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=t,this.key=n}}class P4{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}appendChild(t){this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode;let r=n;for(;r;)r.index++,r=r.nextSibling;t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(t){if(t.parentNode!==this)return;this.ownerDocument.startTransaction();let n=t.nextSibling;for(;n;)n.index--,n=n.nextSibling;t.nextSibling&&(t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.removeNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=t}}class fo extends P4{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof fo?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var t,n,r,o;let i=this.ownerDocument.getMutableNode(this);i.index=this.index,i.level=this.level,i.parentKey=this.parentNode instanceof fo?this.parentNode.node.key:null;var a;i.prevKey=(a=(t=this.previousSibling)===null||t===void 0?void 0:t.node.key)!==null&&a!==void 0?a:null;var s;i.nextKey=(s=(n=this.nextSibling)===null||n===void 0?void 0:n.node.key)!==null&&s!==void 0?s:null,i.hasChildNodes=!!this.firstChild;var l;i.firstChildKey=(l=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&l!==void 0?l:null;var d;i.lastChildKey=(d=(o=this.lastChild)===null||o===void 0?void 0:o.node.key)!==null&&d!==void 0?d:null}setProps(t,n,r){let o=this.ownerDocument.getMutableNode(this),{value:i,textValue:a,id:s,...l}=t;if(l.ref=n,o.props=l,o.rendered=r,o.value=i,o.textValue=a||(typeof r=="string"?r:"")||t["aria-label"]||"",s!=null&&s!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=s}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new Yu(t,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class OE{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),o=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?n.get(o.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class NE extends P4{get isConnected(){return!0}createElement(t){return new fo(t,this)}getMutableNode(t){let n=t.node;return this.mutatedNodes.has(t)||(n=t.node.clone(),this.mutatedNodes.add(t),t.node=n),this.markDirty(t),n}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(t){this.dirtyNodes.add(t)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(t){let n=this.getMutableCollection();if(!n.getItem(t.node.key)){n.addNode(t.node);for(let r of t)this.addNode(r)}this.markDirty(t)}removeNode(t){for(let r of t)this.removeNode(r);this.getMutableCollection().removeNode(t.node.key),this.markDirty(t)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof fo&&i.isConnected&&i.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var t,n;let i=this.getMutableCollection();for(let a of this.mutatedNodes)a.isConnected&&i.addNode(a.node);var r,o;i.commit((r=(t=this.firstChild)===null||t===void 0?void 0:t.node.key)!==null&&r!==void 0?r:null,(o=(n=this.lastChild)===null||n===void 0?void 0:n.node.key)!==null&&o!==void 0?o:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let t of this.subscriptions)t()}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=t,this.collectionMutated=!0}}function xr(e){let{children:t,items:n,idScope:r,addIdAndValue:o,dependencies:i=[]}=e,a=u.useMemo(()=>new WeakMap,i);return u.useMemo(()=>{if(n&&typeof t=="function"){let d=[];for(let c of n){let f=a.get(c);if(!f){f=t(c);var s,l;let p=(l=(s=f.props.id)!==null&&s!==void 0?s:c.key)!==null&&l!==void 0?l:c.id;if(p==null)throw new Error("Could not determine key for item");r&&(p=r+":"+p),f=u.cloneElement(f,o?{key:p,id:p,value:c}:{key:p}),a.set(c,f)}d.push(f)}return d}else if(typeof t!="function")return t},[t,n,a,r,o])}function KE(e){return xr({...e,addIdAndValue:!0})}const S4=u.createContext(!1);function qu(e,t){let{collection:n,document:r}=Zu(t);return{portal:T4(e,r),collection:n}}function jE(e,t,n){let r=At(),o=u.useRef(r);o.current=r;let i=u.useCallback(()=>o.current?n():t(),[t,n]);return VE.useSyncExternalStore(e,i)}const _E=typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore:jE;function Zu(e){let t=u.useMemo(()=>new NE(e||new OE),[e]),n=u.useCallback(a=>t.subscribe(a),[t]),r=u.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=u.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:_E(n,r,o),document:t}}const xl=u.createContext(null),Eo=u.createContext(null);function T4(e,t){let n=u.useContext(Eo),r=t??n,o=KE(e),i=u.useMemo(()=>u.createElement(S4.Provider,{value:!0},o),[o]);return At()?u.createElement(xl.Provider,{value:r},i):Wt.createPortal(i,r)}function A4(e){return u.createElement(u.Fragment,null,T4(e))}function M4(e,t,n){let r=u.useContext(S4);var o;return r?(o=va(e,t,n,"children"in t?t.children:null))!==null&&o!==void 0?o:u.createElement(u.Fragment,null):null}function zE(e,t,n){return u.useCallback(r=>{r==null||r.setProps(e,t,n)},[e,t,n])}function va(e,t,n,r,o){let i=zE(t,n,r),a=u.useContext(xl);if(a){let s=a.ownerDocument.nodesByProps.get(t);return s||(s=a.ownerDocument.createElement(e),s.setProps(t,n,r),a.appendChild(s),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(t,s)),o?u.createElement(xl.Provider,{value:s},o):null}return u.createElement(e,{ref:i},o)}const UE=Symbol("callback"),wl=Symbol("default");function Oe({values:e,children:t}){for(let[n,r]of e)t=u.createElement(n.Provider,{value:r},t);return t}function he(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:i,values:a}=e;return u.useMemo(()=>{let s,l,d;return typeof t=="function"?s=t(a):s=t,typeof n=="function"?l=n(a):l=n,typeof r=="function"?d=r(a):r==null?d=i:d=r,{className:s??o,style:l,children:d,"data-rac":""}},[t,n,r,o,i,a])}function ya(e,t){let n=u.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(i=>`"${i}"`));if(!t&&!n.slots[wl])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let o=t||wl;if(!n.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${r}.`);return n.slots[o]}return n}function me(e,t,n){let r=ya(n,e.slot)||{},{ref:o,[UE]:i,...a}=r,s=mt(u.useMemo(()=>Ji(t,o),[t,o])),l=X(a,e);return"style"in a&&a.style&&typeof a.style=="object"&&"style"in e&&e.style&&typeof e.style=="object"&&(l.style={...a.style,...e.style}),u.useEffect(()=>{i&&i(e)},[i,e]),[l,s]}function yt(){let[e,t]=u.useState(!0),n=u.useRef(!1),r=u.useCallback(o=>{n.current=!0,t(!!o)},[]);return be(()=>{n.current||t(!1)},[]),[r,e]}function Xu(e,t=!0){let[n,r]=u.useState(!0);return k4(e,n&&t,u.useCallback(()=>r(!1),[])),n&&t}function Cl(e,t){let[n,r]=u.useState(!1),[o,i]=u.useState("idle");return!t&&e.current&&o==="idle"&&(n=!0,r(!0),i("exiting")),!e.current&&o==="exited"&&i("idle"),k4(e,n,u.useCallback(()=>{i("exited"),r(!1)},[])),n}function k4(e,t,n){let r=u.useRef(null);t&&e.current&&(r.current=window.getComputedStyle(e.current).animation),be(()=>{if(t&&e.current){let o=window.getComputedStyle(e.current);if(o.animationName&&o.animationName!=="none"&&o.animation!==r.current){let i=s=>{s.target===e.current&&(a.removeEventListener("animationend",i),Wt.flushSync(()=>{n()}))},a=e.current;return a.addEventListener("animationend",i),()=>{a.removeEventListener("animationend",i)}}else n()}},[e,t,n])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const po=u.createContext(!1),HE=typeof DocumentFragment<"u"?new DocumentFragment:null;function R4(e){let t=u.useContext(po),n=At();if(t)return u.createElement(u.Fragment,null,e.children);let r=u.createElement(po.Provider,{value:!0},e.children);return n?u.createElement("template",{"data-react-aria-hidden":!0},r):Wt.createPortal(r,HE)}function $a(e){let t=(n,r)=>u.useContext(po)?null:e(n,r);return t.displayName=e.displayName||e.name,u.forwardRef(t)}function Fn(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}const F4=u.createContext(null);function GE(e,t){[e,t]=me(e,t,F4);let n=e.href?"a":"span",{linkProps:r,isPressed:o}=oD({...e,elementType:n},t),{hoverProps:i,isHovered:a}=Fe(e),{focusProps:s,isFocused:l,isFocusVisible:d}=Ye(),c=he({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:o,isHovered:a,isFocused:l,isFocusVisible:d}});return u.createElement(n,{ref:t,slot:e.slot||void 0,...X(c,r,i,s),"data-focused":l||void 0,"data-hovered":a||void 0,"data-pressed":o||void 0,"data-focus-visible":d||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},c.children)}const xa=u.forwardRef(GE),WE=u.createContext(null);function YE(e,t){[e,t]=me(e,t,WE);let{portal:n,collection:r}=qu(e);return u.createElement(u.Fragment,null,n,u.createElement(qE,{props:e,collection:r,breadcrumbsRef:t}))}function qE({props:e,collection:t,breadcrumbsRef:n}){var r;return u.createElement("ol",{ref:n,...le(e,{labelable:!0}),slot:e.slot||void 0,style:e.style,className:(r=e.className)!==null&&r!==void 0?r:"react-aria-Breadcrumbs"},[...t].map((o,i)=>u.createElement(JE,{key:o.key,node:o,isCurrent:i===t.size-1,isDisabled:e.isDisabled,onAction:e.onAction})))}const ZE=u.forwardRef(YE);function XE(e,t){return va("item",e,t,e.children)}const B4=u.forwardRef(XE);function JE({node:e,isCurrent:t,isDisabled:n,onAction:r}){let o={"aria-current":t?"page":null,isDisabled:n||t,onPress:()=>r==null?void 0:r(e.key)};var i;return u.createElement("li",{...le(e.props),ref:e.props.ref,style:e.props.style,className:(i=e.props.className)!==null&&i!==void 0?i:"react-aria-Breadcrumb"},u.createElement(F4.Provider,{value:o},e.rendered))}const QE=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Ju=u.createContext({});function e8(e,t){[e,t]=me(e,t,Ju);let n=e,{buttonProps:r,isPressed:o}=um(e,t),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye(e),{hoverProps:l,isHovered:d}=Fe(e),c=he({...e,values:{isHovered:d,isPressed:o,isFocused:a,isFocusVisible:s,isDisabled:e.isDisabled||!1},defaultClassName:"react-aria-Button"});return u.createElement("button",{...le(e,{propNames:QE}),...X(r,i,l),...c,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":n.isPressed||o||void 0,"data-hovered":d||void 0,"data-focused":a||void 0,"data-focus-visible":s||void 0})}const I4=$a(e8),t8=u.createContext({}),Yt=u.createContext({});function n8(e,t){[e,t]=me(e,t,Yt);let{elementType:n="span",...r}=e;return u.createElement(n,{className:"react-aria-Text",...r,ref:t})}const wr=u.forwardRef(n8),Vn=u.createContext(null);function r8(e,t){let n=u.useContext(Vn);return n!=null&&n.isInvalid?u.createElement(o8,{...e,ref:t}):null}const Po=u.forwardRef(r8),o8=u.forwardRef((e,t)=>{let n=u.useContext(Vn),r=he({...e,defaultClassName:"react-aria-FieldError",defaultChildren:n.validationErrors.join(" "),values:n});return u.createElement(wr,{slot:"errorMessage",...r,ref:t})}),Mt=u.createContext({});function i8(e,t){[e,t]=me(e,t,Mt);let{elementType:n="label",...r}=e;return u.createElement(n,{className:"react-aria-Label",...r,ref:t})}const qt=$a(i8),a8=u.createContext(null),s8=u.createContext(null);function l8(e,t){[e,t]=me(e,t,s8);let n=u.useRef(null),r=u.useContext(a8);var o;let{labelProps:i,inputProps:a,isSelected:s,isDisabled:l,isReadOnly:d,isPressed:c,isInvalid:f}=r?bD({...e,value:e.value,children:typeof e.children=="function"?!0:e.children},r,n):bm({...e,children:typeof e.children=="function"?!0:e.children,validationBehavior:(o=e.validationBehavior)!==null&&o!==void 0?o:"native"},ha(e),n),{isFocused:p,isFocusVisible:h,focusProps:b}=Ye(),g=l||d,{hoverProps:y,isHovered:$}=Fe({...e,isDisabled:g}),C=he({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:s,isIndeterminate:e.isIndeterminate||!1,isPressed:c,isHovered:$,isFocused:p,isFocusVisible:h,isDisabled:l,isReadOnly:d,isInvalid:f,isRequired:e.isRequired||!1}}),w=le(e);return delete w.id,u.createElement("label",{...X(w,i,y,C),ref:t,slot:e.slot||void 0,"data-selected":s||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":c||void 0,"data-hovered":$||void 0,"data-focused":p||void 0,"data-focus-visible":h||void 0,"data-disabled":l||void 0,"data-readonly":d||void 0,"data-invalid":f||void 0,"data-required":e.isRequired||void 0},u.createElement(ia,{elementType:"span"},u.createElement("input",{...X(a,b),ref:n})),C.children)}const u8=u.forwardRef(l8),Cr=u.createContext({});function c8(e,t){[e,t]=me(e,t,Cr);let{isDisabled:n,isInvalid:r,onHoverStart:o,onHoverChange:i,onHoverEnd:a,...s}=e,{hoverProps:l,isHovered:d}=Fe({onHoverStart:o,onHoverChange:i,onHoverEnd:a,isDisabled:n}),{isFocused:c,isFocusVisible:f,focusProps:p}=Ye({within:!0});n??(n=!!e["aria-disabled"]&&e["aria-disabled"]!=="false"),r??(r=!!e["aria-invalid"]&&e["aria-invalid"]!=="false");let h=he({...e,values:{isHovered:d,isFocusWithin:c,isFocusVisible:f,isDisabled:n,isInvalid:r},defaultClassName:"react-aria-Group"});var b,g;return u.createElement("div",{...X(s,p,l),...h,ref:t,role:(b=e.role)!==null&&b!==void 0?b:"group",slot:(g=e.slot)!==null&&g!==void 0?g:void 0,"data-focus-within":c||void 0,"data-hovered":d||void 0,"data-focus-visible":f||void 0,"data-disabled":n||void 0,"data-invalid":r||void 0},h.children)}const Qu=u.forwardRef(c8),On=u.createContext({});let d8=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...o}=e;return o};function f8(e,t){[e,t]=me(e,t,On);let{hoverProps:n,isHovered:r}=Fe(e),{isFocused:o,isFocusVisible:i,focusProps:a}=Ye({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",l=he({...e,values:{isHovered:r,isFocused:o,isFocusVisible:i,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return u.createElement("input",{...X(d8(e),a,n),...l,ref:t,"data-focused":o||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":i||void 0,"data-invalid":s||void 0})}const So=$a(f8),L4=u.createContext(null);function p8(e,t){let{render:n}=u.useContext(L4);return u.createElement(u.Fragment,null,n(e,t))}const h8=u.forwardRef(p8),ec=u.createContext({}),b8=u.createContext({});function m8(e,t){let[n,r]=me(e,t,b8),o=M4("header",e,t);return o||u.createElement("header",{className:"react-aria-Header",...n,ref:r},n.children)}const V4=u.forwardRef(m8),tc=u.createContext({});function g8(e,t){let[n,r]=me(e,t,tc),{elementType:o,orientation:i,style:a,className:s}=n,l=o||"hr";l==="hr"&&i==="vertical"&&(l="div");let{separatorProps:d}=Vy({elementType:o,orientation:i}),c=M4("separator",e,t);return c||u.createElement(l,{...le(n),...d,style:a,className:s??"react-aria-Separator",ref:r,slot:n.slot||void 0})}const O4=u.forwardRef(g8),wa=u.createContext(null),To=u.createContext(null);function v8(e,t){[e,t]=me(e,t,wa);let n=u.useContext(po),r=u.useContext(To);return u.useContext(Eo)?u.createElement(A4,e):r?n?null:u.createElement(N4,{state:r,props:e,listBoxRef:t}):u.createElement(y8,{props:e,listBoxRef:t})}function y8({props:e,listBoxRef:t}){let{portal:n,collection:r}=qu(e);e={...e,collection:r,children:null,items:null};let o=jy(e);return u.createElement(u.Fragment,null,n,u.createElement(N4,{state:o,props:e,listBoxRef:t}))}const $8=u.forwardRef(v8);function N4({state:e,props:t,listBoxRef:n}){let{dragAndDropHooks:r,layout:o="stack",orientation:i="vertical"}=t,{collection:a,selectionManager:s}=e,l=!!(r!=null&&r.useDraggableCollectionState),d=!!(r!=null&&r.useDroppableCollectionState),{direction:c}=Ve(),{disabledBehavior:f,disabledKeys:p}=s,h=ru({usage:"search",sensitivity:"base"}),b=u.useMemo(()=>t.keyboardDelegate||new ju({collection:a,collator:h,ref:n,disabledKeys:f==="selection"?new Set:p,layout:o,orientation:i,direction:c}),[a,h,n,f,p,i,c,t.keyboardDelegate,o]),{listBoxProps:g}=DD({...t,shouldSelectOnPressUp:l||t.shouldSelectOnPressUp,keyboardDelegate:b},e,n),y=xr({items:a,children:K=>{switch(K.type){case"section":return u.createElement(x8,{section:K});case"separator":return u.createElement(O4,K.props);case"item":return u.createElement(K4,{item:K});default:throw new Error("Unsupported node type in Menu: "+K.type)}}}),$=u.useRef(l),C=u.useRef(d);u.useEffect(()=>{$.current!==l&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),C.current!==d&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[l,d]);let w,E,P,k=!1,N=null,v=u.useRef(null);if(l&&r){w=r.useDraggableCollectionState({collection:a,selectionManager:s,preview:r.renderDragPreview?v:void 0}),r.useDraggableCollection({},w,n);let K=r.DragPreview;N=r.renderDragPreview?u.createElement(K,{ref:v},r.renderDragPreview):null}if(d&&r){E=r.useDroppableCollectionState({collection:a,selectionManager:s});let K=r.dropTargetDelegate||new r.ListDropTargetDelegate(a,n,{orientation:i,layout:o,direction:c});P=r.useDroppableCollection({keyboardDelegate:b,dropTargetDelegate:K},E,n),k=E.isDropTarget({type:"root"})}let{focusProps:L,isFocused:F,isFocusVisible:A}=Ye(),B={isDropTarget:k,isEmpty:e.collection.size===0,isFocused:F,isFocusVisible:A,layout:t.layout||"stack",state:e},R=he({className:t.className,style:t.style,defaultClassName:"react-aria-ListBox",values:B}),I=null;return e.collection.size===0&&t.renderEmptyState&&(I=u.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(B))),u.createElement(Ul,null,u.createElement("div",{...le(t),...X(g,L,P==null?void 0:P.collectionProps),...R,ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":k||void 0,"data-empty":e.collection.size===0||void 0,"data-focused":F||void 0,"data-focus-visible":A||void 0,"data-layout":t.layout||"stack","data-orientation":t.orientation||"vertical"},u.createElement(Oe,{values:[[wa,t],[To,e],[ec,{dragAndDropHooks:r,dragState:w,dropState:E}],[tc,{elementType:"div"}],[L4,{render:E8}]]},y),I,N))}function x8({section:e,className:t,style:n}){var r,o;let i=u.useContext(To),[a,s]=yt();var l;let{headingProps:d,groupProps:c}=PD({heading:s,"aria-label":(l=e.props["aria-label"])!==null&&l!==void 0?l:void 0}),f=xr({items:i.collection.getChildren(e.key),children:p=>{switch(p.type){case"header":return u.createElement(w8,{item:p,headingProps:d,headingRef:a});case"item":return u.createElement(K4,{item:p});default:throw new Error("Unsupported element type in Section: "+p.type)}}});return u.createElement("section",{...le(e.props),...c,className:t||((r=e.props)===null||r===void 0?void 0:r.className)||"react-aria-Section",style:n||((o=e.props)===null||o===void 0?void 0:o.style),ref:e.props.ref},f)}function w8({item:e,headingProps:t,headingRef:n}){let{ref:r,...o}=e.props;return u.createElement(V4,{...t,...o,ref:Ji(n,r)},e.rendered)}function C8(e,t){return va("item",e,t,e.children)}const D8=u.forwardRef(C8);function K4({item:e}){var t;let n=mt(e.props.ref),r=u.useContext(To),{dragAndDropHooks:o,dragState:i,dropState:a}=u.useContext(ec),{optionProps:s,labelProps:l,descriptionProps:d,...c}=ED({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},r,n),{hoverProps:f,isHovered:p}=Fe({isDisabled:!c.allowsSelection&&!c.hasAction}),h=null;i&&o&&(h=o.useDraggableItem({key:e.key},i));let b=null;a&&o&&(b=o.useDroppableItem({target:{type:"item",key:e.key,dropPosition:"on"}},a,n));let g=e.props,y=i&&i.isDragging(e.key),$=he({...g,id:void 0,children:e.rendered,defaultClassName:"react-aria-ListBoxItem",values:{...c,isHovered:p,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior,allowsDragging:!!i,isDragging:y,isDropTarget:b==null?void 0:b.isDropTarget}}),C=(o==null?void 0:o.renderDropIndicator)||(E=>u.createElement(h8,{target:E}));u.useEffect(()=>{e.textValue||console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[e.textValue]);let w=g.href?"a":"div";return u.createElement(u.Fragment,null,(o==null?void 0:o.useDropIndicator)&&C({type:"item",key:e.key,dropPosition:"before"}),u.createElement(w,{...X(s,f,h==null?void 0:h.dragProps,b==null?void 0:b.dropProps),...$,ref:n,"data-allows-dragging":!!i||void 0,"data-selected":c.isSelected||void 0,"data-disabled":c.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":c.isFocused||void 0,"data-focus-visible":c.isFocusVisible||void 0,"data-pressed":c.isPressed||void 0,"data-dragging":y||void 0,"data-drop-target":(b==null?void 0:b.isDropTarget)||void 0,"data-selection-mode":r.selectionManager.selectionMode==="none"?void 0:r.selectionManager.selectionMode},u.createElement(Oe,{values:[[Yt,{slots:{label:l,description:d}}]]},$.children)),(o==null?void 0:o.useDropIndicator)&&r.collection.getKeyAfter(e.key)==null&&C({type:"item",key:e.key,dropPosition:"after"}))}function E8(e,t){t=mt(t);let{dragAndDropHooks:n,dropState:r}=u.useContext(ec),{dropIndicatorProps:o,isHidden:i,isDropTarget:a}=n.useDropIndicator(e,r,t);return i?null:u.createElement(S8,{...e,dropIndicatorProps:o,isDropTarget:a,ref:t})}function P8(e,t){let{dropIndicatorProps:n,isDropTarget:r,...o}=e,i=he({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return u.createElement("div",{...n,...i,role:"option",ref:t,"data-drop-target":r||void 0})}const S8=u.forwardRef(P8),T8=u.createContext({placement:"bottom"}),dr=u.createContext(null);function A8(e,t){[e,t]=me(e,t,dr);let n=u.useContext(Nn),r=ga(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=Cl(t,o.isOpen)||e.isExiting||!1;if(u.useContext(po)){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1})),u.createElement(u.Fragment,null,s)}return o&&!o.isOpen&&!i?null:u.createElement(M8,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:i})}const j4=u.forwardRef(A8);function M8({state:e,isExiting:t,UNSTABLE_portalContainer:n,...r}){var o;let{popoverProps:i,underlayProps:a,arrowProps:s,placement:l}=S2({...r,offset:(o=r.offset)!==null&&o!==void 0?o:8},e),d=r.popoverRef,c=Xu(d,!!l)||r.isEntering||!1,f=he({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:l,isEntering:c,isExiting:t}}),p={...i.style,...f.style};return u.createElement(Mh,{isExiting:t,portalContainer:n},!r.isNonModal&&e.isOpen&&u.createElement("div",{"data-testid":"underlay",...a,style:{position:"fixed",inset:0}}),u.createElement("div",{...X(le(r),i),...f,ref:d,slot:r.slot||void 0,style:p,"data-trigger":r.trigger,"data-placement":l,"data-entering":c||void 0,"data-exiting":t||void 0},!r.isNonModal&&u.createElement(Qs,{onDismiss:e.close}),u.createElement(T8.Provider,{value:{...s,placement:l}},f.children),u.createElement(Qs,{onDismiss:e.close})))}const k8=u.createContext(null),Nn=u.createContext(null);function R8(e,t){let n=e["aria-labelledby"];[e,t]=me(e,t,k8);let{dialogProps:r,titleProps:o}=GD({...e,"aria-labelledby":n},t),i=u.useContext(Nn),a=e.children;typeof a=="function"&&(a=a({close:(i==null?void 0:i.close)||(()=>{})})),!r["aria-label"]&&!r["aria-labelledby"]&&(e["aria-labelledby"]?r["aria-labelledby"]=e["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));var s;return u.createElement("section",{...le(e),...r,ref:t,slot:e.slot||void 0,style:e.style,className:(s=e.className)!==null&&s!==void 0?s:"react-aria-Dialog"},u.createElement(Oe,{values:[[t8,{slots:{[wl]:{},title:{...o,level:2}}}]]},a))}const _4=u.forwardRef(R8),F8=u.createContext(null),B8=u.createContext(null);function I8(e,t){[e,t]=me(e,t,F8);let{collection:n,document:r}=Zu(),{children:o,isDisabled:i=!1,isInvalid:a=!1,isRequired:s=!1}=e;o=u.useMemo(()=>typeof o=="function"?o({isOpen:!1,isDisabled:i,isInvalid:a,isRequired:s}):o,[o,i,a,s]);var l;return u.createElement(u.Fragment,null,u.createElement(R4,null,u.createElement(Oe,{values:[[Eo,r],[wa,{items:(l=e.items)!==null&&l!==void 0?l:e.defaultItems}]]},o)),u.createElement(L8,{props:e,collection:n,comboBoxRef:t}))}function L8({props:e,collection:t,comboBoxRef:n}){let{name:r,formValue:o="key",allowsCustomValue:i}=e;i&&(o="text");let{contains:a}=z0({sensitivity:"base"});var s;let l=aE({defaultFilter:e.defaultFilter||a,...e,items:e.items,children:void 0,collection:t,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"}),d=u.useRef(null),c=u.useRef(null),f=u.useRef(null),p=u.useRef(null),[h,b]=yt();var g;let{buttonProps:y,inputProps:$,listBoxProps:C,labelProps:w,descriptionProps:E,errorMessageProps:P,...k}=VD({...Fn(e),label:b,inputRef:c,buttonRef:d,listBoxRef:f,popoverRef:p,name:o==="text"?r:void 0,validationBehavior:(g=e.validationBehavior)!==null&&g!==void 0?g:"native"},l),[N,v]=u.useState(null),L=u.useCallback(()=>{if(c.current){var R;let I=(R=d.current)===null||R===void 0?void 0:R.getBoundingClientRect(),K=c.current.getBoundingClientRect(),V=I?Math.min(I.left,K.left):K.left,T=I?Math.max(I.right,K.right):K.right;v(T-V+"px")}},[d,c,v]);Kl({ref:c,onResize:L});let F=u.useMemo(()=>({isOpen:l.isOpen,isDisabled:e.isDisabled||!1,isInvalid:k.isInvalid||!1,isRequired:e.isRequired||!1}),[l.isOpen,e.isDisabled,k.isInvalid,e.isRequired]),A=he({...e,values:F,defaultClassName:"react-aria-ComboBox"}),B=le(e);return delete B.id,u.createElement(Oe,{values:[[B8,l],[Mt,{...w,ref:h}],[Ju,{...y,ref:d,isPressed:l.isOpen}],[On,{...$,ref:c}],[Nn,l],[dr,{ref:p,triggerRef:c,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":N}}],[wa,{...C,ref:f}],[To,l],[Yt,{slots:{description:E,errorMessage:P}}],[Cr,{isInvalid:k.isInvalid,isDisabled:e.isDisabled||!1}],[Vn,k]]},u.createElement("div",{...B,...A,ref:n,slot:e.slot||void 0,"data-focused":l.isFocused||void 0,"data-open":l.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":k.isInvalid||void 0,"data-required":e.isRequired||void 0}),r&&o==="key"&&u.createElement("input",{type:"hidden",name:r,value:l.selectedKey}))}const V8=u.forwardRef(I8),z4=u.createContext(null),O8=u.createContext(null),Ao=u.createContext(null),Ca=u.createContext(null);function N8(e,t){[e,t]=me(e,t,z4);let{locale:n}=Ve();var r;let o=Wu({...e,locale:n,createCalendar:O0,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=yt(),l=u.useRef(null);var d;let{labelProps:c,fieldProps:f,inputProps:p,descriptionProps:h,errorMessageProps:b,...g}=Hu({...Fn(e),label:s,inputRef:l,validationBehavior:(d=e.validationBehavior)!==null&&d!==void 0?d:"native"},o,i),y=he({...Fn(e),values:{state:o,isInvalid:o.isInvalid,isDisabled:o.isDisabled},defaultClassName:"react-aria-DateField"}),$=le(e);return delete $.id,u.createElement(Oe,{values:[[Ao,o],[Cr,{...f,ref:i,isInvalid:o.isInvalid}],[On,{...p,ref:l}],[Mt,{...c,ref:a,elementType:"span"}],[Yt,{slots:{description:h,errorMessage:b}}],[Vn,g]]},u.createElement("div",{...$,...y,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const K8=u.forwardRef(N8);function j8(e,t){[e,t]=me(e,t,O8);let{locale:n}=Ve();var r;let o=xE({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=yt(),l=u.useRef(null);var d;let{labelProps:c,fieldProps:f,inputProps:p,descriptionProps:h,errorMessageProps:b,...g}=jD({...Fn(e),label:s,inputRef:l,validationBehavior:(d=e.validationBehavior)!==null&&d!==void 0?d:"native"},o,i),y=he({...e,values:{state:o,isInvalid:o.isInvalid,isDisabled:o.isDisabled},defaultClassName:"react-aria-TimeField"}),$=le(e);return delete $.id,u.createElement(Oe,{values:[[Ca,o],[Cr,{...f,ref:i,isInvalid:o.isInvalid}],[On,{...p,ref:l}],[Mt,{...c,ref:a,elementType:"span"}],[Yt,{slots:{description:h,errorMessage:b}}],[Vn,g]]},u.createElement("div",{...$,...y,ref:t,slot:e.slot||void 0,"data-invalid":o.isInvalid||void 0}))}const _8=u.forwardRef(j8);function z8(e,t){let n=u.useContext(Ao),r=u.useContext(Ca);return n||r?u.createElement(U4,{...e,ref:t}):u.createElement(U8,{...e,ref:t})}const U8=u.forwardRef((e,t)=>{let[n,r]=me({slot:e.slot},t,z4),{locale:o}=Ve(),i=Wu({...n,locale:o,createCalendar:O0}),a=u.useRef(null),{fieldProps:s,inputProps:l}=Hu({...n,inputRef:a},i,r);return u.createElement(Oe,{values:[[Ao,i],[On,{...l,ref:a}],[Cr,{...s,ref:r,isInvalid:i.isInvalid}]]},u.createElement(U4,e))}),U4=u.forwardRef((e,t)=>{let{className:n,children:r}=e,o=u.useContext(Ao),i=u.useContext(Ca),a=o??i;return u.createElement(u.Fragment,null,u.createElement(Qu,{...e,ref:t,slot:e.slot||void 0,className:n??"react-aria-DateInput",isInvalid:a.isInvalid},a.segments.map((s,l)=>u.cloneElement(r(s),{key:l}))),u.createElement(So,null))}),H4=u.forwardRef(z8);function H8({segment:e,...t},n){let r=u.useContext(Ao),o=u.useContext(Ca),i=r??o,a=mt(n),{segmentProps:s}=UD(e,i,a),{focusProps:l,isFocused:d,isFocusVisible:c}=Ye(),{hoverProps:f,isHovered:p}=Fe({...t,isDisabled:i.isDisabled||e.type==="literal"}),h=he({...t,values:{...e,isReadOnly:!e.isEditable,isInvalid:i.isInvalid,isDisabled:i.isDisabled,isHovered:p,isFocused:d,isFocusVisible:c},defaultChildren:e.text,defaultClassName:"react-aria-DateSegment"});return u.createElement("div",{...X(le(t),s,l,f),...h,ref:a,"data-placeholder":e.isPlaceholder||void 0,"data-invalid":i.isInvalid||void 0,"data-readonly":!e.isEditable||void 0,"data-disabled":i.isDisabled||void 0,"data-type":e.type,"data-hovered":p||void 0,"data-focused":d||void 0,"data-focus-visible":c||void 0})}const G4=u.forwardRef(H8),W4=u.createContext({}),Y4=u.createContext(null),Mo=u.createContext(null),q4=u.createContext(null);function Z4(e){let{item:t,parentMenuRef:n}=e,r=u.useContext(Mo);return xr({items:r.collection.getChildren(t.key),children:i=>{switch(i.type){case"item":return u.createElement(Z8,{item:i,popover:t.rendered[1],parentMenuRef:n,delay:t.props.delay});default:throw new Error("Unsupported element type in SubmenuTrigger: "+t.type)}}})}function G8(e,t){[e,t]=me(e,t,Y4);let{portal:n,collection:r}=qu(e);return u.createElement(u.Fragment,null,r.size>0&&u.createElement(W8,{props:e,collection:r,menuRef:t}),n)}function W8({props:e,collection:t,menuRef:n}){let r=FE({...e,collection:t,children:void 0}),[o,i]=u.useState(null),{menuProps:a}=AD(e,r,n),s=u.useContext(q4),l=u.useContext(dr),d=xr({items:r.collection,children:p=>{switch(p.type){case"section":return u.createElement(q8,{section:p,parentMenuRef:n});case"separator":return u.createElement(O4,p.props);case"item":return u.createElement(X4,{item:p});case"submenutrigger":return u.createElement(Z4,{item:p,parentMenuRef:n});default:throw new Error("Unsupported node type in Menu: "+p.type)}}}),c=(l==null?void 0:l.trigger)==="SubmenuTrigger";o0({ref:n,onInteractOutside:p=>{s&&!(o!=null&&o.contains(p.target))&&s.close()},isDisabled:c||(s==null?void 0:s.UNSTABLE_expandedKeysStack.length)===0});var f;return u.createElement(Ul,null,u.createElement("div",{...le(e),...a,ref:n,slot:e.slot||void 0,onScroll:e.onScroll,style:e.style,className:(f=e.className)!==null&&f!==void 0?f:"react-aria-Menu"},u.createElement(Oe,{values:[[Mo,r],[tc,{elementType:"div"}],[dr,{UNSTABLE_portalContainer:o||void 0}]]},d)),u.createElement("div",{ref:i,style:{width:"100vw",position:"absolute",top:0}}))}const Y8=u.forwardRef(G8);function q8({section:e,className:t,style:n,parentMenuRef:r,...o}){var i,a;let s=u.useContext(Mo),[l,d]=yt();var c;let{headingProps:f,groupProps:p}=MD({heading:d,"aria-label":(c=e["aria-label"])!==null&&c!==void 0?c:void 0}),h=xr({items:s.collection.getChildren(e.key),children:b=>{switch(b.type){case"header":{let{ref:g,...y}=b.props;return u.createElement(V4,{...f,...y,ref:Ji(l,g)},b.rendered)}case"item":return u.createElement(X4,{item:b});case"submenutrigger":return u.createElement(Z4,{item:b,parentMenuRef:r});default:throw new Error("Unsupported element type in Section: "+b.type)}}});return u.createElement("section",{...le(o),...p,className:t||((i=e.props)===null||i===void 0?void 0:i.className)||"react-aria-Section",style:n||((a=e.props)===null||a===void 0?void 0:a.style),ref:e.props.ref},h)}function X4({item:e}){var t;let n=u.useContext(Mo),r=mt(e.props.ref),{menuItemProps:o,labelProps:i,descriptionProps:a,keyboardShortcutProps:s,...l}=Ig({key:e.key,"aria-label":(t=e.props)===null||t===void 0?void 0:t["aria-label"]},n,r),d=e.props,{isFocusVisible:c,focusProps:f}=Ye(),{hoverProps:p,isHovered:h}=Fe({isDisabled:l.isDisabled}),b=he({...d,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...l,isHovered:h,isFocusVisible:c,selectionMode:n.selectionManager.selectionMode,selectionBehavior:n.selectionManager.selectionBehavior,hasSubmenu:!1,isOpen:!1}}),g=d.href?"a":"div";return u.createElement(g,{...X(o,f,p),...b,ref:r,"data-disabled":l.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":l.isFocused||void 0,"data-focus-visible":c||void 0,"data-pressed":l.isPressed||void 0,"data-selected":l.isSelected||void 0,"data-selection-mode":n.selectionManager.selectionMode==="none"?void 0:n.selectionManager.selectionMode},u.createElement(Oe,{values:[[Yt,{slots:{label:i,description:a}}],[W4,s]]},b.children))}function Z8({item:e,popover:t,parentMenuRef:n,delay:r}){let o=u.useContext(Mo),i=ya(dr),a=mt(e.props.ref),s=u.useContext(q4),l=wE({triggerKey:e.key},s),d=u.useRef(null),{submenuTriggerProps:c,submenuProps:f,popoverProps:p}=BD({node:e,parentMenuRef:n,submenuRef:d,delay:r},l,a),{menuItemProps:h,labelProps:b,descriptionProps:g,keyboardShortcutProps:y,...$}=Ig({key:e.key,...c},o,a),C=e.props,{hoverProps:w,isHovered:E}=Fe({isDisabled:$.isDisabled}),{isFocusVisible:P,focusProps:k}=Ye(),N=he({...C,id:void 0,children:e.rendered,defaultClassName:"react-aria-MenuItem",values:{...$,isHovered:E,isFocusVisible:P,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,hasSubmenu:!0,isOpen:l.isOpen}});return u.createElement(Oe,{values:[[Yt,{slots:{label:b,description:g}}],[W4,y],[Y4,f],[Nn,l],[dr,{ref:d,trigger:"SubmenuTrigger",triggerRef:a,placement:"end top",UNSTABLE_portalContainer:i.UNSTABLE_portalContainer||void 0,...p}]]},u.createElement("div",{...X(h,k,w),...N,ref:a,"data-disabled":$.isDisabled||void 0,"data-hovered":E||void 0,"data-focused":$.isFocused||void 0,"data-focus-visible":P||void 0,"data-pressed":$.isPressed||void 0,"data-selected":$.isSelected||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode,"data-has-submenu":!0,"data-open":l.isOpen||void 0},N.children),t)}const X8=u.createContext(null);function J8(e,t){[e,t]=me(e,t,X8);let{value:n=0,minValue:r=0,maxValue:o=100}=e;n=pt(n,r,o);let[i,a]=yt(),{meterProps:s,labelProps:l}=WD({...e,label:a}),d=(n-r)/(o-r)*100,c=he({...e,defaultClassName:"react-aria-Meter",values:{percentage:d,valueText:s["aria-valuetext"]}});return u.createElement("div",{...s,...c,ref:t,slot:e.slot||void 0},u.createElement(Mt.Provider,{value:{...l,ref:i,elementType:"span"}},c.children))}const Q8=u.forwardRef(J8),eP=u.createContext(null),nc=u.createContext(null);function tP(e,t){if(u.useContext(nc))return u.createElement(hp,{...e,modalRef:t},e.children);let{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,children:l,isEntering:d,isExiting:c,UNSTABLE_portalContainer:f,...p}=e;return u.createElement(J4,{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,isEntering:d,isExiting:c,UNSTABLE_portalContainer:f},u.createElement(hp,{...p,modalRef:t},l))}const nP=u.forwardRef(tP);function rP(e,t){[e,t]=me(e,t,eP);let n=u.useContext(Nn),r=ga(e),o=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,i=mt(t),a=u.useRef(null),s=Cl(i,o.isOpen),l=Cl(a,o.isOpen),d=s||l||e.isExiting||!1,c=At();return!o.isOpen&&!d||c?null:u.createElement(oP,{...e,state:o,isExiting:d,overlayRef:i,modalRef:a})}const J4=u.forwardRef(rP);function oP({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:o,underlayProps:i}=T2(t,r,n),a=Xu(t.overlayRef)||t.isEntering||!1,s=he({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:t.isExiting,state:r}}),l=cx(),d={...s.style,"--visual-viewport-height":l.height+"px"};return u.createElement(Mh,{isExiting:t.isExiting,portalContainer:e},u.createElement("div",{...X(le(t),i),...s,style:d,ref:t.overlayRef,"data-entering":a||void 0,"data-exiting":t.isExiting||void 0},u.createElement(Oe,{values:[[nc,{modalProps:o,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[Nn,r]]},s.children)))}function hp(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:o}=u.useContext(nc),i=u.useContext(Nn),a=u.useMemo(()=>Ji(e.modalRef,n),[e.modalRef,n]),s=mt(a),l=Xu(s),d=he({...e,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:r,state:i}});return u.createElement("div",{...X(le(e),t),...d,ref:s,"data-entering":l||void 0,"data-exiting":r||void 0},o&&u.createElement(Qs,{onDismiss:i.close}),d.children)}const iP=u.createContext(null),aP=u.createContext(null);function sP(e,t){[e,t]=me(e,t,iP);let{locale:n}=Ve();var r;let o=CE({...e,locale:n,validationBehavior:(r=e.validationBehavior)!==null&&r!==void 0?r:"native"}),i=u.useRef(null),[a,s]=yt();var l;let{labelProps:d,groupProps:c,inputProps:f,incrementButtonProps:p,decrementButtonProps:h,descriptionProps:b,errorMessageProps:g,...y}=qD({...Fn(e),label:s,validationBehavior:(l=e.validationBehavior)!==null&&l!==void 0?l:"native"},o,i),$=he({...e,values:{state:o,isDisabled:e.isDisabled||!1,isInvalid:y.isInvalid||!1},defaultClassName:"react-aria-NumberField"}),C=le(e);return delete C.id,u.createElement(Oe,{values:[[aP,o],[Cr,c],[On,{...f,ref:i}],[Mt,{...d,ref:a}],[Ju,{slots:{increment:p,decrement:h}}],[Yt,{slots:{description:b,errorMessage:g}}],[Vn,y]]},u.createElement("div",{...C,...$,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":y.isInvalid||void 0}),e.name&&u.createElement("input",{type:"hidden",name:e.name,value:isNaN(o.numberValue)?"":o.numberValue}))}const lP=u.forwardRef(sP),uP=u.createContext(null);function cP(e,t){[e,t]=me(e,t,uP);let{value:n=0,minValue:r=0,maxValue:o=100,isIndeterminate:i=!1}=e;n=pt(n,r,o);let[a,s]=yt(),{progressBarProps:l,labelProps:d}=ty({...e,label:s}),c=i?void 0:(n-r)/(o-r)*100,f=he({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:l["aria-valuetext"],isIndeterminate:i}});return u.createElement("div",{...l,...f,ref:t,slot:e.slot||void 0},u.createElement(Mt.Provider,{value:{...d,ref:a,elementType:"span"}},f.children))}const Q4=u.forwardRef(cP),dP=u.createContext(null),Da=u.createContext(null),rc=u.createContext(null),e1=u.createContext(null);function fP(e,t){[e,t]=me(e,t,dP);let n=u.useRef(null),r=Ni(e.formatOptions),o=SE({...e,numberFormatter:r}),[i,a]=yt(),{groupProps:s,trackProps:l,labelProps:d,outputProps:c}=ZD({...e,label:a},o,n),f=he({...e,values:{orientation:o.orientation,isDisabled:o.isDisabled,state:o},defaultClassName:"react-aria-Slider"}),p=le(e);return delete p.id,u.createElement(Oe,{values:[[Da,o],[rc,{...l,ref:n}],[e1,c],[Mt,{...d,ref:i}]]},u.createElement("div",{...p,...s,...f,ref:t,slot:e.slot||void 0,"data-orientation":o.orientation,"data-disabled":o.isDisabled||void 0}))}const pP=u.forwardRef(fP);function hP(e,t){[e,t]=me(e,t,e1);let{children:n,style:r,className:o,...i}=e,a=u.useContext(Da),s=he({className:o,style:r,children:n,defaultChildren:a.getThumbValueLabel(0),defaultClassName:"react-aria-SliderOutput",values:{orientation:a.orientation,isDisabled:a.isDisabled,state:a}});return u.createElement("output",{...i,...s,ref:t,"data-orientation":a.orientation||void 0,"data-disabled":a.isDisabled||void 0})}const bP=u.forwardRef(hP);function mP(e,t){[e,t]=me(e,t,rc);let n=u.useContext(Da),{onHoverStart:r,onHoverEnd:o,onHoverChange:i,...a}=e,{hoverProps:s,isHovered:l}=Fe({onHoverStart:r,onHoverEnd:o,onHoverChange:i}),d=he({...e,defaultClassName:"react-aria-SliderTrack",values:{orientation:n.orientation,isDisabled:n.isDisabled,isHovered:l,state:n}});return u.createElement("div",{...X(a,s),...d,ref:t,"data-hovered":l||void 0,"data-orientation":n.orientation||void 0,"data-disabled":n.isDisabled||void 0})}const gP=u.forwardRef(mP);function vP(e,t){let n=u.useContext(Da),{ref:r}=ya(rc),{index:o=0}=e,i=u.useRef(null),[a,s]=yt(),{thumbProps:l,inputProps:d,labelProps:c,isDragging:f,isFocused:p,isDisabled:h}=XD({...e,index:o,trackRef:r,inputRef:i,label:s},n),{focusProps:b,isFocusVisible:g}=Ye(),{hoverProps:y,isHovered:$}=Fe(e),C=he({...e,defaultClassName:"react-aria-SliderThumb",values:{state:n,isHovered:$,isDragging:f,isFocused:p,isFocusVisible:g,isDisabled:h}}),w=le(e);return delete w.id,u.createElement("div",{...X(w,l,y),...C,ref:t,style:{...l.style,...C.style},"data-hovered":$||void 0,"data-dragging":f||void 0,"data-focused":p||void 0,"data-focus-visible":g||void 0,"data-disabled":h||void 0},u.createElement(ia,null,u.createElement("input",{ref:i,...X(d,b)})),u.createElement(Oe,{values:[[Mt,{...c,ref:a}]]},C.children))}const yP=u.forwardRef(vP),$P=u.createContext(null);function xP(e,t){[e,t]=me(e,t,$P);let n=u.useRef(null),r=ha(e),{labelProps:o,inputProps:i,isSelected:a,isDisabled:s,isReadOnly:l,isPressed:d}=JD({...Fn(e),children:typeof e.children=="function"?!0:e.children},r,n),{isFocused:c,isFocusVisible:f,focusProps:p}=Ye(),h=e.isDisabled||e.isReadOnly,{hoverProps:b,isHovered:g}=Fe({...e,isDisabled:h}),y=he({...e,defaultClassName:"react-aria-Switch",values:{isSelected:a,isPressed:d,isHovered:g,isFocused:c,isFocusVisible:f,isDisabled:s,isReadOnly:l,state:r}}),$=le(e);return delete $.id,u.createElement("label",{...X($,o,b,y),ref:t,slot:e.slot||void 0,"data-selected":a||void 0,"data-pressed":d||void 0,"data-hovered":g||void 0,"data-focused":c||void 0,"data-focus-visible":f||void 0,"data-disabled":s||void 0,"data-readonly":l||void 0},u.createElement(ia,{elementType:"span"},u.createElement("input",{...i,...p,ref:n})),y.children)}const wP=u.forwardRef(xP),oc=u.createContext(null),ic=u.createContext(null);function CP(e,t){[e,t]=me(e,t,oc);let{collection:n,document:r}=Zu(),{children:o,orientation:i="horizontal"}=e;return o=u.useMemo(()=>typeof o=="function"?o({orientation:i}):o,[o,i]),u.createElement(u.Fragment,null,u.createElement(R4,null,u.createElement(Eo.Provider,{value:r},o)),u.createElement(DP,{props:e,collection:n,tabsRef:t}))}function DP({props:e,tabsRef:t,collection:n}){let{orientation:r="horizontal"}=e,o=TE({...e,collection:n,children:void 0}),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye({within:!0}),l=u.useMemo(()=>({orientation:r,isFocusWithin:a,isFocusVisible:s}),[r,a,s]),d=he({...e,defaultClassName:"react-aria-Tabs",values:l});return u.createElement("div",{...le(e),...i,...d,ref:t,slot:e.slot||void 0,"data-focused":a||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":o.isDisabled||void 0},u.createElement(Oe,{values:[[oc,e],[ic,o]]},d.children))}const EP=u.forwardRef(CP);function PP(e,t){return u.useContext(Eo)?u.createElement(A4,e):u.createElement(SP,{props:e,forwardedRef:t})}function SP({props:e,forwardedRef:t}){let n=u.useContext(ic),{orientation:r="horizontal",keyboardActivation:o="automatic"}=ya(oc),i=mt(t),{tabListProps:a}=nE({...e,orientation:r,keyboardActivation:o},n,i),s=he({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:r,state:n}}),l=le(e);return delete l.id,u.createElement("div",{...l,...a,ref:i,...s,"data-orientation":r||void 0},[...n.collection].map(d=>u.createElement(kP,{key:d.key,item:d,state:n})))}const TP=u.forwardRef(PP);function AP(e,t){return va("item",e,t,e.children)}const MP=u.forwardRef(AP);function kP({item:e,state:t}){let n=mt(e.props.ref),{tabProps:r,isSelected:o,isDisabled:i,isPressed:a}=QD({key:e.key,...e.props},t,n),{focusProps:s,isFocused:l,isFocusVisible:d}=Ye(),{hoverProps:c,isHovered:f}=Fe({isDisabled:i}),p=he({...e.props,children:e.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:o,isDisabled:i,isFocused:l,isFocusVisible:d,isPressed:a,isHovered:f,state:t}}),h=e.props.href?"a":"div";return u.createElement(h,{...X(r,s,c,p),ref:n,"data-selected":o||void 0,"data-disabled":i||void 0,"data-focus-visible":d||void 0,"data-pressed":a||void 0,"data-hovered":f||void 0})}function RP(e,t){const n=u.useContext(ic);let r=mt(t),{tabPanelProps:o}=eE(e,n,r),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye(),l=n.selectedKey===e.id,d=he({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:s,isInert:!l,state:n}});if(!l&&!e.shouldForceMount)return null;let c=le(e);delete c.id;let f=l?X(c,o,i,d):d;return u.createElement("div",{...f,ref:r,"data-focused":a||void 0,"data-focus-visible":s||void 0,inert:l?void 0:"true","data-inert":l?void 0:"true"})}const FP=$a(RP),BP=u.createContext({}),IP=u.createContext(null);function LP(e,t){[e,t]=me(e,t,IP);let n=u.useRef(null),[r,o]=yt(),[i,a]=u.useState("input");var s;let{labelProps:l,inputProps:d,descriptionProps:c,errorMessageProps:f,...p}=zu({...Fn(e),inputElementType:i,label:o,validationBehavior:(s=e.validationBehavior)!==null&&s!==void 0?s:"native"},n),h=u.useCallback(g=>{n.current=g,g&&a(g instanceof HTMLTextAreaElement?"textarea":"input")},[]),b=he({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:p.isInvalid},defaultClassName:"react-aria-TextField"});return u.createElement("div",{...le(e),...b,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":p.isInvalid||void 0},u.createElement(Oe,{values:[[Mt,{...l,ref:r}],[On,{...d,ref:h}],[BP,{...d,ref:h}],[Yt,{slots:{description:c,errorMessage:f}}],[Vn,p]]},b.children))}const Ea=u.forwardRef(LP),VP=u.createContext({});function OP(e,t){[e,t]=me(e,t,VP);let n=ha(e),{buttonProps:r,isPressed:o}=iD(e,n,t),{focusProps:i,isFocused:a,isFocusVisible:s}=Ye(e),{hoverProps:l,isHovered:d}=Fe(e),c=he({...e,values:{isHovered:d,isPressed:o,isFocused:a,isSelected:n.isSelected,isFocusVisible:s,isDisabled:e.isDisabled||!1,state:n},defaultClassName:"react-aria-ToggleButton"});return u.createElement("button",{...X(r,i,l),...c,ref:t,slot:e.slot||void 0,"data-focused":a||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":o||void 0,"data-selected":n.isSelected||void 0,"data-hovered":d||void 0,"data-focus-visible":s||void 0})}const NP=u.forwardRef(OP),KP=_.styled(ZE)`
180
180
  display: flex;
181
181
  align-items: center;
182
182
  list-style: none;
183
183
  margin: 0 0 1rem;
184
184
  padding: 0.3125rem 0 0;
185
185
  font-size: 0.9rem;
186
- `,jP=_(B4)`
186
+ `,jP=_.styled(B4)`
187
187
  display: flex;
188
188
  align-items: center;
189
- `,_P=_(B4)`
189
+ `,_P=_.styled(B4)`
190
190
  display: flex;
191
191
  align-items: center;
192
192
  margin: 0 0.5rem;
@@ -196,7 +196,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
196
196
  width: 1rem;
197
197
  height: 1rem;
198
198
  }
199
- `,zP=_(xa)`
199
+ `,zP=_.styled(xa)`
200
200
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[600])??x.colors.slate[600]}};
201
201
  text-decoration: none;
202
202
  cursor: pointer;
@@ -222,7 +222,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
222
222
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
223
223
  }
224
224
  }
225
- `;function UP({children:e,...t}){return S.jsx(jP,{...t,children:e})}function HP(e){return S.jsx(zP,{...e})}function GP({children:e,...t}){return S.jsx(_P,{...t,children:e??S.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:S.jsx("path",{d:"M6 12L10 8L6 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}function WP({children:e,...t}){return S.jsx(KP,{...t,children:e})}const Dt=_(I4)`
225
+ `;function UP({children:e,...t}){return S.jsx(jP,{...t,children:e})}function HP(e){return S.jsx(zP,{...e})}function GP({children:e,...t}){return S.jsx(_P,{...t,children:e??S.jsx("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:S.jsx("path",{d:"M6 12L10 8L6 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}function WP({children:e,...t}){return S.jsx(KP,{...t,children:e})}const Dt=_.styled(I4)`
226
226
  display: flex;
227
227
  align-items: center;
228
228
  padding: 0.4rem 2rem;
@@ -260,10 +260,10 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
260
260
  border-color: ${({isLoading:e,theme:t,variant:n})=>{var r,o,i,a,s,l,d,c;switch(n){case"ghost":return"transparent";case"outline":return e?((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[300])??x.colors.slate[300]:((a=(i=t==null?void 0:t.colors)==null?void 0:i.slate)==null?void 0:a[200])??x.colors.slate[200];case"solid":default:return e?((l=(s=t==null?void 0:t.colors)==null?void 0:s.slate)==null?void 0:l[900])??x.colors.slate[900]:((c=(d=t==null?void 0:t.colors)==null?void 0:d.slate)==null?void 0:c[200])??x.colors.slate[200]}}};
261
261
  color: ${({isLoading:e,theme:t,variant:n})=>{var r,o,i,a,s,l,d;switch(n){case"ghost":case"outline":return e?((o=(r=t==null?void 0:t.colors)==null?void 0:r.slate)==null?void 0:o[900])??x.colors.slate[900]:((a=(i=t==null?void 0:t.colors)==null?void 0:i.slate)==null?void 0:a[500])??x.colors.slate[500];case"solid":default:return e?((s=t==null?void 0:t.colors)==null?void 0:s.white)??x.colors.white:((d=(l=t==null?void 0:t.colors)==null?void 0:l.slate)==null?void 0:d[400])??x.colors.slate[400]}}};
262
262
  }
263
- `;function YP({children:e,isDisabled:t=!1,isLoading:n=!1,size:r="md",variant:o="solid",...i}){return S.jsx(Dt,{isDisabled:t||n,isLoading:n,size:r,variant:o,...i,children:e})}const qP=_.div`
263
+ `;function YP({children:e,isDisabled:t=!1,isLoading:n=!1,size:r="md",variant:o="solid",...i}){return S.jsx(Dt,{isDisabled:t||n,isLoading:n,size:r,variant:o,...i,children:e})}const qP=_.styled.div`
264
264
  display: flex;
265
265
  flex-direction: column;
266
- `;function ZP({children:e,...t}){return S.jsx(qP,{...t,children:e})}const at=_.div`
266
+ `;function ZP({children:e,...t}){return S.jsx(qP,{...t,children:e})}const at=_.styled.div`
267
267
  width: 1.5rem;
268
268
  height: 1.5rem;
269
269
  border: 1px solid
@@ -273,7 +273,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
273
273
  display: flex;
274
274
  align-items: center;
275
275
  justify-content: center;
276
- `,vi=_.svg`
276
+ `,vi=_.styled.svg`
277
277
  width: 1rem;
278
278
  height: 1rem;
279
279
  fill: none;
@@ -282,7 +282,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
282
282
  stroke-dasharray: 22px;
283
283
  stroke-dashoffset: 66;
284
284
  transition: all 200ms;
285
- `,XP=_(u8)`
285
+ `,XP=_.styled(u8)`
286
286
  display: flex;
287
287
  align-items: center;
288
288
  gap: 0.5rem;
@@ -381,22 +381,22 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
381
381
  fill: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
382
382
  }
383
383
  }
384
- `;function JP({children:e,...t}){return S.jsx(XP,{...t,children:({isIndeterminate:n})=>S.jsxs(S.Fragment,{children:[S.jsx(at,{children:S.jsx(vi,{viewBox:"0 0 18 18","aria-hidden":"true",children:n?S.jsx("rect",{x:1,y:7.5,width:15,height:3}):S.jsx("polyline",{points:"1 9 7 14 15 4"})})}),e]})})}const QP=_.div`
384
+ `;function JP({children:e,...t}){return S.jsx(XP,{...t,children:({isIndeterminate:n})=>S.jsxs(S.Fragment,{children:[S.jsx(at,{children:S.jsx(vi,{viewBox:"0 0 18 18","aria-hidden":"true",children:n?S.jsx("rect",{x:1,y:7.5,width:15,height:3}):S.jsx("polyline",{points:"1 9 7 14 15 4"})})}),e]})})}const QP=_.styled.div`
385
385
  width: 100%;
386
- `,e9=_(yr.div)`
386
+ `,e9=_.styled(yr.div)`
387
387
  width: 100%;
388
388
  overflow: hidden;
389
389
  `,ac=u.createContext({});function t9({children:e,...t}){const n=u.useId(),[r,o]=bt(t.isOpen,t.defaultOpen||!1,t.onOpenChange),i=u.useRef(null),a=u.useCallback(()=>{o(!r)},[o,r]);return S.jsx(Oe,{values:[[ac,{isOpen:r,id:n,defaultOpen:t.defaultOpen||!1}]],children:S.jsx(Cx,{ref:i,isPressed:r,onPress:a,"aria-expanded":r,"aria-controls":n,children:S.jsx(QP,{children:e})})})}function n9({children:e}){const{isOpen:t,id:n,defaultOpen:r}=u.useContext(ac);return S.jsx(e9,{id:n,variants:{hidden:{height:"0px",opacity:0},visible:{height:"auto",opacity:1}},initial:r?"visible":"hidden",animate:t?"visible":"hidden",transition:{type:"spring",bounce:0},children:e})}const r9=e=>{let t="";return Object.values(e).forEach(n=>{t+=`
390
390
  @media (min-width: ${n}) {
391
391
  max-width: ${n};
392
392
  }
393
- `}),t},o9=_.div`
393
+ `}),t},o9=_.styled.div`
394
394
  width: 100%;
395
395
  margin: 0 auto;
396
396
  padding: 0 1rem;
397
397
 
398
398
  ${({theme:e})=>r9((e==null?void 0:e.screens)??x.screens)}
399
- `,i9=u.forwardRef(({children:e,...t},n)=>S.jsx(o9,{...t,ref:n,children:e})),a9=yr(_(j4)`
399
+ `,i9=u.forwardRef(({children:e,...t},n)=>S.jsx(o9,{...t,ref:n,children:e})),a9=_.styled(yr(j4))`
400
400
  padding: 0.4rem 0;
401
401
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
402
402
  border-radius: 0.375rem;
@@ -404,9 +404,9 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
404
404
  background: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
405
405
  border: 1px solid
406
406
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
407
- `);function t1({children:e,key:t,onAction:n,setAnimation:r,animation:o="hidden",...i}){return S.jsx(a9,{isExiting:o==="hidden",onAnimationComplete:a=>{r(s=>a==="hidden"&&s==="hidden"?"unmounted":s)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:o,...i,children:S.jsx(Y8,{style:{outline:"none"},onAction:n,children:e})},t)}t1.defaultProps={key:void 0,onAction:void 0};const s9=_(K8)`
407
+ `;function t1({children:e,key:t,onAction:n,setAnimation:r,animation:o="hidden",...i}){return S.jsx(a9,{isExiting:o==="hidden",onAnimationComplete:a=>{r(s=>a==="hidden"&&s==="hidden"?"unmounted":s)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:o,...i,children:S.jsx(Y8,{style:{outline:"none"},onAction:n,children:e})},t)}t1.defaultProps={key:void 0,onAction:void 0};const s9=_.styled(K8)`
408
408
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
409
- `,l9=_(H4)`
409
+ `,l9=_.styled(H4)`
410
410
  display: flex;
411
411
  align-items: center;
412
412
  border: 1px solid
@@ -457,7 +457,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
457
457
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[200])??x.colors.red[200]}};
458
458
  }
459
459
  }
460
- `,u9=_(G4)`
460
+ `,u9=_.styled(G4)`
461
461
  padding: 0.25rem;
462
462
  font-variant-numeric: tabular-nums;
463
463
  text-align: end;
@@ -507,24 +507,24 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
507
507
  color: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
508
508
  }
509
509
  }
510
- `,c9=_(qt)`
510
+ `,c9=_.styled(qt)`
511
511
  display: flex;
512
512
  font-size: 0.8rem;
513
513
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
514
- `,d9=_(Po)`
514
+ `,d9=_.styled(Po)`
515
515
  display: flex;
516
516
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
517
517
  font-size: 0.8rem;
518
- `,f9=_(wr)`
518
+ `,f9=_.styled(wr)`
519
519
  display: flex;
520
520
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
521
521
  font-size: 0.8rem;
522
- `;function n1({label:e,description:t,errorMessage:n,...r}){return S.jsxs(s9,{...r,children:[S.jsx(c9,{children:e}),S.jsx(l9,{children:o=>S.jsx(u9,{segment:o})}),S.jsx(f9,{slot:"description",children:t}),S.jsx(d9,{children:n})]})}n1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const p9=_.div`
522
+ `;function n1({label:e,description:t,errorMessage:n,...r}){return S.jsxs(s9,{...r,children:[S.jsx(c9,{children:e}),S.jsx(l9,{children:o=>S.jsx(u9,{segment:o})}),S.jsx(f9,{slot:"description",children:t}),S.jsx(d9,{children:n})]})}n1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const p9=_.styled.div`
523
523
  width: ${({orientation:e})=>e==="vertical"?"1px":"100%"};
524
524
  height: ${({orientation:e})=>e==="vertical"?"auto":"1px"};
525
525
  margin: ${({orientation:e})=>e==="vertical"?"0 1rem":"1rem 0"};
526
526
  background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[200])??x.colors.slate[200]}};
527
- `;function h9(e){const{orientation:t}=e,{separatorProps:n}=Vy(e);return S.jsx(p9,{...n,orientation:t})}const xn=_(So)`
527
+ `;function h9(e){const{orientation:t}=e,{separatorProps:n}=Vy(e);return S.jsx(p9,{...n,orientation:t})}const xn=_.styled(So)`
528
528
  border: 1px solid
529
529
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
530
530
  font-size: 0.9rem;
@@ -577,24 +577,24 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
577
577
  ::placeholder {
578
578
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
579
579
  }
580
- `,r1=_(qt)`
580
+ `,r1=_.styled(qt)`
581
581
  display: flex;
582
582
  font-size: 0.8rem;
583
583
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
584
- `,b9=_(Ea)`
584
+ `,b9=_.styled(Ea)`
585
585
  display: flex;
586
586
  flex-direction: column;
587
587
  width: 100%;
588
588
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
589
- `,o1=_(Po)`
589
+ `,o1=_.styled(Po)`
590
590
  display: flex;
591
591
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
592
592
  font-size: 0.8rem;
593
- `,i1=_(wr)`
593
+ `,i1=_.styled(wr)`
594
594
  display: flex;
595
595
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
596
596
  font-size: 0.8rem;
597
- `;function a1({label:e,description:t,errorMessage:n,...r}){return S.jsxs(b9,{...r,children:[S.jsx(r1,{children:e}),S.jsx(xn,{}),t&&S.jsx(i1,{slot:"description",children:t}),S.jsx(o1,{children:n})]})}a1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const m9=_(xa)`
597
+ `;function a1({label:e,description:t,errorMessage:n,...r}){return S.jsxs(b9,{...r,children:[S.jsx(r1,{children:e}),S.jsx(xn,{}),t&&S.jsx(i1,{slot:"description",children:t}),S.jsx(o1,{children:n})]})}a1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const m9=_.styled(xa)`
598
598
  color: ${({isDisabled:e,theme:t})=>{var n,r,o,i;return e?((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[300])??x.colors.slate[300]:((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[500])??x.colors.slate[500]}};
599
599
  cursor: ${({isDisabled:e})=>e?"default":"pointer"};
600
600
  text-decoration: none;
@@ -604,30 +604,30 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
604
604
  &:hover {
605
605
  color: ${({isDisabled:e,theme:t})=>{var n,r,o,i;return e?((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[300])??x.colors.slate[300]:((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[800])??x.colors.slate[800]}};
606
606
  }
607
- `;function g9({children:e,...t}){return S.jsx(m9,{...t,children:e})}const v9=_(Q8)`
607
+ `;function g9({children:e,...t}){return S.jsx(m9,{...t,children:e})}const v9=_.styled(Q8)`
608
608
  display: flex;
609
609
  flex-direction: column;
610
610
  gap: 0.5rem;
611
- `,y9=_.div`
611
+ `,y9=_.styled.div`
612
612
  display: flex;
613
613
  justify-content: space-between;
614
614
  gap: 1rem;
615
- `,$9=_(qt)`
615
+ `,$9=_.styled(qt)`
616
616
  font-size: 0.875rem;
617
- `,x9=_.span`
617
+ `,x9=_.styled.span`
618
618
  font-size: 0.875rem;
619
619
  font-variant-numeric: tabular-nums;
620
620
  margin-left: auto;
621
- `,w9=_.div`
621
+ `,w9=_.styled.div`
622
622
  height: 0.625rem;
623
623
  border-radius: 0.3rem;
624
624
  background-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
625
625
  forced-color-adjust: none;
626
626
  overflow: hidden;
627
- `,C9=_(yr.div)`
627
+ `,C9=_.styled(yr.div)`
628
628
  height: 100%;
629
629
  background-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[800])??x.colors.slate[800]}};
630
- `;function D9({label:e,showValue:t=!0,value:n=0,minValue:r=0,maxValue:o=100,formatOptions:i={style:"percent"},...a}){return S.jsx(v9,{value:n,minValue:r,maxValue:o,formatOptions:i,...a,children:({percentage:s,valueText:l})=>S.jsxs(S.Fragment,{children:[(e||t)&&S.jsxs(y9,{children:[e&&S.jsx($9,{children:e}),t&&S.jsx(x9,{children:l})]}),S.jsx(w9,{children:S.jsx(C9,{initial:{width:`${s}%`},animate:{width:`${s}%`},transition:{type:"spring",bounce:0}})})]})})}const E9=_(nP)`
630
+ `;function D9({label:e,showValue:t=!0,value:n=0,minValue:r=0,maxValue:o=100,formatOptions:i={style:"percent"},...a}){return S.jsx(v9,{value:n,minValue:r,maxValue:o,formatOptions:i,...a,children:({percentage:s,valueText:l})=>S.jsxs(S.Fragment,{children:[(e||t)&&S.jsxs(y9,{children:[e&&S.jsx($9,{children:e}),t&&S.jsx(x9,{children:l})]}),S.jsx(w9,{children:S.jsx(C9,{initial:{width:`${s}%`},animate:{width:`${s}%`},transition:{type:"spring",bounce:0}})})]})})}const E9=_.styled(nP)`
631
631
  position: absolute;
632
632
  inset: 50%;
633
633
  `;function P9(e){return S.jsx(E9,{...e})}const bp=_.keyframes`
@@ -759,11 +759,11 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
759
759
  }
760
760
  }
761
761
  }
762
- `;function s1({direction:e,...t}){return S.jsxs(S.Fragment,{children:[S.jsx(I9,{}),S.jsx(El,{"data-direction":e,...t})]})}s1.defaultProps={direction:"right"};const L9=_(lP)`
762
+ `;function s1({direction:e,...t}){return S.jsxs(S.Fragment,{children:[S.jsx(I9,{}),S.jsx(El,{"data-direction":e,...t})]})}s1.defaultProps={direction:"right"};const L9=_.styled(lP)`
763
763
  display: flex;
764
764
  flex-direction: column;
765
765
  width: 100%;
766
- `,V9=_(Qu)`
766
+ `,V9=_.styled(Qu)`
767
767
  display: flex;
768
768
  border-radius: 0.375rem;
769
769
 
@@ -851,11 +851,11 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
851
851
  cursor: default;
852
852
  }
853
853
  }
854
- `,O9=S.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),N9=S.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M12 5V19M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});function l1({label:e,description:t,errorMessage:n,isInvalid:r,isReadOnly:o,slots:i,...a}){return S.jsxs(L9,{isInvalid:r,...a,children:[S.jsx(r1,{children:e}),S.jsxs(V9,{isInvalid:r,"aria-readonly":o,children:[S.jsx(Dt,{variant:"outline",slot:"decrement",children:i==null?void 0:i.decrementIcon}),S.jsx(xn,{readOnly:o}),S.jsx(Dt,{variant:"outline",slot:"increment",children:i==null?void 0:i.incrementIcon})]}),t&&S.jsx(i1,{slot:"description",children:t}),S.jsx(o1,{children:n})]})}l1.defaultProps={label:void 0,description:void 0,errorMessage:void 0,slots:{decrementIcon:O9,incrementIcon:N9}};const K9=_(Qu)`
854
+ `,O9=S.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),N9=S.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("path",{d:"M12 5V19M5 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});function l1({label:e,description:t,errorMessage:n,isInvalid:r,isReadOnly:o,slots:i,...a}){return S.jsxs(L9,{isInvalid:r,...a,children:[S.jsx(r1,{children:e}),S.jsxs(V9,{isInvalid:r,"aria-readonly":o,children:[S.jsx(Dt,{variant:"outline",slot:"decrement",children:i==null?void 0:i.decrementIcon}),S.jsx(xn,{readOnly:o}),S.jsx(Dt,{variant:"outline",slot:"increment",children:i==null?void 0:i.incrementIcon})]}),t&&S.jsx(i1,{slot:"description",children:t}),S.jsx(o1,{children:n})]})}l1.defaultProps={label:void 0,description:void 0,errorMessage:void 0,slots:{decrementIcon:O9,incrementIcon:N9}};const K9=_.styled(Qu)`
855
855
  display: flex;
856
856
  flex-wrap: wrap;
857
857
  gap: 0.5rem;
858
- `,j9=_(So)`
858
+ `,j9=_.styled(So)`
859
859
  border: 1px solid
860
860
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
861
861
  font-size: 0.9rem;
@@ -909,70 +909,70 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
909
909
  ::placeholder {
910
910
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
911
911
  }
912
- `,_9=_(qt)`
912
+ `,_9=_.styled(qt)`
913
913
  display: flex;
914
914
  flex: 1 0 100%;
915
915
  font-size: 0.8rem;
916
916
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
917
- `,z9=_(Ea)`
917
+ `,z9=_.styled(Ea)`
918
918
  display: flex;
919
919
  flex-direction: column;
920
920
  width: 100%;
921
921
  flex: 1;
922
922
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
923
- `,U9=_(Ea)`
923
+ `,U9=_.styled(Ea)`
924
924
  display: flex;
925
925
  flex-direction: row;
926
926
  flex-wrap: wrap;
927
927
  flex: 1 0 100%;
928
928
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
929
- `,H9=_(Po)`
929
+ `,H9=_.styled(Po)`
930
930
  display: flex;
931
931
  flex: 1 0 100%;
932
932
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
933
933
  font-size: 0.8rem;
934
- `,G9=_(wr)`
934
+ `,G9=_.styled(wr)`
935
935
  display: flex;
936
936
  flex: 1 0 100%;
937
937
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
938
938
  font-size: 0.8rem;
939
- `;function u1({description:e,errorMessage:t,isDisabled:n=!1,isInvalid:r=!1,isMasked:o=!1,isRequired:i=!0,label:a,length:s=6,name:l,onChange:d,value:c="",type:f="numeric",validationBehavior:p="native",...h}){u.useState(-1);const[b,g]=u.useState(c),[y,$]=u.useState(Array(s).fill("")),C=u.useRef([]);u.useEffect(()=>{C.current=C.current.slice(0,s)},[s]),u.useEffect(()=>{const k=y.join("");g(k),d&&d(k)},[d,y]);const w=k=>{var F,A;const N=k.target.value,v=Number(k.target.getAttribute("data-pin-input-index"));N!==""&&v<y.length-1&&((A=(F=C.current)==null?void 0:F[v+1])==null||A.focus());const L=y.map((B,R)=>R===v?N:B);$(L)},E=k=>{var F,A,B,R;const N=Number(k.currentTarget.getAttribute("data-pin-input-index"));if(k.ctrlKey||k.metaKey)return;const v=["Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Control","Alt","Meta","Shift","Tab","Enter","Escape"],L={alpha:/^[a-z]$/i,alphanumeric:/^[a-z0-9]$/i,numeric:/^[0-9]$/i};if(!k.key.match(L[f])&&!v.includes(k.key)&&k.preventDefault(),y[N]===""&&N>0&&k.key==="Backspace"){const I=y.map((K,V)=>V===N-1?"":K);$(I),(A=(F=C.current)==null?void 0:F[N-1])==null||A.focus(),k.preventDefault()}if(y[N]===""&&N<y.length-1&&k.key==="Delete"){const I=y.map((K,V)=>V===N+1?"":K);$(I),(R=(B=C.current)==null?void 0:B[N+1])==null||R.focus(),k.preventDefault()}},P=k=>{var R,I;const N=Number(k.currentTarget.getAttribute("data-pin-input-index"));k.preventDefault();const v=(R=k.clipboardData)==null?void 0:R.getData("text");if(!v)return;const L=v.split("").filter(K=>{switch(f){case"alpha":return/^[a-zA-Z]$/.test(K);case"alphanumeric":return/^[a-z0-9]$/i.test(K);case"numeric":default:return/^[0-9]$/.test(K)}});if(L.length===0)return;const F=[...y];let A=N;for(let K=0;K<L.length&&N+K<s;K++)F[N+K]=L[K],A=N+K;$(F);const B=A+1<s?A+1:s-1;(I=C.current[B])==null||I.focus()};return S.jsxs(K9,{...h,"aria-label":a,children:[S.jsx(_9,{children:a}),y.map((k,N)=>S.jsx(z9,{"aria-label":`Pin Input Digit ${N+1}`,isDisabled:n,isInvalid:r,isRequired:i,validationBehavior:p,children:S.jsx(j9,{onChange:w,onKeyDown:E,onPaste:P,type:o?"password":"text",ref:v=>v?C.current[N]=v:null,value:k,maxLength:1,name:l&&`${l}-${N}`,"data-pin-input-index":N})},`pin-input-${N}`)),S.jsxs(U9,{"aria-label":"Pin Input",isDisabled:n,isInvalid:r,isRequired:i,validationBehavior:p,children:[l&&S.jsx(So,{type:"hidden",name:l,value:b}),e&&S.jsx(G9,{slot:"description",children:e}),S.jsx(H9,{children:t})]})]})}u1.defaultProps={description:void 0,errorMessage:void 0,isMasked:!1,isRequired:!0,label:void 0,length:6,name:"",onChange:()=>{},value:"",type:"numeric",validationBehavior:"native"};const W9=_(Q4)`
939
+ `;function u1({description:e,errorMessage:t,isDisabled:n=!1,isInvalid:r=!1,isMasked:o=!1,isRequired:i=!0,label:a,length:s=6,name:l,onChange:d,value:c="",type:f="numeric",validationBehavior:p="native",...h}){u.useState(-1);const[b,g]=u.useState(c),[y,$]=u.useState(Array(s).fill("")),C=u.useRef([]);u.useEffect(()=>{C.current=C.current.slice(0,s)},[s]),u.useEffect(()=>{const k=y.join("");g(k),d&&d(k)},[d,y]);const w=k=>{var F,A;const N=k.target.value,v=Number(k.target.getAttribute("data-pin-input-index"));N!==""&&v<y.length-1&&((A=(F=C.current)==null?void 0:F[v+1])==null||A.focus());const L=y.map((B,R)=>R===v?N:B);$(L)},E=k=>{var F,A,B,R;const N=Number(k.currentTarget.getAttribute("data-pin-input-index"));if(k.ctrlKey||k.metaKey)return;const v=["Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Control","Alt","Meta","Shift","Tab","Enter","Escape"],L={alpha:/^[a-z]$/i,alphanumeric:/^[a-z0-9]$/i,numeric:/^[0-9]$/i};if(!k.key.match(L[f])&&!v.includes(k.key)&&k.preventDefault(),y[N]===""&&N>0&&k.key==="Backspace"){const I=y.map((K,V)=>V===N-1?"":K);$(I),(A=(F=C.current)==null?void 0:F[N-1])==null||A.focus(),k.preventDefault()}if(y[N]===""&&N<y.length-1&&k.key==="Delete"){const I=y.map((K,V)=>V===N+1?"":K);$(I),(R=(B=C.current)==null?void 0:B[N+1])==null||R.focus(),k.preventDefault()}},P=k=>{var R,I;const N=Number(k.currentTarget.getAttribute("data-pin-input-index"));k.preventDefault();const v=(R=k.clipboardData)==null?void 0:R.getData("text");if(!v)return;const L=v.split("").filter(K=>{switch(f){case"alpha":return/^[a-zA-Z]$/.test(K);case"alphanumeric":return/^[a-z0-9]$/i.test(K);case"numeric":default:return/^[0-9]$/.test(K)}});if(L.length===0)return;const F=[...y];let A=N;for(let K=0;K<L.length&&N+K<s;K++)F[N+K]=L[K],A=N+K;$(F);const B=A+1<s?A+1:s-1;(I=C.current[B])==null||I.focus()};return S.jsxs(K9,{...h,"aria-label":a,children:[S.jsx(_9,{children:a}),y.map((k,N)=>S.jsx(z9,{"aria-label":`Pin Input Digit ${N+1}`,isDisabled:n,isInvalid:r,isRequired:i,validationBehavior:p,children:S.jsx(j9,{onChange:w,onKeyDown:E,onPaste:P,type:o?"password":"text",ref:v=>v?C.current[N]=v:null,value:k,maxLength:1,name:l&&`${l}-${N}`,"data-pin-input-index":N})},`pin-input-${N}`)),S.jsxs(U9,{"aria-label":"Pin Input",isDisabled:n,isInvalid:r,isRequired:i,validationBehavior:p,children:[l&&S.jsx(So,{type:"hidden",name:l,value:b}),e&&S.jsx(G9,{slot:"description",children:e}),S.jsx(H9,{children:t})]})]})}u1.defaultProps={description:void 0,errorMessage:void 0,isMasked:!1,isRequired:!0,label:void 0,length:6,name:"",onChange:()=>{},value:"",type:"numeric",validationBehavior:"native"};const W9=_.styled(Q4)`
940
940
  display: flex;
941
- `,Y9=_.div`
941
+ `,Y9=_.styled.div`
942
942
  display: flex;
943
943
  flex-direction: column;
944
944
  align-items: center;
945
- `,q9=_(qt)`
945
+ `,q9=_.styled(qt)`
946
946
  font-size: 0.875rem;
947
- `,Z9=_.circle`
947
+ `,Z9=_.styled.circle`
948
948
  stroke: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
949
- `,X9=_.circle`
949
+ `,X9=_.styled.circle`
950
950
  stroke: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[800])??x.colors.slate[800]}};
951
951
  transition: stroke-dashoffset 600ms ease-in-out;
952
- `,J9=_.text`
952
+ `,J9=_.styled.text`
953
953
  font-size: 0.875rem;
954
954
  fill: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[800])??x.colors.slate[800]}};
955
- `;function Q9({label:e,value:t=0,showValue:n=!0,size:r=60,strokeWidth:o=6,...i}){const a=r/2,s=a-o,l=2*Math.PI*s;return S.jsx(W9,{"aria-label":"Loading...",...i,value:t,children:({percentage:d=0})=>S.jsxs(Y9,{children:[S.jsx(q9,{children:e}),S.jsxs("svg",{width:r,height:r,fill:"none",children:[S.jsx(Z9,{cx:a,cy:a,r:s,strokeWidth:o}),S.jsx(X9,{cx:a,cy:a,r:s,strokeWidth:o,strokeDasharray:`${l} ${l}`,strokeDashoffset:(100-d)/100*l,strokeLinecap:"round",transform:`rotate(-90 ${a} ${a})`}),n&&S.jsxs(J9,{x:"50%",y:"50%",alignmentBaseline:"middle",textAnchor:"middle",children:[d,"%"]})]})]})})}const eS=_(Q4)`
955
+ `;function Q9({label:e,value:t=0,showValue:n=!0,size:r=60,strokeWidth:o=6,...i}){const a=r/2,s=a-o,l=2*Math.PI*s;return S.jsx(W9,{"aria-label":"Loading...",...i,value:t,children:({percentage:d=0})=>S.jsxs(Y9,{children:[S.jsx(q9,{children:e}),S.jsxs("svg",{width:r,height:r,fill:"none",children:[S.jsx(Z9,{cx:a,cy:a,r:s,strokeWidth:o}),S.jsx(X9,{cx:a,cy:a,r:s,strokeWidth:o,strokeDasharray:`${l} ${l}`,strokeDashoffset:(100-d)/100*l,strokeLinecap:"round",transform:`rotate(-90 ${a} ${a})`}),n&&S.jsxs(J9,{x:"50%",y:"50%",alignmentBaseline:"middle",textAnchor:"middle",children:[d,"%"]})]})]})})}const eS=_.styled(Q4)`
956
956
  width: ${({width:e})=>e||"100%"};
957
957
  overflow: hidden;
958
- `,tS=_.div`
958
+ `,tS=_.styled.div`
959
959
  display: flex;
960
960
  align-items: center;
961
961
  justify-content: space-between;
962
962
  gap: 0.5rem;
963
963
  margin-bottom: 0.3rem;
964
- `,nS=_(qt)`
964
+ `,nS=_.styled(qt)`
965
965
  font-size: 0.875rem;
966
- `,rS=_.span`
966
+ `,rS=_.styled.span`
967
967
  font-size: 0.875rem;
968
- `,oS=_.div`
968
+ `,oS=_.styled.div`
969
969
  forced-color-adjust: none;
970
970
  height: 0.625rem;
971
971
  border-radius: 0.3rem;
972
972
  overflow: hidden;
973
973
  will-change: transform;
974
974
  background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
975
- `,iS=_.div`
975
+ `,iS=_.styled.div`
976
976
  width: ${({width:e,isIndeterminate:t})=>t?"40%":e};
977
977
  transition: ${({isIndeterminate:e})=>e?"none":"width 600ms ease-in-out"};
978
978
  height: 100%;
@@ -989,15 +989,15 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
989
989
  transform: translateX(250px);
990
990
  }
991
991
  }
992
- `;function aS({label:e,isIndeterminate:t,showValue:n=!0,width:r,...o}){return S.jsx(eS,{...o,width:r,children:({percentage:i,valueText:a})=>S.jsxs(S.Fragment,{children:[S.jsxs(tS,{children:[S.jsx(nS,{children:e}),n&&S.jsx(rS,{children:a})]}),S.jsx(oS,{children:S.jsx(iS,{isIndeterminate:t,width:typeof i=="number"?`${i}%`:""})})]})})}const sS=_(V8)`
992
+ `;function aS({label:e,isIndeterminate:t,showValue:n=!0,width:r,...o}){return S.jsx(eS,{...o,width:r,children:({percentage:i,valueText:a})=>S.jsxs(S.Fragment,{children:[S.jsxs(tS,{children:[S.jsx(nS,{children:e}),n&&S.jsx(rS,{children:a})]}),S.jsx(oS,{children:S.jsx(iS,{isIndeterminate:t,width:typeof i=="number"?`${i}%`:""})})]})})}const sS=_.styled(V8)`
993
993
  display: flex;
994
994
  flex-direction: column;
995
995
  width: 100%;
996
- `,lS=_.div`
996
+ `,lS=_.styled.div`
997
997
  display: flex;
998
998
  position: relative;
999
999
  width: 100%;
1000
- `,uS=yr(_(j4)`
1000
+ `,uS=_.styled(yr(j4))`
1001
1001
  padding: 0.4rem 0;
1002
1002
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
1003
1003
  border-radius: 0.375rem;
@@ -1005,7 +1005,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1005
1005
  background: #fff;
1006
1006
  border: 1px solid
1007
1007
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
1008
- `),cS=_(So).withConfig({shouldForwardProp:e=>!["isLoading"].includes(e)})`
1008
+ `,cS=_.styled(So).withConfig({shouldForwardProp:e=>!["isLoading"].includes(e)})`
1009
1009
  border: 1px solid
1010
1010
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
1011
1011
  font-size: 0.9rem;
@@ -1063,43 +1063,43 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1063
1063
  ::placeholder {
1064
1064
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[400])??x.colors.slate[400]}};
1065
1065
  }
1066
- `,dS=_.svg.withConfig({shouldForwardProp:e=>!["isDisabled","isInvalid","isOpen"].includes(e)})`
1066
+ `,dS=_.styled.svg.withConfig({shouldForwardProp:e=>!["isDisabled","isInvalid","isOpen"].includes(e)})`
1067
1067
  transition: all ease 200ms;
1068
1068
  transform: rotate(${({isOpen:e})=>e?"180deg":"0"});
1069
1069
 
1070
1070
  path {
1071
1071
  stroke: ${({isDisabled:e,isInvalid:t,theme:n})=>{var r,o,i,a,s,l;return t?((o=(r=n==null?void 0:n.colors)==null?void 0:r.red)==null?void 0:o[500])??x.colors.red[500]:e?((a=(i=n==null?void 0:n.colors)==null?void 0:i.slate)==null?void 0:a[400])??x.colors.slate[400]:((l=(s=n==null?void 0:n.colors)==null?void 0:s.slate)==null?void 0:l[900])??x.colors.slate[900]}};
1072
1072
  }
1073
- `,fS=_.div`
1073
+ `,fS=_.styled.div`
1074
1074
  position: absolute;
1075
1075
  display: block;
1076
1076
  top: 0.5rem;
1077
1077
  right: 0.5rem;
1078
- `,pS=_(I4)`
1078
+ `,pS=_.styled(I4)`
1079
1079
  position: absolute;
1080
1080
  display: block;
1081
1081
  top: 0.5rem;
1082
1082
  right: 0;
1083
1083
  border: none;
1084
1084
  background: none;
1085
- `,hS=_(qt)`
1085
+ `,hS=_.styled(qt)`
1086
1086
  display: flex;
1087
1087
  font-size: 0.8rem;
1088
1088
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1089
- `;_(Ea)`
1089
+ `;_.styled(Ea)`
1090
1090
  display: flex;
1091
1091
  flex-direction: column;
1092
1092
  width: 100%;
1093
1093
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
1094
- `;const bS=_(Po)`
1094
+ `;const bS=_.styled(Po)`
1095
1095
  display: flex;
1096
1096
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
1097
1097
  font-size: 0.8rem;
1098
- `,mS=_(wr)`
1098
+ `,mS=_.styled(wr)`
1099
1099
  display: flex;
1100
1100
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1101
1101
  font-size: 0.8rem;
1102
- `,gS=_(D8)`
1102
+ `,gS=_.styled(D8)`
1103
1103
  display: flex;
1104
1104
  flex: 1 1 auto;
1105
1105
  align-items: center;
@@ -1209,7 +1209,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1209
1209
  ${({i:e,speedMultiplier:t})=>e*.12/t}s infinite
1210
1210
  cubic-bezier(0.2, 0.68, 0.18, 1.08);
1211
1211
  animation-fill-mode: both;
1212
- `;function c1(){return S.jsxs("span",{children:[S.jsx(Ss,{speedMultiplier:1,i:1}),S.jsx(Ss,{speedMultiplier:1,i:2}),S.jsx(Ss,{speedMultiplier:1,i:3})]})}function d1({label:e,description:t,errorMessage:n,children:r,placeholder:o,key:i,isLoading:a,...s}){const[l,d]=u.useState("unmounted"),c=u.useRef(null),[f,p]=u.useState(!1);return S.jsxs(sS,{ref:c,onOpenChange:()=>{d(l==="visible"?"hidden":"visible"),p(!f)},isDisabled:s.isDisabled||a,...s,children:[S.jsx(hS,{children:e}),S.jsxs(lS,{children:[S.jsx(cS,{placeholder:o,isLoading:a??!1}),a?S.jsx(fS,{children:S.jsx(c1,{})}):S.jsx(pS,{children:S.jsx(dS,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",isOpen:l==="visible",isDisabled:!!s.isDisabled,isInvalid:!!s.isInvalid,children:S.jsx("path",{d:"M6 9L12 15L18 9",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),t&&S.jsx(mS,{slot:"description",children:t}),S.jsx(bS,{children:n}),S.jsx(uS,{isOpen:f,style:{width:c.current?c.current.getBoundingClientRect().width:"14rem"},isExiting:l==="hidden",onAnimationComplete:h=>{d(b=>h==="hidden"&&b==="hidden"?"unmounted":b)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:l,children:S.jsx($8,{style:{maxHeight:"20rem",overflowY:"scroll"},children:r})},i)]})}d1.defaultProps={label:void 0,description:void 0,errorMessage:void 0,placeholder:"",key:void 0,isLoading:!1};const PS=_(pP)`
1212
+ `;function c1(){return S.jsxs("span",{children:[S.jsx(Ss,{speedMultiplier:1,i:1}),S.jsx(Ss,{speedMultiplier:1,i:2}),S.jsx(Ss,{speedMultiplier:1,i:3})]})}function d1({label:e,description:t,errorMessage:n,children:r,placeholder:o,key:i,isLoading:a,...s}){const[l,d]=u.useState("unmounted"),c=u.useRef(null),[f,p]=u.useState(!1);return S.jsxs(sS,{ref:c,onOpenChange:()=>{d(l==="visible"?"hidden":"visible"),p(!f)},isDisabled:s.isDisabled||a,...s,children:[S.jsx(hS,{children:e}),S.jsxs(lS,{children:[S.jsx(cS,{placeholder:o,isLoading:a??!1}),a?S.jsx(fS,{children:S.jsx(c1,{})}):S.jsx(pS,{children:S.jsx(dS,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",isOpen:l==="visible",isDisabled:!!s.isDisabled,isInvalid:!!s.isInvalid,children:S.jsx("path",{d:"M6 9L12 15L18 9",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),t&&S.jsx(mS,{slot:"description",children:t}),S.jsx(bS,{children:n}),S.jsx(uS,{isOpen:f,style:{width:c.current?c.current.getBoundingClientRect().width:"14rem"},isExiting:l==="hidden",onAnimationComplete:h=>{d(b=>h==="hidden"&&b==="hidden"?"unmounted":b)},variants:{hidden:{opacity:0,y:-10},visible:{opacity:1,y:0}},initial:"hidden",animate:l,children:S.jsx($8,{style:{maxHeight:"20rem",overflowY:"scroll"},children:r})},i)]})}d1.defaultProps={label:void 0,description:void 0,errorMessage:void 0,placeholder:"",key:void 0,isLoading:!1};const PS=_.styled(pP)`
1213
1213
  --label-color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1214
1214
  --track-background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
1215
1215
  --thumb-background: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[300])??x.colors.slate[300]}};
@@ -1235,19 +1235,19 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1235
1235
  height: 100%;
1236
1236
  width: 2rem;
1237
1237
  }
1238
- `,SS=_(qt)`
1238
+ `,SS=_.styled(qt)`
1239
1239
  display: flex;
1240
1240
  flex: 1 1 0;
1241
1241
  font-size: 0.8rem;
1242
1242
  color: var(--label-color);
1243
- `,TS=_(bP)`
1243
+ `,TS=_.styled(bP)`
1244
1244
  display: flex;
1245
1245
  flex: 0 1 0;
1246
1246
  margin-left: auto;
1247
1247
  justify-content: flex-end;
1248
1248
  font-size: 0.8rem;
1249
1249
  color: var(--label-color);
1250
- `,Pl=_(yP)`
1250
+ `,Pl=_.styled(yP)`
1251
1251
  background-color: var(--thumb-background);
1252
1252
  border: 2px solid var(--thumb-border-color);
1253
1253
  forced-color-adjust: none;
@@ -1265,7 +1265,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1265
1265
  &[data-dragging] {
1266
1266
  background-color: var(--thumb-background-dragging);
1267
1267
  }
1268
- `,AS=_(gP)`
1268
+ `,AS=_.styled(gP)`
1269
1269
  width: 100%;
1270
1270
  transition: all ease 0.25s;
1271
1271
 
@@ -1308,7 +1308,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1308
1308
  left: 50%;
1309
1309
  }
1310
1310
  }
1311
- `;function f1({label:e,showOutput:t=!0,thumbLabels:n,...r}){return S.jsxs(PS,{...r,children:[S.jsx(SS,{children:e}),t&&S.jsx(TS,{children:({state:o})=>o.values.map((i,a)=>o.getThumbValueLabel(a)).join(" – ")}),S.jsx(AS,{children:({state:o})=>o.values.map((i,a)=>S.jsx(Pl,{index:a,"aria-label":n==null?void 0:n[a]},a))})]})}f1.defaultProps={label:void 0,showOutput:!0,thumbLabels:void 0};const Bt=_.div`
1311
+ `;function f1({label:e,showOutput:t=!0,thumbLabels:n,...r}){return S.jsxs(PS,{...r,children:[S.jsx(SS,{children:e}),t&&S.jsx(TS,{children:({state:o})=>o.values.map((i,a)=>o.getThumbValueLabel(a)).join(" – ")}),S.jsx(AS,{children:({state:o})=>o.values.map((i,a)=>S.jsx(Pl,{index:a,"aria-label":n==null?void 0:n[a]},a))})]})}f1.defaultProps={label:void 0,showOutput:!0,thumbLabels:void 0};const Bt=_.styled.div`
1312
1312
  width: 4rem;
1313
1313
  height: 2.5rem;
1314
1314
  border: 1px solid
@@ -1327,7 +1327,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1327
1327
  border-radius: 1.25rem;
1328
1328
  transition: all cubic-bezier(0.4, 0, 0.2, 1) 200ms;
1329
1329
  }
1330
- `,MS=_(wP)`
1330
+ `,MS=_.styled(wP)`
1331
1331
  display: flex;
1332
1332
  align-items: center;
1333
1333
  gap: 0.5rem;
@@ -1519,9 +1519,9 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1519
1519
  display: flex;
1520
1520
  flex-grow: 1;
1521
1521
  padding: 1rem 0;
1522
- `,Pa=u.createContext("horizontal");function LS({children:e,...t}){return S.jsx(Pa.Provider,{value:t.orientation??"horizontal",children:S.jsx(RS,{...t,children:e})})}function VS({variant:e="base",...t}){const n=u.useContext(Pa);return S.jsx(p1,{orientation:n,variant:e,...t,children:({isSelected:r,isFocusVisible:o})=>S.jsxs(S.Fragment,{children:[t.children,(o||r)&&S.jsx(BS,{orientation:n,layoutId:e,variant:e,transition:{type:"spring",bounce:.2,duration:.75}})]})})}function OS({items:e,children:t,variant:n="base",...r}){const o=u.useContext(Pa);return S.jsx(FS,{items:e,variant:n,...r,children:t||(i=>S.jsx(p1,{orientation:o,children:i.title}))})}function NS({children:e,...t}){return S.jsx(IS,{...t,children:e})}const KS=_(_8)`
1522
+ `,Pa=u.createContext("horizontal");function LS({children:e,...t}){return S.jsx(Pa.Provider,{value:t.orientation??"horizontal",children:S.jsx(RS,{...t,children:e})})}function VS({variant:e="base",...t}){const n=u.useContext(Pa);return S.jsx(p1,{orientation:n,variant:e,...t,children:({isSelected:r,isFocusVisible:o})=>S.jsxs(S.Fragment,{children:[t.children,(o||r)&&S.jsx(BS,{orientation:n,layoutId:e,variant:e,transition:{type:"spring",bounce:.2,duration:.75}})]})})}function OS({items:e,children:t,variant:n="base",...r}){const o=u.useContext(Pa);return S.jsx(FS,{items:e,variant:n,...r,children:t||(i=>S.jsx(p1,{orientation:o,children:i.title}))})}function NS({children:e,...t}){return S.jsx(IS,{...t,children:e})}const KS=_.styled(_8)`
1523
1523
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[900])??x.colors.slate[900]}};
1524
- `,jS=_(H4)`
1524
+ `,jS=_.styled(H4)`
1525
1525
  display: flex;
1526
1526
  align-items: center;
1527
1527
  border: 1px solid
@@ -1572,7 +1572,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1572
1572
  ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[200])??x.colors.red[200]}};
1573
1573
  }
1574
1574
  }
1575
- `,_S=_(G4)`
1575
+ `,_S=_.styled(G4)`
1576
1576
  padding: 0.25rem;
1577
1577
  font-variant-numeric: tabular-nums;
1578
1578
  text-align: end;
@@ -1622,19 +1622,19 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1622
1622
  color: ${({theme:e})=>{var t;return((t=e==null?void 0:e.colors)==null?void 0:t.white)??x.colors.white}};
1623
1623
  }
1624
1624
  }
1625
- `,zS=_(qt)`
1625
+ `,zS=_.styled(qt)`
1626
1626
  display: flex;
1627
1627
  font-size: 0.8rem;
1628
1628
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1629
- `,US=_(Po)`
1629
+ `,US=_.styled(Po)`
1630
1630
  display: flex;
1631
1631
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.red)==null?void 0:n[500])??x.colors.red[500]}};
1632
1632
  font-size: 0.8rem;
1633
- `,HS=_(wr)`
1633
+ `,HS=_.styled(wr)`
1634
1634
  display: flex;
1635
1635
  color: ${({theme:e})=>{var t,n;return((n=(t=e==null?void 0:e.colors)==null?void 0:t.slate)==null?void 0:n[500])??x.colors.slate[500]}};
1636
1636
  font-size: 0.8rem;
1637
- `;function h1({label:e,description:t,errorMessage:n,...r}){return S.jsxs(KS,{...r,children:[S.jsx(zS,{children:e}),S.jsx(jS,{children:o=>S.jsx(_S,{segment:o})}),S.jsx(HS,{slot:"description",children:t}),S.jsx(US,{children:n})]})}h1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const GS=_(NP)`
1637
+ `;function h1({label:e,description:t,errorMessage:n,...r}){return S.jsxs(KS,{...r,children:[S.jsx(zS,{children:e}),S.jsx(jS,{children:o=>S.jsx(_S,{segment:o})}),S.jsx(HS,{slot:"description",children:t}),S.jsx(US,{children:n})]})}h1.defaultProps={label:void 0,description:void 0,errorMessage:void 0};const GS=_.styled(NP)`
1638
1638
  display: flex;
1639
1639
  align-items: center;
1640
1640
  font-size: 0.9rem;
@@ -1668,7 +1668,7 @@ Check the top-level render call using <`+j+">.")}return M}function kc(m,M){if(!(
1668
1668
  border-color: ${({variant:e,theme:t})=>{var n,r,o,i;switch(e){case"ghost":return"transparent";case"outline":return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[200])??x.colors.slate[200];case"solid":default:return((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[100])??x.colors.slate[100]}}};
1669
1669
  color: ${({variant:e,theme:t})=>{var n,r,o,i;switch(e){case"ghost":case"outline":return((r=(n=t==null?void 0:t.colors)==null?void 0:n.slate)==null?void 0:r[500])??x.colors.slate[500];case"solid":default:return((i=(o=t==null?void 0:t.colors)==null?void 0:o.slate)==null?void 0:i[400])??x.colors.slate[400]}}};
1670
1670
  }
1671
- `;function WS({children:e,size:t="md",variant:n="solid",...r}){return S.jsx(GS,{...r,size:t,variant:n,children:e})}var YS=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return(t==null?void 0:t[e])||{}},qS=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],gp=(e,t)=>{if(t.includes("-")){const[,n]=t.split("-");return`${e}-${n}`}return e};function ZS(e){const[t,n]=Rh(e,qc.variantKeys),{ref:r,as:o,isOpen:i,content:a,children:s,defaultOpen:l,onOpenChange:d,isDisabled:c,trigger:f,shouldFlip:p=!0,containerPadding:h=12,placement:b="top",delay:g=0,closeDelay:y=500,showArrow:$=!1,offset:C=7,crossOffset:w=0,isDismissable:E,shouldCloseOnBlur:P=!0,portalContainer:k,isKeyboardDismissDisabled:N=!1,updatePositionDeps:v=[],shouldCloseOnInteractOutside:L,className:F,onClose:A,motionProps:B,classNames:R,...I}=t,K=o||"div",V=kE({delay:g,closeDelay:y,isDisabled:c,defaultOpen:l,isOpen:i,onOpenChange:Be=>{d==null||d(Be),Be||A==null||A()}}),T=u.useRef(null),G=u.useRef(null),Y=u.useId(),H=V.isOpen&&!c;u.useImperativeHandle(r,()=>k$(G));const{triggerProps:D,tooltipProps:O}=oE({isDisabled:c,trigger:f},V,T),{tooltipProps:W}=rE({isOpen:H,...X(t,O)},V),{overlayProps:J,placement:Q,updatePosition:re}=Ph({isOpen:H,targetRef:T,placement:qS(b),overlayRef:G,offset:$?C+3:C,crossOffset:w,shouldFlip:p,containerPadding:h});c0(()=>{v.length&&re()},v);const{overlayProps:z}=ou({isOpen:H,onClose:V.close,isDismissable:E,shouldCloseOnBlur:P,isKeyboardDismissDisabled:N,shouldCloseOnInteractOutside:L},G),q=u.useMemo(()=>{var Be,Ue,xt;return qc({...n,radius:(Be=e==null?void 0:e.radius)!=null?Be:"md",size:(Ue=e==null?void 0:e.size)!=null?Ue:"md",shadow:(xt=e==null?void 0:e.shadow)!=null?xt:"sm"})},[Sp(n),e==null?void 0:e.radius,e==null?void 0:e.size,e==null?void 0:e.shadow]),te=u.useCallback((Be={},Ue=null)=>({...X(D,Be),ref:V$(Ue,T),"aria-describedby":H?Y:void 0}),[D,H,Y,V]),ae=u.useCallback(()=>({ref:G,"data-slot":"base","data-open":Et(H),"data-arrow":Et($),"data-disabled":Et(c),"data-placement":gp(Q,b),...X(W,z,I),style:X(J.style,I.style,t.style),className:q.base({class:R==null?void 0:R.base}),id:Y}),[q,H,$,c,Q,b,W,z,I,J,t,Y]),se=u.useCallback(()=>({"data-slot":"content","data-open":Et(H),"data-arrow":Et($),"data-disabled":Et(c),"data-placement":gp(Q,b),className:q.content({class:sr(R==null?void 0:R.content,F)})}),[q,H,$,c,Q,b,R]);return{Component:K,content:a,children:s,isOpen:H,triggerRef:T,showArrow:$,portalContainer:k,placement:b,disableAnimation:e==null?void 0:e.disableAnimation,isDisabled:c,motionProps:B,getTooltipContentProps:se,getTriggerProps:te,getTooltipProps:ae}}var Wn={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]},XS={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.3}},exit:{transform:"scale(0.6)",opacity:0,transition:{type:"easeOut",duration:.2}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:Wn.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:Wn.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:Wn.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:Wn.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:Wn.ease}},exit:{opacity:0,transition:{duration:.3,ease:Wn.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}},b1=aa((e,t)=>{const{Component:n,children:r,content:o,isOpen:i,portalContainer:a,placement:s,disableAnimation:l,motionProps:d,getTriggerProps:c,getTooltipProps:f,getTooltipContentProps:p}=ZS({...e,ref:t});let h;try{if(u.Children.count(r)!==1)throw new Error;if(!u.isValidElement(r))h=S.jsx("p",{...c(),children:r});else{const E=r;h=u.cloneElement(E,c(E.props,E.ref))}}catch{h=S.jsx("span",{}),F$("Tooltip must have only one child node. Please, check your code.")}const{ref:b,id:g,style:y,...$}=f(),C=S.jsx("div",{ref:b,id:g,style:y,children:S.jsx(YC,{features:qC,children:S.jsx(KC.div,{animate:"enter",exit:"exit",initial:"exit",variants:XS.scaleSpring,...X(d,$),style:{...YS(s)},children:S.jsx(n,{...p(),children:o})})})});return S.jsxs(S.Fragment,{children:[h,l&&i?S.jsx(Kd,{portalContainer:a,children:S.jsx("div",{ref:b,id:g,style:y,...$,children:S.jsx(n,{...p(),children:o})})}):S.jsx(sm,{children:i?S.jsx(Kd,{portalContainer:a,children:C}):null})]})});b1.displayName="NextUI.Tooltip";var JS=b1;const QS=_(JS).attrs({className:"tooltip"})`
1671
+ `;function WS({children:e,size:t="md",variant:n="solid",...r}){return S.jsx(GS,{...r,size:t,variant:n,children:e})}var YS=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return(t==null?void 0:t[e])||{}},qS=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],gp=(e,t)=>{if(t.includes("-")){const[,n]=t.split("-");return`${e}-${n}`}return e};function ZS(e){const[t,n]=Rh(e,qc.variantKeys),{ref:r,as:o,isOpen:i,content:a,children:s,defaultOpen:l,onOpenChange:d,isDisabled:c,trigger:f,shouldFlip:p=!0,containerPadding:h=12,placement:b="top",delay:g=0,closeDelay:y=500,showArrow:$=!1,offset:C=7,crossOffset:w=0,isDismissable:E,shouldCloseOnBlur:P=!0,portalContainer:k,isKeyboardDismissDisabled:N=!1,updatePositionDeps:v=[],shouldCloseOnInteractOutside:L,className:F,onClose:A,motionProps:B,classNames:R,...I}=t,K=o||"div",V=kE({delay:g,closeDelay:y,isDisabled:c,defaultOpen:l,isOpen:i,onOpenChange:Be=>{d==null||d(Be),Be||A==null||A()}}),T=u.useRef(null),G=u.useRef(null),Y=u.useId(),H=V.isOpen&&!c;u.useImperativeHandle(r,()=>k$(G));const{triggerProps:D,tooltipProps:O}=oE({isDisabled:c,trigger:f},V,T),{tooltipProps:W}=rE({isOpen:H,...X(t,O)},V),{overlayProps:J,placement:Q,updatePosition:re}=Ph({isOpen:H,targetRef:T,placement:qS(b),overlayRef:G,offset:$?C+3:C,crossOffset:w,shouldFlip:p,containerPadding:h});c0(()=>{v.length&&re()},v);const{overlayProps:z}=ou({isOpen:H,onClose:V.close,isDismissable:E,shouldCloseOnBlur:P,isKeyboardDismissDisabled:N,shouldCloseOnInteractOutside:L},G),q=u.useMemo(()=>{var Be,Ue,xt;return qc({...n,radius:(Be=e==null?void 0:e.radius)!=null?Be:"md",size:(Ue=e==null?void 0:e.size)!=null?Ue:"md",shadow:(xt=e==null?void 0:e.shadow)!=null?xt:"sm"})},[Sp(n),e==null?void 0:e.radius,e==null?void 0:e.size,e==null?void 0:e.shadow]),te=u.useCallback((Be={},Ue=null)=>({...X(D,Be),ref:V$(Ue,T),"aria-describedby":H?Y:void 0}),[D,H,Y,V]),ae=u.useCallback(()=>({ref:G,"data-slot":"base","data-open":Et(H),"data-arrow":Et($),"data-disabled":Et(c),"data-placement":gp(Q,b),...X(W,z,I),style:X(J.style,I.style,t.style),className:q.base({class:R==null?void 0:R.base}),id:Y}),[q,H,$,c,Q,b,W,z,I,J,t,Y]),se=u.useCallback(()=>({"data-slot":"content","data-open":Et(H),"data-arrow":Et($),"data-disabled":Et(c),"data-placement":gp(Q,b),className:q.content({class:sr(R==null?void 0:R.content,F)})}),[q,H,$,c,Q,b,R]);return{Component:K,content:a,children:s,isOpen:H,triggerRef:T,showArrow:$,portalContainer:k,placement:b,disableAnimation:e==null?void 0:e.disableAnimation,isDisabled:c,motionProps:B,getTooltipContentProps:se,getTriggerProps:te,getTooltipProps:ae}}var Wn={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]},XS={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.3}},exit:{transform:"scale(0.6)",opacity:0,transition:{type:"easeOut",duration:.2}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:Wn.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:Wn.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:Wn.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:Wn.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:Wn.ease}},exit:{opacity:0,transition:{duration:.3,ease:Wn.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}},b1=aa((e,t)=>{const{Component:n,children:r,content:o,isOpen:i,portalContainer:a,placement:s,disableAnimation:l,motionProps:d,getTriggerProps:c,getTooltipProps:f,getTooltipContentProps:p}=ZS({...e,ref:t});let h;try{if(u.Children.count(r)!==1)throw new Error;if(!u.isValidElement(r))h=S.jsx("p",{...c(),children:r});else{const E=r;h=u.cloneElement(E,c(E.props,E.ref))}}catch{h=S.jsx("span",{}),F$("Tooltip must have only one child node. Please, check your code.")}const{ref:b,id:g,style:y,...$}=f(),C=S.jsx("div",{ref:b,id:g,style:y,children:S.jsx(YC,{features:qC,children:S.jsx(KC.div,{animate:"enter",exit:"exit",initial:"exit",variants:XS.scaleSpring,...X(d,$),style:{...YS(s)},children:S.jsx(n,{...p(),children:o})})})});return S.jsxs(S.Fragment,{children:[h,l&&i?S.jsx(Kd,{portalContainer:a,children:S.jsx("div",{ref:b,id:g,style:y,...$,children:S.jsx(n,{...p(),children:o})})}):S.jsx(sm,{children:i?S.jsx(Kd,{portalContainer:a,children:C}):null})]})});b1.displayName="NextUI.Tooltip";var JS=b1;const QS=_.styled(JS).attrs({className:"tooltip"})`
1672
1672
  z-index: 0;
1673
1673
  position: relative;
1674
1674
  background-color: transparent;