@app-studio/web 0.8.97 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Icon/Icon.d.ts +1 -0
- package/dist/web.cjs.development.js +6 -3
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +6 -4
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +6 -3
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -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 n=require("react-router-dom"),i=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");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=require("src/components/Loader/Loader"),c=require("src/components/Icon/Icon");function u(e,t,o,r,n,i,a){try{var l=e[i](a),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(r,n)}function g(e){return function(){var t=this,o=arguments;return new Promise((function(r,n){var i=e.apply(t,o);function a(e){u(i,r,n,a,l,"next",e)}function l(e){u(i,r,n,a,l,"throw",e)}a(void 0)}))}}function h(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}var m=function(e){return void 0===e&&(e="id"),e+"-"+Math.random().toString(36).substring(2,9)},p={sharp:{borderRadius:0},rounded:{borderRadius:8}},v={default:{backgroundColor:"transparent",borderWidth:0},outline:{borderWidth:1,borderStyle:"solid",borderColor:"color.gray.200"},filled:{backgroundColor:"color.gray.50"}},b=["value","children","isDisabled","views"],x=["children","value","isExpanded","isDisabled","triggerId","contentId","views","asChild"],f=["children","isExpanded","isDisabled","triggerId","contentId","views"],w=["children","shape","variant","views","baseId","type","collapsible","themeMode"],E=t.createContext({expandedItems:[],toggleItem:()=>{},isItemExpanded:()=>!1,type:"single",collapsible:!1,baseId:""}),y=e=>{var{children:t,value:r}=e;return o.createElement(E.Provider,{value:r},t)},C=()=>{var e=t.useContext(E);if(!e)throw new Error("useAccordionContext must be used within an AccordionProvider");return e},k=e=>{var{children:t,shape:n="rounded",variant:i="default",views:a}=e,l=h(e,w);return o.createElement(r.Vertical,Object.assign({width:"100%","data-orientation":"vertical"},p[n],v[i],null==a?void 0:a.container,l),t)},j=["children","type","value","defaultValue","onValueChange","collapsible","shape","variant","views"],I=e=>{var{children:r,type:n="single",value:i,defaultValue:a,onValueChange:l,collapsible:s=!1,shape:d="rounded",variant:c="default",views:u}=e,g=h(e,j),p=Array.isArray(a)?a:a?[a]:void 0,v=(e=>{var{type:o="single",value:r,defaultValue:n,onValueChange:i,collapsible:a=!1}=e,l=void 0!==r,s=null!=r?r:n,[d,c]=t.useState("multiple"===o?Array.isArray(s)?s:s?[s]:[]:Array.isArray(s)?s[0]:s),u=t.useMemo(()=>m("accordion"),[]),g=l?r:d,h=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),c(r.length>0?r[0]:void 0)):c(r):(console.warn('Accordion with type="multiple" received non-array value:',r),c(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||c(t),i&&i(t)},[o,g,a,l,i]),v=t.useCallback(e=>h.includes(e),[h]);return{expandedItems:h,toggleItem:p,isItemExpanded:v,type:o,collapsible:a,baseId:u}})({type:n,value:i,defaultValue:null!=a?a:p,onValueChange:l,collapsible:s});return o.createElement(y,{value:{expandedItems:v.expandedItems,toggleItem:v.toggleItem,isItemExpanded:v.isItemExpanded,type:v.type,collapsible:v.collapsible,baseId:v.baseId}},o.createElement(k,Object.assign({shape:d,variant:c,views:u,baseId:v.baseId,type:v.type,collapsible:v.collapsible},g),r))};I.Item=e=>{var{value:t,children:n,isDisabled:i=!1,views:a}=e,l=h(e,b),{isItemExpanded:s,baseId:d}=C(),c=s(t),u=d+"-trigger-"+t,g=d+"-content-"+t;return o.createElement(r.View,Object.assign({borderWidth:1,borderStyle:"solid",borderColor:"color.gray.200",marginBottom:8,overflow:"hidden",opacity:i?.5:1,pointerEvents:i?"none":"auto","data-state":c?"open":"closed","data-disabled":i?"":void 0},null==a?void 0:a.item,l),o.Children.map(n,e=>o.isValidElement(e)?o.cloneElement(e,Object.assign({},e.props,{value:t,isExpanded:c,isDisabled:i,triggerId:u,contentId:g})):e))},I.Trigger=e=>{var{children:n,value:i,isExpanded:a,isDisabled:l,triggerId:s,contentId:d,views:c,asChild:u=!1}=e,g=h(e,x),{toggleItem:m}=C(),p=Object.assign({id:s,"aria-expanded":a,"aria-controls":d,"aria-disabled":l,"data-state":a?"open":"closed","data-disabled":l?"":void 0,onClick:()=>{i&&!l&&m(i)},padding:16,cursor:l?"not-allowed":"pointer",alignItems:"center",justifyContent:"space-between",backgroundColor:"color.white",width:"100%"},null==c?void 0:c.container,g);if(u&&t.isValidElement(n)){var v=t.Children.only(n);return t.cloneElement(v,Object.assign({},p,v.props))}return o.createElement(r.Horizontal,Object.assign({},p),n,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==c?void 0:c.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"}))))},I.Content=e=>{var{children:t,isExpanded:n,isDisabled:i,triggerId:a,contentId:l,views:s}=e,d=h(e,f);return n?o.createElement(r.View,Object.assign({id:l,role:"region","aria-labelledby":a,padding:16,backgroundColor:"color.white",maxHeight:n?"1000px":"0",transition:"max-height 0.3s ease-in-out, opacity 0.3s ease-in-out",opacity:1,overflow:"hidden","data-state":n?"open":"closed","data-disabled":i?"":void 0},null==s?void 0:s.container,d),t):null};var S={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"}},O={xs:"10px",sm:"12px",md:"14px",lg:"16px",xl:"20px"},z={xs:"14px",sm:"16px",md:"20px",lg:"22px",xl:"28px"},H={hairline:"100",thin:"200",light:"300",normal:"400",medium:"500",semiBold:"600",bold:"700",extraBold:"800",black:"900"},M=["text","maxLines","views"],T=["children","heading","maxLines","isItalic","isUnderlined","isSub","isSup","isStriked","weight","size","views"],R=e=>{var{children:t,isSub:n,isSup:i,views:a}=e;return o.createElement(o.Fragment,null,"string"==typeof t?o.createElement(o.Fragment,null,n&&o.createElement(r.View,Object.assign({as:"sub",fontSize:"75%",lineHeight:"0",position:"relative",bottom:"-0.25em"},null==a?void 0:a.sup),t),i&&o.createElement(r.View,Object.assign({as:"sup",fontSize:"75%",lineHeight:"0",position:"relative",top:"-0.5em"},null==a?void 0:a.sup),t),!n&&!i&&o.createElement(o.Fragment,null,t)):t)},D=e=>{var{text:n,maxLines:i=1,views:a}=e,l=h(e,M),s=t.useRef(null),[d,c]=t.useState(n),[u,g]=t.useState(!1);return t.useEffect(()=>{var e=s.current;if(!e||!n||i<=0)return c(null!=n?n:""),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=n[0]||"M";var l=e.offsetHeight;if(!l){var d=getComputedStyle(e);l="normal"!==d.lineHeight?parseFloat(d.lineHeight):1.2*parseFloat(d.fontSize||"16")}var u=l*i;if(e.innerText=n,e.offsetHeight<=u)return c(n),g(!1),void x(e);for(var h=0,m=n.length,p=0;h<=m;){var v=Math.floor((h+m)/2);e.innerText=n.slice(0,v),e.offsetHeight<=u?(p=v,h=v+1):m=v-1}var b=p<n.length?n.slice(0,n.length>p+3?p-3:p).trimEnd()+"…":n;function x(e){e.style.overflow=t,e.style.height=o,e.style.maxHeight=r,e.style.lineHeight=a}c(b),g(p<n.length),x(e)},[n,i]),o.createElement(r.Text,Object.assign({ref:s,overflow:"hidden"},null==a?void 0:a.truncateText,l,{title:u?n:void 0}),d)},W=e=>{var{children:t,heading:n,maxLines:i,isItalic:a=!1,isUnderlined:l=!1,isSub:s=!1,isSup:d=!1,isStriked:c=!1,weight:u="normal",size:g="md",views:m}=e,p=h(e,T);return o.createElement(r.Element,Object.assign({fontSize:O[g],lineHeight:z[g],fontStyle:a?"italic":"normal",fontWeight:H[u],letterSpacing:"-0.01em",textDecoration:c?"line-through":l?"underline":"none"},s||d?{display:"inline"}:{},n?S[n]:{},p,null==m?void 0:m.container),i&&"string"==typeof t?o.createElement(D,{text:t,maxLines:i}):o.createElement(R,{isSub:s,isSup:d},t))},V=e=>o.createElement(W,Object.assign({},e)),L=["widthHeight","color","transform","orientation","children"],B=["widthHeight","color","filled","strokeWidth"],P=["widthHeight","color","strokeWidth","filled"],_=["widthHeight","color","filled","strokeWidth"],A=["widthHeight","color","filled","strokeWidth"],F=["widthHeight","color","filled","strokeWidth"],N=["widthHeight","color","filled","strokeWidth"],U=["widthHeight","color","filled","strokeWidth"],G=["widthHeight","color","filled","strokeWidth"],Y=["widthHeight","color","filled","strokeWidth"],K=["widthHeight","color","filled","strokeWidth"],X=["widthHeight","color","filled","strokeWidth"],Z=["widthHeight","color","filled","strokeWidth"],q=["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"],ne=["widthHeight","color","filled","strokeWidth"],ie=["widthHeight","color","filled","strokeWidth"],ae=["widthHeight","color","filled","strokeWidth"],le=["widthHeight","color","filled","strokeWidth"],se=["widthHeight","color","filled","strokeWidth"],de=["widthHeight","color","filled","strokeWidth"],ce=["widthHeight","color","filled","strokeWidth"],ue=["widthHeight","color","filled","strokeWidth"],ge=["widthHeight","color","filled","strokeWidth"],he=["widthHeight","color","filled","strokeWidth"],me=["widthHeight","color","filled","strokeWidth"],pe=["widthHeight","color","strokeWidth","filled"],ve=["widthHeight","color","filled","strokeWidth"],be=["widthHeight","color","strokeWidth","filled"],xe=["widthHeight","color","filled","strokeWidth"],fe=["widthHeight","color","strokeWidth","filled"],we=["widthHeight","color","filled","strokeWidth"],Ee=["widthHeight","color","strokeWidth","filled"],ye=["widthHeight","color","strokeWidth","filled"],Ce=["widthHeight","color","strokeWidth","filled"],ke=["widthHeight","color","filled","strokeWidth"],je=["widthHeight","color","filled","strokeWidth"],Ie=["widthHeight","color","filled","strokeWidth"],Se=["widthHeight","color","filled","strokeWidth"],Oe=["widthHeight","color","filled","strokeWidth"],ze=["widthHeight","color","filled","strokeWidth"],He=["widthHeight","color","filled","strokeWidth"],Me=["widthHeight","color","filled","strokeWidth"],Te=["widthHeight","color","filled","strokeWidth"],Re=["widthHeight","color","filled","strokeWidth"],De=["widthHeight","color","filled","strokeWidth"],We=["widthHeight","color","filled","strokeWidth"],Ve=["widthHeight","color","strokeWidth","filled"],Le=["widthHeight","color","strokeWidth","filled"],Be=["widthHeight","color","filled","strokeWidth"],Pe=["widthHeight","color","filled","strokeWidth"],_e=["widthHeight","color","filled","strokeWidth"],Ae=["widthHeight","color","filled","strokeWidth"],Fe=["widthHeight","color","filled","strokeWidth"],Ne=["widthHeight","color","filled","strokeWidth"],Ue=["widthHeight","color","filled","strokeWidth"],Ge=["widthHeight","color","filled","strokeWidth"],Ye=["widthHeight","color","filled","strokeWidth"],Ke=["widthHeight","color","filled","strokeWidth"],Xe=["widthHeight","color","filled","strokeWidth"],Ze=["widthHeight","color","filled","strokeWidth"],qe=["widthHeight","color","filled","strokeWidth"],Je=["widthHeight","color","filled","strokeWidth"],Qe=["widthHeight","color","filled","strokeWidth"],$e=["widthHeight","color","filled","strokeWidth"],et=["widthHeight","color","filled","strokeWidth"],tt=["widthHeight","color","filled","strokeWidth"],ot=["widthHeight","color","filled","strokeWidth"],rt=["widthHeight","color","strokeWidth","filled"],nt=["widthHeight","color","strokeWidth","filled"],it=["widthHeight","color","strokeWidth","filled"],at=["widthHeight","color","strokeWidth","filled"],lt=["widthHeight","color","strokeWidth","filled"],st=["widthHeight","color","strokeWidth","filled"],dt=["widthHeight","color","strokeWidth","filled"],ct=["widthHeight","color","strokeWidth","filled"],ut=["widthHeight","color","strokeWidth","filled"],gt=["widthHeight","color","strokeWidth","filled"],ht=["widthHeight","color","strokeWidth","filled"],mt=["widthHeight","color","strokeWidth","filled"],pt=["widthHeight","color","strokeWidth","filled"],vt=["widthHeight","color","strokeWidth","filled"],bt=e=>{var{widthHeight:t,color:n="black",transform:i,orientation:a="up",children:l}=e,s=h(e,L);return o.createElement(r.Center,Object.assign({widthHeight:t,lineHeight:t,color:n,display:"flex",transform:i||("left"===a?"rotate(-90deg)":"right"===a?"rotate(90deg)":"up"===a?"rotate(0deg)":"down"===a?"rotate(180deg)":"none")},s),l)},xt=(e,t,o)=>{var{getColor:n}=r.useTheme();return{fill:e?n(t):"none",stroke:e?"none":n(t),strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}},ft=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,B);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),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"})))},wt=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,P);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},Et=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,_);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"9",y1:"17",x2:"9",y2:"17"}),o.createElement("line",{x1:"15",y1:"17",x2:"15",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"})))},yt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,A);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),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:n=!0,strokeWidth:i=1}=e,a=h(e,F);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),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"}))))},kt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,N);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(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",fill:n?r:"none",stroke:n?"none":r,strokeWidth:n?0:i}),o.createElement("polyline",{points:"14 2 14 8 20 8",fill:"none",stroke:r,strokeWidth:i})))},jt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,U);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),o.createElement("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",ry:"2",fill:n?r:"none",stroke:n?"none":r,strokeWidth:n?0:i}),o.createElement("polygon",{points:"10 8 16 12 10 16 10 8",fill:n?n?"white":r:"none",stroke:n?"none":r,strokeWidth:n?0:i})))},It=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,G);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),o.createElement("rect",{x:"2",y:"2",width:"20",height:"20",rx:"2",ry:"2",fill:n?r:"none",stroke:n?"none":r,strokeWidth:n?0:i}),o.createElement("circle",{cx:"8.5",cy:"8.5",r:"1.5",fill:n?n?"white":r:"none",stroke:n?"none":r,strokeWidth:n?0:i}),o.createElement("polyline",{points:"21 15 16 10 5 21",fill:"none",stroke:n?"white":r,strokeWidth:i})))},St=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Y);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),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:n?r:"none",stroke:n?"none":r,strokeWidth:n?0:i})))},Ot=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,K);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),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:n?r:"none",stroke:r,strokeWidth:i})))},zt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,X);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M2 2v16h5v4l4-4h5l6-6V2H2zm18 10-3 3h-5l-3 3v-3H4V4h16v8z",fill:n?r:"none",stroke:r,strokeWidth:n?0:i}),o.createElement("path",{d:"M14 7h2v5h-2V7zm-4 0h2v5H10V7z",fill:n?r:"none",stroke:r,strokeWidth:n?0:i})))},Ht=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,Z);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),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"})))},Mt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,q);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),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"})))},Tt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,J);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),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:n?r:"none",stroke:n?"none":r,strokeWidth:n?0:i}),o.createElement("polygon",{points:"10 8 10 14 14 10",fill:"white",stroke:"white",strokeWidth:i})))},Rt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Q);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),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:n?r:"none",stroke:r,strokeWidth:n?0:i})))},Dt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,$);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24"},xt(n,r,i)),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"})))},Wt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,ee);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24"},xt(n,r,i)),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"})))},Vt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,te);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),o.createElement("line",{stroke:r,x1:"8",y1:"12",x2:"16",y2:"12"})))},Lt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,oe);return o.createElement(bt,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"},xt(n,r,i)),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"})))},Bt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,re);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M8 5v14l11-7z"})))},Pt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,ne);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M6 4h4v16H6V4zm8 0h4v16h-4V4z"})))},_t=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,ie);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},At=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,ae);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Ft=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,le);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Nt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,se);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Ut=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,de);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Gt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,ce);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z"})))},Yt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,ue);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M18 10h-1.26A8 8 0 109 20h9a5 5 0 000-10z"})))},Kt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,ge);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Xt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,he);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Zt=Xt,qt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,me);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Jt=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!0}=e,a=h(e,pe);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),o.createElement("circle",{cx:"12",cy:"12",r:"10"}),o.createElement("line",{x1:"15",y1:"9",x2:"9",y2:"15",stroke:i?"white":r}),o.createElement("line",{x1:"9",y1:"9",x2:"15",y2:"15",stroke:i?"white":r})))},Qt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,ve);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"})))},$t=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,be);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},eo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,xe);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},to=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,fe);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},oo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,we);return o.createElement(bt,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"})))},ro=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!0}=e,a=h(e,Ee);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},no=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,ye);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},io=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,Ce);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),o.createElement("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),o.createElement("path",{d:"M9 3v18"})))},ao=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,ke);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M3 4h18l-7 10v5l-4 2v-7L3 4z"})))},lo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,je);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5z"})))},so=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Ie);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},co=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,Se);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),n?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"}))))},uo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,Oe);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},go=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,ze);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"})))},ho=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,He);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},mo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Me);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},po=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Te);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{fill:n?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"})," "))},vo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,Re);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},bo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,De);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},xo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,We);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},fo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,Ve);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),o.createElement("circle",{cx:"12",cy:"12",r:"10"}),o.createElement("polyline",{points:"12 6 12 12 16 14"})))},wo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,Le);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},Eo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Be);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},yo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Pe);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Co=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,_e);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),n?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"}))))},ko=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,Ae);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},jo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,Fe);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Io=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Ne);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},So=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=2}=e,a=h(e,Ue);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"})))},Oo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=2}=e,a=h(e,Ge);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),o.createElement("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})))},zo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=2}=e,a=h(e,Ye);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("line",{x1:"12",y1:"2",x2:"12",y2:"6"}),o.createElement("line",{x1:"12",y1:"18",x2:"12",y2:"22"}),o.createElement("line",{x1:"4.93",y1:"4.93",x2:"7.76",y2:"7.76"}),o.createElement("line",{x1:"16.24",y1:"16.24",x2:"19.07",y2:"19.07"}),o.createElement("line",{x1:"2",y1:"12",x2:"6",y2:"12"}),o.createElement("line",{x1:"18",y1:"12",x2:"22",y2:"12"}),o.createElement("line",{x1:"4.93",y1:"19.07",x2:"7.76",y2:"16.24"}),o.createElement("line",{x1:"16.24",y1:"7.76",x2:"19.07",y2:"4.93"})))},Ho=e=>{var{widthHeight:t=16,color:r="currentColor",filled:n=!1,strokeWidth:i=1.5}=e,a=h(e,Ke);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M4 6H12",stroke:"currentColor",strokeWidth:i,strokeLinecap:"round"}),o.createElement("path",{d:"M4 10H12",stroke:"currentColor",strokeWidth:i,strokeLinecap:"round"})))},Mo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Xe);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z",fill:"currentColor"})))},To=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Ze);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z",fill:"currentColor"})))},Ro=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,qe);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Do=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Je);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(!0,r,i)),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"})))},Wo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,Qe);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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:n=!1,strokeWidth:i=1}=e,a=h(e,$e);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M5 13l4 4L19 7",strokeLinecap:"round",strokeLinejoin:"round"})))},Lo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,et);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M12 4l7 7h-4v7h-6v-7H5l7-7z"})))},Bo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,tt);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("line",{stroke:r,x1:"12",y1:"20",x2:"12",y2:"8"}),o.createElement("polyline",{points:"6 12 12 6 18 12"})))},Po=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,ot);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},_o=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,rt);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},Ao=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,nt);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},Fo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,it);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),o.createElement("path",{d:"M6 2v14a2 2 0 0 0 2 2h14"}),o.createElement("path",{d:"M18 22V8a2 2 0 0 0-2-2H2"})))},No=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,at);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},Uo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,lt);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},Go=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,st);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},Yo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,dt);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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:n=1,filled:i=!1}=e,a=h(e,ct);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},Xo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,ut);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(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"}),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:n=1,filled:i=!1}=e,a=h(e,gt);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},qo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,ht);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},Jo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!0}=e,a=h(e,mt);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),o.createElement("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})))},Qo=Vo,$o=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,pt);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),o.createElement("path",{d:"M16 17l5-5-5-5"}),o.createElement("path",{d:"M21 12H9"}),o.createElement("path",{d:"M13 5v-2a1 1 0 0 0-1-1H5a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h7a1 1 0 0 0 1-1v-2"})))},er=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1.5,filled:i=!1}=e,a=h(e,vt);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),o.createElement("line",{x1:"12",y1:"2",x2:"12",y2:"8"}),o.createElement("path",{d:"M6.8 6.8a8 8 0 1 0 10 0"})))},tr={__proto__:null,UserIcon:ft,HelpIcon:wt,FolderIcon:Et,ChevronIcon:yt,DragHandleIcon:Ct,FileIcon:kt,VideoIcon:jt,ImageIcon:It,TwitterIcon:St,XIcon:Ot,TwitchIcon:zt,CloseIcon:Ht,InstagramIcon:Mt,YoutubeIcon:Tt,FacebookIcon:Rt,LinkedinIcon:Dt,ThreadsIcon:Wt,MinusIcon:Vt,InfoIcon:Lt,PlayIcon:Bt,PauseIcon:Pt,HeartIcon:_t,StarIcon:At,SaveIcon:Ft,WarningIcon:Nt,BatteryIcon:Ut,BookmarkIcon:Gt,CloudIcon:Yt,CopyIcon:Kt,DustBinIcon:Xt,DeleteIcon:Zt,EditIcon:qt,ErrorIcon:Jt,DownloadIcon:Qt,MenuIcon:$t,ShareIcon:eo,RefreshIcon:to,PrintIcon:oo,MagicWandIcon:ro,SliderVerticalIcon:no,PanelIcon:io,FilterIcon:ao,HomeIcon:lo,LocationIcon:so,LockIcon:co,MicrophoneIcon:uo,MoonIcon:go,NotificationIcon:ho,OpenEyeIcon:mo,ProfileIcon:po,SettingsIcon:vo,SuccessIcon:bo,UnLikeIcon:xo,ClockIcon:fo,CameraIcon:wo,BluetoothIcon:Eo,LikeIcon:yo,UnlockIcon:Co,WifiIcon:ko,UploadIcon:jo,SearchIcon:Io,StopIcon:So,SendIcon:Oo,LoadingSpinnerIcon:zo,DragHandleLinesIcon:Ho,ChevronDownIcon:Mo,ChevronRightIcon:To,CloseEyeIcon:Ro,ExternalLinkIcon:Do,PlusIcon:Wo,TickIcon:Vo,BoldArrowIcon:Lo,ArrowIcon:Bo,SpinnerIcon:Po,CalendarIcon:_o,SliderIcon:Ao,CropIcon:Fo,ZoomInIcon:No,ZoomOutIcon:Uo,TextIcon:Go,ShapeIcon:Yo,RotateIcon:Ko,DocumentIcon:Xo,ChartIcon:Zo,GiftIcon:qo,ShieldIcon:Jo,CheckIcon:Qo,LogoutIcon:$o,PowerOffIcon:er},or=["icon","title","views","description","variant","themeMode"],rr=e=>{var{icon:t,title:n,views:i,description:a,variant:l="default"}=e,s=h(e,or),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==i?void 0:i.container,s),o.createElement(r.View,Object.assign({alignSelf:"flex-start",marginTop:"2px"},null==i?void 0:i.icon),(()=>{var e,r;if(t)return t;var n={size:20,color:null!=(e=null==i||null==(r=i.icon)?void 0:r.color)?e:d[l].icon.color};switch(l){case"info":return o.createElement(Lt,Object.assign({},n));case"success":return o.createElement(bo,Object.assign({},n));case"error":return o.createElement(Jt,Object.assign({},n));case"warning":default:return o.createElement(Nt,Object.assign({},n))}})()),o.createElement(r.Vertical,{gap:8}," ",o.createElement(V,Object.assign({fontSize:"16px",fontWeight:"600",lineHeight:"24px",color:d[l].content.color},null==i?void 0:i.title),n),o.createElement(V,Object.assign({fontSize:"14px",fontWeight:"400",lineHeight:"20px",color:d[l].content.color},null==i?void 0:i.description),a)))},nr=["ratio","children","views"],ir=e=>{var{ratio:t=16/9,children:n,views:i}=e,a=h(e,nr);return o.createElement(r.Center,Object.assign({width:"100%",position:"relative",overflow:"hidden",paddingTop:1/t*100+"%",borderRadius:8},a,null==i?void 0:i.center),o.createElement(r.View,Object.assign({position:"absolute",top:0,right:0,bottom:0,left:0},null==i?void 0:i.view),n))},ar=["ratio","children"],lr={xs:24,sm:32,md:48,lg:64,xl:80},sr={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"},dr={fontWeight:"500",color:"color.gray.600"},cr={objectFit:"cover",transition:"all 0.2s ease"},ur=e=>{var{src:t,size:n="md",fallback:i="IM",views:a,imageError:l,setImageError:s,onClick:d=(()=>{})}=e,c=lr[n],u=Object.assign({},cr,(null==a?void 0:a.image)||{});return o.createElement(r.Center,Object.assign({role:"avatar",width:c,height:c},sr,{borderColor:l?"color.gray.400":"transparent",onClick:d},null==a?void 0:a.container),l?o.createElement(V,Object.assign({size:n},dr,null==a?void 0:a.fallback),i):o.createElement(r.Image,{alt:"IM",src:t,style:u,width:c,height:c,onError:()=>s(!0)}))},gr={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:"16px",fontWeight:"500",lineHeight:"32px"},xl:{minWidth:"36px",height:"36px",padding:"0 14px",fontSize:"20px",fontWeight:"500",lineHeight:"36px"}},hr={sharp:0,rounded:"8px",pillShaped:"9999px"},mr={"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"}},pr=["content","position","shape","variant","size","views","themeMode"],vr=e=>{var{content:t,position:n,shape:i="pillShaped",variant:a="filled",size:l="md",views:s}=e,d=h(e,pr),c=(r.useTheme(),Object.assign({width:"fit-content",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"color.black",borderRadius:hr[i]},gr[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],n?mr[n]:{},null==s?void 0:s.container));return o.createElement(r.Center,Object.assign({role:"badge"},c,d),o.createElement(V,Object.assign({role:"badgeText",fontWeight:"500",textAlign:"center"},null==s?void 0:s.text,{color:c.color}),t||""))},br={xs:12,sm:14,md:16,lg:18,xl:20},xr=["children","to","iconSize","underline","isHovered","isExternal","views","setIsHovered"],fr=e=>{var{children:t,to:i="/",iconSize:a="sm",underline:l="default",isHovered:s=!1,isExternal:d=!1,views:c={icon:{},text:{}},setIsHovered:u=(()=>{})}=e,g=h(e,xr),m=()=>{"hover"===l&&u(!0)};return o.createElement(n.Link,{to:i,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"},c.text,g),t,d&&o.createElement(Do,{widthHeight:br[a]})))},wr=e=>{var r=(()=>{var[e,o]=t.useState(!1);return{isHovered:e,setIsHovered:o}})();return o.createElement(fr,Object.assign({},r,e))},Er={xs:14,sm:18,md:22,lg:26,xl:30},yr={fast:50,normal:100,slow:300},Cr=["size","speed","color","themeMode"],kr=["size","speed","color","themeMode"],jr=["size","speed","color","themeMode"],Ir=["size","children","textColor","loaderColor","type","speed","textPosition","views"],Sr=e=>{var{size:n="md",speed:i="normal",color:a="theme.loading",themeMode:l}=e,s=h(e,Cr),{getColor:d,themeMode:c}=r.useTheme(),u=d(a,{themeMode:l||c}),g="number"==typeof n?n:Er[n],[m,p]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{p(e=>e+45)},yr[i]);return()=>clearInterval(e)},[i]),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:u,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"})))},Or=e=>{var{size:n="md",speed:i="normal",color:a="theme.loading",themeMode:l}=e,s=h(e,kr),{getColor:d,themeMode:c}=r.useTheme(),u=d(a,{themeMode:l||c}),g="number"==typeof n?n:Er[n],[m,p]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{p(e=>e+45)},yr[i]);return()=>clearInterval(e)},[i]),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:u}),o.createElement("circle",{cx:"25",cy:"25",r:"4",fill:u}),o.createElement("circle",{cx:"40",cy:"25",r:"4",fill:u}))},zr=e=>{var{size:n="md",speed:i="normal",color:a="theme.loading",themeMode:l}=e,s=h(e,jr),{getColor:d,themeMode:c}=r.useTheme(),u=d(a,{themeMode:l||c}),g="number"==typeof n?n:Er[n],[m,p]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{p(e=>e+45)},yr[i]);return()=>clearInterval(e)},[i]),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:u,strokeWidth:"5",strokeDasharray:"1,10"}))},Hr=e=>{var{size:t,children:n,textColor:i,loaderColor:a,type:l="default",speed:s="normal",textPosition:d="right",views:c}=e,u=h(e,Ir),g={size:t,speed:s,color:a},m={default:o.createElement(Sr,Object.assign({},g)),dotted:o.createElement(Or,Object.assign({},g)),quarter:o.createElement(zr,Object.assign({},g))};return o.createElement(r.Center,Object.assign({gap:10,flexDirection:"top"===d||"bottom"===d?"column":"row"},u,null==c?void 0:c.container),("left"===d||"top"===d)&&n&&o.createElement(r.View,Object.assign({color:i},null==c?void 0:c.text),n),m[l],("right"===d||"bottom"===d)&&n&&o.createElement(r.View,Object.assign({color:i},null==c?void 0:c.text),n))},Mr=e=>o.createElement(Hr,Object.assign({},e)),Tr={xs:{minHeight:12,paddingTop:1,paddingBottom:1,paddingLeft:2,paddingRight:2,fontSize:10,fontWeight:"500",lineHeight:14,letterSpacing:"-0.01em"},sm:{minHeight:16,paddingTop:4,paddingBottom:4,paddingLeft:8,paddingRight:8,fontSize:12,fontWeight:"500",lineHeight:16,letterSpacing:"-0.01em"},md:{minHeight:24,paddingTop:6,paddingBottom:6,paddingLeft:12,paddingRight:12,fontSize:14,fontWeight:"500",lineHeight:18,letterSpacing:"-0.01em"},lg:{minHeight:32,paddingTop:8,paddingBottom:8,paddingLeft:16,paddingRight:16,fontSize:16,fontWeight:"500",lineHeight:18,letterSpacing:"-0.01em"},xl:{minHeight:40,paddingTop:10,paddingBottom:10,paddingLeft:20,paddingRight:20,fontSize:20,fontWeight:"500",lineHeight:22,letterSpacing:"-0.01em"}},Rr={sharp:0,rounded:8,pillShaped:999},Dr={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}},Wr=["variant","size","shape","iconPosition","loaderPosition","backgroundColor","color","isAuto","isFilled","isDisabled","isLoading","isIconRounded","icon","children","to","isExternal","shadow","onClick","views","themeMode"],Vr=e=>{var n,{variant:a="filled",size:l="md",shape:s="rounded",iconPosition:d="left",loaderPosition:c="left",backgroundColor:u,color:g,isDisabled:m,isLoading:p,isIconRounded:v,icon:b,children:x,to:f,isExternal:w,shadow:E,onClick:y,views:C={},themeMode:k}=e,j=h(e,Wr),{getColor:I,themeMode:S}=r.useTheme(),O=null!=(n=null!=u?u:g)?n:"theme.primary",z=I(m?"theme.disabled":O,{themeMode:null!=k?k:S}),H=i(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,R=Tr[l],D=v?Dr[l]:{},W=o.createElement(T,Object.assign({gap:8,alignItems:"center",justifyContent:"center",color:"inherit",_hover:{color:"inherit"}},R,null==C?void 0:C.content),p&&"left"===c&&o.createElement(Mr,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"===c&&o.createElement(Mr,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)},R,D,{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:Rr[s],boxShadow:E,transition:"all 0.2s ease",cursor:m?"default":"pointer",onClick:y},M,null==C?void 0:C.container,j),f?o.createElement(wr,Object.assign({to:f,isExternal:w,color:"inherit",textDecoration:"inherit",textDecorationColor:"inherit"},null==C?void 0:C.link),W):W)},Lr=e=>{var[t,n]=r.useHover();return o.createElement(Vr,Object.assign({ref:t,isHovered:n},e))},Br={sharp:0,rounded:"8px",pillShaped:"16px"},Pr=t.createContext({}),_r=()=>t.useContext(Pr),Ar=["children","views","style","themeMode"],Fr=["children","views","style","themeMode"],Nr=["children","views","style","themeMode"],Ur=["variant","size","shape","children","header","footer","isFullWidth","views","style","themeMode"],Gr=e=>{var t,{children:n,style:i}=e,a=h(e,Ar),{styles:l}=(r.useTheme(),_r()),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,i)});return o.createElement(r.View,Object.assign({},d),n)},Yr=e=>{var t,{children:n,style:i}=e,a=h(e,Fr),{styles:l}=(r.useTheme(),_r()),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,i)});return o.createElement(r.View,Object.assign({},d),n)},Kr=e=>{var t,{children:n,style:i}=e,a=h(e,Nr),{styles:l}=(r.useTheme(),_r()),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,i)});return o.createElement(r.View,Object.assign({},d),n)},Xr=e=>{var n,{variant:i="default",size:a="md",shape:l="rounded",children:s,header:d,footer:c,isFullWidth:u=!1,views:g,style:m}=e,p=h(e,Ur),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===Gr||e.type===Yr||e.type===Kr)),f=Object.assign({width:u?"100%":"auto",borderRadius:Br[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)"}}}[i],b.styles.container,p,{style:Object.assign({},null==(n=b.styles.container)?void 0:n.style,m)});return o.createElement(Pr.Provider,{value:b},o.createElement(r.View,Object.assign({},f),x?s:o.createElement(r.Vertical,null,d&&o.createElement(Gr,null,d),o.createElement(Yr,null,s),c&&o.createElement(Kr,null,c))))},Zr=e=>o.createElement(Xr,Object.assign({},e));Zr.Header=Gr,Zr.Content=Yr,Zr.Footer=Kr;var qr={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"}},Qr={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"}},$r=()=>({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},Qr),nextButton:Object.assign({position:"absolute",top:"50%",right:"16px",transform:"translateY(-50%)",zIndex:10},Qr)}),en=t.createContext(null),tn=()=>{var e=t.useContext(en);if(!e)throw new Error("Carousel compound components must be used within <Carousel>");return e},on=["children","isActive","views"],rn=["views","children"],nn=["views","children"],an=["children","views"],ln=["children","views","style"],sn=["children","defaultActiveIndex","activeIndex","onChange","showNavigation","navigationPosition","prevButton","nextButton","showIndicators","indicatorPosition","indicatorVariant","autoPlay","autoPlayInterval","pauseOnHover","infinite","direction","transitionDuration","views","stepIndices","themeMode"],dn=e=>{var{children:t,isActive:n,views:i}=e,a=h(e,on);return o.createElement(r.View,Object.assign({flexShrink:0,width:"100%",height:"100%",display:n?"block":"none"},i,a),t)},cn=e=>{var{views:t,children:r}=e,n=h(e,rn),{goToPrevious:i,canGoPrevious:a,styles:l}=tn(),s=$r().prevButton,d=Object.assign({},s,null==l?void 0:l.prevButton,null==t?void 0:t.prevButton);return o.createElement(Lr,Object.assign({"aria-label":"Previous slide",onClick:()=>i(),isDisabled:!a},d,n),null!=r?r:o.createElement(yt,{orientation:"left",widthHeight:16}))},un=e=>{var{views:t,children:r}=e,n=h(e,nn),{goToNext:i,canGoNext:a,styles:l}=tn(),s=$r().nextButton,d=Object.assign({},s,null==l?void 0:l.nextButton,null==t?void 0:t.nextButton);return o.createElement(Lr,Object.assign({"aria-label":"Next slide",onClick:()=>i(),isDisabled:!a},d,n),null!=r?r:o.createElement(yt,{orientation:"right",widthHeight:16}))},gn=e=>{var{children:n,views:i}=e,a=h(e,an),{registerSlide:l,unregisterSlide:s,styles:d}=tn(),c=t.useRef(null);t.useEffect(()=>{var e=l();return c.current=e,()=>{null!==c.current&&s(c.current)}},[l,s]);var u=$r().item,g=Object.assign({},u,null==d?void 0:d.item,null==i?void 0:i.item);return o.createElement(r.View,Object.assign({role:"group","aria-roledescription":"slide"},g,a),n)},hn=e=>{var{children:t,views:n,style:i}=e,a=h(e,ln),{currentIndex:l,styles:s,contentId:d}=tn(),c=$r(),u=Object.assign({},c.content,null==s?void 0:s.content,null==n?void 0:n.content),g=Object.assign({},c.innerContainer,null==s?void 0:s.innerContainer,null==n?void 0:n.innerContainer),m="-"+100*l+"%";return o.createElement(r.View,Object.assign({},u,a,{style:Object.assign({},null==u?void 0:u.style,i),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))},mn=e=>{var{children:n,defaultActiveIndex:i=0,activeIndex:a,onChange:l,showNavigation:s=!0,navigationPosition:d="inside",prevButton:c,nextButton:u,showIndicators:g=!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,k=h(e,sn),j=t.useMemo(()=>o.Children.toArray(n),[n]),I=(e=>{var{defaultActiveIndex:o=0,activeIndex:r,onChange:n,autoPlay:i=!1,autoPlayInterval:a=3e3,pauseOnHover:l=!0,infinite:s=!0,totalSlides:d,stepIndices:c}=e,u=t.useRef(d||0),[g,h]=t.useState(d||0),p=t.useRef(new Set),v=t.useRef(0),b=t.useMemo(()=>m("carousel-content"),[]),[x,f]=t.useState(void 0!==r?r:o),[w,E]=t.useState(!1),[y,C]=t.useState(!1),[k,j]=t.useState(0),[I,S]=t.useState(0),O=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)),c&&c.length>0)if(c.includes(t));else{var o=c.reduce((e,o)=>Math.abs(o-t)<Math.abs(e-t)?o:e);t=o}void 0===r&&f(t),n&&n(t)},[r,s,n,g]),H=t.useCallback(()=>{z(x+1)},[x,z]),M=t.useCallback(()=>{z(x-1)},[x,z]);t.useEffect(()=>(!i||w||y||(O.current=setInterval(()=>{H()},a)),()=>{O.current&&clearInterval(O.current)}),[i,a,w,y,H,l]);var T=t.useCallback(()=>{l&&E(!0)},[l]),R=t.useCallback(()=>{E(!1)},[]),D=t.useCallback(e=>{C(!0),"touches"in e?(j(e.touches[0].clientX),S(e.touches[0].clientY)):(j(e.clientX),S(e.clientY))},[]),W=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-k,n=o-I;Math.abs(r)>Math.abs(n)&&Math.abs(r)>50&&(r>0?M():H(),C(!1))}},[y,k,I,H,M]),V=t.useCallback(()=>{C(!1)},[]),L=t.useCallback(()=>{var e=v.current++;p.current.add(e);var t=p.current.size;return u.current=t,h(t),e},[]),B=t.useCallback(e=>{p.current.delete(e);var t=p.current.size;if(u.current=t,h(t),t>0&&x>=t){var o=Math.max(0,t-1);void 0===r&&f(o),n&&n(o)}},[x,r,n]);return{activeIndex:x,totalSlides:g,goToSlide:z,nextSlide:H,prevSlide:M,canGoNext:s||x<g-1,canGoPrevious:s||x>0,handleMouseEnter:T,handleMouseLeave:R,handleDragStart:D,handleDragMove:W,handleDragEnd:V,registerSlide:L,unregisterSlide:B,contentId:b,infinite:s}})({defaultActiveIndex:i,activeIndex:a,onChange:l,autoPlay:b,autoPlayInterval:x,pauseOnHover:f,infinite:w,totalSlides:j.length}),{activeIndex:S,totalSlides:O,goToSlide:z,nextSlide:H,prevSlide:M,handleMouseEnter:T,handleMouseLeave:R,handleDragStart:D,handleDragMove:W,handleDragEnd:V}=I;return t.useMemo(()=>o.Children.toArray(n).some(e=>o.isValidElement(e)&&(e.type===hn||e.type===gn||e.type===cn||e.type===un)),[n])?o.createElement(en.Provider,{value:{currentIndex:S,totalSlides:O,goToSlide:z,goToNext:H,goToPrevious:M,canGoNext:I.canGoNext,canGoPrevious:I.canGoPrevious,registerSlide:I.registerSlide,unregisterSlide:I.unregisterSlide,styles:Object.assign({},$r(),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,k),n)):o.createElement(r.View,Object.assign({position:"relative",width:"100%",height:"100%",overflow:"hidden",onMouseEnter:T,onMouseLeave:R,onTouchStart:D,onTouchMove:W,onTouchEnd:V,onMouseDown:D,onMouseMove:W,onMouseUp:V},null==C?void 0:C.container,k),o.createElement(r.View,Object.assign({width:"100%",height:"100%",position:"relative"},null==C?void 0:C.slideWrapper),j.map((e,t)=>o.createElement(dn,{key:t,isActive:t===S,index:t,views:null==C?void 0:C.slide},e))),(()=>{if(!s)return null;var e=c||o.createElement(r.View,Object.assign({as:"button","aria-label":"Previous slide"},Qr,null==C?void 0:C.prevButton),"❮"),t=u||o.createElement(r.View,Object.assign({as:"button","aria-label":"Next slide"},Qr,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"===d?"10px":"-40px",onClick:M,cursor:w||0!==S?"pointer":"not-allowed",opacity:w||0!==S?1:.5},e),o.createElement(r.View,{position:"absolute",top:"50%",transform:"translateY(-50%)",right:"inside"===d?"10px":"-40px",onClick:H,cursor:w||S!==j.length-1?"pointer":"not-allowed",opacity:w||S!==j.length-1?1:.5},t))})(),g?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),j.map((e,t)=>o.createElement(r.View,Object.assign({key:t,onClick:()=>z(t),cursor:"pointer"},qr[v],t===S?Object.assign({},Jr[v]):{},null==C?void 0:C.indicator,t===S?null==C?void 0:C.activeIndicator:{}),"number"===v&&t+1))):null)},pn=e=>o.createElement(mn,Object.assign({},e));pn.Slide=dn,pn.Content=hn,pn.Item=gn,pn.Previous=cn,pn.Next=un;var vn=["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"],bn={width:"100%",height:"100%",position:"relative",display:"flex",flexDirection:"column"},xn={fontSize:"18px",fontWeight:"bold",marginBottom:"16px",textAlign:"center"},fn={display:"flex",flexWrap:"wrap",justifyContent:"center",marginTop:"16px"},wn={display:"flex",alignItems:"center",marginRight:"16px",marginBottom:"8px"},En={width:"12px",height:"12px",borderRadius:"2px",marginRight:"6px"},yn={fontSize:"14px"},Cn={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},kn={stroke:"color.gray.200",strokeWidth:"1px"},jn={stroke:"color.gray.300",strokeWidth:"1px"},In={fontSize:"12px",fill:"color.gray.600"},Sn={rx:"2px",ry:"2px",cursor:"pointer",transition:"opacity 0.2s ease",_hover:{opacity:.8}},On={strokeWidth:"2px",fill:"none"},zn={r:"4px",strokeWidth:"2px",stroke:"white",cursor:"pointer",transition:"r 0.2s ease"},Hn={strokeWidth:"1px",stroke:"white",cursor:"pointer",transition:"opacity 0.2s ease",_hover:{opacity:.8}},Mn={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"},Tn=Object.assign({},Mn),Rn=Object.assign({},Mn,{backgroundColor:"rgba(255, 235, 238, 0.9)",color:"color.red.700"}),Dn=Object.assign({},Mn,{backgroundColor:"rgba(245, 245, 245, 0.8)",color:"color.gray.600"}),Wn=e=>{var{data:n,width:i,height:a,animationProgress:l,showGrid:s=!0,onBarClick:d,showTooltip:c,hideTooltip:u,views:g}=e,{getColor:h}=r.useTheme(),m=i-50-20,p=a-20-40,v=t.useMemo(()=>{var e=0;return n.series.forEach(t=>{t.data.forEach(t=>{e=Math.max(e,t)})}),e},[n]),b=n.series.length,x=m/n.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:i,height:a},o.createElement("line",Object.assign({x1:50,y1:a-40,x2:i-20,y2:a-40},jn,null==g?void 0:g.axis)),o.createElement("line",Object.assign({x1:50,y1:20,x2:50,y2:a-40},jn,null==g?void 0:g.axis)),n.labels.map((e,t)=>o.createElement("text",Object.assign({key:"x-label-"+t,x:50+(t+.5)*x,y:a-40+20,textAnchor:"middle"},In,null==g?void 0:g.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"},In,null==g?void 0:g.axisLabel),e.toFixed(0)),s&&o.createElement("line",Object.assign({x1:50,y1:r,x2:i-20,y2:r},kn,null==g?void 0:g.grid)))}),n.series.map((e,t)=>o.createElement(o.Fragment,{key:"series-"+t},e.data.map((r,n)=>{var i=r/v*p*l;return o.createElement("rect",Object.assign({key:"bar-"+t+"-"+n,x:50+n*x+w*(t+1)+f*t,y:a-40-i,width:f,height:i,fill:e.color?h(e.color):"black",onMouseEnter:t=>{c(t.clientX,t.clientY,e.name+": "+r)},onMouseLeave:u,onClick:()=>{d&&d(e.name,n)}},Sn,null==g?void 0:g.bar))}))))},Vn=e=>{var{data:n,width:i,height:a,animationProgress:l,showGrid:s=!0,onPointClick:d,showTooltip:c,hideTooltip:u,views:g}=e,{getColor:h}=r.useTheme(),m=i-50-20,p=a-20-40,v=t.useMemo(()=>{var e=0;return n.series.forEach(t=>{t.data.forEach(t=>{e=Math.max(e,t)})}),e},[n]),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/(n.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/(n.labels.length-1)*m+","+(a-40-e/v*p*l)).join(" L ")+" L "+t+","+o+" Z"};return o.createElement("svg",{width:i,height:a},o.createElement("line",Object.assign({x1:50,y1:a-40,x2:i-20,y2:a-40},jn,null==g?void 0:g.axis)),o.createElement("line",Object.assign({x1:50,y1:20,x2:50,y2:a-40},jn,null==g?void 0:g.axis)),n.labels.map((e,t)=>o.createElement("text",Object.assign({key:"x-label-"+t,x:50+t/(n.labels.length-1)*m,y:a-40+20,textAnchor:"middle"},In,null==g?void 0:g.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"},In,null==g?void 0:g.axisLabel),e.toFixed(0)),s&&o.createElement("line",Object.assign({x1:50,y1:r,x2:i-20,y2:r},kn,null==g?void 0:g.grid)))}),n.series.map((e,t)=>o.createElement(o.Fragment,{key:"series-"+t},o.createElement("path",Object.assign({d:f(e.data),fill:e.color?h(e.color):"black",opacity:.1},null==g?void 0:g.area)),o.createElement("path",Object.assign({d:x(e.data),stroke:e.color?h(e.color):"black"},On,null==g?void 0:g.line)),e.data.map((r,i)=>o.createElement("circle",Object.assign({key:"point-"+t+"-"+i,cx:50+i/(n.labels.length-1)*m,cy:a-40-r/v*p*l,fill:e.color,onMouseEnter:t=>{c(t.clientX,t.clientY,e.name+": "+r)},onMouseLeave:u,onClick:()=>{d&&d(e.name,i)}},zn,null==g?void 0:g.point))))))},Ln=e=>{var{dataPoints:n,width:i,height:a,animationProgress:l,isDonut:s=!1,onSliceClick:d,showTooltip:c,hideTooltip:u,views:g}=e,{getColor:h}=r.useTheme(),m=Math.min(i,a)/2*.8,p=i/2,v=a/2,b=s?.6*m:0,x=t.useMemo(()=>n.reduce((e,t)=>e+t.value,0),[n]),f=t.useMemo(()=>{for(var e=[],t=-Math.PI/2,o=0;o<n.length;o++){var r,i=n[o].value/x,a=2*i*Math.PI*l,d=t+a,c=p+Math.cos(t)*m,u=v+Math.sin(t)*m,g=p+Math.cos(d)*m,f=v+Math.sin(d)*m,w=p+Math.cos(t)*b,E=v+Math.sin(t)*b,y=p+Math.cos(d)*b,C=v+Math.sin(d)*b,k=a>Math.PI?1:0;r=s?["M "+c+" "+u,"A "+m+" "+m+" 0 "+k+" 1 "+g+" "+f,"L "+y+" "+C,"A "+b+" "+b+" 0 "+k+" 0 "+w+" "+E,"Z"].join(" "):["M "+p+" "+v,"L "+c+" "+u,"A "+m+" "+m+" 0 "+k+" 1 "+g+" "+f,"Z"].join(" ");var j=t+a/2,I=.7*m,S=p+Math.cos(j)*I,O=v+Math.sin(j)*I,z=(100*i).toFixed(1)+"%",H=h(n[o].color||vn[o%vn.length]);e.push({path:r,color:H,label:n[o].label,value:n[o].value,percentage:z,labelX:S,labelY:O,startAngle:t,endAngle:d,index:o}),t=d}return e},[n,x,m,p,v,b,l,s]);return o.createElement("svg",{width:i,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=>{c(t.clientX,t.clientY,e.label+": "+e.value+" ("+e.percentage+")")},onMouseLeave:u,onClick:()=>{d&&d(n[e.index],e.index)}},Hn,null==g?void 0:g.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"}))},Bn=["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"],Pn=e=>{var{type:n,data:i,dataPoints:a,title:l,showLegend:s=!0,legendPosition:d="bottom",showGrid:c=!0,showTooltips:u=!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:k,loadingIndicator:j,errorIndicator:I,noDataIndicator:S,"aria-label":O}=e,z=h(e,Bn),{animationProgress:H,tooltip:M,containerRef:T,processedData:R,showTooltip:D,hideTooltip:W,getChartDimensions:L}=(e=>{var{data:o,dataPoints:r,animated:n=!0,animationDuration:i=500,showTooltips:a=!0}=e,[l,s]=t.useState(n?0:1),[d,c]=t.useState({visible:!1,x:0,y:0,content:""}),u=t.useRef(null),g=t.useRef(null);t.useEffect(()=>{if(n){var e=Date.now(),t=()=>{var o=Date.now()-e,r=Math.min(o/i,1);s(r),r<1&&(u.current=requestAnimationFrame(t))};return u.current=requestAnimationFrame(t),()=>{u.current&&cancelAnimationFrame(u.current)}}s(1)},[n,i]);var h=t.useCallback(()=>o?Object.assign({},o,{series:o.series.map((e,t)=>Object.assign({},e,{color:e.color||vn[t%vn.length]}))}):r?r.map((e,t)=>Object.assign({},e,{color:e.color||vn[t%vn.length]})):null,[o,r]),m=t.useCallback((e,t,o)=>{a&&c({visible:!0,x:e,y:t,content:o})},[a]),p=t.useCallback(()=>{c(e=>Object.assign({},e,{visible:!1}))},[]),v=t.useCallback(()=>{if(!g.current)return{width:0,height:0};var{width:e,height:t}=g.current.getBoundingClientRect();return{width:e,height:t}},[]);return{animationProgress:l,tooltip:d,containerRef:g,processedData:h,showTooltip:m,hideTooltip:p,getChartDimensions:v}})({data:i,dataPoints:a,animated:g,animationDuration:m,showTooltips:u}),B=R(),{width:P,height:_}=L(),A=b||P,F=x||(p?P/v:_),N=()=>{if(!s||!B)return null;var e=[];return"pie"===n||"donut"===n?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},fn,null==f?void 0:f.legend),e.map((e,t)=>o.createElement(r.View,Object.assign({key:"legend-"+t},wn,null==f?void 0:f.legendItem),o.createElement(r.View,Object.assign({backgroundColor:e.color},En)),o.createElement(V,Object.assign({},yn),e.name||e.label)))):null},U=!C&&!y&&!k;return o.createElement(r.View,Object.assign({ref:T,role:"region","aria-label":null!=O?O:"string"==typeof l?l:"Chart","aria-busy":y},bn,null==f?void 0:f.container,z),l&&o.createElement(V,Object.assign({},xn),l),U&&"top"===d&&N(),o.createElement(r.View,Object.assign({flex:1,width:"100%",position:"relative"},null==f?void 0:f.chart),U&&(()=>{if(!B)return null;switch(n){case"bar":return o.createElement(Wn,{data:B,width:A,height:F,animationProgress:H,showGrid:c,onBarClick:E,showTooltip:D,hideTooltip:W,views:f});case"line":case"area":return o.createElement(Vn,{data:B,width:A,height:F,animationProgress:H,showGrid:c,onPointClick:E,showTooltip:D,hideTooltip:W,views:f});case"pie":case"donut":return o.createElement(Ln,{dataPoints:B,width:A,height:F,animationProgress:H,isDonut:"donut"===n,onSliceClick:w,showTooltip:D,hideTooltip:W,views:f});default:return null}})(),y?o.createElement(r.View,Object.assign({},Tn,null==f?void 0:f.loadingOverlay),j||o.createElement(r.Center,null,o.createElement(Mr,{size:"lg"}))):null,C?o.createElement(r.View,Object.assign({},Rn,null==f?void 0:f.errorOverlay),I||o.createElement(V,{fontWeight:"medium"},"string"==typeof C?C:"An error occurred")):null,k?o.createElement(r.View,Object.assign({},Dn,null==f?void 0:f.noDataOverlay),S||o.createElement(V,null,"string"==typeof k?k:"No data available")):null),U&&"bottom"===d&&N(),u&&M.visible?o.createElement(r.View,Object.assign({position:"fixed",left:M.x+"px",top:M.y-40+"px"},Cn,null==f?void 0:f.tooltip),M.content):null)},_n=["title","description","acceptButtonText","customizeButtonText","position","variant","onAccept","onCustomize","views","showCustomizeButton","cookieExpiration","themeMode"],An=e=>{var{title:n="Nous utilisons des cookies",description:i="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:c,onCustomize:u,views:g,showCustomizeButton:m=!0,cookieExpiration:p=365,themeMode:v}=e,b=h(e,_n),{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),[n,i]=t.useState(null);return t.useEffect(()=>{var e=localStorage.getItem("app-studio-cookie-consent");i(null!==e&&"true"===e)},[]),{isHovered:o,setIsHovered:r,hasConsent:n,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()),i(!0)})()},resetConsent:()=>{localStorage.removeItem("app-studio-cookie-consent"),localStorage.removeItem("app-studio-cookie-consent-expires"),i(!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"},n&&o.createElement(r.Text,Object.assign({fontWeight:"bold",fontSize:18,color:"color.black"},null==g?void 0:g.title),n),i&&o.createElement(r.Text,Object.assign({fontSize:14,color:"color.black"},null==g?void 0:g.description),i),o.createElement(r.Horizontal,Object.assign({gap:12,justifyContent:"flex-end",marginTop:8},null==g?void 0:g.buttonGroup),m&&o.createElement(Lr,Object.assign({variant:"outline",onClick:()=>{u&&u()},size:"sm"},null==g?void 0:g.customizeButton),l),o.createElement(Lr,Object.assign({variant:"primary",onClick:()=>{E(),c&&c()},size:"sm"},null==g?void 0:g.acceptButton),a))))},Fn={sm:{padding:"6px 8px",fontSize:"14px",minWidth:"160px"},md:{padding:"8px 12px",fontSize:"16px",minWidth:"180px"},lg:{padding:"10px 16px",fontSize:"18px",minWidth:"200px"}},Nn={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"}},Un={hover:{backgroundColor:"color.gray.100"},active:{backgroundColor:"color.gray.200"},disabled:{opacity:.5,cursor:"not-allowed"}},Gn=["children","disableNativeContextMenu","asChild","isDisabled","views"],Yn=["items","children","position","side","align","views","style"],Kn=["item","children","onSelect","isDisabled","views"],Xn=["views"],Zn=["views"],qn=["children","items","size","variant","disableNativeContextMenu","views","themeMode"],Jn=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:()=>{}}),Qn=e=>{var{children:t,value:r}=e;return o.createElement(Jn.Provider,{value:r},t)},$n=()=>{var e=t.useContext(Jn);if(!e)throw new Error("useContextMenuContext must be used within a ContextMenuProvider");return e},ei=e=>{var{children:t,disableNativeContextMenu:n=!0,asChild:i=!1,isDisabled:a=!1,views:l}=e,s=h(e,Gn),{triggerRef:d,contentId:c,openMenu:u}=$n(),g=Object.assign({ref:d,onContextMenu:e=>{if(!a)if(n&&e.preventDefault(),u)u(e);else{var{setIsOpen:t,setPosition:o}=$n();o({x:e.clientX,y:e.clientY}),t(!0)}},"aria-controls":c,"aria-haspopup":"menu","data-disabled":a?"":void 0},i&&o.isValidElement(t)&&void 0===t.props.isDisabled&&{isDisabled:a},null==l?void 0:l.container,s);if(i&&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:n,children:i,position:a,side:l="right",align:s="start",views:d,style:c}=e,u=h(e,Yn),{isOpen:g,position:m,contentRef:p,contentId:v,variant:b}=$n(),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,n,i,a,l){void 0===a&&(a="right"),void 0===l&&(l="start");var s=e,d=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?d=t-r:"bottom"===a?d=t:"left"!==a&&"right"!==a||("center"===l?d=t-r/2:"end"===l&&(d=t-r)),s+o>n&&(s=n-o),s<0&&(s=0),d+r>i&&(d=i-r),d<0&&(d=0),{x:s,y:d}}(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"},c)},Nn[b],null==d?void 0:d.menu,null==d?void 0:d.content,u),n&&n.map((e,t)=>e.divider?o.createElement(ri,{key:"divider-"+t,views:d}):o.createElement(oi,{key:e.id,item:e,views:d})),i):null},oi=e=>{var{item:n,children:i,onSelect:a,isDisabled:l=!1,views:s}=e,d=h(e,Kn),{activeSubmenuId:c,setActiveSubmenuId:u,size:g,closeMenu:m}=$n();if(n){var[p,v]=t.useState(!1),b=n.items&&n.items.length>0,x=c===n.id,f=t.useRef(null),[w,E]=t.useState({x:0,y:0}),y=n.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},Fn[g],{_hover:y?{}:Un.hover,backgroundColor:p&&!y?"color.gray.100":"transparent",onMouseEnter:()=>{v(!0),b&&u(n.id)},onMouseLeave:()=>{v(!1)},onClick:()=>{y||!b&&n.onClick&&(n.onClick(),m&&m())}},null==s?void 0:s.item,d),n.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==s?void 0:s.icon),n.icon),o.createElement(r.View,{flexGrow:1},n.label),b&&o.createElement(r.View,Object.assign({marginLeft:8},null==s?void 0:s.submenuIndicator),o.createElement(To,{widthHeight:16,color:"currentColor",filled:!0})),x&&b&&o.createElement(ti,{items:n.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},Fn[g],{_hover:l?{}:Un.hover},null==s?void 0:s.item,d),i)},ri=e=>{var{views:t}=e,n=h(e,Xn);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,n))},ni=e=>{var{children:t,items:r,size:n="md",variant:i="default",disableNativeContextMenu:a=!0,views:l}=e,s=h(e,qn);return r&&0!==r.length?o.createElement(o.Fragment,null,o.createElement(ei,Object.assign({disableNativeContextMenu:a,views:l},s),t),o.createElement(ti,{items:r,views:l})):o.createElement(o.Fragment,null,t)},ii=["children","items","size","variant","disableNativeContextMenu","onOpenChange","views"],ai=e=>{var{children:r,items:n,size:i="md",variant:a="default",disableNativeContextMenu:l=!0,onOpenChange:s,views:d}=e,c=h(e,ii),u=(e=>{var{size:r,variant:n,onOpenChange:i}=e||{},[a,l]=t.useState(!1),[s,d]=t.useState({x:0,y:0}),[c,u]=t.useState(null),g=t.useRef(null),h=t.useRef(null),p=o.useMemo(()=>m("contextmenu-content"),[]),v=t.useCallback(e=>{d({x:e.clientX,y:e.clientY}),l(!0),null==i||i(!0)},[i]),b=t.useCallback(()=>{l(!1),u(null),null==i||i(!1)},[i]);return t.useEffect(()=>{var e=e=>{h.current&&!h.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:d,activeSubmenuId:c,setActiveSubmenuId:u,size:r,variant:n,triggerRef:g,contentRef:h,contentId:p,openMenu:v,closeMenu:b}})({size:i,variant:a,onOpenChange:s}),{isOpen:g,setIsOpen:p,position:v,setPosition:b,activeSubmenuId:x,setActiveSubmenuId:f,triggerRef:w,contentRef:E,contentId:y,openMenu:C,closeMenu:k}=u;return o.createElement(Qn,{value:{isOpen:g,setIsOpen:p,position:v,setPosition:b,activeSubmenuId:x,setActiveSubmenuId:f,size:i,variant:a,triggerRef:w,contentRef:E,contentId:y,openMenu:C,closeMenu:k,styles:d}},o.createElement(ni,Object.assign({items:n,size:i,variant:a,disableNativeContextMenu:l,views:d},c),r))};ai.Trigger=ei,ai.Content=ti,ai.Item=oi,ai.Divider=ri,ai.Separator=e=>{var{views:t}=e,n=h(e,Zn);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,n))};var li=["src","color","views","themeMode"],si=["path"],di=e=>{var{placeholder:t,isMulti:r,options:n,id:i="select-"+Math.random().toString(36).substr(2,9)}=e,a=t?r?[]:"":Array.isArray(n)&&n.length>0?n[0].value:r?[]:"",[l,s]=o.useState(!1),[d,c]=o.useState(!1),[u,g]=o.useState(a),[h,m]=o.useState(0),[p,v]=o.useState(!0);return{id:i,value:u,setValue:g,hide:p,setHide:v,isHovered:l,setIsHovered:s,isFocused:d,setIsFocused:c,highlightedIndex:h,setHighlightedIndex:m}},ci=["children","views"],ui=e=>{var{children:t,views:r={helperText:{}}}=e,n=h(e,ci);return o.createElement(V,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,n),t)},gi=["children","helperText","error","views"],hi=e=>{var{children:t,helperText:n,error:i=!1,views:a}=e,l=h(e,gi);return o.createElement(r.Vertical,Object.assign({gap:8,position:"relative",width:"100%"},l,null==a?void 0:a.container),t,!i&&n&&o.createElement(ui,Object.assign({marginTop:4},null==a?void 0:a.helperText),n),i&&o.createElement(V,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),i))},mi={default:{borderRadius:"8px"},sharp:{borderRadius:0},rounded:{borderRadius:"8px"},pillShaped:{borderRadius:"9999px"}},pi={xs:"12px",sm:"14px",md:"16px",lg:"18px",xl:"20px"},vi={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"}},bi={paddingTop:"16px",paddingBottom:"8px",paddingLeft:"16px",paddingRight:"16px"},xi={paddingTop:"12px",paddingBottom:"12px",paddingLeft:"16px",paddingRight:"16px"},fi=["label","shadow","children","value","size","shape","variant","error","showLabel","isFocused","isHovered","isDisabled","isReadOnly","views"],wi=e=>{var{shadow:t,children:n,size:i="md",shape:a="default",variant:l="default",error:s=!1,showLabel:d=!1,isFocused:c=!1,isHovered:u=!1,isDisabled:g=!1,isReadOnly:m=!1,views:p={pickerBox:{}}}=e,v=h(e,fi);return o.createElement(r.Horizontal,Object.assign({gap:8,width:"100%",display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:"space-between",marginBottom:2,borderStyle:"solid",borderColor:s?"color.red.500":!u&&!c||g?"color.gray.300":"theme.primary",backgroundColor:"color.white",fontSize:r.Typography.fontSizes[i],cursor:g?"not-allowed":m?"auto":"text",opacity:g?.6:1,transition:"all 0.2s ease"},d?bi:xi,t,mi[a],vi[l],p.box,v),n)},Ei=["children"],yi=e=>{var{children:t}=e,n=h(e,Ei);return o.createElement(r.Center,Object.assign({gap:10,right:10,zIndex:500,flexWrap:"nowrap"},n),t)},Ci={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}},ki=["children","heading","isItalic","isUnderlined","isStriked","weight","size","dropDown"],ji=e=>{var{children:t,heading:n,isItalic:i=!1,isUnderlined:a=!1,isStriked:l=!1,weight:s="normal",size:d="sm"}=e,c=h(e,ki);return o.createElement(r.Element,Object.assign({as:"label",width:"100%",fontSize:d,fontStyle:i?"italic":"normal",fontWeight:r.Typography.fontWeights[s],textDecoration:l?"line-through":a?"underline":"none"},n?Ci[n]:{},c),t)},Ii=e=>o.createElement(ji,Object.assign({},e)),Si=["children","size","error","color","views","helperText"],Oi=e=>{var{children:t,size:r="md",error:n=!1,color:i="theme.primary",views:a={label:{}}}=e,l=h(e,Si);return o.createElement(Ii,Object.assign({top:0,zIndex:-10,position:"absolute",fontSize:pi[r],lineHeight:pi[r],letterSpacing:"-0.01em",whiteSpace:"nowrap",color:n?"color.red.500":i,transition:"all 0.2s ease"},a.label,l),t)},zi=["children"],Hi=e=>{var{children:t}=e,n=h(e,zi);return o.createElement(r.Vertical,Object.assign({width:"100%",maxWidth:"100%",position:"relative"},n),t)},Mi={xs:12,sm:16,md:20,lg:24,xl:28},Ti=["isHovered","setIsHovered","option","size","callback","style"],Ri=["id","name","value","onChange","isMulti","isDisabled","isReadOnly","options"],Di=["option","size","removeOption"],Wi=["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"],Vi=e=>{var{isHovered:t,setIsHovered:n,option:i,size:a="md",callback:l=(()=>{}),style:s}=e,d=h(e,Ti),c=()=>n(!t);return o.createElement(r.Element,Object.assign({as:"li",margin:0,paddingVertical:8,paddingHorizontal:8,listStyleType:"none",cursor:"pointer",onMouseEnter:c,onMouseLeave:c,onClick:e=>((e,t)=>{e.stopPropagation(),e.preventDefault(),"function"==typeof l&&l(t)})(e,i.value),backgroundColor:t?"color.gray.100":"transparent",borderRadius:"4px",transition:"all 0.15s ease"},d),o.createElement(V,Object.assign({fontSize:r.Typography.fontSizes[a],fontWeight:"400",lineHeight:"1.5"},s),i.label))},Li=e=>{var t,{size:n="md",views:i={field:{},text:{}},value:a,isDisabled:l,placeholder:s,removeOption:d=(()=>{}),options:c}=e,u=Object.assign({margin:0,width:"95%",height:"100%",border:"none",paddingVertical:4,paddingHorizontal:0,fontSize:r.Typography.fontSizes[n],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"},i.field,i.text),g=c.length>0&&c.find(e=>e.value===a);return o.createElement(V,Object.assign({},u),(""===a||Array.isArray(a)&&0===a.length)&&s?s:o.createElement(o.Fragment,null,"string"==typeof a?null!=(t=g&&g.label)?t:a:Array.isArray(a)&&a.length>0?o.createElement(r.Horizontal,{gap:6},a.map(e=>o.createElement(_i,{key:e,option:e,removeOption:d}))):o.createElement("span",null,a)))},Bi=e=>{var{id:t,name:n,value:i,onChange:a,isMulti:l=!1,isDisabled:s=!1,isReadOnly:d=!1,options:c=[]}=e,u=h(e,Ri);return o.createElement(r.Element,Object.assign({id:t,name:n,as:"select",opacity:0,width:0,height:0,position:"absolute",value:i,disabled:s,readOnly:d,onChange:e=>{a&&a(e)},multiple:l},u),c.length>0&&c.map(e=>o.createElement("option",{key:e.value,value:e.value},e.label)))},Pi=e=>{var{size:t,views:n={},options:i,callback:a=(()=>{}),highlightedIndex:l,setHighlightedIndex:s}=e,d=(()=>{var[e,t]=o.useState(!1);return{isHovered:e,setIsHovered:t}})(),c=e=>a(e);return o.createElement(r.Element,Object.assign({as:"ul",role:"dropdown",width:"100%",display:"flex",flexDirection:"column",backgroundColor:"color.white",transition:"all 0.2s ease",margin:0,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"}}},null==n?void 0:n.dropDown),i&&i.length>0&&i.map((e,r)=>o.createElement(Vi,Object.assign({key:e.value,size:t,style:n.text,option:e,callback:c,backgroundColor:r===l?"color.gray.100":"transparent",onMouseEnter:()=>s(r)},d))))},_i=e=>{var{option:t,size:n="md",removeOption:i=(()=>{})}=e,a=h(e,Di);return o.createElement(r.Horizontal,Object.assign({gap:8,padding:8,alignItems:"center",borderRadius:"6px",backgroundColor:"color.gray.200",fontSize:r.Typography.fontSizes[n],onClick:e=>e.stopPropagation(),transition:"all 0.2s ease"},a),o.createElement(V,{size:n,fontWeight:"500"},t),o.createElement(Ht,{role:"close-button",color:"inherit",widthHeight:Mi[n],onClick:()=>i(t),transition:"all 0.2s ease",_hover:{opacity:.7}}))},Ai=e=>{var{id:n,name:i,label:a,value:l,placeholder:s,helperText:d,hide:c=!1,error:u=!1,isMulti:g=!1,isFocused:m=!1,isHovered:p=!1,isDisabled:v=!1,isReadOnly:b=!1,options:x=[],shadow:f={},size:w="md",shape:E="default",variant:y="default",views:C={text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}},onChange:k=(()=>{}),setHide:j=(()=>{}),setValue:I=(()=>{}),setIsHovered:S=(()=>{}),setIsFocused:O=(()=>{}),setHighlightedIndex:z,highlightedIndex:H}=e,M=h(e,Wi);o.useEffect(()=>{var e=()=>j(!0);return document.addEventListener("closeAllSelects",e),()=>document.removeEventListener("closeAllSelects",e)},[j]),o.useEffect(()=>{var e=e=>{e.target.closest("#"+n)||c||j(!0)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[n,c,j]);var T=!(!m||!a),R=()=>S(!p),D=t.useCallback(e=>{if(j(!0),document.dispatchEvent(new Event("closeAllSelects")),g&&Array.isArray(l)){if(!l.includes(e)){var t=[...l,e];I(t),k&&k(e)}}else I(e),k&&k(e);O(!0)},[g,l,j,I,k,O]);return o.createElement(hi,{style:{position:"relative",width:"100%",display:"inline-block"},id:n,role:"SelectBox",helperText:d,error:u,views:C,onClick:e=>{e.stopPropagation(),v||b||(e=>{document.dispatchEvent(new Event("closeAllSelects")),e&&e.stopPropagation&&e.stopPropagation();var t=!c;j(t),O(!t)})(e)}},o.createElement(wi,{label:a,size:w,error:u,shape:E,views:C,shadow:f,variant:y,value:l,color:"theme.primary",isHovered:p,isDisabled:v,isReadOnly:b,isFocused:m,showLabel:T,onMouseEnter:R,onMouseLeave:R},o.createElement(Hi,null,T&&o.createElement(Oi,Object.assign({htmlFor:n,color:"theme.primary",error:u},C),a),o.createElement(Bi,Object.assign({id:n,name:i,options:x,onChange:k,value:l,isDisabled:v,isReadOnly:b,isMulti:g,onFocus:()=>O(!0)},M)),o.createElement(Li,{options:x,size:w,views:C,value:l,isDisabled:v,placeholder:s,removeOption:e=>{if(Array.isArray(l)&&l.includes(e)){var t=l.filter(t=>t!==e);I(0===t.length?[]:t)}}})),o.createElement(yi,null,!b&&!v&&o.createElement(o.Fragment,null,o.createElement(yt,c?{color:"inherit",widthHeight:Mi[w],style:C.icon,orientation:"down"}:{color:"inherit",orientation:"up",widthHeight:Mi[w],style:C.icon})))),!c&&x.length>0&&o.createElement(r.Element,{onClick:e=>e.stopPropagation(),style:{position:"absolute",top:"calc(100% + 4px)",left:0,right:0,zIndex:1e3}},o.createElement(Pi,{size:w,views:Object.assign({},C,{dropDown:{borderRadius:"6px",border:"1px solid color.gray.200",boxShadow:"0 8px 16px rgba(0,0,0,0.1)",padding:"8px",maxHeight:"240px",overflowY:"auto"}}),options:x,callback:D,highlightedIndex:H,setHighlightedIndex:z})))},Fi=e=>{var{isChecked:r}=e,[n,i]=o.useState(!1),[a,l]=o.useState(r||!1),[s,d]=o.useState(r||!1);return t.useEffect(()=>{void 0!==r&&(l(r),d(r))},[r]),{isHovered:n,setIsHovered:i,on:a,setOn:l,value:s,setValue:d}},Ni={xs:{height:"8px",width:"8px"},sm:{height:"12px",width:"12px"},md:{height:"16px",width:"16px"},lg:{height:"20px",width:"20px"},xl:{height:"24px",width:"24px"}},Ui={xs:{height:"16px",width:"36px"},sm:{height:"20px",width:"44px"},md:{height:"24px",width:"52px"},lg:{height:"28px",width:"60px"},xl:{height:"32px",width:"68px"}},Gi={xs:{paddingVertical:4,paddingHorizontal:2},sm:{paddingVertical:4,paddingHorizontal:2},md:{paddingVertical:4,paddingHorizontal:4},lg:{paddingVertical:4,paddingHorizontal:4},xl:{paddingVertical:4,paddingHorizontal:4}},Yi=["id","name","label","inActiveChild","isChecked","activeChild","labelPosition","shadow","size","value","isHovered","isDisabled","isReadOnly","on","setOn","onChange","setValue","setIsHovered","helperText","views"],Ki=e=>o.createElement(r.Input,Object.assign({type:"checkbox"},e)),Xi=e=>{var{id:t,name:n,label:i,inActiveChild:a,activeChild:l,labelPosition:s="right",shadow:d={},size:c="sm",value:u=!1,isHovered:g=!1,isDisabled:m=!1,isReadOnly:p=!1,setOn:v,onChange:b,setValue:x=(()=>{}),setIsHovered:f=(()=>{}),views:w={slider:{},circle:{},label:{}}}=e,E=h(e,Yi),y=()=>f(!g),C={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"},w.label)};return o.createElement(Ii,Object.assign({htmlFor:t,onMouseEnter:y,onMouseLeave:y},C.container,E),o.createElement(Ki,Object.assign({id:t,name:n,opacity:0,width:0,height:0,checked:u,onChange:e=>{if(!p&&!m){var t=e.target.checked;x(t),v(t),b&&b(t)}},disabled:m,readOnly:p},E)),"left"===s&&i&&o.createElement(V,{fontWeight:"500",color:m?"color.gray.400":"color.gray.700",transition:"all 0.2s ease"},i),o.createElement(r.View,Object.assign({display:"flex",alignItems:"center",justifyContent:u?l?"space-between":"flex-end":a?"space-between":"flex-start",marginBottom:4,borderRadius:"9999px",backgroundColor:m?"color.gray.200":u?g?"color.blue.600":"theme.primary":g?"color.gray.400":"color.gray.300",overflow:"hidden",cursor:"pointer",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},d,Gi[c],Ui[c],w.slider),l&&u&&o.createElement(r.View,{marginLeft:8,marginRight:4,transition:"all 0.3s ease",display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},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)",zIndex:1},Ni[c],w.circle)),a&&!u&&o.createElement(r.View,{marginRight:8,marginLeft:4,transition:"all 0.3s ease",display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},a)),"right"===s&&i&&o.createElement(V,{fontWeight:"500",color:m?"color.gray.400":"color.gray.700",transition:"all 0.2s ease"},i))},Zi=e=>{var{label:o,placeholder:r,value:n}=e,[i,a]=t.useState(null!=o?o:r),[l,s]=t.useState(!1),[d,c]=t.useState(n||""),[u,g]=t.useState(!1);return t.useMemo(()=>{a(u&&!d?null!=r?r:"":null!=o?o:r)},[d,u,o,r]),{hint:i,setHint:a,isHovered:l,setIsHovered:s,value:d,setValue:c,isFocused:u,setIsFocused:g}},qi=["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"],Ji=e=>{var{id:t,name:n,hint:i,error:a,value:l,label:s,shadow:d,helperText:c,size:u="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:k=(()=>{}),onChange:j,onFocus:I,setHint:S=(()=>{}),setValue:O=(()=>{}),setIsFocused:z=(()=>{}),setIsHovered:H=(()=>{}),views:M={label:{},helperText:{}}}=e,T=h(e,qi),R=!(!v||!s),D=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[u],lineHeight:1.5*r.Typography.fontSizes[u],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),W=()=>H(!p);return o.createElement(hi,Object.assign({helperText:c,error:a,views:M},T),o.createElement(wi,Object.assign({label:s,size:u,error:a,shape:g,views:M,shadow:d,variant:m,value:l,color:"theme.primary",isHovered:p,isDisabled:f,isReadOnly:x,isFocused:v,showLabel:R,onMouseEnter:W,onMouseLeave:W},null==M?void 0:M.content),o.createElement(Hi,Object.assign({},null==M?void 0:M.warper),R&&o.createElement(Oi,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:n,rows:y,cols:C,value:l,readOnly:x,disabled:f,autoFocus:w,editable:!!b.toString(),placeholder:i,onBlur:e=>{k(e),z(!1)},onFocus:()=>{z(!0),I&&I()},multiline:!!E.toString(),onChange:e=>{"string"==typeof e?(O(e),j&&j(e)):(O(e.target.value),j&&j(e.target.value))}},D,null==M?void 0:M.textarea)))))},Qi=e=>{var{label:o,placeholder:r,value:n}=e,[i,a]=t.useState(null!=o?o:r),[l,s]=t.useState(!1),[d,c]=t.useState(!1),[u,g]=t.useState(n);return t.useMemo(()=>{a(l&&!u?null!=r?r:"":null!=o?o:r)},[u,l,o,r]),{hint:i,setHint:a,isFocused:l,setIsFocused:s,isHovered:d,setIsHovered:c,setValue:g,value:u}},$i=["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"],ea=e=>o.createElement(r.Input,Object.assign({type:"text"},e)),ta=e=>{var{id:t,name:n,label:i,hint:a,value:l,onChange:s,left:d,right:c,helperText:u,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:k=!0,isAutoFocus:j=!1,setHint:I=(()=>{}),setIsFocused:S=(()=>{}),setIsHovered:O=(()=>{}),setValue:z=(()=>{}),onClick:H=(()=>{}),onFocus:M,onBlur:T=(()=>{}),themeMode:R}=e,D=h(e,$i),{getColor:W,themeMode:V}=r.useTheme(),L=W("color.blueGray.700",{themeMode:R||V}),B=!(!w||!i),P=Object.assign({margin:0,paddingVertical:4,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),_=()=>O(!E);return o.createElement(hi,{helperText:u,error:f,views:p},o.createElement(wi,{label:i,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:_,onMouseLeave:_},d,o.createElement(Hi,null,B&&o.createElement(Oi,Object.assign({htmlFor:t,color:"theme.primary",error:f},p),i),o.createElement(ea,Object.assign({id:t,name:n,readOnly:C,disabled:y,autoFocus:j,placeholder:a,onFocus:()=>{S(!0),M&&M()},onBlur:e=>{T&&T(e),S(!1)},autoComplete:"off"},P,D,{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}))),k&&l&&!C&&!y&&o.createElement(yi,null,o.createElement(Ht,{widthHeight:r.Typography.fontSizes[v],color:L,onClick:()=>{z(""),s&&(T({target:{name:n}}),g&&g(""),s&&s("")),"undefined"==typeof document&&g&&g("")}})),c))},oa=e=>{var{defaultIsSelected:t=!1}=e,[r,n]=o.useState(!1),[i,a]=o.useState(t);return{isHovered:r,setIsHovered:n,isSelected:i,setIsSelected:a}},ra={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"}},na={xs:10,sm:14,md:16,lg:20,xl:24},ia={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"}},aa={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"}}},la=["id","icon","name","label","isChecked","onChange","onValueChange","shadow","labelPosition","size","error","isSelected","isHovered","isDisabled","isReadOnly","isIndeterminate","defaultIsSelected","setIsSelected","setIsHovered","views","infoText","helperText"],sa=e=>{var{id:t,icon:n,label:i,isChecked:a,onChange:l,onValueChange:s,shadow:d={},labelPosition:c="right",size:u="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,k=h(e,la),j=()=>E(!p),I=x?"indeterminate":a||m?"selected":"unselected",S=g?aa.error[I]:v?aa.disabled[I]:p?aa.hover[I]:{},O={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({},ia[I],S,{borderRadius:"4px"},ra[u],{transition:"all 0.2s ease"},d,y.checkbox)};return o.createElement(Ii,Object.assign({htmlFor:t,as:"div",onClick:()=>{b||v||(w&&w(!m),l&&l(!a),s&&s(!a))},onMouseEnter:j,onMouseLeave:j,size:r.Typography.fontSizes[u]},O.container,k),o.createElement(r.Vertical,{gap:8}," ",o.createElement(r.Horizontal,{gap:12,alignItems:"center"}," ","left"===c&&i&&o.createElement(V,Object.assign({size:u,fontWeight:"500"},null==y?void 0:y.label),i),o.createElement(r.Center,Object.assign({},O.checkbox),x?o.createElement(Vt,{widthHeight:na[u],color:"white",transition:"all 0.2s ease"}):(a||m)&&(null!=n?n:o.createElement(Vo,{widthHeight:na[u],color:"white",transition:"all 0.2s ease"}))),"right"===c&&i&&o.createElement(V,Object.assign({size:u,fontWeight:"500"},null==y?void 0:y.label),i)),C&&o.createElement(V,Object.assign({marginLeft:"left"===c?0:36,color:"color.gray.500",size:"sm",fontWeight:"400",lineHeight:"1.5"},null==y?void 0:y.infoText),C)),g&&o.createElement(V,{size:"xs",marginTop:4,marginHorizontal:0,color:"color.red.500",fontWeight:"500",transition:"all 0.2s ease"},g))},da=[{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"}],ca=e=>{var{placeholder:t}=e,[r,n]=o.useState(da),[i,a]=o.useState(null!=t?t:da[0].name),[l,s]=o.useState(!0),[d,c]=o.useState(!1),[u,g]=o.useState(!1);return{hide:l,setHide:s,newOptions:r,setNewOptions:n,isHovered:u,setIsHovered:g,isFocused:d,setIsFocused:c,value:i,setValue:a}},ua={xs:8,sm:10,md:12,lg:14,xl:16},ga=["size"],ha=["size"],ma=["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"],pa=e=>{var t=h(e,ga);return o.createElement(r.Element,Object.assign({as:"ul"},t))},va=e=>o.createElement(r.Input,Object.assign({type:"country"},e)),ba=e=>{var t=h(e,ha);return o.createElement(r.Element,Object.assign({as:"li"},t))},xa=e=>{var{option:n,size:i="md",callback:a=(()=>{}),views:l={text:{}}}=e,[s,d]=t.useState(!1),c=()=>d(!s);return o.createElement(ba,Object.assign({margin:0,role:"DropDownItem",listStyleType:"none",fontWeight:"normal",paddingVertical:6,paddingHorizontal:12,onMouseEnter:c,onMouseLeave:c,onClick:e=>{e&&e.stopPropagation&&e.stopPropagation(),a(n)},fontSize:r.Typography.fontSizes[i],backgroundColor:s?"trueGray.100":"transparent"},l.text),n)},fa=e=>{var{size:t,views:r={dropDown:{}},options:n=[],callback:i=(()=>{})}=e,a=e=>i(e);return o.createElement(pa,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),n.map(e=>o.createElement(xa,Object.assign({key:e.code,size:t,option:e.name,callback:a},r.text))))},wa=e=>{var{id:t,name:n,label:i,value:a,placeholder:l,helperText:s,hide:d=!1,error:c=!1,isHovered:u=!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:k=(()=>{}),setNewOptions:j=(()=>{}),setIsHovered:I=(()=>{}),setIsFocused:S=(()=>{}),setValue:O=(()=>{}),views:z={text:{},icon:{},label:{},dropDown:{},helperText:{}},themeMode:H}=e,M=h(e,ma),{getColor:T,themeMode:R}=r.useTheme(),D=T("color.blueGray.700",{themeMode:H||R}),W=()=>I(!u),V=!(!i||!g&&!a),L=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(hi,{helperText:s,error:c,views:z,onClick:()=>{p||v||k(!d)}},o.createElement(wi,{label:i,size:f,error:c,shape:E,views:z,shadow:b,variant:w,value:a,color:"theme.primary",isHovered:u,isDisabled:p,isReadOnly:v,isFocused:g,showLabel:V,onMouseEnter:W,onMouseLeave:W},o.createElement(Hi,null,V&&o.createElement(Oi,Object.assign({htmlFor:t,color:"theme.primary",error:c},z),i),o.createElement(va,Object.assign({id:t,name:n,placeholder:l,readOnly:v,disabled:p,autoFocus:m,onBlur:e=>{C(e),S(!1)},onFocus:()=>S(!0)},L,M,{value:a,onChange:e=>{var t=e.target.value,o=da.filter(e=>e.name.toLowerCase().startsWith(t.toLowerCase()));d&&k(!1),j(o),y&&y(t)}}))),o.createElement(yi,null,o.createElement(yt,d?{orientation:"down",widthHeight:ua[f],color:D,style:z.icon}:{orientation:"up",widthHeight:ua[f],color:D,style:z.icon}))),!d&&o.createElement(fa,{size:f,views:z,options:x,callback:e=>{k(!d),O(e),y&&y(e)}}))},Ea=()=>{var[e,t]=o.useState(!1),[r,n]=o.useState(!1),[i,l]=o.useState(a(new Date,"yyyy-MM-dd"));return{date:i,setDate:l,isHovered:e,setIsHovered:t,isFocused:r,setIsFocused:n}},ya=["id","icon","name","label","date","children","helperText","shadow","size","variant","shape","views","error","isHovered","isFocused","isDisabled","isReadOnly","setDate","setIsFocused","setIsHovered","onChange","onChangeText"],Ca=e=>o.createElement(r.Input,Object.assign({type:"date"},e)),ka=e=>{var{id:t,name:n,label:i,date:a,helperText:l,shadow:s={},size:d="md",variant:c="default",shape:u="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,k=h(e,ya),j=!(!v||!i),I=()=>E(!p),S=e=>{"string"==typeof e?(f(e),C&&C(e)):(f(e.target.value),y&&y(e.target.value))},O=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(hi,{helperText:l,error:m,views:g},o.createElement(wi,{label:i,size:d,error:m,shape:u,views:g,shadow:s,color:"theme.primary",variant:c,value:a,isHovered:p,isDisabled:b,isReadOnly:x,isFocused:v,showLabel:j,onMouseEnter:I,onMouseLeave:I},o.createElement(Hi,null,j&&o.createElement(Oi,Object.assign({htmlFor:t,color:"theme.primary",error:m},g),i),o.createElement(Ca,Object.assign({id:t,name:n,onFocus:()=>w(!0),disabled:b,readOnly:x},O,k,C&&{onChangeText:S},{onChange:S})))))},ja=e=>{var o=Qi(e),[r,n]=t.useState(!1);return Object.assign({isVisible:r,setIsVisible:n},e,o)},Ia=["visibleIcon","hiddenIcon"],Sa=["isVisible","setIsVisible"],Oa=(e,o,r)=>{var[n,i]=t.useState(e),[a,l]=t.useState(o?{value:o,label:o}:e[0]),[s,d]=t.useState(0),[c,u]=t.useState(null!=r?r:""),[g,h]=t.useState(!1);return{filteredItems:n,setFilteredItems:i,selectedItem:a,setSelectedItem:l,highlightedIndex:s,setHighlightedIndex:d,searchQuery:c,setSearchQuery:u,isDropdownVisible:g,setIsDropdownVisible:h}},za=["placeholder","items","showTick","onSelect","searchEnabled","left","right","label","filteredItems","setSelectedItem","selectedItem","highlightedIndex","setHighlightedIndex","searchQuery","setSearchQuery","setFilteredItems","views","isDropdownVisible","setIsDropdownVisible"],Ha=e=>{var{placeholder:n,items:i,showTick:a=!0,onSelect:l,searchEnabled:s=!0,left:d,right:c,label:u,filteredItems:g,setSelectedItem:m,selectedItem:p,highlightedIndex:v,setHighlightedIndex:b,searchQuery:x,setSearchQuery:f,setFilteredItems:w,views:E,isDropdownVisible:y,setIsDropdownVisible:C}=e,k=h(e,za);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%"},k),u&&o.createElement(V,{views:null==E?void 0:E.label,htmlFor:k.id},u),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(V,Object.assign({weight:"medium",flexGrow:1,color:"color.gray.800"},null==E?void 0:E.label),p.label)),c,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(ta,{id:k.id,name:k.name,width:"100%",type:"search",value:x,onChange:e=>(e=>{if(f(e),""===e)w(i);else{var t=i.filter(t=>t.label.toLowerCase().includes(e.toLowerCase()));w(t)}b(0)})(e),hint:n,isClearable:!1,left:o.createElement(Io,{widthHeight:16}),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(V,null,e.label),o.createElement(o.Fragment,null,e.icon&&e.icon,e.value===p.value&&a&&!e.icon&&o.createElement(Vo,{widthHeight:20})))))))))},Ma=["id","name","items","placeholder","searchPlaceholder"],Ta=e=>{var o,{value:r,defaultValue:n="",length:i=6,onChange:a,onChangeText:l,onComplete:s,onKeyDown:d,onKeyPress:c,pattern:u,stepValues:g,pasteTransformer:h}=e,m=void 0!==r,p=m?r:n,[v,b]=t.useState((null==p?void 0:p.slice(0,i))||""),[x,f]=t.useState(!1),[w,E]=t.useState(!1),[y,C]=t.useState(null),[k,j]=t.useState(null),I=t.useRef(null),S=t.useRef(null),O=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,i))||"")},[m,r,i,v]);var M=t.useCallback(e=>{var t=e;if(g&&g.length>0&&e){var o=parseInt(e,10);if(!isNaN(o)){for(var r=g[0],n=Math.abs(o-r),d=1;d<g.length;d++){var c=Math.abs(o-g[d]);c<n&&(n=c,r=g[d])}t=r.toString()}}b(t),a&&a(t),l&&l(t),s&&t.length===i&&s(t)},[a,l,s,i,g]),T=t.useCallback(e=>{e&&I.current!==e&&Object.defineProperty(I,"current",{value:e,writable:!0})},[]),R=t.useCallback(e=>{var t=e.currentTarget.value.slice(0,i);t.length>0&&H&&!H.test(t)?e.preventDefault():(M(t),I.current&&(I.current.value=t))},[i,H,M,I]),D=t.useCallback(()=>{if(I.current){var e,t=Math.min(I.current.value.length,i-1),o=I.current.value.length;null==(e=I.current)||e.setSelectionRange(t,o),C(t),j(o)}f(!0)},[i]),W=t.useCallback(()=>{f(!1)},[]),V=t.useCallback(e=>{d&&d(e)},[]),L=t.useCallback(e=>{c&&c(e)},[]),B=t.useCallback(e=>{var t=I.current;if(e.clipboardData&&t){var o=e.clipboardData.getData("text/plain"),r=h?h(o):o;e.preventDefault();var n=t.selectionStart||0,a=t.selectionEnd||0,l=(n!==a?v.slice(0,n)+r+v.slice(a):v.slice(0,n)+r+v.slice(n)).slice(0,i);if(!(l.length>0&&H)||H.test(l)){t.value=l,M(l),b(l);var s=Math.min(l.length,i-1),d=l.length;t.setSelectionRange(s,d),C(s),j(d)}}},[i,h,H,M,v,b]);return t.useEffect(()=>{var e=I.current,t=S.current;if(e&&t){O.current.value!==e.value&&O.current.onChange&&O.current.onChange(e.value),z.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",n,{capture:!0}),n(),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",n,{capture:!0}),r.disconnect()}}function n(){var t,o,r,n,i;if(document.activeElement!==e)return C(null),void j(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,d=null!=(n=null==e?void 0:e.maxLength)?n:0,c=null!=(i=null==e?void 0:e.value)?i:"",u=z.current.prev,g=-1,h=-1,m="none";if(0!==c.length&&null!==a&&null!==l){if(a===l&&!(a===c.length&&c.length<d))if(0===a)g=0,h=1,m="forward";else if(a===d)g=a-1,h=a,m="backward";else if(d>1&&c.length>1){var p=0;null!==u[0]&&null!==u[1]&&("backward"!=(m=a<u[1]?"backward":"forward")||u[0]===u[1]&&u[0]<d||(p=-1)),g=p+a,h=p+a+1}-1!==g&&-1!==h&&g!==h&&I.current&&I.current.setSelectionRange(g,h,m)}var v=-1!==g?g:a,b=-1!==h?h:l,x="none"!==m?m:s;C(v),j(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 n=null==(t=I.current)?void 0:t.selectionStart,i=null==(o=I.current)?void 0:o.selectionEnd,a=null==(r=I.current)?void 0:r.selectionDirection;null!==n&&null!==i&&void 0!==n&&void 0!==i&&(C(n),j(i),z.current.prev=[n,i,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:S,mirrorSelectionStart:y,mirrorSelectionEnd:k,setMirrorSelectionStart:C,setMirrorSelectionEnd:j,setInputRef:T,handleChange:R,handleFocus:D,handleBlur:W,handleKeyDown:V,handleKeyPress:L,handlePaste:B}},Ra=["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"],Da=t.createContext({slots:[],isFocused:!1,isHovering:!1});function Wa(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}var Va=e=>{var{id:n,name:i,label:a,value:l="",length:s=6,helperText:d,placeholder:c="",views:u={},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:k,inputRef:j,containerRef:I,mirrorSelectionStart:S,mirrorSelectionEnd:O,handlePaste:z,handleChange:H,handleFocus:M,handleBlur:T,handleKeyDown:R,setInputRef:D,onBlur:W=(()=>{}),onClick:V=(()=>{}),onFocus:L=(()=>{})}=e,B=h(e,Ra);r.useTheme();var P=!!a,_=o.useMemo(()=>({slots:Array.from({length:s}).map((e,t)=>{var o,r=f&&null!==S&&null!==O&&(S===O&&t===S||t>=S&&t<O),n=void 0!==l[t]?l[t]:null;return{char:n,placeholderChar:void 0!==l[0]?null:null!=(o=null==c?void 0:c[t])?o:null,isActive:r,hasFakeCaret:r&&null===n}}),isFocused:f,isHovering:!E&&w}),[f,w,E,s,O,S,c,l]);return t.useEffect(()=>{C&&j.current&&j.current.focus()},[C,j]),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;";Wa(e.sheet,"@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }"),Wa(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Wa(e.sheet,"[data-input-otp]:autofill { "+t+" }"),Wa(e.sheet,"[data-input-otp]:-webkit-autofill { "+t+" }"),Wa(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; } }"),Wa(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(hi,Object.assign({helperText:d,error:x,views:u},B),P&&o.createElement(Oi,Object.assign({htmlFor:n,color:"theme.primary",error:x},u.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(Da.Provider,{value:_},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"},u.container),_.slots.map((e,t)=>o.createElement(wi,Object.assign({key:(n||i)+"-"+t,size:g,error:x,shape:m,views:u,variant:p,value:e.char||"",color:"theme.primary",isHovered:w,isDisabled:E,isReadOnly:y,isFocused:e.isActive,showLabel:!1,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),justifyContent:"center",alignItems:"center",width:"100%",position:"relative",height:"xs"===g?"32px":"sm"===g?"36px":"md"===g?"40px":"lg"===g?"48px":"56px"},u.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"},u.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},u.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=>D(e),"data-input-otp":!0,"data-input-otp-placeholder-shown":0===l.length||void 0,"data-input-otp-mss":S,"data-input-otp-mse":O,id:n||i,name:i,type:"password"===b?"password":"text",inputMode:"password"!==b?"numeric":void 0,pattern:"[0-9]*",maxLength:s,readOnly:y,disabled:E,placeholder:c,value:l,onChange:H,onKeyDown:R,onPaste:z,onFocus:M,onBlur:T,onClick:V,onMouseOver:()=>k(!0),onMouseLeave:()=>k(!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"}},u.input))))))},La=["children","autoFocus","initFocus","onChange"],Ba=t.createContext({active:!1,focusNextInput:()=>{},setInputRef:()=>{},handleSubmitEditing:()=>{},getReturnKeyType:()=>"next"}),Pa=["name","type"],_a=e=>{var{name:o,type:r}=e,n=h(e,Pa),i=t.useContext(Ba),{touched:a,errors:s,submitCount:d,values:c,setFieldTouched:u,setFieldValue:g}=l.useFormikContext(),m=e=>{"Enter"===e.key&&(e.preventDefault(),i.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(c,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),n,{value:b,error:v,onBlur:()=>{u(o,!0)},onKeyPress:m},p?{onChangeText:e=>{g(o,e),null==n.onChangeText||n.onChangeText(e)}}:{onChange:e=>{g(o,e),null==n.onChange||n.onChange(e)}},i.active?{handleKeyPress:m}:{})},Aa=["value"],Fa=["value"],Na=["visibleIcon","hiddenIcon"],Ua=["isVisible","setIsVisible"],Ga=["items","placeholder","searchPlaceholder"],Ya=(e,t,o)=>Math.min(Math.max(e,t),o),Ka=e=>{var o,{min:r=0,max:n=100,step:i=1,value:a=0,defaultValue:l,onChange:s,onDrag:d,orientation:c="horizontal",isDisabled:u=!1,stepValues:g}=e,h=Ya(null!=(o=null!=a?a:l)?o:r,r,n),[m,p]=t.useState(h),[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(Ya(a,r,n))},[a,y,r,n]);var k=t.useCallback(e=>{var t=Ya(e,r,n);y||p(t),s&&t!==C&&s(t),v&&d&&d(t)},[y,r,n,s,C,v,d]),j=t.useCallback(e=>{if(!u&&w.current){var t=w.current.getBoundingClientRect(),o=((e,t,o,r,n,i,a)=>{var l,s=r-o;if(l=Ya("horizontal"===i?(e-t.left)/t.width:(t.bottom-e)/t.height,0,1),a&&a.length>0){for(var d=o+l*s,c=a[0],u=Math.abs(d-c),g=1;g<a.length;g++){var h=Math.abs(d-a[g]);h<u&&(u=h,c=a[g])}return c}var m=Math.round((o+l*s)/n)*n;return Ya(m,o,r)})("touches"in e?"horizontal"===c?e.touches[0].clientX:e.touches[0].clientY:"horizontal"===c?e.clientX:e.clientY,t,r,n,i,c,g);k(o)}},[r,n,i,c,k,u,g]),I=t.useCallback(e=>{if(!u){e.preventDefault(),b(!0),j(e);var t=e=>{j(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)}},[j,u]),S=t.useCallback(e=>{E.current&&E.current.contains(e.target)||I(e)},[I]),O=t.useCallback(e=>{if(!u){var t=C;switch(e.key){case"ArrowLeft":case"ArrowDown":t=C-i;break;case"ArrowRight":case"ArrowUp":t=C+i;break;case"Home":t=r;break;case"End":t=n;break;default:return}e.preventDefault(),k(t)}},[C,r,n,i,k,u]),z=n-r;return{currentValue:C,isDragging:v,isHovered:x,setIsHovered:f,trackRef:w,thumbRef:E,handleThumbMouseDown:I,handleTrackMouseDown:S,handleKeyDown:O,thumbPositionPercent:0===z?0:(C-r)/z*100}},Xa={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%"}},Za={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}},qa={sharp:0,rounded:4,pillShaped:24},Ja=(e=>({default:{backgroundColor:"color.blueGray.200"},outline:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:"color.blueGray.300"}}))(),Qa={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}},$a={horizontal:{width:"100%",minWidth:"120px",height:"auto",flexDirection:"row",paddingVertical:8},vertical:{height:"100%",minHeight:"120px",width:"auto",flexDirection:"column-reverse",paddingHorizontal:8}},el=["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"],tl=e=>{var t,n,{min:i=0,max:a=100,step:l=1,currentValue:s,stepValues:d,shape:c="rounded",size:u="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:k,setIsHovered:j,trackRef:I,thumbRef:S,handleThumbMouseDown:O,handleTrackMouseDown:z,handleKeyDown:H,thumbPositionPercent:M,ariaLabel:T="Slider",views:R={container:{},track:{},progress:{},filledTrack:{},thumb:{},label:{},valueLabel:{},stepMarks:{},tooltip:{}}}=e,D=h(e,el),{getColor:W,themeMode:V}=r.useTheme(),L=W(x,{themeMode:E||V}),B=W("theme.disabled",{themeMode:E||V}),P=W(Ja[g].backgroundColor,{themeMode:E||V}),_="vertical"===m,{trackCrossAxisSize:A,thumbSize:F}=Qa[u]||{trackCrossAxisSize:Xa[u].height,thumbSize:Za[u].width||16},N=o.createElement(r.Vertical,Object.assign({width:"100%",gap:8},R.container,D),f&&o.createElement(r.Horizontal,{justifyContent:"space-between",alignItems:"center"},o.createElement(r.Text,Object.assign({fontSize:14,fontWeight:500},R.label),f),v&&o.createElement(r.Text,Object.assign({fontSize:14,color:"color.blueGray.500"},R.valueLabel),s)),o.createElement(r.View,Object.assign({ref:I,position:"relative",cursor:p?"not-allowed":"pointer",opacity:p?.6:1,onMouseDown:z,onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1)},Xa[u],{borderRadius:qa[c],backgroundColor:P},Ja[g],y,R.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-i)/(a-i)*100+"%",transform:"translate(-50%, -50%)",width:4,height:4,borderRadius:"50%",backgroundColor:p?B:L,zIndex:1},R.stepMarks)))),o.createElement(r.View,Object.assign({position:"absolute",top:0,left:0,height:"100%",width:M+"%",backgroundColor:p?B:L,borderRadius:qa[c],transition:"width 0.1s ease-in-out"},R.progress,R.filledTrack)),o.createElement(r.View,Object.assign({ref:S,role:"slider",tabIndex:p?-1:0,"aria-valuemin":i,"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:L),transition:C?"none":"transform 0.1s ease-in-out",transform:k?"translate(-50%, -50%) scale(1.1)":"translate(-50%, -50%)",zIndex:2,onMouseDown:O,onTouchStart:O,onKeyDown:H},Za[u],R.thumb),b&&(k||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},R.tooltip),o.createElement(r.Text,Object.assign({},null==(t=R.tooltip)?void 0:t.text),null==s?void 0:s.toFixed(l<1?1:0))))),w&&o.createElement(ui,null,w)),U=o.createElement(r.Center,Object.assign({},$a[m],{position:"relative",onMouseEnter:()=>!p&&j(!0),onMouseLeave:()=>!p&&j(!1)},D,null==R?void 0:R.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},R.label),f),v&&o.createElement(r.Text,Object.assign({fontSize:14,color:"color.blueGray.500"},R.valueLabel),s)),o.createElement(r.View,Object.assign({ref:I,position:"relative",borderRadius:A/2,backgroundColor:p?B:P,cursor:p?"not-allowed":"pointer",width:_?A+"px":"100%",height:_?"100%":A+"px",onMouseDown:z,onTouchStart:z},null==R?void 0:R.track),d&&d.length>0&&o.createElement(o.Fragment,null,d.map(e=>{var t=(e-i)/(a-i)*100;return o.createElement(r.View,Object.assign({key:e,position:"absolute",width:4,height:4,borderRadius:"50%",backgroundColor:p?B:L,zIndex:1},_?{bottom:t+"%",left:"50%",transform:"translate(-50%, 50%)"}:{left:t+"%",top:"50%",transform:"translate(-50%, -50%)"},R.stepMarks))})),o.createElement(r.View,Object.assign({position:"absolute",borderRadius:A/2,backgroundColor:p?B:L},_?{bottom:0,left:0,width:"100%",height:M+"%"}:{top:0,left:0,height:"100%",width:M+"%"},null==R?void 0:R.filledTrack,null==R?void 0:R.progress)),o.createElement(r.View,Object.assign({ref:S,role:"slider",tabIndex:p?-1:0,"aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":s,"aria-orientation":m,"aria-disabled":p,"aria-label":T,position:"absolute",width:F+"px",height:F+"px",borderRadius:"50%",backgroundColor:p?B:L,border:"2px solid "+W("color.white"),boxShadow:"0 1px 3px rgba(0, 0, 0, 0.2)",cursor:p?"not-allowed":"grab",transform:_?"translateX(-50%)":"translateY(-50%)",zIndex:2,transition:C?"none":"left 0.1s, bottom 0.1s"},_?{left:"50%",bottom:M+"%"}:{top:"50%",left:M+"%"},{onMouseDown:O,onTouchStart:O,onKeyDown:H},null==R?void 0:R.thumb),b&&(k||C)&&o.createElement(r.View,Object.assign({position:"absolute",padding:"4px 8px",backgroundColor:W("color.black"),color:W("color.white"),borderRadius:"4px",fontSize:"12px",whiteSpace:"nowrap",zIndex:3},_?{left:"100%",marginLeft:"8px",bottom:"0",transform:"translateY(50%)"}:{bottom:"100%",left:"50%",marginBottom:"8px",transform:"translateX(-50%)"},null==R?void 0:R.tooltip),o.createElement(r.Text,Object.assign({},null==R||null==(n=R.tooltip)?void 0:n.text),null==s?void 0:s.toFixed(l<1?1:0))))),w&&o.createElement(ui,{marginTop:8},w));return _||b?U:N},ol=s.create(e=>({visible:!1,title:"",subtitle:"",variant:"info",isClosable:!1,views:{},action:()=>{},actionText:"",showIcon:!1,timeout:3e3,show:function(t,o,r,n,i,a,l,s,d){return void 0===o&&(o=""),void 0===r&&(r=""),e({visible:!0,variant:t,title:o,subtitle:r,isClosable:n,views:i,action:a,actionText:l,showIcon:s,timeout:d})},hide:()=>e({visible:!1})})),rl=(e,t,o,r)=>{ol.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)},nl=()=>{ol.getState().hide()},il={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"}}},al=e=>{var n,i,{variant:a,hide:l,title:s,subtitle:d,theme:c,action:u,actionText:g,showIcon:h=!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!=c?c:il,x=!(!u||!g),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(Lt,Object.assign({widthHeight:24,color:w},null==v?void 0:v.icon)),success:o.createElement(bo,Object.assign({widthHeight:24,color:w},null==v?void 0:v.icon)),warning:o.createElement(Nt,Object.assign({widthHeight:24,color:w},null==v?void 0:v.icon)),error:o.createElement(Jt,Object.assign({widthHeight:24,color:w},null==v?void 0:v.icon))}[a],y=h&&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(V,Object.assign({size:"md",weight:"semiBold"},null==v?void 0:v.title),s),d&&o.createElement(V,Object.assign({size:"sm"},null==v?void 0:v.subtitle),d)),x&&o.createElement(V,Object.assign({marginRight:10,onClick:u,padding:"6px 10px",whiteSpace:"nowrap"},f,null==v?void 0:v.actionText),g),m&&o.createElement(r.View,Object.assign({position:"absolute",zIndex:1e4,right:8,top:6,onClick:()=>{l()}},null==v||null==(n=v.closingIcon)?void 0:n.container),o.createElement(Ht,Object.assign({widthHeight:18,color:w},null==v||null==(i=v.closingIcon)?void 0:i.icon))))},ll=e=>{var{accept:t,isLoading:n=!1,progress:i=0,icon:a,text:l,previewUrl:s,thumbnailUrl:d,errorMessage:c,fileInputRef:u,videoRef:g,selectedFile:h,handleFileChange:m,handleClick:p,containerProps:v,errorMessageProps:b,progressProps:x,videoProps:f,imageProps:w,iconProps:E,textProps:y,fileType:C,previewUrl:k,renderError:j=(e=>{var{errorMessage:t,errorMessageProps:n}=e;return o.createElement(r.Text,Object.assign({color:"red",fontSize:12,marginTop:8},n,null==M?void 0:M.text),t)}),renderText:I=(e=>{var{text:t,textProps:n}=e;return o.createElement(r.Text,Object.assign({marginTop:8},n,null==M?void 0:M.text),t)}),renderFile:S=(e=>{var{selectedFile:t,textProps:n}=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},n,null==M?void 0:M.text),t.name),o.createElement(r.Text,Object.assign({},n,null==M?void 0:M.text),"(",Math.round(t.size/1024)," KB)")):null}),renderVideo:O=(e=>{var{selectedFile:t,videoRef:n,videoProps:i}=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:n},i,null==M?void 0:M.view)))}),renderImage:z=(e=>{var{previewUrl:t,imageProps:n}=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%"}},n,null==M?void 0:M.image)))}),renderProgress:H=(e=>{var{progress:t,progressProps:n}=e;return o.createElement(r.Horizontal,Object.assign({gap:8,alignItems:"center"},n,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=k||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:h&&100===i?"200px":"auto"},v,null==M?void 0:M.container),100===i&&"image"===C&&T&&z({previewUrl:T,imageProps:w}),100===i&&"video"===C&&d&&O({selectedFile:h,thumbnailUrl:d,videoRef:g,videoProps:f,imageProps:w}),100===i&&"file"===C&&h&&S({selectedFile:h,textProps:y}),i<100&&(a||o.createElement(jo,Object.assign({widthHeight:32},E))),!h&&l&&I({text:l,textProps:y}),n&&H({progress:i,progressProps:x}),c&&j({errorMessage:c,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)))},sl=["accept","icon","text","maxSize","onFileSelect","validateFile","isLoading","progress","fileType"],dl=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}))}})),cl=e=>{console.log("hideModal",e),dl.getState().onHide(e),dl.getState().hide("string"==typeof e?e:void 0)},ul={sharp:{borderRadius:0},rounded:{borderRadius:"8px"}},gl={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"}},hl={xs:12,sm:16,md:20,lg:24,xl:28},ml=["children","blur","isOpen","isClosePrevented","onClose","position","views"],pl=["children","shadow","isFullScreen","shape","views","isOpen"],vl=["children","buttonColor","iconSize","buttonPosition","views"],bl=["children","views"],xl=["children","views"],fl=e=>{var{children:t,blur:n,isOpen:i=!1,isClosePrevented:a=!1,onClose:l=(()=>{}),position:s="center",views:d}=e,c=h(e,ml),u=()=>{a||l()};return o.createElement(r.Center,Object.assign({position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:u,visibility:i?"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:n?"blur("+n+"px)":void 0,transition:"all 0.3s ease",onClick:u},gl[s],c,null==d?void 0:d.view),t))},wl=e=>{var{children:t}=e;return o.createElement(o.Fragment,null,t)};wl.Overlay=fl,wl.Container=e=>{var{children:t,shadow:n,isFullScreen:i=!1,shape:a="rounded",views:l}=e,s=h(e,pl),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:i?"100%":600,height:i?"100%":"fit-content",onClick:e=>{e&&e.stopPropagation&&e.stopPropagation()},transition:"all 0.3s ease"},n||d,ul[a],s,null==l?void 0:l.container),t)},wl.Header=e=>{var{children:t,buttonColor:n="theme.primary",iconSize:i="md",buttonPosition:a="right",views:l}=e,s=h(e,vl),d=o.createElement(r.View,{onClick:s.onClose?s.onClose:cl},o.createElement(Ht,{widthHeight:hl[i],color:n}));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)},wl.Body=e=>{var{children:t,views:n}=e,i=h(e,bl);return o.createElement(r.View,Object.assign({paddingVertical:16,paddingHorizontal:24,fontSize:"16px",fontWeight:"400",lineHeight:"24px",color:"color.gray.700"},i,null==n?void 0:n.view),t)},wl.Footer=e=>{var{children:t,views:n}=e,i=h(e,xl);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},i,null==n?void 0:n.container),t)},wl.Layout=e=>{var{modals:r,onShow:n,onHide:i}=e,a=dl(e=>e.modals);return n&&dl.getState().setOnShow(n),i&&dl.getState().setOnHide(i),0===a.length?null:o.createElement(t.Fragment,null,a.map((e,t)=>{var n=r[e.name];return n?o.createElement(fl,Object.assign({key:t,isOpen:e.props.isVisible,onClose:()=>cl(e.name),blur:5},e.overlayProps,{style:{zIndex:1e3+t}}),o.createElement(n,Object.assign({},e.props))):(console.error(e.name+" modal doesn't exist"),null)}))};var El={sm:{padding:"8px 12px",fontSize:"12px",fontWeight:"500"},md:{padding:"12px 16px",fontSize:"14px",fontWeight:"500"},lg:{padding:"16px 20px",fontSize:"16px",fontWeight:"500"}},yl={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"}},Cl={horizontal:{flexDirection:"row",gap:"8px"},vertical:{flexDirection:"column",gap:"4px"}},kl={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"}},jl=["href","children","views"],Il=t.createContext({activeItemId:null,setActiveItemId:()=>{},expandedItemIds:[],toggleExpandedItem:()=>{},isItemExpanded:()=>!1,orientation:"vertical",size:"md",variant:"default"}),Sl=e=>{var{children:t,value:r}=e;return o.createElement(Il.Provider,{value:r},t)},Ol=()=>{var e=t.useContext(Il);if(!e)throw new Error("useNavigationMenuContext must be used within a NavigationMenuProvider");return e},zl=e=>{var{children:t,views:n}=e,{orientation:i}=Ol();return o.createElement("horizontal"===i?r.Horizontal:r.Vertical,Object.assign({width:"100%"},Cl[i],{transition:"all 0.2s ease",borderRadius:"4px"},null==n?void 0:n.container),t)},Hl=t.createContext({itemValue:null,isDisabled:!1}),Ml=e=>{var t,{item:n,value:i,isDisabled:a=!1,children:l,views:s}=e,{activeItemId:d,setActiveItemId:c,orientation:u,size:g,variant:h,onItemActivate:m}=Ol(),p=(null==n?void 0:n.id)||i,v=d===p,b=(null==n?void 0:n.items)&&n.items.length>0,x=(null==n?void 0:n.disabled)||a,f="horizontal"===u?r.Horizontal:r.Vertical;return l?o.createElement(Hl.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"},El[g],yl[h],v?kl.active:{},{_hover:x?{}:kl.hover},null==s?void 0:s.item),l)):b&&n?o.createElement(f,Object.assign({width:"100%",flexDirection:"column",position:"relative"},null==s?void 0:s.item),o.createElement(Tl,{itemId:n.id,disabled:n.disabled,views:s},n.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==s?void 0:s.icon),n.icon),n.label),o.createElement(Rl,{itemId:n.id},o.createElement(zl,null,null==(t=n.items)?void 0:t.map(e=>o.createElement(Ml,{key:e.id,item:e}))))):n?o.createElement(r.View,Object.assign({as:n.href?"a":"div",to:n.href,onClick:()=>{x||p&&(c(p),m&&m(p))},cursor:n.disabled?"not-allowed":"pointer",opacity:n.disabled?.6:1,width:"100%",display:"flex",alignItems:"center",borderRadius:"4px",transition:"all 0.2s ease",gap:"8px"},El[g],yl[h],v?kl.active:{},{_hover:n.disabled?{}:kl.hover},null==s?void 0:s.item),n.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==s?void 0:s.icon),n.icon),n.label):null},Tl=e=>{var{children:t,itemId:n,disabled:i,views:a}=e,{activeItemId:l,toggleExpandedItem:s,isItemExpanded:d,size:c,variant:u}=Ol(),g=l===n,h=d(n);return o.createElement(r.View,Object.assign({onClick:e=>{e.preventDefault(),i||s(n)},cursor:i?"not-allowed":"pointer",opacity:i?.5:1,width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:4,transition:"background-color 0.2s ease"},El[c],yl[u],g?kl.active:{},{_hover:i?{}:kl.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:h?"rotate(180deg)":"rotate(0deg)"},null==a?void 0:a.indicator),o.createElement(Mo,{widthHeight:16,color:"currentColor",filled:!0})))},Rl=e=>{var{children:t,itemId:n,views:i}=e,{isItemExpanded:a,orientation:l}=Ol();return a(n)?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==i?void 0:i.container),t):null},Dl=e=>{var{items:t,orientation:n,views:i}=e;return t&&0!==t.length?o.createElement("horizontal"===n?r.Horizontal:r.Vertical,Object.assign({width:"100%"},Cl[n],null==i?void 0:i.container),o.createElement(zl,{views:i},t.map(e=>o.createElement(Ml,{key:e.id,item:e,views:i})))):null},Wl=["items","children","orientation","size","variant","defaultActiveItemId","defaultExpandedItemIds","onItemActivate","views"],Vl=e=>{var{items:r,children:n,orientation:i="vertical",size:a="md",variant:l="default",defaultActiveItemId:s=null,defaultExpandedItemIds:d=[],onItemActivate:c,views:u}=e,g=h(e,Wl),{activeItemId:m,setActiveItemId:p,expandedItemIds:v,toggleExpandedItem:b,isItemExpanded:x}=function(e,o){void 0===e&&(e=null),void 0===o&&(o=[]);var[r,n]=t.useState(e),[i,a]=t.useState(o);return{activeItemId:r,setActiveItemId:n,expandedItemIds:i,toggleExpandedItem:e=>{a(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},isItemExpanded:e=>i.includes(e)}}(s,d);return o.createElement(Sl,{value:{activeItemId:m,setActiveItemId:p,expandedItemIds:v,toggleExpandedItem:b,isItemExpanded:x,orientation:i,size:a,variant:l,onItemActivate:c}},r?o.createElement(Dl,Object.assign({items:r,orientation:i,size:a,variant:l,views:u},g)):n)};Vl.List=zl,Vl.Item=Ml,Vl.Trigger=Tl,Vl.Content=Rl,Vl.Link=e=>{var{href:n,children:i,views:a}=e,l=h(e,jl),{itemValue:s,isDisabled:d}=(()=>{var e=t.useContext(Hl);if(!e)throw new Error("useNavigationMenuItemContext must be used within a NavigationMenuItem");return e})(),{activeItemId:c,setActiveItemId:u,onItemActivate:g}=Ol(),m=c===s;return o.createElement(r.View,Object.assign({as:"a",href:d?void 0:n,onClick:e=>{d?e.preventDefault():(s&&(u(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),i)};var Ll={},Bl=t.createContext({views:Ll,onRowClick:()=>{}}),Pl=e=>{var{children:t,views:r=Ll,onRowClick:n}=e;return o.createElement(Bl.Provider,{value:{views:r,onRowClick:n}},t)},_l=()=>t.useContext(Bl),Al={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"}},Fl=e=>{var{views:t}=_l();return o.createElement(r.Element,Object.assign({as:"table",borderCollapse:"collapse"},Al.table,null==t?void 0:t.table,e))},Nl=e=>{var{views:t}=_l();return o.createElement(r.Element,Object.assign({as:"thead",textAlign:"left"},Al.thead,null==t?void 0:t.thead,e))},Ul=e=>{var{views:t}=_l();return o.createElement(r.Element,Object.assign({as:"th",whiteSpace:"nowrap"},Al.th,null==t?void 0:t.th,e))},Gl=e=>{var{views:t,onRowClick:n}=_l();return o.createElement(r.Element,Object.assign({as:"tr"},Al.tr,null==t?void 0:t.tr,{onClick:n},e))},Yl=e=>{var{views:t}=_l();return o.createElement(r.Element,Object.assign({as:"td",whiteSpace:"nowrap",fontWeight:e.isFirstColumn?"500":"400"},Al.td,null==t?void 0:t.td,e))},Kl=e=>{var{views:t}=_l();return o.createElement(r.Element,Object.assign({as:"tbody"},Al.tbody,null==t?void 0:t.tbody,e))},Xl=e=>{var{views:t}=_l();return o.createElement(r.Element,Object.assign({as:"tfoot"},Al.tfoot,null==t?void 0:t.tfoot,e))},Zl=e=>{var{views:t}=_l();return o.createElement(r.Element,Object.assign({as:"caption"},Al.caption,null==t?void 0:t.caption,e))},ql=e=>{var{children:t,views:r,onClick:n}=e;return o.createElement(Pl,{views:r,onRowClick:n},t)};ql.Head=Nl,ql.HeadCell=Ul,ql.Body=Kl,ql.Row=Gl,ql.Cell=Yl,ql.Footer=Xl,ql.Caption=Zl,ql.Container=Fl,ql.Template=e=>{var{data:t,columns:r,footer:n,caption:i}=e;return o.createElement(Fl,{role:"Table"},i&&o.createElement(Zl,null,i),o.createElement(Nl,null,o.createElement(Gl,null,r.map(e=>o.createElement(Ul,{key:e.field},e.title)))),o.createElement(Kl,null,t.map((e,t)=>o.createElement(Gl,{key:t},r.map((t,r)=>o.createElement(Yl,{key:t.field,isFirstColumn:0===r},e[t.field]))))),n&&o.createElement(Xl,null,o.createElement(Gl,null,n.map((e,t)=>o.createElement(Yl,Object.assign({key:t},e.props),e.value)))))};var Jl=e=>{var{tab:t,isActive:n,onClick:i,iconPosition:a="left",tabStyles:l,textStyles:s}=e;return o.createElement(r.Element,Object.assign({as:"div",role:"tab","aria-selected":n,tabIndex:n?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:n?"theme.primary":"transparent",borderBottomColor:n?"transparent":"color.gray.200",backgroundColor:n?"color.white":"transparent",color:n?"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:i,"data-state":n?"active":"inactive"}),t.icon&&o.createElement(r.Element,null,t.icon),o.createElement(r.Text,Object.assign({},s),t.title))},Ql=e=>{var{tabs:t=[],activeTab:n,handleTabClick:i,views:a={},renderTab:l,renderContent:s,iconPosition:d="left"}=e;return n?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===n.title,r=()=>i(e);return l?l(e,t,r):o.createElement(Jl,{key:e.title,tab:e,isActive:t,onClick:r,iconPosition:d,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(n):n.content)):null},$l=o.memo(e=>{var{tabs:r,views:n,initialTabValue:i,onTabChange:a,renderTab:l,renderContent:s,iconPosition:d="left"}=e,{activeTab:c,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]}},[n,i]=t.useState(r);return t.useEffect(()=>{var t=r(),a=n&&e.some(e=>e.title===n.title);t&&(!a||void 0!==o&&(null==n?void 0:n.title)!==o)?i(t):!t&&n&&i(void 0)},[e,o]),{activeTab:n,setActiveTab:i}})(r,i);return o.createElement(Ql,{tabs:r,views:n,activeTab:c,handleTabClick:e=>{(null==c?void 0:c.title)!==e.title&&(u(e),a&&a(e))},renderTab:l,renderContent:s,iconPosition:d})}),es={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48,"3xl":56,"4xl":64,"5xl":72,"6xl":80},ts={xs:24,sm:28,md:32,lg:40,xl:48,"2xl":56,"3xl":64,"4xl":72,"5xl":80,"6xl":88},os={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)+")",backgroundClip:"text !important",webkitBackgroundClip:"text !important",color:"transparent",webkitTextFillColor:"transparent",display:"inline-block",textShadow:"none"}),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"})},rs=["text","typingSpeed","pauseTime","onComplete","showCursor","cursorColor","textStyle","as"],ns=e=>{var{text:n,typingSpeed:i=50,pauseTime:a=500,onComplete:l,showCursor:s=!0,cursorColor:d="currentColor",textStyle:c}=e,u=(h(e,rs),Array.isArray(n)?n:[n]),[g,m]=t.useState(u.map(()=>"")),[p,v]=t.useState(!1),[b,x]=t.useState(0),[f,w]=t.useState(0);return t.useEffect(()=>{m(u.map(()=>"")),v(!1),x(0),w(0)},[n]),t.useEffect(()=>{if(!p){var e=u[b];if(f>=e.length){if(b>=u.length-1)return void v(!0);var t=setTimeout(()=>{x(e=>e+1),w(0)},a);return()=>clearTimeout(t)}var o=setTimeout(()=>{m(t=>{var o=[...t];return o[b]=e.substring(0,f+1),o}),w(e=>e+1)},i);return()=>clearTimeout(o)}l&&l()},[u,b,f,p,l,a,i]),o.createElement(o.Fragment,null,g.map((e,t)=>o.createElement(o.Fragment,{key:t},e,s&&t===b&&!p&&o.createElement(r.Text,{as:"span",display:"inline-block",width:"0.1em",height:"1em",backgroundColor:d,style:Object.assign({animation:"blink 1s step-end infinite",verticalAlign:"text-bottom",marginLeft:"1px"},c)}))))},is=["children","highlightText","highlightStyle","highlightColor","highlightSecondaryColor","size","centered","views","highlightAnimate","animate","highlightTypewriter","highlightTypewriterDuration"],as=e=>{var{children:n,highlightText:i,highlightStyle:a="background",highlightColor:l="theme.primary",highlightSecondaryColor:s,size:d="xl",centered:c=!1,views:u,highlightAnimate:g,animate:m,highlightTypewriter:p=!1,highlightTypewriterDuration:v=3e3}=e,b=h(e,is),{ref:x,inView:f}=r.useInView(),{getColor:w,themeMode:E}=r.useTheme(),y=b.themeMode||E,C=e=>e.startsWith("#")?e:w(e,{themeMode:y}),k=C(l),j=s?C(s):void 0,{finalDisplayedText:I,activeHighlightTarget:S,highlightTypewriter:O}=(e=>{var{children:o,_isInView:r=!1,alternateHighlightText:n=[],alternateAnimation:i=!1,alternateDuration:a=3e3,highlightText:l,highlightTypewriter:s=!1,highlightTypewriterDuration:d=1500}=e,[c,u]=t.useState(o),[g,h]=t.useState(l);return t.useEffect(()=>{if(!i||0===n.length||!r||"string"!=typeof o||"string"!=typeof l)return u(o),h(l),()=>{};var e=o,t=l,s=0,d=o=>{var r=n[o],i=new RegExp(t,"gi"),a=e.replace(i,r);u(a),h(r)};d(s);var c=setInterval(()=>{d(s=(s+1)%n.length)},a);return()=>clearInterval(c)},[i,n,a,l,o,r]),{finalDisplayedText:c,activeHighlightTarget:g,highlightTypewriter:s}})(Object.assign({children:n,highlightText:i,_isInView:f,highlightTypewriter:p,highlightTypewriterDuration:v},b)),z=es[d],H=ts[d],M="string"==typeof I?I:"string"==typeof n?n:"";if("string"==typeof M&&S){for(var T,R=new RegExp("("+(Array.isArray(S)?S.join("|"):S).replace(/[.*+?^${}()|[\\]\\/g,"\\$&")+")","gi"),D=[],W=0;T=R.exec(M);)T.index>W&&D.push(M.substring(W,T.index)),D.push({highlight:!0,text:T[0]}),W=T.index+T[0].length;return W<M.length&&D.push(M.substring(W)),o.createElement(r.Element,Object.assign({ref:x,as:"h1",fontSize:z,lineHeight:H+"px",fontWeight:"bold",textAlign:c?"center":"left",animate:f?m:void 0},null==u?void 0:u.container,b),D.map((e,t)=>"string"==typeof e?e:o.createElement(r.Text,Object.assign({key:e.text+"-"+t,as:"span",display:"inline",animate:f?g:void 0},os[a](k,j),null==u?void 0:u.highlight),O?o.createElement(ns,{text:e.text,typingSpeed:Math.max(30,v/(10*e.text.length)),showCursor:!0,cursorColor:"currentColor"}):e.text)))}return o.createElement(r.Element,Object.assign({ref:x,as:"h1",fontSize:z,lineHeight:H+"px",fontWeight:"bold",textAlign:c?"center":"left",animate:f?m:void 0},null==u?void 0:u.container,b),a&&!S?o.createElement(r.Text,Object.assign({as:"span",display:"inline",animate:f?g:void 0},os[a](k,j),null==u?void 0:u.highlight),O?o.createElement(ns,{text:M,typingSpeed:Math.max(30,v/(10*M.length)),showCursor:!0,cursorColor:"currentColor"}):M):M)},ls=["children","shape","variant","isHovered","setIsHovered","isDisabled","isToggle","setIsToggled","onToggle","views"],ss=e=>{var{children:t,shape:n="rounded",variant:i="ghost",isHovered:a,setIsHovered:l,isDisabled:s,isToggle:d,setIsToggled:c,onToggle:u,views:g}=e,m=h(e,ls),p=s?"theme.disabled":"color.trueGray.400",v=!(!d&&!a);return o.createElement(r.Center,Object.assign({role:"Toggle",padding:"pillShaped"===n?"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"===n?"50px":"8px",onClick:()=>{s||c(e=>{var t=!e;return u&&u(t),t})}},{outline:{borderWidth:1,borderStyle:"solid",borderColor:"color.trueGray.400"},link:{borderWidth:1,borderStyle:"solid",borderColor:v?p:"transparent",textDecoration:"underline"},ghost:{}}[i],m,null==g?void 0:g.container),t)},ds=["children","shape","variant","isDisabled","isToggled","onToggle"],cs=e=>{var{children:r,shape:n,variant:i,isDisabled:a,isToggled:l=!1,onToggle:s}=e,d=h(e,ds),{isHovered:c,setIsHovered:u,isToggle:g,setIsToggled:m}=(e=>{var[o,r]=t.useState(!1),[n,i]=t.useState(e);return{isHovered:o,setIsHovered:r,isToggle:n,setIsToggled:i}})(l);return t.useEffect(()=>{m(l)},[l]),o.createElement(ss,Object.assign({shape:n,variant:i,isDisabled:a,isHovered:c,setIsHovered:u,isToggle:g,setIsToggled:m,onToggle:s},d),r)},us=e=>{var{items:n,onToggleChange:i,activeToggles:a,setActiveToggles:l,shape:s="rounded",variant:d="ghost",views:c}=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==i||i(r),r})},[i,l]);return o.createElement(r.Horizontal,Object.assign({role:"ToggleGroup",display:"flex",gap:5},null==c?void 0:c.container),n.map(e=>o.createElement(cs,{role:"toggle-"+e.id,key:e.id,shape:s,variant:d,isToggled:a.includes(e.id)||e.isActive,onToggle:t=>u(e.id,t),isDisabled:e.isDisabled,views:null==c?void 0:c.toggle},e.value)))},gs=e=>{var{items:t,renderItem:n,containerProps:i,itemProps:a,draggedIndex:l,itemRefs:s,handleDragStart:d,views:c}=e;return o.createElement(r.View,Object.assign({overflow:"hidden",position:"relative"},i,null==c?void 0:c.container),t.map((e,t)=>o.createElement(r.View,Object.assign({key:t,ref:e=>s.current[t]=e,onMouseDown:e=>d(e,t),onTouchStart:e=>d(e,t),position:"relative",cursor:"grab",transition:"transform 0.2s",backgroundColor:l===t?"color.gray.100":"transparent"},a,null==c?void 0:c.item),n?n(e,t):e)))},hs=e=>{var{items:r,draggedIndex:n,itemRefs:i,handleDragStart:a}=(e=>{var{items:o,onChange:r}=e,[n,i]=t.useState(o),[a,l]=t.useState(null),[s,d]=t.useState(null),c=t.useRef({x:0,y:0}),u=t.useRef([]),g=t.useCallback((e,t)=>{e.preventDefault(),document.body.style.cursor="grabbing",c.current={x:"touches"in e?e.touches[0].clientX:e.clientX,y:"touches"in e?e.touches[0].clientY:e.clientY},d(t),l(n[t])},[n]),h=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-c.current.x)+"px, "+(o-c.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 g=[...n],[h]=g.splice(s,1);g.splice(l,0,h),i(g),d(l),null==r||r(g),c.current={x:t,y:o}}}}},[s,n,r]),m=t.useCallback(()=>{document.body.style.cursor="",u.current.forEach(e=>{e&&(e.style.transform="",e.style.zIndex="")}),d(null),l(null)},[s]);return t.useEffect(()=>(null!==s&&(window.addEventListener("mousemove",h),window.addEventListener("touchmove",h),window.addEventListener("mouseup",m),window.addEventListener("touchend",m)),()=>{window.removeEventListener("mousemove",h),window.removeEventListener("touchmove",h),window.removeEventListener("mouseup",m),window.removeEventListener("touchend",m)}),[s,h,m]),{items:n,draggedItem:a,draggedIndex:s,itemRefs:u,handleDragStart:g}})(e);return o.createElement(gs,Object.assign({},e,{items:r,draggedIndex:n,itemRefs:i,handleDragStart:a}))},ms=hs,ps={sm:{padding:"6px 8px",fontSize:"14px",minWidth:"160px"},md:{padding:"8px 12px",fontSize:"16px",minWidth:"180px"},lg:{padding:"10px 16px",fontSize:"18px",minWidth:"200px"}},vs={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"}},bs={hover:{backgroundColor:"color.gray.100"},active:{backgroundColor:"color.gray.200"},disabled:{opacity:.5,cursor:"not-allowed"}},xs=["children","views"],fs=["items","side","align","views"],ws=["item","views"],Es=["views"],ys=["trigger","items","side","align","views","themeMode"],Cs=t.createContext({isOpen:!1,setIsOpen:()=>{},activeSubmenuId:null,setActiveSubmenuId:()=>{},size:"md",variant:"default"}),ks=e=>{var{children:t,value:r}=e;return o.createElement(Cs.Provider,{value:r},t)},js=()=>{var e=t.useContext(Cs);if(!e)throw new Error("useDropdownMenuContext must be used within a DropdownMenuProvider");return e},Is=e=>{var{children:t,views:n}=e,i=h(e,xs),{isOpen:a,setIsOpen:l}=js();return o.createElement(r.View,Object.assign({id:"dropdown-trigger",onClick:e=>{e.stopPropagation(),l(!a)},cursor:"pointer",position:"relative",display:"inline-block"},null==n?void 0:n.container,i),t)},Ss=e=>{var{items:t,side:n="bottom",align:i="start",views:a}=e,l=h(e,fs),{isOpen:s,variant:d}=js();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]}(n,i),vs[d],null==a?void 0:a.menu,l),t.map((e,t)=>e.divider?o.createElement(zs,{key:"divider-"+t,views:a}):o.createElement(Os,{key:e.id,item:e,views:a}))):null},Os=e=>{var{item:n,views:i}=e,a=h(e,ws),{activeSubmenuId:l,setActiveSubmenuId:s,size:d}=js(),[c,u]=t.useState(!1),g=n.items&&n.items.length>0,m=l===n.id,p=t.useRef(null);return o.createElement(r.View,Object.assign({ref:p,display:"flex",alignItems:"center",cursor:n.disabled?"not-allowed":"pointer",opacity:n.disabled?.5:1,position:"relative"},ps[d],{_hover:n.disabled?{}:bs.hover,backgroundColor:c&&!n.disabled?"color.gray.100":"transparent",onMouseEnter:()=>{u(!0),g&&s(n.id)},onMouseLeave:()=>{u(!1)},onClick:e=>{e.stopPropagation(),n.disabled||!g&&n.onClick&&n.onClick()}},null==i?void 0:i.item,a),n.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==i?void 0:i.icon),n.icon),o.createElement(r.View,{flexGrow:1},n.label),g&&o.createElement(r.View,Object.assign({marginLeft:8},null==i?void 0:i.submenuIndicator),o.createElement(To,{widthHeight:16,color:"currentColor",filled:!0})),m&&g&&o.createElement(Ss,{items:n.items||[],side:"right",align:"start",views:i}))},zs=e=>{var{views:t}=e,n=h(e,Es);return o.createElement(r.View,Object.assign({height:"1px",backgroundColor:"color.gray.200",margin:"4px 0"},null==t?void 0:t.divider,n))},Hs=e=>{var{trigger:t,items:n,side:i="bottom",align:a="start",views:l}=e,s=h(e,ys);return o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},null==l?void 0:l.container,s),o.createElement(Is,{views:l},t),o.createElement(Ss,{items:n,side:i,align:a,views:l}))},Ms=["trigger","items","size","variant","side","align","defaultOpen","views"],Ts=e=>{var{trigger:r,items:n,size:i="md",variant:a="default",side:l="bottom",align:s="start",defaultOpen:d=!1,views:c}=e,u=h(e,Ms),{isOpen:g,setIsOpen:m,activeSubmenuId:p,setActiveSubmenuId:v}=function(e){void 0===e&&(e=!1);var[o,r]=t.useState(e),[n,i]=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),i(null))},t=()=>{o&&(r(!1),i(null))},n=e=>{"Escape"===e.key&&o&&(r(!1),i(null))};return document.addEventListener("mousedown",e),window.addEventListener("resize",t),document.addEventListener("keydown",n),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",t),document.removeEventListener("keydown",n)}},[o]),{isOpen:o,setIsOpen:r,activeSubmenuId:n,setActiveSubmenuId:i}}(d);return o.createElement(ks,{value:{isOpen:g,setIsOpen:m,activeSubmenuId:p,setActiveSubmenuId:v,size:i,variant:a}},o.createElement(Hs,Object.assign({trigger:r,items:n,side:l,align:s,views:c},u)))};Ts.Trigger=Is,Ts.Content=Ss,Ts.Item=Os,Ts.Divider=zs;var Rs=e=>e+"-"+Math.random().toString(36).substring(2,9),Ds=["children","views","asChild"],Ws=["children","views","side","align","sideOffset","style","backgroundColor","borderRadius","boxShadow","padding","minWidth","maxWidth"],Vs=t.createContext({isOpen:!1,openCard:()=>{},closeCard:()=>{},cancelCloseTimer:()=>{},triggerRef:{current:null},contentRef:{current:null},contentId:"",triggerId:""}),Ls=e=>{var{children:t,value:r}=e;return o.createElement(Vs.Provider,{value:r},t)},Bs=()=>{var e=t.useContext(Vs);if(!e)throw new Error("useHoverCardContext must be used within a HoverCardProvider");return e},Ps=["children","views","openDelay","closeDelay"],_s=e=>{var{children:n,views:i,openDelay:a,closeDelay:l}=e,s=h(e,Ps),d=function(e){var{openDelay:o=200,closeDelay:r=300}=void 0===e?{}:e,[n,i]=t.useState(!1),a=t.useRef(null),l=t.useRef(null),s=t.useRef(null),d=t.useRef(null),c=t.useMemo(()=>Rs("hovercard-content"),[]),u=t.useMemo(()=>Rs("hovercard-trigger"),[]),g=t.useCallback(()=>{a.current&&(clearTimeout(a.current),a.current=null),l.current&&(clearTimeout(l.current),l.current=null)},[]),h=t.useCallback(()=>{g(),n||(a.current=setTimeout(()=>{i(!0)},o))},[n,o,g]),m=t.useCallback(()=>{g(),n&&(l.current=setTimeout(()=>{i(!1)},r))},[n,r,g]),p=t.useCallback(()=>{l.current&&(clearTimeout(l.current),l.current=null)},[]);return t.useEffect(()=>()=>g(),[g]),{isOpen:n,openCard:h,closeCard:m,cancelCloseTimer:p,triggerRef:s,contentRef:d,contentId:c,triggerId:u}}({openDelay:a,closeDelay:l});return o.createElement(Ls,{value:d},o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},null==i?void 0:i.container,s),n))};_s.Trigger=e=>{var{children:n,views:i,asChild:a=!1}=e,l=h(e,Ds),{openCard:s,closeCard:d,triggerRef:c,contentId:u,triggerId:g}=Bs(),m=Object.assign({ref:c,onMouseEnter:()=>s(),onMouseLeave:()=>d(),onFocus:()=>s(),onBlur:()=>d(),id:g,"aria-describedby":u},null==i?void 0:i.container,l);if(a&&t.isValidElement(n)){var p=t.Children.only(n);return t.cloneElement(p,Object.assign({},m,p.props))}return o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},m),n)},_s.Content=e=>{var{children:n,views:i,side:a="bottom",align:l="center",sideOffset:s=8,style:d,backgroundColor:c="white",borderRadius:u="4px",boxShadow:g="0px 2px 8px rgba(0, 0, 0, 0.15)",padding:m="12px",minWidth:p="200px",maxWidth:v="300px"}=e,b=h(e,Ws),{isOpen:x,cancelCloseTimer:f,closeCard:w,contentRef:E,triggerRef:y,contentId:C,triggerId:k}=Bs(),j=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 n={position:"absolute",zIndex:1e3};switch(t){case"top":n.bottom="100%",n.marginBottom=r,"start"===o?n.left=0:"center"===o?(n.left="50%",n.transform="translateX(-50%)"):"end"===o&&(n.right=0);break;case"right":n.left="100%",n.marginLeft=r,"start"===o?n.top=0:"center"===o?(n.top="50%",n.transform="translateY(-50%)"):"end"===o&&(n.bottom=0);break;case"bottom":n.top="100%",n.marginTop=r,"start"===o?n.left=0:"center"===o?(n.left="50%",n.transform="translateX(-50%)"):"end"===o&&(n.right=0);break;case"left":n.right="100%",n.marginRight=r,"start"===o?n.top=0:"center"===o?(n.top="50%",n.transform="translateY(-50%)"):"end"===o&&(n.bottom=0)}return n}((e=>{var[o,r]=t.useState(null),n=t.useCallback(()=>{e.current&&r(e.current.getBoundingClientRect())},[e]);return t.useLayoutEffect(()=>{if(e.current)return n(),window.addEventListener("resize",n),window.addEventListener("scroll",n),()=>{window.removeEventListener("resize",n),window.removeEventListener("scroll",n)}},[e,n]),o})(y),a,l,s);return x?o.createElement(r.View,Object.assign({ref:E,id:C,role:"tooltip","aria-labelledby":k,onMouseEnter:()=>f(),onMouseLeave:()=>w(),backgroundColor:c,borderRadius:u,boxShadow:g,padding:m,minWidth:p,maxWidth:v,zIndex:1e3,style:Object.assign({},j,d)},null==i?void 0:i.container,b),n):null};var As={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 16px",fontSize:"18px"}},Fs={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"}},Ns={horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},Us={active:{backgroundColor:"color.gray.200",fontWeight:"bold"},hover:{backgroundColor:"color.gray.100"},disabled:{opacity:.5,cursor:"not-allowed"}},Gs=["children","orientation","size","variant","views"],Ys=t.createContext({activeMenuId:null,setActiveMenuId:()=>{},openMenuId:null,setOpenMenuId:()=>{},isMenuOpen:()=>!1,toggleMenu:()=>{},orientation:"horizontal",size:"md",variant:"default"}),Ks=()=>t.useContext(Ys),Xs=e=>{var{value:t,children:r}=e;return o.createElement(Ys.Provider,{value:t},r)},Zs=e=>{var{children:t,orientation:n="horizontal",size:i="md",variant:a="default",views:l}=e,s=h(e,Gs);return o.createElement("horizontal"===n?r.Horizontal:r.Vertical,Object.assign({role:"menubar","aria-orientation":n},Ns[n],Fs[a],null==l?void 0:l.container,s),t)},qs=e=>{var{children:t,id:n,disabled:i=!1,views:a}=e,{orientation:l}=Ks();return o.createElement("horizontal"===l?r.Horizontal:r.Vertical,Object.assign({role:"none",position:"relative",opacity:i?.5:1,pointerEvents:i?"none":"auto"},null==a?void 0:a.menu),o.Children.map(t,e=>o.isValidElement(e)?o.cloneElement(e,Object.assign({},e.props,{menuId:n})):e))},Js=e=>{var{children:t,menuId:n,disabled:i=!1,views:a}=e,{activeMenuId:l,setActiveMenuId:s,toggleMenu:d,isMenuOpen:c,size:u}=Ks(),g=l===n,h=c(n);return o.createElement(r.View,Object.assign({id:"menubar-trigger",role:"menuitem","aria-haspopup":"true","aria-expanded":h,userSelect:"none",display:"flex",alignItems:"center",justifyContent:"space-between"},As[u],g?Us.active:{},i?Us.disabled:{},{_hover:i?{}:Us.hover,onClick:()=>{i||(s(n),d(n))}},null==a?void 0:a.trigger),t)},Qs=e=>{var{children:t,menuId:n,views:i}=e,{isMenuOpen:a,orientation:l}=Ks();return a(n)?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==i?void 0:i.content),t):null},$s=e=>{var{children:t,icon:n,disabled:i=!1,onClick:a,views:l}=e,{size:s}=Ks();return o.createElement(r.View,Object.assign({role:"menuitem",cursor:i?"not-allowed":"pointer",userSelect:"none",display:"flex",alignItems:"center",opacity:i?.5:1},As[s],{_hover:i?{}:Us.hover,onClick:()=>{!i&&a&&a()}},null==l?void 0:l.item),n&&o.createElement(r.View,Object.assign({marginRight:8},null==l?void 0:l.icon),n),t)},ed=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))},td=e=>{var{items:t,orientation:n,size:i,variant:a,views:l}=e;return o.createElement(Zs,{orientation:n,size:i,variant:a,views:l},t.map(e=>o.createElement(qs,{key:e.id,id:e.id,disabled:e.disabled,views:l},o.createElement(Js,{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(Qs,{menuId:e.id,views:l},e.items.map((e,t)=>e.separator?o.createElement(ed,{key:"separator-"+t,views:l}):o.createElement($s,{key:e.id,id:e.id,icon:e.icon,disabled:e.disabled,onClick:e.onClick,views:l},e.label))))))},od=["items","orientation","size","variant","defaultActiveMenuId","defaultOpenMenuId","views"],rd=e=>{var{items:r,orientation:n="horizontal",size:i="md",variant:a="default",defaultActiveMenuId:l=null,defaultOpenMenuId:s=null,views:d}=e,c=h(e,od),{activeMenuId:u,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,n]=t.useState(e),[i,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!==i&&a(null)},t=e=>{"Escape"===e.key&&null!==i&&a(null)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[i]),{activeMenuId:r,setActiveMenuId:n,openMenuId:i,setOpenMenuId:a,isMenuOpen:e=>i===e,toggleMenu:e=>{a(t=>t===e?null:e)}}}(l,s);return o.createElement(Xs,{value:{activeMenuId:u,setActiveMenuId:g,openMenuId:m,setOpenMenuId:p,isMenuOpen:v,toggleMenu:b,orientation:n,size:i,variant:a}},o.createElement(td,Object.assign({items:r,orientation:n,size:i,variant:a,views:d},c)))};rd.Root=Zs,rd.Menu=qs,rd.Trigger=Js,rd.Content=Qs,rd.Item=$s,rd.Separator=ed;var nd={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"}},id={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"}}},ad={rounded:{borderRadius:"4px"},square:{borderRadius:"0px"},circular:{borderRadius:"50%"}},ld={backgroundColor:"color.blue.500",color:"color.white",_hover:{backgroundColor:"color.blue.600"}},sd={opacity:.5,cursor:"not-allowed",_hover:{backgroundColor:"transparent"}},dd=["currentPage","totalPages","onPageChange","pageSize","pageSizeOptions","onPageSizeChange","showPageSizeSelector","showPageInfo","maxPageButtons","showFirstLastButtons","size","variant","shape","visiblePageNumbers","views"],cd=e=>{var{currentPage:t,totalPages:n,onPageChange:i,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:c=!0,maxPageButtons:u=5,showFirstLastButtons:g=!1,size:m="md",variant:p="default",shape:v="rounded",visiblePageNumbers:b,views:x}=e,f=h(e,dd),w=e=>{e<1||e>n||e===t||i(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"},nd[m],id[p],ad[v],1===t?sd:{},{onClick:()=>w(1),"aria-label":"First page",disabled:1===t},null==x?void 0:x.navigationButton),o.createElement(yt,{orientation:"left",widthHeight:16}),o.createElement(yt,{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"},nd[m],id[p],ad[v],1===t?sd:{},{onClick:()=>w(t-1),"aria-label":"Previous page",disabled:1===t},null==x?void 0:x.navigationButton),o.createElement(yt,{orientation:"left",widthHeight:16})),b.map((e,n)=>((e,n)=>{if("..."===e)return o.createElement(r.View,Object.assign({key:"ellipsis-"+n,display:"flex",alignItems:"center",justifyContent:"center"},nd[m],null==x?void 0:x.ellipsis),"...");var i=e===t;return o.createElement(r.View,Object.assign({key:"page-"+e,as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:i?"default":"pointer"},nd[m],id[p],ad[v],i?ld:{},{onClick:()=>w(e),"aria-label":"Page "+e,"aria-current":i?"page":void 0},i?null==x?void 0:x.activePageButton:null==x?void 0:x.pageButton),e)})(e,n)),o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:t===n?"not-allowed":"pointer"},nd[m],id[p],ad[v],t===n?sd:{},{onClick:()=>w(t+1),"aria-label":"Next page",disabled:t===n},null==x?void 0:x.navigationButton),o.createElement(yt,{orientation:"right",widthHeight:16})),g&&o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:t===n?"not-allowed":"pointer"},nd[m],id[p],ad[v],t===n?sd:{},{onClick:()=>w(n),"aria-label":"Last page",disabled:t===n},null==x?void 0:x.navigationButton),o.createElement(yt,{orientation:"right",widthHeight:16}),o.createElement(yt,{orientation:"right",widthHeight:16,marginLeft:"-8px"})),c&&o.createElement(V,Object.assign({marginLeft:16,color:"color.gray.600"},null==x?void 0:x.pageInfo),"Page ",t," of ",n),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))))},ud=["currentPage","totalPages","onPageChange","pageSize","pageSizeOptions","onPageSizeChange","showPageSizeSelector","showPageInfo","maxPageButtons","showFirstLastButtons","size","variant","shape","views"],gd=(e=>({solid:"solid",dashed:"dashed",dotted:"dotted"}))(),hd={thin:"1px",medium:"2px",thick:"4px"},md={transition:"all 0.2s ease"},pd={fontSize:"14px",color:"color.gray.500",paddingHorizontal:"8px",transition:"all 0.2s ease"},vd=["orientation","variant","thickness","color","spacing","label","decorative","views","themeMode"],bd=e=>{var{orientation:t="horizontal",variant:n="solid",thickness:i="thin",color:a,spacing:l="0px",label:s,decorative:d=!1,views:c}=e,u=h(e,vd),g=(r.useTheme(),a||"color.gray.200"),m=gd[n],p=hd[i],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,u),o.createElement(r.View,Object.assign({height:"0px",flexGrow:1,borderTopWidth:p,borderTopStyle:m,borderTopColor:g},md,null==c?void 0:c.container)),o.createElement(V,Object.assign({},pd,null==c?void 0:c.label),s),o.createElement(r.View,Object.assign({height:"0px",flexGrow:1,borderTopWidth:p,borderTopStyle:m,borderTopColor:g},md,null==c?void 0:c.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},md,v,null==c?void 0:c.container,u))},xd=e=>o.createElement(bd,Object.assign({},e)),fd=xd,wd=xd,Ed={sm:{expandedWidth:"240px",collapsedWidth:"64px"},md:{expandedWidth:"280px",collapsedWidth:"72px"},lg:{expandedWidth:"320px",collapsedWidth:"80px"},xl:{expandedWidth:"360px",collapsedWidth:"88px"}},yd=(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"}}))(),Cd={left:{left:0,borderRightWidth:"1px",borderRightStyle:"solid",borderRightColor:"color.gray.200"},right:{right:0,borderLeftWidth:"1px",borderLeftStyle:"solid",borderLeftColor:"color.gray.200"}},kd={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)"}},jd={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)"},Id=["children","showToggleButton","views"],Sd=["children","views"],Od=["children","views"],zd=["children","position","size","variant","fixed","hasBackdrop","expandedWidth","collapsedWidth","breakpointBehavior","elevation","transitionPreset","ariaLabel","isExpanded","isMobile","collapse","views","themeMode"],Hd=t.createContext({isExpanded:!0,toggleExpanded:()=>{},expand:()=>{},collapse:()=>{},position:"left",size:"md",variant:"default"}),Md=()=>t.useContext(Hd),Td=e=>{var{value:t,children:r}=e;return o.createElement(Hd.Provider,{value:t},r)},Rd=e=>{var{children:t,position:n="left",size:i="md",variant:a="default",fixed:l=!1,hasBackdrop:s=!0,expandedWidth:d,collapsedWidth:c,breakpointBehavior:u="overlay",elevation:g="none",transitionPreset:m="normal",ariaLabel:p="Sidebar navigation",isExpanded:v,isMobile:b,collapse:x,views:f}=e,w=h(e,zd),E=Ed[i],y=v?d||E.expandedWidth:c||E.collapsedWidth,C=!b||b&&"hide"!==u,k=l||b&&"overlay"===u?"fixed":"relative";return o.createElement(o.Fragment,null,s&&b&&v&&"overlay"===u&&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:k,top:0,height:"100vh",width:y,zIndex:999,transition:jd[m],transform:b&&"overlay"===u&&!v?"translateX("+("left"===n?"-100%":"100%")+")":"translateX(0)",role:"navigation","aria-label":p},yd[a],Cd[n],kd[g],null==f?void 0:f.container,w),o.Children.map(t,e=>e)))},Dd=["children","position","size","variant","defaultExpanded","expanded","onExpandedChange","fixed","hasBackdrop","showToggleButton","expandedWidth","collapsedWidth","breakpoint","breakpointBehavior","views"],Wd=e=>{var{children:r,position:n="left",size:i="md",variant:a="default",defaultExpanded:l=!0,expanded:s,onExpandedChange:d,fixed:c=!1,hasBackdrop:u=!0,showToggleButton:g=!0,expandedWidth:m,collapsedWidth:p,breakpoint:v=768,breakpointBehavior:b="overlay",views:x}=e,f=h(e,Dd),{isExpanded:w,toggleExpanded:E,expand:y,collapse:C,isMobile:k}=function(e,o,r,n){void 0===e&&(e=!0);var[i,a]=t.useState(void 0!==o?o:e),[l,s]=t.useState(!!n&&window.innerWidth<n);return t.useEffect(()=>{void 0!==o&&a(o)},[o]),t.useEffect(()=>{if(n){var e=()=>{var e=window.innerWidth<n;s(e)};return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}}},[n]),{isExpanded:i,toggleExpanded:()=>{var e=!i;a(e),r&&r(e)},expand:()=>{i||(a(!0),r&&r(!0))},collapse:()=>{i&&(a(!1),r&&r(!1))},isMobile:l}}(l,s,d,v);return o.createElement(Td,{value:{isExpanded:w,toggleExpanded:E,expand:y,collapse:C,position:n,size:i,variant:a,views:x}},o.createElement(Rd,Object.assign({position:n,size:i,variant:a,fixed:c,hasBackdrop:u,showToggleButton:g,expandedWidth:m,collapsedWidth:p,breakpoint:v,breakpointBehavior:b,isExpanded:w,isMobile:k,toggleExpanded:E,expand:y,collapse:C,views:x},f),r))};Wd.Header=e=>{var{children:t,showToggleButton:n=!0,views:i}=e,a=h(e,Id),{isExpanded:l,toggleExpanded:s,position:d}=Md();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==i?void 0:i.header,a),l?o.createElement(r.Horizontal,{width:"100%",alignItems:"center",justifyContent:"space-between"},t,n&&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==i?void 0:i.toggleButton),o.createElement(yt,Object.assign({orientation:"left"===d?"left":"right",widthHeight:16},null==i?void 0:i.toggleButtonIcon)))):o.createElement(r.View,{width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},n&&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==i?void 0:i.toggleButton),o.createElement(yt,Object.assign({orientation:"left"===d?"right":"left",widthHeight:16},null==i?void 0:i.toggleButtonIcon)))))},Wd.Content=e=>{var{children:t,views:n}=e,i=h(e,Sd),{isExpanded:a}=Md();return o.createElement(r.View,Object.assign({flex:"1",width:"100%",overflowY:"auto",overflowX:"hidden",padding:a?"16px":"8px"},null==n?void 0:n.content,i),t)},Wd.Footer=e=>{var{children:t,views:n}=e,i=h(e,Od),{isExpanded:a}=Md();return o.createElement(r.View,Object.assign({width:"100%",padding:"16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200"},null==n?void 0:n.footer,i),a?t:null)},Wd.useContext=Md;var Vd={horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},Ld=(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"}}}))(),Bd={width:"2px",height:"20px",backgroundColor:"color.gray.400",margin:"0 1px"},Pd={width:"20px",height:"2px",backgroundColor:"color.gray.400",margin:"1px 0"},_d=["children","id","defaultSize","minSize","maxSize","collapsible","defaultCollapsed","onCollapseChange","views"],Ad=["id","position","disabled","withVisualIndicator","withCollapseButton","collapseTarget","views"],Fd=["children","orientation","size","variant","defaultSizes","minSize","maxSize","collapsible","containerRef","autoSaveId","views"],Nd=t.createContext({orientation:"horizontal",size:"md",variant:"default",isResizing:!1,setIsResizing:()=>{},registerPanel:()=>{},unregisterPanel:()=>{},getPanelSize:()=>0,setPanelSize:()=>{},isPanelCollapsed:()=>!1,togglePanelCollapse:()=>{},startResize:()=>{},onResize:()=>{},endResize:()=>{}}),Ud=()=>t.useContext(Nd),Gd=e=>{var{value:t,children:r}=e;return o.createElement(Nd.Provider,{value:t},r)},Yd=e=>{var{children:t,orientation:n="horizontal",size:i="md",variant:a="default",collapsible:l=!1,containerRef:s,views:d}=e,c=h(e,Fd);return o.createElement("horizontal"===n?r.Horizontal:r.Vertical,Object.assign({ref:s,width:"100%",height:"100%",position:"relative",overflow:"hidden"},Vd[n],null==d?void 0:d.container,c),t)},Kd=["children","orientation","size","variant","defaultSizes","onSizesChange","minSize","maxSize","collapsible","autoSaveId","storage","keyboardResizeBy","views"],Xd=e=>{var{children:r,orientation:n="horizontal",size:i="md",variant:a="default",defaultSizes:l,onSizesChange:s,minSize:d=50,maxSize:c,collapsible:u=!1,autoSaveId:g,storage:m,keyboardResizeBy:p=10,views:v}=e,b=h(e,Kd),{isResizing:x,setIsResizing:f,containerRef:w,registerPanel:E,unregisterPanel:y,getPanelSize:C,setPanelSize:k,isPanelCollapsed:j,togglePanelCollapse:I,startResize:S,onResize:O,endResize:z}=function(e,o,r,n,i,a,l,s,d){void 0===n&&(n=50),void 0===i&&(i=Infinity),void 0===a&&(a=!1),void 0===d&&(d=10);var[c,u]=t.useState(!1),[g,h]=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!==g.length){var e=g.map(e=>({id:e.id,size:e.size,collapsed:e.collapsed||!1}));x.current.setItem(l,JSON.stringify({sizes:e}))}},[l,g]),y=t.useCallback((e,t,o,r,l)=>{h(s=>s.some(t=>t.id===e)?s:[...s,{id:e,size:t,minSize:null!=o?o:n,maxSize:null!=r?r:i,collapsible:null!=l?l:a,collapsed:!1}])},[n,i,a]),C=t.useCallback(e=>{h(t=>t.filter(t=>t.id!==e))},[]),k=t.useCallback(e=>{var t=g.find(t=>t.id===e);return t?t.size:0},[g]),j=t.useCallback((e,t)=>{h(o=>o.map(o=>o.id===e?Object.assign({},o,{size:t}):o))},[]),I=t.useCallback(e=>{var t=g.find(t=>t.id===e);return!!t&&!!t.collapsed},[g]),S=t.useCallback(e=>{h(t=>{var o=t.findIndex(t=>t.id===e);if(-1===o)return t;var r=t[o];if(!r.collapsible)return t;var n=Object.assign({},r,{collapsed:!r.collapsed}),i=[...t];return i[o]=n,i})},[]),O=t.useCallback((e,t)=>{p.current=e,v.current=t,b.current=g.map(e=>e.size),u(!0)},[g]),z=t.useCallback(e=>{var t,o,r,a;if(c&&p.current){var l=e-v.current,s=-1,d=p.current.match(/\d+$/);if(d&&(s=parseInt(d[0],10)-1),-1===s&&g.length>=2&&(s=0),!(s<0||s>=g.length-1)){var u=g[s],m=g[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:n,Math.min(null!=(o=u.maxSize)?o:i,x)),f=Math.max(null!=(r=m.minSize)?r:n,Math.min(null!=(a=m.maxSize)?a:i,f)),h(e=>e.map((e,t)=>t===s?Object.assign({},e,{size:x}):t===s+1?Object.assign({},e,{size:f}):e))}}}},[c,g,e,n,i]),H=t.useCallback(()=>{c&&r&&r(g.map(e=>e.size)),p.current=null,u(!1),l&&E()},[c,g,r,l,E]),M=t.useCallback(t=>{if(c&&p.current){var o=-1,r=p.current.match(/\d+$/);if(r&&(o=parseInt(r[0],10)-1),-1===o&&g.length>=2&&(o=0),!(o<0||o>=g.length-1)){var n=0;"horizontal"===e?("ArrowLeft"===t.key&&(n=-d),"ArrowRight"===t.key&&(n=d),"Home"===t.key&&(n=-100),"End"===t.key&&(n=100)):("ArrowUp"===t.key&&(n=-d),"ArrowDown"===t.key&&(n=d),"Home"===t.key&&(n=-100),"End"===t.key&&(n=100)),0!==n&&(t.preventDefault(),z(v.current+n)),"Escape"===t.key&&(h(e=>e.map((e,t)=>Object.assign({},e,{size:b.current[t]}))),H())}}},[c,g,e,z,H,d]);return t.useEffect(()=>{var t=t=>{c&&z("horizontal"===e?t.clientX:t.clientY)},o=t=>{if(c&&0!==t.touches.length){var o=t.touches[0];z("horizontal"===e?o.clientX:o.clientY)}},r=()=>{c&&H()};return c&&(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=""}},[c,e,z,H,M]),t.useEffect(()=>{if(0!==g.length){if(l){var e=w();if(e)return void h(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()/g.length;h(e=>e.map(e=>Object.assign({},e,{size:t})))}}},[g.length,o,f,l,w]),t.useEffect(()=>{if(o&&0!==o.length&&0!==g.length){var e=f(),t=o.map(t=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:"number"==typeof t?t:parseFloat(t));h(e=>e.map((e,o)=>Object.assign({},e,{size:o<t.length?t[o]:e.size})))}},[o,g.length,f]),t.useEffect(()=>{g.length>0&&l&&!c&&E()},[g,l,c,E]),{isResizing:c,setIsResizing:u,containerRef:m,panels:g,registerPanel:y,unregisterPanel:C,getPanelSize:k,setPanelSize:j,isPanelCollapsed:I,togglePanelCollapse:S,startResize:O,onResize:z,endResize:H}}(n,l,s,d,c,u,g,m,p);return o.createElement(Gd,{value:{orientation:n,size:i,variant:a,isResizing:x,setIsResizing:f,registerPanel:E,unregisterPanel:y,getPanelSize:C,setPanelSize:k,isPanelCollapsed:j,togglePanelCollapse:I,startResize:S,onResize:O,endResize:z}},o.createElement(Yd,Object.assign({orientation:n,size:i,variant:a,defaultSizes:l,minSize:d,maxSize:c,collapsible:u,autoSaveId:g,keyboardResizeBy:p,containerRef:w,views:v},b),r))};Xd.Panel=e=>{var{children:n,id:i,defaultSize:a,minSize:l,maxSize:s,collapsible:d,defaultCollapsed:c,onCollapseChange:u,views:g}=e,m=h(e,_d),{orientation:p,registerPanel:v,unregisterPanel:b,getPanelSize:x,isPanelCollapsed:f,togglePanelCollapse:w}=Ud(),E="string"==typeof a&&a.endsWith("%")?0:"number"==typeof a?a:0;t.useEffect(()=>(v(i,E,l,s,d),()=>b(i)),[i,E,l,s,d,v,b]);var y=x(i),C=f(i);return t.useEffect(()=>{u&&void 0!==C&&u(C)},[C,u]),t.useEffect(()=>{d&&c&&!C&&w(i)},[i,d,c,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(i),"aria-label":"Expand panel "+i,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),n)},Xd.Handle=e=>{var{id:t,position:n="both",disabled:i=!1,withVisualIndicator:a=!0,withCollapseButton:l=!1,collapseTarget:s,views:d}=e,c=h(e,Ad),{orientation:u,size:g,variant:m,startResize:p,isPanelCollapsed:v,togglePanelCollapse:b}=Ud(),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":u,"aria-valuemin":0,"aria-valuemax":100,tabIndex:i?-1:0,cursor:"horizontal"===u?"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,u),Ld[m],{onMouseDown:e=>{i||(e.preventDefault(),p(t,"horizontal"===u?e.clientX:e.clientY))},onTouchStart:e=>{if(!i&&0!==e.touches.length){e.preventDefault();var o=e.touches[0];p(t,"horizontal"===u?o.clientX:o.clientY)}},onKeyDown:e=>{i||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),p(t,0))},opacity:i?.5:1,pointerEvents:i?"none":"auto"},null==d?void 0:d.handle,c),a&&o.createElement(r.View,Object.assign({display:"flex",alignItems:"center",justifyContent:"center",width:"horizontal"===u?"100%":"auto",height:"vertical"===u?"100%":"auto",pointerEvents:"none"},null==d?void 0:d.handleIcon),"horizontal"===u?o.createElement(r.Horizontal,{gap:1},o.createElement(r.View,Object.assign({},Bd)),o.createElement(r.View,Object.assign({},Bd))):o.createElement(r.Vertical,{gap:1},o.createElement(r.View,Object.assign({},Pd)),o.createElement(r.View,Object.assign({},Pd)))),l&&x&&o.createElement(r.View,Object.assign({position:"absolute",top:"horizontal"===u?"-20px":"50%",left:"horizontal"===u?"50%":"-20px",transform:"horizontal"===u?"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 Zd={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"}}},qd={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"}},Jd=new Map,Qd=s.create(e=>({toasts:[],add:function(t,o,r,n){void 0===n&&(n={});var i=n.id||Math.random().toString(36).substring(2,9),a=Object.assign({id:i,variant:t,title:o,description:r,createdAt:Date.now(),isVisible:!0},n);if(e(e=>({toasts:[...e.toasts,a]})),0!==n.duration){var l=setTimeout(()=>{Qd.getState().remove(i)},n.duration||5e3);Jd.set(i,l)}return i},remove:t=>{e(e=>({toasts:e.toasts.map(e=>e.id===t?Object.assign({},e,{isVisible:!1}):e)})),Jd.has(t)&&(clearTimeout(Jd.get(t)),Jd.delete(t)),setTimeout(()=>{e(e=>({toasts:e.toasts.filter(e=>e.id!==t)}))},300)},removeAll:()=>{Jd.forEach(clearTimeout),Jd.clear(),e(e=>({toasts:e.toasts.map(e=>Object.assign({},e,{isVisible:!1}))})),setTimeout(()=>{e({toasts:[]})},300)}})),$d=(e,t,o,r)=>Qd.getState().add(e,t,o,r),ec=(e,t,o)=>$d("info",e,t,o),tc=(e,t,o)=>$d("success",e,t,o),oc=(e,t,o)=>$d("warning",e,t,o),rc=(e,t,o)=>$d("error",e,t,o),nc=e=>{Qd.getState().remove(e)},ic=()=>{Qd.getState().removeAll()},ac=e=>{var{variant:t,title:n,description:i,onClose:a,isClosable:l=!0,action:s,actionText:d,showIcon:c=!0,theme:u,views:g,render:h,icon:m,id:p,isVisible:v=!0}=e,b=null!=u?u:Zd;return h?o.createElement(o.Fragment,null,h({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==g?void 0:g.container),c&&o.createElement(r.View,Object.assign({marginTop:"2px"},null==g?void 0:g.icon),(()=>{if(void 0!==m)return m;switch(t){case"info":return o.createElement(Lt,{widthHeight:20,color:b.info.icon.color});case"success":return o.createElement(Bt,{widthHeight:20,color:b.success.icon.color});case"warning":return o.createElement(Lt,{widthHeight:20,color:b.warning.icon.color,orientation:"down"});case"error":return o.createElement(Xt,{widthHeight:20,color:b.error.icon.color});default:return o.createElement(Lt,{widthHeight:20,color:b.info.icon.color})}})()),o.createElement(r.Vertical,{gap:4,flex:"1"},o.createElement(V,Object.assign({size:"md",fontWeight:"600",color:b[t].content.color,lineHeight:"1.4"},null==g?void 0:g.title),n),i&&o.createElement(V,Object.assign({size:"sm",color:b[t].content.color,fontWeight:"400",lineHeight:"1.5"},null==g?void 0:g.description),i),s&&d&&o.createElement(V,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==g?void 0:g.actionButton),d)),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==g?void 0:g.closeButton),o.createElement(Ht,{widthHeight:16,color:b[t].content.color})))},lc=e=>{var{position:t="top-right",gap:n=8,limit:i=5,containerStyle:a}=e,{toasts:l,remove:s}=Qd(),d=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(-i)}),e},[l,t,i])[t];return o.createElement(r.View,Object.assign({position:"fixed",zIndex:9999,display:"flex",flexDirection:t.includes("bottom")?"column-reverse":"column",gap:n+"px",width:"fit-content",maxWidth:"100%",pointerEvents:"none"},qd[t],{style:a}),d.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(ac,{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}))))},sc=e=>o.createElement(ac,Object.assign({},e)),dc=Object.assign(sc,{Container:e=>o.createElement(lc,Object.assign({},e)),show:$d,info:ec,success:tc,warning:oc,error:rc,remove:nc,removeAll:ic}),cc=(e,t)=>{var o,r;if(!e)return!0;var n=e.toLowerCase(),i=t.name.toLowerCase().includes(n),a=(null==(o=t.description)?void 0:o.toLowerCase().includes(n))||!1,l=(null==(r=t.keywords)?void 0:r.some(e=>e.toLowerCase().includes(n)))||!1;return i||a||l},uc={sm:{width:"400px",maxHeight:"300px"},md:{width:"500px",maxHeight:"400px"},lg:{width:"600px",maxHeight:"500px"}},gc=(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)"}}))(),hc={display:"flex",alignItems:"center",padding:"12px 16px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color.gray.200"},mc={overflow:"auto",padding:"8px 0"},pc={marginBottom:"8px"},vc={padding:"8px 16px",fontSize:"12px",fontWeight:"bold",color:"color.gray.500",textTransform:"uppercase"},bc={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"}},fc={opacity:.5,cursor:"not-allowed",_hover:{backgroundColor:"transparent"}},wc={display:"flex",alignItems:"center",justifyContent:"center",marginRight:"12px",color:"color.gray.500"},Ec={display:"flex",flexDirection:"column",flex:1},yc={fontSize:"14px",fontWeight:"medium"},Cc={fontSize:"12px",color:"color.gray.500",marginTop:"2px"},kc={display:"flex",alignItems:"center",marginLeft:"12px",fontSize:"12px",color:"color.gray.500"},jc={display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",color:"color.gray.500",textAlign:"center"},Ic={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200",fontSize:"12px",color:"color.gray.500"},Sc=["value","onValueChange","placeholder","views"],Oc=["children","views"],zc=["heading","children","views"],Hc=["item","selected","onSelect","views"],Mc=["children","views"],Tc=["open","onOpenChange","groups","commands","placeholder","size","variant","emptyState","footer","search","setSearch","selectedIndex","setSelectedIndex","filteredCommands","filteredGroups","listRef","views","filter"],Rc=t.createContext({search:"",setSearch:()=>{},selectedIndex:0,setSelectedIndex:()=>{},filteredCommands:[],onSelect:()=>{}}),Dc=e=>{var{value:t,children:r}=e;return o.createElement(Rc.Provider,{value:t},r)},Wc=e=>{var{value:n,onValueChange:i,placeholder:a="Type a command or search...",views:l}=e,s=h(e,Sc),d=t.useRef(null);return o.useEffect(()=>{d.current&&d.current.focus()},[]),o.createElement(r.View,Object.assign({},hc,null==l?void 0:l.container,s),o.createElement(Io,{widthHeight:16,color:"color.gray.400",marginRight:"8px"}),o.createElement(r.View,Object.assign({as:"input",type:"text",value:n,onChange:e=>i(e.target.value),placeholder:a,width:"100%",border:"none",outline:"none",backgroundColor:"transparent",fontSize:"14px",ref:d},null==l?void 0:l.input)))},Vc=e=>{var{heading:t,children:n,views:i}=e,a=h(e,zc);return o.createElement(r.View,Object.assign({},pc,null==i?void 0:i.container,a),o.createElement(V,Object.assign({},vc,null==i?void 0:i.heading),t),n)},Lc=e=>{var{item:t,selected:n=!1,onSelect:i,views:a}=e,l=h(e,Hc);return o.createElement(r.Horizontal,Object.assign({},bc,n?xc:{},t.disabled?fc:{},{onClick:()=>{!t.disabled&&i&&i()}},null==a?void 0:a.container,l),t.icon&&o.createElement(r.View,Object.assign({},wc,null==a?void 0:a.icon),t.icon),o.createElement(r.Vertical,Object.assign({},Ec,null==a?void 0:a.content),o.createElement(V,Object.assign({},yc,null==a?void 0:a.name),t.name),t.description&&o.createElement(V,Object.assign({},Cc,null==a?void 0:a.description),t.description)),t.shortcut&&o.createElement(V,Object.assign({},kc,null==a?void 0:a.shortcut),t.shortcut))},Bc=e=>{var{children:t="No results found.",views:n}=e,i=h(e,Mc);return o.createElement(r.View,Object.assign({},jc,null==n?void 0:n.container,i),t)},Pc=e=>{var{open:t,onOpenChange:n,groups:i=[],commands:a=[],placeholder:l,size:s="md",variant:d="default",emptyState:c,footer:u,search:g,setSearch:m,selectedIndex:p,setSelectedIndex:v,filteredCommands:b,filteredGroups:x,listRef:f,views:w}=e,E=h(e,Tc);if(!t)return null;var y=o.useCallback(e=>{e.disabled||(e.onSelect(),n(!1),m(""))},[n,m]),C=o.useCallback(e=>e.target===e.currentTarget&&n(!1),[n]),k=o.useMemo(()=>({search:g,setSearch:m,selectedIndex:p,setSelectedIndex:v,filteredCommands:b,onSelect:y}),[g,p,b,y,m,v]),j=i.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(Dc,{value:k},o.createElement(r.View,Object.assign({borderRadius:"8px",overflow:"hidden",display:"flex",flexDirection:"column"},uc[s],gc[d],null==w?void 0:w.container,{onClick:e=>e.stopPropagation()}),o.createElement(Wc,{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?c||o.createElement(Bc,{views:null==w?void 0:w.empty}):j?x.map(e=>o.createElement(Vc,{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(Lc,{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(Lc,{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}}))),u&&o.createElement(r.View,Object.assign({},Ic,null==w?void 0:w.footer),u))))},_c=["open","onOpenChange","groups","commands","placeholder","size","variant","filter","emptyState","footer","views"],Ac=e=>{var{open:r,onOpenChange:n,groups:i=[],commands:a=[],placeholder:l,size:s="md",variant:d="default",filter:c,emptyState:u,footer:g,views:m}=e,p=h(e,_c),{search:v,setSearch:b,selectedIndex:x,setSelectedIndex:f,filteredCommands:w,filteredGroups:E,listRef:y}=(e=>{var{open:o,onOpenChange:r,groups:n=[],commands:i=[],filter:a}=e,[l,s]=t.useState(""),[d,c]=t.useState(0),u=t.useRef(null),g=t.useMemo(()=>a||cc,[a]),h=t.useMemo(()=>[...n.flatMap(e=>e.commands),...i],[n,i]),m=t.useMemo(()=>l.trim()?h.filter(e=>g(l,e)):h,[h,l,g]),p=t.useMemo(()=>{if(!l)return n;var e=a||cc;return n.map(t=>Object.assign({},t,{commands:t.commands.filter(t=>e(l,t))})).filter(e=>e.commands.length)},[n,l,a]);t.useEffect(()=>{c(0)},[m.length]);var v=t.useCallback(e=>{if(o)switch(e.key){case"ArrowDown":e.preventDefault(),c(e=>e<m.length-1?e+1:e);break;case"ArrowUp":e.preventDefault(),c(e=>e>0?e-1:e);break;case"Enter":e.preventDefault(),m[d]&&(m[d].onSelect(),r(!1),s(""));break;case"Escape":e.preventDefault(),r(!1),s("")}},[o,m,d,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="'+d+'"]');e&&e.scrollIntoView({block:"nearest"})}},[d,o]),t.useEffect(()=>{o?c(0):s("")},[o]),{search:l,setSearch:s,selectedIndex:d,setSelectedIndex:c,filteredCommands:m,filteredGroups:p,listRef:u}})({open:r,onOpenChange:n,groups:i,commands:a,filter:c});return o.createElement(Pc,Object.assign({open:r,onOpenChange:n,groups:i,commands:a,placeholder:l,size:s,variant:d,emptyState:u,footer:g,search:v,setSearch:b,selectedIndex:x,setSelectedIndex:f,filteredCommands:w,filteredGroups:E,listRef:y,views:m},p))};Ac.Input=Wc,Ac.List=e=>{var{children:t,views:n}=e,i=h(e,Oc);return o.createElement(r.View,Object.assign({},mc,null==n?void 0:n.container,i),t)},Ac.Group=Vc,Ac.Item=Lc,Ac.Empty=Bc;var Fc=()=>Math.random().toString(36).substring(2,11),Nc={sm:{padding:"4px 8px",fontSize:"12px",maxWidth:"200px"},md:{padding:"6px 10px",fontSize:"14px",maxWidth:"250px"},lg:{padding:"8px 12px",fontSize:"16px",maxWidth:"300px"}},Uc=(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"}}))(),Gc=["children","views","asChild"],Yc=["children","views"],Kc=["content","children","position","align","size","variant","showArrow","views","themeMode"],Xc=t.createContext({isOpen:!1,openTooltip:()=>{},closeTooltip:()=>{},triggerRef:{current:null},contentRef:{current:null},contentId:"",triggerId:""}),Zc=()=>t.useContext(Xc),qc=e=>{var{value:t,children:r}=e;return o.createElement(Xc.Provider,{value:t},r)},Jc=e=>{var{children:t,views:n,asChild:i=!1}=e,a=h(e,Gc),{openTooltip:l,closeTooltip:s,triggerRef:d,contentId:c,triggerId:u}=Zc(),g=Object.assign({ref:d,onMouseEnter:()=>l(),onMouseLeave:()=>s(),onFocus:()=>l(),onBlur:()=>s(),id:u,"aria-describedby":c},null==n?void 0:n.container,a);return i&&o.isValidElement(t)?o.cloneElement(t,g):o.createElement(r.View,Object.assign({display:"inline-block"},g),t)},Qc=e=>{var{content:t,children:n,position:i="top",align:a="center",size:l="md",variant:s="default",showArrow:d=!0,views:c}=e,u=h(e,Kc),{isOpen:g,contentRef:m,contentId:p,triggerId:v}=Zc(),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}})(i,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}})(i):{};return o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},null==c?void 0:c.container,u),o.createElement(Jc,null,n),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)"},Nc[l],Uc[s],b,null==c?void 0:c.content),"string"==typeof t?o.createElement(r.Text,Object.assign({},null==c?void 0:c.text),t):t,d&&o.createElement(r.View,Object.assign({},x,null==c?void 0:c.arrow))))},$c=["content","children","position","align","size","variant","openDelay","closeDelay","showArrow","defaultOpen","isDisabled","views"],eu=e=>{var{content:r,children:n,position:i="top",align:a="center",size:l="md",variant:s="default",openDelay:d=200,closeDelay:c=200,showArrow:u=!0,defaultOpen:g=!1,isDisabled:m=!1,views:p}=e,v=h(e,$c),b=function(e){var{defaultOpen:o=!1,openDelay:r=200,closeDelay:n=200,isDisabled:i=!1}=void 0===e?{}:e,[a,l]=t.useState(o),s=t.useRef(null),d=t.useRef(null),c=t.useRef(null),u=t.useRef(null),g=t.useRef("tooltip-trigger-"+Fc()).current,h=t.useRef("tooltip-content-"+Fc()).current,m=t.useCallback(()=>{i||(u.current&&(clearTimeout(u.current),u.current=null),a||c.current||(c.current=setTimeout(()=>{l(!0),c.current=null},r)))},[a,r,i]),p=t.useCallback(()=>{c.current&&(clearTimeout(c.current),c.current=null),a&&!u.current&&(u.current=setTimeout(()=>{l(!1),u.current=null},n))},[a,n]),v=t.useCallback(()=>{u.current&&(clearTimeout(u.current),u.current=null)},[]);return t.useEffect(()=>()=>{c.current&&clearTimeout(c.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:d,triggerId:g,contentId:h}}({defaultOpen:g,openDelay:d,closeDelay:c,isDisabled:m});return o.createElement(qc,{value:b},o.createElement(Qc,Object.assign({content:r,position:i,align:a,size:l,variant:s,showArrow:u,views:p},v),n))};eu.Trigger=Jc,eu.Content=e=>{var{children:t,views:n}=e,i=h(e,Yc),{isOpen:a,contentRef:l,contentId:s,triggerId:d}=Zc();return a?o.createElement(r.View,Object.assign({ref:l,id:s,role:"tooltip","aria-labelledby":d},null==n?void 0:n.container,i),t):null};var tu={},ou={width:"100%",transition:"background-color 0.2s ease",listStyleType:"none"},ru={display:"flex",alignItems:"center",width:"100%",padding:"4px 8px",cursor:"pointer",transition:"background-color 0.2s ease, color 0.2s ease",borderRadius:4},nu={paddingLeft:24,overflow:"hidden",borderLeft:"1px solid color.gray.100",marginLeft:12,paddingTop:4,paddingBottom:4},iu={marginRight:8,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},au={transition:"transform 0.2s ease",display:"flex",alignItems:"center",justifyContent:"center",marginLeft:"auto",paddingLeft:8,flexShrink:0},lu={sm:{fontSize:12,padding:"4px 6px"},md:{fontSize:14,padding:"6px 8px"},lg:{fontSize:16,padding:"8px 10px"}},su={default:{},outline:{border:"1px solid",borderColor:"color.gray.300"},filled:{backgroundColor:"color.gray.100"}},du={selected:{backgroundColor:"color.blue.100",color:"color.blue.100",fontWeight:"medium"},hover:{backgroundColor:"color.gray.100"},disabled:{opacity:.6,cursor:"not-allowed",_hover:{backgroundColor:"transparent"}}},cu=["children","views","baseId"],uu=["value","disabled","icon","children","views","style","draggable"],gu=["children","onClick","onToggleExpand","hasChildren","expanded","icon","disabled","isSelected","isDragging","size","variant","views"],hu=["children","views"],mu=()=>o.createElement(Ct,null),pu=t.createContext(void 0),vu=e=>{var{value:t,children:r}=e;return o.createElement(pu.Provider,{value:t},r)},bu=()=>{var e=t.useContext(pu);if(!e)throw new Error("useTreeContext must be used within a TreeProvider");return e},xu=e=>{var{children:t,views:n,baseId:i}=e,a=h(e,cu),{allowDragAndDrop:l,handleDrop:s,handleDragEnd:d}=bu();return o.createElement(r.Vertical,Object.assign({as:"ul",width:"100%",role:"tree","aria-label":"Tree",id:i,onDragOver:l?e=>{l&&(e.preventDefault(),e.dataTransfer.dropEffect="move")}:void 0,onDrop:l?e=>{l&&s&&(console.log("Drop on container: canceling operation to preserve data"),s(e))}:void 0,onDragEnd:l?e=>{l&&d&&d(e)}:void 0},tu,null==n?void 0:n.container,a),t)},fu=e=>{var{value:t,disabled:n=!1,icon:i,children:a,views:l,style:s,draggable:d}=e,c=h(e,uu),{isItemExpanded:u,toggleItem:g,baseId:m,selectedItem:p,selectItem:v,size:b,variant:x,views:f,allowDragAndDrop:w,draggedItemId:E,dropTarget:y,handleDragStart:C,handleDragOver:k,handleDrop:j,handleDragEnd:I}=bu(),S=u(t),O=p===t,z=E===t,H=w&&!1!==d&&!n,M=(null==y?void 0:y.itemId)===t,T=M&&y?null==y?void 0:y.position:null,R=o.Children.toArray(a).some(e=>o.isValidElement(e)&&e.type===Eu),D=e=>{!n&&R&&(g(t),e.stopPropagation())},W=e=>{!n&&(v(t),R&&e.currentTarget.contains(e.target))&&e.target.closest('[data-expander="true"]')},V=Object.assign({},f,l),L=z?Object.assign({opacity:.5,backgroundColor:"color.gray.100",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)"},V.draggedItem):{},B=M?Object.assign({},"before"===T?{borderTop:"2px solid color.blue.500"}:{},"after"===T?{borderBottom:"2px solid color.blue.500"}:{},"inside"===T?{backgroundColor:"rgba(0, 0, 255, 0.1)"}:{}):{};return o.createElement(r.Vertical,Object.assign({as:"li",role:"treeitem","aria-expanded":R?S:void 0,"aria-selected":O,"aria-disabled":n,id:m+"-item-"+t,"data-tree-item-id":t,cursor:H?"grab":void 0,draggable:H,onDragStart:H?e=>{H&&C&&C(e,t)}:void 0,onDragOver:w?e=>{w&&k&&!z&&(e.preventDefault(),e.dataTransfer.dropEffect="move",k(e,t))}:void 0,onDrop:w?e=>{w&&j&&(e.preventDefault(),j(e))}:void 0,onDragEnd:H?e=>{w&&I&&I(e)}:void 0},ou,V.item,s,L,B,c),o.Children.map(a,e=>{if(o.isValidElement(e)){if(e.type===wu)return o.cloneElement(e,{onClick:W,onToggleExpand:D,hasChildren:R,expanded:S,icon:i,disabled:n,isSelected:O,isDragging:z,size:b,variant:x,views:V});if(e.type===Eu)return S?o.cloneElement(e,{views:V}):null}return e}))},wu=e=>{var{children:t,onClick:n,onToggleExpand:i,hasChildren:a,expanded:l,icon:s,disabled:d,isSelected:c,isDragging:u,size:g="md",variant:m="default",views:p}=e,v=h(e,gu),{allowDragAndDrop:b,dragHandleIcon:x}=bu(),f=Object.assign({},ru,lu[g],su[m],c&&!d?du.selected:{},d?du.disabled:{},u?{opacity:.5}:{});return o.createElement(r.Horizontal,Object.assign({onClick:n,alignItems:"center",justifyContent:"space-between",cursor:d?"not-allowed":"pointer"},f,{_hover:d?du.disabled._hover:du.hover},null==p?void 0:p.itemLabel,v),o.createElement(r.Horizontal,{alignItems:"center",flex:"1"},s&&o.createElement(r.View,Object.assign({},iu,null==p?void 0:p.icon),s),"string"==typeof t?o.createElement(V,{isTruncated:!0},t):t,a&&o.createElement(r.View,Object.assign({"data-expander":"true",onClick:i,cursor:"pointer","aria-hidden":"true"},au,{style:{transform:l?"rotate(0deg)":"rotate(-90deg)"}},null==p?void 0:p.expandIcon),o.createElement(yt,{orientation:"right",size:16}))),b&&!d&&o.createElement(r.View,Object.assign({opacity:.5,_hover:{opacity:1},cursor:"grab",marginLeft:2},null==p?void 0:p.dragHandle),x||o.createElement(mu,null)))},Eu=e=>{var{children:t,views:n}=e,i=h(e,hu);return o.createElement(r.Vertical,Object.assign({as:"ul",role:"group"},nu,null==n?void 0:n.itemContent,i),t)},yu=e=>{var{node:t}=e;return o.createElement(fu,{value:t.id,disabled:t.disabled,icon:t.icon,draggable:!1!==t.draggable,views:Object.assign({},t.style?{container:t.style}:{})},o.createElement(wu,null,t.label),t.children&&t.children.length>0&&o.createElement(Eu,null,t.children.map(e=>o.createElement(yu,{key:e.id,node:e}))))},Cu=e=>{var{items:t}=e;return o.createElement(o.Fragment,null,t.map(e=>o.createElement(yu,{key:e.id,node:e})))},ku=["children","items","size","variant","defaultExpandedItems","expandedItems","onExpandedItemsChange","defaultSelectedItem","selectedItem","onItemSelect","multiSelect","allowDragAndDrop","dragHandleIcon","onItemsReorder","onDragStart","onDragEnd","views"],ju=e=>{var{children:r,items:n,size:i="md",variant:a="default",defaultExpandedItems:l,expandedItems:s,onExpandedItemsChange:d,defaultSelectedItem:c,selectedItem:u,onItemSelect:g,multiSelect:m=!1,allowDragAndDrop:p=!1,dragHandleIcon:v,onItemsReorder:b,onDragStart:x,onDragEnd:f,views:w}=e,E=h(e,ku),y=(e=>{var{defaultExpandedItems:o=[],expandedItems:r,onExpandedItemsChange:n,defaultSelectedItem:i,selectedItem:a,onItemSelect:l,multiSelect:s=!1,items:d,allowDragAndDrop:c=!1,onItemsReorder:u,onDragStart:g,onDragEnd:h}=e,m=t.useMemo(()=>"tree-"+Math.random().toString(36).substring(2,9),[]),[p,v]=t.useState(o||[]),[b,x]=t.useState(i),[f,w]=t.useState(null),[E,y]=t.useState(d||[]),[C,k]=t.useState(null);t.useEffect(()=>{d&&y(d)},[d]);var j=void 0!==r,I=j?r:p,S=void 0!==a,O=S?a:b,z=void 0!==d,H=z?d:E,M=t.useCallback((function(e,t,o){void 0===o&&(o=null);for(var r=0;r<e.length;r++){if(e[r].id===t)return{node:e[r],parent:o,index:r};if(e[r].children){var n=M(e[r].children,t,e[r]);if(n.node)return n}}return{node:null,parent:null,index:-1}}),[]),T=t.useCallback((e,t)=>!!e.children&&e.children.some(e=>e.id===t||e.children&&T(e,t)),[]),R=t.useCallback((e,t)=>{for(var o of e){if(o.id===t)return o;if(o.children){var r=R(o.children,t);if(r)return r}}return null},[]),D=t.useCallback((e,t,o,r)=>{var n=JSON.parse(JSON.stringify(e)),i=JSON.parse(JSON.stringify(e)),{node:a,parent:l,index:s}=M(i,t),{node:d,parent:c,index:u}=M(i,o);if(!a||!d)return console.log("Source or target node not found, returning original items"),n;if("inside"===r&&T(a,o))return console.log("Preventing circular reference, returning original items"),n;var g=R(n,t);if(!g)return console.log("Original source node not found, returning original items"),n;var h=JSON.parse(JSON.stringify(g)),m=c?c.children:i,p=u+("after"===r?1:0),v=!l&&!c||l&&c&&l.id===c.id;return v&&s<u&&"after"===r||v&&s<u&&"before"===r&&p--,l?l.children.splice(s,1):i.splice(s,1),"inside"===r?(d.children||(d.children=[]),d.children.push(h)):(p=Math.max(0,Math.min(p,m.length)),m.splice(p,0,h)),i},[M,R,T]),W=t.useCallback(e=>{var t=null!=I&&I.includes(e)?null==I?void 0:I.filter(t=>t!==e):[...I,e];j||v(t),n&&n(t)},[I,j,n]),V=t.useCallback(e=>null==I?void 0:I.includes(e),[I]),L=t.useCallback(e=>{if(S||x(e),l){var t=void 0;H&&(t=R(H,e)||void 0),l(e,t)}},[S,l,H,R]),B=t.useCallback((e,t)=>{c&&(e.dataTransfer.setData("text/plain",t),e.dataTransfer.effectAllowed="move",w(t),k(null),g&&g(t,e))},[c,g]),P=t.useCallback((e,t)=>{if(c&&f&&f!==t){e.preventDefault(),e.dataTransfer.dropEffect="move";var o,r=e.currentTarget.getBoundingClientRect(),i=(e.clientY-r.top)/r.height;if(i<.25)o="before";else if(i>.75)o="after";else{o="inside";var a=R(H||[],f);a&&T(a,t)&&(o="after")}var l=R(H||[],t);if("inside"===o&&l&&(null==I||!I.includes(t))){var s=[...I,t];j||v(s),n&&n(s)}k({itemId:t,position:o})}},[c,f,H,R,T,I,j,n,v]),_=t.useCallback(e=>{if(e.preventDefault(),!c||!f)return w(null),void k(null);try{if(C&&f!==C.itemId){var t=f,{itemId:o,position:r}=C;console.log("Moving node "+t+" "+r+" "+o);var n=R(H||[],t),i=R(H||[],o);if(!n||!i)return void console.error("Source or target node not found in the tree");var a=D(H||[],t,o,r);if(0===a.length&&(H||[]).length>0)return void console.error("Operation would result in data loss, aborting");z||y(a),u&&u(a)}else console.log("Drop canceled or invalid: No changes made to tree structure")}catch(e){console.error("Error during drop operation:",e)}finally{h&&h(f),w(null),k(null)}},[c,f,C,D,H,R,z,u,h]),A=t.useCallback(e=>{var t=f;w(null),k(null),t&&h&&(console.log("Drag canceled: No changes made to tree structure"),h(t))},[f,h]),F=t.useCallback(()=>{if(f&&H)return R(H,f)||void 0},[f,H,R]);return{baseId:m,expandedItems:I,toggleItem:W,isItemExpanded:V,selectedItem:O,selectItem:L,multiSelect:s,allowDragAndDrop:c,draggedItemId:f,dropTarget:C,handleDragStart:B,handleDragOver:P,handleDrop:_,handleDragEnd:A,getDraggedItem:F,items:H}})({defaultExpandedItems:l,expandedItems:s,onExpandedItemsChange:d,defaultSelectedItem:c,selectedItem:u,onItemSelect:g,multiSelect:m,items:n,allowDragAndDrop:p,onItemsReorder:b,onDragStart:x,onDragEnd:f});return o.createElement(vu,{value:{expandedItems:y.expandedItems,toggleItem:y.toggleItem,isItemExpanded:y.isItemExpanded,baseId:y.baseId,selectedItem:y.selectedItem,selectItem:y.selectItem,size:i,variant:a,views:w,allowDragAndDrop:y.allowDragAndDrop,dragHandleIcon:v,draggedItemId:y.draggedItemId,dropTarget:y.dropTarget,handleDragStart:y.handleDragStart,handleDragOver:y.handleDragOver,handleDrop:y.handleDrop,handleDragEnd:y.handleDragEnd,getDraggedItem:y.getDraggedItem}},o.createElement(xu,Object.assign({baseId:y.baseId,views:w},E),n?o.createElement(Cu,{items:n}):r))};ju.Item=fu,ju.ItemLabel=wu,ju.ItemContent=Eu;var Iu={container:{width:"100%",height:"100%",position:"relative",overflow:"auto",backgroundColor:"color.gray.50"},node:{backgroundColor:"white",borderRadius:16,border:"2px solid",borderColor:"color.gray.300",padding:16,minWidth:200,minHeight:60,boxShadow:"0 2px 4px rgba(0, 0, 0, 0.05)",cursor:"pointer",transition:"all 0.2s ease",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},startNode:{backgroundColor:"color.blue.100",borderColor:"color.blue.300",borderRadius:32},selectedNode:{borderColor:"color.blue.400",boxShadow:"0 0 0 2px color.blue.100"},edge:{stroke:"color.blue.400",strokeWidth:2.5,fill:"none",strokeDasharray:"none",strokeLinecap:"round",strokeLinejoin:"round"},edgeArrow:{fill:"color.blue.400"},edgeLabel:{backgroundColor:"white",padding:"2px 6px",borderRadius:4,fontSize:12,border:"1px solid",borderColor:"color.gray.200"},controls:{position:"absolute",bottom:16,right:16,display:"flex",gap:8,zIndex:10},controlButton:{width:32,height:32,borderRadius:16,backgroundColor:"white",border:"1px solid",borderColor:"color.gray.200",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease",_hover:{backgroundColor:"color.gray.100"}},addNodeButton:{width:28,height:28,borderRadius:14,backgroundColor:"color.blue.100",border:"1px solid",borderColor:"color.blue.300",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)",_hover:{backgroundColor:"color.blue.200",transform:"scale(1.1)"}},nodeContent:{display:"flex",alignItems:"center",gap:12},nodeIcon:{width:32,height:32,borderRadius:4,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},nodeInfo:{display:"flex",flexDirection:"column",gap:2,flexGrow:1,overflow:"hidden"}},Su={sm:{fontSize:12,padding:12,minWidth:160},md:{fontSize:14,padding:16,minWidth:200},lg:{fontSize:16,padding:20,minWidth:240}},Ou={default:{},outline:{borderWidth:2,borderColor:"color.gray.300"},filled:{backgroundColor:"color.gray.100",borderColor:"color.gray.300"}},zu={selected:Iu.selectedNode,hover:{borderColor:"color.gray.300",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)"}},Hu=["node","onSelect","isSelected","isDragging","onDragStart","onDrag","onDragEnd","size","variant","views"],Mu=["onZoomIn","onZoomOut","onReset","views"],Tu=["onClick","views"],Ru=["nodes","edges","selectedNodeId","draggedNodeId","onNodeSelect","onAddNode","onNodeDragStart","onNodeDrag","onNodeDragEnd","size","variant","direction","showControls","allowAddingNodes","allowDraggingNodes","views","baseId","viewport","onZoomIn","onZoomOut","onReset","onViewportChange"],Du=e=>{var t,n,i,a,{node:l,onSelect:s,isSelected:d,isDragging:c,onDragStart:u,size:g="md",variant:m="default",views:p}=e,v=h(e,Hu),b=e=>{"button"in e&&0!==e.button||(e.preventDefault(),!1!==l.draggable&&u&&u(l.id,e))},x=Object.assign({},Su[g],Ou[m]),f=(()=>{switch(l.type){case"start":return Iu.startNode;default:return{}}})();return o.createElement(r.View,Object.assign({},Iu.node,x,f,d?zu.selected:{},{onClick:()=>{s&&s(l.id)},onMouseDown:b,onTouchStart:b,cursor:!1===l.draggable?"default":"grab",_hover:zu.hover},l.style,l.isDragging||c?{cursor:"grabbing",boxShadow:"0 8px 16px rgba(0, 0, 0, 0.2)",zIndex:100}:{},null==p?void 0:p.container,v),l.data&&l.data.label?o.createElement(r.Horizontal,Object.assign({},Iu.nodeContent,null==p?void 0:p.content),(null==(t=l.data)?void 0:t.icon)&&o.createElement(r.View,Object.assign({},Iu.nodeIcon,null==p?void 0:p.icon),l.data.icon),o.createElement(r.View,Object.assign({},Iu.nodeInfo),o.createElement(r.Horizontal,{gap:4,alignItems:"center",justifyContent:"center"},null!=(null==(n=l.data)?void 0:n.number)&&o.createElement(r.Text,{fontWeight:"bold"},l.data.number,". "),o.createElement(r.Text,{fontWeight:"bold",textAlign:"center"},null==(i=l.data)?void 0:i.label)),(null==(a=l.data)?void 0:a.subtitle)&&o.createElement(r.Text,{color:"color.gray.500",fontSize:"sm",textAlign:"center"},l.data.subtitle))):null)},Wu=e=>{var t,n,i,a,l,s,d,c,u,{edge:g,sourceNode:h,targetNode:m,views:p,nodeSize:v="md"}=e;if(!h||!m)return null;var b,x,f,w,E=Su[v]||Su.md,y="number"==typeof E.minWidth?E.minWidth:"number"==typeof Iu.node.minWidth?Iu.node.minWidth:200,C="number"==typeof Iu.node.minHeight?Iu.node.minHeight:60,k=h.position.x,j=h.position.y,I=m.position.x,S=m.position.y,O=y/2,z=C/2,H=y/2,M=C/2,T=I-k,R=S-j,D=(null==p||null==(t=p.path)?void 0:t.backgroundColor)||"color.blue.500",W=(null==p||null==(n=p.path)?void 0:n.height)||(null==p||null==(i=p.path)?void 0:i.width)||1,V=[],L={x:(k+I)/2,y:(j+S)/2},B=(e,t,n,i,a)=>{var l=Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2)),s=Math.atan2(i-t,n-e)*(180/Math.PI);return o.createElement(r.View,Object.assign({key:a,position:"absolute",left:e,top:t,width:l,height:W,backgroundColor:D,transformOrigin:"0 0",style:{transform:"rotate("+s+"deg)"}},null==p?void 0:p.path))};if(Math.abs(R)>Math.abs(T)){var P=j+R/2;f={x:I,y:P},w={x:I,y:S+(R>0?-M:M)},V.push(B((b={x:k,y:j+(R>0?z:-z)}).x,b.y,(x={x:k,y:P}).x,x.y,g.id+"-s1")),V.push(B(x.x,x.y,f.x,f.y,g.id+"-s2")),V.push(B(f.x,f.y,w.x,w.y,g.id+"-s3")),L={x:(x.x+f.x)/2,y:x.y}}else{var _=k+T/2;f={x:_,y:S},w={x:I+(T>0?-H:H),y:S},V.push(B((b={x:k+(T>0?O:-O),y:j}).x,b.y,(x={x:_,y:j}).x,x.y,g.id+"-s1")),V.push(B(x.x,x.y,f.x,f.y,g.id+"-s2")),V.push(B(f.x,f.y,w.x,w.y,g.id+"-s3")),L={x:x.x,y:(x.y+f.y)/2}}return o.createElement(r.View,{position:"absolute",top:0,left:0,pointerEvents:"none",width:"100%",height:"100%"},V,g.label&&o.createElement(r.View,Object.assign({position:"absolute",left:L.x,top:L.y,transform:"translate(-50%, -50%)",backgroundColor:(null==p||null==(a=p.label)?void 0:a.backgroundColor)||"white",padding:(null==p||null==(l=p.label)?void 0:l.padding)||2,borderRadius:(null==p||null==(s=p.label)?void 0:s.borderRadius)||4,borderWidth:(null==p||null==(d=p.label)?void 0:d.borderWidth)||"1px",borderStyle:(null==p||null==(c=p.label)?void 0:c.borderStyle)||"solid",borderColor:(null==p||null==(u=p.label)?void 0:u.borderColor)||"color.gray.200",zIndex:10},null==p?void 0:p.label),o.createElement(r.Text,{fontSize:"xs",textAlign:"center"},g.label)))},Vu=e=>{var{onZoomIn:t,onZoomOut:n,onReset:i,views:a}=e,l=h(e,Mu);return o.createElement(r.View,Object.assign({},Iu.controls,null==a?void 0:a.container,l),o.createElement(r.View,Object.assign({as:"button","aria-label":"Zoom In"},Iu.controlButton,{onClick:t},null==a?void 0:a.button),o.createElement(Wo,{size:16})),o.createElement(r.View,Object.assign({as:"button","aria-label":"Zoom Out"},Iu.controlButton,{onClick:n},null==a?void 0:a.button),o.createElement(Vt,{size:16})),o.createElement(r.View,Object.assign({as:"button","aria-label":"Reset View"},Iu.controlButton,{onClick:i},null==a?void 0:a.button),o.createElement(to,{size:16})))},Lu=e=>{var{onClick:t,views:n}=e,i=h(e,Tu);return o.createElement(r.View,Object.assign({as:"button","aria-label":"Add Node"},Iu.addNodeButton,{onClick:t},null==n?void 0:n.container,i),o.createElement(Wo,Object.assign({size:16,color:"color.blue.600"},null==n?void 0:n.icon)))},Bu=e=>{var{nodes:t=[],edges:n=[],selectedNodeId:i,draggedNodeId:a,onNodeSelect:l,onAddNode:s,onNodeDragStart:d,onNodeDrag:c,onNodeDragEnd:u,size:g="md",variant:m="default",showControls:p=!0,allowAddingNodes:v=!0,allowDraggingNodes:b=!0,views:x={},baseId:f,viewport:w={zoom:1,x:0,y:0},onZoomIn:E,onZoomOut:y,onReset:C,onViewportChange:k}=e,j=h(e,Ru),[I,S]=o.useState(!1),[O,z]=o.useState({x:0,y:0}),[H,M]=o.useState({x:0,y:0}),T=o.useRef(null);o.useEffect(()=>{if(b){var e=e=>{a&&c&&c(a,{x:e.clientX,y:e.clientY},e)},o=e=>{a&&c&&e.touches.length>0&&c(a,{x:e.touches[0].clientX,y:e.touches[0].clientY},e)},r=()=>{if(a&&u){var e=t.find(e=>e.id===a);e&&u(a,e.position)}};return a&&(document.addEventListener("mousemove",e),document.addEventListener("touchmove",o),document.addEventListener("mouseup",r),document.addEventListener("touchend",r)),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("touchmove",o),document.removeEventListener("mouseup",r),document.removeEventListener("touchend",r)}}},[a,c,u,t,b]);var R=()=>{I&&S(!1)},D=e=>{k&&k(e)},W=(e,t)=>{s&&s(e,t)};return o.createElement(r.View,Object.assign({id:f,role:"application","aria-label":"Flow diagram",ref:T,tabIndex:0,onMouseDown:e=>{(1===e.button||e.altKey)&&(S(!0),z({x:e.clientX,y:e.clientY}),M({x:w.x,y:w.y}),e.preventDefault())},onMouseMove:e=>{if(I){var t=Object.assign({},w,{x:H.x+(e.clientX-O.x)/w.zoom,y:H.y+(e.clientY-O.y)/w.zoom});D(t),e.preventDefault()}},onMouseUp:R,onMouseLeave:R,onWheel:e=>{if(e.ctrlKey||e.metaKey){e.preventDefault();var t=Math.max(.1,Math.min(2,w.zoom+(e.deltaY<0?.1:-.1))),o=Object.assign({},w,{zoom:t});D(o)}},onKeyDown:e=>{var t=20/w.zoom,o=w.x,r=w.y;switch(e.key){case"ArrowUp":r+=t;break;case"ArrowDown":r-=t;break;case"ArrowLeft":o+=t;break;case"ArrowRight":o-=t;break;case"0":if(C)return void C();break;case"+":if(E)return void E();break;case"-":if(y)return void y();break;default:return}var n=Object.assign({},w,{x:o,y:r});D(n),e.preventDefault()},cursor:I?"grabbing":"default"},Iu.container,x.container,j),o.createElement(r.View,{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:1,transform:"scale("+w.zoom+") translate("+w.x+"px, "+w.y+"px)",transformOrigin:"center",transition:"transform 0.2s ease",style:{pointerEvents:"none"}},n.map(e=>{var r=t.find(t=>t.id===e.source),n=t.find(t=>t.id===e.target);return r&&n?o.createElement(Wu,{key:e.id,edge:e,sourceNode:r,targetNode:n,views:x.edge,nodeSize:g}):null})),o.createElement(r.View,{position:"relative",width:"100%",height:"100%",zIndex:2,transform:"scale("+w.zoom+") translate("+w.x+"px, "+w.y+"px)",transformOrigin:"center",transition:"transform 0.2s ease"},t.map(e=>{var t,n,s,h;return o.createElement(r.View,{key:e.id,position:"absolute",top:e.position.y,left:e.position.x,transform:"translate(-50%, -50%)"},o.createElement(Du,{node:e,isSelected:i===e.id,isDragging:a===e.id,onSelect:l,onDragStart:b?d:void 0,onDrag:b?c:void 0,onDragEnd:b?u:void 0,size:g,variant:m,views:x.node}),v&&o.createElement(r.View,{width:"100%",height:"100%"},o.createElement(r.View,{position:"absolute",top:"-20%",left:"50%",transform:"translate(-50%, 0%)",zIndex:5},o.createElement(Lu,{onClick:()=>W(e.id,"top"),views:x.addButton,"aria-label":"Add node above "+((null==(t=e.data)?void 0:t.label)||e.id)})),o.createElement(r.View,{position:"absolute",bottom:"-20%",left:"50%",transform:"translate(-50%, 0%)",zIndex:5},o.createElement(Lu,{onClick:()=>W(e.id,"bottom"),views:x.addButton,"aria-label":"Add node below "+((null==(n=e.data)?void 0:n.label)||e.id)})),o.createElement(r.View,{position:"absolute",left:"0%",top:"50%",transform:"translate(-50%, -50%)",zIndex:5},o.createElement(Lu,{onClick:()=>W(e.id,"left"),views:x.addButton,"aria-label":"Add node left of "+((null==(s=e.data)?void 0:s.label)||e.id)})),o.createElement(r.View,{position:"absolute",right:"0%",top:"50%",transform:"translate(50%, -50%)",zIndex:5},o.createElement(Lu,{onClick:()=>W(e.id,"right"),views:x.addButton,"aria-label":"Add node right of "+((null==(h=e.data)?void 0:h.label)||e.id)}))))}),v&&0===t.length&&o.createElement(r.View,{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},o.createElement(Lu,{onClick:()=>{s&&s(null,"bottom")},views:x.addButton,"aria-label":"Add first node"}))),p&&o.createElement(r.View,Object.assign({position:"absolute",top:40,right:40,zIndex:1e3,display:"flex",flexDirection:"column",gap:8,backgroundColor:"white",padding:4,borderRadius:8,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",border:"1px solid",borderColor:"color.gray.200",pointerEvents:"auto"},null==x?void 0:x.fixedControlsContainer),o.createElement(Vu,{onZoomIn:E,onZoomOut:y,onReset:C,views:x.controls})),o.createElement(r.View,{position:"absolute",bottom:16,left:16,backgroundColor:"white",padding:2,borderRadius:4,fontSize:"xs",border:"1px solid",borderColor:"color.gray.200",zIndex:1e3,pointerEvents:"none"},o.createElement(r.Text,{fontSize:"xs"},"Zoom: ",Math.round(100*w.zoom),"%")))},Pu=["children","nodes","edges","size","variant","direction","showControls","allowAddingNodes","allowDraggingNodes","onNodesChange","onEdgesChange","onNodeSelect","onNodeAdd","onNodeDragStart","onNodeDrag","onNodeDragEnd","selectedNodeId","initialViewport","viewport","onViewportChange","views"],_u=e=>{var{nodes:r,edges:n,size:i="md",variant:a="default",direction:l="vertical",showControls:s=!0,allowAddingNodes:d=!0,allowDraggingNodes:c=!0,onNodesChange:u,onEdgesChange:g,onNodeSelect:m,onNodeAdd:p,onNodeDragStart:v,onNodeDrag:b,onNodeDragEnd:x,selectedNodeId:f,initialViewport:w,viewport:E,onViewportChange:y,views:C}=e,k=h(e,Pu),j=(e=>{var{initialNodes:o=[],initialEdges:r=[],nodes:n,edges:i,onNodesChange:a,onEdgesChange:l,onNodeSelect:s,selectedNodeId:d,direction:c="vertical",initialViewport:u={zoom:1,x:0,y:0},viewport:g,onViewportChange:h,allowDraggingNodes:m=!0,onNodeDragStart:p,onNodeDrag:v,onNodeDragEnd:b}=e,x=t.useMemo(()=>"flow-"+Math.random().toString(36).substring(2,9),[]),[f,w]=t.useState(o),[E,y]=t.useState(r),[C,k]=t.useState(void 0),[j,I]=t.useState(u),[S,O]=t.useState(null),z=t.useRef(null),H=t.useRef(null),M=void 0!==n,T=M?n:f,R=void 0!==i,D=R?i:E,W=void 0!==d,V=W?d:C,L=void 0!==g,B=L?g:j,P=t.useCallback(e=>{M||w(e),a&&a(e)},[M,a]),_=t.useCallback(e=>{R||y(e),l&&l(e)},[R,l]),A=t.useCallback(e=>{W||k(e),s&&s(e)},[W,s]),F=t.useCallback(e=>{var t=[...T,e];P(t)},[T,P]),N=t.useCallback((e,t,o)=>{var r,n;if(null===e||""===e){var i=Object.assign({},t,{position:{x:150,y:100}});return P([...T,i]),i}var a=null==T?void 0:T.find(t=>t.id===e);if(!a){console.warn("addNodeAfter: Could not find node with id "+e+". Adding node at default position.");var l=Object.assign({},t,{position:{x:100,y:100*T.length+100}});return P([...T,l]),l}var s={x:(null==(r=a.position)?void 0:r.x)||0,y:(null==(n=a.position)?void 0:n.y)||0},d=o||("vertical"===c?"bottom":"right");if("left"===d||"right"===d){var u;s.x=((null==(u=a.position)?void 0:u.x)||0)+("right"===d?275:-275);var g=T.filter(t=>D.some(o=>o.source===e&&o.target===t.id&&Math.abs(t.position.x-s.x)<50));if(g.length>0){var h=g.reduce((e,t)=>t.position.y>e.position.y?t:e);s.y=h.position.y+120}else{var m;s.y=(null==(m=a.position)?void 0:m.y)||0}}else if("top"===d||"bottom"===d){var p;s.y=((null==(p=a.position)?void 0:p.y)||0)+("bottom"===d?220:-220);var v=T.filter(t=>D.some(o=>o.source===e&&o.target===t.id&&Math.abs(t.position.y-s.y)<50));if(v.length>0){var b=v.reduce((e,t)=>t.position.x>e.position.x?t:e);s.x=b.position.x+350}else{var x;s.x=(null==(x=a.position)?void 0:x.x)||0}}else{var f,w;s.y=((null==(f=a.position)?void 0:f.y)||0)+220,s.x=(null==(w=a.position)?void 0:w.x)||0}var E=Object.assign({},t,{position:s}),y=[...T,E];P(y);var C={id:"edge-"+e+"-"+E.id,source:e,target:E.id},k=[...D,C];return _(k),E},[T,D,P,_,c]),U=t.useCallback(e=>{var t=T.filter(t=>t.id!==e);P(t);var o=D.filter(t=>t.source!==e&&t.target!==e);_(o),V!==e||W||k(void 0)},[T,D,P,_,V,W]),G=t.useCallback(e=>{var t=[...D,e];_(t)},[D,_]),Y=t.useCallback(e=>{L||I(e),h&&h(e)},[L,h]),K=t.useCallback(()=>{var e=Math.min(B.zoom+.1,2);Y(Object.assign({},B,{zoom:e}))},[B,Y]),X=t.useCallback(()=>{var e=Math.max(B.zoom-.1,.5);Y(Object.assign({},B,{zoom:e}))},[B,Y]),Z=t.useCallback(()=>{Y({zoom:1,x:0,y:0})},[Y]),q=t.useCallback((e,t)=>{if(m){O(e);var o=T.find(t=>t.id===e);o&&(z.current=Object.assign({},o.position),H.current={x:"touches"in t?t.touches[0].clientX:t.clientX,y:"touches"in t?t.touches[0].clientY:t.clientY},p&&p(e,t))}},[m,T,p]),J=t.useCallback(e=>{if(S&&z.current&&H.current){var t={x:z.current.x+(("touches"in e?e.touches[0].clientX:e.clientX)-H.current.x)/B.zoom,y:z.current.y+(("touches"in e?e.touches[0].clientY:e.clientY)-H.current.y)/B.zoom},o=T.map(e=>e.id===S?Object.assign({},e,{position:t,isDragging:!0}):e);P(o),v&&v(S,t,e)}},[S,T,P,v,B.zoom]),Q=t.useCallback(()=>{if(S){var e=T.map(e=>e.id===S?Object.assign({},e,{isDragging:!1}):e);P(e);var t=e.find(e=>e.id===S);t&&b&&b(S,t.position),O(null),z.current=null,H.current=null}},[S,T,P,b]);return{baseId:x,nodes:T,edges:D,selectedNodeId:V,viewport:B,updateNodes:P,updateEdges:_,updateViewport:Y,selectNode:A,addNode:F,addNodeAfter:N,deleteNode:U,connectNodes:G,zoomIn:K,zoomOut:X,resetViewport:Z,draggedNodeId:S,startNodeDrag:q,updateNodeDrag:J,endNodeDrag:Q,allowDraggingNodes:m}})({initialNodes:r,initialEdges:n,nodes:r,edges:n,onNodesChange:u,onEdgesChange:g,onNodeSelect:m,selectedNodeId:f,direction:l,initialViewport:w,viewport:E,onViewportChange:y,allowDraggingNodes:c,onNodeDragStart:v,onNodeDrag:b,onNodeDragEnd:x});return o.createElement(Bu,Object.assign({nodes:j.nodes,edges:j.edges,selectedNodeId:j.selectedNodeId,draggedNodeId:j.draggedNodeId,onNodeSelect:j.selectNode,onAddNode:(e,t)=>{var o,r={id:"node-"+Date.now()+"-"+Math.random().toString(36).substring(2,6),data:{label:"New Step",subtitle:"Select Action Type",number:((null==j||null==(o=j.nodes)?void 0:o.length)||0)+1}},n=j.addNodeAfter(e,r,t);p&&p(n)},baseId:j.baseId,viewport:j.viewport,onZoomIn:j.zoomIn,onZoomOut:j.zoomOut,onReset:j.resetViewport,onViewportChange:j.updateViewport,onNodeDragStart:j.startNodeDrag,onNodeDrag:(e,t,o)=>{j.updateNodeDrag(o)},onNodeDragEnd:j.endNodeDrag,size:i,variant:a,direction:l,showControls:s,allowAddingNodes:d,allowDraggingNodes:j.allowDraggingNodes,views:C},k))};_u.Node=Du,_u.Edge=Wu,_u.Controls=Vu,_u.AddNodeButton=Lu;var Au={width:"100%",maxWidth:"100%",borderRadius:"12px",backgroundColor:"color.gray.50",transition:"all 0.2s ease"},Fu={width:"100%",padding:"12px",borderRadius:"12px",backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200"},Nu={default:{borderRadius:"8px"},sharp:{borderRadius:"0px"},rounded:{borderRadius:"8px"},pillShaped:{borderRadius:"9999px"}},Uu={xs:{fontSize:"10px",padding:"4px 8px"},sm:{fontSize:"12px",padding:"6px 10px"},md:{fontSize:"14px",padding:"8px 12px"},lg:{fontSize:"16px",padding:"10px 14px"},xl:{fontSize:"20px",padding:"12px 16px"}},Gu={default:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300"},none:{backgroundColor:"transparent",border:"none"}},Yu=e=>{var{files:t,sandboxId:n,onRemove:i,layout:a="inline",maxHeight:l="120px",showPreviews:s=!1,views:d={}}=e;return r.useTheme(),0===t.length?null:o.createElement(r.View,Object.assign({display:"flex",flexWrap:"wrap",gap:"6px",padding:"8px 0",maxHeight:l,overflowY:"auto"},null==d?void 0:d.container),t.map((e,t)=>{return o.createElement(r.Horizontal,Object.assign({key:t,alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"6px",backgroundColor:"color.gray.100",animate:{from:{opacity:0,scale:.9},to:{opacity:1,scale:1}},animationDuration:.2},null==d?void 0:d.item),o.createElement(r.Text,Object.assign({fontSize:"12px",fontWeight:"500",color:"color.gray.700",maxWidth:"120px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},null==d?void 0:d.name),e.name),o.createElement(r.Text,Object.assign({fontSize:"10px",color:"color.gray.500",flexShrink:0},null==d?void 0:d.size),"(",(a=e.size)<1024?a+" B":a<1048576?(a/1024).toFixed(1)+" KB":(a/1048576).toFixed(1)+" MB",")",!n&&o.createElement(r.Text,{as:"span",marginLeft:"4px",color:"theme.primary"},"(pending)")),o.createElement(r.View,Object.assign({as:"button",type:"button",width:"16px",height:"16px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"transparent",color:"color.gray.500",cursor:"pointer",transition:"all 0.2s ease",onClick:()=>i(t),_hover:{backgroundColor:"color.gray.200",color:"color.gray.700"}},null==d?void 0:d.removeButton),o.createElement("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))));var a}))},Ku=t.forwardRef((e,n)=>{var{value:i,onChange:a,onSubmit:l,placeholder:s="Type your message...",disabled:d=!1,autoFocus:c=!0,views:u={}}=e,g=(r.useTheme(),t.useRef(i));return t.useEffect(()=>{n.current&&i!==g.current&&(n.current.textContent=i,g.current=i)},[i,n]),o.createElement(r.View,Object.assign({width:"100%",minHeight:"40px",maxHeight:"200px",overflowY:"auto"},null==u?void 0:u.container),o.createElement(r.View,Object.assign({as:"div",ref:n,contentEditable:!d,suppressContentEditableWarning:!0,onInput:e=>{var t=e.currentTarget.textContent||"";t!==g.current&&(a(t),g.current=t)},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),l(e))},role:"textbox","aria-multiline":"true","aria-placeholder":s,"data-placeholder":s,width:"100%",minHeight:"24px",outline:"none",whiteSpace:"pre-wrap",wordBreak:"break-word",_empty:{_before:{content:"attr(data-placeholder)",color:"color.gray.400",pointerEvents:"none"}}},null==u?void 0:u.input)))});Ku.displayName="EditableInput";var Xu=function(){var e=g((function*(e,t,o,r,n){((e,t,o)=>{var r=e.filter(e=>!(e.size>52428800&&(console.error("File size exceeds 50MB limit: "+e.name),1)));t(e=>[...e,...r]);var n=r.map(e=>({name:e.name,path:"/workspace/"+e.name,size:e.size,type:e.type||"application/octet-stream",localUrl:URL.createObjectURL(e)}));o(e=>[...e,...n])})(e,o,r)}));return function(t,o,r,n,i){return e.apply(this,arguments)}}(),Zu=t.forwardRef((e,n)=>{var{loading:i,disabled:a,isAgentRunning:l,isUploading:s,sandboxId:d,setPendingFiles:c,setUploadedFiles:u,setIsUploading:h,views:m={}}=e;r.useTheme(),t.useEffect(()=>()=>{u(e=>(e.forEach(e=>{e.localUrl&&URL.revokeObjectURL(e.localUrl)}),e))},[u]);var p=function(){var e=g((function*(e){if(e.target.files&&0!==e.target.files.length){var t=Array.from(e.target.files);Xu(t,d,c,u,h),e.target.value=""}}));return function(t){return e.apply(this,arguments)}}();return o.createElement(o.Fragment,null,o.createElement(r.Button,Object.assign({type:"button",onClick:()=>{n&&"current"in n&&n.current&&n.current.click()},variant:"ghost",height:"36px",padding:"0 12px",borderRadius:"8px",backgroundColor:"transparent",color:"color.gray.500",disabled:i||a&&!l||s,_hover:{backgroundColor:"color.gray.100"}},null==m?void 0:m.button),o.createElement(r.Horizontal,{gap:4,alignItems:"center"},s?o.createElement(zo,Object.assign({widthHeight:16,color:"currentColor",filled:!1,style:{animation:"spin 1s linear infinite"}},null==m?void 0:m.icon)):o.createElement(jo,Object.assign({widthHeight:16,color:"currentColor",filled:!1},null==m?void 0:m.icon)),o.createElement(r.Text,Object.assign({fontSize:"14px"},null==m?void 0:m.text),"Attachments"))),o.createElement("input",{type:"file",ref:n,style:{display:"none"},onChange:p,multiple:!0}))});Zu.displayName="FileUploadHandler";var qu=e=>{var{examples:t,onSelect:n,views:i={}}=e;return r.useTheme(),t&&0!==t.length?o.createElement(r.Horizontal,Object.assign({gap:8,overflowX:"auto",padding:"8px 0",width:"100%"},null==i?void 0:i.container),t.map(e=>o.createElement(r.View,Object.assign({key:e.id,as:"button",type:"button",padding:"8px 12px",borderRadius:"4px",backgroundColor:"color.gray.100",border:"none",cursor:"pointer",transition:"all 0.2s ease",onClick:()=>n(e),_hover:{backgroundColor:"color.gray.200"}},null==i?void 0:i.item),o.createElement(r.Text,Object.assign({fontSize:"14px",color:"color.gray.700"},null==i?void 0:i.text),e.text)))):null},Ju=e=>{var{onClick:t,views:n={}}=e;return o.createElement(r.View,Object.assign({as:"button",type:"button",display:"flex",alignItems:"center",gap:4,padding:"6px 10px",border:"1px solid",borderColor:"color.gray.300",borderRadius:"4px",backgroundColor:"transparent",cursor:"pointer",transition:"all 0.2s ease",onClick:t,_hover:{backgroundColor:"color.gray.100"}},null==n?void 0:n.button),o.createElement(r.Text,Object.assign({fontSize:"14px",color:"color.gray.700"},null==n?void 0:n.text),"Reference image"),o.createElement(It,Object.assign({widthHeight:20,color:"currentColor",filled:!1,strokeWidth:2},null==n?void 0:n.icon)))},Qu=e=>{var{isOpen:t,onClose:n,views:i={}}=e;return t?o.createElement(r.View,Object.assign({position:"absolute",top:"0",left:"0",width:"100%",height:t?"300px":"0",backgroundColor:"color.white",borderRadius:"8px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",overflow:"hidden",transition:"height 0.3s ease",zIndex:"10"},null==i?void 0:i.container),o.createElement(r.View,Object.assign({padding:"16px",width:"100%",height:"100%"},null==i?void 0:i.content),o.createElement(r.Text,{fontSize:"16px",fontWeight:"600",marginBottom:"16px"},"Reference Image"),o.createElement(r.View,Object.assign({as:"button",type:"button",position:"absolute",top:"8px",right:"8px",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"transparent",border:"none",cursor:"pointer",transition:"all 0.2s ease",onClick:n,_hover:{backgroundColor:"color.gray.100"}},null==i?void 0:i.closeButton),o.createElement(Ht,{widthHeight:16,color:"currentColor",filled:!1,strokeWidth:2})),o.createElement(r.View,{width:"100%",height:"calc(100% - 40px)",backgroundColor:"color.gray.100",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center"},o.createElement(r.Text,{color:"color.gray.500"},"Drop an image here or click to upload")))):null},$u=["onSubmit","placeholder","loading","disabled","isAgentRunning","onStopAgent","autoFocus","sandboxId","hideAttachments","promptExamples","showReferenceImageButton","errorMessage","size","shape","variant","views","value","handleChange","handleSubmit","editableRef","fileInputRef","isUploading","isDraggingOver","uploadedFiles","removeUploadedFile","setPendingFiles","setUploadedFiles","setIsUploading","selectedModel","handleModelChange","modelOptions","subscriptionStatus","canAccessModel","isGuideTipShown","hideGuideTip","isReferenceImageModalShown","toggleReferenceImageModal","handlePromptExampleSelect"],eg=e=>{var t,{placeholder:n="Say what you want and Kimmy will surprise you",loading:i=!1,disabled:a=!1,isAgentRunning:l=!1,autoFocus:s=!0,sandboxId:u,hideAttachments:g=!1,promptExamples:m=[],showReferenceImageButton:p=!1,errorMessage:v,size:b="md",shape:x="rounded",variant:f="default",views:w={},value:E,handleChange:y,handleSubmit:C,editableRef:k,fileInputRef:j,isUploading:I,isDraggingOver:S,uploadedFiles:O,removeUploadedFile:z,setPendingFiles:H,setUploadedFiles:M,setIsUploading:T,isReferenceImageModalShown:R,toggleReferenceImageModal:D,handlePromptExampleSelect:W}=e,V=h(e,$u),L=(r.useTheme(),Object.assign({},Au,Nu[x],null==w?void 0:w.container)),B=Object.assign({},Fu,Uu[b],Gu[f],null==w?void 0:w.content),P=(null!=(t=null==E?void 0:E.trim().length)?t:0)>0||O.length>0;return o.createElement(r.View,Object.assign({display:"flex",flexDirection:"column",boxSizing:"border-box"},L,V,{onDragOver:e=>{e.preventDefault(),e.stopPropagation(),j.current&&(null==V.handleDragOver||V.handleDragOver(e))},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),null==V.handleDragLeave||V.handleDragLeave(e)},onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),null==V.handleDragLeave||V.handleDragLeave(e),j.current&&e.dataTransfer.files.length>0){var t=Array.from(e.dataTransfer.files);H(e=>[...e,...t]);var o=t.map(e=>({name:e.name,path:"/workspace/"+e.name,size:e.size,type:e.type||"application/octet-stream",localUrl:URL.createObjectURL(e)}));M(e=>[...e,...o])}}}),m.length>0&&o.createElement(qu,{examples:m,onSelect:W,views:{container:null==w?void 0:w.promptExamples,item:null==w?void 0:w.promptExampleItem}}),o.createElement(r.Horizontal,Object.assign({justifyContent:"space-between",alignItems:"center"},null==w?void 0:w.header),p&&o.createElement(Ju,{onClick:D,views:{button:null==w?void 0:w.referenceImageButton}})),o.createElement(r.View,{position:"relative",width:"100%"},o.createElement(Qu,{isOpen:R,onClose:D,views:{container:null==w?void 0:w.referenceImageModal}}),o.createElement(r.View,Object.assign({as:"form",onSubmit:C,overflowY:"auto",display:"flex",flexDirection:"column",position:"relative"},B,L,{paddingHorizontal:20,backgroundColor:S?"color.blue.50":void 0}),o.createElement(Yu,{files:O,sandboxId:u,onRemove:z,views:{container:null==w?void 0:w.attachments,item:null==w?void 0:w.attachmentItem,name:null==w?void 0:w.attachmentName,size:null==w?void 0:w.attachmentSize,removeButton:null==w?void 0:w.attachmentRemove}}),o.createElement(Ku,{ref:k,value:E||"",onChange:y,onSubmit:C,placeholder:n,disabled:a&&!l,autoFocus:s,views:{container:{},input:null==w?void 0:w.editableInput}}),o.createElement(r.Horizontal,{justifyContent:"space-between",alignItems:"center",marginTop:"8px"},o.createElement(r.Horizontal,{gap:8,alignItems:"center"},!g&&o.createElement(Zu,{ref:j,loading:i,disabled:a,isAgentRunning:l,isUploading:I,sandboxId:u,setPendingFiles:H,setUploadedFiles:M,setIsUploading:T,views:{button:null==w?void 0:w.fileButton}})),o.createElement(r.View,Object.assign({as:"button",type:"submit",height:"40px",width:"40px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:l?"theme.error":P?"theme.primary":"color.gray.300",color:"color.white",borderRadius:"50%",border:"none",cursor:P?"pointer":"not-allowed",disabled:!P||i||a&&!l,transition:"all 0.2s ease",_hover:{backgroundColor:l?"color.red.600":P?"color.blue.600":"color.gray.300"}},null==w?void 0:w.submitButton),l?o.createElement(c.StopIcon,{widthHeight:16,color:"currentColor",filled:!1}):i?o.createElement(d.Loader,{type:"quarter",size:16,color:"color.white"}):o.createElement(c.SendIcon,{widthHeight:16,color:"currentColor",filled:!1}))))),v&&o.createElement(r.Text,Object.assign({fontSize:"12px",color:"theme.error",marginTop:"4px"},null==w?void 0:w.bottomTip),v),l&&o.createElement(r.Horizontal,Object.assign({justifyContent:"center",alignItems:"center",gap:8,padding:"8px 0",animate:{from:{opacity:0,y:-10},to:{opacity:1,y:0},duration:"0.3s"}},null==w?void 0:w.loadingIndicator),o.createElement(c.LoadingSpinnerIcon,{widthHeight:12,color:"currentColor",filled:!1,style:{animation:"spin 1s linear infinite"}}),o.createElement(r.Text,{fontSize:"12px",color:"color.gray.500"},"Agent is working...")))},tg=t.forwardRef((e,r)=>{var n=(e=>{var{value:o,onChange:r,onSubmit:n,autoFocus:i=!0,loading:a=!1,disabled:l=!1,isAgentRunning:s=!1,onStopAgent:d,sandboxId:c}=e,u=void 0!==o&&void 0!==r,[g,h]=t.useState(""),m=u?o:g,[p,v]=t.useState([]),[b,x]=t.useState([]),[f,w]=t.useState(!1),[E,y]=t.useState(!1),[C,k]=t.useState("gpt-4"),[j]=t.useState([{id:"gpt-3.5-turbo",name:"GPT-3.5"},{id:"gpt-4",name:"GPT-4"},{id:"gpt-4-thinking",name:"GPT-4 (Thinking)",isThinking:!0},{id:"claude-3-5-sonnet",name:"Claude 3.5 Sonnet"}]),I=t.useRef(null),S=t.useRef(null),[O,z]=t.useState(e.showGuideTip||!1),[H,M]=t.useState(!1);return t.useEffect(()=>{i&&I.current&&I.current.focus()},[i]),t.useEffect(()=>()=>{p.forEach(e=>{e.localUrl&&URL.revokeObjectURL(e.localUrl)})},[p]),{value:m,handleChange:e=>{u&&r?r(e):h(e)},handleSubmit:e=>{if(e.preventDefault(),!(!m.trim()&&0===p.length||a||l&&!s))if(s&&d)d();else{var t=m;if(p.length>0){var o=p.map(e=>"[Uploaded File: "+e.path+"]").join("\n");t=t?t+"\n\n"+o:o}var r=C,i=!1;C.endsWith("-thinking")&&(r=C.replace(/-thinking$/,""),i=!0),n(t,{model_name:r,enable_thinking:i}),u||h(""),v([])}},editableRef:I,fileInputRef:S,isUploading:f,isDraggingOver:E,uploadedFiles:p,pendingFiles:b,removeUploadedFile:e=>{var t=p[e];t.localUrl&&URL.revokeObjectURL(t.localUrl),v(t=>t.filter((t,o)=>o!==e)),!c&&b.length>e&&x(t=>t.filter((t,o)=>o!==e))},setPendingFiles:x,setUploadedFiles:v,setIsUploading:w,selectedModel:C,handleModelChange:k,modelOptions:j,subscriptionStatus:"active",canAccessModel:e=>!0,handleDragOver:e=>{e.preventDefault(),e.stopPropagation(),y(!0)},handleDragLeave:e=>{e.preventDefault(),e.stopPropagation(),y(!1)},isGuideTipShown:O,hideGuideTip:()=>{z(!1),e.onGuideClose&&e.onGuideClose()},isReferenceImageModalShown:H,toggleReferenceImageModal:()=>{M(!H),e.onReferenceImageClick&&e.onReferenceImageClick()},handlePromptExampleSelect:t=>{u&&r?r(t.text):h(t.text),e.onPromptExampleSelect&&e.onPromptExampleSelect(t),I.current&&I.current.focus()}}})(e);return t.useImperativeHandle(r,()=>({getPendingFiles:()=>n.pendingFiles||[],clearPendingFiles:()=>n.setPendingFiles([])})),o.createElement(eg,Object.assign({},e,n))});tg.displayName="ChatInput",exports.Accordion=I,exports.Alert=e=>o.createElement(rr,Object.assign({},e)),exports.ArrowIcon=Bo,exports.AspectRatio=e=>{var{ratio:t,children:r}=e,n=h(e,ar);return o.createElement(ir,Object.assign({ratio:t},n),r)},exports.Avatar=e=>{var{src:r,size:n,views:i,fallback:a,onClick:l}=e,{imageError:s,setImageError:d}=(()=>{var[e,o]=t.useState(!1);return{imageError:e,setImageError:o}})();return o.createElement(ur,{src:r,size:n,views:i,fallback:a,imageError:s,setImageError:d,onClick:l})},exports.Badge=e=>o.createElement(vr,Object.assign({},e)),exports.BatteryIcon=Ut,exports.BluetoothIcon=Eo,exports.BoldArrowIcon=Lo,exports.BookmarkIcon=Gt,exports.Button=Lr,exports.CalendarIcon=_o,exports.CameraIcon=wo,exports.Card=Zr,exports.Carousel=pn,exports.Chart=e=>o.createElement(Pn,Object.assign({},e)),exports.ChartIcon=Zo,exports.ChatInput=tg,exports.CheckIcon=Qo,exports.Checkbox=e=>{var t=oa(e);return o.createElement(sa,Object.assign({},t,e))},exports.ChevronDownIcon=Mo,exports.ChevronIcon=yt,exports.ChevronRightIcon=To,exports.ClockIcon=fo,exports.CloseEyeIcon=Ro,exports.CloseIcon=Ht,exports.CloudIcon=Yt,exports.ComboBox=e=>{var{id:t,name:r,items:n,placeholder:i,searchPlaceholder:a}=e,l=h(e,Ma),s=Oa(n,i,a);return o.createElement(Ha,Object.assign({id:t,name:r,items:n},s,l))},exports.Command=Ac,exports.ContextMenu=ai,exports.CookieConsent=e=>o.createElement(An,Object.assign({},e)),exports.CopyIcon=Kt,exports.CountryPicker=e=>{var t=ca(e);return o.createElement(wa,Object.assign({},t,e))},exports.CropIcon=Fo,exports.DatePicker=e=>{var t=Ea();return o.createElement(ka,Object.assign({},t,e))},exports.DeleteIcon=Zt,exports.Divider=wd,exports.DocumentIcon=Xo,exports.DownloadIcon=Qt,exports.DragAndDrop=ms,exports.DragAndDropComponent=hs,exports.DragHandleIcon=Ct,exports.DragHandleLinesIcon=Ho,exports.DropdownMenu=Ts,exports.DustBinIcon=Xt,exports.EditIcon=qt,exports.ErrorIcon=Jt,exports.ExternalLinkIcon=Do,exports.FacebookIcon=Rt,exports.FileIcon=kt,exports.FileImage=e=>{var{path:t}=e,n=h(e,si);return o.createElement(r.Image,Object.assign({src:t},n))},exports.FileSVG=e=>{var{src:t,color:n,views:i}=e,a=h(e,li),{getColor:l,themeMode:s}=r.useTheme(),d=n?{fill:l(n,{themeMode:s}),stroke:l(n,{themeMode:s})}:{};return o.createElement(r.Center,Object.assign({},a,null==i?void 0:i.container),o.createElement(r.Image,Object.assign({},d,{content:'url("'+t+'")',width:"100%",height:"100%"},null==i?void 0:i.image)))},exports.FilterIcon=ao,exports.Flow=_u,exports.FolderIcon=Et,exports.FormikCheckbox=e=>{var t=_a(e),{value:r}=t,n=h(t,Aa);n.isChecked=r;var i=oa(e);return o.createElement(sa,Object.assign({},i,n))},exports.FormikComboBox=e=>{var{items:t,placeholder:r,searchPlaceholder:n}=e,i=h(e,Ga),a=_a(i),l=Oa(t,r,n);return o.createElement(Ha,Object.assign({},l,a,{onSelect:e=>{a.onChange(e)}}))},exports.FormikCountryPicker=e=>{var t=_a(e),r=ca(e);return o.createElement(wa,Object.assign({},r,t))},exports.FormikDatePicker=e=>{var t=_a(e),r=Ea();return o.createElement(ka,Object.assign({},r,t))},exports.FormikForm=e=>{var{children:n,autoFocus:i=!1,initFocus:a,onChange:s=(()=>{})}=e,d=h(e,La),c=l.useFormikContext();t.useEffect(()=>{s(c.values)},[c.values]);var u=t.useRef({}),g=t.useRef([]),m=e=>{if(i){var t,o=g.current.indexOf(e)+1;o<g.current.length?null==(t=u.current[g.current[o]])||t.focus():c.onSubmit&&c.onSubmit(c.values)}},p={active:i,focusNextInput:m,setInputRef:(e,t)=>{u.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(i)if(a&&u.current[a])null==(e=u.current[a])||e.focus();else if(g.current[0]){var t;null==(t=u.current[g.current[0]])||t.focus()}},[i,a]),o.createElement(Ba.Provider,{value:p},o.createElement(r.Form,Object.assign({},d),n))},exports.FormikOTPInput=e=>{var r=_a(e),{isFocused:n,setIsFocused:i,isHovered:a,setIsHovered:l,inputRef:s,containerRef:d,mirrorSelectionStart:c,mirrorSelectionEnd:u,setMirrorSelectionStart:g,setMirrorSelectionEnd:h,setInputRef:m,handleFocus:p,handleBlur:v,handleKeyDown:b,handlePaste:x}=Ta(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(Va,Object.assign({},e,r,{setValue:f,isFocused:n,setIsFocused:i,isHovered:a,setIsHovered:l,inputRef:s,containerRef:d,mirrorSelectionStart:c,mirrorSelectionEnd:u,setMirrorSelectionStart:g,setMirrorSelectionEnd:h,setInputRef:m,handleChange:w,handleFocus:p,handleBlur:v,handleKeyDown:b,handlePaste:x,stepValues:e.stepValues}))},exports.FormikPassword=e=>{var{visibleIcon:t=o.createElement(mo,{widthHeight:14}),hiddenIcon:n=o.createElement(Ro,{widthHeight:14})}=e,i=h(e,Na),a=_a(i),l=ja(a),{isVisible:s,setIsVisible:d}=l,c=h(l,Ua);return o.createElement(ta,Object.assign({},c,{type:s?"text":"password",isClearable:!1,right:o.createElement(r.View,{onClick:()=>{i.isDisabled||d(!s)}},s?t:n)}))},exports.FormikSelect=e=>{var t=_a(e);t.selected=t.value;var r=di(e);return o.createElement(Ai,Object.assign({},r,t))},exports.FormikSlider=e=>{var t=_a(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(tl,Object.assign({},e,r,t))},exports.FormikSwitch=e=>{var t=_a(e),r=Fi(e);return o.createElement(Xi,Object.assign({},r,t))},exports.FormikTextArea=e=>{var t=_a(e),r=Zi(e);return o.createElement(Ji,Object.assign({},r,t))},exports.FormikTextField=e=>{var t=_a(e),r=h(Qi(e),Fa);return o.createElement(ta,Object.assign({},r,t))},exports.GiftIcon=qo,exports.HeartIcon=_t,exports.HelpIcon=wt,exports.HomeIcon=lo,exports.HoverCard=_s,exports.Icon=tr,exports.ImageIcon=It,exports.InfoIcon=Lt,exports.InstagramIcon=Mt,exports.LikeIcon=yo,exports.Link=wr,exports.LinkedinIcon=Dt,exports.Loader=Mr,exports.LoadingSpinnerIcon=zo,exports.LocationIcon=so,exports.LockIcon=co,exports.LogoutIcon=$o,exports.MagicWandIcon=ro,exports.MenuIcon=$t,exports.Menubar=rd,exports.MessageLayout=e=>{var{container:t,theme:n,position:i="topRight"}=e,{visible:a,title:l,variant:s,subtitle:d,isClosable:c,views:u,action:g,actionText:h,showIcon:m,timeout:p}=ol(),v={topLeft:{top:6,left:8},topRight:{top:6,right:8},bottomLeft:{bottom:8,left:6},bottomRight:{bottom:8,right:6}}[i],b=()=>o.createElement(al,{variant:s,subtitle:d,show:a,title:l,theme:n,isClosable:c,views:u,action:g,actionText:h,showIcon:m,timeout:p,hide:()=>nl()}),x=t?o.cloneElement(t,{},b()):o.createElement(r.View,Object.assign({position:"absolute",zIndex:1e4},v),b());return a?x:null},exports.MessageView=al,exports.MicrophoneIcon=uo,exports.MinusIcon=Vt,exports.Modal=wl,exports.MoonIcon=go,exports.NavigationMenu=Vl,exports.NotificationIcon=ho,exports.OTPInput=e=>{var{value:t}=e,{value:r,setValue:n,isFocused:i,setIsFocused:a,isHovered:l,setIsHovered:s,inputRef:d,containerRef:c,mirrorSelectionStart:u,mirrorSelectionEnd:g,setMirrorSelectionStart:h,setMirrorSelectionEnd:m,setInputRef:p,handleChange:v,handleFocus:b,handleBlur:x,handleKeyDown:f,handlePaste:w,handleKeyPress:E}=Ta(e);return o.createElement(Va,Object.assign({},e,{value:void 0!==t?t:r,setValue:n,isFocused:i,setIsFocused:a,isHovered:l,setIsHovered:s,inputRef:d,containerRef:c,mirrorSelectionStart:u,mirrorSelectionEnd:g,setMirrorSelectionStart:h,setMirrorSelectionEnd:m,setInputRef:p,handleChange:v,handleFocus:b,handleBlur:x,handleKeyDown:f,handleKeyPress:E,handlePaste:w,stepValues:e.stepValues}))},exports.OpenEyeIcon=mo,exports.Pagination=e=>{var{currentPage:r,totalPages:n,onPageChange:i,pageSize:a=10,pageSizeOptions:l,onPageSizeChange:s,showPageSizeSelector:d=!1,showPageInfo:c=!0,maxPageButtons:u=5,showFirstLastButtons:g=!1,size:m="md",variant:p="default",shape:v="rounded",views:b}=e,x=h(e,ud),{visiblePageNumbers:f}=((e,o,r)=>{var[n,i]=t.useState([]);return t.useEffect(()=>{i((()=>{var t=[];if(o<=r)for(var n=1;n<=o;n++)t.push(n);else{t.push(1);var i=Math.max(2,e-Math.floor((r-2)/2)),a=Math.min(o-1,i+r-3);a>=o-1&&(a=o-1,i=Math.max(2,a-(r-3))),i>2&&t.push("...");for(var l=i;l<=a;l++)t.push(l);a<o-1&&t.push("..."),t.push(o)}return t})())},[e,o,r]),{visiblePageNumbers:n}})(r,n,u);return o.createElement(cd,Object.assign({currentPage:r,totalPages:n,onPageChange:i,pageSize:a,pageSizeOptions:l,onPageSizeChange:s,showPageSizeSelector:d,showPageInfo:c,maxPageButtons:u,showFirstLastButtons:g,size:m,variant:p,shape:v,visiblePageNumbers:f,views:b},x))},exports.PanelIcon=io,exports.Password=e=>{var{visibleIcon:t=o.createElement(mo,{widthHeight:14}),hiddenIcon:n=o.createElement(Ro,{widthHeight:14})}=e,i=h(e,Ia),a=ja(i),{isVisible:l,setIsVisible:s}=a,d=h(a,Sa);return o.createElement(ta,Object.assign({},d,{type:l?"text":"password",isClearable:!1,right:o.createElement(r.View,{onClick:()=>{i.isDisabled||s(!l)}},l?t:n)}))},exports.PauseIcon=Pt,exports.PlayIcon=Bt,exports.PlusIcon=Wo,exports.PowerOffIcon=er,exports.PrintIcon=oo,exports.ProfileIcon=po,exports.RefreshIcon=to,exports.Resizable=Xd,exports.RotateIcon=Ko,exports.SaveIcon=Ft,exports.SearchIcon=Io,exports.Select=e=>{var t=Object.assign({},e,{options:e.options||[]}),r=di(t);return o.createElement(Ai,Object.assign({},r,t,{onClick:t=>{t.stopPropagation(),e.onClick&&e.onClick(t)}}))},exports.SendIcon=Oo,exports.Separator=fd,exports.SettingsIcon=vo,exports.ShapeIcon=Yo,exports.ShareIcon=eo,exports.ShieldIcon=Jo,exports.Sidebar=Wd,exports.Slider=e=>{var t=Ka(e);return o.createElement(tl,Object.assign({},e,t))},exports.SliderIcon=Ao,exports.SliderVerticalIcon=no,exports.SpinnerIcon=Po,exports.StarIcon=At,exports.StopIcon=So,exports.SuccessIcon=bo,exports.Switch=e=>{var t=Fi(e);return o.createElement(Xi,Object.assign({},t,e))},exports.Table=ql,exports.Tabs=$l,exports.Text=V,exports.TextArea=e=>{var t=Zi(e);return o.createElement(Ji,Object.assign({},t,e))},exports.TextField=e=>{var t=Qi(e);return o.createElement(ta,Object.assign({},t,e))},exports.TextIcon=Go,exports.ThreadsIcon=Wt,exports.TickIcon=Vo,exports.Title=e=>o.createElement(as,Object.assign({},e)),exports.Toast=dc,exports.Toggle=cs,exports.ToggleGroup=e=>{var{items:r,shape:n,variant:i,onToggleChange:a}=e,{activeToggles:l,setActiveToggles:s}=(()=>{var[e,o]=t.useState([]);return{activeToggles:e,setActiveToggles:o}})();return o.createElement(us,{items:r,shape:n,variant:i,activeToggles:l,setActiveToggles:s,onToggleChange:a})},exports.Tooltip=eu,exports.Tree=ju,exports.TwitchIcon=zt,exports.TwitterIcon=St,exports.UnLikeIcon=xo,exports.UnlockIcon=Co,exports.UploadIcon=jo,exports.Uploader=e=>{var{accept:r="*/*",icon:n,text:i,maxSize:a,onFileSelect:l,validateFile:s,isLoading:d=!1,progress:c=0,fileType:u}=e,g=h(e,sl),{previewUrl:m,thumbnailUrl:p,errorMessage:v,videoRef:b,fileInputRef:x,selectedFile:f,handleFileChange:w,handleClick:E}=(e=>{var{maxSize:o=104857600,onFileSelect:r,validateFile:n,thumbnail:i,onError:a=(e=>{rl("error","Error",e)})}=e,l=t.useRef(null),s=t.useRef(null),[d,c]=t.useState(null),[u,g]=t.useState(null),[h,m]=t.useState(null),[p,v]=t.useState(i||null),b=t.useCallback(e=>{var t,i=null==(t=e.target.files)?void 0:t[0];if(g(null),!i)return a("No file selected"),void g("No file selected");if(i.size>o)return a("File exceeds "+Math.round(o/1048576)+"MB."),void g("File exceeds "+Math.round(o/1048576)+"MB.");if(n){var l=n(i);if(l)return a(l),void g(l)}m(URL.createObjectURL(i)),i.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 n=e.toDataURL("image/jpeg");t(n)}URL.revokeObjectURL(o.src)},o.src=URL.createObjectURL(e)})(i,v),r&&(c(i),r(i))},[o,r,n]);return t.useEffect(()=>()=>{h&&URL.revokeObjectURL(h),p&&URL.revokeObjectURL(p)},[h,p]),{previewUrl:h,thumbnailUrl:p,errorMessage:u,fileInputRef:l,videoRef:s,selectedFile:d,handleFileChange:b,handleClick:()=>{var e;return null==(e=l.current)?void 0:e.click()}}})({accept:r,maxSize:a,onFileSelect:l,validateFile:s}),y=u||(f?f.type.startsWith("image/")?"image":f.type.startsWith("video/")?"video":"file":void 0);return o.createElement(ll,Object.assign({handleClick:E,accept:r,isLoading:d,progress:c,icon:n,text:i,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=ft,exports.VideoIcon=jt,exports.WarningIcon=Nt,exports.WifiIcon=ko,exports.XIcon=Ot,exports.YoutubeIcon=Tt,exports.ZoomInIcon=No,exports.ZoomOutIcon=Uo,exports.hideMessage=nl,exports.hideModal=cl,exports.showMessage=rl,exports.showModal=function(e,t,o){void 0===t&&(t={}),void 0===o&&(o={}),dl.getState().show(e,t,o),dl.getState().onShow(e,t)},exports.showToast=$d,exports.useMessageStore=ol,exports.useModalStore=dl,exports.useToast=()=>({toast:(e,t,o,r)=>$d(e,t,o,r),info:(e,t,o)=>ec(e,t,o),success:(e,t,o)=>tc(e,t,o),warning:(e,t,o)=>oc(e,t,o),error:(e,t,o)=>rc(e,t,o),remove:e=>nc(e),removeAll:()=>ic()});
|
|
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 n=require("react-router-dom"),i=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");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=require("src/components/Loader/Loader"),c=require("src/components/Icon/Icon");function u(e,t,o,r,n,i,a){try{var l=e[i](a),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(r,n)}function g(e){return function(){var t=this,o=arguments;return new Promise((function(r,n){var i=e.apply(t,o);function a(e){u(i,r,n,a,l,"next",e)}function l(e){u(i,r,n,a,l,"throw",e)}a(void 0)}))}}function h(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}var m=function(e){return void 0===e&&(e="id"),e+"-"+Math.random().toString(36).substring(2,9)},p={sharp:{borderRadius:0},rounded:{borderRadius:8}},v={default:{backgroundColor:"transparent",borderWidth:0},outline:{borderWidth:1,borderStyle:"solid",borderColor:"color.gray.200"},filled:{backgroundColor:"color.gray.50"}},b=["value","children","isDisabled","views"],x=["children","value","isExpanded","isDisabled","triggerId","contentId","views","asChild"],f=["children","isExpanded","isDisabled","triggerId","contentId","views"],w=["children","shape","variant","views","baseId","type","collapsible","themeMode"],E=t.createContext({expandedItems:[],toggleItem:()=>{},isItemExpanded:()=>!1,type:"single",collapsible:!1,baseId:""}),y=e=>{var{children:t,value:r}=e;return o.createElement(E.Provider,{value:r},t)},C=()=>{var e=t.useContext(E);if(!e)throw new Error("useAccordionContext must be used within an AccordionProvider");return e},k=e=>{var{children:t,shape:n="rounded",variant:i="default",views:a}=e,l=h(e,w);return o.createElement(r.Vertical,Object.assign({width:"100%","data-orientation":"vertical"},p[n],v[i],null==a?void 0:a.container,l),t)},j=["children","type","value","defaultValue","onValueChange","collapsible","shape","variant","views"],I=e=>{var{children:r,type:n="single",value:i,defaultValue:a,onValueChange:l,collapsible:s=!1,shape:d="rounded",variant:c="default",views:u}=e,g=h(e,j),p=Array.isArray(a)?a:a?[a]:void 0,v=(e=>{var{type:o="single",value:r,defaultValue:n,onValueChange:i,collapsible:a=!1}=e,l=void 0!==r,s=null!=r?r:n,[d,c]=t.useState("multiple"===o?Array.isArray(s)?s:s?[s]:[]:Array.isArray(s)?s[0]:s),u=t.useMemo(()=>m("accordion"),[]),g=l?r:d,h=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),c(r.length>0?r[0]:void 0)):c(r):(console.warn('Accordion with type="multiple" received non-array value:',r),c(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||c(t),i&&i(t)},[o,g,a,l,i]),v=t.useCallback(e=>h.includes(e),[h]);return{expandedItems:h,toggleItem:p,isItemExpanded:v,type:o,collapsible:a,baseId:u}})({type:n,value:i,defaultValue:null!=a?a:p,onValueChange:l,collapsible:s});return o.createElement(y,{value:{expandedItems:v.expandedItems,toggleItem:v.toggleItem,isItemExpanded:v.isItemExpanded,type:v.type,collapsible:v.collapsible,baseId:v.baseId}},o.createElement(k,Object.assign({shape:d,variant:c,views:u,baseId:v.baseId,type:v.type,collapsible:v.collapsible},g),r))};I.Item=e=>{var{value:t,children:n,isDisabled:i=!1,views:a}=e,l=h(e,b),{isItemExpanded:s,baseId:d}=C(),c=s(t),u=d+"-trigger-"+t,g=d+"-content-"+t;return o.createElement(r.View,Object.assign({borderWidth:1,borderStyle:"solid",borderColor:"color.gray.200",marginBottom:8,overflow:"hidden",opacity:i?.5:1,pointerEvents:i?"none":"auto","data-state":c?"open":"closed","data-disabled":i?"":void 0},null==a?void 0:a.item,l),o.Children.map(n,e=>o.isValidElement(e)?o.cloneElement(e,Object.assign({},e.props,{value:t,isExpanded:c,isDisabled:i,triggerId:u,contentId:g})):e))},I.Trigger=e=>{var{children:n,value:i,isExpanded:a,isDisabled:l,triggerId:s,contentId:d,views:c,asChild:u=!1}=e,g=h(e,x),{toggleItem:m}=C(),p=Object.assign({id:s,"aria-expanded":a,"aria-controls":d,"aria-disabled":l,"data-state":a?"open":"closed","data-disabled":l?"":void 0,onClick:()=>{i&&!l&&m(i)},padding:16,cursor:l?"not-allowed":"pointer",alignItems:"center",justifyContent:"space-between",backgroundColor:"color.white",width:"100%"},null==c?void 0:c.container,g);if(u&&t.isValidElement(n)){var v=t.Children.only(n);return t.cloneElement(v,Object.assign({},p,v.props))}return o.createElement(r.Horizontal,Object.assign({},p),n,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==c?void 0:c.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"}))))},I.Content=e=>{var{children:t,isExpanded:n,isDisabled:i,triggerId:a,contentId:l,views:s}=e,d=h(e,f);return n?o.createElement(r.View,Object.assign({id:l,role:"region","aria-labelledby":a,padding:16,backgroundColor:"color.white",maxHeight:n?"1000px":"0",transition:"max-height 0.3s ease-in-out, opacity 0.3s ease-in-out",opacity:1,overflow:"hidden","data-state":n?"open":"closed","data-disabled":i?"":void 0},null==s?void 0:s.container,d),t):null};var S={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"}},O={xs:"10px",sm:"12px",md:"14px",lg:"16px",xl:"20px"},z={xs:"14px",sm:"16px",md:"20px",lg:"22px",xl:"28px"},H={hairline:"100",thin:"200",light:"300",normal:"400",medium:"500",semiBold:"600",bold:"700",extraBold:"800",black:"900"},M=["text","maxLines","views"],T=["children","heading","maxLines","isItalic","isUnderlined","isSub","isSup","isStriked","weight","size","views"],R=e=>{var{children:t,isSub:n,isSup:i,views:a}=e;return o.createElement(o.Fragment,null,"string"==typeof t?o.createElement(o.Fragment,null,n&&o.createElement(r.View,Object.assign({as:"sub",fontSize:"75%",lineHeight:"0",position:"relative",bottom:"-0.25em"},null==a?void 0:a.sup),t),i&&o.createElement(r.View,Object.assign({as:"sup",fontSize:"75%",lineHeight:"0",position:"relative",top:"-0.5em"},null==a?void 0:a.sup),t),!n&&!i&&o.createElement(o.Fragment,null,t)):t)},D=e=>{var{text:n,maxLines:i=1,views:a}=e,l=h(e,M),s=t.useRef(null),[d,c]=t.useState(n),[u,g]=t.useState(!1);return t.useEffect(()=>{var e=s.current;if(!e||!n||i<=0)return c(null!=n?n:""),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=n[0]||"M";var l=e.offsetHeight;if(!l){var d=getComputedStyle(e);l="normal"!==d.lineHeight?parseFloat(d.lineHeight):1.2*parseFloat(d.fontSize||"16")}var u=l*i;if(e.innerText=n,e.offsetHeight<=u)return c(n),g(!1),void x(e);for(var h=0,m=n.length,p=0;h<=m;){var v=Math.floor((h+m)/2);e.innerText=n.slice(0,v),e.offsetHeight<=u?(p=v,h=v+1):m=v-1}var b=p<n.length?n.slice(0,n.length>p+3?p-3:p).trimEnd()+"…":n;function x(e){e.style.overflow=t,e.style.height=o,e.style.maxHeight=r,e.style.lineHeight=a}c(b),g(p<n.length),x(e)},[n,i]),o.createElement(r.Text,Object.assign({ref:s,overflow:"hidden"},null==a?void 0:a.truncateText,l,{title:u?n:void 0}),d)},W=e=>{var{children:t,heading:n,maxLines:i,isItalic:a=!1,isUnderlined:l=!1,isSub:s=!1,isSup:d=!1,isStriked:c=!1,weight:u="normal",size:g="md",views:m}=e,p=h(e,T);return o.createElement(r.Element,Object.assign({fontSize:O[g],lineHeight:z[g],fontStyle:a?"italic":"normal",fontWeight:H[u],letterSpacing:"-0.01em",textDecoration:c?"line-through":l?"underline":"none"},s||d?{display:"inline"}:{},n?S[n]:{},p,null==m?void 0:m.container),i&&"string"==typeof t?o.createElement(D,{text:t,maxLines:i}):o.createElement(R,{isSub:s,isSup:d},t))},V=e=>o.createElement(W,Object.assign({},e)),L=["widthHeight","color","transform","orientation","children"],B=["widthHeight","color","filled","strokeWidth"],P=["widthHeight","color","strokeWidth","filled"],_=["widthHeight","color","filled","strokeWidth"],A=["widthHeight","color","filled","strokeWidth"],F=["widthHeight","color","filled","strokeWidth"],N=["widthHeight","color","filled","strokeWidth"],U=["widthHeight","color","filled","strokeWidth"],G=["widthHeight","color","filled","strokeWidth"],Y=["widthHeight","color","filled","strokeWidth"],K=["widthHeight","color","filled","strokeWidth"],X=["widthHeight","color","filled","strokeWidth"],Z=["widthHeight","color","filled","strokeWidth"],q=["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"],ne=["widthHeight","color","filled","strokeWidth"],ie=["widthHeight","color","filled","strokeWidth"],ae=["widthHeight","color","filled","strokeWidth"],le=["widthHeight","color","filled","strokeWidth"],se=["widthHeight","color","filled","strokeWidth"],de=["widthHeight","color","filled","strokeWidth"],ce=["widthHeight","color","filled","strokeWidth"],ue=["widthHeight","color","filled","strokeWidth"],ge=["widthHeight","color","filled","strokeWidth"],he=["widthHeight","color","filled","strokeWidth"],me=["widthHeight","color","filled","strokeWidth"],pe=["widthHeight","color","strokeWidth","filled"],ve=["widthHeight","color","filled","strokeWidth"],be=["widthHeight","color","strokeWidth","filled"],xe=["widthHeight","color","filled","strokeWidth"],fe=["widthHeight","color","strokeWidth","filled"],we=["widthHeight","color","filled","strokeWidth"],Ee=["widthHeight","color","strokeWidth","filled"],ye=["widthHeight","color","strokeWidth","filled"],Ce=["widthHeight","color","strokeWidth","filled"],ke=["widthHeight","color","filled","strokeWidth"],je=["widthHeight","color","filled","strokeWidth"],Ie=["widthHeight","color","filled","strokeWidth"],Se=["widthHeight","color","filled","strokeWidth"],Oe=["widthHeight","color","filled","strokeWidth"],ze=["widthHeight","color","filled","strokeWidth"],He=["widthHeight","color","filled","strokeWidth"],Me=["widthHeight","color","filled","strokeWidth"],Te=["widthHeight","color","filled","strokeWidth"],Re=["widthHeight","color","filled","strokeWidth"],De=["widthHeight","color","filled","strokeWidth"],We=["widthHeight","color","filled","strokeWidth"],Ve=["widthHeight","color","strokeWidth","filled"],Le=["widthHeight","color","strokeWidth","filled"],Be=["widthHeight","color","filled","strokeWidth"],Pe=["widthHeight","color","filled","strokeWidth"],_e=["widthHeight","color","filled","strokeWidth"],Ae=["widthHeight","color","filled","strokeWidth"],Fe=["widthHeight","color","filled","strokeWidth"],Ne=["widthHeight","color","filled","strokeWidth"],Ue=["widthHeight","color","filled","strokeWidth"],Ge=["widthHeight","color","filled","strokeWidth"],Ye=["widthHeight","color","filled","strokeWidth"],Ke=["widthHeight","color","filled","strokeWidth"],Xe=["widthHeight","color","filled","strokeWidth"],Ze=["widthHeight","color","filled","strokeWidth"],qe=["widthHeight","color","filled","strokeWidth"],Je=["widthHeight","color","filled","strokeWidth"],Qe=["widthHeight","color","filled","strokeWidth"],$e=["widthHeight","color","filled","strokeWidth"],et=["widthHeight","color","filled","strokeWidth"],tt=["widthHeight","color","filled","strokeWidth"],ot=["widthHeight","color","filled","strokeWidth"],rt=["widthHeight","color","strokeWidth","filled"],nt=["widthHeight","color","strokeWidth","filled"],it=["widthHeight","color","strokeWidth","filled"],at=["widthHeight","color","strokeWidth","filled"],lt=["widthHeight","color","strokeWidth","filled"],st=["widthHeight","color","strokeWidth","filled"],dt=["widthHeight","color","strokeWidth","filled"],ct=["widthHeight","color","strokeWidth","filled"],ut=["widthHeight","color","strokeWidth","filled"],gt=["widthHeight","color","strokeWidth","filled"],ht=["widthHeight","color","strokeWidth","filled"],mt=["widthHeight","color","strokeWidth","filled"],pt=["widthHeight","color","strokeWidth","filled"],vt=["widthHeight","color","strokeWidth","filled"],bt=e=>{var{widthHeight:t,color:n="black",transform:i,orientation:a="up",children:l}=e,s=h(e,L);return o.createElement(r.Center,Object.assign({widthHeight:t,lineHeight:t,color:n,display:"flex",transform:i||("left"===a?"rotate(-90deg)":"right"===a?"rotate(90deg)":"up"===a?"rotate(0deg)":"down"===a?"rotate(180deg)":"none")},s),l)},xt=(e,t,o)=>{var{getColor:n}=r.useTheme();return{fill:e?n(t):"none",stroke:e?"none":n(t),strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}},ft=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,B);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),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"})))},wt=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,P);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},Et=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,_);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"9",y1:"17",x2:"9",y2:"17"}),o.createElement("line",{x1:"15",y1:"17",x2:"15",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"}),o.createElement("line",{x1:"12",y1:"17",x2:"12",y2:"17"})))},yt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,A);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),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:n=!0,strokeWidth:i=1}=e,a=h(e,F);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),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"}))))},kt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,N);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(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",fill:n?r:"none",stroke:n?"none":r,strokeWidth:n?0:i}),o.createElement("polyline",{points:"14 2 14 8 20 8",fill:"none",stroke:r,strokeWidth:i})))},jt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,U);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),o.createElement("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",ry:"2",fill:n?r:"none",stroke:n?"none":r,strokeWidth:n?0:i}),o.createElement("polygon",{points:"10 8 16 12 10 16 10 8",fill:n?n?"white":r:"none",stroke:n?"none":r,strokeWidth:n?0:i})))},It=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,G);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),o.createElement("rect",{x:"2",y:"2",width:"20",height:"20",rx:"2",ry:"2",fill:n?r:"none",stroke:n?"none":r,strokeWidth:n?0:i}),o.createElement("circle",{cx:"8.5",cy:"8.5",r:"1.5",fill:n?n?"white":r:"none",stroke:n?"none":r,strokeWidth:n?0:i}),o.createElement("polyline",{points:"21 15 16 10 5 21",fill:"none",stroke:n?"white":r,strokeWidth:i})))},St=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Y);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),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:n?r:"none",stroke:n?"none":r,strokeWidth:n?0:i})))},Ot=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,K);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),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:n?r:"none",stroke:r,strokeWidth:i})))},zt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,X);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M2 2v16h5v4l4-4h5l6-6V2H2zm18 10-3 3h-5l-3 3v-3H4V4h16v8z",fill:n?r:"none",stroke:r,strokeWidth:n?0:i}),o.createElement("path",{d:"M14 7h2v5h-2V7zm-4 0h2v5H10V7z",fill:n?r:"none",stroke:r,strokeWidth:n?0:i})))},Ht=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,Z);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),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"})))},Mt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,q);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),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"})))},Tt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,J);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),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:n?r:"none",stroke:n?"none":r,strokeWidth:n?0:i}),o.createElement("polygon",{points:"10 8 10 14 14 10",fill:"white",stroke:"white",strokeWidth:i})))},Rt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Q);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),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:n?r:"none",stroke:r,strokeWidth:n?0:i})))},Dt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,$);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24"},xt(n,r,i)),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"})))},Wt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,ee);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24"},xt(n,r,i)),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"})))},Vt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,te);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},xt(n,r,i)),o.createElement("line",{stroke:r,x1:"8",y1:"12",x2:"16",y2:"12"})))},Lt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,oe);return o.createElement(bt,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"},xt(n,r,i)),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"})))},Bt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,re);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M8 5v14l11-7z"})))},Pt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,ne);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M6 4h4v16H6V4zm8 0h4v16h-4V4z"})))},_t=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,ie);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},At=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,ae);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Ft=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,le);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Nt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,se);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Ut=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,de);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Gt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,ce);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z"})))},Yt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,ue);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M18 10h-1.26A8 8 0 109 20h9a5 5 0 000-10z"})))},Kt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,ge);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Xt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,he);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Zt=Xt,qt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,me);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Jt=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!0}=e,a=h(e,pe);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),o.createElement("circle",{cx:"12",cy:"12",r:"10"}),o.createElement("line",{x1:"15",y1:"9",x2:"9",y2:"15",stroke:i?"white":r}),o.createElement("line",{x1:"9",y1:"9",x2:"15",y2:"15",stroke:i?"white":r})))},Qt=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,ve);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"})))},$t=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,be);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},eo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,xe);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},to=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,fe);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},oo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,we);return o.createElement(bt,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"})))},ro=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!0}=e,a=h(e,Ee);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},no=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,ye);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},io=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,Ce);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),o.createElement("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),o.createElement("path",{d:"M9 3v18"})))},ao=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,ke);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M3 4h18l-7 10v5l-4 2v-7L3 4z"})))},lo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,je);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5z"})))},so=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Ie);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},co=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,Se);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),n?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"}))))},uo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,Oe);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},go=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,ze);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"})))},ho=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,He);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},mo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Me);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},po=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Te);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{fill:n?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"})," "))},vo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,Re);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},bo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,De);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},xo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,We);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},fo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,Ve);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),o.createElement("circle",{cx:"12",cy:"12",r:"10"}),o.createElement("polyline",{points:"12 6 12 12 16 14"})))},wo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,Le);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},Eo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Be);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},yo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Pe);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Co=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,_e);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),n?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"}))))},ko=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,Ae);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},jo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,Fe);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Io=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Ne);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},So=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=2}=e,a=h(e,Ue);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"})))},Oo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=2}=e,a=h(e,Ge);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),o.createElement("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})))},zo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=2}=e,a=h(e,Ye);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("line",{x1:"12",y1:"2",x2:"12",y2:"6"}),o.createElement("line",{x1:"12",y1:"18",x2:"12",y2:"22"}),o.createElement("line",{x1:"4.93",y1:"4.93",x2:"7.76",y2:"7.76"}),o.createElement("line",{x1:"16.24",y1:"16.24",x2:"19.07",y2:"19.07"}),o.createElement("line",{x1:"2",y1:"12",x2:"6",y2:"12"}),o.createElement("line",{x1:"18",y1:"12",x2:"22",y2:"12"}),o.createElement("line",{x1:"4.93",y1:"19.07",x2:"7.76",y2:"16.24"}),o.createElement("line",{x1:"16.24",y1:"7.76",x2:"19.07",y2:"4.93"})))},Ho=e=>{var{widthHeight:t=16,color:r="currentColor",filled:n=!1,strokeWidth:i=1.5}=e,a=h(e,Ke);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M4 6H12",stroke:"currentColor",strokeWidth:i,strokeLinecap:"round"}),o.createElement("path",{d:"M4 10H12",stroke:"currentColor",strokeWidth:i,strokeLinecap:"round"})))},Mo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Xe);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z",fill:"currentColor"})))},To=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Ze);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z",fill:"currentColor"})))},Ro=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,qe);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Do=Zt,Wo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,Je);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(!0,r,i)),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"})))},Vo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,Qe);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Lo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,$e);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M5 13l4 4L19 7",strokeLinecap:"round",strokeLinejoin:"round"})))},Bo=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!0,strokeWidth:i=1}=e,a=h(e,et);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("path",{d:"M12 4l7 7h-4v7h-6v-7H5l7-7z"})))},Po=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,tt);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),o.createElement("line",{stroke:r,x1:"12",y1:"20",x2:"12",y2:"8"}),o.createElement("polyline",{points:"6 12 12 6 18 12"})))},_o=e=>{var{widthHeight:t=24,color:r="currentColor",filled:n=!1,strokeWidth:i=1}=e,a=h(e,ot);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(n,r,i)),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"})))},Ao=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,rt);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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:n=1,filled:i=!1}=e,a=h(e,nt);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},No=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,it);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),o.createElement("path",{d:"M6 2v14a2 2 0 0 0 2 2h14"}),o.createElement("path",{d:"M18 22V8a2 2 0 0 0-2-2H2"})))},Uo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,at);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},Go=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,lt);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},Yo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,st);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},Ko=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,dt);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},Xo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,ct);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},Zo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,ut);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(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"}),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"})))},qo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,gt);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},Jo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,ht);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),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"})))},Qo=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!0}=e,a=h(e,mt);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),o.createElement("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})))},$o=Lo,er=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1,filled:i=!1}=e,a=h(e,pt);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),o.createElement("path",{d:"M16 17l5-5-5-5"}),o.createElement("path",{d:"M21 12H9"}),o.createElement("path",{d:"M13 5v-2a1 1 0 0 0-1-1H5a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h7a1 1 0 0 0 1-1v-2"})))},tr=e=>{var{widthHeight:t=24,color:r="currentColor",strokeWidth:n=1.5,filled:i=!1}=e,a=h(e,vt);return o.createElement(bt,Object.assign({widthHeight:t,color:r},a),o.createElement("svg",Object.assign({viewBox:"0 0 24 24","aria-hidden":"false",focusable:"false"},xt(i,r,n)),o.createElement("line",{x1:"12",y1:"2",x2:"12",y2:"8"}),o.createElement("path",{d:"M6.8 6.8a8 8 0 1 0 10 0"})))},or={__proto__:null,UserIcon:ft,HelpIcon:wt,FolderIcon:Et,ChevronIcon:yt,DragHandleIcon:Ct,FileIcon:kt,VideoIcon:jt,ImageIcon:It,TwitterIcon:St,XIcon:Ot,TwitchIcon:zt,CloseIcon:Ht,InstagramIcon:Mt,YoutubeIcon:Tt,FacebookIcon:Rt,LinkedinIcon:Dt,ThreadsIcon:Wt,MinusIcon:Vt,InfoIcon:Lt,PlayIcon:Bt,PauseIcon:Pt,HeartIcon:_t,StarIcon:At,SaveIcon:Ft,WarningIcon:Nt,BatteryIcon:Ut,BookmarkIcon:Gt,CloudIcon:Yt,CopyIcon:Kt,DustBinIcon:Xt,DeleteIcon:Zt,EditIcon:qt,ErrorIcon:Jt,DownloadIcon:Qt,MenuIcon:$t,ShareIcon:eo,RefreshIcon:to,PrintIcon:oo,MagicWandIcon:ro,SliderVerticalIcon:no,PanelIcon:io,FilterIcon:ao,HomeIcon:lo,LocationIcon:so,LockIcon:co,MicrophoneIcon:uo,MoonIcon:go,NotificationIcon:ho,OpenEyeIcon:mo,ProfileIcon:po,SettingsIcon:vo,SuccessIcon:bo,UnLikeIcon:xo,ClockIcon:fo,CameraIcon:wo,BluetoothIcon:Eo,LikeIcon:yo,UnlockIcon:Co,WifiIcon:ko,UploadIcon:jo,SearchIcon:Io,StopIcon:So,SendIcon:Oo,LoadingSpinnerIcon:zo,DragHandleLinesIcon:Ho,ChevronDownIcon:Mo,ChevronRightIcon:To,CloseEyeIcon:Ro,TrashIcon:Do,ExternalLinkIcon:Wo,PlusIcon:Vo,TickIcon:Lo,BoldArrowIcon:Bo,ArrowIcon:Po,SpinnerIcon:_o,CalendarIcon:Ao,SliderIcon:Fo,CropIcon:No,ZoomInIcon:Uo,ZoomOutIcon:Go,TextIcon:Yo,ShapeIcon:Ko,RotateIcon:Xo,DocumentIcon:Zo,ChartIcon:qo,GiftIcon:Jo,ShieldIcon:Qo,CheckIcon:$o,LogoutIcon:er,PowerOffIcon:tr},rr=["icon","title","views","description","variant","themeMode"],nr=e=>{var{icon:t,title:n,views:i,description:a,variant:l="default"}=e,s=h(e,rr),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==i?void 0:i.container,s),o.createElement(r.View,Object.assign({alignSelf:"flex-start",marginTop:"2px"},null==i?void 0:i.icon),(()=>{var e,r;if(t)return t;var n={size:20,color:null!=(e=null==i||null==(r=i.icon)?void 0:r.color)?e:d[l].icon.color};switch(l){case"info":return o.createElement(Lt,Object.assign({},n));case"success":return o.createElement(bo,Object.assign({},n));case"error":return o.createElement(Jt,Object.assign({},n));case"warning":default:return o.createElement(Nt,Object.assign({},n))}})()),o.createElement(r.Vertical,{gap:8}," ",o.createElement(V,Object.assign({fontSize:"16px",fontWeight:"600",lineHeight:"24px",color:d[l].content.color},null==i?void 0:i.title),n),o.createElement(V,Object.assign({fontSize:"14px",fontWeight:"400",lineHeight:"20px",color:d[l].content.color},null==i?void 0:i.description),a)))},ir=["ratio","children","views"],ar=e=>{var{ratio:t=16/9,children:n,views:i}=e,a=h(e,ir);return o.createElement(r.Center,Object.assign({width:"100%",position:"relative",overflow:"hidden",paddingTop:1/t*100+"%",borderRadius:8},a,null==i?void 0:i.center),o.createElement(r.View,Object.assign({position:"absolute",top:0,right:0,bottom:0,left:0},null==i?void 0:i.view),n))},lr=["ratio","children"],sr={xs:24,sm:32,md:48,lg:64,xl:80},dr={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"},cr={fontWeight:"500",color:"color.gray.600"},ur={objectFit:"cover",transition:"all 0.2s ease"},gr=e=>{var{src:t,size:n="md",fallback:i="IM",views:a,imageError:l,setImageError:s,onClick:d=(()=>{})}=e,c=sr[n],u=Object.assign({},ur,(null==a?void 0:a.image)||{});return o.createElement(r.Center,Object.assign({role:"avatar",width:c,height:c},dr,{borderColor:l?"color.gray.400":"transparent",onClick:d},null==a?void 0:a.container),l?o.createElement(V,Object.assign({size:n},cr,null==a?void 0:a.fallback),i):o.createElement(r.Image,{alt:"IM",src:t,style:u,width:c,height:c,onError:()=>s(!0)}))},hr={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:"16px",fontWeight:"500",lineHeight:"32px"},xl:{minWidth:"36px",height:"36px",padding:"0 14px",fontSize:"20px",fontWeight:"500",lineHeight:"36px"}},mr={sharp:0,rounded:"8px",pillShaped:"9999px"},pr={"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"}},vr=["content","position","shape","variant","size","views","themeMode"],br=e=>{var{content:t,position:n,shape:i="pillShaped",variant:a="filled",size:l="md",views:s}=e,d=h(e,vr),c=(r.useTheme(),Object.assign({width:"fit-content",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"color.black",borderRadius:mr[i]},hr[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],n?pr[n]:{},null==s?void 0:s.container));return o.createElement(r.Center,Object.assign({role:"badge"},c,d),o.createElement(V,Object.assign({role:"badgeText",fontWeight:"500",textAlign:"center"},null==s?void 0:s.text,{color:c.color}),t||""))},xr={xs:12,sm:14,md:16,lg:18,xl:20},fr=["children","to","iconSize","underline","isHovered","isExternal","views","setIsHovered"],wr=e=>{var{children:t,to:i="/",iconSize:a="sm",underline:l="default",isHovered:s=!1,isExternal:d=!1,views:c={icon:{},text:{}},setIsHovered:u=(()=>{})}=e,g=h(e,fr),m=()=>{"hover"===l&&u(!0)};return o.createElement(n.Link,{to:i,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"},c.text,g),t,d&&o.createElement(Wo,{widthHeight:xr[a]})))},Er=e=>{var r=(()=>{var[e,o]=t.useState(!1);return{isHovered:e,setIsHovered:o}})();return o.createElement(wr,Object.assign({},r,e))},yr={xs:14,sm:18,md:22,lg:26,xl:30},Cr={fast:50,normal:100,slow:300},kr=["size","speed","color","themeMode"],jr=["size","speed","color","themeMode"],Ir=["size","speed","color","themeMode"],Sr=["size","children","textColor","loaderColor","type","speed","textPosition","views"],Or=e=>{var{size:n="md",speed:i="normal",color:a="theme.loading",themeMode:l}=e,s=h(e,kr),{getColor:d,themeMode:c}=r.useTheme(),u=d(a,{themeMode:l||c}),g="number"==typeof n?n:yr[n],[m,p]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{p(e=>e+45)},Cr[i]);return()=>clearInterval(e)},[i]),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:u,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"})))},zr=e=>{var{size:n="md",speed:i="normal",color:a="theme.loading",themeMode:l}=e,s=h(e,jr),{getColor:d,themeMode:c}=r.useTheme(),u=d(a,{themeMode:l||c}),g="number"==typeof n?n:yr[n],[m,p]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{p(e=>e+45)},Cr[i]);return()=>clearInterval(e)},[i]),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:u}),o.createElement("circle",{cx:"25",cy:"25",r:"4",fill:u}),o.createElement("circle",{cx:"40",cy:"25",r:"4",fill:u}))},Hr=e=>{var{size:n="md",speed:i="normal",color:a="theme.loading",themeMode:l}=e,s=h(e,Ir),{getColor:d,themeMode:c}=r.useTheme(),u=d(a,{themeMode:l||c}),g="number"==typeof n?n:yr[n],[m,p]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{p(e=>e+45)},Cr[i]);return()=>clearInterval(e)},[i]),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:u,strokeWidth:"5",strokeDasharray:"1,10"}))},Mr=e=>{var{size:t,children:n,textColor:i,loaderColor:a,type:l="default",speed:s="normal",textPosition:d="right",views:c}=e,u=h(e,Sr),g={size:t,speed:s,color:a},m={default:o.createElement(Or,Object.assign({},g)),dotted:o.createElement(zr,Object.assign({},g)),quarter:o.createElement(Hr,Object.assign({},g))};return o.createElement(r.Center,Object.assign({gap:10,flexDirection:"top"===d||"bottom"===d?"column":"row"},u,null==c?void 0:c.container),("left"===d||"top"===d)&&n&&o.createElement(r.View,Object.assign({color:i},null==c?void 0:c.text),n),m[l],("right"===d||"bottom"===d)&&n&&o.createElement(r.View,Object.assign({color:i},null==c?void 0:c.text),n))},Tr=e=>o.createElement(Mr,Object.assign({},e)),Rr={xs:{minHeight:12,paddingTop:1,paddingBottom:1,paddingLeft:2,paddingRight:2,fontSize:10,fontWeight:"500",lineHeight:14,letterSpacing:"-0.01em"},sm:{minHeight:16,paddingTop:4,paddingBottom:4,paddingLeft:8,paddingRight:8,fontSize:12,fontWeight:"500",lineHeight:16,letterSpacing:"-0.01em"},md:{minHeight:24,paddingTop:6,paddingBottom:6,paddingLeft:12,paddingRight:12,fontSize:14,fontWeight:"500",lineHeight:18,letterSpacing:"-0.01em"},lg:{minHeight:32,paddingTop:8,paddingBottom:8,paddingLeft:16,paddingRight:16,fontSize:16,fontWeight:"500",lineHeight:18,letterSpacing:"-0.01em"},xl:{minHeight:40,paddingTop:10,paddingBottom:10,paddingLeft:20,paddingRight:20,fontSize:20,fontWeight:"500",lineHeight:22,letterSpacing:"-0.01em"}},Dr={sharp:0,rounded:8,pillShaped:999},Wr={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}},Vr=["variant","size","shape","iconPosition","loaderPosition","backgroundColor","color","isAuto","isFilled","isDisabled","isLoading","isIconRounded","icon","children","to","isExternal","shadow","onClick","views","themeMode"],Lr=e=>{var n,{variant:a="filled",size:l="md",shape:s="rounded",iconPosition:d="left",loaderPosition:c="left",backgroundColor:u,color:g,isDisabled:m,isLoading:p,isIconRounded:v,icon:b,children:x,to:f,isExternal:w,shadow:E,onClick:y,views:C={},themeMode:k}=e,j=h(e,Vr),{getColor:I,themeMode:S}=r.useTheme(),O=null!=(n=null!=u?u:g)?n:"theme.primary",z=I(m?"theme.disabled":O,{themeMode:null!=k?k:S}),H=i(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,R=Rr[l],D=v?Wr[l]:{},W=o.createElement(T,Object.assign({gap:8,alignItems:"center",justifyContent:"center",color:"inherit",_hover:{color:"inherit"}},R,null==C?void 0:C.content),p&&"left"===c&&o.createElement(Tr,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"===c&&o.createElement(Tr,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)},R,D,{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:Dr[s],boxShadow:E,transition:"all 0.2s ease",cursor:m?"default":"pointer",onClick:y},M,null==C?void 0:C.container,j),f?o.createElement(Er,Object.assign({to:f,isExternal:w,color:"inherit",textDecoration:"inherit",textDecorationColor:"inherit"},null==C?void 0:C.link),W):W)},Br=e=>{var[t,n]=r.useHover();return o.createElement(Lr,Object.assign({ref:t,isHovered:n},e))},Pr={sharp:0,rounded:"8px",pillShaped:"16px"},_r=t.createContext({}),Ar=()=>t.useContext(_r),Fr=["children","views","style","themeMode"],Nr=["children","views","style","themeMode"],Ur=["children","views","style","themeMode"],Gr=["variant","size","shape","children","header","footer","isFullWidth","views","style","themeMode"],Yr=e=>{var t,{children:n,style:i}=e,a=h(e,Fr),{styles:l}=(r.useTheme(),Ar()),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,i)});return o.createElement(r.View,Object.assign({},d),n)},Kr=e=>{var t,{children:n,style:i}=e,a=h(e,Nr),{styles:l}=(r.useTheme(),Ar()),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,i)});return o.createElement(r.View,Object.assign({},d),n)},Xr=e=>{var t,{children:n,style:i}=e,a=h(e,Ur),{styles:l}=(r.useTheme(),Ar()),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,i)});return o.createElement(r.View,Object.assign({},d),n)},Zr=e=>{var n,{variant:i="default",size:a="md",shape:l="rounded",children:s,header:d,footer:c,isFullWidth:u=!1,views:g,style:m}=e,p=h(e,Gr),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===Yr||e.type===Kr||e.type===Xr)),f=Object.assign({width:u?"100%":"auto",borderRadius:Pr[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)"}}}[i],b.styles.container,p,{style:Object.assign({},null==(n=b.styles.container)?void 0:n.style,m)});return o.createElement(_r.Provider,{value:b},o.createElement(r.View,Object.assign({},f),x?s:o.createElement(r.Vertical,null,d&&o.createElement(Yr,null,d),o.createElement(Kr,null,s),c&&o.createElement(Xr,null,c))))},qr=e=>o.createElement(Zr,Object.assign({},e));qr.Header=Yr,qr.Content=Kr,qr.Footer=Xr;var Jr={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"}},Qr={dot:{backgroundColor:"theme.primary"},line:{backgroundColor:"theme.primary"},number:{backgroundColor:"theme.primary",color:"color.white"}},$r={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"}},en=()=>({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},$r),nextButton:Object.assign({position:"absolute",top:"50%",right:"16px",transform:"translateY(-50%)",zIndex:10},$r)}),tn=t.createContext(null),on=()=>{var e=t.useContext(tn);if(!e)throw new Error("Carousel compound components must be used within <Carousel>");return e},rn=["children","isActive","views"],nn=["views","children"],an=["views","children"],ln=["children","views"],sn=["children","views","style"],dn=["children","defaultActiveIndex","activeIndex","onChange","showNavigation","navigationPosition","prevButton","nextButton","showIndicators","indicatorPosition","indicatorVariant","autoPlay","autoPlayInterval","pauseOnHover","infinite","direction","transitionDuration","views","stepIndices","themeMode"],cn=e=>{var{children:t,isActive:n,views:i}=e,a=h(e,rn);return o.createElement(r.View,Object.assign({flexShrink:0,width:"100%",height:"100%",display:n?"block":"none"},i,a),t)},un=e=>{var{views:t,children:r}=e,n=h(e,nn),{goToPrevious:i,canGoPrevious:a,styles:l}=on(),s=en().prevButton,d=Object.assign({},s,null==l?void 0:l.prevButton,null==t?void 0:t.prevButton);return o.createElement(Br,Object.assign({"aria-label":"Previous slide",onClick:()=>i(),isDisabled:!a},d,n),null!=r?r:o.createElement(yt,{orientation:"left",widthHeight:16}))},gn=e=>{var{views:t,children:r}=e,n=h(e,an),{goToNext:i,canGoNext:a,styles:l}=on(),s=en().nextButton,d=Object.assign({},s,null==l?void 0:l.nextButton,null==t?void 0:t.nextButton);return o.createElement(Br,Object.assign({"aria-label":"Next slide",onClick:()=>i(),isDisabled:!a},d,n),null!=r?r:o.createElement(yt,{orientation:"right",widthHeight:16}))},hn=e=>{var{children:n,views:i}=e,a=h(e,ln),{registerSlide:l,unregisterSlide:s,styles:d}=on(),c=t.useRef(null);t.useEffect(()=>{var e=l();return c.current=e,()=>{null!==c.current&&s(c.current)}},[l,s]);var u=en().item,g=Object.assign({},u,null==d?void 0:d.item,null==i?void 0:i.item);return o.createElement(r.View,Object.assign({role:"group","aria-roledescription":"slide"},g,a),n)},mn=e=>{var{children:t,views:n,style:i}=e,a=h(e,sn),{currentIndex:l,styles:s,contentId:d}=on(),c=en(),u=Object.assign({},c.content,null==s?void 0:s.content,null==n?void 0:n.content),g=Object.assign({},c.innerContainer,null==s?void 0:s.innerContainer,null==n?void 0:n.innerContainer),m="-"+100*l+"%";return o.createElement(r.View,Object.assign({},u,a,{style:Object.assign({},null==u?void 0:u.style,i),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))},pn=e=>{var{children:n,defaultActiveIndex:i=0,activeIndex:a,onChange:l,showNavigation:s=!0,navigationPosition:d="inside",prevButton:c,nextButton:u,showIndicators:g=!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,k=h(e,dn),j=t.useMemo(()=>o.Children.toArray(n),[n]),I=(e=>{var{defaultActiveIndex:o=0,activeIndex:r,onChange:n,autoPlay:i=!1,autoPlayInterval:a=3e3,pauseOnHover:l=!0,infinite:s=!0,totalSlides:d,stepIndices:c}=e,u=t.useRef(d||0),[g,h]=t.useState(d||0),p=t.useRef(new Set),v=t.useRef(0),b=t.useMemo(()=>m("carousel-content"),[]),[x,f]=t.useState(void 0!==r?r:o),[w,E]=t.useState(!1),[y,C]=t.useState(!1),[k,j]=t.useState(0),[I,S]=t.useState(0),O=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)),c&&c.length>0)if(c.includes(t));else{var o=c.reduce((e,o)=>Math.abs(o-t)<Math.abs(e-t)?o:e);t=o}void 0===r&&f(t),n&&n(t)},[r,s,n,g]),H=t.useCallback(()=>{z(x+1)},[x,z]),M=t.useCallback(()=>{z(x-1)},[x,z]);t.useEffect(()=>(!i||w||y||(O.current=setInterval(()=>{H()},a)),()=>{O.current&&clearInterval(O.current)}),[i,a,w,y,H,l]);var T=t.useCallback(()=>{l&&E(!0)},[l]),R=t.useCallback(()=>{E(!1)},[]),D=t.useCallback(e=>{C(!0),"touches"in e?(j(e.touches[0].clientX),S(e.touches[0].clientY)):(j(e.clientX),S(e.clientY))},[]),W=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-k,n=o-I;Math.abs(r)>Math.abs(n)&&Math.abs(r)>50&&(r>0?M():H(),C(!1))}},[y,k,I,H,M]),V=t.useCallback(()=>{C(!1)},[]),L=t.useCallback(()=>{var e=v.current++;p.current.add(e);var t=p.current.size;return u.current=t,h(t),e},[]),B=t.useCallback(e=>{p.current.delete(e);var t=p.current.size;if(u.current=t,h(t),t>0&&x>=t){var o=Math.max(0,t-1);void 0===r&&f(o),n&&n(o)}},[x,r,n]);return{activeIndex:x,totalSlides:g,goToSlide:z,nextSlide:H,prevSlide:M,canGoNext:s||x<g-1,canGoPrevious:s||x>0,handleMouseEnter:T,handleMouseLeave:R,handleDragStart:D,handleDragMove:W,handleDragEnd:V,registerSlide:L,unregisterSlide:B,contentId:b,infinite:s}})({defaultActiveIndex:i,activeIndex:a,onChange:l,autoPlay:b,autoPlayInterval:x,pauseOnHover:f,infinite:w,totalSlides:j.length}),{activeIndex:S,totalSlides:O,goToSlide:z,nextSlide:H,prevSlide:M,handleMouseEnter:T,handleMouseLeave:R,handleDragStart:D,handleDragMove:W,handleDragEnd:V}=I;return t.useMemo(()=>o.Children.toArray(n).some(e=>o.isValidElement(e)&&(e.type===mn||e.type===hn||e.type===un||e.type===gn)),[n])?o.createElement(tn.Provider,{value:{currentIndex:S,totalSlides:O,goToSlide:z,goToNext:H,goToPrevious:M,canGoNext:I.canGoNext,canGoPrevious:I.canGoPrevious,registerSlide:I.registerSlide,unregisterSlide:I.unregisterSlide,styles:Object.assign({},en(),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,k),n)):o.createElement(r.View,Object.assign({position:"relative",width:"100%",height:"100%",overflow:"hidden",onMouseEnter:T,onMouseLeave:R,onTouchStart:D,onTouchMove:W,onTouchEnd:V,onMouseDown:D,onMouseMove:W,onMouseUp:V},null==C?void 0:C.container,k),o.createElement(r.View,Object.assign({width:"100%",height:"100%",position:"relative"},null==C?void 0:C.slideWrapper),j.map((e,t)=>o.createElement(cn,{key:t,isActive:t===S,index:t,views:null==C?void 0:C.slide},e))),(()=>{if(!s)return null;var e=c||o.createElement(r.View,Object.assign({as:"button","aria-label":"Previous slide"},$r,null==C?void 0:C.prevButton),"❮"),t=u||o.createElement(r.View,Object.assign({as:"button","aria-label":"Next slide"},$r,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"===d?"10px":"-40px",onClick:M,cursor:w||0!==S?"pointer":"not-allowed",opacity:w||0!==S?1:.5},e),o.createElement(r.View,{position:"absolute",top:"50%",transform:"translateY(-50%)",right:"inside"===d?"10px":"-40px",onClick:H,cursor:w||S!==j.length-1?"pointer":"not-allowed",opacity:w||S!==j.length-1?1:.5},t))})(),g?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),j.map((e,t)=>o.createElement(r.View,Object.assign({key:t,onClick:()=>z(t),cursor:"pointer"},Jr[v],t===S?Object.assign({},Qr[v]):{},null==C?void 0:C.indicator,t===S?null==C?void 0:C.activeIndicator:{}),"number"===v&&t+1))):null)},vn=e=>o.createElement(pn,Object.assign({},e));vn.Slide=cn,vn.Content=mn,vn.Item=hn,vn.Previous=un,vn.Next=gn;var bn=["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"],xn={width:"100%",height:"100%",position:"relative",display:"flex",flexDirection:"column"},fn={fontSize:"18px",fontWeight:"bold",marginBottom:"16px",textAlign:"center"},wn={display:"flex",flexWrap:"wrap",justifyContent:"center",marginTop:"16px"},En={display:"flex",alignItems:"center",marginRight:"16px",marginBottom:"8px"},yn={width:"12px",height:"12px",borderRadius:"2px",marginRight:"6px"},Cn={fontSize:"14px"},kn={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},jn={stroke:"color.gray.200",strokeWidth:"1px"},In={stroke:"color.gray.300",strokeWidth:"1px"},Sn={fontSize:"12px",fill:"color.gray.600"},On={rx:"2px",ry:"2px",cursor:"pointer",transition:"opacity 0.2s ease",_hover:{opacity:.8}},zn={strokeWidth:"2px",fill:"none"},Hn={r:"4px",strokeWidth:"2px",stroke:"white",cursor:"pointer",transition:"r 0.2s ease"},Mn={strokeWidth:"1px",stroke:"white",cursor:"pointer",transition:"opacity 0.2s ease",_hover:{opacity:.8}},Tn={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"},Rn=Object.assign({},Tn),Dn=Object.assign({},Tn,{backgroundColor:"rgba(255, 235, 238, 0.9)",color:"color.red.700"}),Wn=Object.assign({},Tn,{backgroundColor:"rgba(245, 245, 245, 0.8)",color:"color.gray.600"}),Vn=e=>{var{data:n,width:i,height:a,animationProgress:l,showGrid:s=!0,onBarClick:d,showTooltip:c,hideTooltip:u,views:g}=e,{getColor:h}=r.useTheme(),m=i-50-20,p=a-20-40,v=t.useMemo(()=>{var e=0;return n.series.forEach(t=>{t.data.forEach(t=>{e=Math.max(e,t)})}),e},[n]),b=n.series.length,x=m/n.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:i,height:a},o.createElement("line",Object.assign({x1:50,y1:a-40,x2:i-20,y2:a-40},In,null==g?void 0:g.axis)),o.createElement("line",Object.assign({x1:50,y1:20,x2:50,y2:a-40},In,null==g?void 0:g.axis)),n.labels.map((e,t)=>o.createElement("text",Object.assign({key:"x-label-"+t,x:50+(t+.5)*x,y:a-40+20,textAnchor:"middle"},Sn,null==g?void 0:g.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"},Sn,null==g?void 0:g.axisLabel),e.toFixed(0)),s&&o.createElement("line",Object.assign({x1:50,y1:r,x2:i-20,y2:r},jn,null==g?void 0:g.grid)))}),n.series.map((e,t)=>o.createElement(o.Fragment,{key:"series-"+t},e.data.map((r,n)=>{var i=r/v*p*l;return o.createElement("rect",Object.assign({key:"bar-"+t+"-"+n,x:50+n*x+w*(t+1)+f*t,y:a-40-i,width:f,height:i,fill:e.color?h(e.color):"black",onMouseEnter:t=>{c(t.clientX,t.clientY,e.name+": "+r)},onMouseLeave:u,onClick:()=>{d&&d(e.name,n)}},On,null==g?void 0:g.bar))}))))},Ln=e=>{var{data:n,width:i,height:a,animationProgress:l,showGrid:s=!0,onPointClick:d,showTooltip:c,hideTooltip:u,views:g}=e,{getColor:h}=r.useTheme(),m=i-50-20,p=a-20-40,v=t.useMemo(()=>{var e=0;return n.series.forEach(t=>{t.data.forEach(t=>{e=Math.max(e,t)})}),e},[n]),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/(n.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/(n.labels.length-1)*m+","+(a-40-e/v*p*l)).join(" L ")+" L "+t+","+o+" Z"};return o.createElement("svg",{width:i,height:a},o.createElement("line",Object.assign({x1:50,y1:a-40,x2:i-20,y2:a-40},In,null==g?void 0:g.axis)),o.createElement("line",Object.assign({x1:50,y1:20,x2:50,y2:a-40},In,null==g?void 0:g.axis)),n.labels.map((e,t)=>o.createElement("text",Object.assign({key:"x-label-"+t,x:50+t/(n.labels.length-1)*m,y:a-40+20,textAnchor:"middle"},Sn,null==g?void 0:g.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"},Sn,null==g?void 0:g.axisLabel),e.toFixed(0)),s&&o.createElement("line",Object.assign({x1:50,y1:r,x2:i-20,y2:r},jn,null==g?void 0:g.grid)))}),n.series.map((e,t)=>o.createElement(o.Fragment,{key:"series-"+t},o.createElement("path",Object.assign({d:f(e.data),fill:e.color?h(e.color):"black",opacity:.1},null==g?void 0:g.area)),o.createElement("path",Object.assign({d:x(e.data),stroke:e.color?h(e.color):"black"},zn,null==g?void 0:g.line)),e.data.map((r,i)=>o.createElement("circle",Object.assign({key:"point-"+t+"-"+i,cx:50+i/(n.labels.length-1)*m,cy:a-40-r/v*p*l,fill:e.color,onMouseEnter:t=>{c(t.clientX,t.clientY,e.name+": "+r)},onMouseLeave:u,onClick:()=>{d&&d(e.name,i)}},Hn,null==g?void 0:g.point))))))},Bn=e=>{var{dataPoints:n,width:i,height:a,animationProgress:l,isDonut:s=!1,onSliceClick:d,showTooltip:c,hideTooltip:u,views:g}=e,{getColor:h}=r.useTheme(),m=Math.min(i,a)/2*.8,p=i/2,v=a/2,b=s?.6*m:0,x=t.useMemo(()=>n.reduce((e,t)=>e+t.value,0),[n]),f=t.useMemo(()=>{for(var e=[],t=-Math.PI/2,o=0;o<n.length;o++){var r,i=n[o].value/x,a=2*i*Math.PI*l,d=t+a,c=p+Math.cos(t)*m,u=v+Math.sin(t)*m,g=p+Math.cos(d)*m,f=v+Math.sin(d)*m,w=p+Math.cos(t)*b,E=v+Math.sin(t)*b,y=p+Math.cos(d)*b,C=v+Math.sin(d)*b,k=a>Math.PI?1:0;r=s?["M "+c+" "+u,"A "+m+" "+m+" 0 "+k+" 1 "+g+" "+f,"L "+y+" "+C,"A "+b+" "+b+" 0 "+k+" 0 "+w+" "+E,"Z"].join(" "):["M "+p+" "+v,"L "+c+" "+u,"A "+m+" "+m+" 0 "+k+" 1 "+g+" "+f,"Z"].join(" ");var j=t+a/2,I=.7*m,S=p+Math.cos(j)*I,O=v+Math.sin(j)*I,z=(100*i).toFixed(1)+"%",H=h(n[o].color||bn[o%bn.length]);e.push({path:r,color:H,label:n[o].label,value:n[o].value,percentage:z,labelX:S,labelY:O,startAngle:t,endAngle:d,index:o}),t=d}return e},[n,x,m,p,v,b,l,s]);return o.createElement("svg",{width:i,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=>{c(t.clientX,t.clientY,e.label+": "+e.value+" ("+e.percentage+")")},onMouseLeave:u,onClick:()=>{d&&d(n[e.index],e.index)}},Mn,null==g?void 0:g.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"}))},Pn=["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"],_n=e=>{var{type:n,data:i,dataPoints:a,title:l,showLegend:s=!0,legendPosition:d="bottom",showGrid:c=!0,showTooltips:u=!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:k,loadingIndicator:j,errorIndicator:I,noDataIndicator:S,"aria-label":O}=e,z=h(e,Pn),{animationProgress:H,tooltip:M,containerRef:T,processedData:R,showTooltip:D,hideTooltip:W,getChartDimensions:L}=(e=>{var{data:o,dataPoints:r,animated:n=!0,animationDuration:i=500,showTooltips:a=!0}=e,[l,s]=t.useState(n?0:1),[d,c]=t.useState({visible:!1,x:0,y:0,content:""}),u=t.useRef(null),g=t.useRef(null);t.useEffect(()=>{if(n){var e=Date.now(),t=()=>{var o=Date.now()-e,r=Math.min(o/i,1);s(r),r<1&&(u.current=requestAnimationFrame(t))};return u.current=requestAnimationFrame(t),()=>{u.current&&cancelAnimationFrame(u.current)}}s(1)},[n,i]);var h=t.useCallback(()=>o?Object.assign({},o,{series:o.series.map((e,t)=>Object.assign({},e,{color:e.color||bn[t%bn.length]}))}):r?r.map((e,t)=>Object.assign({},e,{color:e.color||bn[t%bn.length]})):null,[o,r]),m=t.useCallback((e,t,o)=>{a&&c({visible:!0,x:e,y:t,content:o})},[a]),p=t.useCallback(()=>{c(e=>Object.assign({},e,{visible:!1}))},[]),v=t.useCallback(()=>{if(!g.current)return{width:0,height:0};var{width:e,height:t}=g.current.getBoundingClientRect();return{width:e,height:t}},[]);return{animationProgress:l,tooltip:d,containerRef:g,processedData:h,showTooltip:m,hideTooltip:p,getChartDimensions:v}})({data:i,dataPoints:a,animated:g,animationDuration:m,showTooltips:u}),B=R(),{width:P,height:_}=L(),A=b||P,F=x||(p?P/v:_),N=()=>{if(!s||!B)return null;var e=[];return"pie"===n||"donut"===n?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},wn,null==f?void 0:f.legend),e.map((e,t)=>o.createElement(r.View,Object.assign({key:"legend-"+t},En,null==f?void 0:f.legendItem),o.createElement(r.View,Object.assign({backgroundColor:e.color},yn)),o.createElement(V,Object.assign({},Cn),e.name||e.label)))):null},U=!C&&!y&&!k;return o.createElement(r.View,Object.assign({ref:T,role:"region","aria-label":null!=O?O:"string"==typeof l?l:"Chart","aria-busy":y},xn,null==f?void 0:f.container,z),l&&o.createElement(V,Object.assign({},fn),l),U&&"top"===d&&N(),o.createElement(r.View,Object.assign({flex:1,width:"100%",position:"relative"},null==f?void 0:f.chart),U&&(()=>{if(!B)return null;switch(n){case"bar":return o.createElement(Vn,{data:B,width:A,height:F,animationProgress:H,showGrid:c,onBarClick:E,showTooltip:D,hideTooltip:W,views:f});case"line":case"area":return o.createElement(Ln,{data:B,width:A,height:F,animationProgress:H,showGrid:c,onPointClick:E,showTooltip:D,hideTooltip:W,views:f});case"pie":case"donut":return o.createElement(Bn,{dataPoints:B,width:A,height:F,animationProgress:H,isDonut:"donut"===n,onSliceClick:w,showTooltip:D,hideTooltip:W,views:f});default:return null}})(),y?o.createElement(r.View,Object.assign({},Rn,null==f?void 0:f.loadingOverlay),j||o.createElement(r.Center,null,o.createElement(Tr,{size:"lg"}))):null,C?o.createElement(r.View,Object.assign({},Dn,null==f?void 0:f.errorOverlay),I||o.createElement(V,{fontWeight:"medium"},"string"==typeof C?C:"An error occurred")):null,k?o.createElement(r.View,Object.assign({},Wn,null==f?void 0:f.noDataOverlay),S||o.createElement(V,null,"string"==typeof k?k:"No data available")):null),U&&"bottom"===d&&N(),u&&M.visible?o.createElement(r.View,Object.assign({position:"fixed",left:M.x+"px",top:M.y-40+"px"},kn,null==f?void 0:f.tooltip),M.content):null)},An=["title","description","acceptButtonText","customizeButtonText","position","variant","onAccept","onCustomize","views","showCustomizeButton","cookieExpiration","themeMode"],Fn=e=>{var{title:n="Nous utilisons des cookies",description:i="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:c,onCustomize:u,views:g,showCustomizeButton:m=!0,cookieExpiration:p=365,themeMode:v}=e,b=h(e,An),{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),[n,i]=t.useState(null);return t.useEffect(()=>{var e=localStorage.getItem("app-studio-cookie-consent");i(null!==e&&"true"===e)},[]),{isHovered:o,setIsHovered:r,hasConsent:n,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()),i(!0)})()},resetConsent:()=>{localStorage.removeItem("app-studio-cookie-consent"),localStorage.removeItem("app-studio-cookie-consent-expires"),i(!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"},n&&o.createElement(r.Text,Object.assign({fontWeight:"bold",fontSize:18,color:"color.black"},null==g?void 0:g.title),n),i&&o.createElement(r.Text,Object.assign({fontSize:14,color:"color.black"},null==g?void 0:g.description),i),o.createElement(r.Horizontal,Object.assign({gap:12,justifyContent:"flex-end",marginTop:8},null==g?void 0:g.buttonGroup),m&&o.createElement(Br,Object.assign({variant:"outline",onClick:()=>{u&&u()},size:"sm"},null==g?void 0:g.customizeButton),l),o.createElement(Br,Object.assign({variant:"primary",onClick:()=>{E(),c&&c()},size:"sm"},null==g?void 0:g.acceptButton),a))))},Nn={sm:{padding:"6px 8px",fontSize:"14px",minWidth:"160px"},md:{padding:"8px 12px",fontSize:"16px",minWidth:"180px"},lg:{padding:"10px 16px",fontSize:"18px",minWidth:"200px"}},Un={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"}},Gn={hover:{backgroundColor:"color.gray.100"},active:{backgroundColor:"color.gray.200"},disabled:{opacity:.5,cursor:"not-allowed"}},Yn=["children","disableNativeContextMenu","asChild","isDisabled","views"],Kn=["items","children","position","side","align","views","style"],Xn=["item","children","onSelect","isDisabled","views"],Zn=["views"],qn=["views"],Jn=["children","items","size","variant","disableNativeContextMenu","views","themeMode"],Qn=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:()=>{}}),$n=e=>{var{children:t,value:r}=e;return o.createElement(Qn.Provider,{value:r},t)},ei=()=>{var e=t.useContext(Qn);if(!e)throw new Error("useContextMenuContext must be used within a ContextMenuProvider");return e},ti=e=>{var{children:t,disableNativeContextMenu:n=!0,asChild:i=!1,isDisabled:a=!1,views:l}=e,s=h(e,Yn),{triggerRef:d,contentId:c,openMenu:u}=ei(),g=Object.assign({ref:d,onContextMenu:e=>{if(!a)if(n&&e.preventDefault(),u)u(e);else{var{setIsOpen:t,setPosition:o}=ei();o({x:e.clientX,y:e.clientY}),t(!0)}},"aria-controls":c,"aria-haspopup":"menu","data-disabled":a?"":void 0},i&&o.isValidElement(t)&&void 0===t.props.isDisabled&&{isDisabled:a},null==l?void 0:l.container,s);if(i&&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)},oi=e=>{var{items:n,children:i,position:a,side:l="right",align:s="start",views:d,style:c}=e,u=h(e,Kn),{isOpen:g,position:m,contentRef:p,contentId:v,variant:b}=ei(),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,n,i,a,l){void 0===a&&(a="right"),void 0===l&&(l="start");var s=e,d=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?d=t-r:"bottom"===a?d=t:"left"!==a&&"right"!==a||("center"===l?d=t-r/2:"end"===l&&(d=t-r)),s+o>n&&(s=n-o),s<0&&(s=0),d+r>i&&(d=i-r),d<0&&(d=0),{x:s,y:d}}(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"},c)},Un[b],null==d?void 0:d.menu,null==d?void 0:d.content,u),n&&n.map((e,t)=>e.divider?o.createElement(ni,{key:"divider-"+t,views:d}):o.createElement(ri,{key:e.id,item:e,views:d})),i):null},ri=e=>{var{item:n,children:i,onSelect:a,isDisabled:l=!1,views:s}=e,d=h(e,Xn),{activeSubmenuId:c,setActiveSubmenuId:u,size:g,closeMenu:m}=ei();if(n){var[p,v]=t.useState(!1),b=n.items&&n.items.length>0,x=c===n.id,f=t.useRef(null),[w,E]=t.useState({x:0,y:0}),y=n.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},Nn[g],{_hover:y?{}:Gn.hover,backgroundColor:p&&!y?"color.gray.100":"transparent",onMouseEnter:()=>{v(!0),b&&u(n.id)},onMouseLeave:()=>{v(!1)},onClick:()=>{y||!b&&n.onClick&&(n.onClick(),m&&m())}},null==s?void 0:s.item,d),n.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==s?void 0:s.icon),n.icon),o.createElement(r.View,{flexGrow:1},n.label),b&&o.createElement(r.View,Object.assign({marginLeft:8},null==s?void 0:s.submenuIndicator),o.createElement(To,{widthHeight:16,color:"currentColor",filled:!0})),x&&b&&o.createElement(oi,{items:n.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},Nn[g],{_hover:l?{}:Gn.hover},null==s?void 0:s.item,d),i)},ni=e=>{var{views:t}=e,n=h(e,Zn);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,n))},ii=e=>{var{children:t,items:r,size:n="md",variant:i="default",disableNativeContextMenu:a=!0,views:l}=e,s=h(e,Jn);return r&&0!==r.length?o.createElement(o.Fragment,null,o.createElement(ti,Object.assign({disableNativeContextMenu:a,views:l},s),t),o.createElement(oi,{items:r,views:l})):o.createElement(o.Fragment,null,t)},ai=["children","items","size","variant","disableNativeContextMenu","onOpenChange","views"],li=e=>{var{children:r,items:n,size:i="md",variant:a="default",disableNativeContextMenu:l=!0,onOpenChange:s,views:d}=e,c=h(e,ai),u=(e=>{var{size:r,variant:n,onOpenChange:i}=e||{},[a,l]=t.useState(!1),[s,d]=t.useState({x:0,y:0}),[c,u]=t.useState(null),g=t.useRef(null),h=t.useRef(null),p=o.useMemo(()=>m("contextmenu-content"),[]),v=t.useCallback(e=>{d({x:e.clientX,y:e.clientY}),l(!0),null==i||i(!0)},[i]),b=t.useCallback(()=>{l(!1),u(null),null==i||i(!1)},[i]);return t.useEffect(()=>{var e=e=>{h.current&&!h.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:d,activeSubmenuId:c,setActiveSubmenuId:u,size:r,variant:n,triggerRef:g,contentRef:h,contentId:p,openMenu:v,closeMenu:b}})({size:i,variant:a,onOpenChange:s}),{isOpen:g,setIsOpen:p,position:v,setPosition:b,activeSubmenuId:x,setActiveSubmenuId:f,triggerRef:w,contentRef:E,contentId:y,openMenu:C,closeMenu:k}=u;return o.createElement($n,{value:{isOpen:g,setIsOpen:p,position:v,setPosition:b,activeSubmenuId:x,setActiveSubmenuId:f,size:i,variant:a,triggerRef:w,contentRef:E,contentId:y,openMenu:C,closeMenu:k,styles:d}},o.createElement(ii,Object.assign({items:n,size:i,variant:a,disableNativeContextMenu:l,views:d},c),r))};li.Trigger=ti,li.Content=oi,li.Item=ri,li.Divider=ni,li.Separator=e=>{var{views:t}=e,n=h(e,qn);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,n))};var si=["src","color","views","themeMode"],di=["path"],ci=e=>{var{placeholder:t,isMulti:r,options:n,id:i="select-"+Math.random().toString(36).substr(2,9)}=e,a=t?r?[]:"":Array.isArray(n)&&n.length>0?n[0].value:r?[]:"",[l,s]=o.useState(!1),[d,c]=o.useState(!1),[u,g]=o.useState(a),[h,m]=o.useState(0),[p,v]=o.useState(!0);return{id:i,value:u,setValue:g,hide:p,setHide:v,isHovered:l,setIsHovered:s,isFocused:d,setIsFocused:c,highlightedIndex:h,setHighlightedIndex:m}},ui=["children","views"],gi=e=>{var{children:t,views:r={helperText:{}}}=e,n=h(e,ui);return o.createElement(V,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,n),t)},hi=["children","helperText","error","views"],mi=e=>{var{children:t,helperText:n,error:i=!1,views:a}=e,l=h(e,hi);return o.createElement(r.Vertical,Object.assign({gap:8,position:"relative",width:"100%"},l,null==a?void 0:a.container),t,!i&&n&&o.createElement(gi,Object.assign({marginTop:4},null==a?void 0:a.helperText),n),i&&o.createElement(V,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),i))},pi={default:{borderRadius:"8px"},sharp:{borderRadius:0},rounded:{borderRadius:"8px"},pillShaped:{borderRadius:"9999px"}},vi={xs:"12px",sm:"14px",md:"16px",lg:"18px",xl:"20px"},bi={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"},fi={paddingTop:"12px",paddingBottom:"12px",paddingLeft:"16px",paddingRight:"16px"},wi=["label","shadow","children","value","size","shape","variant","error","showLabel","isFocused","isHovered","isDisabled","isReadOnly","views"],Ei=e=>{var{shadow:t,children:n,size:i="md",shape:a="default",variant:l="default",error:s=!1,showLabel:d=!1,isFocused:c=!1,isHovered:u=!1,isDisabled:g=!1,isReadOnly:m=!1,views:p={pickerBox:{}}}=e,v=h(e,wi);return o.createElement(r.Horizontal,Object.assign({gap:8,width:"100%",display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:"space-between",marginBottom:2,borderStyle:"solid",borderColor:s?"color.red.500":!u&&!c||g?"color.gray.300":"theme.primary",backgroundColor:"color.white",fontSize:r.Typography.fontSizes[i],cursor:g?"not-allowed":m?"auto":"text",opacity:g?.6:1,transition:"all 0.2s ease"},d?xi:fi,t,pi[a],bi[l],p.box,v),n)},yi=["children"],Ci=e=>{var{children:t}=e,n=h(e,yi);return o.createElement(r.Center,Object.assign({gap:10,right:10,zIndex:500,flexWrap:"nowrap"},n),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}},ji=["children","heading","isItalic","isUnderlined","isStriked","weight","size","dropDown"],Ii=e=>{var{children:t,heading:n,isItalic:i=!1,isUnderlined:a=!1,isStriked:l=!1,weight:s="normal",size:d="sm"}=e,c=h(e,ji);return o.createElement(r.Element,Object.assign({as:"label",width:"100%",fontSize:d,fontStyle:i?"italic":"normal",fontWeight:r.Typography.fontWeights[s],textDecoration:l?"line-through":a?"underline":"none"},n?ki[n]:{},c),t)},Si=e=>o.createElement(Ii,Object.assign({},e)),Oi=["children","size","error","color","views","helperText"],zi=e=>{var{children:t,size:r="md",error:n=!1,color:i="theme.primary",views:a={label:{}}}=e,l=h(e,Oi);return o.createElement(Si,Object.assign({top:0,zIndex:-10,position:"absolute",fontSize:vi[r],lineHeight:vi[r],letterSpacing:"-0.01em",whiteSpace:"nowrap",color:n?"color.red.500":i,transition:"all 0.2s ease"},a.label,l),t)},Hi=["children"],Mi=e=>{var{children:t}=e,n=h(e,Hi);return o.createElement(r.Vertical,Object.assign({width:"100%",maxWidth:"100%",position:"relative"},n),t)},Ti={xs:12,sm:16,md:20,lg:24,xl:28},Ri=["isHovered","setIsHovered","option","size","callback","style"],Di=["id","name","value","onChange","isMulti","isDisabled","isReadOnly","options"],Wi=["option","size","removeOption"],Vi=["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"],Li=e=>{var{isHovered:t,setIsHovered:n,option:i,size:a="md",callback:l=(()=>{}),style:s}=e,d=h(e,Ri),c=()=>n(!t);return o.createElement(r.Element,Object.assign({as:"li",margin:0,paddingVertical:8,paddingHorizontal:8,listStyleType:"none",cursor:"pointer",onMouseEnter:c,onMouseLeave:c,onClick:e=>((e,t)=>{e.stopPropagation(),e.preventDefault(),"function"==typeof l&&l(t)})(e,i.value),backgroundColor:t?"color.gray.100":"transparent",borderRadius:"4px",transition:"all 0.15s ease"},d),o.createElement(V,Object.assign({fontSize:r.Typography.fontSizes[a],fontWeight:"400",lineHeight:"1.5"},s),i.label))},Bi=e=>{var t,{size:n="md",views:i={field:{},text:{}},value:a,isDisabled:l,placeholder:s,removeOption:d=(()=>{}),options:c}=e,u=Object.assign({margin:0,width:"95%",height:"100%",border:"none",paddingVertical:4,paddingHorizontal:0,fontSize:r.Typography.fontSizes[n],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"},i.field,i.text),g=c.length>0&&c.find(e=>e.value===a);return o.createElement(V,Object.assign({},u),(""===a||Array.isArray(a)&&0===a.length)&&s?s:o.createElement(o.Fragment,null,"string"==typeof a?null!=(t=g&&g.label)?t:a:Array.isArray(a)&&a.length>0?o.createElement(r.Horizontal,{gap:6},a.map(e=>o.createElement(Ai,{key:e,option:e,removeOption:d}))):o.createElement("span",null,a)))},Pi=e=>{var{id:t,name:n,value:i,onChange:a,isMulti:l=!1,isDisabled:s=!1,isReadOnly:d=!1,options:c=[]}=e,u=h(e,Di);return o.createElement(r.Element,Object.assign({id:t,name:n,as:"select",opacity:0,width:0,height:0,position:"absolute",value:i,disabled:s,readOnly:d,onChange:e=>{a&&a(e)},multiple:l},u),c.length>0&&c.map(e=>o.createElement("option",{key:e.value,value:e.value},e.label)))},_i=e=>{var{size:t,views:n={},options:i,callback:a=(()=>{}),highlightedIndex:l,setHighlightedIndex:s}=e,d=(()=>{var[e,t]=o.useState(!1);return{isHovered:e,setIsHovered:t}})(),c=e=>a(e);return o.createElement(r.Element,Object.assign({as:"ul",role:"dropdown",width:"100%",display:"flex",flexDirection:"column",backgroundColor:"color.white",transition:"all 0.2s ease",margin:0,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"}}},null==n?void 0:n.dropDown),i&&i.length>0&&i.map((e,r)=>o.createElement(Li,Object.assign({key:e.value,size:t,style:n.text,option:e,callback:c,backgroundColor:r===l?"color.gray.100":"transparent",onMouseEnter:()=>s(r)},d))))},Ai=e=>{var{option:t,size:n="md",removeOption:i=(()=>{})}=e,a=h(e,Wi);return o.createElement(r.Horizontal,Object.assign({gap:8,padding:8,alignItems:"center",borderRadius:"6px",backgroundColor:"color.gray.200",fontSize:r.Typography.fontSizes[n],onClick:e=>e.stopPropagation(),transition:"all 0.2s ease"},a),o.createElement(V,{size:n,fontWeight:"500"},t),o.createElement(Ht,{role:"close-button",color:"inherit",widthHeight:Ti[n],onClick:()=>i(t),transition:"all 0.2s ease",_hover:{opacity:.7}}))},Fi=e=>{var{id:n,name:i,label:a,value:l,placeholder:s,helperText:d,hide:c=!1,error:u=!1,isMulti:g=!1,isFocused:m=!1,isHovered:p=!1,isDisabled:v=!1,isReadOnly:b=!1,options:x=[],shadow:f={},size:w="md",shape:E="default",variant:y="default",views:C={text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}},onChange:k=(()=>{}),setHide:j=(()=>{}),setValue:I=(()=>{}),setIsHovered:S=(()=>{}),setIsFocused:O=(()=>{}),setHighlightedIndex:z,highlightedIndex:H}=e,M=h(e,Vi);o.useEffect(()=>{var e=()=>j(!0);return document.addEventListener("closeAllSelects",e),()=>document.removeEventListener("closeAllSelects",e)},[j]),o.useEffect(()=>{var e=e=>{e.target.closest("#"+n)||c||j(!0)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[n,c,j]);var T=!(!m||!a),R=()=>S(!p),D=t.useCallback(e=>{if(j(!0),document.dispatchEvent(new Event("closeAllSelects")),g&&Array.isArray(l)){if(!l.includes(e)){var t=[...l,e];I(t),k&&k(e)}}else I(e),k&&k(e);O(!0)},[g,l,j,I,k,O]);return o.createElement(mi,{style:{position:"relative",width:"100%",display:"inline-block"},id:n,role:"SelectBox",helperText:d,error:u,views:C,onClick:e=>{e.stopPropagation(),v||b||(e=>{document.dispatchEvent(new Event("closeAllSelects")),e&&e.stopPropagation&&e.stopPropagation();var t=!c;j(t),O(!t)})(e)}},o.createElement(Ei,{label:a,size:w,error:u,shape:E,views:C,shadow:f,variant:y,value:l,color:"theme.primary",isHovered:p,isDisabled:v,isReadOnly:b,isFocused:m,showLabel:T,onMouseEnter:R,onMouseLeave:R},o.createElement(Mi,null,T&&o.createElement(zi,Object.assign({htmlFor:n,color:"theme.primary",error:u},C),a),o.createElement(Pi,Object.assign({id:n,name:i,options:x,onChange:k,value:l,isDisabled:v,isReadOnly:b,isMulti:g,onFocus:()=>O(!0)},M)),o.createElement(Bi,{options:x,size:w,views:C,value:l,isDisabled:v,placeholder:s,removeOption:e=>{if(Array.isArray(l)&&l.includes(e)){var t=l.filter(t=>t!==e);I(0===t.length?[]:t)}}})),o.createElement(Ci,null,!b&&!v&&o.createElement(o.Fragment,null,o.createElement(yt,c?{color:"inherit",widthHeight:Ti[w],style:C.icon,orientation:"down"}:{color:"inherit",orientation:"up",widthHeight:Ti[w],style:C.icon})))),!c&&x.length>0&&o.createElement(r.Element,{onClick:e=>e.stopPropagation(),style:{position:"absolute",top:"calc(100% + 4px)",left:0,right:0,zIndex:1e3}},o.createElement(_i,{size:w,views:Object.assign({},C,{dropDown:{borderRadius:"6px",border:"1px solid color.gray.200",boxShadow:"0 8px 16px rgba(0,0,0,0.1)",padding:"8px",maxHeight:"240px",overflowY:"auto"}}),options:x,callback:D,highlightedIndex:H,setHighlightedIndex:z})))},Ni=e=>{var{isChecked:r}=e,[n,i]=o.useState(!1),[a,l]=o.useState(r||!1),[s,d]=o.useState(r||!1);return t.useEffect(()=>{void 0!==r&&(l(r),d(r))},[r]),{isHovered:n,setIsHovered:i,on:a,setOn:l,value:s,setValue:d}},Ui={xs:{height:"8px",width:"8px"},sm:{height:"12px",width:"12px"},md:{height:"16px",width:"16px"},lg:{height:"20px",width:"20px"},xl:{height:"24px",width:"24px"}},Gi={xs:{height:"16px",width:"36px"},sm:{height:"20px",width:"44px"},md:{height:"24px",width:"52px"},lg:{height:"28px",width:"60px"},xl:{height:"32px",width:"68px"}},Yi={xs:{paddingVertical:4,paddingHorizontal:2},sm:{paddingVertical:4,paddingHorizontal:2},md:{paddingVertical:4,paddingHorizontal:4},lg:{paddingVertical:4,paddingHorizontal:4},xl:{paddingVertical:4,paddingHorizontal:4}},Ki=["id","name","label","inActiveChild","isChecked","activeChild","labelPosition","shadow","size","value","isHovered","isDisabled","isReadOnly","on","setOn","onChange","setValue","setIsHovered","helperText","views"],Xi=e=>o.createElement(r.Input,Object.assign({type:"checkbox"},e)),Zi=e=>{var{id:t,name:n,label:i,inActiveChild:a,activeChild:l,labelPosition:s="right",shadow:d={},size:c="sm",value:u=!1,isHovered:g=!1,isDisabled:m=!1,isReadOnly:p=!1,setOn:v,onChange:b,setValue:x=(()=>{}),setIsHovered:f=(()=>{}),views:w={slider:{},circle:{},label:{}}}=e,E=h(e,Ki),y=()=>f(!g),C={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"},w.label)};return o.createElement(Si,Object.assign({htmlFor:t,onMouseEnter:y,onMouseLeave:y},C.container,E),o.createElement(Xi,Object.assign({id:t,name:n,opacity:0,width:0,height:0,checked:u,onChange:e=>{if(!p&&!m){var t=e.target.checked;x(t),v(t),b&&b(t)}},disabled:m,readOnly:p},E)),"left"===s&&i&&o.createElement(V,{fontWeight:"500",color:m?"color.gray.400":"color.gray.700",transition:"all 0.2s ease"},i),o.createElement(r.View,Object.assign({display:"flex",alignItems:"center",justifyContent:u?l?"space-between":"flex-end":a?"space-between":"flex-start",marginBottom:4,borderRadius:"9999px",backgroundColor:m?"color.gray.200":u?g?"color.blue.600":"theme.primary":g?"color.gray.400":"color.gray.300",overflow:"hidden",cursor:"pointer",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},d,Yi[c],Gi[c],w.slider),l&&u&&o.createElement(r.View,{marginLeft:8,marginRight:4,transition:"all 0.3s ease",display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},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)",zIndex:1},Ui[c],w.circle)),a&&!u&&o.createElement(r.View,{marginRight:8,marginLeft:4,transition:"all 0.3s ease",display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},a)),"right"===s&&i&&o.createElement(V,{fontWeight:"500",color:m?"color.gray.400":"color.gray.700",transition:"all 0.2s ease"},i))},qi=e=>{var{label:o,placeholder:r,value:n}=e,[i,a]=t.useState(null!=o?o:r),[l,s]=t.useState(!1),[d,c]=t.useState(n||""),[u,g]=t.useState(!1);return t.useMemo(()=>{a(u&&!d?null!=r?r:"":null!=o?o:r)},[d,u,o,r]),{hint:i,setHint:a,isHovered:l,setIsHovered:s,value:d,setValue:c,isFocused:u,setIsFocused:g}},Ji=["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"],Qi=e=>{var{id:t,name:n,hint:i,error:a,value:l,label:s,shadow:d,helperText:c,size:u="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:k=(()=>{}),onChange:j,onFocus:I,setHint:S=(()=>{}),setValue:O=(()=>{}),setIsFocused:z=(()=>{}),setIsHovered:H=(()=>{}),views:M={label:{},helperText:{}}}=e,T=h(e,Ji),R=!(!v||!s),D=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[u],lineHeight:1.5*r.Typography.fontSizes[u],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),W=()=>H(!p);return o.createElement(mi,Object.assign({helperText:c,error:a,views:M},T),o.createElement(Ei,Object.assign({label:s,size:u,error:a,shape:g,views:M,shadow:d,variant:m,value:l,color:"theme.primary",isHovered:p,isDisabled:f,isReadOnly:x,isFocused:v,showLabel:R,onMouseEnter:W,onMouseLeave:W},null==M?void 0:M.content),o.createElement(Mi,Object.assign({},null==M?void 0:M.warper),R&&o.createElement(zi,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:n,rows:y,cols:C,value:l,readOnly:x,disabled:f,autoFocus:w,editable:!!b.toString(),placeholder:i,onBlur:e=>{k(e),z(!1)},onFocus:()=>{z(!0),I&&I()},multiline:!!E.toString(),onChange:e=>{"string"==typeof e?(O(e),j&&j(e)):(O(e.target.value),j&&j(e.target.value))}},D,null==M?void 0:M.textarea)))))},$i=e=>{var{label:o,placeholder:r,value:n}=e,[i,a]=t.useState(null!=o?o:r),[l,s]=t.useState(!1),[d,c]=t.useState(!1),[u,g]=t.useState(n);return t.useMemo(()=>{a(l&&!u?null!=r?r:"":null!=o?o:r)},[u,l,o,r]),{hint:i,setHint:a,isFocused:l,setIsFocused:s,isHovered:d,setIsHovered:c,setValue:g,value:u}},ea=["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"],ta=e=>o.createElement(r.Input,Object.assign({type:"text"},e)),oa=e=>{var{id:t,name:n,label:i,hint:a,value:l,onChange:s,left:d,right:c,helperText:u,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:k=!0,isAutoFocus:j=!1,setHint:I=(()=>{}),setIsFocused:S=(()=>{}),setIsHovered:O=(()=>{}),setValue:z=(()=>{}),onClick:H=(()=>{}),onFocus:M,onBlur:T=(()=>{}),themeMode:R}=e,D=h(e,ea),{getColor:W,themeMode:V}=r.useTheme(),L=W("color.blueGray.700",{themeMode:R||V}),B=!(!w||!i),P=Object.assign({margin:0,paddingVertical:4,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),_=()=>O(!E);return o.createElement(mi,{helperText:u,error:f,views:p},o.createElement(Ei,{label:i,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:_,onMouseLeave:_},d,o.createElement(Mi,null,B&&o.createElement(zi,Object.assign({htmlFor:t,color:"theme.primary",error:f},p),i),o.createElement(ta,Object.assign({id:t,name:n,readOnly:C,disabled:y,autoFocus:j,placeholder:a,onFocus:()=>{S(!0),M&&M()},onBlur:e=>{T&&T(e),S(!1)},autoComplete:"off"},P,D,{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}))),k&&l&&!C&&!y&&o.createElement(Ci,null,o.createElement(Ht,{widthHeight:r.Typography.fontSizes[v],color:L,onClick:()=>{z(""),s&&(T({target:{name:n}}),g&&g(""),s&&s("")),"undefined"==typeof document&&g&&g("")}})),c))},ra=e=>{var{defaultIsSelected:t=!1}=e,[r,n]=o.useState(!1),[i,a]=o.useState(t);return{isHovered:r,setIsHovered:n,isSelected:i,setIsSelected:a}},na={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"}},ia={xs:10,sm:14,md:16,lg:20,xl:24},aa={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"}},la={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"}}},sa=["id","icon","name","label","isChecked","onChange","onValueChange","shadow","labelPosition","size","error","isSelected","isHovered","isDisabled","isReadOnly","isIndeterminate","defaultIsSelected","setIsSelected","setIsHovered","views","infoText","helperText"],da=e=>{var{id:t,icon:n,label:i,isChecked:a,onChange:l,onValueChange:s,shadow:d={},labelPosition:c="right",size:u="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,k=h(e,sa),j=()=>E(!p),I=x?"indeterminate":a||m?"selected":"unselected",S=g?la.error[I]:v?la.disabled[I]:p?la.hover[I]:{},O={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({},aa[I],S,{borderRadius:"4px"},na[u],{transition:"all 0.2s ease"},d,y.checkbox)};return o.createElement(Si,Object.assign({htmlFor:t,as:"div",onClick:()=>{b||v||(w&&w(!m),l&&l(!a),s&&s(!a))},onMouseEnter:j,onMouseLeave:j,size:r.Typography.fontSizes[u]},O.container,k),o.createElement(r.Vertical,{gap:8}," ",o.createElement(r.Horizontal,{gap:12,alignItems:"center"}," ","left"===c&&i&&o.createElement(V,Object.assign({size:u,fontWeight:"500"},null==y?void 0:y.label),i),o.createElement(r.Center,Object.assign({},O.checkbox),x?o.createElement(Vt,{widthHeight:ia[u],color:"white",transition:"all 0.2s ease"}):(a||m)&&(null!=n?n:o.createElement(Lo,{widthHeight:ia[u],color:"white",transition:"all 0.2s ease"}))),"right"===c&&i&&o.createElement(V,Object.assign({size:u,fontWeight:"500"},null==y?void 0:y.label),i)),C&&o.createElement(V,Object.assign({marginLeft:"left"===c?0:36,color:"color.gray.500",size:"sm",fontWeight:"400",lineHeight:"1.5"},null==y?void 0:y.infoText),C)),g&&o.createElement(V,{size:"xs",marginTop:4,marginHorizontal:0,color:"color.red.500",fontWeight:"500",transition:"all 0.2s ease"},g))},ca=[{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"}],ua=e=>{var{placeholder:t}=e,[r,n]=o.useState(ca),[i,a]=o.useState(null!=t?t:ca[0].name),[l,s]=o.useState(!0),[d,c]=o.useState(!1),[u,g]=o.useState(!1);return{hide:l,setHide:s,newOptions:r,setNewOptions:n,isHovered:u,setIsHovered:g,isFocused:d,setIsFocused:c,value:i,setValue:a}},ga={xs:8,sm:10,md:12,lg:14,xl:16},ha=["size"],ma=["size"],pa=["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"],va=e=>{var t=h(e,ha);return o.createElement(r.Element,Object.assign({as:"ul"},t))},ba=e=>o.createElement(r.Input,Object.assign({type:"country"},e)),xa=e=>{var t=h(e,ma);return o.createElement(r.Element,Object.assign({as:"li"},t))},fa=e=>{var{option:n,size:i="md",callback:a=(()=>{}),views:l={text:{}}}=e,[s,d]=t.useState(!1),c=()=>d(!s);return o.createElement(xa,Object.assign({margin:0,role:"DropDownItem",listStyleType:"none",fontWeight:"normal",paddingVertical:6,paddingHorizontal:12,onMouseEnter:c,onMouseLeave:c,onClick:e=>{e&&e.stopPropagation&&e.stopPropagation(),a(n)},fontSize:r.Typography.fontSizes[i],backgroundColor:s?"trueGray.100":"transparent"},l.text),n)},wa=e=>{var{size:t,views:r={dropDown:{}},options:n=[],callback:i=(()=>{})}=e,a=e=>i(e);return o.createElement(va,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),n.map(e=>o.createElement(fa,Object.assign({key:e.code,size:t,option:e.name,callback:a},r.text))))},Ea=e=>{var{id:t,name:n,label:i,value:a,placeholder:l,helperText:s,hide:d=!1,error:c=!1,isHovered:u=!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:k=(()=>{}),setNewOptions:j=(()=>{}),setIsHovered:I=(()=>{}),setIsFocused:S=(()=>{}),setValue:O=(()=>{}),views:z={text:{},icon:{},label:{},dropDown:{},helperText:{}},themeMode:H}=e,M=h(e,pa),{getColor:T,themeMode:R}=r.useTheme(),D=T("color.blueGray.700",{themeMode:H||R}),W=()=>I(!u),V=!(!i||!g&&!a),L=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(mi,{helperText:s,error:c,views:z,onClick:()=>{p||v||k(!d)}},o.createElement(Ei,{label:i,size:f,error:c,shape:E,views:z,shadow:b,variant:w,value:a,color:"theme.primary",isHovered:u,isDisabled:p,isReadOnly:v,isFocused:g,showLabel:V,onMouseEnter:W,onMouseLeave:W},o.createElement(Mi,null,V&&o.createElement(zi,Object.assign({htmlFor:t,color:"theme.primary",error:c},z),i),o.createElement(ba,Object.assign({id:t,name:n,placeholder:l,readOnly:v,disabled:p,autoFocus:m,onBlur:e=>{C(e),S(!1)},onFocus:()=>S(!0)},L,M,{value:a,onChange:e=>{var t=e.target.value,o=ca.filter(e=>e.name.toLowerCase().startsWith(t.toLowerCase()));d&&k(!1),j(o),y&&y(t)}}))),o.createElement(Ci,null,o.createElement(yt,d?{orientation:"down",widthHeight:ga[f],color:D,style:z.icon}:{orientation:"up",widthHeight:ga[f],color:D,style:z.icon}))),!d&&o.createElement(wa,{size:f,views:z,options:x,callback:e=>{k(!d),O(e),y&&y(e)}}))},ya=()=>{var[e,t]=o.useState(!1),[r,n]=o.useState(!1),[i,l]=o.useState(a(new Date,"yyyy-MM-dd"));return{date:i,setDate:l,isHovered:e,setIsHovered:t,isFocused:r,setIsFocused:n}},Ca=["id","icon","name","label","date","children","helperText","shadow","size","variant","shape","views","error","isHovered","isFocused","isDisabled","isReadOnly","setDate","setIsFocused","setIsHovered","onChange","onChangeText"],ka=e=>o.createElement(r.Input,Object.assign({type:"date"},e)),ja=e=>{var{id:t,name:n,label:i,date:a,helperText:l,shadow:s={},size:d="md",variant:c="default",shape:u="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,k=h(e,Ca),j=!(!v||!i),I=()=>E(!p),S=e=>{"string"==typeof e?(f(e),C&&C(e)):(f(e.target.value),y&&y(e.target.value))},O=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(mi,{helperText:l,error:m,views:g},o.createElement(Ei,{label:i,size:d,error:m,shape:u,views:g,shadow:s,color:"theme.primary",variant:c,value:a,isHovered:p,isDisabled:b,isReadOnly:x,isFocused:v,showLabel:j,onMouseEnter:I,onMouseLeave:I},o.createElement(Mi,null,j&&o.createElement(zi,Object.assign({htmlFor:t,color:"theme.primary",error:m},g),i),o.createElement(ka,Object.assign({id:t,name:n,onFocus:()=>w(!0),disabled:b,readOnly:x},O,k,C&&{onChangeText:S},{onChange:S})))))},Ia=e=>{var o=$i(e),[r,n]=t.useState(!1);return Object.assign({isVisible:r,setIsVisible:n},e,o)},Sa=["visibleIcon","hiddenIcon"],Oa=["isVisible","setIsVisible"],za=(e,o,r)=>{var[n,i]=t.useState(e),[a,l]=t.useState(o?{value:o,label:o}:e[0]),[s,d]=t.useState(0),[c,u]=t.useState(null!=r?r:""),[g,h]=t.useState(!1);return{filteredItems:n,setFilteredItems:i,selectedItem:a,setSelectedItem:l,highlightedIndex:s,setHighlightedIndex:d,searchQuery:c,setSearchQuery:u,isDropdownVisible:g,setIsDropdownVisible:h}},Ha=["placeholder","items","showTick","onSelect","searchEnabled","left","right","label","filteredItems","setSelectedItem","selectedItem","highlightedIndex","setHighlightedIndex","searchQuery","setSearchQuery","setFilteredItems","views","isDropdownVisible","setIsDropdownVisible"],Ma=e=>{var{placeholder:n,items:i,showTick:a=!0,onSelect:l,searchEnabled:s=!0,left:d,right:c,label:u,filteredItems:g,setSelectedItem:m,selectedItem:p,highlightedIndex:v,setHighlightedIndex:b,searchQuery:x,setSearchQuery:f,setFilteredItems:w,views:E,isDropdownVisible:y,setIsDropdownVisible:C}=e,k=h(e,Ha);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%"},k),u&&o.createElement(V,{views:null==E?void 0:E.label,htmlFor:k.id},u),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(V,Object.assign({weight:"medium",flexGrow:1,color:"color.gray.800"},null==E?void 0:E.label),p.label)),c,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(oa,{id:k.id,name:k.name,width:"100%",type:"search",value:x,onChange:e=>(e=>{if(f(e),""===e)w(i);else{var t=i.filter(t=>t.label.toLowerCase().includes(e.toLowerCase()));w(t)}b(0)})(e),hint:n,isClearable:!1,left:o.createElement(Io,{widthHeight:16}),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(V,null,e.label),o.createElement(o.Fragment,null,e.icon&&e.icon,e.value===p.value&&a&&!e.icon&&o.createElement(Lo,{widthHeight:20})))))))))},Ta=["id","name","items","placeholder","searchPlaceholder"],Ra=e=>{var o,{value:r,defaultValue:n="",length:i=6,onChange:a,onChangeText:l,onComplete:s,onKeyDown:d,onKeyPress:c,pattern:u,stepValues:g,pasteTransformer:h}=e,m=void 0!==r,p=m?r:n,[v,b]=t.useState((null==p?void 0:p.slice(0,i))||""),[x,f]=t.useState(!1),[w,E]=t.useState(!1),[y,C]=t.useState(null),[k,j]=t.useState(null),I=t.useRef(null),S=t.useRef(null),O=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,i))||"")},[m,r,i,v]);var M=t.useCallback(e=>{var t=e;if(g&&g.length>0&&e){var o=parseInt(e,10);if(!isNaN(o)){for(var r=g[0],n=Math.abs(o-r),d=1;d<g.length;d++){var c=Math.abs(o-g[d]);c<n&&(n=c,r=g[d])}t=r.toString()}}b(t),a&&a(t),l&&l(t),s&&t.length===i&&s(t)},[a,l,s,i,g]),T=t.useCallback(e=>{e&&I.current!==e&&Object.defineProperty(I,"current",{value:e,writable:!0})},[]),R=t.useCallback(e=>{var t=e.currentTarget.value.slice(0,i);t.length>0&&H&&!H.test(t)?e.preventDefault():(M(t),I.current&&(I.current.value=t))},[i,H,M,I]),D=t.useCallback(()=>{if(I.current){var e,t=Math.min(I.current.value.length,i-1),o=I.current.value.length;null==(e=I.current)||e.setSelectionRange(t,o),C(t),j(o)}f(!0)},[i]),W=t.useCallback(()=>{f(!1)},[]),V=t.useCallback(e=>{d&&d(e)},[]),L=t.useCallback(e=>{c&&c(e)},[]),B=t.useCallback(e=>{var t=I.current;if(e.clipboardData&&t){var o=e.clipboardData.getData("text/plain"),r=h?h(o):o;e.preventDefault();var n=t.selectionStart||0,a=t.selectionEnd||0,l=(n!==a?v.slice(0,n)+r+v.slice(a):v.slice(0,n)+r+v.slice(n)).slice(0,i);if(!(l.length>0&&H)||H.test(l)){t.value=l,M(l),b(l);var s=Math.min(l.length,i-1),d=l.length;t.setSelectionRange(s,d),C(s),j(d)}}},[i,h,H,M,v,b]);return t.useEffect(()=>{var e=I.current,t=S.current;if(e&&t){O.current.value!==e.value&&O.current.onChange&&O.current.onChange(e.value),z.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",n,{capture:!0}),n(),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",n,{capture:!0}),r.disconnect()}}function n(){var t,o,r,n,i;if(document.activeElement!==e)return C(null),void j(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,d=null!=(n=null==e?void 0:e.maxLength)?n:0,c=null!=(i=null==e?void 0:e.value)?i:"",u=z.current.prev,g=-1,h=-1,m="none";if(0!==c.length&&null!==a&&null!==l){if(a===l&&!(a===c.length&&c.length<d))if(0===a)g=0,h=1,m="forward";else if(a===d)g=a-1,h=a,m="backward";else if(d>1&&c.length>1){var p=0;null!==u[0]&&null!==u[1]&&("backward"!=(m=a<u[1]?"backward":"forward")||u[0]===u[1]&&u[0]<d||(p=-1)),g=p+a,h=p+a+1}-1!==g&&-1!==h&&g!==h&&I.current&&I.current.setSelectionRange(g,h,m)}var v=-1!==g?g:a,b=-1!==h?h:l,x="none"!==m?m:s;C(v),j(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 n=null==(t=I.current)?void 0:t.selectionStart,i=null==(o=I.current)?void 0:o.selectionEnd,a=null==(r=I.current)?void 0:r.selectionDirection;null!==n&&null!==i&&void 0!==n&&void 0!==i&&(C(n),j(i),z.current.prev=[n,i,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:S,mirrorSelectionStart:y,mirrorSelectionEnd:k,setMirrorSelectionStart:C,setMirrorSelectionEnd:j,setInputRef:T,handleChange:R,handleFocus:D,handleBlur:W,handleKeyDown:V,handleKeyPress:L,handlePaste:B}},Da=["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"],Wa=t.createContext({slots:[],isFocused:!1,isHovering:!1});function Va(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}var La=e=>{var{id:n,name:i,label:a,value:l="",length:s=6,helperText:d,placeholder:c="",views:u={},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:k,inputRef:j,containerRef:I,mirrorSelectionStart:S,mirrorSelectionEnd:O,handlePaste:z,handleChange:H,handleFocus:M,handleBlur:T,handleKeyDown:R,setInputRef:D,onBlur:W=(()=>{}),onClick:V=(()=>{}),onFocus:L=(()=>{})}=e,B=h(e,Da);r.useTheme();var P=!!a,_=o.useMemo(()=>({slots:Array.from({length:s}).map((e,t)=>{var o,r=f&&null!==S&&null!==O&&(S===O&&t===S||t>=S&&t<O),n=void 0!==l[t]?l[t]:null;return{char:n,placeholderChar:void 0!==l[0]?null:null!=(o=null==c?void 0:c[t])?o:null,isActive:r,hasFakeCaret:r&&null===n}}),isFocused:f,isHovering:!E&&w}),[f,w,E,s,O,S,c,l]);return t.useEffect(()=>{C&&j.current&&j.current.focus()},[C,j]),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;";Va(e.sheet,"@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }"),Va(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Va(e.sheet,"[data-input-otp]:autofill { "+t+" }"),Va(e.sheet,"[data-input-otp]:-webkit-autofill { "+t+" }"),Va(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; } }"),Va(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(mi,Object.assign({helperText:d,error:x,views:u},B),P&&o.createElement(zi,Object.assign({htmlFor:n,color:"theme.primary",error:x},u.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(Wa.Provider,{value:_},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"},u.container),_.slots.map((e,t)=>o.createElement(Ei,Object.assign({key:(n||i)+"-"+t,size:g,error:x,shape:m,views:u,variant:p,value:e.char||"",color:"theme.primary",isHovered:w,isDisabled:E,isReadOnly:y,isFocused:e.isActive,showLabel:!1,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),justifyContent:"center",alignItems:"center",width:"100%",position:"relative",height:"xs"===g?"32px":"sm"===g?"36px":"md"===g?"40px":"lg"===g?"48px":"56px"},u.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"},u.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},u.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=>D(e),"data-input-otp":!0,"data-input-otp-placeholder-shown":0===l.length||void 0,"data-input-otp-mss":S,"data-input-otp-mse":O,id:n||i,name:i,type:"password"===b?"password":"text",inputMode:"password"!==b?"numeric":void 0,pattern:"[0-9]*",maxLength:s,readOnly:y,disabled:E,placeholder:c,value:l,onChange:H,onKeyDown:R,onPaste:z,onFocus:M,onBlur:T,onClick:V,onMouseOver:()=>k(!0),onMouseLeave:()=>k(!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"}},u.input))))))},Ba=["children","autoFocus","initFocus","onChange"],Pa=t.createContext({active:!1,focusNextInput:()=>{},setInputRef:()=>{},handleSubmitEditing:()=>{},getReturnKeyType:()=>"next"}),_a=["name","type"],Aa=e=>{var{name:o,type:r}=e,n=h(e,_a),i=t.useContext(Pa),{touched:a,errors:s,submitCount:d,values:c,setFieldTouched:u,setFieldValue:g}=l.useFormikContext(),m=e=>{"Enter"===e.key&&(e.preventDefault(),i.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(c,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),n,{value:b,error:v,onBlur:()=>{u(o,!0)},onKeyPress:m},p?{onChangeText:e=>{g(o,e),null==n.onChangeText||n.onChangeText(e)}}:{onChange:e=>{g(o,e),null==n.onChange||n.onChange(e)}},i.active?{handleKeyPress:m}:{})},Fa=["value"],Na=["value"],Ua=["visibleIcon","hiddenIcon"],Ga=["isVisible","setIsVisible"],Ya=["items","placeholder","searchPlaceholder"],Ka=(e,t,o)=>Math.min(Math.max(e,t),o),Xa=e=>{var o,{min:r=0,max:n=100,step:i=1,value:a=0,defaultValue:l,onChange:s,onDrag:d,orientation:c="horizontal",isDisabled:u=!1,stepValues:g}=e,h=Ka(null!=(o=null!=a?a:l)?o:r,r,n),[m,p]=t.useState(h),[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(Ka(a,r,n))},[a,y,r,n]);var k=t.useCallback(e=>{var t=Ka(e,r,n);y||p(t),s&&t!==C&&s(t),v&&d&&d(t)},[y,r,n,s,C,v,d]),j=t.useCallback(e=>{if(!u&&w.current){var t=w.current.getBoundingClientRect(),o=((e,t,o,r,n,i,a)=>{var l,s=r-o;if(l=Ka("horizontal"===i?(e-t.left)/t.width:(t.bottom-e)/t.height,0,1),a&&a.length>0){for(var d=o+l*s,c=a[0],u=Math.abs(d-c),g=1;g<a.length;g++){var h=Math.abs(d-a[g]);h<u&&(u=h,c=a[g])}return c}var m=Math.round((o+l*s)/n)*n;return Ka(m,o,r)})("touches"in e?"horizontal"===c?e.touches[0].clientX:e.touches[0].clientY:"horizontal"===c?e.clientX:e.clientY,t,r,n,i,c,g);k(o)}},[r,n,i,c,k,u,g]),I=t.useCallback(e=>{if(!u){e.preventDefault(),b(!0),j(e);var t=e=>{j(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)}},[j,u]),S=t.useCallback(e=>{E.current&&E.current.contains(e.target)||I(e)},[I]),O=t.useCallback(e=>{if(!u){var t=C;switch(e.key){case"ArrowLeft":case"ArrowDown":t=C-i;break;case"ArrowRight":case"ArrowUp":t=C+i;break;case"Home":t=r;break;case"End":t=n;break;default:return}e.preventDefault(),k(t)}},[C,r,n,i,k,u]),z=n-r;return{currentValue:C,isDragging:v,isHovered:x,setIsHovered:f,trackRef:w,thumbRef:E,handleThumbMouseDown:I,handleTrackMouseDown:S,handleKeyDown:O,thumbPositionPercent:0===z?0:(C-r)/z*100}},Za={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%"}},qa={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}},Ja={sharp:0,rounded:4,pillShaped:24},Qa=(e=>({default:{backgroundColor:"color.blueGray.200"},outline:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:"color.blueGray.300"}}))(),$a={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}},el={horizontal:{width:"100%",minWidth:"120px",height:"auto",flexDirection:"row",paddingVertical:8},vertical:{height:"100%",minHeight:"120px",width:"auto",flexDirection:"column-reverse",paddingHorizontal:8}},tl=["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"],ol=e=>{var t,n,{min:i=0,max:a=100,step:l=1,currentValue:s,stepValues:d,shape:c="rounded",size:u="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:k,setIsHovered:j,trackRef:I,thumbRef:S,handleThumbMouseDown:O,handleTrackMouseDown:z,handleKeyDown:H,thumbPositionPercent:M,ariaLabel:T="Slider",views:R={container:{},track:{},progress:{},filledTrack:{},thumb:{},label:{},valueLabel:{},stepMarks:{},tooltip:{}}}=e,D=h(e,tl),{getColor:W,themeMode:V}=r.useTheme(),L=W(x,{themeMode:E||V}),B=W("theme.disabled",{themeMode:E||V}),P=W(Qa[g].backgroundColor,{themeMode:E||V}),_="vertical"===m,{trackCrossAxisSize:A,thumbSize:F}=$a[u]||{trackCrossAxisSize:Za[u].height,thumbSize:qa[u].width||16},N=o.createElement(r.Vertical,Object.assign({width:"100%",gap:8},R.container,D),f&&o.createElement(r.Horizontal,{justifyContent:"space-between",alignItems:"center"},o.createElement(r.Text,Object.assign({fontSize:14,fontWeight:500},R.label),f),v&&o.createElement(r.Text,Object.assign({fontSize:14,color:"color.blueGray.500"},R.valueLabel),s)),o.createElement(r.View,Object.assign({ref:I,position:"relative",cursor:p?"not-allowed":"pointer",opacity:p?.6:1,onMouseDown:z,onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1)},Za[u],{borderRadius:Ja[c],backgroundColor:P},Qa[g],y,R.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-i)/(a-i)*100+"%",transform:"translate(-50%, -50%)",width:4,height:4,borderRadius:"50%",backgroundColor:p?B:L,zIndex:1},R.stepMarks)))),o.createElement(r.View,Object.assign({position:"absolute",top:0,left:0,height:"100%",width:M+"%",backgroundColor:p?B:L,borderRadius:Ja[c],transition:"width 0.1s ease-in-out"},R.progress,R.filledTrack)),o.createElement(r.View,Object.assign({ref:S,role:"slider",tabIndex:p?-1:0,"aria-valuemin":i,"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:L),transition:C?"none":"transform 0.1s ease-in-out",transform:k?"translate(-50%, -50%) scale(1.1)":"translate(-50%, -50%)",zIndex:2,onMouseDown:O,onTouchStart:O,onKeyDown:H},qa[u],R.thumb),b&&(k||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},R.tooltip),o.createElement(r.Text,Object.assign({},null==(t=R.tooltip)?void 0:t.text),null==s?void 0:s.toFixed(l<1?1:0))))),w&&o.createElement(gi,null,w)),U=o.createElement(r.Center,Object.assign({},el[m],{position:"relative",onMouseEnter:()=>!p&&j(!0),onMouseLeave:()=>!p&&j(!1)},D,null==R?void 0:R.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},R.label),f),v&&o.createElement(r.Text,Object.assign({fontSize:14,color:"color.blueGray.500"},R.valueLabel),s)),o.createElement(r.View,Object.assign({ref:I,position:"relative",borderRadius:A/2,backgroundColor:p?B:P,cursor:p?"not-allowed":"pointer",width:_?A+"px":"100%",height:_?"100%":A+"px",onMouseDown:z,onTouchStart:z},null==R?void 0:R.track),d&&d.length>0&&o.createElement(o.Fragment,null,d.map(e=>{var t=(e-i)/(a-i)*100;return o.createElement(r.View,Object.assign({key:e,position:"absolute",width:4,height:4,borderRadius:"50%",backgroundColor:p?B:L,zIndex:1},_?{bottom:t+"%",left:"50%",transform:"translate(-50%, 50%)"}:{left:t+"%",top:"50%",transform:"translate(-50%, -50%)"},R.stepMarks))})),o.createElement(r.View,Object.assign({position:"absolute",borderRadius:A/2,backgroundColor:p?B:L},_?{bottom:0,left:0,width:"100%",height:M+"%"}:{top:0,left:0,height:"100%",width:M+"%"},null==R?void 0:R.filledTrack,null==R?void 0:R.progress)),o.createElement(r.View,Object.assign({ref:S,role:"slider",tabIndex:p?-1:0,"aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":s,"aria-orientation":m,"aria-disabled":p,"aria-label":T,position:"absolute",width:F+"px",height:F+"px",borderRadius:"50%",backgroundColor:p?B:L,border:"2px solid "+W("color.white"),boxShadow:"0 1px 3px rgba(0, 0, 0, 0.2)",cursor:p?"not-allowed":"grab",transform:_?"translateX(-50%)":"translateY(-50%)",zIndex:2,transition:C?"none":"left 0.1s, bottom 0.1s"},_?{left:"50%",bottom:M+"%"}:{top:"50%",left:M+"%"},{onMouseDown:O,onTouchStart:O,onKeyDown:H},null==R?void 0:R.thumb),b&&(k||C)&&o.createElement(r.View,Object.assign({position:"absolute",padding:"4px 8px",backgroundColor:W("color.black"),color:W("color.white"),borderRadius:"4px",fontSize:"12px",whiteSpace:"nowrap",zIndex:3},_?{left:"100%",marginLeft:"8px",bottom:"0",transform:"translateY(50%)"}:{bottom:"100%",left:"50%",marginBottom:"8px",transform:"translateX(-50%)"},null==R?void 0:R.tooltip),o.createElement(r.Text,Object.assign({},null==R||null==(n=R.tooltip)?void 0:n.text),null==s?void 0:s.toFixed(l<1?1:0))))),w&&o.createElement(gi,{marginTop:8},w));return _||b?U:N},rl=s.create(e=>({visible:!1,title:"",subtitle:"",variant:"info",isClosable:!1,views:{},action:()=>{},actionText:"",showIcon:!1,timeout:3e3,show:function(t,o,r,n,i,a,l,s,d){return void 0===o&&(o=""),void 0===r&&(r=""),e({visible:!0,variant:t,title:o,subtitle:r,isClosable:n,views:i,action:a,actionText:l,showIcon:s,timeout:d})},hide:()=>e({visible:!1})})),nl=(e,t,o,r)=>{rl.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)},il=()=>{rl.getState().hide()},al={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"}}},ll=e=>{var n,i,{variant:a,hide:l,title:s,subtitle:d,theme:c,action:u,actionText:g,showIcon:h=!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!=c?c:al,x=!(!u||!g),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(Lt,Object.assign({widthHeight:24,color:w},null==v?void 0:v.icon)),success:o.createElement(bo,Object.assign({widthHeight:24,color:w},null==v?void 0:v.icon)),warning:o.createElement(Nt,Object.assign({widthHeight:24,color:w},null==v?void 0:v.icon)),error:o.createElement(Jt,Object.assign({widthHeight:24,color:w},null==v?void 0:v.icon))}[a],y=h&&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(V,Object.assign({size:"md",weight:"semiBold"},null==v?void 0:v.title),s),d&&o.createElement(V,Object.assign({size:"sm"},null==v?void 0:v.subtitle),d)),x&&o.createElement(V,Object.assign({marginRight:10,onClick:u,padding:"6px 10px",whiteSpace:"nowrap"},f,null==v?void 0:v.actionText),g),m&&o.createElement(r.View,Object.assign({position:"absolute",zIndex:1e4,right:8,top:6,onClick:()=>{l()}},null==v||null==(n=v.closingIcon)?void 0:n.container),o.createElement(Ht,Object.assign({widthHeight:18,color:w},null==v||null==(i=v.closingIcon)?void 0:i.icon))))},sl=e=>{var{accept:t,isLoading:n=!1,progress:i=0,icon:a,text:l,previewUrl:s,thumbnailUrl:d,errorMessage:c,fileInputRef:u,videoRef:g,selectedFile:h,handleFileChange:m,handleClick:p,containerProps:v,errorMessageProps:b,progressProps:x,videoProps:f,imageProps:w,iconProps:E,textProps:y,fileType:C,previewUrl:k,renderError:j=(e=>{var{errorMessage:t,errorMessageProps:n}=e;return o.createElement(r.Text,Object.assign({color:"red",fontSize:12,marginTop:8},n,null==M?void 0:M.text),t)}),renderText:I=(e=>{var{text:t,textProps:n}=e;return o.createElement(r.Text,Object.assign({marginTop:8},n,null==M?void 0:M.text),t)}),renderFile:S=(e=>{var{selectedFile:t,textProps:n}=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},n,null==M?void 0:M.text),t.name),o.createElement(r.Text,Object.assign({},n,null==M?void 0:M.text),"(",Math.round(t.size/1024)," KB)")):null}),renderVideo:O=(e=>{var{selectedFile:t,videoRef:n,videoProps:i}=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:n},i,null==M?void 0:M.view)))}),renderImage:z=(e=>{var{previewUrl:t,imageProps:n}=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%"}},n,null==M?void 0:M.image)))}),renderProgress:H=(e=>{var{progress:t,progressProps:n}=e;return o.createElement(r.Horizontal,Object.assign({gap:8,alignItems:"center"},n,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=k||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:h&&100===i?"200px":"auto"},v,null==M?void 0:M.container),100===i&&"image"===C&&T&&z({previewUrl:T,imageProps:w}),100===i&&"video"===C&&d&&O({selectedFile:h,thumbnailUrl:d,videoRef:g,videoProps:f,imageProps:w}),100===i&&"file"===C&&h&&S({selectedFile:h,textProps:y}),i<100&&(a||o.createElement(jo,Object.assign({widthHeight:32},E))),!h&&l&&I({text:l,textProps:y}),n&&H({progress:i,progressProps:x}),c&&j({errorMessage:c,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)))},dl=["accept","icon","text","maxSize","onFileSelect","validateFile","isLoading","progress","fileType"],cl=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}))}})),ul=e=>{console.log("hideModal",e),cl.getState().onHide(e),cl.getState().hide("string"==typeof e?e:void 0)},gl={sharp:{borderRadius:0},rounded:{borderRadius:"8px"}},hl={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"}},ml={xs:12,sm:16,md:20,lg:24,xl:28},pl=["children","blur","isOpen","isClosePrevented","onClose","position","views"],vl=["children","shadow","isFullScreen","shape","views","isOpen"],bl=["children","buttonColor","iconSize","buttonPosition","views"],xl=["children","views"],fl=["children","views"],wl=e=>{var{children:t,blur:n,isOpen:i=!1,isClosePrevented:a=!1,onClose:l=(()=>{}),position:s="center",views:d}=e,c=h(e,pl),u=()=>{a||l()};return o.createElement(r.Center,Object.assign({position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:u,visibility:i?"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:n?"blur("+n+"px)":void 0,transition:"all 0.3s ease",onClick:u},hl[s],c,null==d?void 0:d.view),t))},El=e=>{var{children:t}=e;return o.createElement(o.Fragment,null,t)};El.Overlay=wl,El.Container=e=>{var{children:t,shadow:n,isFullScreen:i=!1,shape:a="rounded",views:l}=e,s=h(e,vl),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:i?"100%":600,height:i?"100%":"fit-content",onClick:e=>{e&&e.stopPropagation&&e.stopPropagation()},transition:"all 0.3s ease"},n||d,gl[a],s,null==l?void 0:l.container),t)},El.Header=e=>{var{children:t,buttonColor:n="theme.primary",iconSize:i="md",buttonPosition:a="right",views:l}=e,s=h(e,bl),d=o.createElement(r.View,{onClick:s.onClose?s.onClose:ul},o.createElement(Ht,{widthHeight:ml[i],color:n}));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)},El.Body=e=>{var{children:t,views:n}=e,i=h(e,xl);return o.createElement(r.View,Object.assign({paddingVertical:16,paddingHorizontal:24,fontSize:"16px",fontWeight:"400",lineHeight:"24px",color:"color.gray.700"},i,null==n?void 0:n.view),t)},El.Footer=e=>{var{children:t,views:n}=e,i=h(e,fl);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},i,null==n?void 0:n.container),t)},El.Layout=e=>{var{modals:r,onShow:n,onHide:i}=e,a=cl(e=>e.modals);return n&&cl.getState().setOnShow(n),i&&cl.getState().setOnHide(i),0===a.length?null:o.createElement(t.Fragment,null,a.map((e,t)=>{var n=r[e.name];return n?o.createElement(wl,Object.assign({key:t,isOpen:e.props.isVisible,onClose:()=>ul(e.name),blur:5},e.overlayProps,{style:{zIndex:1e3+t}}),o.createElement(n,Object.assign({},e.props))):(console.error(e.name+" modal doesn't exist"),null)}))};var yl={sm:{padding:"8px 12px",fontSize:"12px",fontWeight:"500"},md:{padding:"12px 16px",fontSize:"14px",fontWeight:"500"},lg:{padding:"16px 20px",fontSize:"16px",fontWeight:"500"}},Cl={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"}},kl={horizontal:{flexDirection:"row",gap:"8px"},vertical:{flexDirection:"column",gap:"4px"}},jl={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"}},Il=["href","children","views"],Sl=t.createContext({activeItemId:null,setActiveItemId:()=>{},expandedItemIds:[],toggleExpandedItem:()=>{},isItemExpanded:()=>!1,orientation:"vertical",size:"md",variant:"default"}),Ol=e=>{var{children:t,value:r}=e;return o.createElement(Sl.Provider,{value:r},t)},zl=()=>{var e=t.useContext(Sl);if(!e)throw new Error("useNavigationMenuContext must be used within a NavigationMenuProvider");return e},Hl=e=>{var{children:t,views:n}=e,{orientation:i}=zl();return o.createElement("horizontal"===i?r.Horizontal:r.Vertical,Object.assign({width:"100%"},kl[i],{transition:"all 0.2s ease",borderRadius:"4px"},null==n?void 0:n.container),t)},Ml=t.createContext({itemValue:null,isDisabled:!1}),Tl=e=>{var t,{item:n,value:i,isDisabled:a=!1,children:l,views:s}=e,{activeItemId:d,setActiveItemId:c,orientation:u,size:g,variant:h,onItemActivate:m}=zl(),p=(null==n?void 0:n.id)||i,v=d===p,b=(null==n?void 0:n.items)&&n.items.length>0,x=(null==n?void 0:n.disabled)||a,f="horizontal"===u?r.Horizontal:r.Vertical;return l?o.createElement(Ml.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"},yl[g],Cl[h],v?jl.active:{},{_hover:x?{}:jl.hover},null==s?void 0:s.item),l)):b&&n?o.createElement(f,Object.assign({width:"100%",flexDirection:"column",position:"relative"},null==s?void 0:s.item),o.createElement(Rl,{itemId:n.id,disabled:n.disabled,views:s},n.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==s?void 0:s.icon),n.icon),n.label),o.createElement(Dl,{itemId:n.id},o.createElement(Hl,null,null==(t=n.items)?void 0:t.map(e=>o.createElement(Tl,{key:e.id,item:e}))))):n?o.createElement(r.View,Object.assign({as:n.href?"a":"div",to:n.href,onClick:()=>{x||p&&(c(p),m&&m(p))},cursor:n.disabled?"not-allowed":"pointer",opacity:n.disabled?.6:1,width:"100%",display:"flex",alignItems:"center",borderRadius:"4px",transition:"all 0.2s ease",gap:"8px"},yl[g],Cl[h],v?jl.active:{},{_hover:n.disabled?{}:jl.hover},null==s?void 0:s.item),n.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==s?void 0:s.icon),n.icon),n.label):null},Rl=e=>{var{children:t,itemId:n,disabled:i,views:a}=e,{activeItemId:l,toggleExpandedItem:s,isItemExpanded:d,size:c,variant:u}=zl(),g=l===n,h=d(n);return o.createElement(r.View,Object.assign({onClick:e=>{e.preventDefault(),i||s(n)},cursor:i?"not-allowed":"pointer",opacity:i?.5:1,width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:4,transition:"background-color 0.2s ease"},yl[c],Cl[u],g?jl.active:{},{_hover:i?{}:jl.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:h?"rotate(180deg)":"rotate(0deg)"},null==a?void 0:a.indicator),o.createElement(Mo,{widthHeight:16,color:"currentColor",filled:!0})))},Dl=e=>{var{children:t,itemId:n,views:i}=e,{isItemExpanded:a,orientation:l}=zl();return a(n)?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==i?void 0:i.container),t):null},Wl=e=>{var{items:t,orientation:n,views:i}=e;return t&&0!==t.length?o.createElement("horizontal"===n?r.Horizontal:r.Vertical,Object.assign({width:"100%"},kl[n],null==i?void 0:i.container),o.createElement(Hl,{views:i},t.map(e=>o.createElement(Tl,{key:e.id,item:e,views:i})))):null},Vl=["items","children","orientation","size","variant","defaultActiveItemId","defaultExpandedItemIds","onItemActivate","views"],Ll=e=>{var{items:r,children:n,orientation:i="vertical",size:a="md",variant:l="default",defaultActiveItemId:s=null,defaultExpandedItemIds:d=[],onItemActivate:c,views:u}=e,g=h(e,Vl),{activeItemId:m,setActiveItemId:p,expandedItemIds:v,toggleExpandedItem:b,isItemExpanded:x}=function(e,o){void 0===e&&(e=null),void 0===o&&(o=[]);var[r,n]=t.useState(e),[i,a]=t.useState(o);return{activeItemId:r,setActiveItemId:n,expandedItemIds:i,toggleExpandedItem:e=>{a(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},isItemExpanded:e=>i.includes(e)}}(s,d);return o.createElement(Ol,{value:{activeItemId:m,setActiveItemId:p,expandedItemIds:v,toggleExpandedItem:b,isItemExpanded:x,orientation:i,size:a,variant:l,onItemActivate:c}},r?o.createElement(Wl,Object.assign({items:r,orientation:i,size:a,variant:l,views:u},g)):n)};Ll.List=Hl,Ll.Item=Tl,Ll.Trigger=Rl,Ll.Content=Dl,Ll.Link=e=>{var{href:n,children:i,views:a}=e,l=h(e,Il),{itemValue:s,isDisabled:d}=(()=>{var e=t.useContext(Ml);if(!e)throw new Error("useNavigationMenuItemContext must be used within a NavigationMenuItem");return e})(),{activeItemId:c,setActiveItemId:u,onItemActivate:g}=zl(),m=c===s;return o.createElement(r.View,Object.assign({as:"a",href:d?void 0:n,onClick:e=>{d?e.preventDefault():(s&&(u(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),i)};var Bl={},Pl=t.createContext({views:Bl,onRowClick:()=>{}}),_l=e=>{var{children:t,views:r=Bl,onRowClick:n}=e;return o.createElement(Pl.Provider,{value:{views:r,onRowClick:n}},t)},Al=()=>t.useContext(Pl),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"}},Nl=e=>{var{views:t}=Al();return o.createElement(r.Element,Object.assign({as:"table",borderCollapse:"collapse"},Fl.table,null==t?void 0:t.table,e))},Ul=e=>{var{views:t}=Al();return o.createElement(r.Element,Object.assign({as:"thead",textAlign:"left"},Fl.thead,null==t?void 0:t.thead,e))},Gl=e=>{var{views:t}=Al();return o.createElement(r.Element,Object.assign({as:"th",whiteSpace:"nowrap"},Fl.th,null==t?void 0:t.th,e))},Yl=e=>{var{views:t,onRowClick:n}=Al();return o.createElement(r.Element,Object.assign({as:"tr"},Fl.tr,null==t?void 0:t.tr,{onClick:n},e))},Kl=e=>{var{views:t}=Al();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))},Xl=e=>{var{views:t}=Al();return o.createElement(r.Element,Object.assign({as:"tbody"},Fl.tbody,null==t?void 0:t.tbody,e))},Zl=e=>{var{views:t}=Al();return o.createElement(r.Element,Object.assign({as:"tfoot"},Fl.tfoot,null==t?void 0:t.tfoot,e))},ql=e=>{var{views:t}=Al();return o.createElement(r.Element,Object.assign({as:"caption"},Fl.caption,null==t?void 0:t.caption,e))},Jl=e=>{var{children:t,views:r,onClick:n}=e;return o.createElement(_l,{views:r,onRowClick:n},t)};Jl.Head=Ul,Jl.HeadCell=Gl,Jl.Body=Xl,Jl.Row=Yl,Jl.Cell=Kl,Jl.Footer=Zl,Jl.Caption=ql,Jl.Container=Nl,Jl.Template=e=>{var{data:t,columns:r,footer:n,caption:i}=e;return o.createElement(Nl,{role:"Table"},i&&o.createElement(ql,null,i),o.createElement(Ul,null,o.createElement(Yl,null,r.map(e=>o.createElement(Gl,{key:e.field},e.title)))),o.createElement(Xl,null,t.map((e,t)=>o.createElement(Yl,{key:t},r.map((t,r)=>o.createElement(Kl,{key:t.field,isFirstColumn:0===r},e[t.field]))))),n&&o.createElement(Zl,null,o.createElement(Yl,null,n.map((e,t)=>o.createElement(Kl,Object.assign({key:t},e.props),e.value)))))};var Ql=e=>{var{tab:t,isActive:n,onClick:i,iconPosition:a="left",tabStyles:l,textStyles:s}=e;return o.createElement(r.Element,Object.assign({as:"div",role:"tab","aria-selected":n,tabIndex:n?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:n?"theme.primary":"transparent",borderBottomColor:n?"transparent":"color.gray.200",backgroundColor:n?"color.white":"transparent",color:n?"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:i,"data-state":n?"active":"inactive"}),t.icon&&o.createElement(r.Element,null,t.icon),o.createElement(r.Text,Object.assign({},s),t.title))},$l=e=>{var{tabs:t=[],activeTab:n,handleTabClick:i,views:a={},renderTab:l,renderContent:s,iconPosition:d="left"}=e;return n?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===n.title,r=()=>i(e);return l?l(e,t,r):o.createElement(Ql,{key:e.title,tab:e,isActive:t,onClick:r,iconPosition:d,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(n):n.content)):null},es=o.memo(e=>{var{tabs:r,views:n,initialTabValue:i,onTabChange:a,renderTab:l,renderContent:s,iconPosition:d="left"}=e,{activeTab:c,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]}},[n,i]=t.useState(r);return t.useEffect(()=>{var t=r(),a=n&&e.some(e=>e.title===n.title);t&&(!a||void 0!==o&&(null==n?void 0:n.title)!==o)?i(t):!t&&n&&i(void 0)},[e,o]),{activeTab:n,setActiveTab:i}})(r,i);return o.createElement($l,{tabs:r,views:n,activeTab:c,handleTabClick:e=>{(null==c?void 0:c.title)!==e.title&&(u(e),a&&a(e))},renderTab:l,renderContent:s,iconPosition:d})}),ts={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48,"3xl":56,"4xl":64,"5xl":72,"6xl":80},os={xs:24,sm:28,md:32,lg:40,xl:48,"2xl":56,"3xl":64,"4xl":72,"5xl":80,"6xl":88},rs={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)+")",backgroundClip:"text !important",webkitBackgroundClip:"text !important",color:"transparent",webkitTextFillColor:"transparent",display:"inline-block",textShadow:"none"}),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"})},ns=["text","typingSpeed","pauseTime","onComplete","showCursor","cursorColor","textStyle","as"],is=e=>{var{text:n,typingSpeed:i=50,pauseTime:a=500,onComplete:l,showCursor:s=!0,cursorColor:d="currentColor",textStyle:c}=e,u=(h(e,ns),Array.isArray(n)?n:[n]),[g,m]=t.useState(u.map(()=>"")),[p,v]=t.useState(!1),[b,x]=t.useState(0),[f,w]=t.useState(0);return t.useEffect(()=>{m(u.map(()=>"")),v(!1),x(0),w(0)},[n]),t.useEffect(()=>{if(!p){var e=u[b];if(f>=e.length){if(b>=u.length-1)return void v(!0);var t=setTimeout(()=>{x(e=>e+1),w(0)},a);return()=>clearTimeout(t)}var o=setTimeout(()=>{m(t=>{var o=[...t];return o[b]=e.substring(0,f+1),o}),w(e=>e+1)},i);return()=>clearTimeout(o)}l&&l()},[u,b,f,p,l,a,i]),o.createElement(o.Fragment,null,g.map((e,t)=>o.createElement(o.Fragment,{key:t},e,s&&t===b&&!p&&o.createElement(r.Text,{as:"span",display:"inline-block",width:"0.1em",height:"1em",backgroundColor:d,style:Object.assign({animation:"blink 1s step-end infinite",verticalAlign:"text-bottom",marginLeft:"1px"},c)}))))},as=["children","highlightText","highlightStyle","highlightColor","highlightSecondaryColor","size","centered","views","highlightAnimate","animate","highlightTypewriter","highlightTypewriterDuration"],ls=e=>{var{children:n,highlightText:i,highlightStyle:a="background",highlightColor:l="theme.primary",highlightSecondaryColor:s,size:d="xl",centered:c=!1,views:u,highlightAnimate:g,animate:m,highlightTypewriter:p=!1,highlightTypewriterDuration:v=3e3}=e,b=h(e,as),{ref:x,inView:f}=r.useInView(),{getColor:w,themeMode:E}=r.useTheme(),y=b.themeMode||E,C=e=>e.startsWith("#")?e:w(e,{themeMode:y}),k=C(l),j=s?C(s):void 0,{finalDisplayedText:I,activeHighlightTarget:S,highlightTypewriter:O}=(e=>{var{children:o,_isInView:r=!1,alternateHighlightText:n=[],alternateAnimation:i=!1,alternateDuration:a=3e3,highlightText:l,highlightTypewriter:s=!1,highlightTypewriterDuration:d=1500}=e,[c,u]=t.useState(o),[g,h]=t.useState(l);return t.useEffect(()=>{if(!i||0===n.length||!r||"string"!=typeof o||"string"!=typeof l)return u(o),h(l),()=>{};var e=o,t=l,s=0,d=o=>{var r=n[o],i=new RegExp(t,"gi"),a=e.replace(i,r);u(a),h(r)};d(s);var c=setInterval(()=>{d(s=(s+1)%n.length)},a);return()=>clearInterval(c)},[i,n,a,l,o,r]),{finalDisplayedText:c,activeHighlightTarget:g,highlightTypewriter:s}})(Object.assign({children:n,highlightText:i,_isInView:f,highlightTypewriter:p,highlightTypewriterDuration:v},b)),z=ts[d],H=os[d],M="string"==typeof I?I:"string"==typeof n?n:"";if("string"==typeof M&&S){for(var T,R=new RegExp("("+(Array.isArray(S)?S.join("|"):S).replace(/[.*+?^${}()|[\\]\\/g,"\\$&")+")","gi"),D=[],W=0;T=R.exec(M);)T.index>W&&D.push(M.substring(W,T.index)),D.push({highlight:!0,text:T[0]}),W=T.index+T[0].length;return W<M.length&&D.push(M.substring(W)),o.createElement(r.Element,Object.assign({ref:x,as:"h1",fontSize:z,lineHeight:H+"px",fontWeight:"bold",textAlign:c?"center":"left",animate:f?m:void 0},null==u?void 0:u.container,b),D.map((e,t)=>"string"==typeof e?e:o.createElement(r.Text,Object.assign({key:e.text+"-"+t,as:"span",display:"inline",animate:f?g:void 0},rs[a](k,j),null==u?void 0:u.highlight),O?o.createElement(is,{text:e.text,typingSpeed:Math.max(30,v/(10*e.text.length)),showCursor:!0,cursorColor:"currentColor"}):e.text)))}return o.createElement(r.Element,Object.assign({ref:x,as:"h1",fontSize:z,lineHeight:H+"px",fontWeight:"bold",textAlign:c?"center":"left",animate:f?m:void 0},null==u?void 0:u.container,b),a&&!S?o.createElement(r.Text,Object.assign({as:"span",display:"inline",animate:f?g:void 0},rs[a](k,j),null==u?void 0:u.highlight),O?o.createElement(is,{text:M,typingSpeed:Math.max(30,v/(10*M.length)),showCursor:!0,cursorColor:"currentColor"}):M):M)},ss=["children","shape","variant","isHovered","setIsHovered","isDisabled","isToggle","setIsToggled","onToggle","views"],ds=e=>{var{children:t,shape:n="rounded",variant:i="ghost",isHovered:a,setIsHovered:l,isDisabled:s,isToggle:d,setIsToggled:c,onToggle:u,views:g}=e,m=h(e,ss),p=s?"theme.disabled":"color.trueGray.400",v=!(!d&&!a);return o.createElement(r.Center,Object.assign({role:"Toggle",padding:"pillShaped"===n?"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"===n?"50px":"8px",onClick:()=>{s||c(e=>{var t=!e;return u&&u(t),t})}},{outline:{borderWidth:1,borderStyle:"solid",borderColor:"color.trueGray.400"},link:{borderWidth:1,borderStyle:"solid",borderColor:v?p:"transparent",textDecoration:"underline"},ghost:{}}[i],m,null==g?void 0:g.container),t)},cs=["children","shape","variant","isDisabled","isToggled","onToggle"],us=e=>{var{children:r,shape:n,variant:i,isDisabled:a,isToggled:l=!1,onToggle:s}=e,d=h(e,cs),{isHovered:c,setIsHovered:u,isToggle:g,setIsToggled:m}=(e=>{var[o,r]=t.useState(!1),[n,i]=t.useState(e);return{isHovered:o,setIsHovered:r,isToggle:n,setIsToggled:i}})(l);return t.useEffect(()=>{m(l)},[l]),o.createElement(ds,Object.assign({shape:n,variant:i,isDisabled:a,isHovered:c,setIsHovered:u,isToggle:g,setIsToggled:m,onToggle:s},d),r)},gs=e=>{var{items:n,onToggleChange:i,activeToggles:a,setActiveToggles:l,shape:s="rounded",variant:d="ghost",views:c}=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==i||i(r),r})},[i,l]);return o.createElement(r.Horizontal,Object.assign({role:"ToggleGroup",display:"flex",gap:5},null==c?void 0:c.container),n.map(e=>o.createElement(us,{role:"toggle-"+e.id,key:e.id,shape:s,variant:d,isToggled:a.includes(e.id)||e.isActive,onToggle:t=>u(e.id,t),isDisabled:e.isDisabled,views:null==c?void 0:c.toggle},e.value)))},hs=e=>{var{items:t,renderItem:n,containerProps:i,itemProps:a,draggedIndex:l,itemRefs:s,handleDragStart:d,views:c}=e;return o.createElement(r.View,Object.assign({overflow:"hidden",position:"relative"},i,null==c?void 0:c.container),t.map((e,t)=>o.createElement(r.View,Object.assign({key:t,ref:e=>s.current[t]=e,onMouseDown:e=>d(e,t),onTouchStart:e=>d(e,t),position:"relative",cursor:"grab",transition:"transform 0.2s",backgroundColor:l===t?"color.gray.100":"transparent"},a,null==c?void 0:c.item),n?n(e,t):e)))},ms=e=>{var{items:r,draggedIndex:n,itemRefs:i,handleDragStart:a}=(e=>{var{items:o,onChange:r}=e,[n,i]=t.useState(o),[a,l]=t.useState(null),[s,d]=t.useState(null),c=t.useRef({x:0,y:0}),u=t.useRef([]),g=t.useCallback((e,t)=>{e.preventDefault(),document.body.style.cursor="grabbing",c.current={x:"touches"in e?e.touches[0].clientX:e.clientX,y:"touches"in e?e.touches[0].clientY:e.clientY},d(t),l(n[t])},[n]),h=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-c.current.x)+"px, "+(o-c.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 g=[...n],[h]=g.splice(s,1);g.splice(l,0,h),i(g),d(l),null==r||r(g),c.current={x:t,y:o}}}}},[s,n,r]),m=t.useCallback(()=>{document.body.style.cursor="",u.current.forEach(e=>{e&&(e.style.transform="",e.style.zIndex="")}),d(null),l(null)},[s]);return t.useEffect(()=>(null!==s&&(window.addEventListener("mousemove",h),window.addEventListener("touchmove",h),window.addEventListener("mouseup",m),window.addEventListener("touchend",m)),()=>{window.removeEventListener("mousemove",h),window.removeEventListener("touchmove",h),window.removeEventListener("mouseup",m),window.removeEventListener("touchend",m)}),[s,h,m]),{items:n,draggedItem:a,draggedIndex:s,itemRefs:u,handleDragStart:g}})(e);return o.createElement(hs,Object.assign({},e,{items:r,draggedIndex:n,itemRefs:i,handleDragStart:a}))},ps=ms,vs={sm:{padding:"6px 8px",fontSize:"14px",minWidth:"160px"},md:{padding:"8px 12px",fontSize:"16px",minWidth:"180px"},lg:{padding:"10px 16px",fontSize:"18px",minWidth:"200px"}},bs={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"}},xs={hover:{backgroundColor:"color.gray.100"},active:{backgroundColor:"color.gray.200"},disabled:{opacity:.5,cursor:"not-allowed"}},fs=["children","views"],ws=["items","side","align","views"],Es=["item","views"],ys=["views"],Cs=["trigger","items","side","align","views","themeMode"],ks=t.createContext({isOpen:!1,setIsOpen:()=>{},activeSubmenuId:null,setActiveSubmenuId:()=>{},size:"md",variant:"default"}),js=e=>{var{children:t,value:r}=e;return o.createElement(ks.Provider,{value:r},t)},Is=()=>{var e=t.useContext(ks);if(!e)throw new Error("useDropdownMenuContext must be used within a DropdownMenuProvider");return e},Ss=e=>{var{children:t,views:n}=e,i=h(e,fs),{isOpen:a,setIsOpen:l}=Is();return o.createElement(r.View,Object.assign({id:"dropdown-trigger",onClick:e=>{e.stopPropagation(),l(!a)},cursor:"pointer",position:"relative",display:"inline-block"},null==n?void 0:n.container,i),t)},Os=e=>{var{items:t,side:n="bottom",align:i="start",views:a}=e,l=h(e,ws),{isOpen:s,variant:d}=Is();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]}(n,i),bs[d],null==a?void 0:a.menu,l),t.map((e,t)=>e.divider?o.createElement(Hs,{key:"divider-"+t,views:a}):o.createElement(zs,{key:e.id,item:e,views:a}))):null},zs=e=>{var{item:n,views:i}=e,a=h(e,Es),{activeSubmenuId:l,setActiveSubmenuId:s,size:d}=Is(),[c,u]=t.useState(!1),g=n.items&&n.items.length>0,m=l===n.id,p=t.useRef(null);return o.createElement(r.View,Object.assign({ref:p,display:"flex",alignItems:"center",cursor:n.disabled?"not-allowed":"pointer",opacity:n.disabled?.5:1,position:"relative"},vs[d],{_hover:n.disabled?{}:xs.hover,backgroundColor:c&&!n.disabled?"color.gray.100":"transparent",onMouseEnter:()=>{u(!0),g&&s(n.id)},onMouseLeave:()=>{u(!1)},onClick:e=>{e.stopPropagation(),n.disabled||!g&&n.onClick&&n.onClick()}},null==i?void 0:i.item,a),n.icon&&o.createElement(r.View,Object.assign({marginRight:8},null==i?void 0:i.icon),n.icon),o.createElement(r.View,{flexGrow:1},n.label),g&&o.createElement(r.View,Object.assign({marginLeft:8},null==i?void 0:i.submenuIndicator),o.createElement(To,{widthHeight:16,color:"currentColor",filled:!0})),m&&g&&o.createElement(Os,{items:n.items||[],side:"right",align:"start",views:i}))},Hs=e=>{var{views:t}=e,n=h(e,ys);return o.createElement(r.View,Object.assign({height:"1px",backgroundColor:"color.gray.200",margin:"4px 0"},null==t?void 0:t.divider,n))},Ms=e=>{var{trigger:t,items:n,side:i="bottom",align:a="start",views:l}=e,s=h(e,Cs);return o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},null==l?void 0:l.container,s),o.createElement(Ss,{views:l},t),o.createElement(Os,{items:n,side:i,align:a,views:l}))},Ts=["trigger","items","size","variant","side","align","defaultOpen","views"],Rs=e=>{var{trigger:r,items:n,size:i="md",variant:a="default",side:l="bottom",align:s="start",defaultOpen:d=!1,views:c}=e,u=h(e,Ts),{isOpen:g,setIsOpen:m,activeSubmenuId:p,setActiveSubmenuId:v}=function(e){void 0===e&&(e=!1);var[o,r]=t.useState(e),[n,i]=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),i(null))},t=()=>{o&&(r(!1),i(null))},n=e=>{"Escape"===e.key&&o&&(r(!1),i(null))};return document.addEventListener("mousedown",e),window.addEventListener("resize",t),document.addEventListener("keydown",n),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",t),document.removeEventListener("keydown",n)}},[o]),{isOpen:o,setIsOpen:r,activeSubmenuId:n,setActiveSubmenuId:i}}(d);return o.createElement(js,{value:{isOpen:g,setIsOpen:m,activeSubmenuId:p,setActiveSubmenuId:v,size:i,variant:a}},o.createElement(Ms,Object.assign({trigger:r,items:n,side:l,align:s,views:c},u)))};Rs.Trigger=Ss,Rs.Content=Os,Rs.Item=zs,Rs.Divider=Hs;var Ds=e=>e+"-"+Math.random().toString(36).substring(2,9),Ws=["children","views","asChild"],Vs=["children","views","side","align","sideOffset","style","backgroundColor","borderRadius","boxShadow","padding","minWidth","maxWidth"],Ls=t.createContext({isOpen:!1,openCard:()=>{},closeCard:()=>{},cancelCloseTimer:()=>{},triggerRef:{current:null},contentRef:{current:null},contentId:"",triggerId:""}),Bs=e=>{var{children:t,value:r}=e;return o.createElement(Ls.Provider,{value:r},t)},Ps=()=>{var e=t.useContext(Ls);if(!e)throw new Error("useHoverCardContext must be used within a HoverCardProvider");return e},_s=["children","views","openDelay","closeDelay"],As=e=>{var{children:n,views:i,openDelay:a,closeDelay:l}=e,s=h(e,_s),d=function(e){var{openDelay:o=200,closeDelay:r=300}=void 0===e?{}:e,[n,i]=t.useState(!1),a=t.useRef(null),l=t.useRef(null),s=t.useRef(null),d=t.useRef(null),c=t.useMemo(()=>Ds("hovercard-content"),[]),u=t.useMemo(()=>Ds("hovercard-trigger"),[]),g=t.useCallback(()=>{a.current&&(clearTimeout(a.current),a.current=null),l.current&&(clearTimeout(l.current),l.current=null)},[]),h=t.useCallback(()=>{g(),n||(a.current=setTimeout(()=>{i(!0)},o))},[n,o,g]),m=t.useCallback(()=>{g(),n&&(l.current=setTimeout(()=>{i(!1)},r))},[n,r,g]),p=t.useCallback(()=>{l.current&&(clearTimeout(l.current),l.current=null)},[]);return t.useEffect(()=>()=>g(),[g]),{isOpen:n,openCard:h,closeCard:m,cancelCloseTimer:p,triggerRef:s,contentRef:d,contentId:c,triggerId:u}}({openDelay:a,closeDelay:l});return o.createElement(Bs,{value:d},o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},null==i?void 0:i.container,s),n))};As.Trigger=e=>{var{children:n,views:i,asChild:a=!1}=e,l=h(e,Ws),{openCard:s,closeCard:d,triggerRef:c,contentId:u,triggerId:g}=Ps(),m=Object.assign({ref:c,onMouseEnter:()=>s(),onMouseLeave:()=>d(),onFocus:()=>s(),onBlur:()=>d(),id:g,"aria-describedby":u},null==i?void 0:i.container,l);if(a&&t.isValidElement(n)){var p=t.Children.only(n);return t.cloneElement(p,Object.assign({},m,p.props))}return o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},m),n)},As.Content=e=>{var{children:n,views:i,side:a="bottom",align:l="center",sideOffset:s=8,style:d,backgroundColor:c="white",borderRadius:u="4px",boxShadow:g="0px 2px 8px rgba(0, 0, 0, 0.15)",padding:m="12px",minWidth:p="200px",maxWidth:v="300px"}=e,b=h(e,Vs),{isOpen:x,cancelCloseTimer:f,closeCard:w,contentRef:E,triggerRef:y,contentId:C,triggerId:k}=Ps(),j=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 n={position:"absolute",zIndex:1e3};switch(t){case"top":n.bottom="100%",n.marginBottom=r,"start"===o?n.left=0:"center"===o?(n.left="50%",n.transform="translateX(-50%)"):"end"===o&&(n.right=0);break;case"right":n.left="100%",n.marginLeft=r,"start"===o?n.top=0:"center"===o?(n.top="50%",n.transform="translateY(-50%)"):"end"===o&&(n.bottom=0);break;case"bottom":n.top="100%",n.marginTop=r,"start"===o?n.left=0:"center"===o?(n.left="50%",n.transform="translateX(-50%)"):"end"===o&&(n.right=0);break;case"left":n.right="100%",n.marginRight=r,"start"===o?n.top=0:"center"===o?(n.top="50%",n.transform="translateY(-50%)"):"end"===o&&(n.bottom=0)}return n}((e=>{var[o,r]=t.useState(null),n=t.useCallback(()=>{e.current&&r(e.current.getBoundingClientRect())},[e]);return t.useLayoutEffect(()=>{if(e.current)return n(),window.addEventListener("resize",n),window.addEventListener("scroll",n),()=>{window.removeEventListener("resize",n),window.removeEventListener("scroll",n)}},[e,n]),o})(y),a,l,s);return x?o.createElement(r.View,Object.assign({ref:E,id:C,role:"tooltip","aria-labelledby":k,onMouseEnter:()=>f(),onMouseLeave:()=>w(),backgroundColor:c,borderRadius:u,boxShadow:g,padding:m,minWidth:p,maxWidth:v,zIndex:1e3,style:Object.assign({},j,d)},null==i?void 0:i.container,b),n):null};var Fs={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 16px",fontSize:"18px"}},Ns={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"}},Us={horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},Gs={active:{backgroundColor:"color.gray.200",fontWeight:"bold"},hover:{backgroundColor:"color.gray.100"},disabled:{opacity:.5,cursor:"not-allowed"}},Ys=["children","orientation","size","variant","views"],Ks=t.createContext({activeMenuId:null,setActiveMenuId:()=>{},openMenuId:null,setOpenMenuId:()=>{},isMenuOpen:()=>!1,toggleMenu:()=>{},orientation:"horizontal",size:"md",variant:"default"}),Xs=()=>t.useContext(Ks),Zs=e=>{var{value:t,children:r}=e;return o.createElement(Ks.Provider,{value:t},r)},qs=e=>{var{children:t,orientation:n="horizontal",size:i="md",variant:a="default",views:l}=e,s=h(e,Ys);return o.createElement("horizontal"===n?r.Horizontal:r.Vertical,Object.assign({role:"menubar","aria-orientation":n},Us[n],Ns[a],null==l?void 0:l.container,s),t)},Js=e=>{var{children:t,id:n,disabled:i=!1,views:a}=e,{orientation:l}=Xs();return o.createElement("horizontal"===l?r.Horizontal:r.Vertical,Object.assign({role:"none",position:"relative",opacity:i?.5:1,pointerEvents:i?"none":"auto"},null==a?void 0:a.menu),o.Children.map(t,e=>o.isValidElement(e)?o.cloneElement(e,Object.assign({},e.props,{menuId:n})):e))},Qs=e=>{var{children:t,menuId:n,disabled:i=!1,views:a}=e,{activeMenuId:l,setActiveMenuId:s,toggleMenu:d,isMenuOpen:c,size:u}=Xs(),g=l===n,h=c(n);return o.createElement(r.View,Object.assign({id:"menubar-trigger",role:"menuitem","aria-haspopup":"true","aria-expanded":h,userSelect:"none",display:"flex",alignItems:"center",justifyContent:"space-between"},Fs[u],g?Gs.active:{},i?Gs.disabled:{},{_hover:i?{}:Gs.hover,onClick:()=>{i||(s(n),d(n))}},null==a?void 0:a.trigger),t)},$s=e=>{var{children:t,menuId:n,views:i}=e,{isMenuOpen:a,orientation:l}=Xs();return a(n)?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==i?void 0:i.content),t):null},ed=e=>{var{children:t,icon:n,disabled:i=!1,onClick:a,views:l}=e,{size:s}=Xs();return o.createElement(r.View,Object.assign({role:"menuitem",cursor:i?"not-allowed":"pointer",userSelect:"none",display:"flex",alignItems:"center",opacity:i?.5:1},Fs[s],{_hover:i?{}:Gs.hover,onClick:()=>{!i&&a&&a()}},null==l?void 0:l.item),n&&o.createElement(r.View,Object.assign({marginRight:8},null==l?void 0:l.icon),n),t)},td=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))},od=e=>{var{items:t,orientation:n,size:i,variant:a,views:l}=e;return o.createElement(qs,{orientation:n,size:i,variant:a,views:l},t.map(e=>o.createElement(Js,{key:e.id,id:e.id,disabled:e.disabled,views:l},o.createElement(Qs,{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($s,{menuId:e.id,views:l},e.items.map((e,t)=>e.separator?o.createElement(td,{key:"separator-"+t,views:l}):o.createElement(ed,{key:e.id,id:e.id,icon:e.icon,disabled:e.disabled,onClick:e.onClick,views:l},e.label))))))},rd=["items","orientation","size","variant","defaultActiveMenuId","defaultOpenMenuId","views"],nd=e=>{var{items:r,orientation:n="horizontal",size:i="md",variant:a="default",defaultActiveMenuId:l=null,defaultOpenMenuId:s=null,views:d}=e,c=h(e,rd),{activeMenuId:u,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,n]=t.useState(e),[i,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!==i&&a(null)},t=e=>{"Escape"===e.key&&null!==i&&a(null)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[i]),{activeMenuId:r,setActiveMenuId:n,openMenuId:i,setOpenMenuId:a,isMenuOpen:e=>i===e,toggleMenu:e=>{a(t=>t===e?null:e)}}}(l,s);return o.createElement(Zs,{value:{activeMenuId:u,setActiveMenuId:g,openMenuId:m,setOpenMenuId:p,isMenuOpen:v,toggleMenu:b,orientation:n,size:i,variant:a}},o.createElement(od,Object.assign({items:r,orientation:n,size:i,variant:a,views:d},c)))};nd.Root=qs,nd.Menu=Js,nd.Trigger=Qs,nd.Content=$s,nd.Item=ed,nd.Separator=td;var id={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"}},ad={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"}}},ld={rounded:{borderRadius:"4px"},square:{borderRadius:"0px"},circular:{borderRadius:"50%"}},sd={backgroundColor:"color.blue.500",color:"color.white",_hover:{backgroundColor:"color.blue.600"}},dd={opacity:.5,cursor:"not-allowed",_hover:{backgroundColor:"transparent"}},cd=["currentPage","totalPages","onPageChange","pageSize","pageSizeOptions","onPageSizeChange","showPageSizeSelector","showPageInfo","maxPageButtons","showFirstLastButtons","size","variant","shape","visiblePageNumbers","views"],ud=e=>{var{currentPage:t,totalPages:n,onPageChange:i,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:c=!0,maxPageButtons:u=5,showFirstLastButtons:g=!1,size:m="md",variant:p="default",shape:v="rounded",visiblePageNumbers:b,views:x}=e,f=h(e,cd),w=e=>{e<1||e>n||e===t||i(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"},id[m],ad[p],ld[v],1===t?dd:{},{onClick:()=>w(1),"aria-label":"First page",disabled:1===t},null==x?void 0:x.navigationButton),o.createElement(yt,{orientation:"left",widthHeight:16}),o.createElement(yt,{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"},id[m],ad[p],ld[v],1===t?dd:{},{onClick:()=>w(t-1),"aria-label":"Previous page",disabled:1===t},null==x?void 0:x.navigationButton),o.createElement(yt,{orientation:"left",widthHeight:16})),b.map((e,n)=>((e,n)=>{if("..."===e)return o.createElement(r.View,Object.assign({key:"ellipsis-"+n,display:"flex",alignItems:"center",justifyContent:"center"},id[m],null==x?void 0:x.ellipsis),"...");var i=e===t;return o.createElement(r.View,Object.assign({key:"page-"+e,as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:i?"default":"pointer"},id[m],ad[p],ld[v],i?sd:{},{onClick:()=>w(e),"aria-label":"Page "+e,"aria-current":i?"page":void 0},i?null==x?void 0:x.activePageButton:null==x?void 0:x.pageButton),e)})(e,n)),o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:t===n?"not-allowed":"pointer"},id[m],ad[p],ld[v],t===n?dd:{},{onClick:()=>w(t+1),"aria-label":"Next page",disabled:t===n},null==x?void 0:x.navigationButton),o.createElement(yt,{orientation:"right",widthHeight:16})),g&&o.createElement(r.View,Object.assign({as:"button",display:"flex",alignItems:"center",justifyContent:"center",cursor:t===n?"not-allowed":"pointer"},id[m],ad[p],ld[v],t===n?dd:{},{onClick:()=>w(n),"aria-label":"Last page",disabled:t===n},null==x?void 0:x.navigationButton),o.createElement(yt,{orientation:"right",widthHeight:16}),o.createElement(yt,{orientation:"right",widthHeight:16,marginLeft:"-8px"})),c&&o.createElement(V,Object.assign({marginLeft:16,color:"color.gray.600"},null==x?void 0:x.pageInfo),"Page ",t," of ",n),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))))},gd=["currentPage","totalPages","onPageChange","pageSize","pageSizeOptions","onPageSizeChange","showPageSizeSelector","showPageInfo","maxPageButtons","showFirstLastButtons","size","variant","shape","views"],hd=(e=>({solid:"solid",dashed:"dashed",dotted:"dotted"}))(),md={thin:"1px",medium:"2px",thick:"4px"},pd={transition:"all 0.2s ease"},vd={fontSize:"14px",color:"color.gray.500",paddingHorizontal:"8px",transition:"all 0.2s ease"},bd=["orientation","variant","thickness","color","spacing","label","decorative","views","themeMode"],xd=e=>{var{orientation:t="horizontal",variant:n="solid",thickness:i="thin",color:a,spacing:l="0px",label:s,decorative:d=!1,views:c}=e,u=h(e,bd),g=(r.useTheme(),a||"color.gray.200"),m=hd[n],p=md[i],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,u),o.createElement(r.View,Object.assign({height:"0px",flexGrow:1,borderTopWidth:p,borderTopStyle:m,borderTopColor:g},pd,null==c?void 0:c.container)),o.createElement(V,Object.assign({},vd,null==c?void 0:c.label),s),o.createElement(r.View,Object.assign({height:"0px",flexGrow:1,borderTopWidth:p,borderTopStyle:m,borderTopColor:g},pd,null==c?void 0:c.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},pd,v,null==c?void 0:c.container,u))},fd=e=>o.createElement(xd,Object.assign({},e)),wd=fd,Ed=fd,yd={sm:{expandedWidth:"240px",collapsedWidth:"64px"},md:{expandedWidth:"280px",collapsedWidth:"72px"},lg:{expandedWidth:"320px",collapsedWidth:"80px"},xl:{expandedWidth:"360px",collapsedWidth:"88px"}},Cd=(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"}}))(),kd={left:{left:0,borderRightWidth:"1px",borderRightStyle:"solid",borderRightColor:"color.gray.200"},right:{right:0,borderLeftWidth:"1px",borderLeftStyle:"solid",borderLeftColor:"color.gray.200"}},jd={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)"}},Id={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)"},Sd=["children","showToggleButton","views"],Od=["children","views"],zd=["children","views"],Hd=["children","position","size","variant","fixed","hasBackdrop","expandedWidth","collapsedWidth","breakpointBehavior","elevation","transitionPreset","ariaLabel","isExpanded","isMobile","collapse","views","themeMode"],Md=t.createContext({isExpanded:!0,toggleExpanded:()=>{},expand:()=>{},collapse:()=>{},position:"left",size:"md",variant:"default"}),Td=()=>t.useContext(Md),Rd=e=>{var{value:t,children:r}=e;return o.createElement(Md.Provider,{value:t},r)},Dd=e=>{var{children:t,position:n="left",size:i="md",variant:a="default",fixed:l=!1,hasBackdrop:s=!0,expandedWidth:d,collapsedWidth:c,breakpointBehavior:u="overlay",elevation:g="none",transitionPreset:m="normal",ariaLabel:p="Sidebar navigation",isExpanded:v,isMobile:b,collapse:x,views:f}=e,w=h(e,Hd),E=yd[i],y=v?d||E.expandedWidth:c||E.collapsedWidth,C=!b||b&&"hide"!==u,k=l||b&&"overlay"===u?"fixed":"relative";return o.createElement(o.Fragment,null,s&&b&&v&&"overlay"===u&&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:k,top:0,height:"100vh",width:y,zIndex:999,transition:Id[m],transform:b&&"overlay"===u&&!v?"translateX("+("left"===n?"-100%":"100%")+")":"translateX(0)",role:"navigation","aria-label":p},Cd[a],kd[n],jd[g],null==f?void 0:f.container,w),o.Children.map(t,e=>e)))},Wd=["children","position","size","variant","defaultExpanded","expanded","onExpandedChange","fixed","hasBackdrop","showToggleButton","expandedWidth","collapsedWidth","breakpoint","breakpointBehavior","views"],Vd=e=>{var{children:r,position:n="left",size:i="md",variant:a="default",defaultExpanded:l=!0,expanded:s,onExpandedChange:d,fixed:c=!1,hasBackdrop:u=!0,showToggleButton:g=!0,expandedWidth:m,collapsedWidth:p,breakpoint:v=768,breakpointBehavior:b="overlay",views:x}=e,f=h(e,Wd),{isExpanded:w,toggleExpanded:E,expand:y,collapse:C,isMobile:k}=function(e,o,r,n){void 0===e&&(e=!0);var[i,a]=t.useState(void 0!==o?o:e),[l,s]=t.useState(!!n&&window.innerWidth<n);return t.useEffect(()=>{void 0!==o&&a(o)},[o]),t.useEffect(()=>{if(n){var e=()=>{var e=window.innerWidth<n;s(e)};return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}}},[n]),{isExpanded:i,toggleExpanded:()=>{var e=!i;a(e),r&&r(e)},expand:()=>{i||(a(!0),r&&r(!0))},collapse:()=>{i&&(a(!1),r&&r(!1))},isMobile:l}}(l,s,d,v);return o.createElement(Rd,{value:{isExpanded:w,toggleExpanded:E,expand:y,collapse:C,position:n,size:i,variant:a,views:x}},o.createElement(Dd,Object.assign({position:n,size:i,variant:a,fixed:c,hasBackdrop:u,showToggleButton:g,expandedWidth:m,collapsedWidth:p,breakpoint:v,breakpointBehavior:b,isExpanded:w,isMobile:k,toggleExpanded:E,expand:y,collapse:C,views:x},f),r))};Vd.Header=e=>{var{children:t,showToggleButton:n=!0,views:i}=e,a=h(e,Sd),{isExpanded:l,toggleExpanded:s,position:d}=Td();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==i?void 0:i.header,a),l?o.createElement(r.Horizontal,{width:"100%",alignItems:"center",justifyContent:"space-between"},t,n&&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==i?void 0:i.toggleButton),o.createElement(yt,Object.assign({orientation:"left"===d?"left":"right",widthHeight:16},null==i?void 0:i.toggleButtonIcon)))):o.createElement(r.View,{width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},n&&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==i?void 0:i.toggleButton),o.createElement(yt,Object.assign({orientation:"left"===d?"right":"left",widthHeight:16},null==i?void 0:i.toggleButtonIcon)))))},Vd.Content=e=>{var{children:t,views:n}=e,i=h(e,Od),{isExpanded:a}=Td();return o.createElement(r.View,Object.assign({flex:"1",width:"100%",overflowY:"auto",overflowX:"hidden",padding:a?"16px":"8px"},null==n?void 0:n.content,i),t)},Vd.Footer=e=>{var{children:t,views:n}=e,i=h(e,zd),{isExpanded:a}=Td();return o.createElement(r.View,Object.assign({width:"100%",padding:"16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200"},null==n?void 0:n.footer,i),a?t:null)},Vd.useContext=Td;var Ld={horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},Bd=(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"}}}))(),Pd={width:"2px",height:"20px",backgroundColor:"color.gray.400",margin:"0 1px"},_d={width:"20px",height:"2px",backgroundColor:"color.gray.400",margin:"1px 0"},Ad=["children","id","defaultSize","minSize","maxSize","collapsible","defaultCollapsed","onCollapseChange","views"],Fd=["id","position","disabled","withVisualIndicator","withCollapseButton","collapseTarget","views"],Nd=["children","orientation","size","variant","defaultSizes","minSize","maxSize","collapsible","containerRef","autoSaveId","views"],Ud=t.createContext({orientation:"horizontal",size:"md",variant:"default",isResizing:!1,setIsResizing:()=>{},registerPanel:()=>{},unregisterPanel:()=>{},getPanelSize:()=>0,setPanelSize:()=>{},isPanelCollapsed:()=>!1,togglePanelCollapse:()=>{},startResize:()=>{},onResize:()=>{},endResize:()=>{}}),Gd=()=>t.useContext(Ud),Yd=e=>{var{value:t,children:r}=e;return o.createElement(Ud.Provider,{value:t},r)},Kd=e=>{var{children:t,orientation:n="horizontal",size:i="md",variant:a="default",collapsible:l=!1,containerRef:s,views:d}=e,c=h(e,Nd);return o.createElement("horizontal"===n?r.Horizontal:r.Vertical,Object.assign({ref:s,width:"100%",height:"100%",position:"relative",overflow:"hidden"},Ld[n],null==d?void 0:d.container,c),t)},Xd=["children","orientation","size","variant","defaultSizes","onSizesChange","minSize","maxSize","collapsible","autoSaveId","storage","keyboardResizeBy","views"],Zd=e=>{var{children:r,orientation:n="horizontal",size:i="md",variant:a="default",defaultSizes:l,onSizesChange:s,minSize:d=50,maxSize:c,collapsible:u=!1,autoSaveId:g,storage:m,keyboardResizeBy:p=10,views:v}=e,b=h(e,Xd),{isResizing:x,setIsResizing:f,containerRef:w,registerPanel:E,unregisterPanel:y,getPanelSize:C,setPanelSize:k,isPanelCollapsed:j,togglePanelCollapse:I,startResize:S,onResize:O,endResize:z}=function(e,o,r,n,i,a,l,s,d){void 0===n&&(n=50),void 0===i&&(i=Infinity),void 0===a&&(a=!1),void 0===d&&(d=10);var[c,u]=t.useState(!1),[g,h]=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!==g.length){var e=g.map(e=>({id:e.id,size:e.size,collapsed:e.collapsed||!1}));x.current.setItem(l,JSON.stringify({sizes:e}))}},[l,g]),y=t.useCallback((e,t,o,r,l)=>{h(s=>s.some(t=>t.id===e)?s:[...s,{id:e,size:t,minSize:null!=o?o:n,maxSize:null!=r?r:i,collapsible:null!=l?l:a,collapsed:!1}])},[n,i,a]),C=t.useCallback(e=>{h(t=>t.filter(t=>t.id!==e))},[]),k=t.useCallback(e=>{var t=g.find(t=>t.id===e);return t?t.size:0},[g]),j=t.useCallback((e,t)=>{h(o=>o.map(o=>o.id===e?Object.assign({},o,{size:t}):o))},[]),I=t.useCallback(e=>{var t=g.find(t=>t.id===e);return!!t&&!!t.collapsed},[g]),S=t.useCallback(e=>{h(t=>{var o=t.findIndex(t=>t.id===e);if(-1===o)return t;var r=t[o];if(!r.collapsible)return t;var n=Object.assign({},r,{collapsed:!r.collapsed}),i=[...t];return i[o]=n,i})},[]),O=t.useCallback((e,t)=>{p.current=e,v.current=t,b.current=g.map(e=>e.size),u(!0)},[g]),z=t.useCallback(e=>{var t,o,r,a;if(c&&p.current){var l=e-v.current,s=-1,d=p.current.match(/\d+$/);if(d&&(s=parseInt(d[0],10)-1),-1===s&&g.length>=2&&(s=0),!(s<0||s>=g.length-1)){var u=g[s],m=g[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:n,Math.min(null!=(o=u.maxSize)?o:i,x)),f=Math.max(null!=(r=m.minSize)?r:n,Math.min(null!=(a=m.maxSize)?a:i,f)),h(e=>e.map((e,t)=>t===s?Object.assign({},e,{size:x}):t===s+1?Object.assign({},e,{size:f}):e))}}}},[c,g,e,n,i]),H=t.useCallback(()=>{c&&r&&r(g.map(e=>e.size)),p.current=null,u(!1),l&&E()},[c,g,r,l,E]),M=t.useCallback(t=>{if(c&&p.current){var o=-1,r=p.current.match(/\d+$/);if(r&&(o=parseInt(r[0],10)-1),-1===o&&g.length>=2&&(o=0),!(o<0||o>=g.length-1)){var n=0;"horizontal"===e?("ArrowLeft"===t.key&&(n=-d),"ArrowRight"===t.key&&(n=d),"Home"===t.key&&(n=-100),"End"===t.key&&(n=100)):("ArrowUp"===t.key&&(n=-d),"ArrowDown"===t.key&&(n=d),"Home"===t.key&&(n=-100),"End"===t.key&&(n=100)),0!==n&&(t.preventDefault(),z(v.current+n)),"Escape"===t.key&&(h(e=>e.map((e,t)=>Object.assign({},e,{size:b.current[t]}))),H())}}},[c,g,e,z,H,d]);return t.useEffect(()=>{var t=t=>{c&&z("horizontal"===e?t.clientX:t.clientY)},o=t=>{if(c&&0!==t.touches.length){var o=t.touches[0];z("horizontal"===e?o.clientX:o.clientY)}},r=()=>{c&&H()};return c&&(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=""}},[c,e,z,H,M]),t.useEffect(()=>{if(0!==g.length){if(l){var e=w();if(e)return void h(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()/g.length;h(e=>e.map(e=>Object.assign({},e,{size:t})))}}},[g.length,o,f,l,w]),t.useEffect(()=>{if(o&&0!==o.length&&0!==g.length){var e=f(),t=o.map(t=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:"number"==typeof t?t:parseFloat(t));h(e=>e.map((e,o)=>Object.assign({},e,{size:o<t.length?t[o]:e.size})))}},[o,g.length,f]),t.useEffect(()=>{g.length>0&&l&&!c&&E()},[g,l,c,E]),{isResizing:c,setIsResizing:u,containerRef:m,panels:g,registerPanel:y,unregisterPanel:C,getPanelSize:k,setPanelSize:j,isPanelCollapsed:I,togglePanelCollapse:S,startResize:O,onResize:z,endResize:H}}(n,l,s,d,c,u,g,m,p);return o.createElement(Yd,{value:{orientation:n,size:i,variant:a,isResizing:x,setIsResizing:f,registerPanel:E,unregisterPanel:y,getPanelSize:C,setPanelSize:k,isPanelCollapsed:j,togglePanelCollapse:I,startResize:S,onResize:O,endResize:z}},o.createElement(Kd,Object.assign({orientation:n,size:i,variant:a,defaultSizes:l,minSize:d,maxSize:c,collapsible:u,autoSaveId:g,keyboardResizeBy:p,containerRef:w,views:v},b),r))};Zd.Panel=e=>{var{children:n,id:i,defaultSize:a,minSize:l,maxSize:s,collapsible:d,defaultCollapsed:c,onCollapseChange:u,views:g}=e,m=h(e,Ad),{orientation:p,registerPanel:v,unregisterPanel:b,getPanelSize:x,isPanelCollapsed:f,togglePanelCollapse:w}=Gd(),E="string"==typeof a&&a.endsWith("%")?0:"number"==typeof a?a:0;t.useEffect(()=>(v(i,E,l,s,d),()=>b(i)),[i,E,l,s,d,v,b]);var y=x(i),C=f(i);return t.useEffect(()=>{u&&void 0!==C&&u(C)},[C,u]),t.useEffect(()=>{d&&c&&!C&&w(i)},[i,d,c,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(i),"aria-label":"Expand panel "+i,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),n)},Zd.Handle=e=>{var{id:t,position:n="both",disabled:i=!1,withVisualIndicator:a=!0,withCollapseButton:l=!1,collapseTarget:s,views:d}=e,c=h(e,Fd),{orientation:u,size:g,variant:m,startResize:p,isPanelCollapsed:v,togglePanelCollapse:b}=Gd(),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":u,"aria-valuemin":0,"aria-valuemax":100,tabIndex:i?-1:0,cursor:"horizontal"===u?"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,u),Bd[m],{onMouseDown:e=>{i||(e.preventDefault(),p(t,"horizontal"===u?e.clientX:e.clientY))},onTouchStart:e=>{if(!i&&0!==e.touches.length){e.preventDefault();var o=e.touches[0];p(t,"horizontal"===u?o.clientX:o.clientY)}},onKeyDown:e=>{i||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),p(t,0))},opacity:i?.5:1,pointerEvents:i?"none":"auto"},null==d?void 0:d.handle,c),a&&o.createElement(r.View,Object.assign({display:"flex",alignItems:"center",justifyContent:"center",width:"horizontal"===u?"100%":"auto",height:"vertical"===u?"100%":"auto",pointerEvents:"none"},null==d?void 0:d.handleIcon),"horizontal"===u?o.createElement(r.Horizontal,{gap:1},o.createElement(r.View,Object.assign({},Pd)),o.createElement(r.View,Object.assign({},Pd))):o.createElement(r.Vertical,{gap:1},o.createElement(r.View,Object.assign({},_d)),o.createElement(r.View,Object.assign({},_d)))),l&&x&&o.createElement(r.View,Object.assign({position:"absolute",top:"horizontal"===u?"-20px":"50%",left:"horizontal"===u?"50%":"-20px",transform:"horizontal"===u?"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 qd={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"}}},Jd={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"}},Qd=new Map,$d=s.create(e=>({toasts:[],add:function(t,o,r,n){void 0===n&&(n={});var i=n.id||Math.random().toString(36).substring(2,9),a=Object.assign({id:i,variant:t,title:o,description:r,createdAt:Date.now(),isVisible:!0},n);if(e(e=>({toasts:[...e.toasts,a]})),0!==n.duration){var l=setTimeout(()=>{$d.getState().remove(i)},n.duration||5e3);Qd.set(i,l)}return i},remove:t=>{e(e=>({toasts:e.toasts.map(e=>e.id===t?Object.assign({},e,{isVisible:!1}):e)})),Qd.has(t)&&(clearTimeout(Qd.get(t)),Qd.delete(t)),setTimeout(()=>{e(e=>({toasts:e.toasts.filter(e=>e.id!==t)}))},300)},removeAll:()=>{Qd.forEach(clearTimeout),Qd.clear(),e(e=>({toasts:e.toasts.map(e=>Object.assign({},e,{isVisible:!1}))})),setTimeout(()=>{e({toasts:[]})},300)}})),ec=(e,t,o,r)=>$d.getState().add(e,t,o,r),tc=(e,t,o)=>ec("info",e,t,o),oc=(e,t,o)=>ec("success",e,t,o),rc=(e,t,o)=>ec("warning",e,t,o),nc=(e,t,o)=>ec("error",e,t,o),ic=e=>{$d.getState().remove(e)},ac=()=>{$d.getState().removeAll()},lc=e=>{var{variant:t,title:n,description:i,onClose:a,isClosable:l=!0,action:s,actionText:d,showIcon:c=!0,theme:u,views:g,render:h,icon:m,id:p,isVisible:v=!0}=e,b=null!=u?u:qd;return h?o.createElement(o.Fragment,null,h({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==g?void 0:g.container),c&&o.createElement(r.View,Object.assign({marginTop:"2px"},null==g?void 0:g.icon),(()=>{if(void 0!==m)return m;switch(t){case"info":return o.createElement(Lt,{widthHeight:20,color:b.info.icon.color});case"success":return o.createElement(Bt,{widthHeight:20,color:b.success.icon.color});case"warning":return o.createElement(Lt,{widthHeight:20,color:b.warning.icon.color,orientation:"down"});case"error":return o.createElement(Xt,{widthHeight:20,color:b.error.icon.color});default:return o.createElement(Lt,{widthHeight:20,color:b.info.icon.color})}})()),o.createElement(r.Vertical,{gap:4,flex:"1"},o.createElement(V,Object.assign({size:"md",fontWeight:"600",color:b[t].content.color,lineHeight:"1.4"},null==g?void 0:g.title),n),i&&o.createElement(V,Object.assign({size:"sm",color:b[t].content.color,fontWeight:"400",lineHeight:"1.5"},null==g?void 0:g.description),i),s&&d&&o.createElement(V,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==g?void 0:g.actionButton),d)),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==g?void 0:g.closeButton),o.createElement(Ht,{widthHeight:16,color:b[t].content.color})))},sc=e=>{var{position:t="top-right",gap:n=8,limit:i=5,containerStyle:a}=e,{toasts:l,remove:s}=$d(),d=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(-i)}),e},[l,t,i])[t];return o.createElement(r.View,Object.assign({position:"fixed",zIndex:9999,display:"flex",flexDirection:t.includes("bottom")?"column-reverse":"column",gap:n+"px",width:"fit-content",maxWidth:"100%",pointerEvents:"none"},Jd[t],{style:a}),d.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}))))},dc=e=>o.createElement(lc,Object.assign({},e)),cc=Object.assign(dc,{Container:e=>o.createElement(sc,Object.assign({},e)),show:ec,info:tc,success:oc,warning:rc,error:nc,remove:ic,removeAll:ac}),uc=(e,t)=>{var o,r;if(!e)return!0;var n=e.toLowerCase(),i=t.name.toLowerCase().includes(n),a=(null==(o=t.description)?void 0:o.toLowerCase().includes(n))||!1,l=(null==(r=t.keywords)?void 0:r.some(e=>e.toLowerCase().includes(n)))||!1;return i||a||l},gc={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"},pc={overflow:"auto",padding:"8px 0"},vc={marginBottom:"8px"},bc={padding:"8px 16px",fontSize:"12px",fontWeight:"bold",color:"color.gray.500",textTransform:"uppercase"},xc={display:"flex",alignItems:"center",padding:"8px 16px",cursor:"pointer",userSelect:"none",borderRadius:"4px",margin:"0 8px",_hover:{backgroundColor:"color.gray.100"}},fc={backgroundColor:"color.blue.50",_hover:{backgroundColor:"color.blue.100"}},wc={opacity:.5,cursor:"not-allowed",_hover:{backgroundColor:"transparent"}},Ec={display:"flex",alignItems:"center",justifyContent:"center",marginRight:"12px",color:"color.gray.500"},yc={display:"flex",flexDirection:"column",flex:1},Cc={fontSize:"14px",fontWeight:"medium"},kc={fontSize:"12px",color:"color.gray.500",marginTop:"2px"},jc={display:"flex",alignItems:"center",marginLeft:"12px",fontSize:"12px",color:"color.gray.500"},Ic={display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",color:"color.gray.500",textAlign:"center"},Sc={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 16px",borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"color.gray.200",fontSize:"12px",color:"color.gray.500"},Oc=["value","onValueChange","placeholder","views"],zc=["children","views"],Hc=["heading","children","views"],Mc=["item","selected","onSelect","views"],Tc=["children","views"],Rc=["open","onOpenChange","groups","commands","placeholder","size","variant","emptyState","footer","search","setSearch","selectedIndex","setSelectedIndex","filteredCommands","filteredGroups","listRef","views","filter"],Dc=t.createContext({search:"",setSearch:()=>{},selectedIndex:0,setSelectedIndex:()=>{},filteredCommands:[],onSelect:()=>{}}),Wc=e=>{var{value:t,children:r}=e;return o.createElement(Dc.Provider,{value:t},r)},Vc=e=>{var{value:n,onValueChange:i,placeholder:a="Type a command or search...",views:l}=e,s=h(e,Oc),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(Io,{widthHeight:16,color:"color.gray.400",marginRight:"8px"}),o.createElement(r.View,Object.assign({as:"input",type:"text",value:n,onChange:e=>i(e.target.value),placeholder:a,width:"100%",border:"none",outline:"none",backgroundColor:"transparent",fontSize:"14px",ref:d},null==l?void 0:l.input)))},Lc=e=>{var{heading:t,children:n,views:i}=e,a=h(e,Hc);return o.createElement(r.View,Object.assign({},vc,null==i?void 0:i.container,a),o.createElement(V,Object.assign({},bc,null==i?void 0:i.heading),t),n)},Bc=e=>{var{item:t,selected:n=!1,onSelect:i,views:a}=e,l=h(e,Mc);return o.createElement(r.Horizontal,Object.assign({},xc,n?fc:{},t.disabled?wc:{},{onClick:()=>{!t.disabled&&i&&i()}},null==a?void 0:a.container,l),t.icon&&o.createElement(r.View,Object.assign({},Ec,null==a?void 0:a.icon),t.icon),o.createElement(r.Vertical,Object.assign({},yc,null==a?void 0:a.content),o.createElement(V,Object.assign({},Cc,null==a?void 0:a.name),t.name),t.description&&o.createElement(V,Object.assign({},kc,null==a?void 0:a.description),t.description)),t.shortcut&&o.createElement(V,Object.assign({},jc,null==a?void 0:a.shortcut),t.shortcut))},Pc=e=>{var{children:t="No results found.",views:n}=e,i=h(e,Tc);return o.createElement(r.View,Object.assign({},Ic,null==n?void 0:n.container,i),t)},_c=e=>{var{open:t,onOpenChange:n,groups:i=[],commands:a=[],placeholder:l,size:s="md",variant:d="default",emptyState:c,footer:u,search:g,setSearch:m,selectedIndex:p,setSelectedIndex:v,filteredCommands:b,filteredGroups:x,listRef:f,views:w}=e,E=h(e,Rc);if(!t)return null;var y=o.useCallback(e=>{e.disabled||(e.onSelect(),n(!1),m(""))},[n,m]),C=o.useCallback(e=>e.target===e.currentTarget&&n(!1),[n]),k=o.useMemo(()=>({search:g,setSearch:m,selectedIndex:p,setSelectedIndex:v,filteredCommands:b,onSelect:y}),[g,p,b,y,m,v]),j=i.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(Wc,{value:k},o.createElement(r.View,Object.assign({borderRadius:"8px",overflow:"hidden",display:"flex",flexDirection:"column"},gc[s],hc[d],null==w?void 0:w.container,{onClick:e=>e.stopPropagation()}),o.createElement(Vc,{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?c||o.createElement(Pc,{views:null==w?void 0:w.empty}):j?x.map(e=>o.createElement(Lc,{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(Bc,{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(Bc,{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}}))),u&&o.createElement(r.View,Object.assign({},Sc,null==w?void 0:w.footer),u))))},Ac=["open","onOpenChange","groups","commands","placeholder","size","variant","filter","emptyState","footer","views"],Fc=e=>{var{open:r,onOpenChange:n,groups:i=[],commands:a=[],placeholder:l,size:s="md",variant:d="default",filter:c,emptyState:u,footer:g,views:m}=e,p=h(e,Ac),{search:v,setSearch:b,selectedIndex:x,setSelectedIndex:f,filteredCommands:w,filteredGroups:E,listRef:y}=(e=>{var{open:o,onOpenChange:r,groups:n=[],commands:i=[],filter:a}=e,[l,s]=t.useState(""),[d,c]=t.useState(0),u=t.useRef(null),g=t.useMemo(()=>a||uc,[a]),h=t.useMemo(()=>[...n.flatMap(e=>e.commands),...i],[n,i]),m=t.useMemo(()=>l.trim()?h.filter(e=>g(l,e)):h,[h,l,g]),p=t.useMemo(()=>{if(!l)return n;var e=a||uc;return n.map(t=>Object.assign({},t,{commands:t.commands.filter(t=>e(l,t))})).filter(e=>e.commands.length)},[n,l,a]);t.useEffect(()=>{c(0)},[m.length]);var v=t.useCallback(e=>{if(o)switch(e.key){case"ArrowDown":e.preventDefault(),c(e=>e<m.length-1?e+1:e);break;case"ArrowUp":e.preventDefault(),c(e=>e>0?e-1:e);break;case"Enter":e.preventDefault(),m[d]&&(m[d].onSelect(),r(!1),s(""));break;case"Escape":e.preventDefault(),r(!1),s("")}},[o,m,d,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="'+d+'"]');e&&e.scrollIntoView({block:"nearest"})}},[d,o]),t.useEffect(()=>{o?c(0):s("")},[o]),{search:l,setSearch:s,selectedIndex:d,setSelectedIndex:c,filteredCommands:m,filteredGroups:p,listRef:u}})({open:r,onOpenChange:n,groups:i,commands:a,filter:c});return o.createElement(_c,Object.assign({open:r,onOpenChange:n,groups:i,commands:a,placeholder:l,size:s,variant:d,emptyState:u,footer:g,search:v,setSearch:b,selectedIndex:x,setSelectedIndex:f,filteredCommands:w,filteredGroups:E,listRef:y,views:m},p))};Fc.Input=Vc,Fc.List=e=>{var{children:t,views:n}=e,i=h(e,zc);return o.createElement(r.View,Object.assign({},pc,null==n?void 0:n.container,i),t)},Fc.Group=Lc,Fc.Item=Bc,Fc.Empty=Pc;var Nc=()=>Math.random().toString(36).substring(2,11),Uc={sm:{padding:"4px 8px",fontSize:"12px",maxWidth:"200px"},md:{padding:"6px 10px",fontSize:"14px",maxWidth:"250px"},lg:{padding:"8px 12px",fontSize:"16px",maxWidth:"300px"}},Gc=(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"}}))(),Yc=["children","views","asChild"],Kc=["children","views"],Xc=["content","children","position","align","size","variant","showArrow","views","themeMode"],Zc=t.createContext({isOpen:!1,openTooltip:()=>{},closeTooltip:()=>{},triggerRef:{current:null},contentRef:{current:null},contentId:"",triggerId:""}),qc=()=>t.useContext(Zc),Jc=e=>{var{value:t,children:r}=e;return o.createElement(Zc.Provider,{value:t},r)},Qc=e=>{var{children:t,views:n,asChild:i=!1}=e,a=h(e,Yc),{openTooltip:l,closeTooltip:s,triggerRef:d,contentId:c,triggerId:u}=qc(),g=Object.assign({ref:d,onMouseEnter:()=>l(),onMouseLeave:()=>s(),onFocus:()=>l(),onBlur:()=>s(),id:u,"aria-describedby":c},null==n?void 0:n.container,a);return i&&o.isValidElement(t)?o.cloneElement(t,g):o.createElement(r.View,Object.assign({display:"inline-block"},g),t)},$c=e=>{var{content:t,children:n,position:i="top",align:a="center",size:l="md",variant:s="default",showArrow:d=!0,views:c}=e,u=h(e,Xc),{isOpen:g,contentRef:m,contentId:p,triggerId:v}=qc(),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}})(i,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}})(i):{};return o.createElement(r.View,Object.assign({position:"relative",display:"inline-block"},null==c?void 0:c.container,u),o.createElement(Qc,null,n),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)"},Uc[l],Gc[s],b,null==c?void 0:c.content),"string"==typeof t?o.createElement(r.Text,Object.assign({},null==c?void 0:c.text),t):t,d&&o.createElement(r.View,Object.assign({},x,null==c?void 0:c.arrow))))},eu=["content","children","position","align","size","variant","openDelay","closeDelay","showArrow","defaultOpen","isDisabled","views"],tu=e=>{var{content:r,children:n,position:i="top",align:a="center",size:l="md",variant:s="default",openDelay:d=200,closeDelay:c=200,showArrow:u=!0,defaultOpen:g=!1,isDisabled:m=!1,views:p}=e,v=h(e,eu),b=function(e){var{defaultOpen:o=!1,openDelay:r=200,closeDelay:n=200,isDisabled:i=!1}=void 0===e?{}:e,[a,l]=t.useState(o),s=t.useRef(null),d=t.useRef(null),c=t.useRef(null),u=t.useRef(null),g=t.useRef("tooltip-trigger-"+Nc()).current,h=t.useRef("tooltip-content-"+Nc()).current,m=t.useCallback(()=>{i||(u.current&&(clearTimeout(u.current),u.current=null),a||c.current||(c.current=setTimeout(()=>{l(!0),c.current=null},r)))},[a,r,i]),p=t.useCallback(()=>{c.current&&(clearTimeout(c.current),c.current=null),a&&!u.current&&(u.current=setTimeout(()=>{l(!1),u.current=null},n))},[a,n]),v=t.useCallback(()=>{u.current&&(clearTimeout(u.current),u.current=null)},[]);return t.useEffect(()=>()=>{c.current&&clearTimeout(c.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:d,triggerId:g,contentId:h}}({defaultOpen:g,openDelay:d,closeDelay:c,isDisabled:m});return o.createElement(Jc,{value:b},o.createElement($c,Object.assign({content:r,position:i,align:a,size:l,variant:s,showArrow:u,views:p},v),n))};tu.Trigger=Qc,tu.Content=e=>{var{children:t,views:n}=e,i=h(e,Kc),{isOpen:a,contentRef:l,contentId:s,triggerId:d}=qc();return a?o.createElement(r.View,Object.assign({ref:l,id:s,role:"tooltip","aria-labelledby":d},null==n?void 0:n.container,i),t):null};var ou={},ru={width:"100%",transition:"background-color 0.2s ease",listStyleType:"none"},nu={display:"flex",alignItems:"center",width:"100%",padding:"4px 8px",cursor:"pointer",transition:"background-color 0.2s ease, color 0.2s ease",borderRadius:4},iu={paddingLeft:24,overflow:"hidden",borderLeft:"1px solid color.gray.100",marginLeft:12,paddingTop:4,paddingBottom:4},au={marginRight:8,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},lu={transition:"transform 0.2s ease",display:"flex",alignItems:"center",justifyContent:"center",marginLeft:"auto",paddingLeft:8,flexShrink:0},su={sm:{fontSize:12,padding:"4px 6px"},md:{fontSize:14,padding:"6px 8px"},lg:{fontSize:16,padding:"8px 10px"}},du={default:{},outline:{border:"1px solid",borderColor:"color.gray.300"},filled:{backgroundColor:"color.gray.100"}},cu={selected:{backgroundColor:"color.blue.100",color:"color.blue.100",fontWeight:"medium"},hover:{backgroundColor:"color.gray.100"},disabled:{opacity:.6,cursor:"not-allowed",_hover:{backgroundColor:"transparent"}}},uu=["children","views","baseId"],gu=["value","disabled","icon","children","views","style","draggable"],hu=["children","onClick","onToggleExpand","hasChildren","expanded","icon","disabled","isSelected","isDragging","size","variant","views"],mu=["children","views"],pu=()=>o.createElement(Ct,null),vu=t.createContext(void 0),bu=e=>{var{value:t,children:r}=e;return o.createElement(vu.Provider,{value:t},r)},xu=()=>{var e=t.useContext(vu);if(!e)throw new Error("useTreeContext must be used within a TreeProvider");return e},fu=e=>{var{children:t,views:n,baseId:i}=e,a=h(e,uu),{allowDragAndDrop:l,handleDrop:s,handleDragEnd:d}=xu();return o.createElement(r.Vertical,Object.assign({as:"ul",width:"100%",role:"tree","aria-label":"Tree",id:i,onDragOver:l?e=>{l&&(e.preventDefault(),e.dataTransfer.dropEffect="move")}:void 0,onDrop:l?e=>{l&&s&&(console.log("Drop on container: canceling operation to preserve data"),s(e))}:void 0,onDragEnd:l?e=>{l&&d&&d(e)}:void 0},ou,null==n?void 0:n.container,a),t)},wu=e=>{var{value:t,disabled:n=!1,icon:i,children:a,views:l,style:s,draggable:d}=e,c=h(e,gu),{isItemExpanded:u,toggleItem:g,baseId:m,selectedItem:p,selectItem:v,size:b,variant:x,views:f,allowDragAndDrop:w,draggedItemId:E,dropTarget:y,handleDragStart:C,handleDragOver:k,handleDrop:j,handleDragEnd:I}=xu(),S=u(t),O=p===t,z=E===t,H=w&&!1!==d&&!n,M=(null==y?void 0:y.itemId)===t,T=M&&y?null==y?void 0:y.position:null,R=o.Children.toArray(a).some(e=>o.isValidElement(e)&&e.type===yu),D=e=>{!n&&R&&(g(t),e.stopPropagation())},W=e=>{!n&&(v(t),R&&e.currentTarget.contains(e.target))&&e.target.closest('[data-expander="true"]')},V=Object.assign({},f,l),L=z?Object.assign({opacity:.5,backgroundColor:"color.gray.100",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)"},V.draggedItem):{},B=M?Object.assign({},"before"===T?{borderTop:"2px solid color.blue.500"}:{},"after"===T?{borderBottom:"2px solid color.blue.500"}:{},"inside"===T?{backgroundColor:"rgba(0, 0, 255, 0.1)"}:{}):{};return o.createElement(r.Vertical,Object.assign({as:"li",role:"treeitem","aria-expanded":R?S:void 0,"aria-selected":O,"aria-disabled":n,id:m+"-item-"+t,"data-tree-item-id":t,cursor:H?"grab":void 0,draggable:H,onDragStart:H?e=>{H&&C&&C(e,t)}:void 0,onDragOver:w?e=>{w&&k&&!z&&(e.preventDefault(),e.dataTransfer.dropEffect="move",k(e,t))}:void 0,onDrop:w?e=>{w&&j&&(e.preventDefault(),j(e))}:void 0,onDragEnd:H?e=>{w&&I&&I(e)}:void 0},ru,V.item,s,L,B,c),o.Children.map(a,e=>{if(o.isValidElement(e)){if(e.type===Eu)return o.cloneElement(e,{onClick:W,onToggleExpand:D,hasChildren:R,expanded:S,icon:i,disabled:n,isSelected:O,isDragging:z,size:b,variant:x,views:V});if(e.type===yu)return S?o.cloneElement(e,{views:V}):null}return e}))},Eu=e=>{var{children:t,onClick:n,onToggleExpand:i,hasChildren:a,expanded:l,icon:s,disabled:d,isSelected:c,isDragging:u,size:g="md",variant:m="default",views:p}=e,v=h(e,hu),{allowDragAndDrop:b,dragHandleIcon:x}=xu(),f=Object.assign({},nu,su[g],du[m],c&&!d?cu.selected:{},d?cu.disabled:{},u?{opacity:.5}:{});return o.createElement(r.Horizontal,Object.assign({onClick:n,alignItems:"center",justifyContent:"space-between",cursor:d?"not-allowed":"pointer"},f,{_hover:d?cu.disabled._hover:cu.hover},null==p?void 0:p.itemLabel,v),o.createElement(r.Horizontal,{alignItems:"center",flex:"1"},s&&o.createElement(r.View,Object.assign({},au,null==p?void 0:p.icon),s),"string"==typeof t?o.createElement(V,{isTruncated:!0},t):t,a&&o.createElement(r.View,Object.assign({"data-expander":"true",onClick:i,cursor:"pointer","aria-hidden":"true"},lu,{style:{transform:l?"rotate(0deg)":"rotate(-90deg)"}},null==p?void 0:p.expandIcon),o.createElement(yt,{orientation:"right",size:16}))),b&&!d&&o.createElement(r.View,Object.assign({opacity:.5,_hover:{opacity:1},cursor:"grab",marginLeft:2},null==p?void 0:p.dragHandle),x||o.createElement(pu,null)))},yu=e=>{var{children:t,views:n}=e,i=h(e,mu);return o.createElement(r.Vertical,Object.assign({as:"ul",role:"group"},iu,null==n?void 0:n.itemContent,i),t)},Cu=e=>{var{node:t}=e;return o.createElement(wu,{value:t.id,disabled:t.disabled,icon:t.icon,draggable:!1!==t.draggable,views:Object.assign({},t.style?{container:t.style}:{})},o.createElement(Eu,null,t.label),t.children&&t.children.length>0&&o.createElement(yu,null,t.children.map(e=>o.createElement(Cu,{key:e.id,node:e}))))},ku=e=>{var{items:t}=e;return o.createElement(o.Fragment,null,t.map(e=>o.createElement(Cu,{key:e.id,node:e})))},ju=["children","items","size","variant","defaultExpandedItems","expandedItems","onExpandedItemsChange","defaultSelectedItem","selectedItem","onItemSelect","multiSelect","allowDragAndDrop","dragHandleIcon","onItemsReorder","onDragStart","onDragEnd","views"],Iu=e=>{var{children:r,items:n,size:i="md",variant:a="default",defaultExpandedItems:l,expandedItems:s,onExpandedItemsChange:d,defaultSelectedItem:c,selectedItem:u,onItemSelect:g,multiSelect:m=!1,allowDragAndDrop:p=!1,dragHandleIcon:v,onItemsReorder:b,onDragStart:x,onDragEnd:f,views:w}=e,E=h(e,ju),y=(e=>{var{defaultExpandedItems:o=[],expandedItems:r,onExpandedItemsChange:n,defaultSelectedItem:i,selectedItem:a,onItemSelect:l,multiSelect:s=!1,items:d,allowDragAndDrop:c=!1,onItemsReorder:u,onDragStart:g,onDragEnd:h}=e,m=t.useMemo(()=>"tree-"+Math.random().toString(36).substring(2,9),[]),[p,v]=t.useState(o||[]),[b,x]=t.useState(i),[f,w]=t.useState(null),[E,y]=t.useState(d||[]),[C,k]=t.useState(null);t.useEffect(()=>{d&&y(d)},[d]);var j=void 0!==r,I=j?r:p,S=void 0!==a,O=S?a:b,z=void 0!==d,H=z?d:E,M=t.useCallback((function(e,t,o){void 0===o&&(o=null);for(var r=0;r<e.length;r++){if(e[r].id===t)return{node:e[r],parent:o,index:r};if(e[r].children){var n=M(e[r].children,t,e[r]);if(n.node)return n}}return{node:null,parent:null,index:-1}}),[]),T=t.useCallback((e,t)=>!!e.children&&e.children.some(e=>e.id===t||e.children&&T(e,t)),[]),R=t.useCallback((e,t)=>{for(var o of e){if(o.id===t)return o;if(o.children){var r=R(o.children,t);if(r)return r}}return null},[]),D=t.useCallback((e,t,o,r)=>{var n=JSON.parse(JSON.stringify(e)),i=JSON.parse(JSON.stringify(e)),{node:a,parent:l,index:s}=M(i,t),{node:d,parent:c,index:u}=M(i,o);if(!a||!d)return console.log("Source or target node not found, returning original items"),n;if("inside"===r&&T(a,o))return console.log("Preventing circular reference, returning original items"),n;var g=R(n,t);if(!g)return console.log("Original source node not found, returning original items"),n;var h=JSON.parse(JSON.stringify(g)),m=c?c.children:i,p=u+("after"===r?1:0),v=!l&&!c||l&&c&&l.id===c.id;return v&&s<u&&"after"===r||v&&s<u&&"before"===r&&p--,l?l.children.splice(s,1):i.splice(s,1),"inside"===r?(d.children||(d.children=[]),d.children.push(h)):(p=Math.max(0,Math.min(p,m.length)),m.splice(p,0,h)),i},[M,R,T]),W=t.useCallback(e=>{var t=null!=I&&I.includes(e)?null==I?void 0:I.filter(t=>t!==e):[...I,e];j||v(t),n&&n(t)},[I,j,n]),V=t.useCallback(e=>null==I?void 0:I.includes(e),[I]),L=t.useCallback(e=>{if(S||x(e),l){var t=void 0;H&&(t=R(H,e)||void 0),l(e,t)}},[S,l,H,R]),B=t.useCallback((e,t)=>{c&&(e.dataTransfer.setData("text/plain",t),e.dataTransfer.effectAllowed="move",w(t),k(null),g&&g(t,e))},[c,g]),P=t.useCallback((e,t)=>{if(c&&f&&f!==t){e.preventDefault(),e.dataTransfer.dropEffect="move";var o,r=e.currentTarget.getBoundingClientRect(),i=(e.clientY-r.top)/r.height;if(i<.25)o="before";else if(i>.75)o="after";else{o="inside";var a=R(H||[],f);a&&T(a,t)&&(o="after")}var l=R(H||[],t);if("inside"===o&&l&&(null==I||!I.includes(t))){var s=[...I,t];j||v(s),n&&n(s)}k({itemId:t,position:o})}},[c,f,H,R,T,I,j,n,v]),_=t.useCallback(e=>{if(e.preventDefault(),!c||!f)return w(null),void k(null);try{if(C&&f!==C.itemId){var t=f,{itemId:o,position:r}=C;console.log("Moving node "+t+" "+r+" "+o);var n=R(H||[],t),i=R(H||[],o);if(!n||!i)return void console.error("Source or target node not found in the tree");var a=D(H||[],t,o,r);if(0===a.length&&(H||[]).length>0)return void console.error("Operation would result in data loss, aborting");z||y(a),u&&u(a)}else console.log("Drop canceled or invalid: No changes made to tree structure")}catch(e){console.error("Error during drop operation:",e)}finally{h&&h(f),w(null),k(null)}},[c,f,C,D,H,R,z,u,h]),A=t.useCallback(e=>{var t=f;w(null),k(null),t&&h&&(console.log("Drag canceled: No changes made to tree structure"),h(t))},[f,h]),F=t.useCallback(()=>{if(f&&H)return R(H,f)||void 0},[f,H,R]);return{baseId:m,expandedItems:I,toggleItem:W,isItemExpanded:V,selectedItem:O,selectItem:L,multiSelect:s,allowDragAndDrop:c,draggedItemId:f,dropTarget:C,handleDragStart:B,handleDragOver:P,handleDrop:_,handleDragEnd:A,getDraggedItem:F,items:H}})({defaultExpandedItems:l,expandedItems:s,onExpandedItemsChange:d,defaultSelectedItem:c,selectedItem:u,onItemSelect:g,multiSelect:m,items:n,allowDragAndDrop:p,onItemsReorder:b,onDragStart:x,onDragEnd:f});return o.createElement(bu,{value:{expandedItems:y.expandedItems,toggleItem:y.toggleItem,isItemExpanded:y.isItemExpanded,baseId:y.baseId,selectedItem:y.selectedItem,selectItem:y.selectItem,size:i,variant:a,views:w,allowDragAndDrop:y.allowDragAndDrop,dragHandleIcon:v,draggedItemId:y.draggedItemId,dropTarget:y.dropTarget,handleDragStart:y.handleDragStart,handleDragOver:y.handleDragOver,handleDrop:y.handleDrop,handleDragEnd:y.handleDragEnd,getDraggedItem:y.getDraggedItem}},o.createElement(fu,Object.assign({baseId:y.baseId,views:w},E),n?o.createElement(ku,{items:n}):r))};Iu.Item=wu,Iu.ItemLabel=Eu,Iu.ItemContent=yu;var Su={container:{width:"100%",height:"100%",position:"relative",overflow:"auto",backgroundColor:"color.gray.50"},node:{backgroundColor:"white",borderRadius:16,border:"2px solid",borderColor:"color.gray.300",padding:16,minWidth:200,minHeight:60,boxShadow:"0 2px 4px rgba(0, 0, 0, 0.05)",cursor:"pointer",transition:"all 0.2s ease",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},startNode:{backgroundColor:"color.blue.100",borderColor:"color.blue.300",borderRadius:32},selectedNode:{borderColor:"color.blue.400",boxShadow:"0 0 0 2px color.blue.100"},edge:{stroke:"color.blue.400",strokeWidth:2.5,fill:"none",strokeDasharray:"none",strokeLinecap:"round",strokeLinejoin:"round"},edgeArrow:{fill:"color.blue.400"},edgeLabel:{backgroundColor:"white",padding:"2px 6px",borderRadius:4,fontSize:12,border:"1px solid",borderColor:"color.gray.200"},controls:{position:"absolute",bottom:16,right:16,display:"flex",gap:8,zIndex:10},controlButton:{width:32,height:32,borderRadius:16,backgroundColor:"white",border:"1px solid",borderColor:"color.gray.200",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease",_hover:{backgroundColor:"color.gray.100"}},addNodeButton:{width:28,height:28,borderRadius:14,backgroundColor:"color.blue.100",border:"1px solid",borderColor:"color.blue.300",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)",_hover:{backgroundColor:"color.blue.200",transform:"scale(1.1)"}},nodeContent:{display:"flex",alignItems:"center",gap:12},nodeIcon:{width:32,height:32,borderRadius:4,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},nodeInfo:{display:"flex",flexDirection:"column",gap:2,flexGrow:1,overflow:"hidden"}},Ou={sm:{fontSize:12,padding:12,minWidth:160},md:{fontSize:14,padding:16,minWidth:200},lg:{fontSize:16,padding:20,minWidth:240}},zu={default:{},outline:{borderWidth:2,borderColor:"color.gray.300"},filled:{backgroundColor:"color.gray.100",borderColor:"color.gray.300"}},Hu={selected:Su.selectedNode,hover:{borderColor:"color.gray.300",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)"}},Mu=["node","onSelect","isSelected","isDragging","onDragStart","onDrag","onDragEnd","size","variant","views"],Tu=["onZoomIn","onZoomOut","onReset","views"],Ru=["onClick","views"],Du=["nodes","edges","selectedNodeId","draggedNodeId","onNodeSelect","onAddNode","onNodeDragStart","onNodeDrag","onNodeDragEnd","size","variant","direction","showControls","allowAddingNodes","allowDraggingNodes","views","baseId","viewport","onZoomIn","onZoomOut","onReset","onViewportChange"],Wu=e=>{var t,n,i,a,{node:l,onSelect:s,isSelected:d,isDragging:c,onDragStart:u,size:g="md",variant:m="default",views:p}=e,v=h(e,Mu),b=e=>{"button"in e&&0!==e.button||(e.preventDefault(),!1!==l.draggable&&u&&u(l.id,e))},x=Object.assign({},Ou[g],zu[m]),f=(()=>{switch(l.type){case"start":return Su.startNode;default:return{}}})();return o.createElement(r.View,Object.assign({},Su.node,x,f,d?Hu.selected:{},{onClick:()=>{s&&s(l.id)},onMouseDown:b,onTouchStart:b,cursor:!1===l.draggable?"default":"grab",_hover:Hu.hover},l.style,l.isDragging||c?{cursor:"grabbing",boxShadow:"0 8px 16px rgba(0, 0, 0, 0.2)",zIndex:100}:{},null==p?void 0:p.container,v),l.data&&l.data.label?o.createElement(r.Horizontal,Object.assign({},Su.nodeContent,null==p?void 0:p.content),(null==(t=l.data)?void 0:t.icon)&&o.createElement(r.View,Object.assign({},Su.nodeIcon,null==p?void 0:p.icon),l.data.icon),o.createElement(r.View,Object.assign({},Su.nodeInfo),o.createElement(r.Horizontal,{gap:4,alignItems:"center",justifyContent:"center"},null!=(null==(n=l.data)?void 0:n.number)&&o.createElement(r.Text,{fontWeight:"bold"},l.data.number,". "),o.createElement(r.Text,{fontWeight:"bold",textAlign:"center"},null==(i=l.data)?void 0:i.label)),(null==(a=l.data)?void 0:a.subtitle)&&o.createElement(r.Text,{color:"color.gray.500",fontSize:"sm",textAlign:"center"},l.data.subtitle))):null)},Vu=e=>{var t,n,i,a,l,s,d,c,u,{edge:g,sourceNode:h,targetNode:m,views:p,nodeSize:v="md"}=e;if(!h||!m)return null;var b,x,f,w,E=Ou[v]||Ou.md,y="number"==typeof E.minWidth?E.minWidth:"number"==typeof Su.node.minWidth?Su.node.minWidth:200,C="number"==typeof Su.node.minHeight?Su.node.minHeight:60,k=h.position.x,j=h.position.y,I=m.position.x,S=m.position.y,O=y/2,z=C/2,H=y/2,M=C/2,T=I-k,R=S-j,D=(null==p||null==(t=p.path)?void 0:t.backgroundColor)||"color.blue.500",W=(null==p||null==(n=p.path)?void 0:n.height)||(null==p||null==(i=p.path)?void 0:i.width)||1,V=[],L={x:(k+I)/2,y:(j+S)/2},B=(e,t,n,i,a)=>{var l=Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2)),s=Math.atan2(i-t,n-e)*(180/Math.PI);return o.createElement(r.View,Object.assign({key:a,position:"absolute",left:e,top:t,width:l,height:W,backgroundColor:D,transformOrigin:"0 0",style:{transform:"rotate("+s+"deg)"}},null==p?void 0:p.path))};if(Math.abs(R)>Math.abs(T)){var P=j+R/2;f={x:I,y:P},w={x:I,y:S+(R>0?-M:M)},V.push(B((b={x:k,y:j+(R>0?z:-z)}).x,b.y,(x={x:k,y:P}).x,x.y,g.id+"-s1")),V.push(B(x.x,x.y,f.x,f.y,g.id+"-s2")),V.push(B(f.x,f.y,w.x,w.y,g.id+"-s3")),L={x:(x.x+f.x)/2,y:x.y}}else{var _=k+T/2;f={x:_,y:S},w={x:I+(T>0?-H:H),y:S},V.push(B((b={x:k+(T>0?O:-O),y:j}).x,b.y,(x={x:_,y:j}).x,x.y,g.id+"-s1")),V.push(B(x.x,x.y,f.x,f.y,g.id+"-s2")),V.push(B(f.x,f.y,w.x,w.y,g.id+"-s3")),L={x:x.x,y:(x.y+f.y)/2}}return o.createElement(r.View,{position:"absolute",top:0,left:0,pointerEvents:"none",width:"100%",height:"100%"},V,g.label&&o.createElement(r.View,Object.assign({position:"absolute",left:L.x,top:L.y,transform:"translate(-50%, -50%)",backgroundColor:(null==p||null==(a=p.label)?void 0:a.backgroundColor)||"white",padding:(null==p||null==(l=p.label)?void 0:l.padding)||2,borderRadius:(null==p||null==(s=p.label)?void 0:s.borderRadius)||4,borderWidth:(null==p||null==(d=p.label)?void 0:d.borderWidth)||"1px",borderStyle:(null==p||null==(c=p.label)?void 0:c.borderStyle)||"solid",borderColor:(null==p||null==(u=p.label)?void 0:u.borderColor)||"color.gray.200",zIndex:10},null==p?void 0:p.label),o.createElement(r.Text,{fontSize:"xs",textAlign:"center"},g.label)))},Lu=e=>{var{onZoomIn:t,onZoomOut:n,onReset:i,views:a}=e,l=h(e,Tu);return o.createElement(r.View,Object.assign({},Su.controls,null==a?void 0:a.container,l),o.createElement(r.View,Object.assign({as:"button","aria-label":"Zoom In"},Su.controlButton,{onClick:t},null==a?void 0:a.button),o.createElement(Vo,{size:16})),o.createElement(r.View,Object.assign({as:"button","aria-label":"Zoom Out"},Su.controlButton,{onClick:n},null==a?void 0:a.button),o.createElement(Vt,{size:16})),o.createElement(r.View,Object.assign({as:"button","aria-label":"Reset View"},Su.controlButton,{onClick:i},null==a?void 0:a.button),o.createElement(to,{size:16})))},Bu=e=>{var{onClick:t,views:n}=e,i=h(e,Ru);return o.createElement(r.View,Object.assign({as:"button","aria-label":"Add Node"},Su.addNodeButton,{onClick:t},null==n?void 0:n.container,i),o.createElement(Vo,Object.assign({size:16,color:"color.blue.600"},null==n?void 0:n.icon)))},Pu=e=>{var{nodes:t=[],edges:n=[],selectedNodeId:i,draggedNodeId:a,onNodeSelect:l,onAddNode:s,onNodeDragStart:d,onNodeDrag:c,onNodeDragEnd:u,size:g="md",variant:m="default",showControls:p=!0,allowAddingNodes:v=!0,allowDraggingNodes:b=!0,views:x={},baseId:f,viewport:w={zoom:1,x:0,y:0},onZoomIn:E,onZoomOut:y,onReset:C,onViewportChange:k}=e,j=h(e,Du),[I,S]=o.useState(!1),[O,z]=o.useState({x:0,y:0}),[H,M]=o.useState({x:0,y:0}),T=o.useRef(null);o.useEffect(()=>{if(b){var e=e=>{a&&c&&c(a,{x:e.clientX,y:e.clientY},e)},o=e=>{a&&c&&e.touches.length>0&&c(a,{x:e.touches[0].clientX,y:e.touches[0].clientY},e)},r=()=>{if(a&&u){var e=t.find(e=>e.id===a);e&&u(a,e.position)}};return a&&(document.addEventListener("mousemove",e),document.addEventListener("touchmove",o),document.addEventListener("mouseup",r),document.addEventListener("touchend",r)),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("touchmove",o),document.removeEventListener("mouseup",r),document.removeEventListener("touchend",r)}}},[a,c,u,t,b]);var R=()=>{I&&S(!1)},D=e=>{k&&k(e)},W=(e,t)=>{s&&s(e,t)};return o.createElement(r.View,Object.assign({id:f,role:"application","aria-label":"Flow diagram",ref:T,tabIndex:0,onMouseDown:e=>{(1===e.button||e.altKey)&&(S(!0),z({x:e.clientX,y:e.clientY}),M({x:w.x,y:w.y}),e.preventDefault())},onMouseMove:e=>{if(I){var t=Object.assign({},w,{x:H.x+(e.clientX-O.x)/w.zoom,y:H.y+(e.clientY-O.y)/w.zoom});D(t),e.preventDefault()}},onMouseUp:R,onMouseLeave:R,onWheel:e=>{if(e.ctrlKey||e.metaKey){e.preventDefault();var t=Math.max(.1,Math.min(2,w.zoom+(e.deltaY<0?.1:-.1))),o=Object.assign({},w,{zoom:t});D(o)}},onKeyDown:e=>{var t=20/w.zoom,o=w.x,r=w.y;switch(e.key){case"ArrowUp":r+=t;break;case"ArrowDown":r-=t;break;case"ArrowLeft":o+=t;break;case"ArrowRight":o-=t;break;case"0":if(C)return void C();break;case"+":if(E)return void E();break;case"-":if(y)return void y();break;default:return}var n=Object.assign({},w,{x:o,y:r});D(n),e.preventDefault()},cursor:I?"grabbing":"default"},Su.container,x.container,j),o.createElement(r.View,{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:1,transform:"scale("+w.zoom+") translate("+w.x+"px, "+w.y+"px)",transformOrigin:"center",transition:"transform 0.2s ease",style:{pointerEvents:"none"}},n.map(e=>{var r=t.find(t=>t.id===e.source),n=t.find(t=>t.id===e.target);return r&&n?o.createElement(Vu,{key:e.id,edge:e,sourceNode:r,targetNode:n,views:x.edge,nodeSize:g}):null})),o.createElement(r.View,{position:"relative",width:"100%",height:"100%",zIndex:2,transform:"scale("+w.zoom+") translate("+w.x+"px, "+w.y+"px)",transformOrigin:"center",transition:"transform 0.2s ease"},t.map(e=>{var t,n,s,h;return o.createElement(r.View,{key:e.id,position:"absolute",top:e.position.y,left:e.position.x,transform:"translate(-50%, -50%)"},o.createElement(Wu,{node:e,isSelected:i===e.id,isDragging:a===e.id,onSelect:l,onDragStart:b?d:void 0,onDrag:b?c:void 0,onDragEnd:b?u:void 0,size:g,variant:m,views:x.node}),v&&o.createElement(r.View,{width:"100%",height:"100%"},o.createElement(r.View,{position:"absolute",top:"-20%",left:"50%",transform:"translate(-50%, 0%)",zIndex:5},o.createElement(Bu,{onClick:()=>W(e.id,"top"),views:x.addButton,"aria-label":"Add node above "+((null==(t=e.data)?void 0:t.label)||e.id)})),o.createElement(r.View,{position:"absolute",bottom:"-20%",left:"50%",transform:"translate(-50%, 0%)",zIndex:5},o.createElement(Bu,{onClick:()=>W(e.id,"bottom"),views:x.addButton,"aria-label":"Add node below "+((null==(n=e.data)?void 0:n.label)||e.id)})),o.createElement(r.View,{position:"absolute",left:"0%",top:"50%",transform:"translate(-50%, -50%)",zIndex:5},o.createElement(Bu,{onClick:()=>W(e.id,"left"),views:x.addButton,"aria-label":"Add node left of "+((null==(s=e.data)?void 0:s.label)||e.id)})),o.createElement(r.View,{position:"absolute",right:"0%",top:"50%",transform:"translate(50%, -50%)",zIndex:5},o.createElement(Bu,{onClick:()=>W(e.id,"right"),views:x.addButton,"aria-label":"Add node right of "+((null==(h=e.data)?void 0:h.label)||e.id)}))))}),v&&0===t.length&&o.createElement(r.View,{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},o.createElement(Bu,{onClick:()=>{s&&s(null,"bottom")},views:x.addButton,"aria-label":"Add first node"}))),p&&o.createElement(r.View,Object.assign({position:"absolute",top:40,right:40,zIndex:1e3,display:"flex",flexDirection:"column",gap:8,backgroundColor:"white",padding:4,borderRadius:8,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",border:"1px solid",borderColor:"color.gray.200",pointerEvents:"auto"},null==x?void 0:x.fixedControlsContainer),o.createElement(Lu,{onZoomIn:E,onZoomOut:y,onReset:C,views:x.controls})),o.createElement(r.View,{position:"absolute",bottom:16,left:16,backgroundColor:"white",padding:2,borderRadius:4,fontSize:"xs",border:"1px solid",borderColor:"color.gray.200",zIndex:1e3,pointerEvents:"none"},o.createElement(r.Text,{fontSize:"xs"},"Zoom: ",Math.round(100*w.zoom),"%")))},_u=["children","nodes","edges","size","variant","direction","showControls","allowAddingNodes","allowDraggingNodes","onNodesChange","onEdgesChange","onNodeSelect","onNodeAdd","onNodeDragStart","onNodeDrag","onNodeDragEnd","selectedNodeId","initialViewport","viewport","onViewportChange","views"],Au=e=>{var{nodes:r,edges:n,size:i="md",variant:a="default",direction:l="vertical",showControls:s=!0,allowAddingNodes:d=!0,allowDraggingNodes:c=!0,onNodesChange:u,onEdgesChange:g,onNodeSelect:m,onNodeAdd:p,onNodeDragStart:v,onNodeDrag:b,onNodeDragEnd:x,selectedNodeId:f,initialViewport:w,viewport:E,onViewportChange:y,views:C}=e,k=h(e,_u),j=(e=>{var{initialNodes:o=[],initialEdges:r=[],nodes:n,edges:i,onNodesChange:a,onEdgesChange:l,onNodeSelect:s,selectedNodeId:d,direction:c="vertical",initialViewport:u={zoom:1,x:0,y:0},viewport:g,onViewportChange:h,allowDraggingNodes:m=!0,onNodeDragStart:p,onNodeDrag:v,onNodeDragEnd:b}=e,x=t.useMemo(()=>"flow-"+Math.random().toString(36).substring(2,9),[]),[f,w]=t.useState(o),[E,y]=t.useState(r),[C,k]=t.useState(void 0),[j,I]=t.useState(u),[S,O]=t.useState(null),z=t.useRef(null),H=t.useRef(null),M=void 0!==n,T=M?n:f,R=void 0!==i,D=R?i:E,W=void 0!==d,V=W?d:C,L=void 0!==g,B=L?g:j,P=t.useCallback(e=>{M||w(e),a&&a(e)},[M,a]),_=t.useCallback(e=>{R||y(e),l&&l(e)},[R,l]),A=t.useCallback(e=>{W||k(e),s&&s(e)},[W,s]),F=t.useCallback(e=>{var t=[...T,e];P(t)},[T,P]),N=t.useCallback((e,t,o)=>{var r,n;if(null===e||""===e){var i=Object.assign({},t,{position:{x:150,y:100}});return P([...T,i]),i}var a=null==T?void 0:T.find(t=>t.id===e);if(!a){console.warn("addNodeAfter: Could not find node with id "+e+". Adding node at default position.");var l=Object.assign({},t,{position:{x:100,y:100*T.length+100}});return P([...T,l]),l}var s={x:(null==(r=a.position)?void 0:r.x)||0,y:(null==(n=a.position)?void 0:n.y)||0},d=o||("vertical"===c?"bottom":"right");if("left"===d||"right"===d){var u;s.x=((null==(u=a.position)?void 0:u.x)||0)+("right"===d?275:-275);var g=T.filter(t=>D.some(o=>o.source===e&&o.target===t.id&&Math.abs(t.position.x-s.x)<50));if(g.length>0){var h=g.reduce((e,t)=>t.position.y>e.position.y?t:e);s.y=h.position.y+120}else{var m;s.y=(null==(m=a.position)?void 0:m.y)||0}}else if("top"===d||"bottom"===d){var p;s.y=((null==(p=a.position)?void 0:p.y)||0)+("bottom"===d?220:-220);var v=T.filter(t=>D.some(o=>o.source===e&&o.target===t.id&&Math.abs(t.position.y-s.y)<50));if(v.length>0){var b=v.reduce((e,t)=>t.position.x>e.position.x?t:e);s.x=b.position.x+350}else{var x;s.x=(null==(x=a.position)?void 0:x.x)||0}}else{var f,w;s.y=((null==(f=a.position)?void 0:f.y)||0)+220,s.x=(null==(w=a.position)?void 0:w.x)||0}var E=Object.assign({},t,{position:s}),y=[...T,E];P(y);var C={id:"edge-"+e+"-"+E.id,source:e,target:E.id},k=[...D,C];return _(k),E},[T,D,P,_,c]),U=t.useCallback(e=>{var t=T.filter(t=>t.id!==e);P(t);var o=D.filter(t=>t.source!==e&&t.target!==e);_(o),V!==e||W||k(void 0)},[T,D,P,_,V,W]),G=t.useCallback(e=>{var t=[...D,e];_(t)},[D,_]),Y=t.useCallback(e=>{L||I(e),h&&h(e)},[L,h]),K=t.useCallback(()=>{var e=Math.min(B.zoom+.1,2);Y(Object.assign({},B,{zoom:e}))},[B,Y]),X=t.useCallback(()=>{var e=Math.max(B.zoom-.1,.5);Y(Object.assign({},B,{zoom:e}))},[B,Y]),Z=t.useCallback(()=>{Y({zoom:1,x:0,y:0})},[Y]),q=t.useCallback((e,t)=>{if(m){O(e);var o=T.find(t=>t.id===e);o&&(z.current=Object.assign({},o.position),H.current={x:"touches"in t?t.touches[0].clientX:t.clientX,y:"touches"in t?t.touches[0].clientY:t.clientY},p&&p(e,t))}},[m,T,p]),J=t.useCallback(e=>{if(S&&z.current&&H.current){var t={x:z.current.x+(("touches"in e?e.touches[0].clientX:e.clientX)-H.current.x)/B.zoom,y:z.current.y+(("touches"in e?e.touches[0].clientY:e.clientY)-H.current.y)/B.zoom},o=T.map(e=>e.id===S?Object.assign({},e,{position:t,isDragging:!0}):e);P(o),v&&v(S,t,e)}},[S,T,P,v,B.zoom]),Q=t.useCallback(()=>{if(S){var e=T.map(e=>e.id===S?Object.assign({},e,{isDragging:!1}):e);P(e);var t=e.find(e=>e.id===S);t&&b&&b(S,t.position),O(null),z.current=null,H.current=null}},[S,T,P,b]);return{baseId:x,nodes:T,edges:D,selectedNodeId:V,viewport:B,updateNodes:P,updateEdges:_,updateViewport:Y,selectNode:A,addNode:F,addNodeAfter:N,deleteNode:U,connectNodes:G,zoomIn:K,zoomOut:X,resetViewport:Z,draggedNodeId:S,startNodeDrag:q,updateNodeDrag:J,endNodeDrag:Q,allowDraggingNodes:m}})({initialNodes:r,initialEdges:n,nodes:r,edges:n,onNodesChange:u,onEdgesChange:g,onNodeSelect:m,selectedNodeId:f,direction:l,initialViewport:w,viewport:E,onViewportChange:y,allowDraggingNodes:c,onNodeDragStart:v,onNodeDrag:b,onNodeDragEnd:x});return o.createElement(Pu,Object.assign({nodes:j.nodes,edges:j.edges,selectedNodeId:j.selectedNodeId,draggedNodeId:j.draggedNodeId,onNodeSelect:j.selectNode,onAddNode:(e,t)=>{var o,r={id:"node-"+Date.now()+"-"+Math.random().toString(36).substring(2,6),data:{label:"New Step",subtitle:"Select Action Type",number:((null==j||null==(o=j.nodes)?void 0:o.length)||0)+1}},n=j.addNodeAfter(e,r,t);p&&p(n)},baseId:j.baseId,viewport:j.viewport,onZoomIn:j.zoomIn,onZoomOut:j.zoomOut,onReset:j.resetViewport,onViewportChange:j.updateViewport,onNodeDragStart:j.startNodeDrag,onNodeDrag:(e,t,o)=>{j.updateNodeDrag(o)},onNodeDragEnd:j.endNodeDrag,size:i,variant:a,direction:l,showControls:s,allowAddingNodes:d,allowDraggingNodes:j.allowDraggingNodes,views:C},k))};Au.Node=Wu,Au.Edge=Vu,Au.Controls=Lu,Au.AddNodeButton=Bu;var Fu={width:"100%",maxWidth:"100%",borderRadius:"12px",backgroundColor:"color.gray.50",transition:"all 0.2s ease"},Nu={width:"100%",padding:"12px",borderRadius:"12px",backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200"},Uu={default:{borderRadius:"8px"},sharp:{borderRadius:"0px"},rounded:{borderRadius:"8px"},pillShaped:{borderRadius:"9999px"}},Gu={xs:{fontSize:"10px",padding:"4px 8px"},sm:{fontSize:"12px",padding:"6px 10px"},md:{fontSize:"14px",padding:"8px 12px"},lg:{fontSize:"16px",padding:"10px 14px"},xl:{fontSize:"20px",padding:"12px 16px"}},Yu={default:{backgroundColor:"color.white",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.200"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color.gray.300"},none:{backgroundColor:"transparent",border:"none"}},Ku=e=>{var{files:t,sandboxId:n,onRemove:i,layout:a="inline",maxHeight:l="120px",showPreviews:s=!1,views:d={}}=e;return r.useTheme(),0===t.length?null:o.createElement(r.View,Object.assign({display:"flex",flexWrap:"wrap",gap:"6px",padding:"8px 0",maxHeight:l,overflowY:"auto"},null==d?void 0:d.container),t.map((e,t)=>{return o.createElement(r.Horizontal,Object.assign({key:t,alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"6px",backgroundColor:"color.gray.100",animate:{from:{opacity:0,scale:.9},to:{opacity:1,scale:1}},animationDuration:.2},null==d?void 0:d.item),o.createElement(r.Text,Object.assign({fontSize:"12px",fontWeight:"500",color:"color.gray.700",maxWidth:"120px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},null==d?void 0:d.name),e.name),o.createElement(r.Text,Object.assign({fontSize:"10px",color:"color.gray.500",flexShrink:0},null==d?void 0:d.size),"(",(a=e.size)<1024?a+" B":a<1048576?(a/1024).toFixed(1)+" KB":(a/1048576).toFixed(1)+" MB",")",!n&&o.createElement(r.Text,{as:"span",marginLeft:"4px",color:"theme.primary"},"(pending)")),o.createElement(r.View,Object.assign({as:"button",type:"button",width:"16px",height:"16px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"transparent",color:"color.gray.500",cursor:"pointer",transition:"all 0.2s ease",onClick:()=>i(t),_hover:{backgroundColor:"color.gray.200",color:"color.gray.700"}},null==d?void 0:d.removeButton),o.createElement("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))));var a}))},Xu=t.forwardRef((e,n)=>{var{value:i,onChange:a,onSubmit:l,placeholder:s="Type your message...",disabled:d=!1,autoFocus:c=!0,views:u={}}=e,g=(r.useTheme(),t.useRef(i));return t.useEffect(()=>{n.current&&i!==g.current&&(n.current.textContent=i,g.current=i)},[i,n]),o.createElement(r.View,Object.assign({width:"100%",minHeight:"40px",maxHeight:"200px",overflowY:"auto"},null==u?void 0:u.container),o.createElement(r.View,Object.assign({as:"div",ref:n,contentEditable:!d,suppressContentEditableWarning:!0,onInput:e=>{var t=e.currentTarget.textContent||"";t!==g.current&&(a(t),g.current=t)},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),l(e))},role:"textbox","aria-multiline":"true","aria-placeholder":s,"data-placeholder":s,width:"100%",minHeight:"24px",outline:"none",whiteSpace:"pre-wrap",wordBreak:"break-word",_empty:{_before:{content:"attr(data-placeholder)",color:"color.gray.400",pointerEvents:"none"}}},null==u?void 0:u.input)))});Xu.displayName="EditableInput";var Zu=function(){var e=g((function*(e,t,o,r,n){((e,t,o)=>{var r=e.filter(e=>!(e.size>52428800&&(console.error("File size exceeds 50MB limit: "+e.name),1)));t(e=>[...e,...r]);var n=r.map(e=>({name:e.name,path:"/workspace/"+e.name,size:e.size,type:e.type||"application/octet-stream",localUrl:URL.createObjectURL(e)}));o(e=>[...e,...n])})(e,o,r)}));return function(t,o,r,n,i){return e.apply(this,arguments)}}(),qu=t.forwardRef((e,n)=>{var{loading:i,disabled:a,isAgentRunning:l,isUploading:s,sandboxId:d,setPendingFiles:c,setUploadedFiles:u,setIsUploading:h,views:m={}}=e;r.useTheme(),t.useEffect(()=>()=>{u(e=>(e.forEach(e=>{e.localUrl&&URL.revokeObjectURL(e.localUrl)}),e))},[u]);var p=function(){var e=g((function*(e){if(e.target.files&&0!==e.target.files.length){var t=Array.from(e.target.files);Zu(t,d,c,u,h),e.target.value=""}}));return function(t){return e.apply(this,arguments)}}();return o.createElement(o.Fragment,null,o.createElement(r.Button,Object.assign({type:"button",onClick:()=>{n&&"current"in n&&n.current&&n.current.click()},variant:"ghost",height:"36px",padding:"0 12px",borderRadius:"8px",backgroundColor:"transparent",color:"color.gray.500",disabled:i||a&&!l||s,_hover:{backgroundColor:"color.gray.100"}},null==m?void 0:m.button),o.createElement(r.Horizontal,{gap:4,alignItems:"center"},s?o.createElement(zo,Object.assign({widthHeight:16,color:"currentColor",filled:!1,style:{animation:"spin 1s linear infinite"}},null==m?void 0:m.icon)):o.createElement(jo,Object.assign({widthHeight:16,color:"currentColor",filled:!1},null==m?void 0:m.icon)),o.createElement(r.Text,Object.assign({fontSize:"14px"},null==m?void 0:m.text),"Attachments"))),o.createElement("input",{type:"file",ref:n,style:{display:"none"},onChange:p,multiple:!0}))});qu.displayName="FileUploadHandler";var Ju=e=>{var{examples:t,onSelect:n,views:i={}}=e;return r.useTheme(),t&&0!==t.length?o.createElement(r.Horizontal,Object.assign({gap:8,overflowX:"auto",padding:"8px 0",width:"100%"},null==i?void 0:i.container),t.map(e=>o.createElement(r.View,Object.assign({key:e.id,as:"button",type:"button",padding:"8px 12px",borderRadius:"4px",backgroundColor:"color.gray.100",border:"none",cursor:"pointer",transition:"all 0.2s ease",onClick:()=>n(e),_hover:{backgroundColor:"color.gray.200"}},null==i?void 0:i.item),o.createElement(r.Text,Object.assign({fontSize:"14px",color:"color.gray.700"},null==i?void 0:i.text),e.text)))):null},Qu=e=>{var{onClick:t,views:n={}}=e;return o.createElement(r.View,Object.assign({as:"button",type:"button",display:"flex",alignItems:"center",gap:4,padding:"6px 10px",border:"1px solid",borderColor:"color.gray.300",borderRadius:"4px",backgroundColor:"transparent",cursor:"pointer",transition:"all 0.2s ease",onClick:t,_hover:{backgroundColor:"color.gray.100"}},null==n?void 0:n.button),o.createElement(r.Text,Object.assign({fontSize:"14px",color:"color.gray.700"},null==n?void 0:n.text),"Reference image"),o.createElement(It,Object.assign({widthHeight:20,color:"currentColor",filled:!1,strokeWidth:2},null==n?void 0:n.icon)))},$u=e=>{var{isOpen:t,onClose:n,views:i={}}=e;return t?o.createElement(r.View,Object.assign({position:"absolute",top:"0",left:"0",width:"100%",height:t?"300px":"0",backgroundColor:"color.white",borderRadius:"8px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",overflow:"hidden",transition:"height 0.3s ease",zIndex:"10"},null==i?void 0:i.container),o.createElement(r.View,Object.assign({padding:"16px",width:"100%",height:"100%"},null==i?void 0:i.content),o.createElement(r.Text,{fontSize:"16px",fontWeight:"600",marginBottom:"16px"},"Reference Image"),o.createElement(r.View,Object.assign({as:"button",type:"button",position:"absolute",top:"8px",right:"8px",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"transparent",border:"none",cursor:"pointer",transition:"all 0.2s ease",onClick:n,_hover:{backgroundColor:"color.gray.100"}},null==i?void 0:i.closeButton),o.createElement(Ht,{widthHeight:16,color:"currentColor",filled:!1,strokeWidth:2})),o.createElement(r.View,{width:"100%",height:"calc(100% - 40px)",backgroundColor:"color.gray.100",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center"},o.createElement(r.Text,{color:"color.gray.500"},"Drop an image here or click to upload")))):null},eg=["onSubmit","placeholder","loading","disabled","isAgentRunning","onStopAgent","autoFocus","sandboxId","hideAttachments","promptExamples","showReferenceImageButton","errorMessage","size","shape","variant","views","value","handleChange","handleSubmit","editableRef","fileInputRef","isUploading","isDraggingOver","uploadedFiles","removeUploadedFile","setPendingFiles","setUploadedFiles","setIsUploading","selectedModel","handleModelChange","modelOptions","subscriptionStatus","canAccessModel","isGuideTipShown","hideGuideTip","isReferenceImageModalShown","toggleReferenceImageModal","handlePromptExampleSelect"],tg=e=>{var t,{placeholder:n="Say what you want and Kimmy will surprise you",loading:i=!1,disabled:a=!1,isAgentRunning:l=!1,autoFocus:s=!0,sandboxId:u,hideAttachments:g=!1,promptExamples:m=[],showReferenceImageButton:p=!1,errorMessage:v,size:b="md",shape:x="rounded",variant:f="default",views:w={},value:E,handleChange:y,handleSubmit:C,editableRef:k,fileInputRef:j,isUploading:I,isDraggingOver:S,uploadedFiles:O,removeUploadedFile:z,setPendingFiles:H,setUploadedFiles:M,setIsUploading:T,isReferenceImageModalShown:R,toggleReferenceImageModal:D,handlePromptExampleSelect:W}=e,V=h(e,eg),L=(r.useTheme(),Object.assign({},Fu,Uu[x],null==w?void 0:w.container)),B=Object.assign({},Nu,Gu[b],Yu[f],null==w?void 0:w.content),P=(null!=(t=null==E?void 0:E.trim().length)?t:0)>0||O.length>0;return o.createElement(r.View,Object.assign({display:"flex",flexDirection:"column",boxSizing:"border-box"},L,V,{onDragOver:e=>{e.preventDefault(),e.stopPropagation(),j.current&&(null==V.handleDragOver||V.handleDragOver(e))},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),null==V.handleDragLeave||V.handleDragLeave(e)},onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),null==V.handleDragLeave||V.handleDragLeave(e),j.current&&e.dataTransfer.files.length>0){var t=Array.from(e.dataTransfer.files);H(e=>[...e,...t]);var o=t.map(e=>({name:e.name,path:"/workspace/"+e.name,size:e.size,type:e.type||"application/octet-stream",localUrl:URL.createObjectURL(e)}));M(e=>[...e,...o])}}}),m.length>0&&o.createElement(Ju,{examples:m,onSelect:W,views:{container:null==w?void 0:w.promptExamples,item:null==w?void 0:w.promptExampleItem}}),o.createElement(r.Horizontal,Object.assign({justifyContent:"space-between",alignItems:"center"},null==w?void 0:w.header),p&&o.createElement(Qu,{onClick:D,views:{button:null==w?void 0:w.referenceImageButton}})),o.createElement(r.View,{position:"relative",width:"100%"},o.createElement($u,{isOpen:R,onClose:D,views:{container:null==w?void 0:w.referenceImageModal}}),o.createElement(r.View,Object.assign({as:"form",onSubmit:C,overflowY:"auto",display:"flex",flexDirection:"column",position:"relative"},B,L,{paddingHorizontal:20,backgroundColor:S?"color.blue.50":void 0}),o.createElement(Ku,{files:O,sandboxId:u,onRemove:z,views:{container:null==w?void 0:w.attachments,item:null==w?void 0:w.attachmentItem,name:null==w?void 0:w.attachmentName,size:null==w?void 0:w.attachmentSize,removeButton:null==w?void 0:w.attachmentRemove}}),o.createElement(Xu,{ref:k,value:E||"",onChange:y,onSubmit:C,placeholder:n,disabled:a&&!l,autoFocus:s,views:{container:{},input:null==w?void 0:w.editableInput}}),o.createElement(r.Horizontal,{justifyContent:"space-between",alignItems:"center",marginTop:"8px"},o.createElement(r.Horizontal,{gap:8,alignItems:"center"},!g&&o.createElement(qu,{ref:j,loading:i,disabled:a,isAgentRunning:l,isUploading:I,sandboxId:u,setPendingFiles:H,setUploadedFiles:M,setIsUploading:T,views:{button:null==w?void 0:w.fileButton}})),o.createElement(r.View,Object.assign({as:"button",type:"submit",height:"40px",width:"40px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:l?"theme.error":P?"theme.primary":"color.gray.300",color:"color.white",borderRadius:"50%",border:"none",cursor:P?"pointer":"not-allowed",disabled:!P||i||a&&!l,transition:"all 0.2s ease",_hover:{backgroundColor:l?"color.red.600":P?"color.blue.600":"color.gray.300"}},null==w?void 0:w.submitButton),l?o.createElement(c.StopIcon,{widthHeight:16,color:"currentColor",filled:!1}):i?o.createElement(d.Loader,{type:"quarter",size:16,color:"color.white"}):o.createElement(c.SendIcon,{widthHeight:16,color:"currentColor",filled:!1}))))),v&&o.createElement(r.Text,Object.assign({fontSize:"12px",color:"theme.error",marginTop:"4px"},null==w?void 0:w.bottomTip),v),l&&o.createElement(r.Horizontal,Object.assign({justifyContent:"center",alignItems:"center",gap:8,padding:"8px 0",animate:{from:{opacity:0,y:-10},to:{opacity:1,y:0},duration:"0.3s"}},null==w?void 0:w.loadingIndicator),o.createElement(c.LoadingSpinnerIcon,{widthHeight:12,color:"currentColor",filled:!1,style:{animation:"spin 1s linear infinite"}}),o.createElement(r.Text,{fontSize:"12px",color:"color.gray.500"},"Agent is working...")))},og=t.forwardRef((e,r)=>{var n=(e=>{var{value:o,onChange:r,onSubmit:n,autoFocus:i=!0,loading:a=!1,disabled:l=!1,isAgentRunning:s=!1,onStopAgent:d,sandboxId:c}=e,u=void 0!==o&&void 0!==r,[g,h]=t.useState(""),m=u?o:g,[p,v]=t.useState([]),[b,x]=t.useState([]),[f,w]=t.useState(!1),[E,y]=t.useState(!1),[C,k]=t.useState("gpt-4"),[j]=t.useState([{id:"gpt-3.5-turbo",name:"GPT-3.5"},{id:"gpt-4",name:"GPT-4"},{id:"gpt-4-thinking",name:"GPT-4 (Thinking)",isThinking:!0},{id:"claude-3-5-sonnet",name:"Claude 3.5 Sonnet"}]),I=t.useRef(null),S=t.useRef(null),[O,z]=t.useState(e.showGuideTip||!1),[H,M]=t.useState(!1);return t.useEffect(()=>{i&&I.current&&I.current.focus()},[i]),t.useEffect(()=>()=>{p.forEach(e=>{e.localUrl&&URL.revokeObjectURL(e.localUrl)})},[p]),{value:m,handleChange:e=>{u&&r?r(e):h(e)},handleSubmit:e=>{if(e.preventDefault(),!(!m.trim()&&0===p.length||a||l&&!s))if(s&&d)d();else{var t=m;if(p.length>0){var o=p.map(e=>"[Uploaded File: "+e.path+"]").join("\n");t=t?t+"\n\n"+o:o}var r=C,i=!1;C.endsWith("-thinking")&&(r=C.replace(/-thinking$/,""),i=!0),n(t,{model_name:r,enable_thinking:i}),u||h(""),v([])}},editableRef:I,fileInputRef:S,isUploading:f,isDraggingOver:E,uploadedFiles:p,pendingFiles:b,removeUploadedFile:e=>{var t=p[e];t.localUrl&&URL.revokeObjectURL(t.localUrl),v(t=>t.filter((t,o)=>o!==e)),!c&&b.length>e&&x(t=>t.filter((t,o)=>o!==e))},setPendingFiles:x,setUploadedFiles:v,setIsUploading:w,selectedModel:C,handleModelChange:k,modelOptions:j,subscriptionStatus:"active",canAccessModel:e=>!0,handleDragOver:e=>{e.preventDefault(),e.stopPropagation(),y(!0)},handleDragLeave:e=>{e.preventDefault(),e.stopPropagation(),y(!1)},isGuideTipShown:O,hideGuideTip:()=>{z(!1),e.onGuideClose&&e.onGuideClose()},isReferenceImageModalShown:H,toggleReferenceImageModal:()=>{M(!H),e.onReferenceImageClick&&e.onReferenceImageClick()},handlePromptExampleSelect:t=>{u&&r?r(t.text):h(t.text),e.onPromptExampleSelect&&e.onPromptExampleSelect(t),I.current&&I.current.focus()}}})(e);return t.useImperativeHandle(r,()=>({getPendingFiles:()=>n.pendingFiles||[],clearPendingFiles:()=>n.setPendingFiles([])})),o.createElement(tg,Object.assign({},e,n))});og.displayName="ChatInput",exports.Accordion=I,exports.Alert=e=>o.createElement(nr,Object.assign({},e)),exports.ArrowIcon=Po,exports.AspectRatio=e=>{var{ratio:t,children:r}=e,n=h(e,lr);return o.createElement(ar,Object.assign({ratio:t},n),r)},exports.Avatar=e=>{var{src:r,size:n,views:i,fallback:a,onClick:l}=e,{imageError:s,setImageError:d}=(()=>{var[e,o]=t.useState(!1);return{imageError:e,setImageError:o}})();return o.createElement(gr,{src:r,size:n,views:i,fallback:a,imageError:s,setImageError:d,onClick:l})},exports.Badge=e=>o.createElement(br,Object.assign({},e)),exports.BatteryIcon=Ut,exports.BluetoothIcon=Eo,exports.BoldArrowIcon=Bo,exports.BookmarkIcon=Gt,exports.Button=Br,exports.CalendarIcon=Ao,exports.CameraIcon=wo,exports.Card=qr,exports.Carousel=vn,exports.Chart=e=>o.createElement(_n,Object.assign({},e)),exports.ChartIcon=qo,exports.ChatInput=og,exports.CheckIcon=$o,exports.Checkbox=e=>{var t=ra(e);return o.createElement(da,Object.assign({},t,e))},exports.ChevronDownIcon=Mo,exports.ChevronIcon=yt,exports.ChevronRightIcon=To,exports.ClockIcon=fo,exports.CloseEyeIcon=Ro,exports.CloseIcon=Ht,exports.CloudIcon=Yt,exports.ComboBox=e=>{var{id:t,name:r,items:n,placeholder:i,searchPlaceholder:a}=e,l=h(e,Ta),s=za(n,i,a);return o.createElement(Ma,Object.assign({id:t,name:r,items:n},s,l))},exports.Command=Fc,exports.ContextMenu=li,exports.CookieConsent=e=>o.createElement(Fn,Object.assign({},e)),exports.CopyIcon=Kt,exports.CountryPicker=e=>{var t=ua(e);return o.createElement(Ea,Object.assign({},t,e))},exports.CropIcon=No,exports.DatePicker=e=>{var t=ya();return o.createElement(ja,Object.assign({},t,e))},exports.DeleteIcon=Zt,exports.Divider=Ed,exports.DocumentIcon=Zo,exports.DownloadIcon=Qt,exports.DragAndDrop=ps,exports.DragAndDropComponent=ms,exports.DragHandleIcon=Ct,exports.DragHandleLinesIcon=Ho,exports.DropdownMenu=Rs,exports.DustBinIcon=Xt,exports.EditIcon=qt,exports.ErrorIcon=Jt,exports.ExternalLinkIcon=Wo,exports.FacebookIcon=Rt,exports.FileIcon=kt,exports.FileImage=e=>{var{path:t}=e,n=h(e,di);return o.createElement(r.Image,Object.assign({src:t},n))},exports.FileSVG=e=>{var{src:t,color:n,views:i}=e,a=h(e,si),{getColor:l,themeMode:s}=r.useTheme(),d=n?{fill:l(n,{themeMode:s}),stroke:l(n,{themeMode:s})}:{};return o.createElement(r.Center,Object.assign({},a,null==i?void 0:i.container),o.createElement(r.Image,Object.assign({},d,{content:'url("'+t+'")',width:"100%",height:"100%"},null==i?void 0:i.image)))},exports.FilterIcon=ao,exports.Flow=Au,exports.FolderIcon=Et,exports.FormikCheckbox=e=>{var t=Aa(e),{value:r}=t,n=h(t,Fa);n.isChecked=r;var i=ra(e);return o.createElement(da,Object.assign({},i,n))},exports.FormikComboBox=e=>{var{items:t,placeholder:r,searchPlaceholder:n}=e,i=h(e,Ya),a=Aa(i),l=za(t,r,n);return o.createElement(Ma,Object.assign({},l,a,{onSelect:e=>{a.onChange(e)}}))},exports.FormikCountryPicker=e=>{var t=Aa(e),r=ua(e);return o.createElement(Ea,Object.assign({},r,t))},exports.FormikDatePicker=e=>{var t=Aa(e),r=ya();return o.createElement(ja,Object.assign({},r,t))},exports.FormikForm=e=>{var{children:n,autoFocus:i=!1,initFocus:a,onChange:s=(()=>{})}=e,d=h(e,Ba),c=l.useFormikContext();t.useEffect(()=>{s(c.values)},[c.values]);var u=t.useRef({}),g=t.useRef([]),m=e=>{if(i){var t,o=g.current.indexOf(e)+1;o<g.current.length?null==(t=u.current[g.current[o]])||t.focus():c.onSubmit&&c.onSubmit(c.values)}},p={active:i,focusNextInput:m,setInputRef:(e,t)=>{u.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(i)if(a&&u.current[a])null==(e=u.current[a])||e.focus();else if(g.current[0]){var t;null==(t=u.current[g.current[0]])||t.focus()}},[i,a]),o.createElement(Pa.Provider,{value:p},o.createElement(r.Form,Object.assign({},d),n))},exports.FormikOTPInput=e=>{var r=Aa(e),{isFocused:n,setIsFocused:i,isHovered:a,setIsHovered:l,inputRef:s,containerRef:d,mirrorSelectionStart:c,mirrorSelectionEnd:u,setMirrorSelectionStart:g,setMirrorSelectionEnd:h,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:n,setIsFocused:i,isHovered:a,setIsHovered:l,inputRef:s,containerRef:d,mirrorSelectionStart:c,mirrorSelectionEnd:u,setMirrorSelectionStart:g,setMirrorSelectionEnd:h,setInputRef:m,handleChange:w,handleFocus:p,handleBlur:v,handleKeyDown:b,handlePaste:x,stepValues:e.stepValues}))},exports.FormikPassword=e=>{var{visibleIcon:t=o.createElement(mo,{widthHeight:14}),hiddenIcon:n=o.createElement(Ro,{widthHeight:14})}=e,i=h(e,Ua),a=Aa(i),l=Ia(a),{isVisible:s,setIsVisible:d}=l,c=h(l,Ga);return o.createElement(oa,Object.assign({},c,{type:s?"text":"password",isClearable:!1,right:o.createElement(r.View,{onClick:()=>{i.isDisabled||d(!s)}},s?t:n)}))},exports.FormikSelect=e=>{var t=Aa(e);t.selected=t.value;var r=ci(e);return o.createElement(Fi,Object.assign({},r,t))},exports.FormikSlider=e=>{var t=Aa(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(ol,Object.assign({},e,r,t))},exports.FormikSwitch=e=>{var t=Aa(e),r=Ni(e);return o.createElement(Zi,Object.assign({},r,t))},exports.FormikTextArea=e=>{var t=Aa(e),r=qi(e);return o.createElement(Qi,Object.assign({},r,t))},exports.FormikTextField=e=>{var t=Aa(e),r=h($i(e),Na);return o.createElement(oa,Object.assign({},r,t))},exports.GiftIcon=Jo,exports.HeartIcon=_t,exports.HelpIcon=wt,exports.HomeIcon=lo,exports.HoverCard=As,exports.Icon=or,exports.ImageIcon=It,exports.InfoIcon=Lt,exports.InstagramIcon=Mt,exports.LikeIcon=yo,exports.Link=Er,exports.LinkedinIcon=Dt,exports.Loader=Tr,exports.LoadingSpinnerIcon=zo,exports.LocationIcon=so,exports.LockIcon=co,exports.LogoutIcon=er,exports.MagicWandIcon=ro,exports.MenuIcon=$t,exports.Menubar=nd,exports.MessageLayout=e=>{var{container:t,theme:n,position:i="topRight"}=e,{visible:a,title:l,variant:s,subtitle:d,isClosable:c,views:u,action:g,actionText:h,showIcon:m,timeout:p}=rl(),v={topLeft:{top:6,left:8},topRight:{top:6,right:8},bottomLeft:{bottom:8,left:6},bottomRight:{bottom:8,right:6}}[i],b=()=>o.createElement(ll,{variant:s,subtitle:d,show:a,title:l,theme:n,isClosable:c,views:u,action:g,actionText:h,showIcon:m,timeout:p,hide:()=>il()}),x=t?o.cloneElement(t,{},b()):o.createElement(r.View,Object.assign({position:"absolute",zIndex:1e4},v),b());return a?x:null},exports.MessageView=ll,exports.MicrophoneIcon=uo,exports.MinusIcon=Vt,exports.Modal=El,exports.MoonIcon=go,exports.NavigationMenu=Ll,exports.NotificationIcon=ho,exports.OTPInput=e=>{var{value:t}=e,{value:r,setValue:n,isFocused:i,setIsFocused:a,isHovered:l,setIsHovered:s,inputRef:d,containerRef:c,mirrorSelectionStart:u,mirrorSelectionEnd:g,setMirrorSelectionStart:h,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:n,isFocused:i,setIsFocused:a,isHovered:l,setIsHovered:s,inputRef:d,containerRef:c,mirrorSelectionStart:u,mirrorSelectionEnd:g,setMirrorSelectionStart:h,setMirrorSelectionEnd:m,setInputRef:p,handleChange:v,handleFocus:b,handleBlur:x,handleKeyDown:f,handleKeyPress:E,handlePaste:w,stepValues:e.stepValues}))},exports.OpenEyeIcon=mo,exports.Pagination=e=>{var{currentPage:r,totalPages:n,onPageChange:i,pageSize:a=10,pageSizeOptions:l,onPageSizeChange:s,showPageSizeSelector:d=!1,showPageInfo:c=!0,maxPageButtons:u=5,showFirstLastButtons:g=!1,size:m="md",variant:p="default",shape:v="rounded",views:b}=e,x=h(e,gd),{visiblePageNumbers:f}=((e,o,r)=>{var[n,i]=t.useState([]);return t.useEffect(()=>{i((()=>{var t=[];if(o<=r)for(var n=1;n<=o;n++)t.push(n);else{t.push(1);var i=Math.max(2,e-Math.floor((r-2)/2)),a=Math.min(o-1,i+r-3);a>=o-1&&(a=o-1,i=Math.max(2,a-(r-3))),i>2&&t.push("...");for(var l=i;l<=a;l++)t.push(l);a<o-1&&t.push("..."),t.push(o)}return t})())},[e,o,r]),{visiblePageNumbers:n}})(r,n,u);return o.createElement(ud,Object.assign({currentPage:r,totalPages:n,onPageChange:i,pageSize:a,pageSizeOptions:l,onPageSizeChange:s,showPageSizeSelector:d,showPageInfo:c,maxPageButtons:u,showFirstLastButtons:g,size:m,variant:p,shape:v,visiblePageNumbers:f,views:b},x))},exports.PanelIcon=io,exports.Password=e=>{var{visibleIcon:t=o.createElement(mo,{widthHeight:14}),hiddenIcon:n=o.createElement(Ro,{widthHeight:14})}=e,i=h(e,Sa),a=Ia(i),{isVisible:l,setIsVisible:s}=a,d=h(a,Oa);return o.createElement(oa,Object.assign({},d,{type:l?"text":"password",isClearable:!1,right:o.createElement(r.View,{onClick:()=>{i.isDisabled||s(!l)}},l?t:n)}))},exports.PauseIcon=Pt,exports.PlayIcon=Bt,exports.PlusIcon=Vo,exports.PowerOffIcon=tr,exports.PrintIcon=oo,exports.ProfileIcon=po,exports.RefreshIcon=to,exports.Resizable=Zd,exports.RotateIcon=Xo,exports.SaveIcon=Ft,exports.SearchIcon=Io,exports.Select=e=>{var t=Object.assign({},e,{options:e.options||[]}),r=ci(t);return o.createElement(Fi,Object.assign({},r,t,{onClick:t=>{t.stopPropagation(),e.onClick&&e.onClick(t)}}))},exports.SendIcon=Oo,exports.Separator=wd,exports.SettingsIcon=vo,exports.ShapeIcon=Ko,exports.ShareIcon=eo,exports.ShieldIcon=Qo,exports.Sidebar=Vd,exports.Slider=e=>{var t=Xa(e);return o.createElement(ol,Object.assign({},e,t))},exports.SliderIcon=Fo,exports.SliderVerticalIcon=no,exports.SpinnerIcon=_o,exports.StarIcon=At,exports.StopIcon=So,exports.SuccessIcon=bo,exports.Switch=e=>{var t=Ni(e);return o.createElement(Zi,Object.assign({},t,e))},exports.Table=Jl,exports.Tabs=es,exports.Text=V,exports.TextArea=e=>{var t=qi(e);return o.createElement(Qi,Object.assign({},t,e))},exports.TextField=e=>{var t=$i(e);return o.createElement(oa,Object.assign({},t,e))},exports.TextIcon=Yo,exports.ThreadsIcon=Wt,exports.TickIcon=Lo,exports.Title=e=>o.createElement(ls,Object.assign({},e)),exports.Toast=cc,exports.Toggle=us,exports.ToggleGroup=e=>{var{items:r,shape:n,variant:i,onToggleChange:a}=e,{activeToggles:l,setActiveToggles:s}=(()=>{var[e,o]=t.useState([]);return{activeToggles:e,setActiveToggles:o}})();return o.createElement(gs,{items:r,shape:n,variant:i,activeToggles:l,setActiveToggles:s,onToggleChange:a})},exports.Tooltip=tu,exports.TrashIcon=Do,exports.Tree=Iu,exports.TwitchIcon=zt,exports.TwitterIcon=St,exports.UnLikeIcon=xo,exports.UnlockIcon=Co,exports.UploadIcon=jo,exports.Uploader=e=>{var{accept:r="*/*",icon:n,text:i,maxSize:a,onFileSelect:l,validateFile:s,isLoading:d=!1,progress:c=0,fileType:u}=e,g=h(e,dl),{previewUrl:m,thumbnailUrl:p,errorMessage:v,videoRef:b,fileInputRef:x,selectedFile:f,handleFileChange:w,handleClick:E}=(e=>{var{maxSize:o=104857600,onFileSelect:r,validateFile:n,thumbnail:i,onError:a=(e=>{nl("error","Error",e)})}=e,l=t.useRef(null),s=t.useRef(null),[d,c]=t.useState(null),[u,g]=t.useState(null),[h,m]=t.useState(null),[p,v]=t.useState(i||null),b=t.useCallback(e=>{var t,i=null==(t=e.target.files)?void 0:t[0];if(g(null),!i)return a("No file selected"),void g("No file selected");if(i.size>o)return a("File exceeds "+Math.round(o/1048576)+"MB."),void g("File exceeds "+Math.round(o/1048576)+"MB.");if(n){var l=n(i);if(l)return a(l),void g(l)}m(URL.createObjectURL(i)),i.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 n=e.toDataURL("image/jpeg");t(n)}URL.revokeObjectURL(o.src)},o.src=URL.createObjectURL(e)})(i,v),r&&(c(i),r(i))},[o,r,n]);return t.useEffect(()=>()=>{h&&URL.revokeObjectURL(h),p&&URL.revokeObjectURL(p)},[h,p]),{previewUrl:h,thumbnailUrl:p,errorMessage:u,fileInputRef:l,videoRef:s,selectedFile:d,handleFileChange:b,handleClick:()=>{var e;return null==(e=l.current)?void 0:e.click()}}})({accept:r,maxSize:a,onFileSelect:l,validateFile:s}),y=u||(f?f.type.startsWith("image/")?"image":f.type.startsWith("video/")?"video":"file":void 0);return o.createElement(sl,Object.assign({handleClick:E,accept:r,isLoading:d,progress:c,icon:n,text:i,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=ft,exports.VideoIcon=jt,exports.WarningIcon=Nt,exports.WifiIcon=ko,exports.XIcon=Ot,exports.YoutubeIcon=Tt,exports.ZoomInIcon=Uo,exports.ZoomOutIcon=Go,exports.hideMessage=il,exports.hideModal=ul,exports.showMessage=nl,exports.showModal=function(e,t,o){void 0===t&&(t={}),void 0===o&&(o={}),cl.getState().show(e,t,o),cl.getState().onShow(e,t)},exports.showToast=ec,exports.useMessageStore=rl,exports.useModalStore=cl,exports.useToast=()=>({toast:(e,t,o,r)=>ec(e,t,o,r),info:(e,t,o)=>tc(e,t,o),success:(e,t,o)=>oc(e,t,o),warning:(e,t,o)=>rc(e,t,o),error:(e,t,o)=>nc(e,t,o),remove:e=>ic(e),removeAll:()=>ac()});
|
|
2
2
|
//# sourceMappingURL=web.cjs.production.min.js.map
|