UNPKG

dgz-ui-shared

Version:

Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript, dgz-ui library

27 lines 218 kB
"use strict";const V=require("./index-DqTIeHVj-C_gsDkBV.cjs"),Y=require("react"),zl=require("react-dom"),Bn=require("./index-DFLDO_Wj-BSSol7QD.cjs"),ot=require("./utils-D0f6bOsw-BmDOeWKv.cjs"),Ba=require("./check-DE-1lGDl-C_ZPlJ0c.cjs"),xn=require("./createLucideIcon-B950nf2d-DnAaS9t0.cjs"),rI=require("./index-CYIFqWxx-Dq2O0Nts.cjs");function Ll(n){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const o in n)if(o!=="default"){const c=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(a,o,c.get?c:{enumerable:!0,get:()=>n[o]})}}return a.default=n,Object.freeze(a)}const S=Ll(Y),Yl=Ll(zl);function pa(n,[a,o]){return Math.min(o,Math.max(a,n))}var po=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oI(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}/** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const iI=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],El=xn.k("chevron-down",iI);/** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const aI=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],uI=xn.k("chevron-up",aI);function Dl(n){const a=S.useRef({value:n,previous:n});return S.useMemo(()=>(a.current.value!==n&&(a.current.previous=a.current.value,a.current.value=n),a.current.previous),[n])}function An(n){"@babel/helpers - typeof";return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},An(n)}function cI(n,a){if(An(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var c=o.call(n,a);if(An(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}function Ul(n){var a=cI(n,"string");return An(a)=="symbol"?a:a+""}function hr(n,a,o){return(a=Ul(a))in n?Object.defineProperty(n,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[a]=o,n}function gl(n,a){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(n);a&&(c=c.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),o.push.apply(o,c)}return o}function D(n){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?gl(Object(o),!0).forEach(function(c){hr(n,c,o[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):gl(Object(o)).forEach(function(c){Object.defineProperty(n,c,Object.getOwnPropertyDescriptor(o,c))})}return n}function lI(n){if(Array.isArray(n))return n}function sI(n,a){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var c,i,p,g,b=[],f=!0,h=!1;try{if(p=(o=o.call(n)).next,a===0){if(Object(o)!==o)return;f=!1}else for(;!(f=(c=p.call(o)).done)&&(b.push(c.value),b.length!==a);f=!0);}catch(I){h=!0,i=I}finally{try{if(!f&&o.return!=null&&(g=o.return(),Object(g)!==g))return}finally{if(h)throw i}}return b}}function ga(n,a){(a==null||a>n.length)&&(a=n.length);for(var o=0,c=Array(a);o<a;o++)c[o]=n[o];return c}function Ql(n,a){if(n){if(typeof n=="string")return ga(n,a);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ga(n,a):void 0}}function fI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qt(n,a){return lI(n)||sI(n,a)||Ql(n,a)||fI()}function dI(n,a){if(n==null)return{};var o={};for(var c in n)if({}.hasOwnProperty.call(n,c)){if(a.indexOf(c)!==-1)continue;o[c]=n[c]}return o}function Ft(n,a){if(n==null)return{};var o,c,i=dI(n,a);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(c=0;c<p.length;c++)o=p[c],a.indexOf(o)===-1&&{}.propertyIsEnumerable.call(n,o)&&(i[o]=n[o])}return i}var pI=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function $l(n){var a=n.defaultInputValue,o=a===void 0?"":a,c=n.defaultMenuIsOpen,i=c===void 0?!1:c,p=n.defaultValue,g=p===void 0?null:p,b=n.inputValue,f=n.menuIsOpen,h=n.onChange,I=n.onInputChange,A=n.onMenuClose,T=n.onMenuOpen,R=n.value,B=Ft(n,pI),G=Y.useState(b!==void 0?b:o),y=qt(G,2),O=y[0],W=y[1],_=Y.useState(f!==void 0?f:i),J=qt(_,2),X=J[0],k=J[1],H=Y.useState(R!==void 0?R:g),ee=qt(H,2),oe=ee[0],we=ee[1],Be=Y.useCallback(function(ye,Je){typeof h=="function"&&h(ye,Je),we(ye)},[h]),Ie=Y.useCallback(function(ye,Je){var ze;typeof I=="function"&&(ze=I(ye,Je)),W(ze!==void 0?ze:ye)},[I]),Se=Y.useCallback(function(){typeof T=="function"&&T(),k(!0)},[T]),se=Y.useCallback(function(){typeof A=="function"&&A(),k(!1)},[A]),ce=b!==void 0?b:O,ge=f!==void 0?f:X,Ne=R!==void 0?R:oe;return D(D({},B),{},{inputValue:ce,menuIsOpen:ge,onChange:Be,onInputChange:Ie,onMenuClose:se,onMenuOpen:Se,value:Ne})}function $(){return $=Object.assign?Object.assign.bind():function(n){for(var a=1;a<arguments.length;a++){var o=arguments[a];for(var c in o)({}).hasOwnProperty.call(o,c)&&(n[c]=o[c])}return n},$.apply(null,arguments)}function gI(n,a){if(!(n instanceof a))throw new TypeError("Cannot call a class as a function")}function bl(n,a){for(var o=0;o<a.length;o++){var c=a[o];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(n,Ul(c.key),c)}}function bI(n,a,o){return a&&bl(n.prototype,a),o&&bl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n}function ba(n,a){return ba=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,c){return o.__proto__=c,o},ba(n,a)}function hI(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(a&&a.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),a&&ba(n,a)}function xo(n){return xo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},xo(n)}function Kl(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kl=function(){return!!n})()}function vI(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function mI(n,a){if(a&&(An(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vI(n)}function II(n){var a=Kl();return function(){var o,c=xo(n);if(a){var i=xo(this).constructor;o=Reflect.construct(c,arguments,i)}else o=c.apply(this,arguments);return mI(this,o)}}function yI(n){if(Array.isArray(n))return ga(n)}function CI(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function xI(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kn(n){return yI(n)||CI(n)||Ql(n)||xI()}function AI(n){if(n.sheet)return n.sheet;for(var a=0;a<document.styleSheets.length;a++)if(document.styleSheets[a].ownerNode===n)return document.styleSheets[a]}function GI(n){var a=document.createElement("style");return a.setAttribute("data-emotion",n.key),n.nonce!==void 0&&a.setAttribute("nonce",n.nonce),a.appendChild(document.createTextNode("")),a.setAttribute("data-s",""),a}var wI=function(){function n(o){var c=this;this._insertTag=function(i){var p;c.tags.length===0?c.insertionPoint?p=c.insertionPoint.nextSibling:c.prepend?p=c.container.firstChild:p=c.before:p=c.tags[c.tags.length-1].nextSibling,c.container.insertBefore(i,p),c.tags.push(i)},this.isSpeedy=o.speedy===void 0?!0:o.speedy,this.tags=[],this.ctr=0,this.nonce=o.nonce,this.key=o.key,this.container=o.container,this.prepend=o.prepend,this.insertionPoint=o.insertionPoint,this.before=null}var a=n.prototype;return a.hydrate=function(o){o.forEach(this._insertTag)},a.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(GI(this));var c=this.tags[this.tags.length-1];if(this.isSpeedy){var i=AI(c);try{i.insertRule(o,i.cssRules.length)}catch{}}else c.appendChild(document.createTextNode(o));this.ctr++},a.flush=function(){this.tags.forEach(function(o){var c;return(c=o.parentNode)==null?void 0:c.removeChild(o)}),this.tags=[],this.ctr=0},n}(),rt="-ms-",Ao="-moz-",ve="-webkit-",ql="comm",Xa="rule",Va="decl",BI="@import",es="@keyframes",XI="@layer",VI=Math.abs,Ro=String.fromCharCode,RI=Object.assign;function NI(n,a){return qe(n,0)^45?(((a<<2^qe(n,0))<<2^qe(n,1))<<2^qe(n,2))<<2^qe(n,3):0}function ts(n){return n.trim()}function WI(n,a){return(n=a.exec(n))?n[0]:n}function me(n,a,o){return n.replace(a,o)}function ha(n,a){return n.indexOf(a)}function qe(n,a){return n.charCodeAt(a)|0}function Ir(n,a,o){return n.slice(a,o)}function jt(n){return n.length}function Ra(n){return n.length}function go(n,a){return a.push(n),n}function SI(n,a){return n.map(a).join("")}var No=1,Ln=1,ns=0,pt=0,Ye=0,Yn="";function Wo(n,a,o,c,i,p,g){return{value:n,root:a,parent:o,type:c,props:i,children:p,line:No,column:Ln,length:g,return:""}}function gr(n,a){return RI(Wo("",null,null,"",null,null,0),n,{length:-n.length},a)}function _I(){return Ye}function ZI(){return Ye=pt>0?qe(Yn,--pt):0,Ln--,Ye===10&&(Ln=1,No--),Ye}function yt(){return Ye=pt<ns?qe(Yn,pt++):0,Ln++,Ye===10&&(Ln=1,No++),Ye}function Jt(){return qe(Yn,pt)}function vo(){return pt}function xr(n,a){return Ir(Yn,n,a)}function yr(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function rs(n){return No=Ln=1,ns=jt(Yn=n),pt=0,[]}function os(n){return Yn="",n}function mo(n){return ts(xr(pt-1,va(n===91?n+2:n===40?n+1:n)))}function PI(n){for(;(Ye=Jt())&&Ye<33;)yt();return yr(n)>2||yr(Ye)>3?"":" "}function OI(n,a){for(;--a&&yt()&&!(Ye<48||Ye>102||Ye>57&&Ye<65||Ye>70&&Ye<97););return xr(n,vo()+(a<6&&Jt()==32&&yt()==32))}function va(n){for(;yt();)switch(Ye){case n:return pt;case 34:case 39:n!==34&&n!==39&&va(Ye);break;case 40:n===41&&va(n);break;case 92:yt();break}return pt}function TI(n,a){for(;yt()&&n+Ye!==57&&!(n+Ye===84&&Jt()===47););return"/*"+xr(a,pt-1)+"*"+Ro(n===47?n:yt())}function HI(n){for(;!yr(Jt());)yt();return xr(n,pt)}function jI(n){return os(Io("",null,null,null,[""],n=rs(n),0,[0],n))}function Io(n,a,o,c,i,p,g,b,f){for(var h=0,I=0,A=g,T=0,R=0,B=0,G=1,y=1,O=1,W=0,_="",J=i,X=p,k=c,H=_;y;)switch(B=W,W=yt()){case 40:if(B!=108&&qe(H,A-1)==58){ha(H+=me(mo(W),"&","&\f"),"&\f")!=-1&&(O=-1);break}case 34:case 39:case 91:H+=mo(W);break;case 9:case 10:case 13:case 32:H+=PI(B);break;case 92:H+=OI(vo()-1,7);continue;case 47:switch(Jt()){case 42:case 47:go(MI(TI(yt(),vo()),a,o),f);break;default:H+="/"}break;case 123*G:b[h++]=jt(H)*O;case 125*G:case 59:case 0:switch(W){case 0:case 125:y=0;case 59+I:O==-1&&(H=me(H,/\f/g,"")),R>0&&jt(H)-A&&go(R>32?vl(H+";",c,o,A-1):vl(me(H," ","")+";",c,o,A-2),f);break;case 59:H+=";";default:if(go(k=hl(H,a,o,h,I,i,b,_,J=[],X=[],A),p),W===123)if(I===0)Io(H,a,k,k,J,p,A,b,X);else switch(T===99&&qe(H,3)===110?100:T){case 100:case 108:case 109:case 115:Io(n,k,k,c&&go(hl(n,k,k,0,0,i,b,_,i,J=[],A),X),i,X,A,b,c?J:X);break;default:Io(H,k,k,k,[""],X,0,b,X)}}h=I=R=0,G=O=1,_=H="",A=g;break;case 58:A=1+jt(H),R=B;default:if(G<1){if(W==123)--G;else if(W==125&&G++==0&&ZI()==125)continue}switch(H+=Ro(W),W*G){case 38:O=I>0?1:(H+="\f",-1);break;case 44:b[h++]=(jt(H)-1)*O,O=1;break;case 64:Jt()===45&&(H+=mo(yt())),T=Jt(),I=A=jt(_=H+=HI(vo())),W++;break;case 45:B===45&&jt(H)==2&&(G=0)}}return p}function hl(n,a,o,c,i,p,g,b,f,h,I){for(var A=i-1,T=i===0?p:[""],R=Ra(T),B=0,G=0,y=0;B<c;++B)for(var O=0,W=Ir(n,A+1,A=VI(G=g[B])),_=n;O<R;++O)(_=ts(G>0?T[O]+" "+W:me(W,/&\f/g,T[O])))&&(f[y++]=_);return Wo(n,a,o,i===0?Xa:b,f,h,I)}function MI(n,a,o){return Wo(n,a,o,ql,Ro(_I()),Ir(n,2,-2),0)}function vl(n,a,o,c){return Wo(n,a,o,Va,Ir(n,0,c),Ir(n,c+1,-1),c)}function zn(n,a){for(var o="",c=Ra(n),i=0;i<c;i++)o+=a(n[i],i,n,a)||"";return o}function JI(n,a,o,c){switch(n.type){case XI:if(n.children.length)break;case BI:case Va:return n.return=n.return||n.value;case ql:return"";case es:return n.return=n.value+"{"+zn(n.children,c)+"}";case Xa:n.value=n.props.join(",")}return jt(o=zn(n.children,c))?n.return=n.value+"{"+o+"}":""}function FI(n){var a=Ra(n);return function(o,c,i,p){for(var g="",b=0;b<a;b++)g+=n[b](o,c,i,p)||"";return g}}function kI(n){return function(a){a.root||(a=a.return)&&n(a)}}var zI=function(n,a,o){for(var c=0,i=0;c=i,i=Jt(),c===38&&i===12&&(a[o]=1),!yr(i);)yt();return xr(n,pt)},LI=function(n,a){var o=-1,c=44;do switch(yr(c)){case 0:c===38&&Jt()===12&&(a[o]=1),n[o]+=zI(pt-1,a,o);break;case 2:n[o]+=mo(c);break;case 4:if(c===44){n[++o]=Jt()===58?"&\f":"",a[o]=n[o].length;break}default:n[o]+=Ro(c)}while(c=yt());return n},YI=function(n,a){return os(LI(rs(n),a))},ml=new WeakMap,EI=function(n){if(!(n.type!=="rule"||!n.parent||n.length<1)){for(var a=n.value,o=n.parent,c=n.column===o.column&&n.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(n.props.length===1&&a.charCodeAt(0)!==58&&!ml.get(o))&&!c){ml.set(n,!0);for(var i=[],p=YI(a,i),g=o.props,b=0,f=0;b<p.length;b++)for(var h=0;h<g.length;h++,f++)n.props[f]=i[b]?p[b].replace(/&\f/g,g[h]):g[h]+" "+p[b]}}},DI=function(n){if(n.type==="decl"){var a=n.value;a.charCodeAt(0)===108&&a.charCodeAt(2)===98&&(n.return="",n.value="")}};function is(n,a){switch(NI(n,a)){case 5103:return ve+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ve+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return ve+n+Ao+n+rt+n+n;case 6828:case 4268:return ve+n+rt+n+n;case 6165:return ve+n+rt+"flex-"+n+n;case 5187:return ve+n+me(n,/(\w+).+(:[^]+)/,ve+"box-$1$2"+rt+"flex-$1$2")+n;case 5443:return ve+n+rt+"flex-item-"+me(n,/flex-|-self/,"")+n;case 4675:return ve+n+rt+"flex-line-pack"+me(n,/align-content|flex-|-self/,"")+n;case 5548:return ve+n+rt+me(n,"shrink","negative")+n;case 5292:return ve+n+rt+me(n,"basis","preferred-size")+n;case 6060:return ve+"box-"+me(n,"-grow","")+ve+n+rt+me(n,"grow","positive")+n;case 4554:return ve+me(n,/([^-])(transform)/g,"$1"+ve+"$2")+n;case 6187:return me(me(me(n,/(zoom-|grab)/,ve+"$1"),/(image-set)/,ve+"$1"),n,"")+n;case 5495:case 3959:return me(n,/(image-set\([^]*)/,ve+"$1$`$1");case 4968:return me(me(n,/(.+:)(flex-)?(.*)/,ve+"box-pack:$3"+rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ve+n+n;case 4095:case 3583:case 4068:case 2532:return me(n,/(.+)-inline(.+)/,ve+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(jt(n)-1-a>6)switch(qe(n,a+1)){case 109:if(qe(n,a+4)!==45)break;case 102:return me(n,/(.+:)(.+)-([^]+)/,"$1"+ve+"$2-$3$1"+Ao+(qe(n,a+3)==108?"$3":"$2-$3"))+n;case 115:return~ha(n,"stretch")?is(me(n,"stretch","fill-available"),a)+n:n}break;case 4949:if(qe(n,a+1)!==115)break;case 6444:switch(qe(n,jt(n)-3-(~ha(n,"!important")&&10))){case 107:return me(n,":",":"+ve)+n;case 101:return me(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ve+(qe(n,14)===45?"inline-":"")+"box$3$1"+ve+"$2$3$1"+rt+"$2box$3")+n}break;case 5936:switch(qe(n,a+11)){case 114:return ve+n+rt+me(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return ve+n+rt+me(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return ve+n+rt+me(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return ve+n+rt+n+n}return n}var UI=function(n,a,o,c){if(n.length>-1&&!n.return)switch(n.type){case Va:n.return=is(n.value,n.length);break;case es:return zn([gr(n,{value:me(n.value,"@","@"+ve)})],c);case Xa:if(n.length)return SI(n.props,function(i){switch(WI(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zn([gr(n,{props:[me(i,/:(read-\w+)/,":"+Ao+"$1")]})],c);case"::placeholder":return zn([gr(n,{props:[me(i,/:(plac\w+)/,":"+ve+"input-$1")]}),gr(n,{props:[me(i,/:(plac\w+)/,":"+Ao+"$1")]}),gr(n,{props:[me(i,/:(plac\w+)/,rt+"input-$1")]})],c)}return""})}},QI=[UI],$I=function(n){var a=n.key;if(a==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(B){var G=B.getAttribute("data-emotion");G.indexOf(" ")!==-1&&(document.head.appendChild(B),B.setAttribute("data-s",""))})}var c=n.stylisPlugins||QI,i={},p,g=[];p=n.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(B){for(var G=B.getAttribute("data-emotion").split(" "),y=1;y<G.length;y++)i[G[y]]=!0;g.push(B)});var b,f=[EI,DI];{var h,I=[JI,kI(function(B){h.insert(B)})],A=FI(f.concat(c,I)),T=function(B){return zn(jI(B),A)};b=function(B,G,y,O){h=y,T(B?B+"{"+G.styles+"}":G.styles),O&&(R.inserted[G.name]=!0)}}var R={key:a,sheet:new wI({key:a,container:p,nonce:n.nonce,speedy:n.speedy,prepend:n.prepend,insertionPoint:n.insertionPoint}),nonce:n.nonce,inserted:i,registered:{},insert:b};return R.sheet.hydrate(g),R},ra={exports:{}},Ge={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Il;function KI(){if(Il)return Ge;Il=1;var n=typeof Symbol=="function"&&Symbol.for,a=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,c=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,p=n?Symbol.for("react.profiler"):60114,g=n?Symbol.for("react.provider"):60109,b=n?Symbol.for("react.context"):60110,f=n?Symbol.for("react.async_mode"):60111,h=n?Symbol.for("react.concurrent_mode"):60111,I=n?Symbol.for("react.forward_ref"):60112,A=n?Symbol.for("react.suspense"):60113,T=n?Symbol.for("react.suspense_list"):60120,R=n?Symbol.for("react.memo"):60115,B=n?Symbol.for("react.lazy"):60116,G=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,O=n?Symbol.for("react.responder"):60118,W=n?Symbol.for("react.scope"):60119;function _(X){if(typeof X=="object"&&X!==null){var k=X.$$typeof;switch(k){case a:switch(X=X.type,X){case f:case h:case c:case p:case i:case A:return X;default:switch(X=X&&X.$$typeof,X){case b:case I:case B:case R:case g:return X;default:return k}}case o:return k}}}function J(X){return _(X)===h}return Ge.AsyncMode=f,Ge.ConcurrentMode=h,Ge.ContextConsumer=b,Ge.ContextProvider=g,Ge.Element=a,Ge.ForwardRef=I,Ge.Fragment=c,Ge.Lazy=B,Ge.Memo=R,Ge.Portal=o,Ge.Profiler=p,Ge.StrictMode=i,Ge.Suspense=A,Ge.isAsyncMode=function(X){return J(X)||_(X)===f},Ge.isConcurrentMode=J,Ge.isContextConsumer=function(X){return _(X)===b},Ge.isContextProvider=function(X){return _(X)===g},Ge.isElement=function(X){return typeof X=="object"&&X!==null&&X.$$typeof===a},Ge.isForwardRef=function(X){return _(X)===I},Ge.isFragment=function(X){return _(X)===c},Ge.isLazy=function(X){return _(X)===B},Ge.isMemo=function(X){return _(X)===R},Ge.isPortal=function(X){return _(X)===o},Ge.isProfiler=function(X){return _(X)===p},Ge.isStrictMode=function(X){return _(X)===i},Ge.isSuspense=function(X){return _(X)===A},Ge.isValidElementType=function(X){return typeof X=="string"||typeof X=="function"||X===c||X===h||X===p||X===i||X===A||X===T||typeof X=="object"&&X!==null&&(X.$$typeof===B||X.$$typeof===R||X.$$typeof===g||X.$$typeof===b||X.$$typeof===I||X.$$typeof===y||X.$$typeof===O||X.$$typeof===W||X.$$typeof===G)},Ge.typeOf=_,Ge}var Ve={};/** @license React v16.13.1 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var yl;function qI(){return yl||(yl=1,process.env.NODE_ENV!=="production"&&function(){var n=typeof Symbol=="function"&&Symbol.for,a=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,c=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,p=n?Symbol.for("react.profiler"):60114,g=n?Symbol.for("react.provider"):60109,b=n?Symbol.for("react.context"):60110,f=n?Symbol.for("react.async_mode"):60111,h=n?Symbol.for("react.concurrent_mode"):60111,I=n?Symbol.for("react.forward_ref"):60112,A=n?Symbol.for("react.suspense"):60113,T=n?Symbol.for("react.suspense_list"):60120,R=n?Symbol.for("react.memo"):60115,B=n?Symbol.for("react.lazy"):60116,G=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,O=n?Symbol.for("react.responder"):60118,W=n?Symbol.for("react.scope"):60119;function _(M){return typeof M=="string"||typeof M=="function"||M===c||M===h||M===p||M===i||M===A||M===T||typeof M=="object"&&M!==null&&(M.$$typeof===B||M.$$typeof===R||M.$$typeof===g||M.$$typeof===b||M.$$typeof===I||M.$$typeof===y||M.$$typeof===O||M.$$typeof===W||M.$$typeof===G)}function J(M){if(typeof M=="object"&&M!==null){var et=M.$$typeof;switch(et){case a:var Le=M.type;switch(Le){case f:case h:case c:case p:case i:case A:return Le;default:var Ct=Le&&Le.$$typeof;switch(Ct){case b:case I:case B:case R:case g:return Ct;default:return et}}case o:return et}}}var X=f,k=h,H=b,ee=g,oe=a,we=I,Be=c,Ie=B,Se=R,se=o,ce=p,ge=i,Ne=A,ye=!1;function Je(M){return ye||(ye=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),ze(M)||J(M)===f}function ze(M){return J(M)===h}function te(M){return J(M)===b}function it(M){return J(M)===g}function Qe(M){return typeof M=="object"&&M!==null&&M.$$typeof===a}function Te(M){return J(M)===I}function Ze(M){return J(M)===c}function He(M){return J(M)===B}function U(M){return J(M)===R}function be(M){return J(M)===o}function Ce(M){return J(M)===p}function fe(M){return J(M)===i}function xe(M){return J(M)===A}Ve.AsyncMode=X,Ve.ConcurrentMode=k,Ve.ContextConsumer=H,Ve.ContextProvider=ee,Ve.Element=oe,Ve.ForwardRef=we,Ve.Fragment=Be,Ve.Lazy=Ie,Ve.Memo=Se,Ve.Portal=se,Ve.Profiler=ce,Ve.StrictMode=ge,Ve.Suspense=Ne,Ve.isAsyncMode=Je,Ve.isConcurrentMode=ze,Ve.isContextConsumer=te,Ve.isContextProvider=it,Ve.isElement=Qe,Ve.isForwardRef=Te,Ve.isFragment=Ze,Ve.isLazy=He,Ve.isMemo=U,Ve.isPortal=be,Ve.isProfiler=Ce,Ve.isStrictMode=fe,Ve.isSuspense=xe,Ve.isValidElementType=_,Ve.typeOf=J}()),Ve}var Cl;function e0(){return Cl||(Cl=1,process.env.NODE_ENV==="production"?ra.exports=KI():ra.exports=qI()),ra.exports}var oa,xl;function t0(){if(xl)return oa;xl=1;var n=e0(),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},c={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},p={};p[n.ForwardRef]=c,p[n.Memo]=i;function g(B){return n.isMemo(B)?i:p[B.$$typeof]||a}var b=Object.defineProperty,f=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,I=Object.getOwnPropertyDescriptor,A=Object.getPrototypeOf,T=Object.prototype;function R(B,G,y){if(typeof G!="string"){if(T){var O=A(G);O&&O!==T&&R(B,O,y)}var W=f(G);h&&(W=W.concat(h(G)));for(var _=g(B),J=g(G),X=0;X<W.length;++X){var k=W[X];if(!o[k]&&!(y&&y[k])&&!(J&&J[k])&&!(_&&_[k])){var H=I(G,k);try{b(B,k,H)}catch{}}}}return B}return oa=R,oa}t0();var n0=!0;function r0(n,a,o){var c="";return o.split(" ").forEach(function(i){n[i]!==void 0?a.push(n[i]+";"):i&&(c+=i+" ")}),c}var as=function(n,a,o){var c=n.key+"-"+a.name;(o===!1||n0===!1)&&n.registered[c]===void 0&&(n.registered[c]=a.styles)},o0=function(n,a,o){as(n,a,o);var c=n.key+"-"+a.name;if(n.inserted[a.name]===void 0){var i=a;do n.insert(a===i?"."+c:"",i,n.sheet,!0),i=i.next;while(i!==void 0)}};function i0(n){for(var a=0,o,c=0,i=n.length;i>=4;++c,i-=4)o=n.charCodeAt(c)&255|(n.charCodeAt(++c)&255)<<8|(n.charCodeAt(++c)&255)<<16|(n.charCodeAt(++c)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,a=(o&65535)*1540483477+((o>>>16)*59797<<16)^(a&65535)*1540483477+((a>>>16)*59797<<16);switch(i){case 3:a^=(n.charCodeAt(c+2)&255)<<16;case 2:a^=(n.charCodeAt(c+1)&255)<<8;case 1:a^=n.charCodeAt(c)&255,a=(a&65535)*1540483477+((a>>>16)*59797<<16)}return a^=a>>>13,a=(a&65535)*1540483477+((a>>>16)*59797<<16),((a^a>>>15)>>>0).toString(36)}var a0={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function u0(n){var a=Object.create(null);return function(o){return a[o]===void 0&&(a[o]=n(o)),a[o]}}var c0=/[A-Z]|^ms/g,l0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,us=function(n){return n.charCodeAt(1)===45},Al=function(n){return n!=null&&typeof n!="boolean"},ia=u0(function(n){return us(n)?n:n.replace(c0,"-$&").toLowerCase()}),Gl=function(n,a){switch(n){case"animation":case"animationName":if(typeof a=="string")return a.replace(l0,function(o,c,i){return Mt={name:c,styles:i,next:Mt},c})}return a0[n]!==1&&!us(n)&&typeof a=="number"&&a!==0?a+"px":a};function Cr(n,a,o){if(o==null)return"";var c=o;if(c.__emotion_styles!==void 0)return c;switch(typeof o){case"boolean":return"";case"object":{var i=o;if(i.anim===1)return Mt={name:i.name,styles:i.styles,next:Mt},i.name;var p=o;if(p.styles!==void 0){var g=p.next;if(g!==void 0)for(;g!==void 0;)Mt={name:g.name,styles:g.styles,next:Mt},g=g.next;var b=p.styles+";";return b}return s0(n,a,o)}case"function":{if(n!==void 0){var f=Mt,h=o(n);return Mt=f,Cr(n,a,h)}break}}var I=o;return I}function s0(n,a,o){var c="";if(Array.isArray(o))for(var i=0;i<o.length;i++)c+=Cr(n,a,o[i])+";";else for(var p in o){var g=o[p];if(typeof g!="object"){var b=g;Al(b)&&(c+=ia(p)+":"+Gl(p,b)+";")}else if(Array.isArray(g)&&typeof g[0]=="string"&&a==null)for(var f=0;f<g.length;f++)Al(g[f])&&(c+=ia(p)+":"+Gl(p,g[f])+";");else{var h=Cr(n,a,g);switch(p){case"animation":case"animationName":{c+=ia(p)+":"+h+";";break}default:c+=p+"{"+h+"}"}}}return c}var wl=/label:\s*([^\s;{]+)\s*(;|$)/g,Mt;function cs(n,a,o){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var c=!0,i="";Mt=void 0;var p=n[0];if(p==null||p.raw===void 0)c=!1,i+=Cr(o,a,p);else{var g=p;i+=g[0]}for(var b=1;b<n.length;b++)if(i+=Cr(o,a,n[b]),c){var f=p;i+=f[b]}wl.lastIndex=0;for(var h="",I;(I=wl.exec(i))!==null;)h+="-"+I[1];var A=i0(i)+h;return{name:A,styles:i,next:Mt}}var f0=function(n){return n()},d0=S.useInsertionEffect?S.useInsertionEffect:!1,p0=d0||f0,ls=S.createContext(typeof HTMLElement<"u"?$I({key:"css"}):null);ls.Provider;var g0=function(n){return Y.forwardRef(function(a,o){var c=Y.useContext(ls);return n(a,c,o)})},b0=S.createContext({}),Na={}.hasOwnProperty,ma="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",h0=function(n,a){var o={};for(var c in a)Na.call(a,c)&&(o[c]=a[c]);return o[ma]=n,o},v0=function(n){var a=n.cache,o=n.serialized,c=n.isStringTag;return as(a,o,c),p0(function(){return o0(a,o,c)}),null},m0=g0(function(n,a,o){var c=n.css;typeof c=="string"&&a.registered[c]!==void 0&&(c=a.registered[c]);var i=n[ma],p=[c],g="";typeof n.className=="string"?g=r0(a.registered,p,n.className):n.className!=null&&(g=n.className+" ");var b=cs(p,void 0,S.useContext(b0));g+=a.key+"-"+b.name;var f={};for(var h in n)Na.call(n,h)&&h!=="css"&&h!==ma&&(f[h]=n[h]);return f.className=g,o&&(f.ref=o),S.createElement(S.Fragment,null,S.createElement(v0,{cache:a,serialized:b,isStringTag:typeof i=="string"}),S.createElement(i,f))}),I0=m0,E=function(n,a){var o=arguments;if(a==null||!Na.call(a,"css"))return S.createElement.apply(void 0,o);var c=o.length,i=new Array(c);i[0]=I0,i[1]=h0(n,a);for(var p=2;p<c;p++)i[p]=o[p];return S.createElement.apply(null,i)};(function(n){var a;a||(a=n.JSX||(n.JSX={}))})(E||(E={}));function Wa(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return cs(a)}function y0(){var n=Wa.apply(void 0,arguments),a="animation-"+n.name;return{name:a,styles:"@keyframes "+a+"{"+n.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function C0(n,a){return a||(a=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(a)}}))}var Ia=Y.useLayoutEffect,x0=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Go=function(){};function A0(n,a){return a?a[0]==="-"?n+a:n+"__"+a:n}function G0(n,a){for(var o=arguments.length,c=new Array(o>2?o-2:0),i=2;i<o;i++)c[i-2]=arguments[i];var p=[].concat(c);if(a&&n)for(var g in a)a.hasOwnProperty(g)&&a[g]&&p.push("".concat(A0(n,g)));return p.filter(function(b){return b}).map(function(b){return String(b).trim()}).join(" ")}var wo=function(n){return _0(n)?n.filter(Boolean):An(n)==="object"&&n!==null?[n]:[]},ss=function(n){n.className,n.clearValue,n.cx,n.getStyles,n.getClassNames,n.getValue,n.hasValue,n.isMulti,n.isRtl,n.options,n.selectOption,n.selectProps,n.setValue,n.theme;var a=Ft(n,x0);return D({},a)},Me=function(n,a,o){var c=n.cx,i=n.getStyles,p=n.getClassNames,g=n.className;return{css:i(a,n),className:c(o??{},p(a,n),g)}};function So(n){return[document.documentElement,document.body,window].indexOf(n)>-1}function w0(n){return So(n)?window.innerHeight:n.clientHeight}function fs(n){return So(n)?window.pageYOffset:n.scrollTop}function Bo(n,a){if(So(n)){window.scrollTo(0,a);return}n.scrollTop=a}function B0(n){var a=getComputedStyle(n),o=a.position==="absolute",c=/(auto|scroll)/;if(a.position==="fixed")return document.documentElement;for(var i=n;i=i.parentElement;)if(a=getComputedStyle(i),!(o&&a.position==="static")&&c.test(a.overflow+a.overflowY+a.overflowX))return i;return document.documentElement}function X0(n,a,o,c){return o*((n=n/c-1)*n*n+1)+a}function bo(n,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Go,i=fs(n),p=a-i,g=10,b=0;function f(){b+=g;var h=X0(b,i,p,o);Bo(n,h),b<o?window.requestAnimationFrame(f):c(n)}f()}function Bl(n,a){var o=n.getBoundingClientRect(),c=a.getBoundingClientRect(),i=a.offsetHeight/3;c.bottom+i>o.bottom?Bo(n,Math.min(a.offsetTop+a.clientHeight-n.offsetHeight+i,n.scrollHeight)):c.top-i<o.top&&Bo(n,Math.max(a.offsetTop-i,0))}function V0(n){var a=n.getBoundingClientRect();return{bottom:a.bottom,height:a.height,left:a.left,right:a.right,top:a.top,width:a.width}}function Xl(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function R0(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var ds=!1,N0={get passive(){return ds=!0}},ho=typeof window<"u"?window:{};ho.addEventListener&&ho.removeEventListener&&(ho.addEventListener("p",Go,N0),ho.removeEventListener("p",Go,!1));var W0=ds;function S0(n){return n!=null}function _0(n){return Array.isArray(n)}function vr(n,a,o){return n?a:o}var Z0=function(n){for(var a=arguments.length,o=new Array(a>1?a-1:0),c=1;c<a;c++)o[c-1]=arguments[c];var i=Object.entries(n).filter(function(p){var g=qt(p,1),b=g[0];return!o.includes(b)});return i.reduce(function(p,g){var b=qt(g,2),f=b[0],h=b[1];return p[f]=h,p},{})},P0=["children","innerProps"],O0=["children","innerProps"];function T0(n){var a=n.maxHeight,o=n.menuEl,c=n.minHeight,i=n.placement,p=n.shouldScroll,g=n.isFixedPosition,b=n.controlHeight,f=B0(o),h={placement:"bottom",maxHeight:a};if(!o||!o.offsetParent)return h;var I=f.getBoundingClientRect(),A=I.height,T=o.getBoundingClientRect(),R=T.bottom,B=T.height,G=T.top,y=o.offsetParent.getBoundingClientRect(),O=y.top,W=g?window.innerHeight:w0(f),_=fs(f),J=parseInt(getComputedStyle(o).marginBottom,10),X=parseInt(getComputedStyle(o).marginTop,10),k=O-X,H=W-G,ee=k+_,oe=A-_-G,we=R-W+_+J,Be=_+G-X,Ie=160;switch(i){case"auto":case"bottom":if(H>=B)return{placement:"bottom",maxHeight:a};if(oe>=B&&!g)return p&&bo(f,we,Ie),{placement:"bottom",maxHeight:a};if(!g&&oe>=c||g&&H>=c){p&&bo(f,we,Ie);var Se=g?H-J:oe-J;return{placement:"bottom",maxHeight:Se}}if(i==="auto"||g){var se=a,ce=g?k:ee;return ce>=c&&(se=Math.min(ce-J-b,a)),{placement:"top",maxHeight:se}}if(i==="bottom")return p&&Bo(f,we),{placement:"bottom",maxHeight:a};break;case"top":if(k>=B)return{placement:"top",maxHeight:a};if(ee>=B&&!g)return p&&bo(f,Be,Ie),{placement:"top",maxHeight:a};if(!g&&ee>=c||g&&k>=c){var ge=a;return(!g&&ee>=c||g&&k>=c)&&(ge=g?k-X:ee-X),p&&bo(f,Be,Ie),{placement:"top",maxHeight:ge}}return{placement:"bottom",maxHeight:a};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return h}function H0(n){var a={bottom:"top",top:"bottom"};return n?a[n]:"bottom"}var ps=function(n){return n==="auto"?"bottom":n},j0=function(n,a){var o,c=n.placement,i=n.theme,p=i.borderRadius,g=i.spacing,b=i.colors;return D((o={label:"menu"},hr(o,H0(c),"100%"),hr(o,"position","absolute"),hr(o,"width","100%"),hr(o,"zIndex",1),o),a?{}:{backgroundColor:b.neutral0,borderRadius:p,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:g.menuGutter,marginTop:g.menuGutter})},gs=Y.createContext(null),M0=function(n){var a=n.children,o=n.minMenuHeight,c=n.maxMenuHeight,i=n.menuPlacement,p=n.menuPosition,g=n.menuShouldScrollIntoView,b=n.theme,f=Y.useContext(gs)||{},h=f.setPortalPlacement,I=Y.useRef(null),A=Y.useState(c),T=qt(A,2),R=T[0],B=T[1],G=Y.useState(null),y=qt(G,2),O=y[0],W=y[1],_=b.spacing.controlHeight;return Ia(function(){var J=I.current;if(J){var X=p==="fixed",k=g&&!X,H=T0({maxHeight:c,menuEl:J,minHeight:o,placement:i,shouldScroll:k,isFixedPosition:X,controlHeight:_});B(H.maxHeight),W(H.placement),h==null||h(H.placement)}},[c,i,p,g,o,h,_]),a({ref:I,placerProps:D(D({},n),{},{placement:O||ps(i),maxHeight:R})})},J0=function(n){var a=n.children,o=n.innerRef,c=n.innerProps;return E("div",$({},Me(n,"menu",{menu:!0}),{ref:o},c),a)},F0=J0,k0=function(n,a){var o=n.maxHeight,c=n.theme.spacing.baseUnit;return D({maxHeight:o,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},a?{}:{paddingBottom:c,paddingTop:c})},z0=function(n){var a=n.children,o=n.innerProps,c=n.innerRef,i=n.isMulti;return E("div",$({},Me(n,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:c},o),a)},bs=function(n,a){var o=n.theme,c=o.spacing.baseUnit,i=o.colors;return D({textAlign:"center"},a?{}:{color:i.neutral40,padding:"".concat(c*2,"px ").concat(c*3,"px")})},L0=bs,Y0=bs,E0=function(n){var a=n.children,o=a===void 0?"No options":a,c=n.innerProps,i=Ft(n,P0);return E("div",$({},Me(D(D({},i),{},{children:o,innerProps:c}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),c),o)},D0=function(n){var a=n.children,o=a===void 0?"Loading...":a,c=n.innerProps,i=Ft(n,O0);return E("div",$({},Me(D(D({},i),{},{children:o,innerProps:c}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),c),o)},U0=function(n){var a=n.rect,o=n.offset,c=n.position;return{left:a.left,position:c,top:o,width:a.width,zIndex:1}},Q0=function(n){var a=n.appendTo,o=n.children,c=n.controlElement,i=n.innerProps,p=n.menuPlacement,g=n.menuPosition,b=Y.useRef(null),f=Y.useRef(null),h=Y.useState(ps(p)),I=qt(h,2),A=I[0],T=I[1],R=Y.useMemo(function(){return{setPortalPlacement:T}},[]),B=Y.useState(null),G=qt(B,2),y=G[0],O=G[1],W=Y.useCallback(function(){if(c){var k=V0(c),H=g==="fixed"?0:window.pageYOffset,ee=k[A]+H;(ee!==(y==null?void 0:y.offset)||k.left!==(y==null?void 0:y.rect.left)||k.width!==(y==null?void 0:y.rect.width))&&O({offset:ee,rect:k})}},[c,g,A,y==null?void 0:y.offset,y==null?void 0:y.rect.left,y==null?void 0:y.rect.width]);Ia(function(){W()},[W]);var _=Y.useCallback(function(){typeof f.current=="function"&&(f.current(),f.current=null),c&&b.current&&(f.current=Bn.un(c,b.current,W,{elementResize:"ResizeObserver"in window}))},[c,W]);Ia(function(){_()},[_]);var J=Y.useCallback(function(k){b.current=k,_()},[_]);if(!a&&g!=="fixed"||!y)return null;var X=E("div",$({ref:J},Me(D(D({},n),{},{offset:y.offset,position:g,rect:y.rect}),"menuPortal",{"menu-portal":!0}),i),o);return E(gs.Provider,{value:R},a?zl.createPortal(X,a):X)},$0=function(n){var a=n.isDisabled,o=n.isRtl;return{label:"container",direction:o?"rtl":void 0,pointerEvents:a?"none":void 0,position:"relative"}},K0=function(n){var a=n.children,o=n.innerProps,c=n.isDisabled,i=n.isRtl;return E("div",$({},Me(n,"container",{"--is-disabled":c,"--is-rtl":i}),o),a)},q0=function(n,a){var o=n.theme.spacing,c=n.isMulti,i=n.hasValue,p=n.selectProps.controlShouldRenderValue;return D({alignItems:"center",display:c&&i&&p?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},a?{}:{padding:"".concat(o.baseUnit/2,"px ").concat(o.baseUnit*2,"px")})},ey=function(n){var a=n.children,o=n.innerProps,c=n.isMulti,i=n.hasValue;return E("div",$({},Me(n,"valueContainer",{"value-container":!0,"value-container--is-multi":c,"value-container--has-value":i}),o),a)},ty=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ny=function(n){var a=n.children,o=n.innerProps;return E("div",$({},Me(n,"indicatorsContainer",{indicators:!0}),o),a)},Vl,ry=["size"],oy=["innerProps","isRtl","size"];function iy(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var ay=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb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