diff --git a/assets/app-worker-3yGJs4_E.js b/assets/app-worker-BlT4ypWj.js similarity index 99% rename from assets/app-worker-3yGJs4_E.js rename to assets/app-worker-BlT4ypWj.js index a5f7887..72fb84d 100644 --- a/assets/app-worker-3yGJs4_E.js +++ b/assets/app-worker-BlT4ypWj.js @@ -1,4 +1,4 @@ -var kn=Object.defineProperty;var Sn=(Ee,ke,Ae)=>ke in Ee?kn(Ee,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):Ee[ke]=Ae;var xr=(Ee,ke,Ae)=>(Sn(Ee,typeof ke!="symbol"?ke+"":ke,Ae),Ae);(function(){"use strict";function Ee(G,st){return new Error(`${st}: ${G}`)}function ke(G){return typeof G=="string"}function Ae(G){return typeof G=="number"}function kr(G){return typeof G=="object"&&G!==null}function Sr(G){return Array.isArray(G)}function nr(G){return kr(G)&&!Sr(G)}function Tr(G,st,s){return{handleRequest(T){return Promise.resolve(G[T.type](T))},handleInfo:st,castError:s}}class Mr{constructor(st,s){this.id=st,this.logic=s}async handleActorMessage(st,s,T){switch(st.type){case"error":case"success":break;case"request":{if(st.handlerId!==this.id)return;try{const _=await this.logic.handleRequest(st.request);_!==void 0&&T({requestId:st.id,type:"success",result:_})}catch(_){T({requestId:st.id,type:"error",error:this.logic.castError(_)})}break}case"loaded":this.logic.handleInfo(st,s);break;default:throw Ee(st,`Unknown message type: ${st}`)}}start(){this.listen(),this.broadcast({type:"loaded",id:this.id})}}function Cr(){}class Er extends Mr{constructor(){super(...arguments);xr(this,"handleMessageEvent",s=>{this.handleActorMessage(s.data,s.source,this.broadcast)})}broadcast(s){postMessage(s)}listen(){addEventListener("message",this.handleMessageEvent)}stop(){removeEventListener("message",this.handleMessageEvent)}}const ve=(G,st)=>Array.from(new Array(G),(s,T)=>st(T));function ir(G,st,s){return ve(G,()=>ve(st,s))}function Ar(G){return G[0].map((st,s)=>G.map(T=>T[s]))}function Rr(G){return G.map(st=>st.slice().reverse())}function Or(G){return G.slice().reverse()}const jr=Symbol("undefined cell");function Ke({height:G,width:st,rows:s},T){const _=ir(G,st,()=>jr);for(let p=0;p({cells:[],columns:[]}));for(let a=0;a(G.HTML="HTML",G.XLSX="XLSX",G.ASCII="ASCII",G))(Fe||{});const Ir="app-worker";function Nr(G){switch(G.preset){case"Default":return{collapseIndexes:!0,joinPrimitiveArrayValues:!0,combineArraysOfObjects:!1,proportionalSizeAdjustmentThreshold:1,stabilizeOrderOfPropertiesInArraysOfObjects:!0,cornerCellValue:"№"};case"Manual":{const{collapseIndexes:st,joinPrimitiveArrayValues:s,combineArraysOfObjects:T,stabilizeOrderOfPropertiesInArraysOfObjects:_,proportionalSizeAdjustmentThreshold:p,cornerCellValue:o}=G;return{collapseIndexes:st,joinPrimitiveArrayValues:s,combineArraysOfObjects:T,stabilizeOrderOfPropertiesInArraysOfObjects:_,proportionalSizeAdjustmentThreshold:p,cornerCellValue:o??""}}default:{const st=G;throw new Error(`Unexpected preset "${JSON.stringify(st)}"`)}}}function Pr(G){return st=>{if(!G.transform)return st;let s=Ke(st,({type:T,value:_})=>({type:T,value:_}));return G.horizontalReflect&&(s=Rr(s)),G.verticalReflect&&(s=Or(s)),G.transpose&&(s=Ar(s)),sr(s,({type:T})=>T,({value:T})=>T)}}var or=(G=>(G.CreateTable="create-table",G))(or||{}),we=(G=>(G.Header="header",G.Index="index",G.Value="value",G.Corner="corner",G))(we||{});const Br={height:"width",width:"height"},Dr={head:"height",indexes:"width"},ar={head:"indexes",indexes:"head"};function Ze(G){return{head:null,indexes:null,body:{height:1,width:1,rows:[{cells:[{height:1,width:1,value:G,type:"value"}],columns:[0]}]}}}function Fr(G){return(st,s)=>(st-s)/s<=G}function Oe(G,st){return G.map(s=>s+st)}function Lr(G,st){return{cells:[st].concat(G.cells),columns:[0].concat(Oe(G.columns,st.width))}}function zr(G,st){return G.map(s=>({cells:s.cells,columns:Oe(s.columns,st)}))}function Ur(G,st,s){return{cells:G.cells.concat(s.cells),columns:G.columns.concat(Oe(s.columns,st))}}function $r(G,st,s){const T=ve(s,()=>({cells:[],columns:[]}));for(let _=0;_({cells:s.cells.map(T=>({...T,width:T.width*st})),columns:s.columns.map(T=>T*st)}))}const Ye=(G,st)=>G+st,je=(G,st)=>G>st?G:st,lr=(G,st)=>G?lr(st%G,G):st,Le=(G,st)=>G*st/lr(G,st);function Vr({blocks:G,lcmWidth:st,lcmHeight:s}){const T=G.map(_=>{const p=st/_.width,o=s/_.height,a=ve(s,()=>new Array(st));for(let r=0;r<_.rows.length;r++){const{cells:t,columns:e}=_.rows[r];for(let l=0;l0),_=new Array(s);for(let o=0;o{const o=Math.floor(st/p[G]),a={[G]:st,[s]:p[s],rows:o===1?p.rows:T(p.rows,o,st)};return st-p[G]*o===0?a:_(a)}}function Zr(G){return function(s){let T=s[0].width,_=T;for(let r=1;r{let s=st[0].height,T=s;for(let r=1;r({cells:[],columns:[]}));let a=0;for(let r=0;r{if(!G&&!st)return T;const o=G&&_!==null,a=st&&p!==null,r=a?p.rows.map((i,u)=>Ur(i,p.width,T.rows[u])):T.rows,t=T.width+(a?p.width:0);if(!o)return{height:T.height,width:t,rows:r};const e=T.height+_.height;if(!a)return{height:e,width:t,rows:_.rows.concat(r)};const l=_.rows[0],n=[Lr(l,{height:_.height,width:p.width,value:s,type:we.Corner}),...zr(_.rows.slice(1),p.width),...r];return{height:e,width:t,rows:n}}}function Jr(G,st,s,T,_){const p=[];for(let o=0;o({cells:[],columns:[]})),...r.rows]});break;case"head":p.push({height:r.height,width:r.width+t.width,rows:[{cells:[{height:r.height,width:t.width,value:T,type:we.Corner},...r.rows[0].cells],columns:[0,...Oe(r.rows[0].columns,t.width)]},...r.rows.slice(1)]});break;default:throw new Error(`Unknown table component: ${st}`)}}return _(p)}const Qr={head:Zr,indexes:Yr};function hr({deduplicationComponent:G,isProportionalResize:st,cornerCellValue:s}){const T=Qr[G](st),_=ar[G];return p=>{const o=Gr(p,G,st),a=o===null,r=Jr(p,_,a,s,T),t=p.map(ur({[G]:a,[_]:r===null,cornerCellValue:s})),e=T(t),l=Dr[_],n=o&&Ge(l,e[l])(o);return{body:e,baked:t,[G]:n,[_]:r}}}function tn(G){let st=0;for(let s=0;s0?G.padStart(_+G.length):G).padEnd(st)}default:return T.length===1&&!isNaN(Number(G))?G.padStart(st):G.padEnd(st)}}var fr=(G=>(G.MySQL="MySql",G.MarkdownLike="Markdown Like",G))(fr||{});Object.values(fr);function dr(G,st,s,T){for(let _=0;_{const i=(typeof t.value=="string"?t.value:JSON.stringify(t.value,null,2)).split(` +var kn=Object.defineProperty;var Sn=(Ee,ke,Ae)=>ke in Ee?kn(Ee,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):Ee[ke]=Ae;var xr=(Ee,ke,Ae)=>(Sn(Ee,typeof ke!="symbol"?ke+"":ke,Ae),Ae);(function(){"use strict";function Ee(G,st){return new Error(`${st}: ${G}`)}function ke(G){return typeof G=="string"}function Ae(G){return typeof G=="number"}function kr(G){return typeof G=="object"&&G!==null}function Sr(G){return Array.isArray(G)}function nr(G){return kr(G)&&!Sr(G)}function Tr(G,st,s){return{handleRequest(T){return Promise.resolve(G[T.type](T))},handleInfo:st,castError:s}}class Mr{constructor(st,s){this.id=st,this.logic=s}async handleActorMessage(st,s,T){switch(st.type){case"error":case"success":break;case"request":{if(st.handlerId!==this.id)return;try{const _=await this.logic.handleRequest(st.request);_!==void 0&&T({requestId:st.id,type:"success",result:_})}catch(_){T({requestId:st.id,type:"error",error:this.logic.castError(_)})}break}case"loaded":this.logic.handleInfo(st,s);break;default:throw Ee(st,`Unknown message type: ${st}`)}}start(){this.listen(),this.broadcast({type:"loaded",id:this.id})}}function Cr(){}class Er extends Mr{constructor(){super(...arguments);xr(this,"handleMessageEvent",s=>{this.handleActorMessage(s.data,s.source,this.broadcast)})}broadcast(s){postMessage(s)}listen(){addEventListener("message",this.handleMessageEvent)}stop(){removeEventListener("message",this.handleMessageEvent)}}const ve=(G,st)=>Array.from(new Array(G),(s,T)=>st(T));function ir(G,st,s){return ve(G,()=>ve(st,s))}function Ar(G){return G[0].map((st,s)=>G.map(T=>T[s]))}function Rr(G){return G.map(st=>st.slice().reverse())}function Or(G){return G.slice().reverse()}const jr=Symbol("undefined cell");function Ke({height:G,width:st,rows:s},T){const _=ir(G,st,()=>jr);for(let p=0;p({cells:[],columns:[]}));for(let a=0;a(G.HTML="HTML",G.XLSX="XLSX",G.ASCII="ASCII",G))(Fe||{});const Ir="app-worker";function Nr(G){switch(G.preset){case"Default":return{collapseIndexes:!0,joinPrimitiveArrayValues:!0,combineArraysOfObjects:!1,proportionalSizeAdjustmentThreshold:1,stabilizeOrderOfPropertiesInArraysOfObjects:!0,cornerCellValue:"№"};case"Manual":{const{collapseIndexes:st,joinPrimitiveArrayValues:s,combineArraysOfObjects:T,stabilizeOrderOfPropertiesInArraysOfObjects:_,proportionalSizeAdjustmentThreshold:p,cornerCellValue:o}=G;return{collapseIndexes:st,joinPrimitiveArrayValues:s,combineArraysOfObjects:T,stabilizeOrderOfPropertiesInArraysOfObjects:_,proportionalSizeAdjustmentThreshold:p,cornerCellValue:o??""}}default:{const st=G;throw new Error(`Unexpected preset "${JSON.stringify(st)}"`)}}}function Pr(G){return st=>{if(!G.transform)return st;let s=Ke(st,({type:T,value:_})=>({type:T,value:_}));return G.horizontalReflect&&(s=Rr(s)),G.verticalReflect&&(s=Or(s)),G.transpose&&(s=Ar(s)),sr(s,({type:T})=>T,({value:T})=>T)}}var or=(G=>(G.CreateTable="create-table",G))(or||{}),we=(G=>(G.Header="header",G.Index="index",G.Value="value",G.Corner="corner",G))(we||{});const Br={height:"width",width:"height"},Dr={head:"height",indexes:"width"},ar={head:"indexes",indexes:"head"};function Ze(G){return{head:null,indexes:null,body:{height:1,width:1,rows:[{cells:[{height:1,width:1,value:G,type:"value"}],columns:[0]}]}}}function Fr(G){return(st,s)=>(st-s)/s<=G}function Oe(G,st){return G.map(s=>s+st)}function Lr(G,st){return{cells:[st].concat(G.cells),columns:[0].concat(Oe(G.columns,st.width))}}function zr(G,st){return G.map(s=>({cells:s.cells,columns:Oe(s.columns,st)}))}function Ur(G,st,s){return{cells:G.cells.concat(s.cells),columns:G.columns.concat(Oe(s.columns,st))}}function $r(G,st,s){const T=ve(s,()=>({cells:[],columns:[]}));for(let _=0;_({cells:s.cells.map(T=>({...T,width:T.width*st})),columns:s.columns.map(T=>T*st)}))}const Ye=(G,st)=>G+st,je=(G,st)=>G>st?G:st,lr=(G,st)=>G?lr(st%G,G):st,Le=(G,st)=>G*st/lr(G,st);function Vr({blocks:G,lcmWidth:st,lcmHeight:s}){const T=G.map(_=>{const p=st/_.width,o=s/_.height,a=ve(s,()=>new Array(st));for(let r=0;r<_.rows.length;r++){const{cells:t,columns:e}=_.rows[r];for(let l=0;l0),_=new Array(s);for(let o=0;ou.xTopRightCorner)&&(T[i]=n)}}const _=new Set,p=new Map;for(let o=0;o{const o=Math.floor(st/p[G]),a={[G]:st,[s]:p[s],rows:o===1?p.rows:T(p.rows,o,st)};return st-p[G]*o===0?a:_(a)}}function Zr(G){return function(s){let T=s[0].width,_=T;for(let r=1;r{let s=st[0].height,T=s;for(let r=1;r({cells:[],columns:[]}));let a=0;for(let r=0;r{if(!G&&!st)return T;const o=G&&_!==null,a=st&&p!==null,r=a?p.rows.map((i,u)=>Ur(i,p.width,T.rows[u])):T.rows,t=T.width+(a?p.width:0);if(!o)return{height:T.height,width:t,rows:r};const e=T.height+_.height;if(!a)return{height:e,width:t,rows:_.rows.concat(r)};const l=_.rows[0],n=[Lr(l,{height:_.height,width:p.width,value:s,type:we.Corner}),...zr(_.rows.slice(1),p.width),...r];return{height:e,width:t,rows:n}}}function Jr(G,st,s,T,_){const p=[];for(let o=0;o({cells:[],columns:[]})),...r.rows]});break;case"head":p.push({height:r.height,width:r.width+t.width,rows:[{cells:[{height:r.height,width:t.width,value:T,type:we.Corner},...r.rows[0].cells],columns:[0,...Oe(r.rows[0].columns,t.width)]},...r.rows.slice(1)]});break;default:throw new Error(`Unknown table component: ${st}`)}}return _(p)}const Qr={head:Zr,indexes:Yr};function hr({deduplicationComponent:G,isProportionalResize:st,cornerCellValue:s}){const T=Qr[G](st),_=ar[G];return p=>{const o=Gr(p,G,st),a=o===null,r=Jr(p,_,a,s,T),t=p.map(ur({[G]:a,[_]:r===null,cornerCellValue:s})),e=T(t),l=Dr[_],n=o&&Ge(l,e[l])(o);return{body:e,baked:t,[G]:n,[_]:r}}}function tn(G){let st=0;for(let s=0;s0?G.padStart(_+G.length):G).padEnd(st)}default:return T.length===1&&!isNaN(Number(G))?G.padStart(st):G.padEnd(st)}}var fr=(G=>(G.MySQL="MySql",G.MarkdownLike="Markdown Like",G))(fr||{});Object.values(fr);function dr(G,st,s,T){for(let _=0;_{const i=(typeof t.value=="string"?t.value:JSON.stringify(t.value,null,2)).split(` `).map(u=>` ${u.trim()} `);return{cell:t,rowIndex:e,collIndex:l,lines:i,maxRowLength:tn(i)}}),T=ve(G.width+1,()=>0),_=ve(G.height+1,()=>0);an[st](G,s,T,_);for(let t=1;t<=G.width;t++)T[t]+=T[t-1];for(let t=1;t<=G.height;t++)_[t]+=_[t-1];const p=G.height+_[G.height],o=G.width+T[G.width],a=ir(p,o,()=>null),r=new Set;for(let t=0;t=d&&vt.join("")).join(` `)}function pr(G){return G.replace(/[&<"']/g,function(st){switch(st){case"&":return"&";case"<":return"<";case'"':return""";default:return"'"}})}const mr=(G,st,s="")=>` diff --git a/assets/index-Ly0HP4qj.js b/assets/index-xQyLpgB2.js similarity index 99% rename from assets/index-Ly0HP4qj.js rename to assets/index-xQyLpgB2.js index 8f74ef5..53f1e06 100644 --- a/assets/index-Ly0HP4qj.js +++ b/assets/index-xQyLpgB2.js @@ -345,7 +345,7 @@ Error generating stack: `+o.message+` top: ${s}px !important; left: ${l}px !important; } - `),()=>{document.head.removeChild(u)}},[t]),C.createElement(vK,{isPresent:t,childRef:n,sizeRef:i},C.cloneElement(e,{ref:n}))}const ny=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=MA(yK),l=C.useId(),u=C.useMemo(()=>({id:l,initial:t,isPresent:r,custom:i,onExitComplete:c=>{s.set(c,!0);for(const d of s.values())if(!d)return;n&&n()},register:c=>(s.set(c,!1),()=>s.delete(c))}),o?void 0:[r]);return C.useMemo(()=>{s.forEach((c,d)=>s.set(d,!1))},[r]),C.useEffect(()=>{!r&&!s.size&&n&&n()},[r]),a==="popLayout"&&(e=C.createElement(gK,{isPresent:r},e)),C.createElement(_d.Provider,{value:u},e)};function yK(){return new Map}function bK(e){return C.useEffect(()=>()=>e(),[])}const Ra=e=>e.key||"";function SK(e,t){e.forEach(r=>{const n=Ra(r);t.set(n,r)})}function wK(e){const t=[];return C.Children.forEach(e,r=>{C.isValidElement(r)&&t.push(r)}),t}const $K=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{const s=C.useContext(cS).forceRender||mK()[0],l=FI(),u=wK(e);let c=u;const d=C.useRef(new Map).current,p=C.useRef(c),f=C.useRef(new Map).current,h=C.useRef(!0);if(sS(()=>{h.current=!1,SK(u,f),p.current=c}),bK(()=>{h.current=!0,f.clear(),d.clear()}),h.current)return C.createElement(C.Fragment,null,c.map(g=>C.createElement(ny,{key:Ra(g),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:o,mode:a},g)));c=[...c];const v=p.current.map(Ra),y=u.map(Ra),m=v.length;for(let g=0;g{if(y.indexOf(b)!==-1)return;const S=f.get(b);if(!S)return;const x=v.indexOf(b);let w=g;if(!w){const $=()=>{d.delete(b);const P=Array.from(f.keys()).filter(E=>!y.includes(E));if(P.forEach(E=>f.delete(E)),p.current=u.filter(E=>{const T=Ra(E);return T===b||P.includes(T)}),!d.size){if(l.current===!1)return;s(),n&&n()}};w=C.createElement(ny,{key:Ra(S),isPresent:!1,onExitComplete:$,custom:t,presenceAffectsLayout:o,mode:a},S),d.set(b,w)}c.splice(x,0,w)}),c=c.map(g=>{const b=g.key;return d.has(b)?g:C.createElement(ny,{key:Ra(g),isPresent:!0,presenceAffectsLayout:o,mode:a},g)}),C.createElement(C.Fragment,null,d.size?c:c.map(g=>C.cloneElement(g)))};var xK={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},LI=C.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:i,requestClose:o=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:u=xK,toastSpacing:c="0.5rem"}=e,[d,p]=C.useState(s),f=sq();is(()=>{f||n==null||n()},[f]),is(()=>{p(s)},[s]);const h=()=>p(null),v=()=>p(s),y=()=>{f&&i()};C.useEffect(()=>{f&&o&&i()},[f,o,i]),iW(y,d);const m=C.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),g=C.useMemo(()=>rW(a),[a]);return _.jsx(hK.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:h,onHoverEnd:v,custom:{position:a},style:g,children:_.jsx(he.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:m,children:ui(r,{id:t,onClose:y})})})});LI.displayName="ToastComponent";function _K(e,t){var r;const n=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return(r=o==null?void 0:o[t])!=null?r:n}var dP={path:_.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[_.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),_.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),_.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Pn=Ee((e,t)=>{const{as:r,viewBox:n,color:i="currentColor",focusable:o=!1,children:a,className:s,__css:l,...u}=e,c=st("chakra-icon",s),d=yi("Icon",e),p={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...l,...d},f={ref:t,focusable:o,className:c,__css:p},h=n??dP.viewBox;if(r&&typeof r!="string")return _.jsx(he.svg,{as:r,...f,...u});const v=a??dP.path;return _.jsx(he.svg,{verticalAlign:"middle",viewBox:h,...f,...u,children:v})});Pn.displayName="Icon";function Zl(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:i={}}=e,o=C.Children.toArray(e.path),a=Ee((s,l)=>_.jsx(Pn,{ref:l,viewBox:t,...i,...s,children:o.length?o:_.jsx("path",{fill:"currentColor",d:r})}));return a.displayName=n,a}function CK(e){return _.jsx(Pn,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function PK(e){return _.jsx(Pn,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function fP(e){return _.jsx(Pn,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var kK=wd({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Qm=Ee((e,t)=>{const r=yi("Spinner",e),{label:n="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=or(e),u=st("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${kK} ${o} linear infinite`,...r};return _.jsx(he.div,{ref:t,__css:c,className:u,...l,children:n&&_.jsx(he.span,{srOnly:!0,children:n})})});Qm.displayName="Spinner";var[EK,ES]=ir({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[TK,TS]=ir({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),VI={info:{icon:PK,colorScheme:"blue"},warning:{icon:fP,colorScheme:"orange"},success:{icon:CK,colorScheme:"green"},error:{icon:fP,colorScheme:"red"},loading:{icon:Qm,colorScheme:"blue"}};function OK(e){return VI[e].colorScheme}function AK(e){return VI[e].icon}var zI=Ee(function(t,r){const n=TS(),{status:i}=ES(),o={display:"inline",...n.description};return _.jsx(he.div,{ref:r,"data-status":i,...t,className:st("chakra-alert__desc",t.className),__css:o})});zI.displayName="AlertDescription";function BI(e){const{status:t}=ES(),r=AK(t),n=TS(),i=t==="loading"?n.spinner:n.icon;return _.jsx(he.span,{display:"inherit","data-status":t,...e,className:st("chakra-alert__icon",e.className),__css:i,children:e.children||_.jsx(r,{h:"100%",w:"100%"})})}BI.displayName="AlertIcon";var OS=Ee(function(t,r){const n=TS(),{status:i}=ES();return _.jsx(he.div,{ref:r,"data-status":i,...t,className:st("chakra-alert__title",t.className),__css:n.title})});OS.displayName="AlertTitle";var AS=Ee(function(t,r){var n;const{status:i="info",addRole:o=!0,...a}=or(t),s=(n=t.colorScheme)!=null?n:OK(i),l=cr("Alert",{...t,colorScheme:s}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return _.jsx(EK,{value:{status:i},children:_.jsx(TK,{value:l,children:_.jsx(he.div,{"data-status":i,role:o?"alert":void 0,ref:r,...a,className:st("chakra-alert",t.className),__css:u})})})});AS.displayName="Alert";function IK(e){return _.jsx(Pn,{focusable:"false","aria-hidden":!0,...e,children:_.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var UI=Ee(function(t,r){const n=yi("CloseButton",t),{children:i,isDisabled:o,__css:a,...s}=or(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return _.jsx(he.button,{type:"button","aria-label":"Close",ref:r,disabled:o,__css:{...l,...n,...a},...s,children:i||_.jsx(IK,{width:"1em",height:"1em"})})});UI.displayName="CloseButton";var RK={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Oi=MK(RK);function MK(e){let t=e;const r=new Set,n=i=>{t=i(t),r.forEach(o=>o())};return{getState:()=>t,subscribe:i=>(r.add(i),()=>{n(()=>e),r.delete(i)}),removeToast:(i,o)=>{n(a=>({...a,[o]:a[o].filter(s=>s.id!=i)}))},notify:(i,o)=>{const a=DK(i,o),{position:s,id:l}=a;return n(u=>{var c,d;const f=s.includes("top")?[a,...(c=u[s])!=null?c:[]]:[...(d=u[s])!=null?d:[],a];return{...u,[s]:f}}),l},update:(i,o)=>{i&&n(a=>{const s={...a},{position:l,index:u}=aC(s,i);return l&&u!==-1&&(s[l][u]={...s[l][u],...o,message:WI(o)}),s})},closeAll:({positions:i}={})=>{n(o=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=o[u].map(c=>({...c,requestClose:!0})),l),{...o}))},close:i=>{n(o=>{const a=gA(o,i);return a?{...o,[a]:o[a].map(s=>s.id==i?{...s,requestClose:!0}:s)}:o})},isActive:i=>!!aC(Oi.getState(),i).position}}var pP=0;function DK(e,t={}){var r,n;pP+=1;const i=(r=t.id)!=null?r:pP,o=(n=t.position)!=null?n:"bottom";return{id:i,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Oi.removeToast(String(i),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var jK=e=>{const{status:t,variant:r="solid",id:n,title:i,isClosable:o,onClose:a,description:s,colorScheme:l,icon:u}=e,c=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return _.jsxs(AS,{addRole:!1,status:t,variant:r,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[_.jsx(BI,{children:u}),_.jsxs(he.div,{flex:"1",maxWidth:"100%",children:[i&&_.jsx(OS,{id:c==null?void 0:c.title,children:i}),s&&_.jsx(zI,{id:c==null?void 0:c.description,display:"block",children:s})]}),o&&_.jsx(UI,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function WI(e={}){const{render:t,toastComponent:r=jK}=e;return i=>typeof t=="function"?t({...i,...e}):_.jsx(r,{...i,...e})}function NK(e,t){const r=i=>{var o;return{...t,...i,position:_K((o=i==null?void 0:i.position)!=null?o:t==null?void 0:t.position,e)}},n=i=>{const o=r(i),a=WI(o);return Oi.notify(a,o)};return n.update=(i,o)=>{Oi.update(i,r(o))},n.promise=(i,o)=>{const a=n({...o.loading,status:"loading",duration:null});i.then(s=>n.update(a,{status:"success",duration:5e3,...ui(o.success,s)})).catch(s=>n.update(a,{status:"error",duration:5e3,...ui(o.error,s)}))},n.closeAll=Oi.closeAll,n.close=Oi.close,n.isActive=Oi.isActive,n}var[FK,LK]=ir({name:"ToastOptionsContext",strict:!1}),VK=e=>{const t=C.useSyncExternalStore(Oi.subscribe,Oi.getState,Oi.getState),{motionVariants:r,component:n=LI,portalProps:i}=e,a=Object.keys(t).map(s=>{const l=t[s];return _.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${s}`,id:`chakra-toast-manager-${s}`,style:nW(s),children:_.jsx($K,{initial:!1,children:l.map(u=>_.jsx(n,{motionVariants:r,...u},u.id))})},s)});return _.jsx(Nm,{...i,children:a})};function IS(e){const{theme:t}=FO(),r=LK();return C.useMemo(()=>NK(t.direction,{...r,...e}),[e,t.direction,r])}var zK=e=>function({children:r,theme:n=e,toastOptions:i,...o}){return _.jsxs(eW,{theme:n,...o,children:[_.jsx(FK,{value:i==null?void 0:i.defaultOptions,children:r}),_.jsx(VK,{...i})]})},BK=zK(y8),UK=Object.defineProperty,WK=(e,t,r)=>t in e?UK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Nt=(e,t,r)=>(WK(e,typeof t!="symbol"?t+"":t,r),r);function hP(e){return e.sort((t,r)=>{const n=t.compareDocumentPosition(r);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var HK=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function mP(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function vP(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}var ib=typeof window<"u"?C.useLayoutEffect:C.useEffect,Oh=e=>e,qK=class{constructor(){Nt(this,"descendants",new Map),Nt(this,"register",e=>{if(e!=null)return HK(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),Nt(this,"unregister",e=>{this.descendants.delete(e);const t=hP(Array.from(this.descendants.keys()));this.assignIndex(t)}),Nt(this,"destroy",()=>{this.descendants.clear()}),Nt(this,"assignIndex",e=>{this.descendants.forEach(t=>{const r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()})}),Nt(this,"count",()=>this.descendants.size),Nt(this,"enabledCount",()=>this.enabledValues().length),Nt(this,"values",()=>Array.from(this.descendants.values()).sort((t,r)=>t.index-r.index)),Nt(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),Nt(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),Nt(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),Nt(this,"first",()=>this.item(0)),Nt(this,"firstEnabled",()=>this.enabledItem(0)),Nt(this,"last",()=>this.item(this.descendants.size-1)),Nt(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),Nt(this,"indexOf",e=>{var t,r;return e&&(r=(t=this.descendants.get(e))==null?void 0:t.index)!=null?r:-1}),Nt(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),Nt(this,"next",(e,t=!0)=>{const r=mP(e,this.count(),t);return this.item(r)}),Nt(this,"nextEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),i=mP(n,this.enabledCount(),t);return this.enabledItem(i)}),Nt(this,"prev",(e,t=!0)=>{const r=vP(e,this.count()-1,t);return this.item(r)}),Nt(this,"prevEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),i=vP(n,this.enabledCount()-1,t);return this.enabledItem(i)}),Nt(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const r=Array.from(this.descendants.keys()).concat(e),n=hP(r);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const i={node:e,index:-1,...t};this.descendants.set(e,i),this.assignIndex(n)})}};function KK(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function zr(...e){return t=>{e.forEach(r=>{KK(r,t)})}}function GK(...e){return C.useMemo(()=>zr(...e),e)}function YK(){const e=C.useRef(new qK);return ib(()=>()=>e.current.destroy()),e.current}var[XK,HI]=ir({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function QK(e){const t=HI(),[r,n]=C.useState(-1),i=C.useRef(null);ib(()=>()=>{i.current&&t.unregister(i.current)},[]),ib(()=>{if(!i.current)return;const a=Number(i.current.dataset.index);r!=a&&!Number.isNaN(a)&&n(a)});const o=Oh(e?t.register(e):t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(i.current),register:zr(o,i)}}function ZK(){return[Oh(XK),()=>Oh(HI()),()=>YK(),i=>QK(i)]}function qI(e){const{value:t,defaultValue:r,onChange:n,shouldUpdate:i=(p,f)=>p!==f}=e,o=Vt(n),a=Vt(i),[s,l]=C.useState(r),u=t!==void 0,c=u?t:s,d=Vt(p=>{const h=typeof p=="function"?p(c):p;a(c,h)&&(u||l(h),o(h))},[u,o,c,a]);return[c,d]}function KI(e){return C.Children.toArray(e).filter(t=>C.isValidElement(t))}var[JK,eG]=ir({strict:!1,name:"ButtonGroupContext"}),tG={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},rG={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},GI=Ee(function(t,r){const{size:n,colorScheme:i,variant:o,className:a,spacing:s="0.5rem",isAttached:l,isDisabled:u,orientation:c="horizontal",...d}=t,p=st("chakra-button__group",a),f=C.useMemo(()=>({size:n,colorScheme:i,variant:o,isDisabled:u}),[n,i,o,u]);let h={display:"inline-flex",...l?tG[c]:rG[c](s)};const v=c==="vertical";return _.jsx(JK,{value:f,children:_.jsx(he.div,{ref:r,role:"group",__css:h,className:p,"data-attached":l?"":void 0,"data-orientation":c,flexDir:v?"column":void 0,...d})})});GI.displayName="ButtonGroup";function nG(e){const[t,r]=C.useState(!e);return{ref:C.useCallback(o=>{o&&r(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}function ob(e){const{children:t,className:r,...n}=e,i=C.isValidElement(t)?C.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=st("chakra-button__icon",r);return _.jsx(he.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:o,children:i})}ob.displayName="ButtonIcon";function ab(e){const{label:t,placement:r,spacing:n="0.5rem",children:i=_.jsx(Qm,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:a,...s}=e,l=st("chakra-button__spinner",o),u=r==="start"?"marginEnd":"marginStart",c=C.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?n:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,u,n]);return _.jsx(he.div,{className:l,...s,__css:c,children:i})}ab.displayName="ButtonSpinner";var Tr=Ee((e,t)=>{const r=eG(),n=yi("Button",{...r,...e}),{isDisabled:i=r==null?void 0:r.isDisabled,isLoading:o,isActive:a,children:s,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:p,spinner:f,spinnerPlacement:h="start",className:v,as:y,...m}=or(e),g=C.useMemo(()=>{const w={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:w}}},[n,r]),{ref:b,type:S}=nG(y),x={rightIcon:u,leftIcon:l,iconSpacing:d,children:s};return _.jsxs(he.button,{ref:GK(t,b),as:y,type:p??S,"data-active":_e(a),"data-loading":_e(o),__css:g,className:st("chakra-button",v),...m,disabled:i||o,children:[o&&h==="start"&&_.jsx(ab,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:f}),o?c||_.jsx(he.span,{opacity:0,children:_.jsx(gP,{...x})}):_.jsx(gP,{...x}),o&&h==="end"&&_.jsx(ab,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:f})]})});Tr.displayName="Button";function gP(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:i}=e;return _.jsxs(_.Fragment,{children:[t&&_.jsx(ob,{marginEnd:i,children:t}),n,r&&_.jsx(ob,{marginStart:i,children:r})]})}var YI=Ee((e,t)=>{const{icon:r,children:n,isRound:i,"aria-label":o,...a}=e,s=r||n,l=C.isValidElement(s)?C.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return _.jsx(Tr,{padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o,...a,children:l})});YI.displayName="IconButton";var[iG,oG]=ir({name:"CheckboxGroupContext",strict:!1});function yP(e){return e&&Sr(e)&&Sr(e.target)}function aG(e={}){const{defaultValue:t,value:r,onChange:n,isDisabled:i,isNative:o}=e,a=Vt(n),[s,l]=qI({value:r,defaultValue:t||[],onChange:a}),u=C.useCallback(d=>{if(!s)return;const p=yP(d)?d.target.checked:!s.includes(d),f=yP(d)?d.target.value:d,h=p?[...s,f]:s.filter(v=>String(v)!==String(f));l(h)},[l,s]),c=C.useCallback((d={})=>({...d,[o?"checked":"isChecked"]:s.some(f=>String(d.value)===String(f)),onChange:u}),[u,o,s]);return{value:s,isDisabled:i,onChange:u,setValue:l,getCheckboxProps:c}}function XI(e){const{colorScheme:t,size:r,variant:n,children:i,isDisabled:o}=e,{value:a,onChange:s}=aG(e),l=C.useMemo(()=>({size:r,onChange:s,colorScheme:t,value:a,variant:n,isDisabled:o}),[r,s,t,a,n,o]);return _.jsx(iG,{value:l,children:i})}XI.displayName="CheckboxGroup";function sG(e){const[t,r]=C.useState(e),[n,i]=C.useState(!1);return e!==t&&(i(!0),r(e)),n}function lG(e){return _.jsx(he.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:_.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function uG(e){return _.jsx(he.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:_.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function cG(e){const{isIndeterminate:t,isChecked:r,...n}=e,i=t?uG:lG;return r||t?_.jsx(he.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:_.jsx(i,{...n})}):null}var[dG,QI]=ir({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[fG,gs]=ir({strict:!1,name:"FormControlContext"});function pG(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:i,isReadOnly:o,...a}=e,s=C.useId(),l=t||`field-${s}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[p,f]=C.useState(!1),[h,v]=C.useState(!1),[y,m]=C.useState(!1),g=C.useCallback(($={},P=null)=>({id:d,...$,ref:zr(P,E=>{E&&v(!0)})}),[d]),b=C.useCallback(($={},P=null)=>({...$,ref:P,"data-focus":_e(y),"data-disabled":_e(i),"data-invalid":_e(n),"data-readonly":_e(o),id:$.id!==void 0?$.id:u,htmlFor:$.htmlFor!==void 0?$.htmlFor:l}),[l,i,y,n,o,u]),S=C.useCallback(($={},P=null)=>({id:c,...$,ref:zr(P,E=>{E&&f(!0)}),"aria-live":"polite"}),[c]),x=C.useCallback(($={},P=null)=>({...$,...a,ref:P,role:"group","data-focus":_e(y),"data-disabled":_e(i),"data-invalid":_e(n),"data-readonly":_e(o)}),[a,i,y,n,o]),w=C.useCallback(($={},P=null)=>({...$,ref:P,role:"presentation","aria-hidden":!0,children:$.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!o,isDisabled:!!i,isFocused:!!y,onFocus:()=>m(!0),onBlur:()=>m(!1),hasFeedbackText:p,setHasFeedbackText:f,hasHelpText:h,setHasHelpText:v,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:a,getHelpTextProps:g,getErrorMessageProps:S,getRootProps:x,getLabelProps:b,getRequiredIndicatorProps:w}}var bi=Ee(function(t,r){const n=cr("Form",t),i=or(t),{getRootProps:o,htmlProps:a,...s}=pG(i),l=st("chakra-form-control",t.className);return _.jsx(fG,{value:s,children:_.jsx(dG,{value:n,children:_.jsx(he.div,{...o({},r),className:l,__css:n.container})})})});bi.displayName="FormControl";var ZI=Ee(function(t,r){const n=gs(),i=QI(),o=st("chakra-form__helper-text",t.className);return _.jsx(he.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:i.helperText,className:o})});ZI.displayName="FormHelperText";var[hG,mG]=ir({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),JI=Ee((e,t)=>{const r=cr("FormError",e),n=or(e),i=gs();return i!=null&&i.isInvalid?_.jsx(hG,{value:r,children:_.jsx(he.div,{...i==null?void 0:i.getErrorMessageProps(n,t),className:st("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...r.text}})}):null});JI.displayName="FormErrorMessage";var vG=Ee((e,t)=>{const r=mG(),n=gs();if(!(n!=null&&n.isInvalid))return null;const i=st("chakra-form__error-icon",e.className);return _.jsx(Pn,{ref:t,"aria-hidden":!0,...e,__css:r.icon,className:i,children:_.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})});vG.displayName="FormErrorIcon";var _o=Ee(function(t,r){var n;const i=yi("FormLabel",t),o=or(t),{className:a,children:s,requiredIndicator:l=_.jsx(eR,{}),optionalIndicator:u=null,...c}=o,d=gs(),p=(n=d==null?void 0:d.getLabelProps(c,r))!=null?n:{ref:r,...c};return _.jsxs(he.label,{...p,className:st("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...i},children:[s,d!=null&&d.isRequired?l:u]})});_o.displayName="FormLabel";var eR=Ee(function(t,r){const n=gs(),i=QI();if(!(n!=null&&n.isRequired))return null;const o=st("chakra-form__required-indicator",t.className);return _.jsx(he.span,{...n==null?void 0:n.getRequiredIndicatorProps(t,r),__css:i.requiredIndicator,className:o})});eR.displayName="RequiredIndicator";function RS(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:i,...o}=MS(e);return{...o,disabled:t,readOnly:n,required:i,"aria-invalid":ao(r),"aria-required":ao(i),"aria-readonly":ao(n)}}function MS(e){var t,r,n;const i=gs(),{id:o,disabled:a,readOnly:s,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:p,onFocus:f,onBlur:h,...v}=e,y=e["aria-describedby"]?[e["aria-describedby"]]:[];return i!=null&&i.hasFeedbackText&&(i!=null&&i.isInvalid)&&y.push(i.feedbackId),i!=null&&i.hasHelpText&&y.push(i.helpTextId),{...v,"aria-describedby":y.join(" ")||void 0,id:o??(i==null?void 0:i.id),isDisabled:(t=a??p)!=null?t:i==null?void 0:i.isDisabled,isReadOnly:(r=s??d)!=null?r:i==null?void 0:i.isReadOnly,isRequired:(n=l??u)!=null?n:i==null?void 0:i.isRequired,isInvalid:c??(i==null?void 0:i.isInvalid),onFocus:He(i==null?void 0:i.onFocus,f),onBlur:He(i==null?void 0:i.onBlur,h)}}var gG={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},yG=()=>typeof document<"u",bP=!1,Td=null,os=!1,sb=!1,lb=new Set;function DS(e,t){lb.forEach(r=>r(e,t))}var bG=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function SG(e){return!(e.metaKey||!bG&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function SP(e){os=!0,SG(e)&&(Td="keyboard",DS("keyboard",e))}function Ts(e){if(Td="pointer",e.type==="mousedown"||e.type==="pointerdown"){os=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let r=!1;try{r=t.matches(":focus-visible")}catch{}if(r)return;DS("pointer",e)}}function wG(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function $G(e){wG(e)&&(os=!0,Td="virtual")}function xG(e){e.target===window||e.target===document||(!os&&!sb&&(Td="virtual",DS("virtual",e)),os=!1,sb=!1)}function _G(){os=!1,sb=!0}function wP(){return Td!=="pointer"}function CG(){if(!yG()||bP)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...r){os=!0,e.apply(this,r)},document.addEventListener("keydown",SP,!0),document.addEventListener("keyup",SP,!0),document.addEventListener("click",$G,!0),window.addEventListener("focus",xG,!0),window.addEventListener("blur",_G,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Ts,!0),document.addEventListener("pointermove",Ts,!0),document.addEventListener("pointerup",Ts,!0)):(document.addEventListener("mousedown",Ts,!0),document.addEventListener("mousemove",Ts,!0),document.addEventListener("mouseup",Ts,!0)),bP=!0}function tR(e){CG(),e(wP());const t=()=>e(wP());return lb.add(t),()=>{lb.delete(t)}}function PG(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function kG(e={}){const t=MS(e),{isDisabled:r,isReadOnly:n,isRequired:i,isInvalid:o,id:a,onBlur:s,onFocus:l,"aria-describedby":u}=t,{defaultChecked:c,isChecked:d,isFocusable:p,onChange:f,isIndeterminate:h,name:v,value:y,tabIndex:m=void 0,"aria-label":g,"aria-labelledby":b,"aria-invalid":S,...x}=e,w=PG(x,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),$=Vt(f),P=Vt(s),E=Vt(l),[T,z]=C.useState(!1),[W,Y]=C.useState(!1),[H,X]=C.useState(!1),[te,Z]=C.useState(!1);C.useEffect(()=>tR(z),[]);const L=C.useRef(null),[J,B]=C.useState(!0),[R,U]=C.useState(!!c),M=d!==void 0,k=M?d:R,I=C.useCallback(ae=>{if(n||r){ae.preventDefault();return}M||U(k?ae.target.checked:h?!0:ae.target.checked),$==null||$(ae)},[n,r,k,M,h,$]);oo(()=>{L.current&&(L.current.indeterminate=!!h)},[h]),is(()=>{r&&Y(!1)},[r,Y]),oo(()=>{const ae=L.current;if(!(ae!=null&&ae.form))return;const Ie=()=>{U(!!c)};return ae.form.addEventListener("reset",Ie),()=>{var ot;return(ot=ae.form)==null?void 0:ot.removeEventListener("reset",Ie)}},[]);const V=r&&!p,Q=C.useCallback(ae=>{ae.key===" "&&Z(!0)},[Z]),ee=C.useCallback(ae=>{ae.key===" "&&Z(!1)},[Z]);oo(()=>{if(!L.current)return;L.current.checked!==k&&U(L.current.checked)},[L.current]);const ue=C.useCallback((ae={},Ie=null)=>{const ot=Tt=>{W&&Tt.preventDefault(),Z(!0)};return{...ae,ref:Ie,"data-active":_e(te),"data-hover":_e(H),"data-checked":_e(k),"data-focus":_e(W),"data-focus-visible":_e(W&&T),"data-indeterminate":_e(h),"data-disabled":_e(r),"data-invalid":_e(o),"data-readonly":_e(n),"aria-hidden":!0,onMouseDown:He(ae.onMouseDown,ot),onMouseUp:He(ae.onMouseUp,()=>Z(!1)),onMouseEnter:He(ae.onMouseEnter,()=>X(!0)),onMouseLeave:He(ae.onMouseLeave,()=>X(!1))}},[te,k,r,W,T,H,h,o,n]),ce=C.useCallback((ae={},Ie=null)=>({...ae,ref:Ie,"data-active":_e(te),"data-hover":_e(H),"data-checked":_e(k),"data-focus":_e(W),"data-focus-visible":_e(W&&T),"data-indeterminate":_e(h),"data-disabled":_e(r),"data-invalid":_e(o),"data-readonly":_e(n)}),[te,k,r,W,T,H,h,o,n]),ie=C.useCallback((ae={},Ie=null)=>({...w,...ae,ref:zr(Ie,ot=>{ot&&B(ot.tagName==="LABEL")}),onClick:He(ae.onClick,()=>{var ot;J||((ot=L.current)==null||ot.click(),requestAnimationFrame(()=>{var Tt;(Tt=L.current)==null||Tt.focus({preventScroll:!0})}))}),"data-disabled":_e(r),"data-checked":_e(k),"data-invalid":_e(o)}),[w,r,k,o,J]),Te=C.useCallback((ae={},Ie=null)=>({...ae,ref:zr(L,Ie),type:"checkbox",name:v,value:y,id:a,tabIndex:m,onChange:He(ae.onChange,I),onBlur:He(ae.onBlur,P,()=>Y(!1)),onFocus:He(ae.onFocus,E,()=>Y(!0)),onKeyDown:He(ae.onKeyDown,Q),onKeyUp:He(ae.onKeyUp,ee),required:i,checked:k,disabled:V,readOnly:n,"aria-label":g,"aria-labelledby":b,"aria-invalid":S?!!S:o,"aria-describedby":u,"aria-disabled":r,style:gG}),[v,y,a,I,P,E,Q,ee,i,k,V,n,g,b,S,o,u,r,m]),rt=C.useCallback((ae={},Ie=null)=>({...ae,ref:Ie,onMouseDown:He(ae.onMouseDown,EG),"data-disabled":_e(r),"data-checked":_e(k),"data-invalid":_e(o)}),[k,r,o]);return{state:{isInvalid:o,isFocused:W,isChecked:k,isActive:te,isHovered:H,isIndeterminate:h,isDisabled:r,isReadOnly:n,isRequired:i},getRootProps:ie,getCheckboxProps:ue,getIndicatorProps:ce,getInputProps:Te,getLabelProps:rt,htmlProps:w}}function EG(e){e.preventDefault(),e.stopPropagation()}var TG={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},OG={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},AG=wd({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),IG=wd({from:{opacity:0},to:{opacity:1}}),RG=wd({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),jS=Ee(function(t,r){const n=oG(),i={...n,...t},o=cr("Checkbox",i),a=or(t),{spacing:s="0.5rem",className:l,children:u,iconColor:c,iconSize:d,icon:p=_.jsx(cG,{}),isChecked:f,isDisabled:h=n==null?void 0:n.isDisabled,onChange:v,inputProps:y,...m}=a;let g=f;n!=null&&n.value&&a.value&&(g=n.value.includes(a.value));let b=v;n!=null&&n.onChange&&a.value&&(b=LO(n.onChange,v));const{state:S,getInputProps:x,getCheckboxProps:w,getLabelProps:$,getRootProps:P}=kG({...m,isDisabled:h,isChecked:g,onChange:b}),E=sG(S.isChecked),T=C.useMemo(()=>({animation:E?S.isIndeterminate?`${IG} 20ms linear, ${RG} 200ms linear`:`${AG} 200ms linear`:void 0,fontSize:d,color:c,...o.icon}),[c,d,E,S.isIndeterminate,o.icon]),z=C.cloneElement(p,{__css:T,isIndeterminate:S.isIndeterminate,isChecked:S.isChecked});return _.jsxs(he.label,{__css:{...OG,...o.container},className:st("chakra-checkbox",l),...P(),children:[_.jsx("input",{className:"chakra-checkbox__input",...x(y,r)}),_.jsx(he.span,{__css:{...TG,...o.control},className:"chakra-checkbox__control",...w(),children:z}),u&&_.jsx(he.span,{className:"chakra-checkbox__label",...$(),__css:{marginStart:s,...o.label},children:u})]})});jS.displayName="Checkbox";function MG(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function NS(e,t){let r=MG(e);const n=10**(t??10);return r=Math.round(r*n)/n,t?r.toFixed(t):r.toString()}function ub(e){if(!Number.isFinite(e))return 0;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r+=1;return r}function $P(e,t,r){return(e-t)*100/(r-t)}function DG(e,t,r){return(r-t)*e+t}function xP(e,t,r){const n=Math.round((e-t)/r)*r+t,i=ub(r);return NS(n,i)}function Op(e,t,r){return e==null?e:(r{var T;return n==null?"":(T=iy(n,o,r))!=null?T:""}),p=typeof i<"u",f=p?i:c,h=rR(Lo(f),o),v=r??h,y=C.useCallback(T=>{T!==f&&(p||d(T.toString()),u==null||u(T.toString(),Lo(T)))},[u,p,f]),m=C.useCallback(T=>{let z=T;return l&&(z=Op(z,a,s)),NS(z,v)},[v,l,s,a]),g=C.useCallback((T=o)=>{let z;f===""?z=Lo(T):z=Lo(f)+T,z=m(z),y(z)},[m,o,y,f]),b=C.useCallback((T=o)=>{let z;f===""?z=Lo(-T):z=Lo(f)-T,z=m(z),y(z)},[m,o,y,f]),S=C.useCallback(()=>{var T;let z;n==null?z="":z=(T=iy(n,o,r))!=null?T:a,y(z)},[n,r,o,y,a]),x=C.useCallback(T=>{var z;const W=(z=iy(T,o,v))!=null?z:a;y(W)},[v,o,y,a]),w=Lo(f);return{isOutOfRange:w>s||w{const o=typeof e=="function"?e():e??document;if(!(!r||!o))return o.addEventListener(t,i,n),()=>{o.removeEventListener(t,i,n)}},[t,e,n,i,r]),()=>{const o=typeof e=="function"?e():e??document;o==null||o.removeEventListener(t,i,n)}}function NG(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function cb(e,t){return cb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cb(e,t)}function as(e){"@babel/helpers - typeof";return as=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},as(e)}function FG(e,t){if(as(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(as(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iR(e){var t=FG(e,"string");return as(t)==="symbol"?t:String(t)}function tc(e,t,r){return t=iR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oR(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function aR(e){var t;if(!oR(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function LG(e){var t,r;return(r=(t=sR(e))==null?void 0:t.defaultView)!=null?r:window}function sR(e){return oR(e)?e.ownerDocument:document}function VG(e){return sR(e).activeElement}var lR=e=>e.hasAttribute("tabindex"),zG=e=>lR(e)&&e.tabIndex===-1;function BG(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function uR(e){return e.parentElement&&uR(e.parentElement)?!0:e.hidden}function UG(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function WG(e){if(!aR(e)||uR(e)||BG(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():UG(e)?!0:lR(e)}function HG(e){return e?aR(e)&&WG(e)&&!zG(e):!1}var Od=Ee(function(t,r){const{htmlSize:n,...i}=t,o=cr("Input",i),a=or(i),s=RS(a),l=st("chakra-input",t.className);return _.jsx(he.input,{size:n,...s,__css:o.field,ref:r,className:l})});Od.displayName="Input";Od.id="Input";var cR=Ee(function(t,r){const n=yi("Link",t),{className:i,isExternal:o,...a}=or(t);return _.jsx(he.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:r,className:st("chakra-link",i),...a,__css:n})});cR.displayName="Link";var[qG,dR]=ir({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Ad=Ee(function(t,r){const n=cr("List",t),{children:i,styleType:o="none",stylePosition:a,spacing:s,...l}=or(t),u=KI(i),d=s?{["& > *:not(style) ~ *:not(style)"]:{mt:s}}:{};return _.jsx(qG,{value:n,children:_.jsx(he.ul,{ref:r,listStyleType:o,listStylePosition:a,role:"list",__css:{...n.container,...d},...l,children:u})})});Ad.displayName="List";var KG=Ee((e,t)=>{const{as:r,...n}=e;return _.jsx(Ad,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...n})});KG.displayName="OrderedList";var GG=Ee(function(t,r){const{as:n,...i}=t;return _.jsx(Ad,{ref:r,as:"ul",styleType:"initial",marginStart:"1em",...i})});GG.displayName="UnorderedList";var FS=Ee(function(t,r){const n=dR();return _.jsx(he.li,{ref:r,...t,__css:n.item})});FS.displayName="ListItem";var fR=Ee(function(t,r){const n=dR();return _.jsx(Pn,{ref:r,role:"presentation",...t,__css:n.icon})});fR.displayName="ListIcon";var Zm=Ee(function(t,r){const{templateAreas:n,gap:i,rowGap:o,columnGap:a,column:s,row:l,autoFlow:u,autoRows:c,templateRows:d,autoColumns:p,templateColumns:f,...h}=t,v={display:"grid",gridTemplateAreas:n,gridGap:i,gridRowGap:o,gridColumnGap:a,gridAutoColumns:p,gridColumn:s,gridRow:l,gridAutoFlow:u,gridAutoRows:c,gridTemplateRows:d,gridTemplateColumns:f};return _.jsx(he.div,{ref:r,__css:v,...h})});Zm.displayName="Grid";var pR=Object.freeze(["base","sm","md","lg","xl","2xl"]);function hR(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):Sr(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}function YG(e,t=pR){const r={};return e.forEach((n,i)=>{const o=t[i];n!=null&&(r[o]=n)}),r}var Id=Ee(function(t,r){const n=yi("Text",t),{className:i,align:o,decoration:a,casing:s,...l}=or(t),u=mA({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return _.jsx(he.p,{ref:r,className:st("chakra-text",t.className),...u,...l,__css:n})});Id.displayName="Text";var mR=e=>_.jsx(he.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});mR.displayName="StackItem";function XG(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":hR(r,i=>n[i])}}var ma=Ee((e,t)=>{const{isInline:r,direction:n,align:i,justify:o,spacing:a="0.5rem",wrap:s,children:l,divider:u,className:c,shouldWrapChildren:d,...p}=e,f=r?"row":n??"column",h=C.useMemo(()=>XG({spacing:a,direction:f}),[a,f]),v=!!u,y=!d&&!v,m=C.useMemo(()=>{const b=KI(l);return y?b:b.map((S,x)=>{const w=typeof S.key<"u"?S.key:x,$=x+1===b.length,E=d?_.jsx(mR,{children:S},w):S;if(!v)return E;const T=C.cloneElement(u,{__css:h}),z=$?null:T;return _.jsxs(C.Fragment,{children:[E,z]},w)})},[u,h,v,y,d,l]),g=st("chakra-stack",c);return _.jsx(he.div,{ref:t,display:"flex",alignItems:i,justifyContent:o,flexDirection:f,flexWrap:s,gap:v?void 0:a,className:g,...p,children:m})});ma.displayName="Stack";var vR=Ee((e,t)=>_.jsx(ma,{align:"center",...e,direction:"row",ref:t}));vR.displayName="HStack";function _P(e){return hR(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var sa=Ee(function(t,r){const{area:n,colSpan:i,colStart:o,colEnd:a,rowEnd:s,rowSpan:l,rowStart:u,...c}=t,d=mA({gridArea:n,gridColumn:_P(i),gridRow:_P(l),gridColumnStart:o,gridColumnEnd:a,gridRowStart:u,gridRowEnd:s});return _.jsx(he.div,{ref:r,__css:d,...c})});sa.displayName="GridItem";var LS=Ee(function(t,r){const n=yi("Heading",t),{className:i,...o}=or(t);return _.jsx(he.h2,{ref:r,className:st("chakra-heading",t.className),...o,__css:n})});LS.displayName="Heading";var nt=he("div");nt.displayName="Box";var gR=Ee(function(t,r){const{size:n,centerContent:i=!0,...o}=t,a=i?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return _.jsx(nt,{ref:r,boxSize:n,__css:{...a,flexShrink:0,flexGrow:0},...o})});gR.displayName="Square";var QG=Ee(function(t,r){const{size:n,...i}=t;return _.jsx(gR,{size:n,ref:r,borderRadius:"9999px",...i})});QG.displayName="Circle";var VS=Ee(function(t,r){const{borderLeftWidth:n,borderBottomWidth:i,borderTopWidth:o,borderRightWidth:a,borderWidth:s,borderStyle:l,borderColor:u,...c}=yi("Divider",t),{className:d,orientation:p="horizontal",__css:f,...h}=or(t),v={vertical:{borderLeftWidth:n||a||s||"1px",height:"100%"},horizontal:{borderBottomWidth:i||o||s||"1px",width:"100%"}};return _.jsx(he.hr,{ref:r,"aria-orientation":p,...h,__css:{...c,border:"0",borderColor:u,borderStyle:l,...v[p],...f},className:st("chakra-divider",d)})});VS.displayName="Divider";function ZG(e,t={}){const{ssr:r=!0,fallback:n}=t,{getWindow:i}=J8(),o=Array.isArray(e)?e:[e];let a=Array.isArray(n)?n:[n];a=a.filter(u=>u!=null);const[s,l]=C.useState(()=>o.map((u,c)=>({media:u,matches:r?!!a[c]:i().matchMedia(u).matches})));return C.useEffect(()=>{const u=i();l(o.map(p=>({media:p,matches:u.matchMedia(p).matches})));const c=o.map(p=>u.matchMedia(p)),d=p=>{l(f=>f.slice().map(h=>h.media===p.media?{...h,matches:p.matches}:h))};return c.forEach(p=>{typeof p.addListener=="function"?p.addListener(d):p.addEventListener("change",d)}),()=>{c.forEach(p=>{typeof p.removeListener=="function"?p.removeListener(d):p.removeEventListener("change",d)})}},[i]),s.map(u=>u.matches)}function JG(e,t,r=pR){let n=Object.keys(e).indexOf(t);if(n!==-1)return e[t];let i=r.indexOf(t);for(;i>=0;){const o=r[i];if(e.hasOwnProperty(o)){n=i;break}i-=1}if(n!==-1){const o=r[n];return e[o]}}function eY(e){var t,r;const n=Sr(e)?e:{fallback:e??"base"},o=hs().__breakpoints.details.map(({minMaxQuery:u,breakpoint:c})=>({breakpoint:c,query:u.replace("@media screen and ","")})),a=o.map(u=>u.breakpoint===n.fallback),l=ZG(o.map(u=>u.query),{fallback:a,ssr:n.ssr}).findIndex(u=>u==!0);return(r=(t=o[l])==null?void 0:t.breakpoint)!=null?r:n.fallback}function tY(e,t){var r;const n=Sr(t)?t:{fallback:t??"base"},i=eY(n),o=hs();if(!i)return;const a=Array.from(((r=o.__breakpoints)==null?void 0:r.keys)||[]),s=Array.isArray(e)?Object.fromEntries(Object.entries(YG(e,a)).map(([l,u])=>[l,u])):e;return JG(s,i,a)}function rY(e){const t=e.current;if(!t)return!1;const r=VG(t);return!r||t.contains(r)?!1:!!HG(r)}function nY(e,t){const{shouldFocus:r,visible:n,focusRef:i}=t,o=r&&!n;is(()=>{if(!o||rY(e))return;const a=(i==null?void 0:i.current)||e.current;let s;if(a)return s=requestAnimationFrame(()=>{a.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(s)}},[o,e,i])}var Os=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),hn={arrowShadowColor:Os("--popper-arrow-shadow-color"),arrowSize:Os("--popper-arrow-size","8px"),arrowSizeHalf:Os("--popper-arrow-size-half"),arrowBg:Os("--popper-arrow-bg"),transformOrigin:Os("--popper-transform-origin"),arrowOffset:Os("--popper-arrow-offset")};function iY(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var oY={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},aY=e=>oY[e],CP={scroll:!0,resize:!0};function sY(e){let t;return typeof e=="object"?t={enabled:!0,options:{...CP,...e}}:t={enabled:e,options:CP},t}var lY={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},uY={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{PP(e)},effect:({state:e})=>()=>{PP(e)}},PP=e=>{e.elements.popper.style.setProperty(hn.transformOrigin.var,aY(e.placement))},cY={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{dY(e)}},dY=e=>{var t;if(!e.placement)return;const r=fY(e.placement);if((t=e.elements)!=null&&t.arrow&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:hn.arrowSize.varRef,height:hn.arrowSize.varRef,zIndex:-1});const n={[hn.arrowSizeHalf.var]:`calc(${hn.arrowSize.varRef} / 2 - 1px)`,[hn.arrowOffset.var]:`calc(${hn.arrowSizeHalf.varRef} * -1)`};for(const i in n)e.elements.arrow.style.setProperty(i,n[i])}},fY=e=>{if(e.startsWith("top"))return{property:"bottom",value:hn.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:hn.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:hn.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:hn.arrowOffset.varRef}},pY={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{kP(e)},effect:({state:e})=>()=>{kP(e)}},kP=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=iY(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:hn.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},hY={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},mY={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function vY(e,t="ltr"){var r,n;const i=((r=hY[e])==null?void 0:r[t])||e;return t==="ltr"?i:(n=mY[e])!=null?n:i}var rn="top",Wn="bottom",Hn="right",nn="left",zS="auto",Rd=[rn,Wn,Hn,nn],jl="start",sd="end",gY="clippingParents",yR="viewport",Nu="popper",yY="reference",EP=Rd.reduce(function(e,t){return e.concat([t+"-"+jl,t+"-"+sd])},[]),bR=[].concat(Rd,[zS]).reduce(function(e,t){return e.concat([t,t+"-"+jl,t+"-"+sd])},[]),bY="beforeRead",SY="read",wY="afterRead",$Y="beforeMain",xY="main",_Y="afterMain",CY="beforeWrite",PY="write",kY="afterWrite",EY=[bY,SY,wY,$Y,xY,_Y,CY,PY,kY];function zi(e){return e?(e.nodeName||"").toLowerCase():null}function $n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ss(e){var t=$n(e).Element;return e instanceof t||e instanceof Element}function zn(e){var t=$n(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function BS(e){if(typeof ShadowRoot>"u")return!1;var t=$n(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function TY(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},o=t.elements[r];!zn(o)||!zi(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function OY(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],o=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(l,u){return l[u]="",l},{});!zn(i)||!zi(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const AY={name:"applyStyles",enabled:!0,phase:"write",fn:TY,effect:OY,requires:["computeStyles"]};function Vi(e){return e.split("-")[0]}var Za=Math.max,Ah=Math.min,Nl=Math.round;function db(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function SR(){return!/^((?!chrome|android).)*safari/i.test(db())}function Fl(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&zn(e)&&(i=e.offsetWidth>0&&Nl(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Nl(n.height)/e.offsetHeight||1);var a=ss(e)?$n(e):window,s=a.visualViewport,l=!SR()&&r,u=(n.left+(l&&s?s.offsetLeft:0))/i,c=(n.top+(l&&s?s.offsetTop:0))/o,d=n.width/i,p=n.height/o;return{width:d,height:p,top:c,right:u+d,bottom:c+p,left:u,x:u,y:c}}function US(e){var t=Fl(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function wR(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&BS(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function wo(e){return $n(e).getComputedStyle(e)}function IY(e){return["table","td","th"].indexOf(zi(e))>=0}function wa(e){return((ss(e)?e.ownerDocument:e.document)||window.document).documentElement}function Jm(e){return zi(e)==="html"?e:e.assignedSlot||e.parentNode||(BS(e)?e.host:null)||wa(e)}function TP(e){return!zn(e)||wo(e).position==="fixed"?null:e.offsetParent}function RY(e){var t=/firefox/i.test(db()),r=/Trident/i.test(db());if(r&&zn(e)){var n=wo(e);if(n.position==="fixed")return null}var i=Jm(e);for(BS(i)&&(i=i.host);zn(i)&&["html","body"].indexOf(zi(i))<0;){var o=wo(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Md(e){for(var t=$n(e),r=TP(e);r&&IY(r)&&wo(r).position==="static";)r=TP(r);return r&&(zi(r)==="html"||zi(r)==="body"&&wo(r).position==="static")?t:r||RY(e)||t}function WS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $c(e,t,r){return Za(e,Ah(t,r))}function MY(e,t,r){var n=$c(e,t,r);return n>r?r:n}function $R(){return{top:0,right:0,bottom:0,left:0}}function xR(e){return Object.assign({},$R(),e)}function _R(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var DY=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,xR(typeof t!="number"?t:_R(t,Rd))};function jY(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Vi(r.placement),l=WS(s),u=[nn,Hn].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var d=DY(i.padding,r),p=US(o),f=l==="y"?rn:nn,h=l==="y"?Wn:Hn,v=r.rects.reference[c]+r.rects.reference[l]-a[l]-r.rects.popper[c],y=a[l]-r.rects.reference[l],m=Md(o),g=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,b=v/2-y/2,S=d[f],x=g-p[c]-d[h],w=g/2-p[c]/2+b,$=$c(S,w,x),P=l;r.modifiersData[n]=(t={},t[P]=$,t.centerOffset=$-w,t)}}function NY(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||wR(t.elements.popper,i)&&(t.elements.arrow=i))}const FY={name:"arrow",enabled:!0,phase:"main",fn:jY,effect:NY,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ll(e){return e.split("-")[1]}var LY={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VY(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:Nl(r*i)/i||0,y:Nl(n*i)/i||0}}function OP(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,f=p===void 0?0:p,h=a.y,v=h===void 0?0:h,y=typeof c=="function"?c({x:f,y:v}):{x:f,y:v};f=y.x,v=y.y;var m=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),b=nn,S=rn,x=window;if(u){var w=Md(r),$="clientHeight",P="clientWidth";if(w===$n(r)&&(w=wa(r),wo(w).position!=="static"&&s==="absolute"&&($="scrollHeight",P="scrollWidth")),w=w,i===rn||(i===nn||i===Hn)&&o===sd){S=Wn;var E=d&&w===x&&x.visualViewport?x.visualViewport.height:w[$];v-=E-n.height,v*=l?1:-1}if(i===nn||(i===rn||i===Wn)&&o===sd){b=Hn;var T=d&&w===x&&x.visualViewport?x.visualViewport.width:w[P];f-=T-n.width,f*=l?1:-1}}var z=Object.assign({position:s},u&&LY),W=c===!0?VY({x:f,y:v},$n(r)):{x:f,y:v};if(f=W.x,v=W.y,l){var Y;return Object.assign({},z,(Y={},Y[S]=g?"0":"",Y[b]=m?"0":"",Y.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",Y))}return Object.assign({},z,(t={},t[S]=g?v+"px":"",t[b]=m?f+"px":"",t.transform="",t))}function zY(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,a=o===void 0?!0:o,s=r.roundOffsets,l=s===void 0?!0:s,u={placement:Vi(t.placement),variation:Ll(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,OP(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,OP(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const BY={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zY,data:{}};var Lf={passive:!0};function UY(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,a=n.resize,s=a===void 0?!0:a,l=$n(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",r.update,Lf)}),s&&l.addEventListener("resize",r.update,Lf),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",r.update,Lf)}),s&&l.removeEventListener("resize",r.update,Lf)}}const WY={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:UY,data:{}};var HY={left:"right",right:"left",bottom:"top",top:"bottom"};function Ap(e){return e.replace(/left|right|bottom|top/g,function(t){return HY[t]})}var qY={start:"end",end:"start"};function AP(e){return e.replace(/start|end/g,function(t){return qY[t]})}function HS(e){var t=$n(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function qS(e){return Fl(wa(e)).left+HS(e).scrollLeft}function KY(e,t){var r=$n(e),n=wa(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=SR();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+qS(e),y:l}}function GY(e){var t,r=wa(e),n=HS(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Za(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Za(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+qS(e),l=-n.scrollTop;return wo(i||r).direction==="rtl"&&(s+=Za(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function KS(e){var t=wo(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function CR(e){return["html","body","#document"].indexOf(zi(e))>=0?e.ownerDocument.body:zn(e)&&KS(e)?e:CR(Jm(e))}function xc(e,t){var r;t===void 0&&(t=[]);var n=CR(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=$n(n),a=i?[o].concat(o.visualViewport||[],KS(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(xc(Jm(a)))}function fb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function YY(e,t){var r=Fl(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function IP(e,t,r){return t===yR?fb(KY(e,r)):ss(t)?YY(t,r):fb(GY(wa(e)))}function XY(e){var t=xc(Jm(e)),r=["absolute","fixed"].indexOf(wo(e).position)>=0,n=r&&zn(e)?Md(e):e;return ss(n)?t.filter(function(i){return ss(i)&&wR(i,n)&&zi(i)!=="body"}):[]}function QY(e,t,r,n){var i=t==="clippingParents"?XY(e):[].concat(t),o=[].concat(i,[r]),a=o[0],s=o.reduce(function(l,u){var c=IP(e,u,n);return l.top=Za(c.top,l.top),l.right=Ah(c.right,l.right),l.bottom=Ah(c.bottom,l.bottom),l.left=Za(c.left,l.left),l},IP(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function PR(e){var t=e.reference,r=e.element,n=e.placement,i=n?Vi(n):null,o=n?Ll(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(i){case rn:l={x:a,y:t.y-r.height};break;case Wn:l={x:a,y:t.y+t.height};break;case Hn:l={x:t.x+t.width,y:s};break;case nn:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?WS(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case jl:l[u]=l[u]-(t[c]/2-r[c]/2);break;case sd:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function ld(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.strategy,a=o===void 0?e.strategy:o,s=r.boundary,l=s===void 0?gY:s,u=r.rootBoundary,c=u===void 0?yR:u,d=r.elementContext,p=d===void 0?Nu:d,f=r.altBoundary,h=f===void 0?!1:f,v=r.padding,y=v===void 0?0:v,m=xR(typeof y!="number"?y:_R(y,Rd)),g=p===Nu?yY:Nu,b=e.rects.popper,S=e.elements[h?g:p],x=QY(ss(S)?S:S.contextElement||wa(e.elements.popper),l,c,a),w=Fl(e.elements.reference),$=PR({reference:w,element:b,strategy:"absolute",placement:i}),P=fb(Object.assign({},b,$)),E=p===Nu?P:w,T={top:x.top-E.top+m.top,bottom:E.bottom-x.bottom+m.bottom,left:x.left-E.left+m.left,right:E.right-x.right+m.right},z=e.modifiersData.offset;if(p===Nu&&z){var W=z[i];Object.keys(T).forEach(function(Y){var H=[Hn,Wn].indexOf(Y)>=0?1:-1,X=[rn,Wn].indexOf(Y)>=0?"y":"x";T[Y]+=W[X]*H})}return T}function ZY(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?bR:l,c=Ll(n),d=c?s?EP:EP.filter(function(h){return Ll(h)===c}):Rd,p=d.filter(function(h){return u.indexOf(h)>=0});p.length===0&&(p=d);var f=p.reduce(function(h,v){return h[v]=ld(e,{placement:v,boundary:i,rootBoundary:o,padding:a})[Vi(v)],h},{});return Object.keys(f).sort(function(h,v){return f[h]-f[v]})}function JY(e){if(Vi(e)===zS)return[];var t=Ap(e);return[AP(e),t,AP(t)]}function eX(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!0:a,l=r.fallbackPlacements,u=r.padding,c=r.boundary,d=r.rootBoundary,p=r.altBoundary,f=r.flipVariations,h=f===void 0?!0:f,v=r.allowedAutoPlacements,y=t.options.placement,m=Vi(y),g=m===y,b=l||(g||!h?[Ap(y)]:JY(y)),S=[y].concat(b).reduce(function(k,I){return k.concat(Vi(I)===zS?ZY(t,{placement:I,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:v}):I)},[]),x=t.rects.reference,w=t.rects.popper,$=new Map,P=!0,E=S[0],T=0;T=0,X=H?"width":"height",te=ld(t,{placement:z,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),Z=H?Y?Hn:nn:Y?Wn:rn;x[X]>w[X]&&(Z=Ap(Z));var L=Ap(Z),J=[];if(o&&J.push(te[W]<=0),s&&J.push(te[Z]<=0,te[L]<=0),J.every(function(k){return k})){E=z,P=!1;break}$.set(z,J)}if(P)for(var B=h?3:1,R=function(I){var V=S.find(function(Q){var ee=$.get(Q);if(ee)return ee.slice(0,I).every(function(ue){return ue})});if(V)return E=V,"break"},U=B;U>0;U--){var M=R(U);if(M==="break")break}t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}}const tX={name:"flip",enabled:!0,phase:"main",fn:eX,requiresIfExists:["offset"],data:{_skip:!1}};function RP(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function MP(e){return[rn,Hn,Wn,nn].some(function(t){return e[t]>=0})}function rX(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=ld(t,{elementContext:"reference"}),s=ld(t,{altBoundary:!0}),l=RP(a,n),u=RP(s,i,o),c=MP(l),d=MP(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const nX={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rX};function iX(e,t,r){var n=Vi(e),i=[nn,rn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[nn,Hn].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function oX(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,a=bR.reduce(function(c,d){return c[d]=iX(d,t.rects,o),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}const aX={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:oX};function sX(e){var t=e.state,r=e.name;t.modifiersData[r]=PR({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const lX={name:"popperOffsets",enabled:!0,phase:"read",fn:sX,data:{}};function uX(e){return e==="x"?"y":"x"}function cX(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!1:a,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,d=r.padding,p=r.tether,f=p===void 0?!0:p,h=r.tetherOffset,v=h===void 0?0:h,y=ld(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=Vi(t.placement),g=Ll(t.placement),b=!g,S=WS(m),x=uX(S),w=t.modifiersData.popperOffsets,$=t.rects.reference,P=t.rects.popper,E=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,T=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(w){if(o){var Y,H=S==="y"?rn:nn,X=S==="y"?Wn:Hn,te=S==="y"?"height":"width",Z=w[S],L=Z+y[H],J=Z-y[X],B=f?-P[te]/2:0,R=g===jl?$[te]:P[te],U=g===jl?-P[te]:-$[te],M=t.elements.arrow,k=f&&M?US(M):{width:0,height:0},I=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$R(),V=I[H],Q=I[X],ee=$c(0,$[te],k[te]),ue=b?$[te]/2-B-ee-V-T.mainAxis:R-ee-V-T.mainAxis,ce=b?-$[te]/2+B+ee+Q+T.mainAxis:U+ee+Q+T.mainAxis,ie=t.elements.arrow&&Md(t.elements.arrow),Te=ie?S==="y"?ie.clientTop||0:ie.clientLeft||0:0,rt=(Y=z==null?void 0:z[S])!=null?Y:0,Oe=Z+ue-rt-Te,ae=Z+ce-rt,Ie=$c(f?Ah(L,Oe):L,Z,f?Za(J,ae):J);w[S]=Ie,W[S]=Ie-Z}if(s){var ot,Tt=S==="x"?rn:nn,$r=S==="x"?Wn:Hn,bt=w[x],qt=x==="y"?"height":"width",ft=bt+y[Tt],Ue=bt-y[$r],Jt=[rn,nn].indexOf(m)!==-1,Rr=(ot=z==null?void 0:z[x])!=null?ot:0,xr=Jt?ft:bt-$[qt]-P[qt]-Rr+T.altAxis,Wr=Jt?bt+$[qt]+P[qt]-Rr-T.altAxis:Ue,ne=f&&Jt?MY(xr,bt,Wr):$c(f?xr:ft,bt,f?Wr:Ue);w[x]=ne,W[x]=ne-bt}t.modifiersData[n]=W}}const dX={name:"preventOverflow",enabled:!0,phase:"main",fn:cX,requiresIfExists:["offset"]};function fX(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pX(e){return e===$n(e)||!zn(e)?HS(e):fX(e)}function hX(e){var t=e.getBoundingClientRect(),r=Nl(t.width)/e.offsetWidth||1,n=Nl(t.height)/e.offsetHeight||1;return r!==1||n!==1}function mX(e,t,r){r===void 0&&(r=!1);var n=zn(t),i=zn(t)&&hX(t),o=wa(t),a=Fl(e,i,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((zi(t)!=="body"||KS(o))&&(s=pX(t)),zn(t)?(l=Fl(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=qS(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function vX(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&i(l)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function gX(e){var t=vX(e);return EY.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function yX(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function bX(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var DP={placement:"bottom",modifiers:[],strategy:"absolute"};function jP(){for(var e=arguments.length,t=new Array(e),r=0;r{}),b=C.useCallback(()=>{var T;!t||!h.current||!v.current||((T=g.current)==null||T.call(g),y.current=$X(h.current,v.current,{placement:m,modifiers:[pY,cY,uY,{...lY,enabled:!!p},{name:"eventListeners",...sY(a)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:s??[0,l]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!d,options:{boundary:c}},...r??[]],strategy:i}),y.current.forceUpdate(),g.current=y.current.destroy)},[m,t,r,p,a,o,s,l,u,d,c,i]);C.useEffect(()=>()=>{var T;!h.current&&!v.current&&((T=y.current)==null||T.destroy(),y.current=null)},[]);const S=C.useCallback(T=>{h.current=T,b()},[b]),x=C.useCallback((T={},z=null)=>({...T,ref:zr(S,z)}),[S]),w=C.useCallback(T=>{v.current=T,b()},[b]),$=C.useCallback((T={},z=null)=>({...T,ref:zr(w,z),style:{...T.style,position:i,minWidth:p?void 0:"max-content",inset:"0 auto auto 0"}}),[i,w,p]),P=C.useCallback((T={},z=null)=>{const{size:W,shadowColor:Y,bg:H,style:X,...te}=T;return{...te,ref:z,"data-popper-arrow":"",style:_X(T)}},[]),E=C.useCallback((T={},z=null)=>({...T,ref:z,"data-popper-arrow-inner":""}),[]);return{update(){var T;(T=y.current)==null||T.update()},forceUpdate(){var T;(T=y.current)==null||T.forceUpdate()},transformOrigin:hn.transformOrigin.varRef,referenceRef:S,popperRef:w,getPopperProps:$,getArrowProps:P,getArrowInnerProps:E,getReferenceProps:x}}function _X(e){const{size:t,shadowColor:r,bg:n,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),r&&(o["--popper-arrow-shadow-color"]=r),n&&(o["--popper-arrow-bg"]=n),o}function CX(e={}){const{onClose:t,onOpen:r,isOpen:n,id:i}=e,o=Vt(r),a=Vt(t),[s,l]=C.useState(e.defaultIsOpen||!1),u=n!==void 0?n:s,c=n!==void 0,d=C.useId(),p=i??`disclosure-${d}`,f=C.useCallback(()=>{c||l(!1),a==null||a()},[c,a]),h=C.useCallback(()=>{c||l(!0),o==null||o()},[c,o]),v=C.useCallback(()=>{u?f():h()},[u,h,f]);function y(g={}){return{...g,"aria-expanded":u,"aria-controls":p,onClick(b){var S;(S=g.onClick)==null||S.call(g,b),v()}}}function m(g={}){return{...g,hidden:!u,id:p}}return{isOpen:u,onOpen:h,onClose:f,onToggle:v,isControlled:c,getButtonProps:y,getDisclosureProps:m}}function PX(e){const{ref:t,handler:r,enabled:n=!0}=e,i=Vt(r),a=C.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;C.useEffect(()=>{if(!n)return;const s=d=>{oy(d,t)&&(a.isPointerDown=!0)},l=d=>{if(a.ignoreEmulatedMouseEvents){a.ignoreEmulatedMouseEvents=!1;return}a.isPointerDown&&r&&oy(d,t)&&(a.isPointerDown=!1,i(d))},u=d=>{a.ignoreEmulatedMouseEvents=!0,r&&a.isPointerDown&&oy(d,t)&&(a.isPointerDown=!1,i(d))},c=kR(t.current);return c.addEventListener("mousedown",s,!0),c.addEventListener("mouseup",l,!0),c.addEventListener("touchstart",s,!0),c.addEventListener("touchend",u,!0),()=>{c.removeEventListener("mousedown",s,!0),c.removeEventListener("mouseup",l,!0),c.removeEventListener("touchstart",s,!0),c.removeEventListener("touchend",u,!0)}},[r,t,i,a,n])}function oy(e,t){var r;const n=e.target;return n&&!kR(n).contains(n)?!1:!((r=t.current)!=null&&r.contains(n))}function kR(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function kX(e){const{isOpen:t,ref:r}=e,[n,i]=C.useState(t),[o,a]=C.useState(!1);return C.useEffect(()=>{o||(i(t),a(!0))},[t,o,n]),nR(()=>r.current,"animationend",()=>{i(t)}),{present:!(t?!1:!n),onComplete(){var l;const u=LG(r.current),c=new u.CustomEvent("animationend",{bubbles:!0});(l=r.current)==null||l.dispatchEvent(c)}}}var[EX,eEe,TX,tEe]=ZK(),[OX,rEe]=ir({strict:!1,name:"MenuContext"});function AX(e,...t){const r=C.useId(),n=e||r;return C.useMemo(()=>t.map(i=>`${i}-${n}`),[n,t])}function IX(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function RX(e={}){const{id:t,closeOnSelect:r=!0,closeOnBlur:n=!0,initialFocusRef:i,autoSelect:o=!0,isLazy:a,isOpen:s,defaultIsOpen:l,onClose:u,onOpen:c,placement:d="bottom-start",lazyBehavior:p="unmount",direction:f,computePositionOnMount:h=!1,...v}=e,y=C.useRef(null),m=C.useRef(null),g=TX(),b=C.useCallback(()=>{requestAnimationFrame(()=>{var M;(M=y.current)==null||M.focus({preventScroll:!1})})},[]),S=C.useCallback(()=>{const M=setTimeout(()=>{var k;if(i)(k=i.current)==null||k.focus();else{const I=g.firstEnabled();I&&Y(I.index)}});L.current.add(M)},[g,i]),x=C.useCallback(()=>{const M=setTimeout(()=>{const k=g.lastEnabled();k&&Y(k.index)});L.current.add(M)},[g]),w=C.useCallback(()=>{c==null||c(),o?S():b()},[o,S,b,c]),{isOpen:$,onOpen:P,onClose:E,onToggle:T}=CX({isOpen:s,defaultIsOpen:l,onClose:u,onOpen:w});PX({enabled:$&&n,ref:y,handler:M=>{var k;(k=m.current)!=null&&k.contains(M.target)||E()}});const z=xX({...v,enabled:$||h,placement:d,direction:f}),[W,Y]=C.useState(-1);is(()=>{$||Y(-1)},[$]),nY(y,{focusRef:m,visible:$,shouldFocus:!0});const H=kX({isOpen:$,ref:y}),[X,te]=AX(t,"menu-button","menu-list"),Z=C.useCallback(()=>{P(),b()},[P,b]),L=C.useRef(new Set([]));C.useEffect(()=>{const M=L.current;return()=>{M.forEach(k=>clearTimeout(k)),M.clear()}},[]);const J=C.useCallback(()=>{P(),S()},[S,P]),B=C.useCallback(()=>{P(),x()},[P,x]),R=C.useCallback(()=>{var M,k;const I=IX(y.current),V=(M=y.current)==null?void 0:M.contains(I.activeElement);if(!($&&!V))return;const ee=(k=g.item(W))==null?void 0:k.node;ee==null||ee.focus({preventScroll:!0})},[$,W,g]),U=C.useRef(null);return{openAndFocusMenu:Z,openAndFocusFirstItem:J,openAndFocusLastItem:B,onTransitionEnd:R,unstable__animationState:H,descendants:g,popper:z,buttonId:X,menuId:te,forceUpdate:z.forceUpdate,orientation:"vertical",isOpen:$,onToggle:T,onOpen:P,onClose:E,menuRef:y,buttonRef:m,focusedIndex:W,closeOnSelect:r,closeOnBlur:n,autoSelect:o,setFocusedIndex:Y,isLazy:a,lazyBehavior:p,initialFocusRef:i,rafId:U}}var[MX,DX]=ir({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),ER=e=>{const{children:t}=e,r=cr("Menu",e),n=or(e),{direction:i}=hs(),{descendants:o,...a}=RX({...n,direction:i}),s=C.useMemo(()=>a,[a]),{isOpen:l,onClose:u,forceUpdate:c}=s;return _.jsx(EX,{value:o,children:_.jsx(OX,{value:s,children:_.jsx(MX,{value:r,children:ui(t,{isOpen:l,onClose:u,forceUpdate:c})})})})};ER.displayName="Menu";var TR=e=>{const{className:t,children:r,...n}=e,i=DX(),o=C.Children.only(r),a=C.isValidElement(o)?C.cloneElement(o,{focusable:"false","aria-hidden":!0,className:st("chakra-menu__icon",o.props.className)}):null,s=st("chakra-menu__icon-wrapper",t);return _.jsx(he.span,{className:s,...n,__css:i.icon,children:a})};TR.displayName="MenuIcon";var jX=e=>_.jsx(Pn,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),NX=e=>_.jsx(Pn,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function NP(e,t,r,n){C.useEffect(()=>{var i;if(!e.current||!n)return;const o=(i=e.current.ownerDocument.defaultView)!=null?i:window,a=Array.isArray(t)?t:[t],s=new o.MutationObserver(l=>{for(const u of l)u.type==="attributes"&&u.attributeName&&a.includes(u.attributeName)&&r(u)});return s.observe(e.current,{attributes:!0,attributeFilter:a}),()=>s.disconnect()})}function FX(e,t){const r=Vt(e);C.useEffect(()=>{let n=null;const i=()=>r();return t!==null&&(n=window.setInterval(i,t)),()=>{n&&window.clearInterval(n)}},[t,r])}var LX=50,FP=300;function VX(e,t){const[r,n]=C.useState(!1),[i,o]=C.useState(null),[a,s]=C.useState(!0),l=C.useRef(null),u=()=>clearTimeout(l.current);FX(()=>{i==="increment"&&e(),i==="decrement"&&t()},r?LX:null);const c=C.useCallback(()=>{a&&e(),l.current=setTimeout(()=>{s(!1),n(!0),o("increment")},FP)},[e,a]),d=C.useCallback(()=>{a&&t(),l.current=setTimeout(()=>{s(!1),n(!0),o("decrement")},FP)},[t,a]),p=C.useCallback(()=>{s(!0),n(!1),u()},[]);return C.useEffect(()=>()=>u(),[]),{up:c,down:d,stop:p,isSpinning:r}}var zX=/^[Ee0-9+\-.]$/;function BX(e){return zX.test(e)}function UX(e,t){if(e.key==null)return!0;const r=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||r?!0:t(e.key)}function WX(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:r=!0,keepWithinRange:n=!0,min:i=Number.MIN_SAFE_INTEGER,max:o=Number.MAX_SAFE_INTEGER,step:a=1,isReadOnly:s,isDisabled:l,isRequired:u,isInvalid:c,pattern:d="[0-9]*(.[0-9]+)?",inputMode:p="decimal",allowMouseWheel:f,id:h,onChange:v,precision:y,name:m,"aria-describedby":g,"aria-label":b,"aria-labelledby":S,onFocus:x,onBlur:w,onInvalid:$,getAriaValueText:P,isValidCharacter:E,format:T,parse:z,...W}=e,Y=Vt(x),H=Vt(w),X=Vt($),te=Vt(E??BX),Z=Vt(P),L=jG(e),{update:J,increment:B,decrement:R}=L,[U,M]=C.useState(!1),k=!(s||l),I=C.useRef(null),V=C.useRef(null),Q=C.useRef(null),ee=C.useRef(null),ue=C.useCallback(ne=>ne.split("").filter(te).join(""),[te]),ce=C.useCallback(ne=>{var $e;return($e=z==null?void 0:z(ne))!=null?$e:ne},[z]),ie=C.useCallback(ne=>{var $e;return(($e=T==null?void 0:T(ne))!=null?$e:ne).toString()},[T]);is(()=>{(L.valueAsNumber>o||L.valueAsNumber{if(!I.current)return;if(I.current.value!=L.value){const $e=ce(I.current.value);L.setValue(ue($e))}},[ce,ue]);const Te=C.useCallback((ne=a)=>{k&&B(ne)},[B,k,a]),rt=C.useCallback((ne=a)=>{k&&R(ne)},[R,k,a]),Oe=VX(Te,rt);NP(Q,"disabled",Oe.stop,Oe.isSpinning),NP(ee,"disabled",Oe.stop,Oe.isSpinning);const ae=C.useCallback(ne=>{if(ne.nativeEvent.isComposing)return;const We=ce(ne.currentTarget.value);J(ue(We)),V.current={start:ne.currentTarget.selectionStart,end:ne.currentTarget.selectionEnd}},[J,ue,ce]),Ie=C.useCallback(ne=>{var $e,We,Kt;Y==null||Y(ne),V.current&&(ne.target.selectionStart=(We=V.current.start)!=null?We:($e=ne.currentTarget.value)==null?void 0:$e.length,ne.currentTarget.selectionEnd=(Kt=V.current.end)!=null?Kt:ne.currentTarget.selectionStart)},[Y]),ot=C.useCallback(ne=>{if(ne.nativeEvent.isComposing)return;UX(ne,te)||ne.preventDefault();const $e=Tt(ne)*a,We=ne.key,oe={ArrowUp:()=>Te($e),ArrowDown:()=>rt($e),Home:()=>J(i),End:()=>J(o)}[We];oe&&(ne.preventDefault(),oe(ne))},[te,a,Te,rt,J,i,o]),Tt=ne=>{let $e=1;return(ne.metaKey||ne.ctrlKey)&&($e=.1),ne.shiftKey&&($e=10),$e},$r=C.useMemo(()=>{const ne=Z==null?void 0:Z(L.value);if(ne!=null)return ne;const $e=L.value.toString();return $e||void 0},[L.value,Z]),bt=C.useCallback(()=>{let ne=L.value;if(L.value==="")return;/^[eE]/.test(L.value.toString())?L.setValue(""):(L.valueAsNumbero&&(ne=o),L.cast(ne))},[L,o,i]),qt=C.useCallback(()=>{M(!1),r&&bt()},[r,M,bt]),ft=C.useCallback(()=>{t&&requestAnimationFrame(()=>{var ne;(ne=I.current)==null||ne.focus()})},[t]),Ue=C.useCallback(ne=>{ne.preventDefault(),Oe.up(),ft()},[ft,Oe]),Jt=C.useCallback(ne=>{ne.preventDefault(),Oe.down(),ft()},[ft,Oe]);nR(()=>I.current,"wheel",ne=>{var $e,We;const oe=((We=($e=I.current)==null?void 0:$e.ownerDocument)!=null?We:document).activeElement===I.current;if(!f||!oe)return;ne.preventDefault();const ve=Tt(ne)*a,un=Math.sign(ne.deltaY);un===-1?Te(ve):un===1&&rt(ve)},{passive:!1});const Rr=C.useCallback((ne={},$e=null)=>{const We=l||n&&L.isAtMax;return{...ne,ref:zr($e,Q),role:"button",tabIndex:-1,onPointerDown:He(ne.onPointerDown,Kt=>{Kt.button!==0||We||Ue(Kt)}),onPointerLeave:He(ne.onPointerLeave,Oe.stop),onPointerUp:He(ne.onPointerUp,Oe.stop),disabled:We,"aria-disabled":ao(We)}},[L.isAtMax,n,Ue,Oe.stop,l]),xr=C.useCallback((ne={},$e=null)=>{const We=l||n&&L.isAtMin;return{...ne,ref:zr($e,ee),role:"button",tabIndex:-1,onPointerDown:He(ne.onPointerDown,Kt=>{Kt.button!==0||We||Jt(Kt)}),onPointerLeave:He(ne.onPointerLeave,Oe.stop),onPointerUp:He(ne.onPointerUp,Oe.stop),disabled:We,"aria-disabled":ao(We)}},[L.isAtMin,n,Jt,Oe.stop,l]),Wr=C.useCallback((ne={},$e=null)=>{var We,Kt,oe,ve;return{name:m,inputMode:p,type:"text",pattern:d,"aria-labelledby":S,"aria-label":b,"aria-describedby":g,id:h,disabled:l,...ne,readOnly:(We=ne.readOnly)!=null?We:s,"aria-readonly":(Kt=ne.readOnly)!=null?Kt:s,"aria-required":(oe=ne.required)!=null?oe:u,required:(ve=ne.required)!=null?ve:u,ref:zr(I,$e),value:ie(L.value),role:"spinbutton","aria-valuemin":i,"aria-valuemax":o,"aria-valuenow":Number.isNaN(L.valueAsNumber)?void 0:L.valueAsNumber,"aria-invalid":ao(c??L.isOutOfRange),"aria-valuetext":$r,autoComplete:"off",autoCorrect:"off",onChange:He(ne.onChange,ae),onKeyDown:He(ne.onKeyDown,ot),onFocus:He(ne.onFocus,Ie,()=>M(!0)),onBlur:He(ne.onBlur,H,qt)}},[m,p,d,S,b,ie,g,h,l,u,s,c,L.value,L.valueAsNumber,L.isOutOfRange,i,o,$r,ae,ot,Ie,H,qt]);return{value:ie(L.value),valueAsNumber:L.valueAsNumber,isFocused:U,isDisabled:l,isReadOnly:s,getIncrementButtonProps:Rr,getDecrementButtonProps:xr,getInputProps:Wr,htmlProps:W}}var[HX,ev]=ir({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[qX,GS]=ir({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),OR=Ee(function(t,r){const n=cr("NumberInput",t),i=or(t),o=MS(i),{htmlProps:a,...s}=WX(o),l=C.useMemo(()=>s,[s]);return _.jsx(qX,{value:l,children:_.jsx(HX,{value:n,children:_.jsx(he.div,{...a,ref:r,className:st("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...n.root}})})})});OR.displayName="NumberInput";var AR=Ee(function(t,r){const n=ev();return _.jsx(he.div,{"aria-hidden":!0,ref:r,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...n.stepperGroup}})});AR.displayName="NumberInputStepper";var IR=Ee(function(t,r){const{getInputProps:n}=GS(),i=n(t,r),o=ev();return _.jsx(he.input,{...i,className:st("chakra-numberinput__field",t.className),__css:{width:"100%",...o.field}})});IR.displayName="NumberInputField";var RR=he("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),MR=Ee(function(t,r){var n;const i=ev(),{getDecrementButtonProps:o}=GS(),a=o(t,r);return _.jsx(RR,{...a,__css:i.stepper,children:(n=t.children)!=null?n:_.jsx(jX,{})})});MR.displayName="NumberDecrementStepper";var DR=Ee(function(t,r){var n;const{getIncrementButtonProps:i}=GS(),o=i(t,r),a=ev();return _.jsx(RR,{...o,__css:a.stepper,children:(n=t.children)!=null?n:_.jsx(NX,{})})});DR.displayName="NumberIncrementStepper";function KX(e){return e&&Sr(e)&&Sr(e.target)}function GX(e={}){const{onChange:t,value:r,defaultValue:n,name:i,isDisabled:o,isFocusable:a,isNative:s,...l}=e,[u,c]=C.useState(n||""),d=typeof r<"u",p=d?r:u,f=C.useRef(null),h=C.useCallback(()=>{const x=f.current;if(!x)return;let w="input:not(:disabled):checked";const $=x.querySelector(w);if($){$.focus();return}w="input:not(:disabled)";const P=x.querySelector(w);P==null||P.focus()},[]),y=`radio-${C.useId()}`,m=i||y,g=C.useCallback(x=>{const w=KX(x)?x.target.value:x;d||c(w),t==null||t(String(w))},[t,d]),b=C.useCallback((x={},w=null)=>({...x,ref:zr(w,f),role:"radiogroup"}),[]),S=C.useCallback((x={},w=null)=>({...x,ref:w,name:m,[s?"checked":"isChecked"]:p!=null?x.value===p:void 0,onChange(P){g(P)},"data-radiogroup":!0}),[s,m,g,p]);return{getRootProps:b,getRadioProps:S,name:m,ref:f,focus:h,setValue:c,value:p,onChange:g,isDisabled:o,isFocusable:a,htmlProps:l}}var[YX,jR]=ir({name:"RadioGroupContext",strict:!1}),YS=Ee((e,t)=>{const{colorScheme:r,size:n,variant:i,children:o,className:a,isDisabled:s,isFocusable:l,...u}=e,{value:c,onChange:d,getRootProps:p,name:f,htmlProps:h}=GX(u),v=C.useMemo(()=>({name:f,size:n,onChange:d,colorScheme:r,value:c,variant:i,isDisabled:s,isFocusable:l}),[f,n,d,r,c,i,s,l]);return _.jsx(YX,{value:v,children:_.jsx(he.div,{...p(h,t),className:st("chakra-radio-group",a),children:o})})});YS.displayName="RadioGroup";var XX={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function QX(e={}){const{defaultChecked:t,isChecked:r,isFocusable:n,isDisabled:i,isReadOnly:o,isRequired:a,onChange:s,isInvalid:l,name:u,value:c,id:d,"data-radiogroup":p,"aria-describedby":f,...h}=e,v=`radio-${C.useId()}`,y=gs(),g=!!jR()||!!p;let S=!!y&&!g?y.id:v;S=d??S;const x=i??(y==null?void 0:y.isDisabled),w=o??(y==null?void 0:y.isReadOnly),$=a??(y==null?void 0:y.isRequired),P=l??(y==null?void 0:y.isInvalid),[E,T]=C.useState(!1),[z,W]=C.useState(!1),[Y,H]=C.useState(!1),[X,te]=C.useState(!1),[Z,L]=C.useState(!!t),J=typeof r<"u",B=J?r:Z;C.useEffect(()=>tR(T),[]);const R=C.useCallback(ie=>{if(w||x){ie.preventDefault();return}J||L(ie.target.checked),s==null||s(ie)},[J,x,w,s]),U=C.useCallback(ie=>{ie.key===" "&&te(!0)},[te]),M=C.useCallback(ie=>{ie.key===" "&&te(!1)},[te]),k=C.useCallback((ie={},Te=null)=>({...ie,ref:Te,"data-active":_e(X),"data-hover":_e(Y),"data-disabled":_e(x),"data-invalid":_e(P),"data-checked":_e(B),"data-focus":_e(z),"data-focus-visible":_e(z&&E),"data-readonly":_e(w),"aria-hidden":!0,onMouseDown:He(ie.onMouseDown,()=>te(!0)),onMouseUp:He(ie.onMouseUp,()=>te(!1)),onMouseEnter:He(ie.onMouseEnter,()=>H(!0)),onMouseLeave:He(ie.onMouseLeave,()=>H(!1))}),[X,Y,x,P,B,z,w,E]),{onFocus:I,onBlur:V}=y??{},Q=C.useCallback((ie={},Te=null)=>{const rt=x&&!n;return{...ie,id:S,ref:Te,type:"radio",name:u,value:c,onChange:He(ie.onChange,R),onBlur:He(V,ie.onBlur,()=>W(!1)),onFocus:He(I,ie.onFocus,()=>W(!0)),onKeyDown:He(ie.onKeyDown,U),onKeyUp:He(ie.onKeyUp,M),checked:B,disabled:rt,readOnly:w,required:$,"aria-invalid":ao(P),"aria-disabled":ao(rt),"aria-required":ao($),"data-readonly":_e(w),"aria-describedby":f,style:XX}},[x,n,S,u,c,R,V,I,U,M,B,w,$,P,f]);return{state:{isInvalid:P,isFocused:z,isChecked:B,isActive:X,isHovered:Y,isDisabled:x,isReadOnly:w,isRequired:$},getCheckboxProps:k,getRadioProps:k,getInputProps:Q,getLabelProps:(ie={},Te=null)=>({...ie,ref:Te,onMouseDown:He(ie.onMouseDown,ZX),"data-disabled":_e(x),"data-checked":_e(B),"data-invalid":_e(P)}),getRootProps:(ie,Te=null)=>({...ie,ref:Te,"data-disabled":_e(x),"data-checked":_e(B),"data-invalid":_e(P)}),htmlProps:h}}function ZX(e){e.preventDefault(),e.stopPropagation()}function JX(e,t){const r={},n={};for(const[i,o]of Object.entries(e))t.includes(i)?r[i]=o:n[i]=o;return[r,n]}var _c=Ee((e,t)=>{var r;const n=jR(),{onChange:i,value:o}=e,a=cr("Radio",{...n,...e}),s=or(e),{spacing:l="0.5rem",children:u,isDisabled:c=n==null?void 0:n.isDisabled,isFocusable:d=n==null?void 0:n.isFocusable,inputProps:p,...f}=s;let h=e.isChecked;(n==null?void 0:n.value)!=null&&o!=null&&(h=n.value===o);let v=i;n!=null&&n.onChange&&o!=null&&(v=LO(n.onChange,i));const y=(r=e==null?void 0:e.name)!=null?r:n==null?void 0:n.name,{getInputProps:m,getCheckboxProps:g,getLabelProps:b,getRootProps:S,htmlProps:x}=QX({...f,isChecked:h,isFocusable:d,isDisabled:c,onChange:v,name:y}),[w,$]=JX(x,F4),P=g($),E=m(p,t),T=b(),z=Object.assign({},w,S()),W={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...a.container},Y={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...a.control},H={userSelect:"none",marginStart:l,...a.label};return _.jsxs(he.label,{className:"chakra-radio",...z,__css:W,children:[_.jsx("input",{className:"chakra-radio__input",...E}),_.jsx(he.span,{className:"chakra-radio__control",...P,__css:Y}),u&&_.jsx(he.span,{className:"chakra-radio__label",...T,__css:H,children:u})]})});_c.displayName="Radio";var As=e=>e?"":void 0,ay=e=>e?!0:void 0,Dd=(...e)=>e.filter(Boolean).join(" ");function sy(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function Vf(e){const{orientation:t,vertical:r,horizontal:n}=e;return t==="vertical"?r:n}var Ip={width:0,height:0},zf=e=>e||Ip;function eQ(e){const{orientation:t,thumbPercents:r,thumbRects:n,isReversed:i}=e,o=v=>{var y;const m=(y=n[v])!=null?y:Ip;return{position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...Vf({orientation:t,vertical:{bottom:`calc(${r[v]}% - ${m.height/2}px)`},horizontal:{left:`calc(${r[v]}% - ${m.width/2}px)`}})}},a=t==="vertical"?n.reduce((v,y)=>zf(v).height>zf(y).height?v:y,Ip):n.reduce((v,y)=>zf(v).width>zf(y).width?v:y,Ip),s={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0,...Vf({orientation:t,vertical:a?{paddingLeft:a.width/2,paddingRight:a.width/2}:{},horizontal:a?{paddingTop:a.height/2,paddingBottom:a.height/2}:{}})},l={position:"absolute",...Vf({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},u=r.length===1,c=[0,i?100-r[0]:r[0]],d=u?c:r;let p=d[0];!u&&i&&(p=100-p);const f=Math.abs(d[d.length-1]-d[0]),h={...l,...Vf({orientation:t,vertical:i?{height:`${f}%`,top:`${p}%`}:{height:`${f}%`,bottom:`${p}%`},horizontal:i?{width:`${f}%`,right:`${p}%`}:{width:`${f}%`,left:`${p}%`}})};return{trackStyle:l,innerTrackStyle:h,rootStyle:s,getThumbStyle:o}}function tQ(e){const{isReversed:t,direction:r,orientation:n}=e;return r==="ltr"||n==="vertical"?t:!t}function rQ(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function nQ(e){const t=oQ(e);return typeof t.PointerEvent<"u"&&e instanceof t.PointerEvent?e.pointerType==="mouse":e instanceof t.MouseEvent}function NR(e){return!!e.touches}function iQ(e){return NR(e)&&e.touches.length>1}function oQ(e){var t;return(t=e.view)!=null?t:window}function aQ(e,t="page"){const r=e.touches[0]||e.changedTouches[0];return{x:r[`${t}X`],y:r[`${t}Y`]}}function sQ(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}function FR(e,t="page"){return NR(e)?aQ(e,t):sQ(e,t)}function lQ(e){return t=>{const r=nQ(t);(!r||r&&t.button===0)&&e(t)}}function uQ(e,t=!1){function r(i){e(i,{point:FR(i)})}return t?lQ(r):r}function Rp(e,t,r,n){return rQ(e,t,uQ(r,t==="pointerdown"),n)}var cQ=Object.defineProperty,dQ=(e,t,r)=>t in e?cQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Jn=(e,t,r)=>(dQ(e,typeof t!="symbol"?t+"":t,r),r),fQ=class{constructor(e,t,r){Jn(this,"history",[]),Jn(this,"startEvent",null),Jn(this,"lastEvent",null),Jn(this,"lastEventInfo",null),Jn(this,"handlers",{}),Jn(this,"removeListeners",()=>{}),Jn(this,"threshold",3),Jn(this,"win"),Jn(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const s=ly(this.lastEventInfo,this.history),l=this.startEvent!==null,u=vQ(s.offset,{x:0,y:0})>=this.threshold;if(!l&&!u)return;const{timestamp:c}=rC();this.history.push({...s.point,timestamp:c});const{onStart:d,onMove:p}=this.handlers;l||(d==null||d(this.lastEvent,s),this.startEvent=this.lastEvent),p==null||p(this.lastEvent,s)}),Jn(this,"onPointerMove",(s,l)=>{this.lastEvent=s,this.lastEventInfo=l,P8.update(this.updatePoint,!0)}),Jn(this,"onPointerUp",(s,l)=>{const u=ly(l,this.history),{onEnd:c,onSessionEnd:d}=this.handlers;d==null||d(s,u),this.end(),!(!c||!this.startEvent)&&(c==null||c(s,u))});var n;if(this.win=(n=e.view)!=null?n:window,iQ(e))return;this.handlers=t,r&&(this.threshold=r),e.stopPropagation(),e.preventDefault();const i={point:FR(e)},{timestamp:o}=rC();this.history=[{...i.point,timestamp:o}];const{onSessionStart:a}=t;a==null||a(e,ly(i,this.history)),this.removeListeners=mQ(Rp(this.win,"pointermove",this.onPointerMove),Rp(this.win,"pointerup",this.onPointerUp),Rp(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){var e;(e=this.removeListeners)==null||e.call(this),k8.update(this.updatePoint)}};function LP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ly(e,t){return{point:e.point,delta:LP(e.point,t[t.length-1]),offset:LP(e.point,t[0]),velocity:hQ(t,.1)}}var pQ=e=>e*1e3;function hQ(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=e[e.length-1];for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>pQ(t)));)r--;if(!n)return{x:0,y:0};const o=(i.timestamp-n.timestamp)/1e3;if(o===0)return{x:0,y:0};const a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function mQ(...e){return t=>e.reduce((r,n)=>n(r),t)}function uy(e,t){return Math.abs(e-t)}function VP(e){return"x"in e&&"y"in e}function vQ(e,t){if(typeof e=="number"&&typeof t=="number")return uy(e,t);if(VP(e)&&VP(t)){const r=uy(e.x,t.x),n=uy(e.y,t.y);return Math.sqrt(r**2+n**2)}return 0}function LR(e){const t=C.useRef(null);return t.current=e,t}function gQ(e,t){const{onPan:r,onPanStart:n,onPanEnd:i,onPanSessionStart:o,onPanSessionEnd:a,threshold:s}=t,l=!!(r||n||i||o||a),u=C.useRef(null),c=LR({onSessionStart:o,onSessionEnd:a,onStart:n,onMove:r,onEnd(d,p){u.current=null,i==null||i(d,p)}});C.useEffect(()=>{var d;(d=u.current)==null||d.updateHandlers(c.current)}),C.useEffect(()=>{const d=e.current;if(!d||!l)return;function p(f){u.current=new fQ(f,c.current,s)}return Rp(d,"pointerdown",p)},[e,l,c,s]),C.useEffect(()=>()=>{var d;(d=u.current)==null||d.end(),u.current=null},[])}function yQ(e,t){if(!e){t(void 0);return}t({width:e.offsetWidth,height:e.offsetHeight});const r=e.ownerDocument.defaultView??window,n=new r.ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const[o]=i;let a,s;if("borderBoxSize"in o){const l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;t({width:a,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}var bQ=globalThis!=null&&globalThis.document?C.useLayoutEffect:C.useEffect;function SQ(e,t){var r,n;if(!e||!e.parentElement)return;const i=(n=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?n:window,o=new i.MutationObserver(()=>{t()});return o.observe(e.parentElement,{childList:!0}),()=>{o.disconnect()}}function wQ({getNodes:e,observeMutation:t=!0}){const[r,n]=C.useState([]),[i,o]=C.useState(0);return bQ(()=>{const a=e(),s=a.map((l,u)=>yQ(l,c=>{n(d=>[...d.slice(0,u),c,...d.slice(u+1)])}));if(t){const l=a[0];s.push(SQ(l,()=>{o(u=>u+1)}))}return()=>{s.forEach(l=>{l==null||l()})}},[i]),r}function $Q(e){return typeof e=="object"&&e!==null&&"current"in e}function xQ(e){const[t]=wQ({observeMutation:!1,getNodes(){return[$Q(e)?e.current:e]}});return t}function _Q(e){var t;const{min:r=0,max:n=100,onChange:i,value:o,defaultValue:a,isReversed:s,direction:l="ltr",orientation:u="horizontal",id:c,isDisabled:d,isReadOnly:p,onChangeStart:f,onChangeEnd:h,step:v=1,getAriaValueText:y,"aria-valuetext":m,"aria-label":g,"aria-labelledby":b,name:S,focusThumbOnChange:x=!0,...w}=e,$=Vt(f),P=Vt(h),E=Vt(y),T=tQ({isReversed:s,direction:l,orientation:u}),[z,W]=qI({value:o,defaultValue:a??PQ(r,n),onChange:i}),[Y,H]=C.useState(!1),[X,te]=C.useState(!1),Z=!(d||p),L=(n-r)/10,J=v||(n-r)/100,B=Op(z,r,n),R=n-B+r,M=$P(T?R:B,r,n),k=u==="vertical",I=LR({min:r,max:n,step:v,isDisabled:d,value:B,isInteractive:Z,isReversed:T,isVertical:k,eventSource:null,focusThumbOnChange:x,orientation:u}),V=C.useRef(null),Q=C.useRef(null),ee=C.useRef(null),ue=C.useId(),ce=c??ue,[ie,Te]=[`slider-thumb-${ce}`,`slider-track-${ce}`],rt=C.useCallback(oe=>{var ve,un;if(!V.current)return;const pr=I.current;pr.eventSource="pointer";const Gt=V.current.getBoundingClientRect(),{clientX:er,clientY:gu}=(un=(ve=oe.touches)==null?void 0:ve[0])!=null?un:oe,xs=k?Gt.bottom-gu:er-Gt.left,yu=k?Gt.height:Gt.width;let To=xs/yu;T&&(To=1-To);let cn=DG(To,pr.min,pr.max);return pr.step&&(cn=parseFloat(xP(cn,pr.min,pr.step))),cn=Op(cn,pr.min,pr.max),cn},[k,T,I]),Oe=C.useCallback(oe=>{const ve=I.current;ve.isInteractive&&(oe=parseFloat(xP(oe,ve.min,J)),oe=Op(oe,ve.min,ve.max),W(oe))},[J,W,I]),ae=C.useMemo(()=>({stepUp(oe=J){const ve=T?B-oe:B+oe;Oe(ve)},stepDown(oe=J){const ve=T?B+oe:B-oe;Oe(ve)},reset(){Oe(a||0)},stepTo(oe){Oe(oe)}}),[Oe,T,B,J,a]),Ie=C.useCallback(oe=>{const ve=I.current,pr={ArrowRight:()=>ae.stepUp(),ArrowUp:()=>ae.stepUp(),ArrowLeft:()=>ae.stepDown(),ArrowDown:()=>ae.stepDown(),PageUp:()=>ae.stepUp(L),PageDown:()=>ae.stepDown(L),Home:()=>Oe(ve.min),End:()=>Oe(ve.max)}[oe.key];pr&&(oe.preventDefault(),oe.stopPropagation(),pr(oe),ve.eventSource="keyboard")},[ae,Oe,L,I]),ot=(t=E==null?void 0:E(B))!=null?t:m,Tt=xQ(Q),{getThumbStyle:$r,rootStyle:bt,trackStyle:qt,innerTrackStyle:ft}=C.useMemo(()=>{const oe=I.current,ve=Tt??{width:0,height:0};return eQ({isReversed:T,orientation:oe.orientation,thumbRects:[ve],thumbPercents:[M]})},[T,Tt,M,I]),Ue=C.useCallback(()=>{I.current.focusThumbOnChange&&setTimeout(()=>{var ve;return(ve=Q.current)==null?void 0:ve.focus()})},[I]);is(()=>{const oe=I.current;Ue(),oe.eventSource==="keyboard"&&(P==null||P(oe.value))},[B,P]);function Jt(oe){const ve=rt(oe);ve!=null&&ve!==I.current.value&&W(ve)}gQ(ee,{onPanSessionStart(oe){const ve=I.current;ve.isInteractive&&(H(!0),Ue(),Jt(oe),$==null||$(ve.value))},onPanSessionEnd(){const oe=I.current;oe.isInteractive&&(H(!1),P==null||P(oe.value))},onPan(oe){I.current.isInteractive&&Jt(oe)}});const Rr=C.useCallback((oe={},ve=null)=>({...oe,...w,ref:zr(ve,ee),tabIndex:-1,"aria-disabled":ay(d),"data-focused":As(X),style:{...oe.style,...bt}}),[w,d,X,bt]),xr=C.useCallback((oe={},ve=null)=>({...oe,ref:zr(ve,V),id:Te,"data-disabled":As(d),style:{...oe.style,...qt}}),[d,Te,qt]),Wr=C.useCallback((oe={},ve=null)=>({...oe,ref:ve,style:{...oe.style,...ft}}),[ft]),ne=C.useCallback((oe={},ve=null)=>({...oe,ref:zr(ve,Q),role:"slider",tabIndex:Z?0:void 0,id:ie,"data-active":As(Y),"aria-valuetext":ot,"aria-valuemin":r,"aria-valuemax":n,"aria-valuenow":B,"aria-orientation":u,"aria-disabled":ay(d),"aria-readonly":ay(p),"aria-label":g,"aria-labelledby":g?void 0:b,style:{...oe.style,...$r(0)},onKeyDown:sy(oe.onKeyDown,Ie),onFocus:sy(oe.onFocus,()=>te(!0)),onBlur:sy(oe.onBlur,()=>te(!1))}),[Z,ie,Y,ot,r,n,B,u,d,p,g,b,$r,Ie]),$e=C.useCallback((oe,ve=null)=>{const un=!(oe.valuen),pr=B>=oe.value,Gt=$P(oe.value,r,n),er={position:"absolute",pointerEvents:"none",...CQ({orientation:u,vertical:{bottom:T?`${100-Gt}%`:`${Gt}%`},horizontal:{left:T?`${100-Gt}%`:`${Gt}%`}})};return{...oe,ref:ve,role:"presentation","aria-hidden":!0,"data-disabled":As(d),"data-invalid":As(!un),"data-highlighted":As(pr),style:{...oe.style,...er}}},[d,T,n,r,u,B]),We=C.useCallback((oe={},ve=null)=>({...oe,ref:ve,type:"hidden",value:B,name:S}),[S,B]);return{state:{value:B,isFocused:X,isDragging:Y},actions:ae,getRootProps:Rr,getTrackProps:xr,getInnerTrackProps:Wr,getThumbProps:ne,getMarkerProps:$e,getInputProps:We}}function CQ(e){const{orientation:t,vertical:r,horizontal:n}=e;return t==="vertical"?r:n}function PQ(e,t){return t"}),[EQ,rv]=ir({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:""}),VR=Ee((e,t)=>{var r;const n={...e,orientation:(r=e==null?void 0:e.orientation)!=null?r:"horizontal"},i=cr("Slider",n),o=or(n),{direction:a}=hs();o.direction=a;const{getInputProps:s,getRootProps:l,...u}=_Q(o),c=l(),d=s({},t);return _.jsx(kQ,{value:u,children:_.jsx(EQ,{value:i,children:_.jsxs(he.div,{...c,className:Dd("chakra-slider",n.className),__css:i.container,children:[n.children,_.jsx("input",{...d})]})})})});VR.displayName="Slider";var zR=Ee((e,t)=>{const{getThumbProps:r}=tv(),n=rv(),i=r(e,t);return _.jsx(he.div,{...i,className:Dd("chakra-slider__thumb",e.className),__css:n.thumb})});zR.displayName="SliderThumb";var BR=Ee((e,t)=>{const{getTrackProps:r}=tv(),n=rv(),i=r(e,t);return _.jsx(he.div,{...i,className:Dd("chakra-slider__track",e.className),__css:n.track})});BR.displayName="SliderTrack";var UR=Ee((e,t)=>{const{getInnerTrackProps:r}=tv(),n=rv(),i=r(e,t);return _.jsx(he.div,{...i,className:Dd("chakra-slider__filled-track",e.className),__css:n.filledTrack})});UR.displayName="SliderFilledTrack";var TQ=Ee((e,t)=>{const{getMarkerProps:r}=tv(),n=rv(),i=r(e,t);return _.jsx(he.div,{...i,className:Dd("chakra-slider__marker",e.className),__css:n.mark})});TQ.displayName="SliderMark";function OQ(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var AQ=["h","minH","height","minHeight"],XS=Ee((e,t)=>{const r=yi("Textarea",e),{className:n,rows:i,...o}=or(e),a=RS(o),s=i?OQ(r,AQ):r;return _.jsx(he.textarea,{ref:t,rows:i,...a,className:st("chakra-textarea",n),__css:s})});XS.displayName="Textarea";const WR=e=>{try{return!!new URL(e)}catch{return!1}};var al=(e=>(e.Default="Default",e.Manual="Manual",e))(al||{}),Zi=(e=>(e.HTML="HTML",e.XLSX="XLSX",e.ASCII="ASCII",e))(Zi||{});const IQ="app-worker";var QS=(e=>(e.Loaded="loaded",e.Request="request",e.Success="success",e.Error="error",e))(QS||{});function HR(e){return e.type==="error"||e.type==="success"}function RQ(e){return{castError:e}}class MQ{constructor(t){$u(this,"callbacks",new Map);this.logic=t}handleMessage(t){if(!HR(t))return;const r=this.callbacks.get(t.requestId);if(r)switch(this.callbacks.delete(t.requestId),t.type){case"success":return r.resolve(t.result);case"error":return r.reject(t.error)}}async call(t){const r=new Promise((n,i)=>{if(this.callbacks.has(t.id)){i(this.logic.castError(new Error("Duplicate request id")));return}this.callbacks.set(t.id,{resolve:n,reject:i})});return this.sendRequest(t),r}}class DQ extends MQ{constructor(r,n){super(r);$u(this,"requests",new Set);$u(this,"handleMessageEvent",({data:r})=>{HR(r)&&this.requests.delete(r.requestId),this.handleMessage(r)});$u(this,"handleErrorEvent",r=>{for(const n of this.requests)this.handleMessage({requestId:n,type:QS.Error,error:this.logic.castError(r)});this.requests.clear()});this.worker=n}sendRequest(r){this.requests.add(r.id),this.worker.postMessage(r)}start(){this.worker.addEventListener("message",this.handleMessageEvent),this.worker.addEventListener("error",this.handleErrorEvent)}stop(){this.worker.removeEventListener("error",this.handleErrorEvent),this.worker.removeEventListener("message",this.handleMessageEvent)}}var qR=(e=>(e.CreateTable="create-table",e))(qR||{});function jQ(e){return new Worker("/json-to-table/assets/app-worker-3yGJs4_E.js",{name:e==null?void 0:e.name})}class NQ extends DQ{constructor(){super(RQ(String),new jQ)}createTable(t,r){return this.call({id:Date.now().toString(16),type:QS.Request,handlerId:IQ,request:{type:qR.CreateTable,data:t,transformConfig:r}})}}function Rt(e){return typeof File<"u"&&e instanceof File||typeof Date<"u"&&e instanceof Date?!1:typeof e=="object"&&e!==null&&!Array.isArray(e)}function FQ(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),Rt(e.additionalItems)}function zP(e){if(e==="")return;if(e===null)return null;if(/\.$/.test(e)||/\.0$/.test(e)||/\.\d*0$/.test(e))return e;const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)?t:e}const Jl="__additional_property",pb="additionalProperties",jd="allOf",Vl="anyOf",KR="const",LQ="default",nv="dependencies",VQ="enum",ci="__errors",Yo="$id",zQ="if",la="items",BQ="_$junk_option_schema_id$_",Mp="$name",ua="oneOf",Lt="properties",UQ="required",Ih="submitButtonOptions",nr="$ref",ZS="__rjsf_additionalProperties",GR="__rjsf_rootSchema",WQ="ui:field",JS="ui:widget",Cc="ui:options",HQ="ui:globalOptions";function Ye(e={},t={}){return Object.keys(e).filter(r=>r.indexOf("ui:")===0).reduce((r,n)=>{const i=e[n];return n===JS&&Rt(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):n===Cc&&Rt(i)?{...r,...i}:{...r,[n.substring(3)]:i}},{...t})}function YR(e,t={},r){if(!e.additionalProperties)return!1;const{expandable:n=!0}=Ye(t);return n===!1?n:e.maxProperties!==void 0&&r?Object.keys(r).length({...r,[i]:hb(n)}),t);if(ew(e)){const r=e;return Object.keys(r).reduce((n,i)=>({...n,[i]:hb(r[i])}),t)}return t}function _Z(){this.__data__=[],this.size=0}var CZ=_Z;function PZ(e,t){return e===t||e!==e&&t!==t}var ru=PZ,kZ=ru;function EZ(e,t){for(var r=e.length;r--;)if(kZ(e[r][0],t))return r;return-1}var ov=EZ,TZ=ov,OZ=Array.prototype,AZ=OZ.splice;function IZ(e){var t=this.__data__,r=TZ(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():AZ.call(t,r,1),--this.size,!0}var RZ=IZ,MZ=ov;function DZ(e){var t=this.__data__,r=MZ(t,e);return r<0?void 0:t[r][1]}var jZ=DZ,NZ=ov;function FZ(e){return NZ(this.__data__,e)>-1}var LZ=FZ,VZ=ov;function zZ(e,t){var r=this.__data__,n=VZ(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var BZ=zZ,UZ=CZ,WZ=RZ,HZ=jZ,qZ=LZ,KZ=BZ;function nu(e){var t=-1,r=e==null?0:e.length;for(this.clear();++ts))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,f=r&dte?new ste:void 0;for(o.set(e,t),o.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=dre}var aw=fre,pre=Co,hre=aw,mre=Kn,vre="[object Arguments]",gre="[object Array]",yre="[object Boolean]",bre="[object Date]",Sre="[object Error]",wre="[object Function]",$re="[object Map]",xre="[object Number]",_re="[object Object]",Cre="[object RegExp]",Pre="[object Set]",kre="[object String]",Ere="[object WeakMap]",Tre="[object ArrayBuffer]",Ore="[object DataView]",Are="[object Float32Array]",Ire="[object Float64Array]",Rre="[object Int8Array]",Mre="[object Int16Array]",Dre="[object Int32Array]",jre="[object Uint8Array]",Nre="[object Uint8ClampedArray]",Fre="[object Uint16Array]",Lre="[object Uint32Array]",$t={};$t[Are]=$t[Ire]=$t[Rre]=$t[Mre]=$t[Dre]=$t[jre]=$t[Nre]=$t[Fre]=$t[Lre]=!0;$t[vre]=$t[gre]=$t[Tre]=$t[yre]=$t[Ore]=$t[bre]=$t[Sre]=$t[wre]=$t[$re]=$t[xre]=$t[_re]=$t[Cre]=$t[Pre]=$t[kre]=$t[Ere]=!1;function Vre(e){return mre(e)&&hre(e.length)&&!!$t[pre(e)]}var zre=Vre;function Bre(e){return function(t){return e(t)}}var bs=Bre,Dh={exports:{}};Dh.exports;(function(e,t){var r=XR,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(Dh,Dh.exports);var sw=Dh.exports,Ure=zre,Wre=bs,JP=sw,ek=JP&&JP.isTypedArray,Hre=ek?Wre(ek):Ure,Fd=Hre,qre=oM,Kre=Nd,Gre=fr,Yre=su,Xre=pv,Qre=Fd,Zre=Object.prototype,Jre=Zre.hasOwnProperty;function ene(e,t){var r=Gre(e),n=!r&&Kre(e),i=!r&&!n&&Yre(e),o=!r&&!n&&!i&&Qre(e),a=r||n||i||o,s=a?qre(e.length,String):[],l=s.length;for(var u in e)(t||Jre.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Xre(u,l)))&&s.push(u);return s}var sM=ene,tne=Object.prototype;function rne(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||tne;return e===r}var hv=rne,nne=ZR,ine=nne(Object.keys,Object),one=ine,ane=hv,sne=one,lne=Object.prototype,une=lne.hasOwnProperty;function cne(e){if(!ane(e))return sne(e);var t=[];for(var r in Object(e))une.call(e,r)&&r!="constructor"&&t.push(r);return t}var lM=cne,dne=sv,fne=aw;function pne(e){return e!=null&&fne(e.length)&&!dne(e)}var Ss=pne,hne=sM,mne=lM,vne=Ss;function gne(e){return vne(e)?hne(e):mne(e)}var Ld=gne,yne=nM,bne=ow,Sne=Ld;function wne(e){return yne(e,Sne,bne)}var uM=wne,tk=uM,$ne=1,xne=Object.prototype,_ne=xne.hasOwnProperty;function Cne(e,t,r,n,i,o){var a=r&$ne,s=tk(e),l=s.length,u=tk(t),c=u.length;if(l!=c&&!a)return!1;for(var d=l;d--;){var p=s[d];if(!(a?p in t:_ne.call(t,p)))return!1}var f=o.get(e),h=o.get(t);if(f&&h)return f==t&&h==e;var v=!0;o.set(e,t),o.set(t,e);for(var y=a;++d{if(typeof r=="function"&&typeof n=="function")return!0})}var sie=Co,lie=Kn,uie="[object Symbol]";function cie(e){return typeof e=="symbol"||lie(e)&&sie(e)==uie}var uu=cie,die=fr,fie=uu,pie=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hie=/^\w*$/;function mie(e,t){if(die(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||fie(e)?!0:hie.test(e)||!pie.test(e)||t!=null&&e in Object(t)}var lw=mie,pM=rw,vie="Expected a function";function uw(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(vie);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(uw.Cache||pM),r}uw.Cache=pM;var gie=uw,yie=gie,bie=500;function Sie(e){var t=yie(e,function(n){return r.size===bie&&r.clear(),n}),r=t.cache;return t}var wie=Sie,$ie=wie,xie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_ie=/\\(\\)?/g,Cie=$ie(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(xie,function(r,n,i,o){t.push(i?o.replace(_ie,"$1"):n||r)}),t}),hM=Cie;function Pie(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++ro,typeof e[n]>"u"&&(Array.isArray(e)&&n==="-"&&(n=e.length),i&&(t[o]!==""&&t[o]<1/0||t[o]==="-"?e[n]=[]:e[n]={})),!i)break;e=e[n]}var s=e[n];return r===void 0?delete e[n]:e[n]=r,s}function cw(e){if(typeof e=="string"){if(e=e.split("/"),e[0]==="")return e;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(e)){for(const t of e)if(typeof t!="string"&&typeof t!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function bM(e,t){if(typeof e!="object")throw new Error("Invalid input object.");t=cw(t);var r=t.length;if(r===1)return e;for(var n=1;ni?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n0&&r(s)?t>1?MM(s,t-1,r,n,i):Mle(i,s):n||(i[i.length]=s)}return i}var yv=MM,jle=yv;function Nle(e){var t=e==null?0:e.length;return t?jle(e,1):[]}var mw=Nle;function Fle(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var DM=Fle,Lle=DM,Tk=Math.max;function Vle(e,t,r){return t=Tk(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=Tk(n.length-t,0),a=Array(o);++i0){if(++t>=Gle)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Zle=Qle,Jle=Kle,eue=Zle,tue=eue(Jle),NM=tue,rue=mw,nue=jM,iue=NM;function oue(e){return iue(nue(e,void 0,rue),e+"")}var FM=oue,aue=Po,sue=AM,lue=RM,uue=cu,cue=du,due=Tle,fue=FM,pue=_M,hue=1,mue=2,vue=4,gue=fue(function(e,t){var r={};if(e==null)return r;var n=!1;t=aue(t,function(o){return o=uue(o,e),n||(n=o.length>1),o}),cue(e,pue(e),r),n&&(r=sue(r,hue|mue|vue,due));for(var i=t.length;i--;)lue(r,t[i]);return r}),yue=gue;const Nh=it(yue);function vw(e,t){const r=t[e];return[Nh(t,[e]),r]}function gw(e,t={}){let r=e||"";if(r.startsWith("#"))r=decodeURIComponent(r.substring(1));else throw new Error(`Could not find a definition for ${e}.`);const n=vv.get(t,r);if(n===void 0)throw new Error(`Could not find a definition for ${e}.`);if(n[nr]){const[i,o]=vw(nr,n),a=gw(o,t);return Object.keys(i).length>0?{...i,...a}:a}return n}var bue=Object.prototype,Sue=bue.hasOwnProperty;function wue(e,t){return e!=null&&Sue.call(e,t)}var $ue=wue,xue=cu,_ue=Nd,Cue=fr,Pue=pv,kue=aw,Eue=ws;function Tue(e,t,r){t=xue(t,e);for(var n=-1,i=t.length,o=!1;++nVde)return[];var r=py,n=zde(e,py);t=Fde(t),e-=py;for(var i=Nde(n,t);++r({required:[c]}))};let u;if(s.anyOf){const{...c}=s;c.allOf?c.allOf=c.allOf.slice():c.allOf=[],c.allOf.push(l),u=c}else u=Object.assign({},s,l);if(delete u.required,e.isValid(u,t,n))return a}else if(e.isValid(s,t,n))return a}return 0}function ww(e,t,r,n,i){return YM(e,t,r,n,i)}var Wde=mv;function Hde(e,t){return Wde(e,t)}var $w=Hde;const us=it($w);var qde=pw,Kde=cu,Gde=pv,Mk=ln,Yde=ws;function Xde(e,t,r,n){if(!Mk(e))return e;t=Kde(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&epe(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++n-1}var Pw=$pe;function xpe(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=Npe){var u=t?null:Dpe(e);if(u)return jpe(u);a=!1,i=Mpe,l=new Ape}else l=t?[]:s;e:for(;++nt||o&&a&&l&&!s&&!u||n&&a&&l||!r&&l||!i)return 1;if(!n&&!o&&!u&&e=s)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return e.index-t.index}var rhe=the,my=Po,nhe=zd,ihe=Sw,ohe=Ype,ahe=Qpe,she=bs,lhe=rhe,uhe=Bd,che=fr;function dhe(e,t,r){t.length?t=my(t,function(o){return che(o)?function(a){return nhe(a,o.length===1?o[0]:o)}:o}):t=[uhe];var n=-1;t=my(t,she(ihe));var i=ohe(e,function(o,a,s){var l=my(t,function(u){return u(o)});return{criteria:l,index:++n,value:o}});return ahe(i,function(o,a){return lhe(o,a,r)})}var fhe=dhe,phe=yv,hhe=fhe,mhe=$a,Vk=_w,vhe=mhe(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Vk(e,t[0],t[1])?t=[]:r>2&&Vk(t[0],t[1],t[2])&&(t=[t[0]]),hhe(e,phe(t,1),[])}),iD=vhe,ghe=Ew;function yhe(e,t){return t=typeof t=="function"?t:void 0,e&&e.length?ghe(e,void 0,t):[]}var Tw=yhe,bhe=$a,She=ru,whe=_w,$he=fu,oD=Object.prototype,xhe=oD.hasOwnProperty,_he=bhe(function(e,t){e=Object(e);var r=-1,n=t.length,i=n>2?t[2]:void 0;for(i&&whe(t[0],t[1],i)&&(n=1);++r=120&&c.length>=120)?new Phe(a&&c):void 0}c=e[0];var d=-1,p=s[0];e:for(;++dArray.isArray(e)?e:[e],Ln=e=>e===void 0,Uf=e=>Fh(e)||Array.isArray(e)?Object.keys(e):[],sl=(e,t)=>e.hasOwnProperty(t),zl=e=>qhe(Ow(e)),Wk=e=>Ln(e)||Array.isArray(e)&&e.length===0,Yhe=(e,t,r,n)=>t&&sl(t,r)&&e&&sl(e,r)&&n(e[r],t[r]),gy=(e,t)=>Ln(e)&&t===0||Ln(t)&&e===0||gi(e,t),Xhe=(e,t)=>Ln(e)&&t===!1||Ln(t)&&e===!1||gi(e,t),Hk=e=>Ln(e)||gi(e,{})||e===!0,Wf=e=>Ln(e)||gi(e,{}),qk=e=>Ln(e)||Fh(e)||e===!0||e===!1;function Kk(e,t){return Wk(e)&&Wk(t)?!0:gi(zl(e),zl(t))}function Qhe(e,t){return e=Uk(e),t=Uk(t),gi(zl(e),zl(t))}function jp(e,t,r,n){var i=Ow(Uf(e).concat(Uf(t)));return Wf(e)&&Wf(t)?!0:Wf(e)&&Uf(t).length||Wf(t)&&Uf(e).length?!1:i.every(function(o){var a=e[o],s=t[o];return Array.isArray(a)&&Array.isArray(s)?gi(zl(e),zl(t)):Array.isArray(a)&&!Array.isArray(s)||Array.isArray(s)&&!Array.isArray(a)?!1:Yhe(e,t,o,n)})}function Zhe(e,t,r,n){return Fh(e)&&Fh(t)?n(e,t):Array.isArray(e)&&Array.isArray(t)?jp(e,t,r,n):gi(e,t)}function yy(e,t,r,n){var i=Bk(e,n),o=Bk(t,n),a=Ghe(i,o,n);return a.length===Math.max(i.length,o.length)}var Jhe={title:gi,uniqueItems:Xhe,minLength:gy,minItems:gy,minProperties:gy,required:Kk,enum:Kk,type:Qhe,items:Zhe,anyOf:yy,allOf:yy,oneOf:yy,properties:jp,patternProperties:jp,dependencies:jp},eme=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],tme=["additionalProperties","additionalItems","contains","propertyNames","not"];function Sb(e,t,r){if(r=Khe(r,{ignore:[]}),Hk(e)&&Hk(t))return!0;if(!qk(e)||!qk(t))throw new Error("Either of the values are not a JSON schema.");if(e===t)return!0;if(vy(e)&&vy(t))return e===t;if(e===void 0&&t===!1||t===void 0&&e===!1||Ln(e)&&!Ln(t)||!Ln(e)&&Ln(t))return!1;var n=Ow(Object.keys(e).concat(Object.keys(t)));if(r.ignore.length&&(n=n.filter(o=>r.ignore.indexOf(o)===-1)),!n.length)return!0;function i(o,a){return Sb(o,a,r)}return n.every(function(o){var a=e[o],s=t[o];if(tme.indexOf(o)!==-1)return Sb(a,s,r);var l=Jhe[o];if(l||(l=gi),gi(a,s))return!0;if(eme.indexOf(o)===-1&&(!sl(e,o)&&sl(t,o)||sl(e,o)&&!sl(t,o)))return a===s;var u=l(a,s,o,i);if(!vy(u))throw new Error("Comparer must return true or false");return u})}var Aw=Sb;function rme(e){return Object.prototype.toString.call(e)==="[object Array]"}var Iw=Array.isArray||rme;function nme(e){return(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")&&e.valueOf()===e.valueOf()}var ime=nme,ome=ime;function ame(e){return ome(e)&&e%1===0}var sme=ame,lme=Iw,ume=sme;function cme(e){var t;if(!lme(e)||(t=e.length,!t))return!1;for(var r=0;rt&&(n=t,t=e,e=n),t=t-e}return r*e}function Xk(e,t){var r=0,n;if(e===0)return t;if(t===0)return e;for(;!(e&1)&&!(t&1);)e>>>=1,t>>>=1,r++;for(;!(e&1);)e>>>=1;for(;t;){for(;!(t&1);)t>>>=1;e>t&&(n=t,t=e,e=n),t=t-e}return e<1){if(n=t[0],r=t[1],!pme(r))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+r+"`.")}else n=t[0];else throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+t[0]+"`.");if(i=n.length,i<2)return null;if(r){for(o=new Array(i),s=0;s1){if(n=t[0],r=t[1],!gme(r))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+r+"`.")}else n=t[0];else throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+t[0]+"`.");if(i=n.length,i<2)return null;if(r){for(o=new Array(i),s=0;s-1;)s!==e&&eE.call(s,l,1),eE.call(e,l,1);return e}var Kme=qme,Gme=Kme;function Yme(e,t){return e&&e.length&&t&&t.length?Gme(e,t):e}var Xme=Yme,Qme=dw,Zme=bw,Jme=qM,eve=fr;function tve(e,t){var r=eve(e)?Qme:Zme;return r(e,Jme(t))}var fD=tve,rve=dv,nve=Pw,ive=kw,ove=Po,ave=bs,sve=fv,lve=200;function uve(e,t,r,n){var i=-1,o=nve,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;r&&(t=ove(t,ave(r))),n?(o=ive,a=!1):t.length>=lve&&(o=sve,a=!1,t=new rve(t));e:for(;++iyve(gve(e.map(Rw))),xve=(e,t)=>e.map(r=>r&&r[t]),hD=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Rw=e=>pD(e)||Array.isArray(e)?Object.keys(e):[],_ve=e=>e!==void 0,Cve=e=>pD(e)||e===!0||e===!1,mD=e=>!Rw(e).length&&e!==!1&&e!==!0,Pve=(e,...t)=>Sve.apply(null,[e].concat(vve(t)));var vD={allUniqueKeys:$ve,deleteUndefinedProps:wve,getValues:xve,has:hD,isEmptySchema:mD,isSchema:Cve,keys:Rw,notUndefined:_ve,uniqWith:bve,withoutArr:Pve};const kve=Aw,Eve=fD,{allUniqueKeys:Tve,deleteUndefinedProps:Ove,getValues:Ave,keys:Lu,notUndefined:Ive,uniqWith:Rve,withoutArr:tE}=vD;function Mve(e){Eve(e,function(t,r){t===!1&&delete e[r]})}function rE(e,t){return Tve(e).reduce(function(n,i){const o=Ave(e,i),a=Rve(o.filter(Ive),kve);return n[i]=t(a,i),n},{})}var Dve={keywords:["properties","patternProperties","additionalProperties"],resolver(e,t,r,n){n.ignoreAdditionalProperties||(e.forEach(function(o){const a=e.filter(c=>c!==o),s=Lu(o.properties),u=Lu(o.patternProperties).map(c=>new RegExp(c));a.forEach(function(c){const d=Lu(c.properties),p=d.filter(h=>u.some(v=>v.test(h)));tE(d,s,p).forEach(function(h){c.properties[h]=r.properties([c.properties[h],o.additionalProperties],h)})})}),e.forEach(function(o){const a=e.filter(l=>l!==o),s=Lu(o.patternProperties);o.additionalProperties===!1&&a.forEach(function(l){const u=Lu(l.patternProperties);tE(u,s).forEach(d=>delete l.patternProperties[d])})}));const i={additionalProperties:r.additionalProperties(e.map(o=>o.additionalProperties)),patternProperties:rE(e.map(o=>o.patternProperties),r.patternProperties),properties:rE(e.map(o=>o.properties),r.properties)};return i.additionalProperties===!1&&Mve(i.properties),Ove(i)}};const jve=Aw,Nve=fD,{allUniqueKeys:Fve,deleteUndefinedProps:Lve,has:Vve,isSchema:gD,notUndefined:yD,uniqWith:zve}=vD;function Bve(e){Nve(e,function(t,r){t===!1&&e.splice(r,1)})}function Uve(e,t){return e.map(function(r){if(r)if(Array.isArray(r.items)){const n=r.items[t];if(gD(n))return n;if(Vve(r,"additionalItems"))return r.additionalItems}else return r.items})}function Wve(e){return e.map(function(t){if(t)return Array.isArray(t.items)?t.additionalItems:t.items})}function Hve(e,t,r){return Fve(r).reduce(function(i,o){const a=Uve(e,o),s=zve(a.filter(yD),jve);return i[o]=t(s,o),i},[])}var qve={keywords:["items","additionalItems"],resolver(e,t,r){const n=e.map(s=>s.items),i=n.filter(yD),o={};i.every(gD)?o.items=r.items(n):o.items=Hve(e,r.items,n);let a;return i.every(Array.isArray)?a=e.map(s=>s.additionalItems):i.some(Array.isArray)&&(a=Wve(e)),a&&(o.additionalItems=r.additionalItems(a)),o.additionalItems===!1&&Array.isArray(o.items)&&Bve(o.items),Lve(o)}};const bD=rD,Lh=Aw,Kve=bme,Gve=Ame,SD=mw,Mw=Cw,Yve=Nme,Xve=lD,wb=$w,Bl=tu,Qve=Xme,wD=iD,Dw=Sv,Sl=Tw,$D=Dve,xD=qve,qf=(e,t)=>e.indexOf(t)!==-1,Zve=e=>Bl(e)||e===!0||e===!1,Jve=e=>e===!1,_D=e=>e===!0,wv=(e,t,r)=>r(e),CD=e=>wD(Dw(Mw(e))),Vh=e=>e!==void 0,PD=e=>Dw(Mw(e.map(oge))),pu=e=>e[0],ege=e=>CD(e),Ud=e=>Math.max.apply(Math,e),Wd=e=>Math.min.apply(Math,e),tge=e=>e.some(_D),rge=e=>Sl(SD(e),wb);function nge(e){return function(t,r){return Lh({[e]:t},{[e]:r})}}function kD(e){let{allOf:t=[],...r}=e;return r=Bl(e)?r:e,[r,...t.map(kD)]}function ED(e,t){return e.map(r=>r&&r[t])}function ige(e,t){return e.map(function(r,n){try{return t(r,n)}catch{return}}).filter(Vh)}function oge(e){return Bl(e)||Array.isArray(e)?Object.keys(e):[]}function $b(e,t){if(t=t||[],!e.length)return t;const r=e.slice(0).shift(),n=e.slice(1);return t.length?$b(n,SD(t.map(i=>r.map(o=>[o].concat(i))))):$b(n,r.map(i=>i))}function TD(e,t){let r;try{r=e.map(function(n){return JSON.stringify(n,null,2)}).join(` + `),()=>{document.head.removeChild(u)}},[t]),C.createElement(vK,{isPresent:t,childRef:n,sizeRef:i},C.cloneElement(e,{ref:n}))}const ny=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=MA(yK),l=C.useId(),u=C.useMemo(()=>({id:l,initial:t,isPresent:r,custom:i,onExitComplete:c=>{s.set(c,!0);for(const d of s.values())if(!d)return;n&&n()},register:c=>(s.set(c,!1),()=>s.delete(c))}),o?void 0:[r]);return C.useMemo(()=>{s.forEach((c,d)=>s.set(d,!1))},[r]),C.useEffect(()=>{!r&&!s.size&&n&&n()},[r]),a==="popLayout"&&(e=C.createElement(gK,{isPresent:r},e)),C.createElement(_d.Provider,{value:u},e)};function yK(){return new Map}function bK(e){return C.useEffect(()=>()=>e(),[])}const Ra=e=>e.key||"";function SK(e,t){e.forEach(r=>{const n=Ra(r);t.set(n,r)})}function wK(e){const t=[];return C.Children.forEach(e,r=>{C.isValidElement(r)&&t.push(r)}),t}const $K=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{const s=C.useContext(cS).forceRender||mK()[0],l=FI(),u=wK(e);let c=u;const d=C.useRef(new Map).current,p=C.useRef(c),f=C.useRef(new Map).current,h=C.useRef(!0);if(sS(()=>{h.current=!1,SK(u,f),p.current=c}),bK(()=>{h.current=!0,f.clear(),d.clear()}),h.current)return C.createElement(C.Fragment,null,c.map(g=>C.createElement(ny,{key:Ra(g),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:o,mode:a},g)));c=[...c];const v=p.current.map(Ra),y=u.map(Ra),m=v.length;for(let g=0;g{if(y.indexOf(b)!==-1)return;const S=f.get(b);if(!S)return;const x=v.indexOf(b);let w=g;if(!w){const $=()=>{d.delete(b);const P=Array.from(f.keys()).filter(E=>!y.includes(E));if(P.forEach(E=>f.delete(E)),p.current=u.filter(E=>{const T=Ra(E);return T===b||P.includes(T)}),!d.size){if(l.current===!1)return;s(),n&&n()}};w=C.createElement(ny,{key:Ra(S),isPresent:!1,onExitComplete:$,custom:t,presenceAffectsLayout:o,mode:a},S),d.set(b,w)}c.splice(x,0,w)}),c=c.map(g=>{const b=g.key;return d.has(b)?g:C.createElement(ny,{key:Ra(g),isPresent:!0,presenceAffectsLayout:o,mode:a},g)}),C.createElement(C.Fragment,null,d.size?c:c.map(g=>C.cloneElement(g)))};var xK={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},LI=C.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:i,requestClose:o=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:u=xK,toastSpacing:c="0.5rem"}=e,[d,p]=C.useState(s),f=sq();is(()=>{f||n==null||n()},[f]),is(()=>{p(s)},[s]);const h=()=>p(null),v=()=>p(s),y=()=>{f&&i()};C.useEffect(()=>{f&&o&&i()},[f,o,i]),iW(y,d);const m=C.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),g=C.useMemo(()=>rW(a),[a]);return _.jsx(hK.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:h,onHoverEnd:v,custom:{position:a},style:g,children:_.jsx(he.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:m,children:ui(r,{id:t,onClose:y})})})});LI.displayName="ToastComponent";function _K(e,t){var r;const n=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return(r=o==null?void 0:o[t])!=null?r:n}var dP={path:_.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[_.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),_.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),_.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Pn=Ee((e,t)=>{const{as:r,viewBox:n,color:i="currentColor",focusable:o=!1,children:a,className:s,__css:l,...u}=e,c=st("chakra-icon",s),d=yi("Icon",e),p={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...l,...d},f={ref:t,focusable:o,className:c,__css:p},h=n??dP.viewBox;if(r&&typeof r!="string")return _.jsx(he.svg,{as:r,...f,...u});const v=a??dP.path;return _.jsx(he.svg,{verticalAlign:"middle",viewBox:h,...f,...u,children:v})});Pn.displayName="Icon";function Zl(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:i={}}=e,o=C.Children.toArray(e.path),a=Ee((s,l)=>_.jsx(Pn,{ref:l,viewBox:t,...i,...s,children:o.length?o:_.jsx("path",{fill:"currentColor",d:r})}));return a.displayName=n,a}function CK(e){return _.jsx(Pn,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function PK(e){return _.jsx(Pn,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function fP(e){return _.jsx(Pn,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var kK=wd({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Qm=Ee((e,t)=>{const r=yi("Spinner",e),{label:n="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=or(e),u=st("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${kK} ${o} linear infinite`,...r};return _.jsx(he.div,{ref:t,__css:c,className:u,...l,children:n&&_.jsx(he.span,{srOnly:!0,children:n})})});Qm.displayName="Spinner";var[EK,ES]=ir({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[TK,TS]=ir({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),VI={info:{icon:PK,colorScheme:"blue"},warning:{icon:fP,colorScheme:"orange"},success:{icon:CK,colorScheme:"green"},error:{icon:fP,colorScheme:"red"},loading:{icon:Qm,colorScheme:"blue"}};function OK(e){return VI[e].colorScheme}function AK(e){return VI[e].icon}var zI=Ee(function(t,r){const n=TS(),{status:i}=ES(),o={display:"inline",...n.description};return _.jsx(he.div,{ref:r,"data-status":i,...t,className:st("chakra-alert__desc",t.className),__css:o})});zI.displayName="AlertDescription";function BI(e){const{status:t}=ES(),r=AK(t),n=TS(),i=t==="loading"?n.spinner:n.icon;return _.jsx(he.span,{display:"inherit","data-status":t,...e,className:st("chakra-alert__icon",e.className),__css:i,children:e.children||_.jsx(r,{h:"100%",w:"100%"})})}BI.displayName="AlertIcon";var OS=Ee(function(t,r){const n=TS(),{status:i}=ES();return _.jsx(he.div,{ref:r,"data-status":i,...t,className:st("chakra-alert__title",t.className),__css:n.title})});OS.displayName="AlertTitle";var AS=Ee(function(t,r){var n;const{status:i="info",addRole:o=!0,...a}=or(t),s=(n=t.colorScheme)!=null?n:OK(i),l=cr("Alert",{...t,colorScheme:s}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return _.jsx(EK,{value:{status:i},children:_.jsx(TK,{value:l,children:_.jsx(he.div,{"data-status":i,role:o?"alert":void 0,ref:r,...a,className:st("chakra-alert",t.className),__css:u})})})});AS.displayName="Alert";function IK(e){return _.jsx(Pn,{focusable:"false","aria-hidden":!0,...e,children:_.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var UI=Ee(function(t,r){const n=yi("CloseButton",t),{children:i,isDisabled:o,__css:a,...s}=or(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return _.jsx(he.button,{type:"button","aria-label":"Close",ref:r,disabled:o,__css:{...l,...n,...a},...s,children:i||_.jsx(IK,{width:"1em",height:"1em"})})});UI.displayName="CloseButton";var RK={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Oi=MK(RK);function MK(e){let t=e;const r=new Set,n=i=>{t=i(t),r.forEach(o=>o())};return{getState:()=>t,subscribe:i=>(r.add(i),()=>{n(()=>e),r.delete(i)}),removeToast:(i,o)=>{n(a=>({...a,[o]:a[o].filter(s=>s.id!=i)}))},notify:(i,o)=>{const a=DK(i,o),{position:s,id:l}=a;return n(u=>{var c,d;const f=s.includes("top")?[a,...(c=u[s])!=null?c:[]]:[...(d=u[s])!=null?d:[],a];return{...u,[s]:f}}),l},update:(i,o)=>{i&&n(a=>{const s={...a},{position:l,index:u}=aC(s,i);return l&&u!==-1&&(s[l][u]={...s[l][u],...o,message:WI(o)}),s})},closeAll:({positions:i}={})=>{n(o=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=o[u].map(c=>({...c,requestClose:!0})),l),{...o}))},close:i=>{n(o=>{const a=gA(o,i);return a?{...o,[a]:o[a].map(s=>s.id==i?{...s,requestClose:!0}:s)}:o})},isActive:i=>!!aC(Oi.getState(),i).position}}var pP=0;function DK(e,t={}){var r,n;pP+=1;const i=(r=t.id)!=null?r:pP,o=(n=t.position)!=null?n:"bottom";return{id:i,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Oi.removeToast(String(i),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var jK=e=>{const{status:t,variant:r="solid",id:n,title:i,isClosable:o,onClose:a,description:s,colorScheme:l,icon:u}=e,c=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return _.jsxs(AS,{addRole:!1,status:t,variant:r,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[_.jsx(BI,{children:u}),_.jsxs(he.div,{flex:"1",maxWidth:"100%",children:[i&&_.jsx(OS,{id:c==null?void 0:c.title,children:i}),s&&_.jsx(zI,{id:c==null?void 0:c.description,display:"block",children:s})]}),o&&_.jsx(UI,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function WI(e={}){const{render:t,toastComponent:r=jK}=e;return i=>typeof t=="function"?t({...i,...e}):_.jsx(r,{...i,...e})}function NK(e,t){const r=i=>{var o;return{...t,...i,position:_K((o=i==null?void 0:i.position)!=null?o:t==null?void 0:t.position,e)}},n=i=>{const o=r(i),a=WI(o);return Oi.notify(a,o)};return n.update=(i,o)=>{Oi.update(i,r(o))},n.promise=(i,o)=>{const a=n({...o.loading,status:"loading",duration:null});i.then(s=>n.update(a,{status:"success",duration:5e3,...ui(o.success,s)})).catch(s=>n.update(a,{status:"error",duration:5e3,...ui(o.error,s)}))},n.closeAll=Oi.closeAll,n.close=Oi.close,n.isActive=Oi.isActive,n}var[FK,LK]=ir({name:"ToastOptionsContext",strict:!1}),VK=e=>{const t=C.useSyncExternalStore(Oi.subscribe,Oi.getState,Oi.getState),{motionVariants:r,component:n=LI,portalProps:i}=e,a=Object.keys(t).map(s=>{const l=t[s];return _.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${s}`,id:`chakra-toast-manager-${s}`,style:nW(s),children:_.jsx($K,{initial:!1,children:l.map(u=>_.jsx(n,{motionVariants:r,...u},u.id))})},s)});return _.jsx(Nm,{...i,children:a})};function IS(e){const{theme:t}=FO(),r=LK();return C.useMemo(()=>NK(t.direction,{...r,...e}),[e,t.direction,r])}var zK=e=>function({children:r,theme:n=e,toastOptions:i,...o}){return _.jsxs(eW,{theme:n,...o,children:[_.jsx(FK,{value:i==null?void 0:i.defaultOptions,children:r}),_.jsx(VK,{...i})]})},BK=zK(y8),UK=Object.defineProperty,WK=(e,t,r)=>t in e?UK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Nt=(e,t,r)=>(WK(e,typeof t!="symbol"?t+"":t,r),r);function hP(e){return e.sort((t,r)=>{const n=t.compareDocumentPosition(r);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var HK=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function mP(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function vP(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}var ib=typeof window<"u"?C.useLayoutEffect:C.useEffect,Oh=e=>e,qK=class{constructor(){Nt(this,"descendants",new Map),Nt(this,"register",e=>{if(e!=null)return HK(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),Nt(this,"unregister",e=>{this.descendants.delete(e);const t=hP(Array.from(this.descendants.keys()));this.assignIndex(t)}),Nt(this,"destroy",()=>{this.descendants.clear()}),Nt(this,"assignIndex",e=>{this.descendants.forEach(t=>{const r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()})}),Nt(this,"count",()=>this.descendants.size),Nt(this,"enabledCount",()=>this.enabledValues().length),Nt(this,"values",()=>Array.from(this.descendants.values()).sort((t,r)=>t.index-r.index)),Nt(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),Nt(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),Nt(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),Nt(this,"first",()=>this.item(0)),Nt(this,"firstEnabled",()=>this.enabledItem(0)),Nt(this,"last",()=>this.item(this.descendants.size-1)),Nt(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),Nt(this,"indexOf",e=>{var t,r;return e&&(r=(t=this.descendants.get(e))==null?void 0:t.index)!=null?r:-1}),Nt(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),Nt(this,"next",(e,t=!0)=>{const r=mP(e,this.count(),t);return this.item(r)}),Nt(this,"nextEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),i=mP(n,this.enabledCount(),t);return this.enabledItem(i)}),Nt(this,"prev",(e,t=!0)=>{const r=vP(e,this.count()-1,t);return this.item(r)}),Nt(this,"prevEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),i=vP(n,this.enabledCount()-1,t);return this.enabledItem(i)}),Nt(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const r=Array.from(this.descendants.keys()).concat(e),n=hP(r);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const i={node:e,index:-1,...t};this.descendants.set(e,i),this.assignIndex(n)})}};function KK(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function zr(...e){return t=>{e.forEach(r=>{KK(r,t)})}}function GK(...e){return C.useMemo(()=>zr(...e),e)}function YK(){const e=C.useRef(new qK);return ib(()=>()=>e.current.destroy()),e.current}var[XK,HI]=ir({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function QK(e){const t=HI(),[r,n]=C.useState(-1),i=C.useRef(null);ib(()=>()=>{i.current&&t.unregister(i.current)},[]),ib(()=>{if(!i.current)return;const a=Number(i.current.dataset.index);r!=a&&!Number.isNaN(a)&&n(a)});const o=Oh(e?t.register(e):t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(i.current),register:zr(o,i)}}function ZK(){return[Oh(XK),()=>Oh(HI()),()=>YK(),i=>QK(i)]}function qI(e){const{value:t,defaultValue:r,onChange:n,shouldUpdate:i=(p,f)=>p!==f}=e,o=Vt(n),a=Vt(i),[s,l]=C.useState(r),u=t!==void 0,c=u?t:s,d=Vt(p=>{const h=typeof p=="function"?p(c):p;a(c,h)&&(u||l(h),o(h))},[u,o,c,a]);return[c,d]}function KI(e){return C.Children.toArray(e).filter(t=>C.isValidElement(t))}var[JK,eG]=ir({strict:!1,name:"ButtonGroupContext"}),tG={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},rG={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},GI=Ee(function(t,r){const{size:n,colorScheme:i,variant:o,className:a,spacing:s="0.5rem",isAttached:l,isDisabled:u,orientation:c="horizontal",...d}=t,p=st("chakra-button__group",a),f=C.useMemo(()=>({size:n,colorScheme:i,variant:o,isDisabled:u}),[n,i,o,u]);let h={display:"inline-flex",...l?tG[c]:rG[c](s)};const v=c==="vertical";return _.jsx(JK,{value:f,children:_.jsx(he.div,{ref:r,role:"group",__css:h,className:p,"data-attached":l?"":void 0,"data-orientation":c,flexDir:v?"column":void 0,...d})})});GI.displayName="ButtonGroup";function nG(e){const[t,r]=C.useState(!e);return{ref:C.useCallback(o=>{o&&r(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}function ob(e){const{children:t,className:r,...n}=e,i=C.isValidElement(t)?C.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=st("chakra-button__icon",r);return _.jsx(he.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:o,children:i})}ob.displayName="ButtonIcon";function ab(e){const{label:t,placement:r,spacing:n="0.5rem",children:i=_.jsx(Qm,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:a,...s}=e,l=st("chakra-button__spinner",o),u=r==="start"?"marginEnd":"marginStart",c=C.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?n:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,u,n]);return _.jsx(he.div,{className:l,...s,__css:c,children:i})}ab.displayName="ButtonSpinner";var Tr=Ee((e,t)=>{const r=eG(),n=yi("Button",{...r,...e}),{isDisabled:i=r==null?void 0:r.isDisabled,isLoading:o,isActive:a,children:s,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:p,spinner:f,spinnerPlacement:h="start",className:v,as:y,...m}=or(e),g=C.useMemo(()=>{const w={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:w}}},[n,r]),{ref:b,type:S}=nG(y),x={rightIcon:u,leftIcon:l,iconSpacing:d,children:s};return _.jsxs(he.button,{ref:GK(t,b),as:y,type:p??S,"data-active":_e(a),"data-loading":_e(o),__css:g,className:st("chakra-button",v),...m,disabled:i||o,children:[o&&h==="start"&&_.jsx(ab,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:f}),o?c||_.jsx(he.span,{opacity:0,children:_.jsx(gP,{...x})}):_.jsx(gP,{...x}),o&&h==="end"&&_.jsx(ab,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:f})]})});Tr.displayName="Button";function gP(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:i}=e;return _.jsxs(_.Fragment,{children:[t&&_.jsx(ob,{marginEnd:i,children:t}),n,r&&_.jsx(ob,{marginStart:i,children:r})]})}var YI=Ee((e,t)=>{const{icon:r,children:n,isRound:i,"aria-label":o,...a}=e,s=r||n,l=C.isValidElement(s)?C.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return _.jsx(Tr,{padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o,...a,children:l})});YI.displayName="IconButton";var[iG,oG]=ir({name:"CheckboxGroupContext",strict:!1});function yP(e){return e&&Sr(e)&&Sr(e.target)}function aG(e={}){const{defaultValue:t,value:r,onChange:n,isDisabled:i,isNative:o}=e,a=Vt(n),[s,l]=qI({value:r,defaultValue:t||[],onChange:a}),u=C.useCallback(d=>{if(!s)return;const p=yP(d)?d.target.checked:!s.includes(d),f=yP(d)?d.target.value:d,h=p?[...s,f]:s.filter(v=>String(v)!==String(f));l(h)},[l,s]),c=C.useCallback((d={})=>({...d,[o?"checked":"isChecked"]:s.some(f=>String(d.value)===String(f)),onChange:u}),[u,o,s]);return{value:s,isDisabled:i,onChange:u,setValue:l,getCheckboxProps:c}}function XI(e){const{colorScheme:t,size:r,variant:n,children:i,isDisabled:o}=e,{value:a,onChange:s}=aG(e),l=C.useMemo(()=>({size:r,onChange:s,colorScheme:t,value:a,variant:n,isDisabled:o}),[r,s,t,a,n,o]);return _.jsx(iG,{value:l,children:i})}XI.displayName="CheckboxGroup";function sG(e){const[t,r]=C.useState(e),[n,i]=C.useState(!1);return e!==t&&(i(!0),r(e)),n}function lG(e){return _.jsx(he.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:_.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function uG(e){return _.jsx(he.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:_.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function cG(e){const{isIndeterminate:t,isChecked:r,...n}=e,i=t?uG:lG;return r||t?_.jsx(he.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:_.jsx(i,{...n})}):null}var[dG,QI]=ir({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[fG,gs]=ir({strict:!1,name:"FormControlContext"});function pG(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:i,isReadOnly:o,...a}=e,s=C.useId(),l=t||`field-${s}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[p,f]=C.useState(!1),[h,v]=C.useState(!1),[y,m]=C.useState(!1),g=C.useCallback(($={},P=null)=>({id:d,...$,ref:zr(P,E=>{E&&v(!0)})}),[d]),b=C.useCallback(($={},P=null)=>({...$,ref:P,"data-focus":_e(y),"data-disabled":_e(i),"data-invalid":_e(n),"data-readonly":_e(o),id:$.id!==void 0?$.id:u,htmlFor:$.htmlFor!==void 0?$.htmlFor:l}),[l,i,y,n,o,u]),S=C.useCallback(($={},P=null)=>({id:c,...$,ref:zr(P,E=>{E&&f(!0)}),"aria-live":"polite"}),[c]),x=C.useCallback(($={},P=null)=>({...$,...a,ref:P,role:"group","data-focus":_e(y),"data-disabled":_e(i),"data-invalid":_e(n),"data-readonly":_e(o)}),[a,i,y,n,o]),w=C.useCallback(($={},P=null)=>({...$,ref:P,role:"presentation","aria-hidden":!0,children:$.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!o,isDisabled:!!i,isFocused:!!y,onFocus:()=>m(!0),onBlur:()=>m(!1),hasFeedbackText:p,setHasFeedbackText:f,hasHelpText:h,setHasHelpText:v,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:a,getHelpTextProps:g,getErrorMessageProps:S,getRootProps:x,getLabelProps:b,getRequiredIndicatorProps:w}}var bi=Ee(function(t,r){const n=cr("Form",t),i=or(t),{getRootProps:o,htmlProps:a,...s}=pG(i),l=st("chakra-form-control",t.className);return _.jsx(fG,{value:s,children:_.jsx(dG,{value:n,children:_.jsx(he.div,{...o({},r),className:l,__css:n.container})})})});bi.displayName="FormControl";var ZI=Ee(function(t,r){const n=gs(),i=QI(),o=st("chakra-form__helper-text",t.className);return _.jsx(he.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:i.helperText,className:o})});ZI.displayName="FormHelperText";var[hG,mG]=ir({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),JI=Ee((e,t)=>{const r=cr("FormError",e),n=or(e),i=gs();return i!=null&&i.isInvalid?_.jsx(hG,{value:r,children:_.jsx(he.div,{...i==null?void 0:i.getErrorMessageProps(n,t),className:st("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...r.text}})}):null});JI.displayName="FormErrorMessage";var vG=Ee((e,t)=>{const r=mG(),n=gs();if(!(n!=null&&n.isInvalid))return null;const i=st("chakra-form__error-icon",e.className);return _.jsx(Pn,{ref:t,"aria-hidden":!0,...e,__css:r.icon,className:i,children:_.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})});vG.displayName="FormErrorIcon";var _o=Ee(function(t,r){var n;const i=yi("FormLabel",t),o=or(t),{className:a,children:s,requiredIndicator:l=_.jsx(eR,{}),optionalIndicator:u=null,...c}=o,d=gs(),p=(n=d==null?void 0:d.getLabelProps(c,r))!=null?n:{ref:r,...c};return _.jsxs(he.label,{...p,className:st("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...i},children:[s,d!=null&&d.isRequired?l:u]})});_o.displayName="FormLabel";var eR=Ee(function(t,r){const n=gs(),i=QI();if(!(n!=null&&n.isRequired))return null;const o=st("chakra-form__required-indicator",t.className);return _.jsx(he.span,{...n==null?void 0:n.getRequiredIndicatorProps(t,r),__css:i.requiredIndicator,className:o})});eR.displayName="RequiredIndicator";function RS(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:i,...o}=MS(e);return{...o,disabled:t,readOnly:n,required:i,"aria-invalid":ao(r),"aria-required":ao(i),"aria-readonly":ao(n)}}function MS(e){var t,r,n;const i=gs(),{id:o,disabled:a,readOnly:s,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:p,onFocus:f,onBlur:h,...v}=e,y=e["aria-describedby"]?[e["aria-describedby"]]:[];return i!=null&&i.hasFeedbackText&&(i!=null&&i.isInvalid)&&y.push(i.feedbackId),i!=null&&i.hasHelpText&&y.push(i.helpTextId),{...v,"aria-describedby":y.join(" ")||void 0,id:o??(i==null?void 0:i.id),isDisabled:(t=a??p)!=null?t:i==null?void 0:i.isDisabled,isReadOnly:(r=s??d)!=null?r:i==null?void 0:i.isReadOnly,isRequired:(n=l??u)!=null?n:i==null?void 0:i.isRequired,isInvalid:c??(i==null?void 0:i.isInvalid),onFocus:He(i==null?void 0:i.onFocus,f),onBlur:He(i==null?void 0:i.onBlur,h)}}var gG={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},yG=()=>typeof document<"u",bP=!1,Td=null,os=!1,sb=!1,lb=new Set;function DS(e,t){lb.forEach(r=>r(e,t))}var bG=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function SG(e){return!(e.metaKey||!bG&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function SP(e){os=!0,SG(e)&&(Td="keyboard",DS("keyboard",e))}function Ts(e){if(Td="pointer",e.type==="mousedown"||e.type==="pointerdown"){os=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let r=!1;try{r=t.matches(":focus-visible")}catch{}if(r)return;DS("pointer",e)}}function wG(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function $G(e){wG(e)&&(os=!0,Td="virtual")}function xG(e){e.target===window||e.target===document||(!os&&!sb&&(Td="virtual",DS("virtual",e)),os=!1,sb=!1)}function _G(){os=!1,sb=!0}function wP(){return Td!=="pointer"}function CG(){if(!yG()||bP)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...r){os=!0,e.apply(this,r)},document.addEventListener("keydown",SP,!0),document.addEventListener("keyup",SP,!0),document.addEventListener("click",$G,!0),window.addEventListener("focus",xG,!0),window.addEventListener("blur",_G,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Ts,!0),document.addEventListener("pointermove",Ts,!0),document.addEventListener("pointerup",Ts,!0)):(document.addEventListener("mousedown",Ts,!0),document.addEventListener("mousemove",Ts,!0),document.addEventListener("mouseup",Ts,!0)),bP=!0}function tR(e){CG(),e(wP());const t=()=>e(wP());return lb.add(t),()=>{lb.delete(t)}}function PG(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function kG(e={}){const t=MS(e),{isDisabled:r,isReadOnly:n,isRequired:i,isInvalid:o,id:a,onBlur:s,onFocus:l,"aria-describedby":u}=t,{defaultChecked:c,isChecked:d,isFocusable:p,onChange:f,isIndeterminate:h,name:v,value:y,tabIndex:m=void 0,"aria-label":g,"aria-labelledby":b,"aria-invalid":S,...x}=e,w=PG(x,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),$=Vt(f),P=Vt(s),E=Vt(l),[T,z]=C.useState(!1),[W,Y]=C.useState(!1),[H,X]=C.useState(!1),[te,Z]=C.useState(!1);C.useEffect(()=>tR(z),[]);const L=C.useRef(null),[J,B]=C.useState(!0),[R,U]=C.useState(!!c),M=d!==void 0,k=M?d:R,I=C.useCallback(ae=>{if(n||r){ae.preventDefault();return}M||U(k?ae.target.checked:h?!0:ae.target.checked),$==null||$(ae)},[n,r,k,M,h,$]);oo(()=>{L.current&&(L.current.indeterminate=!!h)},[h]),is(()=>{r&&Y(!1)},[r,Y]),oo(()=>{const ae=L.current;if(!(ae!=null&&ae.form))return;const Ie=()=>{U(!!c)};return ae.form.addEventListener("reset",Ie),()=>{var ot;return(ot=ae.form)==null?void 0:ot.removeEventListener("reset",Ie)}},[]);const V=r&&!p,Q=C.useCallback(ae=>{ae.key===" "&&Z(!0)},[Z]),ee=C.useCallback(ae=>{ae.key===" "&&Z(!1)},[Z]);oo(()=>{if(!L.current)return;L.current.checked!==k&&U(L.current.checked)},[L.current]);const ue=C.useCallback((ae={},Ie=null)=>{const ot=Tt=>{W&&Tt.preventDefault(),Z(!0)};return{...ae,ref:Ie,"data-active":_e(te),"data-hover":_e(H),"data-checked":_e(k),"data-focus":_e(W),"data-focus-visible":_e(W&&T),"data-indeterminate":_e(h),"data-disabled":_e(r),"data-invalid":_e(o),"data-readonly":_e(n),"aria-hidden":!0,onMouseDown:He(ae.onMouseDown,ot),onMouseUp:He(ae.onMouseUp,()=>Z(!1)),onMouseEnter:He(ae.onMouseEnter,()=>X(!0)),onMouseLeave:He(ae.onMouseLeave,()=>X(!1))}},[te,k,r,W,T,H,h,o,n]),ce=C.useCallback((ae={},Ie=null)=>({...ae,ref:Ie,"data-active":_e(te),"data-hover":_e(H),"data-checked":_e(k),"data-focus":_e(W),"data-focus-visible":_e(W&&T),"data-indeterminate":_e(h),"data-disabled":_e(r),"data-invalid":_e(o),"data-readonly":_e(n)}),[te,k,r,W,T,H,h,o,n]),ie=C.useCallback((ae={},Ie=null)=>({...w,...ae,ref:zr(Ie,ot=>{ot&&B(ot.tagName==="LABEL")}),onClick:He(ae.onClick,()=>{var ot;J||((ot=L.current)==null||ot.click(),requestAnimationFrame(()=>{var Tt;(Tt=L.current)==null||Tt.focus({preventScroll:!0})}))}),"data-disabled":_e(r),"data-checked":_e(k),"data-invalid":_e(o)}),[w,r,k,o,J]),Te=C.useCallback((ae={},Ie=null)=>({...ae,ref:zr(L,Ie),type:"checkbox",name:v,value:y,id:a,tabIndex:m,onChange:He(ae.onChange,I),onBlur:He(ae.onBlur,P,()=>Y(!1)),onFocus:He(ae.onFocus,E,()=>Y(!0)),onKeyDown:He(ae.onKeyDown,Q),onKeyUp:He(ae.onKeyUp,ee),required:i,checked:k,disabled:V,readOnly:n,"aria-label":g,"aria-labelledby":b,"aria-invalid":S?!!S:o,"aria-describedby":u,"aria-disabled":r,style:gG}),[v,y,a,I,P,E,Q,ee,i,k,V,n,g,b,S,o,u,r,m]),rt=C.useCallback((ae={},Ie=null)=>({...ae,ref:Ie,onMouseDown:He(ae.onMouseDown,EG),"data-disabled":_e(r),"data-checked":_e(k),"data-invalid":_e(o)}),[k,r,o]);return{state:{isInvalid:o,isFocused:W,isChecked:k,isActive:te,isHovered:H,isIndeterminate:h,isDisabled:r,isReadOnly:n,isRequired:i},getRootProps:ie,getCheckboxProps:ue,getIndicatorProps:ce,getInputProps:Te,getLabelProps:rt,htmlProps:w}}function EG(e){e.preventDefault(),e.stopPropagation()}var TG={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},OG={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},AG=wd({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),IG=wd({from:{opacity:0},to:{opacity:1}}),RG=wd({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),jS=Ee(function(t,r){const n=oG(),i={...n,...t},o=cr("Checkbox",i),a=or(t),{spacing:s="0.5rem",className:l,children:u,iconColor:c,iconSize:d,icon:p=_.jsx(cG,{}),isChecked:f,isDisabled:h=n==null?void 0:n.isDisabled,onChange:v,inputProps:y,...m}=a;let g=f;n!=null&&n.value&&a.value&&(g=n.value.includes(a.value));let b=v;n!=null&&n.onChange&&a.value&&(b=LO(n.onChange,v));const{state:S,getInputProps:x,getCheckboxProps:w,getLabelProps:$,getRootProps:P}=kG({...m,isDisabled:h,isChecked:g,onChange:b}),E=sG(S.isChecked),T=C.useMemo(()=>({animation:E?S.isIndeterminate?`${IG} 20ms linear, ${RG} 200ms linear`:`${AG} 200ms linear`:void 0,fontSize:d,color:c,...o.icon}),[c,d,E,S.isIndeterminate,o.icon]),z=C.cloneElement(p,{__css:T,isIndeterminate:S.isIndeterminate,isChecked:S.isChecked});return _.jsxs(he.label,{__css:{...OG,...o.container},className:st("chakra-checkbox",l),...P(),children:[_.jsx("input",{className:"chakra-checkbox__input",...x(y,r)}),_.jsx(he.span,{__css:{...TG,...o.control},className:"chakra-checkbox__control",...w(),children:z}),u&&_.jsx(he.span,{className:"chakra-checkbox__label",...$(),__css:{marginStart:s,...o.label},children:u})]})});jS.displayName="Checkbox";function MG(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function NS(e,t){let r=MG(e);const n=10**(t??10);return r=Math.round(r*n)/n,t?r.toFixed(t):r.toString()}function ub(e){if(!Number.isFinite(e))return 0;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r+=1;return r}function $P(e,t,r){return(e-t)*100/(r-t)}function DG(e,t,r){return(r-t)*e+t}function xP(e,t,r){const n=Math.round((e-t)/r)*r+t,i=ub(r);return NS(n,i)}function Op(e,t,r){return e==null?e:(r{var T;return n==null?"":(T=iy(n,o,r))!=null?T:""}),p=typeof i<"u",f=p?i:c,h=rR(Lo(f),o),v=r??h,y=C.useCallback(T=>{T!==f&&(p||d(T.toString()),u==null||u(T.toString(),Lo(T)))},[u,p,f]),m=C.useCallback(T=>{let z=T;return l&&(z=Op(z,a,s)),NS(z,v)},[v,l,s,a]),g=C.useCallback((T=o)=>{let z;f===""?z=Lo(T):z=Lo(f)+T,z=m(z),y(z)},[m,o,y,f]),b=C.useCallback((T=o)=>{let z;f===""?z=Lo(-T):z=Lo(f)-T,z=m(z),y(z)},[m,o,y,f]),S=C.useCallback(()=>{var T;let z;n==null?z="":z=(T=iy(n,o,r))!=null?T:a,y(z)},[n,r,o,y,a]),x=C.useCallback(T=>{var z;const W=(z=iy(T,o,v))!=null?z:a;y(W)},[v,o,y,a]),w=Lo(f);return{isOutOfRange:w>s||w{const o=typeof e=="function"?e():e??document;if(!(!r||!o))return o.addEventListener(t,i,n),()=>{o.removeEventListener(t,i,n)}},[t,e,n,i,r]),()=>{const o=typeof e=="function"?e():e??document;o==null||o.removeEventListener(t,i,n)}}function NG(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function cb(e,t){return cb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cb(e,t)}function as(e){"@babel/helpers - typeof";return as=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},as(e)}function FG(e,t){if(as(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(as(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iR(e){var t=FG(e,"string");return as(t)==="symbol"?t:String(t)}function tc(e,t,r){return t=iR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oR(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function aR(e){var t;if(!oR(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function LG(e){var t,r;return(r=(t=sR(e))==null?void 0:t.defaultView)!=null?r:window}function sR(e){return oR(e)?e.ownerDocument:document}function VG(e){return sR(e).activeElement}var lR=e=>e.hasAttribute("tabindex"),zG=e=>lR(e)&&e.tabIndex===-1;function BG(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function uR(e){return e.parentElement&&uR(e.parentElement)?!0:e.hidden}function UG(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function WG(e){if(!aR(e)||uR(e)||BG(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():UG(e)?!0:lR(e)}function HG(e){return e?aR(e)&&WG(e)&&!zG(e):!1}var Od=Ee(function(t,r){const{htmlSize:n,...i}=t,o=cr("Input",i),a=or(i),s=RS(a),l=st("chakra-input",t.className);return _.jsx(he.input,{size:n,...s,__css:o.field,ref:r,className:l})});Od.displayName="Input";Od.id="Input";var cR=Ee(function(t,r){const n=yi("Link",t),{className:i,isExternal:o,...a}=or(t);return _.jsx(he.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:r,className:st("chakra-link",i),...a,__css:n})});cR.displayName="Link";var[qG,dR]=ir({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Ad=Ee(function(t,r){const n=cr("List",t),{children:i,styleType:o="none",stylePosition:a,spacing:s,...l}=or(t),u=KI(i),d=s?{["& > *:not(style) ~ *:not(style)"]:{mt:s}}:{};return _.jsx(qG,{value:n,children:_.jsx(he.ul,{ref:r,listStyleType:o,listStylePosition:a,role:"list",__css:{...n.container,...d},...l,children:u})})});Ad.displayName="List";var KG=Ee((e,t)=>{const{as:r,...n}=e;return _.jsx(Ad,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...n})});KG.displayName="OrderedList";var GG=Ee(function(t,r){const{as:n,...i}=t;return _.jsx(Ad,{ref:r,as:"ul",styleType:"initial",marginStart:"1em",...i})});GG.displayName="UnorderedList";var FS=Ee(function(t,r){const n=dR();return _.jsx(he.li,{ref:r,...t,__css:n.item})});FS.displayName="ListItem";var fR=Ee(function(t,r){const n=dR();return _.jsx(Pn,{ref:r,role:"presentation",...t,__css:n.icon})});fR.displayName="ListIcon";var Zm=Ee(function(t,r){const{templateAreas:n,gap:i,rowGap:o,columnGap:a,column:s,row:l,autoFlow:u,autoRows:c,templateRows:d,autoColumns:p,templateColumns:f,...h}=t,v={display:"grid",gridTemplateAreas:n,gridGap:i,gridRowGap:o,gridColumnGap:a,gridAutoColumns:p,gridColumn:s,gridRow:l,gridAutoFlow:u,gridAutoRows:c,gridTemplateRows:d,gridTemplateColumns:f};return _.jsx(he.div,{ref:r,__css:v,...h})});Zm.displayName="Grid";var pR=Object.freeze(["base","sm","md","lg","xl","2xl"]);function hR(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):Sr(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}function YG(e,t=pR){const r={};return e.forEach((n,i)=>{const o=t[i];n!=null&&(r[o]=n)}),r}var Id=Ee(function(t,r){const n=yi("Text",t),{className:i,align:o,decoration:a,casing:s,...l}=or(t),u=mA({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return _.jsx(he.p,{ref:r,className:st("chakra-text",t.className),...u,...l,__css:n})});Id.displayName="Text";var mR=e=>_.jsx(he.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});mR.displayName="StackItem";function XG(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":hR(r,i=>n[i])}}var ma=Ee((e,t)=>{const{isInline:r,direction:n,align:i,justify:o,spacing:a="0.5rem",wrap:s,children:l,divider:u,className:c,shouldWrapChildren:d,...p}=e,f=r?"row":n??"column",h=C.useMemo(()=>XG({spacing:a,direction:f}),[a,f]),v=!!u,y=!d&&!v,m=C.useMemo(()=>{const b=KI(l);return y?b:b.map((S,x)=>{const w=typeof S.key<"u"?S.key:x,$=x+1===b.length,E=d?_.jsx(mR,{children:S},w):S;if(!v)return E;const T=C.cloneElement(u,{__css:h}),z=$?null:T;return _.jsxs(C.Fragment,{children:[E,z]},w)})},[u,h,v,y,d,l]),g=st("chakra-stack",c);return _.jsx(he.div,{ref:t,display:"flex",alignItems:i,justifyContent:o,flexDirection:f,flexWrap:s,gap:v?void 0:a,className:g,...p,children:m})});ma.displayName="Stack";var vR=Ee((e,t)=>_.jsx(ma,{align:"center",...e,direction:"row",ref:t}));vR.displayName="HStack";function _P(e){return hR(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var sa=Ee(function(t,r){const{area:n,colSpan:i,colStart:o,colEnd:a,rowEnd:s,rowSpan:l,rowStart:u,...c}=t,d=mA({gridArea:n,gridColumn:_P(i),gridRow:_P(l),gridColumnStart:o,gridColumnEnd:a,gridRowStart:u,gridRowEnd:s});return _.jsx(he.div,{ref:r,__css:d,...c})});sa.displayName="GridItem";var LS=Ee(function(t,r){const n=yi("Heading",t),{className:i,...o}=or(t);return _.jsx(he.h2,{ref:r,className:st("chakra-heading",t.className),...o,__css:n})});LS.displayName="Heading";var nt=he("div");nt.displayName="Box";var gR=Ee(function(t,r){const{size:n,centerContent:i=!0,...o}=t,a=i?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return _.jsx(nt,{ref:r,boxSize:n,__css:{...a,flexShrink:0,flexGrow:0},...o})});gR.displayName="Square";var QG=Ee(function(t,r){const{size:n,...i}=t;return _.jsx(gR,{size:n,ref:r,borderRadius:"9999px",...i})});QG.displayName="Circle";var VS=Ee(function(t,r){const{borderLeftWidth:n,borderBottomWidth:i,borderTopWidth:o,borderRightWidth:a,borderWidth:s,borderStyle:l,borderColor:u,...c}=yi("Divider",t),{className:d,orientation:p="horizontal",__css:f,...h}=or(t),v={vertical:{borderLeftWidth:n||a||s||"1px",height:"100%"},horizontal:{borderBottomWidth:i||o||s||"1px",width:"100%"}};return _.jsx(he.hr,{ref:r,"aria-orientation":p,...h,__css:{...c,border:"0",borderColor:u,borderStyle:l,...v[p],...f},className:st("chakra-divider",d)})});VS.displayName="Divider";function ZG(e,t={}){const{ssr:r=!0,fallback:n}=t,{getWindow:i}=J8(),o=Array.isArray(e)?e:[e];let a=Array.isArray(n)?n:[n];a=a.filter(u=>u!=null);const[s,l]=C.useState(()=>o.map((u,c)=>({media:u,matches:r?!!a[c]:i().matchMedia(u).matches})));return C.useEffect(()=>{const u=i();l(o.map(p=>({media:p,matches:u.matchMedia(p).matches})));const c=o.map(p=>u.matchMedia(p)),d=p=>{l(f=>f.slice().map(h=>h.media===p.media?{...h,matches:p.matches}:h))};return c.forEach(p=>{typeof p.addListener=="function"?p.addListener(d):p.addEventListener("change",d)}),()=>{c.forEach(p=>{typeof p.removeListener=="function"?p.removeListener(d):p.removeEventListener("change",d)})}},[i]),s.map(u=>u.matches)}function JG(e,t,r=pR){let n=Object.keys(e).indexOf(t);if(n!==-1)return e[t];let i=r.indexOf(t);for(;i>=0;){const o=r[i];if(e.hasOwnProperty(o)){n=i;break}i-=1}if(n!==-1){const o=r[n];return e[o]}}function eY(e){var t,r;const n=Sr(e)?e:{fallback:e??"base"},o=hs().__breakpoints.details.map(({minMaxQuery:u,breakpoint:c})=>({breakpoint:c,query:u.replace("@media screen and ","")})),a=o.map(u=>u.breakpoint===n.fallback),l=ZG(o.map(u=>u.query),{fallback:a,ssr:n.ssr}).findIndex(u=>u==!0);return(r=(t=o[l])==null?void 0:t.breakpoint)!=null?r:n.fallback}function tY(e,t){var r;const n=Sr(t)?t:{fallback:t??"base"},i=eY(n),o=hs();if(!i)return;const a=Array.from(((r=o.__breakpoints)==null?void 0:r.keys)||[]),s=Array.isArray(e)?Object.fromEntries(Object.entries(YG(e,a)).map(([l,u])=>[l,u])):e;return JG(s,i,a)}function rY(e){const t=e.current;if(!t)return!1;const r=VG(t);return!r||t.contains(r)?!1:!!HG(r)}function nY(e,t){const{shouldFocus:r,visible:n,focusRef:i}=t,o=r&&!n;is(()=>{if(!o||rY(e))return;const a=(i==null?void 0:i.current)||e.current;let s;if(a)return s=requestAnimationFrame(()=>{a.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(s)}},[o,e,i])}var Os=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),hn={arrowShadowColor:Os("--popper-arrow-shadow-color"),arrowSize:Os("--popper-arrow-size","8px"),arrowSizeHalf:Os("--popper-arrow-size-half"),arrowBg:Os("--popper-arrow-bg"),transformOrigin:Os("--popper-transform-origin"),arrowOffset:Os("--popper-arrow-offset")};function iY(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var oY={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},aY=e=>oY[e],CP={scroll:!0,resize:!0};function sY(e){let t;return typeof e=="object"?t={enabled:!0,options:{...CP,...e}}:t={enabled:e,options:CP},t}var lY={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},uY={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{PP(e)},effect:({state:e})=>()=>{PP(e)}},PP=e=>{e.elements.popper.style.setProperty(hn.transformOrigin.var,aY(e.placement))},cY={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{dY(e)}},dY=e=>{var t;if(!e.placement)return;const r=fY(e.placement);if((t=e.elements)!=null&&t.arrow&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:hn.arrowSize.varRef,height:hn.arrowSize.varRef,zIndex:-1});const n={[hn.arrowSizeHalf.var]:`calc(${hn.arrowSize.varRef} / 2 - 1px)`,[hn.arrowOffset.var]:`calc(${hn.arrowSizeHalf.varRef} * -1)`};for(const i in n)e.elements.arrow.style.setProperty(i,n[i])}},fY=e=>{if(e.startsWith("top"))return{property:"bottom",value:hn.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:hn.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:hn.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:hn.arrowOffset.varRef}},pY={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{kP(e)},effect:({state:e})=>()=>{kP(e)}},kP=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=iY(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:hn.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},hY={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},mY={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function vY(e,t="ltr"){var r,n;const i=((r=hY[e])==null?void 0:r[t])||e;return t==="ltr"?i:(n=mY[e])!=null?n:i}var rn="top",Wn="bottom",Hn="right",nn="left",zS="auto",Rd=[rn,Wn,Hn,nn],jl="start",sd="end",gY="clippingParents",yR="viewport",Nu="popper",yY="reference",EP=Rd.reduce(function(e,t){return e.concat([t+"-"+jl,t+"-"+sd])},[]),bR=[].concat(Rd,[zS]).reduce(function(e,t){return e.concat([t,t+"-"+jl,t+"-"+sd])},[]),bY="beforeRead",SY="read",wY="afterRead",$Y="beforeMain",xY="main",_Y="afterMain",CY="beforeWrite",PY="write",kY="afterWrite",EY=[bY,SY,wY,$Y,xY,_Y,CY,PY,kY];function zi(e){return e?(e.nodeName||"").toLowerCase():null}function $n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ss(e){var t=$n(e).Element;return e instanceof t||e instanceof Element}function zn(e){var t=$n(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function BS(e){if(typeof ShadowRoot>"u")return!1;var t=$n(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function TY(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},o=t.elements[r];!zn(o)||!zi(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function OY(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],o=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(l,u){return l[u]="",l},{});!zn(i)||!zi(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const AY={name:"applyStyles",enabled:!0,phase:"write",fn:TY,effect:OY,requires:["computeStyles"]};function Vi(e){return e.split("-")[0]}var Za=Math.max,Ah=Math.min,Nl=Math.round;function db(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function SR(){return!/^((?!chrome|android).)*safari/i.test(db())}function Fl(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&zn(e)&&(i=e.offsetWidth>0&&Nl(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Nl(n.height)/e.offsetHeight||1);var a=ss(e)?$n(e):window,s=a.visualViewport,l=!SR()&&r,u=(n.left+(l&&s?s.offsetLeft:0))/i,c=(n.top+(l&&s?s.offsetTop:0))/o,d=n.width/i,p=n.height/o;return{width:d,height:p,top:c,right:u+d,bottom:c+p,left:u,x:u,y:c}}function US(e){var t=Fl(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function wR(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&BS(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function wo(e){return $n(e).getComputedStyle(e)}function IY(e){return["table","td","th"].indexOf(zi(e))>=0}function wa(e){return((ss(e)?e.ownerDocument:e.document)||window.document).documentElement}function Jm(e){return zi(e)==="html"?e:e.assignedSlot||e.parentNode||(BS(e)?e.host:null)||wa(e)}function TP(e){return!zn(e)||wo(e).position==="fixed"?null:e.offsetParent}function RY(e){var t=/firefox/i.test(db()),r=/Trident/i.test(db());if(r&&zn(e)){var n=wo(e);if(n.position==="fixed")return null}var i=Jm(e);for(BS(i)&&(i=i.host);zn(i)&&["html","body"].indexOf(zi(i))<0;){var o=wo(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Md(e){for(var t=$n(e),r=TP(e);r&&IY(r)&&wo(r).position==="static";)r=TP(r);return r&&(zi(r)==="html"||zi(r)==="body"&&wo(r).position==="static")?t:r||RY(e)||t}function WS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $c(e,t,r){return Za(e,Ah(t,r))}function MY(e,t,r){var n=$c(e,t,r);return n>r?r:n}function $R(){return{top:0,right:0,bottom:0,left:0}}function xR(e){return Object.assign({},$R(),e)}function _R(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var DY=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,xR(typeof t!="number"?t:_R(t,Rd))};function jY(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Vi(r.placement),l=WS(s),u=[nn,Hn].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var d=DY(i.padding,r),p=US(o),f=l==="y"?rn:nn,h=l==="y"?Wn:Hn,v=r.rects.reference[c]+r.rects.reference[l]-a[l]-r.rects.popper[c],y=a[l]-r.rects.reference[l],m=Md(o),g=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,b=v/2-y/2,S=d[f],x=g-p[c]-d[h],w=g/2-p[c]/2+b,$=$c(S,w,x),P=l;r.modifiersData[n]=(t={},t[P]=$,t.centerOffset=$-w,t)}}function NY(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||wR(t.elements.popper,i)&&(t.elements.arrow=i))}const FY={name:"arrow",enabled:!0,phase:"main",fn:jY,effect:NY,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ll(e){return e.split("-")[1]}var LY={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VY(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:Nl(r*i)/i||0,y:Nl(n*i)/i||0}}function OP(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,f=p===void 0?0:p,h=a.y,v=h===void 0?0:h,y=typeof c=="function"?c({x:f,y:v}):{x:f,y:v};f=y.x,v=y.y;var m=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),b=nn,S=rn,x=window;if(u){var w=Md(r),$="clientHeight",P="clientWidth";if(w===$n(r)&&(w=wa(r),wo(w).position!=="static"&&s==="absolute"&&($="scrollHeight",P="scrollWidth")),w=w,i===rn||(i===nn||i===Hn)&&o===sd){S=Wn;var E=d&&w===x&&x.visualViewport?x.visualViewport.height:w[$];v-=E-n.height,v*=l?1:-1}if(i===nn||(i===rn||i===Wn)&&o===sd){b=Hn;var T=d&&w===x&&x.visualViewport?x.visualViewport.width:w[P];f-=T-n.width,f*=l?1:-1}}var z=Object.assign({position:s},u&&LY),W=c===!0?VY({x:f,y:v},$n(r)):{x:f,y:v};if(f=W.x,v=W.y,l){var Y;return Object.assign({},z,(Y={},Y[S]=g?"0":"",Y[b]=m?"0":"",Y.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",Y))}return Object.assign({},z,(t={},t[S]=g?v+"px":"",t[b]=m?f+"px":"",t.transform="",t))}function zY(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,a=o===void 0?!0:o,s=r.roundOffsets,l=s===void 0?!0:s,u={placement:Vi(t.placement),variation:Ll(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,OP(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,OP(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const BY={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zY,data:{}};var Lf={passive:!0};function UY(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,a=n.resize,s=a===void 0?!0:a,l=$n(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",r.update,Lf)}),s&&l.addEventListener("resize",r.update,Lf),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",r.update,Lf)}),s&&l.removeEventListener("resize",r.update,Lf)}}const WY={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:UY,data:{}};var HY={left:"right",right:"left",bottom:"top",top:"bottom"};function Ap(e){return e.replace(/left|right|bottom|top/g,function(t){return HY[t]})}var qY={start:"end",end:"start"};function AP(e){return e.replace(/start|end/g,function(t){return qY[t]})}function HS(e){var t=$n(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function qS(e){return Fl(wa(e)).left+HS(e).scrollLeft}function KY(e,t){var r=$n(e),n=wa(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=SR();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+qS(e),y:l}}function GY(e){var t,r=wa(e),n=HS(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Za(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Za(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+qS(e),l=-n.scrollTop;return wo(i||r).direction==="rtl"&&(s+=Za(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function KS(e){var t=wo(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function CR(e){return["html","body","#document"].indexOf(zi(e))>=0?e.ownerDocument.body:zn(e)&&KS(e)?e:CR(Jm(e))}function xc(e,t){var r;t===void 0&&(t=[]);var n=CR(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=$n(n),a=i?[o].concat(o.visualViewport||[],KS(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(xc(Jm(a)))}function fb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function YY(e,t){var r=Fl(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function IP(e,t,r){return t===yR?fb(KY(e,r)):ss(t)?YY(t,r):fb(GY(wa(e)))}function XY(e){var t=xc(Jm(e)),r=["absolute","fixed"].indexOf(wo(e).position)>=0,n=r&&zn(e)?Md(e):e;return ss(n)?t.filter(function(i){return ss(i)&&wR(i,n)&&zi(i)!=="body"}):[]}function QY(e,t,r,n){var i=t==="clippingParents"?XY(e):[].concat(t),o=[].concat(i,[r]),a=o[0],s=o.reduce(function(l,u){var c=IP(e,u,n);return l.top=Za(c.top,l.top),l.right=Ah(c.right,l.right),l.bottom=Ah(c.bottom,l.bottom),l.left=Za(c.left,l.left),l},IP(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function PR(e){var t=e.reference,r=e.element,n=e.placement,i=n?Vi(n):null,o=n?Ll(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(i){case rn:l={x:a,y:t.y-r.height};break;case Wn:l={x:a,y:t.y+t.height};break;case Hn:l={x:t.x+t.width,y:s};break;case nn:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?WS(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case jl:l[u]=l[u]-(t[c]/2-r[c]/2);break;case sd:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function ld(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.strategy,a=o===void 0?e.strategy:o,s=r.boundary,l=s===void 0?gY:s,u=r.rootBoundary,c=u===void 0?yR:u,d=r.elementContext,p=d===void 0?Nu:d,f=r.altBoundary,h=f===void 0?!1:f,v=r.padding,y=v===void 0?0:v,m=xR(typeof y!="number"?y:_R(y,Rd)),g=p===Nu?yY:Nu,b=e.rects.popper,S=e.elements[h?g:p],x=QY(ss(S)?S:S.contextElement||wa(e.elements.popper),l,c,a),w=Fl(e.elements.reference),$=PR({reference:w,element:b,strategy:"absolute",placement:i}),P=fb(Object.assign({},b,$)),E=p===Nu?P:w,T={top:x.top-E.top+m.top,bottom:E.bottom-x.bottom+m.bottom,left:x.left-E.left+m.left,right:E.right-x.right+m.right},z=e.modifiersData.offset;if(p===Nu&&z){var W=z[i];Object.keys(T).forEach(function(Y){var H=[Hn,Wn].indexOf(Y)>=0?1:-1,X=[rn,Wn].indexOf(Y)>=0?"y":"x";T[Y]+=W[X]*H})}return T}function ZY(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?bR:l,c=Ll(n),d=c?s?EP:EP.filter(function(h){return Ll(h)===c}):Rd,p=d.filter(function(h){return u.indexOf(h)>=0});p.length===0&&(p=d);var f=p.reduce(function(h,v){return h[v]=ld(e,{placement:v,boundary:i,rootBoundary:o,padding:a})[Vi(v)],h},{});return Object.keys(f).sort(function(h,v){return f[h]-f[v]})}function JY(e){if(Vi(e)===zS)return[];var t=Ap(e);return[AP(e),t,AP(t)]}function eX(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!0:a,l=r.fallbackPlacements,u=r.padding,c=r.boundary,d=r.rootBoundary,p=r.altBoundary,f=r.flipVariations,h=f===void 0?!0:f,v=r.allowedAutoPlacements,y=t.options.placement,m=Vi(y),g=m===y,b=l||(g||!h?[Ap(y)]:JY(y)),S=[y].concat(b).reduce(function(k,I){return k.concat(Vi(I)===zS?ZY(t,{placement:I,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:v}):I)},[]),x=t.rects.reference,w=t.rects.popper,$=new Map,P=!0,E=S[0],T=0;T=0,X=H?"width":"height",te=ld(t,{placement:z,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),Z=H?Y?Hn:nn:Y?Wn:rn;x[X]>w[X]&&(Z=Ap(Z));var L=Ap(Z),J=[];if(o&&J.push(te[W]<=0),s&&J.push(te[Z]<=0,te[L]<=0),J.every(function(k){return k})){E=z,P=!1;break}$.set(z,J)}if(P)for(var B=h?3:1,R=function(I){var V=S.find(function(Q){var ee=$.get(Q);if(ee)return ee.slice(0,I).every(function(ue){return ue})});if(V)return E=V,"break"},U=B;U>0;U--){var M=R(U);if(M==="break")break}t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}}const tX={name:"flip",enabled:!0,phase:"main",fn:eX,requiresIfExists:["offset"],data:{_skip:!1}};function RP(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function MP(e){return[rn,Hn,Wn,nn].some(function(t){return e[t]>=0})}function rX(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=ld(t,{elementContext:"reference"}),s=ld(t,{altBoundary:!0}),l=RP(a,n),u=RP(s,i,o),c=MP(l),d=MP(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const nX={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rX};function iX(e,t,r){var n=Vi(e),i=[nn,rn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[nn,Hn].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function oX(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,a=bR.reduce(function(c,d){return c[d]=iX(d,t.rects,o),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}const aX={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:oX};function sX(e){var t=e.state,r=e.name;t.modifiersData[r]=PR({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const lX={name:"popperOffsets",enabled:!0,phase:"read",fn:sX,data:{}};function uX(e){return e==="x"?"y":"x"}function cX(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!1:a,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,d=r.padding,p=r.tether,f=p===void 0?!0:p,h=r.tetherOffset,v=h===void 0?0:h,y=ld(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=Vi(t.placement),g=Ll(t.placement),b=!g,S=WS(m),x=uX(S),w=t.modifiersData.popperOffsets,$=t.rects.reference,P=t.rects.popper,E=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,T=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(w){if(o){var Y,H=S==="y"?rn:nn,X=S==="y"?Wn:Hn,te=S==="y"?"height":"width",Z=w[S],L=Z+y[H],J=Z-y[X],B=f?-P[te]/2:0,R=g===jl?$[te]:P[te],U=g===jl?-P[te]:-$[te],M=t.elements.arrow,k=f&&M?US(M):{width:0,height:0},I=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$R(),V=I[H],Q=I[X],ee=$c(0,$[te],k[te]),ue=b?$[te]/2-B-ee-V-T.mainAxis:R-ee-V-T.mainAxis,ce=b?-$[te]/2+B+ee+Q+T.mainAxis:U+ee+Q+T.mainAxis,ie=t.elements.arrow&&Md(t.elements.arrow),Te=ie?S==="y"?ie.clientTop||0:ie.clientLeft||0:0,rt=(Y=z==null?void 0:z[S])!=null?Y:0,Oe=Z+ue-rt-Te,ae=Z+ce-rt,Ie=$c(f?Ah(L,Oe):L,Z,f?Za(J,ae):J);w[S]=Ie,W[S]=Ie-Z}if(s){var ot,Tt=S==="x"?rn:nn,$r=S==="x"?Wn:Hn,bt=w[x],qt=x==="y"?"height":"width",ft=bt+y[Tt],Ue=bt-y[$r],Jt=[rn,nn].indexOf(m)!==-1,Rr=(ot=z==null?void 0:z[x])!=null?ot:0,xr=Jt?ft:bt-$[qt]-P[qt]-Rr+T.altAxis,Wr=Jt?bt+$[qt]+P[qt]-Rr-T.altAxis:Ue,ne=f&&Jt?MY(xr,bt,Wr):$c(f?xr:ft,bt,f?Wr:Ue);w[x]=ne,W[x]=ne-bt}t.modifiersData[n]=W}}const dX={name:"preventOverflow",enabled:!0,phase:"main",fn:cX,requiresIfExists:["offset"]};function fX(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pX(e){return e===$n(e)||!zn(e)?HS(e):fX(e)}function hX(e){var t=e.getBoundingClientRect(),r=Nl(t.width)/e.offsetWidth||1,n=Nl(t.height)/e.offsetHeight||1;return r!==1||n!==1}function mX(e,t,r){r===void 0&&(r=!1);var n=zn(t),i=zn(t)&&hX(t),o=wa(t),a=Fl(e,i,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((zi(t)!=="body"||KS(o))&&(s=pX(t)),zn(t)?(l=Fl(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=qS(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function vX(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&i(l)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function gX(e){var t=vX(e);return EY.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function yX(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function bX(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var DP={placement:"bottom",modifiers:[],strategy:"absolute"};function jP(){for(var e=arguments.length,t=new Array(e),r=0;r{}),b=C.useCallback(()=>{var T;!t||!h.current||!v.current||((T=g.current)==null||T.call(g),y.current=$X(h.current,v.current,{placement:m,modifiers:[pY,cY,uY,{...lY,enabled:!!p},{name:"eventListeners",...sY(a)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:s??[0,l]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!d,options:{boundary:c}},...r??[]],strategy:i}),y.current.forceUpdate(),g.current=y.current.destroy)},[m,t,r,p,a,o,s,l,u,d,c,i]);C.useEffect(()=>()=>{var T;!h.current&&!v.current&&((T=y.current)==null||T.destroy(),y.current=null)},[]);const S=C.useCallback(T=>{h.current=T,b()},[b]),x=C.useCallback((T={},z=null)=>({...T,ref:zr(S,z)}),[S]),w=C.useCallback(T=>{v.current=T,b()},[b]),$=C.useCallback((T={},z=null)=>({...T,ref:zr(w,z),style:{...T.style,position:i,minWidth:p?void 0:"max-content",inset:"0 auto auto 0"}}),[i,w,p]),P=C.useCallback((T={},z=null)=>{const{size:W,shadowColor:Y,bg:H,style:X,...te}=T;return{...te,ref:z,"data-popper-arrow":"",style:_X(T)}},[]),E=C.useCallback((T={},z=null)=>({...T,ref:z,"data-popper-arrow-inner":""}),[]);return{update(){var T;(T=y.current)==null||T.update()},forceUpdate(){var T;(T=y.current)==null||T.forceUpdate()},transformOrigin:hn.transformOrigin.varRef,referenceRef:S,popperRef:w,getPopperProps:$,getArrowProps:P,getArrowInnerProps:E,getReferenceProps:x}}function _X(e){const{size:t,shadowColor:r,bg:n,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),r&&(o["--popper-arrow-shadow-color"]=r),n&&(o["--popper-arrow-bg"]=n),o}function CX(e={}){const{onClose:t,onOpen:r,isOpen:n,id:i}=e,o=Vt(r),a=Vt(t),[s,l]=C.useState(e.defaultIsOpen||!1),u=n!==void 0?n:s,c=n!==void 0,d=C.useId(),p=i??`disclosure-${d}`,f=C.useCallback(()=>{c||l(!1),a==null||a()},[c,a]),h=C.useCallback(()=>{c||l(!0),o==null||o()},[c,o]),v=C.useCallback(()=>{u?f():h()},[u,h,f]);function y(g={}){return{...g,"aria-expanded":u,"aria-controls":p,onClick(b){var S;(S=g.onClick)==null||S.call(g,b),v()}}}function m(g={}){return{...g,hidden:!u,id:p}}return{isOpen:u,onOpen:h,onClose:f,onToggle:v,isControlled:c,getButtonProps:y,getDisclosureProps:m}}function PX(e){const{ref:t,handler:r,enabled:n=!0}=e,i=Vt(r),a=C.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;C.useEffect(()=>{if(!n)return;const s=d=>{oy(d,t)&&(a.isPointerDown=!0)},l=d=>{if(a.ignoreEmulatedMouseEvents){a.ignoreEmulatedMouseEvents=!1;return}a.isPointerDown&&r&&oy(d,t)&&(a.isPointerDown=!1,i(d))},u=d=>{a.ignoreEmulatedMouseEvents=!0,r&&a.isPointerDown&&oy(d,t)&&(a.isPointerDown=!1,i(d))},c=kR(t.current);return c.addEventListener("mousedown",s,!0),c.addEventListener("mouseup",l,!0),c.addEventListener("touchstart",s,!0),c.addEventListener("touchend",u,!0),()=>{c.removeEventListener("mousedown",s,!0),c.removeEventListener("mouseup",l,!0),c.removeEventListener("touchstart",s,!0),c.removeEventListener("touchend",u,!0)}},[r,t,i,a,n])}function oy(e,t){var r;const n=e.target;return n&&!kR(n).contains(n)?!1:!((r=t.current)!=null&&r.contains(n))}function kR(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function kX(e){const{isOpen:t,ref:r}=e,[n,i]=C.useState(t),[o,a]=C.useState(!1);return C.useEffect(()=>{o||(i(t),a(!0))},[t,o,n]),nR(()=>r.current,"animationend",()=>{i(t)}),{present:!(t?!1:!n),onComplete(){var l;const u=LG(r.current),c=new u.CustomEvent("animationend",{bubbles:!0});(l=r.current)==null||l.dispatchEvent(c)}}}var[EX,eEe,TX,tEe]=ZK(),[OX,rEe]=ir({strict:!1,name:"MenuContext"});function AX(e,...t){const r=C.useId(),n=e||r;return C.useMemo(()=>t.map(i=>`${i}-${n}`),[n,t])}function IX(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function RX(e={}){const{id:t,closeOnSelect:r=!0,closeOnBlur:n=!0,initialFocusRef:i,autoSelect:o=!0,isLazy:a,isOpen:s,defaultIsOpen:l,onClose:u,onOpen:c,placement:d="bottom-start",lazyBehavior:p="unmount",direction:f,computePositionOnMount:h=!1,...v}=e,y=C.useRef(null),m=C.useRef(null),g=TX(),b=C.useCallback(()=>{requestAnimationFrame(()=>{var M;(M=y.current)==null||M.focus({preventScroll:!1})})},[]),S=C.useCallback(()=>{const M=setTimeout(()=>{var k;if(i)(k=i.current)==null||k.focus();else{const I=g.firstEnabled();I&&Y(I.index)}});L.current.add(M)},[g,i]),x=C.useCallback(()=>{const M=setTimeout(()=>{const k=g.lastEnabled();k&&Y(k.index)});L.current.add(M)},[g]),w=C.useCallback(()=>{c==null||c(),o?S():b()},[o,S,b,c]),{isOpen:$,onOpen:P,onClose:E,onToggle:T}=CX({isOpen:s,defaultIsOpen:l,onClose:u,onOpen:w});PX({enabled:$&&n,ref:y,handler:M=>{var k;(k=m.current)!=null&&k.contains(M.target)||E()}});const z=xX({...v,enabled:$||h,placement:d,direction:f}),[W,Y]=C.useState(-1);is(()=>{$||Y(-1)},[$]),nY(y,{focusRef:m,visible:$,shouldFocus:!0});const H=kX({isOpen:$,ref:y}),[X,te]=AX(t,"menu-button","menu-list"),Z=C.useCallback(()=>{P(),b()},[P,b]),L=C.useRef(new Set([]));C.useEffect(()=>{const M=L.current;return()=>{M.forEach(k=>clearTimeout(k)),M.clear()}},[]);const J=C.useCallback(()=>{P(),S()},[S,P]),B=C.useCallback(()=>{P(),x()},[P,x]),R=C.useCallback(()=>{var M,k;const I=IX(y.current),V=(M=y.current)==null?void 0:M.contains(I.activeElement);if(!($&&!V))return;const ee=(k=g.item(W))==null?void 0:k.node;ee==null||ee.focus({preventScroll:!0})},[$,W,g]),U=C.useRef(null);return{openAndFocusMenu:Z,openAndFocusFirstItem:J,openAndFocusLastItem:B,onTransitionEnd:R,unstable__animationState:H,descendants:g,popper:z,buttonId:X,menuId:te,forceUpdate:z.forceUpdate,orientation:"vertical",isOpen:$,onToggle:T,onOpen:P,onClose:E,menuRef:y,buttonRef:m,focusedIndex:W,closeOnSelect:r,closeOnBlur:n,autoSelect:o,setFocusedIndex:Y,isLazy:a,lazyBehavior:p,initialFocusRef:i,rafId:U}}var[MX,DX]=ir({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),ER=e=>{const{children:t}=e,r=cr("Menu",e),n=or(e),{direction:i}=hs(),{descendants:o,...a}=RX({...n,direction:i}),s=C.useMemo(()=>a,[a]),{isOpen:l,onClose:u,forceUpdate:c}=s;return _.jsx(EX,{value:o,children:_.jsx(OX,{value:s,children:_.jsx(MX,{value:r,children:ui(t,{isOpen:l,onClose:u,forceUpdate:c})})})})};ER.displayName="Menu";var TR=e=>{const{className:t,children:r,...n}=e,i=DX(),o=C.Children.only(r),a=C.isValidElement(o)?C.cloneElement(o,{focusable:"false","aria-hidden":!0,className:st("chakra-menu__icon",o.props.className)}):null,s=st("chakra-menu__icon-wrapper",t);return _.jsx(he.span,{className:s,...n,__css:i.icon,children:a})};TR.displayName="MenuIcon";var jX=e=>_.jsx(Pn,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),NX=e=>_.jsx(Pn,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function NP(e,t,r,n){C.useEffect(()=>{var i;if(!e.current||!n)return;const o=(i=e.current.ownerDocument.defaultView)!=null?i:window,a=Array.isArray(t)?t:[t],s=new o.MutationObserver(l=>{for(const u of l)u.type==="attributes"&&u.attributeName&&a.includes(u.attributeName)&&r(u)});return s.observe(e.current,{attributes:!0,attributeFilter:a}),()=>s.disconnect()})}function FX(e,t){const r=Vt(e);C.useEffect(()=>{let n=null;const i=()=>r();return t!==null&&(n=window.setInterval(i,t)),()=>{n&&window.clearInterval(n)}},[t,r])}var LX=50,FP=300;function VX(e,t){const[r,n]=C.useState(!1),[i,o]=C.useState(null),[a,s]=C.useState(!0),l=C.useRef(null),u=()=>clearTimeout(l.current);FX(()=>{i==="increment"&&e(),i==="decrement"&&t()},r?LX:null);const c=C.useCallback(()=>{a&&e(),l.current=setTimeout(()=>{s(!1),n(!0),o("increment")},FP)},[e,a]),d=C.useCallback(()=>{a&&t(),l.current=setTimeout(()=>{s(!1),n(!0),o("decrement")},FP)},[t,a]),p=C.useCallback(()=>{s(!0),n(!1),u()},[]);return C.useEffect(()=>()=>u(),[]),{up:c,down:d,stop:p,isSpinning:r}}var zX=/^[Ee0-9+\-.]$/;function BX(e){return zX.test(e)}function UX(e,t){if(e.key==null)return!0;const r=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||r?!0:t(e.key)}function WX(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:r=!0,keepWithinRange:n=!0,min:i=Number.MIN_SAFE_INTEGER,max:o=Number.MAX_SAFE_INTEGER,step:a=1,isReadOnly:s,isDisabled:l,isRequired:u,isInvalid:c,pattern:d="[0-9]*(.[0-9]+)?",inputMode:p="decimal",allowMouseWheel:f,id:h,onChange:v,precision:y,name:m,"aria-describedby":g,"aria-label":b,"aria-labelledby":S,onFocus:x,onBlur:w,onInvalid:$,getAriaValueText:P,isValidCharacter:E,format:T,parse:z,...W}=e,Y=Vt(x),H=Vt(w),X=Vt($),te=Vt(E??BX),Z=Vt(P),L=jG(e),{update:J,increment:B,decrement:R}=L,[U,M]=C.useState(!1),k=!(s||l),I=C.useRef(null),V=C.useRef(null),Q=C.useRef(null),ee=C.useRef(null),ue=C.useCallback(ne=>ne.split("").filter(te).join(""),[te]),ce=C.useCallback(ne=>{var $e;return($e=z==null?void 0:z(ne))!=null?$e:ne},[z]),ie=C.useCallback(ne=>{var $e;return(($e=T==null?void 0:T(ne))!=null?$e:ne).toString()},[T]);is(()=>{(L.valueAsNumber>o||L.valueAsNumber{if(!I.current)return;if(I.current.value!=L.value){const $e=ce(I.current.value);L.setValue(ue($e))}},[ce,ue]);const Te=C.useCallback((ne=a)=>{k&&B(ne)},[B,k,a]),rt=C.useCallback((ne=a)=>{k&&R(ne)},[R,k,a]),Oe=VX(Te,rt);NP(Q,"disabled",Oe.stop,Oe.isSpinning),NP(ee,"disabled",Oe.stop,Oe.isSpinning);const ae=C.useCallback(ne=>{if(ne.nativeEvent.isComposing)return;const We=ce(ne.currentTarget.value);J(ue(We)),V.current={start:ne.currentTarget.selectionStart,end:ne.currentTarget.selectionEnd}},[J,ue,ce]),Ie=C.useCallback(ne=>{var $e,We,Kt;Y==null||Y(ne),V.current&&(ne.target.selectionStart=(We=V.current.start)!=null?We:($e=ne.currentTarget.value)==null?void 0:$e.length,ne.currentTarget.selectionEnd=(Kt=V.current.end)!=null?Kt:ne.currentTarget.selectionStart)},[Y]),ot=C.useCallback(ne=>{if(ne.nativeEvent.isComposing)return;UX(ne,te)||ne.preventDefault();const $e=Tt(ne)*a,We=ne.key,oe={ArrowUp:()=>Te($e),ArrowDown:()=>rt($e),Home:()=>J(i),End:()=>J(o)}[We];oe&&(ne.preventDefault(),oe(ne))},[te,a,Te,rt,J,i,o]),Tt=ne=>{let $e=1;return(ne.metaKey||ne.ctrlKey)&&($e=.1),ne.shiftKey&&($e=10),$e},$r=C.useMemo(()=>{const ne=Z==null?void 0:Z(L.value);if(ne!=null)return ne;const $e=L.value.toString();return $e||void 0},[L.value,Z]),bt=C.useCallback(()=>{let ne=L.value;if(L.value==="")return;/^[eE]/.test(L.value.toString())?L.setValue(""):(L.valueAsNumbero&&(ne=o),L.cast(ne))},[L,o,i]),qt=C.useCallback(()=>{M(!1),r&&bt()},[r,M,bt]),ft=C.useCallback(()=>{t&&requestAnimationFrame(()=>{var ne;(ne=I.current)==null||ne.focus()})},[t]),Ue=C.useCallback(ne=>{ne.preventDefault(),Oe.up(),ft()},[ft,Oe]),Jt=C.useCallback(ne=>{ne.preventDefault(),Oe.down(),ft()},[ft,Oe]);nR(()=>I.current,"wheel",ne=>{var $e,We;const oe=((We=($e=I.current)==null?void 0:$e.ownerDocument)!=null?We:document).activeElement===I.current;if(!f||!oe)return;ne.preventDefault();const ve=Tt(ne)*a,un=Math.sign(ne.deltaY);un===-1?Te(ve):un===1&&rt(ve)},{passive:!1});const Rr=C.useCallback((ne={},$e=null)=>{const We=l||n&&L.isAtMax;return{...ne,ref:zr($e,Q),role:"button",tabIndex:-1,onPointerDown:He(ne.onPointerDown,Kt=>{Kt.button!==0||We||Ue(Kt)}),onPointerLeave:He(ne.onPointerLeave,Oe.stop),onPointerUp:He(ne.onPointerUp,Oe.stop),disabled:We,"aria-disabled":ao(We)}},[L.isAtMax,n,Ue,Oe.stop,l]),xr=C.useCallback((ne={},$e=null)=>{const We=l||n&&L.isAtMin;return{...ne,ref:zr($e,ee),role:"button",tabIndex:-1,onPointerDown:He(ne.onPointerDown,Kt=>{Kt.button!==0||We||Jt(Kt)}),onPointerLeave:He(ne.onPointerLeave,Oe.stop),onPointerUp:He(ne.onPointerUp,Oe.stop),disabled:We,"aria-disabled":ao(We)}},[L.isAtMin,n,Jt,Oe.stop,l]),Wr=C.useCallback((ne={},$e=null)=>{var We,Kt,oe,ve;return{name:m,inputMode:p,type:"text",pattern:d,"aria-labelledby":S,"aria-label":b,"aria-describedby":g,id:h,disabled:l,...ne,readOnly:(We=ne.readOnly)!=null?We:s,"aria-readonly":(Kt=ne.readOnly)!=null?Kt:s,"aria-required":(oe=ne.required)!=null?oe:u,required:(ve=ne.required)!=null?ve:u,ref:zr(I,$e),value:ie(L.value),role:"spinbutton","aria-valuemin":i,"aria-valuemax":o,"aria-valuenow":Number.isNaN(L.valueAsNumber)?void 0:L.valueAsNumber,"aria-invalid":ao(c??L.isOutOfRange),"aria-valuetext":$r,autoComplete:"off",autoCorrect:"off",onChange:He(ne.onChange,ae),onKeyDown:He(ne.onKeyDown,ot),onFocus:He(ne.onFocus,Ie,()=>M(!0)),onBlur:He(ne.onBlur,H,qt)}},[m,p,d,S,b,ie,g,h,l,u,s,c,L.value,L.valueAsNumber,L.isOutOfRange,i,o,$r,ae,ot,Ie,H,qt]);return{value:ie(L.value),valueAsNumber:L.valueAsNumber,isFocused:U,isDisabled:l,isReadOnly:s,getIncrementButtonProps:Rr,getDecrementButtonProps:xr,getInputProps:Wr,htmlProps:W}}var[HX,ev]=ir({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[qX,GS]=ir({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),OR=Ee(function(t,r){const n=cr("NumberInput",t),i=or(t),o=MS(i),{htmlProps:a,...s}=WX(o),l=C.useMemo(()=>s,[s]);return _.jsx(qX,{value:l,children:_.jsx(HX,{value:n,children:_.jsx(he.div,{...a,ref:r,className:st("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...n.root}})})})});OR.displayName="NumberInput";var AR=Ee(function(t,r){const n=ev();return _.jsx(he.div,{"aria-hidden":!0,ref:r,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...n.stepperGroup}})});AR.displayName="NumberInputStepper";var IR=Ee(function(t,r){const{getInputProps:n}=GS(),i=n(t,r),o=ev();return _.jsx(he.input,{...i,className:st("chakra-numberinput__field",t.className),__css:{width:"100%",...o.field}})});IR.displayName="NumberInputField";var RR=he("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),MR=Ee(function(t,r){var n;const i=ev(),{getDecrementButtonProps:o}=GS(),a=o(t,r);return _.jsx(RR,{...a,__css:i.stepper,children:(n=t.children)!=null?n:_.jsx(jX,{})})});MR.displayName="NumberDecrementStepper";var DR=Ee(function(t,r){var n;const{getIncrementButtonProps:i}=GS(),o=i(t,r),a=ev();return _.jsx(RR,{...o,__css:a.stepper,children:(n=t.children)!=null?n:_.jsx(NX,{})})});DR.displayName="NumberIncrementStepper";function KX(e){return e&&Sr(e)&&Sr(e.target)}function GX(e={}){const{onChange:t,value:r,defaultValue:n,name:i,isDisabled:o,isFocusable:a,isNative:s,...l}=e,[u,c]=C.useState(n||""),d=typeof r<"u",p=d?r:u,f=C.useRef(null),h=C.useCallback(()=>{const x=f.current;if(!x)return;let w="input:not(:disabled):checked";const $=x.querySelector(w);if($){$.focus();return}w="input:not(:disabled)";const P=x.querySelector(w);P==null||P.focus()},[]),y=`radio-${C.useId()}`,m=i||y,g=C.useCallback(x=>{const w=KX(x)?x.target.value:x;d||c(w),t==null||t(String(w))},[t,d]),b=C.useCallback((x={},w=null)=>({...x,ref:zr(w,f),role:"radiogroup"}),[]),S=C.useCallback((x={},w=null)=>({...x,ref:w,name:m,[s?"checked":"isChecked"]:p!=null?x.value===p:void 0,onChange(P){g(P)},"data-radiogroup":!0}),[s,m,g,p]);return{getRootProps:b,getRadioProps:S,name:m,ref:f,focus:h,setValue:c,value:p,onChange:g,isDisabled:o,isFocusable:a,htmlProps:l}}var[YX,jR]=ir({name:"RadioGroupContext",strict:!1}),YS=Ee((e,t)=>{const{colorScheme:r,size:n,variant:i,children:o,className:a,isDisabled:s,isFocusable:l,...u}=e,{value:c,onChange:d,getRootProps:p,name:f,htmlProps:h}=GX(u),v=C.useMemo(()=>({name:f,size:n,onChange:d,colorScheme:r,value:c,variant:i,isDisabled:s,isFocusable:l}),[f,n,d,r,c,i,s,l]);return _.jsx(YX,{value:v,children:_.jsx(he.div,{...p(h,t),className:st("chakra-radio-group",a),children:o})})});YS.displayName="RadioGroup";var XX={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function QX(e={}){const{defaultChecked:t,isChecked:r,isFocusable:n,isDisabled:i,isReadOnly:o,isRequired:a,onChange:s,isInvalid:l,name:u,value:c,id:d,"data-radiogroup":p,"aria-describedby":f,...h}=e,v=`radio-${C.useId()}`,y=gs(),g=!!jR()||!!p;let S=!!y&&!g?y.id:v;S=d??S;const x=i??(y==null?void 0:y.isDisabled),w=o??(y==null?void 0:y.isReadOnly),$=a??(y==null?void 0:y.isRequired),P=l??(y==null?void 0:y.isInvalid),[E,T]=C.useState(!1),[z,W]=C.useState(!1),[Y,H]=C.useState(!1),[X,te]=C.useState(!1),[Z,L]=C.useState(!!t),J=typeof r<"u",B=J?r:Z;C.useEffect(()=>tR(T),[]);const R=C.useCallback(ie=>{if(w||x){ie.preventDefault();return}J||L(ie.target.checked),s==null||s(ie)},[J,x,w,s]),U=C.useCallback(ie=>{ie.key===" "&&te(!0)},[te]),M=C.useCallback(ie=>{ie.key===" "&&te(!1)},[te]),k=C.useCallback((ie={},Te=null)=>({...ie,ref:Te,"data-active":_e(X),"data-hover":_e(Y),"data-disabled":_e(x),"data-invalid":_e(P),"data-checked":_e(B),"data-focus":_e(z),"data-focus-visible":_e(z&&E),"data-readonly":_e(w),"aria-hidden":!0,onMouseDown:He(ie.onMouseDown,()=>te(!0)),onMouseUp:He(ie.onMouseUp,()=>te(!1)),onMouseEnter:He(ie.onMouseEnter,()=>H(!0)),onMouseLeave:He(ie.onMouseLeave,()=>H(!1))}),[X,Y,x,P,B,z,w,E]),{onFocus:I,onBlur:V}=y??{},Q=C.useCallback((ie={},Te=null)=>{const rt=x&&!n;return{...ie,id:S,ref:Te,type:"radio",name:u,value:c,onChange:He(ie.onChange,R),onBlur:He(V,ie.onBlur,()=>W(!1)),onFocus:He(I,ie.onFocus,()=>W(!0)),onKeyDown:He(ie.onKeyDown,U),onKeyUp:He(ie.onKeyUp,M),checked:B,disabled:rt,readOnly:w,required:$,"aria-invalid":ao(P),"aria-disabled":ao(rt),"aria-required":ao($),"data-readonly":_e(w),"aria-describedby":f,style:XX}},[x,n,S,u,c,R,V,I,U,M,B,w,$,P,f]);return{state:{isInvalid:P,isFocused:z,isChecked:B,isActive:X,isHovered:Y,isDisabled:x,isReadOnly:w,isRequired:$},getCheckboxProps:k,getRadioProps:k,getInputProps:Q,getLabelProps:(ie={},Te=null)=>({...ie,ref:Te,onMouseDown:He(ie.onMouseDown,ZX),"data-disabled":_e(x),"data-checked":_e(B),"data-invalid":_e(P)}),getRootProps:(ie,Te=null)=>({...ie,ref:Te,"data-disabled":_e(x),"data-checked":_e(B),"data-invalid":_e(P)}),htmlProps:h}}function ZX(e){e.preventDefault(),e.stopPropagation()}function JX(e,t){const r={},n={};for(const[i,o]of Object.entries(e))t.includes(i)?r[i]=o:n[i]=o;return[r,n]}var _c=Ee((e,t)=>{var r;const n=jR(),{onChange:i,value:o}=e,a=cr("Radio",{...n,...e}),s=or(e),{spacing:l="0.5rem",children:u,isDisabled:c=n==null?void 0:n.isDisabled,isFocusable:d=n==null?void 0:n.isFocusable,inputProps:p,...f}=s;let h=e.isChecked;(n==null?void 0:n.value)!=null&&o!=null&&(h=n.value===o);let v=i;n!=null&&n.onChange&&o!=null&&(v=LO(n.onChange,i));const y=(r=e==null?void 0:e.name)!=null?r:n==null?void 0:n.name,{getInputProps:m,getCheckboxProps:g,getLabelProps:b,getRootProps:S,htmlProps:x}=QX({...f,isChecked:h,isFocusable:d,isDisabled:c,onChange:v,name:y}),[w,$]=JX(x,F4),P=g($),E=m(p,t),T=b(),z=Object.assign({},w,S()),W={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...a.container},Y={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...a.control},H={userSelect:"none",marginStart:l,...a.label};return _.jsxs(he.label,{className:"chakra-radio",...z,__css:W,children:[_.jsx("input",{className:"chakra-radio__input",...E}),_.jsx(he.span,{className:"chakra-radio__control",...P,__css:Y}),u&&_.jsx(he.span,{className:"chakra-radio__label",...T,__css:H,children:u})]})});_c.displayName="Radio";var As=e=>e?"":void 0,ay=e=>e?!0:void 0,Dd=(...e)=>e.filter(Boolean).join(" ");function sy(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function Vf(e){const{orientation:t,vertical:r,horizontal:n}=e;return t==="vertical"?r:n}var Ip={width:0,height:0},zf=e=>e||Ip;function eQ(e){const{orientation:t,thumbPercents:r,thumbRects:n,isReversed:i}=e,o=v=>{var y;const m=(y=n[v])!=null?y:Ip;return{position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...Vf({orientation:t,vertical:{bottom:`calc(${r[v]}% - ${m.height/2}px)`},horizontal:{left:`calc(${r[v]}% - ${m.width/2}px)`}})}},a=t==="vertical"?n.reduce((v,y)=>zf(v).height>zf(y).height?v:y,Ip):n.reduce((v,y)=>zf(v).width>zf(y).width?v:y,Ip),s={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0,...Vf({orientation:t,vertical:a?{paddingLeft:a.width/2,paddingRight:a.width/2}:{},horizontal:a?{paddingTop:a.height/2,paddingBottom:a.height/2}:{}})},l={position:"absolute",...Vf({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},u=r.length===1,c=[0,i?100-r[0]:r[0]],d=u?c:r;let p=d[0];!u&&i&&(p=100-p);const f=Math.abs(d[d.length-1]-d[0]),h={...l,...Vf({orientation:t,vertical:i?{height:`${f}%`,top:`${p}%`}:{height:`${f}%`,bottom:`${p}%`},horizontal:i?{width:`${f}%`,right:`${p}%`}:{width:`${f}%`,left:`${p}%`}})};return{trackStyle:l,innerTrackStyle:h,rootStyle:s,getThumbStyle:o}}function tQ(e){const{isReversed:t,direction:r,orientation:n}=e;return r==="ltr"||n==="vertical"?t:!t}function rQ(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function nQ(e){const t=oQ(e);return typeof t.PointerEvent<"u"&&e instanceof t.PointerEvent?e.pointerType==="mouse":e instanceof t.MouseEvent}function NR(e){return!!e.touches}function iQ(e){return NR(e)&&e.touches.length>1}function oQ(e){var t;return(t=e.view)!=null?t:window}function aQ(e,t="page"){const r=e.touches[0]||e.changedTouches[0];return{x:r[`${t}X`],y:r[`${t}Y`]}}function sQ(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}function FR(e,t="page"){return NR(e)?aQ(e,t):sQ(e,t)}function lQ(e){return t=>{const r=nQ(t);(!r||r&&t.button===0)&&e(t)}}function uQ(e,t=!1){function r(i){e(i,{point:FR(i)})}return t?lQ(r):r}function Rp(e,t,r,n){return rQ(e,t,uQ(r,t==="pointerdown"),n)}var cQ=Object.defineProperty,dQ=(e,t,r)=>t in e?cQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Jn=(e,t,r)=>(dQ(e,typeof t!="symbol"?t+"":t,r),r),fQ=class{constructor(e,t,r){Jn(this,"history",[]),Jn(this,"startEvent",null),Jn(this,"lastEvent",null),Jn(this,"lastEventInfo",null),Jn(this,"handlers",{}),Jn(this,"removeListeners",()=>{}),Jn(this,"threshold",3),Jn(this,"win"),Jn(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const s=ly(this.lastEventInfo,this.history),l=this.startEvent!==null,u=vQ(s.offset,{x:0,y:0})>=this.threshold;if(!l&&!u)return;const{timestamp:c}=rC();this.history.push({...s.point,timestamp:c});const{onStart:d,onMove:p}=this.handlers;l||(d==null||d(this.lastEvent,s),this.startEvent=this.lastEvent),p==null||p(this.lastEvent,s)}),Jn(this,"onPointerMove",(s,l)=>{this.lastEvent=s,this.lastEventInfo=l,P8.update(this.updatePoint,!0)}),Jn(this,"onPointerUp",(s,l)=>{const u=ly(l,this.history),{onEnd:c,onSessionEnd:d}=this.handlers;d==null||d(s,u),this.end(),!(!c||!this.startEvent)&&(c==null||c(s,u))});var n;if(this.win=(n=e.view)!=null?n:window,iQ(e))return;this.handlers=t,r&&(this.threshold=r),e.stopPropagation(),e.preventDefault();const i={point:FR(e)},{timestamp:o}=rC();this.history=[{...i.point,timestamp:o}];const{onSessionStart:a}=t;a==null||a(e,ly(i,this.history)),this.removeListeners=mQ(Rp(this.win,"pointermove",this.onPointerMove),Rp(this.win,"pointerup",this.onPointerUp),Rp(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){var e;(e=this.removeListeners)==null||e.call(this),k8.update(this.updatePoint)}};function LP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ly(e,t){return{point:e.point,delta:LP(e.point,t[t.length-1]),offset:LP(e.point,t[0]),velocity:hQ(t,.1)}}var pQ=e=>e*1e3;function hQ(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=e[e.length-1];for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>pQ(t)));)r--;if(!n)return{x:0,y:0};const o=(i.timestamp-n.timestamp)/1e3;if(o===0)return{x:0,y:0};const a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function mQ(...e){return t=>e.reduce((r,n)=>n(r),t)}function uy(e,t){return Math.abs(e-t)}function VP(e){return"x"in e&&"y"in e}function vQ(e,t){if(typeof e=="number"&&typeof t=="number")return uy(e,t);if(VP(e)&&VP(t)){const r=uy(e.x,t.x),n=uy(e.y,t.y);return Math.sqrt(r**2+n**2)}return 0}function LR(e){const t=C.useRef(null);return t.current=e,t}function gQ(e,t){const{onPan:r,onPanStart:n,onPanEnd:i,onPanSessionStart:o,onPanSessionEnd:a,threshold:s}=t,l=!!(r||n||i||o||a),u=C.useRef(null),c=LR({onSessionStart:o,onSessionEnd:a,onStart:n,onMove:r,onEnd(d,p){u.current=null,i==null||i(d,p)}});C.useEffect(()=>{var d;(d=u.current)==null||d.updateHandlers(c.current)}),C.useEffect(()=>{const d=e.current;if(!d||!l)return;function p(f){u.current=new fQ(f,c.current,s)}return Rp(d,"pointerdown",p)},[e,l,c,s]),C.useEffect(()=>()=>{var d;(d=u.current)==null||d.end(),u.current=null},[])}function yQ(e,t){if(!e){t(void 0);return}t({width:e.offsetWidth,height:e.offsetHeight});const r=e.ownerDocument.defaultView??window,n=new r.ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const[o]=i;let a,s;if("borderBoxSize"in o){const l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;t({width:a,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}var bQ=globalThis!=null&&globalThis.document?C.useLayoutEffect:C.useEffect;function SQ(e,t){var r,n;if(!e||!e.parentElement)return;const i=(n=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?n:window,o=new i.MutationObserver(()=>{t()});return o.observe(e.parentElement,{childList:!0}),()=>{o.disconnect()}}function wQ({getNodes:e,observeMutation:t=!0}){const[r,n]=C.useState([]),[i,o]=C.useState(0);return bQ(()=>{const a=e(),s=a.map((l,u)=>yQ(l,c=>{n(d=>[...d.slice(0,u),c,...d.slice(u+1)])}));if(t){const l=a[0];s.push(SQ(l,()=>{o(u=>u+1)}))}return()=>{s.forEach(l=>{l==null||l()})}},[i]),r}function $Q(e){return typeof e=="object"&&e!==null&&"current"in e}function xQ(e){const[t]=wQ({observeMutation:!1,getNodes(){return[$Q(e)?e.current:e]}});return t}function _Q(e){var t;const{min:r=0,max:n=100,onChange:i,value:o,defaultValue:a,isReversed:s,direction:l="ltr",orientation:u="horizontal",id:c,isDisabled:d,isReadOnly:p,onChangeStart:f,onChangeEnd:h,step:v=1,getAriaValueText:y,"aria-valuetext":m,"aria-label":g,"aria-labelledby":b,name:S,focusThumbOnChange:x=!0,...w}=e,$=Vt(f),P=Vt(h),E=Vt(y),T=tQ({isReversed:s,direction:l,orientation:u}),[z,W]=qI({value:o,defaultValue:a??PQ(r,n),onChange:i}),[Y,H]=C.useState(!1),[X,te]=C.useState(!1),Z=!(d||p),L=(n-r)/10,J=v||(n-r)/100,B=Op(z,r,n),R=n-B+r,M=$P(T?R:B,r,n),k=u==="vertical",I=LR({min:r,max:n,step:v,isDisabled:d,value:B,isInteractive:Z,isReversed:T,isVertical:k,eventSource:null,focusThumbOnChange:x,orientation:u}),V=C.useRef(null),Q=C.useRef(null),ee=C.useRef(null),ue=C.useId(),ce=c??ue,[ie,Te]=[`slider-thumb-${ce}`,`slider-track-${ce}`],rt=C.useCallback(oe=>{var ve,un;if(!V.current)return;const pr=I.current;pr.eventSource="pointer";const Gt=V.current.getBoundingClientRect(),{clientX:er,clientY:gu}=(un=(ve=oe.touches)==null?void 0:ve[0])!=null?un:oe,xs=k?Gt.bottom-gu:er-Gt.left,yu=k?Gt.height:Gt.width;let To=xs/yu;T&&(To=1-To);let cn=DG(To,pr.min,pr.max);return pr.step&&(cn=parseFloat(xP(cn,pr.min,pr.step))),cn=Op(cn,pr.min,pr.max),cn},[k,T,I]),Oe=C.useCallback(oe=>{const ve=I.current;ve.isInteractive&&(oe=parseFloat(xP(oe,ve.min,J)),oe=Op(oe,ve.min,ve.max),W(oe))},[J,W,I]),ae=C.useMemo(()=>({stepUp(oe=J){const ve=T?B-oe:B+oe;Oe(ve)},stepDown(oe=J){const ve=T?B+oe:B-oe;Oe(ve)},reset(){Oe(a||0)},stepTo(oe){Oe(oe)}}),[Oe,T,B,J,a]),Ie=C.useCallback(oe=>{const ve=I.current,pr={ArrowRight:()=>ae.stepUp(),ArrowUp:()=>ae.stepUp(),ArrowLeft:()=>ae.stepDown(),ArrowDown:()=>ae.stepDown(),PageUp:()=>ae.stepUp(L),PageDown:()=>ae.stepDown(L),Home:()=>Oe(ve.min),End:()=>Oe(ve.max)}[oe.key];pr&&(oe.preventDefault(),oe.stopPropagation(),pr(oe),ve.eventSource="keyboard")},[ae,Oe,L,I]),ot=(t=E==null?void 0:E(B))!=null?t:m,Tt=xQ(Q),{getThumbStyle:$r,rootStyle:bt,trackStyle:qt,innerTrackStyle:ft}=C.useMemo(()=>{const oe=I.current,ve=Tt??{width:0,height:0};return eQ({isReversed:T,orientation:oe.orientation,thumbRects:[ve],thumbPercents:[M]})},[T,Tt,M,I]),Ue=C.useCallback(()=>{I.current.focusThumbOnChange&&setTimeout(()=>{var ve;return(ve=Q.current)==null?void 0:ve.focus()})},[I]);is(()=>{const oe=I.current;Ue(),oe.eventSource==="keyboard"&&(P==null||P(oe.value))},[B,P]);function Jt(oe){const ve=rt(oe);ve!=null&&ve!==I.current.value&&W(ve)}gQ(ee,{onPanSessionStart(oe){const ve=I.current;ve.isInteractive&&(H(!0),Ue(),Jt(oe),$==null||$(ve.value))},onPanSessionEnd(){const oe=I.current;oe.isInteractive&&(H(!1),P==null||P(oe.value))},onPan(oe){I.current.isInteractive&&Jt(oe)}});const Rr=C.useCallback((oe={},ve=null)=>({...oe,...w,ref:zr(ve,ee),tabIndex:-1,"aria-disabled":ay(d),"data-focused":As(X),style:{...oe.style,...bt}}),[w,d,X,bt]),xr=C.useCallback((oe={},ve=null)=>({...oe,ref:zr(ve,V),id:Te,"data-disabled":As(d),style:{...oe.style,...qt}}),[d,Te,qt]),Wr=C.useCallback((oe={},ve=null)=>({...oe,ref:ve,style:{...oe.style,...ft}}),[ft]),ne=C.useCallback((oe={},ve=null)=>({...oe,ref:zr(ve,Q),role:"slider",tabIndex:Z?0:void 0,id:ie,"data-active":As(Y),"aria-valuetext":ot,"aria-valuemin":r,"aria-valuemax":n,"aria-valuenow":B,"aria-orientation":u,"aria-disabled":ay(d),"aria-readonly":ay(p),"aria-label":g,"aria-labelledby":g?void 0:b,style:{...oe.style,...$r(0)},onKeyDown:sy(oe.onKeyDown,Ie),onFocus:sy(oe.onFocus,()=>te(!0)),onBlur:sy(oe.onBlur,()=>te(!1))}),[Z,ie,Y,ot,r,n,B,u,d,p,g,b,$r,Ie]),$e=C.useCallback((oe,ve=null)=>{const un=!(oe.valuen),pr=B>=oe.value,Gt=$P(oe.value,r,n),er={position:"absolute",pointerEvents:"none",...CQ({orientation:u,vertical:{bottom:T?`${100-Gt}%`:`${Gt}%`},horizontal:{left:T?`${100-Gt}%`:`${Gt}%`}})};return{...oe,ref:ve,role:"presentation","aria-hidden":!0,"data-disabled":As(d),"data-invalid":As(!un),"data-highlighted":As(pr),style:{...oe.style,...er}}},[d,T,n,r,u,B]),We=C.useCallback((oe={},ve=null)=>({...oe,ref:ve,type:"hidden",value:B,name:S}),[S,B]);return{state:{value:B,isFocused:X,isDragging:Y},actions:ae,getRootProps:Rr,getTrackProps:xr,getInnerTrackProps:Wr,getThumbProps:ne,getMarkerProps:$e,getInputProps:We}}function CQ(e){const{orientation:t,vertical:r,horizontal:n}=e;return t==="vertical"?r:n}function PQ(e,t){return t"}),[EQ,rv]=ir({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:""}),VR=Ee((e,t)=>{var r;const n={...e,orientation:(r=e==null?void 0:e.orientation)!=null?r:"horizontal"},i=cr("Slider",n),o=or(n),{direction:a}=hs();o.direction=a;const{getInputProps:s,getRootProps:l,...u}=_Q(o),c=l(),d=s({},t);return _.jsx(kQ,{value:u,children:_.jsx(EQ,{value:i,children:_.jsxs(he.div,{...c,className:Dd("chakra-slider",n.className),__css:i.container,children:[n.children,_.jsx("input",{...d})]})})})});VR.displayName="Slider";var zR=Ee((e,t)=>{const{getThumbProps:r}=tv(),n=rv(),i=r(e,t);return _.jsx(he.div,{...i,className:Dd("chakra-slider__thumb",e.className),__css:n.thumb})});zR.displayName="SliderThumb";var BR=Ee((e,t)=>{const{getTrackProps:r}=tv(),n=rv(),i=r(e,t);return _.jsx(he.div,{...i,className:Dd("chakra-slider__track",e.className),__css:n.track})});BR.displayName="SliderTrack";var UR=Ee((e,t)=>{const{getInnerTrackProps:r}=tv(),n=rv(),i=r(e,t);return _.jsx(he.div,{...i,className:Dd("chakra-slider__filled-track",e.className),__css:n.filledTrack})});UR.displayName="SliderFilledTrack";var TQ=Ee((e,t)=>{const{getMarkerProps:r}=tv(),n=rv(),i=r(e,t);return _.jsx(he.div,{...i,className:Dd("chakra-slider__marker",e.className),__css:n.mark})});TQ.displayName="SliderMark";function OQ(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var AQ=["h","minH","height","minHeight"],XS=Ee((e,t)=>{const r=yi("Textarea",e),{className:n,rows:i,...o}=or(e),a=RS(o),s=i?OQ(r,AQ):r;return _.jsx(he.textarea,{ref:t,rows:i,...a,className:st("chakra-textarea",n),__css:s})});XS.displayName="Textarea";const WR=e=>{try{return!!new URL(e)}catch{return!1}};var al=(e=>(e.Default="Default",e.Manual="Manual",e))(al||{}),Zi=(e=>(e.HTML="HTML",e.XLSX="XLSX",e.ASCII="ASCII",e))(Zi||{});const IQ="app-worker";var QS=(e=>(e.Loaded="loaded",e.Request="request",e.Success="success",e.Error="error",e))(QS||{});function HR(e){return e.type==="error"||e.type==="success"}function RQ(e){return{castError:e}}class MQ{constructor(t){$u(this,"callbacks",new Map);this.logic=t}handleMessage(t){if(!HR(t))return;const r=this.callbacks.get(t.requestId);if(r)switch(this.callbacks.delete(t.requestId),t.type){case"success":return r.resolve(t.result);case"error":return r.reject(t.error)}}async call(t){const r=new Promise((n,i)=>{if(this.callbacks.has(t.id)){i(this.logic.castError(new Error("Duplicate request id")));return}this.callbacks.set(t.id,{resolve:n,reject:i})});return this.sendRequest(t),r}}class DQ extends MQ{constructor(r,n){super(r);$u(this,"requests",new Set);$u(this,"handleMessageEvent",({data:r})=>{HR(r)&&this.requests.delete(r.requestId),this.handleMessage(r)});$u(this,"handleErrorEvent",r=>{for(const n of this.requests)this.handleMessage({requestId:n,type:QS.Error,error:this.logic.castError(r)});this.requests.clear()});this.worker=n}sendRequest(r){this.requests.add(r.id),this.worker.postMessage(r)}start(){this.worker.addEventListener("message",this.handleMessageEvent),this.worker.addEventListener("error",this.handleErrorEvent)}stop(){this.worker.removeEventListener("error",this.handleErrorEvent),this.worker.removeEventListener("message",this.handleMessageEvent)}}var qR=(e=>(e.CreateTable="create-table",e))(qR||{});function jQ(e){return new Worker("/json-to-table/assets/app-worker-BlT4ypWj.js",{name:e==null?void 0:e.name})}class NQ extends DQ{constructor(){super(RQ(String),new jQ)}createTable(t,r){return this.call({id:Date.now().toString(16),type:QS.Request,handlerId:IQ,request:{type:qR.CreateTable,data:t,transformConfig:r}})}}function Rt(e){return typeof File<"u"&&e instanceof File||typeof Date<"u"&&e instanceof Date?!1:typeof e=="object"&&e!==null&&!Array.isArray(e)}function FQ(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),Rt(e.additionalItems)}function zP(e){if(e==="")return;if(e===null)return null;if(/\.$/.test(e)||/\.0$/.test(e)||/\.\d*0$/.test(e))return e;const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)?t:e}const Jl="__additional_property",pb="additionalProperties",jd="allOf",Vl="anyOf",KR="const",LQ="default",nv="dependencies",VQ="enum",ci="__errors",Yo="$id",zQ="if",la="items",BQ="_$junk_option_schema_id$_",Mp="$name",ua="oneOf",Lt="properties",UQ="required",Ih="submitButtonOptions",nr="$ref",ZS="__rjsf_additionalProperties",GR="__rjsf_rootSchema",WQ="ui:field",JS="ui:widget",Cc="ui:options",HQ="ui:globalOptions";function Ye(e={},t={}){return Object.keys(e).filter(r=>r.indexOf("ui:")===0).reduce((r,n)=>{const i=e[n];return n===JS&&Rt(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):n===Cc&&Rt(i)?{...r,...i}:{...r,[n.substring(3)]:i}},{...t})}function YR(e,t={},r){if(!e.additionalProperties)return!1;const{expandable:n=!0}=Ye(t);return n===!1?n:e.maxProperties!==void 0&&r?Object.keys(r).length({...r,[i]:hb(n)}),t);if(ew(e)){const r=e;return Object.keys(r).reduce((n,i)=>({...n,[i]:hb(r[i])}),t)}return t}function _Z(){this.__data__=[],this.size=0}var CZ=_Z;function PZ(e,t){return e===t||e!==e&&t!==t}var ru=PZ,kZ=ru;function EZ(e,t){for(var r=e.length;r--;)if(kZ(e[r][0],t))return r;return-1}var ov=EZ,TZ=ov,OZ=Array.prototype,AZ=OZ.splice;function IZ(e){var t=this.__data__,r=TZ(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():AZ.call(t,r,1),--this.size,!0}var RZ=IZ,MZ=ov;function DZ(e){var t=this.__data__,r=MZ(t,e);return r<0?void 0:t[r][1]}var jZ=DZ,NZ=ov;function FZ(e){return NZ(this.__data__,e)>-1}var LZ=FZ,VZ=ov;function zZ(e,t){var r=this.__data__,n=VZ(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var BZ=zZ,UZ=CZ,WZ=RZ,HZ=jZ,qZ=LZ,KZ=BZ;function nu(e){var t=-1,r=e==null?0:e.length;for(this.clear();++ts))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,f=r&dte?new ste:void 0;for(o.set(e,t),o.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=dre}var aw=fre,pre=Co,hre=aw,mre=Kn,vre="[object Arguments]",gre="[object Array]",yre="[object Boolean]",bre="[object Date]",Sre="[object Error]",wre="[object Function]",$re="[object Map]",xre="[object Number]",_re="[object Object]",Cre="[object RegExp]",Pre="[object Set]",kre="[object String]",Ere="[object WeakMap]",Tre="[object ArrayBuffer]",Ore="[object DataView]",Are="[object Float32Array]",Ire="[object Float64Array]",Rre="[object Int8Array]",Mre="[object Int16Array]",Dre="[object Int32Array]",jre="[object Uint8Array]",Nre="[object Uint8ClampedArray]",Fre="[object Uint16Array]",Lre="[object Uint32Array]",$t={};$t[Are]=$t[Ire]=$t[Rre]=$t[Mre]=$t[Dre]=$t[jre]=$t[Nre]=$t[Fre]=$t[Lre]=!0;$t[vre]=$t[gre]=$t[Tre]=$t[yre]=$t[Ore]=$t[bre]=$t[Sre]=$t[wre]=$t[$re]=$t[xre]=$t[_re]=$t[Cre]=$t[Pre]=$t[kre]=$t[Ere]=!1;function Vre(e){return mre(e)&&hre(e.length)&&!!$t[pre(e)]}var zre=Vre;function Bre(e){return function(t){return e(t)}}var bs=Bre,Dh={exports:{}};Dh.exports;(function(e,t){var r=XR,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(Dh,Dh.exports);var sw=Dh.exports,Ure=zre,Wre=bs,JP=sw,ek=JP&&JP.isTypedArray,Hre=ek?Wre(ek):Ure,Fd=Hre,qre=oM,Kre=Nd,Gre=fr,Yre=su,Xre=pv,Qre=Fd,Zre=Object.prototype,Jre=Zre.hasOwnProperty;function ene(e,t){var r=Gre(e),n=!r&&Kre(e),i=!r&&!n&&Yre(e),o=!r&&!n&&!i&&Qre(e),a=r||n||i||o,s=a?qre(e.length,String):[],l=s.length;for(var u in e)(t||Jre.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Xre(u,l)))&&s.push(u);return s}var sM=ene,tne=Object.prototype;function rne(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||tne;return e===r}var hv=rne,nne=ZR,ine=nne(Object.keys,Object),one=ine,ane=hv,sne=one,lne=Object.prototype,une=lne.hasOwnProperty;function cne(e){if(!ane(e))return sne(e);var t=[];for(var r in Object(e))une.call(e,r)&&r!="constructor"&&t.push(r);return t}var lM=cne,dne=sv,fne=aw;function pne(e){return e!=null&&fne(e.length)&&!dne(e)}var Ss=pne,hne=sM,mne=lM,vne=Ss;function gne(e){return vne(e)?hne(e):mne(e)}var Ld=gne,yne=nM,bne=ow,Sne=Ld;function wne(e){return yne(e,Sne,bne)}var uM=wne,tk=uM,$ne=1,xne=Object.prototype,_ne=xne.hasOwnProperty;function Cne(e,t,r,n,i,o){var a=r&$ne,s=tk(e),l=s.length,u=tk(t),c=u.length;if(l!=c&&!a)return!1;for(var d=l;d--;){var p=s[d];if(!(a?p in t:_ne.call(t,p)))return!1}var f=o.get(e),h=o.get(t);if(f&&h)return f==t&&h==e;var v=!0;o.set(e,t),o.set(t,e);for(var y=a;++d{if(typeof r=="function"&&typeof n=="function")return!0})}var sie=Co,lie=Kn,uie="[object Symbol]";function cie(e){return typeof e=="symbol"||lie(e)&&sie(e)==uie}var uu=cie,die=fr,fie=uu,pie=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hie=/^\w*$/;function mie(e,t){if(die(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||fie(e)?!0:hie.test(e)||!pie.test(e)||t!=null&&e in Object(t)}var lw=mie,pM=rw,vie="Expected a function";function uw(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(vie);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(uw.Cache||pM),r}uw.Cache=pM;var gie=uw,yie=gie,bie=500;function Sie(e){var t=yie(e,function(n){return r.size===bie&&r.clear(),n}),r=t.cache;return t}var wie=Sie,$ie=wie,xie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_ie=/\\(\\)?/g,Cie=$ie(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(xie,function(r,n,i,o){t.push(i?o.replace(_ie,"$1"):n||r)}),t}),hM=Cie;function Pie(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++ro,typeof e[n]>"u"&&(Array.isArray(e)&&n==="-"&&(n=e.length),i&&(t[o]!==""&&t[o]<1/0||t[o]==="-"?e[n]=[]:e[n]={})),!i)break;e=e[n]}var s=e[n];return r===void 0?delete e[n]:e[n]=r,s}function cw(e){if(typeof e=="string"){if(e=e.split("/"),e[0]==="")return e;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(e)){for(const t of e)if(typeof t!="string"&&typeof t!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function bM(e,t){if(typeof e!="object")throw new Error("Invalid input object.");t=cw(t);var r=t.length;if(r===1)return e;for(var n=1;ni?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n0&&r(s)?t>1?MM(s,t-1,r,n,i):Mle(i,s):n||(i[i.length]=s)}return i}var yv=MM,jle=yv;function Nle(e){var t=e==null?0:e.length;return t?jle(e,1):[]}var mw=Nle;function Fle(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var DM=Fle,Lle=DM,Tk=Math.max;function Vle(e,t,r){return t=Tk(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=Tk(n.length-t,0),a=Array(o);++i0){if(++t>=Gle)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Zle=Qle,Jle=Kle,eue=Zle,tue=eue(Jle),NM=tue,rue=mw,nue=jM,iue=NM;function oue(e){return iue(nue(e,void 0,rue),e+"")}var FM=oue,aue=Po,sue=AM,lue=RM,uue=cu,cue=du,due=Tle,fue=FM,pue=_M,hue=1,mue=2,vue=4,gue=fue(function(e,t){var r={};if(e==null)return r;var n=!1;t=aue(t,function(o){return o=uue(o,e),n||(n=o.length>1),o}),cue(e,pue(e),r),n&&(r=sue(r,hue|mue|vue,due));for(var i=t.length;i--;)lue(r,t[i]);return r}),yue=gue;const Nh=it(yue);function vw(e,t){const r=t[e];return[Nh(t,[e]),r]}function gw(e,t={}){let r=e||"";if(r.startsWith("#"))r=decodeURIComponent(r.substring(1));else throw new Error(`Could not find a definition for ${e}.`);const n=vv.get(t,r);if(n===void 0)throw new Error(`Could not find a definition for ${e}.`);if(n[nr]){const[i,o]=vw(nr,n),a=gw(o,t);return Object.keys(i).length>0?{...i,...a}:a}return n}var bue=Object.prototype,Sue=bue.hasOwnProperty;function wue(e,t){return e!=null&&Sue.call(e,t)}var $ue=wue,xue=cu,_ue=Nd,Cue=fr,Pue=pv,kue=aw,Eue=ws;function Tue(e,t,r){t=xue(t,e);for(var n=-1,i=t.length,o=!1;++nVde)return[];var r=py,n=zde(e,py);t=Fde(t),e-=py;for(var i=Nde(n,t);++r({required:[c]}))};let u;if(s.anyOf){const{...c}=s;c.allOf?c.allOf=c.allOf.slice():c.allOf=[],c.allOf.push(l),u=c}else u=Object.assign({},s,l);if(delete u.required,e.isValid(u,t,n))return a}else if(e.isValid(s,t,n))return a}return 0}function ww(e,t,r,n,i){return YM(e,t,r,n,i)}var Wde=mv;function Hde(e,t){return Wde(e,t)}var $w=Hde;const us=it($w);var qde=pw,Kde=cu,Gde=pv,Mk=ln,Yde=ws;function Xde(e,t,r,n){if(!Mk(e))return e;t=Kde(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&epe(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++n-1}var Pw=$pe;function xpe(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=Npe){var u=t?null:Dpe(e);if(u)return jpe(u);a=!1,i=Mpe,l=new Ape}else l=t?[]:s;e:for(;++nt||o&&a&&l&&!s&&!u||n&&a&&l||!r&&l||!i)return 1;if(!n&&!o&&!u&&e=s)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return e.index-t.index}var rhe=the,my=Po,nhe=zd,ihe=Sw,ohe=Ype,ahe=Qpe,she=bs,lhe=rhe,uhe=Bd,che=fr;function dhe(e,t,r){t.length?t=my(t,function(o){return che(o)?function(a){return nhe(a,o.length===1?o[0]:o)}:o}):t=[uhe];var n=-1;t=my(t,she(ihe));var i=ohe(e,function(o,a,s){var l=my(t,function(u){return u(o)});return{criteria:l,index:++n,value:o}});return ahe(i,function(o,a){return lhe(o,a,r)})}var fhe=dhe,phe=yv,hhe=fhe,mhe=$a,Vk=_w,vhe=mhe(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Vk(e,t[0],t[1])?t=[]:r>2&&Vk(t[0],t[1],t[2])&&(t=[t[0]]),hhe(e,phe(t,1),[])}),iD=vhe,ghe=Ew;function yhe(e,t){return t=typeof t=="function"?t:void 0,e&&e.length?ghe(e,void 0,t):[]}var Tw=yhe,bhe=$a,She=ru,whe=_w,$he=fu,oD=Object.prototype,xhe=oD.hasOwnProperty,_he=bhe(function(e,t){e=Object(e);var r=-1,n=t.length,i=n>2?t[2]:void 0;for(i&&whe(t[0],t[1],i)&&(n=1);++r=120&&c.length>=120)?new Phe(a&&c):void 0}c=e[0];var d=-1,p=s[0];e:for(;++dArray.isArray(e)?e:[e],Ln=e=>e===void 0,Uf=e=>Fh(e)||Array.isArray(e)?Object.keys(e):[],sl=(e,t)=>e.hasOwnProperty(t),zl=e=>qhe(Ow(e)),Wk=e=>Ln(e)||Array.isArray(e)&&e.length===0,Yhe=(e,t,r,n)=>t&&sl(t,r)&&e&&sl(e,r)&&n(e[r],t[r]),gy=(e,t)=>Ln(e)&&t===0||Ln(t)&&e===0||gi(e,t),Xhe=(e,t)=>Ln(e)&&t===!1||Ln(t)&&e===!1||gi(e,t),Hk=e=>Ln(e)||gi(e,{})||e===!0,Wf=e=>Ln(e)||gi(e,{}),qk=e=>Ln(e)||Fh(e)||e===!0||e===!1;function Kk(e,t){return Wk(e)&&Wk(t)?!0:gi(zl(e),zl(t))}function Qhe(e,t){return e=Uk(e),t=Uk(t),gi(zl(e),zl(t))}function jp(e,t,r,n){var i=Ow(Uf(e).concat(Uf(t)));return Wf(e)&&Wf(t)?!0:Wf(e)&&Uf(t).length||Wf(t)&&Uf(e).length?!1:i.every(function(o){var a=e[o],s=t[o];return Array.isArray(a)&&Array.isArray(s)?gi(zl(e),zl(t)):Array.isArray(a)&&!Array.isArray(s)||Array.isArray(s)&&!Array.isArray(a)?!1:Yhe(e,t,o,n)})}function Zhe(e,t,r,n){return Fh(e)&&Fh(t)?n(e,t):Array.isArray(e)&&Array.isArray(t)?jp(e,t,r,n):gi(e,t)}function yy(e,t,r,n){var i=Bk(e,n),o=Bk(t,n),a=Ghe(i,o,n);return a.length===Math.max(i.length,o.length)}var Jhe={title:gi,uniqueItems:Xhe,minLength:gy,minItems:gy,minProperties:gy,required:Kk,enum:Kk,type:Qhe,items:Zhe,anyOf:yy,allOf:yy,oneOf:yy,properties:jp,patternProperties:jp,dependencies:jp},eme=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],tme=["additionalProperties","additionalItems","contains","propertyNames","not"];function Sb(e,t,r){if(r=Khe(r,{ignore:[]}),Hk(e)&&Hk(t))return!0;if(!qk(e)||!qk(t))throw new Error("Either of the values are not a JSON schema.");if(e===t)return!0;if(vy(e)&&vy(t))return e===t;if(e===void 0&&t===!1||t===void 0&&e===!1||Ln(e)&&!Ln(t)||!Ln(e)&&Ln(t))return!1;var n=Ow(Object.keys(e).concat(Object.keys(t)));if(r.ignore.length&&(n=n.filter(o=>r.ignore.indexOf(o)===-1)),!n.length)return!0;function i(o,a){return Sb(o,a,r)}return n.every(function(o){var a=e[o],s=t[o];if(tme.indexOf(o)!==-1)return Sb(a,s,r);var l=Jhe[o];if(l||(l=gi),gi(a,s))return!0;if(eme.indexOf(o)===-1&&(!sl(e,o)&&sl(t,o)||sl(e,o)&&!sl(t,o)))return a===s;var u=l(a,s,o,i);if(!vy(u))throw new Error("Comparer must return true or false");return u})}var Aw=Sb;function rme(e){return Object.prototype.toString.call(e)==="[object Array]"}var Iw=Array.isArray||rme;function nme(e){return(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")&&e.valueOf()===e.valueOf()}var ime=nme,ome=ime;function ame(e){return ome(e)&&e%1===0}var sme=ame,lme=Iw,ume=sme;function cme(e){var t;if(!lme(e)||(t=e.length,!t))return!1;for(var r=0;rt&&(n=t,t=e,e=n),t=t-e}return r*e}function Xk(e,t){var r=0,n;if(e===0)return t;if(t===0)return e;for(;!(e&1)&&!(t&1);)e>>>=1,t>>>=1,r++;for(;!(e&1);)e>>>=1;for(;t;){for(;!(t&1);)t>>>=1;e>t&&(n=t,t=e,e=n),t=t-e}return e<1){if(n=t[0],r=t[1],!pme(r))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+r+"`.")}else n=t[0];else throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+t[0]+"`.");if(i=n.length,i<2)return null;if(r){for(o=new Array(i),s=0;s1){if(n=t[0],r=t[1],!gme(r))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+r+"`.")}else n=t[0];else throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+t[0]+"`.");if(i=n.length,i<2)return null;if(r){for(o=new Array(i),s=0;s-1;)s!==e&&eE.call(s,l,1),eE.call(e,l,1);return e}var Kme=qme,Gme=Kme;function Yme(e,t){return e&&e.length&&t&&t.length?Gme(e,t):e}var Xme=Yme,Qme=dw,Zme=bw,Jme=qM,eve=fr;function tve(e,t){var r=eve(e)?Qme:Zme;return r(e,Jme(t))}var fD=tve,rve=dv,nve=Pw,ive=kw,ove=Po,ave=bs,sve=fv,lve=200;function uve(e,t,r,n){var i=-1,o=nve,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;r&&(t=ove(t,ave(r))),n?(o=ive,a=!1):t.length>=lve&&(o=sve,a=!1,t=new rve(t));e:for(;++iyve(gve(e.map(Rw))),xve=(e,t)=>e.map(r=>r&&r[t]),hD=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Rw=e=>pD(e)||Array.isArray(e)?Object.keys(e):[],_ve=e=>e!==void 0,Cve=e=>pD(e)||e===!0||e===!1,mD=e=>!Rw(e).length&&e!==!1&&e!==!0,Pve=(e,...t)=>Sve.apply(null,[e].concat(vve(t)));var vD={allUniqueKeys:$ve,deleteUndefinedProps:wve,getValues:xve,has:hD,isEmptySchema:mD,isSchema:Cve,keys:Rw,notUndefined:_ve,uniqWith:bve,withoutArr:Pve};const kve=Aw,Eve=fD,{allUniqueKeys:Tve,deleteUndefinedProps:Ove,getValues:Ave,keys:Lu,notUndefined:Ive,uniqWith:Rve,withoutArr:tE}=vD;function Mve(e){Eve(e,function(t,r){t===!1&&delete e[r]})}function rE(e,t){return Tve(e).reduce(function(n,i){const o=Ave(e,i),a=Rve(o.filter(Ive),kve);return n[i]=t(a,i),n},{})}var Dve={keywords:["properties","patternProperties","additionalProperties"],resolver(e,t,r,n){n.ignoreAdditionalProperties||(e.forEach(function(o){const a=e.filter(c=>c!==o),s=Lu(o.properties),u=Lu(o.patternProperties).map(c=>new RegExp(c));a.forEach(function(c){const d=Lu(c.properties),p=d.filter(h=>u.some(v=>v.test(h)));tE(d,s,p).forEach(function(h){c.properties[h]=r.properties([c.properties[h],o.additionalProperties],h)})})}),e.forEach(function(o){const a=e.filter(l=>l!==o),s=Lu(o.patternProperties);o.additionalProperties===!1&&a.forEach(function(l){const u=Lu(l.patternProperties);tE(u,s).forEach(d=>delete l.patternProperties[d])})}));const i={additionalProperties:r.additionalProperties(e.map(o=>o.additionalProperties)),patternProperties:rE(e.map(o=>o.patternProperties),r.patternProperties),properties:rE(e.map(o=>o.properties),r.properties)};return i.additionalProperties===!1&&Mve(i.properties),Ove(i)}};const jve=Aw,Nve=fD,{allUniqueKeys:Fve,deleteUndefinedProps:Lve,has:Vve,isSchema:gD,notUndefined:yD,uniqWith:zve}=vD;function Bve(e){Nve(e,function(t,r){t===!1&&e.splice(r,1)})}function Uve(e,t){return e.map(function(r){if(r)if(Array.isArray(r.items)){const n=r.items[t];if(gD(n))return n;if(Vve(r,"additionalItems"))return r.additionalItems}else return r.items})}function Wve(e){return e.map(function(t){if(t)return Array.isArray(t.items)?t.additionalItems:t.items})}function Hve(e,t,r){return Fve(r).reduce(function(i,o){const a=Uve(e,o),s=zve(a.filter(yD),jve);return i[o]=t(s,o),i},[])}var qve={keywords:["items","additionalItems"],resolver(e,t,r){const n=e.map(s=>s.items),i=n.filter(yD),o={};i.every(gD)?o.items=r.items(n):o.items=Hve(e,r.items,n);let a;return i.every(Array.isArray)?a=e.map(s=>s.additionalItems):i.some(Array.isArray)&&(a=Wve(e)),a&&(o.additionalItems=r.additionalItems(a)),o.additionalItems===!1&&Array.isArray(o.items)&&Bve(o.items),Lve(o)}};const bD=rD,Lh=Aw,Kve=bme,Gve=Ame,SD=mw,Mw=Cw,Yve=Nme,Xve=lD,wb=$w,Bl=tu,Qve=Xme,wD=iD,Dw=Sv,Sl=Tw,$D=Dve,xD=qve,qf=(e,t)=>e.indexOf(t)!==-1,Zve=e=>Bl(e)||e===!0||e===!1,Jve=e=>e===!1,_D=e=>e===!0,wv=(e,t,r)=>r(e),CD=e=>wD(Dw(Mw(e))),Vh=e=>e!==void 0,PD=e=>Dw(Mw(e.map(oge))),pu=e=>e[0],ege=e=>CD(e),Ud=e=>Math.max.apply(Math,e),Wd=e=>Math.min.apply(Math,e),tge=e=>e.some(_D),rge=e=>Sl(SD(e),wb);function nge(e){return function(t,r){return Lh({[e]:t},{[e]:r})}}function kD(e){let{allOf:t=[],...r}=e;return r=Bl(e)?r:e,[r,...t.map(kD)]}function ED(e,t){return e.map(r=>r&&r[t])}function ige(e,t){return e.map(function(r,n){try{return t(r,n)}catch{return}}).filter(Vh)}function oge(e){return Bl(e)||Array.isArray(e)?Object.keys(e):[]}function $b(e,t){if(t=t||[],!e.length)return t;const r=e.slice(0).shift(),n=e.slice(1);return t.length?$b(n,SD(t.map(i=>r.map(o=>[o].concat(i))))):$b(n,r.map(i=>i))}function TD(e,t){let r;try{r=e.map(function(n){return JSON.stringify(n,null,2)}).join(` `)}catch{r=e.join(", ")}throw new Error('Could not resolve values for path:"'+t.join(".")+`". They are probably incompatible. Values: `+r)}function age(e,t,r,n,i,o){if(e.length){const a=i.complexResolvers[t];if(!a||!a.resolver)throw new Error("No resolver found for "+t);const s=r.map(d=>e.reduce((p,f)=>(d[f]!==void 0&&(p[f]=d[f]),p),{})),l=Sl(s,Lh),u=a.keywords.reduce((d,p)=>({...d,[p]:(f,h=[])=>n(f,null,o.concat(p,h))}),{}),c=a.resolver(l,o.concat(t),u,i);return Bl(c)||TD(l,o.concat(t)),c}}function sge(e){return{required:e}}const lge=["properties","patternProperties","definitions","dependencies"],uge=["anyOf","oneOf"],cge=["additionalProperties","additionalItems","contains","propertyNames","not","items"],tt={type(e){if(e.some(Array.isArray)){const t=e.map(function(n){return Array.isArray(n)?n:[n]}),r=Yve.apply(null,t);if(r.length===1)return r[0];if(r.length>1)return Dw(r)}},dependencies(e,t,r){return PD(e).reduce(function(i,o){const a=ED(e,o);let s=Sl(a.filter(Vh),wb);const l=s.filter(Array.isArray);if(l.length){if(l.length===s.length)i[o]=CD(s);else{const u=s.filter(Zve),c=l.map(sge);i[o]=r(u.concat(c),o)}return i}return s=Sl(s,Lh),i[o]=r(s,o),i},{})},oneOf(e,t,r){const n=$b(bD(e)),i=ige(n,r),o=Sl(i,Lh);if(o.length)return o},not(e){return{anyOf:e}},pattern(e){return e.map(t=>"(?="+t+")").join("")},multipleOf(e){let t=e.slice(0),r=1;for(;t.some(n=>!Number.isInteger(n));)t=t.map(n=>n*10),r=r*10;return Kve(t)/r},enum(e){const t=Xve.apply(null,e.concat(wb));if(t.length)return wD(t)}};tt.$id=pu;tt.$ref=pu;tt.$schema=pu;tt.additionalItems=wv;tt.additionalProperties=wv;tt.anyOf=tt.oneOf;tt.contains=wv;tt.default=pu;tt.definitions=tt.dependencies;tt.description=pu;tt.examples=rge;tt.exclusiveMaximum=Wd;tt.exclusiveMinimum=Ud;tt.items=xD;tt.maximum=Wd;tt.maxItems=Wd;tt.maxLength=Wd;tt.maxProperties=Wd;tt.minimum=Ud;tt.minItems=Ud;tt.minLength=Ud;tt.minProperties=Ud;tt.properties=$D;tt.propertyNames=wv;tt.required=ege;tt.title=pu;tt.uniqueItems=tge;const dge={properties:$D,items:xD};function jw(e,t,r){t=Gve(t,{ignoreAdditionalProperties:!1,resolvers:tt,complexResolvers:dge,deep:!0});const n=Object.entries(t.complexResolvers);function i(s,l,u){s=bD(s.filter(Vh)),u=u||[];const c=Bl(l)?l:{};if(!s.length)return;if(s.some(Jve))return!1;if(s.every(_D))return!0;s=s.filter(Bl);const d=PD(s);if(t.deep&&qf(d,"allOf"))return jw({allOf:s},t);const p=n.map(([f,h])=>d.filter(v=>h.keywords.includes(v)));return p.forEach(f=>Qve(d,f)),d.forEach(function(f){const h=ED(s,f),v=Sl(h.filter(Vh),nge(f));if(v.length===1&&qf(uge,f))c[f]=v[0].map(y=>i([y],y));else if(v.length===1&&!qf(lge,f)&&!qf(cge,f))c[f]=v[0];else{const y=t.resolvers[f]||t.resolvers.defaultResolver;if(!y)throw new Error("No resolver found for key "+f+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const m=(g,b=[])=>i(g,null,u.concat(f,b));c[f]=y(v,u.concat(f),m,t),c[f]===void 0?TD(v,u.concat(f)):c[f]===void 0&&delete c[f]}}),n.reduce((f,[h,v],y)=>({...f,...age(p[y],h,s,i,t,u)}),c)}const o=Mw(kD(e));return i(o)}jw.options={resolvers:tt};var fge=jw;const pge=it(fge);function Ul(e){let t;const r=fe(e,"discriminator.propertyName",void 0);return yw(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}function ud(e){return Array.isArray(e)?"array":typeof e=="string"?"string":e==null?"null":typeof e=="boolean"?"boolean":isNaN(e)?typeof e=="object"?"object":"string":"number"}var hge=yv,mge=$a,vge=Ew,gge=bv,yge=mge(function(e){return vge(hge(e,1,gge,!0))}),bge=yge;const Sge=it(bge);function va(e){let{type:t}=e;return!t&&e.const?ud(e.const):!t&&e.enum?"string":!t&&(e.properties||e.additionalProperties)?"object":(Array.isArray(t)&&(t.length===2&&t.includes("null")?t=t.find(r=>r!=="null"):t=t[0]),t)}function $o(e,t){const r=Object.assign({},e);return Object.keys(t).reduce((n,i)=>{const o=e?e[i]:{},a=t[i];return e&&i in e&&Rt(a)?n[i]=$o(o,a):e&&t&&(va(e)==="object"||va(t)==="object")&&i===UQ&&Array.isArray(o)&&Array.isArray(a)?n[i]=Sge(o,a):n[i]=a,n},r)}function vn(e,t,r={},n){return Ri(e,t,r,n)[0]}function wge(e,t,r,n,i,o){const{if:a,then:s,else:l,...u}=t,c=e.isValid(a,o||{},r);let d=[u],p=[];if(n)s&&typeof s!="boolean"&&(p=p.concat(Ri(e,s,r,o,n,i))),l&&typeof l!="boolean"&&(p=p.concat(Ri(e,l,r,o,n,i)));else{const f=c?s:l;f&&typeof f!="boolean"&&(p=p.concat(Ri(e,f,r,o,n,i)))}return p.length&&(d=p.map(f=>$o(u,f))),d.flatMap(f=>Ri(e,f,r,o,n,i))}function OD(e){return e.reduce((r,n)=>n.length>1?n.flatMap(i=>KM(r.length,o=>[...r[o]].concat(i))):(r.forEach(i=>i.push(n[0])),r),[[]])}function $ge(e,t,r,n,i,o){const a=AD(e,t,r,n,i,o);if(a.length>1||a[0]!==t)return a;if(nv in t)return ID(e,t,r,n,i,o).flatMap(l=>Ri(e,l,r,o,n,i));if(jd in t&&Array.isArray(t.allOf)){const s=t.allOf.map(u=>Ri(e,u,r,o,n,i));return OD(s).map(u=>({...t,allOf:u}))}return[t]}function AD(e,t,r,n,i,o){const a=cd(t,r,i);return a!==t?Ri(e,a,r,o,n,i):[t]}function cd(e,t,r){if(!Rt(e))return e;let n=e;if(nr in n){const{$ref:i,...o}=n;if(r.includes(i))return n;r.push(i),n={...gw(i,t),...o}}if(Lt in n){const i=[],o=ffe(n[Lt],(a,s,l)=>{const u=[...r];a[l]=cd(s,t,u),i.push(u)},{});ape(r,zpe(cpe(i))),n={...n,[Lt]:o}}return la in n&&!Array.isArray(n.items)&&typeof n.items!="boolean"&&(n={...n,items:cd(n.items,t,r)}),us(e,n)?e:n}function xge(e,t,r,n){const i={...t,properties:{...t.properties}},o=n&&Rt(n)?n:{};return Object.keys(o).forEach(a=>{if(a in i.properties)return;let s={};typeof i.additionalProperties!="boolean"?nr in i.additionalProperties?s=vn(e,{$ref:fe(i.additionalProperties,[nr])},r,o):"type"in i.additionalProperties?s={...i.additionalProperties}:Vl in i.additionalProperties||ua in i.additionalProperties?s={type:"object",...i.additionalProperties}:s={type:ud(fe(o,[a]))}:s={type:ud(fe(o,[a]))},i.properties[a]=s,Er(i.properties,[a,Jl],!0)}),i}function Ri(e,t,r,n,i=!1,o=[]){return Rt(t)?$ge(e,t,r,i,o,n).flatMap(s=>{let l=s;if(zQ in l)return wge(e,l,r,i,o,n);if(jd in l){if(i){const{allOf:c,...d}=l;return[...c,d]}try{l=pge(l,{deep:!1})}catch(c){console.warn(`could not merge subschemas in allOf: `,c);const{allOf:d,...p}=l;return p}}return pb in l&&l.additionalProperties!==!1?xge(e,l,r,n):l}):[{}]}function _ge(e,t,r,n,i){let o;const{oneOf:a,anyOf:s,...l}=t;if(Array.isArray(a)?o=a:Array.isArray(s)&&(o=s),o){const u=i===void 0&&n?{}:i,c=Ul(t);o=o.map(p=>cd(p,r,[]));const d=ww(e,u,o,r,c);if(n)return o.map(p=>$o(l,p));t=$o(l,o[d])}return[t]}function ID(e,t,r,n,i,o){const{dependencies:a,...s}=t;return _ge(e,s,r,n,o).flatMap(u=>RD(e,a,u,r,n,i,o))}function RD(e,t,r,n,i,o,a){let s=[r];for(const l in t){if(!i&&fe(a,[l])===void 0||r.properties&&!(l in r.properties))continue;const[u,c]=vw(l,t);return Array.isArray(c)?s[0]=Cge(r,c):Rt(c)&&(s=Pge(e,r,n,l,c,i,o,a)),s.flatMap(d=>RD(e,u,d,n,i,o,a))}return s}function Cge(e,t){if(!t)return e;const r=Array.isArray(e.required)?Array.from(new Set([...e.required,...t])):t;return{...e,required:r}}function Pge(e,t,r,n,i,o,a,s){return Ri(e,i,r,s,o,a).flatMap(u=>{const{oneOf:c,...d}=u;if(t=$o(t,d),c===void 0)return t;const p=c.map(h=>typeof h=="boolean"||!(nr in h)?[h]:AD(e,h,r,o,a,s));return OD(p).flatMap(h=>kge(e,t,r,n,h,o,a,s))})}function kge(e,t,r,n,i,o,a,s){const l=i.filter(u=>{if(typeof u=="boolean"||!u||!u.properties)return!1;const{[n]:c}=u.properties;if(c){const d={type:"object",properties:{[n]:c}};return e.isValid(d,s,r)||o}return!1});return!o&&l.length!==1?(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t]):l.flatMap(u=>{const c=u,[d]=vw(n,c.properties),p={...c,properties:d};return Ri(e,p,r,s,o,a).map(h=>$o(t,h))})}const Ege={type:"object",$id:BQ,properties:{__not_really_there__:{type:"number"}}};function xb(e,t,r,n={}){let i=0;return r&&(di(r.properties)?i+=fde(r.properties,(o,a,s)=>{const l=fe(n,s);if(typeof a=="boolean")return o;if(Nr(a,nr)){const u=vn(e,a,t,l);return o+xb(e,t,u,l||{})}if((Nr(a,ua)||Nr(a,Vl))&&l){const u=Nr(a,ua)?ua:Vl,c=Ul(a);return o+dd(e,t,l,fe(a,u),-1,c)}if(a.type==="object")return o+xb(e,t,a,l||{});if(a.type===ud(l)){let u=o+1;return a.default?u+=l===a.default?1:-1:a.const&&(u+=l===a.const?1:-1),u}return o},0):yw(r.type)&&r.type===ud(n)&&(i+=1)),i}function dd(e,t,r,n,i=-1,o){const a=n.map(d=>cd(d,t,[])),s=GM(r,n,o);if(VM(s))return s;const l=a.reduce((d,p,f)=>(ww(e,r,[Ege,p],t,o)===1&&d.push(f),d),[]);if(l.length===1)return l[0];l.length||KM(a.length,d=>l.push(d));const u=new Set,{bestIndex:c}=l.reduce((d,p)=>{const{bestScore:f}=d,h=a[p],v=xb(e,t,h,r);return u.add(v),v>f?{bestIndex:p,bestScore:v}:d},{bestIndex:i,bestScore:0});return u.size===1&&i>=0?i:c}function _b(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every(t=>Rt(t))}function zh(e,t,r=!1){if(Array.isArray(t)){const n=Array.isArray(e)?e:[],i=t.map((o,a)=>n[a]?zh(n[a],o,r):o);return r&&i.length(i[o]=zh(e?fe(e,o):{},fe(t,o),r),i),n)}return t}function hu(e,t,r=!1){return Object.keys(t).reduce((n,i)=>{const o=e?e[i]:{},a=t[i];if(e&&i in e&&Rt(a))n[i]=hu(o,a,r);else if(r&&Array.isArray(o)&&Array.isArray(a)){let s=a;r==="preventDuplicates"&&(s=a.reduce((l,u)=>(o.includes(u)||l.push(u),l),[])),n[i]=o.concat(s)}else n[i]=a;return n},Object.assign({},e))}function Tge(e){return Array.isArray(e.enum)&&e.enum.length===1||KR in e}function MD(e,t,r={}){const n=vn(e,t,r,void 0),i=n.oneOf||n.anyOf;return Array.isArray(n.enum)?!0:Array.isArray(i)?i.every(o=>typeof o!="boolean"&&Tge(o)):!1}function Nw(e,t,r){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:MD(e,t.items,r)}var Wl;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(Wl||(Wl={}));function by(e,t=Wl.Ignore,r=-1){if(r>=0){if(Array.isArray(e.items)&&rVo(e,y,{rootSchema:i,includeUndefinedValues:o,_recurseList:a,experimental_defaultFormStateBehavior:s,parentDefaults:Array.isArray(r)?r[m]:void 0,rawFormData:d,required:l}));else if(ua in p){const{oneOf:y,...m}=p;if(y.length===0)return;const g=Ul(p);h=y[dd(e,i,ls(d)?void 0:d,y,0,g)],h=$o(m,h)}else if(Vl in p){const{anyOf:y,...m}=p;if(y.length===0)return;const g=Ul(p);h=y[dd(e,i,ls(d)?void 0:d,y,0,g)],h=$o(m,h)}if(h)return Vo(e,h,{rootSchema:i,includeUndefinedValues:o,_recurseList:v,experimental_defaultFormStateBehavior:s,parentDefaults:f,rawFormData:d,required:l});switch(f===void 0&&(f=p.default),va(p)){case"object":{const y=(s==null?void 0:s.allOf)==="populateDefaults"&&jd in p?vn(e,p,i,d):p,m=Object.keys(y.properties||{}).reduce((g,b)=>{var S;const x=Vo(e,fe(y,[Lt,b]),{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:s,includeUndefinedValues:o===!0,parentDefaults:fe(f,[b]),rawFormData:fe(d,[b]),required:(S=y.required)===null||S===void 0?void 0:S.includes(b)});return nE(g,b,x,o,l,y.required,s),g},{});if(y.additionalProperties){const g=Rt(y.additionalProperties)?y.additionalProperties:{},b=new Set;Rt(f)&&Object.keys(f).filter(x=>!y.properties||!y.properties[x]).forEach(x=>b.add(x));const S=[];Object.keys(d).filter(x=>!y.properties||!y.properties[x]).forEach(x=>{b.add(x),S.push(x)}),b.forEach(x=>{var w;const $=Vo(e,g,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:s,includeUndefinedValues:o===!0,parentDefaults:fe(f,[x]),rawFormData:fe(d,[x]),required:(w=y.required)===null||w===void 0?void 0:w.includes(x)});nE(m,x,$,o,l,S)})}return m}case"array":{const y=((u=s==null?void 0:s.arrayMinItems)===null||u===void 0?void 0:u.populate)==="never",m=((c=s==null?void 0:s.arrayMinItems)===null||c===void 0?void 0:c.populate)==="requiredOnly";if(Array.isArray(f)&&(f=f.map(($,P)=>{const E=by(p,Wl.Fallback,P);return Vo(e,E,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:s,parentDefaults:$,required:l})})),Array.isArray(n)){const $=by(p);y?f=n:f=n.map((P,E)=>Vo(e,$,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:s,rawFormData:P,parentDefaults:fe(f,[E]),required:l}))}if(y)return f??[];if(m&&!l)return f||void 0;const g=Array.isArray(f)?f.length:0;if(!p.minItems||Nw(e,p,i)||p.minItems<=g)return f||[];const b=f||[],S=by(p,Wl.Invert),x=S.default,w=new Array(p.minItems-g).fill(Vo(e,S,{parentDefaults:x,rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:s,required:l}));return b.concat(w)}}return f}function DD(e,t,r,n,i=!1,o){if(!Rt(t))throw new Error("Invalid schema: "+t);const a=vn(e,t,n,r),s=Vo(e,a,{rootSchema:n,includeUndefinedValues:i,experimental_defaultFormStateBehavior:o,rawFormData:r});if(r==null||typeof r=="number"&&isNaN(r))return s;const{mergeExtraDefaults:l}=(o==null?void 0:o.arrayMinItems)||{};return Rt(r)||Array.isArray(r)?zh(s,r,l):r}function jD(e={}){return"widget"in Ye(e)&&Ye(e).widget!=="hidden"}function ND(e,t,r={},n){if(r[JS]==="files")return!0;if(t.items){const i=vn(e,t.items,n);return i.type==="string"&&i.format==="data-url"}return!1}function Oge(e,t,r={},n,i){const o=Ye(r,i),{label:a=!0}=o;let s=!!a;const l=va(t);return l==="array"&&(s=Nw(e,t,n)||ND(e,t,r,n)||jD(r)),l==="object"&&(s=!1),l==="boolean"&&!r[JS]&&(s=!1),r[WQ]&&(s=!1),s}function Age(e,t,r){if(!r)return t;const{errors:n,errorSchema:i}=t;let o=e.toErrorList(r),a=r;return ls(i)||(a=hu(i,r,!0),o=[...n].concat(o)),{errorSchema:a,errors:o}}const Is=Symbol("no Value");function Cb(e,t,r,n,i={}){let o;if(Nr(r,Lt)){const a={};if(Nr(n,Lt)){const u=fe(n,Lt,{});Object.keys(u).forEach(c=>{Nr(i,c)&&(a[c]=void 0)})}const s=Object.keys(fe(r,Lt,{})),l={};s.forEach(u=>{const c=fe(i,u);let d=fe(n,[Lt,u],{}),p=fe(r,[Lt,u],{});Nr(d,nr)&&(d=vn(e,d,t,c)),Nr(p,nr)&&(p=vn(e,p,t,c));const f=fe(d,"type"),h=fe(p,"type");if(!f||f===h)if(Nr(a,u)&&delete a[u],h==="object"||h==="array"&&Array.isArray(c)){const v=Cb(e,t,p,d,c);(v!==void 0||h==="array")&&(l[u]=v)}else{const v=fe(p,"default",Is),y=fe(d,"default",Is);v!==Is&&v!==c&&(y===c?a[u]=v:fe(p,"readOnly")===!0&&(a[u]=void 0));const m=fe(p,"const",Is),g=fe(d,"const",Is);m!==Is&&m!==c&&(a[u]=g===c?m:void 0)}}),o={...typeof i=="string"||Array.isArray(i)?void 0:i,...a,...l}}else if(fe(n,"type")==="array"&&fe(r,"type")==="array"&&Array.isArray(i)){let a=fe(n,"items"),s=fe(r,"items");if(typeof a=="object"&&typeof s=="object"&&!Array.isArray(a)&&!Array.isArray(s)){Nr(a,nr)&&(a=vn(e,a,t,i)),Nr(s,nr)&&(s=vn(e,s,t,i));const l=fe(a,"type"),u=fe(s,"type");if(!l||l===u){const c=fe(r,"maxItems",-1);u==="object"?o=i.reduce((d,p)=>{const f=Cb(e,t,s,a,p);return f!==void 0&&(c<0||d.length0&&i.length>c?i.slice(0,c):i}}else typeof a=="boolean"&&typeof s=="boolean"&&a===s&&(o=i)}return o}function Np(e,t,r,n,i,o,a,s=[]){if(nr in t||nv in t||jd in t){const c=vn(e,t,o,a);if(s.findIndex(p=>us(p,c))===-1)return Np(e,c,r,n,i,o,a,s.concat(c))}if(la in t&&!fe(t,[la,nr]))return Np(e,fe(t,la),r,n,i,o,a,s);const u={$id:i||r};if(va(t)==="object"&&Lt in t)for(const c in t.properties){const d=fe(t,[Lt,c]),p=u[Yo]+n+c;u[c]=Np(e,Rt(d)?d:{},r,n,p,o,fe(a,[c]),s)}return u}function Ige(e,t,r,n,i,o="root",a="_"){return Np(e,t,o,a,r,n,i)}function Da(e,t,r,n,i,o=[]){if(nr in t||nv in t||jd in t){const s=vn(e,t,n,i);if(o.findIndex(u=>us(u,s))===-1)return Da(e,s,r,n,i,o.concat(s))}let a={[Mp]:r.replace(/^\./,"")};if(ua in t||Vl in t){const s=ua in t?t.oneOf:t.anyOf,l=Ul(t),u=dd(e,n,i,s,0,l),c=s[u];a={...a,...Da(e,c,r,n,i,o)}}if(pb in t&&t[pb]!==!1&&Er(a,ZS,!0),la in t&&Array.isArray(i)){const{items:s,additionalItems:l}=t;Array.isArray(s)?i.forEach((u,c)=>{s[c]?a[c]=Da(e,s[c],`${r}.${c}`,n,u,o):l?a[c]=Da(e,l,`${r}.${c}`,n,u,o):console.warn(`Unable to generate path schema for "${r}.${c}". No schema defined for it`)}):i.forEach((u,c)=>{a[c]=Da(e,s,`${r}.${c}`,n,u,o)})}else if(Lt in t)for(const s in t.properties){const l=fe(t,[Lt,s]);a[s]=Da(e,l,`${r}.${s}`,n,fe(i,[s]),o)}return a}function Rge(e,t,r="",n,i){return Da(e,t,r,n,i)}class Mge{constructor(t,r,n){this.rootSchema=r,this.validator=t,this.experimental_defaultFormStateBehavior=n}getValidator(){return this.validator}doesSchemaUtilsDiffer(t,r,n={}){return!t||!r?!1:this.validator!==t||!Nn(this.rootSchema,r)||!Nn(this.experimental_defaultFormStateBehavior,n)}getDefaultFormState(t,r,n=!1){return DD(this.validator,t,r,this.rootSchema,n,this.experimental_defaultFormStateBehavior)}getDisplayLabel(t,r,n){return Oge(this.validator,t,r,this.rootSchema,n)}getClosestMatchingOption(t,r,n,i){return dd(this.validator,this.rootSchema,t,r,n,i)}getFirstMatchingOption(t,r,n){return ww(this.validator,t,r,this.rootSchema,n)}getMatchingOption(t,r,n){return YM(this.validator,t,r,this.rootSchema,n)}isFilesArray(t,r){return ND(this.validator,t,r,this.rootSchema)}isMultiSelect(t){return Nw(this.validator,t,this.rootSchema)}isSelect(t){return MD(this.validator,t,this.rootSchema)}mergeValidationData(t,r){return Age(this.validator,t,r)}retrieveSchema(t,r){return vn(this.validator,t,this.rootSchema,r)}sanitizeDataForNewSchema(t,r,n){return Cb(this.validator,this.rootSchema,t,r,n)}toIdSchema(t,r,n,i="root",o="_"){return Ige(this.validator,t,r,this.rootSchema,n,i,o)}toPathSchema(t,r,n){return Rge(this.validator,t,r,this.rootSchema,n)}}function Dge(e,t,r={}){return new Mge(e,t,r)}function jge(e){const t=e.split(","),r=t[0].split(";"),n=r[0].replace("data:",""),i=r.filter(a=>a.split("=")[0]==="name");let o;i.length!==1?o="unknown":o=decodeURI(i[0].split("=")[1]);try{const a=atob(t[1]),s=[];for(let u=0;u{const a=n.findIndex(s=>s===`%${o+1}`);a>=0&&(n[a]=i)}),r=n.join("")}return r}function Fge(e,t){return Nge(e,t)}function Zt(e,t=[],r){if(Array.isArray(e))return e.map(o=>Zt(o,t)).filter(o=>o);const n=e===""||e===null?-1:Number(e),i=t[n];return i?i.value:r}function Lge(e,t,r=[]){const n=Zt(e,r);return Array.isArray(t)?t.filter(i=>!us(i,n)):us(n,t)?void 0:t}function $v(e,t){return Array.isArray(t)?t.some(r=>us(r,e)):us(t,e)}function xv(e,t=[],r=!1){const n=t.map((i,o)=>$v(i.value,e)?String(o):void 0).filter(i=>typeof i<"u");return r?n:n[0]}function Vge(e){return e==null}var zge=Vge;const Bge=it(zge);function Uge(e,t,r=[]){const n=Zt(e,r);if(!Bge(n)){const i=r.findIndex(s=>n===s.value),o=r.map(({value:s})=>s);return t.slice(0,i).concat(n,t.slice(i)).sort((s,l)=>+(o.indexOf(s)>o.indexOf(l)))}return t}class Wge{constructor(t){this.errorSchema={},this.resetAllErrors(t)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(t){let n=Array.isArray(t)&&t.length>0||typeof t=="string"?fe(this.errorSchema,t):this.errorSchema;return!n&&t&&(n={},Er(this.errorSchema,t,n)),n}resetAllErrors(t){return this.errorSchema=t?nD(t):{},this}addErrors(t,r){const n=this.getOrCreateErrorBlock(r);let i=fe(n,ci);return Array.isArray(i)||(i=[],n[ci]=i),Array.isArray(t)?i.push(...t):i.push(t),this}setErrors(t,r){const n=this.getOrCreateErrorBlock(r),i=Array.isArray(t)?[...t]:[t];return Er(n,ci,i),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return Er(r,ci,[]),this}}function FD(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||e.minimum===0)&&(t.min=e.minimum),(e.maximum||e.maximum===0)&&(t.max=e.maximum),t}function LD(e,t,r={},n=!0){const i={type:t||"text",...FD(e)};return r.inputType?i.type=r.inputType:t||(e.type==="number"?(i.type="number",n&&i.step===void 0&&(i.step="any")):e.type==="integer"&&(i.type="number",i.step===void 0&&(i.step=1))),r.autocomplete&&(i.autoComplete=r.autocomplete),i}const iE={props:{disabled:!1},submitText:"Submit",norender:!1};function VD(e={}){const t=Ye(e);if(t&&t[Ih]){const r=t[Ih];return{...iE,...r}}return iE}function Ne(e,t,r={}){const{templates:n}=t;return e==="ButtonTemplates"?n[e]:r[e]||n[e]}var zD={exports:{}},ut={};/** diff --git a/index.html b/index.html index 4e2a281..9196372 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ JSON to Table - +