@app-studio/web 0.8.89 → 0.8.91

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 (46) hide show
  1. package/dist/components/CookieConsent/CookieConsent/CookieConsent.props.d.ts +57 -0
  2. package/dist/components/CookieConsent/CookieConsent/CookieConsent.state.d.ts +13 -0
  3. package/dist/components/CookieConsent/CookieConsent/CookieConsent.style.d.ts +68 -0
  4. package/dist/components/CookieConsent/CookieConsent/CookieConsent.type.d.ts +13 -0
  5. package/dist/components/CookieConsent/CookieConsent/CookieConsent.view.d.ts +8 -0
  6. package/dist/components/CookieConsent/CookieConsent.d.ts +3 -0
  7. package/dist/components/CookieConsent/examples/custom.d.ts +5 -0
  8. package/dist/components/CookieConsent/examples/default.d.ts +5 -0
  9. package/dist/components/CookieConsent/examples/index.d.ts +4 -0
  10. package/dist/components/CookieConsent/examples/positions.d.ts +5 -0
  11. package/dist/components/CookieConsent/examples/variants.d.ts +5 -0
  12. package/dist/components/Icon/Icon.d.ts +4 -1
  13. package/dist/components/Title/Title/Title.props.d.ts +89 -0
  14. package/dist/components/Title/Title/Title.state.d.ts +124 -0
  15. package/dist/components/Title/Title/Title.style.d.ts +25 -0
  16. package/dist/components/Title/Title/Title.type.d.ts +25 -0
  17. package/dist/components/Title/Title/Title.view.d.ts +9 -0
  18. package/dist/components/Title/Title/useInView.d.ts +9 -0
  19. package/dist/components/Title/Title.d.ts +3 -0
  20. package/dist/components/Title/examples/alternating.d.ts +5 -0
  21. package/dist/components/Title/examples/animated.d.ts +5 -0
  22. package/dist/components/Title/examples/animationTest.d.ts +5 -0
  23. package/dist/components/Title/examples/custom.d.ts +5 -0
  24. package/dist/components/Title/examples/default.d.ts +5 -0
  25. package/dist/components/Title/examples/directAnimation.d.ts +5 -0
  26. package/dist/components/Title/examples/gradientTest.d.ts +5 -0
  27. package/dist/components/Title/examples/hero.d.ts +5 -0
  28. package/dist/components/Title/examples/highlightTest.d.ts +5 -0
  29. package/dist/components/Title/examples/highlighted.d.ts +5 -0
  30. package/dist/components/Title/examples/index.d.ts +10 -0
  31. package/dist/components/Title/examples/responsive.d.ts +5 -0
  32. package/dist/components/Title/index.d.ts +1 -0
  33. package/dist/components/index.d.ts +4 -0
  34. package/dist/pages/cookieConsent.page.d.ts +6 -0
  35. package/dist/pages/title.page.d.ts +6 -0
  36. package/dist/web.cjs.development.js +957 -139
  37. package/dist/web.cjs.development.js.map +1 -1
  38. package/dist/web.cjs.production.min.js +1 -1
  39. package/dist/web.cjs.production.min.js.map +1 -1
  40. package/dist/web.esm.js +954 -141
  41. package/dist/web.esm.js.map +1 -1
  42. package/dist/web.umd.development.js +958 -141
  43. package/dist/web.umd.development.js.map +1 -1
  44. package/dist/web.umd.production.min.js +1 -1
  45. package/dist/web.umd.production.min.js.map +1 -1
  46. package/package.json +2 -2
@@ -1,2 +1,2 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0}),require("core-js/modules/es.object.assign.js");var t=require("react"),o=e(t);require("core-js/modules/es.array.includes.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.string.includes.js"),require("core-js/modules/web.dom-collections.iterator.js"),require("core-js/modules/es.regexp.to-string.js");var r=require("app-studio");require("core-js/modules/es.symbol.description.js"),require("core-js/modules/es.parse-float.js"),require("core-js/modules/es.string.trim-end.js");var i=require("react-router-dom"),n=e(require("contrast"));require("core-js/modules/es.promise.js"),require("core-js/modules/es.array.reduce.js"),require("core-js/modules/es.number.to-fixed.js"),require("core-js/modules/es.string.starts-with.js");var a=e(require("date-fns/format"));require("core-js/modules/es.parse-int.js"),require("core-js/modules/es.regexp.constructor.js"),require("core-js/modules/es.regexp.exec.js");var l=require("formik");require("core-js/modules/web.url.js"),require("core-js/modules/web.url.to-json.js"),require("core-js/modules/web.url-search-params.js");var s=require("zustand");function c(e,t){if(null==e)return{};var o={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;o[r]=e[r]}return o}require("core-js/modules/es.string.ends-with.js"),require("core-js/modules/es.string.match.js"),require("core-js/modules/es.string.search.js"),require("core-js/modules/es.array.flat-map.js"),require("core-js/modules/es.array.unscopables.flat-map.js"),require("core-js/modules/es.string.trim.js");var d=function(e){return void 0===e&&(e="id"),e+"-"+Math.random().toString(36).substring(2,9)},u={sharp:{borderRadius:0},rounded:{borderRadius:8}},h={default:{backgroundColor:"transparent",borderWidth:0},outline:{borderWidth:1,borderStyle:"solid",borderColor:"color.gray.200"},filled:{backgroundColor:"color.gray.50"}},g=["value","children","isDisabled","views"],m=["children","value","isExpanded","isDisabled","triggerId","contentId","views","asChild"],p=["children","isExpanded","isDisabled","triggerId","contentId","views"],v=["children","shape","variant","views","baseId","type","collapsible","themeMode"],b=t.createContext({expandedItems:[],toggleItem:()=>{},isItemExpanded:()=>!1,type:"single",collapsible:!1,baseId:""}),x=e=>{var{children:t,value:r}=e;return o.createElement(b.Provider,{value:r},t)},f=()=>{var e=t.useContext(b);if(!e)throw new Error("useAccordionContext must be used within an AccordionProvider");return e},w=e=>{var{children:t,shape:i="rounded",variant:n="default",views:a}=e,l=c(e,v);return o.createElement(r.Vertical,Object.assign({width:"100%","data-orientation":"vertical"},u[i],h[n],null==a?void 0:a.container,l),t)},E=["children","type","value","defaultValue","onValueChange","collapsible","shape","variant","views"],y=e=>{var{children:r,type:i="single",value:n,defaultValue:a,onValueChange:l,collapsible:s=!1,shape:u="rounded",variant:h="default",views:g}=e,m=c(e,E),p=Array.isArray(a)?a:a?[a]:void 0,v=(e=>{var{type:o="single",value:r,defaultValue:i,onValueChange:n,collapsible:a=!1}=e,l=void 0!==r,s=null!=r?r:i,[c,u]=t.useState("multiple"===o?Array.isArray(s)?s:s?[s]:[]:Array.isArray(s)?s[0]:s),h=t.useMemo(()=>d("accordion"),[]),g=l?r:c,m=t.useMemo(()=>void 0===g?[]:Array.isArray(g)?g:[g],[g]);t.useEffect(()=>{l&&("multiple"!==o||Array.isArray(r)?"single"===o&&Array.isArray(r)?(console.warn('Accordion with type="single" received array value:',r),u(r.length>0?r[0]:void 0)):u(r):(console.warn('Accordion with type="multiple" received non-array value:',r),u(r?[String(r)]:[])))},[r,l,o]);var p=t.useCallback(e=>{var t;if("single"===o)t=g===e&&a?void 0:g!==e?e:g;else{var r=Array.isArray(g)?g:[];t=r.includes(e)?r.filter(t=>t!==e):[...r,e],Array.isArray(t)&&0===t.length&&(t=[])}l||u(t),n&&n(t)},[o,g,a,l,n]),v=t.useCallback(e=>m.includes(e),[m]);return{expandedItems:m,toggleItem:p,isItemExpanded:v,type:o,collapsible:a,baseId:h}})({type:i,value:n,defaultValue:null!=a?a:p,onValueChange:l,collapsible:s});return o.createElement(x,{value:{expandedItems:v.expandedItems,toggleItem:v.toggleItem,isItemExpanded:v.isItemExpanded,type:v.type,collapsible:v.collapsible,baseId:v.baseId}},o.createElement(w,Object.assign({shape:u,variant:h,views:g,baseId:v.baseId,type:v.type,collapsible:v.collapsible},m),r))};y.Item=e=>{var{value:t,children:i,isDisabled:n=!1,views:a}=e,l=c(e,g),{isItemExpanded:s,baseId:d}=f(),u=s(t),h=d+"-trigger-"+t,m=d+"-content-"+t;return o.createElement(r.View,Object.assign({borderWidth:1,borderStyle:"solid",borderColor:"color.gray.200",marginBottom:8,overflow:"hidden",opacity:n?.5:1,pointerEvents:n?"none":"auto","data-state":u?"open":"closed","data-disabled":n?"":void 0},null==a?void 0:a.item,l),o.Children.map(i,e=>o.isValidElement(e)?o.cloneElement(e,Object.assign({},e.props,{value:t,isExpanded:u,isDisabled:n,triggerId:h,contentId:m})):e))},y.Trigger=e=>{var{children:i,value:n,isExpanded:a,isDisabled:l,triggerId:s,contentId:d,views:u,asChild:h=!1}=e,g=c(e,m),{toggleItem:p}=f(),v=Object.assign({id:s,"aria-expanded":a,"aria-controls":d,"aria-disabled":l,"data-state":a?"open":"closed","data-disabled":l?"":void 0,onClick:()=>{n&&!l&&p(n)},padding:16,cursor:l?"not-allowed":"pointer",alignItems:"center",justifyContent:"space-between",backgroundColor:"color.white",width:"100%"},null==u?void 0:u.container,g);if(h&&t.isValidElement(i)){var b=t.Children.only(i);return t.cloneElement(b,Object.assign({},v,b.props))}return o.createElement(r.Horizontal,Object.assign({},v),i,o.createElement(r.View,Object.assign({width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:a?"rotate(180deg)":"rotate(0deg)"},null==u?void 0:u.icon),o.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z",fill:"currentColor"}))))},y.Content=e=>{var{children:t,isExpanded:i,isDisabled:n,triggerId:a,contentId:l,views:s}=e,d=c(e,p);return i?o.createElement(r.View,Object.assign({id:l,role:"region","aria-labelledby":a,padding:16,backgroundColor:"color.white",maxHeight:i?"1000px":"0",transition:"max-height 0.3s ease-in-out, opacity 0.3s ease-in-out",opacity:1,overflow:"hidden","data-state":i?"open":"closed","data-disabled":n?"":void 0},null==s?void 0:s.container,d),t):null};var C={h1:{fontSize:"36px",lineHeight:"40px",fontWeight:"700",letterSpacing:"-0.02em",marginBottom:"24px"},h2:{fontSize:"30px",lineHeight:"36px",fontWeight:"700",letterSpacing:"-0.02em",marginBottom:"20px"},h3:{fontSize:"24px",lineHeight:"32px",fontWeight:"600",letterSpacing:"-0.01em",marginBottom:"16px"},h4:{fontSize:"20px",lineHeight:"28px",fontWeight:"600",letterSpacing:"-0.01em",marginBottom:"16px"},h5:{fontSize:"18px",lineHeight:"24px",fontWeight:"600",letterSpacing:"-0.01em",marginBottom:"12px"},h6:{fontSize:"16px",lineHeight:"24px",fontWeight:"600",letterSpacing:"-0.01em",marginBottom:"8px"}},j={xs:"12px",sm:"14px",md:"16px",lg:"18px",xl:"20px"},k={xs:"16px",sm:"20px",md:"24px",lg:"28px",xl:"28px"},I={hairline:"100",thin:"200",light:"300",normal:"400",medium:"500",semiBold:"600",bold:"700",extraBold:"800",black:"900"},O=["text","maxLines","views"],S=["children","heading","maxLines","isItalic","isUnderlined","isSub","isSup","isStriked","weight","size","views"],z=e=>{var{children:t,isSub:i,isSup:n,views:a}=e;return o.createElement(o.Fragment,null,"string"==typeof t?o.createElement(o.Fragment,null,i&&o.createElement(r.View,Object.assign({as:"sub",fontSize:"75%",lineHeight:"0",position:"relative",bottom:"-0.25em"},null==a?void 0:a.sup),t),n&&o.createElement(r.View,Object.assign({as:"sup",fontSize:"75%",lineHeight:"0",position:"relative",top:"-0.5em"},null==a?void 0:a.sup),t),!i&&!n&&o.createElement(o.Fragment,null,t)):t)},H=e=>{var{text:i,maxLines:n=1,views:a}=e,l=c(e,O),s=t.useRef(null),[d,u]=t.useState(i),[h,g]=t.useState(!1);return t.useEffect(()=>{var e=s.current;if(!e||!i||n<=0)return u(null!=i?i:""),void g(!1);var{overflow:t,height:o,maxHeight:r,lineHeight:a}=e.style;e.style.overflow="visible",e.style.height="auto",e.style.maxHeight="none",e.innerText=i[0]||"M";var l=e.offsetHeight;if(!l){var c=getComputedStyle(e);l="normal"!==c.lineHeight?parseFloat(c.lineHeight):1.2*parseFloat(c.fontSize||"16")}var d=l*n;if(e.innerText=i,e.offsetHeight<=d)return u(i),g(!1),void x(e);for(var h=0,m=i.length,p=0;h<=m;){var v=Math.floor((h+m)/2);e.innerText=i.slice(0,v),e.offsetHeight<=d?(p=v,h=v+1):m=v-1}var b=p<i.length?i.slice(0,i.length>p+3?p-3:p).trimEnd()+"…":i;function x(e){e.style.overflow=t,e.style.height=o,e.style.maxHeight=r,e.style.lineHeight=a}u(b),g(p<i.length),x(e)},[i,n]),o.createElement(r.View,Object.assign({ref:s,overflow:"hidden"},null==a?void 0:a.truncateText,l,{title:h?i:void 0}),d)},M=e=>{var{children:t,heading:i,maxLines:n,isItalic:a=!1,isUnderlined:l=!1,isSub:s=!1,isSup:d=!1,isStriked:u=!1,weight:h="normal",size:g="md",views:m}=e,p=c(e,S);return o.createElement(r.Element,Object.assign({fontSize:j[g],lineHeight:k[g],fontStyle:a?"italic":"normal",fontWeight:I[h],letterSpacing:"-0.01em",textDecoration:u?"line-through":l?"underline":"none",color:"color.gray.900",_dark:{color:"color.gray.100"}},s||d?{display:"inline"}:{},i?C[i]:{},p,null==m?void 0:m.container),n&&"string"==typeof t?o.createElement(H,{text:t,maxLines:n}):o.createElement(z,{isSub:s,isSup:d},t))},T=e=>o.createElement(M,Object.assign({},e)),W=["widthHeight","color","transform","orientation","children"],R=["widthHeight","color","filled","strokeWidth"],V=["widthHeight","color","filled","strokeWidth"],L=["widthHeight","color","filled","strokeWidth"],_=["widthHeight","color","filled","strokeWidth"],B=["widthHeight","color","filled","strokeWidth"],P=["widthHeight","color","filled","strokeWidth"],D=["widthHeight","color","filled","strokeWidth"],F=["widthHeight","color","filled","strokeWidth"],A=["widthHeight","color","filled","strokeWidth"],G=["widthHeight","color","filled","strokeWidth"],N=["widthHeight","color","filled","strokeWidth"],U=["widthHeight","color","filled","strokeWidth"],Y=["widthHeight","color","filled","strokeWidth"],K=["widthHeight","color","filled","strokeWidth"],q=["widthHeight","color","filled","strokeWidth"],X=["widthHeight","color","filled","strokeWidth"],Z=["widthHeight","color","filled","strokeWidth"],J=["widthHeight","color","filled","strokeWidth"],Q=["widthHeight","color","filled","strokeWidth"],$=["widthHeight","color","filled","strokeWidth"],ee=["widthHeight","color","filled","strokeWidth"],te=["widthHeight","color","filled","strokeWidth"],oe=["widthHeight","color","filled","strokeWidth"],re=["widthHeight","color","filled","strokeWidth"],ie=["widthHeight","color","filled","strokeWidth"],ne=["widthHeight","color","filled","strokeWidth"],ae=["widthHeight","color","filled","strokeWidth"],le=["widthHeight","color","filled","strokeWidth"],se=["widthHeight","color","filled","strokeWidth"],ce=["widthHeight","color","filled","strokeWidth"],de=["widthHeight","color","strokeWidth","filled"],ue=["widthHeight","color","filled","strokeWidth"],he=["widthHeight","color","strokeWidth","filled"],ge=["widthHeight","color","filled","strokeWidth"],me=["widthHeight","color","strokeWidth","filled"],pe=["widthHeight","color","filled","strokeWidth"],ve=["widthHeight","color","strokeWidth","filled"],be=["widthHeight","color","strokeWidth","filled"],xe=["widthHeight","color","strokeWidth","filled"],fe=["widthHeight","color","filled","strokeWidth"],we=["widthHeight","color","filled","strokeWidth"],Ee=["widthHeight","color","filled","strokeWidth"],ye=["widthHeight","color","filled","strokeWidth"],Ce=["widthHeight","color","filled","strokeWidth"],je=["widthHeight","color","filled","strokeWidth"],ke=["widthHeight","color","filled","strokeWidth"],Ie=["widthHeight","color","filled","strokeWidth"],Oe=["widthHeight","color","filled","strokeWidth"],Se=["widthHeight","color","filled","strokeWidth"],ze=["widthHeight","color","filled","strokeWidth"],He=["widthHeight","color","filled","strokeWidth"],Me=["widthHeight","color","strokeWidth","filled"],Te=["widthHeight","color","strokeWidth","filled"],We=["widthHeight","color","filled","strokeWidth"],Re=["widthHeight","color","filled","strokeWidth"],Ve=["widthHeight","color","filled","strokeWidth"],Le=["widthHeight","color","filled","strokeWidth"],_e=["widthHeight","color","filled","strokeWidth"],Be=["widthHeight","color","filled","strokeWidth"],Pe=["widthHeight","color","filled","strokeWidth"],De=["widthHeight","color","filled","strokeWidth"],Fe=["widthHeight","color","filled","strokeWidth"],Ae=["widthHeight","color","filled","strokeWidth"],Ge=["widthHeight","color","filled","strokeWidth"],Ne=["widthHeight","color","filled","strokeWidth"],Ue=["widthHeight","color","filled","strokeWidth"],Ye=["widthHeight","color","strokeWidth","filled"],Ke=["widthHeight","color","strokeWidth","filled"],qe=["widthHeight","color","strokeWidth","filled"],Xe=["widthHeight","color","strokeWidth","filled"],Ze=["widthHeight","color","strokeWidth","filled"],Je=["widthHeight","color","strokeWidth","filled"],Qe=["widthHeight","color","strokeWidth","filled"],$e=["widthHeight","color","strokeWidth","filled"],et=["widthHeight","color","strokeWidth","filled"],tt=["widthHeight","color","strokeWidth","filled"],ot=e=>{var{widthHeight:t,color:i="black",transform:n,orientation:a="up",children:l}=e,s=c(e,W);return o.createElement(r.Center,Object.assign({widthHeight:t,lineHeight:t,color:i,display:"flex",transform:n||("left"===a?"rotate(-90deg)":"right"===a?"rotate(90deg)":"up"===a?"rotate(0deg)":"down"===a?"rotate(180deg)":"none")},s),l)},rt=(e,t,o)=>{var{getColor:i}=r.useTheme();return{fill:e?i(t):"none",stroke:e?"none":i(t),strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}},it=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,R);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"})))},nt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,V);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"})))},at=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,L);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M12.771 7.115a.829.829 0 0 0-1.2 0L3 15.686l1.2 1.2 7.971-7.971 7.972 7.971 1.2-1.2-8.572-8.571Z"})))},lt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,_);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},rt(i,r,n)),o.createElement("g",null,o.createElement("circle",{cx:"9",cy:"6",r:"2"}),o.createElement("circle",{cx:"9",cy:"12",r:"2"}),o.createElement("circle",{cx:"9",cy:"18",r:"2"}),o.createElement("circle",{cx:"15",cy:"6",r:"2"}),o.createElement("circle",{cx:"15",cy:"12",r:"2"}),o.createElement("circle",{cx:"15",cy:"18",r:"2"}))))},st=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,B);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z",fill:i?r:"none",stroke:i?"none":r,strokeWidth:i?0:n}),o.createElement("polyline",{points:"14 2 14 8 20 8",fill:"none",stroke:r,strokeWidth:n})))},ct=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,P);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},rt(i,r,n)),o.createElement("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",ry:"2",fill:i?r:"none",stroke:i?"none":r,strokeWidth:i?0:n}),o.createElement("polygon",{points:"10 8 16 12 10 16 10 8",fill:i?i?"white":r:"none",stroke:i?"none":r,strokeWidth:i?0:n})))},dt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,D);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},rt(i,r,n)),o.createElement("rect",{x:"2",y:"2",width:"20",height:"20",rx:"2",ry:"2",fill:i?r:"none",stroke:i?"none":r,strokeWidth:i?0:n}),o.createElement("circle",{cx:"8.5",cy:"8.5",r:"1.5",fill:i?i?"white":r:"none",stroke:i?"none":r,strokeWidth:i?0:n}),o.createElement("polyline",{points:"21 15 16 10 5 21",fill:"none",stroke:i?"white":r,strokeWidth:n})))},ut=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,F);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M22.46 6.01c-.83.37-1.72.62-2.65.74a4.6 4.6 0 0 0 2.01-2.54 9.2 9.2 0 0 1-2.91 1.11 4.54 4.54 0 0 0-7.75 4.14A12.86 12.86 0 0 1 3.15 4.47a4.54 4.54 0 0 0 1.4 6.06 4.5 4.5 0 0 1-2.06-.57v.06a4.54 4.54 0 0 0 3.64 4.45 4.61 4.61 0 0 1-2.05.08 4.54 4.54 0 0 0 4.23 3.15 9.12 9.12 0 0 1-5.64 1.94c-.37 0-.74-.02-1.1-.07A12.86 12.86 0 0 0 8.21 21c8.38 0 12.96-6.94 12.96-12.96 0-.2 0-.4-.01-.6a9.28 9.28 0 0 0 2.3-2.37z",fill:i?r:"none",stroke:i?"none":r,strokeWidth:i?0:n})))},ht=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,A);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z",fill:i?r:"none",stroke:r,strokeWidth:n})))},gt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,G);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M2 2v16h5v4l4-4h5l6-6V2H2zm18 10-3 3h-5l-3 3v-3H4V4h16v8z",fill:i?r:"none",stroke:r,strokeWidth:i?0:n}),o.createElement("path",{d:"M14 7h2v5h-2V7zm-4 0h2v5H10V7z",fill:i?r:"none",stroke:r,strokeWidth:i?0:n})))},mt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,N);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},rt(i,r,n)),o.createElement("line",{stroke:r,x1:"18",y1:"6",x2:"6",y2:"18"}),o.createElement("line",{stroke:r,x1:"6",y1:"6",x2:"18",y2:"18"})))},pt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,U);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},rt(i,r,n)),o.createElement("rect",{x:"2",y:"2",width:"20",height:"20",rx:"5",ry:"5"}),o.createElement("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),o.createElement("line",{x1:"17.5",y1:"6.5",x2:"17.51",y2:"6.5"})))},vt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,Y);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M21.8 8.001A2.8 2.8 0 0 0 19 5.2C17.793 5 12 5 12 5s-5.793 0-7 0.2a2.8 2.8 0 0 0-2.8 2.8c-0.2 1.207-0.2 3-0.2 3s0 1.793 0.2 3a2.8 2.8 0 0 0 2.8 2.8c1.207 0.2 7 0.2 7 0.2s5.793 0 7-0.2a2.8 2.8 0 0 0 2.8-2.8c0.2-1.207 0.2-3 0.2-3s0-1.793-0.2-3z",fill:i?r:"none",stroke:i?"none":r,strokeWidth:i?0:n}),o.createElement("polygon",{points:"10 8 10 14 14 10",fill:"white",stroke:"white",strokeWidth:n})))},bt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,K);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M22 2H2v20h10v-7h-2v-3h2V9.5a4 4 0 0 1 4-4h3v3h-3a1 1 0 0 0-1 1V12h4l-1 3h-3v7h6V2z",fill:i?r:"none",stroke:r,strokeWidth:i?0:n})))},xt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,q);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24"},rt(i,r,n)),o.createElement("path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"}),o.createElement("rect",{x:"2",y:"9",width:"4",height:"12"}),o.createElement("circle",{cx:"4",cy:"4",r:"2"})))},ft=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,X);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24"},rt(i,r,n)),o.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElement("path",{d:"M19 7.5c-1.333 -3 -3.667 -4.5 -7 -4.5c-5 0 -8 2.5 -8 9s3.5 9 8 9s7 -3 7\n -5s-1 -5 -7 -5c-2.5 0 -3 1.25 -3 2.5c0 1.5 1 2.5 2.5 2.5c2.5 0 3.5 -1.5\n 3.5 -5s-2 -4 -3 -4s-1.833 .333 -2.5 1"})))},wt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,Z);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},rt(i,r,n)),o.createElement("line",{stroke:r,x1:"8",y1:"12",x2:"16",y2:"12"})))},Et=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,J);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a,{"aria-label":"Information"}),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})))},yt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,Q);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M8 5v14l11-7z"})))},Ct=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,$);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M6 4h4v16H6V4zm8 0h4v16h-4V4z"})))},jt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,ee);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M20.84 4.61c-1.54-1.56-4.04-1.56-5.59 0l-.7.72-.7-.72a3.95 3.95 0 0 0-5.59 0c-1.56 1.56-1.56 4.09 0 5.66l6.29 6.36 6.29-6.36c1.56-1.56 1.56-4.09 0-5.66z"})))},kt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,te);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})))},It=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,oe);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"}),o.createElement("polyline",{points:"17 21 17 13 7 13 7 21"}),o.createElement("polyline",{points:"7 3 7 8 15 8"})))},Ot=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,re);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M10.29 3.86l-6.6 11.4c-.78 1.36.2 3.1 1.71 3.1h13.2c1.51 0 2.49-1.74 1.71-3.1l-6.6-11.4a2 2 0 0 0-3.42 0z"}),o.createElement("line",{stroke:r,x1:"12",y1:"6",x2:"12",y2:"13"}),o.createElement("line",{stroke:r,x1:"12",y1:"15",x2:"12",y2:"15"})))},St=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,ie);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"})))},zt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,ne);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z"})))},Ht=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,ae);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M18 10h-1.26A8 8 0 109 20h9a5 5 0 000-10z"})))},Mt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,le);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),o.createElement("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})))},Tt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,se);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"})))},Wt=Tt,Rt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,ce);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M18.3785 8.44975L8.9636 17.8648C8.6844 18.144 8.3288 18.3343 7.94161 18.4117L4.99988 19.0001L5.58823 16.0583C5.66566 15.6711 5.85597 15.3155 6.13517 15.0363L15.5501 5.62132M18.3785 8.44975L19.7927 7.03553C20.1832 6.64501 20.1832 6.01184 19.7927 5.62132L18.3785 4.20711C17.988 3.81658 17.3548 3.81658 16.9643 4.20711L15.5501 5.62132M18.3785 8.44975L15.5501 5.62132"})))},Vt=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!0}=e,a=c(e,de);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(n,r,i)),o.createElement("circle",{cx:"12",cy:"12",r:"10"}),o.createElement("line",{x1:"15",y1:"9",x2:"9",y2:"15",stroke:n?"white":r}),o.createElement("line",{x1:"9",y1:"9",x2:"15",y2:"15",stroke:n?"white":r})))},Lt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,ue);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"})))},_t=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,he);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(n,r,i)),o.createElement("line",{stroke:r,x1:"3",y1:"12",x2:"21",y2:"12"}),o.createElement("line",{stroke:r,x1:"3",y1:"6",x2:"21",y2:"6"}),o.createElement("line",{stroke:r,x1:"3",y1:"18",x2:"21",y2:"18"})))},Bt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,ge);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("circle",{cx:"18",cy:"5",r:"3"}),o.createElement("circle",{cx:"6",cy:"12",r:"3"}),o.createElement("circle",{cx:"18",cy:"19",r:"3"}),o.createElement("line",{stroke:r,x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),o.createElement("line",{stroke:r,x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"})))},Pt=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,me);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(n,r,i)),o.createElement("polyline",{points:"23 4 23 10 17 10"}),o.createElement("path",{d:"M20.49 15a9 9 0 1 1-2.13-9.36L23 10"})))},Dt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,pe);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1"},o.createElement("path",{d:"M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"})))},Ft=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!0}=e,a=c(e,ve);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(n,r,i)),o.createElement("rect",{x:"-3",y:"17",width:"15",height:"4",rx:"1",transform:"rotate(-40 2 13)"}),o.createElement("path",{d:"M17 3L18 6L21 7L18 8L17 11L16 8L13 7L16 6L17 3Z"}),o.createElement("path",{d:"M21 9L21.7 11L23.5 12L21.7 13L21 15L20.3 13L18.5 12L20.3 11L21 9Z"}),o.createElement("path",{d:"M16 15L16.7 16.5L18 17L16.7 17.5L16 19L15.3 17.5L14 17L15.3 16.5L16 15Z"})))},At=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,be);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(n,r,i)),o.createElement("line",{stroke:r,x1:"4",y1:"21",x2:"4",y2:"14"}),o.createElement("line",{stroke:r,x1:"4",y1:"10",x2:"4",y2:"3"}),o.createElement("line",{stroke:r,x1:"12",y1:"21",x2:"12",y2:"12"}),o.createElement("line",{stroke:r,x1:"12",y1:"8",x2:"12",y2:"3"}),o.createElement("line",{stroke:r,x1:"20",y1:"21",x2:"20",y2:"16"}),o.createElement("line",{stroke:r,x1:"20",y1:"12",x2:"20",y2:"3"}),o.createElement("line",{stroke:r,x1:"1",y1:"14",x2:"7",y2:"14"}),o.createElement("line",{stroke:r,x1:"9",y1:"8",x2:"15",y2:"8"}),o.createElement("line",{stroke:r,x1:"17",y1:"16",x2:"23",y2:"16"})))},Gt=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,xe);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(n,r,i)),o.createElement("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),o.createElement("line",{x1:"9",y1:"3",x2:"9",y2:"21"}),o.createElement("line",{x1:"12",y1:"7",x2:"17",y2:"7"}),o.createElement("line",{x1:"12",y1:"11",x2:"17",y2:"11"}),o.createElement("line",{x1:"12",y1:"15",x2:"17",y2:"15"})))},Nt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,fe);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M3 4h18l-7 10v5l-4 2v-7L3 4z"})))},Ut=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,we);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5z"})))},Yt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,Ee);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"})))},Kt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,ye);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),i?o.createElement("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}):o.createElement(o.Fragment,null,o.createElement("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),o.createElement("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"}),o.createElement("circle",{cx:"12",cy:"16",r:"1.5"}))))},qt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,Ce);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M12 1a4 4 0 0 0-4 4v6a4 4 0 0 0 8 0V5a4 4 0 0 0-4-4z"}),o.createElement("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),o.createElement("line",{stroke:r,x1:"12",y1:"19",x2:"12",y2:"23"}),o.createElement("line",{stroke:r,x1:"8",y1:"23",x2:"16",y2:"23"})))},Xt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,je);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"})))},Zt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,ke);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9"}),o.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"})))},Jt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,Ie);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M12 4C7 4 2.73 7.11 1 12c1.73 4.89 6 8 11 8s9.27-3.11 11-8c-1.73-4.89-6-8-11-8zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"})))},Qt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,Oe);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{fill:i?r:"none",d:"M12 13c-2.67 0-8 1.34-8 4v2c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-2c0-2.66-5.33-4-8-4zm0-9c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z M12 2C9.79 2 8 3.79 8 6s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z M12 13c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"})," "))},$t=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,Se);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M19.4 13c0-.3.1-.6.1-1s0-.7-.1-1l2.1-1.6c.2-.2.2-.4.1-.6l-2-3.5c-.1-.2-.4-.3-.6-.2l-2.5 1c-.5-.4-1.1-.7-1.7-.9l-.4-2.6c0-.2-.3-.4-.5-.4h-4c-.2 0-.5.2-.5.4l-.4 2.6c-.6.2-1.2.5-1.7.9l-2.5-1c-.2-.1-.5 0-.6.2l-2 3.5c-.1.2-.1.4.1.6L4.6 11c0 .3-.1.6-.1 1s0 .7.1 1l-2.1 1.6c-.2.2-.2.4-.1.6l2 3.5c.1.2.4.3.6.2l2.5-1c.5.4 1.1.7 1.7.9l.4 2.6c0 .2.3.4.5.4h4c.2 0 .5-.2.5-.4l.4-2.6c.6-.2 1.2-.5 1.7-.9l2.5 1c.2.1.5 0 .6-.2l2-3.5c.1-.2.1-.4-.1-.6L19.4 13zM12 15.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5z"})))},eo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,ze);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})))},to=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,He);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z"})))},oo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,Me);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(n,r,i)),o.createElement("circle",{cx:"12",cy:"12",r:"10"}),o.createElement("polyline",{points:"12 6 12 12 16 14"})))},ro=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,Te);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(n,r,i)),o.createElement("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h3l2-3h8l2 3h3a2 2 0 0 1 2 2z"}),o.createElement("circle",{cx:"12",cy:"13",r:"4"})))},io=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,We);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M17.71 7.71L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46L13 18.17v-3.76l1.88 1.88z"})))},no=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,Re);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z"})))},ao=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,Ve);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),i?o.createElement("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2z"}):o.createElement(o.Fragment,null,o.createElement("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),o.createElement("path",{d:"M7 11V7a5 5 0 0 1 9.9-1"}),o.createElement("circle",{cx:"12",cy:"16",r:"1.5"}))))},lo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,Le);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13z"})))},so=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,_e);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-1"}),o.createElement("path",{d:"M9 15l3 -3l3 3"}),o.createElement("path",{d:"M12 12l0 9"})))},co=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,Be);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})))},uo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,Pe);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M19.7071 5.70711C20.0976 5.31658 20.0976 4.68342 19.7071 4.29289C19.3166 3.90237 18.6834 3.90237 18.2929 4.29289L14.032 8.55382C13.4365 8.20193 12.7418 8 12 8C9.79086 8 8 9.79086 8 12C8 12.7418 8.20193 13.4365 8.55382 14.032L4.29289 18.2929C3.90237 18.6834 3.90237 19.3166 4.29289 19.7071C4.68342 20.0976 5.31658 20.0976 5.70711 19.7071L9.96803 15.4462C10.5635 15.7981 11.2582 16 12 16C14.2091 16 16 14.2091 16 12C16 11.2582 15.7981 10.5635 15.4462 9.96803L19.7071 5.70711ZM12.518 10.0677C12.3528 10.0236 12.1792 10 12 10C10.8954 10 10 10.8954 10 12C10 12.1792 10.0236 12.3528 10.0677 12.518L12.518 10.0677ZM11.482 13.9323L13.9323 11.482C13.9764 11.6472 14 11.8208 14 12C14 13.1046 13.1046 14 12 14C11.8208 14 11.6472 13.9764 11.482 13.9323ZM15.7651 4.8207C14.6287 4.32049 13.3675 4 12 4C9.14754 4 6.75717 5.39462 4.99812 6.90595C3.23268 8.42276 2.00757 10.1376 1.46387 10.9698C1.05306 11.5985 1.05306 12.4015 1.46387 13.0302C1.92276 13.7326 2.86706 15.0637 4.21194 16.3739L5.62626 14.9596C4.4555 13.8229 3.61144 12.6531 3.18002 12C3.6904 11.2274 4.77832 9.73158 6.30147 8.42294C7.87402 7.07185 9.81574 6 12 6C12.7719 6 13.5135 6.13385 14.2193 6.36658L15.7651 4.8207ZM12 18C11.2282 18 10.4866 17.8661 9.78083 17.6334L8.23496 19.1793C9.37136 19.6795 10.6326 20 12 20C14.8525 20 17.2429 18.6054 19.002 17.0941C20.7674 15.5772 21.9925 13.8624 22.5362 13.0302C22.947 12.4015 22.947 11.5985 22.5362 10.9698C22.0773 10.2674 21.133 8.93627 19.7881 7.62611L18.3738 9.04043C19.5446 10.1771 20.3887 11.3469 20.8201 12C20.3097 12.7726 19.2218 14.2684 17.6986 15.5771C16.1261 16.9282 14.1843 18 12 18Z",fill:"currentColor"})))},ho=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,De);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(!0,r,n)),o.createElement("path",{d:"M14 3h7v7h-2V5.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3ZM5 5h5v2H6v11h11v-4h2v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Z"})))},go=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,Fe);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("line",{stroke:r,x1:"12",y1:"5",x2:"12",y2:"19"}),o.createElement("line",{stroke:r,x1:"5",y1:"12",x2:"19",y2:"12"})))},mo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,Ae);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M5 13l4 4L19 7",strokeLinecap:"round",strokeLinejoin:"round"})))},po=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,Ge);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("path",{d:"M12 4l7 7h-4v7h-6v-7H5l7-7z"})))},vo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,Ne);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("line",{stroke:r,x1:"12",y1:"20",x2:"12",y2:"8"}),o.createElement("polyline",{points:"6 12 12 6 18 12"})))},bo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,Ue);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(i,r,n)),o.createElement("circle",{cx:"12",cy:"12",r:"10",strokeOpacity:"0.25"}),o.createElement("path",{d:"M12 2a10 10 0 0 1 10 10",strokeOpacity:"1"})))},xo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,Ye);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(n,r,i)),o.createElement("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),o.createElement("line",{stroke:r,x1:"16",y1:"2",x2:"16",y2:"6"}),o.createElement("line",{stroke:r,x1:"8",y1:"2",x2:"8",y2:"6"}),o.createElement("line",{stroke:r,x1:"3",y1:"10",x2:"21",y2:"10"})))},fo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,Ke);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(n,r,i)),o.createElement("line",{x1:"3",y1:"4",x2:"10",y2:"4"}),o.createElement("line",{x1:"14",y1:"4",x2:"21",y2:"4"}),o.createElement("line",{x1:"3",y1:"12",x2:"12",y2:"12"}),o.createElement("line",{x1:"16",y1:"12",x2:"21",y2:"12"}),o.createElement("line",{x1:"3",y1:"20",x2:"8",y2:"20"}),o.createElement("line",{x1:"12",y1:"20",x2:"21",y2:"20"}),o.createElement("line",{x1:"10",y1:"1",x2:"10",y2:"7"}),o.createElement("line",{x1:"16",y1:"9",x2:"16",y2:"15"}),o.createElement("line",{x1:"8",y1:"17",x2:"8",y2:"23"})))},wo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,qe);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(n,r,i)),o.createElement("path",{d:"M6 2v14a2 2 0 0 0 2 2h14"}),o.createElement("path",{d:"M18 22V8a2 2 0 0 0-2-2H2"})))},Eo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,Xe);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(n,r,i)),o.createElement("circle",{cx:"11",cy:"11",r:"8"}),o.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),o.createElement("line",{x1:"11",y1:"8",x2:"11",y2:"14"}),o.createElement("line",{x1:"8",y1:"11",x2:"14",y2:"11"})))},yo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,Ze);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(n,r,i)),o.createElement("circle",{cx:"11",cy:"11",r:"8"}),o.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),o.createElement("line",{x1:"8",y1:"11",x2:"14",y2:"11"})))},Co=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,Je);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(n,r,i)),o.createElement("line",{x1:"4",y1:"6",x2:"20",y2:"6"}),o.createElement("line",{x1:"12",y1:"6",x2:"12",y2:"18"}),o.createElement("line",{x1:"8",y1:"18",x2:"16",y2:"18"})))},jo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,Qe);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(n,r,i)),o.createElement("rect",{x:"4",y:"8",width:"8",height:"8"}),o.createElement("circle",{cx:"16",cy:"16",r:"4"}),o.createElement("polygon",{points:"16,4 19,8 13,8"})))},ko=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,$e);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(n,r,i)),o.createElement("polyline",{points:"1 4 1 10 7 10"}),o.createElement("path",{d:"M3.51 15a9 9 0 1 0 2.13-9.36L1 10"})))},Io=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,et);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(n,r,i)),o.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"}),o.createElement("polyline",{points:"14 2 14 8 20 8"}),o.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),o.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),o.createElement("polyline",{points:"10 9 9 9 8 9"})))},Oo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,tt);return o.createElement(ot,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},rt(n,r,i)),o.createElement("polyline",{points:"14 2 14 8 20 8"}),o.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),o.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"}),o.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"}),o.createElement("polyline",{points:"10 9 9 9 8 9"}),o.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),o.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),o.createElement("polyline",{points:"14 2 14 8 20 8"}),o.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"}),o.createElement("polyline",{points:"10 9 9 9 8 9"}),o.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"})))},So={__proto__:null,UserIcon:it,HelpIcon:nt,ChevronIcon:at,DragHandleIcon:lt,FileIcon:st,VideoIcon:ct,ImageIcon:dt,TwitterIcon:ut,XIcon:ht,TwitchIcon:gt,CloseIcon:mt,InstagramIcon:pt,YoutubeIcon:vt,FacebookIcon:bt,LinkedinIcon:xt,ThreadsIcon:ft,MinusIcon:wt,InfoIcon:Et,PlayIcon:yt,PauseIcon:Ct,HeartIcon:jt,StarIcon:kt,SaveIcon:It,WarningIcon:Ot,BatteryIcon:St,BookmarkIcon:zt,CloudIcon:Ht,CopyIcon:Mt,DustBinIcon:Tt,DeleteIcon:Wt,EditIcon:Rt,ErrorIcon:Vt,DownloadIcon:Lt,MenuIcon:_t,ShareIcon:Bt,RefreshIcon:Pt,PrintIcon:Dt,MagicWandIcon:Ft,SliderVerticalIcon:At,PanelIcon:Gt,FilterIcon:Nt,HomeIcon:Ut,LocationIcon:Yt,LockIcon:Kt,MicrophoneIcon:qt,MoonIcon:Xt,NotificationIcon:Zt,OpenEyeIcon:Jt,ProfileIcon:Qt,SettingsIcon:$t,SuccessIcon:eo,UnLikeIcon:to,ClockIcon:oo,CameraIcon:ro,BluetoothIcon:io,LikeIcon:no,UnlockIcon:ao,WifiIcon:lo,UploadIcon:so,SearchIcon:co,CloseEyeIcon:uo,ExternalLinkIcon:ho,PlusIcon:go,TickIcon:mo,BoldArrowIcon:po,ArrowIcon:vo,SpinnerIcon:bo,CalendarIcon:xo,SliderIcon:fo,CropIcon:wo,ZoomInIcon:Eo,ZoomOutIcon:yo,TextIcon:Co,ShapeIcon:jo,RotateIcon:ko,DocumentIcon:Io,ChartIcon:Oo},zo=["icon","title","views","description","variant","themeMode"],Ho=e=>{var{icon:t,title:i,views:n,description:a,variant:l="default"}=e,s=c(e,zo),d=(r.useTheme(),{default:{container:{backgroundColor:"color.gray.50",borderColor:"color.gray.200",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.05)"},content:{color:"color.gray.700"},icon:{color:"color.gray.500"}},info:{container:{backgroundColor:"color.blue.50",borderColor:"color.blue.200",boxShadow:"0 1px 2px rgba(59, 130, 246, 0.05)"},content:{color:"color.blue.700"},icon:{color:"color.blue.500"}},success:{container:{backgroundColor:"color.green.50",borderColor:"color.green.200",boxShadow:"0 1px 2px rgba(34, 197, 94, 0.05)"},content:{color:"color.green.700"},icon:{color:"color.green.500"}},error:{container:{backgroundColor:"color.red.50",borderColor:"color.red.200",boxShadow:"0 1px 2px rgba(239, 68, 68, 0.05)"},content:{color:"color.red.700"},icon:{color:"color.red.500"}},warning:{container:{backgroundColor:"color.orange.50",borderColor:"color.orange.200",boxShadow:"0 1px 2px rgba(249, 115, 22, 0.05)"},content:{color:"color.orange.700"},icon:{color:"color.orange.500"}}});return o.createElement(r.Horizontal,Object.assign({gap:12,padding:"16px",flexWrap:"nowrap",alignItems:"flex-start",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:d[l].container.borderColor,backgroundColor:d[l].container.backgroundColor,boxShadow:d[l].container.boxShadow,transition:"all 0.2s ease"},null==n?void 0:n.container,s),o.createElement(r.View,Object.assign({alignSelf:"flex-start",marginTop:"2px"},null==n?void 0:n.icon),(()=>{var e,r;if(t)return t;var i={size:20,color:null!=(e=null==n||null==(r=n.icon)?void 0:r.color)?e:d[l].icon.color};switch(l){case"info":return o.createElement(Et,Object.assign({},i));case"success":return o.createElement(eo,Object.assign({},i));case"error":return o.createElement(Vt,Object.assign({},i));case"warning":default:return o.createElement(Ot,Object.assign({},i))}})()),o.createElement(r.Vertical,{gap:8}," ",o.createElement(T,Object.assign({fontSize:"16px",fontWeight:"600",lineHeight:"24px",color:d[l].content.color},null==n?void 0:n.title),i),o.createElement(T,Object.assign({fontSize:"14px",fontWeight:"400",lineHeight:"20px",color:d[l].content.color},null==n?void 0:n.description),a)))},Mo=["ratio","children","views"],To=e=>{var{ratio:t=16/9,children:i,views:n}=e,a=c(e,Mo);return o.createElement(r.Center,Object.assign({width:"100%",position:"relative",overflow:"hidden",paddingTop:1/t*100+"%",borderRadius:8},a,null==n?void 0:n.center),o.createElement(r.View,Object.assign({position:"absolute",top:0,right:0,bottom:0,left:0},null==n?void 0:n.view),i))},Wo=["ratio","children"],Ro={xs:24,sm:32,md:48,lg:64,xl:80},Vo={borderRadius:"50%",overflow:"hidden",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",backgroundColor:"color.gray.100",boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.1)",transition:"all 0.2s ease"},Lo={fontWeight:"500",color:"color.gray.600"},_o={objectFit:"cover",transition:"all 0.2s ease"},Bo=e=>{var{src:t,size:i="md",fallback:n="IM",views:a,imageError:l,setImageError:s,onClick:c=(()=>{})}=e,d=Ro[i],u=Object.assign({},_o,(null==a?void 0:a.image)||{});return o.createElement(r.Center,Object.assign({role:"avatar",width:d,height:d},Vo,{borderColor:l?"color.gray.400":"transparent",onClick:c},null==a?void 0:a.container),l?o.createElement(T,Object.assign({size:i},Lo,null==a?void 0:a.fallback),n):o.createElement(r.Image,{alt:"IM",src:t,style:u,width:d,height:d,onError:()=>s(!0)}))},Po={xs:{minWidth:"20px",height:"20px",padding:"0 6px",fontSize:"10px",fontWeight:"500",lineHeight:"20px"},sm:{minWidth:"24px",height:"24px",padding:"0 8px",fontSize:"12px",fontWeight:"500",lineHeight:"24px"},md:{minWidth:"28px",height:"28px",padding:"0 10px",fontSize:"14px",fontWeight:"500",lineHeight:"28px"},lg:{minWidth:"32px",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:"500",lineHeight:"32px"},xl:{minWidth:"36px",height:"36px",padding:"0 14px",fontSize:"16px",fontWeight:"500",lineHeight:"36px"}},Do={sharp:0,rounded:"8px",pillShaped:"9999px"},Fo={"top-right":{top:"4px",right:"4px",position:"absolute"},"top-left":{top:"4px",left:"4px",position:"absolute"},"bottom-right":{bottom:"4px",right:"4px",position:"absolute"},"bottom-left":{bottom:"4px",left:"4px",position:"absolute"}},Ao=["content","position","shape","variant","size","views","themeMode"],Go=e=>{var{content:t,position:i,shape:n="pillShaped",variant:a="filled",size:l="md",views:s}=e,d=c(e,Ao),u=(r.useTheme(),Object.assign({width:"fit-content",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"color.black",borderRadius:Do[n]},Po[l],{filled:{backgroundColor:"theme.primary",color:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",transition:"all 0.2s ease"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"theme.primary",color:"theme.primary",transition:"all 0.2s ease"},link:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",color:"theme.primary",textDecoration:"underline",textUnderlineOffset:"2px",transition:"all 0.2s ease"},ghost:{backgroundColor:"transparent",color:"color.gray.500",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",transition:"all 0.2s ease"}}[a],i?Fo[i]:{},null==s?void 0:s.container));return o.createElement(r.Center,Object.assign({role:"badge"},u,d),o.createElement(T,Object.assign({role:"badgeText",fontWeight:"500",textAlign:"center"},null==s?void 0:s.text,{color:u.color}),t||""))},No={xs:12,sm:14,md:16,lg:18,xl:20},Uo=["children","to","iconSize","underline","isHovered","isExternal","views","setIsHovered"],Yo=e=>{var{children:t,to:n="/",iconSize:a="sm",underline:l="default",isHovered:s=!1,isExternal:d=!1,views:u={icon:{},text:{}},setIsHovered:h=(()=>{})}=e,g=c(e,Uo),m=()=>{"hover"===l&&h(!0)};return o.createElement(i.Link,{to:n,target:d?"_blank":"_self",style:{textDecoration:"inherit",color:"inherit"}},o.createElement(r.Horizontal,Object.assign({onMouseEnter:m,onMouseLeave:m,gap:3,alignItems:"center",flexWrap:"nowrap",textDecoration:"none"},u.text,g),t,d&&o.createElement(ho,{widthHeight:No[a]})))},Ko=e=>{var r=(()=>{var[e,o]=t.useState(!1);return{isHovered:e,setIsHovered:o}})();return o.createElement(Yo,Object.assign({},r,e))},qo={xs:14,sm:18,md:22,lg:26,xl:30},Xo={fast:50,normal:100,slow:300},Zo=["size","speed","color","themeMode"],Jo=["size","speed","color","themeMode"],Qo=["size","speed","color","themeMode"],$o=["size","children","textColor","loaderColor","type","speed","textPosition","views"],er=e=>{var{size:i="md",speed:n="normal",color:a="theme.loading",themeMode:l}=e,s=c(e,Zo),{getColor:d,themeMode:u}=r.useTheme(),h=d(a,{themeMode:l||u}),g="number"==typeof i?i:qo[i],[m,p]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{p(e=>e+45)},Xo[n]);return()=>clearInterval(e)},[n]),o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:g+"px",height:g+"px",viewBox:"0 0 24 24",fill:"none",stroke:h,strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:"rotate("+m+"deg)"}},s),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("path",{d:"M21 12a9 9 0 11-6.219-8.56"})))},tr=e=>{var{size:i="md",speed:n="normal",color:a="theme.loading",themeMode:l}=e,s=c(e,Jo),{getColor:d,themeMode:u}=r.useTheme(),h=d(a,{themeMode:l||u}),g="number"==typeof i?i:qo[i],[m,p]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{p(e=>e+45)},Xo[n]);return()=>clearInterval(e)},[n]),o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:g+"px",height:g+"px",style:{transform:"rotate("+m+"deg)"}},s),o.createElement("circle",{cx:"10",cy:"25",r:"4",fill:h}),o.createElement("circle",{cx:"25",cy:"25",r:"4",fill:h}),o.createElement("circle",{cx:"40",cy:"25",r:"4",fill:h}))},or=e=>{var{size:i="md",speed:n="normal",color:a="theme.loading",themeMode:l}=e,s=c(e,Qo),{getColor:d,themeMode:u}=r.useTheme(),h=d(a,{themeMode:l||u}),g="number"==typeof i?i:qo[i],[m,p]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{p(e=>e+45)},Xo[n]);return()=>clearInterval(e)},[n]),o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:g+"px",height:g+"px",style:{transform:"rotate("+m+"deg)"}},s),o.createElement("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:h,strokeWidth:"5",strokeDasharray:"1,10"}))},rr=e=>{var{size:t,children:i,textColor:n,loaderColor:a,type:l="default",speed:s="normal",textPosition:d="right",views:u}=e,h=c(e,$o),g={size:t,speed:s,color:a},m={default:o.createElement(er,Object.assign({},g)),dotted:o.createElement(tr,Object.assign({},g)),quarter:o.createElement(or,Object.assign({},g))};return o.createElement(r.Center,Object.assign({gap:10,flexDirection:"top"===d||"bottom"===d?"column":"row"},h,null==u?void 0:u.container),("left"===d||"top"===d)&&i&&o.createElement(r.View,Object.assign({color:n},null==u?void 0:u.text),i),m[l],("right"===d||"bottom"===d)&&i&&o.createElement(r.View,Object.assign({color:n},null==u?void 0:u.text),i))},ir=e=>o.createElement(rr,Object.assign({},e)),nr={xs:{minHeight:16,paddingTop:2,paddingBottom:2,paddingLeft:4,paddingRight:4,fontSize:12,fontWeight:"500",lineHeight:20,letterSpacing:"-0.01em"},sm:{minHeight:24,paddingTop:6,paddingBottom:6,paddingLeft:12,paddingRight:12,fontSize:12,fontWeight:"500",lineHeight:12,letterSpacing:"-0.01em"},md:{minHeight:32,paddingTop:8,paddingBottom:8,paddingLeft:16,paddingRight:16,fontSize:16,fontWeight:"500",lineHeight:16,letterSpacing:"-0.01em"},lg:{minHeight:40,paddingTop:10,paddingBottom:10,paddingLeft:20,paddingRight:20,fontSize:16,fontWeight:"500",lineHeight:20,letterSpacing:"-0.01em"},xl:{minHeight:48,paddingTop:12,paddingBottom:12,paddingLeft:24,paddingRight:24,fontSize:18,fontWeight:"500",lineHeight:24,letterSpacing:"-0.01em"}},ar={sharp:0,rounded:8,pillShaped:999},lr={xs:{width:16,height:16,padding:6},sm:{width:20,height:20,padding:6},md:{width:24,height:24,padding:8},lg:{width:24,height:24,padding:12},xl:{width:28,height:28,padding:14}},sr=["variant","size","shape","iconPosition","loaderPosition","backgroundColor","color","isAuto","isFilled","isDisabled","isLoading","isIconRounded","icon","children","to","isExternal","shadow","onClick","views","themeMode"],cr=e=>{var i,{variant:a="filled",size:l="md",shape:s="rounded",iconPosition:d="left",loaderPosition:u="left",backgroundColor:h,color:g,isDisabled:m,isLoading:p,isIconRounded:v,icon:b,children:x,to:f,isExternal:w,shadow:E,onClick:y,views:C={},themeMode:j}=e,k=c(e,sr),{getColor:I,themeMode:O}=r.useTheme(),S=null!=(i=null!=h?h:g)?i:"theme.primary",z=I(m?"theme.disabled":S,{themeMode:null!=j?j:O}),H=n(z),M=t.useMemo(()=>((e,t)=>({filled:{backgroundColor:e,color:t?"color.black":"color.white",borderWidth:1,borderStyle:"solid",borderColor:"transparent",_hover:{transform:"translateY(-1px)",textDecoration:"underline",textUnderlineOffset:"1px",textDecorationThickness:"1px"},_active:{transform:"translateY(-1px)",textDecoration:"underline",textUnderlineOffset:"1px",textDecorationThickness:"1px"},transition:"all 0.2s ease"},outline:{backgroundColor:"transparent",color:e,borderWidth:1,borderStyle:"solid",borderColor:e,_hover:{backgroundColor:e,color:t?"light.black":"light.white",transform:"translateY(-1px)",textDecoration:"underline",textUnderlineOffset:"1px",textDecorationThickness:"1px"},_active:{backgroundColor:e,color:t?"light.black":"light.white",transform:"translateY(0)",textDecoration:"underline",textUnderlineOffset:"1px",textDecorationThickness:"1px"},transition:"all 0.2s ease"},ghost:{backgroundColor:"transparent",color:e,borderWidth:0,borderStyle:"none",borderColor:"transparent",_hover:{backgroundColor:e,color:t?"light.black":"light.white",transform:"translateY(-1px)",textDecoration:"underline",textUnderlineOffset:"1px",textDecorationThickness:"1px"},_active:{backgroundColor:e,color:t?"light.black":"light.white",transform:"translateY(0)",textDecoration:"underline",textUnderlineOffset:"1px",textDecorationThickness:"1px"},transition:"all 0.2s ease"},link:{backgroundColor:"transparent",color:t?e:"light.black",borderWidth:0,borderStyle:"none",borderColor:"transparent",textDecoration:"underline",textUnderlineOffset:"1px",textDecorationThickness:"1px",_hover:{textDecorationThickness:"2px"},_active:{textDecorationThickness:"2px"},transition:"all 0.2s ease"}}))(z,"light"==H),[z,H])[a],T=["left","right"].includes(d)?r.Horizontal:r.Vertical,W=nr[l],R=v?lr[l]:{},V=o.createElement(T,Object.assign({gap:8,alignItems:"center",justifyContent:"center",color:"inherit",_hover:{color:"inherit"}},W,null==C?void 0:C.content),p&&"left"===u&&o.createElement(ir,Object.assign({size:"xs"===l||"sm"===l?"sm":"md",color:"inherit",_hover:{color:"inherit"}},null==C?void 0:C.loader)),b&&["left","top"].includes(d)&&!p&&o.createElement(r.View,Object.assign({color:"inherit",_hover:{color:"inherit"}},null==C?void 0:C.icon),b),x,b&&["right","bottom"].includes(d)&&!p&&o.createElement(r.View,Object.assign({color:"inherit",_hover:{color:"inherit"}},null==C?void 0:C.icon),b),p&&"right"===u&&o.createElement(ir,Object.assign({size:"xs"===l||"sm"===l?"sm":"md",color:"inherit",_hover:{color:"inherit"}},null==C?void 0:C.loader)));return o.createElement(r.Element,Object.assign({as:"link"===a&&f?"div":"button",type:"link"===a&&f?void 0:"button",disabled:Boolean(m||p)},W,R,{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:ar[s],boxShadow:E,transition:"all 0.2s ease",cursor:m?"default":"pointer",onClick:y},M,null==C?void 0:C.container,k),f?o.createElement(Ko,Object.assign({to:f,isExternal:w,color:"inherit",textDecoration:"inherit",textDecorationColor:"inherit"},null==C?void 0:C.link),V):V)},dr=e=>{var{isHovered:t,setIsHovered:r}=(()=>{var[e,t]=o.useState(!1);return{isHovered:e,setIsHovered:t}})(),i=()=>r(!t);return o.createElement(cr,Object.assign({isHovered:t,setIsHovered:r,onMouseEnter:i,onMouseLeave:i},e))},ur={sharp:0,rounded:"8px",pillShaped:"16px"},hr=t.createContext({}),gr=()=>t.useContext(hr),mr=["children","views","style","themeMode"],pr=["children","views","style","themeMode"],vr=["children","views","style","themeMode"],br=["variant","size","shape","children","header","footer","isFullWidth","views","style","themeMode"],xr=e=>{var t,{children:i,style:n}=e,a=c(e,mr),{styles:l}=(r.useTheme(),gr()),s={padding:"16px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200",color:"color.black"},d=Object.assign({},s,null==l?void 0:l.header,a,{style:Object.assign({},null==s?void 0:s.style,null==l||null==(t=l.header)?void 0:t.style,n)});return o.createElement(r.View,Object.assign({},d),i)},fr=e=>{var t,{children:i,style:n}=e,a=c(e,pr),{styles:l}=(r.useTheme(),gr()),s={padding:"16px",color:"color.black"},d=Object.assign({},s,null==l?void 0:l.content,a,{style:Object.assign({},null==s?void 0:s.style,null==l||null==(t=l.content)?void 0:t.style,n)});return o.createElement(r.View,Object.assign({},d),i)},wr=e=>{var t,{children:i,style:n}=e,a=c(e,vr),{styles:l}=(r.useTheme(),gr()),s={padding:"16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200"},d=Object.assign({},s,null==l?void 0:l.footer,a,{style:Object.assign({},null==s?void 0:s.style,null==l||null==(t=l.footer)?void 0:t.style,n)});return o.createElement(r.View,Object.assign({},d),i)},Er=e=>{var i,{variant:n="default",size:a="md",shape:l="rounded",children:s,header:d,footer:u,isFullWidth:h=!1,views:g,style:m}=e,p=c(e,br),v=(r.useTheme(),{container:{backgroundColor:"color.white",color:"color.black",borderRadius:"8px",overflow:"hidden",transition:"all 0.2s ease"},header:{padding:"16px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200",color:"color.black"},content:{padding:"16px",color:"color.black"},footer:{padding:"16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200"}}),b=t.useMemo(()=>({styles:{container:Object.assign({},v.container,null==g?void 0:g.container),header:Object.assign({},v.header,null==g?void 0:g.header),content:Object.assign({},v.content,null==g?void 0:g.content),footer:Object.assign({},v.footer,null==g?void 0:g.footer)}}),[v,g]),x=o.Children.toArray(s).some(e=>o.isValidElement(e)&&(e.type===xr||e.type===fr||e.type===wr)),f=Object.assign({width:h?"100%":"auto",borderRadius:ur[l],overflow:"hidden"},{default:{backgroundColor:"color.white",border:"none",transition:"all 0.2s ease"},outlined:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",transition:"all 0.2s ease",_hover:{borderColor:"color.gray.300"}},elevated:{backgroundColor:"color.white",boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.08)",border:"none",transition:"all 0.2s ease",_hover:{boxShadow:"0px 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-2px)"}}}[n],b.styles.container,p,{style:Object.assign({},null==(i=b.styles.container)?void 0:i.style,m)});return o.createElement(hr.Provider,{value:b},o.createElement(r.View,Object.assign({},f),x?s:o.createElement(r.Vertical,null,d&&o.createElement(xr,null,d),o.createElement(fr,null,s),u&&o.createElement(wr,null,u))))},yr=e=>o.createElement(Er,Object.assign({},e));yr.Header=xr,yr.Content=fr,yr.Footer=wr;var Cr={dot:{width:"10px",height:"10px",borderRadius:"50%",backgroundColor:"color.gray.300",margin:"0 4px",cursor:"pointer",transition:"background-color 0.3s ease"},line:{width:"20px",height:"4px",borderRadius:"2px",backgroundColor:"color.gray.300",margin:"0 4px",cursor:"pointer",transition:"background-color 0.3s ease"},number:{minWidth:"24px",height:"24px",borderRadius:"50%",backgroundColor:"color.gray.300",margin:"0 4px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",transition:"background-color 0.3s ease"}},jr={dot:{backgroundColor:"theme.primary"},line:{backgroundColor:"theme.primary"},number:{backgroundColor:"theme.primary",color:"color.white"}},kr={width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"color.white",color:"color.gray.800",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"0 2px 5px rgba(0, 0, 0, 0.1)",zIndex:1,transition:"background-color 0.3s ease",_hover:{backgroundColor:"color.gray.100"}},Ir=()=>({container:{position:"relative",overflow:"hidden"},content:{overflow:"hidden",width:"100%",height:"100%"},innerContainer:{display:"flex",transitionProperty:"transform",transitionDuration:"300ms",transitionTimingFunction:"ease-in-out",height:"100%"},item:{flex:"0 0 100%",minWidth:0,position:"relative",height:"100%"},prevButton:Object.assign({position:"absolute",top:"50%",left:"16px",transform:"translateY(-50%)",zIndex:10},kr),nextButton:Object.assign({position:"absolute",top:"50%",right:"16px",transform:"translateY(-50%)",zIndex:10},kr)}),Or=t.createContext(null),Sr=()=>{var e=t.useContext(Or);if(!e)throw new Error("Carousel compound components must be used within <Carousel>");return e},zr=["children","isActive","views"],Hr=["views","children"],Mr=["views","children"],Tr=["children","views"],Wr=["children","views","style"],Rr=["children","defaultActiveIndex","activeIndex","onChange","showNavigation","navigationPosition","prevButton","nextButton","showIndicators","indicatorPosition","indicatorVariant","autoPlay","autoPlayInterval","pauseOnHover","infinite","direction","transitionDuration","views","stepIndices","themeMode"],Vr=e=>{var{children:t,isActive:i,views:n}=e,a=c(e,zr);return o.createElement(r.View,Object.assign({flexShrink:0,width:"100%",height:"100%",display:i?"block":"none"},n,a),t)},Lr=e=>{var{views:t,children:r}=e,i=c(e,Hr),{goToPrevious:n,canGoPrevious:a,styles:l}=Sr(),s=Ir().prevButton,d=Object.assign({},s,null==l?void 0:l.prevButton,null==t?void 0:t.prevButton);return o.createElement(dr,Object.assign({"aria-label":"Previous slide",onClick:()=>n(),isDisabled:!a},d,i),null!=r?r:o.createElement(at,{orientation:"left",widthHeight:16}))},_r=e=>{var{views:t,children:r}=e,i=c(e,Mr),{goToNext:n,canGoNext:a,styles:l}=Sr(),s=Ir().nextButton,d=Object.assign({},s,null==l?void 0:l.nextButton,null==t?void 0:t.nextButton);return o.createElement(dr,Object.assign({"aria-label":"Next slide",onClick:()=>n(),isDisabled:!a},d,i),null!=r?r:o.createElement(at,{orientation:"right",widthHeight:16}))},Br=e=>{var{children:i,views:n}=e,a=c(e,Tr),{registerSlide:l,unregisterSlide:s,styles:d}=Sr(),u=t.useRef(null);t.useEffect(()=>{var e=l();return u.current=e,()=>{null!==u.current&&s(u.current)}},[l,s]);var h=Ir().item,g=Object.assign({},h,null==d?void 0:d.item,null==n?void 0:n.item);return o.createElement(r.View,Object.assign({role:"group","aria-roledescription":"slide"},g,a),i)},Pr=e=>{var{children:t,views:i,style:n}=e,a=c(e,Wr),{currentIndex:l,styles:s,contentId:d}=Sr(),u=Ir(),h=Object.assign({},u.content,null==s?void 0:s.content,null==i?void 0:i.content),g=Object.assign({},u.innerContainer,null==s?void 0:s.innerContainer,null==i?void 0:i.innerContainer),m="-"+100*l+"%";return o.createElement(r.View,Object.assign({},h,a,{style:Object.assign({},null==h?void 0:h.style,n),id:d,"aria-live":"polite"}),o.createElement(r.View,Object.assign({},g,{style:Object.assign({},null==g?void 0:g.style,{transform:"translateX("+m+")"})}),t))},Dr=e=>{var{children:i,defaultActiveIndex:n=0,activeIndex:a,onChange:l,showNavigation:s=!0,navigationPosition:u="inside",prevButton:h,nextButton:g,showIndicators:m=!0,indicatorPosition:p="bottom",indicatorVariant:v="dot",autoPlay:b=!1,autoPlayInterval:x=3e3,pauseOnHover:f=!0,infinite:w=!0,direction:E="horizontal",transitionDuration:y=300,views:C}=e,j=c(e,Rr),k=t.useMemo(()=>o.Children.toArray(i),[i]),I=(e=>{var{defaultActiveIndex:o=0,activeIndex:r,onChange:i,autoPlay:n=!1,autoPlayInterval:a=3e3,pauseOnHover:l=!0,infinite:s=!0,totalSlides:c,stepIndices:u}=e,h=t.useRef(c||0),[g,m]=t.useState(c||0),p=t.useRef(new Set),v=t.useRef(0),b=t.useMemo(()=>d("carousel-content"),[]),[x,f]=t.useState(void 0!==r?r:o),[w,E]=t.useState(!1),[y,C]=t.useState(!1),[j,k]=t.useState(0),[I,O]=t.useState(0),S=t.useRef(null);t.useEffect(()=>{void 0!==r&&f(r)},[r]);var z=t.useCallback(e=>{var t=e;if(s?e<0?t=g-1:e>=g&&(t=0):t=Math.max(0,Math.min(e,g-1)),u&&u.length>0)if(u.includes(t));else{var o=u.reduce((e,o)=>Math.abs(o-t)<Math.abs(e-t)?o:e);t=o}void 0===r&&f(t),i&&i(t)},[r,s,i,g]),H=t.useCallback(()=>{z(x+1)},[x,z]),M=t.useCallback(()=>{z(x-1)},[x,z]);t.useEffect(()=>(!n||w||y||(S.current=setInterval(()=>{H()},a)),()=>{S.current&&clearInterval(S.current)}),[n,a,w,y,H,l]);var T=t.useCallback(()=>{l&&E(!0)},[l]),W=t.useCallback(()=>{E(!1)},[]),R=t.useCallback(e=>{C(!0),"touches"in e?(k(e.touches[0].clientX),O(e.touches[0].clientY)):(k(e.clientX),O(e.clientY))},[]),V=t.useCallback(e=>{if(y){var t,o;"touches"in e?(t=e.touches[0].clientX,o=e.touches[0].clientY):(t=e.clientX,o=e.clientY);var r=t-j,i=o-I;Math.abs(r)>Math.abs(i)&&Math.abs(r)>50&&(r>0?M():H(),C(!1))}},[y,j,I,H,M]),L=t.useCallback(()=>{C(!1)},[]),_=t.useCallback(()=>{var e=v.current++;p.current.add(e);var t=p.current.size;return h.current=t,m(t),e},[]),B=t.useCallback(e=>{p.current.delete(e);var t=p.current.size;if(h.current=t,m(t),t>0&&x>=t){var o=Math.max(0,t-1);void 0===r&&f(o),i&&i(o)}},[x,r,i]);return{activeIndex:x,totalSlides:g,goToSlide:z,nextSlide:H,prevSlide:M,canGoNext:s||x<g-1,canGoPrevious:s||x>0,handleMouseEnter:T,handleMouseLeave:W,handleDragStart:R,handleDragMove:V,handleDragEnd:L,registerSlide:_,unregisterSlide:B,contentId:b,infinite:s}})({defaultActiveIndex:n,activeIndex:a,onChange:l,autoPlay:b,autoPlayInterval:x,pauseOnHover:f,infinite:w,totalSlides:k.length}),{activeIndex:O,totalSlides:S,goToSlide:z,nextSlide:H,prevSlide:M,handleMouseEnter:T,handleMouseLeave:W,handleDragStart:R,handleDragMove:V,handleDragEnd:L}=I;return t.useMemo(()=>o.Children.toArray(i).some(e=>o.isValidElement(e)&&(e.type===Pr||e.type===Br||e.type===Lr||e.type===_r)),[i])?o.createElement(Or.Provider,{value:{currentIndex:O,totalSlides:S,goToSlide:z,goToNext:H,goToPrevious:M,canGoNext:I.canGoNext,canGoPrevious:I.canGoPrevious,registerSlide:I.registerSlide,unregisterSlide:I.unregisterSlide,styles:Object.assign({},Ir(),C),contentId:I.contentId,infinite:w}},o.createElement(r.View,Object.assign({role:"region","aria-roledescription":"carousel","aria-label":"Carousel",position:"relative",width:"100%",height:"100%",overflow:"hidden"},null==C?void 0:C.container,j),i)):o.createElement(r.View,Object.assign({position:"relative",width:"100%",height:"100%",overflow:"hidden",onMouseEnter:T,onMouseLeave:W,onTouchStart:R,onTouchMove:V,onTouchEnd:L,onMouseDown:R,onMouseMove:V,onMouseUp:L},null==C?void 0:C.container,j),o.createElement(r.View,Object.assign({width:"100%",height:"100%",position:"relative"},null==C?void 0:C.slideWrapper),k.map((e,t)=>o.createElement(Vr,{key:t,isActive:t===O,index:t,views:null==C?void 0:C.slide},e))),(()=>{if(!s)return null;var e=h||o.createElement(r.View,Object.assign({as:"button","aria-label":"Previous slide"},kr,null==C?void 0:C.prevButton),"❮"),t=g||o.createElement(r.View,Object.assign({as:"button","aria-label":"Next slide"},kr,null==C?void 0:C.nextButton),"❯");return o.createElement(o.Fragment,null,o.createElement(r.View,{position:"absolute",top:"50%",transform:"translateY(-50%)",left:"inside"===u?"10px":"-40px",onClick:M,cursor:w||0!==O?"pointer":"not-allowed",opacity:w||0!==O?1:.5},e),o.createElement(r.View,{position:"absolute",top:"50%",transform:"translateY(-50%)",right:"inside"===u?"10px":"-40px",onClick:H,cursor:w||O!==k.length-1?"pointer":"not-allowed",opacity:w||O!==k.length-1?1:.5},t))})(),m?o.createElement(r.Horizontal,Object.assign({position:"absolute",left:"0",right:"0",justifyContent:"center"},"top"===p?{top:"10px"}:{bottom:"10px"},null==C?void 0:C.indicators),k.map((e,t)=>o.createElement(r.View,Object.assign({key:t,onClick:()=>z(t),cursor:"pointer"},Cr[v],t===O?Object.assign({},jr[v]):{},null==C?void 0:C.indicator,t===O?null==C?void 0:C.activeIndicator:{}),"number"===v&&t+1))):null)},Fr=e=>o.createElement(Dr,Object.assign({},e));Fr.Slide=Vr,Fr.Content=Pr,Fr.Item=Br,Fr.Previous=Lr,Fr.Next=_r;var Ar=["color.blue.500","color.green.500","color.purple.500","color.orange.500","color.red.500","color.teal.500","color.pink.500","color.indigo.500","color.yellow.500","color.cyan.500"],Gr={width:"100%",height:"100%",position:"relative",display:"flex",flexDirection:"column"},Nr={fontSize:"18px",fontWeight:"bold",marginBottom:"16px",textAlign:"center"},Ur={display:"flex",flexWrap:"wrap",justifyContent:"center",marginTop:"16px"},Yr={display:"flex",alignItems:"center",marginRight:"16px",marginBottom:"8px"},Kr={width:"12px",height:"12px",borderRadius:"2px",marginRight:"6px"},qr={fontSize:"14px"},Xr={position:"absolute",backgroundColor:"color.white",padding:"8px 12px",borderRadius:"4px",boxShadow:"0 2px 5px rgba(0, 0, 0, 0.1)",fontSize:"14px",pointerEvents:"none",zIndex:10},Zr={stroke:"color.gray.200",strokeWidth:"1px"},Jr={stroke:"color.gray.300",strokeWidth:"1px"},Qr={fontSize:"12px",fill:"color.gray.600"},$r={rx:"2px",ry:"2px",cursor:"pointer",transition:"opacity 0.2s ease",_hover:{opacity:.8}},ei={strokeWidth:"2px",fill:"none"},ti={r:"4px",strokeWidth:"2px",stroke:"white",cursor:"pointer",transition:"r 0.2s ease"},oi={strokeWidth:"1px",stroke:"white",cursor:"pointer",transition:"opacity 0.2s ease",_hover:{opacity:.8}},ri={position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.8)",borderRadius:"4px",zIndex:10,padding:"16px",textAlign:"center"},ii=Object.assign({},ri),ni=Object.assign({},ri,{backgroundColor:"rgba(255, 235, 238, 0.9)",color:"color.red.700"}),ai=Object.assign({},ri,{backgroundColor:"rgba(245, 245, 245, 0.8)",color:"color.gray.600"}),li=e=>{var{data:i,width:n,height:a,animationProgress:l,showGrid:s=!0,onBarClick:c,showTooltip:d,hideTooltip:u,views:h}=e,{getColor:g}=r.useTheme(),m=n-50-20,p=a-20-40,v=t.useMemo(()=>{var e=0;return i.series.forEach(t=>{t.data.forEach(t=>{e=Math.max(e,t)})}),e},[i]),b=i.series.length,x=m/i.labels.length,f=.8*x/b,w=.2*x/(b+1),E=t.useMemo(()=>{for(var e=[],t=0;t<=5;t++)e.push(v/5*t);return e},[v]);return o.createElement("svg",{width:n,height:a},o.createElement("line",Object.assign({x1:50,y1:a-40,x2:n-20,y2:a-40},Jr,null==h?void 0:h.axis)),o.createElement("line",Object.assign({x1:50,y1:20,x2:50,y2:a-40},Jr,null==h?void 0:h.axis)),i.labels.map((e,t)=>o.createElement("text",Object.assign({key:"x-label-"+t,x:50+(t+.5)*x,y:a-40+20,textAnchor:"middle"},Qr,null==h?void 0:h.axisLabel),e)),E.map((e,t)=>{var r=a-40-e/v*p;return o.createElement(o.Fragment,{key:"y-tick-"+t},o.createElement("text",Object.assign({x:40,y:r,textAnchor:"end",dominantBaseline:"middle"},Qr,null==h?void 0:h.axisLabel),e.toFixed(0)),s&&o.createElement("line",Object.assign({x1:50,y1:r,x2:n-20,y2:r},Zr,null==h?void 0:h.grid)))}),i.series.map((e,t)=>o.createElement(o.Fragment,{key:"series-"+t},e.data.map((r,i)=>{var n=r/v*p*l;return o.createElement("rect",Object.assign({key:"bar-"+t+"-"+i,x:50+i*x+w*(t+1)+f*t,y:a-40-n,width:f,height:n,fill:e.color?g(e.color):"black",onMouseEnter:t=>{d(t.clientX,t.clientY,e.name+": "+r)},onMouseLeave:u,onClick:()=>{c&&c(e.name,i)}},$r,null==h?void 0:h.bar))}))))},si=e=>{var{data:i,width:n,height:a,animationProgress:l,showGrid:s=!0,onPointClick:c,showTooltip:d,hideTooltip:u,views:h}=e,{getColor:g}=r.useTheme(),m=n-50-20,p=a-20-40,v=t.useMemo(()=>{var e=0;return i.series.forEach(t=>{t.data.forEach(t=>{e=Math.max(e,t)})}),e},[i]),b=t.useMemo(()=>{for(var e=[],t=0;t<=5;t++)e.push(v/5*t);return e},[v]),x=e=>"M "+e.map((e,t)=>50+t/(i.labels.length-1)*m+","+(a-40-e/v*p*l)).join(" L "),f=e=>{var t=50+m,o=a-40;return"M 50,"+o+" L "+e.map((e,t)=>50+t/(i.labels.length-1)*m+","+(a-40-e/v*p*l)).join(" L ")+" L "+t+","+o+" Z"};return o.createElement("svg",{width:n,height:a},o.createElement("line",Object.assign({x1:50,y1:a-40,x2:n-20,y2:a-40},Jr,null==h?void 0:h.axis)),o.createElement("line",Object.assign({x1:50,y1:20,x2:50,y2:a-40},Jr,null==h?void 0:h.axis)),i.labels.map((e,t)=>o.createElement("text",Object.assign({key:"x-label-"+t,x:50+t/(i.labels.length-1)*m,y:a-40+20,textAnchor:"middle"},Qr,null==h?void 0:h.axisLabel),e)),b.map((e,t)=>{var r=a-40-e/v*p;return o.createElement(o.Fragment,{key:"y-tick-"+t},o.createElement("text",Object.assign({x:40,y:r,textAnchor:"end",dominantBaseline:"middle"},Qr,null==h?void 0:h.axisLabel),e.toFixed(0)),s&&o.createElement("line",Object.assign({x1:50,y1:r,x2:n-20,y2:r},Zr,null==h?void 0:h.grid)))}),i.series.map((e,t)=>o.createElement(o.Fragment,{key:"series-"+t},o.createElement("path",Object.assign({d:f(e.data),fill:e.color?g(e.color):"black",opacity:.1},null==h?void 0:h.area)),o.createElement("path",Object.assign({d:x(e.data),stroke:e.color?g(e.color):"black"},ei,null==h?void 0:h.line)),e.data.map((r,n)=>o.createElement("circle",Object.assign({key:"point-"+t+"-"+n,cx:50+n/(i.labels.length-1)*m,cy:a-40-r/v*p*l,fill:e.color,onMouseEnter:t=>{d(t.clientX,t.clientY,e.name+": "+r)},onMouseLeave:u,onClick:()=>{c&&c(e.name,n)}},ti,null==h?void 0:h.point))))))},ci=e=>{var{dataPoints:i,width:n,height:a,animationProgress:l,isDonut:s=!1,onSliceClick:c,showTooltip:d,hideTooltip:u,views:h}=e,{getColor:g}=r.useTheme(),m=Math.min(n,a)/2*.8,p=n/2,v=a/2,b=s?.6*m:0,x=t.useMemo(()=>i.reduce((e,t)=>e+t.value,0),[i]),f=t.useMemo(()=>{for(var e=[],t=-Math.PI/2,o=0;o<i.length;o++){var r,n=i[o].value/x,a=2*n*Math.PI*l,c=t+a,d=p+Math.cos(t)*m,u=v+Math.sin(t)*m,h=p+Math.cos(c)*m,f=v+Math.sin(c)*m,w=p+Math.cos(t)*b,E=v+Math.sin(t)*b,y=p+Math.cos(c)*b,C=v+Math.sin(c)*b,j=a>Math.PI?1:0;r=s?["M "+d+" "+u,"A "+m+" "+m+" 0 "+j+" 1 "+h+" "+f,"L "+y+" "+C,"A "+b+" "+b+" 0 "+j+" 0 "+w+" "+E,"Z"].join(" "):["M "+p+" "+v,"L "+d+" "+u,"A "+m+" "+m+" 0 "+j+" 1 "+h+" "+f,"Z"].join(" ");var k=t+a/2,I=.7*m,O=p+Math.cos(k)*I,S=v+Math.sin(k)*I,z=(100*n).toFixed(1)+"%",H=g(i[o].color||Ar[o%Ar.length]);e.push({path:r,color:H,label:i[o].label,value:i[o].value,percentage:z,labelX:O,labelY:S,startAngle:t,endAngle:c,index:o}),t=c}return e},[i,x,m,p,v,b,l,s]);return o.createElement("svg",{width:n,height:a},f.map((e,t)=>o.createElement("g",{key:"slice-"+t},o.createElement("path",Object.assign({d:e.path,fill:e.color,onMouseEnter:t=>{d(t.clientX,t.clientY,e.label+": "+e.value+" ("+e.percentage+")")},onMouseLeave:u,onClick:()=>{c&&c(i[e.index],e.index)}},oi,null==h?void 0:h.pie)),e.endAngle-e.startAngle>.2&&o.createElement("text",{x:e.labelX,y:e.labelY,textAnchor:"middle",dominantBaseline:"middle",fill:"white",fontSize:"12px",fontWeight:"bold",pointerEvents:"none"},e.percentage))),s&&o.createElement("circle",{cx:p,cy:v,r:b,fill:"white"}))},di=["type","data","dataPoints","title","showLegend","legendPosition","showGrid","showTooltips","animated","animationDuration","responsive","aspectRatio","width","height","views","onDataPointClick","onSeriesClick","isLoading","error","noData","loadingIndicator","errorIndicator","noDataIndicator","aria-label","themeMode"],ui=e=>{var{type:i,data:n,dataPoints:a,title:l,showLegend:s=!0,legendPosition:d="bottom",showGrid:u=!0,showTooltips:h=!0,animated:g=!0,animationDuration:m=500,responsive:p=!0,aspectRatio:v=16/9,width:b=200,height:x=200,views:f,onDataPointClick:w,onSeriesClick:E,isLoading:y=!1,error:C,noData:j,loadingIndicator:k,errorIndicator:I,noDataIndicator:O,"aria-label":S}=e,z=c(e,di),{animationProgress:H,tooltip:M,containerRef:W,processedData:R,showTooltip:V,hideTooltip:L,getChartDimensions:_}=(e=>{var{data:o,dataPoints:r,animated:i=!0,animationDuration:n=500,showTooltips:a=!0}=e,[l,s]=t.useState(i?0:1),[c,d]=t.useState({visible:!1,x:0,y:0,content:""}),u=t.useRef(null),h=t.useRef(null);t.useEffect(()=>{if(i){var e=Date.now(),t=()=>{var o=Date.now()-e,r=Math.min(o/n,1);s(r),r<1&&(u.current=requestAnimationFrame(t))};return u.current=requestAnimationFrame(t),()=>{u.current&&cancelAnimationFrame(u.current)}}s(1)},[i,n]);var g=t.useCallback(()=>o?Object.assign({},o,{series:o.series.map((e,t)=>Object.assign({},e,{color:e.color||Ar[t%Ar.length]}))}):r?r.map((e,t)=>Object.assign({},e,{color:e.color||Ar[t%Ar.length]})):null,[o,r]),m=t.useCallback((e,t,o)=>{a&&d({visible:!0,x:e,y:t,content:o})},[a]),p=t.useCallback(()=>{d(e=>Object.assign({},e,{visible:!1}))},[]),v=t.useCallback(()=>{if(!h.current)return{width:0,height:0};var{width:e,height:t}=h.current.getBoundingClientRect();return{width:e,height:t}},[]);return{animationProgress:l,tooltip:c,containerRef:h,processedData:g,showTooltip:m,hideTooltip:p,getChartDimensions:v}})({data:n,dataPoints:a,animated:g,animationDuration:m,showTooltips:h}),B=R(),{width:P,height:D}=_(),F=b||P,A=x||(p?P/v:D),G=()=>{if(!s||!B)return null;var e=[];return"pie"===i||"donut"===i?Array.isArray(B)&&(e=B):B&&B.series&&(e=B.series),e&&0!==e.length?o.createElement(r.Horizontal,Object.assign({flexWrap:"wrap",justifyContent:"center",marginTop:"bottom"===d?"16px":0,marginBottom:"top"===d?"16px":0},Ur,null==f?void 0:f.legend),e.map((e,t)=>o.createElement(r.View,Object.assign({key:"legend-"+t},Yr,null==f?void 0:f.legendItem),o.createElement(r.View,Object.assign({backgroundColor:e.color},Kr)),o.createElement(T,Object.assign({},qr),e.name||e.label)))):null},N=!C&&!y&&!j;return o.createElement(r.View,Object.assign({ref:W,role:"region","aria-label":null!=S?S:"string"==typeof l?l:"Chart","aria-busy":y},Gr,null==f?void 0:f.container,z),l&&o.createElement(T,Object.assign({},Nr),l),N&&"top"===d&&G(),o.createElement(r.View,Object.assign({flex:1,width:"100%",position:"relative"},null==f?void 0:f.chart),N&&(()=>{if(!B)return null;switch(i){case"bar":return o.createElement(li,{data:B,width:F,height:A,animationProgress:H,showGrid:u,onBarClick:E,showTooltip:V,hideTooltip:L,views:f});case"line":case"area":return o.createElement(si,{data:B,width:F,height:A,animationProgress:H,showGrid:u,onPointClick:E,showTooltip:V,hideTooltip:L,views:f});case"pie":case"donut":return o.createElement(ci,{dataPoints:B,width:F,height:A,animationProgress:H,isDonut:"donut"===i,onSliceClick:w,showTooltip:V,hideTooltip:L,views:f});default:return null}})(),y?o.createElement(r.View,Object.assign({},ii,null==f?void 0:f.loadingOverlay),k||o.createElement(r.Center,null,o.createElement(ir,{size:"lg"}))):null,C?o.createElement(r.View,Object.assign({},ni,null==f?void 0:f.errorOverlay),I||o.createElement(T,{fontWeight:"medium"},"string"==typeof C?C:"An error occurred")):null,j?o.createElement(r.View,Object.assign({},ai,null==f?void 0:f.noDataOverlay),O||o.createElement(T,null,"string"==typeof j?j:"No data available")):null),N&&"bottom"===d&&G(),h&&M.visible?o.createElement(r.View,Object.assign({position:"fixed",left:M.x+"px",top:M.y-40+"px"},Xr,null==f?void 0:f.tooltip),M.content):null)},hi={sm:{padding:"6px 8px",fontSize:"14px",minWidth:"160px"},md:{padding:"8px 12px",fontSize:"16px",minWidth:"180px"},lg:{padding:"10px 16px",fontSize:"18px",minWidth:"200px"}},gi={default:{backgroundColor:"color.white",color:"color.gray.800"},filled:{backgroundColor:"color.gray.100",color:"color.gray.800"},outline:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800"}},mi={hover:{backgroundColor:"color.gray.100"},active:{backgroundColor:"color.gray.200"},disabled:{opacity:.5,cursor:"not-allowed"}},pi=["children","disableNativeContextMenu","asChild","isDisabled","views"],vi=["items","children","position","side","align","views","style"],bi=["item","children","onSelect","isDisabled","views"],xi=["views"],fi=["views"],wi=["children","items","size","variant","disableNativeContextMenu","views","themeMode"],Ei=t.createContext({isOpen:!1,setIsOpen:()=>{},position:{x:0,y:0},setPosition:()=>{},activeSubmenuId:null,setActiveSubmenuId:()=>{},size:"md",variant:"default",triggerRef:{current:null},contentRef:{current:null},contentId:"contextmenu-content",closeMenu:()=>{},openMenu:()=>{}}),yi=e=>{var{children:t,value:r}=e;return o.createElement(Ei.Provider,{value:r},t)},Ci=()=>{var e=t.useContext(Ei);if(!e)throw new Error("useContextMenuContext must be used within a ContextMenuProvider");return e},ji=e=>{var{children:t,disableNativeContextMenu:i=!0,asChild:n=!1,isDisabled:a=!1,views:l}=e,s=c(e,pi),{triggerRef:d,contentId:u,openMenu:h}=Ci(),g=Object.assign({ref:d,onContextMenu:e=>{if(!a)if(i&&e.preventDefault(),h)h(e);else{var{setIsOpen:t,setPosition:o}=Ci();o({x:e.clientX,y:e.clientY}),t(!0)}},"aria-controls":u,"aria-haspopup":"menu","data-disabled":a?"":void 0},n&&o.isValidElement(t)&&void 0===t.props.isDisabled&&{isDisabled:a},null==l?void 0:l.container,s);if(n&&o.isValidElement(t)){var m=o.Children.only(t);return o.cloneElement(m,Object.assign({},g,m.props))}return o.createElement(r.View,Object.assign({},g),t)},ki=e=>{var{items:i,children:n,position:a,side:l="right",align:s="start",views:d,style:u}=e,h=c(e,vi),{isOpen:g,position:m,contentRef:p,contentId:v,variant:b}=Ci(),x=t.useRef(null),[f,w]=t.useState({x:0,y:0}),E=p||x;return t.useEffect(()=>{if(g&&E.current){var e=window.innerWidth,t=window.innerHeight,o=a||m,r=function(e,t,o,r,i,n,a,l){void 0===a&&(a="right"),void 0===l&&(l="start");var s=e,c=t;return"left"===a?s=e-o:"right"===a?s=e:"top"!==a&&"bottom"!==a||("center"===l?s=e-o/2:"end"===l&&(s=e-o)),"top"===a?c=t-r:"bottom"===a?c=t:"left"!==a&&"right"!==a||("center"===l?c=t-r/2:"end"===l&&(c=t-r)),s+o>i&&(s=i-o),s<0&&(s=0),c+r>n&&(c=n-r),c<0&&(c=0),{x:s,y:c}}(o.x,o.y,E.current.offsetWidth,E.current.offsetHeight,e,t,l,s);w(r)}},[g,m,a,l,s,E]),g?o.createElement(r.View,Object.assign({id:v||"context-menu",ref:E,role:"menu",tabIndex:-1,borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden",style:Object.assign({},{position:"fixed",top:f.y+"px",left:f.x+"px",zIndex:1e3,transformOrigin:"top left"},u)},gi[b],null==d?void 0:d.menu,null==d?void 0:d.content,h),i&&i.map((e,t)=>e.divider?o.createElement(Oi,{key:"divider-"+t,views:d}):o.createElement(Ii,{key:e.id,item:e,views:d})),n):null},Ii=e=>{var{item:i,children:n,onSelect:a,isDisabled:l=!1,views:s}=e,d=c(e,bi),{activeSubmenuId:u,setActiveSubmenuId:h,size:g,closeMenu:m}=Ci();if(i){var[p,v]=t.useState(!1),b=i.items&&i.items.length>0,x=u===i.id,f=t.useRef(null),[w,E]=t.useState({x:0,y:0}),y=i.disabled||l;return t.useEffect(()=>{if(x&&f.current){var e=f.current.getBoundingClientRect();E({x:e.right,y:e.top})}},[x]),o.createElement(r.View,Object.assign({ref:f,role:"menuitem",display:"flex",alignItems:"center",cursor:y?"not-allowed":"pointer",opacity:y?.5:1,position:"relative","aria-disabled":y,"data-disabled":y?"":void 0},hi[g],{_hover:y?{}:mi.hover,backgroundColor:p&&!y?"color.gray.100":"transparent",onMouseEnter:()=>{v(!0),b&&h(i.id)},onMouseLeave:()=>{v(!1)},onClick:()=>{y||!b&&i.onClick&&(i.onClick(),m&&m())}},null==s?void 0:s.item,d),i.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==s?void 0:s.icon),i.icon),o.createElement(r.View,{flexGrow:1},i.label),b&&o.createElement(r.View,Object.assign({marginLeft:8},null==s?void 0:s.submenuIndicator),o.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z",fill:"currentColor"}))),x&&b&&o.createElement(ki,{items:i.items||[],position:w,side:"right",align:"start",views:s}))}return o.createElement(r.View,Object.assign({role:"menuitem",onClick:e=>{l||(null==a||a(e),m&&m())},cursor:l?"not-allowed":"pointer",opacity:l?.5:1,"aria-disabled":l,"data-disabled":l?"":void 0},hi[g],{_hover:l?{}:mi.hover},null==s?void 0:s.item,d),n)},Oi=e=>{var{views:t}=e,i=c(e,xi);return o.createElement(r.View,Object.assign({height:"1px",backgroundColor:"color.gray.200",margin:"4px 0",role:"separator","aria-orientation":"horizontal"},null==t?void 0:t.divider,i))},Si=e=>{var{children:t,items:r,size:i="md",variant:n="default",disableNativeContextMenu:a=!0,views:l}=e,s=c(e,wi);return r&&0!==r.length?o.createElement(o.Fragment,null,o.createElement(ji,Object.assign({disableNativeContextMenu:a,views:l},s),t),o.createElement(ki,{items:r,views:l})):o.createElement(o.Fragment,null,t)},zi=["children","items","size","variant","disableNativeContextMenu","onOpenChange","views"],Hi=e=>{var{children:r,items:i,size:n="md",variant:a="default",disableNativeContextMenu:l=!0,onOpenChange:s,views:u}=e,h=c(e,zi),g=(e=>{var{size:r,variant:i,onOpenChange:n}=e||{},[a,l]=t.useState(!1),[s,c]=t.useState({x:0,y:0}),[u,h]=t.useState(null),g=t.useRef(null),m=t.useRef(null),p=o.useMemo(()=>d("contextmenu-content"),[]),v=t.useCallback(e=>{c({x:e.clientX,y:e.clientY}),l(!0),null==n||n(!0)},[n]),b=t.useCallback(()=>{l(!1),h(null),null==n||n(!1)},[n]);return t.useEffect(()=>{var e=e=>{m.current&&!m.current.contains(e.target)&&b()},t=()=>{a&&b()},o=e=>{"Escape"===e.key&&a&&b()};return document.addEventListener("mousedown",e),window.addEventListener("resize",t),document.addEventListener("keydown",o),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",t),document.removeEventListener("keydown",o)}},[a,b]),{isOpen:a,setIsOpen:l,position:s,setPosition:c,activeSubmenuId:u,setActiveSubmenuId:h,size:r,variant:i,triggerRef:g,contentRef:m,contentId:p,openMenu:v,closeMenu:b}})({size:n,variant:a,onOpenChange:s}),{isOpen:m,setIsOpen:p,position:v,setPosition:b,activeSubmenuId:x,setActiveSubmenuId:f,triggerRef:w,contentRef:E,contentId:y,openMenu:C,closeMenu:j}=g;return o.createElement(yi,{value:{isOpen:m,setIsOpen:p,position:v,setPosition:b,activeSubmenuId:x,setActiveSubmenuId:f,size:n,variant:a,triggerRef:w,contentRef:E,contentId:y,openMenu:C,closeMenu:j,styles:u}},o.createElement(Si,Object.assign({items:i,size:n,variant:a,disableNativeContextMenu:l,views:u},h),r))};Hi.Trigger=ji,Hi.Content=ki,Hi.Item=Ii,Hi.Divider=Oi,Hi.Separator=e=>{var{views:t}=e,i=c(e,fi);return o.createElement(r.View,Object.assign({height:"1px",backgroundColor:"color.gray.200",margin:"4px 0",role:"separator","aria-orientation":"horizontal"},null==t?void 0:t.separator,i))};var Mi=["src","color","views","themeMode"],Ti=["path"],Wi=e=>{var{placeholder:t,isMulti:r,options:i}=e,n=t?r?[]:"":Array.isArray(i)&&i.length>0?i[0].value:"",[a,l]=o.useState(!0),[s,c]=o.useState(!1),[d,u]=o.useState(!1),[h,g]=o.useState(n),[m,p]=o.useState(0);return{value:h,setValue:g,hide:a,setHide:l,isHovered:s,setIsHovered:c,isFocused:d,setIsFocused:u,highlightedIndex:m,setHighlightedIndex:p}},Ri=["children","views"],Vi=e=>{var{children:t,views:r={helperText:{}}}=e,i=c(e,Ri);return o.createElement(T,Object.assign({size:"xs",fontWeight:"400",letterSpacing:"-0.01em",lineHeight:"16px",marginVertical:0,marginHorizontal:0,color:"color.gray.500",transition:"all 0.2s ease"},r.helperText,i),t)},Li=["children","helperText","error","views"],_i=e=>{var{children:t,helperText:i,error:n=!1,views:a}=e,l=c(e,Li);return o.createElement(r.Vertical,Object.assign({gap:8,position:"relative",width:"100%"},l,null==a?void 0:a.container),t,!n&&i&&o.createElement(Vi,Object.assign({marginTop:4},null==a?void 0:a.helperText),i),n&&o.createElement(T,Object.assign({size:"xs",marginTop:4,marginHorizontal:0,fontWeight:"500",color:"color.red.500",transition:"all 0.2s ease"},null==a?void 0:a.error),n))},Bi={default:{borderRadius:"8px"},sharp:{borderRadius:0},rounded:{borderRadius:"8px"},pillShaped:{borderRadius:"9999px"}},Pi={xs:"12px",sm:"14px",md:"16px",lg:"18px",xl:"20px"},Di={outline:{borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",backgroundColor:"color.white",transition:"all 0.2s ease",_hover:{borderColor:"color.gray.300"},_focus:{borderColor:"theme.primary",boxShadow:"0 0 0 1px rgba(66, 153, 225, 0.2)"}},default:{borderWidth:0,borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200",borderRadius:0,backgroundColor:"color.white",transition:"all 0.2s ease",_hover:{borderBottomColor:"color.gray.300"},_focus:{borderBottomColor:"theme.primary"}},none:{border:"none",backgroundColor:"transparent",transition:"all 0.2s ease"}},Fi={paddingTop:"16px",paddingBottom:"8px",paddingLeft:"16px",paddingRight:"16px"},Ai={paddingTop:"12px",paddingBottom:"12px",paddingLeft:"16px",paddingRight:"16px"},Gi=["label","shadow","children","value","size","shape","variant","error","showLabel","isFocused","isHovered","isDisabled","isReadOnly","views"],Ni=e=>{var{shadow:t,children:i,size:n="md",shape:a="default",variant:l="default",error:s=!1,showLabel:d=!1,isFocused:u=!1,isHovered:h=!1,isDisabled:g=!1,isReadOnly:m=!1,views:p={pickerBox:{}}}=e,v=c(e,Gi);return o.createElement(r.Horizontal,Object.assign({gap:8,width:"100%",display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:"space-between",marginBottom:8,borderStyle:"solid",borderColor:s?"color.red.500":!h&&!u||g?"color.gray.300":"theme.primary",backgroundColor:"color.white",fontSize:r.Typography.fontSizes[n],cursor:g?"not-allowed":m?"auto":"text",opacity:g?.6:1,transition:"all 0.2s ease"},d?Fi:Ai,t,Bi[a],Di[l],p.box,v),i)},Ui=["children"],Yi=e=>{var{children:t}=e,i=c(e,Ui);return o.createElement(r.Center,Object.assign({gap:10,right:16,zIndex:500,flexWrap:"nowrap",position:"absolute"},i),t)},Ki={h1:{fontSize:96,lineHeight:112,letterSpacing:-1.5},h2:{fontSize:60,lineHeight:71,letterSpacing:-.5},h3:{fontSize:48,lineHeight:57,letterSpacing:0},h4:{fontSize:34,lineHeight:40,letterSpacing:.25},h5:{fontSize:24,lineHeight:28,letterSpacing:0},h6:{fontSize:20,lineHeight:24,letterSpacing:.15}},qi=["children","heading","isItalic","isUnderlined","isStriked","weight","size","dropDown"],Xi=e=>{var{children:t,heading:i,isItalic:n=!1,isUnderlined:a=!1,isStriked:l=!1,weight:s="normal",size:d="sm"}=e,u=c(e,qi);return o.createElement(r.Element,Object.assign({as:"label",width:"100%",fontSize:d,fontStyle:n?"italic":"normal",fontWeight:r.Typography.fontWeights[s],textDecoration:l?"line-through":a?"underline":"none"},i?Ki[i]:{},u),t)},Zi=e=>o.createElement(Xi,Object.assign({},e)),Ji=["children","size","error","color","views","helperText"],Qi=e=>{var{children:t,size:r="md",error:i=!1,color:n="theme.primary",views:a={label:{}}}=e,l=c(e,Ji);return o.createElement(Zi,Object.assign({top:0,zIndex:-10,position:"absolute",fontSize:Pi[r],lineHeight:Pi[r],letterSpacing:"-0.01em",whiteSpace:"nowrap",color:i?"color.red.500":n,transition:"all 0.2s ease"},a.label,l),t)},$i=["children"],en=e=>{var{children:t}=e,i=c(e,$i);return o.createElement(r.Vertical,Object.assign({width:"100%",maxWidth:"100%",position:"relative"},i),t)},tn={xs:12,sm:16,md:20,lg:24,xl:28},on=["isHovered","setIsHovered","option","size","callback","style"],rn=["id","name","value","onChange","isMulti","isDisabled","isReadOnly","options"],nn=["option","size","removeOption"],an=["id","name","label","value","placeholder","helperText","hide","error","isMulti","isFocused","isHovered","isDisabled","isReadOnly","options","shadow","size","shape","variant","views","onChange","setHide","setValue","setIsHovered","setIsFocused","setHighlightedIndex","highlightedIndex"],ln=e=>{var{isHovered:t,setIsHovered:i,option:n,size:a="md",callback:l=(()=>{}),style:s}=e,d=c(e,on),u=()=>i(!t);return o.createElement(r.Element,Object.assign({as:"li",margin:0,paddingVertical:12,paddingHorizontal:16,listStyleType:"none",onMouseEnter:u,onMouseLeave:u,onClick:()=>(e=>l(e))(n.value),backgroundColor:t?"color.gray.100":"transparent",borderRadius:"4px",transition:"all 0.15s ease"},d),o.createElement(T,Object.assign({fontSize:r.Typography.fontSizes[a],fontWeight:"400",lineHeight:"1.5"},s),n.label))},sn=e=>{var t,{size:i="md",views:n={field:{},text:{}},value:a,isDisabled:l,placeholder:s,removeOption:c=(()=>{}),options:d}=e,u=Object.assign({margin:0,width:"95%",height:"100%",border:"none",paddingVertical:12,paddingHorizontal:0,fontSize:r.Typography.fontSizes[i],fontWeight:"400",lineHeight:"1.5",letterSpacing:"-0.01em",backgroundColor:"transparent",color:l?"color.gray.400":"color.gray.900",cursor:l?"not-allowed":"pointer",transition:"all 0.2s ease"},n.field,n.text),h=d.length>0&&d.find(e=>e.value===a);return o.createElement(T,Object.assign({},u),(""===a||Array.isArray(a)&&0===a.length)&&s?s:o.createElement(o.Fragment,null,"string"==typeof a?null!=(t=h&&h.label)?t:a:Array.isArray(a)&&a.length>0?o.createElement(r.Horizontal,{gap:6},a.map(e=>o.createElement(un,{key:e,option:e,removeOption:c}))):o.createElement("span",null,a)))},cn=e=>{var{id:t,name:i,value:n,onChange:a,isMulti:l=!1,isDisabled:s=!1,isReadOnly:d=!1,options:u=[]}=e,h=c(e,rn);return o.createElement(r.Element,Object.assign({id:t,name:i,as:"select",opacity:0,width:0,height:0,position:"absolute",value:n,disabled:s,readOnly:d,onChange:e=>{a&&a(e)},multiple:l},h),u.length>0&&u.map(e=>o.createElement("option",{key:e.value,value:e.value},e.label)))},dn=e=>{var{size:t,views:i={},options:n,callback:a=(()=>{}),highlightedIndex:l,setHighlightedIndex:s}=e,c=(()=>{var[e,t]=o.useState(!1);return{isHovered:e,setIsHovered:t}})(),d=e=>a(e);return o.createElement(r.Element,Object.assign({as:"ul",role:"dropdown",top:"100%",width:"100%",display:"flex",flexDirection:"column",position:"absolute",marginTop:8,marginLeft:0,marginRight:0,marginBottom:0,padding:0,maxHeight:"240px",overflowY:"auto",zIndex:1e3,backgroundColor:"color.white",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",transition:"all 0.2s ease",style:{scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.2) transparent","&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"rgba(0, 0, 0, 0.2)",borderRadius:"4px"}}},{boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"},null==i?void 0:i.dropDown),n.length>0&&n.map((e,r)=>o.createElement(ln,Object.assign({key:e.value,size:t,style:i.text,option:e,callback:d,backgroundColor:r===l?"color.gray.100":"transparent",onMouseEnter:()=>s(r)},c))))},un=e=>{var{option:t,size:i="md",removeOption:n=(()=>{})}=e,a=c(e,nn);return o.createElement(r.Horizontal,Object.assign({gap:8,padding:8,alignItems:"center",borderRadius:"6px",backgroundColor:"color.gray.200",fontSize:r.Typography.fontSizes[i],onClick:e=>e.stopPropagation(),transition:"all 0.2s ease"},a),o.createElement(T,{size:i,fontWeight:"500"},t),o.createElement(mt,{role:"close-button",color:"inherit",widthHeight:tn[i],onClick:()=>n(t),transition:"all 0.2s ease",_hover:{opacity:.7}}))},hn=e=>{var{id:r,name:i,label:n,value:a,placeholder:l,helperText:s,hide:d=!1,error:u=!1,isMulti:h=!1,isFocused:g=!1,isHovered:m=!1,isDisabled:p=!1,isReadOnly:v=!1,options:b=[],shadow:x={},size:f="md",shape:w="default",variant:E="default",views:y={text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}},onChange:C=(()=>{}),setHide:j=(()=>{}),setValue:k=(()=>{}),setIsHovered:I=(()=>{}),setIsFocused:O=(()=>{}),setHighlightedIndex:S,highlightedIndex:z}=e,H=c(e,an),M=!(!g||!n),T=()=>I(!m),W=t.useCallback(e=>{j(!d),h&&Array.isArray(a)?!a.includes(e)&&k([...a,e]):k(e),C&&C(e)},[d,h,a]);return o.createElement(_i,{role:"SelectBox",helperText:s,error:u,views:y,onClick:p||v?()=>{}:e=>{e&&e.stopPropagation&&e.stopPropagation(),j(!d),O(!g)}},o.createElement(Ni,{label:n,size:f,error:u,shape:w,views:y,shadow:x,variant:E,value:a,color:"theme.primary",isHovered:m,isDisabled:p,isReadOnly:v,isFocused:g,showLabel:M,onMouseEnter:T,onMouseLeave:T},o.createElement(en,null,M&&o.createElement(Qi,Object.assign({htmlFor:r,color:"theme.primary",error:u},y),n),o.createElement(cn,Object.assign({id:r,name:i,options:b,onChange:C,value:a,isDisabled:p,isReadOnly:v,isMulti:h,onFocus:()=>O(!0)},H)),o.createElement(sn,{options:b,size:f,views:y,value:a,isDisabled:p,placeholder:l,removeOption:e=>{if(Array.isArray(a)&&a.includes(e)){var t=a.filter(t=>t!==e);k(0===t.length?[]:t)}}})),o.createElement(Yi,null,!v&&!p&&o.createElement(o.Fragment,null,o.createElement(at,d?{color:"inherit",widthHeight:tn[f],style:y.icon,orientation:"down"}:{color:"inherit",orientation:"up",widthHeight:tn[f],style:y.icon})))),!d&&o.createElement(dn,{size:f,views:y,options:b,callback:W,highlightedIndex:z,setHighlightedIndex:S}))},gn=e=>{var{isDisabled:t,isChecked:r}=e,[i,n]=o.useState(!1),[a,l]=o.useState(t?!t:r);return{isHovered:i,setIsHovered:n,on:a,setOn:l}},mn={xs:{height:"12px",width:"12px"},sm:{height:"16px",width:"16px"},md:{height:"20px",width:"20px"},lg:{height:"24px",width:"24px"},xl:{height:"28px",width:"28px"}},pn={xs:{height:"24px",width:"40px"},sm:{height:"28px",width:"48px"},md:{height:"32px",width:"56px"},lg:{height:"36px",width:"64px"},xl:{height:"40px",width:"72px"}},vn={xs:{paddingVertical:4,paddingHorizontal:4},sm:{paddingVertical:4,paddingHorizontal:4},md:{paddingVertical:4,paddingHorizontal:4},lg:{paddingVertical:4,paddingHorizontal:4},xl:{paddingVertical:4,paddingHorizontal:4}},bn=["id","name","label","inActiveChild","isChecked","activeChild","labelPosition","shadow","size","value","isHovered","isDisabled","isReadOnly","on","setOn","onChange","setValue","setIsHovered","helperText","views"],xn=e=>o.createElement(r.Input,Object.assign({type:"checkbox"},e)),fn=e=>{var{id:t,name:i,label:n,inActiveChild:a,activeChild:l,labelPosition:s="right",shadow:d={},size:u="sm",value:h=!1,isHovered:g=!1,isDisabled:m=!1,isReadOnly:p=!1,on:v,setOn:b,onChange:x,setValue:f=(()=>{}),setIsHovered:w=(()=>{}),views:E={slider:{},circle:{},label:{}}}=e,y=c(e,bn),C=()=>w(!g),j={container:Object.assign({gap:12,display:"flex",height:"fit-content",width:"fit-content",alignItems:"center",cursor:m?"not-allowed":p?"default":"pointer",opacity:m?.6:1,transition:"all 0.2s ease"},E.label)};return o.createElement(Zi,Object.assign({htmlFor:t,onMouseEnter:C,onMouseLeave:C},j.container,y),o.createElement(xn,Object.assign({id:t,name:i,opacity:0,width:0,height:0,checked:h,onChange:e=>{p||(f(!h),b(!v),x&&x(e.target.checked))},disabled:m,readOnly:p},y)),"left"===s&&n&&o.createElement(T,{fontWeight:"500",color:m?"color.gray.400":"color.gray.700",transition:"all 0.2s ease"},n),o.createElement(r.View,Object.assign({display:"flex",alignItems:"center",justifyContent:l?"space-between":h?"flex-end":"flex-start",marginBottom:4,borderRadius:"9999px",backgroundColor:m?"color.gray.200":h?g?"color.blue.600":"theme.primary":g?"color.gray.400":"color.gray.300",cursor:"pointer",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},d,vn[u],pn[u],E.slider),l&&h&&o.createElement(r.View,{marginLeft:8,transition:"all 0.3s ease"},l),o.createElement(r.View,Object.assign({borderRadius:"50%",backgroundColor:"white",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.1)",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},mn[u],E.circle)),a&&!h&&o.createElement(r.View,{marginRight:8,transition:"all 0.3s ease"},a)),"right"===s&&n&&o.createElement(T,{fontWeight:"500",color:m?"color.gray.400":"color.gray.700",transition:"all 0.2s ease"},n))},wn=e=>{var{label:o,placeholder:r,value:i}=e,[n,a]=t.useState(null!=o?o:r),[l,s]=t.useState(!1),[c,d]=t.useState(i||""),[u,h]=t.useState(!1);return t.useMemo(()=>{a(u&&!c?null!=r?r:"":null!=o?o:r)},[c,u,o,r]),{hint:n,setHint:a,isHovered:l,setIsHovered:s,value:c,setValue:d,isFocused:u,setIsFocused:h}},En=["id","name","hint","error","value","label","shadow","helperText","placeholder","size","shape","variant","isHovered","isFocused","isEditable","isReadOnly","isDisabled","isAutoFocus","isMultiline","maxRows","maxCols","onBlur","onChange","onFocus","setHint","setValue","setIsFocused","setIsHovered","views"],yn=e=>{var{id:t,name:i,hint:n,error:a,value:l,label:s,shadow:d,helperText:u,size:h="sm",shape:g="default",variant:m="default",isHovered:p=!1,isFocused:v=!1,isEditable:b=!1,isReadOnly:x=!1,isDisabled:f=!1,isAutoFocus:w=!1,isMultiline:E=!1,maxRows:y=3,maxCols:C=30,onBlur:j=(()=>{}),onChange:k,onFocus:I,setHint:O=(()=>{}),setValue:S=(()=>{}),setIsFocused:z=(()=>{}),setIsHovered:H=(()=>{}),views:M={label:{},helperText:{}}}=e,T=c(e,En),W=!(!v||!s),R=Object.assign({margin:0,paddingVertical:2,paddingHorizontal:2,width:"100%",maxHeight:"calc(100vh - 100px)",height:"calc(5em)",border:"none",resize:"vertical",on:{focus:{outline:"none"}},fontSize:r.Typography.fontSizes[h],lineHeight:1.5*r.Typography.fontSizes[h],letterSpacing:"-0.01em",backgroundColor:"transparent",color:f?"color.gray.400":"color.gray.900",cursor:f?"not-allowed":"text",transition:"all 0.2s ease"},M.field),V=()=>H(!p);return o.createElement(_i,Object.assign({helperText:u,error:a,views:M},T),o.createElement(Ni,Object.assign({label:s,size:h,error:a,shape:g,views:M,shadow:d,variant:m,value:l,color:"theme.primary",isHovered:p,isDisabled:f,isReadOnly:x,isFocused:v,showLabel:W,onMouseEnter:V,onMouseLeave:V},null==M?void 0:M.content),o.createElement(en,Object.assign({},null==M?void 0:M.warper),W&&o.createElement(Qi,Object.assign({htmlFor:t,color:"theme.primary",error:a},null==M?void 0:M.label),s),o.createElement(r.Element,Object.assign({as:"textarea",id:t,name:i,rows:y,cols:C,value:l,readOnly:x,disabled:f,autoFocus:w,editable:!!b.toString(),placeholder:n,onBlur:e=>{j(e),z(!1)},onFocus:()=>{z(!0),I&&I()},multiline:!!E.toString(),onChange:e=>{"string"==typeof e?(S(e),k&&k(e)):(S(e.target.value),k&&k(e.target.value))}},R,null==M?void 0:M.textarea)))))},Cn=e=>{var{label:o,placeholder:r,value:i}=e,[n,a]=t.useState(null!=o?o:r),[l,s]=t.useState(!1),[c,d]=t.useState(!1),[u,h]=t.useState(i);return t.useMemo(()=>{a(l&&!u?null!=r?r:"":null!=o?o:r)},[u,l,o,r]),{hint:n,setHint:a,isFocused:l,setIsFocused:s,isHovered:c,setIsHovered:d,setValue:h,value:u}},jn=["id","name","label","hint","value","onChange","left","right","helperText","placeholder","onChangeText","shadow","views","size","shape","variant","error","isFocused","isHovered","isDisabled","isReadOnly","isClearable","isAutoFocus","setHint","setIsFocused","setIsHovered","setValue","onClick","onFocus","onBlur","themeMode"],kn=e=>o.createElement(r.Input,Object.assign({type:"text"},e)),In=e=>{var{id:t,name:i,label:n,hint:a,value:l,onChange:s,left:d,right:u,helperText:h,onChangeText:g,shadow:m={},views:p={container:{},field:{},label:{},helperText:{},text:{}},size:v="md",shape:b="default",variant:x="default",error:f=!1,isFocused:w=!1,isHovered:E=!1,isDisabled:y=!1,isReadOnly:C=!1,isClearable:j=!0,isAutoFocus:k=!1,setHint:I=(()=>{}),setIsFocused:O=(()=>{}),setIsHovered:S=(()=>{}),setValue:z=(()=>{}),onClick:H=(()=>{}),onFocus:M,onBlur:T=(()=>{}),themeMode:W}=e,R=c(e,jn),{getColor:V,themeMode:L}=r.useTheme(),_=V("color.blueGray.700",{themeMode:W||L}),B=!(!w||!n),P=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",height:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:r.Typography.fontSizes[v],lineHeight:r.Typography.fontSizes[v],letterSpacing:"-0.01em",backgroundColor:"transparent",color:y?"color.gray.400":"color.gray.900",cursor:y?"not-allowed":"text",transition:"all 0.2s ease"},p.field),D=()=>S(!E);return o.createElement(_i,{helperText:h,error:f,views:p},o.createElement(Ni,{label:n,size:v,error:f,shape:b,views:p,shadow:m,variant:x,value:l,color:"theme.primary",isHovered:E,isDisabled:y,isReadOnly:C,isFocused:w,showLabel:B,onMouseEnter:D,onMouseLeave:D},d,o.createElement(en,null,B&&o.createElement(Qi,Object.assign({htmlFor:t,color:"theme.primary",error:f},p),n),o.createElement(kn,Object.assign({id:t,name:i,readOnly:C,disabled:y,autoFocus:k,placeholder:a,onFocus:()=>{O(!0),M&&M()},onBlur:e=>{T&&T(e),O(!1)},autoComplete:"off"},P,R,{onChange:e=>{"string"==typeof e?(z(e),g&&g(e),s&&s(e)):(z(e.target.value),g&&g(e.target.value),s&&s(e.target.value))},value:l}))),j&&l&&!C&&!y&&o.createElement(Yi,null,o.createElement(mt,{widthHeight:r.Typography.fontSizes[v],color:_,onClick:()=>{z(""),s&&(T({target:{name:i}}),g&&g(""),s&&s("")),"undefined"==typeof document&&g&&g("")}})),u))},On=e=>{var{defaultIsSelected:t=!1}=e,[r,i]=o.useState(!1),[n,a]=o.useState(t);return{isHovered:r,setIsHovered:i,isSelected:n,setIsSelected:a}},Sn={xs:{height:"16px",width:"16px"},sm:{height:"20px",width:"20px"},md:{height:"24px",width:"24px"},lg:{height:"28px",width:"28px"},xl:{height:"32px",width:"32px"}},zn={xs:10,sm:14,md:16,lg:20,xl:24},Hn={selected:{backgroundColor:"theme.primary",borderColor:"theme.primary",color:"color.white"},unselected:{backgroundColor:"color.white",borderWidth:"2px",borderStyle:"solid",borderColor:"color.gray.300",color:"color.black"},indeterminate:{backgroundColor:"theme.primary",borderColor:"theme.primary",color:"color.white"}},Mn={hover:{selected:{backgroundColor:"color.blue.600",borderColor:"color.blue.600"},unselected:{borderColor:"color.gray.400"},indeterminate:{backgroundColor:"color.blue.600",borderColor:"color.blue.600"}},disabled:{selected:{backgroundColor:"color.gray.300",borderColor:"color.gray.300",opacity:.6},unselected:{borderColor:"color.gray.300",opacity:.6},indeterminate:{backgroundColor:"color.gray.300",borderColor:"color.gray.300",opacity:.6}},error:{selected:{backgroundColor:"color.red.500",borderColor:"color.red.500"},unselected:{borderColor:"color.red.500"},indeterminate:{backgroundColor:"color.red.500",borderColor:"color.red.500"}}},Tn=["id","icon","name","label","isChecked","onChange","onValueChange","shadow","labelPosition","size","error","isSelected","isHovered","isDisabled","isReadOnly","isIndeterminate","defaultIsSelected","setIsSelected","setIsHovered","views","infoText","helperText"],Wn=e=>{var{id:t,icon:i,label:n,isChecked:a,onChange:l,onValueChange:s,shadow:d={},labelPosition:u="right",size:h="md",error:g=!1,isSelected:m=!1,isHovered:p=!1,isDisabled:v=!1,isReadOnly:b=!1,isIndeterminate:x=!1,defaultIsSelected:f=!1,setIsSelected:w=(()=>{}),setIsHovered:E=(()=>{}),views:y={checkbox:{},label:{}},infoText:C}=e,j=c(e,Tn),k=()=>E(!p),I=x?"indeterminate":a||m?"selected":"unselected",O=g?Mn.error[I]:v?Mn.disabled[I]:p?Mn.hover[I]:{},S={container:Object.assign({gap:8,display:"flex",height:"fit-content",flexDirection:"column",width:"fit-content",color:g?"color.red.600":v?"color.gray.400":"color.gray.700",cursor:v?"not-allowed":b?"default":"pointer",opacity:v?.6:1,transition:"all 0.2s ease"},y.label),checkbox:Object.assign({},Hn[I],O,{borderRadius:"4px"},Sn[h],{transition:"all 0.2s ease"},d,y.checkbox)};return o.createElement(Zi,Object.assign({htmlFor:t,as:"div",onClick:()=>{b||v||(w&&w(!m),l&&l(!a),s&&s(!a))},onMouseEnter:k,onMouseLeave:k,size:r.Typography.fontSizes[h]},S.container,j),o.createElement(r.Vertical,{gap:8}," ",o.createElement(r.Horizontal,{gap:12,alignItems:"center"}," ","left"===u&&n&&o.createElement(T,Object.assign({size:h,fontWeight:"500"},null==y?void 0:y.label),n),o.createElement(r.Center,Object.assign({},S.checkbox),x?o.createElement(wt,{widthHeight:zn[h],color:"white",transition:"all 0.2s ease"}):(a||m)&&(null!=i?i:o.createElement(mo,{widthHeight:zn[h],color:"white",transition:"all 0.2s ease"}))),"right"===u&&n&&o.createElement(T,Object.assign({size:h,fontWeight:"500"},null==y?void 0:y.label),n)),C&&o.createElement(T,Object.assign({marginLeft:"left"===u?0:36,color:"color.gray.500",size:"sm",fontWeight:"400",lineHeight:"1.5"},null==y?void 0:y.infoText),C)),g&&o.createElement(T,{size:"xs",marginTop:4,marginHorizontal:0,color:"color.red.500",fontWeight:"500",transition:"all 0.2s ease"},g))},Rn=[{name:"Afghanistan",dial_code:"+93",emoji:"🇦🇫",code:"AF"},{name:"Aland Islands",dial_code:"+358",emoji:"🇦🇽",code:"AX"},{name:"Albania",dial_code:"+355",emoji:"🇦🇱",code:"AL"},{name:"Algeria",dial_code:"+213",emoji:"🇩🇿",code:"DZ"},{name:"AmericanSamoa",dial_code:"+1684",emoji:"🇦🇸",code:"AS"},{name:"Andorra",dial_code:"+376",emoji:"🇦🇩",code:"AD"},{name:"Angola",dial_code:"+244",emoji:"🇦🇴",code:"AO"},{name:"Anguilla",dial_code:"+1264",emoji:"🇦🇮",code:"AI"},{name:"Antarctica",dial_code:"+672",emoji:"🇦🇶",code:"AQ"},{name:"Antigua and Barbuda",dial_code:"+1268",emoji:"🇦🇬",code:"AG"},{name:"Argentina",dial_code:"+54",emoji:"🇦🇷",code:"AR"},{name:"Armenia",dial_code:"+374",emoji:"🇦🇲",code:"AM"},{name:"Aruba",dial_code:"+297",emoji:"🇦🇼",code:"AW"},{name:"Australia",dial_code:"+61",emoji:"🇦🇺",code:"AU"},{name:"Austria",dial_code:"+43",emoji:"🇦🇹",code:"AT"},{name:"Azerbaijan",dial_code:"+994",emoji:"🇦🇿",code:"AZ"},{name:"Bahamas",dial_code:"+1242",emoji:"🇧🇸",code:"BS"},{name:"Bahrain",dial_code:"+973",emoji:"🇧🇭",code:"BH"},{name:"Bangladesh",dial_code:"+880",emoji:"🇧🇩",code:"BD"},{name:"Barbados",dial_code:"+1246",emoji:"🇧🇧",code:"BB"},{name:"Belarus",dial_code:"+375",emoji:"🇧🇾",code:"BY"},{name:"Belgium",dial_code:"+32",emoji:"🇧🇪",code:"BE"},{name:"Belize",dial_code:"+501",emoji:"🇧🇿",code:"BZ"},{name:"Benin",dial_code:"+229",emoji:"🇧🇯",code:"BJ"},{name:"Bermuda",dial_code:"+1441",emoji:"🇧🇲",code:"BM"},{name:"Bhutan",dial_code:"+975",emoji:"🇧🇹",code:"BT"},{name:"Bolivia, Plurinational State of",dial_code:"+591",emoji:"🇧🇴",code:"BO"},{name:"Bosnia and Herzegovina",dial_code:"+387",emoji:"🇧🇦",code:"BA"},{name:"Botswana",dial_code:"+267",emoji:"🇧🇼",code:"BW"},{name:"Brazil",dial_code:"+55",emoji:"🇧🇷",code:"BR"},{name:"British Indian Ocean Territory",dial_code:"+246",emoji:"🇮🇴",code:"IO"},{name:"Brunei Darussalam",dial_code:"+673",emoji:"🇧🇳",code:"BN"},{name:"Bulgaria",dial_code:"+359",emoji:"🇧🇬",code:"BG"},{name:"Burkina Faso",dial_code:"+226",emoji:"🇧🇫",code:"BF"},{name:"Burundi",dial_code:"+257",emoji:"🇧🇮",code:"BI"},{name:"Cambodia",dial_code:"+855",emoji:"🇰🇭",code:"KH"},{name:"Cameroon",dial_code:"+237",emoji:"🇨🇲",code:"CM"},{name:"Canada",dial_code:"+1",emoji:"🇨🇦",code:"CA"},{name:"Cape Verde",dial_code:"+238",emoji:"🇨🇻",code:"CV"},{name:"Cayman Islands",dial_code:"+345",emoji:"🇰🇾",code:"KY"},{name:"Central African Republic",dial_code:"+236",emoji:"🇨🇫",code:"CF"},{name:"Chad",dial_code:"+235",emoji:"🇹🇩",code:"TD"},{name:"Chile",dial_code:"+56",emoji:"🇨🇱",code:"CL"},{name:"China",dial_code:"+86",emoji:"🇨🇳",code:"CN"},{name:"Christmas Island",dial_code:"+61",emoji:"🇨🇽",code:"CX"},{name:"Cocos (Keeling) Islands",dial_code:"+61",emoji:"🇨🇨",code:"CC"},{name:"Colombia",dial_code:"+57",emoji:"🇨🇴",code:"CO"},{name:"Comoros",dial_code:"+269",emoji:"🇰🇲",code:"KM"},{name:"Congo",dial_code:"+242",emoji:"🇨🇬",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",emoji:"🇨🇩",code:"CD"},{name:"Cook Islands",dial_code:"+682",emoji:"🇨🇰",code:"CK"},{name:"Costa Rica",dial_code:"+506",emoji:"🇨🇷",code:"CR"},{name:"Cote d'Ivoire",dial_code:"+225",emoji:"🇨🇮",code:"CI"},{name:"Croatia",dial_code:"+385",emoji:"🇭🇷",code:"HR"},{name:"Cuba",dial_code:"+53",emoji:"🇨🇺",code:"CU"},{name:"Cyprus",dial_code:"+357",emoji:"🇨🇾",code:"CY"},{name:"Czech Republic",dial_code:"+420",emoji:"🇨🇿",code:"CZ"},{name:"Denmark",dial_code:"+45",emoji:"🇩🇰",code:"DK"},{name:"Djibouti",dial_code:"+253",emoji:"🇩🇯",code:"DJ"},{name:"Dominica",dial_code:"+1767",emoji:"🇩🇲",code:"DM"},{name:"Dominican Republic",dial_code:"+1849",emoji:"🇩🇴",code:"DO"},{name:"Ecuador",dial_code:"+593",emoji:"🇪🇨",code:"EC"},{name:"Egypt",dial_code:"+20",emoji:"🇪🇬",code:"EG"},{name:"El Salvador",dial_code:"+503",emoji:"🇸🇻",code:"SV"},{name:"Equatorial Guinea",dial_code:"+240",emoji:"🇬🇶",code:"GQ"},{name:"Eritrea",dial_code:"+291",emoji:"🇪🇷",code:"ER"},{name:"Estonia",dial_code:"+372",emoji:"🇪🇪",code:"EE"},{name:"Ethiopia",dial_code:"+251",emoji:"🇪🇹",code:"ET"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",emoji:"🇫🇰",code:"FK"},{name:"Faroe Islands",dial_code:"+298",emoji:"🇫🇴",code:"FO"},{name:"Fiji",dial_code:"+679",emoji:"🇫🇯",code:"FJ"},{name:"Finland",dial_code:"+358",emoji:"🇫🇮",code:"FI"},{name:"France",dial_code:"+33",emoji:"🇫🇷",code:"FR"},{name:"French Guiana",dial_code:"+594",emoji:"🇬🇫",code:"GF"},{name:"French Polynesia",dial_code:"+689",emoji:"🇵🇫",code:"PF"},{name:"Gabon",dial_code:"+241",emoji:"🇬🇦",code:"GA"},{name:"Gambia",dial_code:"+220",emoji:"🇬🇲",code:"GM"},{name:"Georgia",dial_code:"+995",emoji:"🇬🇪",code:"GE"},{name:"Germany",dial_code:"+49",emoji:"🇩🇪",code:"DE"},{name:"Ghana",dial_code:"+233",emoji:"🇬🇭",code:"GH"},{name:"Gibraltar",dial_code:"+350",emoji:"🇬🇮",code:"GI"},{name:"Greece",dial_code:"+30",emoji:"🇬🇷",code:"GR"},{name:"Greenland",dial_code:"+299",emoji:"🇬🇱",code:"GL"},{name:"Grenada",dial_code:"+1473",emoji:"🇬🇩",code:"GD"},{name:"Guadeloupe",dial_code:"+590",emoji:"🇬🇵",code:"GP"},{name:"Guam",dial_code:"+1671",emoji:"🇬🇺",code:"GU"},{name:"Guatemala",dial_code:"+502",emoji:"🇬🇹",code:"GT"},{name:"Guernsey",dial_code:"+44",emoji:"🇬🇬",code:"GG"},{name:"Guinea",dial_code:"+224",emoji:"🇬🇳",code:"GN"},{name:"Guinea-Bissau",dial_code:"+245",emoji:"🇬🇼",code:"GW"},{name:"Guyana",dial_code:"+595",emoji:"🇬🇾",code:"GY"},{name:"Haiti",dial_code:"+509",emoji:"🇭🇹",code:"HT"},{name:"Holy See (Vatican City State)",dial_code:"+379",emoji:"🇻🇦",code:"VA"},{name:"Honduras",dial_code:"+504",emoji:"🇭🇳",code:"HN"},{name:"Hong Kong",dial_code:"+852",emoji:"🇭🇰",code:"HK"},{name:"Hungary",dial_code:"+36",emoji:"🇭🇺",code:"HU"},{name:"Iceland",dial_code:"+354",emoji:"🇮🇸",code:"IS"},{name:"India",dial_code:"+91",emoji:"🇮🇳",code:"IN"},{name:"Indonesia",dial_code:"+62",emoji:"🇮🇩",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",emoji:"🇮🇷",code:"IR"},{name:"Iraq",dial_code:"+964",emoji:"🇮🇷",code:"IQ"},{name:"Ireland",dial_code:"+353",emoji:"🇮🇪",code:"IE"},{name:"Isle of Man",dial_code:"+44",emoji:"🇮🇲",code:"IM"},{name:"Israel",dial_code:"+972",emoji:"🇮🇱",code:"IL"},{name:"Italy",dial_code:"+39",emoji:"🇮🇹",code:"IT"},{name:"Jamaica",dial_code:"+1876",emoji:"🇯🇲",code:"JM"},{name:"Japan",dial_code:"+81",emoji:"🇯🇵",code:"JP"},{name:"Jersey",dial_code:"+44",emoji:"🇯🇪",code:"JE"},{name:"Jordan",dial_code:"+962",emoji:"🇯🇴",code:"JO"},{name:"Kazakhstan",dial_code:"+77",emoji:"🇰🇿",code:"KZ"},{name:"Kenya",dial_code:"+254",emoji:"🇰🇪",code:"KE"},{name:"Kiribati",dial_code:"+686",emoji:"🇰🇮",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",emoji:"🇰🇵",code:"KP"},{name:"Korea, Republic of South Korea",dial_code:"+82",emoji:"🇰🇷",code:"KR"},{name:"Kuwait",dial_code:"+965",emoji:"🇰🇼",code:"KW"},{name:"Kyrgyzstan",dial_code:"+996",emoji:"🇰🇬",code:"KG"},{name:"Laos",dial_code:"+856",emoji:"🇱🇦",code:"LA"},{name:"Latvia",dial_code:"+371",emoji:"🇱🇻",code:"LV"},{name:"Lebanon",dial_code:"+961",emoji:"🇱🇧",code:"LB"},{name:"Lesotho",dial_code:"+266",emoji:"🇱🇸",code:"LS"},{name:"Liberia",dial_code:"+231",emoji:"🇱🇷",code:"LR"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",emoji:"🇱🇾",code:"LY"},{name:"Liechtenstein",dial_code:"+423",emoji:"🇱🇮",code:"LI"},{name:"Lithuania",dial_code:"+370",emoji:"🇱🇹",code:"LT"},{name:"Luxembourg",dial_code:"+352",emoji:"🇱🇺",code:"LU"},{name:"Macao",dial_code:"+853",emoji:"🇲🇴",code:"MO"},{name:"Macedonia",dial_code:"+389",emoji:"🇲🇰",code:"MK"},{name:"Madagascar",dial_code:"+261",emoji:"🇲🇬",code:"MG"},{name:"Malawi",dial_code:"+265",emoji:"🇲🇼",code:"MW"},{name:"Malaysia",dial_code:"+60",emoji:"🇲🇾",code:"MY"},{name:"Maldives",dial_code:"+960",emoji:"🇲🇻",code:"MV"},{name:"Mali",dial_code:"+223",emoji:"🇲🇱",code:"ML"},{name:"Malta",dial_code:"+356",emoji:"🇲🇹",code:"MT"},{name:"Marshall Islands",dial_code:"+692",emoji:"🇲🇭",code:"MH"},{name:"Martinique",dial_code:"+596",emoji:"🇲🇶",code:"MQ"},{name:"Mauritania",dial_code:"+222",emoji:"🇲🇷",code:"MR"},{name:"Mauritius",dial_code:"+230",emoji:"🇲🇺",code:"MU"},{name:"Mayotte",dial_code:"+262",emoji:"🇾🇹",code:"YT"},{name:"Mexico",dial_code:"+52",emoji:"🇲🇽",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",emoji:"🇫🇲",code:"FM"},{name:"Moldova",dial_code:"+373",emoji:"🇲🇩",code:"MD"},{name:"Monaco",dial_code:"+377",emoji:"🇲🇨",code:"MC"},{name:"Mongolia",dial_code:"+976",emoji:"🇲🇳",code:"MN"},{name:"Montenegro",dial_code:"+382",emoji:"🇲🇪",code:"ME"},{name:"Montserrat",dial_code:"+1664",emoji:"🇲🇸",code:"MS"},{name:"Morocco",dial_code:"+212",emoji:"🇲🇦",code:"MA"},{name:"Mozambique",dial_code:"+258",emoji:"🇲🇿",code:"MZ"},{name:"Myanmar",dial_code:"+95",emoji:"🇲🇲",code:"MM"},{name:"Namibia",emoji:"🇳🇦",dial_code:"+264",code:"NA"},{name:"Nauru",dial_code:"+674",emoji:"🇳🇷",code:"NR"},{name:"Nepal",dial_code:"+977",emoji:"🇳🇵",code:"NP"},{name:"Netherlands",dial_code:"+31",emoji:"🇳🇱",code:"NL"},{name:"Netherlands Antilles",dial_code:"+599",emoji:"🇧🇶",code:"AN"},{name:"New Caledonia",dial_code:"+687",emoji:"🇳🇨",code:"NC"},{name:"New Zealand",dial_code:"+64",emoji:"🇳🇿",code:"NZ"},{name:"Nicaragua",dial_code:"+505",emoji:"🇳🇮",code:"NI"},{name:"Niger",dial_code:"+227",emoji:"🇳🇪",code:"NE"},{name:"Nigeria",dial_code:"+234",emoji:"🇳🇬",code:"NG"},{name:"Niue",dial_code:"+683",emoji:"🇳🇺",code:"NU"},{name:"Norfolk Island",dial_code:"+672",emoji:"🇳🇫",code:"NF"},{name:"Northern Mariana Islands",dial_code:"+1670",emoji:"🇲🇵",code:"MP"},{name:"Norway",dial_code:"+47",emoji:"🇳🇴",code:"NO"},{name:"Oman",dial_code:"+968",emoji:"🇴🇲",code:"OM"},{name:"Pakistan",dial_code:"+92",emoji:"🇵🇰",code:"PK"},{name:"Palau",dial_code:"+680",emoji:"🇵🇼",code:"PW"},{name:"Palestinian Territory, Occupied",dial_code:"+970",emoji:"🇵🇸",code:"PS"},{name:"Panama",dial_code:"+507",emoji:"🇵🇦",code:"PA"},{name:"Papua New Guinea",dial_code:"+675",emoji:"🇵🇬",code:"PG"},{name:"Paraguay",dial_code:"+595",emoji:"🇵🇾",code:"PY"},{name:"Peru",dial_code:"+51",emoji:"🇵🇪",code:"PE"},{name:"Philippines",dial_code:"+63",emoji:"🇵🇭",code:"PH"},{name:"Pitcairn",dial_code:"+872",emoji:"🇵🇳",code:"PN"},{name:"Poland",dial_code:"+48",emoji:"🇵🇱",code:"PL"},{name:"Portugal",dial_code:"+351",emoji:"🇵🇹",code:"PT"},{name:"Puerto Rico",dial_code:"+1939",emoji:"🇵🇷",code:"PR"},{name:"Qatar",dial_code:"+974",emoji:"🇶🇦",code:"QA"},{name:"Romania",dial_code:"+40",emoji:"🇷🇴",code:"RO"},{name:"Russia",dial_code:"+7",emoji:"🇷🇺",code:"RU"},{name:"Rwanda",dial_code:"+250",emoji:"🇷🇼",code:"RW"},{name:"Reunion",dial_code:"+262",emoji:"🇷🇪",code:"RE"},{name:"Saint Barthelemy",dial_code:"+590",emoji:"🇧🇱",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",emoji:"🇸🇭",code:"SH"},{name:"Saint Kitts and Nevis",dial_code:"+1869",emoji:"🇰🇳",code:"KN"},{name:"Saint Lucia",dial_code:"+1758",emoji:"🇱🇨",code:"LC"},{name:"Saint Martin",dial_code:"+590",emoji:"🇲🇫",code:"MF"},{name:"Saint Pierre and Miquelon",dial_code:"+508",emoji:"🇵🇲",code:"PM"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",emoji:"🇻🇨",code:"VC"},{name:"Samoa",dial_code:"+685",emoji:"🇼🇸",code:"WS"},{name:"San Marino",dial_code:"+378",emoji:"🇸🇲",code:"SM"},{name:"Sao Tome and Principe",dial_code:"+239",emoji:"🇸🇹",code:"ST"},{name:"Saudi Arabia",dial_code:"+966",emoji:"🇸🇦",code:"SA"},{name:"Senegal",dial_code:"+221",emoji:"🇸🇳",code:"SN"},{name:"Serbia",dial_code:"+381",emoji:"🇷🇸",code:"RS"},{name:"Seychelles",dial_code:"+248",emoji:"🇸🇨",code:"SC"},{name:"Sierra Leone",dial_code:"+232",emoji:"🇸🇱",code:"SL"},{name:"Singapore",dial_code:"+65",emoji:"🇸🇬",code:"SG"},{name:"Slovakia",dial_code:"+421",emoji:"🇸🇰",code:"SK"},{name:"Slovenia",dial_code:"+386",emoji:"🇸🇮",code:"SI"},{name:"Solomon Islands",dial_code:"+677",emoji:"🇸🇧",code:"SB"},{name:"Somalia",dial_code:"+252",emoji:"🇸🇴",code:"SO"},{name:"South Africa",dial_code:"+27",emoji:"🇿🇦",code:"ZA"},{name:"South Sudan",dial_code:"+211",emoji:"🇸🇸",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",emoji:"🇬🇸",code:"GS"},{name:"Spain",dial_code:"+34",emoji:"🇪🇸",code:"ES"},{name:"Sri Lanka",dial_code:"+94",emoji:"🇱🇰",code:"LK"},{name:"Sudan",dial_code:"+249",emoji:"🇸🇩",code:"SD"},{name:"Suriname",dial_code:"+597",emoji:"🇸🇷",code:"SR"},{name:"Svalbard and Jan Mayen",dial_code:"+47",emoji:"🇸🇯",code:"SJ"},{name:"Swaziland",dial_code:"+268",emoji:"🇸🇿",code:"SZ"},{name:"Sweden",dial_code:"+46",emoji:"🇸🇪",code:"SE"},{name:"Switzerland",dial_code:"+41",emoji:"🇨🇭",code:"CH"},{name:"Syrian Arab Republic",dial_code:"+963",emoji:"🇸🇾",code:"SY"},{name:"Taiwan",dial_code:"+886",emoji:"🇹🇼",code:"TW"},{name:"Tajikistan",dial_code:"+992",emoji:"🇹🇯",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",emoji:"🇹🇿",code:"TZ"},{name:"Thailand",dial_code:"+66",emoji:"🇹🇭",code:"TH"},{name:"Timor-Leste",dial_code:"+670",emoji:"🇹🇱",code:"TL"},{name:"Togo",dial_code:"+228",emoji:"🇹🇬",code:"TG"},{name:"Tokelau",dial_code:"+690",emoji:"🇹🇰",code:"TK"},{name:"Tonga",dial_code:"+676",emoji:"🇹🇴",code:"TO"},{name:"Trinidad and Tobago",dial_code:"+1868",emoji:"🇹🇹",code:"TT"},{name:"Tunisia",dial_code:"+216",emoji:"🇹🇳",code:"TN"},{name:"Turkey",dial_code:"+90",emoji:"🇹🇷",code:"TR"},{name:"Turkmenistan",dial_code:"+993",emoji:"🇹🇲",code:"TM"},{name:"Turks and Caicos Islands",dial_code:"+1649",emoji:"🇹🇨",code:"TC"},{name:"Tuvalu",dial_code:"+688",emoji:"🇹🇻",code:"TV"},{name:"Uganda",dial_code:"+256",emoji:"🇺🇬",code:"UG"},{name:"Ukraine",dial_code:"+380",emoji:"🇺🇦",code:"UA"},{name:"United Arab Emirates",dial_code:"+971",emoji:"🇦🇪",code:"AE"},{name:"United Kingdom",dial_code:"+44",emoji:"🇬🇧",code:"GB"},{name:"United States",dial_code:"+1",emoji:"🇺🇸",code:"US"},{name:"Uruguay",dial_code:"+598",emoji:"🇺🇾",code:"UY"},{name:"Uzbekistan",dial_code:"+998",emoji:"🇺🇿",code:"UZ"},{name:"Vanuatu",dial_code:"+678",emoji:"🇻🇺",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",emoji:"🇻🇪",code:"VE"},{name:"Vietnam",dial_code:"+84",emoji:"🇻🇳",code:"VN"},{name:"Virgin Islands, British",dial_code:"+1284",emoji:"🇻🇬",code:"VG"},{name:"Virgin Islands, U.S.",dial_code:"+1340",emoji:"🇻🇮",code:"VI"},{name:"Wallis and Futuna",dial_code:"+681",emoji:"🇼🇫",code:"WF"},{name:"Yemen",dial_code:"+967",emoji:"🇾🇪",code:"YE"},{name:"Zambia",dial_code:"+260",emoji:"🇿🇲",code:"ZM"},{name:"Zimbabwe",dial_code:"+263",emoji:"🇿🇼",code:"ZW"}],Vn=e=>{var{placeholder:t}=e,[r,i]=o.useState(Rn),[n,a]=o.useState(null!=t?t:Rn[0].name),[l,s]=o.useState(!0),[c,d]=o.useState(!1),[u,h]=o.useState(!1);return{hide:l,setHide:s,newOptions:r,setNewOptions:i,isHovered:u,setIsHovered:h,isFocused:c,setIsFocused:d,value:n,setValue:a}},Ln={xs:8,sm:10,md:12,lg:14,xl:16},_n=["size"],Bn=["size"],Pn=["id","name","label","value","placeholder","helperText","hide","error","isHovered","isFocused","isAutoFocus","isDisabled","isReadOnly","shadow","newOptions","size","variant","shape","onChange","onBlur","setHide","setNewOptions","setIsHovered","setIsFocused","setValue","views","themeMode"],Dn=e=>{var t=c(e,_n);return o.createElement(r.Element,Object.assign({as:"ul"},t))},Fn=e=>o.createElement(r.Input,Object.assign({type:"country"},e)),An=e=>{var t=c(e,Bn);return o.createElement(r.Element,Object.assign({as:"li"},t))},Gn=e=>{var{option:i,size:n="md",callback:a=(()=>{}),views:l={text:{}}}=e,[s,c]=t.useState(!1),d=()=>c(!s);return o.createElement(An,Object.assign({margin:0,role:"DropDownItem",listStyleType:"none",fontWeight:"normal",paddingVertical:6,paddingHorizontal:12,onMouseEnter:d,onMouseLeave:d,onClick:e=>{e&&e.stopPropagation&&e.stopPropagation(),a(i)},fontSize:r.Typography.fontSizes[n],backgroundColor:s?"trueGray.100":"transparent"},l.text),i)},Nn=e=>{var{size:t,views:r={dropDown:{}},options:i=[],callback:n=(()=>{})}=e,a=e=>n(e);return o.createElement(Dn,Object.assign({role:"dropDown",margin:0,padding:0,top:"100%",width:"100%",display:"flex",zIndex:1e3,overflow:"auto",maxHeight:"300px",borderRadius:4,position:"absolute",flexDirection:"column",backgroundColor:"color.white",boxShadow:"rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"},r.dropDown),i.map(e=>o.createElement(Gn,Object.assign({key:e.code,size:t,option:e.name,callback:a},r.text))))},Un=e=>{var{id:t,name:i,label:n,value:a,placeholder:l,helperText:s,hide:d=!1,error:u=!1,isHovered:h=!1,isFocused:g=!1,isAutoFocus:m=!1,isDisabled:p=!1,isReadOnly:v=!1,shadow:b={},newOptions:x=[],size:f="md",variant:w="default",shape:E="default",onChange:y,onBlur:C=(()=>{}),setHide:j=(()=>{}),setNewOptions:k=(()=>{}),setIsHovered:I=(()=>{}),setIsFocused:O=(()=>{}),setValue:S=(()=>{}),views:z={text:{},icon:{},label:{},dropDown:{},helperText:{}},themeMode:H}=e,M=c(e,Pn),{getColor:T,themeMode:W}=r.useTheme(),R=T("color.blueGray.700",{themeMode:H||W}),V=()=>I(!h),L=!(!n||!g&&!a),_=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:r.Typography.fontSizes[f],backgroundColor:"transparent",color:p?"color.trueGray.600":"color.blueGray.700",cursor:p?"not-allowed":v?"auto":"pointer"},z.field);return o.createElement(_i,{helperText:s,error:u,views:z,onClick:()=>{p||v||j(!d)}},o.createElement(Ni,{label:n,size:f,error:u,shape:E,views:z,shadow:b,variant:w,value:a,color:"theme.primary",isHovered:h,isDisabled:p,isReadOnly:v,isFocused:g,showLabel:L,onMouseEnter:V,onMouseLeave:V},o.createElement(en,null,L&&o.createElement(Qi,Object.assign({htmlFor:t,color:"theme.primary",error:u},z),n),o.createElement(Fn,Object.assign({id:t,name:i,placeholder:l,readOnly:v,disabled:p,autoFocus:m,onBlur:e=>{C(e),O(!1)},onFocus:()=>O(!0)},_,M,{value:a,onChange:e=>{var t=e.target.value,o=Rn.filter(e=>e.name.toLowerCase().startsWith(t.toLowerCase()));d&&j(!1),k(o),y&&y(t)}}))),o.createElement(Yi,null,o.createElement(at,d?{orientation:"down",widthHeight:Ln[f],color:R,style:z.icon}:{orientation:"up",widthHeight:Ln[f],color:R,style:z.icon}))),!d&&o.createElement(Nn,{size:f,views:z,options:x,callback:e=>{j(!d),S(e),y&&y(e)}}))},Yn=()=>{var[e,t]=o.useState(!1),[r,i]=o.useState(!1),[n,l]=o.useState(a(new Date,"yyyy-MM-dd"));return{date:n,setDate:l,isHovered:e,setIsHovered:t,isFocused:r,setIsFocused:i}},Kn=["id","icon","name","label","date","children","helperText","shadow","size","variant","shape","views","error","isHovered","isFocused","isDisabled","isReadOnly","setDate","setIsFocused","setIsHovered","onChange","onChangeText"],qn=e=>o.createElement(r.Input,Object.assign({type:"date"},e)),Xn=e=>{var{id:t,name:i,label:n,date:a,helperText:l,shadow:s={},size:d="md",variant:u="default",shape:h="default",views:g={container:{},label:{},helperText:{},text:{},field:{}},error:m=!1,isHovered:p=!1,isFocused:v=!1,isDisabled:b=!1,isReadOnly:x=!1,setDate:f=(()=>{}),setIsFocused:w=(()=>{}),setIsHovered:E=(()=>{}),onChange:y,onChangeText:C}=e,j=c(e,Kn),k=!(!v||!n),I=()=>E(!p),O=e=>{"string"==typeof e?(f(e),C&&C(e)):(f(e.target.value),y&&y(e.target.value))},S=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none",backgroundColor:"transparent"}},fontSize:r.Typography.fontSizes[d],backgroundColor:"transparent",color:b?"color.trueGray.600":"color.blueGray.700",cursor:b?"not-allowed":x?"auto":"pointer"},g.field);return o.createElement(_i,{helperText:l,error:m,views:g},o.createElement(Ni,{label:n,size:d,error:m,shape:h,views:g,shadow:s,color:"theme.primary",variant:u,value:a,isHovered:p,isDisabled:b,isReadOnly:x,isFocused:v,showLabel:k,onMouseEnter:I,onMouseLeave:I},o.createElement(en,null,k&&o.createElement(Qi,Object.assign({htmlFor:t,color:"theme.primary",error:m},g),n),o.createElement(qn,Object.assign({id:t,name:i,onFocus:()=>w(!0),disabled:b,readOnly:x},S,j,C&&{onChangeText:O},{onChange:O})))))},Zn=e=>{var o=Cn(e),[r,i]=t.useState(!1);return Object.assign({isVisible:r,setIsVisible:i},e,o)},Jn=["visibleIcon","hiddenIcon"],Qn=["isVisible","setIsVisible"],$n=(e,o,r)=>{var[i,n]=t.useState(e),[a,l]=t.useState(o?{value:o,label:o}:e[0]),[s,c]=t.useState(0),[d,u]=t.useState(null!=r?r:""),[h,g]=t.useState(!1);return{filteredItems:i,setFilteredItems:n,selectedItem:a,setSelectedItem:l,highlightedIndex:s,setHighlightedIndex:c,searchQuery:d,setSearchQuery:u,isDropdownVisible:h,setIsDropdownVisible:g}},ea=["placeholder","items","showTick","onSelect","searchEnabled","left","right","label","filteredItems","setSelectedItem","selectedItem","highlightedIndex","setHighlightedIndex","searchQuery","setSearchQuery","setFilteredItems","views","isDropdownVisible","setIsDropdownVisible"],ta=e=>{var{placeholder:i,items:n,showTick:a=!0,onSelect:l,searchEnabled:s=!0,left:d,right:u,label:h,filteredItems:g,setSelectedItem:m,selectedItem:p,highlightedIndex:v,setHighlightedIndex:b,searchQuery:x,setSearchQuery:f,setFilteredItems:w,views:E,isDropdownVisible:y,setIsDropdownVisible:C}=e,j=c(e,ea);return t.useEffect(()=>{var e=e=>{!e.composedPath().some(e=>"combobox-dropdown"===(null==e?void 0:e.id))&&C(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),o.createElement(r.Horizontal,Object.assign({role:"combobox",flexWrap:"nowrap",gap:15,alignItems:"center",width:"100%"},j),h&&o.createElement(T,{views:null==E?void 0:E.label,htmlFor:j.id},h),o.createElement(r.View,{position:"relative"},o.createElement(r.Horizontal,Object.assign({cursor:"pointer",backgroundColor:"color.white",boxShadow:"rgba(0, 0, 0, 0.16) 0px 1px 4px",padding:"12px",display:"flex",alignItems:"center",borderRadius:"4px",justifyContent:"space-between",minWidth:300,flexWrap:"nowrap"},null==E?void 0:E.container),o.createElement(r.Horizontal,Object.assign({gap:15,alignItems:"center",position:"relative",width:"100%",onClick:()=>C(!y)},null==E?void 0:E.labelContainer),d,o.createElement(T,Object.assign({weight:"medium",flexGrow:1,color:"color.gray.800"},null==E?void 0:E.label),p.label)),u,y&&o.createElement(r.View,Object.assign({id:"combobox-dropdown",position:"absolute",backgroundColor:"color.white",boxShadow:"rgba(0, 0 ,0 ,0.16) 0px 1px 4px",width:"100%",overflowY:"auto",zIndex:1e4,bottom:-8,left:0,transform:"translateY(100%)",marginTop:"4px",borderRadius:"4px"},null==E?void 0:E.dropdown),s&&o.createElement(In,{id:j.id,name:j.name,width:"100%",type:"search",value:x,onChange:e=>(e=>{if(f(e),""===e)w(n);else{var t=n.filter(t=>t.label.toLowerCase().includes(e.toLowerCase()));w(t)}b(0)})(e),hint:i,isClearable:!1,left:o.createElement(co,{widthHeight:12}),views:{container:Object.assign({width:"100%",padding:"6px 12px",borderBottom:g.length>0?"1px solid #ccc":"1px solid transparent"},null==E?void 0:E.text)}}),g.length>0&&o.createElement(r.View,{margin:0,padding:4},g.map((e,t)=>o.createElement(r.Horizontal,Object.assign({justifyContent:"space-between",key:e.value,padding:"12px",cursor:"pointer",borderRadius:4,backgroundColor:t===v?"color.gray.100":"transparent",onMouseEnter:()=>b(t),onClick:()=>(e=>{m(e),null==l||l(e),C(!1)})(e)},null==E?void 0:E.item),o.createElement(T,null,e.label),o.createElement(o.Fragment,null,e.icon&&e.icon,e.value===p.value&&a&&!e.icon&&o.createElement(mo,{widthHeight:20})))))))))},oa=["id","name","items","placeholder","searchPlaceholder"],ra=e=>{var o,{value:r,defaultValue:i="",length:n=6,onChange:a,onChangeText:l,onComplete:s,onKeyDown:c,onKeyPress:d,pattern:u,stepValues:h,pasteTransformer:g}=e,m=void 0!==r,p=m?r:i,[v,b]=t.useState((null==p?void 0:p.slice(0,n))||""),[x,f]=t.useState(!1),[w,E]=t.useState(!1),[y,C]=t.useState(null),[j,k]=t.useState(null),I=t.useRef(null),O=t.useRef(null),S=t.useRef({value:v,onChange:a||(()=>{}),isIOS:"undefined"!=typeof window&&(null==(o=window)||null==(o=o.CSS)||null==o.supports?void 0:o.supports("-webkit-touch-callout","none"))}),z=t.useRef({prev:[null,null,"none"]}),H=u?"string"==typeof u?new RegExp(u):u:null;t.useEffect(()=>{m&&r!==v&&b((null==r?void 0:r.slice(0,n))||"")},[m,r,n,v]);var M=t.useCallback(e=>{var t=e;if(h&&h.length>0&&e){var o=parseInt(e,10);if(!isNaN(o)){for(var r=h[0],i=Math.abs(o-r),c=1;c<h.length;c++){var d=Math.abs(o-h[c]);d<i&&(i=d,r=h[c])}t=r.toString()}}b(t),a&&a(t),l&&l(t),s&&t.length===n&&s(t)},[a,l,s,n,h]),T=t.useCallback(e=>{e&&I.current!==e&&Object.defineProperty(I,"current",{value:e,writable:!0})},[]),W=t.useCallback(e=>{var t=e.currentTarget.value.slice(0,n);t.length>0&&H&&!H.test(t)?e.preventDefault():(M(t),I.current&&(I.current.value=t))},[n,H,M,I]),R=t.useCallback(()=>{if(I.current){var e,t=Math.min(I.current.value.length,n-1),o=I.current.value.length;null==(e=I.current)||e.setSelectionRange(t,o),C(t),k(o)}f(!0)},[n]),V=t.useCallback(()=>{f(!1)},[]),L=t.useCallback(e=>{c&&c(e)},[]),_=t.useCallback(e=>{d&&d(e)},[]),B=t.useCallback(e=>{var t=I.current;if(e.clipboardData&&t){var o=e.clipboardData.getData("text/plain"),r=g?g(o):o;e.preventDefault();var i=t.selectionStart||0,a=t.selectionEnd||0,l=(i!==a?v.slice(0,i)+r+v.slice(a):v.slice(0,i)+r+v.slice(i)).slice(0,n);if(!(l.length>0&&H)||H.test(l)){t.value=l,M(l),b(l);var s=Math.min(l.length,n-1),c=l.length;t.setSelectionRange(s,c),C(s),k(c)}}},[n,g,H,M,v,b]);return t.useEffect(()=>{var e=I.current,t=O.current;if(e&&t){S.current.value!==e.value&&S.current.onChange&&S.current.onChange(e.value),z.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",i,{capture:!0}),i(),document.activeElement===e&&f(!0);var o=()=>{t&&t.style.setProperty("--root-height",e.clientHeight+"px")};o();var r=new window.ResizeObserver(o);return r.observe(e),()=>{document.removeEventListener("selectionchange",i,{capture:!0}),r.disconnect()}}function i(){var t,o,r,i,n;if(document.activeElement!==e)return C(null),void k(null);var a=null!=(t=null==e?void 0:e.selectionStart)?t:null,l=null!=(o=null==e?void 0:e.selectionEnd)?o:null,s=null!=(r=null==e?void 0:e.selectionDirection)?r:null,c=null!=(i=null==e?void 0:e.maxLength)?i:0,d=null!=(n=null==e?void 0:e.value)?n:"",u=z.current.prev,h=-1,g=-1,m="none";if(0!==d.length&&null!==a&&null!==l){if(a===l&&!(a===d.length&&d.length<c))if(0===a)h=0,g=1,m="forward";else if(a===c)h=a-1,g=a,m="backward";else if(c>1&&d.length>1){var p=0;null!==u[0]&&null!==u[1]&&("backward"!=(m=a<u[1]?"backward":"forward")||u[0]===u[1]&&u[0]<c||(p=-1)),h=p+a,g=p+a+1}-1!==h&&-1!==g&&h!==g&&I.current&&I.current.setSelectionRange(h,g,m)}var v=-1!==h?h:a,b=-1!==g?g:l,x="none"!==m?m:s;C(v),k(b),z.current.prev=[v,b,x]}},[]),t.useEffect(()=>{var e;e=()=>{var e,t,o,r;null==(e=I.current)||e.dispatchEvent(new Event("input"));var i=null==(t=I.current)?void 0:t.selectionStart,n=null==(o=I.current)?void 0:o.selectionEnd,a=null==(r=I.current)?void 0:r.selectionDirection;null!==i&&null!==n&&void 0!==i&&void 0!==n&&(C(i),k(n),z.current.prev=[i,n,a||"none"])},setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)},[v,x]),{value:v,setValue:M,isFocused:x,setIsFocused:f,isHovered:w,setIsHovered:E,inputRef:I,containerRef:O,mirrorSelectionStart:y,mirrorSelectionEnd:j,setMirrorSelectionStart:C,setMirrorSelectionEnd:k,setInputRef:T,handleChange:W,handleFocus:R,handleBlur:V,handleKeyDown:L,handleKeyPress:_,handlePaste:B}},ia=["id","name","label","value","length","onChange","onChangeText","onComplete","helperText","placeholder","shadow","views","size","shape","variant","gap","type","error","isFocused","isHovered","isDisabled","isReadOnly","isAutoFocus","setValue","setIsFocused","setIsHovered","inputRef","containerRef","mirrorSelectionStart","mirrorSelectionEnd","setMirrorSelectionStart","setMirrorSelectionEnd","handlePaste","handleChange","handleFocus","handleBlur","handleKeyDown","handleKeyPress","secureTextEntry","isFirstColumn","stepValues","setInputRef","onBlur","onClick","onFocus"],na=t.createContext({slots:[],isFocused:!1,isHovering:!1});function aa(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}var la=e=>{var{id:i,name:n,label:a,value:l="",length:s=6,helperText:d,placeholder:u="",views:h={},size:g="md",shape:m="rounded",variant:p="outline",gap:v=8,type:b="text",error:x=!1,isFocused:f=!1,isHovered:w=!1,isDisabled:E=!1,isReadOnly:y=!1,isAutoFocus:C=!1,setIsHovered:j,inputRef:k,containerRef:I,mirrorSelectionStart:O,mirrorSelectionEnd:S,handlePaste:z,handleChange:H,handleFocus:M,handleBlur:T,handleKeyDown:W,setInputRef:R,onBlur:V=(()=>{}),onClick:L=(()=>{}),onFocus:_=(()=>{})}=e,B=c(e,ia);r.useTheme();var P=!!a,D=o.useMemo(()=>({slots:Array.from({length:s}).map((e,t)=>{var o,r=f&&null!==O&&null!==S&&(O===S&&t===O||t>=O&&t<S),i=void 0!==l[t]?l[t]:null;return{char:i,placeholderChar:void 0!==l[0]?null:null!=(o=null==u?void 0:u[t])?o:null,isActive:r,hasFakeCaret:r&&null===i}}),isFocused:f,isHovering:!E&&w}),[f,w,E,s,S,O,u,l]);return t.useEffect(()=>{C&&k.current&&k.current.focus()},[C,k]),t.useEffect(()=>{if(!document.getElementById("input-otp-style")){var e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){var t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";aa(e.sheet,"@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }"),aa(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),aa(e.sheet,"[data-input-otp]:autofill { "+t+" }"),aa(e.sheet,"[data-input-otp]:-webkit-autofill { "+t+" }"),aa(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),aa(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}},[]),o.createElement(o.Fragment,null,o.createElement("noscript",null,o.createElement("style",null,"\n@keyframes blink {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0; }\n}\n\n[data-input-otp] {\n --nojs-bg: white !important;\n --nojs-fg: black !important;\n\n background-color: var(--nojs-bg) !important;\n color: var(--nojs-fg) !important;\n caret-color: var(--nojs-fg) !important;\n letter-spacing: .25em !important;\n text-align: center !important;\n border: 1px solid var(--nojs-fg) !important;\n border-radius: 4px !important;\n width: 100% !important;\n}\n")),o.createElement(_i,Object.assign({helperText:d,error:x,views:h},B),P&&o.createElement(Qi,Object.assign({htmlFor:i,color:"theme.primary",error:x},h.label),a),o.createElement(r.View,{ref:I,"data-input-otp-container":!0,position:"relative",cursor:E?"default":"text",userSelect:"none",pointerEvents:"none"},o.createElement(na.Provider,{value:D},o.createElement(r.Horizontal,Object.assign({gap:v,width:"100%",justifyContent:"center",minHeight:"xs"===g?"32px":"sm"===g?"36px":"md"===g?"40px":"lg"===g?"48px":"56px"},h.container),D.slots.map((e,t)=>o.createElement(Ni,Object.assign({key:(i||n)+"-"+t,size:g,error:x,shape:m,views:h,variant:p,value:e.char||"",color:"theme.primary",isHovered:w,isDisabled:E,isReadOnly:y,isFocused:e.isActive,showLabel:!1,onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),justifyContent:"center",alignItems:"center",width:"100%",position:"relative",height:"xs"===g?"32px":"sm"===g?"36px":"md"===g?"40px":"lg"===g?"48px":"56px"},h.container),e.char?o.createElement(r.View,Object.assign({textAlign:"center",fontSize:"xs"===g?"14px":"sm"===g?"16px":"md"===g?"18px":"lg"===g?"20px":"24px",fontWeight:"medium"},h.text),"password"===b?"•":e.char):e.placeholderChar?o.createElement(r.View,Object.assign({textAlign:"center",fontSize:"xs"===g?"14px":"sm"===g?"16px":"md"===g?"18px":"lg"===g?"20px":"24px",color:"color.gray.400",opacity:.5},h.text),e.placeholderChar):null,e.hasFakeCaret&&o.createElement(r.View,{position:"absolute",width:"2px",height:"60%",backgroundColor:"theme.primary",animation:"blink 1s step-start infinite",style:{animationName:"blink",animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"step-start"}}))))),o.createElement(r.View,{position:"absolute",inset:0,pointerEvents:"none"},o.createElement(r.Input,Object.assign({ref:e=>R(e),"data-input-otp":!0,"data-input-otp-placeholder-shown":0===l.length||void 0,"data-input-otp-mss":O,"data-input-otp-mse":S,id:i||n,name:n,type:"password"===b?"password":"text",inputMode:"password"!==b?"numeric":void 0,pattern:"[0-9]*",maxLength:s,readOnly:y,disabled:E,placeholder:u,value:l,onChange:H,onKeyDown:W,onPaste:z,onFocus:M,onBlur:T,onClick:L,onMouseOver:()=>j(!0),onMouseLeave:()=>j(!1),autoComplete:"one-time-code","aria-label":"OTP input with "+s+" digits",style:{position:"absolute",inset:0,width:"100%",height:"100%",display:"flex",textAlign:"center",opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}},h.input))))))},sa=["children","autoFocus","initFocus","onChange"],ca=t.createContext({active:!1,focusNextInput:()=>{},setInputRef:()=>{},handleSubmitEditing:()=>{},getReturnKeyType:()=>"next"}),da=["name","type"],ua=e=>{var{name:o,type:r}=e,i=c(e,da),n=t.useContext(ca),{touched:a,errors:s,submitCount:d,values:u,setFieldTouched:h,setFieldValue:g}=l.useFormikContext(),m=e=>{"Enter"===e.key&&(e.preventDefault(),n.focusNextInput(o))},p=["text","password","email","digits"].includes(r),v=l.getIn(a,o)||d>0?l.getIn(s,o):void 0,b=l.getIn(u,o);return Object.assign({},(e=>{switch(e){case"email":return{autoCorrect:"off",inputMode:"email",autoCapitalize:"none"};case"password":return{autoCorrect:"off",secureTextEntry:!0,autoCapitalize:"none"};case"digits":return{inputMode:"tel"};case"numeric":return{inputMode:"numeric"};case"name":return{autoCorrect:"off"};default:return{}}})(r),i,{value:b,error:v,onBlur:()=>{h(o,!0)},onKeyPress:m},p?{onChangeText:e=>{g(o,e),null==i.onChangeText||i.onChangeText(e)}}:{onChange:e=>{g(o,e),null==i.onChange||i.onChange(e)}},n.active?{handleKeyPress:m}:{})},ha=["value"],ga=["value"],ma=["visibleIcon","hiddenIcon"],pa=["isVisible","setIsVisible"],va=["items","placeholder","searchPlaceholder"],ba=(e,t,o)=>Math.min(Math.max(e,t),o),xa=e=>{var o,{min:r=0,max:i=100,step:n=1,value:a=0,defaultValue:l,onChange:s,onDrag:c,orientation:d="horizontal",isDisabled:u=!1,stepValues:h}=e,g=ba(null!=(o=null!=a?a:l)?o:r,r,i),[m,p]=t.useState(g),[v,b]=t.useState(!1),[x,f]=t.useState(!1),w=t.useRef(null),E=t.useRef(null),y=void 0!==a,C=y?a:m;t.useEffect(()=>{y&&p(ba(a,r,i))},[a,y,r,i]);var j=t.useCallback(e=>{var t=ba(e,r,i);y||p(t),s&&t!==C&&s(t),v&&c&&c(t)},[y,r,i,s,C,v,c]),k=t.useCallback(e=>{if(!u&&w.current){var t=w.current.getBoundingClientRect(),o=((e,t,o,r,i,n,a)=>{var l,s=r-o;if(l=ba("horizontal"===n?(e-t.left)/t.width:(t.bottom-e)/t.height,0,1),a&&a.length>0){for(var c=o+l*s,d=a[0],u=Math.abs(c-d),h=1;h<a.length;h++){var g=Math.abs(c-a[h]);g<u&&(u=g,d=a[h])}return d}var m=Math.round((o+l*s)/i)*i;return ba(m,o,r)})("touches"in e?"horizontal"===d?e.touches[0].clientX:e.touches[0].clientY:"horizontal"===d?e.clientX:e.clientY,t,r,i,n,d,h);j(o)}},[r,i,n,d,j,u,h]),I=t.useCallback(e=>{if(!u){e.preventDefault(),b(!0),k(e);var t=e=>{k(e)},o=()=>{b(!1),document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",o),document.removeEventListener("touchmove",t),document.removeEventListener("touchend",o)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",o),document.addEventListener("touchmove",t),document.addEventListener("touchend",o)}},[k,u]),O=t.useCallback(e=>{E.current&&E.current.contains(e.target)||I(e)},[I]),S=t.useCallback(e=>{if(!u){var t=C;switch(e.key){case"ArrowLeft":case"ArrowDown":t=C-n;break;case"ArrowRight":case"ArrowUp":t=C+n;break;case"Home":t=r;break;case"End":t=i;break;default:return}e.preventDefault(),j(t)}},[C,r,i,n,j,u]),z=i-r;return{currentValue:C,isDragging:v,isHovered:x,setIsHovered:f,trackRef:w,thumbRef:E,handleThumbMouseDown:I,handleTrackMouseDown:O,handleKeyDown:S,thumbPositionPercent:0===z?0:(C-r)/z*100}},fa={xs:{height:4,width:"100%"},sm:{height:6,width:"100%"},md:{height:8,width:"100%"},lg:{height:10,width:"100%"},xl:{height:12,width:"100%"}},wa={xs:{width:12,height:12},sm:{width:16,height:16},md:{width:20,height:20},lg:{width:24,height:24},xl:{width:28,height:28}},Ea={sharp:0,rounded:4,pillShaped:24},ya=(e=>({default:{backgroundColor:"color.blueGray.200"},outline:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:"color.blueGray.300"}}))(),Ca={xs:{trackCrossAxisSize:4,thumbSize:12},sm:{trackCrossAxisSize:6,thumbSize:16},md:{trackCrossAxisSize:8,thumbSize:20},lg:{trackCrossAxisSize:10,thumbSize:24},xl:{trackCrossAxisSize:12,thumbSize:28}},ja={horizontal:{width:"100%",minWidth:"120px",height:"auto",flexDirection:"row",paddingVertical:8},vertical:{height:"100%",minHeight:"120px",width:"auto",flexDirection:"column-reverse",paddingHorizontal:8}},ka=["min","max","step","currentValue","stepValues","shape","size","variant","orientation","isDisabled","showValue","showTooltip","backgroundColor","label","helperText","themeMode","shadow","isDragging","isHovered","setIsHovered","trackRef","thumbRef","handleThumbMouseDown","handleTrackMouseDown","handleKeyDown","thumbPositionPercent","ariaLabel","views"],Ia=e=>{var t,i,{min:n=0,max:a=100,step:l=1,currentValue:s,stepValues:d,shape:u="rounded",size:h="md",variant:g="default",orientation:m="horizontal",isDisabled:p=!1,showValue:v=!1,showTooltip:b=!1,backgroundColor:x="theme.primary",label:f,helperText:w,themeMode:E,shadow:y={},isDragging:C,isHovered:j,setIsHovered:k,trackRef:I,thumbRef:O,handleThumbMouseDown:S,handleTrackMouseDown:z,handleKeyDown:H,thumbPositionPercent:M,ariaLabel:T="Slider",views:W={container:{},track:{},progress:{},filledTrack:{},thumb:{},label:{},valueLabel:{},stepMarks:{},tooltip:{}}}=e,R=c(e,ka),{getColor:V,themeMode:L}=r.useTheme(),_=V(x,{themeMode:E||L}),B=V("theme.disabled",{themeMode:E||L}),P=V(ya[g].backgroundColor,{themeMode:E||L}),D="vertical"===m,{trackCrossAxisSize:F,thumbSize:A}=Ca[h]||{trackCrossAxisSize:fa[h].height,thumbSize:wa[h].width||16},G=o.createElement(r.Vertical,Object.assign({width:"100%",gap:8},W.container,R),f&&o.createElement(r.Horizontal,{justifyContent:"space-between",alignItems:"center"},o.createElement(r.Text,Object.assign({fontSize:14,fontWeight:500},W.label),f),v&&o.createElement(r.Text,Object.assign({fontSize:14,color:"color.blueGray.500"},W.valueLabel),s)),o.createElement(r.View,Object.assign({ref:I,position:"relative",cursor:p?"not-allowed":"pointer",opacity:p?.6:1,onMouseDown:z,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1)},fa[h],{borderRadius:Ea[u],backgroundColor:P},ya[g],y,W.track),d&&d.length>0&&o.createElement(o.Fragment,null,d.map(e=>o.createElement(r.View,Object.assign({key:e,position:"absolute",top:"50%",left:(e-n)/(a-n)*100+"%",transform:"translate(-50%, -50%)",width:4,height:4,borderRadius:"50%",backgroundColor:p?B:_,zIndex:1},W.stepMarks)))),o.createElement(r.View,Object.assign({position:"absolute",top:0,left:0,height:"100%",width:M+"%",backgroundColor:p?B:_,borderRadius:Ea[u],transition:"width 0.1s ease-in-out"},W.progress,W.filledTrack)),o.createElement(r.View,Object.assign({ref:O,role:"slider",tabIndex:p?-1:0,"aria-valuemin":n,"aria-valuemax":a,"aria-valuenow":s,"aria-orientation":m,"aria-disabled":p,"aria-label":T,position:"absolute",top:"50%",left:M+"%",borderRadius:"50%",backgroundColor:"color.white",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)",border:"2px solid "+(p?B:_),transition:C?"none":"transform 0.1s ease-in-out",transform:j?"translate(-50%, -50%) scale(1.1)":"translate(-50%, -50%)",zIndex:2,onMouseDown:S,onTouchStart:S,onKeyDown:H},wa[h],W.thumb),b&&(j||C)&&o.createElement(r.View,Object.assign({position:"absolute",bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:8,padding:"4px 8px",backgroundColor:"color.black",color:"color.white",borderRadius:4,fontSize:12,whiteSpace:"nowrap",zIndex:3},W.tooltip),o.createElement(r.Text,Object.assign({},null==(t=W.tooltip)?void 0:t.text),null==s?void 0:s.toFixed(l<1?1:0))))),w&&o.createElement(Vi,null,w)),N=o.createElement(r.Center,Object.assign({},ja[m],{position:"relative",onMouseEnter:()=>!p&&k(!0),onMouseLeave:()=>!p&&k(!1)},R,null==W?void 0:W.container),f&&o.createElement(r.Horizontal,{justifyContent:"space-between",alignItems:"center",marginBottom:8,width:"100%"},o.createElement(r.Text,Object.assign({fontSize:14,fontWeight:500},W.label),f),v&&o.createElement(r.Text,Object.assign({fontSize:14,color:"color.blueGray.500"},W.valueLabel),s)),o.createElement(r.View,Object.assign({ref:I,position:"relative",borderRadius:F/2,backgroundColor:p?B:P,cursor:p?"not-allowed":"pointer",width:D?F+"px":"100%",height:D?"100%":F+"px",onMouseDown:z,onTouchStart:z},null==W?void 0:W.track),d&&d.length>0&&o.createElement(o.Fragment,null,d.map(e=>{var t=(e-n)/(a-n)*100;return o.createElement(r.View,Object.assign({key:e,position:"absolute",width:4,height:4,borderRadius:"50%",backgroundColor:p?B:_,zIndex:1},D?{bottom:t+"%",left:"50%",transform:"translate(-50%, 50%)"}:{left:t+"%",top:"50%",transform:"translate(-50%, -50%)"},W.stepMarks))})),o.createElement(r.View,Object.assign({position:"absolute",borderRadius:F/2,backgroundColor:p?B:_},D?{bottom:0,left:0,width:"100%",height:M+"%"}:{top:0,left:0,height:"100%",width:M+"%"},null==W?void 0:W.filledTrack,null==W?void 0:W.progress)),o.createElement(r.View,Object.assign({ref:O,role:"slider",tabIndex:p?-1:0,"aria-valuemin":n,"aria-valuemax":a,"aria-valuenow":s,"aria-orientation":m,"aria-disabled":p,"aria-label":T,position:"absolute",width:A+"px",height:A+"px",borderRadius:"50%",backgroundColor:p?B:_,border:"2px solid "+V("color.white"),boxShadow:"0 1px 3px rgba(0, 0, 0, 0.2)",cursor:p?"not-allowed":"grab",transform:D?"translateX(-50%)":"translateY(-50%)",zIndex:2,transition:C?"none":"left 0.1s, bottom 0.1s"},D?{left:"50%",bottom:M+"%"}:{top:"50%",left:M+"%"},{onMouseDown:S,onTouchStart:S,onKeyDown:H},null==W?void 0:W.thumb),b&&(j||C)&&o.createElement(r.View,Object.assign({position:"absolute",padding:"4px 8px",backgroundColor:V("color.black"),color:V("color.white"),borderRadius:"4px",fontSize:"12px",whiteSpace:"nowrap",zIndex:3},D?{left:"100%",marginLeft:"8px",bottom:"0",transform:"translateY(50%)"}:{bottom:"100%",left:"50%",marginBottom:"8px",transform:"translateX(-50%)"},null==W?void 0:W.tooltip),o.createElement(r.Text,Object.assign({},null==W||null==(i=W.tooltip)?void 0:i.text),null==s?void 0:s.toFixed(l<1?1:0))))),w&&o.createElement(Vi,{marginTop:8},w));return D||b?N:G},Oa=s.create(e=>({visible:!1,title:"",subtitle:"",variant:"info",isClosable:!1,views:{},action:()=>{},actionText:"",showIcon:!1,timeout:3e3,show:function(t,o,r,i,n,a,l,s,c){return void 0===o&&(o=""),void 0===r&&(r=""),e({visible:!0,variant:t,title:o,subtitle:r,isClosable:i,views:n,action:a,actionText:l,showIcon:s,timeout:c})},hide:()=>e({visible:!1})})),Sa=(e,t,o,r)=>{Oa.getState().show(e,t,o,null==r?void 0:r.isClosable,null==r?void 0:r.views,null==r?void 0:r.action,null==r?void 0:r.actionText,null==r?void 0:r.showIcon,null==r?void 0:r.timeout)},za=()=>{Oa.getState().hide()},Ha={info:{container:{backgroundColor:"color.blue.200",border:"color.blue.400"},icon:{color:"color.blue.500",name:"InformationIcon"},content:{color:"color.blue.500"},close:{color:"color.blue.500",name:"CloseIcon"}},success:{container:{backgroundColor:"color.green.200",border:"color.green.400"},icon:{color:"color.green.500",name:"SuccessIcon"},content:{color:"color.green.500"},close:{color:"color.green.500",name:"CloseIcon"}},error:{container:{backgroundColor:"color.red.200",border:"color.red.400"},icon:{color:"color.red.500",name:"ErrrorIcon"},content:{color:"color.red.500"},close:{color:"color.red.500",name:"CloseIcon"}},warning:{container:{backgroundColor:"color.orange.200",border:"color.orange.400"},icon:{color:"color.orange.500",name:"ErrrorIcon"},content:{color:"color.orange.500"},close:{color:"color.orange.500",name:"CloseIcon"}}},Ma=e=>{var i,n,{variant:a,hide:l,title:s,subtitle:c,theme:d,action:u,actionText:h,showIcon:g=!1,isClosable:m=!1,timeout:p=3e3,views:v}=e;t.useEffect(()=>{if(p&&!m){var e=setTimeout(()=>{l()},p);return()=>{clearTimeout(e)}}},[]);var b=null!=d?d:Ha,x=!(!u||!h),f={borderWidth:1,borderStyle:"solid",borderRadius:8,borderColor:""+b[a].container.border},w={info:"#3b82f6",success:"#4ade80",warning:"#f97316",error:"#ef4444"}[a],E={info:o.createElement(Et,Object.assign({widthHeight:24,color:w},null==v?void 0:v.icon)),success:o.createElement(eo,Object.assign({widthHeight:24,color:w},null==v?void 0:v.icon)),warning:o.createElement(Ot,Object.assign({widthHeight:24,color:w},null==v?void 0:v.icon)),error:o.createElement(Vt,Object.assign({widthHeight:24,color:w},null==v?void 0:v.icon))}[a],y=g&&E;return o.createElement(r.Horizontal,Object.assign({role:"messageContent",gap:16,width:400,flexWrap:"nowrap",position:"relative",alignItems:"center",padding:"14px 24px 14px 14px",color:""+b[a].content.color,backgroundColor:""+b[a].container.backgroundColor,onClick:m?()=>{}:()=>{l()}},f,null==v?void 0:v.container),y&&E,o.createElement(r.Vertical,{gap:8,width:"100%"},o.createElement(T,Object.assign({size:"md",weight:"semiBold"},null==v?void 0:v.title),s),c&&o.createElement(T,Object.assign({size:"sm"},null==v?void 0:v.subtitle),c)),x&&o.createElement(T,Object.assign({marginRight:10,onClick:u,padding:"6px 10px",whiteSpace:"nowrap"},f,null==v?void 0:v.actionText),h),m&&o.createElement(r.View,Object.assign({position:"absolute",zIndex:1e4,right:8,top:6,onClick:()=>{l()}},null==v||null==(i=v.closingIcon)?void 0:i.container),o.createElement(mt,Object.assign({widthHeight:18,color:w},null==v||null==(n=v.closingIcon)?void 0:n.icon))))},Ta=e=>{var{accept:t,isLoading:i=!1,progress:n=0,icon:a,text:l,previewUrl:s,thumbnailUrl:c,errorMessage:d,fileInputRef:u,videoRef:h,selectedFile:g,handleFileChange:m,handleClick:p,containerProps:v,errorMessageProps:b,progressProps:x,videoProps:f,imageProps:w,iconProps:E,textProps:y,fileType:C,previewUrl:j,renderError:k=(e=>{var{errorMessage:t,errorMessageProps:i}=e;return o.createElement(r.Text,Object.assign({color:"red",fontSize:12,marginTop:8},i,null==M?void 0:M.text),t)}),renderText:I=(e=>{var{text:t,textProps:i}=e;return o.createElement(r.Text,Object.assign({marginTop:8},i,null==M?void 0:M.text),t)}),renderFile:O=(e=>{var{selectedFile:t,textProps:i}=e;return t?o.createElement(r.Center,Object.assign({marginTop:8,gap:10,flexDirection:"column"},null==M?void 0:M.container),o.createElement(r.Text,Object.assign({maxLines:2},i,null==M?void 0:M.text),t.name),o.createElement(r.Text,Object.assign({},i,null==M?void 0:M.text),"(",Math.round(t.size/1024)," KB)")):null}),renderVideo:S=(e=>{var{selectedFile:t,videoRef:i,videoProps:n}=e;return o.createElement(r.View,Object.assign({width:"100%",height:"100%",position:"relative"},null==M?void 0:M.view),o.createElement(r.View,Object.assign({as:"video",width:"100%",height:"100%",src:t?URL.createObjectURL(t):void 0,style:{objectFit:"cover"},ref:i},n,null==M?void 0:M.view)))}),renderImage:z=(e=>{var{previewUrl:t,imageProps:i}=e;return console.log("Rendering image with URL:",t),o.createElement(r.View,Object.assign({width:"100%",height:"100%",position:"relative"},null==M?void 0:M.view),o.createElement(r.Image,Object.assign({src:t,alt:"Preview",width:"100%",height:"100%",objectFit:"cover",style:{maxHeight:"100%",maxWidth:"100%"}},i,null==M?void 0:M.image)))}),renderProgress:H=(e=>{var{progress:t,progressProps:i}=e;return o.createElement(r.Horizontal,Object.assign({gap:8,alignItems:"center"},i,null==M?void 0:M.horizontal),o.createElement(r.View,Object.assign({height:4,backgroundColor:"rgba(0,0,0,0.1)",width:"100%",borderRadius:2},null==M?void 0:M.view),o.createElement(r.View,Object.assign({height:4,width:t+"%",borderRadius:2,backgroundColor:"#000"},null==M?void 0:M.view))),o.createElement(r.Text,Object.assign({fontSize:12},null==M?void 0:M.text),t,"%"))}),views:M={}}=e,T=j||s;return o.createElement(r.Center,Object.assign({onClick:p,cursor:"pointer",border:"1px solid rgba(0,0,0,0.1)",borderRadius:8,padding:16,flexDirection:"column",overflow:"hidden",position:"relative",height:g&&100===n?"200px":"auto"},v,null==M?void 0:M.container),100===n&&"image"===C&&T&&z({previewUrl:T,imageProps:w}),100===n&&"video"===C&&c&&S({selectedFile:g,thumbnailUrl:c,videoRef:h,videoProps:f,imageProps:w}),100===n&&"file"===C&&g&&O({selectedFile:g,textProps:y}),n<100&&(a||o.createElement(so,Object.assign({widthHeight:32},E))),!g&&l&&I({text:l,textProps:y}),i&&H({progress:n,progressProps:x}),d&&k({errorMessage:d,errorMessageProps:b}),o.createElement(r.View,Object.assign({as:"input",type:"file",ref:u,onChange:m,accept:t,style:{display:"none"}},null==M?void 0:M.view)))},Wa=["accept","icon","text","maxSize","onFileSelect","validateFile","isLoading","progress","fileType"],Ra=s.create(e=>({modals:[],onHide:e=>e,onShow:(e,t)=>({name:e,props:t}),show:function(t,o,r){void 0===o&&(o={}),void 0===r&&(r={}),e(e=>Object.assign({},e,{modals:[...e.modals,{name:t,props:Object.assign({},o,{isVisible:!0}),overlayProps:r}]}))},hide:t=>{e(e=>t?Object.assign({},e,{modals:e.modals.filter(e=>e.name!==t)}):{modals:[]})},setOnHide:t=>{e(e=>Object.assign({},e,{onHide:t}))},setOnShow:t=>{e(e=>Object.assign({},e,{onShow:t}))}})),Va=e=>{console.log("hideModal",e),Ra.getState().onHide(e),Ra.getState().hide("string"==typeof e?e:void 0)},La={sharp:{borderRadius:0},rounded:{borderRadius:"8px"}},_a={center:{justifyContent:"center",alignItems:"center"},top:{justifyContent:"center",alignItems:"flex-start"},right:{justifyContent:"flex-end",alignItems:"center"},bottom:{justifyContent:"center",alignItems:"flex-end"},left:{justifyContent:"flex-start",alignItems:"center"}},Ba={xs:12,sm:16,md:20,lg:24,xl:28},Pa=["children","blur","isOpen","isClosePrevented","onClose","position","views"],Da=["children","shadow","isFullScreen","shape","views","isOpen"],Fa=["children","buttonColor","iconSize","buttonPosition","views"],Aa=["children","views"],Ga=["children","views"],Na=e=>{var{children:t,blur:i,isOpen:n=!1,isClosePrevented:a=!1,onClose:l=(()=>{}),position:s="center",views:d}=e,u=c(e,Pa),h=()=>{a||l()};return o.createElement(r.Center,Object.assign({position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:h,visibility:n?"visible":"hidden",transition:"all 0.3s ease"},null==d?void 0:d.container),o.createElement(r.View,Object.assign({position:"absolute",top:0,left:0,zIndex:1e3,width:"100vw",height:"100vh",display:"flex",backgroundColor:"color.blackAlpha.500",backdropFilter:i?"blur("+i+"px)":void 0,transition:"all 0.3s ease",onClick:h},_a[s],u,null==d?void 0:d.view),t))},Ua=e=>{var{children:t}=e;return o.createElement(o.Fragment,null,t)};Ua.Overlay=Na,Ua.Container=e=>{var{children:t,shadow:i,isFullScreen:n=!1,shape:a="rounded",views:l}=e,s=c(e,Da),d=void 0!==typeof document?{boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.15)"}:{elevation:5,shadowColor:"rgba(0, 0, 0, 0.15)",shadowOffset:{width:0,height:4},shadowOpacity:1,shadowRadius:16};return o.createElement(r.Vertical,Object.assign({cursor:"default",backgroundColor:"color.white",width:n?"100%":600,height:n?"100%":"fit-content",onClick:e=>{e&&e.stopPropagation&&e.stopPropagation()},transition:"all 0.3s ease"},i||d,La[a],s,null==l?void 0:l.container),t)},Ua.Header=e=>{var{children:t,buttonColor:i="theme.primary",iconSize:n="md",buttonPosition:a="right",views:l}=e,s=c(e,Fa),d=o.createElement(r.View,{onClick:s.onClose?s.onClose:Va},o.createElement(mt,{widthHeight:Ba[n],color:i}));return o.createElement(r.Horizontal,Object.assign({justifyContent:"none"===a?"center":"space-between",alignItems:"center",paddingVertical:16,paddingHorizontal:24,borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200"},s,null==l?void 0:l.header),"left"===a&&d,t,"right"===a&&d)},Ua.Body=e=>{var{children:t,views:i}=e,n=c(e,Aa);return o.createElement(r.View,Object.assign({paddingVertical:16,paddingHorizontal:24,fontSize:"16px",fontWeight:"400",lineHeight:"24px",color:"color.gray.700"},n,null==i?void 0:i.view),t)},Ua.Footer=e=>{var{children:t,views:i}=e,n=c(e,Ga);return o.createElement(r.Horizontal,Object.assign({marginTop:"auto",alignItems:"center",justifyContent:"flex-end",paddingVertical:16,paddingHorizontal:24,borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200",gap:12},n,null==i?void 0:i.container),t)},Ua.Layout=e=>{var{modals:r,onShow:i,onHide:n}=e,a=Ra(e=>e.modals);return i&&Ra.getState().setOnShow(i),n&&Ra.getState().setOnHide(n),0===a.length?null:o.createElement(t.Fragment,null,a.map((e,t)=>{var i=r[e.name];return i?o.createElement(Na,Object.assign({key:t,isOpen:e.props.isVisible,onClose:()=>Va(e.name),blur:5},e.overlayProps,{style:{zIndex:1e3+t}}),o.createElement(i,Object.assign({},e.props))):(console.error(e.name+" modal doesn't exist"),null)}))};var Ya={sm:{padding:"8px 12px",fontSize:"14px",fontWeight:"500"},md:{padding:"12px 16px",fontSize:"16px",fontWeight:"500"},lg:{padding:"16px 20px",fontSize:"18px",fontWeight:"500"}},Ka={default:{backgroundColor:"transparent",color:"color.gray.800",transition:"all 0.2s ease"},filled:{backgroundColor:"color.gray.100",color:"color.gray.800",transition:"all 0.2s ease"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800",transition:"all 0.2s ease"}},qa={horizontal:{flexDirection:"row",gap:"8px"},vertical:{flexDirection:"column",gap:"4px"}},Xa={active:{backgroundColor:"color.blue.50",color:"color.blue.700",fontWeight:"600",borderLeftWidth:3,borderLeftStyle:"solid",borderLeftColor:"color.blue.600"},hover:{backgroundColor:"color.gray.100",transition:"background-color 0.2s ease"},disabled:{opacity:.6,cursor:"not-allowed"}},Za=["href","children","views"],Ja=t.createContext({activeItemId:null,setActiveItemId:()=>{},expandedItemIds:[],toggleExpandedItem:()=>{},isItemExpanded:()=>!1,orientation:"vertical",size:"md",variant:"default"}),Qa=e=>{var{children:t,value:r}=e;return o.createElement(Ja.Provider,{value:r},t)},$a=()=>{var e=t.useContext(Ja);if(!e)throw new Error("useNavigationMenuContext must be used within a NavigationMenuProvider");return e},el=e=>{var{children:t,views:i}=e,{orientation:n}=$a();return o.createElement("horizontal"===n?r.Horizontal:r.Vertical,Object.assign({width:"100%"},qa[n],{transition:"all 0.2s ease",borderRadius:"4px"},null==i?void 0:i.container),t)},tl=t.createContext({itemValue:null,isDisabled:!1}),ol=e=>{var t,{item:i,value:n,isDisabled:a=!1,children:l,views:s}=e,{activeItemId:c,setActiveItemId:d,orientation:u,size:h,variant:g,onItemActivate:m}=$a(),p=(null==i?void 0:i.id)||n,v=c===p,b=(null==i?void 0:i.items)&&i.items.length>0,x=(null==i?void 0:i.disabled)||a,f="horizontal"===u?r.Horizontal:r.Vertical;return l?o.createElement(tl.Provider,{value:{itemValue:p||null,isDisabled:x}},o.createElement(r.View,Object.assign({width:"100%",cursor:x?"not-allowed":"pointer",opacity:x?.6:1,borderRadius:"4px",transition:"all 0.2s ease"},Ya[h],Ka[g],v?Xa.active:{},{_hover:x?{}:Xa.hover},null==s?void 0:s.item),l)):b&&i?o.createElement(f,Object.assign({width:"100%",flexDirection:"column",position:"relative"},null==s?void 0:s.item),o.createElement(rl,{itemId:i.id,disabled:i.disabled,views:s},i.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==s?void 0:s.icon),i.icon),i.label),o.createElement(il,{itemId:i.id},o.createElement(el,null,null==(t=i.items)?void 0:t.map(e=>o.createElement(ol,{key:e.id,item:e}))))):i?o.createElement(r.View,Object.assign({as:i.href?"a":"div",to:i.href,onClick:()=>{x||p&&(d(p),m&&m(p))},cursor:i.disabled?"not-allowed":"pointer",opacity:i.disabled?.6:1,width:"100%",display:"flex",alignItems:"center",borderRadius:"4px",transition:"all 0.2s ease",gap:"8px"},Ya[h],Ka[g],v?Xa.active:{},{_hover:i.disabled?{}:Xa.hover},null==s?void 0:s.item),i.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==s?void 0:s.icon),i.icon),i.label):null},rl=e=>{var{children:t,itemId:i,disabled:n,views:a}=e,{activeItemId:l,toggleExpandedItem:s,isItemExpanded:c,size:d,variant:u}=$a(),h=l===i,g=c(i);return o.createElement(r.View,Object.assign({onClick:e=>{e.preventDefault(),n||s(i)},cursor:n?"not-allowed":"pointer",opacity:n?.5:1,width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:4,transition:"background-color 0.2s ease"},Ya[d],Ka[u],h?Xa.active:{},{_hover:n?{}:Xa.hover},null==a?void 0:a.trigger),o.createElement(r.View,{display:"flex",alignItems:"center"},t),o.createElement(r.View,Object.assign({transition:"transform 0.2s ease",transform:g?"rotate(180deg)":"rotate(0deg)"},null==a?void 0:a.indicator),o.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z",fill:"currentColor"}))))},il=e=>{var{children:t,itemId:i,views:n}=e,{isItemExpanded:a,orientation:l}=$a();return a(i)?o.createElement(r.View,Object.assign({paddingLeft:"vertical"===l?16:0,paddingTop:"horizontal"===l?8:0,overflow:"hidden",width:"100%",position:"horizontal"===l?"absolute":"relative",backgroundColor:"horizontal"===l?"white":"transparent",boxShadow:"horizontal"===l?"0 4px 6px rgba(0, 0, 0, 0.1)":"none",borderRadius:"horizontal"===l?"4px":"0",zIndex:"horizontal"===l?10:1},null==n?void 0:n.container),t):null},nl=e=>{var{items:t,orientation:i,views:n}=e;return t&&0!==t.length?o.createElement("horizontal"===i?r.Horizontal:r.Vertical,Object.assign({width:"100%"},qa[i],null==n?void 0:n.container),o.createElement(el,{views:n},t.map(e=>o.createElement(ol,{key:e.id,item:e,views:n})))):null},al=["items","children","orientation","size","variant","defaultActiveItemId","defaultExpandedItemIds","onItemActivate","views"],ll=e=>{var{items:r,children:i,orientation:n="vertical",size:a="md",variant:l="default",defaultActiveItemId:s=null,defaultExpandedItemIds:d=[],onItemActivate:u,views:h}=e,g=c(e,al),{activeItemId:m,setActiveItemId:p,expandedItemIds:v,toggleExpandedItem:b,isItemExpanded:x}=function(e,o){void 0===e&&(e=null),void 0===o&&(o=[]);var[r,i]=t.useState(e),[n,a]=t.useState(o);return{activeItemId:r,setActiveItemId:i,expandedItemIds:n,toggleExpandedItem:e=>{a(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},isItemExpanded:e=>n.includes(e)}}(s,d);return o.createElement(Qa,{value:{activeItemId:m,setActiveItemId:p,expandedItemIds:v,toggleExpandedItem:b,isItemExpanded:x,orientation:n,size:a,variant:l,onItemActivate:u}},r?o.createElement(nl,Object.assign({items:r,orientation:n,size:a,variant:l,views:h},g)):i)};ll.List=el,ll.Item=ol,ll.Trigger=rl,ll.Content=il,ll.Link=e=>{var{href:i,children:n,views:a}=e,l=c(e,Za),{itemValue:s,isDisabled:d}=(()=>{var e=t.useContext(tl);if(!e)throw new Error("useNavigationMenuItemContext must be used within a NavigationMenuItem");return e})(),{activeItemId:u,setActiveItemId:h,onItemActivate:g}=$a(),m=u===s;return o.createElement(r.View,Object.assign({as:"a",href:d?void 0:i,onClick:e=>{d?e.preventDefault():(s&&(h(s),g&&g(s)),l.onClick&&l.onClick(e))},cursor:d?"not-allowed":"pointer",opacity:d?.5:1,width:"100%",display:"flex",alignItems:"center","aria-current":m?"page":void 0,"aria-disabled":d,"data-active":m?"":void 0,"data-disabled":d?"":void 0},m?{fontWeight:"bold"}:{},null==a?void 0:a.container,l),n)};var sl={},cl=t.createContext({views:sl,onRowClick:()=>{}}),dl=e=>{var{children:t,views:r=sl,onRowClick:i}=e;return o.createElement(cl.Provider,{value:{views:r,onRowClick:i}},t)},ul=()=>t.useContext(cl),hl={table:{width:"100%",borderRadius:"8px",overflow:"hidden",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)",border:"1px solid",borderColor:"color.gray.200",transition:"all 0.2s ease"},thead:{backgroundColor:"color.gray.50",borderBottom:"1px solid",borderBottomColor:"color.gray.200"},th:{padding:"12px 16px",fontWeight:"600",fontSize:"14px",color:"color.gray.700",textAlign:"left"},td:{padding:"12px 16px",fontSize:"14px",borderBottom:"1px solid",borderBottomColor:"color.gray.100"},tr:{transition:"background-color 0.2s ease",_hover:{backgroundColor:"color.gray.50"}},tfoot:{backgroundColor:"color.gray.50",fontWeight:"600",borderTop:"2px solid",borderTopColor:"color.gray.200"},caption:{margin:"8px 0",color:"color.gray.600",fontSize:"14px",fontStyle:"italic"}},gl=e=>{var{views:t}=ul();return o.createElement(r.Element,Object.assign({as:"table",borderCollapse:"collapse"},hl.table,null==t?void 0:t.table,e))},ml=e=>{var{views:t}=ul();return o.createElement(r.Element,Object.assign({as:"thead",textAlign:"left"},hl.thead,null==t?void 0:t.thead,e))},pl=e=>{var{views:t}=ul();return o.createElement(r.Element,Object.assign({as:"th",whiteSpace:"nowrap"},hl.th,null==t?void 0:t.th,e))},vl=e=>{var{views:t,onRowClick:i}=ul();return o.createElement(r.Element,Object.assign({as:"tr"},hl.tr,null==t?void 0:t.tr,{onClick:i},e))},bl=e=>{var{views:t}=ul();return o.createElement(r.Element,Object.assign({as:"td",whiteSpace:"nowrap",fontWeight:e.isFirstColumn?"500":"400"},hl.td,null==t?void 0:t.td,e))},xl=e=>{var{views:t}=ul();return o.createElement(r.Element,Object.assign({as:"tbody"},hl.tbody,null==t?void 0:t.tbody,e))},fl=e=>{var{views:t}=ul();return o.createElement(r.Element,Object.assign({as:"tfoot"},hl.tfoot,null==t?void 0:t.tfoot,e))},wl=e=>{var{views:t}=ul();return o.createElement(r.Element,Object.assign({as:"caption"},hl.caption,null==t?void 0:t.caption,e))},El=e=>{var{children:t,views:r,onClick:i}=e;return o.createElement(dl,{views:r,onRowClick:i},t)};El.Head=ml,El.HeadCell=pl,El.Body=xl,El.Row=vl,El.Cell=bl,El.Footer=fl,El.Caption=wl,El.Container=gl,El.Template=e=>{var{data:t,columns:r,footer:i,caption:n}=e;return o.createElement(gl,{role:"Table"},n&&o.createElement(wl,null,n),o.createElement(ml,null,o.createElement(vl,null,r.map(e=>o.createElement(pl,{key:e.field},e.title)))),o.createElement(xl,null,t.map((e,t)=>o.createElement(vl,{key:t},r.map((t,r)=>o.createElement(bl,{key:t.field,isFirstColumn:0===r},e[t.field]))))),i&&o.createElement(fl,null,o.createElement(vl,null,i.map((e,t)=>o.createElement(bl,Object.assign({key:t},e.props),e.value)))))};var yl=e=>{var{tab:t,isActive:i,onClick:n,iconPosition:a="left",tabStyles:l,textStyles:s}=e;return o.createElement(r.Element,Object.assign({as:"div",role:"tab","aria-selected":i,tabIndex:i?0:-1},{display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 16px",cursor:"pointer",borderTopLeftRadius:"4px",borderTopRightRadius:"4px",borderBottomLeftRadius:0,borderBottomRightRadius:0,borderWidth:"1px",borderStyle:"solid",borderColor:i?"theme.primary":"transparent",borderBottomColor:i?"transparent":"color.gray.200",backgroundColor:i?"color.white":"transparent",color:i?"theme.primary":"color.gray.600",fontWeight:"normal",position:"relative",on:{hover:{color:"theme.primary"}}},l,{flexDirection:(()=>{switch(a){case"top":return"column";case"bottom":return"column-reverse";case"right":return"row-reverse";case"left":default:return"row"}})(),gap:["top","bottom"].includes(a)?"4px":"8px",onClick:n,"data-state":i?"active":"inactive"}),t.icon&&o.createElement(r.Element,null,t.icon),o.createElement(r.Text,Object.assign({},s),t.title))},Cl=e=>{var{tabs:t=[],activeTab:i,handleTabClick:n,views:a={},renderTab:l,renderContent:s,iconPosition:c="left"}=e;return i?o.createElement(r.Vertical,Object.assign({width:"100%",height:"100%"},a.container),o.createElement(r.Horizontal,Object.assign({},a.headerTabs),t.map(e=>{var t=e.title===i.title,r=()=>n(e);return l?l(e,t,r):o.createElement(yl,{key:e.title,tab:e,isActive:t,onClick:r,iconPosition:c,tabStyles:Object.assign({},a.tab,t?a.activeTab:{}),textStyles:Object.assign({},a.title,t?a.activeText:{})})})),o.createElement(r.View,Object.assign({width:"100%",height:"100%"},a.content),s?s(i):i.content)):null},jl=o.memo(e=>{var{tabs:r,views:i,initialTabValue:n,onTabChange:a,renderTab:l,renderContent:s,iconPosition:c="left"}=e,{activeTab:d,setActiveTab:u}=((e,o)=>{var r=()=>{if(e&&0!==e.length){if(void 0!==o){var t=e.find(e=>e.title===o);if(t)return t}return e[0]}},[i,n]=t.useState(r);return t.useEffect(()=>{var t=r(),a=i&&e.some(e=>e.title===i.title);t&&(!a||void 0!==o&&(null==i?void 0:i.title)!==o)?n(t):!t&&i&&n(void 0)},[e,o]),{activeTab:i,setActiveTab:n}})(r,n);return o.createElement(Cl,{tabs:r,views:i,activeTab:d,handleTabClick:e=>{(null==d?void 0:d.title)!==e.title&&(u(e),a&&a(e))},renderTab:l,renderContent:s,iconPosition:c})}),kl=["children","shape","variant","isHovered","setIsHovered","isDisabled","isToggle","setIsToggled","onToggle","views"],Il=e=>{var{children:t,shape:i="rounded",variant:n="ghost",isHovered:a,setIsHovered:l,isDisabled:s,isToggle:d,setIsToggled:u,onToggle:h,views:g}=e,m=c(e,kl),p=s?"theme.disabled":"color.trueGray.400",v=!(!d&&!a);return o.createElement(r.Center,Object.assign({role:"Toggle",padding:"pillShaped"===i?"10px 12px":"8px",width:"fit-content",color:v?"color.white":p,backgroundColor:v?p:"transparent",onMouseEnter:()=>l(!a),onMouseLeave:()=>l(!1),cursor:s?"not-allowed":"pointer",borderRadius:"pillShaped"===i?"50px":"8px",onClick:()=>{s||u(e=>{var t=!e;return h&&h(t),t})}},{outline:{borderWidth:1,borderStyle:"solid",borderColor:"color.trueGray.400"},link:{borderWidth:1,borderStyle:"solid",borderColor:v?p:"transparent",textDecoration:"underline"},ghost:{}}[n],m,null==g?void 0:g.container),t)},Ol=["children","shape","variant","isDisabled","isToggled","onToggle"],Sl=e=>{var{children:r,shape:i,variant:n,isDisabled:a,isToggled:l=!1,onToggle:s}=e,d=c(e,Ol),{isHovered:u,setIsHovered:h,isToggle:g,setIsToggled:m}=(e=>{var[o,r]=t.useState(!1),[i,n]=t.useState(e);return{isHovered:o,setIsHovered:r,isToggle:i,setIsToggled:n}})(l);return t.useEffect(()=>{m(l)},[l]),o.createElement(Il,Object.assign({shape:i,variant:n,isDisabled:a,isHovered:u,setIsHovered:h,isToggle:g,setIsToggled:m,onToggle:s},d),r)},zl=e=>{var{items:i,onToggleChange:n,activeToggles:a,setActiveToggles:l,shape:s="rounded",variant:c="ghost",views:d}=e,u=t.useCallback((e,t)=>{l(o=>{var r;return r=t?o.includes(e)?o:[...o,e]:o.filter(t=>t!==e),null==n||n(r),r})},[n,l]);return o.createElement(r.Horizontal,Object.assign({role:"ToggleGroup",display:"flex",gap:5},null==d?void 0:d.container),i.map(e=>o.createElement(Sl,{role:"toggle-"+e.id,key:e.id,shape:s,variant:c,isToggled:a.includes(e.id)||e.isActive,onToggle:t=>u(e.id,t),isDisabled:e.isDisabled,views:null==d?void 0:d.toggle},e.value)))},Hl=e=>{var{items:t,renderItem:i,containerProps:n,itemProps:a,draggedIndex:l,itemRefs:s,handleDragStart:c,views:d}=e;return o.createElement(r.View,Object.assign({overflow:"hidden",position:"relative"},n,null==d?void 0:d.container),t.map((e,t)=>o.createElement(r.View,Object.assign({key:t,ref:e=>s.current[t]=e,onMouseDown:e=>c(e,t),onTouchStart:e=>c(e,t),position:"relative",cursor:"grab",transition:"transform 0.2s",backgroundColor:l===t?"color.gray.100":"transparent"},a,null==d?void 0:d.item),i?i(e,t):e)))},Ml=e=>{var{items:r,draggedIndex:i,itemRefs:n,handleDragStart:a}=(e=>{var{items:o,onChange:r}=e,[i,n]=t.useState(o),[a,l]=t.useState(null),[s,c]=t.useState(null),d=t.useRef({x:0,y:0}),u=t.useRef([]),h=t.useCallback((e,t)=>{e.preventDefault(),document.body.style.cursor="grabbing",d.current={x:"touches"in e?e.touches[0].clientX:e.clientX,y:"touches"in e?e.touches[0].clientY:e.clientY},c(t),l(i[t])},[i]),g=t.useCallback(e=>{if(null!==s){var t="touches"in e?e.touches[0].clientX:e.clientX,o="touches"in e?e.touches[0].clientY:e.clientY,a=u.current[s];if(a){a.style.transform="translate("+(t-d.current.x)+"px, "+(o-d.current.y)+"px)",a.style.zIndex="1000";var l=u.current.findIndex((e,t)=>{if(!e||t===s)return!1;var r=e.getBoundingClientRect();return o>=r.top&&o<=r.bottom});if(-1!==l&&l!==s){var h=[...i],[g]=h.splice(s,1);h.splice(l,0,g),n(h),c(l),null==r||r(h),d.current={x:t,y:o}}}}},[s,i,r]),m=t.useCallback(()=>{document.body.style.cursor="",u.current.forEach(e=>{e&&(e.style.transform="",e.style.zIndex="")}),c(null),l(null)},[s]);return t.useEffect(()=>(null!==s&&(window.addEventListener("mousemove",g),window.addEventListener("touchmove",g),window.addEventListener("mouseup",m),window.addEventListener("touchend",m)),()=>{window.removeEventListener("mousemove",g),window.removeEventListener("touchmove",g),window.removeEventListener("mouseup",m),window.removeEventListener("touchend",m)}),[s,g,m]),{items:i,draggedItem:a,draggedIndex:s,itemRefs:u,handleDragStart:h}})(e);return o.createElement(Hl,Object.assign({},e,{items:r,draggedIndex:i,itemRefs:n,handleDragStart:a}))},Tl=Ml,Wl={sm:{padding:"6px 8px",fontSize:"14px",minWidth:"160px"},md:{padding:"8px 12px",fontSize:"16px",minWidth:"180px"},lg:{padding:"10px 16px",fontSize:"18px",minWidth:"200px"}},Rl={default:{backgroundColor:"color.white",color:"color.gray.800"},filled:{backgroundColor:"color.gray.100",color:"color.gray.800"},outline:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800"}},Vl={hover:{backgroundColor:"color.gray.100"},active:{backgroundColor:"color.gray.200"},disabled:{opacity:.5,cursor:"not-allowed"}},Ll=["children","views"],_l=["items","side","align","views"],Bl=["item","views"],Pl=["views"],Dl=["trigger","items","side","align","views","themeMode"],Fl=t.createContext({isOpen:!1,setIsOpen:()=>{},activeSubmenuId:null,setActiveSubmenuId:()=>{},size:"md",variant:"default"}),Al=e=>{var{children:t,value:r}=e;return o.createElement(Fl.Provider,{value:r},t)},Gl=()=>{var e=t.useContext(Fl);if(!e)throw new Error("useDropdownMenuContext must be used within a DropdownMenuProvider");return e},Nl=e=>{var{children:t,views:i}=e,n=c(e,Ll),{isOpen:a,setIsOpen:l}=Gl();return o.createElement(r.View,Object.assign({id:"dropdown-trigger",onClick:e=>{e.stopPropagation(),l(!a)},cursor:"pointer",position:"relative",display:"inline-block"},null==i?void 0:i.container,n),t)},Ul=e=>{var{items:t,side:i="bottom",align:n="start",views:a}=e,l=c(e,_l),{isOpen:s,variant:d}=Gl();return s?o.createElement(r.View,Object.assign({id:"dropdown-menu",position:"absolute",zIndex:1e3,borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden"},function(e,t){return void 0===e&&(e="bottom"),void 0===t&&(t="start"),{top:Object.assign({bottom:"100%",marginBottom:"8px"},"start"===t&&{left:0},"center"===t&&{left:"50%",transform:"translateX(-50%)"},"end"===t&&{right:0}),right:Object.assign({left:"100%",marginLeft:"8px"},"start"===t&&{top:0},"center"===t&&{top:"50%",transform:"translateY(-50%)"},"end"===t&&{bottom:0}),bottom:Object.assign({top:"100%",marginTop:"8px"},"start"===t&&{left:0},"center"===t&&{left:"50%",transform:"translateX(-50%)"},"end"===t&&{right:0}),left:Object.assign({right:"100%",marginRight:"8px"},"start"===t&&{top:0},"center"===t&&{top:"50%",transform:"translateY(-50%)"},"end"===t&&{bottom:0})}[e]}(i,n),Rl[d],null==a?void 0:a.menu,l),t.map((e,t)=>e.divider?o.createElement(Kl,{key:"divider-"+t,views:a}):o.createElement(Yl,{key:e.id,item:e,views:a}))):null},Yl=e=>{var{item:i,views:n}=e,a=c(e,Bl),{activeSubmenuId:l,setActiveSubmenuId:s,size:d}=Gl(),[u,h]=t.useState(!1),g=i.items&&i.items.length>0,m=l===i.id,p=t.useRef(null);return o.createElement(r.View,Object.assign({ref:p,display:"flex",alignItems:"center",cursor:i.disabled?"not-allowed":"pointer",opacity:i.disabled?.5:1,position:"relative"},Wl[d],{_hover:i.disabled?{}:Vl.hover,backgroundColor:u&&!i.disabled?"color.gray.100":"transparent",onMouseEnter:()=>{h(!0),g&&s(i.id)},onMouseLeave:()=>{h(!1)},onClick:e=>{e.stopPropagation(),i.disabled||!g&&i.onClick&&i.onClick()}},null==n?void 0:n.item,a),i.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==n?void 0:n.icon),i.icon),o.createElement(r.View,{flexGrow:1},i.label),g&&o.createElement(r.View,Object.assign({marginLeft:8},null==n?void 0:n.submenuIndicator),o.createElement("svg",{width:"16px",height:"16px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z",fill:"currentColor"}))),m&&g&&o.createElement(Ul,{items:i.items||[],side:"right",align:"start",views:n}))},Kl=e=>{var{views:t}=e,i=c(e,Pl);return o.createElement(r.View,Object.assign({height:"1px",backgroundColor:"color.gray.200",margin:"4px 0"},null==t?void 0:t.divider,i))},ql=e=>{var{trigger:t,items:i,side:n="bottom",align:a="start",views:l}=e,s=c(e,Dl);return o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},null==l?void 0:l.container,s),o.createElement(Nl,{views:l},t),o.createElement(Ul,{items:i,side:n,align:a,views:l}))},Xl=["trigger","items","size","variant","side","align","defaultOpen","views"],Zl=e=>{var{trigger:r,items:i,size:n="md",variant:a="default",side:l="bottom",align:s="start",defaultOpen:d=!1,views:u}=e,h=c(e,Xl),{isOpen:g,setIsOpen:m,activeSubmenuId:p,setActiveSubmenuId:v}=function(e){void 0===e&&(e=!1);var[o,r]=t.useState(e),[i,n]=t.useState(null);return t.useEffect(()=>{var e=e=>{!e.composedPath().some(e=>"dropdown-menu"===(null==e?void 0:e.id)||"dropdown-trigger"===(null==e?void 0:e.id))&&o&&(r(!1),n(null))},t=()=>{o&&(r(!1),n(null))},i=e=>{"Escape"===e.key&&o&&(r(!1),n(null))};return document.addEventListener("mousedown",e),window.addEventListener("resize",t),document.addEventListener("keydown",i),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",t),document.removeEventListener("keydown",i)}},[o]),{isOpen:o,setIsOpen:r,activeSubmenuId:i,setActiveSubmenuId:n}}(d);return o.createElement(Al,{value:{isOpen:g,setIsOpen:m,activeSubmenuId:p,setActiveSubmenuId:v,size:n,variant:a}},o.createElement(ql,Object.assign({trigger:r,items:i,side:l,align:s,views:u},h)))};Zl.Trigger=Nl,Zl.Content=Ul,Zl.Item=Yl,Zl.Divider=Kl;var Jl=e=>e+"-"+Math.random().toString(36).substring(2,9),Ql=["children","views","asChild"],$l=["children","views","side","align","sideOffset","style","backgroundColor","borderRadius","boxShadow","padding","minWidth","maxWidth"],es=t.createContext({isOpen:!1,openCard:()=>{},closeCard:()=>{},cancelCloseTimer:()=>{},triggerRef:{current:null},contentRef:{current:null},contentId:"",triggerId:""}),ts=e=>{var{children:t,value:r}=e;return o.createElement(es.Provider,{value:r},t)},os=()=>{var e=t.useContext(es);if(!e)throw new Error("useHoverCardContext must be used within a HoverCardProvider");return e},rs=["children","views","openDelay","closeDelay"],is=e=>{var{children:i,views:n,openDelay:a,closeDelay:l}=e,s=c(e,rs),d=function(e){var{openDelay:o=200,closeDelay:r=300}=void 0===e?{}:e,[i,n]=t.useState(!1),a=t.useRef(null),l=t.useRef(null),s=t.useRef(null),c=t.useRef(null),d=t.useMemo(()=>Jl("hovercard-content"),[]),u=t.useMemo(()=>Jl("hovercard-trigger"),[]),h=t.useCallback(()=>{a.current&&(clearTimeout(a.current),a.current=null),l.current&&(clearTimeout(l.current),l.current=null)},[]),g=t.useCallback(()=>{h(),i||(a.current=setTimeout(()=>{n(!0)},o))},[i,o,h]),m=t.useCallback(()=>{h(),i&&(l.current=setTimeout(()=>{n(!1)},r))},[i,r,h]),p=t.useCallback(()=>{l.current&&(clearTimeout(l.current),l.current=null)},[]);return t.useEffect(()=>()=>h(),[h]),{isOpen:i,openCard:g,closeCard:m,cancelCloseTimer:p,triggerRef:s,contentRef:c,contentId:d,triggerId:u}}({openDelay:a,closeDelay:l});return o.createElement(ts,{value:d},o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},null==n?void 0:n.container,s),i))};is.Trigger=e=>{var{children:i,views:n,asChild:a=!1}=e,l=c(e,Ql),{openCard:s,closeCard:d,triggerRef:u,contentId:h,triggerId:g}=os(),m=Object.assign({ref:u,onMouseEnter:()=>s(),onMouseLeave:()=>d(),onFocus:()=>s(),onBlur:()=>d(),id:g,"aria-describedby":h},null==n?void 0:n.container,l);if(a&&t.isValidElement(i)){var p=t.Children.only(i);return t.cloneElement(p,Object.assign({},m,p.props))}return o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},m),i)},is.Content=e=>{var{children:i,views:n,side:a="bottom",align:l="center",sideOffset:s=8,style:d,backgroundColor:u="white",borderRadius:h="4px",boxShadow:g="0px 2px 8px rgba(0, 0, 0, 0.15)",padding:m="12px",minWidth:p="200px",maxWidth:v="300px"}=e,b=c(e,$l),{isOpen:x,cancelCloseTimer:f,closeCard:w,contentRef:E,triggerRef:y,contentId:C,triggerId:j}=os(),k=function(e,t,o,r){if(void 0===t&&(t="bottom"),void 0===o&&(o="center"),void 0===r&&(r=8),!e)return{position:"absolute",opacity:0,pointerEvents:"none"};var i={position:"absolute",zIndex:1e3};switch(t){case"top":i.bottom="100%",i.marginBottom=r,"start"===o?i.left=0:"center"===o?(i.left="50%",i.transform="translateX(-50%)"):"end"===o&&(i.right=0);break;case"right":i.left="100%",i.marginLeft=r,"start"===o?i.top=0:"center"===o?(i.top="50%",i.transform="translateY(-50%)"):"end"===o&&(i.bottom=0);break;case"bottom":i.top="100%",i.marginTop=r,"start"===o?i.left=0:"center"===o?(i.left="50%",i.transform="translateX(-50%)"):"end"===o&&(i.right=0);break;case"left":i.right="100%",i.marginRight=r,"start"===o?i.top=0:"center"===o?(i.top="50%",i.transform="translateY(-50%)"):"end"===o&&(i.bottom=0)}return i}((e=>{var[o,r]=t.useState(null),i=t.useCallback(()=>{e.current&&r(e.current.getBoundingClientRect())},[e]);return t.useLayoutEffect(()=>{if(e.current)return i(),window.addEventListener("resize",i),window.addEventListener("scroll",i),()=>{window.removeEventListener("resize",i),window.removeEventListener("scroll",i)}},[e,i]),o})(y),a,l,s);return x?o.createElement(r.View,Object.assign({ref:E,id:C,role:"tooltip","aria-labelledby":j,onMouseEnter:()=>f(),onMouseLeave:()=>w(),backgroundColor:u,borderRadius:h,boxShadow:g,padding:m,minWidth:p,maxWidth:v,zIndex:1e3,style:Object.assign({},k,d)},null==n?void 0:n.container,b),i):null};var ns={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 16px",fontSize:"18px"}},as={default:{backgroundColor:"transparent",color:"color.gray.800"},filled:{backgroundColor:"color.gray.100",color:"color.gray.800"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800"}},ls={horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},ss={active:{backgroundColor:"color.gray.200",fontWeight:"bold"},hover:{backgroundColor:"color.gray.100"},disabled:{opacity:.5,cursor:"not-allowed"}},cs=["children","orientation","size","variant","views"],ds=t.createContext({activeMenuId:null,setActiveMenuId:()=>{},openMenuId:null,setOpenMenuId:()=>{},isMenuOpen:()=>!1,toggleMenu:()=>{},orientation:"horizontal",size:"md",variant:"default"}),us=()=>t.useContext(ds),hs=e=>{var{value:t,children:r}=e;return o.createElement(ds.Provider,{value:t},r)},gs=e=>{var{children:t,orientation:i="horizontal",size:n="md",variant:a="default",views:l}=e,s=c(e,cs);return o.createElement("horizontal"===i?r.Horizontal:r.Vertical,Object.assign({role:"menubar","aria-orientation":i},ls[i],as[a],null==l?void 0:l.container,s),t)},ms=e=>{var{children:t,id:i,disabled:n=!1,views:a}=e,{orientation:l}=us();return o.createElement("horizontal"===l?r.Horizontal:r.Vertical,Object.assign({role:"none",position:"relative",opacity:n?.5:1,pointerEvents:n?"none":"auto"},null==a?void 0:a.menu),o.Children.map(t,e=>o.isValidElement(e)?o.cloneElement(e,Object.assign({},e.props,{menuId:i})):e))},ps=e=>{var{children:t,menuId:i,disabled:n=!1,views:a}=e,{activeMenuId:l,setActiveMenuId:s,toggleMenu:c,isMenuOpen:d,size:u}=us(),h=l===i,g=d(i);return o.createElement(r.View,Object.assign({id:"menubar-trigger",role:"menuitem","aria-haspopup":"true","aria-expanded":g,userSelect:"none",display:"flex",alignItems:"center",justifyContent:"space-between"},ns[u],h?ss.active:{},n?ss.disabled:{},{_hover:n?{}:ss.hover,onClick:()=>{n||(s(i),c(i))}},null==a?void 0:a.trigger),t)},vs=e=>{var{children:t,menuId:i,views:n}=e,{isMenuOpen:a,orientation:l}=us();return a(i)?o.createElement(r.View,Object.assign({id:"menubar-content",role:"menu",position:"absolute",zIndex:1e3,minWidth:"200px",backgroundColor:"color.white",borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden"},(e=>"horizontal"===e?{top:"100%",left:0}:{top:0,left:"100%"})(l),null==n?void 0:n.content),t):null},bs=e=>{var{children:t,icon:i,disabled:n=!1,onClick:a,views:l}=e,{size:s}=us();return o.createElement(r.View,Object.assign({role:"menuitem",cursor:n?"not-allowed":"pointer",userSelect:"none",display:"flex",alignItems:"center",opacity:n?.5:1},ns[s],{_hover:n?{}:ss.hover,onClick:()=>{!n&&a&&a()}},null==l?void 0:l.item),i&&o.createElement(r.View,Object.assign({marginRight:8},null==l?void 0:l.icon),i),t)},xs=e=>{var{views:t}=e;return o.createElement(r.View,Object.assign({role:"separator",height:"1px",backgroundColor:"color.gray.200",margin:"4px 0"},null==t?void 0:t.separator))},fs=e=>{var{items:t,orientation:i,size:n,variant:a,views:l}=e;return o.createElement(gs,{orientation:i,size:n,variant:a,views:l},t.map(e=>o.createElement(ms,{key:e.id,id:e.id,disabled:e.disabled,views:l},o.createElement(ps,{menuId:e.id,views:l},e.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==l?void 0:l.icon),e.icon),e.label),e.items&&e.items.length>0&&o.createElement(vs,{menuId:e.id,views:l},e.items.map((e,t)=>e.separator?o.createElement(xs,{key:"separator-"+t,views:l}):o.createElement(bs,{key:e.id,id:e.id,icon:e.icon,disabled:e.disabled,onClick:e.onClick,views:l},e.label))))))},ws=["items","orientation","size","variant","defaultActiveMenuId","defaultOpenMenuId","views"],Es=e=>{var{items:r,orientation:i="horizontal",size:n="md",variant:a="default",defaultActiveMenuId:l=null,defaultOpenMenuId:s=null,views:d}=e,u=c(e,ws),{activeMenuId:h,setActiveMenuId:g,openMenuId:m,setOpenMenuId:p,isMenuOpen:v,toggleMenu:b}=function(e,o){void 0===e&&(e=null),void 0===o&&(o=null);var[r,i]=t.useState(e),[n,a]=t.useState(o);return t.useEffect(()=>{var e=e=>{!e.composedPath().some(e=>"menubar-content"===(null==e?void 0:e.id)||"menubar-trigger"===(null==e?void 0:e.id))&&null!==n&&a(null)},t=e=>{"Escape"===e.key&&null!==n&&a(null)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[n]),{activeMenuId:r,setActiveMenuId:i,openMenuId:n,setOpenMenuId:a,isMenuOpen:e=>n===e,toggleMenu:e=>{a(t=>t===e?null:e)}}}(l,s);return o.createElement(hs,{value:{activeMenuId:h,setActiveMenuId:g,openMenuId:m,setOpenMenuId:p,isMenuOpen:v,toggleMenu:b,orientation:i,size:n,variant:a}},o.createElement(fs,Object.assign({items:r,orientation:i,size:n,variant:a,views:d},u)))};Es.Root=gs,Es.Menu=ms,Es.Trigger=ps,Es.Content=vs,Es.Item=bs,Es.Separator=xs;var ys={sm:{fontSize:"12px",padding:"4px 8px",minWidth:"28px",height:"28px"},md:{fontSize:"14px",padding:"6px 12px",minWidth:"36px",height:"36px"},lg:{fontSize:"16px",padding:"8px 16px",minWidth:"44px",height:"44px"}},Cs={default:{backgroundColor:"transparent",color:"color.gray.800",_hover:{backgroundColor:"color.gray.100"}},filled:{backgroundColor:"color.gray.100",color:"color.gray.800",_hover:{backgroundColor:"color.gray.200"}},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800",_hover:{backgroundColor:"color.gray.100"}}},js={rounded:{borderRadius:"4px"},square:{borderRadius:"0px"},circular:{borderRadius:"50%"}},ks={backgroundColor:"color.blue.500",color:"color.white",_hover:{backgroundColor:"color.blue.600"}},Is={opacity:.5,cursor:"not-allowed",_hover:{backgroundColor:"transparent"}},Os=["currentPage","totalPages","onPageChange","pageSize","pageSizeOptions","onPageSizeChange","showPageSizeSelector","showPageInfo","maxPageButtons","showFirstLastButtons","size","variant","shape","visiblePageNumbers","views"],Ss=e=>{var{currentPage:t,totalPages:i,onPageChange:n,pageSize:a=10,pageSizeOptions:l=[{label:"10 / page",value:10},{label:"20 / page",value:20},{label:"50 / page",value:50},{label:"100 / page",value:100}],onPageSizeChange:s,showPageSizeSelector:d=!1,showPageInfo:u=!0,maxPageButtons:h=5,showFirstLastButtons:g=!1,size:m="md",variant:p="default",shape:v="rounded",visiblePageNumbers:b,views:x}=e,f=c(e,Os),w=e=>{e<1||e>i||e===t||n(e)};return o.createElement(r.Horizontal,Object.assign({alignItems:"center",gap:8},null==x?void 0:x.container,f),g&&o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:1===t?"not-allowed":"pointer"},ys[m],Cs[p],js[v],1===t?Is:{},{onClick:()=>w(1),"aria-label":"First page",disabled:1===t},null==x?void 0:x.navigationButton),o.createElement(at,{orientation:"left",widthHeight:16}),o.createElement(at,{orientation:"left",widthHeight:16,marginLeft:"-8px"})),o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:1===t?"not-allowed":"pointer"},ys[m],Cs[p],js[v],1===t?Is:{},{onClick:()=>w(t-1),"aria-label":"Previous page",disabled:1===t},null==x?void 0:x.navigationButton),o.createElement(at,{orientation:"left",widthHeight:16})),b.map((e,i)=>((e,i)=>{if("..."===e)return o.createElement(r.View,Object.assign({key:"ellipsis-"+i,display:"flex",alignItems:"center",justifyContent:"center"},ys[m],null==x?void 0:x.ellipsis),"...");var n=e===t;return o.createElement(r.View,Object.assign({key:"page-"+e,as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:n?"default":"pointer"},ys[m],Cs[p],js[v],n?ks:{},{onClick:()=>w(e),"aria-label":"Page "+e,"aria-current":n?"page":void 0},n?null==x?void 0:x.activePageButton:null==x?void 0:x.pageButton),e)})(e,i)),o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:t===i?"not-allowed":"pointer"},ys[m],Cs[p],js[v],t===i?Is:{},{onClick:()=>w(t+1),"aria-label":"Next page",disabled:t===i},null==x?void 0:x.navigationButton),o.createElement(at,{orientation:"right",widthHeight:16})),g&&o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:t===i?"not-allowed":"pointer"},ys[m],Cs[p],js[v],t===i?Is:{},{onClick:()=>w(i),"aria-label":"Last page",disabled:t===i},null==x?void 0:x.navigationButton),o.createElement(at,{orientation:"right",widthHeight:16}),o.createElement(at,{orientation:"right",widthHeight:16,marginLeft:"-8px"})),u&&o.createElement(T,Object.assign({marginLeft:16,color:"color.gray.600"},null==x?void 0:x.pageInfo),"Page ",t," of ",i),d&&s&&o.createElement(r.View,Object.assign({as:"select",marginLeft:16,padding:"4px 8px",borderRadius:"4px",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",backgroundColor:"color.white",cursor:"pointer",value:a,onChange:e=>{s&&s(Number(e.target.value))}},null==x?void 0:x.pageSizeSelector),l.map(e=>o.createElement("option",{key:e.value,value:e.value},e.label))))},zs=["currentPage","totalPages","onPageChange","pageSize","pageSizeOptions","onPageSizeChange","showPageSizeSelector","showPageInfo","maxPageButtons","showFirstLastButtons","size","variant","shape","views"],Hs=(e=>({solid:"solid",dashed:"dashed",dotted:"dotted"}))(),Ms={thin:"1px",medium:"2px",thick:"4px"},Ts={transition:"all 0.2s ease"},Ws={fontSize:"14px",color:"color.gray.500",paddingHorizontal:"8px",transition:"all 0.2s ease"},Rs=["orientation","variant","thickness","color","spacing","label","decorative","views","themeMode"],Vs=e=>{var{orientation:t="horizontal",variant:i="solid",thickness:n="thin",color:a,spacing:l="0px",label:s,decorative:d=!1,views:u}=e,h=c(e,Rs),g=(r.useTheme(),a||"color.gray.200"),m=Hs[i],p=Ms[n],v=d?{"aria-hidden":"true"}:{role:"separator","aria-orientation":t};return s&&"horizontal"===t?o.createElement(r.Horizontal,Object.assign({alignItems:"center",justifyContent:"center",width:"100%",padding:l},v,h),o.createElement(r.View,Object.assign({height:"0px",flexGrow:1,borderTopWidth:p,borderTopStyle:m,borderTopColor:g},Ts,null==u?void 0:u.container)),o.createElement(T,Object.assign({},Ws,null==u?void 0:u.label),s),o.createElement(r.View,Object.assign({height:"0px",flexGrow:1,borderTopWidth:p,borderTopStyle:m,borderTopColor:g},Ts,null==u?void 0:u.container))):o.createElement(r.View,Object.assign("horizontal"===t?{height:"0px",width:"100%",borderTopWidth:p,borderTopStyle:m,borderTopColor:g,padding:l}:{width:"0px",height:"100%",borderLeftWidth:p,borderLeftStyle:m,borderLeftColor:g,padding:l},Ts,v,null==u?void 0:u.container,h))},Ls=e=>o.createElement(Vs,Object.assign({},e)),_s=Ls,Bs=Ls,Ps={sm:{expandedWidth:"240px",collapsedWidth:"64px"},md:{expandedWidth:"280px",collapsedWidth:"72px"},lg:{expandedWidth:"320px",collapsedWidth:"80px"},xl:{expandedWidth:"360px",collapsedWidth:"88px"}},Ds=(e=>({default:{backgroundColor:"color.white",color:"color.gray.800",transition:"all 0.2s ease"},filled:{backgroundColor:"color.gray.100",color:"color.gray.800",transition:"all 0.2s ease"},outline:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800",transition:"all 0.2s ease"},subtle:{backgroundColor:"color.gray.50",color:"color.gray.800",transition:"all 0.2s ease"},elevated:{backgroundColor:"color.white",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",color:"color.gray.800",transition:"all 0.2s ease"}}))(),Fs={left:{left:0,borderRightWidth:"1px",borderRightStyle:"solid",borderRightColor:"color.gray.200"},right:{right:0,borderLeftWidth:"1px",borderLeftStyle:"solid",borderLeftColor:"color.gray.200"}},As={none:{},low:{boxShadow:"0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24)"},medium:{boxShadow:"0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23)"},high:{boxShadow:"0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)"}},Gs={fast:"width 0.2s ease, transform 0.2s ease",normal:"width 0.3s ease, transform 0.3s ease",slow:"width 0.5s ease, transform 0.5s ease",bounce:"width 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55)"},Ns=["children","showToggleButton","views"],Us=["children","views"],Ys=["children","views"],Ks=["children","position","size","variant","fixed","hasBackdrop","expandedWidth","collapsedWidth","breakpointBehavior","elevation","transitionPreset","ariaLabel","isExpanded","isMobile","collapse","views","themeMode"],qs=t.createContext({isExpanded:!0,toggleExpanded:()=>{},expand:()=>{},collapse:()=>{},position:"left",size:"md",variant:"default"}),Xs=()=>t.useContext(qs),Zs=e=>{var{value:t,children:r}=e;return o.createElement(qs.Provider,{value:t},r)},Js=e=>{var{children:t,position:i="left",size:n="md",variant:a="default",fixed:l=!1,hasBackdrop:s=!0,expandedWidth:d,collapsedWidth:u,breakpointBehavior:h="overlay",elevation:g="none",transitionPreset:m="normal",ariaLabel:p="Sidebar navigation",isExpanded:v,isMobile:b,collapse:x,views:f}=e,w=c(e,Ks),E=Ps[n],y=v?d||E.expandedWidth:u||E.collapsedWidth,C=!b||b&&"hide"!==h,j=l||b&&"overlay"===h?"fixed":"relative";return o.createElement(o.Fragment,null,s&&b&&v&&"overlay"===h&&o.createElement(r.View,Object.assign({position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"color.blackAlpha.500",zIndex:998,onClick:x},null==f?void 0:f.backdrop)),C&&o.createElement(r.Vertical,Object.assign({position:j,top:0,height:"100vh",width:y,zIndex:999,transition:Gs[m],transform:b&&"overlay"===h&&!v?"translateX("+("left"===i?"-100%":"100%")+")":"translateX(0)",role:"navigation","aria-label":p},Ds[a],Fs[i],As[g],null==f?void 0:f.container,w),o.Children.map(t,e=>e)))},Qs=["children","position","size","variant","defaultExpanded","expanded","onExpandedChange","fixed","hasBackdrop","showToggleButton","expandedWidth","collapsedWidth","breakpoint","breakpointBehavior","views"],$s=e=>{var{children:r,position:i="left",size:n="md",variant:a="default",defaultExpanded:l=!0,expanded:s,onExpandedChange:d,fixed:u=!1,hasBackdrop:h=!0,showToggleButton:g=!0,expandedWidth:m,collapsedWidth:p,breakpoint:v=768,breakpointBehavior:b="overlay",views:x}=e,f=c(e,Qs),{isExpanded:w,toggleExpanded:E,expand:y,collapse:C,isMobile:j}=function(e,o,r,i){void 0===e&&(e=!0);var[n,a]=t.useState(void 0!==o?o:e),[l,s]=t.useState(!!i&&window.innerWidth<i);return t.useEffect(()=>{void 0!==o&&a(o)},[o]),t.useEffect(()=>{if(i){var e=()=>{var e=window.innerWidth<i;s(e)};return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}}},[i]),{isExpanded:n,toggleExpanded:()=>{var e=!n;a(e),r&&r(e)},expand:()=>{n||(a(!0),r&&r(!0))},collapse:()=>{n&&(a(!1),r&&r(!1))},isMobile:l}}(l,s,d,v);return o.createElement(Zs,{value:{isExpanded:w,toggleExpanded:E,expand:y,collapse:C,position:i,size:n,variant:a,views:x}},o.createElement(Js,Object.assign({position:i,size:n,variant:a,fixed:u,hasBackdrop:h,showToggleButton:g,expandedWidth:m,collapsedWidth:p,breakpoint:v,breakpointBehavior:b,isExpanded:w,isMobile:j,toggleExpanded:E,expand:y,collapse:C,views:x},f),r))};$s.Header=e=>{var{children:t,showToggleButton:i=!0,views:n}=e,a=c(e,Ns),{isExpanded:l,toggleExpanded:s,position:d}=Xs();return o.createElement(r.Horizontal,Object.assign({width:"100%",padding:"16px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200",alignItems:"center",justifyContent:"space-between"},null==n?void 0:n.header,a),l?o.createElement(r.Horizontal,{width:"100%",alignItems:"center",justifyContent:"space-between"},t,i&&o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",borderRadius:"4px",backgroundColor:"transparent",cursor:"pointer",_hover:{backgroundColor:"color.gray.100"},onClick:s,"aria-label":l?"Collapse sidebar":"Expand sidebar"},null==n?void 0:n.toggleButton),o.createElement(at,Object.assign({orientation:"left"===d?"left":"right",widthHeight:16},null==n?void 0:n.toggleButtonIcon)))):o.createElement(r.View,{width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},i&&o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",borderRadius:"4px",backgroundColor:"transparent",cursor:"pointer",_hover:{backgroundColor:"color.gray.100"},onClick:s,"aria-label":l?"Collapse sidebar":"Expand sidebar"},null==n?void 0:n.toggleButton),o.createElement(at,Object.assign({orientation:"left"===d?"right":"left",widthHeight:16},null==n?void 0:n.toggleButtonIcon)))))},$s.Content=e=>{var{children:t,views:i}=e,n=c(e,Us),{isExpanded:a}=Xs();return o.createElement(r.View,Object.assign({flex:"1",width:"100%",overflowY:"auto",overflowX:"hidden",padding:a?"16px":"8px"},null==i?void 0:i.content,n),t)},$s.Footer=e=>{var{children:t,views:i}=e,n=c(e,Ys),{isExpanded:a}=Xs();return o.createElement(r.View,Object.assign({width:"100%",padding:"16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200"},null==i?void 0:i.footer,n),a?t:null)},$s.useContext=Xs;var ec={horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},tc=(e=>({default:{backgroundColor:"transparent",_hover:{backgroundColor:"color.gray.200"},_active:{backgroundColor:"color.gray.300"}},subtle:{backgroundColor:"transparent",_hover:{backgroundColor:"color.gray.100"},_active:{backgroundColor:"color.gray.200"}},prominent:{backgroundColor:"color.gray.100",_hover:{backgroundColor:"color.gray.200"},_active:{backgroundColor:"color.gray.300"}}}))(),oc={width:"2px",height:"20px",backgroundColor:"color.gray.400",margin:"0 1px"},rc={width:"20px",height:"2px",backgroundColor:"color.gray.400",margin:"1px 0"},ic=["children","id","defaultSize","minSize","maxSize","collapsible","defaultCollapsed","onCollapseChange","views"],nc=["id","position","disabled","withVisualIndicator","withCollapseButton","collapseTarget","views"],ac=["children","orientation","size","variant","defaultSizes","minSize","maxSize","collapsible","containerRef","autoSaveId","views"],lc=t.createContext({orientation:"horizontal",size:"md",variant:"default",isResizing:!1,setIsResizing:()=>{},registerPanel:()=>{},unregisterPanel:()=>{},getPanelSize:()=>0,setPanelSize:()=>{},isPanelCollapsed:()=>!1,togglePanelCollapse:()=>{},startResize:()=>{},onResize:()=>{},endResize:()=>{}}),sc=()=>t.useContext(lc),cc=e=>{var{value:t,children:r}=e;return o.createElement(lc.Provider,{value:t},r)},dc=e=>{var{children:t,orientation:i="horizontal",size:n="md",variant:a="default",collapsible:l=!1,containerRef:s,views:d}=e,u=c(e,ac);return o.createElement("horizontal"===i?r.Horizontal:r.Vertical,Object.assign({ref:s,width:"100%",height:"100%",position:"relative",overflow:"hidden"},ec[i],null==d?void 0:d.container,u),t)},uc=["children","orientation","size","variant","defaultSizes","onSizesChange","minSize","maxSize","collapsible","autoSaveId","storage","keyboardResizeBy","views"],hc=e=>{var{children:r,orientation:i="horizontal",size:n="md",variant:a="default",defaultSizes:l,onSizesChange:s,minSize:d=50,maxSize:u,collapsible:h=!1,autoSaveId:g,storage:m,keyboardResizeBy:p=10,views:v}=e,b=c(e,uc),{isResizing:x,setIsResizing:f,containerRef:w,registerPanel:E,unregisterPanel:y,getPanelSize:C,setPanelSize:j,isPanelCollapsed:k,togglePanelCollapse:I,startResize:O,onResize:S,endResize:z}=function(e,o,r,i,n,a,l,s,c){void 0===i&&(i=50),void 0===n&&(n=Infinity),void 0===a&&(a=!1),void 0===c&&(c=10);var[d,u]=t.useState(!1),[h,g]=t.useState([]),m=t.useRef(null),p=t.useRef(null),v=t.useRef(0),b=t.useRef([]),x=t.useRef(s||("undefined"!=typeof window?{getItem:e=>{try{return localStorage.getItem("resizable-"+e)}catch(e){return console.warn("Failed to access localStorage:",e),null}},setItem:(e,t)=>{try{localStorage.setItem("resizable-"+e,t)}catch(e){console.warn("Failed to write to localStorage:",e)}}}:null)),f=t.useCallback(()=>m.current?"horizontal"===e?m.current.offsetWidth:m.current.offsetHeight:0,[e]),w=t.useCallback(()=>{if(!l||!x.current)return null;var e=x.current.getItem(l);if(!e)return null;try{var t=JSON.parse(e);return Array.isArray(t.sizes)?t.sizes:null}catch(e){return console.warn("Failed to parse saved panel sizes:",e),null}},[l]),E=t.useCallback(()=>{if(l&&x.current&&0!==h.length){var e=h.map(e=>({id:e.id,size:e.size,collapsed:e.collapsed||!1}));x.current.setItem(l,JSON.stringify({sizes:e}))}},[l,h]),y=t.useCallback((e,t,o,r,l)=>{g(s=>s.some(t=>t.id===e)?s:[...s,{id:e,size:t,minSize:null!=o?o:i,maxSize:null!=r?r:n,collapsible:null!=l?l:a,collapsed:!1}])},[i,n,a]),C=t.useCallback(e=>{g(t=>t.filter(t=>t.id!==e))},[]),j=t.useCallback(e=>{var t=h.find(t=>t.id===e);return t?t.size:0},[h]),k=t.useCallback((e,t)=>{g(o=>o.map(o=>o.id===e?Object.assign({},o,{size:t}):o))},[]),I=t.useCallback(e=>{var t=h.find(t=>t.id===e);return!!t&&!!t.collapsed},[h]),O=t.useCallback(e=>{g(t=>{var o=t.findIndex(t=>t.id===e);if(-1===o)return t;var r=t[o];if(!r.collapsible)return t;var i=Object.assign({},r,{collapsed:!r.collapsed}),n=[...t];return n[o]=i,n})},[]),S=t.useCallback((e,t)=>{p.current=e,v.current=t,b.current=h.map(e=>e.size),u(!0)},[h]),z=t.useCallback(e=>{var t,o,r,a;if(d&&p.current){var l=e-v.current,s=-1,c=p.current.match(/\d+$/);if(c&&(s=parseInt(c[0],10)-1),-1===s&&h.length>=2&&(s=0),!(s<0||s>=h.length-1)){var u=h[s],m=h[s+1];if(!u.collapsed&&!m.collapsed){var x=b.current[s]+l,f=b.current[s+1]-l;x=Math.max(null!=(t=u.minSize)?t:i,Math.min(null!=(o=u.maxSize)?o:n,x)),f=Math.max(null!=(r=m.minSize)?r:i,Math.min(null!=(a=m.maxSize)?a:n,f)),g(e=>e.map((e,t)=>t===s?Object.assign({},e,{size:x}):t===s+1?Object.assign({},e,{size:f}):e))}}}},[d,h,e,i,n]),H=t.useCallback(()=>{d&&r&&r(h.map(e=>e.size)),p.current=null,u(!1),l&&E()},[d,h,r,l,E]),M=t.useCallback(t=>{if(d&&p.current){var o=-1,r=p.current.match(/\d+$/);if(r&&(o=parseInt(r[0],10)-1),-1===o&&h.length>=2&&(o=0),!(o<0||o>=h.length-1)){var i=0;"horizontal"===e?("ArrowLeft"===t.key&&(i=-c),"ArrowRight"===t.key&&(i=c),"Home"===t.key&&(i=-100),"End"===t.key&&(i=100)):("ArrowUp"===t.key&&(i=-c),"ArrowDown"===t.key&&(i=c),"Home"===t.key&&(i=-100),"End"===t.key&&(i=100)),0!==i&&(t.preventDefault(),z(v.current+i)),"Escape"===t.key&&(g(e=>e.map((e,t)=>Object.assign({},e,{size:b.current[t]}))),H())}}},[d,h,e,z,H,c]);return t.useEffect(()=>{var t=t=>{d&&z("horizontal"===e?t.clientX:t.clientY)},o=t=>{if(d&&0!==t.touches.length){var o=t.touches[0];z("horizontal"===e?o.clientX:o.clientY)}},r=()=>{d&&H()};return d&&(document.addEventListener("mousemove",t),document.addEventListener("touchmove",o),document.addEventListener("mouseup",r),document.addEventListener("touchend",r),document.addEventListener("keydown",M),document.body.style.cursor="horizontal"===e?"col-resize":"row-resize",document.body.style.userSelect="none"),()=>{document.removeEventListener("mousemove",t),document.removeEventListener("touchmove",o),document.removeEventListener("mouseup",r),document.removeEventListener("touchend",r),document.removeEventListener("keydown",M),document.body.style.cursor="",document.body.style.userSelect=""}},[d,e,z,H,M]),t.useEffect(()=>{if(0!==h.length){if(l){var e=w();if(e)return void g(t=>t.map(t=>{var o=e.find(e=>e.id===t.id);return o?Object.assign({},t,{size:o.size,collapsed:o.collapsed||!1}):t}))}if(!o){var t=f()/h.length;g(e=>e.map(e=>Object.assign({},e,{size:t})))}}},[h.length,o,f,l,w]),t.useEffect(()=>{if(o&&0!==o.length&&0!==h.length){var e=f(),t=o.map(t=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:"number"==typeof t?t:parseFloat(t));g(e=>e.map((e,o)=>Object.assign({},e,{size:o<t.length?t[o]:e.size})))}},[o,h.length,f]),t.useEffect(()=>{h.length>0&&l&&!d&&E()},[h,l,d,E]),{isResizing:d,setIsResizing:u,containerRef:m,panels:h,registerPanel:y,unregisterPanel:C,getPanelSize:j,setPanelSize:k,isPanelCollapsed:I,togglePanelCollapse:O,startResize:S,onResize:z,endResize:H}}(i,l,s,d,u,h,g,m,p);return o.createElement(cc,{value:{orientation:i,size:n,variant:a,isResizing:x,setIsResizing:f,registerPanel:E,unregisterPanel:y,getPanelSize:C,setPanelSize:j,isPanelCollapsed:k,togglePanelCollapse:I,startResize:O,onResize:S,endResize:z}},o.createElement(dc,Object.assign({orientation:i,size:n,variant:a,defaultSizes:l,minSize:d,maxSize:u,collapsible:h,autoSaveId:g,keyboardResizeBy:p,containerRef:w,views:v},b),r))};hc.Panel=e=>{var{children:i,id:n,defaultSize:a,minSize:l,maxSize:s,collapsible:d,defaultCollapsed:u,onCollapseChange:h,views:g}=e,m=c(e,ic),{orientation:p,registerPanel:v,unregisterPanel:b,getPanelSize:x,isPanelCollapsed:f,togglePanelCollapse:w}=sc(),E="string"==typeof a&&a.endsWith("%")?0:"number"==typeof a?a:0;t.useEffect(()=>(v(n,E,l,s,d),()=>b(n)),[n,E,l,s,d,v,b]);var y=x(n),C=f(n);return t.useEffect(()=>{h&&void 0!==C&&h(C)},[C,h]),t.useEffect(()=>{d&&u&&!C&&w(n)},[n,d,u,C,w]),C?o.createElement(r.View,Object.assign({flex:"0 0 auto",width:"horizontal"===p?"10px":"100%",height:"vertical"===p?"10px":"100%",backgroundColor:"color.gray.200",cursor:"pointer",onClick:()=>w(n),"aria-label":"Expand panel "+n,role:"button",tabIndex:0},null==g?void 0:g.collapsedPanel,m)):o.createElement(r.View,Object.assign({flex:y>0?"0 0 auto":"1",width:"horizontal"===p?y+"px":"100%",height:"vertical"===p?y+"px":"100%",overflow:"auto"},null==g?void 0:g.panel,m),i)},hc.Handle=e=>{var{id:t,position:i="both",disabled:n=!1,withVisualIndicator:a=!0,withCollapseButton:l=!1,collapseTarget:s,views:d}=e,u=c(e,nc),{orientation:h,size:g,variant:m,startResize:p,isPanelCollapsed:v,togglePanelCollapse:b}=sc(),x=(()=>{if(s)return s;var e=t.match(/\d+$/);if(!e)return"";var o=parseInt(e[0],10);return isNaN(o)?"":"panel"+o})(),f=v(x);return o.createElement(r.View,Object.assign({role:"separator","aria-orientation":h,"aria-valuemin":0,"aria-valuemax":100,tabIndex:n?-1:0,cursor:"horizontal"===h?"col-resize":"row-resize",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},((e,t)=>({sm:{width:"horizontal"===t?"4px":"100%",height:"vertical"===t?"4px":"100%"},md:{width:"horizontal"===t?"6px":"100%",height:"vertical"===t?"6px":"100%"},lg:{width:"horizontal"===t?"8px":"100%",height:"vertical"===t?"8px":"100%"}}[e]))(g,h),tc[m],{onMouseDown:e=>{n||(e.preventDefault(),p(t,"horizontal"===h?e.clientX:e.clientY))},onTouchStart:e=>{if(!n&&0!==e.touches.length){e.preventDefault();var o=e.touches[0];p(t,"horizontal"===h?o.clientX:o.clientY)}},onKeyDown:e=>{n||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),p(t,0))},opacity:n?.5:1,pointerEvents:n?"none":"auto"},null==d?void 0:d.handle,u),a&&o.createElement(r.View,Object.assign({display:"flex",alignItems:"center",justifyContent:"center",width:"horizontal"===h?"100%":"auto",height:"vertical"===h?"100%":"auto",pointerEvents:"none"},null==d?void 0:d.handleIcon),"horizontal"===h?o.createElement(r.Horizontal,{gap:1},o.createElement(r.View,Object.assign({},oc)),o.createElement(r.View,Object.assign({},oc))):o.createElement(r.Vertical,{gap:1},o.createElement(r.View,Object.assign({},rc)),o.createElement(r.View,Object.assign({},rc)))),l&&x&&o.createElement(r.View,Object.assign({position:"absolute",top:"horizontal"===h?"-20px":"50%",left:"horizontal"===h?"50%":"-20px",transform:"horizontal"===h?"translateX(-50%)":"translateY(-50%)",width:"16px",height:"16px",borderRadius:"full",backgroundColor:"color.gray.100",border:"1px solid",borderColor:"color.gray.300",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:1,onClick:e=>{e.stopPropagation(),x&&b(x)},"aria-label":f?"Expand panel "+x:"Collapse panel "+x,role:"button",tabIndex:0,pointerEvents:"auto",_hover:{backgroundColor:"color.gray.200"}},null==d?void 0:d.collapseIcon),o.createElement(r.View,{width:"8px",height:"8px",display:"flex",alignItems:"center",justifyContent:"center"},f?o.createElement(r.Horizontal,null,o.createElement(r.View,{width:"6px",height:"2px",backgroundColor:"color.gray.600"}),o.createElement(r.View,{width:"2px",height:"6px",backgroundColor:"color.gray.600",position:"absolute"})):o.createElement(r.View,{width:"6px",height:"2px",backgroundColor:"color.gray.600"}))))};var gc={info:{container:{backgroundColor:"color.blue.50",border:"color.blue.300"},content:{color:"color.blue.700"},icon:{color:"color.blue.500"}},success:{container:{backgroundColor:"color.green.50",border:"color.green.300"},content:{color:"color.green.700"},icon:{color:"color.green.500"}},warning:{container:{backgroundColor:"color.orange.50",border:"color.orange.300"},content:{color:"color.orange.700"},icon:{color:"color.orange.500"}},error:{container:{backgroundColor:"color.red.50",border:"color.red.300"},content:{color:"color.red.700"},icon:{color:"color.red.500"}}},mc={top:{top:"16px",left:"50%",transform:"translateX(-50%)"},"top-right":{top:"16px",right:"16px"},"top-left":{top:"16px",left:"16px"},bottom:{bottom:"16px",left:"50%",transform:"translateX(-50%)"},"bottom-right":{bottom:"16px",right:"16px"},"bottom-left":{bottom:"16px",left:"16px"}},pc=new Map,vc=s.create(e=>({toasts:[],add:function(t,o,r,i){void 0===i&&(i={});var n=i.id||Math.random().toString(36).substring(2,9),a=Object.assign({id:n,variant:t,title:o,description:r,createdAt:Date.now(),isVisible:!0},i);if(e(e=>({toasts:[...e.toasts,a]})),0!==i.duration){var l=setTimeout(()=>{vc.getState().remove(n)},i.duration||5e3);pc.set(n,l)}return n},remove:t=>{e(e=>({toasts:e.toasts.map(e=>e.id===t?Object.assign({},e,{isVisible:!1}):e)})),pc.has(t)&&(clearTimeout(pc.get(t)),pc.delete(t)),setTimeout(()=>{e(e=>({toasts:e.toasts.filter(e=>e.id!==t)}))},300)},removeAll:()=>{pc.forEach(clearTimeout),pc.clear(),e(e=>({toasts:e.toasts.map(e=>Object.assign({},e,{isVisible:!1}))})),setTimeout(()=>{e({toasts:[]})},300)}})),bc=(e,t,o,r)=>vc.getState().add(e,t,o,r),xc=(e,t,o)=>bc("info",e,t,o),fc=(e,t,o)=>bc("success",e,t,o),wc=(e,t,o)=>bc("warning",e,t,o),Ec=(e,t,o)=>bc("error",e,t,o),yc=e=>{vc.getState().remove(e)},Cc=()=>{vc.getState().removeAll()},jc=e=>{var{variant:t,title:i,description:n,onClose:a,isClosable:l=!0,action:s,actionText:c,showIcon:d=!0,theme:u,views:h,render:g,icon:m,id:p,isVisible:v=!0}=e,b=null!=u?u:gc;return g?o.createElement(o.Fragment,null,g({id:p||"",onClose:a})):o.createElement(r.Horizontal,Object.assign({role:"error"===t?"alert":"status","aria-live":"error"===t||"warning"===t?"assertive":"polite","aria-atomic":"true","data-state":v?"open":"closed",gap:12,width:"100%",maxWidth:"400px",borderWidth:"1px",borderStyle:"solid",borderRadius:"8px",padding:"12px 16px",alignItems:"flex-start",position:"relative",backgroundColor:b[t].container.backgroundColor,borderColor:b[t].container.border,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.08)",opacity:v?1:0,transform:v?"scale(1)":"scale(0.95)",transition:"all 0.3s ease"},null==h?void 0:h.container),d&&o.createElement(r.View,Object.assign({marginTop:"2px"},null==h?void 0:h.icon),(()=>{if(void 0!==m)return m;switch(t){case"info":return o.createElement(Et,{widthHeight:20,color:b.info.icon.color});case"success":return o.createElement(yt,{widthHeight:20,color:b.success.icon.color});case"warning":return o.createElement(Et,{widthHeight:20,color:b.warning.icon.color,orientation:"down"});case"error":return o.createElement(Tt,{widthHeight:20,color:b.error.icon.color});default:return o.createElement(Et,{widthHeight:20,color:b.info.icon.color})}})()),o.createElement(r.Vertical,{gap:4,flex:"1"},o.createElement(T,Object.assign({size:"md",fontWeight:"600",color:b[t].content.color,lineHeight:"1.4"},null==h?void 0:h.title),i),n&&o.createElement(T,Object.assign({size:"sm",color:b[t].content.color,fontWeight:"400",lineHeight:"1.5"},null==h?void 0:h.description),n),s&&c&&o.createElement(T,Object.assign({size:"sm",fontWeight:"600",marginTop:"8px",cursor:"pointer",color:b[t].content.color,onClick:e=>{e.stopPropagation(),s()},_hover:{textDecoration:"underline"},transition:"all 0.2s ease"},null==h?void 0:h.actionButton),c)),l&&o.createElement(r.View,Object.assign({as:"button","aria-label":"Close toast",backgroundColor:"transparent",border:"none",cursor:"pointer",padding:"4px",marginLeft:"8px",marginTop:"-4px",marginRight:"-8px",borderRadius:"4px",onClick:e=>{e.stopPropagation(),a()},_hover:{backgroundColor:"rgba(0, 0, 0, 0.05)"},transition:"all 0.2s ease"},null==h?void 0:h.closeButton),o.createElement(mt,{widthHeight:16,color:b[t].content.color})))},kc=e=>{var{position:t="top-right",gap:i=8,limit:n=5,containerStyle:a}=e,{toasts:l,remove:s}=vc(),c=o.useMemo(()=>{var e={top:[],"top-right":[],"top-left":[],bottom:[],"bottom-right":[],"bottom-left":[]};return l.forEach(o=>{e[o.position||t].push(o)}),Object.keys(e).forEach(t=>{e[t]=e[t].slice(-n)}),e},[l,t,n])[t];return o.createElement(r.View,Object.assign({position:"fixed",zIndex:9999,display:"flex",flexDirection:t.includes("bottom")?"column-reverse":"column",gap:i+"px",width:"fit-content",maxWidth:"100%",pointerEvents:"none"},mc[t],{style:a}),c.map(e=>o.createElement(r.View,{key:e.id,pointerEvents:"auto",animation:t.includes("right")?"slideInRight 0.3s ease-out, fadeIn 0.3s ease-out":t.includes("left")?"slideInLeft 0.3s ease-out, fadeIn 0.3s ease-out":t.includes("top")?"slideInDown 0.3s ease-out, fadeIn 0.3s ease-out":"slideInUp 0.3s ease-out, fadeIn 0.3s ease-out"},o.createElement(jc,{id:e.id,variant:e.variant,title:e.title,description:e.description,onClose:()=>s(e.id),isClosable:e.isClosable,action:e.action,actionText:e.actionText,showIcon:e.showIcon,views:e.views,render:e.render,icon:e.icon,isVisible:e.isVisible}))))},Ic=e=>o.createElement(jc,Object.assign({},e)),Oc=Object.assign(Ic,{Container:e=>o.createElement(kc,Object.assign({},e)),show:bc,info:xc,success:fc,warning:wc,error:Ec,remove:yc,removeAll:Cc}),Sc=(e,t)=>{var o,r;if(!e)return!0;var i=e.toLowerCase(),n=t.name.toLowerCase().includes(i),a=(null==(o=t.description)?void 0:o.toLowerCase().includes(i))||!1,l=(null==(r=t.keywords)?void 0:r.some(e=>e.toLowerCase().includes(i)))||!1;return n||a||l},zc={sm:{width:"400px",maxHeight:"300px"},md:{width:"500px",maxHeight:"400px"},lg:{width:"600px",maxHeight:"500px"}},Hc=(e=>({default:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)"},filled:{backgroundColor:"color.gray.50",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)"},outline:{backgroundColor:"color.white",borderWidth:"2px",borderStyle:"solid",borderColor:"color.gray.300",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)"}}))(),Mc={display:"flex",alignItems:"center",padding:"12px 16px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200"},Tc={overflow:"auto",padding:"8px 0"},Wc={marginBottom:"8px"},Rc={padding:"8px 16px",fontSize:"12px",fontWeight:"bold",color:"color.gray.500",textTransform:"uppercase"},Vc={display:"flex",alignItems:"center",padding:"8px 16px",cursor:"pointer",userSelect:"none",borderRadius:"4px",margin:"0 8px",_hover:{backgroundColor:"color.gray.100"}},Lc={backgroundColor:"color.blue.50",_hover:{backgroundColor:"color.blue.100"}},_c={opacity:.5,cursor:"not-allowed",_hover:{backgroundColor:"transparent"}},Bc={display:"flex",alignItems:"center",justifyContent:"center",marginRight:"12px",color:"color.gray.500"},Pc={display:"flex",flexDirection:"column",flex:1},Dc={fontSize:"14px",fontWeight:"medium"},Fc={fontSize:"12px",color:"color.gray.500",marginTop:"2px"},Ac={display:"flex",alignItems:"center",marginLeft:"12px",fontSize:"12px",color:"color.gray.500"},Gc={display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",color:"color.gray.500",textAlign:"center"},Nc={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200",fontSize:"12px",color:"color.gray.500"},Uc=["value","onValueChange","placeholder","views"],Yc=["children","views"],Kc=["heading","children","views"],qc=["item","selected","onSelect","views"],Xc=["children","views"],Zc=["open","onOpenChange","groups","commands","placeholder","size","variant","emptyState","footer","search","setSearch","selectedIndex","setSelectedIndex","filteredCommands","filteredGroups","listRef","views","filter"],Jc=t.createContext({search:"",setSearch:()=>{},selectedIndex:0,setSelectedIndex:()=>{},filteredCommands:[],onSelect:()=>{}}),Qc=e=>{var{value:t,children:r}=e;return o.createElement(Jc.Provider,{value:t},r)},$c=e=>{var{value:i,onValueChange:n,placeholder:a="Type a command or search...",views:l}=e,s=c(e,Uc),d=t.useRef(null);return o.useEffect(()=>{d.current&&d.current.focus()},[]),o.createElement(r.View,Object.assign({},Mc,null==l?void 0:l.container,s),o.createElement(co,{widthHeight:16,color:"color.gray.400",marginRight:"8px"}),o.createElement(r.View,Object.assign({as:"input",type:"text",value:i,onChange:e=>n(e.target.value),placeholder:a,width:"100%",border:"none",outline:"none",backgroundColor:"transparent",fontSize:"14px",ref:d},null==l?void 0:l.input)))},ed=e=>{var{heading:t,children:i,views:n}=e,a=c(e,Kc);return o.createElement(r.View,Object.assign({},Wc,null==n?void 0:n.container,a),o.createElement(T,Object.assign({},Rc,null==n?void 0:n.heading),t),i)},td=e=>{var{item:t,selected:i=!1,onSelect:n,views:a}=e,l=c(e,qc);return o.createElement(r.Horizontal,Object.assign({},Vc,i?Lc:{},t.disabled?_c:{},{onClick:()=>{!t.disabled&&n&&n()}},null==a?void 0:a.container,l),t.icon&&o.createElement(r.View,Object.assign({},Bc,null==a?void 0:a.icon),t.icon),o.createElement(r.Vertical,Object.assign({},Pc,null==a?void 0:a.content),o.createElement(T,Object.assign({},Dc,null==a?void 0:a.name),t.name),t.description&&o.createElement(T,Object.assign({},Fc,null==a?void 0:a.description),t.description)),t.shortcut&&o.createElement(T,Object.assign({},Ac,null==a?void 0:a.shortcut),t.shortcut))},od=e=>{var{children:t="No results found.",views:i}=e,n=c(e,Xc);return o.createElement(r.View,Object.assign({},Gc,null==i?void 0:i.container,n),t)},rd=e=>{var{open:t,onOpenChange:i,groups:n=[],commands:a=[],placeholder:l,size:s="md",variant:d="default",emptyState:u,footer:h,search:g,setSearch:m,selectedIndex:p,setSelectedIndex:v,filteredCommands:b,filteredGroups:x,listRef:f,views:w}=e,E=c(e,Zc);if(!t)return null;var y=o.useCallback(e=>{e.disabled||(e.onSelect(),i(!1),m(""))},[i,m]),C=o.useCallback(e=>e.target===e.currentTarget&&i(!1),[i]),j=o.useMemo(()=>({search:g,setSearch:m,selectedIndex:p,setSelectedIndex:v,filteredCommands:b,onSelect:y}),[g,p,b,y,m,v]),k=n.length>0,I=0===b.length;return o.createElement(r.View,Object.assign({position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",zIndex:9999,onClick:C},E),o.createElement(Qc,{value:j},o.createElement(r.View,Object.assign({borderRadius:"8px",overflow:"hidden",display:"flex",flexDirection:"column"},zc[s],Hc[d],null==w?void 0:w.container,{onClick:e=>e.stopPropagation()}),o.createElement($c,{value:g,onValueChange:m,placeholder:l,views:null==w?void 0:w.searchInput}),o.createElement(r.View,Object.assign({ref:f,flex:1,overflow:"auto"},null==w?void 0:w.list),I?u||o.createElement(od,{views:null==w?void 0:w.empty}):k?x.map(e=>o.createElement(ed,{key:e.id,heading:e.name,views:null==w?void 0:w.groupHeading},e.commands.map(e=>{var t=b.findIndex(t=>t.id===e.id);return o.createElement(td,{key:e.id,item:e,selected:t===p,onSelect:()=>y(e),"data-index":t,views:{container:null==w?void 0:w.item,icon:null==w?void 0:w.icon,content:null==w?void 0:w.content,name:null==w?void 0:w.name,description:null==w?void 0:w.description,shortcut:null==w?void 0:w.shortcut}})}))):b.map((e,t)=>o.createElement(td,{key:e.id,item:e,selected:t===p,onSelect:()=>y(e),"data-index":t,views:{container:null==w?void 0:w.item,icon:null==w?void 0:w.icon,content:null==w?void 0:w.content,name:null==w?void 0:w.name,description:null==w?void 0:w.description,shortcut:null==w?void 0:w.shortcut}}))),h&&o.createElement(r.View,Object.assign({},Nc,null==w?void 0:w.footer),h))))},id=["open","onOpenChange","groups","commands","placeholder","size","variant","filter","emptyState","footer","views"],nd=e=>{var{open:r,onOpenChange:i,groups:n=[],commands:a=[],placeholder:l,size:s="md",variant:d="default",filter:u,emptyState:h,footer:g,views:m}=e,p=c(e,id),{search:v,setSearch:b,selectedIndex:x,setSelectedIndex:f,filteredCommands:w,filteredGroups:E,listRef:y}=(e=>{var{open:o,onOpenChange:r,groups:i=[],commands:n=[],filter:a}=e,[l,s]=t.useState(""),[c,d]=t.useState(0),u=t.useRef(null),h=t.useMemo(()=>a||Sc,[a]),g=t.useMemo(()=>[...i.flatMap(e=>e.commands),...n],[i,n]),m=t.useMemo(()=>l.trim()?g.filter(e=>h(l,e)):g,[g,l,h]),p=t.useMemo(()=>{if(!l)return i;var e=a||Sc;return i.map(t=>Object.assign({},t,{commands:t.commands.filter(t=>e(l,t))})).filter(e=>e.commands.length)},[i,l,a]);t.useEffect(()=>{d(0)},[m.length]);var v=t.useCallback(e=>{if(o)switch(e.key){case"ArrowDown":e.preventDefault(),d(e=>e<m.length-1?e+1:e);break;case"ArrowUp":e.preventDefault(),d(e=>e>0?e-1:e);break;case"Enter":e.preventDefault(),m[c]&&(m[c].onSelect(),r(!1),s(""));break;case"Escape":e.preventDefault(),r(!1),s("")}},[o,m,c,r]);return t.useEffect(()=>(document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}),[v]),t.useEffect(()=>{if(u.current&&o){var e=u.current.querySelector('[data-index="'+c+'"]');e&&e.scrollIntoView({block:"nearest"})}},[c,o]),t.useEffect(()=>{o?d(0):s("")},[o]),{search:l,setSearch:s,selectedIndex:c,setSelectedIndex:d,filteredCommands:m,filteredGroups:p,listRef:u}})({open:r,onOpenChange:i,groups:n,commands:a,filter:u});return o.createElement(rd,Object.assign({open:r,onOpenChange:i,groups:n,commands:a,placeholder:l,size:s,variant:d,emptyState:h,footer:g,search:v,setSearch:b,selectedIndex:x,setSelectedIndex:f,filteredCommands:w,filteredGroups:E,listRef:y,views:m},p))};nd.Input=$c,nd.List=e=>{var{children:t,views:i}=e,n=c(e,Yc);return o.createElement(r.View,Object.assign({},Tc,null==i?void 0:i.container,n),t)},nd.Group=ed,nd.Item=td,nd.Empty=od;var ad=()=>Math.random().toString(36).substring(2,11),ld={sm:{padding:"4px 8px",fontSize:"12px",maxWidth:"200px"},md:{padding:"6px 10px",fontSize:"14px",maxWidth:"250px"},lg:{padding:"8px 12px",fontSize:"16px",maxWidth:"300px"}},sd=(e=>({default:{backgroundColor:"color.gray.800",color:"color.white"},light:{backgroundColor:"color.white",color:"color.gray.800",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200"},dark:{backgroundColor:"color.black",color:"color.white"}}))(),cd=["children","views","asChild"],dd=["children","views"],ud=["content","children","position","align","size","variant","showArrow","views","themeMode"],hd=t.createContext({isOpen:!1,openTooltip:()=>{},closeTooltip:()=>{},triggerRef:{current:null},contentRef:{current:null},contentId:"",triggerId:""}),gd=()=>t.useContext(hd),md=e=>{var{value:t,children:r}=e;return o.createElement(hd.Provider,{value:t},r)},pd=e=>{var{children:t,views:i,asChild:n=!1}=e,a=c(e,cd),{openTooltip:l,closeTooltip:s,triggerRef:d,contentId:u,triggerId:h}=gd(),g=Object.assign({ref:d,onMouseEnter:()=>l(),onMouseLeave:()=>s(),onFocus:()=>l(),onBlur:()=>s(),id:h,"aria-describedby":u},null==i?void 0:i.container,a);return n&&o.isValidElement(t)?o.cloneElement(t,g):o.createElement(r.View,Object.assign({display:"inline-block"},g),t)},vd=e=>{var{content:t,children:i,position:n="top",align:a="center",size:l="md",variant:s="default",showArrow:d=!0,views:u}=e,h=c(e,ud),{isOpen:g,contentRef:m,contentId:p,triggerId:v}=gd(),b=((e,t)=>{var o={position:"absolute",zIndex:1e3};switch(e){case"top":return Object.assign({},o,{bottom:"100%",marginBottom:"8px"},"start"===t?{left:"0"}:"end"===t?{right:"0"}:{left:"50%",transform:"translateX(-50%)"});case"right":return Object.assign({},o,{left:"100%",marginLeft:"8px"},"start"===t?{top:"0"}:"end"===t?{bottom:"0"}:{top:"50%",transform:"translateY(-50%)"});case"bottom":return Object.assign({},o,{top:"100%",marginTop:"8px"},"start"===t?{left:"0"}:"end"===t?{right:"0"}:{left:"50%",transform:"translateX(-50%)"});case"left":return Object.assign({},o,{right:"100%",marginRight:"8px"},"start"===t?{top:"0"}:"end"===t?{bottom:"0"}:{top:"50%",transform:"translateY(-50%)"});default:return o}})(n,a),x=d?(e=>{var t={position:"absolute",width:"8px",height:"8px",backgroundColor:"inherit",borderStyle:"inherit",borderWidth:"inherit",borderColor:"inherit",transform:"rotate(45deg)"};switch(e){case"top":return Object.assign({},t,{bottom:"-4px",left:"50%",marginLeft:"-4px",borderTop:"none",borderLeft:"none"});case"right":return Object.assign({},t,{left:"-4px",top:"50%",marginTop:"-4px",borderRight:"none",borderTop:"none"});case"bottom":return Object.assign({},t,{top:"-4px",left:"50%",marginLeft:"-4px",borderBottom:"none",borderRight:"none"});case"left":return Object.assign({},t,{right:"-4px",top:"50%",marginTop:"-4px",borderLeft:"none",borderBottom:"none"});default:return t}})(n):{};return o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},null==u?void 0:u.container,h),o.createElement(pd,null,i),g&&o.createElement(r.View,Object.assign({ref:m,id:p,role:"tooltip","aria-labelledby":v,borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)"},ld[l],sd[s],b,null==u?void 0:u.content),"string"==typeof t?o.createElement(r.Text,Object.assign({},null==u?void 0:u.text),t):t,d&&o.createElement(r.View,Object.assign({},x,null==u?void 0:u.arrow))))},bd=["content","children","position","align","size","variant","openDelay","closeDelay","showArrow","defaultOpen","isDisabled","views"],xd=e=>{var{content:r,children:i,position:n="top",align:a="center",size:l="md",variant:s="default",openDelay:d=200,closeDelay:u=200,showArrow:h=!0,defaultOpen:g=!1,isDisabled:m=!1,views:p}=e,v=c(e,bd),b=function(e){var{defaultOpen:o=!1,openDelay:r=200,closeDelay:i=200,isDisabled:n=!1}=void 0===e?{}:e,[a,l]=t.useState(o),s=t.useRef(null),c=t.useRef(null),d=t.useRef(null),u=t.useRef(null),h=t.useRef("tooltip-trigger-"+ad()).current,g=t.useRef("tooltip-content-"+ad()).current,m=t.useCallback(()=>{n||(u.current&&(clearTimeout(u.current),u.current=null),a||d.current||(d.current=setTimeout(()=>{l(!0),d.current=null},r)))},[a,r,n]),p=t.useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=null),a&&!u.current&&(u.current=setTimeout(()=>{l(!1),u.current=null},i))},[a,i]),v=t.useCallback(()=>{u.current&&(clearTimeout(u.current),u.current=null)},[]);return t.useEffect(()=>()=>{d.current&&clearTimeout(d.current),u.current&&clearTimeout(u.current)},[]),t.useEffect(()=>{var e=e=>{"Escape"===e.key&&a&&l(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[a]),{isOpen:a,openTooltip:m,closeTooltip:p,cancelCloseTimer:v,triggerRef:s,contentRef:c,triggerId:h,contentId:g}}({defaultOpen:g,openDelay:d,closeDelay:u,isDisabled:m});return o.createElement(md,{value:b},o.createElement(vd,Object.assign({content:r,position:n,align:a,size:l,variant:s,showArrow:h,views:p},v),i))};xd.Trigger=pd,xd.Content=e=>{var{children:t,views:i}=e,n=c(e,dd),{isOpen:a,contentRef:l,contentId:s,triggerId:d}=gd();return a?o.createElement(r.View,Object.assign({ref:l,id:s,role:"tooltip","aria-labelledby":d},null==i?void 0:i.container,n),t):null},exports.Accordion=y,exports.Alert=e=>o.createElement(Ho,Object.assign({},e)),exports.ArrowIcon=vo,exports.AspectRatio=e=>{var{ratio:t,children:r}=e,i=c(e,Wo);return o.createElement(To,Object.assign({ratio:t},i),r)},exports.Avatar=e=>{var{src:r,size:i,views:n,fallback:a,onClick:l}=e,{imageError:s,setImageError:c}=(()=>{var[e,o]=t.useState(!1);return{imageError:e,setImageError:o}})();return o.createElement(Bo,{src:r,size:i,views:n,fallback:a,imageError:s,setImageError:c,onClick:l})},exports.Badge=e=>o.createElement(Go,Object.assign({},e)),exports.BatteryIcon=St,exports.BluetoothIcon=io,exports.BoldArrowIcon=po,exports.BookmarkIcon=zt,exports.Button=dr,exports.CalendarIcon=xo,exports.CameraIcon=ro,exports.Card=yr,exports.Carousel=Fr,exports.Chart=e=>o.createElement(ui,Object.assign({},e)),exports.ChartIcon=Oo,exports.Checkbox=e=>{var t=On(e);return o.createElement(Wn,Object.assign({},t,e))},exports.ChevronIcon=at,exports.ClockIcon=oo,exports.CloseEyeIcon=uo,exports.CloseIcon=mt,exports.CloudIcon=Ht,exports.ComboBox=e=>{var{id:t,name:r,items:i,placeholder:n,searchPlaceholder:a}=e,l=c(e,oa),s=$n(i,n,a);return o.createElement(ta,Object.assign({id:t,name:r,items:i},s,l))},exports.Command=nd,exports.ContextMenu=Hi,exports.CopyIcon=Mt,exports.CountryPicker=e=>{var t=Vn(e);return o.createElement(Un,Object.assign({},t,e))},exports.CropIcon=wo,exports.DatePicker=e=>{var t=Yn();return o.createElement(Xn,Object.assign({},t,e))},exports.DeleteIcon=Wt,exports.Divider=Bs,exports.DocumentIcon=Io,exports.DownloadIcon=Lt,exports.DragAndDrop=Tl,exports.DragAndDropComponent=Ml,exports.DragHandleIcon=lt,exports.DropdownMenu=Zl,exports.DustBinIcon=Tt,exports.EditIcon=Rt,exports.ErrorIcon=Vt,exports.ExternalLinkIcon=ho,exports.FacebookIcon=bt,exports.FileIcon=st,exports.FileImage=e=>{var{path:t}=e,i=c(e,Ti);return o.createElement(r.Image,Object.assign({src:t},i))},exports.FileSVG=e=>{var{src:t,color:i,views:n}=e,a=c(e,Mi),{getColor:l,themeMode:s}=r.useTheme(),d=i?{fill:l(i,{themeMode:s}),stroke:l(i,{themeMode:s})}:{};return o.createElement(r.Center,Object.assign({},a,null==n?void 0:n.container),o.createElement(r.Image,Object.assign({},d,{content:'url("'+t+'")',width:"100%",height:"100%"},null==n?void 0:n.image)))},exports.FilterIcon=Nt,exports.FormikCheckbox=e=>{var t=ua(e),{value:r}=t,i=c(t,ha);i.isChecked=r;var n=On(e);return o.createElement(Wn,Object.assign({},n,i))},exports.FormikComboBox=e=>{var{items:t,placeholder:r,searchPlaceholder:i}=e,n=c(e,va),a=ua(n),l=$n(t,r,i);return o.createElement(ta,Object.assign({},l,a,{onSelect:e=>{a.onChange(e)}}))},exports.FormikCountryPicker=e=>{var t=ua(e),r=Vn(e);return o.createElement(Un,Object.assign({},r,t))},exports.FormikDatePicker=e=>{var t=ua(e),r=Yn();return o.createElement(Xn,Object.assign({},r,t))},exports.FormikForm=e=>{var{children:i,autoFocus:n=!1,initFocus:a,onChange:s=(()=>{})}=e,d=c(e,sa),u=l.useFormikContext();t.useEffect(()=>{s(u.values)},[u.values]);var h=t.useRef({}),g=t.useRef([]),m=e=>{if(n){var t,o=g.current.indexOf(e)+1;o<g.current.length?null==(t=h.current[g.current[o]])||t.focus():u.onSubmit&&u.onSubmit(u.values)}},p={active:n,focusNextInput:m,setInputRef:(e,t)=>{h.current[e]=t,g.current.includes(e)||g.current.push(e)},handleSubmitEditing:m,getReturnKeyType:e=>g.current.indexOf(e)===g.current.length-1?"done":"next"};return t.useEffect(()=>{var e;if(n)if(a&&h.current[a])null==(e=h.current[a])||e.focus();else if(g.current[0]){var t;null==(t=h.current[g.current[0]])||t.focus()}},[n,a]),o.createElement(ca.Provider,{value:p},o.createElement(r.Form,Object.assign({},d),i))},exports.FormikOTPInput=e=>{var r=ua(e),{isFocused:i,setIsFocused:n,isHovered:a,setIsHovered:l,inputRef:s,containerRef:c,mirrorSelectionStart:d,mirrorSelectionEnd:u,setMirrorSelectionStart:h,setMirrorSelectionEnd:g,setInputRef:m,handleFocus:p,handleBlur:v,handleKeyDown:b,handlePaste:x}=ra(e),f=t.useCallback(t=>{r.onChange&&r.onChange(t),e.onComplete&&t.length===(e.length||6)&&e.onComplete(t),s.current&&(s.current.value=t)},[r,e,s]),w=t.useCallback(t=>{var o=t.currentTarget.value.slice(0,e.length||6);f(o),s.current&&(s.current.value=o)},[e.length,f,s]);return o.createElement(la,Object.assign({},e,r,{setValue:f,isFocused:i,setIsFocused:n,isHovered:a,setIsHovered:l,inputRef:s,containerRef:c,mirrorSelectionStart:d,mirrorSelectionEnd:u,setMirrorSelectionStart:h,setMirrorSelectionEnd:g,setInputRef:m,handleChange:w,handleFocus:p,handleBlur:v,handleKeyDown:b,handlePaste:x,stepValues:e.stepValues}))},exports.FormikPassword=e=>{var{visibleIcon:t=o.createElement(Jt,{widthHeight:14}),hiddenIcon:i=o.createElement(uo,{widthHeight:14})}=e,n=c(e,ma),a=ua(n),l=Zn(a),{isVisible:s,setIsVisible:d}=l,u=c(l,pa);return o.createElement(In,Object.assign({},u,{type:s?"text":"password",isClearable:!1,right:o.createElement(r.View,{onClick:()=>{n.isDisabled||d(!s)}},s?t:i)}))},exports.FormikSelect=e=>{var t=ua(e);t.selected=t.value;var r=Wi(e);return o.createElement(hn,Object.assign({},r,t))},exports.FormikSlider=e=>{var t=ua(e),r=xa(Object.assign({},e,{value:void 0!==t.value?Number(t.value):void 0,onChange:o=>{t.onChange(o),null==e.onChange||e.onChange(o)}}));return o.createElement(Ia,Object.assign({},e,r,t))},exports.FormikSwitch=e=>{var t=ua(e),r=gn(e);return o.createElement(fn,Object.assign({},r,t))},exports.FormikTextArea=e=>{var t=ua(e),r=wn(e);return o.createElement(yn,Object.assign({},r,t))},exports.FormikTextField=e=>{var t=ua(e),r=c(Cn(e),ga);return o.createElement(In,Object.assign({},r,t))},exports.HeartIcon=jt,exports.HelpIcon=nt,exports.HomeIcon=Ut,exports.HoverCard=is,exports.Icon=So,exports.ImageIcon=dt,exports.InfoIcon=Et,exports.InstagramIcon=pt,exports.LikeIcon=no,exports.Link=Ko,exports.LinkedinIcon=xt,exports.Loader=ir,exports.LocationIcon=Yt,exports.LockIcon=Kt,exports.MagicWandIcon=Ft,exports.MenuIcon=_t,exports.Menubar=Es,exports.MessageLayout=e=>{var{container:t,theme:i,position:n="topRight"}=e,{visible:a,title:l,variant:s,subtitle:c,isClosable:d,views:u,action:h,actionText:g,showIcon:m,timeout:p}=Oa(),v={topLeft:{top:6,left:8},topRight:{top:6,right:8},bottomLeft:{bottom:8,left:6},bottomRight:{bottom:8,right:6}}[n],b=()=>o.createElement(Ma,{variant:s,subtitle:c,show:a,title:l,theme:i,isClosable:d,views:u,action:h,actionText:g,showIcon:m,timeout:p,hide:()=>za()}),x=t?o.cloneElement(t,{},b()):o.createElement(r.View,Object.assign({position:"absolute",zIndex:1e4},v),b());return a?x:null},exports.MessageView=Ma,exports.MicrophoneIcon=qt,exports.MinusIcon=wt,exports.Modal=Ua,exports.MoonIcon=Xt,exports.NavigationMenu=ll,exports.NotificationIcon=Zt,exports.OTPInput=e=>{var{value:t}=e,{value:r,setValue:i,isFocused:n,setIsFocused:a,isHovered:l,setIsHovered:s,inputRef:c,containerRef:d,mirrorSelectionStart:u,mirrorSelectionEnd:h,setMirrorSelectionStart:g,setMirrorSelectionEnd:m,setInputRef:p,handleChange:v,handleFocus:b,handleBlur:x,handleKeyDown:f,handlePaste:w,handleKeyPress:E}=ra(e);return o.createElement(la,Object.assign({},e,{value:void 0!==t?t:r,setValue:i,isFocused:n,setIsFocused:a,isHovered:l,setIsHovered:s,inputRef:c,containerRef:d,mirrorSelectionStart:u,mirrorSelectionEnd:h,setMirrorSelectionStart:g,setMirrorSelectionEnd:m,setInputRef:p,handleChange:v,handleFocus:b,handleBlur:x,handleKeyDown:f,handleKeyPress:E,handlePaste:w,stepValues:e.stepValues}))},exports.OpenEyeIcon=Jt,exports.Pagination=e=>{var{currentPage:r,totalPages:i,onPageChange:n,pageSize:a=10,pageSizeOptions:l,onPageSizeChange:s,showPageSizeSelector:d=!1,showPageInfo:u=!0,maxPageButtons:h=5,showFirstLastButtons:g=!1,size:m="md",variant:p="default",shape:v="rounded",views:b}=e,x=c(e,zs),{visiblePageNumbers:f}=((e,o,r)=>{var[i,n]=t.useState([]);return t.useEffect(()=>{n((()=>{var t=[];if(o<=r)for(var i=1;i<=o;i++)t.push(i);else{t.push(1);var n=Math.max(2,e-Math.floor((r-2)/2)),a=Math.min(o-1,n+r-3);a>=o-1&&(a=o-1,n=Math.max(2,a-(r-3))),n>2&&t.push("...");for(var l=n;l<=a;l++)t.push(l);a<o-1&&t.push("..."),t.push(o)}return t})())},[e,o,r]),{visiblePageNumbers:i}})(r,i,h);return o.createElement(Ss,Object.assign({currentPage:r,totalPages:i,onPageChange:n,pageSize:a,pageSizeOptions:l,onPageSizeChange:s,showPageSizeSelector:d,showPageInfo:u,maxPageButtons:h,showFirstLastButtons:g,size:m,variant:p,shape:v,visiblePageNumbers:f,views:b},x))},exports.PanelIcon=Gt,exports.Password=e=>{var{visibleIcon:t=o.createElement(Jt,{widthHeight:14}),hiddenIcon:i=o.createElement(uo,{widthHeight:14})}=e,n=c(e,Jn),a=Zn(n),{isVisible:l,setIsVisible:s}=a,d=c(a,Qn);return o.createElement(In,Object.assign({},d,{type:l?"text":"password",isClearable:!1,right:o.createElement(r.View,{onClick:()=>{n.isDisabled||s(!l)}},l?t:i)}))},exports.PauseIcon=Ct,exports.PlayIcon=yt,exports.PlusIcon=go,exports.PrintIcon=Dt,exports.ProfileIcon=Qt,exports.RefreshIcon=Pt,exports.Resizable=hc,exports.RotateIcon=ko,exports.SaveIcon=It,exports.SearchIcon=co,exports.Select=e=>{var t=Wi(e);return o.createElement(hn,Object.assign({},t,e))},exports.Separator=_s,exports.SettingsIcon=$t,exports.ShapeIcon=jo,exports.ShareIcon=Bt,exports.Sidebar=$s,exports.Slider=e=>{var t=xa(e);return o.createElement(Ia,Object.assign({},e,t))},exports.SliderIcon=fo,exports.SliderVerticalIcon=At,exports.SpinnerIcon=bo,exports.StarIcon=kt,exports.SuccessIcon=eo,exports.Switch=e=>{var t=gn(e);return o.createElement(fn,Object.assign({},t,e))},exports.Table=El,exports.Tabs=jl,exports.Text=T,exports.TextArea=e=>{var t=wn(e);return o.createElement(yn,Object.assign({},t,e))},exports.TextField=e=>{var t=Cn(e);return o.createElement(In,Object.assign({},t,e))},exports.TextIcon=Co,exports.ThreadsIcon=ft,exports.TickIcon=mo,exports.Toast=Oc,exports.Toggle=Sl,exports.ToggleGroup=e=>{var{items:r,shape:i,variant:n,onToggleChange:a}=e,{activeToggles:l,setActiveToggles:s}=(()=>{var[e,o]=t.useState([]);return{activeToggles:e,setActiveToggles:o}})();return o.createElement(zl,{items:r,shape:i,variant:n,activeToggles:l,setActiveToggles:s,onToggleChange:a})},exports.Tooltip=xd,exports.TwitchIcon=gt,exports.TwitterIcon=ut,exports.UnLikeIcon=to,exports.UnlockIcon=ao,exports.UploadIcon=so,exports.Uploader=e=>{var{accept:r="*/*",icon:i,text:n,maxSize:a,onFileSelect:l,validateFile:s,isLoading:d=!1,progress:u=0,fileType:h}=e,g=c(e,Wa),{previewUrl:m,thumbnailUrl:p,errorMessage:v,videoRef:b,fileInputRef:x,selectedFile:f,handleFileChange:w,handleClick:E}=(e=>{var{maxSize:o=104857600,onFileSelect:r,validateFile:i,thumbnail:n,onError:a=(e=>{Sa("error","Error",e)})}=e,l=t.useRef(null),s=t.useRef(null),[c,d]=t.useState(null),[u,h]=t.useState(null),[g,m]=t.useState(null),[p,v]=t.useState(n||null),b=t.useCallback(e=>{var t,n=null==(t=e.target.files)?void 0:t[0];if(h(null),!n)return a("No file selected"),void h("No file selected");if(n.size>o)return a("File exceeds "+Math.round(o/1048576)+"MB."),void h("File exceeds "+Math.round(o/1048576)+"MB.");if(i){var l=i(n);if(l)return a(l),void h(l)}m(URL.createObjectURL(n)),n.type.startsWith("video/")&&((e,t)=>{var o=document.createElement("video");o.preload="metadata",o.onloadedmetadata=()=>{o.currentTime=1},o.oncanplay=()=>{var e=document.createElement("canvas");e.width=o.videoWidth,e.height=o.videoHeight;var r=e.getContext("2d");if(r){r.drawImage(o,0,0,e.width,e.height);var i=e.toDataURL("image/jpeg");t(i)}URL.revokeObjectURL(o.src)},o.src=URL.createObjectURL(e)})(n,v),r&&(d(n),r(n))},[o,r,i]);return t.useEffect(()=>()=>{g&&URL.revokeObjectURL(g),p&&URL.revokeObjectURL(p)},[g,p]),{previewUrl:g,thumbnailUrl:p,errorMessage:u,fileInputRef:l,videoRef:s,selectedFile:c,handleFileChange:b,handleClick:()=>{var e;return null==(e=l.current)?void 0:e.click()}}})({accept:r,maxSize:a,onFileSelect:l,validateFile:s}),y=h||(f?f.type.startsWith("image/")?"image":f.type.startsWith("video/")?"video":"file":void 0);return o.createElement(Ta,Object.assign({handleClick:E,accept:r,isLoading:d,progress:u,icon:i,text:n,maxSize:a,onFileSelect:l,validateFile:s,errorMessage:v,handleFileChange:w,selectedFile:f,videoRef:b,fileInputRef:x,previewUrl:m,thumbnailUrl:p,fileType:y},g))},exports.UserIcon=it,exports.VideoIcon=ct,exports.WarningIcon=Ot,exports.WifiIcon=lo,exports.XIcon=ht,exports.YoutubeIcon=vt,exports.ZoomInIcon=Eo,exports.ZoomOutIcon=yo,exports.hideMessage=za,exports.hideModal=Va,exports.showMessage=Sa,exports.showModal=function(e,t,o){void 0===t&&(t={}),void 0===o&&(o={}),Ra.getState().show(e,t,o),Ra.getState().onShow(e,t)},exports.useMessageStore=Oa,exports.useModalStore=Ra,exports.useToast=()=>({toast:(e,t,o,r)=>bc(e,t,o,r),info:(e,t,o)=>xc(e,t,o),success:(e,t,o)=>fc(e,t,o),warning:(e,t,o)=>wc(e,t,o),error:(e,t,o)=>Ec(e,t,o),remove:e=>yc(e),removeAll:()=>Cc()});
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0}),require("core-js/modules/es.object.assign.js");var t=require("react"),o=e(t);require("core-js/modules/es.array.includes.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.string.includes.js"),require("core-js/modules/web.dom-collections.iterator.js"),require("core-js/modules/es.regexp.to-string.js");var r=require("app-studio");require("core-js/modules/es.symbol.description.js"),require("core-js/modules/es.parse-float.js"),require("core-js/modules/es.string.trim-end.js");var i=require("react-router-dom"),n=e(require("contrast"));require("core-js/modules/es.promise.js"),require("core-js/modules/es.array.reduce.js"),require("core-js/modules/es.number.to-fixed.js"),require("core-js/modules/es.string.starts-with.js");var a=e(require("date-fns/format"));require("core-js/modules/es.parse-int.js"),require("core-js/modules/es.regexp.constructor.js"),require("core-js/modules/es.regexp.exec.js");var l=require("formik");require("core-js/modules/web.url.js"),require("core-js/modules/web.url.to-json.js"),require("core-js/modules/web.url-search-params.js");var s=require("zustand");function c(e,t){if(null==e)return{};var o={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;o[r]=e[r]}return o}require("core-js/modules/es.string.replace.js"),require("core-js/modules/es.string.ends-with.js"),require("core-js/modules/es.string.match.js"),require("core-js/modules/es.string.search.js"),require("core-js/modules/es.array.flat-map.js"),require("core-js/modules/es.array.unscopables.flat-map.js"),require("core-js/modules/es.string.trim.js");var d=function(e){return void 0===e&&(e="id"),e+"-"+Math.random().toString(36).substring(2,9)},u={sharp:{borderRadius:0},rounded:{borderRadius:8}},h={default:{backgroundColor:"transparent",borderWidth:0},outline:{borderWidth:1,borderStyle:"solid",borderColor:"color.gray.200"},filled:{backgroundColor:"color.gray.50"}},g=["value","children","isDisabled","views"],m=["children","value","isExpanded","isDisabled","triggerId","contentId","views","asChild"],p=["children","isExpanded","isDisabled","triggerId","contentId","views"],v=["children","shape","variant","views","baseId","type","collapsible","themeMode"],b=t.createContext({expandedItems:[],toggleItem:()=>{},isItemExpanded:()=>!1,type:"single",collapsible:!1,baseId:""}),x=e=>{var{children:t,value:r}=e;return o.createElement(b.Provider,{value:r},t)},f=()=>{var e=t.useContext(b);if(!e)throw new Error("useAccordionContext must be used within an AccordionProvider");return e},w=e=>{var{children:t,shape:i="rounded",variant:n="default",views:a}=e,l=c(e,v);return o.createElement(r.Vertical,Object.assign({width:"100%","data-orientation":"vertical"},u[i],h[n],null==a?void 0:a.container,l),t)},E=["children","type","value","defaultValue","onValueChange","collapsible","shape","variant","views"],y=e=>{var{children:r,type:i="single",value:n,defaultValue:a,onValueChange:l,collapsible:s=!1,shape:u="rounded",variant:h="default",views:g}=e,m=c(e,E),p=Array.isArray(a)?a:a?[a]:void 0,v=(e=>{var{type:o="single",value:r,defaultValue:i,onValueChange:n,collapsible:a=!1}=e,l=void 0!==r,s=null!=r?r:i,[c,u]=t.useState("multiple"===o?Array.isArray(s)?s:s?[s]:[]:Array.isArray(s)?s[0]:s),h=t.useMemo(()=>d("accordion"),[]),g=l?r:c,m=t.useMemo(()=>void 0===g?[]:Array.isArray(g)?g:[g],[g]);t.useEffect(()=>{l&&("multiple"!==o||Array.isArray(r)?"single"===o&&Array.isArray(r)?(console.warn('Accordion with type="single" received array value:',r),u(r.length>0?r[0]:void 0)):u(r):(console.warn('Accordion with type="multiple" received non-array value:',r),u(r?[String(r)]:[])))},[r,l,o]);var p=t.useCallback(e=>{var t;if("single"===o)t=g===e&&a?void 0:g!==e?e:g;else{var r=Array.isArray(g)?g:[];t=r.includes(e)?r.filter(t=>t!==e):[...r,e],Array.isArray(t)&&0===t.length&&(t=[])}l||u(t),n&&n(t)},[o,g,a,l,n]),v=t.useCallback(e=>m.includes(e),[m]);return{expandedItems:m,toggleItem:p,isItemExpanded:v,type:o,collapsible:a,baseId:h}})({type:i,value:n,defaultValue:null!=a?a:p,onValueChange:l,collapsible:s});return o.createElement(x,{value:{expandedItems:v.expandedItems,toggleItem:v.toggleItem,isItemExpanded:v.isItemExpanded,type:v.type,collapsible:v.collapsible,baseId:v.baseId}},o.createElement(w,Object.assign({shape:u,variant:h,views:g,baseId:v.baseId,type:v.type,collapsible:v.collapsible},m),r))};y.Item=e=>{var{value:t,children:i,isDisabled:n=!1,views:a}=e,l=c(e,g),{isItemExpanded:s,baseId:d}=f(),u=s(t),h=d+"-trigger-"+t,m=d+"-content-"+t;return o.createElement(r.View,Object.assign({borderWidth:1,borderStyle:"solid",borderColor:"color.gray.200",marginBottom:8,overflow:"hidden",opacity:n?.5:1,pointerEvents:n?"none":"auto","data-state":u?"open":"closed","data-disabled":n?"":void 0},null==a?void 0:a.item,l),o.Children.map(i,e=>o.isValidElement(e)?o.cloneElement(e,Object.assign({},e.props,{value:t,isExpanded:u,isDisabled:n,triggerId:h,contentId:m})):e))},y.Trigger=e=>{var{children:i,value:n,isExpanded:a,isDisabled:l,triggerId:s,contentId:d,views:u,asChild:h=!1}=e,g=c(e,m),{toggleItem:p}=f(),v=Object.assign({id:s,"aria-expanded":a,"aria-controls":d,"aria-disabled":l,"data-state":a?"open":"closed","data-disabled":l?"":void 0,onClick:()=>{n&&!l&&p(n)},padding:16,cursor:l?"not-allowed":"pointer",alignItems:"center",justifyContent:"space-between",backgroundColor:"color.white",width:"100%"},null==u?void 0:u.container,g);if(h&&t.isValidElement(i)){var b=t.Children.only(i);return t.cloneElement(b,Object.assign({},v,b.props))}return o.createElement(r.Horizontal,Object.assign({},v),i,o.createElement(r.View,Object.assign({width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:a?"rotate(180deg)":"rotate(0deg)"},null==u?void 0:u.icon),o.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z",fill:"currentColor"}))))},y.Content=e=>{var{children:t,isExpanded:i,isDisabled:n,triggerId:a,contentId:l,views:s}=e,d=c(e,p);return i?o.createElement(r.View,Object.assign({id:l,role:"region","aria-labelledby":a,padding:16,backgroundColor:"color.white",maxHeight:i?"1000px":"0",transition:"max-height 0.3s ease-in-out, opacity 0.3s ease-in-out",opacity:1,overflow:"hidden","data-state":i?"open":"closed","data-disabled":n?"":void 0},null==s?void 0:s.container,d),t):null};var C={h1:{fontSize:"36px",lineHeight:"40px",fontWeight:"700",letterSpacing:"-0.02em",marginBottom:"24px"},h2:{fontSize:"30px",lineHeight:"36px",fontWeight:"700",letterSpacing:"-0.02em",marginBottom:"20px"},h3:{fontSize:"24px",lineHeight:"32px",fontWeight:"600",letterSpacing:"-0.01em",marginBottom:"16px"},h4:{fontSize:"20px",lineHeight:"28px",fontWeight:"600",letterSpacing:"-0.01em",marginBottom:"16px"},h5:{fontSize:"18px",lineHeight:"24px",fontWeight:"600",letterSpacing:"-0.01em",marginBottom:"12px"},h6:{fontSize:"16px",lineHeight:"24px",fontWeight:"600",letterSpacing:"-0.01em",marginBottom:"8px"}},j={xs:"12px",sm:"14px",md:"16px",lg:"18px",xl:"20px"},k={xs:"16px",sm:"20px",md:"24px",lg:"28px",xl:"28px"},I={hairline:"100",thin:"200",light:"300",normal:"400",medium:"500",semiBold:"600",bold:"700",extraBold:"800",black:"900"},O=["text","maxLines","views"],S=["children","heading","maxLines","isItalic","isUnderlined","isSub","isSup","isStriked","weight","size","views"],z=e=>{var{children:t,isSub:i,isSup:n,views:a}=e;return o.createElement(o.Fragment,null,"string"==typeof t?o.createElement(o.Fragment,null,i&&o.createElement(r.View,Object.assign({as:"sub",fontSize:"75%",lineHeight:"0",position:"relative",bottom:"-0.25em"},null==a?void 0:a.sup),t),n&&o.createElement(r.View,Object.assign({as:"sup",fontSize:"75%",lineHeight:"0",position:"relative",top:"-0.5em"},null==a?void 0:a.sup),t),!i&&!n&&o.createElement(o.Fragment,null,t)):t)},H=e=>{var{text:i,maxLines:n=1,views:a}=e,l=c(e,O),s=t.useRef(null),[d,u]=t.useState(i),[h,g]=t.useState(!1);return t.useEffect(()=>{var e=s.current;if(!e||!i||n<=0)return u(null!=i?i:""),void g(!1);var{overflow:t,height:o,maxHeight:r,lineHeight:a}=e.style;e.style.overflow="visible",e.style.height="auto",e.style.maxHeight="none",e.innerText=i[0]||"M";var l=e.offsetHeight;if(!l){var c=getComputedStyle(e);l="normal"!==c.lineHeight?parseFloat(c.lineHeight):1.2*parseFloat(c.fontSize||"16")}var d=l*n;if(e.innerText=i,e.offsetHeight<=d)return u(i),g(!1),void x(e);for(var h=0,m=i.length,p=0;h<=m;){var v=Math.floor((h+m)/2);e.innerText=i.slice(0,v),e.offsetHeight<=d?(p=v,h=v+1):m=v-1}var b=p<i.length?i.slice(0,i.length>p+3?p-3:p).trimEnd()+"…":i;function x(e){e.style.overflow=t,e.style.height=o,e.style.maxHeight=r,e.style.lineHeight=a}u(b),g(p<i.length),x(e)},[i,n]),o.createElement(r.Text,Object.assign({ref:s,overflow:"hidden"},null==a?void 0:a.truncateText,l,{title:h?i:void 0}),d)},M=e=>{var{children:t,heading:i,maxLines:n,isItalic:a=!1,isUnderlined:l=!1,isSub:s=!1,isSup:d=!1,isStriked:u=!1,weight:h="normal",size:g="md",views:m}=e,p=c(e,S);return o.createElement(r.Element,Object.assign({fontSize:j[g],lineHeight:k[g],fontStyle:a?"italic":"normal",fontWeight:I[h],letterSpacing:"-0.01em",textDecoration:u?"line-through":l?"underline":"none"},s||d?{display:"inline"}:{},i?C[i]:{},p,null==m?void 0:m.container),n&&"string"==typeof t?o.createElement(H,{text:t,maxLines:n}):o.createElement(z,{isSub:s,isSup:d},t))},T=e=>o.createElement(M,Object.assign({},e)),W=["widthHeight","color","transform","orientation","children"],R=["widthHeight","color","filled","strokeWidth"],V=["widthHeight","color","strokeWidth","filled"],L=["widthHeight","color","filled","strokeWidth"],B=["widthHeight","color","filled","strokeWidth"],_=["widthHeight","color","filled","strokeWidth"],P=["widthHeight","color","filled","strokeWidth"],D=["widthHeight","color","filled","strokeWidth"],F=["widthHeight","color","filled","strokeWidth"],A=["widthHeight","color","filled","strokeWidth"],G=["widthHeight","color","filled","strokeWidth"],N=["widthHeight","color","filled","strokeWidth"],U=["widthHeight","color","filled","strokeWidth"],Y=["widthHeight","color","filled","strokeWidth"],K=["widthHeight","color","filled","strokeWidth"],X=["widthHeight","color","filled","strokeWidth"],q=["widthHeight","color","filled","strokeWidth"],Z=["widthHeight","color","filled","strokeWidth"],J=["widthHeight","color","filled","strokeWidth"],Q=["widthHeight","color","filled","strokeWidth"],$=["widthHeight","color","filled","strokeWidth"],ee=["widthHeight","color","filled","strokeWidth"],te=["widthHeight","color","filled","strokeWidth"],oe=["widthHeight","color","filled","strokeWidth"],re=["widthHeight","color","filled","strokeWidth"],ie=["widthHeight","color","filled","strokeWidth"],ne=["widthHeight","color","filled","strokeWidth"],ae=["widthHeight","color","filled","strokeWidth"],le=["widthHeight","color","filled","strokeWidth"],se=["widthHeight","color","filled","strokeWidth"],ce=["widthHeight","color","filled","strokeWidth"],de=["widthHeight","color","strokeWidth","filled"],ue=["widthHeight","color","filled","strokeWidth"],he=["widthHeight","color","strokeWidth","filled"],ge=["widthHeight","color","filled","strokeWidth"],me=["widthHeight","color","strokeWidth","filled"],pe=["widthHeight","color","filled","strokeWidth"],ve=["widthHeight","color","strokeWidth","filled"],be=["widthHeight","color","strokeWidth","filled"],xe=["widthHeight","color","strokeWidth","filled"],fe=["widthHeight","color","filled","strokeWidth"],we=["widthHeight","color","filled","strokeWidth"],Ee=["widthHeight","color","filled","strokeWidth"],ye=["widthHeight","color","filled","strokeWidth"],Ce=["widthHeight","color","filled","strokeWidth"],je=["widthHeight","color","filled","strokeWidth"],ke=["widthHeight","color","filled","strokeWidth"],Ie=["widthHeight","color","filled","strokeWidth"],Oe=["widthHeight","color","filled","strokeWidth"],Se=["widthHeight","color","filled","strokeWidth"],ze=["widthHeight","color","filled","strokeWidth"],He=["widthHeight","color","filled","strokeWidth"],Me=["widthHeight","color","strokeWidth","filled"],Te=["widthHeight","color","strokeWidth","filled"],We=["widthHeight","color","filled","strokeWidth"],Re=["widthHeight","color","filled","strokeWidth"],Ve=["widthHeight","color","filled","strokeWidth"],Le=["widthHeight","color","filled","strokeWidth"],Be=["widthHeight","color","filled","strokeWidth"],_e=["widthHeight","color","filled","strokeWidth"],Pe=["widthHeight","color","filled","strokeWidth"],De=["widthHeight","color","filled","strokeWidth"],Fe=["widthHeight","color","filled","strokeWidth"],Ae=["widthHeight","color","filled","strokeWidth"],Ge=["widthHeight","color","filled","strokeWidth"],Ne=["widthHeight","color","filled","strokeWidth"],Ue=["widthHeight","color","filled","strokeWidth"],Ye=["widthHeight","color","strokeWidth","filled"],Ke=["widthHeight","color","strokeWidth","filled"],Xe=["widthHeight","color","strokeWidth","filled"],qe=["widthHeight","color","strokeWidth","filled"],Ze=["widthHeight","color","strokeWidth","filled"],Je=["widthHeight","color","strokeWidth","filled"],Qe=["widthHeight","color","strokeWidth","filled"],$e=["widthHeight","color","strokeWidth","filled"],et=["widthHeight","color","strokeWidth","filled"],tt=["widthHeight","color","strokeWidth","filled"],ot=["widthHeight","color","strokeWidth","filled"],rt=["widthHeight","color","strokeWidth","filled"],it=e=>{var{widthHeight:t,color:i="black",transform:n,orientation:a="up",children:l}=e,s=c(e,W);return o.createElement(r.Center,Object.assign({widthHeight:t,lineHeight:t,color:i,display:"flex",transform:n||("left"===a?"rotate(-90deg)":"right"===a?"rotate(90deg)":"up"===a?"rotate(0deg)":"down"===a?"rotate(180deg)":"none")},s),l)},nt=(e,t,o)=>{var{getColor:i}=r.useTheme();return{fill:e?i(t):"none",stroke:e?"none":i(t),strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}},at=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,R);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"})))},lt=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,V);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(n,r,i)),o.createElement("circle",{cx:"12",cy:"12",r:"10"}),o.createElement("path",{d:"M9.09 9a3 3 0 1 1 5.91 1c0 2-3 3-3 3"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"})))},st=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,L);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M12.771 7.115a.829.829 0 0 0-1.2 0L3 15.686l1.2 1.2 7.971-7.971 7.972 7.971 1.2-1.2-8.572-8.571Z"})))},ct=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,B);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(i,r,n)),o.createElement("g",null,o.createElement("circle",{cx:"9",cy:"6",r:"2"}),o.createElement("circle",{cx:"9",cy:"12",r:"2"}),o.createElement("circle",{cx:"9",cy:"18",r:"2"}),o.createElement("circle",{cx:"15",cy:"6",r:"2"}),o.createElement("circle",{cx:"15",cy:"12",r:"2"}),o.createElement("circle",{cx:"15",cy:"18",r:"2"}))))},dt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,_);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z",fill:i?r:"none",stroke:i?"none":r,strokeWidth:i?0:n}),o.createElement("polyline",{points:"14 2 14 8 20 8",fill:"none",stroke:r,strokeWidth:n})))},ut=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,P);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(i,r,n)),o.createElement("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",ry:"2",fill:i?r:"none",stroke:i?"none":r,strokeWidth:i?0:n}),o.createElement("polygon",{points:"10 8 16 12 10 16 10 8",fill:i?i?"white":r:"none",stroke:i?"none":r,strokeWidth:i?0:n})))},ht=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,D);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(i,r,n)),o.createElement("rect",{x:"2",y:"2",width:"20",height:"20",rx:"2",ry:"2",fill:i?r:"none",stroke:i?"none":r,strokeWidth:i?0:n}),o.createElement("circle",{cx:"8.5",cy:"8.5",r:"1.5",fill:i?i?"white":r:"none",stroke:i?"none":r,strokeWidth:i?0:n}),o.createElement("polyline",{points:"21 15 16 10 5 21",fill:"none",stroke:i?"white":r,strokeWidth:n})))},gt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,F);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M22.46 6.01c-.83.37-1.72.62-2.65.74a4.6 4.6 0 0 0 2.01-2.54 9.2 9.2 0 0 1-2.91 1.11 4.54 4.54 0 0 0-7.75 4.14A12.86 12.86 0 0 1 3.15 4.47a4.54 4.54 0 0 0 1.4 6.06 4.5 4.5 0 0 1-2.06-.57v.06a4.54 4.54 0 0 0 3.64 4.45 4.61 4.61 0 0 1-2.05.08 4.54 4.54 0 0 0 4.23 3.15 9.12 9.12 0 0 1-5.64 1.94c-.37 0-.74-.02-1.1-.07A12.86 12.86 0 0 0 8.21 21c8.38 0 12.96-6.94 12.96-12.96 0-.2 0-.4-.01-.6a9.28 9.28 0 0 0 2.3-2.37z",fill:i?r:"none",stroke:i?"none":r,strokeWidth:i?0:n})))},mt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,A);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z",fill:i?r:"none",stroke:r,strokeWidth:n})))},pt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,G);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M2 2v16h5v4l4-4h5l6-6V2H2zm18 10-3 3h-5l-3 3v-3H4V4h16v8z",fill:i?r:"none",stroke:r,strokeWidth:i?0:n}),o.createElement("path",{d:"M14 7h2v5h-2V7zm-4 0h2v5H10V7z",fill:i?r:"none",stroke:r,strokeWidth:i?0:n})))},vt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,N);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(i,r,n)),o.createElement("line",{stroke:r,x1:"18",y1:"6",x2:"6",y2:"18"}),o.createElement("line",{stroke:r,x1:"6",y1:"6",x2:"18",y2:"18"})))},bt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,U);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(i,r,n)),o.createElement("rect",{x:"2",y:"2",width:"20",height:"20",rx:"5",ry:"5"}),o.createElement("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),o.createElement("line",{x1:"17.5",y1:"6.5",x2:"17.51",y2:"6.5"})))},xt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,Y);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M21.8 8.001A2.8 2.8 0 0 0 19 5.2C17.793 5 12 5 12 5s-5.793 0-7 0.2a2.8 2.8 0 0 0-2.8 2.8c-0.2 1.207-0.2 3-0.2 3s0 1.793 0.2 3a2.8 2.8 0 0 0 2.8 2.8c1.207 0.2 7 0.2 7 0.2s5.793 0 7-0.2a2.8 2.8 0 0 0 2.8-2.8c0.2-1.207 0.2-3 0.2-3s0-1.793-0.2-3z",fill:i?r:"none",stroke:i?"none":r,strokeWidth:i?0:n}),o.createElement("polygon",{points:"10 8 10 14 14 10",fill:"white",stroke:"white",strokeWidth:n})))},ft=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,K);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M22 2H2v20h10v-7h-2v-3h2V9.5a4 4 0 0 1 4-4h3v3h-3a1 1 0 0 0-1 1V12h4l-1 3h-3v7h6V2z",fill:i?r:"none",stroke:r,strokeWidth:i?0:n})))},wt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,X);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24"},nt(i,r,n)),o.createElement("path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"}),o.createElement("rect",{x:"2",y:"9",width:"4",height:"12"}),o.createElement("circle",{cx:"4",cy:"4",r:"2"})))},Et=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,q);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24"},nt(i,r,n)),o.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElement("path",{d:"M19 7.5c-1.333 -3 -3.667 -4.5 -7 -4.5c-5 0 -8 2.5 -8 9s3.5 9 8 9s7 -3 7\n -5s-1 -5 -7 -5c-2.5 0 -3 1.25 -3 2.5c0 1.5 1 2.5 2.5 2.5c2.5 0 3.5 -1.5\n 3.5 -5s-2 -4 -3 -4s-1.833 .333 -2.5 1"})))},yt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,Z);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},nt(i,r,n)),o.createElement("line",{stroke:r,x1:"8",y1:"12",x2:"16",y2:"12"})))},Ct=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,J);return o.createElement(it,Object.assign({widthHeight:t,color:r},a,{"aria-label":"Information"}),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})))},jt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,Q);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M8 5v14l11-7z"})))},kt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,$);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M6 4h4v16H6V4zm8 0h4v16h-4V4z"})))},It=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,ee);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M20.84 4.61c-1.54-1.56-4.04-1.56-5.59 0l-.7.72-.7-.72a3.95 3.95 0 0 0-5.59 0c-1.56 1.56-1.56 4.09 0 5.66l6.29 6.36 6.29-6.36c1.56-1.56 1.56-4.09 0-5.66z"})))},Ot=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,te);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})))},St=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,oe);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"}),o.createElement("polyline",{points:"17 21 17 13 7 13 7 21"}),o.createElement("polyline",{points:"7 3 7 8 15 8"})))},zt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,re);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M10.29 3.86l-6.6 11.4c-.78 1.36.2 3.1 1.71 3.1h13.2c1.51 0 2.49-1.74 1.71-3.1l-6.6-11.4a2 2 0 0 0-3.42 0z"}),o.createElement("line",{stroke:r,x1:"12",y1:"6",x2:"12",y2:"13"}),o.createElement("line",{stroke:r,x1:"12",y1:"15",x2:"12",y2:"15"})))},Ht=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,ie);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"})))},Mt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,ne);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z"})))},Tt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,ae);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M18 10h-1.26A8 8 0 109 20h9a5 5 0 000-10z"})))},Wt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,le);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),o.createElement("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})))},Rt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,se);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"})))},Vt=Rt,Lt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,ce);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M18.3785 8.44975L8.9636 17.8648C8.6844 18.144 8.3288 18.3343 7.94161 18.4117L4.99988 19.0001L5.58823 16.0583C5.66566 15.6711 5.85597 15.3155 6.13517 15.0363L15.5501 5.62132M18.3785 8.44975L19.7927 7.03553C20.1832 6.64501 20.1832 6.01184 19.7927 5.62132L18.3785 4.20711C17.988 3.81658 17.3548 3.81658 16.9643 4.20711L15.5501 5.62132M18.3785 8.44975L15.5501 5.62132"})))},Bt=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!0}=e,a=c(e,de);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(n,r,i)),o.createElement("circle",{cx:"12",cy:"12",r:"10"}),o.createElement("line",{x1:"15",y1:"9",x2:"9",y2:"15",stroke:n?"white":r}),o.createElement("line",{x1:"9",y1:"9",x2:"15",y2:"15",stroke:n?"white":r})))},_t=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,ue);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"})))},Pt=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,he);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(n,r,i)),o.createElement("line",{stroke:r,x1:"3",y1:"12",x2:"21",y2:"12"}),o.createElement("line",{stroke:r,x1:"3",y1:"6",x2:"21",y2:"6"}),o.createElement("line",{stroke:r,x1:"3",y1:"18",x2:"21",y2:"18"})))},Dt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,ge);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("circle",{cx:"18",cy:"5",r:"3"}),o.createElement("circle",{cx:"6",cy:"12",r:"3"}),o.createElement("circle",{cx:"18",cy:"19",r:"3"}),o.createElement("line",{stroke:r,x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),o.createElement("line",{stroke:r,x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"})))},Ft=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,me);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(n,r,i)),o.createElement("polyline",{points:"23 4 23 10 17 10"}),o.createElement("path",{d:"M20.49 15a9 9 0 1 1-2.13-9.36L23 10"})))},At=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,pe);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1"},o.createElement("path",{d:"M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"})))},Gt=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!0}=e,a=c(e,ve);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(n,r,i)),o.createElement("rect",{x:"-3",y:"17",width:"15",height:"4",rx:"1",transform:"rotate(-40 2 13)"}),o.createElement("path",{d:"M17 3L18 6L21 7L18 8L17 11L16 8L13 7L16 6L17 3Z"}),o.createElement("path",{d:"M21 9L21.7 11L23.5 12L21.7 13L21 15L20.3 13L18.5 12L20.3 11L21 9Z"}),o.createElement("path",{d:"M16 15L16.7 16.5L18 17L16.7 17.5L16 19L15.3 17.5L14 17L15.3 16.5L16 15Z"})))},Nt=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,be);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(n,r,i)),o.createElement("line",{stroke:r,x1:"4",y1:"21",x2:"4",y2:"14"}),o.createElement("line",{stroke:r,x1:"4",y1:"10",x2:"4",y2:"3"}),o.createElement("line",{stroke:r,x1:"12",y1:"21",x2:"12",y2:"12"}),o.createElement("line",{stroke:r,x1:"12",y1:"8",x2:"12",y2:"3"}),o.createElement("line",{stroke:r,x1:"20",y1:"21",x2:"20",y2:"16"}),o.createElement("line",{stroke:r,x1:"20",y1:"12",x2:"20",y2:"3"}),o.createElement("line",{stroke:r,x1:"1",y1:"14",x2:"7",y2:"14"}),o.createElement("line",{stroke:r,x1:"9",y1:"8",x2:"15",y2:"8"}),o.createElement("line",{stroke:r,x1:"17",y1:"16",x2:"23",y2:"16"})))},Ut=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,xe);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(n,r,i)),o.createElement("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),o.createElement("path",{d:"M9 3v18"})))},Yt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,fe);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M3 4h18l-7 10v5l-4 2v-7L3 4z"})))},Kt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,we);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5z"})))},Xt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,Ee);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"})))},qt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,ye);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),i?o.createElement("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}):o.createElement(o.Fragment,null,o.createElement("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),o.createElement("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"}),o.createElement("circle",{cx:"12",cy:"16",r:"1.5"}))))},Zt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,Ce);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M12 1a4 4 0 0 0-4 4v6a4 4 0 0 0 8 0V5a4 4 0 0 0-4-4z"}),o.createElement("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),o.createElement("line",{stroke:r,x1:"12",y1:"19",x2:"12",y2:"23"}),o.createElement("line",{stroke:r,x1:"8",y1:"23",x2:"16",y2:"23"})))},Jt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,je);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"})))},Qt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,ke);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9"}),o.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"})))},$t=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,Ie);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M12 4C7 4 2.73 7.11 1 12c1.73 4.89 6 8 11 8s9.27-3.11 11-8c-1.73-4.89-6-8-11-8zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"})))},eo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,Oe);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{fill:i?r:"none",d:"M12 13c-2.67 0-8 1.34-8 4v2c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-2c0-2.66-5.33-4-8-4zm0-9c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z M12 2C9.79 2 8 3.79 8 6s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z M12 13c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"})," "))},to=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,Se);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M19.4 13c0-.3.1-.6.1-1s0-.7-.1-1l2.1-1.6c.2-.2.2-.4.1-.6l-2-3.5c-.1-.2-.4-.3-.6-.2l-2.5 1c-.5-.4-1.1-.7-1.7-.9l-.4-2.6c0-.2-.3-.4-.5-.4h-4c-.2 0-.5.2-.5.4l-.4 2.6c-.6.2-1.2.5-1.7.9l-2.5-1c-.2-.1-.5 0-.6.2l-2 3.5c-.1.2-.1.4.1.6L4.6 11c0 .3-.1.6-.1 1s0 .7.1 1l-2.1 1.6c-.2.2-.2.4-.1.6l2 3.5c.1.2.4.3.6.2l2.5-1c.5.4 1.1.7 1.7.9l.4 2.6c0 .2.3.4.5.4h4c.2 0 .5-.2.5-.4l.4-2.6c.6-.2 1.2-.5 1.7-.9l2.5 1c.2.1.5 0 .6-.2l2-3.5c.1-.2.1-.4-.1-.6L19.4 13zM12 15.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5z"})))},oo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,ze);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})))},ro=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,He);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z"})))},io=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,Me);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(n,r,i)),o.createElement("circle",{cx:"12",cy:"12",r:"10"}),o.createElement("polyline",{points:"12 6 12 12 16 14"})))},no=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,Te);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(n,r,i)),o.createElement("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h3l2-3h8l2 3h3a2 2 0 0 1 2 2z"}),o.createElement("circle",{cx:"12",cy:"13",r:"4"})))},ao=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,We);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M17.71 7.71L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46L13 18.17v-3.76l1.88 1.88z"})))},lo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,Re);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z"})))},so=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,Ve);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),i?o.createElement("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2z"}):o.createElement(o.Fragment,null,o.createElement("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),o.createElement("path",{d:"M7 11V7a5 5 0 0 1 9.9-1"}),o.createElement("circle",{cx:"12",cy:"16",r:"1.5"}))))},co=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,Le);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13z"})))},uo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,Be);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-1"}),o.createElement("path",{d:"M9 15l3 -3l3 3"}),o.createElement("path",{d:"M12 12l0 9"})))},ho=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,_e);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})))},go=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,Pe);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M19.7071 5.70711C20.0976 5.31658 20.0976 4.68342 19.7071 4.29289C19.3166 3.90237 18.6834 3.90237 18.2929 4.29289L14.032 8.55382C13.4365 8.20193 12.7418 8 12 8C9.79086 8 8 9.79086 8 12C8 12.7418 8.20193 13.4365 8.55382 14.032L4.29289 18.2929C3.90237 18.6834 3.90237 19.3166 4.29289 19.7071C4.68342 20.0976 5.31658 20.0976 5.70711 19.7071L9.96803 15.4462C10.5635 15.7981 11.2582 16 12 16C14.2091 16 16 14.2091 16 12C16 11.2582 15.7981 10.5635 15.4462 9.96803L19.7071 5.70711ZM12.518 10.0677C12.3528 10.0236 12.1792 10 12 10C10.8954 10 10 10.8954 10 12C10 12.1792 10.0236 12.3528 10.0677 12.518L12.518 10.0677ZM11.482 13.9323L13.9323 11.482C13.9764 11.6472 14 11.8208 14 12C14 13.1046 13.1046 14 12 14C11.8208 14 11.6472 13.9764 11.482 13.9323ZM15.7651 4.8207C14.6287 4.32049 13.3675 4 12 4C9.14754 4 6.75717 5.39462 4.99812 6.90595C3.23268 8.42276 2.00757 10.1376 1.46387 10.9698C1.05306 11.5985 1.05306 12.4015 1.46387 13.0302C1.92276 13.7326 2.86706 15.0637 4.21194 16.3739L5.62626 14.9596C4.4555 13.8229 3.61144 12.6531 3.18002 12C3.6904 11.2274 4.77832 9.73158 6.30147 8.42294C7.87402 7.07185 9.81574 6 12 6C12.7719 6 13.5135 6.13385 14.2193 6.36658L15.7651 4.8207ZM12 18C11.2282 18 10.4866 17.8661 9.78083 17.6334L8.23496 19.1793C9.37136 19.6795 10.6326 20 12 20C14.8525 20 17.2429 18.6054 19.002 17.0941C20.7674 15.5772 21.9925 13.8624 22.5362 13.0302C22.947 12.4015 22.947 11.5985 22.5362 10.9698C22.0773 10.2674 21.133 8.93627 19.7881 7.62611L18.3738 9.04043C19.5446 10.1771 20.3887 11.3469 20.8201 12C20.3097 12.7726 19.2218 14.2684 17.6986 15.5771C16.1261 16.9282 14.1843 18 12 18Z",fill:"currentColor"})))},mo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,De);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(!0,r,n)),o.createElement("path",{d:"M14 3h7v7h-2V5.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3ZM5 5h5v2H6v11h11v-4h2v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Z"})))},po=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,Fe);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("line",{stroke:r,x1:"12",y1:"5",x2:"12",y2:"19"}),o.createElement("line",{stroke:r,x1:"5",y1:"12",x2:"19",y2:"12"})))},vo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,Ae);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M5 13l4 4L19 7",strokeLinecap:"round",strokeLinejoin:"round"})))},bo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!0,strokeWidth:n=1}=e,a=c(e,Ge);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("path",{d:"M12 4l7 7h-4v7h-6v-7H5l7-7z"})))},xo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,Ne);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("line",{stroke:r,x1:"12",y1:"20",x2:"12",y2:"8"}),o.createElement("polyline",{points:"6 12 12 6 18 12"})))},fo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:i=!1,strokeWidth:n=1}=e,a=c(e,Ue);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(i,r,n)),o.createElement("circle",{cx:"12",cy:"12",r:"10",strokeOpacity:"0.25"}),o.createElement("path",{d:"M12 2a10 10 0 0 1 10 10",strokeOpacity:"1"})))},wo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,Ye);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(n,r,i)),o.createElement("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),o.createElement("line",{stroke:r,x1:"16",y1:"2",x2:"16",y2:"6"}),o.createElement("line",{stroke:r,x1:"8",y1:"2",x2:"8",y2:"6"}),o.createElement("line",{stroke:r,x1:"3",y1:"10",x2:"21",y2:"10"})))},Eo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,Ke);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(n,r,i)),o.createElement("line",{x1:"3",y1:"4",x2:"10",y2:"4"}),o.createElement("line",{x1:"14",y1:"4",x2:"21",y2:"4"}),o.createElement("line",{x1:"3",y1:"12",x2:"12",y2:"12"}),o.createElement("line",{x1:"16",y1:"12",x2:"21",y2:"12"}),o.createElement("line",{x1:"3",y1:"20",x2:"8",y2:"20"}),o.createElement("line",{x1:"12",y1:"20",x2:"21",y2:"20"}),o.createElement("line",{x1:"10",y1:"1",x2:"10",y2:"7"}),o.createElement("line",{x1:"16",y1:"9",x2:"16",y2:"15"}),o.createElement("line",{x1:"8",y1:"17",x2:"8",y2:"23"})))},yo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,Xe);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(n,r,i)),o.createElement("path",{d:"M6 2v14a2 2 0 0 0 2 2h14"}),o.createElement("path",{d:"M18 22V8a2 2 0 0 0-2-2H2"})))},Co=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,qe);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(n,r,i)),o.createElement("circle",{cx:"11",cy:"11",r:"8"}),o.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),o.createElement("line",{x1:"11",y1:"8",x2:"11",y2:"14"}),o.createElement("line",{x1:"8",y1:"11",x2:"14",y2:"11"})))},jo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,Ze);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(n,r,i)),o.createElement("circle",{cx:"11",cy:"11",r:"8"}),o.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),o.createElement("line",{x1:"8",y1:"11",x2:"14",y2:"11"})))},ko=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,Je);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(n,r,i)),o.createElement("line",{x1:"4",y1:"6",x2:"20",y2:"6"}),o.createElement("line",{x1:"12",y1:"6",x2:"12",y2:"18"}),o.createElement("line",{x1:"8",y1:"18",x2:"16",y2:"18"})))},Io=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,Qe);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(n,r,i)),o.createElement("rect",{x:"4",y:"8",width:"8",height:"8"}),o.createElement("circle",{cx:"16",cy:"16",r:"4"}),o.createElement("polygon",{points:"16,4 19,8 13,8"})))},Oo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,$e);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(n,r,i)),o.createElement("polyline",{points:"1 4 1 10 7 10"}),o.createElement("path",{d:"M3.51 15a9 9 0 1 0 2.13-9.36L1 10"})))},So=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,et);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(n,r,i)),o.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"}),o.createElement("polyline",{points:"14 2 14 8 20 8"}),o.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),o.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),o.createElement("polyline",{points:"10 9 9 9 8 9"})))},zo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,tt);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(n,r,i)),o.createElement("polyline",{points:"14 2 14 8 20 8"}),o.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),o.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"}),o.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"}),o.createElement("polyline",{points:"10 9 9 9 8 9"}),o.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),o.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),o.createElement("polyline",{points:"14 2 14 8 20 8"}),o.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"}),o.createElement("polyline",{points:"10 9 9 9 8 9"}),o.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"})))},Ho=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!1}=e,a=c(e,ot);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(n,r,i)),o.createElement("rect",{x:"3",y:"8",width:"18",height:"4",rx:"1"}),o.createElement("path",{d:"M12 8V21"}),o.createElement("path",{d:"M3 12v6a3 3 0 0 0 3 3h3V12"}),o.createElement("path",{d:"M18 21h-3v-9h6v6a3 3 0 0 1-3 3z"}),o.createElement("path",{d:"M12 8c-.5-2.5-4-3-5-1.5S9 10 12 8z"}),o.createElement("path",{d:"M12 8c.5-2.5 4-3 5-1.5S15 10 12 8z"})))},Mo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:i=1,filled:n=!0}=e,a=c(e,rt);return o.createElement(it,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},nt(n,r,i)),o.createElement("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})))},To=vo,Wo={__proto__:null,UserIcon:at,HelpIcon:lt,ChevronIcon:st,DragHandleIcon:ct,FileIcon:dt,VideoIcon:ut,ImageIcon:ht,TwitterIcon:gt,XIcon:mt,TwitchIcon:pt,CloseIcon:vt,InstagramIcon:bt,YoutubeIcon:xt,FacebookIcon:ft,LinkedinIcon:wt,ThreadsIcon:Et,MinusIcon:yt,InfoIcon:Ct,PlayIcon:jt,PauseIcon:kt,HeartIcon:It,StarIcon:Ot,SaveIcon:St,WarningIcon:zt,BatteryIcon:Ht,BookmarkIcon:Mt,CloudIcon:Tt,CopyIcon:Wt,DustBinIcon:Rt,DeleteIcon:Vt,EditIcon:Lt,ErrorIcon:Bt,DownloadIcon:_t,MenuIcon:Pt,ShareIcon:Dt,RefreshIcon:Ft,PrintIcon:At,MagicWandIcon:Gt,SliderVerticalIcon:Nt,PanelIcon:Ut,FilterIcon:Yt,HomeIcon:Kt,LocationIcon:Xt,LockIcon:qt,MicrophoneIcon:Zt,MoonIcon:Jt,NotificationIcon:Qt,OpenEyeIcon:$t,ProfileIcon:eo,SettingsIcon:to,SuccessIcon:oo,UnLikeIcon:ro,ClockIcon:io,CameraIcon:no,BluetoothIcon:ao,LikeIcon:lo,UnlockIcon:so,WifiIcon:co,UploadIcon:uo,SearchIcon:ho,CloseEyeIcon:go,ExternalLinkIcon:mo,PlusIcon:po,TickIcon:vo,BoldArrowIcon:bo,ArrowIcon:xo,SpinnerIcon:fo,CalendarIcon:wo,SliderIcon:Eo,CropIcon:yo,ZoomInIcon:Co,ZoomOutIcon:jo,TextIcon:ko,ShapeIcon:Io,RotateIcon:Oo,DocumentIcon:So,ChartIcon:zo,GiftIcon:Ho,ShieldIcon:Mo,CheckIcon:To},Ro=["icon","title","views","description","variant","themeMode"],Vo=e=>{var{icon:t,title:i,views:n,description:a,variant:l="default"}=e,s=c(e,Ro),d=(r.useTheme(),{default:{container:{backgroundColor:"color.gray.50",borderColor:"color.gray.200",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.05)"},content:{color:"color.gray.700"},icon:{color:"color.gray.500"}},info:{container:{backgroundColor:"color.blue.50",borderColor:"color.blue.200",boxShadow:"0 1px 2px rgba(59, 130, 246, 0.05)"},content:{color:"color.blue.700"},icon:{color:"color.blue.500"}},success:{container:{backgroundColor:"color.green.50",borderColor:"color.green.200",boxShadow:"0 1px 2px rgba(34, 197, 94, 0.05)"},content:{color:"color.green.700"},icon:{color:"color.green.500"}},error:{container:{backgroundColor:"color.red.50",borderColor:"color.red.200",boxShadow:"0 1px 2px rgba(239, 68, 68, 0.05)"},content:{color:"color.red.700"},icon:{color:"color.red.500"}},warning:{container:{backgroundColor:"color.orange.50",borderColor:"color.orange.200",boxShadow:"0 1px 2px rgba(249, 115, 22, 0.05)"},content:{color:"color.orange.700"},icon:{color:"color.orange.500"}}});return o.createElement(r.Horizontal,Object.assign({gap:12,padding:"16px",flexWrap:"nowrap",alignItems:"flex-start",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:d[l].container.borderColor,backgroundColor:d[l].container.backgroundColor,boxShadow:d[l].container.boxShadow,transition:"all 0.2s ease"},null==n?void 0:n.container,s),o.createElement(r.View,Object.assign({alignSelf:"flex-start",marginTop:"2px"},null==n?void 0:n.icon),(()=>{var e,r;if(t)return t;var i={size:20,color:null!=(e=null==n||null==(r=n.icon)?void 0:r.color)?e:d[l].icon.color};switch(l){case"info":return o.createElement(Ct,Object.assign({},i));case"success":return o.createElement(oo,Object.assign({},i));case"error":return o.createElement(Bt,Object.assign({},i));case"warning":default:return o.createElement(zt,Object.assign({},i))}})()),o.createElement(r.Vertical,{gap:8}," ",o.createElement(T,Object.assign({fontSize:"16px",fontWeight:"600",lineHeight:"24px",color:d[l].content.color},null==n?void 0:n.title),i),o.createElement(T,Object.assign({fontSize:"14px",fontWeight:"400",lineHeight:"20px",color:d[l].content.color},null==n?void 0:n.description),a)))},Lo=["ratio","children","views"],Bo=e=>{var{ratio:t=16/9,children:i,views:n}=e,a=c(e,Lo);return o.createElement(r.Center,Object.assign({width:"100%",position:"relative",overflow:"hidden",paddingTop:1/t*100+"%",borderRadius:8},a,null==n?void 0:n.center),o.createElement(r.View,Object.assign({position:"absolute",top:0,right:0,bottom:0,left:0},null==n?void 0:n.view),i))},_o=["ratio","children"],Po={xs:24,sm:32,md:48,lg:64,xl:80},Do={borderRadius:"50%",overflow:"hidden",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",backgroundColor:"color.gray.100",boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.1)",transition:"all 0.2s ease"},Fo={fontWeight:"500",color:"color.gray.600"},Ao={objectFit:"cover",transition:"all 0.2s ease"},Go=e=>{var{src:t,size:i="md",fallback:n="IM",views:a,imageError:l,setImageError:s,onClick:c=(()=>{})}=e,d=Po[i],u=Object.assign({},Ao,(null==a?void 0:a.image)||{});return o.createElement(r.Center,Object.assign({role:"avatar",width:d,height:d},Do,{borderColor:l?"color.gray.400":"transparent",onClick:c},null==a?void 0:a.container),l?o.createElement(T,Object.assign({size:i},Fo,null==a?void 0:a.fallback),n):o.createElement(r.Image,{alt:"IM",src:t,style:u,width:d,height:d,onError:()=>s(!0)}))},No={xs:{minWidth:"20px",height:"20px",padding:"0 6px",fontSize:"10px",fontWeight:"500",lineHeight:"20px"},sm:{minWidth:"24px",height:"24px",padding:"0 8px",fontSize:"12px",fontWeight:"500",lineHeight:"24px"},md:{minWidth:"28px",height:"28px",padding:"0 10px",fontSize:"14px",fontWeight:"500",lineHeight:"28px"},lg:{minWidth:"32px",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:"500",lineHeight:"32px"},xl:{minWidth:"36px",height:"36px",padding:"0 14px",fontSize:"16px",fontWeight:"500",lineHeight:"36px"}},Uo={sharp:0,rounded:"8px",pillShaped:"9999px"},Yo={"top-right":{top:"4px",right:"4px",position:"absolute"},"top-left":{top:"4px",left:"4px",position:"absolute"},"bottom-right":{bottom:"4px",right:"4px",position:"absolute"},"bottom-left":{bottom:"4px",left:"4px",position:"absolute"}},Ko=["content","position","shape","variant","size","views","themeMode"],Xo=e=>{var{content:t,position:i,shape:n="pillShaped",variant:a="filled",size:l="md",views:s}=e,d=c(e,Ko),u=(r.useTheme(),Object.assign({width:"fit-content",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"color.black",borderRadius:Uo[n]},No[l],{filled:{backgroundColor:"theme.primary",color:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",transition:"all 0.2s ease"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"theme.primary",color:"theme.primary",transition:"all 0.2s ease"},link:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",color:"theme.primary",textDecoration:"underline",textUnderlineOffset:"2px",transition:"all 0.2s ease"},ghost:{backgroundColor:"transparent",color:"color.gray.500",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",transition:"all 0.2s ease"}}[a],i?Yo[i]:{},null==s?void 0:s.container));return o.createElement(r.Center,Object.assign({role:"badge"},u,d),o.createElement(T,Object.assign({role:"badgeText",fontWeight:"500",textAlign:"center"},null==s?void 0:s.text,{color:u.color}),t||""))},qo={xs:12,sm:14,md:16,lg:18,xl:20},Zo=["children","to","iconSize","underline","isHovered","isExternal","views","setIsHovered"],Jo=e=>{var{children:t,to:n="/",iconSize:a="sm",underline:l="default",isHovered:s=!1,isExternal:d=!1,views:u={icon:{},text:{}},setIsHovered:h=(()=>{})}=e,g=c(e,Zo),m=()=>{"hover"===l&&h(!0)};return o.createElement(i.Link,{to:n,target:d?"_blank":"_self",style:{textDecoration:"inherit",color:"inherit"}},o.createElement(r.Horizontal,Object.assign({onMouseEnter:m,onMouseLeave:m,gap:3,alignItems:"center",flexWrap:"nowrap",textDecoration:"none"},u.text,g),t,d&&o.createElement(mo,{widthHeight:qo[a]})))},Qo=e=>{var r=(()=>{var[e,o]=t.useState(!1);return{isHovered:e,setIsHovered:o}})();return o.createElement(Jo,Object.assign({},r,e))},$o={xs:14,sm:18,md:22,lg:26,xl:30},er={fast:50,normal:100,slow:300},tr=["size","speed","color","themeMode"],or=["size","speed","color","themeMode"],rr=["size","speed","color","themeMode"],ir=["size","children","textColor","loaderColor","type","speed","textPosition","views"],nr=e=>{var{size:i="md",speed:n="normal",color:a="theme.loading",themeMode:l}=e,s=c(e,tr),{getColor:d,themeMode:u}=r.useTheme(),h=d(a,{themeMode:l||u}),g="number"==typeof i?i:$o[i],[m,p]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{p(e=>e+45)},er[n]);return()=>clearInterval(e)},[n]),o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:g+"px",height:g+"px",viewBox:"0 0 24 24",fill:"none",stroke:h,strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:"rotate("+m+"deg)"}},s),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("path",{d:"M21 12a9 9 0 11-6.219-8.56"})))},ar=e=>{var{size:i="md",speed:n="normal",color:a="theme.loading",themeMode:l}=e,s=c(e,or),{getColor:d,themeMode:u}=r.useTheme(),h=d(a,{themeMode:l||u}),g="number"==typeof i?i:$o[i],[m,p]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{p(e=>e+45)},er[n]);return()=>clearInterval(e)},[n]),o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:g+"px",height:g+"px",style:{transform:"rotate("+m+"deg)"}},s),o.createElement("circle",{cx:"10",cy:"25",r:"4",fill:h}),o.createElement("circle",{cx:"25",cy:"25",r:"4",fill:h}),o.createElement("circle",{cx:"40",cy:"25",r:"4",fill:h}))},lr=e=>{var{size:i="md",speed:n="normal",color:a="theme.loading",themeMode:l}=e,s=c(e,rr),{getColor:d,themeMode:u}=r.useTheme(),h=d(a,{themeMode:l||u}),g="number"==typeof i?i:$o[i],[m,p]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{p(e=>e+45)},er[n]);return()=>clearInterval(e)},[n]),o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:g+"px",height:g+"px",style:{transform:"rotate("+m+"deg)"}},s),o.createElement("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:h,strokeWidth:"5",strokeDasharray:"1,10"}))},sr=e=>{var{size:t,children:i,textColor:n,loaderColor:a,type:l="default",speed:s="normal",textPosition:d="right",views:u}=e,h=c(e,ir),g={size:t,speed:s,color:a},m={default:o.createElement(nr,Object.assign({},g)),dotted:o.createElement(ar,Object.assign({},g)),quarter:o.createElement(lr,Object.assign({},g))};return o.createElement(r.Center,Object.assign({gap:10,flexDirection:"top"===d||"bottom"===d?"column":"row"},h,null==u?void 0:u.container),("left"===d||"top"===d)&&i&&o.createElement(r.View,Object.assign({color:n},null==u?void 0:u.text),i),m[l],("right"===d||"bottom"===d)&&i&&o.createElement(r.View,Object.assign({color:n},null==u?void 0:u.text),i))},cr=e=>o.createElement(sr,Object.assign({},e)),dr={xs:{minHeight:16,paddingTop:2,paddingBottom:2,paddingLeft:4,paddingRight:4,fontSize:12,fontWeight:"500",lineHeight:20,letterSpacing:"-0.01em"},sm:{minHeight:24,paddingTop:6,paddingBottom:6,paddingLeft:12,paddingRight:12,fontSize:12,fontWeight:"500",lineHeight:12,letterSpacing:"-0.01em"},md:{minHeight:32,paddingTop:8,paddingBottom:8,paddingLeft:16,paddingRight:16,fontSize:16,fontWeight:"500",lineHeight:16,letterSpacing:"-0.01em"},lg:{minHeight:40,paddingTop:10,paddingBottom:10,paddingLeft:20,paddingRight:20,fontSize:16,fontWeight:"500",lineHeight:20,letterSpacing:"-0.01em"},xl:{minHeight:48,paddingTop:12,paddingBottom:12,paddingLeft:24,paddingRight:24,fontSize:18,fontWeight:"500",lineHeight:24,letterSpacing:"-0.01em"}},ur={sharp:0,rounded:8,pillShaped:999},hr={xs:{width:16,height:16,padding:6},sm:{width:20,height:20,padding:6},md:{width:24,height:24,padding:8},lg:{width:24,height:24,padding:12},xl:{width:28,height:28,padding:14}},gr=["variant","size","shape","iconPosition","loaderPosition","backgroundColor","color","isAuto","isFilled","isDisabled","isLoading","isIconRounded","icon","children","to","isExternal","shadow","onClick","views","themeMode"],mr=e=>{var i,{variant:a="filled",size:l="md",shape:s="rounded",iconPosition:d="left",loaderPosition:u="left",backgroundColor:h,color:g,isDisabled:m,isLoading:p,isIconRounded:v,icon:b,children:x,to:f,isExternal:w,shadow:E,onClick:y,views:C={},themeMode:j}=e,k=c(e,gr),{getColor:I,themeMode:O}=r.useTheme(),S=null!=(i=null!=h?h:g)?i:"theme.primary",z=I(m?"theme.disabled":S,{themeMode:null!=j?j:O}),H=n(z),M=t.useMemo(()=>((e,t)=>({filled:{backgroundColor:e,color:t?"color.black":"color.white",borderWidth:1,borderStyle:"solid",borderColor:"transparent",_hover:{transform:"translateY(-1px)",textDecoration:"underline",textUnderlineOffset:"1px",textDecorationThickness:"1px"},_active:{transform:"translateY(-1px)",textDecoration:"underline",textUnderlineOffset:"1px",textDecorationThickness:"1px"},transition:"all 0.2s ease"},outline:{backgroundColor:"transparent",color:e,borderWidth:1,borderStyle:"solid",borderColor:e,_hover:{backgroundColor:e,color:t?"light.black":"light.white",transform:"translateY(-1px)",textDecoration:"underline",textUnderlineOffset:"1px",textDecorationThickness:"1px"},_active:{backgroundColor:e,color:t?"light.black":"light.white",transform:"translateY(0)",textDecoration:"underline",textUnderlineOffset:"1px",textDecorationThickness:"1px"},transition:"all 0.2s ease"},ghost:{backgroundColor:"transparent",color:e,borderWidth:0,borderStyle:"none",borderColor:"transparent",_hover:{backgroundColor:e,color:t?"light.black":"light.white",transform:"translateY(-1px)",textDecoration:"underline",textUnderlineOffset:"1px",textDecorationThickness:"1px"},_active:{backgroundColor:e,color:t?"light.black":"light.white",transform:"translateY(0)",textDecoration:"underline",textUnderlineOffset:"1px",textDecorationThickness:"1px"},transition:"all 0.2s ease"},link:{backgroundColor:"transparent",color:t?e:"light.black",borderWidth:0,borderStyle:"none",borderColor:"transparent",textDecoration:"underline",textUnderlineOffset:"1px",textDecorationThickness:"1px",_hover:{textDecorationThickness:"2px"},_active:{textDecorationThickness:"2px"},transition:"all 0.2s ease"}}))(z,"light"==H),[z,H])[a],T=["left","right"].includes(d)?r.Horizontal:r.Vertical,W=dr[l],R=v?hr[l]:{},V=o.createElement(T,Object.assign({gap:8,alignItems:"center",justifyContent:"center",color:"inherit",_hover:{color:"inherit"}},W,null==C?void 0:C.content),p&&"left"===u&&o.createElement(cr,Object.assign({size:"xs"===l||"sm"===l?"sm":"md",color:"inherit",_hover:{color:"inherit"}},null==C?void 0:C.loader)),b&&["left","top"].includes(d)&&!p&&o.createElement(r.View,Object.assign({color:"inherit",_hover:{color:"inherit"}},null==C?void 0:C.icon),b),x,b&&["right","bottom"].includes(d)&&!p&&o.createElement(r.View,Object.assign({color:"inherit",_hover:{color:"inherit"}},null==C?void 0:C.icon),b),p&&"right"===u&&o.createElement(cr,Object.assign({size:"xs"===l||"sm"===l?"sm":"md",color:"inherit",_hover:{color:"inherit"}},null==C?void 0:C.loader)));return o.createElement(r.Element,Object.assign({as:"link"===a&&f?"div":"button",type:"link"===a&&f?void 0:"button",disabled:Boolean(m||p)},W,R,{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:ur[s],boxShadow:E,transition:"all 0.2s ease",cursor:m?"default":"pointer",onClick:y},M,null==C?void 0:C.container,k),f?o.createElement(Qo,Object.assign({to:f,isExternal:w,color:"inherit",textDecoration:"inherit",textDecorationColor:"inherit"},null==C?void 0:C.link),V):V)},pr=e=>{var{isHovered:t,setIsHovered:r}=(()=>{var[e,t]=o.useState(!1);return{isHovered:e,setIsHovered:t}})(),i=()=>r(!t);return o.createElement(mr,Object.assign({isHovered:t,setIsHovered:r,onMouseEnter:i,onMouseLeave:i},e))},vr={sharp:0,rounded:"8px",pillShaped:"16px"},br=t.createContext({}),xr=()=>t.useContext(br),fr=["children","views","style","themeMode"],wr=["children","views","style","themeMode"],Er=["children","views","style","themeMode"],yr=["variant","size","shape","children","header","footer","isFullWidth","views","style","themeMode"],Cr=e=>{var t,{children:i,style:n}=e,a=c(e,fr),{styles:l}=(r.useTheme(),xr()),s={padding:"16px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200",color:"color.black"},d=Object.assign({},s,null==l?void 0:l.header,a,{style:Object.assign({},null==s?void 0:s.style,null==l||null==(t=l.header)?void 0:t.style,n)});return o.createElement(r.View,Object.assign({},d),i)},jr=e=>{var t,{children:i,style:n}=e,a=c(e,wr),{styles:l}=(r.useTheme(),xr()),s={padding:"16px",color:"color.black"},d=Object.assign({},s,null==l?void 0:l.content,a,{style:Object.assign({},null==s?void 0:s.style,null==l||null==(t=l.content)?void 0:t.style,n)});return o.createElement(r.View,Object.assign({},d),i)},kr=e=>{var t,{children:i,style:n}=e,a=c(e,Er),{styles:l}=(r.useTheme(),xr()),s={padding:"16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200"},d=Object.assign({},s,null==l?void 0:l.footer,a,{style:Object.assign({},null==s?void 0:s.style,null==l||null==(t=l.footer)?void 0:t.style,n)});return o.createElement(r.View,Object.assign({},d),i)},Ir=e=>{var i,{variant:n="default",size:a="md",shape:l="rounded",children:s,header:d,footer:u,isFullWidth:h=!1,views:g,style:m}=e,p=c(e,yr),v=(r.useTheme(),{container:{backgroundColor:"color.white",color:"color.black",borderRadius:"8px",overflow:"hidden",transition:"all 0.2s ease"},header:{padding:"16px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200",color:"color.black"},content:{padding:"16px",color:"color.black"},footer:{padding:"16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200"}}),b=t.useMemo(()=>({styles:{container:Object.assign({},v.container,null==g?void 0:g.container),header:Object.assign({},v.header,null==g?void 0:g.header),content:Object.assign({},v.content,null==g?void 0:g.content),footer:Object.assign({},v.footer,null==g?void 0:g.footer)}}),[v,g]),x=o.Children.toArray(s).some(e=>o.isValidElement(e)&&(e.type===Cr||e.type===jr||e.type===kr)),f=Object.assign({width:h?"100%":"auto",borderRadius:vr[l],overflow:"hidden"},{default:{backgroundColor:"color.white",border:"none",transition:"all 0.2s ease"},outlined:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",transition:"all 0.2s ease",_hover:{borderColor:"color.gray.300"}},elevated:{backgroundColor:"color.white",boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.08)",border:"none",transition:"all 0.2s ease",_hover:{boxShadow:"0px 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-2px)"}}}[n],b.styles.container,p,{style:Object.assign({},null==(i=b.styles.container)?void 0:i.style,m)});return o.createElement(br.Provider,{value:b},o.createElement(r.View,Object.assign({},f),x?s:o.createElement(r.Vertical,null,d&&o.createElement(Cr,null,d),o.createElement(jr,null,s),u&&o.createElement(kr,null,u))))},Or=e=>o.createElement(Ir,Object.assign({},e));Or.Header=Cr,Or.Content=jr,Or.Footer=kr;var Sr={dot:{width:"10px",height:"10px",borderRadius:"50%",backgroundColor:"color.gray.300",margin:"0 4px",cursor:"pointer",transition:"background-color 0.3s ease"},line:{width:"20px",height:"4px",borderRadius:"2px",backgroundColor:"color.gray.300",margin:"0 4px",cursor:"pointer",transition:"background-color 0.3s ease"},number:{minWidth:"24px",height:"24px",borderRadius:"50%",backgroundColor:"color.gray.300",margin:"0 4px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",transition:"background-color 0.3s ease"}},zr={dot:{backgroundColor:"theme.primary"},line:{backgroundColor:"theme.primary"},number:{backgroundColor:"theme.primary",color:"color.white"}},Hr={width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"color.white",color:"color.gray.800",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"0 2px 5px rgba(0, 0, 0, 0.1)",zIndex:1,transition:"background-color 0.3s ease",_hover:{backgroundColor:"color.gray.100"}},Mr=()=>({container:{position:"relative",overflow:"hidden"},content:{overflow:"hidden",width:"100%",height:"100%"},innerContainer:{display:"flex",transitionProperty:"transform",transitionDuration:"300ms",transitionTimingFunction:"ease-in-out",height:"100%"},item:{flex:"0 0 100%",minWidth:0,position:"relative",height:"100%"},prevButton:Object.assign({position:"absolute",top:"50%",left:"16px",transform:"translateY(-50%)",zIndex:10},Hr),nextButton:Object.assign({position:"absolute",top:"50%",right:"16px",transform:"translateY(-50%)",zIndex:10},Hr)}),Tr=t.createContext(null),Wr=()=>{var e=t.useContext(Tr);if(!e)throw new Error("Carousel compound components must be used within <Carousel>");return e},Rr=["children","isActive","views"],Vr=["views","children"],Lr=["views","children"],Br=["children","views"],_r=["children","views","style"],Pr=["children","defaultActiveIndex","activeIndex","onChange","showNavigation","navigationPosition","prevButton","nextButton","showIndicators","indicatorPosition","indicatorVariant","autoPlay","autoPlayInterval","pauseOnHover","infinite","direction","transitionDuration","views","stepIndices","themeMode"],Dr=e=>{var{children:t,isActive:i,views:n}=e,a=c(e,Rr);return o.createElement(r.View,Object.assign({flexShrink:0,width:"100%",height:"100%",display:i?"block":"none"},n,a),t)},Fr=e=>{var{views:t,children:r}=e,i=c(e,Vr),{goToPrevious:n,canGoPrevious:a,styles:l}=Wr(),s=Mr().prevButton,d=Object.assign({},s,null==l?void 0:l.prevButton,null==t?void 0:t.prevButton);return o.createElement(pr,Object.assign({"aria-label":"Previous slide",onClick:()=>n(),isDisabled:!a},d,i),null!=r?r:o.createElement(st,{orientation:"left",widthHeight:16}))},Ar=e=>{var{views:t,children:r}=e,i=c(e,Lr),{goToNext:n,canGoNext:a,styles:l}=Wr(),s=Mr().nextButton,d=Object.assign({},s,null==l?void 0:l.nextButton,null==t?void 0:t.nextButton);return o.createElement(pr,Object.assign({"aria-label":"Next slide",onClick:()=>n(),isDisabled:!a},d,i),null!=r?r:o.createElement(st,{orientation:"right",widthHeight:16}))},Gr=e=>{var{children:i,views:n}=e,a=c(e,Br),{registerSlide:l,unregisterSlide:s,styles:d}=Wr(),u=t.useRef(null);t.useEffect(()=>{var e=l();return u.current=e,()=>{null!==u.current&&s(u.current)}},[l,s]);var h=Mr().item,g=Object.assign({},h,null==d?void 0:d.item,null==n?void 0:n.item);return o.createElement(r.View,Object.assign({role:"group","aria-roledescription":"slide"},g,a),i)},Nr=e=>{var{children:t,views:i,style:n}=e,a=c(e,_r),{currentIndex:l,styles:s,contentId:d}=Wr(),u=Mr(),h=Object.assign({},u.content,null==s?void 0:s.content,null==i?void 0:i.content),g=Object.assign({},u.innerContainer,null==s?void 0:s.innerContainer,null==i?void 0:i.innerContainer),m="-"+100*l+"%";return o.createElement(r.View,Object.assign({},h,a,{style:Object.assign({},null==h?void 0:h.style,n),id:d,"aria-live":"polite"}),o.createElement(r.View,Object.assign({},g,{style:Object.assign({},null==g?void 0:g.style,{transform:"translateX("+m+")"})}),t))},Ur=e=>{var{children:i,defaultActiveIndex:n=0,activeIndex:a,onChange:l,showNavigation:s=!0,navigationPosition:u="inside",prevButton:h,nextButton:g,showIndicators:m=!0,indicatorPosition:p="bottom",indicatorVariant:v="dot",autoPlay:b=!1,autoPlayInterval:x=3e3,pauseOnHover:f=!0,infinite:w=!0,direction:E="horizontal",transitionDuration:y=300,views:C}=e,j=c(e,Pr),k=t.useMemo(()=>o.Children.toArray(i),[i]),I=(e=>{var{defaultActiveIndex:o=0,activeIndex:r,onChange:i,autoPlay:n=!1,autoPlayInterval:a=3e3,pauseOnHover:l=!0,infinite:s=!0,totalSlides:c,stepIndices:u}=e,h=t.useRef(c||0),[g,m]=t.useState(c||0),p=t.useRef(new Set),v=t.useRef(0),b=t.useMemo(()=>d("carousel-content"),[]),[x,f]=t.useState(void 0!==r?r:o),[w,E]=t.useState(!1),[y,C]=t.useState(!1),[j,k]=t.useState(0),[I,O]=t.useState(0),S=t.useRef(null);t.useEffect(()=>{void 0!==r&&f(r)},[r]);var z=t.useCallback(e=>{var t=e;if(s?e<0?t=g-1:e>=g&&(t=0):t=Math.max(0,Math.min(e,g-1)),u&&u.length>0)if(u.includes(t));else{var o=u.reduce((e,o)=>Math.abs(o-t)<Math.abs(e-t)?o:e);t=o}void 0===r&&f(t),i&&i(t)},[r,s,i,g]),H=t.useCallback(()=>{z(x+1)},[x,z]),M=t.useCallback(()=>{z(x-1)},[x,z]);t.useEffect(()=>(!n||w||y||(S.current=setInterval(()=>{H()},a)),()=>{S.current&&clearInterval(S.current)}),[n,a,w,y,H,l]);var T=t.useCallback(()=>{l&&E(!0)},[l]),W=t.useCallback(()=>{E(!1)},[]),R=t.useCallback(e=>{C(!0),"touches"in e?(k(e.touches[0].clientX),O(e.touches[0].clientY)):(k(e.clientX),O(e.clientY))},[]),V=t.useCallback(e=>{if(y){var t,o;"touches"in e?(t=e.touches[0].clientX,o=e.touches[0].clientY):(t=e.clientX,o=e.clientY);var r=t-j,i=o-I;Math.abs(r)>Math.abs(i)&&Math.abs(r)>50&&(r>0?M():H(),C(!1))}},[y,j,I,H,M]),L=t.useCallback(()=>{C(!1)},[]),B=t.useCallback(()=>{var e=v.current++;p.current.add(e);var t=p.current.size;return h.current=t,m(t),e},[]),_=t.useCallback(e=>{p.current.delete(e);var t=p.current.size;if(h.current=t,m(t),t>0&&x>=t){var o=Math.max(0,t-1);void 0===r&&f(o),i&&i(o)}},[x,r,i]);return{activeIndex:x,totalSlides:g,goToSlide:z,nextSlide:H,prevSlide:M,canGoNext:s||x<g-1,canGoPrevious:s||x>0,handleMouseEnter:T,handleMouseLeave:W,handleDragStart:R,handleDragMove:V,handleDragEnd:L,registerSlide:B,unregisterSlide:_,contentId:b,infinite:s}})({defaultActiveIndex:n,activeIndex:a,onChange:l,autoPlay:b,autoPlayInterval:x,pauseOnHover:f,infinite:w,totalSlides:k.length}),{activeIndex:O,totalSlides:S,goToSlide:z,nextSlide:H,prevSlide:M,handleMouseEnter:T,handleMouseLeave:W,handleDragStart:R,handleDragMove:V,handleDragEnd:L}=I;return t.useMemo(()=>o.Children.toArray(i).some(e=>o.isValidElement(e)&&(e.type===Nr||e.type===Gr||e.type===Fr||e.type===Ar)),[i])?o.createElement(Tr.Provider,{value:{currentIndex:O,totalSlides:S,goToSlide:z,goToNext:H,goToPrevious:M,canGoNext:I.canGoNext,canGoPrevious:I.canGoPrevious,registerSlide:I.registerSlide,unregisterSlide:I.unregisterSlide,styles:Object.assign({},Mr(),C),contentId:I.contentId,infinite:w}},o.createElement(r.View,Object.assign({role:"region","aria-roledescription":"carousel","aria-label":"Carousel",position:"relative",width:"100%",height:"100%",overflow:"hidden"},null==C?void 0:C.container,j),i)):o.createElement(r.View,Object.assign({position:"relative",width:"100%",height:"100%",overflow:"hidden",onMouseEnter:T,onMouseLeave:W,onTouchStart:R,onTouchMove:V,onTouchEnd:L,onMouseDown:R,onMouseMove:V,onMouseUp:L},null==C?void 0:C.container,j),o.createElement(r.View,Object.assign({width:"100%",height:"100%",position:"relative"},null==C?void 0:C.slideWrapper),k.map((e,t)=>o.createElement(Dr,{key:t,isActive:t===O,index:t,views:null==C?void 0:C.slide},e))),(()=>{if(!s)return null;var e=h||o.createElement(r.View,Object.assign({as:"button","aria-label":"Previous slide"},Hr,null==C?void 0:C.prevButton),"❮"),t=g||o.createElement(r.View,Object.assign({as:"button","aria-label":"Next slide"},Hr,null==C?void 0:C.nextButton),"❯");return o.createElement(o.Fragment,null,o.createElement(r.View,{position:"absolute",top:"50%",transform:"translateY(-50%)",left:"inside"===u?"10px":"-40px",onClick:M,cursor:w||0!==O?"pointer":"not-allowed",opacity:w||0!==O?1:.5},e),o.createElement(r.View,{position:"absolute",top:"50%",transform:"translateY(-50%)",right:"inside"===u?"10px":"-40px",onClick:H,cursor:w||O!==k.length-1?"pointer":"not-allowed",opacity:w||O!==k.length-1?1:.5},t))})(),m?o.createElement(r.Horizontal,Object.assign({position:"absolute",left:"0",right:"0",justifyContent:"center"},"top"===p?{top:"10px"}:{bottom:"10px"},null==C?void 0:C.indicators),k.map((e,t)=>o.createElement(r.View,Object.assign({key:t,onClick:()=>z(t),cursor:"pointer"},Sr[v],t===O?Object.assign({},zr[v]):{},null==C?void 0:C.indicator,t===O?null==C?void 0:C.activeIndicator:{}),"number"===v&&t+1))):null)},Yr=e=>o.createElement(Ur,Object.assign({},e));Yr.Slide=Dr,Yr.Content=Nr,Yr.Item=Gr,Yr.Previous=Fr,Yr.Next=Ar;var Kr=["color.blue.500","color.green.500","color.purple.500","color.orange.500","color.red.500","color.teal.500","color.pink.500","color.indigo.500","color.yellow.500","color.cyan.500"],Xr={width:"100%",height:"100%",position:"relative",display:"flex",flexDirection:"column"},qr={fontSize:"18px",fontWeight:"bold",marginBottom:"16px",textAlign:"center"},Zr={display:"flex",flexWrap:"wrap",justifyContent:"center",marginTop:"16px"},Jr={display:"flex",alignItems:"center",marginRight:"16px",marginBottom:"8px"},Qr={width:"12px",height:"12px",borderRadius:"2px",marginRight:"6px"},$r={fontSize:"14px"},ei={position:"absolute",backgroundColor:"color.white",padding:"8px 12px",borderRadius:"4px",boxShadow:"0 2px 5px rgba(0, 0, 0, 0.1)",fontSize:"14px",pointerEvents:"none",zIndex:10},ti={stroke:"color.gray.200",strokeWidth:"1px"},oi={stroke:"color.gray.300",strokeWidth:"1px"},ri={fontSize:"12px",fill:"color.gray.600"},ii={rx:"2px",ry:"2px",cursor:"pointer",transition:"opacity 0.2s ease",_hover:{opacity:.8}},ni={strokeWidth:"2px",fill:"none"},ai={r:"4px",strokeWidth:"2px",stroke:"white",cursor:"pointer",transition:"r 0.2s ease"},li={strokeWidth:"1px",stroke:"white",cursor:"pointer",transition:"opacity 0.2s ease",_hover:{opacity:.8}},si={position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.8)",borderRadius:"4px",zIndex:10,padding:"16px",textAlign:"center"},ci=Object.assign({},si),di=Object.assign({},si,{backgroundColor:"rgba(255, 235, 238, 0.9)",color:"color.red.700"}),ui=Object.assign({},si,{backgroundColor:"rgba(245, 245, 245, 0.8)",color:"color.gray.600"}),hi=e=>{var{data:i,width:n,height:a,animationProgress:l,showGrid:s=!0,onBarClick:c,showTooltip:d,hideTooltip:u,views:h}=e,{getColor:g}=r.useTheme(),m=n-50-20,p=a-20-40,v=t.useMemo(()=>{var e=0;return i.series.forEach(t=>{t.data.forEach(t=>{e=Math.max(e,t)})}),e},[i]),b=i.series.length,x=m/i.labels.length,f=.8*x/b,w=.2*x/(b+1),E=t.useMemo(()=>{for(var e=[],t=0;t<=5;t++)e.push(v/5*t);return e},[v]);return o.createElement("svg",{width:n,height:a},o.createElement("line",Object.assign({x1:50,y1:a-40,x2:n-20,y2:a-40},oi,null==h?void 0:h.axis)),o.createElement("line",Object.assign({x1:50,y1:20,x2:50,y2:a-40},oi,null==h?void 0:h.axis)),i.labels.map((e,t)=>o.createElement("text",Object.assign({key:"x-label-"+t,x:50+(t+.5)*x,y:a-40+20,textAnchor:"middle"},ri,null==h?void 0:h.axisLabel),e)),E.map((e,t)=>{var r=a-40-e/v*p;return o.createElement(o.Fragment,{key:"y-tick-"+t},o.createElement("text",Object.assign({x:40,y:r,textAnchor:"end",dominantBaseline:"middle"},ri,null==h?void 0:h.axisLabel),e.toFixed(0)),s&&o.createElement("line",Object.assign({x1:50,y1:r,x2:n-20,y2:r},ti,null==h?void 0:h.grid)))}),i.series.map((e,t)=>o.createElement(o.Fragment,{key:"series-"+t},e.data.map((r,i)=>{var n=r/v*p*l;return o.createElement("rect",Object.assign({key:"bar-"+t+"-"+i,x:50+i*x+w*(t+1)+f*t,y:a-40-n,width:f,height:n,fill:e.color?g(e.color):"black",onMouseEnter:t=>{d(t.clientX,t.clientY,e.name+": "+r)},onMouseLeave:u,onClick:()=>{c&&c(e.name,i)}},ii,null==h?void 0:h.bar))}))))},gi=e=>{var{data:i,width:n,height:a,animationProgress:l,showGrid:s=!0,onPointClick:c,showTooltip:d,hideTooltip:u,views:h}=e,{getColor:g}=r.useTheme(),m=n-50-20,p=a-20-40,v=t.useMemo(()=>{var e=0;return i.series.forEach(t=>{t.data.forEach(t=>{e=Math.max(e,t)})}),e},[i]),b=t.useMemo(()=>{for(var e=[],t=0;t<=5;t++)e.push(v/5*t);return e},[v]),x=e=>"M "+e.map((e,t)=>50+t/(i.labels.length-1)*m+","+(a-40-e/v*p*l)).join(" L "),f=e=>{var t=50+m,o=a-40;return"M 50,"+o+" L "+e.map((e,t)=>50+t/(i.labels.length-1)*m+","+(a-40-e/v*p*l)).join(" L ")+" L "+t+","+o+" Z"};return o.createElement("svg",{width:n,height:a},o.createElement("line",Object.assign({x1:50,y1:a-40,x2:n-20,y2:a-40},oi,null==h?void 0:h.axis)),o.createElement("line",Object.assign({x1:50,y1:20,x2:50,y2:a-40},oi,null==h?void 0:h.axis)),i.labels.map((e,t)=>o.createElement("text",Object.assign({key:"x-label-"+t,x:50+t/(i.labels.length-1)*m,y:a-40+20,textAnchor:"middle"},ri,null==h?void 0:h.axisLabel),e)),b.map((e,t)=>{var r=a-40-e/v*p;return o.createElement(o.Fragment,{key:"y-tick-"+t},o.createElement("text",Object.assign({x:40,y:r,textAnchor:"end",dominantBaseline:"middle"},ri,null==h?void 0:h.axisLabel),e.toFixed(0)),s&&o.createElement("line",Object.assign({x1:50,y1:r,x2:n-20,y2:r},ti,null==h?void 0:h.grid)))}),i.series.map((e,t)=>o.createElement(o.Fragment,{key:"series-"+t},o.createElement("path",Object.assign({d:f(e.data),fill:e.color?g(e.color):"black",opacity:.1},null==h?void 0:h.area)),o.createElement("path",Object.assign({d:x(e.data),stroke:e.color?g(e.color):"black"},ni,null==h?void 0:h.line)),e.data.map((r,n)=>o.createElement("circle",Object.assign({key:"point-"+t+"-"+n,cx:50+n/(i.labels.length-1)*m,cy:a-40-r/v*p*l,fill:e.color,onMouseEnter:t=>{d(t.clientX,t.clientY,e.name+": "+r)},onMouseLeave:u,onClick:()=>{c&&c(e.name,n)}},ai,null==h?void 0:h.point))))))},mi=e=>{var{dataPoints:i,width:n,height:a,animationProgress:l,isDonut:s=!1,onSliceClick:c,showTooltip:d,hideTooltip:u,views:h}=e,{getColor:g}=r.useTheme(),m=Math.min(n,a)/2*.8,p=n/2,v=a/2,b=s?.6*m:0,x=t.useMemo(()=>i.reduce((e,t)=>e+t.value,0),[i]),f=t.useMemo(()=>{for(var e=[],t=-Math.PI/2,o=0;o<i.length;o++){var r,n=i[o].value/x,a=2*n*Math.PI*l,c=t+a,d=p+Math.cos(t)*m,u=v+Math.sin(t)*m,h=p+Math.cos(c)*m,f=v+Math.sin(c)*m,w=p+Math.cos(t)*b,E=v+Math.sin(t)*b,y=p+Math.cos(c)*b,C=v+Math.sin(c)*b,j=a>Math.PI?1:0;r=s?["M "+d+" "+u,"A "+m+" "+m+" 0 "+j+" 1 "+h+" "+f,"L "+y+" "+C,"A "+b+" "+b+" 0 "+j+" 0 "+w+" "+E,"Z"].join(" "):["M "+p+" "+v,"L "+d+" "+u,"A "+m+" "+m+" 0 "+j+" 1 "+h+" "+f,"Z"].join(" ");var k=t+a/2,I=.7*m,O=p+Math.cos(k)*I,S=v+Math.sin(k)*I,z=(100*n).toFixed(1)+"%",H=g(i[o].color||Kr[o%Kr.length]);e.push({path:r,color:H,label:i[o].label,value:i[o].value,percentage:z,labelX:O,labelY:S,startAngle:t,endAngle:c,index:o}),t=c}return e},[i,x,m,p,v,b,l,s]);return o.createElement("svg",{width:n,height:a},f.map((e,t)=>o.createElement("g",{key:"slice-"+t},o.createElement("path",Object.assign({d:e.path,fill:e.color,onMouseEnter:t=>{d(t.clientX,t.clientY,e.label+": "+e.value+" ("+e.percentage+")")},onMouseLeave:u,onClick:()=>{c&&c(i[e.index],e.index)}},li,null==h?void 0:h.pie)),e.endAngle-e.startAngle>.2&&o.createElement("text",{x:e.labelX,y:e.labelY,textAnchor:"middle",dominantBaseline:"middle",fill:"white",fontSize:"12px",fontWeight:"bold",pointerEvents:"none"},e.percentage))),s&&o.createElement("circle",{cx:p,cy:v,r:b,fill:"white"}))},pi=["type","data","dataPoints","title","showLegend","legendPosition","showGrid","showTooltips","animated","animationDuration","responsive","aspectRatio","width","height","views","onDataPointClick","onSeriesClick","isLoading","error","noData","loadingIndicator","errorIndicator","noDataIndicator","aria-label","themeMode"],vi=e=>{var{type:i,data:n,dataPoints:a,title:l,showLegend:s=!0,legendPosition:d="bottom",showGrid:u=!0,showTooltips:h=!0,animated:g=!0,animationDuration:m=500,responsive:p=!0,aspectRatio:v=16/9,width:b=200,height:x=200,views:f,onDataPointClick:w,onSeriesClick:E,isLoading:y=!1,error:C,noData:j,loadingIndicator:k,errorIndicator:I,noDataIndicator:O,"aria-label":S}=e,z=c(e,pi),{animationProgress:H,tooltip:M,containerRef:W,processedData:R,showTooltip:V,hideTooltip:L,getChartDimensions:B}=(e=>{var{data:o,dataPoints:r,animated:i=!0,animationDuration:n=500,showTooltips:a=!0}=e,[l,s]=t.useState(i?0:1),[c,d]=t.useState({visible:!1,x:0,y:0,content:""}),u=t.useRef(null),h=t.useRef(null);t.useEffect(()=>{if(i){var e=Date.now(),t=()=>{var o=Date.now()-e,r=Math.min(o/n,1);s(r),r<1&&(u.current=requestAnimationFrame(t))};return u.current=requestAnimationFrame(t),()=>{u.current&&cancelAnimationFrame(u.current)}}s(1)},[i,n]);var g=t.useCallback(()=>o?Object.assign({},o,{series:o.series.map((e,t)=>Object.assign({},e,{color:e.color||Kr[t%Kr.length]}))}):r?r.map((e,t)=>Object.assign({},e,{color:e.color||Kr[t%Kr.length]})):null,[o,r]),m=t.useCallback((e,t,o)=>{a&&d({visible:!0,x:e,y:t,content:o})},[a]),p=t.useCallback(()=>{d(e=>Object.assign({},e,{visible:!1}))},[]),v=t.useCallback(()=>{if(!h.current)return{width:0,height:0};var{width:e,height:t}=h.current.getBoundingClientRect();return{width:e,height:t}},[]);return{animationProgress:l,tooltip:c,containerRef:h,processedData:g,showTooltip:m,hideTooltip:p,getChartDimensions:v}})({data:n,dataPoints:a,animated:g,animationDuration:m,showTooltips:h}),_=R(),{width:P,height:D}=B(),F=b||P,A=x||(p?P/v:D),G=()=>{if(!s||!_)return null;var e=[];return"pie"===i||"donut"===i?Array.isArray(_)&&(e=_):_&&_.series&&(e=_.series),e&&0!==e.length?o.createElement(r.Horizontal,Object.assign({flexWrap:"wrap",justifyContent:"center",marginTop:"bottom"===d?"16px":0,marginBottom:"top"===d?"16px":0},Zr,null==f?void 0:f.legend),e.map((e,t)=>o.createElement(r.View,Object.assign({key:"legend-"+t},Jr,null==f?void 0:f.legendItem),o.createElement(r.View,Object.assign({backgroundColor:e.color},Qr)),o.createElement(T,Object.assign({},$r),e.name||e.label)))):null},N=!C&&!y&&!j;return o.createElement(r.View,Object.assign({ref:W,role:"region","aria-label":null!=S?S:"string"==typeof l?l:"Chart","aria-busy":y},Xr,null==f?void 0:f.container,z),l&&o.createElement(T,Object.assign({},qr),l),N&&"top"===d&&G(),o.createElement(r.View,Object.assign({flex:1,width:"100%",position:"relative"},null==f?void 0:f.chart),N&&(()=>{if(!_)return null;switch(i){case"bar":return o.createElement(hi,{data:_,width:F,height:A,animationProgress:H,showGrid:u,onBarClick:E,showTooltip:V,hideTooltip:L,views:f});case"line":case"area":return o.createElement(gi,{data:_,width:F,height:A,animationProgress:H,showGrid:u,onPointClick:E,showTooltip:V,hideTooltip:L,views:f});case"pie":case"donut":return o.createElement(mi,{dataPoints:_,width:F,height:A,animationProgress:H,isDonut:"donut"===i,onSliceClick:w,showTooltip:V,hideTooltip:L,views:f});default:return null}})(),y?o.createElement(r.View,Object.assign({},ci,null==f?void 0:f.loadingOverlay),k||o.createElement(r.Center,null,o.createElement(cr,{size:"lg"}))):null,C?o.createElement(r.View,Object.assign({},di,null==f?void 0:f.errorOverlay),I||o.createElement(T,{fontWeight:"medium"},"string"==typeof C?C:"An error occurred")):null,j?o.createElement(r.View,Object.assign({},ui,null==f?void 0:f.noDataOverlay),O||o.createElement(T,null,"string"==typeof j?j:"No data available")):null),N&&"bottom"===d&&G(),h&&M.visible?o.createElement(r.View,Object.assign({position:"fixed",left:M.x+"px",top:M.y-40+"px"},ei,null==f?void 0:f.tooltip),M.content):null)},bi=["title","description","acceptButtonText","customizeButtonText","position","variant","onAccept","onCustomize","views","showCustomizeButton","cookieExpiration","themeMode"],xi=e=>{var{title:i="Nous utilisons des cookies",description:n="Ce site utilise des cookies pour améliorer votre expérience. En continuant à naviguer sur ce site, vous acceptez notre utilisation des cookies conformément à notre politique de confidentialité.",acceptButtonText:a="Accepter",customizeButtonText:l="Personnaliser",position:s="bottom",variant:d="default",onAccept:u,onCustomize:h,views:g,showCustomizeButton:m=!0,cookieExpiration:p=365,themeMode:v}=e,b=c(e,bi),{themeMode:x}=r.useTheme(),f=v||x||"light",{hasConsent:w,acceptCookies:E}=function(e){void 0===e&&(e=365);var[o,r]=t.useState(!1),[i,n]=t.useState(null);return t.useEffect(()=>{var e=localStorage.getItem("app-studio-cookie-consent");n(null!==e&&"true"===e)},[]),{isHovered:o,setIsHovered:r,hasConsent:i,acceptCookies:()=>{(t=>{localStorage.setItem("app-studio-cookie-consent",String(!0));var o=new Date;o.setDate(o.getDate()+e),localStorage.setItem("app-studio-cookie-consent-expires",o.toISOString()),n(!0)})()},resetConsent:()=>{localStorage.removeItem("app-studio-cookie-consent"),localStorage.removeItem("app-studio-cookie-consent-expires"),n(!1)}}}(p),y=(e=>{var t="dark"===e;return{default:{container:{backgroundColor:t?"#1f2937":"#ffffff",borderColor:t?"#374151":"#e5e7eb",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"},content:{color:t?"#e5e7eb":"#1f2937"},acceptButton:{backgroundColor:"#3b82f6",color:"#ffffff",hoverBackgroundColor:"#2563eb"},customizeButton:{backgroundColor:"transparent",color:t?"#e5e7eb":"#4b5563",borderColor:t?"#4b5563":"#d1d5db",hoverBackgroundColor:t?"#374151":"#f3f4f6"}},info:{container:{backgroundColor:t?"#1e3a8a":"#eff6ff",borderColor:t?"#1e40af":"#bfdbfe",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"},content:{color:t?"#bfdbfe":"#1e40af"},acceptButton:{backgroundColor:"#3b82f6",color:"#ffffff",hoverBackgroundColor:"#2563eb"},customizeButton:{backgroundColor:"transparent",color:t?"#bfdbfe":"#1e40af",borderColor:t?"#3b82f6":"#93c5fd",hoverBackgroundColor:t?"#1e40af":"#dbeafe"}},primary:{container:{backgroundColor:t?"#0c4a6e":"#f0f9ff",borderColor:t?"#0369a1":"#bae6fd",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"},content:{color:t?"#bae6fd":"#0369a1"},acceptButton:{backgroundColor:"#0ea5e9",color:"#ffffff",hoverBackgroundColor:"#0284c7"},customizeButton:{backgroundColor:"transparent",color:t?"#bae6fd":"#0369a1",borderColor:t?"#0ea5e9":"#7dd3fc",hoverBackgroundColor:t?"#0369a1":"#e0f2fe"}}}})(f);return w?null:o.createElement(r.View,Object.assign({position:"fixed",left:16,right:16,zIndex:1e3,padding:16,borderWidth:"1px",borderStyle:"solid",borderRadius:8,maxWidth:"800px",marginX:"auto"},"bottom"===s?{bottom:16}:{top:16},y[d].container,null==g?void 0:g.container,b),o.createElement(r.Vertical,{gap:12,maxWidth:1200,marginX:"auto"},i&&o.createElement(r.Text,Object.assign({fontWeight:"bold",fontSize:18,color:"color.black"},null==g?void 0:g.title),i),n&&o.createElement(r.Text,Object.assign({fontSize:14,color:"color.black"},null==g?void 0:g.description),n),o.createElement(r.Horizontal,Object.assign({gap:12,justifyContent:"flex-end",marginTop:8},null==g?void 0:g.buttonGroup),m&&o.createElement(pr,Object.assign({variant:"outline",onClick:()=>{h&&h()},size:"sm"},null==g?void 0:g.customizeButton),l),o.createElement(pr,Object.assign({variant:"primary",onClick:()=>{E(),u&&u()},size:"sm"},null==g?void 0:g.acceptButton),a))))},fi={sm:{padding:"6px 8px",fontSize:"14px",minWidth:"160px"},md:{padding:"8px 12px",fontSize:"16px",minWidth:"180px"},lg:{padding:"10px 16px",fontSize:"18px",minWidth:"200px"}},wi={default:{backgroundColor:"color.white",color:"color.gray.800"},filled:{backgroundColor:"color.gray.100",color:"color.gray.800"},outline:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800"}},Ei={hover:{backgroundColor:"color.gray.100"},active:{backgroundColor:"color.gray.200"},disabled:{opacity:.5,cursor:"not-allowed"}},yi=["children","disableNativeContextMenu","asChild","isDisabled","views"],Ci=["items","children","position","side","align","views","style"],ji=["item","children","onSelect","isDisabled","views"],ki=["views"],Ii=["views"],Oi=["children","items","size","variant","disableNativeContextMenu","views","themeMode"],Si=t.createContext({isOpen:!1,setIsOpen:()=>{},position:{x:0,y:0},setPosition:()=>{},activeSubmenuId:null,setActiveSubmenuId:()=>{},size:"md",variant:"default",triggerRef:{current:null},contentRef:{current:null},contentId:"contextmenu-content",closeMenu:()=>{},openMenu:()=>{}}),zi=e=>{var{children:t,value:r}=e;return o.createElement(Si.Provider,{value:r},t)},Hi=()=>{var e=t.useContext(Si);if(!e)throw new Error("useContextMenuContext must be used within a ContextMenuProvider");return e},Mi=e=>{var{children:t,disableNativeContextMenu:i=!0,asChild:n=!1,isDisabled:a=!1,views:l}=e,s=c(e,yi),{triggerRef:d,contentId:u,openMenu:h}=Hi(),g=Object.assign({ref:d,onContextMenu:e=>{if(!a)if(i&&e.preventDefault(),h)h(e);else{var{setIsOpen:t,setPosition:o}=Hi();o({x:e.clientX,y:e.clientY}),t(!0)}},"aria-controls":u,"aria-haspopup":"menu","data-disabled":a?"":void 0},n&&o.isValidElement(t)&&void 0===t.props.isDisabled&&{isDisabled:a},null==l?void 0:l.container,s);if(n&&o.isValidElement(t)){var m=o.Children.only(t);return o.cloneElement(m,Object.assign({},g,m.props))}return o.createElement(r.View,Object.assign({},g),t)},Ti=e=>{var{items:i,children:n,position:a,side:l="right",align:s="start",views:d,style:u}=e,h=c(e,Ci),{isOpen:g,position:m,contentRef:p,contentId:v,variant:b}=Hi(),x=t.useRef(null),[f,w]=t.useState({x:0,y:0}),E=p||x;return t.useEffect(()=>{if(g&&E.current){var e=window.innerWidth,t=window.innerHeight,o=a||m,r=function(e,t,o,r,i,n,a,l){void 0===a&&(a="right"),void 0===l&&(l="start");var s=e,c=t;return"left"===a?s=e-o:"right"===a?s=e:"top"!==a&&"bottom"!==a||("center"===l?s=e-o/2:"end"===l&&(s=e-o)),"top"===a?c=t-r:"bottom"===a?c=t:"left"!==a&&"right"!==a||("center"===l?c=t-r/2:"end"===l&&(c=t-r)),s+o>i&&(s=i-o),s<0&&(s=0),c+r>n&&(c=n-r),c<0&&(c=0),{x:s,y:c}}(o.x,o.y,E.current.offsetWidth,E.current.offsetHeight,e,t,l,s);w(r)}},[g,m,a,l,s,E]),g?o.createElement(r.View,Object.assign({id:v||"context-menu",ref:E,role:"menu",tabIndex:-1,borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden",style:Object.assign({},{position:"fixed",top:f.y+"px",left:f.x+"px",zIndex:1e3,transformOrigin:"top left"},u)},wi[b],null==d?void 0:d.menu,null==d?void 0:d.content,h),i&&i.map((e,t)=>e.divider?o.createElement(Ri,{key:"divider-"+t,views:d}):o.createElement(Wi,{key:e.id,item:e,views:d})),n):null},Wi=e=>{var{item:i,children:n,onSelect:a,isDisabled:l=!1,views:s}=e,d=c(e,ji),{activeSubmenuId:u,setActiveSubmenuId:h,size:g,closeMenu:m}=Hi();if(i){var[p,v]=t.useState(!1),b=i.items&&i.items.length>0,x=u===i.id,f=t.useRef(null),[w,E]=t.useState({x:0,y:0}),y=i.disabled||l;return t.useEffect(()=>{if(x&&f.current){var e=f.current.getBoundingClientRect();E({x:e.right,y:e.top})}},[x]),o.createElement(r.View,Object.assign({ref:f,role:"menuitem",display:"flex",alignItems:"center",cursor:y?"not-allowed":"pointer",opacity:y?.5:1,position:"relative","aria-disabled":y,"data-disabled":y?"":void 0},fi[g],{_hover:y?{}:Ei.hover,backgroundColor:p&&!y?"color.gray.100":"transparent",onMouseEnter:()=>{v(!0),b&&h(i.id)},onMouseLeave:()=>{v(!1)},onClick:()=>{y||!b&&i.onClick&&(i.onClick(),m&&m())}},null==s?void 0:s.item,d),i.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==s?void 0:s.icon),i.icon),o.createElement(r.View,{flexGrow:1},i.label),b&&o.createElement(r.View,Object.assign({marginLeft:8},null==s?void 0:s.submenuIndicator),o.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z",fill:"currentColor"}))),x&&b&&o.createElement(Ti,{items:i.items||[],position:w,side:"right",align:"start",views:s}))}return o.createElement(r.View,Object.assign({role:"menuitem",onClick:e=>{l||(null==a||a(e),m&&m())},cursor:l?"not-allowed":"pointer",opacity:l?.5:1,"aria-disabled":l,"data-disabled":l?"":void 0},fi[g],{_hover:l?{}:Ei.hover},null==s?void 0:s.item,d),n)},Ri=e=>{var{views:t}=e,i=c(e,ki);return o.createElement(r.View,Object.assign({height:"1px",backgroundColor:"color.gray.200",margin:"4px 0",role:"separator","aria-orientation":"horizontal"},null==t?void 0:t.divider,i))},Vi=e=>{var{children:t,items:r,size:i="md",variant:n="default",disableNativeContextMenu:a=!0,views:l}=e,s=c(e,Oi);return r&&0!==r.length?o.createElement(o.Fragment,null,o.createElement(Mi,Object.assign({disableNativeContextMenu:a,views:l},s),t),o.createElement(Ti,{items:r,views:l})):o.createElement(o.Fragment,null,t)},Li=["children","items","size","variant","disableNativeContextMenu","onOpenChange","views"],Bi=e=>{var{children:r,items:i,size:n="md",variant:a="default",disableNativeContextMenu:l=!0,onOpenChange:s,views:u}=e,h=c(e,Li),g=(e=>{var{size:r,variant:i,onOpenChange:n}=e||{},[a,l]=t.useState(!1),[s,c]=t.useState({x:0,y:0}),[u,h]=t.useState(null),g=t.useRef(null),m=t.useRef(null),p=o.useMemo(()=>d("contextmenu-content"),[]),v=t.useCallback(e=>{c({x:e.clientX,y:e.clientY}),l(!0),null==n||n(!0)},[n]),b=t.useCallback(()=>{l(!1),h(null),null==n||n(!1)},[n]);return t.useEffect(()=>{var e=e=>{m.current&&!m.current.contains(e.target)&&b()},t=()=>{a&&b()},o=e=>{"Escape"===e.key&&a&&b()};return document.addEventListener("mousedown",e),window.addEventListener("resize",t),document.addEventListener("keydown",o),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",t),document.removeEventListener("keydown",o)}},[a,b]),{isOpen:a,setIsOpen:l,position:s,setPosition:c,activeSubmenuId:u,setActiveSubmenuId:h,size:r,variant:i,triggerRef:g,contentRef:m,contentId:p,openMenu:v,closeMenu:b}})({size:n,variant:a,onOpenChange:s}),{isOpen:m,setIsOpen:p,position:v,setPosition:b,activeSubmenuId:x,setActiveSubmenuId:f,triggerRef:w,contentRef:E,contentId:y,openMenu:C,closeMenu:j}=g;return o.createElement(zi,{value:{isOpen:m,setIsOpen:p,position:v,setPosition:b,activeSubmenuId:x,setActiveSubmenuId:f,size:n,variant:a,triggerRef:w,contentRef:E,contentId:y,openMenu:C,closeMenu:j,styles:u}},o.createElement(Vi,Object.assign({items:i,size:n,variant:a,disableNativeContextMenu:l,views:u},h),r))};Bi.Trigger=Mi,Bi.Content=Ti,Bi.Item=Wi,Bi.Divider=Ri,Bi.Separator=e=>{var{views:t}=e,i=c(e,Ii);return o.createElement(r.View,Object.assign({height:"1px",backgroundColor:"color.gray.200",margin:"4px 0",role:"separator","aria-orientation":"horizontal"},null==t?void 0:t.separator,i))};var _i=["src","color","views","themeMode"],Pi=["path"],Di=e=>{var{placeholder:t,isMulti:r,options:i}=e,n=t?r?[]:"":Array.isArray(i)&&i.length>0?i[0].value:"",[a,l]=o.useState(!0),[s,c]=o.useState(!1),[d,u]=o.useState(!1),[h,g]=o.useState(n),[m,p]=o.useState(0);return{value:h,setValue:g,hide:a,setHide:l,isHovered:s,setIsHovered:c,isFocused:d,setIsFocused:u,highlightedIndex:m,setHighlightedIndex:p}},Fi=["children","views"],Ai=e=>{var{children:t,views:r={helperText:{}}}=e,i=c(e,Fi);return o.createElement(T,Object.assign({size:"xs",fontWeight:"400",letterSpacing:"-0.01em",lineHeight:"16px",marginVertical:0,marginHorizontal:0,color:"color.gray.500",transition:"all 0.2s ease"},r.helperText,i),t)},Gi=["children","helperText","error","views"],Ni=e=>{var{children:t,helperText:i,error:n=!1,views:a}=e,l=c(e,Gi);return o.createElement(r.Vertical,Object.assign({gap:8,position:"relative",width:"100%"},l,null==a?void 0:a.container),t,!n&&i&&o.createElement(Ai,Object.assign({marginTop:4},null==a?void 0:a.helperText),i),n&&o.createElement(T,Object.assign({size:"xs",marginTop:4,marginHorizontal:0,fontWeight:"500",color:"color.red.500",transition:"all 0.2s ease"},null==a?void 0:a.error),n))},Ui={default:{borderRadius:"8px"},sharp:{borderRadius:0},rounded:{borderRadius:"8px"},pillShaped:{borderRadius:"9999px"}},Yi={xs:"12px",sm:"14px",md:"16px",lg:"18px",xl:"20px"},Ki={outline:{borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",backgroundColor:"color.white",transition:"all 0.2s ease",_hover:{borderColor:"color.gray.300"},_focus:{borderColor:"theme.primary",boxShadow:"0 0 0 1px rgba(66, 153, 225, 0.2)"}},default:{borderWidth:0,borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200",borderRadius:0,backgroundColor:"color.white",transition:"all 0.2s ease",_hover:{borderBottomColor:"color.gray.300"},_focus:{borderBottomColor:"theme.primary"}},none:{border:"none",backgroundColor:"transparent",transition:"all 0.2s ease"}},Xi={paddingTop:"16px",paddingBottom:"8px",paddingLeft:"16px",paddingRight:"16px"},qi={paddingTop:"12px",paddingBottom:"12px",paddingLeft:"16px",paddingRight:"16px"},Zi=["label","shadow","children","value","size","shape","variant","error","showLabel","isFocused","isHovered","isDisabled","isReadOnly","views"],Ji=e=>{var{shadow:t,children:i,size:n="md",shape:a="default",variant:l="default",error:s=!1,showLabel:d=!1,isFocused:u=!1,isHovered:h=!1,isDisabled:g=!1,isReadOnly:m=!1,views:p={pickerBox:{}}}=e,v=c(e,Zi);return o.createElement(r.Horizontal,Object.assign({gap:8,width:"100%",display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:"space-between",marginBottom:8,borderStyle:"solid",borderColor:s?"color.red.500":!h&&!u||g?"color.gray.300":"theme.primary",backgroundColor:"color.white",fontSize:r.Typography.fontSizes[n],cursor:g?"not-allowed":m?"auto":"text",opacity:g?.6:1,transition:"all 0.2s ease"},d?Xi:qi,t,Ui[a],Ki[l],p.box,v),i)},Qi=["children"],$i=e=>{var{children:t}=e,i=c(e,Qi);return o.createElement(r.Center,Object.assign({gap:10,right:16,zIndex:500,flexWrap:"nowrap",position:"absolute"},i),t)},en={h1:{fontSize:96,lineHeight:112,letterSpacing:-1.5},h2:{fontSize:60,lineHeight:71,letterSpacing:-.5},h3:{fontSize:48,lineHeight:57,letterSpacing:0},h4:{fontSize:34,lineHeight:40,letterSpacing:.25},h5:{fontSize:24,lineHeight:28,letterSpacing:0},h6:{fontSize:20,lineHeight:24,letterSpacing:.15}},tn=["children","heading","isItalic","isUnderlined","isStriked","weight","size","dropDown"],on=e=>{var{children:t,heading:i,isItalic:n=!1,isUnderlined:a=!1,isStriked:l=!1,weight:s="normal",size:d="sm"}=e,u=c(e,tn);return o.createElement(r.Element,Object.assign({as:"label",width:"100%",fontSize:d,fontStyle:n?"italic":"normal",fontWeight:r.Typography.fontWeights[s],textDecoration:l?"line-through":a?"underline":"none"},i?en[i]:{},u),t)},rn=e=>o.createElement(on,Object.assign({},e)),nn=["children","size","error","color","views","helperText"],an=e=>{var{children:t,size:r="md",error:i=!1,color:n="theme.primary",views:a={label:{}}}=e,l=c(e,nn);return o.createElement(rn,Object.assign({top:0,zIndex:-10,position:"absolute",fontSize:Yi[r],lineHeight:Yi[r],letterSpacing:"-0.01em",whiteSpace:"nowrap",color:i?"color.red.500":n,transition:"all 0.2s ease"},a.label,l),t)},ln=["children"],sn=e=>{var{children:t}=e,i=c(e,ln);return o.createElement(r.Vertical,Object.assign({width:"100%",maxWidth:"100%",position:"relative"},i),t)},cn={xs:12,sm:16,md:20,lg:24,xl:28},dn=["isHovered","setIsHovered","option","size","callback","style"],un=["id","name","value","onChange","isMulti","isDisabled","isReadOnly","options"],hn=["option","size","removeOption"],gn=["id","name","label","value","placeholder","helperText","hide","error","isMulti","isFocused","isHovered","isDisabled","isReadOnly","options","shadow","size","shape","variant","views","onChange","setHide","setValue","setIsHovered","setIsFocused","setHighlightedIndex","highlightedIndex"],mn=e=>{var{isHovered:t,setIsHovered:i,option:n,size:a="md",callback:l=(()=>{}),style:s}=e,d=c(e,dn),u=()=>i(!t);return o.createElement(r.Element,Object.assign({as:"li",margin:0,paddingVertical:12,paddingHorizontal:16,listStyleType:"none",onMouseEnter:u,onMouseLeave:u,onClick:()=>(e=>l(e))(n.value),backgroundColor:t?"color.gray.100":"transparent",borderRadius:"4px",transition:"all 0.15s ease"},d),o.createElement(T,Object.assign({fontSize:r.Typography.fontSizes[a],fontWeight:"400",lineHeight:"1.5"},s),n.label))},pn=e=>{var t,{size:i="md",views:n={field:{},text:{}},value:a,isDisabled:l,placeholder:s,removeOption:c=(()=>{}),options:d}=e,u=Object.assign({margin:0,width:"95%",height:"100%",border:"none",paddingVertical:12,paddingHorizontal:0,fontSize:r.Typography.fontSizes[i],fontWeight:"400",lineHeight:"1.5",letterSpacing:"-0.01em",backgroundColor:"transparent",color:l?"color.gray.400":"color.gray.900",cursor:l?"not-allowed":"pointer",transition:"all 0.2s ease"},n.field,n.text),h=d.length>0&&d.find(e=>e.value===a);return o.createElement(T,Object.assign({},u),(""===a||Array.isArray(a)&&0===a.length)&&s?s:o.createElement(o.Fragment,null,"string"==typeof a?null!=(t=h&&h.label)?t:a:Array.isArray(a)&&a.length>0?o.createElement(r.Horizontal,{gap:6},a.map(e=>o.createElement(xn,{key:e,option:e,removeOption:c}))):o.createElement("span",null,a)))},vn=e=>{var{id:t,name:i,value:n,onChange:a,isMulti:l=!1,isDisabled:s=!1,isReadOnly:d=!1,options:u=[]}=e,h=c(e,un);return o.createElement(r.Element,Object.assign({id:t,name:i,as:"select",opacity:0,width:0,height:0,position:"absolute",value:n,disabled:s,readOnly:d,onChange:e=>{a&&a(e)},multiple:l},h),u.length>0&&u.map(e=>o.createElement("option",{key:e.value,value:e.value},e.label)))},bn=e=>{var{size:t,views:i={},options:n,callback:a=(()=>{}),highlightedIndex:l,setHighlightedIndex:s}=e,c=(()=>{var[e,t]=o.useState(!1);return{isHovered:e,setIsHovered:t}})(),d=e=>a(e);return o.createElement(r.Element,Object.assign({as:"ul",role:"dropdown",top:"100%",width:"100%",display:"flex",flexDirection:"column",position:"absolute",marginTop:8,marginLeft:0,marginRight:0,marginBottom:0,padding:0,maxHeight:"240px",overflowY:"auto",zIndex:1e3,backgroundColor:"color.white",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",transition:"all 0.2s ease",style:{scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.2) transparent","&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"rgba(0, 0, 0, 0.2)",borderRadius:"4px"}}},{boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"},null==i?void 0:i.dropDown),n.length>0&&n.map((e,r)=>o.createElement(mn,Object.assign({key:e.value,size:t,style:i.text,option:e,callback:d,backgroundColor:r===l?"color.gray.100":"transparent",onMouseEnter:()=>s(r)},c))))},xn=e=>{var{option:t,size:i="md",removeOption:n=(()=>{})}=e,a=c(e,hn);return o.createElement(r.Horizontal,Object.assign({gap:8,padding:8,alignItems:"center",borderRadius:"6px",backgroundColor:"color.gray.200",fontSize:r.Typography.fontSizes[i],onClick:e=>e.stopPropagation(),transition:"all 0.2s ease"},a),o.createElement(T,{size:i,fontWeight:"500"},t),o.createElement(vt,{role:"close-button",color:"inherit",widthHeight:cn[i],onClick:()=>n(t),transition:"all 0.2s ease",_hover:{opacity:.7}}))},fn=e=>{var{id:r,name:i,label:n,value:a,placeholder:l,helperText:s,hide:d=!1,error:u=!1,isMulti:h=!1,isFocused:g=!1,isHovered:m=!1,isDisabled:p=!1,isReadOnly:v=!1,options:b=[],shadow:x={},size:f="md",shape:w="default",variant:E="default",views:y={text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}},onChange:C=(()=>{}),setHide:j=(()=>{}),setValue:k=(()=>{}),setIsHovered:I=(()=>{}),setIsFocused:O=(()=>{}),setHighlightedIndex:S,highlightedIndex:z}=e,H=c(e,gn),M=!(!g||!n),T=()=>I(!m),W=t.useCallback(e=>{j(!d),h&&Array.isArray(a)?!a.includes(e)&&k([...a,e]):k(e),C&&C(e)},[d,h,a]);return o.createElement(Ni,{role:"SelectBox",helperText:s,error:u,views:y,onClick:p||v?()=>{}:e=>{e&&e.stopPropagation&&e.stopPropagation(),j(!d),O(!g)}},o.createElement(Ji,{label:n,size:f,error:u,shape:w,views:y,shadow:x,variant:E,value:a,color:"theme.primary",isHovered:m,isDisabled:p,isReadOnly:v,isFocused:g,showLabel:M,onMouseEnter:T,onMouseLeave:T},o.createElement(sn,null,M&&o.createElement(an,Object.assign({htmlFor:r,color:"theme.primary",error:u},y),n),o.createElement(vn,Object.assign({id:r,name:i,options:b,onChange:C,value:a,isDisabled:p,isReadOnly:v,isMulti:h,onFocus:()=>O(!0)},H)),o.createElement(pn,{options:b,size:f,views:y,value:a,isDisabled:p,placeholder:l,removeOption:e=>{if(Array.isArray(a)&&a.includes(e)){var t=a.filter(t=>t!==e);k(0===t.length?[]:t)}}})),o.createElement($i,null,!v&&!p&&o.createElement(o.Fragment,null,o.createElement(st,d?{color:"inherit",widthHeight:cn[f],style:y.icon,orientation:"down"}:{color:"inherit",orientation:"up",widthHeight:cn[f],style:y.icon})))),!d&&o.createElement(bn,{size:f,views:y,options:b,callback:W,highlightedIndex:z,setHighlightedIndex:S}))},wn=e=>{var{isDisabled:t,isChecked:r}=e,[i,n]=o.useState(!1),[a,l]=o.useState(t?!t:r);return{isHovered:i,setIsHovered:n,on:a,setOn:l}},En={xs:{height:"12px",width:"12px"},sm:{height:"16px",width:"16px"},md:{height:"20px",width:"20px"},lg:{height:"24px",width:"24px"},xl:{height:"28px",width:"28px"}},yn={xs:{height:"24px",width:"40px"},sm:{height:"28px",width:"48px"},md:{height:"32px",width:"56px"},lg:{height:"36px",width:"64px"},xl:{height:"40px",width:"72px"}},Cn={xs:{paddingVertical:4,paddingHorizontal:4},sm:{paddingVertical:4,paddingHorizontal:4},md:{paddingVertical:4,paddingHorizontal:4},lg:{paddingVertical:4,paddingHorizontal:4},xl:{paddingVertical:4,paddingHorizontal:4}},jn=["id","name","label","inActiveChild","isChecked","activeChild","labelPosition","shadow","size","value","isHovered","isDisabled","isReadOnly","on","setOn","onChange","setValue","setIsHovered","helperText","views"],kn=e=>o.createElement(r.Input,Object.assign({type:"checkbox"},e)),In=e=>{var{id:t,name:i,label:n,inActiveChild:a,activeChild:l,labelPosition:s="right",shadow:d={},size:u="sm",value:h=!1,isHovered:g=!1,isDisabled:m=!1,isReadOnly:p=!1,on:v,setOn:b,onChange:x,setValue:f=(()=>{}),setIsHovered:w=(()=>{}),views:E={slider:{},circle:{},label:{}}}=e,y=c(e,jn),C=()=>w(!g),j={container:Object.assign({gap:12,display:"flex",height:"fit-content",width:"fit-content",alignItems:"center",cursor:m?"not-allowed":p?"default":"pointer",opacity:m?.6:1,transition:"all 0.2s ease"},E.label)};return o.createElement(rn,Object.assign({htmlFor:t,onMouseEnter:C,onMouseLeave:C},j.container,y),o.createElement(kn,Object.assign({id:t,name:i,opacity:0,width:0,height:0,checked:h,onChange:e=>{p||(f(!h),b(!v),x&&x(e.target.checked))},disabled:m,readOnly:p},y)),"left"===s&&n&&o.createElement(T,{fontWeight:"500",color:m?"color.gray.400":"color.gray.700",transition:"all 0.2s ease"},n),o.createElement(r.View,Object.assign({display:"flex",alignItems:"center",justifyContent:l?"space-between":h?"flex-end":"flex-start",marginBottom:4,borderRadius:"9999px",backgroundColor:m?"color.gray.200":h?g?"color.blue.600":"theme.primary":g?"color.gray.400":"color.gray.300",cursor:"pointer",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},d,Cn[u],yn[u],E.slider),l&&h&&o.createElement(r.View,{marginLeft:8,transition:"all 0.3s ease"},l),o.createElement(r.View,Object.assign({borderRadius:"50%",backgroundColor:"white",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.1)",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},En[u],E.circle)),a&&!h&&o.createElement(r.View,{marginRight:8,transition:"all 0.3s ease"},a)),"right"===s&&n&&o.createElement(T,{fontWeight:"500",color:m?"color.gray.400":"color.gray.700",transition:"all 0.2s ease"},n))},On=e=>{var{label:o,placeholder:r,value:i}=e,[n,a]=t.useState(null!=o?o:r),[l,s]=t.useState(!1),[c,d]=t.useState(i||""),[u,h]=t.useState(!1);return t.useMemo(()=>{a(u&&!c?null!=r?r:"":null!=o?o:r)},[c,u,o,r]),{hint:n,setHint:a,isHovered:l,setIsHovered:s,value:c,setValue:d,isFocused:u,setIsFocused:h}},Sn=["id","name","hint","error","value","label","shadow","helperText","placeholder","size","shape","variant","isHovered","isFocused","isEditable","isReadOnly","isDisabled","isAutoFocus","isMultiline","maxRows","maxCols","onBlur","onChange","onFocus","setHint","setValue","setIsFocused","setIsHovered","views"],zn=e=>{var{id:t,name:i,hint:n,error:a,value:l,label:s,shadow:d,helperText:u,size:h="sm",shape:g="default",variant:m="default",isHovered:p=!1,isFocused:v=!1,isEditable:b=!1,isReadOnly:x=!1,isDisabled:f=!1,isAutoFocus:w=!1,isMultiline:E=!1,maxRows:y=3,maxCols:C=30,onBlur:j=(()=>{}),onChange:k,onFocus:I,setHint:O=(()=>{}),setValue:S=(()=>{}),setIsFocused:z=(()=>{}),setIsHovered:H=(()=>{}),views:M={label:{},helperText:{}}}=e,T=c(e,Sn),W=!(!v||!s),R=Object.assign({margin:0,paddingVertical:2,paddingHorizontal:2,width:"100%",maxHeight:"calc(100vh - 100px)",height:"calc(5em)",border:"none",resize:"vertical",on:{focus:{outline:"none"}},fontSize:r.Typography.fontSizes[h],lineHeight:1.5*r.Typography.fontSizes[h],letterSpacing:"-0.01em",backgroundColor:"transparent",color:f?"color.gray.400":"color.gray.900",cursor:f?"not-allowed":"text",transition:"all 0.2s ease"},M.field),V=()=>H(!p);return o.createElement(Ni,Object.assign({helperText:u,error:a,views:M},T),o.createElement(Ji,Object.assign({label:s,size:h,error:a,shape:g,views:M,shadow:d,variant:m,value:l,color:"theme.primary",isHovered:p,isDisabled:f,isReadOnly:x,isFocused:v,showLabel:W,onMouseEnter:V,onMouseLeave:V},null==M?void 0:M.content),o.createElement(sn,Object.assign({},null==M?void 0:M.warper),W&&o.createElement(an,Object.assign({htmlFor:t,color:"theme.primary",error:a},null==M?void 0:M.label),s),o.createElement(r.Element,Object.assign({as:"textarea",id:t,name:i,rows:y,cols:C,value:l,readOnly:x,disabled:f,autoFocus:w,editable:!!b.toString(),placeholder:n,onBlur:e=>{j(e),z(!1)},onFocus:()=>{z(!0),I&&I()},multiline:!!E.toString(),onChange:e=>{"string"==typeof e?(S(e),k&&k(e)):(S(e.target.value),k&&k(e.target.value))}},R,null==M?void 0:M.textarea)))))},Hn=e=>{var{label:o,placeholder:r,value:i}=e,[n,a]=t.useState(null!=o?o:r),[l,s]=t.useState(!1),[c,d]=t.useState(!1),[u,h]=t.useState(i);return t.useMemo(()=>{a(l&&!u?null!=r?r:"":null!=o?o:r)},[u,l,o,r]),{hint:n,setHint:a,isFocused:l,setIsFocused:s,isHovered:c,setIsHovered:d,setValue:h,value:u}},Mn=["id","name","label","hint","value","onChange","left","right","helperText","placeholder","onChangeText","shadow","views","size","shape","variant","error","isFocused","isHovered","isDisabled","isReadOnly","isClearable","isAutoFocus","setHint","setIsFocused","setIsHovered","setValue","onClick","onFocus","onBlur","themeMode"],Tn=e=>o.createElement(r.Input,Object.assign({type:"text"},e)),Wn=e=>{var{id:t,name:i,label:n,hint:a,value:l,onChange:s,left:d,right:u,helperText:h,onChangeText:g,shadow:m={},views:p={container:{},field:{},label:{},helperText:{},text:{}},size:v="md",shape:b="default",variant:x="default",error:f=!1,isFocused:w=!1,isHovered:E=!1,isDisabled:y=!1,isReadOnly:C=!1,isClearable:j=!0,isAutoFocus:k=!1,setHint:I=(()=>{}),setIsFocused:O=(()=>{}),setIsHovered:S=(()=>{}),setValue:z=(()=>{}),onClick:H=(()=>{}),onFocus:M,onBlur:T=(()=>{}),themeMode:W}=e,R=c(e,Mn),{getColor:V,themeMode:L}=r.useTheme(),B=V("color.blueGray.700",{themeMode:W||L}),_=!(!w||!n),P=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",height:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:r.Typography.fontSizes[v],lineHeight:r.Typography.fontSizes[v],letterSpacing:"-0.01em",backgroundColor:"transparent",color:y?"color.gray.400":"color.gray.900",cursor:y?"not-allowed":"text",transition:"all 0.2s ease"},p.field),D=()=>S(!E);return o.createElement(Ni,{helperText:h,error:f,views:p},o.createElement(Ji,{label:n,size:v,error:f,shape:b,views:p,shadow:m,variant:x,value:l,color:"theme.primary",isHovered:E,isDisabled:y,isReadOnly:C,isFocused:w,showLabel:_,onMouseEnter:D,onMouseLeave:D},d,o.createElement(sn,null,_&&o.createElement(an,Object.assign({htmlFor:t,color:"theme.primary",error:f},p),n),o.createElement(Tn,Object.assign({id:t,name:i,readOnly:C,disabled:y,autoFocus:k,placeholder:a,onFocus:()=>{O(!0),M&&M()},onBlur:e=>{T&&T(e),O(!1)},autoComplete:"off"},P,R,{onChange:e=>{"string"==typeof e?(z(e),g&&g(e),s&&s(e)):(z(e.target.value),g&&g(e.target.value),s&&s(e.target.value))},value:l}))),j&&l&&!C&&!y&&o.createElement($i,null,o.createElement(vt,{widthHeight:r.Typography.fontSizes[v],color:B,onClick:()=>{z(""),s&&(T({target:{name:i}}),g&&g(""),s&&s("")),"undefined"==typeof document&&g&&g("")}})),u))},Rn=e=>{var{defaultIsSelected:t=!1}=e,[r,i]=o.useState(!1),[n,a]=o.useState(t);return{isHovered:r,setIsHovered:i,isSelected:n,setIsSelected:a}},Vn={xs:{height:"16px",width:"16px"},sm:{height:"20px",width:"20px"},md:{height:"24px",width:"24px"},lg:{height:"28px",width:"28px"},xl:{height:"32px",width:"32px"}},Ln={xs:10,sm:14,md:16,lg:20,xl:24},Bn={selected:{backgroundColor:"theme.primary",borderColor:"theme.primary",color:"color.white"},unselected:{backgroundColor:"color.white",borderWidth:"2px",borderStyle:"solid",borderColor:"color.gray.300",color:"color.black"},indeterminate:{backgroundColor:"theme.primary",borderColor:"theme.primary",color:"color.white"}},_n={hover:{selected:{backgroundColor:"color.blue.600",borderColor:"color.blue.600"},unselected:{borderColor:"color.gray.400"},indeterminate:{backgroundColor:"color.blue.600",borderColor:"color.blue.600"}},disabled:{selected:{backgroundColor:"color.gray.300",borderColor:"color.gray.300",opacity:.6},unselected:{borderColor:"color.gray.300",opacity:.6},indeterminate:{backgroundColor:"color.gray.300",borderColor:"color.gray.300",opacity:.6}},error:{selected:{backgroundColor:"color.red.500",borderColor:"color.red.500"},unselected:{borderColor:"color.red.500"},indeterminate:{backgroundColor:"color.red.500",borderColor:"color.red.500"}}},Pn=["id","icon","name","label","isChecked","onChange","onValueChange","shadow","labelPosition","size","error","isSelected","isHovered","isDisabled","isReadOnly","isIndeterminate","defaultIsSelected","setIsSelected","setIsHovered","views","infoText","helperText"],Dn=e=>{var{id:t,icon:i,label:n,isChecked:a,onChange:l,onValueChange:s,shadow:d={},labelPosition:u="right",size:h="md",error:g=!1,isSelected:m=!1,isHovered:p=!1,isDisabled:v=!1,isReadOnly:b=!1,isIndeterminate:x=!1,defaultIsSelected:f=!1,setIsSelected:w=(()=>{}),setIsHovered:E=(()=>{}),views:y={checkbox:{},label:{}},infoText:C}=e,j=c(e,Pn),k=()=>E(!p),I=x?"indeterminate":a||m?"selected":"unselected",O=g?_n.error[I]:v?_n.disabled[I]:p?_n.hover[I]:{},S={container:Object.assign({gap:8,display:"flex",height:"fit-content",flexDirection:"column",width:"fit-content",color:g?"color.red.600":v?"color.gray.400":"color.gray.700",cursor:v?"not-allowed":b?"default":"pointer",opacity:v?.6:1,transition:"all 0.2s ease"},y.label),checkbox:Object.assign({},Bn[I],O,{borderRadius:"4px"},Vn[h],{transition:"all 0.2s ease"},d,y.checkbox)};return o.createElement(rn,Object.assign({htmlFor:t,as:"div",onClick:()=>{b||v||(w&&w(!m),l&&l(!a),s&&s(!a))},onMouseEnter:k,onMouseLeave:k,size:r.Typography.fontSizes[h]},S.container,j),o.createElement(r.Vertical,{gap:8}," ",o.createElement(r.Horizontal,{gap:12,alignItems:"center"}," ","left"===u&&n&&o.createElement(T,Object.assign({size:h,fontWeight:"500"},null==y?void 0:y.label),n),o.createElement(r.Center,Object.assign({},S.checkbox),x?o.createElement(yt,{widthHeight:Ln[h],color:"white",transition:"all 0.2s ease"}):(a||m)&&(null!=i?i:o.createElement(vo,{widthHeight:Ln[h],color:"white",transition:"all 0.2s ease"}))),"right"===u&&n&&o.createElement(T,Object.assign({size:h,fontWeight:"500"},null==y?void 0:y.label),n)),C&&o.createElement(T,Object.assign({marginLeft:"left"===u?0:36,color:"color.gray.500",size:"sm",fontWeight:"400",lineHeight:"1.5"},null==y?void 0:y.infoText),C)),g&&o.createElement(T,{size:"xs",marginTop:4,marginHorizontal:0,color:"color.red.500",fontWeight:"500",transition:"all 0.2s ease"},g))},Fn=[{name:"Afghanistan",dial_code:"+93",emoji:"🇦🇫",code:"AF"},{name:"Aland Islands",dial_code:"+358",emoji:"🇦🇽",code:"AX"},{name:"Albania",dial_code:"+355",emoji:"🇦🇱",code:"AL"},{name:"Algeria",dial_code:"+213",emoji:"🇩🇿",code:"DZ"},{name:"AmericanSamoa",dial_code:"+1684",emoji:"🇦🇸",code:"AS"},{name:"Andorra",dial_code:"+376",emoji:"🇦🇩",code:"AD"},{name:"Angola",dial_code:"+244",emoji:"🇦🇴",code:"AO"},{name:"Anguilla",dial_code:"+1264",emoji:"🇦🇮",code:"AI"},{name:"Antarctica",dial_code:"+672",emoji:"🇦🇶",code:"AQ"},{name:"Antigua and Barbuda",dial_code:"+1268",emoji:"🇦🇬",code:"AG"},{name:"Argentina",dial_code:"+54",emoji:"🇦🇷",code:"AR"},{name:"Armenia",dial_code:"+374",emoji:"🇦🇲",code:"AM"},{name:"Aruba",dial_code:"+297",emoji:"🇦🇼",code:"AW"},{name:"Australia",dial_code:"+61",emoji:"🇦🇺",code:"AU"},{name:"Austria",dial_code:"+43",emoji:"🇦🇹",code:"AT"},{name:"Azerbaijan",dial_code:"+994",emoji:"🇦🇿",code:"AZ"},{name:"Bahamas",dial_code:"+1242",emoji:"🇧🇸",code:"BS"},{name:"Bahrain",dial_code:"+973",emoji:"🇧🇭",code:"BH"},{name:"Bangladesh",dial_code:"+880",emoji:"🇧🇩",code:"BD"},{name:"Barbados",dial_code:"+1246",emoji:"🇧🇧",code:"BB"},{name:"Belarus",dial_code:"+375",emoji:"🇧🇾",code:"BY"},{name:"Belgium",dial_code:"+32",emoji:"🇧🇪",code:"BE"},{name:"Belize",dial_code:"+501",emoji:"🇧🇿",code:"BZ"},{name:"Benin",dial_code:"+229",emoji:"🇧🇯",code:"BJ"},{name:"Bermuda",dial_code:"+1441",emoji:"🇧🇲",code:"BM"},{name:"Bhutan",dial_code:"+975",emoji:"🇧🇹",code:"BT"},{name:"Bolivia, Plurinational State of",dial_code:"+591",emoji:"🇧🇴",code:"BO"},{name:"Bosnia and Herzegovina",dial_code:"+387",emoji:"🇧🇦",code:"BA"},{name:"Botswana",dial_code:"+267",emoji:"🇧🇼",code:"BW"},{name:"Brazil",dial_code:"+55",emoji:"🇧🇷",code:"BR"},{name:"British Indian Ocean Territory",dial_code:"+246",emoji:"🇮🇴",code:"IO"},{name:"Brunei Darussalam",dial_code:"+673",emoji:"🇧🇳",code:"BN"},{name:"Bulgaria",dial_code:"+359",emoji:"🇧🇬",code:"BG"},{name:"Burkina Faso",dial_code:"+226",emoji:"🇧🇫",code:"BF"},{name:"Burundi",dial_code:"+257",emoji:"🇧🇮",code:"BI"},{name:"Cambodia",dial_code:"+855",emoji:"🇰🇭",code:"KH"},{name:"Cameroon",dial_code:"+237",emoji:"🇨🇲",code:"CM"},{name:"Canada",dial_code:"+1",emoji:"🇨🇦",code:"CA"},{name:"Cape Verde",dial_code:"+238",emoji:"🇨🇻",code:"CV"},{name:"Cayman Islands",dial_code:"+345",emoji:"🇰🇾",code:"KY"},{name:"Central African Republic",dial_code:"+236",emoji:"🇨🇫",code:"CF"},{name:"Chad",dial_code:"+235",emoji:"🇹🇩",code:"TD"},{name:"Chile",dial_code:"+56",emoji:"🇨🇱",code:"CL"},{name:"China",dial_code:"+86",emoji:"🇨🇳",code:"CN"},{name:"Christmas Island",dial_code:"+61",emoji:"🇨🇽",code:"CX"},{name:"Cocos (Keeling) Islands",dial_code:"+61",emoji:"🇨🇨",code:"CC"},{name:"Colombia",dial_code:"+57",emoji:"🇨🇴",code:"CO"},{name:"Comoros",dial_code:"+269",emoji:"🇰🇲",code:"KM"},{name:"Congo",dial_code:"+242",emoji:"🇨🇬",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",emoji:"🇨🇩",code:"CD"},{name:"Cook Islands",dial_code:"+682",emoji:"🇨🇰",code:"CK"},{name:"Costa Rica",dial_code:"+506",emoji:"🇨🇷",code:"CR"},{name:"Cote d'Ivoire",dial_code:"+225",emoji:"🇨🇮",code:"CI"},{name:"Croatia",dial_code:"+385",emoji:"🇭🇷",code:"HR"},{name:"Cuba",dial_code:"+53",emoji:"🇨🇺",code:"CU"},{name:"Cyprus",dial_code:"+357",emoji:"🇨🇾",code:"CY"},{name:"Czech Republic",dial_code:"+420",emoji:"🇨🇿",code:"CZ"},{name:"Denmark",dial_code:"+45",emoji:"🇩🇰",code:"DK"},{name:"Djibouti",dial_code:"+253",emoji:"🇩🇯",code:"DJ"},{name:"Dominica",dial_code:"+1767",emoji:"🇩🇲",code:"DM"},{name:"Dominican Republic",dial_code:"+1849",emoji:"🇩🇴",code:"DO"},{name:"Ecuador",dial_code:"+593",emoji:"🇪🇨",code:"EC"},{name:"Egypt",dial_code:"+20",emoji:"🇪🇬",code:"EG"},{name:"El Salvador",dial_code:"+503",emoji:"🇸🇻",code:"SV"},{name:"Equatorial Guinea",dial_code:"+240",emoji:"🇬🇶",code:"GQ"},{name:"Eritrea",dial_code:"+291",emoji:"🇪🇷",code:"ER"},{name:"Estonia",dial_code:"+372",emoji:"🇪🇪",code:"EE"},{name:"Ethiopia",dial_code:"+251",emoji:"🇪🇹",code:"ET"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",emoji:"🇫🇰",code:"FK"},{name:"Faroe Islands",dial_code:"+298",emoji:"🇫🇴",code:"FO"},{name:"Fiji",dial_code:"+679",emoji:"🇫🇯",code:"FJ"},{name:"Finland",dial_code:"+358",emoji:"🇫🇮",code:"FI"},{name:"France",dial_code:"+33",emoji:"🇫🇷",code:"FR"},{name:"French Guiana",dial_code:"+594",emoji:"🇬🇫",code:"GF"},{name:"French Polynesia",dial_code:"+689",emoji:"🇵🇫",code:"PF"},{name:"Gabon",dial_code:"+241",emoji:"🇬🇦",code:"GA"},{name:"Gambia",dial_code:"+220",emoji:"🇬🇲",code:"GM"},{name:"Georgia",dial_code:"+995",emoji:"🇬🇪",code:"GE"},{name:"Germany",dial_code:"+49",emoji:"🇩🇪",code:"DE"},{name:"Ghana",dial_code:"+233",emoji:"🇬🇭",code:"GH"},{name:"Gibraltar",dial_code:"+350",emoji:"🇬🇮",code:"GI"},{name:"Greece",dial_code:"+30",emoji:"🇬🇷",code:"GR"},{name:"Greenland",dial_code:"+299",emoji:"🇬🇱",code:"GL"},{name:"Grenada",dial_code:"+1473",emoji:"🇬🇩",code:"GD"},{name:"Guadeloupe",dial_code:"+590",emoji:"🇬🇵",code:"GP"},{name:"Guam",dial_code:"+1671",emoji:"🇬🇺",code:"GU"},{name:"Guatemala",dial_code:"+502",emoji:"🇬🇹",code:"GT"},{name:"Guernsey",dial_code:"+44",emoji:"🇬🇬",code:"GG"},{name:"Guinea",dial_code:"+224",emoji:"🇬🇳",code:"GN"},{name:"Guinea-Bissau",dial_code:"+245",emoji:"🇬🇼",code:"GW"},{name:"Guyana",dial_code:"+595",emoji:"🇬🇾",code:"GY"},{name:"Haiti",dial_code:"+509",emoji:"🇭🇹",code:"HT"},{name:"Holy See (Vatican City State)",dial_code:"+379",emoji:"🇻🇦",code:"VA"},{name:"Honduras",dial_code:"+504",emoji:"🇭🇳",code:"HN"},{name:"Hong Kong",dial_code:"+852",emoji:"🇭🇰",code:"HK"},{name:"Hungary",dial_code:"+36",emoji:"🇭🇺",code:"HU"},{name:"Iceland",dial_code:"+354",emoji:"🇮🇸",code:"IS"},{name:"India",dial_code:"+91",emoji:"🇮🇳",code:"IN"},{name:"Indonesia",dial_code:"+62",emoji:"🇮🇩",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",emoji:"🇮🇷",code:"IR"},{name:"Iraq",dial_code:"+964",emoji:"🇮🇷",code:"IQ"},{name:"Ireland",dial_code:"+353",emoji:"🇮🇪",code:"IE"},{name:"Isle of Man",dial_code:"+44",emoji:"🇮🇲",code:"IM"},{name:"Israel",dial_code:"+972",emoji:"🇮🇱",code:"IL"},{name:"Italy",dial_code:"+39",emoji:"🇮🇹",code:"IT"},{name:"Jamaica",dial_code:"+1876",emoji:"🇯🇲",code:"JM"},{name:"Japan",dial_code:"+81",emoji:"🇯🇵",code:"JP"},{name:"Jersey",dial_code:"+44",emoji:"🇯🇪",code:"JE"},{name:"Jordan",dial_code:"+962",emoji:"🇯🇴",code:"JO"},{name:"Kazakhstan",dial_code:"+77",emoji:"🇰🇿",code:"KZ"},{name:"Kenya",dial_code:"+254",emoji:"🇰🇪",code:"KE"},{name:"Kiribati",dial_code:"+686",emoji:"🇰🇮",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",emoji:"🇰🇵",code:"KP"},{name:"Korea, Republic of South Korea",dial_code:"+82",emoji:"🇰🇷",code:"KR"},{name:"Kuwait",dial_code:"+965",emoji:"🇰🇼",code:"KW"},{name:"Kyrgyzstan",dial_code:"+996",emoji:"🇰🇬",code:"KG"},{name:"Laos",dial_code:"+856",emoji:"🇱🇦",code:"LA"},{name:"Latvia",dial_code:"+371",emoji:"🇱🇻",code:"LV"},{name:"Lebanon",dial_code:"+961",emoji:"🇱🇧",code:"LB"},{name:"Lesotho",dial_code:"+266",emoji:"🇱🇸",code:"LS"},{name:"Liberia",dial_code:"+231",emoji:"🇱🇷",code:"LR"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",emoji:"🇱🇾",code:"LY"},{name:"Liechtenstein",dial_code:"+423",emoji:"🇱🇮",code:"LI"},{name:"Lithuania",dial_code:"+370",emoji:"🇱🇹",code:"LT"},{name:"Luxembourg",dial_code:"+352",emoji:"🇱🇺",code:"LU"},{name:"Macao",dial_code:"+853",emoji:"🇲🇴",code:"MO"},{name:"Macedonia",dial_code:"+389",emoji:"🇲🇰",code:"MK"},{name:"Madagascar",dial_code:"+261",emoji:"🇲🇬",code:"MG"},{name:"Malawi",dial_code:"+265",emoji:"🇲🇼",code:"MW"},{name:"Malaysia",dial_code:"+60",emoji:"🇲🇾",code:"MY"},{name:"Maldives",dial_code:"+960",emoji:"🇲🇻",code:"MV"},{name:"Mali",dial_code:"+223",emoji:"🇲🇱",code:"ML"},{name:"Malta",dial_code:"+356",emoji:"🇲🇹",code:"MT"},{name:"Marshall Islands",dial_code:"+692",emoji:"🇲🇭",code:"MH"},{name:"Martinique",dial_code:"+596",emoji:"🇲🇶",code:"MQ"},{name:"Mauritania",dial_code:"+222",emoji:"🇲🇷",code:"MR"},{name:"Mauritius",dial_code:"+230",emoji:"🇲🇺",code:"MU"},{name:"Mayotte",dial_code:"+262",emoji:"🇾🇹",code:"YT"},{name:"Mexico",dial_code:"+52",emoji:"🇲🇽",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",emoji:"🇫🇲",code:"FM"},{name:"Moldova",dial_code:"+373",emoji:"🇲🇩",code:"MD"},{name:"Monaco",dial_code:"+377",emoji:"🇲🇨",code:"MC"},{name:"Mongolia",dial_code:"+976",emoji:"🇲🇳",code:"MN"},{name:"Montenegro",dial_code:"+382",emoji:"🇲🇪",code:"ME"},{name:"Montserrat",dial_code:"+1664",emoji:"🇲🇸",code:"MS"},{name:"Morocco",dial_code:"+212",emoji:"🇲🇦",code:"MA"},{name:"Mozambique",dial_code:"+258",emoji:"🇲🇿",code:"MZ"},{name:"Myanmar",dial_code:"+95",emoji:"🇲🇲",code:"MM"},{name:"Namibia",emoji:"🇳🇦",dial_code:"+264",code:"NA"},{name:"Nauru",dial_code:"+674",emoji:"🇳🇷",code:"NR"},{name:"Nepal",dial_code:"+977",emoji:"🇳🇵",code:"NP"},{name:"Netherlands",dial_code:"+31",emoji:"🇳🇱",code:"NL"},{name:"Netherlands Antilles",dial_code:"+599",emoji:"🇧🇶",code:"AN"},{name:"New Caledonia",dial_code:"+687",emoji:"🇳🇨",code:"NC"},{name:"New Zealand",dial_code:"+64",emoji:"🇳🇿",code:"NZ"},{name:"Nicaragua",dial_code:"+505",emoji:"🇳🇮",code:"NI"},{name:"Niger",dial_code:"+227",emoji:"🇳🇪",code:"NE"},{name:"Nigeria",dial_code:"+234",emoji:"🇳🇬",code:"NG"},{name:"Niue",dial_code:"+683",emoji:"🇳🇺",code:"NU"},{name:"Norfolk Island",dial_code:"+672",emoji:"🇳🇫",code:"NF"},{name:"Northern Mariana Islands",dial_code:"+1670",emoji:"🇲🇵",code:"MP"},{name:"Norway",dial_code:"+47",emoji:"🇳🇴",code:"NO"},{name:"Oman",dial_code:"+968",emoji:"🇴🇲",code:"OM"},{name:"Pakistan",dial_code:"+92",emoji:"🇵🇰",code:"PK"},{name:"Palau",dial_code:"+680",emoji:"🇵🇼",code:"PW"},{name:"Palestinian Territory, Occupied",dial_code:"+970",emoji:"🇵🇸",code:"PS"},{name:"Panama",dial_code:"+507",emoji:"🇵🇦",code:"PA"},{name:"Papua New Guinea",dial_code:"+675",emoji:"🇵🇬",code:"PG"},{name:"Paraguay",dial_code:"+595",emoji:"🇵🇾",code:"PY"},{name:"Peru",dial_code:"+51",emoji:"🇵🇪",code:"PE"},{name:"Philippines",dial_code:"+63",emoji:"🇵🇭",code:"PH"},{name:"Pitcairn",dial_code:"+872",emoji:"🇵🇳",code:"PN"},{name:"Poland",dial_code:"+48",emoji:"🇵🇱",code:"PL"},{name:"Portugal",dial_code:"+351",emoji:"🇵🇹",code:"PT"},{name:"Puerto Rico",dial_code:"+1939",emoji:"🇵🇷",code:"PR"},{name:"Qatar",dial_code:"+974",emoji:"🇶🇦",code:"QA"},{name:"Romania",dial_code:"+40",emoji:"🇷🇴",code:"RO"},{name:"Russia",dial_code:"+7",emoji:"🇷🇺",code:"RU"},{name:"Rwanda",dial_code:"+250",emoji:"🇷🇼",code:"RW"},{name:"Reunion",dial_code:"+262",emoji:"🇷🇪",code:"RE"},{name:"Saint Barthelemy",dial_code:"+590",emoji:"🇧🇱",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",emoji:"🇸🇭",code:"SH"},{name:"Saint Kitts and Nevis",dial_code:"+1869",emoji:"🇰🇳",code:"KN"},{name:"Saint Lucia",dial_code:"+1758",emoji:"🇱🇨",code:"LC"},{name:"Saint Martin",dial_code:"+590",emoji:"🇲🇫",code:"MF"},{name:"Saint Pierre and Miquelon",dial_code:"+508",emoji:"🇵🇲",code:"PM"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",emoji:"🇻🇨",code:"VC"},{name:"Samoa",dial_code:"+685",emoji:"🇼🇸",code:"WS"},{name:"San Marino",dial_code:"+378",emoji:"🇸🇲",code:"SM"},{name:"Sao Tome and Principe",dial_code:"+239",emoji:"🇸🇹",code:"ST"},{name:"Saudi Arabia",dial_code:"+966",emoji:"🇸🇦",code:"SA"},{name:"Senegal",dial_code:"+221",emoji:"🇸🇳",code:"SN"},{name:"Serbia",dial_code:"+381",emoji:"🇷🇸",code:"RS"},{name:"Seychelles",dial_code:"+248",emoji:"🇸🇨",code:"SC"},{name:"Sierra Leone",dial_code:"+232",emoji:"🇸🇱",code:"SL"},{name:"Singapore",dial_code:"+65",emoji:"🇸🇬",code:"SG"},{name:"Slovakia",dial_code:"+421",emoji:"🇸🇰",code:"SK"},{name:"Slovenia",dial_code:"+386",emoji:"🇸🇮",code:"SI"},{name:"Solomon Islands",dial_code:"+677",emoji:"🇸🇧",code:"SB"},{name:"Somalia",dial_code:"+252",emoji:"🇸🇴",code:"SO"},{name:"South Africa",dial_code:"+27",emoji:"🇿🇦",code:"ZA"},{name:"South Sudan",dial_code:"+211",emoji:"🇸🇸",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",emoji:"🇬🇸",code:"GS"},{name:"Spain",dial_code:"+34",emoji:"🇪🇸",code:"ES"},{name:"Sri Lanka",dial_code:"+94",emoji:"🇱🇰",code:"LK"},{name:"Sudan",dial_code:"+249",emoji:"🇸🇩",code:"SD"},{name:"Suriname",dial_code:"+597",emoji:"🇸🇷",code:"SR"},{name:"Svalbard and Jan Mayen",dial_code:"+47",emoji:"🇸🇯",code:"SJ"},{name:"Swaziland",dial_code:"+268",emoji:"🇸🇿",code:"SZ"},{name:"Sweden",dial_code:"+46",emoji:"🇸🇪",code:"SE"},{name:"Switzerland",dial_code:"+41",emoji:"🇨🇭",code:"CH"},{name:"Syrian Arab Republic",dial_code:"+963",emoji:"🇸🇾",code:"SY"},{name:"Taiwan",dial_code:"+886",emoji:"🇹🇼",code:"TW"},{name:"Tajikistan",dial_code:"+992",emoji:"🇹🇯",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",emoji:"🇹🇿",code:"TZ"},{name:"Thailand",dial_code:"+66",emoji:"🇹🇭",code:"TH"},{name:"Timor-Leste",dial_code:"+670",emoji:"🇹🇱",code:"TL"},{name:"Togo",dial_code:"+228",emoji:"🇹🇬",code:"TG"},{name:"Tokelau",dial_code:"+690",emoji:"🇹🇰",code:"TK"},{name:"Tonga",dial_code:"+676",emoji:"🇹🇴",code:"TO"},{name:"Trinidad and Tobago",dial_code:"+1868",emoji:"🇹🇹",code:"TT"},{name:"Tunisia",dial_code:"+216",emoji:"🇹🇳",code:"TN"},{name:"Turkey",dial_code:"+90",emoji:"🇹🇷",code:"TR"},{name:"Turkmenistan",dial_code:"+993",emoji:"🇹🇲",code:"TM"},{name:"Turks and Caicos Islands",dial_code:"+1649",emoji:"🇹🇨",code:"TC"},{name:"Tuvalu",dial_code:"+688",emoji:"🇹🇻",code:"TV"},{name:"Uganda",dial_code:"+256",emoji:"🇺🇬",code:"UG"},{name:"Ukraine",dial_code:"+380",emoji:"🇺🇦",code:"UA"},{name:"United Arab Emirates",dial_code:"+971",emoji:"🇦🇪",code:"AE"},{name:"United Kingdom",dial_code:"+44",emoji:"🇬🇧",code:"GB"},{name:"United States",dial_code:"+1",emoji:"🇺🇸",code:"US"},{name:"Uruguay",dial_code:"+598",emoji:"🇺🇾",code:"UY"},{name:"Uzbekistan",dial_code:"+998",emoji:"🇺🇿",code:"UZ"},{name:"Vanuatu",dial_code:"+678",emoji:"🇻🇺",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",emoji:"🇻🇪",code:"VE"},{name:"Vietnam",dial_code:"+84",emoji:"🇻🇳",code:"VN"},{name:"Virgin Islands, British",dial_code:"+1284",emoji:"🇻🇬",code:"VG"},{name:"Virgin Islands, U.S.",dial_code:"+1340",emoji:"🇻🇮",code:"VI"},{name:"Wallis and Futuna",dial_code:"+681",emoji:"🇼🇫",code:"WF"},{name:"Yemen",dial_code:"+967",emoji:"🇾🇪",code:"YE"},{name:"Zambia",dial_code:"+260",emoji:"🇿🇲",code:"ZM"},{name:"Zimbabwe",dial_code:"+263",emoji:"🇿🇼",code:"ZW"}],An=e=>{var{placeholder:t}=e,[r,i]=o.useState(Fn),[n,a]=o.useState(null!=t?t:Fn[0].name),[l,s]=o.useState(!0),[c,d]=o.useState(!1),[u,h]=o.useState(!1);return{hide:l,setHide:s,newOptions:r,setNewOptions:i,isHovered:u,setIsHovered:h,isFocused:c,setIsFocused:d,value:n,setValue:a}},Gn={xs:8,sm:10,md:12,lg:14,xl:16},Nn=["size"],Un=["size"],Yn=["id","name","label","value","placeholder","helperText","hide","error","isHovered","isFocused","isAutoFocus","isDisabled","isReadOnly","shadow","newOptions","size","variant","shape","onChange","onBlur","setHide","setNewOptions","setIsHovered","setIsFocused","setValue","views","themeMode"],Kn=e=>{var t=c(e,Nn);return o.createElement(r.Element,Object.assign({as:"ul"},t))},Xn=e=>o.createElement(r.Input,Object.assign({type:"country"},e)),qn=e=>{var t=c(e,Un);return o.createElement(r.Element,Object.assign({as:"li"},t))},Zn=e=>{var{option:i,size:n="md",callback:a=(()=>{}),views:l={text:{}}}=e,[s,c]=t.useState(!1),d=()=>c(!s);return o.createElement(qn,Object.assign({margin:0,role:"DropDownItem",listStyleType:"none",fontWeight:"normal",paddingVertical:6,paddingHorizontal:12,onMouseEnter:d,onMouseLeave:d,onClick:e=>{e&&e.stopPropagation&&e.stopPropagation(),a(i)},fontSize:r.Typography.fontSizes[n],backgroundColor:s?"trueGray.100":"transparent"},l.text),i)},Jn=e=>{var{size:t,views:r={dropDown:{}},options:i=[],callback:n=(()=>{})}=e,a=e=>n(e);return o.createElement(Kn,Object.assign({role:"dropDown",margin:0,padding:0,top:"100%",width:"100%",display:"flex",zIndex:1e3,overflow:"auto",maxHeight:"300px",borderRadius:4,position:"absolute",flexDirection:"column",backgroundColor:"color.white",boxShadow:"rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"},r.dropDown),i.map(e=>o.createElement(Zn,Object.assign({key:e.code,size:t,option:e.name,callback:a},r.text))))},Qn=e=>{var{id:t,name:i,label:n,value:a,placeholder:l,helperText:s,hide:d=!1,error:u=!1,isHovered:h=!1,isFocused:g=!1,isAutoFocus:m=!1,isDisabled:p=!1,isReadOnly:v=!1,shadow:b={},newOptions:x=[],size:f="md",variant:w="default",shape:E="default",onChange:y,onBlur:C=(()=>{}),setHide:j=(()=>{}),setNewOptions:k=(()=>{}),setIsHovered:I=(()=>{}),setIsFocused:O=(()=>{}),setValue:S=(()=>{}),views:z={text:{},icon:{},label:{},dropDown:{},helperText:{}},themeMode:H}=e,M=c(e,Yn),{getColor:T,themeMode:W}=r.useTheme(),R=T("color.blueGray.700",{themeMode:H||W}),V=()=>I(!h),L=!(!n||!g&&!a),B=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:r.Typography.fontSizes[f],backgroundColor:"transparent",color:p?"color.trueGray.600":"color.blueGray.700",cursor:p?"not-allowed":v?"auto":"pointer"},z.field);return o.createElement(Ni,{helperText:s,error:u,views:z,onClick:()=>{p||v||j(!d)}},o.createElement(Ji,{label:n,size:f,error:u,shape:E,views:z,shadow:b,variant:w,value:a,color:"theme.primary",isHovered:h,isDisabled:p,isReadOnly:v,isFocused:g,showLabel:L,onMouseEnter:V,onMouseLeave:V},o.createElement(sn,null,L&&o.createElement(an,Object.assign({htmlFor:t,color:"theme.primary",error:u},z),n),o.createElement(Xn,Object.assign({id:t,name:i,placeholder:l,readOnly:v,disabled:p,autoFocus:m,onBlur:e=>{C(e),O(!1)},onFocus:()=>O(!0)},B,M,{value:a,onChange:e=>{var t=e.target.value,o=Fn.filter(e=>e.name.toLowerCase().startsWith(t.toLowerCase()));d&&j(!1),k(o),y&&y(t)}}))),o.createElement($i,null,o.createElement(st,d?{orientation:"down",widthHeight:Gn[f],color:R,style:z.icon}:{orientation:"up",widthHeight:Gn[f],color:R,style:z.icon}))),!d&&o.createElement(Jn,{size:f,views:z,options:x,callback:e=>{j(!d),S(e),y&&y(e)}}))},$n=()=>{var[e,t]=o.useState(!1),[r,i]=o.useState(!1),[n,l]=o.useState(a(new Date,"yyyy-MM-dd"));return{date:n,setDate:l,isHovered:e,setIsHovered:t,isFocused:r,setIsFocused:i}},ea=["id","icon","name","label","date","children","helperText","shadow","size","variant","shape","views","error","isHovered","isFocused","isDisabled","isReadOnly","setDate","setIsFocused","setIsHovered","onChange","onChangeText"],ta=e=>o.createElement(r.Input,Object.assign({type:"date"},e)),oa=e=>{var{id:t,name:i,label:n,date:a,helperText:l,shadow:s={},size:d="md",variant:u="default",shape:h="default",views:g={container:{},label:{},helperText:{},text:{},field:{}},error:m=!1,isHovered:p=!1,isFocused:v=!1,isDisabled:b=!1,isReadOnly:x=!1,setDate:f=(()=>{}),setIsFocused:w=(()=>{}),setIsHovered:E=(()=>{}),onChange:y,onChangeText:C}=e,j=c(e,ea),k=!(!v||!n),I=()=>E(!p),O=e=>{"string"==typeof e?(f(e),C&&C(e)):(f(e.target.value),y&&y(e.target.value))},S=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none",backgroundColor:"transparent"}},fontSize:r.Typography.fontSizes[d],backgroundColor:"transparent",color:b?"color.trueGray.600":"color.blueGray.700",cursor:b?"not-allowed":x?"auto":"pointer"},g.field);return o.createElement(Ni,{helperText:l,error:m,views:g},o.createElement(Ji,{label:n,size:d,error:m,shape:h,views:g,shadow:s,color:"theme.primary",variant:u,value:a,isHovered:p,isDisabled:b,isReadOnly:x,isFocused:v,showLabel:k,onMouseEnter:I,onMouseLeave:I},o.createElement(sn,null,k&&o.createElement(an,Object.assign({htmlFor:t,color:"theme.primary",error:m},g),n),o.createElement(ta,Object.assign({id:t,name:i,onFocus:()=>w(!0),disabled:b,readOnly:x},S,j,C&&{onChangeText:O},{onChange:O})))))},ra=e=>{var o=Hn(e),[r,i]=t.useState(!1);return Object.assign({isVisible:r,setIsVisible:i},e,o)},ia=["visibleIcon","hiddenIcon"],na=["isVisible","setIsVisible"],aa=(e,o,r)=>{var[i,n]=t.useState(e),[a,l]=t.useState(o?{value:o,label:o}:e[0]),[s,c]=t.useState(0),[d,u]=t.useState(null!=r?r:""),[h,g]=t.useState(!1);return{filteredItems:i,setFilteredItems:n,selectedItem:a,setSelectedItem:l,highlightedIndex:s,setHighlightedIndex:c,searchQuery:d,setSearchQuery:u,isDropdownVisible:h,setIsDropdownVisible:g}},la=["placeholder","items","showTick","onSelect","searchEnabled","left","right","label","filteredItems","setSelectedItem","selectedItem","highlightedIndex","setHighlightedIndex","searchQuery","setSearchQuery","setFilteredItems","views","isDropdownVisible","setIsDropdownVisible"],sa=e=>{var{placeholder:i,items:n,showTick:a=!0,onSelect:l,searchEnabled:s=!0,left:d,right:u,label:h,filteredItems:g,setSelectedItem:m,selectedItem:p,highlightedIndex:v,setHighlightedIndex:b,searchQuery:x,setSearchQuery:f,setFilteredItems:w,views:E,isDropdownVisible:y,setIsDropdownVisible:C}=e,j=c(e,la);return t.useEffect(()=>{var e=e=>{!e.composedPath().some(e=>"combobox-dropdown"===(null==e?void 0:e.id))&&C(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),o.createElement(r.Horizontal,Object.assign({role:"combobox",flexWrap:"nowrap",gap:15,alignItems:"center",width:"100%"},j),h&&o.createElement(T,{views:null==E?void 0:E.label,htmlFor:j.id},h),o.createElement(r.View,{position:"relative"},o.createElement(r.Horizontal,Object.assign({cursor:"pointer",backgroundColor:"color.white",boxShadow:"rgba(0, 0, 0, 0.16) 0px 1px 4px",padding:"12px",display:"flex",alignItems:"center",borderRadius:"4px",justifyContent:"space-between",minWidth:300,flexWrap:"nowrap"},null==E?void 0:E.container),o.createElement(r.Horizontal,Object.assign({gap:15,alignItems:"center",position:"relative",width:"100%",onClick:()=>C(!y)},null==E?void 0:E.labelContainer),d,o.createElement(T,Object.assign({weight:"medium",flexGrow:1,color:"color.gray.800"},null==E?void 0:E.label),p.label)),u,y&&o.createElement(r.View,Object.assign({id:"combobox-dropdown",position:"absolute",backgroundColor:"color.white",boxShadow:"rgba(0, 0 ,0 ,0.16) 0px 1px 4px",width:"100%",overflowY:"auto",zIndex:1e4,bottom:-8,left:0,transform:"translateY(100%)",marginTop:"4px",borderRadius:"4px"},null==E?void 0:E.dropdown),s&&o.createElement(Wn,{id:j.id,name:j.name,width:"100%",type:"search",value:x,onChange:e=>(e=>{if(f(e),""===e)w(n);else{var t=n.filter(t=>t.label.toLowerCase().includes(e.toLowerCase()));w(t)}b(0)})(e),hint:i,isClearable:!1,left:o.createElement(ho,{widthHeight:12}),views:{container:Object.assign({width:"100%",padding:"6px 12px",borderBottom:g.length>0?"1px solid #ccc":"1px solid transparent"},null==E?void 0:E.text)}}),g.length>0&&o.createElement(r.View,{margin:0,padding:4},g.map((e,t)=>o.createElement(r.Horizontal,Object.assign({justifyContent:"space-between",key:e.value,padding:"12px",cursor:"pointer",borderRadius:4,backgroundColor:t===v?"color.gray.100":"transparent",onMouseEnter:()=>b(t),onClick:()=>(e=>{m(e),null==l||l(e),C(!1)})(e)},null==E?void 0:E.item),o.createElement(T,null,e.label),o.createElement(o.Fragment,null,e.icon&&e.icon,e.value===p.value&&a&&!e.icon&&o.createElement(vo,{widthHeight:20})))))))))},ca=["id","name","items","placeholder","searchPlaceholder"],da=e=>{var o,{value:r,defaultValue:i="",length:n=6,onChange:a,onChangeText:l,onComplete:s,onKeyDown:c,onKeyPress:d,pattern:u,stepValues:h,pasteTransformer:g}=e,m=void 0!==r,p=m?r:i,[v,b]=t.useState((null==p?void 0:p.slice(0,n))||""),[x,f]=t.useState(!1),[w,E]=t.useState(!1),[y,C]=t.useState(null),[j,k]=t.useState(null),I=t.useRef(null),O=t.useRef(null),S=t.useRef({value:v,onChange:a||(()=>{}),isIOS:"undefined"!=typeof window&&(null==(o=window)||null==(o=o.CSS)||null==o.supports?void 0:o.supports("-webkit-touch-callout","none"))}),z=t.useRef({prev:[null,null,"none"]}),H=u?"string"==typeof u?new RegExp(u):u:null;t.useEffect(()=>{m&&r!==v&&b((null==r?void 0:r.slice(0,n))||"")},[m,r,n,v]);var M=t.useCallback(e=>{var t=e;if(h&&h.length>0&&e){var o=parseInt(e,10);if(!isNaN(o)){for(var r=h[0],i=Math.abs(o-r),c=1;c<h.length;c++){var d=Math.abs(o-h[c]);d<i&&(i=d,r=h[c])}t=r.toString()}}b(t),a&&a(t),l&&l(t),s&&t.length===n&&s(t)},[a,l,s,n,h]),T=t.useCallback(e=>{e&&I.current!==e&&Object.defineProperty(I,"current",{value:e,writable:!0})},[]),W=t.useCallback(e=>{var t=e.currentTarget.value.slice(0,n);t.length>0&&H&&!H.test(t)?e.preventDefault():(M(t),I.current&&(I.current.value=t))},[n,H,M,I]),R=t.useCallback(()=>{if(I.current){var e,t=Math.min(I.current.value.length,n-1),o=I.current.value.length;null==(e=I.current)||e.setSelectionRange(t,o),C(t),k(o)}f(!0)},[n]),V=t.useCallback(()=>{f(!1)},[]),L=t.useCallback(e=>{c&&c(e)},[]),B=t.useCallback(e=>{d&&d(e)},[]),_=t.useCallback(e=>{var t=I.current;if(e.clipboardData&&t){var o=e.clipboardData.getData("text/plain"),r=g?g(o):o;e.preventDefault();var i=t.selectionStart||0,a=t.selectionEnd||0,l=(i!==a?v.slice(0,i)+r+v.slice(a):v.slice(0,i)+r+v.slice(i)).slice(0,n);if(!(l.length>0&&H)||H.test(l)){t.value=l,M(l),b(l);var s=Math.min(l.length,n-1),c=l.length;t.setSelectionRange(s,c),C(s),k(c)}}},[n,g,H,M,v,b]);return t.useEffect(()=>{var e=I.current,t=O.current;if(e&&t){S.current.value!==e.value&&S.current.onChange&&S.current.onChange(e.value),z.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",i,{capture:!0}),i(),document.activeElement===e&&f(!0);var o=()=>{t&&t.style.setProperty("--root-height",e.clientHeight+"px")};o();var r=new window.ResizeObserver(o);return r.observe(e),()=>{document.removeEventListener("selectionchange",i,{capture:!0}),r.disconnect()}}function i(){var t,o,r,i,n;if(document.activeElement!==e)return C(null),void k(null);var a=null!=(t=null==e?void 0:e.selectionStart)?t:null,l=null!=(o=null==e?void 0:e.selectionEnd)?o:null,s=null!=(r=null==e?void 0:e.selectionDirection)?r:null,c=null!=(i=null==e?void 0:e.maxLength)?i:0,d=null!=(n=null==e?void 0:e.value)?n:"",u=z.current.prev,h=-1,g=-1,m="none";if(0!==d.length&&null!==a&&null!==l){if(a===l&&!(a===d.length&&d.length<c))if(0===a)h=0,g=1,m="forward";else if(a===c)h=a-1,g=a,m="backward";else if(c>1&&d.length>1){var p=0;null!==u[0]&&null!==u[1]&&("backward"!=(m=a<u[1]?"backward":"forward")||u[0]===u[1]&&u[0]<c||(p=-1)),h=p+a,g=p+a+1}-1!==h&&-1!==g&&h!==g&&I.current&&I.current.setSelectionRange(h,g,m)}var v=-1!==h?h:a,b=-1!==g?g:l,x="none"!==m?m:s;C(v),k(b),z.current.prev=[v,b,x]}},[]),t.useEffect(()=>{var e;e=()=>{var e,t,o,r;null==(e=I.current)||e.dispatchEvent(new Event("input"));var i=null==(t=I.current)?void 0:t.selectionStart,n=null==(o=I.current)?void 0:o.selectionEnd,a=null==(r=I.current)?void 0:r.selectionDirection;null!==i&&null!==n&&void 0!==i&&void 0!==n&&(C(i),k(n),z.current.prev=[i,n,a||"none"])},setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)},[v,x]),{value:v,setValue:M,isFocused:x,setIsFocused:f,isHovered:w,setIsHovered:E,inputRef:I,containerRef:O,mirrorSelectionStart:y,mirrorSelectionEnd:j,setMirrorSelectionStart:C,setMirrorSelectionEnd:k,setInputRef:T,handleChange:W,handleFocus:R,handleBlur:V,handleKeyDown:L,handleKeyPress:B,handlePaste:_}},ua=["id","name","label","value","length","onChange","onChangeText","onComplete","helperText","placeholder","shadow","views","size","shape","variant","gap","type","error","isFocused","isHovered","isDisabled","isReadOnly","isAutoFocus","setValue","setIsFocused","setIsHovered","inputRef","containerRef","mirrorSelectionStart","mirrorSelectionEnd","setMirrorSelectionStart","setMirrorSelectionEnd","handlePaste","handleChange","handleFocus","handleBlur","handleKeyDown","handleKeyPress","secureTextEntry","isFirstColumn","stepValues","setInputRef","onBlur","onClick","onFocus"],ha=t.createContext({slots:[],isFocused:!1,isHovering:!1});function ga(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}var ma=e=>{var{id:i,name:n,label:a,value:l="",length:s=6,helperText:d,placeholder:u="",views:h={},size:g="md",shape:m="rounded",variant:p="outline",gap:v=8,type:b="text",error:x=!1,isFocused:f=!1,isHovered:w=!1,isDisabled:E=!1,isReadOnly:y=!1,isAutoFocus:C=!1,setIsHovered:j,inputRef:k,containerRef:I,mirrorSelectionStart:O,mirrorSelectionEnd:S,handlePaste:z,handleChange:H,handleFocus:M,handleBlur:T,handleKeyDown:W,setInputRef:R,onBlur:V=(()=>{}),onClick:L=(()=>{}),onFocus:B=(()=>{})}=e,_=c(e,ua);r.useTheme();var P=!!a,D=o.useMemo(()=>({slots:Array.from({length:s}).map((e,t)=>{var o,r=f&&null!==O&&null!==S&&(O===S&&t===O||t>=O&&t<S),i=void 0!==l[t]?l[t]:null;return{char:i,placeholderChar:void 0!==l[0]?null:null!=(o=null==u?void 0:u[t])?o:null,isActive:r,hasFakeCaret:r&&null===i}}),isFocused:f,isHovering:!E&&w}),[f,w,E,s,S,O,u,l]);return t.useEffect(()=>{C&&k.current&&k.current.focus()},[C,k]),t.useEffect(()=>{if(!document.getElementById("input-otp-style")){var e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){var t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";ga(e.sheet,"@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }"),ga(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),ga(e.sheet,"[data-input-otp]:autofill { "+t+" }"),ga(e.sheet,"[data-input-otp]:-webkit-autofill { "+t+" }"),ga(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),ga(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}},[]),o.createElement(o.Fragment,null,o.createElement("noscript",null,o.createElement("style",null,"\n@keyframes blink {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0; }\n}\n\n[data-input-otp] {\n --nojs-bg: white !important;\n --nojs-fg: black !important;\n\n background-color: var(--nojs-bg) !important;\n color: var(--nojs-fg) !important;\n caret-color: var(--nojs-fg) !important;\n letter-spacing: .25em !important;\n text-align: center !important;\n border: 1px solid var(--nojs-fg) !important;\n border-radius: 4px !important;\n width: 100% !important;\n}\n")),o.createElement(Ni,Object.assign({helperText:d,error:x,views:h},_),P&&o.createElement(an,Object.assign({htmlFor:i,color:"theme.primary",error:x},h.label),a),o.createElement(r.View,{ref:I,"data-input-otp-container":!0,position:"relative",cursor:E?"default":"text",userSelect:"none",pointerEvents:"none"},o.createElement(ha.Provider,{value:D},o.createElement(r.Horizontal,Object.assign({gap:v,width:"100%",justifyContent:"center",minHeight:"xs"===g?"32px":"sm"===g?"36px":"md"===g?"40px":"lg"===g?"48px":"56px"},h.container),D.slots.map((e,t)=>o.createElement(Ji,Object.assign({key:(i||n)+"-"+t,size:g,error:x,shape:m,views:h,variant:p,value:e.char||"",color:"theme.primary",isHovered:w,isDisabled:E,isReadOnly:y,isFocused:e.isActive,showLabel:!1,onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),justifyContent:"center",alignItems:"center",width:"100%",position:"relative",height:"xs"===g?"32px":"sm"===g?"36px":"md"===g?"40px":"lg"===g?"48px":"56px"},h.container),e.char?o.createElement(r.View,Object.assign({textAlign:"center",fontSize:"xs"===g?"14px":"sm"===g?"16px":"md"===g?"18px":"lg"===g?"20px":"24px",fontWeight:"medium"},h.text),"password"===b?"•":e.char):e.placeholderChar?o.createElement(r.View,Object.assign({textAlign:"center",fontSize:"xs"===g?"14px":"sm"===g?"16px":"md"===g?"18px":"lg"===g?"20px":"24px",color:"color.gray.400",opacity:.5},h.text),e.placeholderChar):null,e.hasFakeCaret&&o.createElement(r.View,{position:"absolute",width:"2px",height:"60%",backgroundColor:"theme.primary",animation:"blink 1s step-start infinite",style:{animationName:"blink",animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"step-start"}}))))),o.createElement(r.View,{position:"absolute",inset:0,pointerEvents:"none"},o.createElement(r.Input,Object.assign({ref:e=>R(e),"data-input-otp":!0,"data-input-otp-placeholder-shown":0===l.length||void 0,"data-input-otp-mss":O,"data-input-otp-mse":S,id:i||n,name:n,type:"password"===b?"password":"text",inputMode:"password"!==b?"numeric":void 0,pattern:"[0-9]*",maxLength:s,readOnly:y,disabled:E,placeholder:u,value:l,onChange:H,onKeyDown:W,onPaste:z,onFocus:M,onBlur:T,onClick:L,onMouseOver:()=>j(!0),onMouseLeave:()=>j(!1),autoComplete:"one-time-code","aria-label":"OTP input with "+s+" digits",style:{position:"absolute",inset:0,width:"100%",height:"100%",display:"flex",textAlign:"center",opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}},h.input))))))},pa=["children","autoFocus","initFocus","onChange"],va=t.createContext({active:!1,focusNextInput:()=>{},setInputRef:()=>{},handleSubmitEditing:()=>{},getReturnKeyType:()=>"next"}),ba=["name","type"],xa=e=>{var{name:o,type:r}=e,i=c(e,ba),n=t.useContext(va),{touched:a,errors:s,submitCount:d,values:u,setFieldTouched:h,setFieldValue:g}=l.useFormikContext(),m=e=>{"Enter"===e.key&&(e.preventDefault(),n.focusNextInput(o))},p=["text","password","email","digits"].includes(r),v=l.getIn(a,o)||d>0?l.getIn(s,o):void 0,b=l.getIn(u,o);return Object.assign({},(e=>{switch(e){case"email":return{autoCorrect:"off",inputMode:"email",autoCapitalize:"none"};case"password":return{autoCorrect:"off",secureTextEntry:!0,autoCapitalize:"none"};case"digits":return{inputMode:"tel"};case"numeric":return{inputMode:"numeric"};case"name":return{autoCorrect:"off"};default:return{}}})(r),i,{value:b,error:v,onBlur:()=>{h(o,!0)},onKeyPress:m},p?{onChangeText:e=>{g(o,e),null==i.onChangeText||i.onChangeText(e)}}:{onChange:e=>{g(o,e),null==i.onChange||i.onChange(e)}},n.active?{handleKeyPress:m}:{})},fa=["value"],wa=["value"],Ea=["visibleIcon","hiddenIcon"],ya=["isVisible","setIsVisible"],Ca=["items","placeholder","searchPlaceholder"],ja=(e,t,o)=>Math.min(Math.max(e,t),o),ka=e=>{var o,{min:r=0,max:i=100,step:n=1,value:a=0,defaultValue:l,onChange:s,onDrag:c,orientation:d="horizontal",isDisabled:u=!1,stepValues:h}=e,g=ja(null!=(o=null!=a?a:l)?o:r,r,i),[m,p]=t.useState(g),[v,b]=t.useState(!1),[x,f]=t.useState(!1),w=t.useRef(null),E=t.useRef(null),y=void 0!==a,C=y?a:m;t.useEffect(()=>{y&&p(ja(a,r,i))},[a,y,r,i]);var j=t.useCallback(e=>{var t=ja(e,r,i);y||p(t),s&&t!==C&&s(t),v&&c&&c(t)},[y,r,i,s,C,v,c]),k=t.useCallback(e=>{if(!u&&w.current){var t=w.current.getBoundingClientRect(),o=((e,t,o,r,i,n,a)=>{var l,s=r-o;if(l=ja("horizontal"===n?(e-t.left)/t.width:(t.bottom-e)/t.height,0,1),a&&a.length>0){for(var c=o+l*s,d=a[0],u=Math.abs(c-d),h=1;h<a.length;h++){var g=Math.abs(c-a[h]);g<u&&(u=g,d=a[h])}return d}var m=Math.round((o+l*s)/i)*i;return ja(m,o,r)})("touches"in e?"horizontal"===d?e.touches[0].clientX:e.touches[0].clientY:"horizontal"===d?e.clientX:e.clientY,t,r,i,n,d,h);j(o)}},[r,i,n,d,j,u,h]),I=t.useCallback(e=>{if(!u){e.preventDefault(),b(!0),k(e);var t=e=>{k(e)},o=()=>{b(!1),document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",o),document.removeEventListener("touchmove",t),document.removeEventListener("touchend",o)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",o),document.addEventListener("touchmove",t),document.addEventListener("touchend",o)}},[k,u]),O=t.useCallback(e=>{E.current&&E.current.contains(e.target)||I(e)},[I]),S=t.useCallback(e=>{if(!u){var t=C;switch(e.key){case"ArrowLeft":case"ArrowDown":t=C-n;break;case"ArrowRight":case"ArrowUp":t=C+n;break;case"Home":t=r;break;case"End":t=i;break;default:return}e.preventDefault(),j(t)}},[C,r,i,n,j,u]),z=i-r;return{currentValue:C,isDragging:v,isHovered:x,setIsHovered:f,trackRef:w,thumbRef:E,handleThumbMouseDown:I,handleTrackMouseDown:O,handleKeyDown:S,thumbPositionPercent:0===z?0:(C-r)/z*100}},Ia={xs:{height:4,width:"100%"},sm:{height:6,width:"100%"},md:{height:8,width:"100%"},lg:{height:10,width:"100%"},xl:{height:12,width:"100%"}},Oa={xs:{width:12,height:12},sm:{width:16,height:16},md:{width:20,height:20},lg:{width:24,height:24},xl:{width:28,height:28}},Sa={sharp:0,rounded:4,pillShaped:24},za=(e=>({default:{backgroundColor:"color.blueGray.200"},outline:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:"color.blueGray.300"}}))(),Ha={xs:{trackCrossAxisSize:4,thumbSize:12},sm:{trackCrossAxisSize:6,thumbSize:16},md:{trackCrossAxisSize:8,thumbSize:20},lg:{trackCrossAxisSize:10,thumbSize:24},xl:{trackCrossAxisSize:12,thumbSize:28}},Ma={horizontal:{width:"100%",minWidth:"120px",height:"auto",flexDirection:"row",paddingVertical:8},vertical:{height:"100%",minHeight:"120px",width:"auto",flexDirection:"column-reverse",paddingHorizontal:8}},Ta=["min","max","step","currentValue","stepValues","shape","size","variant","orientation","isDisabled","showValue","showTooltip","backgroundColor","label","helperText","themeMode","shadow","isDragging","isHovered","setIsHovered","trackRef","thumbRef","handleThumbMouseDown","handleTrackMouseDown","handleKeyDown","thumbPositionPercent","ariaLabel","views"],Wa=e=>{var t,i,{min:n=0,max:a=100,step:l=1,currentValue:s,stepValues:d,shape:u="rounded",size:h="md",variant:g="default",orientation:m="horizontal",isDisabled:p=!1,showValue:v=!1,showTooltip:b=!1,backgroundColor:x="theme.primary",label:f,helperText:w,themeMode:E,shadow:y={},isDragging:C,isHovered:j,setIsHovered:k,trackRef:I,thumbRef:O,handleThumbMouseDown:S,handleTrackMouseDown:z,handleKeyDown:H,thumbPositionPercent:M,ariaLabel:T="Slider",views:W={container:{},track:{},progress:{},filledTrack:{},thumb:{},label:{},valueLabel:{},stepMarks:{},tooltip:{}}}=e,R=c(e,Ta),{getColor:V,themeMode:L}=r.useTheme(),B=V(x,{themeMode:E||L}),_=V("theme.disabled",{themeMode:E||L}),P=V(za[g].backgroundColor,{themeMode:E||L}),D="vertical"===m,{trackCrossAxisSize:F,thumbSize:A}=Ha[h]||{trackCrossAxisSize:Ia[h].height,thumbSize:Oa[h].width||16},G=o.createElement(r.Vertical,Object.assign({width:"100%",gap:8},W.container,R),f&&o.createElement(r.Horizontal,{justifyContent:"space-between",alignItems:"center"},o.createElement(r.Text,Object.assign({fontSize:14,fontWeight:500},W.label),f),v&&o.createElement(r.Text,Object.assign({fontSize:14,color:"color.blueGray.500"},W.valueLabel),s)),o.createElement(r.View,Object.assign({ref:I,position:"relative",cursor:p?"not-allowed":"pointer",opacity:p?.6:1,onMouseDown:z,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1)},Ia[h],{borderRadius:Sa[u],backgroundColor:P},za[g],y,W.track),d&&d.length>0&&o.createElement(o.Fragment,null,d.map(e=>o.createElement(r.View,Object.assign({key:e,position:"absolute",top:"50%",left:(e-n)/(a-n)*100+"%",transform:"translate(-50%, -50%)",width:4,height:4,borderRadius:"50%",backgroundColor:p?_:B,zIndex:1},W.stepMarks)))),o.createElement(r.View,Object.assign({position:"absolute",top:0,left:0,height:"100%",width:M+"%",backgroundColor:p?_:B,borderRadius:Sa[u],transition:"width 0.1s ease-in-out"},W.progress,W.filledTrack)),o.createElement(r.View,Object.assign({ref:O,role:"slider",tabIndex:p?-1:0,"aria-valuemin":n,"aria-valuemax":a,"aria-valuenow":s,"aria-orientation":m,"aria-disabled":p,"aria-label":T,position:"absolute",top:"50%",left:M+"%",borderRadius:"50%",backgroundColor:"color.white",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)",border:"2px solid "+(p?_:B),transition:C?"none":"transform 0.1s ease-in-out",transform:j?"translate(-50%, -50%) scale(1.1)":"translate(-50%, -50%)",zIndex:2,onMouseDown:S,onTouchStart:S,onKeyDown:H},Oa[h],W.thumb),b&&(j||C)&&o.createElement(r.View,Object.assign({position:"absolute",bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:8,padding:"4px 8px",backgroundColor:"color.black",color:"color.white",borderRadius:4,fontSize:12,whiteSpace:"nowrap",zIndex:3},W.tooltip),o.createElement(r.Text,Object.assign({},null==(t=W.tooltip)?void 0:t.text),null==s?void 0:s.toFixed(l<1?1:0))))),w&&o.createElement(Ai,null,w)),N=o.createElement(r.Center,Object.assign({},Ma[m],{position:"relative",onMouseEnter:()=>!p&&k(!0),onMouseLeave:()=>!p&&k(!1)},R,null==W?void 0:W.container),f&&o.createElement(r.Horizontal,{justifyContent:"space-between",alignItems:"center",marginBottom:8,width:"100%"},o.createElement(r.Text,Object.assign({fontSize:14,fontWeight:500},W.label),f),v&&o.createElement(r.Text,Object.assign({fontSize:14,color:"color.blueGray.500"},W.valueLabel),s)),o.createElement(r.View,Object.assign({ref:I,position:"relative",borderRadius:F/2,backgroundColor:p?_:P,cursor:p?"not-allowed":"pointer",width:D?F+"px":"100%",height:D?"100%":F+"px",onMouseDown:z,onTouchStart:z},null==W?void 0:W.track),d&&d.length>0&&o.createElement(o.Fragment,null,d.map(e=>{var t=(e-n)/(a-n)*100;return o.createElement(r.View,Object.assign({key:e,position:"absolute",width:4,height:4,borderRadius:"50%",backgroundColor:p?_:B,zIndex:1},D?{bottom:t+"%",left:"50%",transform:"translate(-50%, 50%)"}:{left:t+"%",top:"50%",transform:"translate(-50%, -50%)"},W.stepMarks))})),o.createElement(r.View,Object.assign({position:"absolute",borderRadius:F/2,backgroundColor:p?_:B},D?{bottom:0,left:0,width:"100%",height:M+"%"}:{top:0,left:0,height:"100%",width:M+"%"},null==W?void 0:W.filledTrack,null==W?void 0:W.progress)),o.createElement(r.View,Object.assign({ref:O,role:"slider",tabIndex:p?-1:0,"aria-valuemin":n,"aria-valuemax":a,"aria-valuenow":s,"aria-orientation":m,"aria-disabled":p,"aria-label":T,position:"absolute",width:A+"px",height:A+"px",borderRadius:"50%",backgroundColor:p?_:B,border:"2px solid "+V("color.white"),boxShadow:"0 1px 3px rgba(0, 0, 0, 0.2)",cursor:p?"not-allowed":"grab",transform:D?"translateX(-50%)":"translateY(-50%)",zIndex:2,transition:C?"none":"left 0.1s, bottom 0.1s"},D?{left:"50%",bottom:M+"%"}:{top:"50%",left:M+"%"},{onMouseDown:S,onTouchStart:S,onKeyDown:H},null==W?void 0:W.thumb),b&&(j||C)&&o.createElement(r.View,Object.assign({position:"absolute",padding:"4px 8px",backgroundColor:V("color.black"),color:V("color.white"),borderRadius:"4px",fontSize:"12px",whiteSpace:"nowrap",zIndex:3},D?{left:"100%",marginLeft:"8px",bottom:"0",transform:"translateY(50%)"}:{bottom:"100%",left:"50%",marginBottom:"8px",transform:"translateX(-50%)"},null==W?void 0:W.tooltip),o.createElement(r.Text,Object.assign({},null==W||null==(i=W.tooltip)?void 0:i.text),null==s?void 0:s.toFixed(l<1?1:0))))),w&&o.createElement(Ai,{marginTop:8},w));return D||b?N:G},Ra=s.create(e=>({visible:!1,title:"",subtitle:"",variant:"info",isClosable:!1,views:{},action:()=>{},actionText:"",showIcon:!1,timeout:3e3,show:function(t,o,r,i,n,a,l,s,c){return void 0===o&&(o=""),void 0===r&&(r=""),e({visible:!0,variant:t,title:o,subtitle:r,isClosable:i,views:n,action:a,actionText:l,showIcon:s,timeout:c})},hide:()=>e({visible:!1})})),Va=(e,t,o,r)=>{Ra.getState().show(e,t,o,null==r?void 0:r.isClosable,null==r?void 0:r.views,null==r?void 0:r.action,null==r?void 0:r.actionText,null==r?void 0:r.showIcon,null==r?void 0:r.timeout)},La=()=>{Ra.getState().hide()},Ba={info:{container:{backgroundColor:"color.blue.200",border:"color.blue.400"},icon:{color:"color.blue.500",name:"InformationIcon"},content:{color:"color.blue.500"},close:{color:"color.blue.500",name:"CloseIcon"}},success:{container:{backgroundColor:"color.green.200",border:"color.green.400"},icon:{color:"color.green.500",name:"SuccessIcon"},content:{color:"color.green.500"},close:{color:"color.green.500",name:"CloseIcon"}},error:{container:{backgroundColor:"color.red.200",border:"color.red.400"},icon:{color:"color.red.500",name:"ErrrorIcon"},content:{color:"color.red.500"},close:{color:"color.red.500",name:"CloseIcon"}},warning:{container:{backgroundColor:"color.orange.200",border:"color.orange.400"},icon:{color:"color.orange.500",name:"ErrrorIcon"},content:{color:"color.orange.500"},close:{color:"color.orange.500",name:"CloseIcon"}}},_a=e=>{var i,n,{variant:a,hide:l,title:s,subtitle:c,theme:d,action:u,actionText:h,showIcon:g=!1,isClosable:m=!1,timeout:p=3e3,views:v}=e;t.useEffect(()=>{if(p&&!m){var e=setTimeout(()=>{l()},p);return()=>{clearTimeout(e)}}},[]);var b=null!=d?d:Ba,x=!(!u||!h),f={borderWidth:1,borderStyle:"solid",borderRadius:8,borderColor:""+b[a].container.border},w={info:"#3b82f6",success:"#4ade80",warning:"#f97316",error:"#ef4444"}[a],E={info:o.createElement(Ct,Object.assign({widthHeight:24,color:w},null==v?void 0:v.icon)),success:o.createElement(oo,Object.assign({widthHeight:24,color:w},null==v?void 0:v.icon)),warning:o.createElement(zt,Object.assign({widthHeight:24,color:w},null==v?void 0:v.icon)),error:o.createElement(Bt,Object.assign({widthHeight:24,color:w},null==v?void 0:v.icon))}[a],y=g&&E;return o.createElement(r.Horizontal,Object.assign({role:"messageContent",gap:16,width:400,flexWrap:"nowrap",position:"relative",alignItems:"center",padding:"14px 24px 14px 14px",color:""+b[a].content.color,backgroundColor:""+b[a].container.backgroundColor,onClick:m?()=>{}:()=>{l()}},f,null==v?void 0:v.container),y&&E,o.createElement(r.Vertical,{gap:8,width:"100%"},o.createElement(T,Object.assign({size:"md",weight:"semiBold"},null==v?void 0:v.title),s),c&&o.createElement(T,Object.assign({size:"sm"},null==v?void 0:v.subtitle),c)),x&&o.createElement(T,Object.assign({marginRight:10,onClick:u,padding:"6px 10px",whiteSpace:"nowrap"},f,null==v?void 0:v.actionText),h),m&&o.createElement(r.View,Object.assign({position:"absolute",zIndex:1e4,right:8,top:6,onClick:()=>{l()}},null==v||null==(i=v.closingIcon)?void 0:i.container),o.createElement(vt,Object.assign({widthHeight:18,color:w},null==v||null==(n=v.closingIcon)?void 0:n.icon))))},Pa=e=>{var{accept:t,isLoading:i=!1,progress:n=0,icon:a,text:l,previewUrl:s,thumbnailUrl:c,errorMessage:d,fileInputRef:u,videoRef:h,selectedFile:g,handleFileChange:m,handleClick:p,containerProps:v,errorMessageProps:b,progressProps:x,videoProps:f,imageProps:w,iconProps:E,textProps:y,fileType:C,previewUrl:j,renderError:k=(e=>{var{errorMessage:t,errorMessageProps:i}=e;return o.createElement(r.Text,Object.assign({color:"red",fontSize:12,marginTop:8},i,null==M?void 0:M.text),t)}),renderText:I=(e=>{var{text:t,textProps:i}=e;return o.createElement(r.Text,Object.assign({marginTop:8},i,null==M?void 0:M.text),t)}),renderFile:O=(e=>{var{selectedFile:t,textProps:i}=e;return t?o.createElement(r.Center,Object.assign({marginTop:8,gap:10,flexDirection:"column"},null==M?void 0:M.container),o.createElement(r.Text,Object.assign({maxLines:2},i,null==M?void 0:M.text),t.name),o.createElement(r.Text,Object.assign({},i,null==M?void 0:M.text),"(",Math.round(t.size/1024)," KB)")):null}),renderVideo:S=(e=>{var{selectedFile:t,videoRef:i,videoProps:n}=e;return o.createElement(r.View,Object.assign({width:"100%",height:"100%",position:"relative"},null==M?void 0:M.view),o.createElement(r.View,Object.assign({as:"video",width:"100%",height:"100%",src:t?URL.createObjectURL(t):void 0,style:{objectFit:"cover"},ref:i},n,null==M?void 0:M.view)))}),renderImage:z=(e=>{var{previewUrl:t,imageProps:i}=e;return console.log("Rendering image with URL:",t),o.createElement(r.View,Object.assign({width:"100%",height:"100%",position:"relative"},null==M?void 0:M.view),o.createElement(r.Image,Object.assign({src:t,alt:"Preview",width:"100%",height:"100%",objectFit:"cover",style:{maxHeight:"100%",maxWidth:"100%"}},i,null==M?void 0:M.image)))}),renderProgress:H=(e=>{var{progress:t,progressProps:i}=e;return o.createElement(r.Horizontal,Object.assign({gap:8,alignItems:"center"},i,null==M?void 0:M.horizontal),o.createElement(r.View,Object.assign({height:4,backgroundColor:"rgba(0,0,0,0.1)",width:"100%",borderRadius:2},null==M?void 0:M.view),o.createElement(r.View,Object.assign({height:4,width:t+"%",borderRadius:2,backgroundColor:"#000"},null==M?void 0:M.view))),o.createElement(r.Text,Object.assign({fontSize:12},null==M?void 0:M.text),t,"%"))}),views:M={}}=e,T=j||s;return o.createElement(r.Center,Object.assign({onClick:p,cursor:"pointer",border:"1px solid rgba(0,0,0,0.1)",borderRadius:8,padding:16,flexDirection:"column",overflow:"hidden",position:"relative",height:g&&100===n?"200px":"auto"},v,null==M?void 0:M.container),100===n&&"image"===C&&T&&z({previewUrl:T,imageProps:w}),100===n&&"video"===C&&c&&S({selectedFile:g,thumbnailUrl:c,videoRef:h,videoProps:f,imageProps:w}),100===n&&"file"===C&&g&&O({selectedFile:g,textProps:y}),n<100&&(a||o.createElement(uo,Object.assign({widthHeight:32},E))),!g&&l&&I({text:l,textProps:y}),i&&H({progress:n,progressProps:x}),d&&k({errorMessage:d,errorMessageProps:b}),o.createElement(r.View,Object.assign({as:"input",type:"file",ref:u,onChange:m,accept:t,style:{display:"none"}},null==M?void 0:M.view)))},Da=["accept","icon","text","maxSize","onFileSelect","validateFile","isLoading","progress","fileType"],Fa=s.create(e=>({modals:[],onHide:e=>e,onShow:(e,t)=>({name:e,props:t}),show:function(t,o,r){void 0===o&&(o={}),void 0===r&&(r={}),e(e=>Object.assign({},e,{modals:[...e.modals,{name:t,props:Object.assign({},o,{isVisible:!0}),overlayProps:r}]}))},hide:t=>{e(e=>t?Object.assign({},e,{modals:e.modals.filter(e=>e.name!==t)}):{modals:[]})},setOnHide:t=>{e(e=>Object.assign({},e,{onHide:t}))},setOnShow:t=>{e(e=>Object.assign({},e,{onShow:t}))}})),Aa=e=>{console.log("hideModal",e),Fa.getState().onHide(e),Fa.getState().hide("string"==typeof e?e:void 0)},Ga={sharp:{borderRadius:0},rounded:{borderRadius:"8px"}},Na={center:{justifyContent:"center",alignItems:"center"},top:{justifyContent:"center",alignItems:"flex-start"},right:{justifyContent:"flex-end",alignItems:"center"},bottom:{justifyContent:"center",alignItems:"flex-end"},left:{justifyContent:"flex-start",alignItems:"center"}},Ua={xs:12,sm:16,md:20,lg:24,xl:28},Ya=["children","blur","isOpen","isClosePrevented","onClose","position","views"],Ka=["children","shadow","isFullScreen","shape","views","isOpen"],Xa=["children","buttonColor","iconSize","buttonPosition","views"],qa=["children","views"],Za=["children","views"],Ja=e=>{var{children:t,blur:i,isOpen:n=!1,isClosePrevented:a=!1,onClose:l=(()=>{}),position:s="center",views:d}=e,u=c(e,Ya),h=()=>{a||l()};return o.createElement(r.Center,Object.assign({position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:h,visibility:n?"visible":"hidden",transition:"all 0.3s ease"},null==d?void 0:d.container),o.createElement(r.View,Object.assign({position:"absolute",top:0,left:0,zIndex:1e3,width:"100vw",height:"100vh",display:"flex",backgroundColor:"color.blackAlpha.500",backdropFilter:i?"blur("+i+"px)":void 0,transition:"all 0.3s ease",onClick:h},Na[s],u,null==d?void 0:d.view),t))},Qa=e=>{var{children:t}=e;return o.createElement(o.Fragment,null,t)};Qa.Overlay=Ja,Qa.Container=e=>{var{children:t,shadow:i,isFullScreen:n=!1,shape:a="rounded",views:l}=e,s=c(e,Ka),d=void 0!==typeof document?{boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.15)"}:{elevation:5,shadowColor:"rgba(0, 0, 0, 0.15)",shadowOffset:{width:0,height:4},shadowOpacity:1,shadowRadius:16};return o.createElement(r.Vertical,Object.assign({cursor:"default",backgroundColor:"color.white",width:n?"100%":600,height:n?"100%":"fit-content",onClick:e=>{e&&e.stopPropagation&&e.stopPropagation()},transition:"all 0.3s ease"},i||d,Ga[a],s,null==l?void 0:l.container),t)},Qa.Header=e=>{var{children:t,buttonColor:i="theme.primary",iconSize:n="md",buttonPosition:a="right",views:l}=e,s=c(e,Xa),d=o.createElement(r.View,{onClick:s.onClose?s.onClose:Aa},o.createElement(vt,{widthHeight:Ua[n],color:i}));return o.createElement(r.Horizontal,Object.assign({justifyContent:"none"===a?"center":"space-between",alignItems:"center",paddingVertical:16,paddingHorizontal:24,borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200"},s,null==l?void 0:l.header),"left"===a&&d,t,"right"===a&&d)},Qa.Body=e=>{var{children:t,views:i}=e,n=c(e,qa);return o.createElement(r.View,Object.assign({paddingVertical:16,paddingHorizontal:24,fontSize:"16px",fontWeight:"400",lineHeight:"24px",color:"color.gray.700"},n,null==i?void 0:i.view),t)},Qa.Footer=e=>{var{children:t,views:i}=e,n=c(e,Za);return o.createElement(r.Horizontal,Object.assign({marginTop:"auto",alignItems:"center",justifyContent:"flex-end",paddingVertical:16,paddingHorizontal:24,borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200",gap:12},n,null==i?void 0:i.container),t)},Qa.Layout=e=>{var{modals:r,onShow:i,onHide:n}=e,a=Fa(e=>e.modals);return i&&Fa.getState().setOnShow(i),n&&Fa.getState().setOnHide(n),0===a.length?null:o.createElement(t.Fragment,null,a.map((e,t)=>{var i=r[e.name];return i?o.createElement(Ja,Object.assign({key:t,isOpen:e.props.isVisible,onClose:()=>Aa(e.name),blur:5},e.overlayProps,{style:{zIndex:1e3+t}}),o.createElement(i,Object.assign({},e.props))):(console.error(e.name+" modal doesn't exist"),null)}))};var $a={sm:{padding:"8px 12px",fontSize:"14px",fontWeight:"500"},md:{padding:"12px 16px",fontSize:"16px",fontWeight:"500"},lg:{padding:"16px 20px",fontSize:"18px",fontWeight:"500"}},el={default:{backgroundColor:"transparent",color:"color.gray.800",transition:"all 0.2s ease"},filled:{backgroundColor:"color.gray.100",color:"color.gray.800",transition:"all 0.2s ease"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800",transition:"all 0.2s ease"}},tl={horizontal:{flexDirection:"row",gap:"8px"},vertical:{flexDirection:"column",gap:"4px"}},ol={active:{backgroundColor:"color.blue.50",color:"color.blue.700",fontWeight:"600",borderLeftWidth:3,borderLeftStyle:"solid",borderLeftColor:"color.blue.600"},hover:{backgroundColor:"color.gray.100",transition:"background-color 0.2s ease"},disabled:{opacity:.6,cursor:"not-allowed"}},rl=["href","children","views"],il=t.createContext({activeItemId:null,setActiveItemId:()=>{},expandedItemIds:[],toggleExpandedItem:()=>{},isItemExpanded:()=>!1,orientation:"vertical",size:"md",variant:"default"}),nl=e=>{var{children:t,value:r}=e;return o.createElement(il.Provider,{value:r},t)},al=()=>{var e=t.useContext(il);if(!e)throw new Error("useNavigationMenuContext must be used within a NavigationMenuProvider");return e},ll=e=>{var{children:t,views:i}=e,{orientation:n}=al();return o.createElement("horizontal"===n?r.Horizontal:r.Vertical,Object.assign({width:"100%"},tl[n],{transition:"all 0.2s ease",borderRadius:"4px"},null==i?void 0:i.container),t)},sl=t.createContext({itemValue:null,isDisabled:!1}),cl=e=>{var t,{item:i,value:n,isDisabled:a=!1,children:l,views:s}=e,{activeItemId:c,setActiveItemId:d,orientation:u,size:h,variant:g,onItemActivate:m}=al(),p=(null==i?void 0:i.id)||n,v=c===p,b=(null==i?void 0:i.items)&&i.items.length>0,x=(null==i?void 0:i.disabled)||a,f="horizontal"===u?r.Horizontal:r.Vertical;return l?o.createElement(sl.Provider,{value:{itemValue:p||null,isDisabled:x}},o.createElement(r.View,Object.assign({width:"100%",cursor:x?"not-allowed":"pointer",opacity:x?.6:1,borderRadius:"4px",transition:"all 0.2s ease"},$a[h],el[g],v?ol.active:{},{_hover:x?{}:ol.hover},null==s?void 0:s.item),l)):b&&i?o.createElement(f,Object.assign({width:"100%",flexDirection:"column",position:"relative"},null==s?void 0:s.item),o.createElement(dl,{itemId:i.id,disabled:i.disabled,views:s},i.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==s?void 0:s.icon),i.icon),i.label),o.createElement(ul,{itemId:i.id},o.createElement(ll,null,null==(t=i.items)?void 0:t.map(e=>o.createElement(cl,{key:e.id,item:e}))))):i?o.createElement(r.View,Object.assign({as:i.href?"a":"div",to:i.href,onClick:()=>{x||p&&(d(p),m&&m(p))},cursor:i.disabled?"not-allowed":"pointer",opacity:i.disabled?.6:1,width:"100%",display:"flex",alignItems:"center",borderRadius:"4px",transition:"all 0.2s ease",gap:"8px"},$a[h],el[g],v?ol.active:{},{_hover:i.disabled?{}:ol.hover},null==s?void 0:s.item),i.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==s?void 0:s.icon),i.icon),i.label):null},dl=e=>{var{children:t,itemId:i,disabled:n,views:a}=e,{activeItemId:l,toggleExpandedItem:s,isItemExpanded:c,size:d,variant:u}=al(),h=l===i,g=c(i);return o.createElement(r.View,Object.assign({onClick:e=>{e.preventDefault(),n||s(i)},cursor:n?"not-allowed":"pointer",opacity:n?.5:1,width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:4,transition:"background-color 0.2s ease"},$a[d],el[u],h?ol.active:{},{_hover:n?{}:ol.hover},null==a?void 0:a.trigger),o.createElement(r.View,{display:"flex",alignItems:"center"},t),o.createElement(r.View,Object.assign({transition:"transform 0.2s ease",transform:g?"rotate(180deg)":"rotate(0deg)"},null==a?void 0:a.indicator),o.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z",fill:"currentColor"}))))},ul=e=>{var{children:t,itemId:i,views:n}=e,{isItemExpanded:a,orientation:l}=al();return a(i)?o.createElement(r.View,Object.assign({paddingLeft:"vertical"===l?16:0,paddingTop:"horizontal"===l?8:0,overflow:"hidden",width:"100%",position:"horizontal"===l?"absolute":"relative",backgroundColor:"horizontal"===l?"white":"transparent",boxShadow:"horizontal"===l?"0 4px 6px rgba(0, 0, 0, 0.1)":"none",borderRadius:"horizontal"===l?"4px":"0",zIndex:"horizontal"===l?10:1},null==n?void 0:n.container),t):null},hl=e=>{var{items:t,orientation:i,views:n}=e;return t&&0!==t.length?o.createElement("horizontal"===i?r.Horizontal:r.Vertical,Object.assign({width:"100%"},tl[i],null==n?void 0:n.container),o.createElement(ll,{views:n},t.map(e=>o.createElement(cl,{key:e.id,item:e,views:n})))):null},gl=["items","children","orientation","size","variant","defaultActiveItemId","defaultExpandedItemIds","onItemActivate","views"],ml=e=>{var{items:r,children:i,orientation:n="vertical",size:a="md",variant:l="default",defaultActiveItemId:s=null,defaultExpandedItemIds:d=[],onItemActivate:u,views:h}=e,g=c(e,gl),{activeItemId:m,setActiveItemId:p,expandedItemIds:v,toggleExpandedItem:b,isItemExpanded:x}=function(e,o){void 0===e&&(e=null),void 0===o&&(o=[]);var[r,i]=t.useState(e),[n,a]=t.useState(o);return{activeItemId:r,setActiveItemId:i,expandedItemIds:n,toggleExpandedItem:e=>{a(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},isItemExpanded:e=>n.includes(e)}}(s,d);return o.createElement(nl,{value:{activeItemId:m,setActiveItemId:p,expandedItemIds:v,toggleExpandedItem:b,isItemExpanded:x,orientation:n,size:a,variant:l,onItemActivate:u}},r?o.createElement(hl,Object.assign({items:r,orientation:n,size:a,variant:l,views:h},g)):i)};ml.List=ll,ml.Item=cl,ml.Trigger=dl,ml.Content=ul,ml.Link=e=>{var{href:i,children:n,views:a}=e,l=c(e,rl),{itemValue:s,isDisabled:d}=(()=>{var e=t.useContext(sl);if(!e)throw new Error("useNavigationMenuItemContext must be used within a NavigationMenuItem");return e})(),{activeItemId:u,setActiveItemId:h,onItemActivate:g}=al(),m=u===s;return o.createElement(r.View,Object.assign({as:"a",href:d?void 0:i,onClick:e=>{d?e.preventDefault():(s&&(h(s),g&&g(s)),l.onClick&&l.onClick(e))},cursor:d?"not-allowed":"pointer",opacity:d?.5:1,width:"100%",display:"flex",alignItems:"center","aria-current":m?"page":void 0,"aria-disabled":d,"data-active":m?"":void 0,"data-disabled":d?"":void 0},m?{fontWeight:"bold"}:{},null==a?void 0:a.container,l),n)};var pl={},vl=t.createContext({views:pl,onRowClick:()=>{}}),bl=e=>{var{children:t,views:r=pl,onRowClick:i}=e;return o.createElement(vl.Provider,{value:{views:r,onRowClick:i}},t)},xl=()=>t.useContext(vl),fl={table:{width:"100%",borderRadius:"8px",overflow:"hidden",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)",border:"1px solid",borderColor:"color.gray.200",transition:"all 0.2s ease"},thead:{backgroundColor:"color.gray.50",borderBottom:"1px solid",borderBottomColor:"color.gray.200"},th:{padding:"12px 16px",fontWeight:"600",fontSize:"14px",color:"color.gray.700",textAlign:"left"},td:{padding:"12px 16px",fontSize:"14px",borderBottom:"1px solid",borderBottomColor:"color.gray.100"},tr:{transition:"background-color 0.2s ease",_hover:{backgroundColor:"color.gray.50"}},tfoot:{backgroundColor:"color.gray.50",fontWeight:"600",borderTop:"2px solid",borderTopColor:"color.gray.200"},caption:{margin:"8px 0",color:"color.gray.600",fontSize:"14px",fontStyle:"italic"}},wl=e=>{var{views:t}=xl();return o.createElement(r.Element,Object.assign({as:"table",borderCollapse:"collapse"},fl.table,null==t?void 0:t.table,e))},El=e=>{var{views:t}=xl();return o.createElement(r.Element,Object.assign({as:"thead",textAlign:"left"},fl.thead,null==t?void 0:t.thead,e))},yl=e=>{var{views:t}=xl();return o.createElement(r.Element,Object.assign({as:"th",whiteSpace:"nowrap"},fl.th,null==t?void 0:t.th,e))},Cl=e=>{var{views:t,onRowClick:i}=xl();return o.createElement(r.Element,Object.assign({as:"tr"},fl.tr,null==t?void 0:t.tr,{onClick:i},e))},jl=e=>{var{views:t}=xl();return o.createElement(r.Element,Object.assign({as:"td",whiteSpace:"nowrap",fontWeight:e.isFirstColumn?"500":"400"},fl.td,null==t?void 0:t.td,e))},kl=e=>{var{views:t}=xl();return o.createElement(r.Element,Object.assign({as:"tbody"},fl.tbody,null==t?void 0:t.tbody,e))},Il=e=>{var{views:t}=xl();return o.createElement(r.Element,Object.assign({as:"tfoot"},fl.tfoot,null==t?void 0:t.tfoot,e))},Ol=e=>{var{views:t}=xl();return o.createElement(r.Element,Object.assign({as:"caption"},fl.caption,null==t?void 0:t.caption,e))},Sl=e=>{var{children:t,views:r,onClick:i}=e;return o.createElement(bl,{views:r,onRowClick:i},t)};Sl.Head=El,Sl.HeadCell=yl,Sl.Body=kl,Sl.Row=Cl,Sl.Cell=jl,Sl.Footer=Il,Sl.Caption=Ol,Sl.Container=wl,Sl.Template=e=>{var{data:t,columns:r,footer:i,caption:n}=e;return o.createElement(wl,{role:"Table"},n&&o.createElement(Ol,null,n),o.createElement(El,null,o.createElement(Cl,null,r.map(e=>o.createElement(yl,{key:e.field},e.title)))),o.createElement(kl,null,t.map((e,t)=>o.createElement(Cl,{key:t},r.map((t,r)=>o.createElement(jl,{key:t.field,isFirstColumn:0===r},e[t.field]))))),i&&o.createElement(Il,null,o.createElement(Cl,null,i.map((e,t)=>o.createElement(jl,Object.assign({key:t},e.props),e.value)))))};var zl=e=>{var{tab:t,isActive:i,onClick:n,iconPosition:a="left",tabStyles:l,textStyles:s}=e;return o.createElement(r.Element,Object.assign({as:"div",role:"tab","aria-selected":i,tabIndex:i?0:-1},{display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 16px",cursor:"pointer",borderTopLeftRadius:"4px",borderTopRightRadius:"4px",borderBottomLeftRadius:0,borderBottomRightRadius:0,borderWidth:"1px",borderStyle:"solid",borderColor:i?"theme.primary":"transparent",borderBottomColor:i?"transparent":"color.gray.200",backgroundColor:i?"color.white":"transparent",color:i?"theme.primary":"color.gray.600",fontWeight:"normal",position:"relative",on:{hover:{color:"theme.primary"}}},l,{flexDirection:(()=>{switch(a){case"top":return"column";case"bottom":return"column-reverse";case"right":return"row-reverse";case"left":default:return"row"}})(),gap:["top","bottom"].includes(a)?"4px":"8px",onClick:n,"data-state":i?"active":"inactive"}),t.icon&&o.createElement(r.Element,null,t.icon),o.createElement(r.Text,Object.assign({},s),t.title))},Hl=e=>{var{tabs:t=[],activeTab:i,handleTabClick:n,views:a={},renderTab:l,renderContent:s,iconPosition:c="left"}=e;return i?o.createElement(r.Vertical,Object.assign({width:"100%",height:"100%"},a.container),o.createElement(r.Horizontal,Object.assign({},a.headerTabs),t.map(e=>{var t=e.title===i.title,r=()=>n(e);return l?l(e,t,r):o.createElement(zl,{key:e.title,tab:e,isActive:t,onClick:r,iconPosition:c,tabStyles:Object.assign({},a.tab,t?a.activeTab:{}),textStyles:Object.assign({},a.title,t?a.activeText:{})})})),o.createElement(r.View,Object.assign({width:"100%",height:"100%"},a.content),s?s(i):i.content)):null},Ml=o.memo(e=>{var{tabs:r,views:i,initialTabValue:n,onTabChange:a,renderTab:l,renderContent:s,iconPosition:c="left"}=e,{activeTab:d,setActiveTab:u}=((e,o)=>{var r=()=>{if(e&&0!==e.length){if(void 0!==o){var t=e.find(e=>e.title===o);if(t)return t}return e[0]}},[i,n]=t.useState(r);return t.useEffect(()=>{var t=r(),a=i&&e.some(e=>e.title===i.title);t&&(!a||void 0!==o&&(null==i?void 0:i.title)!==o)?n(t):!t&&i&&n(void 0)},[e,o]),{activeTab:i,setActiveTab:n}})(r,n);return o.createElement(Hl,{tabs:r,views:i,activeTab:d,handleTabClick:e=>{(null==d?void 0:d.title)!==e.title&&(u(e),a&&a(e))},renderTab:l,renderContent:s,iconPosition:c})}),Tl={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48,"3xl":56,"4xl":64,"5xl":72,"6xl":80},Wl={xs:24,sm:28,md:32,lg:64,xl:88},Rl={underline:e=>({textDecoration:"underline",textDecorationColor:e,textDecorationThickness:"4px",textUnderlineOffset:"4px"}),background:e=>({backgroundColor:e,color:"color.white",padding:"0 8px",borderRadius:"4px"}),gradient:(e,t)=>({background:"linear-gradient(135deg, "+e+", "+(t||e)+")",webkitBackgroundClip:"text",webkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent",display:"inline-block"}),outline:e=>({webkitTextStroke:"1px "+e,webkitTextFillColor:"transparent",color:"transparent",textShadow:"none"}),glow:e=>({color:e,textShadow:"0 0 10px "+e+"80, 0 0 20px "+e+"40, 0 0 30px "+e+"20"})},Vl=["children","highlightText","highlightStyle","highlightColor","highlightSecondaryColor","animation","size","centered","views"],Ll=e=>{var{children:i,highlightText:n,highlightStyle:a="background",highlightColor:l="theme.primary",highlightSecondaryColor:s,animation:d="none",size:u="xl",centered:h=!1,views:g}=e,m=c(e,Vl),{ref:p,inView:v}=r.useInView(),{getColor:b,themeMode:x}=r.useTheme(),f=m.themeMode||x,w=b(l,{themeMode:f}),E=s?b(s,{themeMode:f}):void 0,{displayText:y,getAnimation:C,currentHighlightText:j,alternatingContent:k}=(e=>{var{animation:o="none",animationDirection:r="left",animationDuration:i="1s",animationDelay:n="0s",children:a,_isInView:l=!1,alternateHighlightText:s=[],alternateAnimation:c=!1,alternateDuration:d=3e3,highlightText:u}=e,[h,g]=t.useState(""),[m,p]=t.useState(u),[v,b]=t.useState(a);return t.useEffect(()=>{if(p(u),!c||0===s.length||!l)return()=>{};if("string"!=typeof a)return()=>{};var e=a,t=0,o=t=>{if(u&&"string"==typeof u){var o=new RegExp(u,"gi"),r=e.replace(o,s[t]);b(r)}};o(t);var r=setInterval(()=>{o(t=(t+1)%s.length)},d);return()=>clearInterval(r)},[c,s,d,u,a,l]),t.useEffect(()=>{if("typewriter"===o&&"string"==typeof a&&l){var e=a,t=0;g("");var r=setInterval(()=>{t<=e.length?(g(e.substring(0,t)),t++):clearInterval(r)},100);return()=>clearInterval(r)}return"typewriter"!==o||l||g(""),()=>{}},[o,a,l]),{displayText:h,getAnimation:()=>{if("typewriter"!==o)switch(o){case"fadeIn":return{from:{opacity:0},to:{opacity:1},duration:i,delay:n,direction:"alternate"};case"slideIn":switch(r){case"left":return{from:{transform:"translateX(-100%)"},to:{transform:"translateX(0)"},duration:i,delay:n,direction:"alternate"};case"right":return{from:{transform:"translateX(100%)"},to:{transform:"translateX(0)"},duration:i,delay:n,direction:"alternate"};case"top":return{from:{transform:"translateY(-100%)"},to:{transform:"translateY(0)"},duration:i,delay:n,direction:"alternate"};case"bottom":return{from:{transform:"translateY(100%)"},to:{transform:"translateY(0)"},duration:i,delay:n,direction:"alternate"};default:return{from:{transform:"translateX(-100%)"},to:{transform:"translateX(0)"},duration:i,delay:n,direction:"alternate"}}case"bounce":return{from:{transform:"translateY(0)"},"20%":{transform:"translateY(-30px)"},"40%":{transform:"translateY(0)"},"60%":{transform:"translateY(-15px)"},"80%":{transform:"translateY(0)"},to:{transform:"translateY(0)"},duration:i,delay:n,iterationCount:"1"};case"highlight":return{from:{backgroundSize:"0 100%"},to:{backgroundSize:"100% 100%"},duration:i,delay:n};case"reveal":return{from:{clipPath:"polygon(0 0, 0 0, 0 100%, 0% 100%)"},to:{clipPath:"polygon(0 0, 100% 0, 100% 100%, 0 100%)"},duration:i,delay:n};case"none":default:return}},currentHighlightText:m,alternatingContent:v}})(Object.assign({children:i,highlightText:n,highlightStyle:a,highlightColor:w,animation:d,_isInView:v},m)),I=v&&"typewriter"!==d?C():void 0,O=Rl[a](w,E),S=Tl[u],z=Wl[u],H="typewriter"===d?y:m.alternateAnimation&&"string"==typeof k?k:i;if("string"==typeof i&&j){var M=i;if("string"==typeof j){var T=new RegExp("("+j+")","gi");if(T.test(M)){T.lastIndex=0;for(var W,R=[],V=0;null!==(W=T.exec(M));)W.index>V&&R.push(M.substring(V,W.index)),R.push({highlight:!0,text:W[0]}),V=W.index+W[0].length;return V<M.length&&R.push(M.substring(V)),o.createElement(r.Element,Object.assign({ref:p,as:"h1",fontSize:S,lineHeight:z+"px",fontWeight:"bold",textAlign:h?"center":"left",animate:I},m,null==g?void 0:g.container),R.map((e,t)=>o.createElement(o.Fragment,{key:t},"string"==typeof e?e:o.createElement(r.Text,Object.assign({as:"span",display:"inline"},O,null==g?void 0:g.highlight),e.text))))}}if(Array.isArray(j)){var L=new RegExp("("+j.join("|")+")","gi");if(L.test(M)){L.lastIndex=0;for(var B,_=[],P=0;null!==(B=L.exec(M));)B.index>P&&_.push(M.substring(P,B.index)),_.push({highlight:!0,text:B[0]}),P=B.index+B[0].length;return P<M.length&&_.push(M.substring(P)),o.createElement(r.Element,Object.assign({ref:p,as:"h1",fontSize:S,lineHeight:z+"px",fontWeight:"bold",textAlign:h?"center":"left",animate:I},m,null==g?void 0:g.container),_.map((e,t)=>o.createElement(o.Fragment,{key:t},"string"==typeof e?e:o.createElement(r.Text,Object.assign({as:"span",display:"inline"},O,null==g?void 0:g.highlight),e.text))))}}}return o.createElement(r.Element,Object.assign({ref:p,as:"h1",fontSize:S,lineHeight:z+"px",fontWeight:"bold",textAlign:h?"center":"left",animate:I},m,null==g?void 0:g.container),H)},Bl=["children","shape","variant","isHovered","setIsHovered","isDisabled","isToggle","setIsToggled","onToggle","views"],_l=e=>{var{children:t,shape:i="rounded",variant:n="ghost",isHovered:a,setIsHovered:l,isDisabled:s,isToggle:d,setIsToggled:u,onToggle:h,views:g}=e,m=c(e,Bl),p=s?"theme.disabled":"color.trueGray.400",v=!(!d&&!a);return o.createElement(r.Center,Object.assign({role:"Toggle",padding:"pillShaped"===i?"10px 12px":"8px",width:"fit-content",color:v?"color.white":p,backgroundColor:v?p:"transparent",onMouseEnter:()=>l(!a),onMouseLeave:()=>l(!1),cursor:s?"not-allowed":"pointer",borderRadius:"pillShaped"===i?"50px":"8px",onClick:()=>{s||u(e=>{var t=!e;return h&&h(t),t})}},{outline:{borderWidth:1,borderStyle:"solid",borderColor:"color.trueGray.400"},link:{borderWidth:1,borderStyle:"solid",borderColor:v?p:"transparent",textDecoration:"underline"},ghost:{}}[n],m,null==g?void 0:g.container),t)},Pl=["children","shape","variant","isDisabled","isToggled","onToggle"],Dl=e=>{var{children:r,shape:i,variant:n,isDisabled:a,isToggled:l=!1,onToggle:s}=e,d=c(e,Pl),{isHovered:u,setIsHovered:h,isToggle:g,setIsToggled:m}=(e=>{var[o,r]=t.useState(!1),[i,n]=t.useState(e);return{isHovered:o,setIsHovered:r,isToggle:i,setIsToggled:n}})(l);return t.useEffect(()=>{m(l)},[l]),o.createElement(_l,Object.assign({shape:i,variant:n,isDisabled:a,isHovered:u,setIsHovered:h,isToggle:g,setIsToggled:m,onToggle:s},d),r)},Fl=e=>{var{items:i,onToggleChange:n,activeToggles:a,setActiveToggles:l,shape:s="rounded",variant:c="ghost",views:d}=e,u=t.useCallback((e,t)=>{l(o=>{var r;return r=t?o.includes(e)?o:[...o,e]:o.filter(t=>t!==e),null==n||n(r),r})},[n,l]);return o.createElement(r.Horizontal,Object.assign({role:"ToggleGroup",display:"flex",gap:5},null==d?void 0:d.container),i.map(e=>o.createElement(Dl,{role:"toggle-"+e.id,key:e.id,shape:s,variant:c,isToggled:a.includes(e.id)||e.isActive,onToggle:t=>u(e.id,t),isDisabled:e.isDisabled,views:null==d?void 0:d.toggle},e.value)))},Al=e=>{var{items:t,renderItem:i,containerProps:n,itemProps:a,draggedIndex:l,itemRefs:s,handleDragStart:c,views:d}=e;return o.createElement(r.View,Object.assign({overflow:"hidden",position:"relative"},n,null==d?void 0:d.container),t.map((e,t)=>o.createElement(r.View,Object.assign({key:t,ref:e=>s.current[t]=e,onMouseDown:e=>c(e,t),onTouchStart:e=>c(e,t),position:"relative",cursor:"grab",transition:"transform 0.2s",backgroundColor:l===t?"color.gray.100":"transparent"},a,null==d?void 0:d.item),i?i(e,t):e)))},Gl=e=>{var{items:r,draggedIndex:i,itemRefs:n,handleDragStart:a}=(e=>{var{items:o,onChange:r}=e,[i,n]=t.useState(o),[a,l]=t.useState(null),[s,c]=t.useState(null),d=t.useRef({x:0,y:0}),u=t.useRef([]),h=t.useCallback((e,t)=>{e.preventDefault(),document.body.style.cursor="grabbing",d.current={x:"touches"in e?e.touches[0].clientX:e.clientX,y:"touches"in e?e.touches[0].clientY:e.clientY},c(t),l(i[t])},[i]),g=t.useCallback(e=>{if(null!==s){var t="touches"in e?e.touches[0].clientX:e.clientX,o="touches"in e?e.touches[0].clientY:e.clientY,a=u.current[s];if(a){a.style.transform="translate("+(t-d.current.x)+"px, "+(o-d.current.y)+"px)",a.style.zIndex="1000";var l=u.current.findIndex((e,t)=>{if(!e||t===s)return!1;var r=e.getBoundingClientRect();return o>=r.top&&o<=r.bottom});if(-1!==l&&l!==s){var h=[...i],[g]=h.splice(s,1);h.splice(l,0,g),n(h),c(l),null==r||r(h),d.current={x:t,y:o}}}}},[s,i,r]),m=t.useCallback(()=>{document.body.style.cursor="",u.current.forEach(e=>{e&&(e.style.transform="",e.style.zIndex="")}),c(null),l(null)},[s]);return t.useEffect(()=>(null!==s&&(window.addEventListener("mousemove",g),window.addEventListener("touchmove",g),window.addEventListener("mouseup",m),window.addEventListener("touchend",m)),()=>{window.removeEventListener("mousemove",g),window.removeEventListener("touchmove",g),window.removeEventListener("mouseup",m),window.removeEventListener("touchend",m)}),[s,g,m]),{items:i,draggedItem:a,draggedIndex:s,itemRefs:u,handleDragStart:h}})(e);return o.createElement(Al,Object.assign({},e,{items:r,draggedIndex:i,itemRefs:n,handleDragStart:a}))},Nl=Gl,Ul={sm:{padding:"6px 8px",fontSize:"14px",minWidth:"160px"},md:{padding:"8px 12px",fontSize:"16px",minWidth:"180px"},lg:{padding:"10px 16px",fontSize:"18px",minWidth:"200px"}},Yl={default:{backgroundColor:"color.white",color:"color.gray.800"},filled:{backgroundColor:"color.gray.100",color:"color.gray.800"},outline:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800"}},Kl={hover:{backgroundColor:"color.gray.100"},active:{backgroundColor:"color.gray.200"},disabled:{opacity:.5,cursor:"not-allowed"}},Xl=["children","views"],ql=["items","side","align","views"],Zl=["item","views"],Jl=["views"],Ql=["trigger","items","side","align","views","themeMode"],$l=t.createContext({isOpen:!1,setIsOpen:()=>{},activeSubmenuId:null,setActiveSubmenuId:()=>{},size:"md",variant:"default"}),es=e=>{var{children:t,value:r}=e;return o.createElement($l.Provider,{value:r},t)},ts=()=>{var e=t.useContext($l);if(!e)throw new Error("useDropdownMenuContext must be used within a DropdownMenuProvider");return e},os=e=>{var{children:t,views:i}=e,n=c(e,Xl),{isOpen:a,setIsOpen:l}=ts();return o.createElement(r.View,Object.assign({id:"dropdown-trigger",onClick:e=>{e.stopPropagation(),l(!a)},cursor:"pointer",position:"relative",display:"inline-block"},null==i?void 0:i.container,n),t)},rs=e=>{var{items:t,side:i="bottom",align:n="start",views:a}=e,l=c(e,ql),{isOpen:s,variant:d}=ts();return s?o.createElement(r.View,Object.assign({id:"dropdown-menu",position:"absolute",zIndex:1e3,borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden"},function(e,t){return void 0===e&&(e="bottom"),void 0===t&&(t="start"),{top:Object.assign({bottom:"100%",marginBottom:"8px"},"start"===t&&{left:0},"center"===t&&{left:"50%",transform:"translateX(-50%)"},"end"===t&&{right:0}),right:Object.assign({left:"100%",marginLeft:"8px"},"start"===t&&{top:0},"center"===t&&{top:"50%",transform:"translateY(-50%)"},"end"===t&&{bottom:0}),bottom:Object.assign({top:"100%",marginTop:"8px"},"start"===t&&{left:0},"center"===t&&{left:"50%",transform:"translateX(-50%)"},"end"===t&&{right:0}),left:Object.assign({right:"100%",marginRight:"8px"},"start"===t&&{top:0},"center"===t&&{top:"50%",transform:"translateY(-50%)"},"end"===t&&{bottom:0})}[e]}(i,n),Yl[d],null==a?void 0:a.menu,l),t.map((e,t)=>e.divider?o.createElement(ns,{key:"divider-"+t,views:a}):o.createElement(is,{key:e.id,item:e,views:a}))):null},is=e=>{var{item:i,views:n}=e,a=c(e,Zl),{activeSubmenuId:l,setActiveSubmenuId:s,size:d}=ts(),[u,h]=t.useState(!1),g=i.items&&i.items.length>0,m=l===i.id,p=t.useRef(null);return o.createElement(r.View,Object.assign({ref:p,display:"flex",alignItems:"center",cursor:i.disabled?"not-allowed":"pointer",opacity:i.disabled?.5:1,position:"relative"},Ul[d],{_hover:i.disabled?{}:Kl.hover,backgroundColor:u&&!i.disabled?"color.gray.100":"transparent",onMouseEnter:()=>{h(!0),g&&s(i.id)},onMouseLeave:()=>{h(!1)},onClick:e=>{e.stopPropagation(),i.disabled||!g&&i.onClick&&i.onClick()}},null==n?void 0:n.item,a),i.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==n?void 0:n.icon),i.icon),o.createElement(r.View,{flexGrow:1},i.label),g&&o.createElement(r.View,Object.assign({marginLeft:8},null==n?void 0:n.submenuIndicator),o.createElement("svg",{width:"16px",height:"16px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z",fill:"currentColor"}))),m&&g&&o.createElement(rs,{items:i.items||[],side:"right",align:"start",views:n}))},ns=e=>{var{views:t}=e,i=c(e,Jl);return o.createElement(r.View,Object.assign({height:"1px",backgroundColor:"color.gray.200",margin:"4px 0"},null==t?void 0:t.divider,i))},as=e=>{var{trigger:t,items:i,side:n="bottom",align:a="start",views:l}=e,s=c(e,Ql);return o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},null==l?void 0:l.container,s),o.createElement(os,{views:l},t),o.createElement(rs,{items:i,side:n,align:a,views:l}))},ls=["trigger","items","size","variant","side","align","defaultOpen","views"],ss=e=>{var{trigger:r,items:i,size:n="md",variant:a="default",side:l="bottom",align:s="start",defaultOpen:d=!1,views:u}=e,h=c(e,ls),{isOpen:g,setIsOpen:m,activeSubmenuId:p,setActiveSubmenuId:v}=function(e){void 0===e&&(e=!1);var[o,r]=t.useState(e),[i,n]=t.useState(null);return t.useEffect(()=>{var e=e=>{!e.composedPath().some(e=>"dropdown-menu"===(null==e?void 0:e.id)||"dropdown-trigger"===(null==e?void 0:e.id))&&o&&(r(!1),n(null))},t=()=>{o&&(r(!1),n(null))},i=e=>{"Escape"===e.key&&o&&(r(!1),n(null))};return document.addEventListener("mousedown",e),window.addEventListener("resize",t),document.addEventListener("keydown",i),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",t),document.removeEventListener("keydown",i)}},[o]),{isOpen:o,setIsOpen:r,activeSubmenuId:i,setActiveSubmenuId:n}}(d);return o.createElement(es,{value:{isOpen:g,setIsOpen:m,activeSubmenuId:p,setActiveSubmenuId:v,size:n,variant:a}},o.createElement(as,Object.assign({trigger:r,items:i,side:l,align:s,views:u},h)))};ss.Trigger=os,ss.Content=rs,ss.Item=is,ss.Divider=ns;var cs=e=>e+"-"+Math.random().toString(36).substring(2,9),ds=["children","views","asChild"],us=["children","views","side","align","sideOffset","style","backgroundColor","borderRadius","boxShadow","padding","minWidth","maxWidth"],hs=t.createContext({isOpen:!1,openCard:()=>{},closeCard:()=>{},cancelCloseTimer:()=>{},triggerRef:{current:null},contentRef:{current:null},contentId:"",triggerId:""}),gs=e=>{var{children:t,value:r}=e;return o.createElement(hs.Provider,{value:r},t)},ms=()=>{var e=t.useContext(hs);if(!e)throw new Error("useHoverCardContext must be used within a HoverCardProvider");return e},ps=["children","views","openDelay","closeDelay"],vs=e=>{var{children:i,views:n,openDelay:a,closeDelay:l}=e,s=c(e,ps),d=function(e){var{openDelay:o=200,closeDelay:r=300}=void 0===e?{}:e,[i,n]=t.useState(!1),a=t.useRef(null),l=t.useRef(null),s=t.useRef(null),c=t.useRef(null),d=t.useMemo(()=>cs("hovercard-content"),[]),u=t.useMemo(()=>cs("hovercard-trigger"),[]),h=t.useCallback(()=>{a.current&&(clearTimeout(a.current),a.current=null),l.current&&(clearTimeout(l.current),l.current=null)},[]),g=t.useCallback(()=>{h(),i||(a.current=setTimeout(()=>{n(!0)},o))},[i,o,h]),m=t.useCallback(()=>{h(),i&&(l.current=setTimeout(()=>{n(!1)},r))},[i,r,h]),p=t.useCallback(()=>{l.current&&(clearTimeout(l.current),l.current=null)},[]);return t.useEffect(()=>()=>h(),[h]),{isOpen:i,openCard:g,closeCard:m,cancelCloseTimer:p,triggerRef:s,contentRef:c,contentId:d,triggerId:u}}({openDelay:a,closeDelay:l});return o.createElement(gs,{value:d},o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},null==n?void 0:n.container,s),i))};vs.Trigger=e=>{var{children:i,views:n,asChild:a=!1}=e,l=c(e,ds),{openCard:s,closeCard:d,triggerRef:u,contentId:h,triggerId:g}=ms(),m=Object.assign({ref:u,onMouseEnter:()=>s(),onMouseLeave:()=>d(),onFocus:()=>s(),onBlur:()=>d(),id:g,"aria-describedby":h},null==n?void 0:n.container,l);if(a&&t.isValidElement(i)){var p=t.Children.only(i);return t.cloneElement(p,Object.assign({},m,p.props))}return o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},m),i)},vs.Content=e=>{var{children:i,views:n,side:a="bottom",align:l="center",sideOffset:s=8,style:d,backgroundColor:u="white",borderRadius:h="4px",boxShadow:g="0px 2px 8px rgba(0, 0, 0, 0.15)",padding:m="12px",minWidth:p="200px",maxWidth:v="300px"}=e,b=c(e,us),{isOpen:x,cancelCloseTimer:f,closeCard:w,contentRef:E,triggerRef:y,contentId:C,triggerId:j}=ms(),k=function(e,t,o,r){if(void 0===t&&(t="bottom"),void 0===o&&(o="center"),void 0===r&&(r=8),!e)return{position:"absolute",opacity:0,pointerEvents:"none"};var i={position:"absolute",zIndex:1e3};switch(t){case"top":i.bottom="100%",i.marginBottom=r,"start"===o?i.left=0:"center"===o?(i.left="50%",i.transform="translateX(-50%)"):"end"===o&&(i.right=0);break;case"right":i.left="100%",i.marginLeft=r,"start"===o?i.top=0:"center"===o?(i.top="50%",i.transform="translateY(-50%)"):"end"===o&&(i.bottom=0);break;case"bottom":i.top="100%",i.marginTop=r,"start"===o?i.left=0:"center"===o?(i.left="50%",i.transform="translateX(-50%)"):"end"===o&&(i.right=0);break;case"left":i.right="100%",i.marginRight=r,"start"===o?i.top=0:"center"===o?(i.top="50%",i.transform="translateY(-50%)"):"end"===o&&(i.bottom=0)}return i}((e=>{var[o,r]=t.useState(null),i=t.useCallback(()=>{e.current&&r(e.current.getBoundingClientRect())},[e]);return t.useLayoutEffect(()=>{if(e.current)return i(),window.addEventListener("resize",i),window.addEventListener("scroll",i),()=>{window.removeEventListener("resize",i),window.removeEventListener("scroll",i)}},[e,i]),o})(y),a,l,s);return x?o.createElement(r.View,Object.assign({ref:E,id:C,role:"tooltip","aria-labelledby":j,onMouseEnter:()=>f(),onMouseLeave:()=>w(),backgroundColor:u,borderRadius:h,boxShadow:g,padding:m,minWidth:p,maxWidth:v,zIndex:1e3,style:Object.assign({},k,d)},null==n?void 0:n.container,b),i):null};var bs={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 16px",fontSize:"18px"}},xs={default:{backgroundColor:"transparent",color:"color.gray.800"},filled:{backgroundColor:"color.gray.100",color:"color.gray.800"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800"}},fs={horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},ws={active:{backgroundColor:"color.gray.200",fontWeight:"bold"},hover:{backgroundColor:"color.gray.100"},disabled:{opacity:.5,cursor:"not-allowed"}},Es=["children","orientation","size","variant","views"],ys=t.createContext({activeMenuId:null,setActiveMenuId:()=>{},openMenuId:null,setOpenMenuId:()=>{},isMenuOpen:()=>!1,toggleMenu:()=>{},orientation:"horizontal",size:"md",variant:"default"}),Cs=()=>t.useContext(ys),js=e=>{var{value:t,children:r}=e;return o.createElement(ys.Provider,{value:t},r)},ks=e=>{var{children:t,orientation:i="horizontal",size:n="md",variant:a="default",views:l}=e,s=c(e,Es);return o.createElement("horizontal"===i?r.Horizontal:r.Vertical,Object.assign({role:"menubar","aria-orientation":i},fs[i],xs[a],null==l?void 0:l.container,s),t)},Is=e=>{var{children:t,id:i,disabled:n=!1,views:a}=e,{orientation:l}=Cs();return o.createElement("horizontal"===l?r.Horizontal:r.Vertical,Object.assign({role:"none",position:"relative",opacity:n?.5:1,pointerEvents:n?"none":"auto"},null==a?void 0:a.menu),o.Children.map(t,e=>o.isValidElement(e)?o.cloneElement(e,Object.assign({},e.props,{menuId:i})):e))},Os=e=>{var{children:t,menuId:i,disabled:n=!1,views:a}=e,{activeMenuId:l,setActiveMenuId:s,toggleMenu:c,isMenuOpen:d,size:u}=Cs(),h=l===i,g=d(i);return o.createElement(r.View,Object.assign({id:"menubar-trigger",role:"menuitem","aria-haspopup":"true","aria-expanded":g,userSelect:"none",display:"flex",alignItems:"center",justifyContent:"space-between"},bs[u],h?ws.active:{},n?ws.disabled:{},{_hover:n?{}:ws.hover,onClick:()=>{n||(s(i),c(i))}},null==a?void 0:a.trigger),t)},Ss=e=>{var{children:t,menuId:i,views:n}=e,{isMenuOpen:a,orientation:l}=Cs();return a(i)?o.createElement(r.View,Object.assign({id:"menubar-content",role:"menu",position:"absolute",zIndex:1e3,minWidth:"200px",backgroundColor:"color.white",borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)",overflow:"hidden"},(e=>"horizontal"===e?{top:"100%",left:0}:{top:0,left:"100%"})(l),null==n?void 0:n.content),t):null},zs=e=>{var{children:t,icon:i,disabled:n=!1,onClick:a,views:l}=e,{size:s}=Cs();return o.createElement(r.View,Object.assign({role:"menuitem",cursor:n?"not-allowed":"pointer",userSelect:"none",display:"flex",alignItems:"center",opacity:n?.5:1},bs[s],{_hover:n?{}:ws.hover,onClick:()=>{!n&&a&&a()}},null==l?void 0:l.item),i&&o.createElement(r.View,Object.assign({marginRight:8},null==l?void 0:l.icon),i),t)},Hs=e=>{var{views:t}=e;return o.createElement(r.View,Object.assign({role:"separator",height:"1px",backgroundColor:"color.gray.200",margin:"4px 0"},null==t?void 0:t.separator))},Ms=e=>{var{items:t,orientation:i,size:n,variant:a,views:l}=e;return o.createElement(ks,{orientation:i,size:n,variant:a,views:l},t.map(e=>o.createElement(Is,{key:e.id,id:e.id,disabled:e.disabled,views:l},o.createElement(Os,{menuId:e.id,views:l},e.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==l?void 0:l.icon),e.icon),e.label),e.items&&e.items.length>0&&o.createElement(Ss,{menuId:e.id,views:l},e.items.map((e,t)=>e.separator?o.createElement(Hs,{key:"separator-"+t,views:l}):o.createElement(zs,{key:e.id,id:e.id,icon:e.icon,disabled:e.disabled,onClick:e.onClick,views:l},e.label))))))},Ts=["items","orientation","size","variant","defaultActiveMenuId","defaultOpenMenuId","views"],Ws=e=>{var{items:r,orientation:i="horizontal",size:n="md",variant:a="default",defaultActiveMenuId:l=null,defaultOpenMenuId:s=null,views:d}=e,u=c(e,Ts),{activeMenuId:h,setActiveMenuId:g,openMenuId:m,setOpenMenuId:p,isMenuOpen:v,toggleMenu:b}=function(e,o){void 0===e&&(e=null),void 0===o&&(o=null);var[r,i]=t.useState(e),[n,a]=t.useState(o);return t.useEffect(()=>{var e=e=>{!e.composedPath().some(e=>"menubar-content"===(null==e?void 0:e.id)||"menubar-trigger"===(null==e?void 0:e.id))&&null!==n&&a(null)},t=e=>{"Escape"===e.key&&null!==n&&a(null)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[n]),{activeMenuId:r,setActiveMenuId:i,openMenuId:n,setOpenMenuId:a,isMenuOpen:e=>n===e,toggleMenu:e=>{a(t=>t===e?null:e)}}}(l,s);return o.createElement(js,{value:{activeMenuId:h,setActiveMenuId:g,openMenuId:m,setOpenMenuId:p,isMenuOpen:v,toggleMenu:b,orientation:i,size:n,variant:a}},o.createElement(Ms,Object.assign({items:r,orientation:i,size:n,variant:a,views:d},u)))};Ws.Root=ks,Ws.Menu=Is,Ws.Trigger=Os,Ws.Content=Ss,Ws.Item=zs,Ws.Separator=Hs;var Rs={sm:{fontSize:"12px",padding:"4px 8px",minWidth:"28px",height:"28px"},md:{fontSize:"14px",padding:"6px 12px",minWidth:"36px",height:"36px"},lg:{fontSize:"16px",padding:"8px 16px",minWidth:"44px",height:"44px"}},Vs={default:{backgroundColor:"transparent",color:"color.gray.800",_hover:{backgroundColor:"color.gray.100"}},filled:{backgroundColor:"color.gray.100",color:"color.gray.800",_hover:{backgroundColor:"color.gray.200"}},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800",_hover:{backgroundColor:"color.gray.100"}}},Ls={rounded:{borderRadius:"4px"},square:{borderRadius:"0px"},circular:{borderRadius:"50%"}},Bs={backgroundColor:"color.blue.500",color:"color.white",_hover:{backgroundColor:"color.blue.600"}},_s={opacity:.5,cursor:"not-allowed",_hover:{backgroundColor:"transparent"}},Ps=["currentPage","totalPages","onPageChange","pageSize","pageSizeOptions","onPageSizeChange","showPageSizeSelector","showPageInfo","maxPageButtons","showFirstLastButtons","size","variant","shape","visiblePageNumbers","views"],Ds=e=>{var{currentPage:t,totalPages:i,onPageChange:n,pageSize:a=10,pageSizeOptions:l=[{label:"10 / page",value:10},{label:"20 / page",value:20},{label:"50 / page",value:50},{label:"100 / page",value:100}],onPageSizeChange:s,showPageSizeSelector:d=!1,showPageInfo:u=!0,maxPageButtons:h=5,showFirstLastButtons:g=!1,size:m="md",variant:p="default",shape:v="rounded",visiblePageNumbers:b,views:x}=e,f=c(e,Ps),w=e=>{e<1||e>i||e===t||n(e)};return o.createElement(r.Horizontal,Object.assign({alignItems:"center",gap:8},null==x?void 0:x.container,f),g&&o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:1===t?"not-allowed":"pointer"},Rs[m],Vs[p],Ls[v],1===t?_s:{},{onClick:()=>w(1),"aria-label":"First page",disabled:1===t},null==x?void 0:x.navigationButton),o.createElement(st,{orientation:"left",widthHeight:16}),o.createElement(st,{orientation:"left",widthHeight:16,marginLeft:"-8px"})),o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:1===t?"not-allowed":"pointer"},Rs[m],Vs[p],Ls[v],1===t?_s:{},{onClick:()=>w(t-1),"aria-label":"Previous page",disabled:1===t},null==x?void 0:x.navigationButton),o.createElement(st,{orientation:"left",widthHeight:16})),b.map((e,i)=>((e,i)=>{if("..."===e)return o.createElement(r.View,Object.assign({key:"ellipsis-"+i,display:"flex",alignItems:"center",justifyContent:"center"},Rs[m],null==x?void 0:x.ellipsis),"...");var n=e===t;return o.createElement(r.View,Object.assign({key:"page-"+e,as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:n?"default":"pointer"},Rs[m],Vs[p],Ls[v],n?Bs:{},{onClick:()=>w(e),"aria-label":"Page "+e,"aria-current":n?"page":void 0},n?null==x?void 0:x.activePageButton:null==x?void 0:x.pageButton),e)})(e,i)),o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:t===i?"not-allowed":"pointer"},Rs[m],Vs[p],Ls[v],t===i?_s:{},{onClick:()=>w(t+1),"aria-label":"Next page",disabled:t===i},null==x?void 0:x.navigationButton),o.createElement(st,{orientation:"right",widthHeight:16})),g&&o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:t===i?"not-allowed":"pointer"},Rs[m],Vs[p],Ls[v],t===i?_s:{},{onClick:()=>w(i),"aria-label":"Last page",disabled:t===i},null==x?void 0:x.navigationButton),o.createElement(st,{orientation:"right",widthHeight:16}),o.createElement(st,{orientation:"right",widthHeight:16,marginLeft:"-8px"})),u&&o.createElement(T,Object.assign({marginLeft:16,color:"color.gray.600"},null==x?void 0:x.pageInfo),"Page ",t," of ",i),d&&s&&o.createElement(r.View,Object.assign({as:"select",marginLeft:16,padding:"4px 8px",borderRadius:"4px",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",backgroundColor:"color.white",cursor:"pointer",value:a,onChange:e=>{s&&s(Number(e.target.value))}},null==x?void 0:x.pageSizeSelector),l.map(e=>o.createElement("option",{key:e.value,value:e.value},e.label))))},Fs=["currentPage","totalPages","onPageChange","pageSize","pageSizeOptions","onPageSizeChange","showPageSizeSelector","showPageInfo","maxPageButtons","showFirstLastButtons","size","variant","shape","views"],As=(e=>({solid:"solid",dashed:"dashed",dotted:"dotted"}))(),Gs={thin:"1px",medium:"2px",thick:"4px"},Ns={transition:"all 0.2s ease"},Us={fontSize:"14px",color:"color.gray.500",paddingHorizontal:"8px",transition:"all 0.2s ease"},Ys=["orientation","variant","thickness","color","spacing","label","decorative","views","themeMode"],Ks=e=>{var{orientation:t="horizontal",variant:i="solid",thickness:n="thin",color:a,spacing:l="0px",label:s,decorative:d=!1,views:u}=e,h=c(e,Ys),g=(r.useTheme(),a||"color.gray.200"),m=As[i],p=Gs[n],v=d?{"aria-hidden":"true"}:{role:"separator","aria-orientation":t};return s&&"horizontal"===t?o.createElement(r.Horizontal,Object.assign({alignItems:"center",justifyContent:"center",width:"100%",padding:l},v,h),o.createElement(r.View,Object.assign({height:"0px",flexGrow:1,borderTopWidth:p,borderTopStyle:m,borderTopColor:g},Ns,null==u?void 0:u.container)),o.createElement(T,Object.assign({},Us,null==u?void 0:u.label),s),o.createElement(r.View,Object.assign({height:"0px",flexGrow:1,borderTopWidth:p,borderTopStyle:m,borderTopColor:g},Ns,null==u?void 0:u.container))):o.createElement(r.View,Object.assign("horizontal"===t?{height:"0px",width:"100%",borderTopWidth:p,borderTopStyle:m,borderTopColor:g,padding:l}:{width:"0px",height:"100%",borderLeftWidth:p,borderLeftStyle:m,borderLeftColor:g,padding:l},Ns,v,null==u?void 0:u.container,h))},Xs=e=>o.createElement(Ks,Object.assign({},e)),qs=Xs,Zs=Xs,Js={sm:{expandedWidth:"240px",collapsedWidth:"64px"},md:{expandedWidth:"280px",collapsedWidth:"72px"},lg:{expandedWidth:"320px",collapsedWidth:"80px"},xl:{expandedWidth:"360px",collapsedWidth:"88px"}},Qs=(e=>({default:{backgroundColor:"color.white",color:"color.gray.800",transition:"all 0.2s ease"},filled:{backgroundColor:"color.gray.100",color:"color.gray.800",transition:"all 0.2s ease"},outline:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",color:"color.gray.800",transition:"all 0.2s ease"},subtle:{backgroundColor:"color.gray.50",color:"color.gray.800",transition:"all 0.2s ease"},elevated:{backgroundColor:"color.white",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",color:"color.gray.800",transition:"all 0.2s ease"}}))(),$s={left:{left:0,borderRightWidth:"1px",borderRightStyle:"solid",borderRightColor:"color.gray.200"},right:{right:0,borderLeftWidth:"1px",borderLeftStyle:"solid",borderLeftColor:"color.gray.200"}},ec={none:{},low:{boxShadow:"0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24)"},medium:{boxShadow:"0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23)"},high:{boxShadow:"0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)"}},tc={fast:"width 0.2s ease, transform 0.2s ease",normal:"width 0.3s ease, transform 0.3s ease",slow:"width 0.5s ease, transform 0.5s ease",bounce:"width 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55)"},oc=["children","showToggleButton","views"],rc=["children","views"],ic=["children","views"],nc=["children","position","size","variant","fixed","hasBackdrop","expandedWidth","collapsedWidth","breakpointBehavior","elevation","transitionPreset","ariaLabel","isExpanded","isMobile","collapse","views","themeMode"],ac=t.createContext({isExpanded:!0,toggleExpanded:()=>{},expand:()=>{},collapse:()=>{},position:"left",size:"md",variant:"default"}),lc=()=>t.useContext(ac),sc=e=>{var{value:t,children:r}=e;return o.createElement(ac.Provider,{value:t},r)},cc=e=>{var{children:t,position:i="left",size:n="md",variant:a="default",fixed:l=!1,hasBackdrop:s=!0,expandedWidth:d,collapsedWidth:u,breakpointBehavior:h="overlay",elevation:g="none",transitionPreset:m="normal",ariaLabel:p="Sidebar navigation",isExpanded:v,isMobile:b,collapse:x,views:f}=e,w=c(e,nc),E=Js[n],y=v?d||E.expandedWidth:u||E.collapsedWidth,C=!b||b&&"hide"!==h,j=l||b&&"overlay"===h?"fixed":"relative";return o.createElement(o.Fragment,null,s&&b&&v&&"overlay"===h&&o.createElement(r.View,Object.assign({position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"color.blackAlpha.500",zIndex:998,onClick:x},null==f?void 0:f.backdrop)),C&&o.createElement(r.Vertical,Object.assign({position:j,top:0,height:"100vh",width:y,zIndex:999,transition:tc[m],transform:b&&"overlay"===h&&!v?"translateX("+("left"===i?"-100%":"100%")+")":"translateX(0)",role:"navigation","aria-label":p},Qs[a],$s[i],ec[g],null==f?void 0:f.container,w),o.Children.map(t,e=>e)))},dc=["children","position","size","variant","defaultExpanded","expanded","onExpandedChange","fixed","hasBackdrop","showToggleButton","expandedWidth","collapsedWidth","breakpoint","breakpointBehavior","views"],uc=e=>{var{children:r,position:i="left",size:n="md",variant:a="default",defaultExpanded:l=!0,expanded:s,onExpandedChange:d,fixed:u=!1,hasBackdrop:h=!0,showToggleButton:g=!0,expandedWidth:m,collapsedWidth:p,breakpoint:v=768,breakpointBehavior:b="overlay",views:x}=e,f=c(e,dc),{isExpanded:w,toggleExpanded:E,expand:y,collapse:C,isMobile:j}=function(e,o,r,i){void 0===e&&(e=!0);var[n,a]=t.useState(void 0!==o?o:e),[l,s]=t.useState(!!i&&window.innerWidth<i);return t.useEffect(()=>{void 0!==o&&a(o)},[o]),t.useEffect(()=>{if(i){var e=()=>{var e=window.innerWidth<i;s(e)};return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}}},[i]),{isExpanded:n,toggleExpanded:()=>{var e=!n;a(e),r&&r(e)},expand:()=>{n||(a(!0),r&&r(!0))},collapse:()=>{n&&(a(!1),r&&r(!1))},isMobile:l}}(l,s,d,v);return o.createElement(sc,{value:{isExpanded:w,toggleExpanded:E,expand:y,collapse:C,position:i,size:n,variant:a,views:x}},o.createElement(cc,Object.assign({position:i,size:n,variant:a,fixed:u,hasBackdrop:h,showToggleButton:g,expandedWidth:m,collapsedWidth:p,breakpoint:v,breakpointBehavior:b,isExpanded:w,isMobile:j,toggleExpanded:E,expand:y,collapse:C,views:x},f),r))};uc.Header=e=>{var{children:t,showToggleButton:i=!0,views:n}=e,a=c(e,oc),{isExpanded:l,toggleExpanded:s,position:d}=lc();return o.createElement(r.Horizontal,Object.assign({width:"100%",padding:"16px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200",alignItems:"center",justifyContent:"space-between"},null==n?void 0:n.header,a),l?o.createElement(r.Horizontal,{width:"100%",alignItems:"center",justifyContent:"space-between"},t,i&&o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",borderRadius:"4px",backgroundColor:"transparent",cursor:"pointer",_hover:{backgroundColor:"color.gray.100"},onClick:s,"aria-label":l?"Collapse sidebar":"Expand sidebar"},null==n?void 0:n.toggleButton),o.createElement(st,Object.assign({orientation:"left"===d?"left":"right",widthHeight:16},null==n?void 0:n.toggleButtonIcon)))):o.createElement(r.View,{width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},i&&o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",borderRadius:"4px",backgroundColor:"transparent",cursor:"pointer",_hover:{backgroundColor:"color.gray.100"},onClick:s,"aria-label":l?"Collapse sidebar":"Expand sidebar"},null==n?void 0:n.toggleButton),o.createElement(st,Object.assign({orientation:"left"===d?"right":"left",widthHeight:16},null==n?void 0:n.toggleButtonIcon)))))},uc.Content=e=>{var{children:t,views:i}=e,n=c(e,rc),{isExpanded:a}=lc();return o.createElement(r.View,Object.assign({flex:"1",width:"100%",overflowY:"auto",overflowX:"hidden",padding:a?"16px":"8px"},null==i?void 0:i.content,n),t)},uc.Footer=e=>{var{children:t,views:i}=e,n=c(e,ic),{isExpanded:a}=lc();return o.createElement(r.View,Object.assign({width:"100%",padding:"16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200"},null==i?void 0:i.footer,n),a?t:null)},uc.useContext=lc;var hc={horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},gc=(e=>({default:{backgroundColor:"transparent",_hover:{backgroundColor:"color.gray.200"},_active:{backgroundColor:"color.gray.300"}},subtle:{backgroundColor:"transparent",_hover:{backgroundColor:"color.gray.100"},_active:{backgroundColor:"color.gray.200"}},prominent:{backgroundColor:"color.gray.100",_hover:{backgroundColor:"color.gray.200"},_active:{backgroundColor:"color.gray.300"}}}))(),mc={width:"2px",height:"20px",backgroundColor:"color.gray.400",margin:"0 1px"},pc={width:"20px",height:"2px",backgroundColor:"color.gray.400",margin:"1px 0"},vc=["children","id","defaultSize","minSize","maxSize","collapsible","defaultCollapsed","onCollapseChange","views"],bc=["id","position","disabled","withVisualIndicator","withCollapseButton","collapseTarget","views"],xc=["children","orientation","size","variant","defaultSizes","minSize","maxSize","collapsible","containerRef","autoSaveId","views"],fc=t.createContext({orientation:"horizontal",size:"md",variant:"default",isResizing:!1,setIsResizing:()=>{},registerPanel:()=>{},unregisterPanel:()=>{},getPanelSize:()=>0,setPanelSize:()=>{},isPanelCollapsed:()=>!1,togglePanelCollapse:()=>{},startResize:()=>{},onResize:()=>{},endResize:()=>{}}),wc=()=>t.useContext(fc),Ec=e=>{var{value:t,children:r}=e;return o.createElement(fc.Provider,{value:t},r)},yc=e=>{var{children:t,orientation:i="horizontal",size:n="md",variant:a="default",collapsible:l=!1,containerRef:s,views:d}=e,u=c(e,xc);return o.createElement("horizontal"===i?r.Horizontal:r.Vertical,Object.assign({ref:s,width:"100%",height:"100%",position:"relative",overflow:"hidden"},hc[i],null==d?void 0:d.container,u),t)},Cc=["children","orientation","size","variant","defaultSizes","onSizesChange","minSize","maxSize","collapsible","autoSaveId","storage","keyboardResizeBy","views"],jc=e=>{var{children:r,orientation:i="horizontal",size:n="md",variant:a="default",defaultSizes:l,onSizesChange:s,minSize:d=50,maxSize:u,collapsible:h=!1,autoSaveId:g,storage:m,keyboardResizeBy:p=10,views:v}=e,b=c(e,Cc),{isResizing:x,setIsResizing:f,containerRef:w,registerPanel:E,unregisterPanel:y,getPanelSize:C,setPanelSize:j,isPanelCollapsed:k,togglePanelCollapse:I,startResize:O,onResize:S,endResize:z}=function(e,o,r,i,n,a,l,s,c){void 0===i&&(i=50),void 0===n&&(n=Infinity),void 0===a&&(a=!1),void 0===c&&(c=10);var[d,u]=t.useState(!1),[h,g]=t.useState([]),m=t.useRef(null),p=t.useRef(null),v=t.useRef(0),b=t.useRef([]),x=t.useRef(s||("undefined"!=typeof window?{getItem:e=>{try{return localStorage.getItem("resizable-"+e)}catch(e){return console.warn("Failed to access localStorage:",e),null}},setItem:(e,t)=>{try{localStorage.setItem("resizable-"+e,t)}catch(e){console.warn("Failed to write to localStorage:",e)}}}:null)),f=t.useCallback(()=>m.current?"horizontal"===e?m.current.offsetWidth:m.current.offsetHeight:0,[e]),w=t.useCallback(()=>{if(!l||!x.current)return null;var e=x.current.getItem(l);if(!e)return null;try{var t=JSON.parse(e);return Array.isArray(t.sizes)?t.sizes:null}catch(e){return console.warn("Failed to parse saved panel sizes:",e),null}},[l]),E=t.useCallback(()=>{if(l&&x.current&&0!==h.length){var e=h.map(e=>({id:e.id,size:e.size,collapsed:e.collapsed||!1}));x.current.setItem(l,JSON.stringify({sizes:e}))}},[l,h]),y=t.useCallback((e,t,o,r,l)=>{g(s=>s.some(t=>t.id===e)?s:[...s,{id:e,size:t,minSize:null!=o?o:i,maxSize:null!=r?r:n,collapsible:null!=l?l:a,collapsed:!1}])},[i,n,a]),C=t.useCallback(e=>{g(t=>t.filter(t=>t.id!==e))},[]),j=t.useCallback(e=>{var t=h.find(t=>t.id===e);return t?t.size:0},[h]),k=t.useCallback((e,t)=>{g(o=>o.map(o=>o.id===e?Object.assign({},o,{size:t}):o))},[]),I=t.useCallback(e=>{var t=h.find(t=>t.id===e);return!!t&&!!t.collapsed},[h]),O=t.useCallback(e=>{g(t=>{var o=t.findIndex(t=>t.id===e);if(-1===o)return t;var r=t[o];if(!r.collapsible)return t;var i=Object.assign({},r,{collapsed:!r.collapsed}),n=[...t];return n[o]=i,n})},[]),S=t.useCallback((e,t)=>{p.current=e,v.current=t,b.current=h.map(e=>e.size),u(!0)},[h]),z=t.useCallback(e=>{var t,o,r,a;if(d&&p.current){var l=e-v.current,s=-1,c=p.current.match(/\d+$/);if(c&&(s=parseInt(c[0],10)-1),-1===s&&h.length>=2&&(s=0),!(s<0||s>=h.length-1)){var u=h[s],m=h[s+1];if(!u.collapsed&&!m.collapsed){var x=b.current[s]+l,f=b.current[s+1]-l;x=Math.max(null!=(t=u.minSize)?t:i,Math.min(null!=(o=u.maxSize)?o:n,x)),f=Math.max(null!=(r=m.minSize)?r:i,Math.min(null!=(a=m.maxSize)?a:n,f)),g(e=>e.map((e,t)=>t===s?Object.assign({},e,{size:x}):t===s+1?Object.assign({},e,{size:f}):e))}}}},[d,h,e,i,n]),H=t.useCallback(()=>{d&&r&&r(h.map(e=>e.size)),p.current=null,u(!1),l&&E()},[d,h,r,l,E]),M=t.useCallback(t=>{if(d&&p.current){var o=-1,r=p.current.match(/\d+$/);if(r&&(o=parseInt(r[0],10)-1),-1===o&&h.length>=2&&(o=0),!(o<0||o>=h.length-1)){var i=0;"horizontal"===e?("ArrowLeft"===t.key&&(i=-c),"ArrowRight"===t.key&&(i=c),"Home"===t.key&&(i=-100),"End"===t.key&&(i=100)):("ArrowUp"===t.key&&(i=-c),"ArrowDown"===t.key&&(i=c),"Home"===t.key&&(i=-100),"End"===t.key&&(i=100)),0!==i&&(t.preventDefault(),z(v.current+i)),"Escape"===t.key&&(g(e=>e.map((e,t)=>Object.assign({},e,{size:b.current[t]}))),H())}}},[d,h,e,z,H,c]);return t.useEffect(()=>{var t=t=>{d&&z("horizontal"===e?t.clientX:t.clientY)},o=t=>{if(d&&0!==t.touches.length){var o=t.touches[0];z("horizontal"===e?o.clientX:o.clientY)}},r=()=>{d&&H()};return d&&(document.addEventListener("mousemove",t),document.addEventListener("touchmove",o),document.addEventListener("mouseup",r),document.addEventListener("touchend",r),document.addEventListener("keydown",M),document.body.style.cursor="horizontal"===e?"col-resize":"row-resize",document.body.style.userSelect="none"),()=>{document.removeEventListener("mousemove",t),document.removeEventListener("touchmove",o),document.removeEventListener("mouseup",r),document.removeEventListener("touchend",r),document.removeEventListener("keydown",M),document.body.style.cursor="",document.body.style.userSelect=""}},[d,e,z,H,M]),t.useEffect(()=>{if(0!==h.length){if(l){var e=w();if(e)return void g(t=>t.map(t=>{var o=e.find(e=>e.id===t.id);return o?Object.assign({},t,{size:o.size,collapsed:o.collapsed||!1}):t}))}if(!o){var t=f()/h.length;g(e=>e.map(e=>Object.assign({},e,{size:t})))}}},[h.length,o,f,l,w]),t.useEffect(()=>{if(o&&0!==o.length&&0!==h.length){var e=f(),t=o.map(t=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:"number"==typeof t?t:parseFloat(t));g(e=>e.map((e,o)=>Object.assign({},e,{size:o<t.length?t[o]:e.size})))}},[o,h.length,f]),t.useEffect(()=>{h.length>0&&l&&!d&&E()},[h,l,d,E]),{isResizing:d,setIsResizing:u,containerRef:m,panels:h,registerPanel:y,unregisterPanel:C,getPanelSize:j,setPanelSize:k,isPanelCollapsed:I,togglePanelCollapse:O,startResize:S,onResize:z,endResize:H}}(i,l,s,d,u,h,g,m,p);return o.createElement(Ec,{value:{orientation:i,size:n,variant:a,isResizing:x,setIsResizing:f,registerPanel:E,unregisterPanel:y,getPanelSize:C,setPanelSize:j,isPanelCollapsed:k,togglePanelCollapse:I,startResize:O,onResize:S,endResize:z}},o.createElement(yc,Object.assign({orientation:i,size:n,variant:a,defaultSizes:l,minSize:d,maxSize:u,collapsible:h,autoSaveId:g,keyboardResizeBy:p,containerRef:w,views:v},b),r))};jc.Panel=e=>{var{children:i,id:n,defaultSize:a,minSize:l,maxSize:s,collapsible:d,defaultCollapsed:u,onCollapseChange:h,views:g}=e,m=c(e,vc),{orientation:p,registerPanel:v,unregisterPanel:b,getPanelSize:x,isPanelCollapsed:f,togglePanelCollapse:w}=wc(),E="string"==typeof a&&a.endsWith("%")?0:"number"==typeof a?a:0;t.useEffect(()=>(v(n,E,l,s,d),()=>b(n)),[n,E,l,s,d,v,b]);var y=x(n),C=f(n);return t.useEffect(()=>{h&&void 0!==C&&h(C)},[C,h]),t.useEffect(()=>{d&&u&&!C&&w(n)},[n,d,u,C,w]),C?o.createElement(r.View,Object.assign({flex:"0 0 auto",width:"horizontal"===p?"10px":"100%",height:"vertical"===p?"10px":"100%",backgroundColor:"color.gray.200",cursor:"pointer",onClick:()=>w(n),"aria-label":"Expand panel "+n,role:"button",tabIndex:0},null==g?void 0:g.collapsedPanel,m)):o.createElement(r.View,Object.assign({flex:y>0?"0 0 auto":"1",width:"horizontal"===p?y+"px":"100%",height:"vertical"===p?y+"px":"100%",overflow:"auto"},null==g?void 0:g.panel,m),i)},jc.Handle=e=>{var{id:t,position:i="both",disabled:n=!1,withVisualIndicator:a=!0,withCollapseButton:l=!1,collapseTarget:s,views:d}=e,u=c(e,bc),{orientation:h,size:g,variant:m,startResize:p,isPanelCollapsed:v,togglePanelCollapse:b}=wc(),x=(()=>{if(s)return s;var e=t.match(/\d+$/);if(!e)return"";var o=parseInt(e[0],10);return isNaN(o)?"":"panel"+o})(),f=v(x);return o.createElement(r.View,Object.assign({role:"separator","aria-orientation":h,"aria-valuemin":0,"aria-valuemax":100,tabIndex:n?-1:0,cursor:"horizontal"===h?"col-resize":"row-resize",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},((e,t)=>({sm:{width:"horizontal"===t?"4px":"100%",height:"vertical"===t?"4px":"100%"},md:{width:"horizontal"===t?"6px":"100%",height:"vertical"===t?"6px":"100%"},lg:{width:"horizontal"===t?"8px":"100%",height:"vertical"===t?"8px":"100%"}}[e]))(g,h),gc[m],{onMouseDown:e=>{n||(e.preventDefault(),p(t,"horizontal"===h?e.clientX:e.clientY))},onTouchStart:e=>{if(!n&&0!==e.touches.length){e.preventDefault();var o=e.touches[0];p(t,"horizontal"===h?o.clientX:o.clientY)}},onKeyDown:e=>{n||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),p(t,0))},opacity:n?.5:1,pointerEvents:n?"none":"auto"},null==d?void 0:d.handle,u),a&&o.createElement(r.View,Object.assign({display:"flex",alignItems:"center",justifyContent:"center",width:"horizontal"===h?"100%":"auto",height:"vertical"===h?"100%":"auto",pointerEvents:"none"},null==d?void 0:d.handleIcon),"horizontal"===h?o.createElement(r.Horizontal,{gap:1},o.createElement(r.View,Object.assign({},mc)),o.createElement(r.View,Object.assign({},mc))):o.createElement(r.Vertical,{gap:1},o.createElement(r.View,Object.assign({},pc)),o.createElement(r.View,Object.assign({},pc)))),l&&x&&o.createElement(r.View,Object.assign({position:"absolute",top:"horizontal"===h?"-20px":"50%",left:"horizontal"===h?"50%":"-20px",transform:"horizontal"===h?"translateX(-50%)":"translateY(-50%)",width:"16px",height:"16px",borderRadius:"full",backgroundColor:"color.gray.100",border:"1px solid",borderColor:"color.gray.300",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:1,onClick:e=>{e.stopPropagation(),x&&b(x)},"aria-label":f?"Expand panel "+x:"Collapse panel "+x,role:"button",tabIndex:0,pointerEvents:"auto",_hover:{backgroundColor:"color.gray.200"}},null==d?void 0:d.collapseIcon),o.createElement(r.View,{width:"8px",height:"8px",display:"flex",alignItems:"center",justifyContent:"center"},f?o.createElement(r.Horizontal,null,o.createElement(r.View,{width:"6px",height:"2px",backgroundColor:"color.gray.600"}),o.createElement(r.View,{width:"2px",height:"6px",backgroundColor:"color.gray.600",position:"absolute"})):o.createElement(r.View,{width:"6px",height:"2px",backgroundColor:"color.gray.600"}))))};var kc={info:{container:{backgroundColor:"color.blue.50",border:"color.blue.300"},content:{color:"color.blue.700"},icon:{color:"color.blue.500"}},success:{container:{backgroundColor:"color.green.50",border:"color.green.300"},content:{color:"color.green.700"},icon:{color:"color.green.500"}},warning:{container:{backgroundColor:"color.orange.50",border:"color.orange.300"},content:{color:"color.orange.700"},icon:{color:"color.orange.500"}},error:{container:{backgroundColor:"color.red.50",border:"color.red.300"},content:{color:"color.red.700"},icon:{color:"color.red.500"}}},Ic={top:{top:"16px",left:"50%",transform:"translateX(-50%)"},"top-right":{top:"16px",right:"16px"},"top-left":{top:"16px",left:"16px"},bottom:{bottom:"16px",left:"50%",transform:"translateX(-50%)"},"bottom-right":{bottom:"16px",right:"16px"},"bottom-left":{bottom:"16px",left:"16px"}},Oc=new Map,Sc=s.create(e=>({toasts:[],add:function(t,o,r,i){void 0===i&&(i={});var n=i.id||Math.random().toString(36).substring(2,9),a=Object.assign({id:n,variant:t,title:o,description:r,createdAt:Date.now(),isVisible:!0},i);if(e(e=>({toasts:[...e.toasts,a]})),0!==i.duration){var l=setTimeout(()=>{Sc.getState().remove(n)},i.duration||5e3);Oc.set(n,l)}return n},remove:t=>{e(e=>({toasts:e.toasts.map(e=>e.id===t?Object.assign({},e,{isVisible:!1}):e)})),Oc.has(t)&&(clearTimeout(Oc.get(t)),Oc.delete(t)),setTimeout(()=>{e(e=>({toasts:e.toasts.filter(e=>e.id!==t)}))},300)},removeAll:()=>{Oc.forEach(clearTimeout),Oc.clear(),e(e=>({toasts:e.toasts.map(e=>Object.assign({},e,{isVisible:!1}))})),setTimeout(()=>{e({toasts:[]})},300)}})),zc=(e,t,o,r)=>Sc.getState().add(e,t,o,r),Hc=(e,t,o)=>zc("info",e,t,o),Mc=(e,t,o)=>zc("success",e,t,o),Tc=(e,t,o)=>zc("warning",e,t,o),Wc=(e,t,o)=>zc("error",e,t,o),Rc=e=>{Sc.getState().remove(e)},Vc=()=>{Sc.getState().removeAll()},Lc=e=>{var{variant:t,title:i,description:n,onClose:a,isClosable:l=!0,action:s,actionText:c,showIcon:d=!0,theme:u,views:h,render:g,icon:m,id:p,isVisible:v=!0}=e,b=null!=u?u:kc;return g?o.createElement(o.Fragment,null,g({id:p||"",onClose:a})):o.createElement(r.Horizontal,Object.assign({role:"error"===t?"alert":"status","aria-live":"error"===t||"warning"===t?"assertive":"polite","aria-atomic":"true","data-state":v?"open":"closed",gap:12,width:"100%",maxWidth:"400px",borderWidth:"1px",borderStyle:"solid",borderRadius:"8px",padding:"12px 16px",alignItems:"flex-start",position:"relative",backgroundColor:b[t].container.backgroundColor,borderColor:b[t].container.border,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.08)",opacity:v?1:0,transform:v?"scale(1)":"scale(0.95)",transition:"all 0.3s ease"},null==h?void 0:h.container),d&&o.createElement(r.View,Object.assign({marginTop:"2px"},null==h?void 0:h.icon),(()=>{if(void 0!==m)return m;switch(t){case"info":return o.createElement(Ct,{widthHeight:20,color:b.info.icon.color});case"success":return o.createElement(jt,{widthHeight:20,color:b.success.icon.color});case"warning":return o.createElement(Ct,{widthHeight:20,color:b.warning.icon.color,orientation:"down"});case"error":return o.createElement(Rt,{widthHeight:20,color:b.error.icon.color});default:return o.createElement(Ct,{widthHeight:20,color:b.info.icon.color})}})()),o.createElement(r.Vertical,{gap:4,flex:"1"},o.createElement(T,Object.assign({size:"md",fontWeight:"600",color:b[t].content.color,lineHeight:"1.4"},null==h?void 0:h.title),i),n&&o.createElement(T,Object.assign({size:"sm",color:b[t].content.color,fontWeight:"400",lineHeight:"1.5"},null==h?void 0:h.description),n),s&&c&&o.createElement(T,Object.assign({size:"sm",fontWeight:"600",marginTop:"8px",cursor:"pointer",color:b[t].content.color,onClick:e=>{e.stopPropagation(),s()},_hover:{textDecoration:"underline"},transition:"all 0.2s ease"},null==h?void 0:h.actionButton),c)),l&&o.createElement(r.View,Object.assign({as:"button","aria-label":"Close toast",backgroundColor:"transparent",border:"none",cursor:"pointer",padding:"4px",marginLeft:"8px",marginTop:"-4px",marginRight:"-8px",borderRadius:"4px",onClick:e=>{e.stopPropagation(),a()},_hover:{backgroundColor:"rgba(0, 0, 0, 0.05)"},transition:"all 0.2s ease"},null==h?void 0:h.closeButton),o.createElement(vt,{widthHeight:16,color:b[t].content.color})))},Bc=e=>{var{position:t="top-right",gap:i=8,limit:n=5,containerStyle:a}=e,{toasts:l,remove:s}=Sc(),c=o.useMemo(()=>{var e={top:[],"top-right":[],"top-left":[],bottom:[],"bottom-right":[],"bottom-left":[]};return l.forEach(o=>{e[o.position||t].push(o)}),Object.keys(e).forEach(t=>{e[t]=e[t].slice(-n)}),e},[l,t,n])[t];return o.createElement(r.View,Object.assign({position:"fixed",zIndex:9999,display:"flex",flexDirection:t.includes("bottom")?"column-reverse":"column",gap:i+"px",width:"fit-content",maxWidth:"100%",pointerEvents:"none"},Ic[t],{style:a}),c.map(e=>o.createElement(r.View,{key:e.id,pointerEvents:"auto",animation:t.includes("right")?"slideInRight 0.3s ease-out, fadeIn 0.3s ease-out":t.includes("left")?"slideInLeft 0.3s ease-out, fadeIn 0.3s ease-out":t.includes("top")?"slideInDown 0.3s ease-out, fadeIn 0.3s ease-out":"slideInUp 0.3s ease-out, fadeIn 0.3s ease-out"},o.createElement(Lc,{id:e.id,variant:e.variant,title:e.title,description:e.description,onClose:()=>s(e.id),isClosable:e.isClosable,action:e.action,actionText:e.actionText,showIcon:e.showIcon,views:e.views,render:e.render,icon:e.icon,isVisible:e.isVisible}))))},_c=e=>o.createElement(Lc,Object.assign({},e)),Pc=Object.assign(_c,{Container:e=>o.createElement(Bc,Object.assign({},e)),show:zc,info:Hc,success:Mc,warning:Tc,error:Wc,remove:Rc,removeAll:Vc}),Dc=(e,t)=>{var o,r;if(!e)return!0;var i=e.toLowerCase(),n=t.name.toLowerCase().includes(i),a=(null==(o=t.description)?void 0:o.toLowerCase().includes(i))||!1,l=(null==(r=t.keywords)?void 0:r.some(e=>e.toLowerCase().includes(i)))||!1;return n||a||l},Fc={sm:{width:"400px",maxHeight:"300px"},md:{width:"500px",maxHeight:"400px"},lg:{width:"600px",maxHeight:"500px"}},Ac=(e=>({default:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)"},filled:{backgroundColor:"color.gray.50",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)"},outline:{backgroundColor:"color.white",borderWidth:"2px",borderStyle:"solid",borderColor:"color.gray.300",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)"}}))(),Gc={display:"flex",alignItems:"center",padding:"12px 16px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200"},Nc={overflow:"auto",padding:"8px 0"},Uc={marginBottom:"8px"},Yc={padding:"8px 16px",fontSize:"12px",fontWeight:"bold",color:"color.gray.500",textTransform:"uppercase"},Kc={display:"flex",alignItems:"center",padding:"8px 16px",cursor:"pointer",userSelect:"none",borderRadius:"4px",margin:"0 8px",_hover:{backgroundColor:"color.gray.100"}},Xc={backgroundColor:"color.blue.50",_hover:{backgroundColor:"color.blue.100"}},qc={opacity:.5,cursor:"not-allowed",_hover:{backgroundColor:"transparent"}},Zc={display:"flex",alignItems:"center",justifyContent:"center",marginRight:"12px",color:"color.gray.500"},Jc={display:"flex",flexDirection:"column",flex:1},Qc={fontSize:"14px",fontWeight:"medium"},$c={fontSize:"12px",color:"color.gray.500",marginTop:"2px"},ed={display:"flex",alignItems:"center",marginLeft:"12px",fontSize:"12px",color:"color.gray.500"},td={display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",color:"color.gray.500",textAlign:"center"},od={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200",fontSize:"12px",color:"color.gray.500"},rd=["value","onValueChange","placeholder","views"],id=["children","views"],nd=["heading","children","views"],ad=["item","selected","onSelect","views"],ld=["children","views"],sd=["open","onOpenChange","groups","commands","placeholder","size","variant","emptyState","footer","search","setSearch","selectedIndex","setSelectedIndex","filteredCommands","filteredGroups","listRef","views","filter"],cd=t.createContext({search:"",setSearch:()=>{},selectedIndex:0,setSelectedIndex:()=>{},filteredCommands:[],onSelect:()=>{}}),dd=e=>{var{value:t,children:r}=e;return o.createElement(cd.Provider,{value:t},r)},ud=e=>{var{value:i,onValueChange:n,placeholder:a="Type a command or search...",views:l}=e,s=c(e,rd),d=t.useRef(null);return o.useEffect(()=>{d.current&&d.current.focus()},[]),o.createElement(r.View,Object.assign({},Gc,null==l?void 0:l.container,s),o.createElement(ho,{widthHeight:16,color:"color.gray.400",marginRight:"8px"}),o.createElement(r.View,Object.assign({as:"input",type:"text",value:i,onChange:e=>n(e.target.value),placeholder:a,width:"100%",border:"none",outline:"none",backgroundColor:"transparent",fontSize:"14px",ref:d},null==l?void 0:l.input)))},hd=e=>{var{heading:t,children:i,views:n}=e,a=c(e,nd);return o.createElement(r.View,Object.assign({},Uc,null==n?void 0:n.container,a),o.createElement(T,Object.assign({},Yc,null==n?void 0:n.heading),t),i)},gd=e=>{var{item:t,selected:i=!1,onSelect:n,views:a}=e,l=c(e,ad);return o.createElement(r.Horizontal,Object.assign({},Kc,i?Xc:{},t.disabled?qc:{},{onClick:()=>{!t.disabled&&n&&n()}},null==a?void 0:a.container,l),t.icon&&o.createElement(r.View,Object.assign({},Zc,null==a?void 0:a.icon),t.icon),o.createElement(r.Vertical,Object.assign({},Jc,null==a?void 0:a.content),o.createElement(T,Object.assign({},Qc,null==a?void 0:a.name),t.name),t.description&&o.createElement(T,Object.assign({},$c,null==a?void 0:a.description),t.description)),t.shortcut&&o.createElement(T,Object.assign({},ed,null==a?void 0:a.shortcut),t.shortcut))},md=e=>{var{children:t="No results found.",views:i}=e,n=c(e,ld);return o.createElement(r.View,Object.assign({},td,null==i?void 0:i.container,n),t)},pd=e=>{var{open:t,onOpenChange:i,groups:n=[],commands:a=[],placeholder:l,size:s="md",variant:d="default",emptyState:u,footer:h,search:g,setSearch:m,selectedIndex:p,setSelectedIndex:v,filteredCommands:b,filteredGroups:x,listRef:f,views:w}=e,E=c(e,sd);if(!t)return null;var y=o.useCallback(e=>{e.disabled||(e.onSelect(),i(!1),m(""))},[i,m]),C=o.useCallback(e=>e.target===e.currentTarget&&i(!1),[i]),j=o.useMemo(()=>({search:g,setSearch:m,selectedIndex:p,setSelectedIndex:v,filteredCommands:b,onSelect:y}),[g,p,b,y,m,v]),k=n.length>0,I=0===b.length;return o.createElement(r.View,Object.assign({position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",zIndex:9999,onClick:C},E),o.createElement(dd,{value:j},o.createElement(r.View,Object.assign({borderRadius:"8px",overflow:"hidden",display:"flex",flexDirection:"column"},Fc[s],Ac[d],null==w?void 0:w.container,{onClick:e=>e.stopPropagation()}),o.createElement(ud,{value:g,onValueChange:m,placeholder:l,views:null==w?void 0:w.searchInput}),o.createElement(r.View,Object.assign({ref:f,flex:1,overflow:"auto"},null==w?void 0:w.list),I?u||o.createElement(md,{views:null==w?void 0:w.empty}):k?x.map(e=>o.createElement(hd,{key:e.id,heading:e.name,views:null==w?void 0:w.groupHeading},e.commands.map(e=>{var t=b.findIndex(t=>t.id===e.id);return o.createElement(gd,{key:e.id,item:e,selected:t===p,onSelect:()=>y(e),"data-index":t,views:{container:null==w?void 0:w.item,icon:null==w?void 0:w.icon,content:null==w?void 0:w.content,name:null==w?void 0:w.name,description:null==w?void 0:w.description,shortcut:null==w?void 0:w.shortcut}})}))):b.map((e,t)=>o.createElement(gd,{key:e.id,item:e,selected:t===p,onSelect:()=>y(e),"data-index":t,views:{container:null==w?void 0:w.item,icon:null==w?void 0:w.icon,content:null==w?void 0:w.content,name:null==w?void 0:w.name,description:null==w?void 0:w.description,shortcut:null==w?void 0:w.shortcut}}))),h&&o.createElement(r.View,Object.assign({},od,null==w?void 0:w.footer),h))))},vd=["open","onOpenChange","groups","commands","placeholder","size","variant","filter","emptyState","footer","views"],bd=e=>{var{open:r,onOpenChange:i,groups:n=[],commands:a=[],placeholder:l,size:s="md",variant:d="default",filter:u,emptyState:h,footer:g,views:m}=e,p=c(e,vd),{search:v,setSearch:b,selectedIndex:x,setSelectedIndex:f,filteredCommands:w,filteredGroups:E,listRef:y}=(e=>{var{open:o,onOpenChange:r,groups:i=[],commands:n=[],filter:a}=e,[l,s]=t.useState(""),[c,d]=t.useState(0),u=t.useRef(null),h=t.useMemo(()=>a||Dc,[a]),g=t.useMemo(()=>[...i.flatMap(e=>e.commands),...n],[i,n]),m=t.useMemo(()=>l.trim()?g.filter(e=>h(l,e)):g,[g,l,h]),p=t.useMemo(()=>{if(!l)return i;var e=a||Dc;return i.map(t=>Object.assign({},t,{commands:t.commands.filter(t=>e(l,t))})).filter(e=>e.commands.length)},[i,l,a]);t.useEffect(()=>{d(0)},[m.length]);var v=t.useCallback(e=>{if(o)switch(e.key){case"ArrowDown":e.preventDefault(),d(e=>e<m.length-1?e+1:e);break;case"ArrowUp":e.preventDefault(),d(e=>e>0?e-1:e);break;case"Enter":e.preventDefault(),m[c]&&(m[c].onSelect(),r(!1),s(""));break;case"Escape":e.preventDefault(),r(!1),s("")}},[o,m,c,r]);return t.useEffect(()=>(document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}),[v]),t.useEffect(()=>{if(u.current&&o){var e=u.current.querySelector('[data-index="'+c+'"]');e&&e.scrollIntoView({block:"nearest"})}},[c,o]),t.useEffect(()=>{o?d(0):s("")},[o]),{search:l,setSearch:s,selectedIndex:c,setSelectedIndex:d,filteredCommands:m,filteredGroups:p,listRef:u}})({open:r,onOpenChange:i,groups:n,commands:a,filter:u});return o.createElement(pd,Object.assign({open:r,onOpenChange:i,groups:n,commands:a,placeholder:l,size:s,variant:d,emptyState:h,footer:g,search:v,setSearch:b,selectedIndex:x,setSelectedIndex:f,filteredCommands:w,filteredGroups:E,listRef:y,views:m},p))};bd.Input=ud,bd.List=e=>{var{children:t,views:i}=e,n=c(e,id);return o.createElement(r.View,Object.assign({},Nc,null==i?void 0:i.container,n),t)},bd.Group=hd,bd.Item=gd,bd.Empty=md;var xd=()=>Math.random().toString(36).substring(2,11),fd={sm:{padding:"4px 8px",fontSize:"12px",maxWidth:"200px"},md:{padding:"6px 10px",fontSize:"14px",maxWidth:"250px"},lg:{padding:"8px 12px",fontSize:"16px",maxWidth:"300px"}},wd=(e=>({default:{backgroundColor:"color.gray.800",color:"color.white"},light:{backgroundColor:"color.white",color:"color.gray.800",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200"},dark:{backgroundColor:"color.black",color:"color.white"}}))(),Ed=["children","views","asChild"],yd=["children","views"],Cd=["content","children","position","align","size","variant","showArrow","views","themeMode"],jd=t.createContext({isOpen:!1,openTooltip:()=>{},closeTooltip:()=>{},triggerRef:{current:null},contentRef:{current:null},contentId:"",triggerId:""}),kd=()=>t.useContext(jd),Id=e=>{var{value:t,children:r}=e;return o.createElement(jd.Provider,{value:t},r)},Od=e=>{var{children:t,views:i,asChild:n=!1}=e,a=c(e,Ed),{openTooltip:l,closeTooltip:s,triggerRef:d,contentId:u,triggerId:h}=kd(),g=Object.assign({ref:d,onMouseEnter:()=>l(),onMouseLeave:()=>s(),onFocus:()=>l(),onBlur:()=>s(),id:h,"aria-describedby":u},null==i?void 0:i.container,a);return n&&o.isValidElement(t)?o.cloneElement(t,g):o.createElement(r.View,Object.assign({display:"inline-block"},g),t)},Sd=e=>{var{content:t,children:i,position:n="top",align:a="center",size:l="md",variant:s="default",showArrow:d=!0,views:u}=e,h=c(e,Cd),{isOpen:g,contentRef:m,contentId:p,triggerId:v}=kd(),b=((e,t)=>{var o={position:"absolute",zIndex:1e3};switch(e){case"top":return Object.assign({},o,{bottom:"100%",marginBottom:"8px"},"start"===t?{left:"0"}:"end"===t?{right:"0"}:{left:"50%",transform:"translateX(-50%)"});case"right":return Object.assign({},o,{left:"100%",marginLeft:"8px"},"start"===t?{top:"0"}:"end"===t?{bottom:"0"}:{top:"50%",transform:"translateY(-50%)"});case"bottom":return Object.assign({},o,{top:"100%",marginTop:"8px"},"start"===t?{left:"0"}:"end"===t?{right:"0"}:{left:"50%",transform:"translateX(-50%)"});case"left":return Object.assign({},o,{right:"100%",marginRight:"8px"},"start"===t?{top:"0"}:"end"===t?{bottom:"0"}:{top:"50%",transform:"translateY(-50%)"});default:return o}})(n,a),x=d?(e=>{var t={position:"absolute",width:"8px",height:"8px",backgroundColor:"inherit",borderStyle:"inherit",borderWidth:"inherit",borderColor:"inherit",transform:"rotate(45deg)"};switch(e){case"top":return Object.assign({},t,{bottom:"-4px",left:"50%",marginLeft:"-4px",borderTop:"none",borderLeft:"none"});case"right":return Object.assign({},t,{left:"-4px",top:"50%",marginTop:"-4px",borderRight:"none",borderTop:"none"});case"bottom":return Object.assign({},t,{top:"-4px",left:"50%",marginLeft:"-4px",borderBottom:"none",borderRight:"none"});case"left":return Object.assign({},t,{right:"-4px",top:"50%",marginTop:"-4px",borderLeft:"none",borderBottom:"none"});default:return t}})(n):{};return o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},null==u?void 0:u.container,h),o.createElement(Od,null,i),g&&o.createElement(r.View,Object.assign({ref:m,id:p,role:"tooltip","aria-labelledby":v,borderRadius:4,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.15)"},fd[l],wd[s],b,null==u?void 0:u.content),"string"==typeof t?o.createElement(r.Text,Object.assign({},null==u?void 0:u.text),t):t,d&&o.createElement(r.View,Object.assign({},x,null==u?void 0:u.arrow))))},zd=["content","children","position","align","size","variant","openDelay","closeDelay","showArrow","defaultOpen","isDisabled","views"],Hd=e=>{var{content:r,children:i,position:n="top",align:a="center",size:l="md",variant:s="default",openDelay:d=200,closeDelay:u=200,showArrow:h=!0,defaultOpen:g=!1,isDisabled:m=!1,views:p}=e,v=c(e,zd),b=function(e){var{defaultOpen:o=!1,openDelay:r=200,closeDelay:i=200,isDisabled:n=!1}=void 0===e?{}:e,[a,l]=t.useState(o),s=t.useRef(null),c=t.useRef(null),d=t.useRef(null),u=t.useRef(null),h=t.useRef("tooltip-trigger-"+xd()).current,g=t.useRef("tooltip-content-"+xd()).current,m=t.useCallback(()=>{n||(u.current&&(clearTimeout(u.current),u.current=null),a||d.current||(d.current=setTimeout(()=>{l(!0),d.current=null},r)))},[a,r,n]),p=t.useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=null),a&&!u.current&&(u.current=setTimeout(()=>{l(!1),u.current=null},i))},[a,i]),v=t.useCallback(()=>{u.current&&(clearTimeout(u.current),u.current=null)},[]);return t.useEffect(()=>()=>{d.current&&clearTimeout(d.current),u.current&&clearTimeout(u.current)},[]),t.useEffect(()=>{var e=e=>{"Escape"===e.key&&a&&l(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[a]),{isOpen:a,openTooltip:m,closeTooltip:p,cancelCloseTimer:v,triggerRef:s,contentRef:c,triggerId:h,contentId:g}}({defaultOpen:g,openDelay:d,closeDelay:u,isDisabled:m});return o.createElement(Id,{value:b},o.createElement(Sd,Object.assign({content:r,position:n,align:a,size:l,variant:s,showArrow:h,views:p},v),i))};Hd.Trigger=Od,Hd.Content=e=>{var{children:t,views:i}=e,n=c(e,yd),{isOpen:a,contentRef:l,contentId:s,triggerId:d}=kd();return a?o.createElement(r.View,Object.assign({ref:l,id:s,role:"tooltip","aria-labelledby":d},null==i?void 0:i.container,n),t):null},exports.Accordion=y,exports.Alert=e=>o.createElement(Vo,Object.assign({},e)),exports.ArrowIcon=xo,exports.AspectRatio=e=>{var{ratio:t,children:r}=e,i=c(e,_o);return o.createElement(Bo,Object.assign({ratio:t},i),r)},exports.Avatar=e=>{var{src:r,size:i,views:n,fallback:a,onClick:l}=e,{imageError:s,setImageError:c}=(()=>{var[e,o]=t.useState(!1);return{imageError:e,setImageError:o}})();return o.createElement(Go,{src:r,size:i,views:n,fallback:a,imageError:s,setImageError:c,onClick:l})},exports.Badge=e=>o.createElement(Xo,Object.assign({},e)),exports.BatteryIcon=Ht,exports.BluetoothIcon=ao,exports.BoldArrowIcon=bo,exports.BookmarkIcon=Mt,exports.Button=pr,exports.CalendarIcon=wo,exports.CameraIcon=no,exports.Card=Or,exports.Carousel=Yr,exports.Chart=e=>o.createElement(vi,Object.assign({},e)),exports.ChartIcon=zo,exports.CheckIcon=To,exports.Checkbox=e=>{var t=Rn(e);return o.createElement(Dn,Object.assign({},t,e))},exports.ChevronIcon=st,exports.ClockIcon=io,exports.CloseEyeIcon=go,exports.CloseIcon=vt,exports.CloudIcon=Tt,exports.ComboBox=e=>{var{id:t,name:r,items:i,placeholder:n,searchPlaceholder:a}=e,l=c(e,ca),s=aa(i,n,a);return o.createElement(sa,Object.assign({id:t,name:r,items:i},s,l))},exports.Command=bd,exports.ContextMenu=Bi,exports.CookieConsent=e=>o.createElement(xi,Object.assign({},e)),exports.CopyIcon=Wt,exports.CountryPicker=e=>{var t=An(e);return o.createElement(Qn,Object.assign({},t,e))},exports.CropIcon=yo,exports.DatePicker=e=>{var t=$n();return o.createElement(oa,Object.assign({},t,e))},exports.DeleteIcon=Vt,exports.Divider=Zs,exports.DocumentIcon=So,exports.DownloadIcon=_t,exports.DragAndDrop=Nl,exports.DragAndDropComponent=Gl,exports.DragHandleIcon=ct,exports.DropdownMenu=ss,exports.DustBinIcon=Rt,exports.EditIcon=Lt,exports.ErrorIcon=Bt,exports.ExternalLinkIcon=mo,exports.FacebookIcon=ft,exports.FileIcon=dt,exports.FileImage=e=>{var{path:t}=e,i=c(e,Pi);return o.createElement(r.Image,Object.assign({src:t},i))},exports.FileSVG=e=>{var{src:t,color:i,views:n}=e,a=c(e,_i),{getColor:l,themeMode:s}=r.useTheme(),d=i?{fill:l(i,{themeMode:s}),stroke:l(i,{themeMode:s})}:{};return o.createElement(r.Center,Object.assign({},a,null==n?void 0:n.container),o.createElement(r.Image,Object.assign({},d,{content:'url("'+t+'")',width:"100%",height:"100%"},null==n?void 0:n.image)))},exports.FilterIcon=Yt,exports.FormikCheckbox=e=>{var t=xa(e),{value:r}=t,i=c(t,fa);i.isChecked=r;var n=Rn(e);return o.createElement(Dn,Object.assign({},n,i))},exports.FormikComboBox=e=>{var{items:t,placeholder:r,searchPlaceholder:i}=e,n=c(e,Ca),a=xa(n),l=aa(t,r,i);return o.createElement(sa,Object.assign({},l,a,{onSelect:e=>{a.onChange(e)}}))},exports.FormikCountryPicker=e=>{var t=xa(e),r=An(e);return o.createElement(Qn,Object.assign({},r,t))},exports.FormikDatePicker=e=>{var t=xa(e),r=$n();return o.createElement(oa,Object.assign({},r,t))},exports.FormikForm=e=>{var{children:i,autoFocus:n=!1,initFocus:a,onChange:s=(()=>{})}=e,d=c(e,pa),u=l.useFormikContext();t.useEffect(()=>{s(u.values)},[u.values]);var h=t.useRef({}),g=t.useRef([]),m=e=>{if(n){var t,o=g.current.indexOf(e)+1;o<g.current.length?null==(t=h.current[g.current[o]])||t.focus():u.onSubmit&&u.onSubmit(u.values)}},p={active:n,focusNextInput:m,setInputRef:(e,t)=>{h.current[e]=t,g.current.includes(e)||g.current.push(e)},handleSubmitEditing:m,getReturnKeyType:e=>g.current.indexOf(e)===g.current.length-1?"done":"next"};return t.useEffect(()=>{var e;if(n)if(a&&h.current[a])null==(e=h.current[a])||e.focus();else if(g.current[0]){var t;null==(t=h.current[g.current[0]])||t.focus()}},[n,a]),o.createElement(va.Provider,{value:p},o.createElement(r.Form,Object.assign({},d),i))},exports.FormikOTPInput=e=>{var r=xa(e),{isFocused:i,setIsFocused:n,isHovered:a,setIsHovered:l,inputRef:s,containerRef:c,mirrorSelectionStart:d,mirrorSelectionEnd:u,setMirrorSelectionStart:h,setMirrorSelectionEnd:g,setInputRef:m,handleFocus:p,handleBlur:v,handleKeyDown:b,handlePaste:x}=da(e),f=t.useCallback(t=>{r.onChange&&r.onChange(t),e.onComplete&&t.length===(e.length||6)&&e.onComplete(t),s.current&&(s.current.value=t)},[r,e,s]),w=t.useCallback(t=>{var o=t.currentTarget.value.slice(0,e.length||6);f(o),s.current&&(s.current.value=o)},[e.length,f,s]);return o.createElement(ma,Object.assign({},e,r,{setValue:f,isFocused:i,setIsFocused:n,isHovered:a,setIsHovered:l,inputRef:s,containerRef:c,mirrorSelectionStart:d,mirrorSelectionEnd:u,setMirrorSelectionStart:h,setMirrorSelectionEnd:g,setInputRef:m,handleChange:w,handleFocus:p,handleBlur:v,handleKeyDown:b,handlePaste:x,stepValues:e.stepValues}))},exports.FormikPassword=e=>{var{visibleIcon:t=o.createElement($t,{widthHeight:14}),hiddenIcon:i=o.createElement(go,{widthHeight:14})}=e,n=c(e,Ea),a=xa(n),l=ra(a),{isVisible:s,setIsVisible:d}=l,u=c(l,ya);return o.createElement(Wn,Object.assign({},u,{type:s?"text":"password",isClearable:!1,right:o.createElement(r.View,{onClick:()=>{n.isDisabled||d(!s)}},s?t:i)}))},exports.FormikSelect=e=>{var t=xa(e);t.selected=t.value;var r=Di(e);return o.createElement(fn,Object.assign({},r,t))},exports.FormikSlider=e=>{var t=xa(e),r=ka(Object.assign({},e,{value:void 0!==t.value?Number(t.value):void 0,onChange:o=>{t.onChange(o),null==e.onChange||e.onChange(o)}}));return o.createElement(Wa,Object.assign({},e,r,t))},exports.FormikSwitch=e=>{var t=xa(e),r=wn(e);return o.createElement(In,Object.assign({},r,t))},exports.FormikTextArea=e=>{var t=xa(e),r=On(e);return o.createElement(zn,Object.assign({},r,t))},exports.FormikTextField=e=>{var t=xa(e),r=c(Hn(e),wa);return o.createElement(Wn,Object.assign({},r,t))},exports.GiftIcon=Ho,exports.HeartIcon=It,exports.HelpIcon=lt,exports.HomeIcon=Kt,exports.HoverCard=vs,exports.Icon=Wo,exports.ImageIcon=ht,exports.InfoIcon=Ct,exports.InstagramIcon=bt,exports.LikeIcon=lo,exports.Link=Qo,exports.LinkedinIcon=wt,exports.Loader=cr,exports.LocationIcon=Xt,exports.LockIcon=qt,exports.MagicWandIcon=Gt,exports.MenuIcon=Pt,exports.Menubar=Ws,exports.MessageLayout=e=>{var{container:t,theme:i,position:n="topRight"}=e,{visible:a,title:l,variant:s,subtitle:c,isClosable:d,views:u,action:h,actionText:g,showIcon:m,timeout:p}=Ra(),v={topLeft:{top:6,left:8},topRight:{top:6,right:8},bottomLeft:{bottom:8,left:6},bottomRight:{bottom:8,right:6}}[n],b=()=>o.createElement(_a,{variant:s,subtitle:c,show:a,title:l,theme:i,isClosable:d,views:u,action:h,actionText:g,showIcon:m,timeout:p,hide:()=>La()}),x=t?o.cloneElement(t,{},b()):o.createElement(r.View,Object.assign({position:"absolute",zIndex:1e4},v),b());return a?x:null},exports.MessageView=_a,exports.MicrophoneIcon=Zt,exports.MinusIcon=yt,exports.Modal=Qa,exports.MoonIcon=Jt,exports.NavigationMenu=ml,exports.NotificationIcon=Qt,exports.OTPInput=e=>{var{value:t}=e,{value:r,setValue:i,isFocused:n,setIsFocused:a,isHovered:l,setIsHovered:s,inputRef:c,containerRef:d,mirrorSelectionStart:u,mirrorSelectionEnd:h,setMirrorSelectionStart:g,setMirrorSelectionEnd:m,setInputRef:p,handleChange:v,handleFocus:b,handleBlur:x,handleKeyDown:f,handlePaste:w,handleKeyPress:E}=da(e);return o.createElement(ma,Object.assign({},e,{value:void 0!==t?t:r,setValue:i,isFocused:n,setIsFocused:a,isHovered:l,setIsHovered:s,inputRef:c,containerRef:d,mirrorSelectionStart:u,mirrorSelectionEnd:h,setMirrorSelectionStart:g,setMirrorSelectionEnd:m,setInputRef:p,handleChange:v,handleFocus:b,handleBlur:x,handleKeyDown:f,handleKeyPress:E,handlePaste:w,stepValues:e.stepValues}))},exports.OpenEyeIcon=$t,exports.Pagination=e=>{var{currentPage:r,totalPages:i,onPageChange:n,pageSize:a=10,pageSizeOptions:l,onPageSizeChange:s,showPageSizeSelector:d=!1,showPageInfo:u=!0,maxPageButtons:h=5,showFirstLastButtons:g=!1,size:m="md",variant:p="default",shape:v="rounded",views:b}=e,x=c(e,Fs),{visiblePageNumbers:f}=((e,o,r)=>{var[i,n]=t.useState([]);return t.useEffect(()=>{n((()=>{var t=[];if(o<=r)for(var i=1;i<=o;i++)t.push(i);else{t.push(1);var n=Math.max(2,e-Math.floor((r-2)/2)),a=Math.min(o-1,n+r-3);a>=o-1&&(a=o-1,n=Math.max(2,a-(r-3))),n>2&&t.push("...");for(var l=n;l<=a;l++)t.push(l);a<o-1&&t.push("..."),t.push(o)}return t})())},[e,o,r]),{visiblePageNumbers:i}})(r,i,h);return o.createElement(Ds,Object.assign({currentPage:r,totalPages:i,onPageChange:n,pageSize:a,pageSizeOptions:l,onPageSizeChange:s,showPageSizeSelector:d,showPageInfo:u,maxPageButtons:h,showFirstLastButtons:g,size:m,variant:p,shape:v,visiblePageNumbers:f,views:b},x))},exports.PanelIcon=Ut,exports.Password=e=>{var{visibleIcon:t=o.createElement($t,{widthHeight:14}),hiddenIcon:i=o.createElement(go,{widthHeight:14})}=e,n=c(e,ia),a=ra(n),{isVisible:l,setIsVisible:s}=a,d=c(a,na);return o.createElement(Wn,Object.assign({},d,{type:l?"text":"password",isClearable:!1,right:o.createElement(r.View,{onClick:()=>{n.isDisabled||s(!l)}},l?t:i)}))},exports.PauseIcon=kt,exports.PlayIcon=jt,exports.PlusIcon=po,exports.PrintIcon=At,exports.ProfileIcon=eo,exports.RefreshIcon=Ft,exports.Resizable=jc,exports.RotateIcon=Oo,exports.SaveIcon=St,exports.SearchIcon=ho,exports.Select=e=>{var t=Di(e);return o.createElement(fn,Object.assign({},t,e))},exports.Separator=qs,exports.SettingsIcon=to,exports.ShapeIcon=Io,exports.ShareIcon=Dt,exports.ShieldIcon=Mo,exports.Sidebar=uc,exports.Slider=e=>{var t=ka(e);return o.createElement(Wa,Object.assign({},e,t))},exports.SliderIcon=Eo,exports.SliderVerticalIcon=Nt,exports.SpinnerIcon=fo,exports.StarIcon=Ot,exports.SuccessIcon=oo,exports.Switch=e=>{var t=wn(e);return o.createElement(In,Object.assign({},t,e))},exports.Table=Sl,exports.Tabs=Ml,exports.Text=T,exports.TextArea=e=>{var t=On(e);return o.createElement(zn,Object.assign({},t,e))},exports.TextField=e=>{var t=Hn(e);return o.createElement(Wn,Object.assign({},t,e))},exports.TextIcon=ko,exports.ThreadsIcon=Et,exports.TickIcon=vo,exports.Title=e=>o.createElement(Ll,Object.assign({},e)),exports.Toast=Pc,exports.Toggle=Dl,exports.ToggleGroup=e=>{var{items:r,shape:i,variant:n,onToggleChange:a}=e,{activeToggles:l,setActiveToggles:s}=(()=>{var[e,o]=t.useState([]);return{activeToggles:e,setActiveToggles:o}})();return o.createElement(Fl,{items:r,shape:i,variant:n,activeToggles:l,setActiveToggles:s,onToggleChange:a})},exports.Tooltip=Hd,exports.TwitchIcon=pt,exports.TwitterIcon=gt,exports.UnLikeIcon=ro,exports.UnlockIcon=so,exports.UploadIcon=uo,exports.Uploader=e=>{var{accept:r="*/*",icon:i,text:n,maxSize:a,onFileSelect:l,validateFile:s,isLoading:d=!1,progress:u=0,fileType:h}=e,g=c(e,Da),{previewUrl:m,thumbnailUrl:p,errorMessage:v,videoRef:b,fileInputRef:x,selectedFile:f,handleFileChange:w,handleClick:E}=(e=>{var{maxSize:o=104857600,onFileSelect:r,validateFile:i,thumbnail:n,onError:a=(e=>{Va("error","Error",e)})}=e,l=t.useRef(null),s=t.useRef(null),[c,d]=t.useState(null),[u,h]=t.useState(null),[g,m]=t.useState(null),[p,v]=t.useState(n||null),b=t.useCallback(e=>{var t,n=null==(t=e.target.files)?void 0:t[0];if(h(null),!n)return a("No file selected"),void h("No file selected");if(n.size>o)return a("File exceeds "+Math.round(o/1048576)+"MB."),void h("File exceeds "+Math.round(o/1048576)+"MB.");if(i){var l=i(n);if(l)return a(l),void h(l)}m(URL.createObjectURL(n)),n.type.startsWith("video/")&&((e,t)=>{var o=document.createElement("video");o.preload="metadata",o.onloadedmetadata=()=>{o.currentTime=1},o.oncanplay=()=>{var e=document.createElement("canvas");e.width=o.videoWidth,e.height=o.videoHeight;var r=e.getContext("2d");if(r){r.drawImage(o,0,0,e.width,e.height);var i=e.toDataURL("image/jpeg");t(i)}URL.revokeObjectURL(o.src)},o.src=URL.createObjectURL(e)})(n,v),r&&(d(n),r(n))},[o,r,i]);return t.useEffect(()=>()=>{g&&URL.revokeObjectURL(g),p&&URL.revokeObjectURL(p)},[g,p]),{previewUrl:g,thumbnailUrl:p,errorMessage:u,fileInputRef:l,videoRef:s,selectedFile:c,handleFileChange:b,handleClick:()=>{var e;return null==(e=l.current)?void 0:e.click()}}})({accept:r,maxSize:a,onFileSelect:l,validateFile:s}),y=h||(f?f.type.startsWith("image/")?"image":f.type.startsWith("video/")?"video":"file":void 0);return o.createElement(Pa,Object.assign({handleClick:E,accept:r,isLoading:d,progress:u,icon:i,text:n,maxSize:a,onFileSelect:l,validateFile:s,errorMessage:v,handleFileChange:w,selectedFile:f,videoRef:b,fileInputRef:x,previewUrl:m,thumbnailUrl:p,fileType:y},g))},exports.UserIcon=at,exports.VideoIcon=ut,exports.WarningIcon=zt,exports.WifiIcon=co,exports.XIcon=mt,exports.YoutubeIcon=xt,exports.ZoomInIcon=Co,exports.ZoomOutIcon=jo,exports.hideMessage=La,exports.hideModal=Aa,exports.showMessage=Va,exports.showModal=function(e,t,o){void 0===t&&(t={}),void 0===o&&(o={}),Fa.getState().show(e,t,o),Fa.getState().onShow(e,t)},exports.useMessageStore=Ra,exports.useModalStore=Fa,exports.useToast=()=>({toast:(e,t,o,r)=>zc(e,t,o,r),info:(e,t,o)=>Hc(e,t,o),success:(e,t,o)=>Mc(e,t,o),warning:(e,t,o)=>Tc(e,t,o),error:(e,t,o)=>Wc(e,t,o),remove:e=>Rc(e),removeAll:()=>Vc()});
2
2
  //# sourceMappingURL=web.cjs.production.min.js.map