@powerhousedao/connect 1.0.0-sky.187 → 1.0.0-sky.188
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{app-D49Tx2Bq.js → app-CCIiKpPD.js} +16 -16
- package/dist/assets/app-CCIiKpPD.js.map +1 -0
- package/dist/assets/{app-loader-DxOroInF.js → app-loader-BfaRR27W.js} +3 -3
- package/dist/assets/{app-loader-DxOroInF.js.map → app-loader-BfaRR27W.js.map} +1 -1
- package/dist/assets/{browser-nO0Wirvo.js → browser-howbEbax.js} +4 -4
- package/dist/assets/{browser-nO0Wirvo.js.map → browser-howbEbax.js.map} +1 -1
- package/dist/assets/{ccip-Cbtp8sOL.js → ccip-uEKD33vK.js} +2 -2
- package/dist/assets/{ccip-Cbtp8sOL.js.map → ccip-uEKD33vK.js.map} +1 -1
- package/dist/assets/content-BjANsuRK.js +92 -0
- package/dist/assets/content-BjANsuRK.js.map +1 -0
- package/dist/assets/{editor-BPCS6Xtf.js → editor-7J_sXwzQ.js} +2 -2
- package/dist/assets/{editor-BPCS6Xtf.js.map → editor-7J_sXwzQ.js.map} +1 -1
- package/dist/assets/{editor-CAG-sw6z.js → editor-BvunQMK4.js} +2 -2
- package/dist/assets/{editor-CAG-sw6z.js.map → editor-BvunQMK4.js.map} +1 -1
- package/dist/assets/{editor-DyQFQRZr.js → editor-DU-lQtwD.js} +2 -2
- package/dist/assets/{editor-DyQFQRZr.js.map → editor-DU-lQtwD.js.map} +1 -1
- package/dist/assets/{editor-BZe-FWPe.js → editor-DsJju1GR.js} +2 -2
- package/dist/assets/{editor-BZe-FWPe.js.map → editor-DsJju1GR.js.map} +1 -1
- package/dist/assets/{editors-Cp2pNRWI.js → editors-C0ROY17i.js} +5 -5
- package/dist/assets/{editors-Cp2pNRWI.js.map → editors-C0ROY17i.js.map} +1 -1
- package/dist/assets/{index-KDfZFawS.js → index-Cgfr30M3.js} +2 -2
- package/dist/assets/{index-KDfZFawS.js.map → index-Cgfr30M3.js.map} +1 -1
- package/dist/assets/{index-CH59hMeC.js → index-h0as4MhA.js} +3 -3
- package/dist/assets/{index-CH59hMeC.js.map → index-h0as4MhA.js.map} +1 -1
- package/dist/assets/{main.B_r_OGSY.js → main.CnQ6SfYh.js} +2 -2
- package/dist/assets/{main.B_r_OGSY.js.map → main.CnQ6SfYh.js.map} +1 -1
- package/dist/assets/{root-Boy6zt_e.js → root-DY0hjxda.js} +2 -2
- package/dist/assets/{root-Boy6zt_e.js.map → root-DY0hjxda.js.map} +1 -1
- package/dist/assets/{router-D7_xmk-f.js → router-CUrO08Jn.js} +4 -4
- package/dist/assets/{router-D7_xmk-f.js.map → router-CUrO08Jn.js.map} +1 -1
- package/dist/assets/useUiNodes-Q80utwRx.js +107 -0
- package/dist/assets/{useUiNodes-BBBwb6rq.js.map → useUiNodes-Q80utwRx.js.map} +1 -1
- package/dist/index.html +3 -3
- package/dist/service-worker.js +1 -1
- package/dist/swEnv.js +2 -2
- package/dist/vite-envs.sh +5 -5
- package/package.json +2 -2
- package/dist/assets/app-D49Tx2Bq.js.map +0 -1
- package/dist/assets/content-3KD38dCg.js +0 -92
- package/dist/assets/content-3KD38dCg.js.map +0 -1
- package/dist/assets/useUiNodes-BBBwb6rq.js +0 -107
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/editor-
|
|
2
|
-
import{_ as __vitePreload}from"./main.B_r_OGSY.js";import{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as y$2 from"react";import y__default,{forwardRef,createContext,memo,useCallback,useState,useMemo,Suspense,useRef,useReducer,useEffect,useContext,lazy,useLayoutEffect,Fragment as Fragment$1,Component,useImperativeHandle,useId}from"react";import{a1 as py$1,a2 as JR,a3 as Ir$3,a4 as sr$2,a5 as $$4,x as index,a6 as Hr$3,a7 as K8,a8 as Ci$1,a9 as h$2,aa as actions,ab as xo$2}from"./app-D49Tx2Bq.js";import*as Ql$1 from"react-dom";import Ql__default,{createPortal}from"react-dom";var yo$1,Ri;function Cf(){if(Ri)return yo$1;Ri=1;var vo="Expected a function",Ai=NaN,bo="[object Symbol]",Ra=/^\s+|\s+$/g,hc=/^[-+]0x[0-9a-f]+$/i,pc=/^0b[01]+$/i,mc=/^0o[0-7]+$/i,uf=parseInt,df=typeof sr$2=="object"&&sr$2&&sr$2.Object===Object&&sr$2,ff=typeof self=="object"&&self&&self.Object===Object&&self,hf=df||ff||Function("return this")(),pf=Object.prototype,mf=pf.toString,gf=Math.max,yf=Math.min,vf=function(){return hf.Date.now()};function bf(If,Km,s1){var d1,O1,k1,_1,m1,R1,c1=0,f1=!1,E1=!1,D1=!0;if(typeof If!="function")throw new TypeError(vo);Km=Hp(Km)||0,Sf(s1)&&(f1=!!s1.leading,E1="maxWait"in s1,k1=E1?gf(Hp(s1.maxWait)||0,Km):k1,D1="trailing"in s1?!!s1.trailing:D1);function j1(H1){var Y1=d1,J1=O1;return d1=O1=void 0,c1=H1,_1=If.apply(J1,Y1),_1}function F1(H1){return c1=H1,m1=setTimeout(T1,Km),f1?j1(H1):_1}function G1(H1){var Y1=H1-R1,J1=H1-c1,tT=Km-Y1;return E1?yf(tT,k1-J1):tT}function q1(H1){var Y1=H1-R1,J1=H1-c1;return R1===void 0||Y1>=Km||Y1<0||E1&&J1>=k1}function T1(){var H1=vf();if(q1(H1))return M1(H1);m1=setTimeout(T1,G1(H1))}function M1(H1){return m1=void 0,D1&&d1?j1(H1):(d1=O1=void 0,_1)}function P1(){m1!==void 0&&clearTimeout(m1),c1=0,d1=R1=O1=m1=void 0}function U1(){return m1===void 0?_1:M1(vf())}function Z1(){var H1=vf(),Y1=q1(H1);if(d1=arguments,O1=this,R1=H1,Y1){if(m1===void 0)return F1(R1);if(E1)return m1=setTimeout(T1,Km),j1(R1)}return m1===void 0&&(m1=setTimeout(T1,Km)),_1}return Z1.cancel=P1,Z1.flush=U1,Z1}function Sf(If){var Km=typeof If;return!!If&&(Km=="object"||Km=="function")}function xf(If){return!!If&&typeof If=="object"}function wf(If){return typeof If=="symbol"||xf(If)&&mf.call(If)==bo}function Hp(If){if(typeof If=="number")return If;if(wf(If))return Ai;if(Sf(If)){var Km=typeof If.valueOf=="function"?If.valueOf():If;If=Sf(Km)?Km+"":Km}if(typeof If!="string")return If===0?If:+If;If=If.replace(Ra,"");var s1=pc.test(If);return s1||mc.test(If)?uf(If.slice(2),s1?2:8):hc.test(If)?Ai:+If}return yo$1=bf,yo$1}Cf();var qn$1=vo=>vo.type==="checkbox",Gt$2=vo=>vo instanceof Date,Be$2=vo=>vo==null;const gc=vo=>typeof vo=="object";var Te$1=vo=>!Be$2(vo)&&!Array.isArray(vo)&&gc(vo)&&!Gt$2(vo),vc=vo=>Te$1(vo)&&vo.target?qn$1(vo.target)?vo.target.checked:vo.target.value:vo,Ef=vo=>vo.substring(0,vo.search(/\.\d+(\.|$)/))||vo,bc=(vo,Ai)=>vo.has(Ef(Ai)),Pf=vo=>{const Ai=vo.constructor&&vo.constructor.prototype;return Te$1(Ai)&&Ai.hasOwnProperty("isPrototypeOf")},_a$1=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function De$2(vo){let Ai;const bo=Array.isArray(vo),Ra=typeof FileList<"u"?vo instanceof FileList:!1;if(vo instanceof Date)Ai=new Date(vo);else if(vo instanceof Set)Ai=new Set(vo);else if(!(_a$1&&(vo instanceof Blob||Ra))&&(bo||Te$1(vo)))if(Ai=bo?[]:{},!bo&&!Pf(vo))Ai=vo;else for(const hc in vo)vo.hasOwnProperty(hc)&&(Ai[hc]=De$2(vo[hc]));else return vo;return Ai}var Xn$1=vo=>Array.isArray(vo)?vo.filter(Boolean):[],Se$1=vo=>vo===void 0,B$3=(vo,Ai,bo)=>{if(!Ai||!Te$1(vo))return bo;const Ra=Xn$1(Ai.split(/[,[\].]+?/)).reduce((hc,pc)=>Be$2(hc)?hc:hc[pc],vo);return Se$1(Ra)||Ra===vo?Se$1(vo[Ai])?bo:vo[Ai]:Ra},Qe$2=vo=>typeof vo=="boolean",ka=vo=>/^\w*$/.test(vo),yc=vo=>Xn$1(vo.replace(/["|']|\]/g,"").split(/\.|\[/)),ge$2=(vo,Ai,bo)=>{let Ra=-1;const hc=ka(Ai)?[Ai]:yc(Ai),pc=hc.length,mc=pc-1;for(;++Ra<pc;){const uf=hc[Ra];let df=bo;if(Ra!==mc){const ff=vo[uf];df=Te$1(ff)||Array.isArray(ff)?ff:isNaN(+hc[Ra+1])?{}:[]}if(uf==="__proto__"||uf==="constructor"||uf==="prototype")return;vo[uf]=df,vo=vo[uf]}return vo};const Er$2={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Je$1={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},wt$2={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},wc=y__default.createContext(null),Yr$2=()=>y__default.useContext(wc),p1=vo=>{const{children:Ai,...bo}=vo;return y__default.createElement(wc.Provider,{value:bo},Ai)};var xc=(vo,Ai,bo,Ra=!0)=>{const hc={defaultValues:Ai._defaultValues};for(const pc in vo)Object.defineProperty(hc,pc,{get:()=>{const mc=pc;return Ai._proxyFormState[mc]!==Je$1.all&&(Ai._proxyFormState[mc]=!Ra||Je$1.all),bo&&(bo[mc]=!0),vo[mc]}});return hc},We$2=vo=>Te$1(vo)&&!Object.keys(vo).length,Sc=(vo,Ai,bo,Ra)=>{bo(vo);const{name:hc,...pc}=vo;return We$2(pc)||Object.keys(pc).length>=Object.keys(Ai).length||Object.keys(pc).find(mc=>Ai[mc]===(!Ra||Je$1.all))},Ge$2=vo=>Array.isArray(vo)?vo:[vo],Cc=(vo,Ai,bo)=>!vo||!Ai||vo===Ai||Ge$2(vo).some(Ra=>Ra&&(bo?Ra===Ai:Ra.startsWith(Ai)||Ai.startsWith(Ra)));function Gr$2(vo){const Ai=y__default.useRef(vo);Ai.current=vo,y__default.useEffect(()=>{const bo=!vo.disabled&&Ai.current.subject&&Ai.current.subject.subscribe({next:Ai.current.next});return()=>{bo&&bo.unsubscribe()}},[vo.disabled])}function Tf(vo){const Ai=Yr$2(),{control:bo=Ai.control,disabled:Ra,name:hc,exact:pc}=vo,[mc,uf]=y__default.useState(bo._formState),df=y__default.useRef(!0),ff=y__default.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),hf=y__default.useRef(hc);return hf.current=hc,Gr$2({disabled:Ra,next:pf=>df.current&&Cc(hf.current,pf.name,pc)&&Sc(pf,ff.current,bo._updateFormState)&&uf({...bo._formState,...pf}),subject:bo._subjects.state}),y__default.useEffect(()=>(df.current=!0,ff.current.isValid&&bo._updateValid(!0),()=>{df.current=!1}),[bo]),y__default.useMemo(()=>xc(mc,bo,ff.current,!1),[mc,bo])}var ht$2=vo=>typeof vo=="string",Ic=(vo,Ai,bo,Ra,hc)=>ht$2(vo)?(Ra&&Ai.watch.add(vo),B$3(bo,vo,hc)):Array.isArray(vo)?vo.map(pc=>(Ra&&Ai.watch.add(pc),B$3(bo,pc))):(Ra&&(Ai.watchAll=!0),bo);function kt$2(vo){const Ai=Yr$2(),{control:bo=Ai.control,name:Ra,defaultValue:hc,disabled:pc,exact:mc}=vo||{},uf=y__default.useRef(Ra);uf.current=Ra,Gr$2({disabled:pc,subject:bo._subjects.values,next:hf=>{Cc(uf.current,hf.name,mc)&&ff(De$2(Ic(uf.current,bo._names,hf.values||bo._formValues,!1,hc)))}});const[df,ff]=y__default.useState(bo._getWatch(Ra,hc));return y__default.useEffect(()=>bo._removeUnmounted()),df}function Of(vo){const Ai=Yr$2(),{name:bo,disabled:Ra,control:hc=Ai.control,shouldUnregister:pc}=vo,mc=bc(hc._names.array,bo),uf=kt$2({control:hc,name:bo,defaultValue:B$3(hc._formValues,bo,B$3(hc._defaultValues,bo,vo.defaultValue)),exact:!0}),df=Tf({control:hc,name:bo,exact:!0}),ff=y__default.useRef(hc.register(bo,{...vo.rules,value:uf,...Qe$2(vo.disabled)?{disabled:vo.disabled}:{}})),hf=y__default.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!B$3(df.errors,bo)},isDirty:{enumerable:!0,get:()=>!!B$3(df.dirtyFields,bo)},isTouched:{enumerable:!0,get:()=>!!B$3(df.touchedFields,bo)},isValidating:{enumerable:!0,get:()=>!!B$3(df.validatingFields,bo)},error:{enumerable:!0,get:()=>B$3(df.errors,bo)}}),[df,bo]),pf=y__default.useMemo(()=>({name:bo,value:uf,...Qe$2(Ra)||df.disabled?{disabled:df.disabled||Ra}:{},onChange:mf=>ff.current.onChange({target:{value:vc(mf),name:bo},type:Er$2.CHANGE}),onBlur:()=>ff.current.onBlur({target:{value:B$3(hc._formValues,bo),name:bo},type:Er$2.BLUR}),ref:mf=>{const gf=B$3(hc._fields,bo);gf&&mf&&(gf._f.ref={focus:()=>mf.focus(),select:()=>mf.select(),setCustomValidity:yf=>mf.setCustomValidity(yf),reportValidity:()=>mf.reportValidity()})}}),[bo,hc._formValues,Ra,df.disabled,uf,hc._fields]);return y__default.useEffect(()=>{const mf=hc._options.shouldUnregister||pc,gf=(yf,vf)=>{const bf=B$3(hc._fields,yf);bf&&bf._f&&(bf._f.mount=vf)};if(gf(bo,!0),mf){const yf=De$2(B$3(hc._options.defaultValues,bo));ge$2(hc._defaultValues,bo,yf),Se$1(B$3(hc._formValues,bo))&&ge$2(hc._formValues,bo,yf)}return!mc&&hc.register(bo),()=>{(mc?mf&&!hc._state.action:mf)?hc.unregister(bo):gf(bo,!1)}},[bo,hc,mc,pc]),y__default.useEffect(()=>{hc._updateDisabledField({disabled:Ra,fields:hc._fields,name:bo})},[Ra,bo,hc]),y__default.useMemo(()=>({field:pf,formState:df,fieldState:hf}),[pf,df,hf])}const Ec=vo=>vo.render(Of(vo));var Mf=(vo,Ai,bo,Ra,hc)=>Ai?{...bo[vo],types:{...bo[vo]&&bo[vo].types?bo[vo].types:{},[Ra]:hc||!0}}:{},Tt$2=()=>{const vo=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,Ai=>{const bo=(Math.random()*16+vo)%16|0;return(Ai=="x"?bo:bo&3|8).toString(16)})},wo=(vo,Ai,bo={})=>bo.shouldFocus||Se$1(bo.shouldFocus)?bo.focusName||`${vo}.${Se$1(bo.focusIndex)?Ai:bo.focusIndex}.`:"",_n$2=vo=>({isOnSubmit:!vo||vo===Je$1.onSubmit,isOnBlur:vo===Je$1.onBlur,isOnChange:vo===Je$1.onChange,isOnAll:vo===Je$1.all,isOnTouch:vo===Je$1.onTouched}),ca$1=(vo,Ai,bo)=>!bo&&(Ai.watchAll||Ai.watch.has(vo)||[...Ai.watch].some(Ra=>vo.startsWith(Ra)&&/^\.\w+/.test(vo.slice(Ra.length))));const sn$1=(vo,Ai,bo,Ra)=>{for(const hc of bo||Object.keys(vo)){const pc=B$3(vo,hc);if(pc){const{_f:mc,...uf}=pc;if(mc){if(mc.refs&&mc.refs[0]&&Ai(mc.refs[0],hc)&&!Ra||mc.ref&&Ai(mc.ref,mc.name)&&!Ra)return!0;if(sn$1(uf,Ai))break}else if(Te$1(uf)&&sn$1(uf,Ai))break}}};var Pc=(vo,Ai,bo)=>{const Ra=Ge$2(B$3(vo,bo));return ge$2(Ra,"root",Ai[bo]),ge$2(vo,bo,Ra),vo},Fa=vo=>vo.type==="file",ft$2=vo=>typeof vo=="function",Pr$2=vo=>{if(!_a$1)return!1;const Ai=vo?vo.ownerDocument:0;return vo instanceof(Ai&&Ai.defaultView?Ai.defaultView.HTMLElement:HTMLElement)},vr$2=vo=>ht$2(vo),Va=vo=>vo.type==="radio",Tr$2=vo=>vo instanceof RegExp;const _i={value:!1,isValid:!1},ki$1={value:!0,isValid:!0};var Tc=vo=>{if(Array.isArray(vo)){if(vo.length>1){const Ai=vo.filter(bo=>bo&&bo.checked&&!bo.disabled).map(bo=>bo.value);return{value:Ai,isValid:!!Ai.length}}return vo[0].checked&&!vo[0].disabled?vo[0].attributes&&!Se$1(vo[0].attributes.value)?Se$1(vo[0].value)||vo[0].value===""?ki$1:{value:vo[0].value,isValid:!0}:ki$1:_i}return _i};const Fi$1={isValid:!1,value:null};var Oc=vo=>Array.isArray(vo)?vo.reduce((Ai,bo)=>bo&&bo.checked&&!bo.disabled?{isValid:!0,value:bo.value}:Ai,Fi$1):Fi$1;function Vi(vo,Ai,bo="validate"){if(vr$2(vo)||Array.isArray(vo)&&vo.every(vr$2)||Qe$2(vo)&&!vo)return{type:bo,message:vr$2(vo)?vo:"",ref:Ai}}var Jt$1=vo=>Te$1(vo)&&!Tr$2(vo)?vo:{value:vo,message:""},la$1=async(vo,Ai,bo,Ra,hc,pc)=>{const{ref:mc,refs:uf,required:df,maxLength:ff,minLength:hf,min:pf,max:mf,pattern:gf,validate:yf,name:vf,valueAsNumber:bf,mount:Sf}=vo._f,xf=B$3(bo,vf);if(!Sf||Ai.has(vf))return{};const wf=uf?uf[0]:mc,Hp=m1=>{hc&&wf.reportValidity&&(wf.setCustomValidity(Qe$2(m1)?"":m1||""),wf.reportValidity())},If={},Km=Va(mc),s1=qn$1(mc),d1=Km||s1,O1=(bf||Fa(mc))&&Se$1(mc.value)&&Se$1(xf)||Pr$2(mc)&&mc.value===""||xf===""||Array.isArray(xf)&&!xf.length,k1=Mf.bind(null,vf,Ra,If),_1=(m1,R1,c1,f1=wt$2.maxLength,E1=wt$2.minLength)=>{const D1=m1?R1:c1;If[vf]={type:m1?f1:E1,message:D1,ref:mc,...k1(m1?f1:E1,D1)}};if(pc?!Array.isArray(xf)||!xf.length:df&&(!d1&&(O1||Be$2(xf))||Qe$2(xf)&&!xf||s1&&!Tc(uf).isValid||Km&&!Oc(uf).isValid)){const{value:m1,message:R1}=vr$2(df)?{value:!!df,message:df}:Jt$1(df);if(m1&&(If[vf]={type:wt$2.required,message:R1,ref:wf,...k1(wt$2.required,R1)},!Ra))return Hp(R1),If}if(!O1&&(!Be$2(pf)||!Be$2(mf))){let m1,R1;const c1=Jt$1(mf),f1=Jt$1(pf);if(!Be$2(xf)&&!isNaN(xf)){const E1=mc.valueAsNumber||xf&&+xf;Be$2(c1.value)||(m1=E1>c1.value),Be$2(f1.value)||(R1=E1<f1.value)}else{const E1=mc.valueAsDate||new Date(xf),D1=G1=>new Date(new Date().toDateString()+" "+G1),j1=mc.type=="time",F1=mc.type=="week";ht$2(c1.value)&&xf&&(m1=j1?D1(xf)>D1(c1.value):F1?xf>c1.value:E1>new Date(c1.value)),ht$2(f1.value)&&xf&&(R1=j1?D1(xf)<D1(f1.value):F1?xf<f1.value:E1<new Date(f1.value))}if((m1||R1)&&(_1(!!m1,c1.message,f1.message,wt$2.max,wt$2.min),!Ra))return Hp(If[vf].message),If}if((ff||hf)&&!O1&&(ht$2(xf)||pc&&Array.isArray(xf))){const m1=Jt$1(ff),R1=Jt$1(hf),c1=!Be$2(m1.value)&&xf.length>+m1.value,f1=!Be$2(R1.value)&&xf.length<+R1.value;if((c1||f1)&&(_1(c1,m1.message,R1.message),!Ra))return Hp(If[vf].message),If}if(gf&&!O1&&ht$2(xf)){const{value:m1,message:R1}=Jt$1(gf);if(Tr$2(m1)&&!xf.match(m1)&&(If[vf]={type:wt$2.pattern,message:R1,ref:mc,...k1(wt$2.pattern,R1)},!Ra))return Hp(R1),If}if(yf){if(ft$2(yf)){const m1=await yf(xf,bo),R1=Vi(m1,wf);if(R1&&(If[vf]={...R1,...k1(wt$2.validate,R1.message)},!Ra))return Hp(R1.message),If}else if(Te$1(yf)){let m1={};for(const R1 in yf){if(!We$2(m1)&&!Ra)break;const c1=Vi(await yf[R1](xf,bo),wf,R1);c1&&(m1={...c1,...k1(R1,c1.message)},Hp(c1.message),Ra&&(If[vf]=m1))}if(!We$2(m1)&&(If[vf]={ref:wf,...m1},!Ra))return If}}return Hp(!0),If},xo$1=(vo,Ai)=>[...vo,...Ge$2(Ai)],So=vo=>Array.isArray(vo)?vo.map(()=>{}):void 0;function Co(vo,Ai,bo){return[...vo.slice(0,Ai),...Ge$2(bo),...vo.slice(Ai)]}var Io=(vo,Ai,bo)=>Array.isArray(vo)?(Se$1(vo[bo])&&(vo[bo]=void 0),vo.splice(bo,0,vo.splice(Ai,1)[0]),vo):[],Eo=(vo,Ai)=>[...Ge$2(Ai),...Ge$2(vo)];function Nf(vo,Ai){let bo=0;const Ra=[...vo];for(const hc of Ai)Ra.splice(hc-bo,1),bo++;return Xn$1(Ra).length?Ra:[]}var Po=(vo,Ai)=>Se$1(Ai)?[]:Nf(vo,Ge$2(Ai).sort((bo,Ra)=>bo-Ra)),To$1=(vo,Ai,bo)=>{[vo[Ai],vo[bo]]=[vo[bo],vo[Ai]]};function Af(vo,Ai){const bo=Ai.slice(0,-1).length;let Ra=0;for(;Ra<bo;)vo=Se$1(vo)?Ra++:vo[Ai[Ra++]];return vo}function Df(vo){for(const Ai in vo)if(vo.hasOwnProperty(Ai)&&!Se$1(vo[Ai]))return!1;return!0}function Oe$2(vo,Ai){const bo=Array.isArray(Ai)?Ai:ka(Ai)?[Ai]:yc(Ai),Ra=bo.length===1?vo:Af(vo,bo),hc=bo.length-1,pc=bo[hc];return Ra&&delete Ra[pc],hc!==0&&(Te$1(Ra)&&We$2(Ra)||Array.isArray(Ra)&&Df(Ra))&&Oe$2(vo,bo.slice(0,-1)),vo}var Li=(vo,Ai,bo)=>(vo[Ai]=bo,vo);function Rf(vo){const Ai=Yr$2(),{control:bo=Ai.control,name:Ra,keyName:hc="id",shouldUnregister:pc,rules:mc}=vo,[uf,df]=y__default.useState(bo._getFieldArray(Ra)),ff=y__default.useRef(bo._getFieldArray(Ra).map(Tt$2)),hf=y__default.useRef(uf),pf=y__default.useRef(Ra),mf=y__default.useRef(!1);pf.current=Ra,hf.current=uf,bo._names.array.add(Ra),mc&&bo.register(Ra,mc),Gr$2({next:({values:Km,name:s1})=>{if(s1===pf.current||!s1){const d1=B$3(Km,pf.current);Array.isArray(d1)&&(df(d1),ff.current=d1.map(Tt$2))}},subject:bo._subjects.array});const gf=y__default.useCallback(Km=>{mf.current=!0,bo._updateFieldArray(Ra,Km)},[bo,Ra]),yf=(Km,s1)=>{const d1=Ge$2(De$2(Km)),O1=xo$1(bo._getFieldArray(Ra),d1);bo._names.focus=wo(Ra,O1.length-1,s1),ff.current=xo$1(ff.current,d1.map(Tt$2)),gf(O1),df(O1),bo._updateFieldArray(Ra,O1,xo$1,{argA:So(Km)})},vf=(Km,s1)=>{const d1=Ge$2(De$2(Km)),O1=Eo(bo._getFieldArray(Ra),d1);bo._names.focus=wo(Ra,0,s1),ff.current=Eo(ff.current,d1.map(Tt$2)),gf(O1),df(O1),bo._updateFieldArray(Ra,O1,Eo,{argA:So(Km)})},bf=Km=>{const s1=Po(bo._getFieldArray(Ra),Km);ff.current=Po(ff.current,Km),gf(s1),df(s1),!Array.isArray(B$3(bo._fields,Ra))&&ge$2(bo._fields,Ra,void 0),bo._updateFieldArray(Ra,s1,Po,{argA:Km})},Sf=(Km,s1,d1)=>{const O1=Ge$2(De$2(s1)),k1=Co(bo._getFieldArray(Ra),Km,O1);bo._names.focus=wo(Ra,Km,d1),ff.current=Co(ff.current,Km,O1.map(Tt$2)),gf(k1),df(k1),bo._updateFieldArray(Ra,k1,Co,{argA:Km,argB:So(s1)})},xf=(Km,s1)=>{const d1=bo._getFieldArray(Ra);To$1(d1,Km,s1),To$1(ff.current,Km,s1),gf(d1),df(d1),bo._updateFieldArray(Ra,d1,To$1,{argA:Km,argB:s1},!1)},wf=(Km,s1)=>{const d1=bo._getFieldArray(Ra);Io(d1,Km,s1),Io(ff.current,Km,s1),gf(d1),df(d1),bo._updateFieldArray(Ra,d1,Io,{argA:Km,argB:s1},!1)},Hp=(Km,s1)=>{const d1=De$2(s1),O1=Li(bo._getFieldArray(Ra),Km,d1);ff.current=[...O1].map((k1,_1)=>!k1||_1===Km?Tt$2():ff.current[_1]),gf(O1),df([...O1]),bo._updateFieldArray(Ra,O1,Li,{argA:Km,argB:d1},!0,!1)},If=Km=>{const s1=Ge$2(De$2(Km));ff.current=s1.map(Tt$2),gf([...s1]),df([...s1]),bo._updateFieldArray(Ra,[...s1],d1=>d1,{},!0,!1)};return y__default.useEffect(()=>{if(bo._state.action=!1,ca$1(Ra,bo._names)&&bo._subjects.state.next({...bo._formState}),mf.current&&(!_n$2(bo._options.mode).isOnSubmit||bo._formState.isSubmitted))if(bo._options.resolver)bo._executeSchema([Ra]).then(Km=>{const s1=B$3(Km.errors,Ra),d1=B$3(bo._formState.errors,Ra);(d1?!s1&&d1.type||s1&&(d1.type!==s1.type||d1.message!==s1.message):s1&&s1.type)&&(s1?ge$2(bo._formState.errors,Ra,s1):Oe$2(bo._formState.errors,Ra),bo._subjects.state.next({errors:bo._formState.errors}))});else{const Km=B$3(bo._fields,Ra);Km&&Km._f&&!(_n$2(bo._options.reValidateMode).isOnSubmit&&_n$2(bo._options.mode).isOnSubmit)&&la$1(Km,bo._names.disabled,bo._formValues,bo._options.criteriaMode===Je$1.all,bo._options.shouldUseNativeValidation,!0).then(s1=>!We$2(s1)&&bo._subjects.state.next({errors:Pc(bo._formState.errors,s1,Ra)}))}bo._subjects.values.next({name:Ra,values:{...bo._formValues}}),bo._names.focus&&sn$1(bo._fields,(Km,s1)=>{if(bo._names.focus&&s1.startsWith(bo._names.focus)&&Km.focus)return Km.focus(),1}),bo._names.focus="",bo._updateValid(),mf.current=!1},[uf,Ra,bo]),y__default.useEffect(()=>(!B$3(bo._formValues,Ra)&&bo._updateFieldArray(Ra),()=>{(bo._options.shouldUnregister||pc)&&bo.unregister(Ra)}),[Ra,bo,hc,pc]),{swap:y__default.useCallback(xf,[gf,Ra,bo]),move:y__default.useCallback(wf,[gf,Ra,bo]),prepend:y__default.useCallback(vf,[gf,Ra,bo]),append:y__default.useCallback(yf,[gf,Ra,bo]),remove:y__default.useCallback(bf,[gf,Ra,bo]),insert:y__default.useCallback(Sf,[gf,Ra,bo]),update:y__default.useCallback(Hp,[gf,Ra,bo]),replace:y__default.useCallback(If,[gf,Ra,bo]),fields:y__default.useMemo(()=>uf.map((Km,s1)=>({...Km,[hc]:ff.current[s1]||Tt$2()})),[uf,hc])}}var Oo=()=>{let vo=[];return{get observers(){return vo},next:Ai=>{for(const bo of vo)bo.next&&bo.next(Ai)},subscribe:Ai=>(vo.push(Ai),{unsubscribe:()=>{vo=vo.filter(bo=>bo!==Ai)}}),unsubscribe:()=>{vo=[]}}},ua$1=vo=>Be$2(vo)||!gc(vo);function Rt$2(vo,Ai){if(ua$1(vo)||ua$1(Ai))return vo===Ai;if(Gt$2(vo)&&Gt$2(Ai))return vo.getTime()===Ai.getTime();const bo=Object.keys(vo),Ra=Object.keys(Ai);if(bo.length!==Ra.length)return!1;for(const hc of bo){const pc=vo[hc];if(!Ra.includes(hc))return!1;if(hc!=="ref"){const mc=Ai[hc];if(Gt$2(pc)&&Gt$2(mc)||Te$1(pc)&&Te$1(mc)||Array.isArray(pc)&&Array.isArray(mc)?!Rt$2(pc,mc):pc!==mc)return!1}}return!0}var Mc=vo=>vo.type==="select-multiple",_f=vo=>Va(vo)||qn$1(vo),Mo$1=vo=>Pr$2(vo)&&vo.isConnected,Nc=vo=>{for(const Ai in vo)if(ft$2(vo[Ai]))return!0;return!1};function Or$1(vo,Ai={}){const bo=Array.isArray(vo);if(Te$1(vo)||bo)for(const Ra in vo)Array.isArray(vo[Ra])||Te$1(vo[Ra])&&!Nc(vo[Ra])?(Ai[Ra]=Array.isArray(vo[Ra])?[]:{},Or$1(vo[Ra],Ai[Ra])):Be$2(vo[Ra])||(Ai[Ra]=!0);return Ai}function Ac(vo,Ai,bo){const Ra=Array.isArray(vo);if(Te$1(vo)||Ra)for(const hc in vo)Array.isArray(vo[hc])||Te$1(vo[hc])&&!Nc(vo[hc])?Se$1(Ai)||ua$1(bo[hc])?bo[hc]=Array.isArray(vo[hc])?Or$1(vo[hc],[]):{...Or$1(vo[hc])}:Ac(vo[hc],Be$2(Ai)?{}:Ai[hc],bo[hc]):bo[hc]=!Rt$2(vo[hc],Ai[hc]);return bo}var Cn$2=(vo,Ai)=>Ac(vo,Ai,Or$1(Ai)),Dc=(vo,{valueAsNumber:Ai,valueAsDate:bo,setValueAs:Ra})=>Se$1(vo)?vo:Ai?vo===""?NaN:vo&&+vo:bo&&ht$2(vo)?new Date(vo):Ra?Ra(vo):vo;function No(vo){const Ai=vo.ref;return Fa(Ai)?Ai.files:Va(Ai)?Oc(vo.refs).value:Mc(Ai)?[...Ai.selectedOptions].map(({value:bo})=>bo):qn$1(Ai)?Tc(vo.refs).value:Dc(Se$1(Ai.value)?vo.ref.value:Ai.value,vo)}var kf=(vo,Ai,bo,Ra)=>{const hc={};for(const pc of vo){const mc=B$3(Ai,pc);mc&&ge$2(hc,pc,mc._f)}return{criteriaMode:bo,names:[...vo],fields:hc,shouldUseNativeValidation:Ra}},In$2=vo=>Se$1(vo)?vo:Tr$2(vo)?vo.source:Te$1(vo)?Tr$2(vo.value)?vo.value.source:vo.value:vo;const $i="AsyncFunction";var Ff=vo=>!!vo&&!!vo.validate&&!!(ft$2(vo.validate)&&vo.validate.constructor.name===$i||Te$1(vo.validate)&&Object.values(vo.validate).find(Ai=>Ai.constructor.name===$i)),Vf=vo=>vo.mount&&(vo.required||vo.min||vo.max||vo.maxLength||vo.minLength||vo.pattern||vo.validate);function Ui(vo,Ai,bo){const Ra=B$3(vo,bo);if(Ra||ka(bo))return{error:Ra,name:bo};const hc=bo.split(".");for(;hc.length;){const pc=hc.join("."),mc=B$3(Ai,pc),uf=B$3(vo,pc);if(mc&&!Array.isArray(mc)&&bo!==pc)return{name:bo};if(uf&&uf.type)return{name:pc,error:uf};hc.pop()}return{name:bo}}var Lf=(vo,Ai,bo,Ra,hc)=>hc.isOnAll?!1:!bo&&hc.isOnTouch?!(Ai||vo):(bo?Ra.isOnBlur:hc.isOnBlur)?!vo:(bo?Ra.isOnChange:hc.isOnChange)?vo:!0,$f=(vo,Ai)=>!Xn$1(B$3(vo,Ai)).length&&Oe$2(vo,Ai);const Uf={mode:Je$1.onSubmit,reValidateMode:Je$1.onChange,shouldFocusError:!0};function Hf(vo={}){let Ai={...Uf,...vo},bo={submitCount:0,isDirty:!1,isLoading:ft$2(Ai.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:Ai.errors||{},disabled:Ai.disabled||!1},Ra={},hc=Te$1(Ai.defaultValues)||Te$1(Ai.values)?De$2(Ai.defaultValues||Ai.values)||{}:{},pc=Ai.shouldUnregister?{}:De$2(hc),mc={action:!1,mount:!1,watch:!1},uf={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},df,ff=0;const hf={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},pf={values:Oo(),array:Oo(),state:Oo()},mf=_n$2(Ai.mode),gf=_n$2(Ai.reValidateMode),yf=Ai.criteriaMode===Je$1.all,vf=A1=>L1=>{clearTimeout(ff),ff=setTimeout(A1,L1)},bf=async A1=>{if(!Ai.disabled&&(hf.isValid||A1)){const L1=Ai.resolver?We$2((await d1()).errors):await k1(Ra,!0);L1!==bo.isValid&&pf.state.next({isValid:L1})}},Sf=(A1,L1)=>{!Ai.disabled&&(hf.isValidating||hf.validatingFields)&&((A1||Array.from(uf.mount)).forEach(N1=>{N1&&(L1?ge$2(bo.validatingFields,N1,L1):Oe$2(bo.validatingFields,N1))}),pf.state.next({validatingFields:bo.validatingFields,isValidating:!We$2(bo.validatingFields)}))},xf=(A1,L1=[],N1,l1,u1=!0,$1=!0)=>{if(l1&&N1&&!Ai.disabled){if(mc.action=!0,$1&&Array.isArray(B$3(Ra,A1))){const V1=N1(B$3(Ra,A1),l1.argA,l1.argB);u1&&ge$2(Ra,A1,V1)}if($1&&Array.isArray(B$3(bo.errors,A1))){const V1=N1(B$3(bo.errors,A1),l1.argA,l1.argB);u1&&ge$2(bo.errors,A1,V1),$f(bo.errors,A1)}if(hf.touchedFields&&$1&&Array.isArray(B$3(bo.touchedFields,A1))){const V1=N1(B$3(bo.touchedFields,A1),l1.argA,l1.argB);u1&&ge$2(bo.touchedFields,A1,V1)}hf.dirtyFields&&(bo.dirtyFields=Cn$2(hc,pc)),pf.state.next({name:A1,isDirty:m1(A1,L1),dirtyFields:bo.dirtyFields,errors:bo.errors,isValid:bo.isValid})}else ge$2(pc,A1,L1)},wf=(A1,L1)=>{ge$2(bo.errors,A1,L1),pf.state.next({errors:bo.errors})},Hp=A1=>{bo.errors=A1,pf.state.next({errors:bo.errors,isValid:!1})},If=(A1,L1,N1,l1)=>{const u1=B$3(Ra,A1);if(u1){const $1=B$3(pc,A1,Se$1(N1)?B$3(hc,A1):N1);Se$1($1)||l1&&l1.defaultChecked||L1?ge$2(pc,A1,L1?$1:No(u1._f)):f1(A1,$1),mc.mount&&bf()}},Km=(A1,L1,N1,l1,u1)=>{let $1=!1,V1=!1;const B1={name:A1};if(!Ai.disabled){const Q1=!!(B$3(Ra,A1)&&B$3(Ra,A1)._f&&B$3(Ra,A1)._f.disabled);if(!N1||l1){hf.isDirty&&(V1=bo.isDirty,bo.isDirty=B1.isDirty=m1(),$1=V1!==B1.isDirty);const z1=Q1||Rt$2(B$3(hc,A1),L1);V1=!!(!Q1&&B$3(bo.dirtyFields,A1)),z1||Q1?Oe$2(bo.dirtyFields,A1):ge$2(bo.dirtyFields,A1,!0),B1.dirtyFields=bo.dirtyFields,$1=$1||hf.dirtyFields&&V1!==!z1}if(N1){const z1=B$3(bo.touchedFields,A1);z1||(ge$2(bo.touchedFields,A1,N1),B1.touchedFields=bo.touchedFields,$1=$1||hf.touchedFields&&z1!==N1)}$1&&u1&&pf.state.next(B1)}return $1?B1:{}},s1=(A1,L1,N1,l1)=>{const u1=B$3(bo.errors,A1),$1=hf.isValid&&Qe$2(L1)&&bo.isValid!==L1;if(Ai.delayError&&N1?(df=vf(()=>wf(A1,N1)),df(Ai.delayError)):(clearTimeout(ff),df=null,N1?ge$2(bo.errors,A1,N1):Oe$2(bo.errors,A1)),(N1?!Rt$2(u1,N1):u1)||!We$2(l1)||$1){const V1={...l1,...$1&&Qe$2(L1)?{isValid:L1}:{},errors:bo.errors,name:A1};bo={...bo,...V1},pf.state.next(V1)}},d1=async A1=>{Sf(A1,!0);const L1=await Ai.resolver(pc,Ai.context,kf(A1||uf.mount,Ra,Ai.criteriaMode,Ai.shouldUseNativeValidation));return Sf(A1),L1},O1=async A1=>{const{errors:L1}=await d1(A1);if(A1)for(const N1 of A1){const l1=B$3(L1,N1);l1?ge$2(bo.errors,N1,l1):Oe$2(bo.errors,N1)}else bo.errors=L1;return L1},k1=async(A1,L1,N1={valid:!0})=>{for(const l1 in A1){const u1=A1[l1];if(u1){const{_f:$1,...V1}=u1;if($1){const B1=uf.array.has($1.name),Q1=u1._f&&Ff(u1._f);Q1&&hf.validatingFields&&Sf([l1],!0);const z1=await la$1(u1,uf.disabled,pc,yf,Ai.shouldUseNativeValidation&&!L1,B1);if(Q1&&hf.validatingFields&&Sf([l1]),z1[$1.name]&&(N1.valid=!1,L1))break;!L1&&(B$3(z1,$1.name)?B1?Pc(bo.errors,z1,$1.name):ge$2(bo.errors,$1.name,z1[$1.name]):Oe$2(bo.errors,$1.name))}!We$2(V1)&&await k1(V1,L1,N1)}}return N1.valid},_1=()=>{for(const A1 of uf.unMount){const L1=B$3(Ra,A1);L1&&(L1._f.refs?L1._f.refs.every(N1=>!Mo$1(N1)):!Mo$1(L1._f.ref))&&Z1(A1)}uf.unMount=new Set},m1=(A1,L1)=>!Ai.disabled&&(A1&&L1&&ge$2(pc,A1,L1),!Rt$2(q1(),hc)),R1=(A1,L1,N1)=>Ic(A1,uf,{...mc.mount?pc:Se$1(L1)?hc:ht$2(A1)?{[A1]:L1}:L1},N1,L1),c1=A1=>Xn$1(B$3(mc.mount?pc:hc,A1,Ai.shouldUnregister?B$3(hc,A1,[]):[])),f1=(A1,L1,N1={})=>{const l1=B$3(Ra,A1);let u1=L1;if(l1){const $1=l1._f;$1&&(!$1.disabled&&ge$2(pc,A1,Dc(L1,$1)),u1=Pr$2($1.ref)&&Be$2(L1)?"":L1,Mc($1.ref)?[...$1.ref.options].forEach(V1=>V1.selected=u1.includes(V1.value)):$1.refs?qn$1($1.ref)?$1.refs.length>1?$1.refs.forEach(V1=>(!V1.defaultChecked||!V1.disabled)&&(V1.checked=Array.isArray(u1)?!!u1.find(B1=>B1===V1.value):u1===V1.value)):$1.refs[0]&&($1.refs[0].checked=!!u1):$1.refs.forEach(V1=>V1.checked=V1.value===u1):Fa($1.ref)?$1.ref.value="":($1.ref.value=u1,$1.ref.type||pf.values.next({name:A1,values:{...pc}})))}(N1.shouldDirty||N1.shouldTouch)&&Km(A1,u1,N1.shouldTouch,N1.shouldDirty,!0),N1.shouldValidate&&G1(A1)},E1=(A1,L1,N1)=>{for(const l1 in L1){const u1=L1[l1],$1=`${A1}.${l1}`,V1=B$3(Ra,$1);(uf.array.has(A1)||Te$1(u1)||V1&&!V1._f)&&!Gt$2(u1)?E1($1,u1,N1):f1($1,u1,N1)}},D1=(A1,L1,N1={})=>{const l1=B$3(Ra,A1),u1=uf.array.has(A1),$1=De$2(L1);ge$2(pc,A1,$1),u1?(pf.array.next({name:A1,values:{...pc}}),(hf.isDirty||hf.dirtyFields)&&N1.shouldDirty&&pf.state.next({name:A1,dirtyFields:Cn$2(hc,pc),isDirty:m1(A1,$1)})):l1&&!l1._f&&!Be$2($1)?E1(A1,$1,N1):f1(A1,$1,N1),ca$1(A1,uf)&&pf.state.next({...bo}),pf.values.next({name:mc.mount?A1:void 0,values:{...pc}})},j1=async A1=>{mc.mount=!0;const L1=A1.target;let N1=L1.name,l1=!0;const u1=B$3(Ra,N1),$1=()=>L1.type?No(u1._f):vc(A1),V1=B1=>{l1=Number.isNaN(B1)||Gt$2(B1)&&isNaN(B1.getTime())||Rt$2(B1,B$3(pc,N1,B1))};if(u1){let B1,Q1;const z1=$1(),X1=A1.type===Er$2.BLUR||A1.type===Er$2.FOCUS_OUT,K1=!Vf(u1._f)&&!Ai.resolver&&!B$3(bo.errors,N1)&&!u1._f.deps||Lf(X1,B$3(bo.touchedFields,N1),bo.isSubmitted,gf,mf),rT=ca$1(N1,uf,X1);ge$2(pc,N1,z1),X1?(u1._f.onBlur&&u1._f.onBlur(A1),df&&df(0)):u1._f.onChange&&u1._f.onChange(A1);const lT=Km(N1,z1,X1,!1),uT=!We$2(lT)||rT;if(!X1&&pf.values.next({name:N1,type:A1.type,values:{...pc}}),K1)return hf.isValid&&(Ai.mode==="onBlur"&&X1?bf():X1||bf()),uT&&pf.state.next({name:N1,...rT?{}:lT});if(!X1&&rT&&pf.state.next({...bo}),Ai.resolver){const{errors:aT}=await d1([N1]);if(V1(z1),l1){const fT=Ui(bo.errors,Ra,N1),dT=Ui(aT,Ra,fT.name||N1);B1=dT.error,N1=dT.name,Q1=We$2(aT)}}else Sf([N1],!0),B1=(await la$1(u1,uf.disabled,pc,yf,Ai.shouldUseNativeValidation))[N1],Sf([N1]),V1(z1),l1&&(B1?Q1=!1:hf.isValid&&(Q1=await k1(Ra,!0)));l1&&(u1._f.deps&&G1(u1._f.deps),s1(N1,Q1,B1,lT))}},F1=(A1,L1)=>{if(B$3(bo.errors,L1)&&A1.focus)return A1.focus(),1},G1=async(A1,L1={})=>{let N1,l1;const u1=Ge$2(A1);if(Ai.resolver){const $1=await O1(Se$1(A1)?A1:u1);N1=We$2($1),l1=A1?!u1.some(V1=>B$3($1,V1)):N1}else A1?(l1=(await Promise.all(u1.map(async $1=>{const V1=B$3(Ra,$1);return await k1(V1&&V1._f?{[$1]:V1}:V1)}))).every(Boolean),!(!l1&&!bo.isValid)&&bf()):l1=N1=await k1(Ra);return pf.state.next({...!ht$2(A1)||hf.isValid&&N1!==bo.isValid?{}:{name:A1},...Ai.resolver||!A1?{isValid:N1}:{},errors:bo.errors}),L1.shouldFocus&&!l1&&sn$1(Ra,F1,A1?u1:uf.mount),l1},q1=A1=>{const L1={...mc.mount?pc:hc};return Se$1(A1)?L1:ht$2(A1)?B$3(L1,A1):A1.map(N1=>B$3(L1,N1))},T1=(A1,L1)=>({invalid:!!B$3((L1||bo).errors,A1),isDirty:!!B$3((L1||bo).dirtyFields,A1),error:B$3((L1||bo).errors,A1),isValidating:!!B$3(bo.validatingFields,A1),isTouched:!!B$3((L1||bo).touchedFields,A1)}),M1=A1=>{A1&&Ge$2(A1).forEach(L1=>Oe$2(bo.errors,L1)),pf.state.next({errors:A1?bo.errors:{}})},P1=(A1,L1,N1)=>{const l1=(B$3(Ra,A1,{_f:{}})._f||{}).ref,u1=B$3(bo.errors,A1)||{},{ref:$1,message:V1,type:B1,...Q1}=u1;ge$2(bo.errors,A1,{...Q1,...L1,ref:l1}),pf.state.next({name:A1,errors:bo.errors,isValid:!1}),N1&&N1.shouldFocus&&l1&&l1.focus&&l1.focus()},U1=(A1,L1)=>ft$2(A1)?pf.values.subscribe({next:N1=>A1(R1(void 0,L1),N1)}):R1(A1,L1,!0),Z1=(A1,L1={})=>{for(const N1 of A1?Ge$2(A1):uf.mount)uf.mount.delete(N1),uf.array.delete(N1),L1.keepValue||(Oe$2(Ra,N1),Oe$2(pc,N1)),!L1.keepError&&Oe$2(bo.errors,N1),!L1.keepDirty&&Oe$2(bo.dirtyFields,N1),!L1.keepTouched&&Oe$2(bo.touchedFields,N1),!L1.keepIsValidating&&Oe$2(bo.validatingFields,N1),!Ai.shouldUnregister&&!L1.keepDefaultValue&&Oe$2(hc,N1);pf.values.next({values:{...pc}}),pf.state.next({...bo,...L1.keepDirty?{isDirty:m1()}:{}}),!L1.keepIsValid&&bf()},H1=({disabled:A1,name:L1,field:N1,fields:l1})=>{(Qe$2(A1)&&mc.mount||A1||uf.disabled.has(L1))&&(A1?uf.disabled.add(L1):uf.disabled.delete(L1),Km(L1,No(N1?N1._f:B$3(l1,L1)._f),!1,!1,!0))},Y1=(A1,L1={})=>{let N1=B$3(Ra,A1);const l1=Qe$2(L1.disabled)||Qe$2(Ai.disabled);return ge$2(Ra,A1,{...N1||{},_f:{...N1&&N1._f?N1._f:{ref:{name:A1}},name:A1,mount:!0,...L1}}),uf.mount.add(A1),N1?H1({field:N1,disabled:Qe$2(L1.disabled)?L1.disabled:Ai.disabled,name:A1}):If(A1,!0,L1.value),{...l1?{disabled:L1.disabled||Ai.disabled}:{},...Ai.progressive?{required:!!L1.required,min:In$2(L1.min),max:In$2(L1.max),minLength:In$2(L1.minLength),maxLength:In$2(L1.maxLength),pattern:In$2(L1.pattern)}:{},name:A1,onChange:j1,onBlur:j1,ref:u1=>{if(u1){Y1(A1,L1),N1=B$3(Ra,A1);const $1=Se$1(u1.value)&&u1.querySelectorAll&&u1.querySelectorAll("input,select,textarea")[0]||u1,V1=_f($1),B1=N1._f.refs||[];if(V1?B1.find(Q1=>Q1===$1):$1===N1._f.ref)return;ge$2(Ra,A1,{_f:{...N1._f,...V1?{refs:[...B1.filter(Mo$1),$1,...Array.isArray(B$3(hc,A1))?[{}]:[]],ref:{type:$1.type,name:A1}}:{ref:$1}}}),If(A1,!1,void 0,$1)}else N1=B$3(Ra,A1,{}),N1._f&&(N1._f.mount=!1),(Ai.shouldUnregister||L1.shouldUnregister)&&!(bc(uf.array,A1)&&mc.action)&&uf.unMount.add(A1)}}},J1=()=>Ai.shouldFocusError&&sn$1(Ra,F1,uf.mount),tT=A1=>{Qe$2(A1)&&(pf.state.next({disabled:A1}),sn$1(Ra,(L1,N1)=>{const l1=B$3(Ra,N1);l1&&(L1.disabled=l1._f.disabled||A1,Array.isArray(l1._f.refs)&&l1._f.refs.forEach(u1=>{u1.disabled=l1._f.disabled||A1}))},0,!1))},iT=(A1,L1)=>async N1=>{let l1;N1&&(N1.preventDefault&&N1.preventDefault(),N1.persist&&N1.persist());let u1=De$2(pc);if(uf.disabled.size)for(const $1 of uf.disabled)ge$2(u1,$1,void 0);if(pf.state.next({isSubmitting:!0}),Ai.resolver){const{errors:$1,values:V1}=await d1();bo.errors=$1,u1=V1}else await k1(Ra);if(Oe$2(bo.errors,"root"),We$2(bo.errors)){pf.state.next({errors:{}});try{await A1(u1,N1)}catch($1){l1=$1}}else L1&&await L1({...bo.errors},N1),J1(),setTimeout(J1);if(pf.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:We$2(bo.errors)&&!l1,submitCount:bo.submitCount+1,errors:bo.errors}),l1)throw l1},nT=(A1,L1={})=>{B$3(Ra,A1)&&(Se$1(L1.defaultValue)?D1(A1,De$2(B$3(hc,A1))):(D1(A1,L1.defaultValue),ge$2(hc,A1,De$2(L1.defaultValue))),L1.keepTouched||Oe$2(bo.touchedFields,A1),L1.keepDirty||(Oe$2(bo.dirtyFields,A1),bo.isDirty=L1.defaultValue?m1(A1,De$2(B$3(hc,A1))):m1()),L1.keepError||(Oe$2(bo.errors,A1),hf.isValid&&bf()),pf.state.next({...bo}))},eT=(A1,L1={})=>{const N1=A1?De$2(A1):hc,l1=De$2(N1),u1=We$2(A1),$1=u1?hc:l1;if(L1.keepDefaultValues||(hc=N1),!L1.keepValues){if(L1.keepDirtyValues){const V1=new Set([...uf.mount,...Object.keys(Cn$2(hc,pc))]);for(const B1 of Array.from(V1))B$3(bo.dirtyFields,B1)?ge$2($1,B1,B$3(pc,B1)):D1(B1,B$3($1,B1))}else{if(_a$1&&Se$1(A1))for(const V1 of uf.mount){const B1=B$3(Ra,V1);if(B1&&B1._f){const Q1=Array.isArray(B1._f.refs)?B1._f.refs[0]:B1._f.ref;if(Pr$2(Q1)){const z1=Q1.closest("form");if(z1){z1.reset();break}}}}Ra={}}pc=Ai.shouldUnregister?L1.keepDefaultValues?De$2(hc):{}:De$2($1),pf.array.next({values:{...$1}}),pf.values.next({values:{...$1}})}uf={mount:L1.keepDirtyValues?uf.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},mc.mount=!hf.isValid||!!L1.keepIsValid||!!L1.keepDirtyValues,mc.watch=!!Ai.shouldUnregister,pf.state.next({submitCount:L1.keepSubmitCount?bo.submitCount:0,isDirty:u1?!1:L1.keepDirty?bo.isDirty:!!(L1.keepDefaultValues&&!Rt$2(A1,hc)),isSubmitted:L1.keepIsSubmitted?bo.isSubmitted:!1,dirtyFields:u1?{}:L1.keepDirtyValues?L1.keepDefaultValues&&pc?Cn$2(hc,pc):bo.dirtyFields:L1.keepDefaultValues&&A1?Cn$2(hc,A1):L1.keepDirty?bo.dirtyFields:{},touchedFields:L1.keepTouched?bo.touchedFields:{},errors:L1.keepErrors?bo.errors:{},isSubmitSuccessful:L1.keepIsSubmitSuccessful?bo.isSubmitSuccessful:!1,isSubmitting:!1})},sT=(A1,L1)=>eT(ft$2(A1)?A1(pc):A1,L1);return{control:{register:Y1,unregister:Z1,getFieldState:T1,handleSubmit:iT,setError:P1,_executeSchema:d1,_getWatch:R1,_getDirty:m1,_updateValid:bf,_removeUnmounted:_1,_updateFieldArray:xf,_updateDisabledField:H1,_getFieldArray:c1,_reset:eT,_resetDefaultValues:()=>ft$2(Ai.defaultValues)&&Ai.defaultValues().then(A1=>{sT(A1,Ai.resetOptions),pf.state.next({isLoading:!1})}),_updateFormState:A1=>{bo={...bo,...A1}},_disableForm:tT,_subjects:pf,_proxyFormState:hf,_setErrors:Hp,get _fields(){return Ra},get _formValues(){return pc},get _state(){return mc},set _state(A1){mc=A1},get _defaultValues(){return hc},get _names(){return uf},set _names(A1){uf=A1},get _formState(){return bo},set _formState(A1){bo=A1},get _options(){return Ai},set _options(A1){Ai={...Ai,...A1}}},trigger:G1,register:Y1,handleSubmit:iT,watch:U1,setValue:D1,getValues:q1,reset:sT,resetField:nT,clearErrors:M1,unregister:Z1,setError:P1,setFocus:(A1,L1={})=>{const N1=B$3(Ra,A1),l1=N1&&N1._f;if(l1){const u1=l1.refs?l1.refs[0]:l1.ref;u1.focus&&(u1.focus(),L1.shouldSelect&&ft$2(u1.select)&&u1.select())}},getFieldState:T1}}function Wf(vo={}){const Ai=y__default.useRef(void 0),bo=y__default.useRef(void 0),[Ra,hc]=y__default.useState({isDirty:!1,isValidating:!1,isLoading:ft$2(vo.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:vo.errors||{},disabled:vo.disabled||!1,defaultValues:ft$2(vo.defaultValues)?void 0:vo.defaultValues});Ai.current||(Ai.current={...Hf(vo),formState:Ra});const pc=Ai.current.control;return pc._options=vo,Gr$2({subject:pc._subjects.state,next:mc=>{Sc(mc,pc._proxyFormState,pc._updateFormState,!0)&&hc({...pc._formState})}}),y__default.useEffect(()=>pc._disableForm(vo.disabled),[pc,vo.disabled]),y__default.useEffect(()=>{if(pc._proxyFormState.isDirty){const mc=pc._getDirty();mc!==Ra.isDirty&&pc._subjects.state.next({isDirty:mc})}},[pc,Ra.isDirty]),y__default.useEffect(()=>{vo.values&&!Rt$2(vo.values,bo.current)?(pc._reset(vo.values,pc._options.resetOptions),bo.current=vo.values,hc(mc=>({...mc}))):pc._resetDefaultValues()},[vo.values,pc]),y__default.useEffect(()=>{vo.errors&&pc._setErrors(vo.errors)},[vo.errors,pc]),y__default.useEffect(()=>{pc._state.mount||(pc._updateValid(),pc._state.mount=!0),pc._state.watch&&(pc._state.watch=!1,pc._subjects.state.next({...pc._formState})),pc._removeUnmounted()}),y__default.useEffect(()=>{vo.shouldUnregister&&pc._subjects.values.next({values:pc._getWatch()})},[vo.shouldUnregister,pc]),Ai.current.formState=xc(Ra,pc),Ai.current}function Hi(vo,Ai){if(typeof vo=="function")return vo(Ai);vo!=null&&(vo.current=Ai)}function qr$2(...vo){return Ai=>{let bo=!1;const Ra=vo.map(hc=>{const pc=Hi(hc,Ai);return!bo&&typeof pc=="function"&&(bo=!0),pc});if(bo)return()=>{for(let hc=0;hc<Ra.length;hc++){const pc=Ra[hc];typeof pc=="function"?pc():Hi(vo[hc],null)}}}}function Fe$2(...vo){return y$2.useCallback(qr$2(...vo),vo)}var mn$1=y$2.forwardRef((vo,Ai)=>{const{children:bo,...Ra}=vo,hc=y$2.Children.toArray(bo),pc=hc.find(Bf);if(pc){const mc=pc.props.children,uf=hc.map(df=>df===pc?y$2.Children.count(mc)>1?y$2.Children.only(null):y$2.isValidElement(mc)?mc.props.children:null:df);return jsx(da$1,{...Ra,ref:Ai,children:y$2.isValidElement(mc)?y$2.cloneElement(mc,void 0,uf):null})}return jsx(da$1,{...Ra,ref:Ai,children:bo})});mn$1.displayName="Slot";var da$1=y$2.forwardRef((vo,Ai)=>{const{children:bo,...Ra}=vo;if(y$2.isValidElement(bo)){const hc=jf(bo);return y$2.cloneElement(bo,{...zf(Ra,bo.props),ref:Ai?qr$2(Ai,hc):hc})}return y$2.Children.count(bo)>1?y$2.Children.only(null):null});da$1.displayName="SlotClone";var Rc=({children:vo})=>jsx(Fragment,{children:vo});function Bf(vo){return y$2.isValidElement(vo)&&vo.type===Rc}function zf(vo,Ai){const bo={...Ai};for(const Ra in Ai){const hc=vo[Ra],pc=Ai[Ra];/^on[A-Z]/.test(Ra)?hc&&pc?bo[Ra]=(...mc)=>{pc(...mc),hc(...mc)}:hc&&(bo[Ra]=hc):Ra==="style"?bo[Ra]={...hc,...pc}:Ra==="className"&&(bo[Ra]=[hc,pc].filter(Boolean).join(" "))}return{...vo,...bo}}function jf(vo){var Ai,bo;let Ra=(Ai=Object.getOwnPropertyDescriptor(vo.props,"ref"))==null?void 0:Ai.get,hc=Ra&&"isReactWarning"in Ra&&Ra.isReactWarning;return hc?vo.ref:(Ra=(bo=Object.getOwnPropertyDescriptor(vo,"ref"))==null?void 0:bo.get,hc=Ra&&"isReactWarning"in Ra&&Ra.isReactWarning,hc?vo.props.ref:vo.props.ref||vo.ref)}var Yf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],we$1=Yf.reduce((vo,Ai)=>{const bo=y$2.forwardRef((Ra,hc)=>{const{asChild:pc,...mc}=Ra,uf=pc?mn$1:Ai;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),jsx(uf,{...mc,ref:hc})});return bo.displayName=`Primitive.${Ai}`,{...vo,[Ai]:bo}},{});function _c(vo,Ai){vo&&Ql$1.flushSync(()=>vo.dispatchEvent(Ai))}function kc(vo){var Ai,bo,Ra="";if(typeof vo=="string"||typeof vo=="number")Ra+=vo;else if(typeof vo=="object")if(Array.isArray(vo)){var hc=vo.length;for(Ai=0;Ai<hc;Ai++)vo[Ai]&&(bo=kc(vo[Ai]))&&(Ra&&(Ra+=" "),Ra+=bo)}else for(bo in vo)vo[bo]&&(Ra&&(Ra+=" "),Ra+=bo);return Ra}function h1(){for(var vo,Ai,bo=0,Ra="",hc=arguments.length;bo<hc;bo++)(vo=arguments[bo])&&(Ai=kc(vo))&&(Ra&&(Ra+=" "),Ra+=Ai);return Ra}const La="-",Gf=vo=>{const Ai=Xf(vo),{conflictingClassGroups:bo,conflictingClassGroupModifiers:Ra}=vo;return{getClassGroupId:hc=>{const pc=hc.split(La);return pc[0]===""&&pc.length!==1&&pc.shift(),Fc(pc,Ai)||qf(hc)},getConflictingClassGroupIds:(hc,pc)=>{const mc=bo[hc]||[];return pc&&Ra[hc]?[...mc,...Ra[hc]]:mc}}},Fc=(vo,Ai)=>{var bo;if(vo.length===0)return Ai.classGroupId;const Ra=vo[0],hc=Ai.nextPart.get(Ra),pc=hc?Fc(vo.slice(1),hc):void 0;if(pc)return pc;if(Ai.validators.length===0)return;const mc=vo.join(La);return(bo=Ai.validators.find(({validator:uf})=>uf(mc)))==null?void 0:bo.classGroupId},Wi=/^\[(.+)\]$/,qf=vo=>{if(Wi.test(vo)){const Ai=Wi.exec(vo)[1],bo=Ai==null?void 0:Ai.substring(0,Ai.indexOf(":"));if(bo)return"arbitrary.."+bo}},Xf=vo=>{const{theme:Ai,prefix:bo}=vo,Ra={nextPart:new Map,validators:[]};return Zf(Object.entries(vo.classGroups),bo).forEach(([hc,pc])=>{fa(pc,Ra,hc,Ai)}),Ra},fa=(vo,Ai,bo,Ra)=>{vo.forEach(hc=>{if(typeof hc=="string"){const pc=hc===""?Ai:Bi(Ai,hc);pc.classGroupId=bo;return}if(typeof hc=="function"){if(Kf(hc)){fa(hc(Ra),Ai,bo,Ra);return}Ai.validators.push({validator:hc,classGroupId:bo});return}Object.entries(hc).forEach(([pc,mc])=>{fa(mc,Bi(Ai,pc),bo,Ra)})})},Bi=(vo,Ai)=>{let bo=vo;return Ai.split(La).forEach(Ra=>{bo.nextPart.has(Ra)||bo.nextPart.set(Ra,{nextPart:new Map,validators:[]}),bo=bo.nextPart.get(Ra)}),bo},Kf=vo=>vo.isThemeGetter,Zf=(vo,Ai)=>Ai?vo.map(([bo,Ra])=>{const hc=Ra.map(pc=>typeof pc=="string"?Ai+pc:typeof pc=="object"?Object.fromEntries(Object.entries(pc).map(([mc,uf])=>[Ai+mc,uf])):pc);return[bo,hc]}):vo,Qf=vo=>{if(vo<1)return{get:()=>{},set:()=>{}};let Ai=0,bo=new Map,Ra=new Map;const hc=(pc,mc)=>{bo.set(pc,mc),Ai++,Ai>vo&&(Ai=0,Ra=bo,bo=new Map)};return{get(pc){let mc=bo.get(pc);if(mc!==void 0)return mc;if((mc=Ra.get(pc))!==void 0)return hc(pc,mc),mc},set(pc,mc){bo.has(pc)?bo.set(pc,mc):hc(pc,mc)}}},Vc="!",Jf=vo=>{const{separator:Ai,experimentalParseClassName:bo}=vo,Ra=Ai.length===1,hc=Ai[0],pc=Ai.length,mc=uf=>{const df=[];let ff=0,hf=0,pf;for(let bf=0;bf<uf.length;bf++){let Sf=uf[bf];if(ff===0){if(Sf===hc&&(Ra||uf.slice(bf,bf+pc)===Ai)){df.push(uf.slice(hf,bf)),hf=bf+pc;continue}if(Sf==="/"){pf=bf;continue}}Sf==="["?ff++:Sf==="]"&&ff--}const mf=df.length===0?uf:uf.substring(hf),gf=mf.startsWith(Vc),yf=gf?mf.substring(1):mf,vf=pf&&pf>hf?pf-hf:void 0;return{modifiers:df,hasImportantModifier:gf,baseClassName:yf,maybePostfixModifierPosition:vf}};return bo?uf=>bo({className:uf,parseClassName:mc}):mc},em=vo=>{if(vo.length<=1)return vo;const Ai=[];let bo=[];return vo.forEach(Ra=>{Ra[0]==="["?(Ai.push(...bo.sort(),Ra),bo=[]):bo.push(Ra)}),Ai.push(...bo.sort()),Ai},tm=vo=>({cache:Qf(vo.cacheSize),parseClassName:Jf(vo),...Gf(vo)}),nm=/\s+/,rm$2=(vo,Ai)=>{const{parseClassName:bo,getClassGroupId:Ra,getConflictingClassGroupIds:hc}=Ai,pc=[],mc=vo.trim().split(nm);let uf="";for(let df=mc.length-1;df>=0;df-=1){const ff=mc[df],{modifiers:hf,hasImportantModifier:pf,baseClassName:mf,maybePostfixModifierPosition:gf}=bo(ff);let yf=!!gf,vf=Ra(yf?mf.substring(0,gf):mf);if(!vf){if(!yf){uf=ff+(uf.length>0?" "+uf:uf);continue}if(vf=Ra(mf),!vf){uf=ff+(uf.length>0?" "+uf:uf);continue}yf=!1}const bf=em(hf).join(":"),Sf=pf?bf+Vc:bf,xf=Sf+vf;if(pc.includes(xf))continue;pc.push(xf);const wf=hc(vf,yf);for(let Hp=0;Hp<wf.length;++Hp){const If=wf[Hp];pc.push(Sf+If)}uf=ff+(uf.length>0?" "+uf:uf)}return uf};function Xr$1(){let vo=0,Ai,bo,Ra="";for(;vo<arguments.length;)(Ai=arguments[vo++])&&(bo=Lc(Ai))&&(Ra&&(Ra+=" "),Ra+=bo);return Ra}const Lc=vo=>{if(typeof vo=="string")return vo;let Ai,bo="";for(let Ra=0;Ra<vo.length;Ra++)vo[Ra]&&(Ai=Lc(vo[Ra]))&&(bo&&(bo+=" "),bo+=Ai);return bo};function om(vo,...Ai){let bo,Ra,hc,pc=mc;function mc(df){const ff=Ai.reduce((hf,pf)=>pf(hf),vo());return bo=tm(ff),Ra=bo.cache.get,hc=bo.cache.set,pc=uf,uf(df)}function uf(df){const ff=Ra(df);if(ff)return ff;const hf=rm$2(df,bo);return hc(df,hf),hf}return function(){return pc(Xr$1.apply(null,arguments))}}const xe$1=vo=>{const Ai=bo=>bo[vo]||[];return Ai.isThemeGetter=!0,Ai},$c=/^\[(?:([a-z-]+):)?(.+)\]$/i,am=/^\d+\/\d+$/,im=new Set(["px","full","screen"]),sm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cm=/\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$/,lm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,um=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xt$2=vo=>cn$2(vo)||im.has(vo)||am.test(vo),Ot$1=vo=>vn$2(vo,"length",ym),cn$2=vo=>!!vo&&!Number.isNaN(Number(vo)),Ao=vo=>vn$2(vo,"number",cn$2),En$2=vo=>!!vo&&Number.isInteger(Number(vo)),fm=vo=>vo.endsWith("%")&&cn$2(vo.slice(0,-1)),ie$3=vo=>$c.test(vo),Mt$2=vo=>sm.test(vo),mm=new Set(["length","size","percentage"]),pm=vo=>vn$2(vo,mm,Uc),hm=vo=>vn$2(vo,"position",Uc),gm=new Set(["image","url"]),vm=vo=>vn$2(vo,gm,xm),bm=vo=>vn$2(vo,"",wm),Pn$2=()=>!0,vn$2=(vo,Ai,bo)=>{const Ra=$c.exec(vo);return Ra?Ra[1]?typeof Ai=="string"?Ra[1]===Ai:Ai.has(Ra[1]):bo(Ra[2]):!1},ym=vo=>cm.test(vo)&&!lm.test(vo),Uc=()=>!1,wm=vo=>um.test(vo),xm=vo=>dm.test(vo),Sm=()=>{const vo=xe$1("colors"),Ai=xe$1("spacing"),bo=xe$1("blur"),Ra=xe$1("brightness"),hc=xe$1("borderColor"),pc=xe$1("borderRadius"),mc=xe$1("borderSpacing"),uf=xe$1("borderWidth"),df=xe$1("contrast"),ff=xe$1("grayscale"),hf=xe$1("hueRotate"),pf=xe$1("invert"),mf=xe$1("gap"),gf=xe$1("gradientColorStops"),yf=xe$1("gradientColorStopPositions"),vf=xe$1("inset"),bf=xe$1("margin"),Sf=xe$1("opacity"),xf=xe$1("padding"),wf=xe$1("saturate"),Hp=xe$1("scale"),If=xe$1("sepia"),Km=xe$1("skew"),s1=xe$1("space"),d1=xe$1("translate"),O1=()=>["auto","contain","none"],k1=()=>["auto","hidden","clip","visible","scroll"],_1=()=>["auto",ie$3,Ai],m1=()=>[ie$3,Ai],R1=()=>["",xt$2,Ot$1],c1=()=>["auto",cn$2,ie$3],f1=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],E1=()=>["solid","dashed","dotted","double","none"],D1=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j1=()=>["start","end","center","between","around","evenly","stretch"],F1=()=>["","0",ie$3],G1=()=>["auto","avoid","all","avoid-page","page","left","right","column"],q1=()=>[cn$2,ie$3];return{cacheSize:500,separator:":",theme:{colors:[Pn$2],spacing:[xt$2,Ot$1],blur:["none","",Mt$2,ie$3],brightness:q1(),borderColor:[vo],borderRadius:["none","","full",Mt$2,ie$3],borderSpacing:m1(),borderWidth:R1(),contrast:q1(),grayscale:F1(),hueRotate:q1(),invert:F1(),gap:m1(),gradientColorStops:[vo],gradientColorStopPositions:[fm,Ot$1],inset:_1(),margin:_1(),opacity:q1(),padding:m1(),saturate:q1(),scale:q1(),sepia:F1(),skew:q1(),space:m1(),translate:m1()},classGroups:{aspect:[{aspect:["auto","square","video",ie$3]}],container:["container"],columns:[{columns:[Mt$2]}],"break-after":[{"break-after":G1()}],"break-before":[{"break-before":G1()}],"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"],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:[...f1(),ie$3]}],overflow:[{overflow:k1()}],"overflow-x":[{"overflow-x":k1()}],"overflow-y":[{"overflow-y":k1()}],overscroll:[{overscroll:O1()}],"overscroll-x":[{"overscroll-x":O1()}],"overscroll-y":[{"overscroll-y":O1()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[vf]}],"inset-x":[{"inset-x":[vf]}],"inset-y":[{"inset-y":[vf]}],start:[{start:[vf]}],end:[{end:[vf]}],top:[{top:[vf]}],right:[{right:[vf]}],bottom:[{bottom:[vf]}],left:[{left:[vf]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",En$2,ie$3]}],basis:[{basis:_1()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ie$3]}],grow:[{grow:F1()}],shrink:[{shrink:F1()}],order:[{order:["first","last","none",En$2,ie$3]}],"grid-cols":[{"grid-cols":[Pn$2]}],"col-start-end":[{col:["auto",{span:["full",En$2,ie$3]},ie$3]}],"col-start":[{"col-start":c1()}],"col-end":[{"col-end":c1()}],"grid-rows":[{"grid-rows":[Pn$2]}],"row-start-end":[{row:["auto",{span:[En$2,ie$3]},ie$3]}],"row-start":[{"row-start":c1()}],"row-end":[{"row-end":c1()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ie$3]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ie$3]}],gap:[{gap:[mf]}],"gap-x":[{"gap-x":[mf]}],"gap-y":[{"gap-y":[mf]}],"justify-content":[{justify:["normal",...j1()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j1(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j1(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[xf]}],px:[{px:[xf]}],py:[{py:[xf]}],ps:[{ps:[xf]}],pe:[{pe:[xf]}],pt:[{pt:[xf]}],pr:[{pr:[xf]}],pb:[{pb:[xf]}],pl:[{pl:[xf]}],m:[{m:[bf]}],mx:[{mx:[bf]}],my:[{my:[bf]}],ms:[{ms:[bf]}],me:[{me:[bf]}],mt:[{mt:[bf]}],mr:[{mr:[bf]}],mb:[{mb:[bf]}],ml:[{ml:[bf]}],"space-x":[{"space-x":[s1]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[s1]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ie$3,Ai]}],"min-w":[{"min-w":[ie$3,Ai,"min","max","fit"]}],"max-w":[{"max-w":[ie$3,Ai,"none","full","min","max","fit","prose",{screen:[Mt$2]},Mt$2]}],h:[{h:[ie$3,Ai,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ie$3,Ai,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ie$3,Ai,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ie$3,Ai,"auto","min","max","fit"]}],"font-size":[{text:["base",Mt$2,Ot$1]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ao]}],"font-family":[{font:[Pn$2]}],"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:["tighter","tight","normal","wide","wider","widest",ie$3]}],"line-clamp":[{"line-clamp":["none",cn$2,Ao]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",xt$2,ie$3]}],"list-image":[{"list-image":["none",ie$3]}],"list-style-type":[{list:["none","disc","decimal",ie$3]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[vo]}],"placeholder-opacity":[{"placeholder-opacity":[Sf]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[vo]}],"text-opacity":[{"text-opacity":[Sf]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...E1(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",xt$2,Ot$1]}],"underline-offset":[{"underline-offset":["auto",xt$2,ie$3]}],"text-decoration-color":[{decoration:[vo]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m1()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie$3]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie$3]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[Sf]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...f1(),hm]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",pm]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vm]}],"bg-color":[{bg:[vo]}],"gradient-from-pos":[{from:[yf]}],"gradient-via-pos":[{via:[yf]}],"gradient-to-pos":[{to:[yf]}],"gradient-from":[{from:[gf]}],"gradient-via":[{via:[gf]}],"gradient-to":[{to:[gf]}],rounded:[{rounded:[pc]}],"rounded-s":[{"rounded-s":[pc]}],"rounded-e":[{"rounded-e":[pc]}],"rounded-t":[{"rounded-t":[pc]}],"rounded-r":[{"rounded-r":[pc]}],"rounded-b":[{"rounded-b":[pc]}],"rounded-l":[{"rounded-l":[pc]}],"rounded-ss":[{"rounded-ss":[pc]}],"rounded-se":[{"rounded-se":[pc]}],"rounded-ee":[{"rounded-ee":[pc]}],"rounded-es":[{"rounded-es":[pc]}],"rounded-tl":[{"rounded-tl":[pc]}],"rounded-tr":[{"rounded-tr":[pc]}],"rounded-br":[{"rounded-br":[pc]}],"rounded-bl":[{"rounded-bl":[pc]}],"border-w":[{border:[uf]}],"border-w-x":[{"border-x":[uf]}],"border-w-y":[{"border-y":[uf]}],"border-w-s":[{"border-s":[uf]}],"border-w-e":[{"border-e":[uf]}],"border-w-t":[{"border-t":[uf]}],"border-w-r":[{"border-r":[uf]}],"border-w-b":[{"border-b":[uf]}],"border-w-l":[{"border-l":[uf]}],"border-opacity":[{"border-opacity":[Sf]}],"border-style":[{border:[...E1(),"hidden"]}],"divide-x":[{"divide-x":[uf]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[uf]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[Sf]}],"divide-style":[{divide:E1()}],"border-color":[{border:[hc]}],"border-color-x":[{"border-x":[hc]}],"border-color-y":[{"border-y":[hc]}],"border-color-s":[{"border-s":[hc]}],"border-color-e":[{"border-e":[hc]}],"border-color-t":[{"border-t":[hc]}],"border-color-r":[{"border-r":[hc]}],"border-color-b":[{"border-b":[hc]}],"border-color-l":[{"border-l":[hc]}],"divide-color":[{divide:[hc]}],"outline-style":[{outline:["",...E1()]}],"outline-offset":[{"outline-offset":[xt$2,ie$3]}],"outline-w":[{outline:[xt$2,Ot$1]}],"outline-color":[{outline:[vo]}],"ring-w":[{ring:R1()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[vo]}],"ring-opacity":[{"ring-opacity":[Sf]}],"ring-offset-w":[{"ring-offset":[xt$2,Ot$1]}],"ring-offset-color":[{"ring-offset":[vo]}],shadow:[{shadow:["","inner","none",Mt$2,bm]}],"shadow-color":[{shadow:[Pn$2]}],opacity:[{opacity:[Sf]}],"mix-blend":[{"mix-blend":[...D1(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":D1()}],filter:[{filter:["","none"]}],blur:[{blur:[bo]}],brightness:[{brightness:[Ra]}],contrast:[{contrast:[df]}],"drop-shadow":[{"drop-shadow":["","none",Mt$2,ie$3]}],grayscale:[{grayscale:[ff]}],"hue-rotate":[{"hue-rotate":[hf]}],invert:[{invert:[pf]}],saturate:[{saturate:[wf]}],sepia:[{sepia:[If]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[bo]}],"backdrop-brightness":[{"backdrop-brightness":[Ra]}],"backdrop-contrast":[{"backdrop-contrast":[df]}],"backdrop-grayscale":[{"backdrop-grayscale":[ff]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[hf]}],"backdrop-invert":[{"backdrop-invert":[pf]}],"backdrop-opacity":[{"backdrop-opacity":[Sf]}],"backdrop-saturate":[{"backdrop-saturate":[wf]}],"backdrop-sepia":[{"backdrop-sepia":[If]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[mc]}],"border-spacing-x":[{"border-spacing-x":[mc]}],"border-spacing-y":[{"border-spacing-y":[mc]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ie$3]}],duration:[{duration:q1()}],ease:[{ease:["linear","in","out","in-out",ie$3]}],delay:[{delay:q1()}],animate:[{animate:["none","spin","ping","pulse","bounce",ie$3]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Hp]}],"scale-x":[{"scale-x":[Hp]}],"scale-y":[{"scale-y":[Hp]}],rotate:[{rotate:[En$2,ie$3]}],"translate-x":[{"translate-x":[d1]}],"translate-y":[{"translate-y":[d1]}],"skew-x":[{"skew-x":[Km]}],"skew-y":[{"skew-y":[Km]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ie$3]}],accent:[{accent:["auto",vo]}],appearance:[{appearance:["none","auto"]}],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$3]}],"caret-color":[{caret:[vo]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m1()}],"scroll-mx":[{"scroll-mx":m1()}],"scroll-my":[{"scroll-my":m1()}],"scroll-ms":[{"scroll-ms":m1()}],"scroll-me":[{"scroll-me":m1()}],"scroll-mt":[{"scroll-mt":m1()}],"scroll-mr":[{"scroll-mr":m1()}],"scroll-mb":[{"scroll-mb":m1()}],"scroll-ml":[{"scroll-ml":m1()}],"scroll-p":[{"scroll-p":m1()}],"scroll-px":[{"scroll-px":m1()}],"scroll-py":[{"scroll-py":m1()}],"scroll-ps":[{"scroll-ps":m1()}],"scroll-pe":[{"scroll-pe":m1()}],"scroll-pt":[{"scroll-pt":m1()}],"scroll-pr":[{"scroll-pr":m1()}],"scroll-pb":[{"scroll-pb":m1()}],"scroll-pl":[{"scroll-pl":m1()}],"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$3]}],fill:[{fill:[vo,"none"]}],"stroke-w":[{stroke:[xt$2,Ot$1,Ao]}],stroke:[{stroke:[vo,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},Ne$1=om(Sm),zi=["😀","😂","🤣","😍","😎","😊","🙃","😇","🤔","🥳","🤯","🤗","😱","👻","🎃","🐱","🐶","🐹","🦊","🐻","🐼","🐨","🐯","🦁","🐸","🐵","🐔","🐧","🐦","🐤","🐝","🐞","🐟","🐬","🐳","🦋","🌺","🌸","🌼","🍀"];function Cm(vo){function Ai(Ra){let hc=0;for(let pc=0;pc<Ra.length;pc++){const mc=Ra.charCodeAt(pc);hc=(hc<<5)-hc+mc,hc|=0}return Math.abs(hc)}const bo=Ai(vo);return zi[bo%zi.length]}const Im=vo=>{switch(vo){case"HEART":return"❤️";case"THUMBS_UP":return"👍";case"THUMBS_DOWN":return"👎";case"LAUGH":return"😂";case"CRY":return"😢";default:return"❤️"}},Em=vo=>{switch(vo){case"HEART":return"heart";case"THUMBS_UP":return"thumbsUp";case"THUMBS_DOWN":return"thumbsDown";case"LAUGH":return"laughing";case"CRY":return"cry";default:return"heart"}},Pm=vo=>{switch(vo){case"heart":return"HEART";case"thumbsUp":return"THUMBS_UP";case"thumbsDown":return"THUMBS_DOWN";case"laughing":return"LAUGH";case"cry":return"CRY";default:return"HEART"}},Tm=vo=>(vo||[]).map(Ai=>({emoji:Im(Ai.type),reactedBy:Ai.reactedBy,type:Em(Ai.type)})).filter(Ai=>Ai.reactedBy.length>0),Om=vo=>{const{imgUrl:Ai,userName:bo}=vo;return jsx("div",{style:{width:"40px",height:"40px",borderRadius:"10px",overflow:"hidden",backgroundColor:"#f0f0f0",display:"flex",justifyContent:"center",alignItems:"center"},children:Ai?jsx("img",{alt:"avatar",src:Ai}):jsx("span",{style:{fontSize:"24px"},children:Cm(bo)})})},Mm=vo=>{const{bgColor:Ai,reaction:bo,textColor:Ra,onClick:hc,disabled:pc=!1}=vo;return jsxs("div",{style:{display:"flex",alignItems:"center",userSelect:"none"},children:[jsx("div",{onClick:()=>{!pc&&hc&&hc()},style:{width:"20px",height:"20px",fontSize:"12px",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:Ai,borderRadius:"50%",marginRight:"4px",textAlign:"center",cursor:pc?"default":"pointer"},children:bo.emoji}),jsx("div",{style:{display:"flex",alignItems:"center",fontSize:"12px",color:Ra,fontWeight:"bold"},children:bo.reactedBy.length})]})},Nm=vo=>{const{message:Ai,userName:bo,timestamp:Ra,reactions:hc,isCurrentUser:pc,onClickReaction:mc,disabled:uf=!1}=vo,df=new Date(Ra).toLocaleTimeString(),ff=pc?"#7678ed":"#eeeef8",hf=pc?"#eeeef8":"#cfcff6",pf=pc?"white":"black";return jsxs("div",{style:{display:"flex"},children:[!pc&&jsx("div",{style:{width:"12px",height:"20px",backgroundColor:"#eeeef8",alignSelf:"flex-end"},children:jsx("div",{style:{width:"12px",height:"20px",backgroundColor:"white",borderBottomRightRadius:"40px"}})}),jsxs("div",{style:{backgroundColor:ff,color:pc?"white":"black",display:"flex",flexDirection:"column",padding:"8px",fontSize:"14px",borderRadius:"8px",maxWidth:"600px",borderBottomRightRadius:pc?"0px":"8px",borderBottomLeftRadius:pc?"8px":"0px"},children:[!pc&&jsxs("div",{style:{color:"#36377c",fontSize:"12px",marginBottom:"4px",fontWeight:"bold"},children:[bo,":"]}),jsx("div",{children:Ai}),jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"10px",marginTop:"8px",alignItems:"flex-end",gap:"30px"},children:[jsx("div",{style:{display:"flex",gap:"10px"},children:(hc||[]).map(mf=>jsx(Mm,{bgColor:hf,disabled:uf,onClick:()=>mc&&mc({messageId:vo.id,...mf}),reaction:mf,textColor:pf},mf.type))}),jsx("div",{children:df})]})]}),pc?jsx("div",{style:{width:"12px",height:"20px",backgroundColor:"#7678ed",alignSelf:"flex-end"},children:jsx("div",{style:{width:"12px",height:"20px",backgroundColor:"white",borderBottomLeftRadius:"40px"}})}):null]})};function Am(vo){return vo?typeof vo=="number"?{width:vo.toString()+"px",height:vo.toString()+"px"}:{width:vo,height:vo}:{}}const Dm=(vo,Ai,bo)=>{const Ra=vo[Ai];return Ra?typeof Ra=="function"?Ra():Promise.resolve(Ra):new Promise((hc,pc)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(pc.bind(null,new Error("Unknown variable dynamic import: "+Ai+(Ai.split("/").length!==bo?". Note that variables only represent file names one level deep.":""))))})};function Rm(vo){return jsx("div",{style:{width:vo.width,height:vo.height}})}function _m(vo){try{return lazy(()=>Dm(Object.assign({"../../../assets/icon-components/ArrowFilledRight.tsx":()=>__vitePreload(()=>import("./ArrowFilledRight-blx8xu7X-D3d8PUWh.js"),[]),"../../../assets/icon-components/ArrowLeft.tsx":()=>__vitePreload(()=>import("./ArrowLeft-7pYNK4eX-8ZR_YHAJ.js"),[]),"../../../assets/icon-components/ArrowUp.tsx":()=>__vitePreload(()=>import("./ArrowUp-Bbr_dwo_-C5ppCQo4.js"),[]),"../../../assets/icon-components/BarChart.tsx":()=>__vitePreload(()=>import("./BarChart-B0G05Nfd-CHDJ7OaJ.js"),[]),"../../../assets/icon-components/BaseArrowLeft.tsx":()=>__vitePreload(()=>import("./BaseArrowLeft-DBzhFHMt-Dkbf2sWs.js"),[]),"../../../assets/icon-components/BaseArrowRight.tsx":()=>__vitePreload(()=>import("./BaseArrowRight-DYQTBWAs-CkkPllYm.js"),[]),"../../../assets/icon-components/Braces.tsx":()=>__vitePreload(()=>import("./Braces-N-sH2Zyc-3LcexUsR.js"),[]),"../../../assets/icon-components/Branch.tsx":()=>__vitePreload(()=>import("./Branch-CWdBw1_P-CmGdOXsI.js"),[]),"../../../assets/icon-components/BrickGlobe.tsx":()=>__vitePreload(()=>import("./BrickGlobe-67zaG6_H-DP0By6z_.js"),[]),"../../../assets/icon-components/Briefcase.tsx":()=>__vitePreload(()=>import("./Briefcase-CedW3KRR-DO5_k15F.js"),[]),"../../../assets/icon-components/Calendar.tsx":()=>__vitePreload(()=>import("./Calendar-C-6HV96D-YetudWvP.js"),[]),"../../../assets/icon-components/Caret.tsx":()=>__vitePreload(()=>import("./Caret-Ep0j0fz2-By3ojfim.js"),[]),"../../../assets/icon-components/CaretDown.tsx":()=>__vitePreload(()=>import("./CaretDown-3X7LFYBf-C43xdKg8.js"),[]),"../../../assets/icon-components/CaretSort.tsx":()=>__vitePreload(()=>import("./CaretSort-BkGdLETT-DVOzEEqR.js"),[]),"../../../assets/icon-components/Check.tsx":()=>__vitePreload(()=>import("./Check-DV-U4AEq-B582NMZp.js"),[]),"../../../assets/icon-components/CheckCircle.tsx":()=>__vitePreload(()=>import("./CheckCircle-DI5fEgGd-CVF4LDhR.js"),[]),"../../../assets/icon-components/CheckCircleFill.tsx":()=>__vitePreload(()=>import("./CheckCircleFill-C-F0v5mB-BSW1YMqM.js"),[]),"../../../assets/icon-components/Checkmark.tsx":()=>__vitePreload(()=>import("./Checkmark-BXnfChpo-CyQitGI2.js"),[]),"../../../assets/icon-components/ChevronDown.tsx":()=>__vitePreload(()=>import("./ChevronDown-ouBxrU-k-eUsCPXcB.js"),[]),"../../../assets/icon-components/Circle.tsx":()=>__vitePreload(()=>import("./Circle-n3-Wh4HS-8dOehHQf.js"),[]),"../../../assets/icon-components/CircleInfo.tsx":()=>__vitePreload(()=>import("./CircleInfo-BhZY3C2Q-CZgYK1h2.js"),[]),"../../../assets/icon-components/ClockFill.tsx":()=>__vitePreload(()=>import("./ClockFill-Bd0t48q7-CcfHiJtH.js"),[]),"../../../assets/icon-components/CloudSlash.tsx":()=>__vitePreload(()=>import("./CloudSlash-B-zJBjaD-CxVyp-Ac.js"),[]),"../../../assets/icon-components/Collapse.tsx":()=>__vitePreload(()=>import("./Collapse-DRDB8Czs-CGcuZQgy.js"),[]),"../../../assets/icon-components/Connect.tsx":()=>__vitePreload(()=>import("./Connect-Dme-qfKq-CgniLji8.js"),[]),"../../../assets/icon-components/Discord.tsx":()=>__vitePreload(()=>import("./Discord-CAS0Cj7s-CcsBWpnf.js"),[]),"../../../assets/icon-components/Drive.tsx":()=>__vitePreload(()=>import("./Drive-GMcgBcIY-CzahDx9j.js"),[]),"../../../assets/icon-components/Ellipsis.tsx":()=>__vitePreload(()=>import("./Ellipsis-XK8AwMEC-BuVBeYhB.js"),[]),"../../../assets/icon-components/Error.tsx":()=>__vitePreload(()=>import("./Error-BmIZ2ZUy-CphzuMLn.js"),[]),"../../../assets/icon-components/Exclamation.tsx":()=>__vitePreload(()=>import("./Exclamation-CVsNS_QS-DLccamql.js"),[]),"../../../assets/icon-components/FilesEarmark.tsx":()=>__vitePreload(()=>import("./FilesEarmark-CyrCQy8E-Bhut4E02.js"),[]),"../../../assets/icon-components/FolderClose.tsx":()=>__vitePreload(()=>import("./FolderClose-DG_qHisc-CH6NoBuu.js"),[]),"../../../assets/icon-components/FolderOpen.tsx":()=>__vitePreload(()=>import("./FolderOpen-kDoWFkJO-Cciutkdg.js"),[]),"../../../assets/icon-components/FolderPlus.tsx":()=>__vitePreload(()=>import("./FolderPlus-CSBSl9lZ-CifD0ek9.js"),[]),"../../../assets/icon-components/Forum.tsx":()=>__vitePreload(()=>import("./Forum-DZ-CkLFh-BwabccAX.js"),[]),"../../../assets/icon-components/Gear.tsx":()=>__vitePreload(()=>import("./Gear-cUlHJ4q6-B9R2l_9_.js"),[]),"../../../assets/icon-components/Github.tsx":()=>__vitePreload(()=>import("./Github-0PLiINY0-CjkZIHCO.js"),[]),"../../../assets/icon-components/Globe.tsx":()=>__vitePreload(()=>import("./Globe-CIYqVkpa-CL530H46.js"),[]),"../../../assets/icon-components/GlobeWww.tsx":()=>__vitePreload(()=>import("./GlobeWww-DN4yKujh-Ci7aa5CE.js"),[]),"../../../assets/icon-components/Hdd.tsx":()=>__vitePreload(()=>import("./Hdd-Dn_LdJIh-CJ6x9Bve.js"),[]),"../../../assets/icon-components/History.tsx":()=>__vitePreload(()=>import("./History-BP4SmaS_-P4WBKyqX.js"),[]),"../../../assets/icon-components/InfoSquare.tsx":()=>__vitePreload(()=>import("./InfoSquare-C98JaLiz-yPcGR71f.js"),[]),"../../../assets/icon-components/Link.tsx":()=>__vitePreload(()=>import("./Link-BF7aZjVu-CXIVQOz6.js"),[]),"../../../assets/icon-components/Linkedin.tsx":()=>__vitePreload(()=>import("./Linkedin-DJwIkS6q-Dkb5Tp_Z.js"),[]),"../../../assets/icon-components/Lock.tsx":()=>__vitePreload(()=>import("./Lock-PyaFHdNS-D_qxRTye.js"),[]),"../../../assets/icon-components/M.tsx":()=>__vitePreload(()=>import("./M-DozhhPMY-DBQw97P_.js"),[]),"../../../assets/icon-components/Pencil.tsx":()=>__vitePreload(()=>import("./Pencil-D7lvxXIP-D830iveq.js"),[]),"../../../assets/icon-components/People.tsx":()=>__vitePreload(()=>import("./People-CUB8LYKf-CyJmMqcw.js"),[]),"../../../assets/icon-components/Person.tsx":()=>__vitePreload(()=>import("./Person-DuL4PQzm-ttQR0nPy.js"),[]),"../../../assets/icon-components/Plus.tsx":()=>__vitePreload(()=>import("./Plus-DPFWGJM4-BztpK8li.js"),[]),"../../../assets/icon-components/PlusCircle.tsx":()=>__vitePreload(()=>import("./PlusCircle-BEnWRjHa-w5zztKGx.js"),[]),"../../../assets/icon-components/PowerhouseLogoSmall.tsx":()=>__vitePreload(()=>import("./PowerhouseLogoSmall-CmO95IAS-CDGLkst3.js"),[]),"../../../assets/icon-components/Project.tsx":()=>__vitePreload(()=>import("./Project-BlXuclr0-EsBam9d0.js"),[]),"../../../assets/icon-components/RedoArrow.tsx":()=>__vitePreload(()=>import("./RedoArrow-BJeEsiph-BbidqIFP.js"),[]),"../../../assets/icon-components/Renown.tsx":()=>__vitePreload(()=>import("./Renown-6m7hx37h-CItksi2j.js"),[]),"../../../assets/icon-components/RenownHover.tsx":()=>__vitePreload(()=>import("./RenownHover-CQ0TZHZv-cYQgnwQW.js"),[]),"../../../assets/icon-components/Ring.tsx":()=>__vitePreload(()=>import("./Ring-DKv0gnwT-CDHLz87h.js"),[]),"../../../assets/icon-components/Save.tsx":()=>__vitePreload(()=>import("./Save-BBxj68pn-BkUvn89C.js"),[]),"../../../assets/icon-components/Search.tsx":()=>__vitePreload(()=>import("./Search-YUJuRBLe-CecGUkZA.js"),[]),"../../../assets/icon-components/Server.tsx":()=>__vitePreload(()=>import("./Server-Bfkkjui1-lBan_3Dm.js"),[]),"../../../assets/icon-components/Settings.tsx":()=>__vitePreload(()=>import("./Settings-mbbylBS5-Cca-sV-_.js"),[]),"../../../assets/icon-components/Synced.tsx":()=>__vitePreload(()=>import("./Synced-DKJXzPiw-Cui8pDsS.js"),[]),"../../../assets/icon-components/Syncing.tsx":()=>__vitePreload(()=>import("./Syncing-aT9WSMFf-2VhhyCcX.js"),[]),"../../../assets/icon-components/Trash.tsx":()=>__vitePreload(()=>import("./Trash-CgSbHk-P-DIYkVMER.js"),[]),"../../../assets/icon-components/TrashFill.tsx":()=>__vitePreload(()=>import("./TrashFill-DN50ercb-Oqx67xXN.js"),[]),"../../../assets/icon-components/VariantArrowLeft.tsx":()=>__vitePreload(()=>import("./VariantArrowLeft-CnuX59_e-6Zt_Q3tm.js"),[]),"../../../assets/icon-components/VerticalDots.tsx":()=>__vitePreload(()=>import("./VerticalDots-C8QYf7et-CCxZfvjq.js"),[]),"../../../assets/icon-components/WarningFill.tsx":()=>__vitePreload(()=>import("./WarningFill-WowAvi5P-D5XCckM6.js"),[]),"../../../assets/icon-components/XTwitter.tsx":()=>__vitePreload(()=>import("./XTwitter-k3Pt8itk-mvLk8TKx.js"),[]),"../../../assets/icon-components/Xmark.tsx":()=>__vitePreload(()=>import("./Xmark-8qnJCs2Y-CZ3t0Fap.js"),[]),"../../../assets/icon-components/XmarkLight.tsx":()=>__vitePreload(()=>import("./XmarkLight-GHzDR5_F-CloMvuzt.js"),[]),"../../../assets/icon-components/Youtube.tsx":()=>__vitePreload(()=>import("./Youtube-i8V0IXUU-Bkiwoayp.js"),[])}),`../../../assets/icon-components/${vo}.tsx`,6))}catch(Ai){return console.error(Ai),Rm}}function _e$1({name:vo,size:Ai=24,color:bo,style:Ra,...hc}){const pc=Am(Ai),mc={color:bo,...pc,style:Ra},uf=useMemo(()=>_m(vo),[vo]);return jsx(Suspense,{fallback:jsx("div",{"data-testid":"icon-fallback",style:pc}),name:"icon-component",children:jsx(uf,{...hc,style:mc})})}function ji$1(vo,Ai){var bo=Object.keys(vo);if(Object.getOwnPropertySymbols){var Ra=Object.getOwnPropertySymbols(vo);Ai&&(Ra=Ra.filter(function(hc){return Object.getOwnPropertyDescriptor(vo,hc).enumerable})),bo.push.apply(bo,Ra)}return bo}function te$2(vo){for(var Ai=1;Ai<arguments.length;Ai++){var bo=arguments[Ai]!=null?arguments[Ai]:{};Ai%2?ji$1(Object(bo),!0).forEach(function(Ra){Ir$3(vo,Ra,bo[Ra])}):Object.getOwnPropertyDescriptors?Object.defineProperties(vo,Object.getOwnPropertyDescriptors(bo)):ji$1(Object(bo)).forEach(function(Ra){Object.defineProperty(vo,Ra,Object.getOwnPropertyDescriptor(bo,Ra))})}return vo}function km(vo){if(Array.isArray(vo))return vo}function Fm(vo,Ai){var bo=vo==null?null:typeof Symbol<"u"&&vo[Symbol.iterator]||vo["@@iterator"];if(bo!=null){var Ra,hc,pc,mc,uf=[],df=!0,ff=!1;try{if(pc=(bo=bo.call(vo)).next,Ai===0){if(Object(bo)!==bo)return;df=!1}else for(;!(df=(Ra=pc.call(bo)).done)&&(uf.push(Ra.value),uf.length!==Ai);df=!0);}catch(hf){ff=!0,hc=hf}finally{try{if(!df&&bo.return!=null&&(mc=bo.return(),Object(mc)!==mc))return}finally{if(ff)throw hc}}return uf}}function ma(vo,Ai){(Ai==null||Ai>vo.length)&&(Ai=vo.length);for(var bo=0,Ra=Array(Ai);bo<Ai;bo++)Ra[bo]=vo[bo];return Ra}function Hc(vo,Ai){if(vo){if(typeof vo=="string")return ma(vo,Ai);var bo={}.toString.call(vo).slice(8,-1);return bo==="Object"&&vo.constructor&&(bo=vo.constructor.name),bo==="Map"||bo==="Set"?Array.from(vo):bo==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(bo)?ma(vo,Ai):void 0}}function Vm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/editor-DU-lQtwD.js","assets/main.CnQ6SfYh.js","assets/app-CCIiKpPD.js","assets/app-loader-BfaRR27W.js","assets/app-loader-DoI5W0wZ.css","assets/editor-DsJju1GR.js","assets/editor-BvunQMK4.js","assets/editor-7J_sXwzQ.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as __vitePreload}from"./main.CnQ6SfYh.js";import{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as y$2 from"react";import y__default,{forwardRef,createContext,memo,useCallback,useState,useMemo,Suspense,useRef,useReducer,useEffect,useContext,lazy,useLayoutEffect,Fragment as Fragment$1,Component,useImperativeHandle,useId}from"react";import{a0 as py$1,a1 as JR,a2 as Ir$3,a3 as sr$2,a4 as $$4,x as index,a5 as Hr$3,a6 as K8,a7 as Ci$1,a8 as h$2,a9 as actions,aa as xo$2}from"./app-CCIiKpPD.js";import*as jl$1 from"react-dom";import jl__default,{createPortal}from"react-dom";var yo$1,Ri;function Cf(){if(Ri)return yo$1;Ri=1;var vo="Expected a function",Ai=NaN,bo="[object Symbol]",Ra=/^\s+|\s+$/g,hc=/^[-+]0x[0-9a-f]+$/i,pc=/^0b[01]+$/i,mc=/^0o[0-7]+$/i,uf=parseInt,df=typeof sr$2=="object"&&sr$2&&sr$2.Object===Object&&sr$2,ff=typeof self=="object"&&self&&self.Object===Object&&self,hf=df||ff||Function("return this")(),pf=Object.prototype,mf=pf.toString,gf=Math.max,yf=Math.min,vf=function(){return hf.Date.now()};function bf(If,Km,s1){var d1,O1,k1,_1,m1,R1,c1=0,f1=!1,E1=!1,D1=!0;if(typeof If!="function")throw new TypeError(vo);Km=Hp(Km)||0,Sf(s1)&&(f1=!!s1.leading,E1="maxWait"in s1,k1=E1?gf(Hp(s1.maxWait)||0,Km):k1,D1="trailing"in s1?!!s1.trailing:D1);function j1(H1){var Y1=d1,J1=O1;return d1=O1=void 0,c1=H1,_1=If.apply(J1,Y1),_1}function F1(H1){return c1=H1,m1=setTimeout(T1,Km),f1?j1(H1):_1}function G1(H1){var Y1=H1-R1,J1=H1-c1,tT=Km-Y1;return E1?yf(tT,k1-J1):tT}function q1(H1){var Y1=H1-R1,J1=H1-c1;return R1===void 0||Y1>=Km||Y1<0||E1&&J1>=k1}function T1(){var H1=vf();if(q1(H1))return M1(H1);m1=setTimeout(T1,G1(H1))}function M1(H1){return m1=void 0,D1&&d1?j1(H1):(d1=O1=void 0,_1)}function P1(){m1!==void 0&&clearTimeout(m1),c1=0,d1=R1=O1=m1=void 0}function U1(){return m1===void 0?_1:M1(vf())}function Z1(){var H1=vf(),Y1=q1(H1);if(d1=arguments,O1=this,R1=H1,Y1){if(m1===void 0)return F1(R1);if(E1)return m1=setTimeout(T1,Km),j1(R1)}return m1===void 0&&(m1=setTimeout(T1,Km)),_1}return Z1.cancel=P1,Z1.flush=U1,Z1}function Sf(If){var Km=typeof If;return!!If&&(Km=="object"||Km=="function")}function xf(If){return!!If&&typeof If=="object"}function wf(If){return typeof If=="symbol"||xf(If)&&mf.call(If)==bo}function Hp(If){if(typeof If=="number")return If;if(wf(If))return Ai;if(Sf(If)){var Km=typeof If.valueOf=="function"?If.valueOf():If;If=Sf(Km)?Km+"":Km}if(typeof If!="string")return If===0?If:+If;If=If.replace(Ra,"");var s1=pc.test(If);return s1||mc.test(If)?uf(If.slice(2),s1?2:8):hc.test(If)?Ai:+If}return yo$1=bf,yo$1}Cf();var qn$1=vo=>vo.type==="checkbox",Gt$2=vo=>vo instanceof Date,Be$2=vo=>vo==null;const gc=vo=>typeof vo=="object";var Te$1=vo=>!Be$2(vo)&&!Array.isArray(vo)&&gc(vo)&&!Gt$2(vo),vc=vo=>Te$1(vo)&&vo.target?qn$1(vo.target)?vo.target.checked:vo.target.value:vo,Ef=vo=>vo.substring(0,vo.search(/\.\d+(\.|$)/))||vo,bc=(vo,Ai)=>vo.has(Ef(Ai)),Pf=vo=>{const Ai=vo.constructor&&vo.constructor.prototype;return Te$1(Ai)&&Ai.hasOwnProperty("isPrototypeOf")},_a$1=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function De$2(vo){let Ai;const bo=Array.isArray(vo),Ra=typeof FileList<"u"?vo instanceof FileList:!1;if(vo instanceof Date)Ai=new Date(vo);else if(vo instanceof Set)Ai=new Set(vo);else if(!(_a$1&&(vo instanceof Blob||Ra))&&(bo||Te$1(vo)))if(Ai=bo?[]:{},!bo&&!Pf(vo))Ai=vo;else for(const hc in vo)vo.hasOwnProperty(hc)&&(Ai[hc]=De$2(vo[hc]));else return vo;return Ai}var Xn$1=vo=>Array.isArray(vo)?vo.filter(Boolean):[],Se$1=vo=>vo===void 0,B$3=(vo,Ai,bo)=>{if(!Ai||!Te$1(vo))return bo;const Ra=Xn$1(Ai.split(/[,[\].]+?/)).reduce((hc,pc)=>Be$2(hc)?hc:hc[pc],vo);return Se$1(Ra)||Ra===vo?Se$1(vo[Ai])?bo:vo[Ai]:Ra},Qe$2=vo=>typeof vo=="boolean",ka=vo=>/^\w*$/.test(vo),yc=vo=>Xn$1(vo.replace(/["|']|\]/g,"").split(/\.|\[/)),ge$2=(vo,Ai,bo)=>{let Ra=-1;const hc=ka(Ai)?[Ai]:yc(Ai),pc=hc.length,mc=pc-1;for(;++Ra<pc;){const uf=hc[Ra];let df=bo;if(Ra!==mc){const ff=vo[uf];df=Te$1(ff)||Array.isArray(ff)?ff:isNaN(+hc[Ra+1])?{}:[]}if(uf==="__proto__"||uf==="constructor"||uf==="prototype")return;vo[uf]=df,vo=vo[uf]}return vo};const Er$2={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Je$1={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},wt$2={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},wc=y__default.createContext(null),Yr$2=()=>y__default.useContext(wc),p1=vo=>{const{children:Ai,...bo}=vo;return y__default.createElement(wc.Provider,{value:bo},Ai)};var xc=(vo,Ai,bo,Ra=!0)=>{const hc={defaultValues:Ai._defaultValues};for(const pc in vo)Object.defineProperty(hc,pc,{get:()=>{const mc=pc;return Ai._proxyFormState[mc]!==Je$1.all&&(Ai._proxyFormState[mc]=!Ra||Je$1.all),bo&&(bo[mc]=!0),vo[mc]}});return hc},We$2=vo=>Te$1(vo)&&!Object.keys(vo).length,Sc=(vo,Ai,bo,Ra)=>{bo(vo);const{name:hc,...pc}=vo;return We$2(pc)||Object.keys(pc).length>=Object.keys(Ai).length||Object.keys(pc).find(mc=>Ai[mc]===(!Ra||Je$1.all))},Ge$2=vo=>Array.isArray(vo)?vo:[vo],Cc=(vo,Ai,bo)=>!vo||!Ai||vo===Ai||Ge$2(vo).some(Ra=>Ra&&(bo?Ra===Ai:Ra.startsWith(Ai)||Ai.startsWith(Ra)));function Gr$2(vo){const Ai=y__default.useRef(vo);Ai.current=vo,y__default.useEffect(()=>{const bo=!vo.disabled&&Ai.current.subject&&Ai.current.subject.subscribe({next:Ai.current.next});return()=>{bo&&bo.unsubscribe()}},[vo.disabled])}function Tf(vo){const Ai=Yr$2(),{control:bo=Ai.control,disabled:Ra,name:hc,exact:pc}=vo,[mc,uf]=y__default.useState(bo._formState),df=y__default.useRef(!0),ff=y__default.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),hf=y__default.useRef(hc);return hf.current=hc,Gr$2({disabled:Ra,next:pf=>df.current&&Cc(hf.current,pf.name,pc)&&Sc(pf,ff.current,bo._updateFormState)&&uf({...bo._formState,...pf}),subject:bo._subjects.state}),y__default.useEffect(()=>(df.current=!0,ff.current.isValid&&bo._updateValid(!0),()=>{df.current=!1}),[bo]),y__default.useMemo(()=>xc(mc,bo,ff.current,!1),[mc,bo])}var ht$2=vo=>typeof vo=="string",Ic=(vo,Ai,bo,Ra,hc)=>ht$2(vo)?(Ra&&Ai.watch.add(vo),B$3(bo,vo,hc)):Array.isArray(vo)?vo.map(pc=>(Ra&&Ai.watch.add(pc),B$3(bo,pc))):(Ra&&(Ai.watchAll=!0),bo);function kt$2(vo){const Ai=Yr$2(),{control:bo=Ai.control,name:Ra,defaultValue:hc,disabled:pc,exact:mc}=vo||{},uf=y__default.useRef(Ra);uf.current=Ra,Gr$2({disabled:pc,subject:bo._subjects.values,next:hf=>{Cc(uf.current,hf.name,mc)&&ff(De$2(Ic(uf.current,bo._names,hf.values||bo._formValues,!1,hc)))}});const[df,ff]=y__default.useState(bo._getWatch(Ra,hc));return y__default.useEffect(()=>bo._removeUnmounted()),df}function Of(vo){const Ai=Yr$2(),{name:bo,disabled:Ra,control:hc=Ai.control,shouldUnregister:pc}=vo,mc=bc(hc._names.array,bo),uf=kt$2({control:hc,name:bo,defaultValue:B$3(hc._formValues,bo,B$3(hc._defaultValues,bo,vo.defaultValue)),exact:!0}),df=Tf({control:hc,name:bo,exact:!0}),ff=y__default.useRef(hc.register(bo,{...vo.rules,value:uf,...Qe$2(vo.disabled)?{disabled:vo.disabled}:{}})),hf=y__default.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!B$3(df.errors,bo)},isDirty:{enumerable:!0,get:()=>!!B$3(df.dirtyFields,bo)},isTouched:{enumerable:!0,get:()=>!!B$3(df.touchedFields,bo)},isValidating:{enumerable:!0,get:()=>!!B$3(df.validatingFields,bo)},error:{enumerable:!0,get:()=>B$3(df.errors,bo)}}),[df,bo]),pf=y__default.useMemo(()=>({name:bo,value:uf,...Qe$2(Ra)||df.disabled?{disabled:df.disabled||Ra}:{},onChange:mf=>ff.current.onChange({target:{value:vc(mf),name:bo},type:Er$2.CHANGE}),onBlur:()=>ff.current.onBlur({target:{value:B$3(hc._formValues,bo),name:bo},type:Er$2.BLUR}),ref:mf=>{const gf=B$3(hc._fields,bo);gf&&mf&&(gf._f.ref={focus:()=>mf.focus(),select:()=>mf.select(),setCustomValidity:yf=>mf.setCustomValidity(yf),reportValidity:()=>mf.reportValidity()})}}),[bo,hc._formValues,Ra,df.disabled,uf,hc._fields]);return y__default.useEffect(()=>{const mf=hc._options.shouldUnregister||pc,gf=(yf,vf)=>{const bf=B$3(hc._fields,yf);bf&&bf._f&&(bf._f.mount=vf)};if(gf(bo,!0),mf){const yf=De$2(B$3(hc._options.defaultValues,bo));ge$2(hc._defaultValues,bo,yf),Se$1(B$3(hc._formValues,bo))&&ge$2(hc._formValues,bo,yf)}return!mc&&hc.register(bo),()=>{(mc?mf&&!hc._state.action:mf)?hc.unregister(bo):gf(bo,!1)}},[bo,hc,mc,pc]),y__default.useEffect(()=>{hc._updateDisabledField({disabled:Ra,fields:hc._fields,name:bo})},[Ra,bo,hc]),y__default.useMemo(()=>({field:pf,formState:df,fieldState:hf}),[pf,df,hf])}const Ec=vo=>vo.render(Of(vo));var Mf=(vo,Ai,bo,Ra,hc)=>Ai?{...bo[vo],types:{...bo[vo]&&bo[vo].types?bo[vo].types:{},[Ra]:hc||!0}}:{},Tt$2=()=>{const vo=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,Ai=>{const bo=(Math.random()*16+vo)%16|0;return(Ai=="x"?bo:bo&3|8).toString(16)})},wo=(vo,Ai,bo={})=>bo.shouldFocus||Se$1(bo.shouldFocus)?bo.focusName||`${vo}.${Se$1(bo.focusIndex)?Ai:bo.focusIndex}.`:"",_n$2=vo=>({isOnSubmit:!vo||vo===Je$1.onSubmit,isOnBlur:vo===Je$1.onBlur,isOnChange:vo===Je$1.onChange,isOnAll:vo===Je$1.all,isOnTouch:vo===Je$1.onTouched}),ca$1=(vo,Ai,bo)=>!bo&&(Ai.watchAll||Ai.watch.has(vo)||[...Ai.watch].some(Ra=>vo.startsWith(Ra)&&/^\.\w+/.test(vo.slice(Ra.length))));const sn$1=(vo,Ai,bo,Ra)=>{for(const hc of bo||Object.keys(vo)){const pc=B$3(vo,hc);if(pc){const{_f:mc,...uf}=pc;if(mc){if(mc.refs&&mc.refs[0]&&Ai(mc.refs[0],hc)&&!Ra||mc.ref&&Ai(mc.ref,mc.name)&&!Ra)return!0;if(sn$1(uf,Ai))break}else if(Te$1(uf)&&sn$1(uf,Ai))break}}};var Pc=(vo,Ai,bo)=>{const Ra=Ge$2(B$3(vo,bo));return ge$2(Ra,"root",Ai[bo]),ge$2(vo,bo,Ra),vo},Fa=vo=>vo.type==="file",ft$2=vo=>typeof vo=="function",Pr$2=vo=>{if(!_a$1)return!1;const Ai=vo?vo.ownerDocument:0;return vo instanceof(Ai&&Ai.defaultView?Ai.defaultView.HTMLElement:HTMLElement)},vr$2=vo=>ht$2(vo),Va=vo=>vo.type==="radio",Tr$2=vo=>vo instanceof RegExp;const _i={value:!1,isValid:!1},ki$1={value:!0,isValid:!0};var Tc=vo=>{if(Array.isArray(vo)){if(vo.length>1){const Ai=vo.filter(bo=>bo&&bo.checked&&!bo.disabled).map(bo=>bo.value);return{value:Ai,isValid:!!Ai.length}}return vo[0].checked&&!vo[0].disabled?vo[0].attributes&&!Se$1(vo[0].attributes.value)?Se$1(vo[0].value)||vo[0].value===""?ki$1:{value:vo[0].value,isValid:!0}:ki$1:_i}return _i};const Fi$1={isValid:!1,value:null};var Oc=vo=>Array.isArray(vo)?vo.reduce((Ai,bo)=>bo&&bo.checked&&!bo.disabled?{isValid:!0,value:bo.value}:Ai,Fi$1):Fi$1;function Vi(vo,Ai,bo="validate"){if(vr$2(vo)||Array.isArray(vo)&&vo.every(vr$2)||Qe$2(vo)&&!vo)return{type:bo,message:vr$2(vo)?vo:"",ref:Ai}}var Jt$1=vo=>Te$1(vo)&&!Tr$2(vo)?vo:{value:vo,message:""},la$1=async(vo,Ai,bo,Ra,hc,pc)=>{const{ref:mc,refs:uf,required:df,maxLength:ff,minLength:hf,min:pf,max:mf,pattern:gf,validate:yf,name:vf,valueAsNumber:bf,mount:Sf}=vo._f,xf=B$3(bo,vf);if(!Sf||Ai.has(vf))return{};const wf=uf?uf[0]:mc,Hp=m1=>{hc&&wf.reportValidity&&(wf.setCustomValidity(Qe$2(m1)?"":m1||""),wf.reportValidity())},If={},Km=Va(mc),s1=qn$1(mc),d1=Km||s1,O1=(bf||Fa(mc))&&Se$1(mc.value)&&Se$1(xf)||Pr$2(mc)&&mc.value===""||xf===""||Array.isArray(xf)&&!xf.length,k1=Mf.bind(null,vf,Ra,If),_1=(m1,R1,c1,f1=wt$2.maxLength,E1=wt$2.minLength)=>{const D1=m1?R1:c1;If[vf]={type:m1?f1:E1,message:D1,ref:mc,...k1(m1?f1:E1,D1)}};if(pc?!Array.isArray(xf)||!xf.length:df&&(!d1&&(O1||Be$2(xf))||Qe$2(xf)&&!xf||s1&&!Tc(uf).isValid||Km&&!Oc(uf).isValid)){const{value:m1,message:R1}=vr$2(df)?{value:!!df,message:df}:Jt$1(df);if(m1&&(If[vf]={type:wt$2.required,message:R1,ref:wf,...k1(wt$2.required,R1)},!Ra))return Hp(R1),If}if(!O1&&(!Be$2(pf)||!Be$2(mf))){let m1,R1;const c1=Jt$1(mf),f1=Jt$1(pf);if(!Be$2(xf)&&!isNaN(xf)){const E1=mc.valueAsNumber||xf&&+xf;Be$2(c1.value)||(m1=E1>c1.value),Be$2(f1.value)||(R1=E1<f1.value)}else{const E1=mc.valueAsDate||new Date(xf),D1=G1=>new Date(new Date().toDateString()+" "+G1),j1=mc.type=="time",F1=mc.type=="week";ht$2(c1.value)&&xf&&(m1=j1?D1(xf)>D1(c1.value):F1?xf>c1.value:E1>new Date(c1.value)),ht$2(f1.value)&&xf&&(R1=j1?D1(xf)<D1(f1.value):F1?xf<f1.value:E1<new Date(f1.value))}if((m1||R1)&&(_1(!!m1,c1.message,f1.message,wt$2.max,wt$2.min),!Ra))return Hp(If[vf].message),If}if((ff||hf)&&!O1&&(ht$2(xf)||pc&&Array.isArray(xf))){const m1=Jt$1(ff),R1=Jt$1(hf),c1=!Be$2(m1.value)&&xf.length>+m1.value,f1=!Be$2(R1.value)&&xf.length<+R1.value;if((c1||f1)&&(_1(c1,m1.message,R1.message),!Ra))return Hp(If[vf].message),If}if(gf&&!O1&&ht$2(xf)){const{value:m1,message:R1}=Jt$1(gf);if(Tr$2(m1)&&!xf.match(m1)&&(If[vf]={type:wt$2.pattern,message:R1,ref:mc,...k1(wt$2.pattern,R1)},!Ra))return Hp(R1),If}if(yf){if(ft$2(yf)){const m1=await yf(xf,bo),R1=Vi(m1,wf);if(R1&&(If[vf]={...R1,...k1(wt$2.validate,R1.message)},!Ra))return Hp(R1.message),If}else if(Te$1(yf)){let m1={};for(const R1 in yf){if(!We$2(m1)&&!Ra)break;const c1=Vi(await yf[R1](xf,bo),wf,R1);c1&&(m1={...c1,...k1(R1,c1.message)},Hp(c1.message),Ra&&(If[vf]=m1))}if(!We$2(m1)&&(If[vf]={ref:wf,...m1},!Ra))return If}}return Hp(!0),If},xo$1=(vo,Ai)=>[...vo,...Ge$2(Ai)],So=vo=>Array.isArray(vo)?vo.map(()=>{}):void 0;function Co(vo,Ai,bo){return[...vo.slice(0,Ai),...Ge$2(bo),...vo.slice(Ai)]}var Io=(vo,Ai,bo)=>Array.isArray(vo)?(Se$1(vo[bo])&&(vo[bo]=void 0),vo.splice(bo,0,vo.splice(Ai,1)[0]),vo):[],Eo=(vo,Ai)=>[...Ge$2(Ai),...Ge$2(vo)];function Nf(vo,Ai){let bo=0;const Ra=[...vo];for(const hc of Ai)Ra.splice(hc-bo,1),bo++;return Xn$1(Ra).length?Ra:[]}var Po=(vo,Ai)=>Se$1(Ai)?[]:Nf(vo,Ge$2(Ai).sort((bo,Ra)=>bo-Ra)),To$1=(vo,Ai,bo)=>{[vo[Ai],vo[bo]]=[vo[bo],vo[Ai]]};function Af(vo,Ai){const bo=Ai.slice(0,-1).length;let Ra=0;for(;Ra<bo;)vo=Se$1(vo)?Ra++:vo[Ai[Ra++]];return vo}function Df(vo){for(const Ai in vo)if(vo.hasOwnProperty(Ai)&&!Se$1(vo[Ai]))return!1;return!0}function Oe$2(vo,Ai){const bo=Array.isArray(Ai)?Ai:ka(Ai)?[Ai]:yc(Ai),Ra=bo.length===1?vo:Af(vo,bo),hc=bo.length-1,pc=bo[hc];return Ra&&delete Ra[pc],hc!==0&&(Te$1(Ra)&&We$2(Ra)||Array.isArray(Ra)&&Df(Ra))&&Oe$2(vo,bo.slice(0,-1)),vo}var Li=(vo,Ai,bo)=>(vo[Ai]=bo,vo);function Rf(vo){const Ai=Yr$2(),{control:bo=Ai.control,name:Ra,keyName:hc="id",shouldUnregister:pc,rules:mc}=vo,[uf,df]=y__default.useState(bo._getFieldArray(Ra)),ff=y__default.useRef(bo._getFieldArray(Ra).map(Tt$2)),hf=y__default.useRef(uf),pf=y__default.useRef(Ra),mf=y__default.useRef(!1);pf.current=Ra,hf.current=uf,bo._names.array.add(Ra),mc&&bo.register(Ra,mc),Gr$2({next:({values:Km,name:s1})=>{if(s1===pf.current||!s1){const d1=B$3(Km,pf.current);Array.isArray(d1)&&(df(d1),ff.current=d1.map(Tt$2))}},subject:bo._subjects.array});const gf=y__default.useCallback(Km=>{mf.current=!0,bo._updateFieldArray(Ra,Km)},[bo,Ra]),yf=(Km,s1)=>{const d1=Ge$2(De$2(Km)),O1=xo$1(bo._getFieldArray(Ra),d1);bo._names.focus=wo(Ra,O1.length-1,s1),ff.current=xo$1(ff.current,d1.map(Tt$2)),gf(O1),df(O1),bo._updateFieldArray(Ra,O1,xo$1,{argA:So(Km)})},vf=(Km,s1)=>{const d1=Ge$2(De$2(Km)),O1=Eo(bo._getFieldArray(Ra),d1);bo._names.focus=wo(Ra,0,s1),ff.current=Eo(ff.current,d1.map(Tt$2)),gf(O1),df(O1),bo._updateFieldArray(Ra,O1,Eo,{argA:So(Km)})},bf=Km=>{const s1=Po(bo._getFieldArray(Ra),Km);ff.current=Po(ff.current,Km),gf(s1),df(s1),!Array.isArray(B$3(bo._fields,Ra))&&ge$2(bo._fields,Ra,void 0),bo._updateFieldArray(Ra,s1,Po,{argA:Km})},Sf=(Km,s1,d1)=>{const O1=Ge$2(De$2(s1)),k1=Co(bo._getFieldArray(Ra),Km,O1);bo._names.focus=wo(Ra,Km,d1),ff.current=Co(ff.current,Km,O1.map(Tt$2)),gf(k1),df(k1),bo._updateFieldArray(Ra,k1,Co,{argA:Km,argB:So(s1)})},xf=(Km,s1)=>{const d1=bo._getFieldArray(Ra);To$1(d1,Km,s1),To$1(ff.current,Km,s1),gf(d1),df(d1),bo._updateFieldArray(Ra,d1,To$1,{argA:Km,argB:s1},!1)},wf=(Km,s1)=>{const d1=bo._getFieldArray(Ra);Io(d1,Km,s1),Io(ff.current,Km,s1),gf(d1),df(d1),bo._updateFieldArray(Ra,d1,Io,{argA:Km,argB:s1},!1)},Hp=(Km,s1)=>{const d1=De$2(s1),O1=Li(bo._getFieldArray(Ra),Km,d1);ff.current=[...O1].map((k1,_1)=>!k1||_1===Km?Tt$2():ff.current[_1]),gf(O1),df([...O1]),bo._updateFieldArray(Ra,O1,Li,{argA:Km,argB:d1},!0,!1)},If=Km=>{const s1=Ge$2(De$2(Km));ff.current=s1.map(Tt$2),gf([...s1]),df([...s1]),bo._updateFieldArray(Ra,[...s1],d1=>d1,{},!0,!1)};return y__default.useEffect(()=>{if(bo._state.action=!1,ca$1(Ra,bo._names)&&bo._subjects.state.next({...bo._formState}),mf.current&&(!_n$2(bo._options.mode).isOnSubmit||bo._formState.isSubmitted))if(bo._options.resolver)bo._executeSchema([Ra]).then(Km=>{const s1=B$3(Km.errors,Ra),d1=B$3(bo._formState.errors,Ra);(d1?!s1&&d1.type||s1&&(d1.type!==s1.type||d1.message!==s1.message):s1&&s1.type)&&(s1?ge$2(bo._formState.errors,Ra,s1):Oe$2(bo._formState.errors,Ra),bo._subjects.state.next({errors:bo._formState.errors}))});else{const Km=B$3(bo._fields,Ra);Km&&Km._f&&!(_n$2(bo._options.reValidateMode).isOnSubmit&&_n$2(bo._options.mode).isOnSubmit)&&la$1(Km,bo._names.disabled,bo._formValues,bo._options.criteriaMode===Je$1.all,bo._options.shouldUseNativeValidation,!0).then(s1=>!We$2(s1)&&bo._subjects.state.next({errors:Pc(bo._formState.errors,s1,Ra)}))}bo._subjects.values.next({name:Ra,values:{...bo._formValues}}),bo._names.focus&&sn$1(bo._fields,(Km,s1)=>{if(bo._names.focus&&s1.startsWith(bo._names.focus)&&Km.focus)return Km.focus(),1}),bo._names.focus="",bo._updateValid(),mf.current=!1},[uf,Ra,bo]),y__default.useEffect(()=>(!B$3(bo._formValues,Ra)&&bo._updateFieldArray(Ra),()=>{(bo._options.shouldUnregister||pc)&&bo.unregister(Ra)}),[Ra,bo,hc,pc]),{swap:y__default.useCallback(xf,[gf,Ra,bo]),move:y__default.useCallback(wf,[gf,Ra,bo]),prepend:y__default.useCallback(vf,[gf,Ra,bo]),append:y__default.useCallback(yf,[gf,Ra,bo]),remove:y__default.useCallback(bf,[gf,Ra,bo]),insert:y__default.useCallback(Sf,[gf,Ra,bo]),update:y__default.useCallback(Hp,[gf,Ra,bo]),replace:y__default.useCallback(If,[gf,Ra,bo]),fields:y__default.useMemo(()=>uf.map((Km,s1)=>({...Km,[hc]:ff.current[s1]||Tt$2()})),[uf,hc])}}var Oo=()=>{let vo=[];return{get observers(){return vo},next:Ai=>{for(const bo of vo)bo.next&&bo.next(Ai)},subscribe:Ai=>(vo.push(Ai),{unsubscribe:()=>{vo=vo.filter(bo=>bo!==Ai)}}),unsubscribe:()=>{vo=[]}}},ua$1=vo=>Be$2(vo)||!gc(vo);function Rt$2(vo,Ai){if(ua$1(vo)||ua$1(Ai))return vo===Ai;if(Gt$2(vo)&&Gt$2(Ai))return vo.getTime()===Ai.getTime();const bo=Object.keys(vo),Ra=Object.keys(Ai);if(bo.length!==Ra.length)return!1;for(const hc of bo){const pc=vo[hc];if(!Ra.includes(hc))return!1;if(hc!=="ref"){const mc=Ai[hc];if(Gt$2(pc)&&Gt$2(mc)||Te$1(pc)&&Te$1(mc)||Array.isArray(pc)&&Array.isArray(mc)?!Rt$2(pc,mc):pc!==mc)return!1}}return!0}var Mc=vo=>vo.type==="select-multiple",_f=vo=>Va(vo)||qn$1(vo),Mo$1=vo=>Pr$2(vo)&&vo.isConnected,Nc=vo=>{for(const Ai in vo)if(ft$2(vo[Ai]))return!0;return!1};function Or$1(vo,Ai={}){const bo=Array.isArray(vo);if(Te$1(vo)||bo)for(const Ra in vo)Array.isArray(vo[Ra])||Te$1(vo[Ra])&&!Nc(vo[Ra])?(Ai[Ra]=Array.isArray(vo[Ra])?[]:{},Or$1(vo[Ra],Ai[Ra])):Be$2(vo[Ra])||(Ai[Ra]=!0);return Ai}function Ac(vo,Ai,bo){const Ra=Array.isArray(vo);if(Te$1(vo)||Ra)for(const hc in vo)Array.isArray(vo[hc])||Te$1(vo[hc])&&!Nc(vo[hc])?Se$1(Ai)||ua$1(bo[hc])?bo[hc]=Array.isArray(vo[hc])?Or$1(vo[hc],[]):{...Or$1(vo[hc])}:Ac(vo[hc],Be$2(Ai)?{}:Ai[hc],bo[hc]):bo[hc]=!Rt$2(vo[hc],Ai[hc]);return bo}var Cn$2=(vo,Ai)=>Ac(vo,Ai,Or$1(Ai)),Dc=(vo,{valueAsNumber:Ai,valueAsDate:bo,setValueAs:Ra})=>Se$1(vo)?vo:Ai?vo===""?NaN:vo&&+vo:bo&&ht$2(vo)?new Date(vo):Ra?Ra(vo):vo;function No(vo){const Ai=vo.ref;return Fa(Ai)?Ai.files:Va(Ai)?Oc(vo.refs).value:Mc(Ai)?[...Ai.selectedOptions].map(({value:bo})=>bo):qn$1(Ai)?Tc(vo.refs).value:Dc(Se$1(Ai.value)?vo.ref.value:Ai.value,vo)}var kf=(vo,Ai,bo,Ra)=>{const hc={};for(const pc of vo){const mc=B$3(Ai,pc);mc&&ge$2(hc,pc,mc._f)}return{criteriaMode:bo,names:[...vo],fields:hc,shouldUseNativeValidation:Ra}},In$2=vo=>Se$1(vo)?vo:Tr$2(vo)?vo.source:Te$1(vo)?Tr$2(vo.value)?vo.value.source:vo.value:vo;const $i="AsyncFunction";var Ff=vo=>!!vo&&!!vo.validate&&!!(ft$2(vo.validate)&&vo.validate.constructor.name===$i||Te$1(vo.validate)&&Object.values(vo.validate).find(Ai=>Ai.constructor.name===$i)),Vf=vo=>vo.mount&&(vo.required||vo.min||vo.max||vo.maxLength||vo.minLength||vo.pattern||vo.validate);function Ui(vo,Ai,bo){const Ra=B$3(vo,bo);if(Ra||ka(bo))return{error:Ra,name:bo};const hc=bo.split(".");for(;hc.length;){const pc=hc.join("."),mc=B$3(Ai,pc),uf=B$3(vo,pc);if(mc&&!Array.isArray(mc)&&bo!==pc)return{name:bo};if(uf&&uf.type)return{name:pc,error:uf};hc.pop()}return{name:bo}}var Lf=(vo,Ai,bo,Ra,hc)=>hc.isOnAll?!1:!bo&&hc.isOnTouch?!(Ai||vo):(bo?Ra.isOnBlur:hc.isOnBlur)?!vo:(bo?Ra.isOnChange:hc.isOnChange)?vo:!0,$f=(vo,Ai)=>!Xn$1(B$3(vo,Ai)).length&&Oe$2(vo,Ai);const Uf={mode:Je$1.onSubmit,reValidateMode:Je$1.onChange,shouldFocusError:!0};function Hf(vo={}){let Ai={...Uf,...vo},bo={submitCount:0,isDirty:!1,isLoading:ft$2(Ai.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:Ai.errors||{},disabled:Ai.disabled||!1},Ra={},hc=Te$1(Ai.defaultValues)||Te$1(Ai.values)?De$2(Ai.defaultValues||Ai.values)||{}:{},pc=Ai.shouldUnregister?{}:De$2(hc),mc={action:!1,mount:!1,watch:!1},uf={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},df,ff=0;const hf={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},pf={values:Oo(),array:Oo(),state:Oo()},mf=_n$2(Ai.mode),gf=_n$2(Ai.reValidateMode),yf=Ai.criteriaMode===Je$1.all,vf=A1=>L1=>{clearTimeout(ff),ff=setTimeout(A1,L1)},bf=async A1=>{if(!Ai.disabled&&(hf.isValid||A1)){const L1=Ai.resolver?We$2((await d1()).errors):await k1(Ra,!0);L1!==bo.isValid&&pf.state.next({isValid:L1})}},Sf=(A1,L1)=>{!Ai.disabled&&(hf.isValidating||hf.validatingFields)&&((A1||Array.from(uf.mount)).forEach(N1=>{N1&&(L1?ge$2(bo.validatingFields,N1,L1):Oe$2(bo.validatingFields,N1))}),pf.state.next({validatingFields:bo.validatingFields,isValidating:!We$2(bo.validatingFields)}))},xf=(A1,L1=[],N1,l1,u1=!0,$1=!0)=>{if(l1&&N1&&!Ai.disabled){if(mc.action=!0,$1&&Array.isArray(B$3(Ra,A1))){const V1=N1(B$3(Ra,A1),l1.argA,l1.argB);u1&&ge$2(Ra,A1,V1)}if($1&&Array.isArray(B$3(bo.errors,A1))){const V1=N1(B$3(bo.errors,A1),l1.argA,l1.argB);u1&&ge$2(bo.errors,A1,V1),$f(bo.errors,A1)}if(hf.touchedFields&&$1&&Array.isArray(B$3(bo.touchedFields,A1))){const V1=N1(B$3(bo.touchedFields,A1),l1.argA,l1.argB);u1&&ge$2(bo.touchedFields,A1,V1)}hf.dirtyFields&&(bo.dirtyFields=Cn$2(hc,pc)),pf.state.next({name:A1,isDirty:m1(A1,L1),dirtyFields:bo.dirtyFields,errors:bo.errors,isValid:bo.isValid})}else ge$2(pc,A1,L1)},wf=(A1,L1)=>{ge$2(bo.errors,A1,L1),pf.state.next({errors:bo.errors})},Hp=A1=>{bo.errors=A1,pf.state.next({errors:bo.errors,isValid:!1})},If=(A1,L1,N1,l1)=>{const u1=B$3(Ra,A1);if(u1){const $1=B$3(pc,A1,Se$1(N1)?B$3(hc,A1):N1);Se$1($1)||l1&&l1.defaultChecked||L1?ge$2(pc,A1,L1?$1:No(u1._f)):f1(A1,$1),mc.mount&&bf()}},Km=(A1,L1,N1,l1,u1)=>{let $1=!1,V1=!1;const B1={name:A1};if(!Ai.disabled){const Q1=!!(B$3(Ra,A1)&&B$3(Ra,A1)._f&&B$3(Ra,A1)._f.disabled);if(!N1||l1){hf.isDirty&&(V1=bo.isDirty,bo.isDirty=B1.isDirty=m1(),$1=V1!==B1.isDirty);const z1=Q1||Rt$2(B$3(hc,A1),L1);V1=!!(!Q1&&B$3(bo.dirtyFields,A1)),z1||Q1?Oe$2(bo.dirtyFields,A1):ge$2(bo.dirtyFields,A1,!0),B1.dirtyFields=bo.dirtyFields,$1=$1||hf.dirtyFields&&V1!==!z1}if(N1){const z1=B$3(bo.touchedFields,A1);z1||(ge$2(bo.touchedFields,A1,N1),B1.touchedFields=bo.touchedFields,$1=$1||hf.touchedFields&&z1!==N1)}$1&&u1&&pf.state.next(B1)}return $1?B1:{}},s1=(A1,L1,N1,l1)=>{const u1=B$3(bo.errors,A1),$1=hf.isValid&&Qe$2(L1)&&bo.isValid!==L1;if(Ai.delayError&&N1?(df=vf(()=>wf(A1,N1)),df(Ai.delayError)):(clearTimeout(ff),df=null,N1?ge$2(bo.errors,A1,N1):Oe$2(bo.errors,A1)),(N1?!Rt$2(u1,N1):u1)||!We$2(l1)||$1){const V1={...l1,...$1&&Qe$2(L1)?{isValid:L1}:{},errors:bo.errors,name:A1};bo={...bo,...V1},pf.state.next(V1)}},d1=async A1=>{Sf(A1,!0);const L1=await Ai.resolver(pc,Ai.context,kf(A1||uf.mount,Ra,Ai.criteriaMode,Ai.shouldUseNativeValidation));return Sf(A1),L1},O1=async A1=>{const{errors:L1}=await d1(A1);if(A1)for(const N1 of A1){const l1=B$3(L1,N1);l1?ge$2(bo.errors,N1,l1):Oe$2(bo.errors,N1)}else bo.errors=L1;return L1},k1=async(A1,L1,N1={valid:!0})=>{for(const l1 in A1){const u1=A1[l1];if(u1){const{_f:$1,...V1}=u1;if($1){const B1=uf.array.has($1.name),Q1=u1._f&&Ff(u1._f);Q1&&hf.validatingFields&&Sf([l1],!0);const z1=await la$1(u1,uf.disabled,pc,yf,Ai.shouldUseNativeValidation&&!L1,B1);if(Q1&&hf.validatingFields&&Sf([l1]),z1[$1.name]&&(N1.valid=!1,L1))break;!L1&&(B$3(z1,$1.name)?B1?Pc(bo.errors,z1,$1.name):ge$2(bo.errors,$1.name,z1[$1.name]):Oe$2(bo.errors,$1.name))}!We$2(V1)&&await k1(V1,L1,N1)}}return N1.valid},_1=()=>{for(const A1 of uf.unMount){const L1=B$3(Ra,A1);L1&&(L1._f.refs?L1._f.refs.every(N1=>!Mo$1(N1)):!Mo$1(L1._f.ref))&&Z1(A1)}uf.unMount=new Set},m1=(A1,L1)=>!Ai.disabled&&(A1&&L1&&ge$2(pc,A1,L1),!Rt$2(q1(),hc)),R1=(A1,L1,N1)=>Ic(A1,uf,{...mc.mount?pc:Se$1(L1)?hc:ht$2(A1)?{[A1]:L1}:L1},N1,L1),c1=A1=>Xn$1(B$3(mc.mount?pc:hc,A1,Ai.shouldUnregister?B$3(hc,A1,[]):[])),f1=(A1,L1,N1={})=>{const l1=B$3(Ra,A1);let u1=L1;if(l1){const $1=l1._f;$1&&(!$1.disabled&&ge$2(pc,A1,Dc(L1,$1)),u1=Pr$2($1.ref)&&Be$2(L1)?"":L1,Mc($1.ref)?[...$1.ref.options].forEach(V1=>V1.selected=u1.includes(V1.value)):$1.refs?qn$1($1.ref)?$1.refs.length>1?$1.refs.forEach(V1=>(!V1.defaultChecked||!V1.disabled)&&(V1.checked=Array.isArray(u1)?!!u1.find(B1=>B1===V1.value):u1===V1.value)):$1.refs[0]&&($1.refs[0].checked=!!u1):$1.refs.forEach(V1=>V1.checked=V1.value===u1):Fa($1.ref)?$1.ref.value="":($1.ref.value=u1,$1.ref.type||pf.values.next({name:A1,values:{...pc}})))}(N1.shouldDirty||N1.shouldTouch)&&Km(A1,u1,N1.shouldTouch,N1.shouldDirty,!0),N1.shouldValidate&&G1(A1)},E1=(A1,L1,N1)=>{for(const l1 in L1){const u1=L1[l1],$1=`${A1}.${l1}`,V1=B$3(Ra,$1);(uf.array.has(A1)||Te$1(u1)||V1&&!V1._f)&&!Gt$2(u1)?E1($1,u1,N1):f1($1,u1,N1)}},D1=(A1,L1,N1={})=>{const l1=B$3(Ra,A1),u1=uf.array.has(A1),$1=De$2(L1);ge$2(pc,A1,$1),u1?(pf.array.next({name:A1,values:{...pc}}),(hf.isDirty||hf.dirtyFields)&&N1.shouldDirty&&pf.state.next({name:A1,dirtyFields:Cn$2(hc,pc),isDirty:m1(A1,$1)})):l1&&!l1._f&&!Be$2($1)?E1(A1,$1,N1):f1(A1,$1,N1),ca$1(A1,uf)&&pf.state.next({...bo}),pf.values.next({name:mc.mount?A1:void 0,values:{...pc}})},j1=async A1=>{mc.mount=!0;const L1=A1.target;let N1=L1.name,l1=!0;const u1=B$3(Ra,N1),$1=()=>L1.type?No(u1._f):vc(A1),V1=B1=>{l1=Number.isNaN(B1)||Gt$2(B1)&&isNaN(B1.getTime())||Rt$2(B1,B$3(pc,N1,B1))};if(u1){let B1,Q1;const z1=$1(),X1=A1.type===Er$2.BLUR||A1.type===Er$2.FOCUS_OUT,K1=!Vf(u1._f)&&!Ai.resolver&&!B$3(bo.errors,N1)&&!u1._f.deps||Lf(X1,B$3(bo.touchedFields,N1),bo.isSubmitted,gf,mf),rT=ca$1(N1,uf,X1);ge$2(pc,N1,z1),X1?(u1._f.onBlur&&u1._f.onBlur(A1),df&&df(0)):u1._f.onChange&&u1._f.onChange(A1);const lT=Km(N1,z1,X1,!1),uT=!We$2(lT)||rT;if(!X1&&pf.values.next({name:N1,type:A1.type,values:{...pc}}),K1)return hf.isValid&&(Ai.mode==="onBlur"&&X1?bf():X1||bf()),uT&&pf.state.next({name:N1,...rT?{}:lT});if(!X1&&rT&&pf.state.next({...bo}),Ai.resolver){const{errors:aT}=await d1([N1]);if(V1(z1),l1){const fT=Ui(bo.errors,Ra,N1),dT=Ui(aT,Ra,fT.name||N1);B1=dT.error,N1=dT.name,Q1=We$2(aT)}}else Sf([N1],!0),B1=(await la$1(u1,uf.disabled,pc,yf,Ai.shouldUseNativeValidation))[N1],Sf([N1]),V1(z1),l1&&(B1?Q1=!1:hf.isValid&&(Q1=await k1(Ra,!0)));l1&&(u1._f.deps&&G1(u1._f.deps),s1(N1,Q1,B1,lT))}},F1=(A1,L1)=>{if(B$3(bo.errors,L1)&&A1.focus)return A1.focus(),1},G1=async(A1,L1={})=>{let N1,l1;const u1=Ge$2(A1);if(Ai.resolver){const $1=await O1(Se$1(A1)?A1:u1);N1=We$2($1),l1=A1?!u1.some(V1=>B$3($1,V1)):N1}else A1?(l1=(await Promise.all(u1.map(async $1=>{const V1=B$3(Ra,$1);return await k1(V1&&V1._f?{[$1]:V1}:V1)}))).every(Boolean),!(!l1&&!bo.isValid)&&bf()):l1=N1=await k1(Ra);return pf.state.next({...!ht$2(A1)||hf.isValid&&N1!==bo.isValid?{}:{name:A1},...Ai.resolver||!A1?{isValid:N1}:{},errors:bo.errors}),L1.shouldFocus&&!l1&&sn$1(Ra,F1,A1?u1:uf.mount),l1},q1=A1=>{const L1={...mc.mount?pc:hc};return Se$1(A1)?L1:ht$2(A1)?B$3(L1,A1):A1.map(N1=>B$3(L1,N1))},T1=(A1,L1)=>({invalid:!!B$3((L1||bo).errors,A1),isDirty:!!B$3((L1||bo).dirtyFields,A1),error:B$3((L1||bo).errors,A1),isValidating:!!B$3(bo.validatingFields,A1),isTouched:!!B$3((L1||bo).touchedFields,A1)}),M1=A1=>{A1&&Ge$2(A1).forEach(L1=>Oe$2(bo.errors,L1)),pf.state.next({errors:A1?bo.errors:{}})},P1=(A1,L1,N1)=>{const l1=(B$3(Ra,A1,{_f:{}})._f||{}).ref,u1=B$3(bo.errors,A1)||{},{ref:$1,message:V1,type:B1,...Q1}=u1;ge$2(bo.errors,A1,{...Q1,...L1,ref:l1}),pf.state.next({name:A1,errors:bo.errors,isValid:!1}),N1&&N1.shouldFocus&&l1&&l1.focus&&l1.focus()},U1=(A1,L1)=>ft$2(A1)?pf.values.subscribe({next:N1=>A1(R1(void 0,L1),N1)}):R1(A1,L1,!0),Z1=(A1,L1={})=>{for(const N1 of A1?Ge$2(A1):uf.mount)uf.mount.delete(N1),uf.array.delete(N1),L1.keepValue||(Oe$2(Ra,N1),Oe$2(pc,N1)),!L1.keepError&&Oe$2(bo.errors,N1),!L1.keepDirty&&Oe$2(bo.dirtyFields,N1),!L1.keepTouched&&Oe$2(bo.touchedFields,N1),!L1.keepIsValidating&&Oe$2(bo.validatingFields,N1),!Ai.shouldUnregister&&!L1.keepDefaultValue&&Oe$2(hc,N1);pf.values.next({values:{...pc}}),pf.state.next({...bo,...L1.keepDirty?{isDirty:m1()}:{}}),!L1.keepIsValid&&bf()},H1=({disabled:A1,name:L1,field:N1,fields:l1})=>{(Qe$2(A1)&&mc.mount||A1||uf.disabled.has(L1))&&(A1?uf.disabled.add(L1):uf.disabled.delete(L1),Km(L1,No(N1?N1._f:B$3(l1,L1)._f),!1,!1,!0))},Y1=(A1,L1={})=>{let N1=B$3(Ra,A1);const l1=Qe$2(L1.disabled)||Qe$2(Ai.disabled);return ge$2(Ra,A1,{...N1||{},_f:{...N1&&N1._f?N1._f:{ref:{name:A1}},name:A1,mount:!0,...L1}}),uf.mount.add(A1),N1?H1({field:N1,disabled:Qe$2(L1.disabled)?L1.disabled:Ai.disabled,name:A1}):If(A1,!0,L1.value),{...l1?{disabled:L1.disabled||Ai.disabled}:{},...Ai.progressive?{required:!!L1.required,min:In$2(L1.min),max:In$2(L1.max),minLength:In$2(L1.minLength),maxLength:In$2(L1.maxLength),pattern:In$2(L1.pattern)}:{},name:A1,onChange:j1,onBlur:j1,ref:u1=>{if(u1){Y1(A1,L1),N1=B$3(Ra,A1);const $1=Se$1(u1.value)&&u1.querySelectorAll&&u1.querySelectorAll("input,select,textarea")[0]||u1,V1=_f($1),B1=N1._f.refs||[];if(V1?B1.find(Q1=>Q1===$1):$1===N1._f.ref)return;ge$2(Ra,A1,{_f:{...N1._f,...V1?{refs:[...B1.filter(Mo$1),$1,...Array.isArray(B$3(hc,A1))?[{}]:[]],ref:{type:$1.type,name:A1}}:{ref:$1}}}),If(A1,!1,void 0,$1)}else N1=B$3(Ra,A1,{}),N1._f&&(N1._f.mount=!1),(Ai.shouldUnregister||L1.shouldUnregister)&&!(bc(uf.array,A1)&&mc.action)&&uf.unMount.add(A1)}}},J1=()=>Ai.shouldFocusError&&sn$1(Ra,F1,uf.mount),tT=A1=>{Qe$2(A1)&&(pf.state.next({disabled:A1}),sn$1(Ra,(L1,N1)=>{const l1=B$3(Ra,N1);l1&&(L1.disabled=l1._f.disabled||A1,Array.isArray(l1._f.refs)&&l1._f.refs.forEach(u1=>{u1.disabled=l1._f.disabled||A1}))},0,!1))},iT=(A1,L1)=>async N1=>{let l1;N1&&(N1.preventDefault&&N1.preventDefault(),N1.persist&&N1.persist());let u1=De$2(pc);if(uf.disabled.size)for(const $1 of uf.disabled)ge$2(u1,$1,void 0);if(pf.state.next({isSubmitting:!0}),Ai.resolver){const{errors:$1,values:V1}=await d1();bo.errors=$1,u1=V1}else await k1(Ra);if(Oe$2(bo.errors,"root"),We$2(bo.errors)){pf.state.next({errors:{}});try{await A1(u1,N1)}catch($1){l1=$1}}else L1&&await L1({...bo.errors},N1),J1(),setTimeout(J1);if(pf.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:We$2(bo.errors)&&!l1,submitCount:bo.submitCount+1,errors:bo.errors}),l1)throw l1},nT=(A1,L1={})=>{B$3(Ra,A1)&&(Se$1(L1.defaultValue)?D1(A1,De$2(B$3(hc,A1))):(D1(A1,L1.defaultValue),ge$2(hc,A1,De$2(L1.defaultValue))),L1.keepTouched||Oe$2(bo.touchedFields,A1),L1.keepDirty||(Oe$2(bo.dirtyFields,A1),bo.isDirty=L1.defaultValue?m1(A1,De$2(B$3(hc,A1))):m1()),L1.keepError||(Oe$2(bo.errors,A1),hf.isValid&&bf()),pf.state.next({...bo}))},eT=(A1,L1={})=>{const N1=A1?De$2(A1):hc,l1=De$2(N1),u1=We$2(A1),$1=u1?hc:l1;if(L1.keepDefaultValues||(hc=N1),!L1.keepValues){if(L1.keepDirtyValues){const V1=new Set([...uf.mount,...Object.keys(Cn$2(hc,pc))]);for(const B1 of Array.from(V1))B$3(bo.dirtyFields,B1)?ge$2($1,B1,B$3(pc,B1)):D1(B1,B$3($1,B1))}else{if(_a$1&&Se$1(A1))for(const V1 of uf.mount){const B1=B$3(Ra,V1);if(B1&&B1._f){const Q1=Array.isArray(B1._f.refs)?B1._f.refs[0]:B1._f.ref;if(Pr$2(Q1)){const z1=Q1.closest("form");if(z1){z1.reset();break}}}}Ra={}}pc=Ai.shouldUnregister?L1.keepDefaultValues?De$2(hc):{}:De$2($1),pf.array.next({values:{...$1}}),pf.values.next({values:{...$1}})}uf={mount:L1.keepDirtyValues?uf.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},mc.mount=!hf.isValid||!!L1.keepIsValid||!!L1.keepDirtyValues,mc.watch=!!Ai.shouldUnregister,pf.state.next({submitCount:L1.keepSubmitCount?bo.submitCount:0,isDirty:u1?!1:L1.keepDirty?bo.isDirty:!!(L1.keepDefaultValues&&!Rt$2(A1,hc)),isSubmitted:L1.keepIsSubmitted?bo.isSubmitted:!1,dirtyFields:u1?{}:L1.keepDirtyValues?L1.keepDefaultValues&&pc?Cn$2(hc,pc):bo.dirtyFields:L1.keepDefaultValues&&A1?Cn$2(hc,A1):L1.keepDirty?bo.dirtyFields:{},touchedFields:L1.keepTouched?bo.touchedFields:{},errors:L1.keepErrors?bo.errors:{},isSubmitSuccessful:L1.keepIsSubmitSuccessful?bo.isSubmitSuccessful:!1,isSubmitting:!1})},sT=(A1,L1)=>eT(ft$2(A1)?A1(pc):A1,L1);return{control:{register:Y1,unregister:Z1,getFieldState:T1,handleSubmit:iT,setError:P1,_executeSchema:d1,_getWatch:R1,_getDirty:m1,_updateValid:bf,_removeUnmounted:_1,_updateFieldArray:xf,_updateDisabledField:H1,_getFieldArray:c1,_reset:eT,_resetDefaultValues:()=>ft$2(Ai.defaultValues)&&Ai.defaultValues().then(A1=>{sT(A1,Ai.resetOptions),pf.state.next({isLoading:!1})}),_updateFormState:A1=>{bo={...bo,...A1}},_disableForm:tT,_subjects:pf,_proxyFormState:hf,_setErrors:Hp,get _fields(){return Ra},get _formValues(){return pc},get _state(){return mc},set _state(A1){mc=A1},get _defaultValues(){return hc},get _names(){return uf},set _names(A1){uf=A1},get _formState(){return bo},set _formState(A1){bo=A1},get _options(){return Ai},set _options(A1){Ai={...Ai,...A1}}},trigger:G1,register:Y1,handleSubmit:iT,watch:U1,setValue:D1,getValues:q1,reset:sT,resetField:nT,clearErrors:M1,unregister:Z1,setError:P1,setFocus:(A1,L1={})=>{const N1=B$3(Ra,A1),l1=N1&&N1._f;if(l1){const u1=l1.refs?l1.refs[0]:l1.ref;u1.focus&&(u1.focus(),L1.shouldSelect&&ft$2(u1.select)&&u1.select())}},getFieldState:T1}}function Wf(vo={}){const Ai=y__default.useRef(void 0),bo=y__default.useRef(void 0),[Ra,hc]=y__default.useState({isDirty:!1,isValidating:!1,isLoading:ft$2(vo.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:vo.errors||{},disabled:vo.disabled||!1,defaultValues:ft$2(vo.defaultValues)?void 0:vo.defaultValues});Ai.current||(Ai.current={...Hf(vo),formState:Ra});const pc=Ai.current.control;return pc._options=vo,Gr$2({subject:pc._subjects.state,next:mc=>{Sc(mc,pc._proxyFormState,pc._updateFormState,!0)&&hc({...pc._formState})}}),y__default.useEffect(()=>pc._disableForm(vo.disabled),[pc,vo.disabled]),y__default.useEffect(()=>{if(pc._proxyFormState.isDirty){const mc=pc._getDirty();mc!==Ra.isDirty&&pc._subjects.state.next({isDirty:mc})}},[pc,Ra.isDirty]),y__default.useEffect(()=>{vo.values&&!Rt$2(vo.values,bo.current)?(pc._reset(vo.values,pc._options.resetOptions),bo.current=vo.values,hc(mc=>({...mc}))):pc._resetDefaultValues()},[vo.values,pc]),y__default.useEffect(()=>{vo.errors&&pc._setErrors(vo.errors)},[vo.errors,pc]),y__default.useEffect(()=>{pc._state.mount||(pc._updateValid(),pc._state.mount=!0),pc._state.watch&&(pc._state.watch=!1,pc._subjects.state.next({...pc._formState})),pc._removeUnmounted()}),y__default.useEffect(()=>{vo.shouldUnregister&&pc._subjects.values.next({values:pc._getWatch()})},[vo.shouldUnregister,pc]),Ai.current.formState=xc(Ra,pc),Ai.current}function Hi(vo,Ai){if(typeof vo=="function")return vo(Ai);vo!=null&&(vo.current=Ai)}function qr$2(...vo){return Ai=>{let bo=!1;const Ra=vo.map(hc=>{const pc=Hi(hc,Ai);return!bo&&typeof pc=="function"&&(bo=!0),pc});if(bo)return()=>{for(let hc=0;hc<Ra.length;hc++){const pc=Ra[hc];typeof pc=="function"?pc():Hi(vo[hc],null)}}}}function Fe$2(...vo){return y$2.useCallback(qr$2(...vo),vo)}var mn$1=y$2.forwardRef((vo,Ai)=>{const{children:bo,...Ra}=vo,hc=y$2.Children.toArray(bo),pc=hc.find(Bf);if(pc){const mc=pc.props.children,uf=hc.map(df=>df===pc?y$2.Children.count(mc)>1?y$2.Children.only(null):y$2.isValidElement(mc)?mc.props.children:null:df);return jsx(da$1,{...Ra,ref:Ai,children:y$2.isValidElement(mc)?y$2.cloneElement(mc,void 0,uf):null})}return jsx(da$1,{...Ra,ref:Ai,children:bo})});mn$1.displayName="Slot";var da$1=y$2.forwardRef((vo,Ai)=>{const{children:bo,...Ra}=vo;if(y$2.isValidElement(bo)){const hc=jf(bo);return y$2.cloneElement(bo,{...zf(Ra,bo.props),ref:Ai?qr$2(Ai,hc):hc})}return y$2.Children.count(bo)>1?y$2.Children.only(null):null});da$1.displayName="SlotClone";var Rc=({children:vo})=>jsx(Fragment,{children:vo});function Bf(vo){return y$2.isValidElement(vo)&&vo.type===Rc}function zf(vo,Ai){const bo={...Ai};for(const Ra in Ai){const hc=vo[Ra],pc=Ai[Ra];/^on[A-Z]/.test(Ra)?hc&&pc?bo[Ra]=(...mc)=>{pc(...mc),hc(...mc)}:hc&&(bo[Ra]=hc):Ra==="style"?bo[Ra]={...hc,...pc}:Ra==="className"&&(bo[Ra]=[hc,pc].filter(Boolean).join(" "))}return{...vo,...bo}}function jf(vo){var Ai,bo;let Ra=(Ai=Object.getOwnPropertyDescriptor(vo.props,"ref"))==null?void 0:Ai.get,hc=Ra&&"isReactWarning"in Ra&&Ra.isReactWarning;return hc?vo.ref:(Ra=(bo=Object.getOwnPropertyDescriptor(vo,"ref"))==null?void 0:bo.get,hc=Ra&&"isReactWarning"in Ra&&Ra.isReactWarning,hc?vo.props.ref:vo.props.ref||vo.ref)}var Yf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],we$1=Yf.reduce((vo,Ai)=>{const bo=y$2.forwardRef((Ra,hc)=>{const{asChild:pc,...mc}=Ra,uf=pc?mn$1:Ai;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),jsx(uf,{...mc,ref:hc})});return bo.displayName=`Primitive.${Ai}`,{...vo,[Ai]:bo}},{});function _c(vo,Ai){vo&&jl$1.flushSync(()=>vo.dispatchEvent(Ai))}function kc(vo){var Ai,bo,Ra="";if(typeof vo=="string"||typeof vo=="number")Ra+=vo;else if(typeof vo=="object")if(Array.isArray(vo)){var hc=vo.length;for(Ai=0;Ai<hc;Ai++)vo[Ai]&&(bo=kc(vo[Ai]))&&(Ra&&(Ra+=" "),Ra+=bo)}else for(bo in vo)vo[bo]&&(Ra&&(Ra+=" "),Ra+=bo);return Ra}function h1(){for(var vo,Ai,bo=0,Ra="",hc=arguments.length;bo<hc;bo++)(vo=arguments[bo])&&(Ai=kc(vo))&&(Ra&&(Ra+=" "),Ra+=Ai);return Ra}const La="-",Gf=vo=>{const Ai=Xf(vo),{conflictingClassGroups:bo,conflictingClassGroupModifiers:Ra}=vo;return{getClassGroupId:hc=>{const pc=hc.split(La);return pc[0]===""&&pc.length!==1&&pc.shift(),Fc(pc,Ai)||qf(hc)},getConflictingClassGroupIds:(hc,pc)=>{const mc=bo[hc]||[];return pc&&Ra[hc]?[...mc,...Ra[hc]]:mc}}},Fc=(vo,Ai)=>{var bo;if(vo.length===0)return Ai.classGroupId;const Ra=vo[0],hc=Ai.nextPart.get(Ra),pc=hc?Fc(vo.slice(1),hc):void 0;if(pc)return pc;if(Ai.validators.length===0)return;const mc=vo.join(La);return(bo=Ai.validators.find(({validator:uf})=>uf(mc)))==null?void 0:bo.classGroupId},Wi=/^\[(.+)\]$/,qf=vo=>{if(Wi.test(vo)){const Ai=Wi.exec(vo)[1],bo=Ai==null?void 0:Ai.substring(0,Ai.indexOf(":"));if(bo)return"arbitrary.."+bo}},Xf=vo=>{const{theme:Ai,prefix:bo}=vo,Ra={nextPart:new Map,validators:[]};return Zf(Object.entries(vo.classGroups),bo).forEach(([hc,pc])=>{fa(pc,Ra,hc,Ai)}),Ra},fa=(vo,Ai,bo,Ra)=>{vo.forEach(hc=>{if(typeof hc=="string"){const pc=hc===""?Ai:Bi(Ai,hc);pc.classGroupId=bo;return}if(typeof hc=="function"){if(Kf(hc)){fa(hc(Ra),Ai,bo,Ra);return}Ai.validators.push({validator:hc,classGroupId:bo});return}Object.entries(hc).forEach(([pc,mc])=>{fa(mc,Bi(Ai,pc),bo,Ra)})})},Bi=(vo,Ai)=>{let bo=vo;return Ai.split(La).forEach(Ra=>{bo.nextPart.has(Ra)||bo.nextPart.set(Ra,{nextPart:new Map,validators:[]}),bo=bo.nextPart.get(Ra)}),bo},Kf=vo=>vo.isThemeGetter,Zf=(vo,Ai)=>Ai?vo.map(([bo,Ra])=>{const hc=Ra.map(pc=>typeof pc=="string"?Ai+pc:typeof pc=="object"?Object.fromEntries(Object.entries(pc).map(([mc,uf])=>[Ai+mc,uf])):pc);return[bo,hc]}):vo,Qf=vo=>{if(vo<1)return{get:()=>{},set:()=>{}};let Ai=0,bo=new Map,Ra=new Map;const hc=(pc,mc)=>{bo.set(pc,mc),Ai++,Ai>vo&&(Ai=0,Ra=bo,bo=new Map)};return{get(pc){let mc=bo.get(pc);if(mc!==void 0)return mc;if((mc=Ra.get(pc))!==void 0)return hc(pc,mc),mc},set(pc,mc){bo.has(pc)?bo.set(pc,mc):hc(pc,mc)}}},Vc="!",Jf=vo=>{const{separator:Ai,experimentalParseClassName:bo}=vo,Ra=Ai.length===1,hc=Ai[0],pc=Ai.length,mc=uf=>{const df=[];let ff=0,hf=0,pf;for(let bf=0;bf<uf.length;bf++){let Sf=uf[bf];if(ff===0){if(Sf===hc&&(Ra||uf.slice(bf,bf+pc)===Ai)){df.push(uf.slice(hf,bf)),hf=bf+pc;continue}if(Sf==="/"){pf=bf;continue}}Sf==="["?ff++:Sf==="]"&&ff--}const mf=df.length===0?uf:uf.substring(hf),gf=mf.startsWith(Vc),yf=gf?mf.substring(1):mf,vf=pf&&pf>hf?pf-hf:void 0;return{modifiers:df,hasImportantModifier:gf,baseClassName:yf,maybePostfixModifierPosition:vf}};return bo?uf=>bo({className:uf,parseClassName:mc}):mc},em=vo=>{if(vo.length<=1)return vo;const Ai=[];let bo=[];return vo.forEach(Ra=>{Ra[0]==="["?(Ai.push(...bo.sort(),Ra),bo=[]):bo.push(Ra)}),Ai.push(...bo.sort()),Ai},tm=vo=>({cache:Qf(vo.cacheSize),parseClassName:Jf(vo),...Gf(vo)}),nm=/\s+/,rm$2=(vo,Ai)=>{const{parseClassName:bo,getClassGroupId:Ra,getConflictingClassGroupIds:hc}=Ai,pc=[],mc=vo.trim().split(nm);let uf="";for(let df=mc.length-1;df>=0;df-=1){const ff=mc[df],{modifiers:hf,hasImportantModifier:pf,baseClassName:mf,maybePostfixModifierPosition:gf}=bo(ff);let yf=!!gf,vf=Ra(yf?mf.substring(0,gf):mf);if(!vf){if(!yf){uf=ff+(uf.length>0?" "+uf:uf);continue}if(vf=Ra(mf),!vf){uf=ff+(uf.length>0?" "+uf:uf);continue}yf=!1}const bf=em(hf).join(":"),Sf=pf?bf+Vc:bf,xf=Sf+vf;if(pc.includes(xf))continue;pc.push(xf);const wf=hc(vf,yf);for(let Hp=0;Hp<wf.length;++Hp){const If=wf[Hp];pc.push(Sf+If)}uf=ff+(uf.length>0?" "+uf:uf)}return uf};function Xr$1(){let vo=0,Ai,bo,Ra="";for(;vo<arguments.length;)(Ai=arguments[vo++])&&(bo=Lc(Ai))&&(Ra&&(Ra+=" "),Ra+=bo);return Ra}const Lc=vo=>{if(typeof vo=="string")return vo;let Ai,bo="";for(let Ra=0;Ra<vo.length;Ra++)vo[Ra]&&(Ai=Lc(vo[Ra]))&&(bo&&(bo+=" "),bo+=Ai);return bo};function om(vo,...Ai){let bo,Ra,hc,pc=mc;function mc(df){const ff=Ai.reduce((hf,pf)=>pf(hf),vo());return bo=tm(ff),Ra=bo.cache.get,hc=bo.cache.set,pc=uf,uf(df)}function uf(df){const ff=Ra(df);if(ff)return ff;const hf=rm$2(df,bo);return hc(df,hf),hf}return function(){return pc(Xr$1.apply(null,arguments))}}const xe$1=vo=>{const Ai=bo=>bo[vo]||[];return Ai.isThemeGetter=!0,Ai},$c=/^\[(?:([a-z-]+):)?(.+)\]$/i,am=/^\d+\/\d+$/,im=new Set(["px","full","screen"]),sm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cm=/\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$/,lm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,um=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xt$2=vo=>cn$2(vo)||im.has(vo)||am.test(vo),Ot$1=vo=>vn$2(vo,"length",ym),cn$2=vo=>!!vo&&!Number.isNaN(Number(vo)),Ao=vo=>vn$2(vo,"number",cn$2),En$2=vo=>!!vo&&Number.isInteger(Number(vo)),fm=vo=>vo.endsWith("%")&&cn$2(vo.slice(0,-1)),ie$3=vo=>$c.test(vo),Mt$2=vo=>sm.test(vo),mm=new Set(["length","size","percentage"]),pm=vo=>vn$2(vo,mm,Uc),hm=vo=>vn$2(vo,"position",Uc),gm=new Set(["image","url"]),vm=vo=>vn$2(vo,gm,xm),bm=vo=>vn$2(vo,"",wm),Pn$2=()=>!0,vn$2=(vo,Ai,bo)=>{const Ra=$c.exec(vo);return Ra?Ra[1]?typeof Ai=="string"?Ra[1]===Ai:Ai.has(Ra[1]):bo(Ra[2]):!1},ym=vo=>cm.test(vo)&&!lm.test(vo),Uc=()=>!1,wm=vo=>um.test(vo),xm=vo=>dm.test(vo),Sm=()=>{const vo=xe$1("colors"),Ai=xe$1("spacing"),bo=xe$1("blur"),Ra=xe$1("brightness"),hc=xe$1("borderColor"),pc=xe$1("borderRadius"),mc=xe$1("borderSpacing"),uf=xe$1("borderWidth"),df=xe$1("contrast"),ff=xe$1("grayscale"),hf=xe$1("hueRotate"),pf=xe$1("invert"),mf=xe$1("gap"),gf=xe$1("gradientColorStops"),yf=xe$1("gradientColorStopPositions"),vf=xe$1("inset"),bf=xe$1("margin"),Sf=xe$1("opacity"),xf=xe$1("padding"),wf=xe$1("saturate"),Hp=xe$1("scale"),If=xe$1("sepia"),Km=xe$1("skew"),s1=xe$1("space"),d1=xe$1("translate"),O1=()=>["auto","contain","none"],k1=()=>["auto","hidden","clip","visible","scroll"],_1=()=>["auto",ie$3,Ai],m1=()=>[ie$3,Ai],R1=()=>["",xt$2,Ot$1],c1=()=>["auto",cn$2,ie$3],f1=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],E1=()=>["solid","dashed","dotted","double","none"],D1=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j1=()=>["start","end","center","between","around","evenly","stretch"],F1=()=>["","0",ie$3],G1=()=>["auto","avoid","all","avoid-page","page","left","right","column"],q1=()=>[cn$2,ie$3];return{cacheSize:500,separator:":",theme:{colors:[Pn$2],spacing:[xt$2,Ot$1],blur:["none","",Mt$2,ie$3],brightness:q1(),borderColor:[vo],borderRadius:["none","","full",Mt$2,ie$3],borderSpacing:m1(),borderWidth:R1(),contrast:q1(),grayscale:F1(),hueRotate:q1(),invert:F1(),gap:m1(),gradientColorStops:[vo],gradientColorStopPositions:[fm,Ot$1],inset:_1(),margin:_1(),opacity:q1(),padding:m1(),saturate:q1(),scale:q1(),sepia:F1(),skew:q1(),space:m1(),translate:m1()},classGroups:{aspect:[{aspect:["auto","square","video",ie$3]}],container:["container"],columns:[{columns:[Mt$2]}],"break-after":[{"break-after":G1()}],"break-before":[{"break-before":G1()}],"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"],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:[...f1(),ie$3]}],overflow:[{overflow:k1()}],"overflow-x":[{"overflow-x":k1()}],"overflow-y":[{"overflow-y":k1()}],overscroll:[{overscroll:O1()}],"overscroll-x":[{"overscroll-x":O1()}],"overscroll-y":[{"overscroll-y":O1()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[vf]}],"inset-x":[{"inset-x":[vf]}],"inset-y":[{"inset-y":[vf]}],start:[{start:[vf]}],end:[{end:[vf]}],top:[{top:[vf]}],right:[{right:[vf]}],bottom:[{bottom:[vf]}],left:[{left:[vf]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",En$2,ie$3]}],basis:[{basis:_1()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ie$3]}],grow:[{grow:F1()}],shrink:[{shrink:F1()}],order:[{order:["first","last","none",En$2,ie$3]}],"grid-cols":[{"grid-cols":[Pn$2]}],"col-start-end":[{col:["auto",{span:["full",En$2,ie$3]},ie$3]}],"col-start":[{"col-start":c1()}],"col-end":[{"col-end":c1()}],"grid-rows":[{"grid-rows":[Pn$2]}],"row-start-end":[{row:["auto",{span:[En$2,ie$3]},ie$3]}],"row-start":[{"row-start":c1()}],"row-end":[{"row-end":c1()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ie$3]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ie$3]}],gap:[{gap:[mf]}],"gap-x":[{"gap-x":[mf]}],"gap-y":[{"gap-y":[mf]}],"justify-content":[{justify:["normal",...j1()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j1(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j1(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[xf]}],px:[{px:[xf]}],py:[{py:[xf]}],ps:[{ps:[xf]}],pe:[{pe:[xf]}],pt:[{pt:[xf]}],pr:[{pr:[xf]}],pb:[{pb:[xf]}],pl:[{pl:[xf]}],m:[{m:[bf]}],mx:[{mx:[bf]}],my:[{my:[bf]}],ms:[{ms:[bf]}],me:[{me:[bf]}],mt:[{mt:[bf]}],mr:[{mr:[bf]}],mb:[{mb:[bf]}],ml:[{ml:[bf]}],"space-x":[{"space-x":[s1]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[s1]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ie$3,Ai]}],"min-w":[{"min-w":[ie$3,Ai,"min","max","fit"]}],"max-w":[{"max-w":[ie$3,Ai,"none","full","min","max","fit","prose",{screen:[Mt$2]},Mt$2]}],h:[{h:[ie$3,Ai,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ie$3,Ai,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ie$3,Ai,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ie$3,Ai,"auto","min","max","fit"]}],"font-size":[{text:["base",Mt$2,Ot$1]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ao]}],"font-family":[{font:[Pn$2]}],"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:["tighter","tight","normal","wide","wider","widest",ie$3]}],"line-clamp":[{"line-clamp":["none",cn$2,Ao]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",xt$2,ie$3]}],"list-image":[{"list-image":["none",ie$3]}],"list-style-type":[{list:["none","disc","decimal",ie$3]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[vo]}],"placeholder-opacity":[{"placeholder-opacity":[Sf]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[vo]}],"text-opacity":[{"text-opacity":[Sf]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...E1(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",xt$2,Ot$1]}],"underline-offset":[{"underline-offset":["auto",xt$2,ie$3]}],"text-decoration-color":[{decoration:[vo]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m1()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie$3]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie$3]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[Sf]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...f1(),hm]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",pm]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vm]}],"bg-color":[{bg:[vo]}],"gradient-from-pos":[{from:[yf]}],"gradient-via-pos":[{via:[yf]}],"gradient-to-pos":[{to:[yf]}],"gradient-from":[{from:[gf]}],"gradient-via":[{via:[gf]}],"gradient-to":[{to:[gf]}],rounded:[{rounded:[pc]}],"rounded-s":[{"rounded-s":[pc]}],"rounded-e":[{"rounded-e":[pc]}],"rounded-t":[{"rounded-t":[pc]}],"rounded-r":[{"rounded-r":[pc]}],"rounded-b":[{"rounded-b":[pc]}],"rounded-l":[{"rounded-l":[pc]}],"rounded-ss":[{"rounded-ss":[pc]}],"rounded-se":[{"rounded-se":[pc]}],"rounded-ee":[{"rounded-ee":[pc]}],"rounded-es":[{"rounded-es":[pc]}],"rounded-tl":[{"rounded-tl":[pc]}],"rounded-tr":[{"rounded-tr":[pc]}],"rounded-br":[{"rounded-br":[pc]}],"rounded-bl":[{"rounded-bl":[pc]}],"border-w":[{border:[uf]}],"border-w-x":[{"border-x":[uf]}],"border-w-y":[{"border-y":[uf]}],"border-w-s":[{"border-s":[uf]}],"border-w-e":[{"border-e":[uf]}],"border-w-t":[{"border-t":[uf]}],"border-w-r":[{"border-r":[uf]}],"border-w-b":[{"border-b":[uf]}],"border-w-l":[{"border-l":[uf]}],"border-opacity":[{"border-opacity":[Sf]}],"border-style":[{border:[...E1(),"hidden"]}],"divide-x":[{"divide-x":[uf]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[uf]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[Sf]}],"divide-style":[{divide:E1()}],"border-color":[{border:[hc]}],"border-color-x":[{"border-x":[hc]}],"border-color-y":[{"border-y":[hc]}],"border-color-s":[{"border-s":[hc]}],"border-color-e":[{"border-e":[hc]}],"border-color-t":[{"border-t":[hc]}],"border-color-r":[{"border-r":[hc]}],"border-color-b":[{"border-b":[hc]}],"border-color-l":[{"border-l":[hc]}],"divide-color":[{divide:[hc]}],"outline-style":[{outline:["",...E1()]}],"outline-offset":[{"outline-offset":[xt$2,ie$3]}],"outline-w":[{outline:[xt$2,Ot$1]}],"outline-color":[{outline:[vo]}],"ring-w":[{ring:R1()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[vo]}],"ring-opacity":[{"ring-opacity":[Sf]}],"ring-offset-w":[{"ring-offset":[xt$2,Ot$1]}],"ring-offset-color":[{"ring-offset":[vo]}],shadow:[{shadow:["","inner","none",Mt$2,bm]}],"shadow-color":[{shadow:[Pn$2]}],opacity:[{opacity:[Sf]}],"mix-blend":[{"mix-blend":[...D1(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":D1()}],filter:[{filter:["","none"]}],blur:[{blur:[bo]}],brightness:[{brightness:[Ra]}],contrast:[{contrast:[df]}],"drop-shadow":[{"drop-shadow":["","none",Mt$2,ie$3]}],grayscale:[{grayscale:[ff]}],"hue-rotate":[{"hue-rotate":[hf]}],invert:[{invert:[pf]}],saturate:[{saturate:[wf]}],sepia:[{sepia:[If]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[bo]}],"backdrop-brightness":[{"backdrop-brightness":[Ra]}],"backdrop-contrast":[{"backdrop-contrast":[df]}],"backdrop-grayscale":[{"backdrop-grayscale":[ff]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[hf]}],"backdrop-invert":[{"backdrop-invert":[pf]}],"backdrop-opacity":[{"backdrop-opacity":[Sf]}],"backdrop-saturate":[{"backdrop-saturate":[wf]}],"backdrop-sepia":[{"backdrop-sepia":[If]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[mc]}],"border-spacing-x":[{"border-spacing-x":[mc]}],"border-spacing-y":[{"border-spacing-y":[mc]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ie$3]}],duration:[{duration:q1()}],ease:[{ease:["linear","in","out","in-out",ie$3]}],delay:[{delay:q1()}],animate:[{animate:["none","spin","ping","pulse","bounce",ie$3]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Hp]}],"scale-x":[{"scale-x":[Hp]}],"scale-y":[{"scale-y":[Hp]}],rotate:[{rotate:[En$2,ie$3]}],"translate-x":[{"translate-x":[d1]}],"translate-y":[{"translate-y":[d1]}],"skew-x":[{"skew-x":[Km]}],"skew-y":[{"skew-y":[Km]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ie$3]}],accent:[{accent:["auto",vo]}],appearance:[{appearance:["none","auto"]}],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$3]}],"caret-color":[{caret:[vo]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m1()}],"scroll-mx":[{"scroll-mx":m1()}],"scroll-my":[{"scroll-my":m1()}],"scroll-ms":[{"scroll-ms":m1()}],"scroll-me":[{"scroll-me":m1()}],"scroll-mt":[{"scroll-mt":m1()}],"scroll-mr":[{"scroll-mr":m1()}],"scroll-mb":[{"scroll-mb":m1()}],"scroll-ml":[{"scroll-ml":m1()}],"scroll-p":[{"scroll-p":m1()}],"scroll-px":[{"scroll-px":m1()}],"scroll-py":[{"scroll-py":m1()}],"scroll-ps":[{"scroll-ps":m1()}],"scroll-pe":[{"scroll-pe":m1()}],"scroll-pt":[{"scroll-pt":m1()}],"scroll-pr":[{"scroll-pr":m1()}],"scroll-pb":[{"scroll-pb":m1()}],"scroll-pl":[{"scroll-pl":m1()}],"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$3]}],fill:[{fill:[vo,"none"]}],"stroke-w":[{stroke:[xt$2,Ot$1,Ao]}],stroke:[{stroke:[vo,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},Ne$1=om(Sm),zi=["😀","😂","🤣","😍","😎","😊","🙃","😇","🤔","🥳","🤯","🤗","😱","👻","🎃","🐱","🐶","🐹","🦊","🐻","🐼","🐨","🐯","🦁","🐸","🐵","🐔","🐧","🐦","🐤","🐝","🐞","🐟","🐬","🐳","🦋","🌺","🌸","🌼","🍀"];function Cm(vo){function Ai(Ra){let hc=0;for(let pc=0;pc<Ra.length;pc++){const mc=Ra.charCodeAt(pc);hc=(hc<<5)-hc+mc,hc|=0}return Math.abs(hc)}const bo=Ai(vo);return zi[bo%zi.length]}const Im=vo=>{switch(vo){case"HEART":return"❤️";case"THUMBS_UP":return"👍";case"THUMBS_DOWN":return"👎";case"LAUGH":return"😂";case"CRY":return"😢";default:return"❤️"}},Em=vo=>{switch(vo){case"HEART":return"heart";case"THUMBS_UP":return"thumbsUp";case"THUMBS_DOWN":return"thumbsDown";case"LAUGH":return"laughing";case"CRY":return"cry";default:return"heart"}},Pm=vo=>{switch(vo){case"heart":return"HEART";case"thumbsUp":return"THUMBS_UP";case"thumbsDown":return"THUMBS_DOWN";case"laughing":return"LAUGH";case"cry":return"CRY";default:return"HEART"}},Tm=vo=>(vo||[]).map(Ai=>({emoji:Im(Ai.type),reactedBy:Ai.reactedBy,type:Em(Ai.type)})).filter(Ai=>Ai.reactedBy.length>0),Om=vo=>{const{imgUrl:Ai,userName:bo}=vo;return jsx("div",{style:{width:"40px",height:"40px",borderRadius:"10px",overflow:"hidden",backgroundColor:"#f0f0f0",display:"flex",justifyContent:"center",alignItems:"center"},children:Ai?jsx("img",{alt:"avatar",src:Ai}):jsx("span",{style:{fontSize:"24px"},children:Cm(bo)})})},Mm=vo=>{const{bgColor:Ai,reaction:bo,textColor:Ra,onClick:hc,disabled:pc=!1}=vo;return jsxs("div",{style:{display:"flex",alignItems:"center",userSelect:"none"},children:[jsx("div",{onClick:()=>{!pc&&hc&&hc()},style:{width:"20px",height:"20px",fontSize:"12px",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:Ai,borderRadius:"50%",marginRight:"4px",textAlign:"center",cursor:pc?"default":"pointer"},children:bo.emoji}),jsx("div",{style:{display:"flex",alignItems:"center",fontSize:"12px",color:Ra,fontWeight:"bold"},children:bo.reactedBy.length})]})},Nm=vo=>{const{message:Ai,userName:bo,timestamp:Ra,reactions:hc,isCurrentUser:pc,onClickReaction:mc,disabled:uf=!1}=vo,df=new Date(Ra).toLocaleTimeString(),ff=pc?"#7678ed":"#eeeef8",hf=pc?"#eeeef8":"#cfcff6",pf=pc?"white":"black";return jsxs("div",{style:{display:"flex"},children:[!pc&&jsx("div",{style:{width:"12px",height:"20px",backgroundColor:"#eeeef8",alignSelf:"flex-end"},children:jsx("div",{style:{width:"12px",height:"20px",backgroundColor:"white",borderBottomRightRadius:"40px"}})}),jsxs("div",{style:{backgroundColor:ff,color:pc?"white":"black",display:"flex",flexDirection:"column",padding:"8px",fontSize:"14px",borderRadius:"8px",maxWidth:"600px",borderBottomRightRadius:pc?"0px":"8px",borderBottomLeftRadius:pc?"8px":"0px"},children:[!pc&&jsxs("div",{style:{color:"#36377c",fontSize:"12px",marginBottom:"4px",fontWeight:"bold"},children:[bo,":"]}),jsx("div",{children:Ai}),jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"10px",marginTop:"8px",alignItems:"flex-end",gap:"30px"},children:[jsx("div",{style:{display:"flex",gap:"10px"},children:(hc||[]).map(mf=>jsx(Mm,{bgColor:hf,disabled:uf,onClick:()=>mc&&mc({messageId:vo.id,...mf}),reaction:mf,textColor:pf},mf.type))}),jsx("div",{children:df})]})]}),pc?jsx("div",{style:{width:"12px",height:"20px",backgroundColor:"#7678ed",alignSelf:"flex-end"},children:jsx("div",{style:{width:"12px",height:"20px",backgroundColor:"white",borderBottomLeftRadius:"40px"}})}):null]})};function Am(vo){return vo?typeof vo=="number"?{width:vo.toString()+"px",height:vo.toString()+"px"}:{width:vo,height:vo}:{}}const Dm=(vo,Ai,bo)=>{const Ra=vo[Ai];return Ra?typeof Ra=="function"?Ra():Promise.resolve(Ra):new Promise((hc,pc)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(pc.bind(null,new Error("Unknown variable dynamic import: "+Ai+(Ai.split("/").length!==bo?". Note that variables only represent file names one level deep.":""))))})};function Rm(vo){return jsx("div",{style:{width:vo.width,height:vo.height}})}function _m(vo){try{return lazy(()=>Dm(Object.assign({"../../../assets/icon-components/ArrowFilledRight.tsx":()=>__vitePreload(()=>import("./ArrowFilledRight-blx8xu7X-D3d8PUWh.js"),[]),"../../../assets/icon-components/ArrowLeft.tsx":()=>__vitePreload(()=>import("./ArrowLeft-7pYNK4eX-8ZR_YHAJ.js"),[]),"../../../assets/icon-components/ArrowUp.tsx":()=>__vitePreload(()=>import("./ArrowUp-Bbr_dwo_-C5ppCQo4.js"),[]),"../../../assets/icon-components/BarChart.tsx":()=>__vitePreload(()=>import("./BarChart-B0G05Nfd-CHDJ7OaJ.js"),[]),"../../../assets/icon-components/BaseArrowLeft.tsx":()=>__vitePreload(()=>import("./BaseArrowLeft-DBzhFHMt-Dkbf2sWs.js"),[]),"../../../assets/icon-components/BaseArrowRight.tsx":()=>__vitePreload(()=>import("./BaseArrowRight-DYQTBWAs-CkkPllYm.js"),[]),"../../../assets/icon-components/Braces.tsx":()=>__vitePreload(()=>import("./Braces-N-sH2Zyc-3LcexUsR.js"),[]),"../../../assets/icon-components/Branch.tsx":()=>__vitePreload(()=>import("./Branch-CWdBw1_P-CmGdOXsI.js"),[]),"../../../assets/icon-components/BrickGlobe.tsx":()=>__vitePreload(()=>import("./BrickGlobe-67zaG6_H-DP0By6z_.js"),[]),"../../../assets/icon-components/Briefcase.tsx":()=>__vitePreload(()=>import("./Briefcase-CedW3KRR-DO5_k15F.js"),[]),"../../../assets/icon-components/Calendar.tsx":()=>__vitePreload(()=>import("./Calendar-C-6HV96D-YetudWvP.js"),[]),"../../../assets/icon-components/Caret.tsx":()=>__vitePreload(()=>import("./Caret-Ep0j0fz2-By3ojfim.js"),[]),"../../../assets/icon-components/CaretDown.tsx":()=>__vitePreload(()=>import("./CaretDown-3X7LFYBf-C43xdKg8.js"),[]),"../../../assets/icon-components/CaretSort.tsx":()=>__vitePreload(()=>import("./CaretSort-BkGdLETT-DVOzEEqR.js"),[]),"../../../assets/icon-components/Check.tsx":()=>__vitePreload(()=>import("./Check-DV-U4AEq-B582NMZp.js"),[]),"../../../assets/icon-components/CheckCircle.tsx":()=>__vitePreload(()=>import("./CheckCircle-DI5fEgGd-CVF4LDhR.js"),[]),"../../../assets/icon-components/CheckCircleFill.tsx":()=>__vitePreload(()=>import("./CheckCircleFill-C-F0v5mB-BSW1YMqM.js"),[]),"../../../assets/icon-components/Checkmark.tsx":()=>__vitePreload(()=>import("./Checkmark-BXnfChpo-CyQitGI2.js"),[]),"../../../assets/icon-components/ChevronDown.tsx":()=>__vitePreload(()=>import("./ChevronDown-ouBxrU-k-eUsCPXcB.js"),[]),"../../../assets/icon-components/Circle.tsx":()=>__vitePreload(()=>import("./Circle-n3-Wh4HS-8dOehHQf.js"),[]),"../../../assets/icon-components/CircleInfo.tsx":()=>__vitePreload(()=>import("./CircleInfo-BhZY3C2Q-CZgYK1h2.js"),[]),"../../../assets/icon-components/ClockFill.tsx":()=>__vitePreload(()=>import("./ClockFill-Bd0t48q7-CcfHiJtH.js"),[]),"../../../assets/icon-components/CloudSlash.tsx":()=>__vitePreload(()=>import("./CloudSlash-B-zJBjaD-CxVyp-Ac.js"),[]),"../../../assets/icon-components/Collapse.tsx":()=>__vitePreload(()=>import("./Collapse-DRDB8Czs-CGcuZQgy.js"),[]),"../../../assets/icon-components/Connect.tsx":()=>__vitePreload(()=>import("./Connect-Dme-qfKq-CgniLji8.js"),[]),"../../../assets/icon-components/Discord.tsx":()=>__vitePreload(()=>import("./Discord-CAS0Cj7s-CcsBWpnf.js"),[]),"../../../assets/icon-components/Drive.tsx":()=>__vitePreload(()=>import("./Drive-GMcgBcIY-CzahDx9j.js"),[]),"../../../assets/icon-components/Ellipsis.tsx":()=>__vitePreload(()=>import("./Ellipsis-XK8AwMEC-BuVBeYhB.js"),[]),"../../../assets/icon-components/Error.tsx":()=>__vitePreload(()=>import("./Error-BmIZ2ZUy-CphzuMLn.js"),[]),"../../../assets/icon-components/Exclamation.tsx":()=>__vitePreload(()=>import("./Exclamation-CVsNS_QS-DLccamql.js"),[]),"../../../assets/icon-components/FilesEarmark.tsx":()=>__vitePreload(()=>import("./FilesEarmark-CyrCQy8E-Bhut4E02.js"),[]),"../../../assets/icon-components/FolderClose.tsx":()=>__vitePreload(()=>import("./FolderClose-DG_qHisc-CH6NoBuu.js"),[]),"../../../assets/icon-components/FolderOpen.tsx":()=>__vitePreload(()=>import("./FolderOpen-kDoWFkJO-Cciutkdg.js"),[]),"../../../assets/icon-components/FolderPlus.tsx":()=>__vitePreload(()=>import("./FolderPlus-CSBSl9lZ-CifD0ek9.js"),[]),"../../../assets/icon-components/Forum.tsx":()=>__vitePreload(()=>import("./Forum-DZ-CkLFh-BwabccAX.js"),[]),"../../../assets/icon-components/Gear.tsx":()=>__vitePreload(()=>import("./Gear-cUlHJ4q6-B9R2l_9_.js"),[]),"../../../assets/icon-components/Github.tsx":()=>__vitePreload(()=>import("./Github-0PLiINY0-CjkZIHCO.js"),[]),"../../../assets/icon-components/Globe.tsx":()=>__vitePreload(()=>import("./Globe-CIYqVkpa-CL530H46.js"),[]),"../../../assets/icon-components/GlobeWww.tsx":()=>__vitePreload(()=>import("./GlobeWww-DN4yKujh-Ci7aa5CE.js"),[]),"../../../assets/icon-components/Hdd.tsx":()=>__vitePreload(()=>import("./Hdd-Dn_LdJIh-CJ6x9Bve.js"),[]),"../../../assets/icon-components/History.tsx":()=>__vitePreload(()=>import("./History-BP4SmaS_-P4WBKyqX.js"),[]),"../../../assets/icon-components/InfoSquare.tsx":()=>__vitePreload(()=>import("./InfoSquare-C98JaLiz-yPcGR71f.js"),[]),"../../../assets/icon-components/Link.tsx":()=>__vitePreload(()=>import("./Link-BF7aZjVu-CXIVQOz6.js"),[]),"../../../assets/icon-components/Linkedin.tsx":()=>__vitePreload(()=>import("./Linkedin-DJwIkS6q-Dkb5Tp_Z.js"),[]),"../../../assets/icon-components/Lock.tsx":()=>__vitePreload(()=>import("./Lock-PyaFHdNS-D_qxRTye.js"),[]),"../../../assets/icon-components/M.tsx":()=>__vitePreload(()=>import("./M-DozhhPMY-DBQw97P_.js"),[]),"../../../assets/icon-components/Pencil.tsx":()=>__vitePreload(()=>import("./Pencil-D7lvxXIP-D830iveq.js"),[]),"../../../assets/icon-components/People.tsx":()=>__vitePreload(()=>import("./People-CUB8LYKf-CyJmMqcw.js"),[]),"../../../assets/icon-components/Person.tsx":()=>__vitePreload(()=>import("./Person-DuL4PQzm-ttQR0nPy.js"),[]),"../../../assets/icon-components/Plus.tsx":()=>__vitePreload(()=>import("./Plus-DPFWGJM4-BztpK8li.js"),[]),"../../../assets/icon-components/PlusCircle.tsx":()=>__vitePreload(()=>import("./PlusCircle-BEnWRjHa-w5zztKGx.js"),[]),"../../../assets/icon-components/PowerhouseLogoSmall.tsx":()=>__vitePreload(()=>import("./PowerhouseLogoSmall-CmO95IAS-CDGLkst3.js"),[]),"../../../assets/icon-components/Project.tsx":()=>__vitePreload(()=>import("./Project-BlXuclr0-EsBam9d0.js"),[]),"../../../assets/icon-components/RedoArrow.tsx":()=>__vitePreload(()=>import("./RedoArrow-BJeEsiph-BbidqIFP.js"),[]),"../../../assets/icon-components/Renown.tsx":()=>__vitePreload(()=>import("./Renown-6m7hx37h-CItksi2j.js"),[]),"../../../assets/icon-components/RenownHover.tsx":()=>__vitePreload(()=>import("./RenownHover-CQ0TZHZv-cYQgnwQW.js"),[]),"../../../assets/icon-components/Ring.tsx":()=>__vitePreload(()=>import("./Ring-DKv0gnwT-CDHLz87h.js"),[]),"../../../assets/icon-components/Save.tsx":()=>__vitePreload(()=>import("./Save-BBxj68pn-BkUvn89C.js"),[]),"../../../assets/icon-components/Search.tsx":()=>__vitePreload(()=>import("./Search-YUJuRBLe-CecGUkZA.js"),[]),"../../../assets/icon-components/Server.tsx":()=>__vitePreload(()=>import("./Server-Bfkkjui1-lBan_3Dm.js"),[]),"../../../assets/icon-components/Settings.tsx":()=>__vitePreload(()=>import("./Settings-mbbylBS5-Cca-sV-_.js"),[]),"../../../assets/icon-components/Synced.tsx":()=>__vitePreload(()=>import("./Synced-DKJXzPiw-Cui8pDsS.js"),[]),"../../../assets/icon-components/Syncing.tsx":()=>__vitePreload(()=>import("./Syncing-aT9WSMFf-2VhhyCcX.js"),[]),"../../../assets/icon-components/Trash.tsx":()=>__vitePreload(()=>import("./Trash-CgSbHk-P-DIYkVMER.js"),[]),"../../../assets/icon-components/TrashFill.tsx":()=>__vitePreload(()=>import("./TrashFill-DN50ercb-Oqx67xXN.js"),[]),"../../../assets/icon-components/VariantArrowLeft.tsx":()=>__vitePreload(()=>import("./VariantArrowLeft-CnuX59_e-6Zt_Q3tm.js"),[]),"../../../assets/icon-components/VerticalDots.tsx":()=>__vitePreload(()=>import("./VerticalDots-C8QYf7et-CCxZfvjq.js"),[]),"../../../assets/icon-components/WarningFill.tsx":()=>__vitePreload(()=>import("./WarningFill-WowAvi5P-D5XCckM6.js"),[]),"../../../assets/icon-components/XTwitter.tsx":()=>__vitePreload(()=>import("./XTwitter-k3Pt8itk-mvLk8TKx.js"),[]),"../../../assets/icon-components/Xmark.tsx":()=>__vitePreload(()=>import("./Xmark-8qnJCs2Y-CZ3t0Fap.js"),[]),"../../../assets/icon-components/XmarkLight.tsx":()=>__vitePreload(()=>import("./XmarkLight-GHzDR5_F-CloMvuzt.js"),[]),"../../../assets/icon-components/Youtube.tsx":()=>__vitePreload(()=>import("./Youtube-i8V0IXUU-Bkiwoayp.js"),[])}),`../../../assets/icon-components/${vo}.tsx`,6))}catch(Ai){return console.error(Ai),Rm}}function _e$1({name:vo,size:Ai=24,color:bo,style:Ra,...hc}){const pc=Am(Ai),mc={color:bo,...pc,style:Ra},uf=useMemo(()=>_m(vo),[vo]);return jsx(Suspense,{fallback:jsx("div",{"data-testid":"icon-fallback",style:pc}),name:"icon-component",children:jsx(uf,{...hc,style:mc})})}function ji$1(vo,Ai){var bo=Object.keys(vo);if(Object.getOwnPropertySymbols){var Ra=Object.getOwnPropertySymbols(vo);Ai&&(Ra=Ra.filter(function(hc){return Object.getOwnPropertyDescriptor(vo,hc).enumerable})),bo.push.apply(bo,Ra)}return bo}function te$2(vo){for(var Ai=1;Ai<arguments.length;Ai++){var bo=arguments[Ai]!=null?arguments[Ai]:{};Ai%2?ji$1(Object(bo),!0).forEach(function(Ra){Ir$3(vo,Ra,bo[Ra])}):Object.getOwnPropertyDescriptors?Object.defineProperties(vo,Object.getOwnPropertyDescriptors(bo)):ji$1(Object(bo)).forEach(function(Ra){Object.defineProperty(vo,Ra,Object.getOwnPropertyDescriptor(bo,Ra))})}return vo}function km(vo){if(Array.isArray(vo))return vo}function Fm(vo,Ai){var bo=vo==null?null:typeof Symbol<"u"&&vo[Symbol.iterator]||vo["@@iterator"];if(bo!=null){var Ra,hc,pc,mc,uf=[],df=!0,ff=!1;try{if(pc=(bo=bo.call(vo)).next,Ai===0){if(Object(bo)!==bo)return;df=!1}else for(;!(df=(Ra=pc.call(bo)).done)&&(uf.push(Ra.value),uf.length!==Ai);df=!0);}catch(hf){ff=!0,hc=hf}finally{try{if(!df&&bo.return!=null&&(mc=bo.return(),Object(mc)!==mc))return}finally{if(ff)throw hc}}return uf}}function ma(vo,Ai){(Ai==null||Ai>vo.length)&&(Ai=vo.length);for(var bo=0,Ra=Array(Ai);bo<Ai;bo++)Ra[bo]=vo[bo];return Ra}function Hc(vo,Ai){if(vo){if(typeof vo=="string")return ma(vo,Ai);var bo={}.toString.call(vo).slice(8,-1);return bo==="Object"&&vo.constructor&&(bo=vo.constructor.name),bo==="Map"||bo==="Set"?Array.from(vo):bo==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(bo)?ma(vo,Ai):void 0}}function Vm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function St$1(vo,Ai){return km(vo)||Fm(vo,Ai)||Hc(vo,Ai)||Vm()}function Lm(vo,Ai){if(vo==null)return{};var bo={};for(var Ra in vo)if({}.hasOwnProperty.call(vo,Ra)){if(Ai.includes(Ra))continue;bo[Ra]=vo[Ra]}return bo}function Et$2(vo,Ai){if(vo==null)return{};var bo,Ra,hc=Lm(vo,Ai);if(Object.getOwnPropertySymbols){var pc=Object.getOwnPropertySymbols(vo);for(Ra=0;Ra<pc.length;Ra++)bo=pc[Ra],Ai.includes(bo)||{}.propertyIsEnumerable.call(vo,bo)&&(hc[bo]=vo[bo])}return hc}var $m=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Um(vo){var Ai=vo.defaultInputValue,bo=Ai===void 0?"":Ai,Ra=vo.defaultMenuIsOpen,hc=Ra===void 0?!1:Ra,pc=vo.defaultValue,mc=pc===void 0?null:pc,uf=vo.inputValue,df=vo.menuIsOpen,ff=vo.onChange,hf=vo.onInputChange,pf=vo.onMenuClose,mf=vo.onMenuOpen,gf=vo.value,yf=Et$2(vo,$m),vf=useState(uf!==void 0?uf:bo),bf=St$1(vf,2),Sf=bf[0],xf=bf[1],wf=useState(df!==void 0?df:hc),Hp=St$1(wf,2),If=Hp[0],Km=Hp[1],s1=useState(gf!==void 0?gf:mc),d1=St$1(s1,2),O1=d1[0],k1=d1[1],_1=useCallback(function(j1,F1){typeof ff=="function"&&ff(j1,F1),k1(j1)},[ff]),m1=useCallback(function(j1,F1){var G1;typeof hf=="function"&&(G1=hf(j1,F1)),xf(G1!==void 0?G1:j1)},[hf]),R1=useCallback(function(){typeof mf=="function"&&mf(),Km(!0)},[mf]),c1=useCallback(function(){typeof pf=="function"&&pf(),Km(!1)},[pf]),f1=uf!==void 0?uf:Sf,E1=df!==void 0?df:If,D1=gf!==void 0?gf:O1;return te$2(te$2({},yf),{},{inputValue:f1,menuIsOpen:E1,onChange:_1,onInputChange:m1,onMenuClose:c1,onMenuOpen:R1,value:D1})}function Hm(vo,Ai){if(!(vo instanceof Ai))throw new TypeError("Cannot call a class as a function")}function Yi(vo,Ai){for(var bo=0;bo<Ai.length;bo++){var Ra=Ai[bo];Ra.enumerable=Ra.enumerable||!1,Ra.configurable=!0,"value"in Ra&&(Ra.writable=!0),Object.defineProperty(vo,K8(Ra.key),Ra)}}function Wm(vo,Ai,bo){return Yi(vo.prototype,Ai),Yi(vo,bo),Object.defineProperty(vo,"prototype",{writable:!1}),vo}function pa$1(vo,Ai){return pa$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(bo,Ra){return bo.__proto__=Ra,bo},pa$1(vo,Ai)}function Bm(vo,Ai){if(typeof Ai!="function"&&Ai!==null)throw new TypeError("Super expression must either be null or a function");vo.prototype=Object.create(Ai&&Ai.prototype,{constructor:{value:vo,writable:!0,configurable:!0}}),Object.defineProperty(vo,"prototype",{writable:!1}),Ai&&pa$1(vo,Ai)}function Mr$2(vo){return Mr$2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ai){return Ai.__proto__||Object.getPrototypeOf(Ai)},Mr$2(vo)}function Wc(){try{var vo=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wc=function(){return!!vo})()}function zm(vo){if(vo===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return vo}function jm(vo,Ai){if(Ai&&(Ci$1(Ai)=="object"||typeof Ai=="function"))return Ai;if(Ai!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zm(vo)}function Ym(vo){var Ai=Wc();return function(){var bo,Ra=Mr$2(vo);if(Ai){var hc=Mr$2(this).constructor;bo=Reflect.construct(Ra,arguments,hc)}else bo=Ra.apply(this,arguments);return jm(this,bo)}}function Gm(vo){if(Array.isArray(vo))return ma(vo)}function qm(vo){if(typeof Symbol<"u"&&vo[Symbol.iterator]!=null||vo["@@iterator"]!=null)return Array.from(vo)}function Xm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $a(vo){return Gm(vo)||qm(vo)||Hc(vo)||Xm()}function Zm(vo){if(vo.sheet)return vo.sheet;for(var Ai=0;Ai<document.styleSheets.length;Ai++)if(document.styleSheets[Ai].ownerNode===vo)return document.styleSheets[Ai]}function Qm(vo){var Ai=document.createElement("style");return Ai.setAttribute("data-emotion",vo.key),vo.nonce!==void 0&&Ai.setAttribute("nonce",vo.nonce),Ai.appendChild(document.createTextNode("")),Ai.setAttribute("data-s",""),Ai}var Jm=function(){function vo(bo){var Ra=this;this._insertTag=function(hc){var pc;Ra.tags.length===0?Ra.insertionPoint?pc=Ra.insertionPoint.nextSibling:Ra.prepend?pc=Ra.container.firstChild:pc=Ra.before:pc=Ra.tags[Ra.tags.length-1].nextSibling,Ra.container.insertBefore(hc,pc),Ra.tags.push(hc)},this.isSpeedy=bo.speedy===void 0?!0:bo.speedy,this.tags=[],this.ctr=0,this.nonce=bo.nonce,this.key=bo.key,this.container=bo.container,this.prepend=bo.prepend,this.insertionPoint=bo.insertionPoint,this.before=null}var Ai=vo.prototype;return Ai.hydrate=function(bo){bo.forEach(this._insertTag)},Ai.insert=function(bo){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Qm(this));var Ra=this.tags[this.tags.length-1];if(this.isSpeedy){var hc=Zm(Ra);try{hc.insertRule(bo,hc.cssRules.length)}catch{}}else Ra.appendChild(document.createTextNode(bo));this.ctr++},Ai.flush=function(){this.tags.forEach(function(bo){var Ra;return(Ra=bo.parentNode)==null?void 0:Ra.removeChild(bo)}),this.tags=[],this.ctr=0},vo}(),Ue$2="-ms-",Nr$2="-moz-",me$2="-webkit-",Bc="comm",Ua="rule",Ha="decl",ep="@import",zc="@keyframes",tp="@layer",np=Math.abs,Kr$2=String.fromCharCode,rp=Object.assign;function op(vo,Ai){return $e$2(vo,0)^45?(((Ai<<2^$e$2(vo,0))<<2^$e$2(vo,1))<<2^$e$2(vo,2))<<2^$e$2(vo,3):0}function jc(vo){return vo.trim()}function ap(vo,Ai){return(vo=Ai.exec(vo))?vo[0]:vo}function pe$2(vo,Ai,bo){return vo.replace(Ai,bo)}function ha(vo,Ai){return vo.indexOf(Ai)}function $e$2(vo,Ai){return vo.charCodeAt(Ai)|0}function Vn$2(vo,Ai,bo){return vo.slice(Ai,bo)}function ut$1(vo){return vo.length}function Wa(vo){return vo.length}function ar$1(vo,Ai){return Ai.push(vo),vo}function ip(vo,Ai){return vo.map(Ai).join("")}var Zr$1=1,pn$2=1,Yc=0,qe$2=0,Me$2=0,bn$1="";function Qr$2(vo,Ai,bo,Ra,hc,pc,mc){return{value:vo,root:Ai,parent:bo,type:Ra,props:hc,children:pc,line:Zr$1,column:pn$2,length:mc,return:""}}function Tn$1(vo,Ai){return rp(Qr$2("",null,null,"",null,null,0),vo,{length:-vo.length},Ai)}function sp(){return Me$2}function cp(){return Me$2=qe$2>0?$e$2(bn$1,--qe$2):0,pn$2--,Me$2===10&&(pn$2=1,Zr$1--),Me$2}function Ke$2(){return Me$2=qe$2<Yc?$e$2(bn$1,qe$2++):0,pn$2++,Me$2===10&&(pn$2=1,Zr$1++),Me$2}function gt$2(){return $e$2(bn$1,qe$2)}function br$2(){return qe$2}function Kn$2(vo,Ai){return Vn$2(bn$1,vo,Ai)}function Ln$1(vo){switch(vo){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 Gc(vo){return Zr$1=pn$2=1,Yc=ut$1(bn$1=vo),qe$2=0,[]}function qc(vo){return bn$1="",vo}function yr$2(vo){return jc(Kn$2(qe$2-1,ga(vo===91?vo+2:vo===40?vo+1:vo)))}function lp(vo){for(;(Me$2=gt$2())&&Me$2<33;)Ke$2();return Ln$1(vo)>2||Ln$1(Me$2)>3?"":" "}function up(vo,Ai){for(;--Ai&&Ke$2()&&!(Me$2<48||Me$2>102||Me$2>57&&Me$2<65||Me$2>70&&Me$2<97););return Kn$2(vo,br$2()+(Ai<6&>$2()==32&&Ke$2()==32))}function ga(vo){for(;Ke$2();)switch(Me$2){case vo:return qe$2;case 34:case 39:vo!==34&&vo!==39&&ga(Me$2);break;case 40:vo===41&&ga(vo);break;case 92:Ke$2();break}return qe$2}function dp(vo,Ai){for(;Ke$2()&&vo+Me$2!==57&&!(vo+Me$2===84&>$2()===47););return"/*"+Kn$2(Ai,qe$2-1)+"*"+Kr$2(vo===47?vo:Ke$2())}function fp(vo){for(;!Ln$1(gt$2());)Ke$2();return Kn$2(vo,qe$2)}function mp(vo){return qc(wr$2("",null,null,null,[""],vo=Gc(vo),0,[0],vo))}function wr$2(vo,Ai,bo,Ra,hc,pc,mc,uf,df){for(var ff=0,hf=0,pf=mc,mf=0,gf=0,yf=0,vf=1,bf=1,Sf=1,xf=0,wf="",Hp=hc,If=pc,Km=Ra,s1=wf;bf;)switch(yf=xf,xf=Ke$2()){case 40:if(yf!=108&&$e$2(s1,pf-1)==58){ha(s1+=pe$2(yr$2(xf),"&","&\f"),"&\f")!=-1&&(Sf=-1);break}case 34:case 39:case 91:s1+=yr$2(xf);break;case 9:case 10:case 13:case 32:s1+=lp(yf);break;case 92:s1+=up(br$2()-1,7);continue;case 47:switch(gt$2()){case 42:case 47:ar$1(pp(dp(Ke$2(),br$2()),Ai,bo),df);break;default:s1+="/"}break;case 123*vf:uf[ff++]=ut$1(s1)*Sf;case 125*vf:case 59:case 0:switch(xf){case 0:case 125:bf=0;case 59+hf:Sf==-1&&(s1=pe$2(s1,/\f/g,"")),gf>0&&ut$1(s1)-pf&&ar$1(gf>32?qi(s1+";",Ra,bo,pf-1):qi(pe$2(s1," ","")+";",Ra,bo,pf-2),df);break;case 59:s1+=";";default:if(ar$1(Km=Gi(s1,Ai,bo,ff,hf,hc,uf,wf,Hp=[],If=[],pf),pc),xf===123)if(hf===0)wr$2(s1,Ai,Km,Km,Hp,pc,pf,uf,If);else switch(mf===99&&$e$2(s1,3)===110?100:mf){case 100:case 108:case 109:case 115:wr$2(vo,Km,Km,Ra&&ar$1(Gi(vo,Km,Km,0,0,hc,uf,wf,hc,Hp=[],pf),If),hc,If,pf,uf,Ra?Hp:If);break;default:wr$2(s1,Km,Km,Km,[""],If,0,uf,If)}}ff=hf=gf=0,vf=Sf=1,wf=s1="",pf=mc;break;case 58:pf=1+ut$1(s1),gf=yf;default:if(vf<1){if(xf==123)--vf;else if(xf==125&&vf++==0&&cp()==125)continue}switch(s1+=Kr$2(xf),xf*vf){case 38:Sf=hf>0?1:(s1+="\f",-1);break;case 44:uf[ff++]=(ut$1(s1)-1)*Sf,Sf=1;break;case 64:gt$2()===45&&(s1+=yr$2(Ke$2())),mf=gt$2(),hf=pf=ut$1(wf=s1+=fp(br$2())),xf++;break;case 45:yf===45&&ut$1(s1)==2&&(vf=0)}}return pc}function Gi(vo,Ai,bo,Ra,hc,pc,mc,uf,df,ff,hf){for(var pf=hc-1,mf=hc===0?pc:[""],gf=Wa(mf),yf=0,vf=0,bf=0;yf<Ra;++yf)for(var Sf=0,xf=Vn$2(vo,pf+1,pf=np(vf=mc[yf])),wf=vo;Sf<gf;++Sf)(wf=jc(vf>0?mf[Sf]+" "+xf:pe$2(xf,/&\f/g,mf[Sf])))&&(df[bf++]=wf);return Qr$2(vo,Ai,bo,hc===0?Ua:uf,df,ff,hf)}function pp(vo,Ai,bo){return Qr$2(vo,Ai,bo,Bc,Kr$2(sp()),Vn$2(vo,2,-2),0)}function qi(vo,Ai,bo,Ra){return Qr$2(vo,Ai,bo,Ha,Vn$2(vo,0,Ra),Vn$2(vo,Ra+1,-1),Ra)}function ln$1(vo,Ai){for(var bo="",Ra=Wa(vo),hc=0;hc<Ra;hc++)bo+=Ai(vo[hc],hc,vo,Ai)||"";return bo}function hp(vo,Ai,bo,Ra){switch(vo.type){case tp:if(vo.children.length)break;case ep:case Ha:return vo.return=vo.return||vo.value;case Bc:return"";case zc:return vo.return=vo.value+"{"+ln$1(vo.children,Ra)+"}";case Ua:vo.value=vo.props.join(",")}return ut$1(bo=ln$1(vo.children,Ra))?vo.return=vo.value+"{"+bo+"}":""}function gp(vo){var Ai=Wa(vo);return function(bo,Ra,hc,pc){for(var mc="",uf=0;uf<Ai;uf++)mc+=vo[uf](bo,Ra,hc,pc)||"";return mc}}function vp(vo){return function(Ai){Ai.root||(Ai=Ai.return)&&vo(Ai)}}function bp(vo){var Ai=Object.create(null);return function(bo){return Ai[bo]===void 0&&(Ai[bo]=vo(bo)),Ai[bo]}}var yp=function(vo,Ai,bo){for(var Ra=0,hc=0;Ra=hc,hc=gt$2(),Ra===38&&hc===12&&(Ai[bo]=1),!Ln$1(hc);)Ke$2();return Kn$2(vo,qe$2)},wp=function(vo,Ai){var bo=-1,Ra=44;do switch(Ln$1(Ra)){case 0:Ra===38&>$2()===12&&(Ai[bo]=1),vo[bo]+=yp(qe$2-1,Ai,bo);break;case 2:vo[bo]+=yr$2(Ra);break;case 4:if(Ra===44){vo[++bo]=gt$2()===58?"&\f":"",Ai[bo]=vo[bo].length;break}default:vo[bo]+=Kr$2(Ra)}while(Ra=Ke$2());return vo},xp=function(vo,Ai){return qc(wp(Gc(vo),Ai))},Xi=new WeakMap,Sp=function(vo){if(!(vo.type!=="rule"||!vo.parent||vo.length<1)){for(var Ai=vo.value,bo=vo.parent,Ra=vo.column===bo.column&&vo.line===bo.line;bo.type!=="rule";)if(bo=bo.parent,!bo)return;if(!(vo.props.length===1&&Ai.charCodeAt(0)!==58&&!Xi.get(bo))&&!Ra){Xi.set(vo,!0);for(var hc=[],pc=xp(Ai,hc),mc=bo.props,uf=0,df=0;uf<pc.length;uf++)for(var ff=0;ff<mc.length;ff++,df++)vo.props[df]=hc[uf]?pc[uf].replace(/&\f/g,mc[ff]):mc[ff]+" "+pc[uf]}}},Cp=function(vo){if(vo.type==="decl"){var Ai=vo.value;Ai.charCodeAt(0)===108&&Ai.charCodeAt(2)===98&&(vo.return="",vo.value="")}};function Xc(vo,Ai){switch(op(vo,Ai)){case 5103:return me$2+"print-"+vo+vo;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 me$2+vo+vo;case 5349:case 4246:case 4810:case 6968:case 2756:return me$2+vo+Nr$2+vo+Ue$2+vo+vo;case 6828:case 4268:return me$2+vo+Ue$2+vo+vo;case 6165:return me$2+vo+Ue$2+"flex-"+vo+vo;case 5187:return me$2+vo+pe$2(vo,/(\w+).+(:[^]+)/,me$2+"box-$1$2"+Ue$2+"flex-$1$2")+vo;case 5443:return me$2+vo+Ue$2+"flex-item-"+pe$2(vo,/flex-|-self/,"")+vo;case 4675:return me$2+vo+Ue$2+"flex-line-pack"+pe$2(vo,/align-content|flex-|-self/,"")+vo;case 5548:return me$2+vo+Ue$2+pe$2(vo,"shrink","negative")+vo;case 5292:return me$2+vo+Ue$2+pe$2(vo,"basis","preferred-size")+vo;case 6060:return me$2+"box-"+pe$2(vo,"-grow","")+me$2+vo+Ue$2+pe$2(vo,"grow","positive")+vo;case 4554:return me$2+pe$2(vo,/([^-])(transform)/g,"$1"+me$2+"$2")+vo;case 6187:return pe$2(pe$2(pe$2(vo,/(zoom-|grab)/,me$2+"$1"),/(image-set)/,me$2+"$1"),vo,"")+vo;case 5495:case 3959:return pe$2(vo,/(image-set\([^]*)/,me$2+"$1$`$1");case 4968:return pe$2(pe$2(vo,/(.+:)(flex-)?(.*)/,me$2+"box-pack:$3"+Ue$2+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+me$2+vo+vo;case 4095:case 3583:case 4068:case 2532:return pe$2(vo,/(.+)-inline(.+)/,me$2+"$1$2")+vo;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(ut$1(vo)-1-Ai>6)switch($e$2(vo,Ai+1)){case 109:if($e$2(vo,Ai+4)!==45)break;case 102:return pe$2(vo,/(.+:)(.+)-([^]+)/,"$1"+me$2+"$2-$3$1"+Nr$2+($e$2(vo,Ai+3)==108?"$3":"$2-$3"))+vo;case 115:return~ha(vo,"stretch")?Xc(pe$2(vo,"stretch","fill-available"),Ai)+vo:vo}break;case 4949:if($e$2(vo,Ai+1)!==115)break;case 6444:switch($e$2(vo,ut$1(vo)-3-(~ha(vo,"!important")&&10))){case 107:return pe$2(vo,":",":"+me$2)+vo;case 101:return pe$2(vo,/(.+:)([^;!]+)(;|!.+)?/,"$1"+me$2+($e$2(vo,14)===45?"inline-":"")+"box$3$1"+me$2+"$2$3$1"+Ue$2+"$2box$3")+vo}break;case 5936:switch($e$2(vo,Ai+11)){case 114:return me$2+vo+Ue$2+pe$2(vo,/[svh]\w+-[tblr]{2}/,"tb")+vo;case 108:return me$2+vo+Ue$2+pe$2(vo,/[svh]\w+-[tblr]{2}/,"tb-rl")+vo;case 45:return me$2+vo+Ue$2+pe$2(vo,/[svh]\w+-[tblr]{2}/,"lr")+vo}return me$2+vo+Ue$2+vo+vo}return vo}var Ip=function(vo,Ai,bo,Ra){if(vo.length>-1&&!vo.return)switch(vo.type){case Ha:vo.return=Xc(vo.value,vo.length);break;case zc:return ln$1([Tn$1(vo,{value:pe$2(vo.value,"@","@"+me$2)})],Ra);case Ua:if(vo.length)return ip(vo.props,function(hc){switch(ap(hc,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ln$1([Tn$1(vo,{props:[pe$2(hc,/:(read-\w+)/,":"+Nr$2+"$1")]})],Ra);case"::placeholder":return ln$1([Tn$1(vo,{props:[pe$2(hc,/:(plac\w+)/,":"+me$2+"input-$1")]}),Tn$1(vo,{props:[pe$2(hc,/:(plac\w+)/,":"+Nr$2+"$1")]}),Tn$1(vo,{props:[pe$2(hc,/:(plac\w+)/,Ue$2+"input-$1")]})],Ra)}return""})}},Ep=[Ip],Pp=function(vo){var Ai=vo.key;if(Ai==="css"){var bo=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(bo,function(yf){var vf=yf.getAttribute("data-emotion");vf.indexOf(" ")!==-1&&(document.head.appendChild(yf),yf.setAttribute("data-s",""))})}var Ra=vo.stylisPlugins||Ep,hc={},pc,mc=[];pc=vo.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+Ai+' "]'),function(yf){for(var vf=yf.getAttribute("data-emotion").split(" "),bf=1;bf<vf.length;bf++)hc[vf[bf]]=!0;mc.push(yf)});var uf,df=[Sp,Cp];{var ff,hf=[hp,vp(function(yf){ff.insert(yf)})],pf=gp(df.concat(Ra,hf)),mf=function(yf){return ln$1(mp(yf),pf)};uf=function(yf,vf,bf,Sf){ff=bf,mf(yf?yf+"{"+vf.styles+"}":vf.styles),Sf&&(gf.inserted[vf.name]=!0)}}var gf={key:Ai,sheet:new Jm({key:Ai,container:pc,nonce:vo.nonce,speedy:vo.speedy,prepend:vo.prepend,insertionPoint:vo.insertionPoint}),nonce:vo.nonce,inserted:hc,registered:{},insert:uf};return gf.sheet.hydrate(mc),gf},Do={exports:{}},he$2={};/** @license React v16.13.1
|
|
5
5
|
* react-is.production.min.js
|
|
@@ -11,7 +11,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11
11
|
*/var Ki;function Tp(){if(Ki)return he$2;Ki=1;var vo=typeof Symbol=="function"&&Symbol.for,Ai=vo?Symbol.for("react.element"):60103,bo=vo?Symbol.for("react.portal"):60106,Ra=vo?Symbol.for("react.fragment"):60107,hc=vo?Symbol.for("react.strict_mode"):60108,pc=vo?Symbol.for("react.profiler"):60114,mc=vo?Symbol.for("react.provider"):60109,uf=vo?Symbol.for("react.context"):60110,df=vo?Symbol.for("react.async_mode"):60111,ff=vo?Symbol.for("react.concurrent_mode"):60111,hf=vo?Symbol.for("react.forward_ref"):60112,pf=vo?Symbol.for("react.suspense"):60113,mf=vo?Symbol.for("react.suspense_list"):60120,gf=vo?Symbol.for("react.memo"):60115,yf=vo?Symbol.for("react.lazy"):60116,vf=vo?Symbol.for("react.block"):60121,bf=vo?Symbol.for("react.fundamental"):60117,Sf=vo?Symbol.for("react.responder"):60118,xf=vo?Symbol.for("react.scope"):60119;function wf(If){if(typeof If=="object"&&If!==null){var Km=If.$$typeof;switch(Km){case Ai:switch(If=If.type,If){case df:case ff:case Ra:case pc:case hc:case pf:return If;default:switch(If=If&&If.$$typeof,If){case uf:case hf:case yf:case gf:case mc:return If;default:return Km}}case bo:return Km}}}function Hp(If){return wf(If)===ff}return he$2.AsyncMode=df,he$2.ConcurrentMode=ff,he$2.ContextConsumer=uf,he$2.ContextProvider=mc,he$2.Element=Ai,he$2.ForwardRef=hf,he$2.Fragment=Ra,he$2.Lazy=yf,he$2.Memo=gf,he$2.Portal=bo,he$2.Profiler=pc,he$2.StrictMode=hc,he$2.Suspense=pf,he$2.isAsyncMode=function(If){return Hp(If)||wf(If)===df},he$2.isConcurrentMode=Hp,he$2.isContextConsumer=function(If){return wf(If)===uf},he$2.isContextProvider=function(If){return wf(If)===mc},he$2.isElement=function(If){return typeof If=="object"&&If!==null&&If.$$typeof===Ai},he$2.isForwardRef=function(If){return wf(If)===hf},he$2.isFragment=function(If){return wf(If)===Ra},he$2.isLazy=function(If){return wf(If)===yf},he$2.isMemo=function(If){return wf(If)===gf},he$2.isPortal=function(If){return wf(If)===bo},he$2.isProfiler=function(If){return wf(If)===pc},he$2.isStrictMode=function(If){return wf(If)===hc},he$2.isSuspense=function(If){return wf(If)===pf},he$2.isValidElementType=function(If){return typeof If=="string"||typeof If=="function"||If===Ra||If===ff||If===pc||If===hc||If===pf||If===mf||typeof If=="object"&&If!==null&&(If.$$typeof===yf||If.$$typeof===gf||If.$$typeof===mc||If.$$typeof===uf||If.$$typeof===hf||If.$$typeof===bf||If.$$typeof===Sf||If.$$typeof===xf||If.$$typeof===vf)},he$2.typeOf=wf,he$2}var Zi;function Op(){return Zi||(Zi=1,Do.exports=Tp()),Do.exports}var Ro,Qi;function Mp(){if(Qi)return Ro;Qi=1;var vo=Op(),Ai={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},bo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ra={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},hc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},pc={};pc[vo.ForwardRef]=Ra,pc[vo.Memo]=hc;function mc(yf){return vo.isMemo(yf)?hc:pc[yf.$$typeof]||Ai}var uf=Object.defineProperty,df=Object.getOwnPropertyNames,ff=Object.getOwnPropertySymbols,hf=Object.getOwnPropertyDescriptor,pf=Object.getPrototypeOf,mf=Object.prototype;function gf(yf,vf,bf){if(typeof vf!="string"){if(mf){var Sf=pf(vf);Sf&&Sf!==mf&&gf(yf,Sf,bf)}var xf=df(vf);ff&&(xf=xf.concat(ff(vf)));for(var wf=mc(yf),Hp=mc(vf),If=0;If<xf.length;++If){var Km=xf[If];if(!bo[Km]&&!(bf&&bf[Km])&&!(Hp&&Hp[Km])&&!(wf&&wf[Km])){var s1=hf(vf,Km);try{uf(yf,Km,s1)}catch{}}}}return yf}return Ro=gf,Ro}Mp();var Np=!0;function Ap(vo,Ai,bo){var Ra="";return bo.split(" ").forEach(function(hc){vo[hc]!==void 0?Ai.push(vo[hc]+";"):hc&&(Ra+=hc+" ")}),Ra}var Kc=function(vo,Ai,bo){var Ra=vo.key+"-"+Ai.name;(bo===!1||Np===!1)&&vo.registered[Ra]===void 0&&(vo.registered[Ra]=Ai.styles)},Dp=function(vo,Ai,bo){Kc(vo,Ai,bo);var Ra=vo.key+"-"+Ai.name;if(vo.inserted[Ai.name]===void 0){var hc=Ai;do vo.insert(Ai===hc?"."+Ra:"",hc,vo.sheet,!0),hc=hc.next;while(hc!==void 0)}};function Rp(vo){for(var Ai=0,bo,Ra=0,hc=vo.length;hc>=4;++Ra,hc-=4)bo=vo.charCodeAt(Ra)&255|(vo.charCodeAt(++Ra)&255)<<8|(vo.charCodeAt(++Ra)&255)<<16|(vo.charCodeAt(++Ra)&255)<<24,bo=(bo&65535)*1540483477+((bo>>>16)*59797<<16),bo^=bo>>>24,Ai=(bo&65535)*1540483477+((bo>>>16)*59797<<16)^(Ai&65535)*1540483477+((Ai>>>16)*59797<<16);switch(hc){case 3:Ai^=(vo.charCodeAt(Ra+2)&255)<<16;case 2:Ai^=(vo.charCodeAt(Ra+1)&255)<<8;case 1:Ai^=vo.charCodeAt(Ra)&255,Ai=(Ai&65535)*1540483477+((Ai>>>16)*59797<<16)}return Ai^=Ai>>>13,Ai=(Ai&65535)*1540483477+((Ai>>>16)*59797<<16),((Ai^Ai>>>15)>>>0).toString(36)}var _p={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},kp=/[A-Z]|^ms/g,Fp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zc=function(vo){return vo.charCodeAt(1)===45},Ji=function(vo){return vo!=null&&typeof vo!="boolean"},_o=bp(function(vo){return Zc(vo)?vo:vo.replace(kp,"-$&").toLowerCase()}),es$1=function(vo,Ai){switch(vo){case"animation":case"animationName":if(typeof Ai=="string")return Ai.replace(Fp,function(bo,Ra,hc){return dt$1={name:Ra,styles:hc,next:dt$1},Ra})}return _p[vo]!==1&&!Zc(vo)&&typeof Ai=="number"&&Ai!==0?Ai+"px":Ai};function $n$2(vo,Ai,bo){if(bo==null)return"";var Ra=bo;if(Ra.__emotion_styles!==void 0)return Ra;switch(typeof bo){case"boolean":return"";case"object":{var hc=bo;if(hc.anim===1)return dt$1={name:hc.name,styles:hc.styles,next:dt$1},hc.name;var pc=bo;if(pc.styles!==void 0){var mc=pc.next;if(mc!==void 0)for(;mc!==void 0;)dt$1={name:mc.name,styles:mc.styles,next:dt$1},mc=mc.next;var uf=pc.styles+";";return uf}return Vp(vo,Ai,bo)}case"function":{if(vo!==void 0){var df=dt$1,ff=bo(vo);return dt$1=df,$n$2(vo,Ai,ff)}break}}var hf=bo;return hf}function Vp(vo,Ai,bo){var Ra="";if(Array.isArray(bo))for(var hc=0;hc<bo.length;hc++)Ra+=$n$2(vo,Ai,bo[hc])+";";else for(var pc in bo){var mc=bo[pc];if(typeof mc!="object"){var uf=mc;Ji(uf)&&(Ra+=_o(pc)+":"+es$1(pc,uf)+";")}else if(Array.isArray(mc)&&typeof mc[0]=="string"&&Ai==null)for(var df=0;df<mc.length;df++)Ji(mc[df])&&(Ra+=_o(pc)+":"+es$1(pc,mc[df])+";");else{var ff=$n$2(vo,Ai,mc);switch(pc){case"animation":case"animationName":{Ra+=_o(pc)+":"+ff+";";break}default:Ra+=pc+"{"+ff+"}"}}}return Ra}var ts$1=/label:\s*([^\s;{]+)\s*(;|$)/g,dt$1;function Qc(vo,Ai,bo){if(vo.length===1&&typeof vo[0]=="object"&&vo[0]!==null&&vo[0].styles!==void 0)return vo[0];var Ra=!0,hc="";dt$1=void 0;var pc=vo[0];if(pc==null||pc.raw===void 0)Ra=!1,hc+=$n$2(bo,Ai,pc);else{var mc=pc;hc+=mc[0]}for(var uf=1;uf<vo.length;uf++)if(hc+=$n$2(bo,Ai,vo[uf]),Ra){var df=pc;hc+=df[uf]}ts$1.lastIndex=0;for(var ff="",hf;(hf=ts$1.exec(hc))!==null;)ff+="-"+hf[1];var pf=Rp(hc)+ff;return{name:pf,styles:hc,next:dt$1}}var Lp=function(vo){return vo()},$p=y$2.useInsertionEffect?y$2.useInsertionEffect:!1,Up=$p||Lp,Jc=y$2.createContext(typeof HTMLElement<"u"?Pp({key:"css"}):null);Jc.Provider;var Wp=function(vo){return forwardRef(function(Ai,bo){var Ra=useContext(Jc);return vo(Ai,Ra,bo)})},Bp=y$2.createContext({}),Ba={}.hasOwnProperty,va="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",zp=function(vo,Ai){var bo={};for(var Ra in Ai)Ba.call(Ai,Ra)&&(bo[Ra]=Ai[Ra]);return bo[va]=vo,bo},jp=function(vo){var Ai=vo.cache,bo=vo.serialized,Ra=vo.isStringTag;return Kc(Ai,bo,Ra),Up(function(){return Dp(Ai,bo,Ra)}),null},Yp=Wp(function(vo,Ai,bo){var Ra=vo.css;typeof Ra=="string"&&Ai.registered[Ra]!==void 0&&(Ra=Ai.registered[Ra]);var hc=vo[va],pc=[Ra],mc="";typeof vo.className=="string"?mc=Ap(Ai.registered,pc,vo.className):vo.className!=null&&(mc=vo.className+" ");var uf=Qc(pc,void 0,y$2.useContext(Bp));mc+=Ai.key+"-"+uf.name;var df={};for(var ff in vo)Ba.call(vo,ff)&&ff!=="css"&&ff!==va&&(df[ff]=vo[ff]);return df.className=mc,bo&&(df.ref=bo),y$2.createElement(y$2.Fragment,null,y$2.createElement(jp,{cache:Ai,serialized:uf,isStringTag:typeof hc=="string"}),y$2.createElement(hc,df))}),Gp=Yp,Q$1=function(vo,Ai){var bo=arguments;if(Ai==null||!Ba.call(Ai,"css"))return y$2.createElement.apply(void 0,bo);var Ra=bo.length,hc=new Array(Ra);hc[0]=Gp,hc[1]=zp(vo,Ai);for(var pc=2;pc<Ra;pc++)hc[pc]=bo[pc];return y$2.createElement.apply(null,hc)};(function(vo){var Ai;Ai||(Ai=vo.JSX||(vo.JSX={}))})(Q$1);function za(){for(var vo=arguments.length,Ai=new Array(vo),bo=0;bo<vo;bo++)Ai[bo]=arguments[bo];return Qc(Ai)}function qp(){var vo=za.apply(void 0,arguments),Ai="animation-"+vo.name;return{name:Ai,styles:"@keyframes "+Ai+"{"+vo.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function Xp(vo,Ai){return Ai||(Ai=vo.slice(0)),Object.freeze(Object.defineProperties(vo,{raw:{value:Object.freeze(Ai)}}))}const Kp=["top","right","bottom","left"],Vt$1=Math.min,Xe$2=Math.max,Ar$2=Math.round,ir$1=Math.floor,vt$2=vo=>({x:vo,y:vo}),Zp={left:"right",right:"left",bottom:"top",top:"bottom"},Qp={start:"end",end:"start"};function ba(vo,Ai,bo){return Xe$2(vo,Vt$1(Ai,bo))}function Ct$2(vo,Ai){return typeof vo=="function"?vo(Ai):vo}function It$2(vo){return vo.split("-")[0]}function yn$1(vo){return vo.split("-")[1]}function ja(vo){return vo==="x"?"y":"x"}function Ya$1(vo){return vo==="y"?"height":"width"}function Lt$2(vo){return["top","bottom"].includes(It$2(vo))?"y":"x"}function Ga(vo){return ja(Lt$2(vo))}function Jp(vo,Ai,bo){bo===void 0&&(bo=!1);const Ra=yn$1(vo),hc=Ga(vo),pc=Ya$1(hc);let mc=hc==="x"?Ra===(bo?"end":"start")?"right":"left":Ra==="start"?"bottom":"top";return Ai.reference[pc]>Ai.floating[pc]&&(mc=Dr$2(mc)),[mc,Dr$2(mc)]}function eh(vo){const Ai=Dr$2(vo);return[ya(vo),Ai,ya(Ai)]}function ya(vo){return vo.replace(/start|end/g,Ai=>Qp[Ai])}function th(vo,Ai,bo){const Ra=["left","right"],hc=["right","left"],pc=["top","bottom"],mc=["bottom","top"];switch(vo){case"top":case"bottom":return bo?Ai?hc:Ra:Ai?Ra:hc;case"left":case"right":return Ai?pc:mc;default:return[]}}function nh(vo,Ai,bo,Ra){const hc=yn$1(vo);let pc=th(It$2(vo),bo==="start",Ra);return hc&&(pc=pc.map(mc=>mc+"-"+hc),Ai&&(pc=pc.concat(pc.map(ya)))),pc}function Dr$2(vo){return vo.replace(/left|right|bottom|top/g,Ai=>Zp[Ai])}function rh(vo){return{top:0,right:0,bottom:0,left:0,...vo}}function el(vo){return typeof vo!="number"?rh(vo):{top:vo,right:vo,bottom:vo,left:vo}}function Rr$2(vo){const{x:Ai,y:bo,width:Ra,height:hc}=vo;return{width:Ra,height:hc,top:bo,left:Ai,right:Ai+Ra,bottom:bo+hc,x:Ai,y:bo}}function ns(vo,Ai,bo){let{reference:Ra,floating:hc}=vo;const pc=Lt$2(Ai),mc=Ga(Ai),uf=Ya$1(mc),df=It$2(Ai),ff=pc==="y",hf=Ra.x+Ra.width/2-hc.width/2,pf=Ra.y+Ra.height/2-hc.height/2,mf=Ra[uf]/2-hc[uf]/2;let gf;switch(df){case"top":gf={x:hf,y:Ra.y-hc.height};break;case"bottom":gf={x:hf,y:Ra.y+Ra.height};break;case"right":gf={x:Ra.x+Ra.width,y:pf};break;case"left":gf={x:Ra.x-hc.width,y:pf};break;default:gf={x:Ra.x,y:Ra.y}}switch(yn$1(Ai)){case"start":gf[mc]-=mf*(bo&&ff?-1:1);break;case"end":gf[mc]+=mf*(bo&&ff?-1:1);break}return gf}const oh=async(vo,Ai,bo)=>{const{placement:Ra="bottom",strategy:hc="absolute",middleware:pc=[],platform:mc}=bo,uf=pc.filter(Boolean),df=await(mc.isRTL==null?void 0:mc.isRTL(Ai));let ff=await mc.getElementRects({reference:vo,floating:Ai,strategy:hc}),{x:hf,y:pf}=ns(ff,Ra,df),mf=Ra,gf={},yf=0;for(let vf=0;vf<uf.length;vf++){const{name:bf,fn:Sf}=uf[vf],{x:xf,y:wf,data:Hp,reset:If}=await Sf({x:hf,y:pf,initialPlacement:Ra,placement:mf,strategy:hc,middlewareData:gf,rects:ff,platform:mc,elements:{reference:vo,floating:Ai}});hf=xf??hf,pf=wf??pf,gf={...gf,[bf]:{...gf[bf],...Hp}},If&&yf<=50&&(yf++,typeof If=="object"&&(If.placement&&(mf=If.placement),If.rects&&(ff=If.rects===!0?await mc.getElementRects({reference:vo,floating:Ai,strategy:hc}):If.rects),{x:hf,y:pf}=ns(ff,mf,df)),vf=-1)}return{x:hf,y:pf,placement:mf,strategy:hc,middlewareData:gf}};async function Un$2(vo,Ai){var bo;Ai===void 0&&(Ai={});const{x:Ra,y:hc,platform:pc,rects:mc,elements:uf,strategy:df}=vo,{boundary:ff="clippingAncestors",rootBoundary:hf="viewport",elementContext:pf="floating",altBoundary:mf=!1,padding:gf=0}=Ct$2(Ai,vo),yf=el(gf),vf=uf[mf?pf==="floating"?"reference":"floating":pf],bf=Rr$2(await pc.getClippingRect({element:(bo=await(pc.isElement==null?void 0:pc.isElement(vf)))==null||bo?vf:vf.contextElement||await(pc.getDocumentElement==null?void 0:pc.getDocumentElement(uf.floating)),boundary:ff,rootBoundary:hf,strategy:df})),Sf=pf==="floating"?{x:Ra,y:hc,width:mc.floating.width,height:mc.floating.height}:mc.reference,xf=await(pc.getOffsetParent==null?void 0:pc.getOffsetParent(uf.floating)),wf=await(pc.isElement==null?void 0:pc.isElement(xf))?await(pc.getScale==null?void 0:pc.getScale(xf))||{x:1,y:1}:{x:1,y:1},Hp=Rr$2(pc.convertOffsetParentRelativeRectToViewportRelativeRect?await pc.convertOffsetParentRelativeRectToViewportRelativeRect({elements:uf,rect:Sf,offsetParent:xf,strategy:df}):Sf);return{top:(bf.top-Hp.top+yf.top)/wf.y,bottom:(Hp.bottom-bf.bottom+yf.bottom)/wf.y,left:(bf.left-Hp.left+yf.left)/wf.x,right:(Hp.right-bf.right+yf.right)/wf.x}}const ah=vo=>({name:"arrow",options:vo,async fn(Ai){const{x:bo,y:Ra,placement:hc,rects:pc,platform:mc,elements:uf,middlewareData:df}=Ai,{element:ff,padding:hf=0}=Ct$2(vo,Ai)||{};if(ff==null)return{};const pf=el(hf),mf={x:bo,y:Ra},gf=Ga(hc),yf=Ya$1(gf),vf=await mc.getDimensions(ff),bf=gf==="y",Sf=bf?"top":"left",xf=bf?"bottom":"right",wf=bf?"clientHeight":"clientWidth",Hp=pc.reference[yf]+pc.reference[gf]-mf[gf]-pc.floating[yf],If=mf[gf]-pc.reference[gf],Km=await(mc.getOffsetParent==null?void 0:mc.getOffsetParent(ff));let s1=Km?Km[wf]:0;(!s1||!await(mc.isElement==null?void 0:mc.isElement(Km)))&&(s1=uf.floating[wf]||pc.floating[yf]);const d1=Hp/2-If/2,O1=s1/2-vf[yf]/2-1,k1=Vt$1(pf[Sf],O1),_1=Vt$1(pf[xf],O1),m1=k1,R1=s1-vf[yf]-_1,c1=s1/2-vf[yf]/2+d1,f1=ba(m1,c1,R1),E1=!df.arrow&&yn$1(hc)!=null&&c1!==f1&&pc.reference[yf]/2-(c1<m1?k1:_1)-vf[yf]/2<0,D1=E1?c1<m1?c1-m1:c1-R1:0;return{[gf]:mf[gf]+D1,data:{[gf]:f1,centerOffset:c1-f1-D1,...E1&&{alignmentOffset:D1}},reset:E1}}}),ih=function(vo){return vo===void 0&&(vo={}),{name:"flip",options:vo,async fn(Ai){var bo,Ra;const{placement:hc,middlewareData:pc,rects:mc,initialPlacement:uf,platform:df,elements:ff}=Ai,{mainAxis:hf=!0,crossAxis:pf=!0,fallbackPlacements:mf,fallbackStrategy:gf="bestFit",fallbackAxisSideDirection:yf="none",flipAlignment:vf=!0,...bf}=Ct$2(vo,Ai);if((bo=pc.arrow)!=null&&bo.alignmentOffset)return{};const Sf=It$2(hc),xf=Lt$2(uf),wf=It$2(uf)===uf,Hp=await(df.isRTL==null?void 0:df.isRTL(ff.floating)),If=mf||(wf||!vf?[Dr$2(uf)]:eh(uf)),Km=yf!=="none";!mf&&Km&&If.push(...nh(uf,vf,yf,Hp));const s1=[uf,...If],d1=await Un$2(Ai,bf),O1=[];let k1=((Ra=pc.flip)==null?void 0:Ra.overflows)||[];if(hf&&O1.push(d1[Sf]),pf){const c1=Jp(hc,mc,Hp);O1.push(d1[c1[0]],d1[c1[1]])}if(k1=[...k1,{placement:hc,overflows:O1}],!O1.every(c1=>c1<=0)){var _1,m1;const c1=(((_1=pc.flip)==null?void 0:_1.index)||0)+1,f1=s1[c1];if(f1)return{data:{index:c1,overflows:k1},reset:{placement:f1}};let E1=(m1=k1.filter(D1=>D1.overflows[0]<=0).sort((D1,j1)=>D1.overflows[1]-j1.overflows[1])[0])==null?void 0:m1.placement;if(!E1)switch(gf){case"bestFit":{var R1;const D1=(R1=k1.filter(j1=>{if(Km){const F1=Lt$2(j1.placement);return F1===xf||F1==="y"}return!0}).map(j1=>[j1.placement,j1.overflows.filter(F1=>F1>0).reduce((F1,G1)=>F1+G1,0)]).sort((j1,F1)=>j1[1]-F1[1])[0])==null?void 0:R1[0];D1&&(E1=D1);break}case"initialPlacement":E1=uf;break}if(hc!==E1)return{reset:{placement:E1}}}return{}}}};function rs(vo,Ai){return{top:vo.top-Ai.height,right:vo.right-Ai.width,bottom:vo.bottom-Ai.height,left:vo.left-Ai.width}}function os(vo){return Kp.some(Ai=>vo[Ai]>=0)}const sh=function(vo){return vo===void 0&&(vo={}),{name:"hide",options:vo,async fn(Ai){const{rects:bo}=Ai,{strategy:Ra="referenceHidden",...hc}=Ct$2(vo,Ai);switch(Ra){case"referenceHidden":{const pc=await Un$2(Ai,{...hc,elementContext:"reference"}),mc=rs(pc,bo.reference);return{data:{referenceHiddenOffsets:mc,referenceHidden:os(mc)}}}case"escaped":{const pc=await Un$2(Ai,{...hc,altBoundary:!0}),mc=rs(pc,bo.floating);return{data:{escapedOffsets:mc,escaped:os(mc)}}}default:return{}}}}};async function ch(vo,Ai){const{placement:bo,platform:Ra,elements:hc}=vo,pc=await(Ra.isRTL==null?void 0:Ra.isRTL(hc.floating)),mc=It$2(bo),uf=yn$1(bo),df=Lt$2(bo)==="y",ff=["left","top"].includes(mc)?-1:1,hf=pc&&df?-1:1,pf=Ct$2(Ai,vo);let{mainAxis:mf,crossAxis:gf,alignmentAxis:yf}=typeof pf=="number"?{mainAxis:pf,crossAxis:0,alignmentAxis:null}:{mainAxis:pf.mainAxis||0,crossAxis:pf.crossAxis||0,alignmentAxis:pf.alignmentAxis};return uf&&typeof yf=="number"&&(gf=uf==="end"?yf*-1:yf),df?{x:gf*hf,y:mf*ff}:{x:mf*ff,y:gf*hf}}const lh=function(vo){return vo===void 0&&(vo=0),{name:"offset",options:vo,async fn(Ai){var bo,Ra;const{x:hc,y:pc,placement:mc,middlewareData:uf}=Ai,df=await ch(Ai,vo);return mc===((bo=uf.offset)==null?void 0:bo.placement)&&(Ra=uf.arrow)!=null&&Ra.alignmentOffset?{}:{x:hc+df.x,y:pc+df.y,data:{...df,placement:mc}}}}},uh=function(vo){return vo===void 0&&(vo={}),{name:"shift",options:vo,async fn(Ai){const{x:bo,y:Ra,placement:hc}=Ai,{mainAxis:pc=!0,crossAxis:mc=!1,limiter:uf={fn:bf=>{let{x:Sf,y:xf}=bf;return{x:Sf,y:xf}}},...df}=Ct$2(vo,Ai),ff={x:bo,y:Ra},hf=await Un$2(Ai,df),pf=Lt$2(It$2(hc)),mf=ja(pf);let gf=ff[mf],yf=ff[pf];if(pc){const bf=mf==="y"?"top":"left",Sf=mf==="y"?"bottom":"right",xf=gf+hf[bf],wf=gf-hf[Sf];gf=ba(xf,gf,wf)}if(mc){const bf=pf==="y"?"top":"left",Sf=pf==="y"?"bottom":"right",xf=yf+hf[bf],wf=yf-hf[Sf];yf=ba(xf,yf,wf)}const vf=uf.fn({...Ai,[mf]:gf,[pf]:yf});return{...vf,data:{x:vf.x-bo,y:vf.y-Ra,enabled:{[mf]:pc,[pf]:mc}}}}}},dh=function(vo){return vo===void 0&&(vo={}),{options:vo,fn(Ai){const{x:bo,y:Ra,placement:hc,rects:pc,middlewareData:mc}=Ai,{offset:uf=0,mainAxis:df=!0,crossAxis:ff=!0}=Ct$2(vo,Ai),hf={x:bo,y:Ra},pf=Lt$2(hc),mf=ja(pf);let gf=hf[mf],yf=hf[pf];const vf=Ct$2(uf,Ai),bf=typeof vf=="number"?{mainAxis:vf,crossAxis:0}:{mainAxis:0,crossAxis:0,...vf};if(df){const wf=mf==="y"?"height":"width",Hp=pc.reference[mf]-pc.floating[wf]+bf.mainAxis,If=pc.reference[mf]+pc.reference[wf]-bf.mainAxis;gf<Hp?gf=Hp:gf>If&&(gf=If)}if(ff){var Sf,xf;const wf=mf==="y"?"width":"height",Hp=["top","left"].includes(It$2(hc)),If=pc.reference[pf]-pc.floating[wf]+(Hp&&((Sf=mc.offset)==null?void 0:Sf[pf])||0)+(Hp?0:bf.crossAxis),Km=pc.reference[pf]+pc.reference[wf]+(Hp?0:((xf=mc.offset)==null?void 0:xf[pf])||0)-(Hp?bf.crossAxis:0);yf<If?yf=If:yf>Km&&(yf=Km)}return{[mf]:gf,[pf]:yf}}}},fh=function(vo){return vo===void 0&&(vo={}),{name:"size",options:vo,async fn(Ai){var bo,Ra;const{placement:hc,rects:pc,platform:mc,elements:uf}=Ai,{apply:df=()=>{},...ff}=Ct$2(vo,Ai),hf=await Un$2(Ai,ff),pf=It$2(hc),mf=yn$1(hc),gf=Lt$2(hc)==="y",{width:yf,height:vf}=pc.floating;let bf,Sf;pf==="top"||pf==="bottom"?(bf=pf,Sf=mf===(await(mc.isRTL==null?void 0:mc.isRTL(uf.floating))?"start":"end")?"left":"right"):(Sf=pf,bf=mf==="end"?"top":"bottom");const xf=vf-hf.top-hf.bottom,wf=yf-hf.left-hf.right,Hp=Vt$1(vf-hf[bf],xf),If=Vt$1(yf-hf[Sf],wf),Km=!Ai.middlewareData.shift;let s1=Hp,d1=If;if((bo=Ai.middlewareData.shift)!=null&&bo.enabled.x&&(d1=wf),(Ra=Ai.middlewareData.shift)!=null&&Ra.enabled.y&&(s1=xf),Km&&!mf){const k1=Xe$2(hf.left,0),_1=Xe$2(hf.right,0),m1=Xe$2(hf.top,0),R1=Xe$2(hf.bottom,0);gf?d1=yf-2*(k1!==0||_1!==0?k1+_1:Xe$2(hf.left,hf.right)):s1=vf-2*(m1!==0||R1!==0?m1+R1:Xe$2(hf.top,hf.bottom))}await df({...Ai,availableWidth:d1,availableHeight:s1});const O1=await mc.getDimensions(uf.floating);return yf!==O1.width||vf!==O1.height?{reset:{rects:!0}}:{}}}};function Jr$2(){return typeof window<"u"}function wn$2(vo){return tl(vo)?(vo.nodeName||"").toLowerCase():"#document"}function Ze(vo){var Ai;return(vo==null||(Ai=vo.ownerDocument)==null?void 0:Ai.defaultView)||window}function yt$2(vo){var Ai;return(Ai=(tl(vo)?vo.ownerDocument:vo.document)||window.document)==null?void 0:Ai.documentElement}function tl(vo){return Jr$2()?vo instanceof Node||vo instanceof Ze(vo).Node:!1}function rt$1(vo){return Jr$2()?vo instanceof Element||vo instanceof Ze(vo).Element:!1}function bt$1(vo){return Jr$2()?vo instanceof HTMLElement||vo instanceof Ze(vo).HTMLElement:!1}function as$1(vo){return!Jr$2()||typeof ShadowRoot>"u"?!1:vo instanceof ShadowRoot||vo instanceof Ze(vo).ShadowRoot}function Zn$1(vo){const{overflow:Ai,overflowX:bo,overflowY:Ra,display:hc}=ot$1(vo);return/auto|scroll|overlay|hidden|clip/.test(Ai+Ra+bo)&&!["inline","contents"].includes(hc)}function mh(vo){return["table","td","th"].includes(wn$2(vo))}function eo$2(vo){return[":popover-open",":modal"].some(Ai=>{try{return vo.matches(Ai)}catch{return!1}})}function qa(vo){const Ai=Xa$1(),bo=rt$1(vo)?ot$1(vo):vo;return bo.transform!=="none"||bo.perspective!=="none"||(bo.containerType?bo.containerType!=="normal":!1)||!Ai&&(bo.backdropFilter?bo.backdropFilter!=="none":!1)||!Ai&&(bo.filter?bo.filter!=="none":!1)||["transform","perspective","filter"].some(Ra=>(bo.willChange||"").includes(Ra))||["paint","layout","strict","content"].some(Ra=>(bo.contain||"").includes(Ra))}function ph(vo){let Ai=$t$2(vo);for(;bt$1(Ai)&&!hn$1(Ai);){if(qa(Ai))return Ai;if(eo$2(Ai))return null;Ai=$t$2(Ai)}return null}function Xa$1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function hn$1(vo){return["html","body","#document"].includes(wn$2(vo))}function ot$1(vo){return Ze(vo).getComputedStyle(vo)}function to$2(vo){return rt$1(vo)?{scrollLeft:vo.scrollLeft,scrollTop:vo.scrollTop}:{scrollLeft:vo.scrollX,scrollTop:vo.scrollY}}function $t$2(vo){if(wn$2(vo)==="html")return vo;const Ai=vo.assignedSlot||vo.parentNode||as$1(vo)&&vo.host||yt$2(vo);return as$1(Ai)?Ai.host:Ai}function nl(vo){const Ai=$t$2(vo);return hn$1(Ai)?vo.ownerDocument?vo.ownerDocument.body:vo.body:bt$1(Ai)&&Zn$1(Ai)?Ai:nl(Ai)}function Hn$2(vo,Ai,bo){var Ra;Ai===void 0&&(Ai=[]),bo===void 0&&(bo=!0);const hc=nl(vo),pc=hc===((Ra=vo.ownerDocument)==null?void 0:Ra.body),mc=Ze(hc);if(pc){const uf=wa(mc);return Ai.concat(mc,mc.visualViewport||[],Zn$1(hc)?hc:[],uf&&bo?Hn$2(uf):[])}return Ai.concat(hc,Hn$2(hc,[],bo))}function wa(vo){return vo.parent&&Object.getPrototypeOf(vo.parent)?vo.frameElement:null}function rl(vo){const Ai=ot$1(vo);let bo=parseFloat(Ai.width)||0,Ra=parseFloat(Ai.height)||0;const hc=bt$1(vo),pc=hc?vo.offsetWidth:bo,mc=hc?vo.offsetHeight:Ra,uf=Ar$2(bo)!==pc||Ar$2(Ra)!==mc;return uf&&(bo=pc,Ra=mc),{width:bo,height:Ra,$:uf}}function Ka$1(vo){return rt$1(vo)?vo:vo.contextElement}function un$1(vo){const Ai=Ka$1(vo);if(!bt$1(Ai))return vt$2(1);const bo=Ai.getBoundingClientRect(),{width:Ra,height:hc,$:pc}=rl(Ai);let mc=(pc?Ar$2(bo.width):bo.width)/Ra,uf=(pc?Ar$2(bo.height):bo.height)/hc;return(!mc||!Number.isFinite(mc))&&(mc=1),(!uf||!Number.isFinite(uf))&&(uf=1),{x:mc,y:uf}}const hh=vt$2(0);function ol(vo){const Ai=Ze(vo);return!Xa$1()||!Ai.visualViewport?hh:{x:Ai.visualViewport.offsetLeft,y:Ai.visualViewport.offsetTop}}function gh(vo,Ai,bo){return Ai===void 0&&(Ai=!1),!bo||Ai&&bo!==Ze(vo)?!1:Ai}function qt$1(vo,Ai,bo,Ra){Ai===void 0&&(Ai=!1),bo===void 0&&(bo=!1);const hc=vo.getBoundingClientRect(),pc=Ka$1(vo);let mc=vt$2(1);Ai&&(Ra?rt$1(Ra)&&(mc=un$1(Ra)):mc=un$1(vo));const uf=gh(pc,bo,Ra)?ol(pc):vt$2(0);let df=(hc.left+uf.x)/mc.x,ff=(hc.top+uf.y)/mc.y,hf=hc.width/mc.x,pf=hc.height/mc.y;if(pc){const mf=Ze(pc),gf=Ra&&rt$1(Ra)?Ze(Ra):Ra;let yf=mf,vf=wa(yf);for(;vf&&Ra&&gf!==yf;){const bf=un$1(vf),Sf=vf.getBoundingClientRect(),xf=ot$1(vf),wf=Sf.left+(vf.clientLeft+parseFloat(xf.paddingLeft))*bf.x,Hp=Sf.top+(vf.clientTop+parseFloat(xf.paddingTop))*bf.y;df*=bf.x,ff*=bf.y,hf*=bf.x,pf*=bf.y,df+=wf,ff+=Hp,yf=Ze(vf),vf=wa(yf)}}return Rr$2({width:hf,height:pf,x:df,y:ff})}function Za(vo,Ai){const bo=to$2(vo).scrollLeft;return Ai?Ai.left+bo:qt$1(yt$2(vo)).left+bo}function al(vo,Ai,bo){bo===void 0&&(bo=!1);const Ra=vo.getBoundingClientRect(),hc=Ra.left+Ai.scrollLeft-(bo?0:Za(vo,Ra)),pc=Ra.top+Ai.scrollTop;return{x:hc,y:pc}}function vh(vo){let{elements:Ai,rect:bo,offsetParent:Ra,strategy:hc}=vo;const pc=hc==="fixed",mc=yt$2(Ra),uf=Ai?eo$2(Ai.floating):!1;if(Ra===mc||uf&&pc)return bo;let df={scrollLeft:0,scrollTop:0},ff=vt$2(1);const hf=vt$2(0),pf=bt$1(Ra);if((pf||!pf&&!pc)&&((wn$2(Ra)!=="body"||Zn$1(mc))&&(df=to$2(Ra)),bt$1(Ra))){const gf=qt$1(Ra);ff=un$1(Ra),hf.x=gf.x+Ra.clientLeft,hf.y=gf.y+Ra.clientTop}const mf=mc&&!pf&&!pc?al(mc,df,!0):vt$2(0);return{width:bo.width*ff.x,height:bo.height*ff.y,x:bo.x*ff.x-df.scrollLeft*ff.x+hf.x+mf.x,y:bo.y*ff.y-df.scrollTop*ff.y+hf.y+mf.y}}function bh(vo){return Array.from(vo.getClientRects())}function yh(vo){const Ai=yt$2(vo),bo=to$2(vo),Ra=vo.ownerDocument.body,hc=Xe$2(Ai.scrollWidth,Ai.clientWidth,Ra.scrollWidth,Ra.clientWidth),pc=Xe$2(Ai.scrollHeight,Ai.clientHeight,Ra.scrollHeight,Ra.clientHeight);let mc=-bo.scrollLeft+Za(vo);const uf=-bo.scrollTop;return ot$1(Ra).direction==="rtl"&&(mc+=Xe$2(Ai.clientWidth,Ra.clientWidth)-hc),{width:hc,height:pc,x:mc,y:uf}}function wh(vo,Ai){const bo=Ze(vo),Ra=yt$2(vo),hc=bo.visualViewport;let pc=Ra.clientWidth,mc=Ra.clientHeight,uf=0,df=0;if(hc){pc=hc.width,mc=hc.height;const ff=Xa$1();(!ff||ff&&Ai==="fixed")&&(uf=hc.offsetLeft,df=hc.offsetTop)}return{width:pc,height:mc,x:uf,y:df}}function xh(vo,Ai){const bo=qt$1(vo,!0,Ai==="fixed"),Ra=bo.top+vo.clientTop,hc=bo.left+vo.clientLeft,pc=bt$1(vo)?un$1(vo):vt$2(1),mc=vo.clientWidth*pc.x,uf=vo.clientHeight*pc.y,df=hc*pc.x,ff=Ra*pc.y;return{width:mc,height:uf,x:df,y:ff}}function is$1(vo,Ai,bo){let Ra;if(Ai==="viewport")Ra=wh(vo,bo);else if(Ai==="document")Ra=yh(yt$2(vo));else if(rt$1(Ai))Ra=xh(Ai,bo);else{const hc=ol(vo);Ra={x:Ai.x-hc.x,y:Ai.y-hc.y,width:Ai.width,height:Ai.height}}return Rr$2(Ra)}function il(vo,Ai){const bo=$t$2(vo);return bo===Ai||!rt$1(bo)||hn$1(bo)?!1:ot$1(bo).position==="fixed"||il(bo,Ai)}function Sh(vo,Ai){const bo=Ai.get(vo);if(bo)return bo;let Ra=Hn$2(vo,[],!1).filter(uf=>rt$1(uf)&&wn$2(uf)!=="body"),hc=null;const pc=ot$1(vo).position==="fixed";let mc=pc?$t$2(vo):vo;for(;rt$1(mc)&&!hn$1(mc);){const uf=ot$1(mc),df=qa(mc);!df&&uf.position==="fixed"&&(hc=null),(pc?!df&&!hc:!df&&uf.position==="static"&&hc&&["absolute","fixed"].includes(hc.position)||Zn$1(mc)&&!df&&il(vo,mc))?Ra=Ra.filter(ff=>ff!==mc):hc=uf,mc=$t$2(mc)}return Ai.set(vo,Ra),Ra}function Ch(vo){let{element:Ai,boundary:bo,rootBoundary:Ra,strategy:hc}=vo;const pc=[...bo==="clippingAncestors"?eo$2(Ai)?[]:Sh(Ai,this._c):[].concat(bo),Ra],mc=pc[0],uf=pc.reduce((df,ff)=>{const hf=is$1(Ai,ff,hc);return df.top=Xe$2(hf.top,df.top),df.right=Vt$1(hf.right,df.right),df.bottom=Vt$1(hf.bottom,df.bottom),df.left=Xe$2(hf.left,df.left),df},is$1(Ai,mc,hc));return{width:uf.right-uf.left,height:uf.bottom-uf.top,x:uf.left,y:uf.top}}function Ih(vo){const{width:Ai,height:bo}=rl(vo);return{width:Ai,height:bo}}function Eh(vo,Ai,bo){const Ra=bt$1(Ai),hc=yt$2(Ai),pc=bo==="fixed",mc=qt$1(vo,!0,pc,Ai);let uf={scrollLeft:0,scrollTop:0};const df=vt$2(0);if(Ra||!Ra&&!pc)if((wn$2(Ai)!=="body"||Zn$1(hc))&&(uf=to$2(Ai)),Ra){const mf=qt$1(Ai,!0,pc,Ai);df.x=mf.x+Ai.clientLeft,df.y=mf.y+Ai.clientTop}else hc&&(df.x=Za(hc));const ff=hc&&!Ra&&!pc?al(hc,uf):vt$2(0),hf=mc.left+uf.scrollLeft-df.x-ff.x,pf=mc.top+uf.scrollTop-df.y-ff.y;return{x:hf,y:pf,width:mc.width,height:mc.height}}function ko(vo){return ot$1(vo).position==="static"}function ss$1(vo,Ai){if(!bt$1(vo)||ot$1(vo).position==="fixed")return null;if(Ai)return Ai(vo);let bo=vo.offsetParent;return yt$2(vo)===bo&&(bo=bo.ownerDocument.body),bo}function sl(vo,Ai){const bo=Ze(vo);if(eo$2(vo))return bo;if(!bt$1(vo)){let hc=$t$2(vo);for(;hc&&!hn$1(hc);){if(rt$1(hc)&&!ko(hc))return hc;hc=$t$2(hc)}return bo}let Ra=ss$1(vo,Ai);for(;Ra&&mh(Ra)&&ko(Ra);)Ra=ss$1(Ra,Ai);return Ra&&hn$1(Ra)&&ko(Ra)&&!qa(Ra)?bo:Ra||ph(vo)||bo}const Ph=async function(vo){const Ai=this.getOffsetParent||sl,bo=this.getDimensions,Ra=await bo(vo.floating);return{reference:Eh(vo.reference,await Ai(vo.floating),vo.strategy),floating:{x:0,y:0,width:Ra.width,height:Ra.height}}};function Th(vo){return ot$1(vo).direction==="rtl"}const Oh={convertOffsetParentRelativeRectToViewportRelativeRect:vh,getDocumentElement:yt$2,getClippingRect:Ch,getOffsetParent:sl,getElementRects:Ph,getClientRects:bh,getDimensions:Ih,getScale:un$1,isElement:rt$1,isRTL:Th};function Mh(vo,Ai){let bo=null,Ra;const hc=yt$2(vo);function pc(){var uf;clearTimeout(Ra),(uf=bo)==null||uf.disconnect(),bo=null}function mc(uf,df){uf===void 0&&(uf=!1),df===void 0&&(df=1),pc();const{left:ff,top:hf,width:pf,height:mf}=vo.getBoundingClientRect();if(uf||Ai(),!pf||!mf)return;const gf=ir$1(hf),yf=ir$1(hc.clientWidth-(ff+pf)),vf=ir$1(hc.clientHeight-(hf+mf)),bf=ir$1(ff),Sf={rootMargin:-gf+"px "+-yf+"px "+-vf+"px "+-bf+"px",threshold:Xe$2(0,Vt$1(1,df))||1};let xf=!0;function wf(Hp){const If=Hp[0].intersectionRatio;if(If!==df){if(!xf)return mc();If?mc(!1,If):Ra=setTimeout(()=>{mc(!1,1e-7)},1e3)}xf=!1}try{bo=new IntersectionObserver(wf,{...Sf,root:hc.ownerDocument})}catch{bo=new IntersectionObserver(wf,Sf)}bo.observe(vo)}return mc(!0),pc}function cl(vo,Ai,bo,Ra){Ra===void 0&&(Ra={});const{ancestorScroll:hc=!0,ancestorResize:pc=!0,elementResize:mc=typeof ResizeObserver=="function",layoutShift:uf=typeof IntersectionObserver=="function",animationFrame:df=!1}=Ra,ff=Ka$1(vo),hf=hc||pc?[...ff?Hn$2(ff):[],...Hn$2(Ai)]:[];hf.forEach(Sf=>{hc&&Sf.addEventListener("scroll",bo,{passive:!0}),pc&&Sf.addEventListener("resize",bo)});const pf=ff&&uf?Mh(ff,bo):null;let mf=-1,gf=null;mc&&(gf=new ResizeObserver(Sf=>{let[xf]=Sf;xf&&xf.target===ff&&gf&&(gf.unobserve(Ai),cancelAnimationFrame(mf),mf=requestAnimationFrame(()=>{var wf;(wf=gf)==null||wf.observe(Ai)})),bo()}),ff&&!df&&gf.observe(ff),gf.observe(Ai));let yf,vf=df?qt$1(vo):null;df&&bf();function bf(){const Sf=qt$1(vo);vf&&(Sf.x!==vf.x||Sf.y!==vf.y||Sf.width!==vf.width||Sf.height!==vf.height)&&bo(),vf=Sf,yf=requestAnimationFrame(bf)}return bo(),()=>{var Sf;hf.forEach(xf=>{hc&&xf.removeEventListener("scroll",bo),pc&&xf.removeEventListener("resize",bo)}),pf==null||pf(),(Sf=gf)==null||Sf.disconnect(),gf=null,df&&cancelAnimationFrame(yf)}}const Nh=lh,Ah=uh,Dh=ih,Rh=fh,_h=sh,cs=ah,kh=dh,Fh=(vo,Ai,bo)=>{const Ra=new Map,hc={platform:Oh,...bo},pc={...hc.platform,_c:Ra};return oh(vo,Ai,{...hc,platform:pc})};var xa=useLayoutEffect,Vh=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],_r$2=function(){};function Lh(vo,Ai){return Ai?Ai[0]==="-"?vo+Ai:vo+"__"+Ai:vo}function $h(vo,Ai){for(var bo=arguments.length,Ra=new Array(bo>2?bo-2:0),hc=2;hc<bo;hc++)Ra[hc-2]=arguments[hc];var pc=[].concat(Ra);if(Ai&&vo)for(var mc in Ai)Ai.hasOwnProperty(mc)&&Ai[mc]&&pc.push("".concat(Lh(vo,mc)));return pc.filter(function(uf){return uf}).map(function(uf){return String(uf).trim()}).join(" ")}var ls$1=function(vo){return qh(vo)?vo.filter(Boolean):Ci$1(vo)==="object"&&vo!==null?[vo]:[]},ll=function(vo){vo.className,vo.clearValue,vo.cx,vo.getStyles,vo.getClassNames,vo.getValue,vo.hasValue,vo.isMulti,vo.isRtl,vo.options,vo.selectOption,vo.selectProps,vo.setValue,vo.theme;var Ai=Et$2(vo,Vh);return te$2({},Ai)},Ee$2=function(vo,Ai,bo){var Ra=vo.cx,hc=vo.getStyles,pc=vo.getClassNames,mc=vo.className;return{css:hc(Ai,vo),className:Ra(bo??{},pc(Ai,vo),mc)}};function no$1(vo){return[document.documentElement,document.body,window].indexOf(vo)>-1}function Uh(vo){return no$1(vo)?window.innerHeight:vo.clientHeight}function ul(vo){return no$1(vo)?window.pageYOffset:vo.scrollTop}function kr$2(vo,Ai){if(no$1(vo)){window.scrollTo(0,Ai);return}vo.scrollTop=Ai}function Hh(vo){var Ai=getComputedStyle(vo),bo=Ai.position==="absolute",Ra=/(auto|scroll)/;if(Ai.position==="fixed")return document.documentElement;for(var hc=vo;hc=hc.parentElement;)if(Ai=getComputedStyle(hc),!(bo&&Ai.position==="static")&&Ra.test(Ai.overflow+Ai.overflowY+Ai.overflowX))return hc;return document.documentElement}function Wh(vo,Ai,bo,Ra){return bo*((vo=vo/Ra-1)*vo*vo+1)+Ai}function sr$1(vo,Ai){var bo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,Ra=arguments.length>3&&arguments[3]!==void 0?arguments[3]:_r$2,hc=ul(vo),pc=Ai-hc,mc=10,uf=0;function df(){uf+=mc;var ff=Wh(uf,hc,pc,bo);kr$2(vo,ff),uf<bo?window.requestAnimationFrame(df):Ra(vo)}df()}function us(vo,Ai){var bo=vo.getBoundingClientRect(),Ra=Ai.getBoundingClientRect(),hc=Ai.offsetHeight/3;Ra.bottom+hc>bo.bottom?kr$2(vo,Math.min(Ai.offsetTop+Ai.clientHeight-vo.offsetHeight+hc,vo.scrollHeight)):Ra.top-hc<bo.top&&kr$2(vo,Math.max(Ai.offsetTop-hc,0))}function Bh(vo){var Ai=vo.getBoundingClientRect();return{bottom:Ai.bottom,height:Ai.height,left:Ai.left,right:Ai.right,top:Ai.top,width:Ai.width}}function ds(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function zh(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var dl=!1,jh={get passive(){return dl=!0}},cr$1=typeof window<"u"?window:{};cr$1.addEventListener&&cr$1.removeEventListener&&(cr$1.addEventListener("p",_r$2,jh),cr$1.removeEventListener("p",_r$2,!1));var Yh=dl;function Gh(vo){return vo!=null}function qh(vo){return Array.isArray(vo)}function lr$1(vo,Ai,bo){return vo?Ai:bo}var Xh=function(vo){for(var Ai=arguments.length,bo=new Array(Ai>1?Ai-1:0),Ra=1;Ra<Ai;Ra++)bo[Ra-1]=arguments[Ra];var hc=Object.entries(vo).filter(function(pc){var mc=St$1(pc,1),uf=mc[0];return!bo.includes(uf)});return hc.reduce(function(pc,mc){var uf=St$1(mc,2),df=uf[0],ff=uf[1];return pc[df]=ff,pc},{})},Kh=["children","innerProps"],Zh=["children","innerProps"];function Qh(vo){var Ai=vo.maxHeight,bo=vo.menuEl,Ra=vo.minHeight,hc=vo.placement,pc=vo.shouldScroll,mc=vo.isFixedPosition,uf=vo.controlHeight,df=Hh(bo),ff={placement:"bottom",maxHeight:Ai};if(!bo||!bo.offsetParent)return ff;var hf=df.getBoundingClientRect(),pf=hf.height,mf=bo.getBoundingClientRect(),gf=mf.bottom,yf=mf.height,vf=mf.top,bf=bo.offsetParent.getBoundingClientRect(),Sf=bf.top,xf=mc?window.innerHeight:Uh(df),wf=ul(df),Hp=parseInt(getComputedStyle(bo).marginBottom,10),If=parseInt(getComputedStyle(bo).marginTop,10),Km=Sf-If,s1=xf-vf,d1=Km+wf,O1=pf-wf-vf,k1=gf-xf+wf+Hp,_1=wf+vf-If,m1=160;switch(hc){case"auto":case"bottom":if(s1>=yf)return{placement:"bottom",maxHeight:Ai};if(O1>=yf&&!mc)return pc&&sr$1(df,k1,m1),{placement:"bottom",maxHeight:Ai};if(!mc&&O1>=Ra||mc&&s1>=Ra){pc&&sr$1(df,k1,m1);var R1=mc?s1-Hp:O1-Hp;return{placement:"bottom",maxHeight:R1}}if(hc==="auto"||mc){var c1=Ai,f1=mc?Km:d1;return f1>=Ra&&(c1=Math.min(f1-Hp-uf,Ai)),{placement:"top",maxHeight:c1}}if(hc==="bottom")return pc&&kr$2(df,k1),{placement:"bottom",maxHeight:Ai};break;case"top":if(Km>=yf)return{placement:"top",maxHeight:Ai};if(d1>=yf&&!mc)return pc&&sr$1(df,_1,m1),{placement:"top",maxHeight:Ai};if(!mc&&d1>=Ra||mc&&Km>=Ra){var E1=Ai;return(!mc&&d1>=Ra||mc&&Km>=Ra)&&(E1=mc?Km-If:d1-If),pc&&sr$1(df,_1,m1),{placement:"top",maxHeight:E1}}return{placement:"bottom",maxHeight:Ai};default:throw new Error('Invalid placement provided "'.concat(hc,'".'))}return ff}function Jh(vo){var Ai={bottom:"top",top:"bottom"};return vo?Ai[vo]:"bottom"}var fl=function(vo){return vo==="auto"?"bottom":vo},eg=function(vo,Ai){var bo,Ra=vo.placement,hc=vo.theme,pc=hc.borderRadius,mc=hc.spacing,uf=hc.colors;return te$2((bo={label:"menu"},Ir$3(bo,Jh(Ra),"100%"),Ir$3(bo,"position","absolute"),Ir$3(bo,"width","100%"),Ir$3(bo,"zIndex",1),bo),Ai?{}:{backgroundColor:uf.neutral0,borderRadius:pc,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:mc.menuGutter,marginTop:mc.menuGutter})},ml=createContext(null),tg=function(vo){var Ai=vo.children,bo=vo.minMenuHeight,Ra=vo.maxMenuHeight,hc=vo.menuPlacement,pc=vo.menuPosition,mc=vo.menuShouldScrollIntoView,uf=vo.theme,df=useContext(ml)||{},ff=df.setPortalPlacement,hf=useRef(null),pf=useState(Ra),mf=St$1(pf,2),gf=mf[0],yf=mf[1],vf=useState(null),bf=St$1(vf,2),Sf=bf[0],xf=bf[1],wf=uf.spacing.controlHeight;return xa(function(){var Hp=hf.current;if(Hp){var If=pc==="fixed",Km=mc&&!If,s1=Qh({maxHeight:Ra,menuEl:Hp,minHeight:bo,placement:hc,shouldScroll:Km,isFixedPosition:If,controlHeight:wf});yf(s1.maxHeight),xf(s1.placement),ff==null||ff(s1.placement)}},[Ra,hc,pc,mc,bo,ff,wf]),Ai({ref:hf,placerProps:te$2(te$2({},vo),{},{placement:Sf||fl(hc),maxHeight:gf})})},ng=function(vo){var Ai=vo.children,bo=vo.innerRef,Ra=vo.innerProps;return Q$1("div",Hr$3({},Ee$2(vo,"menu",{menu:!0}),{ref:bo},Ra),Ai)},rg=ng,og=function(vo,Ai){var bo=vo.maxHeight,Ra=vo.theme.spacing.baseUnit;return te$2({maxHeight:bo,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},Ai?{}:{paddingBottom:Ra,paddingTop:Ra})},ag=function(vo){var Ai=vo.children,bo=vo.innerProps,Ra=vo.innerRef,hc=vo.isMulti;return Q$1("div",Hr$3({},Ee$2(vo,"menuList",{"menu-list":!0,"menu-list--is-multi":hc}),{ref:Ra},bo),Ai)},pl=function(vo,Ai){var bo=vo.theme,Ra=bo.spacing.baseUnit,hc=bo.colors;return te$2({textAlign:"center"},Ai?{}:{color:hc.neutral40,padding:"".concat(Ra*2,"px ").concat(Ra*3,"px")})},ig=pl,sg=pl,cg=function(vo){var Ai=vo.children,bo=Ai===void 0?"No options":Ai,Ra=vo.innerProps,hc=Et$2(vo,Kh);return Q$1("div",Hr$3({},Ee$2(te$2(te$2({},hc),{},{children:bo,innerProps:Ra}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),Ra),bo)},lg=function(vo){var Ai=vo.children,bo=Ai===void 0?"Loading...":Ai,Ra=vo.innerProps,hc=Et$2(vo,Zh);return Q$1("div",Hr$3({},Ee$2(te$2(te$2({},hc),{},{children:bo,innerProps:Ra}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),Ra),bo)},ug=function(vo){var Ai=vo.rect,bo=vo.offset,Ra=vo.position;return{left:Ai.left,position:Ra,top:bo,width:Ai.width,zIndex:1}},dg=function(vo){var Ai=vo.appendTo,bo=vo.children,Ra=vo.controlElement,hc=vo.innerProps,pc=vo.menuPlacement,mc=vo.menuPosition,uf=useRef(null),df=useRef(null),ff=useState(fl(pc)),hf=St$1(ff,2),pf=hf[0],mf=hf[1],gf=useMemo(function(){return{setPortalPlacement:mf}},[]),yf=useState(null),vf=St$1(yf,2),bf=vf[0],Sf=vf[1],xf=useCallback(function(){if(Ra){var Km=Bh(Ra),s1=mc==="fixed"?0:window.pageYOffset,d1=Km[pf]+s1;(d1!==(bf==null?void 0:bf.offset)||Km.left!==(bf==null?void 0:bf.rect.left)||Km.width!==(bf==null?void 0:bf.rect.width))&&Sf({offset:d1,rect:Km})}},[Ra,mc,pf,bf==null?void 0:bf.offset,bf==null?void 0:bf.rect.left,bf==null?void 0:bf.rect.width]);xa(function(){xf()},[xf]);var wf=useCallback(function(){typeof df.current=="function"&&(df.current(),df.current=null),Ra&&uf.current&&(df.current=cl(Ra,uf.current,xf,{elementResize:"ResizeObserver"in window}))},[Ra,xf]);xa(function(){wf()},[wf]);var Hp=useCallback(function(Km){uf.current=Km,wf()},[wf]);if(!Ai&&mc!=="fixed"||!bf)return null;var If=Q$1("div",Hr$3({ref:Hp},Ee$2(te$2(te$2({},vo),{},{offset:bf.offset,position:mc,rect:bf.rect}),"menuPortal",{"menu-portal":!0}),hc),bo);return Q$1(ml.Provider,{value:gf},Ai?createPortal(If,Ai):If)},fg=function(vo){var Ai=vo.isDisabled,bo=vo.isRtl;return{label:"container",direction:bo?"rtl":void 0,pointerEvents:Ai?"none":void 0,position:"relative"}},mg=function(vo){var Ai=vo.children,bo=vo.innerProps,Ra=vo.isDisabled,hc=vo.isRtl;return Q$1("div",Hr$3({},Ee$2(vo,"container",{"--is-disabled":Ra,"--is-rtl":hc}),bo),Ai)},pg=function(vo,Ai){var bo=vo.theme.spacing,Ra=vo.isMulti,hc=vo.hasValue,pc=vo.selectProps.controlShouldRenderValue;return te$2({alignItems:"center",display:Ra&&hc&&pc?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},Ai?{}:{padding:"".concat(bo.baseUnit/2,"px ").concat(bo.baseUnit*2,"px")})},hg=function(vo){var Ai=vo.children,bo=vo.innerProps,Ra=vo.isMulti,hc=vo.hasValue;return Q$1("div",Hr$3({},Ee$2(vo,"valueContainer",{"value-container":!0,"value-container--is-multi":Ra,"value-container--has-value":hc}),bo),Ai)},gg=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},vg=function(vo){var Ai=vo.children,bo=vo.innerProps;return Q$1("div",Hr$3({},Ee$2(vo,"indicatorsContainer",{indicators:!0}),bo),Ai)},fs$1,bg=["size"],yg=["innerProps","isRtl","size"],wg={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},hl=function(vo){var Ai=vo.size,bo=Et$2(vo,bg);return Q$1("svg",Hr$3({height:Ai,width:Ai,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:wg},bo))},Qa=function(vo){return Q$1(hl,Hr$3({size:20},vo),Q$1("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},gl=function(vo){return Q$1(hl,Hr$3({size:20},vo),Q$1("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},vl=function(vo,Ai){var bo=vo.isFocused,Ra=vo.theme,hc=Ra.spacing.baseUnit,pc=Ra.colors;return te$2({label:"indicatorContainer",display:"flex",transition:"color 150ms"},Ai?{}:{color:bo?pc.neutral60:pc.neutral20,padding:hc*2,":hover":{color:bo?pc.neutral80:pc.neutral40}})},xg=vl,Sg=function(vo){var Ai=vo.children,bo=vo.innerProps;return Q$1("div",Hr$3({},Ee$2(vo,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),bo),Ai||Q$1(gl,null))},Cg=vl,Ig=function(vo){var Ai=vo.children,bo=vo.innerProps;return Q$1("div",Hr$3({},Ee$2(vo,"clearIndicator",{indicator:!0,"clear-indicator":!0}),bo),Ai||Q$1(Qa,null))},Eg=function(vo,Ai){var bo=vo.isDisabled,Ra=vo.theme,hc=Ra.spacing.baseUnit,pc=Ra.colors;return te$2({label:"indicatorSeparator",alignSelf:"stretch",width:1},Ai?{}:{backgroundColor:bo?pc.neutral10:pc.neutral20,marginBottom:hc*2,marginTop:hc*2})},Pg=function(vo){var Ai=vo.innerProps;return Q$1("span",Hr$3({},Ai,Ee$2(vo,"indicatorSeparator",{"indicator-separator":!0})))},Tg=qp(fs$1||(fs$1=Xp([`
|
|
12
12
|
0%, 80%, 100% { opacity: 0; }
|
|
13
13
|
40% { opacity: 1; }
|
|
14
|
-
`]))),Og=function(vo,Ai){var bo=vo.isFocused,Ra=vo.size,hc=vo.theme,pc=hc.colors,mc=hc.spacing.baseUnit;return te$2({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:Ra,lineHeight:1,marginRight:Ra,textAlign:"center",verticalAlign:"middle"},Ai?{}:{color:bo?pc.neutral60:pc.neutral20,padding:mc*2})},Fo$1=function(vo){var Ai=vo.delay,bo=vo.offset;return Q$1("span",{css:za({animation:"".concat(Tg," 1s ease-in-out ").concat(Ai,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:bo?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Mg=function(vo){var Ai=vo.innerProps,bo=vo.isRtl,Ra=vo.size,hc=Ra===void 0?4:Ra,pc=Et$2(vo,yg);return Q$1("div",Hr$3({},Ee$2(te$2(te$2({},pc),{},{innerProps:Ai,isRtl:bo,size:hc}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),Ai),Q$1(Fo$1,{delay:0,offset:bo}),Q$1(Fo$1,{delay:160,offset:!0}),Q$1(Fo$1,{delay:320,offset:!bo}))},Ng=function(vo,Ai){var bo=vo.isDisabled,Ra=vo.isFocused,hc=vo.theme,pc=hc.colors,mc=hc.borderRadius,uf=hc.spacing;return te$2({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:uf.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},Ai?{}:{backgroundColor:bo?pc.neutral5:pc.neutral0,borderColor:bo?pc.neutral10:Ra?pc.primary:pc.neutral20,borderRadius:mc,borderStyle:"solid",borderWidth:1,boxShadow:Ra?"0 0 0 1px ".concat(pc.primary):void 0,"&:hover":{borderColor:Ra?pc.primary:pc.neutral30}})},Ag=function(vo){var Ai=vo.children,bo=vo.isDisabled,Ra=vo.isFocused,hc=vo.innerRef,pc=vo.innerProps,mc=vo.menuIsOpen;return Q$1("div",Hr$3({ref:hc},Ee$2(vo,"control",{control:!0,"control--is-disabled":bo,"control--is-focused":Ra,"control--menu-is-open":mc}),pc,{"aria-disabled":bo||void 0}),Ai)},Dg=Ag,Rg=["data"],_g=function(vo,Ai){var bo=vo.theme.spacing;return Ai?{}:{paddingBottom:bo.baseUnit*2,paddingTop:bo.baseUnit*2}},kg=function(vo){var Ai=vo.children,bo=vo.cx,Ra=vo.getStyles,hc=vo.getClassNames,pc=vo.Heading,mc=vo.headingProps,uf=vo.innerProps,df=vo.label,ff=vo.theme,hf=vo.selectProps;return Q$1("div",Hr$3({},Ee$2(vo,"group",{group:!0}),uf),Q$1(pc,Hr$3({},mc,{selectProps:hf,theme:ff,getStyles:Ra,getClassNames:hc,cx:bo}),df),Q$1("div",null,Ai))},Fg=function(vo,Ai){var bo=vo.theme,Ra=bo.colors,hc=bo.spacing;return te$2({label:"group",cursor:"default",display:"block"},Ai?{}:{color:Ra.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:hc.baseUnit*3,paddingRight:hc.baseUnit*3,textTransform:"uppercase"})},Vg=function(vo){var Ai=ll(vo);Ai.data;var bo=Et$2(Ai,Rg);return Q$1("div",Hr$3({},Ee$2(vo,"groupHeading",{"group-heading":!0}),bo))},Lg=kg,$g=["innerRef","isDisabled","isHidden","inputClassName"],Ug=function(vo,Ai){var bo=vo.isDisabled,Ra=vo.value,hc=vo.theme,pc=hc.spacing,mc=hc.colors;return te$2(te$2({visibility:bo?"hidden":"visible",transform:Ra?"translateZ(0)":""},Hg),Ai?{}:{margin:pc.baseUnit/2,paddingBottom:pc.baseUnit/2,paddingTop:pc.baseUnit/2,color:mc.neutral80})},bl={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Hg={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":te$2({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},bl)},Wg=function(vo){return te$2({label:"input",color:"inherit",background:0,opacity:vo?0:1,width:"100%"},bl)},Bg=function(vo){var Ai=vo.cx,bo=vo.value,Ra=ll(vo),hc=Ra.innerRef,pc=Ra.isDisabled,mc=Ra.isHidden,uf=Ra.inputClassName,df=Et$2(Ra,$g);return Q$1("div",Hr$3({},Ee$2(vo,"input",{"input-container":!0}),{"data-value":bo||""}),Q$1("input",Hr$3({className:Ai({input:!0},uf),ref:hc,style:Wg(mc),disabled:pc},df)))},zg=Bg,jg=function(vo,Ai){var bo=vo.theme,Ra=bo.spacing,hc=bo.borderRadius,pc=bo.colors;return te$2({label:"multiValue",display:"flex",minWidth:0},Ai?{}:{backgroundColor:pc.neutral10,borderRadius:hc/2,margin:Ra.baseUnit/2})},Yg=function(vo,Ai){var bo=vo.theme,Ra=bo.borderRadius,hc=bo.colors,pc=vo.cropWithEllipsis;return te$2({overflow:"hidden",textOverflow:pc||pc===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},Ai?{}:{borderRadius:Ra/2,color:hc.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Gg=function(vo,Ai){var bo=vo.theme,Ra=bo.spacing,hc=bo.borderRadius,pc=bo.colors,mc=vo.isFocused;return te$2({alignItems:"center",display:"flex"},Ai?{}:{borderRadius:hc/2,backgroundColor:mc?pc.dangerLight:void 0,paddingLeft:Ra.baseUnit,paddingRight:Ra.baseUnit,":hover":{backgroundColor:pc.dangerLight,color:pc.danger}})},yl=function(vo){var Ai=vo.children,bo=vo.innerProps;return Q$1("div",bo,Ai)},qg=yl,Xg=yl;function Kg(vo){var Ai=vo.children,bo=vo.innerProps;return Q$1("div",Hr$3({role:"button"},bo),Ai||Q$1(Qa,{size:14}))}var Zg=function(vo){var Ai=vo.children,bo=vo.components,Ra=vo.data,hc=vo.innerProps,pc=vo.isDisabled,mc=vo.removeProps,uf=vo.selectProps,df=bo.Container,ff=bo.Label,hf=bo.Remove;return Q$1(df,{data:Ra,innerProps:te$2(te$2({},Ee$2(vo,"multiValue",{"multi-value":!0,"multi-value--is-disabled":pc})),hc),selectProps:uf},Q$1(ff,{data:Ra,innerProps:te$2({},Ee$2(vo,"multiValueLabel",{"multi-value__label":!0})),selectProps:uf},Ai),Q$1(hf,{data:Ra,innerProps:te$2(te$2({},Ee$2(vo,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(Ai||"option")},mc),selectProps:uf}))},Qg=Zg,Jg=function(vo,Ai){var bo=vo.isDisabled,Ra=vo.isFocused,hc=vo.isSelected,pc=vo.theme,mc=pc.spacing,uf=pc.colors;return te$2({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},Ai?{}:{backgroundColor:hc?uf.primary:Ra?uf.primary25:"transparent",color:bo?uf.neutral20:hc?uf.neutral0:"inherit",padding:"".concat(mc.baseUnit*2,"px ").concat(mc.baseUnit*3,"px"),":active":{backgroundColor:bo?void 0:hc?uf.primary:uf.primary50}})},ev=function(vo){var Ai=vo.children,bo=vo.isDisabled,Ra=vo.isFocused,hc=vo.isSelected,pc=vo.innerRef,mc=vo.innerProps;return Q$1("div",Hr$3({},Ee$2(vo,"option",{option:!0,"option--is-disabled":bo,"option--is-focused":Ra,"option--is-selected":hc}),{ref:pc,"aria-disabled":bo},mc),Ai)},tv=ev,nv=function(vo,Ai){var bo=vo.theme,Ra=bo.spacing,hc=bo.colors;return te$2({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},Ai?{}:{color:hc.neutral50,marginLeft:Ra.baseUnit/2,marginRight:Ra.baseUnit/2})},rv=function(vo){var Ai=vo.children,bo=vo.innerProps;return Q$1("div",Hr$3({},Ee$2(vo,"placeholder",{placeholder:!0}),bo),Ai)},ov=rv,av=function(vo,Ai){var bo=vo.isDisabled,Ra=vo.theme,hc=Ra.spacing,pc=Ra.colors;return te$2({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Ai?{}:{color:bo?pc.neutral40:pc.neutral80,marginLeft:hc.baseUnit/2,marginRight:hc.baseUnit/2})},iv=function(vo){var Ai=vo.children,bo=vo.isDisabled,Ra=vo.innerProps;return Q$1("div",Hr$3({},Ee$2(vo,"singleValue",{"single-value":!0,"single-value--is-disabled":bo}),Ra),Ai)},sv=iv,ro$1={ClearIndicator:Ig,Control:Dg,DropdownIndicator:Sg,DownChevron:gl,CrossIcon:Qa,Group:Lg,GroupHeading:Vg,IndicatorsContainer:vg,IndicatorSeparator:Pg,Input:zg,LoadingIndicator:Mg,Menu:rg,MenuList:ag,MenuPortal:dg,LoadingMessage:lg,NoOptionsMessage:cg,MultiValue:Qg,MultiValueContainer:qg,MultiValueLabel:Xg,MultiValueRemove:Kg,Option:tv,Placeholder:ov,SelectContainer:mg,SingleValue:sv,ValueContainer:hg},cv=function(vo){return te$2(te$2({},ro$1),vo.components)},ms=Number.isNaN||function(vo){return typeof vo=="number"&&vo!==vo};function lv(vo,Ai){return!!(vo===Ai||ms(vo)&&ms(Ai))}function uv(vo,Ai){if(vo.length!==Ai.length)return!1;for(var bo=0;bo<vo.length;bo++)if(!lv(vo[bo],Ai[bo]))return!1;return!0}function dv(vo,Ai){Ai===void 0&&(Ai=uv);var bo=null;function Ra(){for(var hc=[],pc=0;pc<arguments.length;pc++)hc[pc]=arguments[pc];if(bo&&bo.lastThis===this&&Ai(hc,bo.lastArgs))return bo.lastResult;var mc=vo.apply(this,hc);return bo={lastResult:mc,lastArgs:hc,lastThis:this},mc}return Ra.clear=function(){bo=null},Ra}var fv={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},mv=function(vo){return Q$1("span",Hr$3({css:fv},vo))},ps=mv,pv={guidance:function(vo){var Ai=vo.isSearchable,bo=vo.isMulti,Ra=vo.tabSelectsValue,hc=vo.context,pc=vo.isInitialFocus;switch(hc){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(Ra?", press Tab to select the option and exit the menu":"",".");case"input":return pc?"".concat(vo["aria-label"]||"Select"," is focused ").concat(Ai?",type to refine list":"",", press Down to open the menu, ").concat(bo?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(vo){var Ai=vo.action,bo=vo.label,Ra=bo===void 0?"":bo,hc=vo.labels,pc=vo.isDisabled;switch(Ai){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(Ra,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(hc.length>1?"s":""," ").concat(hc.join(","),", selected.");case"select-option":return pc?"option ".concat(Ra," is disabled. Select another option."):"option ".concat(Ra,", selected.");default:return""}},onFocus:function(vo){var Ai=vo.context,bo=vo.focused,Ra=vo.options,hc=vo.label,pc=hc===void 0?"":hc,mc=vo.selectValue,uf=vo.isDisabled,df=vo.isSelected,ff=vo.isAppleDevice,hf=function(gf,yf){return gf&&gf.length?"".concat(gf.indexOf(yf)+1," of ").concat(gf.length):""};if(Ai==="value"&&mc)return"value ".concat(pc," focused, ").concat(hf(mc,bo),".");if(Ai==="menu"&&ff){var pf=uf?" disabled":"",mf="".concat(df?" selected":"").concat(pf);return"".concat(pc).concat(mf,", ").concat(hf(Ra,bo),".")}return""},onFilter:function(vo){var Ai=vo.inputValue,bo=vo.resultsMessage;return"".concat(bo).concat(Ai?" for search term "+Ai:"",".")}},hv=function(vo){var Ai=vo.ariaSelection,bo=vo.focusedOption,Ra=vo.focusedValue,hc=vo.focusableOptions,pc=vo.isFocused,mc=vo.selectValue,uf=vo.selectProps,df=vo.id,ff=vo.isAppleDevice,hf=uf.ariaLiveMessages,pf=uf.getOptionLabel,mf=uf.inputValue,gf=uf.isMulti,yf=uf.isOptionDisabled,vf=uf.isSearchable,bf=uf.menuIsOpen,Sf=uf.options,xf=uf.screenReaderStatus,wf=uf.tabSelectsValue,Hp=uf.isLoading,If=uf["aria-label"],Km=uf["aria-live"],s1=useMemo(function(){return te$2(te$2({},pv),hf||{})},[hf]),d1=useMemo(function(){var c1="";if(Ai&&s1.onChange){var f1=Ai.option,E1=Ai.options,D1=Ai.removedValue,j1=Ai.removedValues,F1=Ai.value,G1=function(Z1){return Array.isArray(Z1)?null:Z1},q1=D1||f1||G1(F1),T1=q1?pf(q1):"",M1=E1||j1||void 0,P1=M1?M1.map(pf):[],U1=te$2({isDisabled:q1&&yf(q1,mc),label:T1,labels:P1},Ai);c1=s1.onChange(U1)}return c1},[Ai,s1,yf,mc,pf]),O1=useMemo(function(){var c1="",f1=bo||Ra,E1=!!(bo&&mc&&mc.includes(bo));if(f1&&s1.onFocus){var D1={focused:f1,label:pf(f1),isDisabled:yf(f1,mc),isSelected:E1,options:hc,context:f1===bo?"menu":"value",selectValue:mc,isAppleDevice:ff};c1=s1.onFocus(D1)}return c1},[bo,Ra,pf,yf,s1,hc,mc,ff]),k1=useMemo(function(){var c1="";if(bf&&Sf.length&&!Hp&&s1.onFilter){var f1=xf({count:hc.length});c1=s1.onFilter({inputValue:mf,resultsMessage:f1})}return c1},[hc,mf,bf,s1,Sf,xf,Hp]),_1=(Ai==null?void 0:Ai.action)==="initial-input-focus",m1=useMemo(function(){var c1="";if(s1.guidance){var f1=Ra?"value":bf?"menu":"input";c1=s1.guidance({"aria-label":If,context:f1,isDisabled:bo&&yf(bo,mc),isMulti:gf,isSearchable:vf,tabSelectsValue:wf,isInitialFocus:_1})}return c1},[If,bo,Ra,gf,yf,vf,bf,s1,mc,wf,_1]),R1=Q$1(Fragment$1,null,Q$1("span",{id:"aria-selection"},d1),Q$1("span",{id:"aria-focused"},O1),Q$1("span",{id:"aria-results"},k1),Q$1("span",{id:"aria-guidance"},m1));return Q$1(Fragment$1,null,Q$1(ps,{id:df},_1&&R1),Q$1(ps,{"aria-live":Km,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},pc&&!_1&&R1))},gv=hv,Sa=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],vv=new RegExp("["+Sa.map(function(vo){return vo.letters}).join("")+"]","g"),wl={};for(var Vo$1=0;Vo$1<Sa.length;Vo$1++)for(var Lo=Sa[Vo$1],$o$2=0;$o$2<Lo.letters.length;$o$2++)wl[Lo.letters[$o$2]]=Lo.base;var xl=function(vo){return vo.replace(vv,function(Ai){return wl[Ai]})},bv=dv(xl),hs$1=function(vo){return vo.replace(/^\s+|\s+$/g,"")},yv=function(vo){return"".concat(vo.label," ").concat(vo.value)},wv=function(vo){return function(Ai,bo){if(Ai.data.__isNew__)return!0;var Ra=te$2({ignoreCase:!0,ignoreAccents:!0,stringify:yv,trim:!0,matchFrom:"any"},vo),hc=Ra.ignoreCase,pc=Ra.ignoreAccents,mc=Ra.stringify,uf=Ra.trim,df=Ra.matchFrom,ff=uf?hs$1(bo):bo,hf=uf?hs$1(mc(Ai)):mc(Ai);return hc&&(ff=ff.toLowerCase(),hf=hf.toLowerCase()),pc&&(ff=bv(ff),hf=xl(hf)),df==="start"?hf.substr(0,ff.length)===ff:hf.indexOf(ff)>-1}},xv=["innerRef"];function Sv(vo){var Ai=vo.innerRef,bo=Et$2(vo,xv),Ra=Xh(bo,"onExited","in","enter","exit","appear");return Q$1("input",Hr$3({ref:Ai},Ra,{css:za({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Cv=function(vo){vo.cancelable&&vo.preventDefault(),vo.stopPropagation()};function Iv(vo){var Ai=vo.isEnabled,bo=vo.onBottomArrive,Ra=vo.onBottomLeave,hc=vo.onTopArrive,pc=vo.onTopLeave,mc=useRef(!1),uf=useRef(!1),df=useRef(0),ff=useRef(null),hf=useCallback(function(bf,Sf){if(ff.current!==null){var xf=ff.current,wf=xf.scrollTop,Hp=xf.scrollHeight,If=xf.clientHeight,Km=ff.current,s1=Sf>0,d1=Hp-If-wf,O1=!1;d1>Sf&&mc.current&&(Ra&&Ra(bf),mc.current=!1),s1&&uf.current&&(pc&&pc(bf),uf.current=!1),s1&&Sf>d1?(bo&&!mc.current&&bo(bf),Km.scrollTop=Hp,O1=!0,mc.current=!0):!s1&&-Sf>wf&&(hc&&!uf.current&&hc(bf),Km.scrollTop=0,O1=!0,uf.current=!0),O1&&Cv(bf)}},[bo,Ra,hc,pc]),pf=useCallback(function(bf){hf(bf,bf.deltaY)},[hf]),mf=useCallback(function(bf){df.current=bf.changedTouches[0].clientY},[]),gf=useCallback(function(bf){var Sf=df.current-bf.changedTouches[0].clientY;hf(bf,Sf)},[hf]),yf=useCallback(function(bf){if(bf){var Sf=Yh?{passive:!1}:!1;bf.addEventListener("wheel",pf,Sf),bf.addEventListener("touchstart",mf,Sf),bf.addEventListener("touchmove",gf,Sf)}},[gf,mf,pf]),vf=useCallback(function(bf){bf&&(bf.removeEventListener("wheel",pf,!1),bf.removeEventListener("touchstart",mf,!1),bf.removeEventListener("touchmove",gf,!1))},[gf,mf,pf]);return useEffect(function(){if(Ai){var bf=ff.current;return yf(bf),function(){vf(bf)}}},[Ai,yf,vf]),function(bf){ff.current=bf}}var gs$1=["boxSizing","height","overflow","paddingRight","position"],vs={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function bs$1(vo){vo.cancelable&&vo.preventDefault()}function ys(vo){vo.stopPropagation()}function ws(){var vo=this.scrollTop,Ai=this.scrollHeight,bo=vo+this.offsetHeight;vo===0?this.scrollTop=1:bo===Ai&&(this.scrollTop=vo-1)}function xs(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ss=!!(typeof window<"u"&&window.document&&window.document.createElement),On$2=0,en$1={capture:!1,passive:!1};function Ev(vo){var Ai=vo.isEnabled,bo=vo.accountForScrollbars,Ra=bo===void 0?!0:bo,hc=useRef({}),pc=useRef(null),mc=useCallback(function(df){if(Ss){var ff=document.body,hf=ff&&ff.style;if(Ra&&gs$1.forEach(function(yf){var vf=hf&&hf[yf];hc.current[yf]=vf}),Ra&&On$2<1){var pf=parseInt(hc.current.paddingRight,10)||0,mf=document.body?document.body.clientWidth:0,gf=window.innerWidth-mf+pf||0;Object.keys(vs).forEach(function(yf){var vf=vs[yf];hf&&(hf[yf]=vf)}),hf&&(hf.paddingRight="".concat(gf,"px"))}ff&&xs()&&(ff.addEventListener("touchmove",bs$1,en$1),df&&(df.addEventListener("touchstart",ws,en$1),df.addEventListener("touchmove",ys,en$1))),On$2+=1}},[Ra]),uf=useCallback(function(df){if(Ss){var ff=document.body,hf=ff&&ff.style;On$2=Math.max(On$2-1,0),Ra&&On$2<1&&gs$1.forEach(function(pf){var mf=hc.current[pf];hf&&(hf[pf]=mf)}),ff&&xs()&&(ff.removeEventListener("touchmove",bs$1,en$1),df&&(df.removeEventListener("touchstart",ws,en$1),df.removeEventListener("touchmove",ys,en$1)))}},[Ra]);return useEffect(function(){if(Ai){var df=pc.current;return mc(df),function(){uf(df)}}},[Ai,mc,uf]),function(df){pc.current=df}}var Pv=function(vo){var Ai=vo.target;return Ai.ownerDocument.activeElement&&Ai.ownerDocument.activeElement.blur()},Tv={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Ov(vo){var Ai=vo.children,bo=vo.lockEnabled,Ra=vo.captureEnabled,hc=Ra===void 0?!0:Ra,pc=vo.onBottomArrive,mc=vo.onBottomLeave,uf=vo.onTopArrive,df=vo.onTopLeave,ff=Iv({isEnabled:hc,onBottomArrive:pc,onBottomLeave:mc,onTopArrive:uf,onTopLeave:df}),hf=Ev({isEnabled:bo}),pf=function(mf){ff(mf),hf(mf)};return Q$1(Fragment$1,null,bo&&Q$1("div",{onClick:Pv,css:Tv}),Ai(pf))}var Mv={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Nv=function(vo){var Ai=vo.name,bo=vo.onFocus;return Q$1("input",{required:!0,name:Ai,tabIndex:-1,"aria-hidden":"true",onFocus:bo,css:Mv,value:"",onChange:function(){}})},Av=Nv;function Ja(vo){var Ai;return typeof window<"u"&&window.navigator!=null?vo.test(((Ai=window.navigator.userAgentData)===null||Ai===void 0?void 0:Ai.platform)||window.navigator.platform):!1}function Dv(){return Ja(/^iPhone/i)}function Sl(){return Ja(/^Mac/i)}function Rv(){return Ja(/^iPad/i)||Sl()&&navigator.maxTouchPoints>1}function _v(){return Dv()||Rv()}function kv(){return Sl()||_v()}var Fv=function(vo){return vo.label},Vv=function(vo){return vo.label},Lv=function(vo){return vo.value},$v=function(vo){return!!vo.isDisabled},Uv={clearIndicator:Cg,container:fg,control:Ng,dropdownIndicator:xg,group:_g,groupHeading:Fg,indicatorsContainer:gg,indicatorSeparator:Eg,input:Ug,loadingIndicator:Og,loadingMessage:sg,menu:eg,menuList:og,menuPortal:ug,multiValue:jg,multiValueLabel:Yg,multiValueRemove:Gg,noOptionsMessage:ig,option:Jg,placeholder:nv,singleValue:av,valueContainer:pg},Hv={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Wv=4,Cl=4,Bv=38,zv=Cl*2,jv={baseUnit:Cl,controlHeight:Bv,menuGutter:zv},Uo$1={borderRadius:Wv,colors:Hv,spacing:jv},Yv={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ds(),captureMenuScroll:!ds(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:wv(),formatGroupLabel:Fv,getOptionLabel:Vv,getOptionValue:Lv,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:$v,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!zh(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(vo){var Ai=vo.count;return"".concat(Ai," result").concat(Ai!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Cs(vo,Ai,bo,Ra){var hc=Pl(vo,Ai,bo),pc=Tl(vo,Ai,bo),mc=El(vo,Ai),uf=Fr$1(vo,Ai);return{type:"option",data:Ai,isDisabled:hc,isSelected:pc,label:mc,value:uf,index:Ra}}function xr$2(vo,Ai){return vo.options.map(function(bo,Ra){if("options"in bo){var hc=bo.options.map(function(mc,uf){return Cs(vo,mc,Ai,uf)}).filter(function(mc){return Es$1(vo,mc)});return hc.length>0?{type:"group",data:bo,options:hc,index:Ra}:void 0}var pc=Cs(vo,bo,Ai,Ra);return Es$1(vo,pc)?pc:void 0}).filter(Gh)}function Il(vo){return vo.reduce(function(Ai,bo){return bo.type==="group"?Ai.push.apply(Ai,$a(bo.options.map(function(Ra){return Ra.data}))):Ai.push(bo.data),Ai},[])}function Is$2(vo,Ai){return vo.reduce(function(bo,Ra){return Ra.type==="group"?bo.push.apply(bo,$a(Ra.options.map(function(hc){return{data:hc.data,id:"".concat(Ai,"-").concat(Ra.index,"-").concat(hc.index)}}))):bo.push({data:Ra.data,id:"".concat(Ai,"-").concat(Ra.index)}),bo},[])}function Gv(vo,Ai){return Il(xr$2(vo,Ai))}function Es$1(vo,Ai){var bo=vo.inputValue,Ra=bo===void 0?"":bo,hc=Ai.data,pc=Ai.isSelected,mc=Ai.label,uf=Ai.value;return(!Ml(vo)||!pc)&&Ol(vo,{label:mc,value:uf,data:hc},Ra)}function qv(vo,Ai){var bo=vo.focusedValue,Ra=vo.selectValue,hc=Ra.indexOf(bo);if(hc>-1){var pc=Ai.indexOf(bo);if(pc>-1)return bo;if(hc<Ai.length)return Ai[hc]}return null}function Xv(vo,Ai){var bo=vo.focusedOption;return bo&&Ai.indexOf(bo)>-1?bo:Ai[0]}var Ho$1=function(vo,Ai){var bo,Ra=(bo=vo.find(function(hc){return hc.data===Ai}))===null||bo===void 0?void 0:bo.id;return Ra||null},El=function(vo,Ai){return vo.getOptionLabel(Ai)},Fr$1=function(vo,Ai){return vo.getOptionValue(Ai)};function Pl(vo,Ai,bo){return typeof vo.isOptionDisabled=="function"?vo.isOptionDisabled(Ai,bo):!1}function Tl(vo,Ai,bo){if(bo.indexOf(Ai)>-1)return!0;if(typeof vo.isOptionSelected=="function")return vo.isOptionSelected(Ai,bo);var Ra=Fr$1(vo,Ai);return bo.some(function(hc){return Fr$1(vo,hc)===Ra})}function Ol(vo,Ai,bo){return vo.filterOption?vo.filterOption(Ai,bo):!0}var Ml=function(vo){var Ai=vo.hideSelectedOptions,bo=vo.isMulti;return Ai===void 0?bo:Ai},Kv=1,Nl=function(vo){Bm(bo,vo);var Ai=Ym(bo);function bo(Ra){var hc;if(Hm(this,bo),hc=Ai.call(this,Ra),hc.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},hc.blockOptionHover=!1,hc.isComposing=!1,hc.commonProps=void 0,hc.initialTouchX=0,hc.initialTouchY=0,hc.openAfterFocus=!1,hc.scrollToFocusedOptionOnUpdate=!1,hc.userIsDragging=void 0,hc.isAppleDevice=kv(),hc.controlRef=null,hc.getControlRef=function(df){hc.controlRef=df},hc.focusedOptionRef=null,hc.getFocusedOptionRef=function(df){hc.focusedOptionRef=df},hc.menuListRef=null,hc.getMenuListRef=function(df){hc.menuListRef=df},hc.inputRef=null,hc.getInputRef=function(df){hc.inputRef=df},hc.focus=hc.focusInput,hc.blur=hc.blurInput,hc.onChange=function(df,ff){var hf=hc.props,pf=hf.onChange,mf=hf.name;ff.name=mf,hc.ariaOnChange(df,ff),pf(df,ff)},hc.setValue=function(df,ff,hf){var pf=hc.props,mf=pf.closeMenuOnSelect,gf=pf.isMulti,yf=pf.inputValue;hc.onInputChange("",{action:"set-value",prevInputValue:yf}),mf&&(hc.setState({inputIsHiddenAfterUpdate:!gf}),hc.onMenuClose()),hc.setState({clearFocusValueOnUpdate:!0}),hc.onChange(df,{action:ff,option:hf})},hc.selectOption=function(df){var ff=hc.props,hf=ff.blurInputOnSelect,pf=ff.isMulti,mf=ff.name,gf=hc.state.selectValue,yf=pf&&hc.isOptionSelected(df,gf),vf=hc.isOptionDisabled(df,gf);if(yf){var bf=hc.getOptionValue(df);hc.setValue(gf.filter(function(Sf){return hc.getOptionValue(Sf)!==bf}),"deselect-option",df)}else if(!vf)pf?hc.setValue([].concat($a(gf),[df]),"select-option",df):hc.setValue(df,"select-option");else{hc.ariaOnChange(df,{action:"select-option",option:df,name:mf});return}hf&&hc.blurInput()},hc.removeValue=function(df){var ff=hc.props.isMulti,hf=hc.state.selectValue,pf=hc.getOptionValue(df),mf=hf.filter(function(yf){return hc.getOptionValue(yf)!==pf}),gf=lr$1(ff,mf,mf[0]||null);hc.onChange(gf,{action:"remove-value",removedValue:df}),hc.focusInput()},hc.clearValue=function(){var df=hc.state.selectValue;hc.onChange(lr$1(hc.props.isMulti,[],null),{action:"clear",removedValues:df})},hc.popValue=function(){var df=hc.props.isMulti,ff=hc.state.selectValue,hf=ff[ff.length-1],pf=ff.slice(0,ff.length-1),mf=lr$1(df,pf,pf[0]||null);hf&&hc.onChange(mf,{action:"pop-value",removedValue:hf})},hc.getFocusedOptionId=function(df){return Ho$1(hc.state.focusableOptionsWithIds,df)},hc.getFocusableOptionsWithIds=function(){return Is$2(xr$2(hc.props,hc.state.selectValue),hc.getElementId("option"))},hc.getValue=function(){return hc.state.selectValue},hc.cx=function(){for(var df=arguments.length,ff=new Array(df),hf=0;hf<df;hf++)ff[hf]=arguments[hf];return $h.apply(void 0,[hc.props.classNamePrefix].concat(ff))},hc.getOptionLabel=function(df){return El(hc.props,df)},hc.getOptionValue=function(df){return Fr$1(hc.props,df)},hc.getStyles=function(df,ff){var hf=hc.props.unstyled,pf=Uv[df](ff,hf);pf.boxSizing="border-box";var mf=hc.props.styles[df];return mf?mf(pf,ff):pf},hc.getClassNames=function(df,ff){var hf,pf;return(hf=(pf=hc.props.classNames)[df])===null||hf===void 0?void 0:hf.call(pf,ff)},hc.getElementId=function(df){return"".concat(hc.state.instancePrefix,"-").concat(df)},hc.getComponents=function(){return cv(hc.props)},hc.buildCategorizedOptions=function(){return xr$2(hc.props,hc.state.selectValue)},hc.getCategorizedOptions=function(){return hc.props.menuIsOpen?hc.buildCategorizedOptions():[]},hc.buildFocusableOptions=function(){return Il(hc.buildCategorizedOptions())},hc.getFocusableOptions=function(){return hc.props.menuIsOpen?hc.buildFocusableOptions():[]},hc.ariaOnChange=function(df,ff){hc.setState({ariaSelection:te$2({value:df},ff)})},hc.onMenuMouseDown=function(df){df.button===0&&(df.stopPropagation(),df.preventDefault(),hc.focusInput())},hc.onMenuMouseMove=function(df){hc.blockOptionHover=!1},hc.onControlMouseDown=function(df){if(!df.defaultPrevented){var ff=hc.props.openMenuOnClick;hc.state.isFocused?hc.props.menuIsOpen?df.target.tagName!=="INPUT"&&df.target.tagName!=="TEXTAREA"&&hc.onMenuClose():ff&&hc.openMenu("first"):(ff&&(hc.openAfterFocus=!0),hc.focusInput()),df.target.tagName!=="INPUT"&&df.target.tagName!=="TEXTAREA"&&df.preventDefault()}},hc.onDropdownIndicatorMouseDown=function(df){if(!(df&&df.type==="mousedown"&&df.button!==0)&&!hc.props.isDisabled){var ff=hc.props,hf=ff.isMulti,pf=ff.menuIsOpen;hc.focusInput(),pf?(hc.setState({inputIsHiddenAfterUpdate:!hf}),hc.onMenuClose()):hc.openMenu("first"),df.preventDefault()}},hc.onClearIndicatorMouseDown=function(df){df&&df.type==="mousedown"&&df.button!==0||(hc.clearValue(),df.preventDefault(),hc.openAfterFocus=!1,df.type==="touchend"?hc.focusInput():setTimeout(function(){return hc.focusInput()}))},hc.onScroll=function(df){typeof hc.props.closeMenuOnScroll=="boolean"?df.target instanceof HTMLElement&&no$1(df.target)&&hc.props.onMenuClose():typeof hc.props.closeMenuOnScroll=="function"&&hc.props.closeMenuOnScroll(df)&&hc.props.onMenuClose()},hc.onCompositionStart=function(){hc.isComposing=!0},hc.onCompositionEnd=function(){hc.isComposing=!1},hc.onTouchStart=function(df){var ff=df.touches,hf=ff&&ff.item(0);hf&&(hc.initialTouchX=hf.clientX,hc.initialTouchY=hf.clientY,hc.userIsDragging=!1)},hc.onTouchMove=function(df){var ff=df.touches,hf=ff&&ff.item(0);if(hf){var pf=Math.abs(hf.clientX-hc.initialTouchX),mf=Math.abs(hf.clientY-hc.initialTouchY),gf=5;hc.userIsDragging=pf>gf||mf>gf}},hc.onTouchEnd=function(df){hc.userIsDragging||(hc.controlRef&&!hc.controlRef.contains(df.target)&&hc.menuListRef&&!hc.menuListRef.contains(df.target)&&hc.blurInput(),hc.initialTouchX=0,hc.initialTouchY=0)},hc.onControlTouchEnd=function(df){hc.userIsDragging||hc.onControlMouseDown(df)},hc.onClearIndicatorTouchEnd=function(df){hc.userIsDragging||hc.onClearIndicatorMouseDown(df)},hc.onDropdownIndicatorTouchEnd=function(df){hc.userIsDragging||hc.onDropdownIndicatorMouseDown(df)},hc.handleInputChange=function(df){var ff=hc.props.inputValue,hf=df.currentTarget.value;hc.setState({inputIsHiddenAfterUpdate:!1}),hc.onInputChange(hf,{action:"input-change",prevInputValue:ff}),hc.props.menuIsOpen||hc.onMenuOpen()},hc.onInputFocus=function(df){hc.props.onFocus&&hc.props.onFocus(df),hc.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(hc.openAfterFocus||hc.props.openMenuOnFocus)&&hc.openMenu("first"),hc.openAfterFocus=!1},hc.onInputBlur=function(df){var ff=hc.props.inputValue;if(hc.menuListRef&&hc.menuListRef.contains(document.activeElement)){hc.inputRef.focus();return}hc.props.onBlur&&hc.props.onBlur(df),hc.onInputChange("",{action:"input-blur",prevInputValue:ff}),hc.onMenuClose(),hc.setState({focusedValue:null,isFocused:!1})},hc.onOptionHover=function(df){if(!(hc.blockOptionHover||hc.state.focusedOption===df)){var ff=hc.getFocusableOptions(),hf=ff.indexOf(df);hc.setState({focusedOption:df,focusedOptionId:hf>-1?hc.getFocusedOptionId(df):null})}},hc.shouldHideSelectedOptions=function(){return Ml(hc.props)},hc.onValueInputFocus=function(df){df.preventDefault(),df.stopPropagation(),hc.focus()},hc.onKeyDown=function(df){var ff=hc.props,hf=ff.isMulti,pf=ff.backspaceRemovesValue,mf=ff.escapeClearsValue,gf=ff.inputValue,yf=ff.isClearable,vf=ff.isDisabled,bf=ff.menuIsOpen,Sf=ff.onKeyDown,xf=ff.tabSelectsValue,wf=ff.openMenuOnFocus,Hp=hc.state,If=Hp.focusedOption,Km=Hp.focusedValue,s1=Hp.selectValue;if(!vf&&!(typeof Sf=="function"&&(Sf(df),df.defaultPrevented))){switch(hc.blockOptionHover=!0,df.key){case"ArrowLeft":if(!hf||gf)return;hc.focusValue("previous");break;case"ArrowRight":if(!hf||gf)return;hc.focusValue("next");break;case"Delete":case"Backspace":if(gf)return;if(Km)hc.removeValue(Km);else{if(!pf)return;hf?hc.popValue():yf&&hc.clearValue()}break;case"Tab":if(hc.isComposing||df.shiftKey||!bf||!xf||!If||wf&&hc.isOptionSelected(If,s1))return;hc.selectOption(If);break;case"Enter":if(df.keyCode===229)break;if(bf){if(!If||hc.isComposing)return;hc.selectOption(If);break}return;case"Escape":bf?(hc.setState({inputIsHiddenAfterUpdate:!1}),hc.onInputChange("",{action:"menu-close",prevInputValue:gf}),hc.onMenuClose()):yf&&mf&&hc.clearValue();break;case" ":if(gf)return;if(!bf){hc.openMenu("first");break}if(!If)return;hc.selectOption(If);break;case"ArrowUp":bf?hc.focusOption("up"):hc.openMenu("last");break;case"ArrowDown":bf?hc.focusOption("down"):hc.openMenu("first");break;case"PageUp":if(!bf)return;hc.focusOption("pageup");break;case"PageDown":if(!bf)return;hc.focusOption("pagedown");break;case"Home":if(!bf)return;hc.focusOption("first");break;case"End":if(!bf)return;hc.focusOption("last");break;default:return}df.preventDefault()}},hc.state.instancePrefix="react-select-"+(hc.props.instanceId||++Kv),hc.state.selectValue=ls$1(Ra.value),Ra.menuIsOpen&&hc.state.selectValue.length){var pc=hc.getFocusableOptionsWithIds(),mc=hc.buildFocusableOptions(),uf=mc.indexOf(hc.state.selectValue[0]);hc.state.focusableOptionsWithIds=pc,hc.state.focusedOption=mc[uf],hc.state.focusedOptionId=Ho$1(pc,mc[uf])}return hc}return Wm(bo,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&us(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(Ra){var hc=this.props,pc=hc.isDisabled,mc=hc.menuIsOpen,uf=this.state.isFocused;(uf&&!pc&&Ra.isDisabled||uf&&mc&&!Ra.menuIsOpen)&&this.focusInput(),uf&&pc&&!Ra.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!uf&&!pc&&Ra.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(us(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(Ra,hc){this.props.onInputChange(Ra,hc)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(Ra){var hc=this,pc=this.state,mc=pc.selectValue,uf=pc.isFocused,df=this.buildFocusableOptions(),ff=Ra==="first"?0:df.length-1;if(!this.props.isMulti){var hf=df.indexOf(mc[0]);hf>-1&&(ff=hf)}this.scrollToFocusedOptionOnUpdate=!(uf&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:df[ff],focusedOptionId:this.getFocusedOptionId(df[ff])},function(){return hc.onMenuOpen()})}},{key:"focusValue",value:function(Ra){var hc=this.state,pc=hc.selectValue,mc=hc.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var uf=pc.indexOf(mc);mc||(uf=-1);var df=pc.length-1,ff=-1;if(pc.length){switch(Ra){case"previous":uf===0?ff=0:uf===-1?ff=df:ff=uf-1;break;case"next":uf>-1&&uf<df&&(ff=uf+1);break}this.setState({inputIsHidden:ff!==-1,focusedValue:pc[ff]})}}}},{key:"focusOption",value:function(){var Ra=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",hc=this.props.pageSize,pc=this.state.focusedOption,mc=this.getFocusableOptions();if(mc.length){var uf=0,df=mc.indexOf(pc);pc||(df=-1),Ra==="up"?uf=df>0?df-1:mc.length-1:Ra==="down"?uf=(df+1)%mc.length:Ra==="pageup"?(uf=df-hc,uf<0&&(uf=0)):Ra==="pagedown"?(uf=df+hc,uf>mc.length-1&&(uf=mc.length-1)):Ra==="last"&&(uf=mc.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:mc[uf],focusedValue:null,focusedOptionId:this.getFocusedOptionId(mc[uf])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Uo$1):te$2(te$2({},Uo$1),this.props.theme):Uo$1}},{key:"getCommonProps",value:function(){var Ra=this.clearValue,hc=this.cx,pc=this.getStyles,mc=this.getClassNames,uf=this.getValue,df=this.selectOption,ff=this.setValue,hf=this.props,pf=hf.isMulti,mf=hf.isRtl,gf=hf.options,yf=this.hasValue();return{clearValue:Ra,cx:hc,getStyles:pc,getClassNames:mc,getValue:uf,hasValue:yf,isMulti:pf,isRtl:mf,options:gf,selectOption:df,selectProps:hf,setValue:ff,theme:this.getTheme()}}},{key:"hasValue",value:function(){var Ra=this.state.selectValue;return Ra.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var Ra=this.props,hc=Ra.isClearable,pc=Ra.isMulti;return hc===void 0?pc:hc}},{key:"isOptionDisabled",value:function(Ra,hc){return Pl(this.props,Ra,hc)}},{key:"isOptionSelected",value:function(Ra,hc){return Tl(this.props,Ra,hc)}},{key:"filterOption",value:function(Ra,hc){return Ol(this.props,Ra,hc)}},{key:"formatOptionLabel",value:function(Ra,hc){if(typeof this.props.formatOptionLabel=="function"){var pc=this.props.inputValue,mc=this.state.selectValue;return this.props.formatOptionLabel(Ra,{context:hc,inputValue:pc,selectValue:mc})}else return this.getOptionLabel(Ra)}},{key:"formatGroupLabel",value:function(Ra){return this.props.formatGroupLabel(Ra)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var Ra=this.props,hc=Ra.isDisabled,pc=Ra.isSearchable,mc=Ra.inputId,uf=Ra.inputValue,df=Ra.tabIndex,ff=Ra.form,hf=Ra.menuIsOpen,pf=Ra.required,mf=this.getComponents(),gf=mf.Input,yf=this.state,vf=yf.inputIsHidden,bf=yf.ariaSelection,Sf=this.commonProps,xf=mc||this.getElementId("input"),wf=te$2(te$2(te$2({"aria-autocomplete":"list","aria-expanded":hf,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":pf,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},hf&&{"aria-controls":this.getElementId("listbox")}),!pc&&{"aria-readonly":!0}),this.hasValue()?(bf==null?void 0:bf.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return pc?y$2.createElement(gf,Hr$3({},Sf,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:xf,innerRef:this.getInputRef,isDisabled:hc,isHidden:vf,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:df,form:ff,type:"text",value:uf},wf)):y$2.createElement(Sv,Hr$3({id:xf,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:_r$2,onFocus:this.onInputFocus,disabled:hc,tabIndex:df,inputMode:"none",form:ff,value:""},wf))}},{key:"renderPlaceholderOrValue",value:function(){var Ra=this,hc=this.getComponents(),pc=hc.MultiValue,mc=hc.MultiValueContainer,uf=hc.MultiValueLabel,df=hc.MultiValueRemove,ff=hc.SingleValue,hf=hc.Placeholder,pf=this.commonProps,mf=this.props,gf=mf.controlShouldRenderValue,yf=mf.isDisabled,vf=mf.isMulti,bf=mf.inputValue,Sf=mf.placeholder,xf=this.state,wf=xf.selectValue,Hp=xf.focusedValue,If=xf.isFocused;if(!this.hasValue()||!gf)return bf?null:y$2.createElement(hf,Hr$3({},pf,{key:"placeholder",isDisabled:yf,isFocused:If,innerProps:{id:this.getElementId("placeholder")}}),Sf);if(vf)return wf.map(function(s1,d1){var O1=s1===Hp,k1="".concat(Ra.getOptionLabel(s1),"-").concat(Ra.getOptionValue(s1));return y$2.createElement(pc,Hr$3({},pf,{components:{Container:mc,Label:uf,Remove:df},isFocused:O1,isDisabled:yf,key:k1,index:d1,removeProps:{onClick:function(){return Ra.removeValue(s1)},onTouchEnd:function(){return Ra.removeValue(s1)},onMouseDown:function(_1){_1.preventDefault()}},data:s1}),Ra.formatOptionLabel(s1,"value"))});if(bf)return null;var Km=wf[0];return y$2.createElement(ff,Hr$3({},pf,{data:Km,isDisabled:yf}),this.formatOptionLabel(Km,"value"))}},{key:"renderClearIndicator",value:function(){var Ra=this.getComponents(),hc=Ra.ClearIndicator,pc=this.commonProps,mc=this.props,uf=mc.isDisabled,df=mc.isLoading,ff=this.state.isFocused;if(!this.isClearable()||!hc||uf||!this.hasValue()||df)return null;var hf={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return y$2.createElement(hc,Hr$3({},pc,{innerProps:hf,isFocused:ff}))}},{key:"renderLoadingIndicator",value:function(){var Ra=this.getComponents(),hc=Ra.LoadingIndicator,pc=this.commonProps,mc=this.props,uf=mc.isDisabled,df=mc.isLoading,ff=this.state.isFocused;if(!hc||!df)return null;var hf={"aria-hidden":"true"};return y$2.createElement(hc,Hr$3({},pc,{innerProps:hf,isDisabled:uf,isFocused:ff}))}},{key:"renderIndicatorSeparator",value:function(){var Ra=this.getComponents(),hc=Ra.DropdownIndicator,pc=Ra.IndicatorSeparator;if(!hc||!pc)return null;var mc=this.commonProps,uf=this.props.isDisabled,df=this.state.isFocused;return y$2.createElement(pc,Hr$3({},mc,{isDisabled:uf,isFocused:df}))}},{key:"renderDropdownIndicator",value:function(){var Ra=this.getComponents(),hc=Ra.DropdownIndicator;if(!hc)return null;var pc=this.commonProps,mc=this.props.isDisabled,uf=this.state.isFocused,df={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return y$2.createElement(hc,Hr$3({},pc,{innerProps:df,isDisabled:mc,isFocused:uf}))}},{key:"renderMenu",value:function(){var Ra=this,hc=this.getComponents(),pc=hc.Group,mc=hc.GroupHeading,uf=hc.Menu,df=hc.MenuList,ff=hc.MenuPortal,hf=hc.LoadingMessage,pf=hc.NoOptionsMessage,mf=hc.Option,gf=this.commonProps,yf=this.state.focusedOption,vf=this.props,bf=vf.captureMenuScroll,Sf=vf.inputValue,xf=vf.isLoading,wf=vf.loadingMessage,Hp=vf.minMenuHeight,If=vf.maxMenuHeight,Km=vf.menuIsOpen,s1=vf.menuPlacement,d1=vf.menuPosition,O1=vf.menuPortalTarget,k1=vf.menuShouldBlockScroll,_1=vf.menuShouldScrollIntoView,m1=vf.noOptionsMessage,R1=vf.onMenuScrollToTop,c1=vf.onMenuScrollToBottom;if(!Km)return null;var f1=function(q1,T1){var M1=q1.type,P1=q1.data,U1=q1.isDisabled,Z1=q1.isSelected,H1=q1.label,Y1=q1.value,J1=yf===P1,tT=U1?void 0:function(){return Ra.onOptionHover(P1)},iT=U1?void 0:function(){return Ra.selectOption(P1)},nT="".concat(Ra.getElementId("option"),"-").concat(T1),eT={id:nT,onClick:iT,onMouseMove:tT,onMouseOver:tT,tabIndex:-1,role:"option","aria-selected":Ra.isAppleDevice?void 0:Z1};return y$2.createElement(mf,Hr$3({},gf,{innerProps:eT,data:P1,isDisabled:U1,isSelected:Z1,key:nT,label:H1,type:M1,value:Y1,isFocused:J1,innerRef:J1?Ra.getFocusedOptionRef:void 0}),Ra.formatOptionLabel(q1.data,"menu"))},E1;if(this.hasOptions())E1=this.getCategorizedOptions().map(function(q1){if(q1.type==="group"){var T1=q1.data,M1=q1.options,P1=q1.index,U1="".concat(Ra.getElementId("group"),"-").concat(P1),Z1="".concat(U1,"-heading");return y$2.createElement(pc,Hr$3({},gf,{key:U1,data:T1,options:M1,Heading:mc,headingProps:{id:Z1,data:q1.data},label:Ra.formatGroupLabel(q1.data)}),q1.options.map(function(H1){return f1(H1,"".concat(P1,"-").concat(H1.index))}))}else if(q1.type==="option")return f1(q1,"".concat(q1.index))});else if(xf){var D1=wf({inputValue:Sf});if(D1===null)return null;E1=y$2.createElement(hf,gf,D1)}else{var j1=m1({inputValue:Sf});if(j1===null)return null;E1=y$2.createElement(pf,gf,j1)}var F1={minMenuHeight:Hp,maxMenuHeight:If,menuPlacement:s1,menuPosition:d1,menuShouldScrollIntoView:_1},G1=y$2.createElement(tg,Hr$3({},gf,F1),function(q1){var T1=q1.ref,M1=q1.placerProps,P1=M1.placement,U1=M1.maxHeight;return y$2.createElement(uf,Hr$3({},gf,F1,{innerRef:T1,innerProps:{onMouseDown:Ra.onMenuMouseDown,onMouseMove:Ra.onMenuMouseMove},isLoading:xf,placement:P1}),y$2.createElement(Ov,{captureEnabled:bf,onTopArrive:R1,onBottomArrive:c1,lockEnabled:k1},function(Z1){return y$2.createElement(df,Hr$3({},gf,{innerRef:function(H1){Ra.getMenuListRef(H1),Z1(H1)},innerProps:{role:"listbox","aria-multiselectable":gf.isMulti,id:Ra.getElementId("listbox")},isLoading:xf,maxHeight:U1,focusedOption:yf}),E1)}))});return O1||d1==="fixed"?y$2.createElement(ff,Hr$3({},gf,{appendTo:O1,controlElement:this.controlRef,menuPlacement:s1,menuPosition:d1}),G1):G1}},{key:"renderFormField",value:function(){var Ra=this,hc=this.props,pc=hc.delimiter,mc=hc.isDisabled,uf=hc.isMulti,df=hc.name,ff=hc.required,hf=this.state.selectValue;if(ff&&!this.hasValue()&&!mc)return y$2.createElement(Av,{name:df,onFocus:this.onValueInputFocus});if(!(!df||mc))if(uf)if(pc){var pf=hf.map(function(yf){return Ra.getOptionValue(yf)}).join(pc);return y$2.createElement("input",{name:df,type:"hidden",value:pf})}else{var mf=hf.length>0?hf.map(function(yf,vf){return y$2.createElement("input",{key:"i-".concat(vf),name:df,type:"hidden",value:Ra.getOptionValue(yf)})}):y$2.createElement("input",{name:df,type:"hidden",value:""});return y$2.createElement("div",null,mf)}else{var gf=hf[0]?this.getOptionValue(hf[0]):"";return y$2.createElement("input",{name:df,type:"hidden",value:gf})}}},{key:"renderLiveRegion",value:function(){var Ra=this.commonProps,hc=this.state,pc=hc.ariaSelection,mc=hc.focusedOption,uf=hc.focusedValue,df=hc.isFocused,ff=hc.selectValue,hf=this.getFocusableOptions();return y$2.createElement(gv,Hr$3({},Ra,{id:this.getElementId("live-region"),ariaSelection:pc,focusedOption:mc,focusedValue:uf,isFocused:df,selectValue:ff,focusableOptions:hf,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var Ra=this.getComponents(),hc=Ra.Control,pc=Ra.IndicatorsContainer,mc=Ra.SelectContainer,uf=Ra.ValueContainer,df=this.props,ff=df.className,hf=df.id,pf=df.isDisabled,mf=df.menuIsOpen,gf=this.state.isFocused,yf=this.commonProps=this.getCommonProps();return y$2.createElement(mc,Hr$3({},yf,{className:ff,innerProps:{id:hf,onKeyDown:this.onKeyDown},isDisabled:pf,isFocused:gf}),this.renderLiveRegion(),y$2.createElement(hc,Hr$3({},yf,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:pf,isFocused:gf,menuIsOpen:mf}),y$2.createElement(uf,Hr$3({},yf,{isDisabled:pf}),this.renderPlaceholderOrValue(),this.renderInput()),y$2.createElement(pc,Hr$3({},yf,{isDisabled:pf}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(Ra,hc){var pc=hc.prevProps,mc=hc.clearFocusValueOnUpdate,uf=hc.inputIsHiddenAfterUpdate,df=hc.ariaSelection,ff=hc.isFocused,hf=hc.prevWasFocused,pf=hc.instancePrefix,mf=Ra.options,gf=Ra.value,yf=Ra.menuIsOpen,vf=Ra.inputValue,bf=Ra.isMulti,Sf=ls$1(gf),xf={};if(pc&&(gf!==pc.value||mf!==pc.options||yf!==pc.menuIsOpen||vf!==pc.inputValue)){var wf=yf?Gv(Ra,Sf):[],Hp=yf?Is$2(xr$2(Ra,Sf),"".concat(pf,"-option")):[],If=mc?qv(hc,Sf):null,Km=Xv(hc,wf),s1=Ho$1(Hp,Km);xf={selectValue:Sf,focusedOption:Km,focusedOptionId:s1,focusableOptionsWithIds:Hp,focusedValue:If,clearFocusValueOnUpdate:!1}}var d1=uf!=null&&Ra!==pc?{inputIsHidden:uf,inputIsHiddenAfterUpdate:void 0}:{},O1=df,k1=ff&&hf;return ff&&!k1&&(O1={value:lr$1(bf,Sf,Sf[0]||null),options:Sf,action:"initial-input-focus"},k1=!hf),(df==null?void 0:df.action)==="initial-input-focus"&&(O1=null),te$2(te$2(te$2({},xf),d1),{},{prevProps:Ra,ariaSelection:O1,prevWasFocused:k1})}}]),bo}(Component);Nl.defaultProps=Yv;var Zv=forwardRef(function(vo,Ai){var bo=Um(vo);return y$2.createElement(Nl,Hr$3({ref:Ai},bo))}),Qv=Zv;function Jv(vo){return jsx(ro$1.DropdownIndicator,{...vo,children:jsx(_e$1,{name:"ChevronDown",size:16})})}function eb(vo){return jsx(ro$1.ClearIndicator,{...vo,children:jsx(_e$1,{name:"Xmark",size:16})})}function tb(vo){const{label:Ai,onClick:bo,...Ra}=vo,hc=!!Ai&&!!bo;return jsxs(ro$1.MenuList,{...Ra,children:[vo.children,hc?jsx("button",{className:"w-full px-2 py-3 hover:bg-slate-50",onClick:bo,children:Ai}):null]})}function Ca(vo){const Ai=vo["aria-invalid"]==="true",{addItemButtonProps:bo,...Ra}=vo;return jsx(Qv,{...Ra,components:{DropdownIndicator:Jv,ClearIndicator:eb,MenuList:hc=>tb({...hc,...bo})},styles:{dropdownIndicator:()=>({label:"indicatorContainer",display:"flex",transition:"color 150ms",color:"var(--gray-900)",padding:8,boxSizing:"border-box"}),clearIndicator:hc=>({...hc,color:"var(--gray-900)"}),container:hc=>({...hc,borderColor:"var(--gray-200)",fontSize:12}),placeholder:hc=>({...hc,color:Ai?"var(--red-800)":"var(--gray-500)"}),control:()=>({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:32,outline:"0 !important",position:"relative",transition:"all 100ms",backgroundColor:"var(--white)",borderColor:Ai?"var(--red-900)":"var(--gray-200)",borderStyle:"solid",borderWidth:1,borderRadius:"6px",boxSizing:"border-box"}),option:(hc,pc)=>({...hc,backgroundColor:pc.isSelected?"var(--slate-50)":"var(--white)",color:"var(--gray-800)",":hover":{backgroundColor:"var(--slate-50)"}}),menuList:hc=>({...hc,padding:0,borderRadius:"6px"})},theme:hc=>({...hc,colors:{...hc.colors,primary:"var(--slate-100)",primary25:"var(--slate-50)",primary50:"var(--slate-100)",primary75:"var(--slate-100)",danger:"var(--red-900)",dangerLight:"var(--red-100)",neutral0:"var(--white)",neutral5:"var(--gray-50)",neutral10:"var(--gray-100)",neutral20:"var(--gray-200)",neutral30:"var(--gray-300)",neutral40:"var(--gray-400)",neutral50:"var(--gray-500)",neutral60:"var(--gray-600)",neutral70:"var(--gray-700)",neutral80:"var(--gray-800)",neutral90:"var(--gray-900)"}})})}function Al(vo,Ai){const{className:bo,...Ra}=vo;return{className:Ne$1(Ai,typeof bo=="string"&&bo),...Ra}}const Dl=forwardRef(function(vo,Ai){const{color:bo="dark",size:Ra="medium",className:hc="",children:pc,icon:mc,iconPosition:uf="left",...df}=vo,ff={small:"px-2 py-1.5 text-xs rounded-md font-medium",medium:"px-6 py-3 text-base rounded-xl font-semibold tracking-wide"},hf=Xr$1({light:"bg-gray-200 text-gray-600 hover:text-gray-700 hover:border-gray-300 active:border-slate-100 active:text-gray-600 disabled:text-gray-400",dark:"bg-gray-800 text-slate-50 hover:bg-slate-800 active:border-slate-700 disabled:bg-gray-300 disabled:text-slate-100",red:"bg-red-900 text-slate-50 hover:opacity-80 active:border-red-800 disabled:text-red-400 disabled:opacity-100",blue:"bg-blue-900 text-slate-50 hover:opacity-80 active:border-blue-800 disabled:text-blue-400 disabled:opacity-100"}[bo],ff[Ra]),pf=Ne$1("flex items-center justify-center gap-2 border border-none outline-none transition disabled:cursor-not-allowed",hf,hc);return jsxs("button",{className:pf,ref:Ai,...df,children:[uf==="left"&&mc,pc,uf==="right"&&mc]})});function re$2(vo,Ai,{checkForDefaultPrevented:bo=!0}={}){return function(Ra){if(vo==null||vo(Ra),bo===!1||!Ra.defaultPrevented)return Ai==null?void 0:Ai(Ra)}}function nb(vo,Ai){const bo=y$2.createContext(Ai),Ra=pc=>{const{children:mc,...uf}=pc,df=y$2.useMemo(()=>uf,Object.values(uf));return jsx(bo.Provider,{value:df,children:mc})};Ra.displayName=vo+"Provider";function hc(pc){const mc=y$2.useContext(bo);if(mc)return mc;if(Ai!==void 0)return Ai;throw new Error(`\`${pc}\` must be used within \`${vo}\``)}return[Ra,hc]}function Wt$2(vo,Ai=[]){let bo=[];function Ra(pc,mc){const uf=y$2.createContext(mc),df=bo.length;bo=[...bo,mc];const ff=pf=>{var mf;const{scope:gf,children:yf,...vf}=pf,bf=((mf=gf==null?void 0:gf[vo])==null?void 0:mf[df])||uf,Sf=y$2.useMemo(()=>vf,Object.values(vf));return jsx(bf.Provider,{value:Sf,children:yf})};ff.displayName=pc+"Provider";function hf(pf,mf){var gf;const yf=((gf=mf==null?void 0:mf[vo])==null?void 0:gf[df])||uf,vf=y$2.useContext(yf);if(vf)return vf;if(mc!==void 0)return mc;throw new Error(`\`${pf}\` must be used within \`${pc}\``)}return[ff,hf]}const hc=()=>{const pc=bo.map(mc=>y$2.createContext(mc));return function(mc){const uf=(mc==null?void 0:mc[vo])||pc;return y$2.useMemo(()=>({[`__scope${vo}`]:{...mc,[vo]:uf}}),[mc,uf])}};return hc.scopeName=vo,[Ra,rb(hc,...Ai)]}function rb(...vo){const Ai=vo[0];if(vo.length===1)return Ai;const bo=()=>{const Ra=vo.map(hc=>({useScope:hc(),scopeName:hc.scopeName}));return function(hc){const pc=Ra.reduce((mc,{useScope:uf,scopeName:df})=>{const ff=uf(hc)[`__scope${df}`];return{...mc,...ff}},{});return y$2.useMemo(()=>({[`__scope${Ai.scopeName}`]:pc}),[pc])}};return bo.scopeName=Ai.scopeName,bo}function at$2(vo){const Ai=y$2.useRef(vo);return y$2.useEffect(()=>{Ai.current=vo}),y$2.useMemo(()=>(...bo)=>{var Ra;return(Ra=Ai.current)==null?void 0:Ra.call(Ai,...bo)},[])}function Qn$2({prop:vo,defaultProp:Ai,onChange:bo=()=>{}}){const[Ra,hc]=ob({defaultProp:Ai,onChange:bo}),pc=vo!==void 0,mc=pc?vo:Ra,uf=at$2(bo),df=y$2.useCallback(ff=>{if(pc){const hf=typeof ff=="function"?ff(vo):ff;hf!==vo&&uf(hf)}else hc(ff)},[pc,vo,hc,uf]);return[mc,df]}function ob({defaultProp:vo,onChange:Ai}){const bo=y$2.useState(vo),[Ra]=bo,hc=y$2.useRef(Ra),pc=at$2(Ai);return y$2.useEffect(()=>{hc.current!==Ra&&(pc(Ra),hc.current=Ra)},[Ra,hc,pc]),bo}function Rl(vo){const Ai=vo+"CollectionProvider",[bo,Ra]=Wt$2(Ai),[hc,pc]=bo(Ai,{collectionRef:{current:null},itemMap:new Map}),mc=gf=>{const{scope:yf,children:vf}=gf,bf=y__default.useRef(null),Sf=y__default.useRef(new Map).current;return jsx(hc,{scope:yf,itemMap:Sf,collectionRef:bf,children:vf})};mc.displayName=Ai;const uf=vo+"CollectionSlot",df=y__default.forwardRef((gf,yf)=>{const{scope:vf,children:bf}=gf,Sf=pc(uf,vf),xf=Fe$2(yf,Sf.collectionRef);return jsx(mn$1,{ref:xf,children:bf})});df.displayName=uf;const ff=vo+"CollectionItemSlot",hf="data-radix-collection-item",pf=y__default.forwardRef((gf,yf)=>{const{scope:vf,children:bf,...Sf}=gf,xf=y__default.useRef(null),wf=Fe$2(yf,xf),Hp=pc(ff,vf);return y__default.useEffect(()=>(Hp.itemMap.set(xf,{ref:xf,...Sf}),()=>void Hp.itemMap.delete(xf))),jsx(mn$1,{[hf]:"",ref:wf,children:bf})});pf.displayName=ff;function mf(gf){const yf=pc(vo+"CollectionConsumer",gf);return y__default.useCallback(()=>{const vf=yf.collectionRef.current;if(!vf)return[];const bf=Array.from(vf.querySelectorAll(`[${hf}]`));return Array.from(yf.itemMap.values()).sort((Sf,xf)=>bf.indexOf(Sf.ref.current)-bf.indexOf(xf.ref.current))},[yf.collectionRef,yf.itemMap])}return[{Provider:mc,Slot:df,ItemSlot:pf},mf,Ra]}var ab=y$2.createContext(void 0);function ei(vo){const Ai=y$2.useContext(ab);return vo||Ai||"ltr"}function ib(vo,Ai=globalThis==null?void 0:globalThis.document){const bo=at$2(vo);y$2.useEffect(()=>{const Ra=hc=>{hc.key==="Escape"&&bo(hc)};return Ai.addEventListener("keydown",Ra,{capture:!0}),()=>Ai.removeEventListener("keydown",Ra,{capture:!0})},[bo,Ai])}var sb="DismissableLayer",Ia="dismissableLayer.update",cb="dismissableLayer.pointerDownOutside",lb="dismissableLayer.focusOutside",Ps$1,_l=y$2.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),oo$1=y$2.forwardRef((vo,Ai)=>{const{disableOutsidePointerEvents:bo=!1,onEscapeKeyDown:Ra,onPointerDownOutside:hc,onFocusOutside:pc,onInteractOutside:mc,onDismiss:uf,...df}=vo,ff=y$2.useContext(_l),[hf,pf]=y$2.useState(null),mf=(hf==null?void 0:hf.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,gf]=y$2.useState({}),yf=Fe$2(Ai,s1=>pf(s1)),vf=Array.from(ff.layers),[bf]=[...ff.layersWithOutsidePointerEventsDisabled].slice(-1),Sf=vf.indexOf(bf),xf=hf?vf.indexOf(hf):-1,wf=ff.layersWithOutsidePointerEventsDisabled.size>0,Hp=xf>=Sf,If=fb(s1=>{const d1=s1.target,O1=[...ff.branches].some(k1=>k1.contains(d1));!Hp||O1||(hc==null||hc(s1),mc==null||mc(s1),s1.defaultPrevented||uf==null||uf())},mf),Km=mb(s1=>{const d1=s1.target;[...ff.branches].some(O1=>O1.contains(d1))||(pc==null||pc(s1),mc==null||mc(s1),s1.defaultPrevented||uf==null||uf())},mf);return ib(s1=>{xf===ff.layers.size-1&&(Ra==null||Ra(s1),!s1.defaultPrevented&&uf&&(s1.preventDefault(),uf()))},mf),y$2.useEffect(()=>{if(hf)return bo&&(ff.layersWithOutsidePointerEventsDisabled.size===0&&(Ps$1=mf.body.style.pointerEvents,mf.body.style.pointerEvents="none"),ff.layersWithOutsidePointerEventsDisabled.add(hf)),ff.layers.add(hf),Ts(),()=>{bo&&ff.layersWithOutsidePointerEventsDisabled.size===1&&(mf.body.style.pointerEvents=Ps$1)}},[hf,mf,bo,ff]),y$2.useEffect(()=>()=>{hf&&(ff.layers.delete(hf),ff.layersWithOutsidePointerEventsDisabled.delete(hf),Ts())},[hf,ff]),y$2.useEffect(()=>{const s1=()=>gf({});return document.addEventListener(Ia,s1),()=>document.removeEventListener(Ia,s1)},[]),jsx(we$1.div,{...df,ref:yf,style:{pointerEvents:wf?Hp?"auto":"none":void 0,...vo.style},onFocusCapture:re$2(vo.onFocusCapture,Km.onFocusCapture),onBlurCapture:re$2(vo.onBlurCapture,Km.onBlurCapture),onPointerDownCapture:re$2(vo.onPointerDownCapture,If.onPointerDownCapture)})});oo$1.displayName=sb;var ub="DismissableLayerBranch",db=y$2.forwardRef((vo,Ai)=>{const bo=y$2.useContext(_l),Ra=y$2.useRef(null),hc=Fe$2(Ai,Ra);return y$2.useEffect(()=>{const pc=Ra.current;if(pc)return bo.branches.add(pc),()=>{bo.branches.delete(pc)}},[bo.branches]),jsx(we$1.div,{...vo,ref:hc})});db.displayName=ub;function fb(vo,Ai=globalThis==null?void 0:globalThis.document){const bo=at$2(vo),Ra=y$2.useRef(!1),hc=y$2.useRef(()=>{});return y$2.useEffect(()=>{const pc=uf=>{if(uf.target&&!Ra.current){let df=function(){kl(cb,bo,ff,{discrete:!0})};const ff={originalEvent:uf};uf.pointerType==="touch"?(Ai.removeEventListener("click",hc.current),hc.current=df,Ai.addEventListener("click",hc.current,{once:!0})):df()}else Ai.removeEventListener("click",hc.current);Ra.current=!1},mc=window.setTimeout(()=>{Ai.addEventListener("pointerdown",pc)},0);return()=>{window.clearTimeout(mc),Ai.removeEventListener("pointerdown",pc),Ai.removeEventListener("click",hc.current)}},[Ai,bo]),{onPointerDownCapture:()=>Ra.current=!0}}function mb(vo,Ai=globalThis==null?void 0:globalThis.document){const bo=at$2(vo),Ra=y$2.useRef(!1);return y$2.useEffect(()=>{const hc=pc=>{pc.target&&!Ra.current&&kl(lb,bo,{originalEvent:pc},{discrete:!1})};return Ai.addEventListener("focusin",hc),()=>Ai.removeEventListener("focusin",hc)},[Ai,bo]),{onFocusCapture:()=>Ra.current=!0,onBlurCapture:()=>Ra.current=!1}}function Ts(){const vo=new CustomEvent(Ia);document.dispatchEvent(vo)}function kl(vo,Ai,bo,{discrete:Ra}){const hc=bo.originalEvent.target,pc=new CustomEvent(vo,{bubbles:!1,cancelable:!0,detail:bo});Ai&&hc.addEventListener(vo,Ai,{once:!0}),Ra?_c(hc,pc):hc.dispatchEvent(pc)}var Wo$1=0;function Fl(){y$2.useEffect(()=>{const vo=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",vo[0]??Os$1()),document.body.insertAdjacentElement("beforeend",vo[1]??Os$1()),Wo$1++,()=>{Wo$1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(Ai=>Ai.remove()),Wo$1--}},[])}function Os$1(){const vo=document.createElement("span");return vo.setAttribute("data-radix-focus-guard",""),vo.tabIndex=0,vo.style.outline="none",vo.style.opacity="0",vo.style.position="fixed",vo.style.pointerEvents="none",vo}var Bo$1="focusScope.autoFocusOnMount",zo$1="focusScope.autoFocusOnUnmount",Ms$1={bubbles:!1,cancelable:!0},pb="FocusScope",ti=y$2.forwardRef((vo,Ai)=>{const{loop:bo=!1,trapped:Ra=!1,onMountAutoFocus:hc,onUnmountAutoFocus:pc,...mc}=vo,[uf,df]=y$2.useState(null),ff=at$2(hc),hf=at$2(pc),pf=y$2.useRef(null),mf=Fe$2(Ai,vf=>df(vf)),gf=y$2.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y$2.useEffect(()=>{if(Ra){let vf=function(wf){if(gf.paused||!uf)return;const Hp=wf.target;uf.contains(Hp)?pf.current=Hp:At$2(pf.current,{select:!0})},bf=function(wf){if(gf.paused||!uf)return;const Hp=wf.relatedTarget;Hp!==null&&(uf.contains(Hp)||At$2(pf.current,{select:!0}))},Sf=function(wf){if(document.activeElement===document.body)for(const Hp of wf)Hp.removedNodes.length>0&&At$2(uf)};document.addEventListener("focusin",vf),document.addEventListener("focusout",bf);const xf=new MutationObserver(Sf);return uf&&xf.observe(uf,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",vf),document.removeEventListener("focusout",bf),xf.disconnect()}}},[Ra,uf,gf.paused]),y$2.useEffect(()=>{if(uf){As.add(gf);const vf=document.activeElement;if(!uf.contains(vf)){const bf=new CustomEvent(Bo$1,Ms$1);uf.addEventListener(Bo$1,ff),uf.dispatchEvent(bf),bf.defaultPrevented||(hb(wb(Vl(uf)),{select:!0}),document.activeElement===vf&&At$2(uf))}return()=>{uf.removeEventListener(Bo$1,ff),setTimeout(()=>{const bf=new CustomEvent(zo$1,Ms$1);uf.addEventListener(zo$1,hf),uf.dispatchEvent(bf),bf.defaultPrevented||At$2(vf??document.body,{select:!0}),uf.removeEventListener(zo$1,hf),As.remove(gf)},0)}}},[uf,ff,hf,gf]);const yf=y$2.useCallback(vf=>{if(!bo&&!Ra||gf.paused)return;const bf=vf.key==="Tab"&&!vf.altKey&&!vf.ctrlKey&&!vf.metaKey,Sf=document.activeElement;if(bf&&Sf){const xf=vf.currentTarget,[wf,Hp]=gb(xf);wf&&Hp?!vf.shiftKey&&Sf===Hp?(vf.preventDefault(),bo&&At$2(wf,{select:!0})):vf.shiftKey&&Sf===wf&&(vf.preventDefault(),bo&&At$2(Hp,{select:!0})):Sf===xf&&vf.preventDefault()}},[bo,Ra,gf.paused]);return jsx(we$1.div,{tabIndex:-1,...mc,ref:mf,onKeyDown:yf})});ti.displayName=pb;function hb(vo,{select:Ai=!1}={}){const bo=document.activeElement;for(const Ra of vo)if(At$2(Ra,{select:Ai}),document.activeElement!==bo)return}function gb(vo){const Ai=Vl(vo),bo=Ns(Ai,vo),Ra=Ns(Ai.reverse(),vo);return[bo,Ra]}function Vl(vo){const Ai=[],bo=document.createTreeWalker(vo,NodeFilter.SHOW_ELEMENT,{acceptNode:Ra=>{const hc=Ra.tagName==="INPUT"&&Ra.type==="hidden";return Ra.disabled||Ra.hidden||hc?NodeFilter.FILTER_SKIP:Ra.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;bo.nextNode();)Ai.push(bo.currentNode);return Ai}function Ns(vo,Ai){for(const bo of vo)if(!vb(bo,{upTo:Ai}))return bo}function vb(vo,{upTo:Ai}){if(getComputedStyle(vo).visibility==="hidden")return!0;for(;vo;){if(Ai!==void 0&&vo===Ai)return!1;if(getComputedStyle(vo).display==="none")return!0;vo=vo.parentElement}return!1}function bb(vo){return vo instanceof HTMLInputElement&&"select"in vo}function At$2(vo,{select:Ai=!1}={}){if(vo&&vo.focus){const bo=document.activeElement;vo.focus({preventScroll:!0}),vo!==bo&&bb(vo)&&Ai&&vo.select()}}var As=yb();function yb(){let vo=[];return{add(Ai){const bo=vo[0];Ai!==bo&&(bo==null||bo.pause()),vo=Ds$1(vo,Ai),vo.unshift(Ai)},remove(Ai){var bo;vo=Ds$1(vo,Ai),(bo=vo[0])==null||bo.resume()}}}function Ds$1(vo,Ai){const bo=[...vo],Ra=bo.indexOf(Ai);return Ra!==-1&&bo.splice(Ra,1),bo}function wb(vo){return vo.filter(Ai=>Ai.tagName!=="A")}var Xt$1=globalThis!=null&&globalThis.document?y$2.useLayoutEffect:()=>{},xb=y$2.useId||(()=>{}),Sb=0;function Ft$2(vo){const[Ai,bo]=y$2.useState(xb());return Xt$1(()=>{bo(Ra=>Ra??String(Sb++))},[vo]),Ai?`radix-${Ai}`:""}var Sr$2=typeof document<"u"?useLayoutEffect:useEffect;function Vr$2(vo,Ai){if(vo===Ai)return!0;if(typeof vo!=typeof Ai)return!1;if(typeof vo=="function"&&vo.toString()===Ai.toString())return!0;let bo,Ra,hc;if(vo&&Ai&&typeof vo=="object"){if(Array.isArray(vo)){if(bo=vo.length,bo!==Ai.length)return!1;for(Ra=bo;Ra--!==0;)if(!Vr$2(vo[Ra],Ai[Ra]))return!1;return!0}if(hc=Object.keys(vo),bo=hc.length,bo!==Object.keys(Ai).length)return!1;for(Ra=bo;Ra--!==0;)if(!{}.hasOwnProperty.call(Ai,hc[Ra]))return!1;for(Ra=bo;Ra--!==0;){const pc=hc[Ra];if(!(pc==="_owner"&&vo.$$typeof)&&!Vr$2(vo[pc],Ai[pc]))return!1}return!0}return vo!==vo&&Ai!==Ai}function Ll(vo){return typeof window>"u"?1:(vo.ownerDocument.defaultView||window).devicePixelRatio||1}function Rs(vo,Ai){const bo=Ll(vo);return Math.round(Ai*bo)/bo}function jo(vo){const Ai=y$2.useRef(vo);return Sr$2(()=>{Ai.current=vo}),Ai}function Cb(vo){vo===void 0&&(vo={});const{placement:Ai="bottom",strategy:bo="absolute",middleware:Ra=[],platform:hc,elements:{reference:pc,floating:mc}={},transform:uf=!0,whileElementsMounted:df,open:ff}=vo,[hf,pf]=y$2.useState({x:0,y:0,strategy:bo,placement:Ai,middlewareData:{},isPositioned:!1}),[mf,gf]=y$2.useState(Ra);Vr$2(mf,Ra)||gf(Ra);const[yf,vf]=y$2.useState(null),[bf,Sf]=y$2.useState(null),xf=y$2.useCallback(j1=>{j1!==Km.current&&(Km.current=j1,vf(j1))},[]),wf=y$2.useCallback(j1=>{j1!==s1.current&&(s1.current=j1,Sf(j1))},[]),Hp=pc||yf,If=mc||bf,Km=y$2.useRef(null),s1=y$2.useRef(null),d1=y$2.useRef(hf),O1=df!=null,k1=jo(df),_1=jo(hc),m1=jo(ff),R1=y$2.useCallback(()=>{if(!Km.current||!s1.current)return;const j1={placement:Ai,strategy:bo,middleware:mf};_1.current&&(j1.platform=_1.current),Fh(Km.current,s1.current,j1).then(F1=>{const G1={...F1,isPositioned:m1.current!==!1};c1.current&&!Vr$2(d1.current,G1)&&(d1.current=G1,Ql$1.flushSync(()=>{pf(G1)}))})},[mf,Ai,bo,_1,m1]);Sr$2(()=>{ff===!1&&d1.current.isPositioned&&(d1.current.isPositioned=!1,pf(j1=>({...j1,isPositioned:!1})))},[ff]);const c1=y$2.useRef(!1);Sr$2(()=>(c1.current=!0,()=>{c1.current=!1}),[]),Sr$2(()=>{if(Hp&&(Km.current=Hp),If&&(s1.current=If),Hp&&If){if(k1.current)return k1.current(Hp,If,R1);R1()}},[Hp,If,R1,k1,O1]);const f1=y$2.useMemo(()=>({reference:Km,floating:s1,setReference:xf,setFloating:wf}),[xf,wf]),E1=y$2.useMemo(()=>({reference:Hp,floating:If}),[Hp,If]),D1=y$2.useMemo(()=>{const j1={position:bo,left:0,top:0};if(!E1.floating)return j1;const F1=Rs(E1.floating,hf.x),G1=Rs(E1.floating,hf.y);return uf?{...j1,transform:"translate("+F1+"px, "+G1+"px)",...Ll(E1.floating)>=1.5&&{willChange:"transform"}}:{position:bo,left:F1,top:G1}},[bo,uf,E1.floating,hf.x,hf.y]);return y$2.useMemo(()=>({...hf,update:R1,refs:f1,elements:E1,floatingStyles:D1}),[hf,R1,f1,E1,D1])}const Ib=vo=>{function Ai(bo){return{}.hasOwnProperty.call(bo,"current")}return{name:"arrow",options:vo,fn(bo){const{element:Ra,padding:hc}=typeof vo=="function"?vo(bo):vo;return Ra&&Ai(Ra)?Ra.current!=null?cs({element:Ra.current,padding:hc}).fn(bo):{}:Ra?cs({element:Ra,padding:hc}).fn(bo):{}}}},Eb=(vo,Ai)=>({...Nh(vo),options:[vo,Ai]}),Pb=(vo,Ai)=>({...Ah(vo),options:[vo,Ai]}),Tb=(vo,Ai)=>({...kh(vo),options:[vo,Ai]}),Ob=(vo,Ai)=>({...Dh(vo),options:[vo,Ai]}),Mb=(vo,Ai)=>({...Rh(vo),options:[vo,Ai]}),Nb=(vo,Ai)=>({..._h(vo),options:[vo,Ai]}),Ab=(vo,Ai)=>({...Ib(vo),options:[vo,Ai]});var Db="Arrow",$l=y$2.forwardRef((vo,Ai)=>{const{children:bo,width:Ra=10,height:hc=5,...pc}=vo;return jsx(we$1.svg,{...pc,ref:Ai,width:Ra,height:hc,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:vo.asChild?bo:jsx("polygon",{points:"0,0 30,0 15,10"})})});$l.displayName=Db;var Rb=$l;function _b(vo){const[Ai,bo]=y$2.useState(void 0);return Xt$1(()=>{if(vo){bo({width:vo.offsetWidth,height:vo.offsetHeight});const Ra=new ResizeObserver(hc=>{if(!Array.isArray(hc)||!hc.length)return;const pc=hc[0];let mc,uf;if("borderBoxSize"in pc){const df=pc.borderBoxSize,ff=Array.isArray(df)?df[0]:df;mc=ff.inlineSize,uf=ff.blockSize}else mc=vo.offsetWidth,uf=vo.offsetHeight;bo({width:mc,height:uf})});return Ra.observe(vo,{box:"border-box"}),()=>Ra.unobserve(vo)}else bo(void 0)},[vo]),Ai}var ni="Popper",[Ul,ao$1]=Wt$2(ni),[kb,Hl]=Ul(ni),Wl=vo=>{const{__scopePopper:Ai,children:bo}=vo,[Ra,hc]=y$2.useState(null);return jsx(kb,{scope:Ai,anchor:Ra,onAnchorChange:hc,children:bo})};Wl.displayName=ni;var Bl="PopperAnchor",zl=y$2.forwardRef((vo,Ai)=>{const{__scopePopper:bo,virtualRef:Ra,...hc}=vo,pc=Hl(Bl,bo),mc=y$2.useRef(null),uf=Fe$2(Ai,mc);return y$2.useEffect(()=>{pc.onAnchorChange((Ra==null?void 0:Ra.current)||mc.current)}),Ra?null:jsx(we$1.div,{...hc,ref:uf})});zl.displayName=Bl;var ri="PopperContent",[Fb,Vb]=Ul(ri),jl=y$2.forwardRef((vo,Ai)=>{var bo,Ra,hc,pc,mc,uf;const{__scopePopper:df,side:ff="bottom",sideOffset:hf=0,align:pf="center",alignOffset:mf=0,arrowPadding:gf=0,avoidCollisions:yf=!0,collisionBoundary:vf=[],collisionPadding:bf=0,sticky:Sf="partial",hideWhenDetached:xf=!1,updatePositionStrategy:wf="optimized",onPlaced:Hp,...If}=vo,Km=Hl(ri,df),[s1,d1]=y$2.useState(null),O1=Fe$2(Ai,eT=>d1(eT)),[k1,_1]=y$2.useState(null),m1=_b(k1),R1=(m1==null?void 0:m1.width)??0,c1=(m1==null?void 0:m1.height)??0,f1=ff+(pf!=="center"?"-"+pf:""),E1=typeof bf=="number"?bf:{top:0,right:0,bottom:0,left:0,...bf},D1=Array.isArray(vf)?vf:[vf],j1=D1.length>0,F1={padding:E1,boundary:D1.filter($b),altBoundary:j1},{refs:G1,floatingStyles:q1,placement:T1,isPositioned:M1,middlewareData:P1}=Cb({strategy:"fixed",placement:f1,whileElementsMounted:(...eT)=>cl(...eT,{animationFrame:wf==="always"}),elements:{reference:Km.anchor},middleware:[Eb({mainAxis:hf+c1,alignmentAxis:mf}),yf&&Pb({mainAxis:!0,crossAxis:!1,limiter:Sf==="partial"?Tb():void 0,...F1}),yf&&Ob({...F1}),Mb({...F1,apply:({elements:eT,rects:sT,availableWidth:A1,availableHeight:L1})=>{const{width:N1,height:l1}=sT.reference,u1=eT.floating.style;u1.setProperty("--radix-popper-available-width",`${A1}px`),u1.setProperty("--radix-popper-available-height",`${L1}px`),u1.setProperty("--radix-popper-anchor-width",`${N1}px`),u1.setProperty("--radix-popper-anchor-height",`${l1}px`)}}),k1&&Ab({element:k1,padding:gf}),Ub({arrowWidth:R1,arrowHeight:c1}),xf&&Nb({strategy:"referenceHidden",...F1})]}),[U1,Z1]=ql(T1),H1=at$2(Hp);Xt$1(()=>{M1&&(H1==null||H1())},[M1,H1]);const Y1=(bo=P1.arrow)==null?void 0:bo.x,J1=(Ra=P1.arrow)==null?void 0:Ra.y,tT=((hc=P1.arrow)==null?void 0:hc.centerOffset)!==0,[iT,nT]=y$2.useState();return Xt$1(()=>{s1&&nT(window.getComputedStyle(s1).zIndex)},[s1]),jsx("div",{ref:G1.setFloating,"data-radix-popper-content-wrapper":"",style:{...q1,transform:M1?q1.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:iT,"--radix-popper-transform-origin":[(pc=P1.transformOrigin)==null?void 0:pc.x,(mc=P1.transformOrigin)==null?void 0:mc.y].join(" "),...((uf=P1.hide)==null?void 0:uf.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:vo.dir,children:jsx(Fb,{scope:df,placedSide:U1,onArrowChange:_1,arrowX:Y1,arrowY:J1,shouldHideArrow:tT,children:jsx(we$1.div,{"data-side":U1,"data-align":Z1,...If,ref:O1,style:{...If.style,animation:M1?void 0:"none"}})})})});jl.displayName=ri;var Yl="PopperArrow",Lb={top:"bottom",right:"left",bottom:"top",left:"right"},Gl=y$2.forwardRef(function(vo,Ai){const{__scopePopper:bo,...Ra}=vo,hc=Vb(Yl,bo),pc=Lb[hc.placedSide];return jsx("span",{ref:hc.onArrowChange,style:{position:"absolute",left:hc.arrowX,top:hc.arrowY,[pc]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[hc.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[hc.placedSide],visibility:hc.shouldHideArrow?"hidden":void 0},children:jsx(Rb,{...Ra,ref:Ai,style:{...Ra.style,display:"block"}})})});Gl.displayName=Yl;function $b(vo){return vo!==null}var Ub=vo=>({name:"transformOrigin",options:vo,fn(Ai){var bo,Ra,hc;const{placement:pc,rects:mc,middlewareData:uf}=Ai,df=((bo=uf.arrow)==null?void 0:bo.centerOffset)!==0,ff=df?0:vo.arrowWidth,hf=df?0:vo.arrowHeight,[pf,mf]=ql(pc),gf={start:"0%",center:"50%",end:"100%"}[mf],yf=(((Ra=uf.arrow)==null?void 0:Ra.x)??0)+ff/2,vf=(((hc=uf.arrow)==null?void 0:hc.y)??0)+hf/2;let bf="",Sf="";return pf==="bottom"?(bf=df?gf:`${yf}px`,Sf=`${-hf}px`):pf==="top"?(bf=df?gf:`${yf}px`,Sf=`${mc.floating.height+hf}px`):pf==="right"?(bf=`${-hf}px`,Sf=df?gf:`${vf}px`):pf==="left"&&(bf=`${mc.floating.width+hf}px`,Sf=df?gf:`${vf}px`),{data:{x:bf,y:Sf}}}});function ql(vo){const[Ai,bo="center"]=vo.split("-");return[Ai,bo]}var Xl=Wl,Kl=zl,Zl=jl,Ql=Gl,Hb="Portal",io$1=y$2.forwardRef((vo,Ai)=>{var bo;const{container:Ra,...hc}=vo,[pc,mc]=y$2.useState(!1);Xt$1(()=>mc(!0),[]);const uf=Ra||pc&&((bo=globalThis==null?void 0:globalThis.document)==null?void 0:bo.body);return uf?Ql__default.createPortal(jsx(we$1.div,{...hc,ref:Ai}),uf):null});io$1.displayName=Hb;function Wb(vo,Ai){return y$2.useReducer((bo,Ra)=>Ai[bo][Ra]??bo,vo)}var it$1=vo=>{const{present:Ai,children:bo}=vo,Ra=Bb(Ai),hc=typeof bo=="function"?bo({present:Ra.isPresent}):y$2.Children.only(bo),pc=Fe$2(Ra.ref,zb(hc));return typeof bo=="function"||Ra.isPresent?y$2.cloneElement(hc,{ref:pc}):null};it$1.displayName="Presence";function Bb(vo){const[Ai,bo]=y$2.useState(),Ra=y$2.useRef({}),hc=y$2.useRef(vo),pc=y$2.useRef("none"),mc=vo?"mounted":"unmounted",[uf,df]=Wb(mc,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y$2.useEffect(()=>{const ff=ur$2(Ra.current);pc.current=uf==="mounted"?ff:"none"},[uf]),Xt$1(()=>{const ff=Ra.current,hf=hc.current;if(hf!==vo){const pf=pc.current,mf=ur$2(ff);vo?df("MOUNT"):mf==="none"||(ff==null?void 0:ff.display)==="none"?df("UNMOUNT"):df(hf&&pf!==mf?"ANIMATION_OUT":"UNMOUNT"),hc.current=vo}},[vo,df]),Xt$1(()=>{if(Ai){let ff;const hf=Ai.ownerDocument.defaultView??window,pf=gf=>{const yf=ur$2(Ra.current).includes(gf.animationName);if(gf.target===Ai&&yf&&(df("ANIMATION_END"),!hc.current)){const vf=Ai.style.animationFillMode;Ai.style.animationFillMode="forwards",ff=hf.setTimeout(()=>{Ai.style.animationFillMode==="forwards"&&(Ai.style.animationFillMode=vf)})}},mf=gf=>{gf.target===Ai&&(pc.current=ur$2(Ra.current))};return Ai.addEventListener("animationstart",mf),Ai.addEventListener("animationcancel",pf),Ai.addEventListener("animationend",pf),()=>{hf.clearTimeout(ff),Ai.removeEventListener("animationstart",mf),Ai.removeEventListener("animationcancel",pf),Ai.removeEventListener("animationend",pf)}}else df("ANIMATION_END")},[Ai,df]),{isPresent:["mounted","unmountSuspended"].includes(uf),ref:y$2.useCallback(ff=>{ff&&(Ra.current=getComputedStyle(ff)),bo(ff)},[])}}function ur$2(vo){return(vo==null?void 0:vo.animationName)||"none"}function zb(vo){var Ai,bo;let Ra=(Ai=Object.getOwnPropertyDescriptor(vo.props,"ref"))==null?void 0:Ai.get,hc=Ra&&"isReactWarning"in Ra&&Ra.isReactWarning;return hc?vo.ref:(Ra=(bo=Object.getOwnPropertyDescriptor(vo,"ref"))==null?void 0:bo.get,hc=Ra&&"isReactWarning"in Ra&&Ra.isReactWarning,hc?vo.props.ref:vo.props.ref||vo.ref)}var Yo$1="rovingFocusGroup.onEntryFocus",jb={bubbles:!1,cancelable:!0},so$1="RovingFocusGroup",[Ea,Jl,Yb]=Rl(so$1),[Gb,co$1]=Wt$2(so$1,[Yb]),[qb,Xb]=Gb(so$1),eu=y$2.forwardRef((vo,Ai)=>jsx(Ea.Provider,{scope:vo.__scopeRovingFocusGroup,children:jsx(Ea.Slot,{scope:vo.__scopeRovingFocusGroup,children:jsx(Kb,{...vo,ref:Ai})})}));eu.displayName=so$1;var Kb=y$2.forwardRef((vo,Ai)=>{const{__scopeRovingFocusGroup:bo,orientation:Ra,loop:hc=!1,dir:pc,currentTabStopId:mc,defaultCurrentTabStopId:uf,onCurrentTabStopIdChange:df,onEntryFocus:ff,preventScrollOnEntryFocus:hf=!1,...pf}=vo,mf=y$2.useRef(null),gf=Fe$2(Ai,mf),yf=ei(pc),[vf=null,bf]=Qn$2({prop:mc,defaultProp:uf,onChange:df}),[Sf,xf]=y$2.useState(!1),wf=at$2(ff),Hp=Jl(bo),If=y$2.useRef(!1),[Km,s1]=y$2.useState(0);return y$2.useEffect(()=>{const d1=mf.current;if(d1)return d1.addEventListener(Yo$1,wf),()=>d1.removeEventListener(Yo$1,wf)},[wf]),jsx(qb,{scope:bo,orientation:Ra,dir:yf,loop:hc,currentTabStopId:vf,onItemFocus:y$2.useCallback(d1=>bf(d1),[bf]),onItemShiftTab:y$2.useCallback(()=>xf(!0),[]),onFocusableItemAdd:y$2.useCallback(()=>s1(d1=>d1+1),[]),onFocusableItemRemove:y$2.useCallback(()=>s1(d1=>d1-1),[]),children:jsx(we$1.div,{tabIndex:Sf||Km===0?-1:0,"data-orientation":Ra,...pf,ref:gf,style:{outline:"none",...vo.style},onMouseDown:re$2(vo.onMouseDown,()=>{If.current=!0}),onFocus:re$2(vo.onFocus,d1=>{const O1=!If.current;if(d1.target===d1.currentTarget&&O1&&!Sf){const k1=new CustomEvent(Yo$1,jb);if(d1.currentTarget.dispatchEvent(k1),!k1.defaultPrevented){const _1=Hp().filter(f1=>f1.focusable),m1=_1.find(f1=>f1.active),R1=_1.find(f1=>f1.id===vf),c1=[m1,R1,..._1].filter(Boolean).map(f1=>f1.ref.current);ru(c1,hf)}}If.current=!1}),onBlur:re$2(vo.onBlur,()=>xf(!1))})})}),tu="RovingFocusGroupItem",nu=y$2.forwardRef((vo,Ai)=>{const{__scopeRovingFocusGroup:bo,focusable:Ra=!0,active:hc=!1,tabStopId:pc,...mc}=vo,uf=Ft$2(),df=pc||uf,ff=Xb(tu,bo),hf=ff.currentTabStopId===df,pf=Jl(bo),{onFocusableItemAdd:mf,onFocusableItemRemove:gf}=ff;return y$2.useEffect(()=>{if(Ra)return mf(),()=>gf()},[Ra,mf,gf]),jsx(Ea.ItemSlot,{scope:bo,id:df,focusable:Ra,active:hc,children:jsx(we$1.span,{tabIndex:hf?0:-1,"data-orientation":ff.orientation,...mc,ref:Ai,onMouseDown:re$2(vo.onMouseDown,yf=>{Ra?ff.onItemFocus(df):yf.preventDefault()}),onFocus:re$2(vo.onFocus,()=>ff.onItemFocus(df)),onKeyDown:re$2(vo.onKeyDown,yf=>{if(yf.key==="Tab"&&yf.shiftKey){ff.onItemShiftTab();return}if(yf.target!==yf.currentTarget)return;const vf=Jb(yf,ff.orientation,ff.dir);if(vf!==void 0){if(yf.metaKey||yf.ctrlKey||yf.altKey||yf.shiftKey)return;yf.preventDefault();let bf=pf().filter(Sf=>Sf.focusable).map(Sf=>Sf.ref.current);if(vf==="last")bf.reverse();else if(vf==="prev"||vf==="next"){vf==="prev"&&bf.reverse();const Sf=bf.indexOf(yf.currentTarget);bf=ff.loop?ey(bf,Sf+1):bf.slice(Sf+1)}setTimeout(()=>ru(bf))}})})})});nu.displayName=tu;var Zb={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Qb(vo,Ai){return Ai!=="rtl"?vo:vo==="ArrowLeft"?"ArrowRight":vo==="ArrowRight"?"ArrowLeft":vo}function Jb(vo,Ai,bo){const Ra=Qb(vo.key,bo);if(!(Ai==="vertical"&&["ArrowLeft","ArrowRight"].includes(Ra))&&!(Ai==="horizontal"&&["ArrowUp","ArrowDown"].includes(Ra)))return Zb[Ra]}function ru(vo,Ai=!1){const bo=document.activeElement;for(const Ra of vo)if(Ra===bo||(Ra.focus({preventScroll:Ai}),document.activeElement!==bo))return}function ey(vo,Ai){return vo.map((bo,Ra)=>vo[(Ai+Ra)%vo.length])}var ou=eu,au=nu,ty=function(vo){if(typeof document>"u")return null;var Ai=Array.isArray(vo)?vo[0]:vo;return Ai.ownerDocument.body},tn$1=new WeakMap,dr$1=new WeakMap,fr$2={},Go$1=0,iu=function(vo){return vo&&(vo.host||iu(vo.parentNode))},ny=function(vo,Ai){return Ai.map(function(bo){if(vo.contains(bo))return bo;var Ra=iu(bo);return Ra&&vo.contains(Ra)?Ra:(console.error("aria-hidden",bo,"in not contained inside",vo,". Doing nothing"),null)}).filter(function(bo){return!!bo})},ry=function(vo,Ai,bo,Ra){var hc=ny(Ai,Array.isArray(vo)?vo:[vo]);fr$2[bo]||(fr$2[bo]=new WeakMap);var pc=fr$2[bo],mc=[],uf=new Set,df=new Set(hc),ff=function(pf){!pf||uf.has(pf)||(uf.add(pf),ff(pf.parentNode))};hc.forEach(ff);var hf=function(pf){!pf||df.has(pf)||Array.prototype.forEach.call(pf.children,function(mf){if(uf.has(mf))hf(mf);else try{var gf=mf.getAttribute(Ra),yf=gf!==null&&gf!=="false",vf=(tn$1.get(mf)||0)+1,bf=(pc.get(mf)||0)+1;tn$1.set(mf,vf),pc.set(mf,bf),mc.push(mf),vf===1&&yf&&dr$1.set(mf,!0),bf===1&&mf.setAttribute(bo,"true"),yf||mf.setAttribute(Ra,"true")}catch(Sf){console.error("aria-hidden: cannot operate on ",mf,Sf)}})};return hf(Ai),uf.clear(),Go$1++,function(){mc.forEach(function(pf){var mf=tn$1.get(pf)-1,gf=pc.get(pf)-1;tn$1.set(pf,mf),pc.set(pf,gf),mf||(dr$1.has(pf)||pf.removeAttribute(Ra),dr$1.delete(pf)),gf||pf.removeAttribute(bo)}),Go$1--,Go$1||(tn$1=new WeakMap,tn$1=new WeakMap,dr$1=new WeakMap,fr$2={})}},su=function(vo,Ai,bo){bo===void 0&&(bo="data-aria-hidden");var Ra=Array.from(Array.isArray(vo)?vo:[vo]),hc=ty(vo);return hc?(Ra.push.apply(Ra,Array.from(hc.querySelectorAll("[aria-live]"))),ry(Ra,hc,bo,"aria-hidden")):function(){return null}},mt$2=function(){return mt$2=Object.assign||function(vo){for(var Ai,bo=1,Ra=arguments.length;bo<Ra;bo++){Ai=arguments[bo];for(var hc in Ai)Object.prototype.hasOwnProperty.call(Ai,hc)&&(vo[hc]=Ai[hc])}return vo},mt$2.apply(this,arguments)};function cu(vo,Ai){var bo={};for(var Ra in vo)Object.prototype.hasOwnProperty.call(vo,Ra)&&Ai.indexOf(Ra)<0&&(bo[Ra]=vo[Ra]);if(vo!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hc=0,Ra=Object.getOwnPropertySymbols(vo);hc<Ra.length;hc++)Ai.indexOf(Ra[hc])<0&&Object.prototype.propertyIsEnumerable.call(vo,Ra[hc])&&(bo[Ra[hc]]=vo[Ra[hc]]);return bo}function oy(vo,Ai,bo){for(var Ra=0,hc=Ai.length,pc;Ra<hc;Ra++)(pc||!(Ra in Ai))&&(pc||(pc=Array.prototype.slice.call(Ai,0,Ra)),pc[Ra]=Ai[Ra]);return vo.concat(pc||Array.prototype.slice.call(Ai))}var Cr$2="right-scroll-bar-position",Ir$2="width-before-scroll-bar",ay="with-scroll-bars-hidden",iy="--removed-body-scroll-bar-size";function qo$1(vo,Ai){return typeof vo=="function"?vo(Ai):vo&&(vo.current=Ai),vo}function sy(vo,Ai){var bo=useState(function(){return{value:vo,callback:Ai,facade:{get current(){return bo.value},set current(Ra){var hc=bo.value;hc!==Ra&&(bo.value=Ra,bo.callback(Ra,hc))}}}})[0];return bo.callback=Ai,bo.facade}var cy=typeof window<"u"?y$2.useLayoutEffect:y$2.useEffect,_s$1=new WeakMap;function ly(vo,Ai){var bo=sy(null,function(Ra){return vo.forEach(function(hc){return qo$1(hc,Ra)})});return cy(function(){var Ra=_s$1.get(bo);if(Ra){var hc=new Set(Ra),pc=new Set(vo),mc=bo.current;hc.forEach(function(uf){pc.has(uf)||qo$1(uf,null)}),pc.forEach(function(uf){hc.has(uf)||qo$1(uf,mc)})}_s$1.set(bo,vo)},[vo]),bo}function uy(vo){return vo}function dy(vo,Ai){Ai===void 0&&(Ai=uy);var bo=[],Ra=!1,hc={read:function(){if(Ra)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return bo.length?bo[bo.length-1]:vo},useMedium:function(pc){var mc=Ai(pc,Ra);return bo.push(mc),function(){bo=bo.filter(function(uf){return uf!==mc})}},assignSyncMedium:function(pc){for(Ra=!0;bo.length;){var mc=bo;bo=[],mc.forEach(pc)}bo={push:function(uf){return pc(uf)},filter:function(){return bo}}},assignMedium:function(pc){Ra=!0;var mc=[];if(bo.length){var uf=bo;bo=[],uf.forEach(pc),mc=bo}var df=function(){var hf=mc;mc=[],hf.forEach(pc)},ff=function(){return Promise.resolve().then(df)};ff(),bo={push:function(hf){mc.push(hf),ff()},filter:function(hf){return mc=mc.filter(hf),bo}}}};return hc}function fy(vo){vo===void 0&&(vo={});var Ai=dy(null);return Ai.options=mt$2({async:!0,ssr:!1},vo),Ai}var lu=function(vo){var Ai=vo.sideCar,bo=cu(vo,["sideCar"]);if(!Ai)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var Ra=Ai.read();if(!Ra)throw new Error("Sidecar medium not found");return y$2.createElement(Ra,mt$2({},bo))};lu.isSideCarExport=!0;function my(vo,Ai){return vo.useMedium(Ai),lu}var uu=fy(),Xo$1=function(){},lo$1=y$2.forwardRef(function(vo,Ai){var bo=y$2.useRef(null),Ra=y$2.useState({onScrollCapture:Xo$1,onWheelCapture:Xo$1,onTouchMoveCapture:Xo$1}),hc=Ra[0],pc=Ra[1],mc=vo.forwardProps,uf=vo.children,df=vo.className,ff=vo.removeScrollBar,hf=vo.enabled,pf=vo.shards,mf=vo.sideCar,gf=vo.noIsolation,yf=vo.inert,vf=vo.allowPinchZoom,bf=vo.as,Sf=bf===void 0?"div":bf,xf=vo.gapMode,wf=cu(vo,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),Hp=mf,If=ly([bo,Ai]),Km=mt$2(mt$2({},wf),hc);return y$2.createElement(y$2.Fragment,null,hf&&y$2.createElement(Hp,{sideCar:uu,removeScrollBar:ff,shards:pf,noIsolation:gf,inert:yf,setCallbacks:pc,allowPinchZoom:!!vf,lockRef:bo,gapMode:xf}),mc?y$2.cloneElement(y$2.Children.only(uf),mt$2(mt$2({},Km),{ref:If})):y$2.createElement(Sf,mt$2({},Km,{className:df,ref:If}),uf))});lo$1.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};lo$1.classNames={fullWidth:Ir$2,zeroRight:Cr$2};var py=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hy(){if(!document)return null;var vo=document.createElement("style");vo.type="text/css";var Ai=py();return Ai&&vo.setAttribute("nonce",Ai),vo}function gy(vo,Ai){vo.styleSheet?vo.styleSheet.cssText=Ai:vo.appendChild(document.createTextNode(Ai))}function vy(vo){var Ai=document.head||document.getElementsByTagName("head")[0];Ai.appendChild(vo)}var by=function(){var vo=0,Ai=null;return{add:function(bo){vo==0&&(Ai=hy())&&(gy(Ai,bo),vy(Ai)),vo++},remove:function(){vo--,!vo&&Ai&&(Ai.parentNode&&Ai.parentNode.removeChild(Ai),Ai=null)}}},yy=function(){var vo=by();return function(Ai,bo){y$2.useEffect(function(){return vo.add(Ai),function(){vo.remove()}},[Ai&&bo])}},du=function(){var vo=yy(),Ai=function(bo){var Ra=bo.styles,hc=bo.dynamic;return vo(Ra,hc),null};return Ai},wy={left:0,top:0,right:0,gap:0},Ko=function(vo){return parseInt(vo||"",10)||0},xy=function(vo){var Ai=window.getComputedStyle(document.body),bo=Ai[vo==="padding"?"paddingLeft":"marginLeft"],Ra=Ai[vo==="padding"?"paddingTop":"marginTop"],hc=Ai[vo==="padding"?"paddingRight":"marginRight"];return[Ko(bo),Ko(Ra),Ko(hc)]},Sy=function(vo){if(vo===void 0&&(vo="margin"),typeof window>"u")return wy;var Ai=xy(vo),bo=document.documentElement.clientWidth,Ra=window.innerWidth;return{left:Ai[0],top:Ai[1],right:Ai[2],gap:Math.max(0,Ra-bo+Ai[2]-Ai[0])}},Cy=du(),dn$1="data-scroll-locked",Iy=function(vo,Ai,bo,Ra){var hc=vo.left,pc=vo.top,mc=vo.right,uf=vo.gap;return bo===void 0&&(bo="margin"),`
|
|
14
|
+
`]))),Og=function(vo,Ai){var bo=vo.isFocused,Ra=vo.size,hc=vo.theme,pc=hc.colors,mc=hc.spacing.baseUnit;return te$2({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:Ra,lineHeight:1,marginRight:Ra,textAlign:"center",verticalAlign:"middle"},Ai?{}:{color:bo?pc.neutral60:pc.neutral20,padding:mc*2})},Fo$1=function(vo){var Ai=vo.delay,bo=vo.offset;return Q$1("span",{css:za({animation:"".concat(Tg," 1s ease-in-out ").concat(Ai,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:bo?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Mg=function(vo){var Ai=vo.innerProps,bo=vo.isRtl,Ra=vo.size,hc=Ra===void 0?4:Ra,pc=Et$2(vo,yg);return Q$1("div",Hr$3({},Ee$2(te$2(te$2({},pc),{},{innerProps:Ai,isRtl:bo,size:hc}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),Ai),Q$1(Fo$1,{delay:0,offset:bo}),Q$1(Fo$1,{delay:160,offset:!0}),Q$1(Fo$1,{delay:320,offset:!bo}))},Ng=function(vo,Ai){var bo=vo.isDisabled,Ra=vo.isFocused,hc=vo.theme,pc=hc.colors,mc=hc.borderRadius,uf=hc.spacing;return te$2({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:uf.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},Ai?{}:{backgroundColor:bo?pc.neutral5:pc.neutral0,borderColor:bo?pc.neutral10:Ra?pc.primary:pc.neutral20,borderRadius:mc,borderStyle:"solid",borderWidth:1,boxShadow:Ra?"0 0 0 1px ".concat(pc.primary):void 0,"&:hover":{borderColor:Ra?pc.primary:pc.neutral30}})},Ag=function(vo){var Ai=vo.children,bo=vo.isDisabled,Ra=vo.isFocused,hc=vo.innerRef,pc=vo.innerProps,mc=vo.menuIsOpen;return Q$1("div",Hr$3({ref:hc},Ee$2(vo,"control",{control:!0,"control--is-disabled":bo,"control--is-focused":Ra,"control--menu-is-open":mc}),pc,{"aria-disabled":bo||void 0}),Ai)},Dg=Ag,Rg=["data"],_g=function(vo,Ai){var bo=vo.theme.spacing;return Ai?{}:{paddingBottom:bo.baseUnit*2,paddingTop:bo.baseUnit*2}},kg=function(vo){var Ai=vo.children,bo=vo.cx,Ra=vo.getStyles,hc=vo.getClassNames,pc=vo.Heading,mc=vo.headingProps,uf=vo.innerProps,df=vo.label,ff=vo.theme,hf=vo.selectProps;return Q$1("div",Hr$3({},Ee$2(vo,"group",{group:!0}),uf),Q$1(pc,Hr$3({},mc,{selectProps:hf,theme:ff,getStyles:Ra,getClassNames:hc,cx:bo}),df),Q$1("div",null,Ai))},Fg=function(vo,Ai){var bo=vo.theme,Ra=bo.colors,hc=bo.spacing;return te$2({label:"group",cursor:"default",display:"block"},Ai?{}:{color:Ra.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:hc.baseUnit*3,paddingRight:hc.baseUnit*3,textTransform:"uppercase"})},Vg=function(vo){var Ai=ll(vo);Ai.data;var bo=Et$2(Ai,Rg);return Q$1("div",Hr$3({},Ee$2(vo,"groupHeading",{"group-heading":!0}),bo))},Lg=kg,$g=["innerRef","isDisabled","isHidden","inputClassName"],Ug=function(vo,Ai){var bo=vo.isDisabled,Ra=vo.value,hc=vo.theme,pc=hc.spacing,mc=hc.colors;return te$2(te$2({visibility:bo?"hidden":"visible",transform:Ra?"translateZ(0)":""},Hg),Ai?{}:{margin:pc.baseUnit/2,paddingBottom:pc.baseUnit/2,paddingTop:pc.baseUnit/2,color:mc.neutral80})},bl={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Hg={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":te$2({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},bl)},Wg=function(vo){return te$2({label:"input",color:"inherit",background:0,opacity:vo?0:1,width:"100%"},bl)},Bg=function(vo){var Ai=vo.cx,bo=vo.value,Ra=ll(vo),hc=Ra.innerRef,pc=Ra.isDisabled,mc=Ra.isHidden,uf=Ra.inputClassName,df=Et$2(Ra,$g);return Q$1("div",Hr$3({},Ee$2(vo,"input",{"input-container":!0}),{"data-value":bo||""}),Q$1("input",Hr$3({className:Ai({input:!0},uf),ref:hc,style:Wg(mc),disabled:pc},df)))},zg=Bg,jg=function(vo,Ai){var bo=vo.theme,Ra=bo.spacing,hc=bo.borderRadius,pc=bo.colors;return te$2({label:"multiValue",display:"flex",minWidth:0},Ai?{}:{backgroundColor:pc.neutral10,borderRadius:hc/2,margin:Ra.baseUnit/2})},Yg=function(vo,Ai){var bo=vo.theme,Ra=bo.borderRadius,hc=bo.colors,pc=vo.cropWithEllipsis;return te$2({overflow:"hidden",textOverflow:pc||pc===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},Ai?{}:{borderRadius:Ra/2,color:hc.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Gg=function(vo,Ai){var bo=vo.theme,Ra=bo.spacing,hc=bo.borderRadius,pc=bo.colors,mc=vo.isFocused;return te$2({alignItems:"center",display:"flex"},Ai?{}:{borderRadius:hc/2,backgroundColor:mc?pc.dangerLight:void 0,paddingLeft:Ra.baseUnit,paddingRight:Ra.baseUnit,":hover":{backgroundColor:pc.dangerLight,color:pc.danger}})},yl=function(vo){var Ai=vo.children,bo=vo.innerProps;return Q$1("div",bo,Ai)},qg=yl,Xg=yl;function Kg(vo){var Ai=vo.children,bo=vo.innerProps;return Q$1("div",Hr$3({role:"button"},bo),Ai||Q$1(Qa,{size:14}))}var Zg=function(vo){var Ai=vo.children,bo=vo.components,Ra=vo.data,hc=vo.innerProps,pc=vo.isDisabled,mc=vo.removeProps,uf=vo.selectProps,df=bo.Container,ff=bo.Label,hf=bo.Remove;return Q$1(df,{data:Ra,innerProps:te$2(te$2({},Ee$2(vo,"multiValue",{"multi-value":!0,"multi-value--is-disabled":pc})),hc),selectProps:uf},Q$1(ff,{data:Ra,innerProps:te$2({},Ee$2(vo,"multiValueLabel",{"multi-value__label":!0})),selectProps:uf},Ai),Q$1(hf,{data:Ra,innerProps:te$2(te$2({},Ee$2(vo,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(Ai||"option")},mc),selectProps:uf}))},Qg=Zg,Jg=function(vo,Ai){var bo=vo.isDisabled,Ra=vo.isFocused,hc=vo.isSelected,pc=vo.theme,mc=pc.spacing,uf=pc.colors;return te$2({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},Ai?{}:{backgroundColor:hc?uf.primary:Ra?uf.primary25:"transparent",color:bo?uf.neutral20:hc?uf.neutral0:"inherit",padding:"".concat(mc.baseUnit*2,"px ").concat(mc.baseUnit*3,"px"),":active":{backgroundColor:bo?void 0:hc?uf.primary:uf.primary50}})},ev=function(vo){var Ai=vo.children,bo=vo.isDisabled,Ra=vo.isFocused,hc=vo.isSelected,pc=vo.innerRef,mc=vo.innerProps;return Q$1("div",Hr$3({},Ee$2(vo,"option",{option:!0,"option--is-disabled":bo,"option--is-focused":Ra,"option--is-selected":hc}),{ref:pc,"aria-disabled":bo},mc),Ai)},tv=ev,nv=function(vo,Ai){var bo=vo.theme,Ra=bo.spacing,hc=bo.colors;return te$2({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},Ai?{}:{color:hc.neutral50,marginLeft:Ra.baseUnit/2,marginRight:Ra.baseUnit/2})},rv=function(vo){var Ai=vo.children,bo=vo.innerProps;return Q$1("div",Hr$3({},Ee$2(vo,"placeholder",{placeholder:!0}),bo),Ai)},ov=rv,av=function(vo,Ai){var bo=vo.isDisabled,Ra=vo.theme,hc=Ra.spacing,pc=Ra.colors;return te$2({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Ai?{}:{color:bo?pc.neutral40:pc.neutral80,marginLeft:hc.baseUnit/2,marginRight:hc.baseUnit/2})},iv=function(vo){var Ai=vo.children,bo=vo.isDisabled,Ra=vo.innerProps;return Q$1("div",Hr$3({},Ee$2(vo,"singleValue",{"single-value":!0,"single-value--is-disabled":bo}),Ra),Ai)},sv=iv,ro$1={ClearIndicator:Ig,Control:Dg,DropdownIndicator:Sg,DownChevron:gl,CrossIcon:Qa,Group:Lg,GroupHeading:Vg,IndicatorsContainer:vg,IndicatorSeparator:Pg,Input:zg,LoadingIndicator:Mg,Menu:rg,MenuList:ag,MenuPortal:dg,LoadingMessage:lg,NoOptionsMessage:cg,MultiValue:Qg,MultiValueContainer:qg,MultiValueLabel:Xg,MultiValueRemove:Kg,Option:tv,Placeholder:ov,SelectContainer:mg,SingleValue:sv,ValueContainer:hg},cv=function(vo){return te$2(te$2({},ro$1),vo.components)},ms=Number.isNaN||function(vo){return typeof vo=="number"&&vo!==vo};function lv(vo,Ai){return!!(vo===Ai||ms(vo)&&ms(Ai))}function uv(vo,Ai){if(vo.length!==Ai.length)return!1;for(var bo=0;bo<vo.length;bo++)if(!lv(vo[bo],Ai[bo]))return!1;return!0}function dv(vo,Ai){Ai===void 0&&(Ai=uv);var bo=null;function Ra(){for(var hc=[],pc=0;pc<arguments.length;pc++)hc[pc]=arguments[pc];if(bo&&bo.lastThis===this&&Ai(hc,bo.lastArgs))return bo.lastResult;var mc=vo.apply(this,hc);return bo={lastResult:mc,lastArgs:hc,lastThis:this},mc}return Ra.clear=function(){bo=null},Ra}var fv={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},mv=function(vo){return Q$1("span",Hr$3({css:fv},vo))},ps=mv,pv={guidance:function(vo){var Ai=vo.isSearchable,bo=vo.isMulti,Ra=vo.tabSelectsValue,hc=vo.context,pc=vo.isInitialFocus;switch(hc){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(Ra?", press Tab to select the option and exit the menu":"",".");case"input":return pc?"".concat(vo["aria-label"]||"Select"," is focused ").concat(Ai?",type to refine list":"",", press Down to open the menu, ").concat(bo?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(vo){var Ai=vo.action,bo=vo.label,Ra=bo===void 0?"":bo,hc=vo.labels,pc=vo.isDisabled;switch(Ai){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(Ra,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(hc.length>1?"s":""," ").concat(hc.join(","),", selected.");case"select-option":return pc?"option ".concat(Ra," is disabled. Select another option."):"option ".concat(Ra,", selected.");default:return""}},onFocus:function(vo){var Ai=vo.context,bo=vo.focused,Ra=vo.options,hc=vo.label,pc=hc===void 0?"":hc,mc=vo.selectValue,uf=vo.isDisabled,df=vo.isSelected,ff=vo.isAppleDevice,hf=function(gf,yf){return gf&&gf.length?"".concat(gf.indexOf(yf)+1," of ").concat(gf.length):""};if(Ai==="value"&&mc)return"value ".concat(pc," focused, ").concat(hf(mc,bo),".");if(Ai==="menu"&&ff){var pf=uf?" disabled":"",mf="".concat(df?" selected":"").concat(pf);return"".concat(pc).concat(mf,", ").concat(hf(Ra,bo),".")}return""},onFilter:function(vo){var Ai=vo.inputValue,bo=vo.resultsMessage;return"".concat(bo).concat(Ai?" for search term "+Ai:"",".")}},hv=function(vo){var Ai=vo.ariaSelection,bo=vo.focusedOption,Ra=vo.focusedValue,hc=vo.focusableOptions,pc=vo.isFocused,mc=vo.selectValue,uf=vo.selectProps,df=vo.id,ff=vo.isAppleDevice,hf=uf.ariaLiveMessages,pf=uf.getOptionLabel,mf=uf.inputValue,gf=uf.isMulti,yf=uf.isOptionDisabled,vf=uf.isSearchable,bf=uf.menuIsOpen,Sf=uf.options,xf=uf.screenReaderStatus,wf=uf.tabSelectsValue,Hp=uf.isLoading,If=uf["aria-label"],Km=uf["aria-live"],s1=useMemo(function(){return te$2(te$2({},pv),hf||{})},[hf]),d1=useMemo(function(){var c1="";if(Ai&&s1.onChange){var f1=Ai.option,E1=Ai.options,D1=Ai.removedValue,j1=Ai.removedValues,F1=Ai.value,G1=function(Z1){return Array.isArray(Z1)?null:Z1},q1=D1||f1||G1(F1),T1=q1?pf(q1):"",M1=E1||j1||void 0,P1=M1?M1.map(pf):[],U1=te$2({isDisabled:q1&&yf(q1,mc),label:T1,labels:P1},Ai);c1=s1.onChange(U1)}return c1},[Ai,s1,yf,mc,pf]),O1=useMemo(function(){var c1="",f1=bo||Ra,E1=!!(bo&&mc&&mc.includes(bo));if(f1&&s1.onFocus){var D1={focused:f1,label:pf(f1),isDisabled:yf(f1,mc),isSelected:E1,options:hc,context:f1===bo?"menu":"value",selectValue:mc,isAppleDevice:ff};c1=s1.onFocus(D1)}return c1},[bo,Ra,pf,yf,s1,hc,mc,ff]),k1=useMemo(function(){var c1="";if(bf&&Sf.length&&!Hp&&s1.onFilter){var f1=xf({count:hc.length});c1=s1.onFilter({inputValue:mf,resultsMessage:f1})}return c1},[hc,mf,bf,s1,Sf,xf,Hp]),_1=(Ai==null?void 0:Ai.action)==="initial-input-focus",m1=useMemo(function(){var c1="";if(s1.guidance){var f1=Ra?"value":bf?"menu":"input";c1=s1.guidance({"aria-label":If,context:f1,isDisabled:bo&&yf(bo,mc),isMulti:gf,isSearchable:vf,tabSelectsValue:wf,isInitialFocus:_1})}return c1},[If,bo,Ra,gf,yf,vf,bf,s1,mc,wf,_1]),R1=Q$1(Fragment$1,null,Q$1("span",{id:"aria-selection"},d1),Q$1("span",{id:"aria-focused"},O1),Q$1("span",{id:"aria-results"},k1),Q$1("span",{id:"aria-guidance"},m1));return Q$1(Fragment$1,null,Q$1(ps,{id:df},_1&&R1),Q$1(ps,{"aria-live":Km,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},pc&&!_1&&R1))},gv=hv,Sa=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],vv=new RegExp("["+Sa.map(function(vo){return vo.letters}).join("")+"]","g"),wl={};for(var Vo$1=0;Vo$1<Sa.length;Vo$1++)for(var Lo=Sa[Vo$1],$o$2=0;$o$2<Lo.letters.length;$o$2++)wl[Lo.letters[$o$2]]=Lo.base;var xl=function(vo){return vo.replace(vv,function(Ai){return wl[Ai]})},bv=dv(xl),hs$1=function(vo){return vo.replace(/^\s+|\s+$/g,"")},yv=function(vo){return"".concat(vo.label," ").concat(vo.value)},wv=function(vo){return function(Ai,bo){if(Ai.data.__isNew__)return!0;var Ra=te$2({ignoreCase:!0,ignoreAccents:!0,stringify:yv,trim:!0,matchFrom:"any"},vo),hc=Ra.ignoreCase,pc=Ra.ignoreAccents,mc=Ra.stringify,uf=Ra.trim,df=Ra.matchFrom,ff=uf?hs$1(bo):bo,hf=uf?hs$1(mc(Ai)):mc(Ai);return hc&&(ff=ff.toLowerCase(),hf=hf.toLowerCase()),pc&&(ff=bv(ff),hf=xl(hf)),df==="start"?hf.substr(0,ff.length)===ff:hf.indexOf(ff)>-1}},xv=["innerRef"];function Sv(vo){var Ai=vo.innerRef,bo=Et$2(vo,xv),Ra=Xh(bo,"onExited","in","enter","exit","appear");return Q$1("input",Hr$3({ref:Ai},Ra,{css:za({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Cv=function(vo){vo.cancelable&&vo.preventDefault(),vo.stopPropagation()};function Iv(vo){var Ai=vo.isEnabled,bo=vo.onBottomArrive,Ra=vo.onBottomLeave,hc=vo.onTopArrive,pc=vo.onTopLeave,mc=useRef(!1),uf=useRef(!1),df=useRef(0),ff=useRef(null),hf=useCallback(function(bf,Sf){if(ff.current!==null){var xf=ff.current,wf=xf.scrollTop,Hp=xf.scrollHeight,If=xf.clientHeight,Km=ff.current,s1=Sf>0,d1=Hp-If-wf,O1=!1;d1>Sf&&mc.current&&(Ra&&Ra(bf),mc.current=!1),s1&&uf.current&&(pc&&pc(bf),uf.current=!1),s1&&Sf>d1?(bo&&!mc.current&&bo(bf),Km.scrollTop=Hp,O1=!0,mc.current=!0):!s1&&-Sf>wf&&(hc&&!uf.current&&hc(bf),Km.scrollTop=0,O1=!0,uf.current=!0),O1&&Cv(bf)}},[bo,Ra,hc,pc]),pf=useCallback(function(bf){hf(bf,bf.deltaY)},[hf]),mf=useCallback(function(bf){df.current=bf.changedTouches[0].clientY},[]),gf=useCallback(function(bf){var Sf=df.current-bf.changedTouches[0].clientY;hf(bf,Sf)},[hf]),yf=useCallback(function(bf){if(bf){var Sf=Yh?{passive:!1}:!1;bf.addEventListener("wheel",pf,Sf),bf.addEventListener("touchstart",mf,Sf),bf.addEventListener("touchmove",gf,Sf)}},[gf,mf,pf]),vf=useCallback(function(bf){bf&&(bf.removeEventListener("wheel",pf,!1),bf.removeEventListener("touchstart",mf,!1),bf.removeEventListener("touchmove",gf,!1))},[gf,mf,pf]);return useEffect(function(){if(Ai){var bf=ff.current;return yf(bf),function(){vf(bf)}}},[Ai,yf,vf]),function(bf){ff.current=bf}}var gs$1=["boxSizing","height","overflow","paddingRight","position"],vs={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function bs$1(vo){vo.cancelable&&vo.preventDefault()}function ys(vo){vo.stopPropagation()}function ws(){var vo=this.scrollTop,Ai=this.scrollHeight,bo=vo+this.offsetHeight;vo===0?this.scrollTop=1:bo===Ai&&(this.scrollTop=vo-1)}function xs(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ss=!!(typeof window<"u"&&window.document&&window.document.createElement),On$2=0,en$1={capture:!1,passive:!1};function Ev(vo){var Ai=vo.isEnabled,bo=vo.accountForScrollbars,Ra=bo===void 0?!0:bo,hc=useRef({}),pc=useRef(null),mc=useCallback(function(df){if(Ss){var ff=document.body,hf=ff&&ff.style;if(Ra&&gs$1.forEach(function(yf){var vf=hf&&hf[yf];hc.current[yf]=vf}),Ra&&On$2<1){var pf=parseInt(hc.current.paddingRight,10)||0,mf=document.body?document.body.clientWidth:0,gf=window.innerWidth-mf+pf||0;Object.keys(vs).forEach(function(yf){var vf=vs[yf];hf&&(hf[yf]=vf)}),hf&&(hf.paddingRight="".concat(gf,"px"))}ff&&xs()&&(ff.addEventListener("touchmove",bs$1,en$1),df&&(df.addEventListener("touchstart",ws,en$1),df.addEventListener("touchmove",ys,en$1))),On$2+=1}},[Ra]),uf=useCallback(function(df){if(Ss){var ff=document.body,hf=ff&&ff.style;On$2=Math.max(On$2-1,0),Ra&&On$2<1&&gs$1.forEach(function(pf){var mf=hc.current[pf];hf&&(hf[pf]=mf)}),ff&&xs()&&(ff.removeEventListener("touchmove",bs$1,en$1),df&&(df.removeEventListener("touchstart",ws,en$1),df.removeEventListener("touchmove",ys,en$1)))}},[Ra]);return useEffect(function(){if(Ai){var df=pc.current;return mc(df),function(){uf(df)}}},[Ai,mc,uf]),function(df){pc.current=df}}var Pv=function(vo){var Ai=vo.target;return Ai.ownerDocument.activeElement&&Ai.ownerDocument.activeElement.blur()},Tv={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Ov(vo){var Ai=vo.children,bo=vo.lockEnabled,Ra=vo.captureEnabled,hc=Ra===void 0?!0:Ra,pc=vo.onBottomArrive,mc=vo.onBottomLeave,uf=vo.onTopArrive,df=vo.onTopLeave,ff=Iv({isEnabled:hc,onBottomArrive:pc,onBottomLeave:mc,onTopArrive:uf,onTopLeave:df}),hf=Ev({isEnabled:bo}),pf=function(mf){ff(mf),hf(mf)};return Q$1(Fragment$1,null,bo&&Q$1("div",{onClick:Pv,css:Tv}),Ai(pf))}var Mv={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Nv=function(vo){var Ai=vo.name,bo=vo.onFocus;return Q$1("input",{required:!0,name:Ai,tabIndex:-1,"aria-hidden":"true",onFocus:bo,css:Mv,value:"",onChange:function(){}})},Av=Nv;function Ja(vo){var Ai;return typeof window<"u"&&window.navigator!=null?vo.test(((Ai=window.navigator.userAgentData)===null||Ai===void 0?void 0:Ai.platform)||window.navigator.platform):!1}function Dv(){return Ja(/^iPhone/i)}function Sl(){return Ja(/^Mac/i)}function Rv(){return Ja(/^iPad/i)||Sl()&&navigator.maxTouchPoints>1}function _v(){return Dv()||Rv()}function kv(){return Sl()||_v()}var Fv=function(vo){return vo.label},Vv=function(vo){return vo.label},Lv=function(vo){return vo.value},$v=function(vo){return!!vo.isDisabled},Uv={clearIndicator:Cg,container:fg,control:Ng,dropdownIndicator:xg,group:_g,groupHeading:Fg,indicatorsContainer:gg,indicatorSeparator:Eg,input:Ug,loadingIndicator:Og,loadingMessage:sg,menu:eg,menuList:og,menuPortal:ug,multiValue:jg,multiValueLabel:Yg,multiValueRemove:Gg,noOptionsMessage:ig,option:Jg,placeholder:nv,singleValue:av,valueContainer:pg},Hv={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Wv=4,Cl=4,Bv=38,zv=Cl*2,jv={baseUnit:Cl,controlHeight:Bv,menuGutter:zv},Uo$1={borderRadius:Wv,colors:Hv,spacing:jv},Yv={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ds(),captureMenuScroll:!ds(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:wv(),formatGroupLabel:Fv,getOptionLabel:Vv,getOptionValue:Lv,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:$v,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!zh(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(vo){var Ai=vo.count;return"".concat(Ai," result").concat(Ai!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Cs(vo,Ai,bo,Ra){var hc=Pl(vo,Ai,bo),pc=Tl(vo,Ai,bo),mc=El(vo,Ai),uf=Fr$1(vo,Ai);return{type:"option",data:Ai,isDisabled:hc,isSelected:pc,label:mc,value:uf,index:Ra}}function xr$2(vo,Ai){return vo.options.map(function(bo,Ra){if("options"in bo){var hc=bo.options.map(function(mc,uf){return Cs(vo,mc,Ai,uf)}).filter(function(mc){return Es$1(vo,mc)});return hc.length>0?{type:"group",data:bo,options:hc,index:Ra}:void 0}var pc=Cs(vo,bo,Ai,Ra);return Es$1(vo,pc)?pc:void 0}).filter(Gh)}function Il(vo){return vo.reduce(function(Ai,bo){return bo.type==="group"?Ai.push.apply(Ai,$a(bo.options.map(function(Ra){return Ra.data}))):Ai.push(bo.data),Ai},[])}function Is$2(vo,Ai){return vo.reduce(function(bo,Ra){return Ra.type==="group"?bo.push.apply(bo,$a(Ra.options.map(function(hc){return{data:hc.data,id:"".concat(Ai,"-").concat(Ra.index,"-").concat(hc.index)}}))):bo.push({data:Ra.data,id:"".concat(Ai,"-").concat(Ra.index)}),bo},[])}function Gv(vo,Ai){return Il(xr$2(vo,Ai))}function Es$1(vo,Ai){var bo=vo.inputValue,Ra=bo===void 0?"":bo,hc=Ai.data,pc=Ai.isSelected,mc=Ai.label,uf=Ai.value;return(!Ml(vo)||!pc)&&Ol(vo,{label:mc,value:uf,data:hc},Ra)}function qv(vo,Ai){var bo=vo.focusedValue,Ra=vo.selectValue,hc=Ra.indexOf(bo);if(hc>-1){var pc=Ai.indexOf(bo);if(pc>-1)return bo;if(hc<Ai.length)return Ai[hc]}return null}function Xv(vo,Ai){var bo=vo.focusedOption;return bo&&Ai.indexOf(bo)>-1?bo:Ai[0]}var Ho$1=function(vo,Ai){var bo,Ra=(bo=vo.find(function(hc){return hc.data===Ai}))===null||bo===void 0?void 0:bo.id;return Ra||null},El=function(vo,Ai){return vo.getOptionLabel(Ai)},Fr$1=function(vo,Ai){return vo.getOptionValue(Ai)};function Pl(vo,Ai,bo){return typeof vo.isOptionDisabled=="function"?vo.isOptionDisabled(Ai,bo):!1}function Tl(vo,Ai,bo){if(bo.indexOf(Ai)>-1)return!0;if(typeof vo.isOptionSelected=="function")return vo.isOptionSelected(Ai,bo);var Ra=Fr$1(vo,Ai);return bo.some(function(hc){return Fr$1(vo,hc)===Ra})}function Ol(vo,Ai,bo){return vo.filterOption?vo.filterOption(Ai,bo):!0}var Ml=function(vo){var Ai=vo.hideSelectedOptions,bo=vo.isMulti;return Ai===void 0?bo:Ai},Kv=1,Nl=function(vo){Bm(bo,vo);var Ai=Ym(bo);function bo(Ra){var hc;if(Hm(this,bo),hc=Ai.call(this,Ra),hc.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},hc.blockOptionHover=!1,hc.isComposing=!1,hc.commonProps=void 0,hc.initialTouchX=0,hc.initialTouchY=0,hc.openAfterFocus=!1,hc.scrollToFocusedOptionOnUpdate=!1,hc.userIsDragging=void 0,hc.isAppleDevice=kv(),hc.controlRef=null,hc.getControlRef=function(df){hc.controlRef=df},hc.focusedOptionRef=null,hc.getFocusedOptionRef=function(df){hc.focusedOptionRef=df},hc.menuListRef=null,hc.getMenuListRef=function(df){hc.menuListRef=df},hc.inputRef=null,hc.getInputRef=function(df){hc.inputRef=df},hc.focus=hc.focusInput,hc.blur=hc.blurInput,hc.onChange=function(df,ff){var hf=hc.props,pf=hf.onChange,mf=hf.name;ff.name=mf,hc.ariaOnChange(df,ff),pf(df,ff)},hc.setValue=function(df,ff,hf){var pf=hc.props,mf=pf.closeMenuOnSelect,gf=pf.isMulti,yf=pf.inputValue;hc.onInputChange("",{action:"set-value",prevInputValue:yf}),mf&&(hc.setState({inputIsHiddenAfterUpdate:!gf}),hc.onMenuClose()),hc.setState({clearFocusValueOnUpdate:!0}),hc.onChange(df,{action:ff,option:hf})},hc.selectOption=function(df){var ff=hc.props,hf=ff.blurInputOnSelect,pf=ff.isMulti,mf=ff.name,gf=hc.state.selectValue,yf=pf&&hc.isOptionSelected(df,gf),vf=hc.isOptionDisabled(df,gf);if(yf){var bf=hc.getOptionValue(df);hc.setValue(gf.filter(function(Sf){return hc.getOptionValue(Sf)!==bf}),"deselect-option",df)}else if(!vf)pf?hc.setValue([].concat($a(gf),[df]),"select-option",df):hc.setValue(df,"select-option");else{hc.ariaOnChange(df,{action:"select-option",option:df,name:mf});return}hf&&hc.blurInput()},hc.removeValue=function(df){var ff=hc.props.isMulti,hf=hc.state.selectValue,pf=hc.getOptionValue(df),mf=hf.filter(function(yf){return hc.getOptionValue(yf)!==pf}),gf=lr$1(ff,mf,mf[0]||null);hc.onChange(gf,{action:"remove-value",removedValue:df}),hc.focusInput()},hc.clearValue=function(){var df=hc.state.selectValue;hc.onChange(lr$1(hc.props.isMulti,[],null),{action:"clear",removedValues:df})},hc.popValue=function(){var df=hc.props.isMulti,ff=hc.state.selectValue,hf=ff[ff.length-1],pf=ff.slice(0,ff.length-1),mf=lr$1(df,pf,pf[0]||null);hf&&hc.onChange(mf,{action:"pop-value",removedValue:hf})},hc.getFocusedOptionId=function(df){return Ho$1(hc.state.focusableOptionsWithIds,df)},hc.getFocusableOptionsWithIds=function(){return Is$2(xr$2(hc.props,hc.state.selectValue),hc.getElementId("option"))},hc.getValue=function(){return hc.state.selectValue},hc.cx=function(){for(var df=arguments.length,ff=new Array(df),hf=0;hf<df;hf++)ff[hf]=arguments[hf];return $h.apply(void 0,[hc.props.classNamePrefix].concat(ff))},hc.getOptionLabel=function(df){return El(hc.props,df)},hc.getOptionValue=function(df){return Fr$1(hc.props,df)},hc.getStyles=function(df,ff){var hf=hc.props.unstyled,pf=Uv[df](ff,hf);pf.boxSizing="border-box";var mf=hc.props.styles[df];return mf?mf(pf,ff):pf},hc.getClassNames=function(df,ff){var hf,pf;return(hf=(pf=hc.props.classNames)[df])===null||hf===void 0?void 0:hf.call(pf,ff)},hc.getElementId=function(df){return"".concat(hc.state.instancePrefix,"-").concat(df)},hc.getComponents=function(){return cv(hc.props)},hc.buildCategorizedOptions=function(){return xr$2(hc.props,hc.state.selectValue)},hc.getCategorizedOptions=function(){return hc.props.menuIsOpen?hc.buildCategorizedOptions():[]},hc.buildFocusableOptions=function(){return Il(hc.buildCategorizedOptions())},hc.getFocusableOptions=function(){return hc.props.menuIsOpen?hc.buildFocusableOptions():[]},hc.ariaOnChange=function(df,ff){hc.setState({ariaSelection:te$2({value:df},ff)})},hc.onMenuMouseDown=function(df){df.button===0&&(df.stopPropagation(),df.preventDefault(),hc.focusInput())},hc.onMenuMouseMove=function(df){hc.blockOptionHover=!1},hc.onControlMouseDown=function(df){if(!df.defaultPrevented){var ff=hc.props.openMenuOnClick;hc.state.isFocused?hc.props.menuIsOpen?df.target.tagName!=="INPUT"&&df.target.tagName!=="TEXTAREA"&&hc.onMenuClose():ff&&hc.openMenu("first"):(ff&&(hc.openAfterFocus=!0),hc.focusInput()),df.target.tagName!=="INPUT"&&df.target.tagName!=="TEXTAREA"&&df.preventDefault()}},hc.onDropdownIndicatorMouseDown=function(df){if(!(df&&df.type==="mousedown"&&df.button!==0)&&!hc.props.isDisabled){var ff=hc.props,hf=ff.isMulti,pf=ff.menuIsOpen;hc.focusInput(),pf?(hc.setState({inputIsHiddenAfterUpdate:!hf}),hc.onMenuClose()):hc.openMenu("first"),df.preventDefault()}},hc.onClearIndicatorMouseDown=function(df){df&&df.type==="mousedown"&&df.button!==0||(hc.clearValue(),df.preventDefault(),hc.openAfterFocus=!1,df.type==="touchend"?hc.focusInput():setTimeout(function(){return hc.focusInput()}))},hc.onScroll=function(df){typeof hc.props.closeMenuOnScroll=="boolean"?df.target instanceof HTMLElement&&no$1(df.target)&&hc.props.onMenuClose():typeof hc.props.closeMenuOnScroll=="function"&&hc.props.closeMenuOnScroll(df)&&hc.props.onMenuClose()},hc.onCompositionStart=function(){hc.isComposing=!0},hc.onCompositionEnd=function(){hc.isComposing=!1},hc.onTouchStart=function(df){var ff=df.touches,hf=ff&&ff.item(0);hf&&(hc.initialTouchX=hf.clientX,hc.initialTouchY=hf.clientY,hc.userIsDragging=!1)},hc.onTouchMove=function(df){var ff=df.touches,hf=ff&&ff.item(0);if(hf){var pf=Math.abs(hf.clientX-hc.initialTouchX),mf=Math.abs(hf.clientY-hc.initialTouchY),gf=5;hc.userIsDragging=pf>gf||mf>gf}},hc.onTouchEnd=function(df){hc.userIsDragging||(hc.controlRef&&!hc.controlRef.contains(df.target)&&hc.menuListRef&&!hc.menuListRef.contains(df.target)&&hc.blurInput(),hc.initialTouchX=0,hc.initialTouchY=0)},hc.onControlTouchEnd=function(df){hc.userIsDragging||hc.onControlMouseDown(df)},hc.onClearIndicatorTouchEnd=function(df){hc.userIsDragging||hc.onClearIndicatorMouseDown(df)},hc.onDropdownIndicatorTouchEnd=function(df){hc.userIsDragging||hc.onDropdownIndicatorMouseDown(df)},hc.handleInputChange=function(df){var ff=hc.props.inputValue,hf=df.currentTarget.value;hc.setState({inputIsHiddenAfterUpdate:!1}),hc.onInputChange(hf,{action:"input-change",prevInputValue:ff}),hc.props.menuIsOpen||hc.onMenuOpen()},hc.onInputFocus=function(df){hc.props.onFocus&&hc.props.onFocus(df),hc.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(hc.openAfterFocus||hc.props.openMenuOnFocus)&&hc.openMenu("first"),hc.openAfterFocus=!1},hc.onInputBlur=function(df){var ff=hc.props.inputValue;if(hc.menuListRef&&hc.menuListRef.contains(document.activeElement)){hc.inputRef.focus();return}hc.props.onBlur&&hc.props.onBlur(df),hc.onInputChange("",{action:"input-blur",prevInputValue:ff}),hc.onMenuClose(),hc.setState({focusedValue:null,isFocused:!1})},hc.onOptionHover=function(df){if(!(hc.blockOptionHover||hc.state.focusedOption===df)){var ff=hc.getFocusableOptions(),hf=ff.indexOf(df);hc.setState({focusedOption:df,focusedOptionId:hf>-1?hc.getFocusedOptionId(df):null})}},hc.shouldHideSelectedOptions=function(){return Ml(hc.props)},hc.onValueInputFocus=function(df){df.preventDefault(),df.stopPropagation(),hc.focus()},hc.onKeyDown=function(df){var ff=hc.props,hf=ff.isMulti,pf=ff.backspaceRemovesValue,mf=ff.escapeClearsValue,gf=ff.inputValue,yf=ff.isClearable,vf=ff.isDisabled,bf=ff.menuIsOpen,Sf=ff.onKeyDown,xf=ff.tabSelectsValue,wf=ff.openMenuOnFocus,Hp=hc.state,If=Hp.focusedOption,Km=Hp.focusedValue,s1=Hp.selectValue;if(!vf&&!(typeof Sf=="function"&&(Sf(df),df.defaultPrevented))){switch(hc.blockOptionHover=!0,df.key){case"ArrowLeft":if(!hf||gf)return;hc.focusValue("previous");break;case"ArrowRight":if(!hf||gf)return;hc.focusValue("next");break;case"Delete":case"Backspace":if(gf)return;if(Km)hc.removeValue(Km);else{if(!pf)return;hf?hc.popValue():yf&&hc.clearValue()}break;case"Tab":if(hc.isComposing||df.shiftKey||!bf||!xf||!If||wf&&hc.isOptionSelected(If,s1))return;hc.selectOption(If);break;case"Enter":if(df.keyCode===229)break;if(bf){if(!If||hc.isComposing)return;hc.selectOption(If);break}return;case"Escape":bf?(hc.setState({inputIsHiddenAfterUpdate:!1}),hc.onInputChange("",{action:"menu-close",prevInputValue:gf}),hc.onMenuClose()):yf&&mf&&hc.clearValue();break;case" ":if(gf)return;if(!bf){hc.openMenu("first");break}if(!If)return;hc.selectOption(If);break;case"ArrowUp":bf?hc.focusOption("up"):hc.openMenu("last");break;case"ArrowDown":bf?hc.focusOption("down"):hc.openMenu("first");break;case"PageUp":if(!bf)return;hc.focusOption("pageup");break;case"PageDown":if(!bf)return;hc.focusOption("pagedown");break;case"Home":if(!bf)return;hc.focusOption("first");break;case"End":if(!bf)return;hc.focusOption("last");break;default:return}df.preventDefault()}},hc.state.instancePrefix="react-select-"+(hc.props.instanceId||++Kv),hc.state.selectValue=ls$1(Ra.value),Ra.menuIsOpen&&hc.state.selectValue.length){var pc=hc.getFocusableOptionsWithIds(),mc=hc.buildFocusableOptions(),uf=mc.indexOf(hc.state.selectValue[0]);hc.state.focusableOptionsWithIds=pc,hc.state.focusedOption=mc[uf],hc.state.focusedOptionId=Ho$1(pc,mc[uf])}return hc}return Wm(bo,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&us(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(Ra){var hc=this.props,pc=hc.isDisabled,mc=hc.menuIsOpen,uf=this.state.isFocused;(uf&&!pc&&Ra.isDisabled||uf&&mc&&!Ra.menuIsOpen)&&this.focusInput(),uf&&pc&&!Ra.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!uf&&!pc&&Ra.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(us(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(Ra,hc){this.props.onInputChange(Ra,hc)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(Ra){var hc=this,pc=this.state,mc=pc.selectValue,uf=pc.isFocused,df=this.buildFocusableOptions(),ff=Ra==="first"?0:df.length-1;if(!this.props.isMulti){var hf=df.indexOf(mc[0]);hf>-1&&(ff=hf)}this.scrollToFocusedOptionOnUpdate=!(uf&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:df[ff],focusedOptionId:this.getFocusedOptionId(df[ff])},function(){return hc.onMenuOpen()})}},{key:"focusValue",value:function(Ra){var hc=this.state,pc=hc.selectValue,mc=hc.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var uf=pc.indexOf(mc);mc||(uf=-1);var df=pc.length-1,ff=-1;if(pc.length){switch(Ra){case"previous":uf===0?ff=0:uf===-1?ff=df:ff=uf-1;break;case"next":uf>-1&&uf<df&&(ff=uf+1);break}this.setState({inputIsHidden:ff!==-1,focusedValue:pc[ff]})}}}},{key:"focusOption",value:function(){var Ra=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",hc=this.props.pageSize,pc=this.state.focusedOption,mc=this.getFocusableOptions();if(mc.length){var uf=0,df=mc.indexOf(pc);pc||(df=-1),Ra==="up"?uf=df>0?df-1:mc.length-1:Ra==="down"?uf=(df+1)%mc.length:Ra==="pageup"?(uf=df-hc,uf<0&&(uf=0)):Ra==="pagedown"?(uf=df+hc,uf>mc.length-1&&(uf=mc.length-1)):Ra==="last"&&(uf=mc.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:mc[uf],focusedValue:null,focusedOptionId:this.getFocusedOptionId(mc[uf])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Uo$1):te$2(te$2({},Uo$1),this.props.theme):Uo$1}},{key:"getCommonProps",value:function(){var Ra=this.clearValue,hc=this.cx,pc=this.getStyles,mc=this.getClassNames,uf=this.getValue,df=this.selectOption,ff=this.setValue,hf=this.props,pf=hf.isMulti,mf=hf.isRtl,gf=hf.options,yf=this.hasValue();return{clearValue:Ra,cx:hc,getStyles:pc,getClassNames:mc,getValue:uf,hasValue:yf,isMulti:pf,isRtl:mf,options:gf,selectOption:df,selectProps:hf,setValue:ff,theme:this.getTheme()}}},{key:"hasValue",value:function(){var Ra=this.state.selectValue;return Ra.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var Ra=this.props,hc=Ra.isClearable,pc=Ra.isMulti;return hc===void 0?pc:hc}},{key:"isOptionDisabled",value:function(Ra,hc){return Pl(this.props,Ra,hc)}},{key:"isOptionSelected",value:function(Ra,hc){return Tl(this.props,Ra,hc)}},{key:"filterOption",value:function(Ra,hc){return Ol(this.props,Ra,hc)}},{key:"formatOptionLabel",value:function(Ra,hc){if(typeof this.props.formatOptionLabel=="function"){var pc=this.props.inputValue,mc=this.state.selectValue;return this.props.formatOptionLabel(Ra,{context:hc,inputValue:pc,selectValue:mc})}else return this.getOptionLabel(Ra)}},{key:"formatGroupLabel",value:function(Ra){return this.props.formatGroupLabel(Ra)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var Ra=this.props,hc=Ra.isDisabled,pc=Ra.isSearchable,mc=Ra.inputId,uf=Ra.inputValue,df=Ra.tabIndex,ff=Ra.form,hf=Ra.menuIsOpen,pf=Ra.required,mf=this.getComponents(),gf=mf.Input,yf=this.state,vf=yf.inputIsHidden,bf=yf.ariaSelection,Sf=this.commonProps,xf=mc||this.getElementId("input"),wf=te$2(te$2(te$2({"aria-autocomplete":"list","aria-expanded":hf,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":pf,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},hf&&{"aria-controls":this.getElementId("listbox")}),!pc&&{"aria-readonly":!0}),this.hasValue()?(bf==null?void 0:bf.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return pc?y$2.createElement(gf,Hr$3({},Sf,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:xf,innerRef:this.getInputRef,isDisabled:hc,isHidden:vf,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:df,form:ff,type:"text",value:uf},wf)):y$2.createElement(Sv,Hr$3({id:xf,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:_r$2,onFocus:this.onInputFocus,disabled:hc,tabIndex:df,inputMode:"none",form:ff,value:""},wf))}},{key:"renderPlaceholderOrValue",value:function(){var Ra=this,hc=this.getComponents(),pc=hc.MultiValue,mc=hc.MultiValueContainer,uf=hc.MultiValueLabel,df=hc.MultiValueRemove,ff=hc.SingleValue,hf=hc.Placeholder,pf=this.commonProps,mf=this.props,gf=mf.controlShouldRenderValue,yf=mf.isDisabled,vf=mf.isMulti,bf=mf.inputValue,Sf=mf.placeholder,xf=this.state,wf=xf.selectValue,Hp=xf.focusedValue,If=xf.isFocused;if(!this.hasValue()||!gf)return bf?null:y$2.createElement(hf,Hr$3({},pf,{key:"placeholder",isDisabled:yf,isFocused:If,innerProps:{id:this.getElementId("placeholder")}}),Sf);if(vf)return wf.map(function(s1,d1){var O1=s1===Hp,k1="".concat(Ra.getOptionLabel(s1),"-").concat(Ra.getOptionValue(s1));return y$2.createElement(pc,Hr$3({},pf,{components:{Container:mc,Label:uf,Remove:df},isFocused:O1,isDisabled:yf,key:k1,index:d1,removeProps:{onClick:function(){return Ra.removeValue(s1)},onTouchEnd:function(){return Ra.removeValue(s1)},onMouseDown:function(_1){_1.preventDefault()}},data:s1}),Ra.formatOptionLabel(s1,"value"))});if(bf)return null;var Km=wf[0];return y$2.createElement(ff,Hr$3({},pf,{data:Km,isDisabled:yf}),this.formatOptionLabel(Km,"value"))}},{key:"renderClearIndicator",value:function(){var Ra=this.getComponents(),hc=Ra.ClearIndicator,pc=this.commonProps,mc=this.props,uf=mc.isDisabled,df=mc.isLoading,ff=this.state.isFocused;if(!this.isClearable()||!hc||uf||!this.hasValue()||df)return null;var hf={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return y$2.createElement(hc,Hr$3({},pc,{innerProps:hf,isFocused:ff}))}},{key:"renderLoadingIndicator",value:function(){var Ra=this.getComponents(),hc=Ra.LoadingIndicator,pc=this.commonProps,mc=this.props,uf=mc.isDisabled,df=mc.isLoading,ff=this.state.isFocused;if(!hc||!df)return null;var hf={"aria-hidden":"true"};return y$2.createElement(hc,Hr$3({},pc,{innerProps:hf,isDisabled:uf,isFocused:ff}))}},{key:"renderIndicatorSeparator",value:function(){var Ra=this.getComponents(),hc=Ra.DropdownIndicator,pc=Ra.IndicatorSeparator;if(!hc||!pc)return null;var mc=this.commonProps,uf=this.props.isDisabled,df=this.state.isFocused;return y$2.createElement(pc,Hr$3({},mc,{isDisabled:uf,isFocused:df}))}},{key:"renderDropdownIndicator",value:function(){var Ra=this.getComponents(),hc=Ra.DropdownIndicator;if(!hc)return null;var pc=this.commonProps,mc=this.props.isDisabled,uf=this.state.isFocused,df={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return y$2.createElement(hc,Hr$3({},pc,{innerProps:df,isDisabled:mc,isFocused:uf}))}},{key:"renderMenu",value:function(){var Ra=this,hc=this.getComponents(),pc=hc.Group,mc=hc.GroupHeading,uf=hc.Menu,df=hc.MenuList,ff=hc.MenuPortal,hf=hc.LoadingMessage,pf=hc.NoOptionsMessage,mf=hc.Option,gf=this.commonProps,yf=this.state.focusedOption,vf=this.props,bf=vf.captureMenuScroll,Sf=vf.inputValue,xf=vf.isLoading,wf=vf.loadingMessage,Hp=vf.minMenuHeight,If=vf.maxMenuHeight,Km=vf.menuIsOpen,s1=vf.menuPlacement,d1=vf.menuPosition,O1=vf.menuPortalTarget,k1=vf.menuShouldBlockScroll,_1=vf.menuShouldScrollIntoView,m1=vf.noOptionsMessage,R1=vf.onMenuScrollToTop,c1=vf.onMenuScrollToBottom;if(!Km)return null;var f1=function(q1,T1){var M1=q1.type,P1=q1.data,U1=q1.isDisabled,Z1=q1.isSelected,H1=q1.label,Y1=q1.value,J1=yf===P1,tT=U1?void 0:function(){return Ra.onOptionHover(P1)},iT=U1?void 0:function(){return Ra.selectOption(P1)},nT="".concat(Ra.getElementId("option"),"-").concat(T1),eT={id:nT,onClick:iT,onMouseMove:tT,onMouseOver:tT,tabIndex:-1,role:"option","aria-selected":Ra.isAppleDevice?void 0:Z1};return y$2.createElement(mf,Hr$3({},gf,{innerProps:eT,data:P1,isDisabled:U1,isSelected:Z1,key:nT,label:H1,type:M1,value:Y1,isFocused:J1,innerRef:J1?Ra.getFocusedOptionRef:void 0}),Ra.formatOptionLabel(q1.data,"menu"))},E1;if(this.hasOptions())E1=this.getCategorizedOptions().map(function(q1){if(q1.type==="group"){var T1=q1.data,M1=q1.options,P1=q1.index,U1="".concat(Ra.getElementId("group"),"-").concat(P1),Z1="".concat(U1,"-heading");return y$2.createElement(pc,Hr$3({},gf,{key:U1,data:T1,options:M1,Heading:mc,headingProps:{id:Z1,data:q1.data},label:Ra.formatGroupLabel(q1.data)}),q1.options.map(function(H1){return f1(H1,"".concat(P1,"-").concat(H1.index))}))}else if(q1.type==="option")return f1(q1,"".concat(q1.index))});else if(xf){var D1=wf({inputValue:Sf});if(D1===null)return null;E1=y$2.createElement(hf,gf,D1)}else{var j1=m1({inputValue:Sf});if(j1===null)return null;E1=y$2.createElement(pf,gf,j1)}var F1={minMenuHeight:Hp,maxMenuHeight:If,menuPlacement:s1,menuPosition:d1,menuShouldScrollIntoView:_1},G1=y$2.createElement(tg,Hr$3({},gf,F1),function(q1){var T1=q1.ref,M1=q1.placerProps,P1=M1.placement,U1=M1.maxHeight;return y$2.createElement(uf,Hr$3({},gf,F1,{innerRef:T1,innerProps:{onMouseDown:Ra.onMenuMouseDown,onMouseMove:Ra.onMenuMouseMove},isLoading:xf,placement:P1}),y$2.createElement(Ov,{captureEnabled:bf,onTopArrive:R1,onBottomArrive:c1,lockEnabled:k1},function(Z1){return y$2.createElement(df,Hr$3({},gf,{innerRef:function(H1){Ra.getMenuListRef(H1),Z1(H1)},innerProps:{role:"listbox","aria-multiselectable":gf.isMulti,id:Ra.getElementId("listbox")},isLoading:xf,maxHeight:U1,focusedOption:yf}),E1)}))});return O1||d1==="fixed"?y$2.createElement(ff,Hr$3({},gf,{appendTo:O1,controlElement:this.controlRef,menuPlacement:s1,menuPosition:d1}),G1):G1}},{key:"renderFormField",value:function(){var Ra=this,hc=this.props,pc=hc.delimiter,mc=hc.isDisabled,uf=hc.isMulti,df=hc.name,ff=hc.required,hf=this.state.selectValue;if(ff&&!this.hasValue()&&!mc)return y$2.createElement(Av,{name:df,onFocus:this.onValueInputFocus});if(!(!df||mc))if(uf)if(pc){var pf=hf.map(function(yf){return Ra.getOptionValue(yf)}).join(pc);return y$2.createElement("input",{name:df,type:"hidden",value:pf})}else{var mf=hf.length>0?hf.map(function(yf,vf){return y$2.createElement("input",{key:"i-".concat(vf),name:df,type:"hidden",value:Ra.getOptionValue(yf)})}):y$2.createElement("input",{name:df,type:"hidden",value:""});return y$2.createElement("div",null,mf)}else{var gf=hf[0]?this.getOptionValue(hf[0]):"";return y$2.createElement("input",{name:df,type:"hidden",value:gf})}}},{key:"renderLiveRegion",value:function(){var Ra=this.commonProps,hc=this.state,pc=hc.ariaSelection,mc=hc.focusedOption,uf=hc.focusedValue,df=hc.isFocused,ff=hc.selectValue,hf=this.getFocusableOptions();return y$2.createElement(gv,Hr$3({},Ra,{id:this.getElementId("live-region"),ariaSelection:pc,focusedOption:mc,focusedValue:uf,isFocused:df,selectValue:ff,focusableOptions:hf,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var Ra=this.getComponents(),hc=Ra.Control,pc=Ra.IndicatorsContainer,mc=Ra.SelectContainer,uf=Ra.ValueContainer,df=this.props,ff=df.className,hf=df.id,pf=df.isDisabled,mf=df.menuIsOpen,gf=this.state.isFocused,yf=this.commonProps=this.getCommonProps();return y$2.createElement(mc,Hr$3({},yf,{className:ff,innerProps:{id:hf,onKeyDown:this.onKeyDown},isDisabled:pf,isFocused:gf}),this.renderLiveRegion(),y$2.createElement(hc,Hr$3({},yf,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:pf,isFocused:gf,menuIsOpen:mf}),y$2.createElement(uf,Hr$3({},yf,{isDisabled:pf}),this.renderPlaceholderOrValue(),this.renderInput()),y$2.createElement(pc,Hr$3({},yf,{isDisabled:pf}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(Ra,hc){var pc=hc.prevProps,mc=hc.clearFocusValueOnUpdate,uf=hc.inputIsHiddenAfterUpdate,df=hc.ariaSelection,ff=hc.isFocused,hf=hc.prevWasFocused,pf=hc.instancePrefix,mf=Ra.options,gf=Ra.value,yf=Ra.menuIsOpen,vf=Ra.inputValue,bf=Ra.isMulti,Sf=ls$1(gf),xf={};if(pc&&(gf!==pc.value||mf!==pc.options||yf!==pc.menuIsOpen||vf!==pc.inputValue)){var wf=yf?Gv(Ra,Sf):[],Hp=yf?Is$2(xr$2(Ra,Sf),"".concat(pf,"-option")):[],If=mc?qv(hc,Sf):null,Km=Xv(hc,wf),s1=Ho$1(Hp,Km);xf={selectValue:Sf,focusedOption:Km,focusedOptionId:s1,focusableOptionsWithIds:Hp,focusedValue:If,clearFocusValueOnUpdate:!1}}var d1=uf!=null&&Ra!==pc?{inputIsHidden:uf,inputIsHiddenAfterUpdate:void 0}:{},O1=df,k1=ff&&hf;return ff&&!k1&&(O1={value:lr$1(bf,Sf,Sf[0]||null),options:Sf,action:"initial-input-focus"},k1=!hf),(df==null?void 0:df.action)==="initial-input-focus"&&(O1=null),te$2(te$2(te$2({},xf),d1),{},{prevProps:Ra,ariaSelection:O1,prevWasFocused:k1})}}]),bo}(Component);Nl.defaultProps=Yv;var Zv=forwardRef(function(vo,Ai){var bo=Um(vo);return y$2.createElement(Nl,Hr$3({ref:Ai},bo))}),Qv=Zv;function Jv(vo){return jsx(ro$1.DropdownIndicator,{...vo,children:jsx(_e$1,{name:"ChevronDown",size:16})})}function eb(vo){return jsx(ro$1.ClearIndicator,{...vo,children:jsx(_e$1,{name:"Xmark",size:16})})}function tb(vo){const{label:Ai,onClick:bo,...Ra}=vo,hc=!!Ai&&!!bo;return jsxs(ro$1.MenuList,{...Ra,children:[vo.children,hc?jsx("button",{className:"w-full px-2 py-3 hover:bg-slate-50",onClick:bo,children:Ai}):null]})}function Ca(vo){const Ai=vo["aria-invalid"]==="true",{addItemButtonProps:bo,...Ra}=vo;return jsx(Qv,{...Ra,components:{DropdownIndicator:Jv,ClearIndicator:eb,MenuList:hc=>tb({...hc,...bo})},styles:{dropdownIndicator:()=>({label:"indicatorContainer",display:"flex",transition:"color 150ms",color:"var(--gray-900)",padding:8,boxSizing:"border-box"}),clearIndicator:hc=>({...hc,color:"var(--gray-900)"}),container:hc=>({...hc,borderColor:"var(--gray-200)",fontSize:12}),placeholder:hc=>({...hc,color:Ai?"var(--red-800)":"var(--gray-500)"}),control:()=>({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:32,outline:"0 !important",position:"relative",transition:"all 100ms",backgroundColor:"var(--white)",borderColor:Ai?"var(--red-900)":"var(--gray-200)",borderStyle:"solid",borderWidth:1,borderRadius:"6px",boxSizing:"border-box"}),option:(hc,pc)=>({...hc,backgroundColor:pc.isSelected?"var(--slate-50)":"var(--white)",color:"var(--gray-800)",":hover":{backgroundColor:"var(--slate-50)"}}),menuList:hc=>({...hc,padding:0,borderRadius:"6px"})},theme:hc=>({...hc,colors:{...hc.colors,primary:"var(--slate-100)",primary25:"var(--slate-50)",primary50:"var(--slate-100)",primary75:"var(--slate-100)",danger:"var(--red-900)",dangerLight:"var(--red-100)",neutral0:"var(--white)",neutral5:"var(--gray-50)",neutral10:"var(--gray-100)",neutral20:"var(--gray-200)",neutral30:"var(--gray-300)",neutral40:"var(--gray-400)",neutral50:"var(--gray-500)",neutral60:"var(--gray-600)",neutral70:"var(--gray-700)",neutral80:"var(--gray-800)",neutral90:"var(--gray-900)"}})})}function Al(vo,Ai){const{className:bo,...Ra}=vo;return{className:Ne$1(Ai,typeof bo=="string"&&bo),...Ra}}const Dl=forwardRef(function(vo,Ai){const{color:bo="dark",size:Ra="medium",className:hc="",children:pc,icon:mc,iconPosition:uf="left",...df}=vo,ff={small:"px-2 py-1.5 text-xs rounded-md font-medium",medium:"px-6 py-3 text-base rounded-xl font-semibold tracking-wide"},hf=Xr$1({light:"bg-gray-200 text-gray-600 hover:text-gray-700 hover:border-gray-300 active:border-slate-100 active:text-gray-600 disabled:text-gray-400",dark:"bg-gray-800 text-slate-50 hover:bg-slate-800 active:border-slate-700 disabled:bg-gray-300 disabled:text-slate-100",red:"bg-red-900 text-slate-50 hover:opacity-80 active:border-red-800 disabled:text-red-400 disabled:opacity-100",blue:"bg-blue-900 text-slate-50 hover:opacity-80 active:border-blue-800 disabled:text-blue-400 disabled:opacity-100"}[bo],ff[Ra]),pf=Ne$1("flex items-center justify-center gap-2 border border-none outline-none transition disabled:cursor-not-allowed",hf,hc);return jsxs("button",{className:pf,ref:Ai,...df,children:[uf==="left"&&mc,pc,uf==="right"&&mc]})});function re$2(vo,Ai,{checkForDefaultPrevented:bo=!0}={}){return function(Ra){if(vo==null||vo(Ra),bo===!1||!Ra.defaultPrevented)return Ai==null?void 0:Ai(Ra)}}function nb(vo,Ai){const bo=y$2.createContext(Ai),Ra=pc=>{const{children:mc,...uf}=pc,df=y$2.useMemo(()=>uf,Object.values(uf));return jsx(bo.Provider,{value:df,children:mc})};Ra.displayName=vo+"Provider";function hc(pc){const mc=y$2.useContext(bo);if(mc)return mc;if(Ai!==void 0)return Ai;throw new Error(`\`${pc}\` must be used within \`${vo}\``)}return[Ra,hc]}function Wt$2(vo,Ai=[]){let bo=[];function Ra(pc,mc){const uf=y$2.createContext(mc),df=bo.length;bo=[...bo,mc];const ff=pf=>{var mf;const{scope:gf,children:yf,...vf}=pf,bf=((mf=gf==null?void 0:gf[vo])==null?void 0:mf[df])||uf,Sf=y$2.useMemo(()=>vf,Object.values(vf));return jsx(bf.Provider,{value:Sf,children:yf})};ff.displayName=pc+"Provider";function hf(pf,mf){var gf;const yf=((gf=mf==null?void 0:mf[vo])==null?void 0:gf[df])||uf,vf=y$2.useContext(yf);if(vf)return vf;if(mc!==void 0)return mc;throw new Error(`\`${pf}\` must be used within \`${pc}\``)}return[ff,hf]}const hc=()=>{const pc=bo.map(mc=>y$2.createContext(mc));return function(mc){const uf=(mc==null?void 0:mc[vo])||pc;return y$2.useMemo(()=>({[`__scope${vo}`]:{...mc,[vo]:uf}}),[mc,uf])}};return hc.scopeName=vo,[Ra,rb(hc,...Ai)]}function rb(...vo){const Ai=vo[0];if(vo.length===1)return Ai;const bo=()=>{const Ra=vo.map(hc=>({useScope:hc(),scopeName:hc.scopeName}));return function(hc){const pc=Ra.reduce((mc,{useScope:uf,scopeName:df})=>{const ff=uf(hc)[`__scope${df}`];return{...mc,...ff}},{});return y$2.useMemo(()=>({[`__scope${Ai.scopeName}`]:pc}),[pc])}};return bo.scopeName=Ai.scopeName,bo}function at$2(vo){const Ai=y$2.useRef(vo);return y$2.useEffect(()=>{Ai.current=vo}),y$2.useMemo(()=>(...bo)=>{var Ra;return(Ra=Ai.current)==null?void 0:Ra.call(Ai,...bo)},[])}function Qn$2({prop:vo,defaultProp:Ai,onChange:bo=()=>{}}){const[Ra,hc]=ob({defaultProp:Ai,onChange:bo}),pc=vo!==void 0,mc=pc?vo:Ra,uf=at$2(bo),df=y$2.useCallback(ff=>{if(pc){const hf=typeof ff=="function"?ff(vo):ff;hf!==vo&&uf(hf)}else hc(ff)},[pc,vo,hc,uf]);return[mc,df]}function ob({defaultProp:vo,onChange:Ai}){const bo=y$2.useState(vo),[Ra]=bo,hc=y$2.useRef(Ra),pc=at$2(Ai);return y$2.useEffect(()=>{hc.current!==Ra&&(pc(Ra),hc.current=Ra)},[Ra,hc,pc]),bo}function Rl(vo){const Ai=vo+"CollectionProvider",[bo,Ra]=Wt$2(Ai),[hc,pc]=bo(Ai,{collectionRef:{current:null},itemMap:new Map}),mc=gf=>{const{scope:yf,children:vf}=gf,bf=y__default.useRef(null),Sf=y__default.useRef(new Map).current;return jsx(hc,{scope:yf,itemMap:Sf,collectionRef:bf,children:vf})};mc.displayName=Ai;const uf=vo+"CollectionSlot",df=y__default.forwardRef((gf,yf)=>{const{scope:vf,children:bf}=gf,Sf=pc(uf,vf),xf=Fe$2(yf,Sf.collectionRef);return jsx(mn$1,{ref:xf,children:bf})});df.displayName=uf;const ff=vo+"CollectionItemSlot",hf="data-radix-collection-item",pf=y__default.forwardRef((gf,yf)=>{const{scope:vf,children:bf,...Sf}=gf,xf=y__default.useRef(null),wf=Fe$2(yf,xf),Hp=pc(ff,vf);return y__default.useEffect(()=>(Hp.itemMap.set(xf,{ref:xf,...Sf}),()=>void Hp.itemMap.delete(xf))),jsx(mn$1,{[hf]:"",ref:wf,children:bf})});pf.displayName=ff;function mf(gf){const yf=pc(vo+"CollectionConsumer",gf);return y__default.useCallback(()=>{const vf=yf.collectionRef.current;if(!vf)return[];const bf=Array.from(vf.querySelectorAll(`[${hf}]`));return Array.from(yf.itemMap.values()).sort((Sf,xf)=>bf.indexOf(Sf.ref.current)-bf.indexOf(xf.ref.current))},[yf.collectionRef,yf.itemMap])}return[{Provider:mc,Slot:df,ItemSlot:pf},mf,Ra]}var ab=y$2.createContext(void 0);function ei(vo){const Ai=y$2.useContext(ab);return vo||Ai||"ltr"}function ib(vo,Ai=globalThis==null?void 0:globalThis.document){const bo=at$2(vo);y$2.useEffect(()=>{const Ra=hc=>{hc.key==="Escape"&&bo(hc)};return Ai.addEventListener("keydown",Ra,{capture:!0}),()=>Ai.removeEventListener("keydown",Ra,{capture:!0})},[bo,Ai])}var sb="DismissableLayer",Ia="dismissableLayer.update",cb="dismissableLayer.pointerDownOutside",lb="dismissableLayer.focusOutside",Ps$1,_l=y$2.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),oo$1=y$2.forwardRef((vo,Ai)=>{const{disableOutsidePointerEvents:bo=!1,onEscapeKeyDown:Ra,onPointerDownOutside:hc,onFocusOutside:pc,onInteractOutside:mc,onDismiss:uf,...df}=vo,ff=y$2.useContext(_l),[hf,pf]=y$2.useState(null),mf=(hf==null?void 0:hf.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,gf]=y$2.useState({}),yf=Fe$2(Ai,s1=>pf(s1)),vf=Array.from(ff.layers),[bf]=[...ff.layersWithOutsidePointerEventsDisabled].slice(-1),Sf=vf.indexOf(bf),xf=hf?vf.indexOf(hf):-1,wf=ff.layersWithOutsidePointerEventsDisabled.size>0,Hp=xf>=Sf,If=fb(s1=>{const d1=s1.target,O1=[...ff.branches].some(k1=>k1.contains(d1));!Hp||O1||(hc==null||hc(s1),mc==null||mc(s1),s1.defaultPrevented||uf==null||uf())},mf),Km=mb(s1=>{const d1=s1.target;[...ff.branches].some(O1=>O1.contains(d1))||(pc==null||pc(s1),mc==null||mc(s1),s1.defaultPrevented||uf==null||uf())},mf);return ib(s1=>{xf===ff.layers.size-1&&(Ra==null||Ra(s1),!s1.defaultPrevented&&uf&&(s1.preventDefault(),uf()))},mf),y$2.useEffect(()=>{if(hf)return bo&&(ff.layersWithOutsidePointerEventsDisabled.size===0&&(Ps$1=mf.body.style.pointerEvents,mf.body.style.pointerEvents="none"),ff.layersWithOutsidePointerEventsDisabled.add(hf)),ff.layers.add(hf),Ts(),()=>{bo&&ff.layersWithOutsidePointerEventsDisabled.size===1&&(mf.body.style.pointerEvents=Ps$1)}},[hf,mf,bo,ff]),y$2.useEffect(()=>()=>{hf&&(ff.layers.delete(hf),ff.layersWithOutsidePointerEventsDisabled.delete(hf),Ts())},[hf,ff]),y$2.useEffect(()=>{const s1=()=>gf({});return document.addEventListener(Ia,s1),()=>document.removeEventListener(Ia,s1)},[]),jsx(we$1.div,{...df,ref:yf,style:{pointerEvents:wf?Hp?"auto":"none":void 0,...vo.style},onFocusCapture:re$2(vo.onFocusCapture,Km.onFocusCapture),onBlurCapture:re$2(vo.onBlurCapture,Km.onBlurCapture),onPointerDownCapture:re$2(vo.onPointerDownCapture,If.onPointerDownCapture)})});oo$1.displayName=sb;var ub="DismissableLayerBranch",db=y$2.forwardRef((vo,Ai)=>{const bo=y$2.useContext(_l),Ra=y$2.useRef(null),hc=Fe$2(Ai,Ra);return y$2.useEffect(()=>{const pc=Ra.current;if(pc)return bo.branches.add(pc),()=>{bo.branches.delete(pc)}},[bo.branches]),jsx(we$1.div,{...vo,ref:hc})});db.displayName=ub;function fb(vo,Ai=globalThis==null?void 0:globalThis.document){const bo=at$2(vo),Ra=y$2.useRef(!1),hc=y$2.useRef(()=>{});return y$2.useEffect(()=>{const pc=uf=>{if(uf.target&&!Ra.current){let df=function(){kl(cb,bo,ff,{discrete:!0})};const ff={originalEvent:uf};uf.pointerType==="touch"?(Ai.removeEventListener("click",hc.current),hc.current=df,Ai.addEventListener("click",hc.current,{once:!0})):df()}else Ai.removeEventListener("click",hc.current);Ra.current=!1},mc=window.setTimeout(()=>{Ai.addEventListener("pointerdown",pc)},0);return()=>{window.clearTimeout(mc),Ai.removeEventListener("pointerdown",pc),Ai.removeEventListener("click",hc.current)}},[Ai,bo]),{onPointerDownCapture:()=>Ra.current=!0}}function mb(vo,Ai=globalThis==null?void 0:globalThis.document){const bo=at$2(vo),Ra=y$2.useRef(!1);return y$2.useEffect(()=>{const hc=pc=>{pc.target&&!Ra.current&&kl(lb,bo,{originalEvent:pc},{discrete:!1})};return Ai.addEventListener("focusin",hc),()=>Ai.removeEventListener("focusin",hc)},[Ai,bo]),{onFocusCapture:()=>Ra.current=!0,onBlurCapture:()=>Ra.current=!1}}function Ts(){const vo=new CustomEvent(Ia);document.dispatchEvent(vo)}function kl(vo,Ai,bo,{discrete:Ra}){const hc=bo.originalEvent.target,pc=new CustomEvent(vo,{bubbles:!1,cancelable:!0,detail:bo});Ai&&hc.addEventListener(vo,Ai,{once:!0}),Ra?_c(hc,pc):hc.dispatchEvent(pc)}var Wo$1=0;function Fl(){y$2.useEffect(()=>{const vo=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",vo[0]??Os$1()),document.body.insertAdjacentElement("beforeend",vo[1]??Os$1()),Wo$1++,()=>{Wo$1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(Ai=>Ai.remove()),Wo$1--}},[])}function Os$1(){const vo=document.createElement("span");return vo.setAttribute("data-radix-focus-guard",""),vo.tabIndex=0,vo.style.outline="none",vo.style.opacity="0",vo.style.position="fixed",vo.style.pointerEvents="none",vo}var Bo$1="focusScope.autoFocusOnMount",zo$1="focusScope.autoFocusOnUnmount",Ms$1={bubbles:!1,cancelable:!0},pb="FocusScope",ti=y$2.forwardRef((vo,Ai)=>{const{loop:bo=!1,trapped:Ra=!1,onMountAutoFocus:hc,onUnmountAutoFocus:pc,...mc}=vo,[uf,df]=y$2.useState(null),ff=at$2(hc),hf=at$2(pc),pf=y$2.useRef(null),mf=Fe$2(Ai,vf=>df(vf)),gf=y$2.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y$2.useEffect(()=>{if(Ra){let vf=function(wf){if(gf.paused||!uf)return;const Hp=wf.target;uf.contains(Hp)?pf.current=Hp:At$2(pf.current,{select:!0})},bf=function(wf){if(gf.paused||!uf)return;const Hp=wf.relatedTarget;Hp!==null&&(uf.contains(Hp)||At$2(pf.current,{select:!0}))},Sf=function(wf){if(document.activeElement===document.body)for(const Hp of wf)Hp.removedNodes.length>0&&At$2(uf)};document.addEventListener("focusin",vf),document.addEventListener("focusout",bf);const xf=new MutationObserver(Sf);return uf&&xf.observe(uf,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",vf),document.removeEventListener("focusout",bf),xf.disconnect()}}},[Ra,uf,gf.paused]),y$2.useEffect(()=>{if(uf){As.add(gf);const vf=document.activeElement;if(!uf.contains(vf)){const bf=new CustomEvent(Bo$1,Ms$1);uf.addEventListener(Bo$1,ff),uf.dispatchEvent(bf),bf.defaultPrevented||(hb(wb(Vl(uf)),{select:!0}),document.activeElement===vf&&At$2(uf))}return()=>{uf.removeEventListener(Bo$1,ff),setTimeout(()=>{const bf=new CustomEvent(zo$1,Ms$1);uf.addEventListener(zo$1,hf),uf.dispatchEvent(bf),bf.defaultPrevented||At$2(vf??document.body,{select:!0}),uf.removeEventListener(zo$1,hf),As.remove(gf)},0)}}},[uf,ff,hf,gf]);const yf=y$2.useCallback(vf=>{if(!bo&&!Ra||gf.paused)return;const bf=vf.key==="Tab"&&!vf.altKey&&!vf.ctrlKey&&!vf.metaKey,Sf=document.activeElement;if(bf&&Sf){const xf=vf.currentTarget,[wf,Hp]=gb(xf);wf&&Hp?!vf.shiftKey&&Sf===Hp?(vf.preventDefault(),bo&&At$2(wf,{select:!0})):vf.shiftKey&&Sf===wf&&(vf.preventDefault(),bo&&At$2(Hp,{select:!0})):Sf===xf&&vf.preventDefault()}},[bo,Ra,gf.paused]);return jsx(we$1.div,{tabIndex:-1,...mc,ref:mf,onKeyDown:yf})});ti.displayName=pb;function hb(vo,{select:Ai=!1}={}){const bo=document.activeElement;for(const Ra of vo)if(At$2(Ra,{select:Ai}),document.activeElement!==bo)return}function gb(vo){const Ai=Vl(vo),bo=Ns(Ai,vo),Ra=Ns(Ai.reverse(),vo);return[bo,Ra]}function Vl(vo){const Ai=[],bo=document.createTreeWalker(vo,NodeFilter.SHOW_ELEMENT,{acceptNode:Ra=>{const hc=Ra.tagName==="INPUT"&&Ra.type==="hidden";return Ra.disabled||Ra.hidden||hc?NodeFilter.FILTER_SKIP:Ra.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;bo.nextNode();)Ai.push(bo.currentNode);return Ai}function Ns(vo,Ai){for(const bo of vo)if(!vb(bo,{upTo:Ai}))return bo}function vb(vo,{upTo:Ai}){if(getComputedStyle(vo).visibility==="hidden")return!0;for(;vo;){if(Ai!==void 0&&vo===Ai)return!1;if(getComputedStyle(vo).display==="none")return!0;vo=vo.parentElement}return!1}function bb(vo){return vo instanceof HTMLInputElement&&"select"in vo}function At$2(vo,{select:Ai=!1}={}){if(vo&&vo.focus){const bo=document.activeElement;vo.focus({preventScroll:!0}),vo!==bo&&bb(vo)&&Ai&&vo.select()}}var As=yb();function yb(){let vo=[];return{add(Ai){const bo=vo[0];Ai!==bo&&(bo==null||bo.pause()),vo=Ds$1(vo,Ai),vo.unshift(Ai)},remove(Ai){var bo;vo=Ds$1(vo,Ai),(bo=vo[0])==null||bo.resume()}}}function Ds$1(vo,Ai){const bo=[...vo],Ra=bo.indexOf(Ai);return Ra!==-1&&bo.splice(Ra,1),bo}function wb(vo){return vo.filter(Ai=>Ai.tagName!=="A")}var Xt$1=globalThis!=null&&globalThis.document?y$2.useLayoutEffect:()=>{},xb=y$2.useId||(()=>{}),Sb=0;function Ft$2(vo){const[Ai,bo]=y$2.useState(xb());return Xt$1(()=>{bo(Ra=>Ra??String(Sb++))},[vo]),Ai?`radix-${Ai}`:""}var Sr$2=typeof document<"u"?useLayoutEffect:useEffect;function Vr$2(vo,Ai){if(vo===Ai)return!0;if(typeof vo!=typeof Ai)return!1;if(typeof vo=="function"&&vo.toString()===Ai.toString())return!0;let bo,Ra,hc;if(vo&&Ai&&typeof vo=="object"){if(Array.isArray(vo)){if(bo=vo.length,bo!==Ai.length)return!1;for(Ra=bo;Ra--!==0;)if(!Vr$2(vo[Ra],Ai[Ra]))return!1;return!0}if(hc=Object.keys(vo),bo=hc.length,bo!==Object.keys(Ai).length)return!1;for(Ra=bo;Ra--!==0;)if(!{}.hasOwnProperty.call(Ai,hc[Ra]))return!1;for(Ra=bo;Ra--!==0;){const pc=hc[Ra];if(!(pc==="_owner"&&vo.$$typeof)&&!Vr$2(vo[pc],Ai[pc]))return!1}return!0}return vo!==vo&&Ai!==Ai}function Ll(vo){return typeof window>"u"?1:(vo.ownerDocument.defaultView||window).devicePixelRatio||1}function Rs(vo,Ai){const bo=Ll(vo);return Math.round(Ai*bo)/bo}function jo(vo){const Ai=y$2.useRef(vo);return Sr$2(()=>{Ai.current=vo}),Ai}function Cb(vo){vo===void 0&&(vo={});const{placement:Ai="bottom",strategy:bo="absolute",middleware:Ra=[],platform:hc,elements:{reference:pc,floating:mc}={},transform:uf=!0,whileElementsMounted:df,open:ff}=vo,[hf,pf]=y$2.useState({x:0,y:0,strategy:bo,placement:Ai,middlewareData:{},isPositioned:!1}),[mf,gf]=y$2.useState(Ra);Vr$2(mf,Ra)||gf(Ra);const[yf,vf]=y$2.useState(null),[bf,Sf]=y$2.useState(null),xf=y$2.useCallback(j1=>{j1!==Km.current&&(Km.current=j1,vf(j1))},[]),wf=y$2.useCallback(j1=>{j1!==s1.current&&(s1.current=j1,Sf(j1))},[]),Hp=pc||yf,If=mc||bf,Km=y$2.useRef(null),s1=y$2.useRef(null),d1=y$2.useRef(hf),O1=df!=null,k1=jo(df),_1=jo(hc),m1=jo(ff),R1=y$2.useCallback(()=>{if(!Km.current||!s1.current)return;const j1={placement:Ai,strategy:bo,middleware:mf};_1.current&&(j1.platform=_1.current),Fh(Km.current,s1.current,j1).then(F1=>{const G1={...F1,isPositioned:m1.current!==!1};c1.current&&!Vr$2(d1.current,G1)&&(d1.current=G1,jl$1.flushSync(()=>{pf(G1)}))})},[mf,Ai,bo,_1,m1]);Sr$2(()=>{ff===!1&&d1.current.isPositioned&&(d1.current.isPositioned=!1,pf(j1=>({...j1,isPositioned:!1})))},[ff]);const c1=y$2.useRef(!1);Sr$2(()=>(c1.current=!0,()=>{c1.current=!1}),[]),Sr$2(()=>{if(Hp&&(Km.current=Hp),If&&(s1.current=If),Hp&&If){if(k1.current)return k1.current(Hp,If,R1);R1()}},[Hp,If,R1,k1,O1]);const f1=y$2.useMemo(()=>({reference:Km,floating:s1,setReference:xf,setFloating:wf}),[xf,wf]),E1=y$2.useMemo(()=>({reference:Hp,floating:If}),[Hp,If]),D1=y$2.useMemo(()=>{const j1={position:bo,left:0,top:0};if(!E1.floating)return j1;const F1=Rs(E1.floating,hf.x),G1=Rs(E1.floating,hf.y);return uf?{...j1,transform:"translate("+F1+"px, "+G1+"px)",...Ll(E1.floating)>=1.5&&{willChange:"transform"}}:{position:bo,left:F1,top:G1}},[bo,uf,E1.floating,hf.x,hf.y]);return y$2.useMemo(()=>({...hf,update:R1,refs:f1,elements:E1,floatingStyles:D1}),[hf,R1,f1,E1,D1])}const Ib=vo=>{function Ai(bo){return{}.hasOwnProperty.call(bo,"current")}return{name:"arrow",options:vo,fn(bo){const{element:Ra,padding:hc}=typeof vo=="function"?vo(bo):vo;return Ra&&Ai(Ra)?Ra.current!=null?cs({element:Ra.current,padding:hc}).fn(bo):{}:Ra?cs({element:Ra,padding:hc}).fn(bo):{}}}},Eb=(vo,Ai)=>({...Nh(vo),options:[vo,Ai]}),Pb=(vo,Ai)=>({...Ah(vo),options:[vo,Ai]}),Tb=(vo,Ai)=>({...kh(vo),options:[vo,Ai]}),Ob=(vo,Ai)=>({...Dh(vo),options:[vo,Ai]}),Mb=(vo,Ai)=>({...Rh(vo),options:[vo,Ai]}),Nb=(vo,Ai)=>({..._h(vo),options:[vo,Ai]}),Ab=(vo,Ai)=>({...Ib(vo),options:[vo,Ai]});var Db="Arrow",$l=y$2.forwardRef((vo,Ai)=>{const{children:bo,width:Ra=10,height:hc=5,...pc}=vo;return jsx(we$1.svg,{...pc,ref:Ai,width:Ra,height:hc,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:vo.asChild?bo:jsx("polygon",{points:"0,0 30,0 15,10"})})});$l.displayName=Db;var Rb=$l;function _b(vo){const[Ai,bo]=y$2.useState(void 0);return Xt$1(()=>{if(vo){bo({width:vo.offsetWidth,height:vo.offsetHeight});const Ra=new ResizeObserver(hc=>{if(!Array.isArray(hc)||!hc.length)return;const pc=hc[0];let mc,uf;if("borderBoxSize"in pc){const df=pc.borderBoxSize,ff=Array.isArray(df)?df[0]:df;mc=ff.inlineSize,uf=ff.blockSize}else mc=vo.offsetWidth,uf=vo.offsetHeight;bo({width:mc,height:uf})});return Ra.observe(vo,{box:"border-box"}),()=>Ra.unobserve(vo)}else bo(void 0)},[vo]),Ai}var ni="Popper",[Ul,ao$1]=Wt$2(ni),[kb,Hl]=Ul(ni),Wl=vo=>{const{__scopePopper:Ai,children:bo}=vo,[Ra,hc]=y$2.useState(null);return jsx(kb,{scope:Ai,anchor:Ra,onAnchorChange:hc,children:bo})};Wl.displayName=ni;var Bl="PopperAnchor",zl=y$2.forwardRef((vo,Ai)=>{const{__scopePopper:bo,virtualRef:Ra,...hc}=vo,pc=Hl(Bl,bo),mc=y$2.useRef(null),uf=Fe$2(Ai,mc);return y$2.useEffect(()=>{pc.onAnchorChange((Ra==null?void 0:Ra.current)||mc.current)}),Ra?null:jsx(we$1.div,{...hc,ref:uf})});zl.displayName=Bl;var ri="PopperContent",[Fb,Vb]=Ul(ri),jl=y$2.forwardRef((vo,Ai)=>{var bo,Ra,hc,pc,mc,uf;const{__scopePopper:df,side:ff="bottom",sideOffset:hf=0,align:pf="center",alignOffset:mf=0,arrowPadding:gf=0,avoidCollisions:yf=!0,collisionBoundary:vf=[],collisionPadding:bf=0,sticky:Sf="partial",hideWhenDetached:xf=!1,updatePositionStrategy:wf="optimized",onPlaced:Hp,...If}=vo,Km=Hl(ri,df),[s1,d1]=y$2.useState(null),O1=Fe$2(Ai,eT=>d1(eT)),[k1,_1]=y$2.useState(null),m1=_b(k1),R1=(m1==null?void 0:m1.width)??0,c1=(m1==null?void 0:m1.height)??0,f1=ff+(pf!=="center"?"-"+pf:""),E1=typeof bf=="number"?bf:{top:0,right:0,bottom:0,left:0,...bf},D1=Array.isArray(vf)?vf:[vf],j1=D1.length>0,F1={padding:E1,boundary:D1.filter($b),altBoundary:j1},{refs:G1,floatingStyles:q1,placement:T1,isPositioned:M1,middlewareData:P1}=Cb({strategy:"fixed",placement:f1,whileElementsMounted:(...eT)=>cl(...eT,{animationFrame:wf==="always"}),elements:{reference:Km.anchor},middleware:[Eb({mainAxis:hf+c1,alignmentAxis:mf}),yf&&Pb({mainAxis:!0,crossAxis:!1,limiter:Sf==="partial"?Tb():void 0,...F1}),yf&&Ob({...F1}),Mb({...F1,apply:({elements:eT,rects:sT,availableWidth:A1,availableHeight:L1})=>{const{width:N1,height:l1}=sT.reference,u1=eT.floating.style;u1.setProperty("--radix-popper-available-width",`${A1}px`),u1.setProperty("--radix-popper-available-height",`${L1}px`),u1.setProperty("--radix-popper-anchor-width",`${N1}px`),u1.setProperty("--radix-popper-anchor-height",`${l1}px`)}}),k1&&Ab({element:k1,padding:gf}),Ub({arrowWidth:R1,arrowHeight:c1}),xf&&Nb({strategy:"referenceHidden",...F1})]}),[U1,Z1]=ql(T1),H1=at$2(Hp);Xt$1(()=>{M1&&(H1==null||H1())},[M1,H1]);const Y1=(bo=P1.arrow)==null?void 0:bo.x,J1=(Ra=P1.arrow)==null?void 0:Ra.y,tT=((hc=P1.arrow)==null?void 0:hc.centerOffset)!==0,[iT,nT]=y$2.useState();return Xt$1(()=>{s1&&nT(window.getComputedStyle(s1).zIndex)},[s1]),jsx("div",{ref:G1.setFloating,"data-radix-popper-content-wrapper":"",style:{...q1,transform:M1?q1.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:iT,"--radix-popper-transform-origin":[(pc=P1.transformOrigin)==null?void 0:pc.x,(mc=P1.transformOrigin)==null?void 0:mc.y].join(" "),...((uf=P1.hide)==null?void 0:uf.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:vo.dir,children:jsx(Fb,{scope:df,placedSide:U1,onArrowChange:_1,arrowX:Y1,arrowY:J1,shouldHideArrow:tT,children:jsx(we$1.div,{"data-side":U1,"data-align":Z1,...If,ref:O1,style:{...If.style,animation:M1?void 0:"none"}})})})});jl.displayName=ri;var Yl="PopperArrow",Lb={top:"bottom",right:"left",bottom:"top",left:"right"},Gl=y$2.forwardRef(function(vo,Ai){const{__scopePopper:bo,...Ra}=vo,hc=Vb(Yl,bo),pc=Lb[hc.placedSide];return jsx("span",{ref:hc.onArrowChange,style:{position:"absolute",left:hc.arrowX,top:hc.arrowY,[pc]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[hc.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[hc.placedSide],visibility:hc.shouldHideArrow?"hidden":void 0},children:jsx(Rb,{...Ra,ref:Ai,style:{...Ra.style,display:"block"}})})});Gl.displayName=Yl;function $b(vo){return vo!==null}var Ub=vo=>({name:"transformOrigin",options:vo,fn(Ai){var bo,Ra,hc;const{placement:pc,rects:mc,middlewareData:uf}=Ai,df=((bo=uf.arrow)==null?void 0:bo.centerOffset)!==0,ff=df?0:vo.arrowWidth,hf=df?0:vo.arrowHeight,[pf,mf]=ql(pc),gf={start:"0%",center:"50%",end:"100%"}[mf],yf=(((Ra=uf.arrow)==null?void 0:Ra.x)??0)+ff/2,vf=(((hc=uf.arrow)==null?void 0:hc.y)??0)+hf/2;let bf="",Sf="";return pf==="bottom"?(bf=df?gf:`${yf}px`,Sf=`${-hf}px`):pf==="top"?(bf=df?gf:`${yf}px`,Sf=`${mc.floating.height+hf}px`):pf==="right"?(bf=`${-hf}px`,Sf=df?gf:`${vf}px`):pf==="left"&&(bf=`${mc.floating.width+hf}px`,Sf=df?gf:`${vf}px`),{data:{x:bf,y:Sf}}}});function ql(vo){const[Ai,bo="center"]=vo.split("-");return[Ai,bo]}var Xl=Wl,Kl=zl,Zl=jl,Ql=Gl,Hb="Portal",io$1=y$2.forwardRef((vo,Ai)=>{var bo;const{container:Ra,...hc}=vo,[pc,mc]=y$2.useState(!1);Xt$1(()=>mc(!0),[]);const uf=Ra||pc&&((bo=globalThis==null?void 0:globalThis.document)==null?void 0:bo.body);return uf?jl__default.createPortal(jsx(we$1.div,{...hc,ref:Ai}),uf):null});io$1.displayName=Hb;function Wb(vo,Ai){return y$2.useReducer((bo,Ra)=>Ai[bo][Ra]??bo,vo)}var it$1=vo=>{const{present:Ai,children:bo}=vo,Ra=Bb(Ai),hc=typeof bo=="function"?bo({present:Ra.isPresent}):y$2.Children.only(bo),pc=Fe$2(Ra.ref,zb(hc));return typeof bo=="function"||Ra.isPresent?y$2.cloneElement(hc,{ref:pc}):null};it$1.displayName="Presence";function Bb(vo){const[Ai,bo]=y$2.useState(),Ra=y$2.useRef({}),hc=y$2.useRef(vo),pc=y$2.useRef("none"),mc=vo?"mounted":"unmounted",[uf,df]=Wb(mc,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y$2.useEffect(()=>{const ff=ur$2(Ra.current);pc.current=uf==="mounted"?ff:"none"},[uf]),Xt$1(()=>{const ff=Ra.current,hf=hc.current;if(hf!==vo){const pf=pc.current,mf=ur$2(ff);vo?df("MOUNT"):mf==="none"||(ff==null?void 0:ff.display)==="none"?df("UNMOUNT"):df(hf&&pf!==mf?"ANIMATION_OUT":"UNMOUNT"),hc.current=vo}},[vo,df]),Xt$1(()=>{if(Ai){let ff;const hf=Ai.ownerDocument.defaultView??window,pf=gf=>{const yf=ur$2(Ra.current).includes(gf.animationName);if(gf.target===Ai&&yf&&(df("ANIMATION_END"),!hc.current)){const vf=Ai.style.animationFillMode;Ai.style.animationFillMode="forwards",ff=hf.setTimeout(()=>{Ai.style.animationFillMode==="forwards"&&(Ai.style.animationFillMode=vf)})}},mf=gf=>{gf.target===Ai&&(pc.current=ur$2(Ra.current))};return Ai.addEventListener("animationstart",mf),Ai.addEventListener("animationcancel",pf),Ai.addEventListener("animationend",pf),()=>{hf.clearTimeout(ff),Ai.removeEventListener("animationstart",mf),Ai.removeEventListener("animationcancel",pf),Ai.removeEventListener("animationend",pf)}}else df("ANIMATION_END")},[Ai,df]),{isPresent:["mounted","unmountSuspended"].includes(uf),ref:y$2.useCallback(ff=>{ff&&(Ra.current=getComputedStyle(ff)),bo(ff)},[])}}function ur$2(vo){return(vo==null?void 0:vo.animationName)||"none"}function zb(vo){var Ai,bo;let Ra=(Ai=Object.getOwnPropertyDescriptor(vo.props,"ref"))==null?void 0:Ai.get,hc=Ra&&"isReactWarning"in Ra&&Ra.isReactWarning;return hc?vo.ref:(Ra=(bo=Object.getOwnPropertyDescriptor(vo,"ref"))==null?void 0:bo.get,hc=Ra&&"isReactWarning"in Ra&&Ra.isReactWarning,hc?vo.props.ref:vo.props.ref||vo.ref)}var Yo$1="rovingFocusGroup.onEntryFocus",jb={bubbles:!1,cancelable:!0},so$1="RovingFocusGroup",[Ea,Jl,Yb]=Rl(so$1),[Gb,co$1]=Wt$2(so$1,[Yb]),[qb,Xb]=Gb(so$1),eu=y$2.forwardRef((vo,Ai)=>jsx(Ea.Provider,{scope:vo.__scopeRovingFocusGroup,children:jsx(Ea.Slot,{scope:vo.__scopeRovingFocusGroup,children:jsx(Kb,{...vo,ref:Ai})})}));eu.displayName=so$1;var Kb=y$2.forwardRef((vo,Ai)=>{const{__scopeRovingFocusGroup:bo,orientation:Ra,loop:hc=!1,dir:pc,currentTabStopId:mc,defaultCurrentTabStopId:uf,onCurrentTabStopIdChange:df,onEntryFocus:ff,preventScrollOnEntryFocus:hf=!1,...pf}=vo,mf=y$2.useRef(null),gf=Fe$2(Ai,mf),yf=ei(pc),[vf=null,bf]=Qn$2({prop:mc,defaultProp:uf,onChange:df}),[Sf,xf]=y$2.useState(!1),wf=at$2(ff),Hp=Jl(bo),If=y$2.useRef(!1),[Km,s1]=y$2.useState(0);return y$2.useEffect(()=>{const d1=mf.current;if(d1)return d1.addEventListener(Yo$1,wf),()=>d1.removeEventListener(Yo$1,wf)},[wf]),jsx(qb,{scope:bo,orientation:Ra,dir:yf,loop:hc,currentTabStopId:vf,onItemFocus:y$2.useCallback(d1=>bf(d1),[bf]),onItemShiftTab:y$2.useCallback(()=>xf(!0),[]),onFocusableItemAdd:y$2.useCallback(()=>s1(d1=>d1+1),[]),onFocusableItemRemove:y$2.useCallback(()=>s1(d1=>d1-1),[]),children:jsx(we$1.div,{tabIndex:Sf||Km===0?-1:0,"data-orientation":Ra,...pf,ref:gf,style:{outline:"none",...vo.style},onMouseDown:re$2(vo.onMouseDown,()=>{If.current=!0}),onFocus:re$2(vo.onFocus,d1=>{const O1=!If.current;if(d1.target===d1.currentTarget&&O1&&!Sf){const k1=new CustomEvent(Yo$1,jb);if(d1.currentTarget.dispatchEvent(k1),!k1.defaultPrevented){const _1=Hp().filter(f1=>f1.focusable),m1=_1.find(f1=>f1.active),R1=_1.find(f1=>f1.id===vf),c1=[m1,R1,..._1].filter(Boolean).map(f1=>f1.ref.current);ru(c1,hf)}}If.current=!1}),onBlur:re$2(vo.onBlur,()=>xf(!1))})})}),tu="RovingFocusGroupItem",nu=y$2.forwardRef((vo,Ai)=>{const{__scopeRovingFocusGroup:bo,focusable:Ra=!0,active:hc=!1,tabStopId:pc,...mc}=vo,uf=Ft$2(),df=pc||uf,ff=Xb(tu,bo),hf=ff.currentTabStopId===df,pf=Jl(bo),{onFocusableItemAdd:mf,onFocusableItemRemove:gf}=ff;return y$2.useEffect(()=>{if(Ra)return mf(),()=>gf()},[Ra,mf,gf]),jsx(Ea.ItemSlot,{scope:bo,id:df,focusable:Ra,active:hc,children:jsx(we$1.span,{tabIndex:hf?0:-1,"data-orientation":ff.orientation,...mc,ref:Ai,onMouseDown:re$2(vo.onMouseDown,yf=>{Ra?ff.onItemFocus(df):yf.preventDefault()}),onFocus:re$2(vo.onFocus,()=>ff.onItemFocus(df)),onKeyDown:re$2(vo.onKeyDown,yf=>{if(yf.key==="Tab"&&yf.shiftKey){ff.onItemShiftTab();return}if(yf.target!==yf.currentTarget)return;const vf=Jb(yf,ff.orientation,ff.dir);if(vf!==void 0){if(yf.metaKey||yf.ctrlKey||yf.altKey||yf.shiftKey)return;yf.preventDefault();let bf=pf().filter(Sf=>Sf.focusable).map(Sf=>Sf.ref.current);if(vf==="last")bf.reverse();else if(vf==="prev"||vf==="next"){vf==="prev"&&bf.reverse();const Sf=bf.indexOf(yf.currentTarget);bf=ff.loop?ey(bf,Sf+1):bf.slice(Sf+1)}setTimeout(()=>ru(bf))}})})})});nu.displayName=tu;var Zb={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Qb(vo,Ai){return Ai!=="rtl"?vo:vo==="ArrowLeft"?"ArrowRight":vo==="ArrowRight"?"ArrowLeft":vo}function Jb(vo,Ai,bo){const Ra=Qb(vo.key,bo);if(!(Ai==="vertical"&&["ArrowLeft","ArrowRight"].includes(Ra))&&!(Ai==="horizontal"&&["ArrowUp","ArrowDown"].includes(Ra)))return Zb[Ra]}function ru(vo,Ai=!1){const bo=document.activeElement;for(const Ra of vo)if(Ra===bo||(Ra.focus({preventScroll:Ai}),document.activeElement!==bo))return}function ey(vo,Ai){return vo.map((bo,Ra)=>vo[(Ai+Ra)%vo.length])}var ou=eu,au=nu,ty=function(vo){if(typeof document>"u")return null;var Ai=Array.isArray(vo)?vo[0]:vo;return Ai.ownerDocument.body},tn$1=new WeakMap,dr$1=new WeakMap,fr$2={},Go$1=0,iu=function(vo){return vo&&(vo.host||iu(vo.parentNode))},ny=function(vo,Ai){return Ai.map(function(bo){if(vo.contains(bo))return bo;var Ra=iu(bo);return Ra&&vo.contains(Ra)?Ra:(console.error("aria-hidden",bo,"in not contained inside",vo,". Doing nothing"),null)}).filter(function(bo){return!!bo})},ry=function(vo,Ai,bo,Ra){var hc=ny(Ai,Array.isArray(vo)?vo:[vo]);fr$2[bo]||(fr$2[bo]=new WeakMap);var pc=fr$2[bo],mc=[],uf=new Set,df=new Set(hc),ff=function(pf){!pf||uf.has(pf)||(uf.add(pf),ff(pf.parentNode))};hc.forEach(ff);var hf=function(pf){!pf||df.has(pf)||Array.prototype.forEach.call(pf.children,function(mf){if(uf.has(mf))hf(mf);else try{var gf=mf.getAttribute(Ra),yf=gf!==null&&gf!=="false",vf=(tn$1.get(mf)||0)+1,bf=(pc.get(mf)||0)+1;tn$1.set(mf,vf),pc.set(mf,bf),mc.push(mf),vf===1&&yf&&dr$1.set(mf,!0),bf===1&&mf.setAttribute(bo,"true"),yf||mf.setAttribute(Ra,"true")}catch(Sf){console.error("aria-hidden: cannot operate on ",mf,Sf)}})};return hf(Ai),uf.clear(),Go$1++,function(){mc.forEach(function(pf){var mf=tn$1.get(pf)-1,gf=pc.get(pf)-1;tn$1.set(pf,mf),pc.set(pf,gf),mf||(dr$1.has(pf)||pf.removeAttribute(Ra),dr$1.delete(pf)),gf||pf.removeAttribute(bo)}),Go$1--,Go$1||(tn$1=new WeakMap,tn$1=new WeakMap,dr$1=new WeakMap,fr$2={})}},su=function(vo,Ai,bo){bo===void 0&&(bo="data-aria-hidden");var Ra=Array.from(Array.isArray(vo)?vo:[vo]),hc=ty(vo);return hc?(Ra.push.apply(Ra,Array.from(hc.querySelectorAll("[aria-live]"))),ry(Ra,hc,bo,"aria-hidden")):function(){return null}},mt$2=function(){return mt$2=Object.assign||function(vo){for(var Ai,bo=1,Ra=arguments.length;bo<Ra;bo++){Ai=arguments[bo];for(var hc in Ai)Object.prototype.hasOwnProperty.call(Ai,hc)&&(vo[hc]=Ai[hc])}return vo},mt$2.apply(this,arguments)};function cu(vo,Ai){var bo={};for(var Ra in vo)Object.prototype.hasOwnProperty.call(vo,Ra)&&Ai.indexOf(Ra)<0&&(bo[Ra]=vo[Ra]);if(vo!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hc=0,Ra=Object.getOwnPropertySymbols(vo);hc<Ra.length;hc++)Ai.indexOf(Ra[hc])<0&&Object.prototype.propertyIsEnumerable.call(vo,Ra[hc])&&(bo[Ra[hc]]=vo[Ra[hc]]);return bo}function oy(vo,Ai,bo){for(var Ra=0,hc=Ai.length,pc;Ra<hc;Ra++)(pc||!(Ra in Ai))&&(pc||(pc=Array.prototype.slice.call(Ai,0,Ra)),pc[Ra]=Ai[Ra]);return vo.concat(pc||Array.prototype.slice.call(Ai))}var Cr$2="right-scroll-bar-position",Ir$2="width-before-scroll-bar",ay="with-scroll-bars-hidden",iy="--removed-body-scroll-bar-size";function qo$1(vo,Ai){return typeof vo=="function"?vo(Ai):vo&&(vo.current=Ai),vo}function sy(vo,Ai){var bo=useState(function(){return{value:vo,callback:Ai,facade:{get current(){return bo.value},set current(Ra){var hc=bo.value;hc!==Ra&&(bo.value=Ra,bo.callback(Ra,hc))}}}})[0];return bo.callback=Ai,bo.facade}var cy=typeof window<"u"?y$2.useLayoutEffect:y$2.useEffect,_s$1=new WeakMap;function ly(vo,Ai){var bo=sy(null,function(Ra){return vo.forEach(function(hc){return qo$1(hc,Ra)})});return cy(function(){var Ra=_s$1.get(bo);if(Ra){var hc=new Set(Ra),pc=new Set(vo),mc=bo.current;hc.forEach(function(uf){pc.has(uf)||qo$1(uf,null)}),pc.forEach(function(uf){hc.has(uf)||qo$1(uf,mc)})}_s$1.set(bo,vo)},[vo]),bo}function uy(vo){return vo}function dy(vo,Ai){Ai===void 0&&(Ai=uy);var bo=[],Ra=!1,hc={read:function(){if(Ra)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return bo.length?bo[bo.length-1]:vo},useMedium:function(pc){var mc=Ai(pc,Ra);return bo.push(mc),function(){bo=bo.filter(function(uf){return uf!==mc})}},assignSyncMedium:function(pc){for(Ra=!0;bo.length;){var mc=bo;bo=[],mc.forEach(pc)}bo={push:function(uf){return pc(uf)},filter:function(){return bo}}},assignMedium:function(pc){Ra=!0;var mc=[];if(bo.length){var uf=bo;bo=[],uf.forEach(pc),mc=bo}var df=function(){var hf=mc;mc=[],hf.forEach(pc)},ff=function(){return Promise.resolve().then(df)};ff(),bo={push:function(hf){mc.push(hf),ff()},filter:function(hf){return mc=mc.filter(hf),bo}}}};return hc}function fy(vo){vo===void 0&&(vo={});var Ai=dy(null);return Ai.options=mt$2({async:!0,ssr:!1},vo),Ai}var lu=function(vo){var Ai=vo.sideCar,bo=cu(vo,["sideCar"]);if(!Ai)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var Ra=Ai.read();if(!Ra)throw new Error("Sidecar medium not found");return y$2.createElement(Ra,mt$2({},bo))};lu.isSideCarExport=!0;function my(vo,Ai){return vo.useMedium(Ai),lu}var uu=fy(),Xo$1=function(){},lo$1=y$2.forwardRef(function(vo,Ai){var bo=y$2.useRef(null),Ra=y$2.useState({onScrollCapture:Xo$1,onWheelCapture:Xo$1,onTouchMoveCapture:Xo$1}),hc=Ra[0],pc=Ra[1],mc=vo.forwardProps,uf=vo.children,df=vo.className,ff=vo.removeScrollBar,hf=vo.enabled,pf=vo.shards,mf=vo.sideCar,gf=vo.noIsolation,yf=vo.inert,vf=vo.allowPinchZoom,bf=vo.as,Sf=bf===void 0?"div":bf,xf=vo.gapMode,wf=cu(vo,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),Hp=mf,If=ly([bo,Ai]),Km=mt$2(mt$2({},wf),hc);return y$2.createElement(y$2.Fragment,null,hf&&y$2.createElement(Hp,{sideCar:uu,removeScrollBar:ff,shards:pf,noIsolation:gf,inert:yf,setCallbacks:pc,allowPinchZoom:!!vf,lockRef:bo,gapMode:xf}),mc?y$2.cloneElement(y$2.Children.only(uf),mt$2(mt$2({},Km),{ref:If})):y$2.createElement(Sf,mt$2({},Km,{className:df,ref:If}),uf))});lo$1.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};lo$1.classNames={fullWidth:Ir$2,zeroRight:Cr$2};var py=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hy(){if(!document)return null;var vo=document.createElement("style");vo.type="text/css";var Ai=py();return Ai&&vo.setAttribute("nonce",Ai),vo}function gy(vo,Ai){vo.styleSheet?vo.styleSheet.cssText=Ai:vo.appendChild(document.createTextNode(Ai))}function vy(vo){var Ai=document.head||document.getElementsByTagName("head")[0];Ai.appendChild(vo)}var by=function(){var vo=0,Ai=null;return{add:function(bo){vo==0&&(Ai=hy())&&(gy(Ai,bo),vy(Ai)),vo++},remove:function(){vo--,!vo&&Ai&&(Ai.parentNode&&Ai.parentNode.removeChild(Ai),Ai=null)}}},yy=function(){var vo=by();return function(Ai,bo){y$2.useEffect(function(){return vo.add(Ai),function(){vo.remove()}},[Ai&&bo])}},du=function(){var vo=yy(),Ai=function(bo){var Ra=bo.styles,hc=bo.dynamic;return vo(Ra,hc),null};return Ai},wy={left:0,top:0,right:0,gap:0},Ko=function(vo){return parseInt(vo||"",10)||0},xy=function(vo){var Ai=window.getComputedStyle(document.body),bo=Ai[vo==="padding"?"paddingLeft":"marginLeft"],Ra=Ai[vo==="padding"?"paddingTop":"marginTop"],hc=Ai[vo==="padding"?"paddingRight":"marginRight"];return[Ko(bo),Ko(Ra),Ko(hc)]},Sy=function(vo){if(vo===void 0&&(vo="margin"),typeof window>"u")return wy;var Ai=xy(vo),bo=document.documentElement.clientWidth,Ra=window.innerWidth;return{left:Ai[0],top:Ai[1],right:Ai[2],gap:Math.max(0,Ra-bo+Ai[2]-Ai[0])}},Cy=du(),dn$1="data-scroll-locked",Iy=function(vo,Ai,bo,Ra){var hc=vo.left,pc=vo.top,mc=vo.right,uf=vo.gap;return bo===void 0&&(bo="margin"),`
|
|
15
15
|
.`.concat(ay,` {
|
|
16
16
|
overflow: hidden `).concat(Ra,`;
|
|
17
17
|
padding-right: `).concat(uf,"px ").concat(Ra,`;
|
|
@@ -376,5 +376,5 @@ ${vo}`)}return!1}function createDefaultRules(){let vo=["NoUnusedFragmentsRule","
|
|
|
376
376
|
"left editor"
|
|
377
377
|
"errors editor"
|
|
378
378
|
`,gridTemplateRows:"auto 1fr"},children:[jsxs("div",{className:"flex flex-col gap-2",style:{gridArea:"left"},children:[jsx(OperationForm,{operation:Ai,onAddOperationAndInitialSchema:pc,updateOperationName:mc,deleteOperation:uf,module:bo,allOperationNames:Ra}),jsx(OperationDescriptionForm,{operation:Ai,focusOnMount:Ai.id===hc,setOperationDescription:ff})]}),jsx("div",{className:"relative top-8",style:{gridArea:"editor"},children:jsx(GraphqlEditor,{doc:Ai.schema??"",updateDocumentInModel:gf,customLinter:yf})}),jsxs("div",{style:{gridArea:"errors"},children:[jsx("h3",{className:"my-2 text-sm font-medium text-gray-700",children:"Reducer Exceptions"}),jsx(OperationErrors,{operation:Ai,addOperationError:hf,deleteOperationError:pf,setOperationErrorName:mf})]})]})}function Operations({module:vo,allOperations:Ai,shouldFocusNewOperation:bo,updateOperationName:Ra,deleteOperation:hc,addOperationAndInitialSchema:pc,addOperationError:mc,deleteOperationError:uf,setOperationErrorName:df,updateOperationSchema:ff,setOperationDescription:hf}){const[pf,mf]=useState(null),gf=useId(),yf=Ai.map(bf=>bf.name).filter(Boolean),vf=useCallback(async(bf,Sf)=>{const xf=await pc(bf,Sf);return xf&&mf(xf),xf},[pc,mf]);return jsxs("div",{children:[vo.operations.map(bf=>jsx("div",{children:jsx(Operation,{operation:bf,module:vo,lastCreatedOperationId:pf,allOperationNames:yf,addOperationError:mc,deleteOperationError:uf,setOperationErrorName:df,onAddOperationAndInitialSchema:vf,updateOperationName:Ra,deleteOperation:hc,updateOperationSchema:ff,setOperationDescription:hf})},bf.id)),jsx("div",{className:"mt-6 w-1/2 pr-6",children:jsx(OperationForm,{onAddOperationAndInitialSchema:vf,updateOperationName:Ra,deleteOperation:hc,module:vo,allOperationNames:yf,focusOnMount:bo},gf)})]})}function Module(vo){const{module:Ai,modules:bo,allOperations:Ra,lastCreatedModuleId:hc,onAddModule:pc,updateModuleName:mc,deleteModule:uf,updateOperationName:df,deleteOperation:ff,addOperationAndInitialSchema:hf,updateOperationSchema:pf,setOperationDescription:mf,addOperationError:gf,deleteOperationError:yf,setOperationErrorName:vf}=vo;return jsxs("div",{className:"relative rounded-3xl bg-gray-100 p-6",children:[jsxs("div",{className:"mb-2 w-1/2 pr-6",children:[jsx(ModuleForm,{modules:bo,module:Ai,onAddModule:pc,updateModuleName:mc}),!!Ai&&jsx("button",{"aria-label":"Delete module",tabIndex:-1,className:"absolute right-1 top-1 p-2 text-gray-800 transition-colors hover:text-gray-500",onClick:()=>{uf(Ai.id)},children:jsx(_e$1,{name:"Xmark",size:32})})]}),!!Ai&&jsx(Operations,{module:Ai,allOperations:Ra,shouldFocusNewOperation:Ai.id===hc,updateOperationName:df,deleteOperation:ff,addOperationAndInitialSchema:hf,updateOperationSchema:pf,setOperationDescription:mf,addOperationError:gf,deleteOperationError:yf,setOperationErrorName:vf})]})}function Modules({modules:vo,allOperations:Ai,addModule:bo,updateModuleName:Ra,deleteModule:hc,updateOperationName:pc,deleteOperation:mc,addOperationAndInitialSchema:uf,updateOperationSchema:df,setOperationDescription:ff,addOperationError:hf,deleteOperationError:pf,setOperationErrorName:mf}){const[gf,yf]=useState(null),vf=useRef(null),bf=useCallback(async Sf=>{var xf;const wf=await bo(Sf);return wf&&(yf(wf),(xf=vf.current)==null||xf.focus()),wf},[bo,yf]);return jsxs("div",{className:"flex flex-col gap-2",children:[vo.map(Sf=>jsx(Module,{module:Sf,modules:vo,allOperations:Ai,lastCreatedModuleId:gf,onAddModule:bf,updateModuleName:Ra,deleteModule:hc,updateOperationName:pc,deleteOperation:mc,addOperationAndInitialSchema:uf,updateOperationSchema:df,setOperationDescription:ff,addOperationError:hf,deleteOperationError:pf,setOperationErrorName:mf},Sf.id)),jsx(Module,{modules:vo,allOperations:Ai,lastCreatedModuleId:gf,onAddModule:bf,updateModuleName:Ra,deleteModule:hc,updateOperationName:pc,deleteOperation:mc,addOperationAndInitialSchema:uf,updateOperationSchema:df,setOperationDescription:ff,addOperationError:hf,deleteOperationError:pf,setOperationErrorName:mf},"add-module"),jsx("div",{ref:vf,tabIndex:0,className:"size-0 overflow-hidden","aria-hidden":"true"})]})}const Tabs=QC,TabsList=y$2.forwardRef(({className:vo,...Ai},bo)=>jsx(JC,{ref:bo,className:cn("flex items-center justify-center rounded-xl bg-slate-50 p-1 shadow-[inset_0px_0px_2px_rgba(255,255,255,0.50)]",vo),...Ai}));TabsList.displayName=JC.displayName;const TabsTrigger=y$2.forwardRef(({className:vo,...Ai},bo)=>jsx(eI,{ref:bo,className:cn("flex w-full items-center justify-center whitespace-nowrap rounded-lg p-1 text-sm text-gray-500 transition-all disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-gray-50 data-[state=active]:text-gray-800 data-[state=active]:shadow-[0px_16px_16px_-4px_rgba(0,0,0,0.10)]",vo),...Ai}));TabsTrigger.displayName=eI.displayName;const TabsContent=y$2.forwardRef(({className:vo,...Ai},bo)=>jsx(ia,{ref:bo,className:cn("",vo),...Ai}));TabsContent.displayName=ia.displayName;const Button=forwardRef((vo,Ai)=>{const{className:bo,...Ra}=vo;return jsx("button",{ref:Ai,...Ra,className:cn("h-10 whitespace-nowrap rounded-md border border-gray-200 bg-gray-50 px-4 py-2 text-sm font-medium text-gray-800 transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",bo)})});function StateEditor({modelName:vo,stateSchema:Ai,initialValue:bo,setStateSchema:Ra,setInitialState:hc,scope:pc}){const mc=useSchemaContext(),[uf,df]=useState(!1),ff=useCallback(yf=>ensureValidStateSchemaName(yf,vo,pc),[vo,pc]),hf=useCallback(()=>{df(yf=>!yf)},[]),pf=useCallback(yf=>Ra(yf,pc),[Ra,pc]),mf=useCallback(yf=>hc(yf,pc),[hc,pc]),gf=useCallback(()=>{const yf=makeMinimalObjectFromSDL(mc,Ai,bo?JSON.parse(bo):{});hc(yf,pc)},[mc,Ai,bo,hc,pc]);return jsxs("div",{className:"grid grid-cols-2 gap-4",children:[jsxs("div",{children:[jsxs("h3",{className:"mb-2 text-lg capitalize",children:[pc," state schema"]}),jsxs(Button,{onClick:hf,className:"mb-2 flex w-fit items-center gap-2",children:[uf?"Hide":"Show"," standard library",jsx("svg",{className:cn("inline-block transition-transform",uf?"rotate-180":"rotate-0"),xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:jsx("path",{d:"M11.9883 6.01172C11.4363 6.01172 10.9883 6.45972 10.9883 7.01172V13.0117H6.98828L11.9883 18.0117L16.9883 13.0117H12.9883V7.01172C12.9883 6.45972 12.5403 6.01172 11.9883 6.01172Z",fill:"black"})})]}),uf&&jsx(GraphqlEditor,{doc:typeDefsDoc,readonly:!0}),jsx(GraphqlEditor,{doc:Ai,updateDocumentInModel:pf,customLinter:ff})]}),jsxs("div",{children:[jsxs("div",{className:"flex flex-col items-end",children:[jsxs("h3",{className:"mb-2 text-right text-lg capitalize",children:[pc," state initial value"]}),jsxs(Button,{onClick:gf,className:"mb-2 flex w-fit items-center gap-2",children:["Sync with schema"," ",jsx("svg",{className:"inline-block",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:jsx("path",{d:"M8.00521 1.99219C6.63588 1.99219 5.32788 2.45152 4.27588 3.28419C3.98721 3.51219 3.94321 3.93285 4.17188 4.22151C4.40054 4.51018 4.82055 4.55418 5.10921 4.32552C5.92721 3.67819 6.93921 3.32552 8.00521 3.32552C10.5825 3.32552 12.6719 5.41485 12.6719 7.99218H11.3385L13.3385 10.6588L15.3385 7.99218H14.0052C14.0052 4.67818 11.3192 1.99219 8.00521 1.99219ZM2.67188 5.32552L0.671875 7.99218H2.00521C2.00521 11.3062 4.69121 13.9922 8.00521 13.9922C9.37521 13.9922 10.6825 13.5335 11.7345 12.7002C12.0232 12.4722 12.0672 12.0515 11.8385 11.7628C11.6099 11.4742 11.1899 11.4302 10.9012 11.6588C10.0825 12.3068 9.07188 12.6588 8.00521 12.6588C5.42788 12.6588 3.33854 10.5695 3.33854 7.99218H4.67188L2.67188 5.32552Z",fill:"#343839"})})]})]}),jsx(JSONEditor,{doc:bo,updateDocumentInModel:mf})]})]})}function StateSchemas({modelName:vo,globalStateSchema:Ai,localStateSchema:bo,globalStateInitialValue:Ra,localStateInitialValue:hc,setStateSchema:pc,setInitialState:mc}){const uf=useCallback(()=>{const df=makeInitialSchemaDoc(vo,"local");pc(df,"local"),mc("","local")},[vo,pc,mc]);return jsxs(Tabs,{className:"pb-8",activationMode:"manual",defaultValue:"global",children:[jsx("div",{className:"my-6",children:jsxs(TabsList,{className:"mx-auto flex max-w-sm",children:[jsx(TabsTrigger,{value:"global",children:"Global"}),jsx(TabsTrigger,{value:"local",children:"Local"})]})}),jsx(TabsContent,{value:"global",tabIndex:-1,children:jsx(StateEditor,{modelName:vo,stateSchema:Ai,initialValue:Ra,setStateSchema:pc,setInitialState:mc,scope:"global"})}),jsx(TabsContent,{value:"local",tabIndex:-1,children:bo?jsx(StateEditor,{modelName:vo,stateSchema:bo,initialValue:hc,setStateSchema:pc,setInitialState:mc,scope:"local"}):jsxs("div",{className:"",children:[jsx("h3",{className:"mb-2 text-lg capitalize",children:"local state schema"}),jsx(Button,{onClick:uf,children:"Add local state"})]})})]})}function Editor(vo){const{document:Ai,documentNodeName:bo,dispatch:Ra}=vo,{name:hc,id:pc,extension:mc,description:uf,author:{name:df,website:ff}}=useMemo(()=>Ai.state.global,[Ai.state.global]),{state:{global:{schema:hf,initialValue:pf},local:{schema:mf,initialValue:gf}},modules:yf}=useMemo(()=>Ai.state.global.specifications[0],[Ai.state.global.specifications[0]]),vf=useMemo(()=>yf.flatMap(T1=>T1.operations),[yf]),bf=useRef(!hc&&!!bo&&vf.length===0);useEffect(()=>{!bf.current||!bo||(Ra(actions.setModelName({name:bo})),initializeModelSchema({modelName:bo,setStateSchema:(T1,M1)=>{Ra(actions.setStateSchema({schema:T1,scope:M1}))}}),bf.current=!1)},[bo]);const Sf=useMemo(()=>vf.flatMap(T1=>T1.schema??[]).join(`
|
|
379
|
-
`),[vf]),xf=useCallback(T1=>{compareStringsWithoutWhitespace(T1,pc)||Ra(actions.setModelId({id:T1}))},[pc]),wf=useCallback(T1=>{compareStringsWithoutWhitespace(T1,uf)||Ra(actions.setModelDescription({description:T1}))},[uf]),Hp=useCallback(T1=>{compareStringsWithoutWhitespace(T1,mc)||Ra(actions.setModelExtension({extension:T1}))},[mc]),If=useCallback(T1=>{compareStringsWithoutWhitespace(T1,hc)||Ra(actions.setModelName({name:T1}))},[hc]),Km=useCallback(T1=>{compareStringsWithoutWhitespace(T1,df)||Ra(actions.setAuthorName({authorName:T1}))},[df]),s1=useCallback(T1=>{compareStringsWithoutWhitespace(T1,ff??"")||Ra(actions.setAuthorWebsite({authorWebsite:T1}))},[ff]),d1=useCallback((T1,M1)=>{compareStringsWithoutWhitespace(T1,M1==="global"?hf:mf)||Ra(actions.setStateSchema({schema:T1,scope:M1}))},[hf,mf]),O1=useCallback((T1,M1)=>{compareStringsWithoutWhitespace(T1,M1==="global"?pf:gf)||Ra(actions.setInitialState({initialValue:T1,scope:M1}))},[pf,gf]),k1=useCallback(T1=>new Promise(M1=>{try{if(yf.some(U1=>compareStringsWithoutWhitespace(U1.name,T1))){M1(void 0);return}const P1=index.hashKey();Ra(actions.addModule({id:P1,name:T1})),M1(P1)}catch(P1){console.error("Failed to add module:",P1),M1(void 0)}}),[yf]),_1=useCallback((T1,M1)=>{yf.some(P1=>compareStringsWithoutWhitespace(P1.name,M1))||Ra(actions.setModuleName({id:T1,name:M1}))},[yf]),m1=useCallback(T1=>Ra(actions.deleteModule({id:T1})),[]),R1=useCallback((T1,M1)=>new Promise(P1=>{var U1;try{if((((U1=yf.find(H1=>H1.id===T1))==null?void 0:U1.operations.map(H1=>H1.name).filter(Boolean))??[]).some(H1=>compareStringsWithoutWhitespace(H1,M1))){P1(void 0);return}const Z1=index.hashKey();Ra(actions.addOperation({id:Z1,moduleId:T1,name:M1})),P1(Z1)}catch(Z1){console.error("Failed to add operation:",Z1),P1(void 0)}}),[yf]),c1=useCallback((T1,M1)=>{const P1=yf.find(U1=>U1.operations.some(Z1=>Z1.id===T1));((P1==null?void 0:P1.operations.map(U1=>U1.name).filter(Boolean))??[]).some(U1=>compareStringsWithoutWhitespace(U1,M1))||Ra(actions.setOperationName({id:T1,name:M1}))},[yf]),f1=useCallback((T1,M1)=>{const P1=vf.find(U1=>U1.id===T1);P1!=null&&P1.schema&&compareStringsWithoutWhitespace(M1,P1.schema)||Ra(actions.setOperationSchema({id:T1,schema:M1}))},[vf]),E1=useCallback((T1,M1)=>{var P1;const U1=((P1=vf.find(Z1=>Z1.id===T1))==null?void 0:P1.description)??"";compareStringsWithoutWhitespace(U1,M1)||Ra(actions.setOperationDescription({id:T1,description:M1}))},[vf]),D1=useCallback(T1=>Ra(actions.deleteOperation({id:T1})),[]),j1=useCallback((T1,M1)=>new Promise(P1=>{try{const U1=vf.find(H1=>H1.id===T1);if(((U1==null?void 0:U1.errors.map(H1=>H1.name).filter(Boolean))??[]).some(H1=>compareStringsWithoutWhitespace(H1,M1))){P1(void 0);return}const Z1=index.hashKey();Ra(actions.addOperationError({id:Z1,operationId:T1,errorName:M1})),P1(Z1)}catch(U1){console.error("Failed to add operation error:",U1),P1(void 0)}}),[vf]),F1=useCallback(T1=>Ra(actions.deleteOperationError({id:T1})),[]),G1=useCallback((T1,M1,P1)=>{const U1=vf.find(Z1=>Z1.id===T1);((U1==null?void 0:U1.errors.map(Z1=>Z1.name).filter(Boolean))??[]).some(Z1=>compareStringsWithoutWhitespace(Z1,P1))||Ra(actions.setOperationErrorName({id:M1,errorName:P1}))},[vf]),q1=useCallback(async(T1,M1)=>{try{const P1=await R1(T1,M1);if(!P1)return;try{return f1(P1,makeOperationInitialDoc(M1)),P1}catch(U1){console.error("Failed to update operation schema:",U1);return}}catch(P1){console.error("Failed to add operation and schema:",P1);return}},[R1,f1]);return jsx("main",{className:"min-h-dvh bg-gray-50",children:jsx(SchemaContextProvider,{globalStateSchemaSdl:hf,localStateSchemaSdl:mf,operationSchemasSdl:Sf,children:jsxs("div",{className:"mx-auto max-w-6xl px-4 pt-8",children:[jsx(ModelMetadata,{name:hc,documentType:pc,extension:mc,description:uf,authorName:df,authorWebsite:ff??"",globalStateSchema:hf,localStateSchema:mf,setModelId:xf,setModelDescription:wf,setModelExtension:Hp,setModelName:If,setAuthorName:Km,setAuthorWebsite:s1,setStateSchema:d1}),jsx(Divider,{}),jsxs("div",{children:[jsx(StateSchemas,{modelName:hc,globalStateSchema:hf,globalStateInitialValue:pf,localStateSchema:mf,localStateInitialValue:gf,setStateSchema:d1,setInitialState:O1}),jsx(Divider,{}),jsx("h3",{className:"mb-6 text-lg",children:"Global Operations"}),jsx(Modules,{modules:yf,allOperations:vf,addModule:k1,updateModuleName:_1,deleteModule:m1,updateOperationName:c1,updateOperationSchema:f1,setOperationDescription:E1,deleteOperation:D1,addOperationError:j1,deleteOperationError:F1,setOperationErrorName:G1,addOperationAndInitialSchema:q1})]})]})})})}const editor=Object.freeze(Object.defineProperty({__proto__:null,default:Editor},Symbol.toStringTag,{value:"Module"})),m$1={Component:P$4.lazyWithPreload(()=>__vitePreload(()=>import("./editor-
|
|
380
|
-
//# sourceMappingURL=editors-
|
|
379
|
+
`),[vf]),xf=useCallback(T1=>{compareStringsWithoutWhitespace(T1,pc)||Ra(actions.setModelId({id:T1}))},[pc]),wf=useCallback(T1=>{compareStringsWithoutWhitespace(T1,uf)||Ra(actions.setModelDescription({description:T1}))},[uf]),Hp=useCallback(T1=>{compareStringsWithoutWhitespace(T1,mc)||Ra(actions.setModelExtension({extension:T1}))},[mc]),If=useCallback(T1=>{compareStringsWithoutWhitespace(T1,hc)||Ra(actions.setModelName({name:T1}))},[hc]),Km=useCallback(T1=>{compareStringsWithoutWhitespace(T1,df)||Ra(actions.setAuthorName({authorName:T1}))},[df]),s1=useCallback(T1=>{compareStringsWithoutWhitespace(T1,ff??"")||Ra(actions.setAuthorWebsite({authorWebsite:T1}))},[ff]),d1=useCallback((T1,M1)=>{compareStringsWithoutWhitespace(T1,M1==="global"?hf:mf)||Ra(actions.setStateSchema({schema:T1,scope:M1}))},[hf,mf]),O1=useCallback((T1,M1)=>{compareStringsWithoutWhitespace(T1,M1==="global"?pf:gf)||Ra(actions.setInitialState({initialValue:T1,scope:M1}))},[pf,gf]),k1=useCallback(T1=>new Promise(M1=>{try{if(yf.some(U1=>compareStringsWithoutWhitespace(U1.name,T1))){M1(void 0);return}const P1=index.hashKey();Ra(actions.addModule({id:P1,name:T1})),M1(P1)}catch(P1){console.error("Failed to add module:",P1),M1(void 0)}}),[yf]),_1=useCallback((T1,M1)=>{yf.some(P1=>compareStringsWithoutWhitespace(P1.name,M1))||Ra(actions.setModuleName({id:T1,name:M1}))},[yf]),m1=useCallback(T1=>Ra(actions.deleteModule({id:T1})),[]),R1=useCallback((T1,M1)=>new Promise(P1=>{var U1;try{if((((U1=yf.find(H1=>H1.id===T1))==null?void 0:U1.operations.map(H1=>H1.name).filter(Boolean))??[]).some(H1=>compareStringsWithoutWhitespace(H1,M1))){P1(void 0);return}const Z1=index.hashKey();Ra(actions.addOperation({id:Z1,moduleId:T1,name:M1})),P1(Z1)}catch(Z1){console.error("Failed to add operation:",Z1),P1(void 0)}}),[yf]),c1=useCallback((T1,M1)=>{const P1=yf.find(U1=>U1.operations.some(Z1=>Z1.id===T1));((P1==null?void 0:P1.operations.map(U1=>U1.name).filter(Boolean))??[]).some(U1=>compareStringsWithoutWhitespace(U1,M1))||Ra(actions.setOperationName({id:T1,name:M1}))},[yf]),f1=useCallback((T1,M1)=>{const P1=vf.find(U1=>U1.id===T1);P1!=null&&P1.schema&&compareStringsWithoutWhitespace(M1,P1.schema)||Ra(actions.setOperationSchema({id:T1,schema:M1}))},[vf]),E1=useCallback((T1,M1)=>{var P1;const U1=((P1=vf.find(Z1=>Z1.id===T1))==null?void 0:P1.description)??"";compareStringsWithoutWhitespace(U1,M1)||Ra(actions.setOperationDescription({id:T1,description:M1}))},[vf]),D1=useCallback(T1=>Ra(actions.deleteOperation({id:T1})),[]),j1=useCallback((T1,M1)=>new Promise(P1=>{try{const U1=vf.find(H1=>H1.id===T1);if(((U1==null?void 0:U1.errors.map(H1=>H1.name).filter(Boolean))??[]).some(H1=>compareStringsWithoutWhitespace(H1,M1))){P1(void 0);return}const Z1=index.hashKey();Ra(actions.addOperationError({id:Z1,operationId:T1,errorName:M1})),P1(Z1)}catch(U1){console.error("Failed to add operation error:",U1),P1(void 0)}}),[vf]),F1=useCallback(T1=>Ra(actions.deleteOperationError({id:T1})),[]),G1=useCallback((T1,M1,P1)=>{const U1=vf.find(Z1=>Z1.id===T1);((U1==null?void 0:U1.errors.map(Z1=>Z1.name).filter(Boolean))??[]).some(Z1=>compareStringsWithoutWhitespace(Z1,P1))||Ra(actions.setOperationErrorName({id:M1,errorName:P1}))},[vf]),q1=useCallback(async(T1,M1)=>{try{const P1=await R1(T1,M1);if(!P1)return;try{return f1(P1,makeOperationInitialDoc(M1)),P1}catch(U1){console.error("Failed to update operation schema:",U1);return}}catch(P1){console.error("Failed to add operation and schema:",P1);return}},[R1,f1]);return jsx("main",{className:"min-h-dvh bg-gray-50",children:jsx(SchemaContextProvider,{globalStateSchemaSdl:hf,localStateSchemaSdl:mf,operationSchemasSdl:Sf,children:jsxs("div",{className:"mx-auto max-w-6xl px-4 pt-8",children:[jsx(ModelMetadata,{name:hc,documentType:pc,extension:mc,description:uf,authorName:df,authorWebsite:ff??"",globalStateSchema:hf,localStateSchema:mf,setModelId:xf,setModelDescription:wf,setModelExtension:Hp,setModelName:If,setAuthorName:Km,setAuthorWebsite:s1,setStateSchema:d1}),jsx(Divider,{}),jsxs("div",{children:[jsx(StateSchemas,{modelName:hc,globalStateSchema:hf,globalStateInitialValue:pf,localStateSchema:mf,localStateInitialValue:gf,setStateSchema:d1,setInitialState:O1}),jsx(Divider,{}),jsx("h3",{className:"mb-6 text-lg",children:"Global Operations"}),jsx(Modules,{modules:yf,allOperations:vf,addModule:k1,updateModuleName:_1,deleteModule:m1,updateOperationName:c1,updateOperationSchema:f1,setOperationDescription:E1,deleteOperation:D1,addOperationError:j1,deleteOperationError:F1,setOperationErrorName:G1,addOperationAndInitialSchema:q1})]})]})})})}const editor=Object.freeze(Object.defineProperty({__proto__:null,default:Editor},Symbol.toStringTag,{value:"Module"})),m$1={Component:P$4.lazyWithPreload(()=>__vitePreload(()=>import("./editor-DU-lQtwD.js"),__vite__mapDeps([0,1,2,3,4]))),documentTypes:["*"],config:{id:"json-editor",disableExternalControls:!1}},p={Component:P$4.lazyWithPreload(()=>__vitePreload(()=>import("./editor-DsJju1GR.js"),__vite__mapDeps([5,2,1,3,4]))),documentTypes:["powerhouse/budget-statement"],config:{id:"budget-statement-editor",disableExternalControls:!1}},i={Component:P$4.lazyWithPreload(()=>__vitePreload(()=>import("./editor-BvunQMK4.js"),__vite__mapDeps([6,2,1,3,4]))),documentTypes:["makerdao/scope-framework"],config:{id:"scope-framework-editor",disableExternalControls:!1}},m={Component:P$4.lazyWithPreload(()=>__vitePreload(()=>import("./editor-7J_sXwzQ.js"),__vite__mapDeps([7,2,1,3,4]))),documentTypes:["makerdao/rwa-portfolio"],config:{id:"rwa-editor",disableExternalControls:!0}},e={Component:I1,documentTypes:["powerhouse/chat-room"],config:{id:"chatroom-editor",disableExternalControls:!0,documentToolbarEnabled:!0,showSwitchboardLink:!0}},editors=Object.freeze(Object.defineProperty({__proto__:null,BudgetStatement:p,ChatRoomEditor:e,DocumentModel2:module,Json:m$1,RealWorldAssets:m,ScopeFramework:i},Symbol.toStringTag,{value:"Module"}));export{C1 as C,DocumentEditor as D,EditorToolbar as E,Md as M,Od as O,P$4 as P,ToolbarButton as T,YS as Y,EditorWorksheet as a,TextInput as b,TextInputVariant as c,editors as e,x1 as x};
|
|
380
|
+
//# sourceMappingURL=editors-C0ROY17i.js.map
|