@linkdlab/funcnodes_react_flow 0.4.5 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -693,7 +693,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
693
693
  * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
694
694
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
695
695
  * Copyright 2024 Fonticons, Inc.
696
- */const M3={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},D3={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},F3={prefix:"fas",iconName:"compress",icon:[448,512,[],"f066","M160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 320c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0z"]},j3={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z"]},L3={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},B3={prefix:"fas",iconName:"circle-play",icon:[512,512,[61469,"play-circle"],"f144","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9l0 176c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z"]},z3={prefix:"fas",iconName:"lock-open",icon:[576,512,[],"f3c1","M352 144c0-44.2 35.8-80 80-80s80 35.8 80 80l0 48c0 17.7 14.3 32 32 32s32-14.3 32-32l0-48C576 64.5 511.5 0 432 0S288 64.5 288 144l0 48L64 192c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64l-32 0 0-48z"]},V3={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M256 64l128 0 0 64-128 0 0-64zM240 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l48 0 0 32L32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0 0 32-48 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l160 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-48 0 0-32 256 0 0 32-48 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l160 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-48 0 0-32 96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-256 0 0-32 48 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48L240 0zM96 448l0-64 128 0 0 64L96 448zm320-64l128 0 0 64-128 0 0-64z"]},G3={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},$3={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},H3={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},W3={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},X3={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},Y3={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},U3={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]};d3.autoAddCss=!1;const ht=e=>{const{style:t,...n}=e;return b.jsx("span",{style:{marginLeft:"5px",...t},children:b.jsx(np,{...n})})},G1=e=>b.jsx(ht,{...e,icon:D3}),Tf=e=>b.jsx(ht,{...e,icon:Y3}),Qm=e=>b.jsx(ht,{...e,icon:X3}),$1=e=>b.jsx(ht,{...e,icon:H3}),Z3=e=>b.jsx(ht,{...e,icon:F3}),J3=e=>b.jsx(ht,{...e,icon:M3}),q3=e=>b.jsx(ht,{...e,icon:U3}),e0=e=>b.jsx(ht,{...e,icon:$3}),Nf=e=>b.jsx(ht,{...e,icon:L3}),ds=Nf,H1=e=>b.jsx(ht,{...e,icon:W3}),K3=e=>b.jsx(ht,{...e,icon:z3}),Q3=e=>b.jsx(ht,{...e,icon:j3}),eF=e=>b.jsx(ht,{...e,icon:V3}),tF=e=>b.jsx(ht,{...e,icon:B3}),nF=e=>b.jsx(ht,{...e,icon:G3}),Xo=({trigger:e,title:t,description:n,children:r,closebutton:o=!0,onOpenChange:i,buttons:s=[],open:a,setOpen:l,modal:c=!0})=>{const u=g=>{l&&l(g),i&&i(g)},d=k.useContext(xe).local_state(g=>g.funcnodescontainerRef),p=b.jsx(c4,{asChild:!0,children:b.jsxs("div",{className:"dialogconent funcnodescontainer",children:[t&&b.jsx(u4,{className:"dialogtitle",children:t}),b.jsx(f4,{className:"dialogdescription",children:n}),b.jsx("div",{className:"dialogchildren",children:r}),b.jsx("div",{style:{display:"flex",marginTop:25,justifyContent:"flex-end"},children:(s||[]).map((g,h)=>b.jsx(dm,{asChild:!0,children:b.jsx("button",{className:"dialogsendbutton",onClick:g.onClick,children:g.text})},h))}),o&&b.jsx(dm,{asChild:!0,children:b.jsx("button",{className:"dialogclosebutton","aria-label":"Close",children:b.jsx(H1,{})})})]})});return b.jsxs(i4,{open:a,onOpenChange:u,modal:c,children:[e&&b.jsx(s4,{asChild:!0,children:e}),b.jsxs(a4,{container:d,children:[b.jsx(l4,{className:"dialogoverlay funcnodescontainer"}),p]})]})};function rp(e){const t=e+"CollectionProvider",[n,r]=br(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:y,children:m}=h,x=N.useRef(null),v=N.useRef(new Map).current;return b.jsx(o,{scope:y,itemMap:v,collectionRef:x,children:m})};s.displayName=t;const a=e+"CollectionSlot",l=Do(a),c=N.forwardRef((h,y)=>{const{scope:m,children:x}=h,v=i(a,m),C=Ve(y,v.collectionRef);return b.jsx(l,{ref:C,children:x})});c.displayName=a;const u=e+"CollectionItemSlot",f="data-radix-collection-item",d=Do(u),p=N.forwardRef((h,y)=>{const{scope:m,children:x,...v}=h,C=N.useRef(null),S=Ve(y,C),E=i(u,m);return N.useEffect(()=>(E.itemMap.set(C,{ref:C,...v}),()=>void E.itemMap.delete(C))),b.jsx(d,{[f]:"",ref:S,children:x})});p.displayName=u;function g(h){const y=i(e+"CollectionConsumer",h);return N.useCallback(()=>{const x=y.collectionRef.current;if(!x)return[];const v=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((E,I)=>v.indexOf(E.ref.current)-v.indexOf(I.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:c,ItemSlot:p},g,r]}var rF=k.createContext(void 0);function op(e){const t=k.useContext(rF);return e||t||"ltr"}const oF=["top","right","bottom","left"],pr=Math.min,It=Math.max,Wa=Math.round,Ys=Math.floor,vn=e=>({x:e,y:e}),iF={left:"right",right:"left",bottom:"top",top:"bottom"},sF={start:"end",end:"start"};function Pf(e,t,n){return It(e,pr(t,n))}function Gn(e,t){return typeof e=="function"?e(t):e}function $n(e){return e.split("-")[0]}function Yo(e){return e.split("-")[1]}function ip(e){return e==="x"?"y":"x"}function sp(e){return e==="y"?"height":"width"}function hr(e){return["top","bottom"].includes($n(e))?"y":"x"}function ap(e){return ip(hr(e))}function aF(e,t,n){n===void 0&&(n=!1);const r=Yo(e),o=ap(e),i=sp(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Xa(s)),[s,Xa(s)]}function lF(e){const t=Xa(e);return[Of(e),t,Of(t)]}function Of(e){return e.replace(/start|end/g,t=>sF[t])}function cF(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function uF(e,t,n,r){const o=Yo(e);let i=cF($n(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Of)))),i}function Xa(e){return e.replace(/left|right|bottom|top/g,t=>iF[t])}function fF(e){return{top:0,right:0,bottom:0,left:0,...e}}function W1(e){return typeof e!="number"?fF(e):{top:e,right:e,bottom:e,left:e}}function Ya(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function t0(e,t,n){let{reference:r,floating:o}=e;const i=hr(t),s=ap(t),a=sp(s),l=$n(t),c=i==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Yo(t)){case"start":p[s]-=d*(n&&c?-1:1);break;case"end":p[s]+=d*(n&&c?-1:1);break}return p}const dF=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=t0(c,r,l),d=r,p={},g=0;for(let h=0;h<a.length;h++){const{name:y,fn:m}=a[h],{x,y:v,data:C,reset:S}=await m({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});u=x??u,f=v??f,p={...p,[y]:{...p[y],...C}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(d=S.placement),S.rects&&(c=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:f}=t0(c,d,l)),h=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:p}};async function Gi(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=Gn(t,e),g=W1(p),y=a[d?f==="floating"?"reference":"floating":f],m=Ya(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),x=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},S=Ya(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:v,strategy:l}):x);return{top:(m.top-S.top+g.top)/C.y,bottom:(S.bottom-m.bottom+g.bottom)/C.y,left:(m.left-S.left+g.left)/C.x,right:(S.right-m.right+g.right)/C.x}}const pF=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Gn(e,t)||{};if(c==null)return{};const f=W1(u),d={x:n,y:r},p=ap(o),g=sp(p),h=await s.getDimensions(c),y=p==="y",m=y?"top":"left",x=y?"bottom":"right",v=y?"clientHeight":"clientWidth",C=i.reference[g]+i.reference[p]-d[p]-i.floating[g],S=d[p]-i.reference[p],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let I=E?E[v]:0;(!I||!await(s.isElement==null?void 0:s.isElement(E)))&&(I=a.floating[v]||i.floating[g]);const P=C/2-S/2,M=I/2-h[g]/2-1,w=pr(f[m],M),R=pr(f[x],M),O=w,L=I-h[g]-R,A=I/2-h[g]/2+P,j=Pf(O,A,L),D=!l.arrow&&Yo(o)!=null&&A!==j&&i.reference[g]/2-(A<O?w:R)-h[g]/2<0,z=D?A<O?A-O:A-L:0;return{[p]:d[p]+z,data:{[p]:j,centerOffset:A-j-z,...D&&{alignmentOffset:z}},reset:D}}}),hF=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...y}=Gn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=$n(o),x=hr(a),v=$n(a)===a,C=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=d||(v||!h?[Xa(a)]:lF(a)),E=g!=="none";!d&&E&&S.push(...uF(a,h,g,C));const I=[a,...S],P=await Gi(t,y),M=[];let w=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&M.push(P[m]),f){const A=aF(o,s,C);M.push(P[A[0]],P[A[1]])}if(w=[...w,{placement:o,overflows:M}],!M.every(A=>A<=0)){var R,O;const A=(((R=i.flip)==null?void 0:R.index)||0)+1,j=I[A];if(j)return{data:{index:A,overflows:w},reset:{placement:j}};let D=(O=w.filter(z=>z.overflows[0]<=0).sort((z,V)=>z.overflows[1]-V.overflows[1])[0])==null?void 0:O.placement;if(!D)switch(p){case"bestFit":{var L;const z=(L=w.filter(V=>{if(E){const F=hr(V.placement);return F===x||F==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(F=>F>0).reduce((F,_)=>F+_,0)]).sort((V,F)=>V[1]-F[1])[0])==null?void 0:L[0];z&&(D=z);break}case"initialPlacement":D=a;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function n0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function r0(e){return oF.some(t=>e[t]>=0)}const gF=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Gn(e,t);switch(r){case"referenceHidden":{const i=await Gi(t,{...o,elementContext:"reference"}),s=n0(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:r0(s)}}}case"escaped":{const i=await Gi(t,{...o,altBoundary:!0}),s=n0(i,n.floating);return{data:{escapedOffsets:s,escaped:r0(s)}}}default:return{}}}}};async function mF(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=$n(n),a=Yo(n),l=hr(n)==="y",c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,f=Gn(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof g=="number"&&(p=a==="end"?g*-1:g),l?{x:p*u,y:d*c}:{x:d*c,y:p*u}}const yF=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await mF(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},bF=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:m,y:x}=y;return{x:m,y:x}}},...l}=Gn(e,t),c={x:n,y:r},u=await Gi(t,l),f=hr($n(o)),d=ip(f);let p=c[d],g=c[f];if(i){const y=d==="y"?"top":"left",m=d==="y"?"bottom":"right",x=p+u[y],v=p-u[m];p=Pf(x,p,v)}if(s){const y=f==="y"?"top":"left",m=f==="y"?"bottom":"right",x=g+u[y],v=g-u[m];g=Pf(x,g,v)}const h=a.fn({...t,[d]:p,[f]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[d]:i,[f]:s}}}}}},vF=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Gn(e,t),u={x:n,y:r},f=hr(o),d=ip(f);let p=u[d],g=u[f];const h=Gn(a,t),y=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const v=d==="y"?"height":"width",C=i.reference[d]-i.floating[v]+y.mainAxis,S=i.reference[d]+i.reference[v]-y.mainAxis;p<C?p=C:p>S&&(p=S)}if(c){var m,x;const v=d==="y"?"width":"height",C=["top","left"].includes($n(o)),S=i.reference[f]-i.floating[v]+(C&&((m=s.offset)==null?void 0:m[f])||0)+(C?0:y.crossAxis),E=i.reference[f]+i.reference[v]+(C?0:((x=s.offset)==null?void 0:x[f])||0)-(C?y.crossAxis:0);g<S?g=S:g>E&&(g=E)}return{[d]:p,[f]:g}}}},xF=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=Gn(e,t),u=await Gi(t,c),f=$n(o),d=Yo(o),p=hr(o)==="y",{width:g,height:h}=i.floating;let y,m;f==="top"||f==="bottom"?(y=f,m=d===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(m=f,y=d==="end"?"top":"bottom");const x=h-u.top-u.bottom,v=g-u.left-u.right,C=pr(h-u[y],x),S=pr(g-u[m],v),E=!t.middlewareData.shift;let I=C,P=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(I=x),E&&!d){const w=It(u.left,0),R=It(u.right,0),O=It(u.top,0),L=It(u.bottom,0);p?P=g-2*(w!==0||R!==0?w+R:It(u.left,u.right)):I=h-2*(O!==0||L!==0?O+L:It(u.top,u.bottom))}await l({...t,availableWidth:P,availableHeight:I});const M=await s.getDimensions(a.floating);return g!==M.width||h!==M.height?{reset:{rects:!0}}:{}}}};function Hl(){return typeof window<"u"}function Uo(e){return X1(e)?(e.nodeName||"").toLowerCase():"#document"}function Tt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _n(e){var t;return(t=(X1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function X1(e){return Hl()?e instanceof Node||e instanceof Tt(e).Node:!1}function en(e){return Hl()?e instanceof Element||e instanceof Tt(e).Element:!1}function wn(e){return Hl()?e instanceof HTMLElement||e instanceof Tt(e).HTMLElement:!1}function o0(e){return!Hl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Tt(e).ShadowRoot}function ps(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=tn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function wF(e){return["table","td","th"].includes(Uo(e))}function Wl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function lp(e){const t=cp(),n=en(e)?tn(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function CF(e){let t=gr(e);for(;wn(t)&&!jo(t);){if(lp(t))return t;if(Wl(t))return null;t=gr(t)}return null}function cp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function jo(e){return["html","body","#document"].includes(Uo(e))}function tn(e){return Tt(e).getComputedStyle(e)}function Xl(e){return en(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gr(e){if(Uo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||o0(e)&&e.host||_n(e);return o0(t)?t.host:t}function Y1(e){const t=gr(e);return jo(t)?e.ownerDocument?e.ownerDocument.body:e.body:wn(t)&&ps(t)?t:Y1(t)}function $i(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Y1(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Tt(o);if(i){const a=Mf(s);return t.concat(s,s.visualViewport||[],ps(o)?o:[],a&&n?$i(a):[])}return t.concat(o,$i(o,[],n))}function Mf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function U1(e){const t=tn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=wn(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Wa(n)!==i||Wa(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function up(e){return en(e)?e:e.contextElement}function _o(e){const t=up(e);if(!wn(t))return vn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=U1(t);let s=(i?Wa(n.width):n.width)/r,a=(i?Wa(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const _F=vn(0);function Z1(e){const t=Tt(e);return!cp()||!t.visualViewport?_F:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function SF(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Tt(e)?!1:t}function Xr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=up(e);let s=vn(1);t&&(r?en(r)&&(s=_o(r)):s=_o(e));const a=SF(i,n,r)?Z1(i):vn(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(i){const d=Tt(i),p=r&&en(r)?Tt(r):r;let g=d,h=Mf(g);for(;h&&r&&p!==g;){const y=_o(h),m=h.getBoundingClientRect(),x=tn(h),v=m.left+(h.clientLeft+parseFloat(x.paddingLeft))*y.x,C=m.top+(h.clientTop+parseFloat(x.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,f*=y.y,l+=v,c+=C,g=Tt(h),h=Mf(g)}}return Ya({width:u,height:f,x:l,y:c})}function fp(e,t){const n=Xl(e).scrollLeft;return t?t.left+n:Xr(_n(e)).left+n}function J1(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:fp(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function EF(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=_n(r),a=t?Wl(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=vn(1);const u=vn(0),f=wn(r);if((f||!f&&!i)&&((Uo(r)!=="body"||ps(s))&&(l=Xl(r)),wn(r))){const p=Xr(r);c=_o(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const d=s&&!f&&!i?J1(s,l,!0):vn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-l.scrollTop*c.y+u.y+d.y}}function IF(e){return Array.from(e.getClientRects())}function kF(e){const t=_n(e),n=Xl(e),r=e.ownerDocument.body,o=It(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=It(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+fp(e);const a=-n.scrollTop;return tn(r).direction==="rtl"&&(s+=It(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function AF(e,t){const n=Tt(e),r=_n(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const c=cp();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function RF(e,t){const n=Xr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=wn(e)?_o(e):vn(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function i0(e,t,n){let r;if(t==="viewport")r=AF(e,n);else if(t==="document")r=kF(_n(e));else if(en(t))r=RF(t,n);else{const o=Z1(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ya(r)}function q1(e,t){const n=gr(e);return n===t||!en(n)||jo(n)?!1:tn(n).position==="fixed"||q1(n,t)}function TF(e,t){const n=t.get(e);if(n)return n;let r=$i(e,[],!1).filter(a=>en(a)&&Uo(a)!=="body"),o=null;const i=tn(e).position==="fixed";let s=i?gr(e):e;for(;en(s)&&!jo(s);){const a=tn(s),l=lp(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ps(s)&&!l&&q1(e,s))?r=r.filter(u=>u!==s):o=a,s=gr(s)}return t.set(e,r),r}function NF(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Wl(t)?[]:TF(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const f=i0(t,u,o);return c.top=It(f.top,c.top),c.right=pr(f.right,c.right),c.bottom=pr(f.bottom,c.bottom),c.left=It(f.left,c.left),c},i0(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function PF(e){const{width:t,height:n}=U1(e);return{width:t,height:n}}function OF(e,t,n){const r=wn(t),o=_n(t),i=n==="fixed",s=Xr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=vn(0);if(r||!r&&!i)if((Uo(t)!=="body"||ps(o))&&(a=Xl(t)),r){const d=Xr(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else o&&(l.x=fp(o));const c=o&&!r&&!i?J1(o,a):vn(0),u=s.left+a.scrollLeft-l.x-c.x,f=s.top+a.scrollTop-l.y-c.y;return{x:u,y:f,width:s.width,height:s.height}}function lu(e){return tn(e).position==="static"}function s0(e,t){if(!wn(e)||tn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return _n(e)===n&&(n=n.ownerDocument.body),n}function K1(e,t){const n=Tt(e);if(Wl(e))return n;if(!wn(e)){let o=gr(e);for(;o&&!jo(o);){if(en(o)&&!lu(o))return o;o=gr(o)}return n}let r=s0(e,t);for(;r&&wF(r)&&lu(r);)r=s0(r,t);return r&&jo(r)&&lu(r)&&!lp(r)?n:r||CF(e)||n}const MF=async function(e){const t=this.getOffsetParent||K1,n=this.getDimensions,r=await n(e.floating);return{reference:OF(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function DF(e){return tn(e).direction==="rtl"}const FF={convertOffsetParentRelativeRectToViewportRelativeRect:EF,getDocumentElement:_n,getClippingRect:NF,getOffsetParent:K1,getElementRects:MF,getClientRects:IF,getDimensions:PF,getScale:_o,isElement:en,isRTL:DF};function Q1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function jF(e,t){let n=null,r;const o=_n(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=c;if(a||t(),!d||!p)return;const g=Ys(f),h=Ys(o.clientWidth-(u+d)),y=Ys(o.clientHeight-(f+p)),m=Ys(u),v={rootMargin:-g+"px "+-h+"px "+-y+"px "+-m+"px",threshold:It(0,pr(1,l))||1};let C=!0;function S(E){const I=E[0].intersectionRatio;if(I!==l){if(!C)return s();I?s(!1,I):r=setTimeout(()=>{s(!1,1e-7)},1e3)}I===1&&!Q1(c,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(S,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(e)}return s(!0),i}function ew(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=up(e),u=o||i?[...c?$i(c):[],...$i(t)]:[];u.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const f=c&&a?jF(c,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(m=>{let[x]=m;x&&x.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var v;(v=p)==null||v.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let g,h=l?Xr(e):null;l&&y();function y(){const m=Xr(e);h&&!Q1(h,m)&&n(),h=m,g=requestAnimationFrame(y)}return n(),()=>{var m;u.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),f==null||f(),(m=p)==null||m.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const LF=yF,BF=bF,zF=hF,VF=xF,GF=gF,a0=pF,$F=vF,HF=(e,t,n)=>{const r=new Map,o={platform:FF,...n},i={...o.platform,_c:r};return dF(e,t,{...o,platform:i})};var xa=typeof document<"u"?N.useLayoutEffect:N.useEffect;function Ua(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ua(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ua(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function tw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function l0(e,t){const n=tw(e);return Math.round(t*n)/n}function cu(e){const t=k.useRef(e);return xa(()=>{t.current=e}),t}function WF(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,f]=k.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=k.useState(r);Ua(d,r)||p(r);const[g,h]=k.useState(null),[y,m]=k.useState(null),x=k.useCallback(V=>{V!==E.current&&(E.current=V,h(V))},[]),v=k.useCallback(V=>{V!==I.current&&(I.current=V,m(V))},[]),C=i||g,S=s||y,E=k.useRef(null),I=k.useRef(null),P=k.useRef(u),M=l!=null,w=cu(l),R=cu(o),O=cu(c),L=k.useCallback(()=>{if(!E.current||!I.current)return;const V={placement:t,strategy:n,middleware:d};R.current&&(V.platform=R.current),HF(E.current,I.current,V).then(F=>{const _={...F,isPositioned:O.current!==!1};A.current&&!Ua(P.current,_)&&(P.current=_,hd.flushSync(()=>{f(_)}))})},[d,t,n,R,O]);xa(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(V=>({...V,isPositioned:!1})))},[c]);const A=k.useRef(!1);xa(()=>(A.current=!0,()=>{A.current=!1}),[]),xa(()=>{if(C&&(E.current=C),S&&(I.current=S),C&&S){if(w.current)return w.current(C,S,L);L()}},[C,S,L,w,M]);const j=k.useMemo(()=>({reference:E,floating:I,setReference:x,setFloating:v}),[x,v]),D=k.useMemo(()=>({reference:C,floating:S}),[C,S]),z=k.useMemo(()=>{const V={position:n,left:0,top:0};if(!D.floating)return V;const F=l0(D.floating,u.x),_=l0(D.floating,u.y);return a?{...V,transform:"translate("+F+"px, "+_+"px)",...tw(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:_}},[n,a,D.floating,u.x,u.y]);return k.useMemo(()=>({...u,update:L,refs:j,elements:D,floatingStyles:z}),[u,L,j,D,z])}const XF=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?a0({element:r.current,padding:o}).fn(n):{}:r?a0({element:r,padding:o}).fn(n):{}}}},YF=(e,t)=>({...LF(e),options:[e,t]}),UF=(e,t)=>({...BF(e),options:[e,t]}),ZF=(e,t)=>({...$F(e),options:[e,t]}),JF=(e,t)=>({...zF(e),options:[e,t]}),qF=(e,t)=>({...VF(e),options:[e,t]}),KF=(e,t)=>({...GF(e),options:[e,t]}),QF=(e,t)=>({...XF(e),options:[e,t]});var ej="Arrow",nw=k.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return b.jsx(je.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});nw.displayName=ej;var tj=nw;function rw(e){const[t,n]=k.useState(void 0);return Gr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var dp="Popper",[ow,Yl]=br(dp),[nj,iw]=ow(dp),sw=e=>{const{__scopePopper:t,children:n}=e,[r,o]=k.useState(null);return b.jsx(nj,{scope:t,anchor:r,onAnchorChange:o,children:n})};sw.displayName=dp;var aw="PopperAnchor",lw=k.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=iw(aw,n),s=k.useRef(null),a=Ve(t,s);return k.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:b.jsx(je.div,{...o,ref:a})});lw.displayName=aw;var pp="PopperContent",[rj,oj]=ow(pp),cw=k.forwardRef((e,t)=>{var X,U,Q,ne,oe,Z;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:p="optimized",onPlaced:g,...h}=e,y=iw(pp,n),[m,x]=k.useState(null),v=Ve(t,ue=>x(ue)),[C,S]=k.useState(null),E=rw(C),I=(E==null?void 0:E.width)??0,P=(E==null?void 0:E.height)??0,M=r+(i!=="center"?"-"+i:""),w=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},R=Array.isArray(c)?c:[c],O=R.length>0,L={padding:w,boundary:R.filter(sj),altBoundary:O},{refs:A,floatingStyles:j,placement:D,isPositioned:z,middlewareData:V}=WF({strategy:"fixed",placement:M,whileElementsMounted:(...ue)=>ew(...ue,{animationFrame:p==="always"}),elements:{reference:y.anchor},middleware:[YF({mainAxis:o+P,alignmentAxis:s}),l&&UF({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?ZF():void 0,...L}),l&&JF({...L}),qF({...L,apply:({elements:ue,rects:fe,availableWidth:Se,availableHeight:Xe})=>{const{width:rt,height:Ct}=fe.reference,_t=ue.floating.style;_t.setProperty("--radix-popper-available-width",`${Se}px`),_t.setProperty("--radix-popper-available-height",`${Xe}px`),_t.setProperty("--radix-popper-anchor-width",`${rt}px`),_t.setProperty("--radix-popper-anchor-height",`${Ct}px`)}}),C&&QF({element:C,padding:a}),aj({arrowWidth:I,arrowHeight:P}),d&&KF({strategy:"referenceHidden",...L})]}),[F,_]=dw(D),G=Vt(g);Gr(()=>{z&&(G==null||G())},[z,G]);const $=(X=V.arrow)==null?void 0:X.x,T=(U=V.arrow)==null?void 0:U.y,H=((Q=V.arrow)==null?void 0:Q.centerOffset)!==0,[J,W]=k.useState();return Gr(()=>{m&&W(window.getComputedStyle(m).zIndex)},[m]),b.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:z?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[(ne=V.transformOrigin)==null?void 0:ne.x,(oe=V.transformOrigin)==null?void 0:oe.y].join(" "),...((Z=V.hide)==null?void 0:Z.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(rj,{scope:n,placedSide:F,onArrowChange:S,arrowX:$,arrowY:T,shouldHideArrow:H,children:b.jsx(je.div,{"data-side":F,"data-align":_,...h,ref:v,style:{...h.style,animation:z?void 0:"none"}})})})});cw.displayName=pp;var uw="PopperArrow",ij={top:"bottom",right:"left",bottom:"top",left:"right"},fw=k.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=oj(uw,r),s=ij[i.placedSide];return b.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:b.jsx(tj,{...o,ref:n,style:{...o.style,display:"block"}})})});fw.displayName=uw;function sj(e){return e!==null}var aj=e=>({name:"transformOrigin",options:e,fn(t){var y,m,x;const{placement:n,rects:r,middlewareData:o}=t,s=((y=o.arrow)==null?void 0:y.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,u]=dw(n),f={start:"0%",center:"50%",end:"100%"}[u],d=(((m=o.arrow)==null?void 0:m.x)??0)+a/2,p=(((x=o.arrow)==null?void 0:x.y)??0)+l/2;let g="",h="";return c==="bottom"?(g=s?f:`${d}px`,h=`${-l}px`):c==="top"?(g=s?f:`${d}px`,h=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,h=s?f:`${p}px`):c==="left"&&(g=`${r.floating.width+l}px`,h=s?f:`${p}px`),{data:{x:g,y:h}}}});function dw(e){const[t,n="center"]=e.split("-");return[t,n]}var hp=sw,gp=lw,pw=cw,hw=fw,uu="rovingFocusGroup.onEntryFocus",lj={bubbles:!1,cancelable:!0},Ul="RovingFocusGroup",[Df,gw,cj]=rp(Ul),[uj,mw]=br(Ul,[cj]),[fj,dj]=uj(Ul),yw=k.forwardRef((e,t)=>b.jsx(Df.Provider,{scope:e.__scopeRovingFocusGroup,children:b.jsx(Df.Slot,{scope:e.__scopeRovingFocusGroup,children:b.jsx(pj,{...e,ref:t})})}));yw.displayName=Ul;var pj=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...f}=e,d=k.useRef(null),p=Ve(t,d),g=op(i),[h=null,y]=Ho({prop:s,defaultProp:a,onChange:l}),[m,x]=k.useState(!1),v=Vt(c),C=gw(n),S=k.useRef(!1),[E,I]=k.useState(0);return k.useEffect(()=>{const P=d.current;if(P)return P.addEventListener(uu,v),()=>P.removeEventListener(uu,v)},[v]),b.jsx(fj,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:h,onItemFocus:k.useCallback(P=>y(P),[y]),onItemShiftTab:k.useCallback(()=>x(!0),[]),onFocusableItemAdd:k.useCallback(()=>I(P=>P+1),[]),onFocusableItemRemove:k.useCallback(()=>I(P=>P-1),[]),children:b.jsx(je.div,{tabIndex:m||E===0?-1:0,"data-orientation":r,...f,ref:p,style:{outline:"none",...e.style},onMouseDown:he(e.onMouseDown,()=>{S.current=!0}),onFocus:he(e.onFocus,P=>{const M=!S.current;if(P.target===P.currentTarget&&M&&!m){const w=new CustomEvent(uu,lj);if(P.currentTarget.dispatchEvent(w),!w.defaultPrevented){const R=C().filter(D=>D.focusable),O=R.find(D=>D.active),L=R.find(D=>D.id===h),j=[O,L,...R].filter(Boolean).map(D=>D.ref.current);xw(j,u)}}S.current=!1}),onBlur:he(e.onBlur,()=>x(!1))})})}),bw="RovingFocusGroupItem",vw=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...s}=e,a=Fn(),l=i||a,c=dj(bw,n),u=c.currentTabStopId===l,f=gw(n),{onFocusableItemAdd:d,onFocusableItemRemove:p}=c;return k.useEffect(()=>{if(r)return d(),()=>p()},[r,d,p]),b.jsx(Df.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:b.jsx(je.span,{tabIndex:u?0:-1,"data-orientation":c.orientation,...s,ref:t,onMouseDown:he(e.onMouseDown,g=>{r?c.onItemFocus(l):g.preventDefault()}),onFocus:he(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:he(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){c.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const h=mj(g,c.orientation,c.dir);if(h!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let m=f().filter(x=>x.focusable).map(x=>x.ref.current);if(h==="last")m.reverse();else if(h==="prev"||h==="next"){h==="prev"&&m.reverse();const x=m.indexOf(g.currentTarget);m=c.loop?yj(m,x+1):m.slice(x+1)}setTimeout(()=>xw(m))}})})})});vw.displayName=bw;var hj={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function gj(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function mj(e,t,n){const r=gj(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return hj[r]}function xw(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function yj(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var bj=yw,vj=vw,Ff=["Enter"," "],xj=["ArrowDown","PageUp","Home"],ww=["ArrowUp","PageDown","End"],wj=[...xj,...ww],Cj={ltr:[...Ff,"ArrowRight"],rtl:[...Ff,"ArrowLeft"]},_j={ltr:["ArrowLeft"],rtl:["ArrowRight"]},hs="Menu",[Hi,Sj,Ej]=rp(hs),[Zr,Cw]=br(hs,[Ej,Yl,mw]),gs=Yl(),_w=mw(),[Sw,Jr]=Zr(hs),[Ij,ms]=Zr(hs),Ew=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:s=!0}=e,a=gs(t),[l,c]=k.useState(null),u=k.useRef(!1),f=Vt(i),d=op(o);return k.useEffect(()=>{const p=()=>{u.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>u.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),b.jsx(hp,{...a,children:b.jsx(Sw,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:c,children:b.jsx(Ij,{scope:t,onClose:k.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:u,dir:d,modal:s,children:r})})})};Ew.displayName=hs;var kj="MenuAnchor",mp=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=gs(n);return b.jsx(gp,{...o,...r,ref:t})});mp.displayName=kj;var Aj="MenuPortal",[dq,Iw]=Zr(Aj,{forceMount:void 0}),zt="MenuContent",[Rj,yp]=Zr(zt),kw=k.forwardRef((e,t)=>{const n=Iw(zt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Jr(zt,e.__scopeMenu),s=ms(zt,e.__scopeMenu);return b.jsx(Hi.Provider,{scope:e.__scopeMenu,children:b.jsx(Xn,{present:r||i.open,children:b.jsx(Hi.Slot,{scope:e.__scopeMenu,children:s.modal?b.jsx(Tj,{...o,ref:t}):b.jsx(Nj,{...o,ref:t})})})})}),Tj=k.forwardRef((e,t)=>{const n=Jr(zt,e.__scopeMenu),r=k.useRef(null),o=Ve(t,r);return k.useEffect(()=>{const i=r.current;if(i)return Ld(i)},[]),b.jsx(bp,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:he(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Nj=k.forwardRef((e,t)=>{const n=Jr(zt,e.__scopeMenu);return b.jsx(bp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Pj=Do("MenuContent.ScrollLock"),bp=k.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:p,disableOutsideScroll:g,...h}=e,y=Jr(zt,n),m=ms(zt,n),x=gs(n),v=_w(n),C=Sj(n),[S,E]=k.useState(null),I=k.useRef(null),P=Ve(t,I,y.onContentChange),M=k.useRef(0),w=k.useRef(""),R=k.useRef(0),O=k.useRef(null),L=k.useRef("right"),A=k.useRef(0),j=g?Ll:k.Fragment,D=g?{as:Pj,allowPinchZoom:!0}:void 0,z=F=>{var X,U;const _=w.current+F,G=C().filter(Q=>!Q.disabled),$=document.activeElement,T=(X=G.find(Q=>Q.ref.current===$))==null?void 0:X.textValue,H=G.map(Q=>Q.textValue),J=Hj(H,_,T),W=(U=G.find(Q=>Q.textValue===J))==null?void 0:U.ref.current;(function Q(ne){w.current=ne,window.clearTimeout(M.current),ne!==""&&(M.current=window.setTimeout(()=>Q(""),1e3))})(_),W&&setTimeout(()=>W.focus())};k.useEffect(()=>()=>window.clearTimeout(M.current),[]),jd();const V=k.useCallback(F=>{var G,$;return L.current===((G=O.current)==null?void 0:G.side)&&Xj(F,($=O.current)==null?void 0:$.area)},[]);return b.jsx(Rj,{scope:n,searchRef:w,onItemEnter:k.useCallback(F=>{V(F)&&F.preventDefault()},[V]),onItemLeave:k.useCallback(F=>{var _;V(F)||((_=I.current)==null||_.focus(),E(null))},[V]),onTriggerLeave:k.useCallback(F=>{V(F)&&F.preventDefault()},[V]),pointerGraceTimerRef:R,onPointerGraceIntentChange:k.useCallback(F=>{O.current=F},[]),children:b.jsx(j,{...D,children:b.jsx(Fl,{asChild:!0,trapped:o,onMountAutoFocus:he(i,F=>{var _;F.preventDefault(),(_=I.current)==null||_.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:b.jsx(Dl,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:p,children:b.jsx(bj,{asChild:!0,...v,dir:m.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:E,onEntryFocus:he(l,F=>{m.isUsingKeyboardRef.current||F.preventDefault()}),preventScrollOnEntryFocus:!0,children:b.jsx(pw,{role:"menu","aria-orientation":"vertical","data-state":Hw(y.open),"data-radix-menu-content":"",dir:m.dir,...x,...h,ref:P,style:{outline:"none",...h.style},onKeyDown:he(h.onKeyDown,F=>{const G=F.target.closest("[data-radix-menu-content]")===F.currentTarget,$=F.ctrlKey||F.altKey||F.metaKey,T=F.key.length===1;G&&(F.key==="Tab"&&F.preventDefault(),!$&&T&&z(F.key));const H=I.current;if(F.target!==H||!wj.includes(F.key))return;F.preventDefault();const W=C().filter(X=>!X.disabled).map(X=>X.ref.current);ww.includes(F.key)&&W.reverse(),Gj(W)}),onBlur:he(e.onBlur,F=>{F.currentTarget.contains(F.target)||(window.clearTimeout(M.current),w.current="")}),onPointerMove:he(e.onPointerMove,Wi(F=>{const _=F.target,G=A.current!==F.clientX;if(F.currentTarget.contains(_)&&G){const $=F.clientX>A.current?"right":"left";L.current=$,A.current=F.clientX}}))})})})})})})});kw.displayName=zt;var Oj="MenuGroup",vp=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(je.div,{role:"group",...r,ref:t})});vp.displayName=Oj;var Mj="MenuLabel",Aw=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(je.div,{...r,ref:t})});Aw.displayName=Mj;var Za="MenuItem",c0="menu.itemSelect",Zl=k.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=k.useRef(null),s=ms(Za,e.__scopeMenu),a=yp(Za,e.__scopeMenu),l=Ve(t,i),c=k.useRef(!1),u=()=>{const f=i.current;if(!n&&f){const d=new CustomEvent(c0,{bubbles:!0,cancelable:!0});f.addEventListener(c0,p=>r==null?void 0:r(p),{once:!0}),Nx(f,d),d.defaultPrevented?c.current=!1:s.onClose()}};return b.jsx(Rw,{...o,ref:l,disabled:n,onClick:he(e.onClick,u),onPointerDown:f=>{var d;(d=e.onPointerDown)==null||d.call(e,f),c.current=!0},onPointerUp:he(e.onPointerUp,f=>{var d;c.current||(d=f.currentTarget)==null||d.click()}),onKeyDown:he(e.onKeyDown,f=>{const d=a.searchRef.current!=="";n||d&&f.key===" "||Ff.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});Zl.displayName=Za;var Rw=k.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,s=yp(Za,n),a=_w(n),l=k.useRef(null),c=Ve(t,l),[u,f]=k.useState(!1),[d,p]=k.useState("");return k.useEffect(()=>{const g=l.current;g&&p((g.textContent??"").trim())},[i.children]),b.jsx(Hi.ItemSlot,{scope:n,disabled:r,textValue:o??d,children:b.jsx(vj,{asChild:!0,...a,focusable:!r,children:b.jsx(je.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:c,onPointerMove:he(e.onPointerMove,Wi(g=>{r?s.onItemLeave(g):(s.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:he(e.onPointerLeave,Wi(g=>s.onItemLeave(g))),onFocus:he(e.onFocus,()=>f(!0)),onBlur:he(e.onBlur,()=>f(!1))})})})}),Dj="MenuCheckboxItem",Tw=k.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return b.jsx(Dw,{scope:e.__scopeMenu,checked:n,children:b.jsx(Zl,{role:"menuitemcheckbox","aria-checked":Ja(n)?"mixed":n,...o,ref:t,"data-state":Cp(n),onSelect:he(o.onSelect,()=>r==null?void 0:r(Ja(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Tw.displayName=Dj;var Nw="MenuRadioGroup",[Fj,jj]=Zr(Nw,{value:void 0,onValueChange:()=>{}}),Pw=k.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=Vt(r);return b.jsx(Fj,{scope:e.__scopeMenu,value:n,onValueChange:i,children:b.jsx(vp,{...o,ref:t})})});Pw.displayName=Nw;var Ow="MenuRadioItem",Mw=k.forwardRef((e,t)=>{const{value:n,...r}=e,o=jj(Ow,e.__scopeMenu),i=n===o.value;return b.jsx(Dw,{scope:e.__scopeMenu,checked:i,children:b.jsx(Zl,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":Cp(i),onSelect:he(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});Mw.displayName=Ow;var xp="MenuItemIndicator",[Dw,Lj]=Zr(xp,{checked:!1}),Fw=k.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=Lj(xp,n);return b.jsx(Xn,{present:r||Ja(i.checked)||i.checked===!0,children:b.jsx(je.span,{...o,ref:t,"data-state":Cp(i.checked)})})});Fw.displayName=xp;var Bj="MenuSeparator",jw=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(je.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});jw.displayName=Bj;var zj="MenuArrow",Lw=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=gs(n);return b.jsx(hw,{...o,...r,ref:t})});Lw.displayName=zj;var wp="MenuSub",[Vj,Bw]=Zr(wp),zw=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=Jr(wp,t),s=gs(t),[a,l]=k.useState(null),[c,u]=k.useState(null),f=Vt(o);return k.useEffect(()=>(i.open===!1&&f(!1),()=>f(!1)),[i.open,f]),b.jsx(hp,{...s,children:b.jsx(Sw,{scope:t,open:r,onOpenChange:f,content:c,onContentChange:u,children:b.jsx(Vj,{scope:t,contentId:Fn(),triggerId:Fn(),trigger:a,onTriggerChange:l,children:n})})})};zw.displayName=wp;var yi="MenuSubTrigger",Vw=k.forwardRef((e,t)=>{const n=Jr(yi,e.__scopeMenu),r=ms(yi,e.__scopeMenu),o=Bw(yi,e.__scopeMenu),i=yp(yi,e.__scopeMenu),s=k.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},u=k.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return k.useEffect(()=>u,[u]),k.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),l(null)}},[a,l]),b.jsx(mp,{asChild:!0,...c,children:b.jsx(Rw,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Hw(n.open),...e,ref:Ml(t,o.onTriggerChange),onClick:f=>{var d;(d=e.onClick)==null||d.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:he(e.onPointerMove,Wi(f=>{i.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:he(e.onPointerLeave,Wi(f=>{var p,g;u();const d=(p=n.content)==null?void 0:p.getBoundingClientRect();if(d){const h=(g=n.content)==null?void 0:g.dataset.side,y=h==="right",m=y?-5:5,x=d[y?"left":"right"],v=d[y?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+m,y:f.clientY},{x,y:d.top},{x:v,y:d.top},{x:v,y:d.bottom},{x,y:d.bottom}],side:h}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:he(e.onKeyDown,f=>{var p;const d=i.searchRef.current!=="";e.disabled||d&&f.key===" "||Cj[r.dir].includes(f.key)&&(n.onOpenChange(!0),(p=n.content)==null||p.focus(),f.preventDefault())})})})});Vw.displayName=yi;var Gw="MenuSubContent",$w=k.forwardRef((e,t)=>{const n=Iw(zt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Jr(zt,e.__scopeMenu),s=ms(zt,e.__scopeMenu),a=Bw(Gw,e.__scopeMenu),l=k.useRef(null),c=Ve(t,l);return b.jsx(Hi.Provider,{scope:e.__scopeMenu,children:b.jsx(Xn,{present:r||i.open,children:b.jsx(Hi.Slot,{scope:e.__scopeMenu,children:b.jsx(bp,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:c,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var f;s.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:he(e.onFocusOutside,u=>{u.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:he(e.onEscapeKeyDown,u=>{s.onClose(),u.preventDefault()}),onKeyDown:he(e.onKeyDown,u=>{var p;const f=u.currentTarget.contains(u.target),d=_j[s.dir].includes(u.key);f&&d&&(i.onOpenChange(!1),(p=a.trigger)==null||p.focus(),u.preventDefault())})})})})})});$w.displayName=Gw;function Hw(e){return e?"open":"closed"}function Ja(e){return e==="indeterminate"}function Cp(e){return Ja(e)?"indeterminate":e?"checked":"unchecked"}function Gj(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function $j(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Hj(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=$j(e,Math.max(i,0));o.length===1&&(s=s.filter(c=>c!==n));const l=s.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Wj(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i].x,l=t[i].y,c=t[s].x,u=t[s].y;l>r!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(o=!o)}return o}function Xj(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Wj(n,t)}function Wi(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Yj=Ew,Uj=mp,Zj=kw,Jj=vp,qj=Aw,Kj=Zl,Qj=Tw,eL=Pw,tL=Mw,nL=Fw,rL=jw,oL=Lw,iL=zw,sL=Vw,aL=$w,_p="DropdownMenu",[lL,pq]=br(_p,[Cw]),gt=Cw(),[cL,Ww]=lL(_p),Xw=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,l=gt(t),c=k.useRef(null),[u=!1,f]=Ho({prop:o,defaultProp:i,onChange:s});return b.jsx(cL,{scope:t,triggerId:Fn(),triggerRef:c,contentId:Fn(),open:u,onOpenChange:f,onOpenToggle:k.useCallback(()=>f(d=>!d),[f]),modal:a,children:b.jsx(Yj,{...l,open:u,onOpenChange:f,dir:r,modal:a,children:n})})};Xw.displayName=_p;var Yw="DropdownMenuTrigger",Uw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=Ww(Yw,n),s=gt(n);return b.jsx(Uj,{asChild:!0,...s,children:b.jsx(je.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Ml(t,i.triggerRef),onPointerDown:he(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:he(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});Uw.displayName=Yw;var Zw="DropdownMenuContent",Jw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ww(Zw,n),i=gt(n),s=k.useRef(!1);return b.jsx(Zj,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:he(e.onCloseAutoFocus,a=>{var l;s.current||(l=o.triggerRef.current)==null||l.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:he(e.onInteractOutside,a=>{const l=a.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!o.modal||u)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Jw.displayName=Zw;var uL="DropdownMenuGroup",qw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(Jj,{...o,...r,ref:t})});qw.displayName=uL;var fL="DropdownMenuLabel",dL=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(qj,{...o,...r,ref:t})});dL.displayName=fL;var pL="DropdownMenuItem",Kw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(Kj,{...o,...r,ref:t})});Kw.displayName=pL;var hL="DropdownMenuCheckboxItem",gL=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(Qj,{...o,...r,ref:t})});gL.displayName=hL;var mL="DropdownMenuRadioGroup",Qw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(eL,{...o,...r,ref:t})});Qw.displayName=mL;var yL="DropdownMenuRadioItem",eC=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(tL,{...o,...r,ref:t})});eC.displayName=yL;var bL="DropdownMenuItemIndicator",vL=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(nL,{...o,...r,ref:t})});vL.displayName=bL;var xL="DropdownMenuSeparator",wL=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(rL,{...o,...r,ref:t})});wL.displayName=xL;var CL="DropdownMenuArrow",_L=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(oL,{...o,...r,ref:t})});_L.displayName=CL;var SL=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,s=gt(t),[a=!1,l]=Ho({prop:r,defaultProp:i,onChange:o});return b.jsx(iL,{...s,open:a,onOpenChange:l,children:n})},EL="DropdownMenuSubTrigger",tC=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(sL,{...o,...r,ref:t})});tC.displayName=EL;var IL="DropdownMenuSubContent",nC=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(aL,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});nC.displayName=IL;var rC=Xw,oC=Uw,iC=Jw,sC=qw,ir=Kw,kL=Qw,AL=eC,RL=SL,TL=tC,NL=nC;const jf={xxs:0,xs:320,s:480,m:768,l:960,xl:1280,xxl:1920},aC=k.createContext(void 0),PL=k.forwardRef((e,t)=>{const{className:n,children:r,...o}=e,[i,s]=k.useState("m"),[a,l]=k.useState(0),[c,u]=k.useState(0),f=k.useRef(null);k.useImperativeHandle(t,()=>f.current,[]);const d=k.useCallback(p=>{const g=p.width,h=p.height;let y="xxs";Object.entries(jf).forEach(([m,x])=>{g>=x&&(y=m)}),s(m=>m!==y?y:m),l(g),u(h)},[]);return k.useEffect(()=>{const p=f.current;if(!p)return;const g=new ResizeObserver(h=>{for(let y of h)d(y.contentRect)});return g.observe(p),d(p.getBoundingClientRect()),()=>{g.disconnect()}},[]),b.jsx(aC.Provider,{value:{wKey:i,w:a,h:c},children:b.jsx("div",{ref:f,className:`size-context w-${i} ${n||""}`.trim(),...o,children:r})})}),OL=()=>{const e=k.useContext(aC);if(!e)throw new Error("useSizeContext must be used within a SizeContextContainerContext");return e},ML=(e,t)=>e==t?!1:e==""?!0:jf[e]<jf[t],DL=e=>ML(OL().wKey,e),So=({direction:e,className:t="",children:n,wrap:r=!1,grow:o=!1,...i})=>{const s="float-container";let a="";typeof e=="string"?a=`direction-${e} `:typeof e=="object"&&e!==null&&Object.entries(e).forEach(([u,f])=>{u===""?a+=`direction-${f} `:a+=`${u}-direction-${f} `});let l="";typeof o=="boolean"?l=o?"grow ":"":typeof o=="object"&&o!==null&&Object.entries(o).forEach(([u,f])=>{u===""?l+=f?"grow ":"no-grow":l+=f?`${u}-grow `:`${u}-no-grow`}),a+=l,r&&(a+="flex-wrap "),a=a.trim();const c=`${s} ${a} ${t}`.trim();return b.jsx("div",{className:c,...i,children:n})},lC=({direction:e,expanded:t=!0,children:n,className:r,maxSize:o,expanderSize:i="40px",containerStyle:s,style:a,containerClassName:l,onExpandChange:c,...u})=>{const f={up:Nf,down:e0,left:Qm,right:Tf}[e],d={up:e0,down:Nf,left:Tf,right:Qm}[e],[p,g]=k.useState(t),h=P=>{p!==P&&(g(P),c&&c(P))},y=`${e} ${p?"expanded":"collapsed"}`,m=e==="right"||e==="left"?{width:p?o:i}:{height:p?o:i},x=e==="right"||e==="left"?{width:p?o:0}:{height:p?o:0},v=e==="right"||e==="left"?{width:i}:{height:i},C=b.jsx("div",{className:`expanding_container_content ${y} ${r||""}`.trim(),style:{...a,...x},...u,children:n}),S=b.jsx("div",{className:`expanding_container_expander ${y}`,onClick:()=>h(!p),style:v,children:p?b.jsx(d,{}):b.jsx(f,{})}),E=e==="right"||e==="down"?C:S,I=e==="left"||e==="up"?C:S;return b.jsxs("div",{className:`expanding_container ${y} ${l||""}`,style:{...s,...m},children:[E,I]})},FL=({trigger:e,setOpen:t,open:n})=>{const[r,o]=N.useState(""),i=N.useContext(xe);return i.options.useWorkerManager?b.jsxs(Xo,{setOpen:t,open:n,trigger:e,title:"New Worker",description:"Create a new worker",children:[b.jsxs("div",{children:["Name:",b.jsx("br",{}),b.jsx("input",{className:"styledinput",onChange:s=>{o(s.currentTarget.value)},value:r})]}),b.jsx("div",{children:r&&b.jsx("div",{children:b.jsx("button",{className:"styledbtn",onClick:()=>{var s;(s=i.workermanager)==null||s.new_worker({name:r}),t(!1)},children:"Create"})})})]}):null},jL=({trigger:e,setOpen:t,open:n})=>{var u,f;const r=N.useContext(xe),[o,i]=N.useState(!1),s=r.workers(),a=(u=r.worker)==null?void 0:u.uuid,l=(a?(f=s[a])==null?void 0:f.name:void 0)||a||"worker",c=async()=>{if(!r.worker)return;const d=await r.worker.export({withFiles:o});NM(d,l+".fnw","application/zip"),t(!1)};return b.jsx(Xo,{setOpen:t,open:n,trigger:e,title:"Export Worker",description:"Export the worker as a .fnw file",children:b.jsxs("div",{children:[b.jsxs("div",{children:[b.jsx("input",{type:"checkbox",className:"styledcheckbox",checked:o,onChange:d=>{i(d.currentTarget.checked)}}),"Include Files"]}),b.jsx("button",{className:"styledbtn",onClick:c,children:"Export"})]})})},LL=()=>{const t=N.useContext(xe).progress_state();return b.jsxs("div",{className:"statusbar",children:[b.jsx("span",{className:"statusbar-progressbar",style:{width:Math.min(100,100*t.progress)+"%"}}),b.jsx("span",{className:"statusbar-message",children:t.message})]})},BL=()=>{var p;const e=N.useContext(xe),t=e.workers(),[n,r]=N.useState(!1),[o,i]=N.useState(!1),s=g=>{g!=="__select__"&&e.workers&&e.workermanager&&t[g]&&(!t[g].active&&!window.confirm("this is an inactive worker, selecting it will start it, continue?")||e.workermanager.set_active(g))},a=async()=>{if(!e.worker||!window.confirm("Updateing the worker might replace the current nodespace, continue?"))return;const h=await MM(".fnw");e.worker.update_from_export(h)},l=e.options.useWorkerManager&&e.workermanager&&e.workermanager.open||tf,c=l&&Object.keys(t).length>0,u=e.worker&&e.worker.is_open,f=u&&l;return l||u?b.jsxs(b.Fragment,{children:[b.jsxs(rC,{children:[b.jsx(oC,{asChild:!0,children:b.jsx("button",{className:"styledbtn",children:b.jsxs(So,{direction:"row",children:["Worker ",b.jsx(G1,{})]})})}),b.jsx(iC,{className:"headermenucontent funcnodescontainer",children:b.jsxs(sC,{children:[c&&b.jsxs(RL,{children:[b.jsx(TL,{className:"headermenuitem submenuitem",children:b.jsxs(So,{direction:"row",children:["Select",b.jsx(Tf,{})]})}),b.jsx(NL,{className:"headermenucontent funcnodescontainer",sideOffset:2,alignOffset:-5,children:b.jsx(kL,{value:(p=e.worker)==null?void 0:p.uuid,onValueChange:g=>{s(g)},children:Object.keys(t).sort((g,h)=>{if(t[g].active&&!t[h].active)return-1;if(!t[g].active&&t[h].active)return 1;const y=t[g].name||g,m=t[h].name||h;return y.localeCompare(m)}).map(g=>{var h,y,m;return b.jsx(AL,{className:"headermenuitem workerselectoption"+((h=t[g])!=null&&h.active?" active":" inactive")+" headermenuitem",value:g,disabled:g===((y=e.worker)==null?void 0:y.uuid),children:((m=t[g])==null?void 0:m.name)||g},g)})})})]}),u&&b.jsxs(b.Fragment,{children:[f&&b.jsx(ir,{className:"headermenuitem",onClick:()=>{var g;if(e.worker){if(!e.workermanager)return e.logger.error("no workermanager");(g=e.workermanager)==null||g.restart_worker(e.worker.uuid)}},children:"Restart"}),b.jsx(ir,{className:"headermenuitem",onClick:()=>{e.worker&&e.worker.stop()},children:"Stop"}),b.jsx(ir,{className:"headermenuitem",onClick:()=>i(!0),children:"Export"}),b.jsx(ir,{className:"headermenuitem",onClick:a,children:"Update"})]}),l&&b.jsx(b.Fragment,{children:b.jsx(ir,{className:"headermenuitem",onClick:()=>r(!0),children:"New"})})]})})]}),b.jsx(FL,{open:n,setOpen:r}),b.jsx(jL,{open:o,setOpen:i})]}):null},zL=()=>{const e=N.useContext(xe),t=()=>{var i;window.confirm("Are you sure you want to start a new flow?")&&((i=e.worker)==null||i.clear())},n=async()=>{var l;const o=await((l=e.worker)==null?void 0:l.save());if(!o)return;const i=new Blob([JSON.stringify(o)],{type:"application/json"}),s=URL.createObjectURL(i),a=document.createElement("a");a.href=s,a.download="flow.json",a.click(),URL.revokeObjectURL(s),a.remove()},r=async()=>{const o=document.createElement("input");o.type="file",o.accept=".json",o.onchange=async i=>{var l;const s=(l=i.target.files)==null?void 0:l[0];if(!s)return;const a=new FileReader;a.onload=async c=>{var d,p;const u=(d=c.target)==null?void 0:d.result;if(!u)return;const f=JSON.parse(u);await((p=e.worker)==null?void 0:p.load(f))},a.readAsText(s)},o.click()};return b.jsx(b.Fragment,{children:b.jsxs(rC,{children:[b.jsx(oC,{asChild:!0,children:b.jsx("button",{className:"styledbtn",children:b.jsxs(So,{direction:"row",children:["Nodespace ",b.jsx(G1,{})]})})}),b.jsx(iC,{className:"headermenucontent funcnodescontainer",children:b.jsxs(sC,{children:[b.jsx(ir,{className:"headermenuitem",onClick:t,children:"New"}),b.jsx(ir,{className:"headermenuitem",onClick:n,children:"Save"}),b.jsx(ir,{className:"headermenuitem",onClick:r,children:"Load"})]})})]})})},VL=({...e})=>{const t=N.useContext(xe),n=t.workerstate();return Object.keys(e).length>0&&t.logger.debug("headerprops",e),b.jsxs(So,{className:"funcnodesreactflowheader",direction:"row",wrap:!0,children:[b.jsx(So,{className:"headerelement m-w-6",grow:{"":!0,m:!1},children:b.jsx(LL,{})}),(e.showmenu||tf)&&b.jsxs(So,{direction:"row",wrap:!0,children:[b.jsx("div",{className:"headerelement",children:b.jsx(BL,{})}),(t.worker&&n.is_open||tf)&&b.jsx("div",{className:"headerelement",children:b.jsx(zL,{})})]})]})};function GL(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const $L=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,HL=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,WL={};function u0(e,t){return(WL.jsx?HL:$L).test(e)}const XL=/[ \t\n\f\r]/g;function YL(e){return typeof e=="object"?e.type==="text"?f0(e.value):!1:f0(e)}function f0(e){return e.replace(XL,"")===""}class ys{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ys.prototype.normal={};ys.prototype.property={};ys.prototype.space=void 0;function cC(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new ys(n,r,t)}function Lf(e){return e.toLowerCase()}class wt{constructor(t,n){this.attribute=n,this.property=t}}wt.prototype.attribute="";wt.prototype.booleanish=!1;wt.prototype.boolean=!1;wt.prototype.commaOrSpaceSeparated=!1;wt.prototype.commaSeparated=!1;wt.prototype.defined=!1;wt.prototype.mustUseProperty=!1;wt.prototype.number=!1;wt.prototype.overloadedBoolean=!1;wt.prototype.property="";wt.prototype.spaceSeparated=!1;wt.prototype.space=void 0;let UL=0;const ye=qr(),qe=qr(),uC=qr(),te=qr(),Fe=qr(),Eo=qr(),Et=qr();function qr(){return 2**++UL}const Bf=Object.freeze(Object.defineProperty({__proto__:null,boolean:ye,booleanish:qe,commaOrSpaceSeparated:Et,commaSeparated:Eo,number:te,overloadedBoolean:uC,spaceSeparated:Fe},Symbol.toStringTag,{value:"Module"})),fu=Object.keys(Bf);class Sp extends wt{constructor(t,n,r,o){let i=-1;if(super(t,n),d0(this,"space",o),typeof r=="number")for(;++i<fu.length;){const s=fu[i];d0(this,fu[i],(r&Bf[s])===Bf[s])}}}Sp.prototype.defined=!0;function d0(e,t,n){n&&(e[t]=n)}function Zo(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new Sp(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Lf(r)]=r,n[Lf(i.attribute)]=r}return new ys(t,n,e.space)}const fC=Zo({properties:{ariaActiveDescendant:null,ariaAtomic:qe,ariaAutoComplete:null,ariaBusy:qe,ariaChecked:qe,ariaColCount:te,ariaColIndex:te,ariaColSpan:te,ariaControls:Fe,ariaCurrent:null,ariaDescribedBy:Fe,ariaDetails:null,ariaDisabled:qe,ariaDropEffect:Fe,ariaErrorMessage:null,ariaExpanded:qe,ariaFlowTo:Fe,ariaGrabbed:qe,ariaHasPopup:null,ariaHidden:qe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Fe,ariaLevel:te,ariaLive:null,ariaModal:qe,ariaMultiLine:qe,ariaMultiSelectable:qe,ariaOrientation:null,ariaOwns:Fe,ariaPlaceholder:null,ariaPosInSet:te,ariaPressed:qe,ariaReadOnly:qe,ariaRelevant:null,ariaRequired:qe,ariaRoleDescription:Fe,ariaRowCount:te,ariaRowIndex:te,ariaRowSpan:te,ariaSelected:qe,ariaSetSize:te,ariaSort:null,ariaValueMax:te,ariaValueMin:te,ariaValueNow:te,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function dC(e,t){return t in e?e[t]:t}function pC(e,t){return dC(e,t.toLowerCase())}const ZL=Zo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Eo,acceptCharset:Fe,accessKey:Fe,action:null,allow:null,allowFullScreen:ye,allowPaymentRequest:ye,allowUserMedia:ye,alt:null,as:null,async:ye,autoCapitalize:null,autoComplete:Fe,autoFocus:ye,autoPlay:ye,blocking:Fe,capture:null,charSet:null,checked:ye,cite:null,className:Fe,cols:te,colSpan:null,content:null,contentEditable:qe,controls:ye,controlsList:Fe,coords:te|Eo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ye,defer:ye,dir:null,dirName:null,disabled:ye,download:uC,draggable:qe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ye,formTarget:null,headers:Fe,height:te,hidden:ye,high:te,href:null,hrefLang:null,htmlFor:Fe,httpEquiv:Fe,id:null,imageSizes:null,imageSrcSet:null,inert:ye,inputMode:null,integrity:null,is:null,isMap:ye,itemId:null,itemProp:Fe,itemRef:Fe,itemScope:ye,itemType:Fe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ye,low:te,manifest:null,max:null,maxLength:te,media:null,method:null,min:null,minLength:te,multiple:ye,muted:ye,name:null,nonce:null,noModule:ye,noValidate:ye,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ye,optimum:te,pattern:null,ping:Fe,placeholder:null,playsInline:ye,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ye,referrerPolicy:null,rel:Fe,required:ye,reversed:ye,rows:te,rowSpan:te,sandbox:Fe,scope:null,scoped:ye,seamless:ye,selected:ye,shadowRootClonable:ye,shadowRootDelegatesFocus:ye,shadowRootMode:null,shape:null,size:te,sizes:null,slot:null,span:te,spellCheck:qe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:te,step:null,style:null,tabIndex:te,target:null,title:null,translate:null,type:null,typeMustMatch:ye,useMap:null,value:qe,width:te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Fe,axis:null,background:null,bgColor:null,border:te,borderColor:null,bottomMargin:te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ye,declare:ye,event:null,face:null,frame:null,frameBorder:null,hSpace:te,leftMargin:te,link:null,longDesc:null,lowSrc:null,marginHeight:te,marginWidth:te,noResize:ye,noHref:ye,noShade:ye,noWrap:ye,object:null,profile:null,prompt:null,rev:null,rightMargin:te,rules:null,scheme:null,scrolling:qe,standby:null,summary:null,text:null,topMargin:te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ye,disableRemotePlayback:ye,prefix:null,property:null,results:te,security:null,unselectable:null},space:"html",transform:pC}),JL=Zo({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Et,accentHeight:te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:te,amplitude:te,arabicForm:null,ascent:te,attributeName:null,attributeType:null,azimuth:te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:te,by:null,calcMode:null,capHeight:te,className:Fe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:te,diffuseConstant:te,direction:null,display:null,dur:null,divisor:te,dominantBaseline:null,download:ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:te,enableBackground:null,end:null,event:null,exponent:te,externalResourcesRequired:null,fill:null,fillOpacity:te,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Eo,g2:Eo,glyphName:Eo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:te,horizOriginX:te,horizOriginY:te,id:null,ideographic:te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:te,k:te,k1:te,k2:te,k3:te,k4:te,kernelMatrix:Et,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:te,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:te,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:te,overlineThickness:te,paintOrder:null,panose1:null,path:null,pathLength:te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Fe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:te,pointsAtY:te,pointsAtZ:te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Et,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Et,rev:Et,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Et,requiredFeatures:Et,requiredFonts:Et,requiredFormats:Et,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:te,specularExponent:te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:te,strikethroughThickness:te,string:null,stroke:null,strokeDashArray:Et,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:te,strokeOpacity:te,strokeWidth:null,style:null,surfaceScale:te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Et,tabIndex:te,tableValues:null,target:null,targetX:te,targetY:te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Et,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:te,underlineThickness:te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:te,values:null,vAlphabetic:te,vMathematical:te,vectorEffect:null,vHanging:te,vIdeographic:te,version:null,vertAdvY:te,vertOriginX:te,vertOriginY:te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:dC}),hC=Zo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),gC=Zo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:pC}),mC=Zo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),qL={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},KL=/[A-Z]/g,p0=/-[a-z]/g,QL=/^data[-\w.:]+$/i;function eB(e,t){const n=Lf(t);let r=t,o=wt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&QL.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(p0,nB);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!p0.test(i)){let s=i.replace(KL,tB);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=Sp}return new o(r,t)}function tB(e){return"-"+e.toLowerCase()}function nB(e){return e.charAt(1).toUpperCase()}const rB=cC([fC,ZL,hC,gC,mC],"html"),Ep=cC([fC,JL,hC,gC,mC],"svg");function oB(e){return e.join(" ").trim()}var oo={},du,h0;function iB(){if(h0)return du;h0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
696
+ */const M3={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},D3={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},F3={prefix:"fas",iconName:"compress",icon:[448,512,[],"f066","M160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 320c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0z"]},j3={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z"]},L3={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},B3={prefix:"fas",iconName:"circle-play",icon:[512,512,[61469,"play-circle"],"f144","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9l0 176c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z"]},z3={prefix:"fas",iconName:"lock-open",icon:[576,512,[],"f3c1","M352 144c0-44.2 35.8-80 80-80s80 35.8 80 80l0 48c0 17.7 14.3 32 32 32s32-14.3 32-32l0-48C576 64.5 511.5 0 432 0S288 64.5 288 144l0 48L64 192c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64l-32 0 0-48z"]},V3={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M256 64l128 0 0 64-128 0 0-64zM240 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l48 0 0 32L32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0 0 32-48 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l160 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-48 0 0-32 256 0 0 32-48 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l160 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-48 0 0-32 96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-256 0 0-32 48 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48L240 0zM96 448l0-64 128 0 0 64L96 448zm320-64l128 0 0 64-128 0 0-64z"]},G3={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},$3={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},H3={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},W3={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},X3={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},Y3={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},U3={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]};d3.autoAddCss=!1;const ht=e=>{const{style:t,...n}=e;return b.jsx("span",{style:{marginLeft:"5px",...t},children:b.jsx(np,{...n})})},G1=e=>b.jsx(ht,{...e,icon:D3}),Tf=e=>b.jsx(ht,{...e,icon:Y3}),Qm=e=>b.jsx(ht,{...e,icon:X3}),$1=e=>b.jsx(ht,{...e,icon:H3}),Z3=e=>b.jsx(ht,{...e,icon:F3}),J3=e=>b.jsx(ht,{...e,icon:M3}),q3=e=>b.jsx(ht,{...e,icon:U3}),e0=e=>b.jsx(ht,{...e,icon:$3}),Nf=e=>b.jsx(ht,{...e,icon:L3}),ds=Nf,H1=e=>b.jsx(ht,{...e,icon:W3}),K3=e=>b.jsx(ht,{...e,icon:z3}),Q3=e=>b.jsx(ht,{...e,icon:j3}),eF=e=>b.jsx(ht,{...e,icon:V3}),tF=e=>b.jsx(ht,{...e,icon:B3}),nF=e=>b.jsx(ht,{...e,icon:G3}),Xo=({trigger:e,title:t,description:n,children:r,closebutton:o=!0,onOpenChange:i,buttons:s=[],open:a,setOpen:l,modal:c=!0})=>{const u=g=>{l&&l(g),i&&i(g)},d=k.useContext(xe).local_state(g=>g.funcnodescontainerRef),p=b.jsx(c4,{asChild:!0,children:b.jsxs("div",{className:"dialogconent funcnodescontainer",children:[t&&b.jsx(u4,{className:"dialogtitle",children:t}),b.jsx(f4,{className:"dialogdescription",children:n}),b.jsx("div",{className:"dialogchildren",children:r}),b.jsx("div",{style:{display:"flex",marginTop:25,justifyContent:"flex-end"},children:(s||[]).map((g,h)=>b.jsx(dm,{asChild:!0,children:b.jsx("button",{className:"dialogsendbutton",onClick:g.onClick,children:g.text})},h))}),o&&b.jsx(dm,{asChild:!0,children:b.jsx("button",{className:"dialogclosebutton","aria-label":"Close",children:b.jsx(H1,{})})})]})});return b.jsxs(i4,{open:a,onOpenChange:u,modal:c,children:[e&&b.jsx(s4,{asChild:!0,children:e}),b.jsxs(a4,{container:d,children:[b.jsx(l4,{className:"dialogoverlay funcnodescontainer"}),p]})]})};function rp(e){const t=e+"CollectionProvider",[n,r]=br(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:y,children:m}=h,x=N.useRef(null),v=N.useRef(new Map).current;return b.jsx(o,{scope:y,itemMap:v,collectionRef:x,children:m})};s.displayName=t;const a=e+"CollectionSlot",l=Do(a),c=N.forwardRef((h,y)=>{const{scope:m,children:x}=h,v=i(a,m),C=Ve(y,v.collectionRef);return b.jsx(l,{ref:C,children:x})});c.displayName=a;const u=e+"CollectionItemSlot",f="data-radix-collection-item",d=Do(u),p=N.forwardRef((h,y)=>{const{scope:m,children:x,...v}=h,C=N.useRef(null),S=Ve(y,C),E=i(u,m);return N.useEffect(()=>(E.itemMap.set(C,{ref:C,...v}),()=>void E.itemMap.delete(C))),b.jsx(d,{[f]:"",ref:S,children:x})});p.displayName=u;function g(h){const y=i(e+"CollectionConsumer",h);return N.useCallback(()=>{const x=y.collectionRef.current;if(!x)return[];const v=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((E,I)=>v.indexOf(E.ref.current)-v.indexOf(I.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:c,ItemSlot:p},g,r]}var rF=k.createContext(void 0);function op(e){const t=k.useContext(rF);return e||t||"ltr"}const oF=["top","right","bottom","left"],pr=Math.min,It=Math.max,Wa=Math.round,Ys=Math.floor,vn=e=>({x:e,y:e}),iF={left:"right",right:"left",bottom:"top",top:"bottom"},sF={start:"end",end:"start"};function Pf(e,t,n){return It(e,pr(t,n))}function Gn(e,t){return typeof e=="function"?e(t):e}function $n(e){return e.split("-")[0]}function Yo(e){return e.split("-")[1]}function ip(e){return e==="x"?"y":"x"}function sp(e){return e==="y"?"height":"width"}function hr(e){return["top","bottom"].includes($n(e))?"y":"x"}function ap(e){return ip(hr(e))}function aF(e,t,n){n===void 0&&(n=!1);const r=Yo(e),o=ap(e),i=sp(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Xa(s)),[s,Xa(s)]}function lF(e){const t=Xa(e);return[Of(e),t,Of(t)]}function Of(e){return e.replace(/start|end/g,t=>sF[t])}function cF(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function uF(e,t,n,r){const o=Yo(e);let i=cF($n(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Of)))),i}function Xa(e){return e.replace(/left|right|bottom|top/g,t=>iF[t])}function fF(e){return{top:0,right:0,bottom:0,left:0,...e}}function W1(e){return typeof e!="number"?fF(e):{top:e,right:e,bottom:e,left:e}}function Ya(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function t0(e,t,n){let{reference:r,floating:o}=e;const i=hr(t),s=ap(t),a=sp(s),l=$n(t),c=i==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Yo(t)){case"start":p[s]-=d*(n&&c?-1:1);break;case"end":p[s]+=d*(n&&c?-1:1);break}return p}const dF=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=t0(c,r,l),d=r,p={},g=0;for(let h=0;h<a.length;h++){const{name:y,fn:m}=a[h],{x,y:v,data:C,reset:S}=await m({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});u=x??u,f=v??f,p={...p,[y]:{...p[y],...C}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(d=S.placement),S.rects&&(c=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:f}=t0(c,d,l)),h=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:p}};async function Gi(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=Gn(t,e),g=W1(p),y=a[d?f==="floating"?"reference":"floating":f],m=Ya(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),x=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},S=Ya(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:v,strategy:l}):x);return{top:(m.top-S.top+g.top)/C.y,bottom:(S.bottom-m.bottom+g.bottom)/C.y,left:(m.left-S.left+g.left)/C.x,right:(S.right-m.right+g.right)/C.x}}const pF=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Gn(e,t)||{};if(c==null)return{};const f=W1(u),d={x:n,y:r},p=ap(o),g=sp(p),h=await s.getDimensions(c),y=p==="y",m=y?"top":"left",x=y?"bottom":"right",v=y?"clientHeight":"clientWidth",C=i.reference[g]+i.reference[p]-d[p]-i.floating[g],S=d[p]-i.reference[p],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let I=E?E[v]:0;(!I||!await(s.isElement==null?void 0:s.isElement(E)))&&(I=a.floating[v]||i.floating[g]);const P=C/2-S/2,M=I/2-h[g]/2-1,w=pr(f[m],M),R=pr(f[x],M),O=w,L=I-h[g]-R,A=I/2-h[g]/2+P,j=Pf(O,A,L),D=!l.arrow&&Yo(o)!=null&&A!==j&&i.reference[g]/2-(A<O?w:R)-h[g]/2<0,z=D?A<O?A-O:A-L:0;return{[p]:d[p]+z,data:{[p]:j,centerOffset:A-j-z,...D&&{alignmentOffset:z}},reset:D}}}),hF=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...y}=Gn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=$n(o),x=hr(a),v=$n(a)===a,C=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=d||(v||!h?[Xa(a)]:lF(a)),E=g!=="none";!d&&E&&S.push(...uF(a,h,g,C));const I=[a,...S],P=await Gi(t,y),M=[];let w=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&M.push(P[m]),f){const A=aF(o,s,C);M.push(P[A[0]],P[A[1]])}if(w=[...w,{placement:o,overflows:M}],!M.every(A=>A<=0)){var R,O;const A=(((R=i.flip)==null?void 0:R.index)||0)+1,j=I[A];if(j)return{data:{index:A,overflows:w},reset:{placement:j}};let D=(O=w.filter(z=>z.overflows[0]<=0).sort((z,V)=>z.overflows[1]-V.overflows[1])[0])==null?void 0:O.placement;if(!D)switch(p){case"bestFit":{var L;const z=(L=w.filter(V=>{if(E){const F=hr(V.placement);return F===x||F==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(F=>F>0).reduce((F,_)=>F+_,0)]).sort((V,F)=>V[1]-F[1])[0])==null?void 0:L[0];z&&(D=z);break}case"initialPlacement":D=a;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function n0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function r0(e){return oF.some(t=>e[t]>=0)}const gF=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Gn(e,t);switch(r){case"referenceHidden":{const i=await Gi(t,{...o,elementContext:"reference"}),s=n0(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:r0(s)}}}case"escaped":{const i=await Gi(t,{...o,altBoundary:!0}),s=n0(i,n.floating);return{data:{escapedOffsets:s,escaped:r0(s)}}}default:return{}}}}};async function mF(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=$n(n),a=Yo(n),l=hr(n)==="y",c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,f=Gn(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof g=="number"&&(p=a==="end"?g*-1:g),l?{x:p*u,y:d*c}:{x:d*c,y:p*u}}const yF=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await mF(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},bF=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:m,y:x}=y;return{x:m,y:x}}},...l}=Gn(e,t),c={x:n,y:r},u=await Gi(t,l),f=hr($n(o)),d=ip(f);let p=c[d],g=c[f];if(i){const y=d==="y"?"top":"left",m=d==="y"?"bottom":"right",x=p+u[y],v=p-u[m];p=Pf(x,p,v)}if(s){const y=f==="y"?"top":"left",m=f==="y"?"bottom":"right",x=g+u[y],v=g-u[m];g=Pf(x,g,v)}const h=a.fn({...t,[d]:p,[f]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[d]:i,[f]:s}}}}}},vF=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Gn(e,t),u={x:n,y:r},f=hr(o),d=ip(f);let p=u[d],g=u[f];const h=Gn(a,t),y=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const v=d==="y"?"height":"width",C=i.reference[d]-i.floating[v]+y.mainAxis,S=i.reference[d]+i.reference[v]-y.mainAxis;p<C?p=C:p>S&&(p=S)}if(c){var m,x;const v=d==="y"?"width":"height",C=["top","left"].includes($n(o)),S=i.reference[f]-i.floating[v]+(C&&((m=s.offset)==null?void 0:m[f])||0)+(C?0:y.crossAxis),E=i.reference[f]+i.reference[v]+(C?0:((x=s.offset)==null?void 0:x[f])||0)-(C?y.crossAxis:0);g<S?g=S:g>E&&(g=E)}return{[d]:p,[f]:g}}}},xF=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=Gn(e,t),u=await Gi(t,c),f=$n(o),d=Yo(o),p=hr(o)==="y",{width:g,height:h}=i.floating;let y,m;f==="top"||f==="bottom"?(y=f,m=d===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(m=f,y=d==="end"?"top":"bottom");const x=h-u.top-u.bottom,v=g-u.left-u.right,C=pr(h-u[y],x),S=pr(g-u[m],v),E=!t.middlewareData.shift;let I=C,P=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(I=x),E&&!d){const w=It(u.left,0),R=It(u.right,0),O=It(u.top,0),L=It(u.bottom,0);p?P=g-2*(w!==0||R!==0?w+R:It(u.left,u.right)):I=h-2*(O!==0||L!==0?O+L:It(u.top,u.bottom))}await l({...t,availableWidth:P,availableHeight:I});const M=await s.getDimensions(a.floating);return g!==M.width||h!==M.height?{reset:{rects:!0}}:{}}}};function Hl(){return typeof window<"u"}function Uo(e){return X1(e)?(e.nodeName||"").toLowerCase():"#document"}function Tt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _n(e){var t;return(t=(X1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function X1(e){return Hl()?e instanceof Node||e instanceof Tt(e).Node:!1}function en(e){return Hl()?e instanceof Element||e instanceof Tt(e).Element:!1}function wn(e){return Hl()?e instanceof HTMLElement||e instanceof Tt(e).HTMLElement:!1}function o0(e){return!Hl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Tt(e).ShadowRoot}function ps(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=tn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function wF(e){return["table","td","th"].includes(Uo(e))}function Wl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function lp(e){const t=cp(),n=en(e)?tn(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function CF(e){let t=gr(e);for(;wn(t)&&!jo(t);){if(lp(t))return t;if(Wl(t))return null;t=gr(t)}return null}function cp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function jo(e){return["html","body","#document"].includes(Uo(e))}function tn(e){return Tt(e).getComputedStyle(e)}function Xl(e){return en(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gr(e){if(Uo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||o0(e)&&e.host||_n(e);return o0(t)?t.host:t}function Y1(e){const t=gr(e);return jo(t)?e.ownerDocument?e.ownerDocument.body:e.body:wn(t)&&ps(t)?t:Y1(t)}function $i(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Y1(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Tt(o);if(i){const a=Mf(s);return t.concat(s,s.visualViewport||[],ps(o)?o:[],a&&n?$i(a):[])}return t.concat(o,$i(o,[],n))}function Mf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function U1(e){const t=tn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=wn(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Wa(n)!==i||Wa(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function up(e){return en(e)?e:e.contextElement}function _o(e){const t=up(e);if(!wn(t))return vn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=U1(t);let s=(i?Wa(n.width):n.width)/r,a=(i?Wa(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const _F=vn(0);function Z1(e){const t=Tt(e);return!cp()||!t.visualViewport?_F:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function SF(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Tt(e)?!1:t}function Xr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=up(e);let s=vn(1);t&&(r?en(r)&&(s=_o(r)):s=_o(e));const a=SF(i,n,r)?Z1(i):vn(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(i){const d=Tt(i),p=r&&en(r)?Tt(r):r;let g=d,h=Mf(g);for(;h&&r&&p!==g;){const y=_o(h),m=h.getBoundingClientRect(),x=tn(h),v=m.left+(h.clientLeft+parseFloat(x.paddingLeft))*y.x,C=m.top+(h.clientTop+parseFloat(x.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,f*=y.y,l+=v,c+=C,g=Tt(h),h=Mf(g)}}return Ya({width:u,height:f,x:l,y:c})}function fp(e,t){const n=Xl(e).scrollLeft;return t?t.left+n:Xr(_n(e)).left+n}function J1(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:fp(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function EF(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=_n(r),a=t?Wl(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=vn(1);const u=vn(0),f=wn(r);if((f||!f&&!i)&&((Uo(r)!=="body"||ps(s))&&(l=Xl(r)),wn(r))){const p=Xr(r);c=_o(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const d=s&&!f&&!i?J1(s,l,!0):vn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-l.scrollTop*c.y+u.y+d.y}}function IF(e){return Array.from(e.getClientRects())}function kF(e){const t=_n(e),n=Xl(e),r=e.ownerDocument.body,o=It(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=It(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+fp(e);const a=-n.scrollTop;return tn(r).direction==="rtl"&&(s+=It(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function AF(e,t){const n=Tt(e),r=_n(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const c=cp();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function RF(e,t){const n=Xr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=wn(e)?_o(e):vn(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function i0(e,t,n){let r;if(t==="viewport")r=AF(e,n);else if(t==="document")r=kF(_n(e));else if(en(t))r=RF(t,n);else{const o=Z1(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ya(r)}function q1(e,t){const n=gr(e);return n===t||!en(n)||jo(n)?!1:tn(n).position==="fixed"||q1(n,t)}function TF(e,t){const n=t.get(e);if(n)return n;let r=$i(e,[],!1).filter(a=>en(a)&&Uo(a)!=="body"),o=null;const i=tn(e).position==="fixed";let s=i?gr(e):e;for(;en(s)&&!jo(s);){const a=tn(s),l=lp(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ps(s)&&!l&&q1(e,s))?r=r.filter(u=>u!==s):o=a,s=gr(s)}return t.set(e,r),r}function NF(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Wl(t)?[]:TF(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const f=i0(t,u,o);return c.top=It(f.top,c.top),c.right=pr(f.right,c.right),c.bottom=pr(f.bottom,c.bottom),c.left=It(f.left,c.left),c},i0(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function PF(e){const{width:t,height:n}=U1(e);return{width:t,height:n}}function OF(e,t,n){const r=wn(t),o=_n(t),i=n==="fixed",s=Xr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=vn(0);if(r||!r&&!i)if((Uo(t)!=="body"||ps(o))&&(a=Xl(t)),r){const d=Xr(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else o&&(l.x=fp(o));const c=o&&!r&&!i?J1(o,a):vn(0),u=s.left+a.scrollLeft-l.x-c.x,f=s.top+a.scrollTop-l.y-c.y;return{x:u,y:f,width:s.width,height:s.height}}function lu(e){return tn(e).position==="static"}function s0(e,t){if(!wn(e)||tn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return _n(e)===n&&(n=n.ownerDocument.body),n}function K1(e,t){const n=Tt(e);if(Wl(e))return n;if(!wn(e)){let o=gr(e);for(;o&&!jo(o);){if(en(o)&&!lu(o))return o;o=gr(o)}return n}let r=s0(e,t);for(;r&&wF(r)&&lu(r);)r=s0(r,t);return r&&jo(r)&&lu(r)&&!lp(r)?n:r||CF(e)||n}const MF=async function(e){const t=this.getOffsetParent||K1,n=this.getDimensions,r=await n(e.floating);return{reference:OF(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function DF(e){return tn(e).direction==="rtl"}const FF={convertOffsetParentRelativeRectToViewportRelativeRect:EF,getDocumentElement:_n,getClippingRect:NF,getOffsetParent:K1,getElementRects:MF,getClientRects:IF,getDimensions:PF,getScale:_o,isElement:en,isRTL:DF};function Q1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function jF(e,t){let n=null,r;const o=_n(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=c;if(a||t(),!d||!p)return;const g=Ys(f),h=Ys(o.clientWidth-(u+d)),y=Ys(o.clientHeight-(f+p)),m=Ys(u),v={rootMargin:-g+"px "+-h+"px "+-y+"px "+-m+"px",threshold:It(0,pr(1,l))||1};let C=!0;function S(E){const I=E[0].intersectionRatio;if(I!==l){if(!C)return s();I?s(!1,I):r=setTimeout(()=>{s(!1,1e-7)},1e3)}I===1&&!Q1(c,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(S,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(e)}return s(!0),i}function ew(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=up(e),u=o||i?[...c?$i(c):[],...$i(t)]:[];u.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const f=c&&a?jF(c,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(m=>{let[x]=m;x&&x.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var v;(v=p)==null||v.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let g,h=l?Xr(e):null;l&&y();function y(){const m=Xr(e);h&&!Q1(h,m)&&n(),h=m,g=requestAnimationFrame(y)}return n(),()=>{var m;u.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),f==null||f(),(m=p)==null||m.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const LF=yF,BF=bF,zF=hF,VF=xF,GF=gF,a0=pF,$F=vF,HF=(e,t,n)=>{const r=new Map,o={platform:FF,...n},i={...o.platform,_c:r};return dF(e,t,{...o,platform:i})};var xa=typeof document<"u"?N.useLayoutEffect:N.useEffect;function Ua(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ua(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ua(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function tw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function l0(e,t){const n=tw(e);return Math.round(t*n)/n}function cu(e){const t=k.useRef(e);return xa(()=>{t.current=e}),t}function WF(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,f]=k.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=k.useState(r);Ua(d,r)||p(r);const[g,h]=k.useState(null),[y,m]=k.useState(null),x=k.useCallback(V=>{V!==E.current&&(E.current=V,h(V))},[]),v=k.useCallback(V=>{V!==I.current&&(I.current=V,m(V))},[]),C=i||g,S=s||y,E=k.useRef(null),I=k.useRef(null),P=k.useRef(u),M=l!=null,w=cu(l),R=cu(o),O=cu(c),L=k.useCallback(()=>{if(!E.current||!I.current)return;const V={placement:t,strategy:n,middleware:d};R.current&&(V.platform=R.current),HF(E.current,I.current,V).then(F=>{const _={...F,isPositioned:O.current!==!1};A.current&&!Ua(P.current,_)&&(P.current=_,hd.flushSync(()=>{f(_)}))})},[d,t,n,R,O]);xa(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(V=>({...V,isPositioned:!1})))},[c]);const A=k.useRef(!1);xa(()=>(A.current=!0,()=>{A.current=!1}),[]),xa(()=>{if(C&&(E.current=C),S&&(I.current=S),C&&S){if(w.current)return w.current(C,S,L);L()}},[C,S,L,w,M]);const j=k.useMemo(()=>({reference:E,floating:I,setReference:x,setFloating:v}),[x,v]),D=k.useMemo(()=>({reference:C,floating:S}),[C,S]),z=k.useMemo(()=>{const V={position:n,left:0,top:0};if(!D.floating)return V;const F=l0(D.floating,u.x),_=l0(D.floating,u.y);return a?{...V,transform:"translate("+F+"px, "+_+"px)",...tw(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:_}},[n,a,D.floating,u.x,u.y]);return k.useMemo(()=>({...u,update:L,refs:j,elements:D,floatingStyles:z}),[u,L,j,D,z])}const XF=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?a0({element:r.current,padding:o}).fn(n):{}:r?a0({element:r,padding:o}).fn(n):{}}}},YF=(e,t)=>({...LF(e),options:[e,t]}),UF=(e,t)=>({...BF(e),options:[e,t]}),ZF=(e,t)=>({...$F(e),options:[e,t]}),JF=(e,t)=>({...zF(e),options:[e,t]}),qF=(e,t)=>({...VF(e),options:[e,t]}),KF=(e,t)=>({...GF(e),options:[e,t]}),QF=(e,t)=>({...XF(e),options:[e,t]});var ej="Arrow",nw=k.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return b.jsx(je.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});nw.displayName=ej;var tj=nw;function rw(e){const[t,n]=k.useState(void 0);return Gr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var dp="Popper",[ow,Yl]=br(dp),[nj,iw]=ow(dp),sw=e=>{const{__scopePopper:t,children:n}=e,[r,o]=k.useState(null);return b.jsx(nj,{scope:t,anchor:r,onAnchorChange:o,children:n})};sw.displayName=dp;var aw="PopperAnchor",lw=k.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=iw(aw,n),s=k.useRef(null),a=Ve(t,s);return k.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:b.jsx(je.div,{...o,ref:a})});lw.displayName=aw;var pp="PopperContent",[rj,oj]=ow(pp),cw=k.forwardRef((e,t)=>{var X,U,Q,ne,oe,Z;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:p="optimized",onPlaced:g,...h}=e,y=iw(pp,n),[m,x]=k.useState(null),v=Ve(t,ue=>x(ue)),[C,S]=k.useState(null),E=rw(C),I=(E==null?void 0:E.width)??0,P=(E==null?void 0:E.height)??0,M=r+(i!=="center"?"-"+i:""),w=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},R=Array.isArray(c)?c:[c],O=R.length>0,L={padding:w,boundary:R.filter(sj),altBoundary:O},{refs:A,floatingStyles:j,placement:D,isPositioned:z,middlewareData:V}=WF({strategy:"fixed",placement:M,whileElementsMounted:(...ue)=>ew(...ue,{animationFrame:p==="always"}),elements:{reference:y.anchor},middleware:[YF({mainAxis:o+P,alignmentAxis:s}),l&&UF({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?ZF():void 0,...L}),l&&JF({...L}),qF({...L,apply:({elements:ue,rects:fe,availableWidth:Se,availableHeight:Xe})=>{const{width:rt,height:Ct}=fe.reference,_t=ue.floating.style;_t.setProperty("--radix-popper-available-width",`${Se}px`),_t.setProperty("--radix-popper-available-height",`${Xe}px`),_t.setProperty("--radix-popper-anchor-width",`${rt}px`),_t.setProperty("--radix-popper-anchor-height",`${Ct}px`)}}),C&&QF({element:C,padding:a}),aj({arrowWidth:I,arrowHeight:P}),d&&KF({strategy:"referenceHidden",...L})]}),[F,_]=dw(D),G=Vt(g);Gr(()=>{z&&(G==null||G())},[z,G]);const $=(X=V.arrow)==null?void 0:X.x,T=(U=V.arrow)==null?void 0:U.y,H=((Q=V.arrow)==null?void 0:Q.centerOffset)!==0,[J,W]=k.useState();return Gr(()=>{m&&W(window.getComputedStyle(m).zIndex)},[m]),b.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:z?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[(ne=V.transformOrigin)==null?void 0:ne.x,(oe=V.transformOrigin)==null?void 0:oe.y].join(" "),...((Z=V.hide)==null?void 0:Z.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(rj,{scope:n,placedSide:F,onArrowChange:S,arrowX:$,arrowY:T,shouldHideArrow:H,children:b.jsx(je.div,{"data-side":F,"data-align":_,...h,ref:v,style:{...h.style,animation:z?void 0:"none"}})})})});cw.displayName=pp;var uw="PopperArrow",ij={top:"bottom",right:"left",bottom:"top",left:"right"},fw=k.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=oj(uw,r),s=ij[i.placedSide];return b.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:b.jsx(tj,{...o,ref:n,style:{...o.style,display:"block"}})})});fw.displayName=uw;function sj(e){return e!==null}var aj=e=>({name:"transformOrigin",options:e,fn(t){var y,m,x;const{placement:n,rects:r,middlewareData:o}=t,s=((y=o.arrow)==null?void 0:y.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,u]=dw(n),f={start:"0%",center:"50%",end:"100%"}[u],d=(((m=o.arrow)==null?void 0:m.x)??0)+a/2,p=(((x=o.arrow)==null?void 0:x.y)??0)+l/2;let g="",h="";return c==="bottom"?(g=s?f:`${d}px`,h=`${-l}px`):c==="top"?(g=s?f:`${d}px`,h=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,h=s?f:`${p}px`):c==="left"&&(g=`${r.floating.width+l}px`,h=s?f:`${p}px`),{data:{x:g,y:h}}}});function dw(e){const[t,n="center"]=e.split("-");return[t,n]}var hp=sw,gp=lw,pw=cw,hw=fw,uu="rovingFocusGroup.onEntryFocus",lj={bubbles:!1,cancelable:!0},Ul="RovingFocusGroup",[Df,gw,cj]=rp(Ul),[uj,mw]=br(Ul,[cj]),[fj,dj]=uj(Ul),yw=k.forwardRef((e,t)=>b.jsx(Df.Provider,{scope:e.__scopeRovingFocusGroup,children:b.jsx(Df.Slot,{scope:e.__scopeRovingFocusGroup,children:b.jsx(pj,{...e,ref:t})})}));yw.displayName=Ul;var pj=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...f}=e,d=k.useRef(null),p=Ve(t,d),g=op(i),[h=null,y]=Ho({prop:s,defaultProp:a,onChange:l}),[m,x]=k.useState(!1),v=Vt(c),C=gw(n),S=k.useRef(!1),[E,I]=k.useState(0);return k.useEffect(()=>{const P=d.current;if(P)return P.addEventListener(uu,v),()=>P.removeEventListener(uu,v)},[v]),b.jsx(fj,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:h,onItemFocus:k.useCallback(P=>y(P),[y]),onItemShiftTab:k.useCallback(()=>x(!0),[]),onFocusableItemAdd:k.useCallback(()=>I(P=>P+1),[]),onFocusableItemRemove:k.useCallback(()=>I(P=>P-1),[]),children:b.jsx(je.div,{tabIndex:m||E===0?-1:0,"data-orientation":r,...f,ref:p,style:{outline:"none",...e.style},onMouseDown:he(e.onMouseDown,()=>{S.current=!0}),onFocus:he(e.onFocus,P=>{const M=!S.current;if(P.target===P.currentTarget&&M&&!m){const w=new CustomEvent(uu,lj);if(P.currentTarget.dispatchEvent(w),!w.defaultPrevented){const R=C().filter(D=>D.focusable),O=R.find(D=>D.active),L=R.find(D=>D.id===h),j=[O,L,...R].filter(Boolean).map(D=>D.ref.current);xw(j,u)}}S.current=!1}),onBlur:he(e.onBlur,()=>x(!1))})})}),bw="RovingFocusGroupItem",vw=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...s}=e,a=Fn(),l=i||a,c=dj(bw,n),u=c.currentTabStopId===l,f=gw(n),{onFocusableItemAdd:d,onFocusableItemRemove:p}=c;return k.useEffect(()=>{if(r)return d(),()=>p()},[r,d,p]),b.jsx(Df.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:b.jsx(je.span,{tabIndex:u?0:-1,"data-orientation":c.orientation,...s,ref:t,onMouseDown:he(e.onMouseDown,g=>{r?c.onItemFocus(l):g.preventDefault()}),onFocus:he(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:he(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){c.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const h=mj(g,c.orientation,c.dir);if(h!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let m=f().filter(x=>x.focusable).map(x=>x.ref.current);if(h==="last")m.reverse();else if(h==="prev"||h==="next"){h==="prev"&&m.reverse();const x=m.indexOf(g.currentTarget);m=c.loop?yj(m,x+1):m.slice(x+1)}setTimeout(()=>xw(m))}})})})});vw.displayName=bw;var hj={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function gj(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function mj(e,t,n){const r=gj(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return hj[r]}function xw(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function yj(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var bj=yw,vj=vw,Ff=["Enter"," "],xj=["ArrowDown","PageUp","Home"],ww=["ArrowUp","PageDown","End"],wj=[...xj,...ww],Cj={ltr:[...Ff,"ArrowRight"],rtl:[...Ff,"ArrowLeft"]},_j={ltr:["ArrowLeft"],rtl:["ArrowRight"]},hs="Menu",[Hi,Sj,Ej]=rp(hs),[Zr,Cw]=br(hs,[Ej,Yl,mw]),gs=Yl(),_w=mw(),[Sw,Jr]=Zr(hs),[Ij,ms]=Zr(hs),Ew=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:s=!0}=e,a=gs(t),[l,c]=k.useState(null),u=k.useRef(!1),f=Vt(i),d=op(o);return k.useEffect(()=>{const p=()=>{u.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>u.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),b.jsx(hp,{...a,children:b.jsx(Sw,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:c,children:b.jsx(Ij,{scope:t,onClose:k.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:u,dir:d,modal:s,children:r})})})};Ew.displayName=hs;var kj="MenuAnchor",mp=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=gs(n);return b.jsx(gp,{...o,...r,ref:t})});mp.displayName=kj;var Aj="MenuPortal",[dq,Iw]=Zr(Aj,{forceMount:void 0}),zt="MenuContent",[Rj,yp]=Zr(zt),kw=k.forwardRef((e,t)=>{const n=Iw(zt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Jr(zt,e.__scopeMenu),s=ms(zt,e.__scopeMenu);return b.jsx(Hi.Provider,{scope:e.__scopeMenu,children:b.jsx(Xn,{present:r||i.open,children:b.jsx(Hi.Slot,{scope:e.__scopeMenu,children:s.modal?b.jsx(Tj,{...o,ref:t}):b.jsx(Nj,{...o,ref:t})})})})}),Tj=k.forwardRef((e,t)=>{const n=Jr(zt,e.__scopeMenu),r=k.useRef(null),o=Ve(t,r);return k.useEffect(()=>{const i=r.current;if(i)return Ld(i)},[]),b.jsx(bp,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:he(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Nj=k.forwardRef((e,t)=>{const n=Jr(zt,e.__scopeMenu);return b.jsx(bp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Pj=Do("MenuContent.ScrollLock"),bp=k.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:p,disableOutsideScroll:g,...h}=e,y=Jr(zt,n),m=ms(zt,n),x=gs(n),v=_w(n),C=Sj(n),[S,E]=k.useState(null),I=k.useRef(null),P=Ve(t,I,y.onContentChange),M=k.useRef(0),w=k.useRef(""),R=k.useRef(0),O=k.useRef(null),L=k.useRef("right"),A=k.useRef(0),j=g?Ll:k.Fragment,D=g?{as:Pj,allowPinchZoom:!0}:void 0,z=F=>{var X,U;const _=w.current+F,G=C().filter(Q=>!Q.disabled),$=document.activeElement,T=(X=G.find(Q=>Q.ref.current===$))==null?void 0:X.textValue,H=G.map(Q=>Q.textValue),J=Hj(H,_,T),W=(U=G.find(Q=>Q.textValue===J))==null?void 0:U.ref.current;(function Q(ne){w.current=ne,window.clearTimeout(M.current),ne!==""&&(M.current=window.setTimeout(()=>Q(""),1e3))})(_),W&&setTimeout(()=>W.focus())};k.useEffect(()=>()=>window.clearTimeout(M.current),[]),jd();const V=k.useCallback(F=>{var G,$;return L.current===((G=O.current)==null?void 0:G.side)&&Xj(F,($=O.current)==null?void 0:$.area)},[]);return b.jsx(Rj,{scope:n,searchRef:w,onItemEnter:k.useCallback(F=>{V(F)&&F.preventDefault()},[V]),onItemLeave:k.useCallback(F=>{var _;V(F)||((_=I.current)==null||_.focus(),E(null))},[V]),onTriggerLeave:k.useCallback(F=>{V(F)&&F.preventDefault()},[V]),pointerGraceTimerRef:R,onPointerGraceIntentChange:k.useCallback(F=>{O.current=F},[]),children:b.jsx(j,{...D,children:b.jsx(Fl,{asChild:!0,trapped:o,onMountAutoFocus:he(i,F=>{var _;F.preventDefault(),(_=I.current)==null||_.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:b.jsx(Dl,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:p,children:b.jsx(bj,{asChild:!0,...v,dir:m.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:E,onEntryFocus:he(l,F=>{m.isUsingKeyboardRef.current||F.preventDefault()}),preventScrollOnEntryFocus:!0,children:b.jsx(pw,{role:"menu","aria-orientation":"vertical","data-state":Hw(y.open),"data-radix-menu-content":"",dir:m.dir,...x,...h,ref:P,style:{outline:"none",...h.style},onKeyDown:he(h.onKeyDown,F=>{const G=F.target.closest("[data-radix-menu-content]")===F.currentTarget,$=F.ctrlKey||F.altKey||F.metaKey,T=F.key.length===1;G&&(F.key==="Tab"&&F.preventDefault(),!$&&T&&z(F.key));const H=I.current;if(F.target!==H||!wj.includes(F.key))return;F.preventDefault();const W=C().filter(X=>!X.disabled).map(X=>X.ref.current);ww.includes(F.key)&&W.reverse(),Gj(W)}),onBlur:he(e.onBlur,F=>{F.currentTarget.contains(F.target)||(window.clearTimeout(M.current),w.current="")}),onPointerMove:he(e.onPointerMove,Wi(F=>{const _=F.target,G=A.current!==F.clientX;if(F.currentTarget.contains(_)&&G){const $=F.clientX>A.current?"right":"left";L.current=$,A.current=F.clientX}}))})})})})})})});kw.displayName=zt;var Oj="MenuGroup",vp=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(je.div,{role:"group",...r,ref:t})});vp.displayName=Oj;var Mj="MenuLabel",Aw=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(je.div,{...r,ref:t})});Aw.displayName=Mj;var Za="MenuItem",c0="menu.itemSelect",Zl=k.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=k.useRef(null),s=ms(Za,e.__scopeMenu),a=yp(Za,e.__scopeMenu),l=Ve(t,i),c=k.useRef(!1),u=()=>{const f=i.current;if(!n&&f){const d=new CustomEvent(c0,{bubbles:!0,cancelable:!0});f.addEventListener(c0,p=>r==null?void 0:r(p),{once:!0}),Nx(f,d),d.defaultPrevented?c.current=!1:s.onClose()}};return b.jsx(Rw,{...o,ref:l,disabled:n,onClick:he(e.onClick,u),onPointerDown:f=>{var d;(d=e.onPointerDown)==null||d.call(e,f),c.current=!0},onPointerUp:he(e.onPointerUp,f=>{var d;c.current||(d=f.currentTarget)==null||d.click()}),onKeyDown:he(e.onKeyDown,f=>{const d=a.searchRef.current!=="";n||d&&f.key===" "||Ff.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});Zl.displayName=Za;var Rw=k.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,s=yp(Za,n),a=_w(n),l=k.useRef(null),c=Ve(t,l),[u,f]=k.useState(!1),[d,p]=k.useState("");return k.useEffect(()=>{const g=l.current;g&&p((g.textContent??"").trim())},[i.children]),b.jsx(Hi.ItemSlot,{scope:n,disabled:r,textValue:o??d,children:b.jsx(vj,{asChild:!0,...a,focusable:!r,children:b.jsx(je.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:c,onPointerMove:he(e.onPointerMove,Wi(g=>{r?s.onItemLeave(g):(s.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:he(e.onPointerLeave,Wi(g=>s.onItemLeave(g))),onFocus:he(e.onFocus,()=>f(!0)),onBlur:he(e.onBlur,()=>f(!1))})})})}),Dj="MenuCheckboxItem",Tw=k.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return b.jsx(Dw,{scope:e.__scopeMenu,checked:n,children:b.jsx(Zl,{role:"menuitemcheckbox","aria-checked":Ja(n)?"mixed":n,...o,ref:t,"data-state":Cp(n),onSelect:he(o.onSelect,()=>r==null?void 0:r(Ja(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Tw.displayName=Dj;var Nw="MenuRadioGroup",[Fj,jj]=Zr(Nw,{value:void 0,onValueChange:()=>{}}),Pw=k.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=Vt(r);return b.jsx(Fj,{scope:e.__scopeMenu,value:n,onValueChange:i,children:b.jsx(vp,{...o,ref:t})})});Pw.displayName=Nw;var Ow="MenuRadioItem",Mw=k.forwardRef((e,t)=>{const{value:n,...r}=e,o=jj(Ow,e.__scopeMenu),i=n===o.value;return b.jsx(Dw,{scope:e.__scopeMenu,checked:i,children:b.jsx(Zl,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":Cp(i),onSelect:he(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});Mw.displayName=Ow;var xp="MenuItemIndicator",[Dw,Lj]=Zr(xp,{checked:!1}),Fw=k.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=Lj(xp,n);return b.jsx(Xn,{present:r||Ja(i.checked)||i.checked===!0,children:b.jsx(je.span,{...o,ref:t,"data-state":Cp(i.checked)})})});Fw.displayName=xp;var Bj="MenuSeparator",jw=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(je.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});jw.displayName=Bj;var zj="MenuArrow",Lw=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=gs(n);return b.jsx(hw,{...o,...r,ref:t})});Lw.displayName=zj;var wp="MenuSub",[Vj,Bw]=Zr(wp),zw=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=Jr(wp,t),s=gs(t),[a,l]=k.useState(null),[c,u]=k.useState(null),f=Vt(o);return k.useEffect(()=>(i.open===!1&&f(!1),()=>f(!1)),[i.open,f]),b.jsx(hp,{...s,children:b.jsx(Sw,{scope:t,open:r,onOpenChange:f,content:c,onContentChange:u,children:b.jsx(Vj,{scope:t,contentId:Fn(),triggerId:Fn(),trigger:a,onTriggerChange:l,children:n})})})};zw.displayName=wp;var yi="MenuSubTrigger",Vw=k.forwardRef((e,t)=>{const n=Jr(yi,e.__scopeMenu),r=ms(yi,e.__scopeMenu),o=Bw(yi,e.__scopeMenu),i=yp(yi,e.__scopeMenu),s=k.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},u=k.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return k.useEffect(()=>u,[u]),k.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),l(null)}},[a,l]),b.jsx(mp,{asChild:!0,...c,children:b.jsx(Rw,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Hw(n.open),...e,ref:Ml(t,o.onTriggerChange),onClick:f=>{var d;(d=e.onClick)==null||d.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:he(e.onPointerMove,Wi(f=>{i.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:he(e.onPointerLeave,Wi(f=>{var p,g;u();const d=(p=n.content)==null?void 0:p.getBoundingClientRect();if(d){const h=(g=n.content)==null?void 0:g.dataset.side,y=h==="right",m=y?-5:5,x=d[y?"left":"right"],v=d[y?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+m,y:f.clientY},{x,y:d.top},{x:v,y:d.top},{x:v,y:d.bottom},{x,y:d.bottom}],side:h}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:he(e.onKeyDown,f=>{var p;const d=i.searchRef.current!=="";e.disabled||d&&f.key===" "||Cj[r.dir].includes(f.key)&&(n.onOpenChange(!0),(p=n.content)==null||p.focus(),f.preventDefault())})})})});Vw.displayName=yi;var Gw="MenuSubContent",$w=k.forwardRef((e,t)=>{const n=Iw(zt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Jr(zt,e.__scopeMenu),s=ms(zt,e.__scopeMenu),a=Bw(Gw,e.__scopeMenu),l=k.useRef(null),c=Ve(t,l);return b.jsx(Hi.Provider,{scope:e.__scopeMenu,children:b.jsx(Xn,{present:r||i.open,children:b.jsx(Hi.Slot,{scope:e.__scopeMenu,children:b.jsx(bp,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:c,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var f;s.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:he(e.onFocusOutside,u=>{u.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:he(e.onEscapeKeyDown,u=>{s.onClose(),u.preventDefault()}),onKeyDown:he(e.onKeyDown,u=>{var p;const f=u.currentTarget.contains(u.target),d=_j[s.dir].includes(u.key);f&&d&&(i.onOpenChange(!1),(p=a.trigger)==null||p.focus(),u.preventDefault())})})})})})});$w.displayName=Gw;function Hw(e){return e?"open":"closed"}function Ja(e){return e==="indeterminate"}function Cp(e){return Ja(e)?"indeterminate":e?"checked":"unchecked"}function Gj(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function $j(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Hj(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=$j(e,Math.max(i,0));o.length===1&&(s=s.filter(c=>c!==n));const l=s.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Wj(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i].x,l=t[i].y,c=t[s].x,u=t[s].y;l>r!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(o=!o)}return o}function Xj(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Wj(n,t)}function Wi(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Yj=Ew,Uj=mp,Zj=kw,Jj=vp,qj=Aw,Kj=Zl,Qj=Tw,eL=Pw,tL=Mw,nL=Fw,rL=jw,oL=Lw,iL=zw,sL=Vw,aL=$w,_p="DropdownMenu",[lL,pq]=br(_p,[Cw]),gt=Cw(),[cL,Ww]=lL(_p),Xw=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,l=gt(t),c=k.useRef(null),[u=!1,f]=Ho({prop:o,defaultProp:i,onChange:s});return b.jsx(cL,{scope:t,triggerId:Fn(),triggerRef:c,contentId:Fn(),open:u,onOpenChange:f,onOpenToggle:k.useCallback(()=>f(d=>!d),[f]),modal:a,children:b.jsx(Yj,{...l,open:u,onOpenChange:f,dir:r,modal:a,children:n})})};Xw.displayName=_p;var Yw="DropdownMenuTrigger",Uw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=Ww(Yw,n),s=gt(n);return b.jsx(Uj,{asChild:!0,...s,children:b.jsx(je.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Ml(t,i.triggerRef),onPointerDown:he(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:he(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});Uw.displayName=Yw;var Zw="DropdownMenuContent",Jw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ww(Zw,n),i=gt(n),s=k.useRef(!1);return b.jsx(Zj,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:he(e.onCloseAutoFocus,a=>{var l;s.current||(l=o.triggerRef.current)==null||l.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:he(e.onInteractOutside,a=>{const l=a.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!o.modal||u)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Jw.displayName=Zw;var uL="DropdownMenuGroup",qw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(Jj,{...o,...r,ref:t})});qw.displayName=uL;var fL="DropdownMenuLabel",dL=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(qj,{...o,...r,ref:t})});dL.displayName=fL;var pL="DropdownMenuItem",Kw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(Kj,{...o,...r,ref:t})});Kw.displayName=pL;var hL="DropdownMenuCheckboxItem",gL=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(Qj,{...o,...r,ref:t})});gL.displayName=hL;var mL="DropdownMenuRadioGroup",Qw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(eL,{...o,...r,ref:t})});Qw.displayName=mL;var yL="DropdownMenuRadioItem",eC=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(tL,{...o,...r,ref:t})});eC.displayName=yL;var bL="DropdownMenuItemIndicator",vL=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(nL,{...o,...r,ref:t})});vL.displayName=bL;var xL="DropdownMenuSeparator",wL=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(rL,{...o,...r,ref:t})});wL.displayName=xL;var CL="DropdownMenuArrow",_L=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(oL,{...o,...r,ref:t})});_L.displayName=CL;var SL=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,s=gt(t),[a=!1,l]=Ho({prop:r,defaultProp:i,onChange:o});return b.jsx(iL,{...s,open:a,onOpenChange:l,children:n})},EL="DropdownMenuSubTrigger",tC=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(sL,{...o,...r,ref:t})});tC.displayName=EL;var IL="DropdownMenuSubContent",nC=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(aL,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});nC.displayName=IL;var rC=Xw,oC=Uw,iC=Jw,sC=qw,ir=Kw,kL=Qw,AL=eC,RL=SL,TL=tC,NL=nC;const jf={xxs:0,xs:320,s:480,m:768,l:960,xl:1280,xxl:1920},aC=k.createContext(void 0),PL=k.forwardRef((e,t)=>{const{className:n,children:r,...o}=e,[i,s]=k.useState("m"),[a,l]=k.useState(0),[c,u]=k.useState(0),f=k.useRef(null);k.useImperativeHandle(t,()=>f.current,[]);const d=k.useCallback(p=>{const g=p.width,h=p.height;let y="xxs";Object.entries(jf).forEach(([m,x])=>{g>=x&&(y=m)}),s(m=>m!==y?y:m),l(g),u(h)},[]);return k.useEffect(()=>{const p=f.current;if(!p)return;const g=new ResizeObserver(h=>{for(let y of h)d(y.contentRect)});return g.observe(p),d(p.getBoundingClientRect()),()=>{g.disconnect()}},[]),b.jsx(aC.Provider,{value:{wKey:i,w:a,h:c},children:b.jsx("div",{ref:f,className:`size-context w-${i} ${n||""}`.trim(),...o,children:r})})}),OL=()=>{const e=k.useContext(aC);if(!e)throw new Error("useSizeContext must be used within a SizeContextContainerContext");return e},ML=(e,t)=>e==t?!1:e==""?!0:jf[e]<jf[t],DL=e=>ML(OL().wKey,e),So=({direction:e,className:t="",children:n,wrap:r=!1,grow:o=!1,...i})=>{const s="float-container";let a="";typeof e=="string"?a=`direction-${e} `:typeof e=="object"&&e!==null&&Object.entries(e).forEach(([u,f])=>{u===""?a+=`direction-${f} `:a+=`${u}-direction-${f} `});let l="";typeof o=="boolean"?l=o?"grow ":"":typeof o=="object"&&o!==null&&Object.entries(o).forEach(([u,f])=>{u===""?l+=f?"grow ":"no-grow":l+=f?`${u}-grow `:`${u}-no-grow`}),a+=l,r&&(a+="flex-wrap "),a=a.trim();const c=`${s} ${a} ${t}`.trim();return b.jsx("div",{className:c,...i,children:n})},lC=({direction:e,expanded:t=!0,children:n,className:r,maxSize:o="18.75rem",expanderSize:i="2rem",containerStyle:s,style:a,containerClassName:l,onExpandChange:c,...u})=>{const f={up:Nf,down:e0,left:Qm,right:Tf}[e],d={up:e0,down:Nf,left:Tf,right:Qm}[e],[p,g]=k.useState(t),h=P=>{p!==P&&(g(P),c&&c(P))},y=`${e} ${p?"expanded":"collapsed"}`,m=e==="right"||e==="left"?{width:p?o:i}:{height:p?o:i},x=e==="right"||e==="left"?{width:p?o:0}:{height:p?o:0},v=e==="right"||e==="left"?{width:i}:{height:i},C=b.jsx("div",{className:`expanding_container_content ${y} ${r||""}`.trim(),style:{...a,...x},...u,children:n}),S=b.jsx("div",{className:`expanding_container_expander ${y}`,onClick:()=>h(!p),style:v,children:p?b.jsx(d,{}):b.jsx(f,{})}),E=e==="right"||e==="down"?C:S,I=e==="left"||e==="up"?C:S;return b.jsxs("div",{className:`expanding_container ${y} ${l||""}`,style:{...s,...m},children:[E,I]})},FL=({trigger:e,setOpen:t,open:n})=>{const[r,o]=N.useState(""),i=N.useContext(xe);return i.options.useWorkerManager?b.jsxs(Xo,{setOpen:t,open:n,trigger:e,title:"New Worker",description:"Create a new worker",children:[b.jsxs("div",{children:["Name:",b.jsx("br",{}),b.jsx("input",{className:"styledinput",onChange:s=>{o(s.currentTarget.value)},value:r})]}),b.jsx("div",{children:r&&b.jsx("div",{children:b.jsx("button",{className:"styledbtn",onClick:()=>{var s;(s=i.workermanager)==null||s.new_worker({name:r}),t(!1)},children:"Create"})})})]}):null},jL=({trigger:e,setOpen:t,open:n})=>{var u,f;const r=N.useContext(xe),[o,i]=N.useState(!1),s=r.workers(),a=(u=r.worker)==null?void 0:u.uuid,l=(a?(f=s[a])==null?void 0:f.name:void 0)||a||"worker",c=async()=>{if(!r.worker)return;const d=await r.worker.export({withFiles:o});NM(d,l+".fnw","application/zip"),t(!1)};return b.jsx(Xo,{setOpen:t,open:n,trigger:e,title:"Export Worker",description:"Export the worker as a .fnw file",children:b.jsxs("div",{children:[b.jsxs("div",{children:[b.jsx("input",{type:"checkbox",className:"styledcheckbox",checked:o,onChange:d=>{i(d.currentTarget.checked)}}),"Include Files"]}),b.jsx("button",{className:"styledbtn",onClick:c,children:"Export"})]})})},LL=()=>{const t=N.useContext(xe).progress_state();return b.jsxs("div",{className:"statusbar",children:[b.jsx("span",{className:"statusbar-progressbar",style:{width:Math.min(100,100*t.progress)+"%"}}),b.jsx("span",{className:"statusbar-message",children:t.message})]})},BL=()=>{var p;const e=N.useContext(xe),t=e.workers(),[n,r]=N.useState(!1),[o,i]=N.useState(!1),s=g=>{g!=="__select__"&&e.workers&&e.workermanager&&t[g]&&(!t[g].active&&!window.confirm("this is an inactive worker, selecting it will start it, continue?")||e.workermanager.set_active(g))},a=async()=>{if(!e.worker||!window.confirm("Updateing the worker might replace the current nodespace, continue?"))return;const h=await MM(".fnw");e.worker.update_from_export(h)},l=e.options.useWorkerManager&&e.workermanager&&e.workermanager.open||tf,c=l&&Object.keys(t).length>0,u=e.worker&&e.worker.is_open,f=u&&l;return l||u?b.jsxs(b.Fragment,{children:[b.jsxs(rC,{children:[b.jsx(oC,{asChild:!0,children:b.jsx("button",{className:"styledbtn",children:b.jsxs(So,{direction:"row",children:["Worker ",b.jsx(G1,{})]})})}),b.jsx(iC,{className:"headermenucontent funcnodescontainer",children:b.jsxs(sC,{children:[c&&b.jsxs(RL,{children:[b.jsx(TL,{className:"headermenuitem submenuitem",children:b.jsxs(So,{direction:"row",children:["Select",b.jsx(Tf,{})]})}),b.jsx(NL,{className:"headermenucontent funcnodescontainer",sideOffset:2,alignOffset:-5,children:b.jsx(kL,{value:(p=e.worker)==null?void 0:p.uuid,onValueChange:g=>{s(g)},children:Object.keys(t).sort((g,h)=>{if(t[g].active&&!t[h].active)return-1;if(!t[g].active&&t[h].active)return 1;const y=t[g].name||g,m=t[h].name||h;return y.localeCompare(m)}).map(g=>{var h,y,m;return b.jsx(AL,{className:"headermenuitem workerselectoption"+((h=t[g])!=null&&h.active?" active":" inactive")+" headermenuitem",value:g,disabled:g===((y=e.worker)==null?void 0:y.uuid),children:((m=t[g])==null?void 0:m.name)||g},g)})})})]}),u&&b.jsxs(b.Fragment,{children:[f&&b.jsx(ir,{className:"headermenuitem",onClick:()=>{var g;if(e.worker){if(!e.workermanager)return e.logger.error("no workermanager");(g=e.workermanager)==null||g.restart_worker(e.worker.uuid)}},children:"Restart"}),b.jsx(ir,{className:"headermenuitem",onClick:()=>{e.worker&&e.worker.stop()},children:"Stop"}),b.jsx(ir,{className:"headermenuitem",onClick:()=>i(!0),children:"Export"}),b.jsx(ir,{className:"headermenuitem",onClick:a,children:"Update"})]}),l&&b.jsx(b.Fragment,{children:b.jsx(ir,{className:"headermenuitem",onClick:()=>r(!0),children:"New"})})]})})]}),b.jsx(FL,{open:n,setOpen:r}),b.jsx(jL,{open:o,setOpen:i})]}):null},zL=()=>{const e=N.useContext(xe),t=()=>{var i;window.confirm("Are you sure you want to start a new flow?")&&((i=e.worker)==null||i.clear())},n=async()=>{var l;const o=await((l=e.worker)==null?void 0:l.save());if(!o)return;const i=new Blob([JSON.stringify(o)],{type:"application/json"}),s=URL.createObjectURL(i),a=document.createElement("a");a.href=s,a.download="flow.json",a.click(),URL.revokeObjectURL(s),a.remove()},r=async()=>{const o=document.createElement("input");o.type="file",o.accept=".json",o.onchange=async i=>{var l;const s=(l=i.target.files)==null?void 0:l[0];if(!s)return;const a=new FileReader;a.onload=async c=>{var d,p;const u=(d=c.target)==null?void 0:d.result;if(!u)return;const f=JSON.parse(u);await((p=e.worker)==null?void 0:p.load(f))},a.readAsText(s)},o.click()};return b.jsx(b.Fragment,{children:b.jsxs(rC,{children:[b.jsx(oC,{asChild:!0,children:b.jsx("button",{className:"styledbtn",children:b.jsxs(So,{direction:"row",children:["Nodespace ",b.jsx(G1,{})]})})}),b.jsx(iC,{className:"headermenucontent funcnodescontainer",children:b.jsxs(sC,{children:[b.jsx(ir,{className:"headermenuitem",onClick:t,children:"New"}),b.jsx(ir,{className:"headermenuitem",onClick:n,children:"Save"}),b.jsx(ir,{className:"headermenuitem",onClick:r,children:"Load"})]})})]})})},VL=({...e})=>{const t=N.useContext(xe),n=t.workerstate();return Object.keys(e).length>0&&t.logger.debug("headerprops",e),b.jsxs(So,{className:"funcnodesreactflowheader",direction:"row",wrap:!0,children:[b.jsx(So,{className:"headerelement m-w-6",grow:{"":!0,m:!1},children:b.jsx(LL,{})}),(e.showmenu||tf)&&b.jsxs(So,{direction:"row",wrap:!0,children:[b.jsx("div",{className:"headerelement",children:b.jsx(BL,{})}),(t.worker&&n.is_open||tf)&&b.jsx("div",{className:"headerelement",children:b.jsx(zL,{})})]})]})};function GL(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const $L=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,HL=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,WL={};function u0(e,t){return(WL.jsx?HL:$L).test(e)}const XL=/[ \t\n\f\r]/g;function YL(e){return typeof e=="object"?e.type==="text"?f0(e.value):!1:f0(e)}function f0(e){return e.replace(XL,"")===""}class ys{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ys.prototype.normal={};ys.prototype.property={};ys.prototype.space=void 0;function cC(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new ys(n,r,t)}function Lf(e){return e.toLowerCase()}class wt{constructor(t,n){this.attribute=n,this.property=t}}wt.prototype.attribute="";wt.prototype.booleanish=!1;wt.prototype.boolean=!1;wt.prototype.commaOrSpaceSeparated=!1;wt.prototype.commaSeparated=!1;wt.prototype.defined=!1;wt.prototype.mustUseProperty=!1;wt.prototype.number=!1;wt.prototype.overloadedBoolean=!1;wt.prototype.property="";wt.prototype.spaceSeparated=!1;wt.prototype.space=void 0;let UL=0;const ye=qr(),qe=qr(),uC=qr(),te=qr(),Fe=qr(),Eo=qr(),Et=qr();function qr(){return 2**++UL}const Bf=Object.freeze(Object.defineProperty({__proto__:null,boolean:ye,booleanish:qe,commaOrSpaceSeparated:Et,commaSeparated:Eo,number:te,overloadedBoolean:uC,spaceSeparated:Fe},Symbol.toStringTag,{value:"Module"})),fu=Object.keys(Bf);class Sp extends wt{constructor(t,n,r,o){let i=-1;if(super(t,n),d0(this,"space",o),typeof r=="number")for(;++i<fu.length;){const s=fu[i];d0(this,fu[i],(r&Bf[s])===Bf[s])}}}Sp.prototype.defined=!0;function d0(e,t,n){n&&(e[t]=n)}function Zo(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new Sp(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Lf(r)]=r,n[Lf(i.attribute)]=r}return new ys(t,n,e.space)}const fC=Zo({properties:{ariaActiveDescendant:null,ariaAtomic:qe,ariaAutoComplete:null,ariaBusy:qe,ariaChecked:qe,ariaColCount:te,ariaColIndex:te,ariaColSpan:te,ariaControls:Fe,ariaCurrent:null,ariaDescribedBy:Fe,ariaDetails:null,ariaDisabled:qe,ariaDropEffect:Fe,ariaErrorMessage:null,ariaExpanded:qe,ariaFlowTo:Fe,ariaGrabbed:qe,ariaHasPopup:null,ariaHidden:qe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Fe,ariaLevel:te,ariaLive:null,ariaModal:qe,ariaMultiLine:qe,ariaMultiSelectable:qe,ariaOrientation:null,ariaOwns:Fe,ariaPlaceholder:null,ariaPosInSet:te,ariaPressed:qe,ariaReadOnly:qe,ariaRelevant:null,ariaRequired:qe,ariaRoleDescription:Fe,ariaRowCount:te,ariaRowIndex:te,ariaRowSpan:te,ariaSelected:qe,ariaSetSize:te,ariaSort:null,ariaValueMax:te,ariaValueMin:te,ariaValueNow:te,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function dC(e,t){return t in e?e[t]:t}function pC(e,t){return dC(e,t.toLowerCase())}const ZL=Zo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Eo,acceptCharset:Fe,accessKey:Fe,action:null,allow:null,allowFullScreen:ye,allowPaymentRequest:ye,allowUserMedia:ye,alt:null,as:null,async:ye,autoCapitalize:null,autoComplete:Fe,autoFocus:ye,autoPlay:ye,blocking:Fe,capture:null,charSet:null,checked:ye,cite:null,className:Fe,cols:te,colSpan:null,content:null,contentEditable:qe,controls:ye,controlsList:Fe,coords:te|Eo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ye,defer:ye,dir:null,dirName:null,disabled:ye,download:uC,draggable:qe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ye,formTarget:null,headers:Fe,height:te,hidden:ye,high:te,href:null,hrefLang:null,htmlFor:Fe,httpEquiv:Fe,id:null,imageSizes:null,imageSrcSet:null,inert:ye,inputMode:null,integrity:null,is:null,isMap:ye,itemId:null,itemProp:Fe,itemRef:Fe,itemScope:ye,itemType:Fe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ye,low:te,manifest:null,max:null,maxLength:te,media:null,method:null,min:null,minLength:te,multiple:ye,muted:ye,name:null,nonce:null,noModule:ye,noValidate:ye,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ye,optimum:te,pattern:null,ping:Fe,placeholder:null,playsInline:ye,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ye,referrerPolicy:null,rel:Fe,required:ye,reversed:ye,rows:te,rowSpan:te,sandbox:Fe,scope:null,scoped:ye,seamless:ye,selected:ye,shadowRootClonable:ye,shadowRootDelegatesFocus:ye,shadowRootMode:null,shape:null,size:te,sizes:null,slot:null,span:te,spellCheck:qe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:te,step:null,style:null,tabIndex:te,target:null,title:null,translate:null,type:null,typeMustMatch:ye,useMap:null,value:qe,width:te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Fe,axis:null,background:null,bgColor:null,border:te,borderColor:null,bottomMargin:te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ye,declare:ye,event:null,face:null,frame:null,frameBorder:null,hSpace:te,leftMargin:te,link:null,longDesc:null,lowSrc:null,marginHeight:te,marginWidth:te,noResize:ye,noHref:ye,noShade:ye,noWrap:ye,object:null,profile:null,prompt:null,rev:null,rightMargin:te,rules:null,scheme:null,scrolling:qe,standby:null,summary:null,text:null,topMargin:te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ye,disableRemotePlayback:ye,prefix:null,property:null,results:te,security:null,unselectable:null},space:"html",transform:pC}),JL=Zo({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Et,accentHeight:te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:te,amplitude:te,arabicForm:null,ascent:te,attributeName:null,attributeType:null,azimuth:te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:te,by:null,calcMode:null,capHeight:te,className:Fe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:te,diffuseConstant:te,direction:null,display:null,dur:null,divisor:te,dominantBaseline:null,download:ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:te,enableBackground:null,end:null,event:null,exponent:te,externalResourcesRequired:null,fill:null,fillOpacity:te,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Eo,g2:Eo,glyphName:Eo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:te,horizOriginX:te,horizOriginY:te,id:null,ideographic:te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:te,k:te,k1:te,k2:te,k3:te,k4:te,kernelMatrix:Et,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:te,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:te,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:te,overlineThickness:te,paintOrder:null,panose1:null,path:null,pathLength:te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Fe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:te,pointsAtY:te,pointsAtZ:te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Et,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Et,rev:Et,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Et,requiredFeatures:Et,requiredFonts:Et,requiredFormats:Et,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:te,specularExponent:te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:te,strikethroughThickness:te,string:null,stroke:null,strokeDashArray:Et,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:te,strokeOpacity:te,strokeWidth:null,style:null,surfaceScale:te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Et,tabIndex:te,tableValues:null,target:null,targetX:te,targetY:te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Et,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:te,underlineThickness:te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:te,values:null,vAlphabetic:te,vMathematical:te,vectorEffect:null,vHanging:te,vIdeographic:te,version:null,vertAdvY:te,vertOriginX:te,vertOriginY:te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:dC}),hC=Zo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),gC=Zo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:pC}),mC=Zo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),qL={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},KL=/[A-Z]/g,p0=/-[a-z]/g,QL=/^data[-\w.:]+$/i;function eB(e,t){const n=Lf(t);let r=t,o=wt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&QL.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(p0,nB);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!p0.test(i)){let s=i.replace(KL,tB);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=Sp}return new o(r,t)}function tB(e){return"-"+e.toLowerCase()}function nB(e){return e.charAt(1).toUpperCase()}const rB=cC([fC,ZL,hC,gC,mC],"html"),Ep=cC([fC,JL,hC,gC,mC],"svg");function oB(e){return e.join(" ").trim()}var oo={},du,h0;function iB(){if(h0)return du;h0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
697
697
  `,c="/",u="*",f="",d="comment",p="declaration";du=function(h,y){if(typeof h!="string")throw new TypeError("First argument must be a string");if(!h)return[];y=y||{};var m=1,x=1;function v(L){var A=L.match(t);A&&(m+=A.length);var j=L.lastIndexOf(l);x=~j?L.length-j:x+L.length}function C(){var L={line:m,column:x};return function(A){return A.position=new S(L),P(),A}}function S(L){this.start=L,this.end={line:m,column:x},this.source=y.source}S.prototype.content=h;function E(L){var A=new Error(y.source+":"+m+":"+x+": "+L);if(A.reason=L,A.filename=y.source,A.line=m,A.column=x,A.source=h,!y.silent)throw A}function I(L){var A=L.exec(h);if(A){var j=A[0];return v(j),h=h.slice(j.length),A}}function P(){I(n)}function M(L){var A;for(L=L||[];A=w();)A!==!1&&L.push(A);return L}function w(){var L=C();if(!(c!=h.charAt(0)||u!=h.charAt(1))){for(var A=2;f!=h.charAt(A)&&(u!=h.charAt(A)||c!=h.charAt(A+1));)++A;if(A+=2,f===h.charAt(A-1))return E("End of comment missing");var j=h.slice(2,A-2);return x+=2,v(j),h=h.slice(A),x+=2,L({type:d,comment:j})}}function R(){var L=C(),A=I(r);if(A){if(w(),!I(o))return E("property missing ':'");var j=I(i),D=L({type:p,property:g(A[0].replace(e,f)),value:j?g(j[0].replace(e,f)):f});return I(s),D}}function O(){var L=[];M(L);for(var A;A=R();)A!==!1&&(L.push(A),M(L));return L}return P(),O()};function g(h){return h?h.replace(a,f):f}return du}var g0;function sB(){if(g0)return oo;g0=1;var e=oo&&oo.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(oo,"__esModule",{value:!0}),oo.default=n;var t=e(iB());function n(r,o){var i=null;if(!r||typeof r!="string")return i;var s=(0,t.default)(r),a=typeof o=="function";return s.forEach(function(l){if(l.type==="declaration"){var c=l.property,u=l.value;a?o(c,u,l):u&&(i=i||{},i[c]=u)}}),i}return oo}var ai={},m0;function aB(){if(m0)return ai;m0=1,Object.defineProperty(ai,"__esModule",{value:!0}),ai.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,i=function(c){return!c||n.test(c)||e.test(c)},s=function(c,u){return u.toUpperCase()},a=function(c,u){return"".concat(u,"-")},l=function(c,u){return u===void 0&&(u={}),i(c)?c:(c=c.toLowerCase(),u.reactCompat?c=c.replace(o,a):c=c.replace(r,a),c.replace(t,s))};return ai.camelCase=l,ai}var li,y0;function lB(){if(y0)return li;y0=1;var e=li&&li.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(sB()),n=aB();function r(o,i){var s={};return!o||typeof o!="string"||(0,t.default)(o,function(a,l){a&&l&&(s[(0,n.camelCase)(a,i)]=l)}),s}return r.default=r,li=r,li}var cB=lB();const uB=gl(cB),yC=bC("end"),Ip=bC("start");function bC(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function fB(e){const t=Ip(e),n=yC(e);if(t&&n)return{start:t,end:n}}function Ei(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?b0(e.position):"start"in e||"end"in e?b0(e):"line"in e||"column"in e?zf(e):""}function zf(e){return v0(e&&e.line)+":"+v0(e&&e.column)}function b0(e){return zf(e&&e.start)+"-"+zf(e&&e.end)}function v0(e){return e&&typeof e=="number"?e:1}class ut extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",i={},s=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?o=t:!i.cause&&t&&(s=!0,o=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=a?a.line:void 0,this.name=Ei(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}ut.prototype.file="";ut.prototype.name="";ut.prototype.reason="";ut.prototype.message="";ut.prototype.stack="";ut.prototype.column=void 0;ut.prototype.line=void 0;ut.prototype.ancestors=void 0;ut.prototype.cause=void 0;ut.prototype.fatal=void 0;ut.prototype.place=void 0;ut.prototype.ruleId=void 0;ut.prototype.source=void 0;const kp={}.hasOwnProperty,dB=new Map,pB=/[A-Z]/g,hB=new Set(["table","tbody","thead","tfoot","tr"]),gB=new Set(["td","th"]),vC="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function mB(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=SB(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=_B(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Ep:rB,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=xC(o,e,void 0);return i&&typeof i!="string"?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function xC(e,t,n){if(t.type==="element")return yB(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return bB(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return xB(e,t,n);if(t.type==="mdxjsEsm")return vB(e,t);if(t.type==="root")return wB(e,t,n);if(t.type==="text")return CB(e,t)}function yB(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=Ep,e.schema=o),e.ancestors.push(t);const i=CC(e,t.tagName,!1),s=EB(e,t);let a=Rp(e,t);return hB.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!YL(l):!0})),wC(e,s,i,t),Ap(s,a),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function bB(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Xi(e,t.position)}function vB(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Xi(e,t.position)}function xB(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=Ep,e.schema=o),e.ancestors.push(t);const i=t.name===null?e.Fragment:CC(e,t.name,!0),s=IB(e,t),a=Rp(e,t);return wC(e,s,i,t),Ap(s,a),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function wB(e,t,n){const r={};return Ap(r,Rp(e,t)),e.create(t,e.Fragment,r,n)}function CB(e,t){return t.value}function wC(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Ap(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function _B(e,t,n){return r;function r(o,i,s,a){const c=Array.isArray(s.children)?n:t;return a?c(i,s,a):c(i,s)}}function SB(e,t){return n;function n(r,o,i,s){const a=Array.isArray(i.children),l=Ip(r);return t(o,i,s,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function EB(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&kp.call(t.properties,o)){const i=kB(e,o,t.properties[o]);if(i){const[s,a]=i;e.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&gB.has(t.tagName)?r=a:n[s]=a}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function IB(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const s=i.expression;s.type;const a=s.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Xi(e,t.position);else{const o=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,i=e.evaluater.evaluateExpression(a.expression)}else Xi(e,t.position);else i=r.value===null?!0:r.value;n[o]=i}return n}function Rp(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:dB;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const c=o.get(l)||0;s=l+"-"+c,o.set(l,c+1)}}const a=xC(e,i,s);a!==void 0&&n.push(a)}return n}function kB(e,t,n){const r=eB(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?GL(n):oB(n)),r.property==="style"){let o=typeof n=="object"?n:AB(e,String(n));return e.stylePropertyNameCase==="css"&&(o=RB(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?qL[r.property]||r.property:r.attribute,n]}}function AB(e,t){try{return uB(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new ut("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=vC+"#cannot-parse-style-attribute",o}}function CC(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let i=-1,s;for(;++i<o.length;){const a=u0(o[i])?{type:"Identifier",name:o[i]}:{type:"Literal",value:o[i]};s=s?{type:"MemberExpression",object:s,property:a,computed:!!(i&&a.type==="Literal"),optional:!1}:a}r=s}else r=u0(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return kp.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);Xi(e)}function Xi(e,t){const n=new ut("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=vC+"#cannot-handle-mdx-estrees-without-createevaluater",n}function RB(e){const t={};let n;for(n in e)kp.call(e,n)&&(t[TB(n)]=e[n]);return t}function TB(e){let t=e.replace(pB,NB);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function NB(e){return"-"+e.toLowerCase()}const pu={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},PB={};function Tp(e,t){const n=PB,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return _C(e,r,o)}function _C(e,t,n){if(OB(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return x0(e.children,t,n)}return Array.isArray(e)?x0(e,t,n):""}function x0(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=_C(e[o],t,n);return r.join("")}function OB(e){return!!(e&&typeof e=="object")}const w0=document.createElement("i");function Np(e){const t="&"+e+";";w0.innerHTML=t;const n=w0.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Nt(e,t,n,r){const o=e.length;let i=0,s;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);i<r.length;)s=r.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function Lt(e,t){return e.length>0?(Nt(e,e.length,0,t),e):t}const C0={}.hasOwnProperty;function SC(e){const t={};let n=-1;for(;++n<e.length;)MB(t,e[n]);return t}function MB(e,t){let n;for(n in t){const o=(C0.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let s;if(i)for(s in i){C0.call(o,s)||(o[s]=[]);const a=i[s];DB(o[s],Array.isArray(a)?a:a?[a]:[])}}}function DB(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Nt(e,0,0,r)}function EC(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Qt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const pt=vr(/[A-Za-z]/),at=vr(/[\dA-Za-z]/),FB=vr(/[#-'*+\--9=?A-Z^-~]/);function qa(e){return e!==null&&(e<32||e===127)}const Vf=vr(/\d/),jB=vr(/[\dA-Fa-f]/),LB=vr(/[!-/:-@[-`{-~]/);function de(e){return e!==null&&e<-2}function De(e){return e!==null&&(e<0||e===32)}function we(e){return e===-2||e===-1||e===32}const Jl=vr(new RegExp("\\p{P}|\\p{S}","u")),Yr=vr(/\s/);function vr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Jo(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===37&&at(e.charCodeAt(n+1))&&at(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const a=e.charCodeAt(n+1);i<56320&&a>56319&&a<57344?(s=String.fromCharCode(i,a),o=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+o+1,s=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function _e(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(l){return we(l)?(e.enter(n),a(l)):t(l)}function a(l){return we(l)&&i++<o?(e.consume(l),a):(e.exit(n),t(l))}}const BB={tokenize:zB};function zB(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),_e(e,t,"linePrefix")}function o(a){return e.enter("paragraph"),i(a)}function i(a){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return de(a)?(e.consume(a),e.exit("chunkText"),i):(e.consume(a),s)}}const VB={tokenize:GB},_0={tokenize:$B};function GB(e){const t=this,n=[];let r=0,o,i,s;return a;function a(v){if(r<n.length){const C=n[r];return t.containerState=C[1],e.attempt(C[0].continuation,l,c)(v)}return c(v)}function l(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&x();const C=t.events.length;let S=C,E;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){E=t.events[S][1].end;break}m(r);let I=C;for(;I<t.events.length;)t.events[I][1].end={...E},I++;return Nt(t.events,S+1,0,t.events.slice(C)),t.events.length=I,c(v)}return a(v)}function c(v){if(r===n.length){if(!o)return d(v);if(o.currentConstruct&&o.currentConstruct.concrete)return g(v);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(_0,u,f)(v)}function u(v){return o&&x(),m(r),d(v)}function f(v){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,g(v)}function d(v){return t.containerState={},e.attempt(_0,p,g)(v)}function p(v){return r++,n.push([t.currentConstruct,t.containerState]),d(v)}function g(v){if(v===null){o&&x(),m(0),e.consume(v);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:i}),h(v)}function h(v){if(v===null){y(e.exit("chunkFlow"),!0),m(0),e.consume(v);return}return de(v)?(e.consume(v),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(v),h)}function y(v,C){const S=t.sliceStream(v);if(C&&S.push(null),v.previous=i,i&&(i.next=v),i=v,o.defineSkip(v.start),o.write(S),t.parser.lazy[v.start.line]){let E=o.events.length;for(;E--;)if(o.events[E][1].start.offset<s&&(!o.events[E][1].end||o.events[E][1].end.offset>s))return;const I=t.events.length;let P=I,M,w;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(M){w=t.events[P][1].end;break}M=!0}for(m(r),E=I;E<t.events.length;)t.events[E][1].end={...w},E++;Nt(t.events,P+1,0,t.events.slice(I)),t.events.length=E}}function m(v){let C=n.length;for(;C-- >v;){const S=n[C];t.containerState=S[1],S[0].exit.call(t,e)}n.length=v}function x(){o.write([null]),i=void 0,o=void 0,t.containerState._closeFlow=void 0}}function $B(e,t,n){return _e(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Lo(e){if(e===null||De(e)||Yr(e))return 1;if(Jl(e))return 2}function ql(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Gf={name:"attention",resolveAll:HB,tokenize:WB};function HB(e,t){let n=-1,r,o,i,s,a,l,c,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},d={...e[n][1].start};S0(f,-l),S0(d,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},i={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},o={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[r][1].end={...s.start},e[n][1].start={...a.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Lt(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Lt(c,[["enter",o,t],["enter",s,t],["exit",s,t],["enter",i,t]]),c=Lt(c,ql(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Lt(c,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=Lt(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,Nt(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function WB(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Lo(r);let i;return s;function s(l){return i=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===i)return e.consume(l),a;const c=e.exit("attentionSequence"),u=Lo(l),f=!u||u===2&&o||n.includes(l),d=!o||o===2&&u||n.includes(r);return c._open=!!(i===42?f:f&&(o||!d)),c._close=!!(i===42?d:d&&(u||!f)),t(l)}}function S0(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const XB={name:"autolink",tokenize:YB};function YB(e,t,n){let r=0;return o;function o(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(p){return pt(p)?(e.consume(p),s):p===64?n(p):c(p)}function s(p){return p===43||p===45||p===46||at(p)?(r=1,a(p)):c(p)}function a(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||at(p))&&r++<32?(e.consume(p),a):(r=0,c(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||qa(p)?n(p):(e.consume(p),l)}function c(p){return p===64?(e.consume(p),u):FB(p)?(e.consume(p),c):n(p)}function u(p){return at(p)?f(p):n(p)}function f(p){return p===46?(e.consume(p),r=0,u):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):d(p)}function d(p){if((p===45||at(p))&&r++<63){const g=p===45?d:f;return e.consume(p),g}return n(p)}}const bs={partial:!0,tokenize:UB};function UB(e,t,n){return r;function r(i){return we(i)?_e(e,o,"linePrefix")(i):o(i)}function o(i){return i===null||de(i)?t(i):n(i)}}const IC={continuation:{tokenize:JB},exit:qB,name:"blockQuote",tokenize:ZB};function ZB(e,t,n){const r=this;return o;function o(s){if(s===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return n(s)}function i(s){return we(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function JB(e,t,n){const r=this;return o;function o(s){return we(s)?_e(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(IC,t,n)(s)}}function qB(e){e.exit("blockQuote")}const kC={name:"characterEscape",tokenize:KB};function KB(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),o}function o(i){return LB(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const AC={name:"characterReference",tokenize:QB};function QB(e,t,n){const r=this;let o=0,i,s;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,s=at,u(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=jB,u):(e.enter("characterReferenceValue"),i=7,s=Vf,u(f))}function u(f){if(f===59&&o){const d=e.exit("characterReferenceValue");return s===at&&!Np(r.sliceSerialize(d))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&o++<i?(e.consume(f),u):n(f)}}const E0={partial:!0,tokenize:t9},I0={concrete:!0,name:"codeFenced",tokenize:e9};function e9(e,t,n){const r=this,o={partial:!0,tokenize:S};let i=0,s=0,a;return l;function l(E){return c(E)}function c(E){const I=r.events[r.events.length-1];return i=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,a=E,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(E)}function u(E){return E===a?(s++,e.consume(E),u):s<3?n(E):(e.exit("codeFencedFenceSequence"),we(E)?_e(e,f,"whitespace")(E):f(E))}function f(E){return E===null||de(E)?(e.exit("codeFencedFence"),r.interrupt?t(E):e.check(E0,h,C)(E)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(E))}function d(E){return E===null||de(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(E)):we(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),_e(e,p,"whitespace")(E)):E===96&&E===a?n(E):(e.consume(E),d)}function p(E){return E===null||de(E)?f(E):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(E))}function g(E){return E===null||de(E)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(E)):E===96&&E===a?n(E):(e.consume(E),g)}function h(E){return e.attempt(o,C,y)(E)}function y(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),m}function m(E){return i>0&&we(E)?_e(e,x,"linePrefix",i+1)(E):x(E)}function x(E){return E===null||de(E)?e.check(E0,h,C)(E):(e.enter("codeFlowValue"),v(E))}function v(E){return E===null||de(E)?(e.exit("codeFlowValue"),x(E)):(e.consume(E),v)}function C(E){return e.exit("codeFenced"),t(E)}function S(E,I,P){let M=0;return w;function w(j){return E.enter("lineEnding"),E.consume(j),E.exit("lineEnding"),R}function R(j){return E.enter("codeFencedFence"),we(j)?_e(E,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):O(j)}function O(j){return j===a?(E.enter("codeFencedFenceSequence"),L(j)):P(j)}function L(j){return j===a?(M++,E.consume(j),L):M>=s?(E.exit("codeFencedFenceSequence"),we(j)?_e(E,A,"whitespace")(j):A(j)):P(j)}function A(j){return j===null||de(j)?(E.exit("codeFencedFence"),I(j)):P(j)}}}function t9(e,t,n){const r=this;return o;function o(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const hu={name:"codeIndented",tokenize:r9},n9={partial:!0,tokenize:o9};function r9(e,t,n){const r=this;return o;function o(c){return e.enter("codeIndented"),_e(e,i,"linePrefix",5)(c)}function i(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?s(c):n(c)}function s(c){return c===null?l(c):de(c)?e.attempt(n9,s,l)(c):(e.enter("codeFlowValue"),a(c))}function a(c){return c===null||de(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),a)}function l(c){return e.exit("codeIndented"),t(c)}}function o9(e,t,n){const r=this;return o;function o(s){return r.parser.lazy[r.now().line]?n(s):de(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):_e(e,i,"linePrefix",5)(s)}function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):de(s)?o(s):n(s)}}const i9={name:"codeText",previous:a9,resolve:s9,tokenize:l9};function s9(e){let t=e.length-4,n=3,r,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function a9(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function l9(e,t,n){let r=0,o,i;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(i=e.enter("codeTextSequence"),o=0,u(f)):de(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||de(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),c)}function u(f){return f===96?(e.consume(f),o++,u):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(i.type="codeTextData",c(f))}}class c9{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const o=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&ci(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ci(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ci(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ci(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ci(this.left,n.reverse())}}}function ci(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function RC(e){const t={};let n=-1,r,o,i,s,a,l,c;const u=new c9(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,u9(u,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,o=void 0;i--;)if(s=u.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(o&&(u.get(o)[1].type="lineEndingBlank"),s[1].type="lineEnding",o=i);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;o&&(r[1].end={...u.get(o)[1].start},a=u.slice(o,n),a.unshift(r),u.splice(o,n-o+1,a))}}return Nt(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function u9(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,l=[],c={};let u,f,d=-1,p=n,g=0,h=0;const y=[h];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),f&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++d<a.length;)a[d][0]==="exit"&&a[d-1][0]==="enter"&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(h=d+1,y.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):y.pop(),d=y.length;d--;){const m=a.slice(y[d],y[d+1]),x=i.pop();l.push([x,x+m.length-1]),e.splice(x,2,m)}for(l.reverse(),d=-1;++d<l.length;)c[g+l[d][0]]=g+l[d][1],g+=l[d][1]-l[d][0]-1;return c}const f9={resolve:p9,tokenize:h9},d9={partial:!0,tokenize:g9};function p9(e){return RC(e),e}function h9(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(a)}function o(a){return a===null?i(a):de(a)?e.check(d9,s,i)(a):(e.consume(a),o)}function i(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function g9(e,t,n){const r=this;return o;function o(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),_e(e,i,"linePrefix")}function i(s){if(s===null||de(s))return n(s);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function TC(e,t,n,r,o,i,s,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return f;function f(m){return m===60?(e.enter(r),e.enter(o),e.enter(i),e.consume(m),e.exit(i),d):m===null||m===32||m===41||qa(m)?n(m):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(m))}function d(m){return m===62?(e.enter(i),e.consume(m),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===62?(e.exit("chunkString"),e.exit(a),d(m)):m===null||m===60||de(m)?n(m):(e.consume(m),m===92?g:p)}function g(m){return m===60||m===62||m===92?(e.consume(m),p):p(m)}function h(m){return!u&&(m===null||m===41||De(m))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(m)):u<c&&m===40?(e.consume(m),u++,h):m===41?(e.consume(m),u--,h):m===null||m===32||m===40||qa(m)?n(m):(e.consume(m),m===92?y:h)}function y(m){return m===40||m===41||m===92?(e.consume(m),h):h(m)}}function NC(e,t,n,r,o,i){const s=this;let a=0,l;return c;function c(p){return e.enter(r),e.enter(o),e.consume(p),e.exit(o),e.enter(i),u}function u(p){return a>999||p===null||p===91||p===93&&!l||p===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(i),e.enter(o),e.consume(p),e.exit(o),e.exit(r),t):de(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||de(p)||a++>999?(e.exit("chunkString"),u(p)):(e.consume(p),l||(l=!we(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(e.consume(p),a++,f):f(p)}}function PC(e,t,n,r,o,i){let s;return a;function a(d){return d===34||d===39||d===40?(e.enter(r),e.enter(o),e.consume(d),e.exit(o),s=d===40?41:d,l):n(d)}function l(d){return d===s?(e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):(e.enter(i),c(d))}function c(d){return d===s?(e.exit(i),l(s)):d===null?n(d):de(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),_e(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(d){return d===s||d===null||de(d)?(e.exit("chunkString"),c(d)):(e.consume(d),d===92?f:u)}function f(d){return d===s||d===92?(e.consume(d),u):u(d)}}function Ii(e,t){let n;return r;function r(o){return de(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):we(o)?_e(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const m9={name:"definition",tokenize:b9},y9={partial:!0,tokenize:v9};function b9(e,t,n){const r=this;let o;return i;function i(p){return e.enter("definition"),s(p)}function s(p){return NC.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return o=Qt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return De(p)?Ii(e,c)(p):c(p)}function c(p){return TC(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function u(p){return e.attempt(y9,f,f)(p)}function f(p){return we(p)?_e(e,d,"whitespace")(p):d(p)}function d(p){return p===null||de(p)?(e.exit("definition"),r.parser.defined.push(o),t(p)):n(p)}}function v9(e,t,n){return r;function r(a){return De(a)?Ii(e,o)(a):n(a)}function o(a){return PC(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return we(a)?_e(e,s,"whitespace")(a):s(a)}function s(a){return a===null||de(a)?t(a):n(a)}}const x9={name:"hardBreakEscape",tokenize:w9};function w9(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),o}function o(i){return de(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const C9={name:"headingAtx",resolve:_9,tokenize:S9};function _9(e,t){let n=e.length-2,r=3,o,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Nt(e,r,n-r+1,[["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t]])),e}function S9(e,t,n){let r=0;return o;function o(u){return e.enter("atxHeading"),i(u)}function i(u){return e.enter("atxHeadingSequence"),s(u)}function s(u){return u===35&&r++<6?(e.consume(u),s):u===null||De(u)?(e.exit("atxHeadingSequence"),a(u)):n(u)}function a(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||de(u)?(e.exit("atxHeading"),t(u)):we(u)?_e(e,a,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),a(u))}function c(u){return u===null||u===35||De(u)?(e.exit("atxHeadingText"),a(u)):(e.consume(u),c)}}const E9=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],k0=["pre","script","style","textarea"],I9={concrete:!0,name:"htmlFlow",resolveTo:R9,tokenize:T9},k9={partial:!0,tokenize:P9},A9={partial:!0,tokenize:N9};function R9(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function T9(e,t,n){const r=this;let o,i,s,a,l;return c;function c(T){return u(T)}function u(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),f}function f(T){return T===33?(e.consume(T),d):T===47?(e.consume(T),i=!0,h):T===63?(e.consume(T),o=3,r.interrupt?t:_):pt(T)?(e.consume(T),s=String.fromCharCode(T),y):n(T)}function d(T){return T===45?(e.consume(T),o=2,p):T===91?(e.consume(T),o=5,a=0,g):pt(T)?(e.consume(T),o=4,r.interrupt?t:_):n(T)}function p(T){return T===45?(e.consume(T),r.interrupt?t:_):n(T)}function g(T){const H="CDATA[";return T===H.charCodeAt(a++)?(e.consume(T),a===H.length?r.interrupt?t:O:g):n(T)}function h(T){return pt(T)?(e.consume(T),s=String.fromCharCode(T),y):n(T)}function y(T){if(T===null||T===47||T===62||De(T)){const H=T===47,J=s.toLowerCase();return!H&&!i&&k0.includes(J)?(o=1,r.interrupt?t(T):O(T)):E9.includes(s.toLowerCase())?(o=6,H?(e.consume(T),m):r.interrupt?t(T):O(T)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(T):i?x(T):v(T))}return T===45||at(T)?(e.consume(T),s+=String.fromCharCode(T),y):n(T)}function m(T){return T===62?(e.consume(T),r.interrupt?t:O):n(T)}function x(T){return we(T)?(e.consume(T),x):w(T)}function v(T){return T===47?(e.consume(T),w):T===58||T===95||pt(T)?(e.consume(T),C):we(T)?(e.consume(T),v):w(T)}function C(T){return T===45||T===46||T===58||T===95||at(T)?(e.consume(T),C):S(T)}function S(T){return T===61?(e.consume(T),E):we(T)?(e.consume(T),S):v(T)}function E(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(e.consume(T),l=T,I):we(T)?(e.consume(T),E):P(T)}function I(T){return T===l?(e.consume(T),l=null,M):T===null||de(T)?n(T):(e.consume(T),I)}function P(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||De(T)?S(T):(e.consume(T),P)}function M(T){return T===47||T===62||we(T)?v(T):n(T)}function w(T){return T===62?(e.consume(T),R):n(T)}function R(T){return T===null||de(T)?O(T):we(T)?(e.consume(T),R):n(T)}function O(T){return T===45&&o===2?(e.consume(T),D):T===60&&o===1?(e.consume(T),z):T===62&&o===4?(e.consume(T),G):T===63&&o===3?(e.consume(T),_):T===93&&o===5?(e.consume(T),F):de(T)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(k9,$,L)(T)):T===null||de(T)?(e.exit("htmlFlowData"),L(T)):(e.consume(T),O)}function L(T){return e.check(A9,A,$)(T)}function A(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),j}function j(T){return T===null||de(T)?L(T):(e.enter("htmlFlowData"),O(T))}function D(T){return T===45?(e.consume(T),_):O(T)}function z(T){return T===47?(e.consume(T),s="",V):O(T)}function V(T){if(T===62){const H=s.toLowerCase();return k0.includes(H)?(e.consume(T),G):O(T)}return pt(T)&&s.length<8?(e.consume(T),s+=String.fromCharCode(T),V):O(T)}function F(T){return T===93?(e.consume(T),_):O(T)}function _(T){return T===62?(e.consume(T),G):T===45&&o===2?(e.consume(T),_):O(T)}function G(T){return T===null||de(T)?(e.exit("htmlFlowData"),$(T)):(e.consume(T),G)}function $(T){return e.exit("htmlFlow"),t(T)}}function N9(e,t,n){const r=this;return o;function o(s){return de(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):n(s)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function P9(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(bs,t,n)}}const O9={name:"htmlText",tokenize:M9};function M9(e,t,n){const r=this;let o,i,s;return a;function a(_){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(_),l}function l(_){return _===33?(e.consume(_),c):_===47?(e.consume(_),S):_===63?(e.consume(_),v):pt(_)?(e.consume(_),P):n(_)}function c(_){return _===45?(e.consume(_),u):_===91?(e.consume(_),i=0,g):pt(_)?(e.consume(_),x):n(_)}function u(_){return _===45?(e.consume(_),p):n(_)}function f(_){return _===null?n(_):_===45?(e.consume(_),d):de(_)?(s=f,z(_)):(e.consume(_),f)}function d(_){return _===45?(e.consume(_),p):f(_)}function p(_){return _===62?D(_):_===45?d(_):f(_)}function g(_){const G="CDATA[";return _===G.charCodeAt(i++)?(e.consume(_),i===G.length?h:g):n(_)}function h(_){return _===null?n(_):_===93?(e.consume(_),y):de(_)?(s=h,z(_)):(e.consume(_),h)}function y(_){return _===93?(e.consume(_),m):h(_)}function m(_){return _===62?D(_):_===93?(e.consume(_),m):h(_)}function x(_){return _===null||_===62?D(_):de(_)?(s=x,z(_)):(e.consume(_),x)}function v(_){return _===null?n(_):_===63?(e.consume(_),C):de(_)?(s=v,z(_)):(e.consume(_),v)}function C(_){return _===62?D(_):v(_)}function S(_){return pt(_)?(e.consume(_),E):n(_)}function E(_){return _===45||at(_)?(e.consume(_),E):I(_)}function I(_){return de(_)?(s=I,z(_)):we(_)?(e.consume(_),I):D(_)}function P(_){return _===45||at(_)?(e.consume(_),P):_===47||_===62||De(_)?M(_):n(_)}function M(_){return _===47?(e.consume(_),D):_===58||_===95||pt(_)?(e.consume(_),w):de(_)?(s=M,z(_)):we(_)?(e.consume(_),M):D(_)}function w(_){return _===45||_===46||_===58||_===95||at(_)?(e.consume(_),w):R(_)}function R(_){return _===61?(e.consume(_),O):de(_)?(s=R,z(_)):we(_)?(e.consume(_),R):M(_)}function O(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),o=_,L):de(_)?(s=O,z(_)):we(_)?(e.consume(_),O):(e.consume(_),A)}function L(_){return _===o?(e.consume(_),o=void 0,j):_===null?n(_):de(_)?(s=L,z(_)):(e.consume(_),L)}function A(_){return _===null||_===34||_===39||_===60||_===61||_===96?n(_):_===47||_===62||De(_)?M(_):(e.consume(_),A)}function j(_){return _===47||_===62||De(_)?M(_):n(_)}function D(_){return _===62?(e.consume(_),e.exit("htmlTextData"),e.exit("htmlText"),t):n(_)}function z(_){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),V}function V(_){return we(_)?_e(e,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):F(_)}function F(_){return e.enter("htmlTextData"),s(_)}}const Pp={name:"labelEnd",resolveAll:L9,resolveTo:B9,tokenize:z9},D9={tokenize:V9},F9={tokenize:G9},j9={tokenize:$9};function L9(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&Nt(e,0,e.length,n),e}function B9(e,t){let n=e.length,r=0,o,i,s,a;for(;n--;)if(o=e[n][1],i){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(i=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(s=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},u={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",c,t]],a=Lt(a,e.slice(i+1,i+r+3)),a=Lt(a,[["enter",u,t]]),a=Lt(a,ql(t.parser.constructs.insideSpan.null,e.slice(i+r+4,s-3),t)),a=Lt(a,[["exit",u,t],e[s-2],e[s-1],["exit",c,t]]),a=Lt(a,e.slice(s+1)),a=Lt(a,[["exit",l,t]]),Nt(e,i,e.length,a),e}function z9(e,t,n){const r=this;let o=r.events.length,i,s;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){i=r.events[o][1];break}return a;function a(d){return i?i._inactive?f(d):(s=r.parser.defined.includes(Qt(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):n(d)}function l(d){return d===40?e.attempt(D9,u,s?u:f)(d):d===91?e.attempt(F9,u,s?c:f)(d):s?u(d):f(d)}function c(d){return e.attempt(j9,u,f)(d)}function u(d){return t(d)}function f(d){return i._balanced=!0,n(d)}}function V9(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),o}function o(f){return De(f)?Ii(e,i)(f):i(f)}function i(f){return f===41?u(f):TC(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return De(f)?Ii(e,l)(f):u(f)}function a(f){return n(f)}function l(f){return f===34||f===39||f===40?PC(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):u(f)}function c(f){return De(f)?Ii(e,u)(f):u(f)}function u(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function G9(e,t,n){const r=this;return o;function o(a){return NC.call(r,e,i,s,"reference","referenceMarker","referenceString")(a)}function i(a){return r.parser.defined.includes(Qt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function s(a){return n(a)}}function $9(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),o}function o(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const H9={name:"labelStartImage",resolveAll:Pp.resolveAll,tokenize:W9};function W9(e,t,n){const r=this;return o;function o(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),i}function i(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):n(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const X9={name:"labelStartLink",resolveAll:Pp.resolveAll,tokenize:Y9};function Y9(e,t,n){const r=this;return o;function o(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const gu={name:"lineEnding",tokenize:U9};function U9(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),_e(e,t,"linePrefix")}}const wa={name:"thematicBreak",tokenize:Z9};function Z9(e,t,n){let r=0,o;return i;function i(c){return e.enter("thematicBreak"),s(c)}function s(c){return o=c,a(c)}function a(c){return c===o?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||de(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===o?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),we(c)?_e(e,a,"whitespace")(c):a(c))}}const mt={continuation:{tokenize:Q9},exit:tz,name:"list",tokenize:K9},J9={partial:!0,tokenize:nz},q9={partial:!0,tokenize:ez};function K9(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,s=0;return a;function a(p){const g=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Vf(p)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(wa,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return Vf(p)&&++s<10?(e.consume(p),l):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(bs,r.interrupt?n:u,e.attempt(J9,d,f))}function u(p){return r.containerState.initialBlankLine=!0,i++,d(p)}function f(p){return we(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):n(p)}function d(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Q9(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(bs,o,i);function o(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,_e(e,t,"listItemIndent",r.containerState.size+1)(a)}function i(a){return r.containerState.furtherBlankLines||!we(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(q9,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,_e(e,e.attempt(mt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ez(e,t,n){const r=this;return _e(e,o,"listItemIndent",r.containerState.size+1);function o(i){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(i):n(i)}}function tz(e){e.exit(this.containerState.type)}function nz(e,t,n){const r=this;return _e(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(i){const s=r.events[r.events.length-1];return!we(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const A0={name:"setextUnderline",resolveTo:rz,tokenize:oz};function rz(e,t){let n=e.length,r,o,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",i?(e.splice(o,0,["enter",s,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function oz(e,t,n){const r=this;let o;return i;function i(c){let u=r.events.length,f;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){f=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),o=c,s(c)):n(c)}function s(c){return e.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===o?(e.consume(c),a):(e.exit("setextHeadingLineSequence"),we(c)?_e(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||de(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const iz={tokenize:sz};function sz(e){const t=this,n=e.attempt(bs,r,e.attempt(this.parser.constructs.flowInitial,o,_e(e,e.attempt(this.parser.constructs.flow,o,e.attempt(f9,o)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const az={resolveAll:MC()},lz=OC("string"),cz=OC("text");function OC(e){return{resolveAll:MC(e==="text"?uz:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],i=n.attempt(o,s,a);return s;function s(u){return c(u)?i(u):a(u)}function a(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),i(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const f=o[u];let d=-1;if(f)for(;++d<f.length;){const p=f[d];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function MC(e){return t;function t(n,r){let o=-1,i;for(;++o<=n.length;)i===void 0?n[o]&&n[o][1].type==="data"&&(i=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==i+2&&(n[i][1].end=n[o-1][1].end,n.splice(i+2,o-i-2),o=i+2),i=void 0);return e?e(n,r):n}}function uz(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let i=o.length,s=-1,a=0,l;for(;i--;){const c=o[i];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(c===-2)l=!0,a++;else if(c!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const c={type:n===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const fz={42:mt,43:mt,45:mt,48:mt,49:mt,50:mt,51:mt,52:mt,53:mt,54:mt,55:mt,56:mt,57:mt,62:IC},dz={91:m9},pz={[-2]:hu,[-1]:hu,32:hu},hz={35:C9,42:wa,45:[A0,wa],60:I9,61:A0,95:wa,96:I0,126:I0},gz={38:AC,92:kC},mz={[-5]:gu,[-4]:gu,[-3]:gu,33:H9,38:AC,42:Gf,60:[XB,O9],91:X9,92:[x9,kC],93:Pp,95:Gf,96:i9},yz={null:[Gf,az]},bz={null:[42,95]},vz={null:[]},xz=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:bz,contentInitial:dz,disable:vz,document:fz,flow:hz,flowInitial:pz,insideSpan:yz,string:gz,text:mz},Symbol.toStringTag,{value:"Module"}));function wz(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let s=[],a=[];const l={attempt:I(S),check:I(E),consume:x,enter:v,exit:C,interrupt:I(E,{interrupt:!0})},c={code:null,containerState:{},defineSkip:h,events:[],now:g,parser:e,previous:null,sliceSerialize:d,sliceStream:p,write:f};let u=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function f(R){return s=Lt(s,R),y(),s[s.length-1]!==null?[]:(P(t,0),c.events=ql(i,c.events,c),c.events)}function d(R,O){return _z(p(R),O)}function p(R){return Cz(s,R)}function g(){const{_bufferIndex:R,_index:O,line:L,column:A,offset:j}=r;return{_bufferIndex:R,_index:O,line:L,column:A,offset:j}}function h(R){o[R.line]=R.column,w()}function y(){let R;for(;r._index<s.length;){const O=s[r._index];if(typeof O=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<O.length;)m(O.charCodeAt(r._bufferIndex));else m(O)}}function m(R){u=u(R)}function x(R){de(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,w()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=R}function v(R,O){const L=O||{};return L.type=R,L.start=g(),c.events.push(["enter",L,c]),a.push(L),L}function C(R){const O=a.pop();return O.end=g(),c.events.push(["exit",O,c]),O}function S(R,O){P(R,O.from)}function E(R,O){O.restore()}function I(R,O){return L;function L(A,j,D){let z,V,F,_;return Array.isArray(A)?$(A):"tokenize"in A?$([A]):G(A);function G(W){return X;function X(U){const Q=U!==null&&W[U],ne=U!==null&&W.null,oe=[...Array.isArray(Q)?Q:Q?[Q]:[],...Array.isArray(ne)?ne:ne?[ne]:[]];return $(oe)(U)}}function $(W){return z=W,V=0,W.length===0?D:T(W[V])}function T(W){return X;function X(U){return _=M(),F=W,W.partial||(c.currentConstruct=W),W.name&&c.parser.constructs.disable.null.includes(W.name)?J():W.tokenize.call(O?Object.assign(Object.create(c),O):c,l,H,J)(U)}}function H(W){return R(F,_),j}function J(W){return _.restore(),++V<z.length?T(z[V]):D}}}function P(R,O){R.resolveAll&&!i.includes(R)&&i.push(R),R.resolve&&Nt(c.events,O,c.events.length-O,R.resolve(c.events.slice(O),c)),R.resolveTo&&(c.events=R.resolveTo(c.events,c))}function M(){const R=g(),O=c.previous,L=c.currentConstruct,A=c.events.length,j=Array.from(a);return{from:A,restore:D};function D(){r=R,c.previous=O,c.currentConstruct=L,c.events.length=A,a=j,w()}}function w(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function Cz(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let s;if(n===o)s=[e[n].slice(r,i)];else{if(s=e.slice(n,o),r>-1){const a=s[0];typeof a=="string"?s[0]=a.slice(r):s.shift()}i>0&&s.push(e[o].slice(0,i))}return s}function _z(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
698
698
  `;break}case-3:{s=`\r
699
699
  `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&o)continue;s=" ";break}default:s=String.fromCharCode(i)}o=i===-2,r.push(s)}return r.join("")}function Sz(e){const r={constructs:SC([xz,...(e||{}).extensions||[]]),content:o(BB),defined:[],document:o(VB),flow:o(iz),lazy:{},string:o(lz),text:o(cz)};return r;function o(i){return s;function s(a){return wz(r,i,a)}}}function Ez(e){for(;!RC(e););return e}const R0=/[\0\t\n\r]/g;function Iz(){let e=1,t="",n=!0,r;return o;function o(i,s,a){const l=[];let c,u,f,d,p;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),f=0,t="",n&&(i.charCodeAt(0)===65279&&f++,n=void 0);f<i.length;){if(R0.lastIndex=f,c=R0.exec(i),d=c&&c.index!==void 0?c.index:i.length,p=i.charCodeAt(d),!c){t=i.slice(f);break}if(p===10&&f===d&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<d&&(l.push(i.slice(f,d)),e+=d-f),p){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}f=d+1}return a&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const kz=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Az(e){return e.replace(kz,Rz)}function Rz(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),i=o===120||o===88;return EC(n.slice(i?2:1),i?16:10)}return Np(n)||e}const DC={}.hasOwnProperty;function Tz(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Nz(n)(Ez(Sz(n).document().write(Iz()(e,t,!0))))}function Nz(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(_t),autolinkProtocol:M,autolinkEmail:M,atxHeading:i(Se),blockQuote:i(ne),characterEscape:M,characterReference:M,codeFenced:i(oe),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(oe,s),codeText:i(Z,s),codeTextData:M,data:M,codeFlowValue:M,definition:i(ue),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(fe),hardBreakEscape:i(Xe),hardBreakTrailing:i(Xe),htmlFlow:i(rt,s),htmlFlowData:M,htmlText:i(rt,s),htmlTextData:M,image:i(Ct),label:s,link:i(_t),listItem:i(Cr),listItemValue:d,listOrdered:i(Ht,f),listUnordered:i(Ht),paragraph:i(ge),reference:T,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(Se),strong:i(_r),thematicBreak:i(Sr)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:Q,autolinkProtocol:U,blockQuote:l(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:J,characterReferenceMarkerNumeric:J,characterReferenceValue:W,characterReference:X,codeFenced:l(y),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:w,codeIndented:l(m),codeText:l(j),codeTextData:w,data:w,definition:l(),definitionDestinationString:C,definitionLabelString:x,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(L),htmlFlowData:w,htmlText:l(A),htmlTextData:w,image:l(z),label:F,labelText:V,lineEnding:R,link:l(D),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:H,resourceDestinationString:_,resourceTitleString:G,resource:$,setextHeading:l(P),setextHeadingLineSequence:I,setextHeadingText:E,strong:l(),thematicBreak:l()}};FC(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(K){let re={type:"root",children:[]};const me={stack:[re],tokenStack:[],config:t,enter:a,exit:c,buffer:s,resume:u,data:n},ve=[];let Te=-1;for(;++Te<K.length;)if(K[Te][1].type==="listOrdered"||K[Te][1].type==="listUnordered")if(K[Te][0]==="enter")ve.push(Te);else{const St=ve.pop();Te=o(K,St,Te)}for(Te=-1;++Te<K.length;){const St=t[K[Te][0]];DC.call(St,K[Te][1].type)&&St[K[Te][1].type].call(Object.assign({sliceSerialize:K[Te][2].sliceSerialize},me),K[Te][1])}if(me.tokenStack.length>0){const St=me.tokenStack[me.tokenStack.length-1];(St[1]||T0).call(me,void 0,St[0])}for(re.position={start:tr(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:tr(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Te=-1;++Te<t.transforms.length;)re=t.transforms[Te](re)||re;return re}function o(K,re,me){let ve=re-1,Te=-1,St=!1,An,Wt,Er,Ir;for(;++ve<=me;){const ft=K[ve];switch(ft[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ft[0]==="enter"?Te++:Te--,Ir=void 0;break}case"lineEndingBlank":{ft[0]==="enter"&&(An&&!Ir&&!Te&&!Er&&(Er=ve),Ir=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ir=void 0}if(!Te&&ft[0]==="enter"&&ft[1].type==="listItemPrefix"||Te===-1&&ft[0]==="exit"&&(ft[1].type==="listUnordered"||ft[1].type==="listOrdered")){if(An){let qn=ve;for(Wt=void 0;qn--;){const Xt=K[qn];if(Xt[1].type==="lineEnding"||Xt[1].type==="lineEndingBlank"){if(Xt[0]==="exit")continue;Wt&&(K[Wt][1].type="lineEndingBlank",St=!0),Xt[1].type="lineEnding",Wt=qn}else if(!(Xt[1].type==="linePrefix"||Xt[1].type==="blockQuotePrefix"||Xt[1].type==="blockQuotePrefixWhitespace"||Xt[1].type==="blockQuoteMarker"||Xt[1].type==="listItemIndent"))break}Er&&(!Wt||Er<Wt)&&(An._spread=!0),An.end=Object.assign({},Wt?K[Wt][1].start:ft[1].end),K.splice(Wt||ve,0,["exit",An,ft[2]]),ve++,me++}if(ft[1].type==="listItemPrefix"){const qn={type:"listItem",_spread:!1,start:Object.assign({},ft[1].start),end:void 0};An=qn,K.splice(ve,0,["enter",qn,ft[2]]),ve++,me++,Er=void 0,Ir=!0}}}return K[re][1]._spread=St,me}function i(K,re){return me;function me(ve){a.call(this,K(ve),ve),re&&re.call(this,ve)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(K,re,me){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([re,me||void 0]),K.position={start:tr(re.start),end:void 0}}function l(K){return re;function re(me){K&&K.call(this,me),c.call(this,me)}}function c(K,re){const me=this.stack.pop(),ve=this.tokenStack.pop();if(ve)ve[0].type!==K.type&&(re?re.call(this,K,ve[0]):(ve[1]||T0).call(this,K,ve[0]));else throw new Error("Cannot close `"+K.type+"` ("+Ei({start:K.start,end:K.end})+"): it’s not open");me.position.end=tr(K.end)}function u(){return Tp(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(K){if(this.data.expectingFirstListItemValue){const re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function p(){const K=this.resume(),re=this.stack[this.stack.length-1];re.lang=K}function g(){const K=this.resume(),re=this.stack[this.stack.length-1];re.meta=K}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const K=this.resume(),re=this.stack[this.stack.length-1];re.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const K=this.resume(),re=this.stack[this.stack.length-1];re.value=K.replace(/(\r?\n|\r)$/g,"")}function x(K){const re=this.resume(),me=this.stack[this.stack.length-1];me.label=re,me.identifier=Qt(this.sliceSerialize(K)).toLowerCase()}function v(){const K=this.resume(),re=this.stack[this.stack.length-1];re.title=K}function C(){const K=this.resume(),re=this.stack[this.stack.length-1];re.url=K}function S(K){const re=this.stack[this.stack.length-1];if(!re.depth){const me=this.sliceSerialize(K).length;re.depth=me}}function E(){this.data.setextHeadingSlurpLineEnding=!0}function I(K){const re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function M(K){const me=this.stack[this.stack.length-1].children;let ve=me[me.length-1];(!ve||ve.type!=="text")&&(ve=ei(),ve.position={start:tr(K.start),end:void 0},me.push(ve)),this.stack.push(ve)}function w(K){const re=this.stack.pop();re.value+=this.sliceSerialize(K),re.position.end=tr(K.end)}function R(K){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const me=re.children[re.children.length-1];me.position.end=tr(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(re.type)&&(M.call(this,K),w.call(this,K))}function O(){this.data.atHardBreak=!0}function L(){const K=this.resume(),re=this.stack[this.stack.length-1];re.value=K}function A(){const K=this.resume(),re=this.stack[this.stack.length-1];re.value=K}function j(){const K=this.resume(),re=this.stack[this.stack.length-1];re.value=K}function D(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=re,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function z(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=re,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function V(K){const re=this.sliceSerialize(K),me=this.stack[this.stack.length-2];me.label=Az(re),me.identifier=Qt(re).toLowerCase()}function F(){const K=this.stack[this.stack.length-1],re=this.resume(),me=this.stack[this.stack.length-1];if(this.data.inReference=!0,me.type==="link"){const ve=K.children;me.children=ve}else me.alt=re}function _(){const K=this.resume(),re=this.stack[this.stack.length-1];re.url=K}function G(){const K=this.resume(),re=this.stack[this.stack.length-1];re.title=K}function $(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function H(K){const re=this.resume(),me=this.stack[this.stack.length-1];me.label=re,me.identifier=Qt(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function J(K){this.data.characterReferenceType=K.type}function W(K){const re=this.sliceSerialize(K),me=this.data.characterReferenceType;let ve;me?(ve=EC(re,me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ve=Np(re);const Te=this.stack[this.stack.length-1];Te.value+=ve}function X(K){const re=this.stack.pop();re.position.end=tr(K.end)}function U(K){w.call(this,K);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(K)}function Q(K){w.call(this,K);const re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(K)}function ne(){return{type:"blockquote",children:[]}}function oe(){return{type:"code",lang:null,meta:null,value:""}}function Z(){return{type:"inlineCode",value:""}}function ue(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function fe(){return{type:"emphasis",children:[]}}function Se(){return{type:"heading",depth:0,children:[]}}function Xe(){return{type:"break"}}function rt(){return{type:"html",value:""}}function Ct(){return{type:"image",title:null,url:"",alt:null}}function _t(){return{type:"link",title:null,url:"",children:[]}}function Ht(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function Cr(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function ge(){return{type:"paragraph",children:[]}}function _r(){return{type:"strong",children:[]}}function ei(){return{type:"text",value:""}}function Sr(){return{type:"thematicBreak"}}}function tr(e){return{line:e.line,column:e.column,offset:e.offset}}function FC(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?FC(e,r):Pz(e,r)}}function Pz(e,t){let n;for(n in t)if(DC.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function T0(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ei({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ei({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ei({start:t.start,end:t.end})+") is still open")}function Oz(e){const t=this;t.parser=n;function n(r){return Tz(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Mz(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Dz(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
@@ -723,7 +723,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
723
723
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:s,tableCell:l,tableRow:a}};function s(p,g,h,y){return c(u(p,h,y),p.align)}function a(p,g,h,y){const m=f(p,h,y),x=c([m]);return x.slice(0,x.indexOf(`
724
724
  `))}function l(p,g,h,y){const m=h.enter("tableCell"),x=h.enter("phrasing"),v=h.containerPhrasing(p,{...y,before:i,after:i});return x(),m(),v}function c(p,g){return BG(p,{align:g,alignDelimiters:r,padding:n,stringLength:o})}function u(p,g,h){const y=p.children;let m=-1;const x=[],v=g.enter("table");for(;++m<y.length;)x[m]=f(y[m],g,h);return v(),x}function f(p,g,h){const y=p.children;let m=-1;const x=[],v=g.enter("tableRow");for(;++m<y.length;)x[m]=l(y[m],p,g,h);return v(),x}function d(p,g,h){let y=i_.inlineCode(p,g,h);return h.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function I6(){return{exit:{taskListCheckValueChecked:q0,taskListCheckValueUnchecked:q0,paragraph:A6}}}function k6(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:R6}}}function q0(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function A6(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const o=t.children;let i=-1,s;for(;++i<o.length;){const a=o[i];if(a.type==="paragraph"){s=a;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function R6(e,t,n,r){const o=e.children[0],i=typeof e.checked=="boolean"&&o&&o.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);i&&a.move(s);let l=i_.listItem(e,t,n,{...r,...a.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+s}}function T6(){return[lG(),RG(),OG(),v6(),I6()]}function N6(e){return{extensions:[cG(),TG(e),MG(),E6(e),k6()]}}const P6={tokenize:L6,partial:!0},s_={tokenize:B6,partial:!0},a_={tokenize:z6,partial:!0},l_={tokenize:V6,partial:!0},O6={tokenize:G6,partial:!0},c_={name:"wwwAutolink",tokenize:F6,previous:f_},u_={name:"protocolAutolink",tokenize:j6,previous:d_},Un={name:"emailAutolink",tokenize:D6,previous:p_},Sn={};function M6(){return{text:Sn}}let kr=48;for(;kr<123;)Sn[kr]=Un,kr++,kr===58?kr=65:kr===91&&(kr=97);Sn[43]=Un;Sn[45]=Un;Sn[46]=Un;Sn[95]=Un;Sn[72]=[Un,u_];Sn[104]=[Un,u_];Sn[87]=[Un,c_];Sn[119]=[Un,c_];function D6(e,t,n){const r=this;let o,i;return s;function s(f){return!Yf(f)||!p_.call(r,r.previous)||Vp(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return Yf(f)?(e.consume(f),a):f===64?(e.consume(f),l):n(f)}function l(f){return f===46?e.check(O6,u,c)(f):f===45||f===95||at(f)?(i=!0,e.consume(f),l):u(f)}function c(f){return e.consume(f),o=!0,l}function u(f){return i&&o&&pt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function F6(e,t,n){const r=this;return o;function o(s){return s!==87&&s!==119||!f_.call(r,r.previous)||Vp(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(P6,e.attempt(s_,e.attempt(a_,i),n),n)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function j6(e,t,n){const r=this;let o="",i=!1;return s;function s(f){return(f===72||f===104)&&d_.call(r,r.previous)&&!Vp(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(f),e.consume(f),a):n(f)}function a(f){if(pt(f)&&o.length<5)return o+=String.fromCodePoint(f),e.consume(f),a;if(f===58){const d=o.toLowerCase();if(d==="http"||d==="https")return e.consume(f),l}return n(f)}function l(f){return f===47?(e.consume(f),i?c:(i=!0,l)):n(f)}function c(f){return f===null||qa(f)||De(f)||Yr(f)||Jl(f)?n(f):e.attempt(s_,e.attempt(a_,u),n)(f)}function u(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function L6(e,t,n){let r=0;return o;function o(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),o):s===46&&r===3?(e.consume(s),i):n(s)}function i(s){return s===null?n(s):t(s)}}function B6(e,t,n){let r,o,i;return s;function s(c){return c===46||c===95?e.check(l_,l,a)(c):c===null||De(c)||Yr(c)||c!==45&&Jl(c)?l(c):(i=!0,e.consume(c),s)}function a(c){return c===95?r=!0:(o=r,r=void 0),e.consume(c),s}function l(c){return o||r||!i?n(c):t(c)}}function z6(e,t){let n=0,r=0;return o;function o(s){return s===40?(n++,e.consume(s),o):s===41&&r<n?i(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(l_,t,i)(s):s===null||De(s)||Yr(s)?t(s):(e.consume(s),o)}function i(s){return s===41&&r++,e.consume(s),o}}function V6(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),i):a===93?(e.consume(a),o):a===60||a===null||De(a)||Yr(a)?t(a):n(a)}function o(a){return a===null||a===40||a===91||De(a)||Yr(a)?t(a):r(a)}function i(a){return pt(a)?s(a):n(a)}function s(a){return a===59?(e.consume(a),r):pt(a)?(e.consume(a),s):n(a)}}function G6(e,t,n){return r;function r(i){return e.consume(i),o}function o(i){return at(i)?n(i):t(i)}}function f_(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||De(e)}function d_(e){return!pt(e)}function p_(e){return!(e===47||Yf(e))}function Yf(e){return e===43||e===45||e===46||e===95||at(e)}function Vp(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const $6={tokenize:q6,partial:!0};function H6(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:U6,continuation:{tokenize:Z6},exit:J6}},text:{91:{name:"gfmFootnoteCall",tokenize:Y6},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:W6,resolveTo:X6}}}}function W6(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;o--;){const l=r.events[o][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!s||!s._balanced)return n(l);const c=Qt(r.sliceSerialize({start:s.end,end:r.now()}));return c.codePointAt(0)!==94||!i.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function X6(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function Y6(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,s;return a;function a(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(f){if(i>999||f===93&&!s||f===null||f===91||De(f))return n(f);if(f===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return o.includes(Qt(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return De(f)||(s=!0),i++,e.consume(f),f===92?u:c}function u(f){return f===91||f===92||f===93?(e.consume(f),i++,c):c(f)}}function U6(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,s=0,a;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(g)}function u(g){if(s>999||g===93&&!a||g===null||g===91||De(g))return n(g);if(g===93){e.exit("chunkString");const h=e.exit("gfmFootnoteDefinitionLabelString");return i=Qt(r.sliceSerialize(h)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return De(g)||(a=!0),s++,e.consume(g),g===92?f:u}function f(g){return g===91||g===92||g===93?(e.consume(g),s++,u):u(g)}function d(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),o.includes(i)||o.push(i),_e(e,p,"gfmFootnoteDefinitionWhitespace")):n(g)}function p(g){return t(g)}}function Z6(e,t,n){return e.check(bs,t,e.attempt($6,t,n))}function J6(e){e.exit("gfmFootnoteDefinition")}function q6(e,t,n){const r=this;return _e(e,o,"gfmFootnoteDefinitionIndent",5);function o(i){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(i):n(i)}}function K6(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:o};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function o(s,a){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let c=l;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[l][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[l][1].end)},f={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[l][1].start)},d=[["enter",u,a],["enter",s[c][1],a],["exit",s[c][1],a],["enter",f,a]],p=a.parser.constructs.insideSpan.null;p&&Nt(d,d.length,0,ql(p,s.slice(c+1,l),a)),Nt(d,d.length,0,[["exit",f,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",u,a]]),Nt(s,c-1,l-c+3,d),l=c+d.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function i(s,a,l){const c=this.previous,u=this.events;let f=0;return d;function d(g){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(g):(s.enter("strikethroughSequenceTemporary"),p(g))}function p(g){const h=Lo(c);if(g===126)return f>1?l(g):(s.consume(g),f++,p);if(f<2&&!n)return l(g);const y=s.exit("strikethroughSequenceTemporary"),m=Lo(g);return y._open=!m||m===2&&!!h,y._close=!h||h===2&&!!m,a(g)}}}class Q6{constructor(){this.map=[]}add(t,n,r){e$(this,t,n,r)}consume(t){if(this.map.sort(function(i,s){return i[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let o=r.pop();for(;o;){for(const i of o)t.push(i);o=r.pop()}this.map.length=0}}function e$(e,t,n,r){let o=0;if(!(n===0&&r.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=n,e.map[o][2].push(...r);return}o+=1}e.map.push([t,n,r])}}function t$(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if(o[0]==="enter")o[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function n$(){return{flow:{null:{name:"table",tokenize:r$,resolveAll:o$}}}}function r$(e,t,n){const r=this;let o=0,i=0,s;return a;function a(w){let R=r.events.length-1;for(;R>-1;){const A=r.events[R][1].type;if(A==="lineEnding"||A==="linePrefix")R--;else break}const O=R>-1?r.events[R][1].type:null,L=O==="tableHead"||O==="tableRow"?E:l;return L===E&&r.parser.lazy[r.now().line]?n(w):L(w)}function l(w){return e.enter("tableHead"),e.enter("tableRow"),c(w)}function c(w){return w===124||(s=!0,i+=1),u(w)}function u(w){return w===null?n(w):de(w)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),p):n(w):we(w)?_e(e,u,"whitespace")(w):(i+=1,s&&(s=!1,o+=1),w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),s=!0,u):(e.enter("data"),f(w)))}function f(w){return w===null||w===124||De(w)?(e.exit("data"),u(w)):(e.consume(w),w===92?d:f)}function d(w){return w===92||w===124?(e.consume(w),f):f(w)}function p(w){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(w):(e.enter("tableDelimiterRow"),s=!1,we(w)?_e(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):g(w))}function g(w){return w===45||w===58?y(w):w===124?(s=!0,e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),h):S(w)}function h(w){return we(w)?_e(e,y,"whitespace")(w):y(w)}function y(w){return w===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),m):w===45?(i+=1,m(w)):w===null||de(w)?C(w):S(w)}function m(w){return w===45?(e.enter("tableDelimiterFiller"),x(w)):S(w)}function x(w){return w===45?(e.consume(w),x):w===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(w))}function v(w){return we(w)?_e(e,C,"whitespace")(w):C(w)}function C(w){return w===124?g(w):w===null||de(w)?!s||o!==i?S(w):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(w)):S(w)}function S(w){return n(w)}function E(w){return e.enter("tableRow"),I(w)}function I(w){return w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),I):w===null||de(w)?(e.exit("tableRow"),t(w)):we(w)?_e(e,I,"whitespace")(w):(e.enter("data"),P(w))}function P(w){return w===null||w===124||De(w)?(e.exit("data"),I(w)):(e.consume(w),w===92?M:P)}function M(w){return w===92||w===124?(e.consume(w),P):P(w)}}function o$(e,t){let n=-1,r=!0,o=0,i=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,c,u,f;const d=new Q6;for(;++n<e.length;){const p=e[n],g=p[1];p[0]==="enter"?g.type==="tableHead"?(a=!1,l!==0&&(K0(d,t,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(n,0,[["enter",c,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,f=void 0,i=[0,0,0,0],s=[0,n+1,0,0],a&&(a=!1,u={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(n,0,[["enter",u,t]])),o=g.type==="tableDelimiterRow"?2:u?3:1):o&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],f=qs(d,t,i,o,void 0,f),i=[0,0,0,0]),s[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(s[0]=s[1],f=qs(d,t,i,o,void 0,f)),i=s,s=[i[1],n,0,0])):g.type==="tableHead"?(a=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,i[1]!==0?(s[0]=s[1],f=qs(d,t,i,o,n,f)):s[1]!==0&&(f=qs(d,t,s,o,n,f)),o=0):o&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&K0(d,t,l,c,u),d.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=t$(t.events,n))}return e}function qs(e,t,n,r,o,i){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(i.end=Object.assign({},po(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const l=po(t.events,n[1]);if(i={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const c=po(t.events,n[2]),u=po(t.events,n[3]),f={type:a,start:Object.assign({},c),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const d=t.events[n[2]],p=t.events[n[3]];if(d[1].end=Object.assign({},p[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,h=n[3]-n[2]-1;e.add(g,h,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return o!==void 0&&(i.end=Object.assign({},po(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function K0(e,t,n,r,o){const i=[],s=po(t.events,n);o&&(o.end=Object.assign({},s),i.push(["exit",o,t])),r.end=Object.assign({},s),i.push(["exit",r,t]),e.add(n+1,0,i)}function po(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const i$={name:"tasklistCheck",tokenize:a$};function s$(){return{text:{91:i$}}}function a$(e,t,n){const r=this;return o;function o(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return De(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(l)}function a(l){return de(l)?t(l):we(l)?e.check({tokenize:l$},t,n)(l):n(l)}}function l$(e,t,n){return _e(e,r,"whitespace");function r(o){return o===null?n(o):t(o)}}function c$(e){return SC([M6(),H6(),K6(e),n$(),s$()])}const u$={};function f$(e){const t=this,n=e||u$,r=t.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(c$(n)),i.push(T6()),s.push(N6(n))}const h_=({item:e})=>{const t=N.useContext(xe),n=()=>{var o;(o=t.worker)==null||o.add_node(e.node_id)},r=o=>{o.detail===2&&n()};return b.jsx("div",{className:"libnodeentry",onClick:r,title:e.description,children:e.node_name||e.node_id})},g_=(e,t)=>{var o,i;const n=((o=e.nodes)==null?void 0:o.some(s=>s.node_id.toLowerCase().includes(t.toLowerCase())))??!1,r=((i=e.subshelves)==null?void 0:i.some(s=>g_(s,t)))??!1;return n||r},Gp=({item:e,filter:t,parentkey:n})=>{var l;const[r,o]=N.useState(!1),i=()=>o(!r),s=(l=e.nodes)==null?void 0:l.filter(c=>c.node_id.toLowerCase().includes(t.toLowerCase())),a=r||t.length>0;return g_(e,t)?b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:i,style:{cursor:"pointer"},title:e.description,children:[b.jsx("div",{className:"shelftitle_text",children:e.name}),b.jsx("div",{className:"expandicon "+(a?"open":"close"),children:b.jsx(ds,{})})]}),b.jsx("div",{className:"libnodecontainer "+(a?"open":"close"),children:b.jsxs("div",{className:"libnodecontainer_inner",children:[s&&b.jsx(b.Fragment,{children:s.map(c=>b.jsx(h_,{item:c},c.node_id))}),e.subshelves&&b.jsx(b.Fragment,{children:e.subshelves.map(c=>b.jsx(Gp,{item:c,filter:t,parentkey:n+c.name},n+c.name))})]})}),b.jsx("hr",{})]}):b.jsx(b.Fragment,{})},d$=({filter:e,setFilter:t})=>b.jsxs("div",{className:"libfilter",children:[b.jsx(nF,{fontSize:"inherit"}),b.jsx("input",{type:"text",placeholder:"Filter",value:e,onChange:n=>{t(n.target.value)}}),e&&b.jsx(H1,{fontSize:"inherit",onClick:()=>{t("")}})]}),Q0=[">=","==","<=","<",">"],tc=">=",$p=({availableModule:e})=>b.jsxs("div",{className:"module-links",children:[e.homepage&&b.jsx(b.Fragment,{children:b.jsx("a",{href:e.homepage,target:"_blank",rel:"noopener noreferrer",children:"Homepage"})}),e.source&&e.homepage&&" | ",e.source&&b.jsx(b.Fragment,{children:b.jsx("a",{href:e.source,target:"_blank",rel:"noopener noreferrer",children:"Source"})})]}),Hp=({availableModule:e})=>{const[t,n]=N.useState(!1),r=()=>n(!t),o=150,i=e.description.length>o?e.description.substring(0,o)+"...":e.description;return b.jsxs("div",{className:"module-description",children:[b.jsx(KV,{remarkPlugins:[f$],children:t?e.description.replace(/\\n/g,`
725
725
  `):i.replace(/\\n/g,`
726
- `)}),e.description.length>o&&b.jsx("button",{onClick:r,className:"toggle-description",children:t?"Show less":"Show more"})]})},Wp=({availableModule:e,on_change:t})=>{const[n,r]=N.useState(e.version||"latest"),[o,i]=N.useState(tc),s=l=>{const c=l.target.value;r(c),t(c!=="latest"?o+c:c)},a=l=>{l.target.value!==o&&Q0.includes(l.target.value)&&(i(l.target.value),n!=="latest"&&t(l.target.value+n))};return e.releases&&!e.releases.includes(n)&&e.releases.unshift(n),b.jsxs(b.Fragment,{children:[b.jsx("select",{value:o,onChange:a,children:Q0.map(l=>b.jsx("option",{value:l,children:l},l))}),b.jsx("select",{onChange:s,value:n,children:e.releases&&e.releases.map(l=>b.jsx("option",{value:l,children:l},l))})]})},p$=({availableModule:e,on_remove:t,on_update:n})=>{const[r,o]=N.useState(tc+e.version||"latest");return b.jsxs("div",{className:"addable-module",children:[b.jsx("div",{className:"module-name",children:e.name+(e.version?` (${e.version})`:"")}),b.jsx($p,{availableModule:e}),b.jsx(Hp,{availableModule:e}),b.jsxs("div",{children:[b.jsx(Wp,{availableModule:e,on_change:o}),b.jsx("button",{className:"update-button",disabled:r===e.version,onClick:()=>{n(e,r)},children:"Update"}),b.jsx("button",{className:"remove-button",onClick:()=>{t(e)},children:"Remove"})]})]})},h$=({availableModule:e,on_add:t})=>{const[n,r]=N.useState(tc+e.version||"latest");return b.jsxs("div",{className:"addable-module",children:[b.jsx("div",{className:"module-name",children:e.name+(e.version?` (${e.version})`:"")}),b.jsx($p,{availableModule:e}),b.jsx(Hp,{availableModule:e}),b.jsxs("div",{children:[b.jsx(Wp,{availableModule:e,on_change:r}),b.jsx("button",{className:"add-button",onClick:()=>{t(e,n)},children:"Add"})]})]})},g$=({availableModule:e,on_add:t})=>{const[n,r]=N.useState(tc+e.version||"latest");return b.jsxs("div",{className:"addable-module",children:[b.jsx("div",{className:"module-name",children:e.name}),b.jsx($p,{availableModule:e}),b.jsx(Hp,{availableModule:e}),b.jsxs("div",{children:[b.jsx(Wp,{availableModule:e,on_change:r}),b.jsx("button",{className:"add-button",onClick:()=>{t(e,n)},children:"Add"})]})]})},m$=({children:e})=>{const[t,n]=N.useState(""),r=N.useContext(xe),[o,i]=N.useState(!0),[s,a]=N.useState(!0),[l,c]=N.useState(!0),[u,f]=N.useState({installed:[],available:[],active:[]}),[d,p]=N.useState(!1),g=I=>{I&&(r.worker===void 0||!r.worker.is_open||r.worker.get_available_modules().then(P=>{f(P)}))};if(!r.worker)return b.jsx(b.Fragment,{});const h=(I,P)=>{p(!1),r.worker!==void 0&&r.worker.add_lib(I.name,P)},y=(I,P)=>{p(!1),r.worker!==void 0&&r.worker.add_lib(I.name,P)},m=I=>{p(!1),r.worker!==void 0&&r.worker.remove_lib(I.name)},x=(I,P)=>{p(!1),r.worker!==void 0&&r.worker.add_lib(I.name,P)},v=I=>I.filter(P=>P.name.toLowerCase().includes(t.toLowerCase())||P.description.toLowerCase().includes(t.toLowerCase())),C=v(u.available),S=v(u.installed),E=v(u.active);return b.jsxs(Xo,{title:"Manage Library",trigger:e,description:"Add or remove libraries to the current worker.",onOpenChange:g,open:d,setOpen:p,children:[b.jsx("input",{className:"filter-input styledinput",type:"text",placeholder:"Filter modules...",value:t,onChange:I=>n(I.target.value)}),b.jsxs("div",{className:"packagelist",style:{maxHeight:"70%",overflow:"auto"},children:[S.length>0&&b.jsx("h3",{onClick:()=>{c(!l)},children:"Installed"}),l&&S.map(I=>b.jsx(h$,{availableModule:I,on_add:h},I.name+I.source)),C.length>0&&b.jsx("h3",{onClick:()=>{a(!s)},children:"Available"}),s&&C.map(I=>b.jsx(g$,{availableModule:I,on_add:y},I.name+I.source)),E.length>0&&b.jsx("h3",{onClick:()=>{i(!o)},children:"Active"}),o&&E.map(I=>b.jsx(p$,{availableModule:I,on_remove:m,on_update:x},I.name+I.source))]})]})},y$=({ins:e})=>{const[t,n]=N.useState(e.name),r=N.useContext(xe),o=()=>{r.worker&&r.worker.remove_external_worker(e.uuid,e.nodeclassid)},i=()=>{r.worker&&(r.worker.update_external_worker(e.uuid,e.nodeclassid,{name:t}),e.name=t)};return b.jsx(b.Fragment,{children:b.jsx(Xo,{title:e.name,description:"Settings for"+e.name,trigger:b.jsx("div",{children:"Settings"}),buttons:[{text:"Save",onClick:i,close:!0},{text:"Delete",onClick:o,close:!0}],children:b.jsx("div",{children:b.jsxs("div",{children:[b.jsx("label",{htmlFor:"name",children:"Name: "}),b.jsx("input",{type:"text",name:"name",value:t,onChange:s=>n(s.target.value),className:"styledinput"})]})})})})},b$=({ins:e,lib:t,filter:n="",parentkey:r})=>{var l;const[o,i]=N.useState(!1),s=()=>i(!o),a=(l=t==null?void 0:t.nodes)==null?void 0:l.filter(c=>c.node_id.toLowerCase().includes(n.toLowerCase()));return b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:s,style:{cursor:"pointer"},title:e.name,children:[b.jsx("div",{className:"shelftitle_text",children:e.name}),b.jsx("div",{className:"expandicon "+(o?"open":"close"),children:b.jsx(ds,{})})]}),b.jsx("div",{className:"libnodecontainer "+(o?"open":"close"),children:b.jsx("div",{className:"libnodecontainer_inner",children:o&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"libnodeentry",title:e.uuid,children:b.jsx(y$,{ins:e})}),t&&b.jsxs(b.Fragment,{children:[a&&b.jsx(b.Fragment,{children:a.map(c=>b.jsx(h_,{item:c},r+c.node_id))}),t.subshelves.map(c=>b.jsx(Gp,{item:c,filter:n,parentkey:r+c.name},r+c.name))]})]})})})]})},v$=({item:e,mod:t,lib:n})=>{const r=N.useContext(xe),[o,i]=N.useState(!1),s=()=>i(!o),a=()=>{var u;(u=r.worker)==null||u.add_external_worker({module:t,cls_module:e.module,cls_name:e.class_name})},l=u=>{u.detail===2&&a()},c=e.name||e.module+"."+e.class_name;return b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:s,style:{cursor:"pointer"},title:c,children:[b.jsx("div",{className:"shelftitle_text",children:c}),b.jsx("div",{className:"expandicon "+(o?"open":"close"),children:b.jsx(ds,{})})]}),b.jsx("div",{className:"libnodecontainer "+(o?"open":"close"),children:b.jsx("div",{className:"libnodecontainer_inner",children:o&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"libnodeentry",onClick:l,title:e.name,children:"New Instance"}),e.instances.map(u=>b.jsx(b$,{ins:u,lib:n==null?void 0:n.subshelves.find(f=>f.name===u.uuid),parentkey:u.uuid},u.uuid))]})})})]})},x$=({externalworkermod:e,lib:t})=>{const[n,r]=N.useState(!1),o=()=>r(!n),i=n;return b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:o,style:{cursor:"pointer"},title:e.module,children:[b.jsx("div",{className:"shelftitle_text",children:e.module}),b.jsx("div",{className:"expandicon "+(i?"open":"close"),children:b.jsx(ds,{})})]}),b.jsx("div",{className:"libnodecontainer "+(i?"open":"close"),children:b.jsx("div",{className:"libnodecontainer_inner",children:e.worker_classes.map(s=>b.jsx(v$,{item:s,mod:e.module,lib:t},s.module+s.class_name))})}),b.jsx("hr",{})]})},w$=()=>{var u,f;const e=N.useContext(xe),t=e.lib.libstate(),n=k.useContext(xe),r=n.local_settings(d=>d.view_settings.expand_lib),o=n.local_settings(d=>d.update_view_settings),i=d=>{o({expand_lib:d})},s=DL("m"),[a,l]=N.useState(""),c=((u=e.worker)==null?void 0:u.state(d=>d.is_open))??!1;return b.jsx(lC,{maxSize:s?"100%":"300px",direction:s?"down":"right",containerClassName:"pos-left pos-top bg1 h-12",onExpandChange:i,expanded:r===void 0?!0:r,children:b.jsxs("div",{className:"libcontainer",children:[b.jsxs("div",{className:"library",children:[b.jsx("div",{className:"libtitle",children:"Lib"}),b.jsx("hr",{className:"hr_prominent"}),b.jsx(d$,{filter:a,setFilter:l}),b.jsx("div",{className:"vscrollcontainer",children:t.lib.shelves.filter(d=>d.name!=="_external_worker").map(d=>b.jsx(Gp,{item:d,filter:a,parentkey:d.name},d.name))}),b.jsx("hr",{}),b.jsx("div",{className:"libtitle",children:"External Worker"}),b.jsx("hr",{className:"hr_prominent"}),b.jsx("div",{className:"vscrollcontainer",children:(f=t.external_worker)==null?void 0:f.map(d=>b.jsx(x$,{externalworkermod:d,lib:t.lib.shelves.find(p=>p.name==="_external_worker")},d.module))}),b.jsx("hr",{})]}),b.jsx("div",{style:{paddingTop:"0.5rem"}}),c&&b.jsx("div",{className:"addlib",children:b.jsx(m$,{children:b.jsx("button",{children:"Manage Libraries"})})})]})})};function C$(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,o]of e)if(!Object.is(o,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}const{useRef:_$}=N;function S$(e){const t=_$();return n=>{const r=e(n);return C$(t.current,r)?t.current:t.current=r}}var Xp="Popover",[m_,hq]=br(Xp,[Yl]),xs=Yl(),[E$,xr]=m_(Xp),y_=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,a=xs(t),l=k.useRef(null),[c,u]=k.useState(!1),[f=!1,d]=Ho({prop:r,defaultProp:o,onChange:i});return b.jsx(hp,{...a,children:b.jsx(E$,{scope:t,contentId:Fn(),triggerRef:l,open:f,onOpenChange:d,onOpenToggle:k.useCallback(()=>d(p=>!p),[d]),hasCustomAnchor:c,onCustomAnchorAdd:k.useCallback(()=>u(!0),[]),onCustomAnchorRemove:k.useCallback(()=>u(!1),[]),modal:s,children:n})})};y_.displayName=Xp;var b_="PopoverAnchor",I$=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xr(b_,n),i=xs(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=o;return k.useEffect(()=>(s(),()=>a()),[s,a]),b.jsx(gp,{...i,...r,ref:t})});I$.displayName=b_;var v_="PopoverTrigger",x_=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xr(v_,n),i=xs(n),s=Ve(t,o.triggerRef),a=b.jsx(je.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":I_(o.open),...r,ref:s,onClick:he(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:b.jsx(gp,{asChild:!0,...i,children:a})});x_.displayName=v_;var Yp="PopoverPortal",[k$,A$]=m_(Yp,{forceMount:void 0}),w_=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=xr(Yp,t);return b.jsx(k$,{scope:t,forceMount:n,children:b.jsx(Xn,{present:n||i.open,children:b.jsx(Fd,{asChild:!0,container:o,children:r})})})};w_.displayName=Yp;var Bo="PopoverContent",C_=k.forwardRef((e,t)=>{const n=A$(Bo,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=xr(Bo,e.__scopePopover);return b.jsx(Xn,{present:r||i.open,children:i.modal?b.jsx(T$,{...o,ref:t}):b.jsx(N$,{...o,ref:t})})});C_.displayName=Bo;var R$=Do("PopoverContent.RemoveScroll"),T$=k.forwardRef((e,t)=>{const n=xr(Bo,e.__scopePopover),r=k.useRef(null),o=Ve(t,r),i=k.useRef(!1);return k.useEffect(()=>{const s=r.current;if(s)return Ld(s)},[]),b.jsx(Ll,{as:R$,allowPinchZoom:!0,children:b.jsx(__,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:he(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:he(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,c=a.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:he(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),N$=k.forwardRef((e,t)=>{const n=xr(Bo,e.__scopePopover),r=k.useRef(!1),o=k.useRef(!1);return b.jsx(__,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),__=k.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...f}=e,d=xr(Bo,n),p=xs(n);return jd(),b.jsx(Fl,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:b.jsx(Dl,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>d.onOpenChange(!1),children:b.jsx(pw,{"data-state":I_(d.open),role:"dialog",id:d.contentId,...p,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),S_="PopoverClose",P$=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xr(S_,n);return b.jsx(je.button,{type:"button",...r,ref:t,onClick:he(e.onClick,()=>o.onOpenChange(!1))})});P$.displayName=S_;var O$="PopoverArrow",E_=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xs(n);return b.jsx(hw,{...o,...r,ref:t})});E_.displayName=O$;function I_(e){return e?"open":"closed"}var k_=y_,A_=x_,R_=w_,T_=C_,M$=E_;const D$=({iostore:e})=>{const{full:t,preview:n}=e.valuestore(),r=JSON.stringify((t==null?void 0:t.value)||(n==null?void 0:n.value))||"";return`Bytes(${Math.round(3*r.length/4)})`},F$={bytes:D$},j$=e=>typeof e=="boolean"||e instanceof Boolean,L$=e=>typeof e=="number"||e instanceof Number,B$=e=>typeof e=="bigint"||e instanceof BigInt,N_=e=>!!e&&e instanceof Date,z$=e=>typeof e=="string"||e instanceof String,V$=e=>Array.isArray(e),G$=e=>typeof e=="object"&&e!==null,P_=e=>!!e&&e instanceof Object&&typeof e=="function";function tl(e,t){return t===void 0&&(t=!1),!e||t?`"${e}"`:e}function $$(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}function O_(e){let{field:t,value:n,data:r,lastElement:o,openBracket:i,closeBracket:s,level:a,style:l,shouldExpandNode:c,clickToExpandNode:u,outerRef:f,beforeExpandChange:d}=e;const p=N.useRef(!1),[g,h]=N.useState(()=>c(a,n,t)),y=N.useRef(null);N.useEffect(()=>{p.current?h(c(a,n,t)):p.current=!0},[c]);const m=N.useId();if(r.length===0)return H$({field:t,openBracket:i,closeBracket:s,lastElement:o,style:l});const x=g?l.collapseIcon:l.expandIcon,v=g?l.ariaLables.collapseJson:l.ariaLables.expandJson,C=a+1,S=r.length-1,E=M=>{g!==M&&(!d||d({level:a,value:n,field:t,newExpandValue:M}))&&h(M)},I=M=>{if(M.key==="ArrowRight"||M.key==="ArrowLeft")M.preventDefault(),E(M.key==="ArrowRight");else if(M.key==="ArrowUp"||M.key==="ArrowDown"){M.preventDefault();const w=M.key==="ArrowUp"?-1:1;if(!f.current)return;const R=f.current.querySelectorAll("[role=button]");let O=-1;for(let A=0;A<R.length;A++)if(R[A].tabIndex===0){O=A;break}if(O<0)return;const L=(O+w+R.length)%R.length;R[O].tabIndex=-1,R[L].tabIndex=0,R[L].focus()}},P=()=>{var M;E(!g);const w=y.current;if(!w)return;const R=(M=f.current)===null||M===void 0?void 0:M.querySelector('[role=button][tabindex="0"]');R&&(R.tabIndex=-1),w.tabIndex=0,w.focus()};return N.createElement("div",{className:l.basicChildStyle,role:"treeitem","aria-expanded":g,"aria-selected":void 0},N.createElement("span",{className:x,onClick:P,onKeyDown:I,role:"button","aria-label":v,"aria-expanded":g,"aria-controls":g?m:void 0,ref:y,tabIndex:a===0?0:-1}),(t||t==="")&&(u?N.createElement("span",{className:l.clickableLabel,onClick:P,onKeyDown:I},tl(t,l.quotesForFieldNames),":"):N.createElement("span",{className:l.label},tl(t,l.quotesForFieldNames),":")),N.createElement("span",{className:l.punctuation},i),g?N.createElement("ul",{id:m,role:"group",className:l.childFieldsContainer},r.map((M,w)=>N.createElement(M_,{key:M[0]||w,field:M[0],value:M[1],style:l,lastElement:w===S,level:C,shouldExpandNode:c,clickToExpandNode:u,outerRef:f}))):N.createElement("span",{className:l.collapsedContent,onClick:P,onKeyDown:I}),N.createElement("span",{className:l.punctuation},s),!o&&N.createElement("span",{className:l.punctuation},","))}function H$(e){let{field:t,openBracket:n,closeBracket:r,lastElement:o,style:i}=e;return N.createElement("div",{className:i.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&N.createElement("span",{className:i.label},tl(t,i.quotesForFieldNames),":"),N.createElement("span",{className:i.punctuation},n),N.createElement("span",{className:i.punctuation},r),!o&&N.createElement("span",{className:i.punctuation},","))}function W$(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:i,clickToExpandNode:s,level:a,outerRef:l,beforeExpandChange:c}=e;return O_({field:t,value:n,lastElement:o||!1,level:a,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:i,clickToExpandNode:s,data:Object.keys(n).map(u=>[u,n[u]]),outerRef:l,beforeExpandChange:c})}function X$(e){let{field:t,value:n,style:r,lastElement:o,level:i,shouldExpandNode:s,clickToExpandNode:a,outerRef:l,beforeExpandChange:c}=e;return O_({field:t,value:n,lastElement:o||!1,level:i,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:s,clickToExpandNode:a,data:n.map(u=>[void 0,u]),outerRef:l,beforeExpandChange:c})}function Y$(e){let{field:t,value:n,style:r,lastElement:o}=e,i,s=r.otherValue;return n===null?(i="null",s=r.nullValue):n===void 0?(i="undefined",s=r.undefinedValue):z$(n)?(i=$$(n,!r.noQuotesForStringValues,r.stringifyStringValues),s=r.stringValue):j$(n)?(i=n?"true":"false",s=r.booleanValue):L$(n)?(i=n.toString(),s=r.numberValue):B$(n)?(i=`${n.toString()}n`,s=r.numberValue):N_(n)?i=n.toISOString():P_(n)?i="function() { }":i=n.toString(),N.createElement("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&N.createElement("span",{className:r.label},tl(t,r.quotesForFieldNames),":"),N.createElement("span",{className:s},i),!o&&N.createElement("span",{className:r.punctuation},","))}function M_(e){const t=e.value;return V$(t)?N.createElement(X$,Object.assign({},e)):G$(t)&&!N_(t)&&!P_(t)?N.createElement(W$,Object.assign({},e)):N.createElement(Y$,Object.assign({},e))}var Re={"container-light":"_2IvMF _GzYRV","basic-element-style":"_2bkNM","child-fields-container":"_1BXBN","label-light":"_1MGIk","clickable-label-light":"_2YKJg _1MGIk _1MFti","punctuation-light":"_3uHL6 _3eOF8","value-null-light":"_2T6PJ","value-undefined-light":"_1Gho6","value-string-light":"_vGjyY","value-number-light":"_1bQdo","value-boolean-light":"_3zQKs","value-other-light":"_1xvuR","collapse-icon-light":"_oLqym _f10Tu _1MFti _1LId0","expand-icon-light":"_2AXVT _f10Tu _1MFti _1UmXx","collapsed-content-light":"_2KJWg _1pNG9 _1MFti","container-dark":"_11RoI _GzYRV","expand-icon-dark":"_17H2C _f10Tu _1MFti _1UmXx","collapse-icon-dark":"_3QHg2 _f10Tu _1MFti _1LId0","collapsed-content-dark":"_3fDAz _1pNG9 _1MFti","label-dark":"_2bSDX","clickable-label-dark":"_1RQEj _2bSDX _1MFti","punctuation-dark":"_gsbQL _3eOF8","value-null-dark":"_LaAZe","value-undefined-dark":"_GTKgm","value-string-dark":"_Chy1W","value-number-dark":"_2bveF","value-boolean-dark":"_2vRm-","value-other-dark":"_1prJR"};const D_={collapseJson:"collapse JSON",expandJson:"expand JSON"},ey={container:Re["container-light"],basicChildStyle:Re["basic-element-style"],childFieldsContainer:Re["child-fields-container"],label:Re["label-light"],clickableLabel:Re["clickable-label-light"],nullValue:Re["value-null-light"],undefinedValue:Re["value-undefined-light"],stringValue:Re["value-string-light"],booleanValue:Re["value-boolean-light"],numberValue:Re["value-number-light"],otherValue:Re["value-other-light"],punctuation:Re["punctuation-light"],collapseIcon:Re["collapse-icon-light"],expandIcon:Re["expand-icon-light"],collapsedContent:Re["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:D_,stringifyStringValues:!1},U$={container:Re["container-dark"],basicChildStyle:Re["basic-element-style"],childFieldsContainer:Re["child-fields-container"],label:Re["label-dark"],clickableLabel:Re["clickable-label-dark"],nullValue:Re["value-null-dark"],undefinedValue:Re["value-undefined-dark"],stringValue:Re["value-string-dark"],booleanValue:Re["value-boolean-dark"],numberValue:Re["value-number-dark"],otherValue:Re["value-other-dark"],punctuation:Re["punctuation-dark"],collapseIcon:Re["collapse-icon-dark"],expandIcon:Re["expand-icon-dark"],collapsedContent:Re["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:D_,stringifyStringValues:!1},Z$=()=>!0,J$=e=>e<1,q$=e=>{let{data:t,style:n=ey,shouldExpandNode:r=Z$,clickToExpandNode:o=!1,beforeExpandChange:i,...s}=e;const a=N.useRef(null);return N.createElement("div",Object.assign({"aria-label":"JSON view"},s,{className:n.container,ref:a,role:"tree"}),N.createElement(M_,{value:t,style:{...ey,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:o,outerRef:a,beforeExpandChange:i}))};function K$(e){for(const t in e)if(Object.hasOwn(e,t))return!1;return!0}function Q$(e){if(e==null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype?!1:K$(e)}const eH=({data:e})=>b.jsx(q$,{data:Q$(e)?"":e,style:U$,shouldExpandNode:J$});function F_(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=F_(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ke(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=F_(e))&&(r&&(r+=" "),r+=t);return r}function Zn(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let s="",a=!0;for(let l=0;l<i.length;l+=1){const c=i[l];c&&(s+=(a===!0?"":" ")+t(c),a=!1,n&&n[c]&&(s+=" "+n[c]))}r[o]=s}return r}const Up=k.createContext();process.env.NODE_ENV!=="production"&&(Up.displayName="TableContext");function mr(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function lt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":mr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ks={exports:{}},Ne={};/**
726
+ `)}),e.description.length>o&&b.jsx("button",{onClick:r,className:"toggle-description",children:t?"Show less":"Show more"})]})},Wp=({availableModule:e,on_change:t})=>{const[n,r]=N.useState(e.version||"latest"),[o,i]=N.useState(tc),s=l=>{const c=l.target.value;r(c),t(c!=="latest"?o+c:c)},a=l=>{l.target.value!==o&&Q0.includes(l.target.value)&&(i(l.target.value),n!=="latest"&&t(l.target.value+n))};return e.releases&&!e.releases.includes(n)&&e.releases.unshift(n),b.jsxs(b.Fragment,{children:[b.jsx("select",{value:o,onChange:a,children:Q0.map(l=>b.jsx("option",{value:l,children:l},l))}),b.jsx("select",{onChange:s,value:n,children:e.releases&&e.releases.map(l=>b.jsx("option",{value:l,children:l},l))})]})},p$=({availableModule:e,on_remove:t,on_update:n})=>{const[r,o]=N.useState(tc+e.version||"latest");return b.jsxs("div",{className:"addable-module",children:[b.jsx("div",{className:"module-name",children:e.name+(e.version?` (${e.version})`:"")}),b.jsx($p,{availableModule:e}),b.jsx(Hp,{availableModule:e}),b.jsxs("div",{children:[b.jsx(Wp,{availableModule:e,on_change:o}),b.jsx("button",{className:"update-button",disabled:r===e.version,onClick:()=>{n(e,r)},children:"Update"}),b.jsx("button",{className:"remove-button",onClick:()=>{t(e)},children:"Remove"})]})]})},h$=({availableModule:e,on_add:t})=>{const[n,r]=N.useState(tc+e.version||"latest");return b.jsxs("div",{className:"addable-module",children:[b.jsx("div",{className:"module-name",children:e.name+(e.version?` (${e.version})`:"")}),b.jsx($p,{availableModule:e}),b.jsx(Hp,{availableModule:e}),b.jsxs("div",{children:[b.jsx(Wp,{availableModule:e,on_change:r}),b.jsx("button",{className:"add-button",onClick:()=>{t(e,n)},children:"Add"})]})]})},g$=({availableModule:e,on_add:t})=>{const[n,r]=N.useState(tc+e.version||"latest");return b.jsxs("div",{className:"addable-module",children:[b.jsx("div",{className:"module-name",children:e.name}),b.jsx($p,{availableModule:e}),b.jsx(Hp,{availableModule:e}),b.jsxs("div",{children:[b.jsx(Wp,{availableModule:e,on_change:r}),b.jsx("button",{className:"add-button",onClick:()=>{t(e,n)},children:"Add"})]})]})},m$=({children:e})=>{const[t,n]=N.useState(""),r=N.useContext(xe),[o,i]=N.useState(!0),[s,a]=N.useState(!0),[l,c]=N.useState(!0),[u,f]=N.useState({installed:[],available:[],active:[]}),[d,p]=N.useState(!1),g=I=>{I&&(r.worker===void 0||!r.worker.is_open||r.worker.get_available_modules().then(P=>{f(P)}))};if(!r.worker)return b.jsx(b.Fragment,{});const h=(I,P)=>{p(!1),r.worker!==void 0&&r.worker.add_lib(I.name,P)},y=(I,P)=>{p(!1),r.worker!==void 0&&r.worker.add_lib(I.name,P)},m=I=>{p(!1),r.worker!==void 0&&r.worker.remove_lib(I.name)},x=(I,P)=>{p(!1),r.worker!==void 0&&r.worker.add_lib(I.name,P)},v=I=>I.filter(P=>P.name.toLowerCase().includes(t.toLowerCase())||P.description.toLowerCase().includes(t.toLowerCase())),C=v(u.available),S=v(u.installed),E=v(u.active);return b.jsxs(Xo,{title:"Manage Library",trigger:e,description:"Add or remove libraries to the current worker.",onOpenChange:g,open:d,setOpen:p,children:[b.jsx("input",{className:"filter-input styledinput",type:"text",placeholder:"Filter modules...",value:t,onChange:I=>n(I.target.value)}),b.jsxs("div",{className:"packagelist",style:{maxHeight:"70%",overflow:"auto"},children:[S.length>0&&b.jsx("h3",{onClick:()=>{c(!l)},children:"Installed"}),l&&S.map(I=>b.jsx(h$,{availableModule:I,on_add:h},I.name+I.source)),C.length>0&&b.jsx("h3",{onClick:()=>{a(!s)},children:"Available"}),s&&C.map(I=>b.jsx(g$,{availableModule:I,on_add:y},I.name+I.source)),E.length>0&&b.jsx("h3",{onClick:()=>{i(!o)},children:"Active"}),o&&E.map(I=>b.jsx(p$,{availableModule:I,on_remove:m,on_update:x},I.name+I.source))]})]})},y$=({ins:e})=>{const[t,n]=N.useState(e.name),r=N.useContext(xe),o=()=>{r.worker&&r.worker.remove_external_worker(e.uuid,e.nodeclassid)},i=()=>{r.worker&&(r.worker.update_external_worker(e.uuid,e.nodeclassid,{name:t}),e.name=t)};return b.jsx(b.Fragment,{children:b.jsx(Xo,{title:e.name,description:"Settings for"+e.name,trigger:b.jsx("div",{children:"Settings"}),buttons:[{text:"Save",onClick:i,close:!0},{text:"Delete",onClick:o,close:!0}],children:b.jsx("div",{children:b.jsxs("div",{children:[b.jsx("label",{htmlFor:"name",children:"Name: "}),b.jsx("input",{type:"text",name:"name",value:t,onChange:s=>n(s.target.value),className:"styledinput"})]})})})})},b$=({ins:e,lib:t,filter:n="",parentkey:r})=>{var l;const[o,i]=N.useState(!1),s=()=>i(!o),a=(l=t==null?void 0:t.nodes)==null?void 0:l.filter(c=>c.node_id.toLowerCase().includes(n.toLowerCase()));return b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:s,style:{cursor:"pointer"},title:e.name,children:[b.jsx("div",{className:"shelftitle_text",children:e.name}),b.jsx("div",{className:"expandicon "+(o?"open":"close"),children:b.jsx(ds,{})})]}),b.jsx("div",{className:"libnodecontainer "+(o?"open":"close"),children:b.jsx("div",{className:"libnodecontainer_inner",children:o&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"libnodeentry",title:e.uuid,children:b.jsx(y$,{ins:e})}),t&&b.jsxs(b.Fragment,{children:[a&&b.jsx(b.Fragment,{children:a.map(c=>b.jsx(h_,{item:c},r+c.node_id))}),t.subshelves.map(c=>b.jsx(Gp,{item:c,filter:n,parentkey:r+c.name},r+c.name))]})]})})})]})},v$=({item:e,mod:t,lib:n})=>{const r=N.useContext(xe),[o,i]=N.useState(!1),s=()=>i(!o),a=()=>{var u;(u=r.worker)==null||u.add_external_worker({module:t,cls_module:e.module,cls_name:e.class_name})},l=u=>{u.detail===2&&a()},c=e.name||e.module+"."+e.class_name;return b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:s,style:{cursor:"pointer"},title:c,children:[b.jsx("div",{className:"shelftitle_text",children:c}),b.jsx("div",{className:"expandicon "+(o?"open":"close"),children:b.jsx(ds,{})})]}),b.jsx("div",{className:"libnodecontainer "+(o?"open":"close"),children:b.jsx("div",{className:"libnodecontainer_inner",children:o&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"libnodeentry",onClick:l,title:e.name,children:"New Instance"}),e.instances.map(u=>b.jsx(b$,{ins:u,lib:n==null?void 0:n.subshelves.find(f=>f.name===u.uuid),parentkey:u.uuid},u.uuid))]})})})]})},x$=({externalworkermod:e,lib:t})=>{const[n,r]=N.useState(!1),o=()=>r(!n),i=n;return b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:o,style:{cursor:"pointer"},title:e.module,children:[b.jsx("div",{className:"shelftitle_text",children:e.module}),b.jsx("div",{className:"expandicon "+(i?"open":"close"),children:b.jsx(ds,{})})]}),b.jsx("div",{className:"libnodecontainer "+(i?"open":"close"),children:b.jsx("div",{className:"libnodecontainer_inner",children:e.worker_classes.map(s=>b.jsx(v$,{item:s,mod:e.module,lib:t},s.module+s.class_name))})}),b.jsx("hr",{})]})},w$=()=>{var u,f;const e=N.useContext(xe),t=e.lib.libstate(),n=k.useContext(xe),r=n.local_settings(d=>d.view_settings.expand_lib),o=n.local_settings(d=>d.update_view_settings),i=d=>{o({expand_lib:d})},s=DL("m"),[a,l]=N.useState(""),c=((u=e.worker)==null?void 0:u.state(d=>d.is_open))??!1;return b.jsx(lC,{maxSize:s?"100%":"18.75rem",direction:s?"down":"right",containerClassName:"pos-left pos-top bg1 h-12",onExpandChange:i,expanded:r===void 0?!0:r,children:b.jsxs("div",{className:"libcontainer",children:[b.jsxs("div",{className:"library",children:[b.jsx("div",{className:"libtitle",children:"Lib"}),b.jsx("hr",{className:"hr_prominent"}),b.jsx(d$,{filter:a,setFilter:l}),b.jsx("div",{className:"vscrollcontainer",children:t.lib.shelves.filter(d=>d.name!=="_external_worker").map(d=>b.jsx(Gp,{item:d,filter:a,parentkey:d.name},d.name))}),b.jsx("hr",{}),b.jsx("div",{className:"libtitle",children:"External Worker"}),b.jsx("hr",{className:"hr_prominent"}),b.jsx("div",{className:"vscrollcontainer",children:(f=t.external_worker)==null?void 0:f.map(d=>b.jsx(x$,{externalworkermod:d,lib:t.lib.shelves.find(p=>p.name==="_external_worker")},d.module))}),b.jsx("hr",{})]}),b.jsx("div",{style:{paddingTop:"0.5rem"}}),c&&b.jsx("div",{className:"addlib",children:b.jsx(m$,{children:b.jsx("button",{children:"Manage Libraries"})})})]})})};function C$(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,o]of e)if(!Object.is(o,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}const{useRef:_$}=N;function S$(e){const t=_$();return n=>{const r=e(n);return C$(t.current,r)?t.current:t.current=r}}var Xp="Popover",[m_,hq]=br(Xp,[Yl]),xs=Yl(),[E$,xr]=m_(Xp),y_=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,a=xs(t),l=k.useRef(null),[c,u]=k.useState(!1),[f=!1,d]=Ho({prop:r,defaultProp:o,onChange:i});return b.jsx(hp,{...a,children:b.jsx(E$,{scope:t,contentId:Fn(),triggerRef:l,open:f,onOpenChange:d,onOpenToggle:k.useCallback(()=>d(p=>!p),[d]),hasCustomAnchor:c,onCustomAnchorAdd:k.useCallback(()=>u(!0),[]),onCustomAnchorRemove:k.useCallback(()=>u(!1),[]),modal:s,children:n})})};y_.displayName=Xp;var b_="PopoverAnchor",I$=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xr(b_,n),i=xs(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=o;return k.useEffect(()=>(s(),()=>a()),[s,a]),b.jsx(gp,{...i,...r,ref:t})});I$.displayName=b_;var v_="PopoverTrigger",x_=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xr(v_,n),i=xs(n),s=Ve(t,o.triggerRef),a=b.jsx(je.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":I_(o.open),...r,ref:s,onClick:he(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:b.jsx(gp,{asChild:!0,...i,children:a})});x_.displayName=v_;var Yp="PopoverPortal",[k$,A$]=m_(Yp,{forceMount:void 0}),w_=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=xr(Yp,t);return b.jsx(k$,{scope:t,forceMount:n,children:b.jsx(Xn,{present:n||i.open,children:b.jsx(Fd,{asChild:!0,container:o,children:r})})})};w_.displayName=Yp;var Bo="PopoverContent",C_=k.forwardRef((e,t)=>{const n=A$(Bo,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=xr(Bo,e.__scopePopover);return b.jsx(Xn,{present:r||i.open,children:i.modal?b.jsx(T$,{...o,ref:t}):b.jsx(N$,{...o,ref:t})})});C_.displayName=Bo;var R$=Do("PopoverContent.RemoveScroll"),T$=k.forwardRef((e,t)=>{const n=xr(Bo,e.__scopePopover),r=k.useRef(null),o=Ve(t,r),i=k.useRef(!1);return k.useEffect(()=>{const s=r.current;if(s)return Ld(s)},[]),b.jsx(Ll,{as:R$,allowPinchZoom:!0,children:b.jsx(__,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:he(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:he(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,c=a.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:he(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),N$=k.forwardRef((e,t)=>{const n=xr(Bo,e.__scopePopover),r=k.useRef(!1),o=k.useRef(!1);return b.jsx(__,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),__=k.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...f}=e,d=xr(Bo,n),p=xs(n);return jd(),b.jsx(Fl,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:b.jsx(Dl,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>d.onOpenChange(!1),children:b.jsx(pw,{"data-state":I_(d.open),role:"dialog",id:d.contentId,...p,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),S_="PopoverClose",P$=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xr(S_,n);return b.jsx(je.button,{type:"button",...r,ref:t,onClick:he(e.onClick,()=>o.onOpenChange(!1))})});P$.displayName=S_;var O$="PopoverArrow",E_=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xs(n);return b.jsx(hw,{...o,...r,ref:t})});E_.displayName=O$;function I_(e){return e?"open":"closed"}var k_=y_,A_=x_,R_=w_,T_=C_,M$=E_;const D$=({iostore:e})=>{const{full:t,preview:n}=e.valuestore(),r=JSON.stringify((t==null?void 0:t.value)||(n==null?void 0:n.value))||"";return`Bytes(${Math.round(3*r.length/4)})`},F$={bytes:D$},j$=e=>typeof e=="boolean"||e instanceof Boolean,L$=e=>typeof e=="number"||e instanceof Number,B$=e=>typeof e=="bigint"||e instanceof BigInt,N_=e=>!!e&&e instanceof Date,z$=e=>typeof e=="string"||e instanceof String,V$=e=>Array.isArray(e),G$=e=>typeof e=="object"&&e!==null,P_=e=>!!e&&e instanceof Object&&typeof e=="function";function tl(e,t){return t===void 0&&(t=!1),!e||t?`"${e}"`:e}function $$(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}function O_(e){let{field:t,value:n,data:r,lastElement:o,openBracket:i,closeBracket:s,level:a,style:l,shouldExpandNode:c,clickToExpandNode:u,outerRef:f,beforeExpandChange:d}=e;const p=N.useRef(!1),[g,h]=N.useState(()=>c(a,n,t)),y=N.useRef(null);N.useEffect(()=>{p.current?h(c(a,n,t)):p.current=!0},[c]);const m=N.useId();if(r.length===0)return H$({field:t,openBracket:i,closeBracket:s,lastElement:o,style:l});const x=g?l.collapseIcon:l.expandIcon,v=g?l.ariaLables.collapseJson:l.ariaLables.expandJson,C=a+1,S=r.length-1,E=M=>{g!==M&&(!d||d({level:a,value:n,field:t,newExpandValue:M}))&&h(M)},I=M=>{if(M.key==="ArrowRight"||M.key==="ArrowLeft")M.preventDefault(),E(M.key==="ArrowRight");else if(M.key==="ArrowUp"||M.key==="ArrowDown"){M.preventDefault();const w=M.key==="ArrowUp"?-1:1;if(!f.current)return;const R=f.current.querySelectorAll("[role=button]");let O=-1;for(let A=0;A<R.length;A++)if(R[A].tabIndex===0){O=A;break}if(O<0)return;const L=(O+w+R.length)%R.length;R[O].tabIndex=-1,R[L].tabIndex=0,R[L].focus()}},P=()=>{var M;E(!g);const w=y.current;if(!w)return;const R=(M=f.current)===null||M===void 0?void 0:M.querySelector('[role=button][tabindex="0"]');R&&(R.tabIndex=-1),w.tabIndex=0,w.focus()};return N.createElement("div",{className:l.basicChildStyle,role:"treeitem","aria-expanded":g,"aria-selected":void 0},N.createElement("span",{className:x,onClick:P,onKeyDown:I,role:"button","aria-label":v,"aria-expanded":g,"aria-controls":g?m:void 0,ref:y,tabIndex:a===0?0:-1}),(t||t==="")&&(u?N.createElement("span",{className:l.clickableLabel,onClick:P,onKeyDown:I},tl(t,l.quotesForFieldNames),":"):N.createElement("span",{className:l.label},tl(t,l.quotesForFieldNames),":")),N.createElement("span",{className:l.punctuation},i),g?N.createElement("ul",{id:m,role:"group",className:l.childFieldsContainer},r.map((M,w)=>N.createElement(M_,{key:M[0]||w,field:M[0],value:M[1],style:l,lastElement:w===S,level:C,shouldExpandNode:c,clickToExpandNode:u,outerRef:f}))):N.createElement("span",{className:l.collapsedContent,onClick:P,onKeyDown:I}),N.createElement("span",{className:l.punctuation},s),!o&&N.createElement("span",{className:l.punctuation},","))}function H$(e){let{field:t,openBracket:n,closeBracket:r,lastElement:o,style:i}=e;return N.createElement("div",{className:i.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&N.createElement("span",{className:i.label},tl(t,i.quotesForFieldNames),":"),N.createElement("span",{className:i.punctuation},n),N.createElement("span",{className:i.punctuation},r),!o&&N.createElement("span",{className:i.punctuation},","))}function W$(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:i,clickToExpandNode:s,level:a,outerRef:l,beforeExpandChange:c}=e;return O_({field:t,value:n,lastElement:o||!1,level:a,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:i,clickToExpandNode:s,data:Object.keys(n).map(u=>[u,n[u]]),outerRef:l,beforeExpandChange:c})}function X$(e){let{field:t,value:n,style:r,lastElement:o,level:i,shouldExpandNode:s,clickToExpandNode:a,outerRef:l,beforeExpandChange:c}=e;return O_({field:t,value:n,lastElement:o||!1,level:i,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:s,clickToExpandNode:a,data:n.map(u=>[void 0,u]),outerRef:l,beforeExpandChange:c})}function Y$(e){let{field:t,value:n,style:r,lastElement:o}=e,i,s=r.otherValue;return n===null?(i="null",s=r.nullValue):n===void 0?(i="undefined",s=r.undefinedValue):z$(n)?(i=$$(n,!r.noQuotesForStringValues,r.stringifyStringValues),s=r.stringValue):j$(n)?(i=n?"true":"false",s=r.booleanValue):L$(n)?(i=n.toString(),s=r.numberValue):B$(n)?(i=`${n.toString()}n`,s=r.numberValue):N_(n)?i=n.toISOString():P_(n)?i="function() { }":i=n.toString(),N.createElement("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&N.createElement("span",{className:r.label},tl(t,r.quotesForFieldNames),":"),N.createElement("span",{className:s},i),!o&&N.createElement("span",{className:r.punctuation},","))}function M_(e){const t=e.value;return V$(t)?N.createElement(X$,Object.assign({},e)):G$(t)&&!N_(t)&&!P_(t)?N.createElement(W$,Object.assign({},e)):N.createElement(Y$,Object.assign({},e))}var Re={"container-light":"_2IvMF _GzYRV","basic-element-style":"_2bkNM","child-fields-container":"_1BXBN","label-light":"_1MGIk","clickable-label-light":"_2YKJg _1MGIk _1MFti","punctuation-light":"_3uHL6 _3eOF8","value-null-light":"_2T6PJ","value-undefined-light":"_1Gho6","value-string-light":"_vGjyY","value-number-light":"_1bQdo","value-boolean-light":"_3zQKs","value-other-light":"_1xvuR","collapse-icon-light":"_oLqym _f10Tu _1MFti _1LId0","expand-icon-light":"_2AXVT _f10Tu _1MFti _1UmXx","collapsed-content-light":"_2KJWg _1pNG9 _1MFti","container-dark":"_11RoI _GzYRV","expand-icon-dark":"_17H2C _f10Tu _1MFti _1UmXx","collapse-icon-dark":"_3QHg2 _f10Tu _1MFti _1LId0","collapsed-content-dark":"_3fDAz _1pNG9 _1MFti","label-dark":"_2bSDX","clickable-label-dark":"_1RQEj _2bSDX _1MFti","punctuation-dark":"_gsbQL _3eOF8","value-null-dark":"_LaAZe","value-undefined-dark":"_GTKgm","value-string-dark":"_Chy1W","value-number-dark":"_2bveF","value-boolean-dark":"_2vRm-","value-other-dark":"_1prJR"};const D_={collapseJson:"collapse JSON",expandJson:"expand JSON"},ey={container:Re["container-light"],basicChildStyle:Re["basic-element-style"],childFieldsContainer:Re["child-fields-container"],label:Re["label-light"],clickableLabel:Re["clickable-label-light"],nullValue:Re["value-null-light"],undefinedValue:Re["value-undefined-light"],stringValue:Re["value-string-light"],booleanValue:Re["value-boolean-light"],numberValue:Re["value-number-light"],otherValue:Re["value-other-light"],punctuation:Re["punctuation-light"],collapseIcon:Re["collapse-icon-light"],expandIcon:Re["expand-icon-light"],collapsedContent:Re["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:D_,stringifyStringValues:!1},U$={container:Re["container-dark"],basicChildStyle:Re["basic-element-style"],childFieldsContainer:Re["child-fields-container"],label:Re["label-dark"],clickableLabel:Re["clickable-label-dark"],nullValue:Re["value-null-dark"],undefinedValue:Re["value-undefined-dark"],stringValue:Re["value-string-dark"],booleanValue:Re["value-boolean-dark"],numberValue:Re["value-number-dark"],otherValue:Re["value-other-dark"],punctuation:Re["punctuation-dark"],collapseIcon:Re["collapse-icon-dark"],expandIcon:Re["expand-icon-dark"],collapsedContent:Re["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:D_,stringifyStringValues:!1},Z$=()=>!0,J$=e=>e<1,q$=e=>{let{data:t,style:n=ey,shouldExpandNode:r=Z$,clickToExpandNode:o=!1,beforeExpandChange:i,...s}=e;const a=N.useRef(null);return N.createElement("div",Object.assign({"aria-label":"JSON view"},s,{className:n.container,ref:a,role:"tree"}),N.createElement(M_,{value:t,style:{...ey,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:o,outerRef:a,beforeExpandChange:i}))};function K$(e){for(const t in e)if(Object.hasOwn(e,t))return!1;return!0}function Q$(e){if(e==null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype?!1:K$(e)}const eH=({data:e})=>b.jsx(q$,{data:Q$(e)?"":e,style:U$,shouldExpandNode:J$});function F_(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=F_(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ke(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=F_(e))&&(r&&(r+=" "),r+=t);return r}function Zn(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let s="",a=!0;for(let l=0;l<i.length;l+=1){const c=i[l];c&&(s+=(a===!0?"":" ")+t(c),a=!1,n&&n[c]&&(s+=" "+n[c]))}r[o]=s}return r}const Up=k.createContext();process.env.NODE_ENV!=="production"&&(Up.displayName="TableContext");function mr(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function lt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":mr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ks={exports:{}},Ne={};/**
727
727
  * @license React
728
728
  * react-is.production.js
729
729
  *
@@ -861,5 +861,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
861
861
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dh(e){return bY(e)||vY(e)||WS(e)||xY()}function wY(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var cd=N.useLayoutEffect,CY=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ul=function(){};function _Y(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function SY(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&i.push("".concat(_Y(e,s)));return i.filter(function(a){return a}).map(function(a){return String(a).trim()}).join(" ")}var Xy=function(t){return OY(t)?t.filter(Boolean):Ur(t)==="object"&&t!==null?[t]:[]},YS=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=Jn(t,CY);return pe({},n)},We=function(t,n,r){var o=t.cx,i=t.getStyles,s=t.getClassNames,a=t.className;return{css:i(n,t),className:o(r??{},s(n,t),a)}};function Cc(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function EY(e){return Cc(e)?window.innerHeight:e.clientHeight}function US(e){return Cc(e)?window.pageYOffset:e.scrollTop}function fl(e,t){if(Cc(e)){window.scrollTo(0,t);return}e.scrollTop=t}function IY(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function kY(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function oa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ul,o=US(e),i=t-o,s=10,a=0;function l(){a+=s;var c=kY(a,o,i,n);fl(e,c),a<n?window.requestAnimationFrame(l):r(e)}l()}function Yy(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?fl(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&fl(e,Math.max(t.offsetTop-o,0))}function AY(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Uy(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function RY(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var ZS=!1,TY={get passive(){return ZS=!0}},ia=typeof window<"u"?window:{};ia.addEventListener&&ia.removeEventListener&&(ia.addEventListener("p",ul,TY),ia.removeEventListener("p",ul,!1));var NY=ZS;function PY(e){return e!=null}function OY(e){return Array.isArray(e)}function sa(e,t,n){return e?t:n}var MY=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=Object.entries(t).filter(function(s){var a=Ln(s,1),l=a[0];return!r.includes(l)});return i.reduce(function(s,a){var l=Ln(a,2),c=l[0],u=l[1];return s[c]=u,s},{})},DY=["children","innerProps"],FY=["children","innerProps"];function jY(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,s=e.isFixedPosition,a=e.controlHeight,l=IY(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect(),f=u.height,d=n.getBoundingClientRect(),p=d.bottom,g=d.height,h=d.top,y=n.offsetParent.getBoundingClientRect(),m=y.top,x=s?window.innerHeight:EY(l),v=US(l),C=parseInt(getComputedStyle(n).marginBottom,10),S=parseInt(getComputedStyle(n).marginTop,10),E=m-S,I=x-h,P=E+v,M=f-v-h,w=p-x+v+C,R=v+h-S,O=160;switch(o){case"auto":case"bottom":if(I>=g)return{placement:"bottom",maxHeight:t};if(M>=g&&!s)return i&&oa(l,w,O),{placement:"bottom",maxHeight:t};if(!s&&M>=r||s&&I>=r){i&&oa(l,w,O);var L=s?I-C:M-C;return{placement:"bottom",maxHeight:L}}if(o==="auto"||s){var A=t,j=s?E:P;return j>=r&&(A=Math.min(j-C-a,t)),{placement:"top",maxHeight:A}}if(o==="bottom")return i&&fl(l,w),{placement:"bottom",maxHeight:t};break;case"top":if(E>=g)return{placement:"top",maxHeight:t};if(P>=g&&!s)return i&&oa(l,R,O),{placement:"top",maxHeight:t};if(!s&&P>=r||s&&E>=r){var D=t;return(!s&&P>=r||s&&E>=r)&&(D=s?E-S:P-S),i&&oa(l,R,O),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}function LY(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var JS=function(t){return t==="auto"?"bottom":t},BY=function(t,n){var r,o=t.placement,i=t.theme,s=i.borderRadius,a=i.spacing,l=i.colors;return pe((r={label:"menu"},xi(r,LY(o),"100%"),xi(r,"position","absolute"),xi(r,"width","100%"),xi(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},qS=N.createContext(null),zY=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,s=t.menuPosition,a=t.menuShouldScrollIntoView,l=t.theme,c=N.useContext(qS)||{},u=c.setPortalPlacement,f=N.useRef(null),d=N.useState(o),p=Ln(d,2),g=p[0],h=p[1],y=N.useState(null),m=Ln(y,2),x=m[0],v=m[1],C=l.spacing.controlHeight;return cd(function(){var S=f.current;if(S){var E=s==="fixed",I=a&&!E,P=jY({maxHeight:o,menuEl:S,minHeight:r,placement:i,shouldScroll:I,isFixedPosition:E,controlHeight:C});h(P.maxHeight),v(P.placement),u==null||u(P.placement)}},[o,i,s,a,r,u,C]),n({ref:f,placerProps:pe(pe({},t),{},{placement:x||JS(i),maxHeight:g})})},VY=function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return le("div",ce({},We(t,"menu",{menu:!0}),{ref:r},o),n)},GY=VY,$Y=function(t,n){var r=t.maxHeight,o=t.theme.spacing.baseUnit;return pe({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},HY=function(t){var n=t.children,r=t.innerProps,o=t.innerRef,i=t.isMulti;return le("div",ce({},We(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},r),n)},KS=function(t,n){var r=t.theme,o=r.spacing.baseUnit,i=r.colors;return pe({textAlign:"center"},n?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},WY=KS,XY=KS,YY=function(t){var n=t.children,r=n===void 0?"No options":n,o=t.innerProps,i=Jn(t,DY);return le("div",ce({},We(pe(pe({},i),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},UY=function(t){var n=t.children,r=n===void 0?"Loading...":n,o=t.innerProps,i=Jn(t,FY);return le("div",ce({},We(pe(pe({},i),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},ZY=function(t){var n=t.rect,r=t.offset,o=t.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},JY=function(t){var n=t.appendTo,r=t.children,o=t.controlElement,i=t.innerProps,s=t.menuPlacement,a=t.menuPosition,l=N.useRef(null),c=N.useRef(null),u=N.useState(JS(s)),f=Ln(u,2),d=f[0],p=f[1],g=N.useMemo(function(){return{setPortalPlacement:p}},[]),h=N.useState(null),y=Ln(h,2),m=y[0],x=y[1],v=N.useCallback(function(){if(o){var I=AY(o),P=a==="fixed"?0:window.pageYOffset,M=I[d]+P;(M!==(m==null?void 0:m.offset)||I.left!==(m==null?void 0:m.rect.left)||I.width!==(m==null?void 0:m.rect.width))&&x({offset:M,rect:I})}},[o,a,d,m==null?void 0:m.offset,m==null?void 0:m.rect.left,m==null?void 0:m.rect.width]);cd(function(){v()},[v]);var C=N.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),o&&l.current&&(c.current=ew(o,l.current,v,{elementResize:"ResizeObserver"in window}))},[o,v]);cd(function(){C()},[C]);var S=N.useCallback(function(I){l.current=I,C()},[C]);if(!n&&a!=="fixed"||!m)return null;var E=le("div",ce({ref:S},We(pe(pe({},t),{},{offset:m.offset,position:a,rect:m.rect}),"menuPortal",{"menu-portal":!0}),i),r);return le(qS.Provider,{value:g},n?pd.createPortal(E,n):E)},qY=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},KY=function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,i=t.isRtl;return le("div",ce({},We(t,"container",{"--is-disabled":o,"--is-rtl":i}),r),n)},QY=function(t,n){var r=t.theme.spacing,o=t.isMulti,i=t.hasValue,s=t.selectProps.controlShouldRenderValue;return pe({alignItems:"center",display:o&&i&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},eU=function(t){var n=t.children,r=t.innerProps,o=t.isMulti,i=t.hasValue;return le("div",ce({},We(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),r),n)},tU=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},nU=function(t){var n=t.children,r=t.innerProps;return le("div",ce({},We(t,"indicatorsContainer",{indicators:!0}),r),n)},Zy,rU=["size"],oU=["innerProps","isRtl","size"];function iU(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var sU=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYm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uZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:iU},QS=function(t){var n=t.size,r=Jn(t,rU);return le("svg",ce({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:sU},r))},ph=function(t){return le(QS,ce({size:20},t),le("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},eE=function(t){return le(QS,ce({size:20},t),le("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},tE=function(t,n){var r=t.isFocused,o=t.theme,i=o.spacing.baseUnit,s=o.colors;return pe({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?s.neutral60:s.neutral20,padding:i*2,":hover":{color:r?s.neutral80:s.neutral40}})},aU=tE,lU=function(t){var n=t.children,r=t.innerProps;return le("div",ce({},We(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||le(eE,null))},cU=tE,uU=function(t){var n=t.children,r=t.innerProps;return le("div",ce({},We(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||le(ph,null))},fU=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,s=o.colors;return pe({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?s.neutral10:s.neutral20,marginBottom:i*2,marginTop:i*2})},dU=function(t){var n=t.innerProps;return le("span",ce({},n,We(t,"indicatorSeparator",{"indicator-separator":!0})))},pU=mc(Zy||(Zy=wY([`
862
862
  0%, 80%, 100% { opacity: 0; }
863
863
  40% { opacity: 1; }
864
- `]))),hU=function(t,n){var r=t.isFocused,o=t.size,i=t.theme,s=i.colors,a=i.spacing.baseUnit;return pe({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?s.neutral60:s.neutral20,padding:a*2})},Du=function(t){var n=t.delay,r=t.offset;return le("span",{css:nh({animation:"".concat(pU," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBj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gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},gU=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,i=o===void 0?4:o,s=Jn(t,oU);return le("div",ce({},We(pe(pe({},s),{},{innerProps:n,isRtl:r,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),le(Du,{delay:0,offset:r}),le(Du,{delay:160,offset:!0}),le(Du,{delay:320,offset:!r}))},mU=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.theme,s=i.colors,a=i.borderRadius,l=i.spacing;return pe({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?s.neutral5:s.neutral0,borderColor:r?s.neutral10:o?s.primary:s.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:o?s.primary:s.neutral30}})},yU=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.innerRef,s=t.innerProps,a=t.menuIsOpen;return le("div",ce({ref:i},We(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":a}),s,{"aria-disabled":r||void 0}),n)},bU=yU,vU=["data"],xU=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},wU=function(t){var n=t.children,r=t.cx,o=t.getStyles,i=t.getClassNames,s=t.Heading,a=t.headingProps,l=t.innerProps,c=t.label,u=t.theme,f=t.selectProps;return le("div",ce({},We(t,"group",{group:!0}),l),le(s,ce({},a,{selectProps:f,theme:u,getStyles:o,getClassNames:i,cx:r}),c),le("div",null,n))},CU=function(t,n){var r=t.theme,o=r.colors,i=r.spacing;return pe({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},_U=function(t){var n=YS(t);n.data;var r=Jn(n,vU);return le("div",ce({},We(t,"groupHeading",{"group-heading":!0}),r))},SU=wU,EU=["innerRef","isDisabled","isHidden","inputClassName"],IU=function(t,n){var r=t.isDisabled,o=t.value,i=t.theme,s=i.spacing,a=i.colors;return pe(pe({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},kU),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:a.neutral80})},nE={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},kU={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":pe({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},nE)},AU=function(t){return pe({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},nE)},RU=function(t){var n=t.cx,r=t.value,o=YS(t),i=o.innerRef,s=o.isDisabled,a=o.isHidden,l=o.inputClassName,c=Jn(o,EU);return le("div",ce({},We(t,"input",{"input-container":!0}),{"data-value":r||""}),le("input",ce({className:n({input:!0},l),ref:i,style:AU(a),disabled:s},c)))},TU=RU,NU=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,s=r.colors;return pe({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},PU=function(t,n){var r=t.theme,o=r.borderRadius,i=r.colors,s=t.cropWithEllipsis;return pe({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},OU=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,s=r.colors,a=t.isFocused;return pe({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:a?s.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},rE=function(t){var n=t.children,r=t.innerProps;return le("div",r,n)},MU=rE,DU=rE;function FU(e){var t=e.children,n=e.innerProps;return le("div",ce({role:"button"},n),t||le(ph,{size:14}))}var jU=function(t){var n=t.children,r=t.components,o=t.data,i=t.innerProps,s=t.isDisabled,a=t.removeProps,l=t.selectProps,c=r.Container,u=r.Label,f=r.Remove;return le(c,{data:o,innerProps:pe(pe({},We(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),i),selectProps:l},le(u,{data:o,innerProps:pe({},We(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),le(f,{data:o,innerProps:pe(pe({},We(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:l}))},LU=jU,BU=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.isSelected,s=t.theme,a=s.spacing,l=s.colors;return pe({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?l.primary:o?l.primary25:"transparent",color:r?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:i?l.primary:l.primary50}})},zU=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.isSelected,s=t.innerRef,a=t.innerProps;return le("div",ce({},We(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":i}),{ref:s,"aria-disabled":r},a),n)},VU=zU,GU=function(t,n){var r=t.theme,o=r.spacing,i=r.colors;return pe({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},$U=function(t){var n=t.children,r=t.innerProps;return le("div",ce({},We(t,"placeholder",{placeholder:!0}),r),n)},HU=$U,WU=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing,s=o.colors;return pe({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?s.neutral40:s.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},XU=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return le("div",ce({},We(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},YU=XU,UU={ClearIndicator:uU,Control:bU,DropdownIndicator:lU,DownChevron:eE,CrossIcon:ph,Group:SU,GroupHeading:_U,IndicatorsContainer:nU,IndicatorSeparator:dU,Input:TU,LoadingIndicator:gU,Menu:GY,MenuList:HY,MenuPortal:JY,LoadingMessage:UY,NoOptionsMessage:YY,MultiValue:LU,MultiValueContainer:MU,MultiValueLabel:DU,MultiValueRemove:FU,Option:VU,Placeholder:HU,SelectContainer:KY,SingleValue:YU,ValueContainer:eU},ZU=function(t){return pe(pe({},UU),t.components)},Jy=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function JU(e,t){return!!(e===t||Jy(e)&&Jy(t))}function qU(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!JU(e[n],t[n]))return!1;return!0}function KU(e,t){t===void 0&&(t=qU);var n=null;function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var s=e.apply(this,o);return n={lastResult:s,lastArgs:o,lastThis:this},s}return r.clear=function(){n=null},r}function QU(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var eZ=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:QU},tZ=function(t){return le("span",ce({css:eZ},t))},qy=tZ,nZ={guidance:function(t){var n=t.isSearchable,r=t.isMulti,o=t.tabSelectsValue,i=t.context,s=t.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return s?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,o=r===void 0?"":r,i=t.labels,s=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return s?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,o=t.options,i=t.label,s=i===void 0?"":i,a=t.selectValue,l=t.isDisabled,c=t.isSelected,u=t.isAppleDevice,f=function(h,y){return h&&h.length?"".concat(h.indexOf(y)+1," of ").concat(h.length):""};if(n==="value"&&a)return"value ".concat(s," focused, ").concat(f(a,r),".");if(n==="menu"&&u){var d=l?" disabled":"",p="".concat(c?" selected":"").concat(d);return"".concat(s).concat(p,", ").concat(f(o,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},rZ=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,s=t.isFocused,a=t.selectValue,l=t.selectProps,c=t.id,u=t.isAppleDevice,f=l.ariaLiveMessages,d=l.getOptionLabel,p=l.inputValue,g=l.isMulti,h=l.isOptionDisabled,y=l.isSearchable,m=l.menuIsOpen,x=l.options,v=l.screenReaderStatus,C=l.tabSelectsValue,S=l.isLoading,E=l["aria-label"],I=l["aria-live"],P=N.useMemo(function(){return pe(pe({},nZ),f||{})},[f]),M=N.useMemo(function(){var j="";if(n&&P.onChange){var D=n.option,z=n.options,V=n.removedValue,F=n.removedValues,_=n.value,G=function(U){return Array.isArray(U)?null:U},$=V||D||G(_),T=$?d($):"",H=z||F||void 0,J=H?H.map(d):[],W=pe({isDisabled:$&&h($,a),label:T,labels:J},n);j=P.onChange(W)}return j},[n,P,h,a,d]),w=N.useMemo(function(){var j="",D=r||o,z=!!(r&&a&&a.includes(r));if(D&&P.onFocus){var V={focused:D,label:d(D),isDisabled:h(D,a),isSelected:z,options:i,context:D===r?"menu":"value",selectValue:a,isAppleDevice:u};j=P.onFocus(V)}return j},[r,o,d,h,P,i,a,u]),R=N.useMemo(function(){var j="";if(m&&x.length&&!S&&P.onFilter){var D=v({count:i.length});j=P.onFilter({inputValue:p,resultsMessage:D})}return j},[i,p,m,P,x,v,S]),O=(n==null?void 0:n.action)==="initial-input-focus",L=N.useMemo(function(){var j="";if(P.guidance){var D=o?"value":m?"menu":"input";j=P.guidance({"aria-label":E,context:D,isDisabled:r&&h(r,a),isMulti:g,isSearchable:y,tabSelectsValue:C,isInitialFocus:O})}return j},[E,r,o,g,h,y,m,P,a,C,O]),A=le(N.Fragment,null,le("span",{id:"aria-selection"},M),le("span",{id:"aria-focused"},w),le("span",{id:"aria-results"},R),le("span",{id:"aria-guidance"},L));return le(N.Fragment,null,le(qy,{id:c},O&&A),le(qy,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!O&&A))},oZ=rZ,ud=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],iZ=new RegExp("["+ud.map(function(e){return e.letters}).join("")+"]","g"),oE={};for(var Fu=0;Fu<ud.length;Fu++)for(var ju=ud[Fu],Lu=0;Lu<ju.letters.length;Lu++)oE[ju.letters[Lu]]=ju.base;var iE=function(t){return t.replace(iZ,function(n){return oE[n]})},sZ=KU(iE),Ky=function(t){return t.replace(/^\s+|\s+$/g,"")},aZ=function(t){return"".concat(t.label," ").concat(t.value)},lZ=function(t){return function(n,r){if(n.data.__isNew__)return!0;var o=pe({ignoreCase:!0,ignoreAccents:!0,stringify:aZ,trim:!0,matchFrom:"any"},t),i=o.ignoreCase,s=o.ignoreAccents,a=o.stringify,l=o.trim,c=o.matchFrom,u=l?Ky(r):r,f=l?Ky(a(n)):a(n);return i&&(u=u.toLowerCase(),f=f.toLowerCase()),s&&(u=sZ(u),f=iE(f)),c==="start"?f.substr(0,u.length)===u:f.indexOf(u)>-1}},cZ=["innerRef"];function uZ(e){var t=e.innerRef,n=Jn(e,cZ),r=MY(n,"onExited","in","enter","exit","appear");return le("input",ce({ref:t},r,{css:nh({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bH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Jzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var fZ=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function dZ(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,s=N.useRef(!1),a=N.useRef(!1),l=N.useRef(0),c=N.useRef(null),u=N.useCallback(function(y,m){if(c.current!==null){var x=c.current,v=x.scrollTop,C=x.scrollHeight,S=x.clientHeight,E=c.current,I=m>0,P=C-S-v,M=!1;P>m&&s.current&&(r&&r(y),s.current=!1),I&&a.current&&(i&&i(y),a.current=!1),I&&m>P?(n&&!s.current&&n(y),E.scrollTop=C,M=!0,s.current=!0):!I&&-m>v&&(o&&!a.current&&o(y),E.scrollTop=0,M=!0,a.current=!0),M&&fZ(y)}},[n,r,o,i]),f=N.useCallback(function(y){u(y,y.deltaY)},[u]),d=N.useCallback(function(y){l.current=y.changedTouches[0].clientY},[]),p=N.useCallback(function(y){var m=l.current-y.changedTouches[0].clientY;u(y,m)},[u]),g=N.useCallback(function(y){if(y){var m=NY?{passive:!1}:!1;y.addEventListener("wheel",f,m),y.addEventListener("touchstart",d,m),y.addEventListener("touchmove",p,m)}},[p,d,f]),h=N.useCallback(function(y){y&&(y.removeEventListener("wheel",f,!1),y.removeEventListener("touchstart",d,!1),y.removeEventListener("touchmove",p,!1))},[p,d,f]);return N.useEffect(function(){if(t){var y=c.current;return g(y),function(){h(y)}}},[t,g,h]),function(y){c.current=y}}var Qy=["boxSizing","height","overflow","paddingRight","position"],eb={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function tb(e){e.cancelable&&e.preventDefault()}function nb(e){e.stopPropagation()}function rb(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ob(){return"ontouchstart"in window||navigator.maxTouchPoints}var ib=!!(typeof window<"u"&&window.document&&window.document.createElement),pi=0,fo={capture:!1,passive:!1};function pZ(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=N.useRef({}),i=N.useRef(null),s=N.useCallback(function(l){if(ib){var c=document.body,u=c&&c.style;if(r&&Qy.forEach(function(g){var h=u&&u[g];o.current[g]=h}),r&&pi<1){var f=parseInt(o.current.paddingRight,10)||0,d=document.body?document.body.clientWidth:0,p=window.innerWidth-d+f||0;Object.keys(eb).forEach(function(g){var h=eb[g];u&&(u[g]=h)}),u&&(u.paddingRight="".concat(p,"px"))}c&&ob()&&(c.addEventListener("touchmove",tb,fo),l&&(l.addEventListener("touchstart",rb,fo),l.addEventListener("touchmove",nb,fo))),pi+=1}},[r]),a=N.useCallback(function(l){if(ib){var c=document.body,u=c&&c.style;pi=Math.max(pi-1,0),r&&pi<1&&Qy.forEach(function(f){var d=o.current[f];u&&(u[f]=d)}),c&&ob()&&(c.removeEventListener("touchmove",tb,fo),l&&(l.removeEventListener("touchstart",rb,fo),l.removeEventListener("touchmove",nb,fo)))}},[r]);return N.useEffect(function(){if(t){var l=i.current;return s(l),function(){a(l)}}},[t,s,a]),function(l){i.current=l}}function hZ(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var gZ=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},mZ=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2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tZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:hZ};function yZ(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,i=e.onBottomArrive,s=e.onBottomLeave,a=e.onTopArrive,l=e.onTopLeave,c=dZ({isEnabled:o,onBottomArrive:i,onBottomLeave:s,onTopArrive:a,onTopLeave:l}),u=pZ({isEnabled:n}),f=function(p){c(p),u(p)};return le(N.Fragment,null,n&&le("div",{onClick:gZ,css:mZ}),t(f))}function bZ(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var vZ=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wd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dXQ7XG4iXX0= */",toString:bZ},xZ=function(t){var n=t.name,r=t.onFocus;return le("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:vZ,value:"",onChange:function(){}})},wZ=xZ;function hh(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function CZ(){return hh(/^iPhone/i)}function sE(){return hh(/^Mac/i)}function _Z(){return hh(/^iPad/i)||sE()&&navigator.maxTouchPoints>1}function SZ(){return CZ()||_Z()}function EZ(){return sE()||SZ()}var IZ=function(t){return t.label},kZ=function(t){return t.label},AZ=function(t){return t.value},RZ=function(t){return!!t.isDisabled},TZ={clearIndicator:cU,container:qY,control:mU,dropdownIndicator:aU,group:xU,groupHeading:CU,indicatorsContainer:tU,indicatorSeparator:fU,input:IU,loadingIndicator:hU,loadingMessage:XY,menu:BY,menuList:$Y,menuPortal:ZY,multiValue:NU,multiValueLabel:PU,multiValueRemove:OU,noOptionsMessage:WY,option:BU,placeholder:GU,singleValue:WU,valueContainer:QY},NZ={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},PZ=4,aE=4,OZ=38,MZ=aE*2,DZ={baseUnit:aE,controlHeight:OZ,menuGutter:MZ},Bu={borderRadius:PZ,colors:NZ,spacing:DZ},FZ={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Uy(),captureMenuScroll:!Uy(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:lZ(),formatGroupLabel:IZ,getOptionLabel:kZ,getOptionValue:AZ,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:RZ,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!RY(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function sb(e,t,n,r){var o=uE(e,t,n),i=fE(e,t,n),s=cE(e,t),a=dl(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:s,value:a,index:r}}function ka(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(s,a){return sb(e,s,t,a)}).filter(function(s){return lb(e,s)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=sb(e,n,t,r);return lb(e,i)?i:void 0}).filter(PY)}function lE(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,dh(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function ab(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,dh(r.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function jZ(e,t){return lE(ka(e,t))}function lb(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,i=t.isSelected,s=t.label,a=t.value;return(!pE(e)||!i)&&dE(e,{label:s,value:a,data:o},r)}function LZ(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var i=t.indexOf(n);if(i>-1)return n;if(o<t.length)return t[o]}return null}function BZ(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var zu=function(t,n){var r,o=(r=t.find(function(i){return i.data===n}))===null||r===void 0?void 0:r.id;return o||null},cE=function(t,n){return t.getOptionLabel(n)},dl=function(t,n){return t.getOptionValue(n)};function uE(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function fE(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=dl(e,t);return n.some(function(o){return dl(e,o)===r})}function dE(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var pE=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},zZ=1,hE=function(e){gY(n,e);var t=yY(n);function n(r){var o;if(pY(this,n),o=t.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=EZ(),o.controlRef=null,o.getControlRef=function(l){o.controlRef=l},o.focusedOptionRef=null,o.getFocusedOptionRef=function(l){o.focusedOptionRef=l},o.menuListRef=null,o.getMenuListRef=function(l){o.menuListRef=l},o.inputRef=null,o.getInputRef=function(l){o.inputRef=l},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(l,c){var u=o.props,f=u.onChange,d=u.name;c.name=d,o.ariaOnChange(l,c),f(l,c)},o.setValue=function(l,c,u){var f=o.props,d=f.closeMenuOnSelect,p=f.isMulti,g=f.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:g}),d&&(o.setState({inputIsHiddenAfterUpdate:!p}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(l,{action:c,option:u})},o.selectOption=function(l){var c=o.props,u=c.blurInputOnSelect,f=c.isMulti,d=c.name,p=o.state.selectValue,g=f&&o.isOptionSelected(l,p),h=o.isOptionDisabled(l,p);if(g){var y=o.getOptionValue(l);o.setValue(p.filter(function(m){return o.getOptionValue(m)!==y}),"deselect-option",l)}else if(!h)f?o.setValue([].concat(dh(p),[l]),"select-option",l):o.setValue(l,"select-option");else{o.ariaOnChange(l,{action:"select-option",option:l,name:d});return}u&&o.blurInput()},o.removeValue=function(l){var c=o.props.isMulti,u=o.state.selectValue,f=o.getOptionValue(l),d=u.filter(function(g){return o.getOptionValue(g)!==f}),p=sa(c,d,d[0]||null);o.onChange(p,{action:"remove-value",removedValue:l}),o.focusInput()},o.clearValue=function(){var l=o.state.selectValue;o.onChange(sa(o.props.isMulti,[],null),{action:"clear",removedValues:l})},o.popValue=function(){var l=o.props.isMulti,c=o.state.selectValue,u=c[c.length-1],f=c.slice(0,c.length-1),d=sa(l,f,f[0]||null);u&&o.onChange(d,{action:"pop-value",removedValue:u})},o.getFocusedOptionId=function(l){return zu(o.state.focusableOptionsWithIds,l)},o.getFocusableOptionsWithIds=function(){return ab(ka(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return SY.apply(void 0,[o.props.classNamePrefix].concat(c))},o.getOptionLabel=function(l){return cE(o.props,l)},o.getOptionValue=function(l){return dl(o.props,l)},o.getStyles=function(l,c){var u=o.props.unstyled,f=TZ[l](c,u);f.boxSizing="border-box";var d=o.props.styles[l];return d?d(f,c):f},o.getClassNames=function(l,c){var u,f;return(u=(f=o.props.classNames)[l])===null||u===void 0?void 0:u.call(f,c)},o.getElementId=function(l){return"".concat(o.state.instancePrefix,"-").concat(l)},o.getComponents=function(){return ZU(o.props)},o.buildCategorizedOptions=function(){return ka(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return lE(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(l,c){o.setState({ariaSelection:pe({value:l},c)})},o.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(l){o.blockOptionHover=!1},o.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&o.onMenuClose():c&&o.openMenu("first"):(c&&(o.openAfterFocus=!0),o.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},o.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!o.props.isDisabled){var c=o.props,u=c.isMulti,f=c.menuIsOpen;o.focusInput(),f?(o.setState({inputIsHiddenAfterUpdate:!u}),o.onMenuClose()):o.openMenu("first"),l.preventDefault()}},o.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(o.clearValue(),l.preventDefault(),o.openAfterFocus=!1,l.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(l){typeof o.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&Cc(l.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(l)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(l){var c=l.touches,u=c&&c.item(0);u&&(o.initialTouchX=u.clientX,o.initialTouchY=u.clientY,o.userIsDragging=!1)},o.onTouchMove=function(l){var c=l.touches,u=c&&c.item(0);if(u){var f=Math.abs(u.clientX-o.initialTouchX),d=Math.abs(u.clientY-o.initialTouchY),p=5;o.userIsDragging=f>p||d>p}},o.onTouchEnd=function(l){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(l.target)&&o.menuListRef&&!o.menuListRef.contains(l.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(l){o.userIsDragging||o.onControlMouseDown(l)},o.onClearIndicatorTouchEnd=function(l){o.userIsDragging||o.onClearIndicatorMouseDown(l)},o.onDropdownIndicatorTouchEnd=function(l){o.userIsDragging||o.onDropdownIndicatorMouseDown(l)},o.handleInputChange=function(l){var c=o.props.inputValue,u=l.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(u,{action:"input-change",prevInputValue:c}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(l){o.props.onFocus&&o.props.onFocus(l),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(l){var c=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(l),o.onInputChange("",{action:"input-blur",prevInputValue:c}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(l){if(!(o.blockOptionHover||o.state.focusedOption===l)){var c=o.getFocusableOptions(),u=c.indexOf(l);o.setState({focusedOption:l,focusedOptionId:u>-1?o.getFocusedOptionId(l):null})}},o.shouldHideSelectedOptions=function(){return pE(o.props)},o.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),o.focus()},o.onKeyDown=function(l){var c=o.props,u=c.isMulti,f=c.backspaceRemovesValue,d=c.escapeClearsValue,p=c.inputValue,g=c.isClearable,h=c.isDisabled,y=c.menuIsOpen,m=c.onKeyDown,x=c.tabSelectsValue,v=c.openMenuOnFocus,C=o.state,S=C.focusedOption,E=C.focusedValue,I=C.selectValue;if(!h&&!(typeof m=="function"&&(m(l),l.defaultPrevented))){switch(o.blockOptionHover=!0,l.key){case"ArrowLeft":if(!u||p)return;o.focusValue("previous");break;case"ArrowRight":if(!u||p)return;o.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(E)o.removeValue(E);else{if(!f)return;u?o.popValue():g&&o.clearValue()}break;case"Tab":if(o.isComposing||l.shiftKey||!y||!x||!S||v&&o.isOptionSelected(S,I))return;o.selectOption(S);break;case"Enter":if(l.keyCode===229)break;if(y){if(!S||o.isComposing)return;o.selectOption(S);break}return;case"Escape":y?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:p}),o.onMenuClose()):g&&d&&o.clearValue();break;case" ":if(p)return;if(!y){o.openMenu("first");break}if(!S)return;o.selectOption(S);break;case"ArrowUp":y?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":y?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!y)return;o.focusOption("pageup");break;case"PageDown":if(!y)return;o.focusOption("pagedown");break;case"Home":if(!y)return;o.focusOption("first");break;case"End":if(!y)return;o.focusOption("last");break;default:return}l.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++zZ),o.state.selectValue=Xy(r.value),r.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),s=o.buildFocusableOptions(),a=s.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=s[a],o.state.focusedOptionId=zu(i,s[a])}return o}return hY(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Yy(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(o){var i=this.props,s=i.isDisabled,a=i.menuIsOpen,l=this.state.isFocused;(l&&!s&&o.isDisabled||l&&a&&!o.menuIsOpen)&&this.focusInput(),l&&s&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!s&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Yy(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,s=this.state,a=s.selectValue,l=s.isFocused,c=this.buildFocusableOptions(),u=o==="first"?0:c.length-1;if(!this.props.isMulti){var f=c.indexOf(a[0]);f>-1&&(u=f)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[u],focusedOptionId:this.getFocusedOptionId(c[u])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,s=i.selectValue,a=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=s.indexOf(a);a||(l=-1);var c=s.length-1,u=-1;if(s.length){switch(o){case"previous":l===0?u=0:l===-1?u=c:u=l-1;break;case"next":l>-1&&l<c&&(u=l+1);break}this.setState({inputIsHidden:u!==-1,focusedValue:s[u]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,s=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var l=0,c=a.indexOf(s);s||(c=-1),o==="up"?l=c>0?c-1:a.length-1:o==="down"?l=(c+1)%a.length:o==="pageup"?(l=c-i,l<0&&(l=0)):o==="pagedown"?(l=c+i,l>a.length-1&&(l=a.length-1)):o==="last"&&(l=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(a[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Bu):pe(pe({},Bu),this.props.theme):Bu}},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,s=this.getStyles,a=this.getClassNames,l=this.getValue,c=this.selectOption,u=this.setValue,f=this.props,d=f.isMulti,p=f.isRtl,g=f.options,h=this.hasValue();return{clearValue:o,cx:i,getStyles:s,getClassNames:a,getValue:l,hasValue:h,isMulti:d,isRtl:p,options:g,selectOption:c,selectProps:f,setValue:u,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,s=o.isMulti;return i===void 0?s:i}},{key:"isOptionDisabled",value:function(o,i){return uE(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return fE(this.props,o,i)}},{key:"filterOption",value:function(o,i){return dE(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:s,selectValue:a})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,i=o.isDisabled,s=o.isSearchable,a=o.inputId,l=o.inputValue,c=o.tabIndex,u=o.form,f=o.menuIsOpen,d=o.required,p=this.getComponents(),g=p.Input,h=this.state,y=h.inputIsHidden,m=h.ariaSelection,x=this.commonProps,v=a||this.getElementId("input"),C=pe(pe(pe({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(m==null?void 0:m.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?k.createElement(g,ce({},x,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:i,isHidden:y,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:u,type:"text",value:l},C)):k.createElement(uZ,ce({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ul,onFocus:this.onInputFocus,disabled:i,tabIndex:c,inputMode:"none",form:u,value:""},C))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),s=i.MultiValue,a=i.MultiValueContainer,l=i.MultiValueLabel,c=i.MultiValueRemove,u=i.SingleValue,f=i.Placeholder,d=this.commonProps,p=this.props,g=p.controlShouldRenderValue,h=p.isDisabled,y=p.isMulti,m=p.inputValue,x=p.placeholder,v=this.state,C=v.selectValue,S=v.focusedValue,E=v.isFocused;if(!this.hasValue()||!g)return m?null:k.createElement(f,ce({},d,{key:"placeholder",isDisabled:h,isFocused:E,innerProps:{id:this.getElementId("placeholder")}}),x);if(y)return C.map(function(P,M){var w=P===S,R="".concat(o.getOptionLabel(P),"-").concat(o.getOptionValue(P));return k.createElement(s,ce({},d,{components:{Container:a,Label:l,Remove:c},isFocused:w,isDisabled:h,key:R,index:M,removeProps:{onClick:function(){return o.removeValue(P)},onTouchEnd:function(){return o.removeValue(P)},onMouseDown:function(L){L.preventDefault()}},data:P}),o.formatOptionLabel(P,"value"))});if(m)return null;var I=C[0];return k.createElement(u,ce({},d,{data:I,isDisabled:h}),this.formatOptionLabel(I,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,c=a.isLoading,u=this.state.isFocused;if(!this.isClearable()||!i||l||!this.hasValue()||c)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(i,ce({},s,{innerProps:f,isFocused:u}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,c=a.isLoading,u=this.state.isFocused;if(!i||!c)return null;var f={"aria-hidden":"true"};return k.createElement(i,ce({},s,{innerProps:f,isDisabled:l,isFocused:u}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,s=o.IndicatorSeparator;if(!i||!s)return null;var a=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused;return k.createElement(s,ce({},a,{isDisabled:l,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var s=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(i,ce({},s,{innerProps:c,isDisabled:a,isFocused:l}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),s=i.Group,a=i.GroupHeading,l=i.Menu,c=i.MenuList,u=i.MenuPortal,f=i.LoadingMessage,d=i.NoOptionsMessage,p=i.Option,g=this.commonProps,h=this.state.focusedOption,y=this.props,m=y.captureMenuScroll,x=y.inputValue,v=y.isLoading,C=y.loadingMessage,S=y.minMenuHeight,E=y.maxMenuHeight,I=y.menuIsOpen,P=y.menuPlacement,M=y.menuPosition,w=y.menuPortalTarget,R=y.menuShouldBlockScroll,O=y.menuShouldScrollIntoView,L=y.noOptionsMessage,A=y.onMenuScrollToTop,j=y.onMenuScrollToBottom;if(!I)return null;var D=function(T,H){var J=T.type,W=T.data,X=T.isDisabled,U=T.isSelected,Q=T.label,ne=T.value,oe=h===W,Z=X?void 0:function(){return o.onOptionHover(W)},ue=X?void 0:function(){return o.selectOption(W)},fe="".concat(o.getElementId("option"),"-").concat(H),Se={id:fe,onClick:ue,onMouseMove:Z,onMouseOver:Z,tabIndex:-1,role:"option","aria-selected":o.isAppleDevice?void 0:U};return k.createElement(p,ce({},g,{innerProps:Se,data:W,isDisabled:X,isSelected:U,key:fe,label:Q,type:J,value:ne,isFocused:oe,innerRef:oe?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(T.data,"menu"))},z;if(this.hasOptions())z=this.getCategorizedOptions().map(function($){if($.type==="group"){var T=$.data,H=$.options,J=$.index,W="".concat(o.getElementId("group"),"-").concat(J),X="".concat(W,"-heading");return k.createElement(s,ce({},g,{key:W,data:T,options:H,Heading:a,headingProps:{id:X,data:$.data},label:o.formatGroupLabel($.data)}),$.options.map(function(U){return D(U,"".concat(J,"-").concat(U.index))}))}else if($.type==="option")return D($,"".concat($.index))});else if(v){var V=C({inputValue:x});if(V===null)return null;z=k.createElement(f,g,V)}else{var F=L({inputValue:x});if(F===null)return null;z=k.createElement(d,g,F)}var _={minMenuHeight:S,maxMenuHeight:E,menuPlacement:P,menuPosition:M,menuShouldScrollIntoView:O},G=k.createElement(zY,ce({},g,_),function($){var T=$.ref,H=$.placerProps,J=H.placement,W=H.maxHeight;return k.createElement(l,ce({},g,_,{innerRef:T,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:v,placement:J}),k.createElement(yZ,{captureEnabled:m,onTopArrive:A,onBottomArrive:j,lockEnabled:R},function(X){return k.createElement(c,ce({},g,{innerRef:function(Q){o.getMenuListRef(Q),X(Q)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:o.getElementId("listbox")},isLoading:v,maxHeight:W,focusedOption:h}),z)}))});return w||M==="fixed"?k.createElement(u,ce({},g,{appendTo:w,controlElement:this.controlRef,menuPlacement:P,menuPosition:M}),G):G}},{key:"renderFormField",value:function(){var o=this,i=this.props,s=i.delimiter,a=i.isDisabled,l=i.isMulti,c=i.name,u=i.required,f=this.state.selectValue;if(u&&!this.hasValue()&&!a)return k.createElement(wZ,{name:c,onFocus:this.onValueInputFocus});if(!(!c||a))if(l)if(s){var d=f.map(function(h){return o.getOptionValue(h)}).join(s);return k.createElement("input",{name:c,type:"hidden",value:d})}else{var p=f.length>0?f.map(function(h,y){return k.createElement("input",{key:"i-".concat(y),name:c,type:"hidden",value:o.getOptionValue(h)})}):k.createElement("input",{name:c,type:"hidden",value:""});return k.createElement("div",null,p)}else{var g=f[0]?this.getOptionValue(f[0]):"";return k.createElement("input",{name:c,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,s=i.ariaSelection,a=i.focusedOption,l=i.focusedValue,c=i.isFocused,u=i.selectValue,f=this.getFocusableOptions();return k.createElement(oZ,ce({},o,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:a,focusedValue:l,isFocused:c,selectValue:u,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,s=o.IndicatorsContainer,a=o.SelectContainer,l=o.ValueContainer,c=this.props,u=c.className,f=c.id,d=c.isDisabled,p=c.menuIsOpen,g=this.state.isFocused,h=this.commonProps=this.getCommonProps();return k.createElement(a,ce({},h,{className:u,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:g}),this.renderLiveRegion(),k.createElement(i,ce({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:g,menuIsOpen:p}),k.createElement(l,ce({},h,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),k.createElement(s,ce({},h,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var s=i.prevProps,a=i.clearFocusValueOnUpdate,l=i.inputIsHiddenAfterUpdate,c=i.ariaSelection,u=i.isFocused,f=i.prevWasFocused,d=i.instancePrefix,p=o.options,g=o.value,h=o.menuIsOpen,y=o.inputValue,m=o.isMulti,x=Xy(g),v={};if(s&&(g!==s.value||p!==s.options||h!==s.menuIsOpen||y!==s.inputValue)){var C=h?jZ(o,x):[],S=h?ab(ka(o,x),"".concat(d,"-option")):[],E=a?LZ(i,x):null,I=BZ(i,C),P=zu(S,I);v={selectValue:x,focusedOption:I,focusedOptionId:P,focusableOptionsWithIds:S,focusedValue:E,clearFocusValueOnUpdate:!1}}var M=l!=null&&o!==s?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},w=c,R=u&&f;return u&&!R&&(w={value:sa(m,x,x[0]||null),options:x,action:"initial-input-focus"},R=!f),(c==null?void 0:c.action)==="initial-input-focus"&&(w=null),pe(pe(pe({},v),M),{},{prevProps:o,ariaSelection:w,prevWasFocused:R})}}]),n}(N.Component);hE.defaultProps=FZ;var VZ=N.forwardRef(function(e,t){var n=dY(e);return k.createElement(hE,ce({ref:t},n))}),GZ=VZ;const $Z=({options:e,items_per_page:t,className:n,defaultValue:r,onChange:o})=>{const[i,s]=N.useState(""),[a,l]=N.useState(0),c=p=>{s(p.toLowerCase()),l(0)},u=e.filter(p=>p.label.toLowerCase().includes(i)||p.value.toLowerCase().includes(i));var f;t!==void 0?f=u.slice(a*t,(a+1)*t):f=u;const d={control:p=>({...p,minHeight:void 0})};return b.jsx(GZ,{options:f,onInputChange:c,onChange:o,inputValue:i,isSearchable:!0,placeholder:"Select an option...",className:n,unstyled:!0,styles:d,classNamePrefix:"styled-select",defaultValue:r,value:r})};function HZ(e){return e===0?0:Math.abs(e)<1e-12?e:Number(e.toPrecision(12))}const gE=({iostore:e,inputconverter:t,parser:n=r=>parseFloat(r)})=>{var p,g,h,y,m,x,v,C,S,E,I,P,M,w;const r=k.useContext(xe),{preview:o}=e.valuestore(),i=e.use(),[s,a]=k.useState(t[1](o==null?void 0:o.value));k.useEffect(()=>{a(t[1](o==null?void 0:o.value))},[o]);const l=R=>{var O,L,A;R=n(parseFloat(R.toString()).toString()),isNaN(R)?(R="<NoValue>",a("")):(((O=i.value_options)==null?void 0:O.min)!==void 0&&R<i.value_options.min&&(R=i.value_options.min),((L=i.value_options)==null?void 0:L.max)!==void 0&&R>i.value_options.max&&(R=i.value_options.max),R=HZ(R),a(R.toString()));try{R=t[0](R)}catch{}(A=r.worker)==null||A.set_io_value({nid:i.node,ioid:i.id,value:R,set_default:i.render_options.set_default})},c=R=>{l(R.target.value)};let u=i.connected?t[1](o==null?void 0:o.value):s;u===void 0&&(u=(p=i.value_options)==null?void 0:p.min),u===void 0&&(u=(g=i.value_options)==null?void 0:g.max),u===void 0&&(u=""),u===null&&(u="");let f=null,d=1;return((h=i.value_options)==null?void 0:h.step)!==void 0?d=i.value_options.step:((y=i.value_options)==null?void 0:y.max)!==void 0&&((m=i.value_options)==null?void 0:m.min)!==void 0&&(d=(((x=i.value_options)==null?void 0:x.max)-((v=i.value_options)==null?void 0:v.min))/1e3),((C=i.value_options)==null?void 0:C.max)!==void 0&&((S=i.value_options)==null?void 0:S.min)!==void 0&&!i.connected&&(f=b.jsx("div",{style:{minWidth:"100px"},className:"SliderContainer",children:b.jsxs(W7,{className:"SliderRoot",value:[u===void 0?(E=i.value_options)==null?void 0:E.min:u],min:(I=i.value_options)==null?void 0:I.min,max:(P=i.value_options)==null?void 0:P.max,step:d,disabled:i.connected,onValueCommit:R=>{isNaN(R[0])||l(R[0])},onValueChange:R=>{isNaN(R[0])||a(R[0].toString())},onKeyDown:R=>{["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(R.key)&&R.stopPropagation()},children:[b.jsx(X7,{className:"SliderTrack",children:b.jsx(Y7,{className:"SliderRange"})}),b.jsx(U7,{className:"SliderThumb"})]})})),b.jsxs(b.Fragment,{children:[f,b.jsx("input",{type:"text",className:"nodedatainput styledinput numberinput",value:u,onChange:R=>a(R.target.value),onBlur:c,step:d,onKeyDown:R=>{if(!(R.ctrlKey||R.metaKey)){if(R.key==="ArrowUp"){R.shiftKey&&(d*=10);let O=(parseFloat(u)||0)+d;l(O);return}if(R.key==="ArrowDown"){R.shiftKey&&(d*=10);let O=(parseFloat(u)||0)-d;l(O);return}!/^[0-9.eE+-]$/.test(R.key)&&!["Backspace","ArrowLeft","ArrowRight","Delete","Tab"].includes(R.key)&&R.preventDefault()}},disabled:i.connected,min:(M=i.value_options)==null?void 0:M.min,max:(w=i.value_options)==null?void 0:w.max})]})},WZ=({iostore:e,inputconverter:t})=>gE({iostore:e,inputconverter:t,parser:parseFloat}),XZ=({iostore:e,inputconverter:t})=>gE({iostore:e,inputconverter:t,parser:parseInt}),YZ=({iostore:e,inputconverter:t})=>{const n=k.useContext(xe),{preview:r}=e.valuestore(),o=e.use(),i=(r==null?void 0:r.value)===void 0,s=k.useRef(null);k.useEffect(()=>{s.current&&(s.current.indeterminate=i)},[s,i]);const a=l=>{var u;let c=l.target.checked;try{c=t[0](l.target.checked)}catch{}(u=n.worker)==null||u.set_io_value({nid:o.node,ioid:o.id,value:c,set_default:o.render_options.set_default})};return b.jsx("input",{ref:s,type:"checkbox",className:"styledcheckbox booleaninput",checked:!!t[1](r==null?void 0:r.value),onChange:a,disabled:o.connected})},cb=({iostore:e,inputconverter:t})=>{const n=k.useContext(xe),{preview:r,full:o}=e.valuestore(),i=e.use(),s=o===void 0?r==null?void 0:r.value:o==null?void 0:o.value,[a,l]=k.useState(t[1](s));k.useEffect(()=>{l(t[1](s))},[s]);const c=f=>{var p;let d=f.target.value;d||(d="<NoValue>");try{d=t[0](d)}catch{}(p=n.worker)==null||p.set_io_value({nid:i.node,ioid:i.id,value:d,set_default:i.render_options.set_default})};let u=i.connected?t[1](s):a;return u==null&&(u=""),b.jsx("input",{className:"nodedatainput styledinput stringinput",value:u,onChange:f=>l(f.target.value),onBlur:c,disabled:i.connected})},UZ=({iostore:e})=>{var c;const t=k.useContext(xe),n=e.use(),{preview:r,full:o}=e.valuestore(),i=o===void 0?r==null?void 0:r.value:o.value,s=((c=n.value_options)==null?void 0:c.colorspace)||"hex",a=u=>{var d;let f="<NoValue>";u&&(u[s]?f=u[s]():f=u.hex()),u===null&&(f=null);try{f=f}catch{}(d=t.worker)==null||d.set_io_value({nid:n.node,ioid:n.id,value:f,set_default:n.render_options.set_default})};let l=!1;return typeof n.type!="string"&&"anyOf"in n.type&&n.type.anyOf!==void 0&&(l=n.type.anyOf.some(u=>u==="None")),b.jsx(sY,{onChange:a,inicolordata:i,allow_null:l,inicolorspace:s})},ZZ=e=>e,JZ=e=>parseFloat(e),qZ=e=>!!e,KZ=e=>e==="null"?null:e,QZ=e=>e==="nuinputconvertermber"?JZ:e==="boolean"?qZ:e==="undefined"?KZ:ZZ,pl=({iostore:e,inputconverter:t,parser:n})=>{var h;const r=e.use(),{preview:o,full:i}=e.valuestore(),s=i===void 0?o==null?void 0:o.value:i.value;let a=((h=r.value_options)==null?void 0:h.options)||[];Array.isArray(a)&&(a={type:"enum",values:a,keys:a.map(y=>y===null?"None":y.toString()),nullable:!1}),a.type!=="enum"&&(a={type:"enum",values:Object.values(a),keys:Object.keys(a),nullable:!1}),a=a,a.nullable&&!a.values.includes(null)&&!a.keys.includes("None")&&(a.values.unshift(null),a.keys.unshift("None"));const l=[];for(let y=0;y<a.values.length;y++){const m=a.values[y]===null||a.values[y]===void 0?"undefined":typeof a.values[y];let x=a.values[y];x===null&&(x="null"),x===void 0&&(x="undefined"),l.push([a.keys[y],x.toString(),m])}const c=k.useContext(xe),u=({value:y,datatype:m})=>{var C;let v=(n||QZ(m))(y);try{v=t[0](y)}catch{}(C=c.worker)==null||C.set_io_value({nid:r.node,ioid:r.id,value:v,set_default:r.render_options.set_default})};let f=s;f===null&&(f="null"),f===void 0&&(f="undefined");const d=l.find(y=>y[1]===f.toString());let p;d!==void 0&&(p={value:d[1],label:d[0],datatype:d[2]});const g=l.map(y=>({value:y[1],label:y[0],datatype:y[2]}));return b.jsx($Z,{className:"nodedatainput styleddropdown",options:g,defaultValue:p,onChange:y=>{if(y===null){u({value:"<NoValue>",datatype:"string"});return}u(y)}})},eJ=(e,t=void 0)=>({iostore:n})=>{const{full:r,preview:o}=n.valuestore(),i=r===void 0?o:r,s=(i==null?void 0:i.value)||t;return b.jsx(e,{iostore:n,value:s})},tJ={float:WZ,int:XZ,bool:YZ,string:cb,str:cb,color:UZ,select:pl,enum:pl,bytes:eJ(uh,"")},nJ=({iostore:e,typestring:t})=>{const{InLineRenderer:n}=k.useContext(kn),{preview:r,full:o}=e.valuestore();if(t&&n[t])return b.jsx("div",{children:n[t]({iostore:e})});let i=(JSON.stringify(o||r)||"").replace(/\\n/g,`
865
- `);return i.length>63&&(i=i.slice(0,60)+"..."),b.jsx("div",{children:i})},rJ={},Zt=(e,t=void 0)=>({iostore:n})=>{const{full:r,preview:o}=n.valuestore(),i=r===void 0?o:r,s=(i==null?void 0:i.value)||t;return b.jsx(e,{iostore:n,value:s})},oJ={string:Zt(kS),table:Zt(AS),image:Zt(ES),svg:Zt(IS,""),dict:Zt(xc,"{}"),bytes:Zt(uh,"")},iJ={},mE=e=>({iostore:t,value:n,preValue:r,onLoaded:o})=>b.jsx(e,{iostore:t,value:n,preValue:r,onLoaded:o}),ub=mE(xc),sJ={},aJ={},lJ={},cJ={},Yt={Inputrenderer:tJ,Outputrenderer:rJ,HandlePreviewRenderer:iJ,DataOverlayRenderer:sJ,DataPreviewViewRenderer:oJ,DataViewRenderer:A7,InLineRenderer:F$,NodeContextExtenders:cJ,NodeRenderer:aJ,NodeHooks:lJ},uJ=(e,t)=>{const n=t.options||{},r=n.overwrite===void 0?!0:n.overwrite;switch(t.type){case"EXTEND_INPUT_RENDER":return!r&&e.Inputrenderer[t.payload.type]?e:{...e,Inputrenderer:{...e.Inputrenderer,[t.payload.type]:t.payload.component}};case"EXTEND_OUTPUT_RENDER":return!r&&e.Outputrenderer[t.payload.type]?e:{...e,Outputrenderer:{...e.Outputrenderer,[t.payload.type]:t.payload.component}};case"EXTEND_HANDLE_PREVIEW_RENDER":return!r&&e.HandlePreviewRenderer[t.payload.type]?e:{...e,HandlePreviewRenderer:{...e.HandlePreviewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_OVERLAY_RENDER":return!r&&e.DataOverlayRenderer[t.payload.type]?e:{...e,DataOverlayRenderer:{...e.DataOverlayRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_PREVIEW_RENDER":return!r&&e.DataPreviewViewRenderer[t.payload.type]?e:{...e,DataPreviewViewRenderer:{...e.DataPreviewViewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_VIEW_RENDER":return!r&&e.DataViewRenderer[t.payload.type]?e:{...e,DataViewRenderer:{...e.DataViewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_NODE_CONTEXT_EXTENDER":return!r&&e.NodeContextExtenders[t.payload.type]?e:{...e,NodeContextExtenders:{...e.NodeContextExtenders,[t.payload.type]:t.payload.component}};case"EXTEND_NODE_RENDERER":return!r&&e.NodeRenderer[t.payload.type]?e:{...e,NodeRenderer:{...e.NodeRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_NODE_HOOKS":return!r&&e.NodeHooks[t.payload.type]?e:{...e,NodeHooks:{...e.NodeHooks,[t.payload.type]:t.payload.component}};case"EXTEND_FROM_PLUGIN":let o=!1;const i=[[t.payload.plugin.input_renderers||{},e.Inputrenderer],[t.payload.plugin.output_renderers||{},e.Outputrenderer],[t.payload.plugin.handle_preview_renderers||{},e.HandlePreviewRenderer],[t.payload.plugin.data_overlay_renderers||{},e.DataOverlayRenderer],[t.payload.plugin.data_preview_renderers||{},e.DataPreviewViewRenderer],[t.payload.plugin.data_view_renderers||{},e.DataViewRenderer],[t.payload.plugin.node_context_extenders||{},e.NodeContextExtenders],[t.payload.plugin.node_renderers||{},e.NodeRenderer],[t.payload.plugin.node_hooks||{},e.NodeHooks]];for(const[a,l]of i){if(Object.keys(a).length>0){if(r)o=!0;else for(const c in a)if(!l[c]){o=!0;break}}if(o)break}if(!o)return e;for(const[a,l]of i)for(const c in a)(r||!l[c])&&(l[c]=a[c]);return{...e};default:return e}},yE=({children:e,plugins:t,fnrf_zst:n})=>{const[r,o]=N.useReducer(uJ,Yt),i=(h,y,m)=>{o({type:"EXTEND_INPUT_RENDER",payload:{type:h,component:y},options:m})},s=(h,y,m)=>{o({type:"EXTEND_OUTPUT_RENDER",payload:{type:h,component:y},options:m})},a=(h,y,m)=>{o({type:"EXTEND_HANDLE_PREVIEW_RENDER",payload:{type:h,component:y},options:m})},l=(h,y,m)=>{o({type:"EXTEND_DATA_OVERLAY_RENDER",payload:{type:h,component:y},options:m})},c=(h,y,m)=>{o({type:"EXTEND_DATA_PREVIEW_RENDER",payload:{type:h,component:y},options:m})},u=(h,y,m)=>{o({type:"EXTEND_DATA_VIEW_RENDER",payload:{type:h,component:y},options:m})},f=(h,y,m)=>{o({type:"EXTEND_NODE_CONTEXT_EXTENDER",payload:{type:h,component:y},options:m})},d=(h,y,m)=>{o({type:"EXTEND_NODE_RENDERER",payload:{type:h,component:y},options:m})},p=(h,y,m)=>{o({type:"EXTEND_NODE_HOOKS",payload:{type:h,component:y},options:m})},g=(h,y)=>{o({type:"EXTEND_FROM_PLUGIN",payload:{plugin:h},options:y})};return N.useEffect(()=>{for(const h in t){const y=t[h];if(!y)continue;const m=y.renderpluginfactory;m&&g(m({React:k,fnrf_zst:n,NodeContext:gh}))}},[t]),b.jsx(kn.Provider,{value:{Inputrenderer:r.Inputrenderer,Outputrenderer:r.Outputrenderer,HandlePreviewRenderer:r.HandlePreviewRenderer,DataOverlayRenderer:r.DataOverlayRenderer,DataPreviewViewRenderer:r.DataPreviewViewRenderer,DataViewRenderer:r.DataViewRenderer,InLineRenderer:r.InLineRenderer,NodeContextExtenders:r.NodeContextExtenders,NodeRenderer:r.NodeRenderer,NodeHooks:r.NodeHooks,extendInputRenderMapping:i,extendOutputRenderMapping:s,extendHandlePreviewRenderMapping:a,extendDataOverlayRenderMapping:l,extendDataPreviewRenderMapping:c,extendDataViewRenderMapping:u,extendNodeContextExtender:f,extendNodeRenderer:d,extendNodeHooks:p,extendFromPlugin:g},children:e})},kn=N.createContext({Inputrenderer:Yt.Inputrenderer,Outputrenderer:Yt.Outputrenderer,HandlePreviewRenderer:Yt.HandlePreviewRenderer,DataOverlayRenderer:Yt.DataOverlayRenderer,DataPreviewViewRenderer:Yt.DataPreviewViewRenderer,DataViewRenderer:Yt.DataViewRenderer,InLineRenderer:Yt.InLineRenderer,NodeContextExtenders:Yt.NodeContextExtenders,NodeRenderer:Yt.NodeRenderer,NodeHooks:Yt.NodeHooks,extendInputRenderMapping:(e,t,n)=>{},extendOutputRenderMapping:(e,t,n)=>{},extendHandlePreviewRenderMapping:(e,t,n)=>{},extendDataOverlayRenderMapping:(e,t,n)=>{},extendDataPreviewRenderMapping:(e,t,n)=>{},extendDataViewRenderMapping:(e,t,n)=>{},extendNodeContextExtender:(e,t,n)=>{},extendNodeRenderer:(e,t,n)=>{},extendNodeHooks:(e,t,n)=>{},extendFromPlugin:(e,t)=>{}}),bE=e=>{const t=N.useContext(xe),{DataOverlayRenderer:n,DataViewRenderer:r}=N.useContext(kn);if(e===void 0)return;const o=t.render_options(),[i]=Kr(e.type,o.typemap||{});return i?n[i]?n[i]:r[i]?mE(r[i]):ub:ub},fJ=e=>{const n=N.useContext(xe).render_options(),{HandlePreviewRenderer:r,DataPreviewViewRenderer:o}=N.useContext(kn),i=bE(e);let s;if(e){const[a]=Kr(e.type,n.typemap||{});a?r[a]?s=r[a]:o[a]?s=o[a]:s=Zt(ll):s=Zt(ll)}return[s,i]},vE=({iostore:e,Component:t})=>{const[n,r]=k.useState(void 0),[o,i]=k.useState(void 0),{full:s}=e.valuestore();k.useEffect(()=>{s===void 0?e.getState().try_get_full_value():i(s.value)},[s]);const a=()=>{o!==void 0&&r(o)};return b.jsx(t,{iostore:e,value:o,preValue:n,onLoaded:a})},xE=({iostore:e,Component:t})=>b.jsx(t,{iostore:e}),Kr=(e,t)=>{if(typeof e=="string")return e in t?[t[e],e]:[e,e];if("allOf"in e&&e.allOf!==void 0)return[void 0,void 0];if("anyOf"in e&&e.anyOf!==void 0){const n=e.anyOf.map(r=>Kr(r,t));for(const r of n)switch(r[0]){case"bool":return["bool",r[1]];case"enum":return["enum",r[1]];case"float":return["float",r[1]];case"int":return["int",r[1]];case"string":return["string",r[1]];case"str":return["string",r[1]]}return[void 0,void 0]}return!("type"in e)||e.type===void 0?[void 0,void 0]:e.type==="enum"?["enum","enum"]:[void 0,void 0]},fd=({iostore:e,typestring:t,preview:n,...r})=>{const[o,i]=N.useState(!1),[s,a]=N.useState(!1),l=k.useContext(xe),c=e.use(),[u,f]=fJ(c),d=l.local_state(()=>l.reactflowRef);return b.jsxs(k_,{open:o||s,onOpenChange:a,children:[b.jsx(A_,{asChild:!0,children:b.jsx(Li,{id:c.id,"data-type":t,...r})}),b.jsx(R_,{container:d,children:b.jsxs(T_,{className:"iotooltipcontent",sideOffset:5,children:[b.jsxs("div",{className:"iotooltip_container",children:[b.jsxs("div",{className:"iotooltip_header",children:[o?b.jsx(Q3,{onClick:()=>i(!1)}):b.jsx(K3,{onClick:()=>i(!0)}),f&&b.jsx(Xo,{title:c.full_id,trigger:b.jsx($1,{}),onOpenChange:p=>{p&&c.try_get_full_value&&c.try_get_full_value(),i(p)},children:b.jsx(vE,{Component:f,iostore:e})})]}),u?b.jsx(xE,{Component:u,iostore:e}):`no preview available for "${t}"`]}),b.jsx(M$,{className:"iotooltipcontentarrow"})]})})]})},hl={"":[e=>e,e=>e],str_to_json:[e=>JSON.parse(e),e=>typeof e=="string"?e:JSON.stringify(e)],str_to_list:[e=>{try{const t=JSON.parse(e);return Array.isArray(t)?t:[t]}catch{try{return JSON.parse("["+e+"]")}catch{}}throw new Error("Invalid list")},e=>JSON.stringify(e)]},dJ=({iostore:e})=>{var c,u;const n=N.useContext(xe).render_options(),r=e.use(),[o,i]=Kr(r.render_options.type,n.typemap||{}),{Inputrenderer:s}=N.useContext(kn),a=o?(c=r.value_options)!=null&&c.options?pl:s[o]:void 0,l=hl[(i&&((u=n.inputconverter)==null?void 0:u[i]))??""]||hl[""];return r.hidden?null:b.jsxs("div",{className:"nodeinput","data-type":o,children:[b.jsx(fd,{iostore:e,typestring:o,position:ae.Left,type:"target"}),a&&b.jsx("div",{className:"iovaluefield nodrag","data-type":o,children:b.jsx(a,{iostore:e,inputconverter:l})}),b.jsx("div",{className:"ioname",children:r.name}),b.jsx(fd,{iostore:e,typestring:o,position:ae.Right,type:"source"})]})},pJ=({iostore:e})=>{const n=N.useContext(xe).render_options(),r=e.use(),[o]=Kr(r.type,n.typemap||{}),{Outputrenderer:i}=N.useContext(kn),s=o?i[o]:void 0;return r.hidden?null:b.jsxs("div",{className:"nodeoutput","data-type":o,children:[b.jsx(fd,{iostore:e,typestring:o,position:ae.Right,type:"source"}),b.jsx("div",{className:"ioname",children:r.name}),s?b.jsx("div",{className:"iovaluefield nodrag",children:b.jsx(s,{iostore:e})}):b.jsx("div",{className:"iovaluefield",children:b.jsx(nJ,{iostore:e,typestring:o})})]})},hJ=e=>{const t=N.useContext(xe),n=bE(e),{DataPreviewViewRenderer:r,DataViewRenderer:o}=N.useContext(kn),i=t.render_options();if(e===void 0)return[void 0,n];const[s]=Kr(e.type,i.typemap||{});return s?r[s]?[r[s],n]:o[s]?[Zt(o[s]),n]:[Zt(ll),n]:[Zt(ll),n]};function gJ(e,t,n={}){const{maxFontSize:r=100,minFontSize:o=6,decrementFactor:i=.9}=n;if(!e||!t)return;if(i>=1||i<=0)throw new Error("decrementFactor must be between 0 and 1");const s=e.getBoundingClientRect(),a=s.width,l=s.height;let c=r;t.style.whiteSpace="nowrap",t.style.display="inline-block",t.style.fontSize=c+"px";let u=t.getBoundingClientRect();for(;(u.width>a||u.height>l)&&c>o;)c*=i,t.style.fontSize=c+"px",u=t.getBoundingClientRect()}function mJ(e={n:0,elapsed:0,ascii:!1,unit:"it",unit_scale:!1,unit_divisor:1e3}){let t=e.total??null;const{n,unit_scale:r,elapsed:o,unit:i,unit_divisor:s,prefix:a="",rate:l=void 0,postfix:c=null,initial:u=0}=e;t!==null&&n>=t+.5&&(t=null);let f=n,d=t,p=l;r&&r!==!0&&r!==1&&(t!==null&&(d=t*r),f=n*r,l!==void 0&&(p=l*r));const g=fb(o);p===void 0&&o>0&&(p=(f-u)/o);const h=p?1/p:void 0,[y,m]=p?aa(p,s):[void 0,""],[x,v]=h?aa(h,1e3):[void 0,""],C=(y||"?")+`${m}${i}/s`,S=x?`${x}${v}s/`+i:"?",E=h&&h>1?S:C,I=r?aa(f,s).join(""):f.toString(),P=r&&d!==null?aa(d,s).join(""):(d==null?void 0:d.toString())??"?",M=p&&d!==null?(d-f)/p:0,w=p?fb(M):"?",R=a?`${a}: `:"";if(t!==null){const O=f/t*100,L=` ${I}/${P} [${g} < ${w}, ${E}${c??""}]`;return`${R}${O.toFixed(0)}%${L}`}return`${R}${I}${i} [${g}, ${E}${c??""}]`}function fb(e){const t=Math.floor(e/60),n=Math.floor(e%60);return`${t}:${n.toString().padStart(2,"0")}`}function aa(e,t){const n=["","K","M","G","T"];let r=0;for(;e>=t&&r<n.length-1;)e/=t,r++;return[e.toFixed(2),n[r]]}const yJ=({state:e,className:t="reacttqdm",...n})=>{const r=N.useRef(null),o=N.useRef(null);N.useEffect(()=>{const s=()=>{!r.current||!o.current||gJ(r.current,o.current,{maxFontSize:12,decrementFactor:.9})};return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}},[e]);const i=e.total?e.n/e.total*100:0;return b.jsx("div",{ref:r,className:t,...n,children:b.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[b.jsx("div",{className:t+"-bar",style:{position:"absolute",width:"100%",height:"100%",overflow:"hidden"},children:b.jsx("div",{className:t+"-progress",style:{width:`${i}%`,height:"100%"}})}),b.jsx("div",{className:t+"-text",ref:o,children:mJ(e)})]})})},bJ=k.memo(({node_data:e})=>{const t=N.useContext(xe),n=()=>{t.on_node_action({type:"trigger",from_remote:!1,id:e.id})};return b.jsxs("div",{className:"nodeheader",title:e.description||e.node_name,children:[b.jsxs("div",{className:"nodeheader_element",children:[b.jsx(tF,{fontSize:"inherit",className:"triggerbutton",onClick:n}),b.jsx(eF,{fontSize:"inherit",onClick:async()=>{var r;console.log("nodestatus",await((r=t.worker)==null?void 0:r.get_node_status(e.id)))}})]}),b.jsx("div",{className:"nodeheader_element nodeheader_title",children:b.jsx("div",{className:"nodeheader_title_text",children:e.node_name})}),b.jsx("div",{className:"nodeheader_element",children:b.jsx(ds,{fontSize:"inherit"})})]})}),vJ=({iostore:e,node_data:t})=>{var i,s;const n=e.use(),[r,o]=hJ(n);return b.jsx("div",{className:"nodrag nodedatabody","data-src":((s=(i=t.render_options)==null?void 0:i.data)==null?void 0:s.src)||"",children:r&&n&&b.jsx(Xo,{title:n.full_id,trigger:b.jsx("div",{className:"nodedatabutton",children:b.jsx(xE,{Component:r,iostore:e})}),onOpenChange:a=>{a&&n!=null&&n.try_get_full_value&&(n==null||n.try_get_full_value())},children:o&&b.jsx(vE,{Component:o,iostore:e})})})},xJ=k.memo(({node_data:e})=>{var n,r,o,i;const t=(r=(n=e.render_options)==null?void 0:n.data)!=null&&r.src?e.io[(i=(o=e.render_options)==null?void 0:o.data)==null?void 0:i.src]:void 0;return b.jsxs("div",{className:"nodebody",children:[e.outputs.map(s=>b.jsx(pJ,{iostore:e.io[s]},s)),t&&b.jsx(vJ,{node_data:e,iostore:t}),e.inputs.map(s=>b.jsx(dJ,{iostore:e.io[s]},s))]})}),wE=k.memo(({node_data:e})=>{const[t,n]=N.useState(e.name);N.useEffect(()=>{n(e.name)},[e]);const r=N.useContext(xe),o=s=>{n(s.target.value)},i=s=>{const a=s.target.value;r.on_node_action({type:"update",from_remote:!1,id:e.id,node:{name:a}})};return b.jsx("input",{className:"nodename_input",value:t,onChange:o,onBlur:i})}),wJ=({node_data:e})=>{if(!e.progress)return null;const t=e.progress();return b.jsx(yJ,{state:t,className:"nodeprogress"})},CJ=k.memo(({node_data:e})=>b.jsxs("div",{className:"nodefooter",children:[e.error&&b.jsx("div",{className:"nodeerror",children:e.error}),b.jsx(wJ,{node_data:e})]})),_J=e=>{const t=N.useContext(xe),[n,r]=N.useState(!1),o=e.in_trigger(),i=N.useContext(kn),s=i.NodeContextExtenders[e.node_id],a=k.useMemo(()=>(s==null?void 0:s({node_data:e}))||{},[s,e]),l=k.useMemo(()=>({...a,node_data:e}),[a,e]),c=i.NodeHooks[e.node_id];for(const u of c||[])u({nodecontext:l});return N.useEffect(()=>{var u;(u=t.worker)==null||u.call_hooks("node_mounted",e.id)},[t.worker,e.id]),N.useEffect(()=>{let u;return o&&!n?r(!0):n&&(u=setTimeout(()=>r(!1),200)),()=>clearTimeout(u)},[o,n]),{visualTrigger:n,nodecontext:l}},gh=k.createContext(null),SJ=({data:e})=>{const t=e.nodestore.use(),n=t.properties["frontend:collapsed"]||!1,{visualTrigger:r,nodecontext:o}=_J(t);return b.jsx(gh.Provider,{value:o,children:b.jsxs("div",{className:"innernode"+(r?" intrigger":"")+(t.error?" error":""),children:[b.jsx(bJ,{node_data:t}),b.jsx(wE,{node_data:t}),n?null:b.jsx(xJ,{node_data:t}),b.jsx(CJ,{node_data:t})]})})},EJ=({iostore:e})=>{var c,u;const n=k.useContext(xe).render_options(),r=e.use(),[o,i]=Kr(r.render_options.type,n.typemap||{}),{Inputrenderer:s}=k.useContext(kn),a=o?(c=r.value_options)!=null&&c.options?pl:s[o]:void 0,l=hl[(i&&((u=n.inputconverter)==null?void 0:u[i]))??""]||hl[""];return b.jsxs("div",{className:"nodesettings_component",children:[b.jsx("div",{children:r.name}),a&&b.jsx(a,{iostore:e,inputconverter:l}),b.jsx("div",{children:b.jsxs("label",{children:["hidden:",b.jsx("input",{className:"styledcheckbox",type:"checkbox",disabled:r.connected,onChange:f=>{var d;(d=r.set_hidden)==null||d.call(r,f.target.checked)},checked:r.hidden})]})})]})},IJ=({iostore:e})=>{const t=e.use();return b.jsxs("div",{className:"nodesettings_component",children:[b.jsx("div",{children:t.name}),b.jsx("div",{children:b.jsxs("label",{children:["hidden:",b.jsx("input",{className:"styledcheckbox",type:"checkbox",disabled:t.connected,onChange:n=>{var r;(r=t.set_hidden)==null||r.call(t,n.target.checked)},checked:t.hidden})]})})]})},kJ=({nodestore:e})=>{const t=e.use();return b.jsxs("div",{className:"nodesettings_content",children:[b.jsx("div",{className:"nodesettings_section",children:b.jsxs("div",{className:"nodesettings_component",children:[b.jsx("div",{children:"Name"}),b.jsx("div",{children:b.jsx(wE,{node_data:t})})]})}),b.jsxs("div",{className:"nodesettings_section",children:[b.jsx("div",{children:"Inputs"}),t.inputs.map(n=>b.jsx(EJ,{iostore:t.io[n]},n))]}),b.jsxs("div",{className:"nodesettings_section",children:[b.jsx("div",{children:"Outputs"}),t.outputs.map(n=>b.jsx(IJ,{iostore:t.io[n]},n))]})]})},AJ=()=>{const e=k.useContext(xe),t=e.local_state(r=>r.selected_nodes);if(t.length===0)return b.jsx("div",{children:"Node Settings"});if(t.length>1)return b.jsx("div",{children:"Multiple Nodes Selected"});const n=e.nodespace.get_node(t[0]);return n?b.jsx(kJ,{nodestore:n}):b.jsx("div",{children:"Node not found"})},RJ=()=>{const e=k.useContext(xe),t=e.local_settings(o=>o.view_settings.expand_node_props),n=e.local_settings(o=>o.update_view_settings),r=o=>{n({expand_node_props:o})};return b.jsx(lC,{maxSize:"300px",direction:"left",expanded:t===void 0?!1:t,containerClassName:"pos-right pos-top bg1 h-12",className:"nodesettings_content",onExpandChange:r,children:b.jsx(AJ,{})})},TJ=({id:e,sourceX:t,sourceY:n,targetX:r,targetY:o,sourcePosition:i,targetPosition:s,data:a,...l})=>{const[c]=Ed({sourceX:t,sourceY:n,sourcePosition:i,targetX:r,targetY:o,targetPosition:s});return b.jsx(b.Fragment,{children:b.jsx(as,{id:e,path:c,...l})})},NJ=e=>({nodes:e.nodes,edges:e.edges,onNodesChange:e.onNodesChange,onEdgesChange:e.onEdgesChange,onConnect:e.onConnect}),PJ={default:SJ},OJ={default:TJ},MJ=()=>{const e=ss(),t=N.useContext(xe);return t.rf_instance=e,b.jsx(b.Fragment,{})},DJ=()=>{const e=N.useContext(xe),t=Mo("Delete"),n=fP(),r=cP();if(t){for(const o of n)if(o.selected){if(!e.worker)return b.jsx(b.Fragment,{});if(!o.source||!o.target)return b.jsx(b.Fragment,{});if(!o.sourceHandle||!o.targetHandle)return b.jsx(b.Fragment,{});e.worker.remove_edge({src_nid:o.source,src_ioid:o.sourceHandle,trg_nid:o.target,trg_ioid:o.targetHandle})}for(const o of r)if(o.selected){if(!e.worker)return b.jsx(b.Fragment,{});e.worker.remove_node(o.id)}}return b.jsx(b.Fragment,{})},FJ=({id:e,top:t,left:n,right:r,bottom:o,...i})=>{const{getNode:s,setNodes:a,addNodes:l,setEdges:c}=ss(),u=N.useContext(xe),f=N.useCallback(()=>{const h=s(e);if(!h)return;const y={x:h.position.x+50,y:h.position.y+50};l({...h,id:`${h.id}-copy`,position:y})},[e,s,l]),d=N.useCallback(()=>{u.on_node_action({type:"delete",id:e,from_remote:!1})},[e,a,c]),p=u.nodespace.get_node(e,!1);if(!p)return b.jsx(b.Fragment,{children:" "});const g=p.use();return b.jsxs("div",{style:{top:t,left:n,right:r,bottom:o},className:"context-menu",...i,children:[b.jsx("p",{style:{fontWeight:"bold"},children:b.jsx("small",{children:g.name})}),b.jsx("button",{onClick:f,children:"duplicate"}),b.jsx("button",{onClick:d,children:"delete"})]})},CE=e=>{const t=N.useContext(xe),n=N.useRef(null);N.useEffect(()=>{t.reactflowRef=n.current},[n]);const[r,o]=N.useState(null),i=({nodes:d,edges:p})=>{const g=t.local_state.getState();t.local_state.setState({...g,selected_nodes:d.map(h=>h.id),selected_edges:p.map(h=>h.id)})},s=N.useCallback(()=>o(null),[o]),{nodes:a,edges:l,onNodesChange:c,onEdgesChange:u,onConnect:f}=t.useReactFlowStore(S$(NJ));return b.jsx("div",{className:"reactflowlayer",children:b.jsxs(aP,{nodes:a,edges:l,onNodesChange:c,onEdgesChange:u,onConnect:f,nodeTypes:PJ,edgeTypes:OJ,minZoom:e.minZoom,maxZoom:e.maxZoom,fitView:!0,onSelectionChange:i,ref:n,onPaneClick:s,panOnDrag:!e.static,children:[b.jsx(MJ,{}),b.jsx(DJ,{}),b.jsx(mP,{color:"#888",gap:16,size:1}),e.minimap&&b.jsx(DP,{nodeStrokeWidth:3,pannable:!e.static,zoomable:!e.static,zoomStep:3}),r&&b.jsx(FJ,{onClick:s,...r})]})})},_c=N.createContext(void 0),Dr=N.forwardRef((e,t)=>{const{asChild:n,children:r,className:o,style:i,...s}=e,[a,l]=N.useState(!1),c=N.useRef(null),[u,f]=N.useState(null),[d,p]=N.useState({}),g=e.htime||300,h=e.vtime||300,y=e.hdelay||0,m=e.vdelay||200;N.useImperativeHandle(t,()=>c.current,[]);const x=async()=>{if(!c.current)return;c.current.style.transition="none",c.current.style.position="",c.current.style.top="",c.current.style.left="",c.current.style.width="",c.current.style.height="";const I=c.current.getBoundingClientRect();f([I.left,I.top,I.width,I.height]),c.current.style.transition="none",p({position:"absolute",top:`${I.top}px`,left:`${I.left}px`,width:`${I.width}px`,height:`${I.height}px`}),p(O=>({...O,transitionProperty:"width, left, height, top",transitionDuration:`${g}ms, ${g}ms, ${h}ms, ${h}ms`})),l(!0);const P=new Promise(O=>{setTimeout(()=>{p(L=>({...L,left:"0px",width:"100vw"})),O()},y)}),M=new Promise(O=>{setTimeout(()=>{p(L=>({...L,top:"0px",height:"100vh"})),O()},m)}),w=Math.max(g+y,h+m),R=new Promise(O=>{setTimeout(()=>{O()},w)});await Promise.all([P,M,R])},v=async()=>{if(!c.current||!u)return;const I={transitionProperty:"width, left, height, top",transitionDuration:`${g}ms, ${g}ms, ${h}ms, ${h}ms`};p(D=>({...D,...I}));const[P,M,w,R]=u,O=new Promise(D=>{setTimeout(()=>{p(z=>({...z,left:`${P}px`,width:`${w}px`})),D()},m)}),L=new Promise(D=>{setTimeout(()=>{p(z=>({...z,top:`${M}px`,height:`${R}px`})),D()},y)}),A=Math.max(g+y,h+m),j=new Promise(D=>{setTimeout(()=>{D()},A)});await Promise.all([O,L,j]),c.current.style.transition="",p({}),l(!1)},C=async()=>{c.current&&(a?await v():await x())};let S;if(n&&k.isValidElement(r)){const I=r,P=[I.props.className,o,"smooth-expand",a?"smooth-expand-expanded":""].filter(Boolean).join(" "),M={...I.props.style,...i,...d};S=k.cloneElement(I,{ref:c,className:P,style:M,...s})}else S=b.jsx("div",{ref:c,...s,className:`smooth-expand ${a?"smooth-expand-expanded":""} ${o||""}`,style:{...i,...d},children:r});const E=b.jsx(_c.Provider,{value:{isExpanded:a,toggleExpand:C},children:S});return a?hd.createPortal(E,document.body):E});Dr.Trigger=function({children:e}){const t=N.useContext(_c);if(!t)throw new Error("SmoothExpandComponent.Trigger must be used within a SmoothExpandComponent");return b.jsx("div",{style:{cursor:"pointer"},onClick:t.toggleExpand,children:e})};Dr.Expanded=function({children:e}){const t=N.useContext(_c);if(!t)throw new Error("SmoothExpandComponent.Expanded must be used within a SmoothExpandComponent");return t.isExpanded?b.jsx(b.Fragment,{children:e}):null};Dr.Collapsed=function({children:e}){const t=N.useContext(_c);if(!t)throw new Error("SmoothExpandComponent.Collapsed must be used within a SmoothExpandComponent");return t.isExpanded?null:b.jsx(b.Fragment,{children:e})};const Sc=k.createContext(void 0),ar=N.forwardRef((e,t)=>{const{asChild:n,children:r,className:o,style:i,...s}=e,a=N.useRef(null);N.useImperativeHandle(t,()=>a.current,[]);const[l,c]=N.useState(!1),u=N.useCallback(async()=>{try{const d=a.current;if(!d)return;if(!l)d.requestFullscreen?await d.requestFullscreen():d.mozRequestFullScreen?await d.mozRequestFullScreen():d.webkitRequestFullscreen?await d.webkitRequestFullscreen():d.msRequestFullscreen&&await d.msRequestFullscreen(),c(!0);else{const p=document;p.exitFullscreen?await p.exitFullscreen():p.mozCancelFullScreen?await p.mozCancelFullScreen():p.webkitExitFullscreen?await p.webkitExitFullscreen():p.msExitFullscreen&&await p.msExitFullscreen(),c(!1)}}catch(d){console.error("Error toggling fullscreen",d)}},[l]);N.useEffect(()=>{const d=()=>{const p=document.fullscreenElement;c(!!p)};return document.addEventListener("fullscreenchange",d),document.addEventListener("webkitfullscreenchange",d),document.addEventListener("mozfullscreenchange",d),document.addEventListener("MSFullscreenChange",d),()=>{document.removeEventListener("fullscreenchange",d),document.removeEventListener("webkitfullscreenchange",d),document.removeEventListener("mozfullscreenchange",d),document.removeEventListener("MSFullscreenChange",d)}},[]);let f;if(n&&k.isValidElement(r)){const d=r,p=[d.props.className,o].filter(Boolean).join(" "),g={...d.props.style,...i};f=k.cloneElement(d,{ref:a,className:p,style:g,...s})}else f=b.jsx("div",{ref:a,...s,className:o,style:i,children:r});return b.jsx(Sc.Provider,{value:{isFullScreen:l,toggleFullscreen:u},children:f})});ar.Trigger=function({children:e}){const t=k.useContext(Sc);if(!t)throw new Error("FullScreenComponent.Trigger must be used within a FullScreenComponent");return b.jsx("div",{style:{cursor:"pointer"},onClick:t.toggleFullscreen,children:e})};ar.InFullScreen=function({children:e}){const t=k.useContext(Sc);if(!t)throw new Error("FullScreenComponent.Expanded must be used within a FullScreenComponent");return t.isFullScreen?b.jsx(b.Fragment,{children:e}):null};ar.OutFullScreen=function({children:e}){const t=k.useContext(Sc);if(!t)throw new Error("FullScreenComponent.Collapsed must be used within a FullScreenComponent");return t.isFullScreen?null:b.jsx(b.Fragment,{children:e})};const jJ=({fnrf_zst:e,header:t,flow:n,library:r})=>{const[o,i]=N.useState(e.options.worker),s=k.useRef(null);e.workermanager&&(e.workermanager.on_setWorker=i),e.set_worker(o),k.useEffect(()=>{e.auto_progress()},[]),k.useEffect(()=>{e.local_state.setState({funcnodescontainerRef:s.current})},[s]);const a=e.plugins();return b.jsx(yE,{plugins:a,fnrf_zst:e,children:b.jsx(xe.Provider,{value:e,children:b.jsx(Dr,{asChild:!0,children:b.jsx(ar,{asChild:!0,children:b.jsx(PL,{style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",flex:1},children:b.jsxs("div",{ref:s,className:"funcnodesreactflowcontainer funcnodescontainer",children:[t.show&&b.jsx(VL,{...t}),b.jsxs("div",{className:"funcnodesreactflowbody",children:[b.jsx(CE,{...n}),o&&r.show&&b.jsx(w$,{}),o&&n.showNodeSettings&&b.jsx(RJ,{})]}),b.jsxs("div",{className:"funcnodesflaotingmenu",children:[b.jsx(ar.OutFullScreen,{children:n.allowExpand&&b.jsxs(Dr.Trigger,{children:[b.jsx(Dr.Expanded,{children:b.jsx(J3,{size:"xl",style:{padding:"4px"}})}),b.jsx(Dr.Collapsed,{children:b.jsx(q3,{size:"xl",style:{padding:"4px"}})})]})}),n.allowFullScreen&&b.jsxs(ar.Trigger,{children:[b.jsx(ar.OutFullScreen,{children:b.jsx($1,{size:"xl",style:{padding:"4px"}})}),b.jsx(ar.InFullScreen,{children:b.jsx(Z3,{size:"xl",style:{padding:"4px"}})})]})]})]})})})})})})},dd={};window.fnrf_zst===void 0&&(window.fnrf_zst=dd);const LJ={show:!0},BJ={show:!0,showmenu:!0},zJ={minimap:!0,static:!1,minZoom:.1,maxZoom:5,allowFullScreen:!0,allowExpand:!0,showNodeSettings:!0},_E={id:"",debug:!1,useWorkerManager:!0,show_library:!0,header:BJ,flow:zJ,library:LJ},xe=N.createContext(Nd(_E)),SE=e=>{let t=es(e,{..._E,id:Rx()}).new_obj;if(!t.useWorkerManager&&t.worker===void 0)return b.jsx("div",{children:"Error: If you don't use a worker manager, you must provide a default worker."});if(e.useWorkerManager&&e.workermanager_url===void 0)return b.jsx("div",{children:"Error: If you use a worker manager, you must provide a worker manager url."});let n=dd[t.id];n===void 0&&(n=Nd(t),dd[t.id]=n),n.options.debug=t.debug;const[r,o]=k.useState(t);return k.useEffect(()=>{const i=[];if(r.worker===void 0&&r.worker_url!==void 0){r.useWorkerManager=!1;const s=new Dd({url:r.worker_url,uuid:r.id,on_sync_complete:r.on_sync_complete});r.worker=s,i.push(()=>{s.disconnect()})}if(r.fnw_url!==void 0){if(r.worker===void 0)throw new Error("defining fnw_url requires a worker to be defined");const s=DM(r.fnw_url),a=r.worker.on_sync_complete,l=async c=>{const u=await s;c.on_sync_complete=a,await c.update_from_export(u)};r.worker.on_sync_complete=l}if(r.worker!==void 0&&r.worker.set_zustand(n),t.useWorkerManager){const s=new kM(t.workermanager_url,n);n.workermanager=s,i.push(()=>{s.remove()})}return o({...r}),r.on_ready&&typeof r.on_ready=="function"&&r.on_ready({fnrf_zst:n}),()=>{for(const s of i)s()}},[]),b.jsx(jJ,{fnrf_zst:n,header:r.header,library:r.library,flow:r.flow})},VJ=({nid:e,ioid:t,value:n,set_default:r=!1})=>{var i;(i=N.useContext(xe).worker)==null||i.set_io_value({nid:e,ioid:t,value:n,set_default:r})},GJ={set_io_value:VJ},$J=e=>(new ox("FuncNodes",e.debug?"debug":"info").debug("Initalizing FuncNodes with props:",e),b.jsx("div",{className:"FuncnodesApp",children:b.jsx(SE,{...e})}));exports.FuncNodes=$J;exports.FuncNodesContext=xe;exports.FuncNodesReactFlowZustand=Nd;exports.FuncNodesWorker=Tx;exports.FuncnodesReactFlow=SE;exports.NodeContext=gh;exports.ReactFlowLayer=CE;exports.RenderMappingContext=kn;exports.RenderMappingProvider=yE;exports.WebSocketWorker=Dd;exports.deep_update=es;exports.helperfunctions=GJ;
864
+ `]))),hU=function(t,n){var r=t.isFocused,o=t.size,i=t.theme,s=i.colors,a=i.spacing.baseUnit;return pe({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?s.neutral60:s.neutral20,padding:a*2})},Du=function(t){var n=t.delay,r=t.offset;return le("span",{css:nh({animation:"".concat(pU," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbS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b2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},gU=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,i=o===void 0?4:o,s=Jn(t,oU);return le("div",ce({},We(pe(pe({},s),{},{innerProps:n,isRtl:r,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),le(Du,{delay:0,offset:r}),le(Du,{delay:160,offset:!0}),le(Du,{delay:320,offset:!r}))},mU=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.theme,s=i.colors,a=i.borderRadius,l=i.spacing;return pe({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?s.neutral5:s.neutral0,borderColor:r?s.neutral10:o?s.primary:s.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:o?s.primary:s.neutral30}})},yU=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.innerRef,s=t.innerProps,a=t.menuIsOpen;return le("div",ce({ref:i},We(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":a}),s,{"aria-disabled":r||void 0}),n)},bU=yU,vU=["data"],xU=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},wU=function(t){var n=t.children,r=t.cx,o=t.getStyles,i=t.getClassNames,s=t.Heading,a=t.headingProps,l=t.innerProps,c=t.label,u=t.theme,f=t.selectProps;return le("div",ce({},We(t,"group",{group:!0}),l),le(s,ce({},a,{selectProps:f,theme:u,getStyles:o,getClassNames:i,cx:r}),c),le("div",null,n))},CU=function(t,n){var r=t.theme,o=r.colors,i=r.spacing;return pe({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},_U=function(t){var n=YS(t);n.data;var r=Jn(n,vU);return le("div",ce({},We(t,"groupHeading",{"group-heading":!0}),r))},SU=wU,EU=["innerRef","isDisabled","isHidden","inputClassName"],IU=function(t,n){var r=t.isDisabled,o=t.value,i=t.theme,s=i.spacing,a=i.colors;return pe(pe({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},kU),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:a.neutral80})},nE={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},kU={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":pe({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},nE)},AU=function(t){return pe({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},nE)},RU=function(t){var n=t.cx,r=t.value,o=YS(t),i=o.innerRef,s=o.isDisabled,a=o.isHidden,l=o.inputClassName,c=Jn(o,EU);return le("div",ce({},We(t,"input",{"input-container":!0}),{"data-value":r||""}),le("input",ce({className:n({input:!0},l),ref:i,style:AU(a),disabled:s},c)))},TU=RU,NU=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,s=r.colors;return pe({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},PU=function(t,n){var r=t.theme,o=r.borderRadius,i=r.colors,s=t.cropWithEllipsis;return pe({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},OU=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,s=r.colors,a=t.isFocused;return pe({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:a?s.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},rE=function(t){var n=t.children,r=t.innerProps;return le("div",r,n)},MU=rE,DU=rE;function FU(e){var t=e.children,n=e.innerProps;return le("div",ce({role:"button"},n),t||le(ph,{size:14}))}var jU=function(t){var n=t.children,r=t.components,o=t.data,i=t.innerProps,s=t.isDisabled,a=t.removeProps,l=t.selectProps,c=r.Container,u=r.Label,f=r.Remove;return le(c,{data:o,innerProps:pe(pe({},We(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),i),selectProps:l},le(u,{data:o,innerProps:pe({},We(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),le(f,{data:o,innerProps:pe(pe({},We(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:l}))},LU=jU,BU=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.isSelected,s=t.theme,a=s.spacing,l=s.colors;return pe({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?l.primary:o?l.primary25:"transparent",color:r?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:i?l.primary:l.primary50}})},zU=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.isSelected,s=t.innerRef,a=t.innerProps;return le("div",ce({},We(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":i}),{ref:s,"aria-disabled":r},a),n)},VU=zU,GU=function(t,n){var r=t.theme,o=r.spacing,i=r.colors;return pe({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},$U=function(t){var n=t.children,r=t.innerProps;return le("div",ce({},We(t,"placeholder",{placeholder:!0}),r),n)},HU=$U,WU=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing,s=o.colors;return pe({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?s.neutral40:s.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},XU=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return le("div",ce({},We(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},YU=XU,UU={ClearIndicator:uU,Control:bU,DropdownIndicator:lU,DownChevron:eE,CrossIcon:ph,Group:SU,GroupHeading:_U,IndicatorsContainer:nU,IndicatorSeparator:dU,Input:TU,LoadingIndicator:gU,Menu:GY,MenuList:HY,MenuPortal:JY,LoadingMessage:UY,NoOptionsMessage:YY,MultiValue:LU,MultiValueContainer:MU,MultiValueLabel:DU,MultiValueRemove:FU,Option:VU,Placeholder:HU,SelectContainer:KY,SingleValue:YU,ValueContainer:eU},ZU=function(t){return pe(pe({},UU),t.components)},Jy=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function JU(e,t){return!!(e===t||Jy(e)&&Jy(t))}function qU(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!JU(e[n],t[n]))return!1;return!0}function KU(e,t){t===void 0&&(t=qU);var n=null;function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var s=e.apply(this,o);return n={lastResult:s,lastArgs:o,lastThis:this},s}return r.clear=function(){n=null},r}function QU(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var eZ=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:QU},tZ=function(t){return le("span",ce({css:eZ},t))},qy=tZ,nZ={guidance:function(t){var n=t.isSearchable,r=t.isMulti,o=t.tabSelectsValue,i=t.context,s=t.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return s?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,o=r===void 0?"":r,i=t.labels,s=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return s?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,o=t.options,i=t.label,s=i===void 0?"":i,a=t.selectValue,l=t.isDisabled,c=t.isSelected,u=t.isAppleDevice,f=function(h,y){return h&&h.length?"".concat(h.indexOf(y)+1," of ").concat(h.length):""};if(n==="value"&&a)return"value ".concat(s," focused, ").concat(f(a,r),".");if(n==="menu"&&u){var d=l?" disabled":"",p="".concat(c?" selected":"").concat(d);return"".concat(s).concat(p,", ").concat(f(o,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},rZ=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,s=t.isFocused,a=t.selectValue,l=t.selectProps,c=t.id,u=t.isAppleDevice,f=l.ariaLiveMessages,d=l.getOptionLabel,p=l.inputValue,g=l.isMulti,h=l.isOptionDisabled,y=l.isSearchable,m=l.menuIsOpen,x=l.options,v=l.screenReaderStatus,C=l.tabSelectsValue,S=l.isLoading,E=l["aria-label"],I=l["aria-live"],P=N.useMemo(function(){return pe(pe({},nZ),f||{})},[f]),M=N.useMemo(function(){var j="";if(n&&P.onChange){var D=n.option,z=n.options,V=n.removedValue,F=n.removedValues,_=n.value,G=function(U){return Array.isArray(U)?null:U},$=V||D||G(_),T=$?d($):"",H=z||F||void 0,J=H?H.map(d):[],W=pe({isDisabled:$&&h($,a),label:T,labels:J},n);j=P.onChange(W)}return j},[n,P,h,a,d]),w=N.useMemo(function(){var j="",D=r||o,z=!!(r&&a&&a.includes(r));if(D&&P.onFocus){var V={focused:D,label:d(D),isDisabled:h(D,a),isSelected:z,options:i,context:D===r?"menu":"value",selectValue:a,isAppleDevice:u};j=P.onFocus(V)}return j},[r,o,d,h,P,i,a,u]),R=N.useMemo(function(){var j="";if(m&&x.length&&!S&&P.onFilter){var D=v({count:i.length});j=P.onFilter({inputValue:p,resultsMessage:D})}return j},[i,p,m,P,x,v,S]),O=(n==null?void 0:n.action)==="initial-input-focus",L=N.useMemo(function(){var j="";if(P.guidance){var D=o?"value":m?"menu":"input";j=P.guidance({"aria-label":E,context:D,isDisabled:r&&h(r,a),isMulti:g,isSearchable:y,tabSelectsValue:C,isInitialFocus:O})}return j},[E,r,o,g,h,y,m,P,a,C,O]),A=le(N.Fragment,null,le("span",{id:"aria-selection"},M),le("span",{id:"aria-focused"},w),le("span",{id:"aria-results"},R),le("span",{id:"aria-guidance"},L));return le(N.Fragment,null,le(qy,{id:c},O&&A),le(qy,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!O&&A))},oZ=rZ,ud=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],iZ=new RegExp("["+ud.map(function(e){return e.letters}).join("")+"]","g"),oE={};for(var Fu=0;Fu<ud.length;Fu++)for(var ju=ud[Fu],Lu=0;Lu<ju.letters.length;Lu++)oE[ju.letters[Lu]]=ju.base;var iE=function(t){return t.replace(iZ,function(n){return oE[n]})},sZ=KU(iE),Ky=function(t){return t.replace(/^\s+|\s+$/g,"")},aZ=function(t){return"".concat(t.label," ").concat(t.value)},lZ=function(t){return function(n,r){if(n.data.__isNew__)return!0;var o=pe({ignoreCase:!0,ignoreAccents:!0,stringify:aZ,trim:!0,matchFrom:"any"},t),i=o.ignoreCase,s=o.ignoreAccents,a=o.stringify,l=o.trim,c=o.matchFrom,u=l?Ky(r):r,f=l?Ky(a(n)):a(n);return i&&(u=u.toLowerCase(),f=f.toLowerCase()),s&&(u=sZ(u),f=iE(f)),c==="start"?f.substr(0,u.length)===u:f.indexOf(u)>-1}},cZ=["innerRef"];function uZ(e){var t=e.innerRef,n=Jn(e,cZ),r=MY(n,"onExited","in","enter","exit","appear");return le("input",ce({ref:t},r,{css:nh({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var fZ=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function dZ(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,s=N.useRef(!1),a=N.useRef(!1),l=N.useRef(0),c=N.useRef(null),u=N.useCallback(function(y,m){if(c.current!==null){var x=c.current,v=x.scrollTop,C=x.scrollHeight,S=x.clientHeight,E=c.current,I=m>0,P=C-S-v,M=!1;P>m&&s.current&&(r&&r(y),s.current=!1),I&&a.current&&(i&&i(y),a.current=!1),I&&m>P?(n&&!s.current&&n(y),E.scrollTop=C,M=!0,s.current=!0):!I&&-m>v&&(o&&!a.current&&o(y),E.scrollTop=0,M=!0,a.current=!0),M&&fZ(y)}},[n,r,o,i]),f=N.useCallback(function(y){u(y,y.deltaY)},[u]),d=N.useCallback(function(y){l.current=y.changedTouches[0].clientY},[]),p=N.useCallback(function(y){var m=l.current-y.changedTouches[0].clientY;u(y,m)},[u]),g=N.useCallback(function(y){if(y){var m=NY?{passive:!1}:!1;y.addEventListener("wheel",f,m),y.addEventListener("touchstart",d,m),y.addEventListener("touchmove",p,m)}},[p,d,f]),h=N.useCallback(function(y){y&&(y.removeEventListener("wheel",f,!1),y.removeEventListener("touchstart",d,!1),y.removeEventListener("touchmove",p,!1))},[p,d,f]);return N.useEffect(function(){if(t){var y=c.current;return g(y),function(){h(y)}}},[t,g,h]),function(y){c.current=y}}var Qy=["boxSizing","height","overflow","paddingRight","position"],eb={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function tb(e){e.cancelable&&e.preventDefault()}function nb(e){e.stopPropagation()}function rb(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ob(){return"ontouchstart"in window||navigator.maxTouchPoints}var ib=!!(typeof window<"u"&&window.document&&window.document.createElement),pi=0,fo={capture:!1,passive:!1};function pZ(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=N.useRef({}),i=N.useRef(null),s=N.useCallback(function(l){if(ib){var c=document.body,u=c&&c.style;if(r&&Qy.forEach(function(g){var h=u&&u[g];o.current[g]=h}),r&&pi<1){var f=parseInt(o.current.paddingRight,10)||0,d=document.body?document.body.clientWidth:0,p=window.innerWidth-d+f||0;Object.keys(eb).forEach(function(g){var h=eb[g];u&&(u[g]=h)}),u&&(u.paddingRight="".concat(p,"px"))}c&&ob()&&(c.addEventListener("touchmove",tb,fo),l&&(l.addEventListener("touchstart",rb,fo),l.addEventListener("touchmove",nb,fo))),pi+=1}},[r]),a=N.useCallback(function(l){if(ib){var c=document.body,u=c&&c.style;pi=Math.max(pi-1,0),r&&pi<1&&Qy.forEach(function(f){var d=o.current[f];u&&(u[f]=d)}),c&&ob()&&(c.removeEventListener("touchmove",tb,fo),l&&(l.removeEventListener("touchstart",rb,fo),l.removeEventListener("touchmove",nb,fo)))}},[r]);return N.useEffect(function(){if(t){var l=i.current;return s(l),function(){a(l)}}},[t,s,a]),function(l){i.current=l}}function hZ(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var gZ=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},mZ=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAg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Fycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:hZ};function yZ(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,i=e.onBottomArrive,s=e.onBottomLeave,a=e.onTopArrive,l=e.onTopLeave,c=dZ({isEnabled:o,onBottomArrive:i,onBottomLeave:s,onTopArrive:a,onTopLeave:l}),u=pZ({isEnabled:n}),f=function(p){c(p),u(p)};return le(N.Fragment,null,n&&le("div",{onClick:gZ,css:mZ}),t(f))}function bZ(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var vZ=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:bZ},xZ=function(t){var n=t.name,r=t.onFocus;return le("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:vZ,value:"",onChange:function(){}})},wZ=xZ;function hh(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function CZ(){return hh(/^iPhone/i)}function sE(){return hh(/^Mac/i)}function _Z(){return hh(/^iPad/i)||sE()&&navigator.maxTouchPoints>1}function SZ(){return CZ()||_Z()}function EZ(){return sE()||SZ()}var IZ=function(t){return t.label},kZ=function(t){return t.label},AZ=function(t){return t.value},RZ=function(t){return!!t.isDisabled},TZ={clearIndicator:cU,container:qY,control:mU,dropdownIndicator:aU,group:xU,groupHeading:CU,indicatorsContainer:tU,indicatorSeparator:fU,input:IU,loadingIndicator:hU,loadingMessage:XY,menu:BY,menuList:$Y,menuPortal:ZY,multiValue:NU,multiValueLabel:PU,multiValueRemove:OU,noOptionsMessage:WY,option:BU,placeholder:GU,singleValue:WU,valueContainer:QY},NZ={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},PZ=4,aE=4,OZ=38,MZ=aE*2,DZ={baseUnit:aE,controlHeight:OZ,menuGutter:MZ},Bu={borderRadius:PZ,colors:NZ,spacing:DZ},FZ={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Uy(),captureMenuScroll:!Uy(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:lZ(),formatGroupLabel:IZ,getOptionLabel:kZ,getOptionValue:AZ,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:RZ,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!RY(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function sb(e,t,n,r){var o=uE(e,t,n),i=fE(e,t,n),s=cE(e,t),a=dl(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:s,value:a,index:r}}function ka(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(s,a){return sb(e,s,t,a)}).filter(function(s){return lb(e,s)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=sb(e,n,t,r);return lb(e,i)?i:void 0}).filter(PY)}function lE(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,dh(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function ab(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,dh(r.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function jZ(e,t){return lE(ka(e,t))}function lb(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,i=t.isSelected,s=t.label,a=t.value;return(!pE(e)||!i)&&dE(e,{label:s,value:a,data:o},r)}function LZ(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var i=t.indexOf(n);if(i>-1)return n;if(o<t.length)return t[o]}return null}function BZ(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var zu=function(t,n){var r,o=(r=t.find(function(i){return i.data===n}))===null||r===void 0?void 0:r.id;return o||null},cE=function(t,n){return t.getOptionLabel(n)},dl=function(t,n){return t.getOptionValue(n)};function uE(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function fE(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=dl(e,t);return n.some(function(o){return dl(e,o)===r})}function dE(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var pE=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},zZ=1,hE=function(e){gY(n,e);var t=yY(n);function n(r){var o;if(pY(this,n),o=t.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=EZ(),o.controlRef=null,o.getControlRef=function(l){o.controlRef=l},o.focusedOptionRef=null,o.getFocusedOptionRef=function(l){o.focusedOptionRef=l},o.menuListRef=null,o.getMenuListRef=function(l){o.menuListRef=l},o.inputRef=null,o.getInputRef=function(l){o.inputRef=l},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(l,c){var u=o.props,f=u.onChange,d=u.name;c.name=d,o.ariaOnChange(l,c),f(l,c)},o.setValue=function(l,c,u){var f=o.props,d=f.closeMenuOnSelect,p=f.isMulti,g=f.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:g}),d&&(o.setState({inputIsHiddenAfterUpdate:!p}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(l,{action:c,option:u})},o.selectOption=function(l){var c=o.props,u=c.blurInputOnSelect,f=c.isMulti,d=c.name,p=o.state.selectValue,g=f&&o.isOptionSelected(l,p),h=o.isOptionDisabled(l,p);if(g){var y=o.getOptionValue(l);o.setValue(p.filter(function(m){return o.getOptionValue(m)!==y}),"deselect-option",l)}else if(!h)f?o.setValue([].concat(dh(p),[l]),"select-option",l):o.setValue(l,"select-option");else{o.ariaOnChange(l,{action:"select-option",option:l,name:d});return}u&&o.blurInput()},o.removeValue=function(l){var c=o.props.isMulti,u=o.state.selectValue,f=o.getOptionValue(l),d=u.filter(function(g){return o.getOptionValue(g)!==f}),p=sa(c,d,d[0]||null);o.onChange(p,{action:"remove-value",removedValue:l}),o.focusInput()},o.clearValue=function(){var l=o.state.selectValue;o.onChange(sa(o.props.isMulti,[],null),{action:"clear",removedValues:l})},o.popValue=function(){var l=o.props.isMulti,c=o.state.selectValue,u=c[c.length-1],f=c.slice(0,c.length-1),d=sa(l,f,f[0]||null);u&&o.onChange(d,{action:"pop-value",removedValue:u})},o.getFocusedOptionId=function(l){return zu(o.state.focusableOptionsWithIds,l)},o.getFocusableOptionsWithIds=function(){return ab(ka(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return SY.apply(void 0,[o.props.classNamePrefix].concat(c))},o.getOptionLabel=function(l){return cE(o.props,l)},o.getOptionValue=function(l){return dl(o.props,l)},o.getStyles=function(l,c){var u=o.props.unstyled,f=TZ[l](c,u);f.boxSizing="border-box";var d=o.props.styles[l];return d?d(f,c):f},o.getClassNames=function(l,c){var u,f;return(u=(f=o.props.classNames)[l])===null||u===void 0?void 0:u.call(f,c)},o.getElementId=function(l){return"".concat(o.state.instancePrefix,"-").concat(l)},o.getComponents=function(){return ZU(o.props)},o.buildCategorizedOptions=function(){return ka(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return lE(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(l,c){o.setState({ariaSelection:pe({value:l},c)})},o.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(l){o.blockOptionHover=!1},o.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&o.onMenuClose():c&&o.openMenu("first"):(c&&(o.openAfterFocus=!0),o.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},o.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!o.props.isDisabled){var c=o.props,u=c.isMulti,f=c.menuIsOpen;o.focusInput(),f?(o.setState({inputIsHiddenAfterUpdate:!u}),o.onMenuClose()):o.openMenu("first"),l.preventDefault()}},o.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(o.clearValue(),l.preventDefault(),o.openAfterFocus=!1,l.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(l){typeof o.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&Cc(l.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(l)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(l){var c=l.touches,u=c&&c.item(0);u&&(o.initialTouchX=u.clientX,o.initialTouchY=u.clientY,o.userIsDragging=!1)},o.onTouchMove=function(l){var c=l.touches,u=c&&c.item(0);if(u){var f=Math.abs(u.clientX-o.initialTouchX),d=Math.abs(u.clientY-o.initialTouchY),p=5;o.userIsDragging=f>p||d>p}},o.onTouchEnd=function(l){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(l.target)&&o.menuListRef&&!o.menuListRef.contains(l.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(l){o.userIsDragging||o.onControlMouseDown(l)},o.onClearIndicatorTouchEnd=function(l){o.userIsDragging||o.onClearIndicatorMouseDown(l)},o.onDropdownIndicatorTouchEnd=function(l){o.userIsDragging||o.onDropdownIndicatorMouseDown(l)},o.handleInputChange=function(l){var c=o.props.inputValue,u=l.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(u,{action:"input-change",prevInputValue:c}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(l){o.props.onFocus&&o.props.onFocus(l),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(l){var c=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(l),o.onInputChange("",{action:"input-blur",prevInputValue:c}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(l){if(!(o.blockOptionHover||o.state.focusedOption===l)){var c=o.getFocusableOptions(),u=c.indexOf(l);o.setState({focusedOption:l,focusedOptionId:u>-1?o.getFocusedOptionId(l):null})}},o.shouldHideSelectedOptions=function(){return pE(o.props)},o.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),o.focus()},o.onKeyDown=function(l){var c=o.props,u=c.isMulti,f=c.backspaceRemovesValue,d=c.escapeClearsValue,p=c.inputValue,g=c.isClearable,h=c.isDisabled,y=c.menuIsOpen,m=c.onKeyDown,x=c.tabSelectsValue,v=c.openMenuOnFocus,C=o.state,S=C.focusedOption,E=C.focusedValue,I=C.selectValue;if(!h&&!(typeof m=="function"&&(m(l),l.defaultPrevented))){switch(o.blockOptionHover=!0,l.key){case"ArrowLeft":if(!u||p)return;o.focusValue("previous");break;case"ArrowRight":if(!u||p)return;o.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(E)o.removeValue(E);else{if(!f)return;u?o.popValue():g&&o.clearValue()}break;case"Tab":if(o.isComposing||l.shiftKey||!y||!x||!S||v&&o.isOptionSelected(S,I))return;o.selectOption(S);break;case"Enter":if(l.keyCode===229)break;if(y){if(!S||o.isComposing)return;o.selectOption(S);break}return;case"Escape":y?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:p}),o.onMenuClose()):g&&d&&o.clearValue();break;case" ":if(p)return;if(!y){o.openMenu("first");break}if(!S)return;o.selectOption(S);break;case"ArrowUp":y?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":y?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!y)return;o.focusOption("pageup");break;case"PageDown":if(!y)return;o.focusOption("pagedown");break;case"Home":if(!y)return;o.focusOption("first");break;case"End":if(!y)return;o.focusOption("last");break;default:return}l.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++zZ),o.state.selectValue=Xy(r.value),r.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),s=o.buildFocusableOptions(),a=s.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=s[a],o.state.focusedOptionId=zu(i,s[a])}return o}return hY(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Yy(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(o){var i=this.props,s=i.isDisabled,a=i.menuIsOpen,l=this.state.isFocused;(l&&!s&&o.isDisabled||l&&a&&!o.menuIsOpen)&&this.focusInput(),l&&s&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!s&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Yy(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,s=this.state,a=s.selectValue,l=s.isFocused,c=this.buildFocusableOptions(),u=o==="first"?0:c.length-1;if(!this.props.isMulti){var f=c.indexOf(a[0]);f>-1&&(u=f)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[u],focusedOptionId:this.getFocusedOptionId(c[u])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,s=i.selectValue,a=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=s.indexOf(a);a||(l=-1);var c=s.length-1,u=-1;if(s.length){switch(o){case"previous":l===0?u=0:l===-1?u=c:u=l-1;break;case"next":l>-1&&l<c&&(u=l+1);break}this.setState({inputIsHidden:u!==-1,focusedValue:s[u]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,s=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var l=0,c=a.indexOf(s);s||(c=-1),o==="up"?l=c>0?c-1:a.length-1:o==="down"?l=(c+1)%a.length:o==="pageup"?(l=c-i,l<0&&(l=0)):o==="pagedown"?(l=c+i,l>a.length-1&&(l=a.length-1)):o==="last"&&(l=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(a[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Bu):pe(pe({},Bu),this.props.theme):Bu}},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,s=this.getStyles,a=this.getClassNames,l=this.getValue,c=this.selectOption,u=this.setValue,f=this.props,d=f.isMulti,p=f.isRtl,g=f.options,h=this.hasValue();return{clearValue:o,cx:i,getStyles:s,getClassNames:a,getValue:l,hasValue:h,isMulti:d,isRtl:p,options:g,selectOption:c,selectProps:f,setValue:u,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,s=o.isMulti;return i===void 0?s:i}},{key:"isOptionDisabled",value:function(o,i){return uE(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return fE(this.props,o,i)}},{key:"filterOption",value:function(o,i){return dE(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:s,selectValue:a})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,i=o.isDisabled,s=o.isSearchable,a=o.inputId,l=o.inputValue,c=o.tabIndex,u=o.form,f=o.menuIsOpen,d=o.required,p=this.getComponents(),g=p.Input,h=this.state,y=h.inputIsHidden,m=h.ariaSelection,x=this.commonProps,v=a||this.getElementId("input"),C=pe(pe(pe({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(m==null?void 0:m.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?k.createElement(g,ce({},x,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:i,isHidden:y,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:u,type:"text",value:l},C)):k.createElement(uZ,ce({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ul,onFocus:this.onInputFocus,disabled:i,tabIndex:c,inputMode:"none",form:u,value:""},C))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),s=i.MultiValue,a=i.MultiValueContainer,l=i.MultiValueLabel,c=i.MultiValueRemove,u=i.SingleValue,f=i.Placeholder,d=this.commonProps,p=this.props,g=p.controlShouldRenderValue,h=p.isDisabled,y=p.isMulti,m=p.inputValue,x=p.placeholder,v=this.state,C=v.selectValue,S=v.focusedValue,E=v.isFocused;if(!this.hasValue()||!g)return m?null:k.createElement(f,ce({},d,{key:"placeholder",isDisabled:h,isFocused:E,innerProps:{id:this.getElementId("placeholder")}}),x);if(y)return C.map(function(P,M){var w=P===S,R="".concat(o.getOptionLabel(P),"-").concat(o.getOptionValue(P));return k.createElement(s,ce({},d,{components:{Container:a,Label:l,Remove:c},isFocused:w,isDisabled:h,key:R,index:M,removeProps:{onClick:function(){return o.removeValue(P)},onTouchEnd:function(){return o.removeValue(P)},onMouseDown:function(L){L.preventDefault()}},data:P}),o.formatOptionLabel(P,"value"))});if(m)return null;var I=C[0];return k.createElement(u,ce({},d,{data:I,isDisabled:h}),this.formatOptionLabel(I,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,c=a.isLoading,u=this.state.isFocused;if(!this.isClearable()||!i||l||!this.hasValue()||c)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(i,ce({},s,{innerProps:f,isFocused:u}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,c=a.isLoading,u=this.state.isFocused;if(!i||!c)return null;var f={"aria-hidden":"true"};return k.createElement(i,ce({},s,{innerProps:f,isDisabled:l,isFocused:u}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,s=o.IndicatorSeparator;if(!i||!s)return null;var a=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused;return k.createElement(s,ce({},a,{isDisabled:l,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var s=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(i,ce({},s,{innerProps:c,isDisabled:a,isFocused:l}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),s=i.Group,a=i.GroupHeading,l=i.Menu,c=i.MenuList,u=i.MenuPortal,f=i.LoadingMessage,d=i.NoOptionsMessage,p=i.Option,g=this.commonProps,h=this.state.focusedOption,y=this.props,m=y.captureMenuScroll,x=y.inputValue,v=y.isLoading,C=y.loadingMessage,S=y.minMenuHeight,E=y.maxMenuHeight,I=y.menuIsOpen,P=y.menuPlacement,M=y.menuPosition,w=y.menuPortalTarget,R=y.menuShouldBlockScroll,O=y.menuShouldScrollIntoView,L=y.noOptionsMessage,A=y.onMenuScrollToTop,j=y.onMenuScrollToBottom;if(!I)return null;var D=function(T,H){var J=T.type,W=T.data,X=T.isDisabled,U=T.isSelected,Q=T.label,ne=T.value,oe=h===W,Z=X?void 0:function(){return o.onOptionHover(W)},ue=X?void 0:function(){return o.selectOption(W)},fe="".concat(o.getElementId("option"),"-").concat(H),Se={id:fe,onClick:ue,onMouseMove:Z,onMouseOver:Z,tabIndex:-1,role:"option","aria-selected":o.isAppleDevice?void 0:U};return k.createElement(p,ce({},g,{innerProps:Se,data:W,isDisabled:X,isSelected:U,key:fe,label:Q,type:J,value:ne,isFocused:oe,innerRef:oe?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(T.data,"menu"))},z;if(this.hasOptions())z=this.getCategorizedOptions().map(function($){if($.type==="group"){var T=$.data,H=$.options,J=$.index,W="".concat(o.getElementId("group"),"-").concat(J),X="".concat(W,"-heading");return k.createElement(s,ce({},g,{key:W,data:T,options:H,Heading:a,headingProps:{id:X,data:$.data},label:o.formatGroupLabel($.data)}),$.options.map(function(U){return D(U,"".concat(J,"-").concat(U.index))}))}else if($.type==="option")return D($,"".concat($.index))});else if(v){var V=C({inputValue:x});if(V===null)return null;z=k.createElement(f,g,V)}else{var F=L({inputValue:x});if(F===null)return null;z=k.createElement(d,g,F)}var _={minMenuHeight:S,maxMenuHeight:E,menuPlacement:P,menuPosition:M,menuShouldScrollIntoView:O},G=k.createElement(zY,ce({},g,_),function($){var T=$.ref,H=$.placerProps,J=H.placement,W=H.maxHeight;return k.createElement(l,ce({},g,_,{innerRef:T,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:v,placement:J}),k.createElement(yZ,{captureEnabled:m,onTopArrive:A,onBottomArrive:j,lockEnabled:R},function(X){return k.createElement(c,ce({},g,{innerRef:function(Q){o.getMenuListRef(Q),X(Q)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:o.getElementId("listbox")},isLoading:v,maxHeight:W,focusedOption:h}),z)}))});return w||M==="fixed"?k.createElement(u,ce({},g,{appendTo:w,controlElement:this.controlRef,menuPlacement:P,menuPosition:M}),G):G}},{key:"renderFormField",value:function(){var o=this,i=this.props,s=i.delimiter,a=i.isDisabled,l=i.isMulti,c=i.name,u=i.required,f=this.state.selectValue;if(u&&!this.hasValue()&&!a)return k.createElement(wZ,{name:c,onFocus:this.onValueInputFocus});if(!(!c||a))if(l)if(s){var d=f.map(function(h){return o.getOptionValue(h)}).join(s);return k.createElement("input",{name:c,type:"hidden",value:d})}else{var p=f.length>0?f.map(function(h,y){return k.createElement("input",{key:"i-".concat(y),name:c,type:"hidden",value:o.getOptionValue(h)})}):k.createElement("input",{name:c,type:"hidden",value:""});return k.createElement("div",null,p)}else{var g=f[0]?this.getOptionValue(f[0]):"";return k.createElement("input",{name:c,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,s=i.ariaSelection,a=i.focusedOption,l=i.focusedValue,c=i.isFocused,u=i.selectValue,f=this.getFocusableOptions();return k.createElement(oZ,ce({},o,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:a,focusedValue:l,isFocused:c,selectValue:u,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,s=o.IndicatorsContainer,a=o.SelectContainer,l=o.ValueContainer,c=this.props,u=c.className,f=c.id,d=c.isDisabled,p=c.menuIsOpen,g=this.state.isFocused,h=this.commonProps=this.getCommonProps();return k.createElement(a,ce({},h,{className:u,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:g}),this.renderLiveRegion(),k.createElement(i,ce({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:g,menuIsOpen:p}),k.createElement(l,ce({},h,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),k.createElement(s,ce({},h,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var s=i.prevProps,a=i.clearFocusValueOnUpdate,l=i.inputIsHiddenAfterUpdate,c=i.ariaSelection,u=i.isFocused,f=i.prevWasFocused,d=i.instancePrefix,p=o.options,g=o.value,h=o.menuIsOpen,y=o.inputValue,m=o.isMulti,x=Xy(g),v={};if(s&&(g!==s.value||p!==s.options||h!==s.menuIsOpen||y!==s.inputValue)){var C=h?jZ(o,x):[],S=h?ab(ka(o,x),"".concat(d,"-option")):[],E=a?LZ(i,x):null,I=BZ(i,C),P=zu(S,I);v={selectValue:x,focusedOption:I,focusedOptionId:P,focusableOptionsWithIds:S,focusedValue:E,clearFocusValueOnUpdate:!1}}var M=l!=null&&o!==s?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},w=c,R=u&&f;return u&&!R&&(w={value:sa(m,x,x[0]||null),options:x,action:"initial-input-focus"},R=!f),(c==null?void 0:c.action)==="initial-input-focus"&&(w=null),pe(pe(pe({},v),M),{},{prevProps:o,ariaSelection:w,prevWasFocused:R})}}]),n}(N.Component);hE.defaultProps=FZ;var VZ=N.forwardRef(function(e,t){var n=dY(e);return k.createElement(hE,ce({ref:t},n))}),GZ=VZ;const $Z=({options:e,items_per_page:t,className:n,defaultValue:r,onChange:o})=>{const[i,s]=N.useState(""),[a,l]=N.useState(0),c=p=>{s(p.toLowerCase()),l(0)},u=e.filter(p=>p.label.toLowerCase().includes(i)||p.value.toLowerCase().includes(i));var f;t!==void 0?f=u.slice(a*t,(a+1)*t):f=u;const d={control:p=>({...p,minHeight:void 0})};return b.jsx(GZ,{options:f,onInputChange:c,onChange:o,inputValue:i,isSearchable:!0,placeholder:"Select an option...",className:n,unstyled:!0,styles:d,classNamePrefix:"styled-select",defaultValue:r,value:r})};function HZ(e){return e===0?0:Math.abs(e)<1e-12?e:Number(e.toPrecision(12))}const gE=({iostore:e,inputconverter:t,parser:n=r=>parseFloat(r)})=>{var p,g,h,y,m,x,v,C,S,E,I,P,M,w;const r=k.useContext(xe),{preview:o}=e.valuestore(),i=e.use(),[s,a]=k.useState(t[1](o==null?void 0:o.value));k.useEffect(()=>{a(t[1](o==null?void 0:o.value))},[o]);const l=R=>{var O,L,A;R=n(parseFloat(R.toString()).toString()),isNaN(R)?(R="<NoValue>",a("")):(((O=i.value_options)==null?void 0:O.min)!==void 0&&R<i.value_options.min&&(R=i.value_options.min),((L=i.value_options)==null?void 0:L.max)!==void 0&&R>i.value_options.max&&(R=i.value_options.max),R=HZ(R),a(R.toString()));try{R=t[0](R)}catch{}(A=r.worker)==null||A.set_io_value({nid:i.node,ioid:i.id,value:R,set_default:i.render_options.set_default})},c=R=>{l(R.target.value)};let u=i.connected?t[1](o==null?void 0:o.value):s;u===void 0&&(u=(p=i.value_options)==null?void 0:p.min),u===void 0&&(u=(g=i.value_options)==null?void 0:g.max),u===void 0&&(u=""),u===null&&(u="");let f=null,d=1;return((h=i.value_options)==null?void 0:h.step)!==void 0?d=i.value_options.step:((y=i.value_options)==null?void 0:y.max)!==void 0&&((m=i.value_options)==null?void 0:m.min)!==void 0&&(d=(((x=i.value_options)==null?void 0:x.max)-((v=i.value_options)==null?void 0:v.min))/1e3),((C=i.value_options)==null?void 0:C.max)!==void 0&&((S=i.value_options)==null?void 0:S.min)!==void 0&&!i.connected&&(f=b.jsx("div",{style:{minWidth:"6.25rem"},className:"SliderContainer",children:b.jsxs(W7,{className:"SliderRoot",value:[u===void 0?(E=i.value_options)==null?void 0:E.min:u],min:(I=i.value_options)==null?void 0:I.min,max:(P=i.value_options)==null?void 0:P.max,step:d,disabled:i.connected,onValueCommit:R=>{isNaN(R[0])||l(R[0])},onValueChange:R=>{isNaN(R[0])||a(R[0].toString())},onKeyDown:R=>{["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(R.key)&&R.stopPropagation()},children:[b.jsx(X7,{className:"SliderTrack",children:b.jsx(Y7,{className:"SliderRange"})}),b.jsx(U7,{className:"SliderThumb"})]})})),b.jsxs(b.Fragment,{children:[f,b.jsx("input",{type:"text",className:"nodedatainput styledinput numberinput",value:u,onChange:R=>a(R.target.value),onBlur:c,step:d,onKeyDown:R=>{if(!(R.ctrlKey||R.metaKey)){if(R.key==="ArrowUp"){R.shiftKey&&(d*=10);let O=(parseFloat(u)||0)+d;l(O);return}if(R.key==="ArrowDown"){R.shiftKey&&(d*=10);let O=(parseFloat(u)||0)-d;l(O);return}!/^[0-9.eE+-]$/.test(R.key)&&!["Backspace","ArrowLeft","ArrowRight","Delete","Tab"].includes(R.key)&&R.preventDefault()}},disabled:i.connected,min:(M=i.value_options)==null?void 0:M.min,max:(w=i.value_options)==null?void 0:w.max})]})},WZ=({iostore:e,inputconverter:t})=>gE({iostore:e,inputconverter:t,parser:parseFloat}),XZ=({iostore:e,inputconverter:t})=>gE({iostore:e,inputconverter:t,parser:parseInt}),YZ=({iostore:e,inputconverter:t})=>{const n=k.useContext(xe),{preview:r}=e.valuestore(),o=e.use(),i=(r==null?void 0:r.value)===void 0,s=k.useRef(null);k.useEffect(()=>{s.current&&(s.current.indeterminate=i)},[s,i]);const a=l=>{var u;let c=l.target.checked;try{c=t[0](l.target.checked)}catch{}(u=n.worker)==null||u.set_io_value({nid:o.node,ioid:o.id,value:c,set_default:o.render_options.set_default})};return b.jsx("input",{ref:s,type:"checkbox",className:"styledcheckbox booleaninput",checked:!!t[1](r==null?void 0:r.value),onChange:a,disabled:o.connected})},cb=({iostore:e,inputconverter:t})=>{const n=k.useContext(xe),{preview:r,full:o}=e.valuestore(),i=e.use(),s=o===void 0?r==null?void 0:r.value:o==null?void 0:o.value,[a,l]=k.useState(t[1](s));k.useEffect(()=>{l(t[1](s))},[s]);const c=f=>{var p;let d=f.target.value;d||(d="<NoValue>");try{d=t[0](d)}catch{}(p=n.worker)==null||p.set_io_value({nid:i.node,ioid:i.id,value:d,set_default:i.render_options.set_default})};let u=i.connected?t[1](s):a;return u==null&&(u=""),b.jsx("input",{className:"nodedatainput styledinput stringinput",value:u,onChange:f=>l(f.target.value),onBlur:c,disabled:i.connected})},UZ=({iostore:e})=>{var c;const t=k.useContext(xe),n=e.use(),{preview:r,full:o}=e.valuestore(),i=o===void 0?r==null?void 0:r.value:o.value,s=((c=n.value_options)==null?void 0:c.colorspace)||"hex",a=u=>{var d;let f="<NoValue>";u&&(u[s]?f=u[s]():f=u.hex()),u===null&&(f=null);try{f=f}catch{}(d=t.worker)==null||d.set_io_value({nid:n.node,ioid:n.id,value:f,set_default:n.render_options.set_default})};let l=!1;return typeof n.type!="string"&&"anyOf"in n.type&&n.type.anyOf!==void 0&&(l=n.type.anyOf.some(u=>u==="None")),b.jsx(sY,{onChange:a,inicolordata:i,allow_null:l,inicolorspace:s})},ZZ=e=>e,JZ=e=>parseFloat(e),qZ=e=>!!e,KZ=e=>e==="null"?null:e,QZ=e=>e==="nuinputconvertermber"?JZ:e==="boolean"?qZ:e==="undefined"?KZ:ZZ,pl=({iostore:e,inputconverter:t,parser:n})=>{var h;const r=e.use(),{preview:o,full:i}=e.valuestore(),s=i===void 0?o==null?void 0:o.value:i.value;let a=((h=r.value_options)==null?void 0:h.options)||[];Array.isArray(a)&&(a={type:"enum",values:a,keys:a.map(y=>y===null?"None":y.toString()),nullable:!1}),a.type!=="enum"&&(a={type:"enum",values:Object.values(a),keys:Object.keys(a),nullable:!1}),a=a,a.nullable&&!a.values.includes(null)&&!a.keys.includes("None")&&(a.values.unshift(null),a.keys.unshift("None"));const l=[];for(let y=0;y<a.values.length;y++){const m=a.values[y]===null||a.values[y]===void 0?"undefined":typeof a.values[y];let x=a.values[y];x===null&&(x="null"),x===void 0&&(x="undefined"),l.push([a.keys[y],x.toString(),m])}const c=k.useContext(xe),u=({value:y,datatype:m})=>{var C;let v=(n||QZ(m))(y);try{v=t[0](y)}catch{}(C=c.worker)==null||C.set_io_value({nid:r.node,ioid:r.id,value:v,set_default:r.render_options.set_default})};let f=s;f===null&&(f="null"),f===void 0&&(f="undefined");const d=l.find(y=>y[1]===f.toString());let p;d!==void 0&&(p={value:d[1],label:d[0],datatype:d[2]});const g=l.map(y=>({value:y[1],label:y[0],datatype:y[2]}));return b.jsx($Z,{className:"nodedatainput styleddropdown",options:g,defaultValue:p,onChange:y=>{if(y===null){u({value:"<NoValue>",datatype:"string"});return}u(y)}})},eJ=(e,t=void 0)=>({iostore:n})=>{const{full:r,preview:o}=n.valuestore(),i=r===void 0?o:r,s=(i==null?void 0:i.value)||t;return b.jsx(e,{iostore:n,value:s})},tJ={float:WZ,int:XZ,bool:YZ,string:cb,str:cb,color:UZ,select:pl,enum:pl,bytes:eJ(uh,"")},nJ=({iostore:e,typestring:t})=>{const{InLineRenderer:n}=k.useContext(kn),{preview:r,full:o}=e.valuestore();if(t&&n[t])return b.jsx("div",{children:n[t]({iostore:e})});let i=(JSON.stringify(o||r)||"").replace(/\\n/g,`
865
+ `);return i.length>63&&(i=i.slice(0,60)+"..."),b.jsx("div",{children:i})},rJ={},Zt=(e,t=void 0)=>({iostore:n})=>{const{full:r,preview:o}=n.valuestore(),i=r===void 0?o:r,s=(i==null?void 0:i.value)||t;return b.jsx(e,{iostore:n,value:s})},oJ={string:Zt(kS),table:Zt(AS),image:Zt(ES),svg:Zt(IS,""),dict:Zt(xc,"{}"),bytes:Zt(uh,"")},iJ={},mE=e=>({iostore:t,value:n,preValue:r,onLoaded:o})=>b.jsx(e,{iostore:t,value:n,preValue:r,onLoaded:o}),ub=mE(xc),sJ={},aJ={},lJ={},cJ={},Yt={Inputrenderer:tJ,Outputrenderer:rJ,HandlePreviewRenderer:iJ,DataOverlayRenderer:sJ,DataPreviewViewRenderer:oJ,DataViewRenderer:A7,InLineRenderer:F$,NodeContextExtenders:cJ,NodeRenderer:aJ,NodeHooks:lJ},uJ=(e,t)=>{const n=t.options||{},r=n.overwrite===void 0?!0:n.overwrite;switch(t.type){case"EXTEND_INPUT_RENDER":return!r&&e.Inputrenderer[t.payload.type]?e:{...e,Inputrenderer:{...e.Inputrenderer,[t.payload.type]:t.payload.component}};case"EXTEND_OUTPUT_RENDER":return!r&&e.Outputrenderer[t.payload.type]?e:{...e,Outputrenderer:{...e.Outputrenderer,[t.payload.type]:t.payload.component}};case"EXTEND_HANDLE_PREVIEW_RENDER":return!r&&e.HandlePreviewRenderer[t.payload.type]?e:{...e,HandlePreviewRenderer:{...e.HandlePreviewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_OVERLAY_RENDER":return!r&&e.DataOverlayRenderer[t.payload.type]?e:{...e,DataOverlayRenderer:{...e.DataOverlayRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_PREVIEW_RENDER":return!r&&e.DataPreviewViewRenderer[t.payload.type]?e:{...e,DataPreviewViewRenderer:{...e.DataPreviewViewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_VIEW_RENDER":return!r&&e.DataViewRenderer[t.payload.type]?e:{...e,DataViewRenderer:{...e.DataViewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_NODE_CONTEXT_EXTENDER":return!r&&e.NodeContextExtenders[t.payload.type]?e:{...e,NodeContextExtenders:{...e.NodeContextExtenders,[t.payload.type]:t.payload.component}};case"EXTEND_NODE_RENDERER":return!r&&e.NodeRenderer[t.payload.type]?e:{...e,NodeRenderer:{...e.NodeRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_NODE_HOOKS":return!r&&e.NodeHooks[t.payload.type]?e:{...e,NodeHooks:{...e.NodeHooks,[t.payload.type]:t.payload.component}};case"EXTEND_FROM_PLUGIN":let o=!1;const i=[[t.payload.plugin.input_renderers||{},e.Inputrenderer],[t.payload.plugin.output_renderers||{},e.Outputrenderer],[t.payload.plugin.handle_preview_renderers||{},e.HandlePreviewRenderer],[t.payload.plugin.data_overlay_renderers||{},e.DataOverlayRenderer],[t.payload.plugin.data_preview_renderers||{},e.DataPreviewViewRenderer],[t.payload.plugin.data_view_renderers||{},e.DataViewRenderer],[t.payload.plugin.node_context_extenders||{},e.NodeContextExtenders],[t.payload.plugin.node_renderers||{},e.NodeRenderer],[t.payload.plugin.node_hooks||{},e.NodeHooks]];for(const[a,l]of i){if(Object.keys(a).length>0){if(r)o=!0;else for(const c in a)if(!l[c]){o=!0;break}}if(o)break}if(!o)return e;for(const[a,l]of i)for(const c in a)(r||!l[c])&&(l[c]=a[c]);return{...e};default:return e}},yE=({children:e,plugins:t,fnrf_zst:n})=>{const[r,o]=N.useReducer(uJ,Yt),i=(h,y,m)=>{o({type:"EXTEND_INPUT_RENDER",payload:{type:h,component:y},options:m})},s=(h,y,m)=>{o({type:"EXTEND_OUTPUT_RENDER",payload:{type:h,component:y},options:m})},a=(h,y,m)=>{o({type:"EXTEND_HANDLE_PREVIEW_RENDER",payload:{type:h,component:y},options:m})},l=(h,y,m)=>{o({type:"EXTEND_DATA_OVERLAY_RENDER",payload:{type:h,component:y},options:m})},c=(h,y,m)=>{o({type:"EXTEND_DATA_PREVIEW_RENDER",payload:{type:h,component:y},options:m})},u=(h,y,m)=>{o({type:"EXTEND_DATA_VIEW_RENDER",payload:{type:h,component:y},options:m})},f=(h,y,m)=>{o({type:"EXTEND_NODE_CONTEXT_EXTENDER",payload:{type:h,component:y},options:m})},d=(h,y,m)=>{o({type:"EXTEND_NODE_RENDERER",payload:{type:h,component:y},options:m})},p=(h,y,m)=>{o({type:"EXTEND_NODE_HOOKS",payload:{type:h,component:y},options:m})},g=(h,y)=>{o({type:"EXTEND_FROM_PLUGIN",payload:{plugin:h},options:y})};return N.useEffect(()=>{for(const h in t){const y=t[h];if(!y)continue;const m=y.renderpluginfactory;m&&g(m({React:k,fnrf_zst:n,NodeContext:gh}))}},[t]),b.jsx(kn.Provider,{value:{Inputrenderer:r.Inputrenderer,Outputrenderer:r.Outputrenderer,HandlePreviewRenderer:r.HandlePreviewRenderer,DataOverlayRenderer:r.DataOverlayRenderer,DataPreviewViewRenderer:r.DataPreviewViewRenderer,DataViewRenderer:r.DataViewRenderer,InLineRenderer:r.InLineRenderer,NodeContextExtenders:r.NodeContextExtenders,NodeRenderer:r.NodeRenderer,NodeHooks:r.NodeHooks,extendInputRenderMapping:i,extendOutputRenderMapping:s,extendHandlePreviewRenderMapping:a,extendDataOverlayRenderMapping:l,extendDataPreviewRenderMapping:c,extendDataViewRenderMapping:u,extendNodeContextExtender:f,extendNodeRenderer:d,extendNodeHooks:p,extendFromPlugin:g},children:e})},kn=N.createContext({Inputrenderer:Yt.Inputrenderer,Outputrenderer:Yt.Outputrenderer,HandlePreviewRenderer:Yt.HandlePreviewRenderer,DataOverlayRenderer:Yt.DataOverlayRenderer,DataPreviewViewRenderer:Yt.DataPreviewViewRenderer,DataViewRenderer:Yt.DataViewRenderer,InLineRenderer:Yt.InLineRenderer,NodeContextExtenders:Yt.NodeContextExtenders,NodeRenderer:Yt.NodeRenderer,NodeHooks:Yt.NodeHooks,extendInputRenderMapping:(e,t,n)=>{},extendOutputRenderMapping:(e,t,n)=>{},extendHandlePreviewRenderMapping:(e,t,n)=>{},extendDataOverlayRenderMapping:(e,t,n)=>{},extendDataPreviewRenderMapping:(e,t,n)=>{},extendDataViewRenderMapping:(e,t,n)=>{},extendNodeContextExtender:(e,t,n)=>{},extendNodeRenderer:(e,t,n)=>{},extendNodeHooks:(e,t,n)=>{},extendFromPlugin:(e,t)=>{}}),bE=e=>{const t=N.useContext(xe),{DataOverlayRenderer:n,DataViewRenderer:r}=N.useContext(kn);if(e===void 0)return;const o=t.render_options(),[i]=Kr(e.type,o.typemap||{});return i?n[i]?n[i]:r[i]?mE(r[i]):ub:ub},fJ=e=>{const n=N.useContext(xe).render_options(),{HandlePreviewRenderer:r,DataPreviewViewRenderer:o}=N.useContext(kn),i=bE(e);let s;if(e){const[a]=Kr(e.type,n.typemap||{});a?r[a]?s=r[a]:o[a]?s=o[a]:s=Zt(ll):s=Zt(ll)}return[s,i]},vE=({iostore:e,Component:t})=>{const[n,r]=k.useState(void 0),[o,i]=k.useState(void 0),{full:s}=e.valuestore();k.useEffect(()=>{s===void 0?e.getState().try_get_full_value():i(s.value)},[s]);const a=()=>{o!==void 0&&r(o)};return b.jsx(t,{iostore:e,value:o,preValue:n,onLoaded:a})},xE=({iostore:e,Component:t})=>b.jsx(t,{iostore:e}),Kr=(e,t)=>{if(typeof e=="string")return e in t?[t[e],e]:[e,e];if("allOf"in e&&e.allOf!==void 0)return[void 0,void 0];if("anyOf"in e&&e.anyOf!==void 0){const n=e.anyOf.map(r=>Kr(r,t));for(const r of n)switch(r[0]){case"bool":return["bool",r[1]];case"enum":return["enum",r[1]];case"float":return["float",r[1]];case"int":return["int",r[1]];case"string":return["string",r[1]];case"str":return["string",r[1]]}return[void 0,void 0]}return!("type"in e)||e.type===void 0?[void 0,void 0]:e.type==="enum"?["enum","enum"]:[void 0,void 0]},fd=({iostore:e,typestring:t,preview:n,...r})=>{const[o,i]=N.useState(!1),[s,a]=N.useState(!1),l=k.useContext(xe),c=e.use(),[u,f]=fJ(c),d=l.local_state(()=>l.reactflowRef);return b.jsxs(k_,{open:o||s,onOpenChange:a,children:[b.jsx(A_,{asChild:!0,children:b.jsx(Li,{id:c.id,"data-type":t,...r})}),b.jsx(R_,{container:d,children:b.jsxs(T_,{className:"iotooltipcontent",sideOffset:5,children:[b.jsxs("div",{className:"iotooltip_container",children:[b.jsxs("div",{className:"iotooltip_header",children:[o?b.jsx(Q3,{onClick:()=>i(!1)}):b.jsx(K3,{onClick:()=>i(!0)}),f&&b.jsx(Xo,{title:c.full_id,trigger:b.jsx($1,{}),onOpenChange:p=>{p&&c.try_get_full_value&&c.try_get_full_value(),i(p)},children:b.jsx(vE,{Component:f,iostore:e})})]}),u?b.jsx(xE,{Component:u,iostore:e}):`no preview available for "${t}"`]}),b.jsx(M$,{className:"iotooltipcontentarrow"})]})})]})},hl={"":[e=>e,e=>e],str_to_json:[e=>JSON.parse(e),e=>typeof e=="string"?e:JSON.stringify(e)],str_to_list:[e=>{try{const t=JSON.parse(e);return Array.isArray(t)?t:[t]}catch{try{return JSON.parse("["+e+"]")}catch{}}throw new Error("Invalid list")},e=>JSON.stringify(e)]},dJ=({iostore:e})=>{var c,u;const n=N.useContext(xe).render_options(),r=e.use(),[o,i]=Kr(r.render_options.type,n.typemap||{}),{Inputrenderer:s}=N.useContext(kn),a=o?(c=r.value_options)!=null&&c.options?pl:s[o]:void 0,l=hl[(i&&((u=n.inputconverter)==null?void 0:u[i]))??""]||hl[""];return r.hidden?null:b.jsxs("div",{className:"nodeinput","data-type":o,children:[b.jsx(fd,{iostore:e,typestring:o,position:ae.Left,type:"target"}),a&&b.jsx("div",{className:"iovaluefield nodrag","data-type":o,children:b.jsx(a,{iostore:e,inputconverter:l})}),b.jsx("div",{className:"ioname",children:r.name}),b.jsx(fd,{iostore:e,typestring:o,position:ae.Right,type:"source"})]})},pJ=({iostore:e})=>{const n=N.useContext(xe).render_options(),r=e.use(),[o]=Kr(r.type,n.typemap||{}),{Outputrenderer:i}=N.useContext(kn),s=o?i[o]:void 0;return r.hidden?null:b.jsxs("div",{className:"nodeoutput","data-type":o,children:[b.jsx(fd,{iostore:e,typestring:o,position:ae.Right,type:"source"}),b.jsx("div",{className:"ioname",children:r.name}),s?b.jsx("div",{className:"iovaluefield nodrag",children:b.jsx(s,{iostore:e})}):b.jsx("div",{className:"iovaluefield",children:b.jsx(nJ,{iostore:e,typestring:o})})]})},hJ=e=>{const t=N.useContext(xe),n=bE(e),{DataPreviewViewRenderer:r,DataViewRenderer:o}=N.useContext(kn),i=t.render_options();if(e===void 0)return[void 0,n];const[s]=Kr(e.type,i.typemap||{});return s?r[s]?[r[s],n]:o[s]?[Zt(o[s]),n]:[Zt(ll),n]:[Zt(ll),n]};function gJ(e,t,n={}){const{maxFontSize:r=100,minFontSize:o=6,decrementFactor:i=.9}=n;if(!e||!t)return;if(i>=1||i<=0)throw new Error("decrementFactor must be between 0 and 1");const s=e.getBoundingClientRect(),a=s.width,l=s.height;let c=r;t.style.whiteSpace="nowrap",t.style.display="inline-block",t.style.fontSize=c+"px";let u=t.getBoundingClientRect();for(;(u.width>a||u.height>l)&&c>o;)c*=i,t.style.fontSize=c+"px",u=t.getBoundingClientRect()}function mJ(e={n:0,elapsed:0,ascii:!1,unit:"it",unit_scale:!1,unit_divisor:1e3}){let t=e.total??null;const{n,unit_scale:r,elapsed:o,unit:i,unit_divisor:s,prefix:a="",rate:l=void 0,postfix:c=null,initial:u=0}=e;t!==null&&n>=t+.5&&(t=null);let f=n,d=t,p=l;r&&r!==!0&&r!==1&&(t!==null&&(d=t*r),f=n*r,l!==void 0&&(p=l*r));const g=fb(o);p===void 0&&o>0&&(p=(f-u)/o);const h=p?1/p:void 0,[y,m]=p?aa(p,s):[void 0,""],[x,v]=h?aa(h,1e3):[void 0,""],C=(y||"?")+`${m}${i}/s`,S=x?`${x}${v}s/`+i:"?",E=h&&h>1?S:C,I=r?aa(f,s).join(""):f.toString(),P=r&&d!==null?aa(d,s).join(""):(d==null?void 0:d.toString())??"?",M=p&&d!==null?(d-f)/p:0,w=p?fb(M):"?",R=a?`${a}: `:"";if(t!==null){const O=f/t*100,L=` ${I}/${P} [${g} < ${w}, ${E}${c??""}]`;return`${R}${O.toFixed(0)}%${L}`}return`${R}${I}${i} [${g}, ${E}${c??""}]`}function fb(e){const t=Math.floor(e/60),n=Math.floor(e%60);return`${t}:${n.toString().padStart(2,"0")}`}function aa(e,t){const n=["","K","M","G","T"];let r=0;for(;e>=t&&r<n.length-1;)e/=t,r++;return[e.toFixed(2),n[r]]}const yJ=({state:e,className:t="reacttqdm",...n})=>{const r=N.useRef(null),o=N.useRef(null);N.useEffect(()=>{const s=()=>{!r.current||!o.current||gJ(r.current,o.current,{maxFontSize:12,decrementFactor:.9})};return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}},[e]);const i=e.total?e.n/e.total*100:0;return b.jsx("div",{ref:r,className:t,...n,children:b.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[b.jsx("div",{className:t+"-bar",style:{position:"absolute",width:"100%",height:"100%",overflow:"hidden"},children:b.jsx("div",{className:t+"-progress",style:{width:`${i}%`,height:"100%"}})}),b.jsx("div",{className:t+"-text",ref:o,children:mJ(e)})]})})},bJ=k.memo(({node_data:e})=>{const t=N.useContext(xe),n=()=>{t.on_node_action({type:"trigger",from_remote:!1,id:e.id})};return b.jsxs("div",{className:"nodeheader",title:e.description||e.node_name,children:[b.jsxs("div",{className:"nodeheader_element",children:[b.jsx(tF,{fontSize:"inherit",className:"triggerbutton",onClick:n}),b.jsx(eF,{fontSize:"inherit",onClick:async()=>{var r;console.log("nodestatus",await((r=t.worker)==null?void 0:r.get_node_status(e.id)))}})]}),b.jsx("div",{className:"nodeheader_element nodeheader_title",children:b.jsx("div",{className:"nodeheader_title_text",children:e.node_name})}),b.jsx("div",{className:"nodeheader_element",children:b.jsx(ds,{fontSize:"inherit"})})]})}),vJ=({iostore:e,node_data:t})=>{var i,s;const n=e.use(),[r,o]=hJ(n);return b.jsx("div",{className:"nodrag nodedatabody","data-src":((s=(i=t.render_options)==null?void 0:i.data)==null?void 0:s.src)||"",children:r&&n&&b.jsx(Xo,{title:n.full_id,trigger:b.jsx("div",{className:"nodedatabutton",children:b.jsx(xE,{Component:r,iostore:e})}),onOpenChange:a=>{a&&n!=null&&n.try_get_full_value&&(n==null||n.try_get_full_value())},children:o&&b.jsx(vE,{Component:o,iostore:e})})})},xJ=k.memo(({node_data:e})=>{var n,r,o,i;const t=(r=(n=e.render_options)==null?void 0:n.data)!=null&&r.src?e.io[(i=(o=e.render_options)==null?void 0:o.data)==null?void 0:i.src]:void 0;return b.jsxs("div",{className:"nodebody",children:[e.outputs.map(s=>b.jsx(pJ,{iostore:e.io[s]},s)),t&&b.jsx(vJ,{node_data:e,iostore:t}),e.inputs.map(s=>b.jsx(dJ,{iostore:e.io[s]},s))]})}),wE=k.memo(({node_data:e})=>{const[t,n]=N.useState(e.name);N.useEffect(()=>{n(e.name)},[e]);const r=N.useContext(xe),o=s=>{n(s.target.value)},i=s=>{const a=s.target.value;r.on_node_action({type:"update",from_remote:!1,id:e.id,node:{name:a}})};return b.jsx("input",{className:"nodename_input",value:t,onChange:o,onBlur:i})}),wJ=({node_data:e})=>{if(!e.progress)return null;const t=e.progress();return b.jsx(yJ,{state:t,className:"nodeprogress"})},CJ=k.memo(({node_data:e})=>b.jsxs("div",{className:"nodefooter",children:[e.error&&b.jsx("div",{className:"nodeerror",children:e.error}),b.jsx(wJ,{node_data:e})]})),_J=e=>{const t=N.useContext(xe),[n,r]=N.useState(!1),o=e.in_trigger(),i=N.useContext(kn),s=i.NodeContextExtenders[e.node_id],a=k.useMemo(()=>(s==null?void 0:s({node_data:e}))||{},[s,e]),l=k.useMemo(()=>({...a,node_data:e}),[a,e]),c=i.NodeHooks[e.node_id];for(const u of c||[])u({nodecontext:l});return N.useEffect(()=>{var u;(u=t.worker)==null||u.call_hooks("node_mounted",e.id)},[t.worker,e.id]),N.useEffect(()=>{let u;return o&&!n?r(!0):n&&(u=setTimeout(()=>r(!1),200)),()=>clearTimeout(u)},[o,n]),{visualTrigger:n,nodecontext:l}},gh=k.createContext(null),SJ=({data:e})=>{const t=e.nodestore.use(),n=t.properties["frontend:collapsed"]||!1,{visualTrigger:r,nodecontext:o}=_J(t);return b.jsx(gh.Provider,{value:o,children:b.jsxs("div",{className:"innernode"+(r?" intrigger":"")+(t.error?" error":""),children:[b.jsx(bJ,{node_data:t}),b.jsx(wE,{node_data:t}),n?null:b.jsx(xJ,{node_data:t}),b.jsx(CJ,{node_data:t})]})})},EJ=({iostore:e})=>{var c,u;const n=k.useContext(xe).render_options(),r=e.use(),[o,i]=Kr(r.render_options.type,n.typemap||{}),{Inputrenderer:s}=k.useContext(kn),a=o?(c=r.value_options)!=null&&c.options?pl:s[o]:void 0,l=hl[(i&&((u=n.inputconverter)==null?void 0:u[i]))??""]||hl[""];return b.jsxs("div",{className:"nodesettings_component",children:[b.jsx("div",{children:r.name}),a&&b.jsx(a,{iostore:e,inputconverter:l}),b.jsx("div",{children:b.jsxs("label",{children:["hidden:",b.jsx("input",{className:"styledcheckbox",type:"checkbox",disabled:r.connected,onChange:f=>{var d;(d=r.set_hidden)==null||d.call(r,f.target.checked)},checked:r.hidden})]})})]})},IJ=({iostore:e})=>{const t=e.use();return b.jsxs("div",{className:"nodesettings_component",children:[b.jsx("div",{children:t.name}),b.jsx("div",{children:b.jsxs("label",{children:["hidden:",b.jsx("input",{className:"styledcheckbox",type:"checkbox",disabled:t.connected,onChange:n=>{var r;(r=t.set_hidden)==null||r.call(t,n.target.checked)},checked:t.hidden})]})})]})},kJ=({nodestore:e})=>{const t=e.use();return b.jsxs("div",{className:"nodesettings_content",children:[b.jsx("div",{className:"nodesettings_section",children:b.jsxs("div",{className:"nodesettings_component",children:[b.jsx("div",{children:"Name"}),b.jsx("div",{children:b.jsx(wE,{node_data:t})})]})}),b.jsxs("div",{className:"nodesettings_section",children:[b.jsx("div",{children:"Inputs"}),t.inputs.map(n=>b.jsx(EJ,{iostore:t.io[n]},n))]}),b.jsxs("div",{className:"nodesettings_section",children:[b.jsx("div",{children:"Outputs"}),t.outputs.map(n=>b.jsx(IJ,{iostore:t.io[n]},n))]})]})},AJ=()=>{const e=k.useContext(xe),t=e.local_state(r=>r.selected_nodes);if(t.length===0)return b.jsx("div",{children:"Node Settings"});if(t.length>1)return b.jsx("div",{children:"Multiple Nodes Selected"});const n=e.nodespace.get_node(t[0]);return n?b.jsx(kJ,{nodestore:n}):b.jsx("div",{children:"Node not found"})},RJ=()=>{const e=k.useContext(xe),t=e.local_settings(o=>o.view_settings.expand_node_props),n=e.local_settings(o=>o.update_view_settings),r=o=>{n({expand_node_props:o})};return b.jsx(lC,{direction:"left",expanded:t===void 0?!1:t,containerClassName:"pos-right pos-top bg1 h-12",className:"nodesettings_content",onExpandChange:r,children:b.jsx(AJ,{})})},TJ=({id:e,sourceX:t,sourceY:n,targetX:r,targetY:o,sourcePosition:i,targetPosition:s,data:a,...l})=>{const[c]=Ed({sourceX:t,sourceY:n,sourcePosition:i,targetX:r,targetY:o,targetPosition:s});return b.jsx(b.Fragment,{children:b.jsx(as,{id:e,path:c,...l})})},NJ=e=>({nodes:e.nodes,edges:e.edges,onNodesChange:e.onNodesChange,onEdgesChange:e.onEdgesChange,onConnect:e.onConnect}),PJ={default:SJ},OJ={default:TJ},MJ=()=>{const e=ss(),t=N.useContext(xe);return t.rf_instance=e,b.jsx(b.Fragment,{})},DJ=()=>{const e=N.useContext(xe),t=Mo("Delete"),n=fP(),r=cP();if(t){for(const o of n)if(o.selected){if(!e.worker)return b.jsx(b.Fragment,{});if(!o.source||!o.target)return b.jsx(b.Fragment,{});if(!o.sourceHandle||!o.targetHandle)return b.jsx(b.Fragment,{});e.worker.remove_edge({src_nid:o.source,src_ioid:o.sourceHandle,trg_nid:o.target,trg_ioid:o.targetHandle})}for(const o of r)if(o.selected){if(!e.worker)return b.jsx(b.Fragment,{});e.worker.remove_node(o.id)}}return b.jsx(b.Fragment,{})},FJ=({id:e,top:t,left:n,right:r,bottom:o,...i})=>{const{getNode:s,setNodes:a,addNodes:l,setEdges:c}=ss(),u=N.useContext(xe),f=N.useCallback(()=>{const h=s(e);if(!h)return;const y={x:h.position.x+50,y:h.position.y+50};l({...h,id:`${h.id}-copy`,position:y})},[e,s,l]),d=N.useCallback(()=>{u.on_node_action({type:"delete",id:e,from_remote:!1})},[e,a,c]),p=u.nodespace.get_node(e,!1);if(!p)return b.jsx(b.Fragment,{children:" "});const g=p.use();return b.jsxs("div",{style:{top:t,left:n,right:r,bottom:o},className:"context-menu",...i,children:[b.jsx("p",{style:{fontWeight:"bold"},children:b.jsx("small",{children:g.name})}),b.jsx("button",{onClick:f,children:"duplicate"}),b.jsx("button",{onClick:d,children:"delete"})]})},CE=e=>{const t=N.useContext(xe),n=N.useRef(null);N.useEffect(()=>{t.reactflowRef=n.current},[n]);const[r,o]=N.useState(null),i=({nodes:d,edges:p})=>{const g=t.local_state.getState();t.local_state.setState({...g,selected_nodes:d.map(h=>h.id),selected_edges:p.map(h=>h.id)})},s=N.useCallback(()=>o(null),[o]),{nodes:a,edges:l,onNodesChange:c,onEdgesChange:u,onConnect:f}=t.useReactFlowStore(S$(NJ));return b.jsx("div",{className:"reactflowlayer",children:b.jsxs(aP,{nodes:a,edges:l,onNodesChange:c,onEdgesChange:u,onConnect:f,nodeTypes:PJ,edgeTypes:OJ,minZoom:e.minZoom,maxZoom:e.maxZoom,fitView:!0,onSelectionChange:i,ref:n,onPaneClick:s,panOnDrag:!e.static,children:[b.jsx(MJ,{}),b.jsx(DJ,{}),b.jsx(mP,{color:"#888",gap:16,size:1}),e.minimap&&b.jsx(DP,{nodeStrokeWidth:3,pannable:!e.static,zoomable:!e.static,zoomStep:3}),r&&b.jsx(FJ,{onClick:s,...r})]})})},_c=N.createContext(void 0),Dr=N.forwardRef((e,t)=>{const{asChild:n,children:r,className:o,style:i,...s}=e,[a,l]=N.useState(!1),c=N.useRef(null),[u,f]=N.useState(null),[d,p]=N.useState({}),g=e.htime||300,h=e.vtime||300,y=e.hdelay||0,m=e.vdelay||200;N.useImperativeHandle(t,()=>c.current,[]);const x=async()=>{if(!c.current)return;c.current.style.transition="none",c.current.style.position="",c.current.style.top="",c.current.style.left="",c.current.style.width="",c.current.style.height="";const I=c.current.getBoundingClientRect();f([I.left,I.top,I.width,I.height]),c.current.style.transition="none",p({position:"absolute",top:`${I.top}px`,left:`${I.left}px`,width:`${I.width}px`,height:`${I.height}px`}),p(O=>({...O,transitionProperty:"width, left, height, top",transitionDuration:`${g}ms, ${g}ms, ${h}ms, ${h}ms`})),l(!0);const P=new Promise(O=>{setTimeout(()=>{p(L=>({...L,left:"0px",width:"100vw"})),O()},y)}),M=new Promise(O=>{setTimeout(()=>{p(L=>({...L,top:"0px",height:"100vh"})),O()},m)}),w=Math.max(g+y,h+m),R=new Promise(O=>{setTimeout(()=>{O()},w)});await Promise.all([P,M,R])},v=async()=>{if(!c.current||!u)return;const I={transitionProperty:"width, left, height, top",transitionDuration:`${g}ms, ${g}ms, ${h}ms, ${h}ms`};p(D=>({...D,...I}));const[P,M,w,R]=u,O=new Promise(D=>{setTimeout(()=>{p(z=>({...z,left:`${P}px`,width:`${w}px`})),D()},m)}),L=new Promise(D=>{setTimeout(()=>{p(z=>({...z,top:`${M}px`,height:`${R}px`})),D()},y)}),A=Math.max(g+y,h+m),j=new Promise(D=>{setTimeout(()=>{D()},A)});await Promise.all([O,L,j]),c.current.style.transition="",p({}),l(!1)},C=async()=>{c.current&&(a?await v():await x())};let S;if(n&&k.isValidElement(r)){const I=r,P=[I.props.className,o,"smooth-expand",a?"smooth-expand-expanded":""].filter(Boolean).join(" "),M={...I.props.style,...i,...d};S=k.cloneElement(I,{ref:c,className:P,style:M,...s})}else S=b.jsx("div",{ref:c,...s,className:`smooth-expand ${a?"smooth-expand-expanded":""} ${o||""}`,style:{...i,...d},children:r});const E=b.jsx(_c.Provider,{value:{isExpanded:a,toggleExpand:C},children:S});return a?hd.createPortal(E,document.body):E});Dr.Trigger=function({children:e}){const t=N.useContext(_c);if(!t)throw new Error("SmoothExpandComponent.Trigger must be used within a SmoothExpandComponent");return b.jsx("div",{style:{cursor:"pointer"},onClick:t.toggleExpand,children:e})};Dr.Expanded=function({children:e}){const t=N.useContext(_c);if(!t)throw new Error("SmoothExpandComponent.Expanded must be used within a SmoothExpandComponent");return t.isExpanded?b.jsx(b.Fragment,{children:e}):null};Dr.Collapsed=function({children:e}){const t=N.useContext(_c);if(!t)throw new Error("SmoothExpandComponent.Collapsed must be used within a SmoothExpandComponent");return t.isExpanded?null:b.jsx(b.Fragment,{children:e})};const Sc=k.createContext(void 0),ar=N.forwardRef((e,t)=>{const{asChild:n,children:r,className:o,style:i,...s}=e,a=N.useRef(null);N.useImperativeHandle(t,()=>a.current,[]);const[l,c]=N.useState(!1),u=N.useCallback(async()=>{try{const d=a.current;if(!d)return;if(!l)d.requestFullscreen?await d.requestFullscreen():d.mozRequestFullScreen?await d.mozRequestFullScreen():d.webkitRequestFullscreen?await d.webkitRequestFullscreen():d.msRequestFullscreen&&await d.msRequestFullscreen(),c(!0);else{const p=document;p.exitFullscreen?await p.exitFullscreen():p.mozCancelFullScreen?await p.mozCancelFullScreen():p.webkitExitFullscreen?await p.webkitExitFullscreen():p.msExitFullscreen&&await p.msExitFullscreen(),c(!1)}}catch(d){console.error("Error toggling fullscreen",d)}},[l]);N.useEffect(()=>{const d=()=>{const p=document.fullscreenElement;c(!!p)};return document.addEventListener("fullscreenchange",d),document.addEventListener("webkitfullscreenchange",d),document.addEventListener("mozfullscreenchange",d),document.addEventListener("MSFullscreenChange",d),()=>{document.removeEventListener("fullscreenchange",d),document.removeEventListener("webkitfullscreenchange",d),document.removeEventListener("mozfullscreenchange",d),document.removeEventListener("MSFullscreenChange",d)}},[]);let f;if(n&&k.isValidElement(r)){const d=r,p=[d.props.className,o].filter(Boolean).join(" "),g={...d.props.style,...i};f=k.cloneElement(d,{ref:a,className:p,style:g,...s})}else f=b.jsx("div",{ref:a,...s,className:o,style:i,children:r});return b.jsx(Sc.Provider,{value:{isFullScreen:l,toggleFullscreen:u},children:f})});ar.Trigger=function({children:e}){const t=k.useContext(Sc);if(!t)throw new Error("FullScreenComponent.Trigger must be used within a FullScreenComponent");return b.jsx("div",{style:{cursor:"pointer"},onClick:t.toggleFullscreen,children:e})};ar.InFullScreen=function({children:e}){const t=k.useContext(Sc);if(!t)throw new Error("FullScreenComponent.Expanded must be used within a FullScreenComponent");return t.isFullScreen?b.jsx(b.Fragment,{children:e}):null};ar.OutFullScreen=function({children:e}){const t=k.useContext(Sc);if(!t)throw new Error("FullScreenComponent.Collapsed must be used within a FullScreenComponent");return t.isFullScreen?null:b.jsx(b.Fragment,{children:e})};const jJ=({fnrf_zst:e,header:t,flow:n,library:r})=>{const[o,i]=N.useState(e.options.worker),s=k.useRef(null);e.workermanager&&(e.workermanager.on_setWorker=i),e.set_worker(o),k.useEffect(()=>{e.auto_progress()},[]),k.useEffect(()=>{e.local_state.setState({funcnodescontainerRef:s.current})},[s]);const a=e.plugins();return b.jsx(yE,{plugins:a,fnrf_zst:e,children:b.jsx(xe.Provider,{value:e,children:b.jsx(Dr,{asChild:!0,children:b.jsx(ar,{asChild:!0,children:b.jsx(PL,{style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",flex:1},children:b.jsxs("div",{ref:s,className:"funcnodesreactflowcontainer funcnodescontainer",children:[t.show&&b.jsx(VL,{...t}),b.jsxs("div",{className:"funcnodesreactflowbody",children:[b.jsx(CE,{...n}),o&&r.show&&b.jsx(w$,{}),o&&n.showNodeSettings&&b.jsx(RJ,{})]}),b.jsxs("div",{className:"funcnodesflaotingmenu",children:[b.jsx(ar.OutFullScreen,{children:n.allowExpand&&b.jsxs(Dr.Trigger,{children:[b.jsx(Dr.Expanded,{children:b.jsx(J3,{size:"xl",style:{padding:"4px"}})}),b.jsx(Dr.Collapsed,{children:b.jsx(q3,{size:"xl",style:{padding:"4px"}})})]})}),n.allowFullScreen&&b.jsxs(ar.Trigger,{children:[b.jsx(ar.OutFullScreen,{children:b.jsx($1,{size:"xl",style:{padding:"4px"}})}),b.jsx(ar.InFullScreen,{children:b.jsx(Z3,{size:"xl",style:{padding:"4px"}})})]})]})]})})})})})})},dd={};window.fnrf_zst===void 0&&(window.fnrf_zst=dd);const LJ={show:!0},BJ={show:!0,showmenu:!0},zJ={minimap:!0,static:!1,minZoom:.1,maxZoom:5,allowFullScreen:!0,allowExpand:!0,showNodeSettings:!0},_E={id:"",debug:!1,useWorkerManager:!0,show_library:!0,header:BJ,flow:zJ,library:LJ},xe=N.createContext(Nd(_E)),SE=e=>{let t=es(e,{..._E,id:Rx()}).new_obj;if(!t.useWorkerManager&&t.worker===void 0)return b.jsx("div",{children:"Error: If you don't use a worker manager, you must provide a default worker."});if(e.useWorkerManager&&e.workermanager_url===void 0)return b.jsx("div",{children:"Error: If you use a worker manager, you must provide a worker manager url."});let n=dd[t.id];n===void 0&&(n=Nd(t),dd[t.id]=n),n.options.debug=t.debug;const[r,o]=k.useState(t);return k.useEffect(()=>{const i=[];if(r.worker===void 0&&r.worker_url!==void 0){r.useWorkerManager=!1;const s=new Dd({url:r.worker_url,uuid:r.id,on_sync_complete:r.on_sync_complete});r.worker=s,i.push(()=>{s.disconnect()})}if(r.fnw_url!==void 0){if(r.worker===void 0)throw new Error("defining fnw_url requires a worker to be defined");const s=DM(r.fnw_url),a=r.worker.on_sync_complete,l=async c=>{const u=await s;c.on_sync_complete=a,await c.update_from_export(u)};r.worker.on_sync_complete=l}if(r.worker!==void 0&&r.worker.set_zustand(n),t.useWorkerManager){const s=new kM(t.workermanager_url,n);n.workermanager=s,i.push(()=>{s.remove()})}return o({...r}),r.on_ready&&typeof r.on_ready=="function"&&r.on_ready({fnrf_zst:n}),()=>{for(const s of i)s()}},[]),b.jsx(jJ,{fnrf_zst:n,header:r.header,library:r.library,flow:r.flow})},VJ=({nid:e,ioid:t,value:n,set_default:r=!1})=>{var i;(i=N.useContext(xe).worker)==null||i.set_io_value({nid:e,ioid:t,value:n,set_default:r})},GJ={set_io_value:VJ},$J=e=>(new ox("FuncNodes",e.debug?"debug":"info").debug("Initalizing FuncNodes with props:",e),b.jsx("div",{className:"FuncnodesApp",children:b.jsx(SE,{...e})}));exports.FuncNodes=$J;exports.FuncNodesContext=xe;exports.FuncNodesReactFlowZustand=Nd;exports.FuncNodesWorker=Tx;exports.FuncnodesReactFlow=SE;exports.NodeContext=gh;exports.ReactFlowLayer=CE;exports.RenderMappingContext=kn;exports.RenderMappingProvider=yE;exports.WebSocketWorker=Dd;exports.deep_update=es;exports.helperfunctions=GJ;