@zimyo/ui 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+
3
+ type List = {
4
+ list: Record<string, any>[];
5
+ };
6
+ interface GlobalMenuSearchComponentProps extends List {
7
+ list: Record<string, any>[];
8
+ delay?: number;
9
+ placeholder?: string;
10
+ popInputPlaceholder?: string;
11
+ history: any;
12
+ }
13
+ declare const GlobalMenuSearch: React.FC<GlobalMenuSearchComponentProps>;
14
+
15
+ export { GlobalMenuSearch, GlobalMenuSearch as default };
16
+ export type { GlobalMenuSearchComponentProps };
@@ -0,0 +1,27 @@
1
+ import{jsx as e,jsxs as r,Fragment as t}from"react/jsx-runtime";import*as o from"react";import n,{forwardRef as i,createElement as a,Fragment as s,useState as l,useMemo as c,useRef as u,useEffect as d,createContext as p,useContext as f}from"react";import{Box as m,List as h,ListItemButton as g,ListItemIcon as b,ListItemText as y,Typography as v,CircularProgress as w,Slide as x,Dialog as k,DialogTitle as z,Divider as E,DialogContent as N,DialogActions as C}from"@mui/material";var j=function(){return j=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},j.apply(this,arguments)};function P(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]])}return t}function I(e,r,t){if(t||2===arguments.length)for(var o,n=0,i=r.length;n<i;n++)!o&&n in r||(o||(o=Array.prototype.slice.call(r,0,n)),o[n]=r[n]);return e.concat(o||Array.prototype.slice.call(r))}"function"==typeof SuppressedError&&SuppressedError;
2
+ /**
3
+ * @license lucide-react v0.525.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const O=e=>{const r=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,t)=>t?t.toUpperCase():r.toLowerCase()))(e);return r.charAt(0).toUpperCase()+r.slice(1)},A=(...e)=>e.filter((e,r,t)=>Boolean(e)&&""!==e.trim()&&t.indexOf(e)===r).join(" ").trim(),S=e=>{for(const r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0};
9
+ /**
10
+ * @license lucide-react v0.525.0 - ISC
11
+ *
12
+ * This source code is licensed under the ISC license.
13
+ * See the LICENSE file in the root directory of this source tree.
14
+ */
15
+ var G={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"};
16
+ /**
17
+ * @license lucide-react v0.525.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const M=i(({color:e="currentColor",size:r=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:n="",children:i,iconNode:s,...l},c)=>a("svg",{ref:c,...G,width:r,height:r,stroke:e,strokeWidth:o?24*Number(t)/Number(r):t,className:A("lucide",n),...!i&&!S(l)&&{"aria-hidden":"true"},...l},[...s.map(([e,r])=>a(e,r)),...Array.isArray(i)?i:[i]])),T=(e,r)=>{const t=i(({className:t,...o},n)=>{return a(M,{ref:n,iconNode:r,className:A(`lucide-${i=O(e),i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,t),...o});var i});return t.displayName=O(e),t},_=T("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),$=T("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),D=T("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),L=T("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);
22
+ /**
23
+ * @license lucide-react v0.525.0 - ISC
24
+ *
25
+ * This source code is licensed under the ISC license.
26
+ * See the LICENSE file in the root directory of this source tree.
27
+ */var R="open",U="exit",F=function(t){var o=Cr(),n=t.list,i=void 0===n?[]:n,a=t.history,s=null==o?void 0:o.handleClose;return e(m,{p:1,children:e(h,{disablePadding:!0,component:"nav","aria-label":"menu list box",children:i.map(function(t){return r(g,{onClick:function(){return e=t.url,null==a||a.push(e),void("function"==typeof s&&s());var e},sx:{fontFamily:"sans-serif",fontSize:14,background:"rgba(246, 247, 248, 0.4)",mt:1,minHeight:48,border:"1px solid rgba(232, 234, 238, 0.5)",borderRadius:1,":hover":{background:"#ebf5ff",borderColor:"#66b2ff",color:"#66b2ff"}},children:[e(b,{sx:{minWidth:"auto",color:"inherit"},children:e(D,{size:24})}),e(y,{primaryTypographyProps:{sx:{textTransform:"capitalize"},component:"div",variant:"body1",fontSize:14,fontWeight:500,lineHeight:.85},secondaryTypographyProps:{component:"div",variant:"body1",fontSize:12},sx:{ml:1},primary:t.name||"-",secondary:t.custom_path})]})})})})},W=function(e){return"function"==typeof e.children?n.createElement(s,null,e.children()):n.createElement(s,null,e.children||null)},B=function(e){return W(e)},q=function(e){return W(e)};function V(e,r,t,o,n,i,a){try{var s=e[i](a),l=s.value}catch(e){return void t(e)}s.done?r(l):Promise.resolve(l).then(o,n)}function Z(e){return function(){var r=this,t=arguments;return new Promise(function(o,n){var i=e.apply(r,t);function a(e){V(i,o,n,a,s,"next",e)}function s(e){V(i,o,n,a,s,"throw",e)}a(void 0)})}}function H(){return H=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},H.apply(null,arguments)}function K(){K=function(){return r};var e,r={},t=Object.prototype,o=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function l(e,r,t,o){return Object.defineProperty(e,r,{value:t,enumerable:!o,configurable:!o,writable:!o})}try{l({},"")}catch(e){l=function(e,r,t){return e[r]=t}}function c(r,t,o,n){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype);return l(a,"_invoke",function(r,t,o){var n=1;return function(i,a){if(3===n)throw Error("Generator is already running");if(4===n){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var l=x(s,o);if(l){if(l===d)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(1===n)throw n=4,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);n=3;var c=u(r,t,o);if("normal"===c.type){if(n=o.done?4:2,c.arg===d)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(n=4,o.method="throw",o.arg=c.arg)}}}(r,o,new E(n||[])),!0),a}function u(e,r,t){try{return{type:"normal",arg:e.call(r,t)}}catch(e){return{type:"throw",arg:e}}}r.wrap=c;var d={};function p(){}function f(){}function m(){}var h={};l(h,i,function(){return this});var g=Object.getPrototypeOf,b=g&&g(g(N([])));b&&b!==t&&o.call(b,i)&&(h=b);var y=m.prototype=p.prototype=Object.create(h);function v(e){["next","throw","return"].forEach(function(r){l(e,r,function(e){return this._invoke(r,e)})})}function w(e,r){function t(n,i,a,s){var l=u(e[n],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&o.call(d,"__await")?r.resolve(d.__await).then(function(e){t("next",e,a,s)},function(e){t("throw",e,a,s)}):r.resolve(d).then(function(e){c.value=e,a(c)},function(e){return t("throw",e,a,s)})}s(l.arg)}var n;l(this,"_invoke",function(e,o){function i(){return new r(function(r,n){t(e,o,r,n)})}return n=n?n.then(i,i):i()},!0)}function x(r,t){var o=t.method,n=r.i[o];if(n===e)return t.delegate=null,"throw"===o&&r.i.return&&(t.method="return",t.arg=e,x(r,t),"throw"===t.method)||"return"!==o&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+o+"' method")),d;var i=u(n,r.i,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var a=i.arg;return a?a.done?(t[r.r]=a.value,t.next=r.n,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,d):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){this.tryEntries.push(e)}function z(r){var t=r[4]||{};t.type="normal",t.arg=e,r[4]=t}function E(e){this.tryEntries=[[-1]],e.forEach(k,this),this.reset(!0)}function N(r){if(null!=r){var t=r[i];if(t)return t.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var n=-1,a=function t(){for(;++n<r.length;)if(o.call(r,n))return t.value=r[n],t.done=!1,t;return t.value=e,t.done=!0,t};return a.next=a}}throw new TypeError(typeof r+" is not iterable")}return f.prototype=m,l(y,"constructor",m),l(m,"constructor",f),f.displayName=l(m,s,"GeneratorFunction"),r.isGeneratorFunction=function(e){var r="function"==typeof e&&e.constructor;return!!r&&(r===f||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},r.awrap=function(e){return{__await:e}},v(w.prototype),l(w.prototype,a,function(){return this}),r.AsyncIterator=w,r.async=function(e,t,o,n,i){void 0===i&&(i=Promise);var a=new w(c(e,t,o,n),i);return r.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},v(y),l(y,s,"Generator"),l(y,i,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),r.keys=function(e){var r=Object(e),t=[];for(var o in r)t.unshift(o);return function e(){for(;t.length;)if((o=t.pop())in r)return e.value=o,e.done=!1,e;return e.done=!0,e}},r.values=N,E.prototype={constructor:E,reset:function(r){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(z),!r)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var t=this;function o(e){a.type="throw",a.arg=r,t.next=e}for(var n=t.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return o("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,o(l),!0;if(s<c)return o(c),!1}}},abrupt:function(e,r){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o[0]>-1&&o[0]<=this.prev&&this.prev<o[2]){var n=o;break}}n&&("break"===e||"continue"===e)&&n[0]<=r&&r<=n[2]&&(n=null);var i=n?n[4]:{};return i.type=e,i.arg=r,n?(this.method="next",this.next=n[2],d):this.complete(i)},complete:function(e,r){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&r&&(this.next=r),d},finish:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var t=this.tryEntries[r];if(t[2]===e)return this.complete(t[4],t[3]),z(t),d}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var t=this.tryEntries[r];if(t[0]===e){var o=t[4];if("throw"===o.type){var n=o.arg;z(t)}return n}}throw Error("illegal catch attempt")},delegateYield:function(r,t,o){return this.delegate={i:N(r),r:t,n:o},"next"===this.method&&(this.arg=e),d}},r}var Y=function(e){return W(e)};function J(e){return"function"==typeof e}function Q(e){return"object"==typeof e&&null!==e&&(e instanceof Promise||e!==Promise.prototype&&function(e){return Reflect.has(e,"then")&&J(e.then)}(e)&&function(e){return Reflect.has(e,"catch")&&J(e.catch)}(e))}var X=function(e,r){void 0===r&&(r=[]);var t=u(!1),o=u([]);if("function"!=typeof e)throw new Error("Incorrect callback parameter for useSingleton hook; expected a function, but got: '"+typeof e+"'.");if(!Array.isArray(r))throw new Error("Incorrect dependencies parameter for useSingleton; expected an array, but got: '"+typeof r+"'.");if(Array.isArray(r)&&r.length>0){if(!function(e,r){if(!Array.isArray(e)||!Array.isArray(r))throw new Error("shallowArraysEqual only accepts arrays as parameters");if(e.length!==r.length)return!1;for(var t=0;t<e.length;++t)if(e[t]!==r[t])return!1;return!0}(o.current,r))o.current=r;else if(t.current)return}else if(t.current)return;e(),t.current=!0};function ee(e){var r=e.promise,t=e.keepAlive,n=void 0!==t&&t,i=e.children,a=l(null),p=a[0],f=a[1],m=l(null),h=m[0],g=m[1],b=c(function(){return function(e){if(!Q(e))throw new Error("Argument of createCancellablePromise should be a Promise");var r={value:!1},t=new Promise(function(){var t=Z(K().mark(function t(o,n){var i;return K().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e;case 3:i=t.sent,r.value||o(i),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),r.value||n(t.t0);case 10:case"end":return t.stop()}},t,null,[[0,7]])}));return function(e,r){return t.apply(this,arguments)}}());return Object.keys(e).forEach(function(r){t[r]=e[r]}),{promise:t,cancel:function(){r.value=!0}}}(r)},[r]),y=u([]);if(d(function(){return function(){n||b.cancel()}},[b,b.promise,n]),X(Z(K().mark(function e(){var r;return K().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return f(null),g(null),e.prev=2,e.next=5,b.promise;case 5:r=e.sent,g(r),f(!0),y.current.push(b),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(2),g(e.t0),f(!1),y.current.push(b);case 16:case"end":return e.stop()}},e,null,[[2,11]])})),[b.promise]),!i||!Q(r))return null;if(null===p){var v=o.Children.toArray(i).find(function(e){return e.type===q});return o.createElement(s,null,v||null)}if(!p){var w=o.Children.toArray(i).find(function(e){return e.type===B});if(!w)return o.createElement(s,null,null);var x=w,k=w.props;return"function"==typeof k.children&&(x=H({},w,{props:H({},k,{children:function(){return k.children(h,y.current,b.promise)}})})),o.createElement(s,null,x)}var z=o.Children.toArray(i).find(function(e){return e.type===Y});if(!z)return o.createElement(s,null,null);var E=z,N=z.props;return"function"==typeof N.children&&(E=H({},z,{props:H({},N,{children:function(){return N.children(h,y.current,b.promise)}})})),o.createElement(s,null,E)}var re=function(e){var r=e.condition,t=e.keepAlive,o=void 0!==t&&t,i=e.children;if(!i)return null;if(function(e,r){if("production"!==process.env.NODE_ENV&&e){"undefined"!=typeof console&&console.warn(r);try{throw new Error(r)}catch(e){}}}(!Array.isArray(i)&&!(i.type===B||i.type===Y)||!n.Children.toArray(i).every(function(e){return e.type===B||e.type===Y||e.type===q}),"The <If> component should contain <Then /> <Else /> or <Fallback /> components as its children"),Q(r))return n.createElement(ee,{promise:r,keepAlive:o},i);var a=function(e){return Boolean("function"==typeof e?e():e)}(r);return n.createElement(s,null,n.Children.toArray(i).find(function(e){return e.type!==B!=!a})||null)};function te(e,r){return void 0===r&&(r=[]),e.flatMap(function(e){var t=I(I([],r,!0),[e.name],!1);if(e.children&&e.children.length>0)return te(e.children,t);var o=j(j({},e),{custom_path:t.join(" / ")});return delete o.children,[o]})}var oe=function(e){return(null==e?void 0:e.trim().toLowerCase())||""},ne=function(r){var t=r.size,o=void 0===t?"md":t,n=P(r,["size"]);return e(v,j({variant:{sm:"body2",md:"body1",lg:"subtitle1"}[o],component:n.component||"p"},n))},ie=function(t){var o=t.sx;return r(m,{sx:j({display:"flex",flexDirection:"column",height:"100%",justifyContent:"center",alignItems:"center",background:"#f4f4f4",color:"gray"},o),children:[e(L,{size:40}),e(ne,{size:"sm",children:"No results found based on search"})]})};function ae(r){var o=r.children,n=r.loading,i=r.list,a={display:"flex",flexDirection:"column",height:"100%",justifyContent:"center",alignItems:"center"};return n?e(m,{sx:a,children:e(w,{thickness:2})}):0===(null==i?void 0:i.length)?e(ie,{sx:j(j({},a),{background:"#f4f4f4",color:"gray"})}):e(t,{children:o})}function se(e){var r,t,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(t=se(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}const le=e=>{const r=pe(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{const t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),ce(t,r)||de(e)},getConflictingClassGroupIds:(e,r)=>{const n=t[e]||[];return r&&o[e]?[...n,...o[e]]:n}}},ce=(e,r)=>{if(0===e.length)return r.classGroupId;const t=e[0],o=r.nextPart.get(t),n=o?ce(e.slice(1),o):void 0;if(n)return n;if(0===r.validators.length)return;const i=e.join("-");return r.validators.find(({validator:e})=>e(i))?.classGroupId},ue=/^\[(.+)\]$/,de=e=>{if(ue.test(e)){const r=ue.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},pe=e=>{const{theme:r,classGroups:t}=e,o={nextPart:new Map,validators:[]};for(const e in t)fe(t[e],o,e,r);return o},fe=(e,r,t,o)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?r:me(r,e)).classGroupId=t)}if("function"==typeof e)return he(e)?void fe(e(o),r,t,o):void r.validators.push({validator:e,classGroupId:t});Object.entries(e).forEach(([e,n])=>{fe(n,me(r,e),t,o)})})},me=(e,r)=>{let t=e;return r.split("-").forEach(e=>{t.nextPart.has(e)||t.nextPart.set(e,{nextPart:new Map,validators:[]}),t=t.nextPart.get(e)}),t},he=e=>e.isThemeGetter,ge=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;const n=(n,i)=>{t.set(n,i),r++,r>e&&(r=0,o=t,t=new Map)};return{get(e){let r=t.get(e);return void 0!==r?r:void 0!==(r=o.get(e))?(n(e,r),r):void 0},set(e,r){t.has(e)?t.set(e,r):n(e,r)}}},be=e=>{const{prefix:r,experimentalParseClassName:t}=e;let o=e=>{const r=[];let t,o=0,n=0,i=0;for(let a=0;a<e.length;a++){let s=e[a];if(0===o&&0===n){if(":"===s){r.push(e.slice(i,a)),i=a+1;continue}if("/"===s){t=a;continue}}"["===s?o++:"]"===s?o--:"("===s?n++:")"===s&&n--}const a=0===r.length?e:e.substring(i),s=ye(a);return{modifiers:r,hasImportantModifier:s!==a,baseClassName:s,maybePostfixModifierPosition:t&&t>i?t-i:void 0}};if(r){const e=r+":",t=o;o=r=>r.startsWith(e)?t(r.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:r,maybePostfixModifierPosition:void 0}}if(t){const e=o;o=r=>t({className:r,parseClassName:e})}return o},ye=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,ve=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const t=[];let o=[];return e.forEach(e=>{"["===e[0]||r[e]?(t.push(...o.sort(),e),o=[]):o.push(e)}),t.push(...o.sort()),t}},we=/\s+/;function xe(){let e,r,t=0,o="";for(;t<arguments.length;)(e=arguments[t++])&&(r=ke(e))&&(o&&(o+=" "),o+=r);return o}const ke=e=>{if("string"==typeof e)return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=ke(e[o]))&&(t&&(t+=" "),t+=r);return t};function ze(e,...r){let t,o,n,i=function(s){const l=r.reduce((e,r)=>r(e),e());return t=(e=>({cache:ge(e.cacheSize),parseClassName:be(e),sortModifiers:ve(e),...le(e)}))(l),o=t.cache.get,n=t.cache.set,i=a,a(s)};function a(e){const r=o(e);if(r)return r;const i=((e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:i}=r,a=[],s=e.trim().split(we);let l="";for(let e=s.length-1;e>=0;e-=1){const r=s[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=t(r);if(c){l=r+(l.length>0?" "+l:l);continue}let m=!!f,h=o(m?p.substring(0,f):p);if(!h){if(!m){l=r+(l.length>0?" "+l:l);continue}if(h=o(p),!h){l=r+(l.length>0?" "+l:l);continue}m=!1}const g=i(u).join(":"),b=d?g+"!":g,y=b+h;if(a.includes(y))continue;a.push(y);const v=n(h,m);for(let e=0;e<v.length;++e){const r=v[e];a.push(b+r)}l=r+(l.length>0?" "+l:l)}return l})(e,t);return n(e,i),i}return function(){return i(xe.apply(null,arguments))}}const Ee=e=>{const r=r=>r[e]||[];return r.isThemeGetter=!0,r},Ne=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ce=/^\((?:(\w[\w-]*):)?(.+)\)$/i,je=/^\d+\/\d+$/,Pe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ie=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Oe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ae=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Se=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ge=e=>je.test(e),Me=e=>!!e&&!Number.isNaN(Number(e)),Te=e=>!!e&&Number.isInteger(Number(e)),_e=e=>e.endsWith("%")&&Me(e.slice(0,-1)),$e=e=>Pe.test(e),De=()=>!0,Le=e=>Ie.test(e)&&!Oe.test(e),Re=()=>!1,Ue=e=>Ae.test(e),Fe=e=>Se.test(e),We=e=>!qe(e)&&!Je(e),Be=e=>nr(e,lr,Re),qe=e=>Ne.test(e),Ve=e=>nr(e,cr,Le),Ze=e=>nr(e,ur,Me),He=e=>nr(e,ar,Re),Ke=e=>nr(e,sr,Fe),Ye=e=>nr(e,pr,Ue),Je=e=>Ce.test(e),Qe=e=>ir(e,cr),Xe=e=>ir(e,dr),er=e=>ir(e,ar),rr=e=>ir(e,lr),tr=e=>ir(e,sr),or=e=>ir(e,pr,!0),nr=(e,r,t)=>{const o=Ne.exec(e);return!!o&&(o[1]?r(o[1]):t(o[2]))},ir=(e,r,t=!1)=>{const o=Ce.exec(e);return!!o&&(o[1]?r(o[1]):t)},ar=e=>"position"===e||"percentage"===e,sr=e=>"image"===e||"url"===e,lr=e=>"length"===e||"size"===e||"bg-size"===e,cr=e=>"length"===e,ur=e=>"number"===e,dr=e=>"family-name"===e,pr=e=>"shadow"===e,fr=ze(()=>{const e=Ee("color"),r=Ee("font"),t=Ee("text"),o=Ee("font-weight"),n=Ee("tracking"),i=Ee("leading"),a=Ee("breakpoint"),s=Ee("container"),l=Ee("spacing"),c=Ee("radius"),u=Ee("shadow"),d=Ee("inset-shadow"),p=Ee("text-shadow"),f=Ee("drop-shadow"),m=Ee("blur"),h=Ee("perspective"),g=Ee("aspect"),b=Ee("ease"),y=Ee("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Je,qe],w=()=>[Je,qe,l],x=()=>[Ge,"full","auto",...w()],k=()=>[Te,"none","subgrid",Je,qe],z=()=>["auto",{span:["full",Te,Je,qe]},Te,Je,qe],E=()=>[Te,"auto",Je,qe],N=()=>["auto","min","max","fr",Je,qe],C=()=>["auto",...w()],j=()=>[Ge,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],P=()=>[e,Je,qe],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",er,He,{position:[Je,qe]}],O=()=>["auto","cover","contain",rr,Be,{size:[Je,qe]}],A=()=>[_e,Qe,Ve],S=()=>["","none","full",c,Je,qe],G=()=>["",Me,Qe,Ve],M=()=>[Me,_e,er,He],T=()=>["","none",m,Je,qe],_=()=>["none",Me,Je,qe],$=()=>["none",Me,Je,qe],D=()=>[Me,Je,qe],L=()=>[Ge,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$e],breakpoint:[$e],color:[De],container:[$e],"drop-shadow":[$e],ease:["in","out","in-out"],font:[We],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$e],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$e],shadow:[$e],spacing:["px",Me],text:[$e],"text-shadow":[$e],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ge,qe,Je,g]}],container:["container"],columns:[{columns:[Me,qe,Je,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{start:x()}],end:[{end:x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[Te,"auto",Je,qe]}],basis:[{basis:[Ge,"full","auto",s,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,Ge,"auto","initial","none",qe]}],grow:[{grow:["",Me,Je,qe]}],shrink:[{shrink:["",Me,Je,qe]}],order:[{order:[Te,"first","last","none",Je,qe]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[s,"screen",...j()]}],"min-w":[{"min-w":[s,"screen","none",...j()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",t,Qe,Ve]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Je,Ze]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_e,qe]}],"font-family":[{font:[Xe,qe,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,Je,qe]}],"line-clamp":[{"line-clamp":[Me,"none",Je,Ze]}],leading:[{leading:[i,...w()]}],"list-image":[{"list-image":["none",Je,qe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Je,qe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",Je,Ve]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[Me,"auto",Je,qe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Je,qe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Je,qe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Te,Je,qe],radial:["",Je,qe],conic:[Te,Je,qe]},tr,Ke]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:A()}],"gradient-via-pos":[{via:A()}],"gradient-to-pos":[{to:A()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Me,Je,qe]}],"outline-w":[{outline:["",Me,Qe,Ve]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",u,or,Ye]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",d,or,Ye]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[Me,Ve]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",p,or,Ye]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[Me,Je,qe]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":M()}],"mask-image-linear-to-pos":[{"mask-linear-to":M()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":M()}],"mask-image-t-to-pos":[{"mask-t-to":M()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":M()}],"mask-image-r-to-pos":[{"mask-r-to":M()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":M()}],"mask-image-b-to-pos":[{"mask-b-to":M()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":M()}],"mask-image-l-to-pos":[{"mask-l-to":M()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":M()}],"mask-image-x-to-pos":[{"mask-x-to":M()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":M()}],"mask-image-y-to-pos":[{"mask-y-to":M()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[Je,qe]}],"mask-image-radial-from-pos":[{"mask-radial-from":M()}],"mask-image-radial-to-pos":[{"mask-radial-to":M()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Me]}],"mask-image-conic-from-pos":[{"mask-conic-from":M()}],"mask-image-conic-to-pos":[{"mask-conic-to":M()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Je,qe]}],filter:[{filter:["","none",Je,qe]}],blur:[{blur:T()}],brightness:[{brightness:[Me,Je,qe]}],contrast:[{contrast:[Me,Je,qe]}],"drop-shadow":[{"drop-shadow":["","none",f,or,Ye]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",Me,Je,qe]}],"hue-rotate":[{"hue-rotate":[Me,Je,qe]}],invert:[{invert:["",Me,Je,qe]}],saturate:[{saturate:[Me,Je,qe]}],sepia:[{sepia:["",Me,Je,qe]}],"backdrop-filter":[{"backdrop-filter":["","none",Je,qe]}],"backdrop-blur":[{"backdrop-blur":T()}],"backdrop-brightness":[{"backdrop-brightness":[Me,Je,qe]}],"backdrop-contrast":[{"backdrop-contrast":[Me,Je,qe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,Je,qe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,Je,qe]}],"backdrop-invert":[{"backdrop-invert":["",Me,Je,qe]}],"backdrop-opacity":[{"backdrop-opacity":[Me,Je,qe]}],"backdrop-saturate":[{"backdrop-saturate":[Me,Je,qe]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,Je,qe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Je,qe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",Je,qe]}],ease:[{ease:["linear","initial",b,Je,qe]}],delay:[{delay:[Me,Je,qe]}],animate:[{animate:["none",y,Je,qe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,Je,qe]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:_()}],"rotate-x":[{"rotate-x":_()}],"rotate-y":[{"rotate-y":_()}],"rotate-z":[{"rotate-z":_()}],scale:[{scale:$()}],"scale-x":[{"scale-x":$()}],"scale-y":[{"scale-y":$()}],"scale-z":[{"scale-z":$()}],"scale-3d":["scale-3d"],skew:[{skew:D()}],"skew-x":[{"skew-x":D()}],"skew-y":[{"skew-y":D()}],transform:[{transform:[Je,qe,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:L()}],"translate-x":[{"translate-x":L()}],"translate-y":[{"translate-y":L()}],"translate-z":[{"translate-z":L()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Je,qe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Je,qe]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[Me,Qe,Ve,Ze]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),mr=[];for(let e=0;e<256;++e)mr.push((e+256).toString(16).slice(1));let hr;const gr=new Uint8Array(16);var br={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function yr(e,r,t){if(br.randomUUID&&!r&&!e)return br.randomUUID();const o=(e=e||{}).random??e.rng?.()??function(){if(!hr){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");hr=crypto.getRandomValues.bind(crypto)}return hr(gr)}();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,r){if((t=t||0)<0||t+16>r.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let e=0;e<16;++e)r[t+e]=o[e];return r}return function(e,r=0){return(mr[e[r+0]]+mr[e[r+1]]+mr[e[r+2]]+mr[e[r+3]]+"-"+mr[e[r+4]]+mr[e[r+5]]+"-"+mr[e[r+6]]+mr[e[r+7]]+"-"+mr[e[r+8]]+mr[e[r+9]]+"-"+mr[e[r+10]]+mr[e[r+11]]+mr[e[r+12]]+mr[e[r+13]]+mr[e[r+14]]+mr[e[r+15]]).toLowerCase()}(o)}function vr(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return fr(function(){for(var e,r,t=0,o="",n=arguments.length;t<n;t++)(e=arguments[t])&&(r=se(e))&&(o&&(o+=" "),o+=r);return o}(e))}var wr={xs:"zui:h-8 zui:text-xs",sm:"zui:h-9 zui:text-sm",md:"zui:h-10 zui:text-sm",lg:"zui:h-11 zui:text-base"},xr=o.forwardRef(function(t,n){var i,a,s=t.label,l=t.floatingLabel,c=void 0!==l&&l,d=t.description,p=t.error,f=t.leftIcon,m=t.rightIcon,h=t.size,g=void 0===h?"md":h,b=t.variant,y=void 0===b?"outlined":b,v=t.className,w=t.allowedPattern,x=t.onBeforeInput,k=t.onChange,z=t.onDebouncedChange,E=t.debounceDelay,N=t.type,C=void 0===N?"text":N,I=t.onLeftIconClick,O=t.onRightIconClick,A=t.wordLimit,S=t.focusOutline,G=void 0===S||S,M=P(t,["label","floatingLabel","description","error","leftIcon","rightIcon","size","variant","className","allowedPattern","onBeforeInput","onChange","onDebouncedChange","debounceDelay","type","onLeftIconClick","onRightIconClick","wordLimit","focusOutline"]),T=(void 0===(a="input")&&(a="id"),u("".concat(a,"-").concat(yr())).current),D=o.useState(!1),L=D[0],R=D[1],U=o.useState(null!==(i=M.value)&&void 0!==i?i:""),F=U[0],W=U[1],B=o.useRef(null),q="textarea"===C,V="password"===C,Z=V&&L?"text":C,H=q?String(F||"").trim().split(/\s+/).filter(Boolean).length:0;o.useEffect(function(){void 0!==M.value&&W(M.value)},[M.value]),o.useEffect(function(){if(void 0!==E&&z)return B.current&&clearTimeout(B.current),B.current=setTimeout(function(){z(String(F))},E),function(){B.current&&clearTimeout(B.current)}},[F,E,z]);var K=function(e){var r="number"===w?/^[0-9]*$/:"alpha"===w?/^[a-zA-Z]*$/:w instanceof RegExp?w:null;if(r){var t=e.data,o=e.currentTarget.value+t;r.test(o)||e.preventDefault(),null==x||x(e)}},Y=function(e){var r=e.target.value;if(A&&q&&r.trim().split(/\s+/).filter(Boolean).length>A)return;W(r),null==k||k(e)};return r("div",{className:"zui:w-full zui:space-y-1",children:[!c&&s&&r("label",{htmlFor:T,className:"zui:block zui:mb-2 zui:text-sm zui:font-medium zui:leading-none",children:[s,M.required&&e("span",{className:"zui:text-destructive zui:font-medium",children:" *"})]}),r("div",{className:vr("zui:relative zui:w-full zui:rounded-md zui:border zui:bg-background zui:text-sm zui:transition-colors",G&&"zui:focus-within:ring-1 zui:focus-within:ring-ring zui:focus-within:ring-offset-1","outlined"===y&&"zui:border-input","contained"===y&&"zui:bg-muted zui:border-transparent",p&&"zui:border-destructive",p&&G&&"zui:focus-within:ring-destructive",v),children:[f&&e("span",{className:vr("zui:absolute zui:left-3 zui:top-3 zui:text-muted-foreground","lg"==g&&"zui:top-3.5"),children:I?e("span",{onClick:I,className:"cursor-pointer",children:f}):f}),q?e("textarea",j({id:T,ref:n,onBeforeInput:K,onChange:Y,value:F,placeholder:M.placeholder,disabled:M.disabled,className:vr("zui:peer zui:block zui:w-full zui:bg-transparent zui:outline-none zui:px-3 zui:disabled:cursor-not-allowed zui:disabled:opacity-50 zui:py-2 zui:resize-none",f&&"zui:pl-10",m&&"zui:pr-10")},M)):e("input",j({id:T,ref:n,type:Z,onBeforeInput:K,onChange:Y,value:F,placeholder:M.placeholder,disabled:M.disabled,className:vr("zui:peer zui:block zui:w-full zui:bg-transparent zui:outline-none zui:px-3 zui:disabled:cursor-not-allowed zui:disabled:opacity-50 zui:py-2",f&&"zui:pl-10",(m||V)&&"zui:pr-10",wr[g])},M)),c&&s&&r("label",{htmlFor:T,className:vr("zui:pointer-events-none zui:absolute zui:left-3 zui:-top-[9px] zui:z-10 zui:bg-background zui:px-1 zui:text-xs zui:text-muted-foreground zui:transition-all"),children:[s,M.required&&e("span",{className:"zui:text-destructive zui:font-medium",children:" *"})]}),(m||V)&&e("span",{className:vr("zui:absolute zui:right-3 zui:top-3 zui:text-muted-foreground","lg"==g&&"zui:top-3.5"),children:V?e("button",{type:"button",onClick:function(){return R(function(e){return!e})},className:"zui:focus:outline-none",tabIndex:-1,children:e(L?$:_,{size:16})}):O?e("span",{onClick:O,className:"cursor-pointer zui:focus:outline-none",children:m}):m})]}),r("div",{className:"zui:flex zui:flex-row zui:justify-between",children:[d&&!p&&e("p",{className:"zui:text-xs zui:text-muted-foreground",children:d}),p&&e("p",{className:"zui:text-xs zui:text-destructive",children:p}),q&&void 0!==A&&r("div",{className:"zui:mt-1 zui:text-xs zui:text-muted-foreground zui:text-right",children:[H,"/",A," words"]})]})]})}),kr=function(t){var o=t.list,i=void 0===o?[]:o,a=t.delay,s=void 0===a?1e3:a,u=t.popInputPlaceholder,p=void 0===u?"Search...":u,f=t.history,m=l(""),h=m[0],g=m[1],b=l([]),y=b[0],v=b[1],w=l(!1),x=w[0],k=w[1],j=function(e){var r=[],t=oe(e);r=t?i.filter(function(e){return oe(e.name).includes(t)}):i,v(r),k(!1)},P=c(function(){return function(e,r){var t;return function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];clearTimeout(t),t=setTimeout(function(){e.apply(void 0,o)},r)}}(j,s)},[]);d(function(){k(!0),P(h)},[h,P]);return r(n.Fragment,{children:[e(z,{classes:{root:"zui:!p-1"},component:"div",color:"primary",className:"font-semibold flex items-center",children:e(zr,{kbdType:"exit",variant:"outlined",inputProps:{className:"zui:!mb-0 zui:!text-sm",placeholder:p,value:h,onChange:function(e){var r=e.target.value;g(r)}}})}),e(E,{}),e(N,{classes:{root:"zui:!p-0"},children:e(ae,{loading:x,list:y,children:e(F,{list:y,history:f})})}),e(E,{}),e(C,{children:r("div",{className:"zui:flex zui:flex-row zui:gap-0.5 zui:items-center",children:[e(ne,{size:"sm",children:"Search by :"}),e("img",{loading:"lazy",className:"org_logo",src:"https://files.zimyo.work/staticlogo/global/zimyo.svg",width:85})]})})]})},zr=function(t){var o=t.variant,n=void 0===o?"contained":o,i=t.inputProps,a=t.kbdType,s=void 0===a?R:a;return e(xr,j({leftIcon:e(L,{size:16}),rightIcon:r(re,{condition:s===U,children:[e(Y,{children:e("kbd",{className:"zui:px-2 zui:py-1 zui:border zui:border-gray-200 zui:rounded zui:bg-gray-200",children:"Esc"})}),e(B,{children:r("kbd",{className:"zui:px-2 zui:py-1 zui:border zui:border-gray-200 zui:rounded zui:bg-gray-200",children:[e("span",{children:"⌘"}),e("span",{children:"+"}),e("span",{children:"K"})]})})]})},i,{focusOutline:!1,autoFocus:s===U,variant:n}))},Er=n.forwardRef(function(r,t){return e(x,j({direction:"up",ref:t},r))}),Nr=p(null),Cr=function(){return f(Nr)},jr=function(t){var o=t.list,i=void 0===o?[]:o,a=P(t,["list"]),s=c(function(){return te(i)},[i]),u=l(!1),p=u[0],f=u[1];d(function(){var e=function(e){e.ctrlKey&&"k"===e.key.toLowerCase()&&(e.preventDefault(),f(!0))};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}},[]);var m=function(){f(!1)};return e(n.Fragment,{children:r(Nr.Provider,{value:{handleClose:m},children:[e("div",{className:"global-search-container",onClick:function(){return f(!0)},children:e(zr,{kbdType:"open",inputProps:{placeholder:a.placeholder||"Search...",readOnly:!0,className:"zui:rounded-full"},variant:"contained"})}),e(k,{open:p,TransitionComponent:Er,onClose:m,maxWidth:"md",slotProps:{backdrop:{style:{backgroundColor:"rgba(0,0,0,0.6)",backdropFilter:"blur(4px)"}}},PaperProps:{sx:{width:620,height:550,borderRadius:2}},"aria-describedby":"alert-dialog-slide-description",children:e(kr,j({list:s},a))})]})})};export{jr as GlobalMenuSearch,jr as default};
@@ -0,0 +1,27 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),t=require("@mui/material");function o(e){var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var n=o(r),i=function(){return i=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},i.apply(this,arguments)};function a(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]])}return t}function s(e,r,t){if(t||2===arguments.length)for(var o,n=0,i=r.length;n<i;n++)!o&&n in r||(o||(o=Array.prototype.slice.call(r,0,n)),o[n]=r[n]);return e.concat(o||Array.prototype.slice.call(r))}"function"==typeof SuppressedError&&SuppressedError;
2
+ /**
3
+ * @license lucide-react v0.525.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const l=e=>{const r=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,t)=>t?t.toUpperCase():r.toLowerCase()))(e);return r.charAt(0).toUpperCase()+r.slice(1)},c=(...e)=>e.filter((e,r,t)=>Boolean(e)&&""!==e.trim()&&t.indexOf(e)===r).join(" ").trim(),u=e=>{for(const r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0};
9
+ /**
10
+ * @license lucide-react v0.525.0 - ISC
11
+ *
12
+ * This source code is licensed under the ISC license.
13
+ * See the LICENSE file in the root directory of this source tree.
14
+ */
15
+ var d={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"};
16
+ /**
17
+ * @license lucide-react v0.525.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const f=r.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:s,...l},f)=>r.createElement("svg",{ref:f,...d,width:t,height:t,stroke:e,strokeWidth:n?24*Number(o)/Number(t):o,className:c("lucide",i),...!a&&!u(l)&&{"aria-hidden":"true"},...l},[...s.map(([e,t])=>r.createElement(e,t)),...Array.isArray(a)?a:[a]])),p=(e,t)=>{const o=r.forwardRef(({className:o,...n},i)=>{return r.createElement(f,{ref:i,iconNode:t,className:c(`lucide-${a=l(e),a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,o),...n});var a});return o.displayName=l(e),o},m=p("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),h=p("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),g=p("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),b=p("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);
22
+ /**
23
+ * @license lucide-react v0.525.0 - ISC
24
+ *
25
+ * This source code is licensed under the ISC license.
26
+ * See the LICENSE file in the root directory of this source tree.
27
+ */var y="open",v="exit",x=function(r){var o=nr(),n=r.list,i=void 0===n?[]:n,a=r.history,s=null==o?void 0:o.handleClose;return e.jsx(t.Box,{p:1,children:e.jsx(t.List,{disablePadding:!0,component:"nav","aria-label":"menu list box",children:i.map(function(r){return e.jsxs(t.ListItemButton,{onClick:function(){return e=r.url,null==a||a.push(e),void("function"==typeof s&&s());var e},sx:{fontFamily:"sans-serif",fontSize:14,background:"rgba(246, 247, 248, 0.4)",mt:1,minHeight:48,border:"1px solid rgba(232, 234, 238, 0.5)",borderRadius:1,":hover":{background:"#ebf5ff",borderColor:"#66b2ff",color:"#66b2ff"}},children:[e.jsx(t.ListItemIcon,{sx:{minWidth:"auto",color:"inherit"},children:e.jsx(g,{size:24})}),e.jsx(t.ListItemText,{primaryTypographyProps:{sx:{textTransform:"capitalize"},component:"div",variant:"body1",fontSize:14,fontWeight:500,lineHeight:.85},secondaryTypographyProps:{component:"div",variant:"body1",fontSize:12},sx:{ml:1},primary:r.name||"-",secondary:r.custom_path})]})})})})},w=function(e){return"function"==typeof e.children?r.createElement(r.Fragment,null,e.children()):r.createElement(r.Fragment,null,e.children||null)},k=function(e){return w(e)},z=function(e){return w(e)};function j(e,r,t,o,n,i,a){try{var s=e[i](a),l=s.value}catch(e){return void t(e)}s.done?r(l):Promise.resolve(l).then(o,n)}function E(e){return function(){var r=this,t=arguments;return new Promise(function(o,n){var i=e.apply(r,t);function a(e){j(i,o,n,a,s,"next",e)}function s(e){j(i,o,n,a,s,"throw",e)}a(void 0)})}}function C(){return C=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},C.apply(null,arguments)}function N(){N=function(){return r};var e,r={},t=Object.prototype,o=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function l(e,r,t,o){return Object.defineProperty(e,r,{value:t,enumerable:!o,configurable:!o,writable:!o})}try{l({},"")}catch(e){l=function(e,r,t){return e[r]=t}}function c(r,t,o,n){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype);return l(a,"_invoke",function(r,t,o){var n=1;return function(i,a){if(3===n)throw Error("Generator is already running");if(4===n){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var l=w(s,o);if(l){if(l===d)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(1===n)throw n=4,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);n=3;var c=u(r,t,o);if("normal"===c.type){if(n=o.done?4:2,c.arg===d)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(n=4,o.method="throw",o.arg=c.arg)}}}(r,o,new j(n||[])),!0),a}function u(e,r,t){try{return{type:"normal",arg:e.call(r,t)}}catch(e){return{type:"throw",arg:e}}}r.wrap=c;var d={};function f(){}function p(){}function m(){}var h={};l(h,i,function(){return this});var g=Object.getPrototypeOf,b=g&&g(g(E([])));b&&b!==t&&o.call(b,i)&&(h=b);var y=m.prototype=f.prototype=Object.create(h);function v(e){["next","throw","return"].forEach(function(r){l(e,r,function(e){return this._invoke(r,e)})})}function x(e,r){function t(n,i,a,s){var l=u(e[n],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&o.call(d,"__await")?r.resolve(d.__await).then(function(e){t("next",e,a,s)},function(e){t("throw",e,a,s)}):r.resolve(d).then(function(e){c.value=e,a(c)},function(e){return t("throw",e,a,s)})}s(l.arg)}var n;l(this,"_invoke",function(e,o){function i(){return new r(function(r,n){t(e,o,r,n)})}return n=n?n.then(i,i):i()},!0)}function w(r,t){var o=t.method,n=r.i[o];if(n===e)return t.delegate=null,"throw"===o&&r.i.return&&(t.method="return",t.arg=e,w(r,t),"throw"===t.method)||"return"!==o&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+o+"' method")),d;var i=u(n,r.i,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var a=i.arg;return a?a.done?(t[r.r]=a.value,t.next=r.n,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,d):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){this.tryEntries.push(e)}function z(r){var t=r[4]||{};t.type="normal",t.arg=e,r[4]=t}function j(e){this.tryEntries=[[-1]],e.forEach(k,this),this.reset(!0)}function E(r){if(null!=r){var t=r[i];if(t)return t.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var n=-1,a=function t(){for(;++n<r.length;)if(o.call(r,n))return t.value=r[n],t.done=!1,t;return t.value=e,t.done=!0,t};return a.next=a}}throw new TypeError(typeof r+" is not iterable")}return p.prototype=m,l(y,"constructor",m),l(m,"constructor",p),p.displayName=l(m,s,"GeneratorFunction"),r.isGeneratorFunction=function(e){var r="function"==typeof e&&e.constructor;return!!r&&(r===p||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},r.awrap=function(e){return{__await:e}},v(x.prototype),l(x.prototype,a,function(){return this}),r.AsyncIterator=x,r.async=function(e,t,o,n,i){void 0===i&&(i=Promise);var a=new x(c(e,t,o,n),i);return r.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},v(y),l(y,s,"Generator"),l(y,i,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),r.keys=function(e){var r=Object(e),t=[];for(var o in r)t.unshift(o);return function e(){for(;t.length;)if((o=t.pop())in r)return e.value=o,e.done=!1,e;return e.done=!0,e}},r.values=E,j.prototype={constructor:j,reset:function(r){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(z),!r)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var t=this;function o(e){a.type="throw",a.arg=r,t.next=e}for(var n=t.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return o("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,o(l),!0;if(s<c)return o(c),!1}}},abrupt:function(e,r){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o[0]>-1&&o[0]<=this.prev&&this.prev<o[2]){var n=o;break}}n&&("break"===e||"continue"===e)&&n[0]<=r&&r<=n[2]&&(n=null);var i=n?n[4]:{};return i.type=e,i.arg=r,n?(this.method="next",this.next=n[2],d):this.complete(i)},complete:function(e,r){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&r&&(this.next=r),d},finish:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var t=this.tryEntries[r];if(t[2]===e)return this.complete(t[4],t[3]),z(t),d}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var t=this.tryEntries[r];if(t[0]===e){var o=t[4];if("throw"===o.type){var n=o.arg;z(t)}return n}}throw Error("illegal catch attempt")},delegateYield:function(r,t,o){return this.delegate={i:E(r),r:t,n:o},"next"===this.method&&(this.arg=e),d}},r}var P=function(e){return w(e)};function I(e){return"function"==typeof e}function O(e){return"object"==typeof e&&null!==e&&(e instanceof Promise||e!==Promise.prototype&&function(e){return Reflect.has(e,"then")&&I(e.then)}(e)&&function(e){return Reflect.has(e,"catch")&&I(e.catch)}(e))}var S=function(e,t){void 0===t&&(t=[]);var o=r.useRef(!1),n=r.useRef([]);if("function"!=typeof e)throw new Error("Incorrect callback parameter for useSingleton hook; expected a function, but got: '"+typeof e+"'.");if(!Array.isArray(t))throw new Error("Incorrect dependencies parameter for useSingleton; expected an array, but got: '"+typeof t+"'.");if(Array.isArray(t)&&t.length>0){if(!function(e,r){if(!Array.isArray(e)||!Array.isArray(r))throw new Error("shallowArraysEqual only accepts arrays as parameters");if(e.length!==r.length)return!1;for(var t=0;t<e.length;++t)if(e[t]!==r[t])return!1;return!0}(n.current,t))n.current=t;else if(o.current)return}else if(o.current)return;e(),o.current=!0};function A(e){var t=e.promise,o=e.keepAlive,i=void 0!==o&&o,a=e.children,s=r.useState(null),l=s[0],c=s[1],u=r.useState(null),d=u[0],f=u[1],p=r.useMemo(function(){return function(e){if(!O(e))throw new Error("Argument of createCancellablePromise should be a Promise");var r={value:!1},t=new Promise(function(){var t=E(N().mark(function t(o,n){var i;return N().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e;case 3:i=t.sent,r.value||o(i),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),r.value||n(t.t0);case 10:case"end":return t.stop()}},t,null,[[0,7]])}));return function(e,r){return t.apply(this,arguments)}}());return Object.keys(e).forEach(function(r){t[r]=e[r]}),{promise:t,cancel:function(){r.value=!0}}}(t)},[t]),m=r.useRef([]);if(r.useEffect(function(){return function(){i||p.cancel()}},[p,p.promise,i]),S(E(N().mark(function e(){var r;return N().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c(null),f(null),e.prev=2,e.next=5,p.promise;case 5:r=e.sent,f(r),c(!0),m.current.push(p),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(2),f(e.t0),c(!1),m.current.push(p);case 16:case"end":return e.stop()}},e,null,[[2,11]])})),[p.promise]),!a||!O(t))return null;if(null===l){var h=n.Children.toArray(a).find(function(e){return e.type===z});return n.createElement(r.Fragment,null,h||null)}if(!l){var g=n.Children.toArray(a).find(function(e){return e.type===k});if(!g)return n.createElement(r.Fragment,null,null);var b=g,y=g.props;return"function"==typeof y.children&&(b=C({},g,{props:C({},y,{children:function(){return y.children(d,m.current,p.promise)}})})),n.createElement(r.Fragment,null,b)}var v=n.Children.toArray(a).find(function(e){return e.type===P});if(!v)return n.createElement(r.Fragment,null,null);var x=v,w=v.props;return"function"==typeof w.children&&(x=C({},v,{props:C({},w,{children:function(){return w.children(d,m.current,p.promise)}})})),n.createElement(r.Fragment,null,x)}var M=function(e){var t=e.condition,o=e.keepAlive,n=void 0!==o&&o,i=e.children;if(!i)return null;if(function(e,r){if("production"!==process.env.NODE_ENV&&e){"undefined"!=typeof console&&console.warn(r);try{throw new Error(r)}catch(e){}}}(!Array.isArray(i)&&!(i.type===k||i.type===P)||!r.Children.toArray(i).every(function(e){return e.type===k||e.type===P||e.type===z}),"The <If> component should contain <Then /> <Else /> or <Fallback /> components as its children"),O(t))return r.createElement(A,{promise:t,keepAlive:n},i);var a=function(e){return Boolean("function"==typeof e?e():e)}(t);return r.createElement(r.Fragment,null,r.Children.toArray(i).find(function(e){return e.type!==k!=!a})||null)};function T(e,r){return void 0===r&&(r=[]),e.flatMap(function(e){var t=s(s([],r,!0),[e.name],!1);if(e.children&&e.children.length>0)return T(e.children,t);var o=i(i({},e),{custom_path:t.join(" / ")});return delete o.children,[o]})}var G=function(e){return(null==e?void 0:e.trim().toLowerCase())||""},_=function(r){var o=r.size,n=void 0===o?"md":o,s=a(r,["size"]);return e.jsx(t.Typography,i({variant:{sm:"body2",md:"body1",lg:"subtitle1"}[n],component:s.component||"p"},s))},D=function(r){var o=r.sx;return e.jsxs(t.Box,{sx:i({display:"flex",flexDirection:"column",height:"100%",justifyContent:"center",alignItems:"center",background:"#f4f4f4",color:"gray"},o),children:[e.jsx(b,{size:40}),e.jsx(_,{size:"sm",children:"No results found based on search"})]})};function F(r){var o=r.children,n=r.loading,a=r.list,s={display:"flex",flexDirection:"column",height:"100%",justifyContent:"center",alignItems:"center"};return n?e.jsx(t.Box,{sx:s,children:e.jsx(t.CircularProgress,{thickness:2})}):0===(null==a?void 0:a.length)?e.jsx(D,{sx:i(i({},s),{background:"#f4f4f4",color:"gray"})}):e.jsx(e.Fragment,{children:o})}function R(e){var r,t,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(t=R(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}const L=e=>{const r=W(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{const t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),$(t,r)||B(e)},getConflictingClassGroupIds:(e,r)=>{const n=t[e]||[];return r&&o[e]?[...n,...o[e]]:n}}},$=(e,r)=>{if(0===e.length)return r.classGroupId;const t=e[0],o=r.nextPart.get(t),n=o?$(e.slice(1),o):void 0;if(n)return n;if(0===r.validators.length)return;const i=e.join("-");return r.validators.find(({validator:e})=>e(i))?.classGroupId},U=/^\[(.+)\]$/,B=e=>{if(U.test(e)){const r=U.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},W=e=>{const{theme:r,classGroups:t}=e,o={nextPart:new Map,validators:[]};for(const e in t)q(t[e],o,e,r);return o},q=(e,r,t,o)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?r:V(r,e)).classGroupId=t)}if("function"==typeof e)return Z(e)?void q(e(o),r,t,o):void r.validators.push({validator:e,classGroupId:t});Object.entries(e).forEach(([e,n])=>{q(n,V(r,e),t,o)})})},V=(e,r)=>{let t=e;return r.split("-").forEach(e=>{t.nextPart.has(e)||t.nextPart.set(e,{nextPart:new Map,validators:[]}),t=t.nextPart.get(e)}),t},Z=e=>e.isThemeGetter,H=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;const n=(n,i)=>{t.set(n,i),r++,r>e&&(r=0,o=t,t=new Map)};return{get(e){let r=t.get(e);return void 0!==r?r:void 0!==(r=o.get(e))?(n(e,r),r):void 0},set(e,r){t.has(e)?t.set(e,r):n(e,r)}}},K=e=>{const{prefix:r,experimentalParseClassName:t}=e;let o=e=>{const r=[];let t,o=0,n=0,i=0;for(let a=0;a<e.length;a++){let s=e[a];if(0===o&&0===n){if(":"===s){r.push(e.slice(i,a)),i=a+1;continue}if("/"===s){t=a;continue}}"["===s?o++:"]"===s?o--:"("===s?n++:")"===s&&n--}const a=0===r.length?e:e.substring(i),s=Y(a);return{modifiers:r,hasImportantModifier:s!==a,baseClassName:s,maybePostfixModifierPosition:t&&t>i?t-i:void 0}};if(r){const e=r+":",t=o;o=r=>r.startsWith(e)?t(r.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:r,maybePostfixModifierPosition:void 0}}if(t){const e=o;o=r=>t({className:r,parseClassName:e})}return o},Y=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,J=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const t=[];let o=[];return e.forEach(e=>{"["===e[0]||r[e]?(t.push(...o.sort(),e),o=[]):o.push(e)}),t.push(...o.sort()),t}},Q=/\s+/;function X(){let e,r,t=0,o="";for(;t<arguments.length;)(e=arguments[t++])&&(r=ee(e))&&(o&&(o+=" "),o+=r);return o}const ee=e=>{if("string"==typeof e)return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=ee(e[o]))&&(t&&(t+=" "),t+=r);return t};function re(e,...r){let t,o,n,i=function(s){const l=r.reduce((e,r)=>r(e),e());return t=(e=>({cache:H(e.cacheSize),parseClassName:K(e),sortModifiers:J(e),...L(e)}))(l),o=t.cache.get,n=t.cache.set,i=a,a(s)};function a(e){const r=o(e);if(r)return r;const i=((e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:i}=r,a=[],s=e.trim().split(Q);let l="";for(let e=s.length-1;e>=0;e-=1){const r=s[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=t(r);if(c){l=r+(l.length>0?" "+l:l);continue}let m=!!p,h=o(m?f.substring(0,p):f);if(!h){if(!m){l=r+(l.length>0?" "+l:l);continue}if(h=o(f),!h){l=r+(l.length>0?" "+l:l);continue}m=!1}const g=i(u).join(":"),b=d?g+"!":g,y=b+h;if(a.includes(y))continue;a.push(y);const v=n(h,m);for(let e=0;e<v.length;++e){const r=v[e];a.push(b+r)}l=r+(l.length>0?" "+l:l)}return l})(e,t);return n(e,i),i}return function(){return i(X.apply(null,arguments))}}const te=e=>{const r=r=>r[e]||[];return r.isThemeGetter=!0,r},oe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ne=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ie=/^\d+\/\d+$/,ae=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,se=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,le=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ce=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ue=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,de=e=>ie.test(e),fe=e=>!!e&&!Number.isNaN(Number(e)),pe=e=>!!e&&Number.isInteger(Number(e)),me=e=>e.endsWith("%")&&fe(e.slice(0,-1)),he=e=>ae.test(e),ge=()=>!0,be=e=>se.test(e)&&!le.test(e),ye=()=>!1,ve=e=>ce.test(e),xe=e=>ue.test(e),we=e=>!ze(e)&&!Ie(e),ke=e=>_e(e,Le,ye),ze=e=>oe.test(e),je=e=>_e(e,$e,be),Ee=e=>_e(e,Ue,fe),Ce=e=>_e(e,Fe,ye),Ne=e=>_e(e,Re,xe),Pe=e=>_e(e,We,ve),Ie=e=>ne.test(e),Oe=e=>De(e,$e),Se=e=>De(e,Be),Ae=e=>De(e,Fe),Me=e=>De(e,Le),Te=e=>De(e,Re),Ge=e=>De(e,We,!0),_e=(e,r,t)=>{const o=oe.exec(e);return!!o&&(o[1]?r(o[1]):t(o[2]))},De=(e,r,t=!1)=>{const o=ne.exec(e);return!!o&&(o[1]?r(o[1]):t)},Fe=e=>"position"===e||"percentage"===e,Re=e=>"image"===e||"url"===e,Le=e=>"length"===e||"size"===e||"bg-size"===e,$e=e=>"length"===e,Ue=e=>"number"===e,Be=e=>"family-name"===e,We=e=>"shadow"===e,qe=re(()=>{const e=te("color"),r=te("font"),t=te("text"),o=te("font-weight"),n=te("tracking"),i=te("leading"),a=te("breakpoint"),s=te("container"),l=te("spacing"),c=te("radius"),u=te("shadow"),d=te("inset-shadow"),f=te("text-shadow"),p=te("drop-shadow"),m=te("blur"),h=te("perspective"),g=te("aspect"),b=te("ease"),y=te("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Ie,ze],x=()=>[Ie,ze,l],w=()=>[de,"full","auto",...x()],k=()=>[pe,"none","subgrid",Ie,ze],z=()=>["auto",{span:["full",pe,Ie,ze]},pe,Ie,ze],j=()=>[pe,"auto",Ie,ze],E=()=>["auto","min","max","fr",Ie,ze],C=()=>["auto",...x()],N=()=>[de,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],P=()=>[e,Ie,ze],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Ae,Ce,{position:[Ie,ze]}],O=()=>["auto","cover","contain",Me,ke,{size:[Ie,ze]}],S=()=>[me,Oe,je],A=()=>["","none","full",c,Ie,ze],M=()=>["",fe,Oe,je],T=()=>[fe,me,Ae,Ce],G=()=>["","none",m,Ie,ze],_=()=>["none",fe,Ie,ze],D=()=>["none",fe,Ie,ze],F=()=>[fe,Ie,ze],R=()=>[de,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[he],breakpoint:[he],color:[ge],container:[he],"drop-shadow":[he],ease:["in","out","in-out"],font:[we],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[he],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[he],shadow:[he],spacing:["px",fe],text:[he],"text-shadow":[he],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",de,ze,Ie,g]}],container:["container"],columns:[{columns:[fe,ze,Ie,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{start:w()}],end:[{end:w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[pe,"auto",Ie,ze]}],basis:[{basis:[de,"full","auto",s,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[fe,de,"auto","initial","none",ze]}],grow:[{grow:["",fe,Ie,ze]}],shrink:[{shrink:["",fe,Ie,ze]}],order:[{order:[pe,"first","last","none",Ie,ze]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":E()}],"auto-rows":[{"auto-rows":E()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],w:[{w:[s,"screen",...N()]}],"min-w":[{"min-w":[s,"screen","none",...N()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",t,Oe,je]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Ie,Ee]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",me,ze]}],"font-family":[{font:[Se,ze,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,Ie,ze]}],"line-clamp":[{"line-clamp":[fe,"none",Ie,Ee]}],leading:[{leading:[i,...x()]}],"list-image":[{"list-image":["none",Ie,ze]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ie,ze]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[fe,"from-font","auto",Ie,je]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[fe,"auto",Ie,ze]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ie,ze]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ie,ze]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pe,Ie,ze],radial:["",Ie,ze],conic:[pe,Ie,ze]},Te,Ne]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:A()}],"rounded-s":[{"rounded-s":A()}],"rounded-e":[{"rounded-e":A()}],"rounded-t":[{"rounded-t":A()}],"rounded-r":[{"rounded-r":A()}],"rounded-b":[{"rounded-b":A()}],"rounded-l":[{"rounded-l":A()}],"rounded-ss":[{"rounded-ss":A()}],"rounded-se":[{"rounded-se":A()}],"rounded-ee":[{"rounded-ee":A()}],"rounded-es":[{"rounded-es":A()}],"rounded-tl":[{"rounded-tl":A()}],"rounded-tr":[{"rounded-tr":A()}],"rounded-br":[{"rounded-br":A()}],"rounded-bl":[{"rounded-bl":A()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[fe,Ie,ze]}],"outline-w":[{outline:["",fe,Oe,je]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",u,Ge,Pe]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",d,Ge,Pe]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[fe,je]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",f,Ge,Pe]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[fe,Ie,ze]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[fe]}],"mask-image-linear-from-pos":[{"mask-linear-from":T()}],"mask-image-linear-to-pos":[{"mask-linear-to":T()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":T()}],"mask-image-t-to-pos":[{"mask-t-to":T()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":T()}],"mask-image-r-to-pos":[{"mask-r-to":T()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":T()}],"mask-image-b-to-pos":[{"mask-b-to":T()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":T()}],"mask-image-l-to-pos":[{"mask-l-to":T()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":T()}],"mask-image-x-to-pos":[{"mask-x-to":T()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":T()}],"mask-image-y-to-pos":[{"mask-y-to":T()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[Ie,ze]}],"mask-image-radial-from-pos":[{"mask-radial-from":T()}],"mask-image-radial-to-pos":[{"mask-radial-to":T()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[fe]}],"mask-image-conic-from-pos":[{"mask-conic-from":T()}],"mask-image-conic-to-pos":[{"mask-conic-to":T()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ie,ze]}],filter:[{filter:["","none",Ie,ze]}],blur:[{blur:G()}],brightness:[{brightness:[fe,Ie,ze]}],contrast:[{contrast:[fe,Ie,ze]}],"drop-shadow":[{"drop-shadow":["","none",p,Ge,Pe]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",fe,Ie,ze]}],"hue-rotate":[{"hue-rotate":[fe,Ie,ze]}],invert:[{invert:["",fe,Ie,ze]}],saturate:[{saturate:[fe,Ie,ze]}],sepia:[{sepia:["",fe,Ie,ze]}],"backdrop-filter":[{"backdrop-filter":["","none",Ie,ze]}],"backdrop-blur":[{"backdrop-blur":G()}],"backdrop-brightness":[{"backdrop-brightness":[fe,Ie,ze]}],"backdrop-contrast":[{"backdrop-contrast":[fe,Ie,ze]}],"backdrop-grayscale":[{"backdrop-grayscale":["",fe,Ie,ze]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[fe,Ie,ze]}],"backdrop-invert":[{"backdrop-invert":["",fe,Ie,ze]}],"backdrop-opacity":[{"backdrop-opacity":[fe,Ie,ze]}],"backdrop-saturate":[{"backdrop-saturate":[fe,Ie,ze]}],"backdrop-sepia":[{"backdrop-sepia":["",fe,Ie,ze]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ie,ze]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[fe,"initial",Ie,ze]}],ease:[{ease:["linear","initial",b,Ie,ze]}],delay:[{delay:[fe,Ie,ze]}],animate:[{animate:["none",y,Ie,ze]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,Ie,ze]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:_()}],"rotate-x":[{"rotate-x":_()}],"rotate-y":[{"rotate-y":_()}],"rotate-z":[{"rotate-z":_()}],scale:[{scale:D()}],"scale-x":[{"scale-x":D()}],"scale-y":[{"scale-y":D()}],"scale-z":[{"scale-z":D()}],"scale-3d":["scale-3d"],skew:[{skew:F()}],"skew-x":[{"skew-x":F()}],"skew-y":[{"skew-y":F()}],transform:[{transform:[Ie,ze,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:R()}],"translate-x":[{"translate-x":R()}],"translate-y":[{"translate-y":R()}],"translate-z":[{"translate-z":R()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ie,ze]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ie,ze]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[fe,Oe,je,Ee]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),Ve=[];for(let e=0;e<256;++e)Ve.push((e+256).toString(16).slice(1));let Ze;const He=new Uint8Array(16);var Ke={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ye(e,r,t){if(Ke.randomUUID&&!r&&!e)return Ke.randomUUID();const o=(e=e||{}).random??e.rng?.()??function(){if(!Ze){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ze=crypto.getRandomValues.bind(crypto)}return Ze(He)}();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,r){if((t=t||0)<0||t+16>r.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let e=0;e<16;++e)r[t+e]=o[e];return r}return function(e,r=0){return(Ve[e[r+0]]+Ve[e[r+1]]+Ve[e[r+2]]+Ve[e[r+3]]+"-"+Ve[e[r+4]]+Ve[e[r+5]]+"-"+Ve[e[r+6]]+Ve[e[r+7]]+"-"+Ve[e[r+8]]+Ve[e[r+9]]+"-"+Ve[e[r+10]]+Ve[e[r+11]]+Ve[e[r+12]]+Ve[e[r+13]]+Ve[e[r+14]]+Ve[e[r+15]]).toLowerCase()}(o)}function Je(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return qe(function(){for(var e,r,t=0,o="",n=arguments.length;t<n;t++)(e=arguments[t])&&(r=R(e))&&(o&&(o+=" "),o+=r);return o}(e))}var Qe={xs:"zui:h-8 zui:text-xs",sm:"zui:h-9 zui:text-sm",md:"zui:h-10 zui:text-sm",lg:"zui:h-11 zui:text-base"},Xe=n.forwardRef(function(t,o){var s,l,c=t.label,u=t.floatingLabel,d=void 0!==u&&u,f=t.description,p=t.error,g=t.leftIcon,b=t.rightIcon,y=t.size,v=void 0===y?"md":y,x=t.variant,w=void 0===x?"outlined":x,k=t.className,z=t.allowedPattern,j=t.onBeforeInput,E=t.onChange,C=t.onDebouncedChange,N=t.debounceDelay,P=t.type,I=void 0===P?"text":P,O=t.onLeftIconClick,S=t.onRightIconClick,A=t.wordLimit,M=t.focusOutline,T=void 0===M||M,G=a(t,["label","floatingLabel","description","error","leftIcon","rightIcon","size","variant","className","allowedPattern","onBeforeInput","onChange","onDebouncedChange","debounceDelay","type","onLeftIconClick","onRightIconClick","wordLimit","focusOutline"]),_=(void 0===(l="input")&&(l="id"),r.useRef("".concat(l,"-").concat(Ye())).current),D=n.useState(!1),F=D[0],R=D[1],L=n.useState(null!==(s=G.value)&&void 0!==s?s:""),$=L[0],U=L[1],B=n.useRef(null),W="textarea"===I,q="password"===I,V=q&&F?"text":I,Z=W?String($||"").trim().split(/\s+/).filter(Boolean).length:0;n.useEffect(function(){void 0!==G.value&&U(G.value)},[G.value]),n.useEffect(function(){if(void 0!==N&&C)return B.current&&clearTimeout(B.current),B.current=setTimeout(function(){C(String($))},N),function(){B.current&&clearTimeout(B.current)}},[$,N,C]);var H=function(e){var r="number"===z?/^[0-9]*$/:"alpha"===z?/^[a-zA-Z]*$/:z instanceof RegExp?z:null;if(r){var t=e.data,o=e.currentTarget.value+t;r.test(o)||e.preventDefault(),null==j||j(e)}},K=function(e){var r=e.target.value;if(A&&W&&r.trim().split(/\s+/).filter(Boolean).length>A)return;U(r),null==E||E(e)};return e.jsxs("div",{className:"zui:w-full zui:space-y-1",children:[!d&&c&&e.jsxs("label",{htmlFor:_,className:"zui:block zui:mb-2 zui:text-sm zui:font-medium zui:leading-none",children:[c,G.required&&e.jsx("span",{className:"zui:text-destructive zui:font-medium",children:" *"})]}),e.jsxs("div",{className:Je("zui:relative zui:w-full zui:rounded-md zui:border zui:bg-background zui:text-sm zui:transition-colors",T&&"zui:focus-within:ring-1 zui:focus-within:ring-ring zui:focus-within:ring-offset-1","outlined"===w&&"zui:border-input","contained"===w&&"zui:bg-muted zui:border-transparent",p&&"zui:border-destructive",p&&T&&"zui:focus-within:ring-destructive",k),children:[g&&e.jsx("span",{className:Je("zui:absolute zui:left-3 zui:top-3 zui:text-muted-foreground","lg"==v&&"zui:top-3.5"),children:O?e.jsx("span",{onClick:O,className:"cursor-pointer",children:g}):g}),W?e.jsx("textarea",i({id:_,ref:o,onBeforeInput:H,onChange:K,value:$,placeholder:G.placeholder,disabled:G.disabled,className:Je("zui:peer zui:block zui:w-full zui:bg-transparent zui:outline-none zui:px-3 zui:disabled:cursor-not-allowed zui:disabled:opacity-50 zui:py-2 zui:resize-none",g&&"zui:pl-10",b&&"zui:pr-10")},G)):e.jsx("input",i({id:_,ref:o,type:V,onBeforeInput:H,onChange:K,value:$,placeholder:G.placeholder,disabled:G.disabled,className:Je("zui:peer zui:block zui:w-full zui:bg-transparent zui:outline-none zui:px-3 zui:disabled:cursor-not-allowed zui:disabled:opacity-50 zui:py-2",g&&"zui:pl-10",(b||q)&&"zui:pr-10",Qe[v])},G)),d&&c&&e.jsxs("label",{htmlFor:_,className:Je("zui:pointer-events-none zui:absolute zui:left-3 zui:-top-[9px] zui:z-10 zui:bg-background zui:px-1 zui:text-xs zui:text-muted-foreground zui:transition-all"),children:[c,G.required&&e.jsx("span",{className:"zui:text-destructive zui:font-medium",children:" *"})]}),(b||q)&&e.jsx("span",{className:Je("zui:absolute zui:right-3 zui:top-3 zui:text-muted-foreground","lg"==v&&"zui:top-3.5"),children:q?e.jsx("button",{type:"button",onClick:function(){return R(function(e){return!e})},className:"zui:focus:outline-none",tabIndex:-1,children:F?e.jsx(h,{size:16}):e.jsx(m,{size:16})}):S?e.jsx("span",{onClick:S,className:"cursor-pointer zui:focus:outline-none",children:b}):b})]}),e.jsxs("div",{className:"zui:flex zui:flex-row zui:justify-between",children:[f&&!p&&e.jsx("p",{className:"zui:text-xs zui:text-muted-foreground",children:f}),p&&e.jsx("p",{className:"zui:text-xs zui:text-destructive",children:p}),W&&void 0!==A&&e.jsxs("div",{className:"zui:mt-1 zui:text-xs zui:text-muted-foreground zui:text-right",children:[Z,"/",A," words"]})]})]})}),er=function(o){var n=o.list,i=void 0===n?[]:n,a=o.delay,s=void 0===a?1e3:a,l=o.popInputPlaceholder,c=void 0===l?"Search...":l,u=o.history,d=r.useState(""),f=d[0],p=d[1],m=r.useState([]),h=m[0],g=m[1],b=r.useState(!1),y=b[0],v=b[1],w=function(e){var r=[],t=G(e);r=t?i.filter(function(e){return G(e.name).includes(t)}):i,g(r),v(!1)},k=r.useMemo(function(){return function(e,r){var t;return function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];clearTimeout(t),t=setTimeout(function(){e.apply(void 0,o)},r)}}(w,s)},[]);r.useEffect(function(){v(!0),k(f)},[f,k]);return e.jsxs(r.Fragment,{children:[e.jsx(t.DialogTitle,{classes:{root:"zui:!p-1"},component:"div",color:"primary",className:"font-semibold flex items-center",children:e.jsx(rr,{kbdType:"exit",variant:"outlined",inputProps:{className:"zui:!mb-0 zui:!text-sm",placeholder:c,value:f,onChange:function(e){var r=e.target.value;p(r)}}})}),e.jsx(t.Divider,{}),e.jsx(t.DialogContent,{classes:{root:"zui:!p-0"},children:e.jsx(F,{loading:y,list:h,children:e.jsx(x,{list:h,history:u})})}),e.jsx(t.Divider,{}),e.jsx(t.DialogActions,{children:e.jsxs("div",{className:"zui:flex zui:flex-row zui:gap-0.5 zui:items-center",children:[e.jsx(_,{size:"sm",children:"Search by :"}),e.jsx("img",{loading:"lazy",className:"org_logo",src:"https://files.zimyo.work/staticlogo/global/zimyo.svg",width:85})]})})]})},rr=function(r){var t=r.variant,o=void 0===t?"contained":t,n=r.inputProps,a=r.kbdType,s=void 0===a?y:a;return e.jsx(Xe,i({leftIcon:e.jsx(b,{size:16}),rightIcon:e.jsxs(M,{condition:s===v,children:[e.jsx(P,{children:e.jsx("kbd",{className:"zui:px-2 zui:py-1 zui:border zui:border-gray-200 zui:rounded zui:bg-gray-200",children:"Esc"})}),e.jsx(k,{children:e.jsxs("kbd",{className:"zui:px-2 zui:py-1 zui:border zui:border-gray-200 zui:rounded zui:bg-gray-200",children:[e.jsx("span",{children:"⌘"}),e.jsx("span",{children:"+"}),e.jsx("span",{children:"K"})]})})]})},n,{focusOutline:!1,autoFocus:s===v,variant:o}))},tr=r.forwardRef(function(r,o){return e.jsx(t.Slide,i({direction:"up",ref:o},r))}),or=r.createContext(null),nr=function(){return r.useContext(or)},ir=function(o){var n=o.list,s=void 0===n?[]:n,l=a(o,["list"]),c=r.useMemo(function(){return T(s)},[s]),u=r.useState(!1),d=u[0],f=u[1];r.useEffect(function(){var e=function(e){e.ctrlKey&&"k"===e.key.toLowerCase()&&(e.preventDefault(),f(!0))};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}},[]);var p=function(){f(!1)};return e.jsx(r.Fragment,{children:e.jsxs(or.Provider,{value:{handleClose:p},children:[e.jsx("div",{className:"global-search-container",onClick:function(){return f(!0)},children:e.jsx(rr,{kbdType:"open",inputProps:{placeholder:l.placeholder||"Search...",readOnly:!0,className:"zui:rounded-full"},variant:"contained"})}),e.jsx(t.Dialog,{open:d,TransitionComponent:tr,onClose:p,maxWidth:"md",slotProps:{backdrop:{style:{backgroundColor:"rgba(0,0,0,0.6)",backdropFilter:"blur(4px)"}}},PaperProps:{sx:{width:620,height:550,borderRadius:2}},"aria-describedby":"alert-dialog-slide-description",children:e.jsx(er,i({list:c},l))})]})})};exports.GlobalMenuSearch=ir,exports.default=ir;
@@ -17,6 +17,7 @@ interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
17
17
  debounceDelay?: number;
18
18
  onDebouncedChange?: (value: string) => void;
19
19
  wordLimit?: number;
20
+ focusOutline?: boolean;
20
21
  }
21
22
  declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
22
23