@sikka/hawa 0.2.24-beta → 0.2.25-beta

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/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(Ae,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],h):(Ae=typeof globalThis<"u"?globalThis:Ae||self,h(Ae.index={},Ae.React,Ae.ReactDOM))})(this,function(Ae,h,Qo){"use strict";function Km(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const je=Km(h),xw=Km(Qo);var mc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Uf={exports:{}},Al={};/**
1
+ (function(Ae,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],h):(Ae=typeof globalThis<"u"?globalThis:Ae||self,h(Ae.index={},Ae.React,Ae.ReactDOM))})(this,function(Ae,h,Qo){"use strict";function Km(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const je=Km(h),xw=Km(Qo),vN="";var mc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Uf={exports:{}},Al={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -51,10 +51,10 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
51
51
  You should wrap it with \`css\` like this:
52
52
 
53
53
  `+("css`"+u+"`"))}break}if(t==null)return r;var c=t[r];return c!==void 0?c:r}function g3(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=Ml(e,t,r[a])+";";else for(var o in r){var i=r[o];if(typeof i!="object")t!=null&&t[i]!==void 0?n+=o+"{"+t[i]+"}":_0(i)&&(n+=ph(o)+":"+Tc(o,i)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(V0);if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var l=0;l<i.length;l++)_0(i[l])&&(n+=ph(o)+":"+Tc(o,i[l])+";");else{var u=Ml(e,t,i);switch(o){case"animation":case"animationName":{n+=ph(o)+":"+u+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(l3),n+=o+"{"+u+"}"}}}}return n}var H0=/label:\s*([^\s;\n{]+)\s*(;|$)/g,z0;process.env.NODE_ENV!=="production"&&(z0=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Kn,Rl=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var a=!0,o="";Kn=void 0;var i=t[0];i==null||i.raw===void 0?(a=!1,o+=Ml(n,r,i)):(process.env.NODE_ENV!=="production"&&i[0]===void 0&&console.error($0),o+=i[0]);for(var l=1;l<t.length;l++)o+=Ml(n,r,t[l]),a&&(process.env.NODE_ENV!=="production"&&i[l]===void 0&&console.error($0),o+=i[l]);var u;process.env.NODE_ENV!=="production"&&(o=o.replace(z0,function(x){return u=x,""})),H0.lastIndex=0;for(var c="",m;(m=H0.exec(o))!==null;)c+="-"+m[1];var p=i3(o)+c;return process.env.NODE_ENV!=="production"?{name:p,styles:o,map:u,next:Kn,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:p,styles:o,next:Kn}},m3=function(t){return t()},G0=je["useInsertionEffect"]?je["useInsertionEffect"]:!1,Z0=G0||m3,U0=G0||je.useLayoutEffect,gh={}.hasOwnProperty,mh=je.createContext(typeof HTMLElement<"u"?e3({key:"css"}):null);process.env.NODE_ENV!=="production"&&(mh.displayName="EmotionCacheContext"),mh.Provider;var vh=function(t){return h.forwardRef(function(r,n){var a=h.useContext(mh);return t(r,a,n)})},kc=je.createContext({});process.env.NODE_ENV!=="production"&&(kc.displayName="EmotionThemeContext");var X0=function(t){var r=t.split(".");return r[r.length-1]},v3=function(t){var r=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);if(r||(r=/^([A-Za-z0-9$.]+)@/.exec(t),r))return X0(r[1])},b3=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),x3=function(t){return t.replace(/\$/g,"-")},y3=function(t){if(t)for(var r=t.split(`
54
- `),n=0;n<r.length;n++){var a=v3(r[n]);if(a){if(b3.has(a))break;if(/^[A-Z]/.test(a))return x3(a)}}},bh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",xh="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",C3=function(t,r){if(process.env.NODE_ENV!=="production"&&typeof r.css=="string"&&r.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+r.css+"`");var n={};for(var a in r)gh.call(r,a)&&(n[a]=r[a]);if(n[bh]=t,process.env.NODE_ENV!=="production"&&r.css&&(typeof r.css!="object"||typeof r.css.name!="string"||r.css.name.indexOf("-")===-1)){var o=y3(new Error().stack);o&&(n[xh]=o)}return n},w3=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return dh(r,n,a),Z0(function(){return fh(r,n,a)}),null},Y0=vh(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[bh],o=[n],i="";typeof e.className=="string"?i=R0(t.registered,o,e.className):e.className!=null&&(i=e.className+" ");var l=Rl(o,void 0,je.useContext(kc));if(process.env.NODE_ENV!=="production"&&l.name.indexOf("-")===-1){var u=e[xh];u&&(l=Rl([l,"label:"+u+";"]))}i+=t.key+"-"+l.name;var c={};for(var m in e)gh.call(e,m)&&m!=="css"&&m!==bh&&(process.env.NODE_ENV==="production"||m!==xh)&&(c[m]=e[m]);return c.ref=r,c.className=i,je.createElement(je.Fragment,null,je.createElement(w3,{cache:t,serialized:l,isStringTag:typeof a=="string"}),je.createElement(a,c))});process.env.NODE_ENV!=="production"&&(Y0.displayName="EmotionCssPropInternal");var E3=Y0,D3={name:"@emotion/react",version:"11.11.1",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.2","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.0","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},pt=function(t,r){var n=arguments;if(r==null||!gh.call(r,"css"))return je.createElement.apply(void 0,n);var a=n.length,o=new Array(a);o[0]=E3,o[1]=C3(t,r);for(var i=2;i<a;i++)o[i]=n[i];return je.createElement.apply(null,o)},J0=!1,S3=vh(function(e,t){process.env.NODE_ENV!=="production"&&!J0&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),J0=!0);var r=e.styles,n=Rl([r],void 0,je.useContext(kc)),a=je.useRef();return U0(function(){var o=t.key+"-global",i=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,u=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),u!==null&&(l=!0,u.setAttribute("data-emotion",o),i.hydrate([u])),a.current=[i,l],function(){i.flush()}},[t]),U0(function(){var o=a.current,i=o[0],l=o[1];if(l){o[1]=!1;return}if(n.next!==void 0&&fh(t,n.next,!0),i.tags.length){var u=i.tags[i.tags.length-1].nextElementSibling;i.before=u,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});process.env.NODE_ENV!=="production"&&(S3.displayName="EmotionGlobal");function yh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Rl(t)}var A3=function(){var t=yh.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},F3=function e(t){for(var r=t.length,n=0,a="";n<r;n++){var o=t[n];if(o!=null){var i=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=e(o);else{process.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),i="";for(var l in o)o[l]&&l&&(i&&(i+=" "),i+=l)}break}default:i=o}i&&(a&&(a+=" "),a+=i)}}return a};function j3(e,t,r){var n=[],a=R0(e,n,r);return n.length<2?r:a+t(n)}var I3=function(t){var r=t.cache,n=t.serializedArr;return Z0(function(){for(var a=0;a<n.length;a++)fh(r,n[a],!1)}),null},T3=vh(function(e,t){var r=!1,n=[],a=function(){if(r&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var c=arguments.length,m=new Array(c),p=0;p<c;p++)m[p]=arguments[p];var x=Rl(m,t.registered);return n.push(x),dh(t,x,!1),t.key+"-"+x.name},o=function(){if(r&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var c=arguments.length,m=new Array(c),p=0;p<c;p++)m[p]=arguments[p];return j3(t.registered,a,F3(m))},i={css:a,cx:o,theme:je.useContext(kc)},l=e.children(i);return r=!0,je.createElement(je.Fragment,null,je.createElement(I3,{cache:t,serializedArr:n}),l)});if(process.env.NODE_ENV!=="production"&&(T3.displayName="EmotionClassNames"),process.env.NODE_ENV!=="production"){var Q0=!0,k3=typeof jest<"u"||typeof vi<"u";if(Q0&&!k3){var K0=typeof globalThis<"u"?globalThis:Q0?window:global,q0="__EMOTION_REACT_"+D3.version.split(".")[0]+"__";K0[q0]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),K0[q0]=!0}}function B3(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const P3=["top","right","bottom","left"],mo=Math.min,wn=Math.max,Bc=Math.round,Pc=Math.floor,vo=e=>({x:e,y:e}),O3={left:"right",right:"left",bottom:"top",top:"bottom"},N3={start:"end",end:"start"};function Ch(e,t,r){return wn(e,mo(t,r))}function La(e,t){return typeof e=="function"?e(t):e}function _a(e){return e.split("-")[0]}function as(e){return e.split("-")[1]}function wh(e){return e==="x"?"y":"x"}function Eh(e){return e==="y"?"height":"width"}function os(e){return["top","bottom"].includes(_a(e))?"y":"x"}function Dh(e){return wh(os(e))}function M3(e,t,r){r===void 0&&(r=!1);const n=as(e),a=Dh(e),o=Eh(a);let i=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Oc(i)),[i,Oc(i)]}function R3(e){const t=Oc(e);return[Sh(e),t,Sh(t)]}function Sh(e){return e.replace(/start|end/g,t=>N3[t])}function $3(e,t,r){const n=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return r?t?a:n:t?n:a;case"left":case"right":return t?o:i;default:return[]}}function L3(e,t,r,n){const a=as(e);let o=$3(_a(e),r==="start",n);return a&&(o=o.map(i=>i+"-"+a),t&&(o=o.concat(o.map(Sh)))),o}function Oc(e){return e.replace(/left|right|bottom|top/g,t=>O3[t])}function _3(e){return{top:0,right:0,bottom:0,left:0,...e}}function ev(e){return typeof e!="number"?_3(e):{top:e,right:e,bottom:e,left:e}}function Nc(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function tv(e,t,r){let{reference:n,floating:a}=e;const o=os(t),i=Dh(t),l=Eh(i),u=_a(t),c=o==="y",m=n.x+n.width/2-a.width/2,p=n.y+n.height/2-a.height/2,x=n[l]/2-a[l]/2;let C;switch(u){case"top":C={x:m,y:n.y-a.height};break;case"bottom":C={x:m,y:n.y+n.height};break;case"right":C={x:n.x+n.width,y:p};break;case"left":C={x:n.x-a.width,y:p};break;default:C={x:n.x,y:n.y}}switch(as(t)){case"start":C[i]-=x*(r&&c?-1:1);break;case"end":C[i]+=x*(r&&c?-1:1);break}return C}const W3=async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:o=[],platform:i}=r,l=o.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:p}=tv(c,n,u),x=n,C={},E=0;for(let v=0;v<l.length;v++){const{name:A,fn:S}=l[v],{x:j,y:O,data:L,reset:M}=await S({x:m,y:p,initialPlacement:n,placement:x,strategy:a,middlewareData:C,rects:c,platform:i,elements:{reference:e,floating:t}});if(m=j??m,p=O??p,C={...C,[A]:{...C[A],...L}},M&&E<=50){E++,typeof M=="object"&&(M.placement&&(x=M.placement),M.rects&&(c=M.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:a}):M.rects),{x:m,y:p}=tv(c,x,u)),v=-1;continue}}return{x:m,y:p,placement:x,strategy:a,middlewareData:C}};async function $l(e,t){var r;t===void 0&&(t={});const{x:n,y:a,platform:o,rects:i,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:x=!1,padding:C=0}=La(t,e),E=ev(C),A=l[x?p==="floating"?"reference":"floating":p],S=Nc(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(A)))==null||r?A:A.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:m,strategy:u})),j=p==="floating"?{...i.floating,x:n,y:a}:i.reference,O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),L=await(o.isElement==null?void 0:o.isElement(O))?await(o.getScale==null?void 0:o.getScale(O))||{x:1,y:1}:{x:1,y:1},M=Nc(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:j,offsetParent:O,strategy:u}):j);return{top:(S.top-M.top+E.top)/L.y,bottom:(M.bottom-S.bottom+E.bottom)/L.y,left:(S.left-M.left+E.left)/L.x,right:(M.right-S.right+E.right)/L.x}}const rv=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:a,rects:o,platform:i,elements:l,middlewareData:u}=t,{element:c,padding:m=0}=La(e,t)||{};if(c==null)return{};const p=ev(m),x={x:r,y:n},C=Dh(a),E=Eh(C),v=await i.getDimensions(c),A=C==="y",S=A?"top":"left",j=A?"bottom":"right",O=A?"clientHeight":"clientWidth",L=o.reference[E]+o.reference[C]-x[C]-o.floating[E],M=x[C]-o.reference[C],z=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let H=z?z[O]:0;(!H||!await(i.isElement==null?void 0:i.isElement(z)))&&(H=l.floating[O]||o.floating[E]);const oe=L/2-M/2,J=H/2-v[E]/2-1,ge=mo(p[S],J),xe=mo(p[j],J),Q=ge,ce=H-v[E]-xe,N=H/2-v[E]/2+oe,W=Ch(Q,N,ce),ee=!u.arrow&&as(a)!=null&&N!=W&&o.reference[E]/2-(N<Q?ge:xe)-v[E]/2<0,de=ee?N<Q?N-Q:N-ce:0;return{[C]:x[C]+de,data:{[C]:W,centerOffset:N-W-de,...ee&&{alignmentOffset:de}},reset:ee}}}),V3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:a,middlewareData:o,rects:i,initialPlacement:l,platform:u,elements:c}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:x,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:v=!0,...A}=La(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const S=_a(a),j=_a(l)===l,O=await(u.isRTL==null?void 0:u.isRTL(c.floating)),L=x||(j||!v?[Oc(l)]:R3(l));!x&&E!=="none"&&L.push(...L3(l,v,E,O));const M=[l,...L],z=await $l(t,A),H=[];let oe=((n=o.flip)==null?void 0:n.overflows)||[];if(m&&H.push(z[S]),p){const Q=M3(a,i,O);H.push(z[Q[0]],z[Q[1]])}if(oe=[...oe,{placement:a,overflows:H}],!H.every(Q=>Q<=0)){var J,ge;const Q=(((J=o.flip)==null?void 0:J.index)||0)+1,ce=M[Q];if(ce)return{data:{index:Q,overflows:oe},reset:{placement:ce}};let N=(ge=oe.filter(W=>W.overflows[0]<=0).sort((W,ee)=>W.overflows[1]-ee.overflows[1])[0])==null?void 0:ge.placement;if(!N)switch(C){case"bestFit":{var xe;const W=(xe=oe.map(ee=>[ee.placement,ee.overflows.filter(de=>de>0).reduce((de,ne)=>de+ne,0)]).sort((ee,de)=>ee[1]-de[1])[0])==null?void 0:xe[0];W&&(N=W);break}case"initialPlacement":N=l;break}if(a!==N)return{reset:{placement:N}}}return{}}}};function nv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function av(e){return P3.some(t=>e[t]>=0)}const H3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...a}=La(e,t);switch(n){case"referenceHidden":{const o=await $l(t,{...a,elementContext:"reference"}),i=nv(o,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:av(i)}}}case"escaped":{const o=await $l(t,{...a,altBoundary:!0}),i=nv(o,r.floating);return{data:{escapedOffsets:i,escaped:av(i)}}}default:return{}}}}};async function z3(e,t){const{placement:r,platform:n,elements:a}=e,o=await(n.isRTL==null?void 0:n.isRTL(a.floating)),i=_a(r),l=as(r),u=os(r)==="y",c=["left","top"].includes(i)?-1:1,m=o&&u?-1:1,p=La(t,e);let{mainAxis:x,crossAxis:C,alignmentAxis:E}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return l&&typeof E=="number"&&(C=l==="end"?E*-1:E),u?{x:C*m,y:x*c}:{x:x*c,y:C*m}}const G3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,a=await z3(t,e);return{x:r+a.x,y:n+a.y,data:a}}}},Z3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:l={fn:A=>{let{x:S,y:j}=A;return{x:S,y:j}}},...u}=La(e,t),c={x:r,y:n},m=await $l(t,u),p=os(_a(a)),x=wh(p);let C=c[x],E=c[p];if(o){const A=x==="y"?"top":"left",S=x==="y"?"bottom":"right",j=C+m[A],O=C-m[S];C=Ch(j,C,O)}if(i){const A=p==="y"?"top":"left",S=p==="y"?"bottom":"right",j=E+m[A],O=E-m[S];E=Ch(j,E,O)}const v=l.fn({...t,[x]:C,[p]:E});return{...v,data:{x:v.x-r,y:v.y-n}}}}},U3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:a,rects:o,middlewareData:i}=t,{offset:l=0,mainAxis:u=!0,crossAxis:c=!0}=La(e,t),m={x:r,y:n},p=os(a),x=wh(p);let C=m[x],E=m[p];const v=La(l,t),A=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const O=x==="y"?"height":"width",L=o.reference[x]-o.floating[O]+A.mainAxis,M=o.reference[x]+o.reference[O]-A.mainAxis;C<L?C=L:C>M&&(C=M)}if(c){var S,j;const O=x==="y"?"width":"height",L=["top","left"].includes(_a(a)),M=o.reference[p]-o.floating[O]+(L&&((S=i.offset)==null?void 0:S[p])||0)+(L?0:A.crossAxis),z=o.reference[p]+o.reference[O]+(L?0:((j=i.offset)==null?void 0:j[p])||0)-(L?A.crossAxis:0);E<M?E=M:E>z&&(E=z)}return{[x]:C,[p]:E}}}},X3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:a,elements:o}=t,{apply:i=()=>{},...l}=La(e,t),u=await $l(t,l),c=_a(r),m=as(r),p=os(r)==="y",{width:x,height:C}=n.floating;let E,v;c==="top"||c==="bottom"?(E=c,v=m===(await(a.isRTL==null?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(v=c,E=m==="end"?"top":"bottom");const A=C-u[E],S=x-u[v],j=!t.middlewareData.shift;let O=A,L=S;if(p){const z=x-u.left-u.right;L=m||j?mo(S,z):z}else{const z=C-u.top-u.bottom;O=m||j?mo(A,z):z}if(j&&!m){const z=wn(u.left,0),H=wn(u.right,0),oe=wn(u.top,0),J=wn(u.bottom,0);p?L=x-2*(z!==0||H!==0?z+H:wn(u.left,u.right)):O=C-2*(oe!==0||J!==0?oe+J:wn(u.top,u.bottom))}await i({...t,availableWidth:L,availableHeight:O});const M=await a.getDimensions(o.floating);return x!==M.width||C!==M.height?{reset:{rects:!0}}:{}}}};function bo(e){return ov(e)?(e.nodeName||"").toLowerCase():"#document"}function En(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wa(e){var t;return(t=(ov(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ov(e){return e instanceof Node||e instanceof En(e).Node}function Va(e){return e instanceof Element||e instanceof En(e).Element}function xa(e){return e instanceof HTMLElement||e instanceof En(e).HTMLElement}function iv(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof En(e).ShadowRoot}function Ll(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=Mn(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(a)}function Y3(e){return["table","td","th"].includes(bo(e))}function Ah(e){const t=Fh(),r=Mn(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function J3(e){let t=is(e);for(;xa(t)&&!Mc(t);){if(Ah(t))return t;t=is(t)}return null}function Fh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Mc(e){return["html","body","#document"].includes(bo(e))}function Mn(e){return En(e).getComputedStyle(e)}function Rc(e){return Va(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function is(e){if(bo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||iv(e)&&e.host||Wa(e);return iv(t)?t.host:t}function sv(e){const t=is(e);return Mc(t)?e.ownerDocument?e.ownerDocument.body:e.body:xa(t)&&Ll(t)?t:sv(t)}function _l(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=sv(e),o=a===((n=e.ownerDocument)==null?void 0:n.body),i=En(a);return o?t.concat(i,i.visualViewport||[],Ll(a)?a:[],i.frameElement&&r?_l(i.frameElement):[]):t.concat(a,_l(a,[],r))}function lv(e){const t=Mn(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=xa(e),o=a?e.offsetWidth:r,i=a?e.offsetHeight:n,l=Bc(r)!==o||Bc(n)!==i;return l&&(r=o,n=i),{width:r,height:n,$:l}}function jh(e){return Va(e)?e:e.contextElement}function ss(e){const t=jh(e);if(!xa(t))return vo(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:o}=lv(t);let i=(o?Bc(r.width):r.width)/n,l=(o?Bc(r.height):r.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Q3=vo(0);function uv(e){const t=En(e);return!Fh()||!t.visualViewport?Q3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function K3(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==En(e)?!1:t}function ai(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),o=jh(e);let i=vo(1);t&&(n?Va(n)&&(i=ss(n)):i=ss(e));const l=K3(o,r,n)?uv(o):vo(0);let u=(a.left+l.x)/i.x,c=(a.top+l.y)/i.y,m=a.width/i.x,p=a.height/i.y;if(o){const x=En(o),C=n&&Va(n)?En(n):n;let E=x.frameElement;for(;E&&n&&C!==x;){const v=ss(E),A=E.getBoundingClientRect(),S=Mn(E),j=A.left+(E.clientLeft+parseFloat(S.paddingLeft))*v.x,O=A.top+(E.clientTop+parseFloat(S.paddingTop))*v.y;u*=v.x,c*=v.y,m*=v.x,p*=v.y,u+=j,c+=O,E=En(E).frameElement}}return Nc({width:m,height:p,x:u,y:c})}function q3(e){let{rect:t,offsetParent:r,strategy:n}=e;const a=xa(r),o=Wa(r);if(r===o)return t;let i={scrollLeft:0,scrollTop:0},l=vo(1);const u=vo(0);if((a||!a&&n!=="fixed")&&((bo(r)!=="body"||Ll(o))&&(i=Rc(r)),xa(r))){const c=ai(r);l=ss(r),u.x=c.x+r.clientLeft,u.y=c.y+r.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-i.scrollLeft*l.x+u.x,y:t.y*l.y-i.scrollTop*l.y+u.y}}function e4(e){return Array.from(e.getClientRects())}function cv(e){return ai(Wa(e)).left+Rc(e).scrollLeft}function t4(e){const t=Wa(e),r=Rc(e),n=e.ownerDocument.body,a=wn(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=wn(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+cv(e);const l=-r.scrollTop;return Mn(n).direction==="rtl"&&(i+=wn(t.clientWidth,n.clientWidth)-a),{width:a,height:o,x:i,y:l}}function r4(e,t){const r=En(e),n=Wa(e),a=r.visualViewport;let o=n.clientWidth,i=n.clientHeight,l=0,u=0;if(a){o=a.width,i=a.height;const c=Fh();(!c||c&&t==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}return{width:o,height:i,x:l,y:u}}function n4(e,t){const r=ai(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,o=xa(e)?ss(e):vo(1),i=e.clientWidth*o.x,l=e.clientHeight*o.y,u=a*o.x,c=n*o.y;return{width:i,height:l,x:u,y:c}}function dv(e,t,r){let n;if(t==="viewport")n=r4(e,r);else if(t==="document")n=t4(Wa(e));else if(Va(t))n=n4(t,r);else{const a=uv(e);n={...t,x:t.x-a.x,y:t.y-a.y}}return Nc(n)}function fv(e,t){const r=is(e);return r===t||!Va(r)||Mc(r)?!1:Mn(r).position==="fixed"||fv(r,t)}function a4(e,t){const r=t.get(e);if(r)return r;let n=_l(e,[],!1).filter(l=>Va(l)&&bo(l)!=="body"),a=null;const o=Mn(e).position==="fixed";let i=o?is(e):e;for(;Va(i)&&!Mc(i);){const l=Mn(i),u=Ah(i);!u&&l.position==="fixed"&&(a=null),(o?!u&&!a:!u&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Ll(i)&&!u&&fv(e,i))?n=n.filter(m=>m!==i):a=l,i=is(i)}return t.set(e,n),n}function o4(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const i=[...r==="clippingAncestors"?a4(t,this._c):[].concat(r),n],l=i[0],u=i.reduce((c,m)=>{const p=dv(t,m,a);return c.top=wn(p.top,c.top),c.right=mo(p.right,c.right),c.bottom=mo(p.bottom,c.bottom),c.left=wn(p.left,c.left),c},dv(t,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function i4(e){return lv(e)}function s4(e,t,r){const n=xa(t),a=Wa(t),o=r==="fixed",i=ai(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const u=vo(0);if(n||!n&&!o)if((bo(t)!=="body"||Ll(a))&&(l=Rc(t)),n){const c=ai(t,!0,o,t);u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}else a&&(u.x=cv(a));return{x:i.left+l.scrollLeft-u.x,y:i.top+l.scrollTop-u.y,width:i.width,height:i.height}}function hv(e,t){return!xa(e)||Mn(e).position==="fixed"?null:t?t(e):e.offsetParent}function pv(e,t){const r=En(e);if(!xa(e))return r;let n=hv(e,t);for(;n&&Y3(n)&&Mn(n).position==="static";)n=hv(n,t);return n&&(bo(n)==="html"||bo(n)==="body"&&Mn(n).position==="static"&&!Ah(n))?r:n||J3(e)||r}const l4=async function(e){let{reference:t,floating:r,strategy:n}=e;const a=this.getOffsetParent||pv,o=this.getDimensions;return{reference:s4(t,await a(r),n),floating:{x:0,y:0,...await o(r)}}};function u4(e){return Mn(e).direction==="rtl"}const c4={convertOffsetParentRelativeRectToViewportRelativeRect:q3,getDocumentElement:Wa,getClippingRect:o4,getOffsetParent:pv,getElementRects:l4,getClientRects:e4,getDimensions:i4,getScale:ss,isElement:Va,isRTL:u4};function d4(e,t){let r=null,n;const a=Wa(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}function i(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),o();const{left:c,top:m,width:p,height:x}=e.getBoundingClientRect();if(l||t(),!p||!x)return;const C=Pc(m),E=Pc(a.clientWidth-(c+p)),v=Pc(a.clientHeight-(m+x)),A=Pc(c),j={rootMargin:-C+"px "+-E+"px "+-v+"px "+-A+"px",threshold:wn(0,mo(1,u))||1};let O=!0;function L(M){const z=M[0].intersectionRatio;if(z!==u){if(!O)return i();z?i(!1,z):n=setTimeout(()=>{i(!1,1e-7)},100)}O=!1}try{r=new IntersectionObserver(L,{...j,root:a.ownerDocument})}catch{r=new IntersectionObserver(L,j)}r.observe(e)}return i(!0),o}function gv(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,c=jh(e),m=a||o?[...c?_l(c):[],..._l(t)]:[];m.forEach(S=>{a&&S.addEventListener("scroll",r,{passive:!0}),o&&S.addEventListener("resize",r)});const p=c&&l?d4(c,r):null;let x=-1,C=null;i&&(C=new ResizeObserver(S=>{let[j]=S;j&&j.target===c&&C&&(C.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{C&&C.observe(t)})),r()}),c&&!u&&C.observe(c),C.observe(t));let E,v=u?ai(e):null;u&&A();function A(){const S=ai(e);v&&(S.x!==v.x||S.y!==v.y||S.width!==v.width||S.height!==v.height)&&r(),v=S,E=requestAnimationFrame(A)}return r(),()=>{m.forEach(S=>{a&&S.removeEventListener("scroll",r),o&&S.removeEventListener("resize",r)}),p&&p(),C&&C.disconnect(),C=null,u&&cancelAnimationFrame(E)}}const f4=(e,t,r)=>{const n=new Map,a={platform:c4,...r},o={...a.platform,_c:n};return W3(e,t,{...a,platform:o})};var Ih=h.useLayoutEffect,h4=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],$c=function(){};function p4(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function g4(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];var o=[].concat(n);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&o.push("".concat(p4(e,i)));return o.filter(function(l){return l}).map(function(l){return String(l).trim()}).join(" ")}var Lc=function(t){return D4(t)?t.filter(Boolean):ni(t)==="object"&&t!==null?[t]:[]},mv=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var r=ma(t,h4);return dt({},r)},hr=function(t,r,n){var a=t.cx,o=t.getStyles,i=t.getClassNames,l=t.className;return{css:o(r,t),className:a(n??{},i(r,t),l)}};function _c(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function m4(e){return _c(e)?window.innerHeight:e.clientHeight}function vv(e){return _c(e)?window.pageYOffset:e.scrollTop}function Wc(e,t){if(_c(e)){window.scrollTo(0,t);return}e.scrollTop=t}function v4(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return a;return document.documentElement}function b4(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function Vc(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:$c,a=vv(e),o=t-a,i=10,l=0;function u(){l+=i;var c=b4(l,a,o,r);Wc(e,c),l<r?window.requestAnimationFrame(u):n(e)}u()}function bv(e,t){var r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),a=t.offsetHeight/3;n.bottom+a>r.bottom?Wc(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+a,e.scrollHeight)):n.top-a<r.top&&Wc(e,Math.max(t.offsetTop-a,0))}function x4(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function xv(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function y4(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var yv=!1,C4={get passive(){return yv=!0}},Hc=typeof window<"u"?window:{};Hc.addEventListener&&Hc.removeEventListener&&(Hc.addEventListener("p",$c,C4),Hc.removeEventListener("p",$c,!1));var w4=yv;function E4(e){return e!=null}function D4(e){return Array.isArray(e)}function Wl(e,t,r){return e?t:r}function xN(e){return e}function yN(e){return e}var S4=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var o=Object.entries(t).filter(function(i){var l=$a(i,1),u=l[0];return!n.includes(u)});return o.reduce(function(i,l){var u=$a(l,2),c=u[0],m=u[1];return i[c]=m,i},{})},A4=["children","innerProps"],F4=["children","innerProps"];function j4(e){var t=e.maxHeight,r=e.menuEl,n=e.minHeight,a=e.placement,o=e.shouldScroll,i=e.isFixedPosition,l=e.controlHeight,u=v4(r),c={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return c;var m=u.getBoundingClientRect(),p=m.height,x=r.getBoundingClientRect(),C=x.bottom,E=x.height,v=x.top,A=r.offsetParent.getBoundingClientRect(),S=A.top,j=i?window.innerHeight:m4(u),O=vv(u),L=parseInt(getComputedStyle(r).marginBottom,10),M=parseInt(getComputedStyle(r).marginTop,10),z=S-M,H=j-v,oe=z+O,J=p-O-v,ge=C-j+O+L,xe=O+v-M,Q=160;switch(a){case"auto":case"bottom":if(H>=E)return{placement:"bottom",maxHeight:t};if(J>=E&&!i)return o&&Vc(u,ge,Q),{placement:"bottom",maxHeight:t};if(!i&&J>=n||i&&H>=n){o&&Vc(u,ge,Q);var ce=i?H-L:J-L;return{placement:"bottom",maxHeight:ce}}if(a==="auto"||i){var N=t,W=i?z:oe;return W>=n&&(N=Math.min(W-L-l,t)),{placement:"top",maxHeight:N}}if(a==="bottom")return o&&Wc(u,ge),{placement:"bottom",maxHeight:t};break;case"top":if(z>=E)return{placement:"top",maxHeight:t};if(oe>=E&&!i)return o&&Vc(u,xe,Q),{placement:"top",maxHeight:t};if(!i&&oe>=n||i&&z>=n){var ee=t;return(!i&&oe>=n||i&&z>=n)&&(ee=i?z-M:oe-M),o&&Vc(u,xe,Q),{placement:"top",maxHeight:ee}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(a,'".'))}return c}function I4(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Cv=function(t){return t==="auto"?"bottom":t},T4=function(t,r){var n,a=t.placement,o=t.theme,i=o.borderRadius,l=o.spacing,u=o.colors;return dt((n={label:"menu"},Tl(n,I4(a),"100%"),Tl(n,"position","absolute"),Tl(n,"width","100%"),Tl(n,"zIndex",1),n),r?{}:{backgroundColor:u.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},wv=h.createContext(null),k4=function(t){var r=t.children,n=t.minMenuHeight,a=t.maxMenuHeight,o=t.menuPlacement,i=t.menuPosition,l=t.menuShouldScrollIntoView,u=t.theme,c=h.useContext(wv)||{},m=c.setPortalPlacement,p=h.useRef(null),x=h.useState(a),C=$a(x,2),E=C[0],v=C[1],A=h.useState(null),S=$a(A,2),j=S[0],O=S[1],L=u.spacing.controlHeight;return Ih(function(){var M=p.current;if(M){var z=i==="fixed",H=l&&!z,oe=j4({maxHeight:a,menuEl:M,minHeight:n,placement:o,shouldScroll:H,isFixedPosition:z,controlHeight:L});v(oe.maxHeight),O(oe.placement),m==null||m(oe.placement)}},[a,o,i,l,n,m,L]),r({ref:p,placerProps:dt(dt({},t),{},{placement:j||Cv(o),maxHeight:E})})},B4=function(t){var r=t.children,n=t.innerRef,a=t.innerProps;return pt("div",we({},hr(t,"menu",{menu:!0}),{ref:n},a),r)},P4=B4,O4=function(t,r){var n=t.maxHeight,a=t.theme.spacing.baseUnit;return dt({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:a,paddingTop:a})},N4=function(t){var r=t.children,n=t.innerProps,a=t.innerRef,o=t.isMulti;return pt("div",we({},hr(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:a},n),r)},Ev=function(t,r){var n=t.theme,a=n.spacing.baseUnit,o=n.colors;return dt({textAlign:"center"},r?{}:{color:o.neutral40,padding:"".concat(a*2,"px ").concat(a*3,"px")})},M4=Ev,R4=Ev,$4=function(t){var r=t.children,n=r===void 0?"No options":r,a=t.innerProps,o=ma(t,A4);return pt("div",we({},hr(dt(dt({},o),{},{children:n,innerProps:a}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),a),n)},L4=function(t){var r=t.children,n=r===void 0?"Loading...":r,a=t.innerProps,o=ma(t,F4);return pt("div",we({},hr(dt(dt({},o),{},{children:n,innerProps:a}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),a),n)},_4=function(t){var r=t.rect,n=t.offset,a=t.position;return{left:r.left,position:a,top:n,width:r.width,zIndex:1}},W4=function(t){var r=t.appendTo,n=t.children,a=t.controlElement,o=t.innerProps,i=t.menuPlacement,l=t.menuPosition,u=h.useRef(null),c=h.useRef(null),m=h.useState(Cv(i)),p=$a(m,2),x=p[0],C=p[1],E=h.useMemo(function(){return{setPortalPlacement:C}},[]),v=h.useState(null),A=$a(v,2),S=A[0],j=A[1],O=h.useCallback(function(){if(a){var H=x4(a),oe=l==="fixed"?0:window.pageYOffset,J=H[x]+oe;(J!==(S==null?void 0:S.offset)||H.left!==(S==null?void 0:S.rect.left)||H.width!==(S==null?void 0:S.rect.width))&&j({offset:J,rect:H})}},[a,l,x,S==null?void 0:S.offset,S==null?void 0:S.rect.left,S==null?void 0:S.rect.width]);Ih(function(){O()},[O]);var L=h.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),a&&u.current&&(c.current=gv(a,u.current,O,{elementResize:"ResizeObserver"in window}))},[a,O]);Ih(function(){L()},[L]);var M=h.useCallback(function(H){u.current=H,L()},[L]);if(!r&&l!=="fixed"||!S)return null;var z=pt("div",we({ref:M},hr(dt(dt({},t),{},{offset:S.offset,position:l,rect:S.rect}),"menuPortal",{"menu-portal":!0}),o),n);return pt(wv.Provider,{value:E},r?Qo.createPortal(z,r):z)},V4=function(t){var r=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},H4=function(t){var r=t.children,n=t.innerProps,a=t.isDisabled,o=t.isRtl;return pt("div",we({},hr(t,"container",{"--is-disabled":a,"--is-rtl":o}),n),r)},z4=function(t,r){var n=t.theme.spacing,a=t.isMulti,o=t.hasValue,i=t.selectProps.controlShouldRenderValue;return dt({alignItems:"center",display:a&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},G4=function(t){var r=t.children,n=t.innerProps,a=t.isMulti,o=t.hasValue;return pt("div",we({},hr(t,"valueContainer",{"value-container":!0,"value-container--is-multi":a,"value-container--has-value":o}),n),r)},Z4=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},U4=function(t){var r=t.children,n=t.innerProps;return pt("div",we({},hr(t,"indicatorsContainer",{indicators:!0}),n),r)},Dv,X4=["size"],Y4=["innerProps","isRtl","size"];function J4(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Q4=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICd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IHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:J4},Sv=function(t){var r=t.size,n=ma(t,X4);return pt("svg",we({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Q4},n))},Th=function(t){return pt(Sv,we({size:20},t),pt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Av=function(t){return pt(Sv,we({size:20},t),pt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Fv=function(t,r){var n=t.isFocused,a=t.theme,o=a.spacing.baseUnit,i=a.colors;return dt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?i.neutral60:i.neutral20,padding:o*2,":hover":{color:n?i.neutral80:i.neutral40}})},K4=Fv,q4=function(t){var r=t.children,n=t.innerProps;return pt("div",we({},hr(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||pt(Av,null))},e5=Fv,t5=function(t){var r=t.children,n=t.innerProps;return pt("div",we({},hr(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||pt(Th,null))},r5=function(t,r){var n=t.isDisabled,a=t.theme,o=a.spacing.baseUnit,i=a.colors;return dt({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:o*2,marginTop:o*2})},n5=function(t){var r=t.innerProps;return pt("span",we({},r,hr(t,"indicatorSeparator",{"indicator-separator":!0})))},a5=A3(Dv||(Dv=B3([`
54
+ `),n=0;n<r.length;n++){var a=v3(r[n]);if(a){if(b3.has(a))break;if(/^[A-Z]/.test(a))return x3(a)}}},bh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",xh="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",C3=function(t,r){if(process.env.NODE_ENV!=="production"&&typeof r.css=="string"&&r.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+r.css+"`");var n={};for(var a in r)gh.call(r,a)&&(n[a]=r[a]);if(n[bh]=t,process.env.NODE_ENV!=="production"&&r.css&&(typeof r.css!="object"||typeof r.css.name!="string"||r.css.name.indexOf("-")===-1)){var o=y3(new Error().stack);o&&(n[xh]=o)}return n},w3=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return dh(r,n,a),Z0(function(){return fh(r,n,a)}),null},Y0=vh(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[bh],o=[n],i="";typeof e.className=="string"?i=R0(t.registered,o,e.className):e.className!=null&&(i=e.className+" ");var l=Rl(o,void 0,je.useContext(kc));if(process.env.NODE_ENV!=="production"&&l.name.indexOf("-")===-1){var u=e[xh];u&&(l=Rl([l,"label:"+u+";"]))}i+=t.key+"-"+l.name;var c={};for(var m in e)gh.call(e,m)&&m!=="css"&&m!==bh&&(process.env.NODE_ENV==="production"||m!==xh)&&(c[m]=e[m]);return c.ref=r,c.className=i,je.createElement(je.Fragment,null,je.createElement(w3,{cache:t,serialized:l,isStringTag:typeof a=="string"}),je.createElement(a,c))});process.env.NODE_ENV!=="production"&&(Y0.displayName="EmotionCssPropInternal");var E3=Y0,D3={name:"@emotion/react",version:"11.11.1",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.2","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.0","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},pt=function(t,r){var n=arguments;if(r==null||!gh.call(r,"css"))return je.createElement.apply(void 0,n);var a=n.length,o=new Array(a);o[0]=E3,o[1]=C3(t,r);for(var i=2;i<a;i++)o[i]=n[i];return je.createElement.apply(null,o)},J0=!1,S3=vh(function(e,t){process.env.NODE_ENV!=="production"&&!J0&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),J0=!0);var r=e.styles,n=Rl([r],void 0,je.useContext(kc)),a=je.useRef();return U0(function(){var o=t.key+"-global",i=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,u=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),u!==null&&(l=!0,u.setAttribute("data-emotion",o),i.hydrate([u])),a.current=[i,l],function(){i.flush()}},[t]),U0(function(){var o=a.current,i=o[0],l=o[1];if(l){o[1]=!1;return}if(n.next!==void 0&&fh(t,n.next,!0),i.tags.length){var u=i.tags[i.tags.length-1].nextElementSibling;i.before=u,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});process.env.NODE_ENV!=="production"&&(S3.displayName="EmotionGlobal");function yh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Rl(t)}var A3=function(){var t=yh.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},F3=function e(t){for(var r=t.length,n=0,a="";n<r;n++){var o=t[n];if(o!=null){var i=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=e(o);else{process.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),i="";for(var l in o)o[l]&&l&&(i&&(i+=" "),i+=l)}break}default:i=o}i&&(a&&(a+=" "),a+=i)}}return a};function j3(e,t,r){var n=[],a=R0(e,n,r);return n.length<2?r:a+t(n)}var I3=function(t){var r=t.cache,n=t.serializedArr;return Z0(function(){for(var a=0;a<n.length;a++)fh(r,n[a],!1)}),null},T3=vh(function(e,t){var r=!1,n=[],a=function(){if(r&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var c=arguments.length,m=new Array(c),p=0;p<c;p++)m[p]=arguments[p];var x=Rl(m,t.registered);return n.push(x),dh(t,x,!1),t.key+"-"+x.name},o=function(){if(r&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var c=arguments.length,m=new Array(c),p=0;p<c;p++)m[p]=arguments[p];return j3(t.registered,a,F3(m))},i={css:a,cx:o,theme:je.useContext(kc)},l=e.children(i);return r=!0,je.createElement(je.Fragment,null,je.createElement(I3,{cache:t,serializedArr:n}),l)});if(process.env.NODE_ENV!=="production"&&(T3.displayName="EmotionClassNames"),process.env.NODE_ENV!=="production"){var Q0=!0,k3=typeof jest<"u"||typeof vi<"u";if(Q0&&!k3){var K0=typeof globalThis<"u"?globalThis:Q0?window:global,q0="__EMOTION_REACT_"+D3.version.split(".")[0]+"__";K0[q0]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),K0[q0]=!0}}function B3(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const P3=["top","right","bottom","left"],mo=Math.min,wn=Math.max,Bc=Math.round,Pc=Math.floor,vo=e=>({x:e,y:e}),O3={left:"right",right:"left",bottom:"top",top:"bottom"},N3={start:"end",end:"start"};function Ch(e,t,r){return wn(e,mo(t,r))}function La(e,t){return typeof e=="function"?e(t):e}function _a(e){return e.split("-")[0]}function as(e){return e.split("-")[1]}function wh(e){return e==="x"?"y":"x"}function Eh(e){return e==="y"?"height":"width"}function os(e){return["top","bottom"].includes(_a(e))?"y":"x"}function Dh(e){return wh(os(e))}function M3(e,t,r){r===void 0&&(r=!1);const n=as(e),a=Dh(e),o=Eh(a);let i=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Oc(i)),[i,Oc(i)]}function R3(e){const t=Oc(e);return[Sh(e),t,Sh(t)]}function Sh(e){return e.replace(/start|end/g,t=>N3[t])}function $3(e,t,r){const n=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return r?t?a:n:t?n:a;case"left":case"right":return t?o:i;default:return[]}}function L3(e,t,r,n){const a=as(e);let o=$3(_a(e),r==="start",n);return a&&(o=o.map(i=>i+"-"+a),t&&(o=o.concat(o.map(Sh)))),o}function Oc(e){return e.replace(/left|right|bottom|top/g,t=>O3[t])}function _3(e){return{top:0,right:0,bottom:0,left:0,...e}}function ev(e){return typeof e!="number"?_3(e):{top:e,right:e,bottom:e,left:e}}function Nc(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function tv(e,t,r){let{reference:n,floating:a}=e;const o=os(t),i=Dh(t),l=Eh(i),u=_a(t),c=o==="y",m=n.x+n.width/2-a.width/2,p=n.y+n.height/2-a.height/2,x=n[l]/2-a[l]/2;let C;switch(u){case"top":C={x:m,y:n.y-a.height};break;case"bottom":C={x:m,y:n.y+n.height};break;case"right":C={x:n.x+n.width,y:p};break;case"left":C={x:n.x-a.width,y:p};break;default:C={x:n.x,y:n.y}}switch(as(t)){case"start":C[i]-=x*(r&&c?-1:1);break;case"end":C[i]+=x*(r&&c?-1:1);break}return C}const W3=async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:o=[],platform:i}=r,l=o.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:p}=tv(c,n,u),x=n,C={},E=0;for(let v=0;v<l.length;v++){const{name:A,fn:S}=l[v],{x:j,y:O,data:L,reset:M}=await S({x:m,y:p,initialPlacement:n,placement:x,strategy:a,middlewareData:C,rects:c,platform:i,elements:{reference:e,floating:t}});if(m=j??m,p=O??p,C={...C,[A]:{...C[A],...L}},M&&E<=50){E++,typeof M=="object"&&(M.placement&&(x=M.placement),M.rects&&(c=M.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:a}):M.rects),{x:m,y:p}=tv(c,x,u)),v=-1;continue}}return{x:m,y:p,placement:x,strategy:a,middlewareData:C}};async function $l(e,t){var r;t===void 0&&(t={});const{x:n,y:a,platform:o,rects:i,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:x=!1,padding:C=0}=La(t,e),E=ev(C),A=l[x?p==="floating"?"reference":"floating":p],S=Nc(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(A)))==null||r?A:A.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:m,strategy:u})),j=p==="floating"?{...i.floating,x:n,y:a}:i.reference,O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),L=await(o.isElement==null?void 0:o.isElement(O))?await(o.getScale==null?void 0:o.getScale(O))||{x:1,y:1}:{x:1,y:1},M=Nc(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:j,offsetParent:O,strategy:u}):j);return{top:(S.top-M.top+E.top)/L.y,bottom:(M.bottom-S.bottom+E.bottom)/L.y,left:(S.left-M.left+E.left)/L.x,right:(M.right-S.right+E.right)/L.x}}const rv=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:a,rects:o,platform:i,elements:l,middlewareData:u}=t,{element:c,padding:m=0}=La(e,t)||{};if(c==null)return{};const p=ev(m),x={x:r,y:n},C=Dh(a),E=Eh(C),v=await i.getDimensions(c),A=C==="y",S=A?"top":"left",j=A?"bottom":"right",O=A?"clientHeight":"clientWidth",L=o.reference[E]+o.reference[C]-x[C]-o.floating[E],M=x[C]-o.reference[C],z=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let H=z?z[O]:0;(!H||!await(i.isElement==null?void 0:i.isElement(z)))&&(H=l.floating[O]||o.floating[E]);const oe=L/2-M/2,J=H/2-v[E]/2-1,ge=mo(p[S],J),xe=mo(p[j],J),Q=ge,ce=H-v[E]-xe,N=H/2-v[E]/2+oe,W=Ch(Q,N,ce),ee=!u.arrow&&as(a)!=null&&N!=W&&o.reference[E]/2-(N<Q?ge:xe)-v[E]/2<0,de=ee?N<Q?N-Q:N-ce:0;return{[C]:x[C]+de,data:{[C]:W,centerOffset:N-W-de,...ee&&{alignmentOffset:de}},reset:ee}}}),V3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:a,middlewareData:o,rects:i,initialPlacement:l,platform:u,elements:c}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:x,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:v=!0,...A}=La(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const S=_a(a),j=_a(l)===l,O=await(u.isRTL==null?void 0:u.isRTL(c.floating)),L=x||(j||!v?[Oc(l)]:R3(l));!x&&E!=="none"&&L.push(...L3(l,v,E,O));const M=[l,...L],z=await $l(t,A),H=[];let oe=((n=o.flip)==null?void 0:n.overflows)||[];if(m&&H.push(z[S]),p){const Q=M3(a,i,O);H.push(z[Q[0]],z[Q[1]])}if(oe=[...oe,{placement:a,overflows:H}],!H.every(Q=>Q<=0)){var J,ge;const Q=(((J=o.flip)==null?void 0:J.index)||0)+1,ce=M[Q];if(ce)return{data:{index:Q,overflows:oe},reset:{placement:ce}};let N=(ge=oe.filter(W=>W.overflows[0]<=0).sort((W,ee)=>W.overflows[1]-ee.overflows[1])[0])==null?void 0:ge.placement;if(!N)switch(C){case"bestFit":{var xe;const W=(xe=oe.map(ee=>[ee.placement,ee.overflows.filter(de=>de>0).reduce((de,ne)=>de+ne,0)]).sort((ee,de)=>ee[1]-de[1])[0])==null?void 0:xe[0];W&&(N=W);break}case"initialPlacement":N=l;break}if(a!==N)return{reset:{placement:N}}}return{}}}};function nv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function av(e){return P3.some(t=>e[t]>=0)}const H3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...a}=La(e,t);switch(n){case"referenceHidden":{const o=await $l(t,{...a,elementContext:"reference"}),i=nv(o,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:av(i)}}}case"escaped":{const o=await $l(t,{...a,altBoundary:!0}),i=nv(o,r.floating);return{data:{escapedOffsets:i,escaped:av(i)}}}default:return{}}}}};async function z3(e,t){const{placement:r,platform:n,elements:a}=e,o=await(n.isRTL==null?void 0:n.isRTL(a.floating)),i=_a(r),l=as(r),u=os(r)==="y",c=["left","top"].includes(i)?-1:1,m=o&&u?-1:1,p=La(t,e);let{mainAxis:x,crossAxis:C,alignmentAxis:E}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return l&&typeof E=="number"&&(C=l==="end"?E*-1:E),u?{x:C*m,y:x*c}:{x:x*c,y:C*m}}const G3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,a=await z3(t,e);return{x:r+a.x,y:n+a.y,data:a}}}},Z3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:l={fn:A=>{let{x:S,y:j}=A;return{x:S,y:j}}},...u}=La(e,t),c={x:r,y:n},m=await $l(t,u),p=os(_a(a)),x=wh(p);let C=c[x],E=c[p];if(o){const A=x==="y"?"top":"left",S=x==="y"?"bottom":"right",j=C+m[A],O=C-m[S];C=Ch(j,C,O)}if(i){const A=p==="y"?"top":"left",S=p==="y"?"bottom":"right",j=E+m[A],O=E-m[S];E=Ch(j,E,O)}const v=l.fn({...t,[x]:C,[p]:E});return{...v,data:{x:v.x-r,y:v.y-n}}}}},U3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:a,rects:o,middlewareData:i}=t,{offset:l=0,mainAxis:u=!0,crossAxis:c=!0}=La(e,t),m={x:r,y:n},p=os(a),x=wh(p);let C=m[x],E=m[p];const v=La(l,t),A=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const O=x==="y"?"height":"width",L=o.reference[x]-o.floating[O]+A.mainAxis,M=o.reference[x]+o.reference[O]-A.mainAxis;C<L?C=L:C>M&&(C=M)}if(c){var S,j;const O=x==="y"?"width":"height",L=["top","left"].includes(_a(a)),M=o.reference[p]-o.floating[O]+(L&&((S=i.offset)==null?void 0:S[p])||0)+(L?0:A.crossAxis),z=o.reference[p]+o.reference[O]+(L?0:((j=i.offset)==null?void 0:j[p])||0)-(L?A.crossAxis:0);E<M?E=M:E>z&&(E=z)}return{[x]:C,[p]:E}}}},X3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:a,elements:o}=t,{apply:i=()=>{},...l}=La(e,t),u=await $l(t,l),c=_a(r),m=as(r),p=os(r)==="y",{width:x,height:C}=n.floating;let E,v;c==="top"||c==="bottom"?(E=c,v=m===(await(a.isRTL==null?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(v=c,E=m==="end"?"top":"bottom");const A=C-u[E],S=x-u[v],j=!t.middlewareData.shift;let O=A,L=S;if(p){const z=x-u.left-u.right;L=m||j?mo(S,z):z}else{const z=C-u.top-u.bottom;O=m||j?mo(A,z):z}if(j&&!m){const z=wn(u.left,0),H=wn(u.right,0),oe=wn(u.top,0),J=wn(u.bottom,0);p?L=x-2*(z!==0||H!==0?z+H:wn(u.left,u.right)):O=C-2*(oe!==0||J!==0?oe+J:wn(u.top,u.bottom))}await i({...t,availableWidth:L,availableHeight:O});const M=await a.getDimensions(o.floating);return x!==M.width||C!==M.height?{reset:{rects:!0}}:{}}}};function bo(e){return ov(e)?(e.nodeName||"").toLowerCase():"#document"}function En(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wa(e){var t;return(t=(ov(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ov(e){return e instanceof Node||e instanceof En(e).Node}function Va(e){return e instanceof Element||e instanceof En(e).Element}function xa(e){return e instanceof HTMLElement||e instanceof En(e).HTMLElement}function iv(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof En(e).ShadowRoot}function Ll(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=Mn(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(a)}function Y3(e){return["table","td","th"].includes(bo(e))}function Ah(e){const t=Fh(),r=Mn(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function J3(e){let t=is(e);for(;xa(t)&&!Mc(t);){if(Ah(t))return t;t=is(t)}return null}function Fh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Mc(e){return["html","body","#document"].includes(bo(e))}function Mn(e){return En(e).getComputedStyle(e)}function Rc(e){return Va(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function is(e){if(bo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||iv(e)&&e.host||Wa(e);return iv(t)?t.host:t}function sv(e){const t=is(e);return Mc(t)?e.ownerDocument?e.ownerDocument.body:e.body:xa(t)&&Ll(t)?t:sv(t)}function _l(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=sv(e),o=a===((n=e.ownerDocument)==null?void 0:n.body),i=En(a);return o?t.concat(i,i.visualViewport||[],Ll(a)?a:[],i.frameElement&&r?_l(i.frameElement):[]):t.concat(a,_l(a,[],r))}function lv(e){const t=Mn(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=xa(e),o=a?e.offsetWidth:r,i=a?e.offsetHeight:n,l=Bc(r)!==o||Bc(n)!==i;return l&&(r=o,n=i),{width:r,height:n,$:l}}function jh(e){return Va(e)?e:e.contextElement}function ss(e){const t=jh(e);if(!xa(t))return vo(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:o}=lv(t);let i=(o?Bc(r.width):r.width)/n,l=(o?Bc(r.height):r.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Q3=vo(0);function uv(e){const t=En(e);return!Fh()||!t.visualViewport?Q3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function K3(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==En(e)?!1:t}function ai(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),o=jh(e);let i=vo(1);t&&(n?Va(n)&&(i=ss(n)):i=ss(e));const l=K3(o,r,n)?uv(o):vo(0);let u=(a.left+l.x)/i.x,c=(a.top+l.y)/i.y,m=a.width/i.x,p=a.height/i.y;if(o){const x=En(o),C=n&&Va(n)?En(n):n;let E=x.frameElement;for(;E&&n&&C!==x;){const v=ss(E),A=E.getBoundingClientRect(),S=Mn(E),j=A.left+(E.clientLeft+parseFloat(S.paddingLeft))*v.x,O=A.top+(E.clientTop+parseFloat(S.paddingTop))*v.y;u*=v.x,c*=v.y,m*=v.x,p*=v.y,u+=j,c+=O,E=En(E).frameElement}}return Nc({width:m,height:p,x:u,y:c})}function q3(e){let{rect:t,offsetParent:r,strategy:n}=e;const a=xa(r),o=Wa(r);if(r===o)return t;let i={scrollLeft:0,scrollTop:0},l=vo(1);const u=vo(0);if((a||!a&&n!=="fixed")&&((bo(r)!=="body"||Ll(o))&&(i=Rc(r)),xa(r))){const c=ai(r);l=ss(r),u.x=c.x+r.clientLeft,u.y=c.y+r.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-i.scrollLeft*l.x+u.x,y:t.y*l.y-i.scrollTop*l.y+u.y}}function e4(e){return Array.from(e.getClientRects())}function cv(e){return ai(Wa(e)).left+Rc(e).scrollLeft}function t4(e){const t=Wa(e),r=Rc(e),n=e.ownerDocument.body,a=wn(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=wn(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+cv(e);const l=-r.scrollTop;return Mn(n).direction==="rtl"&&(i+=wn(t.clientWidth,n.clientWidth)-a),{width:a,height:o,x:i,y:l}}function r4(e,t){const r=En(e),n=Wa(e),a=r.visualViewport;let o=n.clientWidth,i=n.clientHeight,l=0,u=0;if(a){o=a.width,i=a.height;const c=Fh();(!c||c&&t==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}return{width:o,height:i,x:l,y:u}}function n4(e,t){const r=ai(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,o=xa(e)?ss(e):vo(1),i=e.clientWidth*o.x,l=e.clientHeight*o.y,u=a*o.x,c=n*o.y;return{width:i,height:l,x:u,y:c}}function dv(e,t,r){let n;if(t==="viewport")n=r4(e,r);else if(t==="document")n=t4(Wa(e));else if(Va(t))n=n4(t,r);else{const a=uv(e);n={...t,x:t.x-a.x,y:t.y-a.y}}return Nc(n)}function fv(e,t){const r=is(e);return r===t||!Va(r)||Mc(r)?!1:Mn(r).position==="fixed"||fv(r,t)}function a4(e,t){const r=t.get(e);if(r)return r;let n=_l(e,[],!1).filter(l=>Va(l)&&bo(l)!=="body"),a=null;const o=Mn(e).position==="fixed";let i=o?is(e):e;for(;Va(i)&&!Mc(i);){const l=Mn(i),u=Ah(i);!u&&l.position==="fixed"&&(a=null),(o?!u&&!a:!u&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Ll(i)&&!u&&fv(e,i))?n=n.filter(m=>m!==i):a=l,i=is(i)}return t.set(e,n),n}function o4(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const i=[...r==="clippingAncestors"?a4(t,this._c):[].concat(r),n],l=i[0],u=i.reduce((c,m)=>{const p=dv(t,m,a);return c.top=wn(p.top,c.top),c.right=mo(p.right,c.right),c.bottom=mo(p.bottom,c.bottom),c.left=wn(p.left,c.left),c},dv(t,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function i4(e){return lv(e)}function s4(e,t,r){const n=xa(t),a=Wa(t),o=r==="fixed",i=ai(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const u=vo(0);if(n||!n&&!o)if((bo(t)!=="body"||Ll(a))&&(l=Rc(t)),n){const c=ai(t,!0,o,t);u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}else a&&(u.x=cv(a));return{x:i.left+l.scrollLeft-u.x,y:i.top+l.scrollTop-u.y,width:i.width,height:i.height}}function hv(e,t){return!xa(e)||Mn(e).position==="fixed"?null:t?t(e):e.offsetParent}function pv(e,t){const r=En(e);if(!xa(e))return r;let n=hv(e,t);for(;n&&Y3(n)&&Mn(n).position==="static";)n=hv(n,t);return n&&(bo(n)==="html"||bo(n)==="body"&&Mn(n).position==="static"&&!Ah(n))?r:n||J3(e)||r}const l4=async function(e){let{reference:t,floating:r,strategy:n}=e;const a=this.getOffsetParent||pv,o=this.getDimensions;return{reference:s4(t,await a(r),n),floating:{x:0,y:0,...await o(r)}}};function u4(e){return Mn(e).direction==="rtl"}const c4={convertOffsetParentRelativeRectToViewportRelativeRect:q3,getDocumentElement:Wa,getClippingRect:o4,getOffsetParent:pv,getElementRects:l4,getClientRects:e4,getDimensions:i4,getScale:ss,isElement:Va,isRTL:u4};function d4(e,t){let r=null,n;const a=Wa(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}function i(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),o();const{left:c,top:m,width:p,height:x}=e.getBoundingClientRect();if(l||t(),!p||!x)return;const C=Pc(m),E=Pc(a.clientWidth-(c+p)),v=Pc(a.clientHeight-(m+x)),A=Pc(c),j={rootMargin:-C+"px "+-E+"px "+-v+"px "+-A+"px",threshold:wn(0,mo(1,u))||1};let O=!0;function L(M){const z=M[0].intersectionRatio;if(z!==u){if(!O)return i();z?i(!1,z):n=setTimeout(()=>{i(!1,1e-7)},100)}O=!1}try{r=new IntersectionObserver(L,{...j,root:a.ownerDocument})}catch{r=new IntersectionObserver(L,j)}r.observe(e)}return i(!0),o}function gv(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,c=jh(e),m=a||o?[...c?_l(c):[],..._l(t)]:[];m.forEach(S=>{a&&S.addEventListener("scroll",r,{passive:!0}),o&&S.addEventListener("resize",r)});const p=c&&l?d4(c,r):null;let x=-1,C=null;i&&(C=new ResizeObserver(S=>{let[j]=S;j&&j.target===c&&C&&(C.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{C&&C.observe(t)})),r()}),c&&!u&&C.observe(c),C.observe(t));let E,v=u?ai(e):null;u&&A();function A(){const S=ai(e);v&&(S.x!==v.x||S.y!==v.y||S.width!==v.width||S.height!==v.height)&&r(),v=S,E=requestAnimationFrame(A)}return r(),()=>{m.forEach(S=>{a&&S.removeEventListener("scroll",r),o&&S.removeEventListener("resize",r)}),p&&p(),C&&C.disconnect(),C=null,u&&cancelAnimationFrame(E)}}const f4=(e,t,r)=>{const n=new Map,a={platform:c4,...r},o={...a.platform,_c:n};return W3(e,t,{...a,platform:o})};var Ih=h.useLayoutEffect,h4=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],$c=function(){};function p4(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function g4(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];var o=[].concat(n);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&o.push("".concat(p4(e,i)));return o.filter(function(l){return l}).map(function(l){return String(l).trim()}).join(" ")}var Lc=function(t){return D4(t)?t.filter(Boolean):ni(t)==="object"&&t!==null?[t]:[]},mv=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var r=ma(t,h4);return dt({},r)},hr=function(t,r,n){var a=t.cx,o=t.getStyles,i=t.getClassNames,l=t.className;return{css:o(r,t),className:a(n??{},i(r,t),l)}};function _c(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function m4(e){return _c(e)?window.innerHeight:e.clientHeight}function vv(e){return _c(e)?window.pageYOffset:e.scrollTop}function Wc(e,t){if(_c(e)){window.scrollTo(0,t);return}e.scrollTop=t}function v4(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return a;return document.documentElement}function b4(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function Vc(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:$c,a=vv(e),o=t-a,i=10,l=0;function u(){l+=i;var c=b4(l,a,o,r);Wc(e,c),l<r?window.requestAnimationFrame(u):n(e)}u()}function bv(e,t){var r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),a=t.offsetHeight/3;n.bottom+a>r.bottom?Wc(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+a,e.scrollHeight)):n.top-a<r.top&&Wc(e,Math.max(t.offsetTop-a,0))}function x4(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function xv(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function y4(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var yv=!1,C4={get passive(){return yv=!0}},Hc=typeof window<"u"?window:{};Hc.addEventListener&&Hc.removeEventListener&&(Hc.addEventListener("p",$c,C4),Hc.removeEventListener("p",$c,!1));var w4=yv;function E4(e){return e!=null}function D4(e){return Array.isArray(e)}function Wl(e,t,r){return e?t:r}function yN(e){return e}function CN(e){return e}var S4=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var o=Object.entries(t).filter(function(i){var l=$a(i,1),u=l[0];return!n.includes(u)});return o.reduce(function(i,l){var u=$a(l,2),c=u[0],m=u[1];return i[c]=m,i},{})},A4=["children","innerProps"],F4=["children","innerProps"];function j4(e){var t=e.maxHeight,r=e.menuEl,n=e.minHeight,a=e.placement,o=e.shouldScroll,i=e.isFixedPosition,l=e.controlHeight,u=v4(r),c={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return c;var m=u.getBoundingClientRect(),p=m.height,x=r.getBoundingClientRect(),C=x.bottom,E=x.height,v=x.top,A=r.offsetParent.getBoundingClientRect(),S=A.top,j=i?window.innerHeight:m4(u),O=vv(u),L=parseInt(getComputedStyle(r).marginBottom,10),M=parseInt(getComputedStyle(r).marginTop,10),z=S-M,H=j-v,oe=z+O,J=p-O-v,ge=C-j+O+L,xe=O+v-M,Q=160;switch(a){case"auto":case"bottom":if(H>=E)return{placement:"bottom",maxHeight:t};if(J>=E&&!i)return o&&Vc(u,ge,Q),{placement:"bottom",maxHeight:t};if(!i&&J>=n||i&&H>=n){o&&Vc(u,ge,Q);var ce=i?H-L:J-L;return{placement:"bottom",maxHeight:ce}}if(a==="auto"||i){var N=t,W=i?z:oe;return W>=n&&(N=Math.min(W-L-l,t)),{placement:"top",maxHeight:N}}if(a==="bottom")return o&&Wc(u,ge),{placement:"bottom",maxHeight:t};break;case"top":if(z>=E)return{placement:"top",maxHeight:t};if(oe>=E&&!i)return o&&Vc(u,xe,Q),{placement:"top",maxHeight:t};if(!i&&oe>=n||i&&z>=n){var ee=t;return(!i&&oe>=n||i&&z>=n)&&(ee=i?z-M:oe-M),o&&Vc(u,xe,Q),{placement:"top",maxHeight:ee}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(a,'".'))}return c}function I4(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Cv=function(t){return t==="auto"?"bottom":t},T4=function(t,r){var n,a=t.placement,o=t.theme,i=o.borderRadius,l=o.spacing,u=o.colors;return dt((n={label:"menu"},Tl(n,I4(a),"100%"),Tl(n,"position","absolute"),Tl(n,"width","100%"),Tl(n,"zIndex",1),n),r?{}:{backgroundColor:u.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},wv=h.createContext(null),k4=function(t){var r=t.children,n=t.minMenuHeight,a=t.maxMenuHeight,o=t.menuPlacement,i=t.menuPosition,l=t.menuShouldScrollIntoView,u=t.theme,c=h.useContext(wv)||{},m=c.setPortalPlacement,p=h.useRef(null),x=h.useState(a),C=$a(x,2),E=C[0],v=C[1],A=h.useState(null),S=$a(A,2),j=S[0],O=S[1],L=u.spacing.controlHeight;return Ih(function(){var M=p.current;if(M){var z=i==="fixed",H=l&&!z,oe=j4({maxHeight:a,menuEl:M,minHeight:n,placement:o,shouldScroll:H,isFixedPosition:z,controlHeight:L});v(oe.maxHeight),O(oe.placement),m==null||m(oe.placement)}},[a,o,i,l,n,m,L]),r({ref:p,placerProps:dt(dt({},t),{},{placement:j||Cv(o),maxHeight:E})})},B4=function(t){var r=t.children,n=t.innerRef,a=t.innerProps;return pt("div",we({},hr(t,"menu",{menu:!0}),{ref:n},a),r)},P4=B4,O4=function(t,r){var n=t.maxHeight,a=t.theme.spacing.baseUnit;return dt({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:a,paddingTop:a})},N4=function(t){var r=t.children,n=t.innerProps,a=t.innerRef,o=t.isMulti;return pt("div",we({},hr(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:a},n),r)},Ev=function(t,r){var n=t.theme,a=n.spacing.baseUnit,o=n.colors;return dt({textAlign:"center"},r?{}:{color:o.neutral40,padding:"".concat(a*2,"px ").concat(a*3,"px")})},M4=Ev,R4=Ev,$4=function(t){var r=t.children,n=r===void 0?"No options":r,a=t.innerProps,o=ma(t,A4);return pt("div",we({},hr(dt(dt({},o),{},{children:n,innerProps:a}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),a),n)},L4=function(t){var r=t.children,n=r===void 0?"Loading...":r,a=t.innerProps,o=ma(t,F4);return pt("div",we({},hr(dt(dt({},o),{},{children:n,innerProps:a}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),a),n)},_4=function(t){var r=t.rect,n=t.offset,a=t.position;return{left:r.left,position:a,top:n,width:r.width,zIndex:1}},W4=function(t){var r=t.appendTo,n=t.children,a=t.controlElement,o=t.innerProps,i=t.menuPlacement,l=t.menuPosition,u=h.useRef(null),c=h.useRef(null),m=h.useState(Cv(i)),p=$a(m,2),x=p[0],C=p[1],E=h.useMemo(function(){return{setPortalPlacement:C}},[]),v=h.useState(null),A=$a(v,2),S=A[0],j=A[1],O=h.useCallback(function(){if(a){var H=x4(a),oe=l==="fixed"?0:window.pageYOffset,J=H[x]+oe;(J!==(S==null?void 0:S.offset)||H.left!==(S==null?void 0:S.rect.left)||H.width!==(S==null?void 0:S.rect.width))&&j({offset:J,rect:H})}},[a,l,x,S==null?void 0:S.offset,S==null?void 0:S.rect.left,S==null?void 0:S.rect.width]);Ih(function(){O()},[O]);var L=h.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),a&&u.current&&(c.current=gv(a,u.current,O,{elementResize:"ResizeObserver"in window}))},[a,O]);Ih(function(){L()},[L]);var M=h.useCallback(function(H){u.current=H,L()},[L]);if(!r&&l!=="fixed"||!S)return null;var z=pt("div",we({ref:M},hr(dt(dt({},t),{},{offset:S.offset,position:l,rect:S.rect}),"menuPortal",{"menu-portal":!0}),o),n);return pt(wv.Provider,{value:E},r?Qo.createPortal(z,r):z)},V4=function(t){var r=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},H4=function(t){var r=t.children,n=t.innerProps,a=t.isDisabled,o=t.isRtl;return pt("div",we({},hr(t,"container",{"--is-disabled":a,"--is-rtl":o}),n),r)},z4=function(t,r){var n=t.theme.spacing,a=t.isMulti,o=t.hasValue,i=t.selectProps.controlShouldRenderValue;return dt({alignItems:"center",display:a&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},G4=function(t){var r=t.children,n=t.innerProps,a=t.isMulti,o=t.hasValue;return pt("div",we({},hr(t,"valueContainer",{"value-container":!0,"value-container--is-multi":a,"value-container--has-value":o}),n),r)},Z4=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},U4=function(t){var r=t.children,n=t.innerProps;return pt("div",we({},hr(t,"indicatorsContainer",{indicators:!0}),n),r)},Dv,X4=["size"],Y4=["innerProps","isRtl","size"];function J4(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Q4=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1c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AgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:J4},Sv=function(t){var r=t.size,n=ma(t,X4);return pt("svg",we({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Q4},n))},Th=function(t){return pt(Sv,we({size:20},t),pt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Av=function(t){return pt(Sv,we({size:20},t),pt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Fv=function(t,r){var n=t.isFocused,a=t.theme,o=a.spacing.baseUnit,i=a.colors;return dt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?i.neutral60:i.neutral20,padding:o*2,":hover":{color:n?i.neutral80:i.neutral40}})},K4=Fv,q4=function(t){var r=t.children,n=t.innerProps;return pt("div",we({},hr(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||pt(Av,null))},e5=Fv,t5=function(t){var r=t.children,n=t.innerProps;return pt("div",we({},hr(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||pt(Th,null))},r5=function(t,r){var n=t.isDisabled,a=t.theme,o=a.spacing.baseUnit,i=a.colors;return dt({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:o*2,marginTop:o*2})},n5=function(t){var r=t.innerProps;return pt("span",we({},r,hr(t,"indicatorSeparator",{"indicator-separator":!0})))},a5=A3(Dv||(Dv=B3([`
55
55
  0%, 80%, 100% { opacity: 0; }
56
56
  40% { opacity: 1; }
57
- `]))),o5=function(t,r){var n=t.isFocused,a=t.size,o=t.theme,i=o.colors,l=o.spacing.baseUnit;return dt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:a,lineHeight:1,marginRight:a,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?i.neutral60:i.neutral20,padding:l*2})},kh=function(t){var r=t.delay,n=t.offset;return pt("span",{css:yh({animation:"".concat(a5," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb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lbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},i5=function(t){var r=t.innerProps,n=t.isRtl,a=t.size,o=a===void 0?4:a,i=ma(t,Y4);return pt("div",we({},hr(dt(dt({},i),{},{innerProps:r,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),pt(kh,{delay:0,offset:n}),pt(kh,{delay:160,offset:!0}),pt(kh,{delay:320,offset:!n}))},s5=function(t,r){var n=t.isDisabled,a=t.isFocused,o=t.theme,i=o.colors,l=o.borderRadius,u=o.spacing;return dt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:a?i.primary:i.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:a?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:a?i.primary:i.neutral30}})},l5=function(t){var r=t.children,n=t.isDisabled,a=t.isFocused,o=t.innerRef,i=t.innerProps,l=t.menuIsOpen;return pt("div",we({ref:o},hr(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":a,"control--menu-is-open":l}),i),r)},u5=l5,c5=["data"],d5=function(t,r){var n=t.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},f5=function(t){var r=t.children,n=t.cx,a=t.getStyles,o=t.getClassNames,i=t.Heading,l=t.headingProps,u=t.innerProps,c=t.label,m=t.theme,p=t.selectProps;return pt("div",we({},hr(t,"group",{group:!0}),u),pt(i,we({},l,{selectProps:p,theme:m,getStyles:a,getClassNames:o,cx:n}),c),pt("div",null,r))},h5=function(t,r){var n=t.theme,a=n.colors,o=n.spacing;return dt({label:"group",cursor:"default",display:"block"},r?{}:{color:a.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},p5=function(t){var r=mv(t);r.data;var n=ma(r,c5);return pt("div",we({},hr(t,"groupHeading",{"group-heading":!0}),n))},g5=f5,m5=["innerRef","isDisabled","isHidden","inputClassName"],v5=function(t,r){var n=t.isDisabled,a=t.value,o=t.theme,i=o.spacing,l=o.colors;return dt(dt({visibility:n?"hidden":"visible",transform:a?"translateZ(0)":""},b5),r?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:l.neutral80})},jv={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},b5={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":dt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},jv)},x5=function(t){return dt({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},jv)},y5=function(t){var r=t.cx,n=t.value,a=mv(t),o=a.innerRef,i=a.isDisabled,l=a.isHidden,u=a.inputClassName,c=ma(a,m5);return pt("div",we({},hr(t,"input",{"input-container":!0}),{"data-value":n||""}),pt("input",we({className:r({input:!0},u),ref:o,style:x5(l),disabled:i},c)))},C5=y5,w5=function(t,r){var n=t.theme,a=n.spacing,o=n.borderRadius,i=n.colors;return dt({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:a.baseUnit/2})},E5=function(t,r){var n=t.theme,a=n.borderRadius,o=n.colors,i=t.cropWithEllipsis;return dt({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:a/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},D5=function(t,r){var n=t.theme,a=n.spacing,o=n.borderRadius,i=n.colors,l=t.isFocused;return dt({alignItems:"center",display:"flex"},r?{}:{borderRadius:o/2,backgroundColor:l?i.dangerLight:void 0,paddingLeft:a.baseUnit,paddingRight:a.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},Iv=function(t){var r=t.children,n=t.innerProps;return pt("div",n,r)},S5=Iv,A5=Iv;function F5(e){var t=e.children,r=e.innerProps;return pt("div",we({role:"button"},r),t||pt(Th,{size:14}))}var j5=function(t){var r=t.children,n=t.components,a=t.data,o=t.innerProps,i=t.isDisabled,l=t.removeProps,u=t.selectProps,c=n.Container,m=n.Label,p=n.Remove;return pt(c,{data:a,innerProps:dt(dt({},hr(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:u},pt(m,{data:a,innerProps:dt({},hr(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},r),pt(p,{data:a,innerProps:dt(dt({},hr(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},l),selectProps:u}))},I5=j5,T5=function(t,r){var n=t.isDisabled,a=t.isFocused,o=t.isSelected,i=t.theme,l=i.spacing,u=i.colors;return dt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:o?u.primary:a?u.primary25:"transparent",color:n?u.neutral20:o?u.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:o?u.primary:u.primary50}})},k5=function(t){var r=t.children,n=t.isDisabled,a=t.isFocused,o=t.isSelected,i=t.innerRef,l=t.innerProps;return pt("div",we({},hr(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":a,"option--is-selected":o}),{ref:i,"aria-disabled":n},l),r)},B5=k5,P5=function(t,r){var n=t.theme,a=n.spacing,o=n.colors;return dt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:o.neutral50,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},O5=function(t){var r=t.children,n=t.innerProps;return pt("div",we({},hr(t,"placeholder",{placeholder:!0}),n),r)},N5=O5,M5=function(t,r){var n=t.isDisabled,a=t.theme,o=a.spacing,i=a.colors;return dt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},R5=function(t){var r=t.children,n=t.isDisabled,a=t.innerProps;return pt("div",we({},hr(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),a),r)},$5=R5,L5={ClearIndicator:t5,Control:u5,DropdownIndicator:q4,DownChevron:Av,CrossIcon:Th,Group:g5,GroupHeading:p5,IndicatorsContainer:U4,IndicatorSeparator:n5,Input:C5,LoadingIndicator:i5,Menu:P4,MenuList:N4,MenuPortal:W4,LoadingMessage:L4,NoOptionsMessage:$4,MultiValue:I5,MultiValueContainer:S5,MultiValueLabel:A5,MultiValueRemove:F5,Option:B5,Placeholder:N5,SelectContainer:H4,SingleValue:$5,ValueContainer:G4},_5=function(t){return dt(dt({},L5),t.components)},Tv=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function W5(e,t){return!!(e===t||Tv(e)&&Tv(t))}function V5(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!W5(e[r],t[r]))return!1;return!0}function H5(e,t){t===void 0&&(t=V5);var r=null;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];if(r&&r.lastThis===this&&t(a,r.lastArgs))return r.lastResult;var i=e.apply(this,a);return r={lastResult:i,lastArgs:a,lastThis:this},i}return n.clear=function(){r=null},n}function z5(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var G5=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:z5},Z5=function(t){return pt("span",we({css:G5},t))},kv=Z5,U5={guidance:function(t){var r=t.isSearchable,n=t.isMulti,a=t.isDisabled,o=t.tabSelectsValue,i=t.context;switch(i){case"menu":return"Use Up and Down to choose options".concat(a?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(t["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var r=t.action,n=t.label,a=n===void 0?"":n,o=t.labels,i=t.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(a,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return i?"option ".concat(a," is disabled. Select another option."):"option ".concat(a,", selected.");default:return""}},onFocus:function(t){var r=t.context,n=t.focused,a=t.options,o=t.label,i=o===void 0?"":o,l=t.selectValue,u=t.isDisabled,c=t.isSelected,m=function(E,v){return E&&E.length?"".concat(E.indexOf(v)+1," of ").concat(E.length):""};if(r==="value"&&l)return"value ".concat(i," focused, ").concat(m(l,n),".");if(r==="menu"){var p=u?" disabled":"",x="".concat(c?"selected":"focused").concat(p);return"option ".concat(i," ").concat(x,", ").concat(m(a,n),".")}return""},onFilter:function(t){var r=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},X5=function(t){var r=t.ariaSelection,n=t.focusedOption,a=t.focusedValue,o=t.focusableOptions,i=t.isFocused,l=t.selectValue,u=t.selectProps,c=t.id,m=u.ariaLiveMessages,p=u.getOptionLabel,x=u.inputValue,C=u.isMulti,E=u.isOptionDisabled,v=u.isSearchable,A=u.menuIsOpen,S=u.options,j=u.screenReaderStatus,O=u.tabSelectsValue,L=u["aria-label"],M=u["aria-live"],z=h.useMemo(function(){return dt(dt({},U5),m||{})},[m]),H=h.useMemo(function(){var N="";if(r&&z.onChange){var W=r.option,ee=r.options,de=r.removedValue,ne=r.removedValues,te=r.value,K=function(me){return Array.isArray(me)?null:me},se=de||W||K(te),fe=se?p(se):"",Se=ee||ne||void 0,G=Se?Se.map(p):[],he=dt({isDisabled:se&&E(se,l),label:fe,labels:G},r);N=z.onChange(he)}return N},[r,z,E,l,p]),oe=h.useMemo(function(){var N="",W=n||a,ee=!!(n&&l&&l.includes(n));if(W&&z.onFocus){var de={focused:W,label:p(W),isDisabled:E(W,l),isSelected:ee,options:o,context:W===n?"menu":"value",selectValue:l};N=z.onFocus(de)}return N},[n,a,p,E,z,o,l]),J=h.useMemo(function(){var N="";if(A&&S.length&&z.onFilter){var W=j({count:o.length});N=z.onFilter({inputValue:x,resultsMessage:W})}return N},[o,x,A,z,S,j]),ge=h.useMemo(function(){var N="";if(z.guidance){var W=a?"value":A?"menu":"input";N=z.guidance({"aria-label":L,context:W,isDisabled:n&&E(n,l),isMulti:C,isSearchable:v,tabSelectsValue:O})}return N},[L,n,a,C,E,v,A,z,l,O]),xe="".concat(oe," ").concat(J," ").concat(ge),Q=pt(h.Fragment,null,pt("span",{id:"aria-selection"},H),pt("span",{id:"aria-context"},xe)),ce=(r==null?void 0:r.action)==="initial-input-focus";return pt(h.Fragment,null,pt(kv,{id:c},ce&&Q),pt(kv,{"aria-live":M,"aria-atomic":"false","aria-relevant":"additions text"},i&&!ce&&Q))},Y5=X5,Bh=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],J5=new RegExp("["+Bh.map(function(e){return e.letters}).join("")+"]","g"),Bv={},Ph=0;Ph<Bh.length;Ph++)for(var Oh=Bh[Ph],Nh=0;Nh<Oh.letters.length;Nh++)Bv[Oh.letters[Nh]]=Oh.base;var Pv=function(t){return t.replace(J5,function(r){return Bv[r]})},Q5=H5(Pv),Ov=function(t){return t.replace(/^\s+|\s+$/g,"")},K5=function(t){return"".concat(t.label," ").concat(t.value)},q5=function(t){return function(r,n){if(r.data.__isNew__)return!0;var a=dt({ignoreCase:!0,ignoreAccents:!0,stringify:K5,trim:!0,matchFrom:"any"},t),o=a.ignoreCase,i=a.ignoreAccents,l=a.stringify,u=a.trim,c=a.matchFrom,m=u?Ov(n):n,p=u?Ov(l(r)):l(r);return o&&(m=m.toLowerCase(),p=p.toLowerCase()),i&&(m=Q5(m),p=Pv(p)),c==="start"?p.substr(0,m.length)===m:p.indexOf(m)>-1}},e9=["innerRef"];function t9(e){var t=e.innerRef,r=ma(e,e9),n=S4(r,"onExited","in","enter","exit","appear");return pt("input",we({ref:t},n,{css:yh({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var r9=function(t){t.preventDefault(),t.stopPropagation()};function n9(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,a=e.onTopArrive,o=e.onTopLeave,i=h.useRef(!1),l=h.useRef(!1),u=h.useRef(0),c=h.useRef(null),m=h.useCallback(function(A,S){if(c.current!==null){var j=c.current,O=j.scrollTop,L=j.scrollHeight,M=j.clientHeight,z=c.current,H=S>0,oe=L-M-O,J=!1;oe>S&&i.current&&(n&&n(A),i.current=!1),H&&l.current&&(o&&o(A),l.current=!1),H&&S>oe?(r&&!i.current&&r(A),z.scrollTop=L,J=!0,i.current=!0):!H&&-S>O&&(a&&!l.current&&a(A),z.scrollTop=0,J=!0,l.current=!0),J&&r9(A)}},[r,n,a,o]),p=h.useCallback(function(A){m(A,A.deltaY)},[m]),x=h.useCallback(function(A){u.current=A.changedTouches[0].clientY},[]),C=h.useCallback(function(A){var S=u.current-A.changedTouches[0].clientY;m(A,S)},[m]),E=h.useCallback(function(A){if(A){var S=w4?{passive:!1}:!1;A.addEventListener("wheel",p,S),A.addEventListener("touchstart",x,S),A.addEventListener("touchmove",C,S)}},[C,x,p]),v=h.useCallback(function(A){A&&(A.removeEventListener("wheel",p,!1),A.removeEventListener("touchstart",x,!1),A.removeEventListener("touchmove",C,!1))},[C,x,p]);return h.useEffect(function(){if(t){var A=c.current;return E(A),function(){v(A)}}},[t,E,v]),function(A){c.current=A}}var Nv=["boxSizing","height","overflow","paddingRight","position"],Mv={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Rv(e){e.preventDefault()}function $v(e){e.stopPropagation()}function Lv(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function _v(){return"ontouchstart"in window||navigator.maxTouchPoints}var Wv=!!(typeof window<"u"&&window.document&&window.document.createElement),Vl=0,ls={capture:!1,passive:!1};function a9(e){var t=e.isEnabled,r=e.accountForScrollbars,n=r===void 0?!0:r,a=h.useRef({}),o=h.useRef(null),i=h.useCallback(function(u){if(Wv){var c=document.body,m=c&&c.style;if(n&&Nv.forEach(function(E){var v=m&&m[E];a.current[E]=v}),n&&Vl<1){var p=parseInt(a.current.paddingRight,10)||0,x=document.body?document.body.clientWidth:0,C=window.innerWidth-x+p||0;Object.keys(Mv).forEach(function(E){var v=Mv[E];m&&(m[E]=v)}),m&&(m.paddingRight="".concat(C,"px"))}c&&_v()&&(c.addEventListener("touchmove",Rv,ls),u&&(u.addEventListener("touchstart",Lv,ls),u.addEventListener("touchmove",$v,ls))),Vl+=1}},[n]),l=h.useCallback(function(u){if(Wv){var c=document.body,m=c&&c.style;Vl=Math.max(Vl-1,0),n&&Vl<1&&Nv.forEach(function(p){var x=a.current[p];m&&(m[p]=x)}),c&&_v()&&(c.removeEventListener("touchmove",Rv,ls),u&&(u.removeEventListener("touchstart",Lv,ls),u.removeEventListener("touchmove",$v,ls)))}},[n]);return h.useEffect(function(){if(t){var u=o.current;return i(u),function(){l(u)}}},[t,i,l]),function(u){o.current=u}}function o9(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var i9=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},s9=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSB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Enabled,a=n===void 0?!0:n,o=e.onBottomArrive,i=e.onBottomLeave,l=e.onTopArrive,u=e.onTopLeave,c=n9({isEnabled:a,onBottomArrive:o,onBottomLeave:i,onTopArrive:l,onTopLeave:u}),m=a9({isEnabled:r}),p=function(C){c(C),m(C)};return pt(h.Fragment,null,r&&pt("div",{onClick:i9,css:s9}),t(p))}function u9(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var c9=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:u9},d9=function(t){var r=t.name,n=t.onFocus;return pt("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:c9,value:"",onChange:function(){}})},f9=d9,h9=function(t){return t.label},Vv=function(t){return t.label},Hv=function(t){return t.value},p9=function(t){return!!t.isDisabled},g9={clearIndicator:e5,container:V4,control:s5,dropdownIndicator:K4,group:d5,groupHeading:h5,indicatorsContainer:Z4,indicatorSeparator:r5,input:v5,loadingIndicator:o5,loadingMessage:R4,menu:T4,menuList:O4,menuPortal:_4,multiValue:w5,multiValueLabel:E5,multiValueRemove:D5,noOptionsMessage:M4,option:T5,placeholder:P5,singleValue:M5,valueContainer:z4},m9={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},v9=4,zv=4,b9=38,x9=zv*2,y9={baseUnit:zv,controlHeight:b9,menuGutter:x9},Mh={borderRadius:v9,colors:m9,spacing:y9},C9={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:xv(),captureMenuScroll:!xv(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:q5(),formatGroupLabel:h9,getOptionLabel:Vv,getOptionValue:Hv,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:p9,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!y4(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Gv(e,t,r,n){var a=Jv(e,t,r),o=Qv(e,t,r),i=Yv(e,t),l=zc(e,t);return{type:"option",data:t,isDisabled:a,isSelected:o,label:i,value:l,index:n}}function Zv(e,t){return e.options.map(function(r,n){if("options"in r){var a=r.options.map(function(i,l){return Gv(e,i,t,l)}).filter(function(i){return Xv(e,i)});return a.length>0?{type:"group",data:r,options:a,index:n}:void 0}var o=Gv(e,r,t,n);return Xv(e,o)?o:void 0}).filter(E4)}function Uv(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,kl(r.options.map(function(n){return n.data}))):t.push(r.data),t},[])}function w9(e,t){return Uv(Zv(e,t))}function Xv(e,t){var r=e.inputValue,n=r===void 0?"":r,a=t.data,o=t.isSelected,i=t.label,l=t.value;return(!qv(e)||!o)&&Kv(e,{label:i,value:l,data:a},n)}function E9(e,t){var r=e.focusedValue,n=e.selectValue,a=n.indexOf(r);if(a>-1){var o=t.indexOf(r);if(o>-1)return r;if(a<t.length)return t[a]}return null}function D9(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var Yv=function(t,r){return t.getOptionLabel(r)},zc=function(t,r){return t.getOptionValue(r)};function Jv(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function Qv(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var n=zc(e,t);return r.some(function(a){return zc(e,a)===n})}function Kv(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var qv=function(t){var r=t.hideSelectedOptions,n=t.isMulti;return r===void 0?n:r},S9=1,Rh=function(e){fE(r,e);var t=mE(r);function r(n){var a;if(cE(this,r),a=t.call(this,n),a.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},a.blockOptionHover=!1,a.isComposing=!1,a.commonProps=void 0,a.initialTouchX=0,a.initialTouchY=0,a.instancePrefix="",a.openAfterFocus=!1,a.scrollToFocusedOptionOnUpdate=!1,a.userIsDragging=void 0,a.controlRef=null,a.getControlRef=function(l){a.controlRef=l},a.focusedOptionRef=null,a.getFocusedOptionRef=function(l){a.focusedOptionRef=l},a.menuListRef=null,a.getMenuListRef=function(l){a.menuListRef=l},a.inputRef=null,a.getInputRef=function(l){a.inputRef=l},a.focus=a.focusInput,a.blur=a.blurInput,a.onChange=function(l,u){var c=a.props,m=c.onChange,p=c.name;u.name=p,a.ariaOnChange(l,u),m(l,u)},a.setValue=function(l,u,c){var m=a.props,p=m.closeMenuOnSelect,x=m.isMulti,C=m.inputValue;a.onInputChange("",{action:"set-value",prevInputValue:C}),p&&(a.setState({inputIsHiddenAfterUpdate:!x}),a.onMenuClose()),a.setState({clearFocusValueOnUpdate:!0}),a.onChange(l,{action:u,option:c})},a.selectOption=function(l){var u=a.props,c=u.blurInputOnSelect,m=u.isMulti,p=u.name,x=a.state.selectValue,C=m&&a.isOptionSelected(l,x),E=a.isOptionDisabled(l,x);if(C){var v=a.getOptionValue(l);a.setValue(x.filter(function(A){return a.getOptionValue(A)!==v}),"deselect-option",l)}else if(!E)m?a.setValue([].concat(kl(x),[l]),"select-option",l):a.setValue(l,"select-option");else{a.ariaOnChange(l,{action:"select-option",option:l,name:p});return}c&&a.blurInput()},a.removeValue=function(l){var u=a.props.isMulti,c=a.state.selectValue,m=a.getOptionValue(l),p=c.filter(function(C){return a.getOptionValue(C)!==m}),x=Wl(u,p,p[0]||null);a.onChange(x,{action:"remove-value",removedValue:l}),a.focusInput()},a.clearValue=function(){var l=a.state.selectValue;a.onChange(Wl(a.props.isMulti,[],null),{action:"clear",removedValues:l})},a.popValue=function(){var l=a.props.isMulti,u=a.state.selectValue,c=u[u.length-1],m=u.slice(0,u.length-1),p=Wl(l,m,m[0]||null);a.onChange(p,{action:"pop-value",removedValue:c})},a.getValue=function(){return a.state.selectValue},a.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return g4.apply(void 0,[a.props.classNamePrefix].concat(u))},a.getOptionLabel=function(l){return Yv(a.props,l)},a.getOptionValue=function(l){return zc(a.props,l)},a.getStyles=function(l,u){var c=a.props.unstyled,m=g9[l](u,c);m.boxSizing="border-box";var p=a.props.styles[l];return p?p(m,u):m},a.getClassNames=function(l,u){var c,m;return(c=(m=a.props.classNames)[l])===null||c===void 0?void 0:c.call(m,u)},a.getElementId=function(l){return"".concat(a.instancePrefix,"-").concat(l)},a.getComponents=function(){return _5(a.props)},a.buildCategorizedOptions=function(){return Zv(a.props,a.state.selectValue)},a.getCategorizedOptions=function(){return a.props.menuIsOpen?a.buildCategorizedOptions():[]},a.buildFocusableOptions=function(){return Uv(a.buildCategorizedOptions())},a.getFocusableOptions=function(){return a.props.menuIsOpen?a.buildFocusableOptions():[]},a.ariaOnChange=function(l,u){a.setState({ariaSelection:dt({value:l},u)})},a.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),a.focusInput())},a.onMenuMouseMove=function(l){a.blockOptionHover=!1},a.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=a.props.openMenuOnClick;a.state.isFocused?a.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&a.onMenuClose():u&&a.openMenu("first"):(u&&(a.openAfterFocus=!0),a.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},a.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!a.props.isDisabled){var u=a.props,c=u.isMulti,m=u.menuIsOpen;a.focusInput(),m?(a.setState({inputIsHiddenAfterUpdate:!c}),a.onMenuClose()):a.openMenu("first"),l.preventDefault()}},a.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(a.clearValue(),l.preventDefault(),a.openAfterFocus=!1,l.type==="touchend"?a.focusInput():setTimeout(function(){return a.focusInput()}))},a.onScroll=function(l){typeof a.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&_c(l.target)&&a.props.onMenuClose():typeof a.props.closeMenuOnScroll=="function"&&a.props.closeMenuOnScroll(l)&&a.props.onMenuClose()},a.onCompositionStart=function(){a.isComposing=!0},a.onCompositionEnd=function(){a.isComposing=!1},a.onTouchStart=function(l){var u=l.touches,c=u&&u.item(0);c&&(a.initialTouchX=c.clientX,a.initialTouchY=c.clientY,a.userIsDragging=!1)},a.onTouchMove=function(l){var u=l.touches,c=u&&u.item(0);if(c){var m=Math.abs(c.clientX-a.initialTouchX),p=Math.abs(c.clientY-a.initialTouchY),x=5;a.userIsDragging=m>x||p>x}},a.onTouchEnd=function(l){a.userIsDragging||(a.controlRef&&!a.controlRef.contains(l.target)&&a.menuListRef&&!a.menuListRef.contains(l.target)&&a.blurInput(),a.initialTouchX=0,a.initialTouchY=0)},a.onControlTouchEnd=function(l){a.userIsDragging||a.onControlMouseDown(l)},a.onClearIndicatorTouchEnd=function(l){a.userIsDragging||a.onClearIndicatorMouseDown(l)},a.onDropdownIndicatorTouchEnd=function(l){a.userIsDragging||a.onDropdownIndicatorMouseDown(l)},a.handleInputChange=function(l){var u=a.props.inputValue,c=l.currentTarget.value;a.setState({inputIsHiddenAfterUpdate:!1}),a.onInputChange(c,{action:"input-change",prevInputValue:u}),a.props.menuIsOpen||a.onMenuOpen()},a.onInputFocus=function(l){a.props.onFocus&&a.props.onFocus(l),a.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(a.openAfterFocus||a.props.openMenuOnFocus)&&a.openMenu("first"),a.openAfterFocus=!1},a.onInputBlur=function(l){var u=a.props.inputValue;if(a.menuListRef&&a.menuListRef.contains(document.activeElement)){a.inputRef.focus();return}a.props.onBlur&&a.props.onBlur(l),a.onInputChange("",{action:"input-blur",prevInputValue:u}),a.onMenuClose(),a.setState({focusedValue:null,isFocused:!1})},a.onOptionHover=function(l){a.blockOptionHover||a.state.focusedOption===l||a.setState({focusedOption:l})},a.shouldHideSelectedOptions=function(){return qv(a.props)},a.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),a.focus()},a.onKeyDown=function(l){var u=a.props,c=u.isMulti,m=u.backspaceRemovesValue,p=u.escapeClearsValue,x=u.inputValue,C=u.isClearable,E=u.isDisabled,v=u.menuIsOpen,A=u.onKeyDown,S=u.tabSelectsValue,j=u.openMenuOnFocus,O=a.state,L=O.focusedOption,M=O.focusedValue,z=O.selectValue;if(!E&&!(typeof A=="function"&&(A(l),l.defaultPrevented))){switch(a.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||x)return;a.focusValue("previous");break;case"ArrowRight":if(!c||x)return;a.focusValue("next");break;case"Delete":case"Backspace":if(x)return;if(M)a.removeValue(M);else{if(!m)return;c?a.popValue():C&&a.clearValue()}break;case"Tab":if(a.isComposing||l.shiftKey||!v||!S||!L||j&&a.isOptionSelected(L,z))return;a.selectOption(L);break;case"Enter":if(l.keyCode===229)break;if(v){if(!L||a.isComposing)return;a.selectOption(L);break}return;case"Escape":v?(a.setState({inputIsHiddenAfterUpdate:!1}),a.onInputChange("",{action:"menu-close",prevInputValue:x}),a.onMenuClose()):C&&p&&a.clearValue();break;case" ":if(x)return;if(!v){a.openMenu("first");break}if(!L)return;a.selectOption(L);break;case"ArrowUp":v?a.focusOption("up"):a.openMenu("last");break;case"ArrowDown":v?a.focusOption("down"):a.openMenu("first");break;case"PageUp":if(!v)return;a.focusOption("pageup");break;case"PageDown":if(!v)return;a.focusOption("pagedown");break;case"Home":if(!v)return;a.focusOption("first");break;case"End":if(!v)return;a.focusOption("last");break;default:return}l.preventDefault()}},a.instancePrefix="react-select-"+(a.props.instanceId||++S9),a.state.selectValue=Lc(n.value),n.menuIsOpen&&a.state.selectValue.length){var o=a.buildFocusableOptions(),i=o.indexOf(a.state.selectValue[0]);a.state.focusedOption=o[i]}return a}return dE(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&bv(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(a){var o=this.props,i=o.isDisabled,l=o.menuIsOpen,u=this.state.isFocused;(u&&!i&&a.isDisabled||u&&l&&!a.menuIsOpen)&&this.focusInput(),u&&i&&!a.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!u&&!i&&a.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(bv(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(a,o){this.props.onInputChange(a,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(a){var o=this,i=this.state,l=i.selectValue,u=i.isFocused,c=this.buildFocusableOptions(),m=a==="first"?0:c.length-1;if(!this.props.isMulti){var p=c.indexOf(l[0]);p>-1&&(m=p)}this.scrollToFocusedOptionOnUpdate=!(u&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[m]},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(a){var o=this.state,i=o.selectValue,l=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var u=i.indexOf(l);l||(u=-1);var c=i.length-1,m=-1;if(i.length){switch(a){case"previous":u===0?m=0:u===-1?m=c:m=u-1;break;case"next":u>-1&&u<c&&(m=u+1);break}this.setState({inputIsHidden:m!==-1,focusedValue:i[m]})}}}},{key:"focusOption",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,i=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var u=0,c=l.indexOf(i);i||(c=-1),a==="up"?u=c>0?c-1:l.length-1:a==="down"?u=(c+1)%l.length:a==="pageup"?(u=c-o,u<0&&(u=0)):a==="pagedown"?(u=c+o,u>l.length-1&&(u=l.length-1)):a==="last"&&(u=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[u],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Mh):dt(dt({},Mh),this.props.theme):Mh}},{key:"getCommonProps",value:function(){var a=this.clearValue,o=this.cx,i=this.getStyles,l=this.getClassNames,u=this.getValue,c=this.selectOption,m=this.setValue,p=this.props,x=p.isMulti,C=p.isRtl,E=p.options,v=this.hasValue();return{clearValue:a,cx:o,getStyles:i,getClassNames:l,getValue:u,hasValue:v,isMulti:x,isRtl:C,options:E,selectOption:c,selectProps:p,setValue:m,theme:this.getTheme()}}},{key:"hasValue",value:function(){var a=this.state.selectValue;return a.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var a=this.props,o=a.isClearable,i=a.isMulti;return o===void 0?i:o}},{key:"isOptionDisabled",value:function(a,o){return Jv(this.props,a,o)}},{key:"isOptionSelected",value:function(a,o){return Qv(this.props,a,o)}},{key:"filterOption",value:function(a,o){return Kv(this.props,a,o)}},{key:"formatOptionLabel",value:function(a,o){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(a,{context:o,inputValue:i,selectValue:l})}else return this.getOptionLabel(a)}},{key:"formatGroupLabel",value:function(a){return this.props.formatGroupLabel(a)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var a=this.props,o=a.isDisabled,i=a.isSearchable,l=a.inputId,u=a.inputValue,c=a.tabIndex,m=a.form,p=a.menuIsOpen,x=a.required,C=this.getComponents(),E=C.Input,v=this.state,A=v.inputIsHidden,S=v.ariaSelection,j=this.commonProps,O=l||this.getElementId("input"),L=dt(dt(dt({"aria-autocomplete":"list","aria-expanded":p,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":x,role:"combobox"},p&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?(S==null?void 0:S.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?je.createElement(E,we({},j,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:O,innerRef:this.getInputRef,isDisabled:o,isHidden:A,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:m,type:"text",value:u},L)):je.createElement(t9,we({id:O,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:$c,onFocus:this.onInputFocus,disabled:o,tabIndex:c,inputMode:"none",form:m,value:""},L))}},{key:"renderPlaceholderOrValue",value:function(){var a=this,o=this.getComponents(),i=o.MultiValue,l=o.MultiValueContainer,u=o.MultiValueLabel,c=o.MultiValueRemove,m=o.SingleValue,p=o.Placeholder,x=this.commonProps,C=this.props,E=C.controlShouldRenderValue,v=C.isDisabled,A=C.isMulti,S=C.inputValue,j=C.placeholder,O=this.state,L=O.selectValue,M=O.focusedValue,z=O.isFocused;if(!this.hasValue()||!E)return S?null:je.createElement(p,we({},x,{key:"placeholder",isDisabled:v,isFocused:z,innerProps:{id:this.getElementId("placeholder")}}),j);if(A)return L.map(function(oe,J){var ge=oe===M,xe="".concat(a.getOptionLabel(oe),"-").concat(a.getOptionValue(oe));return je.createElement(i,we({},x,{components:{Container:l,Label:u,Remove:c},isFocused:ge,isDisabled:v,key:xe,index:J,removeProps:{onClick:function(){return a.removeValue(oe)},onTouchEnd:function(){return a.removeValue(oe)},onMouseDown:function(ce){ce.preventDefault()}},data:oe}),a.formatOptionLabel(oe,"value"))});if(S)return null;var H=L[0];return je.createElement(m,we({},x,{data:H,isDisabled:v}),this.formatOptionLabel(H,"value"))}},{key:"renderClearIndicator",value:function(){var a=this.getComponents(),o=a.ClearIndicator,i=this.commonProps,l=this.props,u=l.isDisabled,c=l.isLoading,m=this.state.isFocused;if(!this.isClearable()||!o||u||!this.hasValue()||c)return null;var p={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return je.createElement(o,we({},i,{innerProps:p,isFocused:m}))}},{key:"renderLoadingIndicator",value:function(){var a=this.getComponents(),o=a.LoadingIndicator,i=this.commonProps,l=this.props,u=l.isDisabled,c=l.isLoading,m=this.state.isFocused;if(!o||!c)return null;var p={"aria-hidden":"true"};return je.createElement(o,we({},i,{innerProps:p,isDisabled:u,isFocused:m}))}},{key:"renderIndicatorSeparator",value:function(){var a=this.getComponents(),o=a.DropdownIndicator,i=a.IndicatorSeparator;if(!o||!i)return null;var l=this.commonProps,u=this.props.isDisabled,c=this.state.isFocused;return je.createElement(i,we({},l,{isDisabled:u,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var a=this.getComponents(),o=a.DropdownIndicator;if(!o)return null;var i=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return je.createElement(o,we({},i,{innerProps:c,isDisabled:l,isFocused:u}))}},{key:"renderMenu",value:function(){var a=this,o=this.getComponents(),i=o.Group,l=o.GroupHeading,u=o.Menu,c=o.MenuList,m=o.MenuPortal,p=o.LoadingMessage,x=o.NoOptionsMessage,C=o.Option,E=this.commonProps,v=this.state.focusedOption,A=this.props,S=A.captureMenuScroll,j=A.inputValue,O=A.isLoading,L=A.loadingMessage,M=A.minMenuHeight,z=A.maxMenuHeight,H=A.menuIsOpen,oe=A.menuPlacement,J=A.menuPosition,ge=A.menuPortalTarget,xe=A.menuShouldBlockScroll,Q=A.menuShouldScrollIntoView,ce=A.noOptionsMessage,N=A.onMenuScrollToTop,W=A.onMenuScrollToBottom;if(!H)return null;var ee=function(Se,G){var he=Se.type,ae=Se.data,me=Se.isDisabled,Me=Se.isSelected,Pe=Se.label,We=Se.value,Ke=v===ae,Ne=me?void 0:function(){return a.onOptionHover(ae)},Qe=me?void 0:function(){return a.selectOption(ae)},nt="".concat(a.getElementId("option"),"-").concat(G),vt={id:nt,onClick:Qe,onMouseMove:Ne,onMouseOver:Ne,tabIndex:-1};return je.createElement(C,we({},E,{innerProps:vt,data:ae,isDisabled:me,isSelected:Me,key:nt,label:Pe,type:he,value:We,isFocused:Ke,innerRef:Ke?a.getFocusedOptionRef:void 0}),a.formatOptionLabel(Se.data,"menu"))},de;if(this.hasOptions())de=this.getCategorizedOptions().map(function(fe){if(fe.type==="group"){var Se=fe.data,G=fe.options,he=fe.index,ae="".concat(a.getElementId("group"),"-").concat(he),me="".concat(ae,"-heading");return je.createElement(i,we({},E,{key:ae,data:Se,options:G,Heading:l,headingProps:{id:me,data:fe.data},label:a.formatGroupLabel(fe.data)}),fe.options.map(function(Me){return ee(Me,"".concat(he,"-").concat(Me.index))}))}else if(fe.type==="option")return ee(fe,"".concat(fe.index))});else if(O){var ne=L({inputValue:j});if(ne===null)return null;de=je.createElement(p,E,ne)}else{var te=ce({inputValue:j});if(te===null)return null;de=je.createElement(x,E,te)}var K={minMenuHeight:M,maxMenuHeight:z,menuPlacement:oe,menuPosition:J,menuShouldScrollIntoView:Q},se=je.createElement(k4,we({},E,K),function(fe){var Se=fe.ref,G=fe.placerProps,he=G.placement,ae=G.maxHeight;return je.createElement(u,we({},E,K,{innerRef:Se,innerProps:{onMouseDown:a.onMenuMouseDown,onMouseMove:a.onMenuMouseMove,id:a.getElementId("listbox")},isLoading:O,placement:he}),je.createElement(l9,{captureEnabled:S,onTopArrive:N,onBottomArrive:W,lockEnabled:xe},function(me){return je.createElement(c,we({},E,{innerRef:function(Pe){a.getMenuListRef(Pe),me(Pe)},isLoading:O,maxHeight:ae,focusedOption:v}),de)}))});return ge||J==="fixed"?je.createElement(m,we({},E,{appendTo:ge,controlElement:this.controlRef,menuPlacement:oe,menuPosition:J}),se):se}},{key:"renderFormField",value:function(){var a=this,o=this.props,i=o.delimiter,l=o.isDisabled,u=o.isMulti,c=o.name,m=o.required,p=this.state.selectValue;if(m&&!this.hasValue()&&!l)return je.createElement(f9,{name:c,onFocus:this.onValueInputFocus});if(!(!c||l))if(u)if(i){var x=p.map(function(v){return a.getOptionValue(v)}).join(i);return je.createElement("input",{name:c,type:"hidden",value:x})}else{var C=p.length>0?p.map(function(v,A){return je.createElement("input",{key:"i-".concat(A),name:c,type:"hidden",value:a.getOptionValue(v)})}):je.createElement("input",{name:c,type:"hidden",value:""});return je.createElement("div",null,C)}else{var E=p[0]?this.getOptionValue(p[0]):"";return je.createElement("input",{name:c,type:"hidden",value:E})}}},{key:"renderLiveRegion",value:function(){var a=this.commonProps,o=this.state,i=o.ariaSelection,l=o.focusedOption,u=o.focusedValue,c=o.isFocused,m=o.selectValue,p=this.getFocusableOptions();return je.createElement(Y5,we({},a,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:l,focusedValue:u,isFocused:c,selectValue:m,focusableOptions:p}))}},{key:"render",value:function(){var a=this.getComponents(),o=a.Control,i=a.IndicatorsContainer,l=a.SelectContainer,u=a.ValueContainer,c=this.props,m=c.className,p=c.id,x=c.isDisabled,C=c.menuIsOpen,E=this.state.isFocused,v=this.commonProps=this.getCommonProps();return je.createElement(l,we({},v,{className:m,innerProps:{id:p,onKeyDown:this.onKeyDown},isDisabled:x,isFocused:E}),this.renderLiveRegion(),je.createElement(o,we({},v,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:x,isFocused:E,menuIsOpen:C}),je.createElement(u,we({},v,{isDisabled:x}),this.renderPlaceholderOrValue(),this.renderInput()),je.createElement(i,we({},v,{isDisabled:x}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(a,o){var i=o.prevProps,l=o.clearFocusValueOnUpdate,u=o.inputIsHiddenAfterUpdate,c=o.ariaSelection,m=o.isFocused,p=o.prevWasFocused,x=a.options,C=a.value,E=a.menuIsOpen,v=a.inputValue,A=a.isMulti,S=Lc(C),j={};if(i&&(C!==i.value||x!==i.options||E!==i.menuIsOpen||v!==i.inputValue)){var O=E?w9(a,S):[],L=l?E9(o,S):null,M=D9(o,O);j={selectValue:S,focusedOption:M,focusedValue:L,clearFocusValueOnUpdate:!1}}var z=u!=null&&a!==i?{inputIsHidden:u,inputIsHiddenAfterUpdate:void 0}:{},H=c,oe=m&&p;return m&&!oe&&(H={value:Wl(A,S,S[0]||null),options:S,action:"initial-input-focus"},oe=!p),(c==null?void 0:c.action)==="initial-input-focus"&&(H=null),dt(dt(dt({},j),z),{},{prevProps:a,ariaSelection:H,prevWasFocused:oe})}}]),r}(h.Component);Rh.defaultProps=C9;var A9=h.forwardRef(function(e,t){var r=y0(e);return je.createElement(Rh,we({ref:t},r))}),e1=A9,F9=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],t1=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=String(t).toLowerCase(),o=String(n.getOptionValue(r)).toLowerCase(),i=String(n.getOptionLabel(r)).toLowerCase();return o===a||i===a},$h={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,r,n,a){return!(!t||r.some(function(o){return t1(t,o,a)})||n.some(function(o){return t1(t,o,a)}))},getNewOptionData:function(t,r){return{label:r,value:t,__isNew__:!0}}};function j9(e){var t=e.allowCreateWhileLoading,r=t===void 0?!1:t,n=e.createOptionPosition,a=n===void 0?"last":n,o=e.formatCreateLabel,i=o===void 0?$h.formatCreateLabel:o,l=e.isValidNewOption,u=l===void 0?$h.isValidNewOption:l,c=e.getNewOptionData,m=c===void 0?$h.getNewOptionData:c,p=e.onCreateOption,x=e.options,C=x===void 0?[]:x,E=e.onChange,v=ma(e,F9),A=v.getOptionValue,S=A===void 0?Hv:A,j=v.getOptionLabel,O=j===void 0?Vv:j,L=v.inputValue,M=v.isLoading,z=v.isMulti,H=v.value,oe=v.name,J=h.useMemo(function(){return u(L,Lc(H),C,{getOptionValue:S,getOptionLabel:O})?m(L,i(L)):void 0},[i,m,O,S,L,u,C,H]),ge=h.useMemo(function(){return(r||!M)&&J?a==="first"?[J].concat(kl(C)):[].concat(kl(C),[J]):C},[r,a,M,J,C]),xe=h.useCallback(function(Q,ce){if(ce.action!=="select-option")return E(Q,ce);var N=Array.isArray(Q)?Q:[Q];if(N[N.length-1]===J){if(p)p(L);else{var W=m(L,L),ee={action:"create-option",name:oe,option:W};E(Wl(z,[].concat(kl(Lc(H)),[W]),W),ee)}return}E(Q,ce)},[m,L,z,oe,J,p,E,H]);return dt(dt({},v),{},{options:ge,onChange:xe})}var I9=h.forwardRef(function(e,t){var r=y0(e),n=j9(r);return je.createElement(Rh,we({ref:t},n))}),T9=I9;const k9=({cx:e,children:t,getStyles:r,innerProps:n,innerRef:a,size:o="normal",...i})=>{let l={small:"h-7 text-xs",normal:"h-[2.36rem] text-sm",large:""};return s.jsx("div",{ref:a,className:$e(l[o],"flex w-full rounded border bg-background text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:focus:ring-blue-500"),...n,children:t})},B9=({cx:e,children:t,getStyles:r,innerProps:n,innerRef:a,...o})=>s.jsx("div",{className:"absolute z-10 mt-2 flex w-full flex-col justify-start rounded border bg-background p-1.5",ref:a,...n,children:t}),P9=({cx:e,children:t,getStyles:r,innerProps:n,innerRef:a,size:o="normal",...i})=>s.jsx("div",{ref:a,className:"flex cursor-pointer select-none flex-row items-center justify-between rounded-inner p-1 px-2 hover:bg-primary hover:text-primary-foreground",...n,children:t}),Hl=e=>s.jsxs("div",{className:" flex w-full flex-col gap-2",children:[e.label&&s.jsx(ti,{children:e.label}),e.isLoading?s.jsx(ri,{className:"h-[38px] w-full"}):e.isCreatable?s.jsx(T9,{styles:{input:t=>({...t,"input:focus":{boxShadow:"none"}}),control:t=>({...t,borderRadius:"0.75rem"}),menu:t=>({...t,borderRadius:"0.75rem",padding:0,display:"flex",justifyContent:"center"}),menuList:t=>({...t,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%"}),option:t=>({...t,borderRadius:"0.75rem",margin:3,width:"98%"})},options:e.options,isClearable:e.isClearable,isMulti:e.isMulti,isSearchable:e.isSearchable,onCreateOption:()=>console.log("im changing"),onChange:(t,r)=>e.onChange(t,r),onInputChange:(t,r)=>e.onInputChange(t,r)}):s.jsx(e1,{classNames:{container:()=>Ve("rounded",e.disabled?"cursor-not-allowed":"cursor-pointer"),placeholder:()=>"px-2 text-muted-foreground",input:()=>"text-white px-2",valueContainer:()=>"text-white dark:text-muted-foreground",singleValue:()=>"text-black dark:text-white px-2",indicatorsContainer:()=>" px-2 cursor-pointer text-muted-foreground"},unstyled:!0,isDisabled:e.disabled,options:e.options,defaultValue:e.defaultValue,isClearable:e.isClearable,isMulti:e.isMulti,isSearchable:e.isSearchable,onChange:(t,r)=>e.onChange(t,r),components:{Control:k9,Option:P9,Menu:B9},getOptionLabel:e.getOptionLabel}),e.helperText&&s.jsx("p",{className:"mt-2 text-sm text-red-600 dark:text-red-500",children:e.helperText})]});function at(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e==null||e(a),r===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function Dn(e,t=[]){let r=[];function n(o,i){const l=h.createContext(i),u=r.length;r=[...r,i];function c(p){const{scope:x,children:C,...E}=p,v=(x==null?void 0:x[e][u])||l,A=h.useMemo(()=>E,Object.values(E));return h.createElement(v.Provider,{value:A},C)}function m(p,x){const C=(x==null?void 0:x[e][u])||l,E=h.useContext(C);if(E)return E;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,m]}const a=()=>{const o=r.map(i=>h.createContext(i));return function(l){const u=(l==null?void 0:l[e])||o;return h.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return a.scopeName=e,[n,O9(a,...t)]}function O9(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(o){const i=n.reduce((l,{useScope:u,scopeName:c})=>{const p=u(o)[`__scope${c}`];return{...l,...p}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Ur(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function Rn({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,a]=N9({defaultProp:t,onChange:r}),o=e!==void 0,i=o?e:n,l=Ur(r),u=h.useCallback(c=>{if(o){const p=typeof c=="function"?c(e):c;p!==e&&l(p)}else a(c)},[o,e,a,l]);return[i,u]}function N9({defaultProp:e,onChange:t}){const r=h.useState(e),[n]=r,a=h.useRef(n),o=Ur(t);return h.useEffect(()=>{a.current!==n&&(o(n),a.current=n)},[n,a,o]),r}function M9(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const xo=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{};function r1(e){const[t,r]=h.useState(void 0);return xo(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const o=a[0];let i,l;if("borderBoxSize"in o){const u=o.borderBoxSize,c=Array.isArray(u)?u[0]:u;i=c.inlineSize,l=c.blockSize}else i=e.offsetWidth,l=e.offsetHeight;r({width:i,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}const n1="Switch",[R9,CN]=Dn(n1),[$9,L9]=R9(n1),_9=h.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:a,defaultChecked:o,required:i,disabled:l,value:u="on",onCheckedChange:c,...m}=e,[p,x]=h.useState(null),C=Kt(t,j=>x(j)),E=h.useRef(!1),v=p?!!p.closest("form"):!0,[A=!1,S]=Rn({prop:a,defaultProp:o,onChange:c});return h.createElement($9,{scope:r,checked:A,disabled:l},h.createElement(St.button,we({type:"button",role:"switch","aria-checked":A,"aria-required":i,"data-state":a1(A),"data-disabled":l?"":void 0,disabled:l,value:u},m,{ref:C,onClick:at(e.onClick,j=>{S(O=>!O),v&&(E.current=j.isPropagationStopped(),E.current||j.stopPropagation())})})),v&&h.createElement(H9,{control:p,bubbles:!E.current,name:n,value:u,checked:A,required:i,disabled:l,style:{transform:"translateX(-100%)"}}))}),W9="SwitchThumb",V9=h.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,a=L9(W9,r);return h.createElement(St.span,we({"data-state":a1(a.checked),"data-disabled":a.disabled?"":void 0},n,{ref:t}))}),H9=e=>{const{control:t,checked:r,bubbles:n=!0,...a}=e,o=h.useRef(null),i=M9(r),l=r1(t);return h.useEffect(()=>{const u=o.current,c=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(c,"checked").set;if(i!==r&&p){const x=new Event("click",{bubbles:n});p.call(u,r),u.dispatchEvent(x)}},[i,r,n]),h.createElement("input",we({type:"checkbox","aria-hidden":!0,defaultChecked:r},a,{tabIndex:-1,ref:o,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function a1(e){return e?"checked":"unchecked"}const o1=_9,z9=V9;let G9={default:"h-[25px] w-[42px]",sm:"h-[20px] w-[37px]"},Z9={default:"h-[21px] w-[21px]",sm:"h-[16px] w-[16px]"};const Lh=je.forwardRef(({className:e,size:t="default",label:r,...n},a)=>{const[o,i]=je.useState(null),l=je.useRef(null);return je.useEffect(()=>{if(l.current&&l.current.parentNode){const u=window.getComputedStyle(l.current.parentNode).direction;i(u)}}),s.jsxs("div",{className:"flex flex-row items-center",ref:l,children:[s.jsx(o1,{className:Ve("relative cursor-pointer rounded-full bg-primary/20 outline-none data-[state=checked]:bg-primary",e,G9[t]),...n,ref:a,children:s.jsx(z9,{className:Ve(Z9[t],"block rounded-full bg-white transition-transform duration-100 will-change-transform data-[state=checked]:bg-primary-foreground dark:bg-background",o==="rtl"?"-translate-x-0.5 data-[state=checked]:-translate-x-[19px]":"translate-x-0.5 data-[state=checked]:translate-x-[19px]")})}),r&&s.jsx("span",{className:"mx-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:r})]})});Lh.displayName=o1.displayName;const U9=({settingsLabel:e,settingsType:t,settingsDescription:r,colorProps:n,rangeProps:a,radioProps:o,switchProps:i,selectProps:l})=>s.jsxs("div",{className:"flex max-h-fit flex-row items-center justify-between rounded align-middle",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm",children:e}),r&&s.jsx("div",{className:"text-xs",children:r})," "]}),t==="text"&&s.jsx(Rt,{margin:"none",width:"small"}),t==="boolean"&&s.jsx(Lh,{...i}),t==="range"&&s.jsx(m0,{...a}),t==="color"&&s.jsx(g0,{...n}),t==="radio"&&s.jsx(yn,{...o}),t==="select"&&s.jsx(Hl,{...l})]}),X9=e=>s.jsx("div",{children:e.children}),us=({design:e="spinner",size:t="sm",color:r,...n})=>{let a={button:"h-4 w-4",xs:"h-1 w-1",sm:"h-6 w-6",normal:"h-8 w-8",lg:"h-14 w-14",xl:"h-24 w-24"},o={pulse:"animate-in fade-in duration-1000",bounce:"animate-bounce"};switch(e.split("-")[0]){case"dots":return s.jsxs("div",{className:"flex flex-row gap-2",children:[s.jsx("div",{className:$e("animate-bounce rounded-full delay-100 repeat-infinite",t==="button"?"h-2 w-2":a[t],o[e.split("-")[1]],r||"bg-primary")}),s.jsx("div",{className:$e("animate-bounce rounded-full delay-200 repeat-infinite",t==="button"?"h-2 w-2":a[t],o[e.split("-")[1]],r||"bg-primary")}),s.jsx("div",{className:$e("animate-bounce rounded-full delay-300 repeat-infinite",t==="button"?"h-2 w-2":a[t],o[e.split("-")[1]],r||"bg-primary")})]});default:return s.jsx("div",{className:"flex flex-row gap-x-3",children:s.jsx("div",{"aria-label":"Loading...",role:"status",children:s.jsxs("svg",{className:$e(a[t],"animate-spin"),viewBox:"3 3 18 18",children:[s.jsx("path",{className:"fill-primary/20",d:"M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"}),s.jsx("path",{className:r||"fill-primary",d:"M16.9497 7.05015C14.2161 4.31648 9.78392 4.31648 7.05025 7.05015C6.65973 7.44067 6.02656 7.44067 5.63604 7.05015C5.24551 6.65962 5.24551 6.02646 5.63604 5.63593C9.15076 2.12121 14.8492 2.12121 18.364 5.63593C18.7545 6.02646 18.7545 6.65962 18.364 7.05015C17.9734 7.44067 17.3403 7.44067 16.9497 7.05015Z"})]})})})}},i1=Qf("inline-flex items-center justify-center select-none rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",light:"bg-primary/20 text-primary hover:bg-primary/40",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",neoBrutalism:"cursor-pointer transition-all uppercase font-mono dark:bg-black font-bold py-2 px-4 rounded border-2 border-primary shadow-color-primary transition-[transform_50ms, box-shadow_50ms] active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"},size:{default:"h-10 px-4 py-2",heightless:"px-4 py-4",xs:"h-fit py-1 text-[10px] px-2 ",sm:"h-9 text-[11px] rounded-md px-3",lg:"h-11 rounded-md px-8",xl:"h-14 rounded-md px-10",icon:"h-10 w-10",smallIcon:"h-7 w-7"}},defaultVariants:{variant:"default",size:"default"}}),qe=je.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,isLoading:a,children:o,...i},l)=>{const u="button",c=t==="outline"||t==="ghost"||t==="neoBrutalism"?"bg-primary":"bg-primary-foreground";return s.jsx(u,{className:Ve(i1({variant:t,size:r,className:e})),ref:l,...i,children:a?s.jsx(us,{design:"dots-pulse",color:c,size:r==="sm"?"xs":"button"}):o})});qe.displayName="Button";const qn=({variant:e="normal",direction:t="ltr",severity:r="info",duration:n,icon:a,className:o,...i})=>{const l=h.useRef(null),[u,c]=h.useState(!1);h.useEffect(()=>{if(n){const x=setTimeout(()=>{c(!0)},n),C=setTimeout(()=>{c(!0),l.current.removeChild(l.current.children[0])},n+1e3);return()=>{clearTimeout(x),clearTimeout(C)}}},[n]);let m={none:"hover:bg-gray-300",info:"hover:bg-blue-300",warning:"hover:bg-yellow-300",error:"hover:bg-red-300",success:"hover:bg-green-300"},p={normal:{none:"text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"top-accent":{none:"border-t-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-t-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-t-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-t-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-t-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"left-accent":{none:"border-l-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-l-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-l-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-l-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-l-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"right-accent":{none:"border-r-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-r-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-r-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-r-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-r-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"bottom-accent":{none:"border-b-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-b-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-b-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-b-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-b-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"}};return s.jsx("div",{ref:l,children:s.jsxs("div",{className:$e("relative mb-4 flex flex-col rounded p-4 text-sm transition-all",p[e][r],u?"opacity-0":"opacity-100",o),role:"alert",dir:t,children:[s.jsxs("div",{className:"flex flex-row",children:[a&&s.jsx("div",{className:t==="rtl"?"pl-2 pt-1":"pr-2 pt-1",children:a}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx("span",{className:$e("font-medium",t==="rtl"?"ml-8":"mr-8"),children:i.title}),s.jsx("span",{children:i.text}),i.actions&&s.jsx("div",{className:"mt-2 flex flex-row gap-2",children:i.actions.map((x,C)=>s.jsx(qe,{variant:x.variant,onClick:x.onClick(),children:x.label},C))})]})]}),!i.persistant&&s.jsxs("button",{type:"button",className:$e("absolute top-2 inline-flex h-9 w-9 items-center justify-center rounded-inner p-1.5 text-gray-400 transition-all hover:text-gray-900",m[r],t==="rtl"?"left-2":"right-2"),"data-dismiss-target":"#alert-default","aria-label":"Close",onClick:()=>{c(!0),setTimeout(()=>{l.current.removeChild(l.current.children[0])},200)},children:[s.jsx("span",{className:"sr-only",children:"Close"}),s.jsx("svg",{"aria-label":"Close Icon","aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})]})]})})},Y9=(e,t)=>{const r=[],n=Math.ceil((e==null?void 0:e.length)/t);for(let a=1;a<=n;a++)r.push(a);return r},J9=(e,t,r)=>e==null?void 0:e.slice((t-1)*r,t*r),Q9=(e,t,r)=>t!==null?e==null?void 0:e.sort((n,a)=>{const o=n[t].value,i=a[t].value;return typeof o=="string"&&typeof i=="string"?r==="asc"?o.localeCompare(i):i.localeCompare(o):r==="asc"?o-i:i-o}):e,K9=(e,t,r,n,a)=>{const[o,i]=h.useState([]),[l,u]=h.useState([]);return h.useEffect(()=>{if(e){const c=Y9(e,r);i([...c]);const m=Q9(e,n,a),p=J9(m,t,r);u([...p])}},[e,i,t,r,n,a]),{slice:l,range:o}};function Gc(e){const t=e+"CollectionProvider",[r,n]=Dn(t),[a,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=C=>{const{scope:E,children:v}=C,A=h.useRef(null),S=h.useRef(new Map).current;return h.createElement(a,{scope:E,itemMap:S,collectionRef:A},v)},l=e+"CollectionSlot",u=h.forwardRef((C,E)=>{const{scope:v,children:A}=C,S=o(l,v),j=Kt(E,S.collectionRef);return h.createElement(Ko,{ref:j},A)}),c=e+"CollectionItemSlot",m="data-radix-collection-item",p=h.forwardRef((C,E)=>{const{scope:v,children:A,...S}=C,j=h.useRef(null),O=Kt(E,j),L=o(c,v);return h.useEffect(()=>(L.itemMap.set(j,{ref:j,...S}),()=>void L.itemMap.delete(j))),h.createElement(Ko,{[m]:"",ref:O},A)});function x(C){const E=o(e+"CollectionConsumer",C);return h.useCallback(()=>{const A=E.collectionRef.current;if(!A)return[];const S=Array.from(A.querySelectorAll(`[${m}]`));return Array.from(E.itemMap.values()).sort((L,M)=>S.indexOf(L.ref.current)-S.indexOf(M.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:i,Slot:u,ItemSlot:p},x,n]}const q9=h.createContext(void 0);function Zc(e){const t=h.useContext(q9);return e||t||"ltr"}function eD(e,t=globalThis==null?void 0:globalThis.document){const r=Ur(e);h.useEffect(()=>{const n=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const _h="dismissableLayer.update",tD="dismissableLayer.pointerDownOutside",rD="dismissableLayer.focusOutside";let s1;const l1=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zl=h.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:u,...c}=e,m=h.useContext(l1),[p,x]=h.useState(null),C=(r=p==null?void 0:p.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,E]=h.useState({}),v=Kt(t,oe=>x(oe)),A=Array.from(m.layers),[S]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),j=A.indexOf(S),O=p?A.indexOf(p):-1,L=m.layersWithOutsidePointerEventsDisabled.size>0,M=O>=j,z=aD(oe=>{const J=oe.target,ge=[...m.branches].some(xe=>xe.contains(J));!M||ge||(o==null||o(oe),l==null||l(oe),oe.defaultPrevented||u==null||u())},C),H=oD(oe=>{const J=oe.target;[...m.branches].some(xe=>xe.contains(J))||(i==null||i(oe),l==null||l(oe),oe.defaultPrevented||u==null||u())},C);return eD(oe=>{O===m.layers.size-1&&(a==null||a(oe),!oe.defaultPrevented&&u&&(oe.preventDefault(),u()))},C),h.useEffect(()=>{if(p)return n&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(s1=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(p)),m.layers.add(p),u1(),()=>{n&&m.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=s1)}},[p,C,n,m]),h.useEffect(()=>()=>{p&&(m.layers.delete(p),m.layersWithOutsidePointerEventsDisabled.delete(p),u1())},[p,m]),h.useEffect(()=>{const oe=()=>E({});return document.addEventListener(_h,oe),()=>document.removeEventListener(_h,oe)},[]),h.createElement(St.div,we({},c,{ref:v,style:{pointerEvents:L?M?"auto":"none":void 0,...e.style},onFocusCapture:at(e.onFocusCapture,H.onFocusCapture),onBlurCapture:at(e.onBlurCapture,H.onBlurCapture),onPointerDownCapture:at(e.onPointerDownCapture,z.onPointerDownCapture)}))}),nD=h.forwardRef((e,t)=>{const r=h.useContext(l1),n=h.useRef(null),a=Kt(t,n);return h.useEffect(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),h.createElement(St.div,we({},e,{ref:a}))});function aD(e,t=globalThis==null?void 0:globalThis.document){const r=Ur(e),n=h.useRef(!1),a=h.useRef(()=>{});return h.useEffect(()=>{const o=l=>{if(l.target&&!n.current){let c=function(){c1(tD,r,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=c,t.addEventListener("click",a.current,{once:!0})):c()}n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function oD(e,t=globalThis==null?void 0:globalThis.document){const r=Ur(e),n=h.useRef(!1);return h.useEffect(()=>{const a=o=>{o.target&&!n.current&&c1(rD,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function u1(){const e=new CustomEvent(_h);document.dispatchEvent(e)}function c1(e,t,r,{discrete:n}){const a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?Jf(a,o):a.dispatchEvent(o)}const iD=zl,sD=nD;let Wh=0;function Vh(){h.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:d1()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:d1()),Wh++,()=>{Wh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Wh--}},[])}function d1(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Hh="focusScope.autoFocusOnMount",zh="focusScope.autoFocusOnUnmount",f1={bubbles:!1,cancelable:!0},Gh=h.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[l,u]=h.useState(null),c=Ur(a),m=Ur(o),p=h.useRef(null),x=Kt(t,v=>u(v)),C=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(n){let v=function(O){if(C.paused||!l)return;const L=O.target;l.contains(L)?p.current=L:yo(p.current,{select:!0})},A=function(O){if(C.paused||!l)return;const L=O.relatedTarget;L!==null&&(l.contains(L)||yo(p.current,{select:!0}))},S=function(O){const L=document.activeElement;for(const M of O)M.removedNodes.length>0&&(l!=null&&l.contains(L)||yo(l))};document.addEventListener("focusin",v),document.addEventListener("focusout",A);const j=new MutationObserver(S);return l&&j.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",A),j.disconnect()}}},[n,l,C.paused]),h.useEffect(()=>{if(l){g1.add(C);const v=document.activeElement;if(!l.contains(v)){const S=new CustomEvent(Hh,f1);l.addEventListener(Hh,c),l.dispatchEvent(S),S.defaultPrevented||(lD(hD(h1(l)),{select:!0}),document.activeElement===v&&yo(l))}return()=>{l.removeEventListener(Hh,c),setTimeout(()=>{const S=new CustomEvent(zh,f1);l.addEventListener(zh,m),l.dispatchEvent(S),S.defaultPrevented||yo(v??document.body,{select:!0}),l.removeEventListener(zh,m),g1.remove(C)},0)}}},[l,c,m,C]);const E=h.useCallback(v=>{if(!r&&!n||C.paused)return;const A=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,S=document.activeElement;if(A&&S){const j=v.currentTarget,[O,L]=uD(j);O&&L?!v.shiftKey&&S===L?(v.preventDefault(),r&&yo(O,{select:!0})):v.shiftKey&&S===O&&(v.preventDefault(),r&&yo(L,{select:!0})):S===j&&v.preventDefault()}},[r,n,C.paused]);return h.createElement(St.div,we({tabIndex:-1},i,{ref:x,onKeyDown:E}))});function lD(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(yo(n,{select:t}),document.activeElement!==r)return}function uD(e){const t=h1(e),r=p1(t,e),n=p1(t.reverse(),e);return[r,n]}function h1(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function p1(e,t){for(const r of e)if(!cD(r,{upTo:t}))return r}function cD(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function dD(e){return e instanceof HTMLInputElement&&"select"in e}function yo(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&dD(e)&&t&&e.select()}}const g1=fD();function fD(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=m1(e,t),e.unshift(t)},remove(t){var r;e=m1(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function m1(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function hD(e){return e.filter(t=>t.tagName!=="A")}const pD=je["useId".toString()]||(()=>{});let gD=0;function Sn(e){const[t,r]=je.useState(pD());return xo(()=>{e||r(n=>n??String(gD++))},[e]),e||(t?`radix-${t}`:"")}const mD=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:a}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?rv({element:n.current,padding:a}).fn(r):{}:n?rv({element:n,padding:a}).fn(r):{}}}};var Uc=typeof document<"u"?h.useLayoutEffect:h.useEffect;function Xc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Xc(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){const o=a[n];if(!(o==="_owner"&&e.$$typeof)&&!Xc(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function v1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function b1(e,t){const r=v1(e);return Math.round(t*r)/r}function x1(e){const t=je.useRef(e);return Uc(()=>{t.current=e}),t}function vD(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:o,floating:i}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[m,p]=je.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[x,C]=je.useState(n);Xc(x,n)||C(n);const[E,v]=je.useState(null),[A,S]=je.useState(null),j=je.useCallback(ee=>{ee!=z.current&&(z.current=ee,v(ee))},[v]),O=je.useCallback(ee=>{ee!==H.current&&(H.current=ee,S(ee))},[S]),L=o||E,M=i||A,z=je.useRef(null),H=je.useRef(null),oe=je.useRef(m),J=x1(u),ge=x1(a),xe=je.useCallback(()=>{if(!z.current||!H.current)return;const ee={placement:t,strategy:r,middleware:x};ge.current&&(ee.platform=ge.current),f4(z.current,H.current,ee).then(de=>{const ne={...de,isPositioned:!0};Q.current&&!Xc(oe.current,ne)&&(oe.current=ne,xw.flushSync(()=>{p(ne)}))})},[x,t,r,ge]);Uc(()=>{c===!1&&oe.current.isPositioned&&(oe.current.isPositioned=!1,p(ee=>({...ee,isPositioned:!1})))},[c]);const Q=je.useRef(!1);Uc(()=>(Q.current=!0,()=>{Q.current=!1}),[]),Uc(()=>{if(L&&(z.current=L),M&&(H.current=M),L&&M){if(J.current)return J.current(L,M,xe);xe()}},[L,M,xe,J]);const ce=je.useMemo(()=>({reference:z,floating:H,setReference:j,setFloating:O}),[j,O]),N=je.useMemo(()=>({reference:L,floating:M}),[L,M]),W=je.useMemo(()=>{const ee={position:r,left:0,top:0};if(!N.floating)return ee;const de=b1(N.floating,m.x),ne=b1(N.floating,m.y);return l?{...ee,transform:"translate("+de+"px, "+ne+"px)",...v1(N.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:de,top:ne}},[r,l,N.floating,m.x,m.y]);return je.useMemo(()=>({...m,update:xe,refs:ce,elements:N,floatingStyles:W}),[m,xe,ce,N,W])}const bD=h.forwardRef((e,t)=>{const{children:r,width:n=10,height:a=5,...o}=e;return h.createElement(St.svg,we({},o,{ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:h.createElement("polygon",{points:"0,0 30,0 15,10"}))}),y1="Popper",[C1,cs]=Dn(y1),[xD,w1]=C1(y1),yD=e=>{const{__scopePopper:t,children:r}=e,[n,a]=h.useState(null);return h.createElement(xD,{scope:t,anchor:n,onAnchorChange:a},r)},CD="PopperAnchor",wD=h.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...a}=e,o=w1(CD,r),i=h.useRef(null),l=Kt(t,i);return h.useEffect(()=>{o.onAnchorChange((n==null?void 0:n.current)||i.current)}),n?null:h.createElement(St.div,we({},a,{ref:l}))}),E1="PopperContent",[ED,DD]=C1(E1),SD=h.forwardRef((e,t)=>{var r,n,a,o,i,l,u,c;const{__scopePopper:m,side:p="bottom",sideOffset:x=0,align:C="center",alignOffset:E=0,arrowPadding:v=0,collisionBoundary:A=[],collisionPadding:S=0,sticky:j="partial",hideWhenDetached:O=!1,avoidCollisions:L=!0,onPlaced:M,...z}=e,H=w1(E1,m),[oe,J]=h.useState(null),ge=Kt(t,nt=>J(nt)),[xe,Q]=h.useState(null),ce=r1(xe),N=(r=ce==null?void 0:ce.width)!==null&&r!==void 0?r:0,W=(n=ce==null?void 0:ce.height)!==null&&n!==void 0?n:0,ee=p+(C!=="center"?"-"+C:""),de=typeof S=="number"?S:{top:0,right:0,bottom:0,left:0,...S},ne=Array.isArray(A)?A:[A],te=ne.length>0,K={padding:de,boundary:ne.filter(ID),altBoundary:te},{refs:se,floatingStyles:fe,placement:Se,isPositioned:G,middlewareData:he}=vD({strategy:"fixed",placement:ee,whileElementsMounted:gv,elements:{reference:H.anchor},middleware:[G3({mainAxis:x+W,alignmentAxis:E}),L&&Z3({mainAxis:!0,crossAxis:!1,limiter:j==="partial"?U3():void 0,...K}),L&&V3({...K}),X3({...K,apply:({elements:nt,rects:vt,availableWidth:At,availableHeight:re})=>{const{width:be,height:Ie}=vt.reference,Ze=nt.floating.style;Ze.setProperty("--radix-popper-available-width",`${At}px`),Ze.setProperty("--radix-popper-available-height",`${re}px`),Ze.setProperty("--radix-popper-anchor-width",`${be}px`),Ze.setProperty("--radix-popper-anchor-height",`${Ie}px`)}}),xe&&mD({element:xe,padding:v}),TD({arrowWidth:N,arrowHeight:W}),O&&H3({strategy:"referenceHidden"})]}),[ae,me]=D1(Se),Me=Ur(M);xo(()=>{G&&(Me==null||Me())},[G,Me]);const Pe=(a=he.arrow)===null||a===void 0?void 0:a.x,We=(o=he.arrow)===null||o===void 0?void 0:o.y,Ke=((i=he.arrow)===null||i===void 0?void 0:i.centerOffset)!==0,[Ne,Qe]=h.useState();return xo(()=>{oe&&Qe(window.getComputedStyle(oe).zIndex)},[oe]),h.createElement("div",{ref:se.setFloating,"data-radix-popper-content-wrapper":"",style:{...fe,transform:G?fe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ne,"--radix-popper-transform-origin":[(l=he.transformOrigin)===null||l===void 0?void 0:l.x,(u=he.transformOrigin)===null||u===void 0?void 0:u.y].join(" ")},dir:e.dir},h.createElement(ED,{scope:m,placedSide:ae,onArrowChange:Q,arrowX:Pe,arrowY:We,shouldHideArrow:Ke},h.createElement(St.div,we({"data-side":ae,"data-align":me},z,{ref:ge,style:{...z.style,animation:G?void 0:"none",opacity:(c=he.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))}),AD="PopperArrow",FD={top:"bottom",right:"left",bottom:"top",left:"right"},jD=h.forwardRef(function(t,r){const{__scopePopper:n,...a}=t,o=DD(AD,n),i=FD[o.placedSide];return h.createElement("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},h.createElement(bD,we({},a,{ref:r,style:{...a.style,display:"block"}})))});function ID(e){return e!==null}const TD=e=>({name:"transformOrigin",options:e,fn(t){var r,n,a,o,i;const{placement:l,rects:u,middlewareData:c}=t,p=((r=c.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,x=p?0:e.arrowWidth,C=p?0:e.arrowHeight,[E,v]=D1(l),A={start:"0%",center:"50%",end:"100%"}[v],S=((n=(a=c.arrow)===null||a===void 0?void 0:a.x)!==null&&n!==void 0?n:0)+x/2,j=((o=(i=c.arrow)===null||i===void 0?void 0:i.y)!==null&&o!==void 0?o:0)+C/2;let O="",L="";return E==="bottom"?(O=p?A:`${S}px`,L=`${-C}px`):E==="top"?(O=p?A:`${S}px`,L=`${u.floating.height+C}px`):E==="right"?(O=`${-C}px`,L=p?A:`${j}px`):E==="left"&&(O=`${u.floating.width+C}px`,L=p?A:`${j}px`),{data:{x:O,y:L}}}});function D1(e){const[t,r="center"]=e.split("-");return[t,r]}const Yc=yD,Zh=wD,Uh=SD,kD=jD,Jc=h.forwardRef((e,t)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...a}=e;return n?Qo.createPortal(h.createElement(St.div,we({},a,{ref:t})),n):null});function BD(e,t){return h.useReducer((r,n)=>{const a=t[r][n];return a??r},e)}const sn=e=>{const{present:t,children:r}=e,n=PD(t),a=typeof r=="function"?r({present:n.isPresent}):h.Children.only(r),o=Kt(n.ref,a.ref);return typeof r=="function"||n.isPresent?h.cloneElement(a,{ref:o}):null};sn.displayName="Presence";function PD(e){const[t,r]=h.useState(),n=h.useRef({}),a=h.useRef(e),o=h.useRef("none"),i=e?"mounted":"unmounted",[l,u]=BD(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const c=Qc(n.current);o.current=l==="mounted"?c:"none"},[l]),xo(()=>{const c=n.current,m=a.current;if(m!==e){const x=o.current,C=Qc(c);e?u("MOUNT"):C==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(m&&x!==C?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,u]),xo(()=>{if(t){const c=p=>{const C=Qc(n.current).includes(p.animationName);p.target===t&&C&&Qo.flushSync(()=>u("ANIMATION_END"))},m=p=>{p.target===t&&(o.current=Qc(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function Qc(e){return(e==null?void 0:e.animationName)||"none"}const Xh="rovingFocusGroup.onEntryFocus",OD={bubbles:!1,cancelable:!0},Yh="RovingFocusGroup",[Jh,S1,ND]=Gc(Yh),[MD,Kc]=Dn(Yh,[ND]),[RD,$D]=MD(Yh),LD=h.forwardRef((e,t)=>h.createElement(Jh.Provider,{scope:e.__scopeRovingFocusGroup},h.createElement(Jh.Slot,{scope:e.__scopeRovingFocusGroup},h.createElement(_D,we({},e,{ref:t}))))),_D=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:a=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,...m}=e,p=h.useRef(null),x=Kt(t,p),C=Zc(o),[E=null,v]=Rn({prop:i,defaultProp:l,onChange:u}),[A,S]=h.useState(!1),j=Ur(c),O=S1(r),L=h.useRef(!1),[M,z]=h.useState(0);return h.useEffect(()=>{const H=p.current;if(H)return H.addEventListener(Xh,j),()=>H.removeEventListener(Xh,j)},[j]),h.createElement(RD,{scope:r,orientation:n,dir:C,loop:a,currentTabStopId:E,onItemFocus:h.useCallback(H=>v(H),[v]),onItemShiftTab:h.useCallback(()=>S(!0),[]),onFocusableItemAdd:h.useCallback(()=>z(H=>H+1),[]),onFocusableItemRemove:h.useCallback(()=>z(H=>H-1),[])},h.createElement(St.div,we({tabIndex:A||M===0?-1:0,"data-orientation":n},m,{ref:x,style:{outline:"none",...e.style},onMouseDown:at(e.onMouseDown,()=>{L.current=!0}),onFocus:at(e.onFocus,H=>{const oe=!L.current;if(H.target===H.currentTarget&&oe&&!A){const J=new CustomEvent(Xh,OD);if(H.currentTarget.dispatchEvent(J),!J.defaultPrevented){const ge=O().filter(W=>W.focusable),xe=ge.find(W=>W.active),Q=ge.find(W=>W.id===E),N=[xe,Q,...ge].filter(Boolean).map(W=>W.ref.current);A1(N)}}L.current=!1}),onBlur:at(e.onBlur,()=>S(!1))})))}),WD="RovingFocusGroupItem",VD=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:a=!1,tabStopId:o,...i}=e,l=Sn(),u=o||l,c=$D(WD,r),m=c.currentTabStopId===u,p=S1(r),{onFocusableItemAdd:x,onFocusableItemRemove:C}=c;return h.useEffect(()=>{if(n)return x(),()=>C()},[n,x,C]),h.createElement(Jh.ItemSlot,{scope:r,id:u,focusable:n,active:a},h.createElement(St.span,we({tabIndex:m?0:-1,"data-orientation":c.orientation},i,{ref:t,onMouseDown:at(e.onMouseDown,E=>{n?c.onItemFocus(u):E.preventDefault()}),onFocus:at(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:at(e.onKeyDown,E=>{if(E.key==="Tab"&&E.shiftKey){c.onItemShiftTab();return}if(E.target!==E.currentTarget)return;const v=GD(E,c.orientation,c.dir);if(v!==void 0){E.preventDefault();let S=p().filter(j=>j.focusable).map(j=>j.ref.current);if(v==="last")S.reverse();else if(v==="prev"||v==="next"){v==="prev"&&S.reverse();const j=S.indexOf(E.currentTarget);S=c.loop?ZD(S,j+1):S.slice(j+1)}setTimeout(()=>A1(S))}})})))}),HD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function zD(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function GD(e,t,r){const n=zD(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return HD[n]}function A1(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function ZD(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const F1=LD,j1=VD;var UD=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ds=new WeakMap,qc=new WeakMap,ed={},Qh=0,I1=function(e){return e&&(e.host||I1(e.parentNode))},XD=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=I1(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},YD=function(e,t,r,n){var a=XD(t,Array.isArray(e)?e:[e]);ed[r]||(ed[r]=new WeakMap);var o=ed[r],i=[],l=new Set,u=new Set(a),c=function(p){!p||l.has(p)||(l.add(p),c(p.parentNode))};a.forEach(c);var m=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(x){if(l.has(x))m(x);else{var C=x.getAttribute(n),E=C!==null&&C!=="false",v=(ds.get(x)||0)+1,A=(o.get(x)||0)+1;ds.set(x,v),o.set(x,A),i.push(x),v===1&&E&&qc.set(x,!0),A===1&&x.setAttribute(r,"true"),E||x.setAttribute(n,"true")}})};return m(t),l.clear(),Qh++,function(){i.forEach(function(p){var x=ds.get(p)-1,C=o.get(p)-1;ds.set(p,x),o.set(p,C),x||(qc.has(p)||p.removeAttribute(n),qc.delete(p)),C||p.removeAttribute(r)}),Qh--,Qh||(ds=new WeakMap,ds=new WeakMap,qc=new WeakMap,ed={})}},Kh=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||UD(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),YD(n,a,r,"aria-hidden")):function(){return null}},ya=function(){return ya=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ya.apply(this,arguments)};function T1(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function fs(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function l(m){try{c(n.next(m))}catch(p){i(p)}}function u(m){try{c(n.throw(m))}catch(p){i(p)}}function c(m){m.done?o(m.value):a(m.value).then(l,u)}c((n=n.apply(e,t||[])).next())})}function hs(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(c){return function(m){return u([c,m])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(r=0)),r;)try{if(n=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,a=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(m){c=[6,m],a=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function JD(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,o=[],i;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return o}function QD(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(JD(arguments[t]));return e}function KD(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var td="right-scroll-bar-position",rd="width-before-scroll-bar",qD="with-scroll-bars-hidden",eS="--removed-body-scroll-bar-size";function tS(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function rS(e,t){var r=h.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}function nS(e,t){return rS(t||null,function(r){return e.forEach(function(n){return tS(n,r)})})}function aS(e){return e}function oS(e,t){t===void 0&&(t=aS);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var i=t(o,n);return r.push(i),function(){r=r.filter(function(l){return l!==i})}},assignSyncMedium:function(o){for(n=!0;r.length;){var i=r;r=[],i.forEach(o)}r={push:function(l){return o(l)},filter:function(){return r}}},assignMedium:function(o){n=!0;var i=[];if(r.length){var l=r;r=[],l.forEach(o),i=r}var u=function(){var m=i;i=[],m.forEach(o)},c=function(){return Promise.resolve().then(u)};c(),r={push:function(m){i.push(m),c()},filter:function(m){return i=i.filter(m),r}}}};return a}function iS(e){e===void 0&&(e={});var t=oS(null);return t.options=ya({async:!0,ssr:!1},e),t}var k1=function(e){var t=e.sideCar,r=T1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return je.createElement(n,ya({},r))};k1.isSideCarExport=!0;function sS(e,t){return e.useMedium(t),k1}var B1=iS(),qh=function(){},nd=je.forwardRef(function(e,t){var r=je.useRef(null),n=je.useState({onScrollCapture:qh,onWheelCapture:qh,onTouchMoveCapture:qh}),a=n[0],o=n[1],i=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,m=e.enabled,p=e.shards,x=e.sideCar,C=e.noIsolation,E=e.inert,v=e.allowPinchZoom,A=e.as,S=A===void 0?"div":A,j=T1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),O=x,L=nS([r,t]),M=ya(ya({},j),a);return je.createElement(je.Fragment,null,m&&je.createElement(O,{sideCar:B1,removeScrollBar:c,shards:p,noIsolation:C,inert:E,setCallbacks:o,allowPinchZoom:!!v,lockRef:r}),i?je.cloneElement(je.Children.only(l),ya(ya({},M),{ref:L})):je.createElement(S,ya({},M,{className:u,ref:L}),l))});nd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},nd.classNames={fullWidth:rd,zeroRight:td};var P1,lS=function(){if(P1)return P1;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function uS(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=lS();return t&&e.setAttribute("nonce",t),e}function cS(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function dS(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var fS=function(){var e=0,t=null;return{add:function(r){e==0&&(t=uS())&&(cS(t,r),dS(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},hS=function(){var e=fS();return function(t,r){je.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},O1=function(){var e=hS(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},pS={left:0,top:0,right:0,gap:0},ep=function(e){return parseInt(e||"",10)||0},gS=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[ep(r),ep(n),ep(a)]},mS=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return pS;var t=gS(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},vS=O1(),bS=function(e,t,r,n){var a=e.left,o=e.top,i=e.right,l=e.gap;return r===void 0&&(r="margin"),`
57
+ `]))),o5=function(t,r){var n=t.isFocused,a=t.size,o=t.theme,i=o.colors,l=o.spacing.baseUnit;return dt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:a,lineHeight:1,marginRight:a,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?i.neutral60:i.neutral20,padding:l*2})},kh=function(t){var r=t.delay,n=t.offset;return pt("span",{css:yh({animation:"".concat(a5," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gI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XNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},i5=function(t){var r=t.innerProps,n=t.isRtl,a=t.size,o=a===void 0?4:a,i=ma(t,Y4);return pt("div",we({},hr(dt(dt({},i),{},{innerProps:r,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),pt(kh,{delay:0,offset:n}),pt(kh,{delay:160,offset:!0}),pt(kh,{delay:320,offset:!n}))},s5=function(t,r){var n=t.isDisabled,a=t.isFocused,o=t.theme,i=o.colors,l=o.borderRadius,u=o.spacing;return dt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:a?i.primary:i.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:a?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:a?i.primary:i.neutral30}})},l5=function(t){var r=t.children,n=t.isDisabled,a=t.isFocused,o=t.innerRef,i=t.innerProps,l=t.menuIsOpen;return pt("div",we({ref:o},hr(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":a,"control--menu-is-open":l}),i),r)},u5=l5,c5=["data"],d5=function(t,r){var n=t.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},f5=function(t){var r=t.children,n=t.cx,a=t.getStyles,o=t.getClassNames,i=t.Heading,l=t.headingProps,u=t.innerProps,c=t.label,m=t.theme,p=t.selectProps;return pt("div",we({},hr(t,"group",{group:!0}),u),pt(i,we({},l,{selectProps:p,theme:m,getStyles:a,getClassNames:o,cx:n}),c),pt("div",null,r))},h5=function(t,r){var n=t.theme,a=n.colors,o=n.spacing;return dt({label:"group",cursor:"default",display:"block"},r?{}:{color:a.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},p5=function(t){var r=mv(t);r.data;var n=ma(r,c5);return pt("div",we({},hr(t,"groupHeading",{"group-heading":!0}),n))},g5=f5,m5=["innerRef","isDisabled","isHidden","inputClassName"],v5=function(t,r){var n=t.isDisabled,a=t.value,o=t.theme,i=o.spacing,l=o.colors;return dt(dt({visibility:n?"hidden":"visible",transform:a?"translateZ(0)":""},b5),r?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:l.neutral80})},jv={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},b5={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":dt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},jv)},x5=function(t){return dt({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},jv)},y5=function(t){var r=t.cx,n=t.value,a=mv(t),o=a.innerRef,i=a.isDisabled,l=a.isHidden,u=a.inputClassName,c=ma(a,m5);return pt("div",we({},hr(t,"input",{"input-container":!0}),{"data-value":n||""}),pt("input",we({className:r({input:!0},u),ref:o,style:x5(l),disabled:i},c)))},C5=y5,w5=function(t,r){var n=t.theme,a=n.spacing,o=n.borderRadius,i=n.colors;return dt({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:a.baseUnit/2})},E5=function(t,r){var n=t.theme,a=n.borderRadius,o=n.colors,i=t.cropWithEllipsis;return dt({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:a/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},D5=function(t,r){var n=t.theme,a=n.spacing,o=n.borderRadius,i=n.colors,l=t.isFocused;return dt({alignItems:"center",display:"flex"},r?{}:{borderRadius:o/2,backgroundColor:l?i.dangerLight:void 0,paddingLeft:a.baseUnit,paddingRight:a.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},Iv=function(t){var r=t.children,n=t.innerProps;return pt("div",n,r)},S5=Iv,A5=Iv;function F5(e){var t=e.children,r=e.innerProps;return pt("div",we({role:"button"},r),t||pt(Th,{size:14}))}var j5=function(t){var r=t.children,n=t.components,a=t.data,o=t.innerProps,i=t.isDisabled,l=t.removeProps,u=t.selectProps,c=n.Container,m=n.Label,p=n.Remove;return pt(c,{data:a,innerProps:dt(dt({},hr(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:u},pt(m,{data:a,innerProps:dt({},hr(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},r),pt(p,{data:a,innerProps:dt(dt({},hr(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},l),selectProps:u}))},I5=j5,T5=function(t,r){var n=t.isDisabled,a=t.isFocused,o=t.isSelected,i=t.theme,l=i.spacing,u=i.colors;return dt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:o?u.primary:a?u.primary25:"transparent",color:n?u.neutral20:o?u.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:o?u.primary:u.primary50}})},k5=function(t){var r=t.children,n=t.isDisabled,a=t.isFocused,o=t.isSelected,i=t.innerRef,l=t.innerProps;return pt("div",we({},hr(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":a,"option--is-selected":o}),{ref:i,"aria-disabled":n},l),r)},B5=k5,P5=function(t,r){var n=t.theme,a=n.spacing,o=n.colors;return dt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:o.neutral50,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},O5=function(t){var r=t.children,n=t.innerProps;return pt("div",we({},hr(t,"placeholder",{placeholder:!0}),n),r)},N5=O5,M5=function(t,r){var n=t.isDisabled,a=t.theme,o=a.spacing,i=a.colors;return dt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},R5=function(t){var r=t.children,n=t.isDisabled,a=t.innerProps;return pt("div",we({},hr(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),a),r)},$5=R5,L5={ClearIndicator:t5,Control:u5,DropdownIndicator:q4,DownChevron:Av,CrossIcon:Th,Group:g5,GroupHeading:p5,IndicatorsContainer:U4,IndicatorSeparator:n5,Input:C5,LoadingIndicator:i5,Menu:P4,MenuList:N4,MenuPortal:W4,LoadingMessage:L4,NoOptionsMessage:$4,MultiValue:I5,MultiValueContainer:S5,MultiValueLabel:A5,MultiValueRemove:F5,Option:B5,Placeholder:N5,SelectContainer:H4,SingleValue:$5,ValueContainer:G4},_5=function(t){return dt(dt({},L5),t.components)},Tv=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function W5(e,t){return!!(e===t||Tv(e)&&Tv(t))}function V5(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!W5(e[r],t[r]))return!1;return!0}function H5(e,t){t===void 0&&(t=V5);var r=null;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];if(r&&r.lastThis===this&&t(a,r.lastArgs))return r.lastResult;var i=e.apply(this,a);return r={lastResult:i,lastArgs:a,lastThis:this},i}return n.clear=function(){r=null},n}function z5(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var G5=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:z5},Z5=function(t){return pt("span",we({css:G5},t))},kv=Z5,U5={guidance:function(t){var r=t.isSearchable,n=t.isMulti,a=t.isDisabled,o=t.tabSelectsValue,i=t.context;switch(i){case"menu":return"Use Up and Down to choose options".concat(a?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(t["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var r=t.action,n=t.label,a=n===void 0?"":n,o=t.labels,i=t.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(a,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return i?"option ".concat(a," is disabled. Select another option."):"option ".concat(a,", selected.");default:return""}},onFocus:function(t){var r=t.context,n=t.focused,a=t.options,o=t.label,i=o===void 0?"":o,l=t.selectValue,u=t.isDisabled,c=t.isSelected,m=function(E,v){return E&&E.length?"".concat(E.indexOf(v)+1," of ").concat(E.length):""};if(r==="value"&&l)return"value ".concat(i," focused, ").concat(m(l,n),".");if(r==="menu"){var p=u?" disabled":"",x="".concat(c?"selected":"focused").concat(p);return"option ".concat(i," ").concat(x,", ").concat(m(a,n),".")}return""},onFilter:function(t){var r=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},X5=function(t){var r=t.ariaSelection,n=t.focusedOption,a=t.focusedValue,o=t.focusableOptions,i=t.isFocused,l=t.selectValue,u=t.selectProps,c=t.id,m=u.ariaLiveMessages,p=u.getOptionLabel,x=u.inputValue,C=u.isMulti,E=u.isOptionDisabled,v=u.isSearchable,A=u.menuIsOpen,S=u.options,j=u.screenReaderStatus,O=u.tabSelectsValue,L=u["aria-label"],M=u["aria-live"],z=h.useMemo(function(){return dt(dt({},U5),m||{})},[m]),H=h.useMemo(function(){var N="";if(r&&z.onChange){var W=r.option,ee=r.options,de=r.removedValue,ne=r.removedValues,te=r.value,K=function(me){return Array.isArray(me)?null:me},se=de||W||K(te),fe=se?p(se):"",Se=ee||ne||void 0,G=Se?Se.map(p):[],he=dt({isDisabled:se&&E(se,l),label:fe,labels:G},r);N=z.onChange(he)}return N},[r,z,E,l,p]),oe=h.useMemo(function(){var N="",W=n||a,ee=!!(n&&l&&l.includes(n));if(W&&z.onFocus){var de={focused:W,label:p(W),isDisabled:E(W,l),isSelected:ee,options:o,context:W===n?"menu":"value",selectValue:l};N=z.onFocus(de)}return N},[n,a,p,E,z,o,l]),J=h.useMemo(function(){var N="";if(A&&S.length&&z.onFilter){var W=j({count:o.length});N=z.onFilter({inputValue:x,resultsMessage:W})}return N},[o,x,A,z,S,j]),ge=h.useMemo(function(){var N="";if(z.guidance){var W=a?"value":A?"menu":"input";N=z.guidance({"aria-label":L,context:W,isDisabled:n&&E(n,l),isMulti:C,isSearchable:v,tabSelectsValue:O})}return N},[L,n,a,C,E,v,A,z,l,O]),xe="".concat(oe," ").concat(J," ").concat(ge),Q=pt(h.Fragment,null,pt("span",{id:"aria-selection"},H),pt("span",{id:"aria-context"},xe)),ce=(r==null?void 0:r.action)==="initial-input-focus";return pt(h.Fragment,null,pt(kv,{id:c},ce&&Q),pt(kv,{"aria-live":M,"aria-atomic":"false","aria-relevant":"additions text"},i&&!ce&&Q))},Y5=X5,Bh=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],J5=new RegExp("["+Bh.map(function(e){return e.letters}).join("")+"]","g"),Bv={},Ph=0;Ph<Bh.length;Ph++)for(var Oh=Bh[Ph],Nh=0;Nh<Oh.letters.length;Nh++)Bv[Oh.letters[Nh]]=Oh.base;var Pv=function(t){return t.replace(J5,function(r){return Bv[r]})},Q5=H5(Pv),Ov=function(t){return t.replace(/^\s+|\s+$/g,"")},K5=function(t){return"".concat(t.label," ").concat(t.value)},q5=function(t){return function(r,n){if(r.data.__isNew__)return!0;var a=dt({ignoreCase:!0,ignoreAccents:!0,stringify:K5,trim:!0,matchFrom:"any"},t),o=a.ignoreCase,i=a.ignoreAccents,l=a.stringify,u=a.trim,c=a.matchFrom,m=u?Ov(n):n,p=u?Ov(l(r)):l(r);return o&&(m=m.toLowerCase(),p=p.toLowerCase()),i&&(m=Q5(m),p=Pv(p)),c==="start"?p.substr(0,m.length)===m:p.indexOf(m)>-1}},e9=["innerRef"];function t9(e){var t=e.innerRef,r=ma(e,e9),n=S4(r,"onExited","in","enter","exit","appear");return pt("input",we({ref:t},n,{css:yh({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7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AgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var r9=function(t){t.preventDefault(),t.stopPropagation()};function n9(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,a=e.onTopArrive,o=e.onTopLeave,i=h.useRef(!1),l=h.useRef(!1),u=h.useRef(0),c=h.useRef(null),m=h.useCallback(function(A,S){if(c.current!==null){var j=c.current,O=j.scrollTop,L=j.scrollHeight,M=j.clientHeight,z=c.current,H=S>0,oe=L-M-O,J=!1;oe>S&&i.current&&(n&&n(A),i.current=!1),H&&l.current&&(o&&o(A),l.current=!1),H&&S>oe?(r&&!i.current&&r(A),z.scrollTop=L,J=!0,i.current=!0):!H&&-S>O&&(a&&!l.current&&a(A),z.scrollTop=0,J=!0,l.current=!0),J&&r9(A)}},[r,n,a,o]),p=h.useCallback(function(A){m(A,A.deltaY)},[m]),x=h.useCallback(function(A){u.current=A.changedTouches[0].clientY},[]),C=h.useCallback(function(A){var S=u.current-A.changedTouches[0].clientY;m(A,S)},[m]),E=h.useCallback(function(A){if(A){var S=w4?{passive:!1}:!1;A.addEventListener("wheel",p,S),A.addEventListener("touchstart",x,S),A.addEventListener("touchmove",C,S)}},[C,x,p]),v=h.useCallback(function(A){A&&(A.removeEventListener("wheel",p,!1),A.removeEventListener("touchstart",x,!1),A.removeEventListener("touchmove",C,!1))},[C,x,p]);return h.useEffect(function(){if(t){var A=c.current;return E(A),function(){v(A)}}},[t,E,v]),function(A){c.current=A}}var Nv=["boxSizing","height","overflow","paddingRight","position"],Mv={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Rv(e){e.preventDefault()}function $v(e){e.stopPropagation()}function Lv(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function _v(){return"ontouchstart"in window||navigator.maxTouchPoints}var Wv=!!(typeof window<"u"&&window.document&&window.document.createElement),Vl=0,ls={capture:!1,passive:!1};function a9(e){var t=e.isEnabled,r=e.accountForScrollbars,n=r===void 0?!0:r,a=h.useRef({}),o=h.useRef(null),i=h.useCallback(function(u){if(Wv){var c=document.body,m=c&&c.style;if(n&&Nv.forEach(function(E){var v=m&&m[E];a.current[E]=v}),n&&Vl<1){var p=parseInt(a.current.paddingRight,10)||0,x=document.body?document.body.clientWidth:0,C=window.innerWidth-x+p||0;Object.keys(Mv).forEach(function(E){var v=Mv[E];m&&(m[E]=v)}),m&&(m.paddingRight="".concat(C,"px"))}c&&_v()&&(c.addEventListener("touchmove",Rv,ls),u&&(u.addEventListener("touchstart",Lv,ls),u.addEventListener("touchmove",$v,ls))),Vl+=1}},[n]),l=h.useCallback(function(u){if(Wv){var c=document.body,m=c&&c.style;Vl=Math.max(Vl-1,0),n&&Vl<1&&Nv.forEach(function(p){var x=a.current[p];m&&(m[p]=x)}),c&&_v()&&(c.removeEventListener("touchmove",Rv,ls),u&&(u.removeEventListener("touchstart",Lv,ls),u.removeEventListener("touchmove",$v,ls)))}},[n]);return h.useEffect(function(){if(t){var u=o.current;return i(u),function(){l(u)}}},[t,i,l]),function(u){o.current=u}}function o9(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var i9=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},s9=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50O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rPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:o9};function l9(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,a=n===void 0?!0:n,o=e.onBottomArrive,i=e.onBottomLeave,l=e.onTopArrive,u=e.onTopLeave,c=n9({isEnabled:a,onBottomArrive:o,onBottomLeave:i,onTopArrive:l,onTopLeave:u}),m=a9({isEnabled:r}),p=function(C){c(C),m(C)};return pt(h.Fragment,null,r&&pt("div",{onClick:i9,css:s9}),t(p))}function u9(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var c9=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmV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VkSW5wdXQ7XG4iXX0= */",toString:u9},d9=function(t){var r=t.name,n=t.onFocus;return pt("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:c9,value:"",onChange:function(){}})},f9=d9,h9=function(t){return t.label},Vv=function(t){return t.label},Hv=function(t){return t.value},p9=function(t){return!!t.isDisabled},g9={clearIndicator:e5,container:V4,control:s5,dropdownIndicator:K4,group:d5,groupHeading:h5,indicatorsContainer:Z4,indicatorSeparator:r5,input:v5,loadingIndicator:o5,loadingMessage:R4,menu:T4,menuList:O4,menuPortal:_4,multiValue:w5,multiValueLabel:E5,multiValueRemove:D5,noOptionsMessage:M4,option:T5,placeholder:P5,singleValue:M5,valueContainer:z4},m9={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},v9=4,zv=4,b9=38,x9=zv*2,y9={baseUnit:zv,controlHeight:b9,menuGutter:x9},Mh={borderRadius:v9,colors:m9,spacing:y9},C9={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:xv(),captureMenuScroll:!xv(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:q5(),formatGroupLabel:h9,getOptionLabel:Vv,getOptionValue:Hv,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:p9,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!y4(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Gv(e,t,r,n){var a=Jv(e,t,r),o=Qv(e,t,r),i=Yv(e,t),l=zc(e,t);return{type:"option",data:t,isDisabled:a,isSelected:o,label:i,value:l,index:n}}function Zv(e,t){return e.options.map(function(r,n){if("options"in r){var a=r.options.map(function(i,l){return Gv(e,i,t,l)}).filter(function(i){return Xv(e,i)});return a.length>0?{type:"group",data:r,options:a,index:n}:void 0}var o=Gv(e,r,t,n);return Xv(e,o)?o:void 0}).filter(E4)}function Uv(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,kl(r.options.map(function(n){return n.data}))):t.push(r.data),t},[])}function w9(e,t){return Uv(Zv(e,t))}function Xv(e,t){var r=e.inputValue,n=r===void 0?"":r,a=t.data,o=t.isSelected,i=t.label,l=t.value;return(!qv(e)||!o)&&Kv(e,{label:i,value:l,data:a},n)}function E9(e,t){var r=e.focusedValue,n=e.selectValue,a=n.indexOf(r);if(a>-1){var o=t.indexOf(r);if(o>-1)return r;if(a<t.length)return t[a]}return null}function D9(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var Yv=function(t,r){return t.getOptionLabel(r)},zc=function(t,r){return t.getOptionValue(r)};function Jv(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function Qv(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var n=zc(e,t);return r.some(function(a){return zc(e,a)===n})}function Kv(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var qv=function(t){var r=t.hideSelectedOptions,n=t.isMulti;return r===void 0?n:r},S9=1,Rh=function(e){fE(r,e);var t=mE(r);function r(n){var a;if(cE(this,r),a=t.call(this,n),a.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},a.blockOptionHover=!1,a.isComposing=!1,a.commonProps=void 0,a.initialTouchX=0,a.initialTouchY=0,a.instancePrefix="",a.openAfterFocus=!1,a.scrollToFocusedOptionOnUpdate=!1,a.userIsDragging=void 0,a.controlRef=null,a.getControlRef=function(l){a.controlRef=l},a.focusedOptionRef=null,a.getFocusedOptionRef=function(l){a.focusedOptionRef=l},a.menuListRef=null,a.getMenuListRef=function(l){a.menuListRef=l},a.inputRef=null,a.getInputRef=function(l){a.inputRef=l},a.focus=a.focusInput,a.blur=a.blurInput,a.onChange=function(l,u){var c=a.props,m=c.onChange,p=c.name;u.name=p,a.ariaOnChange(l,u),m(l,u)},a.setValue=function(l,u,c){var m=a.props,p=m.closeMenuOnSelect,x=m.isMulti,C=m.inputValue;a.onInputChange("",{action:"set-value",prevInputValue:C}),p&&(a.setState({inputIsHiddenAfterUpdate:!x}),a.onMenuClose()),a.setState({clearFocusValueOnUpdate:!0}),a.onChange(l,{action:u,option:c})},a.selectOption=function(l){var u=a.props,c=u.blurInputOnSelect,m=u.isMulti,p=u.name,x=a.state.selectValue,C=m&&a.isOptionSelected(l,x),E=a.isOptionDisabled(l,x);if(C){var v=a.getOptionValue(l);a.setValue(x.filter(function(A){return a.getOptionValue(A)!==v}),"deselect-option",l)}else if(!E)m?a.setValue([].concat(kl(x),[l]),"select-option",l):a.setValue(l,"select-option");else{a.ariaOnChange(l,{action:"select-option",option:l,name:p});return}c&&a.blurInput()},a.removeValue=function(l){var u=a.props.isMulti,c=a.state.selectValue,m=a.getOptionValue(l),p=c.filter(function(C){return a.getOptionValue(C)!==m}),x=Wl(u,p,p[0]||null);a.onChange(x,{action:"remove-value",removedValue:l}),a.focusInput()},a.clearValue=function(){var l=a.state.selectValue;a.onChange(Wl(a.props.isMulti,[],null),{action:"clear",removedValues:l})},a.popValue=function(){var l=a.props.isMulti,u=a.state.selectValue,c=u[u.length-1],m=u.slice(0,u.length-1),p=Wl(l,m,m[0]||null);a.onChange(p,{action:"pop-value",removedValue:c})},a.getValue=function(){return a.state.selectValue},a.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return g4.apply(void 0,[a.props.classNamePrefix].concat(u))},a.getOptionLabel=function(l){return Yv(a.props,l)},a.getOptionValue=function(l){return zc(a.props,l)},a.getStyles=function(l,u){var c=a.props.unstyled,m=g9[l](u,c);m.boxSizing="border-box";var p=a.props.styles[l];return p?p(m,u):m},a.getClassNames=function(l,u){var c,m;return(c=(m=a.props.classNames)[l])===null||c===void 0?void 0:c.call(m,u)},a.getElementId=function(l){return"".concat(a.instancePrefix,"-").concat(l)},a.getComponents=function(){return _5(a.props)},a.buildCategorizedOptions=function(){return Zv(a.props,a.state.selectValue)},a.getCategorizedOptions=function(){return a.props.menuIsOpen?a.buildCategorizedOptions():[]},a.buildFocusableOptions=function(){return Uv(a.buildCategorizedOptions())},a.getFocusableOptions=function(){return a.props.menuIsOpen?a.buildFocusableOptions():[]},a.ariaOnChange=function(l,u){a.setState({ariaSelection:dt({value:l},u)})},a.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),a.focusInput())},a.onMenuMouseMove=function(l){a.blockOptionHover=!1},a.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=a.props.openMenuOnClick;a.state.isFocused?a.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&a.onMenuClose():u&&a.openMenu("first"):(u&&(a.openAfterFocus=!0),a.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},a.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!a.props.isDisabled){var u=a.props,c=u.isMulti,m=u.menuIsOpen;a.focusInput(),m?(a.setState({inputIsHiddenAfterUpdate:!c}),a.onMenuClose()):a.openMenu("first"),l.preventDefault()}},a.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(a.clearValue(),l.preventDefault(),a.openAfterFocus=!1,l.type==="touchend"?a.focusInput():setTimeout(function(){return a.focusInput()}))},a.onScroll=function(l){typeof a.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&_c(l.target)&&a.props.onMenuClose():typeof a.props.closeMenuOnScroll=="function"&&a.props.closeMenuOnScroll(l)&&a.props.onMenuClose()},a.onCompositionStart=function(){a.isComposing=!0},a.onCompositionEnd=function(){a.isComposing=!1},a.onTouchStart=function(l){var u=l.touches,c=u&&u.item(0);c&&(a.initialTouchX=c.clientX,a.initialTouchY=c.clientY,a.userIsDragging=!1)},a.onTouchMove=function(l){var u=l.touches,c=u&&u.item(0);if(c){var m=Math.abs(c.clientX-a.initialTouchX),p=Math.abs(c.clientY-a.initialTouchY),x=5;a.userIsDragging=m>x||p>x}},a.onTouchEnd=function(l){a.userIsDragging||(a.controlRef&&!a.controlRef.contains(l.target)&&a.menuListRef&&!a.menuListRef.contains(l.target)&&a.blurInput(),a.initialTouchX=0,a.initialTouchY=0)},a.onControlTouchEnd=function(l){a.userIsDragging||a.onControlMouseDown(l)},a.onClearIndicatorTouchEnd=function(l){a.userIsDragging||a.onClearIndicatorMouseDown(l)},a.onDropdownIndicatorTouchEnd=function(l){a.userIsDragging||a.onDropdownIndicatorMouseDown(l)},a.handleInputChange=function(l){var u=a.props.inputValue,c=l.currentTarget.value;a.setState({inputIsHiddenAfterUpdate:!1}),a.onInputChange(c,{action:"input-change",prevInputValue:u}),a.props.menuIsOpen||a.onMenuOpen()},a.onInputFocus=function(l){a.props.onFocus&&a.props.onFocus(l),a.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(a.openAfterFocus||a.props.openMenuOnFocus)&&a.openMenu("first"),a.openAfterFocus=!1},a.onInputBlur=function(l){var u=a.props.inputValue;if(a.menuListRef&&a.menuListRef.contains(document.activeElement)){a.inputRef.focus();return}a.props.onBlur&&a.props.onBlur(l),a.onInputChange("",{action:"input-blur",prevInputValue:u}),a.onMenuClose(),a.setState({focusedValue:null,isFocused:!1})},a.onOptionHover=function(l){a.blockOptionHover||a.state.focusedOption===l||a.setState({focusedOption:l})},a.shouldHideSelectedOptions=function(){return qv(a.props)},a.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),a.focus()},a.onKeyDown=function(l){var u=a.props,c=u.isMulti,m=u.backspaceRemovesValue,p=u.escapeClearsValue,x=u.inputValue,C=u.isClearable,E=u.isDisabled,v=u.menuIsOpen,A=u.onKeyDown,S=u.tabSelectsValue,j=u.openMenuOnFocus,O=a.state,L=O.focusedOption,M=O.focusedValue,z=O.selectValue;if(!E&&!(typeof A=="function"&&(A(l),l.defaultPrevented))){switch(a.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||x)return;a.focusValue("previous");break;case"ArrowRight":if(!c||x)return;a.focusValue("next");break;case"Delete":case"Backspace":if(x)return;if(M)a.removeValue(M);else{if(!m)return;c?a.popValue():C&&a.clearValue()}break;case"Tab":if(a.isComposing||l.shiftKey||!v||!S||!L||j&&a.isOptionSelected(L,z))return;a.selectOption(L);break;case"Enter":if(l.keyCode===229)break;if(v){if(!L||a.isComposing)return;a.selectOption(L);break}return;case"Escape":v?(a.setState({inputIsHiddenAfterUpdate:!1}),a.onInputChange("",{action:"menu-close",prevInputValue:x}),a.onMenuClose()):C&&p&&a.clearValue();break;case" ":if(x)return;if(!v){a.openMenu("first");break}if(!L)return;a.selectOption(L);break;case"ArrowUp":v?a.focusOption("up"):a.openMenu("last");break;case"ArrowDown":v?a.focusOption("down"):a.openMenu("first");break;case"PageUp":if(!v)return;a.focusOption("pageup");break;case"PageDown":if(!v)return;a.focusOption("pagedown");break;case"Home":if(!v)return;a.focusOption("first");break;case"End":if(!v)return;a.focusOption("last");break;default:return}l.preventDefault()}},a.instancePrefix="react-select-"+(a.props.instanceId||++S9),a.state.selectValue=Lc(n.value),n.menuIsOpen&&a.state.selectValue.length){var o=a.buildFocusableOptions(),i=o.indexOf(a.state.selectValue[0]);a.state.focusedOption=o[i]}return a}return dE(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&bv(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(a){var o=this.props,i=o.isDisabled,l=o.menuIsOpen,u=this.state.isFocused;(u&&!i&&a.isDisabled||u&&l&&!a.menuIsOpen)&&this.focusInput(),u&&i&&!a.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!u&&!i&&a.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(bv(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(a,o){this.props.onInputChange(a,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(a){var o=this,i=this.state,l=i.selectValue,u=i.isFocused,c=this.buildFocusableOptions(),m=a==="first"?0:c.length-1;if(!this.props.isMulti){var p=c.indexOf(l[0]);p>-1&&(m=p)}this.scrollToFocusedOptionOnUpdate=!(u&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[m]},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(a){var o=this.state,i=o.selectValue,l=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var u=i.indexOf(l);l||(u=-1);var c=i.length-1,m=-1;if(i.length){switch(a){case"previous":u===0?m=0:u===-1?m=c:m=u-1;break;case"next":u>-1&&u<c&&(m=u+1);break}this.setState({inputIsHidden:m!==-1,focusedValue:i[m]})}}}},{key:"focusOption",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,i=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var u=0,c=l.indexOf(i);i||(c=-1),a==="up"?u=c>0?c-1:l.length-1:a==="down"?u=(c+1)%l.length:a==="pageup"?(u=c-o,u<0&&(u=0)):a==="pagedown"?(u=c+o,u>l.length-1&&(u=l.length-1)):a==="last"&&(u=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[u],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Mh):dt(dt({},Mh),this.props.theme):Mh}},{key:"getCommonProps",value:function(){var a=this.clearValue,o=this.cx,i=this.getStyles,l=this.getClassNames,u=this.getValue,c=this.selectOption,m=this.setValue,p=this.props,x=p.isMulti,C=p.isRtl,E=p.options,v=this.hasValue();return{clearValue:a,cx:o,getStyles:i,getClassNames:l,getValue:u,hasValue:v,isMulti:x,isRtl:C,options:E,selectOption:c,selectProps:p,setValue:m,theme:this.getTheme()}}},{key:"hasValue",value:function(){var a=this.state.selectValue;return a.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var a=this.props,o=a.isClearable,i=a.isMulti;return o===void 0?i:o}},{key:"isOptionDisabled",value:function(a,o){return Jv(this.props,a,o)}},{key:"isOptionSelected",value:function(a,o){return Qv(this.props,a,o)}},{key:"filterOption",value:function(a,o){return Kv(this.props,a,o)}},{key:"formatOptionLabel",value:function(a,o){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(a,{context:o,inputValue:i,selectValue:l})}else return this.getOptionLabel(a)}},{key:"formatGroupLabel",value:function(a){return this.props.formatGroupLabel(a)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var a=this.props,o=a.isDisabled,i=a.isSearchable,l=a.inputId,u=a.inputValue,c=a.tabIndex,m=a.form,p=a.menuIsOpen,x=a.required,C=this.getComponents(),E=C.Input,v=this.state,A=v.inputIsHidden,S=v.ariaSelection,j=this.commonProps,O=l||this.getElementId("input"),L=dt(dt(dt({"aria-autocomplete":"list","aria-expanded":p,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":x,role:"combobox"},p&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?(S==null?void 0:S.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?je.createElement(E,we({},j,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:O,innerRef:this.getInputRef,isDisabled:o,isHidden:A,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:m,type:"text",value:u},L)):je.createElement(t9,we({id:O,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:$c,onFocus:this.onInputFocus,disabled:o,tabIndex:c,inputMode:"none",form:m,value:""},L))}},{key:"renderPlaceholderOrValue",value:function(){var a=this,o=this.getComponents(),i=o.MultiValue,l=o.MultiValueContainer,u=o.MultiValueLabel,c=o.MultiValueRemove,m=o.SingleValue,p=o.Placeholder,x=this.commonProps,C=this.props,E=C.controlShouldRenderValue,v=C.isDisabled,A=C.isMulti,S=C.inputValue,j=C.placeholder,O=this.state,L=O.selectValue,M=O.focusedValue,z=O.isFocused;if(!this.hasValue()||!E)return S?null:je.createElement(p,we({},x,{key:"placeholder",isDisabled:v,isFocused:z,innerProps:{id:this.getElementId("placeholder")}}),j);if(A)return L.map(function(oe,J){var ge=oe===M,xe="".concat(a.getOptionLabel(oe),"-").concat(a.getOptionValue(oe));return je.createElement(i,we({},x,{components:{Container:l,Label:u,Remove:c},isFocused:ge,isDisabled:v,key:xe,index:J,removeProps:{onClick:function(){return a.removeValue(oe)},onTouchEnd:function(){return a.removeValue(oe)},onMouseDown:function(ce){ce.preventDefault()}},data:oe}),a.formatOptionLabel(oe,"value"))});if(S)return null;var H=L[0];return je.createElement(m,we({},x,{data:H,isDisabled:v}),this.formatOptionLabel(H,"value"))}},{key:"renderClearIndicator",value:function(){var a=this.getComponents(),o=a.ClearIndicator,i=this.commonProps,l=this.props,u=l.isDisabled,c=l.isLoading,m=this.state.isFocused;if(!this.isClearable()||!o||u||!this.hasValue()||c)return null;var p={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return je.createElement(o,we({},i,{innerProps:p,isFocused:m}))}},{key:"renderLoadingIndicator",value:function(){var a=this.getComponents(),o=a.LoadingIndicator,i=this.commonProps,l=this.props,u=l.isDisabled,c=l.isLoading,m=this.state.isFocused;if(!o||!c)return null;var p={"aria-hidden":"true"};return je.createElement(o,we({},i,{innerProps:p,isDisabled:u,isFocused:m}))}},{key:"renderIndicatorSeparator",value:function(){var a=this.getComponents(),o=a.DropdownIndicator,i=a.IndicatorSeparator;if(!o||!i)return null;var l=this.commonProps,u=this.props.isDisabled,c=this.state.isFocused;return je.createElement(i,we({},l,{isDisabled:u,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var a=this.getComponents(),o=a.DropdownIndicator;if(!o)return null;var i=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return je.createElement(o,we({},i,{innerProps:c,isDisabled:l,isFocused:u}))}},{key:"renderMenu",value:function(){var a=this,o=this.getComponents(),i=o.Group,l=o.GroupHeading,u=o.Menu,c=o.MenuList,m=o.MenuPortal,p=o.LoadingMessage,x=o.NoOptionsMessage,C=o.Option,E=this.commonProps,v=this.state.focusedOption,A=this.props,S=A.captureMenuScroll,j=A.inputValue,O=A.isLoading,L=A.loadingMessage,M=A.minMenuHeight,z=A.maxMenuHeight,H=A.menuIsOpen,oe=A.menuPlacement,J=A.menuPosition,ge=A.menuPortalTarget,xe=A.menuShouldBlockScroll,Q=A.menuShouldScrollIntoView,ce=A.noOptionsMessage,N=A.onMenuScrollToTop,W=A.onMenuScrollToBottom;if(!H)return null;var ee=function(Se,G){var he=Se.type,ae=Se.data,me=Se.isDisabled,Me=Se.isSelected,Pe=Se.label,We=Se.value,Ke=v===ae,Ne=me?void 0:function(){return a.onOptionHover(ae)},Qe=me?void 0:function(){return a.selectOption(ae)},nt="".concat(a.getElementId("option"),"-").concat(G),vt={id:nt,onClick:Qe,onMouseMove:Ne,onMouseOver:Ne,tabIndex:-1};return je.createElement(C,we({},E,{innerProps:vt,data:ae,isDisabled:me,isSelected:Me,key:nt,label:Pe,type:he,value:We,isFocused:Ke,innerRef:Ke?a.getFocusedOptionRef:void 0}),a.formatOptionLabel(Se.data,"menu"))},de;if(this.hasOptions())de=this.getCategorizedOptions().map(function(fe){if(fe.type==="group"){var Se=fe.data,G=fe.options,he=fe.index,ae="".concat(a.getElementId("group"),"-").concat(he),me="".concat(ae,"-heading");return je.createElement(i,we({},E,{key:ae,data:Se,options:G,Heading:l,headingProps:{id:me,data:fe.data},label:a.formatGroupLabel(fe.data)}),fe.options.map(function(Me){return ee(Me,"".concat(he,"-").concat(Me.index))}))}else if(fe.type==="option")return ee(fe,"".concat(fe.index))});else if(O){var ne=L({inputValue:j});if(ne===null)return null;de=je.createElement(p,E,ne)}else{var te=ce({inputValue:j});if(te===null)return null;de=je.createElement(x,E,te)}var K={minMenuHeight:M,maxMenuHeight:z,menuPlacement:oe,menuPosition:J,menuShouldScrollIntoView:Q},se=je.createElement(k4,we({},E,K),function(fe){var Se=fe.ref,G=fe.placerProps,he=G.placement,ae=G.maxHeight;return je.createElement(u,we({},E,K,{innerRef:Se,innerProps:{onMouseDown:a.onMenuMouseDown,onMouseMove:a.onMenuMouseMove,id:a.getElementId("listbox")},isLoading:O,placement:he}),je.createElement(l9,{captureEnabled:S,onTopArrive:N,onBottomArrive:W,lockEnabled:xe},function(me){return je.createElement(c,we({},E,{innerRef:function(Pe){a.getMenuListRef(Pe),me(Pe)},isLoading:O,maxHeight:ae,focusedOption:v}),de)}))});return ge||J==="fixed"?je.createElement(m,we({},E,{appendTo:ge,controlElement:this.controlRef,menuPlacement:oe,menuPosition:J}),se):se}},{key:"renderFormField",value:function(){var a=this,o=this.props,i=o.delimiter,l=o.isDisabled,u=o.isMulti,c=o.name,m=o.required,p=this.state.selectValue;if(m&&!this.hasValue()&&!l)return je.createElement(f9,{name:c,onFocus:this.onValueInputFocus});if(!(!c||l))if(u)if(i){var x=p.map(function(v){return a.getOptionValue(v)}).join(i);return je.createElement("input",{name:c,type:"hidden",value:x})}else{var C=p.length>0?p.map(function(v,A){return je.createElement("input",{key:"i-".concat(A),name:c,type:"hidden",value:a.getOptionValue(v)})}):je.createElement("input",{name:c,type:"hidden",value:""});return je.createElement("div",null,C)}else{var E=p[0]?this.getOptionValue(p[0]):"";return je.createElement("input",{name:c,type:"hidden",value:E})}}},{key:"renderLiveRegion",value:function(){var a=this.commonProps,o=this.state,i=o.ariaSelection,l=o.focusedOption,u=o.focusedValue,c=o.isFocused,m=o.selectValue,p=this.getFocusableOptions();return je.createElement(Y5,we({},a,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:l,focusedValue:u,isFocused:c,selectValue:m,focusableOptions:p}))}},{key:"render",value:function(){var a=this.getComponents(),o=a.Control,i=a.IndicatorsContainer,l=a.SelectContainer,u=a.ValueContainer,c=this.props,m=c.className,p=c.id,x=c.isDisabled,C=c.menuIsOpen,E=this.state.isFocused,v=this.commonProps=this.getCommonProps();return je.createElement(l,we({},v,{className:m,innerProps:{id:p,onKeyDown:this.onKeyDown},isDisabled:x,isFocused:E}),this.renderLiveRegion(),je.createElement(o,we({},v,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:x,isFocused:E,menuIsOpen:C}),je.createElement(u,we({},v,{isDisabled:x}),this.renderPlaceholderOrValue(),this.renderInput()),je.createElement(i,we({},v,{isDisabled:x}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(a,o){var i=o.prevProps,l=o.clearFocusValueOnUpdate,u=o.inputIsHiddenAfterUpdate,c=o.ariaSelection,m=o.isFocused,p=o.prevWasFocused,x=a.options,C=a.value,E=a.menuIsOpen,v=a.inputValue,A=a.isMulti,S=Lc(C),j={};if(i&&(C!==i.value||x!==i.options||E!==i.menuIsOpen||v!==i.inputValue)){var O=E?w9(a,S):[],L=l?E9(o,S):null,M=D9(o,O);j={selectValue:S,focusedOption:M,focusedValue:L,clearFocusValueOnUpdate:!1}}var z=u!=null&&a!==i?{inputIsHidden:u,inputIsHiddenAfterUpdate:void 0}:{},H=c,oe=m&&p;return m&&!oe&&(H={value:Wl(A,S,S[0]||null),options:S,action:"initial-input-focus"},oe=!p),(c==null?void 0:c.action)==="initial-input-focus"&&(H=null),dt(dt(dt({},j),z),{},{prevProps:a,ariaSelection:H,prevWasFocused:oe})}}]),r}(h.Component);Rh.defaultProps=C9;var A9=h.forwardRef(function(e,t){var r=y0(e);return je.createElement(Rh,we({ref:t},r))}),e1=A9,F9=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],t1=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=String(t).toLowerCase(),o=String(n.getOptionValue(r)).toLowerCase(),i=String(n.getOptionLabel(r)).toLowerCase();return o===a||i===a},$h={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,r,n,a){return!(!t||r.some(function(o){return t1(t,o,a)})||n.some(function(o){return t1(t,o,a)}))},getNewOptionData:function(t,r){return{label:r,value:t,__isNew__:!0}}};function j9(e){var t=e.allowCreateWhileLoading,r=t===void 0?!1:t,n=e.createOptionPosition,a=n===void 0?"last":n,o=e.formatCreateLabel,i=o===void 0?$h.formatCreateLabel:o,l=e.isValidNewOption,u=l===void 0?$h.isValidNewOption:l,c=e.getNewOptionData,m=c===void 0?$h.getNewOptionData:c,p=e.onCreateOption,x=e.options,C=x===void 0?[]:x,E=e.onChange,v=ma(e,F9),A=v.getOptionValue,S=A===void 0?Hv:A,j=v.getOptionLabel,O=j===void 0?Vv:j,L=v.inputValue,M=v.isLoading,z=v.isMulti,H=v.value,oe=v.name,J=h.useMemo(function(){return u(L,Lc(H),C,{getOptionValue:S,getOptionLabel:O})?m(L,i(L)):void 0},[i,m,O,S,L,u,C,H]),ge=h.useMemo(function(){return(r||!M)&&J?a==="first"?[J].concat(kl(C)):[].concat(kl(C),[J]):C},[r,a,M,J,C]),xe=h.useCallback(function(Q,ce){if(ce.action!=="select-option")return E(Q,ce);var N=Array.isArray(Q)?Q:[Q];if(N[N.length-1]===J){if(p)p(L);else{var W=m(L,L),ee={action:"create-option",name:oe,option:W};E(Wl(z,[].concat(kl(Lc(H)),[W]),W),ee)}return}E(Q,ce)},[m,L,z,oe,J,p,E,H]);return dt(dt({},v),{},{options:ge,onChange:xe})}var I9=h.forwardRef(function(e,t){var r=y0(e),n=j9(r);return je.createElement(Rh,we({ref:t},n))}),T9=I9;const k9=({cx:e,children:t,getStyles:r,innerProps:n,innerRef:a,size:o="normal",...i})=>{let l={small:"h-7 text-xs",normal:"h-[2.36rem] text-sm",large:""};return s.jsx("div",{ref:a,className:$e(l[o],"flex w-full rounded border bg-background text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:focus:ring-blue-500"),...n,children:t})},B9=({cx:e,children:t,getStyles:r,innerProps:n,innerRef:a,...o})=>s.jsx("div",{className:"absolute z-10 mt-2 flex w-full flex-col justify-start rounded border bg-background p-1.5",ref:a,...n,children:t}),P9=({cx:e,children:t,getStyles:r,innerProps:n,innerRef:a,size:o="normal",...i})=>s.jsx("div",{ref:a,className:"flex cursor-pointer select-none flex-row items-center justify-between rounded-inner p-1 px-2 hover:bg-primary hover:text-primary-foreground",...n,children:t}),Hl=e=>s.jsxs("div",{className:" flex w-full flex-col gap-2",children:[e.label&&s.jsx(ti,{children:e.label}),e.isLoading?s.jsx(ri,{className:"h-[38px] w-full"}):e.isCreatable?s.jsx(T9,{styles:{input:t=>({...t,"input:focus":{boxShadow:"none"}}),control:t=>({...t,borderRadius:"0.75rem"}),menu:t=>({...t,borderRadius:"0.75rem",padding:0,display:"flex",justifyContent:"center"}),menuList:t=>({...t,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%"}),option:t=>({...t,borderRadius:"0.75rem",margin:3,width:"98%"})},options:e.options,isClearable:e.isClearable,isMulti:e.isMulti,isSearchable:e.isSearchable,onCreateOption:()=>console.log("im changing"),onChange:(t,r)=>e.onChange(t,r),onInputChange:(t,r)=>e.onInputChange(t,r)}):s.jsx(e1,{classNames:{container:()=>Ve("rounded",e.disabled?"cursor-not-allowed":"cursor-pointer"),placeholder:()=>"px-2 text-muted-foreground",input:()=>"text-white px-2",valueContainer:()=>"text-white dark:text-muted-foreground",singleValue:()=>"text-black dark:text-white px-2",indicatorsContainer:()=>" px-2 cursor-pointer text-muted-foreground"},unstyled:!0,isDisabled:e.disabled,options:e.options,defaultValue:e.defaultValue,isClearable:e.isClearable,isMulti:e.isMulti,isSearchable:e.isSearchable,onChange:(t,r)=>e.onChange(t,r),components:{Control:k9,Option:P9,Menu:B9},getOptionLabel:e.getOptionLabel}),e.helperText&&s.jsx("p",{className:"mt-2 text-sm text-red-600 dark:text-red-500",children:e.helperText})]});function at(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e==null||e(a),r===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function Dn(e,t=[]){let r=[];function n(o,i){const l=h.createContext(i),u=r.length;r=[...r,i];function c(p){const{scope:x,children:C,...E}=p,v=(x==null?void 0:x[e][u])||l,A=h.useMemo(()=>E,Object.values(E));return h.createElement(v.Provider,{value:A},C)}function m(p,x){const C=(x==null?void 0:x[e][u])||l,E=h.useContext(C);if(E)return E;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,m]}const a=()=>{const o=r.map(i=>h.createContext(i));return function(l){const u=(l==null?void 0:l[e])||o;return h.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return a.scopeName=e,[n,O9(a,...t)]}function O9(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(o){const i=n.reduce((l,{useScope:u,scopeName:c})=>{const p=u(o)[`__scope${c}`];return{...l,...p}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Ur(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function Rn({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,a]=N9({defaultProp:t,onChange:r}),o=e!==void 0,i=o?e:n,l=Ur(r),u=h.useCallback(c=>{if(o){const p=typeof c=="function"?c(e):c;p!==e&&l(p)}else a(c)},[o,e,a,l]);return[i,u]}function N9({defaultProp:e,onChange:t}){const r=h.useState(e),[n]=r,a=h.useRef(n),o=Ur(t);return h.useEffect(()=>{a.current!==n&&(o(n),a.current=n)},[n,a,o]),r}function M9(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const xo=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{};function r1(e){const[t,r]=h.useState(void 0);return xo(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const o=a[0];let i,l;if("borderBoxSize"in o){const u=o.borderBoxSize,c=Array.isArray(u)?u[0]:u;i=c.inlineSize,l=c.blockSize}else i=e.offsetWidth,l=e.offsetHeight;r({width:i,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}const n1="Switch",[R9,wN]=Dn(n1),[$9,L9]=R9(n1),_9=h.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:a,defaultChecked:o,required:i,disabled:l,value:u="on",onCheckedChange:c,...m}=e,[p,x]=h.useState(null),C=Kt(t,j=>x(j)),E=h.useRef(!1),v=p?!!p.closest("form"):!0,[A=!1,S]=Rn({prop:a,defaultProp:o,onChange:c});return h.createElement($9,{scope:r,checked:A,disabled:l},h.createElement(St.button,we({type:"button",role:"switch","aria-checked":A,"aria-required":i,"data-state":a1(A),"data-disabled":l?"":void 0,disabled:l,value:u},m,{ref:C,onClick:at(e.onClick,j=>{S(O=>!O),v&&(E.current=j.isPropagationStopped(),E.current||j.stopPropagation())})})),v&&h.createElement(H9,{control:p,bubbles:!E.current,name:n,value:u,checked:A,required:i,disabled:l,style:{transform:"translateX(-100%)"}}))}),W9="SwitchThumb",V9=h.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,a=L9(W9,r);return h.createElement(St.span,we({"data-state":a1(a.checked),"data-disabled":a.disabled?"":void 0},n,{ref:t}))}),H9=e=>{const{control:t,checked:r,bubbles:n=!0,...a}=e,o=h.useRef(null),i=M9(r),l=r1(t);return h.useEffect(()=>{const u=o.current,c=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(c,"checked").set;if(i!==r&&p){const x=new Event("click",{bubbles:n});p.call(u,r),u.dispatchEvent(x)}},[i,r,n]),h.createElement("input",we({type:"checkbox","aria-hidden":!0,defaultChecked:r},a,{tabIndex:-1,ref:o,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function a1(e){return e?"checked":"unchecked"}const o1=_9,z9=V9;let G9={default:"h-[25px] w-[42px]",sm:"h-[20px] w-[37px]"},Z9={default:"h-[21px] w-[21px]",sm:"h-[16px] w-[16px]"};const Lh=je.forwardRef(({className:e,size:t="default",label:r,...n},a)=>{const[o,i]=je.useState(null),l=je.useRef(null);return je.useEffect(()=>{if(l.current&&l.current.parentNode){const u=window.getComputedStyle(l.current.parentNode).direction;i(u)}}),s.jsxs("div",{className:"flex flex-row items-center",ref:l,children:[s.jsx(o1,{className:Ve("relative cursor-pointer rounded-full bg-primary/20 outline-none data-[state=checked]:bg-primary",e,G9[t]),...n,ref:a,children:s.jsx(z9,{className:Ve(Z9[t],"block rounded-full bg-white transition-transform duration-100 will-change-transform data-[state=checked]:bg-primary-foreground dark:bg-background",o==="rtl"?"-translate-x-0.5 data-[state=checked]:-translate-x-[19px]":"translate-x-0.5 data-[state=checked]:translate-x-[19px]")})}),r&&s.jsx("span",{className:"mx-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:r})]})});Lh.displayName=o1.displayName;const U9=({settingsLabel:e,settingsType:t,settingsDescription:r,colorProps:n,rangeProps:a,radioProps:o,switchProps:i,selectProps:l})=>s.jsxs("div",{className:"flex max-h-fit flex-row items-center justify-between rounded align-middle",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm",children:e}),r&&s.jsx("div",{className:"text-xs",children:r})," "]}),t==="text"&&s.jsx(Rt,{margin:"none",width:"small"}),t==="boolean"&&s.jsx(Lh,{...i}),t==="range"&&s.jsx(m0,{...a}),t==="color"&&s.jsx(g0,{...n}),t==="radio"&&s.jsx(yn,{...o}),t==="select"&&s.jsx(Hl,{...l})]}),X9=e=>s.jsx("div",{children:e.children}),us=({design:e="spinner",size:t="sm",color:r,...n})=>{let a={button:"h-4 w-4",xs:"h-1 w-1",sm:"h-6 w-6",normal:"h-8 w-8",lg:"h-14 w-14",xl:"h-24 w-24"},o={pulse:"animate-in fade-in duration-1000",bounce:"animate-bounce"};switch(e.split("-")[0]){case"dots":return s.jsxs("div",{className:"flex flex-row gap-2",children:[s.jsx("div",{className:$e("animate-bounce rounded-full delay-100 repeat-infinite",t==="button"?"h-2 w-2":a[t],o[e.split("-")[1]],r||"bg-primary")}),s.jsx("div",{className:$e("animate-bounce rounded-full delay-200 repeat-infinite",t==="button"?"h-2 w-2":a[t],o[e.split("-")[1]],r||"bg-primary")}),s.jsx("div",{className:$e("animate-bounce rounded-full delay-300 repeat-infinite",t==="button"?"h-2 w-2":a[t],o[e.split("-")[1]],r||"bg-primary")})]});default:return s.jsx("div",{className:"flex flex-row gap-x-3",children:s.jsx("div",{"aria-label":"Loading...",role:"status",children:s.jsxs("svg",{className:$e(a[t],"animate-spin"),viewBox:"3 3 18 18",children:[s.jsx("path",{className:"fill-primary/20",d:"M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"}),s.jsx("path",{className:r||"fill-primary",d:"M16.9497 7.05015C14.2161 4.31648 9.78392 4.31648 7.05025 7.05015C6.65973 7.44067 6.02656 7.44067 5.63604 7.05015C5.24551 6.65962 5.24551 6.02646 5.63604 5.63593C9.15076 2.12121 14.8492 2.12121 18.364 5.63593C18.7545 6.02646 18.7545 6.65962 18.364 7.05015C17.9734 7.44067 17.3403 7.44067 16.9497 7.05015Z"})]})})})}},i1=Qf("inline-flex items-center justify-center select-none rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",light:"bg-primary/20 text-primary hover:bg-primary/40",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",neoBrutalism:"cursor-pointer transition-all uppercase font-mono dark:bg-black font-bold py-2 px-4 rounded border-2 border-primary shadow-color-primary transition-[transform_50ms, box-shadow_50ms] active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"},size:{default:"h-10 px-4 py-2",heightless:"px-4 py-4",xs:"h-fit py-1 text-[10px] px-2 ",sm:"h-9 text-[11px] rounded-md px-3",lg:"h-11 rounded-md px-8",xl:"h-14 rounded-md px-10",icon:"h-10 w-10",smallIcon:"h-7 w-7"}},defaultVariants:{variant:"default",size:"default"}}),qe=je.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,isLoading:a,children:o,...i},l)=>{const u="button",c=t==="outline"||t==="ghost"||t==="neoBrutalism"?"bg-primary":"bg-primary-foreground";return s.jsx(u,{className:Ve(i1({variant:t,size:r,className:e})),ref:l,...i,children:a?s.jsx(us,{design:"dots-pulse",color:c,size:r==="sm"?"xs":"button"}):o})});qe.displayName="Button";const qn=({variant:e="normal",direction:t="ltr",severity:r="info",duration:n,icon:a,className:o,...i})=>{const l=h.useRef(null),[u,c]=h.useState(!1);h.useEffect(()=>{if(n){const x=setTimeout(()=>{c(!0)},n),C=setTimeout(()=>{c(!0),l.current.removeChild(l.current.children[0])},n+1e3);return()=>{clearTimeout(x),clearTimeout(C)}}},[n]);let m={none:"hover:bg-gray-300",info:"hover:bg-blue-300",warning:"hover:bg-yellow-300",error:"hover:bg-red-300",success:"hover:bg-green-300"},p={normal:{none:"text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"top-accent":{none:"border-t-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-t-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-t-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-t-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-t-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"left-accent":{none:"border-l-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-l-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-l-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-l-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-l-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"right-accent":{none:"border-r-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-r-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-r-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-r-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-r-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"bottom-accent":{none:"border-b-4 border-gray-300 text-gray-700 bg-gray-100 dark:bg-gray-200 dark:text-gray-800",info:"border-b-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-b-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-b-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-b-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"}};return s.jsx("div",{ref:l,children:s.jsxs("div",{className:$e("relative mb-4 flex flex-col rounded p-4 text-sm transition-all",p[e][r],u?"opacity-0":"opacity-100",o),role:"alert",dir:t,children:[s.jsxs("div",{className:"flex flex-row",children:[a&&s.jsx("div",{className:t==="rtl"?"pl-2 pt-1":"pr-2 pt-1",children:a}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx("span",{className:$e("font-medium",t==="rtl"?"ml-8":"mr-8"),children:i.title}),s.jsx("span",{children:i.text}),i.actions&&s.jsx("div",{className:"mt-2 flex flex-row gap-2",children:i.actions.map((x,C)=>s.jsx(qe,{variant:x.variant,onClick:x.onClick(),children:x.label},C))})]})]}),!i.persistant&&s.jsxs("button",{type:"button",className:$e("absolute top-2 inline-flex h-9 w-9 items-center justify-center rounded-inner p-1.5 text-gray-400 transition-all hover:text-gray-900",m[r],t==="rtl"?"left-2":"right-2"),"data-dismiss-target":"#alert-default","aria-label":"Close",onClick:()=>{c(!0),setTimeout(()=>{l.current.removeChild(l.current.children[0])},200)},children:[s.jsx("span",{className:"sr-only",children:"Close"}),s.jsx("svg",{"aria-label":"Close Icon","aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})]})]})})},Y9=(e,t)=>{const r=[],n=Math.ceil((e==null?void 0:e.length)/t);for(let a=1;a<=n;a++)r.push(a);return r},J9=(e,t,r)=>e==null?void 0:e.slice((t-1)*r,t*r),Q9=(e,t,r)=>t!==null?e==null?void 0:e.sort((n,a)=>{const o=n[t].value,i=a[t].value;return typeof o=="string"&&typeof i=="string"?r==="asc"?o.localeCompare(i):i.localeCompare(o):r==="asc"?o-i:i-o}):e,K9=(e,t,r,n,a)=>{const[o,i]=h.useState([]),[l,u]=h.useState([]);return h.useEffect(()=>{if(e){const c=Y9(e,r);i([...c]);const m=Q9(e,n,a),p=J9(m,t,r);u([...p])}},[e,i,t,r,n,a]),{slice:l,range:o}};function Gc(e){const t=e+"CollectionProvider",[r,n]=Dn(t),[a,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=C=>{const{scope:E,children:v}=C,A=h.useRef(null),S=h.useRef(new Map).current;return h.createElement(a,{scope:E,itemMap:S,collectionRef:A},v)},l=e+"CollectionSlot",u=h.forwardRef((C,E)=>{const{scope:v,children:A}=C,S=o(l,v),j=Kt(E,S.collectionRef);return h.createElement(Ko,{ref:j},A)}),c=e+"CollectionItemSlot",m="data-radix-collection-item",p=h.forwardRef((C,E)=>{const{scope:v,children:A,...S}=C,j=h.useRef(null),O=Kt(E,j),L=o(c,v);return h.useEffect(()=>(L.itemMap.set(j,{ref:j,...S}),()=>void L.itemMap.delete(j))),h.createElement(Ko,{[m]:"",ref:O},A)});function x(C){const E=o(e+"CollectionConsumer",C);return h.useCallback(()=>{const A=E.collectionRef.current;if(!A)return[];const S=Array.from(A.querySelectorAll(`[${m}]`));return Array.from(E.itemMap.values()).sort((L,M)=>S.indexOf(L.ref.current)-S.indexOf(M.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:i,Slot:u,ItemSlot:p},x,n]}const q9=h.createContext(void 0);function Zc(e){const t=h.useContext(q9);return e||t||"ltr"}function eD(e,t=globalThis==null?void 0:globalThis.document){const r=Ur(e);h.useEffect(()=>{const n=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const _h="dismissableLayer.update",tD="dismissableLayer.pointerDownOutside",rD="dismissableLayer.focusOutside";let s1;const l1=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zl=h.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:u,...c}=e,m=h.useContext(l1),[p,x]=h.useState(null),C=(r=p==null?void 0:p.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,E]=h.useState({}),v=Kt(t,oe=>x(oe)),A=Array.from(m.layers),[S]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),j=A.indexOf(S),O=p?A.indexOf(p):-1,L=m.layersWithOutsidePointerEventsDisabled.size>0,M=O>=j,z=aD(oe=>{const J=oe.target,ge=[...m.branches].some(xe=>xe.contains(J));!M||ge||(o==null||o(oe),l==null||l(oe),oe.defaultPrevented||u==null||u())},C),H=oD(oe=>{const J=oe.target;[...m.branches].some(xe=>xe.contains(J))||(i==null||i(oe),l==null||l(oe),oe.defaultPrevented||u==null||u())},C);return eD(oe=>{O===m.layers.size-1&&(a==null||a(oe),!oe.defaultPrevented&&u&&(oe.preventDefault(),u()))},C),h.useEffect(()=>{if(p)return n&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(s1=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(p)),m.layers.add(p),u1(),()=>{n&&m.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=s1)}},[p,C,n,m]),h.useEffect(()=>()=>{p&&(m.layers.delete(p),m.layersWithOutsidePointerEventsDisabled.delete(p),u1())},[p,m]),h.useEffect(()=>{const oe=()=>E({});return document.addEventListener(_h,oe),()=>document.removeEventListener(_h,oe)},[]),h.createElement(St.div,we({},c,{ref:v,style:{pointerEvents:L?M?"auto":"none":void 0,...e.style},onFocusCapture:at(e.onFocusCapture,H.onFocusCapture),onBlurCapture:at(e.onBlurCapture,H.onBlurCapture),onPointerDownCapture:at(e.onPointerDownCapture,z.onPointerDownCapture)}))}),nD=h.forwardRef((e,t)=>{const r=h.useContext(l1),n=h.useRef(null),a=Kt(t,n);return h.useEffect(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),h.createElement(St.div,we({},e,{ref:a}))});function aD(e,t=globalThis==null?void 0:globalThis.document){const r=Ur(e),n=h.useRef(!1),a=h.useRef(()=>{});return h.useEffect(()=>{const o=l=>{if(l.target&&!n.current){let c=function(){c1(tD,r,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=c,t.addEventListener("click",a.current,{once:!0})):c()}n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function oD(e,t=globalThis==null?void 0:globalThis.document){const r=Ur(e),n=h.useRef(!1);return h.useEffect(()=>{const a=o=>{o.target&&!n.current&&c1(rD,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function u1(){const e=new CustomEvent(_h);document.dispatchEvent(e)}function c1(e,t,r,{discrete:n}){const a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?Jf(a,o):a.dispatchEvent(o)}const iD=zl,sD=nD;let Wh=0;function Vh(){h.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:d1()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:d1()),Wh++,()=>{Wh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Wh--}},[])}function d1(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Hh="focusScope.autoFocusOnMount",zh="focusScope.autoFocusOnUnmount",f1={bubbles:!1,cancelable:!0},Gh=h.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[l,u]=h.useState(null),c=Ur(a),m=Ur(o),p=h.useRef(null),x=Kt(t,v=>u(v)),C=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(n){let v=function(O){if(C.paused||!l)return;const L=O.target;l.contains(L)?p.current=L:yo(p.current,{select:!0})},A=function(O){if(C.paused||!l)return;const L=O.relatedTarget;L!==null&&(l.contains(L)||yo(p.current,{select:!0}))},S=function(O){const L=document.activeElement;for(const M of O)M.removedNodes.length>0&&(l!=null&&l.contains(L)||yo(l))};document.addEventListener("focusin",v),document.addEventListener("focusout",A);const j=new MutationObserver(S);return l&&j.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",A),j.disconnect()}}},[n,l,C.paused]),h.useEffect(()=>{if(l){g1.add(C);const v=document.activeElement;if(!l.contains(v)){const S=new CustomEvent(Hh,f1);l.addEventListener(Hh,c),l.dispatchEvent(S),S.defaultPrevented||(lD(hD(h1(l)),{select:!0}),document.activeElement===v&&yo(l))}return()=>{l.removeEventListener(Hh,c),setTimeout(()=>{const S=new CustomEvent(zh,f1);l.addEventListener(zh,m),l.dispatchEvent(S),S.defaultPrevented||yo(v??document.body,{select:!0}),l.removeEventListener(zh,m),g1.remove(C)},0)}}},[l,c,m,C]);const E=h.useCallback(v=>{if(!r&&!n||C.paused)return;const A=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,S=document.activeElement;if(A&&S){const j=v.currentTarget,[O,L]=uD(j);O&&L?!v.shiftKey&&S===L?(v.preventDefault(),r&&yo(O,{select:!0})):v.shiftKey&&S===O&&(v.preventDefault(),r&&yo(L,{select:!0})):S===j&&v.preventDefault()}},[r,n,C.paused]);return h.createElement(St.div,we({tabIndex:-1},i,{ref:x,onKeyDown:E}))});function lD(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(yo(n,{select:t}),document.activeElement!==r)return}function uD(e){const t=h1(e),r=p1(t,e),n=p1(t.reverse(),e);return[r,n]}function h1(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function p1(e,t){for(const r of e)if(!cD(r,{upTo:t}))return r}function cD(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function dD(e){return e instanceof HTMLInputElement&&"select"in e}function yo(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&dD(e)&&t&&e.select()}}const g1=fD();function fD(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=m1(e,t),e.unshift(t)},remove(t){var r;e=m1(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function m1(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function hD(e){return e.filter(t=>t.tagName!=="A")}const pD=je["useId".toString()]||(()=>{});let gD=0;function Sn(e){const[t,r]=je.useState(pD());return xo(()=>{e||r(n=>n??String(gD++))},[e]),e||(t?`radix-${t}`:"")}const mD=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:a}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?rv({element:n.current,padding:a}).fn(r):{}:n?rv({element:n,padding:a}).fn(r):{}}}};var Uc=typeof document<"u"?h.useLayoutEffect:h.useEffect;function Xc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Xc(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){const o=a[n];if(!(o==="_owner"&&e.$$typeof)&&!Xc(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function v1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function b1(e,t){const r=v1(e);return Math.round(t*r)/r}function x1(e){const t=je.useRef(e);return Uc(()=>{t.current=e}),t}function vD(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:o,floating:i}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[m,p]=je.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[x,C]=je.useState(n);Xc(x,n)||C(n);const[E,v]=je.useState(null),[A,S]=je.useState(null),j=je.useCallback(ee=>{ee!=z.current&&(z.current=ee,v(ee))},[v]),O=je.useCallback(ee=>{ee!==H.current&&(H.current=ee,S(ee))},[S]),L=o||E,M=i||A,z=je.useRef(null),H=je.useRef(null),oe=je.useRef(m),J=x1(u),ge=x1(a),xe=je.useCallback(()=>{if(!z.current||!H.current)return;const ee={placement:t,strategy:r,middleware:x};ge.current&&(ee.platform=ge.current),f4(z.current,H.current,ee).then(de=>{const ne={...de,isPositioned:!0};Q.current&&!Xc(oe.current,ne)&&(oe.current=ne,xw.flushSync(()=>{p(ne)}))})},[x,t,r,ge]);Uc(()=>{c===!1&&oe.current.isPositioned&&(oe.current.isPositioned=!1,p(ee=>({...ee,isPositioned:!1})))},[c]);const Q=je.useRef(!1);Uc(()=>(Q.current=!0,()=>{Q.current=!1}),[]),Uc(()=>{if(L&&(z.current=L),M&&(H.current=M),L&&M){if(J.current)return J.current(L,M,xe);xe()}},[L,M,xe,J]);const ce=je.useMemo(()=>({reference:z,floating:H,setReference:j,setFloating:O}),[j,O]),N=je.useMemo(()=>({reference:L,floating:M}),[L,M]),W=je.useMemo(()=>{const ee={position:r,left:0,top:0};if(!N.floating)return ee;const de=b1(N.floating,m.x),ne=b1(N.floating,m.y);return l?{...ee,transform:"translate("+de+"px, "+ne+"px)",...v1(N.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:de,top:ne}},[r,l,N.floating,m.x,m.y]);return je.useMemo(()=>({...m,update:xe,refs:ce,elements:N,floatingStyles:W}),[m,xe,ce,N,W])}const bD=h.forwardRef((e,t)=>{const{children:r,width:n=10,height:a=5,...o}=e;return h.createElement(St.svg,we({},o,{ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:h.createElement("polygon",{points:"0,0 30,0 15,10"}))}),y1="Popper",[C1,cs]=Dn(y1),[xD,w1]=C1(y1),yD=e=>{const{__scopePopper:t,children:r}=e,[n,a]=h.useState(null);return h.createElement(xD,{scope:t,anchor:n,onAnchorChange:a},r)},CD="PopperAnchor",wD=h.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...a}=e,o=w1(CD,r),i=h.useRef(null),l=Kt(t,i);return h.useEffect(()=>{o.onAnchorChange((n==null?void 0:n.current)||i.current)}),n?null:h.createElement(St.div,we({},a,{ref:l}))}),E1="PopperContent",[ED,DD]=C1(E1),SD=h.forwardRef((e,t)=>{var r,n,a,o,i,l,u,c;const{__scopePopper:m,side:p="bottom",sideOffset:x=0,align:C="center",alignOffset:E=0,arrowPadding:v=0,collisionBoundary:A=[],collisionPadding:S=0,sticky:j="partial",hideWhenDetached:O=!1,avoidCollisions:L=!0,onPlaced:M,...z}=e,H=w1(E1,m),[oe,J]=h.useState(null),ge=Kt(t,nt=>J(nt)),[xe,Q]=h.useState(null),ce=r1(xe),N=(r=ce==null?void 0:ce.width)!==null&&r!==void 0?r:0,W=(n=ce==null?void 0:ce.height)!==null&&n!==void 0?n:0,ee=p+(C!=="center"?"-"+C:""),de=typeof S=="number"?S:{top:0,right:0,bottom:0,left:0,...S},ne=Array.isArray(A)?A:[A],te=ne.length>0,K={padding:de,boundary:ne.filter(ID),altBoundary:te},{refs:se,floatingStyles:fe,placement:Se,isPositioned:G,middlewareData:he}=vD({strategy:"fixed",placement:ee,whileElementsMounted:gv,elements:{reference:H.anchor},middleware:[G3({mainAxis:x+W,alignmentAxis:E}),L&&Z3({mainAxis:!0,crossAxis:!1,limiter:j==="partial"?U3():void 0,...K}),L&&V3({...K}),X3({...K,apply:({elements:nt,rects:vt,availableWidth:At,availableHeight:re})=>{const{width:be,height:Ie}=vt.reference,Ze=nt.floating.style;Ze.setProperty("--radix-popper-available-width",`${At}px`),Ze.setProperty("--radix-popper-available-height",`${re}px`),Ze.setProperty("--radix-popper-anchor-width",`${be}px`),Ze.setProperty("--radix-popper-anchor-height",`${Ie}px`)}}),xe&&mD({element:xe,padding:v}),TD({arrowWidth:N,arrowHeight:W}),O&&H3({strategy:"referenceHidden"})]}),[ae,me]=D1(Se),Me=Ur(M);xo(()=>{G&&(Me==null||Me())},[G,Me]);const Pe=(a=he.arrow)===null||a===void 0?void 0:a.x,We=(o=he.arrow)===null||o===void 0?void 0:o.y,Ke=((i=he.arrow)===null||i===void 0?void 0:i.centerOffset)!==0,[Ne,Qe]=h.useState();return xo(()=>{oe&&Qe(window.getComputedStyle(oe).zIndex)},[oe]),h.createElement("div",{ref:se.setFloating,"data-radix-popper-content-wrapper":"",style:{...fe,transform:G?fe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ne,"--radix-popper-transform-origin":[(l=he.transformOrigin)===null||l===void 0?void 0:l.x,(u=he.transformOrigin)===null||u===void 0?void 0:u.y].join(" ")},dir:e.dir},h.createElement(ED,{scope:m,placedSide:ae,onArrowChange:Q,arrowX:Pe,arrowY:We,shouldHideArrow:Ke},h.createElement(St.div,we({"data-side":ae,"data-align":me},z,{ref:ge,style:{...z.style,animation:G?void 0:"none",opacity:(c=he.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))}),AD="PopperArrow",FD={top:"bottom",right:"left",bottom:"top",left:"right"},jD=h.forwardRef(function(t,r){const{__scopePopper:n,...a}=t,o=DD(AD,n),i=FD[o.placedSide];return h.createElement("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},h.createElement(bD,we({},a,{ref:r,style:{...a.style,display:"block"}})))});function ID(e){return e!==null}const TD=e=>({name:"transformOrigin",options:e,fn(t){var r,n,a,o,i;const{placement:l,rects:u,middlewareData:c}=t,p=((r=c.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,x=p?0:e.arrowWidth,C=p?0:e.arrowHeight,[E,v]=D1(l),A={start:"0%",center:"50%",end:"100%"}[v],S=((n=(a=c.arrow)===null||a===void 0?void 0:a.x)!==null&&n!==void 0?n:0)+x/2,j=((o=(i=c.arrow)===null||i===void 0?void 0:i.y)!==null&&o!==void 0?o:0)+C/2;let O="",L="";return E==="bottom"?(O=p?A:`${S}px`,L=`${-C}px`):E==="top"?(O=p?A:`${S}px`,L=`${u.floating.height+C}px`):E==="right"?(O=`${-C}px`,L=p?A:`${j}px`):E==="left"&&(O=`${u.floating.width+C}px`,L=p?A:`${j}px`),{data:{x:O,y:L}}}});function D1(e){const[t,r="center"]=e.split("-");return[t,r]}const Yc=yD,Zh=wD,Uh=SD,kD=jD,Jc=h.forwardRef((e,t)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...a}=e;return n?Qo.createPortal(h.createElement(St.div,we({},a,{ref:t})),n):null});function BD(e,t){return h.useReducer((r,n)=>{const a=t[r][n];return a??r},e)}const sn=e=>{const{present:t,children:r}=e,n=PD(t),a=typeof r=="function"?r({present:n.isPresent}):h.Children.only(r),o=Kt(n.ref,a.ref);return typeof r=="function"||n.isPresent?h.cloneElement(a,{ref:o}):null};sn.displayName="Presence";function PD(e){const[t,r]=h.useState(),n=h.useRef({}),a=h.useRef(e),o=h.useRef("none"),i=e?"mounted":"unmounted",[l,u]=BD(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const c=Qc(n.current);o.current=l==="mounted"?c:"none"},[l]),xo(()=>{const c=n.current,m=a.current;if(m!==e){const x=o.current,C=Qc(c);e?u("MOUNT"):C==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(m&&x!==C?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,u]),xo(()=>{if(t){const c=p=>{const C=Qc(n.current).includes(p.animationName);p.target===t&&C&&Qo.flushSync(()=>u("ANIMATION_END"))},m=p=>{p.target===t&&(o.current=Qc(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function Qc(e){return(e==null?void 0:e.animationName)||"none"}const Xh="rovingFocusGroup.onEntryFocus",OD={bubbles:!1,cancelable:!0},Yh="RovingFocusGroup",[Jh,S1,ND]=Gc(Yh),[MD,Kc]=Dn(Yh,[ND]),[RD,$D]=MD(Yh),LD=h.forwardRef((e,t)=>h.createElement(Jh.Provider,{scope:e.__scopeRovingFocusGroup},h.createElement(Jh.Slot,{scope:e.__scopeRovingFocusGroup},h.createElement(_D,we({},e,{ref:t}))))),_D=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:a=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,...m}=e,p=h.useRef(null),x=Kt(t,p),C=Zc(o),[E=null,v]=Rn({prop:i,defaultProp:l,onChange:u}),[A,S]=h.useState(!1),j=Ur(c),O=S1(r),L=h.useRef(!1),[M,z]=h.useState(0);return h.useEffect(()=>{const H=p.current;if(H)return H.addEventListener(Xh,j),()=>H.removeEventListener(Xh,j)},[j]),h.createElement(RD,{scope:r,orientation:n,dir:C,loop:a,currentTabStopId:E,onItemFocus:h.useCallback(H=>v(H),[v]),onItemShiftTab:h.useCallback(()=>S(!0),[]),onFocusableItemAdd:h.useCallback(()=>z(H=>H+1),[]),onFocusableItemRemove:h.useCallback(()=>z(H=>H-1),[])},h.createElement(St.div,we({tabIndex:A||M===0?-1:0,"data-orientation":n},m,{ref:x,style:{outline:"none",...e.style},onMouseDown:at(e.onMouseDown,()=>{L.current=!0}),onFocus:at(e.onFocus,H=>{const oe=!L.current;if(H.target===H.currentTarget&&oe&&!A){const J=new CustomEvent(Xh,OD);if(H.currentTarget.dispatchEvent(J),!J.defaultPrevented){const ge=O().filter(W=>W.focusable),xe=ge.find(W=>W.active),Q=ge.find(W=>W.id===E),N=[xe,Q,...ge].filter(Boolean).map(W=>W.ref.current);A1(N)}}L.current=!1}),onBlur:at(e.onBlur,()=>S(!1))})))}),WD="RovingFocusGroupItem",VD=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:a=!1,tabStopId:o,...i}=e,l=Sn(),u=o||l,c=$D(WD,r),m=c.currentTabStopId===u,p=S1(r),{onFocusableItemAdd:x,onFocusableItemRemove:C}=c;return h.useEffect(()=>{if(n)return x(),()=>C()},[n,x,C]),h.createElement(Jh.ItemSlot,{scope:r,id:u,focusable:n,active:a},h.createElement(St.span,we({tabIndex:m?0:-1,"data-orientation":c.orientation},i,{ref:t,onMouseDown:at(e.onMouseDown,E=>{n?c.onItemFocus(u):E.preventDefault()}),onFocus:at(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:at(e.onKeyDown,E=>{if(E.key==="Tab"&&E.shiftKey){c.onItemShiftTab();return}if(E.target!==E.currentTarget)return;const v=GD(E,c.orientation,c.dir);if(v!==void 0){E.preventDefault();let S=p().filter(j=>j.focusable).map(j=>j.ref.current);if(v==="last")S.reverse();else if(v==="prev"||v==="next"){v==="prev"&&S.reverse();const j=S.indexOf(E.currentTarget);S=c.loop?ZD(S,j+1):S.slice(j+1)}setTimeout(()=>A1(S))}})})))}),HD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function zD(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function GD(e,t,r){const n=zD(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return HD[n]}function A1(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function ZD(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const F1=LD,j1=VD;var UD=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ds=new WeakMap,qc=new WeakMap,ed={},Qh=0,I1=function(e){return e&&(e.host||I1(e.parentNode))},XD=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=I1(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},YD=function(e,t,r,n){var a=XD(t,Array.isArray(e)?e:[e]);ed[r]||(ed[r]=new WeakMap);var o=ed[r],i=[],l=new Set,u=new Set(a),c=function(p){!p||l.has(p)||(l.add(p),c(p.parentNode))};a.forEach(c);var m=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(x){if(l.has(x))m(x);else{var C=x.getAttribute(n),E=C!==null&&C!=="false",v=(ds.get(x)||0)+1,A=(o.get(x)||0)+1;ds.set(x,v),o.set(x,A),i.push(x),v===1&&E&&qc.set(x,!0),A===1&&x.setAttribute(r,"true"),E||x.setAttribute(n,"true")}})};return m(t),l.clear(),Qh++,function(){i.forEach(function(p){var x=ds.get(p)-1,C=o.get(p)-1;ds.set(p,x),o.set(p,C),x||(qc.has(p)||p.removeAttribute(n),qc.delete(p)),C||p.removeAttribute(r)}),Qh--,Qh||(ds=new WeakMap,ds=new WeakMap,qc=new WeakMap,ed={})}},Kh=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||UD(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),YD(n,a,r,"aria-hidden")):function(){return null}},ya=function(){return ya=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ya.apply(this,arguments)};function T1(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function fs(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function l(m){try{c(n.next(m))}catch(p){i(p)}}function u(m){try{c(n.throw(m))}catch(p){i(p)}}function c(m){m.done?o(m.value):a(m.value).then(l,u)}c((n=n.apply(e,t||[])).next())})}function hs(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(c){return function(m){return u([c,m])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(r=0)),r;)try{if(n=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,a=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(m){c=[6,m],a=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function JD(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,o=[],i;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return o}function QD(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(JD(arguments[t]));return e}function KD(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var td="right-scroll-bar-position",rd="width-before-scroll-bar",qD="with-scroll-bars-hidden",eS="--removed-body-scroll-bar-size";function tS(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function rS(e,t){var r=h.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}function nS(e,t){return rS(t||null,function(r){return e.forEach(function(n){return tS(n,r)})})}function aS(e){return e}function oS(e,t){t===void 0&&(t=aS);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var i=t(o,n);return r.push(i),function(){r=r.filter(function(l){return l!==i})}},assignSyncMedium:function(o){for(n=!0;r.length;){var i=r;r=[],i.forEach(o)}r={push:function(l){return o(l)},filter:function(){return r}}},assignMedium:function(o){n=!0;var i=[];if(r.length){var l=r;r=[],l.forEach(o),i=r}var u=function(){var m=i;i=[],m.forEach(o)},c=function(){return Promise.resolve().then(u)};c(),r={push:function(m){i.push(m),c()},filter:function(m){return i=i.filter(m),r}}}};return a}function iS(e){e===void 0&&(e={});var t=oS(null);return t.options=ya({async:!0,ssr:!1},e),t}var k1=function(e){var t=e.sideCar,r=T1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return je.createElement(n,ya({},r))};k1.isSideCarExport=!0;function sS(e,t){return e.useMedium(t),k1}var B1=iS(),qh=function(){},nd=je.forwardRef(function(e,t){var r=je.useRef(null),n=je.useState({onScrollCapture:qh,onWheelCapture:qh,onTouchMoveCapture:qh}),a=n[0],o=n[1],i=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,m=e.enabled,p=e.shards,x=e.sideCar,C=e.noIsolation,E=e.inert,v=e.allowPinchZoom,A=e.as,S=A===void 0?"div":A,j=T1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),O=x,L=nS([r,t]),M=ya(ya({},j),a);return je.createElement(je.Fragment,null,m&&je.createElement(O,{sideCar:B1,removeScrollBar:c,shards:p,noIsolation:C,inert:E,setCallbacks:o,allowPinchZoom:!!v,lockRef:r}),i?je.cloneElement(je.Children.only(l),ya(ya({},M),{ref:L})):je.createElement(S,ya({},M,{className:u,ref:L}),l))});nd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},nd.classNames={fullWidth:rd,zeroRight:td};var P1,lS=function(){if(P1)return P1;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function uS(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=lS();return t&&e.setAttribute("nonce",t),e}function cS(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function dS(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var fS=function(){var e=0,t=null;return{add:function(r){e==0&&(t=uS())&&(cS(t,r),dS(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},hS=function(){var e=fS();return function(t,r){je.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},O1=function(){var e=hS(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},pS={left:0,top:0,right:0,gap:0},ep=function(e){return parseInt(e||"",10)||0},gS=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[ep(r),ep(n),ep(a)]},mS=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return pS;var t=gS(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},vS=O1(),bS=function(e,t,r,n){var a=e.left,o=e.top,i=e.right,l=e.gap;return r===void 0&&(r="margin"),`
58
58
  .`.concat(qD,` {
59
59
  overflow: hidden `).concat(n,`;
60
60
  padding-right: `).concat(l,"px ").concat(n,`;
@@ -94,7 +94,7 @@ You should wrap it with \`css\` like this:
94
94
  `)},xS=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n,o=je.useMemo(function(){return mS(a)},[a]);return je.createElement(vS,{styles:bS(o,!t,a,r?"":"!important")})},tp=!1;if(typeof window<"u")try{var ad=Object.defineProperty({},"passive",{get:function(){return tp=!0,!0}});window.addEventListener("test",ad,ad),window.removeEventListener("test",ad,ad)}catch{tp=!1}var ps=tp?{passive:!1}:!1,yS=function(e){return e.tagName==="TEXTAREA"},N1=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!yS(e)&&r[t]==="visible")},CS=function(e){return N1(e,"overflowY")},wS=function(e){return N1(e,"overflowX")},M1=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=R1(e,r);if(n){var a=$1(e,r),o=a[1],i=a[2];if(o>i)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},ES=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},DS=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},R1=function(e,t){return e==="v"?CS(t):wS(t)},$1=function(e,t){return e==="v"?ES(t):DS(t)},SS=function(e,t){return e==="h"&&t==="rtl"?-1:1},AS=function(e,t,r,n,a){var o=SS(e,window.getComputedStyle(t).direction),i=o*n,l=r.target,u=t.contains(l),c=!1,m=i>0,p=0,x=0;do{var C=$1(e,l),E=C[0],v=C[1],A=C[2],S=v-A-o*E;(E||S)&&R1(e,l)&&(p+=S,x+=E),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(m&&(a&&p===0||!a&&i>p)||!m&&(a&&x===0||!a&&-i>x))&&(c=!0),c},od=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},L1=function(e){return[e.deltaX,e.deltaY]},_1=function(e){return e&&"current"in e?e.current:e},FS=function(e,t){return e[0]===t[0]&&e[1]===t[1]},jS=function(e){return`
95
95
  .block-interactivity-`.concat(e,` {pointer-events: none;}
96
96
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
97
- `)},IS=0,gs=[];function TS(e){var t=je.useRef([]),r=je.useRef([0,0]),n=je.useRef(),a=je.useState(IS++)[0],o=je.useState(function(){return O1()})[0],i=je.useRef(e);je.useEffect(function(){i.current=e},[e]),je.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var v=KD([e.lockRef.current],(e.shards||[]).map(_1),!0).filter(Boolean);return v.forEach(function(A){return A.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),v.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=je.useCallback(function(v,A){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var S=od(v),j=r.current,O="deltaX"in v?v.deltaX:j[0]-S[0],L="deltaY"in v?v.deltaY:j[1]-S[1],M,z=v.target,H=Math.abs(O)>Math.abs(L)?"h":"v";if("touches"in v&&H==="h"&&z.type==="range")return!1;var oe=M1(H,z);if(!oe)return!0;if(oe?M=H:(M=H==="v"?"h":"v",oe=M1(H,z)),!oe)return!1;if(!n.current&&"changedTouches"in v&&(O||L)&&(n.current=M),!M)return!0;var J=n.current||M;return AS(J,A,v,J==="h"?O:L,!0)},[]),u=je.useCallback(function(v){var A=v;if(!(!gs.length||gs[gs.length-1]!==o)){var S="deltaY"in A?L1(A):od(A),j=t.current.filter(function(M){return M.name===A.type&&M.target===A.target&&FS(M.delta,S)})[0];if(j&&j.should){A.cancelable&&A.preventDefault();return}if(!j){var O=(i.current.shards||[]).map(_1).filter(Boolean).filter(function(M){return M.contains(A.target)}),L=O.length>0?l(A,O[0]):!i.current.noIsolation;L&&A.cancelable&&A.preventDefault()}}},[]),c=je.useCallback(function(v,A,S,j){var O={name:v,delta:A,target:S,should:j};t.current.push(O),setTimeout(function(){t.current=t.current.filter(function(L){return L!==O})},1)},[]),m=je.useCallback(function(v){r.current=od(v),n.current=void 0},[]),p=je.useCallback(function(v){c(v.type,L1(v),v.target,l(v,e.lockRef.current))},[]),x=je.useCallback(function(v){c(v.type,od(v),v.target,l(v,e.lockRef.current))},[]);je.useEffect(function(){return gs.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:x}),document.addEventListener("wheel",u,ps),document.addEventListener("touchmove",u,ps),document.addEventListener("touchstart",m,ps),function(){gs=gs.filter(function(v){return v!==o}),document.removeEventListener("wheel",u,ps),document.removeEventListener("touchmove",u,ps),document.removeEventListener("touchstart",m,ps)}},[]);var C=e.removeScrollBar,E=e.inert;return je.createElement(je.Fragment,null,E?je.createElement(o,{styles:jS(a)}):null,C?je.createElement(xS,{gapMode:"margin"}):null)}const kS=sS(B1,TS);var W1=je.forwardRef(function(e,t){return je.createElement(nd,ya({},e,{ref:t,sideCar:kS}))});W1.classNames=nd.classNames;const rp=W1,np=["Enter"," "],BS=["ArrowDown","PageUp","Home"],V1=["ArrowUp","PageDown","End"],PS=[...BS,...V1],OS={ltr:[...np,"ArrowRight"],rtl:[...np,"ArrowLeft"]},NS={ltr:["ArrowLeft"],rtl:["ArrowRight"]},id="Menu",[Gl,MS,RS]=Gc(id),[oi,H1]=Dn(id,[RS,cs,Kc]),sd=cs(),z1=Kc(),[G1,Co]=oi(id),[$S,Zl]=oi(id),LS=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:a,onOpenChange:o,modal:i=!0}=e,l=sd(t),[u,c]=h.useState(null),m=h.useRef(!1),p=Ur(o),x=Zc(a);return h.useEffect(()=>{const C=()=>{m.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>m.current=!1;return document.addEventListener("keydown",C,{capture:!0}),()=>{document.removeEventListener("keydown",C,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),h.createElement(Yc,l,h.createElement(G1,{scope:t,open:r,onOpenChange:p,content:u,onContentChange:c},h.createElement($S,{scope:t,onClose:h.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:m,dir:x,modal:i},n)))},Z1=h.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,a=sd(r);return h.createElement(Zh,we({},a,n,{ref:t}))}),U1="MenuPortal",[_S,X1]=oi(U1,{forceMount:void 0}),WS=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:a}=e,o=Co(U1,t);return h.createElement(_S,{scope:t,forceMount:r},h.createElement(sn,{present:r||o.open},h.createElement(Jc,{asChild:!0,container:a},n)))},ea="MenuContent",[VS,ap]=oi(ea),HS=h.forwardRef((e,t)=>{const r=X1(ea,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,o=Co(ea,e.__scopeMenu),i=Zl(ea,e.__scopeMenu);return h.createElement(Gl.Provider,{scope:e.__scopeMenu},h.createElement(sn,{present:n||o.open},h.createElement(Gl.Slot,{scope:e.__scopeMenu},i.modal?h.createElement(zS,we({},a,{ref:t})):h.createElement(GS,we({},a,{ref:t})))))}),zS=h.forwardRef((e,t)=>{const r=Co(ea,e.__scopeMenu),n=h.useRef(null),a=Kt(t,n);return h.useEffect(()=>{const o=n.current;if(o)return Kh(o)},[]),h.createElement(op,we({},e,{ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:at(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)}))}),GS=h.forwardRef((e,t)=>{const r=Co(ea,e.__scopeMenu);return h.createElement(op,we({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)}))}),op=h.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:c,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:x,onDismiss:C,disableOutsideScroll:E,...v}=e,A=Co(ea,r),S=Zl(ea,r),j=sd(r),O=z1(r),L=MS(r),[M,z]=h.useState(null),H=h.useRef(null),oe=Kt(t,H,A.onContentChange),J=h.useRef(0),ge=h.useRef(""),xe=h.useRef(0),Q=h.useRef(null),ce=h.useRef("right"),N=h.useRef(0),W=E?rp:h.Fragment,ee=E?{as:Ko,allowPinchZoom:!0}:void 0,de=te=>{var K,se;const fe=ge.current+te,Se=L().filter(Pe=>!Pe.disabled),G=document.activeElement,he=(K=Se.find(Pe=>Pe.ref.current===G))===null||K===void 0?void 0:K.textValue,ae=Se.map(Pe=>Pe.textValue),me=lA(ae,fe,he),Me=(se=Se.find(Pe=>Pe.textValue===me))===null||se===void 0?void 0:se.ref.current;(function Pe(We){ge.current=We,window.clearTimeout(J.current),We!==""&&(J.current=window.setTimeout(()=>Pe(""),1e3))})(fe),Me&&setTimeout(()=>Me.focus())};h.useEffect(()=>()=>window.clearTimeout(J.current),[]),Vh();const ne=h.useCallback(te=>{var K,se;return ce.current===((K=Q.current)===null||K===void 0?void 0:K.side)&&cA(te,(se=Q.current)===null||se===void 0?void 0:se.area)},[]);return h.createElement(VS,{scope:r,searchRef:ge,onItemEnter:h.useCallback(te=>{ne(te)&&te.preventDefault()},[ne]),onItemLeave:h.useCallback(te=>{var K;ne(te)||((K=H.current)===null||K===void 0||K.focus(),z(null))},[ne]),onTriggerLeave:h.useCallback(te=>{ne(te)&&te.preventDefault()},[ne]),pointerGraceTimerRef:xe,onPointerGraceIntentChange:h.useCallback(te=>{Q.current=te},[])},h.createElement(W,ee,h.createElement(Gh,{asChild:!0,trapped:a,onMountAutoFocus:at(o,te=>{var K;te.preventDefault(),(K=H.current)===null||K===void 0||K.focus()}),onUnmountAutoFocus:i},h.createElement(zl,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:x,onDismiss:C},h.createElement(F1,we({asChild:!0},O,{dir:S.dir,orientation:"vertical",loop:n,currentTabStopId:M,onCurrentTabStopIdChange:z,onEntryFocus:at(u,te=>{S.isUsingKeyboardRef.current||te.preventDefault()})}),h.createElement(Uh,we({role:"menu","aria-orientation":"vertical","data-state":tb(A.open),"data-radix-menu-content":"",dir:S.dir},j,v,{ref:oe,style:{outline:"none",...v.style},onKeyDown:at(v.onKeyDown,te=>{const se=te.target.closest("[data-radix-menu-content]")===te.currentTarget,fe=te.ctrlKey||te.altKey||te.metaKey,Se=te.key.length===1;se&&(te.key==="Tab"&&te.preventDefault(),!fe&&Se&&de(te.key));const G=H.current;if(te.target!==G||!PS.includes(te.key))return;te.preventDefault();const ae=L().filter(me=>!me.disabled).map(me=>me.ref.current);V1.includes(te.key)&&ae.reverse(),iA(ae)}),onBlur:at(e.onBlur,te=>{te.currentTarget.contains(te.target)||(window.clearTimeout(J.current),ge.current="")}),onPointerMove:at(e.onPointerMove,Ul(te=>{const K=te.target,se=N.current!==te.clientX;if(te.currentTarget.contains(K)&&se){const fe=te.clientX>N.current?"right":"left";ce.current=fe,N.current=te.clientX}}))})))))))}),ZS=h.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return h.createElement(St.div,we({},n,{ref:t}))}),ip="MenuItem",Y1="menu.itemSelect",sp=h.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...a}=e,o=h.useRef(null),i=Zl(ip,e.__scopeMenu),l=ap(ip,e.__scopeMenu),u=Kt(t,o),c=h.useRef(!1),m=()=>{const p=o.current;if(!r&&p){const x=new CustomEvent(Y1,{bubbles:!0,cancelable:!0});p.addEventListener(Y1,C=>n==null?void 0:n(C),{once:!0}),Jf(p,x),x.defaultPrevented?c.current=!1:i.onClose()}};return h.createElement(J1,we({},a,{ref:u,disabled:r,onClick:at(e.onClick,m),onPointerDown:p=>{var x;(x=e.onPointerDown)===null||x===void 0||x.call(e,p),c.current=!0},onPointerUp:at(e.onPointerUp,p=>{var x;c.current||(x=p.currentTarget)===null||x===void 0||x.click()}),onKeyDown:at(e.onKeyDown,p=>{const x=l.searchRef.current!=="";r||x&&p.key===" "||np.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})}))}),J1=h.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:a,...o}=e,i=ap(ip,r),l=z1(r),u=h.useRef(null),c=Kt(t,u),[m,p]=h.useState(!1),[x,C]=h.useState("");return h.useEffect(()=>{const E=u.current;if(E){var v;C(((v=E.textContent)!==null&&v!==void 0?v:"").trim())}},[o.children]),h.createElement(Gl.ItemSlot,{scope:r,disabled:n,textValue:a??x},h.createElement(j1,we({asChild:!0},l,{focusable:!n}),h.createElement(St.div,we({role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},o,{ref:c,onPointerMove:at(e.onPointerMove,Ul(E=>{n?i.onItemLeave(E):(i.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus())})),onPointerLeave:at(e.onPointerLeave,Ul(E=>i.onItemLeave(E))),onFocus:at(e.onFocus,()=>p(!0)),onBlur:at(e.onBlur,()=>p(!1))}))))}),US=h.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...a}=e;return h.createElement(K1,{scope:e.__scopeMenu,checked:r},h.createElement(sp,we({role:"menuitemcheckbox","aria-checked":ud(r)?"mixed":r},a,{ref:t,"data-state":lp(r),onSelect:at(a.onSelect,()=>n==null?void 0:n(ud(r)?!0:!r),{checkForDefaultPrevented:!1})})))}),XS="MenuRadioGroup",[DN,YS]=oi(XS,{value:void 0,onValueChange:()=>{}}),JS="MenuRadioItem",QS=h.forwardRef((e,t)=>{const{value:r,...n}=e,a=YS(JS,e.__scopeMenu),o=r===a.value;return h.createElement(K1,{scope:e.__scopeMenu,checked:o},h.createElement(sp,we({role:"menuitemradio","aria-checked":o},n,{ref:t,"data-state":lp(o),onSelect:at(n.onSelect,()=>{var i;return(i=a.onValueChange)===null||i===void 0?void 0:i.call(a,r)},{checkForDefaultPrevented:!1})})))}),Q1="MenuItemIndicator",[K1,KS]=oi(Q1,{checked:!1}),qS=h.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...a}=e,o=KS(Q1,r);return h.createElement(sn,{present:n||ud(o.checked)||o.checked===!0},h.createElement(St.span,we({},a,{ref:t,"data-state":lp(o.checked)})))}),eA=h.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return h.createElement(St.div,we({role:"separator","aria-orientation":"horizontal"},n,{ref:t}))}),q1="MenuSub",[tA,eb]=oi(q1),rA=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:a}=e,o=Co(q1,t),i=sd(t),[l,u]=h.useState(null),[c,m]=h.useState(null),p=Ur(a);return h.useEffect(()=>(o.open===!1&&p(!1),()=>p(!1)),[o.open,p]),h.createElement(Yc,i,h.createElement(G1,{scope:t,open:n,onOpenChange:p,content:c,onContentChange:m},h.createElement(tA,{scope:t,contentId:Sn(),triggerId:Sn(),trigger:l,onTriggerChange:u},r)))},ld="MenuSubTrigger",nA=h.forwardRef((e,t)=>{const r=Co(ld,e.__scopeMenu),n=Zl(ld,e.__scopeMenu),a=eb(ld,e.__scopeMenu),o=ap(ld,e.__scopeMenu),i=h.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=o,c={__scopeMenu:e.__scopeMenu},m=h.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return h.useEffect(()=>m,[m]),h.useEffect(()=>{const p=l.current;return()=>{window.clearTimeout(p),u(null)}},[l,u]),h.createElement(Z1,we({asChild:!0},c),h.createElement(J1,we({id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":tb(r.open)},e,{ref:xc(t,a.onTriggerChange),onClick:p=>{var x;(x=e.onClick)===null||x===void 0||x.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:at(e.onPointerMove,Ul(p=>{o.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!r.open&&!i.current&&(o.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),m()},100))})),onPointerLeave:at(e.onPointerLeave,Ul(p=>{var x;m();const C=(x=r.content)===null||x===void 0?void 0:x.getBoundingClientRect();if(C){var E;const v=(E=r.content)===null||E===void 0?void 0:E.dataset.side,A=v==="right",S=A?-5:5,j=C[A?"left":"right"],O=C[A?"right":"left"];o.onPointerGraceIntentChange({area:[{x:p.clientX+S,y:p.clientY},{x:j,y:C.top},{x:O,y:C.top},{x:O,y:C.bottom},{x:j,y:C.bottom}],side:v}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(p),p.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:at(e.onKeyDown,p=>{const x=o.searchRef.current!=="";if(!(e.disabled||x&&p.key===" ")&&OS[n.dir].includes(p.key)){var C;r.onOpenChange(!0),(C=r.content)===null||C===void 0||C.focus(),p.preventDefault()}})})))}),aA="MenuSubContent",oA=h.forwardRef((e,t)=>{const r=X1(ea,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,o=Co(ea,e.__scopeMenu),i=Zl(ea,e.__scopeMenu),l=eb(aA,e.__scopeMenu),u=h.useRef(null),c=Kt(t,u);return h.createElement(Gl.Provider,{scope:e.__scopeMenu},h.createElement(sn,{present:n||o.open},h.createElement(Gl.Slot,{scope:e.__scopeMenu},h.createElement(op,we({id:l.contentId,"aria-labelledby":l.triggerId},a,{ref:c,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{var p;i.isUsingKeyboardRef.current&&((p=u.current)===null||p===void 0||p.focus()),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:at(e.onFocusOutside,m=>{m.target!==l.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:at(e.onEscapeKeyDown,m=>{i.onClose(),m.preventDefault()}),onKeyDown:at(e.onKeyDown,m=>{const p=m.currentTarget.contains(m.target),x=NS[i.dir].includes(m.key);if(p&&x){var C;o.onOpenChange(!1),(C=l.trigger)===null||C===void 0||C.focus(),m.preventDefault()}})})))))});function tb(e){return e?"open":"closed"}function ud(e){return e==="indeterminate"}function lp(e){return ud(e)?"indeterminate":e?"checked":"unchecked"}function iA(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function sA(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function lA(e,t,r){const a=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let i=sA(e,Math.max(o,0));a.length===1&&(i=i.filter(c=>c!==r));const u=i.find(c=>c.toLowerCase().startsWith(a.toLowerCase()));return u!==r?u:void 0}function uA(e,t){const{x:r,y:n}=e;let a=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const l=t[o].x,u=t[o].y,c=t[i].x,m=t[i].y;u>n!=m>n&&r<(c-l)*(n-u)/(m-u)+l&&(a=!a)}return a}function cA(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return uA(r,t)}function Ul(e){return t=>t.pointerType==="mouse"?e(t):void 0}const dA=LS,fA=Z1,hA=WS,pA=HS,gA=ZS,mA=sp,vA=US,bA=QS,xA=qS,yA=eA,CA=rA,wA=nA,EA=oA,rb="DropdownMenu",[DA,SN]=Dn(rb,[H1]),An=H1(),[SA,nb]=DA(rb),AA=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:a,defaultOpen:o,onOpenChange:i,modal:l=!0}=e,u=An(t),c=h.useRef(null),[m=!1,p]=Rn({prop:a,defaultProp:o,onChange:i});return h.createElement(SA,{scope:t,triggerId:Sn(),triggerRef:c,contentId:Sn(),open:m,onOpenChange:p,onOpenToggle:h.useCallback(()=>p(x=>!x),[p]),modal:l},h.createElement(dA,we({},u,{open:m,onOpenChange:p,dir:n,modal:l}),r))},FA="DropdownMenuTrigger",jA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...a}=e,o=nb(FA,r),i=An(r);return h.createElement(fA,we({asChild:!0},i),h.createElement(St.button,we({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":n?"":void 0,disabled:n},a,{ref:xc(t,o.triggerRef),onPointerDown:at(e.onPointerDown,l=>{!n&&l.button===0&&l.ctrlKey===!1&&(o.onOpenToggle(),o.open||l.preventDefault())}),onKeyDown:at(e.onKeyDown,l=>{n||(["Enter"," "].includes(l.key)&&o.onOpenToggle(),l.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})))}),IA=e=>{const{__scopeDropdownMenu:t,...r}=e,n=An(t);return h.createElement(hA,we({},n,r))},TA="DropdownMenuContent",kA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=nb(TA,r),o=An(r),i=h.useRef(!1);return h.createElement(pA,we({id:a.contentId,"aria-labelledby":a.triggerId},o,n,{ref:t,onCloseAutoFocus:at(e.onCloseAutoFocus,l=>{var u;i.current||(u=a.triggerRef.current)===null||u===void 0||u.focus(),i.current=!1,l.preventDefault()}),onInteractOutside:at(e.onInteractOutside,l=>{const u=l.detail.originalEvent,c=u.button===0&&u.ctrlKey===!0,m=u.button===2||c;(!a.modal||m)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),BA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(gA,we({},a,n,{ref:t}))}),PA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(mA,we({},a,n,{ref:t}))}),OA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(vA,we({},a,n,{ref:t}))}),NA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(bA,we({},a,n,{ref:t}))}),MA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(xA,we({},a,n,{ref:t}))}),RA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(yA,we({},a,n,{ref:t}))}),$A=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:a,defaultOpen:o}=e,i=An(t),[l=!1,u]=Rn({prop:n,defaultProp:o,onChange:a});return h.createElement(CA,we({},i,{open:l,onOpenChange:u}),r)},LA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(wA,we({},a,n,{ref:t}))}),_A=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(EA,we({},a,n,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),WA=AA,VA=jA,ab=IA,ob=kA,ib=BA,sb=PA,lb=OA,ub=NA,cb=MA,db=RA,HA=$A,fb=LA,hb=_A,zA=WA,GA=VA,pb=ab,ZA=HA,gb=je.forwardRef(({className:e,inset:t,children:r,...n},a)=>s.jsxs(fb,{ref:a,className:Ve("flex cursor-default select-none items-center justify-between rounded-sm px-2 py-3 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...n,children:[s.jsx("div",{className:"flex flex-row items-center gap-2",children:r})," ",s.jsx("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",className:Ve(n.dir==="rtl"?"rotate-180":""),children:s.jsx("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"})})]}));gb.displayName=fb.displayName;const mb=je.forwardRef(({className:e,...t},r)=>s.jsx(hb,{ref:r,className:Ve("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));mb.displayName=hb.displayName;const vb=je.forwardRef(({className:e,sideOffset:t=4,...r},n)=>s.jsx(ab,{children:s.jsx(ob,{ref:n,sideOffset:t,className:Ve("z-50 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));vb.displayName=ob.displayName;const up=je.forwardRef(({className:e,inset:t,...r},n)=>s.jsxs(sb,{disabled:r.disabled,ref:n,className:Ve("relative flex cursor-pointer select-none items-center justify-between rounded-sm text-sm outline-none transition-colors focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r,children:[s.jsx("div",{className:"flex flex-row items-center gap-2 ",children:r.children}),r.end&&r.end]}));up.displayName=sb.displayName;const UA=je.forwardRef(({className:e,children:t,checked:r,...n},a)=>s.jsxs(lb,{ref:a,className:Ve("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...n,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsxs(cb,{children:[s.jsx("svg",{"aria-label":"Check Mark",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"0.60em",width:"0.60em",children:s.jsx("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"})})," "]})}),t]}));UA.displayName=lb.displayName;const XA=je.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(ub,{ref:n,className:Ve("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(cb,{children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24","aria-label":"Circle",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-2 w-2 fill-current",children:s.jsx("circle",{cx:"12",cy:"12",r:"10"})})})}),t]}));XA.displayName=ub.displayName;const bb=je.forwardRef(({className:e,inset:t,...r},n)=>s.jsx(ib,{ref:n,className:Ve("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));bb.displayName=ib.displayName;const xb=je.forwardRef(({className:e,...t},r)=>s.jsx(db,{ref:r,className:Ve("-mx-1 my-1 h-px bg-muted",e),...t}));xb.displayName=db.displayName;const Xl=({trigger:e,items:t,direction:r,onItemSelect:n,sideOffset:a,side:o,className:i,triggerClassname:l,align:u,alignOffset:c,selectCallback:m,size:p="default",width:x="default"})=>{const C={default:"min-w-[8rem]",sm:"w-fit",lg:"w-[200px]",parent:"ddm-w-parent"},E={default:"px-2 py-3 ",sm:"text-xs px-1.5 py-1.5"};return s.jsxs(zA,{dir:r,children:[s.jsx(GA,{asChild:!0,className:l,children:e}),s.jsx(pb,{children:s.jsx(vb,{side:o,sideOffset:a,className:Ve(i,C[x],"flex flex-col gap-2"),align:u,alignOffset:c,children:t.map((v,A)=>v.type==="separator"?s.jsx(xb,{},A):v.type==="label"?s.jsx(bb,{children:v.label},A):v.subitems?s.jsxs(ZA,{children:[s.jsxs(gb,{className:Ve(E[p]),dir:r,children:[v.icon&&v.icon,v.label&&v.label]}),s.jsx(pb,{children:s.jsx(mb,{children:v.subitems.map((S,j)=>s.jsxs(up,{className:Ve(E[p],!v.icon&&!v.label?"px-0 py-0 focus:bg-transparent":"focus:bg-accent"),disabled:S.disabled,onSelect:()=>{S.action(),m&&m(S.value)},children:[S.icon&&S.icon,S.label&&S.label]},j))})})]},A):s.jsxs(up,{disabled:v.disabled,onSelect:S=>{v.presist&&S.preventDefault(),v.action&&v.action(),m&&m(v.value)},end:v.end,className:Ve(E[p],!v.icon&&!v.label?"px-0 py-0 focus:bg-transparent ":"focus:bg-accent ",v.presist&&"focus:bg-transparent"),children:[v.icon&&v.icon,v.label&&v.label]},A))})})]})},yb=()=>s.jsx("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:s.jsx("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"})}),Cb=({size:e="normal",bodyColor:t="white",headerColor:r="gray-200",borders:n="all",highlightFirst:a=!1,direction:o="ltr",bordersWidth:i="1",pagination:l=!0,...u})=>{var xe,Q,ce,N,W,ee,de,ne;const[c,m]=h.useState(10),[p,x]=h.useState(null),[C,E]=h.useState(1);h.useState(null);const[v,A]=h.useState(u.rows),[S,j]=h.useState(null),[O,L]=h.useState(null),{slice:M,range:z}=K9(u.rows,C,c,S,O);let H=o==="rtl",oe={normal:"py-3 px-6",small:"px-3 py-1"};const J=(te,K)=>{K&&(j(te),L(se=>se==="asc"?"desc":"asc"))},ge=()=>{(M==null?void 0:M.length)<1&&C!==1&&E(C-1),p&&E(p)};return h.useEffect(()=>{ge()},[M,C]),s.jsxs("div",{className:"relative flex flex-col gap-2 ",children:[u.isLoading?s.jsx(ri,{className:"h-[105px] w-full"}):s.jsx(s.Fragment,{children:s.jsxs("div",{className:`overflow-x-auto rounded bg-${r}`,children:[u.headerTools&&s.jsx("div",{className:"flex flex-row items-center justify-between gap-2 border bg-background px-2 py-2",children:u.headerTools}),s.jsxs("table",{className:$e("w-full rounded bg-muted text-left text-sm text-muted-foreground",`bg-${r}`),children:[s.jsx("thead",{className:$e("bg-muted text-xs uppercase text-muted-foreground ",n==="rows"||n==="all"||n==="inner"?"border-b ":""),children:s.jsxs("tr",{children:[u.columns.map((te,K)=>{if(!te.hidden)return s.jsxs("th",{onClick:()=>te.sortable&&J(K,te.sortable),scope:"col",colSpan:2,className:$e(te.sortable?"cursor-pointer hover:bg-muted-foreground/10":"",oe[e],K!==0&&(n==="cols"||n==="all"||n==="inner")?`border-r border-r-[${i}px] border-l border-l-[${i}px]`:""),children:[te.value,S===K&&s.jsx("span",{children:O==="asc"?" ▲":" ▼"})]},K)}),u.actions?s.jsx("th",{scope:"col",className:$e(oe[e],"w-[calc(1%)] text-center"),children:((xe=u.texts)==null?void 0:xe.actions)??"Actions"}):null]})}),s.jsx("tbody",{className:t&&u.rows?`bg-${t}`:"bg-transparent",children:v?M==null?void 0:M.map((te,K)=>{let se=K==(M==null?void 0:M.length)-1;return s.jsxs("tr",{className:$e(" text-mute-foreground border bg-background",u.clickable?"hover:bg-gray-100":"",!se&&(n==="all"||n==="rows"||n==="inner")?`border-b border-b-[${i}px]`:""),children:[te==null?void 0:te.map((fe,Se)=>{let G=Se===0,he=Se===(te==null?void 0:te.length)-1,ae=H&&se&&he&&!u.actions,me=H&&se&&G,Me=!H&&se&&G,Pe=!H&&se&&he&&!u.actions;if(!fe.hidden)return s.jsxs("td",{colSpan:2,className:$e(oe[e],a&&G?"font-bold":"font-normal",me?"rounded-bl-none rounded-br":ae||Me?"rounded-bl rounded-br-none":Pe?"rounded-bl-none rounded-br":"",!G&&!he&&(n==="cols"||n==="inner"||n==="all")?`border-l border-l-[${i}px] border-r border-r-[${i}px]`:!G&&u.actions&&(n==="cols"||n==="inner"||n==="all")?`border-l border-l-[${i}px] border-r border-r-[${i}px]`:""),children:[fe.value," ",fe.suffix&&fe.suffix]},Se)}),u.actions&&s.jsx("td",{align:H?"right":"left",className:Ve(H&&se&&"rounded-bl rounded-br-none",!H&&se&&"rounded-bl-none rounded-br"),colSpan:1,children:s.jsx("div",{className:"flex items-center justify-center",children:s.jsx(Xl,{width:u.actionsWidth,size:u.actionsSize,direction:o,side:"right",items:u.actions,selectCallback:fe=>u.handleActionClick(fe,te),trigger:s.jsx("div",{className:"flex w-fit cursor-pointer items-center justify-center rounded p-2 transition-all hover:bg-primary/20 ",children:s.jsx("svg",{"aria-label":"Vertical Three Dots Menu Icon",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:s.jsx("path",{d:"M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"})})})})})})]},K)}):s.jsx("tr",{className:"bg-transparent",children:s.jsx("td",{colSpan:20,children:s.jsx("div",{className:$e("w-full rounded-b border p-5 text-center","bg-background"),children:((Q=u.texts)==null?void 0:Q.noData)??"No Data"})})})})]})]})}),l&&s.jsxs("div",{className:"flex flex-row items-center justify-between ",children:[z.length>1?s.jsxs("div",{className:"flex w-fit flex-row items-stretch justify-center gap-2 overflow-clip rounded ",children:[s.jsx("div",{className:Ve("flex h-6 w-6 rotate-180 cursor-pointer items-center justify-center rounded border bg-background p-1 text-xs hover:bg-primary/10 dark:hover:bg-primary/10",o==="rtl"&&"rotate-0"),onClick:()=>C<=1?E(z.length):E(C-1),children:s.jsx(yb,{})}),s.jsxs("div",{className:"flex flex-row items-center overflow-clip rounded transition-all",children:[z.length>6&&z.map((te,K)=>{if(K<=0)return s.jsx("button",{className:$e("w-10 p-1 text-xs hover:bg-gray-200",C===te?"bg-primary text-primary-foreground hover:bg-primary":"bg-gray-100"),onClick:()=>E(te),children:te},K)}),(z==null?void 0:z.length)>6&&s.jsx("input",{type:"text",className:" w-10 bg-gray-100 p-1 text-center text-xs",defaultValue:C!==0||C!==z.length-1?C:"...",value:C==1||C==z.length?"...":p||C,onChange:te=>x(parseInt(te.target.value)),onKeyDown:te=>{te.key==="Enter"&&(E(p),x(null))}}),(z==null?void 0:z.length)>6&&z.map((te,K)=>{if(K>=z.length-1)return s.jsx("button",{className:$e("w-10 p-1 text-xs hover:bg-gray-200",C===te?"bg-primary text-primary-foreground hover:bg-primary":"bg-gray-100"),onClick:()=>E(te),children:te},K)}),(z==null?void 0:z.length)<=6&&z.map((te,K)=>s.jsx("button",{className:$e("w-10 p-1 text-xs",C===te?"bg-primary text-primary-foreground ":"border bg-background hover:bg-primary/10 dark:hover:bg-primary/10",o==="rtl"?K===0?"rounded-r border-l-0":K===z.length-1?"rounded-l border-r-0":"":K===0?"rounded-l border-r-0":K===z.length-1?"rounded-r border-l-0":""),onClick:()=>E(te),children:te},K))]}),s.jsx("div",{onClick:()=>C>=z.length?E(1):E(C+1),className:Ve("flex h-6 w-6 cursor-pointer items-center justify-center rounded border bg-background p-1 text-xs hover:bg-primary/10 dark:hover:bg-primary/10",o==="rtl"&&"rotate-180"),children:s.jsx(yb,{})})]}):s.jsx("div",{}),u.rows?s.jsxs("div",{className:"flex w-fit flex-row items-center gap-2 ",children:[s.jsxs("div",{className:"text-xs ",children:[u.rows.length," ",((ce=u.texts)==null?void 0:ce.items)??"Items"]}),s.jsxs("select",{value:c,className:"h-6 cursor-pointer rounded border bg-background px-2 text-xs",onChange:te=>{m(parseInt(te.target.value))},children:[s.jsxs("option",{value:10,style:{fontSize:10},children:["10 / ",((N=u.texts)==null?void 0:N.page)??"Page"]}),s.jsxs("option",{value:20,style:{fontSize:10},children:["20 / ",((W=u.texts)==null?void 0:W.page)??"Page"]}),s.jsxs("option",{value:30,style:{fontSize:10},children:["30 / ",((ee=u.texts)==null?void 0:ee.page)??"Page"]}),s.jsxs("option",{value:50,style:{fontSize:10},children:["50 / ",((de=u.texts)==null?void 0:de.page)??"Page"]}),s.jsxs("option",{value:100,style:{fontSize:10},children:["100 / ",((ne=u.texts)==null?void 0:ne.page)??"Page"]})]})]}):s.jsx("div",{})]})]})},YA=e=>s.jsx(Rt,{type:"search",...e}),JA=e=>{const[t,r]=h.useState(!1);return s.jsxs("div",{className:"h-fit w-full",children:[s.jsxs("button",{id:"accordion-collapse-heading-"+e.index,type:"button",className:$e(t?"rounded":"rounded-t","flex w-full items-center justify-between border border-gray-200 bg-gray-100 p-5 text-left font-medium text-gray-900 hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-800 dark:focus:ring-gray-800"),onClick:()=>r(!t),"data-accordion-target":"#accordion-collapse-body-"+e.index,"aria-expanded":"true","aria-controls":"accordion-collapse-body-"+e.index,children:[s.jsx("span",{children:e.title}),s.jsx("svg",{"data-accordion-icon":"",className:`h-6 w-6 ${t?"":"rotate-180"} shrink-0 transition-all`,fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),s.jsx("div",{id:"accordion-collapse-body-"+e.index,"aria-labelledby":"accordion-collapse-heading-"+e.index,className:$e(t?"invisible hidden h-0 p-0":"visible h-full","w-full rounded-b border border-t-0 border-gray-200 p-5 font-light dark:border-gray-700 dark:bg-gray-900"),children:s.jsx("p",{className:"mb-2 text-gray-500 dark:text-gray-400",children:e.content})})]})},wb=[{country_label:"Saudi Arabia",code:"SA",unicode:"&#x1F1F8;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SA.svg",label:"+966"},{country_label:"United Arab Emirates",code:"AE",unicode:"&#x1F1E6;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AE.svg",label:"+971"},{country_label:"Bahrain",code:"BH",unicode:"&#x1F1E7;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BH.svg",label:"+973"},{country_label:"Kuwait",code:"KW",unicode:"&#x1F1F0;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KW.svg",label:"+965"},{country_label:"Qatar",code:"QA",unicode:"&#x1F1F6;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/QA.svg",label:"+974"},{country_label:"Oman",code:"OM",unicode:"&#x1F1F4;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/OM.svg",label:"+968"},{country_label:"Andorra",value:"Andorra",code:"AD",unicode:"&#x1F1E6;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AD.svg",label:"+376"},{country_label:"Afghanistan",code:"AF",unicode:"&#x1F1E6;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AF.svg",label:"+93"},{country_label:"Antigua & Barbuda",code:"AG",unicode:"&#x1F1E6;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AG.svg",label:"+1268"},{country_label:"Anguilla",code:"AI",unicode:"&#x1F1E6;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AI.svg",label:"+1264"},{country_label:"Albania",code:"AL",unicode:"&#x1F1E6;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AL.svg",label:"+355"},{country_label:"Armenia",code:"AM",unicode:"&#x1F1E6;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AM.svg",label:"+374"},{country_label:"Angola",code:"AO",unicode:"&#x1F1E6;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AO.svg",label:"+244"},{country_label:"Antarctica",code:"AQ",unicode:"&#x1F1E6;&#x1F1F6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AQ.svg",label:"+672"},{country_label:"Argentina",code:"AR",unicode:"&#x1F1E6;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AR.svg",label:"+54"},{country_label:"American Samoa",code:"AS",unicode:"&#x1F1E6;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AS.svg",label:"+1684"},{country_label:"Austria",code:"AT",unicode:"&#x1F1E6;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AT.svg",label:"+43"},{country_label:"Australia",code:"AU",unicode:"&#x1F1E6;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AU.svg",label:"+61"},{country_label:"Aruba",code:"AW",unicode:"&#x1F1E6;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AW.svg",label:"+297"},{country_label:"Åland Islands",code:"AX",unicode:"&#x1F1E6;&#x1F1FD;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AX.svg",label:"+358"},{country_label:"Azerbaijan",code:"AZ",unicode:"&#x1F1E6;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AZ.svg",label:"+994"},{country_label:"Bosnia & Herzegovina",code:"BA",unicode:"&#x1F1E7;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BA.svg",label:"+387"},{country_label:"Barbados",code:"BB",unicode:"&#x1F1E7;&#x1F1E7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BB.svg",label:"+1246"},{country_label:"Bangladesh",code:"BD",unicode:"&#x1F1E7;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BD.svg",label:"+880"},{country_label:"Belgium",code:"BE",unicode:"&#x1F1E7;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BE.svg",label:"+32"},{country_label:"Burkina Faso",code:"BF",unicode:"&#x1F1E7;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BF.svg",label:"+226"},{country_label:"Bulgaria",code:"BG",unicode:"&#x1F1E7;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BG.svg",label:"+359"},{country_label:"Burundi",code:"BI",unicode:"&#x1F1E7;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BI.svg",label:"+257"},{country_label:"Benin",code:"BJ",unicode:"&#x1F1E7;&#x1F1EF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BJ.svg",label:"+229"},{country_label:"St. Barthélemy",code:"BL",unicode:"&#x1F1E7;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BL.svg",label:"+590"},{country_label:"Bermuda",code:"BM",unicode:"&#x1F1E7;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BM.svg",label:"+1441"},{country_label:"Brunei",code:"BN",unicode:"&#x1F1E7;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BN.svg",label:"+673"},{country_label:"Bolivia",code:"BO",unicode:"&#x1F1E7;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BO.svg",label:"+591"},{country_label:"Brazil",code:"BR",unicode:"&#x1F1E7;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BR.svg",label:"+55"},{country_label:"Bahamas",code:"BS",unicode:"&#x1F1E7;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BS.svg",label:"+1242"},{country_label:"Bhutan",code:"BT",unicode:"&#x1F1E7;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BT.svg",label:"+975"},{country_label:"Botswana",code:"BW",unicode:"&#x1F1E7;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BW.svg",label:"+267"},{country_label:"Belarus",code:"BY",unicode:"&#x1F1E7;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BY.svg",label:"+375"},{country_label:"Belize",code:"BZ",unicode:"&#x1F1E7;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BZ.svg",label:"+501"},{country_label:"Canada",code:"CA",unicode:"&#x1F1E8;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CA.svg",label:"+1"},{country_label:"Cocos (Keeling) Islands",code:"CC",unicode:"&#x1F1E8;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CC.svg",label:"+61"},{country_label:"Congo - Kinshasa",code:"CD",unicode:"&#x1F1E8;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CD.svg",label:"+243"},{country_label:"Central African Republic",code:"CF",unicode:"&#x1F1E8;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CF.svg",label:"+236"},{country_label:"Congo - Brazzaville",code:"CG",unicode:"&#x1F1E8;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CG.svg",label:"+242"},{country_label:"Switzerland",code:"CH",unicode:"&#x1F1E8;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CH.svg",label:"+41"},{country_label:"Côte d’Ivoire",code:"CI",unicode:"&#x1F1E8;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CI.svg",label:"+225"},{country_label:"Cook Islands",code:"CK",unicode:"&#x1F1E8;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CK.svg",label:"+682"},{country_label:"Chile",code:"CL",unicode:"&#x1F1E8;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CL.svg",label:"+56"},{country_label:"Cameroon",code:"CM",unicode:"&#x1F1E8;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CM.svg",label:"+237"},{country_label:"China",code:"CN",unicode:"&#x1F1E8;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CN.svg",label:"+86"},{country_label:"Colombia",code:"CO",unicode:"&#x1F1E8;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CO.svg",label:"+57"},{country_label:"Costa Rica",code:"CR",unicode:"&#x1F1E8;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CR.svg",label:"+506"},{country_label:"Cuba",code:"CU",unicode:"&#x1F1E8;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CU.svg",label:"+53"},{country_label:"Cape Verde",code:"CV",unicode:"&#x1F1E8;&#x1F1FB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CV.svg",label:"+238"},{country_label:"Christmas Island",code:"CX",unicode:"&#x1F1E8;&#x1F1FD;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CX.svg",label:"+61"},{country_label:"Cyprus",code:"CY",unicode:"&#x1F1E8;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CY.svg",label:"+357"},{country_label:"Czechia",code:"CZ",unicode:"&#x1F1E8;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CZ.svg",label:"+420"},{country_label:"Germany",code:"DE",unicode:"&#x1F1E9;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DE.svg",label:"+49"},{country_label:"Djibouti",code:"DJ",unicode:"&#x1F1E9;&#x1F1EF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DJ.svg",label:"+253"},{country_label:"Denmark",code:"DK",unicode:"&#x1F1E9;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DK.svg",label:"+45"},{country_label:"Dominica",code:"DM",unicode:"&#x1F1E9;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DM.svg",label:"+1767"},{country_label:"Dominican Republic",code:"DO",unicode:"&#x1F1E9;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DO.svg",label:"+1849"},{country_label:"Algeria",code:"DZ",unicode:"&#x1F1E9;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DZ.svg",label:"+213"},{country_label:"Ecuador",code:"EC",unicode:"&#x1F1EA;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EC.svg",label:"+593"},{country_label:"Estonia",code:"EE",unicode:"&#x1F1EA;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EE.svg",label:"+372"},{country_label:"Egypt",code:"EG",unicode:"&#x1F1EA;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EG.svg",label:"+20"},{country_label:"Eritrea",code:"ER",unicode:"&#x1F1EA;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ER.svg",label:"+291"},{country_label:"Spain",code:"ES",unicode:"&#x1F1EA;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ES.svg",label:"+34"},{country_label:"Ethiopia",code:"ET",unicode:"&#x1F1EA;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ET.svg",label:"+251"},{country_label:"Finland",code:"FI",unicode:"&#x1F1EB;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FI.svg",label:"+358"},{country_label:"Fiji",code:"FJ",unicode:"&#x1F1EB;&#x1F1EF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FJ.svg",label:"+679"},{country_label:"Falkland Islands",code:"FK",unicode:"&#x1F1EB;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FK.svg",label:"+500"},{country_label:"Micronesia",code:"FM",unicode:"&#x1F1EB;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FM.svg",label:"+691"},{country_label:"Faroe Islands",code:"FO",unicode:"&#x1F1EB;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FO.svg",label:"+298"},{country_label:"France",code:"FR",unicode:"&#x1F1EB;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FR.svg",label:"+33"},{country_label:"Gabon",code:"GA",unicode:"&#x1F1EC;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GA.svg",label:"+241"},{country_label:"United Kingdom",code:"GB",unicode:"&#x1F1EC;&#x1F1E7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GB.svg",label:"+44"},{country_label:"Grenada",code:"GD",unicode:"&#x1F1EC;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GD.svg",label:"+1473"},{country_label:"Georgia",code:"GE",unicode:"&#x1F1EC;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GE.svg",label:"+995"},{country_label:"French Guiana",code:"GF",unicode:"&#x1F1EC;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GF.svg",label:"+594"},{country_label:"Guernsey",code:"GG",unicode:"&#x1F1EC;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GG.svg",label:"+44"},{country_label:"Ghana",code:"GH",unicode:"&#x1F1EC;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GH.svg",label:"+233"},{country_label:"Gibraltar",code:"GI",unicode:"&#x1F1EC;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GI.svg",label:"+350"},{country_label:"Greenland",code:"GL",unicode:"&#x1F1EC;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GL.svg",label:"+299"},{country_label:"Gambia",code:"GM",unicode:"&#x1F1EC;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GM.svg",label:"+220"},{country_label:"Guinea",code:"GN",unicode:"&#x1F1EC;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GN.svg",label:"+224"},{country_label:"Guadeloupe",code:"GP",unicode:"&#x1F1EC;&#x1F1F5;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GP.svg",label:"+590"},{country_label:"Equatorial Guinea",code:"GQ",unicode:"&#x1F1EC;&#x1F1F6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GQ.svg",label:"+240"},{country_label:"Greece",code:"GR",unicode:"&#x1F1EC;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GR.svg",label:"+30"},{country_label:"South Georgia & South Sandwich Islands",code:"GS",unicode:"&#x1F1EC;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GS.svg",label:"+500"},{country_label:"Guatemala",code:"GT",unicode:"&#x1F1EC;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GT.svg",label:"+502"},{country_label:"Guam",code:"GU",unicode:"&#x1F1EC;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GU.svg",label:"+1671"},{country_label:"Guinea-Bissau",code:"GW",unicode:"&#x1F1EC;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GW.svg",label:"+245"},{country_label:"Guyana",code:"GY",unicode:"&#x1F1EC;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GY.svg",label:"+595"},{country_label:"Hong Kong SAR China",code:"HK",unicode:"&#x1F1ED;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HK.svg",label:"+852"},{country_label:"Honduras",code:"HN",unicode:"&#x1F1ED;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HN.svg",label:"+504"},{country_label:"Croatia",code:"HR",unicode:"&#x1F1ED;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HR.svg",label:"+385"},{country_label:"Haiti",code:"HT",unicode:"&#x1F1ED;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HT.svg",label:"+509"},{country_label:"Hungary",code:"HU",unicode:"&#x1F1ED;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HU.svg",label:"+36"},{country_label:"Indonesia",code:"ID",unicode:"&#x1F1EE;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ID.svg",label:"+62"},{country_label:"Ireland",code:"IE",unicode:"&#x1F1EE;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IE.svg",label:"+353"},{country_label:"Israel",code:"IL",unicode:"&#x1F1EE;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IL.svg",label:"+972"},{country_label:"Isle of Man",code:"IM",unicode:"&#x1F1EE;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IM.svg",label:"+44"},{country_label:"India",code:"IN",unicode:"&#x1F1EE;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IN.svg",label:"+91"},{country_label:"British Indian Ocean Territory",code:"IO",unicode:"&#x1F1EE;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IO.svg",label:"+246"},{country_label:"Iraq",code:"IQ",unicode:"&#x1F1EE;&#x1F1F6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IQ.svg",label:"+964"},{country_label:"Iran",code:"IR",unicode:"&#x1F1EE;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IR.svg",label:"+98"},{country_label:"Iceland",code:"IS",unicode:"&#x1F1EE;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IS.svg",label:"+354"},{country_label:"Italy",code:"IT",unicode:"&#x1F1EE;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IT.svg",label:"+39"},{country_label:"Jersey",code:"JE",unicode:"&#x1F1EF;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JE.svg",label:"+44"},{country_label:"Jamaica",code:"JM",unicode:"&#x1F1EF;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JM.svg",label:"+1876"},{country_label:"Jordan",code:"JO",unicode:"&#x1F1EF;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JO.svg",label:"+962"},{country_label:"Japan",code:"JP",unicode:"&#x1F1EF;&#x1F1F5;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JP.svg",label:"+81"},{country_label:"Kenya",code:"KE",unicode:"&#x1F1F0;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KE.svg",label:"+254"},{country_label:"Kyrgyzstan",code:"KG",unicode:"&#x1F1F0;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KG.svg",label:"+996"},{country_label:"Cambodia",code:"KH",unicode:"&#x1F1F0;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KH.svg",label:"+855"},{country_label:"Kiribati",code:"KI",unicode:"&#x1F1F0;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KI.svg",label:"+686"},{country_label:"Comoros",code:"KM",unicode:"&#x1F1F0;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KM.svg",label:"+269"},{country_label:"St. Kitts & Nevis",code:"KN",unicode:"&#x1F1F0;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KN.svg",label:"+1869"},{country_label:"North Korea",code:"KP",unicode:"&#x1F1F0;&#x1F1F5;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KP.svg",label:"+850"},{country_label:"South Korea",code:"KR",unicode:"&#x1F1F0;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KR.svg",label:"+82"},{country_label:"Cayman Islands",code:"KY",unicode:"&#x1F1F0;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KY.svg",label:"+ 345"},{country_label:"Kazakhstan",code:"KZ",unicode:"&#x1F1F0;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KZ.svg",label:"+77"},{country_label:"Laos",code:"LA",unicode:"&#x1F1F1;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LA.svg",label:"+856"},{country_label:"Lebanon",code:"LB",unicode:"&#x1F1F1;&#x1F1E7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LB.svg",label:"+961"},{country_label:"St. Lucia",code:"LC",unicode:"&#x1F1F1;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LC.svg",label:"+1758"},{country_label:"Liechtenstein",code:"LI",unicode:"&#x1F1F1;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LI.svg",label:"+423"},{country_label:"Sri Lanka",code:"LK",unicode:"&#x1F1F1;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LK.svg",label:"+94"},{country_label:"Liberia",code:"LR",unicode:"&#x1F1F1;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LR.svg",label:"+231"},{country_label:"Lesotho",code:"LS",unicode:"&#x1F1F1;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LS.svg",label:"+266"},{country_label:"Lithuania",code:"LT",unicode:"&#x1F1F1;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LT.svg",label:"+370"},{country_label:"Luxembourg",code:"LU",unicode:"&#x1F1F1;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LU.svg",label:"+352"},{country_label:"Latvia",code:"LV",unicode:"&#x1F1F1;&#x1F1FB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LV.svg",label:"+371"},{country_label:"Libya",code:"LY",unicode:"&#x1F1F1;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LY.svg",label:"+218"},{country_label:"Morocco",code:"MA",unicode:"&#x1F1F2;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MA.svg",label:"+212"},{country_label:"Monaco",code:"MC",unicode:"&#x1F1F2;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MC.svg",label:"+377"},{country_label:"Moldova",code:"MD",unicode:"&#x1F1F2;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MD.svg",label:"+373"},{country_label:"Montenegro",code:"ME",unicode:"&#x1F1F2;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ME.svg",label:"+382"},{country_label:"St. Martin",code:"MF",unicode:"&#x1F1F2;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MF.svg",label:"+590"},{country_label:"Madagascar",code:"MG",unicode:"&#x1F1F2;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MG.svg",label:"+261"},{country_label:"Marshall Islands",code:"MH",unicode:"&#x1F1F2;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MH.svg",label:"+692"},{country_label:"North Macedonia",code:"MK",unicode:"&#x1F1F2;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MK.svg",label:"+389"},{country_label:"Mali",code:"ML",unicode:"&#x1F1F2;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ML.svg",label:"+223"},{country_label:"Myanmar (Burma)",code:"MM",unicode:"&#x1F1F2;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MM.svg",label:"+95"},{country_label:"Mongolia",code:"MN",unicode:"&#x1F1F2;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MN.svg",label:"+976"},{country_label:"Macao SAR China",code:"MO",unicode:"&#x1F1F2;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MO.svg",label:"+853"},{country_label:"Northern Mariana Islands",code:"MP",unicode:"&#x1F1F2;&#x1F1F5;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MP.svg",label:"+1670"},{country_label:"Martinique",code:"MQ",unicode:"&#x1F1F2;&#x1F1F6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MQ.svg",label:"+596"},{country_label:"Mauritania",code:"MR",unicode:"&#x1F1F2;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MR.svg",label:"+222"},{country_label:"Montserrat",code:"MS",unicode:"&#x1F1F2;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MS.svg",label:"+1664"},{country_label:"Malta",code:"MT",unicode:"&#x1F1F2;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MT.svg",label:"+356"},{country_label:"Mauritius",code:"MU",unicode:"&#x1F1F2;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MU.svg",label:"+230"},{country_label:"Maldives",code:"MV",unicode:"&#x1F1F2;&#x1F1FB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MV.svg",label:"+960"},{country_label:"Malawi",code:"MW",unicode:"&#x1F1F2;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MW.svg",label:"+265"},{country_label:"Mexico",code:"MX",unicode:"&#x1F1F2;&#x1F1FD;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MX.svg",label:"+52"},{country_label:"Malaysia",code:"MY",unicode:"&#x1F1F2;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MY.svg",label:"+60"},{country_label:"Mozambique",code:"MZ",unicode:"&#x1F1F2;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MZ.svg",label:"+258"},{country_label:"Namibia",code:"NA",unicode:"&#x1F1F3;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NA.svg",label:"+264"},{country_label:"New Caledonia",code:"NC",unicode:"&#x1F1F3;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NC.svg",label:"+687"},{country_label:"Niger",code:"NE",unicode:"&#x1F1F3;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NE.svg",label:"+227"},{country_label:"Norfolk Island",code:"NF",unicode:"&#x1F1F3;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NF.svg",label:"+672"},{country_label:"Nigeria",code:"NG",unicode:"&#x1F1F3;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NG.svg",label:"+234"},{country_label:"Nicaragua",code:"NI",unicode:"&#x1F1F3;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NI.svg",label:"+505"},{country_label:"Netherlands",code:"NL",unicode:"&#x1F1F3;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NL.svg",label:"+31"},{country_label:"Norway",code:"NO",unicode:"&#x1F1F3;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NO.svg",label:"+47"},{country_label:"Nepal",code:"NP",unicode:"&#x1F1F3;&#x1F1F5;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NP.svg",label:"+977"},{country_label:"Nauru",code:"NR",unicode:"&#x1F1F3;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NR.svg",label:"+674"},{country_label:"Niue",code:"NU",unicode:"&#x1F1F3;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NU.svg",label:"+683"},{country_label:"New Zealand",code:"NZ",unicode:"&#x1F1F3;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NZ.svg",label:"+64"},{country_label:"Panama",code:"PA",unicode:"&#x1F1F5;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PA.svg",label:"+507"},{country_label:"Peru",code:"PE",unicode:"&#x1F1F5;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PE.svg",label:"+51"},{country_label:"French Polynesia",code:"PF",unicode:"&#x1F1F5;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PF.svg",label:"+689"},{country_label:"Papua New Guinea",code:"PG",unicode:"&#x1F1F5;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PG.svg",label:"+675"},{country_label:"Philippines",code:"PH",unicode:"&#x1F1F5;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PH.svg",label:"+63"},{country_label:"Pakistan",code:"PK",unicode:"&#x1F1F5;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PK.svg",label:"+92"},{country_label:"Poland",code:"PL",unicode:"&#x1F1F5;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PL.svg",label:"+48"},{country_label:"St. Pierre & Miquelon",code:"PM",unicode:"&#x1F1F5;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PM.svg",label:"+508"},{country_label:"Pitcairn Islands",code:"PN",unicode:"&#x1F1F5;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PN.svg",label:"+872"},{country_label:"Puerto Rico",code:"PR",unicode:"&#x1F1F5;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PR.svg",label:"+1939"},{country_label:"Palestinian Territories",code:"PS",unicode:"&#x1F1F5;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PS.svg",label:"+970"},{country_label:"Portugal",code:"PT",unicode:"&#x1F1F5;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PT.svg",label:"+351"},{country_label:"Palau",code:"PW",unicode:"&#x1F1F5;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PW.svg",label:"+680"},{country_label:"Paraguay",code:"PY",unicode:"&#x1F1F5;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PY.svg",label:"+595"},{country_label:"Réunion",code:"RE",unicode:"&#x1F1F7;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RE.svg",label:"+262"},{country_label:"Romania",code:"RO",unicode:"&#x1F1F7;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RO.svg",label:"+40"},{country_label:"Serbia",code:"RS",unicode:"&#x1F1F7;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RS.svg",label:"+381"},{country_label:"Russia",code:"RU",unicode:"&#x1F1F7;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RU.svg",label:"+7"},{country_label:"Rwanda",code:"RW",unicode:"&#x1F1F7;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RW.svg",label:"+250"},{country_label:"Solomon Islands",code:"SB",unicode:"&#x1F1F8;&#x1F1E7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SB.svg",label:"+677"},{country_label:"Seychelles",code:"SC",unicode:"&#x1F1F8;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SC.svg",label:"+248"},{country_label:"Sudan",code:"SD",unicode:"&#x1F1F8;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SD.svg",label:"+249"},{country_label:"Sweden",code:"SE",unicode:"&#x1F1F8;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SE.svg",label:"+46"},{country_label:"Singapore",code:"SG",unicode:"&#x1F1F8;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SG.svg",label:"+65"},{country_label:"St. Helena",code:"SH",unicode:"&#x1F1F8;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SH.svg",label:"+290"},{country_label:"Slovenia",code:"SI",unicode:"&#x1F1F8;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SI.svg",label:"+386"},{country_label:"Svalbard & Jan Mayen",code:"SJ",unicode:"&#x1F1F8;&#x1F1EF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SJ.svg",label:"+47"},{country_label:"Slovakia",code:"SK",unicode:"&#x1F1F8;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SK.svg",label:"+421"},{country_label:"Sierra Leone",code:"SL",unicode:"&#x1F1F8;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SL.svg",label:"+232"},{country_label:"San Marino",code:"SM",unicode:"&#x1F1F8;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SM.svg",label:"+378"},{country_label:"Senegal",code:"SN",unicode:"&#x1F1F8;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SN.svg",label:"+221"},{country_label:"Somalia",code:"SO",unicode:"&#x1F1F8;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SO.svg",label:"+252"},{country_label:"Suriname",code:"SR",unicode:"&#x1F1F8;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SR.svg",label:"+597"},{country_label:"South Sudan",code:"SS",unicode:"&#x1F1F8;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SS.svg",label:"+211"},{country_label:"São Tomé & Príncipe",code:"ST",unicode:"&#x1F1F8;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ST.svg",label:"+239"},{country_label:"El Salvador",code:"SV",unicode:"&#x1F1F8;&#x1F1FB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SV.svg",label:"+503"},{country_label:"Syria",code:"SY",unicode:"&#x1F1F8;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SY.svg",label:"+963"},{country_label:"Eswatini",code:"SZ",unicode:"&#x1F1F8;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SZ.svg",label:"+268"},{country_label:"Turks & Caicos Islands",code:"TC",unicode:"&#x1F1F9;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TC.svg",label:"+1649"},{country_label:"Chad",code:"TD",unicode:"&#x1F1F9;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TD.svg",label:"+235"},{country_label:"Togo",code:"TG",unicode:"&#x1F1F9;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TG.svg",label:"+228"},{country_label:"Thailand",code:"TH",unicode:"&#x1F1F9;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TH.svg",label:"+66"},{country_label:"Tajikistan",code:"TJ",unicode:"&#x1F1F9;&#x1F1EF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TJ.svg",label:"+992"},{country_label:"Tokelau",code:"TK",unicode:"&#x1F1F9;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TK.svg",label:"+690"},{country_label:"Timor-Leste",code:"TL",unicode:"&#x1F1F9;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TL.svg",label:"+670"},{country_label:"Turkmenistan",code:"TM",unicode:"&#x1F1F9;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TM.svg",label:"+993"},{country_label:"Tunisia",code:"TN",unicode:"&#x1F1F9;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TN.svg",label:"+216"},{country_label:"Tonga",code:"TO",unicode:"&#x1F1F9;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TO.svg",label:"+676"},{country_label:"Turkey",code:"TR",unicode:"&#x1F1F9;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TR.svg",label:"+90"},{country_label:"Trinidad & Tobago",code:"TT",unicode:"&#x1F1F9;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TT.svg",label:"+1868"},{country_label:"Tuvalu",code:"TV",unicode:"&#x1F1F9;&#x1F1FB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TV.svg",label:"+688"},{country_label:"Taiwan",code:"TW",unicode:"&#x1F1F9;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TW.svg",label:"+886"},{country_label:"Tanzania",code:"TZ",unicode:"&#x1F1F9;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TZ.svg",label:"+255"},{country_label:"Ukraine",code:"UA",unicode:"&#x1F1FA;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UA.svg",label:"+380"},{country_label:"Uganda",code:"UG",unicode:"&#x1F1FA;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UG.svg",label:"+256"},{country_label:"United States",code:"US",unicode:"&#x1F1FA;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/US.svg",label:"+1"},{country_label:"Uruguay",code:"UY",unicode:"&#x1F1FA;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UY.svg",label:"+598"},{country_label:"Uzbekistan",code:"UZ",unicode:"&#x1F1FA;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UZ.svg",label:"+998"},{country_label:"Vatican City",code:"VA",unicode:"&#x1F1FB;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VA.svg",label:"+379"},{country_label:"St. Vincent & Grenadines",code:"VC",unicode:"&#x1F1FB;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VC.svg",label:"+1784"},{country_label:"Venezuela",code:"VE",unicode:"&#x1F1FB;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VE.svg",label:"+58"},{country_label:"British Virgin Islands",code:"VG",unicode:"&#x1F1FB;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VG.svg",label:"+1284"},{country_label:"U.S. Virgin Islands",code:"VI",unicode:"&#x1F1FB;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VI.svg",label:"+1340"},{country_label:"Vietnam",code:"VN",unicode:"&#x1F1FB;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VN.svg",label:"+84"},{country_label:"Vanuatu",code:"VU",unicode:"&#x1F1FB;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VU.svg",label:"+678"},{country_label:"Wallis & Futuna",code:"WF",unicode:"&#x1F1FC;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WF.svg",label:"+681"},{country_label:"Samoa",code:"WS",unicode:"&#x1F1FC;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WS.svg",label:"+685"},{country_label:"Yemen",code:"YE",unicode:"&#x1F1FE;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/YE.svg",label:"+967"},{country_label:"Mayotte",code:"YT",unicode:"&#x1F1FE;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/YT.svg",label:"+262"},{country_label:"South Africa",code:"ZA",unicode:"&#x1F1FF;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZA.svg",label:"+27"},{country_label:"Zambia",code:"ZM",unicode:"&#x1F1FF;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZM.svg",label:"+260"},{country_label:"Zimbabwe",code:"ZW",unicode:"&#x1F1FF;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZW.svg",label:"+263"}],QA=({cx:e,children:t,getStyles:r,innerProps:n,innerRef:a,...o})=>s.jsx("div",{className:"absolute z-50 w-[190px] rounded border bg-background",ref:a,...n,children:t}),KA=({cx:e,children:t,getStyles:r,innerProps:n,innerRef:a,...o})=>s.jsxs("div",{ref:a,className:"m-2 flex cursor-pointer flex-row items-center justify-between rounded-inner p-1 px-2 hover:bg-primary hover:text-primary-foreground",...n,children:[s.jsxs("div",{className:"flex flex-row items-center justify-center gap-1",children:[s.jsx("img",{className:"h-8 w-8",src:o.data.image}),s.jsx("span",{className:"text-[10px]",children:o.data.country_label})]}),t]}),cd=e=>{const[t,r]=h.useState("+966");return s.jsxs("div",{className:"mb-3 flex flex-col",children:[e.label&&s.jsx("label",{className:"mb-2 block text-sm font-medium",children:e.label}),s.jsxs("div",{dir:"ltr",className:"flex flex-row ",children:[s.jsx(e1,{classNames:{control:()=>"w-[64px] text-right pr-2 cursor-pointer z-10 border rounded-l bg-background",placeholder:n=>"text-muted-foreground text-right ",input:n=>"bg-transparent cursor-pointer dark:text-white p-2 rounded-l text-[0.875rem] ",valueContainer:()=>"rounded-l h-auto text-[0.875rem]"},styles:{placeholder:n=>({...n,fontSize:"0.875rem",textAlign:"right"})},components:{Option:KA,Menu:QA,DropdownIndicator:()=>null,IndicatorSeparator:()=>null},options:wb,isMulti:!1,isSearchable:!0,isClearable:!1,placeholder:"+966",unstyled:!0,defaultValue:e.preferredCountry,value:t,onChange:(n,a)=>r(n)}),s.jsx("input",{onChange:e.handleChange,type:"number",placeholder:"531045453",className:"block w-full rounded-r border bg-background p-2 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500"}),e.helperText&&s.jsx("p",{className:"mb-1 mt-1 text-xs text-red-600 dark:text-red-500",children:e.helperText})]})]})},qA=({orientation:e="horizontal",direction:t="ltr",width:r="normal",marginBetween:n=0,pill:a=!1,...o})=>{var C,E;const[i,l]=h.useState((C=o.options[0])==null?void 0:C.value);let u={vertical:"inline-block py-2 px-4 text-white bg-primary active",horizontal:"inline-block py-2 px-4 text-white bg-primary active"},c={vertical:"inline-block py-2 px-4 hover:text-gray-900 hover:bg-gray-200 dark:hover:bg-gray-800 dark:hover:text-white",horizontal:"bg-gray-100 inline-block py-2 px-4 hover:text-gray-900 hover:bg-gray-200 dark:hover:bg-gray-800 dark:hover:text-white"},m={full:"w-full min-w-full",normal:"w-fit"},p={vertical:"flex flex-row",horizontal:"flex flex-col"},x={vertical:"sticky top-2 h-fit flex flex-col w-fit flex-wrap rounded border-b-primary bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400",horizontal:"flex w-fit flex-wrap border-b-primary text-center text-sm font-medium text-gray-500 dark:text-gray-400"};return s.jsxs("div",{dir:t,className:Ve(p[e],o.options[i]?"border-b-2":"border-b-0"),children:[s.jsx("ul",{className:Ve("w-full border-primary",n?e==="vertical"?"mb-0":"mb-"+n:"",n&&t==="rtl"?"ml-"+n:"mr-"+n,x[e],e==="horizontal"?"grid grid-cols-3 gap-1 sm:flex sm:flex-row sm:gap-0 ":"",m[r],a?"gap-0.5 rounded border-none bg-gray-100 p-0.5":e==="vertical"?t==="rtl"?"rounded-none rounded-r border-l-2":"rounded-none rounded-l border-r-2":"border-b-0 sm:border-b-2"),children:(E=o.options)==null?void 0:E.map((v,A)=>s.jsxs("button",{"aria-current":"page",onClick:()=>{l(v.value),o==null||o.onChangeTab(v)},className:Ve(v.value===i?[u[e],t==="rtl"?"rounded-r":"rounded-l"]:c[e],a?"rounded":e==="vertical"?"rounded rounded-bl-none rounded-tl-none":"rounded sm:rounded-b-none","flex w-fit flex-row items-center gap-2 transition-all "),children:[v.icon,v.label]},A))}),s.jsx("div",{className:"flex-1 transition-all",children:o.options.map((v,A)=>s.jsx("div",{className:Ve(i===v.value?"":"hidden"),children:v.content},A))})]})},eF=({open:e,title:t,onClose:r,closeOnClickOutside:n=!0,...a})=>{let o="absolute top-1/2 left-1/2 w-full h-screen flex flex-col justify-center items-center -translate-x-1/2 -translate-y-1/2 transition-all";return h.useEffect(()=>(n&&e&&(window.onclick=i=>{i.stopPropagation(),r()}),()=>window.onclick=null),[e]),s.jsxs("div",{className:$e(o,e?"z-10 opacity-100 ":"invisible -z-10 opacity-0"),children:[s.jsx("div",{className:$e("absolute h-screen w-full bg-gray-500 opacity-50",e?"opacity-50":"opacity-0")}),s.jsxs("div",{className:"relative w-1/2 max-w-md rounded bg-white p-1 shadow-lg dark:bg-gray-700",children:[s.jsxs("div",{className:"flex items-start justify-between rounded-t p-3 dark:border-gray-600",children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:t}),s.jsxs("button",{type:"button",className:"inline-flex items-center rounded bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white","data-modal-toggle":"defaultModal",onClick:i=>{r()},children:[s.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})}),s.jsx("span",{className:"sr-only",children:"Close modal"})]})]}),s.jsx("div",{className:"space-y-6 p-3",children:a.children}),s.jsx("div",{className:"mx-2 flex items-center justify-end space-x-1 p-0 dark:border-gray-600",children:a.actions})]})]})},dd=({menuItems:e,withHeader:t,direction:r="ltr",headerTitle:n,headerSubtitle:a,size:o="normal",children:i,onClickOutside:l,actionedItem:u,position:c="top-right"})=>{const[m,p]=h.useState(!1),x=h.useRef(null),[C,E]=h.useState(null),[v,A]=h.useState(null),S=h.useRef(null),[j,O]=h.useState(null),[L,M]=h.useState(null);h.useEffect(()=>{var xe,Q,ce,N;M((xe=S.current)==null?void 0:xe.getBoundingClientRect().height),O((Q=S.current)==null?void 0:Q.getBoundingClientRect().width),E((ce=x.current)==null?void 0:ce.getBoundingClientRect().height),A((N=x.current)==null?void 0:N.getBoundingClientRect().width);const ge=W=>{S.current&&!S.current.contains(W.target)&&p(!1)};return document.addEventListener("click",ge,!0),()=>{document.removeEventListener("click",ge,!0)}},[l]);let z="border-none absolute ring-offset-1 absolute z-10 w-44 divide-y divide-gray-100 overflow-y-clip rounded bg-gray-50 shadow-lg transition-all dark:bg-gray-700",H={small:"text-[11px] p-1 px-4 m-0",normal:"py-2 px-4",large:""},oe,J=5;switch(c){case"top-right":oe=r==="rtl"?`${j-v}px, -${L+C+J}px`:`0px, -${L+C+J}px`;break;case"top-left":oe=r==="rtl"?`0px, -${L+C+J}px`:`-${j-v}px, -${L+C+J}px`;break;case"bottom-right":oe=r==="rtl"?`-0px, ${J}px`:`-${v-j}px, ${J}px`;break;case"bottom-left":oe=r==="rtl"?`0px, ${J}px`:`-${j-v}px,${J}px`;break;case"right-bottom":oe=r==="rtl"?`${j+J}px, -${C}px`:`${v+J}px, -${C}px`;break;case"right-top":oe=r==="rtl"?`${j+J}px, -${L}px`:`${v+J}px, -${L}px`;break;case"left-bottom":oe=r==="rtl"?`-${v+J}px, -${C}px`:`-${j+J}px, -${C}px`;break;case"left-top":oe=r==="rtl"?`-${v+J}px, -${L}px`:`-${j+J}px, -${L}px`;break;default:oe=`-${j/2}px, -${C+L/2}px`;break}return s.jsxs("div",{onClick:()=>{p(!m)},children:[s.jsx("div",{ref:x,children:i}),s.jsxs("div",{ref:S,style:{position:"absolute",width:"max-content",transform:`translate(${oe})`,maxWidth:"200px"},className:$e(z,m?"opacity-100":"invisible opacity-0"),children:[t&&s.jsxs("div",{className:"px-4 py-3 text-xs text-gray-900 dark:text-white",children:[s.jsx("div",{children:n}),s.jsx("div",{className:"truncate font-medium",children:a})]}),e==null?void 0:e.map((ge,xe)=>s.jsx("ul",{className:"bg-layout-1200 flex flex-col gap-1 p-1 text-gray-700 dark:text-gray-200",children:ge==null?void 0:ge.map((Q,ce)=>Q.element?s.jsx("li",{className:"cursor-pointer items-center rounded hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white",children:Q.element},ce):s.jsxs("li",{onClick:()=>{Q.disabled?console.log("button is disabled"):Q==null||Q.action(u)},className:$e("transition-all",Q.isButton?"flex cursor-pointer flex-row items-center rounded-inner bg-buttonPrimary-500 px-4 py-2 text-white hover:bg-buttonPrimary-700 rtl:flex-row-reverse":Q.disabled?"text-gray-300":" flex cursor-pointer flex-row items-center rounded-inner hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white ",H[o]),children:[Q.icon&&s.jsx("div",{className:o==="small"?"mr-1 rtl:ml-1":"mr-2 rtl:ml-2",children:Q.icon}),Q.label]},ce))},xe))]})]})},tF=e=>s.jsxs("div",{className:"my-2 flex flex-col items-center justify-center gap-1 text-xs text-gray-400",children:[e.withLogo?s.jsx("a",{href:e.onLogoClicked,children:s.jsx("div",{className:"cursor-pointer",children:s.jsx("image",{href:e.logoURL,width:100,height:50})})}):null,s.jsx("div",{children:e.version}),e.credits?e.credits:null]}),rF=({orientation:e="horizontal",...t})=>{let r={vertical:"flex flex-col items-start w-fit",horizontal:"flex flex-row"};return s.jsx("div",{className:$e(r[e]," flex-wrap justify-start gap-4"),children:t.steps.map((n,a)=>s.jsx("div",{className:"my-2 flex w-auto flex-row flex-wrap justify-start ",children:s.jsx("div",{className:e==="vertical"?"flex w-full flex-row items-center":a+1===t.steps.length?"flex w-full flex-row items-center justify-start gap-2":"flex flex-row items-center justify-start gap-2 after:mx-2 after:hidden after:h-1 after:w-10 after:border-b after:border-gray-200 dark:after:border-gray-700 sm:after:inline-block sm:after:content-[''] md:w-full xl:after:mx-10",children:s.jsxs("div",{className:"flex flex-row gap-2 ",children:[s.jsx("div",{className:$e("flex h-6 w-6 min-w-[24px] items-center justify-center rounded ring-2 ring-primary/20 ring-offset-2",a+1<=t.currentStep?"bg-primary text-primary-foreground ":"bg-primary/20"),children:a+1<=t.currentStep?s.jsx("svg",{"aria-label":"Check Mark",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"0.60em",width:"0.60em",children:s.jsx("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"})}):a+1}),s.jsx("div",{className:"whitespace-nowrap",children:n})]})})},a))})},Gt=je.forwardRef(({className:e,clickable:t=!1,...r},n)=>s.jsx("div",{ref:n,className:Ve("rounded-lg border bg-card text-card-foreground shadow-sm",t&&"cursor-pointer transition-all hover:drop-shadow-md dark:hover:shadow-dark",e),...r}));Gt.displayName="Card";const Ca=je.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:Ve("flex flex-col space-y-1.5 p-6",e),...t}));Ca.displayName="CardHeader";const wa=je.forwardRef(({className:e,...t},r)=>s.jsx("h3",{ref:r,className:Ve("text-2xl font-semibold leading-none tracking-tight",e),...t}));wa.displayName="CardTitle";const ii=je.forwardRef(({className:e,...t},r)=>s.jsx("p",{ref:r,className:Ve("text-sm text-muted-foreground",e),...t}));ii.displayName="CardDescription";const $t=je.forwardRef(({headless:e,className:t,...r},n)=>s.jsx("div",{ref:n,className:Ve("p-6",e?"pt-6":"pt-0",t),...r}));$t.displayName="CardContent";const Fn=je.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:Ve("flex items-center p-6 pt-0",e),...t}));Fn.displayName="CardFooter";const nF=({variant:e="default",...t})=>s.jsxs(Gt,{onClick:t.handleClick,clickable:!!t.handleClick,children:[s.jsxs(Ca,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[s.jsx(wa,{className:"text-sm font-medium",children:t.label}),t.icon&&t.icon]}),s.jsxs($t,{children:[t.isLoading?s.jsx(ri,{className:"h-8 w-3/4"}):s.jsx("div",{className:"text-2xl font-bold",children:t.number}),t.isLoading&&t.helperText?s.jsx(ri,{className:"mt-2 h-4 w-1/2"}):t.helperText&&s.jsx("p",{className:"text-xs text-muted-foreground",children:t.helperText}),t.isLoading&&t.chart?s.jsx(ri,{className:"mt-2 h-4 w-1/2"}):t.chart]})]}),cp=h.forwardRef((e,t)=>h.createElement(St.span,we({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),aF=cp,[fd,FN]=Dn("Tooltip",[cs]),hd=cs(),oF="TooltipProvider",iF=700,dp="tooltip.open",[sF,fp]=fd(oF),lF=e=>{const{__scopeTooltip:t,delayDuration:r=iF,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:o}=e,[i,l]=h.useState(!0),u=h.useRef(!1),c=h.useRef(0);return h.useEffect(()=>{const m=c.current;return()=>window.clearTimeout(m)},[]),h.createElement(sF,{scope:t,isOpenDelayed:i,delayDuration:r,onOpen:h.useCallback(()=>{window.clearTimeout(c.current),l(!1)},[]),onClose:h.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>l(!0),n)},[n]),isPointerInTransitRef:u,onPointerInTransitChange:h.useCallback(m=>{u.current=m},[]),disableHoverableContent:a},o)},hp="Tooltip",[uF,pd]=fd(hp),cF=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:a=!1,onOpenChange:o,disableHoverableContent:i,delayDuration:l}=e,u=fp(hp,e.__scopeTooltip),c=hd(t),[m,p]=h.useState(null),x=Sn(),C=h.useRef(0),E=i??u.disableHoverableContent,v=l??u.delayDuration,A=h.useRef(!1),[S=!1,j]=Rn({prop:n,defaultProp:a,onChange:H=>{H?(u.onOpen(),document.dispatchEvent(new CustomEvent(dp))):u.onClose(),o==null||o(H)}}),O=h.useMemo(()=>S?A.current?"delayed-open":"instant-open":"closed",[S]),L=h.useCallback(()=>{window.clearTimeout(C.current),A.current=!1,j(!0)},[j]),M=h.useCallback(()=>{window.clearTimeout(C.current),j(!1)},[j]),z=h.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>{A.current=!0,j(!0)},v)},[v,j]);return h.useEffect(()=>()=>window.clearTimeout(C.current),[]),h.createElement(Yc,c,h.createElement(uF,{scope:t,contentId:x,open:S,stateAttribute:O,trigger:m,onTriggerChange:p,onTriggerEnter:h.useCallback(()=>{u.isOpenDelayed?z():L()},[u.isOpenDelayed,z,L]),onTriggerLeave:h.useCallback(()=>{E?M():window.clearTimeout(C.current)},[M,E]),onOpen:L,onClose:M,disableHoverableContent:E},r))},Eb="TooltipTrigger",dF=h.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,a=pd(Eb,r),o=fp(Eb,r),i=hd(r),l=h.useRef(null),u=Kt(t,l,a.onTriggerChange),c=h.useRef(!1),m=h.useRef(!1),p=h.useCallback(()=>c.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),h.createElement(Zh,we({asChild:!0},i),h.createElement(St.button,we({"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute},n,{ref:u,onPointerMove:at(e.onPointerMove,x=>{x.pointerType!=="touch"&&!m.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),m.current=!0)}),onPointerLeave:at(e.onPointerLeave,()=>{a.onTriggerLeave(),m.current=!1}),onPointerDown:at(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:at(e.onFocus,()=>{c.current||a.onOpen()}),onBlur:at(e.onBlur,a.onClose),onClick:at(e.onClick,a.onClose)})))}),fF="TooltipPortal",[jN,hF]=fd(fF,{forceMount:void 0}),Yl="TooltipContent",pF=h.forwardRef((e,t)=>{const r=hF(Yl,e.__scopeTooltip),{forceMount:n=r.forceMount,side:a="top",...o}=e,i=pd(Yl,e.__scopeTooltip);return h.createElement(sn,{present:n||i.open},i.disableHoverableContent?h.createElement(Db,we({side:a},o,{ref:t})):h.createElement(gF,we({side:a},o,{ref:t})))}),gF=h.forwardRef((e,t)=>{const r=pd(Yl,e.__scopeTooltip),n=fp(Yl,e.__scopeTooltip),a=h.useRef(null),o=Kt(t,a),[i,l]=h.useState(null),{trigger:u,onClose:c}=r,m=a.current,{onPointerInTransitChange:p}=n,x=h.useCallback(()=>{l(null),p(!1)},[p]),C=h.useCallback((E,v)=>{const A=E.currentTarget,S={x:E.clientX,y:E.clientY},j=yF(S,A.getBoundingClientRect()),O=CF(S,j),L=wF(v.getBoundingClientRect()),M=DF([...O,...L]);l(M),p(!0)},[p]);return h.useEffect(()=>()=>x(),[x]),h.useEffect(()=>{if(u&&m){const E=A=>C(A,m),v=A=>C(A,u);return u.addEventListener("pointerleave",E),m.addEventListener("pointerleave",v),()=>{u.removeEventListener("pointerleave",E),m.removeEventListener("pointerleave",v)}}},[u,m,C,x]),h.useEffect(()=>{if(i){const E=v=>{const A=v.target,S={x:v.clientX,y:v.clientY},j=(u==null?void 0:u.contains(A))||(m==null?void 0:m.contains(A)),O=!EF(S,i);j?x():O&&(x(),c())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[u,m,i,c,x]),h.createElement(Db,we({},e,{ref:o}))}),[mF,vF]=fd(hp,{isInside:!1}),Db=h.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:i,...l}=e,u=pd(Yl,r),c=hd(r),{onClose:m}=u;return h.useEffect(()=>(document.addEventListener(dp,m),()=>document.removeEventListener(dp,m)),[m]),h.useEffect(()=>{if(u.trigger){const p=x=>{const C=x.target;C!=null&&C.contains(u.trigger)&&m()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[u.trigger,m]),h.createElement(zl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:m},h.createElement(Uh,we({"data-state":u.stateAttribute},c,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),h.createElement(r0,null,n),h.createElement(mF,{scope:r,isInside:!0},h.createElement(aF,{id:u.contentId,role:"tooltip"},a||n))))}),bF="TooltipArrow",xF=h.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,a=hd(r);return vF(bF,r).isInside?null:h.createElement(kD,we({},a,n,{ref:t}))});function yF(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,a,o)){case o:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function CF(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function wF(e){const{top:t,right:r,bottom:n,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:n},{x:a,y:n}]}function EF(e,t){const{x:r,y:n}=e;let a=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const l=t[o].x,u=t[o].y,c=t[i].x,m=t[i].y;u>n!=m>n&&r<(c-l)*(n-u)/(m-u)+l&&(a=!a)}return a}function DF(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),SF(t)}function SF(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const a=e[n];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(a.y-i.y)>=(o.y-i.y)*(a.x-i.x))t.pop();else break}t.push(a)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const a=e[n];for(;r.length>=2;){const o=r[r.length-1],i=r[r.length-2];if((o.x-i.x)*(a.y-i.y)>=(o.y-i.y)*(a.x-i.x))r.pop();else break}r.push(a)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}const AF=cF,FF=dF,Sb=pF,Ab=xF,Fb=h.forwardRef(({className:e,sideOffset:t=4,...r},n)=>s.jsx(Sb,{ref:n,sideOffset:t,className:Ve("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));Fb.displayName=Sb.displayName;const jF=h.forwardRef(({className:e,...t},r)=>s.jsx(Ab,{ref:r,className:Ve(e),...t}));jF.displayName=Ab.displayName;const ms=({side:e,open:t,content:r,children:n,defaultOpen:a,onOpenChange:o,delayDuration:i=300,...l})=>s.jsx(lF,{delayDuration:i,children:s.jsxs(AF,{open:t,defaultOpen:a,onOpenChange:o,children:[s.jsx(FF,{asChild:!0,children:n}),s.jsx(Fb,{side:e,align:"center",...l,children:r})]})});function jb({timeout:e=2e3}={}){const[t,r]=h.useState(null),[n,a]=h.useState(!1),[o,i]=h.useState(null),l=m=>{clearTimeout(o),i(setTimeout(()=>a(!1),e)),a(m)};return{copy:m=>{"clipboard"in navigator?navigator.clipboard.writeText(m).then(()=>l(!0)).catch(p=>r(p)):r(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{a(!1),r(null),clearTimeout(o)},error:t,copied:n}}const IF=({tabs:e,code:t,fileName:r,width:n="full"})=>{const a=jb(),[o,i]=h.useState(0);let l={full:"w-full",md:"w-full max-w-md",sm:"w-full max-w-sm",xs:"w-full max-w-xs"};return s.jsxs("div",{className:Ve(l[n],"w-full flex-col items-center rounded bg-gray-200 text-left text-sm text-white dark:bg-gray-800 sm:text-base"),children:[e&&s.jsx("div",{className:"flex flex-row gap-2 rounded-t bg-gray-100 p-2 pb-0 text-black dark:bg-gray-700 dark:text-white",children:e.map((u,c)=>s.jsx("div",{className:Ve(o===c?" border-b-2 border-primary":"bg-transparent"),children:s.jsx("div",{onClick:()=>i(c),className:Ve("mb-1 w-full max-w-[52px] cursor-pointer rounded-inner p-2 py-1 text-center text-[0.75rem] hover:bg-gray-300 dark:hover:bg-gray-500"),children:u.title})}))}),r&&s.jsx("div",{className:"flex flex-row gap-2 rounded-t bg-gray-100 p-2 pb-0 text-black dark:bg-gray-700 dark:text-white",children:s.jsx("div",{className:Ve("mb-1 w-full max-w-[52px] rounded-inner p-2 py-1 text-center text-[0.75rem]"),children:r})}),s.jsx("pre",{children:s.jsxs("code",{className:Ve("flex w-full flex-row items-start justify-between rounded bg-gray-200 p-0 text-left text-sm text-black dark:bg-gray-800 dark:text-white sm:text-base"),children:[s.jsx("div",{className:"flex min-h-[37.75px] w-full flex-col justify-center p-4 ",children:e?e[o].code:t}),s.jsx("div",{className:"flex w-fit flex-row items-center gap-2 p-2",children:s.jsx(ms,{open:a.copied,side:"left",content:s.jsx("div",{children:"Copied!"}),children:s.jsx(qe,{size:"icon",onClick:()=>a.copy(e?e[o].code:t),children:s.jsxs("svg",{"aria-label":"Copy Icon",stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:"1em",width:"1em",children:[s.jsx("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),s.jsx("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})]})})})})]})})]})},TF=()=>{const[e,t]=h.useState(""),r=n=>{t(n.target.value)};return s.jsx("div",{className:"relative inline-block text-left",children:s.jsx("span",{className:"rounded-md shadow-sm",children:s.jsx("input",{type:"date",value:e,onChange:r,className:"block w-full rounded border border-gray-300 bg-white p-2 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500"})})})};var pp={exports:{}};/*
97
+ `)},IS=0,gs=[];function TS(e){var t=je.useRef([]),r=je.useRef([0,0]),n=je.useRef(),a=je.useState(IS++)[0],o=je.useState(function(){return O1()})[0],i=je.useRef(e);je.useEffect(function(){i.current=e},[e]),je.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var v=KD([e.lockRef.current],(e.shards||[]).map(_1),!0).filter(Boolean);return v.forEach(function(A){return A.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),v.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=je.useCallback(function(v,A){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var S=od(v),j=r.current,O="deltaX"in v?v.deltaX:j[0]-S[0],L="deltaY"in v?v.deltaY:j[1]-S[1],M,z=v.target,H=Math.abs(O)>Math.abs(L)?"h":"v";if("touches"in v&&H==="h"&&z.type==="range")return!1;var oe=M1(H,z);if(!oe)return!0;if(oe?M=H:(M=H==="v"?"h":"v",oe=M1(H,z)),!oe)return!1;if(!n.current&&"changedTouches"in v&&(O||L)&&(n.current=M),!M)return!0;var J=n.current||M;return AS(J,A,v,J==="h"?O:L,!0)},[]),u=je.useCallback(function(v){var A=v;if(!(!gs.length||gs[gs.length-1]!==o)){var S="deltaY"in A?L1(A):od(A),j=t.current.filter(function(M){return M.name===A.type&&M.target===A.target&&FS(M.delta,S)})[0];if(j&&j.should){A.cancelable&&A.preventDefault();return}if(!j){var O=(i.current.shards||[]).map(_1).filter(Boolean).filter(function(M){return M.contains(A.target)}),L=O.length>0?l(A,O[0]):!i.current.noIsolation;L&&A.cancelable&&A.preventDefault()}}},[]),c=je.useCallback(function(v,A,S,j){var O={name:v,delta:A,target:S,should:j};t.current.push(O),setTimeout(function(){t.current=t.current.filter(function(L){return L!==O})},1)},[]),m=je.useCallback(function(v){r.current=od(v),n.current=void 0},[]),p=je.useCallback(function(v){c(v.type,L1(v),v.target,l(v,e.lockRef.current))},[]),x=je.useCallback(function(v){c(v.type,od(v),v.target,l(v,e.lockRef.current))},[]);je.useEffect(function(){return gs.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:x}),document.addEventListener("wheel",u,ps),document.addEventListener("touchmove",u,ps),document.addEventListener("touchstart",m,ps),function(){gs=gs.filter(function(v){return v!==o}),document.removeEventListener("wheel",u,ps),document.removeEventListener("touchmove",u,ps),document.removeEventListener("touchstart",m,ps)}},[]);var C=e.removeScrollBar,E=e.inert;return je.createElement(je.Fragment,null,E?je.createElement(o,{styles:jS(a)}):null,C?je.createElement(xS,{gapMode:"margin"}):null)}const kS=sS(B1,TS);var W1=je.forwardRef(function(e,t){return je.createElement(nd,ya({},e,{ref:t,sideCar:kS}))});W1.classNames=nd.classNames;const rp=W1,np=["Enter"," "],BS=["ArrowDown","PageUp","Home"],V1=["ArrowUp","PageDown","End"],PS=[...BS,...V1],OS={ltr:[...np,"ArrowRight"],rtl:[...np,"ArrowLeft"]},NS={ltr:["ArrowLeft"],rtl:["ArrowRight"]},id="Menu",[Gl,MS,RS]=Gc(id),[oi,H1]=Dn(id,[RS,cs,Kc]),sd=cs(),z1=Kc(),[G1,Co]=oi(id),[$S,Zl]=oi(id),LS=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:a,onOpenChange:o,modal:i=!0}=e,l=sd(t),[u,c]=h.useState(null),m=h.useRef(!1),p=Ur(o),x=Zc(a);return h.useEffect(()=>{const C=()=>{m.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>m.current=!1;return document.addEventListener("keydown",C,{capture:!0}),()=>{document.removeEventListener("keydown",C,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),h.createElement(Yc,l,h.createElement(G1,{scope:t,open:r,onOpenChange:p,content:u,onContentChange:c},h.createElement($S,{scope:t,onClose:h.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:m,dir:x,modal:i},n)))},Z1=h.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,a=sd(r);return h.createElement(Zh,we({},a,n,{ref:t}))}),U1="MenuPortal",[_S,X1]=oi(U1,{forceMount:void 0}),WS=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:a}=e,o=Co(U1,t);return h.createElement(_S,{scope:t,forceMount:r},h.createElement(sn,{present:r||o.open},h.createElement(Jc,{asChild:!0,container:a},n)))},ea="MenuContent",[VS,ap]=oi(ea),HS=h.forwardRef((e,t)=>{const r=X1(ea,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,o=Co(ea,e.__scopeMenu),i=Zl(ea,e.__scopeMenu);return h.createElement(Gl.Provider,{scope:e.__scopeMenu},h.createElement(sn,{present:n||o.open},h.createElement(Gl.Slot,{scope:e.__scopeMenu},i.modal?h.createElement(zS,we({},a,{ref:t})):h.createElement(GS,we({},a,{ref:t})))))}),zS=h.forwardRef((e,t)=>{const r=Co(ea,e.__scopeMenu),n=h.useRef(null),a=Kt(t,n);return h.useEffect(()=>{const o=n.current;if(o)return Kh(o)},[]),h.createElement(op,we({},e,{ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:at(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)}))}),GS=h.forwardRef((e,t)=>{const r=Co(ea,e.__scopeMenu);return h.createElement(op,we({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)}))}),op=h.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:c,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:x,onDismiss:C,disableOutsideScroll:E,...v}=e,A=Co(ea,r),S=Zl(ea,r),j=sd(r),O=z1(r),L=MS(r),[M,z]=h.useState(null),H=h.useRef(null),oe=Kt(t,H,A.onContentChange),J=h.useRef(0),ge=h.useRef(""),xe=h.useRef(0),Q=h.useRef(null),ce=h.useRef("right"),N=h.useRef(0),W=E?rp:h.Fragment,ee=E?{as:Ko,allowPinchZoom:!0}:void 0,de=te=>{var K,se;const fe=ge.current+te,Se=L().filter(Pe=>!Pe.disabled),G=document.activeElement,he=(K=Se.find(Pe=>Pe.ref.current===G))===null||K===void 0?void 0:K.textValue,ae=Se.map(Pe=>Pe.textValue),me=lA(ae,fe,he),Me=(se=Se.find(Pe=>Pe.textValue===me))===null||se===void 0?void 0:se.ref.current;(function Pe(We){ge.current=We,window.clearTimeout(J.current),We!==""&&(J.current=window.setTimeout(()=>Pe(""),1e3))})(fe),Me&&setTimeout(()=>Me.focus())};h.useEffect(()=>()=>window.clearTimeout(J.current),[]),Vh();const ne=h.useCallback(te=>{var K,se;return ce.current===((K=Q.current)===null||K===void 0?void 0:K.side)&&cA(te,(se=Q.current)===null||se===void 0?void 0:se.area)},[]);return h.createElement(VS,{scope:r,searchRef:ge,onItemEnter:h.useCallback(te=>{ne(te)&&te.preventDefault()},[ne]),onItemLeave:h.useCallback(te=>{var K;ne(te)||((K=H.current)===null||K===void 0||K.focus(),z(null))},[ne]),onTriggerLeave:h.useCallback(te=>{ne(te)&&te.preventDefault()},[ne]),pointerGraceTimerRef:xe,onPointerGraceIntentChange:h.useCallback(te=>{Q.current=te},[])},h.createElement(W,ee,h.createElement(Gh,{asChild:!0,trapped:a,onMountAutoFocus:at(o,te=>{var K;te.preventDefault(),(K=H.current)===null||K===void 0||K.focus()}),onUnmountAutoFocus:i},h.createElement(zl,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:x,onDismiss:C},h.createElement(F1,we({asChild:!0},O,{dir:S.dir,orientation:"vertical",loop:n,currentTabStopId:M,onCurrentTabStopIdChange:z,onEntryFocus:at(u,te=>{S.isUsingKeyboardRef.current||te.preventDefault()})}),h.createElement(Uh,we({role:"menu","aria-orientation":"vertical","data-state":tb(A.open),"data-radix-menu-content":"",dir:S.dir},j,v,{ref:oe,style:{outline:"none",...v.style},onKeyDown:at(v.onKeyDown,te=>{const se=te.target.closest("[data-radix-menu-content]")===te.currentTarget,fe=te.ctrlKey||te.altKey||te.metaKey,Se=te.key.length===1;se&&(te.key==="Tab"&&te.preventDefault(),!fe&&Se&&de(te.key));const G=H.current;if(te.target!==G||!PS.includes(te.key))return;te.preventDefault();const ae=L().filter(me=>!me.disabled).map(me=>me.ref.current);V1.includes(te.key)&&ae.reverse(),iA(ae)}),onBlur:at(e.onBlur,te=>{te.currentTarget.contains(te.target)||(window.clearTimeout(J.current),ge.current="")}),onPointerMove:at(e.onPointerMove,Ul(te=>{const K=te.target,se=N.current!==te.clientX;if(te.currentTarget.contains(K)&&se){const fe=te.clientX>N.current?"right":"left";ce.current=fe,N.current=te.clientX}}))})))))))}),ZS=h.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return h.createElement(St.div,we({},n,{ref:t}))}),ip="MenuItem",Y1="menu.itemSelect",sp=h.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...a}=e,o=h.useRef(null),i=Zl(ip,e.__scopeMenu),l=ap(ip,e.__scopeMenu),u=Kt(t,o),c=h.useRef(!1),m=()=>{const p=o.current;if(!r&&p){const x=new CustomEvent(Y1,{bubbles:!0,cancelable:!0});p.addEventListener(Y1,C=>n==null?void 0:n(C),{once:!0}),Jf(p,x),x.defaultPrevented?c.current=!1:i.onClose()}};return h.createElement(J1,we({},a,{ref:u,disabled:r,onClick:at(e.onClick,m),onPointerDown:p=>{var x;(x=e.onPointerDown)===null||x===void 0||x.call(e,p),c.current=!0},onPointerUp:at(e.onPointerUp,p=>{var x;c.current||(x=p.currentTarget)===null||x===void 0||x.click()}),onKeyDown:at(e.onKeyDown,p=>{const x=l.searchRef.current!=="";r||x&&p.key===" "||np.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})}))}),J1=h.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:a,...o}=e,i=ap(ip,r),l=z1(r),u=h.useRef(null),c=Kt(t,u),[m,p]=h.useState(!1),[x,C]=h.useState("");return h.useEffect(()=>{const E=u.current;if(E){var v;C(((v=E.textContent)!==null&&v!==void 0?v:"").trim())}},[o.children]),h.createElement(Gl.ItemSlot,{scope:r,disabled:n,textValue:a??x},h.createElement(j1,we({asChild:!0},l,{focusable:!n}),h.createElement(St.div,we({role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},o,{ref:c,onPointerMove:at(e.onPointerMove,Ul(E=>{n?i.onItemLeave(E):(i.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus())})),onPointerLeave:at(e.onPointerLeave,Ul(E=>i.onItemLeave(E))),onFocus:at(e.onFocus,()=>p(!0)),onBlur:at(e.onBlur,()=>p(!1))}))))}),US=h.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...a}=e;return h.createElement(K1,{scope:e.__scopeMenu,checked:r},h.createElement(sp,we({role:"menuitemcheckbox","aria-checked":ud(r)?"mixed":r},a,{ref:t,"data-state":lp(r),onSelect:at(a.onSelect,()=>n==null?void 0:n(ud(r)?!0:!r),{checkForDefaultPrevented:!1})})))}),XS="MenuRadioGroup",[SN,YS]=oi(XS,{value:void 0,onValueChange:()=>{}}),JS="MenuRadioItem",QS=h.forwardRef((e,t)=>{const{value:r,...n}=e,a=YS(JS,e.__scopeMenu),o=r===a.value;return h.createElement(K1,{scope:e.__scopeMenu,checked:o},h.createElement(sp,we({role:"menuitemradio","aria-checked":o},n,{ref:t,"data-state":lp(o),onSelect:at(n.onSelect,()=>{var i;return(i=a.onValueChange)===null||i===void 0?void 0:i.call(a,r)},{checkForDefaultPrevented:!1})})))}),Q1="MenuItemIndicator",[K1,KS]=oi(Q1,{checked:!1}),qS=h.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...a}=e,o=KS(Q1,r);return h.createElement(sn,{present:n||ud(o.checked)||o.checked===!0},h.createElement(St.span,we({},a,{ref:t,"data-state":lp(o.checked)})))}),eA=h.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return h.createElement(St.div,we({role:"separator","aria-orientation":"horizontal"},n,{ref:t}))}),q1="MenuSub",[tA,eb]=oi(q1),rA=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:a}=e,o=Co(q1,t),i=sd(t),[l,u]=h.useState(null),[c,m]=h.useState(null),p=Ur(a);return h.useEffect(()=>(o.open===!1&&p(!1),()=>p(!1)),[o.open,p]),h.createElement(Yc,i,h.createElement(G1,{scope:t,open:n,onOpenChange:p,content:c,onContentChange:m},h.createElement(tA,{scope:t,contentId:Sn(),triggerId:Sn(),trigger:l,onTriggerChange:u},r)))},ld="MenuSubTrigger",nA=h.forwardRef((e,t)=>{const r=Co(ld,e.__scopeMenu),n=Zl(ld,e.__scopeMenu),a=eb(ld,e.__scopeMenu),o=ap(ld,e.__scopeMenu),i=h.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=o,c={__scopeMenu:e.__scopeMenu},m=h.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return h.useEffect(()=>m,[m]),h.useEffect(()=>{const p=l.current;return()=>{window.clearTimeout(p),u(null)}},[l,u]),h.createElement(Z1,we({asChild:!0},c),h.createElement(J1,we({id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":tb(r.open)},e,{ref:xc(t,a.onTriggerChange),onClick:p=>{var x;(x=e.onClick)===null||x===void 0||x.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:at(e.onPointerMove,Ul(p=>{o.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!r.open&&!i.current&&(o.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),m()},100))})),onPointerLeave:at(e.onPointerLeave,Ul(p=>{var x;m();const C=(x=r.content)===null||x===void 0?void 0:x.getBoundingClientRect();if(C){var E;const v=(E=r.content)===null||E===void 0?void 0:E.dataset.side,A=v==="right",S=A?-5:5,j=C[A?"left":"right"],O=C[A?"right":"left"];o.onPointerGraceIntentChange({area:[{x:p.clientX+S,y:p.clientY},{x:j,y:C.top},{x:O,y:C.top},{x:O,y:C.bottom},{x:j,y:C.bottom}],side:v}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(p),p.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:at(e.onKeyDown,p=>{const x=o.searchRef.current!=="";if(!(e.disabled||x&&p.key===" ")&&OS[n.dir].includes(p.key)){var C;r.onOpenChange(!0),(C=r.content)===null||C===void 0||C.focus(),p.preventDefault()}})})))}),aA="MenuSubContent",oA=h.forwardRef((e,t)=>{const r=X1(ea,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,o=Co(ea,e.__scopeMenu),i=Zl(ea,e.__scopeMenu),l=eb(aA,e.__scopeMenu),u=h.useRef(null),c=Kt(t,u);return h.createElement(Gl.Provider,{scope:e.__scopeMenu},h.createElement(sn,{present:n||o.open},h.createElement(Gl.Slot,{scope:e.__scopeMenu},h.createElement(op,we({id:l.contentId,"aria-labelledby":l.triggerId},a,{ref:c,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{var p;i.isUsingKeyboardRef.current&&((p=u.current)===null||p===void 0||p.focus()),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:at(e.onFocusOutside,m=>{m.target!==l.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:at(e.onEscapeKeyDown,m=>{i.onClose(),m.preventDefault()}),onKeyDown:at(e.onKeyDown,m=>{const p=m.currentTarget.contains(m.target),x=NS[i.dir].includes(m.key);if(p&&x){var C;o.onOpenChange(!1),(C=l.trigger)===null||C===void 0||C.focus(),m.preventDefault()}})})))))});function tb(e){return e?"open":"closed"}function ud(e){return e==="indeterminate"}function lp(e){return ud(e)?"indeterminate":e?"checked":"unchecked"}function iA(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function sA(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function lA(e,t,r){const a=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let i=sA(e,Math.max(o,0));a.length===1&&(i=i.filter(c=>c!==r));const u=i.find(c=>c.toLowerCase().startsWith(a.toLowerCase()));return u!==r?u:void 0}function uA(e,t){const{x:r,y:n}=e;let a=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const l=t[o].x,u=t[o].y,c=t[i].x,m=t[i].y;u>n!=m>n&&r<(c-l)*(n-u)/(m-u)+l&&(a=!a)}return a}function cA(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return uA(r,t)}function Ul(e){return t=>t.pointerType==="mouse"?e(t):void 0}const dA=LS,fA=Z1,hA=WS,pA=HS,gA=ZS,mA=sp,vA=US,bA=QS,xA=qS,yA=eA,CA=rA,wA=nA,EA=oA,rb="DropdownMenu",[DA,AN]=Dn(rb,[H1]),An=H1(),[SA,nb]=DA(rb),AA=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:a,defaultOpen:o,onOpenChange:i,modal:l=!0}=e,u=An(t),c=h.useRef(null),[m=!1,p]=Rn({prop:a,defaultProp:o,onChange:i});return h.createElement(SA,{scope:t,triggerId:Sn(),triggerRef:c,contentId:Sn(),open:m,onOpenChange:p,onOpenToggle:h.useCallback(()=>p(x=>!x),[p]),modal:l},h.createElement(dA,we({},u,{open:m,onOpenChange:p,dir:n,modal:l}),r))},FA="DropdownMenuTrigger",jA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...a}=e,o=nb(FA,r),i=An(r);return h.createElement(fA,we({asChild:!0},i),h.createElement(St.button,we({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":n?"":void 0,disabled:n},a,{ref:xc(t,o.triggerRef),onPointerDown:at(e.onPointerDown,l=>{!n&&l.button===0&&l.ctrlKey===!1&&(o.onOpenToggle(),o.open||l.preventDefault())}),onKeyDown:at(e.onKeyDown,l=>{n||(["Enter"," "].includes(l.key)&&o.onOpenToggle(),l.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})))}),IA=e=>{const{__scopeDropdownMenu:t,...r}=e,n=An(t);return h.createElement(hA,we({},n,r))},TA="DropdownMenuContent",kA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=nb(TA,r),o=An(r),i=h.useRef(!1);return h.createElement(pA,we({id:a.contentId,"aria-labelledby":a.triggerId},o,n,{ref:t,onCloseAutoFocus:at(e.onCloseAutoFocus,l=>{var u;i.current||(u=a.triggerRef.current)===null||u===void 0||u.focus(),i.current=!1,l.preventDefault()}),onInteractOutside:at(e.onInteractOutside,l=>{const u=l.detail.originalEvent,c=u.button===0&&u.ctrlKey===!0,m=u.button===2||c;(!a.modal||m)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),BA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(gA,we({},a,n,{ref:t}))}),PA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(mA,we({},a,n,{ref:t}))}),OA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(vA,we({},a,n,{ref:t}))}),NA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(bA,we({},a,n,{ref:t}))}),MA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(xA,we({},a,n,{ref:t}))}),RA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(yA,we({},a,n,{ref:t}))}),$A=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:a,defaultOpen:o}=e,i=An(t),[l=!1,u]=Rn({prop:n,defaultProp:o,onChange:a});return h.createElement(CA,we({},i,{open:l,onOpenChange:u}),r)},LA=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(wA,we({},a,n,{ref:t}))}),_A=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=An(r);return h.createElement(EA,we({},a,n,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),WA=AA,VA=jA,ab=IA,ob=kA,ib=BA,sb=PA,lb=OA,ub=NA,cb=MA,db=RA,HA=$A,fb=LA,hb=_A,zA=WA,GA=VA,pb=ab,ZA=HA,gb=je.forwardRef(({className:e,inset:t,children:r,...n},a)=>s.jsxs(fb,{ref:a,className:Ve("flex cursor-default select-none items-center justify-between rounded-sm px-2 py-3 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...n,children:[s.jsx("div",{className:"flex flex-row items-center gap-2",children:r})," ",s.jsx("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",className:Ve(n.dir==="rtl"?"rotate-180":""),children:s.jsx("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"})})]}));gb.displayName=fb.displayName;const mb=je.forwardRef(({className:e,...t},r)=>s.jsx(hb,{ref:r,className:Ve("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));mb.displayName=hb.displayName;const vb=je.forwardRef(({className:e,sideOffset:t=4,...r},n)=>s.jsx(ab,{children:s.jsx(ob,{ref:n,sideOffset:t,className:Ve("z-50 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));vb.displayName=ob.displayName;const up=je.forwardRef(({className:e,inset:t,...r},n)=>s.jsxs(sb,{disabled:r.disabled,ref:n,className:Ve("relative flex cursor-pointer select-none items-center justify-between rounded-sm text-sm outline-none transition-colors focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r,children:[s.jsx("div",{className:"flex flex-row items-center gap-2 ",children:r.children}),r.end&&r.end]}));up.displayName=sb.displayName;const UA=je.forwardRef(({className:e,children:t,checked:r,...n},a)=>s.jsxs(lb,{ref:a,className:Ve("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...n,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsxs(cb,{children:[s.jsx("svg",{"aria-label":"Check Mark",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"0.60em",width:"0.60em",children:s.jsx("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"})})," "]})}),t]}));UA.displayName=lb.displayName;const XA=je.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(ub,{ref:n,className:Ve("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(cb,{children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24","aria-label":"Circle",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-2 w-2 fill-current",children:s.jsx("circle",{cx:"12",cy:"12",r:"10"})})})}),t]}));XA.displayName=ub.displayName;const bb=je.forwardRef(({className:e,inset:t,...r},n)=>s.jsx(ib,{ref:n,className:Ve("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));bb.displayName=ib.displayName;const xb=je.forwardRef(({className:e,...t},r)=>s.jsx(db,{ref:r,className:Ve("-mx-1 my-1 h-px bg-muted",e),...t}));xb.displayName=db.displayName;const Xl=({trigger:e,items:t,direction:r,onItemSelect:n,sideOffset:a,side:o,className:i,triggerClassname:l,align:u,alignOffset:c,selectCallback:m,size:p="default",width:x="default"})=>{const C={default:"min-w-[8rem]",sm:"w-fit",lg:"w-[200px]",parent:"ddm-w-parent"},E={default:"px-2 py-3 ",sm:"text-xs px-1.5 py-1.5"};return s.jsxs(zA,{dir:r,children:[s.jsx(GA,{asChild:!0,className:l,children:e}),s.jsx(pb,{children:s.jsx(vb,{side:o,sideOffset:a,className:Ve(i,C[x],"flex flex-col gap-2"),align:u,alignOffset:c,children:t.map((v,A)=>v.type==="separator"?s.jsx(xb,{},A):v.type==="label"?s.jsx(bb,{children:v.label},A):v.subitems?s.jsxs(ZA,{children:[s.jsxs(gb,{className:Ve(E[p]),dir:r,children:[v.icon&&v.icon,v.label&&v.label]}),s.jsx(pb,{children:s.jsx(mb,{children:v.subitems.map((S,j)=>s.jsxs(up,{className:Ve(E[p],!v.icon&&!v.label?"px-0 py-0 focus:bg-transparent":"focus:bg-accent"),disabled:S.disabled,onSelect:()=>{S.action(),m&&m(S.value)},children:[S.icon&&S.icon,S.label&&S.label]},j))})})]},A):s.jsxs(up,{disabled:v.disabled,onSelect:S=>{v.presist&&S.preventDefault(),v.action&&v.action(),m&&m(v.value)},end:v.end,className:Ve(E[p],!v.icon&&!v.label?"px-0 py-0 focus:bg-transparent ":"focus:bg-accent ",v.presist&&"focus:bg-transparent"),children:[v.icon&&v.icon,v.label&&v.label]},A))})})]})},yb=()=>s.jsx("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:s.jsx("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"})}),Cb=({size:e="normal",bodyColor:t="white",headerColor:r="gray-200",borders:n="all",highlightFirst:a=!1,direction:o="ltr",bordersWidth:i="1",pagination:l=!0,...u})=>{var xe,Q,ce,N,W,ee,de,ne;const[c,m]=h.useState(10),[p,x]=h.useState(null),[C,E]=h.useState(1);h.useState(null);const[v,A]=h.useState(u.rows),[S,j]=h.useState(null),[O,L]=h.useState(null),{slice:M,range:z}=K9(u.rows,C,c,S,O);let H=o==="rtl",oe={normal:"py-3 px-6",small:"px-3 py-1"};const J=(te,K)=>{K&&(j(te),L(se=>se==="asc"?"desc":"asc"))},ge=()=>{(M==null?void 0:M.length)<1&&C!==1&&E(C-1),p&&E(p)};return h.useEffect(()=>{ge()},[M,C]),s.jsxs("div",{className:"relative flex flex-col gap-2 ",children:[u.isLoading?s.jsx(ri,{className:"h-[105px] w-full"}):s.jsx(s.Fragment,{children:s.jsxs("div",{className:`overflow-x-auto rounded bg-${r}`,children:[u.headerTools&&s.jsx("div",{className:"flex flex-row items-center justify-between gap-2 border bg-background px-2 py-2",children:u.headerTools}),s.jsxs("table",{className:$e("w-full rounded bg-muted text-left text-sm text-muted-foreground",`bg-${r}`),children:[s.jsx("thead",{className:$e("bg-muted text-xs uppercase text-muted-foreground ",n==="rows"||n==="all"||n==="inner"?"border-b ":""),children:s.jsxs("tr",{children:[u.columns.map((te,K)=>{if(!te.hidden)return s.jsxs("th",{onClick:()=>te.sortable&&J(K,te.sortable),scope:"col",colSpan:2,className:$e(te.sortable?"cursor-pointer hover:bg-muted-foreground/10":"",oe[e],K!==0&&(n==="cols"||n==="all"||n==="inner")?`border-r border-r-[${i}px] border-l border-l-[${i}px]`:""),children:[te.value,S===K&&s.jsx("span",{children:O==="asc"?" ▲":" ▼"})]},K)}),u.actions?s.jsx("th",{scope:"col",className:$e(oe[e],"w-[calc(1%)] text-center"),children:((xe=u.texts)==null?void 0:xe.actions)??"Actions"}):null]})}),s.jsx("tbody",{className:t&&u.rows?`bg-${t}`:"bg-transparent",children:v?M==null?void 0:M.map((te,K)=>{let se=K==(M==null?void 0:M.length)-1;return s.jsxs("tr",{className:$e(" text-mute-foreground border bg-background",u.clickable?"hover:bg-gray-100":"",!se&&(n==="all"||n==="rows"||n==="inner")?`border-b border-b-[${i}px]`:""),children:[te==null?void 0:te.map((fe,Se)=>{let G=Se===0,he=Se===(te==null?void 0:te.length)-1,ae=H&&se&&he&&!u.actions,me=H&&se&&G,Me=!H&&se&&G,Pe=!H&&se&&he&&!u.actions;if(!fe.hidden)return s.jsxs("td",{colSpan:2,className:$e(oe[e],a&&G?"font-bold":"font-normal",me?"rounded-bl-none rounded-br":ae||Me?"rounded-bl rounded-br-none":Pe?"rounded-bl-none rounded-br":"",!G&&!he&&(n==="cols"||n==="inner"||n==="all")?`border-l border-l-[${i}px] border-r border-r-[${i}px]`:!G&&u.actions&&(n==="cols"||n==="inner"||n==="all")?`border-l border-l-[${i}px] border-r border-r-[${i}px]`:""),children:[fe.value," ",fe.suffix&&fe.suffix]},Se)}),u.actions&&s.jsx("td",{align:H?"right":"left",className:Ve(H&&se&&"rounded-bl rounded-br-none",!H&&se&&"rounded-bl-none rounded-br"),colSpan:1,children:s.jsx("div",{className:"flex items-center justify-center",children:s.jsx(Xl,{width:u.actionsWidth,size:u.actionsSize,direction:o,side:"right",items:u.actions,selectCallback:fe=>u.handleActionClick(fe,te),trigger:s.jsx("div",{className:"flex w-fit cursor-pointer items-center justify-center rounded p-2 transition-all hover:bg-primary/20 ",children:s.jsx("svg",{"aria-label":"Vertical Three Dots Menu Icon",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:s.jsx("path",{d:"M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"})})})})})})]},K)}):s.jsx("tr",{className:"bg-transparent",children:s.jsx("td",{colSpan:20,children:s.jsx("div",{className:$e("w-full rounded-b border p-5 text-center","bg-background"),children:((Q=u.texts)==null?void 0:Q.noData)??"No Data"})})})})]})]})}),l&&s.jsxs("div",{className:"flex flex-row items-center justify-between ",children:[z.length>1?s.jsxs("div",{className:"flex w-fit flex-row items-stretch justify-center gap-2 overflow-clip rounded ",children:[s.jsx("div",{className:Ve("flex h-6 w-6 rotate-180 cursor-pointer items-center justify-center rounded border bg-background p-1 text-xs hover:bg-primary/10 dark:hover:bg-primary/10",o==="rtl"&&"rotate-0"),onClick:()=>C<=1?E(z.length):E(C-1),children:s.jsx(yb,{})}),s.jsxs("div",{className:"flex flex-row items-center overflow-clip rounded transition-all",children:[z.length>6&&z.map((te,K)=>{if(K<=0)return s.jsx("button",{className:$e("w-10 p-1 text-xs hover:bg-gray-200",C===te?"bg-primary text-primary-foreground hover:bg-primary":"bg-gray-100"),onClick:()=>E(te),children:te},K)}),(z==null?void 0:z.length)>6&&s.jsx("input",{type:"text",className:" w-10 bg-gray-100 p-1 text-center text-xs",defaultValue:C!==0||C!==z.length-1?C:"...",value:C==1||C==z.length?"...":p||C,onChange:te=>x(parseInt(te.target.value)),onKeyDown:te=>{te.key==="Enter"&&(E(p),x(null))}}),(z==null?void 0:z.length)>6&&z.map((te,K)=>{if(K>=z.length-1)return s.jsx("button",{className:$e("w-10 p-1 text-xs hover:bg-gray-200",C===te?"bg-primary text-primary-foreground hover:bg-primary":"bg-gray-100"),onClick:()=>E(te),children:te},K)}),(z==null?void 0:z.length)<=6&&z.map((te,K)=>s.jsx("button",{className:$e("w-10 p-1 text-xs",C===te?"bg-primary text-primary-foreground ":"border bg-background hover:bg-primary/10 dark:hover:bg-primary/10",o==="rtl"?K===0?"rounded-r border-l-0":K===z.length-1?"rounded-l border-r-0":"":K===0?"rounded-l border-r-0":K===z.length-1?"rounded-r border-l-0":""),onClick:()=>E(te),children:te},K))]}),s.jsx("div",{onClick:()=>C>=z.length?E(1):E(C+1),className:Ve("flex h-6 w-6 cursor-pointer items-center justify-center rounded border bg-background p-1 text-xs hover:bg-primary/10 dark:hover:bg-primary/10",o==="rtl"&&"rotate-180"),children:s.jsx(yb,{})})]}):s.jsx("div",{}),u.rows?s.jsxs("div",{className:"flex w-fit flex-row items-center gap-2 ",children:[s.jsxs("div",{className:"text-xs ",children:[u.rows.length," ",((ce=u.texts)==null?void 0:ce.items)??"Items"]}),s.jsxs("select",{value:c,className:"h-6 cursor-pointer rounded border bg-background px-2 text-xs",onChange:te=>{m(parseInt(te.target.value))},children:[s.jsxs("option",{value:10,style:{fontSize:10},children:["10 / ",((N=u.texts)==null?void 0:N.page)??"Page"]}),s.jsxs("option",{value:20,style:{fontSize:10},children:["20 / ",((W=u.texts)==null?void 0:W.page)??"Page"]}),s.jsxs("option",{value:30,style:{fontSize:10},children:["30 / ",((ee=u.texts)==null?void 0:ee.page)??"Page"]}),s.jsxs("option",{value:50,style:{fontSize:10},children:["50 / ",((de=u.texts)==null?void 0:de.page)??"Page"]}),s.jsxs("option",{value:100,style:{fontSize:10},children:["100 / ",((ne=u.texts)==null?void 0:ne.page)??"Page"]})]})]}):s.jsx("div",{})]})]})},YA=e=>s.jsx(Rt,{type:"search",...e}),JA=e=>{const[t,r]=h.useState(!1);return s.jsxs("div",{className:"h-fit w-full",children:[s.jsxs("button",{id:"accordion-collapse-heading-"+e.index,type:"button",className:$e(t?"rounded":"rounded-t","flex w-full items-center justify-between border border-gray-200 bg-gray-100 p-5 text-left font-medium text-gray-900 hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-800 dark:focus:ring-gray-800"),onClick:()=>r(!t),"data-accordion-target":"#accordion-collapse-body-"+e.index,"aria-expanded":"true","aria-controls":"accordion-collapse-body-"+e.index,children:[s.jsx("span",{children:e.title}),s.jsx("svg",{"data-accordion-icon":"",className:`h-6 w-6 ${t?"":"rotate-180"} shrink-0 transition-all`,fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),s.jsx("div",{id:"accordion-collapse-body-"+e.index,"aria-labelledby":"accordion-collapse-heading-"+e.index,className:$e(t?"invisible hidden h-0 p-0":"visible h-full","w-full rounded-b border border-t-0 border-gray-200 p-5 font-light dark:border-gray-700 dark:bg-gray-900"),children:s.jsx("p",{className:"mb-2 text-gray-500 dark:text-gray-400",children:e.content})})]})},wb=[{country_label:"Saudi Arabia",code:"SA",unicode:"&#x1F1F8;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SA.svg",label:"+966"},{country_label:"United Arab Emirates",code:"AE",unicode:"&#x1F1E6;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AE.svg",label:"+971"},{country_label:"Bahrain",code:"BH",unicode:"&#x1F1E7;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BH.svg",label:"+973"},{country_label:"Kuwait",code:"KW",unicode:"&#x1F1F0;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KW.svg",label:"+965"},{country_label:"Qatar",code:"QA",unicode:"&#x1F1F6;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/QA.svg",label:"+974"},{country_label:"Oman",code:"OM",unicode:"&#x1F1F4;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/OM.svg",label:"+968"},{country_label:"Andorra",value:"Andorra",code:"AD",unicode:"&#x1F1E6;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AD.svg",label:"+376"},{country_label:"Afghanistan",code:"AF",unicode:"&#x1F1E6;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AF.svg",label:"+93"},{country_label:"Antigua & Barbuda",code:"AG",unicode:"&#x1F1E6;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AG.svg",label:"+1268"},{country_label:"Anguilla",code:"AI",unicode:"&#x1F1E6;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AI.svg",label:"+1264"},{country_label:"Albania",code:"AL",unicode:"&#x1F1E6;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AL.svg",label:"+355"},{country_label:"Armenia",code:"AM",unicode:"&#x1F1E6;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AM.svg",label:"+374"},{country_label:"Angola",code:"AO",unicode:"&#x1F1E6;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AO.svg",label:"+244"},{country_label:"Antarctica",code:"AQ",unicode:"&#x1F1E6;&#x1F1F6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AQ.svg",label:"+672"},{country_label:"Argentina",code:"AR",unicode:"&#x1F1E6;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AR.svg",label:"+54"},{country_label:"American Samoa",code:"AS",unicode:"&#x1F1E6;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AS.svg",label:"+1684"},{country_label:"Austria",code:"AT",unicode:"&#x1F1E6;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AT.svg",label:"+43"},{country_label:"Australia",code:"AU",unicode:"&#x1F1E6;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AU.svg",label:"+61"},{country_label:"Aruba",code:"AW",unicode:"&#x1F1E6;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AW.svg",label:"+297"},{country_label:"Åland Islands",code:"AX",unicode:"&#x1F1E6;&#x1F1FD;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AX.svg",label:"+358"},{country_label:"Azerbaijan",code:"AZ",unicode:"&#x1F1E6;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AZ.svg",label:"+994"},{country_label:"Bosnia & Herzegovina",code:"BA",unicode:"&#x1F1E7;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BA.svg",label:"+387"},{country_label:"Barbados",code:"BB",unicode:"&#x1F1E7;&#x1F1E7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BB.svg",label:"+1246"},{country_label:"Bangladesh",code:"BD",unicode:"&#x1F1E7;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BD.svg",label:"+880"},{country_label:"Belgium",code:"BE",unicode:"&#x1F1E7;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BE.svg",label:"+32"},{country_label:"Burkina Faso",code:"BF",unicode:"&#x1F1E7;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BF.svg",label:"+226"},{country_label:"Bulgaria",code:"BG",unicode:"&#x1F1E7;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BG.svg",label:"+359"},{country_label:"Burundi",code:"BI",unicode:"&#x1F1E7;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BI.svg",label:"+257"},{country_label:"Benin",code:"BJ",unicode:"&#x1F1E7;&#x1F1EF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BJ.svg",label:"+229"},{country_label:"St. Barthélemy",code:"BL",unicode:"&#x1F1E7;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BL.svg",label:"+590"},{country_label:"Bermuda",code:"BM",unicode:"&#x1F1E7;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BM.svg",label:"+1441"},{country_label:"Brunei",code:"BN",unicode:"&#x1F1E7;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BN.svg",label:"+673"},{country_label:"Bolivia",code:"BO",unicode:"&#x1F1E7;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BO.svg",label:"+591"},{country_label:"Brazil",code:"BR",unicode:"&#x1F1E7;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BR.svg",label:"+55"},{country_label:"Bahamas",code:"BS",unicode:"&#x1F1E7;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BS.svg",label:"+1242"},{country_label:"Bhutan",code:"BT",unicode:"&#x1F1E7;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BT.svg",label:"+975"},{country_label:"Botswana",code:"BW",unicode:"&#x1F1E7;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BW.svg",label:"+267"},{country_label:"Belarus",code:"BY",unicode:"&#x1F1E7;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BY.svg",label:"+375"},{country_label:"Belize",code:"BZ",unicode:"&#x1F1E7;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BZ.svg",label:"+501"},{country_label:"Canada",code:"CA",unicode:"&#x1F1E8;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CA.svg",label:"+1"},{country_label:"Cocos (Keeling) Islands",code:"CC",unicode:"&#x1F1E8;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CC.svg",label:"+61"},{country_label:"Congo - Kinshasa",code:"CD",unicode:"&#x1F1E8;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CD.svg",label:"+243"},{country_label:"Central African Republic",code:"CF",unicode:"&#x1F1E8;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CF.svg",label:"+236"},{country_label:"Congo - Brazzaville",code:"CG",unicode:"&#x1F1E8;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CG.svg",label:"+242"},{country_label:"Switzerland",code:"CH",unicode:"&#x1F1E8;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CH.svg",label:"+41"},{country_label:"Côte d’Ivoire",code:"CI",unicode:"&#x1F1E8;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CI.svg",label:"+225"},{country_label:"Cook Islands",code:"CK",unicode:"&#x1F1E8;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CK.svg",label:"+682"},{country_label:"Chile",code:"CL",unicode:"&#x1F1E8;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CL.svg",label:"+56"},{country_label:"Cameroon",code:"CM",unicode:"&#x1F1E8;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CM.svg",label:"+237"},{country_label:"China",code:"CN",unicode:"&#x1F1E8;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CN.svg",label:"+86"},{country_label:"Colombia",code:"CO",unicode:"&#x1F1E8;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CO.svg",label:"+57"},{country_label:"Costa Rica",code:"CR",unicode:"&#x1F1E8;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CR.svg",label:"+506"},{country_label:"Cuba",code:"CU",unicode:"&#x1F1E8;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CU.svg",label:"+53"},{country_label:"Cape Verde",code:"CV",unicode:"&#x1F1E8;&#x1F1FB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CV.svg",label:"+238"},{country_label:"Christmas Island",code:"CX",unicode:"&#x1F1E8;&#x1F1FD;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CX.svg",label:"+61"},{country_label:"Cyprus",code:"CY",unicode:"&#x1F1E8;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CY.svg",label:"+357"},{country_label:"Czechia",code:"CZ",unicode:"&#x1F1E8;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CZ.svg",label:"+420"},{country_label:"Germany",code:"DE",unicode:"&#x1F1E9;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DE.svg",label:"+49"},{country_label:"Djibouti",code:"DJ",unicode:"&#x1F1E9;&#x1F1EF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DJ.svg",label:"+253"},{country_label:"Denmark",code:"DK",unicode:"&#x1F1E9;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DK.svg",label:"+45"},{country_label:"Dominica",code:"DM",unicode:"&#x1F1E9;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DM.svg",label:"+1767"},{country_label:"Dominican Republic",code:"DO",unicode:"&#x1F1E9;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DO.svg",label:"+1849"},{country_label:"Algeria",code:"DZ",unicode:"&#x1F1E9;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DZ.svg",label:"+213"},{country_label:"Ecuador",code:"EC",unicode:"&#x1F1EA;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EC.svg",label:"+593"},{country_label:"Estonia",code:"EE",unicode:"&#x1F1EA;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EE.svg",label:"+372"},{country_label:"Egypt",code:"EG",unicode:"&#x1F1EA;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EG.svg",label:"+20"},{country_label:"Eritrea",code:"ER",unicode:"&#x1F1EA;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ER.svg",label:"+291"},{country_label:"Spain",code:"ES",unicode:"&#x1F1EA;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ES.svg",label:"+34"},{country_label:"Ethiopia",code:"ET",unicode:"&#x1F1EA;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ET.svg",label:"+251"},{country_label:"Finland",code:"FI",unicode:"&#x1F1EB;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FI.svg",label:"+358"},{country_label:"Fiji",code:"FJ",unicode:"&#x1F1EB;&#x1F1EF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FJ.svg",label:"+679"},{country_label:"Falkland Islands",code:"FK",unicode:"&#x1F1EB;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FK.svg",label:"+500"},{country_label:"Micronesia",code:"FM",unicode:"&#x1F1EB;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FM.svg",label:"+691"},{country_label:"Faroe Islands",code:"FO",unicode:"&#x1F1EB;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FO.svg",label:"+298"},{country_label:"France",code:"FR",unicode:"&#x1F1EB;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FR.svg",label:"+33"},{country_label:"Gabon",code:"GA",unicode:"&#x1F1EC;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GA.svg",label:"+241"},{country_label:"United Kingdom",code:"GB",unicode:"&#x1F1EC;&#x1F1E7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GB.svg",label:"+44"},{country_label:"Grenada",code:"GD",unicode:"&#x1F1EC;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GD.svg",label:"+1473"},{country_label:"Georgia",code:"GE",unicode:"&#x1F1EC;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GE.svg",label:"+995"},{country_label:"French Guiana",code:"GF",unicode:"&#x1F1EC;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GF.svg",label:"+594"},{country_label:"Guernsey",code:"GG",unicode:"&#x1F1EC;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GG.svg",label:"+44"},{country_label:"Ghana",code:"GH",unicode:"&#x1F1EC;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GH.svg",label:"+233"},{country_label:"Gibraltar",code:"GI",unicode:"&#x1F1EC;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GI.svg",label:"+350"},{country_label:"Greenland",code:"GL",unicode:"&#x1F1EC;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GL.svg",label:"+299"},{country_label:"Gambia",code:"GM",unicode:"&#x1F1EC;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GM.svg",label:"+220"},{country_label:"Guinea",code:"GN",unicode:"&#x1F1EC;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GN.svg",label:"+224"},{country_label:"Guadeloupe",code:"GP",unicode:"&#x1F1EC;&#x1F1F5;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GP.svg",label:"+590"},{country_label:"Equatorial Guinea",code:"GQ",unicode:"&#x1F1EC;&#x1F1F6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GQ.svg",label:"+240"},{country_label:"Greece",code:"GR",unicode:"&#x1F1EC;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GR.svg",label:"+30"},{country_label:"South Georgia & South Sandwich Islands",code:"GS",unicode:"&#x1F1EC;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GS.svg",label:"+500"},{country_label:"Guatemala",code:"GT",unicode:"&#x1F1EC;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GT.svg",label:"+502"},{country_label:"Guam",code:"GU",unicode:"&#x1F1EC;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GU.svg",label:"+1671"},{country_label:"Guinea-Bissau",code:"GW",unicode:"&#x1F1EC;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GW.svg",label:"+245"},{country_label:"Guyana",code:"GY",unicode:"&#x1F1EC;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GY.svg",label:"+595"},{country_label:"Hong Kong SAR China",code:"HK",unicode:"&#x1F1ED;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HK.svg",label:"+852"},{country_label:"Honduras",code:"HN",unicode:"&#x1F1ED;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HN.svg",label:"+504"},{country_label:"Croatia",code:"HR",unicode:"&#x1F1ED;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HR.svg",label:"+385"},{country_label:"Haiti",code:"HT",unicode:"&#x1F1ED;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HT.svg",label:"+509"},{country_label:"Hungary",code:"HU",unicode:"&#x1F1ED;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HU.svg",label:"+36"},{country_label:"Indonesia",code:"ID",unicode:"&#x1F1EE;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ID.svg",label:"+62"},{country_label:"Ireland",code:"IE",unicode:"&#x1F1EE;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IE.svg",label:"+353"},{country_label:"Israel",code:"IL",unicode:"&#x1F1EE;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IL.svg",label:"+972"},{country_label:"Isle of Man",code:"IM",unicode:"&#x1F1EE;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IM.svg",label:"+44"},{country_label:"India",code:"IN",unicode:"&#x1F1EE;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IN.svg",label:"+91"},{country_label:"British Indian Ocean Territory",code:"IO",unicode:"&#x1F1EE;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IO.svg",label:"+246"},{country_label:"Iraq",code:"IQ",unicode:"&#x1F1EE;&#x1F1F6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IQ.svg",label:"+964"},{country_label:"Iran",code:"IR",unicode:"&#x1F1EE;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IR.svg",label:"+98"},{country_label:"Iceland",code:"IS",unicode:"&#x1F1EE;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IS.svg",label:"+354"},{country_label:"Italy",code:"IT",unicode:"&#x1F1EE;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IT.svg",label:"+39"},{country_label:"Jersey",code:"JE",unicode:"&#x1F1EF;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JE.svg",label:"+44"},{country_label:"Jamaica",code:"JM",unicode:"&#x1F1EF;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JM.svg",label:"+1876"},{country_label:"Jordan",code:"JO",unicode:"&#x1F1EF;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JO.svg",label:"+962"},{country_label:"Japan",code:"JP",unicode:"&#x1F1EF;&#x1F1F5;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JP.svg",label:"+81"},{country_label:"Kenya",code:"KE",unicode:"&#x1F1F0;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KE.svg",label:"+254"},{country_label:"Kyrgyzstan",code:"KG",unicode:"&#x1F1F0;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KG.svg",label:"+996"},{country_label:"Cambodia",code:"KH",unicode:"&#x1F1F0;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KH.svg",label:"+855"},{country_label:"Kiribati",code:"KI",unicode:"&#x1F1F0;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KI.svg",label:"+686"},{country_label:"Comoros",code:"KM",unicode:"&#x1F1F0;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KM.svg",label:"+269"},{country_label:"St. Kitts & Nevis",code:"KN",unicode:"&#x1F1F0;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KN.svg",label:"+1869"},{country_label:"North Korea",code:"KP",unicode:"&#x1F1F0;&#x1F1F5;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KP.svg",label:"+850"},{country_label:"South Korea",code:"KR",unicode:"&#x1F1F0;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KR.svg",label:"+82"},{country_label:"Cayman Islands",code:"KY",unicode:"&#x1F1F0;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KY.svg",label:"+ 345"},{country_label:"Kazakhstan",code:"KZ",unicode:"&#x1F1F0;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KZ.svg",label:"+77"},{country_label:"Laos",code:"LA",unicode:"&#x1F1F1;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LA.svg",label:"+856"},{country_label:"Lebanon",code:"LB",unicode:"&#x1F1F1;&#x1F1E7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LB.svg",label:"+961"},{country_label:"St. Lucia",code:"LC",unicode:"&#x1F1F1;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LC.svg",label:"+1758"},{country_label:"Liechtenstein",code:"LI",unicode:"&#x1F1F1;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LI.svg",label:"+423"},{country_label:"Sri Lanka",code:"LK",unicode:"&#x1F1F1;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LK.svg",label:"+94"},{country_label:"Liberia",code:"LR",unicode:"&#x1F1F1;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LR.svg",label:"+231"},{country_label:"Lesotho",code:"LS",unicode:"&#x1F1F1;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LS.svg",label:"+266"},{country_label:"Lithuania",code:"LT",unicode:"&#x1F1F1;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LT.svg",label:"+370"},{country_label:"Luxembourg",code:"LU",unicode:"&#x1F1F1;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LU.svg",label:"+352"},{country_label:"Latvia",code:"LV",unicode:"&#x1F1F1;&#x1F1FB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LV.svg",label:"+371"},{country_label:"Libya",code:"LY",unicode:"&#x1F1F1;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LY.svg",label:"+218"},{country_label:"Morocco",code:"MA",unicode:"&#x1F1F2;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MA.svg",label:"+212"},{country_label:"Monaco",code:"MC",unicode:"&#x1F1F2;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MC.svg",label:"+377"},{country_label:"Moldova",code:"MD",unicode:"&#x1F1F2;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MD.svg",label:"+373"},{country_label:"Montenegro",code:"ME",unicode:"&#x1F1F2;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ME.svg",label:"+382"},{country_label:"St. Martin",code:"MF",unicode:"&#x1F1F2;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MF.svg",label:"+590"},{country_label:"Madagascar",code:"MG",unicode:"&#x1F1F2;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MG.svg",label:"+261"},{country_label:"Marshall Islands",code:"MH",unicode:"&#x1F1F2;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MH.svg",label:"+692"},{country_label:"North Macedonia",code:"MK",unicode:"&#x1F1F2;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MK.svg",label:"+389"},{country_label:"Mali",code:"ML",unicode:"&#x1F1F2;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ML.svg",label:"+223"},{country_label:"Myanmar (Burma)",code:"MM",unicode:"&#x1F1F2;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MM.svg",label:"+95"},{country_label:"Mongolia",code:"MN",unicode:"&#x1F1F2;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MN.svg",label:"+976"},{country_label:"Macao SAR China",code:"MO",unicode:"&#x1F1F2;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MO.svg",label:"+853"},{country_label:"Northern Mariana Islands",code:"MP",unicode:"&#x1F1F2;&#x1F1F5;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MP.svg",label:"+1670"},{country_label:"Martinique",code:"MQ",unicode:"&#x1F1F2;&#x1F1F6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MQ.svg",label:"+596"},{country_label:"Mauritania",code:"MR",unicode:"&#x1F1F2;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MR.svg",label:"+222"},{country_label:"Montserrat",code:"MS",unicode:"&#x1F1F2;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MS.svg",label:"+1664"},{country_label:"Malta",code:"MT",unicode:"&#x1F1F2;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MT.svg",label:"+356"},{country_label:"Mauritius",code:"MU",unicode:"&#x1F1F2;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MU.svg",label:"+230"},{country_label:"Maldives",code:"MV",unicode:"&#x1F1F2;&#x1F1FB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MV.svg",label:"+960"},{country_label:"Malawi",code:"MW",unicode:"&#x1F1F2;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MW.svg",label:"+265"},{country_label:"Mexico",code:"MX",unicode:"&#x1F1F2;&#x1F1FD;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MX.svg",label:"+52"},{country_label:"Malaysia",code:"MY",unicode:"&#x1F1F2;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MY.svg",label:"+60"},{country_label:"Mozambique",code:"MZ",unicode:"&#x1F1F2;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MZ.svg",label:"+258"},{country_label:"Namibia",code:"NA",unicode:"&#x1F1F3;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NA.svg",label:"+264"},{country_label:"New Caledonia",code:"NC",unicode:"&#x1F1F3;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NC.svg",label:"+687"},{country_label:"Niger",code:"NE",unicode:"&#x1F1F3;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NE.svg",label:"+227"},{country_label:"Norfolk Island",code:"NF",unicode:"&#x1F1F3;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NF.svg",label:"+672"},{country_label:"Nigeria",code:"NG",unicode:"&#x1F1F3;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NG.svg",label:"+234"},{country_label:"Nicaragua",code:"NI",unicode:"&#x1F1F3;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NI.svg",label:"+505"},{country_label:"Netherlands",code:"NL",unicode:"&#x1F1F3;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NL.svg",label:"+31"},{country_label:"Norway",code:"NO",unicode:"&#x1F1F3;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NO.svg",label:"+47"},{country_label:"Nepal",code:"NP",unicode:"&#x1F1F3;&#x1F1F5;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NP.svg",label:"+977"},{country_label:"Nauru",code:"NR",unicode:"&#x1F1F3;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NR.svg",label:"+674"},{country_label:"Niue",code:"NU",unicode:"&#x1F1F3;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NU.svg",label:"+683"},{country_label:"New Zealand",code:"NZ",unicode:"&#x1F1F3;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NZ.svg",label:"+64"},{country_label:"Panama",code:"PA",unicode:"&#x1F1F5;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PA.svg",label:"+507"},{country_label:"Peru",code:"PE",unicode:"&#x1F1F5;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PE.svg",label:"+51"},{country_label:"French Polynesia",code:"PF",unicode:"&#x1F1F5;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PF.svg",label:"+689"},{country_label:"Papua New Guinea",code:"PG",unicode:"&#x1F1F5;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PG.svg",label:"+675"},{country_label:"Philippines",code:"PH",unicode:"&#x1F1F5;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PH.svg",label:"+63"},{country_label:"Pakistan",code:"PK",unicode:"&#x1F1F5;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PK.svg",label:"+92"},{country_label:"Poland",code:"PL",unicode:"&#x1F1F5;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PL.svg",label:"+48"},{country_label:"St. Pierre & Miquelon",code:"PM",unicode:"&#x1F1F5;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PM.svg",label:"+508"},{country_label:"Pitcairn Islands",code:"PN",unicode:"&#x1F1F5;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PN.svg",label:"+872"},{country_label:"Puerto Rico",code:"PR",unicode:"&#x1F1F5;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PR.svg",label:"+1939"},{country_label:"Palestinian Territories",code:"PS",unicode:"&#x1F1F5;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PS.svg",label:"+970"},{country_label:"Portugal",code:"PT",unicode:"&#x1F1F5;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PT.svg",label:"+351"},{country_label:"Palau",code:"PW",unicode:"&#x1F1F5;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PW.svg",label:"+680"},{country_label:"Paraguay",code:"PY",unicode:"&#x1F1F5;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PY.svg",label:"+595"},{country_label:"Réunion",code:"RE",unicode:"&#x1F1F7;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RE.svg",label:"+262"},{country_label:"Romania",code:"RO",unicode:"&#x1F1F7;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RO.svg",label:"+40"},{country_label:"Serbia",code:"RS",unicode:"&#x1F1F7;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RS.svg",label:"+381"},{country_label:"Russia",code:"RU",unicode:"&#x1F1F7;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RU.svg",label:"+7"},{country_label:"Rwanda",code:"RW",unicode:"&#x1F1F7;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RW.svg",label:"+250"},{country_label:"Solomon Islands",code:"SB",unicode:"&#x1F1F8;&#x1F1E7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SB.svg",label:"+677"},{country_label:"Seychelles",code:"SC",unicode:"&#x1F1F8;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SC.svg",label:"+248"},{country_label:"Sudan",code:"SD",unicode:"&#x1F1F8;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SD.svg",label:"+249"},{country_label:"Sweden",code:"SE",unicode:"&#x1F1F8;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SE.svg",label:"+46"},{country_label:"Singapore",code:"SG",unicode:"&#x1F1F8;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SG.svg",label:"+65"},{country_label:"St. Helena",code:"SH",unicode:"&#x1F1F8;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SH.svg",label:"+290"},{country_label:"Slovenia",code:"SI",unicode:"&#x1F1F8;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SI.svg",label:"+386"},{country_label:"Svalbard & Jan Mayen",code:"SJ",unicode:"&#x1F1F8;&#x1F1EF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SJ.svg",label:"+47"},{country_label:"Slovakia",code:"SK",unicode:"&#x1F1F8;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SK.svg",label:"+421"},{country_label:"Sierra Leone",code:"SL",unicode:"&#x1F1F8;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SL.svg",label:"+232"},{country_label:"San Marino",code:"SM",unicode:"&#x1F1F8;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SM.svg",label:"+378"},{country_label:"Senegal",code:"SN",unicode:"&#x1F1F8;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SN.svg",label:"+221"},{country_label:"Somalia",code:"SO",unicode:"&#x1F1F8;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SO.svg",label:"+252"},{country_label:"Suriname",code:"SR",unicode:"&#x1F1F8;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SR.svg",label:"+597"},{country_label:"South Sudan",code:"SS",unicode:"&#x1F1F8;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SS.svg",label:"+211"},{country_label:"São Tomé & Príncipe",code:"ST",unicode:"&#x1F1F8;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ST.svg",label:"+239"},{country_label:"El Salvador",code:"SV",unicode:"&#x1F1F8;&#x1F1FB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SV.svg",label:"+503"},{country_label:"Syria",code:"SY",unicode:"&#x1F1F8;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SY.svg",label:"+963"},{country_label:"Eswatini",code:"SZ",unicode:"&#x1F1F8;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SZ.svg",label:"+268"},{country_label:"Turks & Caicos Islands",code:"TC",unicode:"&#x1F1F9;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TC.svg",label:"+1649"},{country_label:"Chad",code:"TD",unicode:"&#x1F1F9;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TD.svg",label:"+235"},{country_label:"Togo",code:"TG",unicode:"&#x1F1F9;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TG.svg",label:"+228"},{country_label:"Thailand",code:"TH",unicode:"&#x1F1F9;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TH.svg",label:"+66"},{country_label:"Tajikistan",code:"TJ",unicode:"&#x1F1F9;&#x1F1EF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TJ.svg",label:"+992"},{country_label:"Tokelau",code:"TK",unicode:"&#x1F1F9;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TK.svg",label:"+690"},{country_label:"Timor-Leste",code:"TL",unicode:"&#x1F1F9;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TL.svg",label:"+670"},{country_label:"Turkmenistan",code:"TM",unicode:"&#x1F1F9;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TM.svg",label:"+993"},{country_label:"Tunisia",code:"TN",unicode:"&#x1F1F9;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TN.svg",label:"+216"},{country_label:"Tonga",code:"TO",unicode:"&#x1F1F9;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TO.svg",label:"+676"},{country_label:"Turkey",code:"TR",unicode:"&#x1F1F9;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TR.svg",label:"+90"},{country_label:"Trinidad & Tobago",code:"TT",unicode:"&#x1F1F9;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TT.svg",label:"+1868"},{country_label:"Tuvalu",code:"TV",unicode:"&#x1F1F9;&#x1F1FB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TV.svg",label:"+688"},{country_label:"Taiwan",code:"TW",unicode:"&#x1F1F9;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TW.svg",label:"+886"},{country_label:"Tanzania",code:"TZ",unicode:"&#x1F1F9;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TZ.svg",label:"+255"},{country_label:"Ukraine",code:"UA",unicode:"&#x1F1FA;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UA.svg",label:"+380"},{country_label:"Uganda",code:"UG",unicode:"&#x1F1FA;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UG.svg",label:"+256"},{country_label:"United States",code:"US",unicode:"&#x1F1FA;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/US.svg",label:"+1"},{country_label:"Uruguay",code:"UY",unicode:"&#x1F1FA;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UY.svg",label:"+598"},{country_label:"Uzbekistan",code:"UZ",unicode:"&#x1F1FA;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UZ.svg",label:"+998"},{country_label:"Vatican City",code:"VA",unicode:"&#x1F1FB;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VA.svg",label:"+379"},{country_label:"St. Vincent & Grenadines",code:"VC",unicode:"&#x1F1FB;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VC.svg",label:"+1784"},{country_label:"Venezuela",code:"VE",unicode:"&#x1F1FB;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VE.svg",label:"+58"},{country_label:"British Virgin Islands",code:"VG",unicode:"&#x1F1FB;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VG.svg",label:"+1284"},{country_label:"U.S. Virgin Islands",code:"VI",unicode:"&#x1F1FB;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VI.svg",label:"+1340"},{country_label:"Vietnam",code:"VN",unicode:"&#x1F1FB;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VN.svg",label:"+84"},{country_label:"Vanuatu",code:"VU",unicode:"&#x1F1FB;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VU.svg",label:"+678"},{country_label:"Wallis & Futuna",code:"WF",unicode:"&#x1F1FC;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WF.svg",label:"+681"},{country_label:"Samoa",code:"WS",unicode:"&#x1F1FC;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WS.svg",label:"+685"},{country_label:"Yemen",code:"YE",unicode:"&#x1F1FE;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/YE.svg",label:"+967"},{country_label:"Mayotte",code:"YT",unicode:"&#x1F1FE;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/YT.svg",label:"+262"},{country_label:"South Africa",code:"ZA",unicode:"&#x1F1FF;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZA.svg",label:"+27"},{country_label:"Zambia",code:"ZM",unicode:"&#x1F1FF;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZM.svg",label:"+260"},{country_label:"Zimbabwe",code:"ZW",unicode:"&#x1F1FF;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZW.svg",label:"+263"}],QA=({cx:e,children:t,getStyles:r,innerProps:n,innerRef:a,...o})=>s.jsx("div",{className:"absolute z-50 w-[190px] rounded border bg-background",ref:a,...n,children:t}),KA=({cx:e,children:t,getStyles:r,innerProps:n,innerRef:a,...o})=>s.jsxs("div",{ref:a,className:"m-2 flex cursor-pointer flex-row items-center justify-between rounded-inner p-1 px-2 hover:bg-primary hover:text-primary-foreground",...n,children:[s.jsxs("div",{className:"flex flex-row items-center justify-center gap-1",children:[s.jsx("img",{className:"h-8 w-8",src:o.data.image}),s.jsx("span",{className:"text-[10px]",children:o.data.country_label})]}),t]}),cd=e=>{const[t,r]=h.useState("+966");return s.jsxs("div",{className:"mb-3 flex flex-col",children:[e.label&&s.jsx("label",{className:"mb-2 block text-sm font-medium",children:e.label}),s.jsxs("div",{dir:"ltr",className:"flex flex-row ",children:[s.jsx(e1,{classNames:{control:()=>"w-[64px] text-right pr-2 cursor-pointer z-10 border rounded-l bg-background",placeholder:n=>"text-muted-foreground text-right ",input:n=>"bg-transparent cursor-pointer dark:text-white p-2 rounded-l text-[0.875rem] ",valueContainer:()=>"rounded-l h-auto text-[0.875rem]"},styles:{placeholder:n=>({...n,fontSize:"0.875rem",textAlign:"right"})},components:{Option:KA,Menu:QA,DropdownIndicator:()=>null,IndicatorSeparator:()=>null},options:wb,isMulti:!1,isSearchable:!0,isClearable:!1,placeholder:"+966",unstyled:!0,defaultValue:e.preferredCountry,value:t,onChange:(n,a)=>r(n)}),s.jsx("input",{onChange:e.handleChange,type:"number",placeholder:"531045453",className:"block w-full rounded-r border bg-background p-2 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500"}),e.helperText&&s.jsx("p",{className:"mb-1 mt-1 text-xs text-red-600 dark:text-red-500",children:e.helperText})]})]})},qA=({orientation:e="horizontal",direction:t="ltr",width:r="normal",marginBetween:n=0,pill:a=!1,...o})=>{var C,E;const[i,l]=h.useState((C=o.options[0])==null?void 0:C.value);let u={vertical:"inline-block py-2 px-4 text-white bg-primary active",horizontal:"inline-block py-2 px-4 text-white bg-primary active"},c={vertical:"inline-block py-2 px-4 hover:text-gray-900 hover:bg-gray-200 dark:hover:bg-gray-800 dark:hover:text-white",horizontal:"bg-gray-100 inline-block py-2 px-4 hover:text-gray-900 hover:bg-gray-200 dark:hover:bg-gray-800 dark:hover:text-white"},m={full:"w-full min-w-full",normal:"w-fit"},p={vertical:"flex flex-row",horizontal:"flex flex-col"},x={vertical:"sticky top-2 h-fit flex flex-col w-fit flex-wrap rounded border-b-primary bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400",horizontal:"flex w-fit flex-wrap border-b-primary text-center text-sm font-medium text-gray-500 dark:text-gray-400"};return s.jsxs("div",{dir:t,className:Ve(p[e],o.options[i]?"border-b-2":"border-b-0"),children:[s.jsx("ul",{className:Ve("w-full border-primary",n?e==="vertical"?"mb-0":"mb-"+n:"",n&&t==="rtl"?"ml-"+n:"mr-"+n,x[e],e==="horizontal"?"grid grid-cols-3 gap-1 sm:flex sm:flex-row sm:gap-0 ":"",m[r],a?"gap-0.5 rounded border-none bg-gray-100 p-0.5":e==="vertical"?t==="rtl"?"rounded-none rounded-r border-l-2":"rounded-none rounded-l border-r-2":"border-b-0 sm:border-b-2"),children:(E=o.options)==null?void 0:E.map((v,A)=>s.jsxs("button",{"aria-current":"page",onClick:()=>{l(v.value),o==null||o.onChangeTab(v)},className:Ve(v.value===i?[u[e],t==="rtl"?"rounded-r":"rounded-l"]:c[e],a?"rounded":e==="vertical"?"rounded rounded-bl-none rounded-tl-none":"rounded sm:rounded-b-none","flex w-fit flex-row items-center gap-2 transition-all "),children:[v.icon,v.label]},A))}),s.jsx("div",{className:"flex-1 transition-all",children:o.options.map((v,A)=>s.jsx("div",{className:Ve(i===v.value?"":"hidden"),children:v.content},A))})]})},eF=({open:e,title:t,onClose:r,closeOnClickOutside:n=!0,...a})=>{let o="absolute top-1/2 left-1/2 w-full h-screen flex flex-col justify-center items-center -translate-x-1/2 -translate-y-1/2 transition-all";return h.useEffect(()=>(n&&e&&(window.onclick=i=>{i.stopPropagation(),r()}),()=>window.onclick=null),[e]),s.jsxs("div",{className:$e(o,e?"z-10 opacity-100 ":"invisible -z-10 opacity-0"),children:[s.jsx("div",{className:$e("absolute h-screen w-full bg-gray-500 opacity-50",e?"opacity-50":"opacity-0")}),s.jsxs("div",{className:"relative w-1/2 max-w-md rounded bg-white p-1 shadow-lg dark:bg-gray-700",children:[s.jsxs("div",{className:"flex items-start justify-between rounded-t p-3 dark:border-gray-600",children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:t}),s.jsxs("button",{type:"button",className:"inline-flex items-center rounded bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white","data-modal-toggle":"defaultModal",onClick:i=>{r()},children:[s.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})}),s.jsx("span",{className:"sr-only",children:"Close modal"})]})]}),s.jsx("div",{className:"space-y-6 p-3",children:a.children}),s.jsx("div",{className:"mx-2 flex items-center justify-end space-x-1 p-0 dark:border-gray-600",children:a.actions})]})]})},dd=({menuItems:e,withHeader:t,direction:r="ltr",headerTitle:n,headerSubtitle:a,size:o="normal",children:i,onClickOutside:l,actionedItem:u,position:c="top-right"})=>{const[m,p]=h.useState(!1),x=h.useRef(null),[C,E]=h.useState(null),[v,A]=h.useState(null),S=h.useRef(null),[j,O]=h.useState(null),[L,M]=h.useState(null);h.useEffect(()=>{var xe,Q,ce,N;M((xe=S.current)==null?void 0:xe.getBoundingClientRect().height),O((Q=S.current)==null?void 0:Q.getBoundingClientRect().width),E((ce=x.current)==null?void 0:ce.getBoundingClientRect().height),A((N=x.current)==null?void 0:N.getBoundingClientRect().width);const ge=W=>{S.current&&!S.current.contains(W.target)&&p(!1)};return document.addEventListener("click",ge,!0),()=>{document.removeEventListener("click",ge,!0)}},[l]);let z="border-none absolute ring-offset-1 absolute z-10 w-44 divide-y divide-gray-100 overflow-y-clip rounded bg-gray-50 shadow-lg transition-all dark:bg-gray-700",H={small:"text-[11px] p-1 px-4 m-0",normal:"py-2 px-4",large:""},oe,J=5;switch(c){case"top-right":oe=r==="rtl"?`${j-v}px, -${L+C+J}px`:`0px, -${L+C+J}px`;break;case"top-left":oe=r==="rtl"?`0px, -${L+C+J}px`:`-${j-v}px, -${L+C+J}px`;break;case"bottom-right":oe=r==="rtl"?`-0px, ${J}px`:`-${v-j}px, ${J}px`;break;case"bottom-left":oe=r==="rtl"?`0px, ${J}px`:`-${j-v}px,${J}px`;break;case"right-bottom":oe=r==="rtl"?`${j+J}px, -${C}px`:`${v+J}px, -${C}px`;break;case"right-top":oe=r==="rtl"?`${j+J}px, -${L}px`:`${v+J}px, -${L}px`;break;case"left-bottom":oe=r==="rtl"?`-${v+J}px, -${C}px`:`-${j+J}px, -${C}px`;break;case"left-top":oe=r==="rtl"?`-${v+J}px, -${L}px`:`-${j+J}px, -${L}px`;break;default:oe=`-${j/2}px, -${C+L/2}px`;break}return s.jsxs("div",{onClick:()=>{p(!m)},children:[s.jsx("div",{ref:x,children:i}),s.jsxs("div",{ref:S,style:{position:"absolute",width:"max-content",transform:`translate(${oe})`,maxWidth:"200px"},className:$e(z,m?"opacity-100":"invisible opacity-0"),children:[t&&s.jsxs("div",{className:"px-4 py-3 text-xs text-gray-900 dark:text-white",children:[s.jsx("div",{children:n}),s.jsx("div",{className:"truncate font-medium",children:a})]}),e==null?void 0:e.map((ge,xe)=>s.jsx("ul",{className:"bg-layout-1200 flex flex-col gap-1 p-1 text-gray-700 dark:text-gray-200",children:ge==null?void 0:ge.map((Q,ce)=>Q.element?s.jsx("li",{className:"cursor-pointer items-center rounded hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white",children:Q.element},ce):s.jsxs("li",{onClick:()=>{Q.disabled?console.log("button is disabled"):Q==null||Q.action(u)},className:$e("transition-all",Q.isButton?"flex cursor-pointer flex-row items-center rounded-inner bg-buttonPrimary-500 px-4 py-2 text-white hover:bg-buttonPrimary-700 rtl:flex-row-reverse":Q.disabled?"text-gray-300":" flex cursor-pointer flex-row items-center rounded-inner hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white ",H[o]),children:[Q.icon&&s.jsx("div",{className:o==="small"?"mr-1 rtl:ml-1":"mr-2 rtl:ml-2",children:Q.icon}),Q.label]},ce))},xe))]})]})},tF=e=>s.jsxs("div",{className:"my-2 flex flex-col items-center justify-center gap-1 text-xs text-gray-400",children:[e.withLogo?s.jsx("a",{href:e.onLogoClicked,children:s.jsx("div",{className:"cursor-pointer",children:s.jsx("image",{href:e.logoURL,width:100,height:50})})}):null,s.jsx("div",{children:e.version}),e.credits?e.credits:null]}),rF=({orientation:e="horizontal",...t})=>{let r={vertical:"flex flex-col items-start w-fit",horizontal:"flex flex-row"};return s.jsx("div",{className:$e(r[e]," flex-wrap justify-start gap-4"),children:t.steps.map((n,a)=>s.jsx("div",{className:"my-2 flex w-auto flex-row flex-wrap justify-start ",children:s.jsx("div",{className:e==="vertical"?"flex w-full flex-row items-center":a+1===t.steps.length?"flex w-full flex-row items-center justify-start gap-2":"flex flex-row items-center justify-start gap-2 after:mx-2 after:hidden after:h-1 after:w-10 after:border-b after:border-gray-200 dark:after:border-gray-700 sm:after:inline-block sm:after:content-[''] md:w-full xl:after:mx-10",children:s.jsxs("div",{className:"flex flex-row gap-2 ",children:[s.jsx("div",{className:$e("flex h-6 w-6 min-w-[24px] items-center justify-center rounded ring-2 ring-primary/20 ring-offset-2",a+1<=t.currentStep?"bg-primary text-primary-foreground ":"bg-primary/20"),children:a+1<=t.currentStep?s.jsx("svg",{"aria-label":"Check Mark",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"0.60em",width:"0.60em",children:s.jsx("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"})}):a+1}),s.jsx("div",{className:"whitespace-nowrap",children:n})]})})},a))})},Gt=je.forwardRef(({className:e,clickable:t=!1,...r},n)=>s.jsx("div",{ref:n,className:Ve("rounded-lg border bg-card text-card-foreground shadow-sm",t&&"cursor-pointer transition-all hover:drop-shadow-md dark:hover:shadow-dark",e),...r}));Gt.displayName="Card";const Ca=je.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:Ve("flex flex-col space-y-1.5 p-6",e),...t}));Ca.displayName="CardHeader";const wa=je.forwardRef(({className:e,...t},r)=>s.jsx("h3",{ref:r,className:Ve("text-2xl font-semibold leading-none tracking-tight",e),...t}));wa.displayName="CardTitle";const ii=je.forwardRef(({className:e,...t},r)=>s.jsx("p",{ref:r,className:Ve("text-sm text-muted-foreground",e),...t}));ii.displayName="CardDescription";const $t=je.forwardRef(({headless:e,className:t,...r},n)=>s.jsx("div",{ref:n,className:Ve("p-6",e?"pt-6":"pt-0",t),...r}));$t.displayName="CardContent";const Fn=je.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:Ve("flex items-center p-6 pt-0",e),...t}));Fn.displayName="CardFooter";const nF=({variant:e="default",...t})=>s.jsxs(Gt,{onClick:t.handleClick,clickable:!!t.handleClick,children:[s.jsxs(Ca,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[s.jsx(wa,{className:"text-sm font-medium",children:t.label}),t.icon&&t.icon]}),s.jsxs($t,{children:[t.isLoading?s.jsx(ri,{className:"h-8 w-3/4"}):s.jsx("div",{className:"text-2xl font-bold",children:t.number}),t.isLoading&&t.helperText?s.jsx(ri,{className:"mt-2 h-4 w-1/2"}):t.helperText&&s.jsx("p",{className:"text-xs text-muted-foreground",children:t.helperText}),t.isLoading&&t.chart?s.jsx(ri,{className:"mt-2 h-4 w-1/2"}):t.chart]})]}),cp=h.forwardRef((e,t)=>h.createElement(St.span,we({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),aF=cp,[fd,jN]=Dn("Tooltip",[cs]),hd=cs(),oF="TooltipProvider",iF=700,dp="tooltip.open",[sF,fp]=fd(oF),lF=e=>{const{__scopeTooltip:t,delayDuration:r=iF,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:o}=e,[i,l]=h.useState(!0),u=h.useRef(!1),c=h.useRef(0);return h.useEffect(()=>{const m=c.current;return()=>window.clearTimeout(m)},[]),h.createElement(sF,{scope:t,isOpenDelayed:i,delayDuration:r,onOpen:h.useCallback(()=>{window.clearTimeout(c.current),l(!1)},[]),onClose:h.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>l(!0),n)},[n]),isPointerInTransitRef:u,onPointerInTransitChange:h.useCallback(m=>{u.current=m},[]),disableHoverableContent:a},o)},hp="Tooltip",[uF,pd]=fd(hp),cF=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:a=!1,onOpenChange:o,disableHoverableContent:i,delayDuration:l}=e,u=fp(hp,e.__scopeTooltip),c=hd(t),[m,p]=h.useState(null),x=Sn(),C=h.useRef(0),E=i??u.disableHoverableContent,v=l??u.delayDuration,A=h.useRef(!1),[S=!1,j]=Rn({prop:n,defaultProp:a,onChange:H=>{H?(u.onOpen(),document.dispatchEvent(new CustomEvent(dp))):u.onClose(),o==null||o(H)}}),O=h.useMemo(()=>S?A.current?"delayed-open":"instant-open":"closed",[S]),L=h.useCallback(()=>{window.clearTimeout(C.current),A.current=!1,j(!0)},[j]),M=h.useCallback(()=>{window.clearTimeout(C.current),j(!1)},[j]),z=h.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>{A.current=!0,j(!0)},v)},[v,j]);return h.useEffect(()=>()=>window.clearTimeout(C.current),[]),h.createElement(Yc,c,h.createElement(uF,{scope:t,contentId:x,open:S,stateAttribute:O,trigger:m,onTriggerChange:p,onTriggerEnter:h.useCallback(()=>{u.isOpenDelayed?z():L()},[u.isOpenDelayed,z,L]),onTriggerLeave:h.useCallback(()=>{E?M():window.clearTimeout(C.current)},[M,E]),onOpen:L,onClose:M,disableHoverableContent:E},r))},Eb="TooltipTrigger",dF=h.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,a=pd(Eb,r),o=fp(Eb,r),i=hd(r),l=h.useRef(null),u=Kt(t,l,a.onTriggerChange),c=h.useRef(!1),m=h.useRef(!1),p=h.useCallback(()=>c.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),h.createElement(Zh,we({asChild:!0},i),h.createElement(St.button,we({"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute},n,{ref:u,onPointerMove:at(e.onPointerMove,x=>{x.pointerType!=="touch"&&!m.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),m.current=!0)}),onPointerLeave:at(e.onPointerLeave,()=>{a.onTriggerLeave(),m.current=!1}),onPointerDown:at(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:at(e.onFocus,()=>{c.current||a.onOpen()}),onBlur:at(e.onBlur,a.onClose),onClick:at(e.onClick,a.onClose)})))}),fF="TooltipPortal",[IN,hF]=fd(fF,{forceMount:void 0}),Yl="TooltipContent",pF=h.forwardRef((e,t)=>{const r=hF(Yl,e.__scopeTooltip),{forceMount:n=r.forceMount,side:a="top",...o}=e,i=pd(Yl,e.__scopeTooltip);return h.createElement(sn,{present:n||i.open},i.disableHoverableContent?h.createElement(Db,we({side:a},o,{ref:t})):h.createElement(gF,we({side:a},o,{ref:t})))}),gF=h.forwardRef((e,t)=>{const r=pd(Yl,e.__scopeTooltip),n=fp(Yl,e.__scopeTooltip),a=h.useRef(null),o=Kt(t,a),[i,l]=h.useState(null),{trigger:u,onClose:c}=r,m=a.current,{onPointerInTransitChange:p}=n,x=h.useCallback(()=>{l(null),p(!1)},[p]),C=h.useCallback((E,v)=>{const A=E.currentTarget,S={x:E.clientX,y:E.clientY},j=yF(S,A.getBoundingClientRect()),O=CF(S,j),L=wF(v.getBoundingClientRect()),M=DF([...O,...L]);l(M),p(!0)},[p]);return h.useEffect(()=>()=>x(),[x]),h.useEffect(()=>{if(u&&m){const E=A=>C(A,m),v=A=>C(A,u);return u.addEventListener("pointerleave",E),m.addEventListener("pointerleave",v),()=>{u.removeEventListener("pointerleave",E),m.removeEventListener("pointerleave",v)}}},[u,m,C,x]),h.useEffect(()=>{if(i){const E=v=>{const A=v.target,S={x:v.clientX,y:v.clientY},j=(u==null?void 0:u.contains(A))||(m==null?void 0:m.contains(A)),O=!EF(S,i);j?x():O&&(x(),c())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[u,m,i,c,x]),h.createElement(Db,we({},e,{ref:o}))}),[mF,vF]=fd(hp,{isInside:!1}),Db=h.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:i,...l}=e,u=pd(Yl,r),c=hd(r),{onClose:m}=u;return h.useEffect(()=>(document.addEventListener(dp,m),()=>document.removeEventListener(dp,m)),[m]),h.useEffect(()=>{if(u.trigger){const p=x=>{const C=x.target;C!=null&&C.contains(u.trigger)&&m()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[u.trigger,m]),h.createElement(zl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:m},h.createElement(Uh,we({"data-state":u.stateAttribute},c,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),h.createElement(r0,null,n),h.createElement(mF,{scope:r,isInside:!0},h.createElement(aF,{id:u.contentId,role:"tooltip"},a||n))))}),bF="TooltipArrow",xF=h.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,a=hd(r);return vF(bF,r).isInside?null:h.createElement(kD,we({},a,n,{ref:t}))});function yF(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,a,o)){case o:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function CF(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function wF(e){const{top:t,right:r,bottom:n,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:n},{x:a,y:n}]}function EF(e,t){const{x:r,y:n}=e;let a=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const l=t[o].x,u=t[o].y,c=t[i].x,m=t[i].y;u>n!=m>n&&r<(c-l)*(n-u)/(m-u)+l&&(a=!a)}return a}function DF(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),SF(t)}function SF(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const a=e[n];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(a.y-i.y)>=(o.y-i.y)*(a.x-i.x))t.pop();else break}t.push(a)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const a=e[n];for(;r.length>=2;){const o=r[r.length-1],i=r[r.length-2];if((o.x-i.x)*(a.y-i.y)>=(o.y-i.y)*(a.x-i.x))r.pop();else break}r.push(a)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}const AF=cF,FF=dF,Sb=pF,Ab=xF,Fb=h.forwardRef(({className:e,sideOffset:t=4,...r},n)=>s.jsx(Sb,{ref:n,sideOffset:t,className:Ve("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));Fb.displayName=Sb.displayName;const jF=h.forwardRef(({className:e,...t},r)=>s.jsx(Ab,{ref:r,className:Ve(e),...t}));jF.displayName=Ab.displayName;const ms=({side:e,open:t,content:r,children:n,defaultOpen:a,onOpenChange:o,delayDuration:i=300,...l})=>s.jsx(lF,{delayDuration:i,children:s.jsxs(AF,{open:t,defaultOpen:a,onOpenChange:o,children:[s.jsx(FF,{asChild:!0,children:n}),s.jsx(Fb,{side:e,align:"center",...l,children:r})]})});function jb({timeout:e=2e3}={}){const[t,r]=h.useState(null),[n,a]=h.useState(!1),[o,i]=h.useState(null),l=m=>{clearTimeout(o),i(setTimeout(()=>a(!1),e)),a(m)};return{copy:m=>{"clipboard"in navigator?navigator.clipboard.writeText(m).then(()=>l(!0)).catch(p=>r(p)):r(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{a(!1),r(null),clearTimeout(o)},error:t,copied:n}}const IF=({tabs:e,code:t,fileName:r,width:n="full"})=>{const a=jb(),[o,i]=h.useState(0);let l={full:"w-full",md:"w-full max-w-md",sm:"w-full max-w-sm",xs:"w-full max-w-xs"};return s.jsxs("div",{className:Ve(l[n],"w-full flex-col items-center rounded bg-gray-200 text-left text-sm text-white dark:bg-gray-800 sm:text-base"),children:[e&&s.jsx("div",{className:"flex flex-row gap-2 rounded-t bg-gray-100 p-2 pb-0 text-black dark:bg-gray-700 dark:text-white",children:e.map((u,c)=>s.jsx("div",{className:Ve(o===c?" border-b-2 border-primary":"bg-transparent"),children:s.jsx("div",{onClick:()=>i(c),className:Ve("mb-1 w-full max-w-[52px] cursor-pointer rounded-inner p-2 py-1 text-center text-[0.75rem] hover:bg-gray-300 dark:hover:bg-gray-500"),children:u.title})}))}),r&&s.jsx("div",{className:"flex flex-row gap-2 rounded-t bg-gray-100 p-2 pb-0 text-black dark:bg-gray-700 dark:text-white",children:s.jsx("div",{className:Ve("mb-1 w-full max-w-[52px] rounded-inner p-2 py-1 text-center text-[0.75rem]"),children:r})}),s.jsx("pre",{children:s.jsxs("code",{className:Ve("flex w-full flex-row items-start justify-between rounded bg-gray-200 p-0 text-left text-sm text-black dark:bg-gray-800 dark:text-white sm:text-base"),children:[s.jsx("div",{className:"flex min-h-[37.75px] w-full flex-col justify-center p-4 ",children:e?e[o].code:t}),s.jsx("div",{className:"flex w-fit flex-row items-center gap-2 p-2",children:s.jsx(ms,{open:a.copied,side:"left",content:s.jsx("div",{children:"Copied!"}),children:s.jsx(qe,{size:"icon",onClick:()=>a.copy(e?e[o].code:t),children:s.jsxs("svg",{"aria-label":"Copy Icon",stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:"1em",width:"1em",children:[s.jsx("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),s.jsx("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})]})})})})]})})]})},TF=()=>{const[e,t]=h.useState(""),r=n=>{t(n.target.value)};return s.jsx("div",{className:"relative inline-block text-left",children:s.jsx("span",{className:"rounded-md shadow-sm",children:s.jsx("input",{type:"date",value:e,onChange:r,className:"block w-full rounded border border-gray-300 bg-white p-2 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500"})})})};var pp={exports:{}};/*
98
98
  object-assign
99
99
  (c) Sindre Sorhus
100
100
  @license MIT
@@ -102,7 +102,7 @@ object-assign
102
102
  Valid keys: `+JSON.stringify(Object.keys(K),null," "));var Ne=Ke(me,We,G,he,ae+"."+We,r);if(Ne)return Ne}return null}return A(se)}function N(K){switch(typeof K){case"number":case"string":case"undefined":return!0;case"boolean":return!K;case"object":if(Array.isArray(K))return K.every(N);if(K===null||l(K))return!0;var se=p(K);if(se){var fe=se.call(K),Se;if(se!==K.entries){for(;!(Se=fe.next()).done;)if(!N(Se.value))return!1}else for(;!(Se=fe.next()).done;){var G=Se.value;if(G&&!N(G[1]))return!1}}else return!1;return!0;default:return!1}}function W(K,se){return K==="symbol"?!0:se?se["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&se instanceof Symbol:!1}function ee(K){var se=typeof K;return Array.isArray(K)?"array":K instanceof RegExp?"object":W(se,K)?"symbol":se}function de(K){if(typeof K>"u"||K===null)return""+K;var se=ee(K);if(se==="object"){if(K instanceof Date)return"date";if(K instanceof RegExp)return"regexp"}return se}function ne(K){var se=de(K);switch(se){case"array":case"object":return"an "+se;case"boolean":case"date":case"regexp":return"a "+se;default:return se}}function te(K){return!K.constructor||!K.constructor.name?x:K.constructor.name}return C.checkPropTypes=a,C.resetWarningCache=a.resetWarningCache,C.PropTypes=C,C},yp}var Cp,Nb;function OF(){if(Nb)return Cp;Nb=1;var e=vp();function t(){}function r(){}return r.resetWarningCache=t,Cp=function(){function n(i,l,u,c,m,p){if(p!==e){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}}n.isRequired=n;function a(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o},Cp}if(process.env.NODE_ENV!=="production"){var NF=ch,MF=!0;pp.exports=PF()(NF.isElement,MF)}else pp.exports=OF()();var RF=pp.exports;const qt=vc(RF);var $F=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Jl(e,t){var r=LF(e);if(typeof r.path!="string"){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof t=="string"?t:typeof n=="string"&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function LF(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var n=t.split(".").pop().toLowerCase(),a=$F.get(n);a&&Object.defineProperty(e,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return e}var _F=[".DS_Store","Thumbs.db"];function WF(e){return fs(this,void 0,void 0,function(){return hs(this,function(t){return gd(e)&&VF(e)?[2,ZF(e.dataTransfer,e.type)]:HF(e)?[2,zF(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,GF(e)]:[2,[]]})})}function VF(e){return gd(e.dataTransfer)}function HF(e){return gd(e)&&gd(e.target)}function gd(e){return typeof e=="object"&&e!==null}function zF(e){return wp(e.target.files).map(function(t){return Jl(t)})}function GF(e){return fs(this,void 0,void 0,function(){var t;return hs(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(n){return n.getFile()}))];case 1:return t=r.sent(),[2,t.map(function(n){return Jl(n)})]}})})}function ZF(e,t){return fs(this,void 0,void 0,function(){var r,n;return hs(this,function(a){switch(a.label){case 0:return e===null?[2,[]]:e.items?(r=wp(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map(UF))]):[3,2];case 1:return n=a.sent(),[2,Mb(Rb(n))];case 2:return[2,Mb(wp(e.files).map(function(o){return Jl(o)}))]}})})}function Mb(e){return e.filter(function(t){return _F.indexOf(t.name)===-1})}function wp(e){if(e===null)return[];for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function UF(e){if(typeof e.webkitGetAsEntry!="function")return $b(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Lb(t):$b(e)}function Rb(e){return e.reduce(function(t,r){return QD(t,Array.isArray(r)?Rb(r):[r])},[])}function $b(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var r=Jl(t);return Promise.resolve(r)}function XF(e){return fs(this,void 0,void 0,function(){return hs(this,function(t){return[2,e.isDirectory?Lb(e):YF(e)]})})}function Lb(e){var t=e.createReader();return new Promise(function(r,n){var a=[];function o(){var i=this;t.readEntries(function(l){return fs(i,void 0,void 0,function(){var u,c,m;return hs(this,function(p){switch(p.label){case 0:if(l.length)return[3,5];p.label=1;case 1:return p.trys.push([1,3,,4]),[4,Promise.all(a)];case 2:return u=p.sent(),r(u),[3,4];case 3:return c=p.sent(),n(c),[3,4];case 4:return[3,6];case 5:m=Promise.all(l.map(XF)),a.push(m),o(),p.label=6;case 6:return[2]}})})},function(l){n(l)})}o()})}function YF(e){return fs(this,void 0,void 0,function(){return hs(this,function(t){return[2,new Promise(function(r,n){e.file(function(a){var o=Jl(a,e.fullPath);r(o)},function(a){n(a)})})]})})}var JF=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",a=(e.type||"").toLowerCase(),o=a.replace(/\/.*$/,"");return r.some(function(i){var l=i.trim().toLowerCase();return l.charAt(0)==="."?n.toLowerCase().endsWith(l):l.endsWith("/*")?o===l.replace(/\/.*$/,""):a===l})}return!0};function _b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Wb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_b(Object(r),!0).forEach(function(n){Vb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_b(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hb(e,t){return e6(e)||qF(e,t)||KF(e,t)||QF()}function QF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
103
103
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KF(e,t){if(e){if(typeof e=="string")return zb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zb(e,t)}}function zb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,i,l;try{for(r=r.call(e);!(a=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));a=!0);}catch(u){o=!0,l=u}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function e6(e){if(Array.isArray(e))return e}var t6="file-invalid-type",r6="file-too-large",n6="file-too-small",a6="too-many-files",o6=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var r=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:t6,message:"File type must be ".concat(r)}},Gb=function(t){return{code:r6,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Zb=function(t){return{code:n6,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},i6={code:a6,message:"Too many files"};function Ub(e,t){var r=e.type==="application/x-moz-file"||JF(e,t);return[r,r?null:o6(t)]}function Xb(e,t,r){if(Ql(e.size))if(Ql(t)&&Ql(r)){if(e.size>r)return[!1,Gb(r)];if(e.size<t)return[!1,Zb(t)]}else{if(Ql(t)&&e.size<t)return[!1,Zb(t)];if(Ql(r)&&e.size>r)return[!1,Gb(r)]}return[!0,null]}function Ql(e){return e!=null}function s6(e){var t=e.files,r=e.accept,n=e.minSize,a=e.maxSize,o=e.multiple,i=e.maxFiles;return!o&&t.length>1||o&&i>=1&&t.length>i?!1:t.every(function(l){var u=Ub(l,r),c=Hb(u,1),m=c[0],p=Xb(l,n,a),x=Hb(p,1),C=x[0];return m&&C})}function md(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function vd(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Yb(e){e.preventDefault()}function l6(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function u6(e){return e.indexOf("Edge/")!==-1}function c6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return l6(e)||u6(e)}function Ea(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var a=arguments.length,o=new Array(a>1?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];return t.some(function(l){return!md(n)&&l&&l.apply(void 0,[n].concat(o)),md(n)})}}function d6(){return"showOpenFilePicker"in window}function f6(e){return e=typeof e=="string"?e.split(","):e,[{description:"everything",accept:Array.isArray(e)?e.filter(function(t){return t==="audio/*"||t==="video/*"||t==="image/*"||t==="text/*"||/\w+\/[-+.\w]+/g.test(t)}).reduce(function(t,r){return Wb(Wb({},t),{},Vb({},r,[]))},{}):{}}]}function h6(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function p6(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}var g6=["children"],m6=["open"],v6=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],b6=["refKey","onChange","onClick"];function x6(e){return w6(e)||C6(e)||Jb(e)||y6()}function y6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
104
104
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function w6(e){if(Array.isArray(e))return Dp(e)}function Ep(e,t){return S6(e)||D6(e,t)||Jb(e,t)||E6()}function E6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
105
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jb(e,t){if(e){if(typeof e=="string")return Dp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dp(e,t)}}function Dp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function D6(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,i,l;try{for(r=r.call(e);!(a=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));a=!0);}catch(u){o=!0,l=u}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function S6(e){if(Array.isArray(e))return e}function Qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qb(Object(r),!0).forEach(function(n){Sp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bd(e,t){if(e==null)return{};var r=A6(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function A6(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var Ap=h.forwardRef(function(e,t){var r=e.children,n=bd(e,g6),a=qb(n),o=a.open,i=bd(a,m6);return h.useImperativeHandle(t,function(){return{open:o}},[o]),h.createElement(h.Fragment,null,r(dr(dr({},i),{},{open:o})))});Ap.displayName="Dropzone";var Kb={disabled:!1,getFilesFromEvent:WF,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Ap.defaultProps=Kb,Ap.propTypes={children:qt.func,accept:qt.oneOfType([qt.string,qt.arrayOf(qt.string)]),multiple:qt.bool,preventDropOnDocument:qt.bool,noClick:qt.bool,noKeyboard:qt.bool,noDrag:qt.bool,noDragEventsBubbling:qt.bool,minSize:qt.number,maxSize:qt.number,maxFiles:qt.number,disabled:qt.bool,getFilesFromEvent:qt.func,onFileDialogCancel:qt.func,onFileDialogOpen:qt.func,useFsAccessApi:qt.bool,onDragEnter:qt.func,onDragLeave:qt.func,onDragOver:qt.func,onDrop:qt.func,onDropAccepted:qt.func,onDropRejected:qt.func,validator:qt.func};var Fp={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function qb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=dr(dr({},Kb),e),r=t.accept,n=t.disabled,a=t.getFilesFromEvent,o=t.maxSize,i=t.minSize,l=t.multiple,u=t.maxFiles,c=t.onDragEnter,m=t.onDragLeave,p=t.onDragOver,x=t.onDrop,C=t.onDropAccepted,E=t.onDropRejected,v=t.onFileDialogCancel,A=t.onFileDialogOpen,S=t.useFsAccessApi,j=t.preventDropOnDocument,O=t.noClick,L=t.noKeyboard,M=t.noDrag,z=t.noDragEventsBubbling,H=t.validator,oe=h.useMemo(function(){return typeof A=="function"?A:ex},[A]),J=h.useMemo(function(){return typeof v=="function"?v:ex},[v]),ge=h.useRef(null),xe=h.useRef(null),Q=h.useReducer(F6,Fp),ce=Ep(Q,2),N=ce[0],W=ce[1],ee=N.isFocused,de=N.isFileDialogActive,ne=N.draggedFiles,te=h.useRef(typeof window<"u"&&window.isSecureContext&&S&&d6()),K=function(){!te.current&&de&&setTimeout(function(){if(xe.current){var ze=xe.current.files;ze.length||(W({type:"closeDialog"}),J())}},300)};h.useEffect(function(){return window.addEventListener("focus",K,!1),function(){window.removeEventListener("focus",K,!1)}},[xe,de,J,te]);var se=h.useRef([]),fe=function(ze){ge.current&&ge.current.contains(ze.target)||(ze.preventDefault(),se.current=[])};h.useEffect(function(){return j&&(document.addEventListener("dragover",Yb,!1),document.addEventListener("drop",fe,!1)),function(){j&&(document.removeEventListener("dragover",Yb),document.removeEventListener("drop",fe))}},[ge,j]);var Se=h.useCallback(function(Ee){Ee.preventDefault(),Ee.persist(),At(Ee),se.current=[].concat(x6(se.current),[Ee.target]),vd(Ee)&&Promise.resolve(a(Ee)).then(function(ze){md(Ee)&&!z||(W({draggedFiles:ze,isDragActive:!0,type:"setDraggedFiles"}),c&&c(Ee))})},[a,c,z]),G=h.useCallback(function(Ee){Ee.preventDefault(),Ee.persist(),At(Ee);var ze=vd(Ee);if(ze&&Ee.dataTransfer)try{Ee.dataTransfer.dropEffect="copy"}catch{}return ze&&p&&p(Ee),!1},[p,z]),he=h.useCallback(function(Ee){Ee.preventDefault(),Ee.persist(),At(Ee);var ze=se.current.filter(function(bt){return ge.current&&ge.current.contains(bt)}),tt=ze.indexOf(Ee.target);tt!==-1&&ze.splice(tt,1),se.current=ze,!(ze.length>0)&&(W({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),vd(Ee)&&m&&m(Ee))},[ge,m,z]),ae=h.useCallback(function(Ee,ze){var tt=[],bt=[];Ee.forEach(function(Ot){var gt=Ub(Ot,r),Wt=Ep(gt,2),pr=Wt[0],Yt=Wt[1],Cr=Xb(Ot,i,o),gr=Ep(Cr,2),Or=gr[0],Nr=gr[1],xr=H?H(Ot):null;if(pr&&Or&&!xr)tt.push(Ot);else{var Mr=[Yt,Nr];xr&&(Mr=Mr.concat(xr)),bt.push({file:Ot,errors:Mr.filter(function(cn){return cn})})}}),(!l&&tt.length>1||l&&u>=1&&tt.length>u)&&(tt.forEach(function(Ot){bt.push({file:Ot,errors:[i6]})}),tt.splice(0)),W({acceptedFiles:tt,fileRejections:bt,type:"setFiles"}),x&&x(tt,bt,ze),bt.length>0&&E&&E(bt,ze),tt.length>0&&C&&C(tt,ze)},[W,l,r,i,o,u,x,C,E,H]),me=h.useCallback(function(Ee){Ee.preventDefault(),Ee.persist(),At(Ee),se.current=[],vd(Ee)&&Promise.resolve(a(Ee)).then(function(ze){md(Ee)&&!z||ae(ze,Ee)}),W({type:"reset"})},[a,ae,z]),Me=h.useCallback(function(){if(te.current){W({type:"openDialog"}),oe();var Ee={multiple:l,types:f6(r)};window.showOpenFilePicker(Ee).then(function(ze){return a(ze)}).then(function(ze){ae(ze,null),W({type:"closeDialog"})}).catch(function(ze){h6(ze)?(J(ze),W({type:"closeDialog"})):p6(ze)&&(te.current=!1,xe.current&&(xe.current.value=null,xe.current.click()))});return}xe.current&&(W({type:"openDialog"}),oe(),xe.current.value=null,xe.current.click())},[W,oe,J,S,ae,r,l]),Pe=h.useCallback(function(Ee){!ge.current||!ge.current.isEqualNode(Ee.target)||(Ee.key===" "||Ee.key==="Enter"||Ee.keyCode===32||Ee.keyCode===13)&&(Ee.preventDefault(),Me())},[ge,Me]),We=h.useCallback(function(){W({type:"focus"})},[]),Ke=h.useCallback(function(){W({type:"blur"})},[]),Ne=h.useCallback(function(){O||(c6()?setTimeout(Me,0):Me())},[O,Me]),Qe=function(ze){return n?null:ze},nt=function(ze){return L?null:Qe(ze)},vt=function(ze){return M?null:Qe(ze)},At=function(ze){z&&ze.stopPropagation()},re=h.useMemo(function(){return function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ze=Ee.refKey,tt=ze===void 0?"ref":ze,bt=Ee.role,Ot=Ee.onKeyDown,gt=Ee.onFocus,Wt=Ee.onBlur,pr=Ee.onClick,Yt=Ee.onDragEnter,Cr=Ee.onDragOver,gr=Ee.onDragLeave,Or=Ee.onDrop,Nr=bd(Ee,v6);return dr(dr(Sp({onKeyDown:nt(Ea(Ot,Pe)),onFocus:nt(Ea(gt,We)),onBlur:nt(Ea(Wt,Ke)),onClick:Qe(Ea(pr,Ne)),onDragEnter:vt(Ea(Yt,Se)),onDragOver:vt(Ea(Cr,G)),onDragLeave:vt(Ea(gr,he)),onDrop:vt(Ea(Or,me)),role:typeof bt=="string"&&bt!==""?bt:"button"},tt,ge),!n&&!L?{tabIndex:0}:{}),Nr)}},[ge,Pe,We,Ke,Ne,Se,G,he,me,L,M,n]),be=h.useCallback(function(Ee){Ee.stopPropagation()},[]),Ie=h.useMemo(function(){return function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ze=Ee.refKey,tt=ze===void 0?"ref":ze,bt=Ee.onChange,Ot=Ee.onClick,gt=bd(Ee,b6),Wt=Sp({accept:r,multiple:l,type:"file",style:{display:"none"},onChange:Qe(Ea(bt,me)),onClick:Qe(Ea(Ot,be)),tabIndex:-1},tt,xe);return dr(dr({},Wt),gt)}},[xe,r,l,me,n]),Ze=ne.length,He=Ze>0&&s6({files:ne,accept:r,minSize:i,maxSize:o,multiple:l,maxFiles:u}),Te=Ze>0&&!He;return dr(dr({},N),{},{isDragAccept:He,isDragReject:Te,isFocused:ee&&!n,getRootProps:re,getInputProps:Ie,rootRef:ge,inputRef:xe,open:Qe(Me)})}function F6(e,t){switch(t.type){case"focus":return dr(dr({},e),{},{isFocused:!0});case"blur":return dr(dr({},e),{},{isFocused:!1});case"openDialog":return dr(dr({},Fp),{},{isFileDialogActive:!0});case"closeDialog":return dr(dr({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var r=t.isDragActive,n=t.draggedFiles;return dr(dr({},e),{},{draggedFiles:n,isDragActive:r});case"setFiles":return dr(dr({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return dr({},Fp);default:return e}}function ex(){}const j6=({texts:e,files:t,setFiles:r,setDeletedFiles:n,onAcceptedFiles:a,errorMessages:o,maxFiles:i,accept:l,showPreview:u,onDeleteFile:c,onClearFiles:m,disclaimer:p,maxSize:x,label:C,termsLink:E,privacyLink:v})=>{var Q,ce;const[A,S]=h.useState(0),[j,O]=h.useState(0),{getRootProps:L,getInputProps:M,fileRejections:z,acceptedFiles:H,isDragActive:oe}=qb({multiple:!0,accept:l,maxSize:x,maxFiles:i,onDrop:N=>{r(N.map((W,ee)=>Object.assign(W,{preview:URL.createObjectURL(W)})))}});h.useEffect(()=>()=>{t==null||t.forEach(N=>{URL.revokeObjectURL(N.preview)})},[t]),h.useEffect(()=>{r(H)},[H,A]),m=()=>{H.length=0,H.splice(0,H.length),r([])};const J=()=>{H.length=0,r([])};h.useEffect(()=>{if(x>0){const N=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],W=Math.floor(Math.log(x)/Math.log(1024));O(parseFloat((x/Math.pow(1024,W)).toFixed(2))+" "+N[W])}},[x]);const ge=z.map((N,W)=>{switch(N.errors[0].code){case"file-too-large":return s.jsx(qn,{text:N.file.name,title:e.fileTooLarge,severity:"error"});case"too-many-files":return s.jsx(qn,{text:N.file.name,title:e.tooManyFiles,severity:"error"});case"file-invalid-type":return s.jsx(qn,{text:N.file.name,title:e.invalidFileType,severity:"error"});default:return s.jsx(qn,{text:N.file.name,title:N.errors[0].code,severity:"error"})}}),xe=t==null?void 0:t.map((N,W)=>s.jsxs("div",{className:"relative rounded",children:[s.jsxs("button",{onClick:ee=>{ee.stopPropagation(),H.splice(H.indexOf(N),1),S(Math.random),c(N)},type:"button",className:"absolute left-0 ml-auto inline-flex items-center rounded-inner rounded-bl-none rounded-tr-none bg-gray-900 p-1.5 text-sm text-gray-400 transition-all hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white","data-modal-toggle":"defaultModal",children:[s.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})}),s.jsx("span",{className:"sr-only",children:"Close modal"})]}),s.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",height:100,width:100,backgroundImage:`url(${N.preview})`,backgroundSize:"cover",backgroundPosition:"center",border:"1px solid black"},className:"rounded-lg"},N.name)]}));return s.jsxs("div",{children:[C&&s.jsx("div",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300",children:C}),s.jsxs("div",{className:$e("flex flex-col justify-center rounded border border-dashed bg-gray-50 p-6 transition-all hover:bg-gray-100 dark:bg-gray-950 dark:hover:bg-gray-800 ",oe?"bg-gray-200 dark:bg-gray-700":"bg-background"),children:[s.jsxs("div",{...L({}),children:[s.jsx("p",{...M()}),s.jsxs("div",{className:"flex flex-col items-center justify-center gap-2 pt-4 text-center",children:[s.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:"1.5em",width:"1.5em",children:[s.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),s.jsx("path",{d:"M19 11v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"}),s.jsx("path",{d:"M13 13l9 3l-4 2l-2 4l-3 -9"}),s.jsx("path",{d:"M3 3l0 .01"}),s.jsx("path",{d:"M7 3l0 .01"}),s.jsx("path",{d:"M11 3l0 .01"}),s.jsx("path",{d:"M15 3l0 .01"}),s.jsx("path",{d:"M3 7l0 .01"}),s.jsx("path",{d:"M3 11l0 .01"}),s.jsx("path",{d:"M3 15l0 .01"})]}),s.jsx(e.clickHereToUpload,{})]}),s.jsxs("div",{className:"pt-2 text-center text-xs",children:[e.acceptedFileTypes," ",l.split(",")]}),s.jsxs("div",{className:"pb-2 pt-1 text-center text-xs",children:[e.maxFileSize," ",j]})]}),H.length>0&&s.jsx("div",{className:"flex justify-center rounded-lg p-2 ",children:s.jsx(qe,{onClick:J,children:"Clear All"})}),H.length>0&&xe&&u?s.jsx("aside",{className:"flex flex-row flex-wrap justify-center gap-2 rounded-lg p-2",children:xe}):null,s.jsx("div",{className:"px-4",children:((ce=(Q=z[0])==null?void 0:Q.errors[0])==null?void 0:ce.code)&&ge})]}),p&&s.jsxs("div",{className:"mt-2 text-sm text-muted-foreground/50",children:[e.disclaimer??"By uploading a file you agree to our"," ",s.jsx("a",{href:E,className:"clickable-link text-muted-foreground/50",children:e.terms??"Terms"})," ",e.and??"and"," ",s.jsx("a",{href:v,className:"clickable-link text-muted-foreground/50",children:e.privacyPolicy??"Privacy Policy"})]})]})},I6=e=>s.jsxs("div",{className:"flex flex-row rounded bg-layoutPrimary-500 p-4",children:[s.jsx("button",{className:"inline-flex items-center rounded bg-white p-2 text-center text-sm font-medium text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-50 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-600",type:"button",children:s.jsx("svg",{className:"h-6 w-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{d:"M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"})})}),s.jsx("div",{className:"p-4",children:e.children})]}),T6=({subsections:e})=>{const[t,r]=h.useState(null);return s.jsx("div",{className:"w-full max-w-2xs rounded bg-layoutPrimary-500 p-4 ",children:e.map((n,a)=>s.jsxs("div",{className:"my-0",children:[n.title&&s.jsx("div",{className:"my-4 font-bold",children:n.title}),n.sections.map((o,i)=>s.jsx(k6,{onItemClick:()=>r(o.value),selected:t,value:o.value,icon:o.icon,title:o.label,chip:"Upgrade"},i))]},a))})},k6=({title:e,value:t,icon:r,chip:n,selected:a,onItemClick:o})=>s.jsxs("div",{onClick:o,className:$e("flex w-full cursor-pointer flex-row items-center justify-between gap-2 rounded p-2 transition-all ",a===t?"bg-primary text-white hover:bg-primary":"hover:bg-layoutPrimary-300"),children:[s.jsxs("div",{className:"flex w-full flex-row items-center justify-start gap-2",children:[r," ",s.jsx("span",{children:e})]}),n&&s.jsx(bc,{label:"Upgrade",size:"normal"})," "]}),B6=e=>s.jsxs("div",{className:"flex w-full flex-col gap-0 rounded border bg-card p-4",children:[s.jsxs("div",{className:"flex flex-row items-center gap-2",children:[s.jsx("span",{className:"bg-white-200",children:e.title}),e.tooltip&&s.jsx(ms,{content:e.tooltip,children:s.jsx("svg",{stroke:"currentColor","aria-label":"Exclamation Circle",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:s.jsx("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"})})})]}),s.jsxs("div",{className:"bg-white-100 flex flex-row",children:[s.jsx("div",{children:e.currentUsage}),s.jsxs("div",{children:[" (",e.percent,"%)"]})]}),s.jsx("div",{className:"mt-2 h-2.5 w-full rounded-full bg-gray-200 dark:bg-gray-700",children:s.jsx("div",{className:"h-2.5 rounded-full bg-primary",style:{width:`${e.percent??0}%`}})})]}),P6=({direction:e="ltr",texts:t={total:"Total",plan:"Plan",usage:"Usage",amount:"Amount",price:"Price"},...r})=>{var i;const n=l=>s.jsxs("div",{className:$e(l.start?"items-start":"items-end","flex w-full flex-col"),children:[s.jsx("div",{className:" text-sm text-gray-500",children:l.label}),s.jsx("div",{className:" whitespace-nowrap",children:l.text})]}),[a,o]=h.useState(!1);return s.jsxs("div",{className:"flex w-full flex-col",children:[s.jsxs("div",{className:"flex w-full flex-row items-center gap-2 border p-4 ",children:[r.invoiceActions&&s.jsx("div",{className:$e("transition-all hover:cursor-pointer ",e==="rtl"?"rotate-180":"",a?"rotate-90":""),onClick:()=>o(!a),children:s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"2em",width:"2em",children:s.jsx("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})})}),s.jsxs("div",{className:"flex w-full cursor-pointer flex-col gap-0",onClick:()=>o(!a),children:[s.jsxs("div",{className:"flex flex-row items-center gap-2",children:[s.jsx("span",{className:"bg-white-200",children:r.invoiceTitle}),r.status&&s.jsx(bc,{size:"small",label:r.status})]}),s.jsx("div",{className:"font-sm text-gray-400",children:r.invoiceSubtitle})]}),s.jsxs("div",{className:"flex flex-row items-center gap-2",children:[s.jsx("div",{className:"whitespace-nowrap",children:r.total}),s.jsx(dd,{direction:e,position:e==="rtl"?"bottom-right":"bottom-left",menuItems:r.invoiceActions,children:s.jsx("div",{className:" p-2",children:s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:s.jsx("path",{d:"M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"})})})})]})]}),a&&s.jsxs("div",{className:$e(a?"h-full":"h-0 border-none p-0 px-4","flex h-auto flex-col gap-4 overflow-clip border border-t-0 bg-gray-50 p-4 transition-all"),children:[s.jsx("div",{className:"border-b pb-2",children:r.invoiceDescription}),(i=r.products)==null?void 0:i.map((l,u)=>s.jsxs("div",{className:"flex flex-row border-b pb-4",children:[s.jsx("div",{className:"w-full",children:s.jsx(n,{start:!0,label:t.plan,text:l.plan})}),s.jsxs("div",{className:"flex w-full flex-row gap-20 ",children:[s.jsx(n,{label:t.usage,text:`${l.usage} SAR`}),s.jsx(n,{label:t.price,text:`${l.price} SAR`}),s.jsx(n,{label:t.amount,text:`${l.amount} SAR`})]})]},u)),s.jsxs("div",{className:"flex flex-row justify-between",children:[s.jsx("div",{children:t.total})," ",s.jsx("div",{children:r.total})]})]})]})},O6=({position:e="bottom-right",...t})=>{const[r,n]=h.useState(!1),[a,o]=h.useState(!1),[i,l]=h.useState(null),[u,c]=h.useState(5),m=h.useRef(null),p={"bottom-right":"right-4","bottom-left":"left-4"};h.useEffect(()=>{const C=setTimeout(()=>{u>=0&&c(u-1)},1e3);return()=>{clearTimeout(C)}},[u]);const x=()=>{n(!0),setTimeout(()=>{m.current.removeChild(m.current.children[0])},200)};return s.jsx("div",{ref:m,className:$e("fixed bottom-4 ",p[e]),children:s.jsxs("div",{className:$e("relative flex w-full max-w-sm flex-col gap-2 rounded border bg-background p-4 shadow-md transition-all",r?"opacity-0":"opacity-100"),children:[s.jsx("div",{className:"absolute left-2 top-2 p-1.5 text-sm",children:t.title}),s.jsx("button",{type:"button",className:"absolute right-2 top-2 inline-flex h-8 w-8 rounded p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white","data-dismiss-target":"#toast-default","aria-label":"Close",onClick:()=>x(),children:s.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}),s.jsx("div",{className:"mt-8",children:t.question}),s.jsx("div",{className:"flex w-full flex-row gap-1 rounded",children:t.options.map(C=>s.jsx("span",{onClick:()=>{t.onOptionClicked(C),l(C),o(!0);const E=setTimeout(()=>{n(!0)},4800);setTimeout(()=>{m.current.removeChild(m.current.children[0]),clearTimeout(E)},5300)},className:$e("w-full cursor-pointer rounded border p-4 text-center transition-all ",i===C?"bg-gray-500 text-white":"border bg-background hover:bg-gray-300 dark:hover:bg-gray-700"),children:C}))}),t.texts&&s.jsxs("div",{className:" flex flex-row justify-between text-xs",children:[s.jsx("span",{children:t.texts.least}),s.jsx("span",{children:t.texts.most})]}),a&&s.jsxs("div",{className:"absolute left-0 top-0 gap-2 flex h-full w-full flex-col items-center justify-center rounded bg-black bg-opacity-80 p-4 text-center transition-all",children:[s.jsxs("span",{className:"font-bold text-white",children:["Thank you for your answer. This box will disappear in"," "+u," seconds"]}),s.jsx("div",{className:"flex flex-row gap-2",children:s.jsx(qe,{onClick:()=>x(),children:"Close"})})]})]})})},xd=je.forwardRef(({className:e,label:t,helperText:r,...n},a)=>s.jsxs("div",{className:"flex flex-col gap-2",children:[t&&s.jsx(ti,{htmlFor:n.id,children:t}),s.jsx("textarea",{className:Ve("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...n}),r&&s.jsx("p",{className:"mb-0 mt-0 text-xs text-red-600 dark:text-red-500",children:r})]}));xd.displayName="Textarea";const tx="Popover",[rx,IN]=Dn(tx,[cs]),jp=cs(),[N6,vs]=rx(tx),M6=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:a,onOpenChange:o,modal:i=!1}=e,l=jp(t),u=h.useRef(null),[c,m]=h.useState(!1),[p=!1,x]=Rn({prop:n,defaultProp:a,onChange:o});return h.createElement(Yc,l,h.createElement(N6,{scope:t,contentId:Sn(),triggerRef:u,open:p,onOpenChange:x,onOpenToggle:h.useCallback(()=>x(C=>!C),[x]),hasCustomAnchor:c,onCustomAnchorAdd:h.useCallback(()=>m(!0),[]),onCustomAnchorRemove:h.useCallback(()=>m(!1),[]),modal:i},r))},R6="PopoverTrigger",$6=h.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,a=vs(R6,r),o=jp(r),i=Kt(t,a.triggerRef),l=h.createElement(St.button,we({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":ox(a.open)},n,{ref:i,onClick:at(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?l:h.createElement(Zh,we({asChild:!0},o),l)}),nx="PopoverPortal",[L6,_6]=rx(nx,{forceMount:void 0}),W6=e=>{const{__scopePopover:t,forceMount:r,children:n,container:a}=e,o=vs(nx,t);return h.createElement(L6,{scope:t,forceMount:r},h.createElement(sn,{present:r||o.open},h.createElement(Jc,{asChild:!0,container:a},n)))},Kl="PopoverContent",V6=h.forwardRef((e,t)=>{const r=_6(Kl,e.__scopePopover),{forceMount:n=r.forceMount,...a}=e,o=vs(Kl,e.__scopePopover);return h.createElement(sn,{present:n||o.open},o.modal?h.createElement(H6,we({},a,{ref:t})):h.createElement(z6,we({},a,{ref:t})))}),H6=h.forwardRef((e,t)=>{const r=vs(Kl,e.__scopePopover),n=h.useRef(null),a=Kt(t,n),o=h.useRef(!1);return h.useEffect(()=>{const i=n.current;if(i)return Kh(i)},[]),h.createElement(rp,{as:Ko,allowPinchZoom:!0},h.createElement(ax,we({},e,{ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:at(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),o.current||(l=r.triggerRef.current)===null||l===void 0||l.focus()}),onPointerDownOutside:at(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,c=l.button===2||u;o.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:at(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})))}),z6=h.forwardRef((e,t)=>{const r=vs(Kl,e.__scopePopover),n=h.useRef(!1),a=h.useRef(!1);return h.createElement(ax,we({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,o),!o.defaultPrevented){var l;n.current||(l=r.triggerRef.current)===null||l===void 0||l.focus(),o.preventDefault()}n.current=!1,a.current=!1},onInteractOutside:o=>{var i,l;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const u=o.target;((l=r.triggerRef.current)===null||l===void 0?void 0:l.contains(u))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}}))}),ax=h.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:m,...p}=e,x=vs(Kl,r),C=jp(r);return Vh(),h.createElement(Gh,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:o},h.createElement(zl,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:m,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>x.onOpenChange(!1)},h.createElement(Uh,we({"data-state":ox(x.open),role:"dialog",id:x.contentId},C,p,{ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function ox(e){return e?"open":"closed"}const G6=M6,Z6=$6,U6=W6,ix=V6,sx=je.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},a)=>s.jsx(U6,{children:s.jsx(ix,{ref:a,align:t,sideOffset:r,className:Ve("z-50 rounded border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:shadow-dark",e),...n})}));sx.displayName=ix.displayName;const lx=({trigger:e,children:t,className:r,align:n="center",side:a,sideOffset:o=4,open:i})=>s.jsxs(G6,{open:i,children:[s.jsx(Z6,{children:e}),s.jsx(sx,{side:a,className:r,align:n,sideOffset:o,children:t})]}),X6=e=>{const[t,r]=h.useState(null),[n,a]=h.useState(!1),[o,i]=h.useState(""),[l,u]=h.useState(!1);let c=[{icon:s.jsx(Y6,{}),value:"very-good"},{icon:s.jsx(J6,{}),value:"good"},{icon:s.jsx(Q6,{}),value:"bad"},{icon:s.jsx(K6,{}),value:"very-bad"}];const m=async()=>{if(console.log("submitting"),o){a(!0);try{await e.handleSubmit({choice:t,feedback:o})}catch(p){console.error("Error during submission:",p),a(!1)}await a(!1)}else a(!1),u(!0)};return s.jsxs("div",{className:Ve("flex flex-col gap-2 rounded border p-2 transition-all",t?"h-[165px] min-w-fit":"h-[44px] "),children:[s.jsx("div",{className:"flex flex-row items-center justify-center gap-2 ",children:s.jsx("div",{className:"flex flex-row justify-center gap-0.5 ",children:c.map((p,x)=>s.jsx(qe,{onClick:()=>{t===p.value?r(""):r(p.value)},variant:"ghost",size:"smallIcon",className:Ve(t===p.value?"bg-primary/10 hover:bg-primary/10 ":"text-[#666666]"),children:p.icon},x))})}),s.jsx("div",{className:Ve("flex flex-col overflow-clip transition-all duration-500 ease-in-out ",t?"visible opacity-100":"invisible opacity-0 "),children:e.showSuccess?s.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2 pt-4",children:[s.jsx("div",{className:"rounded bg-primary p-2 text-primary-foreground",children:s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"0.5em",width:"0.5em",children:s.jsx("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"})})}),s.jsxs("div",{className:"text-sm flex flex-col text-center",children:[s.jsx("span",{children:"Your feedback has been received!"}),s.jsx("span",{children:"Thank you for your help"})]})]}):s.jsxs(s.Fragment,{children:[s.jsxs(lx,{className:"select-none p-1 text-xs ",open:l,trigger:s.jsx(xd,{className:Ve("mb-2 h-full resize-none"),placeholder:"Your feedback",onChange:p=>{p.target.value&&u(!1),i(p.target.value),console.log("changing to",p.target.value)}}),children:[s.jsx("span",{children:"Please enter your feedback"})," "]}),s.jsx(qe,{isLoading:n,onClick:m,className:"w-full",size:"sm",children:"Submit"})]})})]})},Y6=()=>s.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",children:s.jsxs("g",{clipPath:"url(#clip0_53_166)",children:[s.jsx("path",{clipRule:"evenodd",d:"M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM4.5 8.97498H3.875V9.59998C3.875 11.4747 5.81046 12.8637 7.99817 12.8637C10.1879 12.8637 12.125 11.4832 12.125 9.59998V8.97498H11.5H4.5ZM7.99817 11.6137C6.59406 11.6137 5.63842 10.9482 5.28118 10.225H10.7202C10.3641 10.9504 9.40797 11.6137 7.99817 11.6137Z",fill:"currentColor",fillRule:"evenodd"}),s.jsx("path",{clipRule:"evenodd",d:"M6.15295 4.92093L5.375 3.5L4.59705 4.92093L3 5.21885L4.11625 6.39495L3.90717 8L5.375 7.30593L6.84283 8L6.63375 6.39495L7.75 5.21885L6.15295 4.92093ZM11.403 4.92093L10.625 3.5L9.84705 4.92093L8.25 5.21885L9.36625 6.39495L9.15717 8L10.625 7.30593L12.0928 8L11.8837 6.39495L13 5.21885L11.403 4.92093Z",fill:"#FF990A",fillRule:"evenodd"})]})}),J6=()=>s.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("g",{clipPath:"url(#clip0_53_167)",children:s.jsx("path",{clipRule:"evenodd",d:"M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.5249 10.8478L11.8727 10.3286L10.8342 9.6329L10.4863 10.1522C9.94904 10.9543 9.0363 11.4802 8.00098 11.4802C6.96759 11.4802 6.05634 10.9563 5.51863 10.1567L5.16986 9.63804L4.13259 10.3356L4.48137 10.8542C5.2414 11.9844 6.53398 12.7302 8.00098 12.7302C9.47073 12.7302 10.7654 11.9816 11.5249 10.8478ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",fill:"currentColor",fillRule:"evenodd"})})}),Q6=()=>s.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("g",{clipPath:"url(#clip0_53_152)",children:s.jsx("path",{clipRule:"evenodd",d:"M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM5.75 7.75C6.30228 7.75 6.75 7.30228 6.75 6.75C6.75 6.19772 6.30228 5.75 5.75 5.75C5.19772 5.75 4.75 6.19772 4.75 6.75C4.75 7.30228 5.19772 7.75 5.75 7.75ZM11.25 6.75C11.25 7.30228 10.8023 7.75 10.25 7.75C9.69771 7.75 9.25 7.30228 9.25 6.75C9.25 6.19772 9.69771 5.75 10.25 5.75C10.8023 5.75 11.25 6.19772 11.25 6.75ZM11.5249 11.2622L11.8727 11.7814L10.8342 12.4771L10.4863 11.9578C9.94904 11.1557 9.0363 10.6298 8.00098 10.6298C6.96759 10.6298 6.05634 11.1537 5.51863 11.9533L5.16986 12.4719L4.13259 11.7744L4.48137 11.2558C5.2414 10.1256 6.53398 9.37982 8.00098 9.37982C9.47073 9.37982 10.7654 10.1284 11.5249 11.2622Z",fill:"currentColor",fillRule:"evenodd"})})}),K6=()=>s.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",children:s.jsxs("g",{clipPath:"url(#clip0_53_151)",children:[s.jsx("path",{d:"M11.841 12.0225C12.7197 12.9324 12.7197 14.4077 11.841 15.3176C10.9623 16.2275 9.53769 16.2275 8.65901 15.3176C7.78033 14.4077 7.78033 12.9324 8.65901 12.0225L10.25 10.375L11.841 12.0225Z",fill:"#0070F3"}),s.jsx("path",{clipRule:"evenodd",d:"M8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 10.9668 3.48826 13.4711 6.20649 14.2496L5.79351 15.6916C2.44895 14.7338 0 11.6539 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 9.4652 15.6054 10.8405 14.9162 12.023L13.6203 11.2677C14.1794 10.3083 14.5 9.19272 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",fill:"currentColor",fillRule:"evenodd"})]})}),ux=e=>s.jsx("svg",{onClick:e.onClick||(()=>{}),className:$e("h-6 w-6 shrink-0 transition-all disabled:bg-gray-200",e.direction==="right"?"-rotate-90":"rotate-90",e.disabled?"text-gray-300":"cursor-pointer hover:scale-150"),fill:e.disabled&&"grey",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}),q6=e=>{const[t,r]=h.useState(e.index||0);return h.useEffect(()=>{console.log(`INDEX CHANGED TO: ${t}`)},[t]),s.jsxs("div",{className:"align-center box-boorder relative flex h-min w-min flex-row items-center justify-center rounded bg-layoutPrimary-500 p-4 py-0 pb-2 pt-2 shadow-md",children:[s.jsx(ux,{direction:"left",disabled:t==0,onClick:()=>{t!=0&&r(t-1)}}),s.jsxs("div",{className:"relative m-5 my-0 box-border flex h-full flex-col items-center justify-center py-6 pt-0 ",children:[s.jsx("div",{children:e.items[t].icon}),s.jsx("div",{className:"absolute bottom-1 mb-0 mt-2 select-none",children:e.items[t].label})]}),s.jsx(ux,{direction:"right",disabled:t==e.items.length-1,onClick:()=>{t!=e.items.length-1&&r(t+1)}})]})},ej=e=>s.jsx("div",{className:"border-box mr-[10px] flex h-[32px] w-[32px] items-center justify-center rounded bg-gray-300 p-2",onMouseDown:e.onMouseDown,children:e.name}),cx={bold:{css:"font-bold",content:"B"},italic:{id:"italic",css:"italic",content:"I"},under:{id:"under",css:"underline",content:"U"},strike:{id:"strike",css:"line-through",content:"S"}},ta="​",tj=e=>{const[t,r]=h.useState({content:"",stylings:[],revert:[0,0],clipboard:[],events:{paste:{is:!1,length:null},drop:{is:!1,text:null,drag:null}}}),n=h.useRef(null),a=h.useRef(t),o=N=>{a.current=N,r(N)},i=N=>{for(var W=0;N=N.previousSibling;W++);return W},l=(N,W)=>Array.from(N.childNodes).slice(0,W).map(ne=>ne.textContent.length).reduce((ne,te)=>ne+te,0),u=N=>Array.from(n.current.childNodes).slice(0,N).map(de=>{let ne=Array.from(de.childNodes);return l(de,ne.length)}).reduce((de,ne)=>de+ne,0),c=N=>{let W=window.getSelection(),ee=Array.from(n.current.childNodes);ee=ee.filter(se=>!["#text","BR"].includes(se.nodeName));let de=W[N],ne=de.parentNode,te=0;const K=de.nodeName=="DIV"&&Array.from(de.classList).includes("line");if(ne.nodeName=="SPAN"){let se=i(ne);te+=l(ne.parentNode,se);let fe=i(ne.parentNode);te+=u(fe)}if(Array.from(ne.classList).includes("line")){if(de.nodeName=="#text"){let fe=i(de);te+=l(ne,fe)}let se=i(ne);te+=u(se)}if(K){let se=i(de);te=u(se)}return ne==n.current&&!K?0:te},m=()=>{if(document.activeElement!=n.current)return[0,0];let N=window.getSelection(),W=c("anchorNode"),ee=c("focusNode");return[W+N.anchorOffset,ee+N.focusOffset].sort((ne,te)=>ne-te)};h.useEffect(()=>{setTimeout(function(){let[N,W]=a.current.revert;if(N==0&&W==0)return;let ee=null,de=null,ne=0,te=Array.from(n.current.getElementsByTagName("span"));for(let fe=0;fe<te.length;fe++){let Se=te[fe],G=Se.textContent.length+ne;ee==null&&N>=ne&&N<=G&&(ee=te[fe],N-=ne),de==null&&W>ne&&W<=G&&(de=te[fe],W-=ne),ne+=Se.textContent.length}var K=document.createRange(),se=window.getSelection();K.setStart(ee.firstChild,N),K.setEnd(de.firstChild,W),se.removeAllRanges(),se.addRange(K)},1)},[t.revert]);const p=(N,W)=>{let ee=[];for(let de=N;de<=W;de++)ee.push(de);return ee},x=(N,W)=>{const ee=new Set;for(const de of W)N.has(de)&&ee.add(de);return ee},C=N=>N.sort((W,ee)=>W-ee)[0],E=N=>N.sort((W,ee)=>ee-W)[0],v=(N,W)=>{if(N.type!=W.type)return-1;if(W.start<=N.start&&W.finish>=N.finish)return 0;let ee=new Set(p(N.start-1,N.finish-1)),de=new Set(p(W.start-1,W.finish-1));return x(ee,de).size==0?2:1},A=(N,W,ee,de)=>{let[ne,te,K]=N.find(([fe,Se,G])=>fe==0);W=W.filter((fe,Se)=>Se!=te);let se=[{type:de,start:C([K.start,ee.start]),finish:E([K.start,ee.start])},{type:de,start:C([K.finish,ee.finish]),finish:E([K.finish,ee.finish])}];return se=se.filter(fe=>fe.start!=fe.finish),W=[...W,...se],W},S=(N,W,ee,de)=>{let ne=N.filter(([fe,Se,G])=>fe==1).map(([fe,Se,G])=>[Se,G]);ne.push([-1,ee]);let te=ne.map(([fe,Se])=>Se.start).sort((fe,Se)=>fe-Se)[0],K=ne.map(([fe,Se])=>Se.finish).sort((fe,Se)=>Se-fe)[0],se=ne.map(fe=>fe[0]);return W=W.filter((fe,Se)=>!se.includes(Se)),W.push({type:de,start:te,finish:K}),W},j=N=>{let W=a.current.stylings.slice(),[ee,de]=m();if(ee==de)return;let ne={type:N,start:ee,finish:de},te=[];for(let se=0;se<W.length;se++){let fe=W[se],Se=v(ne,fe);Se!=-1&&te.push([Se,se,fe])}let K;te.find(([se,fe,Se])=>se==1)?K=S(te,W,ne,N):te.find(([se,fe,Se])=>se==0)?K=A(te,W,ne,N):(te.find(([se,fe,Se])=>se==2)||te.length==0)&&(K=[...W,ne]),o({...t,stylings:K,revert:[ee,de]})},O=(N,W,ee=0,de=0)=>N.filter(({start:te,finish:K})=>W>=te+ee&&W<K+de),L=(N,W,ee)=>{let de=N.filter(({start:ne,finish:te})=>te>W&&ne<ee||ne<ee&&te>W);return de=de.map(ne=>({...ne,start:E([ne.start,W])-W,finish:C([ne.finish,ee])-W})),de},M=(N,W,ee=0)=>{let de={...N,start:N.start,finish:W},ne={...N,start:W+ee,finish:N.finish+ee};return[de,ne]},z=(N,W,ee,de=!0)=>(N=N.map(ne=>ne.start>=W&&ne.finish>W?(console.log("succeeding"),{...ne,start:ne.start+ee,finish:ne.finish+ee}):ne.start<W&&ne.finish>W?de?{...ne,finish:ne.finish+ee}:M(ne,W,ee):ne.finish==W&&de?{...ne,finish:ne.finish+ee}:ne),N.flat()),H=(N,W,ee)=>{let de=Math.abs(ee-W);return N=N.map(ne=>ne.start>=W&&ne.start>=ee&&ne.finish>=W&&ne.finish>=ee?{...ne,start:ne.start-de,finish:ne.finish-de}:ne.start>=W&&ne.finish<=ee?null:ne.start<=W&&ne.finish>=ee?{...ne,finish:ne.finish-de}:ne.start>W&&ne.start<ee?{...ne,start:E([ne.start,ee])-de,finish:ne.finish-de}:ne.finish>W&&ne.finish<ee?{...ne,finish:C([ne.finish,W])}:ne),N.flat().filter(ne=>ne)},oe=(N,W,ee,de)=>(W==0||(W>0?N=z(N,ee-W,W):N=H(N,ee,de+Math.abs(W))),N),J=(N,W,ee,de)=>{let ne=a.current.events.paste.length,te=ee-ne,K=te,se=te+ne-W;return N=H(N,K,se),N=z(N,te,ne,!1),N=N.concat(a.current.clipboard.map(fe=>({...fe,start:fe.start+te,finish:fe.finish+te}))),N},ge=(N,W,ee,de)=>{console.log(`Dropped at: ${[ee,de]}`);let ne=a.current.events.drop.text.length,[te,K]=a.current.events.drop.drag,se=ee-te,fe=L(N,te,K),Se=te,G=K;if(se>0&&(N=z(N,de,ne,!1),N=H(N,Se,G)),se<0){let he=ee;N=H(N,Se,G),N=z(N,he,ne,!1)}return N=N.concat(fe.map(he=>({...he,start:he.start+ee,finish:he.finish+ee}))),N},xe=(N,W,ee)=>{a.current.events.drop.is&&N.length!=a.current.content.length||(console.log(`Changed at: ${[W,ee]}`),setTimeout(function(){let de=N.length-a.current.content.length,ne=a.current.stylings;a.current.events.paste.is?ne=J(ne,de,W):a.current.events.drop.is?ne=ge(ne,de,W,ee):ne=oe(ne,de,W,ee),o({...a.current,content:N,stylings:ne,revert:[W,ee],events:{paste:{is:!1,length:null},drop:{is:!1,text:null,drag:null}}})},0))},Q=()=>{let N=a.current.content,W=[...a.current.stylings],ee=[],de=N.split("").map((ne,te)=>ne==ta?te:null).filter(ne=>ne);de.unshift(0),de.push(N.length);for(let ne=0;ne<de.length-1;ne++){let te=de[ne],K=de[ne+1],se=N.slice(te,K),fe=L(W,te,K),Se=[],G=fe.map(({start:ae,finish:me})=>[ae,me]).flat().sort((ae,me)=>ae-me);G=G.filter((ae,me)=>G.indexOf(ae)==me),G[0]!=0&&G.unshift(0);let he=se.length;G[G.length-1]!=he&&G.push(he);for(let ae=0;ae<G.length-1;ae++){let me=G[ae],Me=G[ae+1];Se.push({content:se.substring(me,Me),types:O(fe,me).map(Pe=>Pe.type)})}ee.push(Se)}return ee};h.useEffect(()=>{let N=Q().map((W,ee)=>`<div class="line" data-line-index="${ee}">${W.map((de,ne)=>`<span class="${de.types.map(te=>cx[te].css).join(" ")}" data-child-index="${ne}">${de.content}</span>`).join("")}</div>`).join("");n.current.innerHTML=N},[t.content,t.stylings,t.revert]);const ce=()=>{switch(e.rtl||"disabled"){case"enabled":return"rtl";case"disabled":return"ltr";case"auto":return"ltr"}};return s.jsxs("div",{className:"align-center box-border flex h-min w-[400px] flex-col items-center justify-center rounded shadow-md",children:[s.jsx("div",{className:$e("flex w-full flex-row justify-start p-2"),children:Object.entries(cx).map(([N,W])=>s.jsx(ej,{name:W.content,onMouseDown:ee=>{ee.preventDefault(),j(N)}},`property-${N}`))}),s.jsx("div",{className:"h-[1px] w-full bg-slate-600",children:" "}),s.jsx("div",{className:"selection-ignore box-border w-full p-2",children:s.jsx("div",{ref:n,contentEditable:"true",className:"selection-ignore rtl h-[150px] w-full resize-none overflow-auto overflow-x-hidden border-none font-['Arial'] text-[16px] outline-none",style:{direction:ce()},onPaste:N=>{N.preventDefault();let W=N.clipboardData.getData("text/plain");W=W.replaceAll(`
105
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jb(e,t){if(e){if(typeof e=="string")return Dp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dp(e,t)}}function Dp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function D6(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,i,l;try{for(r=r.call(e);!(a=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));a=!0);}catch(u){o=!0,l=u}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw l}}return n}}function S6(e){if(Array.isArray(e))return e}function Qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qb(Object(r),!0).forEach(function(n){Sp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bd(e,t){if(e==null)return{};var r=A6(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function A6(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var Ap=h.forwardRef(function(e,t){var r=e.children,n=bd(e,g6),a=qb(n),o=a.open,i=bd(a,m6);return h.useImperativeHandle(t,function(){return{open:o}},[o]),h.createElement(h.Fragment,null,r(dr(dr({},i),{},{open:o})))});Ap.displayName="Dropzone";var Kb={disabled:!1,getFilesFromEvent:WF,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Ap.defaultProps=Kb,Ap.propTypes={children:qt.func,accept:qt.oneOfType([qt.string,qt.arrayOf(qt.string)]),multiple:qt.bool,preventDropOnDocument:qt.bool,noClick:qt.bool,noKeyboard:qt.bool,noDrag:qt.bool,noDragEventsBubbling:qt.bool,minSize:qt.number,maxSize:qt.number,maxFiles:qt.number,disabled:qt.bool,getFilesFromEvent:qt.func,onFileDialogCancel:qt.func,onFileDialogOpen:qt.func,useFsAccessApi:qt.bool,onDragEnter:qt.func,onDragLeave:qt.func,onDragOver:qt.func,onDrop:qt.func,onDropAccepted:qt.func,onDropRejected:qt.func,validator:qt.func};var Fp={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function qb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=dr(dr({},Kb),e),r=t.accept,n=t.disabled,a=t.getFilesFromEvent,o=t.maxSize,i=t.minSize,l=t.multiple,u=t.maxFiles,c=t.onDragEnter,m=t.onDragLeave,p=t.onDragOver,x=t.onDrop,C=t.onDropAccepted,E=t.onDropRejected,v=t.onFileDialogCancel,A=t.onFileDialogOpen,S=t.useFsAccessApi,j=t.preventDropOnDocument,O=t.noClick,L=t.noKeyboard,M=t.noDrag,z=t.noDragEventsBubbling,H=t.validator,oe=h.useMemo(function(){return typeof A=="function"?A:ex},[A]),J=h.useMemo(function(){return typeof v=="function"?v:ex},[v]),ge=h.useRef(null),xe=h.useRef(null),Q=h.useReducer(F6,Fp),ce=Ep(Q,2),N=ce[0],W=ce[1],ee=N.isFocused,de=N.isFileDialogActive,ne=N.draggedFiles,te=h.useRef(typeof window<"u"&&window.isSecureContext&&S&&d6()),K=function(){!te.current&&de&&setTimeout(function(){if(xe.current){var ze=xe.current.files;ze.length||(W({type:"closeDialog"}),J())}},300)};h.useEffect(function(){return window.addEventListener("focus",K,!1),function(){window.removeEventListener("focus",K,!1)}},[xe,de,J,te]);var se=h.useRef([]),fe=function(ze){ge.current&&ge.current.contains(ze.target)||(ze.preventDefault(),se.current=[])};h.useEffect(function(){return j&&(document.addEventListener("dragover",Yb,!1),document.addEventListener("drop",fe,!1)),function(){j&&(document.removeEventListener("dragover",Yb),document.removeEventListener("drop",fe))}},[ge,j]);var Se=h.useCallback(function(Ee){Ee.preventDefault(),Ee.persist(),At(Ee),se.current=[].concat(x6(se.current),[Ee.target]),vd(Ee)&&Promise.resolve(a(Ee)).then(function(ze){md(Ee)&&!z||(W({draggedFiles:ze,isDragActive:!0,type:"setDraggedFiles"}),c&&c(Ee))})},[a,c,z]),G=h.useCallback(function(Ee){Ee.preventDefault(),Ee.persist(),At(Ee);var ze=vd(Ee);if(ze&&Ee.dataTransfer)try{Ee.dataTransfer.dropEffect="copy"}catch{}return ze&&p&&p(Ee),!1},[p,z]),he=h.useCallback(function(Ee){Ee.preventDefault(),Ee.persist(),At(Ee);var ze=se.current.filter(function(bt){return ge.current&&ge.current.contains(bt)}),tt=ze.indexOf(Ee.target);tt!==-1&&ze.splice(tt,1),se.current=ze,!(ze.length>0)&&(W({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),vd(Ee)&&m&&m(Ee))},[ge,m,z]),ae=h.useCallback(function(Ee,ze){var tt=[],bt=[];Ee.forEach(function(Ot){var gt=Ub(Ot,r),Wt=Ep(gt,2),pr=Wt[0],Yt=Wt[1],Cr=Xb(Ot,i,o),gr=Ep(Cr,2),Or=gr[0],Nr=gr[1],xr=H?H(Ot):null;if(pr&&Or&&!xr)tt.push(Ot);else{var Mr=[Yt,Nr];xr&&(Mr=Mr.concat(xr)),bt.push({file:Ot,errors:Mr.filter(function(cn){return cn})})}}),(!l&&tt.length>1||l&&u>=1&&tt.length>u)&&(tt.forEach(function(Ot){bt.push({file:Ot,errors:[i6]})}),tt.splice(0)),W({acceptedFiles:tt,fileRejections:bt,type:"setFiles"}),x&&x(tt,bt,ze),bt.length>0&&E&&E(bt,ze),tt.length>0&&C&&C(tt,ze)},[W,l,r,i,o,u,x,C,E,H]),me=h.useCallback(function(Ee){Ee.preventDefault(),Ee.persist(),At(Ee),se.current=[],vd(Ee)&&Promise.resolve(a(Ee)).then(function(ze){md(Ee)&&!z||ae(ze,Ee)}),W({type:"reset"})},[a,ae,z]),Me=h.useCallback(function(){if(te.current){W({type:"openDialog"}),oe();var Ee={multiple:l,types:f6(r)};window.showOpenFilePicker(Ee).then(function(ze){return a(ze)}).then(function(ze){ae(ze,null),W({type:"closeDialog"})}).catch(function(ze){h6(ze)?(J(ze),W({type:"closeDialog"})):p6(ze)&&(te.current=!1,xe.current&&(xe.current.value=null,xe.current.click()))});return}xe.current&&(W({type:"openDialog"}),oe(),xe.current.value=null,xe.current.click())},[W,oe,J,S,ae,r,l]),Pe=h.useCallback(function(Ee){!ge.current||!ge.current.isEqualNode(Ee.target)||(Ee.key===" "||Ee.key==="Enter"||Ee.keyCode===32||Ee.keyCode===13)&&(Ee.preventDefault(),Me())},[ge,Me]),We=h.useCallback(function(){W({type:"focus"})},[]),Ke=h.useCallback(function(){W({type:"blur"})},[]),Ne=h.useCallback(function(){O||(c6()?setTimeout(Me,0):Me())},[O,Me]),Qe=function(ze){return n?null:ze},nt=function(ze){return L?null:Qe(ze)},vt=function(ze){return M?null:Qe(ze)},At=function(ze){z&&ze.stopPropagation()},re=h.useMemo(function(){return function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ze=Ee.refKey,tt=ze===void 0?"ref":ze,bt=Ee.role,Ot=Ee.onKeyDown,gt=Ee.onFocus,Wt=Ee.onBlur,pr=Ee.onClick,Yt=Ee.onDragEnter,Cr=Ee.onDragOver,gr=Ee.onDragLeave,Or=Ee.onDrop,Nr=bd(Ee,v6);return dr(dr(Sp({onKeyDown:nt(Ea(Ot,Pe)),onFocus:nt(Ea(gt,We)),onBlur:nt(Ea(Wt,Ke)),onClick:Qe(Ea(pr,Ne)),onDragEnter:vt(Ea(Yt,Se)),onDragOver:vt(Ea(Cr,G)),onDragLeave:vt(Ea(gr,he)),onDrop:vt(Ea(Or,me)),role:typeof bt=="string"&&bt!==""?bt:"button"},tt,ge),!n&&!L?{tabIndex:0}:{}),Nr)}},[ge,Pe,We,Ke,Ne,Se,G,he,me,L,M,n]),be=h.useCallback(function(Ee){Ee.stopPropagation()},[]),Ie=h.useMemo(function(){return function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ze=Ee.refKey,tt=ze===void 0?"ref":ze,bt=Ee.onChange,Ot=Ee.onClick,gt=bd(Ee,b6),Wt=Sp({accept:r,multiple:l,type:"file",style:{display:"none"},onChange:Qe(Ea(bt,me)),onClick:Qe(Ea(Ot,be)),tabIndex:-1},tt,xe);return dr(dr({},Wt),gt)}},[xe,r,l,me,n]),Ze=ne.length,He=Ze>0&&s6({files:ne,accept:r,minSize:i,maxSize:o,multiple:l,maxFiles:u}),Te=Ze>0&&!He;return dr(dr({},N),{},{isDragAccept:He,isDragReject:Te,isFocused:ee&&!n,getRootProps:re,getInputProps:Ie,rootRef:ge,inputRef:xe,open:Qe(Me)})}function F6(e,t){switch(t.type){case"focus":return dr(dr({},e),{},{isFocused:!0});case"blur":return dr(dr({},e),{},{isFocused:!1});case"openDialog":return dr(dr({},Fp),{},{isFileDialogActive:!0});case"closeDialog":return dr(dr({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var r=t.isDragActive,n=t.draggedFiles;return dr(dr({},e),{},{draggedFiles:n,isDragActive:r});case"setFiles":return dr(dr({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return dr({},Fp);default:return e}}function ex(){}const j6=({texts:e,files:t,setFiles:r,setDeletedFiles:n,onAcceptedFiles:a,errorMessages:o,maxFiles:i,accept:l,showPreview:u,onDeleteFile:c,onClearFiles:m,disclaimer:p,maxSize:x,label:C,termsLink:E,privacyLink:v})=>{var Q,ce;const[A,S]=h.useState(0),[j,O]=h.useState(0),{getRootProps:L,getInputProps:M,fileRejections:z,acceptedFiles:H,isDragActive:oe}=qb({multiple:!0,accept:l,maxSize:x,maxFiles:i,onDrop:N=>{r(N.map((W,ee)=>Object.assign(W,{preview:URL.createObjectURL(W)})))}});h.useEffect(()=>()=>{t==null||t.forEach(N=>{URL.revokeObjectURL(N.preview)})},[t]),h.useEffect(()=>{r(H)},[H,A]),m=()=>{H.length=0,H.splice(0,H.length),r([])};const J=()=>{H.length=0,r([])};h.useEffect(()=>{if(x>0){const N=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],W=Math.floor(Math.log(x)/Math.log(1024));O(parseFloat((x/Math.pow(1024,W)).toFixed(2))+" "+N[W])}},[x]);const ge=z.map((N,W)=>{switch(N.errors[0].code){case"file-too-large":return s.jsx(qn,{text:N.file.name,title:e.fileTooLarge,severity:"error"});case"too-many-files":return s.jsx(qn,{text:N.file.name,title:e.tooManyFiles,severity:"error"});case"file-invalid-type":return s.jsx(qn,{text:N.file.name,title:e.invalidFileType,severity:"error"});default:return s.jsx(qn,{text:N.file.name,title:N.errors[0].code,severity:"error"})}}),xe=t==null?void 0:t.map((N,W)=>s.jsxs("div",{className:"relative rounded",children:[s.jsxs("button",{onClick:ee=>{ee.stopPropagation(),H.splice(H.indexOf(N),1),S(Math.random),c(N)},type:"button",className:"absolute left-0 ml-auto inline-flex items-center rounded-inner rounded-bl-none rounded-tr-none bg-gray-900 p-1.5 text-sm text-gray-400 transition-all hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white","data-modal-toggle":"defaultModal",children:[s.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})}),s.jsx("span",{className:"sr-only",children:"Close modal"})]}),s.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",height:100,width:100,backgroundImage:`url(${N.preview})`,backgroundSize:"cover",backgroundPosition:"center",border:"1px solid black"},className:"rounded-lg"},N.name)]}));return s.jsxs("div",{children:[C&&s.jsx("div",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300",children:C}),s.jsxs("div",{className:$e("flex flex-col justify-center rounded border border-dashed bg-gray-50 p-6 transition-all hover:bg-gray-100 dark:bg-gray-950 dark:hover:bg-gray-800 ",oe?"bg-gray-200 dark:bg-gray-700":"bg-background"),children:[s.jsxs("div",{...L({}),children:[s.jsx("p",{...M()}),s.jsxs("div",{className:"flex flex-col items-center justify-center gap-2 pt-4 text-center",children:[s.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:"1.5em",width:"1.5em",children:[s.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),s.jsx("path",{d:"M19 11v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"}),s.jsx("path",{d:"M13 13l9 3l-4 2l-2 4l-3 -9"}),s.jsx("path",{d:"M3 3l0 .01"}),s.jsx("path",{d:"M7 3l0 .01"}),s.jsx("path",{d:"M11 3l0 .01"}),s.jsx("path",{d:"M15 3l0 .01"}),s.jsx("path",{d:"M3 7l0 .01"}),s.jsx("path",{d:"M3 11l0 .01"}),s.jsx("path",{d:"M3 15l0 .01"})]}),s.jsx(e.clickHereToUpload,{})]}),s.jsxs("div",{className:"pt-2 text-center text-xs",children:[e.acceptedFileTypes," ",l.split(",")]}),s.jsxs("div",{className:"pb-2 pt-1 text-center text-xs",children:[e.maxFileSize," ",j]})]}),H.length>0&&s.jsx("div",{className:"flex justify-center rounded-lg p-2 ",children:s.jsx(qe,{onClick:J,children:"Clear All"})}),H.length>0&&xe&&u?s.jsx("aside",{className:"flex flex-row flex-wrap justify-center gap-2 rounded-lg p-2",children:xe}):null,s.jsx("div",{className:"px-4",children:((ce=(Q=z[0])==null?void 0:Q.errors[0])==null?void 0:ce.code)&&ge})]}),p&&s.jsxs("div",{className:"mt-2 text-sm text-muted-foreground/50",children:[e.disclaimer??"By uploading a file you agree to our"," ",s.jsx("a",{href:E,className:"clickable-link text-muted-foreground/50",children:e.terms??"Terms"})," ",e.and??"and"," ",s.jsx("a",{href:v,className:"clickable-link text-muted-foreground/50",children:e.privacyPolicy??"Privacy Policy"})]})]})},I6=e=>s.jsxs("div",{className:"flex flex-row rounded bg-layoutPrimary-500 p-4",children:[s.jsx("button",{className:"inline-flex items-center rounded bg-white p-2 text-center text-sm font-medium text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-50 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-600",type:"button",children:s.jsx("svg",{className:"h-6 w-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{d:"M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"})})}),s.jsx("div",{className:"p-4",children:e.children})]}),T6=({subsections:e})=>{const[t,r]=h.useState(null);return s.jsx("div",{className:"w-full max-w-2xs rounded bg-layoutPrimary-500 p-4 ",children:e.map((n,a)=>s.jsxs("div",{className:"my-0",children:[n.title&&s.jsx("div",{className:"my-4 font-bold",children:n.title}),n.sections.map((o,i)=>s.jsx(k6,{onItemClick:()=>r(o.value),selected:t,value:o.value,icon:o.icon,title:o.label,chip:"Upgrade"},i))]},a))})},k6=({title:e,value:t,icon:r,chip:n,selected:a,onItemClick:o})=>s.jsxs("div",{onClick:o,className:$e("flex w-full cursor-pointer flex-row items-center justify-between gap-2 rounded p-2 transition-all ",a===t?"bg-primary text-white hover:bg-primary":"hover:bg-layoutPrimary-300"),children:[s.jsxs("div",{className:"flex w-full flex-row items-center justify-start gap-2",children:[r," ",s.jsx("span",{children:e})]}),n&&s.jsx(bc,{label:"Upgrade",size:"normal"})," "]}),B6=e=>s.jsxs("div",{className:"flex w-full flex-col gap-0 rounded border bg-card p-4",children:[s.jsxs("div",{className:"flex flex-row items-center gap-2",children:[s.jsx("span",{className:"bg-white-200",children:e.title}),e.tooltip&&s.jsx(ms,{content:e.tooltip,children:s.jsx("svg",{stroke:"currentColor","aria-label":"Exclamation Circle",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:s.jsx("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"})})})]}),s.jsxs("div",{className:"bg-white-100 flex flex-row",children:[s.jsx("div",{children:e.currentUsage}),s.jsxs("div",{children:[" (",e.percent,"%)"]})]}),s.jsx("div",{className:"mt-2 h-2.5 w-full rounded-full bg-gray-200 dark:bg-gray-700",children:s.jsx("div",{className:"h-2.5 rounded-full bg-primary",style:{width:`${e.percent??0}%`}})})]}),P6=({direction:e="ltr",texts:t={total:"Total",plan:"Plan",usage:"Usage",amount:"Amount",price:"Price"},...r})=>{var i;const n=l=>s.jsxs("div",{className:$e(l.start?"items-start":"items-end","flex w-full flex-col"),children:[s.jsx("div",{className:" text-sm text-gray-500",children:l.label}),s.jsx("div",{className:" whitespace-nowrap",children:l.text})]}),[a,o]=h.useState(!1);return s.jsxs("div",{className:"flex w-full flex-col",children:[s.jsxs("div",{className:"flex w-full flex-row items-center gap-2 border p-4 ",children:[r.invoiceActions&&s.jsx("div",{className:$e("transition-all hover:cursor-pointer ",e==="rtl"?"rotate-180":"",a?"rotate-90":""),onClick:()=>o(!a),children:s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"2em",width:"2em",children:s.jsx("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})})}),s.jsxs("div",{className:"flex w-full cursor-pointer flex-col gap-0",onClick:()=>o(!a),children:[s.jsxs("div",{className:"flex flex-row items-center gap-2",children:[s.jsx("span",{className:"bg-white-200",children:r.invoiceTitle}),r.status&&s.jsx(bc,{size:"small",label:r.status})]}),s.jsx("div",{className:"font-sm text-gray-400",children:r.invoiceSubtitle})]}),s.jsxs("div",{className:"flex flex-row items-center gap-2",children:[s.jsx("div",{className:"whitespace-nowrap",children:r.total}),s.jsx(dd,{direction:e,position:e==="rtl"?"bottom-right":"bottom-left",menuItems:r.invoiceActions,children:s.jsx("div",{className:" p-2",children:s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:s.jsx("path",{d:"M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"})})})})]})]}),a&&s.jsxs("div",{className:$e(a?"h-full":"h-0 border-none p-0 px-4","flex h-auto flex-col gap-4 overflow-clip border border-t-0 bg-gray-50 p-4 transition-all"),children:[s.jsx("div",{className:"border-b pb-2",children:r.invoiceDescription}),(i=r.products)==null?void 0:i.map((l,u)=>s.jsxs("div",{className:"flex flex-row border-b pb-4",children:[s.jsx("div",{className:"w-full",children:s.jsx(n,{start:!0,label:t.plan,text:l.plan})}),s.jsxs("div",{className:"flex w-full flex-row gap-20 ",children:[s.jsx(n,{label:t.usage,text:`${l.usage} SAR`}),s.jsx(n,{label:t.price,text:`${l.price} SAR`}),s.jsx(n,{label:t.amount,text:`${l.amount} SAR`})]})]},u)),s.jsxs("div",{className:"flex flex-row justify-between",children:[s.jsx("div",{children:t.total})," ",s.jsx("div",{children:r.total})]})]})]})},O6=({position:e="bottom-right",...t})=>{const[r,n]=h.useState(!1),[a,o]=h.useState(!1),[i,l]=h.useState(null),[u,c]=h.useState(5),m=h.useRef(null),p={"bottom-right":"right-4","bottom-left":"left-4"};h.useEffect(()=>{const C=setTimeout(()=>{u>=0&&c(u-1)},1e3);return()=>{clearTimeout(C)}},[u]);const x=()=>{n(!0),setTimeout(()=>{m.current.removeChild(m.current.children[0])},200)};return s.jsx("div",{ref:m,className:$e("fixed bottom-4 ",p[e]),children:s.jsxs("div",{className:$e("relative flex w-full max-w-sm flex-col gap-2 rounded border bg-background p-4 shadow-md transition-all",r?"opacity-0":"opacity-100"),children:[s.jsx("div",{className:"absolute left-2 top-2 p-1.5 text-sm",children:t.title}),s.jsx("button",{type:"button",className:"absolute right-2 top-2 inline-flex h-8 w-8 rounded p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white","data-dismiss-target":"#toast-default","aria-label":"Close",onClick:()=>x(),children:s.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}),s.jsx("div",{className:"mt-8",children:t.question}),s.jsx("div",{className:"flex w-full flex-row gap-1 rounded",children:t.options.map(C=>s.jsx("span",{onClick:()=>{t.onOptionClicked(C),l(C),o(!0);const E=setTimeout(()=>{n(!0)},4800);setTimeout(()=>{m.current.removeChild(m.current.children[0]),clearTimeout(E)},5300)},className:$e("w-full cursor-pointer rounded border p-4 text-center transition-all ",i===C?"bg-gray-500 text-white":"border bg-background hover:bg-gray-300 dark:hover:bg-gray-700"),children:C}))}),t.texts&&s.jsxs("div",{className:" flex flex-row justify-between text-xs",children:[s.jsx("span",{children:t.texts.least}),s.jsx("span",{children:t.texts.most})]}),a&&s.jsxs("div",{className:"absolute left-0 top-0 gap-2 flex h-full w-full flex-col items-center justify-center rounded bg-black bg-opacity-80 p-4 text-center transition-all",children:[s.jsxs("span",{className:"font-bold text-white",children:["Thank you for your answer. This box will disappear in"," "+u," seconds"]}),s.jsx("div",{className:"flex flex-row gap-2",children:s.jsx(qe,{onClick:()=>x(),children:"Close"})})]})]})})},xd=je.forwardRef(({className:e,label:t,helperText:r,...n},a)=>s.jsxs("div",{className:"flex flex-col gap-2",children:[t&&s.jsx(ti,{htmlFor:n.id,children:t}),s.jsx("textarea",{className:Ve("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...n}),r&&s.jsx("p",{className:"mb-0 mt-0 text-xs text-red-600 dark:text-red-500",children:r})]}));xd.displayName="Textarea";const tx="Popover",[rx,TN]=Dn(tx,[cs]),jp=cs(),[N6,vs]=rx(tx),M6=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:a,onOpenChange:o,modal:i=!1}=e,l=jp(t),u=h.useRef(null),[c,m]=h.useState(!1),[p=!1,x]=Rn({prop:n,defaultProp:a,onChange:o});return h.createElement(Yc,l,h.createElement(N6,{scope:t,contentId:Sn(),triggerRef:u,open:p,onOpenChange:x,onOpenToggle:h.useCallback(()=>x(C=>!C),[x]),hasCustomAnchor:c,onCustomAnchorAdd:h.useCallback(()=>m(!0),[]),onCustomAnchorRemove:h.useCallback(()=>m(!1),[]),modal:i},r))},R6="PopoverTrigger",$6=h.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,a=vs(R6,r),o=jp(r),i=Kt(t,a.triggerRef),l=h.createElement(St.button,we({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":ox(a.open)},n,{ref:i,onClick:at(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?l:h.createElement(Zh,we({asChild:!0},o),l)}),nx="PopoverPortal",[L6,_6]=rx(nx,{forceMount:void 0}),W6=e=>{const{__scopePopover:t,forceMount:r,children:n,container:a}=e,o=vs(nx,t);return h.createElement(L6,{scope:t,forceMount:r},h.createElement(sn,{present:r||o.open},h.createElement(Jc,{asChild:!0,container:a},n)))},Kl="PopoverContent",V6=h.forwardRef((e,t)=>{const r=_6(Kl,e.__scopePopover),{forceMount:n=r.forceMount,...a}=e,o=vs(Kl,e.__scopePopover);return h.createElement(sn,{present:n||o.open},o.modal?h.createElement(H6,we({},a,{ref:t})):h.createElement(z6,we({},a,{ref:t})))}),H6=h.forwardRef((e,t)=>{const r=vs(Kl,e.__scopePopover),n=h.useRef(null),a=Kt(t,n),o=h.useRef(!1);return h.useEffect(()=>{const i=n.current;if(i)return Kh(i)},[]),h.createElement(rp,{as:Ko,allowPinchZoom:!0},h.createElement(ax,we({},e,{ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:at(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),o.current||(l=r.triggerRef.current)===null||l===void 0||l.focus()}),onPointerDownOutside:at(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,c=l.button===2||u;o.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:at(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})))}),z6=h.forwardRef((e,t)=>{const r=vs(Kl,e.__scopePopover),n=h.useRef(!1),a=h.useRef(!1);return h.createElement(ax,we({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,o),!o.defaultPrevented){var l;n.current||(l=r.triggerRef.current)===null||l===void 0||l.focus(),o.preventDefault()}n.current=!1,a.current=!1},onInteractOutside:o=>{var i,l;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const u=o.target;((l=r.triggerRef.current)===null||l===void 0?void 0:l.contains(u))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}}))}),ax=h.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:m,...p}=e,x=vs(Kl,r),C=jp(r);return Vh(),h.createElement(Gh,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:o},h.createElement(zl,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:m,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>x.onOpenChange(!1)},h.createElement(Uh,we({"data-state":ox(x.open),role:"dialog",id:x.contentId},C,p,{ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function ox(e){return e?"open":"closed"}const G6=M6,Z6=$6,U6=W6,ix=V6,sx=je.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},a)=>s.jsx(U6,{children:s.jsx(ix,{ref:a,align:t,sideOffset:r,className:Ve("z-50 rounded border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:shadow-dark",e),...n})}));sx.displayName=ix.displayName;const lx=({trigger:e,children:t,className:r,align:n="center",side:a,sideOffset:o=4,open:i})=>s.jsxs(G6,{open:i,children:[s.jsx(Z6,{children:e}),s.jsx(sx,{side:a,className:r,align:n,sideOffset:o,children:t})]}),X6=e=>{const[t,r]=h.useState(null),[n,a]=h.useState(!1),[o,i]=h.useState(""),[l,u]=h.useState(!1);let c=[{icon:s.jsx(Y6,{}),value:"very-good"},{icon:s.jsx(J6,{}),value:"good"},{icon:s.jsx(Q6,{}),value:"bad"},{icon:s.jsx(K6,{}),value:"very-bad"}];const m=async()=>{if(console.log("submitting"),o){a(!0);try{await e.handleSubmit({choice:t,feedback:o})}catch(p){console.error("Error during submission:",p),a(!1)}await a(!1)}else a(!1),u(!0)};return s.jsxs("div",{className:Ve("flex flex-col gap-2 rounded border p-2 transition-all",t?"h-[165px] min-w-fit":"h-[44px] "),children:[s.jsx("div",{className:"flex flex-row items-center justify-center gap-2 ",children:s.jsx("div",{className:"flex flex-row justify-center gap-0.5 ",children:c.map((p,x)=>s.jsx(qe,{onClick:()=>{t===p.value?r(""):r(p.value)},variant:"ghost",size:"smallIcon",className:Ve(t===p.value?"bg-primary/10 hover:bg-primary/10 ":"text-[#666666]"),children:p.icon},x))})}),s.jsx("div",{className:Ve("flex flex-col overflow-clip transition-all duration-500 ease-in-out ",t?"visible opacity-100":"invisible opacity-0 "),children:e.showSuccess?s.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2 pt-4",children:[s.jsx("div",{className:"rounded bg-primary p-2 text-primary-foreground",children:s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"0.5em",width:"0.5em",children:s.jsx("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"})})}),s.jsxs("div",{className:"text-sm flex flex-col text-center",children:[s.jsx("span",{children:"Your feedback has been received!"}),s.jsx("span",{children:"Thank you for your help"})]})]}):s.jsxs(s.Fragment,{children:[s.jsxs(lx,{className:"select-none p-1 text-xs ",open:l,trigger:s.jsx(xd,{className:Ve("mb-2 h-full resize-none"),placeholder:"Your feedback",onChange:p=>{p.target.value&&u(!1),i(p.target.value),console.log("changing to",p.target.value)}}),children:[s.jsx("span",{children:"Please enter your feedback"})," "]}),s.jsx(qe,{isLoading:n,onClick:m,className:"w-full",size:"sm",children:"Submit"})]})})]})},Y6=()=>s.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",children:s.jsxs("g",{clipPath:"url(#clip0_53_166)",children:[s.jsx("path",{clipRule:"evenodd",d:"M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM4.5 8.97498H3.875V9.59998C3.875 11.4747 5.81046 12.8637 7.99817 12.8637C10.1879 12.8637 12.125 11.4832 12.125 9.59998V8.97498H11.5H4.5ZM7.99817 11.6137C6.59406 11.6137 5.63842 10.9482 5.28118 10.225H10.7202C10.3641 10.9504 9.40797 11.6137 7.99817 11.6137Z",fill:"currentColor",fillRule:"evenodd"}),s.jsx("path",{clipRule:"evenodd",d:"M6.15295 4.92093L5.375 3.5L4.59705 4.92093L3 5.21885L4.11625 6.39495L3.90717 8L5.375 7.30593L6.84283 8L6.63375 6.39495L7.75 5.21885L6.15295 4.92093ZM11.403 4.92093L10.625 3.5L9.84705 4.92093L8.25 5.21885L9.36625 6.39495L9.15717 8L10.625 7.30593L12.0928 8L11.8837 6.39495L13 5.21885L11.403 4.92093Z",fill:"#FF990A",fillRule:"evenodd"})]})}),J6=()=>s.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("g",{clipPath:"url(#clip0_53_167)",children:s.jsx("path",{clipRule:"evenodd",d:"M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.5249 10.8478L11.8727 10.3286L10.8342 9.6329L10.4863 10.1522C9.94904 10.9543 9.0363 11.4802 8.00098 11.4802C6.96759 11.4802 6.05634 10.9563 5.51863 10.1567L5.16986 9.63804L4.13259 10.3356L4.48137 10.8542C5.2414 11.9844 6.53398 12.7302 8.00098 12.7302C9.47073 12.7302 10.7654 11.9816 11.5249 10.8478ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",fill:"currentColor",fillRule:"evenodd"})})}),Q6=()=>s.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("g",{clipPath:"url(#clip0_53_152)",children:s.jsx("path",{clipRule:"evenodd",d:"M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM5.75 7.75C6.30228 7.75 6.75 7.30228 6.75 6.75C6.75 6.19772 6.30228 5.75 5.75 5.75C5.19772 5.75 4.75 6.19772 4.75 6.75C4.75 7.30228 5.19772 7.75 5.75 7.75ZM11.25 6.75C11.25 7.30228 10.8023 7.75 10.25 7.75C9.69771 7.75 9.25 7.30228 9.25 6.75C9.25 6.19772 9.69771 5.75 10.25 5.75C10.8023 5.75 11.25 6.19772 11.25 6.75ZM11.5249 11.2622L11.8727 11.7814L10.8342 12.4771L10.4863 11.9578C9.94904 11.1557 9.0363 10.6298 8.00098 10.6298C6.96759 10.6298 6.05634 11.1537 5.51863 11.9533L5.16986 12.4719L4.13259 11.7744L4.48137 11.2558C5.2414 10.1256 6.53398 9.37982 8.00098 9.37982C9.47073 9.37982 10.7654 10.1284 11.5249 11.2622Z",fill:"currentColor",fillRule:"evenodd"})})}),K6=()=>s.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",children:s.jsxs("g",{clipPath:"url(#clip0_53_151)",children:[s.jsx("path",{d:"M11.841 12.0225C12.7197 12.9324 12.7197 14.4077 11.841 15.3176C10.9623 16.2275 9.53769 16.2275 8.65901 15.3176C7.78033 14.4077 7.78033 12.9324 8.65901 12.0225L10.25 10.375L11.841 12.0225Z",fill:"#0070F3"}),s.jsx("path",{clipRule:"evenodd",d:"M8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 10.9668 3.48826 13.4711 6.20649 14.2496L5.79351 15.6916C2.44895 14.7338 0 11.6539 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 9.4652 15.6054 10.8405 14.9162 12.023L13.6203 11.2677C14.1794 10.3083 14.5 9.19272 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",fill:"currentColor",fillRule:"evenodd"})]})}),ux=e=>s.jsx("svg",{onClick:e.onClick||(()=>{}),className:$e("h-6 w-6 shrink-0 transition-all disabled:bg-gray-200",e.direction==="right"?"-rotate-90":"rotate-90",e.disabled?"text-gray-300":"cursor-pointer hover:scale-150"),fill:e.disabled&&"grey",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})}),q6=e=>{const[t,r]=h.useState(e.index||0);return h.useEffect(()=>{console.log(`INDEX CHANGED TO: ${t}`)},[t]),s.jsxs("div",{className:"align-center box-boorder relative flex h-min w-min flex-row items-center justify-center rounded bg-layoutPrimary-500 p-4 py-0 pb-2 pt-2 shadow-md",children:[s.jsx(ux,{direction:"left",disabled:t==0,onClick:()=>{t!=0&&r(t-1)}}),s.jsxs("div",{className:"relative m-5 my-0 box-border flex h-full flex-col items-center justify-center py-6 pt-0 ",children:[s.jsx("div",{children:e.items[t].icon}),s.jsx("div",{className:"absolute bottom-1 mb-0 mt-2 select-none",children:e.items[t].label})]}),s.jsx(ux,{direction:"right",disabled:t==e.items.length-1,onClick:()=>{t!=e.items.length-1&&r(t+1)}})]})},ej=e=>s.jsx("div",{className:"border-box mr-[10px] flex h-[32px] w-[32px] items-center justify-center rounded bg-gray-300 p-2",onMouseDown:e.onMouseDown,children:e.name}),cx={bold:{css:"font-bold",content:"B"},italic:{id:"italic",css:"italic",content:"I"},under:{id:"under",css:"underline",content:"U"},strike:{id:"strike",css:"line-through",content:"S"}},ta="​",tj=e=>{const[t,r]=h.useState({content:"",stylings:[],revert:[0,0],clipboard:[],events:{paste:{is:!1,length:null},drop:{is:!1,text:null,drag:null}}}),n=h.useRef(null),a=h.useRef(t),o=N=>{a.current=N,r(N)},i=N=>{for(var W=0;N=N.previousSibling;W++);return W},l=(N,W)=>Array.from(N.childNodes).slice(0,W).map(ne=>ne.textContent.length).reduce((ne,te)=>ne+te,0),u=N=>Array.from(n.current.childNodes).slice(0,N).map(de=>{let ne=Array.from(de.childNodes);return l(de,ne.length)}).reduce((de,ne)=>de+ne,0),c=N=>{let W=window.getSelection(),ee=Array.from(n.current.childNodes);ee=ee.filter(se=>!["#text","BR"].includes(se.nodeName));let de=W[N],ne=de.parentNode,te=0;const K=de.nodeName=="DIV"&&Array.from(de.classList).includes("line");if(ne.nodeName=="SPAN"){let se=i(ne);te+=l(ne.parentNode,se);let fe=i(ne.parentNode);te+=u(fe)}if(Array.from(ne.classList).includes("line")){if(de.nodeName=="#text"){let fe=i(de);te+=l(ne,fe)}let se=i(ne);te+=u(se)}if(K){let se=i(de);te=u(se)}return ne==n.current&&!K?0:te},m=()=>{if(document.activeElement!=n.current)return[0,0];let N=window.getSelection(),W=c("anchorNode"),ee=c("focusNode");return[W+N.anchorOffset,ee+N.focusOffset].sort((ne,te)=>ne-te)};h.useEffect(()=>{setTimeout(function(){let[N,W]=a.current.revert;if(N==0&&W==0)return;let ee=null,de=null,ne=0,te=Array.from(n.current.getElementsByTagName("span"));for(let fe=0;fe<te.length;fe++){let Se=te[fe],G=Se.textContent.length+ne;ee==null&&N>=ne&&N<=G&&(ee=te[fe],N-=ne),de==null&&W>ne&&W<=G&&(de=te[fe],W-=ne),ne+=Se.textContent.length}var K=document.createRange(),se=window.getSelection();K.setStart(ee.firstChild,N),K.setEnd(de.firstChild,W),se.removeAllRanges(),se.addRange(K)},1)},[t.revert]);const p=(N,W)=>{let ee=[];for(let de=N;de<=W;de++)ee.push(de);return ee},x=(N,W)=>{const ee=new Set;for(const de of W)N.has(de)&&ee.add(de);return ee},C=N=>N.sort((W,ee)=>W-ee)[0],E=N=>N.sort((W,ee)=>ee-W)[0],v=(N,W)=>{if(N.type!=W.type)return-1;if(W.start<=N.start&&W.finish>=N.finish)return 0;let ee=new Set(p(N.start-1,N.finish-1)),de=new Set(p(W.start-1,W.finish-1));return x(ee,de).size==0?2:1},A=(N,W,ee,de)=>{let[ne,te,K]=N.find(([fe,Se,G])=>fe==0);W=W.filter((fe,Se)=>Se!=te);let se=[{type:de,start:C([K.start,ee.start]),finish:E([K.start,ee.start])},{type:de,start:C([K.finish,ee.finish]),finish:E([K.finish,ee.finish])}];return se=se.filter(fe=>fe.start!=fe.finish),W=[...W,...se],W},S=(N,W,ee,de)=>{let ne=N.filter(([fe,Se,G])=>fe==1).map(([fe,Se,G])=>[Se,G]);ne.push([-1,ee]);let te=ne.map(([fe,Se])=>Se.start).sort((fe,Se)=>fe-Se)[0],K=ne.map(([fe,Se])=>Se.finish).sort((fe,Se)=>Se-fe)[0],se=ne.map(fe=>fe[0]);return W=W.filter((fe,Se)=>!se.includes(Se)),W.push({type:de,start:te,finish:K}),W},j=N=>{let W=a.current.stylings.slice(),[ee,de]=m();if(ee==de)return;let ne={type:N,start:ee,finish:de},te=[];for(let se=0;se<W.length;se++){let fe=W[se],Se=v(ne,fe);Se!=-1&&te.push([Se,se,fe])}let K;te.find(([se,fe,Se])=>se==1)?K=S(te,W,ne,N):te.find(([se,fe,Se])=>se==0)?K=A(te,W,ne,N):(te.find(([se,fe,Se])=>se==2)||te.length==0)&&(K=[...W,ne]),o({...t,stylings:K,revert:[ee,de]})},O=(N,W,ee=0,de=0)=>N.filter(({start:te,finish:K})=>W>=te+ee&&W<K+de),L=(N,W,ee)=>{let de=N.filter(({start:ne,finish:te})=>te>W&&ne<ee||ne<ee&&te>W);return de=de.map(ne=>({...ne,start:E([ne.start,W])-W,finish:C([ne.finish,ee])-W})),de},M=(N,W,ee=0)=>{let de={...N,start:N.start,finish:W},ne={...N,start:W+ee,finish:N.finish+ee};return[de,ne]},z=(N,W,ee,de=!0)=>(N=N.map(ne=>ne.start>=W&&ne.finish>W?(console.log("succeeding"),{...ne,start:ne.start+ee,finish:ne.finish+ee}):ne.start<W&&ne.finish>W?de?{...ne,finish:ne.finish+ee}:M(ne,W,ee):ne.finish==W&&de?{...ne,finish:ne.finish+ee}:ne),N.flat()),H=(N,W,ee)=>{let de=Math.abs(ee-W);return N=N.map(ne=>ne.start>=W&&ne.start>=ee&&ne.finish>=W&&ne.finish>=ee?{...ne,start:ne.start-de,finish:ne.finish-de}:ne.start>=W&&ne.finish<=ee?null:ne.start<=W&&ne.finish>=ee?{...ne,finish:ne.finish-de}:ne.start>W&&ne.start<ee?{...ne,start:E([ne.start,ee])-de,finish:ne.finish-de}:ne.finish>W&&ne.finish<ee?{...ne,finish:C([ne.finish,W])}:ne),N.flat().filter(ne=>ne)},oe=(N,W,ee,de)=>(W==0||(W>0?N=z(N,ee-W,W):N=H(N,ee,de+Math.abs(W))),N),J=(N,W,ee,de)=>{let ne=a.current.events.paste.length,te=ee-ne,K=te,se=te+ne-W;return N=H(N,K,se),N=z(N,te,ne,!1),N=N.concat(a.current.clipboard.map(fe=>({...fe,start:fe.start+te,finish:fe.finish+te}))),N},ge=(N,W,ee,de)=>{console.log(`Dropped at: ${[ee,de]}`);let ne=a.current.events.drop.text.length,[te,K]=a.current.events.drop.drag,se=ee-te,fe=L(N,te,K),Se=te,G=K;if(se>0&&(N=z(N,de,ne,!1),N=H(N,Se,G)),se<0){let he=ee;N=H(N,Se,G),N=z(N,he,ne,!1)}return N=N.concat(fe.map(he=>({...he,start:he.start+ee,finish:he.finish+ee}))),N},xe=(N,W,ee)=>{a.current.events.drop.is&&N.length!=a.current.content.length||(console.log(`Changed at: ${[W,ee]}`),setTimeout(function(){let de=N.length-a.current.content.length,ne=a.current.stylings;a.current.events.paste.is?ne=J(ne,de,W):a.current.events.drop.is?ne=ge(ne,de,W,ee):ne=oe(ne,de,W,ee),o({...a.current,content:N,stylings:ne,revert:[W,ee],events:{paste:{is:!1,length:null},drop:{is:!1,text:null,drag:null}}})},0))},Q=()=>{let N=a.current.content,W=[...a.current.stylings],ee=[],de=N.split("").map((ne,te)=>ne==ta?te:null).filter(ne=>ne);de.unshift(0),de.push(N.length);for(let ne=0;ne<de.length-1;ne++){let te=de[ne],K=de[ne+1],se=N.slice(te,K),fe=L(W,te,K),Se=[],G=fe.map(({start:ae,finish:me})=>[ae,me]).flat().sort((ae,me)=>ae-me);G=G.filter((ae,me)=>G.indexOf(ae)==me),G[0]!=0&&G.unshift(0);let he=se.length;G[G.length-1]!=he&&G.push(he);for(let ae=0;ae<G.length-1;ae++){let me=G[ae],Me=G[ae+1];Se.push({content:se.substring(me,Me),types:O(fe,me).map(Pe=>Pe.type)})}ee.push(Se)}return ee};h.useEffect(()=>{let N=Q().map((W,ee)=>`<div class="line" data-line-index="${ee}">${W.map((de,ne)=>`<span class="${de.types.map(te=>cx[te].css).join(" ")}" data-child-index="${ne}">${de.content}</span>`).join("")}</div>`).join("");n.current.innerHTML=N},[t.content,t.stylings,t.revert]);const ce=()=>{switch(e.rtl||"disabled"){case"enabled":return"rtl";case"disabled":return"ltr";case"auto":return"ltr"}};return s.jsxs("div",{className:"align-center box-border flex h-min w-[400px] flex-col items-center justify-center rounded shadow-md",children:[s.jsx("div",{className:$e("flex w-full flex-row justify-start p-2"),children:Object.entries(cx).map(([N,W])=>s.jsx(ej,{name:W.content,onMouseDown:ee=>{ee.preventDefault(),j(N)}},`property-${N}`))}),s.jsx("div",{className:"h-[1px] w-full bg-slate-600",children:" "}),s.jsx("div",{className:"selection-ignore box-border w-full p-2",children:s.jsx("div",{ref:n,contentEditable:"true",className:"selection-ignore rtl h-[150px] w-full resize-none overflow-auto overflow-x-hidden border-none font-['Arial'] text-[16px] outline-none",style:{direction:ce()},onPaste:N=>{N.preventDefault();let W=N.clipboardData.getData("text/plain");W=W.replaceAll(`
106
106
  `,""),W=W.replaceAll("\r",""),document.execCommand("insertHTML",!1,W),o({...a.current,events:{...a.current.events,paste:{is:!0,length:W.length}}})},onInput:N=>{let[W,ee]=m(),de=N.target.textContent,ne=a.current.content,te=N.nativeEvent.inputType;if(te=="insertParagraph"){console.log(`Inserted new line at [${W}, ${ee}]`);let K=de.split("");K.splice(W,0,ta),W==0&&!ne.startsWith(ta)&&(K.splice(W,0,ta),W+=1,ee+=1),de=K.join(""),W+=1,ee+=1}else{let K=window.getSelection(),{anchorNode:se,focusNode:fe}=K,Se=N.nativeEvent.data;if(se.parentNode==fe.parentNode&&se.parentNode.nodeName=="SPAN"&&K.anchorOffset<=1&&K.focusOffset<=1&&te=="insertText"){let G=i(se.parentNode.parentNode),he=ne;ne.startsWith(ta)&&(he=he.slice(1));let ae=he.split(ta)[G];console.log(he.split(ta)),ae=ae.split(""),ae.splice(0,0,Se),ae=ae.join("");let me=he.split(ta);me[G]=ae,de=me.join(ta),ne.startsWith(ta)&&(de=ta+de),W+=1,ee+=1}}xe(de,W,ee)},onCopy:()=>{let[N,W]=m(),ee=a.current.stylings.slice();ee=L(ee,N,W),o({...t,clipboard:ee})},onDrop:N=>{let W=N.dataTransfer.getData("text");W.trim()!=""&&o({...a.current,events:{...a.current.events,drop:{is:!0,text:W,drag:m()}}})}})}),s.jsx("div",{className:"h-[1px] w-full bg-slate-600",children:" "}),s.jsx("button",{className:"my-1 rounded bg-cyan-800 p-2 py-1 text-white",onClick:()=>{(e.onSubmit||(()=>{}))(t.content,t.stylings)},children:"Submit"})]})};/*!
107
107
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
108
108
  *
@@ -220,11 +220,11 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
220
220
  Previous: %s
221
221
  Incoming: %s`,ha,"["+f.join(", ")+"]","["+b.join(", ")+"]");for(var F=0;F<b.length&&F<f.length;F++)if(!Fm(f[F],b[F]))return!1;return!0}function fo(){if(uo>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function pa(){return Pt===null?cl===null?(so=!1,cl=Pt=fo()):(so=!0,Pt=cl):Pt.next===null?(so=!1,Pt=Pt.next=fo()):(so=!0,Pt=Pt.next),Pt}function jm(f,b){fa=b,Qu=f,Ar=!1,Vt=0}function Ef(f,b,F,B){for(;lo;)lo=!1,Vt=0,uo+=1,Pt=null,F=f(b,B);return Ku(),F}function fl(){var f=Vt!==0;return f}function Ku(){Ar=!1,fa=null,Qu=null,lo=!1,cl=null,uo=0,mn=null,Pt=null}function Im(f){return Ar&&a("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),_i(f)}function Df(f){return ha="useContext",co(),_i(f)}function Hi(f,b){return typeof b=="function"?b(f):b}function Tm(f){return ha="useState",Sf(Hi,f)}function Sf(f,b,F){if(f!==Hi&&(ha="useReducer"),fa=co(),Pt=pa(),so){var B=Pt.queue,V=B.dispatch;if(mn!==null){var Y=mn.get(B);if(Y!==void 0){mn.delete(B);var ue=Pt.memoizedState,Fe=Y;do{var d=Fe.action;Ar=!0,ue=f(ue,d),Ar=!1,Fe=Fe.next}while(Fe!==null);return Pt.memoizedState=ue,[ue,V]}}return[Pt.memoizedState,V]}else{Ar=!0;var g;f===Hi?g=typeof b=="function"?b():b:g=F!==void 0?F(b):b,Ar=!1,Pt.memoizedState=g;var D=Pt.queue={last:null,dispatch:null},I=D.dispatch=Ff.bind(null,fa,D);return[Pt.memoizedState,I]}}function hl(f,b){fa=co(),Pt=pa();var F=b===void 0?null:b;if(Pt!==null){var B=Pt.memoizedState;if(B!==null&&F!==null){var V=B[1];if(Xn(F,V))return B[0]}}Ar=!0;var Y=f();return Ar=!1,Pt.memoizedState=[Y,F],Y}function km(f){fa=co(),Pt=pa();var b=Pt.memoizedState;if(b===null){var F={current:f};return Object.seal(F),Pt.memoizedState=F,F}else return b}function Af(f,b){ha="useLayoutEffect",a("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function Ff(f,b,F){if(uo>=dl)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(f===fa){lo=!0;var B={action:F,next:null};mn===null&&(mn=new Map);var V=mn.get(b);if(V===void 0)mn.set(b,B);else{for(var Y=V;Y.next!==null;)Y=Y.next;Y.next=B}}}function Bm(f,b){return hl(function(){return f},b)}function Pm(f,b,F){return co(),b(f._source)}function Om(f,b,F){if(F===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return F()}function Nm(f){return co(),f}function Mm(){throw new Error("startTransition cannot be called during server rendering.")}function Rm(){return co(),[!1,Mm]}function $m(){var f=Qu,b=wm(f.treeContext),F=qu;if(F===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var B=Vt++;return ja(F,b,B)}function pl(){}var jf={readContext:Im,useContext:Df,useMemo:hl,useReducer:Sf,useRef:km,useState:Tm,useInsertionEffect:pl,useLayoutEffect:Af,useCallback:Bm,useImperativeHandle:pl,useEffect:pl,useDebugValue:pl,useDeferredValue:Nm,useTransition:Rm,useId:$m,useMutableSource:Pm,useSyncExternalStore:Om},qu=null;function zi(f){qu=f}function If(f){try{var b="",F=f;do{switch(F.tag){case 0:b+=Oi(F.type,null,null);break;case 1:b+=pf(F.type,null,null);break;case 2:b+=Xs(F.type,null,null);break}F=F.parent}while(F);return b}catch(B){return`
222
222
  Error generating stack: `+B.message+`
223
- `+B.stack}}var Gi=r.ReactCurrentDispatcher,gl=r.ReactDebugCurrentFrame,ec=0,Na=1,ml=2,vl=3,ho=4,Tf=0,tc=1,po=2,Lm=12800;function kf(f){return console.error(f),null}function Yn(){}function _m(f,b,F,B,V,Y,ue,Fe,d){var g=[],D=new Set,I={destination:null,responseState:b,progressiveChunkSize:B===void 0?Lm:B,status:Tf,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:D,pingedTasks:g,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:V===void 0?kf:V,onAllReady:Y===void 0?Yn:Y,onShellReady:ue===void 0?Yn:ue,onShellError:Fe===void 0?Yn:Fe,onFatalError:d===void 0?Yn:d},R=bl(I,0,null,F,!1,!1);R.parentFlushed=!0;var X=rc(I,f,null,R,D,ao,mf,Cm);return g.push(X),I}function Wm(f,b){var F=f.pingedTasks;F.push(b),F.length===1&&i(function(){return Qi(f)})}function Zi(f,b){return{id:Qa,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:b,errorDigest:null}}function rc(f,b,F,B,V,Y,ue,Fe){f.allPendingTasks++,F===null?f.pendingRootTasks++:F.pendingTasks++;var d={node:b,ping:function(){return Wm(f,d)},blockedBoundary:F,blockedSegment:B,abortSet:V,legacyContext:Y,context:ue,treeContext:Fe};return d.componentStack=null,V.add(d),d}function bl(f,b,F,B,V,Y){return{status:ec,id:-1,index:b,parentFlushed:!1,chunks:[],children:[],formatContext:B,boundary:F,lastPushedText:V,textEmbedded:Y}}var ga=null;function Ui(){return ga===null||ga.componentStack===null?"":If(ga.componentStack)}function Ma(f,b){f.componentStack={tag:0,parent:f.componentStack,type:b}}function Jn(f,b){f.componentStack={tag:1,parent:f.componentStack,type:b}}function nc(f,b){f.componentStack={tag:2,parent:f.componentStack,type:b}}function vn(f){f.componentStack===null?a("Unexpectedly popped too many stack frames. This is a bug in React."):f.componentStack=f.componentStack.parent}var Jo=null;function ac(f,b){{var F;typeof b=="string"?F=b:b&&typeof b.message=="string"?F=b.message:F=String(b);var B=Jo||Ui();Jo=null,f.errorMessage=F,f.errorComponentStack=B}}function bn(f,b){var F=f.onError(b);if(F!=null&&typeof F!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof F+'" instead');return F}function Ra(f,b){var F=f.onShellError;F(b);var B=f.onFatalError;B(b),f.destination!==null?(f.status=po,j(f.destination,b)):(f.status=tc,f.fatalError=b)}function oc(f,b,F){Ma(b,"Suspense");var B=b.blockedBoundary,V=b.blockedSegment,Y=F.fallback,ue=F.children,Fe=new Set,d=Zi(f,Fe),g=V.chunks.length,D=bl(f,g,d,V.formatContext,!1,!1);V.children.push(D),V.lastPushedText=!1;var I=bl(f,0,null,V.formatContext,!1,!1);I.parentFlushed=!0,b.blockedBoundary=d,b.blockedSegment=I;try{if(pc(f,b,ue),Ta(I.chunks,f.responseState,I.lastPushedText,I.textEmbedded),I.status=Na,Cl(d,I),d.pendingTasks===0){vn(b);return}}catch(X){I.status=ho,d.forceClientRender=!0,d.errorDigest=bn(f,X),ac(d,X)}finally{b.blockedBoundary=B,b.blockedSegment=V}var R=rc(f,Y,B,D,Fe,b.legacyContext,b.context,b.treeContext);R.componentStack=b.componentStack,f.pingedTasks.push(R),vn(b)}function Xi(f,b,F,B){Ma(b,F);var V=b.blockedSegment,Y=Di(V.chunks,F,B,f.responseState,V.formatContext);V.lastPushedText=!1;var ue=V.formatContext;V.formatContext=Wn(ue,F,B),pc(f,b,Y),V.formatContext=ue,ks(V.chunks,F),V.lastPushedText=!1,vn(b)}function xl(f){return f.prototype&&f.prototype.isReactComponent}function Bf(f,b,F,B,V){var Y={};jm(b,Y);var ue=F(B,V);return Ef(F,B,ue,V)}function Pf(f,b,F,B,V){var Y=F.render();F.props!==V&&(Ji||a("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",sr(B)||"a component"),Ji=!0);{var ue=B.childContextTypes;if(ue!=null){var Fe=b.legacyContext,d=Gu(F,B,Fe,ue);b.legacyContext=d,nn(f,b,Y),b.legacyContext=Fe;return}}nn(f,b,Y)}function Vm(f,b,F,B){nc(b,F);var V=zu(F,b.legacyContext),Y=yf(F,B,V);wf(Y,F,B,V),Pf(f,b,Y,F,B),vn(b)}var ic={},Yi={},Of={},sc={},Ji=!1,lc=!1,uc=!1,cc=!1;function Nf(f,b,F,B){var V;if(V=zu(F,b.legacyContext),Jn(b,F),F.prototype&&typeof F.prototype.render=="function"){var Y=sr(F)||"Unknown";ic[Y]||(a("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",Y,Y),ic[Y]=!0)}var ue=Bf(f,b,F,B,V),Fe=fl();if(typeof ue=="object"&&ue!==null&&typeof ue.render=="function"&&ue.$$typeof===void 0){var d=sr(F)||"Unknown";Yi[d]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",d,d,d),Yi[d]=!0)}if(typeof ue=="object"&&ue!==null&&typeof ue.render=="function"&&ue.$$typeof===void 0){{var g=sr(F)||"Unknown";Yi[g]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",g,g,g),Yi[g]=!0)}wf(ue,F,B,V),Pf(f,b,ue,F,B)}else if(Mf(F),Fe){var D=b.treeContext,I=1,R=0;b.treeContext=sl(D,I,R);try{nn(f,b,ue)}finally{b.treeContext=D}}else nn(f,b,ue);vn(b)}function Mf(f){{if(f&&f.childContextTypes&&a("%s(...): childContextTypes cannot be defined on a function component.",f.displayName||f.name||"Component"),typeof f.getDerivedStateFromProps=="function"){var b=sr(f)||"Unknown";sc[b]||(a("%s: Function components do not support getDerivedStateFromProps.",b),sc[b]=!0)}if(typeof f.contextType=="object"&&f.contextType!==null){var F=sr(f)||"Unknown";Of[F]||(a("%s: Function components do not support contextType.",F),Of[F]=!0)}}}function dc(f,b){if(f&&f.defaultProps){var F=gn({},b),B=f.defaultProps;for(var V in B)F[V]===void 0&&(F[V]=B[V]);return F}return b}function Hm(f,b,F,B,V){Jn(b,F.render);var Y=Bf(f,b,F.render,B,V),ue=fl();if(ue){var Fe=b.treeContext,d=1,g=0;b.treeContext=sl(Fe,d,g);try{nn(f,b,Y)}finally{b.treeContext=Fe}}else nn(f,b,Y);vn(b)}function zm(f,b,F,B,V){var Y=F.type,ue=dc(Y,B);fc(f,b,Y,ue,V)}function Rf(f,b,F,B){F._context===void 0?F!==F.Consumer&&(cc||(cc=!0,a("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):F=F._context;var V=B.children;typeof V!="function"&&a("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var Y=_i(F),ue=V(Y);nn(f,b,ue)}function Gm(f,b,F,B){var V=F._context,Y=B.value,ue=B.children,Fe;Fe=b.context,b.context=vf(V,Y),nn(f,b,ue),b.context=bf(V),Fe!==b.context&&a("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Zm(f,b,F,B,V){Ma(b,"Lazy");var Y=F._payload,ue=F._init,Fe=ue(Y),d=dc(Fe,B);fc(f,b,Fe,d,V),vn(b)}function fc(f,b,F,B,V){if(typeof F=="function")if(xl(F)){Vm(f,b,F,B);return}else{Nf(f,b,F,B);return}if(typeof F=="string"){Xi(f,b,F,B);return}switch(F){case Zs:case Bu:case lf:case Tu:case rn:{nn(f,b,B.children);return}case ki:{Ma(b,"SuspenseList"),nn(f,b,B.children),vn(b);return}case ku:throw new Error("ReactDOMServer does not yet support scope components.");case Ti:{oc(f,b,B);return}}if(typeof F=="object"&&F!==null)switch(F.$$typeof){case Gs:{Hm(f,b,F,B,V);return}case Bi:{zm(f,b,F,B,V);return}case Hs:{Gm(f,b,F,B);return}case zs:{Rf(f,b,F,B);return}case Ho:{Zm(f,b,F,B);return}}var Y="";throw(F===void 0||typeof F=="object"&&F!==null&&Object.keys(F).length===0)&&(Y+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(F==null?F:typeof F)+"."+Y))}function Um(f,b){typeof Symbol=="function"&&f[Symbol.toStringTag]==="Generator"&&(lc||a("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),lc=!0),f.entries===b&&(uc||a("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),uc=!0)}function nn(f,b,F){try{return hc(f,b,F)}catch(B){throw typeof B=="object"&&B!==null&&typeof B.then=="function"||(Jo=Jo!==null?Jo:Ui()),B}}function hc(f,b,F){if(b.node=F,typeof F=="object"&&F!==null){switch(F.$$typeof){case pm:{var B=F,V=B.type,Y=B.props,ue=B.ref;fc(f,b,V,Y,ue);return}case sf:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Ho:{var Fe=F,d=Fe._payload,g=Fe._init,D;try{D=g(d)}catch(st){throw typeof st=="object"&&st!==null&&typeof st.then=="function"&&Ma(b,"Lazy"),st}nn(f,b,D);return}}if(wt(F)){$f(f,b,F);return}var I=vm(F);if(I){Um(F,I);var R=I.call(F);if(R){var X=R.next();if(!X.done){var ie=[];do ie.push(X.value),X=R.next();while(!X.done);$f(f,b,ie);return}return}}var De=Object.prototype.toString.call(F);throw new Error("Objects are not valid as a React child (found: "+(De==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":De)+"). If you meant to render a collection of children, use an array instead.")}if(typeof F=="string"){var Le=b.blockedSegment;Le.lastPushedText=Ia(b.blockedSegment.chunks,F,f.responseState,Le.lastPushedText);return}if(typeof F=="number"){var rt=b.blockedSegment;rt.lastPushedText=Ia(b.blockedSegment.chunks,""+F,f.responseState,rt.lastPushedText);return}typeof F=="function"&&a("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function $f(f,b,F){for(var B=F.length,V=0;V<B;V++){var Y=b.treeContext;b.treeContext=sl(Y,B,V);try{pc(f,b,F[V])}finally{b.treeContext=Y}}}function an(f,b,F){var B=b.blockedSegment,V=B.chunks.length,Y=bl(f,V,null,B.formatContext,B.lastPushedText,!0);B.children.push(Y),B.lastPushedText=!1;var ue=rc(f,b.node,b.blockedBoundary,Y,b.abortSet,b.legacyContext,b.context,b.treeContext);b.componentStack!==null&&(ue.componentStack=b.componentStack.parent);var Fe=ue.ping;F.then(Fe,Fe)}function pc(f,b,F){var B=b.blockedSegment.formatContext,V=b.legacyContext,Y=b.context,ue=null;ue=b.componentStack;try{return nn(f,b,F)}catch(Fe){if(Ku(),typeof Fe=="object"&&Fe!==null&&typeof Fe.then=="function"){an(f,b,Fe),b.blockedSegment.formatContext=B,b.legacyContext=V,b.context=Y,Li(Y),b.componentStack=ue;return}else throw b.blockedSegment.formatContext=B,b.legacyContext=V,b.context=Y,Li(Y),b.componentStack=ue,Fe}}function Lf(f,b,F,B){var V=bn(f,B);if(b===null?Ra(f,B):(b.pendingTasks--,b.forceClientRender||(b.forceClientRender=!0,b.errorDigest=V,ac(b,B),b.parentFlushed&&f.clientRenderedBoundaries.push(b))),f.allPendingTasks--,f.allPendingTasks===0){var Y=f.onAllReady;Y()}}function Xm(f){var b=this,F=f.blockedBoundary,B=f.blockedSegment;B.status=vl,_f(b,F,B)}function yl(f,b,F){var B=f.blockedBoundary,V=f.blockedSegment;if(V.status=vl,B===null)b.allPendingTasks--,b.status!==po&&(b.status=po,b.destination!==null&&E(b.destination));else{if(B.pendingTasks--,!B.forceClientRender){B.forceClientRender=!0;var Y=F===void 0?new Error("The render was aborted by the server without a reason."):F;B.errorDigest=b.onError(Y);{var ue="The server did not finish this Suspense boundary: ";Y&&typeof Y.message=="string"?Y=ue+Y.message:Y=ue+String(Y);var Fe=ga;ga=f;try{ac(B,Y)}finally{ga=Fe}}B.parentFlushed&&b.clientRenderedBoundaries.push(B)}if(B.fallbackAbortableTasks.forEach(function(g){return yl(g,b,F)}),B.fallbackAbortableTasks.clear(),b.allPendingTasks--,b.allPendingTasks===0){var d=b.onAllReady;d()}}}function Cl(f,b){if(b.chunks.length===0&&b.children.length===1&&b.children[0].boundary===null){var F=b.children[0];F.id=b.id,F.parentFlushed=!0,F.status===Na&&Cl(f,F)}else{var B=f.completedSegments;B.push(b)}}function _f(f,b,F){if(b===null){if(F.parentFlushed){if(f.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");f.completedRootSegment=F}if(f.pendingRootTasks--,f.pendingRootTasks===0){f.onShellError=Yn;var B=f.onShellReady;B()}}else if(b.pendingTasks--,!b.forceClientRender){if(b.pendingTasks===0)F.parentFlushed&&F.status===Na&&Cl(b,F),b.parentFlushed&&f.completedBoundaries.push(b),b.fallbackAbortableTasks.forEach(Xm,f),b.fallbackAbortableTasks.clear();else if(F.parentFlushed&&F.status===Na){Cl(b,F);var V=b.completedSegments;V.length===1&&b.parentFlushed&&f.partialBoundaries.push(b)}}if(f.allPendingTasks--,f.allPendingTasks===0){var Y=f.onAllReady;Y()}}function Wf(f,b){var F=b.blockedSegment;if(F.status===ec){Li(b.context);var B=null;B=ga,ga=b;try{nn(f,b,b.node),Ta(F.chunks,f.responseState,F.lastPushedText,F.textEmbedded),b.abortSet.delete(b),F.status=Na,_f(f,b.blockedBoundary,F)}catch(Y){if(Ku(),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"){var V=b.ping;Y.then(V,V)}else b.abortSet.delete(b),F.status=ho,Lf(f,b.blockedBoundary,F,Y)}finally{ga=B}}}function Qi(f){if(f.status!==po){var b=Ks(),F=Gi.current;Gi.current=jf;var B;B=gl.getCurrentStack,gl.getCurrentStack=Ui;var V=qu;zi(f.responseState);try{var Y=f.pingedTasks,ue;for(ue=0;ue<Y.length;ue++){var Fe=Y[ue];Wf(f,Fe)}Y.splice(0,ue),f.destination!==null&&El(f,f.destination)}catch(d){bn(f,d),Ra(f,d)}finally{zi(V),Gi.current=F,gl.getCurrentStack=B,F===jf&&Li(b)}}}function Ki(f,b,F){switch(F.parentFlushed=!0,F.status){case ec:{var B=F.id=f.nextSegmentId++;return F.lastPushedText=!1,F.textEmbedded=!1,Oo(b,f.responseState,B)}case Na:{F.status=ml;for(var V=!0,Y=F.chunks,ue=0,Fe=F.children,d=0;d<Fe.length;d++){for(var g=Fe[d];ue<g.index;ue++)p(b,Y[ue]);V=wl(f,b,g)}for(;ue<Y.length-1;ue++)p(b,Y[ue]);return ue<Y.length&&(V=x(b,Y[ue])),V}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function wl(f,b,F){var B=F.boundary;if(B===null)return Ki(f,b,F);if(B.parentFlushed=!0,B.forceClientRender)return _r(b,f.responseState,B.errorDigest,B.errorMessage,B.errorComponentStack),Ki(f,b,F),Su(b,f.responseState);if(B.pendingTasks>0){B.rootSegmentID=f.nextSegmentId++,B.completedSegments.length>0&&f.partialBoundaries.push(B);var V=B.id=Ka(f.responseState);return Ro(b,f.responseState,V),Ki(f,b,F),$o(b,f.responseState)}else{if(B.byteSize>f.progressiveChunkSize)return B.rootSegmentID=f.nextSegmentId++,f.completedBoundaries.push(B),Ro(b,f.responseState,B.id),Ki(f,b,F),$o(b,f.responseState);Ps(b,f.responseState);var Y=B.completedSegments;if(Y.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var ue=Y[0];return wl(f,b,ue),Os(b,f.responseState)}}function Vf(f,b,F){return af(b,f.responseState,F.id,F.errorDigest,F.errorMessage,F.errorComponentStack)}function qi(f,b,F){return Ct(b,f.responseState,F.formatContext,F.id),wl(f,b,F),Ut(b,F.formatContext)}function es(f,b,F){for(var B=F.completedSegments,V=0;V<B.length;V++){var Y=B[V];gc(f,b,F,Y)}return B.length=0,Au(b,f.responseState,F.id,F.rootSegmentID)}function Ym(f,b,F){for(var B=F.completedSegments,V=0;V<B.length;V++){var Y=B[V];if(!gc(f,b,F,Y))return V++,B.splice(0,V),!1}return B.splice(0,V),!0}function gc(f,b,F,B){if(B.status===ml)return!0;var V=B.id;if(V===-1){var Y=B.id=F.rootSegmentID;if(Y===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return qi(f,b,B)}else return qi(f,b,B),im(b,f.responseState,V)}function El(f,b){m();try{var F=f.completedRootSegment;F!==null&&f.pendingRootTasks===0&&(wl(f,b,F),f.completedRootSegment=null,wu(b,f.responseState));var B=f.clientRenderedBoundaries,V;for(V=0;V<B.length;V++){var Y=B[V];Vf(f,b,Y)}B.splice(0,V);var ue=f.completedBoundaries;for(V=0;V<ue.length;V++){var Fe=ue[V];es(f,b,Fe)}ue.splice(0,V),C(b),m(b);var d=f.partialBoundaries;for(V=0;V<d.length;V++){var g=d[V];if(!Ym(f,b,g)){f.destination=null,V++,d.splice(0,V);return}}d.splice(0,V);var D=f.completedBoundaries;for(V=0;V<D.length;V++){var I=D[V];es(f,b,I)}D.splice(0,V)}finally{C(b),f.allPendingTasks===0&&f.pingedTasks.length===0&&f.clientRenderedBoundaries.length===0&&f.completedBoundaries.length===0&&(f.abortableTasks.size!==0&&a("There was still abortable task at the root when we closed. This is a bug in React."),E(b))}}function Jm(f){i(function(){return Qi(f)})}function Hf(f,b){if(f.status===tc){f.status=po,j(b,f.fatalError);return}if(f.status!==po&&f.destination===null){f.destination=b;try{El(f,b)}catch(F){bn(f,F),Ra(f,F)}}}function Dl(f,b){try{var F=f.abortableTasks;F.forEach(function(B){return yl(B,f,b)}),F.clear(),f.destination!==null&&El(f,f.destination)}catch(B){bn(f,B),Ra(f,B)}}function Qm(f,b){return new Promise(function(F,B){var V,Y,ue=new Promise(function(R,X){Y=R,V=X});function Fe(){var R=new ReadableStream({type:"bytes",pull:function(X){Hf(g,X)},cancel:function(X){Dl(g)}},{highWaterMark:0});R.allReady=ue,F(R)}function d(R){ue.catch(function(){}),B(R)}var g=_m(f,dn(b?b.identifierPrefix:void 0,b?b.nonce:void 0,b?b.bootstrapScriptContent:void 0,b?b.bootstrapScripts:void 0,b?b.bootstrapModules:void 0),Bn(b?b.namespaceURI:void 0),b?b.progressiveChunkSize:void 0,b?b.onError:void 0,Y,Fe,d,V);if(b&&b.signal){var D=b.signal,I=function(){Dl(g,D.reason),D.removeEventListener("abort",I)};D.addEventListener("abort",I)}Jm(g)})}Vd.renderToReadableStream=Qm,Vd.version=t}()),Vd}var xi,xg;process.env.NODE_ENV==="production"?(xi=_k(),xg=Wk()):(xi=Vk(),xg=Hk()),gi.version=xi.version,gi.renderToString=xi.renderToString,gi.renderToStaticMarkup=xi.renderToStaticMarkup,gi.renderToNodeStream=xi.renderToNodeStream,gi.renderToStaticNodeStream=xi.renderToStaticNodeStream,gi.renderToReadableStream=xg.renderToReadableStream;let zk="iVBORw0KGgoAAAANSUhEUgAAANUAAABhCAYAAABBG+TgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACEgSURBVHhe7Z0HWFRXFsfPG1SaFKWDgBUsWLH3lthN1cQYY5ItiellN9mYxGQ3m2rcbDYxuiamJ2qqaa4NK/aOFaWIIgqKIE1Rmbf3f+eNvJl5b2DgDWK8v++bj3nDlDdw/++ce+4550pl5ZdlEggEhmFSfgoEAoMQohIIDEaISiAwGCEqgcBghKgEAoMRohIIDEaISiAwGCEqgcBg6p2oZJmowkx0qULmN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KmwXDndPWCVB3VKvRKUG+YGnimTKLZGooMySfAvrdbFC4ntNkSRzy4NSEH8mpEBvS892dDpCvp47Q+MCgTPqragEgmsVt2dUCATXG0JUAoHBCFEJBAYjRCUQGIwQlUBgMEJUAoHBCFEJBAYjRCUQGIwQlUBgMEJUAoHBCFEJBIZC9H8N2KynRYkKgQAAAABJRU5ErkJggg==";const y2=e=>s.jsx("div",{className:"border-box mr-[10px] flex h-[32px] w-fit min-w-[32px] items-center justify-center rounded bg-gray-300 p-2 transition-all hover:opacity-50",onMouseDown:e.onMouseDown,children:e.name}),Gk=e=>s.jsxs("div",{className:"group relative w-fit",children:[s.jsx("img",{src:`data:image/pngg;charset=utf-8;base64,${zk}`}),s.jsx("div",{className:"absolute right-0 top-0 text-red-900 opacity-0 transition-all hover:opacity-50 group-hover:opacity-100",children:s.jsx("svg",{"aria-label":"Close Icon","aria-hidden":"true",className:"h-4 w-4",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})]}),Zk={bold:"B",italic:"I",underline:"U",strikeThrough:"S",subscript:"SubS",superscript:"SuperS",removeFormat:"Plain"},Uk=e=>s.jsxs("div",{className:"align-center box-border flex h-min w-[400px] flex-col items-center justify-center rounded shadow-md",children:[s.jsxs("div",{className:"flex w-full flex-row justify-start p-2",children:[Object.entries(Zk).map(([t,r])=>s.jsx(y2,{name:r,onMouseDown:n=>{n.preventDefault(),document.execCommand(t,!1,null),console.log(`Executing ${t}`)}},`property-${t}`)),s.jsx(y2,{name:"Image",onMouseDown:t=>{t.preventDefault();let r=gi.renderToString(s.jsx(Gk,{}));document.execCommand("insertHTML",!1,r)}},"property-insertImage")]}),s.jsx("div",{className:"h-[1px] w-full bg-slate-600",children:" "}),s.jsx("div",{className:" box-border w-full p-2",children:s.jsx("div",{contentEditable:"true",className:"rtl h-[150px] w-full resize-none overflow-auto overflow-x-hidden border-none font-['Arial'] text-[16px] outline-none"})}),s.jsx("div",{className:"h-[1px] w-full bg-slate-600",children:" "}),s.jsx("button",{className:"my-1 rounded bg-cyan-800 p-2 py-1 text-white",onClick:()=>{},children:"Submit"})]}),Xk=({...e})=>{const[t,r]=h.useState(!1),[n,a]=h.useState(null),o=h.useRef(n),i=x=>{o.current=x,a(x)},l=h.useRef(null),u=()=>{let x=e.anchor.current;return[x.scrollTop,x.scrollLeft]},c=()=>{let[x,C]=u(),E=e.anchor.current.getBoundingClientRect();r(x>=E.height+(e.paddingThreshold||100))},m=()=>{e.anchor.current.scrollTo({top:0,behavior:"smooth"})};h.useEffect(()=>{if(!e.anchor.current)return;e.anchor.current.addEventListener("scroll",c);let x=setInterval(()=>{if(!e.anchor.current)return;let C=e.anchor.current.getBoundingClientRect();if(o.current==null)return i(C);o.current.top==C.top&&o.current.left==C.left&&o.current.width==C.width&&o.current.height==C.height||i(C)},1);return()=>{var C;(C=e.anchor.current)==null||C.removeEventListener("scroll",c),clearInterval(x)}},[]);const p=()=>{if(!e.anchor.current)return{};let x=e.corner||"bottom-right",[C,E]=x.split("-"),v=e.anchor.current.getBoundingClientRect(),A=l.current.getBoundingClientRect(),S=E=="right"?v.width-A.width:0,j=C=="bottom"?v.height-A.height:0;return{top:v.y+j+(C=="bottom"?-1:1)*(e.paddingX||10),left:v.x+S+(E=="right"?-1:1)*(e.paddingX||25)}};return s.jsx(qe,{className:Ve("fixed cursor-pointer rounded transition-all",t?"pointer-events-all opacity-100":"pointer-events-none opacity-0"),onClick:m,style:{...p(),transitionProperty:"opacity, background-color"},ref:l,size:"icon",children:s.jsx("svg",{className:$e("h-6 w-6 shrink-0 rotate-180 transition-all disabled:bg-gray-200"),"aria-label":"Arrow Icon",viewBox:"0 0 20 20",fill:"currentColor",children:s.jsx("path",{d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"})})})},Yk=e=>s.jsx("code",{className:"inline-code",children:e.text}),Jk=e=>s.jsx("div",{children:s.jsx("ol",{className:"relative border-l border-gray-200 dark:border-gray-700",children:e.steps.map(t=>s.jsxs("li",{className:"mb-10 ml-4",children:[s.jsx("div",{className:"absolute -left-1.5 mt-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700"}),s.jsx("time",{className:"mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500",children:t.date}),s.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:t.title}),s.jsx("p",{className:"mb-4 text-base font-normal text-gray-500 dark:text-gray-400",children:t.description}),t.actions]}))})}),yg=({label:e,icon:t,digits:r,width:n="normal",getPins:a,...o})=>{const[i,l]=h.useState(Array.from(Array(r))),u=(m,p)=>{let x=0;if(m.key==="Backspace"){m.target.value.length===0?x=p-1:x=p;const C=document.getElementById(`input-${x}`);C==null||C.focus()}};h.useEffect(()=>{i.includes(void 0)||a(i)});const c=(m,p)=>{if(/^\d*$/.test(m.target.value)){const x=[...i];if(x[p]=m.target.value,l(x),m.target.value.length===1){const C=document.getElementById(`input-${p+1}`);C==null||C.focus()}else if(m.target.value.length===0){const C=document.getElementById(`input-${p-1}`);C==null||C.focus()}}else{const x=[...i];x[p]="",l(x);return}};return s.jsx("div",{className:"flex w-full flex-row justify-center gap-2",children:i.map((m,p)=>s.jsx("input",{type:"text",maxLength:1,value:m,id:`input-${p}`,pattern:"[0-9]*",className:$e("h-10 rounded border bg-background text-center",n==="full"?"w-full":"w-10"),onChange:x=>c(x,p),onKeyDown:x=>u(x,p),onFocus:x=>x.target.select(),...o},p))})},Qk=({actions:e,counts:t,content:r,headerActions:n,clickableImage:a,clickableImageAction:o,clickableImageActionText:i,clickableImageActionIcon:l,header:u,cardImage:c,orientation:m="vertical",...p})=>{let x="block rounded border border-gray-200 bg-white shadow-sm hover:shadow-lg transition-all dark:border-gray-700 dark:bg-gray-800 ",C={vertical:"max-w-sm",horizontal:"flex flex-row w-full"},E={vertical:"h-auto max-h-56 w-full rounded-t-lg object-cover",horizontal:"h-full w-48 rounded-l object-cover"},v="inline-block rounded p-1 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700";const[A,S]=h.useState(!1);function j(){S(!A)}return h.useEffect(()=>(window.onclick=()=>{A&&S(!1)},()=>window.onclick=null),[A]),s.jsxs("div",{className:$e(x,C[m]),...p,children:[c&&s.jsxs("div",{className:"group relative overflow-clip",children:[s.jsx("img",{src:"https://via.placeholder.com/50",className:$e(E[m],a?"overflow-clip transition-all group-hover:blur-lg":"")}),a&&s.jsx("div",{className:"absolute left-0 top-0 flex h-full w-full items-center justify-center opacity-0 transition-all group-hover:opacity-100 ",children:s.jsxs(qe,{variant:"secondary",onClick:o,className:"flex flex-row gap-2",children:[l,i]})})]}),s.jsxs("div",{className:"relative w-full p-6",children:[n&&s.jsx("div",{className:"max-h- bg-red absolute right-0 top-0 flex justify-end pr-3 pt-3",children:s.jsx(Xl,{items:n,trigger:s.jsxs("div",{className:$e(v),onClick:j,children:[s.jsx("span",{className:"sr-only",children:"Open dropdown"}),s.jsx("svg",{className:"h-6 w-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{d:"M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"})})]})})}),u&&s.jsx("h5",{className:"mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white",children:u}),r&&s.jsx("span",{className:"w-full font-normal text-gray-700 dark:text-gray-400",children:r}),e||t?s.jsxs("div",{className:$e("mt-3 flex items-center rounded-b-lg dark:text-white ",e&&t?"justify-between":"justify-end"),children:[t,e]}):null]})]})},C2=({size:e="medium",direction:t="ltr",currentPlan:r=!1,...n})=>{var i;let a=t==="rtl",o={small:"mx-1 w-full max-w-sm rounded border dark:border-gray-700 bg-background ",medium:"mx-1 w-full rounded min-w-fit border dark:border-gray-700 bg-background ",large:"mx-1 w-full max-w-lg rounded border dark:border-gray-700 bg-background "};return s.jsxs("div",{dir:a?"rtl":"ltr",className:$e(r?"border-primary":"bg-background",o[e],"flex flex-col gap-4 rounded border-2 p-4"),children:[s.jsx("h5",{className:"text-md 0 font-bold text-primary/70",children:n.texts.title}),s.jsxs("div",{className:" text-primary/ flex items-baseline",children:[s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-5xl font-extrabold tracking-tight",children:n.price}),s.jsx("span",{className:"mx-1 text-sm font-semibold",children:n.texts.currencyText})]}),s.jsxs("span",{className:"ml-1 text-xl font-normal text-primary/70",children:["/ ",n.texts.cycleText]})]}),s.jsx("h5",{className:"text-md font-normal text-primary/70",children:n.texts.subtitle}),n.features&&s.jsx("ul",{role:"list",className:"space-y-0 ",children:(i=n.features)==null?void 0:i.map((l,u)=>s.jsxs("li",{className:"flex ",children:[s.jsx("svg",{"aria-label":"Check Icon","aria-hidden":"true",className:"m-2 h-5 w-5 flex-shrink-0 text-primary",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),s.jsx("span",{className:"flex items-center text-center font-normal leading-tight text-primary/70 ",children:l.text})]},u))}),s.jsx(qe,{onClick:n.onPlanClicked,disabled:r,className:"w-full",children:n.texts.buttonText})]})},Kk=({orientation:e,...t})=>{const r=h.useRef(null),[n,a]=h.useState(!1);let o=0;h.useEffect(()=>{},[o]);let i={horizontal:"flex flex-row max-w-xl rounded border-gray-200 bg-gray-100 shadow-md p-2 gap-2 items-center relative dark:border-gray-700 dark:bg-gray-800 ",vertical:"flex flex-col max-w-[200px] justify-start rounded border-gray-200 bg-gray-100 gap-2 shadow-md p-2 relative dark:border-gray-700 dark:bg-gray-800 "},l={horizontal:"w-auto h-full bg-blue-500 rounded-inner",vertical:"bg-blue-500 rounded-inner w-auto "};return s.jsx("div",{ref:r,children:s.jsxs("div",{className:$e(i[e],"dark:text-white"),...t,children:[s.jsx("div",{className:"flex aspect-square w-full max-w-fit items-start ",children:s.jsx("img",{src:t.imageURL?t.imageURL:"https://via.placeholder.com/50",className:l[e]})}),s.jsxs("div",{className:"w-full text-xs",children:[s.jsx("div",{className:"font-bold",children:t.title}),s.jsx("div",{className:"text-[12px]",children:t.description})]}),s.jsx("span",{onClick:()=>{t.canHide?(a(!0),setTimeout(()=>{r.current.removeChild(r.current.children[0])},200)):t.handleCantHide()},className:"absolute right-0 top-0 h-fit cursor-pointer select-none rounded-bl-lg rounded-tr-lg bg-blue-100 px-2.5 py-0.5 text-[10px] font-semibold text-blue-800 dark:bg-blue-200 dark:text-blue-800",children:"Hide"})]})})},qk=({orientation:e="horizontal",...t})=>{var n,a,o,i,l,u,c,m;let r={horizontal:"flex max-w-xl rounded border-gray-200 bg-gray-100 shadow-md dark:border-gray-700 dark:bg-gray-800 ",vertical:"flex max-w-xs rounded border-gray-200 bg-gray-100 shadow-md dark:border-gray-700 dark:bg-gray-800 "};return s.jsxs("div",{className:$e(r[e],"flex flex-col p-10","relative overflow-hidden dark:text-white",t.className),...t,children:[((n=t.texts)==null?void 0:n.titleTip)&&s.jsx("div",{className:"text-sm text-red-600",children:(a=t.texts)==null?void 0:a.titleTip}),t.imageURL&&s.jsx("img",{className:"absolute -bottom-10 -right-10 h-40 w-auto ",src:t.imageURL}),((o=t.texts)==null?void 0:o.title)&&s.jsxs("div",{className:"mt-2 text-lg font-medium",children:[(i=t.texts)==null?void 0:i.title," "]}),((l=t.texts)==null?void 0:l.description)&&s.jsx("div",{className:"z-10 mt-4 text-sm",children:(u=t.texts)==null?void 0:u.description}),((c=t.texts)==null?void 0:c.linkText)&&s.jsx("div",{className:"z-10 mt-6 text-sm underline underline-offset-8",children:(m=t.texts)==null?void 0:m.linkText})]})},eB="cursor-default pointer-events-none",tB={contained:"text-gray-300 bg-gray-100",outlined:"text-gray-300 border-gray-300"},w2="cursor-pointer justify-center items-center text-center font-medium transition-all ",E2={icon:"h-10 w-10",xs:"px-1.5 py-2 text-[9px] h-fit",small:"text-xs px-2.5 py-1.5",medium:"text-sm leading-4 px-3 py-2",default:"h-10 px-4 py-2",large:"text-sm px-4 py-2",noPadding:"p-0",full:"h-full max-h-full p-2"},D2={full:"w-full flex justify-center px-5 py-2.5 text-center inline-flex items-center",half:"w-full text-center flex items-center justify-center h-full",normal:"w-fit dark:bg-buttonPrimary-dark dark:hover:bg-buttonPrimary-700 dark:hover:brightness-90 dark:focus:ring-buttonPrimary-500"},rB={full:"w-full flex justify-center text-center inline-flex items-center",half:"w-1/2",normal:"w-fit"},S2={contained:"border-transparent",outlined:"border border-input bg-background hover:bg-accent hover:text-accent-foreground"},nB={contained:{default:"text-neutral-900 bg-buttonPrimary-500 hover:bg-buttonPrimary-700 bg-buttonPrimary-500 text-white",primary:"text-white bg-buttonPrimary-500 hover:bg-buttonPrimary-700 transition-all",secondary:"bg-buttonSecondary-500 hover:text-white hover:bg-buttonSecondary-700",gray:"text-neutral-900 bg-gray-200 hover:bg-gray-300",dark:"text-neutral-900 bg-gray-200 hover:bg-gray-300"},outlined:{default:"text-gray-600 border-gray-600 hover:bg-gray-200 dark:hover:bg-gray-800 dark:text-white",primary:"text-black hover:bg-gray-50 dark:text-white",secondary:" dark:text-white text-secondary-800 border-secondary-800 hover:bg-buttonSecondary-700 hover:text-white",gray:"border-gray-300 hover:bg-gray-200",dark:"border-gray-900 hover:bg-gray-700"}},aB=({className:e,variant:t="contained",color:r="default",size:n="default",width:a="normal",disabled:o=!1,isLoading:i=!1,tooltip:l,tooltipSize:u="normal",tooltipPosition:c="top-left",tooltipDirection:m="ltr",margins:p="2",children:x,badge:C,edgeCorner:E=!1,feedback:v,...A})=>{const[S,j]=h.useState(!1),[O,L]=h.useState(x),M=z=>{A.onClick&&A.onClick(z),v&&!S&&(L(v),j(!0),setTimeout(()=>{L(x),j(!1)},2e3))};return s.jsxs("div",{className:$e("relative",p!=="none"?`my-${p}`:"m-0",rB[a]),children:[s.jsx("button",{className:o?$e(e,w2,E?"rounded-inner":"rounded",S2[t],E2[n],D2[a],eB,tB[t]):$e(e,"overflow-x-clip",w2,E?"rounded-inner":"rounded",S2[t],E2[n],nB[t][r],D2[a]),disabled:o,onClick:M,children:i?s.jsx(us,{design:"dots-pulse",color:"bg-white",size:"button"}):s.jsxs("div",{className:$e(" s flex flex-col-reverse items-start justify-center gap-4 transition-all",S&&v?" -translate-y-8 pb-1 pt-1":"translate-y-0"),children:[S&&v?s.jsx("div",{className:"w-full text-center",children:O}):null,s.jsxs("div",{className:"flex w-full select-none flex-row items-center justify-center gap-2 whitespace-nowrap",children:[A.startIcon&&A.startIcon,x,A.endIcon&&A.endIcon]})]})}),C&&s.jsx("div",{className:$e(typeof C=="boolean"?"h-5 w-5":typeof C=="string"?"h-5 w-7":"h-6 w-6","absolute -right-2 -top-2 inline-flex select-none items-center justify-center rounded-full border-2 border-white bg-red-500 text-[9px] font-bold text-white dark:border-gray-900"),children:typeof C=="number"&&C>100?"+99":C})]})},oB=e=>s.jsx("div",{className:"flex justify-center",children:s.jsx("div",{children:e.store==="apple"?e.mode==="dark"?s.jsxs("div",{className:"mt-3 flex h-14 w-48 items-center justify-center rounded-lg bg-black text-white",children:[s.jsx("div",{className:"mr-3",children:s.jsx("svg",{viewBox:"0 0 384 512",width:"30",children:s.jsx("path",{fill:"currentColor",d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"})})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs",children:"Download on the"}),s.jsx("div",{className:"font-sans -mt-1 text-2xl font-semibold",children:"App Store"})]})]}):s.jsxs("div",{className:"mt-3 flex h-14 w-48 items-center justify-center rounded-lg border border-black bg-transparent text-black",children:[s.jsx("div",{className:"mr-3",children:s.jsx("svg",{viewBox:"0 0 384 512",width:"30",children:s.jsx("path",{fill:"currentColor",d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"})})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs",children:"Download on the"}),s.jsx("div",{className:"font-sans -mt-1 text-2xl font-semibold",children:"App Store"})]})]}):e.mode==="dark"?s.jsxs("div",{className:"mt-3 flex h-14 w-48 items-center justify-center rounded-lg bg-black text-white",children:[s.jsx("div",{className:"mr-3",children:s.jsxs("svg",{viewBox:"30 336.7 120.9 129.2",width:"30",children:[s.jsx("path",{fill:"#FFD400",d:"M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"}),s.jsx("path",{fill:"#FF3333",d:"M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"}),s.jsx("path",{fill:"#48FF48",d:"M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"}),s.jsx("path",{fill:"#3BCCFF",d:"M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"})]})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs",children:"GET IT ON"}),s.jsx("div",{className:"font-sans -mt-1 text-xl font-semibold",children:"Google Play"})]})]}):s.jsxs("div",{className:"mt-3 flex h-14 w-48 items-center justify-center rounded-lg border border-black bg-white text-black",children:[s.jsx("div",{className:"mr-3",children:s.jsxs("svg",{viewBox:"30 336.7 120.9 129.2",width:"30",children:[s.jsx("path",{fill:"#FFD400",d:"M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"}),s.jsx("path",{fill:"#FF3333",d:"M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"}),s.jsx("path",{fill:"#48FF48",d:"M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"}),s.jsx("path",{fill:"#3BCCFF",d:"M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"})]})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs",children:"GET IT ON"}),s.jsx("div",{className:"font-sans -mt-1 text-xl font-semibold",children:"Google Play"})]})]})})}),iB=e=>{const[t,r]=h.useState(!1);return s.jsxs("div",{className:"flex h-full w-full flex-col gap-1 ",children:[s.jsxs("div",{className:"group relative h-full w-full rounded border bg-background bg-cover bg-center transition-all duration-500 hover:drop-shadow-2xl",style:{backgroundImage:`url(${e.blank?"":e.cardImage})`},onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[e.blank?s.jsx("div",{className:"flex h-full flex-col items-center justify-center ",children:s.jsx("svg",{className:"h-10 w-10 text-foreground",stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 24 24",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z"})})}):s.jsx("div",{className:"absolute inset-0 rounded bg-black opacity-50"}),s.jsx("div",{className:"absolute bottom-2 right-2 z-10 opacity-0 transition-all duration-200 group-hover:opacity-100",children:e.inCardActions}),!e.blank&&s.jsxs("div",{className:"relative p-4",children:[s.jsx("h1",{className:"text-white",children:e.title}),s.jsx("p",{className:"text-white",children:e.subtitle})]})]}),s.jsx("div",{className:`flex flex-row justify-between text-sm transition-all duration-200 ${t?"opacity-100":"opacity-0"}`,children:e.bottomElement})]})},sB=e=>s.jsx("div",{className:"bg-white py-24 sm:py-32",children:s.jsxs("div",{className:"mx-auto flex max-w-5xl flex-col items-start gap-10 px-6 md:flex-row lg:px-8",children:[s.jsxs("div",{className:"w-full md:sticky md:top-10 md:w-[28rem]",children:[s.jsx("h2",{className:"text-lg font-semibold leading-8 tracking-tight text-indigo-600",children:e.tag}),s.jsx("p",{className:"mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl",children:e.title}),s.jsx("p",{className:"mb-2 mt-6 text-base leading-7 text-gray-600",children:e.description})]}),s.jsx("div",{className:"mt-5 w-full min-w-0 flex-1 md:mt-0",children:s.jsx("dl",{className:"grid grid-cols-1 gap-x-8 gap-y-10 md:max-w-xl lg:max-w-none lg:gap-y-16",children:e.features.map(t=>s.jsxs("div",{className:"relative rounded-lg bg-gray-50 p-10",children:[s.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-indigo-600",children:t.icon}),s.jsx("dt",{className:"mt-4 text-lg font-semibold leading-7 text-gray-900",children:t.title}),s.jsx("dd",{className:"mt-2 text-base leading-7 text-gray-600",children:t.description})]}))})})]})}),lB=({position:e="bottom-right",...t})=>{const[r,n]=h.useState(!1);h.useState(!1),h.useState(null);const[a,o]=h.useState(5),i=h.useRef(null),l={"bottom-right":"right-4","bottom-left":"left-4"};h.useEffect(()=>{const c=setTimeout(()=>{a>=0&&o(a-1)},1e3);return()=>{clearTimeout(c)}},[a]);const u=()=>{n(!0),setTimeout(()=>{i.current.removeChild(i.current.children[0])},200)};return s.jsxs(Gt,{ref:i,className:$e("fixed bottom-4 p-0 ",l[e]),children:[s.jsx("button",{type:"button",className:"absolute right-2 top-2 inline-flex h-8 w-8 rounded p-1.5 text-gray-400 transition-all hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white","data-dismiss-target":"#toast-default","aria-label":"Close",onClick:()=>u(),children:s.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}),s.jsxs($t,{headless:!0,children:[s.jsxs("div",{className:$e("flex flex-col gap-4",r?"opacity-0":"opacity-100"),children:[s.jsx("div",{className:"mt-4 font-bold",children:t.question}),s.jsx("div",{className:"flex w-full flex-row gap-1 rounded ",children:s.jsx(yn,{orientation:"vertical",options:t.options})}),s.jsx("div",{children:s.jsx(xd,{})})]}),s.jsx(qe,{className:"mt-4 w-full",children:"Submit"})]})]})},zr={logo:e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",...e,children:[s.jsx("rect",{width:"256",height:"256",fill:"none"}),s.jsx("line",{x1:"208",y1:"128",x2:"128",y2:"208",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.jsx("line",{x1:"192",y1:"40",x2:"40",y2:"192",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"})]}),mail:e=>s.jsxs("svg",{stroke:"currentColor",fill:"none","stroke-width":"2",viewBox:"0 0 24 24","stroke-linecap":"round","stroke-linejoin":"round",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),s.jsx("polyline",{points:"22,6 12,13 2,6"})]}),phone:e=>s.jsx("svg",{stroke:"currentColor",fill:"none","stroke-width":"2",viewBox:"0 0 24 24","aria-hidden":"true",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 1.5H8.25A2.25 2.25 0 006 3.75v16.5a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 20.25V3.75a2.25 2.25 0 00-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"})}),twitter:e=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M21.543 7.104c.015.211.015.423.015.636 0 6.507-4.954 14.01-14.01 14.01v-.003A13.94 13.94 0 0 1 0 19.539a9.88 9.88 0 0 0 7.287-2.041 4.93 4.93 0 0 1-4.6-3.42 4.916 4.916 0 0 0 2.223-.084A4.926 4.926 0 0 1 .96 9.167v-.062a4.887 4.887 0 0 0 2.235.616A4.928 4.928 0 0 1 1.67 3.148a13.98 13.98 0 0 0 10.15 5.144 4.929 4.929 0 0 1 8.39-4.49 9.868 9.868 0 0 0 3.128-1.196 4.941 4.941 0 0 1-2.165 2.724A9.828 9.828 0 0 0 24 4.555a10.019 10.019 0 0 1-2.457 2.549z"})}),microsoft:e=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:s.jsx("path",{fill:"currentColor",d:"M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"})}),gitHub:e=>s.jsx("svg",{viewBox:"0 0 438.549 438.549",...e,children:s.jsx("path",{fill:"currentColor",d:"M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"})}),radix:e=>s.jsxs("svg",{viewBox:"0 0 25 25",fill:"none",...e,children:[s.jsx("path",{d:"M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",fill:"currentcolor"}),s.jsx("path",{d:"M12 0H4V8H12V0Z",fill:"currentcolor"}),s.jsx("path",{d:"M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z",fill:"currentcolor"})]}),aria:e=>s.jsx("svg",{role:"img",viewBox:"0 0 24 24",fill:"currentColor",...e,children:s.jsx("path",{d:"M13.966 22.624l-1.69-4.281H8.122l3.892-9.144 5.662 13.425zM8.884 1.376H0v21.248zm15.116 0h-8.884L24 22.624Z"})}),npm:e=>s.jsx("svg",{viewBox:"0 0 24 24",...e,children:s.jsx("path",{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z",fill:"currentColor"})}),yarn:e=>s.jsx("svg",{viewBox:"0 0 24 24",...e,children:s.jsx("path",{d:"M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z",fill:"currentColor"})}),pnpm:e=>s.jsx("svg",{viewBox:"0 0 24 24",...e,children:s.jsx("path",{d:"M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z",fill:"currentColor"})}),react:e=>s.jsx("svg",{viewBox:"0 0 24 24",...e,children:s.jsx("path",{d:"M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z",fill:"currentColor"})}),tailwind:e=>s.jsx("svg",{viewBox:"0 0 24 24",...e,children:s.jsx("path",{d:"M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z",fill:"currentColor"})}),google:e=>s.jsx("svg",{role:"img",viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"})}),apple:e=>s.jsx("svg",{role:"img",viewBox:"0 0 24 24",...e,children:s.jsx("path",{d:"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",fill:"currentColor"})}),paypal:e=>s.jsx("svg",{role:"img",viewBox:"0 0 24 24",...e,children:s.jsx("path",{d:"M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.474 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106zm14.146-14.42a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.93 4.778-4.005 7.201-9.138 7.201h-2.19a.563.563 0 0 0-.556.479l-1.187 7.527h-.506l-.24 1.516a.56.56 0 0 0 .554.647h3.882c.46 0 .85-.334.922-.788.06-.26.76-4.852.816-5.09a.932.932 0 0 1 .923-.788h.58c3.76 0 6.705-1.528 7.565-5.946.36-1.847.174-3.388-.777-4.471z",fill:"currentColor"})}),spinner:e=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:s.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})},uB=e=>{const[t,r]=h.useState(!1),[n,a]=h.useState(0),[o,i]=h.useState(0),l=h.useRef(null),u=E=>Math.round(E/e)*e,c=E=>{r(!0),a(E.pageX-l.current.offsetLeft),i(l.current.scrollLeft)},m=()=>{t&&x()},p=()=>{t&&x()},x=()=>{r(!1);const E=u(l.current.scrollLeft);l.current.scrollTo({left:E,behavior:"smooth"})};return{containerRef:l,handleMouseDown:c,handleMouseLeave:m,handleMouseUp:p,handleMouseMove:E=>{if(!t)return;E.preventDefault();const A=E.pageX-l.current.offsetLeft-n;l.current.scrollLeft=o-A}}},cB=({images:e})=>{const{containerRef:r,handleMouseDown:n,handleMouseLeave:a,handleMouseUp:o,handleMouseMove:i}=uB(1016);return s.jsx("div",{className:"flex cursor-pointer snap-x items-center justify-center gap-4 overflow-x-hidden",onMouseDown:n,onMouseLeave:a,onMouseUp:o,onMouseMove:i,ref:r,children:e.map((l,u)=>s.jsx("div",{className:"h-96 w-[1000px] flex-shrink-0",children:s.jsx("img",{src:l,alt:`Carousel Image ${u}`,width:1016,className:"h-full w-full rounded-lg object-cover"})},u))})},As=je.forwardRef(({className:e,preview:t,type:r,...n},a)=>s.jsx("input",{type:r,className:Ve("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e,t&&" disabled:cursor-default disabled:opacity-100 border-opacity-25 "),disabled:t,ref:a,...n}));As.displayName="Input";const Cg=({orientation:e="horizontal",width:t="default",...r})=>{const[n,a]=h.useState(r.currentColorMode),[o,i]=h.useState(r.currentLanguage);let l={horizontal:"flex flex-row justify-between",vertical:"flex flex-col items-center gap-2"};return s.jsxs("div",{className:Ve(l[e]),children:[s.jsx(yn,{width:t,defaultValue:o,onChangeTab:u=>{r.handleLanguage(u),i(u)},design:"tabs",options:[{value:"ar",label:"عربي"},{value:"en",label:"English"}]}),s.jsx(yn,{width:t,defaultValue:n,onChangeTab:u=>{r.handleColorMode(u),a(u)},design:"tabs",options:[{value:"light",label:s.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90",children:s.jsx("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:"currentColor"})})},{value:"dark",label:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",className:"h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100",children:s.jsx("path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})})}]})]})},A2="Tabs",[dB,kN]=Dn(A2,[Kc]),F2=Kc(),[fB,wg]=dB(A2),hB=h.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:a,defaultValue:o,orientation:i="horizontal",dir:l,activationMode:u="automatic",...c}=e,m=Zc(l),[p,x]=Rn({prop:n,onChange:a,defaultProp:o});return h.createElement(fB,{scope:r,baseId:Sn(),value:p,onValueChange:x,orientation:i,dir:m,activationMode:u},h.createElement(St.div,we({dir:m,"data-orientation":i},c,{ref:t})))}),pB="TabsList",gB=h.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...a}=e,o=wg(pB,r),i=F2(r);return h.createElement(F1,we({asChild:!0},i,{orientation:o.orientation,dir:o.dir,loop:n}),h.createElement(St.div,we({role:"tablist","aria-orientation":o.orientation},a,{ref:t})))}),mB="TabsTrigger",vB=h.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:a=!1,...o}=e,i=wg(mB,r),l=F2(r),u=j2(i.baseId,n),c=I2(i.baseId,n),m=n===i.value;return h.createElement(j1,we({asChild:!0},l,{focusable:!a,active:m}),h.createElement(St.button,we({type:"button",role:"tab","aria-selected":m,"aria-controls":c,"data-state":m?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:u},o,{ref:t,onMouseDown:at(e.onMouseDown,p=>{!a&&p.button===0&&p.ctrlKey===!1?i.onValueChange(n):p.preventDefault()}),onKeyDown:at(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&i.onValueChange(n)}),onFocus:at(e.onFocus,()=>{const p=i.activationMode!=="manual";!m&&!a&&p&&i.onValueChange(n)})})))}),bB="TabsContent",xB=h.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:a,children:o,...i}=e,l=wg(bB,r),u=j2(l.baseId,n),c=I2(l.baseId,n),m=n===l.value,p=h.useRef(m);return h.useEffect(()=>{const x=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(x)},[]),h.createElement(sn,{present:a||m},({present:x})=>h.createElement(St.div,we({"data-state":m?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":u,hidden:!x,id:c,tabIndex:0},i,{ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0}}),x&&o))});function j2(e,t){return`${e}-trigger-${t}`}function I2(e,t){return`${e}-content-${t}`}const T2=hB,k2=gB,B2=vB,P2=xB,O2=je.createContext({orientation:"vertical"}),N2=je.forwardRef(({className:e,orientation:t,...r},n)=>s.jsx(T2,{ref:n,className:Ve("flex gap-2",t==="horizontal"?"flex-row":"flex-col",e),...r,children:s.jsx(O2.Provider,{value:{orientation:t},children:r.children})}));N2.displayName=T2.displayName;const M2=je.forwardRef(({className:e,...t},r)=>{const{orientation:n}=je.useContext(O2);return s.jsx(k2,{ref:r,className:Ve("flex w-fit flex-wrap items-center justify-start gap-1 rounded border bg-muted p-1 text-muted-foreground dark:border-primary/10 ",n==="horizontal"?"flex-col":"flex-row",e),...t})});M2.displayName=k2.displayName;const R2=je.forwardRef(({className:e,...t},r)=>s.jsx(B2,{ref:r,className:Ve("inline-flex w-full flex-1 select-none items-center justify-center whitespace-nowrap rounded border px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm dark:border-primary/10",e),...t}));R2.displayName=B2.displayName;const $2=je.forwardRef(({className:e,...t},r)=>s.jsx(P2,{ref:r,className:Ve("w-full ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));$2.displayName=P2.displayName;const Eg="horizontal",yB=["horizontal","vertical"],L2=h.forwardRef((e,t)=>{const{decorative:r,orientation:n=Eg,...a}=e,o=_2(n)?n:Eg,l=r?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return h.createElement(St.div,we({"data-orientation":o},l,a,{ref:t}))});L2.propTypes={orientation(e,t,r){const n=e[t],a=String(n);return n&&!_2(n)?new Error(CB(a,r)):null}};function CB(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:
223
+ `+B.stack}}var Gi=r.ReactCurrentDispatcher,gl=r.ReactDebugCurrentFrame,ec=0,Na=1,ml=2,vl=3,ho=4,Tf=0,tc=1,po=2,Lm=12800;function kf(f){return console.error(f),null}function Yn(){}function _m(f,b,F,B,V,Y,ue,Fe,d){var g=[],D=new Set,I={destination:null,responseState:b,progressiveChunkSize:B===void 0?Lm:B,status:Tf,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:D,pingedTasks:g,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:V===void 0?kf:V,onAllReady:Y===void 0?Yn:Y,onShellReady:ue===void 0?Yn:ue,onShellError:Fe===void 0?Yn:Fe,onFatalError:d===void 0?Yn:d},R=bl(I,0,null,F,!1,!1);R.parentFlushed=!0;var X=rc(I,f,null,R,D,ao,mf,Cm);return g.push(X),I}function Wm(f,b){var F=f.pingedTasks;F.push(b),F.length===1&&i(function(){return Qi(f)})}function Zi(f,b){return{id:Qa,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:b,errorDigest:null}}function rc(f,b,F,B,V,Y,ue,Fe){f.allPendingTasks++,F===null?f.pendingRootTasks++:F.pendingTasks++;var d={node:b,ping:function(){return Wm(f,d)},blockedBoundary:F,blockedSegment:B,abortSet:V,legacyContext:Y,context:ue,treeContext:Fe};return d.componentStack=null,V.add(d),d}function bl(f,b,F,B,V,Y){return{status:ec,id:-1,index:b,parentFlushed:!1,chunks:[],children:[],formatContext:B,boundary:F,lastPushedText:V,textEmbedded:Y}}var ga=null;function Ui(){return ga===null||ga.componentStack===null?"":If(ga.componentStack)}function Ma(f,b){f.componentStack={tag:0,parent:f.componentStack,type:b}}function Jn(f,b){f.componentStack={tag:1,parent:f.componentStack,type:b}}function nc(f,b){f.componentStack={tag:2,parent:f.componentStack,type:b}}function vn(f){f.componentStack===null?a("Unexpectedly popped too many stack frames. This is a bug in React."):f.componentStack=f.componentStack.parent}var Jo=null;function ac(f,b){{var F;typeof b=="string"?F=b:b&&typeof b.message=="string"?F=b.message:F=String(b);var B=Jo||Ui();Jo=null,f.errorMessage=F,f.errorComponentStack=B}}function bn(f,b){var F=f.onError(b);if(F!=null&&typeof F!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof F+'" instead');return F}function Ra(f,b){var F=f.onShellError;F(b);var B=f.onFatalError;B(b),f.destination!==null?(f.status=po,j(f.destination,b)):(f.status=tc,f.fatalError=b)}function oc(f,b,F){Ma(b,"Suspense");var B=b.blockedBoundary,V=b.blockedSegment,Y=F.fallback,ue=F.children,Fe=new Set,d=Zi(f,Fe),g=V.chunks.length,D=bl(f,g,d,V.formatContext,!1,!1);V.children.push(D),V.lastPushedText=!1;var I=bl(f,0,null,V.formatContext,!1,!1);I.parentFlushed=!0,b.blockedBoundary=d,b.blockedSegment=I;try{if(pc(f,b,ue),Ta(I.chunks,f.responseState,I.lastPushedText,I.textEmbedded),I.status=Na,Cl(d,I),d.pendingTasks===0){vn(b);return}}catch(X){I.status=ho,d.forceClientRender=!0,d.errorDigest=bn(f,X),ac(d,X)}finally{b.blockedBoundary=B,b.blockedSegment=V}var R=rc(f,Y,B,D,Fe,b.legacyContext,b.context,b.treeContext);R.componentStack=b.componentStack,f.pingedTasks.push(R),vn(b)}function Xi(f,b,F,B){Ma(b,F);var V=b.blockedSegment,Y=Di(V.chunks,F,B,f.responseState,V.formatContext);V.lastPushedText=!1;var ue=V.formatContext;V.formatContext=Wn(ue,F,B),pc(f,b,Y),V.formatContext=ue,ks(V.chunks,F),V.lastPushedText=!1,vn(b)}function xl(f){return f.prototype&&f.prototype.isReactComponent}function Bf(f,b,F,B,V){var Y={};jm(b,Y);var ue=F(B,V);return Ef(F,B,ue,V)}function Pf(f,b,F,B,V){var Y=F.render();F.props!==V&&(Ji||a("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",sr(B)||"a component"),Ji=!0);{var ue=B.childContextTypes;if(ue!=null){var Fe=b.legacyContext,d=Gu(F,B,Fe,ue);b.legacyContext=d,nn(f,b,Y),b.legacyContext=Fe;return}}nn(f,b,Y)}function Vm(f,b,F,B){nc(b,F);var V=zu(F,b.legacyContext),Y=yf(F,B,V);wf(Y,F,B,V),Pf(f,b,Y,F,B),vn(b)}var ic={},Yi={},Of={},sc={},Ji=!1,lc=!1,uc=!1,cc=!1;function Nf(f,b,F,B){var V;if(V=zu(F,b.legacyContext),Jn(b,F),F.prototype&&typeof F.prototype.render=="function"){var Y=sr(F)||"Unknown";ic[Y]||(a("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",Y,Y),ic[Y]=!0)}var ue=Bf(f,b,F,B,V),Fe=fl();if(typeof ue=="object"&&ue!==null&&typeof ue.render=="function"&&ue.$$typeof===void 0){var d=sr(F)||"Unknown";Yi[d]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",d,d,d),Yi[d]=!0)}if(typeof ue=="object"&&ue!==null&&typeof ue.render=="function"&&ue.$$typeof===void 0){{var g=sr(F)||"Unknown";Yi[g]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",g,g,g),Yi[g]=!0)}wf(ue,F,B,V),Pf(f,b,ue,F,B)}else if(Mf(F),Fe){var D=b.treeContext,I=1,R=0;b.treeContext=sl(D,I,R);try{nn(f,b,ue)}finally{b.treeContext=D}}else nn(f,b,ue);vn(b)}function Mf(f){{if(f&&f.childContextTypes&&a("%s(...): childContextTypes cannot be defined on a function component.",f.displayName||f.name||"Component"),typeof f.getDerivedStateFromProps=="function"){var b=sr(f)||"Unknown";sc[b]||(a("%s: Function components do not support getDerivedStateFromProps.",b),sc[b]=!0)}if(typeof f.contextType=="object"&&f.contextType!==null){var F=sr(f)||"Unknown";Of[F]||(a("%s: Function components do not support contextType.",F),Of[F]=!0)}}}function dc(f,b){if(f&&f.defaultProps){var F=gn({},b),B=f.defaultProps;for(var V in B)F[V]===void 0&&(F[V]=B[V]);return F}return b}function Hm(f,b,F,B,V){Jn(b,F.render);var Y=Bf(f,b,F.render,B,V),ue=fl();if(ue){var Fe=b.treeContext,d=1,g=0;b.treeContext=sl(Fe,d,g);try{nn(f,b,Y)}finally{b.treeContext=Fe}}else nn(f,b,Y);vn(b)}function zm(f,b,F,B,V){var Y=F.type,ue=dc(Y,B);fc(f,b,Y,ue,V)}function Rf(f,b,F,B){F._context===void 0?F!==F.Consumer&&(cc||(cc=!0,a("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):F=F._context;var V=B.children;typeof V!="function"&&a("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var Y=_i(F),ue=V(Y);nn(f,b,ue)}function Gm(f,b,F,B){var V=F._context,Y=B.value,ue=B.children,Fe;Fe=b.context,b.context=vf(V,Y),nn(f,b,ue),b.context=bf(V),Fe!==b.context&&a("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Zm(f,b,F,B,V){Ma(b,"Lazy");var Y=F._payload,ue=F._init,Fe=ue(Y),d=dc(Fe,B);fc(f,b,Fe,d,V),vn(b)}function fc(f,b,F,B,V){if(typeof F=="function")if(xl(F)){Vm(f,b,F,B);return}else{Nf(f,b,F,B);return}if(typeof F=="string"){Xi(f,b,F,B);return}switch(F){case Zs:case Bu:case lf:case Tu:case rn:{nn(f,b,B.children);return}case ki:{Ma(b,"SuspenseList"),nn(f,b,B.children),vn(b);return}case ku:throw new Error("ReactDOMServer does not yet support scope components.");case Ti:{oc(f,b,B);return}}if(typeof F=="object"&&F!==null)switch(F.$$typeof){case Gs:{Hm(f,b,F,B,V);return}case Bi:{zm(f,b,F,B,V);return}case Hs:{Gm(f,b,F,B);return}case zs:{Rf(f,b,F,B);return}case Ho:{Zm(f,b,F,B);return}}var Y="";throw(F===void 0||typeof F=="object"&&F!==null&&Object.keys(F).length===0)&&(Y+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(F==null?F:typeof F)+"."+Y))}function Um(f,b){typeof Symbol=="function"&&f[Symbol.toStringTag]==="Generator"&&(lc||a("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),lc=!0),f.entries===b&&(uc||a("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),uc=!0)}function nn(f,b,F){try{return hc(f,b,F)}catch(B){throw typeof B=="object"&&B!==null&&typeof B.then=="function"||(Jo=Jo!==null?Jo:Ui()),B}}function hc(f,b,F){if(b.node=F,typeof F=="object"&&F!==null){switch(F.$$typeof){case pm:{var B=F,V=B.type,Y=B.props,ue=B.ref;fc(f,b,V,Y,ue);return}case sf:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Ho:{var Fe=F,d=Fe._payload,g=Fe._init,D;try{D=g(d)}catch(st){throw typeof st=="object"&&st!==null&&typeof st.then=="function"&&Ma(b,"Lazy"),st}nn(f,b,D);return}}if(wt(F)){$f(f,b,F);return}var I=vm(F);if(I){Um(F,I);var R=I.call(F);if(R){var X=R.next();if(!X.done){var ie=[];do ie.push(X.value),X=R.next();while(!X.done);$f(f,b,ie);return}return}}var De=Object.prototype.toString.call(F);throw new Error("Objects are not valid as a React child (found: "+(De==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":De)+"). If you meant to render a collection of children, use an array instead.")}if(typeof F=="string"){var Le=b.blockedSegment;Le.lastPushedText=Ia(b.blockedSegment.chunks,F,f.responseState,Le.lastPushedText);return}if(typeof F=="number"){var rt=b.blockedSegment;rt.lastPushedText=Ia(b.blockedSegment.chunks,""+F,f.responseState,rt.lastPushedText);return}typeof F=="function"&&a("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function $f(f,b,F){for(var B=F.length,V=0;V<B;V++){var Y=b.treeContext;b.treeContext=sl(Y,B,V);try{pc(f,b,F[V])}finally{b.treeContext=Y}}}function an(f,b,F){var B=b.blockedSegment,V=B.chunks.length,Y=bl(f,V,null,B.formatContext,B.lastPushedText,!0);B.children.push(Y),B.lastPushedText=!1;var ue=rc(f,b.node,b.blockedBoundary,Y,b.abortSet,b.legacyContext,b.context,b.treeContext);b.componentStack!==null&&(ue.componentStack=b.componentStack.parent);var Fe=ue.ping;F.then(Fe,Fe)}function pc(f,b,F){var B=b.blockedSegment.formatContext,V=b.legacyContext,Y=b.context,ue=null;ue=b.componentStack;try{return nn(f,b,F)}catch(Fe){if(Ku(),typeof Fe=="object"&&Fe!==null&&typeof Fe.then=="function"){an(f,b,Fe),b.blockedSegment.formatContext=B,b.legacyContext=V,b.context=Y,Li(Y),b.componentStack=ue;return}else throw b.blockedSegment.formatContext=B,b.legacyContext=V,b.context=Y,Li(Y),b.componentStack=ue,Fe}}function Lf(f,b,F,B){var V=bn(f,B);if(b===null?Ra(f,B):(b.pendingTasks--,b.forceClientRender||(b.forceClientRender=!0,b.errorDigest=V,ac(b,B),b.parentFlushed&&f.clientRenderedBoundaries.push(b))),f.allPendingTasks--,f.allPendingTasks===0){var Y=f.onAllReady;Y()}}function Xm(f){var b=this,F=f.blockedBoundary,B=f.blockedSegment;B.status=vl,_f(b,F,B)}function yl(f,b,F){var B=f.blockedBoundary,V=f.blockedSegment;if(V.status=vl,B===null)b.allPendingTasks--,b.status!==po&&(b.status=po,b.destination!==null&&E(b.destination));else{if(B.pendingTasks--,!B.forceClientRender){B.forceClientRender=!0;var Y=F===void 0?new Error("The render was aborted by the server without a reason."):F;B.errorDigest=b.onError(Y);{var ue="The server did not finish this Suspense boundary: ";Y&&typeof Y.message=="string"?Y=ue+Y.message:Y=ue+String(Y);var Fe=ga;ga=f;try{ac(B,Y)}finally{ga=Fe}}B.parentFlushed&&b.clientRenderedBoundaries.push(B)}if(B.fallbackAbortableTasks.forEach(function(g){return yl(g,b,F)}),B.fallbackAbortableTasks.clear(),b.allPendingTasks--,b.allPendingTasks===0){var d=b.onAllReady;d()}}}function Cl(f,b){if(b.chunks.length===0&&b.children.length===1&&b.children[0].boundary===null){var F=b.children[0];F.id=b.id,F.parentFlushed=!0,F.status===Na&&Cl(f,F)}else{var B=f.completedSegments;B.push(b)}}function _f(f,b,F){if(b===null){if(F.parentFlushed){if(f.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");f.completedRootSegment=F}if(f.pendingRootTasks--,f.pendingRootTasks===0){f.onShellError=Yn;var B=f.onShellReady;B()}}else if(b.pendingTasks--,!b.forceClientRender){if(b.pendingTasks===0)F.parentFlushed&&F.status===Na&&Cl(b,F),b.parentFlushed&&f.completedBoundaries.push(b),b.fallbackAbortableTasks.forEach(Xm,f),b.fallbackAbortableTasks.clear();else if(F.parentFlushed&&F.status===Na){Cl(b,F);var V=b.completedSegments;V.length===1&&b.parentFlushed&&f.partialBoundaries.push(b)}}if(f.allPendingTasks--,f.allPendingTasks===0){var Y=f.onAllReady;Y()}}function Wf(f,b){var F=b.blockedSegment;if(F.status===ec){Li(b.context);var B=null;B=ga,ga=b;try{nn(f,b,b.node),Ta(F.chunks,f.responseState,F.lastPushedText,F.textEmbedded),b.abortSet.delete(b),F.status=Na,_f(f,b.blockedBoundary,F)}catch(Y){if(Ku(),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"){var V=b.ping;Y.then(V,V)}else b.abortSet.delete(b),F.status=ho,Lf(f,b.blockedBoundary,F,Y)}finally{ga=B}}}function Qi(f){if(f.status!==po){var b=Ks(),F=Gi.current;Gi.current=jf;var B;B=gl.getCurrentStack,gl.getCurrentStack=Ui;var V=qu;zi(f.responseState);try{var Y=f.pingedTasks,ue;for(ue=0;ue<Y.length;ue++){var Fe=Y[ue];Wf(f,Fe)}Y.splice(0,ue),f.destination!==null&&El(f,f.destination)}catch(d){bn(f,d),Ra(f,d)}finally{zi(V),Gi.current=F,gl.getCurrentStack=B,F===jf&&Li(b)}}}function Ki(f,b,F){switch(F.parentFlushed=!0,F.status){case ec:{var B=F.id=f.nextSegmentId++;return F.lastPushedText=!1,F.textEmbedded=!1,Oo(b,f.responseState,B)}case Na:{F.status=ml;for(var V=!0,Y=F.chunks,ue=0,Fe=F.children,d=0;d<Fe.length;d++){for(var g=Fe[d];ue<g.index;ue++)p(b,Y[ue]);V=wl(f,b,g)}for(;ue<Y.length-1;ue++)p(b,Y[ue]);return ue<Y.length&&(V=x(b,Y[ue])),V}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function wl(f,b,F){var B=F.boundary;if(B===null)return Ki(f,b,F);if(B.parentFlushed=!0,B.forceClientRender)return _r(b,f.responseState,B.errorDigest,B.errorMessage,B.errorComponentStack),Ki(f,b,F),Su(b,f.responseState);if(B.pendingTasks>0){B.rootSegmentID=f.nextSegmentId++,B.completedSegments.length>0&&f.partialBoundaries.push(B);var V=B.id=Ka(f.responseState);return Ro(b,f.responseState,V),Ki(f,b,F),$o(b,f.responseState)}else{if(B.byteSize>f.progressiveChunkSize)return B.rootSegmentID=f.nextSegmentId++,f.completedBoundaries.push(B),Ro(b,f.responseState,B.id),Ki(f,b,F),$o(b,f.responseState);Ps(b,f.responseState);var Y=B.completedSegments;if(Y.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var ue=Y[0];return wl(f,b,ue),Os(b,f.responseState)}}function Vf(f,b,F){return af(b,f.responseState,F.id,F.errorDigest,F.errorMessage,F.errorComponentStack)}function qi(f,b,F){return Ct(b,f.responseState,F.formatContext,F.id),wl(f,b,F),Ut(b,F.formatContext)}function es(f,b,F){for(var B=F.completedSegments,V=0;V<B.length;V++){var Y=B[V];gc(f,b,F,Y)}return B.length=0,Au(b,f.responseState,F.id,F.rootSegmentID)}function Ym(f,b,F){for(var B=F.completedSegments,V=0;V<B.length;V++){var Y=B[V];if(!gc(f,b,F,Y))return V++,B.splice(0,V),!1}return B.splice(0,V),!0}function gc(f,b,F,B){if(B.status===ml)return!0;var V=B.id;if(V===-1){var Y=B.id=F.rootSegmentID;if(Y===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return qi(f,b,B)}else return qi(f,b,B),im(b,f.responseState,V)}function El(f,b){m();try{var F=f.completedRootSegment;F!==null&&f.pendingRootTasks===0&&(wl(f,b,F),f.completedRootSegment=null,wu(b,f.responseState));var B=f.clientRenderedBoundaries,V;for(V=0;V<B.length;V++){var Y=B[V];Vf(f,b,Y)}B.splice(0,V);var ue=f.completedBoundaries;for(V=0;V<ue.length;V++){var Fe=ue[V];es(f,b,Fe)}ue.splice(0,V),C(b),m(b);var d=f.partialBoundaries;for(V=0;V<d.length;V++){var g=d[V];if(!Ym(f,b,g)){f.destination=null,V++,d.splice(0,V);return}}d.splice(0,V);var D=f.completedBoundaries;for(V=0;V<D.length;V++){var I=D[V];es(f,b,I)}D.splice(0,V)}finally{C(b),f.allPendingTasks===0&&f.pingedTasks.length===0&&f.clientRenderedBoundaries.length===0&&f.completedBoundaries.length===0&&(f.abortableTasks.size!==0&&a("There was still abortable task at the root when we closed. This is a bug in React."),E(b))}}function Jm(f){i(function(){return Qi(f)})}function Hf(f,b){if(f.status===tc){f.status=po,j(b,f.fatalError);return}if(f.status!==po&&f.destination===null){f.destination=b;try{El(f,b)}catch(F){bn(f,F),Ra(f,F)}}}function Dl(f,b){try{var F=f.abortableTasks;F.forEach(function(B){return yl(B,f,b)}),F.clear(),f.destination!==null&&El(f,f.destination)}catch(B){bn(f,B),Ra(f,B)}}function Qm(f,b){return new Promise(function(F,B){var V,Y,ue=new Promise(function(R,X){Y=R,V=X});function Fe(){var R=new ReadableStream({type:"bytes",pull:function(X){Hf(g,X)},cancel:function(X){Dl(g)}},{highWaterMark:0});R.allReady=ue,F(R)}function d(R){ue.catch(function(){}),B(R)}var g=_m(f,dn(b?b.identifierPrefix:void 0,b?b.nonce:void 0,b?b.bootstrapScriptContent:void 0,b?b.bootstrapScripts:void 0,b?b.bootstrapModules:void 0),Bn(b?b.namespaceURI:void 0),b?b.progressiveChunkSize:void 0,b?b.onError:void 0,Y,Fe,d,V);if(b&&b.signal){var D=b.signal,I=function(){Dl(g,D.reason),D.removeEventListener("abort",I)};D.addEventListener("abort",I)}Jm(g)})}Vd.renderToReadableStream=Qm,Vd.version=t}()),Vd}var xi,xg;process.env.NODE_ENV==="production"?(xi=_k(),xg=Wk()):(xi=Vk(),xg=Hk()),gi.version=xi.version,gi.renderToString=xi.renderToString,gi.renderToStaticMarkup=xi.renderToStaticMarkup,gi.renderToNodeStream=xi.renderToNodeStream,gi.renderToStaticNodeStream=xi.renderToStaticNodeStream,gi.renderToReadableStream=xg.renderToReadableStream;let zk="iVBORw0KGgoAAAANSUhEUgAAANUAAABhCAYAAABBG+TgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACEgSURBVHhe7Z0HWFRXFsfPG1SaFKWDgBUsWLH3lthN1cQYY5ItiellN9mYxGQ3m2rcbDYxuiamJ2qqaa4NK/aOFaWIIgqKIE1Rmbf3f+eNvJl5b2DgDWK8v++bj3nDlDdw/++ce+4550pl5ZdlEggEhmFSfgoEAoMQohIIDEaISiAwGCEqgcBghKgEAoMRohIIDEaISiAwGCEqgcBg6p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RvKPPk2wEviJfooKmwXDndPWCVB3VKvRKUG+YGnimTKLZGooMySfAvrdbFC4ntNkSRzy4NSEH8mpEBvS892dDpCvp47Q+MCgTPqragEgmsVt2dUCATXG0JUAoHBCFEJBAYjRCUQGIwQlUBgMEJUAoHBCFEJBAYjRCUQGIwQlUBgMEJUAoHBCFEJBIZC9H8N2KynRYkKgQAAAABJRU5ErkJggg==";const y2=e=>s.jsx("div",{className:"border-box mr-[10px] flex h-[32px] w-fit min-w-[32px] items-center justify-center rounded bg-gray-300 p-2 transition-all hover:opacity-50",onMouseDown:e.onMouseDown,children:e.name}),Gk=e=>s.jsxs("div",{className:"group relative w-fit",children:[s.jsx("img",{src:`data:image/pngg;charset=utf-8;base64,${zk}`}),s.jsx("div",{className:"absolute right-0 top-0 text-red-900 opacity-0 transition-all hover:opacity-50 group-hover:opacity-100",children:s.jsx("svg",{"aria-label":"Close Icon","aria-hidden":"true",className:"h-4 w-4",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})]}),Zk={bold:"B",italic:"I",underline:"U",strikeThrough:"S",subscript:"SubS",superscript:"SuperS",removeFormat:"Plain"},Uk=e=>s.jsxs("div",{className:"align-center box-border flex h-min w-[400px] flex-col items-center justify-center rounded shadow-md",children:[s.jsxs("div",{className:"flex w-full flex-row justify-start p-2",children:[Object.entries(Zk).map(([t,r])=>s.jsx(y2,{name:r,onMouseDown:n=>{n.preventDefault(),document.execCommand(t,!1,null),console.log(`Executing ${t}`)}},`property-${t}`)),s.jsx(y2,{name:"Image",onMouseDown:t=>{t.preventDefault();let r=gi.renderToString(s.jsx(Gk,{}));document.execCommand("insertHTML",!1,r)}},"property-insertImage")]}),s.jsx("div",{className:"h-[1px] w-full bg-slate-600",children:" "}),s.jsx("div",{className:" box-border w-full p-2",children:s.jsx("div",{contentEditable:"true",className:"rtl h-[150px] w-full resize-none overflow-auto overflow-x-hidden border-none font-['Arial'] text-[16px] outline-none"})}),s.jsx("div",{className:"h-[1px] w-full bg-slate-600",children:" "}),s.jsx("button",{className:"my-1 rounded bg-cyan-800 p-2 py-1 text-white",onClick:()=>{},children:"Submit"})]}),Xk=({...e})=>{const[t,r]=h.useState(!1),[n,a]=h.useState(null),o=h.useRef(n),i=x=>{o.current=x,a(x)},l=h.useRef(null),u=()=>{let x=e.anchor.current;return[x.scrollTop,x.scrollLeft]},c=()=>{let[x,C]=u(),E=e.anchor.current.getBoundingClientRect();r(x>=E.height+(e.paddingThreshold||100))},m=()=>{e.anchor.current.scrollTo({top:0,behavior:"smooth"})};h.useEffect(()=>{if(!e.anchor.current)return;e.anchor.current.addEventListener("scroll",c);let x=setInterval(()=>{if(!e.anchor.current)return;let C=e.anchor.current.getBoundingClientRect();if(o.current==null)return i(C);o.current.top==C.top&&o.current.left==C.left&&o.current.width==C.width&&o.current.height==C.height||i(C)},1);return()=>{var C;(C=e.anchor.current)==null||C.removeEventListener("scroll",c),clearInterval(x)}},[]);const p=()=>{if(!e.anchor.current)return{};let x=e.corner||"bottom-right",[C,E]=x.split("-"),v=e.anchor.current.getBoundingClientRect(),A=l.current.getBoundingClientRect(),S=E=="right"?v.width-A.width:0,j=C=="bottom"?v.height-A.height:0;return{top:v.y+j+(C=="bottom"?-1:1)*(e.paddingX||10),left:v.x+S+(E=="right"?-1:1)*(e.paddingX||25)}};return s.jsx(qe,{className:Ve("fixed cursor-pointer rounded transition-all",t?"pointer-events-all opacity-100":"pointer-events-none opacity-0"),onClick:m,style:{...p(),transitionProperty:"opacity, background-color"},ref:l,size:"icon",children:s.jsx("svg",{className:$e("h-6 w-6 shrink-0 rotate-180 transition-all disabled:bg-gray-200"),"aria-label":"Arrow Icon",viewBox:"0 0 20 20",fill:"currentColor",children:s.jsx("path",{d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"})})})},Yk=e=>s.jsx("code",{className:"inline-code",children:e.text}),Jk=e=>s.jsx("div",{children:s.jsx("ol",{className:"relative border-l border-gray-200 dark:border-gray-700",children:e.steps.map(t=>s.jsxs("li",{className:"mb-10 ml-4",children:[s.jsx("div",{className:"absolute -left-1.5 mt-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700"}),s.jsx("time",{className:"mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500",children:t.date}),s.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:t.title}),s.jsx("p",{className:"mb-4 text-base font-normal text-gray-500 dark:text-gray-400",children:t.description}),t.actions]}))})}),yg=({label:e,icon:t,digits:r,width:n="normal",getPins:a,...o})=>{const[i,l]=h.useState(Array.from(Array(r))),u=(m,p)=>{let x=0;if(m.key==="Backspace"){m.target.value.length===0?x=p-1:x=p;const C=document.getElementById(`input-${x}`);C==null||C.focus()}};h.useEffect(()=>{i.includes(void 0)||a(i)});const c=(m,p)=>{if(/^\d*$/.test(m.target.value)){const x=[...i];if(x[p]=m.target.value,l(x),m.target.value.length===1){const C=document.getElementById(`input-${p+1}`);C==null||C.focus()}else if(m.target.value.length===0){const C=document.getElementById(`input-${p-1}`);C==null||C.focus()}}else{const x=[...i];x[p]="",l(x);return}};return s.jsx("div",{className:"flex w-full flex-row justify-center gap-2",children:i.map((m,p)=>s.jsx("input",{type:"text",maxLength:1,value:m,id:`input-${p}`,pattern:"[0-9]*",className:$e("h-10 rounded border bg-background text-center",n==="full"?"w-full":"w-10"),onChange:x=>c(x,p),onKeyDown:x=>u(x,p),onFocus:x=>x.target.select(),...o},p))})},Qk=({actions:e,counts:t,content:r,headerActions:n,clickableImage:a,clickableImageAction:o,clickableImageActionText:i,clickableImageActionIcon:l,header:u,cardImage:c,orientation:m="vertical",...p})=>{let x="block rounded border border-gray-200 bg-white shadow-sm hover:shadow-lg transition-all dark:border-gray-700 dark:bg-gray-800 ",C={vertical:"max-w-sm",horizontal:"flex flex-row w-full"},E={vertical:"h-auto max-h-56 w-full rounded-t-lg object-cover",horizontal:"h-full w-48 rounded-l object-cover"},v="inline-block rounded p-1 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700";const[A,S]=h.useState(!1);function j(){S(!A)}return h.useEffect(()=>(window.onclick=()=>{A&&S(!1)},()=>window.onclick=null),[A]),s.jsxs("div",{className:$e(x,C[m]),...p,children:[c&&s.jsxs("div",{className:"group relative overflow-clip",children:[s.jsx("img",{src:"https://via.placeholder.com/50",className:$e(E[m],a?"overflow-clip transition-all group-hover:blur-lg":"")}),a&&s.jsx("div",{className:"absolute left-0 top-0 flex h-full w-full items-center justify-center opacity-0 transition-all group-hover:opacity-100 ",children:s.jsxs(qe,{variant:"secondary",onClick:o,className:"flex flex-row gap-2",children:[l,i]})})]}),s.jsxs("div",{className:"relative w-full p-6",children:[n&&s.jsx("div",{className:"max-h- bg-red absolute right-0 top-0 flex justify-end pr-3 pt-3",children:s.jsx(Xl,{items:n,trigger:s.jsxs("div",{className:$e(v),onClick:j,children:[s.jsx("span",{className:"sr-only",children:"Open dropdown"}),s.jsx("svg",{className:"h-6 w-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{d:"M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"})})]})})}),u&&s.jsx("h5",{className:"mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white",children:u}),r&&s.jsx("span",{className:"w-full font-normal text-gray-700 dark:text-gray-400",children:r}),e||t?s.jsxs("div",{className:$e("mt-3 flex items-center rounded-b-lg dark:text-white ",e&&t?"justify-between":"justify-end"),children:[t,e]}):null]})]})},C2=({size:e="medium",direction:t="ltr",currentPlan:r=!1,...n})=>{var i;let a=t==="rtl",o={small:"mx-1 w-full max-w-sm rounded border dark:border-gray-700 bg-background ",medium:"mx-1 w-full rounded min-w-fit border dark:border-gray-700 bg-background ",large:"mx-1 w-full max-w-lg rounded border dark:border-gray-700 bg-background "};return s.jsxs("div",{dir:a?"rtl":"ltr",className:$e(r?"border-primary":"bg-background",o[e],"flex flex-col gap-4 rounded border-2 p-4"),children:[s.jsx("h5",{className:"text-md 0 font-bold text-primary/70",children:n.texts.title}),s.jsxs("div",{className:" text-primary/ flex items-baseline",children:[s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-5xl font-extrabold tracking-tight",children:n.price}),s.jsx("span",{className:"mx-1 text-sm font-semibold",children:n.texts.currencyText})]}),s.jsxs("span",{className:"ml-1 text-xl font-normal text-primary/70",children:["/ ",n.texts.cycleText]})]}),s.jsx("h5",{className:"text-md font-normal text-primary/70",children:n.texts.subtitle}),n.features&&s.jsx("ul",{role:"list",className:"space-y-0 ",children:(i=n.features)==null?void 0:i.map((l,u)=>s.jsxs("li",{className:"flex ",children:[s.jsx("svg",{"aria-label":"Check Icon","aria-hidden":"true",className:"m-2 h-5 w-5 flex-shrink-0 text-primary",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),s.jsx("span",{className:"flex items-center text-center font-normal leading-tight text-primary/70 ",children:l.text})]},u))}),s.jsx(qe,{onClick:n.onPlanClicked,disabled:r,className:"w-full",children:n.texts.buttonText})]})},Kk=({orientation:e,...t})=>{const r=h.useRef(null),[n,a]=h.useState(!1);let o=0;h.useEffect(()=>{},[o]);let i={horizontal:"flex flex-row max-w-xl rounded border-gray-200 bg-gray-100 shadow-md p-2 gap-2 items-center relative dark:border-gray-700 dark:bg-gray-800 ",vertical:"flex flex-col max-w-[200px] justify-start rounded border-gray-200 bg-gray-100 gap-2 shadow-md p-2 relative dark:border-gray-700 dark:bg-gray-800 "},l={horizontal:"w-auto h-full bg-blue-500 rounded-inner",vertical:"bg-blue-500 rounded-inner w-auto "};return s.jsx("div",{ref:r,children:s.jsxs("div",{className:$e(i[e],"dark:text-white"),...t,children:[s.jsx("div",{className:"flex aspect-square w-full max-w-fit items-start ",children:s.jsx("img",{src:t.imageURL?t.imageURL:"https://via.placeholder.com/50",className:l[e]})}),s.jsxs("div",{className:"w-full text-xs",children:[s.jsx("div",{className:"font-bold",children:t.title}),s.jsx("div",{className:"text-[12px]",children:t.description})]}),s.jsx("span",{onClick:()=>{t.canHide?(a(!0),setTimeout(()=>{r.current.removeChild(r.current.children[0])},200)):t.handleCantHide()},className:"absolute right-0 top-0 h-fit cursor-pointer select-none rounded-bl-lg rounded-tr-lg bg-blue-100 px-2.5 py-0.5 text-[10px] font-semibold text-blue-800 dark:bg-blue-200 dark:text-blue-800",children:"Hide"})]})})},qk=({orientation:e="horizontal",...t})=>{var n,a,o,i,l,u,c,m;let r={horizontal:"flex max-w-xl rounded border-gray-200 bg-gray-100 shadow-md dark:border-gray-700 dark:bg-gray-800 ",vertical:"flex max-w-xs rounded border-gray-200 bg-gray-100 shadow-md dark:border-gray-700 dark:bg-gray-800 "};return s.jsxs("div",{className:$e(r[e],"flex flex-col p-10","relative overflow-hidden dark:text-white",t.className),...t,children:[((n=t.texts)==null?void 0:n.titleTip)&&s.jsx("div",{className:"text-sm text-red-600",children:(a=t.texts)==null?void 0:a.titleTip}),t.imageURL&&s.jsx("img",{className:"absolute -bottom-10 -right-10 h-40 w-auto ",src:t.imageURL}),((o=t.texts)==null?void 0:o.title)&&s.jsxs("div",{className:"mt-2 text-lg font-medium",children:[(i=t.texts)==null?void 0:i.title," "]}),((l=t.texts)==null?void 0:l.description)&&s.jsx("div",{className:"z-10 mt-4 text-sm",children:(u=t.texts)==null?void 0:u.description}),((c=t.texts)==null?void 0:c.linkText)&&s.jsx("div",{className:"z-10 mt-6 text-sm underline underline-offset-8",children:(m=t.texts)==null?void 0:m.linkText})]})},eB="cursor-default pointer-events-none",tB={contained:"text-gray-300 bg-gray-100",outlined:"text-gray-300 border-gray-300"},w2="cursor-pointer justify-center items-center text-center font-medium transition-all ",E2={icon:"h-10 w-10",xs:"px-1.5 py-2 text-[9px] h-fit",small:"text-xs px-2.5 py-1.5",medium:"text-sm leading-4 px-3 py-2",default:"h-10 px-4 py-2",large:"text-sm px-4 py-2",noPadding:"p-0",full:"h-full max-h-full p-2"},D2={full:"w-full flex justify-center px-5 py-2.5 text-center inline-flex items-center",half:"w-full text-center flex items-center justify-center h-full",normal:"w-fit dark:bg-buttonPrimary-dark dark:hover:bg-buttonPrimary-700 dark:hover:brightness-90 dark:focus:ring-buttonPrimary-500"},rB={full:"w-full flex justify-center text-center inline-flex items-center",half:"w-1/2",normal:"w-fit"},S2={contained:"border-transparent",outlined:"border border-input bg-background hover:bg-accent hover:text-accent-foreground"},nB={contained:{default:"text-neutral-900 bg-buttonPrimary-500 hover:bg-buttonPrimary-700 bg-buttonPrimary-500 text-white",primary:"text-white bg-buttonPrimary-500 hover:bg-buttonPrimary-700 transition-all",secondary:"bg-buttonSecondary-500 hover:text-white hover:bg-buttonSecondary-700",gray:"text-neutral-900 bg-gray-200 hover:bg-gray-300",dark:"text-neutral-900 bg-gray-200 hover:bg-gray-300"},outlined:{default:"text-gray-600 border-gray-600 hover:bg-gray-200 dark:hover:bg-gray-800 dark:text-white",primary:"text-black hover:bg-gray-50 dark:text-white",secondary:" dark:text-white text-secondary-800 border-secondary-800 hover:bg-buttonSecondary-700 hover:text-white",gray:"border-gray-300 hover:bg-gray-200",dark:"border-gray-900 hover:bg-gray-700"}},aB=({className:e,variant:t="contained",color:r="default",size:n="default",width:a="normal",disabled:o=!1,isLoading:i=!1,tooltip:l,tooltipSize:u="normal",tooltipPosition:c="top-left",tooltipDirection:m="ltr",margins:p="2",children:x,badge:C,edgeCorner:E=!1,feedback:v,...A})=>{const[S,j]=h.useState(!1),[O,L]=h.useState(x),M=z=>{A.onClick&&A.onClick(z),v&&!S&&(L(v),j(!0),setTimeout(()=>{L(x),j(!1)},2e3))};return s.jsxs("div",{className:$e("relative",p!=="none"?`my-${p}`:"m-0",rB[a]),children:[s.jsx("button",{className:o?$e(e,w2,E?"rounded-inner":"rounded",S2[t],E2[n],D2[a],eB,tB[t]):$e(e,"overflow-x-clip",w2,E?"rounded-inner":"rounded",S2[t],E2[n],nB[t][r],D2[a]),disabled:o,onClick:M,children:i?s.jsx(us,{design:"dots-pulse",color:"bg-white",size:"button"}):s.jsxs("div",{className:$e(" s flex flex-col-reverse items-start justify-center gap-4 transition-all",S&&v?" -translate-y-8 pb-1 pt-1":"translate-y-0"),children:[S&&v?s.jsx("div",{className:"w-full text-center",children:O}):null,s.jsxs("div",{className:"flex w-full select-none flex-row items-center justify-center gap-2 whitespace-nowrap",children:[A.startIcon&&A.startIcon,x,A.endIcon&&A.endIcon]})]})}),C&&s.jsx("div",{className:$e(typeof C=="boolean"?"h-5 w-5":typeof C=="string"?"h-5 w-7":"h-6 w-6","absolute -right-2 -top-2 inline-flex select-none items-center justify-center rounded-full border-2 border-white bg-red-500 text-[9px] font-bold text-white dark:border-gray-900"),children:typeof C=="number"&&C>100?"+99":C})]})},oB=e=>s.jsx("div",{className:"flex justify-center",children:s.jsx("div",{children:e.store==="apple"?e.mode==="dark"?s.jsxs("div",{className:"mt-3 flex h-14 w-48 items-center justify-center rounded-lg bg-black text-white",children:[s.jsx("div",{className:"mr-3",children:s.jsx("svg",{viewBox:"0 0 384 512",width:"30",children:s.jsx("path",{fill:"currentColor",d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"})})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs",children:"Download on the"}),s.jsx("div",{className:"font-sans -mt-1 text-2xl font-semibold",children:"App Store"})]})]}):s.jsxs("div",{className:"mt-3 flex h-14 w-48 items-center justify-center rounded-lg border border-black bg-transparent text-black",children:[s.jsx("div",{className:"mr-3",children:s.jsx("svg",{viewBox:"0 0 384 512",width:"30",children:s.jsx("path",{fill:"currentColor",d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"})})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs",children:"Download on the"}),s.jsx("div",{className:"font-sans -mt-1 text-2xl font-semibold",children:"App Store"})]})]}):e.mode==="dark"?s.jsxs("div",{className:"mt-3 flex h-14 w-48 items-center justify-center rounded-lg bg-black text-white",children:[s.jsx("div",{className:"mr-3",children:s.jsxs("svg",{viewBox:"30 336.7 120.9 129.2",width:"30",children:[s.jsx("path",{fill:"#FFD400",d:"M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"}),s.jsx("path",{fill:"#FF3333",d:"M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"}),s.jsx("path",{fill:"#48FF48",d:"M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"}),s.jsx("path",{fill:"#3BCCFF",d:"M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"})]})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs",children:"GET IT ON"}),s.jsx("div",{className:"font-sans -mt-1 text-xl font-semibold",children:"Google Play"})]})]}):s.jsxs("div",{className:"mt-3 flex h-14 w-48 items-center justify-center rounded-lg border border-black bg-white text-black",children:[s.jsx("div",{className:"mr-3",children:s.jsxs("svg",{viewBox:"30 336.7 120.9 129.2",width:"30",children:[s.jsx("path",{fill:"#FFD400",d:"M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"}),s.jsx("path",{fill:"#FF3333",d:"M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"}),s.jsx("path",{fill:"#48FF48",d:"M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"}),s.jsx("path",{fill:"#3BCCFF",d:"M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"})]})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs",children:"GET IT ON"}),s.jsx("div",{className:"font-sans -mt-1 text-xl font-semibold",children:"Google Play"})]})]})})}),iB=e=>{const[t,r]=h.useState(!1);return s.jsxs("div",{className:"flex h-full w-full flex-col gap-1 ",children:[s.jsxs("div",{className:"group relative h-full w-full rounded border bg-background bg-cover bg-center transition-all duration-500 hover:drop-shadow-2xl",style:{backgroundImage:`url(${e.blank?"":e.cardImage})`},onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[e.blank?s.jsx("div",{className:"flex h-full flex-col items-center justify-center ",children:s.jsx("svg",{className:"h-10 w-10 text-foreground",stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 24 24",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z"})})}):s.jsx("div",{className:"absolute inset-0 rounded bg-black opacity-50"}),s.jsx("div",{className:"absolute bottom-2 right-2 z-10 opacity-0 transition-all duration-200 group-hover:opacity-100",children:e.inCardActions}),!e.blank&&s.jsxs("div",{className:"relative p-4",children:[s.jsx("h1",{className:"text-white",children:e.title}),s.jsx("p",{className:"text-white",children:e.subtitle})]})]}),s.jsx("div",{className:`flex flex-row justify-between text-sm transition-all duration-200 ${t?"opacity-100":"opacity-0"}`,children:e.bottomElement})]})},sB=e=>s.jsx("div",{className:"bg-white py-24 sm:py-32",children:s.jsxs("div",{className:"mx-auto flex max-w-5xl flex-col items-start gap-10 px-6 md:flex-row lg:px-8",children:[s.jsxs("div",{className:"w-full md:sticky md:top-10 md:w-[28rem]",children:[s.jsx("h2",{className:"text-lg font-semibold leading-8 tracking-tight text-indigo-600",children:e.tag}),s.jsx("p",{className:"mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl",children:e.title}),s.jsx("p",{className:"mb-2 mt-6 text-base leading-7 text-gray-600",children:e.description})]}),s.jsx("div",{className:"mt-5 w-full min-w-0 flex-1 md:mt-0",children:s.jsx("dl",{className:"grid grid-cols-1 gap-x-8 gap-y-10 md:max-w-xl lg:max-w-none lg:gap-y-16",children:e.features.map(t=>s.jsxs("div",{className:"relative rounded-lg bg-gray-50 p-10",children:[s.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-indigo-600",children:t.icon}),s.jsx("dt",{className:"mt-4 text-lg font-semibold leading-7 text-gray-900",children:t.title}),s.jsx("dd",{className:"mt-2 text-base leading-7 text-gray-600",children:t.description})]}))})})]})}),lB=({position:e="bottom-right",...t})=>{const[r,n]=h.useState(!1);h.useState(!1),h.useState(null);const[a,o]=h.useState(5),i=h.useRef(null),l={"bottom-right":"right-4","bottom-left":"left-4"};h.useEffect(()=>{const c=setTimeout(()=>{a>=0&&o(a-1)},1e3);return()=>{clearTimeout(c)}},[a]);const u=()=>{n(!0),setTimeout(()=>{i.current.removeChild(i.current.children[0])},200)};return s.jsxs(Gt,{ref:i,className:$e("fixed bottom-4 p-0 ",l[e]),children:[s.jsx("button",{type:"button",className:"absolute right-2 top-2 inline-flex h-8 w-8 rounded p-1.5 text-gray-400 transition-all hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white","data-dismiss-target":"#toast-default","aria-label":"Close",onClick:()=>u(),children:s.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}),s.jsxs($t,{headless:!0,children:[s.jsxs("div",{className:$e("flex flex-col gap-4",r?"opacity-0":"opacity-100"),children:[s.jsx("div",{className:"mt-4 font-bold",children:t.question}),s.jsx("div",{className:"flex w-full flex-row gap-1 rounded ",children:s.jsx(yn,{orientation:"vertical",options:t.options})}),s.jsx("div",{children:s.jsx(xd,{})})]}),s.jsx(qe,{className:"mt-4 w-full",children:"Submit"})]})]})},zr={logo:e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",...e,children:[s.jsx("rect",{width:"256",height:"256",fill:"none"}),s.jsx("line",{x1:"208",y1:"128",x2:"128",y2:"208",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.jsx("line",{x1:"192",y1:"40",x2:"40",y2:"192",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"})]}),mail:e=>s.jsxs("svg",{stroke:"currentColor",fill:"none","stroke-width":"2",viewBox:"0 0 24 24","stroke-linecap":"round","stroke-linejoin":"round",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),s.jsx("polyline",{points:"22,6 12,13 2,6"})]}),phone:e=>s.jsx("svg",{stroke:"currentColor",fill:"none","stroke-width":"2",viewBox:"0 0 24 24","aria-hidden":"true",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 1.5H8.25A2.25 2.25 0 006 3.75v16.5a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 20.25V3.75a2.25 2.25 0 00-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"})}),twitter:e=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M21.543 7.104c.015.211.015.423.015.636 0 6.507-4.954 14.01-14.01 14.01v-.003A13.94 13.94 0 0 1 0 19.539a9.88 9.88 0 0 0 7.287-2.041 4.93 4.93 0 0 1-4.6-3.42 4.916 4.916 0 0 0 2.223-.084A4.926 4.926 0 0 1 .96 9.167v-.062a4.887 4.887 0 0 0 2.235.616A4.928 4.928 0 0 1 1.67 3.148a13.98 13.98 0 0 0 10.15 5.144 4.929 4.929 0 0 1 8.39-4.49 9.868 9.868 0 0 0 3.128-1.196 4.941 4.941 0 0 1-2.165 2.724A9.828 9.828 0 0 0 24 4.555a10.019 10.019 0 0 1-2.457 2.549z"})}),microsoft:e=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:s.jsx("path",{fill:"currentColor",d:"M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"})}),gitHub:e=>s.jsx("svg",{viewBox:"0 0 438.549 438.549",...e,children:s.jsx("path",{fill:"currentColor",d:"M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"})}),radix:e=>s.jsxs("svg",{viewBox:"0 0 25 25",fill:"none",...e,children:[s.jsx("path",{d:"M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",fill:"currentcolor"}),s.jsx("path",{d:"M12 0H4V8H12V0Z",fill:"currentcolor"}),s.jsx("path",{d:"M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z",fill:"currentcolor"})]}),aria:e=>s.jsx("svg",{role:"img",viewBox:"0 0 24 24",fill:"currentColor",...e,children:s.jsx("path",{d:"M13.966 22.624l-1.69-4.281H8.122l3.892-9.144 5.662 13.425zM8.884 1.376H0v21.248zm15.116 0h-8.884L24 22.624Z"})}),npm:e=>s.jsx("svg",{viewBox:"0 0 24 24",...e,children:s.jsx("path",{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z",fill:"currentColor"})}),yarn:e=>s.jsx("svg",{viewBox:"0 0 24 24",...e,children:s.jsx("path",{d:"M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z",fill:"currentColor"})}),pnpm:e=>s.jsx("svg",{viewBox:"0 0 24 24",...e,children:s.jsx("path",{d:"M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z",fill:"currentColor"})}),react:e=>s.jsx("svg",{viewBox:"0 0 24 24",...e,children:s.jsx("path",{d:"M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z",fill:"currentColor"})}),tailwind:e=>s.jsx("svg",{viewBox:"0 0 24 24",...e,children:s.jsx("path",{d:"M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z",fill:"currentColor"})}),google:e=>s.jsx("svg",{role:"img",viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"})}),apple:e=>s.jsx("svg",{role:"img",viewBox:"0 0 24 24",...e,children:s.jsx("path",{d:"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",fill:"currentColor"})}),paypal:e=>s.jsx("svg",{role:"img",viewBox:"0 0 24 24",...e,children:s.jsx("path",{d:"M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.474 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106zm14.146-14.42a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.93 4.778-4.005 7.201-9.138 7.201h-2.19a.563.563 0 0 0-.556.479l-1.187 7.527h-.506l-.24 1.516a.56.56 0 0 0 .554.647h3.882c.46 0 .85-.334.922-.788.06-.26.76-4.852.816-5.09a.932.932 0 0 1 .923-.788h.58c3.76 0 6.705-1.528 7.565-5.946.36-1.847.174-3.388-.777-4.471z",fill:"currentColor"})}),spinner:e=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:s.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})},uB=e=>{const[t,r]=h.useState(!1),[n,a]=h.useState(0),[o,i]=h.useState(0),l=h.useRef(null),u=E=>Math.round(E/e)*e,c=E=>{r(!0),a(E.pageX-l.current.offsetLeft),i(l.current.scrollLeft)},m=()=>{t&&x()},p=()=>{t&&x()},x=()=>{r(!1);const E=u(l.current.scrollLeft);l.current.scrollTo({left:E,behavior:"smooth"})};return{containerRef:l,handleMouseDown:c,handleMouseLeave:m,handleMouseUp:p,handleMouseMove:E=>{if(!t)return;E.preventDefault();const A=E.pageX-l.current.offsetLeft-n;l.current.scrollLeft=o-A}}},cB=({images:e})=>{const{containerRef:r,handleMouseDown:n,handleMouseLeave:a,handleMouseUp:o,handleMouseMove:i}=uB(1016);return s.jsx("div",{className:"flex cursor-pointer snap-x items-center justify-center gap-4 overflow-x-hidden",onMouseDown:n,onMouseLeave:a,onMouseUp:o,onMouseMove:i,ref:r,children:e.map((l,u)=>s.jsx("div",{className:"h-96 w-[1000px] flex-shrink-0",children:s.jsx("img",{src:l,alt:`Carousel Image ${u}`,width:1016,className:"h-full w-full rounded-lg object-cover"})},u))})},As=je.forwardRef(({className:e,preview:t,type:r,...n},a)=>s.jsx("input",{type:r,className:Ve("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e,t&&" disabled:cursor-default disabled:opacity-100 border-opacity-25 "),disabled:t,ref:a,...n}));As.displayName="Input";const Cg=({orientation:e="horizontal",width:t="default",...r})=>{const[n,a]=h.useState(r.currentColorMode),[o,i]=h.useState(r.currentLanguage);let l={horizontal:"flex flex-row justify-between",vertical:"flex flex-col items-center gap-2"};return s.jsxs("div",{className:Ve(l[e]),children:[s.jsx(yn,{width:t,defaultValue:o,onChangeTab:u=>{r.handleLanguage(u),i(u)},design:"tabs",options:[{value:"ar",label:"عربي"},{value:"en",label:"English"}]}),s.jsx(yn,{width:t,defaultValue:n,onChangeTab:u=>{r.handleColorMode(u),a(u)},design:"tabs",options:[{value:"light",label:s.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90",children:s.jsx("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:"currentColor"})})},{value:"dark",label:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",className:"h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100",children:s.jsx("path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})})}]})]})},A2="Tabs",[dB,BN]=Dn(A2,[Kc]),F2=Kc(),[fB,wg]=dB(A2),hB=h.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:a,defaultValue:o,orientation:i="horizontal",dir:l,activationMode:u="automatic",...c}=e,m=Zc(l),[p,x]=Rn({prop:n,onChange:a,defaultProp:o});return h.createElement(fB,{scope:r,baseId:Sn(),value:p,onValueChange:x,orientation:i,dir:m,activationMode:u},h.createElement(St.div,we({dir:m,"data-orientation":i},c,{ref:t})))}),pB="TabsList",gB=h.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...a}=e,o=wg(pB,r),i=F2(r);return h.createElement(F1,we({asChild:!0},i,{orientation:o.orientation,dir:o.dir,loop:n}),h.createElement(St.div,we({role:"tablist","aria-orientation":o.orientation},a,{ref:t})))}),mB="TabsTrigger",vB=h.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:a=!1,...o}=e,i=wg(mB,r),l=F2(r),u=j2(i.baseId,n),c=I2(i.baseId,n),m=n===i.value;return h.createElement(j1,we({asChild:!0},l,{focusable:!a,active:m}),h.createElement(St.button,we({type:"button",role:"tab","aria-selected":m,"aria-controls":c,"data-state":m?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:u},o,{ref:t,onMouseDown:at(e.onMouseDown,p=>{!a&&p.button===0&&p.ctrlKey===!1?i.onValueChange(n):p.preventDefault()}),onKeyDown:at(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&i.onValueChange(n)}),onFocus:at(e.onFocus,()=>{const p=i.activationMode!=="manual";!m&&!a&&p&&i.onValueChange(n)})})))}),bB="TabsContent",xB=h.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:a,children:o,...i}=e,l=wg(bB,r),u=j2(l.baseId,n),c=I2(l.baseId,n),m=n===l.value,p=h.useRef(m);return h.useEffect(()=>{const x=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(x)},[]),h.createElement(sn,{present:a||m},({present:x})=>h.createElement(St.div,we({"data-state":m?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":u,hidden:!x,id:c,tabIndex:0},i,{ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0}}),x&&o))});function j2(e,t){return`${e}-trigger-${t}`}function I2(e,t){return`${e}-content-${t}`}const T2=hB,k2=gB,B2=vB,P2=xB,O2=je.createContext({orientation:"vertical"}),N2=je.forwardRef(({className:e,orientation:t,...r},n)=>s.jsx(T2,{ref:n,className:Ve("flex gap-2",t==="horizontal"?"flex-row":"flex-col",e),...r,children:s.jsx(O2.Provider,{value:{orientation:t},children:r.children})}));N2.displayName=T2.displayName;const M2=je.forwardRef(({className:e,...t},r)=>{const{orientation:n}=je.useContext(O2);return s.jsx(k2,{ref:r,className:Ve("flex w-fit flex-wrap items-center justify-start gap-1 rounded border bg-muted p-1 text-muted-foreground dark:border-primary/10 ",n==="horizontal"?"flex-col":"flex-row",e),...t})});M2.displayName=k2.displayName;const R2=je.forwardRef(({className:e,...t},r)=>s.jsx(B2,{ref:r,className:Ve("inline-flex w-full flex-1 select-none items-center justify-center whitespace-nowrap rounded border px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm dark:border-primary/10",e),...t}));R2.displayName=B2.displayName;const $2=je.forwardRef(({className:e,...t},r)=>s.jsx(P2,{ref:r,className:Ve("w-full ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));$2.displayName=P2.displayName;const Eg="horizontal",yB=["horizontal","vertical"],L2=h.forwardRef((e,t)=>{const{decorative:r,orientation:n=Eg,...a}=e,o=_2(n)?n:Eg,l=r?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return h.createElement(St.div,we({"data-orientation":o},l,a,{ref:t}))});L2.propTypes={orientation(e,t,r){const n=e[t],a=String(n);return n&&!_2(n)?new Error(CB(a,r)):null}};function CB(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:
224
224
  - horizontal
225
225
  - vertical
226
226
 
227
- Defaulting to \`${Eg}\`.`}function _2(e){return yB.includes(e)}const W2=L2,V2=je.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},a)=>s.jsx(W2,{ref:a,decorative:r,orientation:t,className:Ve("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));V2.displayName=W2.displayName;const H2="ToastProvider",[Dg,wB,EB]=Gc("Toast"),[z2,BN]=Dn("Toast",[EB]),[DB,Hd]=z2(H2),G2=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:a="right",swipeThreshold:o=50,children:i}=e,[l,u]=h.useState(null),[c,m]=h.useState(0),p=h.useRef(!1),x=h.useRef(!1);return h.createElement(Dg.Provider,{scope:t},h.createElement(DB,{scope:t,label:r,duration:n,swipeDirection:a,swipeThreshold:o,toastCount:c,viewport:l,onViewportChange:u,onToastAdd:h.useCallback(()=>m(C=>C+1),[]),onToastRemove:h.useCallback(()=>m(C=>C-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:x},i))};G2.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${H2}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const SB="ToastViewport",AB=["F8"],Sg="toast.viewportPause",Ag="toast.viewportResume",FB=h.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=AB,label:a="Notifications ({hotkey})",...o}=e,i=Hd(SB,r),l=wB(r),u=h.useRef(null),c=h.useRef(null),m=h.useRef(null),p=h.useRef(null),x=Kt(t,p,i.onViewportChange),C=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=i.toastCount>0;h.useEffect(()=>{const A=S=>{var j;n.every(L=>S[L]||S.code===L)&&((j=p.current)===null||j===void 0||j.focus())};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[n]),h.useEffect(()=>{const A=u.current,S=p.current;if(E&&A&&S){const j=()=>{if(!i.isClosePausedRef.current){const z=new CustomEvent(Sg);S.dispatchEvent(z),i.isClosePausedRef.current=!0}},O=()=>{if(i.isClosePausedRef.current){const z=new CustomEvent(Ag);S.dispatchEvent(z),i.isClosePausedRef.current=!1}},L=z=>{!A.contains(z.relatedTarget)&&O()},M=()=>{A.contains(document.activeElement)||O()};return A.addEventListener("focusin",j),A.addEventListener("focusout",L),A.addEventListener("pointermove",j),A.addEventListener("pointerleave",M),window.addEventListener("blur",j),window.addEventListener("focus",O),()=>{A.removeEventListener("focusin",j),A.removeEventListener("focusout",L),A.removeEventListener("pointermove",j),A.removeEventListener("pointerleave",M),window.removeEventListener("blur",j),window.removeEventListener("focus",O)}}},[E,i.isClosePausedRef]);const v=h.useCallback(({tabbingDirection:A})=>{const j=l().map(O=>{const L=O.ref.current,M=[L,...HB(L)];return A==="forwards"?M:M.reverse()});return(A==="forwards"?j.reverse():j).flat()},[l]);return h.useEffect(()=>{const A=p.current;if(A){const S=j=>{const O=j.altKey||j.ctrlKey||j.metaKey;if(j.key==="Tab"&&!O){const oe=document.activeElement,J=j.shiftKey;if(j.target===A&&J){var M;(M=c.current)===null||M===void 0||M.focus();return}const Q=v({tabbingDirection:J?"backwards":"forwards"}),ce=Q.findIndex(N=>N===oe);if(Fg(Q.slice(ce+1)))j.preventDefault();else{var z,H;J?(z=c.current)===null||z===void 0||z.focus():(H=m.current)===null||H===void 0||H.focus()}}};return A.addEventListener("keydown",S),()=>A.removeEventListener("keydown",S)}},[l,v]),h.createElement(sD,{ref:u,role:"region","aria-label":a.replace("{hotkey}",C),tabIndex:-1,style:{pointerEvents:E?void 0:"none"}},E&&h.createElement(Z2,{ref:c,onFocusFromOutsideViewport:()=>{const A=v({tabbingDirection:"forwards"});Fg(A)}}),h.createElement(Dg.Slot,{scope:r},h.createElement(St.ol,we({tabIndex:-1},o,{ref:x}))),E&&h.createElement(Z2,{ref:m,onFocusFromOutsideViewport:()=>{const A=v({tabbingDirection:"backwards"});Fg(A)}}))}),jB="ToastFocusProxy",Z2=h.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...a}=e,o=Hd(jB,r);return h.createElement(cp,we({"aria-hidden":!0,tabIndex:0},a,{ref:t,style:{position:"fixed"},onFocus:i=>{var l;const u=i.relatedTarget;!((l=o.viewport)!==null&&l!==void 0&&l.contains(u))&&n()}}))}),zd="Toast",IB="toast.swipeStart",TB="toast.swipeMove",kB="toast.swipeCancel",BB="toast.swipeEnd",PB=h.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:a,onOpenChange:o,...i}=e,[l=!0,u]=Rn({prop:n,defaultProp:a,onChange:o});return h.createElement(sn,{present:r||l},h.createElement(U2,we({open:l},i,{ref:t,onClose:()=>u(!1),onPause:Ur(e.onPause),onResume:Ur(e.onResume),onSwipeStart:at(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:at(e.onSwipeMove,c=>{const{x:m,y:p}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:at(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:at(e.onSwipeEnd,c=>{const{x:m,y:p}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),u(!1)})})))}),[OB,NB]=z2(zd,{onClose(){}}),U2=h.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:a,open:o,onClose:i,onEscapeKeyDown:l,onPause:u,onResume:c,onSwipeStart:m,onSwipeMove:p,onSwipeCancel:x,onSwipeEnd:C,...E}=e,v=Hd(zd,r),[A,S]=h.useState(null),j=Kt(t,N=>S(N)),O=h.useRef(null),L=h.useRef(null),M=a||v.duration,z=h.useRef(0),H=h.useRef(M),oe=h.useRef(0),{onToastAdd:J,onToastRemove:ge}=v,xe=Ur(()=>{var N;(A==null?void 0:A.contains(document.activeElement))&&((N=v.viewport)===null||N===void 0||N.focus()),i()}),Q=h.useCallback(N=>{!N||N===1/0||(window.clearTimeout(oe.current),z.current=new Date().getTime(),oe.current=window.setTimeout(xe,N))},[xe]);h.useEffect(()=>{const N=v.viewport;if(N){const W=()=>{Q(H.current),c==null||c()},ee=()=>{const de=new Date().getTime()-z.current;H.current=H.current-de,window.clearTimeout(oe.current),u==null||u()};return N.addEventListener(Sg,ee),N.addEventListener(Ag,W),()=>{N.removeEventListener(Sg,ee),N.removeEventListener(Ag,W)}}},[v.viewport,M,u,c,Q]),h.useEffect(()=>{o&&!v.isClosePausedRef.current&&Q(M)},[o,M,v.isClosePausedRef,Q]),h.useEffect(()=>(J(),()=>ge()),[J,ge]);const ce=h.useMemo(()=>A?Q2(A):null,[A]);return v.viewport?h.createElement(h.Fragment,null,ce&&h.createElement(MB,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},ce),h.createElement(OB,{scope:r,onClose:xe},Qo.createPortal(h.createElement(Dg.ItemSlot,{scope:r},h.createElement(iD,{asChild:!0,onEscapeKeyDown:at(l,()=>{v.isFocusedToastEscapeKeyDownRef.current||xe(),v.isFocusedToastEscapeKeyDownRef.current=!1})},h.createElement(St.li,we({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":v.swipeDirection},E,{ref:j,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:at(e.onKeyDown,N=>{N.key==="Escape"&&(l==null||l(N.nativeEvent),N.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,xe()))}),onPointerDown:at(e.onPointerDown,N=>{N.button===0&&(O.current={x:N.clientX,y:N.clientY})}),onPointerMove:at(e.onPointerMove,N=>{if(!O.current)return;const W=N.clientX-O.current.x,ee=N.clientY-O.current.y,de=!!L.current,ne=["left","right"].includes(v.swipeDirection),te=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,K=ne?te(0,W):0,se=ne?0:te(0,ee),fe=N.pointerType==="touch"?10:2,Se={x:K,y:se},G={originalEvent:N,delta:Se};de?(L.current=Se,Gd(TB,p,G,{discrete:!1})):K2(Se,v.swipeDirection,fe)?(L.current=Se,Gd(IB,m,G,{discrete:!1}),N.target.setPointerCapture(N.pointerId)):(Math.abs(W)>fe||Math.abs(ee)>fe)&&(O.current=null)}),onPointerUp:at(e.onPointerUp,N=>{const W=L.current,ee=N.target;if(ee.hasPointerCapture(N.pointerId)&&ee.releasePointerCapture(N.pointerId),L.current=null,O.current=null,W){const de=N.currentTarget,ne={originalEvent:N,delta:W};K2(W,v.swipeDirection,v.swipeThreshold)?Gd(BB,C,ne,{discrete:!0}):Gd(kB,x,ne,{discrete:!0}),de.addEventListener("click",te=>te.preventDefault(),{once:!0})}})})))),v.viewport))):null});U2.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${zd}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const MB=e=>{const{__scopeToast:t,children:r,...n}=e,a=Hd(zd,t),[o,i]=h.useState(!1),[l,u]=h.useState(!1);return WB(()=>i(!0)),h.useEffect(()=>{const c=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(c)},[]),l?null:h.createElement(Jc,{asChild:!0},h.createElement(cp,n,o&&h.createElement(h.Fragment,null,a.label," ",r)))},RB=h.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return h.createElement(St.div,we({},n,{ref:t}))}),$B=h.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return h.createElement(St.div,we({},n,{ref:t}))}),LB="ToastAction",X2=h.forwardRef((e,t)=>{const{altText:r,...n}=e;return r?h.createElement(J2,{altText:r,asChild:!0},h.createElement(Y2,we({},n,{ref:t}))):null});X2.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${LB}\``)}};const _B="ToastClose",Y2=h.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,a=NB(_B,r);return h.createElement(J2,{asChild:!0},h.createElement(St.button,we({type:"button"},n,{ref:t,onClick:at(e.onClick,a.onClose)})))}),J2=h.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...a}=e;return h.createElement(St.div,we({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},a,{ref:t}))});function Q2(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),VB(n)){const a=n.ariaHidden||n.hidden||n.style.display==="none",o=n.dataset.radixToastAnnounceExclude==="";if(!a)if(o){const i=n.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...Q2(n))}}),t}function Gd(e,t,r,{discrete:n}){const a=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?Jf(a,o):a.dispatchEvent(o)}const K2=(e,t,r=0)=>{const n=Math.abs(e.x),a=Math.abs(e.y),o=n>a;return t==="left"||t==="right"?o&&n>r:!o&&a>r};function WB(e=()=>{}){const t=Ur(e);xo(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function VB(e){return e.nodeType===e.ELEMENT_NODE}function HB(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Fg(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}const zB=G2,q2=FB,eC=PB,tC=RB,rC=$B,nC=X2,aC=Y2,GB=Qf("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"},severity:{info:"info group text-info-foreground bg-info",warning:"warning group text-warning-foreground bg-warning",error:"error group border-error bg-error text-error-foreground",success:"success group text-success-foreground bg-success",none:""}},defaultVariants:{variant:"default"}}),oC=zB,jg=je.forwardRef(({className:e,...t},r)=>s.jsx(q2,{ref:r,className:Ve("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));jg.displayName=q2.displayName;const Ig=je.forwardRef(({className:e,variant:t,severity:r="none",direction:n,...a},o)=>s.jsx(eC,{ref:o,className:Ve(GB({variant:t,severity:r}),e,n==="rtl"?"p-6 pl-0 pr-10 data-[state=closed]:slide-out-to-left-full":"p-6 pr-8 data-[state=closed]:slide-out-to-right-full"),dir:n,...a}));Ig.displayName=eC.displayName;const iC=je.forwardRef(({className:e,...t},r)=>s.jsx(nC,{ref:r,className:Ve("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50","group-[.info]:border-muted/40 group-[.info]:hover:border-info/30 group-[.info]:hover:bg-info group-[.info]:hover:text-info-foreground group-[.info]:focus:ring-info","group-[.error]:border-muted/40 group-[.error]:hover:border-error/30 group-[.error]:hover:bg-error group-[.error]:hover:text-error-foreground group-[.error]:focus:ring-error","group-[.success]:border-muted/40 group-[.success]:hover:border-success/30 group-[.success]:hover:bg-success group-[.success]:hover:text-success-foreground group-[.success]:focus:ring-success","group-[.warning]:border-muted/40 group-[.warning]:hover:border-warning/30 group-[.warning]:hover:bg-warning group-[.warning]:hover:text-warning-foreground group-[.warning]:focus:ring-warning",e),...t}));iC.displayName=nC.displayName;const Tg=je.forwardRef(({className:e,...t},r)=>s.jsx(aC,{ref:r,className:Ve("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:s.jsx("svg",{"aria-label":"Close Icon","aria-hidden":"true",className:"h-4 w-4",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}));Tg.displayName=aC.displayName;const kg=je.forwardRef(({className:e,...t},r)=>s.jsx(tC,{ref:r,className:Ve("text-sm font-semibold",e),...t}));kg.displayName=tC.displayName;const Bg=je.forwardRef(({className:e,...t},r)=>s.jsx(rC,{ref:r,className:Ve("text-sm opacity-90",e),...t}));Bg.displayName=rC.displayName;const ZB=5,UB=1e5;let Pg=0;function XB(){return Pg=(Pg+1)%Number.MAX_VALUE,Pg.toString()}const Og=new Map,sC=e=>{if(Og.has(e))return;const t=setTimeout(()=>{Og.delete(e),du({type:"REMOVE_TOAST",toastId:e})},UB);Og.set(e,t)},lC=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,ZB)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?sC(r):e.toasts.forEach(n=>{sC(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},Zd=[];let Ud={toasts:[]};function du(e){Ud=lC(Ud,e),Zd.forEach(t=>{t(Ud)})}function uC({...e}){const t=XB(),r=a=>du({type:"UPDATE_TOAST",toast:{...a,id:t}}),n=()=>du({type:"DISMISS_TOAST",toastId:t});return du({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||n()}}}),{id:t,dismiss:n,update:r}}function cC(){const[e,t]=je.useState(Ud);return je.useEffect(()=>(Zd.push(t),()=>{const r=Zd.indexOf(t);r>-1&&Zd.splice(r,1)}),[e]),{...e,toast:uC,dismiss:r=>du({type:"DISMISS_TOAST",toastId:r})}}function YB(e){const{toasts:t}=cC();let r=e.direction==="rtl";return s.jsxs(oC,{swipeDirection:r?"left":"right",children:[t.map(function({id:n,title:a,description:o,action:i,...l}){return s.jsxs(Ig,{direction:e.direction,...l,children:[s.jsxs("div",{className:"grid gap-1 text-start",children:[a&&s.jsx(kg,{children:a}),o&&s.jsx(Bg,{children:o})]}),i,s.jsx(Tg,{})]},n)}),s.jsx(jg,{className:Ve("gap-2",r&&"fixed left-0")})]})}const dC="Dialog",[fC,PN]=Dn(dC),[JB,na]=fC(dC),QB=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,l=h.useRef(null),u=h.useRef(null),[c=!1,m]=Rn({prop:n,defaultProp:a,onChange:o});return h.createElement(JB,{scope:t,triggerRef:l,contentRef:u,contentId:Sn(),titleId:Sn(),descriptionId:Sn(),open:c,onOpenChange:m,onOpenToggle:h.useCallback(()=>m(p=>!p),[m]),modal:i},r)},KB="DialogTrigger",qB=h.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=na(KB,r),o=Kt(t,a.triggerRef);return h.createElement(St.button,we({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Mg(a.open)},n,{ref:o,onClick:at(e.onClick,a.onOpenToggle)}))}),hC="DialogPortal",[eP,pC]=fC(hC,{forceMount:void 0}),tP=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:a}=e,o=na(hC,t);return h.createElement(eP,{scope:t,forceMount:r},h.Children.map(n,i=>h.createElement(sn,{present:r||o.open},h.createElement(Jc,{asChild:!0,container:a},i))))},Ng="DialogOverlay",rP=h.forwardRef((e,t)=>{const r=pC(Ng,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=na(Ng,e.__scopeDialog);return o.modal?h.createElement(sn,{present:n||o.open},h.createElement(nP,we({},a,{ref:t}))):null}),nP=h.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=na(Ng,r);return h.createElement(rp,{as:Ko,allowPinchZoom:!0,shards:[a.contentRef]},h.createElement(St.div,we({"data-state":Mg(a.open)},n,{ref:t,style:{pointerEvents:"auto",...n.style}})))}),fu="DialogContent",aP=h.forwardRef((e,t)=>{const r=pC(fu,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=na(fu,e.__scopeDialog);return h.createElement(sn,{present:n||o.open},o.modal?h.createElement(oP,we({},a,{ref:t})):h.createElement(iP,we({},a,{ref:t})))}),oP=h.forwardRef((e,t)=>{const r=na(fu,e.__scopeDialog),n=h.useRef(null),a=Kt(t,r.contentRef,n);return h.useEffect(()=>{const o=n.current;if(o)return Kh(o)},[]),h.createElement(gC,we({},e,{ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:at(e.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=r.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:at(e.onPointerDownOutside,o=>{const i=o.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&o.preventDefault()}),onFocusOutside:at(e.onFocusOutside,o=>o.preventDefault())}))}),iP=h.forwardRef((e,t)=>{const r=na(fu,e.__scopeDialog),n=h.useRef(!1),a=h.useRef(!1);return h.createElement(gC,we({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,o),!o.defaultPrevented){var l;n.current||(l=r.triggerRef.current)===null||l===void 0||l.focus(),o.preventDefault()}n.current=!1,a.current=!1},onInteractOutside:o=>{var i,l;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const u=o.target;((l=r.triggerRef.current)===null||l===void 0?void 0:l.contains(u))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}}))}),gC=h.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,l=na(fu,r),u=h.useRef(null),c=Kt(t,u);return Vh(),h.createElement(h.Fragment,null,h.createElement(Gh,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:o},h.createElement(zl,we({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Mg(l.open)},i,{ref:c,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),sP="DialogTitle",lP=h.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=na(sP,r);return h.createElement(St.h2,we({id:a.titleId},n,{ref:t}))}),uP="DialogDescription",cP=h.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=na(uP,r);return h.createElement(St.p,we({id:a.descriptionId},n,{ref:t}))}),dP="DialogClose",fP=h.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=na(dP,r);return h.createElement(St.button,we({type:"button"},n,{ref:t,onClick:at(e.onClick,()=>a.onOpenChange(!1))}))});function Mg(e){return e?"open":"closed"}const hP=QB,pP=qB,mC=tP,vC=rP,bC=aP,xC=lP,yC=cP,gP=fP,mP=hP,vP=pP,CC=({className:e,...t})=>s.jsx(mC,{className:Ve(e),...t});CC.displayName=mC.displayName;const wC=je.forwardRef(({className:e,...t},r)=>s.jsx(vC,{ref:r,className:Ve("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));wC.displayName=vC.displayName;const EC=je.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(CC,{children:[s.jsx(wC,{}),s.jsxs(bC,{ref:n,className:Ve("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",e),...r,children:[t,s.jsxs(gP,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[s.jsx("svg",{"aria-label":"Close Icon","aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));EC.displayName=bC.displayName;const DC=({className:e,...t})=>s.jsx("div",{className:Ve("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});DC.displayName="DialogHeader";const SC=({className:e,...t})=>s.jsx("div",{className:Ve("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});SC.displayName="DialogFooter";const AC=je.forwardRef(({className:e,...t},r)=>s.jsx(xC,{ref:r,className:Ve("text-lg font-semibold leading-none tracking-tight",e),...t}));AC.displayName=xC.displayName;const FC=je.forwardRef(({className:e,...t},r)=>s.jsx(yC,{ref:r,className:Ve("text-sm text-muted-foreground",e),...t}));FC.displayName=yC.displayName;const bP=e=>s.jsx("div",{children:e.children}),xP=e=>s.jsx("div",{className:"fixed bottom-0 top-auto left-0 m-0 w-full max-w-full p-1",children:s.jsx("div",{className:"flex w-full flex-row items-center justify-evenly rounded bg-gray-200",children:e.appBarContent.map((t,r)=>s.jsxs("div",{className:"m-1 flex h-full w-full flex-col items-center justify-center rounded p-2 transition-all hover:cursor-pointer hover:bg-buttonPrimary-700 hover:text-white",onClick:t.action,children:[s.jsx("div",{children:t.icon}),s.jsx("div",{className:"mt-2 text-sm",children:t.label})]},r))})}),Rg=(e=!1)=>{const[t,r]=h.useState(e);return{isOpen:t,onOpen:()=>r(!0),onClose:()=>r(!1)}},Xd=()=>{const[e,t]=h.useState(window==null?void 0:window.innerWidth),r=()=>{t(window==null?void 0:window.innerWidth)};return h.useEffect(()=>{if(typeof window<"u")return window==null||window.addEventListener("resize",r),()=>{window==null||window.removeEventListener("resize",r)}},[]),e},yP=({direction:e="rtl",navigationSize:t="md",...r})=>{var m;const[n,a]=h.useState(!1);h.useState(!1),Rg(!1);const o=h.useRef(null);h.useRef(null);let i;typeof window<"u"?i=Xd():i=1200;const[l,u]=h.useState(!1);h.useEffect(()=>{const p=x=>{o.current&&!o.current.contains(x.target)&&!l&&a(!1)};return document.addEventListener("click",p,!0),()=>{document.removeEventListener("click",p,!0)}},[l]);let c={sm:"h-10",md:"",lg:"h-24"};return s.jsxs("div",{className:"h-full w-full",children:[s.jsxs("div",{className:$e("z-30 flex w-auto select-none flex-row items-start justify-between bg-layoutPrimary-500 transition-all",c[t],"rounded p-3 ",n?"h-44":"h-14",r.stickyNav?"fixed left-4 right-4 top-4":"",e==="rtl"?"flex-row":"flex-row-reverse"),children:[i>600?s.jsx("div",{className:"flex flex-row h-8 items-center gap-4 px-3",children:(m=r.navItems)==null?void 0:m.map(({label:p},x)=>s.jsx("div",{onClick:()=>a(!n),className:"cursor-pointer rounded bg-none text-gray-600 transition-all hover:text-black",children:p},x))}):s.jsxs("div",{className:"flex items-center justify-center",children:[s.jsxs("div",{onClick:()=>a(!n),className:"cursor-pointer rounded p-1 transition-all hover:bg-gray-100",children:[s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1.6em",width:"1.6em",children:s.jsx("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"})})," "]}),r.pageTitle?s.jsx("div",{children:r.pageTitle}):s.jsx("div",{})]}),s.jsx("div",{className:"h-full",children:s.jsx("img",{className:"h-full max-h-8 ",src:`https://sikka-images.s3.ap-southeast-1.amazonaws.com/seera/seera-horizontal-wordmark-${e==="rtl"?"ar":"en"}-white.svg`})})]}),s.jsx("div",{className:$e(" relative top-14"),children:r.children})]})},jC="Collapsible",[CP,IC]=Dn(jC),[wP,$g]=CP(jC),EP=h.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:a,disabled:o,onOpenChange:i,...l}=e,[u=!1,c]=Rn({prop:n,defaultProp:a,onChange:i});return h.createElement(wP,{scope:r,disabled:o,contentId:Sn(),open:u,onOpenToggle:h.useCallback(()=>c(m=>!m),[c])},h.createElement(St.div,we({"data-state":Lg(u),"data-disabled":o?"":void 0},l,{ref:t})))}),DP="CollapsibleTrigger",SP=h.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,a=$g(DP,r);return h.createElement(St.button,we({type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":Lg(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled},n,{ref:t,onClick:at(e.onClick,a.onOpenToggle)}))}),TC="CollapsibleContent",AP=h.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=$g(TC,e.__scopeCollapsible);return h.createElement(sn,{present:r||a.open},({present:o})=>h.createElement(FP,we({},n,{ref:t,present:o})))}),FP=h.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:a,...o}=e,i=$g(TC,r),[l,u]=h.useState(n),c=h.useRef(null),m=Kt(t,c),p=h.useRef(0),x=p.current,C=h.useRef(0),E=C.current,v=i.open||l,A=h.useRef(v),S=h.useRef();return h.useEffect(()=>{const j=requestAnimationFrame(()=>A.current=!1);return()=>cancelAnimationFrame(j)},[]),xo(()=>{const j=c.current;if(j){S.current=S.current||{transitionDuration:j.style.transitionDuration,animationName:j.style.animationName},j.style.transitionDuration="0s",j.style.animationName="none";const O=j.getBoundingClientRect();p.current=O.height,C.current=O.width,A.current||(j.style.transitionDuration=S.current.transitionDuration,j.style.animationName=S.current.animationName),u(n)}},[i.open,n]),h.createElement(St.div,we({"data-state":Lg(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!v},o,{ref:m,style:{"--radix-collapsible-content-height":x?`${x}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...e.style}}),v&&a)});function Lg(e){return e?"open":"closed"}const jP=EP,IP=SP,TP=AP,Fo="Accordion",kP=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[_g,BP,PP]=Gc(Fo),[Yd,MN]=Dn(Fo,[PP,IC]),Wg=IC(),kC=h.forwardRef((e,t)=>{const{type:r,...n}=e,a=n,o=n;return h.createElement(_g.Provider,{scope:e.__scopeAccordion},r==="multiple"?h.createElement(RP,we({},o,{ref:t})):h.createElement(MP,we({},a,{ref:t})))});kC.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[BC,OP]=Yd(Fo),[PC,NP]=Yd(Fo,{collapsible:!1}),MP=h.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},collapsible:o=!1,...i}=e,[l,u]=Rn({prop:r,defaultProp:n,onChange:a});return h.createElement(BC,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:u,onItemClose:h.useCallback(()=>o&&u(""),[o,u])},h.createElement(PC,{scope:e.__scopeAccordion,collapsible:o},h.createElement(OC,we({},i,{ref:t}))))}),RP=h.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},...o}=e,[i=[],l]=Rn({prop:r,defaultProp:n,onChange:a}),u=h.useCallback(m=>l((p=[])=>[...p,m]),[l]),c=h.useCallback(m=>l((p=[])=>p.filter(x=>x!==m)),[l]);return h.createElement(BC,{scope:e.__scopeAccordion,value:i,onItemOpen:u,onItemClose:c},h.createElement(PC,{scope:e.__scopeAccordion,collapsible:!0},h.createElement(OC,we({},o,{ref:t}))))}),[$P,Jd]=Yd(Fo),OC=h.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:a,orientation:o="vertical",...i}=e,l=h.useRef(null),u=Kt(l,t),c=BP(r),p=Zc(a)==="ltr",x=at(e.onKeyDown,C=>{var E;if(!kP.includes(C.key))return;const v=C.target,A=c().filter(J=>{var ge;return!((ge=J.ref.current)!==null&&ge!==void 0&&ge.disabled)}),S=A.findIndex(J=>J.ref.current===v),j=A.length;if(S===-1)return;C.preventDefault();let O=S;const L=0,M=j-1,z=()=>{O=S+1,O>M&&(O=L)},H=()=>{O=S-1,O<L&&(O=M)};switch(C.key){case"Home":O=L;break;case"End":O=M;break;case"ArrowRight":o==="horizontal"&&(p?z():H());break;case"ArrowDown":o==="vertical"&&z();break;case"ArrowLeft":o==="horizontal"&&(p?H():z());break;case"ArrowUp":o==="vertical"&&H();break}const oe=O%j;(E=A[oe].ref.current)===null||E===void 0||E.focus()});return h.createElement($P,{scope:r,disabled:n,direction:a,orientation:o},h.createElement(_g.Slot,{scope:r},h.createElement(St.div,we({},i,{"data-orientation":o,ref:u,onKeyDown:n?void 0:x}))))}),Vg="AccordionItem",[LP,Hg]=Yd(Vg),_P=h.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...a}=e,o=Jd(Vg,r),i=OP(Vg,r),l=Wg(r),u=Sn(),c=n&&i.value.includes(n)||!1,m=o.disabled||e.disabled;return h.createElement(LP,{scope:r,open:c,disabled:m,triggerId:u},h.createElement(jP,we({"data-orientation":o.orientation,"data-state":MC(c)},l,a,{ref:t,disabled:m,open:c,onOpenChange:p=>{p?i.onItemOpen(n):i.onItemClose(n)}})))}),WP="AccordionHeader",VP=h.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,a=Jd(Fo,r),o=Hg(WP,r);return h.createElement(St.h3,we({"data-orientation":a.orientation,"data-state":MC(o.open),"data-disabled":o.disabled?"":void 0},n,{ref:t}))}),NC="AccordionTrigger",HP=h.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,a=Jd(Fo,r),o=Hg(NC,r),i=NP(NC,r),l=Wg(r);return h.createElement(_g.ItemSlot,{scope:r},h.createElement(IP,we({"aria-disabled":o.open&&!i.collapsible||void 0,"data-orientation":a.orientation,id:o.triggerId},l,n,{ref:t})))}),zP="AccordionContent",GP=h.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,a=Jd(Fo,r),o=Hg(zP,r),i=Wg(r);return h.createElement(TP,we({role:"region","aria-labelledby":o.triggerId,"data-orientation":a.orientation},i,n,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function MC(e){return e?"open":"closed"}const ZP=kC,UP=_P,XP=VP,RC=HP,$C=GP,YP=ZP;let LC="flex flex-1 items-center select-none cursor-pointer bg-primary-foreground rounded justify-between p-2 px-3 font-medium transition-all [&[data-state=open]>svg]:-rotate-90";const _C=je.forwardRef(({className:e,...t},r)=>s.jsx(UP,{ref:r,className:Ve(e),...t}));_C.displayName="AccordionItem";const WC=je.forwardRef(({className:e,showArrow:t,children:r,...n},a)=>s.jsx(XP,{className:"flex",children:s.jsxs(RC,{ref:a,className:Ve(LC,e),...n,children:[r,t&&s.jsx("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",className:"h-4 w-4 shrink-0 rotate-90 transition-transform duration-200",children:s.jsx("path",{d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"})})]})}));WC.displayName=RC.displayName;const VC=je.forwardRef(({className:e,children:t,...r},n)=>s.jsx($C,{ref:n,className:Ve("overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",e),...r,children:s.jsx("div",{children:t})}));VC.displayName=$C.displayName;const HC=({title:e,items:t,selectedItem:r,openedItem:n,setOpenedItem:a,onItemClick:o,onSubItemClick:i,direction:l,isOpen:u})=>s.jsxs("div",{children:[e&&s.jsx("h3",{className:"mb-1 font-bold",children:e}),s.jsx("ul",{className:"flex flex-col gap-2",children:s.jsx(YP,{value:n,type:"single",onValueChange:c=>{a(c)},collapsible:!0,className:"flex flex-col gap-1",children:t.map((c,m)=>s.jsx(zC,{isOpen:u,selectedItem:r,direction:l,item:c,onItemClick:o,onSubItemClick:i},m))})})]}),zC=({item:e,onItemClick:t,onSubItemClick:r,direction:n,isOpen:a=!0,...o})=>{const i=l=>o.selectedItem===l?"bg-primary text-primary-foreground cursor-default":"hover:bg-primary/10";return e.subitems?s.jsxs(_C,{value:e.value,className:"overflow-x-clip",dir:n,children:[s.jsx(WC,{className:Ve("overflow-x-clip",o.selectedItem===e.value?"cursor-default bg-primary text-primary-foreground":"hover:bg-primary/10",e.subitems&&e.subitems.some(l=>o.selectedItem===l.value)?"bg-primary text-primary-foreground hover:bg-primary":""),showArrow:a,children:s.jsxs("div",{className:Ve(!a&&"py-1","flex w-fit flex-row items-center gap-2"),children:[e.icon,a&&s.jsx("span",{className:Ve("transition-all ",a?"opacity-100":"opacity-0"),children:e.label})]})}),e.subitems&&s.jsx(VC,{className:" mt-1 h-full rounded ",children:s.jsx("div",{className:Ve("flex h-full flex-col gap-2 bg-foreground/5 p-1"),children:e.subitems.map((l,u)=>s.jsxs("li",{onClick:c=>{c.stopPropagation(),l.onClick(),r&&r([e.value,l.value])},className:Ve("flex h-full cursor-pointer flex-row items-center gap-2 rounded p-2 transition-all",i(l.value)),children:[l.icon,l.label]},u))})})]}):s.jsx("div",{dir:n,onClick:()=>{e.onClick(),t&&t([e.value])},className:Ve(LC,i(e.value),"overflow-x-clip "),children:s.jsxs("div",{className:"flex flex-row items-center gap-2 ",children:[e.icon,s.jsx("span",{className:Ve("whitespace-nowrap transition-all",a?"opacity-100":"opacity-0"),children:e.label})]})})},JP=({direction:e="ltr",drawerSize:t="md",onSettingsClick:r,DrawerFooterActions:n,currentPage:a,clickedItem:o,design:i="default",...l})=>{var M,z;let u=56,c=200,m={opened:{sm:"100",md:c,lg:"250"},closed:{sm:u,md:u,lg:u}};const p=h.useRef(null),x=e==="rtl",[C,E]=h.useState("");h.useState(a);let v;typeof window<"u"?v=Xd():v=1200;const[A,S]=h.useState(()=>v>600?l.keepDrawerOpen!==void 0?l.keepDrawerOpen:!0:!1),[j,O]=h.useState(v>600);let L=v>600?m[A?"opened":"closed"][t]:0;return h.useEffect(()=>{const H=oe=>{p.current&&!p.current.contains(oe.target)&&!A&&O(!1)};return document.addEventListener("click",H,!0),()=>{document.removeEventListener("click",H,!0)}},[A]),s.jsxs("div",{className:"fixed left-0",children:[l.topBar&&s.jsxs("div",{className:$e("fixed left-0 right-0 top-0 z-30 flex h-14 w-full items-center justify-between bg-primary-foreground p-2",x?"flex-row-reverse":"flex-row"),children:[v>600?s.jsx("div",{className:$e("dark:text-white",x?[v>600?"mr-14":"mr-2",A?"mr-40":""]:[v>600?"ml-14":"ml-2",A?"ml-40":""]),style:x?{marginRight:`${m[A?"opened":"closed"][t]}px`}:{marginLeft:`${m[A?"opened":"closed"][t]}px`},children:l.pageTitle}):s.jsxs("div",{dir:e,className:"flex items-center justify-center gap-0.5",children:[s.jsx("div",{onClick:()=>O(!0),className:"z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100",children:s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:0,viewBox:"0 0 20 20","aria-hidden":"true",height:"1.6em",width:"1.6em",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"})})}),l.pageTitle?s.jsx("div",{className:"text-sm",children:l.pageTitle}):s.jsx("div",{})]}),s.jsxs("div",{className:$e("flex gap-2 dark:text-white",x?"flex-row-reverse":"flex-row"),children:[v>600?s.jsxs("div",{className:x?"text-left text-xs":"text-right text-xs",children:[s.jsx("div",{className:"font-bold",children:l.username})," ",s.jsx("div",{children:l.email})]}):null,s.jsx(Xl,{triggerClassname:"mx-2",align:"end",alignOffset:8,side:"bottom",sideOffset:5,width:l.profileMenuWidth,direction:x?"rtl":"ltr",items:l.profileMenuItems,onItemSelect:H=>console.log("selecting item ",H),trigger:s.jsx("div",{className:"relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600",children:l.avatarImage?s.jsx("img",{src:l.avatarImage,alt:"User Avatar"}):s.jsx("svg",{"aria-label":"Avatar Icon",className:"absolute -left-1 h-10 w-10 text-gray-400",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})})})})]})]}),s.jsxs("div",{className:$e("fixed z-40 flex flex-col justify-between overflow-x-clip transition-all",i==="floating"?x?"right-5 top-5":"bottom-5 left-5 top-5":x?"right-0 top-0 h-full":"left-0 top-0 h-full"),style:{width:v>600?j?`${m.opened[t]}px`:`${m.closed[t]}px`:j?`${m.opened[t]}px`:"0px"},onMouseEnter:()=>{O(!0)},onMouseLeave:()=>{A?O(!0):(E(""),O(!1))},ref:p,children:[s.jsxs("div",{dir:e,className:"fixed z-50 mb-2 flex h-14 w-full flex-row items-center justify-center bg-primary-foreground transition-all",style:{width:v>600?`${j?c:56}px`:`${j?c:0}px`},children:[s.jsx("img",{className:$e("h-9 opacity-0 transition-all",j?"visible opacity-100":"invisible opacity-0"),src:l.logoLink}),v>600?s.jsx("img",{className:$e("fixed h-9 transition-all",i==="floating"?x?"right-7.5 top-7":"left-7.5 top-7":x?"right-2.5 top-2.5":"left-2.5 top-2.5",j?"invisible opacity-0":"visible opacity-100"),src:l.logoSymbol}):null]}),s.jsx("div",{className:$e("fixed bottom-14 bg-primary-foreground p-2 py-2 transition-all",i==="floating"?"top-[76px]":"top-14",j?"overflow-auto":"overflow-hidden"),style:{height:i==="floating"?"calc(100% - 152px)":"calc(100% - 112px)",width:v>600?`${j?c:56}px`:`${j?c:0}px`},children:s.jsx(HC,{direction:e,onItemClick:H=>{o&&o(H)},onSubItemClick:H=>{o&&o(H)},selectedItem:a,openedItem:C,setOpenedItem:H=>E(H),isOpen:j,items:l.drawerItems})}),s.jsxs("div",{className:$e("fixed flex h-14 w-full items-center justify-center gap-2 overflow-clip bg-primary-foreground transition-all",e==="rtl"?"flex-row-reverse":"flex-row",i==="floating"?"bottom-5":"bottom-0"),style:{width:v>600?`${j?c:56}px`:`${j?c:0}px`},children:[n&&j?s.jsx(s.Fragment,{children:n}):null,v>600&&j?s.jsx(ms,{side:"left",delayDuration:500,content:A?((M=l.texts)==null?void 0:M.collapseSidebar)||"Collapse Sidebar":((z=l.texts)==null?void 0:z.expandSidebar)||"Expand Sidebar",children:s.jsx(qe,{variant:"light",onClick:()=>{S(!A),l.onDrawerExpand&&l.onDrawerExpand(A)},size:"smallIcon",children:s.jsx("svg",{className:$e("h-6 w-6 shrink-0 text-primary transition-all disabled:bg-gray-200 ",A?x?"-rotate-90":"rotate-90":x?"rotate-90":"-rotate-90"),fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})})}):null]})]}),s.jsx("div",{className:"fixed overflow-y-auto transition-all",style:i==="floating"?x?{height:`calc(100% - ${l.topBar?"56":"0"}px)`,width:`calc(100% - ${L+20}px)`,left:"0px",top:l.topBar?"56px":"0px"}:{height:`calc(100% - ${l.topBar?"56":"0"}px)`,width:`calc(100% - ${L+20}px)`,left:`${L+20}px`,top:l.topBar?"56px":"0px"}:x?{height:`calc(100% - ${l.topBar?"56":"0"}px)`,width:`calc(100% - ${L}px)`,left:"0px",top:l.topBar?"56px":"0px"}:{height:`calc(100% - ${l.topBar?"56":"0"}px)`,width:`calc(100% - ${L}px)`,left:`${L}px`,top:l.topBar?"56px":"0px"},children:l.children})]})};var GC={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ZC=h.createContext&&h.createContext(GC),jo=globalThis&&globalThis.__assign||function(){return jo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},jo.apply(this,arguments)},QP=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function UC(e){return e&&e.map(function(t,r){return h.createElement(t.tag,jo({key:r},t.attr),UC(t.child))})}function hu(e){return function(t){return h.createElement(KP,jo({attr:jo({},e.attr)},t),UC(e.child))}}function KP(e){var t=function(r){var n=e.attr,a=e.size,o=e.title,i=QP(e,["attr","size","title"]),l=a||r.size||"1em",u;return r.className&&(u=r.className),e.className&&(u=(u?u+" ":"")+e.className),h.createElement("svg",jo({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,i,{className:u,style:jo(jo({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),o&&h.createElement("title",null,o),e.children)};return ZC!==void 0?h.createElement(ZC.Consumer,null,function(r){return t(r)}):t(GC)}function qP(e){return hu({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M510.846 392.673c-5.211 12.157-27.239 21.089-67.36 27.318-2.064 2.786-3.775 14.686-6.507 23.956-1.625 5.566-5.623 8.869-12.128 8.869l-.297-.005c-9.395 0-19.203-4.323-38.852-4.323-26.521 0-35.662 6.043-56.254 20.588-21.832 15.438-42.771 28.764-74.027 27.399-31.646 2.334-58.025-16.908-72.871-27.404-20.714-14.643-29.828-20.582-56.241-20.582-18.864 0-30.736 4.72-38.852 4.72-8.073 0-11.213-4.922-12.422-9.04-2.703-9.189-4.404-21.263-6.523-24.13-20.679-3.209-67.31-11.344-68.498-32.15a10.627 10.627 0 0 1 8.877-11.069c69.583-11.455 100.924-82.901 102.227-85.934.074-.176.155-.344.237-.515 3.713-7.537 4.544-13.849 2.463-18.753-5.05-11.896-26.872-16.164-36.053-19.796-23.715-9.366-27.015-20.128-25.612-27.504 2.437-12.836 21.725-20.735 33.002-15.453 8.919 4.181 16.843 6.297 23.547 6.297 5.022 0 8.212-1.204 9.96-2.171-2.043-35.936-7.101-87.29 5.687-115.969C158.122 21.304 229.705 15.42 250.826 15.42c.944 0 9.141-.089 10.11-.089 52.148 0 102.254 26.78 126.723 81.643 12.777 28.65 7.749 79.792 5.695 116.009 1.582.872 4.357 1.942 8.599 2.139 6.397-.286 13.815-2.389 22.069-6.257 6.085-2.846 14.406-2.461 20.48.058l.029.01c9.476 3.385 15.439 10.215 15.589 17.87.184 9.747-8.522 18.165-25.878 25.018-2.118.835-4.694 1.655-7.434 2.525-9.797 3.106-24.6 7.805-28.616 17.271-2.079 4.904-1.256 11.211 2.46 18.748.087.168.166.342.239.515 1.301 3.03 32.615 74.46 102.23 85.934 6.427 1.058 11.163 7.877 7.725 15.859z"}}]})(e)}function eO(e){return hu({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"}}]})(e)}function XC(e){return hu({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"}}]})(e)}const tO=({direction:e="rtl",drawerSize:t="md",onSettingsClick:r,...n})=>{var A;const[a,o]=h.useState(!1),[i,l]=h.useState("");Rg(!1);const[u,c]=h.useState(!1),m=h.useRef(null),p=e==="rtl";let x;typeof window<"u"?x=Xd():x=1200,h.useEffect(()=>{const S=j=>{m.current&&!m.current.contains(j.target)&&!u&&o(!1)};return document.addEventListener("click",S,!0),()=>{document.removeEventListener("click",S,!0)}},[u]);let C="fixed top-0 z-40 flex h-full flex-col justify-between overflow-x-clip bg-layoutPrimary-500 transition-all",E={opened:{sm:"100",md:"160",lg:"250"},closed:{sm:"56",md:"56",lg:"56"}},v=x>600?E[u?"opened":"closed"][t]:0;return s.jsxs("div",{className:"fixed",children:[n.topBar&&s.jsxs("div",{className:$e("fixed left-0 right-0 top-0 z-30 flex h-14 w-full items-center justify-between bg-layoutPrimary-500 p-2",p?"flex-row-reverse":"flex-row"),children:[x>600?n.pageTitle?s.jsx("div",{className:$e(p?[x>600?"mr-14":"mr-2",u?"mr-40":""]:[x>600?"ml-14":"ml-2",u?"ml-40":""]),style:p?{marginRight:`${E[u?"opened":"closed"][t]}px`}:{marginLeft:`${E[u?"opened":"closed"][t]}px`},children:n.pageTitle}):null:s.jsxs("div",{dir:e,className:"flex items-center justify-center gap-0.5 ",children:[s.jsxs("div",{onClick:()=>o(!0),className:"z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100",children:[s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1.6em",width:"1.6em",children:s.jsx("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"})})," "]}),n.pageTitle?s.jsx("div",{className:"text-sm",children:n.pageTitle}):s.jsx("div",{})]}),s.jsxs("div",{className:$e("flex gap-2",p?"flex-row-reverse":"flex-row"),children:[x>600?s.jsxs("div",{className:$e(p?"text-left text-xs":"text-right text-xs"),children:[s.jsx("div",{className:"font-bold",children:n.username})," ",s.jsx("div",{children:n.email})]}):null,s.jsx(dd,{direction:e,withHeader:!(x>600),headerTitle:x>600?"":n.username,headerSubtitle:x>600?"":n.email,menuItems:n.profileMenuItems,position:"bottom-left",children:s.jsx("div",{className:"relative h-8 w-8 cursor-pointer overflow-hidden rounded-full ring-1 ring-buttonPrimary-500 dark:bg-gray-600",children:s.jsx("svg",{className:"absolute -left-1 h-10 w-10 text-gray-400",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})})})})]})]}),s.jsx("div",{onMouseEnter:()=>{o(!0)},onMouseLeave:()=>o(!!u),ref:m,className:$e(C,E[t],p?"right-0":"left-0"),style:{width:x>600?a?`${E.opened[t]}px`:`${E.closed[t]}px`:a?`${E.opened[t]}px`:"0px"},children:s.jsxs("div",{className:$e("no-scrollbar",n.topBar?"":"mt-2",a?"overflow-auto":"overflow-hidden"),children:[s.jsxs("div",{dir:e,className:$e("fixed z-50 mb-2 flex h-14 flex-row items-center transition-all ",x>600||a?"bg-layoutPrimary-500":"w-0 bg-transparent"),style:{width:x>600?`${E[a?"opened":"closed"][t]-16}px`:"full"},children:[s.jsx("img",{className:$e("fixed top-2.5 h-9 opacity-0 transition-all",p?"right-2.5":"left-2.5",a?"visible opacity-100":"invisible opacity-0"),src:n.logoLink}),x>600?s.jsx("img",{className:$e("fixed top-2.5 h-9 transition-all",p?"right-2.5":"left-2.5",a?"invisible opacity-0":"visible opacity-100"),src:n.logoSymbol}):null]}),s.jsx("div",{className:"mb-10 mt-14",children:(A=n.drawerItems)==null?void 0:A.map((S,j)=>s.jsxs("div",{className:$e("flex flex-col items-stretch justify-center"),children:[S==null?void 0:S.map((O,L)=>{var M,z,H;return s.jsxs("div",{id:"test",className:"flex flex-col",children:[s.jsxs("div",{onClick:()=>{O.subItems?i===O.slug?l(""):l(O.slug):O.action()},className:$e(n.currentPage===O.slug||(M=O.subItems)!=null&&M.find(oe=>oe.slug===n.currentPage)?"bg-buttonPrimary-500 text-white":"hover:bg-layoutPrimary-300","m-2 my-1 flex cursor-pointer flex-row items-center justify-between overflow-x-clip rounded p-2 pl-3 transition-all ",p?"flex-row-reverse pr-3":""),children:[s.jsxs("div",{className:"flex flex-row",dir:e,children:[s.jsx("div",{className:"flex items-center justify-center",children:O.icon}),s.jsx("div",{className:$e("mx-2 whitespace-nowrap text-sm transition-all",a?"opacity-100":"opacity-0"),children:O.label})]}),O.subItems&&s.jsx("div",{className:$e(i&&O.slug===i?"-rotate-90":"rotate-90"),children:s.jsx(XC,{fontSize:11})})]}),O.subItems&&s.jsx("div",{className:$e("m-1 flex cursor-pointer flex-col gap-0 overflow-clip whitespace-nowrap rounded bg-layoutPrimary-300 p-1 transition-all",i==O.slug&&a?"":"my-0 py-0",p?"text-right":"text-left"),style:{height:i==O.slug&&a?6+33*((z=O.subItems)==null?void 0:z.length):0},children:(H=O.subItems)==null?void 0:H.map((oe,J)=>s.jsxs("div",{className:$e("flex flex-row gap-2 overflow-x-clip rounded p-2 px-2 text-xs",p?"text-right":"text-left",n.currentPage===oe.slug?"bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500":"hover:bg-layoutPrimary-500"),dir:e,onClick:()=>{oe.action()},children:[s.jsx("div",{className:"flex items-center justify-center",children:oe.icon}),s.jsx("div",{className:"flex flex-row justify-between",children:oe.label})]},J))})]},L)}),j!==n.drawerItems.length-1&&s.jsx("div",{className:"my-2 h-[1px] w-10/12 self-center bg-buttonPrimary-500 text-center "})]},j))}),a&&s.jsxs("div",{className:$e("fixed bottom-0 flex flex-row items-center bg-layoutPrimary-500 p-4 transition-all",a?"bg-layoutPrimary-500 ":"bg-red-500",r?"justify-between":"justify-end",e==="rtl"?"right-0":"left-0"),style:{width:`${E[a?"opened":"closed"][t]-16}px`},children:[r&&s.jsx("div",{className:" cursor-pointer rounded p-2 transition-all hover:bg-layoutPrimary-700",onClick:()=>r(),children:s.jsxs("svg",{"aria-label":"Settings Icon",stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:"1em",width:"1em",children:[s.jsx("circle",{cx:"12",cy:"12",r:"3"}),s.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})]})}),x>600?s.jsx("div",{className:$e("w-fit transition-all"),style:p?{right:`${E[a?"opened":"closed"][t]-35}px`}:{left:`${E[a?"opened":"closed"][t]-35}px`},children:s.jsx("div",{dir:e,className:$e("relative left-0 top-0 transition-all",a?" opacity-100":" opacity-0"),children:s.jsx("div",{onClick:()=>c(!u),className:"w-fit cursor-pointer rounded bg-gray-300 p-2 transition-all hover:bg-gray-400",children:s.jsx(XC,{fontSize:14,className:$e("transition-all",p?u?"rotate-0":"rotate-180":u?"rotate-180":"rotate-0")})})})}):null]})]})}),s.jsx("div",{className:"fixed overflow-y-auto",style:p?{height:`calc(100% - ${n.topBar?"56":"0"}px)`,width:`calc(100% - ${v}px)`,left:"0px",top:n.topBar?"56px":"0px"}:{height:`calc(100% - ${n.topBar?"56":"0"}px)`,width:`calc(100% - ${v}px)`,left:`${v}px`,top:n.topBar?"56px":"0px"},children:n.children})]})},rO=({direction:e="rtl",drawerSize:t="md",onSettingsClick:r,DrawerFooterActions:n,...a})=>{var S,j,O;const[o,i]=h.useState(!1),[l,u]=h.useState("");Rg(!1);const[c,m]=h.useState(!1),p=h.useRef(null),x=e==="rtl";let C;typeof window<"u"?C=Xd():C=1200,h.useEffect(()=>{const L=M=>{p.current&&!p.current.contains(M.target)&&!c&&i(!1)};return document.addEventListener("click",L,!0),()=>{document.removeEventListener("click",L,!0)}},[c]);let E=200,v={opened:{sm:"100",md:E,lg:"250"},closed:{sm:"56",md:"56",lg:"56"}},A=C>600?v[c?"opened":"closed"][t]:0;return s.jsxs("div",{className:"fixed left-0",children:[a.topBar&&s.jsxs("div",{className:$e("fixed left-0 right-0 top-0 z-30 flex h-14 w-full items-center justify-between bg-primary-foreground p-2",x?"flex-row-reverse":"flex-row"),children:[C>600?s.jsx("div",{className:$e("dark:text-white",x?[C>600?"mr-14":"mr-2",c?"mr-40":""]:[C>600?"ml-14":"ml-2",c?"ml-40":""]),style:x?{marginRight:`${v[c?"opened":"closed"][t]}px`}:{marginLeft:`${v[c?"opened":"closed"][t]}px`},children:a.pageTitle}):s.jsxs("div",{dir:e,className:"flex items-center justify-center gap-0.5",children:[s.jsx("div",{onClick:()=>i(!0),className:"z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100",children:s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1.6em",width:"1.6em",children:s.jsx("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"})})}),a.pageTitle?s.jsx("div",{className:"text-sm",children:a.pageTitle}):s.jsx("div",{})]}),s.jsxs("div",{className:$e("flex gap-2 dark:text-white",x?"flex-row-reverse":"flex-row"),children:[C>600?s.jsxs("div",{className:x?"text-left text-xs":"text-right text-xs",children:[s.jsx("div",{className:"font-bold",children:a.username})," ",s.jsx("div",{children:a.email})]}):null,s.jsx(Xl,{triggerClassname:"mx-2",align:"end",alignOffset:8,side:"bottom",sideOffset:5,direction:x?"rtl":"ltr",trigger:s.jsx("div",{className:"relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600",children:s.jsx(nO,{})}),items:a.profileMenuItems,onItemSelect:L=>console.log("selecting item ",L)})]})]}),s.jsxs("div",{className:$e("fixed top-0 z-40 flex h-full flex-col justify-between overflow-x-clip transition-all",x?"right-0":"left-0"),style:{width:C>600?o?`${v.opened[t]}px`:`${v.closed[t]}px`:o?`${v.opened[t]}px`:"0px"},onMouseEnter:()=>{i(!0)},onMouseLeave:()=>i(!!c),ref:p,children:[s.jsxs("div",{dir:e,className:$e("fixed z-50 mb-2 flex h-14 w-full flex-row items-center justify-center bg-primary-foreground transition-all"),style:{width:C>600?`${o?E:56}px`:`${o?E:0}px`},children:[s.jsx("img",{className:$e("h-9 opacity-0 transition-all",o?"visible opacity-100":"invisible opacity-0"),src:a.logoLink}),C>600?s.jsx("img",{className:$e("fixed top-2.5 h-9 transition-all",x?"right-2.5":"left-2.5",o?"invisible opacity-0":"visible opacity-100"),src:a.logoSymbol}):null]}),s.jsx("div",{className:$e("fixed bottom-14 top-14 bg-primary-foreground py-2 transition-all",o?"overflow-auto":"overflow-hidden"),style:{height:"calc(100% - 112px)",width:C>600?`${o?E:56}px`:`${o?E:0}px`},children:(S=a.drawerItems)==null?void 0:S.map((L,M)=>s.jsxs("div",{className:$e("flex select-none flex-col items-stretch justify-center transition-all"),children:[L==null?void 0:L.map((z,H)=>{var oe,J,ge;return s.jsxs("div",{id:"test",className:"flex flex-col",children:[s.jsxs("div",{onClick:()=>{z.subItems?l===z.slug?u(""):u(z.slug):z.action()},className:$e(a.currentPage===z.slug||(oe=z.subItems)!=null&&oe.find(xe=>xe.slug===a.currentPage)?"bg-primary text-primary-foreground ":"hover:bg-primary/20","my-1 flex cursor-pointer flex-row items-center justify-between overflow-x-clip rounded p-2 pl-3 transition-all ",x?"flex-row-reverse pr-3":"","m-2"),children:[s.jsxs("div",{className:"flex flex-row",dir:e,children:[s.jsx("div",{className:"flex items-center justify-center ",children:z.icon}),s.jsx("div",{className:$e("mx-2 whitespace-nowrap text-sm transition-all",o?"opacity-100":"opacity-0"),children:z.label})]}),z.subItems&&s.jsx(aO,{pointing:l&&z.slug===l?"up":"down"})]}),z.subItems&&s.jsx("div",{className:$e("m-1 mx-2 flex cursor-pointer flex-col gap-[2px] overflow-clip whitespace-nowrap rounded bg-primary/10 p-1 transition-all",l==z.slug&&o?"":"my-0 py-0",x?"text-right":"text-left"),style:{height:l==z.slug&&o?6+35*((J=z.subItems)==null?void 0:J.length):0},children:(ge=z.subItems)==null?void 0:ge.map((xe,Q)=>s.jsxs("div",{className:$e("flex flex-row gap-2 overflow-x-clip rounded-inner p-2 px-2 text-xs",x?"text-right":"text-left",a.currentPage===xe.slug?"bg-primary text-white":"hover:bg-primary-foreground hover:text-primary "),dir:e,onClick:()=>{xe.action()},children:[s.jsx("div",{className:"flex items-center justify-center",children:xe.icon}),s.jsx("div",{className:"flex flex-row justify-between",children:xe.label})]},Q))})]},H)}),M!==a.drawerItems.length-1&&s.jsx("div",{className:"my-2 h-[1px] w-10/12 self-center bg-buttonPrimary-500 bg-red-500 text-center "})]},M))}),s.jsxs("div",{className:$e("fixed bottom-0 flex h-14 w-full items-center justify-center gap-2 overflow-clip bg-primary-foreground transition-all",e==="rtl"?"flex-row-reverse":"flex-row"),style:{width:C>600?`${o?E:56}px`:`${o?E:0}px`},children:[n&&o?s.jsx(s.Fragment,{children:n}):null,C>600&&o?s.jsx(ms,{side:"left",delayDuration:500,content:c?((j=a.texts)==null?void 0:j.collapseSidebar)||"Collapse Sidebar":((O=a.texts)==null?void 0:O.expandSidebar)||"Expand Sidebar",children:s.jsx(qe,{variant:"light",onClick:()=>m(!c),size:"smallIcon",children:s.jsx("svg",{className:$e("h-6 w-6 shrink-0 text-primary transition-all disabled:bg-gray-200 ",c?x?"-rotate-90":"rotate-90":x?"rotate-90":"-rotate-90"),fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})})}):null]})]}),s.jsx("div",{className:"fixed overflow-y-auto",style:x?{height:`calc(100% - ${a.topBar?"56":"0"}px)`,width:`calc(100% - ${A}px)`,left:"0px",top:a.topBar?"56px":"0px"}:{height:`calc(100% - ${a.topBar?"56":"0"}px)`,width:`calc(100% - ${A}px)`,left:`${A}px`,top:a.topBar?"56px":"0px"},children:a.children})]})},nO=()=>s.jsx("svg",{className:"absolute -left-1 h-10 w-10 text-gray-400",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})}),aO=({pointing:e})=>{let t;switch(e){case"right":t="-rotate-90";break;case"left":t="rotate-90";break;case"up":t="-rotate-180";break;case"down":t="rotate-0";break}return s.jsx("svg",{className:$e("h-6 w-6 shrink-0 text-primary-foreground transition-all disabled:bg-gray-200 ",t),fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})},oO=({maxWidth:e="normal",variant:t="contained",centered:r=!1,direction:n="ltr",...a})=>{let o="flex w-full flex-col rounded p-4",i={full:"md:max-w-xl",small:"md:max-w-sm w-1/3 min-w-min",normal:"max-w-sm md:max-w-md"},l={contained:"bg-background border",outlined:"bg-transparent border border-black w-fit",neobrutalism:"shadow-neobrutalism border-4 border-black bg-white"};return s.jsx("div",{className:$e(o,i[e],l[t],r?"flex items-center text-center":""),dir:n,children:a.children})},iO=e=>s.jsx("div",{className:" columns-1 gap-5 sm:columns-2 sm:gap-8 md:columns-3 lg:columns-4 [&>*:not(:first-child)]:mt-8",children:e.children}),sO=({isOpen:e,onClose:t,items:r})=>e?s.jsxs("div",{className:"fixed inset-0 z-40 flex bg-gray-600 bg-opacity-75",children:[s.jsxs("div",{className:"w-1/3 rounded-l-lg bg-gray-800 shadow-2xl",children:[s.jsx("button",{onClick:t,className:"p-4 text-gray-400 hover:text-white focus:text-white focus:outline-none",children:"Close"}),s.jsx("nav",{children:r.map((n,a)=>s.jsx("a",{href:"#",onClick:n.onClick,className:"block p-4 font-bold text-white hover:bg-gray-700 hover:text-gray-400",children:n.label},a))})]}),s.jsx("div",{className:"w-2/3 bg-gray-50"})]}):null;function lO(e){return hu({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z"}}]})(e)}function uO(e){return hu({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z"}}]})(e)}const cO=({variation:e="default",...t})=>{var n;let r={default:"rounded border",minimal:"border-t"};return s.jsxs("div",{className:Ve("flex w-full flex-row items-center justify-between gap-8 rounded bg-background p-4",r[e]),children:[s.jsxs("div",{className:"flex flex-col items-center gap-2",children:[s.jsxs("div",{className:"flex flex-row items-center gap-2",children:[t.logoURL&&s.jsx("div",{children:s.jsx("img",{className:"h-8",src:t.logoURL})}),t.logoText&&s.jsx("div",{children:s.jsx("div",{className:"text-2xl font-bold text-primary",children:t.logoText})})]}),t.copyRights&&t.footerLinks&&s.jsxs("div",{className:"text-xs text-muted-foreground",children:["© ",t.copyRights," ",new Date().getFullYear()]})]}),t.copyRights&&!t.footerLinks&&s.jsxs("div",{className:"text-xs text-muted-foreground",children:["© ",t.copyRights," ",new Date().getFullYear()]}),(n=t.footerLinks)==null?void 0:n.map(a=>s.jsxs("div",{className:"flex w-32 flex-col gap-2",children:[s.jsx("div",{className:"text-lg font-bold",children:a.title}),s.jsx("div",{className:"flex flex-col gap-1",children:a.pages.map(o=>s.jsx("a",{className:"transition-all hover:font-bold",href:o.link,children:o.label}))})]})),t.socialLinks&&s.jsxs("div",{className:"flex flex-row gap-2",children:[t.socialLinks.twitter&&s.jsx(qe,{size:"smallIcon",variant:"ghost",children:s.jsx(uO,{})}),t.socialLinks.instagram&&s.jsx(qe,{size:"smallIcon",variant:"ghost",children:s.jsx(lO,{})}),t.socialLinks.tiktok&&s.jsx(qe,{size:"smallIcon",variant:"ghost",children:s.jsx(eO,{})}),t.socialLinks.snapchat&&s.jsx(qe,{size:"smallIcon",variant:"ghost",children:s.jsx(qP,{})})]})]})},dO=({design:e="floating",...t})=>{const r=h.useRef(null),[n,a]=h.useState(!1);let o={floating:"left-1/2 z-50 w-[calc(100%-2rem)] -translate-x-1/2 lg:max-w-7xl p-4 rounded",default:"w-[calc(100%)] left-0 z-50 right-0 rounded-none p-2"};return s.jsx("div",{ref:r,children:s.jsxs("div",{dir:t.direction,className:$e(o[e],"fixed flex flex-col justify-between border border-gray-100 bg-white shadow-sm transition-all dark:border-gray-600 dark:bg-gray-700 md:flex-row md:gap-4 ",t.position==="top"?e==="floating"?"top-6":"top-0":e==="floating"?"bottom-6":"bottom-0",n?"opacity-0":"opacity-100"),children:[s.jsxs("div",{className:"mb-3 flex w-full flex-col items-center justify-start md:mb-0 md:flex-row md:items-center",children:[s.jsxs("div",{className:$e(t.direction==="rtl"?"md:ml-4 md:border-l md:pl-4":"md:mr-4 md:border-r md:pr-4","mb-2 flex items-center border-gray-200 dark:border-gray-600 md:mb-0 md:mr-4 md:pr-4"),children:[t.logoURL&&s.jsx("img",{src:t.logoURL,className:"mr-2 h-6",alt:"Flowbite Logo"}),t.title&&s.jsx("span",{className:"self-center whitespace-nowrap text-lg font-semibold dark:text-white",children:t.title})]}),t.text&&s.jsx("p",{className:$e("m-0 flex items-center text-center text-sm font-normal text-gray-500 dark:text-gray-400 ",t.direction==="rtl"?"md:text-right":"md:text-left"),children:t.text})]}),t.actionText&&s.jsx("div",{className:$e("flex flex-shrink-0 items-center justify-center ",t.direction==="rtl"?"ml-0 md:ml-10":"mr-0 md:mr-10"),children:s.jsx(qe,{onClick:t.onActionClick,children:t.actionText})}),s.jsxs("button",{type:"button",className:$e("absolute top-2 inline-flex h-9 w-9 items-center justify-center rounded-inner p-1.5 text-gray-400 transition-all hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",t.direction==="rtl"?"left-2":"right-2"),"data-dismiss-target":"#alert-default","aria-label":"Close",onClick:()=>{a(!0),setTimeout(()=>{r.current.removeChild(r.current.children[0])},200)},children:[s.jsx("span",{className:"sr-only",children:"Close"}),s.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})]})]})})};var pu=e=>e.type==="checkbox",Fs=e=>e instanceof Date,Jr=e=>e==null;const YC=e=>typeof e=="object";var yr=e=>!Jr(e)&&!Array.isArray(e)&&YC(e)&&!Fs(e),JC=e=>yr(e)&&e.target?pu(e.target)?e.target.checked:e.target.value:e,fO=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,QC=(e,t)=>e.has(fO(t)),hO=e=>{const t=e.constructor&&e.constructor.prototype;return yr(t)&&t.hasOwnProperty("isPrototypeOf")},zg=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function aa(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(zg&&(e instanceof Blob||e instanceof FileList))&&(r||yr(e)))if(t=r?[]:{},!r&&!hO(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=aa(e[n]));else return e;return t}var gu=e=>Array.isArray(e)?e.filter(Boolean):[],mr=e=>e===void 0,et=(e,t,r)=>{if(!t||!yr(e))return r;const n=gu(t.split(/[,[\].]+?/)).reduce((a,o)=>Jr(a)?a:a[o],e);return mr(n)||n===e?mr(e[t])?r:e[t]:n},Io=e=>typeof e=="boolean";const Qd={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},oa={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ua={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},KC=h.createContext(null),Gg=()=>h.useContext(KC),mu=e=>{const{children:t,...r}=e;return h.createElement(KC.Provider,{value:r},t)};var qC=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const i=o;return t._proxyFormState[i]!==oa.all&&(t._proxyFormState[i]=!n||oa.all),r&&(r[i]=!0),e[i]}});return a},Ln=e=>yr(e)&&!Object.keys(e).length,ew=(e,t,r,n)=>{r(e);const{name:a,...o}=e;return Ln(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!n||oa.all))},Kd=e=>Array.isArray(e)?e:[e],tw=(e,t,r)=>r&&t?e===t||Array.isArray(e)&&e.some(n=>n&&r&&n===t):!e||!t||e===t||Kd(e).some(n=>n&&(n.startsWith(t)||t.startsWith(n)));function Zg(e){const t=h.useRef(e);t.current=e,h.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function pO(e){const t=Gg(),{control:r=t.control,disabled:n,name:a,exact:o}=e||{},[i,l]=h.useState(r._formState),u=h.useRef(!0),c=h.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),m=h.useRef(a);return m.current=a,Zg({disabled:n,next:p=>u.current&&tw(m.current,p.name,o)&&ew(p,c.current,r._updateFormState)&&l({...r._formState,...p}),subject:r._subjects.state}),h.useEffect(()=>(u.current=!0,c.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),qC(i,r,c.current,!1)}var Aa=e=>typeof e=="string",rw=(e,t,r,n,a)=>Aa(e)?(n&&t.watch.add(e),et(r,e,a)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),et(r,o))):(n&&(t.watchAll=!0),r);function gO(e){const t=Gg(),{control:r=t.control,name:n,defaultValue:a,disabled:o,exact:i}=e||{},l=h.useRef(n);l.current=n,Zg({disabled:o,subject:r._subjects.values,next:m=>{tw(l.current,m.name,i)&&c(aa(rw(l.current,r._names,m.values||r._formValues,!1,a)))}});const[u,c]=h.useState(r._getWatch(n,a));return h.useEffect(()=>r._removeUnmounted()),u}var Ug=e=>/^\w*$/.test(e),nw=e=>gu(e.replace(/["|']|\]/g,"").split(/\.|\[/));function er(e,t,r){let n=-1;const a=Ug(t)?[t]:nw(t),o=a.length,i=o-1;for(;++n<o;){const l=a[n];let u=r;if(n!==i){const c=e[l];u=yr(c)||Array.isArray(c)?c:isNaN(+a[n+1])?{}:[]}e[l]=u,e=e[l]}return e}function mO(e){const t=Gg(),{name:r,disabled:n,control:a=t.control,shouldUnregister:o}=e,i=QC(a._names.array,r),l=gO({control:a,name:r,defaultValue:et(a._formValues,r,et(a._defaultValues,r,e.defaultValue)),exact:!0}),u=pO({control:a,name:r}),c=h.useRef(a.register(r,{...e.rules,value:l}));return c.current=a.register(r,e.rules),h.useEffect(()=>{const m=a._options.shouldUnregister||o,p=(x,C)=>{const E=et(a._fields,x);E&&(E._f.mount=C)};if(p(r,!0),m){const x=aa(et(a._options.defaultValues,r));er(a._defaultValues,r,x),mr(et(a._formValues,r))&&er(a._formValues,r,x)}return()=>{(i?m&&!a._state.action:m)?a.unregister(r):p(r,!1)}},[r,a,i,o]),h.useEffect(()=>{a._updateDisabledField({disabled:n,fields:a._fields,name:r})},[n,r,a]),{field:{name:r,value:l,...Io(n)?{disabled:n}:{},onChange:h.useCallback(m=>c.current.onChange({target:{value:JC(m),name:r},type:Qd.CHANGE}),[r]),onBlur:h.useCallback(()=>c.current.onBlur({target:{value:et(a._formValues,r),name:r},type:Qd.BLUR}),[r,a]),ref:m=>{const p=et(a._fields,r);p&&m&&(p._f.ref={focus:()=>m.focus(),select:()=>m.select(),setCustomValidity:x=>m.setCustomValidity(x),reportValidity:()=>m.reportValidity()})}},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!et(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!et(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!et(u.touchedFields,r)},error:{enumerable:!0,get:()=>et(u.errors,r)}})}}const kt=e=>e.render(mO(e));var vO=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{};const Xg=(e,t,r)=>{for(const n of r||Object.keys(e)){const a=et(e,n);if(a){const{_f:o,...i}=a;if(o&&t(o.name)){if(o.ref.focus){o.ref.focus();break}else if(o.refs&&o.refs[0].focus){o.refs[0].focus();break}}else yr(i)&&Xg(i,t)}}};var aw=e=>({isOnSubmit:!e||e===oa.onSubmit,isOnBlur:e===oa.onBlur,isOnChange:e===oa.onChange,isOnAll:e===oa.all,isOnTouch:e===oa.onTouched}),ow=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length)))),bO=(e,t,r)=>{const n=gu(et(e,r));return er(n,"root",t[r]),er(e,r,n),e},Yg=e=>e.type==="file",To=e=>typeof e=="function",qd=e=>{if(!zg)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ef=e=>Aa(e),Jg=e=>e.type==="radio",tf=e=>e instanceof RegExp;const iw={value:!1,isValid:!1},sw={value:!0,isValid:!0};var lw=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!mr(e[0].attributes.value)?mr(e[0].value)||e[0].value===""?sw:{value:e[0].value,isValid:!0}:sw:iw}return iw};const uw={isValid:!1,value:null};var cw=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,uw):uw;function dw(e,t,r="validate"){if(ef(e)||Array.isArray(e)&&e.every(ef)||Io(e)&&!e)return{type:r,message:ef(e)?e:"",ref:t}}var js=e=>yr(e)&&!tf(e)?e:{value:e,message:""},fw=async(e,t,r,n,a)=>{const{ref:o,refs:i,required:l,maxLength:u,minLength:c,min:m,max:p,pattern:x,validate:C,name:E,valueAsNumber:v,mount:A,disabled:S}=e._f,j=et(t,E);if(!A||S)return{};const O=i?i[0]:o,L=Q=>{n&&O.reportValidity&&(O.setCustomValidity(Io(Q)?"":Q||""),O.reportValidity())},M={},z=Jg(o),H=pu(o),oe=z||H,J=(v||Yg(o))&&mr(o.value)&&mr(j)||qd(o)&&o.value===""||j===""||Array.isArray(j)&&!j.length,ge=vO.bind(null,E,r,M),xe=(Q,ce,N,W=Ua.maxLength,ee=Ua.minLength)=>{const de=Q?ce:N;M[E]={type:Q?W:ee,message:de,ref:o,...ge(Q?W:ee,de)}};if(a?!Array.isArray(j)||!j.length:l&&(!oe&&(J||Jr(j))||Io(j)&&!j||H&&!lw(i).isValid||z&&!cw(i).isValid)){const{value:Q,message:ce}=ef(l)?{value:!!l,message:l}:js(l);if(Q&&(M[E]={type:Ua.required,message:ce,ref:O,...ge(Ua.required,ce)},!r))return L(ce),M}if(!J&&(!Jr(m)||!Jr(p))){let Q,ce;const N=js(p),W=js(m);if(!Jr(j)&&!isNaN(j)){const ee=o.valueAsNumber||j&&+j;Jr(N.value)||(Q=ee>N.value),Jr(W.value)||(ce=ee<W.value)}else{const ee=o.valueAsDate||new Date(j),de=K=>new Date(new Date().toDateString()+" "+K),ne=o.type=="time",te=o.type=="week";Aa(N.value)&&j&&(Q=ne?de(j)>de(N.value):te?j>N.value:ee>new Date(N.value)),Aa(W.value)&&j&&(ce=ne?de(j)<de(W.value):te?j<W.value:ee<new Date(W.value))}if((Q||ce)&&(xe(!!Q,N.message,W.message,Ua.max,Ua.min),!r))return L(M[E].message),M}if((u||c)&&!J&&(Aa(j)||a&&Array.isArray(j))){const Q=js(u),ce=js(c),N=!Jr(Q.value)&&j.length>+Q.value,W=!Jr(ce.value)&&j.length<+ce.value;if((N||W)&&(xe(N,Q.message,ce.message),!r))return L(M[E].message),M}if(x&&!J&&Aa(j)){const{value:Q,message:ce}=js(x);if(tf(Q)&&!j.match(Q)&&(M[E]={type:Ua.pattern,message:ce,ref:o,...ge(Ua.pattern,ce)},!r))return L(ce),M}if(C){if(To(C)){const Q=await C(j,t),ce=dw(Q,O);if(ce&&(M[E]={...ce,...ge(Ua.validate,ce.message)},!r))return L(ce.message),M}else if(yr(C)){let Q={};for(const ce in C){if(!Ln(Q)&&!r)break;const N=dw(await C[ce](j,t),O,ce);N&&(Q={...N,...ge(ce,N.message)},L(N.message),r&&(M[E]=Q))}if(!Ln(Q)&&(M[E]={ref:O,...Q},!r))return M}}return L(!0),M};function xO(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=mr(e)?n++:e[t[n++]];return e}function yO(e){for(const t in e)if(e.hasOwnProperty(t)&&!mr(e[t]))return!1;return!0}function Pr(e,t){const r=Array.isArray(t)?t:Ug(t)?[t]:nw(t),n=r.length===1?e:xO(e,r),a=r.length-1,o=r[a];return n&&delete n[o],a!==0&&(yr(n)&&Ln(n)||Array.isArray(n)&&yO(n))&&Pr(e,r.slice(0,-1)),e}function Qg(){let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}}var rf=e=>Jr(e)||!YC(e);function yi(e,t){if(rf(e)||rf(t))return e===t;if(Fs(e)&&Fs(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const o=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const i=t[a];if(Fs(o)&&Fs(i)||yr(o)&&yr(i)||Array.isArray(o)&&Array.isArray(i)?!yi(o,i):o!==i)return!1}}return!0}var hw=e=>e.type==="select-multiple",CO=e=>Jg(e)||pu(e),Kg=e=>qd(e)&&e.isConnected,pw=e=>{for(const t in e)if(To(e[t]))return!0;return!1};function nf(e,t={}){const r=Array.isArray(e);if(yr(e)||r)for(const n in e)Array.isArray(e[n])||yr(e[n])&&!pw(e[n])?(t[n]=Array.isArray(e[n])?[]:{},nf(e[n],t[n])):Jr(e[n])||(t[n]=!0);return t}function gw(e,t,r){const n=Array.isArray(e);if(yr(e)||n)for(const a in e)Array.isArray(e[a])||yr(e[a])&&!pw(e[a])?mr(t)||rf(r[a])?r[a]=Array.isArray(e[a])?nf(e[a],[]):{...nf(e[a])}:gw(e[a],Jr(t)?{}:t[a],r[a]):r[a]=!yi(e[a],t[a]);return r}var qg=(e,t)=>gw(e,t,nf(t)),mw=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>mr(e)?e:t?e===""?NaN:e&&+e:r&&Aa(e)?new Date(e):n?n(e):e;function em(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return Yg(t)?t.files:Jg(t)?cw(e.refs).value:hw(t)?[...t.selectedOptions].map(({value:r})=>r):pu(t)?lw(e.refs).value:mw(mr(t.value)?e.ref.value:t.value,e)}var wO=(e,t,r,n)=>{const a={};for(const o of e){const i=et(t,o);i&&er(a,o,i._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},vu=e=>mr(e)?e:tf(e)?e.source:yr(e)?tf(e.value)?e.value.source:e.value:e,EO=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function vw(e,t,r){const n=et(e,r);if(n||Ug(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const o=a.join("."),i=et(t,o),l=et(e,o);if(i&&!Array.isArray(i)&&r!==o)return{name:r};if(l&&l.type)return{name:o,error:l};a.pop()}return{name:r}}var DO=(e,t,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,SO=(e,t)=>!gu(et(e,t)).length&&Pr(e,t);const AO={mode:oa.onSubmit,reValidateMode:oa.onChange,shouldFocusError:!0};function FO(e={},t){let r={...AO,...e},n={submitCount:0,isDirty:!1,isLoading:To(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},a={},o=yr(r.defaultValues)||yr(r.values)?aa(r.defaultValues||r.values)||{}:{},i=r.shouldUnregister?{}:aa(o),l={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,m=0;const p={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},x={values:Qg(),array:Qg(),state:Qg()},C=e.resetOptions&&e.resetOptions.keepDirtyValues,E=aw(r.mode),v=aw(r.reValidateMode),A=r.criteriaMode===oa.all,S=re=>be=>{clearTimeout(m),m=setTimeout(re,be)},j=async re=>{if(p.isValid||re){const be=r.resolver?Ln((await J()).errors):await xe(a,!0);be!==n.isValid&&x.state.next({isValid:be})}},O=re=>p.isValidating&&x.state.next({isValidating:re}),L=(re,be=[],Ie,Ze,He=!0,Te=!0)=>{if(Ze&&Ie){if(l.action=!0,Te&&Array.isArray(et(a,re))){const Ee=Ie(et(a,re),Ze.argA,Ze.argB);He&&er(a,re,Ee)}if(Te&&Array.isArray(et(n.errors,re))){const Ee=Ie(et(n.errors,re),Ze.argA,Ze.argB);He&&er(n.errors,re,Ee),SO(n.errors,re)}if(p.touchedFields&&Te&&Array.isArray(et(n.touchedFields,re))){const Ee=Ie(et(n.touchedFields,re),Ze.argA,Ze.argB);He&&er(n.touchedFields,re,Ee)}p.dirtyFields&&(n.dirtyFields=qg(o,i)),x.state.next({name:re,isDirty:ce(re,be),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else er(i,re,be)},M=(re,be)=>{er(n.errors,re,be),x.state.next({errors:n.errors})},z=(re,be,Ie,Ze)=>{const He=et(a,re);if(He){const Te=et(i,re,mr(Ie)?et(o,re):Ie);mr(Te)||Ze&&Ze.defaultChecked||be?er(i,re,be?Te:em(He._f)):ee(re,Te),l.mount&&j()}},H=(re,be,Ie,Ze,He)=>{let Te=!1,Ee=!1;const ze={name:re};if(!Ie||Ze){p.isDirty&&(Ee=n.isDirty,n.isDirty=ze.isDirty=ce(),Te=Ee!==ze.isDirty);const tt=yi(et(o,re),be);Ee=et(n.dirtyFields,re),tt?Pr(n.dirtyFields,re):er(n.dirtyFields,re,!0),ze.dirtyFields=n.dirtyFields,Te=Te||p.dirtyFields&&Ee!==!tt}if(Ie){const tt=et(n.touchedFields,re);tt||(er(n.touchedFields,re,Ie),ze.touchedFields=n.touchedFields,Te=Te||p.touchedFields&&tt!==Ie)}return Te&&He&&x.state.next(ze),Te?ze:{}},oe=(re,be,Ie,Ze)=>{const He=et(n.errors,re),Te=p.isValid&&Io(be)&&n.isValid!==be;if(e.delayError&&Ie?(c=S(()=>M(re,Ie)),c(e.delayError)):(clearTimeout(m),c=null,Ie?er(n.errors,re,Ie):Pr(n.errors,re)),(Ie?!yi(He,Ie):He)||!Ln(Ze)||Te){const Ee={...Ze,...Te&&Io(be)?{isValid:be}:{},errors:n.errors,name:re};n={...n,...Ee},x.state.next(Ee)}O(!1)},J=async re=>r.resolver(i,r.context,wO(re||u.mount,a,r.criteriaMode,r.shouldUseNativeValidation)),ge=async re=>{const{errors:be}=await J(re);if(re)for(const Ie of re){const Ze=et(be,Ie);Ze?er(n.errors,Ie,Ze):Pr(n.errors,Ie)}else n.errors=be;return be},xe=async(re,be,Ie={valid:!0})=>{for(const Ze in re){const He=re[Ze];if(He){const{_f:Te,...Ee}=He;if(Te){const ze=u.array.has(Te.name),tt=await fw(He,i,A,r.shouldUseNativeValidation&&!be,ze);if(tt[Te.name]&&(Ie.valid=!1,be))break;!be&&(et(tt,Te.name)?ze?bO(n.errors,tt,Te.name):er(n.errors,Te.name,tt[Te.name]):Pr(n.errors,Te.name))}Ee&&await xe(Ee,be,Ie)}}return Ie.valid},Q=()=>{for(const re of u.unMount){const be=et(a,re);be&&(be._f.refs?be._f.refs.every(Ie=>!Kg(Ie)):!Kg(be._f.ref))&&ae(re)}u.unMount=new Set},ce=(re,be)=>(re&&be&&er(i,re,be),!yi(se(),o)),N=(re,be,Ie)=>rw(re,u,{...l.mount?i:mr(be)?o:Aa(re)?{[re]:be}:be},Ie,be),W=re=>gu(et(l.mount?i:o,re,e.shouldUnregister?et(o,re,[]):[])),ee=(re,be,Ie={})=>{const Ze=et(a,re);let He=be;if(Ze){const Te=Ze._f;Te&&(!Te.disabled&&er(i,re,mw(be,Te)),He=qd(Te.ref)&&Jr(be)?"":be,hw(Te.ref)?[...Te.ref.options].forEach(Ee=>Ee.selected=He.includes(Ee.value)):Te.refs?pu(Te.ref)?Te.refs.length>1?Te.refs.forEach(Ee=>(!Ee.defaultChecked||!Ee.disabled)&&(Ee.checked=Array.isArray(He)?!!He.find(ze=>ze===Ee.value):He===Ee.value)):Te.refs[0]&&(Te.refs[0].checked=!!He):Te.refs.forEach(Ee=>Ee.checked=Ee.value===He):Yg(Te.ref)?Te.ref.value="":(Te.ref.value=He,Te.ref.type||x.values.next({name:re,values:{...i}})))}(Ie.shouldDirty||Ie.shouldTouch)&&H(re,He,Ie.shouldTouch,Ie.shouldDirty,!0),Ie.shouldValidate&&K(re)},de=(re,be,Ie)=>{for(const Ze in be){const He=be[Ze],Te=`${re}.${Ze}`,Ee=et(a,Te);(u.array.has(re)||!rf(He)||Ee&&!Ee._f)&&!Fs(He)?de(Te,He,Ie):ee(Te,He,Ie)}},ne=(re,be,Ie={})=>{const Ze=et(a,re),He=u.array.has(re),Te=aa(be);er(i,re,Te),He?(x.array.next({name:re,values:{...i}}),(p.isDirty||p.dirtyFields)&&Ie.shouldDirty&&x.state.next({name:re,dirtyFields:qg(o,i),isDirty:ce(re,Te)})):Ze&&!Ze._f&&!Jr(Te)?de(re,Te,Ie):ee(re,Te,Ie),ow(re,u)&&x.state.next({...n}),x.values.next({name:re,values:{...i}}),!l.mount&&t()},te=async re=>{const be=re.target;let Ie=be.name,Ze=!0;const He=et(a,Ie),Te=()=>be.type?em(He._f):JC(re);if(He){let Ee,ze;const tt=Te(),bt=re.type===Qd.BLUR||re.type===Qd.FOCUS_OUT,Ot=!EO(He._f)&&!r.resolver&&!et(n.errors,Ie)&&!He._f.deps||DO(bt,et(n.touchedFields,Ie),n.isSubmitted,v,E),gt=ow(Ie,u,bt);er(i,Ie,tt),bt?(He._f.onBlur&&He._f.onBlur(re),c&&c(0)):He._f.onChange&&He._f.onChange(re);const Wt=H(Ie,tt,bt,!1),pr=!Ln(Wt)||gt;if(!bt&&x.values.next({name:Ie,type:re.type,values:{...i}}),Ot)return p.isValid&&j(),pr&&x.state.next({name:Ie,...gt?{}:Wt});if(!bt&&gt&&x.state.next({...n}),O(!0),r.resolver){const{errors:Yt}=await J([Ie]),Cr=vw(n.errors,a,Ie),gr=vw(Yt,a,Cr.name||Ie);Ee=gr.error,Ie=gr.name,ze=Ln(Yt)}else Ee=(await fw(He,i,A,r.shouldUseNativeValidation))[Ie],Ze=Number.isNaN(tt)||tt===et(i,Ie,tt),Ze&&(Ee?ze=!1:p.isValid&&(ze=await xe(a,!0)));Ze&&(He._f.deps&&K(He._f.deps),oe(Ie,ze,Ee,Wt))}},K=async(re,be={})=>{let Ie,Ze;const He=Kd(re);if(O(!0),r.resolver){const Te=await ge(mr(re)?re:He);Ie=Ln(Te),Ze=re?!He.some(Ee=>et(Te,Ee)):Ie}else re?(Ze=(await Promise.all(He.map(async Te=>{const Ee=et(a,Te);return await xe(Ee&&Ee._f?{[Te]:Ee}:Ee)}))).every(Boolean),!(!Ze&&!n.isValid)&&j()):Ze=Ie=await xe(a);return x.state.next({...!Aa(re)||p.isValid&&Ie!==n.isValid?{}:{name:re},...r.resolver||!re?{isValid:Ie}:{},errors:n.errors,isValidating:!1}),be.shouldFocus&&!Ze&&Xg(a,Te=>Te&&et(n.errors,Te),re?He:u.mount),Ze},se=re=>{const be={...o,...l.mount?i:{}};return mr(re)?be:Aa(re)?et(be,re):re.map(Ie=>et(be,Ie))},fe=(re,be)=>({invalid:!!et((be||n).errors,re),isDirty:!!et((be||n).dirtyFields,re),isTouched:!!et((be||n).touchedFields,re),error:et((be||n).errors,re)}),Se=re=>{re&&Kd(re).forEach(be=>Pr(n.errors,be)),x.state.next({errors:re?n.errors:{}})},G=(re,be,Ie)=>{const Ze=(et(a,re,{_f:{}})._f||{}).ref;er(n.errors,re,{...be,ref:Ze}),x.state.next({name:re,errors:n.errors,isValid:!1}),Ie&&Ie.shouldFocus&&Ze&&Ze.focus&&Ze.focus()},he=(re,be)=>To(re)?x.values.subscribe({next:Ie=>re(N(void 0,be),Ie)}):N(re,be,!0),ae=(re,be={})=>{for(const Ie of re?Kd(re):u.mount)u.mount.delete(Ie),u.array.delete(Ie),be.keepValue||(Pr(a,Ie),Pr(i,Ie)),!be.keepError&&Pr(n.errors,Ie),!be.keepDirty&&Pr(n.dirtyFields,Ie),!be.keepTouched&&Pr(n.touchedFields,Ie),!r.shouldUnregister&&!be.keepDefaultValue&&Pr(o,Ie);x.values.next({values:{...i}}),x.state.next({...n,...be.keepDirty?{isDirty:ce()}:{}}),!be.keepIsValid&&j()},me=({disabled:re,name:be,field:Ie,fields:Ze})=>{if(Io(re)){const He=re?void 0:et(i,be,em(Ie?Ie._f:et(Ze,be)._f));er(i,be,He),H(be,He,!1,!1,!0)}},Me=(re,be={})=>{let Ie=et(a,re);const Ze=Io(be.disabled);return er(a,re,{...Ie||{},_f:{...Ie&&Ie._f?Ie._f:{ref:{name:re}},name:re,mount:!0,...be}}),u.mount.add(re),Ie?me({field:Ie,disabled:be.disabled,name:re}):z(re,!0,be.value),{...Ze?{disabled:be.disabled}:{},...r.progressive?{required:!!be.required,min:vu(be.min),max:vu(be.max),minLength:vu(be.minLength),maxLength:vu(be.maxLength),pattern:vu(be.pattern)}:{},name:re,onChange:te,onBlur:te,ref:He=>{if(He){Me(re,be),Ie=et(a,re);const Te=mr(He.value)&&He.querySelectorAll&&He.querySelectorAll("input,select,textarea")[0]||He,Ee=CO(Te),ze=Ie._f.refs||[];if(Ee?ze.find(tt=>tt===Te):Te===Ie._f.ref)return;er(a,re,{_f:{...Ie._f,...Ee?{refs:[...ze.filter(Kg),Te,...Array.isArray(et(o,re))?[{}]:[]],ref:{type:Te.type,name:re}}:{ref:Te}}}),z(re,!1,void 0,Te)}else Ie=et(a,re,{}),Ie._f&&(Ie._f.mount=!1),(r.shouldUnregister||be.shouldUnregister)&&!(QC(u.array,re)&&l.action)&&u.unMount.add(re)}}},Pe=()=>r.shouldFocusError&&Xg(a,re=>re&&et(n.errors,re),u.mount),We=(re,be)=>async Ie=>{Ie&&(Ie.preventDefault&&Ie.preventDefault(),Ie.persist&&Ie.persist());let Ze=aa(i);if(x.state.next({isSubmitting:!0}),r.resolver){const{errors:He,values:Te}=await J();n.errors=He,Ze=Te}else await xe(a);Pr(n.errors,"root"),Ln(n.errors)?(x.state.next({errors:{}}),await re(Ze,Ie)):(be&&await be({...n.errors},Ie),Pe(),setTimeout(Pe)),x.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ln(n.errors),submitCount:n.submitCount+1,errors:n.errors})},Ke=(re,be={})=>{et(a,re)&&(mr(be.defaultValue)?ne(re,et(o,re)):(ne(re,be.defaultValue),er(o,re,be.defaultValue)),be.keepTouched||Pr(n.touchedFields,re),be.keepDirty||(Pr(n.dirtyFields,re),n.isDirty=be.defaultValue?ce(re,et(o,re)):ce()),be.keepError||(Pr(n.errors,re),p.isValid&&j()),x.state.next({...n}))},Ne=(re,be={})=>{const Ie=re?aa(re):o,Ze=aa(Ie),He=re&&!Ln(re)?Ze:o;if(be.keepDefaultValues||(o=Ie),!be.keepValues){if(be.keepDirtyValues||C)for(const Te of u.mount)et(n.dirtyFields,Te)?er(He,Te,et(i,Te)):ne(Te,et(He,Te));else{if(zg&&mr(re))for(const Te of u.mount){const Ee=et(a,Te);if(Ee&&Ee._f){const ze=Array.isArray(Ee._f.refs)?Ee._f.refs[0]:Ee._f.ref;if(qd(ze)){const tt=ze.closest("form");if(tt){tt.reset();break}}}}a={}}i=e.shouldUnregister?be.keepDefaultValues?aa(o):{}:aa(He),x.array.next({values:{...He}}),x.values.next({values:{...He}})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!l.mount&&t(),l.mount=!p.isValid||!!be.keepIsValid,l.watch=!!e.shouldUnregister,x.state.next({submitCount:be.keepSubmitCount?n.submitCount:0,isDirty:be.keepDirty?n.isDirty:!!(be.keepDefaultValues&&!yi(re,o)),isSubmitted:be.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:be.keepDirtyValues?n.dirtyFields:be.keepDefaultValues&&re?qg(o,re):{},touchedFields:be.keepTouched?n.touchedFields:{},errors:be.keepErrors?n.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},Qe=(re,be)=>Ne(To(re)?re(i):re,be);return{control:{register:Me,unregister:ae,getFieldState:fe,handleSubmit:We,setError:G,_executeSchema:J,_getWatch:N,_getDirty:ce,_updateValid:j,_removeUnmounted:Q,_updateFieldArray:L,_updateDisabledField:me,_getFieldArray:W,_reset:Ne,_resetDefaultValues:()=>To(r.defaultValues)&&r.defaultValues().then(re=>{Qe(re,r.resetOptions),x.state.next({isLoading:!1})}),_updateFormState:re=>{n={...n,...re}},_subjects:x,_proxyFormState:p,get _fields(){return a},get _formValues(){return i},get _state(){return l},set _state(re){l=re},get _defaultValues(){return o},get _names(){return u},set _names(re){u=re},get _formState(){return n},set _formState(re){n=re},get _options(){return r},set _options(re){r={...r,...re}}},trigger:K,register:Me,handleSubmit:We,watch:he,setValue:ne,getValues:se,reset:Qe,resetField:Ke,clearErrors:Se,unregister:ae,setError:G,setFocus:(re,be={})=>{const Ie=et(a,re),Ze=Ie&&Ie._f;if(Ze){const He=Ze.refs?Ze.refs[0]:Ze.ref;He.focus&&(He.focus(),be.shouldSelect&&He.select())}},getFieldState:fe}}function Xa(e={}){const t=h.useRef(),r=h.useRef(),[n,a]=h.useState({isDirty:!1,isValidating:!1,isLoading:To(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:To(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...FO(e,()=>a(i=>({...i}))),formState:n});const o=t.current.control;return o._options=e,Zg({subject:o._subjects.state,next:i=>{ew(i,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),h.useEffect(()=>{e.values&&!yi(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values):o._resetDefaultValues()},[e.values,o]),h.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=qC(n,o),t.current}const jO=e=>{const t=Xa(),{formState:{errors:r},handleSubmit:n,control:a}=t;return s.jsx(Gt,{children:s.jsxs("form",{onSubmit:n(o=>e.handleUpdateProfile(o)),children:[s.jsx($t,{headless:!0,children:s.jsxs(mu,{...t,children:[s.jsx(kt,{control:a,name:"fullName",render:({field:o})=>{var i;return s.jsx(Rt,{width:"full",type:"text",label:e.texts.fullNameLabel,placeholder:e.texts.fullNamePlaceholder,helpertext:(i=r.fullName)==null?void 0:i.message,...o,value:o.value??""})}}),s.jsx(kt,{control:a,name:"phoneNumber",render:({field:o})=>s.jsx(cd,{label:"Phone number"})}),s.jsx(kt,{control:a,name:"email",render:({field:o})=>{var i;return s.jsx(Rt,{width:"full",type:"text",label:e.texts.emailLabel,helpertext:(i=r.email)==null?void 0:i.message,placeholder:e.texts.emailPlaceholder,...o,value:o.value??""})},rules:{required:e.texts.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:e.texts.emailInvalidText}}}),s.jsx(kt,{control:a,name:"password",render:({field:o})=>{var i;return s.jsx(Rt,{width:"full",type:"password",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helpertext:(i=r.password)==null?void 0:i.message,...o,value:o.value??""})},rules:{required:e.texts.passwordRequiredText}}),s.jsx(kt,{control:a,name:"confirmPassword",render:({field:o})=>{var i;return s.jsx(Rt,{width:"full",type:"password",label:e.texts.confirmPasswordLabel,placeholder:e.texts.confirmPasswordPlaceholder,helpertext:(i=r.confirmPassword)==null?void 0:i.message,...o,value:o.value??""})},rules:{required:e.texts.confirmPasswordRequiredText}})]})}),s.jsx(Fn,{children:s.jsx(qe,{className:"w-full",type:"submit",children:e.texts.updateProfile})})]})})},IO=e=>s.jsx(Gt,{children:s.jsxs($t,{headless:!0,children:[s.jsx("div",{className:"mb-2 text-sm font-bold",children:e.blockTitle}),s.jsx("div",{className:"flex flex-col gap-4 rounded p-2",children:e.children})]})}),TO=e=>{var t,r,n,a,o,i,l;return s.jsxs("div",{dir:e.direction,children:[s.jsx(Gt,{children:s.jsxs($t,{headless:!0,className:"flex flex-col gap-6",children:[e.viaGoogle&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGoogle,children:[s.jsx(zr.google,{className:"h-4 w-4"}),((t=e.texts)==null?void 0:t.continueWithGoogle)??"Continue With Google"]}),e.viaGithub&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGithub,children:[s.jsx(zr.gitHub,{className:"h-4 w-4"}),((r=e.texts)==null?void 0:r.continueWithGithub)??"Continue With Github"]}),e.viaTwitter&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleTwitter,children:[s.jsx(zr.twitter,{className:"h-4 w-4"}),((n=e.texts)==null?void 0:n.continueWithTwitter)??"Continue With Twitter"]}),e.viaApple&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleApple,children:[s.jsx(zr.apple,{className:"h-4 w-4"}),((a=e.texts)==null?void 0:a.continueWithApple)??"Continue With Apple"]}),e.viaMicrosoft&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleMicrosoft,children:[s.jsx(zr.microsoft,{className:"h-4 w-4"}),((o=e.texts)==null?void 0:o.continueWithMicrosoft)??"Continue With Microsoft"]}),e.viaEmail&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleEmail,children:[s.jsx(zr.mail,{className:"h-4 w-4"}),((i=e.texts)==null?void 0:i.continueWithEmail)??"Continue With Email"]}),e.viaPhone&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handlePhone,children:[s.jsx(zr.phone,{className:"h-4 w-4"}),((l=e.texts)==null?void 0:l.continueWithPhone)??"Continue With Phone"]}),!e.withoutSignUp&&s.jsxs("div",{className:"p-3 text-center text-sm font-normal dark:text-gray-300",children:[e.texts.newUserText,s.jsx("span",{onClick:e.handleRouteToSignUp,className:"clickable-link",children:e.texts.createAccount})]})]})}),s.jsxs("div",{className:"mt-6 flex flex-row justify-between",children:[s.jsx(yn,{onChangeTab:e.handleLanguage,design:"tabs",options:[{value:"ar",label:"عربي"},{value:"en",label:"English"}]}),s.jsx(yn,{onChangeTab:e.handleColorMode,design:"tabs",options:[{value:"light",label:s.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90",children:s.jsx("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})},{value:"dark",label:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100",children:s.jsx("path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})})}]})]})]})},kO=e=>{var j,O,L,M,z;const[t,r]=h.useState(null),n=Xa(),{formState:{errors:a},handleSubmit:o,control:i}=n,[l,u]=h.useState(null),[c,m]=h.useState(0),[p,x]=h.useState(!1),[C,E]=h.useState(""),[v,A]=h.useState(e.confirmationStage),S=()=>{clearTimeout(l),m(60),x(!0);const oe=setInterval(()=>{m(J=>J>0?J-1:(clearInterval(oe),x(!1),0))},1e3);u(oe)};return s.jsx(Gt,{children:s.jsx($t,{className:"transition-all",headless:!0,children:v?s.jsxs("form",{onSubmit:H=>{H.preventDefault(),t&&e.handleConfirm(t)},children:[s.jsx(yg,{width:"full",digits:6,getPins:H=>r(H)}),s.jsx("div",{className:" py-2 text-center text-xs text-muted-foreground",children:p?s.jsxs("span",{children:["Resend code in ",c," seconds |"," ",s.jsx("span",{className:"clickable-link",onClick:()=>{clearTimeout(l),x(!1)},children:"Cancel"})]}):s.jsxs("span",{children:[((j=e.texts)==null?void 0:j.didntGetCode)??"Didn't get the code?"," ",s.jsx("span",{className:"clickable-link",onClick:()=>{S()},children:((O=e.texts)==null?void 0:O.resendCode)??"Click to resend"})]})}),s.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-2",children:[s.jsx(qe,{variant:"secondary",onClick:()=>A(!1),children:((L=e.texts)==null?void 0:L.cancel)??"Cancel"}),s.jsx(qe,{isLoading:e.loadingConfirm,children:((M=e.texts)==null?void 0:M.confirm)??"Confirm"})]})]}):s.jsxs("form",{onSubmit:H=>{H.preventDefault(),A(!0),e.handleContinue(C)},children:[s.jsx(kt,{control:i,name:"phone",render:({field:H})=>s.jsx(cd,{country:e.country??"",label:e.label??"",handleChange:oe=>E(oe.target.value),...H}),rules:{required:e.phoneRequiredText}}),s.jsx(qe,{isLoading:e.loadingContinue,className:"w-full",children:((z=e.texts)==null?void 0:z.continue)??"Continue"})]})})})},BO=e=>{const{formState:{errors:t},handleSubmit:r,control:n}=Xa();return s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsxs(Gt,{dir:e.direction,children:[s.jsx($t,{headless:!0,children:s.jsxs("form",{onSubmit:r(a=>e.handleSignIn(a)),children:[e.showError&&s.jsx(qn,{title:e.errorTitle,text:e.errorText,severity:"error"}),e.signInType==="email"?s.jsx(kt,{control:n,name:"email",render:({field:a})=>{var o;return s.jsx(Rt,{width:"full",type:"text",autoComplete:"email",label:e.texts.emailLabel,helpertext:(o=t.email)==null?void 0:o.message,placeholder:e.texts.emailPlaceholder,value:a.value??"",onChange:a.onChange})},rules:{required:e.texts.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:e.texts.emailInvalidText}}}):e.signInType==="username"?s.jsx(kt,{control:n,name:"username",render:({field:a})=>{var o;return s.jsx(Rt,{width:"full",type:"text",autoComplete:"username",label:e.texts.usernameLabel,helpertext:(o=t.username)==null?void 0:o.message,placeholder:e.texts.usernamePlaceholder,onChange:a.onChange,value:a.value??""})},rules:{required:e.texts.usernameRequired}}):s.jsx(kt,{control:n,name:"phone",render:({field:a})=>s.jsx(cd,{label:"Phone number"}),rules:{required:e.texts.phoneRequiredText}}),e.signInType!=="phone"&&s.jsxs(s.Fragment,{children:[s.jsx(kt,{control:n,name:"password",render:({field:a})=>{var o;return s.jsx(Rt,{width:"full",autoComplete:"current-password",type:"password",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helpertext:(o=t.password)==null?void 0:o.message,onChange:a.onChange,value:a.value??""})},rules:{required:e.texts.passwordRequiredText,minLength:5}}),!e.withoutResetPassword&&s.jsx("div",{onClick:e.handleForgotPassword,className:"mb-3 w-fit cursor-pointer text-xs dark:text-gray-300",children:e.texts.forgotPasswordText})]}),s.jsx(qe,{className:"mt-4 w-full",isLoading:e.isLoading,children:e.texts.signInText}),!e.withoutSignUp&&s.jsxs("div",{className:"p-3 text-center text-sm font-normal dark:text-gray-300",children:[e.texts.newUserText," ",s.jsx("span",{onClick:e.handleRouteToSignUp,className:"clickable-link",children:e.texts.createAccount})]})]})}),e.viaGithub||e.viaGoogle||e.viaTwitter?s.jsxs(Fn,{className:Ve(e.logosOnly?"flex flex-row justify-center gap-2":"grid grid-cols-1 gap-2"),children:[e.viaGoogle&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGoogleSignIn,children:[e.isGoogleLoading?s.jsx(us,{size:"button"}):s.jsx(zr.google,{className:"h-4 w-4"}),!e.logosOnly&&e.texts.signInViaGoogleLabel]}),e.viaGithub&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGithubSignIn,children:[e.isGithubLoading?s.jsx(us,{size:"button"}):s.jsx(zr.gitHub,{className:"h-4 w-4"}),!e.logosOnly&&e.texts.signInViaGithubLabel]}),e.viaTwitter&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleTwitterSignIn,children:[e.isTwitterLoading?s.jsx(us,{size:"button"}):s.jsx(zr.twitter,{className:"h-4 w-4"})," ",!e.logosOnly&&e.texts.signInViaTwitterLabel]})]}):null]}),s.jsx(Cg,{currentColorMode:e.currentColorMode,currentLanguage:e.currentLanguage,handleColorMode:e.handleColorMode,handleLanguage:e.handleLanguage})]})};function PO(){return s.jsxs(Gt,{children:[s.jsxs(Ca,{className:"space-y-1",children:[s.jsx(wa,{className:"text-2xl",children:"Create an account"}),s.jsx(ii,{children:"Enter your email below to create your account"})]}),s.jsxs($t,{className:"grid gap-4",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[s.jsxs(qe,{variant:"outline",children:[s.jsx(zr.gitHub,{className:"mr-2 h-4 w-4"}),"Github"]}),s.jsxs(qe,{variant:"outline",children:[s.jsx(zr.google,{className:"mr-2 h-4 w-4"}),"Google"]})]}),s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"absolute inset-0 flex items-center",children:s.jsx("span",{className:"w-full border-t"})}),s.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:s.jsx("span",{className:"bg-background px-2 text-muted-foreground",children:"Or continue with"})})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(ti,{htmlFor:"email",children:"Email"}),s.jsx(As,{id:"email",type:"email",placeholder:"m@example.com"})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(ti,{htmlFor:"password",children:"Password"}),s.jsx(As,{id:"password",type:"password"})]})]}),s.jsx(Fn,{children:s.jsx(qe,{className:"w-full",children:"Create account"})})]})}const OO=e=>{const t=Xa(),{formState:{errors:r},handleSubmit:n,control:a}=t;return s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsxs(Gt,{dir:e.direction,children:[s.jsx($t,{headless:!0,children:s.jsxs("div",{children:[e.showError&&s.jsx(qn,{title:e.errorTitle,text:e.errorText,severity:"error"}),s.jsx(mu,{...t,children:s.jsxs("form",{onSubmit:n(o=>e.handleSignUp(o)),children:[s.jsx("div",{children:e.signUpFields.map((o,i)=>{if(o==="fullname")return s.jsx(kt,{control:a,name:"fullName",render:({field:l})=>{var u;return s.jsx(Rt,{width:"full",type:"text",label:e.texts.fullNameLabel,placeholder:e.texts.fullNamePlaceholder,helpertext:(u=r.fullName)==null?void 0:u.message,onChange:l.onChange,value:l.value??""})},rules:{required:e.texts.fullNameRequiredText}},i);if(o==="email")return s.jsx(kt,{control:a,name:"email",render:({field:l})=>{var u;return s.jsx(Rt,{width:"full",type:"text",autoComplete:"email",label:e.texts.emailLabel,helpertext:(u=r.email)==null?void 0:u.message,placeholder:e.texts.emailPlaceholder,onChange:l.onChange,value:l.value??""})},rules:{required:e.texts.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:e.texts.emailInvalidText}}},i);if(o==="username")return s.jsx(kt,{control:a,name:"username",render:({field:l})=>{var u;return s.jsx(Rt,{width:"full",type:"text",autoComplete:"username",label:e.texts.usernameLabel,helpertext:(u=r.username)==null?void 0:u.message,placeholder:e.texts.usernamePlaceholder,onChange:l.onChange,value:l.value??""})},rules:{required:e.texts.usernameRequired}},i)})}),s.jsx(kt,{control:a,name:"password",render:({field:o})=>{var i;return s.jsx(Rt,{width:"full",type:"password",autoComplete:"new-password",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helpertext:(i=r.password)==null?void 0:i.message,onChange:o.onChange,value:o.value??""})},rules:{required:e.texts.passwordRequiredText}}),s.jsx(kt,{control:a,name:"confirm_password",render:({field:o})=>{var i;return s.jsx(Rt,{width:"full",type:"password",autoComplete:"new-password",label:e.texts.confirmPasswordLabel,placeholder:e.texts.confirmPasswordPlaceholder,helpertext:(i=r.confirm_password)==null?void 0:i.message,onChange:o.onChange,value:o.value??""})},rules:{required:e.texts.passwordRequiredText}}),e.showRefCode&&s.jsx(kt,{control:a,name:"refCode",render:({field:o})=>{var i;return s.jsx(Rt,{width:"full",type:"text",label:e.texts.refCode,placeholder:e.texts.passwordPlaceholder,helpertext:(i=r.password)==null?void 0:i.message,value:o.value??"",onChange:o.onChange})}}),e.showUserSource&&s.jsx("div",{children:s.jsx(kt,{control:a,name:"reference",render:({field:o})=>s.jsx(Hl,{label:"How did you learn about us?",isCreatable:!1,isMulti:!1,isSearchable:!1,isClearable:!1,options:[{value:"friend",label:"From a friend"},{value:"ad",label:"Advertisement"},{value:"other",label:"Other"}],onChange:i=>{o.onChange(i.value)}})})}),e.showTermsOption&&s.jsx(kt,{control:a,name:"terms_accepted",render:({field:o})=>{var i;return s.jsx(Xf,{id:"terms_accepted",helperText:(i=r.terms_accepted)==null?void 0:i.message,onChange:l=>o.onChange(l),label:s.jsxs("span",{children:[e.texts.iAcceptText," ",s.jsx("a",{onClick:e.handleRouteToTOS,className:"clickable-link",children:e.texts.termsText})]})})},rules:{required:e.texts.termsRequiredText}}),e.showNewsletterOption&&s.jsx(kt,{control:a,name:"newsletter_accepted",render:({field:o})=>s.jsx(Xf,{id:"newsletter_accepted",label:e.texts.subscribeToNewsletter,onChange:o.onChange})}),s.jsx(qe,{className:"w-full",isLoading:e.isLoading,children:e.texts.signUpText})]})}),s.jsxs("div",{className:"flex flex-row items-center justify-center gap-1 p-3 text-center text-sm font-normal dark:text-white",children:[s.jsx("span",{children:e.texts.existingUserText}),s.jsx("span",{onClick:e.handleRouteToSignIn,className:"clickable-link",children:e.texts.signInText})]})]})}),e.viaGithub||e.viaGoogle||e.viaTwitter?s.jsxs(Fn,{className:Ve(e.logosOnly?"flex flex-row justify-center gap-2":"grid grid-cols-1 gap-2"),children:[e.viaGoogle&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGoogleSignUp,children:[s.jsx(zr.google,{className:"h-4 w-4"}),!e.logosOnly&&e.texts.signUpViaGoogleLabel]}),e.viaGithub&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGithubSignUp,children:[s.jsx(zr.gitHub,{className:"h-4 w-4"}),!e.logosOnly&&e.texts.signUpViaGithubLabel]}),e.viaTwitter&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleTwitterSignUp,children:[s.jsx(zr.twitter,{className:"h-4 w-4"}),!e.logosOnly&&e.texts.signUpViaTwitterLabel]})]}):null]}),s.jsx(Cg,{currentColorMode:e.currentColorMode,currentLanguage:e.currentLanguage,handleColorMode:e.handleColorMode,handleLanguage:e.handleLanguage})]})},NO=e=>{const[t,r]=h.useState(!1),n=Xa(),{formState:{errors:a},handleSubmit:o,control:i}=n,l=u=>{u.password===u.confirmPassword?e.handleNewPassword():r(!0)};return s.jsxs(Gt,{dir:e.direction,children:[t&&s.jsx(qn,{text:e.texts.passwordMatchError,severity:"error"}),e.passwordChanged?s.jsx($t,{headless:!0,children:s.jsx("div",{className:"text-center",children:e.texts.passwordChanged})}):s.jsx(mu,{...n,children:s.jsxs("form",{onSubmit:o(l),children:[!e.headless&&s.jsxs(Ca,{children:[s.jsx(wa,{children:"Create Password"}),s.jsx(ii,{children:"Set a new password for your account"})]}),s.jsxs($t,{headless:e.headless,children:[s.jsx(kt,{control:i,name:"password",render:({field:u})=>{var c;return s.jsx(Rt,{width:"full",type:"password",autoComplete:"new-password",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helpertext:(c=a.password)==null?void 0:c.message,...u,value:u.value??""})},rules:{required:e.texts.passwordRequiredText}}),s.jsx(kt,{control:i,name:"confirmPassword",render:({field:u})=>{var c;return s.jsx(Rt,{width:"full",type:"password",autoComplete:"new-password",label:e.texts.confirmPasswordLabel,placeholder:e.texts.confirmPasswordPlaceholder,helpertext:(c=a.confirmPassword)==null?void 0:c.message,...u,value:u.value??""})},rules:{required:e.texts.confirmPasswordRequiredText}})]}),s.jsx(Fn,{children:s.jsx(qe,{className:"w-full",type:"submit",children:e.texts.updatePassword})})]})})]})},MO=e=>{var i,l,u,c,m,p;const t=Xa(),{formState:{errors:r},handleSubmit:n,register:a,control:o}=t;return s.jsx(Gt,{dir:e.direction,children:e.sent?s.jsx($t,{headless:!0,children:s.jsx("div",{className:"text-center",children:(p=e.texts)==null?void 0:p.emailSentText})}):s.jsxs(s.Fragment,{children:[!e.headless&&s.jsxs(Ca,{children:[s.jsx(wa,{children:"Reset Password"}),s.jsx(ii,{children:"Enter your email to reset your account password"})]}),s.jsxs("form",{onSubmit:n(e.handleResetPassword),children:[s.jsxs($t,{headless:e.headless,children:[s.jsx(kt,{control:o,name:"email",render:({field:x})=>{var C,E,v;return s.jsx(Rt,{width:"full",type:"text",label:(C=e.texts)==null?void 0:C.emailLabel,helpertext:(E=r.email)==null?void 0:E.message,placeholder:(v=e.texts)==null?void 0:v.emailPlaceholder,...x,value:x.value??""})},rules:{required:(i=e.texts)==null?void 0:i.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:(l=e.texts)==null?void 0:l.emailInvalidText}}}),s.jsxs("div",{className:"pb-2 text-start text-sm dark:text-gray-300",children:[((u=e.texts)==null?void 0:u.dontHaveAccount)??"Don't have an account? ",s.jsx("span",{onClick:e.handleRouteToSignUp,className:"clickable-link",children:((c=e.texts)==null?void 0:c.signUpText)??"Sign Up"})]})]}),s.jsx(Fn,{children:s.jsx(qe,{type:"submit",className:"w-full",children:(m=e.texts)==null?void 0:m.resetPassword})})]})]})})},RO=e=>{const[t,r]=h.useState(null);return s.jsx(Gt,{children:s.jsxs($t,{headless:!0,children:[e.showError&&s.jsx(qn,{title:e.errorTitle,text:e.errorText,severity:"error"}),s.jsxs("div",{className:"mb-4 dark:text-white",children:[s.jsx("div",{className:"text-lg font-bold",children:e.texts.checkYourPhone??"Please check your phone"}),s.jsxs("div",{className:"text-muted-foreground",children:[s.jsx("span",{children:e.texts.weSentCode??"We've sent a code to "}),s.jsx("span",{children:e.phoneNumber})]})," "]}),s.jsxs("form",{onSubmit:n=>{n.preventDefault(),t&&e.submitConfirmation(t)},children:[s.jsx(yg,{width:"full",digits:6,getPins:n=>r(n)}),s.jsxs("div",{className:" py-2 text-center text-xs text-muted-foreground",children:[s.jsx("span",{children:e.texts.didntGetCode??"Didn't get the code?"})," ",s.jsx("span",{className:"clickable-link",children:e.texts.resendCode??"Click to resend"})]}),s.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-2",children:[s.jsx(qe,{variant:"secondary",children:e.texts.cancel??"Cancel"}),s.jsx(qe,{children:e.texts.confirm??"Confirm"})]})]})]})})},$O=({texts:e,handleResend:t})=>s.jsxs(Gt,{children:[s.jsx($t,{headless:!0,children:s.jsxs("div",{className:"flex flex-col items-center justify-center text-center",children:[s.jsx("div",{className:"flex h-16 w-16 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground",children:s.jsxs("svg",{stroke:"currentColor",fill:"none","stroke-width":"2",viewBox:"0 0 24 24","stroke-linecap":"round","stroke-linejoin":"round",height:"0.5em",width:"0.5em",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),s.jsx("polyline",{points:"22,6 12,13 2,6"})]})}),s.jsx("div",{className:"m-2 text-xl font-bold",children:(e==null?void 0:e.checkEmail)??"Check you email"}),s.jsx("div",{className:"text-sm",children:(e==null?void 0:e.pleaseVerify)??"Thank you for signing up! To complete your registration, we've sent a verification email to the address you provided. Please check your inbox and follow the instructions in the email to activate your account."})]})}),s.jsx(Fn,{className:"flex flex-col justify-center ",children:s.jsx("span",{className:"clickable-link text-sm",onClick:t,children:(e==null?void 0:e.resendEmail)??"Resend Email"})})]}),LO=e=>{const[t,r]=h.useState("");return s.jsxs(Gt,{children:[s.jsxs(Ca,{children:[s.jsx(wa,{children:"Choose Payment Method"}),s.jsx(ii,{children:"And you'll be directed to the next step to complete the payment"})]}),s.jsxs($t,{className:"grid grid-cols-2 gap-4",children:[s.jsxs(qe,{className:Ve("flex w-full flex-col gap-2 pt-6",t==="mada"&&"outline outline-4 outline-primary"),variant:"outline",size:"heightless",disabled:!e.viaMada,onClick:()=>r("mada"),children:[s.jsx("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/mada.png",className:"h-6"}),s.jsx("span",{children:e.madaLabel})]}),s.jsxs(qe,{className:Ve("flex w-full flex-col gap-2",t==="apple-pay"&&"outline outline-4 outline-primary"),variant:"outline",size:"heightless",disabled:!e.viaApplePay,onClick:()=>r("apple-pay"),children:[s.jsx("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/apple-pay.png",className:"h-11"}),s.jsx("span",{children:e.applePayLabel})]}),s.jsxs(qe,{className:Ve("flex w-full flex-col gap-2",t==="visa-master"&&"outline outline-4 outline-primary"),variant:"outline",size:"heightless",disabled:!e.viaCreditCard,onClick:()=>r("visa-master"),children:[s.jsx("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/visa-master.png",className:"h-6"}),s.jsx("span",{children:e.visaMasterLabel})]}),s.jsxs(qe,{variant:"outline",size:"heightless",className:Ve("flex w-full flex-col gap-2",t==="wallet"&&"outline outline-4 outline-primary"),disabled:!e.viaWallet,onClick:()=>r("wallet"),children:[s.jsx("svg",{version:"1.1",fill:"currentColor",viewBox:"0 0 223 223",className:"h-6 w-6",children:s.jsxs("g",{children:[s.jsx("path",{d:`M223,94.5c0-6.075-4.925-11-11-11h-63c-6.075,0-11,4.925-11,11v33c0,6.075,4.925,11,11,11h63c6.075,0,11-4.925,11-11V94.5z
227
+ Defaulting to \`${Eg}\`.`}function _2(e){return yB.includes(e)}const W2=L2,V2=je.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},a)=>s.jsx(W2,{ref:a,decorative:r,orientation:t,className:Ve("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));V2.displayName=W2.displayName;const H2="ToastProvider",[Dg,wB,EB]=Gc("Toast"),[z2,PN]=Dn("Toast",[EB]),[DB,Hd]=z2(H2),G2=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:a="right",swipeThreshold:o=50,children:i}=e,[l,u]=h.useState(null),[c,m]=h.useState(0),p=h.useRef(!1),x=h.useRef(!1);return h.createElement(Dg.Provider,{scope:t},h.createElement(DB,{scope:t,label:r,duration:n,swipeDirection:a,swipeThreshold:o,toastCount:c,viewport:l,onViewportChange:u,onToastAdd:h.useCallback(()=>m(C=>C+1),[]),onToastRemove:h.useCallback(()=>m(C=>C-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:x},i))};G2.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${H2}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const SB="ToastViewport",AB=["F8"],Sg="toast.viewportPause",Ag="toast.viewportResume",FB=h.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=AB,label:a="Notifications ({hotkey})",...o}=e,i=Hd(SB,r),l=wB(r),u=h.useRef(null),c=h.useRef(null),m=h.useRef(null),p=h.useRef(null),x=Kt(t,p,i.onViewportChange),C=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=i.toastCount>0;h.useEffect(()=>{const A=S=>{var j;n.every(L=>S[L]||S.code===L)&&((j=p.current)===null||j===void 0||j.focus())};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[n]),h.useEffect(()=>{const A=u.current,S=p.current;if(E&&A&&S){const j=()=>{if(!i.isClosePausedRef.current){const z=new CustomEvent(Sg);S.dispatchEvent(z),i.isClosePausedRef.current=!0}},O=()=>{if(i.isClosePausedRef.current){const z=new CustomEvent(Ag);S.dispatchEvent(z),i.isClosePausedRef.current=!1}},L=z=>{!A.contains(z.relatedTarget)&&O()},M=()=>{A.contains(document.activeElement)||O()};return A.addEventListener("focusin",j),A.addEventListener("focusout",L),A.addEventListener("pointermove",j),A.addEventListener("pointerleave",M),window.addEventListener("blur",j),window.addEventListener("focus",O),()=>{A.removeEventListener("focusin",j),A.removeEventListener("focusout",L),A.removeEventListener("pointermove",j),A.removeEventListener("pointerleave",M),window.removeEventListener("blur",j),window.removeEventListener("focus",O)}}},[E,i.isClosePausedRef]);const v=h.useCallback(({tabbingDirection:A})=>{const j=l().map(O=>{const L=O.ref.current,M=[L,...HB(L)];return A==="forwards"?M:M.reverse()});return(A==="forwards"?j.reverse():j).flat()},[l]);return h.useEffect(()=>{const A=p.current;if(A){const S=j=>{const O=j.altKey||j.ctrlKey||j.metaKey;if(j.key==="Tab"&&!O){const oe=document.activeElement,J=j.shiftKey;if(j.target===A&&J){var M;(M=c.current)===null||M===void 0||M.focus();return}const Q=v({tabbingDirection:J?"backwards":"forwards"}),ce=Q.findIndex(N=>N===oe);if(Fg(Q.slice(ce+1)))j.preventDefault();else{var z,H;J?(z=c.current)===null||z===void 0||z.focus():(H=m.current)===null||H===void 0||H.focus()}}};return A.addEventListener("keydown",S),()=>A.removeEventListener("keydown",S)}},[l,v]),h.createElement(sD,{ref:u,role:"region","aria-label":a.replace("{hotkey}",C),tabIndex:-1,style:{pointerEvents:E?void 0:"none"}},E&&h.createElement(Z2,{ref:c,onFocusFromOutsideViewport:()=>{const A=v({tabbingDirection:"forwards"});Fg(A)}}),h.createElement(Dg.Slot,{scope:r},h.createElement(St.ol,we({tabIndex:-1},o,{ref:x}))),E&&h.createElement(Z2,{ref:m,onFocusFromOutsideViewport:()=>{const A=v({tabbingDirection:"backwards"});Fg(A)}}))}),jB="ToastFocusProxy",Z2=h.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...a}=e,o=Hd(jB,r);return h.createElement(cp,we({"aria-hidden":!0,tabIndex:0},a,{ref:t,style:{position:"fixed"},onFocus:i=>{var l;const u=i.relatedTarget;!((l=o.viewport)!==null&&l!==void 0&&l.contains(u))&&n()}}))}),zd="Toast",IB="toast.swipeStart",TB="toast.swipeMove",kB="toast.swipeCancel",BB="toast.swipeEnd",PB=h.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:a,onOpenChange:o,...i}=e,[l=!0,u]=Rn({prop:n,defaultProp:a,onChange:o});return h.createElement(sn,{present:r||l},h.createElement(U2,we({open:l},i,{ref:t,onClose:()=>u(!1),onPause:Ur(e.onPause),onResume:Ur(e.onResume),onSwipeStart:at(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:at(e.onSwipeMove,c=>{const{x:m,y:p}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:at(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:at(e.onSwipeEnd,c=>{const{x:m,y:p}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),u(!1)})})))}),[OB,NB]=z2(zd,{onClose(){}}),U2=h.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:a,open:o,onClose:i,onEscapeKeyDown:l,onPause:u,onResume:c,onSwipeStart:m,onSwipeMove:p,onSwipeCancel:x,onSwipeEnd:C,...E}=e,v=Hd(zd,r),[A,S]=h.useState(null),j=Kt(t,N=>S(N)),O=h.useRef(null),L=h.useRef(null),M=a||v.duration,z=h.useRef(0),H=h.useRef(M),oe=h.useRef(0),{onToastAdd:J,onToastRemove:ge}=v,xe=Ur(()=>{var N;(A==null?void 0:A.contains(document.activeElement))&&((N=v.viewport)===null||N===void 0||N.focus()),i()}),Q=h.useCallback(N=>{!N||N===1/0||(window.clearTimeout(oe.current),z.current=new Date().getTime(),oe.current=window.setTimeout(xe,N))},[xe]);h.useEffect(()=>{const N=v.viewport;if(N){const W=()=>{Q(H.current),c==null||c()},ee=()=>{const de=new Date().getTime()-z.current;H.current=H.current-de,window.clearTimeout(oe.current),u==null||u()};return N.addEventListener(Sg,ee),N.addEventListener(Ag,W),()=>{N.removeEventListener(Sg,ee),N.removeEventListener(Ag,W)}}},[v.viewport,M,u,c,Q]),h.useEffect(()=>{o&&!v.isClosePausedRef.current&&Q(M)},[o,M,v.isClosePausedRef,Q]),h.useEffect(()=>(J(),()=>ge()),[J,ge]);const ce=h.useMemo(()=>A?Q2(A):null,[A]);return v.viewport?h.createElement(h.Fragment,null,ce&&h.createElement(MB,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},ce),h.createElement(OB,{scope:r,onClose:xe},Qo.createPortal(h.createElement(Dg.ItemSlot,{scope:r},h.createElement(iD,{asChild:!0,onEscapeKeyDown:at(l,()=>{v.isFocusedToastEscapeKeyDownRef.current||xe(),v.isFocusedToastEscapeKeyDownRef.current=!1})},h.createElement(St.li,we({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":v.swipeDirection},E,{ref:j,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:at(e.onKeyDown,N=>{N.key==="Escape"&&(l==null||l(N.nativeEvent),N.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,xe()))}),onPointerDown:at(e.onPointerDown,N=>{N.button===0&&(O.current={x:N.clientX,y:N.clientY})}),onPointerMove:at(e.onPointerMove,N=>{if(!O.current)return;const W=N.clientX-O.current.x,ee=N.clientY-O.current.y,de=!!L.current,ne=["left","right"].includes(v.swipeDirection),te=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,K=ne?te(0,W):0,se=ne?0:te(0,ee),fe=N.pointerType==="touch"?10:2,Se={x:K,y:se},G={originalEvent:N,delta:Se};de?(L.current=Se,Gd(TB,p,G,{discrete:!1})):K2(Se,v.swipeDirection,fe)?(L.current=Se,Gd(IB,m,G,{discrete:!1}),N.target.setPointerCapture(N.pointerId)):(Math.abs(W)>fe||Math.abs(ee)>fe)&&(O.current=null)}),onPointerUp:at(e.onPointerUp,N=>{const W=L.current,ee=N.target;if(ee.hasPointerCapture(N.pointerId)&&ee.releasePointerCapture(N.pointerId),L.current=null,O.current=null,W){const de=N.currentTarget,ne={originalEvent:N,delta:W};K2(W,v.swipeDirection,v.swipeThreshold)?Gd(BB,C,ne,{discrete:!0}):Gd(kB,x,ne,{discrete:!0}),de.addEventListener("click",te=>te.preventDefault(),{once:!0})}})})))),v.viewport))):null});U2.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${zd}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const MB=e=>{const{__scopeToast:t,children:r,...n}=e,a=Hd(zd,t),[o,i]=h.useState(!1),[l,u]=h.useState(!1);return WB(()=>i(!0)),h.useEffect(()=>{const c=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(c)},[]),l?null:h.createElement(Jc,{asChild:!0},h.createElement(cp,n,o&&h.createElement(h.Fragment,null,a.label," ",r)))},RB=h.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return h.createElement(St.div,we({},n,{ref:t}))}),$B=h.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return h.createElement(St.div,we({},n,{ref:t}))}),LB="ToastAction",X2=h.forwardRef((e,t)=>{const{altText:r,...n}=e;return r?h.createElement(J2,{altText:r,asChild:!0},h.createElement(Y2,we({},n,{ref:t}))):null});X2.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${LB}\``)}};const _B="ToastClose",Y2=h.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,a=NB(_B,r);return h.createElement(J2,{asChild:!0},h.createElement(St.button,we({type:"button"},n,{ref:t,onClick:at(e.onClick,a.onClose)})))}),J2=h.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...a}=e;return h.createElement(St.div,we({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},a,{ref:t}))});function Q2(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),VB(n)){const a=n.ariaHidden||n.hidden||n.style.display==="none",o=n.dataset.radixToastAnnounceExclude==="";if(!a)if(o){const i=n.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...Q2(n))}}),t}function Gd(e,t,r,{discrete:n}){const a=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?Jf(a,o):a.dispatchEvent(o)}const K2=(e,t,r=0)=>{const n=Math.abs(e.x),a=Math.abs(e.y),o=n>a;return t==="left"||t==="right"?o&&n>r:!o&&a>r};function WB(e=()=>{}){const t=Ur(e);xo(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function VB(e){return e.nodeType===e.ELEMENT_NODE}function HB(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Fg(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}const zB=G2,q2=FB,eC=PB,tC=RB,rC=$B,nC=X2,aC=Y2,GB=Qf("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"},severity:{info:"info group text-info-foreground bg-info",warning:"warning group text-warning-foreground bg-warning",error:"error group border-error bg-error text-error-foreground",success:"success group text-success-foreground bg-success",none:""}},defaultVariants:{variant:"default"}}),oC=zB,jg=je.forwardRef(({className:e,...t},r)=>s.jsx(q2,{ref:r,className:Ve("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));jg.displayName=q2.displayName;const Ig=je.forwardRef(({className:e,variant:t,severity:r="none",direction:n,...a},o)=>s.jsx(eC,{ref:o,className:Ve(GB({variant:t,severity:r}),e,n==="rtl"?"p-6 pl-0 pr-10 data-[state=closed]:slide-out-to-left-full":"p-6 pr-8 data-[state=closed]:slide-out-to-right-full"),dir:n,...a}));Ig.displayName=eC.displayName;const iC=je.forwardRef(({className:e,...t},r)=>s.jsx(nC,{ref:r,className:Ve("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50","group-[.info]:border-muted/40 group-[.info]:hover:border-info/30 group-[.info]:hover:bg-info group-[.info]:hover:text-info-foreground group-[.info]:focus:ring-info","group-[.error]:border-muted/40 group-[.error]:hover:border-error/30 group-[.error]:hover:bg-error group-[.error]:hover:text-error-foreground group-[.error]:focus:ring-error","group-[.success]:border-muted/40 group-[.success]:hover:border-success/30 group-[.success]:hover:bg-success group-[.success]:hover:text-success-foreground group-[.success]:focus:ring-success","group-[.warning]:border-muted/40 group-[.warning]:hover:border-warning/30 group-[.warning]:hover:bg-warning group-[.warning]:hover:text-warning-foreground group-[.warning]:focus:ring-warning",e),...t}));iC.displayName=nC.displayName;const Tg=je.forwardRef(({className:e,...t},r)=>s.jsx(aC,{ref:r,className:Ve("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:s.jsx("svg",{"aria-label":"Close Icon","aria-hidden":"true",className:"h-4 w-4",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}));Tg.displayName=aC.displayName;const kg=je.forwardRef(({className:e,...t},r)=>s.jsx(tC,{ref:r,className:Ve("text-sm font-semibold",e),...t}));kg.displayName=tC.displayName;const Bg=je.forwardRef(({className:e,...t},r)=>s.jsx(rC,{ref:r,className:Ve("text-sm opacity-90",e),...t}));Bg.displayName=rC.displayName;const ZB=5,UB=1e5;let Pg=0;function XB(){return Pg=(Pg+1)%Number.MAX_VALUE,Pg.toString()}const Og=new Map,sC=e=>{if(Og.has(e))return;const t=setTimeout(()=>{Og.delete(e),du({type:"REMOVE_TOAST",toastId:e})},UB);Og.set(e,t)},lC=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,ZB)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?sC(r):e.toasts.forEach(n=>{sC(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},Zd=[];let Ud={toasts:[]};function du(e){Ud=lC(Ud,e),Zd.forEach(t=>{t(Ud)})}function uC({...e}){const t=XB(),r=a=>du({type:"UPDATE_TOAST",toast:{...a,id:t}}),n=()=>du({type:"DISMISS_TOAST",toastId:t});return du({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||n()}}}),{id:t,dismiss:n,update:r}}function cC(){const[e,t]=je.useState(Ud);return je.useEffect(()=>(Zd.push(t),()=>{const r=Zd.indexOf(t);r>-1&&Zd.splice(r,1)}),[e]),{...e,toast:uC,dismiss:r=>du({type:"DISMISS_TOAST",toastId:r})}}function YB(e){const{toasts:t}=cC();let r=e.direction==="rtl";return s.jsxs(oC,{swipeDirection:r?"left":"right",children:[t.map(function({id:n,title:a,description:o,action:i,...l}){return s.jsxs(Ig,{direction:e.direction,...l,children:[s.jsxs("div",{className:"grid gap-1 text-start",children:[a&&s.jsx(kg,{children:a}),o&&s.jsx(Bg,{children:o})]}),i,s.jsx(Tg,{})]},n)}),s.jsx(jg,{className:Ve("gap-2",r&&"fixed left-0")})]})}const dC="Dialog",[fC,ON]=Dn(dC),[JB,na]=fC(dC),QB=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,l=h.useRef(null),u=h.useRef(null),[c=!1,m]=Rn({prop:n,defaultProp:a,onChange:o});return h.createElement(JB,{scope:t,triggerRef:l,contentRef:u,contentId:Sn(),titleId:Sn(),descriptionId:Sn(),open:c,onOpenChange:m,onOpenToggle:h.useCallback(()=>m(p=>!p),[m]),modal:i},r)},KB="DialogTrigger",qB=h.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=na(KB,r),o=Kt(t,a.triggerRef);return h.createElement(St.button,we({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Mg(a.open)},n,{ref:o,onClick:at(e.onClick,a.onOpenToggle)}))}),hC="DialogPortal",[eP,pC]=fC(hC,{forceMount:void 0}),tP=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:a}=e,o=na(hC,t);return h.createElement(eP,{scope:t,forceMount:r},h.Children.map(n,i=>h.createElement(sn,{present:r||o.open},h.createElement(Jc,{asChild:!0,container:a},i))))},Ng="DialogOverlay",rP=h.forwardRef((e,t)=>{const r=pC(Ng,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=na(Ng,e.__scopeDialog);return o.modal?h.createElement(sn,{present:n||o.open},h.createElement(nP,we({},a,{ref:t}))):null}),nP=h.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=na(Ng,r);return h.createElement(rp,{as:Ko,allowPinchZoom:!0,shards:[a.contentRef]},h.createElement(St.div,we({"data-state":Mg(a.open)},n,{ref:t,style:{pointerEvents:"auto",...n.style}})))}),fu="DialogContent",aP=h.forwardRef((e,t)=>{const r=pC(fu,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=na(fu,e.__scopeDialog);return h.createElement(sn,{present:n||o.open},o.modal?h.createElement(oP,we({},a,{ref:t})):h.createElement(iP,we({},a,{ref:t})))}),oP=h.forwardRef((e,t)=>{const r=na(fu,e.__scopeDialog),n=h.useRef(null),a=Kt(t,r.contentRef,n);return h.useEffect(()=>{const o=n.current;if(o)return Kh(o)},[]),h.createElement(gC,we({},e,{ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:at(e.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=r.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:at(e.onPointerDownOutside,o=>{const i=o.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&o.preventDefault()}),onFocusOutside:at(e.onFocusOutside,o=>o.preventDefault())}))}),iP=h.forwardRef((e,t)=>{const r=na(fu,e.__scopeDialog),n=h.useRef(!1),a=h.useRef(!1);return h.createElement(gC,we({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,o),!o.defaultPrevented){var l;n.current||(l=r.triggerRef.current)===null||l===void 0||l.focus(),o.preventDefault()}n.current=!1,a.current=!1},onInteractOutside:o=>{var i,l;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const u=o.target;((l=r.triggerRef.current)===null||l===void 0?void 0:l.contains(u))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}}))}),gC=h.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,l=na(fu,r),u=h.useRef(null),c=Kt(t,u);return Vh(),h.createElement(h.Fragment,null,h.createElement(Gh,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:o},h.createElement(zl,we({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Mg(l.open)},i,{ref:c,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),sP="DialogTitle",lP=h.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=na(sP,r);return h.createElement(St.h2,we({id:a.titleId},n,{ref:t}))}),uP="DialogDescription",cP=h.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=na(uP,r);return h.createElement(St.p,we({id:a.descriptionId},n,{ref:t}))}),dP="DialogClose",fP=h.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=na(dP,r);return h.createElement(St.button,we({type:"button"},n,{ref:t,onClick:at(e.onClick,()=>a.onOpenChange(!1))}))});function Mg(e){return e?"open":"closed"}const hP=QB,pP=qB,mC=tP,vC=rP,bC=aP,xC=lP,yC=cP,gP=fP,mP=hP,vP=pP,CC=({className:e,...t})=>s.jsx(mC,{className:Ve(e),...t});CC.displayName=mC.displayName;const wC=je.forwardRef(({className:e,...t},r)=>s.jsx(vC,{ref:r,className:Ve("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));wC.displayName=vC.displayName;const EC=je.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(CC,{children:[s.jsx(wC,{}),s.jsxs(bC,{ref:n,className:Ve("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",e),...r,children:[t,s.jsxs(gP,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[s.jsx("svg",{"aria-label":"Close Icon","aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));EC.displayName=bC.displayName;const DC=({className:e,...t})=>s.jsx("div",{className:Ve("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});DC.displayName="DialogHeader";const SC=({className:e,...t})=>s.jsx("div",{className:Ve("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});SC.displayName="DialogFooter";const AC=je.forwardRef(({className:e,...t},r)=>s.jsx(xC,{ref:r,className:Ve("text-lg font-semibold leading-none tracking-tight",e),...t}));AC.displayName=xC.displayName;const FC=je.forwardRef(({className:e,...t},r)=>s.jsx(yC,{ref:r,className:Ve("text-sm text-muted-foreground",e),...t}));FC.displayName=yC.displayName;const bP=e=>s.jsx("div",{children:e.children}),xP=e=>s.jsx("div",{className:"fixed bottom-0 top-auto left-0 m-0 w-full max-w-full p-1",children:s.jsx("div",{className:"flex w-full flex-row items-center justify-evenly rounded bg-gray-200",children:e.appBarContent.map((t,r)=>s.jsxs("div",{className:"m-1 flex h-full w-full flex-col items-center justify-center rounded p-2 transition-all hover:cursor-pointer hover:bg-buttonPrimary-700 hover:text-white",onClick:t.action,children:[s.jsx("div",{children:t.icon}),s.jsx("div",{className:"mt-2 text-sm",children:t.label})]},r))})}),Rg=(e=!1)=>{const[t,r]=h.useState(e);return{isOpen:t,onOpen:()=>r(!0),onClose:()=>r(!1)}},Xd=()=>{const[e,t]=h.useState(window==null?void 0:window.innerWidth),r=()=>{t(window==null?void 0:window.innerWidth)};return h.useEffect(()=>{if(typeof window<"u")return window==null||window.addEventListener("resize",r),()=>{window==null||window.removeEventListener("resize",r)}},[]),e},yP=({direction:e="rtl",navigationSize:t="md",...r})=>{var m;const[n,a]=h.useState(!1);h.useState(!1),Rg(!1);const o=h.useRef(null);h.useRef(null);let i;typeof window<"u"?i=Xd():i=1200;const[l,u]=h.useState(!1);h.useEffect(()=>{const p=x=>{o.current&&!o.current.contains(x.target)&&!l&&a(!1)};return document.addEventListener("click",p,!0),()=>{document.removeEventListener("click",p,!0)}},[l]);let c={sm:"h-10",md:"",lg:"h-24"};return s.jsxs("div",{className:"h-full w-full",children:[s.jsxs("div",{className:$e("z-30 flex w-auto select-none flex-row items-start justify-between bg-layoutPrimary-500 transition-all",c[t],"rounded p-3 ",n?"h-44":"h-14",r.stickyNav?"fixed left-4 right-4 top-4":"",e==="rtl"?"flex-row":"flex-row-reverse"),children:[i>600?s.jsx("div",{className:"flex flex-row h-8 items-center gap-4 px-3",children:(m=r.navItems)==null?void 0:m.map(({label:p},x)=>s.jsx("div",{onClick:()=>a(!n),className:"cursor-pointer rounded bg-none text-gray-600 transition-all hover:text-black",children:p},x))}):s.jsxs("div",{className:"flex items-center justify-center",children:[s.jsxs("div",{onClick:()=>a(!n),className:"cursor-pointer rounded p-1 transition-all hover:bg-gray-100",children:[s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1.6em",width:"1.6em",children:s.jsx("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"})})," "]}),r.pageTitle?s.jsx("div",{children:r.pageTitle}):s.jsx("div",{})]}),s.jsx("div",{className:"h-full",children:s.jsx("img",{className:"h-full max-h-8 ",src:`https://sikka-images.s3.ap-southeast-1.amazonaws.com/seera/seera-horizontal-wordmark-${e==="rtl"?"ar":"en"}-white.svg`})})]}),s.jsx("div",{className:$e(" relative top-14"),children:r.children})]})},jC="Collapsible",[CP,IC]=Dn(jC),[wP,$g]=CP(jC),EP=h.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:a,disabled:o,onOpenChange:i,...l}=e,[u=!1,c]=Rn({prop:n,defaultProp:a,onChange:i});return h.createElement(wP,{scope:r,disabled:o,contentId:Sn(),open:u,onOpenToggle:h.useCallback(()=>c(m=>!m),[c])},h.createElement(St.div,we({"data-state":Lg(u),"data-disabled":o?"":void 0},l,{ref:t})))}),DP="CollapsibleTrigger",SP=h.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,a=$g(DP,r);return h.createElement(St.button,we({type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":Lg(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled},n,{ref:t,onClick:at(e.onClick,a.onOpenToggle)}))}),TC="CollapsibleContent",AP=h.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=$g(TC,e.__scopeCollapsible);return h.createElement(sn,{present:r||a.open},({present:o})=>h.createElement(FP,we({},n,{ref:t,present:o})))}),FP=h.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:a,...o}=e,i=$g(TC,r),[l,u]=h.useState(n),c=h.useRef(null),m=Kt(t,c),p=h.useRef(0),x=p.current,C=h.useRef(0),E=C.current,v=i.open||l,A=h.useRef(v),S=h.useRef();return h.useEffect(()=>{const j=requestAnimationFrame(()=>A.current=!1);return()=>cancelAnimationFrame(j)},[]),xo(()=>{const j=c.current;if(j){S.current=S.current||{transitionDuration:j.style.transitionDuration,animationName:j.style.animationName},j.style.transitionDuration="0s",j.style.animationName="none";const O=j.getBoundingClientRect();p.current=O.height,C.current=O.width,A.current||(j.style.transitionDuration=S.current.transitionDuration,j.style.animationName=S.current.animationName),u(n)}},[i.open,n]),h.createElement(St.div,we({"data-state":Lg(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!v},o,{ref:m,style:{"--radix-collapsible-content-height":x?`${x}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...e.style}}),v&&a)});function Lg(e){return e?"open":"closed"}const jP=EP,IP=SP,TP=AP,Fo="Accordion",kP=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[_g,BP,PP]=Gc(Fo),[Yd,RN]=Dn(Fo,[PP,IC]),Wg=IC(),kC=h.forwardRef((e,t)=>{const{type:r,...n}=e,a=n,o=n;return h.createElement(_g.Provider,{scope:e.__scopeAccordion},r==="multiple"?h.createElement(RP,we({},o,{ref:t})):h.createElement(MP,we({},a,{ref:t})))});kC.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[BC,OP]=Yd(Fo),[PC,NP]=Yd(Fo,{collapsible:!1}),MP=h.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},collapsible:o=!1,...i}=e,[l,u]=Rn({prop:r,defaultProp:n,onChange:a});return h.createElement(BC,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:u,onItemClose:h.useCallback(()=>o&&u(""),[o,u])},h.createElement(PC,{scope:e.__scopeAccordion,collapsible:o},h.createElement(OC,we({},i,{ref:t}))))}),RP=h.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},...o}=e,[i=[],l]=Rn({prop:r,defaultProp:n,onChange:a}),u=h.useCallback(m=>l((p=[])=>[...p,m]),[l]),c=h.useCallback(m=>l((p=[])=>p.filter(x=>x!==m)),[l]);return h.createElement(BC,{scope:e.__scopeAccordion,value:i,onItemOpen:u,onItemClose:c},h.createElement(PC,{scope:e.__scopeAccordion,collapsible:!0},h.createElement(OC,we({},o,{ref:t}))))}),[$P,Jd]=Yd(Fo),OC=h.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:a,orientation:o="vertical",...i}=e,l=h.useRef(null),u=Kt(l,t),c=BP(r),p=Zc(a)==="ltr",x=at(e.onKeyDown,C=>{var E;if(!kP.includes(C.key))return;const v=C.target,A=c().filter(J=>{var ge;return!((ge=J.ref.current)!==null&&ge!==void 0&&ge.disabled)}),S=A.findIndex(J=>J.ref.current===v),j=A.length;if(S===-1)return;C.preventDefault();let O=S;const L=0,M=j-1,z=()=>{O=S+1,O>M&&(O=L)},H=()=>{O=S-1,O<L&&(O=M)};switch(C.key){case"Home":O=L;break;case"End":O=M;break;case"ArrowRight":o==="horizontal"&&(p?z():H());break;case"ArrowDown":o==="vertical"&&z();break;case"ArrowLeft":o==="horizontal"&&(p?H():z());break;case"ArrowUp":o==="vertical"&&H();break}const oe=O%j;(E=A[oe].ref.current)===null||E===void 0||E.focus()});return h.createElement($P,{scope:r,disabled:n,direction:a,orientation:o},h.createElement(_g.Slot,{scope:r},h.createElement(St.div,we({},i,{"data-orientation":o,ref:u,onKeyDown:n?void 0:x}))))}),Vg="AccordionItem",[LP,Hg]=Yd(Vg),_P=h.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...a}=e,o=Jd(Vg,r),i=OP(Vg,r),l=Wg(r),u=Sn(),c=n&&i.value.includes(n)||!1,m=o.disabled||e.disabled;return h.createElement(LP,{scope:r,open:c,disabled:m,triggerId:u},h.createElement(jP,we({"data-orientation":o.orientation,"data-state":MC(c)},l,a,{ref:t,disabled:m,open:c,onOpenChange:p=>{p?i.onItemOpen(n):i.onItemClose(n)}})))}),WP="AccordionHeader",VP=h.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,a=Jd(Fo,r),o=Hg(WP,r);return h.createElement(St.h3,we({"data-orientation":a.orientation,"data-state":MC(o.open),"data-disabled":o.disabled?"":void 0},n,{ref:t}))}),NC="AccordionTrigger",HP=h.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,a=Jd(Fo,r),o=Hg(NC,r),i=NP(NC,r),l=Wg(r);return h.createElement(_g.ItemSlot,{scope:r},h.createElement(IP,we({"aria-disabled":o.open&&!i.collapsible||void 0,"data-orientation":a.orientation,id:o.triggerId},l,n,{ref:t})))}),zP="AccordionContent",GP=h.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,a=Jd(Fo,r),o=Hg(zP,r),i=Wg(r);return h.createElement(TP,we({role:"region","aria-labelledby":o.triggerId,"data-orientation":a.orientation},i,n,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function MC(e){return e?"open":"closed"}const ZP=kC,UP=_P,XP=VP,RC=HP,$C=GP,YP=ZP;let LC="flex flex-1 items-center select-none cursor-pointer bg-primary-foreground rounded justify-between p-2 px-3 font-medium transition-all [&[data-state=open]>svg]:-rotate-90";const _C=je.forwardRef(({className:e,...t},r)=>s.jsx(UP,{ref:r,className:Ve(e),...t}));_C.displayName="AccordionItem";const WC=je.forwardRef(({className:e,showArrow:t,children:r,...n},a)=>s.jsx(XP,{className:"flex",children:s.jsxs(RC,{ref:a,className:Ve(LC,e),...n,children:[r,t&&s.jsx("svg",{"aria-label":"Chevron Right Icon",stroke:"currentColor",fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",className:"h-4 w-4 shrink-0 rotate-90 transition-transform duration-200",children:s.jsx("path",{d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"})})]})}));WC.displayName=RC.displayName;const VC=je.forwardRef(({className:e,children:t,...r},n)=>s.jsx($C,{ref:n,className:Ve("overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",e),...r,children:s.jsx("div",{children:t})}));VC.displayName=$C.displayName;const HC=({title:e,items:t,selectedItem:r,openedItem:n,setOpenedItem:a,onItemClick:o,onSubItemClick:i,direction:l,isOpen:u})=>s.jsxs("div",{children:[e&&s.jsx("h3",{className:"mb-1 font-bold",children:e}),s.jsx("ul",{className:"flex flex-col gap-2",children:s.jsx(YP,{value:n,type:"single",onValueChange:c=>{a(c)},collapsible:!0,className:"flex flex-col gap-1",children:t.map((c,m)=>s.jsx(zC,{isOpen:u,selectedItem:r,direction:l,item:c,onItemClick:o,onSubItemClick:i},m))})})]}),zC=({item:e,onItemClick:t,onSubItemClick:r,direction:n,isOpen:a=!0,...o})=>{const i=l=>o.selectedItem===l?"bg-primary text-primary-foreground cursor-default":"hover:bg-primary/10";return e.subitems?s.jsxs(_C,{value:e.value,className:"overflow-x-clip",dir:n,children:[s.jsx(WC,{className:Ve("overflow-x-clip",o.selectedItem===e.value?"cursor-default bg-primary text-primary-foreground":"hover:bg-primary/10",e.subitems&&e.subitems.some(l=>o.selectedItem===l.value)?"bg-primary text-primary-foreground hover:bg-primary":""),showArrow:a,children:s.jsxs("div",{className:Ve(!a&&"py-1","flex w-fit flex-row items-center gap-2"),children:[e.icon,a&&s.jsx("span",{className:Ve("transition-all ",a?"opacity-100":"opacity-0"),children:e.label})]})}),e.subitems&&s.jsx(VC,{className:" mt-1 h-full rounded ",children:s.jsx("div",{className:Ve("flex h-full flex-col gap-2 bg-foreground/5 p-1"),children:e.subitems.map((l,u)=>s.jsxs("li",{onClick:c=>{c.stopPropagation(),l.onClick(),r&&r([e.value,l.value])},className:Ve("flex h-full cursor-pointer flex-row items-center gap-2 rounded p-2 transition-all",i(l.value)),children:[l.icon,l.label]},u))})})]}):s.jsx("div",{dir:n,onClick:()=>{e.onClick(),t&&t([e.value])},className:Ve(LC,i(e.value),"overflow-x-clip "),children:s.jsxs("div",{className:"flex flex-row items-center gap-2 ",children:[e.icon,s.jsx("span",{className:Ve("whitespace-nowrap transition-all",a?"opacity-100":"opacity-0"),children:e.label})]})})},JP=({direction:e="ltr",drawerSize:t="md",onSettingsClick:r,DrawerFooterActions:n,currentPage:a,clickedItem:o,design:i="default",...l})=>{var M,z;let u=56,c=200,m={opened:{sm:"100",md:c,lg:"250"},closed:{sm:u,md:u,lg:u}};const p=h.useRef(null),x=e==="rtl",[C,E]=h.useState("");h.useState(a);let v;typeof window<"u"?v=Xd():v=1200;const[A,S]=h.useState(()=>v>600?l.keepDrawerOpen!==void 0?l.keepDrawerOpen:!0:!1),[j,O]=h.useState(v>600);let L=v>600?m[A?"opened":"closed"][t]:0;return h.useEffect(()=>{const H=oe=>{p.current&&!p.current.contains(oe.target)&&!A&&O(!1)};return document.addEventListener("click",H,!0),()=>{document.removeEventListener("click",H,!0)}},[A]),s.jsxs("div",{className:"fixed left-0",children:[l.topBar&&s.jsxs("div",{className:$e("fixed left-0 right-0 top-0 z-30 flex h-14 w-full items-center justify-between bg-primary-foreground p-2",x?"flex-row-reverse":"flex-row"),children:[v>600?s.jsx("div",{className:$e("dark:text-white",x?[v>600?"mr-14":"mr-2",A?"mr-40":""]:[v>600?"ml-14":"ml-2",A?"ml-40":""]),style:x?{marginRight:`${m[A?"opened":"closed"][t]}px`}:{marginLeft:`${m[A?"opened":"closed"][t]}px`},children:l.pageTitle}):s.jsxs("div",{dir:e,className:"flex items-center justify-center gap-0.5",children:[s.jsx("div",{onClick:()=>O(!0),className:"z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100",children:s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:0,viewBox:"0 0 20 20","aria-hidden":"true",height:"1.6em",width:"1.6em",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"})})}),l.pageTitle?s.jsx("div",{className:"text-sm",children:l.pageTitle}):s.jsx("div",{})]}),s.jsxs("div",{className:$e("flex gap-2 dark:text-white",x?"flex-row-reverse":"flex-row"),children:[v>600?s.jsxs("div",{className:x?"text-left text-xs":"text-right text-xs",children:[s.jsx("div",{className:"font-bold",children:l.username})," ",s.jsx("div",{children:l.email})]}):null,s.jsx(Xl,{triggerClassname:"mx-2",align:"end",alignOffset:8,side:"bottom",sideOffset:5,width:l.profileMenuWidth,direction:x?"rtl":"ltr",items:l.profileMenuItems,onItemSelect:H=>console.log("selecting item ",H),trigger:s.jsx("div",{className:"relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600",children:l.avatarImage?s.jsx("img",{src:l.avatarImage,alt:"User Avatar"}):s.jsx("svg",{"aria-label":"Avatar Icon",className:"absolute -left-1 h-10 w-10 text-gray-400",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})})})})]})]}),s.jsxs("div",{className:$e("fixed z-40 flex flex-col justify-between overflow-x-clip transition-all",i==="floating"?x?"right-5 top-5":"bottom-5 left-5 top-5":x?"right-0 top-0 h-full":"left-0 top-0 h-full"),style:{width:v>600?j?`${m.opened[t]}px`:`${m.closed[t]}px`:j?`${m.opened[t]}px`:"0px"},onMouseEnter:()=>{O(!0)},onMouseLeave:()=>{A?O(!0):(E(""),O(!1))},ref:p,children:[s.jsxs("div",{dir:e,className:"fixed z-50 mb-2 flex h-14 w-full flex-row items-center justify-center bg-primary-foreground transition-all",style:{width:v>600?`${j?c:56}px`:`${j?c:0}px`},children:[s.jsx("img",{className:$e("h-9 opacity-0 transition-all",j?"visible opacity-100":"invisible opacity-0"),src:l.logoLink}),v>600?s.jsx("img",{className:$e("fixed h-9 transition-all",i==="floating"?x?"right-7.5 top-7":"left-7.5 top-7":x?"right-2.5 top-2.5":"left-2.5 top-2.5",j?"invisible opacity-0":"visible opacity-100"),src:l.logoSymbol}):null]}),s.jsx("div",{className:$e("fixed bottom-14 bg-primary-foreground p-2 py-2 transition-all",i==="floating"?"top-[76px]":"top-14",j?"overflow-auto":"overflow-hidden"),style:{height:i==="floating"?"calc(100% - 152px)":"calc(100% - 112px)",width:v>600?`${j?c:56}px`:`${j?c:0}px`},children:s.jsx(HC,{direction:e,onItemClick:H=>{o&&o(H)},onSubItemClick:H=>{o&&o(H)},selectedItem:a,openedItem:C,setOpenedItem:H=>E(H),isOpen:j,items:l.drawerItems})}),s.jsxs("div",{className:$e("fixed flex h-14 w-full items-center justify-center gap-2 overflow-clip bg-primary-foreground transition-all",e==="rtl"?"flex-row-reverse":"flex-row",i==="floating"?"bottom-5":"bottom-0"),style:{width:v>600?`${j?c:56}px`:`${j?c:0}px`},children:[n&&j?s.jsx(s.Fragment,{children:n}):null,v>600&&j?s.jsx(ms,{side:"left",delayDuration:500,content:A?((M=l.texts)==null?void 0:M.collapseSidebar)||"Collapse Sidebar":((z=l.texts)==null?void 0:z.expandSidebar)||"Expand Sidebar",children:s.jsx(qe,{variant:"light",onClick:()=>{S(!A),l.onDrawerExpand&&l.onDrawerExpand(A)},size:"smallIcon",children:s.jsx("svg",{className:$e("h-6 w-6 shrink-0 text-primary transition-all disabled:bg-gray-200 ",A?x?"-rotate-90":"rotate-90":x?"rotate-90":"-rotate-90"),fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})})}):null]})]}),s.jsx("div",{className:"fixed overflow-y-auto transition-all",style:i==="floating"?x?{height:`calc(100% - ${l.topBar?"56":"0"}px)`,width:`calc(100% - ${L+20}px)`,left:"0px",top:l.topBar?"56px":"0px"}:{height:`calc(100% - ${l.topBar?"56":"0"}px)`,width:`calc(100% - ${L+20}px)`,left:`${L+20}px`,top:l.topBar?"56px":"0px"}:x?{height:`calc(100% - ${l.topBar?"56":"0"}px)`,width:`calc(100% - ${L}px)`,left:"0px",top:l.topBar?"56px":"0px"}:{height:`calc(100% - ${l.topBar?"56":"0"}px)`,width:`calc(100% - ${L}px)`,left:`${L}px`,top:l.topBar?"56px":"0px"},children:l.children})]})};var GC={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ZC=h.createContext&&h.createContext(GC),jo=globalThis&&globalThis.__assign||function(){return jo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},jo.apply(this,arguments)},QP=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function UC(e){return e&&e.map(function(t,r){return h.createElement(t.tag,jo({key:r},t.attr),UC(t.child))})}function hu(e){return function(t){return h.createElement(KP,jo({attr:jo({},e.attr)},t),UC(e.child))}}function KP(e){var t=function(r){var n=e.attr,a=e.size,o=e.title,i=QP(e,["attr","size","title"]),l=a||r.size||"1em",u;return r.className&&(u=r.className),e.className&&(u=(u?u+" ":"")+e.className),h.createElement("svg",jo({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,i,{className:u,style:jo(jo({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),o&&h.createElement("title",null,o),e.children)};return ZC!==void 0?h.createElement(ZC.Consumer,null,function(r){return t(r)}):t(GC)}function qP(e){return hu({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M510.846 392.673c-5.211 12.157-27.239 21.089-67.36 27.318-2.064 2.786-3.775 14.686-6.507 23.956-1.625 5.566-5.623 8.869-12.128 8.869l-.297-.005c-9.395 0-19.203-4.323-38.852-4.323-26.521 0-35.662 6.043-56.254 20.588-21.832 15.438-42.771 28.764-74.027 27.399-31.646 2.334-58.025-16.908-72.871-27.404-20.714-14.643-29.828-20.582-56.241-20.582-18.864 0-30.736 4.72-38.852 4.72-8.073 0-11.213-4.922-12.422-9.04-2.703-9.189-4.404-21.263-6.523-24.13-20.679-3.209-67.31-11.344-68.498-32.15a10.627 10.627 0 0 1 8.877-11.069c69.583-11.455 100.924-82.901 102.227-85.934.074-.176.155-.344.237-.515 3.713-7.537 4.544-13.849 2.463-18.753-5.05-11.896-26.872-16.164-36.053-19.796-23.715-9.366-27.015-20.128-25.612-27.504 2.437-12.836 21.725-20.735 33.002-15.453 8.919 4.181 16.843 6.297 23.547 6.297 5.022 0 8.212-1.204 9.96-2.171-2.043-35.936-7.101-87.29 5.687-115.969C158.122 21.304 229.705 15.42 250.826 15.42c.944 0 9.141-.089 10.11-.089 52.148 0 102.254 26.78 126.723 81.643 12.777 28.65 7.749 79.792 5.695 116.009 1.582.872 4.357 1.942 8.599 2.139 6.397-.286 13.815-2.389 22.069-6.257 6.085-2.846 14.406-2.461 20.48.058l.029.01c9.476 3.385 15.439 10.215 15.589 17.87.184 9.747-8.522 18.165-25.878 25.018-2.118.835-4.694 1.655-7.434 2.525-9.797 3.106-24.6 7.805-28.616 17.271-2.079 4.904-1.256 11.211 2.46 18.748.087.168.166.342.239.515 1.301 3.03 32.615 74.46 102.23 85.934 6.427 1.058 11.163 7.877 7.725 15.859z"}}]})(e)}function eO(e){return hu({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"}}]})(e)}function XC(e){return hu({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"}}]})(e)}const tO=({direction:e="rtl",drawerSize:t="md",onSettingsClick:r,...n})=>{var A;const[a,o]=h.useState(!1),[i,l]=h.useState("");Rg(!1);const[u,c]=h.useState(!1),m=h.useRef(null),p=e==="rtl";let x;typeof window<"u"?x=Xd():x=1200,h.useEffect(()=>{const S=j=>{m.current&&!m.current.contains(j.target)&&!u&&o(!1)};return document.addEventListener("click",S,!0),()=>{document.removeEventListener("click",S,!0)}},[u]);let C="fixed top-0 z-40 flex h-full flex-col justify-between overflow-x-clip bg-layoutPrimary-500 transition-all",E={opened:{sm:"100",md:"160",lg:"250"},closed:{sm:"56",md:"56",lg:"56"}},v=x>600?E[u?"opened":"closed"][t]:0;return s.jsxs("div",{className:"fixed",children:[n.topBar&&s.jsxs("div",{className:$e("fixed left-0 right-0 top-0 z-30 flex h-14 w-full items-center justify-between bg-layoutPrimary-500 p-2",p?"flex-row-reverse":"flex-row"),children:[x>600?n.pageTitle?s.jsx("div",{className:$e(p?[x>600?"mr-14":"mr-2",u?"mr-40":""]:[x>600?"ml-14":"ml-2",u?"ml-40":""]),style:p?{marginRight:`${E[u?"opened":"closed"][t]}px`}:{marginLeft:`${E[u?"opened":"closed"][t]}px`},children:n.pageTitle}):null:s.jsxs("div",{dir:e,className:"flex items-center justify-center gap-0.5 ",children:[s.jsxs("div",{onClick:()=>o(!0),className:"z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100",children:[s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1.6em",width:"1.6em",children:s.jsx("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"})})," "]}),n.pageTitle?s.jsx("div",{className:"text-sm",children:n.pageTitle}):s.jsx("div",{})]}),s.jsxs("div",{className:$e("flex gap-2",p?"flex-row-reverse":"flex-row"),children:[x>600?s.jsxs("div",{className:$e(p?"text-left text-xs":"text-right text-xs"),children:[s.jsx("div",{className:"font-bold",children:n.username})," ",s.jsx("div",{children:n.email})]}):null,s.jsx(dd,{direction:e,withHeader:!(x>600),headerTitle:x>600?"":n.username,headerSubtitle:x>600?"":n.email,menuItems:n.profileMenuItems,position:"bottom-left",children:s.jsx("div",{className:"relative h-8 w-8 cursor-pointer overflow-hidden rounded-full ring-1 ring-buttonPrimary-500 dark:bg-gray-600",children:s.jsx("svg",{className:"absolute -left-1 h-10 w-10 text-gray-400",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})})})})]})]}),s.jsx("div",{onMouseEnter:()=>{o(!0)},onMouseLeave:()=>o(!!u),ref:m,className:$e(C,E[t],p?"right-0":"left-0"),style:{width:x>600?a?`${E.opened[t]}px`:`${E.closed[t]}px`:a?`${E.opened[t]}px`:"0px"},children:s.jsxs("div",{className:$e("no-scrollbar",n.topBar?"":"mt-2",a?"overflow-auto":"overflow-hidden"),children:[s.jsxs("div",{dir:e,className:$e("fixed z-50 mb-2 flex h-14 flex-row items-center transition-all ",x>600||a?"bg-layoutPrimary-500":"w-0 bg-transparent"),style:{width:x>600?`${E[a?"opened":"closed"][t]-16}px`:"full"},children:[s.jsx("img",{className:$e("fixed top-2.5 h-9 opacity-0 transition-all",p?"right-2.5":"left-2.5",a?"visible opacity-100":"invisible opacity-0"),src:n.logoLink}),x>600?s.jsx("img",{className:$e("fixed top-2.5 h-9 transition-all",p?"right-2.5":"left-2.5",a?"invisible opacity-0":"visible opacity-100"),src:n.logoSymbol}):null]}),s.jsx("div",{className:"mb-10 mt-14",children:(A=n.drawerItems)==null?void 0:A.map((S,j)=>s.jsxs("div",{className:$e("flex flex-col items-stretch justify-center"),children:[S==null?void 0:S.map((O,L)=>{var M,z,H;return s.jsxs("div",{id:"test",className:"flex flex-col",children:[s.jsxs("div",{onClick:()=>{O.subItems?i===O.slug?l(""):l(O.slug):O.action()},className:$e(n.currentPage===O.slug||(M=O.subItems)!=null&&M.find(oe=>oe.slug===n.currentPage)?"bg-buttonPrimary-500 text-white":"hover:bg-layoutPrimary-300","m-2 my-1 flex cursor-pointer flex-row items-center justify-between overflow-x-clip rounded p-2 pl-3 transition-all ",p?"flex-row-reverse pr-3":""),children:[s.jsxs("div",{className:"flex flex-row",dir:e,children:[s.jsx("div",{className:"flex items-center justify-center",children:O.icon}),s.jsx("div",{className:$e("mx-2 whitespace-nowrap text-sm transition-all",a?"opacity-100":"opacity-0"),children:O.label})]}),O.subItems&&s.jsx("div",{className:$e(i&&O.slug===i?"-rotate-90":"rotate-90"),children:s.jsx(XC,{fontSize:11})})]}),O.subItems&&s.jsx("div",{className:$e("m-1 flex cursor-pointer flex-col gap-0 overflow-clip whitespace-nowrap rounded bg-layoutPrimary-300 p-1 transition-all",i==O.slug&&a?"":"my-0 py-0",p?"text-right":"text-left"),style:{height:i==O.slug&&a?6+33*((z=O.subItems)==null?void 0:z.length):0},children:(H=O.subItems)==null?void 0:H.map((oe,J)=>s.jsxs("div",{className:$e("flex flex-row gap-2 overflow-x-clip rounded p-2 px-2 text-xs",p?"text-right":"text-left",n.currentPage===oe.slug?"bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500":"hover:bg-layoutPrimary-500"),dir:e,onClick:()=>{oe.action()},children:[s.jsx("div",{className:"flex items-center justify-center",children:oe.icon}),s.jsx("div",{className:"flex flex-row justify-between",children:oe.label})]},J))})]},L)}),j!==n.drawerItems.length-1&&s.jsx("div",{className:"my-2 h-[1px] w-10/12 self-center bg-buttonPrimary-500 text-center "})]},j))}),a&&s.jsxs("div",{className:$e("fixed bottom-0 flex flex-row items-center bg-layoutPrimary-500 p-4 transition-all",a?"bg-layoutPrimary-500 ":"bg-red-500",r?"justify-between":"justify-end",e==="rtl"?"right-0":"left-0"),style:{width:`${E[a?"opened":"closed"][t]-16}px`},children:[r&&s.jsx("div",{className:" cursor-pointer rounded p-2 transition-all hover:bg-layoutPrimary-700",onClick:()=>r(),children:s.jsxs("svg",{"aria-label":"Settings Icon",stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:"1em",width:"1em",children:[s.jsx("circle",{cx:"12",cy:"12",r:"3"}),s.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})]})}),x>600?s.jsx("div",{className:$e("w-fit transition-all"),style:p?{right:`${E[a?"opened":"closed"][t]-35}px`}:{left:`${E[a?"opened":"closed"][t]-35}px`},children:s.jsx("div",{dir:e,className:$e("relative left-0 top-0 transition-all",a?" opacity-100":" opacity-0"),children:s.jsx("div",{onClick:()=>c(!u),className:"w-fit cursor-pointer rounded bg-gray-300 p-2 transition-all hover:bg-gray-400",children:s.jsx(XC,{fontSize:14,className:$e("transition-all",p?u?"rotate-0":"rotate-180":u?"rotate-180":"rotate-0")})})})}):null]})]})}),s.jsx("div",{className:"fixed overflow-y-auto",style:p?{height:`calc(100% - ${n.topBar?"56":"0"}px)`,width:`calc(100% - ${v}px)`,left:"0px",top:n.topBar?"56px":"0px"}:{height:`calc(100% - ${n.topBar?"56":"0"}px)`,width:`calc(100% - ${v}px)`,left:`${v}px`,top:n.topBar?"56px":"0px"},children:n.children})]})},rO=({direction:e="rtl",drawerSize:t="md",onSettingsClick:r,DrawerFooterActions:n,...a})=>{var S,j,O;const[o,i]=h.useState(!1),[l,u]=h.useState("");Rg(!1);const[c,m]=h.useState(!1),p=h.useRef(null),x=e==="rtl";let C;typeof window<"u"?C=Xd():C=1200,h.useEffect(()=>{const L=M=>{p.current&&!p.current.contains(M.target)&&!c&&i(!1)};return document.addEventListener("click",L,!0),()=>{document.removeEventListener("click",L,!0)}},[c]);let E=200,v={opened:{sm:"100",md:E,lg:"250"},closed:{sm:"56",md:"56",lg:"56"}},A=C>600?v[c?"opened":"closed"][t]:0;return s.jsxs("div",{className:"fixed left-0",children:[a.topBar&&s.jsxs("div",{className:$e("fixed left-0 right-0 top-0 z-30 flex h-14 w-full items-center justify-between bg-primary-foreground p-2",x?"flex-row-reverse":"flex-row"),children:[C>600?s.jsx("div",{className:$e("dark:text-white",x?[C>600?"mr-14":"mr-2",c?"mr-40":""]:[C>600?"ml-14":"ml-2",c?"ml-40":""]),style:x?{marginRight:`${v[c?"opened":"closed"][t]}px`}:{marginLeft:`${v[c?"opened":"closed"][t]}px`},children:a.pageTitle}):s.jsxs("div",{dir:e,className:"flex items-center justify-center gap-0.5",children:[s.jsx("div",{onClick:()=>i(!0),className:"z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100",children:s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1.6em",width:"1.6em",children:s.jsx("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"})})}),a.pageTitle?s.jsx("div",{className:"text-sm",children:a.pageTitle}):s.jsx("div",{})]}),s.jsxs("div",{className:$e("flex gap-2 dark:text-white",x?"flex-row-reverse":"flex-row"),children:[C>600?s.jsxs("div",{className:x?"text-left text-xs":"text-right text-xs",children:[s.jsx("div",{className:"font-bold",children:a.username})," ",s.jsx("div",{children:a.email})]}):null,s.jsx(Xl,{triggerClassname:"mx-2",align:"end",alignOffset:8,side:"bottom",sideOffset:5,direction:x?"rtl":"ltr",trigger:s.jsx("div",{className:"relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600",children:s.jsx(nO,{})}),items:a.profileMenuItems,onItemSelect:L=>console.log("selecting item ",L)})]})]}),s.jsxs("div",{className:$e("fixed top-0 z-40 flex h-full flex-col justify-between overflow-x-clip transition-all",x?"right-0":"left-0"),style:{width:C>600?o?`${v.opened[t]}px`:`${v.closed[t]}px`:o?`${v.opened[t]}px`:"0px"},onMouseEnter:()=>{i(!0)},onMouseLeave:()=>i(!!c),ref:p,children:[s.jsxs("div",{dir:e,className:$e("fixed z-50 mb-2 flex h-14 w-full flex-row items-center justify-center bg-primary-foreground transition-all"),style:{width:C>600?`${o?E:56}px`:`${o?E:0}px`},children:[s.jsx("img",{className:$e("h-9 opacity-0 transition-all",o?"visible opacity-100":"invisible opacity-0"),src:a.logoLink}),C>600?s.jsx("img",{className:$e("fixed top-2.5 h-9 transition-all",x?"right-2.5":"left-2.5",o?"invisible opacity-0":"visible opacity-100"),src:a.logoSymbol}):null]}),s.jsx("div",{className:$e("fixed bottom-14 top-14 bg-primary-foreground py-2 transition-all",o?"overflow-auto":"overflow-hidden"),style:{height:"calc(100% - 112px)",width:C>600?`${o?E:56}px`:`${o?E:0}px`},children:(S=a.drawerItems)==null?void 0:S.map((L,M)=>s.jsxs("div",{className:$e("flex select-none flex-col items-stretch justify-center transition-all"),children:[L==null?void 0:L.map((z,H)=>{var oe,J,ge;return s.jsxs("div",{id:"test",className:"flex flex-col",children:[s.jsxs("div",{onClick:()=>{z.subItems?l===z.slug?u(""):u(z.slug):z.action()},className:$e(a.currentPage===z.slug||(oe=z.subItems)!=null&&oe.find(xe=>xe.slug===a.currentPage)?"bg-primary text-primary-foreground ":"hover:bg-primary/20","my-1 flex cursor-pointer flex-row items-center justify-between overflow-x-clip rounded p-2 pl-3 transition-all ",x?"flex-row-reverse pr-3":"","m-2"),children:[s.jsxs("div",{className:"flex flex-row",dir:e,children:[s.jsx("div",{className:"flex items-center justify-center ",children:z.icon}),s.jsx("div",{className:$e("mx-2 whitespace-nowrap text-sm transition-all",o?"opacity-100":"opacity-0"),children:z.label})]}),z.subItems&&s.jsx(aO,{pointing:l&&z.slug===l?"up":"down"})]}),z.subItems&&s.jsx("div",{className:$e("m-1 mx-2 flex cursor-pointer flex-col gap-[2px] overflow-clip whitespace-nowrap rounded bg-primary/10 p-1 transition-all",l==z.slug&&o?"":"my-0 py-0",x?"text-right":"text-left"),style:{height:l==z.slug&&o?6+35*((J=z.subItems)==null?void 0:J.length):0},children:(ge=z.subItems)==null?void 0:ge.map((xe,Q)=>s.jsxs("div",{className:$e("flex flex-row gap-2 overflow-x-clip rounded-inner p-2 px-2 text-xs",x?"text-right":"text-left",a.currentPage===xe.slug?"bg-primary text-white":"hover:bg-primary-foreground hover:text-primary "),dir:e,onClick:()=>{xe.action()},children:[s.jsx("div",{className:"flex items-center justify-center",children:xe.icon}),s.jsx("div",{className:"flex flex-row justify-between",children:xe.label})]},Q))})]},H)}),M!==a.drawerItems.length-1&&s.jsx("div",{className:"my-2 h-[1px] w-10/12 self-center bg-buttonPrimary-500 bg-red-500 text-center "})]},M))}),s.jsxs("div",{className:$e("fixed bottom-0 flex h-14 w-full items-center justify-center gap-2 overflow-clip bg-primary-foreground transition-all",e==="rtl"?"flex-row-reverse":"flex-row"),style:{width:C>600?`${o?E:56}px`:`${o?E:0}px`},children:[n&&o?s.jsx(s.Fragment,{children:n}):null,C>600&&o?s.jsx(ms,{side:"left",delayDuration:500,content:c?((j=a.texts)==null?void 0:j.collapseSidebar)||"Collapse Sidebar":((O=a.texts)==null?void 0:O.expandSidebar)||"Expand Sidebar",children:s.jsx(qe,{variant:"light",onClick:()=>m(!c),size:"smallIcon",children:s.jsx("svg",{className:$e("h-6 w-6 shrink-0 text-primary transition-all disabled:bg-gray-200 ",c?x?"-rotate-90":"rotate-90":x?"rotate-90":"-rotate-90"),fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})})}):null]})]}),s.jsx("div",{className:"fixed overflow-y-auto",style:x?{height:`calc(100% - ${a.topBar?"56":"0"}px)`,width:`calc(100% - ${A}px)`,left:"0px",top:a.topBar?"56px":"0px"}:{height:`calc(100% - ${a.topBar?"56":"0"}px)`,width:`calc(100% - ${A}px)`,left:`${A}px`,top:a.topBar?"56px":"0px"},children:a.children})]})},nO=()=>s.jsx("svg",{className:"absolute -left-1 h-10 w-10 text-gray-400",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})}),aO=({pointing:e})=>{let t;switch(e){case"right":t="-rotate-90";break;case"left":t="rotate-90";break;case"up":t="-rotate-180";break;case"down":t="rotate-0";break}return s.jsx("svg",{className:$e("h-6 w-6 shrink-0 text-primary-foreground transition-all disabled:bg-gray-200 ",t),fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})},oO=({maxWidth:e="normal",variant:t="contained",centered:r=!1,direction:n="ltr",...a})=>{let o="flex w-full flex-col rounded p-4",i={full:"md:max-w-xl",small:"md:max-w-sm w-1/3 min-w-min",normal:"max-w-sm md:max-w-md"},l={contained:"bg-background border",outlined:"bg-transparent border border-black w-fit",neobrutalism:"shadow-neobrutalism border-4 border-black bg-white"};return s.jsx("div",{className:$e(o,i[e],l[t],r?"flex items-center text-center":""),dir:n,children:a.children})},iO=e=>s.jsx("div",{className:" columns-1 gap-5 sm:columns-2 sm:gap-8 md:columns-3 lg:columns-4 [&>*:not(:first-child)]:mt-8",children:e.children}),sO=({isOpen:e,onClose:t,items:r})=>e?s.jsxs("div",{className:"fixed inset-0 z-40 flex bg-gray-600 bg-opacity-75",children:[s.jsxs("div",{className:"w-1/3 rounded-l-lg bg-gray-800 shadow-2xl",children:[s.jsx("button",{onClick:t,className:"p-4 text-gray-400 hover:text-white focus:text-white focus:outline-none",children:"Close"}),s.jsx("nav",{children:r.map((n,a)=>s.jsx("a",{href:"#",onClick:n.onClick,className:"block p-4 font-bold text-white hover:bg-gray-700 hover:text-gray-400",children:n.label},a))})]}),s.jsx("div",{className:"w-2/3 bg-gray-50"})]}):null;function lO(e){return hu({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z"}}]})(e)}function uO(e){return hu({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z"}}]})(e)}const cO=({variation:e="default",...t})=>{var n;let r={default:"rounded border",minimal:"border-t"};return s.jsxs("div",{className:Ve("flex w-full flex-row items-center justify-between gap-8 rounded bg-background p-4",r[e]),children:[s.jsxs("div",{className:"flex flex-col items-center gap-2",children:[s.jsxs("div",{className:"flex flex-row items-center gap-2",children:[t.logoURL&&s.jsx("div",{children:s.jsx("img",{className:"h-8",src:t.logoURL})}),t.logoText&&s.jsx("div",{children:s.jsx("div",{className:"text-2xl font-bold text-primary",children:t.logoText})})]}),t.copyRights&&t.footerLinks&&s.jsxs("div",{className:"text-xs text-muted-foreground",children:["© ",t.copyRights," ",new Date().getFullYear()]})]}),t.copyRights&&!t.footerLinks&&s.jsxs("div",{className:"text-xs text-muted-foreground",children:["© ",t.copyRights," ",new Date().getFullYear()]}),(n=t.footerLinks)==null?void 0:n.map(a=>s.jsxs("div",{className:"flex w-32 flex-col gap-2",children:[s.jsx("div",{className:"text-lg font-bold",children:a.title}),s.jsx("div",{className:"flex flex-col gap-1",children:a.pages.map(o=>s.jsx("a",{className:"transition-all hover:font-bold",href:o.link,children:o.label}))})]})),t.socialLinks&&s.jsxs("div",{className:"flex flex-row gap-2",children:[t.socialLinks.twitter&&s.jsx(qe,{size:"smallIcon",variant:"ghost",children:s.jsx(uO,{})}),t.socialLinks.instagram&&s.jsx(qe,{size:"smallIcon",variant:"ghost",children:s.jsx(lO,{})}),t.socialLinks.tiktok&&s.jsx(qe,{size:"smallIcon",variant:"ghost",children:s.jsx(eO,{})}),t.socialLinks.snapchat&&s.jsx(qe,{size:"smallIcon",variant:"ghost",children:s.jsx(qP,{})})]})]})},dO=({design:e="floating",...t})=>{const r=h.useRef(null),[n,a]=h.useState(!1);let o={floating:"left-1/2 z-50 w-[calc(100%-2rem)] -translate-x-1/2 lg:max-w-7xl p-4 rounded",default:"w-[calc(100%)] left-0 z-50 right-0 rounded-none p-2"};return s.jsx("div",{ref:r,children:s.jsxs("div",{dir:t.direction,className:$e(o[e],"fixed flex flex-col justify-between border border-gray-100 bg-white shadow-sm transition-all dark:border-gray-600 dark:bg-gray-700 md:flex-row md:gap-4 ",t.position==="top"?e==="floating"?"top-6":"top-0":e==="floating"?"bottom-6":"bottom-0",n?"opacity-0":"opacity-100"),children:[s.jsxs("div",{className:"mb-3 flex w-full flex-col items-center justify-start md:mb-0 md:flex-row md:items-center",children:[s.jsxs("div",{className:$e(t.direction==="rtl"?"md:ml-4 md:border-l md:pl-4":"md:mr-4 md:border-r md:pr-4","mb-2 flex items-center border-gray-200 dark:border-gray-600 md:mb-0 md:mr-4 md:pr-4"),children:[t.logoURL&&s.jsx("img",{src:t.logoURL,className:"mr-2 h-6",alt:"Flowbite Logo"}),t.title&&s.jsx("span",{className:"self-center whitespace-nowrap text-lg font-semibold dark:text-white",children:t.title})]}),t.text&&s.jsx("p",{className:$e("m-0 flex items-center text-center text-sm font-normal text-gray-500 dark:text-gray-400 ",t.direction==="rtl"?"md:text-right":"md:text-left"),children:t.text})]}),t.actionText&&s.jsx("div",{className:$e("flex flex-shrink-0 items-center justify-center ",t.direction==="rtl"?"ml-0 md:ml-10":"mr-0 md:mr-10"),children:s.jsx(qe,{onClick:t.onActionClick,children:t.actionText})}),s.jsxs("button",{type:"button",className:$e("absolute top-2 inline-flex h-9 w-9 items-center justify-center rounded-inner p-1.5 text-gray-400 transition-all hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",t.direction==="rtl"?"left-2":"right-2"),"data-dismiss-target":"#alert-default","aria-label":"Close",onClick:()=>{a(!0),setTimeout(()=>{r.current.removeChild(r.current.children[0])},200)},children:[s.jsx("span",{className:"sr-only",children:"Close"}),s.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})]})]})})};var pu=e=>e.type==="checkbox",Fs=e=>e instanceof Date,Jr=e=>e==null;const YC=e=>typeof e=="object";var yr=e=>!Jr(e)&&!Array.isArray(e)&&YC(e)&&!Fs(e),JC=e=>yr(e)&&e.target?pu(e.target)?e.target.checked:e.target.value:e,fO=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,QC=(e,t)=>e.has(fO(t)),hO=e=>{const t=e.constructor&&e.constructor.prototype;return yr(t)&&t.hasOwnProperty("isPrototypeOf")},zg=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function aa(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(zg&&(e instanceof Blob||e instanceof FileList))&&(r||yr(e)))if(t=r?[]:{},!r&&!hO(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=aa(e[n]));else return e;return t}var gu=e=>Array.isArray(e)?e.filter(Boolean):[],mr=e=>e===void 0,et=(e,t,r)=>{if(!t||!yr(e))return r;const n=gu(t.split(/[,[\].]+?/)).reduce((a,o)=>Jr(a)?a:a[o],e);return mr(n)||n===e?mr(e[t])?r:e[t]:n},Io=e=>typeof e=="boolean";const Qd={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},oa={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ua={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},KC=h.createContext(null),Gg=()=>h.useContext(KC),mu=e=>{const{children:t,...r}=e;return h.createElement(KC.Provider,{value:r},t)};var qC=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const i=o;return t._proxyFormState[i]!==oa.all&&(t._proxyFormState[i]=!n||oa.all),r&&(r[i]=!0),e[i]}});return a},Ln=e=>yr(e)&&!Object.keys(e).length,ew=(e,t,r,n)=>{r(e);const{name:a,...o}=e;return Ln(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!n||oa.all))},Kd=e=>Array.isArray(e)?e:[e],tw=(e,t,r)=>r&&t?e===t||Array.isArray(e)&&e.some(n=>n&&r&&n===t):!e||!t||e===t||Kd(e).some(n=>n&&(n.startsWith(t)||t.startsWith(n)));function Zg(e){const t=h.useRef(e);t.current=e,h.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function pO(e){const t=Gg(),{control:r=t.control,disabled:n,name:a,exact:o}=e||{},[i,l]=h.useState(r._formState),u=h.useRef(!0),c=h.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),m=h.useRef(a);return m.current=a,Zg({disabled:n,next:p=>u.current&&tw(m.current,p.name,o)&&ew(p,c.current,r._updateFormState)&&l({...r._formState,...p}),subject:r._subjects.state}),h.useEffect(()=>(u.current=!0,c.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),qC(i,r,c.current,!1)}var Aa=e=>typeof e=="string",rw=(e,t,r,n,a)=>Aa(e)?(n&&t.watch.add(e),et(r,e,a)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),et(r,o))):(n&&(t.watchAll=!0),r);function gO(e){const t=Gg(),{control:r=t.control,name:n,defaultValue:a,disabled:o,exact:i}=e||{},l=h.useRef(n);l.current=n,Zg({disabled:o,subject:r._subjects.values,next:m=>{tw(l.current,m.name,i)&&c(aa(rw(l.current,r._names,m.values||r._formValues,!1,a)))}});const[u,c]=h.useState(r._getWatch(n,a));return h.useEffect(()=>r._removeUnmounted()),u}var Ug=e=>/^\w*$/.test(e),nw=e=>gu(e.replace(/["|']|\]/g,"").split(/\.|\[/));function er(e,t,r){let n=-1;const a=Ug(t)?[t]:nw(t),o=a.length,i=o-1;for(;++n<o;){const l=a[n];let u=r;if(n!==i){const c=e[l];u=yr(c)||Array.isArray(c)?c:isNaN(+a[n+1])?{}:[]}e[l]=u,e=e[l]}return e}function mO(e){const t=Gg(),{name:r,disabled:n,control:a=t.control,shouldUnregister:o}=e,i=QC(a._names.array,r),l=gO({control:a,name:r,defaultValue:et(a._formValues,r,et(a._defaultValues,r,e.defaultValue)),exact:!0}),u=pO({control:a,name:r}),c=h.useRef(a.register(r,{...e.rules,value:l}));return c.current=a.register(r,e.rules),h.useEffect(()=>{const m=a._options.shouldUnregister||o,p=(x,C)=>{const E=et(a._fields,x);E&&(E._f.mount=C)};if(p(r,!0),m){const x=aa(et(a._options.defaultValues,r));er(a._defaultValues,r,x),mr(et(a._formValues,r))&&er(a._formValues,r,x)}return()=>{(i?m&&!a._state.action:m)?a.unregister(r):p(r,!1)}},[r,a,i,o]),h.useEffect(()=>{a._updateDisabledField({disabled:n,fields:a._fields,name:r})},[n,r,a]),{field:{name:r,value:l,...Io(n)?{disabled:n}:{},onChange:h.useCallback(m=>c.current.onChange({target:{value:JC(m),name:r},type:Qd.CHANGE}),[r]),onBlur:h.useCallback(()=>c.current.onBlur({target:{value:et(a._formValues,r),name:r},type:Qd.BLUR}),[r,a]),ref:m=>{const p=et(a._fields,r);p&&m&&(p._f.ref={focus:()=>m.focus(),select:()=>m.select(),setCustomValidity:x=>m.setCustomValidity(x),reportValidity:()=>m.reportValidity()})}},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!et(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!et(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!et(u.touchedFields,r)},error:{enumerable:!0,get:()=>et(u.errors,r)}})}}const kt=e=>e.render(mO(e));var vO=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{};const Xg=(e,t,r)=>{for(const n of r||Object.keys(e)){const a=et(e,n);if(a){const{_f:o,...i}=a;if(o&&t(o.name)){if(o.ref.focus){o.ref.focus();break}else if(o.refs&&o.refs[0].focus){o.refs[0].focus();break}}else yr(i)&&Xg(i,t)}}};var aw=e=>({isOnSubmit:!e||e===oa.onSubmit,isOnBlur:e===oa.onBlur,isOnChange:e===oa.onChange,isOnAll:e===oa.all,isOnTouch:e===oa.onTouched}),ow=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length)))),bO=(e,t,r)=>{const n=gu(et(e,r));return er(n,"root",t[r]),er(e,r,n),e},Yg=e=>e.type==="file",To=e=>typeof e=="function",qd=e=>{if(!zg)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ef=e=>Aa(e),Jg=e=>e.type==="radio",tf=e=>e instanceof RegExp;const iw={value:!1,isValid:!1},sw={value:!0,isValid:!0};var lw=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!mr(e[0].attributes.value)?mr(e[0].value)||e[0].value===""?sw:{value:e[0].value,isValid:!0}:sw:iw}return iw};const uw={isValid:!1,value:null};var cw=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,uw):uw;function dw(e,t,r="validate"){if(ef(e)||Array.isArray(e)&&e.every(ef)||Io(e)&&!e)return{type:r,message:ef(e)?e:"",ref:t}}var js=e=>yr(e)&&!tf(e)?e:{value:e,message:""},fw=async(e,t,r,n,a)=>{const{ref:o,refs:i,required:l,maxLength:u,minLength:c,min:m,max:p,pattern:x,validate:C,name:E,valueAsNumber:v,mount:A,disabled:S}=e._f,j=et(t,E);if(!A||S)return{};const O=i?i[0]:o,L=Q=>{n&&O.reportValidity&&(O.setCustomValidity(Io(Q)?"":Q||""),O.reportValidity())},M={},z=Jg(o),H=pu(o),oe=z||H,J=(v||Yg(o))&&mr(o.value)&&mr(j)||qd(o)&&o.value===""||j===""||Array.isArray(j)&&!j.length,ge=vO.bind(null,E,r,M),xe=(Q,ce,N,W=Ua.maxLength,ee=Ua.minLength)=>{const de=Q?ce:N;M[E]={type:Q?W:ee,message:de,ref:o,...ge(Q?W:ee,de)}};if(a?!Array.isArray(j)||!j.length:l&&(!oe&&(J||Jr(j))||Io(j)&&!j||H&&!lw(i).isValid||z&&!cw(i).isValid)){const{value:Q,message:ce}=ef(l)?{value:!!l,message:l}:js(l);if(Q&&(M[E]={type:Ua.required,message:ce,ref:O,...ge(Ua.required,ce)},!r))return L(ce),M}if(!J&&(!Jr(m)||!Jr(p))){let Q,ce;const N=js(p),W=js(m);if(!Jr(j)&&!isNaN(j)){const ee=o.valueAsNumber||j&&+j;Jr(N.value)||(Q=ee>N.value),Jr(W.value)||(ce=ee<W.value)}else{const ee=o.valueAsDate||new Date(j),de=K=>new Date(new Date().toDateString()+" "+K),ne=o.type=="time",te=o.type=="week";Aa(N.value)&&j&&(Q=ne?de(j)>de(N.value):te?j>N.value:ee>new Date(N.value)),Aa(W.value)&&j&&(ce=ne?de(j)<de(W.value):te?j<W.value:ee<new Date(W.value))}if((Q||ce)&&(xe(!!Q,N.message,W.message,Ua.max,Ua.min),!r))return L(M[E].message),M}if((u||c)&&!J&&(Aa(j)||a&&Array.isArray(j))){const Q=js(u),ce=js(c),N=!Jr(Q.value)&&j.length>+Q.value,W=!Jr(ce.value)&&j.length<+ce.value;if((N||W)&&(xe(N,Q.message,ce.message),!r))return L(M[E].message),M}if(x&&!J&&Aa(j)){const{value:Q,message:ce}=js(x);if(tf(Q)&&!j.match(Q)&&(M[E]={type:Ua.pattern,message:ce,ref:o,...ge(Ua.pattern,ce)},!r))return L(ce),M}if(C){if(To(C)){const Q=await C(j,t),ce=dw(Q,O);if(ce&&(M[E]={...ce,...ge(Ua.validate,ce.message)},!r))return L(ce.message),M}else if(yr(C)){let Q={};for(const ce in C){if(!Ln(Q)&&!r)break;const N=dw(await C[ce](j,t),O,ce);N&&(Q={...N,...ge(ce,N.message)},L(N.message),r&&(M[E]=Q))}if(!Ln(Q)&&(M[E]={ref:O,...Q},!r))return M}}return L(!0),M};function xO(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=mr(e)?n++:e[t[n++]];return e}function yO(e){for(const t in e)if(e.hasOwnProperty(t)&&!mr(e[t]))return!1;return!0}function Pr(e,t){const r=Array.isArray(t)?t:Ug(t)?[t]:nw(t),n=r.length===1?e:xO(e,r),a=r.length-1,o=r[a];return n&&delete n[o],a!==0&&(yr(n)&&Ln(n)||Array.isArray(n)&&yO(n))&&Pr(e,r.slice(0,-1)),e}function Qg(){let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}}var rf=e=>Jr(e)||!YC(e);function yi(e,t){if(rf(e)||rf(t))return e===t;if(Fs(e)&&Fs(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const o=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const i=t[a];if(Fs(o)&&Fs(i)||yr(o)&&yr(i)||Array.isArray(o)&&Array.isArray(i)?!yi(o,i):o!==i)return!1}}return!0}var hw=e=>e.type==="select-multiple",CO=e=>Jg(e)||pu(e),Kg=e=>qd(e)&&e.isConnected,pw=e=>{for(const t in e)if(To(e[t]))return!0;return!1};function nf(e,t={}){const r=Array.isArray(e);if(yr(e)||r)for(const n in e)Array.isArray(e[n])||yr(e[n])&&!pw(e[n])?(t[n]=Array.isArray(e[n])?[]:{},nf(e[n],t[n])):Jr(e[n])||(t[n]=!0);return t}function gw(e,t,r){const n=Array.isArray(e);if(yr(e)||n)for(const a in e)Array.isArray(e[a])||yr(e[a])&&!pw(e[a])?mr(t)||rf(r[a])?r[a]=Array.isArray(e[a])?nf(e[a],[]):{...nf(e[a])}:gw(e[a],Jr(t)?{}:t[a],r[a]):r[a]=!yi(e[a],t[a]);return r}var qg=(e,t)=>gw(e,t,nf(t)),mw=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>mr(e)?e:t?e===""?NaN:e&&+e:r&&Aa(e)?new Date(e):n?n(e):e;function em(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return Yg(t)?t.files:Jg(t)?cw(e.refs).value:hw(t)?[...t.selectedOptions].map(({value:r})=>r):pu(t)?lw(e.refs).value:mw(mr(t.value)?e.ref.value:t.value,e)}var wO=(e,t,r,n)=>{const a={};for(const o of e){const i=et(t,o);i&&er(a,o,i._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},vu=e=>mr(e)?e:tf(e)?e.source:yr(e)?tf(e.value)?e.value.source:e.value:e,EO=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function vw(e,t,r){const n=et(e,r);if(n||Ug(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const o=a.join("."),i=et(t,o),l=et(e,o);if(i&&!Array.isArray(i)&&r!==o)return{name:r};if(l&&l.type)return{name:o,error:l};a.pop()}return{name:r}}var DO=(e,t,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,SO=(e,t)=>!gu(et(e,t)).length&&Pr(e,t);const AO={mode:oa.onSubmit,reValidateMode:oa.onChange,shouldFocusError:!0};function FO(e={},t){let r={...AO,...e},n={submitCount:0,isDirty:!1,isLoading:To(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},a={},o=yr(r.defaultValues)||yr(r.values)?aa(r.defaultValues||r.values)||{}:{},i=r.shouldUnregister?{}:aa(o),l={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,m=0;const p={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},x={values:Qg(),array:Qg(),state:Qg()},C=e.resetOptions&&e.resetOptions.keepDirtyValues,E=aw(r.mode),v=aw(r.reValidateMode),A=r.criteriaMode===oa.all,S=re=>be=>{clearTimeout(m),m=setTimeout(re,be)},j=async re=>{if(p.isValid||re){const be=r.resolver?Ln((await J()).errors):await xe(a,!0);be!==n.isValid&&x.state.next({isValid:be})}},O=re=>p.isValidating&&x.state.next({isValidating:re}),L=(re,be=[],Ie,Ze,He=!0,Te=!0)=>{if(Ze&&Ie){if(l.action=!0,Te&&Array.isArray(et(a,re))){const Ee=Ie(et(a,re),Ze.argA,Ze.argB);He&&er(a,re,Ee)}if(Te&&Array.isArray(et(n.errors,re))){const Ee=Ie(et(n.errors,re),Ze.argA,Ze.argB);He&&er(n.errors,re,Ee),SO(n.errors,re)}if(p.touchedFields&&Te&&Array.isArray(et(n.touchedFields,re))){const Ee=Ie(et(n.touchedFields,re),Ze.argA,Ze.argB);He&&er(n.touchedFields,re,Ee)}p.dirtyFields&&(n.dirtyFields=qg(o,i)),x.state.next({name:re,isDirty:ce(re,be),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else er(i,re,be)},M=(re,be)=>{er(n.errors,re,be),x.state.next({errors:n.errors})},z=(re,be,Ie,Ze)=>{const He=et(a,re);if(He){const Te=et(i,re,mr(Ie)?et(o,re):Ie);mr(Te)||Ze&&Ze.defaultChecked||be?er(i,re,be?Te:em(He._f)):ee(re,Te),l.mount&&j()}},H=(re,be,Ie,Ze,He)=>{let Te=!1,Ee=!1;const ze={name:re};if(!Ie||Ze){p.isDirty&&(Ee=n.isDirty,n.isDirty=ze.isDirty=ce(),Te=Ee!==ze.isDirty);const tt=yi(et(o,re),be);Ee=et(n.dirtyFields,re),tt?Pr(n.dirtyFields,re):er(n.dirtyFields,re,!0),ze.dirtyFields=n.dirtyFields,Te=Te||p.dirtyFields&&Ee!==!tt}if(Ie){const tt=et(n.touchedFields,re);tt||(er(n.touchedFields,re,Ie),ze.touchedFields=n.touchedFields,Te=Te||p.touchedFields&&tt!==Ie)}return Te&&He&&x.state.next(ze),Te?ze:{}},oe=(re,be,Ie,Ze)=>{const He=et(n.errors,re),Te=p.isValid&&Io(be)&&n.isValid!==be;if(e.delayError&&Ie?(c=S(()=>M(re,Ie)),c(e.delayError)):(clearTimeout(m),c=null,Ie?er(n.errors,re,Ie):Pr(n.errors,re)),(Ie?!yi(He,Ie):He)||!Ln(Ze)||Te){const Ee={...Ze,...Te&&Io(be)?{isValid:be}:{},errors:n.errors,name:re};n={...n,...Ee},x.state.next(Ee)}O(!1)},J=async re=>r.resolver(i,r.context,wO(re||u.mount,a,r.criteriaMode,r.shouldUseNativeValidation)),ge=async re=>{const{errors:be}=await J(re);if(re)for(const Ie of re){const Ze=et(be,Ie);Ze?er(n.errors,Ie,Ze):Pr(n.errors,Ie)}else n.errors=be;return be},xe=async(re,be,Ie={valid:!0})=>{for(const Ze in re){const He=re[Ze];if(He){const{_f:Te,...Ee}=He;if(Te){const ze=u.array.has(Te.name),tt=await fw(He,i,A,r.shouldUseNativeValidation&&!be,ze);if(tt[Te.name]&&(Ie.valid=!1,be))break;!be&&(et(tt,Te.name)?ze?bO(n.errors,tt,Te.name):er(n.errors,Te.name,tt[Te.name]):Pr(n.errors,Te.name))}Ee&&await xe(Ee,be,Ie)}}return Ie.valid},Q=()=>{for(const re of u.unMount){const be=et(a,re);be&&(be._f.refs?be._f.refs.every(Ie=>!Kg(Ie)):!Kg(be._f.ref))&&ae(re)}u.unMount=new Set},ce=(re,be)=>(re&&be&&er(i,re,be),!yi(se(),o)),N=(re,be,Ie)=>rw(re,u,{...l.mount?i:mr(be)?o:Aa(re)?{[re]:be}:be},Ie,be),W=re=>gu(et(l.mount?i:o,re,e.shouldUnregister?et(o,re,[]):[])),ee=(re,be,Ie={})=>{const Ze=et(a,re);let He=be;if(Ze){const Te=Ze._f;Te&&(!Te.disabled&&er(i,re,mw(be,Te)),He=qd(Te.ref)&&Jr(be)?"":be,hw(Te.ref)?[...Te.ref.options].forEach(Ee=>Ee.selected=He.includes(Ee.value)):Te.refs?pu(Te.ref)?Te.refs.length>1?Te.refs.forEach(Ee=>(!Ee.defaultChecked||!Ee.disabled)&&(Ee.checked=Array.isArray(He)?!!He.find(ze=>ze===Ee.value):He===Ee.value)):Te.refs[0]&&(Te.refs[0].checked=!!He):Te.refs.forEach(Ee=>Ee.checked=Ee.value===He):Yg(Te.ref)?Te.ref.value="":(Te.ref.value=He,Te.ref.type||x.values.next({name:re,values:{...i}})))}(Ie.shouldDirty||Ie.shouldTouch)&&H(re,He,Ie.shouldTouch,Ie.shouldDirty,!0),Ie.shouldValidate&&K(re)},de=(re,be,Ie)=>{for(const Ze in be){const He=be[Ze],Te=`${re}.${Ze}`,Ee=et(a,Te);(u.array.has(re)||!rf(He)||Ee&&!Ee._f)&&!Fs(He)?de(Te,He,Ie):ee(Te,He,Ie)}},ne=(re,be,Ie={})=>{const Ze=et(a,re),He=u.array.has(re),Te=aa(be);er(i,re,Te),He?(x.array.next({name:re,values:{...i}}),(p.isDirty||p.dirtyFields)&&Ie.shouldDirty&&x.state.next({name:re,dirtyFields:qg(o,i),isDirty:ce(re,Te)})):Ze&&!Ze._f&&!Jr(Te)?de(re,Te,Ie):ee(re,Te,Ie),ow(re,u)&&x.state.next({...n}),x.values.next({name:re,values:{...i}}),!l.mount&&t()},te=async re=>{const be=re.target;let Ie=be.name,Ze=!0;const He=et(a,Ie),Te=()=>be.type?em(He._f):JC(re);if(He){let Ee,ze;const tt=Te(),bt=re.type===Qd.BLUR||re.type===Qd.FOCUS_OUT,Ot=!EO(He._f)&&!r.resolver&&!et(n.errors,Ie)&&!He._f.deps||DO(bt,et(n.touchedFields,Ie),n.isSubmitted,v,E),gt=ow(Ie,u,bt);er(i,Ie,tt),bt?(He._f.onBlur&&He._f.onBlur(re),c&&c(0)):He._f.onChange&&He._f.onChange(re);const Wt=H(Ie,tt,bt,!1),pr=!Ln(Wt)||gt;if(!bt&&x.values.next({name:Ie,type:re.type,values:{...i}}),Ot)return p.isValid&&j(),pr&&x.state.next({name:Ie,...gt?{}:Wt});if(!bt&&gt&&x.state.next({...n}),O(!0),r.resolver){const{errors:Yt}=await J([Ie]),Cr=vw(n.errors,a,Ie),gr=vw(Yt,a,Cr.name||Ie);Ee=gr.error,Ie=gr.name,ze=Ln(Yt)}else Ee=(await fw(He,i,A,r.shouldUseNativeValidation))[Ie],Ze=Number.isNaN(tt)||tt===et(i,Ie,tt),Ze&&(Ee?ze=!1:p.isValid&&(ze=await xe(a,!0)));Ze&&(He._f.deps&&K(He._f.deps),oe(Ie,ze,Ee,Wt))}},K=async(re,be={})=>{let Ie,Ze;const He=Kd(re);if(O(!0),r.resolver){const Te=await ge(mr(re)?re:He);Ie=Ln(Te),Ze=re?!He.some(Ee=>et(Te,Ee)):Ie}else re?(Ze=(await Promise.all(He.map(async Te=>{const Ee=et(a,Te);return await xe(Ee&&Ee._f?{[Te]:Ee}:Ee)}))).every(Boolean),!(!Ze&&!n.isValid)&&j()):Ze=Ie=await xe(a);return x.state.next({...!Aa(re)||p.isValid&&Ie!==n.isValid?{}:{name:re},...r.resolver||!re?{isValid:Ie}:{},errors:n.errors,isValidating:!1}),be.shouldFocus&&!Ze&&Xg(a,Te=>Te&&et(n.errors,Te),re?He:u.mount),Ze},se=re=>{const be={...o,...l.mount?i:{}};return mr(re)?be:Aa(re)?et(be,re):re.map(Ie=>et(be,Ie))},fe=(re,be)=>({invalid:!!et((be||n).errors,re),isDirty:!!et((be||n).dirtyFields,re),isTouched:!!et((be||n).touchedFields,re),error:et((be||n).errors,re)}),Se=re=>{re&&Kd(re).forEach(be=>Pr(n.errors,be)),x.state.next({errors:re?n.errors:{}})},G=(re,be,Ie)=>{const Ze=(et(a,re,{_f:{}})._f||{}).ref;er(n.errors,re,{...be,ref:Ze}),x.state.next({name:re,errors:n.errors,isValid:!1}),Ie&&Ie.shouldFocus&&Ze&&Ze.focus&&Ze.focus()},he=(re,be)=>To(re)?x.values.subscribe({next:Ie=>re(N(void 0,be),Ie)}):N(re,be,!0),ae=(re,be={})=>{for(const Ie of re?Kd(re):u.mount)u.mount.delete(Ie),u.array.delete(Ie),be.keepValue||(Pr(a,Ie),Pr(i,Ie)),!be.keepError&&Pr(n.errors,Ie),!be.keepDirty&&Pr(n.dirtyFields,Ie),!be.keepTouched&&Pr(n.touchedFields,Ie),!r.shouldUnregister&&!be.keepDefaultValue&&Pr(o,Ie);x.values.next({values:{...i}}),x.state.next({...n,...be.keepDirty?{isDirty:ce()}:{}}),!be.keepIsValid&&j()},me=({disabled:re,name:be,field:Ie,fields:Ze})=>{if(Io(re)){const He=re?void 0:et(i,be,em(Ie?Ie._f:et(Ze,be)._f));er(i,be,He),H(be,He,!1,!1,!0)}},Me=(re,be={})=>{let Ie=et(a,re);const Ze=Io(be.disabled);return er(a,re,{...Ie||{},_f:{...Ie&&Ie._f?Ie._f:{ref:{name:re}},name:re,mount:!0,...be}}),u.mount.add(re),Ie?me({field:Ie,disabled:be.disabled,name:re}):z(re,!0,be.value),{...Ze?{disabled:be.disabled}:{},...r.progressive?{required:!!be.required,min:vu(be.min),max:vu(be.max),minLength:vu(be.minLength),maxLength:vu(be.maxLength),pattern:vu(be.pattern)}:{},name:re,onChange:te,onBlur:te,ref:He=>{if(He){Me(re,be),Ie=et(a,re);const Te=mr(He.value)&&He.querySelectorAll&&He.querySelectorAll("input,select,textarea")[0]||He,Ee=CO(Te),ze=Ie._f.refs||[];if(Ee?ze.find(tt=>tt===Te):Te===Ie._f.ref)return;er(a,re,{_f:{...Ie._f,...Ee?{refs:[...ze.filter(Kg),Te,...Array.isArray(et(o,re))?[{}]:[]],ref:{type:Te.type,name:re}}:{ref:Te}}}),z(re,!1,void 0,Te)}else Ie=et(a,re,{}),Ie._f&&(Ie._f.mount=!1),(r.shouldUnregister||be.shouldUnregister)&&!(QC(u.array,re)&&l.action)&&u.unMount.add(re)}}},Pe=()=>r.shouldFocusError&&Xg(a,re=>re&&et(n.errors,re),u.mount),We=(re,be)=>async Ie=>{Ie&&(Ie.preventDefault&&Ie.preventDefault(),Ie.persist&&Ie.persist());let Ze=aa(i);if(x.state.next({isSubmitting:!0}),r.resolver){const{errors:He,values:Te}=await J();n.errors=He,Ze=Te}else await xe(a);Pr(n.errors,"root"),Ln(n.errors)?(x.state.next({errors:{}}),await re(Ze,Ie)):(be&&await be({...n.errors},Ie),Pe(),setTimeout(Pe)),x.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ln(n.errors),submitCount:n.submitCount+1,errors:n.errors})},Ke=(re,be={})=>{et(a,re)&&(mr(be.defaultValue)?ne(re,et(o,re)):(ne(re,be.defaultValue),er(o,re,be.defaultValue)),be.keepTouched||Pr(n.touchedFields,re),be.keepDirty||(Pr(n.dirtyFields,re),n.isDirty=be.defaultValue?ce(re,et(o,re)):ce()),be.keepError||(Pr(n.errors,re),p.isValid&&j()),x.state.next({...n}))},Ne=(re,be={})=>{const Ie=re?aa(re):o,Ze=aa(Ie),He=re&&!Ln(re)?Ze:o;if(be.keepDefaultValues||(o=Ie),!be.keepValues){if(be.keepDirtyValues||C)for(const Te of u.mount)et(n.dirtyFields,Te)?er(He,Te,et(i,Te)):ne(Te,et(He,Te));else{if(zg&&mr(re))for(const Te of u.mount){const Ee=et(a,Te);if(Ee&&Ee._f){const ze=Array.isArray(Ee._f.refs)?Ee._f.refs[0]:Ee._f.ref;if(qd(ze)){const tt=ze.closest("form");if(tt){tt.reset();break}}}}a={}}i=e.shouldUnregister?be.keepDefaultValues?aa(o):{}:aa(He),x.array.next({values:{...He}}),x.values.next({values:{...He}})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!l.mount&&t(),l.mount=!p.isValid||!!be.keepIsValid,l.watch=!!e.shouldUnregister,x.state.next({submitCount:be.keepSubmitCount?n.submitCount:0,isDirty:be.keepDirty?n.isDirty:!!(be.keepDefaultValues&&!yi(re,o)),isSubmitted:be.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:be.keepDirtyValues?n.dirtyFields:be.keepDefaultValues&&re?qg(o,re):{},touchedFields:be.keepTouched?n.touchedFields:{},errors:be.keepErrors?n.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},Qe=(re,be)=>Ne(To(re)?re(i):re,be);return{control:{register:Me,unregister:ae,getFieldState:fe,handleSubmit:We,setError:G,_executeSchema:J,_getWatch:N,_getDirty:ce,_updateValid:j,_removeUnmounted:Q,_updateFieldArray:L,_updateDisabledField:me,_getFieldArray:W,_reset:Ne,_resetDefaultValues:()=>To(r.defaultValues)&&r.defaultValues().then(re=>{Qe(re,r.resetOptions),x.state.next({isLoading:!1})}),_updateFormState:re=>{n={...n,...re}},_subjects:x,_proxyFormState:p,get _fields(){return a},get _formValues(){return i},get _state(){return l},set _state(re){l=re},get _defaultValues(){return o},get _names(){return u},set _names(re){u=re},get _formState(){return n},set _formState(re){n=re},get _options(){return r},set _options(re){r={...r,...re}}},trigger:K,register:Me,handleSubmit:We,watch:he,setValue:ne,getValues:se,reset:Qe,resetField:Ke,clearErrors:Se,unregister:ae,setError:G,setFocus:(re,be={})=>{const Ie=et(a,re),Ze=Ie&&Ie._f;if(Ze){const He=Ze.refs?Ze.refs[0]:Ze.ref;He.focus&&(He.focus(),be.shouldSelect&&He.select())}},getFieldState:fe}}function Xa(e={}){const t=h.useRef(),r=h.useRef(),[n,a]=h.useState({isDirty:!1,isValidating:!1,isLoading:To(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:To(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...FO(e,()=>a(i=>({...i}))),formState:n});const o=t.current.control;return o._options=e,Zg({subject:o._subjects.state,next:i=>{ew(i,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),h.useEffect(()=>{e.values&&!yi(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values):o._resetDefaultValues()},[e.values,o]),h.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=qC(n,o),t.current}const jO=e=>{const t=Xa(),{formState:{errors:r},handleSubmit:n,control:a}=t;return s.jsx(Gt,{children:s.jsxs("form",{onSubmit:n(o=>e.handleUpdateProfile(o)),children:[s.jsx($t,{headless:!0,children:s.jsxs(mu,{...t,children:[s.jsx(kt,{control:a,name:"fullName",render:({field:o})=>{var i;return s.jsx(Rt,{width:"full",type:"text",label:e.texts.fullNameLabel,placeholder:e.texts.fullNamePlaceholder,helpertext:(i=r.fullName)==null?void 0:i.message,...o,value:o.value??""})}}),s.jsx(kt,{control:a,name:"phoneNumber",render:({field:o})=>s.jsx(cd,{label:"Phone number"})}),s.jsx(kt,{control:a,name:"email",render:({field:o})=>{var i;return s.jsx(Rt,{width:"full",type:"text",label:e.texts.emailLabel,helpertext:(i=r.email)==null?void 0:i.message,placeholder:e.texts.emailPlaceholder,...o,value:o.value??""})},rules:{required:e.texts.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:e.texts.emailInvalidText}}}),s.jsx(kt,{control:a,name:"password",render:({field:o})=>{var i;return s.jsx(Rt,{width:"full",type:"password",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helpertext:(i=r.password)==null?void 0:i.message,...o,value:o.value??""})},rules:{required:e.texts.passwordRequiredText}}),s.jsx(kt,{control:a,name:"confirmPassword",render:({field:o})=>{var i;return s.jsx(Rt,{width:"full",type:"password",label:e.texts.confirmPasswordLabel,placeholder:e.texts.confirmPasswordPlaceholder,helpertext:(i=r.confirmPassword)==null?void 0:i.message,...o,value:o.value??""})},rules:{required:e.texts.confirmPasswordRequiredText}})]})}),s.jsx(Fn,{children:s.jsx(qe,{className:"w-full",type:"submit",children:e.texts.updateProfile})})]})})},IO=e=>s.jsx(Gt,{children:s.jsxs($t,{headless:!0,children:[s.jsx("div",{className:"mb-2 text-sm font-bold",children:e.blockTitle}),s.jsx("div",{className:"flex flex-col gap-4 rounded p-2",children:e.children})]})}),TO=e=>{var t,r,n,a,o,i,l;return s.jsxs("div",{dir:e.direction,children:[s.jsx(Gt,{children:s.jsxs($t,{headless:!0,className:"flex flex-col gap-6",children:[e.viaGoogle&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGoogle,children:[s.jsx(zr.google,{className:"h-4 w-4"}),((t=e.texts)==null?void 0:t.continueWithGoogle)??"Continue With Google"]}),e.viaGithub&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGithub,children:[s.jsx(zr.gitHub,{className:"h-4 w-4"}),((r=e.texts)==null?void 0:r.continueWithGithub)??"Continue With Github"]}),e.viaTwitter&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleTwitter,children:[s.jsx(zr.twitter,{className:"h-4 w-4"}),((n=e.texts)==null?void 0:n.continueWithTwitter)??"Continue With Twitter"]}),e.viaApple&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleApple,children:[s.jsx(zr.apple,{className:"h-4 w-4"}),((a=e.texts)==null?void 0:a.continueWithApple)??"Continue With Apple"]}),e.viaMicrosoft&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleMicrosoft,children:[s.jsx(zr.microsoft,{className:"h-4 w-4"}),((o=e.texts)==null?void 0:o.continueWithMicrosoft)??"Continue With Microsoft"]}),e.viaEmail&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleEmail,children:[s.jsx(zr.mail,{className:"h-4 w-4"}),((i=e.texts)==null?void 0:i.continueWithEmail)??"Continue With Email"]}),e.viaPhone&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handlePhone,children:[s.jsx(zr.phone,{className:"h-4 w-4"}),((l=e.texts)==null?void 0:l.continueWithPhone)??"Continue With Phone"]}),!e.withoutSignUp&&s.jsxs("div",{className:"p-3 text-center text-sm font-normal dark:text-gray-300",children:[e.texts.newUserText,s.jsx("span",{onClick:e.handleRouteToSignUp,className:"clickable-link",children:e.texts.createAccount})]})]})}),s.jsxs("div",{className:"mt-6 flex flex-row justify-between",children:[s.jsx(yn,{onChangeTab:e.handleLanguage,design:"tabs",options:[{value:"ar",label:"عربي"},{value:"en",label:"English"}]}),s.jsx(yn,{onChangeTab:e.handleColorMode,design:"tabs",options:[{value:"light",label:s.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90",children:s.jsx("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})},{value:"dark",label:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100",children:s.jsx("path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})})}]})]})]})},kO=e=>{var j,O,L,M,z;const[t,r]=h.useState(null),n=Xa(),{formState:{errors:a},handleSubmit:o,control:i}=n,[l,u]=h.useState(null),[c,m]=h.useState(0),[p,x]=h.useState(!1),[C,E]=h.useState(""),[v,A]=h.useState(e.confirmationStage),S=()=>{clearTimeout(l),m(60),x(!0);const oe=setInterval(()=>{m(J=>J>0?J-1:(clearInterval(oe),x(!1),0))},1e3);u(oe)};return s.jsx(Gt,{children:s.jsx($t,{className:"transition-all",headless:!0,children:v?s.jsxs("form",{onSubmit:H=>{H.preventDefault(),t&&e.handleConfirm(t)},children:[s.jsx(yg,{width:"full",digits:6,getPins:H=>r(H)}),s.jsx("div",{className:" py-2 text-center text-xs text-muted-foreground",children:p?s.jsxs("span",{children:["Resend code in ",c," seconds |"," ",s.jsx("span",{className:"clickable-link",onClick:()=>{clearTimeout(l),x(!1)},children:"Cancel"})]}):s.jsxs("span",{children:[((j=e.texts)==null?void 0:j.didntGetCode)??"Didn't get the code?"," ",s.jsx("span",{className:"clickable-link",onClick:()=>{S()},children:((O=e.texts)==null?void 0:O.resendCode)??"Click to resend"})]})}),s.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-2",children:[s.jsx(qe,{variant:"secondary",onClick:()=>A(!1),children:((L=e.texts)==null?void 0:L.cancel)??"Cancel"}),s.jsx(qe,{isLoading:e.loadingConfirm,children:((M=e.texts)==null?void 0:M.confirm)??"Confirm"})]})]}):s.jsxs("form",{onSubmit:H=>{H.preventDefault(),A(!0),e.handleContinue(C)},children:[s.jsx(kt,{control:i,name:"phone",render:({field:H})=>s.jsx(cd,{country:e.country??"",label:e.label??"",handleChange:oe=>E(oe.target.value),...H}),rules:{required:e.phoneRequiredText}}),s.jsx(qe,{isLoading:e.loadingContinue,className:"w-full",children:((z=e.texts)==null?void 0:z.continue)??"Continue"})]})})})},BO=e=>{const{formState:{errors:t},handleSubmit:r,control:n}=Xa();return s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsxs(Gt,{dir:e.direction,children:[s.jsx($t,{headless:!0,children:s.jsxs("form",{onSubmit:r(a=>e.handleSignIn(a)),children:[e.showError&&s.jsx(qn,{title:e.errorTitle,text:e.errorText,severity:"error"}),e.signInType==="email"?s.jsx(kt,{control:n,name:"email",render:({field:a})=>{var o;return s.jsx(Rt,{width:"full",type:"text",autoComplete:"email",label:e.texts.emailLabel,helpertext:(o=t.email)==null?void 0:o.message,placeholder:e.texts.emailPlaceholder,value:a.value??"",onChange:a.onChange})},rules:{required:e.texts.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:e.texts.emailInvalidText}}}):e.signInType==="username"?s.jsx(kt,{control:n,name:"username",render:({field:a})=>{var o;return s.jsx(Rt,{width:"full",type:"text",autoComplete:"username",label:e.texts.usernameLabel,helpertext:(o=t.username)==null?void 0:o.message,placeholder:e.texts.usernamePlaceholder,onChange:a.onChange,value:a.value??""})},rules:{required:e.texts.usernameRequired}}):s.jsx(kt,{control:n,name:"phone",render:({field:a})=>s.jsx(cd,{label:"Phone number"}),rules:{required:e.texts.phoneRequiredText}}),e.signInType!=="phone"&&s.jsxs(s.Fragment,{children:[s.jsx(kt,{control:n,name:"password",render:({field:a})=>{var o;return s.jsx(Rt,{width:"full",autoComplete:"current-password",type:"password",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helpertext:(o=t.password)==null?void 0:o.message,onChange:a.onChange,value:a.value??""})},rules:{required:e.texts.passwordRequiredText,minLength:5}}),!e.withoutResetPassword&&s.jsx("div",{onClick:e.handleForgotPassword,className:"mb-3 w-fit cursor-pointer text-xs dark:text-gray-300",children:e.texts.forgotPasswordText})]}),s.jsx(qe,{className:"mt-4 w-full",isLoading:e.isLoading,children:e.texts.signInText}),!e.withoutSignUp&&s.jsxs("div",{className:"p-3 text-center text-sm font-normal dark:text-gray-300",children:[e.texts.newUserText," ",s.jsx("span",{onClick:e.handleRouteToSignUp,className:"clickable-link",children:e.texts.createAccount})]})]})}),e.viaGithub||e.viaGoogle||e.viaTwitter?s.jsxs(Fn,{className:Ve(e.logosOnly?"flex flex-row justify-center gap-2":"grid grid-cols-1 gap-2"),children:[e.viaGoogle&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGoogleSignIn,children:[e.isGoogleLoading?s.jsx(us,{size:"button"}):s.jsx(zr.google,{className:"h-4 w-4"}),!e.logosOnly&&e.texts.signInViaGoogleLabel]}),e.viaGithub&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGithubSignIn,children:[e.isGithubLoading?s.jsx(us,{size:"button"}):s.jsx(zr.gitHub,{className:"h-4 w-4"}),!e.logosOnly&&e.texts.signInViaGithubLabel]}),e.viaTwitter&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleTwitterSignIn,children:[e.isTwitterLoading?s.jsx(us,{size:"button"}):s.jsx(zr.twitter,{className:"h-4 w-4"})," ",!e.logosOnly&&e.texts.signInViaTwitterLabel]})]}):null]}),s.jsx(Cg,{currentColorMode:e.currentColorMode,currentLanguage:e.currentLanguage,handleColorMode:e.handleColorMode,handleLanguage:e.handleLanguage})]})};function PO(){return s.jsxs(Gt,{children:[s.jsxs(Ca,{className:"space-y-1",children:[s.jsx(wa,{className:"text-2xl",children:"Create an account"}),s.jsx(ii,{children:"Enter your email below to create your account"})]}),s.jsxs($t,{className:"grid gap-4",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[s.jsxs(qe,{variant:"outline",children:[s.jsx(zr.gitHub,{className:"mr-2 h-4 w-4"}),"Github"]}),s.jsxs(qe,{variant:"outline",children:[s.jsx(zr.google,{className:"mr-2 h-4 w-4"}),"Google"]})]}),s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"absolute inset-0 flex items-center",children:s.jsx("span",{className:"w-full border-t"})}),s.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:s.jsx("span",{className:"bg-background px-2 text-muted-foreground",children:"Or continue with"})})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(ti,{htmlFor:"email",children:"Email"}),s.jsx(As,{id:"email",type:"email",placeholder:"m@example.com"})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(ti,{htmlFor:"password",children:"Password"}),s.jsx(As,{id:"password",type:"password"})]})]}),s.jsx(Fn,{children:s.jsx(qe,{className:"w-full",children:"Create account"})})]})}const OO=e=>{const t=Xa(),{formState:{errors:r},handleSubmit:n,control:a}=t;return s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsxs(Gt,{dir:e.direction,children:[s.jsx($t,{headless:!0,children:s.jsxs("div",{children:[e.showError&&s.jsx(qn,{title:e.errorTitle,text:e.errorText,severity:"error"}),s.jsx(mu,{...t,children:s.jsxs("form",{onSubmit:n(o=>e.handleSignUp(o)),children:[s.jsx("div",{children:e.signUpFields.map((o,i)=>{if(o==="fullname")return s.jsx(kt,{control:a,name:"fullName",render:({field:l})=>{var u;return s.jsx(Rt,{width:"full",type:"text",label:e.texts.fullNameLabel,placeholder:e.texts.fullNamePlaceholder,helpertext:(u=r.fullName)==null?void 0:u.message,onChange:l.onChange,value:l.value??""})},rules:{required:e.texts.fullNameRequiredText}},i);if(o==="email")return s.jsx(kt,{control:a,name:"email",render:({field:l})=>{var u;return s.jsx(Rt,{width:"full",type:"text",autoComplete:"email",label:e.texts.emailLabel,helpertext:(u=r.email)==null?void 0:u.message,placeholder:e.texts.emailPlaceholder,onChange:l.onChange,value:l.value??""})},rules:{required:e.texts.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:e.texts.emailInvalidText}}},i);if(o==="username")return s.jsx(kt,{control:a,name:"username",render:({field:l})=>{var u;return s.jsx(Rt,{width:"full",type:"text",autoComplete:"username",label:e.texts.usernameLabel,helpertext:(u=r.username)==null?void 0:u.message,placeholder:e.texts.usernamePlaceholder,onChange:l.onChange,value:l.value??""})},rules:{required:e.texts.usernameRequired}},i)})}),s.jsx(kt,{control:a,name:"password",render:({field:o})=>{var i;return s.jsx(Rt,{width:"full",type:"password",autoComplete:"new-password",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helpertext:(i=r.password)==null?void 0:i.message,onChange:o.onChange,value:o.value??""})},rules:{required:e.texts.passwordRequiredText}}),s.jsx(kt,{control:a,name:"confirm_password",render:({field:o})=>{var i;return s.jsx(Rt,{width:"full",type:"password",autoComplete:"new-password",label:e.texts.confirmPasswordLabel,placeholder:e.texts.confirmPasswordPlaceholder,helpertext:(i=r.confirm_password)==null?void 0:i.message,onChange:o.onChange,value:o.value??""})},rules:{required:e.texts.passwordRequiredText}}),e.showRefCode&&s.jsx(kt,{control:a,name:"refCode",render:({field:o})=>{var i;return s.jsx(Rt,{width:"full",type:"text",label:e.texts.refCode,placeholder:e.texts.passwordPlaceholder,helpertext:(i=r.password)==null?void 0:i.message,value:o.value??"",onChange:o.onChange})}}),e.showUserSource&&s.jsx("div",{children:s.jsx(kt,{control:a,name:"reference",render:({field:o})=>s.jsx(Hl,{label:"How did you learn about us?",isCreatable:!1,isMulti:!1,isSearchable:!1,isClearable:!1,options:[{value:"friend",label:"From a friend"},{value:"ad",label:"Advertisement"},{value:"other",label:"Other"}],onChange:i=>{o.onChange(i.value)}})})}),e.showTermsOption&&s.jsx(kt,{control:a,name:"terms_accepted",render:({field:o})=>{var i;return s.jsx(Xf,{id:"terms_accepted",helperText:(i=r.terms_accepted)==null?void 0:i.message,onChange:l=>o.onChange(l),label:s.jsxs("span",{children:[e.texts.iAcceptText," ",s.jsx("a",{onClick:e.handleRouteToTOS,className:"clickable-link",children:e.texts.termsText})]})})},rules:{required:e.texts.termsRequiredText}}),e.showNewsletterOption&&s.jsx(kt,{control:a,name:"newsletter_accepted",render:({field:o})=>s.jsx(Xf,{id:"newsletter_accepted",label:e.texts.subscribeToNewsletter,onChange:o.onChange})}),s.jsx(qe,{className:"w-full",isLoading:e.isLoading,children:e.texts.signUpText})]})}),s.jsxs("div",{className:"flex flex-row items-center justify-center gap-1 p-3 text-center text-sm font-normal dark:text-white",children:[s.jsx("span",{children:e.texts.existingUserText}),s.jsx("span",{onClick:e.handleRouteToSignIn,className:"clickable-link",children:e.texts.signInText})]})]})}),e.viaGithub||e.viaGoogle||e.viaTwitter?s.jsxs(Fn,{className:Ve(e.logosOnly?"flex flex-row justify-center gap-2":"grid grid-cols-1 gap-2"),children:[e.viaGoogle&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGoogleSignUp,children:[s.jsx(zr.google,{className:"h-4 w-4"}),!e.logosOnly&&e.texts.signUpViaGoogleLabel]}),e.viaGithub&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleGithubSignUp,children:[s.jsx(zr.gitHub,{className:"h-4 w-4"}),!e.logosOnly&&e.texts.signUpViaGithubLabel]}),e.viaTwitter&&s.jsxs(qe,{className:"flex flex-row items-center gap-2",variant:"outline",onClick:e.handleTwitterSignUp,children:[s.jsx(zr.twitter,{className:"h-4 w-4"}),!e.logosOnly&&e.texts.signUpViaTwitterLabel]})]}):null]}),s.jsx(Cg,{currentColorMode:e.currentColorMode,currentLanguage:e.currentLanguage,handleColorMode:e.handleColorMode,handleLanguage:e.handleLanguage})]})},NO=e=>{const[t,r]=h.useState(!1),n=Xa(),{formState:{errors:a},handleSubmit:o,control:i}=n,l=u=>{u.password===u.confirmPassword?e.handleNewPassword():r(!0)};return s.jsxs(Gt,{dir:e.direction,children:[t&&s.jsx(qn,{text:e.texts.passwordMatchError,severity:"error"}),e.passwordChanged?s.jsx($t,{headless:!0,children:s.jsx("div",{className:"text-center",children:e.texts.passwordChanged})}):s.jsx(mu,{...n,children:s.jsxs("form",{onSubmit:o(l),children:[!e.headless&&s.jsxs(Ca,{children:[s.jsx(wa,{children:"Create Password"}),s.jsx(ii,{children:"Set a new password for your account"})]}),s.jsxs($t,{headless:e.headless,children:[s.jsx(kt,{control:i,name:"password",render:({field:u})=>{var c;return s.jsx(Rt,{width:"full",type:"password",autoComplete:"new-password",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helpertext:(c=a.password)==null?void 0:c.message,...u,value:u.value??""})},rules:{required:e.texts.passwordRequiredText}}),s.jsx(kt,{control:i,name:"confirmPassword",render:({field:u})=>{var c;return s.jsx(Rt,{width:"full",type:"password",autoComplete:"new-password",label:e.texts.confirmPasswordLabel,placeholder:e.texts.confirmPasswordPlaceholder,helpertext:(c=a.confirmPassword)==null?void 0:c.message,...u,value:u.value??""})},rules:{required:e.texts.confirmPasswordRequiredText}})]}),s.jsx(Fn,{children:s.jsx(qe,{className:"w-full",type:"submit",children:e.texts.updatePassword})})]})})]})},MO=e=>{var i,l,u,c,m,p;const t=Xa(),{formState:{errors:r},handleSubmit:n,register:a,control:o}=t;return s.jsx(Gt,{dir:e.direction,children:e.sent?s.jsx($t,{headless:!0,children:s.jsx("div",{className:"text-center",children:(p=e.texts)==null?void 0:p.emailSentText})}):s.jsxs(s.Fragment,{children:[!e.headless&&s.jsxs(Ca,{children:[s.jsx(wa,{children:"Reset Password"}),s.jsx(ii,{children:"Enter your email to reset your account password"})]}),s.jsxs("form",{onSubmit:n(e.handleResetPassword),children:[s.jsxs($t,{headless:e.headless,children:[s.jsx(kt,{control:o,name:"email",render:({field:x})=>{var C,E,v;return s.jsx(Rt,{width:"full",type:"text",label:(C=e.texts)==null?void 0:C.emailLabel,helpertext:(E=r.email)==null?void 0:E.message,placeholder:(v=e.texts)==null?void 0:v.emailPlaceholder,...x,value:x.value??""})},rules:{required:(i=e.texts)==null?void 0:i.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:(l=e.texts)==null?void 0:l.emailInvalidText}}}),s.jsxs("div",{className:"pb-2 text-start text-sm dark:text-gray-300",children:[((u=e.texts)==null?void 0:u.dontHaveAccount)??"Don't have an account? ",s.jsx("span",{onClick:e.handleRouteToSignUp,className:"clickable-link",children:((c=e.texts)==null?void 0:c.signUpText)??"Sign Up"})]})]}),s.jsx(Fn,{children:s.jsx(qe,{type:"submit",className:"w-full",children:(m=e.texts)==null?void 0:m.resetPassword})})]})]})})},RO=e=>{const[t,r]=h.useState(null);return s.jsx(Gt,{children:s.jsxs($t,{headless:!0,children:[e.showError&&s.jsx(qn,{title:e.errorTitle,text:e.errorText,severity:"error"}),s.jsxs("div",{className:"mb-4 dark:text-white",children:[s.jsx("div",{className:"text-lg font-bold",children:e.texts.checkYourPhone??"Please check your phone"}),s.jsxs("div",{className:"text-muted-foreground",children:[s.jsx("span",{children:e.texts.weSentCode??"We've sent a code to "}),s.jsx("span",{children:e.phoneNumber})]})," "]}),s.jsxs("form",{onSubmit:n=>{n.preventDefault(),t&&e.submitConfirmation(t)},children:[s.jsx(yg,{width:"full",digits:6,getPins:n=>r(n)}),s.jsxs("div",{className:" py-2 text-center text-xs text-muted-foreground",children:[s.jsx("span",{children:e.texts.didntGetCode??"Didn't get the code?"})," ",s.jsx("span",{className:"clickable-link",children:e.texts.resendCode??"Click to resend"})]}),s.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-2",children:[s.jsx(qe,{variant:"secondary",children:e.texts.cancel??"Cancel"}),s.jsx(qe,{children:e.texts.confirm??"Confirm"})]})]})]})})},$O=({texts:e,handleResend:t})=>s.jsxs(Gt,{children:[s.jsx($t,{headless:!0,children:s.jsxs("div",{className:"flex flex-col items-center justify-center text-center",children:[s.jsx("div",{className:"flex h-16 w-16 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground",children:s.jsxs("svg",{stroke:"currentColor",fill:"none","stroke-width":"2",viewBox:"0 0 24 24","stroke-linecap":"round","stroke-linejoin":"round",height:"0.5em",width:"0.5em",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),s.jsx("polyline",{points:"22,6 12,13 2,6"})]})}),s.jsx("div",{className:"m-2 text-xl font-bold",children:(e==null?void 0:e.checkEmail)??"Check you email"}),s.jsx("div",{className:"text-sm",children:(e==null?void 0:e.pleaseVerify)??"Thank you for signing up! To complete your registration, we've sent a verification email to the address you provided. Please check your inbox and follow the instructions in the email to activate your account."})]})}),s.jsx(Fn,{className:"flex flex-col justify-center ",children:s.jsx("span",{className:"clickable-link text-sm",onClick:t,children:(e==null?void 0:e.resendEmail)??"Resend Email"})})]}),LO=e=>{const[t,r]=h.useState("");return s.jsxs(Gt,{children:[s.jsxs(Ca,{children:[s.jsx(wa,{children:"Choose Payment Method"}),s.jsx(ii,{children:"And you'll be directed to the next step to complete the payment"})]}),s.jsxs($t,{className:"grid grid-cols-2 gap-4",children:[s.jsxs(qe,{className:Ve("flex w-full flex-col gap-2 pt-6",t==="mada"&&"outline outline-4 outline-primary"),variant:"outline",size:"heightless",disabled:!e.viaMada,onClick:()=>r("mada"),children:[s.jsx("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/mada.png",className:"h-6"}),s.jsx("span",{children:e.madaLabel})]}),s.jsxs(qe,{className:Ve("flex w-full flex-col gap-2",t==="apple-pay"&&"outline outline-4 outline-primary"),variant:"outline",size:"heightless",disabled:!e.viaApplePay,onClick:()=>r("apple-pay"),children:[s.jsx("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/apple-pay.png",className:"h-11"}),s.jsx("span",{children:e.applePayLabel})]}),s.jsxs(qe,{className:Ve("flex w-full flex-col gap-2",t==="visa-master"&&"outline outline-4 outline-primary"),variant:"outline",size:"heightless",disabled:!e.viaCreditCard,onClick:()=>r("visa-master"),children:[s.jsx("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/visa-master.png",className:"h-6"}),s.jsx("span",{children:e.visaMasterLabel})]}),s.jsxs(qe,{variant:"outline",size:"heightless",className:Ve("flex w-full flex-col gap-2",t==="wallet"&&"outline outline-4 outline-primary"),disabled:!e.viaWallet,onClick:()=>r("wallet"),children:[s.jsx("svg",{version:"1.1",fill:"currentColor",viewBox:"0 0 223 223",className:"h-6 w-6",children:s.jsxs("g",{children:[s.jsx("path",{d:`M223,94.5c0-6.075-4.925-11-11-11h-63c-6.075,0-11,4.925-11,11v33c0,6.075,4.925,11,11,11h63c6.075,0,11-4.925,11-11V94.5z
228
228
  M169.515,123.967c-7.082,0-12.823-5.741-12.823-12.823c0-7.082,5.741-12.823,12.823-12.823c7.082,0,12.823,5.741,12.823,12.823
229
229
  C182.338,118.225,176.597,123.967,169.515,123.967z`}),s.jsx("path",{d:`M123.509,68.5H205v-33c0-8.271-6.395-15-14.667-15h-175C7.062,20.5,0,27.229,0,35.5v152c0,8.271,7.062,15,15.333,15h175
230
230
  c8.271,0,14.667-6.729,14.667-15v-34h-81.342L123.509,68.5z`})]})}),s.jsx("span",{children:e.walletLabel})]}),s.jsxs(qe,{variant:"outline",size:"heightless",className:Ve("flex w-full flex-col gap-2",t==="stc-pay"&&"outline outline-4 outline-primary"),disabled:!e.viaSTCPay,onClick:()=>r("stc-pay"),children:[s.jsx("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/stc-pay.png",className:"h-6"}),s.jsx("span",{children:e.stcPayLabel})]}),s.jsxs(qe,{variant:"outline",size:"heightless",className:Ve("flex w-full flex-col gap-2",t==="google-pay"&&"outline outline-4 outline-primary"),disabled:!e.viaGooglePay,onClick:()=>r("google-pay"),children:[s.jsx("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/google-pay.png",className:"h-6"}),s.jsx("span",{children:e.googlePayLabel})]}),s.jsxs(qe,{variant:"outline",size:"heightless",className:Ve("col-span-2 flex w-full flex-col gap-2",t==="paypal"&&"outline outline-4 outline-primary"),disabled:!e.viaPayPal,onClick:()=>r("paypal"),children:[s.jsx("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/paypal.png",className:"h-6"}),s.jsx("span",{children:e.paypalLabel})]})]}),s.jsx(Fn,{children:s.jsx(qe,{onClick:()=>e.handleContinue(t),className:"w-full",disabled:!t,children:"Continue"})})]})},_O=e=>{const[t,r]=h.useState(""),[n,a]=h.useState(""),o=Xa(),{formState:{errors:i},handleSubmit:l,control:u}=o,c=p=>{const x=/^4[0-9]{0,15}$/m,C=/^5$|^5[0-5][0-9]{0,16}$/m,E=/^3$|^3[47][0-9]{0,13}$/m,v=/^(440647|440795|446404|457865|968208|457997|474491|636120|417633|468540|468541|468542|468543|968201|446393|409201|458456|484783|462220|455708|410621|455036|486094|486095|486096|504300|440533|489318|489319|445564|968211|410685|406996|432328|428671|428672|428673|968206|446672|543357|434107|407197|407395|412565|431361|604906|521076|529415|535825|543085|524130|554180|549760|968209|524514|529741|537767|535989|536023|513213|520058|558563|588982|589005|531095|530906|532013|968204|422817|422818|422819|428331|483010|483011|483012|589206|968207|419593|439954|530060|531196|420132)/,A=/^507803[0-6][0-9]|507808[3-9][0-9]|507809[0-9][0-9]|507810[0-2][0-9]/;let S="visa";return p.replace(/[^\d]/g,"").match(v)?S="mada":p.replace(/[^\d]/g,"").match(A)?S="meeza":p.replace(/[^\d]/g,"").match(x)?S="visa":p.replace(/[^\d]/g,"").match(C)?S="mastercard":p.replace(/[^\d]/g,"").match(E)&&(S="amex"),S},m=p=>{let{value:x,name:C}=p.target,E=x;x=x.replace(/\D/g,""),/^3[47]\d{0,13}$/.test(x)?E=x.replace(/(\d{4})/,"$1 ").replace(/(\d{4}) (\d{6})/,"$1 $2 "):/^3(?:0[0-5]|[68]\d)\d{0,11}$/.test(x)?E=x.replace(/(\d{4})/,"$1 ").replace(/(\d{4}) (\d{6})/,"$1 $2 "):/^\d{0,16}$/.test(x)&&(E=x.replace(/(\d{4})/,"$1 ").replace(/(\d{4}) (\d{4})/,"$1 $2 ").replace(/(\d{4}) (\d{4}) (\d{4})/,"$1 $2 $3 ")),console.log("card number is ",E.trimRight()),r(E.trimRight())};return h.useEffect(()=>{let p=c(t);a(p)}),s.jsx(Gt,{children:s.jsxs("form",{onSubmit:l(e.handle),children:[s.jsxs($t,{headless:!0,children:[s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsx(kt,{control:u,name:"cardNumber",render:({field:p})=>{var x;return s.jsx(Rt,{width:"full",name:"cardNumber",placeholder:"1234 1234 1234 1234",type:"number",onChange:m,label:"Card Number",helpertext:(x=i.password)==null?void 0:x.message,iconInside:s.jsx("img",{src:`https://sikka-images.s3.ap-southeast-1.amazonaws.com/payment-symbols/borderless/${n}.png`,alt:"",className:"h-8"})})},rules:{required:"Card Number is rquired"}}),s.jsx("div",{className:"w-1/4",children:s.jsx(kt,{control:u,name:"cardCVC",render:({field:p})=>{var x;return s.jsx(Rt,{width:"full",name:"cardCVC",maxLength:"3",autoComplete:"cc-number",placeholder:"CVC",type:"number",label:"CVC",helpertext:(x=i.password)==null?void 0:x.message})},rules:{required:"Password is rquired"}})})]}),s.jsx(kt,{control:u,name:"cardExpiry",render:({field:p})=>{var x;return s.jsx(Rt,{width:"full",name:"cardExpiry",placeholder:"MM / YY",type:"password",label:"Expiry Date",helpertext:(x=i.password)==null?void 0:x.message})},rules:{required:"Password is rquired"}}),s.jsx(kt,{control:u,name:"cardName",render:({field:p})=>{var x;return s.jsx(Rt,{width:"full",name:"cardName",type:"text",label:"Name on card",helpertext:(x=i.password)==null?void 0:x.message})},rules:{required:"Card holder name is rquired"}})]}),s.jsx(Fn,{children:s.jsx(qe,{className:"w-full",onClick:e.handlePayWithCreditCard,children:"Pay with Credit Card"})})]})})},WO=e=>{const[t,r]=h.useState(0);return s.jsx(Gt,{children:s.jsxs($t,{headless:!0,children:[s.jsxs("div",{className:"p-4 text-center",children:[s.jsx("div",{className:" text-5xl font-extrabold",children:Number(t).toLocaleString("en")||"0"}),s.jsx("div",{className:"text-sm font-normal",children:e.currency||"SAR"})]}),s.jsxs("div",{className:"mb-2 flex w-full flex-col gap-4 text-center",children:[s.jsxs("div",{className:"mb-2 flex w-full flex-row gap-4 text-center",children:[s.jsx(qe,{variant:"outline",className:"h-full w-full",children:"10 SAR"}),s.jsx(qe,{variant:"outline",className:"h-full w-full",children:"50 SAR"}),s.jsx(qe,{variant:"outline",className:"h-full w-full",children:"100 SAR"})]}),s.jsx(As,{placeholder:"Custom Amount",type:"number",name:"amount"})]}),s.jsx(qe,{className:"mt-6 w-full",children:e.texts.chargeWallet})]})})},VO=e=>s.jsx(Gt,{children:s.jsxs($t,{headless:!0,children:[s.jsxs("div",{className:"text-center text-5xl font-extrabold",children:[e.walletBalance||"0",s.jsx("div",{className:"text-sm font-normal",children:e.currency||"SAR"})]}),s.jsx(qe,{className:"mt-6 w-full",onClick:e.handlePayWithWallet,children:"Pay Now"})]})}),HO=e=>{var l,u,c,m,p,x,C,E,v,A;let t=e.lang==="ar";const r=Xa(),{formState:{errors:n},handleSubmit:a,register:o,control:i}=r;return s.jsxs(Gt,{children:[s.jsx(Ca,{children:s.jsx(wa,{children:e.texts.orderDetails})}),s.jsx($t,{children:s.jsx("div",{children:s.jsx("div",{className:"rounded border border-gray-300",children:s.jsx(Cb,{pagination:!1,direction:t?"rtl":"ltr",columns:[{hidden:!1,value:"Product"},{hidden:!0,value:"ID"},{hidden:!1,value:"Price"}],borders:"inner",rows:e.products,bordersWidth:"1"})})})}),s.jsx(Ca,{children:s.jsx(wa,{children:e.texts.billingAddress})}),s.jsxs("form",{onSubmit:a(e.handlePayNow),children:[s.jsx($t,{children:s.jsx("div",{children:s.jsxs(mu,{...r,children:[s.jsxs("div",{children:[s.jsx(kt,{control:i,name:"firstName",rules:{required:(l=e.texts)==null?void 0:l.required},render:({field:S})=>{var j,O;return s.jsx(Rt,{type:"text",label:((j=e.texts)==null?void 0:j.firstNameLabel)+" *",helpertext:(O=n.firstName)==null?void 0:O.message,...S,value:S.value??""})}}),s.jsx("div",{style:{width:20}}),s.jsx(kt,{control:i,name:"lastName",rules:{required:(u=e.texts)==null?void 0:u.required},render:({field:S})=>{var j,O;return s.jsx(Rt,{width:"full",type:"text",label:((j=e.texts)==null?void 0:j.lastNameLabel)+" *",helpertext:(O=n.lastName)==null?void 0:O.message,...S,value:S.value??""})}})]}),s.jsx(kt,{control:i,name:"email",render:({field:S})=>{var j,O;return s.jsx(Rt,{width:"full",type:"text",label:((j=e.texts)==null?void 0:j.emailLabel)+" *",helpertext:(O=n.email)==null?void 0:O.message,...S,value:S.value??""})},rules:{required:(c=e.texts)==null?void 0:c.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:(m=e.texts)==null?void 0:m.emailInvalidText}}}),s.jsx("div",{className:"flex flex-col md:flex-row",children:s.jsx(kt,{control:i,name:"streetAddress",rules:{required:(p=e.texts)==null?void 0:p.required},render:({field:S})=>{var j,O;return s.jsx(Rt,{width:"full",type:"text",label:((j=e.texts)==null?void 0:j.streetAddressLabel)+" *",helpertext:(O=n.streetAddress)==null?void 0:O.message,...S,value:S.value??""})}})}),s.jsxs("div",{className:"flex flex-col md:flex-row",children:[s.jsx(kt,{control:i,name:"province",rules:{required:(x=e.texts)==null?void 0:x.required},render:({field:S})=>{var j,O;return s.jsx(Rt,{width:"full",type:"text",label:((j=e.texts)==null?void 0:j.stateLabel)+" *",helpertext:(O=n.province)==null?void 0:O.message,...S,value:S.value??""})}}),s.jsx("div",{style:{width:20}}),s.jsx(kt,{control:i,name:"city",rules:{required:(C=e.texts)==null?void 0:C.required},render:({field:S})=>{var j,O;return s.jsx(Rt,{width:"full",type:"text",label:((j=e.texts)==null?void 0:j.cityLabel)+" *",helpertext:(O=n.city)==null?void 0:O.message,...S,value:S.value??""})}})]}),s.jsxs("div",{className:"flex flex-col md:flex-row",children:[s.jsx(kt,{control:i,name:"buildingNumber",rules:{required:(E=e.texts)==null?void 0:E.required},render:({field:S})=>{var j,O;return s.jsx(Rt,{width:"full",type:"text",label:((j=e.texts)==null?void 0:j.buildingNumberLabel)+" *",helpertext:(O=n.buildingNumber)==null?void 0:O.message,...S,value:S.value??""})}}),s.jsx("div",{style:{width:20}}),s.jsx(kt,{control:i,name:"zipCode",rules:{required:(v=e.texts)==null?void 0:v.required},render:({field:S})=>{var j,O;return s.jsx(Rt,{width:"full",type:"number",label:((j=e.texts)==null?void 0:j.zipCodeLabel)+" *",helpertext:(O=n.zipCode)==null?void 0:O.message,...S,value:S.value??""})}})]}),s.jsx("div",{className:"mb-3",children:s.jsx(kt,{control:i,name:"country",rules:{required:(A=e.texts)==null?void 0:A.required},render:({field:S})=>{var j,O;return s.jsxs(Hl,{native:!0,label:((j=e.texts)==null?void 0:j.countryLabel)+" *",helperText:(O=n.country)==null?void 0:O.message,options:wb,getOptionLabel:L=>L.country_label,onChange:L=>S.onChange(L.country_label),value:S.value??"",children:[s.jsx("option",{}),e.countriesList.map((L,M)=>s.jsx("option",{children:L},M))]})}})})]})})}),s.jsx(Fn,{children:s.jsx(qe,{className:"w-full",children:e.texts.payNow})})," "]})]})},zO=e=>(e.lang,s.jsx(Gt,{children:s.jsxs($t,{headless:!0,children:[" ",s.jsx("div",{className:"py-5 text-center text-3xl font-bold dark:text-white",children:e.confirmationTitle}),s.jsxs("div",{className:"py-5 dark:text-white",children:[s.jsxs("div",{className:"mb-2 text-center",children:[e.texts.successMessage," ",s.jsx("strong",{children:e.userEmail})]}),s.jsx("div",{className:"text-center",children:e.texts.yourOrderNumber}),s.jsx("div",{className:"text-center font-bold",children:e.orderNumber})]}),s.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 py-5 pt-0",children:[s.jsx(qe,{className:"w-full",onClick:e.handlePrint,children:e.texts.print}),s.jsx(qe,{className:"w-full",onClick:e.handleHistory,children:e.texts.history}),s.jsx(qe,{className:"w-full",onClick:e.handleHome,children:e.texts.homePage}),s.jsx("div",{className:" text-center text-sm dark:text-white",children:e.texts.fasterPaymentNote}),s.jsx("a",{className:"clickable-link text-xs",onClick:e.handleRefundPolicyLink,children:e.texts.refundPolicy})]})]})})),GO=e=>s.jsxs("div",{children:[s.jsxs("div",{className:"mb-2 flex w-full justify-between",children:[s.jsx(yn,{design:"tabs",defaultValue:e.currentCycle,options:e.billingCycles,onChangeTab:t=>e.onCycleChange(t)}),s.jsx(yn,{design:"tabs",defaultValue:e.currentCurrency,options:e.currencies,onChangeTab:t=>e.onCurrencyChange(t)})]}),s.jsx("div",{className:"flex flex-row justify-between",children:e.plans.map((t,r)=>s.jsx(C2,{onPlanClicked:()=>e.onPlanClicked(t),...t,texts:{...t.texts,currencyText:e.currentCurrency,cycleText:e.currentCycle}},r))})]}),ZO=()=>s.jsx("svg",{className:"h-5 w-5 text-green-500","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),bw=()=>s.jsx("svg",{className:"h-5 w-5 text-red-500","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})}),UO=e=>{var o;const[t,r]=h.useState("sar"),[n,a]=h.useState("month");return s.jsxs("div",{id:"detailed-pricing",className:"w-full overflow-x-auto",children:[s.jsxs("div",{className:"mb-2 flex w-full justify-between",children:[s.jsx(yn,{design:"tabs",defaultValue:n,options:e.billingCycles,onChangeTab:i=>e.onCycleChange(i)}),s.jsx(yn,{design:"tabs",defaultValue:t,options:e.currencies,onChangeTab:i=>e.onCurrencyChange(i)})]}),s.jsxs("div",{className:" overflow-hidden rounded",children:[s.jsxs("div",{className:"grid grid-cols-4 gap-x-2 border-b border-t border-gray-200 bg-gray-100 p-4 text-sm font-medium text-gray-900 dark:border-gray-700 dark:bg-gray-800 dark:text-white",children:[s.jsx("div",{className:"flex items-center"}),e.plans.map(i=>s.jsxs("div",{children:[s.jsx("h5",{className:"text-md 0 font-bold text-gray-500 dark:text-gray-400",children:i.texts.title}),s.jsxs("div",{className:" flex items-baseline text-gray-900 dark:text-white",children:[s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-5xl font-extrabold tracking-tight",children:i.price}),s.jsx("span",{className:"mx-1 text-sm font-semibold",children:i.texts.currencyText})]}),s.jsxs("span",{className:"ml-1 text-xl font-normal text-gray-500 dark:text-gray-400",children:["/ ",i.texts.cycleText]})]}),s.jsx("h5",{className:"text-md font-normal text-gray-500 dark:text-gray-400",children:i.texts.subtitle})]}))]}),(o=e.plans)==null?void 0:o.map(i=>i.features.map(l=>s.jsxs("div",{className:"grid grid-cols-4 gap-x-16 border-b border-gray-200 px-4 py-5 text-sm text-gray-700 dark:border-gray-700",children:[s.jsxs("div",{className:" flex flex-row items-center gap-2 text-gray-500 dark:text-gray-400",children:[l.text,l.description&&s.jsx(ms,{side:"right",content:l.description,children:s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:s.jsx("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"})})})]}),s.jsx(bw,{}),s.jsx(ZO,{}),s.jsx(bw,{})]})))]})]})},XO=e=>{const[t,r]=h.useState(null);let n=[{title:"basic",price:"$49",cycle:"/mo"},{title:"business",price:"$99",cycle:"/mo"},{title:"enterprise",price:"$149",cycle:"/mo"}];return s.jsx("div",{className:"z-10 w-full max-w-screen-sm",children:s.jsxs("div",{className:"max-w-2xl ",children:[s.jsxs("div",{className:"flex flex-row justify-between",children:[s.jsx(yn,{design:"tabs",options:e.currencies,defaultValue:e.currentCurrency}),s.jsx(yn,{design:"tabs",options:e.billingCycles,defaultValue:e.currentCycle})]}),n.map(a=>s.jsxs("label",{htmlFor:a.title,className:"",onClick:()=>r(a.title),children:[s.jsx("input",{type:"radio",name:"radio",id:a.title,className:"peer appearance-none"}),s.jsxs("div",{className:$e(t===a.title?"peer-checked:border-blue-500":"","peer flex cursor-pointer items-center justify-between rounded-xl border bg-background px-5 py-4 shadow dark:text-white peer-checked:[&_.active]:block peer-checked:[&_.default]:hidden"),children:[s.jsxs("div",{className:"peer flex items-center gap-4",children:[s.jsx(YO,{}),s.jsx(JO,{title:"Enterprise",subtitle:"For startups and new businesses"})]}),s.jsx(QO,{amount:a.price,cycle:a.cycle})]})]}))]})})},YO=()=>s.jsxs(s.Fragment,{children:[s.jsx("svg",{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"default h-8 w-8 text-neutral-500",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),s.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"active hidden h-8 w-8 text-blue-500",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z"})})]}),JO=e=>s.jsxs("div",{className:"peer flex flex-col items-start ",children:[s.jsx("h2",{className:"font-medium text-neutral-700 dark:text-gray-100 sm:text-xl",children:e.title}),s.jsxs("p",{className:"text-sm text-neutral-500 dark:text-gray-300",children:[e.subtitle," "]})]}),QO=e=>s.jsxs("h2",{className:"peer text-xl font-semibold text-neutral-900 dark:text-white sm:text-2xl",children:[e.amount,s.jsx("span",{className:"text-base font-medium text-neutral-400",children:e.cycle})]}),KO=({referralLink:e,referralCode:t})=>s.jsx(Gt,{children:s.jsxs($t,{headless:!0,children:[s.jsxs("div",{className:"my-2 mt-0",children:[s.jsx("div",{className:"mb-1",children:"Referral Code"}),s.jsxs("div",{className:"flex flex-row items-center justify-between rounded border bg-background",children:[s.jsx("span",{className:"ml-3 font-bold",children:t}),s.jsx(qe,{onClick:()=>navigator.clipboard.writeText(t),children:s.jsxs("span",{className:"bg-red flex items-center justify-center",children:[s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"1em",width:"1em",children:s.jsx("path",{d:"M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"})})," "]})})]})]}),s.jsxs("div",{className:"my-2 mt-0",children:[s.jsx("div",{className:"mb-1",children:"Referral Link"}),s.jsxs("div",{className:"flex flex-row items-center justify-between rounded border bg-background",children:[s.jsx("span",{className:"ml-3 font-bold",children:e}),s.jsx(qe,{onClick:()=>navigator.clipboard.writeText(e),children:s.jsxs("span",{className:"bg-red flex items-center justify-center",children:[s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"1em",width:"1em",children:s.jsx("path",{d:"M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"})})," "]})})]})]})]})}),qO=({referralLink:e,referralCode:t,withdrawError:r})=>{const n=Xa(),{formState:{errors:a},handleSubmit:o,control:i}=n;return s.jsx(Gt,{children:s.jsxs($t,{headless:!0,children:[s.jsx("div",{children:s.jsxs(mu,{...n,children:[s.jsx(Rt,{label:"IBAN"}),s.jsx(Rt,{label:"Holder Name"}),s.jsx(kt,{control:i,name:"bank",render:({field:l})=>s.jsx(Hl,{label:"Bank",isCreatable:!1,isMulti:!1,isSearchable:!1,isClearable:!1,options:[{value:"snb",label:"Saudi National Bank"},{value:"bilad",label:"Al Bilad Bank"},{value:"rajihi",label:"Al Rajihi Bank"}],onInputChange:(u,c)=>console.log("changing",u),...l,onChange:(u,c)=>console.log("chooo",u)})})]})}),s.jsx("div",{children:s.jsx(qe,{className:"mt-6 w-full",children:"Add Bank Account"})}),r&&s.jsx("div",{children:s.jsx(qn,{text:"Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",severity:"warning"})}),s.jsxs("div",{className:"mt-3",children:[s.jsx("div",{className:"mb-1",children:"Settlement Accounts"}),s.jsxs("div",{className:"rounded",children:[s.jsx(tm,{bank:"Al Inma Bank",iban:"SA10228094028098329119",accountHolder:"Zakher Masri",default:!0}),s.jsx(tm,{bank:"Al Rajihi Bank",iban:"SA10228094028098329119",accountHolder:"Zakher Masri"}),s.jsx(tm,{bank:"Al Inma Bank",iban:"SA10228094028098329119",accountHolder:"Zakher Masri"})]})]})]})})},tm=e=>s.jsxs("div",{className:"mb-3 flex flex-row items-center justify-between rounded border bg-background p-3",children:[s.jsxs("div",{className:"flex flex-col justify-between",children:[s.jsx("div",{className:"text-xs",children:e.bank}),s.jsx("div",{children:e.accountHolder}),s.jsx("div",{className:"text-xs",children:e.iban})]}),s.jsxs("div",{className:"flex flex-row items-center justify-center gap-2",children:[e.default&&s.jsx(bc,{label:"Default",size:"small"}),s.jsx(dd,{size:"small",menuItems:[[{label:"Set Default",disabled:e.default},{label:"Edit"},{label:"Delete"}]],children:s.jsx(qe,{variant:"outline",size:"icon",children:s.jsx("svg",{"aria-label":"Vertical Three Dots Menu Icon",className:"rotate-90",stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",height:"1em",width:"1em",children:s.jsx("path",{d:"M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"})})})})]})]}),eN=({referralLink:e,referralCode:t,withdrawError:r})=>s.jsx(Gt,{children:s.jsxs($t,{headless:!0,children:[s.jsx("div",{className:"mb-1",children:"Stats"}),s.jsxs("div",{className:"justi flex flex-row gap-1",children:[s.jsx(rm,{title:"Clicks",number:22}),s.jsx(rm,{title:"Sign-ups",number:32}),s.jsx(rm,{title:"Commission",number:"213.22 SAR"})]}),s.jsx(qe,{className:"mt-6 w-full",children:"Withdraw Money"}),r&&s.jsx("div",{children:s.jsx(qn,{text:"Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",severity:"warning"})}),s.jsxs("div",{className:"mt-3",children:[s.jsx("div",{className:"mb-1",children:"Sign ups"}),s.jsxs("div",{className:"rounded",children:[s.jsx(bu,{date:"2020/10/11 @ 9:45 pm",email:"zakher@sikka.io",amount:"3.4 SAR / Month"}),s.jsx(bu,{date:"2022/10/11 @ 9:45 pm",email:"zakher@sikka.io",amount:"3.4 SAR / Month"}),s.jsx(bu,{date:"2022/10/11 @ 9:45 pm",email:"zakher@sikka.io",amount:"3.4 SAR / Month"}),s.jsx(bu,{date:"2022/10/11 @ 9:45 pm",email:"zakher@sikka.io",amount:"3.4 SAR / Month"}),s.jsx(bu,{date:"2022/10/11 @ 9:45 pm",email:"zakher@sikka.io",amount:"3.4 SAR / Month"})]})]})]})}),rm=e=>s.jsxs("div",{className:"w-full rounded border bg-background p-2",children:[s.jsx("div",{className:"text-sm",children:e.title}),s.jsx("div",{className:"font-bold",children:e.number})]}),bu=e=>s.jsxs("div",{className:"mb-3 rounded border-b bg-background p-2",children:[s.jsx("div",{className:"text-xs",children:e.date}),s.jsxs("div",{className:"flex flex-row justify-between",children:[s.jsx("div",{children:e.email}),s.jsx("div",{children:e.amount})]})]}),tN=({variant:e="contained",texts:t})=>s.jsx(Gt,{children:s.jsx($t,{headless:!0,children:s.jsxs("div",{className:"flex flex-col items-center dark:text-white",children:[s.jsx("div",{className:"text-center text-6xl font-bold ",children:"404"}),s.jsx("div",{className:"m-2 text-center text-xl font-bold ",children:(t==null?void 0:t.pageNotFound)??"Page Not Found"}),s.jsx("div",{className:"mb-4 text-center",children:(t==null?void 0:t.ifLost)??s.jsxs(s.Fragment,{children:["If you're lost please contact us"," ",s.jsx("span",{className:"clickable-link",children:"help@sikka.io"})]})}),s.jsx(qe,{className:"w-full",children:(t==null?void 0:t.home)??"Home"})]})})}),rN=({variant:e="contained",texts:t,onActionClick:r})=>s.jsxs(Gt,{children:[s.jsx($t,{headless:!0,children:s.jsxs("div",{className:"flex flex-col items-center justify-center text-center ",children:[s.jsx("div",{className:"flex h-10 w-10 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground",children:s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"0.35em",width:"0.35em",children:s.jsx("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"})})}),s.jsx("div",{className:"m-2 text-xl font-bold",children:(t==null?void 0:t.youreCaughtUp)??"You're all caught up"})]})}),s.jsx(Fn,{children:s.jsx(qe,{className:"w-full",onClick:()=>r(),children:(t==null?void 0:t.actionText)??"Go Home"})})]}),nN=e=>s.jsx(Gt,{children:s.jsxs($t,{headless:!0,children:[s.jsx("div",{children:s.jsx("p",{className:"mb-4 max-w-sm",children:"The team at Sikka Software is simply amazing. The tech is easy to follow, easy to work with, and infinitely flexible. The solution opportunities created by Tines are endless."})}),s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",children:[s.jsx("rect",{width:"48",height:"48",rx:"24",fill:"#45BE8B"}),s.jsx("path",{d:"M14.1412 22.4427L17.5803 16.5199C17.7671 16.1981 18.1112 16 18.4834 16H20.8581C21.653 16 22.1565 16.8528 21.7725 17.5488L19.3042 22.0225C19.2202 22.1747 19.1762 22.3458 19.1762 22.5196C19.1762 23.0879 19.6369 23.5486 20.2052 23.5486H21.5827C22.1594 23.5486 22.627 24.0162 22.627 24.5929V31.347C22.627 31.9237 22.1594 32.3913 21.5827 32.3913H15.0443C14.4676 32.3913 14 31.9237 14 31.347V22.9671C14 22.7829 14.0487 22.602 14.1412 22.4427Z",fill:"#FFFFFF"}),s.jsx("path",{d:"M25.356 22.4427L28.7951 16.5199C28.982 16.1981 29.326 16 29.6982 16H32.0729C32.8679 16 33.3713 16.8528 32.9873 17.5488L30.5191 22.0225C30.4351 22.1747 30.391 22.3458 30.391 22.5196C30.391 23.0879 30.8518 23.5486 31.4201 23.5486H32.7975C33.3743 23.5486 33.8418 24.0162 33.8418 24.5929V31.347C33.8418 31.9237 33.3743 32.3913 32.7975 32.3913H26.2592C25.6824 32.3913 25.2148 31.9237 25.2148 31.347V22.9671C25.2148 22.7829 25.2636 22.602 25.356 22.4427Z",fill:"#FFFFFF"})]}),s.jsx("span",{className:"border border-l "})," ",s.jsxs("div",{children:[s.jsx("strong",{children:"Brent Lassi"}),s.jsx("div",{children:" Chief Information Security Officer"})]})]})]})}),aN=({variant:e="contained",texts:t,handleNewsletterSub:r})=>s.jsxs(Gt,{children:[s.jsxs(Ca,{children:[s.jsx(wa,{children:t==null?void 0:t.title}),s.jsx(ii,{children:t==null?void 0:t.subtitle})]}),s.jsx($t,{children:s.jsxs("form",{className:"flex flex-row gap-2",onSubmit:n=>{n.preventDefault(),r(n.target[0].value)},children:[s.jsx(As,{type:"email",name:"email",placeholder:"example@sikka.io"}),s.jsx(qe,{children:(t==null?void 0:t.submit)??"Submit"})]})})]}),oN=({variant:e="contained",onActionClick:t,...r})=>s.jsx(Gt,{children:s.jsxs($t,{headless:!0,className:"flex flex-row items-center justify-between",children:[s.jsxs("div",{className:"flex flex-col items-start justify-center ",children:[s.jsx("span",{className:"text-lg font-bold",children:r.title}),s.jsx("span",{className:"text-sm",children:r.subtitle})]}),s.jsx(qe,{onClick:()=>t(),children:r.actionText})]})}),iN=({texts:e})=>s.jsx(Gt,{children:s.jsx($t,{headless:!0,children:s.jsxs("div",{className:"flex flex-col items-center justify-center text-center",children:[s.jsxs("div",{className:"flex h-10 w-10 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground",children:[s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 448 512",height:"0.35em",width:"0.35em",children:s.jsx("path",{d:"M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"})})," "]}),s.jsx("div",{className:"m-2 text-xl font-bold",children:(e==null?void 0:e.title)??"You don't have permission"}),s.jsx("div",{children:(e==null?void 0:e.subtitle)??"If you think this is a problem please contact your administrator or our customer support"})]})})});function sN(e){return e.currentTarget instanceof HTMLElement&&e.relatedTarget instanceof HTMLElement?e.currentTarget.contains(e.relatedTarget):!1}function lN({onBlur:e,onFocus:t}={}){const r=h.useRef(),[n,a]=h.useState(!1),o=h.useRef(!1),i=c=>{a(c),o.current=c},l=c=>{o.current||(i(!0),t==null||t(c))},u=c=>{o.current&&!sN(c)&&(i(!1),e==null||e(c))};return h.useEffect(()=>{if(r.current)return r.current.addEventListener("focusin",l),r.current.addEventListener("focusout",u),()=>{var c,m;(c=r.current)==null||c.removeEventListener("focusin",l),(m=r.current)==null||m.removeEventListener("focusout",u)}},[l,u]),{ref:r,focused:n}}function uN(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function cN(e,t){return typeof t=="boolean"?t:typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function dN(e,t,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){const[n,a]=h.useState(r?t:cN(e,t)),o=h.useRef();return h.useEffect(()=>{if("matchMedia"in window)return o.current=window.matchMedia(e),a(o.current.matches),uN(o.current,i=>a(i.matches))},[e]),n}function fN(e=""){const[t,r]=h.useState(e);return h.useEffect(()=>{const a=()=>{const o=window.location.hash.substring(1);r(o||e)};return window.addEventListener("hashchange",a),a(),()=>{window.removeEventListener("hashchange",a)}},[e]),{activeTab:t,handleTabChange:a=>{r(a),window.location.hash=a}}}function nm(e,t,r){h.useEffect(()=>(window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)),[e,t])}function am(){return typeof window<"u"?{x:window.pageXOffset,y:window.pageYOffset}:{x:0,y:0}}function hN({x:e,y:t}){if(typeof window<"u"){const r={behavior:"smooth"};typeof e=="number"&&(r.left=e),typeof t=="number"&&(r.top=t),window.scrollTo(r)}}function pN(){const[e,t]=h.useState({x:0,y:0});return nm("scroll",()=>t(am())),nm("resize",()=>t(am())),h.useEffect(()=>{t(am())},[]),[e,hN]}Ae.ActionCard=iB,Ae.Announcement=oN,Ae.AppLanding=TO,Ae.AppLayout=JP,Ae.AppSidebar=sO,Ae.ArrowCarousel=q6,Ae.BackToTop=Xk,Ae.Box=bP,Ae.Button=qe,Ae.Card=Gt,Ae.CardContent=$t,Ae.CardDescription=ii,Ae.CardFooter=Fn,Ae.CardHeader=Ca,Ae.CardTitle=wa,Ae.Carousel=cB,Ae.ChargeWalletForm=WO,Ae.CheckEmail=$O,Ae.CheckoutForm=HO,Ae.CodeConfirmation=RO,Ae.ComparingPlans=UO,Ae.ConfirmationPage=zO,Ae.CreditCardForm=_O,Ae.Dialog=mP,Ae.DialogContent=EC,Ae.DialogDescription=FC,Ae.DialogFooter=SC,Ae.DialogHeader=DC,Ae.DialogTitle=AC,Ae.DialogTrigger=vP,Ae.DragDropImages=j6,Ae.DraggableCard=I6,Ae.DropdownMenu=Xl,Ae.EmptyState=rN,Ae.FeedbackByEmoji=X6,Ae.FeedbackRating=O6,Ae.FloatingComment=tj,Ae.FloatingCommentExec=Uk,Ae.FloatingCommentSlate=Lk,Ae.Footer=cO,Ae.HawaAccordion=JA,Ae.HawaAdCard=Kk,Ae.HawaAlert=qn,Ae.HawaAppLayout=tO,Ae.HawaAppLayoutSimplified=rO,Ae.HawaBanner=dO,Ae.HawaBottomAppBar=xP,Ae.HawaButton=aB,Ae.HawaCheckbox=Xf,Ae.HawaChip=bc,Ae.HawaCodeBlock=IF,Ae.HawaColorPicker=g0,Ae.HawaContainer=oO,Ae.HawaCopyrights=tF,Ae.HawaDatepicker=TF,Ae.HawaGrid=iO,Ae.HawaIconCount=Dw,Ae.HawaInlineCode=Yk,Ae.HawaItemCard=Qk,Ae.HawaLandingCard=qk,Ae.HawaLoading=us,Ae.HawaMenu=dd,Ae.HawaModal=eF,Ae.HawaPanelTabs=Ew,Ae.HawaPhoneInput=cd,Ae.HawaPinInput=yg,Ae.HawaPricingCard=C2,Ae.HawaRadio=yn,Ae.HawaRange=m0,Ae.HawaSearchBar=YA,Ae.HawaSelect=Hl,Ae.HawaSettingsRow=U9,Ae.HawaSiteLayout=yP,Ae.HawaStats=nF,Ae.HawaStepper=rF,Ae.HawaStoreButtons=oB,Ae.HawaTable=Cb,Ae.HawaTabs=qA,Ae.HawaTextField=Rt,Ae.HawaTypography=X9,Ae.HorizontalPricing=XO,Ae.Icons=zr,Ae.Input=As,Ae.InterfaceSettings=Cg,Ae.InvoiceAccordion=P6,Ae.Label=ti,Ae.LeadGenerator=aN,Ae.NewPasswordForm=NO,Ae.NoPermission=iN,Ae.NotFound=tN,Ae.PayWithWallet=VO,Ae.Popover=lx,Ae.PricingPlans=GO,Ae.ReferralAccount=KO,Ae.ReferralSettlement=qO,Ae.ReferralStats=eN,Ae.ResetPasswordForm=MO,Ae.SelectPayment=LO,Ae.Separator=V2,Ae.SidebarGroup=HC,Ae.SidebarItem=zC,Ae.SignInBlock=PO,Ae.SignInForm=BO,Ae.SignInPhone=kO,Ae.SignUpForm=OO,Ae.Skeleton=ri,Ae.StickyFeatures=sB,Ae.SubsectionList=T6,Ae.Switch=Lh,Ae.Tabs=N2,Ae.TabsContent=$2,Ae.TabsList=M2,Ae.TabsTrigger=R2,Ae.Test=ww,Ae.Testimonial=nN,Ae.Textarea=xd,Ae.Timeline=Jk,Ae.Toast=Ig,Ae.ToastAction=iC,Ae.ToastClose=Tg,Ae.ToastDescription=Bg,Ae.ToastProvider=oC,Ae.ToastTitle=kg,Ae.ToastViewport=jg,Ae.Toaster=YB,Ae.Tooltip=ms,Ae.UsageCard=B6,Ae.UserProfileForm=jO,Ae.UserReferralSource=lB,Ae.UserSettingsForm=IO,Ae.buttonVariants=i1,Ae.reducer=lC,Ae.toast=uC,Ae.useClipboard=jb,Ae.useFocusWithin=lN,Ae.useMediaQuery=dN,Ae.useTabs=fN,Ae.useToast=cC,Ae.useWindowEvent=nm,Ae.useWindowScroll=pN,Object.defineProperty(Ae,Symbol.toStringTag,{value:"Module"})});