create-idia-app 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/README.md +47 -53
  2. package/dist/index.js +6 -4
  3. package/dist/index.js.map +1 -1
  4. package/package.json +1 -1
  5. package/template/package.json +2 -11
  6. package/template/src/providers/AppProviders.tsx +33 -3
  7. package/template/.cursor/rules/idia-ui-ds-brain.mdc +0 -32
  8. package/template/.cursor/rules/idia-ui-forms.mdc +0 -34
  9. package/template/.cursor/rules/idia-ui-overlays.mdc +0 -23
  10. package/template/.idia/brain/AGENTS.md +0 -37
  11. package/template/.idia/brain/ai/agents/retrieval-cheatsheet.md +0 -209
  12. package/template/.idia/brain/ai/skills/components/button/SKILL.md +0 -32
  13. package/template/.idia/brain/ai/skills/ds-brain-action-hierarchy/SKILL.md +0 -46
  14. package/template/.idia/brain/ai/skills/ds-brain-forms/SKILL.md +0 -67
  15. package/template/.idia/brain/ai/skills/ds-brain-index/SKILL.md +0 -76
  16. package/template/.idia/brain/ai/skills/ds-brain-overlays/SKILL.md +0 -30
  17. package/template/.idia/brain/ai/skills/ds-brain-retrieval/SKILL.md +0 -54
  18. package/template/.idia/brain/registry/ai-index.generated.json +0 -833
  19. package/template/.idia/brain/registry/component-registry.generated.json +0 -2947
  20. package/template/.idia/manifest.json +0 -17
  21. package/template/.storybook/main.ts +0 -9
  22. package/template/.storybook/preview.tsx +0 -20
  23. package/template/AGENTS.md +0 -11
  24. package/template/src/stories/Button.stories.tsx +0 -31
  25. package/template/storybook-static/assets/Button.stories-CfapbH7U.js +0 -196
  26. package/template/storybook-static/assets/Color-F6OSRLHC-CFwL-RM_.js +0 -1
  27. package/template/storybook-static/assets/DocsRenderer-CFRXHY34-AADCayzw.js +0 -729
  28. package/template/storybook-static/assets/_commonjsHelpers-Cpj98o6Y.js +0 -1
  29. package/template/storybook-static/assets/axe-d-K7rF9D.js +0 -30
  30. package/template/storybook-static/assets/chunk-XP5HYGXS-BHXC9YeQ.js +0 -1
  31. package/template/storybook-static/assets/client-DGEjZp2f.js +0 -25
  32. package/template/storybook-static/assets/entry-preview-Dc5wkB2s.js +0 -2
  33. package/template/storybook-static/assets/entry-preview-docs-BaxqCxyK.js +0 -46
  34. package/template/storybook-static/assets/iframe-Bl15XKnQ.js +0 -211
  35. package/template/storybook-static/assets/index-Bhelpi4i.js +0 -11
  36. package/template/storybook-static/assets/index-C_pJYAGD.js +0 -1
  37. package/template/storybook-static/assets/index-D5Inswos.js +0 -1
  38. package/template/storybook-static/assets/index-NGyRR_en.js +0 -9
  39. package/template/storybook-static/assets/index-zmTGQa7e.js +0 -9
  40. package/template/storybook-static/assets/jsx-runtime-BjG_zV1W.js +0 -9
  41. package/template/storybook-static/assets/preview-BNUqaTig.js +0 -1
  42. package/template/storybook-static/assets/preview-Cfo7ZnTc.js +0 -2
  43. package/template/storybook-static/assets/preview-CrKLV1aL.css +0 -1
  44. package/template/storybook-static/assets/preview-DkVJIpDn.js +0 -2
  45. package/template/storybook-static/assets/preview-DrRsTNnS.js +0 -17
  46. package/template/storybook-static/assets/react-18-Bfhi6ooJ.js +0 -1
  47. package/template/storybook-static/assets/react-FmFgRqLi.js +0 -1
  48. package/template/storybook-static/assets/react-native-gesture-handler-BzS7UzhZ.js +0 -52
  49. package/template/storybook-static/assets/test-utils-X4YdDMST.js +0 -9
  50. package/template/storybook-static/favicon.svg +0 -1
  51. package/template/storybook-static/fonts/Inter.ttf +0 -0
  52. package/template/storybook-static/fonts/NunitoSans.woff2 +0 -0
  53. package/template/storybook-static/iframe.html +0 -668
  54. package/template/storybook-static/index.html +0 -145
  55. package/template/storybook-static/index.json +0 -1
  56. package/template/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  57. package/template/storybook-static/nunito-sans-bold.woff2 +0 -0
  58. package/template/storybook-static/nunito-sans-italic.woff2 +0 -0
  59. package/template/storybook-static/nunito-sans-regular.woff2 +0 -0
  60. package/template/storybook-static/project.json +0 -1
  61. package/template/storybook-static/sb-addons/a11y-2/manager-bundle.js +0 -3
  62. package/template/storybook-static/sb-addons/links-1/manager-bundle.js +0 -3
  63. package/template/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
  64. package/template/storybook-static/sb-common-assets/favicon.svg +0 -1
  65. package/template/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  66. package/template/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  67. package/template/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  68. package/template/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  69. package/template/storybook-static/sb-manager/globals-module-info.js +0 -1052
  70. package/template/storybook-static/sb-manager/globals-runtime.js +0 -41775
  71. package/template/storybook-static/sb-manager/globals.js +0 -48
  72. package/template/storybook-static/sb-manager/runtime.js +0 -12048
@@ -1,52 +0,0 @@
1
- var bf=Object.defineProperty;var _f=(t,e,r)=>e in t?bf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var zo=(t,e,r)=>_f(t,typeof e!="symbol"?e+"":e,r);import{r as b,R as U}from"./index-NGyRR_en.js";import{j as z}from"./jsx-runtime-BjG_zV1W.js";import{g as Vi}from"./_commonjsHelpers-Cpj98o6Y.js";var Sf=t=>t.disabled||Array.isArray(t.accessibilityStates)&&t.accessibilityStates.indexOf("disabled")>-1,yf={adjustable:"slider",button:"button",header:"heading",image:"img",imagebutton:null,keyboardkey:null,label:null,link:"link",none:"presentation",search:"search",summary:"region",text:null},Fu=t=>{var e=t.accessibilityRole,r=t.role,n=r||e;if(n){var i=yf[n];if(i!==null)return i||n}},xf={article:"article",banner:"header",blockquote:"blockquote",button:"button",code:"code",complementary:"aside",contentinfo:"footer",deletion:"del",emphasis:"em",figure:"figure",insertion:"ins",form:"form",list:"ul",listitem:"li",main:"main",navigation:"nav",paragraph:"p",region:"section",strong:"strong"},wf={},Cf=function(e){e===void 0&&(e=wf);var r=e.role||e.accessibilityRole;if(r==="label")return"label";var n=Fu(e);if(n){if(n==="heading"){var i=e.accessibilityLevel||e["aria-level"];return i!=null?"h"+i:"h1"}return xf[n]}},Du={isDisabled:Sf,propsToAccessibilityComponent:Cf,propsToAriaRole:Fu};function xn(t){"@babel/helpers - typeof";return xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xn(t)}function Rf(t,e){if(xn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Tf(t){var e=Rf(t,"string");return xn(e)=="symbol"?e:e+""}function If(t,e,r){return(e=Tf(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ho(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function L(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ho(Object(r),!0).forEach(function(n){If(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ho(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Je(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}var ui={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},Ef=["ms","Moz","O","Webkit"],Nf=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1);Object.keys(ui).forEach(t=>{Ef.forEach(e=>{ui[Nf(e,t)]=ui[t]})});var Af=t=>t==="currentcolor"||t==="currentColor"||t==="inherit"||t.indexOf("var(")===0;const jo={transparent:0,black:255,white:255<<24|255<<16|65280|255};function Lf(t){const e=parseInt(t[0]+t[0],16),r=parseInt(t[1]+t[1],16),n=parseInt(t[2]+t[2],16);return(e<<24|r<<16|n<<8|255)>>>0}function kf(t){const e=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),n=parseInt(t.slice(4,6),16);return(e<<24|r<<16|n<<8|255)>>>0}function js(t){if(t==null)return null;if(typeof t=="number")return t>>>0===t?t:null;if(typeof t!="string")return null;const e=t.trim().toLowerCase();if(jo[e]!==void 0)return jo[e];if(e.startsWith("#")){const r=e.slice(1);if(r.length===3)return Lf(r);if(r.length===6)return kf(r)}return null}var Of=t=>{if(t==null)return t;var e=js(t);if(e!=null)return e=(e<<24|e>>>8)>>>0,e},Us=function(e,r){if(r===void 0&&(r=1),e!=null){if(typeof e=="string"&&Af(e))return e;var n=Of(e);if(n!=null){var i=n>>16&255,a=n>>8&255,s=n&255,o=(n>>24&255)/255,l=(o*r).toFixed(2);return"rgba("+i+","+a+","+s+","+l+")"}}},Pf={backgroundColor:!0,borderColor:!0,borderTopColor:!0,borderRightColor:!0,borderBottomColor:!0,borderLeftColor:!0,color:!0,shadowColor:!0,textDecorationColor:!0,textShadowColor:!0};function We(t,e){var r=t;return(e==null||!ui[e])&&typeof t=="number"?r=t+"px":e!=null&&Pf[e]&&(r=Us(t)),r}var et=!!(typeof window<"u"&&window.document&&window.document.createElement),Mf={},$f=!et||window.CSS!=null&&window.CSS.supports!=null&&(window.CSS.supports("text-decoration-line","none")||window.CSS.supports("-webkit-text-decoration-line","none")),Bf="monospace,monospace",Uo='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif',Vf={borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderBlockColor:["borderTopColor","borderBottomColor"],borderInlineColor:["borderRightColor","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderStyle:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderInlineStyle:["borderRightStyle","borderLeftStyle"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderInlineWidth:["borderRightWidth","borderLeftWidth"],insetBlock:["top","bottom"],insetInline:["left","right"],marginBlock:["marginTop","marginBottom"],marginInline:["marginRight","marginLeft"],paddingBlock:["paddingTop","paddingBottom"],paddingInline:["paddingRight","paddingLeft"],overflow:["overflowX","overflowY"],overscrollBehavior:["overscrollBehaviorX","overscrollBehaviorY"],borderBlockStartColor:["borderTopColor"],borderBlockStartStyle:["borderTopStyle"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndColor:["borderBottomColor"],borderBlockEndStyle:["borderBottomStyle"],borderBlockEndWidth:["borderBottomWidth"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],insetBlockEnd:["bottom"],insetBlockStart:["top"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"]},Wu=(t,e)=>{if(!t)return Mf;var r={},n=function(){var o=t[i];if(o==null)return"continue";if(i==="backgroundClip")o==="text"&&(r.backgroundClip=o,r.WebkitBackgroundClip=o);else if(i==="flex")o===-1?(r.flexGrow=0,r.flexShrink=1,r.flexBasis="auto"):r.flex=o;else if(i==="font")r[i]=o.replace("System",Uo);else if(i==="fontFamily")if(o.indexOf("System")>-1){var l=o.split(/,\s*/);l[l.indexOf("System")]=Uo,r[i]=l.join(",")}else o==="monospace"?r[i]=Bf:r[i]=o;else if(i==="textDecorationLine")$f?r.textDecorationLine=o:r.textDecoration=o;else if(i==="writingDirection")r.direction=o;else{var u=We(t[i],i),c=Vf[i];e&&i==="inset"?(t.insetInline==null&&(r.left=u,r.right=u),t.insetBlock==null&&(r.top=u,r.bottom=u)):e&&i==="margin"?(t.marginInline==null&&(r.marginLeft=u,r.marginRight=u),t.marginBlock==null&&(r.marginTop=u,r.marginBottom=u)):e&&i==="padding"?(t.paddingInline==null&&(r.paddingLeft=u,r.paddingRight=u),t.paddingBlock==null&&(r.paddingTop=u,r.paddingBottom=u)):c?c.forEach((d,f)=>{t[d]==null&&(r[d]=u)}):r[i]=u}};for(var i in t)var a=n();return r};function Ff(t,e){for(var r=t.length,n=e^r,i=0,a;r>=4;)a=t.charCodeAt(i)&255|(t.charCodeAt(++i)&255)<<8|(t.charCodeAt(++i)&255)<<16|(t.charCodeAt(++i)&255)<<24,a=(a&65535)*1540483477+(((a>>>16)*1540483477&65535)<<16),a^=a>>>24,a=(a&65535)*1540483477+(((a>>>16)*1540483477&65535)<<16),n=(n&65535)*1540483477+(((n>>>16)*1540483477&65535)<<16)^a,r-=4,++i;switch(r){case 3:n^=(t.charCodeAt(i+2)&255)<<16;case 2:n^=(t.charCodeAt(i+1)&255)<<8;case 1:n^=t.charCodeAt(i)&255,n=(n&65535)*1540483477+(((n>>>16)*1540483477&65535)<<16)}return n^=n>>>13,n=(n&65535)*1540483477+(((n>>>16)*1540483477&65535)<<16),n^=n>>>15,n>>>0}var Df=t=>Ff(t,1).toString(36),Wf=/[A-Z]/g,zf=/^ms-/,Yi={};function Hf(t){return"-"+t.toLowerCase()}function jf(t){if(t in Yi)return Yi[t];var e=t.replace(Wf,Hf);return Yi[t]=zf.test(e)?"-"+e:e}function Uf(t){return t||{}}function Kf(){return Uf}var Yf=Kf(),qf=["animationKeyframes"],Ko=new Map,Gf={},Xf=1,Zf=3,Qf={borderColor:2,borderRadius:2,borderStyle:2,borderWidth:2,display:2,flex:2,inset:2,margin:2,overflow:2,overscrollBehavior:2,padding:2,insetBlock:2.1,insetInline:2.1,marginInline:2.1,marginBlock:2.1,paddingInline:2.1,paddingBlock:2.1,borderBlockStartColor:2.2,borderBlockStartStyle:2.2,borderBlockStartWidth:2.2,borderBlockEndColor:2.2,borderBlockEndStyle:2.2,borderBlockEndWidth:2.2,borderInlineStartColor:2.2,borderInlineStartStyle:2.2,borderInlineStartWidth:2.2,borderInlineEndColor:2.2,borderInlineEndStyle:2.2,borderInlineEndWidth:2.2,borderEndStartRadius:2.2,borderEndEndRadius:2.2,borderStartStartRadius:2.2,borderStartEndRadius:2.2,insetBlockEnd:2.2,insetBlockStart:2.2,insetInlineEnd:2.2,insetInlineStart:2.2,marginBlockStart:2.2,marginBlockEnd:2.2,marginInlineStart:2.2,marginInlineEnd:2.2,paddingBlockStart:2.2,paddingBlockEnd:2.2,paddingInlineStart:2.2,paddingInlineEnd:2.2},Va="borderTopLeftRadius",Fa="borderTopRightRadius",Da="borderBottomLeftRadius",Wa="borderBottomRightRadius",za="borderLeftColor",Ha="borderLeftStyle",ja="borderLeftWidth",Ua="borderRightColor",Ka="borderRightStyle",Ya="borderRightWidth",qa="right",Ga="marginLeft",Xa="marginRight",Za="paddingLeft",Qa="paddingRight",Ja="left",gi={[Va]:Fa,[Fa]:Va,[Da]:Wa,[Wa]:Da,[za]:Ua,[Ha]:Ka,[ja]:Ya,[Ua]:za,[Ka]:Ha,[Ya]:ja,[Ja]:qa,[Ga]:Xa,[Xa]:Ga,[Za]:Qa,[Qa]:Za,[qa]:Ja},fn={borderStartStartRadius:Va,borderStartEndRadius:Fa,borderEndStartRadius:Da,borderEndEndRadius:Wa,borderInlineStartColor:za,borderInlineStartStyle:Ha,borderInlineStartWidth:ja,borderInlineEndColor:Ua,borderInlineEndStyle:Ka,borderInlineEndWidth:Ya,insetInlineEnd:qa,insetInlineStart:Ja,marginInlineStart:Ga,marginInlineEnd:Xa,paddingInlineStart:Za,paddingInlineEnd:Qa},zu=["clear","float","textAlign"];function Jf(t){var e={$$css:!0},r=[];function n(i,a,s){var o=rh(s,a),l=a+o,u=Ko.get(l),c;if(u!=null)c=u[0],r.push(u[1]);else{var d=i!==a?l:o;c=Ks("r",i,d);var f=Qf[i]||Zf,m=nh(c,a,s),h=[m,f];r.push(h),Ko.set(l,[c,h])}return c}return Object.keys(t).sort().forEach(i=>{var a=t[i];if(a!=null){var s;if(zu.indexOf(i)>-1){var o=n(i,i,"left"),l=n(i,i,"right");a==="start"?s=[o,l]:a==="end"&&(s=[l,o])}var u=fn[i];if(u!=null){var c=n(i,u,a),d=n(i,gi[u],a);s=[c,d]}if(i==="transitionProperty"){for(var f=Array.isArray(a)?a:[a],m=[],h=0;h<f.length;h++){var g=f[h];typeof g=="string"&&fn[g]!=null&&m.push(h)}if(m.length>0){var v=[...f],S=[...f];m.forEach(x=>{var C=v[x];if(typeof C=="string"){var y=fn[C],R=gi[y];v[x]=y,S[x]=R;var w=n(i,i,v),_=n(i,i,S);s=[w,_]}})}}s==null?s=n(i,i,a):e.$$css$localize=!0,e[i]=s}}),[e,r]}function eh(t,e){var r={$$css:!0},n=[],i=t.animationKeyframes,a=Je(t,qf),s=Ks("css",e,JSON.stringify(t)),o="."+s,l;if(i!=null){var u=Hu(i),c=u[0],d=u[1];l=c.join(","),n.push(...d)}var f=At(L(L({},a),{},{animationName:l}));return n.push(""+o+f),r[s]=s,[r,[[n,Xf]]]}function th(t,e){var r=t||Gf,n={},i={},a=function(){var u=r[s],c=s,d=u;if(!Object.prototype.hasOwnProperty.call(r,s)||u==null)return"continue";zu.indexOf(s)>-1&&(u==="start"?d=e?"right":"left":u==="end"&&(d=e?"left":"right"));var f=fn[s];if(f!=null&&(c=e?gi[f]:f),s==="transitionProperty"){var m=Array.isArray(u)?u:[u];m.forEach((h,g)=>{if(typeof h=="string"){var v=fn[h];v!=null&&(m[g]=e?gi[v]:v,d=m.join(" "))}})}n[c]||(i[c]=d),c===s&&(n[c]=!0)};for(var s in r)var o=a();return Wu(i,!0)}function rh(t,e){var r=We(t,e);return typeof r!="string"?JSON.stringify(r||""):r}function nh(t,e,r){var n=[],i="."+t;switch(e){case"animationKeyframes":{var a=Hu(r),s=a[0],o=a[1],l=At({animationName:s.join(",")});n.push(""+i+l,...o);break}case"placeholderTextColor":{var u=At({color:r,opacity:1});n.push(i+"::-webkit-input-placeholder"+u,i+"::-moz-placeholder"+u,i+":-ms-input-placeholder"+u,i+"::placeholder"+u);break}case"pointerEvents":{var c=r;if(r==="auto"||r==="box-only"){if(c="auto!important",r==="box-only"){var d=At({pointerEvents:"none"});n.push(i+">*"+d)}}else if((r==="none"||r==="box-none")&&(c="none!important",r==="box-none")){var f=At({pointerEvents:"auto"});n.push(i+">*"+f)}var m=At({pointerEvents:c});n.push(""+i+m);break}case"scrollbarWidth":{r==="none"&&n.push(i+"::-webkit-scrollbar{display:none}");var h=At({scrollbarWidth:r});n.push(""+i+h);break}default:{var g=At({[e]:r});n.push(""+i+g);break}}return n}function At(t){var e=Yf(Wu(t)),r=Object.keys(e).map(n=>{var i=e[n],a=jf(n);return Array.isArray(i)?i.map(s=>a+":"+s).join(";"):a+":"+i}).sort().join(";");return"{"+r+";}"}function Ks(t,e,r){var n=Df(e+r);return t+"-"+n}function ih(t){var e=["-webkit-",""],r=Ks("r","animation",JSON.stringify(t)),n="{"+Object.keys(t).map(a=>{var s=t[a],o=At(s);return""+a+o}).join("")+"}",i=e.map(a=>"@"+a+"keyframes "+r+n);return[r,i]}function Hu(t){if(typeof t=="number")throw new Error("Invalid CSS keyframes type: "+typeof t);var e=[],r=[],n=Array.isArray(t)?t:[t];return n.forEach(i=>{if(typeof i=="string")e.push(i);else{var a=ih(i),s=a[0],o=a[1];e.push(s),r.push(...o)}}),[e,r]}function qi(t,e,r){if(et){var n=e??document,i=n.getElementById(t);if(i==null)if(i=document.createElement("style"),i.setAttribute("id",t),typeof r=="string"&&i.appendChild(document.createTextNode(r)),n instanceof ShadowRoot)n.insertBefore(i,n.firstChild);else{var a=n.head;a&&a.insertBefore(i,a.firstChild)}return i.sheet}else return null}var ah=Array.prototype.slice;function Gi(t){var e={},r={};if(t!=null){var n;ah.call(t.cssRules).forEach((s,o)=>{var l=s.cssText;if(l.indexOf("stylesheet-group")>-1)n=lh(s),e[n]={start:o,rules:[l]};else{var u=qo(l);u!=null&&(r[u]=!0,e[n].rules.push(l))}})}function i(s,o,l){var u=Yo(e),c=u.indexOf(o),d=c+1,f=u[d],m=f!=null&&e[f].start!=null?e[f].start:s.cssRules.length,h=ch(s,l,m);if(h){e[o].start==null&&(e[o].start=m);for(var g=d;g<u.length;g+=1){var v=u[g],S=e[v].start||0;e[v].start=S+1}}return h}var a={getTextContent(){return Yo(e).map(s=>{var o=e[s].rules,l=o.shift();return o.sort(),o.unshift(l),o.join(`
2
- `)}).join(`
3
- `)},insert(s,o){var l=Number(o);if(e[l]==null){var u=sh(l);e[l]={start:null,rules:[u]},t!=null&&i(t,l,u)}var c=qo(s);if(c!=null&&r[c]==null&&(r[c]=!0,e[l].rules.push(s),t!=null)){var d=i(t,l,s);d||e[l].rules.pop()}}};return a}function sh(t){return'[stylesheet-group="'+t+'"]{}'}var oh=/["']/g;function lh(t){return Number(t.selectorText.split(oh)[1])}function Yo(t){return Object.keys(t).map(Number).sort((e,r)=>e>r?1:-1)}var uh=/\s*([,])\s*/g;function qo(t){var e=t.split("{")[0].trim();return e!==""?e.replace(uh,"$1"):null}function ch(t,e,r){try{return t.insertRule(e,r),!0}catch{return!1}}var dh="react-native-stylesheet",Xi=new WeakMap,pt=[],Go=["html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}","body{margin:0;}","button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}","input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}"];function fh(t,e){e===void 0&&(e=dh);var r;if(et){var n=document;if(pt.length===0)r=Gi(qi(e)),Go.forEach(o=>{r.insert(o,0)}),Xi.set(n,pt.length),pt.push(r);else{var i=Xi.get(n);if(i==null){var a=pt[0],s=a!=null?a.getTextContent():"";r=Gi(qi(e,n,s)),Xi.set(n,pt.length),pt.push(r)}else r=pt[i]}}else pt.length===0?(r=Gi(qi(e)),Go.forEach(o=>{r.insert(o,0)}),pt.push(r)):r=pt[0];return{getTextContent(){return r.getTextContent()},id:e,insert(o,l){pt.forEach(u=>{u.insert(o,l)})}}}var Ys={};Object.defineProperty(Ys,"__esModule",{value:!0});Ys.localizeStyle=hh;var Un=new WeakMap,ju="$$css$localize";function Xo(t,e){var r={};for(var n in t)if(n!==ju){var i=t[n];Array.isArray(i)?r[n]=e?i[1]:i[0]:r[n]=i}return r}function hh(t,e){if(t[ju]!=null){var r=e?1:0;if(Un.has(t)){var n=Un.get(t),i=n[r];return i==null&&(i=Xo(t,e),n[r]=i,Un.set(t,n)),i}var a=Xo(t,e),s=new Array(2);return s[r]=a,Un.set(t,s),a}return t}var mh=Ys,ph={},Uu={height:0,width:0},Ku=t=>{var e=t.shadowColor,r=t.shadowOffset,n=t.shadowOpacity,i=t.shadowRadius,a=r||Uu,s=a.height,o=a.width,l=We(o),u=We(s),c=We(i||0),d=Us(e||"black",n);if(d!=null&&l!=null&&u!=null&&c!=null)return l+" "+u+" "+c+" "+d},gh=t=>{var e=t.textShadowColor,r=t.textShadowOffset,n=t.textShadowRadius,i=r||Uu,a=i.height,s=i.width,o=n||0,l=We(s),u=We(a),c=We(o),d=We(e,"textShadowColor");if(d&&(a!==0||s!==0||o!==0)&&l!=null&&u!=null&&c!=null)return l+" "+u+" "+c+" "+d},vh=t=>{if(typeof t=="string")return t;var e=We(t.offsetX)||0,r=We(t.offsetY)||0,n=We(t.blurRadius)||0,i=We(t.spreadDistance)||0,a=Us(t.color)||"black",s=t.inset?"inset ":"";return""+s+e+" "+r+" "+n+" "+i+" "+a},bh=t=>t.map(vh).join(", "),_h=t=>{var e=Object.keys(t)[0],r=t[e];if(e==="matrix"||e==="matrix3d")return e+"("+r.join(",")+")";var n=We(r,e);return e+"("+n+")"},Sh=t=>t.map(_h).join(" "),yh=t=>t.map(e=>We(e)).join(" "),xh={borderBottomEndRadius:"borderEndEndRadius",borderBottomStartRadius:"borderEndStartRadius",borderTopEndRadius:"borderStartEndRadius",borderTopStartRadius:"borderStartStartRadius",borderEndColor:"borderInlineEndColor",borderEndStyle:"borderInlineEndStyle",borderEndWidth:"borderInlineEndWidth",borderStartColor:"borderInlineStartColor",borderStartStyle:"borderInlineStartStyle",borderStartWidth:"borderInlineStartWidth",end:"insetInlineEnd",marginEnd:"marginInlineEnd",marginHorizontal:"marginInline",marginStart:"marginInlineStart",marginVertical:"marginBlock",paddingEnd:"paddingInlineEnd",paddingHorizontal:"paddingInline",paddingStart:"paddingInlineStart",paddingVertical:"paddingBlock",start:"insetInlineStart"},wh={elevation:!0,overlayColor:!0,resizeMode:!0,tintColor:!0},Yu=function(e,r){r===void 0&&(r={});var n=e||ph,i={};if(r.shadow,n.shadowColor!=null||n.shadowOffset!=null||n.shadowOpacity!=null||n.shadowRadius!=null){var a=Ku(n);a!=null&&(i.boxShadow=a)}if(r.textShadow,n.textShadowColor!=null||n.textShadowOffset!=null||n.textShadowRadius!=null){var s=gh(n);if(s!=null&&i.textShadow==null){var o=n.textShadow,l=o?o+", "+s:s;i.textShadow=l}}for(var u in n)if(!(wh[u]!=null||u==="shadowColor"||u==="shadowOffset"||u==="shadowOpacity"||u==="shadowRadius"||u==="textShadowColor"||u==="textShadowOffset"||u==="textShadowRadius")){var c=n[u],d=xh[u]||u,f=c;if(!(!Object.prototype.hasOwnProperty.call(n,u)||d!==u&&n[d]!=null))if(d==="aspectRatio"&&typeof f=="number")i[d]=f.toString();else if(d==="boxShadow"){Array.isArray(f)&&(f=bh(f));var m=i.boxShadow;i.boxShadow=m?f+", "+m:f}else d==="fontVariant"?(Array.isArray(f)&&f.length>0&&(f=f.join(" ")),i[d]=f):d==="textAlignVertical"?n.verticalAlign==null&&(i.verticalAlign=f==="center"?"middle":f):d==="transform"?(Array.isArray(f)&&(f=Sh(f)),i.transform=f):d==="transformOrigin"?(Array.isArray(f)&&(f=yh(f)),i.transformOrigin=f):i[d]=f}return i},qs={};Object.defineProperty(qs,"__esModule",{value:!0});var qu=qs.styleq=void 0,Ch=new WeakMap,Rh="$$css";function Gu(t){var e,r,n;return t!=null&&(e=t.disableCache===!0,r=t.disableMix===!0,n=t.transform),function(){for(var a=[],s="",o=null,l=e?null:Ch,u=new Array(arguments.length),c=0;c<arguments.length;c++)u[c]=arguments[c];for(;u.length>0;){var d=u.pop();if(!(d==null||d===!1)){if(Array.isArray(d)){for(var f=0;f<d.length;f++)u.push(d[f]);continue}var m=n!=null?n(d):d;if(m.$$css){var h="";if(l!=null&&l.has(m)){var g=l.get(m);g!=null&&(h=g[0],a.push.apply(a,g[1]),l=g[2])}else{var v=[];for(var S in m){var x=m[S];S!==Rh&&(typeof x=="string"||x===null?a.includes(S)||(a.push(S),l!=null&&v.push(S),typeof x=="string"&&(h+=h?" "+x:x)):console.error("styleq: ".concat(S," typeof ").concat(String(x),' is not "string" or "null".')))}if(l!=null){var C=new WeakMap;l.set(m,[h,v,C]),l=C}}h&&(s=s?h+" "+s:h)}else if(r)o==null&&(o={}),o=Object.assign({},m,o);else{var y=null;for(var R in m){var w=m[R];w!==void 0&&(a.includes(R)||(w!=null&&(o==null&&(o={}),y==null&&(y={}),y[R]=w),a.push(R),l=null))}y!=null&&(o=Object.assign(y,o))}}}var _=[s,o];return _}}var Xu=Gu();qu=qs.styleq=Xu;Xu.factory=Gu;var Th=["writingDirection"],Zu=new WeakMap,vi=fh(),Qu={shadow:!0,textShadow:!0};function Ih(t,e){e===void 0&&(e={});var r=e,n=r.writingDirection,i=Je(r,Th),a=n==="rtl";return qu.factory({transform(s){var o=Zu.get(s);return o!=null?mh.localizeStyle(o,a):Yu(s,L(L({},Qu),i))}})(t)}function Ju(t){t.forEach(e=>{var r=e[0],n=e[1];vi!=null&&r.forEach(i=>{vi.insert(i,n)})})}function Eh(t){var e=Jf(Yu(t,Qu)),r=e[0],n=e[1];return Ju(n),r}function Nh(t,e){var r=eh(t,e),n=r[0],i=r[1];return Ju(i),n}var ec={position:"absolute",left:0,right:0,top:0,bottom:0},Ah=tc({x:L({},ec)}).x;function tc(t){return Object.keys(t).forEach(e=>{var r=t[e];if(r!=null&&r.$$css!==!0){var n;e.indexOf("$raw")>-1?n=Nh(r,e.split("$raw")[0]):n=Eh(r),Zu.set(r,n)}}),t}function Lh(t,e){return[t,e]}function kh(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var n=e.flat(1/0),i={},a=0;a<n.length;a++){var s=n[a];s!=null&&typeof s=="object"&&Object.assign(i,s)}return i}function Oh(){return{id:vi.id,textContent:vi.getTextContent()}}function Pt(t,e){e===void 0&&(e={});var r=e.writingDirection==="rtl",n=Ih(t,e);return Array.isArray(n)&&n[1]!=null&&(n[1]=th(n[1],r)),n}Pt.absoluteFill=Ah;Pt.absoluteFillObject=ec;Pt.create=tc;Pt.compose=Lh;Pt.flatten=kh;Pt.getSheet=Oh;Pt.hairlineWidth=1;et&&window.__REACT_DEVTOOLS_GLOBAL_HOOK__&&(window.__REACT_DEVTOOLS_GLOBAL_HOOK__.resolveRNStyle=Pt.flatten);var ze=Pt,Ph=["aria-activedescendant","accessibilityActiveDescendant","aria-atomic","accessibilityAtomic","aria-autocomplete","accessibilityAutoComplete","aria-busy","accessibilityBusy","aria-checked","accessibilityChecked","aria-colcount","accessibilityColumnCount","aria-colindex","accessibilityColumnIndex","aria-colspan","accessibilityColumnSpan","aria-controls","accessibilityControls","aria-current","accessibilityCurrent","aria-describedby","accessibilityDescribedBy","aria-details","accessibilityDetails","aria-disabled","accessibilityDisabled","aria-errormessage","accessibilityErrorMessage","aria-expanded","accessibilityExpanded","aria-flowto","accessibilityFlowTo","aria-haspopup","accessibilityHasPopup","aria-hidden","accessibilityHidden","aria-invalid","accessibilityInvalid","aria-keyshortcuts","accessibilityKeyShortcuts","aria-label","accessibilityLabel","aria-labelledby","accessibilityLabelledBy","aria-level","accessibilityLevel","aria-live","accessibilityLiveRegion","aria-modal","accessibilityModal","aria-multiline","accessibilityMultiline","aria-multiselectable","accessibilityMultiSelectable","aria-orientation","accessibilityOrientation","aria-owns","accessibilityOwns","aria-placeholder","accessibilityPlaceholder","aria-posinset","accessibilityPosInSet","aria-pressed","accessibilityPressed","aria-readonly","accessibilityReadOnly","aria-required","accessibilityRequired","role","accessibilityRole","aria-roledescription","accessibilityRoleDescription","aria-rowcount","accessibilityRowCount","aria-rowindex","accessibilityRowIndex","aria-rowspan","accessibilityRowSpan","aria-selected","accessibilitySelected","aria-setsize","accessibilitySetSize","aria-sort","accessibilitySort","aria-valuemax","accessibilityValueMax","aria-valuemin","accessibilityValueMin","aria-valuenow","accessibilityValueNow","aria-valuetext","accessibilityValueText","dataSet","focusable","id","nativeID","pointerEvents","style","tabIndex","testID"],Mh={},$h=Object.prototype.hasOwnProperty,Bh=Array.isArray,Vh=/[A-Z]/g;function Fh(t){return"-"+t.toLowerCase()}function Dh(t){return t.replace(Vh,Fh)}function Tr(t){return Bh(t)?t.join(" "):t}var Wh=ze.create({auto:{pointerEvents:"auto"},"box-none":{pointerEvents:"box-none"},"box-only":{pointerEvents:"box-only"},none:{pointerEvents:"none"}}),zh=(t,e,r)=>{e||(e=Mh);var n=e,i=n["aria-activedescendant"],a=n.accessibilityActiveDescendant,s=n["aria-atomic"],o=n.accessibilityAtomic,l=n["aria-autocomplete"],u=n.accessibilityAutoComplete,c=n["aria-busy"],d=n.accessibilityBusy,f=n["aria-checked"],m=n.accessibilityChecked,h=n["aria-colcount"],g=n.accessibilityColumnCount,v=n["aria-colindex"],S=n.accessibilityColumnIndex,x=n["aria-colspan"],C=n.accessibilityColumnSpan,y=n["aria-controls"],R=n.accessibilityControls,w=n["aria-current"],_=n.accessibilityCurrent,I=n["aria-describedby"],k=n.accessibilityDescribedBy,T=n["aria-details"],P=n.accessibilityDetails,V=n["aria-disabled"],E=n.accessibilityDisabled,O=n["aria-errormessage"],H=n.accessibilityErrorMessage,F=n["aria-expanded"],G=n.accessibilityExpanded,Z=n["aria-flowto"],J=n.accessibilityFlowTo,M=n["aria-haspopup"],Te=n.accessibilityHasPopup,Me=n["aria-hidden"],Fe=n.accessibilityHidden,me=n["aria-invalid"],D=n.accessibilityInvalid,Ke=n["aria-keyshortcuts"],Re=n.accessibilityKeyShortcuts,ye=n["aria-label"],Ie=n.accessibilityLabel,Le=n["aria-labelledby"],pe=n.accessibilityLabelledBy,dt=n["aria-level"],vt=n.accessibilityLevel,bt=n["aria-live"],vr=n.accessibilityLiveRegion,Q=n["aria-modal"],A=n.accessibilityModal,W=n["aria-multiline"],le=n.accessibilityMultiline,ve=n["aria-multiselectable"],He=n.accessibilityMultiSelectable,be=n["aria-orientation"],ue=n.accessibilityOrientation,ce=n["aria-owns"],_t=n.accessibilityOwns,q=n["aria-placeholder"],Et=n.accessibilityPlaceholder,$t=n["aria-posinset"],je=n.accessibilityPosInSet,Bt=n["aria-pressed"],j=n.accessibilityPressed,_e=n["aria-readonly"],zr=n.accessibilityReadOnly,ie=n["aria-required"],Jt=n.accessibilityRequired;n.role,n.accessibilityRole;var br=n["aria-roledescription"],_r=n.accessibilityRoleDescription,St=n["aria-rowcount"],De=n.accessibilityRowCount,ge=n["aria-rowindex"],Ye=n.accessibilityRowIndex,$e=n["aria-rowspan"],ft=n.accessibilityRowSpan,de=n["aria-selected"],te=n.accessibilitySelected,Ee=n["aria-setsize"],fe=n.accessibilitySetSize,X=n["aria-sort"],xe=n.accessibilitySort,ke=n["aria-valuemax"],yt=n.accessibilityValueMax,tt=n["aria-valuemin"],rt=n.accessibilityValueMin,Oe=n["aria-valuenow"],ht=n.accessibilityValueNow,mt=n["aria-valuetext"],Hr=n.accessibilityValueText,er=n.dataSet,jr=n.focusable,tr=n.id,Vn=n.nativeID,Vt=n.pointerEvents,Pe=n.style,Ft=n.tabIndex,Fn=n.testID,B=Je(n,Ph),Dn=V||E,qe=Du.propsToAriaRole(e),rr=i??a;rr!=null&&(B["aria-activedescendant"]=rr);var Ur=s!=null?i:o;Ur!=null&&(B["aria-atomic"]=Ur);var Wn=l??u;Wn!=null&&(B["aria-autocomplete"]=Wn);var Kr=c??d;Kr!=null&&(B["aria-busy"]=Kr);var nr=f??m;nr!=null&&(B["aria-checked"]=nr);var Dt=h??g;Dt!=null&&(B["aria-colcount"]=Dt);var Yr=v??S;Yr!=null&&(B["aria-colindex"]=Yr);var Sr=x??C;Sr!=null&&(B["aria-colspan"]=Sr);var qr=y??R;qr!=null&&(B["aria-controls"]=Tr(qr));var zn=w??_;zn!=null&&(B["aria-current"]=zn);var yr=I??k;yr!=null&&(B["aria-describedby"]=Tr(yr));var Wt=T??P;Wt!=null&&(B["aria-details"]=Wt),Dn===!0&&(B["aria-disabled"]=!0,(t==="button"||t==="form"||t==="input"||t==="select"||t==="textarea")&&(B.disabled=!0));var Hn=O??H;Hn!=null&&(B["aria-errormessage"]=Hn);var re=F??G;re!=null&&(B["aria-expanded"]=re);var xr=Z??J;xr!=null&&(B["aria-flowto"]=Tr(xr));var wr=M??Te;wr!=null&&(B["aria-haspopup"]=wr);var Cr=Me??Fe;Cr===!0&&(B["aria-hidden"]=Cr);var Gr=me??D;Gr!=null&&(B["aria-invalid"]=Gr);var Xr=Ke??Re;Xr!=null&&(B["aria-keyshortcuts"]=Tr(Xr));var Zr=ye??Ie;Zr!=null&&(B["aria-label"]=Zr);var Qr=Le??pe;Qr!=null&&(B["aria-labelledby"]=Tr(Qr));var Jr=dt??vt;Jr!=null&&(B["aria-level"]=Jr);var Rr=bt??vr;Rr!=null&&(B["aria-live"]=Rr==="none"?"off":Rr);var en=Q??A;en!=null&&(B["aria-modal"]=en);var $=W??le;$!=null&&(B["aria-multiline"]=$);var K=ve??He;K!=null&&(B["aria-multiselectable"]=K);var he=be??ue;he!=null&&(B["aria-orientation"]=he);var ne=ce??_t;ne!=null&&(B["aria-owns"]=Tr(ne));var ae=q??Et;ae!=null&&(B["aria-placeholder"]=ae);var nt=$t??je;nt!=null&&(B["aria-posinset"]=nt);var tn=Bt??j;tn!=null&&(B["aria-pressed"]=tn);var ir=_e??zr;ir!=null&&(B["aria-readonly"]=ir,(t==="input"||t==="select"||t==="textarea")&&(B.readOnly=!0));var rn=ie??Jt;rn!=null&&(B["aria-required"]=rn,(t==="input"||t==="select"||t==="textarea")&&(B.required=Jt)),qe!=null&&(B.role=qe==="none"?"presentation":qe);var jn=br??_r;jn!=null&&(B["aria-roledescription"]=jn);var Io=St??De;Io!=null&&(B["aria-rowcount"]=Io);var Eo=ge??Ye;Eo!=null&&(B["aria-rowindex"]=Eo);var No=$e??ft;No!=null&&(B["aria-rowspan"]=No);var Ao=de??te;Ao!=null&&(B["aria-selected"]=Ao);var Lo=Ee??fe;Lo!=null&&(B["aria-setsize"]=Lo);var ko=X??xe;ko!=null&&(B["aria-sort"]=ko);var Oo=ke??yt;Oo!=null&&(B["aria-valuemax"]=Oo);var Po=tt??rt;Po!=null&&(B["aria-valuemin"]=Po);var Mo=Oe??ht;Mo!=null&&(B["aria-valuenow"]=Mo);var $o=mt??Hr;if($o!=null&&(B["aria-valuetext"]=$o),er!=null){for(var Ki in er)if($h.call(er,Ki)){var vf=Dh(Ki),Bo=er[Ki];Bo!=null&&(B["data-"+vf]=Bo)}}Ft===0||Ft==="0"||Ft===-1||Ft==="-1"?B.tabIndex=Ft:(jr===!1&&(B.tabIndex="-1"),t==="a"||t==="button"||t==="input"||t==="select"||t==="textarea"?(jr===!1||E===!0)&&(B.tabIndex="-1"):qe==="button"||qe==="checkbox"||qe==="link"||qe==="radio"||qe==="textbox"||qe==="switch"?jr!==!1&&(B.tabIndex="0"):jr===!0&&(B.tabIndex="0"));var Vo=ze([Pe,Vt&&Wh[Vt]],L({writingDirection:"ltr"},r)),Fo=Vo[0],Do=Vo[1];Fo&&(B.className=Fo),Do&&(B.style=Do);var Wo=tr??Vn;return Wo!=null&&(B.id=Wo),Fn!=null&&(B["data-testid"]=Fn),B.type==null&&t==="button"&&(B.type="button"),B},Hh=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Zo=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","far","glk","he","iw","khw","ks","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]),Qo=new Map;function jh(t){var e=Qo.get(t);if(e)return e;var r=!1;if(Intl.Locale)try{var n=new Intl.Locale(t).maximize().script;r=Hh.has(n)}catch{var i=t.split("-")[0];r=Zo.has(i)}else{var a=t.split("-")[0];r=Zo.has(a)}return Qo.set(t,r),r}var Uh={direction:"ltr",locale:"en-US"},rc=b.createContext(Uh);function Gs(t){return jh(t)?"rtl":"ltr"}function Kh(t){var e=t.direction,r=t.locale,n=t.children,i=e||r;return i?U.createElement(rc.Provider,{children:n,value:{direction:r?Gs(r):e,locale:r}}):n}function nc(){return b.useContext(rc)}var Xs=(t,e,r)=>{var n;t&&t.constructor===String&&(n=Du.propsToAccessibilityComponent(e));var i=n||t,a=zh(i,e,r),s=U.createElement(i,a),o=a.dir?U.createElement(Kh,{children:s,direction:a.dir,locale:a.lang}):s;return o},es=t=>{if(t!=null){var e=t.nodeType===1;if(e&&typeof t.getBoundingClientRect=="function")return t.getBoundingClientRect()}},hn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},Yh=["ms","Moz","O","Webkit"],qh=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1);Object.keys(hn).forEach(t=>{Yh.forEach(e=>{hn[qh(e,t)]=hn[t]})});function Gh(t,e,r){var n=e==null||typeof e=="boolean"||e==="";return n?"":!r&&typeof e=="number"&&e!==0&&!(hn.hasOwnProperty(t)&&hn[t])?e+"px":(""+e).trim()}function Xh(t,e){var r=t.style;for(var n in e)if(e.hasOwnProperty(n)){var i=n.indexOf("--")===0,a=Gh(n,e[n],i);n==="float"&&(n="cssFloat"),i?r.setProperty(n,a):r[n]=a}}var Jo=t=>{var e=t.offsetHeight,r=t.offsetWidth,n=t.offsetLeft,i=t.offsetTop;for(t=t.offsetParent;t&&t.nodeType===1;)n+=t.offsetLeft+t.clientLeft-t.scrollLeft,i+=t.offsetTop+t.clientTop-t.scrollTop,t=t.offsetParent;return i-=window.scrollY,n-=window.scrollX,{width:r,height:e,top:i,left:n}},el=(t,e,r)=>{var n=e||t&&t.parentNode;t&&n&&setTimeout(()=>{if(t.isConnected&&n.isConnected){var i=Jo(n),a=Jo(t),s=a.height,o=a.left,l=a.top,u=a.width,c=o-i.left,d=l-i.top;r(c,d,u,s,o,l)}},0)},Zh={A:!0,BODY:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0},mr={blur(t){try{t.blur()}catch{}},focus(t){try{var e=t.nodeName;t.getAttribute("tabIndex")==null&&t.isContentEditable!==!0&&Zh[e]==null&&t.setAttribute("tabIndex","-1"),t.focus()}catch{}},measure(t,e){el(t,null,e)},measureInWindow(t,e){t&&setTimeout(()=>{var r=es(t),n=r.height,i=r.left,a=r.top,s=r.width;e(i,a,s,n)},0)},measureLayout(t,e,r,n){el(t,e,n)},updateView(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=e[r];switch(r){case"style":{Xh(t,n);break}case"class":case"className":{t.setAttribute("class",n);break}case"text":case"value":t.value=n;break;default:t.setAttribute(r,n)}}},configureNextLayoutAnimation(t,e){e()},setLayoutAnimationEnabledExperimental(){}},Zs={OS:"web",select:t=>"web"in t?t.web:t.default,get isTesting(){return!1}};function Ce(){return Ce=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ce.apply(null,arguments)}var ic={children:!0,dataSet:!0,dir:!0,id:!0,ref:!0,suppressHydrationWarning:!0,tabIndex:!0,testID:!0,focusable:!0,nativeID:!0},ac={"aria-activedescendant":!0,"aria-atomic":!0,"aria-autocomplete":!0,"aria-busy":!0,"aria-checked":!0,"aria-colcount":!0,"aria-colindex":!0,"aria-colspan":!0,"aria-controls":!0,"aria-current":!0,"aria-describedby":!0,"aria-details":!0,"aria-disabled":!0,"aria-errormessage":!0,"aria-expanded":!0,"aria-flowto":!0,"aria-haspopup":!0,"aria-hidden":!0,"aria-invalid":!0,"aria-keyshortcuts":!0,"aria-label":!0,"aria-labelledby":!0,"aria-level":!0,"aria-live":!0,"aria-modal":!0,"aria-multiline":!0,"aria-multiselectable":!0,"aria-orientation":!0,"aria-owns":!0,"aria-placeholder":!0,"aria-posinset":!0,"aria-pressed":!0,"aria-readonly":!0,"aria-required":!0,role:!0,"aria-roledescription":!0,"aria-rowcount":!0,"aria-rowindex":!0,"aria-rowspan":!0,"aria-selected":!0,"aria-setsize":!0,"aria-sort":!0,"aria-valuemax":!0,"aria-valuemin":!0,"aria-valuenow":!0,"aria-valuetext":!0,accessibilityActiveDescendant:!0,accessibilityAtomic:!0,accessibilityAutoComplete:!0,accessibilityBusy:!0,accessibilityChecked:!0,accessibilityColumnCount:!0,accessibilityColumnIndex:!0,accessibilityColumnSpan:!0,accessibilityControls:!0,accessibilityCurrent:!0,accessibilityDescribedBy:!0,accessibilityDetails:!0,accessibilityDisabled:!0,accessibilityErrorMessage:!0,accessibilityExpanded:!0,accessibilityFlowTo:!0,accessibilityHasPopup:!0,accessibilityHidden:!0,accessibilityInvalid:!0,accessibilityKeyShortcuts:!0,accessibilityLabel:!0,accessibilityLabelledBy:!0,accessibilityLevel:!0,accessibilityLiveRegion:!0,accessibilityModal:!0,accessibilityMultiline:!0,accessibilityMultiSelectable:!0,accessibilityOrientation:!0,accessibilityOwns:!0,accessibilityPlaceholder:!0,accessibilityPosInSet:!0,accessibilityPressed:!0,accessibilityReadOnly:!0,accessibilityRequired:!0,accessibilityRole:!0,accessibilityRoleDescription:!0,accessibilityRowCount:!0,accessibilityRowIndex:!0,accessibilityRowSpan:!0,accessibilitySelected:!0,accessibilitySetSize:!0,accessibilitySort:!0,accessibilityValueMax:!0,accessibilityValueMin:!0,accessibilityValueNow:!0,accessibilityValueText:!0},sc={onClick:!0,onAuxClick:!0,onContextMenu:!0,onGotPointerCapture:!0,onLostPointerCapture:!0,onPointerCancel:!0,onPointerDown:!0,onPointerEnter:!0,onPointerMove:!0,onPointerLeave:!0,onPointerOut:!0,onPointerOver:!0,onPointerUp:!0},oc={onBlur:!0,onFocus:!0},lc={onKeyDown:!0,onKeyDownCapture:!0,onKeyUp:!0,onKeyUpCapture:!0},uc={onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOver:!0,onMouseOut:!0,onMouseUp:!0},cc={onTouchCancel:!0,onTouchCancelCapture:!0,onTouchEnd:!0,onTouchEndCapture:!0,onTouchMove:!0,onTouchMoveCapture:!0,onTouchStart:!0,onTouchStartCapture:!0},dc={style:!0};function fc(t,e){var r={};for(var n in t)t.hasOwnProperty(n)&&e[n]===!0&&(r[n]=t[n]);return r}var bi=et?b.useLayoutEffect:b.useEffect,ts="__reactLayoutHandler",Zi=null;function Qh(){return et&&typeof window.ResizeObserver<"u"&&Zi==null&&(Zi=new window.ResizeObserver(function(t){t.forEach(e=>{var r=e.target,n=r[ts];typeof n=="function"&&mr.measure(r,(i,a,s,o,l,u)=>{var c={nativeEvent:{layout:{x:i,y:a,width:s,height:o,left:l,top:u}},timeStamp:Date.now()};Object.defineProperty(c.nativeEvent,"target",{enumerable:!0,get:()=>e.target}),n(c)})})})),Zi}function hc(t,e){var r=Qh();bi(()=>{var n=t.current;n!=null&&(n[ts]=e)},[t,e]),bi(()=>{var n=t.current;return n!=null&&r!=null&&(typeof n[ts]=="function"?r.observe(n):r.unobserve(n)),()=>{n!=null&&r!=null&&r.unobserve(n)}},[t,r])}function mc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){e.forEach(a=>{if(a!=null){if(typeof a=="function"){a(i);return}if(typeof a=="object"){a.current=i;return}console.error("mergeRefs cannot handle Refs of type boolean, number or string, received ref "+String(a))}})}}function Qs(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return b.useMemo(()=>mc(...e),[...e])}var tl=typeof Symbol=="function"&&typeof Symbol()=="symbol"?Symbol():Object.freeze({});function Jh(t){var e=b.useRef(tl);return e.current===tl&&(e.current=t()),e.current}function pc(t){t.pointerEvents,t.style;var e=Jh(()=>r=>{r!=null&&(r.measure=n=>mr.measure(r,n),r.measureLayout=(n,i,a)=>mr.measureLayout(r,n,a,i),r.measureInWindow=n=>mr.measureInWindow(r,n))});return e}var rl=()=>{},em={},tm=[];function nl(t){return t>20?t%20:t}function gc(t,e){var r,n=!1,i,a,s=t.changedTouches,o=t.type,l=t.metaKey===!0,u=t.shiftKey===!0,c=s&&s[0].force||0,d=nl(s&&s[0].identifier||0),f=s&&s[0].clientX||t.clientX,m=s&&s[0].clientY||t.clientY,h=s&&s[0].pageX||t.pageX,g=s&&s[0].pageY||t.pageY,v=typeof t.preventDefault=="function"?t.preventDefault.bind(t):rl,S=t.timeStamp;function x(_){return Array.prototype.slice.call(_).map(I=>({force:I.force,identifier:nl(I.identifier),get locationX(){return R(I.clientX)},get locationY(){return w(I.clientY)},pageX:I.pageX,pageY:I.pageY,target:I.target,timestamp:S}))}if(s!=null)i=x(s),a=x(t.touches);else{var C=[{force:c,identifier:d,get locationX(){return R(f)},get locationY(){return w(m)},pageX:h,pageY:g,target:t.target,timestamp:S}];i=C,a=o==="mouseup"||o==="dragstart"?tm:C}var y={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:t.defaultPrevented,dispatchConfig:em,eventPhase:t.eventPhase,isDefaultPrevented(){return t.defaultPrevented},isPropagationStopped(){return n},isTrusted:t.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:l,shiftKey:u,changedTouches:i,force:c,identifier:d,get locationX(){return R(f)},get locationY(){return w(m)},pageX:h,pageY:g,target:t.target,timestamp:S,touches:a,type:o},persist:rl,preventDefault:v,stopPropagation(){n=!0},target:t.target,timeStamp:S,touchHistory:e.touchHistory};function R(_){if(r=r||es(y.currentTarget),r)return _-r.left}function w(_){if(r=r||es(y.currentTarget),r)return _-r.top}return y}var rm="mousedown",nm="mousemove",im="mouseup",am="dragstart",sm="touchstart",om="touchmove",lm="touchend",um="touchcancel",cm="scroll",dm="select",fm="selectionchange";function vc(t){return t===sm||t===rm}function bc(t){return t===om||t===nm}function _c(t){return t===lm||t===im||Sc(t)}function Sc(t){return t===um||t===am}function hm(t){return t===cm}function mm(t){return t===dm||t===fm}function pm(){var t=window.getSelection(),e=t.toString(),r=t.anchorNode,n=t.focusNode,i=r&&r.nodeType===window.Node.TEXT_NODE||n&&n.nodeType===window.Node.TEXT_NODE;return e.length>=1&&e!==`
4
- `&&i}var yc="__reactResponderId";function gm(t){if(t.type==="selectionchange"){var e=window.getSelection().anchorNode;return il(e)}else{var r=t.composedPath!=null?t.composedPath():il(t.target);return r}}function il(t){for(var e=[];t!=null&&t!==document.body;)e.push(t),t=t.parentNode;return e}function vm(t){return t!=null?t[yc]:null}function bm(t,e){t!=null&&(t[yc]=e)}function _m(t){for(var e=[],r=[],n=gm(t),i=0;i<n.length;i++){var a=n[i],s=vm(a);s!=null&&(e.push(s),r.push(a))}return{idPath:e,nodePath:r}}function Sm(t,e){var r=t.length,n=e.length;if(r===0||n===0||t[r-1]!==e[n-1])return null;var i=t[0],a=0,s=e[0],o=0;r-n>0&&(a=r-n,i=t[a],r=n),n-r>0&&(o=n-r,s=e[o],n=r);for(var l=r;l--;){if(i===s)return i;i=t[a++],s=e[o++]}return null}function ym(t,e){if(!e||e.length===0)return!1;for(var r=0;r<e.length;r++){var n=e[r].target;if(n!=null&&t.contains(n))return!0}return!1}function xm(t){return t.type==="selectionchange"?pm():t.type==="select"}function wm(t){var e=t.altKey,r=t.button,n=t.buttons,i=t.ctrlKey,a=t.type,s=a==="touchstart"||a==="touchmove",o=a==="mousedown"&&(r===0||n===1),l=a==="mousemove"&&n===1,u=e===!1&&i===!1;return!!(s||o&&u||l&&u)}var al=20;function at(t){return t.timeStamp||t.timestamp}function Cm(t){return{touchActive:!0,startPageX:t.pageX,startPageY:t.pageY,startTimeStamp:at(t),currentPageX:t.pageX,currentPageY:t.pageY,currentTimeStamp:at(t),previousPageX:t.pageX,previousPageY:t.pageY,previousTimeStamp:at(t)}}function Rm(t,e){t.touchActive=!0,t.startPageX=e.pageX,t.startPageY=e.pageY,t.startTimeStamp=at(e),t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=at(e),t.previousPageX=e.pageX,t.previousPageY=e.pageY,t.previousTimeStamp=at(e)}function Js(t){var e=t.identifier;return e==null&&console.error("Touch object is missing identifier."),e}function Tm(t,e){var r=Js(t),n=e.touchBank[r];n?Rm(n,t):e.touchBank[r]=Cm(t),e.mostRecentTimeStamp=at(t)}function Im(t,e){var r=e.touchBank[Js(t)];r?(r.touchActive=!0,r.previousPageX=r.currentPageX,r.previousPageY=r.currentPageY,r.previousTimeStamp=r.currentTimeStamp,r.currentPageX=t.pageX,r.currentPageY=t.pageY,r.currentTimeStamp=at(t),e.mostRecentTimeStamp=at(t)):console.warn(`Cannot record touch move without a touch start.
5
- `,"Touch Move: "+xc(t)+`
6
- `,"Touch Bank: "+wc(e))}function Em(t,e){var r=e.touchBank[Js(t)];r?(r.touchActive=!1,r.previousPageX=r.currentPageX,r.previousPageY=r.currentPageY,r.previousTimeStamp=r.currentTimeStamp,r.currentPageX=t.pageX,r.currentPageY=t.pageY,r.currentTimeStamp=at(t),e.mostRecentTimeStamp=at(t)):console.warn(`Cannot record touch end without a touch start.
7
- `,"Touch End: "+xc(t)+`
8
- `,"Touch Bank: "+wc(e))}function xc(t){return JSON.stringify({identifier:t.identifier,pageX:t.pageX,pageY:t.pageY,timestamp:at(t)})}function wc(t){var e=t.touchBank,r=JSON.stringify(e.slice(0,al));return e.length>al&&(r+=" (original size: "+e.length+")"),r}let Nm=class{constructor(){this._touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0}}recordTouchTrack(e,r){var n=this._touchHistory;if(bc(e))r.changedTouches.forEach(o=>Im(o,n));else if(vc(e))r.changedTouches.forEach(o=>Tm(o,n)),n.numberActiveTouches=r.touches.length,n.numberActiveTouches===1&&(n.indexOfSingleActiveTouch=r.touches[0].identifier);else if(_c(e)&&(r.changedTouches.forEach(o=>Em(o,n)),n.numberActiveTouches=r.touches.length,n.numberActiveTouches===1))for(var i=n.touchBank,a=0;a<i.length;a++){var s=i[a];if(s!=null&&s.touchActive){n.indexOfSingleActiveTouch=a;break}}}get touchHistory(){return this._touchHistory}};var Am={},sl=["onStartShouldSetResponderCapture","onStartShouldSetResponder",{bubbles:!0}],ol=["onMoveShouldSetResponderCapture","onMoveShouldSetResponder",{bubbles:!0}],Lm=["onScrollShouldSetResponderCapture","onScrollShouldSetResponder",{bubbles:!1}],km={touchstart:sl,mousedown:sl,touchmove:ol,mousemove:ol,scroll:Lm},rs={id:null,idPath:null,node:null},_i=new Map,Ut=!1,xt=0,Rt={id:null,node:null,idPath:null},ns=new Nm;function wn(t){Rt=t}function Cn(t){var e=_i.get(t);return e??Am}function Qi(t){var e=t.type,r=t.target;if(e==="touchstart"&&(Ut=!0),(e==="touchmove"||xt>1)&&(Ut=!1),!(e==="mousedown"&&Ut||e==="mousemove"&&Ut||e==="mousemove"&&xt<1)){if(Ut&&e==="mouseup"){xt===0&&(Ut=!1);return}var n=vc(e)&&wm(t),i=bc(e),a=_c(e),s=hm(e),o=mm(e),l=gc(t,ns);(n||i||a)&&(t.touches?xt=t.touches.length:n?xt=1:a&&(xt=0),ns.recordTouchTrack(e,l.nativeEvent));var u=_m(t),c=!1,d;if(n||i||s&&xt>0){var f=Rt.idPath,m=u.idPath;if(f!=null&&m!=null){var h=Sm(f,m);if(h!=null){var g=m.indexOf(h),v=g+(h===Rt.id?1:0);u={idPath:m.slice(v),nodePath:u.nodePath.slice(v)}}else u=null}u!=null&&(d=Om(u,t,l),d!=null&&(Pm(l,d),c=!0))}if(Rt.id!=null&&Rt.node!=null){var S=Rt,x=S.id,C=S.node,y=Cn(x),R=y.onResponderStart,w=y.onResponderMove,_=y.onResponderEnd,I=y.onResponderRelease,k=y.onResponderTerminate,T=y.onResponderTerminationRequest;if(l.bubbles=!1,l.cancelable=!1,l.currentTarget=C,n)R!=null&&(l.dispatchConfig.registrationName="onResponderStart",R(l));else if(i)w!=null&&(l.dispatchConfig.registrationName="onResponderMove",w(l));else{var P=Sc(e)||e==="contextmenu"||e==="blur"&&r===window||e==="blur"&&r.contains(C)&&t.relatedTarget!==C||s&&xt===0||s&&r.contains(C)&&r!==C||o&&xm(t),V=a&&!P&&!ym(C,t.touches);if(a&&_!=null&&(l.dispatchConfig.registrationName="onResponderEnd",_(l)),V&&(I!=null&&(l.dispatchConfig.registrationName="onResponderRelease",I(l)),wn(rs)),P){var E=!0;(e==="contextmenu"||e==="scroll"||e==="selectionchange")&&(c?E=!1:T!=null&&(l.dispatchConfig.registrationName="onResponderTerminationRequest",T(l)===!1&&(E=!1))),E&&(k!=null&&(l.dispatchConfig.registrationName="onResponderTerminate",k(l)),wn(rs),Ut=!1,xt=0)}}}}}function Om(t,e,r){var n=km[e.type];if(n!=null){for(var i=t.idPath,a=t.nodePath,s=n[0],o=n[1],l=n[2].bubbles,u=function(w,_,I){var k=Cn(w),T=k[I];if(T!=null&&(r.currentTarget=_,T(r)===!0)){var P=i.slice(i.indexOf(w));return{id:w,node:_,idPath:P}}},c=i.length-1;c>=0;c--){var d=i[c],f=a[c],m=u(d,f,s);if(m!=null)return m;if(r.isPropagationStopped()===!0)return}if(l)for(var h=0;h<i.length;h++){var g=i[h],v=a[h],S=u(g,v,o);if(S!=null)return S;if(r.isPropagationStopped()===!0)return}else{var x=i[0],C=a[0],y=e.target;if(y===C)return u(x,C,o)}}}function Pm(t,e){var r=Rt,n=r.id,i=r.node,a=e.id,s=e.node,o=Cn(a),l=o.onResponderGrant,u=o.onResponderReject;if(t.bubbles=!1,t.cancelable=!1,t.currentTarget=s,n==null)l!=null&&(t.currentTarget=s,t.dispatchConfig.registrationName="onResponderGrant",l(t)),wn(e);else{var c=Cn(n),d=c.onResponderTerminate,f=c.onResponderTerminationRequest,m=!0;f!=null&&(t.currentTarget=i,t.dispatchConfig.registrationName="onResponderTerminationRequest",f(t)===!1&&(m=!1)),m?(d!=null&&(t.currentTarget=i,t.dispatchConfig.registrationName="onResponderTerminate",d(t)),l!=null&&(t.currentTarget=s,t.dispatchConfig.registrationName="onResponderGrant",l(t)),wn(e)):u!=null&&(t.currentTarget=s,t.dispatchConfig.registrationName="onResponderReject",u(t))}}var Mm=["blur","scroll"],$m=["mousedown","mousemove","mouseup","dragstart","touchstart","touchmove","touchend","touchcancel","contextmenu","select","selectionchange"];function Bm(){et&&window.__reactResponderSystemActive==null&&(window.addEventListener("blur",Qi),$m.forEach(t=>{document.addEventListener(t,Qi)}),Mm.forEach(t=>{document.addEventListener(t,Qi,!0)}),window.__reactResponderSystemActive=!0)}function Vm(t,e,r){bm(e,t),_i.set(t,r)}function ll(t){Rt.id===t&&Fm(),_i.has(t)&&_i.delete(t)}function Fm(){var t=Rt,e=t.id,r=t.node;if(e!=null&&r!=null){var n=Cn(e),i=n.onResponderTerminate;if(i!=null){var a=gc({},ns);a.currentTarget=r,i(a)}wn(rs)}Ut=!1,xt=0}function Dm(){return Rt.node}var Wm={},zm=0;function Hm(t){var e=b.useRef(null);return e.current==null&&(e.current=t()),e.current}function Cc(t,e){e===void 0&&(e=Wm);var r=Hm(()=>zm++),n=b.useRef(!1);b.useEffect(()=>(Bm(),()=>{ll(r)}),[r]),b.useEffect(()=>{var i=e,a=i.onMoveShouldSetResponder,s=i.onMoveShouldSetResponderCapture,o=i.onScrollShouldSetResponder,l=i.onScrollShouldSetResponderCapture,u=i.onSelectionChangeShouldSetResponder,c=i.onSelectionChangeShouldSetResponderCapture,d=i.onStartShouldSetResponder,f=i.onStartShouldSetResponderCapture,m=a!=null||s!=null||o!=null||l!=null||u!=null||c!=null||d!=null||f!=null,h=t.current;m?(Vm(r,h,e),n.current=!0):n.current&&(ll(r),n.current=!1)},[e,t,r]),b.useDebugValue({isResponder:t.current===Dm()}),b.useDebugValue(e)}var Si=b.createContext(!1),jm=["hrefAttrs","onLayout","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture"],Um=Object.assign({},ic,ac,sc,oc,lc,uc,cc,dc,{href:!0,lang:!0,onScroll:!0,onWheel:!0,pointerEvents:!0}),Km=t=>fc(t,Um),Se=b.forwardRef((t,e)=>{var r=t.hrefAttrs,n=t.onLayout,i=t.onMoveShouldSetResponder,a=t.onMoveShouldSetResponderCapture,s=t.onResponderEnd,o=t.onResponderGrant,l=t.onResponderMove,u=t.onResponderReject,c=t.onResponderRelease,d=t.onResponderStart,f=t.onResponderTerminate,m=t.onResponderTerminationRequest,h=t.onScrollShouldSetResponder,g=t.onScrollShouldSetResponderCapture,v=t.onSelectionChangeShouldSetResponder,S=t.onSelectionChangeShouldSetResponderCapture,x=t.onStartShouldSetResponder,C=t.onStartShouldSetResponderCapture,y=Je(t,jm),R=b.useContext(Si),w=b.useRef(null),_=nc(),I=_.direction;hc(w,n),Cc(w,{onMoveShouldSetResponder:i,onMoveShouldSetResponderCapture:a,onResponderEnd:s,onResponderGrant:o,onResponderMove:l,onResponderReject:u,onResponderRelease:c,onResponderStart:d,onResponderTerminate:f,onResponderTerminationRequest:m,onScrollShouldSetResponder:h,onScrollShouldSetResponderCapture:g,onSelectionChangeShouldSetResponder:v,onSelectionChangeShouldSetResponderCapture:S,onStartShouldSetResponder:x,onStartShouldSetResponderCapture:C});var k="div",T=t.lang!=null?Gs(t.lang):null,P=t.dir||T,V=P||I,E=Km(y);if(E.dir=P,E.style=[ul.view$raw,R&&ul.inline,t.style],t.href!=null&&(k="a",r!=null)){var O=r.download,H=r.rel,F=r.target;O!=null&&(E.download=O),H!=null&&(E.rel=H),typeof F=="string"&&(E.target=F.charAt(0)!=="_"?"_"+F:F)}var G=pc(E),Z=Qs(w,G,e);return E.ref=Z,Xs(k,E,{writingDirection:V})});Se.displayName="View";var ul=ze.create({view$raw:{alignContent:"flex-start",alignItems:"stretch",backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",display:"flex",flexBasis:"auto",flexDirection:"column",flexShrink:0,listStyle:"none",margin:0,minHeight:0,minWidth:0,padding:0,position:"relative",textDecoration:"none",zIndex:0},inline:{display:"inline-flex"}}),Ym=function t(e,r,n){if(n===void 0&&(n=-1),n===0)return!0;if(e===r||typeof e=="function"&&typeof r=="function")return!1;if(typeof e!="object"||e===null)return e!==r;if(typeof r!="object"||r===null||e.constructor!==r.constructor)return!0;if(Array.isArray(e)){var i=e.length;if(r.length!==i)return!0;for(var a=0;a<i;a++)if(t(e[a],r[a],n-1))return!0}else{for(var s in e)if(t(e[s],r[s],n-1))return!0;for(var o in r)if(e[o]===void 0&&r[o]!==void 0)return!0}return!1};function qm(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];if(!t){var a;if(e===void 0)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;a=new Error(e.replace(/%s/g,function(){return String(n[s++])})),a.name="Invariant Violation"}throw a.framesToPop=1,a}}var Gm=qm;const N=Vi(Gm);function cl(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Xm(t,e){if(t){if(typeof t=="string")return cl(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cl(t,e):void 0}}function Tt(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=Xm(t))||e){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
9
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Zm=["colors","enabled","onRefresh","progressBackgroundColor","progressViewOffset","refreshing","size","tintColor","title","titleColor"];function Qm(t){t.colors,t.enabled,t.onRefresh,t.progressBackgroundColor,t.progressViewOffset,t.refreshing,t.size,t.tintColor,t.title,t.titleColor;var e=Je(t,Zm);return U.createElement(Se,e)}var fr={window:{fontScale:1,height:0,scale:1,width:0},screen:{fontScale:1,height:0,scale:1,width:0}},Gt={},dl=et;function Rc(){if(et){var t=window,e,r;if(t.visualViewport){var n=t.visualViewport;e=Math.round(n.height*n.scale),r=Math.round(n.width*n.scale)}else{var i=t.document.documentElement;e=i.clientHeight,r=i.clientWidth}fr.window={fontScale:1,height:e,scale:t.devicePixelRatio||1,width:r},fr.screen={fontScale:1,height:t.screen.height,scale:t.devicePixelRatio||1,width:t.screen.width}}}function fl(){Rc(),Array.isArray(Gt.change)&&Gt.change.forEach(t=>t(fr))}class is{static get(e){return dl&&(dl=!1,Rc()),N(fr[e],"No dimension set for key "+e),fr[e]}static set(e){e&&(et?N(!1,"Dimensions cannot be set in the browser"):(e.screen!=null&&(fr.screen=e.screen),e.window!=null&&(fr.window=e.window)))}static addEventListener(e,r){return Gt[e]=Gt[e]||[],Gt[e].push(r),{remove:()=>{this.removeEventListener(e,r)}}}static removeEventListener(e,r){Array.isArray(Gt[e])&&(Gt[e]=Gt[e].filter(n=>n!==r))}}et&&(window.visualViewport?window.visualViewport.addEventListener("resize",fl,!1):window.addEventListener("resize",fl,!1));var yi={_currentlyFocusedNode:null,currentlyFocusedField(){return document.activeElement!==this._currentlyFocusedNode&&(this._currentlyFocusedNode=null),this._currentlyFocusedNode},focusTextInput(t){t!==null&&(this._currentlyFocusedNode=t,document.activeElement!==t&&mr.focus(t))},blurTextInput(t){t!==null&&(this._currentlyFocusedNode=null,document.activeElement===t&&mr.blur(t))}},Jm=()=>{yi.blurTextInput(yi.currentlyFocusedField())},ep=["onScroll","onTouchMove","onWheel","scrollEnabled","scrollEventThrottle","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","style"];function hl(t){return{nativeEvent:{contentOffset:{get x(){return t.target.scrollLeft},get y(){return t.target.scrollTop}},contentSize:{get height(){return t.target.scrollHeight},get width(){return t.target.scrollWidth}},layoutMeasurement:{get height(){return t.target.offsetHeight},get width(){return t.target.offsetWidth}}},timeStamp:Date.now()}}function tp(t,e){var r=Date.now()-t;return e>0&&r>=e}var rp=b.forwardRef((t,e)=>{var r=t.onScroll,n=t.onTouchMove,i=t.onWheel,a=t.scrollEnabled,s=a===void 0?!0:a,o=t.scrollEventThrottle,l=o===void 0?0:o,u=t.showsHorizontalScrollIndicator,c=t.showsVerticalScrollIndicator,d=t.style,f=Je(t,ep),m=b.useRef({isScrolling:!1,scrollLastTick:0}),h=b.useRef(null),g=b.useRef(null);function v(w){return _=>{s&&w&&w(_)}}function S(w){w.stopPropagation(),w.target===g.current&&(w.persist(),h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{y(w)},100),m.current.isScrolling?tp(m.current.scrollLastTick,l)&&C(w):x(w))}function x(w){m.current.isScrolling=!0,C(w)}function C(w){m.current.scrollLastTick=Date.now(),r&&r(hl(w))}function y(w){m.current.isScrolling=!1,r&&r(hl(w))}var R=u===!1||c===!1;return b.createElement(Se,Ce({},f,{onScroll:S,onTouchMove:v(n),onWheel:v(i),ref:Qs(g,e),style:[d,!s&&ml.scrollDisabled,R&&ml.hideScrollbar]}))}),ml=ze.create({scrollDisabled:{overflowX:"hidden",overflowY:"hidden",touchAction:"none"},hideScrollbar:{scrollbarWidth:"none"}});function Fi(t){return function(){return t}}var pr=function(){};pr.thatReturns=Fi;pr.thatReturnsFalse=Fi(!1);pr.thatReturnsTrue=Fi(!0);pr.thatReturnsNull=Fi(null);pr.thatReturnsThis=function(){return this};pr.thatReturnsArgument=function(t){return t};var np=pr,ip=np,ap=ip,sp=ap;const op=Vi(sp);var lp=["contentContainerStyle","horizontal","onContentSizeChange","refreshControl","stickyHeaderIndices","pagingEnabled","forwardedRef","keyboardDismissMode","onScroll","centerContent"],pl={},up=16;let cp=class extends U.Component{constructor(){super(...arguments),this._scrollNodeRef=null,this._innerViewRef=null,this.isTouching=!1,this.lastMomentumScrollBeginTime=0,this.lastMomentumScrollEndTime=0,this.observedScrollSinceBecomingResponder=!1,this.becameResponderWhileAnimating=!1,this.scrollResponderHandleScrollShouldSetResponder=()=>this.isTouching,this.scrollResponderHandleStartShouldSetResponderCapture=e=>this.scrollResponderIsAnimating(),this.scrollResponderHandleTerminationRequest=()=>!this.observedScrollSinceBecomingResponder,this.scrollResponderHandleTouchEnd=e=>{var r=e.nativeEvent;this.isTouching=r.touches.length!==0,this.props.onTouchEnd&&this.props.onTouchEnd(e)},this.scrollResponderHandleResponderRelease=e=>{this.props.onResponderRelease&&this.props.onResponderRelease(e);var r=yi.currentlyFocusedField();!this.props.keyboardShouldPersistTaps&&r!=null&&e.target!==r&&!this.observedScrollSinceBecomingResponder&&!this.becameResponderWhileAnimating&&(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(e),yi.blurTextInput(r))},this.scrollResponderHandleScroll=e=>{this.observedScrollSinceBecomingResponder=!0,this.props.onScroll&&this.props.onScroll(e)},this.scrollResponderHandleResponderGrant=e=>{this.observedScrollSinceBecomingResponder=!1,this.props.onResponderGrant&&this.props.onResponderGrant(e),this.becameResponderWhileAnimating=this.scrollResponderIsAnimating()},this.scrollResponderHandleScrollBeginDrag=e=>{this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this.scrollResponderHandleScrollEndDrag=e=>{this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this.scrollResponderHandleMomentumScrollBegin=e=>{this.lastMomentumScrollBeginTime=Date.now(),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this.scrollResponderHandleMomentumScrollEnd=e=>{this.lastMomentumScrollEndTime=Date.now(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this.scrollResponderHandleTouchStart=e=>{this.isTouching=!0,this.props.onTouchStart&&this.props.onTouchStart(e)},this.scrollResponderHandleTouchMove=e=>{this.props.onTouchMove&&this.props.onTouchMove(e)},this.scrollResponderIsAnimating=()=>{var e=Date.now(),r=e-this.lastMomentumScrollEndTime,n=r<up||this.lastMomentumScrollEndTime<this.lastMomentumScrollBeginTime;return n},this.scrollResponderScrollTo=(e,r,n)=>{if(typeof e=="number")console.warn("`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.");else{var i=e||pl;e=i.x,r=i.y,n=i.animated}var a=this.getScrollableNode(),s=e||0,o=r||0;a!=null&&(typeof a.scroll=="function"?a.scroll({top:o,left:s,behavior:n?"smooth":"auto"}):(a.scrollLeft=s,a.scrollTop=o))},this.scrollResponderZoomTo=(e,r)=>{N("zoomToRect is not implemented")},this.scrollResponderScrollNativeHandleToKeyboard=(e,r,n)=>{this.additionalScrollOffset=r||0,this.preventNegativeScrollOffset=!!n,mr.measureLayout(e,this.getInnerViewNode(),this.scrollResponderTextInputFocusError,this.scrollResponderInputMeasureAndScrollToKeyboard)},this.scrollResponderInputMeasureAndScrollToKeyboard=(e,r,n,i)=>{var a=is.get("window").height;this.keyboardWillOpenTo&&(a=this.keyboardWillOpenTo.endCoordinates.screenY);var s=r-a+i+this.additionalScrollOffset;this.preventNegativeScrollOffset&&(s=Math.max(0,s)),this.scrollResponderScrollTo({x:0,y:s,animated:!0}),this.additionalOffset=0,this.preventNegativeScrollOffset=!1},this.scrollResponderKeyboardWillShow=e=>{this.keyboardWillOpenTo=e,this.props.onKeyboardWillShow&&this.props.onKeyboardWillShow(e)},this.scrollResponderKeyboardWillHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardWillHide&&this.props.onKeyboardWillHide(e)},this.scrollResponderKeyboardDidShow=e=>{e&&(this.keyboardWillOpenTo=e),this.props.onKeyboardDidShow&&this.props.onKeyboardDidShow(e)},this.scrollResponderKeyboardDidHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardDidHide&&this.props.onKeyboardDidHide(e)},this.flashScrollIndicators=()=>{this.scrollResponderFlashScrollIndicators()},this.getScrollResponder=()=>this,this.getScrollableNode=()=>this._scrollNodeRef,this.getInnerViewRef=()=>this._innerViewRef,this.getInnerViewNode=()=>this._innerViewRef,this.getNativeScrollRef=()=>this._scrollNodeRef,this.scrollTo=(e,r,n)=>{if(typeof e=="number")console.warn("`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, animated: true})` instead.");else{var i=e||pl;r=i.x,e=i.y,n=i.animated}this.scrollResponderScrollTo({x:r||0,y:e||0,animated:n!==!1})},this.scrollToEnd=e=>{var r=(e&&e.animated)!==!1,n=this.props.horizontal,i=this.getScrollableNode(),a=n?i.scrollWidth:0,s=n?0:i.scrollHeight;this.scrollResponderScrollTo({x:a,y:s,animated:r})},this._handleContentOnLayout=e=>{var r=e.nativeEvent.layout,n=r.width,i=r.height;this.props.onContentSizeChange(n,i)},this._handleScroll=e=>{this.props.keyboardDismissMode==="on-drag"&&Jm(),this.scrollResponderHandleScroll(e)},this._setInnerViewRef=e=>{this._innerViewRef=e},this._setScrollNodeRef=e=>{this._scrollNodeRef=e,e!=null&&(e.getScrollResponder=this.getScrollResponder,e.getInnerViewNode=this.getInnerViewNode,e.getInnerViewRef=this.getInnerViewRef,e.getNativeScrollRef=this.getNativeScrollRef,e.getScrollableNode=this.getScrollableNode,e.scrollTo=this.scrollTo,e.scrollToEnd=this.scrollToEnd,e.flashScrollIndicators=this.flashScrollIndicators,e.scrollResponderZoomTo=this.scrollResponderZoomTo,e.scrollResponderScrollNativeHandleToKeyboard=this.scrollResponderScrollNativeHandleToKeyboard);var r=mc(this.props.forwardedRef);r(e)}}scrollResponderHandleStartShouldSetResponder(){return!1}scrollResponderHandleResponderReject(){op(!1,"ScrollView doesn't take rejection well - scrolls anyway")}scrollResponderFlashScrollIndicators(){}scrollResponderTextInputFocusError(e){console.error("Error measuring text field: ",e)}render(){var e=this.props,r=e.contentContainerStyle,n=e.horizontal,i=e.onContentSizeChange,a=e.refreshControl,s=e.stickyHeaderIndices,o=e.pagingEnabled;e.forwardedRef,e.keyboardDismissMode,e.onScroll;var l=e.centerContent,u=Je(e,lp),c={};i&&(c={onLayout:this._handleContentOnLayout});var d=!n&&Array.isArray(s),f=d||o?U.Children.map(this.props.children,(C,y)=>{var R=d&&s.indexOf(y)>-1;return C!=null&&(R||o)?U.createElement(Se,{style:[R&&zt.stickyHeader,o&&zt.pagingEnabledChild]},C):C}):this.props.children,m=U.createElement(Se,Ce({},c,{children:f,collapsable:!1,ref:this._setInnerViewRef,style:[n&&zt.contentContainerHorizontal,l&&zt.contentContainerCenterContent,r]})),h=n?zt.baseHorizontal:zt.baseVertical,g=n?zt.pagingEnabledHorizontal:zt.pagingEnabledVertical,v=L(L({},u),{},{style:[h,o&&g,this.props.style],onTouchStart:this.scrollResponderHandleTouchStart,onTouchMove:this.scrollResponderHandleTouchMove,onTouchEnd:this.scrollResponderHandleTouchEnd,onScrollBeginDrag:this.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this.scrollResponderHandleScrollEndDrag,onMomentumScrollBegin:this.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this.scrollResponderHandleMomentumScrollEnd,onStartShouldSetResponder:this.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this.scrollResponderHandleStartShouldSetResponderCapture,onScrollShouldSetResponder:this.scrollResponderHandleScrollShouldSetResponder,onScroll:this._handleScroll,onResponderGrant:this.scrollResponderHandleResponderGrant,onResponderTerminationRequest:this.scrollResponderHandleTerminationRequest,onResponderTerminate:this.scrollResponderHandleTerminate,onResponderRelease:this.scrollResponderHandleResponderRelease,onResponderReject:this.scrollResponderHandleResponderReject}),S=rp;N(S!==void 0,"ScrollViewClass must not be undefined");var x=U.createElement(S,Ce({},v,{ref:this._setScrollNodeRef}),m);return a?U.cloneElement(a,{style:v.style},x):x}};var gl={flexGrow:1,flexShrink:1,transform:"translateZ(0)",WebkitOverflowScrolling:"touch"},zt=ze.create({baseVertical:L(L({},gl),{},{flexDirection:"column",overflowX:"hidden",overflowY:"auto"}),baseHorizontal:L(L({},gl),{},{flexDirection:"row",overflowX:"auto",overflowY:"hidden"}),contentContainerHorizontal:{flexDirection:"row"},contentContainerCenterContent:{justifyContent:"center",flexGrow:1},stickyHeader:{position:"sticky",top:0,zIndex:10},pagingEnabledHorizontal:{scrollSnapType:"x mandatory"},pagingEnabledVertical:{scrollSnapType:"y mandatory"},pagingEnabledChild:{scrollSnapAlign:"start"}}),xi=U.forwardRef((t,e)=>U.createElement(cp,Ce({},t,{forwardedRef:e})));xi.displayName="ScrollView";class dp{constructor(e){var r=e.onMoreTasks;this._onMoreTasks=r,this._queueStack=[{tasks:[],popable:!0}]}enqueue(e){this._getCurrentQueue().push(e)}enqueueTasks(e){e.forEach(r=>this.enqueue(r))}cancelTasks(e){this._queueStack=this._queueStack.map(r=>L(L({},r),{},{tasks:r.tasks.filter(n=>e.indexOf(n)===-1)})).filter((r,n)=>r.tasks.length>0||n===0)}hasTasksToProcess(){return this._getCurrentQueue().length>0}processNext(){var e=this._getCurrentQueue();if(e.length){var r=e.shift();try{typeof r=="object"&&r.gen?this._genPromise(r):typeof r=="object"&&r.run?r.run():(N(typeof r=="function",`Expected Function, SimpleTask, or PromiseTask, but got:
10
- `+JSON.stringify(r,null,2)),r())}catch(n){throw n.message="TaskQueue: Error with task "+(r.name||"")+": "+n.message,n}}}_getCurrentQueue(){var e=this._queueStack.length-1,r=this._queueStack[e];return r.popable&&r.tasks.length===0&&e>0?(this._queueStack.pop(),this._getCurrentQueue()):r.tasks}_genPromise(e){var r=this._queueStack.push({tasks:[],popable:!1}),n=r-1,i=this._queueStack[n];e.gen().then(()=>{i.popable=!0,this.hasTasksToProcess()&&this._onMoreTasks()}).catch(a=>{setTimeout(()=>{throw a.message="TaskQueue: Error resolving Promise in task "+e.name+": "+a.message,a},0)})}}class Tc{constructor(){this._registry={}}addListener(e,r,n){var i=fp(this._registry,e),a={context:n,listener:r,remove(){i.delete(a)}};return i.add(a),a}emit(e){var r=this._registry[e];if(r!=null){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];for(var s=0,o=[...r];s<o.length;s++){var l=o[s];l.listener.apply(l.context,i)}}}removeAllListeners(e){e==null?this._registry={}:delete this._registry[e]}listenerCount(e){var r=this._registry[e];return r==null?0:r.size}}function fp(t,e){var r=t[e];return r==null&&(r=new Set,t[e]=r),r}var hp=function(e,r){return setTimeout(()=>{var n=Date.now();e({didTimeout:!1,timeRemaining(){return Math.max(0,50-(Date.now()-n))}})},1)},mp=et&&typeof window.requestIdleCallback<"u",pp=mp?window.requestIdleCallback:hp,wi=new Tc,Rn={Events:{interactionStart:"interactionStart",interactionComplete:"interactionComplete"},runAfterInteractions(t){var e=[],r=new Promise(n=>{mn(),t&&e.push(t),e.push({run:n,name:"resolve "+(t&&t.name||"?")}),Ri.enqueueTasks(e)});return{then:r.then.bind(r),done:r.then.bind(r),cancel:()=>{Ri.cancelTasks(e)}}},createInteractionHandle(){mn();var t=++gp;return Ci.add(t),t},clearInteractionHandle(t){N(!!t,"Must provide a handle to clear."),mn(),Ci.delete(t),as.add(t)},addListener:wi.addListener.bind(wi),setDeadline(t){Ti=t}},Kn=new Set,Ci=new Set,as=new Set,Ri=new dp({onMoreTasks:mn}),ci=0,gp=0,Ti=-1;function mn(){ci||(Ti>0?ci=setTimeout(vl):ci=pp(vl))}function vl(){ci=0;var t=Kn.size;Ci.forEach(n=>Kn.add(n)),as.forEach(n=>Kn.delete(n));var e=Kn.size;if(t!==0&&e===0?wi.emit(Rn.Events.interactionComplete):t===0&&e!==0&&wi.emit(Rn.Events.interactionStart),e===0){for(var r=Date.now();Ri.hasTasksToProcess();)if(Ri.processNext(),Ti>0&&Date.now()-r>=Ti){mn();break}}Ci.clear(),as.clear()}class vp{constructor(e,r){this._delay=r,this._callback=e}dispose(e){e===void 0&&(e={abort:!1}),this._taskHandle&&(this._taskHandle.cancel(),e.abort||this._callback(),this._taskHandle=null)}schedule(){if(!this._taskHandle){var e=setTimeout(()=>{this._taskHandle=Rn.runAfterInteractions(()=>{this._taskHandle=null,this._callback()})},this._delay);this._taskHandle={cancel:()=>clearTimeout(e)}}}}function bl(t,e,r){return e<t?t:e>r?r:e}function bp(){return console.log(...arguments)}class _p{constructor(e){N(e>=0,"CellRenderMask must contain a non-negative number os cells"),this._numCells=e,e===0?this._regions=[]:this._regions=[{first:0,last:e-1,isSpacer:!0}]}enumerateRegions(){return this._regions}addCells(e){if(N(e.first>=0&&e.first<this._numCells&&e.last>=-1&&e.last<this._numCells&&e.last>=e.first-1,"CellRenderMask.addCells called with invalid cell range"),!(e.last<e.first)){var r=this._findRegion(e.first),n=r[0],i=r[1],a=this._findRegion(e.last),s=a[0],o=a[1];if(!(i===o&&!n.isSpacer)){var l=[],u=[],c=L(L({},e),{},{isSpacer:!1});n.first<c.first&&(n.isSpacer?l.push({first:n.first,last:c.first-1,isSpacer:!0}):c.first=n.first),s.last>c.last&&(s.isSpacer?u.push({first:c.last+1,last:s.last,isSpacer:!0}):c.last=s.last);var d=[...l,c,...u],f=o-i+1;this._regions.splice(i,f,...d)}}}numCells(){return this._numCells}equals(e){return this._numCells===e._numCells&&this._regions.length===e._regions.length&&this._regions.every((r,n)=>r.first===e._regions[n].first&&r.last===e._regions[n].last&&r.isSpacer===e._regions[n].isSpacer)}_findRegion(e){for(var r=0,n=this._regions.length-1;r<=n;){var i=Math.floor((r+n)/2),a=this._regions[i];if(e>=a.first&&e<=a.last)return[a,i];e<a.first?n=i-1:e>a.last&&(r=i+1)}N(!1,"A region was not found containing cellIdx "+e)}}class Sp{constructor(){this._cellKeyToChildren=new Map,this._childrenToCellKey=new Map}add(e,r){var n;N(!this._childrenToCellKey.has(e),"Trying to add already present child list");var i=(n=this._cellKeyToChildren.get(r))!==null&&n!==void 0?n:new Set;i.add(e),this._cellKeyToChildren.set(r,i),this._childrenToCellKey.set(e,r)}remove(e){var r=this._childrenToCellKey.get(e);N(r!=null,"Trying to remove non-present child list"),this._childrenToCellKey.delete(e);var n=this._cellKeyToChildren.get(r);N(n,"_cellKeyToChildren should contain cellKey"),n.delete(e),n.size===0&&this._cellKeyToChildren.delete(r)}forEach(e){for(var r=Tt(this._cellKeyToChildren.values()),n;!(n=r()).done;)for(var i=n.value,a=Tt(i),s;!(s=a()).done;){var o=s.value;e(o)}}forEachInCell(e,r){for(var n,i=(n=this._cellKeyToChildren.get(e))!==null&&n!==void 0?n:[],a=Tt(i),s;!(s=a()).done;){var o=s.value;r(o)}}anyInCell(e,r){for(var n,i=(n=this._cellKeyToChildren.get(e))!==null&&n!==void 0?n:[],a=Tt(i),s;!(s=a()).done;){var o=s.value;if(r(o))return!0}return!1}size(){return this._childrenToCellKey.size}}class _l{constructor(){this.any_blank_count=0,this.any_blank_ms=0,this.any_blank_speed_sum=0,this.mostly_blank_count=0,this.mostly_blank_ms=0,this.pixels_blank=0,this.pixels_sampled=0,this.pixels_scrolled=0,this.total_time_spent=0,this.sample_count=0}}var Yn=[],Sl=10,Ji=null;class yp{static addListener(e){return Ji===null&&console.warn("Call `FillRateHelper.setSampleRate` before `addListener`."),Yn.push(e),{remove:()=>{Yn=Yn.filter(r=>e!==r)}}}static setSampleRate(e){Ji=e}static setMinSampleCount(e){Sl=e}constructor(e){this._anyBlankStartTime=null,this._enabled=!1,this._info=new _l,this._mostlyBlankStartTime=null,this._samplesStartTime=null,this._getFrameMetrics=e,this._enabled=(Ji||0)>Math.random(),this._resetData()}activate(){this._enabled&&this._samplesStartTime==null&&(this._samplesStartTime=global.performance.now())}deactivateAndFlush(){if(this._enabled){var e=this._samplesStartTime;if(e!=null){if(this._info.sample_count<Sl){this._resetData();return}var r=global.performance.now()-e,n=L(L({},this._info),{},{total_time_spent:r});Yn.forEach(i=>i(n)),this._resetData()}}}computeBlankness(e,r,n){if(!this._enabled||e.getItemCount(e.data)===0||r.last<r.first||this._samplesStartTime==null)return 0;var i=n.dOffset,a=n.offset,s=n.velocity,o=n.visibleLength;this._info.sample_count++,this._info.pixels_sampled+=Math.round(o),this._info.pixels_scrolled+=Math.round(Math.abs(i));var l=Math.round(Math.abs(s)*1e3),u=global.performance.now();this._anyBlankStartTime!=null&&(this._info.any_blank_ms+=u-this._anyBlankStartTime),this._anyBlankStartTime=null,this._mostlyBlankStartTime!=null&&(this._info.mostly_blank_ms+=u-this._mostlyBlankStartTime),this._mostlyBlankStartTime=null;for(var c=0,d=r.first,f=this._getFrameMetrics(d,e);d<=r.last&&(!f||!f.inLayout);)f=this._getFrameMetrics(d,e),d++;f&&d>0&&(c=Math.min(o,Math.max(0,f.offset-a)));for(var m=0,h=r.last,g=this._getFrameMetrics(h,e);h>=r.first&&(!g||!g.inLayout);)g=this._getFrameMetrics(h,e),h--;if(g&&h<e.getItemCount(e.data)-1){var v=g.offset+g.length;m=Math.min(o,Math.max(0,a+o-v))}var S=Math.round(c+m),x=S/o;return x>0?(this._anyBlankStartTime=u,this._info.any_blank_speed_sum+=l,this._info.any_blank_count++,this._info.pixels_blank+=S,x>.5&&(this._mostlyBlankStartTime=u,this._info.mostly_blank_count++)):(l<.01||Math.abs(i)<1)&&this.deactivateAndFlush(),x}enabled(){return this._enabled}_resetData(){this._anyBlankStartTime=null,this._info=new _l,this._mostlyBlankStartTime=null,this._samplesStartTime=null}}class xp extends b.PureComponent{constructor(e){super(e),this._inAsyncStateUpdate=!1,this._installSetStateHooks()}setState(e,r){typeof e=="function"?super.setState((n,i)=>{this._inAsyncStateUpdate=!0;var a;try{a=e(n,i)}catch(s){throw s}finally{this._inAsyncStateUpdate=!1}return a},r):super.setState(e,r)}_installSetStateHooks(){var e=this,r=this.props,n=this.state;Object.defineProperty(this,"props",{get(){return N(!e._inAsyncStateUpdate,'"this.props" should not be accessed during state updates'),r},set(i){r=i}}),Object.defineProperty(this,"state",{get(){return N(!e._inAsyncStateUpdate,'"this.state" should not be acceessed during state updates'),n},set(i){n=i}})}}class yl{constructor(e){e===void 0&&(e={viewAreaCoveragePercentThreshold:0}),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=e}dispose(){this._timers.forEach(clearTimeout)}computeViewableItems(e,r,n,i,a){var s=e.getItemCount(e.data),o=this._config,l=o.itemVisiblePercentThreshold,u=o.viewAreaCoveragePercentThreshold,c=u!=null,d=c?u:l;N(d!=null&&l!=null!=(u!=null),"Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold");var f=[];if(s===0)return f;var m=-1,h=a||{first:0,last:s-1},g=h.first,v=h.last;if(v>=s)return console.warn("Invalid render range computing viewability "+JSON.stringify({renderRange:a,itemCount:s})),[];for(var S=g;S<=v;S++){var x=i(S,e);if(x){var C=x.offset-r,y=C+x.length;if(C<n&&y>0)m=S,wp(c,d,C,y,n,x.length)&&f.push(S);else if(m>=0)break}}return f}onUpdate(e,r,n,i,a,s,o){var l=e.getItemCount(e.data);if(!(this._config.waitForInteraction&&!this._hasInteracted||l===0||!i(0,e))){var u=[];if(l&&(u=this.computeViewableItems(e,r,n,i,o)),!(this._viewableIndices.length===u.length&&this._viewableIndices.every((d,f)=>d===u[f])))if(this._viewableIndices=u,this._config.minimumViewTime){var c=setTimeout(()=>{this._timers.delete(c),this._onUpdateSync(e,u,s,a)},this._config.minimumViewTime);this._timers.add(c)}else this._onUpdateSync(e,u,s,a)}}resetViewableIndices(){this._viewableIndices=[]}recordInteraction(){this._hasInteracted=!0}_onUpdateSync(e,r,n,i){r=r.filter(x=>this._viewableIndices.includes(x));for(var a=this._viewableItems,s=new Map(r.map(x=>{var C=i(x,!0,e);return[C.key,C]})),o=[],l=Tt(s),u;!(u=l()).done;){var c=u.value,d=c[0],f=c[1];a.has(d)||o.push(f)}for(var m=Tt(a),h;!(h=m()).done;){var g=h.value,v=g[0],S=g[1];s.has(v)||o.push(L(L({},S),{},{isViewable:!1}))}o.length>0&&(this._viewableItems=s,n({viewableItems:Array.from(s.values()),changed:o,viewabilityConfig:this._config}))}}function wp(t,e,r,n,i,a){if(Rp(r,n,i))return!0;var s=Cp(r,n,i),o=100*(t?s/i:s/a);return o>=e}function Cp(t,e,r){var n=Math.min(e,r)-Math.max(t,0);return Math.max(0,n)}function Rp(t,e,r){return t>=0&&e<=r&&e>t}var Ii=b.createContext(null);function Tp(t){var e=t.children,r=t.value,n=b.useMemo(()=>({cellKey:null,getScrollMetrics:r.getScrollMetrics,horizontal:r.horizontal,getOutermostParentListRef:r.getOutermostParentListRef,registerAsNestedChild:r.registerAsNestedChild,unregisterAsNestedChild:r.unregisterAsNestedChild}),[r.getScrollMetrics,r.horizontal,r.getOutermostParentListRef,r.registerAsNestedChild,r.unregisterAsNestedChild]);return b.createElement(Ii.Provider,{value:n},e)}function di(t){var e=t.cellKey,r=t.children,n=b.useContext(Ii),i=b.useMemo(()=>n==null?null:L(L({},n),{},{cellKey:e}),[n,e]);return b.createElement(Ii.Provider,{value:i},r)}class Ip extends b.Component{constructor(){super(...arguments),this.state={separatorProps:{highlighted:!1,leadingItem:this.props.item}},this._separators={highlight:()=>{var e=this.props,r=e.cellKey,n=e.prevCellKey;this.props.onUpdateSeparators([r,n],{highlighted:!0})},unhighlight:()=>{var e=this.props,r=e.cellKey,n=e.prevCellKey;this.props.onUpdateSeparators([r,n],{highlighted:!1})},updateProps:(e,r)=>{var n=this.props,i=n.cellKey,a=n.prevCellKey;this.props.onUpdateSeparators([e==="leading"?a:i],r)}},this._onLayout=e=>{this.props.onCellLayout&&this.props.onCellLayout(e,this.props.cellKey,this.props.index)}}static getDerivedStateFromProps(e,r){return{separatorProps:L(L({},r.separatorProps),{},{leadingItem:e.item})}}updateSeparatorProps(e){this.setState(r=>({separatorProps:L(L({},r.separatorProps),e)}))}componentWillUnmount(){this.props.onUnmount(this.props.cellKey)}_renderElement(e,r,n,i){if(e&&r&&console.warn("VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take precedence over renderItem."),r)return b.createElement(r,{item:n,index:i,separators:this._separators});if(e)return e({item:n,index:i,separators:this._separators});N(!1,"VirtualizedList: Either ListItemComponent or renderItem props are required but none were found.")}render(){var e=this.props,r=e.CellRendererComponent,n=e.ItemSeparatorComponent,i=e.ListItemComponent,a=e.cellKey,s=e.horizontal,o=e.item,l=e.index,u=e.inversionStyle,c=e.onCellFocusCapture,d=e.onCellLayout,f=e.renderItem,m=this._renderElement(f,i,o,l),h=b.isValidElement(n)?n:n&&b.createElement(n,this.state.separatorProps),g=u?s?[ea.rowReverse,u]:[ea.columnReverse,u]:s?[ea.row,u]:u,v=r?b.createElement(r,Ce({cellKey:a,index:l,item:o,style:g,onFocusCapture:c},d&&{onLayout:this._onLayout}),m,h):b.createElement(Se,Ce({style:g,onFocusCapture:c},d&&{onLayout:this._onLayout}),m,h);return b.createElement(di,{cellKey:this.props.cellKey},v)}}var ea=ze.create({row:{flexDirection:"row"},rowReverse:{flexDirection:"row-reverse"},columnReverse:{flexDirection:"column-reverse"}});function Ep(t,e,r,n){n===void 0&&(n=1);for(var i=e.getItemCount(e.data),a=[],s=0;s<t.length;s++)for(var o=t[s],l=0,u=i-1;l<=u;){var c=l+(u-l>>>1),d=r(c,e),f=d.offset*n,m=(d.offset+d.length)*n;if(c===0&&o<f||c!==0&&o<=f)u=c-1;else if(o>m)l=c+1;else{a[s]=c;break}}return a}function Np(t,e){return e.last-e.first+1-Math.max(0,1+Math.min(e.last,t.last)-Math.max(e.first,t.first))}function Ap(t,e,r,n,i,a){var s=t.getItemCount(t.data);if(s===0)return{first:0,last:-1};var o=a.offset,l=a.velocity,u=a.visibleLength,c=a.zoomScale,d=c===void 0?1:c,f=Math.max(0,o),m=f+u,h=(r-1)*u,g=.5,v=l>1?"after":l<-1?"before":"none",S=Math.max(0,f-(1-g)*h),x=Math.max(0,m+g*h),C=i(s-1,t).offset*d;if(C<S)return{first:Math.max(0,s-1-e),last:s-1};var y=Ep([S,f,m,x],t,i,d),R=y[0],w=y[1],_=y[2],I=y[3];R=R??0,w=w??Math.max(0,R),I=I??s-1,_=_??Math.min(I,w+e-1);for(var k={first:w,last:_},T=Np(n,k);!(w<=R&&_>=I);){var P=T>=e,V=w<=n.first||w>n.last,E=w>R&&(!P||!V),O=_>=n.last||_<n.first,H=_<I&&(!P||!O);if(P&&!E&&!H)break;E&&!(v==="after"&&H&&O)&&(V&&T++,w--),H&&!(v==="before"&&E&&V)&&(O&&T++,_++)}if(!(_>=w&&w>=0&&_<s&&w>=R&&_<=I&&w<=k.first&&_>=k.last))throw new Error("Bad window calculation "+JSON.stringify({first:w,last:_,itemCount:s,overscanFirst:R,overscanLast:I,visible:k}));return{first:w,last:_}}function Tn(t,e){return typeof t=="object"&&(t==null?void 0:t.key)!=null?t.key:typeof t=="object"&&(t==null?void 0:t.id)!=null?t.id:String(e)}var Di={exports:{}};function Ic(t,e){if(t!=null)return t;var r=new Error(e!==void 0?e:"Got unexpected "+t);throw r.framesToPop=1,r}Di.exports=Ic;Di.exports.default=Ic;Object.defineProperty(Di.exports,"__esModule",{value:!0});var Lp=Di.exports;const kp=Vi(Lp);var xl=.001,ta=!1,ra="";function ar(t){return t??!1}function Op(t){return t??10}function na(t){return t??10}function Pp(t){return t??2}function wl(t){return t??2}function Cl(t,e){return t*e/2}function Mp(t){return t??50}function Rl(t){return t??21}function $p(t,e){for(var r=t.length-1;r>=0;r--)if(e(t[r]))return t[r];return null}class Ge extends xp{scrollToEnd(e){var r=e?e.animated:!0,n=this.props.getItemCount(this.props.data)-1;if(!(n<0)){var i=this.__getFrameMetricsApprox(n,this.props),a=Math.max(0,i.offset+i.length+this._footerLength-this._scrollMetrics.visibleLength);if(this._scrollRef!=null){if(this._scrollRef.scrollTo==null){console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo.");return}this._scrollRef.scrollTo(ar(this.props.horizontal)?{x:a,animated:r}:{y:a,animated:r})}}}scrollToIndex(e){var r=this.props,n=r.data,i=r.horizontal,a=r.getItemCount,s=r.getItemLayout,o=r.onScrollToIndexFailed,l=e.animated,u=e.index,c=e.viewOffset,d=e.viewPosition;if(N(u>=0,"scrollToIndex out of range: requested index "+u+" but minimum is 0"),N(a(n)>=1,"scrollToIndex out of range: item length "+a(n)+" but minimum is 1"),N(u<a(n),"scrollToIndex out of range: requested index "+u+" is out of 0 to "+(a(n)-1)),!s&&u>this._highestMeasuredFrameIndex){N(!!o,"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures."),o({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:u});return}var f=this.__getFrameMetricsApprox(Math.floor(u),this.props),m=Math.max(0,this._getOffsetApprox(u,this.props)-(d||0)*(this._scrollMetrics.visibleLength-f.length))-(c||0);if(this._scrollRef!=null){if(this._scrollRef.scrollTo==null){console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo.");return}this._scrollRef.scrollTo(i?{x:m,animated:l}:{y:m,animated:l})}}scrollToItem(e){for(var r=e.item,n=this.props,i=n.data,a=n.getItem,s=n.getItemCount,o=s(i),l=0;l<o;l++)if(a(i,l)===r){this.scrollToIndex(L(L({},e),{},{index:l}));break}}scrollToOffset(e){var r=e.animated,n=e.offset;if(this._scrollRef!=null){if(this._scrollRef.scrollTo==null){console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo.");return}this._scrollRef.scrollTo(ar(this.props.horizontal)?{x:n,animated:r}:{y:n,animated:r})}}recordInteraction(){this._nestedChildLists.forEach(e=>{e.recordInteraction()}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.recordInteraction()}),this._updateViewableItems(this.props,this.state.cellsAroundViewport)}flashScrollIndicators(){this._scrollRef!=null&&this._scrollRef.flashScrollIndicators()}getScrollResponder(){if(this._scrollRef&&this._scrollRef.getScrollResponder)return this._scrollRef.getScrollResponder()}getScrollableNode(){return this._scrollRef&&this._scrollRef.getScrollableNode?this._scrollRef.getScrollableNode():this._scrollRef}getScrollRef(){return this._scrollRef&&this._scrollRef.getScrollRef?this._scrollRef.getScrollRef():this._scrollRef}_getCellKey(){var e;return((e=this.context)==null?void 0:e.cellKey)||"rootList"}hasMore(){return this._hasMore}constructor(e){var r;if(super(e),this._getScrollMetrics=()=>this._scrollMetrics,this._getOutermostParentListRef=()=>this._isNestedWithSameOrientation()?this.context.getOutermostParentListRef():this,this._registerAsNestedChild=o=>{this._nestedChildLists.add(o.ref,o.cellKey),this._hasInteracted&&o.ref.recordInteraction()},this._unregisterAsNestedChild=o=>{this._nestedChildLists.remove(o.ref)},this._onUpdateSeparators=(o,l)=>{o.forEach(u=>{var c=u!=null&&this._cellRefs[u];c&&c.updateSeparatorProps(l)})},this._getSpacerKey=o=>o?"height":"width",this._averageCellLength=0,this._cellRefs={},this._frames={},this._footerLength=0,this._hasTriggeredInitialScrollToIndex=!1,this._hasInteracted=!1,this._hasMore=!1,this._hasWarned={},this._headerLength=0,this._hiPriInProgress=!1,this._highestMeasuredFrameIndex=0,this._indicesToKeys=new Map,this._lastFocusedCellKey=null,this._nestedChildLists=new Sp,this._offsetFromParentVirtualizedList=0,this._prevParentOffset=0,this._scrollMetrics={contentLength:0,dOffset:0,dt:10,offset:0,timestamp:0,velocity:0,visibleLength:0,zoomScale:1},this._scrollRef=null,this._sentStartForContentLength=0,this._sentEndForContentLength=0,this._totalCellLength=0,this._totalCellsMeasured=0,this._viewabilityTuples=[],this._captureScrollRef=o=>{this._scrollRef=o},this._defaultRenderScrollComponent=o=>{var l=o.onRefresh;if(this._isNestedWithSameOrientation())return b.createElement(Se,o);if(l){var u;return N(typeof o.refreshing=="boolean","`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `"+JSON.stringify((u=o.refreshing)!==null&&u!==void 0?u:"undefined")+"`"),b.createElement(xi,Ce({},o,{refreshControl:o.refreshControl==null?b.createElement(Qm,{refreshing:o.refreshing,onRefresh:l,progressViewOffset:o.progressViewOffset}):o.refreshControl}))}else return b.createElement(xi,o)},this._onCellLayout=(o,l,u)=>{var c=o.nativeEvent.layout,d={offset:this._selectOffset(c),length:this._selectLength(c),index:u,inLayout:!0},f=this._frames[l];!f||d.offset!==f.offset||d.length!==f.length||u!==f.index?(this._totalCellLength+=d.length-(f?f.length:0),this._totalCellsMeasured+=f?0:1,this._averageCellLength=this._totalCellLength/this._totalCellsMeasured,this._frames[l]=d,this._highestMeasuredFrameIndex=Math.max(this._highestMeasuredFrameIndex,u),this._scheduleCellsToRenderUpdate()):this._frames[l].inLayout=!0,this._triggerRemeasureForChildListsInCell(l),this._computeBlankness(),this._updateViewableItems(this.props,this.state.cellsAroundViewport)},this._onCellUnmount=o=>{delete this._cellRefs[o];var l=this._frames[o];l&&(this._frames[o]=L(L({},l),{},{inLayout:!1}))},this._onLayout=o=>{this._isNestedWithSameOrientation()?this.measureLayoutRelativeToContainingList():this._scrollMetrics.visibleLength=this._selectLength(o.nativeEvent.layout),this.props.onLayout&&this.props.onLayout(o),this._scheduleCellsToRenderUpdate(),this._maybeCallOnEdgeReached()},this._onLayoutEmpty=o=>{this.props.onLayout&&this.props.onLayout(o)},this._onLayoutFooter=o=>{this._triggerRemeasureForChildListsInCell(this._getFooterCellKey()),this._footerLength=this._selectLength(o.nativeEvent.layout)},this._onLayoutHeader=o=>{this._headerLength=this._selectLength(o.nativeEvent.layout)},this._onContentSizeChange=(o,l)=>{o>0&&l>0&&this.props.initialScrollIndex!=null&&this.props.initialScrollIndex>0&&!this._hasTriggeredInitialScrollToIndex&&(this.props.contentOffset==null&&(this.props.initialScrollIndex<this.props.getItemCount(this.props.data)?this.scrollToIndex({animated:!1,index:kp(this.props.initialScrollIndex)}):this.scrollToEnd({animated:!1})),this._hasTriggeredInitialScrollToIndex=!0),this.props.onContentSizeChange&&this.props.onContentSizeChange(o,l),this._scrollMetrics.contentLength=this._selectLength({height:l,width:o}),this._scheduleCellsToRenderUpdate(),this._maybeCallOnEdgeReached()},this._convertParentScrollMetrics=o=>{var l=o.offset-this._offsetFromParentVirtualizedList,u=o.visibleLength,c=l-this._scrollMetrics.offset,d=this._scrollMetrics.contentLength;return{visibleLength:u,contentLength:d,offset:l,dOffset:c}},this._onScroll=o=>{this._nestedChildLists.forEach(S=>{S._onScroll(o)}),this.props.onScroll&&this.props.onScroll(o);var l=o.timeStamp,u=this._selectLength(o.nativeEvent.layoutMeasurement),c=this._selectLength(o.nativeEvent.contentSize),d=this._selectOffset(o.nativeEvent.contentOffset),f=d-this._scrollMetrics.offset;if(this._isNestedWithSameOrientation()){if(this._scrollMetrics.contentLength===0)return;var m=this._convertParentScrollMetrics({visibleLength:u,offset:d});u=m.visibleLength,c=m.contentLength,d=m.offset,f=m.dOffset}var h=this._scrollMetrics.timestamp?Math.max(1,l-this._scrollMetrics.timestamp):1,g=f/h;h>500&&this._scrollMetrics.dt>500&&c>5*u&&!this._hasWarned.perf&&(bp("VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.",{dt:h,prevDt:this._scrollMetrics.dt,contentLength:c}),this._hasWarned.perf=!0);var v=o.nativeEvent.zoomScale<0?1:o.nativeEvent.zoomScale;this._scrollMetrics={contentLength:c,dt:h,dOffset:f,offset:d,timestamp:l,velocity:g,visibleLength:u,zoomScale:v},this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.props&&(this._maybeCallOnEdgeReached(),g!==0&&this._fillRateHelper.activate(),this._computeBlankness(),this._scheduleCellsToRenderUpdate())},this._onScrollBeginDrag=o=>{this._nestedChildLists.forEach(l=>{l._onScrollBeginDrag(o)}),this._viewabilityTuples.forEach(l=>{l.viewabilityHelper.recordInteraction()}),this._hasInteracted=!0,this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(o)},this._onScrollEndDrag=o=>{this._nestedChildLists.forEach(u=>{u._onScrollEndDrag(o)});var l=o.nativeEvent.velocity;l&&(this._scrollMetrics.velocity=this._selectOffset(l)),this._computeBlankness(),this.props.onScrollEndDrag&&this.props.onScrollEndDrag(o)},this._onMomentumScrollBegin=o=>{this._nestedChildLists.forEach(l=>{l._onMomentumScrollBegin(o)}),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(o)},this._onMomentumScrollEnd=o=>{this._nestedChildLists.forEach(l=>{l._onMomentumScrollEnd(o)}),this._scrollMetrics.velocity=0,this._computeBlankness(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(o)},this._updateCellsToRender=()=>{this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.setState((o,l)=>{var u=this._adjustCellsAroundViewport(l,o.cellsAroundViewport),c=Ge._createRenderMask(l,u,this._getNonViewportRenderRegions(l));return u.first===o.cellsAroundViewport.first&&u.last===o.cellsAroundViewport.last&&c.equals(o.renderMask)?null:{cellsAroundViewport:u,renderMask:c}})},this._createViewToken=(o,l,u)=>{var c=u.data,d=u.getItem,f=d(c,o);return{index:o,item:f,key:this._keyExtractor(f,o,u),isViewable:l}},this._getOffsetApprox=(o,l)=>{if(Number.isInteger(o))return this.__getFrameMetricsApprox(o,l).offset;var u=this.__getFrameMetricsApprox(Math.floor(o),l),c=o-Math.floor(o);return u.offset+c*u.length},this.__getFrameMetricsApprox=(o,l)=>{var u=this._getFrameMetrics(o,l);if(u&&u.index===o)return u;var c=l.data,d=l.getItemCount,f=l.getItemLayout;return N(o>=0&&o<d(c),"Tried to get frame for out of range index "+o),N(!f,"Should not have to estimate frames when a measurement metrics function is provided"),{length:this._averageCellLength,offset:this._averageCellLength*o}},this._getFrameMetrics=(o,l)=>{var u=l.data,c=l.getItem,d=l.getItemCount,f=l.getItemLayout;N(o>=0&&o<d(u),"Tried to get frame for out of range index "+o);var m=c(u,o),h=this._frames[this._keyExtractor(m,o,l)];return(!h||h.index!==o)&&f?f(u,o):h},this._getNonViewportRenderRegions=o=>{if(!(this._lastFocusedCellKey&&this._cellRefs[this._lastFocusedCellKey]))return[];var l=this._cellRefs[this._lastFocusedCellKey],u=l.props.index,c=o.getItemCount(o.data);if(u>=c||this._keyExtractor(o.getItem(o.data,u),u,o)!==this._lastFocusedCellKey)return[];for(var d=u,f=0,m=d-1;m>=0&&f<this._scrollMetrics.visibleLength;m--)d--,f+=this.__getFrameMetricsApprox(m,o).length;for(var h=u,g=0,v=h+1;v<c&&g<this._scrollMetrics.visibleLength;v++)h++,g+=this.__getFrameMetricsApprox(v,o).length;return[{first:d,last:h}]},this._checkProps(e),this._fillRateHelper=new yp(this._getFrameMetrics),this._updateCellsToRenderBatcher=new vp(this._updateCellsToRender,(r=this.props.updateCellsBatchingPeriod)!==null&&r!==void 0?r:50),this.props.viewabilityConfigCallbackPairs)this._viewabilityTuples=this.props.viewabilityConfigCallbackPairs.map(o=>({viewabilityHelper:new yl(o.viewabilityConfig),onViewableItemsChanged:o.onViewableItemsChanged}));else{var n=this.props,i=n.onViewableItemsChanged,a=n.viewabilityConfig;i&&this._viewabilityTuples.push({viewabilityHelper:new yl(a),onViewableItemsChanged:i})}var s=Ge._initialRenderRegion(e);this.state={cellsAroundViewport:s,renderMask:Ge._createRenderMask(e,s)},this.invertedWheelEventHandler=o=>{var l=this.props.horizontal?o.target.scrollLeft:o.target.scrollTop,u=this.props.horizontal?o.target.scrollWidth:o.target.scrollHeight,c=this.props.horizontal?o.target.clientWidth:o.target.clientHeight,d=u>c,f=this.props.horizontal?o.deltaX||o.wheelDeltaX:o.deltaY||o.wheelDeltaY,m=f;d&&(m=f<0?Math.min(f+l,0):Math.max(f-(u-c-l),0));var h=f-m;if(this.props.inverted&&this._scrollRef&&this._scrollRef.getScrollableNode){var g=this._scrollRef.getScrollableNode();if(this.props.horizontal){o.target.scrollLeft+=h;var v=g.scrollLeft-m;g.scrollLeft=this.props.getItemLayout?v:Math.min(v,this._totalCellLength)}else{o.target.scrollTop+=h;var S=g.scrollTop-m;g.scrollTop=this.props.getItemLayout?S:Math.min(S,this._totalCellLength)}o.preventDefault()}}}_checkProps(e){var r=e.onScroll,n=e.windowSize,i=e.getItemCount,a=e.data,s=e.initialScrollIndex;N(!r||!r.__isNative,"Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver"),N(Rl(n)>0,"VirtualizedList: The windowSize prop must be present and set to a value greater than 0."),N(i,'VirtualizedList: The "getItemCount" prop must be provided');var o=i(a);s!=null&&!this._hasTriggeredInitialScrollToIndex&&(s<0||o>0&&s>=o)&&!this._hasWarned.initialScrollIndex&&(console.warn('initialScrollIndex "'+s+'" is not valid (list has '+o+" items)"),this._hasWarned.initialScrollIndex=!0)}static _createRenderMask(e,r,n){var i=e.getItemCount(e.data);N(r.first>=0&&r.last>=r.first-1&&r.last<i,'Invalid cells around viewport "['+r.first+", "+r.last+']" was passed to VirtualizedList._createRenderMask');var a=new _p(i);if(i>0){for(var s=[r,...n??[]],o=0,l=s;o<l.length;o++){var u=l[o];a.addCells(u)}if(e.initialScrollIndex==null||e.initialScrollIndex<=0){var c=Ge._initialRenderRegion(e);a.addCells(c)}var d=new Set(e.stickyHeaderIndices);Ge._ensureClosestStickyHeader(e,d,a,r.first)}return a}static _initialRenderRegion(e){var r,n=e.getItemCount(e.data),i=Math.max(0,Math.min(n-1,Math.floor((r=e.initialScrollIndex)!==null&&r!==void 0?r:0))),a=Math.min(n,i+Op(e.initialNumToRender))-1;return{first:i,last:a}}static _ensureClosestStickyHeader(e,r,n,i){for(var a=e.ListHeaderComponent?1:0,s=i-1;s>=0;s--)if(r.has(s+a)){n.addCells({first:s,last:s});break}}_adjustCellsAroundViewport(e,r){var n=e.data,i=e.getItemCount,a=wl(e.onEndReachedThreshold),s=this._scrollMetrics,o=s.contentLength,l=s.offset,u=s.visibleLength,c=o-u-l;if(u<=0||o<=0)return r.last>=i(n)?Ge._constrainToItemCount(r,e):r;var d;if(e.disableVirtualization){var f=c<a*u?na(e.maxToRenderPerBatch):0;d={first:0,last:Math.min(r.last+f,i(n)-1)}}else{if(e.initialScrollIndex&&!this._scrollMetrics.offset&&Math.abs(c)>=Number.EPSILON)return r.last>=i(n)?Ge._constrainToItemCount(r,e):r;d=Ap(e,na(e.maxToRenderPerBatch),Rl(e.windowSize),r,this.__getFrameMetricsApprox,this._scrollMetrics),N(d.last<i(n),"computeWindowedRenderLimits() should return range in-bounds")}if(this._nestedChildLists.size()>0){var m=this._findFirstChildWithMore(d.first,d.last);d.last=m??d.last}return d}_findFirstChildWithMore(e,r){for(var n=e;n<=r;n++){var i=this._indicesToKeys.get(n);if(i!=null&&this._nestedChildLists.anyInCell(i,a=>a.hasMore()))return n}return null}componentDidMount(){this._isNestedWithSameOrientation()&&this.context.registerAsNestedChild({ref:this,cellKey:this.context.cellKey}),this.setupWebWheelHandler()}componentWillUnmount(){this._isNestedWithSameOrientation()&&this.context.unregisterAsNestedChild({ref:this}),this._updateCellsToRenderBatcher.dispose({abort:!0}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.dispose()}),this._fillRateHelper.deactivateAndFlush(),this.teardownWebWheelHandler()}setupWebWheelHandler(){if(this._scrollRef&&this._scrollRef.getScrollableNode)this._scrollRef.getScrollableNode().addEventListener("wheel",this.invertedWheelEventHandler);else{setTimeout(()=>this.setupWebWheelHandler(),50);return}}teardownWebWheelHandler(){this._scrollRef&&this._scrollRef.getScrollableNode&&this._scrollRef.getScrollableNode().removeEventListener("wheel",this.invertedWheelEventHandler)}static getDerivedStateFromProps(e,r){var n=e.getItemCount(e.data);if(n===r.renderMask.numCells())return r;var i=Ge._constrainToItemCount(r.cellsAroundViewport,e);return{cellsAroundViewport:i,renderMask:Ge._createRenderMask(e,i)}}_pushCells(e,r,n,i,a,s){var o=this,l=this.props,u=l.CellRendererComponent,c=l.ItemSeparatorComponent,d=l.ListHeaderComponent,f=l.ListItemComponent,m=l.data,h=l.debug,g=l.getItem,v=l.getItemCount,S=l.getItemLayout,x=l.horizontal,C=l.renderItem,y=d?1:0,R=v(m)-1,w;a=Math.min(R,a);for(var _=function(){var T=g(m,I),P=o._keyExtractor(T,I,o.props);o._indicesToKeys.set(I,P),n.has(I+y)&&r.push(e.length);var V=S==null||h||o._fillRateHelper.enabled();e.push(b.createElement(Ip,Ce({CellRendererComponent:u,ItemSeparatorComponent:I<R?c:void 0,ListItemComponent:f,cellKey:P,horizontal:x,index:I,inversionStyle:s,item:T,key:P,prevCellKey:w,onUpdateSeparators:o._onUpdateSeparators,onCellFocusCapture:E=>o._onCellFocusCapture(P),onUnmount:o._onCellUnmount,ref:E=>{o._cellRefs[P]=E},renderItem:C},V&&{onCellLayout:o._onCellLayout}))),w=P},I=i;I<=a;I++)_()}static _constrainToItemCount(e,r){var n=r.getItemCount(r.data),i=Math.min(n-1,e.last),a=na(r.maxToRenderPerBatch);return{first:bl(0,n-1-a,e.first),last:i}}_isNestedWithSameOrientation(){var e=this.context;return!!(e&&!!e.horizontal===ar(this.props.horizontal))}_keyExtractor(e,r,n){if(n.keyExtractor!=null)return n.keyExtractor(e,r);var i=Tn(e,r);return i===String(r)&&(ta=!0,e.type&&e.type.displayName&&(ra=e.type.displayName)),i}render(){this._checkProps(this.props);var e=this.props,r=e.ListEmptyComponent,n=e.ListFooterComponent,i=e.ListHeaderComponent,a=this.props,s=a.data,o=a.horizontal,l=this.props.inverted?ar(this.props.horizontal)?gt.horizontallyInverted:gt.verticallyInverted:null,u=[],c=new Set(this.props.stickyHeaderIndices),d=[];if(i){c.has(0)&&d.push(0);var f=b.isValidElement(i)?i:b.createElement(i,null);u.push(b.createElement(di,{cellKey:this._getCellKey()+"-header",key:"$header"},b.createElement(Se,{onLayout:this._onLayoutHeader,style:[l,this.props.ListHeaderComponentStyle]},f)))}var m=this.props.getItemCount(s);if(m===0&&r){var h=b.isValidElement(r)?r:b.createElement(r,null);u.push(b.createElement(di,{cellKey:this._getCellKey()+"-empty",key:"$empty"},b.cloneElement(h,{onLayout:H=>{this._onLayoutEmpty(H),h.props.onLayout&&h.props.onLayout(H)},style:[l,h.props.style]})))}if(m>0){ta=!1,ra="";for(var g=this._getSpacerKey(!o),v=this.state.renderMask.enumerateRegions(),S=$p(v,H=>H.isSpacer),x=Tt(v),C;!(C=x()).done;){var y=C.value;if(y.isSpacer){if(this.props.disableVirtualization)continue;var R=y===S,w=R&&!this.props.getItemLayout,_=w?bl(y.first-1,y.last,this._highestMeasuredFrameIndex):y.last,I=this.__getFrameMetricsApprox(y.first,this.props),k=this.__getFrameMetricsApprox(_,this.props),T=k.offset+k.length-I.offset;u.push(b.createElement(Se,{key:"$spacer-"+y.first,style:{[g]:T}}))}else this._pushCells(u,d,c,y.first,y.last,l)}!this._hasWarned.keys&&ta&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",ra),this._hasWarned.keys=!0)}if(n){var P=b.isValidElement(n)?n:b.createElement(n,null);u.push(b.createElement(di,{cellKey:this._getFooterCellKey(),key:"$footer"},b.createElement(Se,{onLayout:this._onLayoutFooter,style:[l,this.props.ListFooterComponentStyle]},P)))}var V=L(L({},this.props),{},{onContentSizeChange:this._onContentSizeChange,onLayout:this._onLayout,onScroll:this._onScroll,onScrollBeginDrag:this._onScrollBeginDrag,onScrollEndDrag:this._onScrollEndDrag,onMomentumScrollBegin:this._onMomentumScrollBegin,onMomentumScrollEnd:this._onMomentumScrollEnd,scrollEventThrottle:Mp(this.props.scrollEventThrottle),invertStickyHeaders:this.props.invertStickyHeaders!==void 0?this.props.invertStickyHeaders:this.props.inverted,stickyHeaderIndices:d,style:l?[l,this.props.style]:this.props.style});this._hasMore=this.state.cellsAroundViewport.last<m-1;var E=b.createElement(Tp,{value:{cellKey:null,getScrollMetrics:this._getScrollMetrics,horizontal:ar(this.props.horizontal),getOutermostParentListRef:this._getOutermostParentListRef,registerAsNestedChild:this._registerAsNestedChild,unregisterAsNestedChild:this._unregisterAsNestedChild}},b.cloneElement((this.props.renderScrollComponent||this._defaultRenderScrollComponent)(V),{ref:this._captureScrollRef},u)),O=E;return this.props.debug?b.createElement(Se,{style:gt.debug},O,this._renderDebugOverlay()):O}componentDidUpdate(e){var r=this.props,n=r.data,i=r.extraData;(n!==e.data||i!==e.extraData)&&this._viewabilityTuples.forEach(s=>{s.viewabilityHelper.resetViewableIndices()});var a=this._hiPriInProgress;this._scheduleCellsToRenderUpdate(),a&&(this._hiPriInProgress=!1)}_computeBlankness(){this._fillRateHelper.computeBlankness(this.props,this.state.cellsAroundViewport,this._scrollMetrics)}_onCellFocusCapture(e){this._lastFocusedCellKey=e,this._updateCellsToRender()}_triggerRemeasureForChildListsInCell(e){this._nestedChildLists.forEachInCell(e,r=>{r.measureLayoutRelativeToContainingList()})}measureLayoutRelativeToContainingList(){try{if(!this._scrollRef)return;this._scrollRef.measureLayout(this.context.getOutermostParentListRef().getScrollRef(),(e,r,n,i)=>{this._offsetFromParentVirtualizedList=this._selectOffset({x:e,y:r}),this._scrollMetrics.contentLength=this._selectLength({width:n,height:i});var a=this._convertParentScrollMetrics(this.context.getScrollMetrics()),s=this._scrollMetrics.visibleLength!==a.visibleLength||this._scrollMetrics.offset!==a.offset;s&&(this._scrollMetrics.visibleLength=a.visibleLength,this._scrollMetrics.offset=a.offset,this._nestedChildLists.forEach(o=>{o.measureLayoutRelativeToContainingList()}))},e=>{console.warn("VirtualizedList: Encountered an error while measuring a list's offset from its containing VirtualizedList.")})}catch(e){console.warn("measureLayoutRelativeToContainingList threw an error",e.stack)}}_getFooterCellKey(){return this._getCellKey()+"-footer"}_renderDebugOverlay(){for(var e=this._scrollMetrics.visibleLength/(this._scrollMetrics.contentLength||1),r=[],n=this.props.getItemCount(this.props.data),i=0;i<n;i++){var a=this.__getFrameMetricsApprox(i,this.props);a.inLayout&&r.push(a)}var s=this.__getFrameMetricsApprox(this.state.cellsAroundViewport.first,this.props).offset,o=this.__getFrameMetricsApprox(this.state.cellsAroundViewport.last,this.props),l=o.offset+o.length-s,u=this._scrollMetrics.offset,c=this._scrollMetrics.visibleLength;return b.createElement(Se,{style:[gt.debugOverlayBase,gt.debugOverlay]},r.map((d,f)=>b.createElement(Se,{key:"f"+f,style:[gt.debugOverlayBase,gt.debugOverlayFrame,{top:d.offset*e,height:d.length*e}]})),b.createElement(Se,{style:[gt.debugOverlayBase,gt.debugOverlayFrameLast,{top:s*e,height:l*e}]}),b.createElement(Se,{style:[gt.debugOverlayBase,gt.debugOverlayFrameVis,{top:u*e,height:c*e}]}))}_selectLength(e){return ar(this.props.horizontal)?e.width:e.height}_selectOffset(e){return ar(this.props.horizontal)?e.x:e.y}_maybeCallOnEdgeReached(){var e=this.props,r=e.data,n=e.getItemCount,i=e.onStartReached,a=e.onStartReachedThreshold,s=e.onEndReached,o=e.onEndReachedThreshold,l=e.initialScrollIndex,u=this._scrollMetrics,c=u.contentLength,d=u.visibleLength,f=u.offset,m=f,h=c-d-f;m<xl&&(m=0),h<xl&&(h=0);var g=2,v=a!=null?a*d:g,S=o!=null?o*d:g,x=m<=v,C=h<=S;s&&this.state.cellsAroundViewport.last===n(r)-1&&C&&this._scrollMetrics.contentLength!==this._sentEndForContentLength?(this._sentEndForContentLength=this._scrollMetrics.contentLength,s({distanceFromEnd:h})):i!=null&&this.state.cellsAroundViewport.first===0&&x&&this._scrollMetrics.contentLength!==this._sentStartForContentLength?(!l||this._scrollMetrics.timestamp!==0)&&(this._sentStartForContentLength=this._scrollMetrics.contentLength,i({distanceFromStart:m})):(this._sentStartForContentLength=x?this._sentStartForContentLength:0,this._sentEndForContentLength=C?this._sentEndForContentLength:0)}_scheduleCellsToRenderUpdate(){var e=this.state.cellsAroundViewport,r=e.first,n=e.last,i=this._scrollMetrics,a=i.offset,s=i.visibleLength,o=i.velocity,l=this.props.getItemCount(this.props.data),u=!1,c=Pp(this.props.onStartReachedThreshold),d=wl(this.props.onEndReachedThreshold);if(r>0){var f=a-this.__getFrameMetricsApprox(r,this.props).offset;u=f<0||o<-2&&f<Cl(c,s)}if(!u&&n>=0&&n<l-1){var m=this.__getFrameMetricsApprox(n,this.props).offset-(a+s);u=m<0||o>2&&m<Cl(d,s)}if(u&&(this._averageCellLength||this.props.getItemLayout)&&!this._hiPriInProgress){this._hiPriInProgress=!0,this._updateCellsToRenderBatcher.dispose({abort:!0}),this._updateCellsToRender();return}else this._updateCellsToRenderBatcher.schedule()}_updateViewableItems(e,r){this._viewabilityTuples.forEach(n=>{n.viewabilityHelper.onUpdate(e,this._scrollMetrics.offset,this._scrollMetrics.visibleLength,this._getFrameMetrics,this._createViewToken,n.onViewableItemsChanged,r)})}}Ge.contextType=Ii;var gt=ze.create({verticallyInverted:{transform:"scaleY(-1)"},horizontallyInverted:{transform:"scaleX(-1)"},debug:{flex:1},debugOverlayBase:{position:"absolute",top:0,right:0},debugOverlay:{bottom:0,width:20,borderColor:"blue",borderWidth:1},debugOverlayFrame:{left:0,backgroundColor:"orange"},debugOverlayFrameLast:{left:0,borderColor:"green",borderWidth:2},debugOverlayFrameVis:{left:0,borderColor:"red",borderWidth:2}}),Tl=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Bp(t,e){return!!(t===e||Tl(t)&&Tl(e))}function Vp(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(!Bp(t[r],e[r]))return!1;return!0}function Fp(t,e){e===void 0&&(e=Vp);var r=null;function n(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(r&&r.lastThis===this&&e(i,r.lastArgs))return r.lastResult;var s=t.apply(this,i);return r={lastResult:s,lastArgs:i,lastThis:this},s}return n.clear=function(){r=null},n}var Dp=["numColumns","columnWrapperStyle","removeClippedSubviews","strictMode"];function Wp(t){return t??Zs.OS==="android"}function sr(t){return t??1}function zp(t){return typeof Object(t).length=="number"}let Hp=class extends b.PureComponent{scrollToEnd(e){this._listRef&&this._listRef.scrollToEnd(e)}scrollToIndex(e){this._listRef&&this._listRef.scrollToIndex(e)}scrollToItem(e){this._listRef&&this._listRef.scrollToItem(e)}scrollToOffset(e){this._listRef&&this._listRef.scrollToOffset(e)}recordInteraction(){this._listRef&&this._listRef.recordInteraction()}flashScrollIndicators(){this._listRef&&this._listRef.flashScrollIndicators()}getScrollResponder(){if(this._listRef)return this._listRef.getScrollResponder()}getNativeScrollRef(){if(this._listRef)return this._listRef.getScrollRef()}getScrollableNode(){if(this._listRef)return this._listRef.getScrollableNode()}constructor(e){super(e),this._virtualizedListPairs=[],this._captureRef=r=>{this._listRef=r},this._getItem=(r,n)=>{var i=sr(this.props.numColumns);if(i>1){for(var a=[],s=0;s<i;s++){var o=n*i+s;if(o<r.length){var l=r[o];a.push(l)}}return a}else return r[n]},this._getItemCount=r=>{if(r!=null&&zp(r)){var n=sr(this.props.numColumns);return n>1?Math.ceil(r.length/n):r.length}else return 0},this._keyExtractor=(r,n)=>{var i,a=sr(this.props.numColumns),s=(i=this.props.keyExtractor)!==null&&i!==void 0?i:Tn;return a>1?(N(Array.isArray(r),"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.",a),r.map((o,l)=>s(o,n*a+l)).join(":")):s(r,n)},this._renderer=(r,n,i,a,s)=>{var o=sr(a),l=c=>r?b.createElement(r,c):n?n(c):null,u=c=>{if(o>1){var d=c.item,f=c.index;return N(Array.isArray(d),"Expected array of items with numColumns > 1"),b.createElement(Se,{style:[jp.row,i]},d.map((m,h)=>{var g=l({item:m,index:f*o+h,separators:c.separators});return g!=null?b.createElement(b.Fragment,{key:h},g):null}))}else return l(c)};return r?{ListItemComponent:u}:{renderItem:u}},this._memoizedRenderer=Fp(this._renderer),this._checkProps(this.props),this.props.viewabilityConfigCallbackPairs?this._virtualizedListPairs=this.props.viewabilityConfigCallbackPairs.map(r=>({viewabilityConfig:r.viewabilityConfig,onViewableItemsChanged:this._createOnViewableItemsChanged(r.onViewableItemsChanged)})):this.props.onViewableItemsChanged&&this._virtualizedListPairs.push({viewabilityConfig:this.props.viewabilityConfig,onViewableItemsChanged:this._createOnViewableItemsChanged(this.props.onViewableItemsChanged)})}componentDidUpdate(e){N(e.numColumns===this.props.numColumns,"Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component."),N(e.onViewableItemsChanged===this.props.onViewableItemsChanged,"Changing onViewableItemsChanged on the fly is not supported"),N(!Ym(e.viewabilityConfig,this.props.viewabilityConfig),"Changing viewabilityConfig on the fly is not supported"),N(e.viewabilityConfigCallbackPairs===this.props.viewabilityConfigCallbackPairs,"Changing viewabilityConfigCallbackPairs on the fly is not supported"),this._checkProps(this.props)}_checkProps(e){var r=e.getItem,n=e.getItemCount,i=e.horizontal,a=e.columnWrapperStyle,s=e.onViewableItemsChanged,o=e.viewabilityConfigCallbackPairs,l=sr(this.props.numColumns);N(!r&&!n,"FlatList does not support custom data formats."),l>1?N(!i,"numColumns does not support horizontal."):N(!a,"columnWrapperStyle not supported for single column lists"),N(!(s&&o),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")}_pushMultiColumnViewable(e,r){var n,i=sr(this.props.numColumns),a=(n=this.props.keyExtractor)!==null&&n!==void 0?n:Tn;r.item.forEach((s,o)=>{N(r.index!=null,"Missing index!");var l=r.index*i+o;e.push(L(L({},r),{},{item:s,key:a(s,l),index:l}))})}_createOnViewableItemsChanged(e){return r=>{var n=sr(this.props.numColumns);if(e)if(n>1){var i=[],a=[];r.viewableItems.forEach(s=>this._pushMultiColumnViewable(a,s)),r.changed.forEach(s=>this._pushMultiColumnViewable(i,s)),e({viewableItems:a,changed:i})}else e(r)}}render(){var e=this.props,r=e.numColumns,n=e.columnWrapperStyle,i=e.removeClippedSubviews,a=e.strictMode,s=a===void 0?!1:a,o=Je(e,Dp),l=s?this._memoizedRenderer:this._renderer;return b.createElement(Ge,Ce({},o,{getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs,removeClippedSubviews:Wp(i)},l(this.props.ListItemComponent,this.props.renderItem,n,r,this.props.extraData)))}};var jp=ze.create({row:{flexDirection:"row"}});function Up(t){return null}const Kp=Up(),nn=new Tc;class Yp{constructor(e){}addListener(e,r,n){var i;(i=this._nativeModule)==null||i.addListener(e);var a=nn.addListener(e,r,n);return{remove:()=>{if(a!=null){var s;(s=this._nativeModule)==null||s.removeListeners(1),a.remove(),a=null}}}}removeListener(e,r){var n;(n=this._nativeModule)==null||n.removeListeners(1),nn.removeListener(e,r)}emit(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];nn.emit(e,...n)}removeAllListeners(e){var r;N(e!=null,"`NativeEventEmitter.removeAllListener()` requires a non-null argument."),(r=this._nativeModule)==null||r.removeListeners(this.listenerCount(e)),nn.removeAllListeners(e)}listenerCount(e){return nn.listenerCount(e)}}var eo=Kp,qp=1,Gp=1,ia,aa=new Set,sa=!1,Il=[],Y=eo,we={getValue:function(e,r){N(Y,"Native animated module is not available"),we.queueOperation(Y.getValue,e,r)},setWaitingForIdentifier:function(e){aa.add(e),sa=!0},unsetWaitingForIdentifier:function(e){aa.delete(e),aa.size===0&&(sa=!1,we.disableQueue())},disableQueue:function(){N(Y,"Native animated module is not available")},flushQueue:function(){},queueOperation:function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];sa||Il.length!==0?Il.push(()=>e(...n)):e(...n)},createAnimatedNode:function(e,r){N(Y,"Native animated module is not available"),we.queueOperation(Y.createAnimatedNode,e,r)},updateAnimatedNodeConfig:function(e,r){N(Y,"Native animated module is not available")},startListeningToAnimatedNodeValue:function(e){N(Y,"Native animated module is not available"),we.queueOperation(Y.startListeningToAnimatedNodeValue,e)},stopListeningToAnimatedNodeValue:function(e){N(Y,"Native animated module is not available"),we.queueOperation(Y.stopListeningToAnimatedNodeValue,e)},connectAnimatedNodes:function(e,r){N(Y,"Native animated module is not available"),we.queueOperation(Y.connectAnimatedNodes,e,r)},disconnectAnimatedNodes:function(e,r){N(Y,"Native animated module is not available"),we.queueOperation(Y.disconnectAnimatedNodes,e,r)},startAnimatingNode:function(e,r,n,i){N(Y,"Native animated module is not available"),we.queueOperation(Y.startAnimatingNode,e,r,n,i)},stopAnimation:function(e){N(Y,"Native animated module is not available"),we.queueOperation(Y.stopAnimation,e)},setAnimatedNodeValue:function(e,r){N(Y,"Native animated module is not available"),we.queueOperation(Y.setAnimatedNodeValue,e,r)},setAnimatedNodeOffset:function(e,r){N(Y,"Native animated module is not available"),we.queueOperation(Y.setAnimatedNodeOffset,e,r)},flattenAnimatedNodeOffset:function(e){N(Y,"Native animated module is not available"),we.queueOperation(Y.flattenAnimatedNodeOffset,e)},extractAnimatedNodeOffset:function(e){N(Y,"Native animated module is not available"),we.queueOperation(Y.extractAnimatedNodeOffset,e)},connectAnimatedNodeToView:function(e,r){N(Y,"Native animated module is not available"),we.queueOperation(Y.connectAnimatedNodeToView,e,r)},disconnectAnimatedNodeFromView:function(e,r){N(Y,"Native animated module is not available"),we.queueOperation(Y.disconnectAnimatedNodeFromView,e,r)},restoreDefaultValues:function(e){N(Y,"Native animated module is not available"),Y.restoreDefaultValues!=null&&we.queueOperation(Y.restoreDefaultValues,e)},dropAnimatedNode:function(e){N(Y,"Native animated module is not available"),we.queueOperation(Y.dropAnimatedNode,e)},addAnimatedEventToView:function(e,r,n){N(Y,"Native animated module is not available"),we.queueOperation(Y.addAnimatedEventToView,e,r,n)},removeAnimatedEventFromView(t,e,r){N(Y,"Native animated module is not available"),we.queueOperation(Y.removeAnimatedEventFromView,t,e,r)}},Ec={backgroundColor:!0,borderBottomColor:!0,borderColor:!0,borderEndColor:!0,borderLeftColor:!0,borderRightColor:!0,borderStartColor:!0,borderTopColor:!0,color:!0,tintColor:!0},Nc=L(L({},Ec),{},{borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderRadius:!0,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,elevation:!0,opacity:!0,transform:!0,zIndex:!0,shadowOpacity:!0,shadowRadius:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0}),Ac={translateX:!0,translateY:!0,scale:!0,scaleX:!0,scaleY:!0,rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,perspective:!0},Lc={inputRange:!0,outputRange:!0,extrapolate:!0,extrapolateRight:!0,extrapolateLeft:!0};function Xp(t){Nc[t]=!0}function Zp(t){Ac[t]=!0}function Qp(t){Lc[t]=!0}function Jp(t){return Ec.hasOwnProperty(t)}function kc(t){return Nc.hasOwnProperty(t)}function Oc(t){return Ac.hasOwnProperty(t)}function Pc(t){return Lc.hasOwnProperty(t)}function eg(t){t.forEach(e=>{if(!Oc(e.property))throw new Error("Property '"+e.property+"' is not supported by native animated module")})}function tg(t){for(var e in t)if(!kc(e))throw new Error("Style property '"+e+"' is not supported by native animated module")}function rg(t){for(var e in t)if(!Pc(e))throw new Error("Interpolation property '"+e+"' is not supported by native animated module")}function ng(){return qp++}function Mc(){return Gp++}function ig(){N(eo,"Native animated module is not available")}var El=!1;function Vr(t){return t.useNativeDriver==null&&console.warn("Animated: `useNativeDriver` was not specified. This is a required option and must be explicitly set to `true` or `false`"),t.useNativeDriver===!0&&!eo?(El||(console.warn("Animated: `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation` module to this app, or remove `useNativeDriver`. Make sure to run `bundle exec pod install` first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md"),El=!0),!1):t.useNativeDriver||!1}function ag(t){if(typeof t!="string")return t;if(/deg$/.test(t)){var e=parseFloat(t)||0,r=e*Math.PI/180;return r}else return t}const se={API:we,isSupportedColorStyleProp:Jp,isSupportedStyleProp:kc,isSupportedTransformProp:Oc,isSupportedInterpolationParam:Pc,addWhitelistedStyleProp:Xp,addWhitelistedTransformProp:Zp,addWhitelistedInterpolationParam:Qp,validateStyles:tg,validateTransform:eg,validateInterpolation:rg,generateNewNodeTag:ng,generateNewAnimationId:Mc,assertNativeAnimatedModule:ig,shouldUseNativeDriver:Vr,transformDataType:ag,get nativeEventEmitter(){return ia||(ia=new Yp(null)),ia}};var Nl=se.API,sg=1;class ee{__attach(){}__detach(){this.__isNative&&this.__nativeTag!=null&&(se.API.dropAnimatedNode(this.__nativeTag),this.__nativeTag=void 0)}__getValue(){}__getAnimatedValue(){return this.__getValue()}__addChild(e){}__removeChild(e){}__getChildren(){return[]}constructor(){this._listeners={}}__makeNative(e){if(!this.__isNative)throw new Error('This node cannot be made a "native" animated node');this._platformConfig=e,this.hasListeners()&&this._startListeningToNativeValueUpdates()}addListener(e){var r=String(sg++);return this._listeners[r]=e,this.__isNative&&this._startListeningToNativeValueUpdates(),r}removeListener(e){delete this._listeners[e],this.__isNative&&!this.hasListeners()&&this._stopListeningForNativeValueUpdates()}removeAllListeners(){this._listeners={},this.__isNative&&this._stopListeningForNativeValueUpdates()}hasListeners(){return!!Object.keys(this._listeners).length}_startListeningToNativeValueUpdates(){this.__nativeAnimatedValueListener&&!this.__shouldUpdateListenersForNewNativeTag||(this.__shouldUpdateListenersForNewNativeTag&&(this.__shouldUpdateListenersForNewNativeTag=!1,this._stopListeningForNativeValueUpdates()),Nl.startListeningToAnimatedNodeValue(this.__getNativeTag()),this.__nativeAnimatedValueListener=se.nativeEventEmitter.addListener("onAnimatedValueUpdate",e=>{e.tag===this.__getNativeTag()&&this.__onAnimatedValueUpdateReceived(e.value)}))}__onAnimatedValueUpdateReceived(e){this.__callListeners(e)}__callListeners(e){for(var r in this._listeners)this._listeners[r]({value:e})}_stopListeningForNativeValueUpdates(){this.__nativeAnimatedValueListener&&(this.__nativeAnimatedValueListener.remove(),this.__nativeAnimatedValueListener=null,Nl.stopListeningToAnimatedNodeValue(this.__getNativeTag()))}__getNativeTag(){var e;se.assertNativeAnimatedModule(),N(this.__isNative,'Attempt to get native tag from node not marked as "native"');var r=(e=this.__nativeTag)!==null&&e!==void 0?e:se.generateNewNodeTag();if(this.__nativeTag==null){this.__nativeTag=r;var n=this.__getNativeConfig();this._platformConfig&&(n.platformConfig=this._platformConfig),se.API.createAnimatedNode(r,n),this.__shouldUpdateListenersForNewNativeTag=!0}return r}__getNativeConfig(){throw new Error("This JS animated node type cannot be used as native animated node")}toJSON(){return this.__getValue()}__getPlatformConfig(){return this._platformConfig}__setPlatformConfig(e){this._platformConfig=e}}class ut extends ee{constructor(){super(),this._children=[]}__makeNative(e){if(!this.__isNative){this.__isNative=!0;for(var r=Tt(this._children),n;!(n=r()).done;){var i=n.value;i.__makeNative(e),se.API.connectAnimatedNodes(this.__getNativeTag(),i.__getNativeTag())}}super.__makeNative(e)}__addChild(e){this._children.length===0&&this.__attach(),this._children.push(e),this.__isNative&&(e.__makeNative(this.__getPlatformConfig()),se.API.connectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()))}__removeChild(e){var r=this._children.indexOf(e);if(r===-1){console.warn("Trying to remove a child that doesn't exist");return}this.__isNative&&e.__isNative&&se.API.disconnectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()),this._children.splice(r,1),this._children.length===0&&this.__detach()}__getChildren(){return this._children}__callListeners(e){if(super.__callListeners(e),!this.__isNative)for(var r=Tt(this._children),n;!(n=r()).done;){var i=n.value;i.__getValue&&i.__callListeners(i.__getValue())}}}var og=t=>t;function to(t){if(t.outputRange&&typeof t.outputRange[0]=="string")return cg(t);var e=t.outputRange,r=t.inputRange,n=t.easing||og,i="extend";t.extrapolateLeft!==void 0?i=t.extrapolateLeft:t.extrapolate!==void 0&&(i=t.extrapolate);var a="extend";return t.extrapolateRight!==void 0?a=t.extrapolateRight:t.extrapolate!==void 0&&(a=t.extrapolate),s=>{N(typeof s=="number","Cannot interpolation an input which is not a number");var o=hg(s,r);return lg(s,r[o],r[o+1],e[o],e[o+1],n,i,a)}}function lg(t,e,r,n,i,a,s,o){var l=t;if(l<e){if(s==="identity")return l;s==="clamp"&&(l=e)}if(l>r){if(o==="identity")return l;o==="clamp"&&(l=r)}return n===i?n:e===r?t<=e?n:i:(e===-1/0?l=-l:r===1/0?l=l-e:l=(l-e)/(r-e),l=a(l),n===-1/0?l=-l:i===1/0?l=l+n:l=l*(i-n)+n,l)}function ug(t){var e=js(t);if(e===null||typeof e!="number")return t;e=e||0;var r=(e&4278190080)>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=(e&255)/255;return"rgba("+r+", "+n+", "+i+", "+a+")"}var Ar=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;function cg(t){var e=t.outputRange;N(e.length>=2,"Bad output range"),e=e.map(ug),fg(e);var r=e[0].match(Ar).map(()=>[]);e.forEach(a=>{a.match(Ar).forEach((s,o)=>{r[o].push(+s)})});var n=e[0].match(Ar).map((a,s)=>to(L(L({},t),{},{outputRange:r[s]}))),i=dg(e[0]);return a=>{var s=0;return e[0].replace(Ar,()=>{var o=+n[s++](a);return i&&(o=s<4?Math.round(o):Math.round(o*1e3)/1e3),String(o)})}}function dg(t){return typeof t=="string"&&t.startsWith("rgb")}function fg(t){for(var e=t[0].replace(Ar,""),r=1;r<t.length;++r)N(e===t[r].replace(Ar,""),"invalid pattern "+t[0]+" and "+t[r])}function hg(t,e){var r;for(r=1;r<e.length-1&&!(e[r]>=t);++r);return r-1}class ct extends ut{constructor(e,r){super(),this._parent=e,this._config=r,this._interpolation=to(r)}__makeNative(e){this._parent.__makeNative(e),super.__makeNative(e)}__getValue(){var e=this._parent.__getValue();return N(typeof e=="number","Cannot interpolate an input which is not a number."),this._interpolation(e)}interpolate(e){return new ct(this,e)}__attach(){this._parent.__addChild(this)}__detach(){this._parent.__removeChild(this),super.__detach()}__transformDataType(e){return e.map(se.transformDataType)}__getNativeConfig(){return{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||"extend",extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||"extend",type:"interpolation"}}}ct.__createInterpolation=to;var Lt=se.API;function mg(t){var e=new Set;function r(n){typeof n.update=="function"?e.add(n):n.__getChildren().forEach(r)}r(t),e.forEach(n=>n.update())}function pg(t,e){Lt.setWaitingForIdentifier(t),e(),Lt.unsetWaitingForIdentifier(t)}class oe extends ut{constructor(e,r){if(super(),typeof e!="number")throw new Error("AnimatedValue: Attempting to set value to undefined");this._startingValue=this._value=e,this._offset=0,this._animation=null,r&&r.useNativeDriver&&this.__makeNative()}__detach(){this.__isNative&&Lt.getValue(this.__getNativeTag(),e=>{this._value=e-this._offset}),this.stopAnimation(),super.__detach()}__getValue(){return this._value+this._offset}setValue(e){this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(e,!this.__isNative),this.__isNative&&pg(this.__getNativeTag().toString(),()=>Lt.setAnimatedNodeValue(this.__getNativeTag(),e))}setOffset(e){this._offset=e,this.__isNative&&Lt.setAnimatedNodeOffset(this.__getNativeTag(),e)}flattenOffset(){this._value+=this._offset,this._offset=0,this.__isNative&&Lt.flattenAnimatedNodeOffset(this.__getNativeTag())}extractOffset(){this._offset+=this._value,this._value=0,this.__isNative&&Lt.extractAnimatedNodeOffset(this.__getNativeTag())}stopAnimation(e){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,e&&(this.__isNative?Lt.getValue(this.__getNativeTag(),e):e(this.__getValue()))}resetAnimation(e){this.stopAnimation(e),this._value=this._startingValue,this.__isNative&&Lt.setAnimatedNodeValue(this.__getNativeTag(),this._startingValue)}__onAnimatedValueUpdateReceived(e){this._updateValue(e,!1)}interpolate(e){return new ct(this,e)}animate(e,r){var n=null;e.__isInteraction&&(n=Rn.createInteractionHandle());var i=this._animation;this._animation&&this._animation.stop(),this._animation=e,e.start(this._value,a=>{this._updateValue(a,!0)},a=>{this._animation=null,n!==null&&Rn.clearInteractionHandle(n),r&&r(a)},i,this)}stopTracking(){this._tracking&&this._tracking.__detach(),this._tracking=null}track(e){this.stopTracking(),this._tracking=e,this._tracking&&this._tracking.update()}_updateValue(e,r){if(e===void 0)throw new Error("AnimatedValue: Attempting to set value to undefined");this._value=e,r&&mg(this),super.__callListeners(this.__getValue())}__getNativeConfig(){return{type:"value",value:this._value,offset:this._offset}}}function ro(t,e,r){var n=[],i=(a,s)=>{if(a instanceof oe)a.__makeNative(),n.push({nativeEventPath:s,animatedValueTag:a.__getNativeTag()});else if(typeof a=="object")for(var o in a)i(a[o],s.concat(o))};return N(r[0]&&r[0].nativeEvent,"Native driven events only support animated values contained inside `nativeEvent`."),i(r[0].nativeEvent,[]),t!=null&&n.forEach(a=>{se.API.addAnimatedEventToView(t,e,a)}),{detach(){t!=null&&n.forEach(a=>{se.API.removeAnimatedEventFromView(t,e,a.animatedValueTag)})}}}class gr{constructor(e,r){this._listeners=[],this._argMapping=e,r==null&&(console.warn("Animated.event now requires a second argument for options"),r={useNativeDriver:!1}),r.listener&&this.__addListener(r.listener),this._callListeners=this._callListeners.bind(this),this._attachedEvent=null,this.__isNative=Vr(r)}__addListener(e){this._listeners.push(e)}__removeListener(e){this._listeners=this._listeners.filter(r=>r!==e)}__attach(e,r){N(this.__isNative,"Only native driven events need to be attached."),this._attachedEvent=ro(e,r,this._argMapping)}__detach(e,r){N(this.__isNative,"Only native driven events need to be detached."),this._attachedEvent&&this._attachedEvent.detach()}__getHandler(){var e=this;return this.__isNative?this._callListeners:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var a=(s,o,l)=>{if(s instanceof oe)typeof o=="number"&&s.setValue(o);else if(typeof s=="object")for(var u in s)a(s[u],o[u])};e._argMapping.forEach((s,o)=>{a(s,n[o])}),e._callListeners(...n)}}_callListeners(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];this._listeners.forEach(i=>i(...r))}}class gg extends ut{constructor(e){super(),this._transforms=e}__makeNative(){this._transforms.forEach(e=>{for(var r in e){var n=e[r];n instanceof ee&&n.__makeNative()}}),super.__makeNative()}__getValue(){return this._transforms.map(e=>{var r={};for(var n in e){var i=e[n];i instanceof ee?r[n]=i.__getValue():r[n]=i}return r})}__getAnimatedValue(){return this._transforms.map(e=>{var r={};for(var n in e){var i=e[n];i instanceof ee?r[n]=i.__getAnimatedValue():r[n]=i}return r})}__attach(){this._transforms.forEach(e=>{for(var r in e){var n=e[r];n instanceof ee&&n.__addChild(this)}})}__detach(){this._transforms.forEach(e=>{for(var r in e){var n=e[r];n instanceof ee&&n.__removeChild(this)}}),super.__detach()}__getNativeConfig(){var e=[];return this._transforms.forEach(r=>{for(var n in r){var i=r[n];i instanceof ee?e.push({type:"animated",property:n,nodeTag:i.__getNativeTag()}):e.push({type:"static",property:n,value:se.transformDataType(i)})}}),se.validateTransform(e),{type:"transform",transforms:e}}}var vg=ze.flatten;function $c(t){var e=vg(t),r={};for(var n in e){var i=e[n];n==="transform"&&Array.isArray(i)?r[n]=new gg(i):i instanceof ee?r[n]=i:i&&!Array.isArray(i)&&typeof i=="object"&&(r[n]=$c(i))}return r}class Al extends ut{constructor(e){super(),this._inputStyle=e,this._style=$c(e)}_walkStyleAndGetValues(e){var r={};for(var n in e){var i=e[n];i instanceof ee?i.__isNative||(r[n]=i.__getValue()):i&&!Array.isArray(i)&&typeof i=="object"?r[n]=this._walkStyleAndGetValues(i):r[n]=i}return r}__getValue(){return[this._inputStyle,this._walkStyleAndGetValues(this._style)]}_walkStyleAndGetAnimatedValues(e){var r={};for(var n in e){var i=e[n];i instanceof ee?r[n]=i.__getAnimatedValue():i&&!Array.isArray(i)&&typeof i=="object"&&(r[n]=this._walkStyleAndGetAnimatedValues(i))}return r}__getAnimatedValue(){return this._walkStyleAndGetAnimatedValues(this._style)}__attach(){for(var e in this._style){var r=this._style[e];r instanceof ee&&r.__addChild(this)}}__detach(){for(var e in this._style){var r=this._style[e];r instanceof ee&&r.__removeChild(this)}super.__detach()}__makeNative(){for(var e in this._style){var r=this._style[e];r instanceof ee&&r.__makeNative()}super.__makeNative()}__getNativeConfig(){var e={};for(var r in this._style)if(this._style[r]instanceof ee){var n=this._style[r];n.__makeNative(),e[r]=n.__getNativeTag()}return se.validateStyles(e),{type:"style",style:e}}}class bg extends ee{constructor(e,r){super(),e.style&&(e=L(L({},e),{},{style:new Al(e.style)})),this._props=e,this._callback=r,this.__attach()}__getValue(){var e={};for(var r in this._props){var n=this._props[r];n instanceof ee?(!n.__isNative||n instanceof Al)&&(e[r]=n.__getValue()):n instanceof gr?e[r]=n.__getHandler():e[r]=n}return e}__getAnimatedValue(){var e={};for(var r in this._props){var n=this._props[r];n instanceof ee&&(e[r]=n.__getAnimatedValue())}return e}__attach(){for(var e in this._props){var r=this._props[e];r instanceof ee&&r.__addChild(this)}}__detach(){this.__isNative&&this._animatedView&&this.__disconnectAnimatedView();for(var e in this._props){var r=this._props[e];r instanceof ee&&r.__removeChild(this)}super.__detach()}update(){this._callback()}__makeNative(){if(!this.__isNative){this.__isNative=!0;for(var e in this._props){var r=this._props[e];r instanceof ee&&r.__makeNative()}this._animatedView&&this.__connectAnimatedView()}}setNativeView(e){this._animatedView!==e&&(this._animatedView=e,this.__isNative&&this.__connectAnimatedView())}__connectAnimatedView(){N(this.__isNative,'Expected node to be marked as "native"');var e=this._animatedView;N(e!=null,"Unable to locate attached view in the native tree"),se.API.connectAnimatedNodeToView(this.__getNativeTag(),e)}__disconnectAnimatedView(){N(this.__isNative,'Expected node to be marked as "native"');var e=this._animatedView;N(e!=null,"Unable to locate attached view in the native tree"),se.API.disconnectAnimatedNodeFromView(this.__getNativeTag(),e)}__restoreDefaultValues(){this.__isNative&&se.API.restoreDefaultValues(this.__getNativeTag())}__getNativeConfig(){var e={};for(var r in this._props){var n=this._props[r];n instanceof ee&&(n.__makeNative(),e[r]=n.__getNativeTag())}return{type:"props",props:e}}}function _g(t){var e=b.useRef(void 0);return b.useCallback(r=>{e.current&&(e.current(),e.current=void 0),r!=null&&(e.current=t(r))},[t])}function Sg(t){var e=b.useReducer(o=>o+1,0),r=e[1],n=b.useRef(null),i=b.useMemo(()=>new bg(t,()=>n.current==null?void 0:n.current()),[t]);xg(i);var a=b.useCallback(o=>{i.setNativeView(o),n.current=()=>{r()};var l=wg(o),u=[];for(var c in t){var d=t[c];d instanceof gr&&d.__isNative&&(d.__attach(l,c),u.push([c,d]))}return()=>{n.current=null;for(var f=0,m=u;f<m.length;f++){var h=m[f],g=h[0],v=h[1];v.__detach(l,g)}}},[t,i]),s=_g(a);return[yg(i),s]}function yg(t){return L(L({},t.__getValue()),{},{collapsable:!1})}function xg(t){var e=b.useRef(null),r=b.useRef(!1);b.useEffect(()=>{}),bi(()=>(r.current=!1,()=>{r.current=!0}),[]),bi(()=>{if(t.__attach(),e.current!=null){var n=e.current;n.__restoreDefaultValues(),n.__detach(),e.current=null}return()=>{r.current?t.__detach():e.current=t}},[t])}function wg(t){return typeof t=="object"&&typeof(t==null?void 0:t.getScrollableNode)=="function"?t.getScrollableNode():t}function Cg(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return b.useCallback(n=>{for(var i=0,a=e;i<a.length;i++){var s=a[i];s!=null&&(typeof s=="function"?s(n):s.current=n)}},[...e])}var Rg=["style"];function Zt(t){return b.forwardRef((e,r)=>{var n=Sg(e),i=n[0],a=n[1],s=Cg(a,r),o=i.passthroughAnimatedPropExplicitValues,l=i.style,u=o??{},c=u.style,d=Je(u,Rg),f=[l,c];return b.createElement(t,Ce({},i,d,{style:f,ref:s}))})}var Tg=b.forwardRef((t,e)=>b.createElement(Hp,Ce({scrollEventThrottle:1e-4},t,{ref:e})));const Ig=Zt(Tg);var Eg=[];function Bc(t){return Eg[t-1]}var Ng=/^data:/;class Ze{static has(e){var r=Ze._entries,n=Ng.test(e);return n||!!r[e]}static add(e){var r=Ze._entries,n=Date.now();r[e]?(r[e].lastUsedTimestamp=n,r[e].refCount+=1):r[e]={lastUsedTimestamp:n,refCount:1}}static remove(e){var r=Ze._entries;r[e]&&(r[e].refCount-=1),Ze._cleanUpIfNeeded()}static _cleanUpIfNeeded(){var e=Ze._entries,r=Object.keys(e);if(r.length+1>Ze._maximumEntries){var n,i;r.forEach(a=>{var s=e[a];(!i||s.lastUsedTimestamp<i.lastUsedTimestamp)&&s.refCount===0&&(n=a,i=s)}),n&&delete e[n]}}}Ze._maximumEntries=256;Ze._entries={};var oa=0,qn={},It={abort(t){var e=qn[""+t];e&&(e.onerror=null,e.onload=null,e=null,delete qn[""+t])},getSize(t,e,r){var n=!1,i=setInterval(s,16),a=It.load(t,s,o);function s(){var l=qn[""+a];if(l){var u=l.naturalHeight,c=l.naturalWidth;u&&c&&(e(c,u),n=!0)}n&&(It.abort(a),clearInterval(i))}function o(){typeof r=="function"&&r(),It.abort(a),clearInterval(i)}},has(t){return Ze.has(t)},load(t,e,r){oa+=1;var n=new window.Image;return n.onerror=r,n.onload=i=>{var a=()=>e({nativeEvent:i});typeof n.decode=="function"?n.decode().then(a,a):setTimeout(a,0)},n.src=t,qn[""+oa]=n,oa},prefetch(t){return new Promise((e,r)=>{It.load(t,()=>{Ze.add(t),Ze.remove(t),e()},r)})},queryCache(t){var e={};return t.forEach(r=>{Ze.has(r)&&(e[r]="disk/memory")}),Promise.resolve(e)}};class pn{static get(){return is.get("window").scale}static getFontScale(){return is.get("window").fontScale||pn.get()}static getPixelSizeForLayoutSize(e){return Math.round(e*pn.get())}static roundToNearestPixel(e){var r=pn.get();return Math.round(e*r)/r}}var Ag=["aria-label","accessibilityLabel","blurRadius","defaultSource","draggable","onError","onLayout","onLoad","onLoadEnd","onLoadStart","pointerEvents","source","style"],Lg="ERRORED",la="LOADED",Ll="LOADING",kg="IDLE",Og=0,Pg=/^(data:image\/svg\+xml;utf8,)(.*)/;function Mg(t,e){return t&&e!=null?b.createElement("svg",{style:{position:"absolute",height:0,visibility:"hidden",width:0}},b.createElement("defs",null,b.createElement("filter",{id:"tint-"+e,suppressHydrationWarning:!0},b.createElement("feFlood",{floodColor:""+t,key:t}),b.createElement("feComposite",{in2:"SourceAlpha",operator:"in"})))):null}function $g(t,e,r,n){var i=ze.flatten(t),a=i.filter,s=i.resizeMode,o=i.shadowOffset,l=i.tintColor;i.resizeMode,i.tintColor;var u=[],c=null;if(a&&u.push(a),e&&u.push("blur("+e+"px)"),o){var d=Ku(i);d&&u.push("drop-shadow("+d+")")}return(n||l)&&r!=null&&u.push("url(#tint-"+r+")"),u.length>0&&(c=u.join(" ")),[s,c,l]}function Bg(t){if(typeof t=="number"){var e=Bc(t),r=e.height,n=e.width;return{height:r,width:n}}else if(t!=null&&!Array.isArray(t)&&typeof t=="object"){var i=t.height,a=t.width;return{height:i,width:a}}}function ua(t){var e=null;if(typeof t=="number"){var r=Bc(t);if(r==null)throw new Error('Image: asset with ID "'+t+'" could not be found. Please check the image source or packager.');var n=r.scales[0];if(r.scales.length>1){var i=pn.get();n=r.scales.reduce((c,d)=>Math.abs(d-i)<Math.abs(c-i)?d:c)}var a=n!==1?"@"+n+"x":"";e=r?r.httpServerLocation+"/"+r.name+a+"."+r.type:""}else typeof t=="string"?e=t:t&&typeof t.uri=="string"&&(e=t.uri);if(e){var s=e.match(Pg);if(s){var o=s[1],l=s[2],u=encodeURIComponent(l);return""+o+u}}return e}var Vc=b.forwardRef((t,e)=>{var r=t["aria-label"],n=t.accessibilityLabel,i=t.blurRadius,a=t.defaultSource,s=t.draggable,o=t.onError,l=t.onLayout,u=t.onLoad,c=t.onLoadEnd,d=t.onLoadStart,f=t.pointerEvents,m=t.source,h=t.style,g=Je(t,Ag),v=r||n,S=b.useState(()=>{var Re=ua(m);if(Re!=null){var ye=It.has(Re);if(ye)return la}return kg}),x=S[0],C=S[1],y=b.useState({}),R=y[0],w=y[1],_=b.useContext(Si),I=b.useRef(null),k=b.useRef(Og++),T=b.useRef(null),P=x===la||x===Ll&&a==null,V=$g(h,i,k.current,t.tintColor),E=V[0],O=V[1],H=V[2],F=t.resizeMode||E||"cover",G=t.tintColor||H,Z=P?m:a,J=ua(Z),M=Bg(Z),Te=J?'url("'+J+'")':null,Me=me(),Fe=J?Xs("img",{alt:v||"",style:an.accessibilityImage$raw,draggable:s||!1,ref:I,src:J}):null;function me(){if(I.current!=null&&(F==="center"||F==="repeat")){var Re=I.current,ye=Re.naturalHeight,Ie=Re.naturalWidth,Le=R.height,pe=R.width;if(ye&&Ie&&Le&&pe){var dt=Math.min(1,pe/Ie,Le/ye),vt=Math.ceil(dt*Ie),bt=Math.ceil(dt*ye);return vt+"px "+bt+"px"}}}function D(Re){if(F==="center"||F==="repeat"||l){var ye=Re.nativeEvent.layout;l&&l(Re),w(ye)}}var Ke=ua(m);return b.useEffect(()=>{Re(),Ke!=null&&(C(Ll),d&&d(),T.current=It.load(Ke,function(Ie){C(la),u&&u(Ie),c&&c()},function(){C(Lg),o&&o({nativeEvent:{error:"Failed to load resource "+Ke}}),c&&c()}));function Re(){T.current!=null&&(It.abort(T.current),T.current=null)}return Re},[Ke,T,C,o,u,c,d]),b.createElement(Se,Ce({},g,{"aria-label":v,onLayout:D,pointerEvents:f,ref:e,style:[an.root,_&&an.inline,M,h,an.undo,{boxShadow:null}]}),b.createElement(Se,{style:[an.image,Vg[F],{backgroundImage:Te,filter:O},Me!=null&&{backgroundSize:Me}],suppressHydrationWarning:!0}),Fe,Mg(G,k.current))});Vc.displayName="Image";var Wi=Vc;Wi.getSize=function(t,e,r){It.getSize(t,e,r)};Wi.prefetch=function(t){return It.prefetch(t)};Wi.queryCache=function(t){return It.queryCache(t)};var an=ze.create({root:{flexBasis:"auto",overflow:"hidden",zIndex:0},inline:{display:"inline-flex"},undo:{blurRadius:null,shadowColor:null,shadowOpacity:null,shadowOffset:null,shadowRadius:null,tintColor:null,overlayColor:null,resizeMode:null},image:L(L({},ze.absoluteFillObject),{},{backgroundColor:"transparent",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",height:"100%",width:"100%",zIndex:-1}),accessibilityImage$raw:L(L({},ze.absoluteFillObject),{},{height:"100%",opacity:0,width:"100%",zIndex:-1})}),Vg=ze.create({center:{backgroundSize:"auto"},contain:{backgroundSize:"contain"},cover:{backgroundSize:"cover"},none:{backgroundPosition:"0",backgroundSize:"auto"},repeat:{backgroundPosition:"0",backgroundRepeat:"repeat",backgroundSize:"auto"},stretch:{backgroundSize:"100% 100%"}});const Fg=Zt(Wi);var Dg=b.forwardRef((t,e)=>b.createElement(xi,Ce({scrollEventThrottle:1e-4},t,{ref:e})));const Wg=Zt(Dg);var zg=["ItemSeparatorComponent","SectionSeparatorComponent","renderItem","renderSectionFooter","renderSectionHeader","sections","stickySectionHeadersEnabled"];class Hg extends b.PureComponent{constructor(){super(...arguments),this._keyExtractor=(e,r)=>{var n=this._subExtractor(r);return n&&n.key||String(r)},this._convertViewable=e=>{var r;N(e.index!=null,"Received a broken ViewToken");var n=this._subExtractor(e.index);if(!n)return null;var i=n.section.keyExtractor,a=this.props.keyExtractor||Tn,s=i!=null?i(e.item,n.index):a(e.item,(r=n.index)!==null&&r!==void 0?r:0);return L(L({},e),{},{index:n.index,key:s,section:n.section})},this._onViewableItemsChanged=e=>{var r=e.viewableItems,n=e.changed,i=this.props.onViewableItemsChanged;i!=null&&i({viewableItems:r.map(this._convertViewable,this).filter(Boolean),changed:n.map(this._convertViewable,this).filter(Boolean)})},this._renderItem=e=>r=>{var n=r.item,i=r.index,a=this._subExtractor(i);if(!a)return null;var s=a.index;if(s==null){var o=a.section;if(a.header===!0){var l=this.props.renderSectionHeader;return l?l({section:o}):null}else{var u=this.props.renderSectionFooter;return u?u({section:o}):null}}else{var c=a.section.renderItem||this.props.renderItem,d=this._getSeparatorComponent(i,a,e);return N(c,"no renderItem!"),b.createElement(jg,{SeparatorComponent:d,LeadingSeparatorComponent:s===0?this.props.SectionSeparatorComponent:void 0,cellKey:a.key,index:s,item:n,leadingItem:a.leadingItem,leadingSection:a.leadingSection,prevCellKey:(this._subExtractor(i-1)||{}).key,setSelfHighlightCallback:this._setUpdateHighlightFor,setSelfUpdatePropsCallback:this._setUpdatePropsFor,updateHighlightFor:this._updateHighlightFor,updatePropsFor:this._updatePropsFor,renderItem:c,section:a.section,trailingItem:a.trailingItem,trailingSection:a.trailingSection,inverted:!!this.props.inverted})}},this._updatePropsFor=(e,r)=>{var n=this._updatePropsMap[e];n!=null&&n(r)},this._updateHighlightFor=(e,r)=>{var n=this._updateHighlightMap[e];n!=null&&n(r)},this._setUpdateHighlightFor=(e,r)=>{r!=null?this._updateHighlightMap[e]=r:delete this._updateHighlightFor[e]},this._setUpdatePropsFor=(e,r)=>{r!=null?this._updatePropsMap[e]=r:delete this._updatePropsMap[e]},this._updateHighlightMap={},this._updatePropsMap={},this._captureRef=e=>{this._listRef=e}}scrollToLocation(e){for(var r=e.itemIndex,n=0;n<e.sectionIndex;n++)r+=this.props.getItemCount(this.props.sections[n].data)+2;var i=e.viewOffset||0;if(this._listRef!=null){if(e.itemIndex>0&&this.props.stickySectionHeadersEnabled){var a=this._listRef.__getFrameMetricsApprox(r-e.itemIndex,this._listRef.props);i+=a.length}var s=L(L({},e),{},{viewOffset:i,index:r});this._listRef.scrollToIndex(s)}}getListRef(){return this._listRef}render(){var e=this.props;e.ItemSeparatorComponent,e.SectionSeparatorComponent,e.renderItem,e.renderSectionFooter,e.renderSectionHeader,e.sections,e.stickySectionHeadersEnabled;for(var r=Je(e,zg),n=this.props.ListHeaderComponent?1:0,i=this.props.stickySectionHeadersEnabled?[]:void 0,a=0,s=Tt(this.props.sections),o;!(o=s()).done;){var l=o.value;i!=null&&i.push(a+n),a+=2,a+=this.props.getItemCount(l.data)}var u=this._renderItem(a);return b.createElement(Ge,Ce({},r,{keyExtractor:this._keyExtractor,stickyHeaderIndices:i,renderItem:u,data:this.props.sections,getItem:(c,d)=>this._getItem(this.props,c,d),getItemCount:()=>a,onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}_getItem(e,r,n){if(!r)return null;for(var i=n-1,a=0;a<r.length;a++){var s=r[a],o=s.data,l=e.getItemCount(o);if(i===-1||i===l)return s;if(i<l)return e.getItem(o,i);i-=l+2}return null}_subExtractor(e){for(var r=e,n=this.props,i=n.getItem,a=n.getItemCount,s=n.keyExtractor,o=n.sections,l=0;l<o.length;l++){var u=o[l],c=u.data,d=u.key||String(l);if(r-=1,r>=a(c)+1)r-=a(c)+1;else{if(r===-1)return{section:u,key:d+":header",index:null,header:!0,trailingSection:o[l+1]};if(r===a(c))return{section:u,key:d+":footer",index:null,header:!1,trailingSection:o[l+1]};var f=u.keyExtractor||s||Tn;return{section:u,key:d+":"+f(i(c,r),r),index:r,leadingItem:i(c,r-1),leadingSection:o[l-1],trailingItem:i(c,r+1),trailingSection:o[l+1]}}}}_getSeparatorComponent(e,r,n){if(r=r||this._subExtractor(e),!r)return null;var i=r.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,a=this.props.SectionSeparatorComponent,s=e===n-1,o=r.index===this.props.getItemCount(r.section.data)-1;return a&&o?a:i&&!o&&!s?i:null}}function jg(t){var e=t.LeadingSeparatorComponent,r=t.SeparatorComponent,n=t.cellKey,i=t.prevCellKey,a=t.setSelfHighlightCallback,s=t.updateHighlightFor,o=t.setSelfUpdatePropsCallback,l=t.updatePropsFor,u=t.item,c=t.index,d=t.section,f=t.inverted,m=b.useState(!1),h=m[0],g=m[1],v=b.useState(!1),S=v[0],x=v[1],C=b.useState({leadingItem:t.leadingItem,leadingSection:t.leadingSection,section:t.section,trailingItem:t.item,trailingSection:t.trailingSection}),y=C[0],R=C[1],w=b.useState({leadingItem:t.item,leadingSection:t.leadingSection,section:t.section,trailingItem:t.trailingItem,trailingSection:t.trailingSection}),_=w[0],I=w[1];b.useEffect(()=>(a(n,x),o(n,I),()=>{o(n,null),a(n,null)}),[n,a,I,o]);var k={highlight:()=>{g(!0),x(!0),i!=null&&s(i,!0)},unhighlight:()=>{g(!1),x(!1),i!=null&&s(i,!1)},updateProps:(E,O)=>{E==="leading"?e!=null?R(L(L({},y),O)):i!=null&&l(i,L(L({},y),O)):E==="trailing"&&r!=null&&I(L(L({},_),O))}},T=t.renderItem({item:u,index:c,section:d,separators:k}),P=e!=null&&b.createElement(e,Ce({highlighted:h},y)),V=r!=null&&b.createElement(r,Ce({highlighted:S},_));return P||V?b.createElement(Se,null,f===!1?P:V,T,f===!1?V:P):T}var Ug=["stickySectionHeadersEnabled"];let Kg=class extends b.PureComponent{constructor(){super(...arguments),this._captureRef=e=>{this._wrapperListRef=e}}scrollToLocation(e){this._wrapperListRef!=null&&this._wrapperListRef.scrollToLocation(e)}recordInteraction(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.recordInteraction()}flashScrollIndicators(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.flashScrollIndicators()}getScrollResponder(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollResponder()}getScrollableNode(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollableNode()}render(){var e=this.props,r=e.stickySectionHeadersEnabled,n=Je(e,Ug),i=r??Zs.OS==="ios";return b.createElement(Hg,Ce({},n,{stickySectionHeadersEnabled:i,ref:this._captureRef,getItemCount:a=>a.length,getItem:(a,s)=>a[s]}))}};var Yg=b.forwardRef((t,e)=>b.createElement(Kg,Ce({scrollEventThrottle:1e-4},t,{ref:e})));const qg=Zt(Yg);var Gg=["hrefAttrs","numberOfLines","onClick","onLayout","onPress","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture","selectable"],Xg=Object.assign({},ic,ac,sc,oc,lc,uc,cc,dc,{href:!0,lang:!0,pointerEvents:!0}),Zg=t=>fc(t,Xg),Fc=b.forwardRef((t,e)=>{var r=t.hrefAttrs,n=t.numberOfLines,i=t.onClick,a=t.onLayout,s=t.onPress,o=t.onMoveShouldSetResponder,l=t.onMoveShouldSetResponderCapture,u=t.onResponderEnd,c=t.onResponderGrant,d=t.onResponderMove,f=t.onResponderReject,m=t.onResponderRelease,h=t.onResponderStart,g=t.onResponderTerminate,v=t.onResponderTerminationRequest,S=t.onScrollShouldSetResponder,x=t.onScrollShouldSetResponderCapture,C=t.onSelectionChangeShouldSetResponder,y=t.onSelectionChangeShouldSetResponderCapture,R=t.onStartShouldSetResponder,w=t.onStartShouldSetResponderCapture,_=t.selectable,I=Je(t,Gg),k=b.useContext(Si),T=b.useRef(null),P=nc(),V=P.direction;hc(T,a),Cc(T,{onMoveShouldSetResponder:o,onMoveShouldSetResponderCapture:l,onResponderEnd:u,onResponderGrant:c,onResponderMove:d,onResponderReject:f,onResponderRelease:m,onResponderStart:h,onResponderTerminate:g,onResponderTerminationRequest:v,onScrollShouldSetResponder:S,onScrollShouldSetResponderCapture:x,onSelectionChangeShouldSetResponder:C,onSelectionChangeShouldSetResponderCapture:y,onStartShouldSetResponder:R,onStartShouldSetResponderCapture:w});var E=b.useCallback(D=>{i!=null?i(D):s!=null&&(D.stopPropagation(),s(D))},[i,s]),O=k?"span":"div",H=t.lang!=null?Gs(t.lang):null,F=t.dir||H,G=F||V,Z=Zg(I);if(Z.dir=F,k||(Z.dir=F??"auto"),(i||s)&&(Z.onClick=E),Z.style=[n!=null&&n>1&&{WebkitLineClamp:n},k===!0?or.textHasAncestor$raw:or.text$raw,n===1&&or.textOneLine,n!=null&&n>1&&or.textMultiLine,t.style,_===!0&&or.selectable,_===!1&&or.notSelectable,s&&or.pressable],t.href!=null&&(O="a",r!=null)){var J=r.download,M=r.rel,Te=r.target;J!=null&&(Z.download=J),M!=null&&(Z.rel=M),typeof Te=="string"&&(Z.target=Te.charAt(0)!=="_"?"_"+Te:Te)}var Me=pc(Z),Fe=Qs(T,Me,e);Z.ref=Fe;var me=Xs(O,Z,{writingDirection:G});return k?me:b.createElement(Si.Provider,{value:!0},me)});Fc.displayName="Text";var kl={backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",color:"black",display:"inline",font:"14px System",listStyle:"none",margin:0,padding:0,position:"relative",textAlign:"start",textDecoration:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},or=ze.create({text$raw:kl,textHasAncestor$raw:L(L({},kl),{},{color:"inherit",font:"inherit",textAlign:"inherit",whiteSpace:"inherit"}),textOneLine:{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"},textMultiLine:{display:"-webkit-box",maxWidth:"100%",overflow:"clip",textOverflow:"ellipsis",WebkitBoxOrient:"vertical"},notSelectable:{userSelect:"none"},selectable:{userSelect:"text"},pressable:{cursor:"pointer"}});const Qg=Zt(Fc),Jg=Zt(Se);class ev extends ut{constructor(e,r){super(),this._a=typeof e=="number"?new oe(e):e,this._b=typeof r=="number"?new oe(r):r}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()+this._b.__getValue()}interpolate(e){return new ct(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"addition",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}class tv extends ut{constructor(e,r,n){super(),this._a=e,this._min=r,this._max=n,this._value=this._lastValue=this._a.__getValue()}__makeNative(e){this._a.__makeNative(e),super.__makeNative(e)}interpolate(e){return new ct(this,e)}__getValue(){var e=this._a.__getValue(),r=e-this._lastValue;return this._lastValue=e,this._value=Math.min(Math.max(this._value+r,this._min),this._max),this._value}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"diffclamp",input:this._a.__getNativeTag(),min:this._min,max:this._max}}}class rv extends ut{constructor(e,r){super(),this._warnedAboutDivideByZero=!1,(r===0||r instanceof ee&&r.__getValue()===0)&&console.error("Detected potential division by zero in AnimatedDivision"),this._a=typeof e=="number"?new oe(e):e,this._b=typeof r=="number"?new oe(r):r}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){var e=this._a.__getValue(),r=this._b.__getValue();return r===0?(this._warnedAboutDivideByZero||(console.error("Detected division by zero in AnimatedDivision"),this._warnedAboutDivideByZero=!0),0):(this._warnedAboutDivideByZero=!1,e/r)}interpolate(e){return new ct(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"division",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}class nv extends ut{constructor(e,r){super(),this._a=e,this._modulus=r}__makeNative(e){this._a.__makeNative(e),super.__makeNative(e)}__getValue(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus}interpolate(e){return new ct(this,e)}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"modulus",input:this._a.__getNativeTag(),modulus:this._modulus}}}class iv extends ut{constructor(e,r){super(),this._a=typeof e=="number"?new oe(e):e,this._b=typeof r=="number"?new oe(r):r}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()*this._b.__getValue()}interpolate(e){return new ct(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"multiplication",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}class av extends ut{constructor(e,r){super(),this._a=typeof e=="number"?new oe(e):e,this._b=typeof r=="number"?new oe(r):r}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()-this._b.__getValue()}interpolate(e){return new ct(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"subtraction",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}class Dc extends ee{constructor(e,r,n,i,a){super(),this._value=e,this._parent=r,this._animationClass=n,this._animationConfig=i,this._useNativeDriver=Vr(i),this._callback=a,this.__attach()}__makeNative(){this.__isNative=!0,this._parent.__makeNative(),super.__makeNative(),this._value.__makeNative()}__getValue(){return this._parent.__getValue()}__attach(){this._parent.__addChild(this),this._useNativeDriver&&this.__makeNative()}__detach(){this._parent.__removeChild(this),super.__detach()}update(){this._value.animate(new this._animationClass(L(L({},this._animationConfig),{},{toValue:this._animationConfig.toValue.__getValue()})),this._callback)}__getNativeConfig(){var e=new this._animationClass(L(L({},this._animationConfig),{},{toValue:void 0})),r=e.__getNativeAnimationConfig();return{type:"tracking",animationId:Mc(),animationConfig:r,toValue:this._parent.__getNativeTag(),value:this._value.__getNativeTag()}}}var sv=1;class no extends ut{constructor(e){super();var r=e||{x:0,y:0};typeof r.x=="number"&&typeof r.y=="number"?(this.x=new oe(r.x),this.y=new oe(r.y)):(N(r.x instanceof oe&&r.y instanceof oe,"AnimatedValueXY must be initialized with an object of numbers or AnimatedValues."),this.x=r.x,this.y=r.y),this._listeners={}}setValue(e){this.x.setValue(e.x),this.y.setValue(e.y)}setOffset(e){this.x.setOffset(e.x),this.y.setOffset(e.y)}flattenOffset(){this.x.flattenOffset(),this.y.flattenOffset()}extractOffset(){this.x.extractOffset(),this.y.extractOffset()}__getValue(){return{x:this.x.__getValue(),y:this.y.__getValue()}}resetAnimation(e){this.x.resetAnimation(),this.y.resetAnimation(),e&&e(this.__getValue())}stopAnimation(e){this.x.stopAnimation(),this.y.stopAnimation(),e&&e(this.__getValue())}addListener(e){var r=String(sv++),n=i=>{i.value,e(this.__getValue())};return this._listeners[r]={x:this.x.addListener(n),y:this.y.addListener(n)},r}removeListener(e){this.x.removeListener(this._listeners[e].x),this.y.removeListener(this._listeners[e].y),delete this._listeners[e]}removeAllListeners(){this.x.removeAllListeners(),this.y.removeAllListeners(),this._listeners={}}getLayout(){return{left:this.x,top:this.y}}getTranslateTransform(){return[{translateX:this.x},{translateY:this.y}]}}var Ol=1;class io{start(e,r,n,i,a){}stop(){this.__nativeId&&se.API.stopAnimation(this.__nativeId)}__getNativeAnimationConfig(){throw new Error("This animation type cannot be offloaded to native")}__debouncedOnEnd(e){var r=this.__onEnd;this.__onEnd=null,r&&r(e)}__startNativeAnimation(e){var r=Ol+":startAnimation";Ol+=1,se.API.setWaitingForIdentifier(r);try{var n=this.__getNativeAnimationConfig();e.__makeNative(n.platformConfig),this.__nativeId=se.generateNewAnimationId(),se.API.startAnimatingNode(this.__nativeId,e.__getNativeTag(),n,this.__debouncedOnEnd.bind(this))}catch(i){throw i}finally{se.API.unsetWaitingForIdentifier(r)}}}class ov extends io{constructor(e){var r,n,i;super(),this._deceleration=(r=e.deceleration)!==null&&r!==void 0?r:.998,this._velocity=e.velocity,this._useNativeDriver=Vr(e),this.__isInteraction=(n=e.isInteraction)!==null&&n!==void 0?n:!this._useNativeDriver,this.__iterations=(i=e.iterations)!==null&&i!==void 0?i:1}__getNativeAnimationConfig(){return{type:"decay",deceleration:this._deceleration,velocity:this._velocity,iterations:this.__iterations}}start(e,r,n,i,a){this.__active=!0,this._lastValue=e,this._fromValue=e,this._onUpdate=r,this.__onEnd=n,this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(a):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}onUpdate(){var e=Date.now(),r=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(e-this._startTime)));if(this._onUpdate(r),Math.abs(this._lastValue-r)<.1){this.__debouncedOnEnd({finished:!0});return}this._lastValue=r,this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}stop(){super.stop(),this.__active=!1,global.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}function Wc(t){return(t-30)*3.62+194}function zc(t){return(t-8)*3+25}function lv(t,e){return{stiffness:Wc(t),damping:zc(e)}}function uv(t,e){function r(h,g,v){return(h-g)/(v-g)}function n(h,g,v){return g+h*(v-g)}function i(h,g,v){return h*v+(1-h)*g}function a(h,g,v){return i(2*h-h*h,g,v)}function s(h){return 7e-4*Math.pow(h,3)-.031*Math.pow(h,2)+.64*h+1.28}function o(h){return 44e-6*Math.pow(h,3)-.006*Math.pow(h,2)+.36*h+2}function l(h){return 45e-8*Math.pow(h,3)-332e-6*Math.pow(h,2)+.1078*h+5.84}function u(h){return h<=18?s(h):h>18&&h<=44?o(h):l(h)}var c=r(t/1.7,0,20);c=n(c,0,.8);var d=r(e/1.7,0,20),f=n(d,.5,200),m=a(c,u(f),.01);return{stiffness:Wc(f),damping:zc(m)}}const Pl={fromOrigamiTensionAndFriction:lv,fromBouncinessAndSpeed:uv};var ca=se.API,Gn={r:0,g:0,b:0,a:1},cv=1,dv=t=>t;function Ml(t){if(t==null)return null;if(ss(t))return t;var e=js(t);if(e==null)return null;if(typeof e=="object"){var r=dv(e);if(r!=null)return r}else if(typeof e=="number"){var n=(e&4278190080)>>>24,i=(e&16711680)>>>16,a=(e&65280)>>>8,s=(e&255)/255;return{r:n,g:i,b:a,a:s}}return null}function ss(t){return t&&typeof t.r=="number"&&typeof t.g=="number"&&typeof t.b=="number"&&typeof t.a=="number"}function fv(t){return t&&t.r instanceof oe&&t.g instanceof oe&&t.b instanceof oe&&t.a instanceof oe}class ao extends ut{constructor(e,r){super(),this._listeners={};var n=e??Gn;if(fv(n)){var i=n;this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a}else{var a,s=(a=Ml(n))!==null&&a!==void 0?a:Gn,o=Gn;ss(s)?o=s:this.nativeColor=s,this.r=new oe(o.r),this.g=new oe(o.g),this.b=new oe(o.b),this.a=new oe(o.a)}(this.nativeColor||r&&r.useNativeDriver)&&this.__makeNative()}setValue(e){var r,n=!1;if(this.__isNative){var i=this.__getNativeTag();ca.setWaitingForIdentifier(i.toString())}var a=(r=Ml(e))!==null&&r!==void 0?r:Gn;if(ss(a)){var s=a;this.r.setValue(s.r),this.g.setValue(s.g),this.b.setValue(s.b),this.a.setValue(s.a),this.nativeColor!=null&&(this.nativeColor=null,n=!0)}else{var o=a;this.nativeColor!==o&&(this.nativeColor=o,n=!0)}if(this.__isNative){var l=this.__getNativeTag();n&&ca.updateAnimatedNodeConfig(l,this.__getNativeConfig()),ca.unsetWaitingForIdentifier(l.toString())}}setOffset(e){this.r.setOffset(e.r),this.g.setOffset(e.g),this.b.setOffset(e.b),this.a.setOffset(e.a)}flattenOffset(){this.r.flattenOffset(),this.g.flattenOffset(),this.b.flattenOffset(),this.a.flattenOffset()}extractOffset(){this.r.extractOffset(),this.g.extractOffset(),this.b.extractOffset(),this.a.extractOffset()}addListener(e){var r=String(cv++),n=i=>{i.value,e(this.__getValue())};return this._listeners[r]={r:this.r.addListener(n),g:this.g.addListener(n),b:this.b.addListener(n),a:this.a.addListener(n)},r}removeListener(e){this.r.removeListener(this._listeners[e].r),this.g.removeListener(this._listeners[e].g),this.b.removeListener(this._listeners[e].b),this.a.removeListener(this._listeners[e].a),delete this._listeners[e]}removeAllListeners(){this.r.removeAllListeners(),this.g.removeAllListeners(),this.b.removeAllListeners(),this.a.removeAllListeners(),this._listeners={}}stopAnimation(e){this.r.stopAnimation(),this.g.stopAnimation(),this.b.stopAnimation(),this.a.stopAnimation(),e&&e(this.__getValue())}resetAnimation(e){this.r.resetAnimation(),this.g.resetAnimation(),this.b.resetAnimation(),this.a.resetAnimation(),e&&e(this.__getValue())}__getValue(){return this.nativeColor!=null?this.nativeColor:"rgba("+this.r.__getValue()+", "+this.g.__getValue()+", "+this.b.__getValue()+", "+this.a.__getValue()+")"}__attach(){this.r.__addChild(this),this.g.__addChild(this),this.b.__addChild(this),this.a.__addChild(this),super.__attach()}__detach(){this.r.__removeChild(this),this.g.__removeChild(this),this.b.__removeChild(this),this.a.__removeChild(this),super.__detach()}__makeNative(e){this.r.__makeNative(e),this.g.__makeNative(e),this.b.__makeNative(e),this.a.__makeNative(e),super.__makeNative(e)}__getNativeConfig(){return{type:"color",r:this.r.__getNativeTag(),g:this.g.__getNativeTag(),b:this.b.__getNativeTag(),a:this.a.__getNativeTag(),nativeColor:this.nativeColor}}}class Ei extends io{constructor(e){var r,n,i,a,s,o,l,u;if(super(),this._overshootClamping=(r=e.overshootClamping)!==null&&r!==void 0?r:!1,this._restDisplacementThreshold=(n=e.restDisplacementThreshold)!==null&&n!==void 0?n:.001,this._restSpeedThreshold=(i=e.restSpeedThreshold)!==null&&i!==void 0?i:.001,this._initialVelocity=(a=e.velocity)!==null&&a!==void 0?a:0,this._lastVelocity=(s=e.velocity)!==null&&s!==void 0?s:0,this._toValue=e.toValue,this._delay=(o=e.delay)!==null&&o!==void 0?o:0,this._useNativeDriver=Vr(e),this._platformConfig=e.platformConfig,this.__isInteraction=(l=e.isInteraction)!==null&&l!==void 0?l:!this._useNativeDriver,this.__iterations=(u=e.iterations)!==null&&u!==void 0?u:1,e.stiffness!==void 0||e.damping!==void 0||e.mass!==void 0){var c,d,f;N(e.bounciness===void 0&&e.speed===void 0&&e.tension===void 0&&e.friction===void 0,"You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one"),this._stiffness=(c=e.stiffness)!==null&&c!==void 0?c:100,this._damping=(d=e.damping)!==null&&d!==void 0?d:10,this._mass=(f=e.mass)!==null&&f!==void 0?f:1}else if(e.bounciness!==void 0||e.speed!==void 0){var m,h;N(e.tension===void 0&&e.friction===void 0&&e.stiffness===void 0&&e.damping===void 0&&e.mass===void 0,"You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one");var g=Pl.fromBouncinessAndSpeed((m=e.bounciness)!==null&&m!==void 0?m:8,(h=e.speed)!==null&&h!==void 0?h:12);this._stiffness=g.stiffness,this._damping=g.damping,this._mass=1}else{var v,S,x=Pl.fromOrigamiTensionAndFriction((v=e.tension)!==null&&v!==void 0?v:40,(S=e.friction)!==null&&S!==void 0?S:7);this._stiffness=x.stiffness,this._damping=x.damping,this._mass=1}N(this._stiffness>0,"Stiffness value must be greater than 0"),N(this._damping>0,"Damping value must be greater than 0"),N(this._mass>0,"Mass value must be greater than 0")}__getNativeAnimationConfig(){var e;return{type:"spring",overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:(e=this._initialVelocity)!==null&&e!==void 0?e:this._lastVelocity,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}start(e,r,n,i,a){if(this.__active=!0,this._startPosition=e,this._lastPosition=this._startPosition,this._onUpdate=r,this.__onEnd=n,this._lastTime=Date.now(),this._frameTime=0,i instanceof Ei){var s=i.getInternalState();this._lastPosition=s.lastPosition,this._lastVelocity=s.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=s.lastTime}var o=()=>{this._useNativeDriver?this.__startNativeAnimation(a):this.onUpdate()};this._delay?this._timeout=setTimeout(o,this._delay):o()}getInternalState(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}onUpdate(){var e=64,r=Date.now();r>this._lastTime+e&&(r=this._lastTime+e);var n=(r-this._lastTime)/1e3;this._frameTime+=n;var i=this._damping,a=this._mass,s=this._stiffness,o=-this._initialVelocity,l=i/(2*Math.sqrt(s*a)),u=Math.sqrt(s/a),c=u*Math.sqrt(1-l*l),d=this._toValue-this._startPosition,f=0,m=0,h=this._frameTime;if(l<1){var g=Math.exp(-l*u*h);f=this._toValue-g*((o+l*u*d)/c*Math.sin(c*h)+d*Math.cos(c*h)),m=l*u*g*(Math.sin(c*h)*(o+l*u*d)/c+d*Math.cos(c*h))-g*(Math.cos(c*h)*(o+l*u*d)-c*d*Math.sin(c*h))}else{var v=Math.exp(-u*h);f=this._toValue-v*(d+(o+u*d)*h),m=v*(o*(h*u-1)+h*d*(u*u))}if(this._lastTime=r,this._lastPosition=f,this._lastVelocity=m,this._onUpdate(f),!!this.__active){var S=!1;this._overshootClamping&&this._stiffness!==0&&(this._startPosition<this._toValue?S=f>this._toValue:S=f<this._toValue);var x=Math.abs(m)<=this._restSpeedThreshold,C=!0;if(this._stiffness!==0&&(C=Math.abs(this._toValue-f)<=this._restDisplacementThreshold),S||x&&C){this._stiffness!==0&&(this._lastPosition=this._toValue,this._lastVelocity=0,this._onUpdate(this._toValue)),this.__debouncedOnEnd({finished:!0});return}this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}}stop(){super.stop(),this.__active=!1,clearTimeout(this._timeout),global.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}var hv=4,mv=.001,pv=1e-7,gv=10,un=11,Xn=1/(un-1),vv=typeof Float32Array=="function";function Hc(t,e){return 1-3*e+3*t}function jc(t,e){return 3*e-6*t}function Uc(t){return 3*t}function Ni(t,e,r){return((Hc(e,r)*t+jc(e,r))*t+Uc(e))*t}function Kc(t,e,r){return 3*Hc(e,r)*t*t+2*jc(e,r)*t+Uc(e)}function bv(t,e,r,n,i){var a,s,o=0,l=e,u=r;do s=l+(u-l)/2,a=Ni(s,n,i)-t,a>0?u=s:l=s;while(Math.abs(a)>pv&&++o<gv);return s}function _v(t,e,r,n){for(var i=e,a=0;a<hv;++a){var s=Kc(i,r,n);if(s===0)return i;var o=Ni(i,r,n)-t;i-=o/s}return i}function Sv(t,e,r,n){if(!(t>=0&&t<=1&&r>=0&&r<=1))throw new Error("bezier x values must be in [0, 1] range");var i=vv?new Float32Array(un):new Array(un);if(t!==e||r!==n)for(var a=0;a<un;++a)i[a]=Ni(a*Xn,t,r);function s(o){for(var l=0,u=1,c=un-1;u!==c&&i[u]<=o;++u)l+=Xn;--u;var d=(o-i[u])/(i[u+1]-i[u]),f=l+d*Xn,m=Kc(f,t,r);return m>=mv?_v(o,f,t,r):m===0?f:bv(o,l,l+Xn,t,r)}return function(l){return t===e&&r===n?l:l===0?0:l===1?1:Ni(s(l),e,n)}}var da;class Ai{static step0(e){return e>0?1:0}static step1(e){return e>=1?1:0}static linear(e){return e}static ease(e){return da||(da=Ai.bezier(.42,0,1,1)),da(e)}static quad(e){return e*e}static cubic(e){return e*e*e}static poly(e){return r=>Math.pow(r,e)}static sin(e){return 1-Math.cos(e*Math.PI/2)}static circle(e){return 1-Math.sqrt(1-e*e)}static exp(e){return Math.pow(2,10*(e-1))}static elastic(e){e===void 0&&(e=1);var r=e*Math.PI;return n=>1-Math.pow(Math.cos(n*Math.PI/2),3)*Math.cos(n*r)}static back(e){return e===void 0&&(e=1.70158),r=>r*r*((e+1)*r-e)}static bounce(e){if(e<1/2.75)return 7.5625*e*e;if(e<2/2.75){var r=e-.5454545454545454;return 7.5625*r*r+.75}if(e<2.5/2.75){var n=e-.8181818181818182;return 7.5625*n*n+.9375}var i=e-2.625/2.75;return 7.5625*i*i+.984375}static bezier(e,r,n,i){return Sv(e,r,n,i)}static in(e){return e}static out(e){return r=>1-e(1-r)}static inOut(e){return r=>r<.5?e(r*2)/2:1-e((1-r)*2)/2}}var fa;function yv(){return fa||(fa=Ai.inOut(Ai.ease)),fa}class $l extends io{constructor(e){var r,n,i,a,s;super(),this._toValue=e.toValue,this._easing=(r=e.easing)!==null&&r!==void 0?r:yv(),this._duration=(n=e.duration)!==null&&n!==void 0?n:500,this._delay=(i=e.delay)!==null&&i!==void 0?i:0,this.__iterations=(a=e.iterations)!==null&&a!==void 0?a:1,this._useNativeDriver=Vr(e),this._platformConfig=e.platformConfig,this.__isInteraction=(s=e.isInteraction)!==null&&s!==void 0?s:!this._useNativeDriver}__getNativeAnimationConfig(){for(var e=16.666666666666668,r=[],n=Math.round(this._duration/e),i=0;i<n;i++)r.push(this._easing(i/n));return r.push(this._easing(1)),{type:"frames",frames:r,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}start(e,r,n,i,a){this.__active=!0,this._fromValue=e,this._onUpdate=r,this.__onEnd=n;var s=()=>{this._duration===0&&!this._useNativeDriver?(this._onUpdate(this._toValue),this.__debouncedOnEnd({finished:!0})):(this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(a):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))};this._delay?this._timeout=setTimeout(s,this._delay):s()}onUpdate(){var e=Date.now();if(e>=this._startTime+this._duration){this._duration===0?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),this.__debouncedOnEnd({finished:!0});return}this._onUpdate(this._fromValue+this._easing((e-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}stop(){super.stop(),this.__active=!1,clearTimeout(this._timeout),global.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}var xv=function(e,r){return new ev(e,r)},wv=function(e,r){return new av(e,r)},Cv=function(e,r){return new rv(e,r)},Rv=function(e,r){return new iv(e,r)},Tv=function(e,r){return new nv(e,r)},Iv=function(e,r,n){return new tv(e,r,n)},so=function(e,r){return e&&r.onComplete?function(){r.onComplete&&r.onComplete(...arguments),e&&e(...arguments)}:e||r.onComplete},oo=function(e,r,n){if(e instanceof no){var i=L({},r),a=L({},r);for(var s in r){var o=r[s],l=o.x,u=o.y;l!==void 0&&u!==void 0&&(i[s]=l,a[s]=u)}var c=n(e.x,i),d=n(e.y,a);return Li([c,d],{stopTogether:!1})}else if(e instanceof ao){var f=L({},r),m=L({},r),h=L({},r),g=L({},r);for(var v in r){var S=r[v],x=S.r,C=S.g,y=S.b,R=S.a;x!==void 0&&C!==void 0&&y!==void 0&&R!==void 0&&(f[v]=x,m[v]=C,h[v]=y,g[v]=R)}var w=n(e.r,f),_=n(e.g,m),I=n(e.b,h),k=n(e.a,g);return Li([w,_,I,k],{stopTogether:!1})}return null},Ev=function t(e,r){var n=function(a,s,o){o=so(o,s);var l=a,u=s;l.stopTracking(),s.toValue instanceof ee?l.track(new Dc(l,s.toValue,Ei,u,o)):l.animate(new Ei(u),o)};return oo(e,r,t)||{start:function(a){n(e,r,a)},stop:function(){e.stopAnimation()},reset:function(){e.resetAnimation()},_startNativeLoop:function(a){var s=L(L({},r),{},{iterations:a});n(e,s)},_isUsingNativeDriver:function(){return r.useNativeDriver||!1}}},Yc=function t(e,r){var n=function(a,s,o){o=so(o,s);var l=a,u=s;l.stopTracking(),s.toValue instanceof ee?l.track(new Dc(l,s.toValue,$l,u,o)):l.animate(new $l(u),o)};return oo(e,r,t)||{start:function(a){n(e,r,a)},stop:function(){e.stopAnimation()},reset:function(){e.resetAnimation()},_startNativeLoop:function(a){var s=L(L({},r),{},{iterations:a});n(e,s)},_isUsingNativeDriver:function(){return r.useNativeDriver||!1}}},Nv=function t(e,r){var n=function(a,s,o){o=so(o,s);var l=a,u=s;l.stopTracking(),l.animate(new ov(u),o)};return oo(e,r,t)||{start:function(a){n(e,r,a)},stop:function(){e.stopAnimation()},reset:function(){e.resetAnimation()},_startNativeLoop:function(a){var s=L(L({},r),{},{iterations:a});n(e,s)},_isUsingNativeDriver:function(){return r.useNativeDriver||!1}}},qc=function(e){var r=0;return{start:function(i){var a=function s(o){if(!o.finished){i&&i(o);return}if(r++,r===e.length){i&&i(o);return}e[r].start(s)};e.length===0?i&&i({finished:!0}):e[r].start(a)},stop:function(){r<e.length&&e[r].stop()},reset:function(){e.forEach((i,a)=>{a<=r&&i.reset()}),r=0},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.sequence animations")},_isUsingNativeDriver:function(){return!1}}},Li=function(e,r){var n=0,i={},a=!(r&&r.stopTogether===!1),s={start:function(l){if(n===e.length){l&&l({finished:!0});return}e.forEach((u,c)=>{var d=function(m){if(i[c]=!0,n++,n===e.length){n=0,l&&l(m);return}!m.finished&&a&&s.stop()};u?u.start(d):d({finished:!0})})},stop:function(){e.forEach((l,u)=>{!i[u]&&l.stop(),i[u]=!0})},reset:function(){e.forEach((l,u)=>{l.reset(),i[u]=!1,n=0})},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.parallel animations")},_isUsingNativeDriver:function(){return!1}};return s},Gc=function(e){return Yc(new oe(0),{toValue:0,delay:e,duration:0,useNativeDriver:!1})},Av=function(e,r){return Li(r.map((n,i)=>qc([Gc(e*i),n])))},Lv=function(e,r){var n=r===void 0?{}:r,i=n.iterations,a=i===void 0?-1:i,s=n.resetBeforeIteration,o=s===void 0?!0:s,l=!1,u=0;return{start:function(d){var f=function m(h){h===void 0&&(h={finished:!0}),l||u===a||h.finished===!1?d&&d(h):(u++,o&&e.reset(),e.start(m))};!e||a===0?d&&d({finished:!0}):e._isUsingNativeDriver()?e._startNativeLoop(a):f()},stop:function(){l=!0,e.stop()},reset:function(){u=0,l=!1,e.reset()},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.loop animations")},_isUsingNativeDriver:function(){return e._isUsingNativeDriver()}}};function kv(t,e){return t?t instanceof gr?(t.__addListener(e),t):function(){typeof t=="function"&&t(...arguments),e(...arguments)}:e}function Ov(t,e){t&&t instanceof gr&&t.__removeListener(e)}var Pv=function(e,r){var n=new gr(e,r);return n.__isNative?n:n.__getHandler()};const wt={Value:oe,ValueXY:no,Color:ao,Interpolation:ct,Node:ee,decay:Nv,timing:Yc,spring:Ev,add:xv,subtract:wv,divide:Cv,multiply:Rv,modulo:Tv,diffClamp:Iv,delay:Gc,sequence:qc,parallel:Li,stagger:Av,loop:Lv,event:Pv,createAnimatedComponent:Zt,attachNativeEvent:ro,forkEvent:kv,unforkEvent:Ov,Event:gr};var ha=!1;function lo(t){return e=>{var r=e==null?e:function(){if(ha){console.warn("Ignoring recursive animation callback when running mock animations");return}ha=!0;try{e(...arguments)}finally{ha=!1}};t(r)}}var Fr={start:()=>{},stop:()=>{},reset:()=>{},_startNativeLoop:()=>{},_isUsingNativeDriver:()=>!1},uo=t=>L(L({},Fr),{},{start:lo(e=>{t.forEach(r=>r.start()),e==null||e({finished:!0})})}),Mv=function(e,r){var n=e;return L(L({},Fr),{},{start:lo(i=>{n.setValue(r.toValue),i==null||i({finished:!0})})})},$v=function(e,r){var n=e;return L(L({},Fr),{},{start:lo(i=>{n.setValue(r.toValue),i==null||i({finished:!0})})})},Bv=function(e,r){return Fr},Vv=function(e){return uo(e)},Fv=function(e,r){return uo(e)},Dv=function(e){return Fr},Wv=function(e,r){return uo(r)},zv=function(e,r){var n=r===void 0?{}:r;return n.iterations,Fr};const Hv={Value:oe,ValueXY:no,Color:ao,Interpolation:ct,Node:ee,decay:Bv,timing:$v,spring:Mv,add:wt.add,subtract:wt.subtract,divide:wt.divide,multiply:wt.multiply,modulo:wt.modulo,diffClamp:wt.diffClamp,delay:Dv,sequence:Vv,parallel:Fv,stagger:Wv,loop:zv,event:wt.event,createAnimatedComponent:Zt,attachNativeEvent:ro,forkEvent:wt.forkEvent,unforkEvent:wt.unforkEvent,Event:gr};var jv=Zs.isTesting?Hv:wt;const Ot=L({FlatList:Ig,Image:Fg,ScrollView:Wg,SectionList:qg,Text:Qg,View:Jg},jv);function Uv(){return et&&window.matchMedia!=null?window.matchMedia("(prefers-color-scheme: dark)"):null}var Ir=Uv(),Zn=new WeakMap,Xc={getColorScheme(){return Ir&&Ir.matches?"dark":"light"},addChangeListener(t){var e=Zn.get(t);e||(e=n=>{var i=n.matches;t({colorScheme:i?"dark":"light"})},Zn.set(t,e)),Ir&&Ir.addListener(e);function r(){var n=Zn.get(t);Ir&&n&&Ir.removeListener(n),Zn.delete(t)}return{remove:r}}},Kv={};typeof U.use<"u";const os=!0,Zc=typeof window<"u",Yv=!Zc,qv=Zc,Qc=Yv?b.useEffect:b.useLayoutEffect,Gv=qv&&("ontouchstart"in window||navigator.maxTouchPoints>0),Hy=Gv,jy=!1,Uy=Kv.TEST_NATIVE_PLATFORM==="ios",ls=b.createContext(null),Xv=t=>{const e=b.useContext(ls);return z.jsx(ls.Provider,{value:t.disable?e:null,children:t.children})};function Zv(){const t=b.useContext(ls);if(!t)return[!0,null,t];const{id:e,isPresent:r,onExitComplete:n,register:i}=t;return b.useEffect(()=>i(e),[]),!r&&n?[!1,()=>n==null?void 0:n(e),t]:[!0,void 0,t]}const Qn=new Map;let ma=0;const Pn=(t,e=10)=>{if(Qn.has(t))return Qn.get(t);let r=t;r[0]==="v"&&r.startsWith("var(")&&(r=r.slice(6,r.length-1));let n=0,i="",a=0;const s=r.length;for(let l=0;l<s;l++){if(e!=="strict"&&a<=e){const u=r.charCodeAt(l);if(u===46){i+="--";continue}if(Jv(u)){a++,i+=r[l];continue}}n=Qv(n,r[l])}const o=i+(n?Math.abs(n):"");return ma>1e4&&(Qn.clear(),ma=0),Qn.set(t,o),ma++,o},Qv=(t,e)=>Math.imul(31,t)+e.charCodeAt(0)|0;function Jv(t){return t>=65&&t<=90||t>=97&&t<=122||t===95||t===45||t>=48&&t<=57}const e0=t=>{b.startTransition(t)},cr={hoverStyle:{name:"hover",priority:2},pressStyle:{name:"active",stateKey:"press",priority:3},focusVisibleStyle:{name:"focus-visible",priority:4,stateKey:"focusVisible"},focusStyle:{name:"focus",priority:4},focusWithinStyle:{name:"focus-within",priority:4,stateKey:"focusWithin"},disabledStyle:{name:"disabled",priority:5,stateKey:"disabled"}},Jc={hover:cr.hoverStyle.priority,press:cr.pressStyle.priority,focus:cr.focusStyle.priority,focusVisible:cr.focusVisibleStyle.priority,focusWithin:cr.focusWithinStyle.priority,disabled:cr.disabledStyle.priority},ot={...cr,enterStyle:{name:"enter",selector:".t_unmounted",priority:4},exitStyle:{name:"exit",priority:5}},ed=Object.keys(ot).length,co=(t,e)=>{const r={};for(const n in t)n in e||(r[n]=t[n]);for(const n in e)td(r,t,e,n);return r},t0=(t,e,r)=>{let n=null;if(!t&&!e)return[r,n];if(t&&!e)return[co(t,r),n];const i={};for(const a in t)a in r||(i[a]=t[a]);for(const a in e){if(a in r)continue;const s=e[a];s!==void 0&&(i[a]=s)}for(const a in r)td(i,t,r,a),e&&a in e&&(n||(n={}),n[a]=r[a]);return[i,n]};function td(t,e,r,n){let i=r[n];if(e&&n in e&&(n in ot||n[0]==="$")&&i&&typeof i=="object"){const a=e[n];a&&typeof a=="object"&&(i=co(a,i))}t[n]=i}function us(t){let e="";for(const r in t){e+=r;const n=t[r];let i=typeof n;if(!n||i!=="object"&&i!=="function")e+=i+n;else if(pa.has(n))e+=pa.get(n);else{let a=Math.random();pa.set(n,a),e+=a}}return e}const pa=new WeakMap,ga=U.createContext;function r0(t,e=""){const r=ga(t),n=r.Provider,i=r,a=new Map,s=ga(e);function o(d){let f=a.get(d);return f||(f=ga(t),a.set(d,f)),f}const l=d=>e?`${e}--${d}`:d,u=({children:d,scope:f,__disableMergeDefaultValues:m,...h})=>{const g=l(f),v=U.useMemo(()=>m?h:co(t,h),[us(h)]);let S=n;return g&&(S=o(g).Provider),z.jsx(s.Provider,{value:g,children:z.jsx(S,{value:v,children:d})})},c=(d="")=>{const f=b.useContext(s),m=e?d?l(d):f:d,h=m?o(m):r;return U.useContext(h)};return i.Provider=u,i.props=t,i.context=r,i.useStyledContext=c,i}const gn=r0({disableSSR:void 0,inText:!1,language:null,animationDriver:null,setParentFocusState:null}),Ky=()=>b.useContext(gn),Bl=b.createContext(null);function n0(t,e){return b.useCallback(r=>{t(n=>{const i=typeof r=="function"?r(n):r;return cs(n,i)})},[t,e])}function cs(t,e){return!t||!e||ki(t,e)?t||e:{...t,...e}}function ki(t,e){for(const r in e)if(t[r]!==e[r])return!1;return!0}var i0={};const Oi=typeof U.use<"u",Pi=!0,rd=typeof window<"u",fo=!rd,Dr=rd,Qe=fo?b.useEffect:b.useLayoutEffect,a0=Dr&&("ontouchstart"in window||navigator.maxTouchPoints>0),Yy=a0,s0=!1,qy=i0.TEST_NATIVE_PLATFORM==="ios",o0="web";var l0={};const nd="t_",Mn={},id={display:"flex",alignItems:"stretch",flexDirection:"column",flexBasis:"auto",boxSizing:"border-box",position:l0.TAMAGUI_POSITION_STATIC==="1"?"static":"relative",minHeight:0,minWidth:0,flexShrink:0};Object.assign(Mn,id);const ad="Missing theme.";let sd;const Wr=()=>sd||(globalThis.__tamaguiConfig?globalThis.__tamaguiConfig:null),Ae=t=>{const e=Wr();return e.settings[t]??e[t]},u0=t=>{sd=t,globalThis.__tamaguiConfig=t},Qt=()=>{const t=Wr();if(!t)throw new Error("Err0");return t},od=()=>Wr();let Lr;function c0(t){Lr=t}const Gy=({prefixed:t}={})=>{const e=Wr(),{tokens:r,tokensParsed:n}=e;return t===!1?r:t===!0?n:Lr},d0=(t,e)=>{var r,n;return Wr().specificTokens[t]??(e?(r=Lr[e])==null?void 0:r[t]:(n=Lr[Object.keys(Lr).find(i=>Lr[i][t])||""])==null?void 0:n[t])},f0=(t,e,r=Pi)=>{const n=d0(t,e);return r?n==null?void 0:n.variable:n==null?void 0:n.val},Xy=(t,e)=>{if(!(t==="unset"||t==="auto"))return f0(t,e,!1)},fi=new Set,h0=t=>{const e=Wr();e?t(e):fi.add(t)},m0=typeof window<"u"&&window.matchMedia||p0;function p0(t){return{match:(e,r)=>!1,addListener(){},removeListener(){},matches:!1}}var g0={};let Ue={};const In={},v0=()=>Ue,ho=new Set,ld=/\$(platform|theme|group)-/,b0=t=>t[0]!=="$"?!1:!!(ho.has(t)||ld.test(t)),Vl=t=>{if(t[0]!=="$")return!1;if(ho.has(t))return!0;const e=t.match(ld);return e?e[1]:!1};let ud,cd;const _0=t=>Qt().settings.mediaPropOrder?ed:cd.indexOf(t)+100,ds=new Set;let fs=0;const S0=t=>{const{media:e}=t,r=Ae("mediaQueryDefaultActive");if(e){fs++;for(const n in e)Ue[n]=(r==null?void 0:r[n])||!1,ho.add(`$${n}`);Object.assign(In,e),ud={...Ue},cd=Object.keys(e),x0()}};function y0(){ds.forEach(t=>t()),ds.clear()}let Fl=-1;function x0(){if(!fo&&!g0.IS_STATIC&&Fl!==fs){Fl=fs,y0();for(const t in In){let e=function(){const a=!!n().matches;a!==Ue[t]&&(Ue={...Ue,[t]:a},dd())};const r=hd(In[t]),n=()=>m0(r),i=n();if(!i)throw new Error("⚠️ No match");i.addListener(e),ds.add(()=>{i.removeListener(e)}),e()}}}const hs=new Set;function dd(){hs.forEach(t=>t(Ue))}const ms=new WeakMap;function w0(t,e,r){const n=ms.get(t);(!n||n.enabled!==e||r)&&ms.set(t,{...n,enabled:e,keys:r})}function C0(t){return hs.add(t),()=>{hs.delete(t)}}function R0(t,e){const r=t?ms.get(t):null,n=b.useRef(null);n.current||(n.current={keys:new Set,lastState:Ue}),n.current.pendingState&&(n.current.lastState=n.current.pendingState,n.current.pendingState=void 0);const{keys:i}=n.current;i.size&&i.clear();const a=b.useSyncExternalStore(C0,()=>{const s=(r==null?void 0:r.keys)||i,{lastState:o,pendingState:l}=n.current;if(!s.size)return o;for(const u of s)if(Ue[u]!==(l||o)[u])return t!=null&&t.mediaEmit?(t.mediaEmit(Ue),n.current.pendingState=Ue,o):(n.current.lastState=Ue,Ue);return o},T0);return new Proxy(a,{get(s,o){return!ps&&typeof o=="string"&&i.add(o),Reflect.get(a,o)}})}const T0=()=>ud;let ps=!1;function I0(t,e){ps=!0;let r;try{r=Object.fromEntries([...t].map(n=>[n,md(n,e)]))}finally{ps=!1}return r}const fd=(t,e,r,n)=>{const i=n&&!Ae("mediaPropOrder")?_0(t):ed,a=r.usedKeys;return!a[e]||i>a[e]?i:null};function E0(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).toLowerCase()}const va=new WeakMap;function hd(t,e){if(typeof t=="string")return t;if(va.has(t))return va.get(t);const r=Object.entries(t).map(([n,i])=>(n=E0(n),typeof i=="string"?`(${n}: ${i})`:(typeof i=="number"&&/[height|width]$/.test(n)&&(i=`${i}px`),`(${n}: ${i})`))).join(" and ");return va.set(t,r),r}function md(t,e){const r=In[t];return Object.keys(r).every(n=>{const i=+r[n],a=n.startsWith("max"),s=n.endsWith("Width"),o=e[s?"width":"height"];return a?o<i:o>i})}function pd(t,e,{checkDefaultPrevented:r=!0}={}){return!t||!e?e||t||void 0:n=>{if(t==null||t(n),!n||!(r&&typeof n=="object"&&"defaultPrevented"in n)||"defaultPrevented"in n&&!n.defaultPrevented)return e==null?void 0:e(n)}}const ba=0,En=2,N0=3,mo=4;var A0={};const gd={color:!0,textDecorationColor:!0,textShadowColor:!0},hr={radius:{borderRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderStartStartRadius:!0,borderStartEndRadius:!0,borderEndStartRadius:!0,borderEndEndRadius:!0},size:{width:!0,height:!0,minWidth:!0,minHeight:!0,maxWidth:!0,maxHeight:!0,blockSize:!0,minBlockSize:!0,maxBlockSize:!0,inlineSize:!0,minInlineSize:!0,maxInlineSize:!0},zIndex:{zIndex:!0},color:{backgroundColor:!0,borderColor:!0,borderBlockStartColor:!0,borderBlockEndColor:!0,borderBlockColor:!0,borderBottomColor:!0,borderInlineColor:!0,borderInlineStartColor:!0,borderInlineEndColor:!0,borderTopColor:!0,borderLeftColor:!0,borderRightColor:!0,borderEndColor:!0,borderStartColor:!0,shadowColor:!0,...gd,outlineColor:!0,caretColor:!0}},vd={WebkitLineClamp:!0,animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,gridTemplateColumns:!0,gridTemplateAreas:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},zi={x:!0,y:!0,scale:!0,perspective:!0,scaleX:!0,scaleY:!0,skewX:!0,skewY:!0,matrix:!0,rotate:!0,rotateY:!0,rotateX:!0,rotateZ:!0},bd={backfaceVisibility:!0,borderBottomEndRadius:!0,borderBottomStartRadius:!0,borderBottomWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderBlockWidth:!0,borderBlockEndWidth:!0,borderBlockStartWidth:!0,borderInlineWidth:!0,borderInlineEndWidth:!0,borderInlineStartWidth:!0,borderStyle:!0,borderBlockStyle:!0,borderBlockEndStyle:!0,borderBlockStartStyle:!0,borderInlineStyle:!0,borderInlineEndStyle:!0,borderInlineStartStyle:!0,borderTopEndRadius:!0,borderTopStartRadius:!0,borderTopWidth:!0,borderWidth:!0,transform:!0,transformOrigin:!0,alignContent:!0,alignItems:!0,alignSelf:!0,borderEndWidth:!0,borderStartWidth:!0,bottom:!0,display:!0,end:!0,flexBasis:!0,flexDirection:!0,flexWrap:!0,gap:!0,columnGap:!0,rowGap:!0,justifyContent:!0,left:!0,margin:!0,marginBlock:!0,marginBlockEnd:!0,marginBlockStart:!0,marginInline:!0,marginInlineStart:!0,marginInlineEnd:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,overflow:!0,padding:!0,paddingBottom:!0,paddingInline:!0,paddingBlock:!0,paddingBlockStart:!0,paddingInlineEnd:!0,paddingInlineStart:!0,paddingEnd:!0,paddingHorizontal:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,position:!0,right:!0,start:!0,top:!0,inset:!0,insetBlock:!0,insetBlockEnd:!0,insetBlockStart:!0,insetInline:!0,insetInlineEnd:!0,insetInlineStart:!0,direction:!0,shadowOffset:!0,shadowRadius:!0,...hr.color,...hr.radius,...hr.size,...hr.radius,...zi,...vd,boxShadow:!0,filter:!0,...!A0.REACT_NATIVE_PRE_77&&{boxSizing:!0,mixBlendMode:!0,outlineColor:!0,outlineSpread:!0,outlineStyle:!0,outlineWidth:!0},transition:!0,textWrap:!0,backdropFilter:!0,WebkitBackdropFilter:!0,background:!0,backgroundAttachment:!0,backgroundBlendMode:!0,backgroundClip:!0,backgroundColor:!0,backgroundImage:!0,backgroundOrigin:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundSize:!0,borderBottomStyle:!0,borderImage:!0,borderLeftStyle:!0,borderRightStyle:!0,borderTopStyle:!0,caretColor:!0,clipPath:!0,contain:!0,containerType:!0,content:!0,cursor:!0,float:!0,mask:!0,maskBorder:!0,maskBorderMode:!0,maskBorderOutset:!0,maskBorderRepeat:!0,maskBorderSlice:!0,maskBorderSource:!0,maskBorderWidth:!0,maskClip:!0,maskComposite:!0,maskImage:!0,maskMode:!0,maskOrigin:!0,maskPosition:!0,maskRepeat:!0,maskSize:!0,maskType:!0,objectFit:!0,objectPosition:!0,outlineOffset:!0,overflowBlock:!0,overflowInline:!0,overflowX:!0,overflowY:!0,pointerEvents:!0,scrollbarWidth:!0,textEmphasis:!0,touchAction:!0,transformStyle:!0,userSelect:!0,willChange:!0},L0={fontFamily:!0,fontSize:!0,fontStyle:!0,fontWeight:!0,fontVariant:!0,letterSpacing:!0,lineHeight:!0,textTransform:!0},_d={...L0,textAlign:!0,textDecorationLine:!0,textDecorationStyle:!0,...gd,textShadowOffset:!0,textShadowRadius:!0,userSelect:!0,selectable:!0,verticalAlign:!0,whiteSpace:!0,wordWrap:!0,textOverflow:!0,textDecorationDistance:!0,cursor:!0,WebkitLineClamp:!0,WebkitBoxOrient:!0},Sd={...bd,..._d},k0=Sd,gs={enterStyle:!0,exitStyle:!0,hoverStyle:!0,pressStyle:!0,focusStyle:!0,disabledStyle:!0,focusWithinStyle:!0,focusVisibleStyle:!0},$n=bd;var O0={};function yd(t){return`var(--${O0.TAMAGUI_CSS_VARIABLE_PREFIX||""}${t})`}const Nn=(t,e=!1)=>{if(!e&&lt(t))return t;const{key:r,name:n,val:i}=t;return{isVar:!0,key:r,name:e?n:Pn(n,40),val:i,variable:e?yd(n):wd(n)}};function Mr(t,e=!1){return lt(t)?!e&&Pi&&t.variable?t.variable:`${t.val}`:`${t||""}`}function lt(t){return t&&typeof t=="object"&&"isVar"in t}function P0(t,e="size"){var n;if(t!=null&&t.dynamic)return t;if(po(!0),lt(t))return Mr(t);const r=Qt().tokensParsed;return Mr(((n=r[e])==null?void 0:n[t])??t)}let xd=!1;const po=t=>xd=t,M0=()=>xd;function Mi(t,e){return lt(t)?(po(!0),t.val):t}const wd=(t,e=!0)=>{const r=Pn(t,60);return e?yd(r):r},_a=new Map;let sn,on;const $0={};function B0(t,e,r){if(!(e!=null&&e.theme))return $0;if(sn=r,on=e,_a.has(on.theme))return _a.get(on.theme);Qt();function n(a){sn&&(sn.current||(sn.current=new Set),sn.current.add(a))}const i=Object.fromEntries(Object.entries(e.theme).flatMap(([a,s])=>{const o={...s,get val(){return globalThis.tamaguiAvoidTracking||n(a),s.val},get(l){if(!on)return;const u=P0(s),{name:c,scheme:d,inverses:f}=on;return u}};return[[a,o],[`$${a}`,o]]}));return _a.set(e.theme,i),i}const Cd=b.createContext(""),vs=new Map,Nr={},Sa=new WeakMap,ya=new WeakMap,Jn=new Map,vn=new Map,xa=new Map,V0=t=>vn.get(t);let wa=null;const F0=(t,e=!1,r)=>{const{disable:n}=t,i=b.useContext(Cd);if(!i&&!e)throw new Error(ad);if(n)return vn.get(i)||{id:"",name:"light",theme:Qt().themes.light,inverses:0};const a=b.useId(),s=b.useCallback(c=>(Nr[i]||(Nr[i]=new Set),Nr[i].add(a),vs.set(a,()=>{Jn.set(a,!0),c()}),()=>{vs.delete(a),Nr[i].delete(a),xa.delete(a),vn.delete(a),Jn.delete(a)}),[a,i]),o=z0(t),l=()=>{var h,g;let c=xa.get(a);const d=t.passThrough?!1:e||t.name==="light"||t.name==="dark"||t.name===null?!0:Sa.get(r)?(h=r==null?void 0:r.current)!=null&&h.size?!0:(g=t.needsUpdate)==null?void 0:g.call(t):!0,[f,m]=D0(c,t,o,e,a,i,d,Jn.get(a));return Jn.delete(a),(!c||f)&&(c={...m},xa.set(a,c)),Object.assign(c,m),c.id=a,vn.set(a,m),c},u=b.useSyncExternalStore(s,l,l);return Qe(()=>{if(!Sa.get(r)){Sa.set(r,!0);return}if(!o){ya.get(r)&&Dl(a),ya.set(r,!1);return}Dl(a),ya.set(r,!0)},[r,o]),u},D0=(t,e,r,n=!1,i,a,s,o)=>{const{debug:l}=e,u=vn.get(a);if(e.passThrough)return[!1,t||u||{name:""}];wa||(wa=Qt().themes);const c=!r&&(!t||!(t!=null&&t.isNew))?null:W0(u==null?void 0:u.name,e,o==="force"?!0:!!s),d=u&&(!c||c===u.name),f=!!(s&&(o||(t==null?void 0:t.name)!==(u==null?void 0:u.name)));if(d)return[f,{...u,isNew:!1}];if(!c){const C=t??u;if(!C)throw new Error(ad);return f?[!0,{...u||t}]:[!1,C]}const m=bs(c),h=(u==null?void 0:u.inverses)??0,g=u&&m!==u.scheme,v=h+(g?1:0),S={id:i,name:c,theme:wa[c],scheme:m,parentId:a,parentName:u==null?void 0:u.name,inverses:v,isInverse:g,isNew:!0};return o!=="force"&&t&&t.name===c?[!1,S]:o!=="force"&&t&&!s&&S.name===t.name?[!1,S]:[!0,S]};function Dl(t){const e=[t],r=new Set;for(;e.length;){const n=e.shift(),i=Nr[n];if(i)for(const a of i)r.has(a)||(r.add(a),e.push(a))}r.forEach(n=>{var i;(i=vs.get(n))==null||i()})}const Rd={light:"light",dark:"dark"};function bs(t){return Rd[t.split("_")[0]]}function W0(t="",{name:e,reset:r,componentName:n,inverse:i,debug:a},s=!1){if(e&&r)throw new Error("❌004");const{themes:o}=Qt();if(r){if(t==="light"||t==="dark")return t==="light"?"dark":"light";const f=t.lastIndexOf("_"),m=f<=0?t:t.slice(f),h=t.slice(0,f);return o[m]?m:h}const l=t.split("_"),u=l[l.length-1];u&&u[0].toLowerCase()!==u[0]&&l.pop();const c=[e&&n?`${e}_${n}`:void 0,e,n].filter(Boolean);let d=null;if(e){const f=bs(e);if(f){for(const m of c)if(m in o){d=m;break}}if(!d&&!f&&bs(t)){const m=[];for(let h=l.length;h>=1;h--)m.push(l.slice(0,h).join("_"));e:for(const h of m){const g=[n?`${h}_${e}_${n}`:void 0,`${h}_${e}`].filter(Boolean);for(const v of g)if(v in o){d=v;break e}}}}if(!d)if(!e&&n){const f=`${l.join("_")}_${n}`;f in o&&(d=f)}else{const f=l.length;for(let m=0;m<=f;m++){const h=(m===0?l:l.slice(0,-m)).join("_");for(const g of c){const v=h?`${h}_${g}`:g;if(v in o){d=v;break}}if(d)break}}if(i){d||(d=t);const f=d.split("_")[0];d=d.replace(new RegExp(`^${f}`),f==="light"?"dark":"light")}return!s&&d===t&&!Rd[d]?null:d}const z0=({name:t,reset:e,inverse:r,forceClassName:n,componentName:i})=>`${t||""}${r||""}${e||""}${n||""}${i||""}`,H0=t=>"inverse"in t||"name"in t||"reset"in t||"forceClassName"in t,Zy=(t={})=>{const[e]=go(t);return e},go=(t,e=!1)=>{const r=b.useRef(null),n=F0(t,e,r);return[t.passThrough?{}:B0(t,n,r),n]};function j0(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function vo(...t){return e=>t.forEach(r=>j0(r,e))}function Qy(...t){return b.useCallback(vo(...t),t)}const bo={hover:!1,press:!1,pressIn:!1,focus:!1,focusVisible:!1,focusWithin:!1,unmounted:!0,disabled:!1},_s={...bo,unmounted:!1},U0={...bo,unmounted:"should-enter"},hi={};{const t={Hidden:!0,ActiveDescendant:!0,Atomic:!0,AutoComplete:!0,Busy:!0,Checked:!0,ColumnCount:"colcount",ColumnIndex:"colindex",ColumnSpan:"colspan",Current:!0,Details:!0,ErrorMessage:!0,Expanded:!0,HasPopup:!0,Invalid:!0,Label:!0,Level:!0,Modal:!0,Multiline:!0,MultiSelectable:!0,Orientation:!0,Owns:!0,Placeholder:!0,PosInSet:!0,Pressed:!0,RoleDescription:!0,RowCount:!0,RowIndex:!0,RowSpan:!0,Selected:!0,SetSize:!0,Sort:!0,ValueMax:!0,ValueMin:!0,ValueNow:!0,ValueText:!0};for(const e in t){let r=t[e];r===!0&&(r=e.toLowerCase()),hi[`accessibility${e}`]=`aria-${r}`}}function Td(t){const e=v0(),[r,n,i,a]=t.split("-");let s;const o=i in e?i:void 0;return o?s=a:s=i,{name:n,pseudo:s,media:o}}const Wl="_";let zl=null,Ca=null;const K0={press:"active",focusVisible:"focus-visible",focusWithin:"focus-within"},Ra=new Array(5).fill(0).map((t,e)=>new Array(e).fill(":root").join(""));function Y0(t,e,r,n,i=!1,a=""){const s=e.lastIndexOf(":root")+5,o=e.lastIndexOf("{"),l=e.slice(s,o),u=Ae("themeClassNameOnRoot")&&i?"":" ",c=n.pseudo?K0[n.pseudo]||n.pseudo:void 0,d=c?`:${c}`:"",f=`:root${a}${u}`,m=`.t_${r?"group_":""}${t}${d}`;return[l,`${f}${m} ${l.replaceAll(":root","")}`]}const q0=(t,e,r,n,i,a)=>{const[s,,o,l,u]=t;let c=s;const d=Ae("mediaPropOrder"),f=n==="theme",m=n==="platform",h=n==="group",g=f||m||h,v="",S=o.slice(0,o.indexOf("-")+1),x=`${S}${Wl}${e.replace("-","")}${v}${Wl}`;let C="",y="",R,w,_=o.replace(S,x),I=u.map(T=>T.replace(o,_)).join(";"),k=!1;if(g){let T=(a||0)+(h||m?1:0);if(f||h){const P=Td(f?"theme-"+e:e),{name:V,media:E,pseudo:O}=P;R=E,h&&(w=V),(O==="press"||l==="active")&&(T+=2),O==="hover"&&(k=!0);const[H,F]=Y0(V,I,h,P,f,Ra[T]);C=I.replace(H,F)}else C=`${Ra[T]}${I}`}if(!g||R){if(!Ca){const H=Object.keys(r);Ca=Object.fromEntries(H.map(F=>[F,hd(r[F])])),d||(zl=Object.fromEntries(H.map((F,G)=>[F,new Array(G+1).fill(":root").join("")])))}const T=R||e,P=Ca[T],V=`${P}`,E=R?y:d&&a?Ra[a]:zl[T],O=R?`@container ${w}`:"@media";R&&(I=C),I.includes(O)?C=I.replace("{",` and ${V} {`).replace("and screen and","and"):C=`${O} ${V}{${E}${I}}`,R&&(C=`@supports (contain: ${Ae("webContainerType")||"inline-size"}) {${C}}`)}return k&&(C=`@media (hover:hover){${C}}`),[c,void 0,_,void 0,[C]]},Ss={height:0,width:0};function G0(t){if(typeof t=="number")return t>>>0===t&&t>=0&&t<=4294967295?t:null;if(typeof t!="string")return null;const e=Z0();let r;if(r=e.hex6.exec(t))return parseInt(r[1]+"ff",16)>>>0;const n=Q0(t);return n??((r=e.rgb.exec(t))?(Nt(r[1])<<24|Nt(r[2])<<16|Nt(r[3])<<8|255)>>>0:(r=e.rgba.exec(t))?r[6]!==void 0?(Nt(r[6])<<24|Nt(r[7])<<16|Nt(r[8])<<8|ti(r[9]))>>>0:(Nt(r[2])<<24|Nt(r[3])<<16|Nt(r[4])<<8|ti(r[5]))>>>0:(r=e.hex3.exec(t))?parseInt(r[1]+r[1]+r[2]+r[2]+r[3]+r[3]+"ff",16)>>>0:(r=e.hex8.exec(t))?parseInt(r[1],16)>>>0:(r=e.hex4.exec(t))?parseInt(r[1]+r[1]+r[2]+r[2]+r[3]+r[3]+r[4]+r[4],16)>>>0:(r=e.hsl.exec(t))?(Ta(ei(r[1]),jt(r[2]),jt(r[3]))|255)>>>0:(r=e.hsla.exec(t))?r[6]!==void 0?(Ta(ei(r[6]),jt(r[7]),jt(r[8]))|ti(r[9]))>>>0:(Ta(ei(r[2]),jt(r[3]),jt(r[4]))|ti(r[5]))>>>0:(r=e.hwb.exec(t))?(X0(ei(r[1]),jt(r[2]),jt(r[3]))|255)>>>0:null)}function $r(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function Ta(t,e,r){const n=r<.5?r*(1+e):r+e-r*e,i=2*r-n,a=$r(i,n,t+1/3),s=$r(i,n,t),o=$r(i,n,t-1/3);return Math.round(a*255)<<24|Math.round(s*255)<<16|Math.round(o*255)<<8}function X0(t,e,r){if(e+r>=1){const s=Math.round(e*255/(e+r));return s<<24|s<<16|s<<8}const n=$r(0,1,t+1/3)*(1-e-r)+e,i=$r(0,1,t)*(1-e-r)+e,a=$r(0,1,t-1/3)*(1-e-r)+e;return Math.round(n*255)<<24|Math.round(i*255)<<16|Math.round(a*255)<<8}const Ne="[-+]?\\d*\\.?\\d+",Ht=Ne+"%";function Ia(...t){return"\\(\\s*("+t.join(")\\s*,?\\s*(")+")\\s*\\)"}function Hl(...t){return"\\(\\s*("+t.slice(0,t.length-1).join(")\\s*,?\\s*(")+")\\s*/\\s*("+t[t.length-1]+")\\s*\\)"}function jl(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}let Ea;function Z0(){return Ea===void 0&&(Ea={rgb:new RegExp("rgb"+Ia(Ne,Ne,Ne)),rgba:new RegExp("rgba("+jl(Ne,Ne,Ne,Ne)+"|"+Hl(Ne,Ne,Ne,Ne)+")"),hsl:new RegExp("hsl"+Ia(Ne,Ht,Ht)),hsla:new RegExp("hsla("+jl(Ne,Ht,Ht,Ne)+"|"+Hl(Ne,Ht,Ht,Ne)+")"),hwb:new RegExp("hwb"+Ia(Ne,Ht,Ht)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),Ea}function Nt(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function ei(t){return(parseFloat(t)%360+360)%360/360}function ti(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function jt(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function Q0(t){switch(t){case"transparent":return 0;case"aliceblue":return 4042850303;case"antiquewhite":return 4209760255;case"aqua":return 16777215;case"aquamarine":return 2147472639;case"azure":return 4043309055;case"beige":return 4126530815;case"bisque":return 4293182719;case"black":return 255;case"blanchedalmond":return 4293643775;case"blue":return 65535;case"blueviolet":return 2318131967;case"brown":return 2771004159;case"burlywood":return 3736635391;case"burntsienna":return 3934150143;case"cadetblue":return 1604231423;case"chartreuse":return 2147418367;case"chocolate":return 3530104575;case"coral":return 4286533887;case"cornflowerblue":return 1687547391;case"cornsilk":return 4294499583;case"crimson":return 3692313855;case"cyan":return 16777215;case"darkblue":return 35839;case"darkcyan":return 9145343;case"darkgoldenrod":return 3095792639;case"darkgray":return 2846468607;case"darkgreen":return 6553855;case"darkgrey":return 2846468607;case"darkkhaki":return 3182914559;case"darkmagenta":return 2332068863;case"darkolivegreen":return 1433087999;case"darkorange":return 4287365375;case"darkorchid":return 2570243327;case"darkred":return 2332033279;case"darksalmon":return 3918953215;case"darkseagreen":return 2411499519;case"darkslateblue":return 1211993087;case"darkslategray":return 793726975;case"darkslategrey":return 793726975;case"darkturquoise":return 13554175;case"darkviolet":return 2483082239;case"deeppink":return 4279538687;case"deepskyblue":return 12582911;case"dimgray":return 1768516095;case"dimgrey":return 1768516095;case"dodgerblue":return 512819199;case"firebrick":return 2988581631;case"floralwhite":return 4294635775;case"forestgreen":return 579543807;case"fuchsia":return 4278255615;case"gainsboro":return 3705462015;case"ghostwhite":return 4177068031;case"gold":return 4292280575;case"goldenrod":return 3668254975;case"gray":return 2155905279;case"green":return 8388863;case"greenyellow":return 2919182335;case"grey":return 2155905279;case"honeydew":return 4043305215;case"hotpink":return 4285117695;case"indianred":return 3445382399;case"indigo":return 1258324735;case"ivory":return 4294963455;case"khaki":return 4041641215;case"lavender":return 3873897215;case"lavenderblush":return 4293981695;case"lawngreen":return 2096890111;case"lemonchiffon":return 4294626815;case"lightblue":return 2916673279;case"lightcoral":return 4034953471;case"lightcyan":return 3774873599;case"lightgoldenrodyellow":return 4210742015;case"lightgray":return 3553874943;case"lightgreen":return 2431553791;case"lightgrey":return 3553874943;case"lightpink":return 4290167295;case"lightsalmon":return 4288707327;case"lightseagreen":return 548580095;case"lightskyblue":return 2278488831;case"lightslategray":return 2005441023;case"lightslategrey":return 2005441023;case"lightsteelblue":return 2965692159;case"lightyellow":return 4294959359;case"lime":return 16711935;case"limegreen":return 852308735;case"linen":return 4210091775;case"magenta":return 4278255615;case"maroon":return 2147483903;case"mediumaquamarine":return 1724754687;case"mediumblue":return 52735;case"mediumorchid":return 3126187007;case"mediumpurple":return 2473647103;case"mediumseagreen":return 1018393087;case"mediumslateblue":return 2070474495;case"mediumspringgreen":return 16423679;case"mediumturquoise":return 1221709055;case"mediumvioletred":return 3340076543;case"midnightblue":return 421097727;case"mintcream":return 4127193855;case"mistyrose":return 4293190143;case"moccasin":return 4293178879;case"navajowhite":return 4292783615;case"navy":return 33023;case"oldlace":return 4260751103;case"olive":return 2155872511;case"olivedrab":return 1804477439;case"orange":return 4289003775;case"orangered":return 4282712319;case"orchid":return 3664828159;case"palegoldenrod":return 4008225535;case"palegreen":return 2566625535;case"paleturquoise":return 2951671551;case"palevioletred":return 3681588223;case"papayawhip":return 4293907967;case"peachpuff":return 4292524543;case"peru":return 3448061951;case"pink":return 4290825215;case"plum":return 3718307327;case"powderblue":return 2967529215;case"purple":return 2147516671;case"rebeccapurple":return 1714657791;case"red":return 4278190335;case"rosybrown":return 3163525119;case"royalblue":return 1097458175;case"saddlebrown":return 2336560127;case"salmon":return 4202722047;case"sandybrown":return 4104413439;case"seagreen":return 780883967;case"seashell":return 4294307583;case"sienna":return 2689740287;case"silver":return 3233857791;case"skyblue":return 2278484991;case"slateblue":return 1784335871;case"slategray":return 1887473919;case"slategrey":return 1887473919;case"snow":return 4294638335;case"springgreen":return 16744447;case"steelblue":return 1182971135;case"tan":return 3535047935;case"teal":return 8421631;case"thistle":return 3636451583;case"tomato":return 4284696575;case"turquoise":return 1088475391;case"violet":return 4001558271;case"wheat":return 4125012991;case"white":return 4294967295;case"whitesmoke":return 4126537215;case"yellow":return 4294902015;case"yellowgreen":return 2597139199}return null}var J0=G0;const Id=Vi(J0),eb=Object.freeze(Object.defineProperty({__proto__:null,default:Id},Symbol.toStringTag,{value:"Module"})),tb=Id||eb,rb=tb;function nb(t){const e=Math.round((t&4278190080)>>>24),r=Math.round((t&16711680)>>>16),n=Math.round((t&65280)>>>8),i=((t&255)>>>0)/255;return{r:e,g:r,b:n,a:i}}const Ed=(t,e)=>{if(t){if(typeof t!="string"||t[0]==="$")return t;if(t.startsWith("var(")){if(typeof e=="number"&&e<1)return`color-mix(in srgb, ${t} ${e*100}%, transparent)`}else{const r=Nd(t);if(r){const n=`${r.r},${r.g},${r.b}`;return e===1?`rgb(${n})`:`rgba(${n},${e??r.a??1})`}}return t}},Nd=t=>{if(typeof t!="string")return;const e=rb(t);if(e!=null)return nb(e)};function ib({shadowColor:t,shadowOffset:e,shadowOpacity:r,shadowRadius:n}){var s;const{height:i,width:a}=e||Ss;return{shadowOffset:{width:a||0,height:i||0},shadowRadius:n||0,shadowColor:Ed(t,1),shadowOpacity:r??(t?(s=Nd(t))==null?void 0:s.a:1)}}function Hi(t){var e;(t.shadowRadius!=null||t.shadowColor||t.shadowOpacity!=null||t.shadowOffset)&&Object.assign(t,ib(t));for(const r in Ul)r in t&&(t[e=Ul[r]]||(t[e]="solid"))}const Ul={borderWidth:"borderStyle",borderBottomWidth:"borderBottomStyle",borderTopWidth:"borderTopStyle",borderLeftWidth:"borderLeftStyle",borderRightWidth:"borderRightStyle"},ab={...k0,translateX:!0,translateY:!0};function Xe(t,e=""){if(vd[e]||e&&!ab[e]||typeof t=="boolean")return t;let r=t;return t&&typeof t=="object"?t:(typeof t=="number"?r=`${t}px`:e&&(r=`${r}`),r)}function _o(t){return t.map(e=>{const r=Object.keys(e)[0],n=e[r];return r==="matrix"||r==="matrix3d"?`${r}(${n.join(",")})`:`${r}(${Xe(n,r)})`}).join(" ")}function Kl(t){So(t);const e=[];for(const r in t){if(r==="$$css")continue;const n=t[r];if(r in ot)n&&e.push(...Ad(n,ot[r]));else if(b0(r))for(const i in n){const a=ys(n,i);a&&(a[0]=r,e.push(a))}else{const i=ys(t,r);i&&e.push(i)}}return e}const Ad=(t,e)=>{So(t);const r=[];for(const n in t){const i=ys(t,n,e);i&&r.push(i)}return r};let ri=null;const ys=(t,e,r)=>{let n=t[e];if(n==null)return;e==="transform"&&Array.isArray(t.transform)&&(n=_o(n));const i=Xe(n,e),a=Pn(typeof i=="string"?i:`${i}`),s=r?`0${r.name}-`:"";ri||(ri=od());const o=`_${(ri==null?void 0:ri.inverseShorthands[e])||e}-${s}${a}`,l=ub(o,e,i,r);return[e,i,o,r==null?void 0:r.name,l]};function So(t){const{shadowOffset:e,shadowRadius:r,shadowColor:n,shadowOpacity:i}=t;if(r!=null||n||e!=null||i!=null){const l=e||Ss,u=Xe(l.width),c=Xe(l.height),d=Xe(r),f=Ed(n,i);if(f){const m=`${u} ${c} ${d} ${f}`;t.boxShadow=t.boxShadow?`${t.boxShadow}, ${m}`:m}delete t.shadowOffset,delete t.shadowRadius,delete t.shadowColor,delete t.shadowOpacity}const{textShadowColor:a,textShadowOffset:s,textShadowRadius:o}=t;if(a||s||o){const{height:l,width:u}=s||Ss,c=o||0,d=Xe(a,"textShadowColor");if(d&&(l!==0||u!==0||c!==0)){const f=Xe(c),m=Xe(u),h=Xe(l);t.textShadow=`${m} ${h} ${f} ${d}`}delete t.textShadowColor,delete t.textShadowOffset,delete t.textShadowRadius}}function kr(t,e=!1){let r="";for(const[n,i]of t)r+=`${ob(n)}:${i}${e?" !important":""};`;return`{${r}}`}const Na={},sb=t=>`-${t.toLowerCase()}`,ob=t=>{if(t in Na)return Na[t];const e=t.replace(/[A-Z]/g,sb);return Na[t]=e,e},lb=(()=>{const t={};for(const e in ot){const r=ot[e];t[r.name]=`${[...Array(r.priority)].map(()=>":root").join("")} `}return t})();function ub(t,e,r,n){const i=n?n.name==="disabled"?"[aria-disabled]":`:${n.name}`:"",a=n==null?void 0:n.selector;let s=n?a?`${a} .${t}`:`${lb[n.name]} .${t}${i}`:`:root .${t}`;a===ot.enterStyle.selector&&(s=`${s}, .${t}${a}`);const o=!!n;let l=[];switch(e){case"placeholderTextColor":{const u=kr([["color",r],["opacity",1]],o);l.push(`${s}::placeholder${u}`);break}case"backgroundClip":case"userSelect":{const u=`Webkit${`${e[0].toUpperCase()}${e.slice(1)}`}`,c=kr([[e,r],[u,r]],o);l.push(`${s}${c}`);break}case"pointerEvents":{let u=r;r==="auto"||r==="box-only"?(u="auto",r==="box-only"&&l.push(`${s}>*${db}`)):(r==="none"||r==="box-none")&&(u="none",r==="box-none"&&l.push(`${s}>*${cb}`));const c=kr([["pointerEvents",u]],!0);l.push(`${s}${c}`);break}default:{const u=kr([[e,r]],o);l.push(`${s}${u}`);break}}return(n==null?void 0:n.name)==="hover"&&(l=l.map(u=>`@media (hover) {${u}}`)),l}const cb=kr([["pointerEvents","auto"]],!0),db=kr([["pointerEvents","none"]],!0);var Br={};const Yl=new WeakMap,xs=new Map,ws={},ql=()=>Object.keys(ws).sort().map(t=>ws[t]);let Gl=null;function fb(t=!1,e){if(!Dr)return;let r;const n=document.styleSheets||[],i=Gl,a=new Set(n);for(const s of a)if(s){const o=Zl(s,!1,t,e);o&&(r=o)}if(Gl=a,i)for(const s of i)s&&!a.has(s)&&Zl(s,!0);return r}function hb(t){const e=(xs.get(t)||0)+1;return xs.set(t,e),e}const Xl=Br.TAMAGUI_BAIL_AFTER_SCANNING_X_CSS_RULES,mb=Xl?+Xl:400;function Zl(t,e=!1,r=!1,n){var m,h;let i;try{if(i=t.cssRules,!i)return}catch{return}const a=(m=mi(i[0],r))==null?void 0:m[0],s=(h=mi(i[i.length-1],r))==null?void 0:h[0],o=`${i.length}${a}${s}`,l=Yl.get(t);if(!e&&l===o)return;const u=i.length;let c=0,d;const f={};for(let g=0;g<u;g++){const v=i[g];if(!(v instanceof CSSStyleRule))continue;const S=mi(v,r);if(S)c=0;else{if(c++,c>mb)return;continue}const[x,C,y]=S;if(y){const R=pb(C,n);if(R){for(const w of R.names)f[w]?(Object.apply(f[w],R.theme),R.names=R.names.filter(_=>_!==w)):f[w]=R.theme;d||(d=[]),d.push(R)}continue}}return Yl.set(t,o),d}let ni,Ql=null;function pb(t,e){const r=t.selectorText.split(",");if(!r.length)return;if(e!=null&&e.color&&!ni){ni={};for(const s in e.color){const o=e.color[s];ni[o.name]=o.val}}const n=(t.cssText||"").slice(t.selectorText.length+2,-1).split(";"),i={};for(const s of n){const o=s.indexOf(":");if(o===-1)continue;const l=s.indexOf("--");let u=s.slice(l===-1?0:l+2,o);Br.TAMAGUI_CSS_VARIABLE_PREFIX&&(u=u.replace(Br.TAMAGUI_CSS_VARIABLE_PREFIX,""));const c=s.slice(o+2);let d;if(c[0]==="v"&&c.startsWith("var(")){const f=c.slice(6,-1),m=ni[f];m?d=m:(Ql||(Ql=getComputedStyle(document.body)),d=Ql.getPropertyValue("--"+f))}else d=c;i[u]=Nn({key:u,name:u,val:d},!0)}const a=new Set;for(const s of r){if(s===" .tm_xxt")continue;const o=s.lastIndexOf(".t_"),l=s.slice(o).slice(3),[u]=s[o-5],c=u==="d"?"dark":u==="i"?"light":"",d=c&&c!==l?`${c}_${l}`:l;!d||d==="light_dark"||d==="dark_light"||a.add(d)}return{names:[...a],theme:i}}const Jl=/\.tm_xxt/;function mi(t,e=!1){if(t instanceof CSSStyleRule){const r=t.selectorText;if(r[0]===":"&&r[1]==="r"&&Jl.test(r)){const n=gb(r.replace(Jl,""));return e?[n,t,!0]:[n,t]}}else if(t instanceof CSSMediaRule)return t.cssRules.length>1?void 0:mi(t.cssRules[0])}const gb=t=>{const e=t.indexOf(":");return e>-1?t.slice(7,e):t.slice(7)};let ln=null,Ld=!0;function vb(){Ld=!1}function kd(t,e){return Ld&&(ws[t]=e.join(" ")),!0}function bb(t){if(Dr){if(!ln&&document.head){const e=document.createElement("style");e.id="_tamagui-styles",ln=document.head.appendChild(e).sheet}if(ln)for(const e in t){const r=t[e],n=r[En];if(!Od(n))continue;const i=r[mo];i.join(`
11
- `),hb(n),kd(n,i);try{for(const a of i)ln.insertRule(a,ln.cssRules.length),n==="_dsp-_groupframe-maxMd_none"&&console.warn("INSERT",a)}catch{console.error("Error inserting style rule",i)}}}}const _b=Br.TAMAGUI_INSERT_SELECTOR_TRIES?+Br.TAMAGUI_INSERT_SELECTOR_TRIES:1;function Od(t){return Br.IS_STATIC==="is_static"?!0:(xs.get(t)||0)<_b}function Aa(t){if(!t.startsWith("$platform"))return!0;const e=t.slice(10);return e===o0||e==="web"}function Sb(t,e){if(t.startsWith("$theme-"))return t.slice(7).startsWith(e)}const eu={},tu={},yb=[["flexGrow",0],["flexShrink",1],["flexBasis","auto"]];function Pd(t,e){if(t==="flex")return e===-1?yb:[["flexGrow",e],["flexShrink",1],["flexBasis",Ae("styleCompat")==="react-native"?0:"auto"]];switch(t){case"textAlignVertical":return[["verticalAlign",e==="center"?"middle":e]];case"writingDirection":return[["direction",e]];case"backdropFilter":return[["backdropFilter",e],["WebkitBackdropFilter",e]]}if(t in bn)return bn[t].map(r=>[r,e]);if(t in tu)return tu[t].map(r=>[r,e]);if(t in eu)return eu[t](e)}const ru=["Top","Right","Bottom","Left"],nu=["Right","Left"],iu=["Top","Bottom"],au=["X","Y"],bn={borderColor:["TopColor","RightColor","BottomColor","LeftColor"],borderRadius:["TopLeftRadius","TopRightRadius","BottomRightRadius","BottomLeftRadius"],borderWidth:["TopWidth","RightWidth","BottomWidth","LeftWidth"],margin:ru,marginHorizontal:nu,marginVertical:iu,overscrollBehavior:au,padding:ru,paddingHorizontal:nu,paddingVertical:iu,borderStyle:["TopStyle","RightStyle","BottomStyle","LeftStyle"],overflow:au};var Vu;for(const t in bn){const e=t.slice(0,((Vu=/[A-Z]/.exec(t))==null?void 0:Vu.index)??t.length);bn[t]=bn[t].map(r=>`${e}${r}`)}const La=new WeakMap,xb=t=>{if(La.has(t))return La.get(t);const{props:e,conf:r,context:n,theme:i,styleProps:a}=t;let s=r.fontsParsed;n!=null&&n.language&&(s=Cs(r.fontsParsed,n.language));const o={fonts:s,tokens:r.tokensParsed,theme:i,context:a==null?void 0:a.styledContext,get fontFamily(){return Mi(t.fontFamily||t.props.fontFamily)||e.fontFamily||Mi(Ae("defaultFont"))},get font(){return s[this.fontFamily]||(!e.fontFamily||e.fontFamily[0]==="$"?s[Ae("defaultFont")||""]:void 0)},props:e};return La.set(t,o),o},ka=new WeakMap;function Cs(t,e){if(ka.has(e))return ka.get(e);const r={...t,...Object.fromEntries(Object.entries(e).map(([n,i])=>{if(i==="default")return[];const a=`$${n}_${i}`;return[`$${n}`,t[a]]}))};return ka.set(e,r),r}const ji=t=>t&&!Array.isArray(t)&&typeof t=="object";function Md(t,e=!1){const r={};for(let n in t){const i=t[n];if(i==null)continue;if(n in ot||n[0]==="$"&&ji(i)){r[n]=Md(i,e);continue}const a=e?i:Xe(i,n),s=Pd(n,a);s?Object.assign(r,Object.fromEntries(s)):r[n]=a}return Hi(r),r}const _n={untilMeasured:1,animation:1,space:1,animateOnly:1,disableClassName:1,debug:1,componentName:1,disableOptimization:1,tag:1,style:1,group:1,themeInverse:1,animatePresence:1};var wb={};const $d=(t,e,r,n,i)=>{var c;if(n)return i(t,e);if(Sn=null,t==="elevationAndroid")return;const{conf:a,styleProps:s,staticConfig:o}=r;if(e==="unset"){const d=(c=a.unset)==null?void 0:c[t];if(d!=null)e=d;else return}const{variants:l}=o;if(!s.noExpand&&l&&t in l){const d=Bd(t,e,s,r,"");if(d){d.forEach(([f,m])=>i(f,m));return}}s.disableExpandShorthands||t in a.shorthands&&(t=a.shorthands[t]);const u=e;if(e!=null&&(e[0]==="$"?e=Rs(t,e,s,r):lt(e)&&(e=yo(t,e,s.resolveValues))),e!=null){t==="fontFamily"&&Sn&&(r.fontFamily=Sn);const d=s.noExpand?null:Pd(t,e);if(d){const f=d.length;for(let m=0;m<f;m++){const[h,g]=d[m];i(h,g,u)}}else i(t,e,u)}},Bd=(t,e,r,n,i)=>{const{staticConfig:a,conf:s,debug:o}=n,{variants:l}=a;if(!l)return;let u=Tb(l[t],e,s);if(!u){if(wb.TAMAGUI_WARN_ON_MISSING_VARIANT==="1"&&typeof e!="boolean"){const d=a.componentName||"[UnnamedComponent]";console.warn(`No variant found: ${d} has variant "${t}", but no matching value "${e}"`)}return}if(typeof u=="function"){const d=u,f=xb(n);u=d(e,f)}let c;if(ji(u)){const d=u.fontFamily||u[s.inverseShorthands.fontFamily];d&&(c=Cb(d,s),n.fontFamily=c),u=Vd(t,u,r,n,i)}if(u){const d=Md(u,!!r.noNormalize),f=Object.entries(d);return c&&c[0]==="$"&&(Sn=Mi(c)),f}};function Cb(t,e){if(lt(t)){const r=su.get(t);if(r)return r;for(const n in e.fontsParsed){const i=e.fontsParsed[n].family;if(lt(i)&&(su.set(i,n),i===t))return n}}else if(typeof t=="string"&&t[0]==="$")return t}const su=new WeakMap,Vd=(t,e,r,n,i)=>{var d,f,m;const{conf:a,staticConfig:s,debug:o,theme:l}=n,{variants:u}=s,c={};for(const h in e){const g=a.shorthands[h]||h,v=e[h];if(!(!r.noSkip&&g in _n)){if(s){const S=((d=s.context)==null?void 0:d.props)||((m=(f=s.parentStaticConfig)==null?void 0:f.context)==null?void 0:m.props);S&&g in S&&(n.overriddenContextProps||(n.overriddenContextProps={}),n.overriddenContextProps[g]=v,n.originalContextPropValues||(n.originalContextPropValues={}),n.originalContextPropValues[g]=v)}if(r.noExpand)c[g]=v;else if(u&&g in u){if(i&&i===t)c[g]=v[0]==="$"?Rs(g,v,r,n):v;else{const S=Bd(g,v,r,n,t);if(S)for(const[x,C]of S)C!=null&&(x in ot?(c[x]??(c[x]={}),Object.assign(c[x],C)):c[x]=C)}continue}if(lt(v)){c[g]=yo(g,v,r.resolveValues);continue}if(typeof v=="string"){const S=v[0]==="$"?Rs(g,v,r,n):v;c[g]=S;continue}if(ji(v)){const S=Vd(g,v,r,n,t);c[g]??(c[g]={}),Object.assign(c[g],S)}else c[g]=v}}return c},Rb=["size","color","radius","space","zIndex"].map(t=>({name:t,spreadName:`...${t}`}));function Tb(t,e,r){if(!t)return;if(typeof t=="function")return t;const n=t[e];if(n)return n;if(e!=null){const{tokensParsed:i}=r;for(const{name:s,spreadName:o}of Rb)if(o in t&&s in i&&e in i[s])return t[o];const a=t["...fontSize"];if(a&&r.fontSizeTokens.has(e))return a}return t[`:${typeof e}`]||t["..."]}const Ib={fontSize:"size",fontWeight:"weight"};let Sn=null;const Rs=(t,e,r,n)=>{var g,v,S,x,C;let i=r.resolveValues||"none";if(i==="none")return e;const{theme:a,conf:s=Qt(),context:o,fontFamily:l,staticConfig:u}=n,c=a?a[e]||a[e.slice(1)]:void 0,d=s.tokensParsed;let f,m=!1;const h=(g=u==null?void 0:u.accept)==null?void 0:g[t];if(h){const y=c??d[h][e];y!=null&&(i="value",f=y,m=!0)}if(c){if(i==="except-theme")return e;f=c,m=!0}else{if(e in s.specificTokens)m=!0,f=s.specificTokens[e];else{switch(t){case"fontFamily":{f=((v=(o!=null&&o.language?Cs(s.fontsParsed,o.language):s.fontsParsed)[e])==null?void 0:v.family)||e,Sn=e,m=!0;break}case"fontSize":case"lineHeight":case"letterSpacing":case"fontWeight":{const y=l||s.defaultFontToken;if(y){const R=o!=null&&o.language?Cs(s.fontsParsed,o.language):s.fontsParsed;f=((x=(S=R[y]||R[s.defaultFontToken])==null?void 0:S[Ib[t]||t])==null?void 0:x[e])||e,m=!0}break}}for(const y in hr)if(t in hr[y]){const R=(C=d[y])==null?void 0:C[e];R!=null&&(f=R,m=!0)}}if(!m){const y=d.space[e];y!=null&&(f=y,m=!0)}}if(m)return yo(t,f,i)};function yo(t,e,r){if(r==="none")return e;if(lt(e)){if(r==="value")return e.val;const n=e==null?void 0:e.get;return typeof n=="function"?n(r==="web"?"web":void 0):e.variable}return e}const Fd=(t,e)=>t<e?-1:t>e?1:0;var Kt={};let lr;const yn=new WeakMap,ou="-";function lu(t,e){const r=t.split("-"),n=r.length;if(n===2||n===3&&Jc[r[r.length-1]]){const i=r[1];if(e&&!e[i])return t.replace("$group-","$group-true-")}return t}function uu(t,e,r){return t in e?!0:r&&t in r}const Dd=(t,e,r,n,i,a,s,o,l,u,c,d)=>{var dt,vt,bt,vr;lr=lr||Qt();const f=(o==null?void 0:o.animationDriver)||lr.animations;if(t.passThrough)return null;a.isAnimated&&f.isReactNative&&!a.noNormalize&&(a.noNormalize="values");const{shorthands:m}=lr,{isHOC:h,isText:g,isInput:v,variants:S,isReactNative:x,inlineProps:C,inlineWhenUnflattened:y,parentStaticConfig:R,acceptsClassName:w}=e,_={},I=a.mediaState||Ue,k=w&&Pi&&!a.noClass,T={},P={};let V=t.space,E=null,O=!1,H,F,G;t.className;let Z=0;const J=e.validStyles||(e.isText||e.isInput?Sd:$n),M={classNames:P,conf:lr,props:t,styleProps:a,componentState:i,staticConfig:e,style:null,theme:r,usedKeys:{},viewProps:_,context:o,debug:d};if(Kt.IS_STATIC==="is_static"){const{fallbackProps:Q}=a;Q&&(M.props=new Proxy(t,{get(A,W,le){return Reflect.has(t,W)?Reflect.get(t,W):Reflect.get(Q,W)}}))}const{asChild:Te}=t,{accept:Me}=e,{noSkip:Fe,disableExpandShorthands:me,noExpand:D,styledContext:Ke}=a,{webContainerType:Re}=lr.settings,ye=R==null?void 0:R.variants;for(const Q in t){let A=Q,W=t[A];if(A==="children"){_[A]=W;continue}if(Me){const j=Me[A];if((j==="style"||j==="textStyle")&&W&&typeof W=="object"){_[A]=cn(M,A,W,a.noClass);continue}}if(me||A in m&&(A=m[A]),A==="className"||Te&&id[A]===W)continue;if(A in _n&&!Fe&&!h){if(A==="group"){const j=`t_group_${W}`,_e=["continer",void 0,j,void 0,[`.${j} { container-name: ${W}; container-type: ${Re||"inline-size"}; }`]];ii(T,_e)}continue}let le=uu(A,J,Me);if(e.isReactNative&&A.startsWith("data-")){A=A.replace("data-",""),_.dataSet||(_.dataSet={}),_.dataSet[A]=W;continue}if(A==="dataSet"){for(const j in W)_[`data-${Pb(j)}`]=W[j];continue}if(!D){if(A==="disabled"&&W===!0&&(_["aria-disabled"]=!0,(u==="button"||u==="form"||u==="input"||u==="select"||u==="textarea")&&(_.disabled=!0),!(S!=null&&S.disabled)))continue;if(A==="testID"){_[x?A:"data-testid"]=W;continue}if(A==="id"||A==="nativeID"){_.id=W;continue}let j=!1;if(x){if(A in hi||A.startsWith("accessibility")){_[A]=W;continue}}else{if(j=!0,A in hi){_[hi[A]]=W;continue}switch(A){case"accessibilityRole":{W==="none"?_.role="presentation":_.role=$b[W]||W;continue}case"accessibilityLabelledBy":case"accessibilityFlowTo":case"accessibilityControls":case"accessibilityDescribedBy":{_[`aria-${A.replace("accessibility","").toLowerCase()}`]=Ab(W);continue}case"accessibilityKeyShortcuts":{Array.isArray(W)&&(_["aria-keyshortcuts"]=W.join(" "));continue}case"accessibilityLiveRegion":{_["aria-live"]=W==="none"?"off":W;continue}case"accessibilityReadOnly":{_["aria-readonly"]=W,(u==="input"||u==="select"||u==="textarea")&&(_.readOnly=!0);continue}case"accessibilityRequired":{_["aria-required"]=W,(u==="input"||u==="select"||u==="textarea")&&(_.required=W);continue}default:j=!1}}if(j)continue}let ve=!le&&S&&A in S;const He=le||ve;let be=A in gs,ue=!He&&!be?Vl(A):!1,ce=!!(ue||be);ce&&ue==="group"&&(A=lu(A,l));const _t=le||ce||ve&&!D;if(_t&&(Te==="except-style"||Te==="except-style-web"))continue;const q=!_t&&h||h&&ye&&A in ye||(C==null?void 0:C.has(A)),Et=ye==null?void 0:ye[A],$t=!!(h&&(le||ce||Et||A in _n));if((q||$t)&&(cu(_,A,W,ce),!ve)||!Fe&&A in _n)continue;(g||v)&&W&&(A==="fontFamily"||A===m.fontFamily)&&W in lr.fontsParsed&&(M.fontFamily=W);const Bt=ce||!He;$d(A,W,M,Bt,(j,_e,zr)=>{var Jt,br,_r,St;const ie=Ke&&j in Ke;if(!h&&Bt&&!ie&&!ce){_[j]=_e;return}if(_e!=null){if(!h&&uu(j,J,Me)){An(M,j,_e,1,!1,zr);return}if(be=j in gs,ue=be?!1:Vl(j),ce=!!(ue||be),ve=S&&j in S,ue==="group"&&(j=lu(j,l)),(C!=null&&C.has(j)||Kt.IS_STATIC==="is_static"&&(y!=null&&y.has(j)))&&(_[j]=t[j]??_e),a.noExpand&&be||h&&(ce||((Jt=R==null?void 0:R.variants)==null?void 0:Jt[A]))){cu(_,j,_e,ce);return}if(be){if(!_e)return;const De=cn(M,j,_e,a.noClass&&Kt.IS_STATIC!=="is_static");if((!k||Kt.IS_STATIC==="is_static")&&(E||(E={}),E[j]||(E[j]={}),Kt.IS_STATIC==="is_static")){Object.assign(E[j],De);return}const ge=ot[j],Ye=j==="enterStyle",$e=j==="exitStyle";if(!ge)return;if(k&&!$e){const ft=Ad(De,ge);for(const de of ft){const te=`${de[ba]}${ou}${ge.name}`;ii(T,de),P[te]=de[En]}}if(!k||$e||Ye){const ft=ge.stateKey||ge.name;let de=i[ft]===!1;$e&&(de=!a.isExiting),Ye&&i.unmounted===!1&&(de=!0);const te=ge.priority,Ee=yn.get(De);for(const fe in De){const X=De[fe];if(de)Oa(fe,M);else{const xe=M.usedKeys[fe]||0;te>=xe&&(Kt.IS_STATIC==="is_static"&&(E||(E={}),E[j]||(E[j]={}),E[j][fe]=X),An(M,fe,X,te,!1,Ee==null?void 0:Ee[fe]))}}if(!de)for(const fe in _e){const X=m[fe]||fe;M.usedKeys[X]=Math.max(te,M.usedKeys[X]||0)}}return}if(ue){if(!_e)return;const De=_e.space,ge=j.slice(ue=="theme"?7:1);if(O||(O=!0),(De||!k||a.willBeAnimated)&&((!O||typeof O=="boolean")&&(O=new Set),O.add(ge)),ue==="platform"&&!Aa(j))return;const Ye=Z;if(Z+=1,k){const $e=cn(M,j,_e,!1);if(De&&(delete $e.space,I[ge])){const de=fd(ge,"space",M,!0);de&&(V=_e.space,M.usedKeys.space=de)}const ft=Kl($e);for(const de of ft){const te=de[ba],Ee=te[0]==="$";if(Ee&&!Aa(te))continue;const fe=q0(de,ge,In,ue,!1,Ye),X=Ee?de[2]:"",xe=`${de[ba]}${X}${ou}${ge}${de[N0]||""}`;ii(T,fe),P[xe]=fe[En]}}else{let $e=function(X,xe,ke){M.style||(M.style={}),Bb(M,ge,X,xe,I[ge],Ee,d,ke)&&X==="fontFamily"&&(M.fontFamily=te.fontFamily)};const ft=ue==="theme",de=ue==="group";if(!ft&&ue!=="platform"&&!de&&!I[ge])return;const te=cn(M,j,_e,!0);let Ee=0;if(ft){if(H=!0,!(n===ge||n.startsWith(ge)))return}else if(de){const X=Td(ge),xe=X.name,ke=(br=l==null?void 0:l[xe])==null?void 0:br.state,yt=X.pseudo,tt=X.media;if(!ke){F||(F=new Set);return}const rt=(_r=i.group)==null?void 0:_r[xe];if(tt){G||(G=new Set),G.add(tt);const Oe=rt==null?void 0:rt.media;let ht=Oe==null?void 0:Oe[tt];if(!Oe&&ke.layout&&(ht=md(tt,ke.layout)),!ht){for(const mt in te)Oa(mt,M);return}Ee=2}if(yt){F||(F=new Set),F.add(xe);const Oe=(St=rt||(l==null?void 0:l[xe].state))==null?void 0:St.pseudo,ht=Oe==null?void 0:Oe[yt],mt=Jc[yt];if(!ht){for(const Hr in te)Oa(Hr,M);return}Ee=mt}}const fe=yn.get(te);for(const X in te){if(X==="space"){V=W.space;continue}if(X[0]==="$"){if(!Aa(X)||!Sb(X,n))continue;const xe=yn.get(te[X]);for(const ke in te[X])$e(ke,te[X][ke],xe==null?void 0:xe[ke])}else $e(X,te[X],fe==null?void 0:fe[X])}}return}if(!ve){if(ie)return;_[j]=_e}}})}if(a.noNormalize!==!1&&(M.style&&(Hi(M.style),!a.noExpand&&!a.noMergeStyle&&Pi&&(!x||!f.supportsCSS)&&So(M.style)),M.flatTransforms&&(M.style||(M.style={}),Wd(M.style,M.flatTransforms))),!a.noNormalize&&!e.isReactNative&&!e.isHOC&&(!a.isAnimated||f.supportsCSS)&&Array.isArray((dt=M.style)==null?void 0:dt.transform)&&(M.style.transform=_o(M.style.transform)),!a.noMergeStyle&&M.style&&k){let Q,A=!1;if(!M.style.$$css){const W=Kl(M.style);for(const le of W){const[ve,He,be]=le,ue=a.isAnimated&&a.noClass&&((vt=t.animateOnly)==null?void 0:vt.includes(ve)),ce=!ue&&!a.isAnimated&&((bt=t.animateOnly)==null?void 0:bt.includes(ve));ue?(Q||(Q={}),Q[ve]=M.style[ve]):ce?(Q||(Q={}),Q[ve]=He,A=!0):(ii(T,le),P[ve]=be)}(A||Kt.IS_STATIC!=="is_static")&&(M.style=Q||{})}}if(x)_.tabIndex===0&&(_.accessible??(_.accessible=!0));else if(_.tabIndex==null){const Q=_.focusable??_.accessible;_.focusable&&delete _.focusable;const A=_.role;Q===!1&&(_.tabIndex="-1"),u==="a"||u==="button"||u==="input"||u==="select"||u==="textarea"?(Q===!1||t.accessibilityDisabled===!0)&&(_.tabIndex="-1"):(A==="button"||A==="checkbox"||A==="link"||A==="radio"||A==="textbox"||A==="switch")&&Q!==!1&&(_.tabIndex="0"),Q&&(_.tabIndex="0",delete _.focusable)}const Ie=t.style;if(!a.noMergeStyle&&Ie)if(h)_.style=du(Ie);else{const Q=Array.isArray(Ie),A=Q?Ie.length:1;for(let W=0;W<A;W++){const le=Q?Ie[W]:Ie;le&&(le.$$css?Object.assign(M.classNames,le):(M.style||(M.style={}),Object.assign(M.style,du(le))))}}const Le={space:V,hasMedia:O,fontFamily:M.fontFamily,viewProps:_,style:M.style,pseudos:E,classNames:P,rulesToInsert:T,dynamicThemeAccess:H,pseudoGroups:F,mediaGroups:G,overriddenContextProps:M.overriddenContextProps},pe=Te==="except-style"||Te==="except-style-web";if(!a.noMergeStyle&&!pe){const Q=M.style;{let A=g||v?M.fontFamily||((vr=e.defaultProps)==null?void 0:vr.fontFamily):null;A&&A[0]==="$"&&(A=A.slice(1));const W=A?`font_${A}`:"",le=t.group?`t_group_${t.group}`:"",ve=t.componentName||e.componentName,He=t.asChild||!ve?"":`is_${ve}`;let be=[];He&&be.push(He),W&&be.push(W),P&&be.push(Object.values(P).join(" ")),le&&be.push(le),t.className&&be.push(t.className);const ue=be.join(" ");if(a.isAnimated&&x)Q&&(_.style=Q),f!=null&&f.supportsCSS&&(_.className=ue);else if(x){let ce;for(const _t of ue.split(" "))ce||(ce={$$css:!0}),ce[_t]=_t;_.style=ce?[...Array.isArray(Q)?Q:[Q],ce]:[Q]}else ue&&(_.className=ue),Q&&(_.style=Q)}}return Le};function Wd(t,e){Object.entries(e).sort(([r],[n])=>Fd(r,n)).forEach(([r,n])=>{xo(t,r,n,!0)})}function An(t,e,r,n,i=!1,a){var d,f,m,h;const{viewProps:s,styleProps:o,staticConfig:l,usedKeys:u}=t;if((u[e]||0)>n)return;const c=((d=l.context)==null?void 0:d.props)||((m=(f=l.parentStaticConfig)==null?void 0:f.context)==null?void 0:m.props);if(c&&e in c){t.overriddenContextProps||(t.overriddenContextProps={});const g=(h=t.originalContextPropValues)==null?void 0:h[e];t.overriddenContextProps[e]=a??g??r}if(e in zi)t.flatTransforms||(t.flatTransforms={}),u[e]=n,t.flatTransforms[e]=r;else{const g=!i&&!o.noNormalize?Xe(r,e):r;l.accept&&e in l.accept?s[e]=g:(t.style||(t.style={}),u[e]=n,t.style[e]=e==="transform"&&Array.isArray(g)?[...g]:g)}}const cn=(t,e,r,n)=>{var u;const{staticConfig:i,conf:a,styleProps:s}=t,o={};let l;for(let c in r){const d=r[c];c=a.shorthands[c]||c,!(!i.isHOC&&c in _n&&!s.noSkip)&&$d(c,d,t,!1,(f,m,h)=>{h!==void 0&&(l||(l={}),l[f]=h),f in gs&&(m=cn(t,f,m,n)),!n&&f in zi?xo(o,f,m):o[f]=s.noNormalize?m:Xe(m,c)})}if(!n){if(Array.isArray(o.transform)){const c=(u=t.style)==null?void 0:u.transform;c&&(o.transform=[...c,...o.transform])}t.flatTransforms&&Wd(o,t.flatTransforms)}return s.noNormalize||Hi(o),l&&yn.set(o,l),o},Eb=U.useInsertionEffect||Qe,Nb=(t,e,r,n,i,a,s,o,l,u,c,d)=>{const f=Dd(t,e,r,n,i,a,s,o,l,u,c,d);return Eb(()=>{f&&bb(f.rulesToInsert)},[f==null?void 0:f.rulesToInsert]),f};function ii(t,e){{const r=e[En];Od(r)&&(kd(r,e[mo]),t[r]=e)}}function Ab(t){return Array.isArray(t)?t.join(" "):t}const Lb=Kt.TAMAGUI_DEFAULT_COLOR||"rgba(0,0,0,0)",kb={...Object.fromEntries(Object.entries(hr.color).map(([t,e])=>[t,Lb])),opacity:1,scale:1,rotate:"0deg",rotateY:"0deg",rotateX:"0deg",x:0,y:0,borderRadius:0},Ob=t=>`-${t.toLowerCase()}`,Pb=t=>t.replace(/[A-Z]/g,Ob),xo=(t,e,r,n=!1)=>{typeof t.transform!="string"&&(t.transform||(t.transform=[]),t.transform[n?"unshift":"push"]({[Mb[e]||e]:r}))},Mb={x:"translateX",y:"translateY"},$b={adjustable:"slider",header:"heading",image:"img",link:"link",none:"presentation",summary:"region"};function cu(t,e,r,n=!1){if(n){const i={...t[e],...r};delete t[e],t[e]=i}else t[e]=r}function Bb(t,e,r,n,i,a,s,o){t.usedKeys;let l=fd(e,r,t,i);if(a&&(l=(l||0)+a),l===null)return!1;if(r in ot){const u=ot[r],c=u.stateKey||u.name;if(t.componentState[c]===!1)return!1;const d=yn.get(n);for(const f in n)An(t,f,n[f],l,!1,d==null?void 0:d[f])}else An(t,r,n,l,!1,o);return!0}function du(t){const e={};for(const r in t){const n=t[r];r in zi?xo(e,r,n):e[r]=Xe(n,r)}return Array.isArray(e.transform)&&(e.transform=_o(e.transform)),Hi(e),e}function Oa(t,e){const r=kb[t];r!=null&&!(t in e.usedKeys)&&(!e.style||!(t in e.style))&&An(e,t,r,1)}const it={};function Vb(t){Object.assign(it,t)}const Fb=t=>{var e;(e=it.setElementProps)==null||e.call(it,t)},Db=t=>{const{pseudoGroups:e,mediaGroups:r,groupContext:n}=t;if(e||r){const i=new Set;if(e)for(const a of[...e])i.add(fu(a,t));if(r)for(const a of[...r])i.add(fu(a,t));return()=>{i.forEach(a=>a())}}},fu=(t,{setStateShallow:e,pseudoGroups:r,mediaGroups:n,groupContext:i})=>{const a=i==null?void 0:i[t];if(!a)return()=>{};const s=a.subscribe(({layout:o,pseudo:l})=>{e(u=>{var f;let c=!1;const d=((f=u.group)==null?void 0:f[t])||{pseudo:{},media:{}};if(l&&(r!=null&&r.has(t)))d.pseudo||(d.pseudo={}),cs(d.pseudo,l)!==d.pseudo&&(Object.assign(d.pseudo,l),c=!0);else if(o&&n){d.media||(d.media={});const m=I0(n,o),h=cs(d.media,m);h!==d.media&&(Object.assign(d.media,h),c=!0)}return c?{group:{...u.group,[t]:d}}:u})});return()=>{s(),e({group:{}})}},$i=b.createContext(!1),Wb=({children:t,enabled:e})=>{const r=b.useContext($i);return z.jsx($i.Provider,{value:e??r,children:t})},zb=()=>b.useContext($i);function Hb(){return b.useContext($i)?!0:b.useSyncExternalStore(jb,()=>!0,()=>!1)}const jb=()=>()=>{},Ui=b.forwardRef(function(t,e){if(t.disable)return t.children;const{passThrough:r}=t,n=!!t._isRoot,[i,a]=go(t,n);let s=t["disable-child-theme"]?b.Children.map(t.children,l=>r?l:b.cloneElement(l,{"data-disable-theme":!0})):t.children;if(e)try{U.Children.only(s),s=b.cloneElement(s,{ref:e})}catch{}const o=b.useRef({hasEverThemed:!1});return zd(a,s,t,n,o,r)});Ui.avoidForwardRef=!0;function zd(t,e,r,n=!1,i,a=!1){const{shallow:s,forceClassName:o}=r,l=i.current;if(!(l.hasEverThemed||t.isNew||n||H0(r)))return e;e=z.jsx(Cd.Provider,{value:t.id,children:e});const{isInverse:c,name:d}=t,f=c||o;if(l.hasEverThemed||(l.hasEverThemed=!0),(f||t.name==="dark"||t.name==="light")&&(l.hasEverThemed="wrapped"),s&&t.parentId){const m=V0(t.isNew?t.id:t.parentId);if(!m)throw new Error("‼️010");e=b.Children.toArray(e).map(h=>b.isValidElement(h)?a?h:b.cloneElement(h,void 0,z.jsx(Ui,{name:m.name,children:h.props.children})):h)}if(o===!1)return e;{const m=r.contain?Kb:Ub,{className:h="",color:g}=a?{}:qb(t,r,n);if(e=z.jsx("span",{className:`${h} is_Theme`,style:a?m:{color:g,...m},children:e}),l.hasEverThemed==="wrapped"){const v=!a&&f?`${c?d.startsWith("light")?"t_light is_inversed":d.startsWith("dark")?"t_dark is_inversed":"":""} `:"";e=z.jsx("span",{style:m,className:v,children:e})}return e}}const Ub={display:"contents"},Kb={display:"contents",contain:"strict"},Yb={className:"",color:void 0};function qb(t,e,r=!1){if(!t.isNew&&!e.forceClassName)return Yb;const n=t!=null&&t.theme&&t.isNew?Mr(t.theme.color):"",i=Ae("maxDarkLightNesting")||3,a=t.inverses>=i?t.name:t.name.replace(Gb,""),s=a.split("_");let o=`t_${a}`;if(s.length>1){const u=[];for(let c=1;c<=s.length;c++)u.push(`t_${s.slice(0,c).join("_")}`);o=u.join(" ")}const l=`${r?"":"t_sub_theme"} ${o}`;return{color:n,className:l}}const Gb=/^(dark|light)_/;function Xb(t,e,r=!1){const n=U.forwardRef(function(i,a){const{themeInverse:s,theme:o,componentName:l,themeReset:u,...c}=i;let d;const f=e==null?void 0:e.context;if(f)for(const S in f.props){const x=i[S];x!==void 0&&(d||(d={}),d[S]=x)}const m=z.jsx(t,{ref:a,...c,"data-disable-theme":!0});let h=null;const g=l||(e==null?void 0:e.componentName);if(g&&(h||(h={}),h.componentName=g),"debug"in i&&(h||(h={}),h.debug=i.debug),"theme"in i&&(h||(h={}),h.name=i.theme),"themeInverse"in i&&(h||(h={}),h.inverse=i.themeInverse),"themeReset"in i&&(h||(h={}),h.reset=u),r&&!h)return m;let v=z.jsx(Ui,{"disable-child-theme":!0,...h,children:m});if(f){const S=f.Provider,x=U.useContext(f);v=z.jsx(S,{...x,...d,children:v})}return v});return n.displayName=`Themed(${(t==null?void 0:t.displayName)||(t==null?void 0:t.name)||"Anonymous"})`,n}function Zb(t){if(Oi&&t.length)return z.jsx(z.Fragment,{children:t.map(e=>{const r=e[En];return z.jsx("style",{href:`t_${r}`,precedence:"default",suppressHydrationWarning:!0,children:e[mo].join(`
12
- `)},r)})})}const Qb=(t,e,r,n)=>{var O;const i=Hb(),a=!zb(),s=e!=null&&e.isStub||e==null?void 0:e.useAnimations,{isHOC:o}=r,l=b.useRef(void 0);l.current||(l.current={startedUnhydrated:a&&!i});const u=!!(!o&&"animation"in t||t.style&&Jb(t.style)),c=e==null?void 0:e.supportsCSS,d=l.current;!a&&u&&(d.hasAnimated=!0);const f=!!(u&&!o&&s||d.hasAnimated),m=!fo&&f;m&&!d.hasAnimated&&(d.hasAnimated=!0);const{disableClassName:h}=t,g=!o&&m&&t.animatePresence!==!1&&((O=e==null?void 0:e.usePresence)==null?void 0:O.call(e))||null,v=g==null?void 0:g[2],S=(v==null?void 0:v.isPresent)===!1,x=(v==null?void 0:v.isPresent)===!0&&v.initial!==!1,C=!!t.enterStyle,y=u&&!i&&((e==null?void 0:e.isReactNative)||!c),R=!o&&(C||x||y||h)?C||x?U0:bo:_s,w=e_(t);w!=null&&(R.disabled=w);const _=b.useState(R),I=t.forceStyle?{..._[0],[t.forceStyle]:!0}:_[0],k=_[1];let T=m;y&&!r.isHOC&&!i&&(T=!1,d.willHydrate=!0),w!==I.disabled&&(w&&Object.assign(I,_s),I.disabled=w,k(H=>({...I})));const P=t.group,V=n0(k,t.debug);if(v&&T&&i&&r.variants){const{enterVariant:H,exitVariant:F,enterExitVariant:G,custom:Z}=v;ji(Z)&&Object.assign(t,Z);const J=F??G,M=H??G;I.unmounted&&M&&r.variants[M]?t[M]=!0:S&&J&&(t[J]=F!==G)}let E=!!t.forceStyle;if(!i)E=!1;else if(i){const H=T&&i,F=!r.acceptsClassName&&(n.disableSSR||!I.unmounted),G=h&&!I.unmounted;(H&&!(e!=null&&e.classNameAnimation)||G||F)&&(E=!0)}return{startedUnhydrated:d.startedUnhydrated,curStateRef:d,disabled:w,groupName:P,hasAnimationProp:u,hasEnterStyle:C,isAnimated:T,isExiting:S,isHydrated:i,presence:g,presenceState:v,setState:k,setStateShallow:V,noClass:E,state:I,stateRef:l,supportsCSS:c,willBeAnimated:m,willBeAnimatedClient:f}};function Jb(t){return Object.keys(t).some(e=>{const r=t[e];return r&&typeof r=="object"&&"_animation"in r})}const e_=t=>{var e;return t.disabled||t.passThrough||((e=t.accessibilityState)==null?void 0:e.disabled)||t["aria-disabled"]||t.accessibilityDisabled||!1},t_=b.version.startsWith("19."),r_=b.memo(b.forwardRef(function(t,e){const{children:r,...n}=t;if(b.isValidElement(r)){const i=n_(r,n);return b.cloneElement(r,r.type.avoidForwardRef?i:{...i,ref:vo(e,t_?r.props.ref:r.ref)})}return b.Children.count(r)>1?b.Children.only(null):null})),ai={onPress:"onClick",onPressOut:"onMouseUp",onPressIn:"onMouseDown"};function n_(t,e){const r=t.props,n={...r},i=typeof t.type=="string";if(i)for(const a in ai)a in e&&(e[ai[a]]=e[a],delete e[a]);for(let a in r){const s=e[a],o=r[a];i&&a in ai&&(a=ai[a],delete n[a]),i_.test(a)?n[a]=pd(o,s):a==="style"?n[a]={...s,...o}:a==="className"&&(n[a]=[s,o].filter(Boolean).join(" "))}return{...e,...n}}const i_=/^on[A-Z]/;var hu={};const Or=new Set,a_=new Set(["hover","press","pressIn","group","focus","focusWithin","media","group"]);if(typeof window<"u"){const t=()=>{Or.forEach(r=>r(n=>n.press||n.pressIn?{...n,press:!1,pressIn:!1}:n)),Or.clear()},e=()=>{Or.forEach(r=>r(n=>n.press||n.pressIn||n.hover?{...n,press:!1,pressIn:!1,hover:!1}:n)),Or.clear()};addEventListener("mouseup",t),addEventListener("touchend",e),addEventListener("touchcancel",e)}const dr={value:!1},Ts={value:!1};typeof document<"u"&&(document.addEventListener("keydown",()=>{dr.value||(dr.value=!0)}),document.addEventListener("mousedown",()=>{dr.value&&(dr.value=!1)}),document.addEventListener("mousemove",()=>{dr.value&&(dr.value=!1),Ts.value=!1}),document.addEventListener("touchstart",()=>{Ts.value=!0}));function Bn(t){const{componentName:e}=t;let r=null,n=t.defaultProps;h0(h=>{var g;if(r=h,e){const v=(g=h.defaultProps)==null?void 0:g[e];v&&(n={...v,...n})}});const{Component:i,isText:a,isZStack:s,isHOC:o}=t,l=U.forwardRef((h,g)=>{var Xr,Zr,Qr,Jr,Rr,en;const{context:v,isReactNative:S}=t,x=h.debug,C=v?U.useContext(v):void 0;let y=null;const R=U.useContext(gn),w=!!(a&&R.inText);let _=h;if(C||n){let $=n;a&&w&&n&&($={...n},$.fontFamily==="unset"&&($.fontFamily="inherit"),$.whiteSpace==="pre-wrap"&&($.whiteSpace="inherit"),$.color||($.color="inherit"),$.letterSpacing||($.letterSpacing="inherit"),$.textTransform||($.textTransform="inherit"));const[K,he]=t0($,C,h);K&&(_=K),y=he}const I=_.componentName||t.componentName,k=U.useContext(Bl),T=R.animationDriver,P=T==null?void 0:T.useAnimations,V=Qb(_,T!=null&&T.isStub?null:T,t,r),{disabled:E,groupName:O,hasAnimationProp:H,hasEnterStyle:F,isAnimated:G,isExiting:Z,isHydrated:J,presence:M,presenceState:Te,setState:Me,noClass:Fe,state:me,stateRef:D,supportsCSS:Ke,willBeAnimated:Re,willBeAnimatedClient:ye,startedUnhydrated:Ie}=V;H&&(T!=null&&T.avoidReRenders)&&Qe(()=>{const $=D.current.nextState;$&&(D.current.nextState=void 0,V.setStateShallow($))});const Le=b.useMemo(()=>{var K,he;if(!O||_.passThrough)return k;const $=new Set;return(he=(K=D.current.group)==null?void 0:K.listeners)==null||he.clear(),D.current.group={listeners:$,emit(ne){$.forEach(ae=>ae(ne))},subscribe(ne){return $.add(ne),$.size===1&&pe({hasDynGroupChildren:!0}),()=>{$.delete(ne),$.size===0&&pe({hasDynGroupChildren:!1})}}},{...k,[O]:{state:{pseudo:_s},subscribe:ne=>{var nt;const ae=(nt=D.current.group)==null?void 0:nt.subscribe(ne);return()=>{ae==null||ae()}}}}},[D,O,k]);let pe=V.setStateShallow;const dt=!i||typeof i=="string",vt=_.tag,bt=dt&&vt||i,vr=bt||"span",Q=bt||(w?"span":"div");let A=a?vr:Q;T&&G&&!T.needsWebStyles&&(A=T[a?"Text":"View"]||A);const W=_["data-disable-theme"]||o;_.themeShallow&&(D.current.themeShallow=!0);const le={componentName:I,disable:W,shallow:D.current.themeShallow,debug:x};"themeInverse"in _&&(le.inverse=_.themeInverse),"theme"in _&&(le.name=_.theme),typeof D.current.isListeningToTheme=="boolean"&&(le.needsUpdate=()=>!!D.current.isListeningToTheme);const[ve,He]=go(le);A=i||A;const be=R0(R);po(!1);const ue=G&&!Ke||o&&me.unmounted==!1&&H?"value":"auto",ce={mediaState:be,noClass:Fe,resolveValues:ue,isExiting:Z,isAnimated:G,willBeAnimated:Re,styledContext:C},_t=(He==null?void 0:He.name)||"",q=Nb(_,t,ve,_t,me,ce,null,R,Le,A,Ie,x),Et=!q;let $t=t.context;if(q!=null&&q.overriddenContextProps){const $=t.context||((Xr=t.parentStaticConfig)==null?void 0:Xr.context);if($){for(const K in q.overriddenContextProps)y||(y={}),y[K]=q.overriddenContextProps[K];t.context||($t=$)}}const je=O&&(Le==null?void 0:Le[O])||null;if(!Et&&je&&_.containerType!=="normal"){const $=je==null?void 0:je.state;$&&$.layout===void 0&&((Zr=q.style)!=null&&Zr.width||(Qr=q.style)!=null&&Qr.height)&&($.layout={width:pu(q.style.width),height:pu(q.style.height)})}if(!Et&&(H||O)&&(T!=null&&T.avoidReRenders)){let $=function(){const he=D.current.nextState;if(je){const{group:ne,hasDynGroupChildren:ae,unmounted:nt,animation:tn,...ir}=he;u(je,D.current.group||null,ir)}};const K=pe;D.current.updateStyleListener=()=>{const he=D.current.nextState||me,ne=D.current.nextMedia,ae=Dd(_,t,ve,_t,he,ne?{...ce,mediaState:ne}:ce,null,R,Le,A,Ie,x),nt=D.current.useStyleListener;nt==null||nt((ae==null?void 0:ae.style)||{})},R.mediaEmit||(R.mediaEmit=he=>{var ne,ae;D.current.nextMedia=he,(ae=(ne=D.current).updateStyleListener)==null||ae.call(ne)}),D.current.setStateShallow=he=>{var ir,rn;const ne=D.current.nextState||me,ae=typeof he=="function"?he(ne):he;if(ae===ne||ki(ne,ae))return;const nt=Object.keys(ae).every(jn=>a_.has(jn)),tn={...ne,...ae};D.current.nextState=tn,nt?($(),(rn=(ir=D.current).updateStyleListener)==null||rn.call(ir)):K(ae)},pe=he=>{var ne,ae;(ae=(ne=D.current).setStateShallow)==null||ae.call(ne,he)}}q&&(_.group&&_.untilMeasured==="hide"&&!D.current.hasMeasured&&(q.style||(q.style={}),q.style.opacity=0),q.dynamicThemeAccess!=null&&(D.current.isListeningToTheme=q.dynamicThemeAccess));const Bt=(q==null?void 0:q.hasMedia)&&q.hasMedia!==!0,j=M0()||Bt||Fe&&(q==null?void 0:q.hasMedia)===!0,_e=Bt?q.hasMedia:null;w0(R,j,_e);const{viewProps:zr,pseudos:ie,style:Jt,classNames:br,space:_r,pseudoGroups:St,mediaGroups:De}=q||{},ge=_,{asChild:Ye,children:$e,themeShallow:ft,spaceDirection:de,onPress:te,onLongPress:Ee,onPressIn:fe,onPressOut:X,onHoverIn:xe,onHoverOut:ke,onMouseUp:yt,onMouseDown:tt,onMouseEnter:rt,onMouseLeave:Oe,onFocus:ht,onBlur:mt,separator:Hr,passThrough:er,forceStyle:jr,onClick:tr,theme:Vn,...Vt}=zr||{};let Pe=Vt;!dt&&_.forceStyle&&(Pe.forceStyle=_.forceStyle),o&&(typeof Vn<"u"&&(Pe.theme=Vn),typeof er<"u"&&(Pe.passThrough=er)),vt&&A.acceptTagProp&&(Pe.tag=vt);let Ft;const Fn=(Ke?ye:Re)&&P&&!o;let B;if(Fn){const $=T!=null&&T.avoidReRenders?he=>{D.current.useStyleListener=he}:void 0,K=P({props:ge,style:Jt||{},styleState:q,useStyleEmitter:$,presence:M,componentState:me,styleProps:ce,theme:ve,pseudos:ie||null,staticConfig:t,stateRef:D});K&&(K.ref&&(B=K.ref),J&&K&&(Ft=K.style,Pe.style=Ft,K.className&&(Pe.className=`${me.unmounted==="should-enter"?"t_unmounted ":""}${Pe.className||""} ${K.className}`)))}!Et&&je&&_.containerType!=="normal"&&(Vt.onLayout=pd(Vt.onLayout,$=>{var he;const K=$.nativeEvent.layout;je.state.layout=K,(he=D.current.group)==null||he.emit({layout:K}),!D.current.hasMeasured&&_.untilMeasured==="hide"&&Me(ne=>({...ne})),D.current.hasMeasured=!0})),Pe=((Jr=it.usePropsTransform)==null?void 0:Jr.call(it,A,Vt,D,D.current.willHydrate))||Vt,D.current.composedRef||(D.current.composedRef=vo($=>D.current.host=$,g,Fb,B)),Pe.ref=D.current.composedRef;const Dn=()=>{pe({press:!1,pressIn:!1})};Qe(()=>{if(me.unmounted===!0&&F){pe({unmounted:"should-enter"});return}let $;if(me.unmounted){if(T!=null&&T.supportsCSS||s0)return $=setTimeout(()=>{pe({unmounted:!1})}),()=>clearTimeout($);pe({unmounted:!1});return}return()=>{Or.delete(Me)}},[me.unmounted,E]),Qe(()=>{if(!E&&!(!St&&!De)&&Le)return Db({groupContext:Le,setStateShallow:pe,mediaGroups:De,pseudoGroups:St})},[Le,E,St?us(St):0,De?us(De):0]);const qe=D.current.group;Qe(()=>{!je||!qe||u(je,qe,me)},[je,qe,me]);const rr=!E&&Fe&&(ie==null?void 0:ie.pressStyle),Ur=!E&&Fe&&(ie==null?void 0:ie.focusStyle),Wn=!E&&Fe&&(ie==null?void 0:ie.focusVisibleStyle),Kr=!!(rr||Ur||Wn||ht||mt||R.setParentFocusState),nr=!!(O&&me.hasDynGroupChildren),Dt=!!(nr||rr||te||X||fe||tt||yt||Ee||tr||ie!=null&&ie.focusVisibleStyle),Yr=!E&&Fe&&(ie==null?void 0:ie.hoverStyle),Sr=!!(nr||Yr),qr=!!(nr||Sr||rt||Oe),zn=!E&&!_.asChild&&!!(Kr||Dt||qr||rr||Yr||Ur),yr=!!(nr||rr),Wt=zn?{onPressOut:Dt?$=>{Dn(),X==null||X($),yt==null||yt($)}:void 0,...(qr||Dt)&&{onMouseEnter:$=>{const K={};Sr&&!Ts.value&&(K.hover=!0),yr&&me.pressIn&&(K.press=!0),pe(K),xe==null||xe($),rt==null||rt($)},onMouseLeave:$=>{const K={};Sr&&(K.hover=!1),yr&&(K.press=!1,K.pressIn=!1),pe(K),ke==null||ke($),Oe==null||Oe($)}},onPressIn:Dt?$=>{yr&&pe({press:!0,pressIn:!0}),fe==null||fe($),tt==null||tt($),Or.add(Me)}:void 0,onPress:Dt?$=>{Dn(),tr==null||tr($),te==null||te($),Ee==null||Ee($)}:void 0,...Kr&&{onFocus:$=>{const K={};R.setParentFocusState&&(K.focusWithin=!0),ie!=null&&ie.focusVisibleStyle&&dr.value?K.focusVisible=!0:K.focus=!0,pe(K),ht==null||ht($)},onBlur:$=>{R.setParentFocusState&&R.setParentFocusState({focusWithin:!1}),pe({focus:!1,focusVisible:!1,focusWithin:!1}),mt==null||mt($)}}}:null;Wt&&!S&&Object.assign(Pe,Pa(Wt)),(Rr=it.useEvents)==null||Rr.call(it,Pe,Wt,q,pe,t);const Hn=_.spaceDirection||"both";let re=!$e||Ye||!q?$e:l_({separator:Hr,children:$e,space:_r,direction:Hn,isZStack:s});if(Ye){A=r_;{const $=Pa({onPress:te,onPressIn:fe,onPressOut:X,onMouseEnter:rt,onMouseLeave:Oe},Ye==="web"||Ye==="except-style-web");Object.assign(Pe,$)}}Et&&(re=h.children,A=Q,Pe={style:{display:"contents"}});let xr;it.useChildren&&(xr=it.useChildren(A,re,Pe)),xr?re=xr:re=U.createElement(A,Pe,re);const wr=(en=r==null?void 0:r.animations)==null?void 0:en.ResetPresence,Cr=!!(!Ye&&q&&!o&&wr&&Re&&(F||Te)),Gr=D.current.hasEverResetPresence;if(Cr&&!Gr&&(D.current.hasEverResetPresence=!0),(Cr||Gr)&&wr&&(re=z.jsx(wr,{disabled:!Cr,children:re})),"focusWithinStyle"in h&&(re=z.jsx(gn.Provider,{...R,setParentFocusState:pe,children:re})),"group"in _&&(re=z.jsx(Bl.Provider,{value:Le,children:re})),a&&!w&&(re=z.jsx(gn.Provider,{...R,inText:!0,children:re})),re=W||!q?re:zd(He,re,le,!1,D),S&&!Ye&&(re=z.jsx("span",{className:"_dsp_contents",...!Et&&J&&Wt&&Pa(Wt),children:re})),y&&$t){const $=$t.Provider;for(const K in C)K in y||(y[K]=C[K]);x&&console.info("overriddenContextProps",y),re=z.jsx($,{__disableMergeDefaultValues:!0,...y,children:re})}return Ie&&q&&(re=z.jsxs(z.Fragment,{children:[re,J?null:Zb(Object.values(q.rulesToInsert))]})),re});function u(h,g,v){if(!h||!g)return;const S={...h.state,pseudo:v};g.emit(S),h.state=S}t.componentName&&(l.displayName=t.componentName);let c=l;(hu.TAMAGUI_FORCE_MEMO||t.memo)&&(c=U.memo(c)),c.staticConfig=t;function d(h){return{...t,...h,neverFlatten:!0,isHOC:!0,isStyledHOC:!1}}function f(h,g){return h.staticConfig=d(g),h.styleable=m,h}function m(h,g){var x;let v=Oi&&typeof h=="function"&&h.length===1||((x=h.render)==null?void 0:x.length)===2?h:U.forwardRef(h);const S=d(g==null?void 0:g.staticConfig);return v=g!=null&&g.disableTheme?v:Xb(v,S,!0),(S.memo||hu.TAMAGUI_MEMOIZE_STYLEABLE)&&(v=U.memo(v)),v.staticConfig=S,v.styleable=m,v}return c.extractable=f,c.styleable=m,c}function Pa(t,e=!0){return{onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,[e?"onClick":"onPress"]:t.onPress,onMouseDown:t.onPressIn,onMouseUp:t.onPressOut,onTouchStart:t.onPressIn,onTouchEnd:t.onPressOut,onFocus:t.onFocus,onBlur:t.onBlur}}const s_=(t,{tokens:e})=>{t=t===!1?0:t===!0?"$true":t;const r=e.space[t]??t;return{width:r,height:r,minWidth:r,minHeight:r}},o_=Bn({acceptsClassName:!0,memo:!0,componentName:"Spacer",validStyles:$n,defaultProps:{...Mn,tag:"span",size:!0,pointerEvents:"none"},variants:{size:{"...":s_},flex:{true:{flexGrow:1}},direction:{horizontal:{height:0,minHeight:0},vertical:{width:0,minWidth:0},both:{}}}});function l_(t){var m,h,g;const{isZStack:e,children:r,space:n,direction:i,spaceFlex:a,separator:s,ensureKeys:o}=t,l=!!(n||a),u=s!=null,c=Array.isArray(r);if(!o&&!(l||u||e))return r;const d=c?r:U.Children.toArray(r);if(d.length<=1&&!e&&!((h=(m=d[0])==null?void 0:m.type)!=null&&h.shouldForwardSpace))return r;const f=[];for(let[v,S]of d.entries()){const x=S==null||Array.isArray(S)&&S.length===0;if(!x&&U.isValidElement(S)&&((g=S.type)!=null&&g.shouldForwardSpace)&&(S=U.cloneElement(S,{space:n,spaceFlex:a,separator:s,key:S.key})),x||!S||S.key&&!e?f.push(S):f.push(z.jsx(U.Fragment,{children:e?z.jsx(u_,{children:S}):S},`${v}0t`)),mu(S)&&v===0||e)continue;const C=d[v+1];C&&!x&&!mu(C)&&(s?(l&&f.push(Ma({key:`_${v}_00t`,direction:i,space:n,spaceFlex:a})),f.push(z.jsx(U.Fragment,{children:s},`${v}03t`)),l&&f.push(Ma({key:`_${v}01t`,direction:i,space:n,spaceFlex:a}))):f.push(Ma({key:`_${v}02t`,direction:i,space:n,spaceFlex:a})))}return f}function Ma({key:t,direction:e,space:r,spaceFlex:n}){return z.jsx(o_,{size:r,direction:e,...typeof n<"u"&&{flex:n===!0?1:n===!1?0:n}},t)}function mu(t){const e=t==null?void 0:t.type;return(e==null?void 0:e.isVisuallyHidden)||(e==null?void 0:e.isUnspaced)}const u_=Bn({defaultProps:{...Mn,flexDirection:"column",position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"box-none"}}),pu=t=>typeof t=="number"?t:typeof t=="string"?+t.replace("px",""):0;var c_={};const Is=t=>{Ns.set(Mi(t),t)},Es=(t,e=!1)=>`--${c_.TAMAGUI_CSS_VARIABLE_PREFIX||""}${wd(t.name,!1)}:${!e&&typeof t.val=="number"?`${t.val}px`:t.val}`,Ns=new Map;var si={};const d_=["dark","light"],f_=["light","dark"];function h_(t){const e=[];if(!si.TAMAGUI_DOES_SSR_CSS||si.TAMAGUI_DOES_SSR_CSS==="mutates-themes"||si.TAMAGUI_DOES_SSR_CSS==="false"){const{config:r,themeName:n,theme:i,names:a}=t,s=t.hasDarkLight??(r.themes&&("light"in r.themes||"dark"in r.themes)),o=`.${nd}`;let l="";for(const v in i){const S=i[v];let x=null;Ns.has(S.val)?x=Ns.get(S.val).variable:x=S.val,l+=`--${si.TAMAGUI_CSS_VARIABLE_PREFIX||""}${Pn(v,40)}:${x};`}const u=n==="dark",c=n==="light",d=a.map(v=>`${o}${v}`),f=new Set(u||c?d:[]);if(s){const v=Ae("maxDarkLightNesting")??3;for(const S of a){const x=u||S.startsWith("dark_"),C=!x&&(c||S.startsWith("light_"));if(!(x||C)){f.add(`${o}${S}`);continue}const y=`${o}${S.replace(/^(dark|light)_/,"")}`,R=x?d_:f_,[w,_]=R,I=Math.round(v*1.5);for(let k=0;k<I;k++){const T=k%2===1;if(T&&k<3)continue;const P=new Array(k+1).fill(0).map((F,G)=>`${o}${G%2===0?w:_}`);let V=P.length>1?P.slice(1):P;if(T){const[F,G,...Z]=V;V=[G,...Z,G]}const E=V[V.length-1],O=y===E?"":y,H=V.join(" ");f.add(`${H} ${O}`)}}}const m=[...f].sort(Fd),h=`${m.map(v=>`:root${m_(v)&&Ae("themeClassNameOnRoot")?"":" "}${v}`).join(", ")+", .tm_xxt"} {${l}}`;if(e.push(h),Ae("shouldAddPrefersColorThemes")){const v=i.background?`background:${Mr(i.background)};`:"",S=i.color?`color:${Mr(i.color)}`:"",x=`body{${v}${S}}`,C=n.startsWith("dark"),y=C?"dark":"light",R=`${m.map(_=>{if(_==As||_===Ls)return":root";if(!(C&&_.startsWith(Ls)||!C&&_.startsWith(As)))return _.replace(/^\.t_(dark|light) /,"").trim()}).filter(Boolean).join(", ")} {${l}}`,w=`@media(prefers-color-scheme:${y}){
13
- ${x}
14
- ${R}
15
- }`;e.push(w)}const g=Ae("selectionStyles");if(g){const v=g(i);if(v){const S=d.map(C=>`${C} ::selection`).join(", "),x=Object.entries(v).flatMap(([C,y])=>y?`${C==="backgroundColor"?"background":C}:${Mr(y)}`:[]).join(";");if(x){const C=`${S}{${x}}`;e.push(C)}}}}return e}const As=".t_dark",Ls=".t_light",m_=t=>t===As||t===Ls||t.startsWith(".t_dark ")||t.startsWith(".t_light "),Hd={};function p_(t){for(const{names:r,theme:n}of t)for(const i of r)Hd[i]=n;const e={};for(const{names:r,theme:n}of t)for(const i of r){const a=g_(i,n);e[i]=a}return e}function g_(t,e){const r={},n=[],i=t.split("_").slice(0,-1).map(a=>(n.push(a),n.join("_")));for(const a of i)Object.assign(r,Hd[a]);return Object.assign(r,e),r}function v_(t,e){const r=t[e];lt(r)?r.name!==e&&(t[e]=Nn({key:r.name,name:e,val:r.val})):t[e]=Nn({key:e,name:e,val:r})}const b_=["100","200","300","400","500","600","700","800","900"],__=(t,e,r)=>{if(typeof t=="string")return t;const n=Object.keys(t);let i=t[n[0]];return Object.fromEntries([...new Set([...e,...n])].map(a=>{const s=t[a]??r??i;return i=s,r=s,[a,s]}))},gu=t=>{const e=Object.keys(t.size||{}),r=Object.fromEntries(Object.entries(t).map(([n,i])=>[n,__(i,n==="face"?b_:e,n==="face"?{normal:t.family}:void 0)]));return Object.freeze(r)},vu=new WeakMap,ks=(t,e="",r=!1)=>{if(vu.has(t))return t;const n={};for(let i in t){const a=t[i],s=i[0]==="$",o=s?i:`$${i}`,l=s?o.slice(1):i;if(lt(a)){n[l]=a;continue}const u=Pn(l,1e3),c=e&&e!=="t-color"?`${e}-${u}`:`c-${u}`;if(a&&typeof a=="object"&&"needsPx"in a&&"val"in a){const f=Nn({val:a.val,name:c,key:o});f.needsPx=a.needsPx,n[l]=f;continue}if(a&&typeof a=="object"){n[l]=ks(t[l],c,!1);continue}const d=lt(a)?a:Nn({val:a,name:c,key:o});n[l]=d}return vu.set(n,!0),n},Er=t=>{console.warn(`No animation driver configured. To use ${t}, you must pass \`animations\` to createTamagui. See: https://tamagui.dev/docs/core/animations`)},S_=()=>({isReactNative:!1,supportsCSS:!0,classNameAnimation:!0,isStub:!0,animations:{},useAnimations:()=>Er("animations"),usePresence:()=>Er("usePresence"),ResetPresence:()=>Er("ResetPresence"),useAnimatedNumber:()=>Er("useAnimatedNumber"),useAnimatedNumberStyle:()=>Er("useAnimatedNumberStyle"),useAnimatedNumberReaction:()=>Er("useAnimatedNumberReaction")}),y_=S_();function x_(t){var r;const e={};for(const n in t){const i=t[n];if(n==="family"||n==="face")e[n]=i;else{e[n]={};for(const a in i){let s=i[a];((r=s.val)==null?void 0:r[0])==="$"&&(s=s.val),e[n][`$${a}`]=s}}}return e}function w_(t){const e=[];for(const r in t)if(r!=="face"){if(r==="family"){const n=t[r];Is(n),e.push(Es(n))}else for(const n in t[r])if(typeof t[r][n]!="string"){const i=t[r][n];Is(i),e.push(Es(i))}}return e}function C_(t){return new Set(["size","space","radius"]).has(t)}function R_(t){var C;const e=od();e&&(t={...e,...t});const r={},n=ks(t.tokens||{});if(t.tokens){const y={};for(const R in n){r[R]={},y[R]={};const w=n[R];for(const _ in w){const I=w[_],k=`$${_}`;r[R][k]=I,y[R][k]=I,y[R][_]=I}}c0(y)}let i;if(t.themes){const y=Object.keys(t.themes).length===0;y&&(i=fb(y,r))}let a=null,s;if(t.fonts){const y=Object.fromEntries(Object.entries(t.fonts).map(([R,w])=>[R,ks(w,"f",!0)]));s=(()=>{const R={};for(const w in y){const _=y[w],I=x_(_);R[`$${w}`]=I,!a&&I.size&&(a=new Set(Object.keys(I.size)))}return R})()}const o={},l=(()=>{const y=[],R=[],w={},_=Object.keys(n).sort();for(const T of _){const P=Object.keys(n[T]).sort();for(const V of P){const E=n[T][V];o[`$${T}.${V}`]=E;{Is(E);const O=E.needsPx===!0,H=C_(T),F=!(O||H);R.push(Es(E,F))}}}{let T=function(E,O=""){return`:root${O} {${V}${[...E].join(`;${V}`)}${V}}`};const P=s?Object.keys(s).sort():[];for(const E of P){const O=s[E],[H,F]=E.includes("_")?E.split("_"):[E],G=w_(O);w[E]={name:H.slice(1),declarations:G,language:F}}const V=t.cssStyleSeparator||"";if(y.push(T(R)),w){const E=Object.keys(w).sort();for(const O of E){const{name:H,declarations:F,language:G="default"}=w[O],Z=`.font_${H}`,J=`:root .t_lang-${H}-${G} ${Z}`,M=G==="default"?` ${Z}, ${J}`:J,Te=T(F,M);y.push(Te)}}}const I=t.themes,k=i??T_(I,n.color);return{themes:p_(k),cssRuleSets:y,getThemeRulesSets(){let T=[];for(const{names:P,theme:V}of k){const E=h_({config:t,themeName:P[0],names:P,theme:V});T=[...T,...E]}return T}}})(),u=t.shorthands||{},c={...I_,...u};let d=-1;const f=(y={})=>{{const{separator:R=`
16
- `,sinceLastCall:w,exclude:_}=y;if(w&&d>=0){const k=ql();return d=k.length,k.slice(d).join(R)}d=0;const I=ql().join(R);return _==="design-system"?I:`${`._ovs-contain {overscroll-behavior:contain;}
17
- .is_Text .is_Text {display:inline-flex;}
18
- ._dsp_contents {display:contents;}
19
- ._no_backdrop::backdrop {display: none;}
20
- ${l.cssRuleSets.join(R)}`}
21
- ${_?"":l.getThemeRulesSets().join(R)}
22
- ${I}`}},m=y=>f({...y,sinceLastCall:!0}),h=((C=t.settings)==null?void 0:C.defaultFont)??t.defaultFont,g=(()=>{let y=h;return(y==null?void 0:y[0])==="$"&&(y=y.slice(1)),y})(),v=g?`$${g}`:"",S={...t.unset};!S.fontFamily&&g&&(S.fontFamily=v);const x={fonts:{},onlyAllowShorthands:!1,fontLanguages:[],animations:y_,media:{},...t,unset:S,settings:{disableSSR:t.disableSSR,defaultFont:t.defaultFont,disableRootThemeClass:t.disableRootThemeClass,onlyAllowShorthands:t.onlyAllowShorthands,mediaQueryDefaultActive:t.mediaQueryDefaultActive,themeClassNameOnRoot:t.themeClassNameOnRoot,cssStyleSeparator:t.cssStyleSeparator,webContainerType:"inline-size",...t.settings},tokens:n,shorthands:c,userShorthands:u,inverseShorthands:c?Object.fromEntries(Object.entries(c).map(([y,R])=>[R,y])):{},themes:l.themes,fontsParsed:s||{},themeConfig:l,tokensParsed:r,parsed:!0,getNewCSS:m,getCSS:f,defaultFont:g,fontSizeTokens:a||new Set,specificTokens:o,defaultFontToken:v};return u0(x),S0(x),fi.size&&(fi.forEach(y=>y(x)),fi.clear()),x}function T_(t,e){const r=[],n=new Map,i=Object.keys(t).sort();for(const a of i){const s=a.startsWith("dark")?"dark":a.startsWith("light")?"light":"",o=t[a],l=s+JSON.stringify(o);if(n.has(l)){n.get(l).names.push(a);continue}const u={...e,...o};for(const d in u)v_(u,d);const c={names:[a],theme:u};r.push(c),n.set(l,c)}return r}const I_={fd:"flexDirection",fb:"flexBasis",bblr:"borderBottomLeftRadius",bbrr:"borderBottomRightRadius",fwr:"flexWrap",col:"color",ff:"fontFamily",fst:"fontStyle",tr:"transform",tt:"textTransform",td:"textDecorationLine",va:"verticalAlign",ws:"whiteSpace",wb:"wordBreak",ww:"wordWrap",brc:"borderRightColor",brw:"borderRightWidth",bs:"borderStyle",btc:"borderTopColor",btlr:"borderTopLeftRadius",btrr:"borderTopRightRadius",btw:"borderTopWidth",bw:"borderWidth",o:"opacity",cur:"cursor",pe:"pointerEvents",ov:"overflow",pos:"position",dsp:"display",fw:"fontWeight",fs:"fontSize",ls:"letterSpacing",lh:"lineHeight",bxs:"boxSizing",bxsh:"boxShadow",ox:"overflowX",oy:"overflowY"},jd=Bn({acceptsClassName:!0,defaultProps:Mn,validStyles:$n});jd.displayName="Stack";const E_=t=>{const e=t.disableRootThemeClass??Ae("disableRootThemeClass"),r=t.themeClassNameOnRoot??Ae("themeClassNameOnRoot");return Dr&&Qe(()=>{if(e)return;const n=`${nd}${t.defaultTheme}`,i=r?document.documentElement:document.body;return i.classList.add(n),()=>{i.classList.remove(n)}},[t.defaultTheme,e,r]),z.jsx(Ui,{className:t.className,name:t.defaultTheme,forceClassName:!e&&!r,_isRoot:b.useId,children:t.children})};function Ud({children:t,disableInjectCSS:e,config:r,className:n,defaultTheme:i,disableRootThemeClass:a,reset:s,themeClassNameOnRoot:o}){Oi||Dr&&Qe(()=>{if(r&&!e){const u=document.createElement("style");return u.appendChild(document.createTextNode(r.getCSS())),document.head.appendChild(u),()=>{document.head.removeChild(u)}}},[r,e]),Qe(()=>{vb(),dd()},[]);let l=z.jsx(N_,{children:z.jsx(gn.Provider,{animationDriver:r==null?void 0:r.animations,children:z.jsx(E_,{themeClassNameOnRoot:o??Ae("themeClassNameOnRoot"),disableRootThemeClass:a??Ae("disableRootThemeClass"),defaultTheme:i??(r?Object.keys(r.themes)[0]:""),reset:s,className:n,children:t})})});return Ae("disableSSR")&&(l=z.jsx(Wb,{enabled:!0,children:l})),z.jsxs(z.Fragment,{children:[l,Oi&&r&&!e&&z.jsx("style",{precedence:"default",href:"tamagui-css",children:r.getCSS()},"tamagui-css")]})}function N_(t){const[e,r]=U.useState(!1);return U.useEffect(()=>{r(!0)},[]),z.jsx("span",{style:{display:"contents"},className:e?"":"t_unmounted",children:t.children})}Ud.displayName="TamaguiProvider";const Kd={maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},A_={display:"inline",boxSizing:"border-box",wordWrap:"break-word",whiteSpace:"pre-wrap",margin:0},bu=Kd,Yd=Bn({acceptsClassName:!0,isText:!0,defaultProps:{fontFamily:"unset",...A_},inlineWhenUnflattened:new Set(["fontFamily"]),variants:{numberOfLines:{1:Kd,":number":t=>t>=1?{WebkitLineClamp:t,WebkitBoxOrient:"vertical",display:"-webkit-box",overflow:"hidden"}:null},selectable:{true:{userSelect:"text",cursor:"text"},false:{userSelect:"none",cursor:"default"}},ellipse:{true:bu},ellipsis:{true:bu}},validStyles:{...$n,..._d}});Yd.displayName="Text";const L_=Bn({acceptsClassName:!0,defaultProps:Mn,validStyles:$n});function k_(t,e,r){const n=b.useRef(e??t);return Qe(()=>{n.current=t}),b.useCallback(r?(...i)=>{var a;return(a=n.current)==null?void 0:a.apply(null,i)}:()=>n.current,[])}function O_(t){return k_(t,P_,!0)}const P_=()=>{throw new Error("Cannot call an event handler while rendering.")},qd="__reactResponderId",M_=!!(typeof window<"u"&&window.document&&window.document.createElement),_u=t=>{if(t&&t.nodeType===1&&t.getBoundingClientRect)return t.getBoundingClientRect()};function $_(t){var e;if(t.type==="selectionchange"){const r=(e=window.getSelection())==null?void 0:e.anchorNode;return Su(r)}return t.composedPath!=null?t.composedPath():Su(t.target)}function Su(t){const e=[];for(;t!=null&&t!==document.body;)e.push(t),t=t.parentNode;return e}function B_(t){return t!=null?t[qd]:null}function V_(t,e){t!=null&&(t[qd]=e)}function F_(t){const e=[],r=[],n=$_(t);for(let i=0;i<n.length;i++){const a=n[i],s=B_(a);s!=null&&(e.push(s),r.push(a))}return{idPath:e,nodePath:r}}function D_(t,e){let r=t.length,n=e.length;if(r===0||n===0||t[r-1]!==e[n-1])return null;let i=t[0],a=0,s=e[0],o=0;r-n>0&&(a=r-n,i=t[a],r=n),n-r>0&&(o=n-r,s=e[o],n=r);let l=r;for(;l--;){if(i===s)return i;i=t[a++],s=e[o++]}return null}function W_(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++){const n=e[r].target;if(n!=null&&t.contains(n))return!0}return!1}function z_(t){return t.type==="selectionchange"?j_():t.type==="select"}function H_(t){const{altKey:e,button:r,buttons:n,ctrlKey:i,type:a}=t,s=a==="touchstart"||a==="touchmove",o=a==="mousedown"&&(r===0||n===1),l=a==="mousemove"&&n===1,u=e===!1&&i===!1;return!!(s||o&&u||l&&u)}function j_(){const t=window.getSelection();if(!t)return!1;const e=t.toString(),r=t.anchorNode,n=t.focusNode,i=r&&r.nodeType===window.Node.TEXT_NODE||n&&n.nodeType===window.Node.TEXT_NODE;return e.length>=1&&e!==`
23
- `&&!!i}const yu=()=>{},U_={},K_=[];function xu(t){return t>20?t%20:t}function Gd(t,e){let r,n=!1,i,a;const s=t.changedTouches,o=t.type,l=t.metaKey===!0,u=t.shiftKey===!0,c=(s==null?void 0:s[0].force)||0,d=xu((s==null?void 0:s[0].identifier)||0),f=(s==null?void 0:s[0].clientX)||t.clientX,m=(s==null?void 0:s[0].clientY)||t.clientY,h=(s==null?void 0:s[0].pageX)||t.pageX,g=(s==null?void 0:s[0].pageY)||t.pageY,v=typeof t.preventDefault=="function"?t.preventDefault.bind(t):yu,S=t.timeStamp;function x(w){return Array.prototype.slice.call(w).map(_=>({force:_.force,identifier:xu(_.identifier),get locationX(){return y(_.clientX)},get locationY(){return R(_.clientY)},pageX:_.pageX,pageY:_.pageY,target:_.target,timestamp:S}))}if(s!=null)i=x(s),a=x(t.touches);else{const w=[{force:c,identifier:d,get locationX(){return y(f)},get locationY(){return R(m)},pageX:h,pageY:g,target:t.target,timestamp:S}];i=w,a=o==="mouseup"||o==="dragstart"?K_:w}const C={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:t.defaultPrevented,dispatchConfig:U_,eventPhase:t.eventPhase,isDefaultPrevented(){return t.defaultPrevented},isPropagationStopped(){return n},isTrusted:t.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:l,shiftKey:u,changedTouches:i,force:c,identifier:d,get locationX(){return y(f)},get locationY(){return R(m)},pageX:h,pageY:g,target:t.target,timestamp:S,touches:a,type:o},persist:yu,preventDefault:v,stopPropagation(){n=!0},target:t.target,timeStamp:S,touchHistory:e.touchHistory};function y(w){if(r=r||_u(C.currentTarget),r)return w-r.left}function R(w){if(r=r||_u(C.currentTarget),r)return w-r.top}return C}const Y_="mousedown",q_="mousemove",G_="mouseup",X_="dragstart",Z_="touchstart",Q_="touchmove",J_="touchend",eS="touchcancel",tS="scroll",rS="select",nS="selectionchange";function Xd(t){return t===Z_||t===Y_}function Zd(t){return t===Q_||t===q_}function Qd(t){return t===J_||t===G_||Jd(t)}function Jd(t){return t===eS||t===X_}function iS(t){return t===tS}function aS(t){return t===rS||t===nS}class sS{constructor(){zo(this,"_touchHistory",{touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0})}recordTouchTrack(e,r){var i;const n=this._touchHistory;if(Zd(e))r.changedTouches.forEach(a=>cS(a,n));else if(Xd(e))r.changedTouches.forEach(a=>uS(a,n)),n.numberActiveTouches=r.touches.length,n.numberActiveTouches===1&&(n.indexOfSingleActiveTouch=r.touches[0].identifier);else if(Qd(e)&&(r.changedTouches.forEach(a=>dS(a,n)),n.numberActiveTouches=r.touches.length,n.numberActiveTouches===1)){const{touchBank:a}=n;for(let s=0;s<a.length;s++)if((i=a[s])!=null&&i.touchActive){n.indexOfSingleActiveTouch=s;break}}}get touchHistory(){return this._touchHistory}}const wu=20;function st(t){return t.timeStamp||t.timestamp}function oS(t){return{touchActive:!0,startPageX:t.pageX,startPageY:t.pageY,startTimeStamp:st(t),currentPageX:t.pageX,currentPageY:t.pageY,currentTimeStamp:st(t),previousPageX:t.pageX,previousPageY:t.pageY,previousTimeStamp:st(t)}}function lS(t,e){t.touchActive=!0,t.startPageX=e.pageX,t.startPageY=e.pageY,t.startTimeStamp=st(e),t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=st(e),t.previousPageX=e.pageX,t.previousPageY=e.pageY,t.previousTimeStamp=st(e)}function wo({identifier:t}){return t==null&&console.error("Touch object is missing identifier."),t}function uS(t,e){const r=wo(t),n=e.touchBank[r];n?lS(n,t):e.touchBank[r]=oS(t),e.mostRecentTimeStamp=st(t)}function cS(t,e){const r=e.touchBank[wo(t)];r?(r.touchActive=!0,r.previousPageX=r.currentPageX,r.previousPageY=r.currentPageY,r.previousTimeStamp=r.currentTimeStamp,r.currentPageX=t.pageX,r.currentPageY=t.pageY,r.currentTimeStamp=st(t),e.mostRecentTimeStamp=st(t)):console.warn(`Cannot record touch move without a touch start.
24
- `,`Touch Move: ${ef(t)}
25
- `,`Touch Bank: ${tf(e)}`)}function dS(t,e){const r=e.touchBank[wo(t)];r?(r.touchActive=!1,r.previousPageX=r.currentPageX,r.previousPageY=r.currentPageY,r.previousTimeStamp=r.currentTimeStamp,r.currentPageX=t.pageX,r.currentPageY=t.pageY,r.currentTimeStamp=st(t),e.mostRecentTimeStamp=st(t)):console.warn(`Cannot record touch end without a touch start.
26
- `,`Touch End: ${ef(t)}
27
- `,`Touch Bank: ${tf(e)}`)}function ef(t){return JSON.stringify({identifier:t.identifier,pageX:t.pageX,pageY:t.pageY,timestamp:st(t)})}function tf(t){const{touchBank:e}=t;let r=JSON.stringify(e.slice(0,wu));return e.length>wu&&(r+=` (original size: ${e.length})`),r}const fS={},Cu=["onStartShouldSetResponderCapture","onStartShouldSetResponder",{bubbles:!0}],Ru=["onMoveShouldSetResponderCapture","onMoveShouldSetResponder",{bubbles:!0}],hS=["onScrollShouldSetResponderCapture","onScrollShouldSetResponder",{bubbles:!1}],mS={touchstart:Cu,mousedown:Cu,touchmove:Ru,mousemove:Ru,scroll:hS},Os={id:null,idPath:null,node:null},Bi=new Map;let Yt=!1,Ct=0,kt={id:null,node:null,idPath:null};const Ps=new sS;function Ln(t){kt=t}function kn(t){return Bi.get(t)??fS}function $a(t){const e=t.type,r=t.target;if(e==="touchstart"&&(Yt=!0),(e==="touchmove"||Ct>1)&&(Yt=!1),e==="mousedown"&&Yt||e==="mousemove"&&Yt||e==="mousemove"&&Ct<1)return;if(Yt&&e==="mouseup"){Ct===0&&(Yt=!1);return}const n=Xd(e)&&H_(t),i=Zd(e),a=Qd(e),s=iS(e),o=aS(e),l=Gd(t,Ps);(n||i||a)&&(t.touches?Ct=t.touches.length:n?Ct=1:a&&(Ct=0),Ps.recordTouchTrack(e,l.nativeEvent));let u=F_(t),c=!1,d;if(n||i||s&&Ct>0){const f=kt.idPath,m=u.idPath;if(f!=null&&m!=null){const h=D_(f,m);if(h!=null){const g=m.indexOf(h)+(h===kt.id?1:0);u={idPath:m.slice(g),nodePath:u.nodePath.slice(g)}}else u=null}u!=null&&(d=pS(u,t,l),d!=null&&(gS(l,d),c=!0))}if(kt.id!=null&&kt.node!=null){const{id:f,node:m}=kt,{onResponderStart:h,onResponderMove:g,onResponderEnd:v,onResponderRelease:S,onResponderTerminate:x,onResponderTerminationRequest:C}=kn(f);if(l.bubbles=!1,l.cancelable=!1,l.currentTarget=m,n)h!=null&&(l.dispatchConfig.registrationName="onResponderStart",h(l));else if(i)g!=null&&(l.dispatchConfig.registrationName="onResponderMove",g(l));else{const y=Jd(e)||e==="contextmenu"||e==="blur"&&r===window||e==="blur"&&r.contains(m)&&t.relatedTarget!==m||s&&Ct===0||s&&r.contains(m)&&r!==m||o&&z_(t),R=a&&!y&&!W_(m,t.touches);if(a&&v!=null&&(l.dispatchConfig.registrationName="onResponderEnd",v(l)),R&&(S!=null&&(l.dispatchConfig.registrationName="onResponderRelease",S(l)),Ln(Os)),y){let w=!0;(e==="contextmenu"||e==="scroll"||e==="selectionchange")&&(c?w=!1:C!=null&&(l.dispatchConfig.registrationName="onResponderTerminationRequest",C(l)===!1&&(w=!1))),w&&(x!=null&&(l.dispatchConfig.registrationName="onResponderTerminate",x(l)),Ln(Os),Yt=!1,Ct=0)}}}}function pS(t,e,r){const n=mS[e.type];if(n!=null){const{idPath:i,nodePath:a}=t,s=n[0],o=n[1],{bubbles:l}=n[2],u=(c,d,f)=>{const m=kn(c)[f];if(m!=null&&(r.currentTarget=d,m(r)===!0)){const h=i.slice(i.indexOf(c));return{id:c,node:d,idPath:h}}};for(let c=i.length-1;c>=0;c--){const d=i[c],f=a[c],m=u(d,f,s);if(m!=null)return m;if(r.isPropagationStopped()===!0)return}if(l)for(let c=0;c<i.length;c++){const d=i[c],f=a[c],m=u(d,f,o);if(m!=null)return m;if(r.isPropagationStopped()===!0)return}else{const c=i[0],d=a[0];if(e.target===d)return u(c,d,o)}}}function gS(t,e){const{id:r,node:n}=kt,{id:i,node:a}=e,{onResponderGrant:s,onResponderReject:o}=kn(i);if(t.bubbles=!1,t.cancelable=!1,t.currentTarget=a,r==null)s!=null&&(t.currentTarget=a,t.dispatchConfig.registrationName="onResponderGrant",s(t)),Ln(e);else{const{onResponderTerminate:l,onResponderTerminationRequest:u}=kn(r);let c=!0;u!=null&&(t.currentTarget=n,t.dispatchConfig.registrationName="onResponderTerminationRequest",u(t)===!1&&(c=!1)),c?(l!=null&&(t.currentTarget=n,t.dispatchConfig.registrationName="onResponderTerminate",l(t)),s!=null&&(t.currentTarget=a,t.dispatchConfig.registrationName="onResponderGrant",s(t)),Ln(e)):o!=null&&(t.currentTarget=a,t.dispatchConfig.registrationName="onResponderReject",o(t))}}const vS=["blur","scroll"],bS=["mousedown","mousemove","mouseup","dragstart","touchstart","touchmove","touchend","touchcancel","contextmenu","select","selectionchange"],Tu=Symbol();function _S(){M_&&!window[Tu]&&(window.addEventListener("blur",$a),bS.forEach(t=>{document.addEventListener(t,$a)}),vS.forEach(t=>{document.addEventListener(t,$a,!0)}),window[Tu]=!0)}function SS(t,e,r){V_(e,t),Bi.set(t,r)}function yS(t){kt.id===t&&xS(),Bi.has(t)&&Bi.delete(t)}function xS(){const{id:t,node:e}=kt;if(t!=null&&e!=null){const{onResponderTerminate:r}=kn(t);if(r!=null){const n=Gd({},Ps);n.currentTarget=e,r(n)}Ln(Os)}Yt=!1,Ct=0}const Ms={},Iu=new WeakMap,Ba=new WeakMap;function wS(t,e=Ms){var i;const r=CS(e),n=((i=t==null?void 0:t.current)==null?void 0:i.host)||(t==null?void 0:t.current);b.useEffect(()=>{if(r===Ms)return;_S(),Ba.has(t)||Ba.set(t,`${Math.random()}`);const a=Ba.get(t);return SS(a,n,r),Iu.set(t,!0),()=>{yS(n),Iu.set(t,!1)}},[r,t])}function CS({onMoveShouldSetResponder:t,onMoveShouldSetResponderCapture:e,onResponderEnd:r,onResponderGrant:n,onResponderMove:i,onResponderReject:a,onResponderRelease:s,onResponderStart:o,onResponderTerminate:l,onResponderTerminationRequest:u,onScrollShouldSetResponder:c,onScrollShouldSetResponderCapture:d,onSelectionChangeShouldSetResponder:f,onSelectionChangeShouldSetResponderCapture:m,onStartShouldSetResponder:h,onStartShouldSetResponderCapture:g}){return t||e||r||n||i||a||s||o||l||u||c||d||f||m||h||g?{onMoveShouldSetResponder:t,onMoveShouldSetResponderCapture:e,onResponderEnd:r,onResponderGrant:n,onResponderMove:i,onResponderReject:a,onResponderRelease:s,onResponderStart:o,onResponderTerminate:l,onResponderTerminationRequest:u,onScrollShouldSetResponder:c,onScrollShouldSetResponderCapture:d,onSelectionChangeShouldSetResponder:f,onSelectionChangeShouldSetResponderCapture:m,onStartShouldSetResponder:h,onStartShouldSetResponderCapture:g}:Ms}var RS={};const $s=new WeakMap,rf=new WeakMap,Bs=new Set,On=new WeakMap,nf={},af=b.createContext(""),sf=Dr&&typeof IntersectionObserver<"u",Jy=({disable:t,children:e})=>{const r=b.useId();return Qe(()=>{nf[r]=t},[t,r]),z.jsx(af.Provider,{value:r,children:e})};let Pr=null;const dn=new WeakMap,TS=new WeakMap;let Vs=!0;const pi=new Map;function IS(){Vs&&(Vs=!1,pi&&(pi.forEach(t=>t()),pi.clear()))}function ES(){!sf||Pr||(Pr=new IntersectionObserver(t=>{t.forEach(e=>{const r=e.target;On.get(r)!==e.isIntersecting&&On.set(r,e.isIntersecting)})},{threshold:0}))}if(sf){const t=new WeakMap;async function e(a){const s=$s.get(a);if(typeof s!="function")return;const o=a.parentElement;if(!o)return;let l,u;{const[f,m]=await Promise.all([t.get(a),t.get(o)]);if(!f||!m)return;l=f,u=m}if(!l||!u)return;const c=dn.get(a),d=dn.get(o);if(!c||!d||!ki(c,l)||!ki(d,u)){dn.set(a,l),dn.set(o,u);const f=of(l,u);Vs?pi.set(a,()=>s(f)):s(f)}}const r=RS.TAMAGUI_LAYOUT_FRAME_SKIP,n=r?+r:14;async function i(){{const a=[];await new Promise(s=>{const o=new IntersectionObserver(u=>{o.disconnect();for(const c of u)t.set(c.target,c.boundingClientRect);s(!0)},{threshold:0});let l=!1;for(const u of Bs){if(!(u.parentElement instanceof HTMLElement))continue;const c=rf.get(u);c&&nf[c]===!0||On.get(u)!==!1&&(l=!0,o.observe(u),o.observe(u.parentElement),a.push(u))}l||s(!1)})&&a.forEach(s=>{e(s)})}setTimeout(i,16.6667*n)}i()}const of=(t,e)=>({nativeEvent:{layout:lf(t,e),target:t},timeStamp:Date.now()}),lf=(t,e)=>{const{height:r,left:n,top:i,width:a}=t,s=n-e.left,o=i-e.top;return{x:s,y:o,width:a,height:r,pageX:t.left,pageY:t.top}};function NS(t,e){var i;const r=b.useContext(af),n=AS((i=t.current)==null?void 0:i.host);n&&e&&($s.set(n,e),rf.set(n,r)),Qe(()=>{var o;if(!e)return;const a=(o=t.current)==null?void 0:o.host;if(!a)return;Bs.add(a),ES(),Pr&&(Pr.observe(a),On.set(a,!0));const s=a.parentNode;return s&&e(of(a.getBoundingClientRect(),s.getBoundingClientRect())),()=>{Bs.delete(a),$s.delete(a),dn.delete(a),TS.delete(a),On.delete(a),Pr&&Pr.unobserve(a)}},[t,!!e])}function AS(t){if(!(typeof HTMLElement>"u"))return t instanceof HTMLElement?t:void 0}const Eu=t=>new Promise(e=>{if(!t||t.nodeType!==1)return e(!1);const r=new IntersectionObserver(n=>(r.disconnect(),e(n[0].boundingClientRect)),{threshold:0});r.observe(t)}),Co=async(t,e)=>{const r=e||(t==null?void 0:t.parentElement);if(r instanceof HTMLElement){const[n,i]=await Promise.all([Eu(t),Eu(r)]);if(i&&n)return lf(n,i)}return null},LS=async(t,e)=>{const r=await Co(t,t.parentNode instanceof HTMLElement?t.parentNode:null);return r&&(e==null||e(r.x,r.y,r.width,r.height,r.pageX,r.pageY)),r};function kS(t){return e=>LS(t,e)}const OS=async(t,e)=>{const r=await Co(t,null);return r&&(e==null||e(r.pageX,r.pageY,r.width,r.height)),r},PS=t=>e=>OS(t,e),MS=async(t,e,r)=>{const n=await Co(t,e);return n&&(r==null||r(n.x,n.y,n.width,n.height,n.pageX,n.pageY)),n};function $S(t){return(e,r)=>MS(t,e,r)}function BS(){return null}const ex=t=>(Qe(()=>{IS()},[]),z.jsx(Ud,{...t})),tx=t=>R_(t);Vb({getBaseViews:BS,setElementProps:t=>{t&&!t.measure&&(t.measure||(t.measure=kS(t)),t.measureInWindow||(t.measureInWindow=PS(t)),t.measureLayout||(t.measureLayout=$S(t)))},usePropsTransform(t,e,r,n){{const i=typeof t=="string",{onMoveShouldSetResponder:a,onMoveShouldSetResponderCapture:s,onResponderEnd:o,onResponderGrant:l,onResponderMove:u,onResponderReject:c,onResponderRelease:d,onResponderStart:f,onResponderTerminate:m,onResponderTerminationRequest:h,onScrollShouldSetResponder:g,onScrollShouldSetResponderCapture:v,onSelectionChangeShouldSetResponder:S,onSelectionChangeShouldSetResponderCapture:x,onStartShouldSetResponder:C,onStartShouldSetResponderCapture:y,collapsable:R,focusable:w,accessible:_,accessibilityDisabled:I,onLayout:k,hrefAttrs:T,...P}=e;if((n||i)&&(NS(r,i?k:void 0),wS(r,i?e:void 0)),i){if(P.href&&T){const{download:V,rel:E,target:O}=T;V!=null&&(P.download=V),E&&(P.rel=E),typeof O=="string"&&(P.target=O.charAt(0)!=="_"?`_${O}`:O)}return P}}},useEvents(t,e,r,n,i){}});const rx=L_,nx=jd,ix=Yd,ax=b.createContext(1),sx=b.createContext(void 0);var Nu={};const VS=typeof global<"u"&&!!(global._IS_FABRIC??global.nativeFabricUIManager),ox=Nu.TAMAGUI_USE_NATIVE_PORTAL&&Nu.TAMAGUI_USE_NATIVE_PORTAL!=="false"?!0:!VS,Au=new Map,FS={},DS={},uf=(t,e)=>(e in t||(t[e]=[]),t),WS=(t,e)=>(delete t[e],t),zS=(t,e,r,n)=>{e in t||(t=uf(t,e));const i=t[e].findIndex(a=>a.name===r);return i!==-1?t[e][i].node=n:t[e].push({name:r,node:n}),t},HS=(t,e,r)=>{if(!(e in t))return console.info(`Failed to remove portal '${r}', '${e}' was not registered!`),t;const n=t[e].findIndex(i=>i.name===r);return n!==-1&&t[e].splice(n,1),t},jS=(t,e)=>{const{type:r}=e;switch(r){case 0:return uf({...t},e.hostName);case 1:return WS({...t},e.hostName);case 2:return zS({...t},e.hostName,e.portalName,e.node);case 3:return HS({...t},e.hostName,e.portalName);default:return t}},US=b.createContext(null),KS=b.createContext(null),YS=({rootHostName:t="root",shouldAddRootHost:e=!0,children:r})=>{const[n,i]=b.useReducer(jS,DS),a=b.useMemo(()=>s=>{e0(()=>{i(s)})},[i]);return z.jsx(KS.Provider,{value:a,children:z.jsxs(US.Provider,{value:n,children:[r,e&&z.jsx(GS,{name:t})]})})},qS=b.memo(YS);qS.displayName="PortalProvider";const GS=b.memo(function(t){return z.jsx(XS,{...t})});function XS(t){return Qc(()=>()=>{Au.delete(t.name)},[t.name]),z.jsx("div",{style:{display:"contents"},ref:e=>{var r;e&&(Au.set(t.name,e),(r=FS[t.name])==null||r.forEach(n=>n(e)))}})}var p={transparent:"rgba(0,0,0,0)",whiteBase:"#FFFFFF",whiteAlpha30:"rgba(255,255,255,0.3)",whiteAlpha60:"rgba(255,255,255,0.6)",whiteAlpha75:"rgba(255,255,255,0.75)",blackBase:"#101114",blackAbsolute:"#000000",blackAlpha30:"rgba(0,0,0,0.3)",blackAlpha60:"rgba(0,0,0,0.6)",blackAlpha75:"rgba(0,0,0,0.75)",hoverPrimaryLight:"rgba(3, 84, 166, 0.05)",hoverPrimaryDark:"rgba(94, 174, 255, 0.08)",hoverDangerLight:"rgba(187, 37, 26, 0.05)",hoverDangerDark:"rgba(237, 125, 117, 0.08)",hoverGrayLight:"rgba(29, 31, 35, 0.05)",hoverGrayDark:"rgba(252, 252, 253, 0.08)",hoverWhiteLight:"rgba(255, 255, 255, 0.05)",hoverWhiteDark:"rgba(255, 255, 255, 0.08)",neutral50:"#FCFCFD",neutral100:"#F2F4F7",neutral200:"#E4E7EC",neutral300:"#D0D5DD",neutral400:"#8B939F",neutral500:"#6E7581",neutral600:"#40444D",neutral700:"#282B31",neutral800:"#1D1F23",neutral900:"#17181A",primary50:"#ECF4FC",primary100:"#D8E9F9",primary200:"#86C3F9",primary250:"#65ABF1",primary300:"#4B96E7",primary400:"#0354A6",primary500:"#064280",primary600:"#012242",primary700:"#011121",danger50:"#FEF3F2",danger100:"#FDE1E1",danger200:"#FCA5A5",danger300:"#ED7D75",danger400:"#BB251A",danger500:"#831A12",danger600:"#4B0F0A",danger700:"#250705",info50:"#EEF8FB",info100:"#DAF0F6",info200:"#7DD1E8",info300:"#2E9AB8",info400:"#0E7B9B",info500:"#0A5A70",info600:"#093F4E",info700:"#05252E",success50:"#EFFFF8",success100:"#D8F3E7",success200:"#79D7AC",success300:"#35AD77",success400:"#03834A",success500:"#045130",success600:"#012E19",success700:"#011E11",warning50:"#FFF9F4",warning100:"#FCECD9",warning200:"#FFC78F",warning300:"#E7954F",warning400:"#B45803",warning500:"#7E3E07",warning600:"#421F01",warning700:"#2C1501",onSurface:"rgba(242, 244, 247, 0.07)"},Xt={light:{backgroundNeutralSubtlest:p.whiteBase,backgroundNeutralSubtle400:p.neutral50,backgroundNeutralSubtle300:p.neutral100,backgroundNeutralSubtle200:p.neutral200,backgroundNeutralSubtle100:p.neutral300,backgroundNeutralBold100:p.neutral500,backgroundNeutralBold200:p.neutral600,backgroundNeutralBold300:p.neutral800,backgroundNeutralBold400:p.neutral900,backgroundNeutralBoldest:p.blackBase,backgroundPrimarySubtle300:p.primary50,backgroundPrimarySubtle400:p.primary50,backgroundPrimarySubtle200:p.primary100,backgroundPrimarySubtle100:p.primary200,backgroundPrimaryBold100:p.primary300,backgroundPrimaryBold200:p.primary400,backgroundPrimaryBold300:p.primary500,backgroundDangerSubtle200:p.danger50,backgroundDangerSubtle100:p.danger100,backgroundDangerBold100:p.danger400,backgroundDangerBold200:p.danger500,backgroundInfoSubtle200:p.info50,backgroundInfoSubtle100:p.info100,backgroundInfoBold100:p.info400,backgroundInfoBold200:p.info500,backgroundSuccessSubtle200:p.success50,backgroundSuccessSubtle100:p.success100,backgroundSuccessBold100:p.success400,backgroundSuccessBold200:p.success500,backgroundWarningSubtle200:p.warning50,backgroundWarningSubtle100:p.warning100,backgroundWarningBold100:p.warning400,backgroundWarningBold200:p.warning500,surfaceElevateL1:p.whiteBase,surfaceElevateL2:p.whiteBase,surfaceBase:p.whiteBase,surfaceBold100:p.neutral50,surfaceBold200:p.neutral100,surfaceBold300:p.neutral200,onSurfaceBase:p.whiteBase,onSurfaceBold100:p.neutral100,onSurfaceBold200:p.neutral200,borderNeutralSubtlest:p.whiteBase,borderNeutralSubtle500:p.whiteBase,borderNeutralSubtle400:p.neutral50,borderNeutralSubtle300:p.neutral100,borderNeutralSubtle200:p.neutral200,borderNeutralSubtle100:p.neutral300,borderNeutralBold100:p.neutral400,borderNeutralBold200:p.neutral500,borderNeutralBold300:p.neutral600,borderNeutralBold400:p.neutral800,borderPrimarySubtle300:p.primary100,borderPrimarySubtle200:p.primary200,borderPrimarySubtle100:p.primary300,borderPrimaryBold100:p.primary400,borderPrimaryBold200:p.primary500,borderDangerSubtle300:p.danger50,borderDangerSubtle200:p.danger100,borderDangerSubtle100:p.danger200,borderDangerBold100:p.danger400,borderDangerBold200:p.danger500,borderInfoSubtle300:p.info50,borderInfoSubtle200:p.info100,borderInfoSubtle100:p.info200,borderInfoBold100:p.info400,borderInfoBold200:p.info500,borderSuccessSubtle300:p.success50,borderSuccessSubtle200:p.success100,borderSuccessSubtle100:p.success200,borderSuccessBold100:p.success400,borderSuccessBold200:p.success500,borderWarningSubtle300:p.warning50,borderWarningSubtle200:p.warning100,borderWarningSubtle100:p.warning200,borderWarningBold100:p.warning400,borderWarningBold200:p.warning500,textNeutralSubtlest:p.whiteBase,textNeutralSubtle400:p.neutral50,textNeutralSubtle300:p.neutral400,textNeutralSubtle200:p.neutral500,textNeutralSubtle100:p.neutral600,textNeutralSubtle600:p.whiteBase,textNeutralBase:p.neutral800,textPrimarySubtle200:p.primary200,textPrimarySubtle100:p.primary300,textPrimaryBase:p.primary400,textPrimaryBold100:p.primary500,textPrimaryBold200:p.primary600,textDangerBase:p.danger400,textDangerBold100:p.danger500,textInfoBase:p.info400,textInfoBold100:p.info500,textSuccessBase:p.success400,textSuccessBold100:p.success500,textWarningBase:p.warning400,textWarningBold100:p.warning500,iconNeutralSubtlest:p.whiteBase,iconNeutralSubtle400:p.neutral50,iconNeutralSubtle300:p.neutral400,iconNeutralSubtle200:p.neutral500,iconNeutralSubtle100:p.neutral600,iconNeutralBase:p.neutral800,iconPrimarySubtle200:p.primary200,iconPrimarySubtle100:p.primary300,iconPrimaryBase:p.primary400,iconPrimaryBold100:p.primary500,iconDangerSubtle200:p.danger100,iconDangerSubtle100:p.danger200,iconDangerBase:p.danger400,iconDangerBold100:p.danger500,iconInfoSubtle200:p.info100,iconInfoSubtle100:p.info200,iconInfoBase:p.info400,iconInfoBold100:p.info500,iconSuccessSubtle200:p.success100,iconSuccessSubtle100:p.success200,iconSuccessBase:p.success400,iconSuccessBold100:p.success500,iconWarningSubtle200:p.warning100,iconWarningSubtle100:p.warning200,iconWarningBase:p.warning400,iconWarningBold100:p.warning500,overlayLight30:p.whiteAlpha30,overlayLight60:p.whiteAlpha60,overlayLight75:p.whiteAlpha75,overlayDark30:p.blackAlpha30,overlayDark60:p.blackAlpha60,overlayDark75:p.blackAlpha75,hoverPrimary:p.hoverPrimaryLight,hoverDanger:p.hoverDangerLight,hoverGray:p.hoverGrayLight,hoverWhite:p.hoverWhiteLight,transparent:p.transparent,skeleton:p.neutral200,highlight:"#FFF3A3"},dark:{backgroundNeutralSubtlest:p.blackBase,backgroundNeutralSubtle400:p.neutral800,backgroundNeutralSubtle300:p.neutral800,backgroundNeutralSubtle200:p.neutral600,backgroundNeutralSubtle100:p.neutral500,backgroundNeutralBold100:p.neutral300,backgroundNeutralBold200:p.neutral200,backgroundNeutralBold300:p.neutral100,backgroundNeutralBold400:p.neutral100,backgroundNeutralBoldest:p.neutral50,backgroundPrimarySubtle300:p.primary700,backgroundPrimarySubtle400:p.primary700,backgroundPrimarySubtle200:p.primary600,backgroundPrimarySubtle100:p.primary400,backgroundPrimaryBold100:p.primary300,backgroundPrimaryBold200:p.primary300,backgroundPrimaryBold300:p.primary200,backgroundDangerSubtle200:p.danger700,backgroundDangerSubtle100:p.danger600,backgroundDangerBold100:p.danger300,backgroundDangerBold200:p.danger200,backgroundInfoSubtle200:p.info700,backgroundInfoSubtle100:p.info600,backgroundInfoBold100:p.info300,backgroundInfoBold200:p.info200,backgroundSuccessSubtle200:p.success700,backgroundSuccessSubtle100:p.success600,backgroundSuccessBold100:p.success300,backgroundSuccessBold200:p.success200,backgroundWarningSubtle200:p.warning700,backgroundWarningSubtle100:p.warning600,backgroundWarningBold100:p.warning300,backgroundWarningBold200:p.warning200,surfaceElevateL1:p.neutral900,surfaceElevateL2:p.neutral800,surfaceBase:p.blackAbsolute,surfaceBold100:p.neutral900,surfaceBold200:p.neutral800,surfaceBold300:p.neutral700,onSurfaceBase:p.onSurface,onSurfaceBold100:p.onSurface,onSurfaceBold200:p.onSurface,borderNeutralSubtlest:p.neutral900,borderNeutralSubtle500:p.neutral900,borderNeutralSubtle400:p.neutral800,borderNeutralSubtle300:p.neutral700,borderNeutralSubtle200:p.neutral700,borderNeutralSubtle100:p.neutral600,borderNeutralBold100:p.neutral400,borderNeutralBold200:p.neutral400,borderNeutralBold300:p.neutral200,borderNeutralBold400:p.neutral100,borderPrimarySubtle300:p.primary600,borderPrimarySubtle200:p.primary500,borderPrimarySubtle100:p.primary400,borderPrimaryBold100:p.primary300,borderPrimaryBold200:p.primary200,borderDangerSubtle300:p.danger500,borderDangerSubtle200:p.danger400,borderDangerSubtle100:p.danger400,borderDangerBold100:p.danger300,borderDangerBold200:p.danger200,borderInfoSubtle300:p.info600,borderInfoSubtle200:p.info500,borderInfoSubtle100:p.info400,borderInfoBold100:p.info300,borderInfoBold200:p.info200,borderSuccessSubtle300:p.success600,borderSuccessSubtle200:p.success500,borderSuccessSubtle100:p.success400,borderSuccessBold100:p.success300,borderSuccessBold200:p.success200,borderWarningSubtle300:p.warning600,borderWarningSubtle200:p.warning500,borderWarningSubtle100:p.warning400,borderWarningBold100:p.warning300,borderWarningBold200:p.warning200,textNeutralSubtlest:p.blackBase,textNeutralSubtle400:p.neutral800,textNeutralSubtle300:p.neutral500,textNeutralSubtle200:p.neutral400,textNeutralSubtle100:p.neutral200,textNeutralSubtle600:p.blackBase,textNeutralBase:p.neutral50,textPrimarySubtle200:p.primary400,textPrimarySubtle100:p.primary400,textPrimaryBase:p.primary300,textPrimaryBold100:p.primary300,textPrimaryBold200:p.primary200,textDangerBase:p.danger300,textDangerBold100:p.danger200,textInfoBase:p.info300,textInfoBold100:p.info200,textSuccessBase:p.success300,textSuccessBold100:p.success200,textWarningBase:p.warning300,textWarningBold100:p.warning200,iconNeutralSubtlest:p.blackBase,iconNeutralSubtle400:p.neutral800,iconNeutralSubtle300:p.neutral500,iconNeutralSubtle200:p.neutral400,iconNeutralSubtle100:p.neutral200,iconNeutralBase:p.neutral200,iconPrimarySubtle200:p.primary400,iconPrimarySubtle100:p.primary300,iconPrimaryBase:p.primary300,iconPrimaryBold100:p.primary200,iconDangerSubtle200:p.danger500,iconDangerSubtle100:p.danger400,iconDangerBase:p.danger300,iconDangerBold100:p.danger200,iconInfoSubtle200:p.info500,iconInfoSubtle100:p.info400,iconInfoBase:p.info300,iconInfoBold100:p.info200,iconSuccessSubtle200:p.success500,iconSuccessSubtle100:p.success400,iconSuccessBase:p.success300,iconSuccessBold100:p.success200,iconWarningSubtle200:p.warning600,iconWarningSubtle100:p.warning400,iconWarningBase:p.warning300,iconWarningBold100:p.warning200,overlayLight30:p.blackAlpha30,overlayLight60:p.blackAlpha60,overlayLight75:p.blackAlpha75,overlayDark30:p.blackAlpha30,overlayDark60:p.blackAlpha60,overlayDark75:p.blackAlpha75,hoverPrimary:p.hoverPrimaryDark,hoverDanger:p.hoverDangerDark,hoverGray:p.hoverGrayDark,hoverWhite:p.hoverWhiteDark,transparent:p.transparent,skeleton:p.neutral800,highlight:"#855d00"}},Fs={$0:0,$2:2,$4:4,$6:6,$8:8,$12:12,$16:16,$true:16,$20:20,$24:24,$32:32,$40:40,$48:48,$64:64,$80:80,$96:96,$128:128,$160:160,$192:192,$224:224,"$-2":-2,"$-4":-4,"$-6":-6,"$-8":-8,"$-12":-12,"$-16":-16,"$-20":-20,"$-24":-24,"$-32":-32,"$-40":-40,"$-48":-48,"$-64":-64,"$-80":-80,"$-96":-96,"$-128":-128,"$-160":-160,"$-192":-192,"$-224":-224},Ds={$0:0,$4:4,$8:8,$12:12,$16:16,$20:20,$24:24,$28:28,$32:32,$36:36,$40:40,$44:44,$true:44,$48:48,$52:52,$56:56,$64:64,$72:72,$80:80,$96:96,$120:120,$144:144,$160:160,$200:200,$240:240,$280:280},Ro={weight:{regular:400,medium:500,semibold:600,bold:700,extrabold:800},heading:{1:{fontFamily:"NunitoSans",fontFamilyWeb:"NunitoSans, Inter, system-ui, sans-serif",size:36,fontWeight:800,lineHeight:44,letterSpacing:-.02,fontFamilyNative:"NunitoSans-Regular"},2:{fontFamily:"NunitoSans",fontFamilyWeb:"NunitoSans, Inter, system-ui, sans-serif",size:32,fontWeight:700,lineHeight:40,letterSpacing:-.02,fontFamilyNative:"NunitoSans-Regular"},3:{fontFamily:"NunitoSans",fontFamilyWeb:"NunitoSans, Inter, system-ui, sans-serif",size:28,fontWeight:700,lineHeight:36,letterSpacing:-.02,fontFamilyNative:"NunitoSans-Regular"},4:{fontFamily:"NunitoSans",fontFamilyWeb:"NunitoSans, Inter, system-ui, sans-serif",size:24,fontWeight:600,lineHeight:32,letterSpacing:0,fontFamilyNative:"NunitoSans-Regular"},5:{fontFamily:"NunitoSans",fontFamilyWeb:"NunitoSans, Inter, system-ui, sans-serif",size:20,fontWeight:600,lineHeight:28,letterSpacing:0,fontFamilyNative:"NunitoSans-Regular"}},body:{lg:{fontFamily:"Inter",fontFamilyWeb:'Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',size:18,fontWeight:400,lineHeight:28,letterSpacing:0,fontFamilyNative:"Inter-Regular"},md:{fontFamily:"Inter",fontFamilyWeb:'Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',size:16,fontWeight:400,lineHeight:24,letterSpacing:0,fontFamilyNative:"Inter-Regular"},sm:{fontFamily:"Inter",fontFamilyWeb:'Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',size:14,fontWeight:400,lineHeight:20,letterSpacing:0,fontFamilyNative:"Inter-Regular"},xs:{fontFamily:"Inter",fontFamilyWeb:'Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',size:12,fontWeight:400,lineHeight:18,letterSpacing:.01,fontFamilyNative:"Inter-Regular"},xxs:{fontFamily:"Inter",fontFamilyWeb:'Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',size:10,fontWeight:400,lineHeight:14,letterSpacing:.02,fontFamilyNative:"Inter-Regular"}}},cf={compact:{xs:{web:{boxShadow:"0px 0px 0px 1px rgba(16,24,40,0.053), 0px 1px 2px 0px rgba(16,24,40,0.062), 0px 2px 4px 0px rgba(16,24,40,0.026)"},ios:{shadowColor:"#101828",shadowOffset:{width:0,height:1},shadowOpacity:.09,shadowRadius:3},android:{elevation:1}},sm:{web:{boxShadow:"0px 0px 0px 1px rgba(16,24,40,0.044), 0px 1px 3px 0px rgba(16,24,40,0.088), 0px 3px 8px 0px rgba(16,24,40,0.044)"},ios:{shadowColor:"#101828",shadowOffset:{width:0,height:2},shadowOpacity:.11,shadowRadius:5},android:{elevation:2}},md:{web:{boxShadow:"0px 0px 0px 1px rgba(16,24,40,0.035), 0px 2px 4px 0px rgba(16,24,40,0.106), 0px 4px 12px 0px rgba(16,24,40,0.053)"},ios:{shadowColor:"#101828",shadowOffset:{width:0,height:4},shadowOpacity:.12,shadowRadius:8},android:{elevation:4}},lg:{web:{boxShadow:"0px 0px 0px 1px rgba(16,24,40,0.026), 0px 4px 6px 0px rgba(16,24,40,0.123), 0px 8px 24px 0px rgba(16,24,40,0.07)"},ios:{shadowColor:"#101828",shadowOffset:{width:0,height:6},shadowOpacity:.14,shadowRadius:12},android:{elevation:6}},xl:{web:{boxShadow:"0px 0px 0px 1px rgba(16,24,40,0.026), 0px 6px 10px 0px rgba(16,24,40,0.141), 0px 14px 36px 0px rgba(16,24,40,0.088)"},ios:{shadowColor:"#101828",shadowOffset:{width:0,height:10},shadowOpacity:.16,shadowRadius:18},android:{elevation:10}},"2xl":{web:{boxShadow:"0px 0px 0px 1px rgba(16,24,40,0.022), 0px 8px 14px 0px rgba(16,24,40,0.158), 0px 20px 48px 0px rgba(16,24,40,0.106)"},ios:{shadowColor:"#101828",shadowOffset:{width:0,height:10},shadowOpacity:.16,shadowRadius:18},android:{elevation:10}},"3xl":{web:{boxShadow:"0px 0px 0px 1px rgba(16,24,40,0.018), 0px 10px 18px 0px rgba(16,24,40,0.176), 0px 26px 60px 0px rgba(16,24,40,0.123)"},ios:{shadowColor:"#101828",shadowOffset:{width:0,height:10},shadowOpacity:.16,shadowRadius:18},android:{elevation:10}}},wide:{xs:{web:{boxShadow:"0px 0px 0px 1px rgba(16,24,40,0.044), 0px 2px 4px 0px rgba(16,24,40,0.07), 0px 4px 10px 0px rgba(16,24,40,0.035)"},ios:{shadowColor:"#101828",shadowOffset:{width:0,height:3},shadowOpacity:.09,shadowRadius:6},android:{elevation:2}},sm:{web:{boxShadow:"0px 0px 0px 1px rgba(16,24,40,0.035), 0px 4px 8px 0px rgba(16,24,40,0.088), 0px 8px 22px 0px rgba(16,24,40,0.053)"},ios:{shadowColor:"#101828",shadowOffset:{width:0,height:6},shadowOpacity:.11,shadowRadius:12},android:{elevation:4}},md:{web:{boxShadow:"0px 0px 0px 1px rgba(16,24,40,0.026), 0px 6px 12px 0px rgba(16,24,40,0.106), 0px 14px 32px 0px rgba(16,24,40,0.062)"},ios:{shadowColor:"#101828",shadowOffset:{width:0,height:10},shadowOpacity:.12,shadowRadius:18},android:{elevation:8}},lg:{web:{boxShadow:"0px 0px 0px 1px rgba(16,24,40,0.026), 0px 8px 16px 0px rgba(16,24,40,0.123), 0px 20px 48px 0px rgba(16,24,40,0.079)"},ios:{shadowColor:"#101828",shadowOffset:{width:0,height:14},shadowOpacity:.14,shadowRadius:24},android:{elevation:12}},xl:{web:{boxShadow:"0px 0px 0px 1px rgba(16,24,40,0.018), 0px 12px 22px 0px rgba(16,24,40,0.141), 0px 28px 64px 0px rgba(16,24,40,0.097)"},ios:{shadowColor:"#101828",shadowOffset:{width:0,height:20},shadowOpacity:.16,shadowRadius:32},android:{elevation:16}},"2xl":{web:{boxShadow:"0px 0px 0px 1px rgba(16,24,40,0.013), 0px 16px 28px 0px rgba(16,24,40,0.158), 0px 36px 80px 0px rgba(16,24,40,0.114)"},ios:{shadowColor:"#101828",shadowOffset:{width:0,height:20},shadowOpacity:.16,shadowRadius:32},android:{elevation:16}},"3xl":{web:{boxShadow:"0px 0px 0px 1px rgba(16,24,40,0.009), 0px 20px 34px 0px rgba(16,24,40,0.176), 0px 44px 96px 0px rgba(16,24,40,0.132)"},ios:{shadowColor:"#101828",shadowOffset:{width:0,height:20},shadowOpacity:.16,shadowRadius:32},android:{elevation:16}}},anchored:{bottom:{web:{boxShadow:"0px -1px 0px 0px rgba(16,24,40,0.053), 0px -4px 8px 0px rgba(16,24,40,0.123), 0px -10px 24px 0px rgba(16,24,40,0.07)"},ios:{shadowColor:"#101828",shadowOffset:{width:0,height:-6},shadowOpacity:.14,shadowRadius:14},android:{elevation:8}},top:{web:{boxShadow:"0px 1px 0px 0px rgba(16,24,40,0.053), 0px 4px 8px 0px rgba(16,24,40,0.123), 0px 10px 24px 0px rgba(16,24,40,0.07)"},ios:{shadowColor:"#101828",shadowOffset:{width:0,height:6},shadowOpacity:.14,shadowRadius:14},android:{elevation:8}},left:{web:{boxShadow:"1px 0px 0px 0px rgba(16,24,40,0.053), 4px 0px 8px 0px rgba(16,24,40,0.123), 10px 0px 24px 0px rgba(16,24,40,0.07)"},ios:{shadowColor:"#101828",shadowOffset:{width:4,height:0},shadowOpacity:.14,shadowRadius:14},android:{elevation:8}},right:{web:{boxShadow:"-1px 0px 0px 0px rgba(16,24,40,0.053), -4px 0px 8px 0px rgba(16,24,40,0.123), -10px 0px 24px 0px rgba(16,24,40,0.07)"},ios:{shadowColor:"#101828",shadowOffset:{width:-4,height:0},shadowOpacity:.14,shadowRadius:14},android:{elevation:8}}}},Ws={none:0,xs:4,sm:6,md:8,lg:12,xl:16,"2xl":24,"3xl":32,full:9999},zs={none:0,thin:1,medium:2,thick:4},Hs={base:0,raised:100,dropdown:200,sticky:300,modal:400,toast:500};const ZS={transform:!0,opacity:!0},df={backgroundColor:!0,color:!0,borderColor:!0,borderLeftColor:!0,borderRightColor:!0,borderTopColor:!0,borderBottomColor:!0},QS={borderRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderTopWidth:!0,borderBottomWidth:!0,...df},JS=Ot.View,ey=Ot.Text;function ty(t){const e=U.useRef(null);return e.current||(e.current={composite:null,val:new Ot.Value(t),strategy:{type:"spring"}}),{getInstance(){return e.current.val},getValue(){return e.current.val._value},stop(){var r;(r=e.current.composite)==null||r.stop(),e.current.composite=null},setValue(r,{type:n,...i}={type:"spring"},a){var l,u;const s=e.current.val,o=a?({finished:c})=>c?a():null:void 0;if(n==="direct")s.setValue(r);else if(n==="spring"){(l=e.current.composite)==null||l.stop();const c=Ot.spring(s,{...i,toValue:r,useNativeDriver:!os});c.start(o),e.current.composite=c}else{(u=e.current.composite)==null||u.stop();const c=Ot.timing(s,{...i,toValue:r,useNativeDriver:!os});c.start(o),e.current.composite=c}}}}const ry=({value:t},e)=>{const r=O_(n=>{e(n.value)});U.useEffect(()=>{const n=t.getInstance().addListener(r);return()=>{t.getInstance().removeListener(n)}},[t,r])},ny=(t,e)=>e(t.getInstance());function iy(t){return{isReactNative:!0,animations:t,View:JS,Text:ey,useAnimatedNumber:ty,useAnimatedNumberReaction:ry,useAnimatedNumberStyle:ny,usePresence:Zv,ResetPresence:Xv,useAnimations:({props:e,onDidAnimate:r,style:n,componentState:i,presence:a})=>{const s=i.unmounted===!0,o=(a==null?void 0:a[0])===!1,l=a==null?void 0:a[1],u=U.useRef({}),c=U.useRef([]),d=U.useRef(new WeakMap),f=e.animateOnly||[],m=!!e.animateOnly,h=[JSON.stringify(n),i,o,!!r];U.useMemo(()=>!0,h);const g=U.useMemo(()=>{var R;const v=[],S=[],x={};for(const w in n){const _=n[w];if(!s){if(ZS[w]==null&&!QS[w]){x[w]=_;continue}if(m&&!f.includes(w)){x[w]=_;continue}if(w!=="transform"){u.current[w]=y(w,u.current[w],_);continue}if(_){if(typeof _=="string"){console.warn("Warning: Tamagui can't animate string transforms yet!");continue}for(const[I,k]of _.entries()){if(!k)continue;const T=Object.keys(k)[0],P=(R=c.current[I])==null?void 0:R[T];c.current[I]={[T]:y(T,P,k[T])},c.current=[...c.current]}}}}const C={...Object.fromEntries(Object.entries(u.current).map(([w,_])=>{var I;return[w,((I=d.current.get(_))==null?void 0:I.interpolation)||_]})),transform:c.current.map(w=>{var k;const _=Object.keys(w)[0],I=((k=d.current.get(w[_]))==null?void 0:k.interpolation)||w[_];return{[_]:I}})};return{runners:v,completions:S,style:[x,C]};function y(w,_,I){const k=df[w],[T,P]=k?[0,void 0]:uy(I);let V=T;const E=_||new Ot.Value(T),O=d.current.get(E);let H;if(P&&(H=sy((O==null?void 0:O.current)??E._value,T,P),d.current.set(E,{interpolation:E.interpolate(H),current:T})),k&&(V=O!=null&&O.animateToValue?0:1,H=ay(O==null?void 0:O.current,I,V),d.current.set(E,{current:I,interpolation:E.interpolate(H),animateToValue:O!=null&&O.animateToValue?0:1})),E){const F=oy(w,t,e.animation);let G;const Z=new Promise(J=>{G=J});S.push(Z),v.push(()=>{E.stopAnimation();function J(){return Ot[F.type||"spring"](E,{toValue:V,useNativeDriver:!os,...F})}(F.delay?Ot.sequence([Ot.delay(F.delay),J()]):J()).start(({finished:M})=>{M&&G()})})}return E}},h);return Qc(()=>{g.runners.forEach(S=>S());let v=!1;return Promise.all(g.completions).then(()=>{v||(r==null||r(),o&&(l==null||l()))}),()=>{v=!0}},h),g}}}function ay(t,e,r){const n=[0,1],i=[t||e,e];return r===0&&i.reverse(),{inputRange:n,outputRange:i}}function sy(t,e,r="deg"){e===t&&(t=e-1e-9);const n=[t,e],i=[`${t}${r}`,`${e}${r}`];return e<t&&(n.reverse(),i.reverse()),{inputRange:n,outputRange:i}}function oy(t,e,r){var s,o;if(typeof r=="string")return e[r];let n="",i;const a=ly[t];if(Array.isArray(r)){n=r[0];const l=((s=r[1])==null?void 0:s[t])??((o=r[1])==null?void 0:o[a]);l&&(typeof l=="string"?n=l:(n=l.type||n,i=l))}else{const l=(r==null?void 0:r[t])??(r==null?void 0:r[a]);n=l==null?void 0:l.type,i=l}return{...e[n],...i}}const ly={x:"translateX",y:"translateY",translateX:"x",translateY:"y"};function uy(t,e=!1){if(typeof t!="string")return[t];const[r,n,i]=t.match(/([-0-9]+)(deg|%|px)/)??[];return[+n,i]}const Mt={ussel:"userSelect",cur:"cursor",pe:"pointerEvents",col:"color",ff:"fontFamily",fos:"fontSize",fost:"fontStyle",fow:"fontWeight",ls:"letterSpacing",lh:"lineHeight",ta:"textAlign",tt:"textTransform",ww:"wordWrap",ac:"alignContent",ai:"alignItems",als:"alignSelf",b:"bottom",bc:"backgroundColor",bg:"backgroundColor",bbc:"borderBottomColor",bblr:"borderBottomLeftRadius",bbrr:"borderBottomRightRadius",bbw:"borderBottomWidth",blc:"borderLeftColor",blw:"borderLeftWidth",boc:"borderColor",br:"borderRadius",bs:"borderStyle",brw:"borderRightWidth",brc:"borderRightColor",btc:"borderTopColor",btlr:"borderTopLeftRadius",btrr:"borderTopRightRadius",btw:"borderTopWidth",bw:"borderWidth",dsp:"display",f:"flex",fb:"flexBasis",fd:"flexDirection",fg:"flexGrow",fs:"flexShrink",fw:"flexWrap",h:"height",jc:"justifyContent",l:"left",m:"margin",mah:"maxHeight",maw:"maxWidth",mb:"marginBottom",mih:"minHeight",miw:"minWidth",ml:"marginLeft",mr:"marginRight",mt:"marginTop",mx:"marginHorizontal",my:"marginVertical",o:"opacity",ov:"overflow",p:"padding",pb:"paddingBottom",pl:"paddingLeft",pos:"position",pr:"paddingRight",pt:"paddingTop",px:"paddingHorizontal",py:"paddingVertical",r:"right",shac:"shadowColor",shar:"shadowRadius",shof:"shadowOffset",shop:"shadowOpacity",t:"top",w:"width",zi:"zIndex"};Mt.bls="borderLeftStyle";Mt.brs="borderRightStyle";Mt.bts="borderTopStyle";Mt.bbs="borderBottomStyle";Mt.bxs="boxSizing";Mt.bxsh="boxShadow";Mt.ox="overflowX";Mt.oy="overflowY";var lx='Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',ux={sm:640,md:768,lg:1024,xl:1280},cx={sm:{paddingVertical:8,paddingHorizontal:8},md:{paddingVertical:16,paddingHorizontal:16},lg:{paddingVertical:24,paddingHorizontal:20},xl:{paddingVertical:32,paddingHorizontal:24},xxl:{paddingVertical:48,paddingHorizontal:32}},dx={sm:16},cy={sm:8,md:12,input:8},fx={mobile:48,desktop:{sm:36,md:48}},dy={dropdown:200},Lu="idia-focus-ring-vars";function fy(){const{resolvedColorMode:t}=To(),e=Xt[t],r=e.borderNeutralSubtle500,n=e.borderNeutralBold400,i=`:root, .t_light, .t_dark {
28
- --idia-focus-ring: ${r};
29
- --idia-focus-ring-outer: ${n};
30
- --borderNeutralSubtle500: ${r};
31
- --borderNeutralBold400: ${n};
32
- }`;return b.useLayoutEffect(()=>{if(typeof document>"u")return;let a=document.getElementById(Lu);a||(a=document.createElement("style"),a.id=Lu,document.head.appendChild(a)),a.textContent=i;const s=document.documentElement;s.style.setProperty("--idia-focus-ring",r),s.style.setProperty("--idia-focus-ring-outer",n),s.style.setProperty("--borderNeutralSubtle500",r),s.style.setProperty("--borderNeutralBold400",n)},[i,r,n]),null}var ku="idia-inter-font",Ou="idia-nunito-sans-font",hy="/fonts/Inter.ttf",my="/fonts/NunitoSans.woff2";function py(t){if(typeof document>"u")return;const e=(t==null?void 0:t.inter)??hy,r=(t==null?void 0:t.nunitoSans)??my;if(!document.getElementById(ku)){const n=document.createElement("style");n.id=ku,n.textContent=`@font-face{font-family:"Inter";src:url("${e}") format("truetype");font-weight:100 900;font-style:normal;font-display:swap}`,document.head.appendChild(n)}if(!document.getElementById(Ou)){const n=document.createElement("style");n.id=Ou,n.textContent=`@font-face{font-family:"NunitoSans";src:url("${r}") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}`,document.head.appendChild(n)}}function hx(t=3e3){return typeof document>"u"||!document.fonts?Promise.resolve():new Promise(e=>{const r=setTimeout(e,t);Promise.all([document.fonts.load("1em Inter"),document.fonts.load("600 1em NunitoSans")]).then(()=>e()).catch(()=>e()).finally(()=>clearTimeout(r))})}var Pu={},gy="/* idia-focus-visible-start */",Mu="/* idia-focus-visible-end */",vy=`
33
- /* idia-focus-rings-disabled */
34
- :focus:not(:focus-visible),
35
- *:focus-visible,
36
- button:focus-visible,
37
- a:focus-visible,
38
- input:focus-visible,
39
- textarea:focus-visible,
40
- select:focus-visible,
41
- [role="button"]:focus-visible,
42
- [role="link"]:focus-visible,
43
- [tabindex]:focus-visible:not([tabindex="-1"]),
44
- body [data-interaction="mouse"]:focus-visible {
45
- outline: none !important;
46
- box-shadow: none !important;
47
- }
48
- `;function by(t){const e=t.indexOf(gy),r=t.indexOf(Mu);return e===-1||r===-1?t:t.slice(0,e)+t.slice(r+Mu.length)}function _y({disableFocusRings:t,customFocusRingColor:e}={}){let r=t?by(Pu):Pu;return t&&(r+=vy),e&&(r+=`
49
- :root {
50
- --idia-focus-ring: ${e};
51
- }
52
- `),r}var $u="idia-global-styles";function Sy({disableGlobalStyles:t,disableFocusRings:e,customFocusRingColor:r,webFontUrls:n}){const i=_y({disableFocusRings:e,customFocusRingColor:r});return b.useLayoutEffect(()=>{if(t||typeof document>"u")return;py(n);let a=document.getElementById($u);a||(a=document.createElement("style"),a.id=$u,document.head.appendChild(a)),a.textContent=i},[i,t,n]),null}var Bu="idia-ui-color-mode",ff=b.createContext(null);function hf(){return typeof window<"u"&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":Xc.getColorScheme()==="dark"?"dark":"light"}function yy(t,e){return e||(t==="system"?hf():t)}function xy({children:t,defaultColorMode:e="system",storageAdapter:r,forcedColorMode:n,disableGlobalStyles:i,disableFocusRings:a,customFocusRingColor:s,webFontUrls:o}){const[l,u]=b.useState(e),[c,d]=b.useState(!r),[f,m]=b.useState(hf);b.useEffect(()=>{if(!r)return;let x=!1;return r.getItem(Bu).then(C=>{if(x||!C){d(!0);return}(C==="light"||C==="dark"||C==="system")&&u(C),d(!0)}),()=>{x=!0}},[r]),b.useEffect(()=>{if(typeof window<"u"&&window.matchMedia){const C=window.matchMedia("(prefers-color-scheme: dark)"),y=()=>m(C.matches?"dark":"light");return y(),C.addEventListener("change",y),()=>C.removeEventListener("change",y)}const x=Xc.addChangeListener(({colorScheme:C})=>{m(C==="dark"?"dark":"light")});return()=>x.remove()},[]);const h=b.useCallback(x=>{u(x),r&&r.setItem(Bu,x)},[r]),g=b.useCallback(()=>{const x=yy(l,n);h(x==="dark"?"light":"dark")},[l,n,h]),v=b.useMemo(()=>n||(l==="system"?f:l),[l,n,f]),S=b.useMemo(()=>({colorModePreference:l,resolvedColorMode:v,forcedColorMode:n,setColorMode:h,toggleColorMode:g,isSystem:!n&&l==="system"}),[l,v,n,h,g]);return c?z.jsxs(ff.Provider,{value:S,children:[z.jsx(fy,{}),z.jsx(Sy,{disableGlobalStyles:i,disableFocusRings:a,customFocusRingColor:s,webFontUrls:o}),t]}):null}function To(){const t=b.useContext(ff);if(!t)throw new Error("useThemeContext must be used within ThemeProvider");return t}function mx({children:t,defaultColorMode:e,storageAdapter:r,disableGlobalStyles:n,disableFocusRings:i,customFocusRingColor:a,webFontUrls:s}){return z.jsx(xy,{defaultColorMode:e,storageAdapter:r,disableGlobalStyles:n,disableFocusRings:i,customFocusRingColor:a,webFontUrls:s,children:t})}function px(){const{resolvedColorMode:t,setColorMode:e,toggleColorMode:r,isSystem:n}=To();return{colorMode:t,setColorMode:e,toggleColorMode:r,isSystem:n}}function gx(){const{resolvedColorMode:t}=To();return{colorMode:t,colors:Xt[t],palette:p,space:Fs,size:Ds,typography:Ro,shadows:cf,radius:Ws,borderWidth:zs,zIndex:Hs}}var wy=cf;function Cy(){return{boxShadow:"none"}}function mf(t,e){var n;const r=(n=wy[t])==null?void 0:n[e];return r?r.web:Cy()}function vx(t,e){return b.useMemo(()=>mf(t,e),[t,e])}function bx(t){const e=mf("compact","md");return{borderRadius:cy.md,padding:8,borderWidth:1,borderColor:t.borderNeutralSubtle100,backgroundColor:t.surfaceElevateL2,zIndex:dy.dropdown,style:{...e,boxSizing:"border-box",backgroundColor:t.surfaceElevateL2,borderColor:t.borderNeutralSubtle100}}}var Be=Ro.heading,Ve=Ro.body,Ry=Be[1].fontFamilyWeb,Ty=Ve.md.fontFamilyWeb,oi={size:{1:Be[1].size,2:Be[2].size,3:Be[3].size,4:Be[4].size,5:Be[5].size},lineHeight:{1:Be[1].lineHeight,2:Be[2].lineHeight,3:Be[3].lineHeight,4:Be[4].lineHeight,5:Be[5].lineHeight},weight:{4:"400",6:"600",7:"700"},letterSpacing:{1:Be[1].letterSpacing,2:Be[2].letterSpacing,3:Be[3].letterSpacing,4:Be[4].letterSpacing,5:Be[5].letterSpacing}},li={size:{lg:Ve.lg.size,md:Ve.md.size,sm:Ve.sm.size,xs:Ve.xs.size,xxs:Ve.xxs.size},lineHeight:{lg:Ve.lg.lineHeight,md:Ve.md.lineHeight,sm:Ve.sm.lineHeight,xs:Ve.xs.lineHeight,xxs:Ve.xxs.lineHeight},weight:{4:"400",6:"600",7:"700"},letterSpacing:{lg:Ve.lg.letterSpacing,md:Ve.md.letterSpacing,sm:Ve.sm.letterSpacing,xs:Ve.xs.letterSpacing,xxs:Ve.xxs.letterSpacing}};function Iy(){const t=gu({family:Ry,face:{},size:oi.size,lineHeight:oi.lineHeight,weight:oi.weight,letterSpacing:oi.letterSpacing}),e=gu({family:Ty,face:{},size:li.size,lineHeight:li.lineHeight,weight:li.weight,letterSpacing:li.letterSpacing});return{heading:t,body:e}}var qt={outlineWidth:0,outlineStyle:"none",outlineColor:"transparent"},ur={unstyled:{false:{focusVisibleStyle:qt}}},Ey={Input:{defaultProps:{focusVisibleStyle:qt},variants:ur},Button:{defaultProps:{focusVisibleStyle:qt},variants:ur},TextArea:{defaultProps:{focusVisibleStyle:qt},variants:ur},Select:{defaultProps:{native:!0,sheet:!0,snapPoints:[.5,.8],dismissOnSnapToBottom:!0,focusVisibleStyle:qt},variants:ur},Checkbox:{defaultProps:{focusVisibleStyle:qt},variants:ur},Radio:{defaultProps:{focusVisibleStyle:qt},variants:ur},Switch:{defaultProps:{focusVisibleStyle:qt},variants:ur}},Ny={color:{...p,true:p.neutral900},space:{...Fs,true:Fs.$true},size:{...Ds,true:Ds.$true},radius:{...Ws,true:Ws.md},zIndex:{...Hs,true:Hs.base},borderWidth:{...zs,true:zs.thin}},Ay={light:{...Xt.light,color:Xt.light.textNeutralBase,background:Xt.light.backgroundNeutralSubtle400},dark:{...Xt.dark,color:Xt.dark.textNeutralBase,background:Xt.dark.backgroundNeutralSubtle400}},Ly={sm:{maxWidth:640},md:{maxWidth:768},lg:{maxWidth:1024},xl:{maxWidth:1280},gtSm:{minWidth:641},gtMd:{minWidth:769},gtLg:{minWidth:1025},gtXl:{minWidth:1281}},ky=iy({bouncy:{type:"spring",damping:10,mass:.9,stiffness:100},lazy:{type:"spring",damping:20,stiffness:60},quick:{type:"spring",damping:20,mass:1.2,stiffness:250}});function Oy(t,e){if(!e)return t;const r={...t};for(const n of Object.keys(e)){const i=e[n];i&&(r[n]={...t[n],...i})}return r}function Py(t,e){return e?{light:e.light?{...t.light,...e.light}:t.light,dark:e.dark?{...t.dark,...e.dark}:t.dark}:t}function _x({createTamagui:t,createTokens:e,shorthands:r=Mt,defaultTheme:n="light",extendTokens:i,extendThemes:a}){const s=Oy(Ny,i),o=Py(Ay,a),l=e(s),u=Iy();return t({tokens:l,themes:o,media:Ly,defaultTheme:n,shouldAddPrefersColorThemes:!1,themeClassNameOnRoot:!0,shorthands:r,animations:ky,fonts:u,components:Ey})}const pf={top:0,left:0,right:0,bottom:0},gf=b.createContext(pf);function Sx({children:t}){return z.jsx(gf.Provider,{value:pf,children:t})}function yx(){return b.useContext(gf)}const xx=({children:t,style:e})=>z.jsx(Se,{style:e,children:t}),wx=({children:t})=>z.jsx(z.Fragment,{children:t}),Cx={END:5};export{Qe as $,lc as A,uc as B,cc as C,dc as D,is as E,ls as F,xx as G,Qc as H,Rn as I,e0 as J,o0 as K,Bn as L,jd as M,go as N,gn as O,qS as P,Bl as Q,Qb as R,Sx as S,ex as T,Qt as U,Se as V,Ue as W,R0 as X,Nb as Y,ax as Z,Je as _,tx as a,lx as a$,Db as a0,F0 as a1,r0 as a2,r_ as a3,lt as a4,Mi as a5,rx as a6,Gy as a7,Yd as a8,sx as a9,Qy as aA,Mr as aB,ix as aC,fo as aD,Yy as aE,Pi as aF,qy as aG,s0 as aH,vo as aI,pd as aJ,ux as aK,yx as aL,gx as aM,vx as aN,cy as aO,fx as aP,dy as aQ,bx as aR,Ot as aS,wx as aT,Wi as aU,Cx as aV,p as aW,mf as aX,cx as aY,dx as aZ,Hp as a_,Xy as aa,Yv as ab,Au as ac,FS as ad,GS as ae,Hy as af,os as ag,Uy as ah,jy as ai,Ky as aj,nx as ak,Hb as al,O_ as am,Jy as an,qv as ao,xi as ap,Dr as aq,Zs as ar,Zy as as,P0 as at,l_ as au,Xb as av,n0 as aw,k_ as ax,Xv as ay,ox as az,_x as b,ks as c,mx as d,Ui as e,Jm as f,Ce as g,et as h,Jh as i,bi as j,Qs as k,yi as l,hc as m,Cc as n,nc as o,pc as p,Gs as q,Xs as r,ze as s,fc as t,px as u,ic as v,hx as w,ac as x,sc as y,oc as z};