@linkdlab/funcnodes_react_flow 2.2.0 → 2.2.1-a0

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
@@ -970,7 +970,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
970
970
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fP(e){return b0e(e)||v0e(e)||SW(e)||S0e()}function x0e(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Y3=oe.useLayoutEffect,w0e=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],YR=function(){};function E0e(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function _0e(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 a=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&a.push("".concat(E0e(e,s)));return a.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var v6=function(t){return I0e(t)?t.filter(Boolean):e0(t)==="object"&&t!==null?[t]:[]},wW=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=vp(t,w0e);return Ot({},n)},po=function(t,n,r){var o=t.cx,a=t.getStyles,s=t.getClassNames,u=t.className;return{css:a(n,t),className:o(r??{},s(n,t),u)}};function Sk(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function C0e(e){return Sk(e)?window.innerHeight:e.clientHeight}function EW(e){return Sk(e)?window.pageYOffset:e.scrollTop}function qR(e,t){if(Sk(e)){window.scrollTo(0,t);return}e.scrollTop=t}function T0e(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 A0e(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function RA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:YR,o=EW(e),a=t-o,s=10,u=0;function f(){u+=s;var p=A0e(u,o,a,n);qR(e,p),u<n?window.requestAnimationFrame(f):r(e)}f()}function S6(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?qR(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&qR(e,Math.max(t.offsetTop-o,0))}function O0e(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 x6(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function R0e(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var _W=!1,N0e={get passive(){return _W=!0}},NA=typeof window<"u"?window:{};NA.addEventListener&&NA.removeEventListener&&(NA.addEventListener("p",YR,N0e),NA.removeEventListener("p",YR,!1));var k0e=_W;function M0e(e){return e!=null}function I0e(e){return Array.isArray(e)}function kA(e,t,n){return e?t:n}var D0e=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 a=Object.entries(t).filter(function(s){var u=op(s,1),f=u[0];return!r.includes(f)});return a.reduce(function(s,u){var f=op(u,2),p=f[0],m=f[1];return s[p]=m,s},{})},j0e=["children","innerProps"],P0e=["children","innerProps"];function z0e(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,s=e.isFixedPosition,u=e.controlHeight,f=T0e(n),p={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return p;var m=f.getBoundingClientRect(),g=m.height,b=n.getBoundingClientRect(),S=b.bottom,w=b.height,x=b.top,E=n.offsetParent.getBoundingClientRect(),C=E.top,N=s?window.innerHeight:C0e(f),O=EW(f),k=parseInt(getComputedStyle(n).marginBottom,10),M=parseInt(getComputedStyle(n).marginTop,10),D=C-M,P=N-x,B=D+O,V=g-O-x,U=S-N+O+k,X=O+x-M,L=160;switch(o){case"auto":case"bottom":if(P>=w)return{placement:"bottom",maxHeight:t};if(V>=w&&!s)return a&&RA(f,U,L),{placement:"bottom",maxHeight:t};if(!s&&V>=r||s&&P>=r){a&&RA(f,U,L);var J=s?P-k:V-k;return{placement:"bottom",maxHeight:J}}if(o==="auto"||s){var Y=t,ee=s?D:B;return ee>=r&&(Y=Math.min(ee-k-u,t)),{placement:"top",maxHeight:Y}}if(o==="bottom")return a&&qR(f,U),{placement:"bottom",maxHeight:t};break;case"top":if(D>=w)return{placement:"top",maxHeight:t};if(B>=w&&!s)return a&&RA(f,X,L),{placement:"top",maxHeight:t};if(!s&&B>=r||s&&D>=r){var H=t;return(!s&&B>=r||s&&D>=r)&&(H=s?D-M:B-M),a&&RA(f,X,L),{placement:"top",maxHeight:H}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return p}function $0e(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var CW=function(t){return t==="auto"?"bottom":t},F0e=function(t,n){var r,o=t.placement,a=t.theme,s=a.borderRadius,u=a.spacing,f=a.colors;return Ot((r={label:"menu"},DE(r,$0e(o),"100%"),DE(r,"position","absolute"),DE(r,"width","100%"),DE(r,"zIndex",1),r),n?{}:{backgroundColor:f.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},TW=oe.createContext(null),L0e=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,a=t.menuPlacement,s=t.menuPosition,u=t.menuShouldScrollIntoView,f=t.theme,p=oe.useContext(TW)||{},m=p.setPortalPlacement,g=oe.useRef(null),b=oe.useState(o),S=op(b,2),w=S[0],x=S[1],E=oe.useState(null),C=op(E,2),N=C[0],O=C[1],k=f.spacing.controlHeight;return Y3(function(){var M=g.current;if(M){var D=s==="fixed",P=u&&!D,B=z0e({maxHeight:o,menuEl:M,minHeight:r,placement:a,shouldScroll:P,isFixedPosition:D,controlHeight:k});x(B.maxHeight),O(B.placement),m?.(B.placement)}},[o,a,s,u,r,m,k]),n({ref:g,placerProps:Ot(Ot({},t),{},{placement:N||CW(a),maxHeight:w})})},B0e=function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return Et("div",Ct({},po(t,"menu",{menu:!0}),{ref:r},o),n)},V0e=B0e,U0e=function(t,n){var r=t.maxHeight,o=t.theme.spacing.baseUnit;return Ot({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},H0e=function(t){var n=t.children,r=t.innerProps,o=t.innerRef,a=t.isMulti;return Et("div",Ct({},po(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:o},r),n)},AW=function(t,n){var r=t.theme,o=r.spacing.baseUnit,a=r.colors;return Ot({textAlign:"center"},n?{}:{color:a.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},G0e=AW,Y0e=AW,q0e=function(t){var n=t.children,r=n===void 0?"No options":n,o=t.innerProps,a=vp(t,j0e);return Et("div",Ct({},po(Ot(Ot({},a),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},X0e=function(t){var n=t.children,r=n===void 0?"Loading...":n,o=t.innerProps,a=vp(t,P0e);return Et("div",Ct({},po(Ot(Ot({},a),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},W0e=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}},Z0e=function(t){var n=t.appendTo,r=t.children,o=t.controlElement,a=t.innerProps,s=t.menuPlacement,u=t.menuPosition,f=oe.useRef(null),p=oe.useRef(null),m=oe.useState(CW(s)),g=op(m,2),b=g[0],S=g[1],w=oe.useMemo(function(){return{setPortalPlacement:S}},[]),x=oe.useState(null),E=op(x,2),C=E[0],N=E[1],O=oe.useCallback(function(){if(o){var P=O0e(o),B=u==="fixed"?0:window.pageYOffset,V=P[b]+B;(V!==C?.offset||P.left!==C?.rect.left||P.width!==C?.rect.width)&&N({offset:V,rect:P})}},[o,u,b,C?.offset,C?.rect.left,C?.rect.width]);Y3(function(){O()},[O]);var k=oe.useCallback(function(){typeof p.current=="function"&&(p.current(),p.current=null),o&&f.current&&(p.current=VX(o,f.current,O,{elementResize:"ResizeObserver"in window}))},[o,O]);Y3(function(){k()},[k]);var M=oe.useCallback(function(P){f.current=P,k()},[k]);if(!n&&u!=="fixed"||!C)return null;var D=Et("div",Ct({ref:M},po(Ot(Ot({},t),{},{offset:C.offset,position:u,rect:C.rect}),"menuPortal",{"menu-portal":!0}),a),r);return Et(TW.Provider,{value:w},n?Qd.createPortal(D,n):D)},J0e=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},K0e=function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,a=t.isRtl;return Et("div",Ct({},po(t,"container",{"--is-disabled":o,"--is-rtl":a}),r),n)},Q0e=function(t,n){var r=t.theme.spacing,o=t.isMulti,a=t.hasValue,s=t.selectProps.controlShouldRenderValue;return Ot({alignItems:"center",display:o&&a&&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")})},ebe=function(t){var n=t.children,r=t.innerProps,o=t.isMulti,a=t.hasValue;return Et("div",Ct({},po(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a}),r),n)},tbe=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},nbe=function(t){var n=t.children,r=t.innerProps;return Et("div",Ct({},po(t,"indicatorsContainer",{indicators:!0}),r),n)},w6,rbe=["size"],obe=["innerProps","isRtl","size"];function ibe(){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 abe=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1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mRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:ibe},OW=function(t){var n=t.size,r=vp(t,rbe);return Et("svg",Ct({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:abe},r))},dP=function(t){return Et(OW,Ct({size:20},t),Et("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"}))},RW=function(t){return Et(OW,Ct({size:20},t),Et("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"}))},NW=function(t,n){var r=t.isFocused,o=t.theme,a=o.spacing.baseUnit,s=o.colors;return Ot({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?s.neutral60:s.neutral20,padding:a*2,":hover":{color:r?s.neutral80:s.neutral40}})},sbe=NW,lbe=function(t){var n=t.children,r=t.innerProps;return Et("div",Ct({},po(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||Et(RW,null))},ube=NW,cbe=function(t){var n=t.children,r=t.innerProps;return Et("div",Ct({},po(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||Et(dP,null))},fbe=function(t,n){var r=t.isDisabled,o=t.theme,a=o.spacing.baseUnit,s=o.colors;return Ot({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?s.neutral10:s.neutral20,marginBottom:a*2,marginTop:a*2})},dbe=function(t){var n=t.innerProps;return Et("span",Ct({},n,po(t,"indicatorSeparator",{"indicator-separator":!0})))},pbe=W1(w6||(w6=x0e([`
971
971
  0%, 80%, 100% { opacity: 0; }
972
972
  40% { opacity: 1; }
973
- `]))),hbe=function(t,n){var r=t.isFocused,o=t.size,a=t.theme,s=a.colors,u=a.spacing.baseUnit;return Ot({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:u*2})},PD=function(t){var n=t.delay,r=t.offset;return Et("span",{css:rC({animation:"".concat(pbe," 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+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2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xcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},mbe=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,a=o===void 0?4:o,s=vp(t,obe);return Et("div",Ct({},po(Ot(Ot({},s),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),Et(PD,{delay:0,offset:r}),Et(PD,{delay:160,offset:!0}),Et(PD,{delay:320,offset:!r}))},gbe=function(t,n){var r=t.isDisabled,o=t.isFocused,a=t.theme,s=a.colors,u=a.borderRadius,f=a.spacing;return Ot({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:f.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:u,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:o?s.primary:s.neutral30}})},ybe=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,a=t.innerRef,s=t.innerProps,u=t.menuIsOpen;return Et("div",Ct({ref:a},po(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":u}),s,{"aria-disabled":r||void 0}),n)},bbe=ybe,vbe=["data"],Sbe=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},xbe=function(t){var n=t.children,r=t.cx,o=t.getStyles,a=t.getClassNames,s=t.Heading,u=t.headingProps,f=t.innerProps,p=t.label,m=t.theme,g=t.selectProps;return Et("div",Ct({},po(t,"group",{group:!0}),f),Et(s,Ct({},u,{selectProps:g,theme:m,getStyles:o,getClassNames:a,cx:r}),p),Et("div",null,n))},wbe=function(t,n){var r=t.theme,o=r.colors,a=r.spacing;return Ot({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},Ebe=function(t){var n=wW(t);n.data;var r=vp(n,vbe);return Et("div",Ct({},po(t,"groupHeading",{"group-heading":!0}),r))},_be=xbe,Cbe=["innerRef","isDisabled","isHidden","inputClassName"],Tbe=function(t,n){var r=t.isDisabled,o=t.value,a=t.theme,s=a.spacing,u=a.colors;return Ot(Ot({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},Abe),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:u.neutral80})},kW={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Abe={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ot({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},kW)},Obe=function(t){return Ot({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},kW)},Rbe=function(t){var n=t.cx,r=t.value,o=wW(t),a=o.innerRef,s=o.isDisabled,u=o.isHidden,f=o.inputClassName,p=vp(o,Cbe);return Et("div",Ct({},po(t,"input",{"input-container":!0}),{"data-value":r||""}),Et("input",Ct({className:n({input:!0},f),ref:a,style:Obe(u),disabled:s},p)))},Nbe=Rbe,kbe=function(t,n){var r=t.theme,o=r.spacing,a=r.borderRadius,s=r.colors;return Ot({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:a/2,margin:o.baseUnit/2})},Mbe=function(t,n){var r=t.theme,o=r.borderRadius,a=r.colors,s=t.cropWithEllipsis;return Ot({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Ibe=function(t,n){var r=t.theme,o=r.spacing,a=r.borderRadius,s=r.colors,u=t.isFocused;return Ot({alignItems:"center",display:"flex"},n?{}:{borderRadius:a/2,backgroundColor:u?s.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},MW=function(t){var n=t.children,r=t.innerProps;return Et("div",r,n)},Dbe=MW,jbe=MW;function Pbe(e){var t=e.children,n=e.innerProps;return Et("div",Ct({role:"button"},n),t||Et(dP,{size:14}))}var zbe=function(t){var n=t.children,r=t.components,o=t.data,a=t.innerProps,s=t.isDisabled,u=t.removeProps,f=t.selectProps,p=r.Container,m=r.Label,g=r.Remove;return Et(p,{data:o,innerProps:Ot(Ot({},po(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),a),selectProps:f},Et(m,{data:o,innerProps:Ot({},po(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:f},n),Et(g,{data:o,innerProps:Ot(Ot({},po(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},u),selectProps:f}))},$be=zbe,Fbe=function(t,n){var r=t.isDisabled,o=t.isFocused,a=t.isSelected,s=t.theme,u=s.spacing,f=s.colors;return Ot({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:a?f.primary:o?f.primary25:"transparent",color:r?f.neutral20:a?f.neutral0:"inherit",padding:"".concat(u.baseUnit*2,"px ").concat(u.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:a?f.primary:f.primary50}})},Lbe=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,a=t.isSelected,s=t.innerRef,u=t.innerProps;return Et("div",Ct({},po(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":a}),{ref:s,"aria-disabled":r},u),n)},Bbe=Lbe,Vbe=function(t,n){var r=t.theme,o=r.spacing,a=r.colors;return Ot({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Ube=function(t){var n=t.children,r=t.innerProps;return Et("div",Ct({},po(t,"placeholder",{placeholder:!0}),r),n)},Hbe=Ube,Gbe=function(t,n){var r=t.isDisabled,o=t.theme,a=o.spacing,s=o.colors;return Ot({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?s.neutral40:s.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},Ybe=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return Et("div",Ct({},po(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},qbe=Ybe,Xbe={ClearIndicator:cbe,Control:bbe,DropdownIndicator:lbe,DownChevron:RW,CrossIcon:dP,Group:_be,GroupHeading:Ebe,IndicatorsContainer:nbe,IndicatorSeparator:dbe,Input:Nbe,LoadingIndicator:mbe,Menu:V0e,MenuList:H0e,MenuPortal:Z0e,LoadingMessage:X0e,NoOptionsMessage:q0e,MultiValue:$be,MultiValueContainer:Dbe,MultiValueLabel:jbe,MultiValueRemove:Pbe,Option:Bbe,Placeholder:Hbe,SelectContainer:K0e,SingleValue:qbe,ValueContainer:ebe},Wbe=function(t){return Ot(Ot({},Xbe),t.components)},E6=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Zbe(e,t){return!!(e===t||E6(e)&&E6(t))}function Jbe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Zbe(e[n],t[n]))return!1;return!0}function Kbe(e,t){t===void 0&&(t=Jbe);var n=null;function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];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 Qbe(){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 eve=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:Qbe},tve=function(t){return Et("span",Ct({css:eve},t))},_6=tve,nve={guidance:function(t){var n=t.isSearchable,r=t.isMulti,o=t.tabSelectsValue,a=t.context,s=t.isInitialFocus;switch(a){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,a=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(a.length>1?"s":""," ").concat(a.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,a=t.label,s=a===void 0?"":a,u=t.selectValue,f=t.isDisabled,p=t.isSelected,m=t.isAppleDevice,g=function(x,E){return x&&x.length?"".concat(x.indexOf(E)+1," of ").concat(x.length):""};if(n==="value"&&u)return"value ".concat(s," focused, ").concat(g(u,r),".");if(n==="menu"&&m){var b=f?" disabled":"",S="".concat(p?" selected":"").concat(b);return"".concat(s).concat(S,", ").concat(g(o,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},rve=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.focusableOptions,s=t.isFocused,u=t.selectValue,f=t.selectProps,p=t.id,m=t.isAppleDevice,g=f.ariaLiveMessages,b=f.getOptionLabel,S=f.inputValue,w=f.isMulti,x=f.isOptionDisabled,E=f.isSearchable,C=f.menuIsOpen,N=f.options,O=f.screenReaderStatus,k=f.tabSelectsValue,M=f.isLoading,D=f["aria-label"],P=f["aria-live"],B=oe.useMemo(function(){return Ot(Ot({},nve),g||{})},[g]),V=oe.useMemo(function(){var ee="";if(n&&B.onChange){var H=n.option,ne=n.options,Q=n.removedValue,ae=n.removedValues,q=n.value,W=function(he){return Array.isArray(he)?null:he},ie=Q||H||W(q),Z=ie?b(ie):"",K=ne||ae||void 0,se=K?K.map(b):[],de=Ot({isDisabled:ie&&x(ie,u),label:Z,labels:se},n);ee=B.onChange(de)}return ee},[n,B,x,u,b]),U=oe.useMemo(function(){var ee="",H=r||o,ne=!!(r&&u&&u.includes(r));if(H&&B.onFocus){var Q={focused:H,label:b(H),isDisabled:x(H,u),isSelected:ne,options:a,context:H===r?"menu":"value",selectValue:u,isAppleDevice:m};ee=B.onFocus(Q)}return ee},[r,o,b,x,B,a,u,m]),X=oe.useMemo(function(){var ee="";if(C&&N.length&&!M&&B.onFilter){var H=O({count:a.length});ee=B.onFilter({inputValue:S,resultsMessage:H})}return ee},[a,S,C,B,N,O,M]),L=n?.action==="initial-input-focus",J=oe.useMemo(function(){var ee="";if(B.guidance){var H=o?"value":C?"menu":"input";ee=B.guidance({"aria-label":D,context:H,isDisabled:r&&x(r,u),isMulti:w,isSearchable:E,tabSelectsValue:k,isInitialFocus:L})}return ee},[D,r,o,w,x,E,C,B,u,k,L]),Y=Et(oe.Fragment,null,Et("span",{id:"aria-selection"},V),Et("span",{id:"aria-focused"},U),Et("span",{id:"aria-results"},X),Et("span",{id:"aria-guidance"},J));return Et(oe.Fragment,null,Et(_6,{id:p},L&&Y),Et(_6,{"aria-live":P,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!L&&Y))},ove=rve,q3=[{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źẑżžẓẕƶȥɀⱬꝣ"}],ive=new RegExp("["+q3.map(function(e){return e.letters}).join("")+"]","g"),IW={};for(var zD=0;zD<q3.length;zD++)for(var $D=q3[zD],FD=0;FD<$D.letters.length;FD++)IW[$D.letters[FD]]=$D.base;var DW=function(t){return t.replace(ive,function(n){return IW[n]})},ave=Kbe(DW),C6=function(t){return t.replace(/^\s+|\s+$/g,"")},sve=function(t){return"".concat(t.label," ").concat(t.value)},lve=function(t){return function(n,r){if(n.data.__isNew__)return!0;var o=Ot({ignoreCase:!0,ignoreAccents:!0,stringify:sve,trim:!0,matchFrom:"any"},t),a=o.ignoreCase,s=o.ignoreAccents,u=o.stringify,f=o.trim,p=o.matchFrom,m=f?C6(r):r,g=f?C6(u(n)):u(n);return a&&(m=m.toLowerCase(),g=g.toLowerCase()),s&&(m=ave(m),g=DW(g)),p==="start"?g.substr(0,m.length)===m:g.indexOf(m)>-1}},uve=["innerRef"];function cve(e){var t=e.innerRef,n=vp(e,uve),r=D0e(n,"onExited","in","enter","exit","appear");return Et("input",Ct({ref:t},r,{css:rC({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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQ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6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var fve=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function dve(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,s=oe.useRef(!1),u=oe.useRef(!1),f=oe.useRef(0),p=oe.useRef(null),m=oe.useCallback(function(E,C){if(p.current!==null){var N=p.current,O=N.scrollTop,k=N.scrollHeight,M=N.clientHeight,D=p.current,P=C>0,B=k-M-O,V=!1;B>C&&s.current&&(r&&r(E),s.current=!1),P&&u.current&&(a&&a(E),u.current=!1),P&&C>B?(n&&!s.current&&n(E),D.scrollTop=k,V=!0,s.current=!0):!P&&-C>O&&(o&&!u.current&&o(E),D.scrollTop=0,V=!0,u.current=!0),V&&fve(E)}},[n,r,o,a]),g=oe.useCallback(function(E){m(E,E.deltaY)},[m]),b=oe.useCallback(function(E){f.current=E.changedTouches[0].clientY},[]),S=oe.useCallback(function(E){var C=f.current-E.changedTouches[0].clientY;m(E,C)},[m]),w=oe.useCallback(function(E){if(E){var C=k0e?{passive:!1}:!1;E.addEventListener("wheel",g,C),E.addEventListener("touchstart",b,C),E.addEventListener("touchmove",S,C)}},[S,b,g]),x=oe.useCallback(function(E){E&&(E.removeEventListener("wheel",g,!1),E.removeEventListener("touchstart",b,!1),E.removeEventListener("touchmove",S,!1))},[S,b,g]);return oe.useEffect(function(){if(t){var E=p.current;return w(E),function(){x(E)}}},[t,w,x]),function(E){p.current=E}}var T6=["boxSizing","height","overflow","paddingRight","position"],A6={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function O6(e){e.cancelable&&e.preventDefault()}function R6(e){e.stopPropagation()}function N6(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function k6(){return"ontouchstart"in window||navigator.maxTouchPoints}var M6=!!(typeof window<"u"&&window.document&&window.document.createElement),uE=0,Yv={capture:!1,passive:!1};function pve(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=oe.useRef({}),a=oe.useRef(null),s=oe.useCallback(function(f){if(M6){var p=document.body,m=p&&p.style;if(r&&T6.forEach(function(w){var x=m&&m[w];o.current[w]=x}),r&&uE<1){var g=parseInt(o.current.paddingRight,10)||0,b=document.body?document.body.clientWidth:0,S=window.innerWidth-b+g||0;Object.keys(A6).forEach(function(w){var x=A6[w];m&&(m[w]=x)}),m&&(m.paddingRight="".concat(S,"px"))}p&&k6()&&(p.addEventListener("touchmove",O6,Yv),f&&(f.addEventListener("touchstart",N6,Yv),f.addEventListener("touchmove",R6,Yv))),uE+=1}},[r]),u=oe.useCallback(function(f){if(M6){var p=document.body,m=p&&p.style;uE=Math.max(uE-1,0),r&&uE<1&&T6.forEach(function(g){var b=o.current[g];m&&(m[g]=b)}),p&&k6()&&(p.removeEventListener("touchmove",O6,Yv),f&&(f.removeEventListener("touchstart",N6,Yv),f.removeEventListener("touchmove",R6,Yv)))}},[r]);return oe.useEffect(function(){if(t){var f=a.current;return s(f),function(){u(f)}}},[t,s,u]),function(f){a.current=f}}function hve(){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 mve=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},gve=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5h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XJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:hve};function yve(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,a=e.onBottomArrive,s=e.onBottomLeave,u=e.onTopArrive,f=e.onTopLeave,p=dve({isEnabled:o,onBottomArrive:a,onBottomLeave:s,onTopArrive:u,onTopLeave:f}),m=pve({isEnabled:n}),g=function(S){p(S),m(S)};return Et(oe.Fragment,null,n&&Et("div",{onClick:mve,css:gve}),t(g))}function bve(){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 vve=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:bve},Sve=function(t){var n=t.name,r=t.onFocus;return Et("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:vve,value:"",onChange:function(){}})},xve=Sve;function pP(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 wve(){return pP(/^iPhone/i)}function jW(){return pP(/^Mac/i)}function Eve(){return pP(/^iPad/i)||jW()&&navigator.maxTouchPoints>1}function _ve(){return wve()||Eve()}function Cve(){return jW()||_ve()}var Tve=function(t){return t.label},Ave=function(t){return t.label},Ove=function(t){return t.value},Rve=function(t){return!!t.isDisabled},Nve={clearIndicator:ube,container:J0e,control:gbe,dropdownIndicator:sbe,group:Sbe,groupHeading:wbe,indicatorsContainer:tbe,indicatorSeparator:fbe,input:Tbe,loadingIndicator:hbe,loadingMessage:Y0e,menu:F0e,menuList:U0e,menuPortal:W0e,multiValue:kbe,multiValueLabel:Mbe,multiValueRemove:Ibe,noOptionsMessage:G0e,option:Fbe,placeholder:Vbe,singleValue:Gbe,valueContainer:Q0e},kve={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%)"},Mve=4,PW=4,Ive=38,Dve=PW*2,jve={baseUnit:PW,controlHeight:Ive,menuGutter:Dve},LD={borderRadius:Mve,colors:kve,spacing:jve},Pve={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:x6(),captureMenuScroll:!x6(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:lve(),formatGroupLabel:Tve,getOptionLabel:Ave,getOptionValue:Ove,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Rve,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!R0e(),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 I6(e,t,n,r){var o=FW(e,t,n),a=LW(e,t,n),s=$W(e,t),u=XR(e,t);return{type:"option",data:t,isDisabled:o,isSelected:a,label:s,value:u,index:r}}function sR(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(s,u){return I6(e,s,t,u)}).filter(function(s){return j6(e,s)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=I6(e,n,t,r);return j6(e,a)?a:void 0}).filter(M0e)}function zW(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,fP(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function D6(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,fP(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 zve(e,t){return zW(sR(e,t))}function j6(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,a=t.isSelected,s=t.label,u=t.value;return(!VW(e)||!a)&&BW(e,{label:s,value:u,data:o},r)}function $ve(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var a=t.indexOf(n);if(a>-1)return n;if(o<t.length)return t[o]}return null}function Fve(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var BD=function(t,n){var r,o=(r=t.find(function(a){return a.data===n}))===null||r===void 0?void 0:r.id;return o||null},$W=function(t,n){return t.getOptionLabel(n)},XR=function(t,n){return t.getOptionValue(n)};function FW(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function LW(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=XR(e,t);return n.some(function(o){return XR(e,o)===r})}function BW(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var VW=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},Lve=1,UW=(function(e){m0e(n,e);var t=y0e(n);function n(r){var o;if(p0e(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:"",isAppleDevice:!1},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.controlRef=null,o.getControlRef=function(f){o.controlRef=f},o.focusedOptionRef=null,o.getFocusedOptionRef=function(f){o.focusedOptionRef=f},o.menuListRef=null,o.getMenuListRef=function(f){o.menuListRef=f},o.inputRef=null,o.getInputRef=function(f){o.inputRef=f},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(f,p){var m=o.props,g=m.onChange,b=m.name;p.name=b,o.ariaOnChange(f,p),g(f,p)},o.setValue=function(f,p,m){var g=o.props,b=g.closeMenuOnSelect,S=g.isMulti,w=g.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:w}),b&&(o.setState({inputIsHiddenAfterUpdate:!S}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(f,{action:p,option:m})},o.selectOption=function(f){var p=o.props,m=p.blurInputOnSelect,g=p.isMulti,b=p.name,S=o.state.selectValue,w=g&&o.isOptionSelected(f,S),x=o.isOptionDisabled(f,S);if(w){var E=o.getOptionValue(f);o.setValue(S.filter(function(C){return o.getOptionValue(C)!==E}),"deselect-option",f)}else if(!x)g?o.setValue([].concat(fP(S),[f]),"select-option",f):o.setValue(f,"select-option");else{o.ariaOnChange(f,{action:"select-option",option:f,name:b});return}m&&o.blurInput()},o.removeValue=function(f){var p=o.props.isMulti,m=o.state.selectValue,g=o.getOptionValue(f),b=m.filter(function(w){return o.getOptionValue(w)!==g}),S=kA(p,b,b[0]||null);o.onChange(S,{action:"remove-value",removedValue:f}),o.focusInput()},o.clearValue=function(){var f=o.state.selectValue;o.onChange(kA(o.props.isMulti,[],null),{action:"clear",removedValues:f})},o.popValue=function(){var f=o.props.isMulti,p=o.state.selectValue,m=p[p.length-1],g=p.slice(0,p.length-1),b=kA(f,g,g[0]||null);m&&o.onChange(b,{action:"pop-value",removedValue:m})},o.getFocusedOptionId=function(f){return BD(o.state.focusableOptionsWithIds,f)},o.getFocusableOptionsWithIds=function(){return D6(sR(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];return _0e.apply(void 0,[o.props.classNamePrefix].concat(p))},o.getOptionLabel=function(f){return $W(o.props,f)},o.getOptionValue=function(f){return XR(o.props,f)},o.getStyles=function(f,p){var m=o.props.unstyled,g=Nve[f](p,m);g.boxSizing="border-box";var b=o.props.styles[f];return b?b(g,p):g},o.getClassNames=function(f,p){var m,g;return(m=(g=o.props.classNames)[f])===null||m===void 0?void 0:m.call(g,p)},o.getElementId=function(f){return"".concat(o.state.instancePrefix,"-").concat(f)},o.getComponents=function(){return Wbe(o.props)},o.buildCategorizedOptions=function(){return sR(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return zW(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(f,p){o.setState({ariaSelection:Ot({value:f},p)})},o.onMenuMouseDown=function(f){f.button===0&&(f.stopPropagation(),f.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(f){o.blockOptionHover=!1},o.onControlMouseDown=function(f){if(!f.defaultPrevented){var p=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?f.target.tagName!=="INPUT"&&f.target.tagName!=="TEXTAREA"&&o.onMenuClose():p&&o.openMenu("first"):(p&&(o.openAfterFocus=!0),o.focusInput()),f.target.tagName!=="INPUT"&&f.target.tagName!=="TEXTAREA"&&f.preventDefault()}},o.onDropdownIndicatorMouseDown=function(f){if(!(f&&f.type==="mousedown"&&f.button!==0)&&!o.props.isDisabled){var p=o.props,m=p.isMulti,g=p.menuIsOpen;o.focusInput(),g?(o.setState({inputIsHiddenAfterUpdate:!m}),o.onMenuClose()):o.openMenu("first"),f.preventDefault()}},o.onClearIndicatorMouseDown=function(f){f&&f.type==="mousedown"&&f.button!==0||(o.clearValue(),f.preventDefault(),o.openAfterFocus=!1,f.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(f){typeof o.props.closeMenuOnScroll=="boolean"?f.target instanceof HTMLElement&&Sk(f.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(f)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(f){var p=f.touches,m=p&&p.item(0);m&&(o.initialTouchX=m.clientX,o.initialTouchY=m.clientY,o.userIsDragging=!1)},o.onTouchMove=function(f){var p=f.touches,m=p&&p.item(0);if(m){var g=Math.abs(m.clientX-o.initialTouchX),b=Math.abs(m.clientY-o.initialTouchY),S=5;o.userIsDragging=g>S||b>S}},o.onTouchEnd=function(f){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(f.target)&&o.menuListRef&&!o.menuListRef.contains(f.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(f){o.userIsDragging||o.onControlMouseDown(f)},o.onClearIndicatorTouchEnd=function(f){o.userIsDragging||o.onClearIndicatorMouseDown(f)},o.onDropdownIndicatorTouchEnd=function(f){o.userIsDragging||o.onDropdownIndicatorMouseDown(f)},o.handleInputChange=function(f){var p=o.props.inputValue,m=f.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(m,{action:"input-change",prevInputValue:p}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(f){o.props.onFocus&&o.props.onFocus(f),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(f){var p=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(f),o.onInputChange("",{action:"input-blur",prevInputValue:p}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(f){if(!(o.blockOptionHover||o.state.focusedOption===f)){var p=o.getFocusableOptions(),m=p.indexOf(f);o.setState({focusedOption:f,focusedOptionId:m>-1?o.getFocusedOptionId(f):null})}},o.shouldHideSelectedOptions=function(){return VW(o.props)},o.onValueInputFocus=function(f){f.preventDefault(),f.stopPropagation(),o.focus()},o.onKeyDown=function(f){var p=o.props,m=p.isMulti,g=p.backspaceRemovesValue,b=p.escapeClearsValue,S=p.inputValue,w=p.isClearable,x=p.isDisabled,E=p.menuIsOpen,C=p.onKeyDown,N=p.tabSelectsValue,O=p.openMenuOnFocus,k=o.state,M=k.focusedOption,D=k.focusedValue,P=k.selectValue;if(!x&&!(typeof C=="function"&&(C(f),f.defaultPrevented))){switch(o.blockOptionHover=!0,f.key){case"ArrowLeft":if(!m||S)return;o.focusValue("previous");break;case"ArrowRight":if(!m||S)return;o.focusValue("next");break;case"Delete":case"Backspace":if(S)return;if(D)o.removeValue(D);else{if(!g)return;m?o.popValue():w&&o.clearValue()}break;case"Tab":if(o.isComposing||f.shiftKey||!E||!N||!M||O&&o.isOptionSelected(M,P))return;o.selectOption(M);break;case"Enter":if(f.keyCode===229)break;if(E){if(!M||o.isComposing)return;o.selectOption(M);break}return;case"Escape":E?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:S}),o.onMenuClose()):w&&b&&o.clearValue();break;case" ":if(S)return;if(!E){o.openMenu("first");break}if(!M)return;o.selectOption(M);break;case"ArrowUp":E?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":E?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!E)return;o.focusOption("pageup");break;case"PageDown":if(!E)return;o.focusOption("pagedown");break;case"Home":if(!E)return;o.focusOption("first");break;case"End":if(!E)return;o.focusOption("last");break;default:return}f.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++Lve),o.state.selectValue=v6(r.value),r.menuIsOpen&&o.state.selectValue.length){var a=o.getFocusableOptionsWithIds(),s=o.buildFocusableOptions(),u=s.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=a,o.state.focusedOption=s[u],o.state.focusedOptionId=BD(a,s[u])}return o}return h0e(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&&S6(this.menuListRef,this.focusedOptionRef),Cve()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var a=this.props,s=a.isDisabled,u=a.menuIsOpen,f=this.state.isFocused;(f&&!s&&o.isDisabled||f&&u&&!o.menuIsOpen)&&this.focusInput(),f&&s&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!f&&!s&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(S6(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,a){this.props.onInputChange(o,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var a=this,s=this.state,u=s.selectValue,f=s.isFocused,p=this.buildFocusableOptions(),m=o==="first"?0:p.length-1;if(!this.props.isMulti){var g=p.indexOf(u[0]);g>-1&&(m=g)}this.scrollToFocusedOptionOnUpdate=!(f&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:p[m],focusedOptionId:this.getFocusedOptionId(p[m])},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(o){var a=this.state,s=a.selectValue,u=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var f=s.indexOf(u);u||(f=-1);var p=s.length-1,m=-1;if(s.length){switch(o){case"previous":f===0?m=0:f===-1?m=p:m=f-1;break;case"next":f>-1&&f<p&&(m=f+1);break}this.setState({inputIsHidden:m!==-1,focusedValue:s[m]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,s=this.state.focusedOption,u=this.getFocusableOptions();if(u.length){var f=0,p=u.indexOf(s);s||(p=-1),o==="up"?f=p>0?p-1:u.length-1:o==="down"?f=(p+1)%u.length:o==="pageup"?(f=p-a,f<0&&(f=0)):o==="pagedown"?(f=p+a,f>u.length-1&&(f=u.length-1)):o==="last"&&(f=u.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:u[f],focusedValue:null,focusedOptionId:this.getFocusedOptionId(u[f])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(LD):Ot(Ot({},LD),this.props.theme):LD}},{key:"getCommonProps",value:function(){var o=this.clearValue,a=this.cx,s=this.getStyles,u=this.getClassNames,f=this.getValue,p=this.selectOption,m=this.setValue,g=this.props,b=g.isMulti,S=g.isRtl,w=g.options,x=this.hasValue();return{clearValue:o,cx:a,getStyles:s,getClassNames:u,getValue:f,hasValue:x,isMulti:b,isRtl:S,options:w,selectOption:p,selectProps:g,setValue:m,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,a=o.isClearable,s=o.isMulti;return a===void 0?s:a}},{key:"isOptionDisabled",value:function(o,a){return FW(this.props,o,a)}},{key:"isOptionSelected",value:function(o,a){return LW(this.props,o,a)}},{key:"filterOption",value:function(o,a){return BW(this.props,o,a)}},{key:"formatOptionLabel",value:function(o,a){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,u=this.state.selectValue;return this.props.formatOptionLabel(o,{context:a,inputValue:s,selectValue:u})}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,a=o.isDisabled,s=o.isSearchable,u=o.inputId,f=o.inputValue,p=o.tabIndex,m=o.form,g=o.menuIsOpen,b=o.required,S=this.getComponents(),w=S.Input,x=this.state,E=x.inputIsHidden,C=x.ariaSelection,N=this.commonProps,O=u||this.getElementId("input"),k=Ot(Ot(Ot({"aria-autocomplete":"list","aria-expanded":g,"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":b,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},g&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?C?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?F.createElement(w,Ct({},N,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:O,innerRef:this.getInputRef,isDisabled:a,isHidden:E,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:p,form:m,type:"text",value:f},k)):F.createElement(cve,Ct({id:O,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:YR,onFocus:this.onInputFocus,disabled:a,tabIndex:p,inputMode:"none",form:m,value:""},k))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,a=this.getComponents(),s=a.MultiValue,u=a.MultiValueContainer,f=a.MultiValueLabel,p=a.MultiValueRemove,m=a.SingleValue,g=a.Placeholder,b=this.commonProps,S=this.props,w=S.controlShouldRenderValue,x=S.isDisabled,E=S.isMulti,C=S.inputValue,N=S.placeholder,O=this.state,k=O.selectValue,M=O.focusedValue,D=O.isFocused;if(!this.hasValue()||!w)return C?null:F.createElement(g,Ct({},b,{key:"placeholder",isDisabled:x,isFocused:D,innerProps:{id:this.getElementId("placeholder")}}),N);if(E)return k.map(function(B,V){var U=B===M,X="".concat(o.getOptionLabel(B),"-").concat(o.getOptionValue(B));return F.createElement(s,Ct({},b,{components:{Container:u,Label:f,Remove:p},isFocused:U,isDisabled:x,key:X,index:V,removeProps:{onClick:function(){return o.removeValue(B)},onTouchEnd:function(){return o.removeValue(B)},onMouseDown:function(J){J.preventDefault()}},data:B}),o.formatOptionLabel(B,"value"))});if(C)return null;var P=k[0];return F.createElement(m,Ct({},b,{data:P,isDisabled:x}),this.formatOptionLabel(P,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),a=o.ClearIndicator,s=this.commonProps,u=this.props,f=u.isDisabled,p=u.isLoading,m=this.state.isFocused;if(!this.isClearable()||!a||f||!this.hasValue()||p)return null;var g={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return F.createElement(a,Ct({},s,{innerProps:g,isFocused:m}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),a=o.LoadingIndicator,s=this.commonProps,u=this.props,f=u.isDisabled,p=u.isLoading,m=this.state.isFocused;if(!a||!p)return null;var g={"aria-hidden":"true"};return F.createElement(a,Ct({},s,{innerProps:g,isDisabled:f,isFocused:m}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),a=o.DropdownIndicator,s=o.IndicatorSeparator;if(!a||!s)return null;var u=this.commonProps,f=this.props.isDisabled,p=this.state.isFocused;return F.createElement(s,Ct({},u,{isDisabled:f,isFocused:p}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),a=o.DropdownIndicator;if(!a)return null;var s=this.commonProps,u=this.props.isDisabled,f=this.state.isFocused,p={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return F.createElement(a,Ct({},s,{innerProps:p,isDisabled:u,isFocused:f}))}},{key:"renderMenu",value:function(){var o=this,a=this.getComponents(),s=a.Group,u=a.GroupHeading,f=a.Menu,p=a.MenuList,m=a.MenuPortal,g=a.LoadingMessage,b=a.NoOptionsMessage,S=a.Option,w=this.commonProps,x=this.state.focusedOption,E=this.props,C=E.captureMenuScroll,N=E.inputValue,O=E.isLoading,k=E.loadingMessage,M=E.minMenuHeight,D=E.maxMenuHeight,P=E.menuIsOpen,B=E.menuPlacement,V=E.menuPosition,U=E.menuPortalTarget,X=E.menuShouldBlockScroll,L=E.menuShouldScrollIntoView,J=E.noOptionsMessage,Y=E.onMenuScrollToTop,ee=E.onMenuScrollToBottom;if(!P)return null;var H=function(Z,K){var se=Z.type,de=Z.data,pe=Z.isDisabled,he=Z.isSelected,we=Z.label,_e=Z.value,ue=x===de,fe=pe?void 0:function(){return o.onOptionHover(de)},be=pe?void 0:function(){return o.selectOption(de)},me="".concat(o.getElementId("option"),"-").concat(K),De={id:me,onClick:be,onMouseMove:fe,onMouseOver:fe,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:he};return F.createElement(S,Ct({},w,{innerProps:De,data:de,isDisabled:pe,isSelected:he,key:me,label:we,type:se,value:_e,isFocused:ue,innerRef:ue?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(Z.data,"menu"))},ne;if(this.hasOptions())ne=this.getCategorizedOptions().map(function(ie){if(ie.type==="group"){var Z=ie.data,K=ie.options,se=ie.index,de="".concat(o.getElementId("group"),"-").concat(se),pe="".concat(de,"-heading");return F.createElement(s,Ct({},w,{key:de,data:Z,options:K,Heading:u,headingProps:{id:pe,data:ie.data},label:o.formatGroupLabel(ie.data)}),ie.options.map(function(he){return H(he,"".concat(se,"-").concat(he.index))}))}else if(ie.type==="option")return H(ie,"".concat(ie.index))});else if(O){var Q=k({inputValue:N});if(Q===null)return null;ne=F.createElement(g,w,Q)}else{var ae=J({inputValue:N});if(ae===null)return null;ne=F.createElement(b,w,ae)}var q={minMenuHeight:M,maxMenuHeight:D,menuPlacement:B,menuPosition:V,menuShouldScrollIntoView:L},W=F.createElement(L0e,Ct({},w,q),function(ie){var Z=ie.ref,K=ie.placerProps,se=K.placement,de=K.maxHeight;return F.createElement(f,Ct({},w,q,{innerRef:Z,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:O,placement:se}),F.createElement(yve,{captureEnabled:C,onTopArrive:Y,onBottomArrive:ee,lockEnabled:X},function(pe){return F.createElement(p,Ct({},w,{innerRef:function(we){o.getMenuListRef(we),pe(we)},innerProps:{role:"listbox","aria-multiselectable":w.isMulti,id:o.getElementId("listbox")},isLoading:O,maxHeight:de,focusedOption:x}),ne)}))});return U||V==="fixed"?F.createElement(m,Ct({},w,{appendTo:U,controlElement:this.controlRef,menuPlacement:B,menuPosition:V}),W):W}},{key:"renderFormField",value:function(){var o=this,a=this.props,s=a.delimiter,u=a.isDisabled,f=a.isMulti,p=a.name,m=a.required,g=this.state.selectValue;if(m&&!this.hasValue()&&!u)return F.createElement(xve,{name:p,onFocus:this.onValueInputFocus});if(!(!p||u))if(f)if(s){var b=g.map(function(x){return o.getOptionValue(x)}).join(s);return F.createElement("input",{name:p,type:"hidden",value:b})}else{var S=g.length>0?g.map(function(x,E){return F.createElement("input",{key:"i-".concat(E),name:p,type:"hidden",value:o.getOptionValue(x)})}):F.createElement("input",{name:p,type:"hidden",value:""});return F.createElement("div",null,S)}else{var w=g[0]?this.getOptionValue(g[0]):"";return F.createElement("input",{name:p,type:"hidden",value:w})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,a=this.state,s=a.ariaSelection,u=a.focusedOption,f=a.focusedValue,p=a.isFocused,m=a.selectValue,g=this.getFocusableOptions();return F.createElement(ove,Ct({},o,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:u,focusedValue:f,isFocused:p,selectValue:m,focusableOptions:g,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),a=o.Control,s=o.IndicatorsContainer,u=o.SelectContainer,f=o.ValueContainer,p=this.props,m=p.className,g=p.id,b=p.isDisabled,S=p.menuIsOpen,w=this.state.isFocused,x=this.commonProps=this.getCommonProps();return F.createElement(u,Ct({},x,{className:m,innerProps:{id:g,onKeyDown:this.onKeyDown},isDisabled:b,isFocused:w}),this.renderLiveRegion(),F.createElement(a,Ct({},x,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:b,isFocused:w,menuIsOpen:S}),F.createElement(f,Ct({},x,{isDisabled:b}),this.renderPlaceholderOrValue(),this.renderInput()),F.createElement(s,Ct({},x,{isDisabled:b}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,a){var s=a.prevProps,u=a.clearFocusValueOnUpdate,f=a.inputIsHiddenAfterUpdate,p=a.ariaSelection,m=a.isFocused,g=a.prevWasFocused,b=a.instancePrefix,S=o.options,w=o.value,x=o.menuIsOpen,E=o.inputValue,C=o.isMulti,N=v6(w),O={};if(s&&(w!==s.value||S!==s.options||x!==s.menuIsOpen||E!==s.inputValue)){var k=x?zve(o,N):[],M=x?D6(sR(o,N),"".concat(b,"-option")):[],D=u?$ve(a,N):null,P=Fve(a,k),B=BD(M,P);O={selectValue:N,focusedOption:P,focusedOptionId:B,focusableOptionsWithIds:M,focusedValue:D,clearFocusValueOnUpdate:!1}}var V=f!=null&&o!==s?{inputIsHidden:f,inputIsHiddenAfterUpdate:void 0}:{},U=p,X=m&&g;return m&&!X&&(U={value:kA(C,N,N[0]||null),options:N,action:"initial-input-focus"},X=!g),p?.action==="initial-input-focus"&&(U=null),Ot(Ot(Ot({},O),V),{},{prevProps:o,ariaSelection:U,prevWasFocused:X})}}]),n})(oe.Component);UW.defaultProps=Pve;var Bve=oe.forwardRef(function(e,t){var n=d0e(e);return F.createElement(UW,Ct({ref:t},n))}),Vve=Bve;const Uve=({options:e,items_per_page:t,className:n,defaultValue:r,onChange:o})=>{const[a,s]=oe.useState(""),[u,f]=oe.useState(0),p=S=>{s(S.toLowerCase()),f(0)},m=e.filter(S=>S.label.toLowerCase().includes(a)||S.value.toLowerCase().includes(a));var g;t!==void 0?g=m.slice(u*t,(u+1)*t):g=m;const b={control:S=>({...S,minHeight:void 0})};return A.jsx(Vve,{options:g,onInputChange:p,onChange:o,inputValue:a,isSearchable:!0,placeholder:"Select an option...",className:n,unstyled:!0,styles:b,classNamePrefix:"styled-select",defaultValue:r,value:r})},Hve=e=>typeof e=="boolean"||e instanceof Boolean,Gve=e=>typeof e=="number"||e instanceof Number,Yve=e=>typeof e=="bigint"||e instanceof BigInt,HW=e=>!!e&&e instanceof Date,qve=e=>typeof e=="string"||e instanceof String,Xve=e=>Array.isArray(e),GW=e=>typeof e=="object"&&e!==null,YW=e=>!!e&&e instanceof Object&&typeof e=="function";function WR(e,t){return t===void 0&&(t=!1),!e||t?`"${e}"`:e}function Wve(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}function qW(e){let{field:t,value:n,data:r,lastElement:o,openBracket:a,closeBracket:s,level:u,style:f,shouldExpandNode:p,clickToExpandNode:m,outerRef:g,beforeExpandChange:b}=e;const S=oe.useRef(!1),[w,x]=oe.useState(()=>p(u,n,t)),E=oe.useRef(null);oe.useEffect(()=>{S.current?x(p(u,n,t)):S.current=!0},[p]);const C=oe.useId();if(r.length===0)return Zve({field:t,openBracket:a,closeBracket:s,lastElement:o,style:f});const N=w?f.collapseIcon:f.expandIcon,O=w?f.ariaLables.collapseJson:f.ariaLables.expandJson,k=u+1,M=r.length-1,D=V=>{w!==V&&(!b||b({level:u,value:n,field:t,newExpandValue:V}))&&x(V)},P=V=>{if(V.key==="ArrowRight"||V.key==="ArrowLeft")V.preventDefault(),D(V.key==="ArrowRight");else if(V.key==="ArrowUp"||V.key==="ArrowDown"){V.preventDefault();const U=V.key==="ArrowUp"?-1:1;if(!g.current)return;const X=g.current.querySelectorAll("[role=button]");let L=-1;for(let Y=0;Y<X.length;Y++)if(X[Y].tabIndex===0){L=Y;break}if(L<0)return;const J=(L+U+X.length)%X.length;X[L].tabIndex=-1,X[J].tabIndex=0,X[J].focus()}},B=()=>{var V;D(!w);const U=E.current;if(!U)return;const X=(V=g.current)===null||V===void 0?void 0:V.querySelector('[role=button][tabindex="0"]');X&&(X.tabIndex=-1),U.tabIndex=0,U.focus()};return oe.createElement("div",{className:f.basicChildStyle,role:"treeitem","aria-expanded":w,"aria-selected":void 0},oe.createElement("span",{className:N,onClick:B,onKeyDown:P,role:"button","aria-label":O,"aria-expanded":w,"aria-controls":w?C:void 0,ref:E,tabIndex:u===0?0:-1}),(t||t==="")&&(m?oe.createElement("span",{className:f.clickableLabel,onClick:B,onKeyDown:P},WR(t,f.quotesForFieldNames),":"):oe.createElement("span",{className:f.label},WR(t,f.quotesForFieldNames),":")),oe.createElement("span",{className:f.punctuation},a),w?oe.createElement("ul",{id:C,role:"group",className:f.childFieldsContainer},r.map((V,U)=>oe.createElement(X3,{key:V[0]||U,field:V[0],value:V[1],style:f,lastElement:U===M,level:k,shouldExpandNode:p,clickToExpandNode:m,beforeExpandChange:b,outerRef:g}))):oe.createElement("span",{className:f.collapsedContent,onClick:B,onKeyDown:P}),oe.createElement("span",{className:f.punctuation},s),!o&&oe.createElement("span",{className:f.punctuation},","))}function Zve(e){let{field:t,openBracket:n,closeBracket:r,lastElement:o,style:a}=e;return oe.createElement("div",{className:a.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&oe.createElement("span",{className:a.label},WR(t,a.quotesForFieldNames),":"),oe.createElement("span",{className:a.punctuation},n),oe.createElement("span",{className:a.punctuation},r),!o&&oe.createElement("span",{className:a.punctuation},","))}function Jve(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:a,clickToExpandNode:s,level:u,outerRef:f,beforeExpandChange:p}=e;return qW({field:t,value:n,lastElement:o||!1,level:u,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:a,clickToExpandNode:s,data:Object.keys(n).map(m=>[m,n[m]]),outerRef:f,beforeExpandChange:p})}function Kve(e){let{field:t,value:n,style:r,lastElement:o,level:a,shouldExpandNode:s,clickToExpandNode:u,outerRef:f,beforeExpandChange:p}=e;return qW({field:t,value:n,lastElement:o||!1,level:a,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:s,clickToExpandNode:u,data:n.map(m=>[void 0,m]),outerRef:f,beforeExpandChange:p})}function Qve(e){let{field:t,value:n,style:r,lastElement:o}=e,a,s=r.otherValue;return n===null?(a="null",s=r.nullValue):n===void 0?(a="undefined",s=r.undefinedValue):qve(n)?(a=Wve(n,!r.noQuotesForStringValues,r.stringifyStringValues),s=r.stringValue):Hve(n)?(a=n?"true":"false",s=r.booleanValue):Gve(n)?(a=n.toString(),s=r.numberValue):Yve(n)?(a=`${n.toString()}n`,s=r.numberValue):HW(n)?a=n.toISOString():YW(n)?a="function() { }":a=n.toString(),oe.createElement("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&oe.createElement("span",{className:r.label},WR(t,r.quotesForFieldNames),":"),oe.createElement("span",{className:s},a),!o&&oe.createElement("span",{className:r.punctuation},","))}function X3(e){const t=e.value;return Xve(t)?oe.createElement(Kve,Object.assign({},e)):GW(t)&&!HW(t)&&!YW(t)?oe.createElement(Jve,Object.assign({},e)):oe.createElement(Qve,Object.assign({},e))}var ir={"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 XW={collapseJson:"collapse JSON",expandJson:"expand JSON"},VD={container:ir["container-light"],basicChildStyle:ir["basic-element-style"],childFieldsContainer:ir["child-fields-container"],label:ir["label-light"],clickableLabel:ir["clickable-label-light"],nullValue:ir["value-null-light"],undefinedValue:ir["value-undefined-light"],stringValue:ir["value-string-light"],booleanValue:ir["value-boolean-light"],numberValue:ir["value-number-light"],otherValue:ir["value-other-light"],punctuation:ir["punctuation-light"],collapseIcon:ir["collapse-icon-light"],expandIcon:ir["expand-icon-light"],collapsedContent:ir["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:XW,stringifyStringValues:!1},e1e={container:ir["container-dark"],basicChildStyle:ir["basic-element-style"],childFieldsContainer:ir["child-fields-container"],label:ir["label-dark"],clickableLabel:ir["clickable-label-dark"],nullValue:ir["value-null-dark"],undefinedValue:ir["value-undefined-dark"],stringValue:ir["value-string-dark"],booleanValue:ir["value-boolean-dark"],numberValue:ir["value-number-dark"],otherValue:ir["value-other-dark"],punctuation:ir["punctuation-dark"],collapseIcon:ir["collapse-icon-dark"],expandIcon:ir["expand-icon-dark"],collapsedContent:ir["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:XW,stringifyStringValues:!1},t1e=()=>!0,n1e=e=>e<1,r1e=e=>{let{data:t,style:n=VD,shouldExpandNode:r=t1e,clickToExpandNode:o=!1,beforeExpandChange:a,compactTopLevel:s,...u}=e;const f=oe.useRef(null);return oe.createElement("div",Object.assign({"aria-label":"JSON view"},u,{className:n.container,ref:f,role:"tree"}),s&&GW(t)?Object.entries(t).map(p=>{let[m,g]=p;return oe.createElement(X3,{key:m,field:m,value:g,style:{...VD,...n},lastElement:!0,level:1,shouldExpandNode:r,clickToExpandNode:o,beforeExpandChange:a,outerRef:f})}):oe.createElement(X3,{value:t,style:{...VD,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:o,outerRef:f,beforeExpandChange:a}))};function o1e(e){for(const t in e)if(Object.hasOwn(e,t))return!1;return!0}function i1e(e){if(e==null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype?!1:o1e(e)}const a1e=({data:e,className:t="json-display"})=>A.jsx("div",{className:t,children:A.jsx(r1e,{data:i1e(e)?"":e,style:e1e,shouldExpandNode:n1e})});function s1e(e,t,n={}){const{maxFontSize:r=100,minFontSize:o=6,decrementFactor:a=.9}=n;if(!e||!t)return;if(a>=1||a<=0)throw new Error("decrementFactor must be between 0 and 1");const s=e.getBoundingClientRect(),u=s.width,f=s.height;let p=r;t.style.whiteSpace="nowrap",t.style.display="inline-block",t.style.fontSize=p+"px";let m=t.getBoundingClientRect();for(;(m.width>u||m.height>f)&&p>o;)p*=a,t.style.fontSize=p+"px",m=t.getBoundingClientRect()}function l1e(e={n:0,elapsed:0,ascii:!1,unit:"it",unit_scale:!1,unit_divisor:1e3}){let t=e.total??null;const{n=0,unit_scale:r=!1,elapsed:o=0,unit:a="it",unit_divisor:s=1e3,prefix:u="",rate:f=void 0,postfix:p=null,initial:m=0}=e;t!==null&&n>=t+.5&&(t=null);let g=n,b=t,S=f;r&&r!==!0&&r!==1&&(t!==null&&(b=t*r),g=n*r,f!==void 0&&(S=f*r));const w=P6(o);S===void 0&&o>0&&(S=(g-m)/o);const x=S?1/S:void 0,[E,C]=S?MA(S,s):[void 0,""],[N,O]=x?MA(x,1e3):[void 0,""],k=(E||"?")+`${C}${a}/s`,M=N?`${N}${O}s/`+a:"?",D=x&&x>1?M:k,P=r?MA(g,s).join(""):g.toString(),B=r&&b!==null?MA(b,s).join(""):b?.toString()??"?",V=S&&b!==null?(b-g)/S:0,U=S?P6(V):"?",X=u?`${u}: `:"";if(t!==null){const L=g/t*100,J=` ${P}/${B} [${w} < ${U}, ${D}${p??""}]`;return`${X}${L.toFixed(0)}%${J}`}return`${X}${P}${a} [${w}, ${D}${p??""}]`}function P6(e){const t=Math.floor(e/60),n=Math.floor(e%60);return`${t}:${n.toString().padStart(2,"0")}`}function MA(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 u1e=({state:e,className:t="reacttqdm",...n})=>{const r=oe.useRef(null),o=oe.useRef(null);oe.useEffect(()=>{const s=()=>{!r.current||!o.current||s1e(r.current,o.current,{maxFontSize:12,decrementFactor:.9})};return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}},[e]);const a=e.total?(e.n??0)/e.total*100:0;return A.jsx("div",{ref:r,className:t,...n,children:A.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[A.jsx("div",{className:t+"-bar",style:{position:"absolute",width:"100%",height:"100%",overflow:"hidden"},children:A.jsx("div",{className:t+"-progress",style:{width:`${a}%`,height:"100%"}})}),A.jsx("div",{className:t+"-text",ref:o,children:l1e(e)})]})})};var IA={};var z6;function c1e(){if(z6)return IA;z6=1;var e=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,t=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,n=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/\\([\u000b\u0020-\u00ff])/g,o=/([\\"])/g,a=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;IA.format=s,IA.parse=u;function s(g){if(!g||typeof g!="object")throw new TypeError("argument obj is required");var b=g.parameters,S=g.type;if(!S||!a.test(S))throw new TypeError("invalid type");var w=S;if(b&&typeof b=="object")for(var x,E=Object.keys(b).sort(),C=0;C<E.length;C++){if(x=E[C],!n.test(x))throw new TypeError("invalid parameter name");w+="; "+x+"="+p(b[x])}return w}function u(g){if(!g)throw new TypeError("argument string is required");var b=typeof g=="object"?f(g):g;if(typeof b!="string")throw new TypeError("argument string is required to be a string");var S=b.indexOf(";"),w=S!==-1?b.slice(0,S).trim():b.trim();if(!a.test(w))throw new TypeError("invalid media type");var x=new m(w.toLowerCase());if(S!==-1){var E,C,N;for(e.lastIndex=S;C=e.exec(b);){if(C.index!==S)throw new TypeError("invalid parameter format");S+=C[0].length,E=C[1].toLowerCase(),N=C[2],N.charCodeAt(0)===34&&(N=N.slice(1,-1),N.indexOf("\\")!==-1&&(N=N.replace(r,"$1"))),x.parameters[E]=N}if(S!==b.length)throw new TypeError("invalid parameter format")}return x}function f(g){var b;if(typeof g.getHeader=="function"?b=g.getHeader("content-type"):typeof g.headers=="object"&&(b=g.headers&&g.headers["content-type"]),typeof b!="string")throw new TypeError("content-type header is missing from object");return b}function p(g){var b=String(g);if(n.test(b))return b;if(b.length>0&&!t.test(b))throw new TypeError("invalid parameter value");return'"'+b.replace(o,"\\$1")+'"'}function m(g){this.parameters=Object.create(null),this.type=g}return IA}var f1e=c1e(),r1=new Map,WW=function(t){return t.cloneNode(!0)},$6=function(){return window.location.protocol==="file:"},ZW=function(t,n,r){var o=new XMLHttpRequest;o.onreadystatechange=function(){try{if(!/\.svg/i.test(t)&&o.readyState===2){var a=o.getResponseHeader("Content-Type");if(!a)throw new Error("Content type not found");var s=f1e.parse(a).type;if(!(s==="image/svg+xml"||s==="text/plain"))throw new Error("Invalid content type: ".concat(s))}if(o.readyState===4){if(o.status===404||o.responseXML===null)throw new Error($6()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+t);if(o.status===200||$6()&&o.status===0)r(null,o);else throw new Error("There was a problem injecting the SVG: "+o.status+" "+o.statusText)}}catch(u){if(o.abort(),u instanceof Error)r(u,o);else throw u}},o.open("GET",t),o.withCredentials=n,o.overrideMimeType&&o.overrideMimeType("text/xml"),o.send()},hm={},F6=function(t,n){hm[t]=hm[t]||[],hm[t].push(n)},d1e=function(t){for(var n=function(s,u){setTimeout(function(){if(Array.isArray(hm[t])){var f=r1.get(t),p=hm[t][s];f instanceof SVGSVGElement&&p(null,WW(f)),f instanceof Error&&p(f),s===hm[t].length-1&&delete hm[t]}},0)},r=0,o=hm[t].length;r<o;r++)n(r)},p1e=function(t,n,r){if(r1.has(t)){var o=r1.get(t);if(o===void 0){F6(t,r);return}if(o instanceof SVGSVGElement){r(null,WW(o));return}}r1.set(t,void 0),F6(t,r),ZW(t,n,function(a,s){var u;a?r1.set(t,a):((u=s.responseXML)===null||u===void 0?void 0:u.documentElement)instanceof SVGSVGElement&&r1.set(t,s.responseXML.documentElement),d1e(t)})},h1e=function(t,n,r){ZW(t,n,function(o,a){var s;o?r(o):((s=a.responseXML)===null||s===void 0?void 0:s.documentElement)instanceof SVGSVGElement&&r(null,a.responseXML.documentElement)})},m1e=0,g1e=function(){return++m1e},Hc=[],L6={},y1e="http://www.w3.org/2000/svg",UD="http://www.w3.org/1999/xlink",B6=function(t,n,r,o,a,s,u){var f=t.getAttribute("data-src")||t.getAttribute("src");if(!f){u(new Error("Invalid data-src or src attribute"));return}if(Hc.indexOf(t)!==-1){Hc.splice(Hc.indexOf(t),1),t=null;return}Hc.push(t),t.setAttribute("src","");var p=o?p1e:h1e;p(f,a,function(m,g){if(!g){Hc.splice(Hc.indexOf(t),1),t=null,u(m);return}var b=t.getAttribute("id");b&&g.setAttribute("id",b);var S=t.getAttribute("title");S&&g.setAttribute("title",S);var w=t.getAttribute("width");w&&g.setAttribute("width",w);var x=t.getAttribute("height");x&&g.setAttribute("height",x);var E=Array.from(new Set(eR(eR(eR([],(g.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(t.getAttribute("class")||"").split(" "),!0))).join(" ").trim();g.setAttribute("class",E);var C=t.getAttribute("style");C&&g.setAttribute("style",C),g.setAttribute("data-src",f);var N=[].filter.call(t.attributes,function(Q){return/^data-\w[\w-]*$/.test(Q.name)});if(Array.prototype.forEach.call(N,function(Q){Q.name&&Q.value&&g.setAttribute(Q.name,Q.value)}),r){var O={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},k,M,D,P,B;Object.keys(O).forEach(function(Q){k=Q,D=O[Q],M=g.querySelectorAll(k+"[id]");for(var ae=function(Z,K){P=M[Z].id,B=P+"-"+g1e();var se;Array.prototype.forEach.call(D,function(be){se=g.querySelectorAll("["+be+'*="'+P+'"]');for(var me=0,De=se.length;me<De;me++){var Fe=se[me].getAttribute(be);Fe&&!Fe.match(new RegExp('url\\("?#'+P+'"?\\)'))||se[me].setAttribute(be,"url(#"+B+")")}});for(var de=g.querySelectorAll("[*|href]"),pe=[],he=0,we=de.length;he<we;he++){var _e=de[he].getAttributeNS(UD,"href");_e&&_e.toString()==="#"+M[Z].id&&pe.push(de[he])}for(var ue=0,fe=pe.length;ue<fe;ue++)pe[ue].setAttributeNS(UD,"href","#"+B);M[Z].id=B},q=0,W=M.length;q<W;q++)ae(q)})}g.removeAttribute("xmlns:a");for(var V=g.querySelectorAll("script"),U=[],X,L,J=0,Y=V.length;J<Y;J++)L=V[J].getAttribute("type"),(!L||L==="application/ecmascript"||L==="application/javascript"||L==="text/javascript")&&(X=V[J].innerText||V[J].textContent,X&&U.push(X),g.removeChild(V[J]));if(U.length>0&&(n==="always"||n==="once"&&!L6[f])){for(var ee=0,H=U.length;ee<H;ee++)new Function(U[ee])(window);L6[f]=!0}var ne=g.querySelectorAll("style");if(Array.prototype.forEach.call(ne,function(Q){Q.textContent+=""}),g.setAttribute("xmlns",y1e),g.setAttribute("xmlns:xlink",UD),s(g),!t.parentNode){Hc.splice(Hc.indexOf(t),1),t=null,u(new Error("Parent node is null"));return}t.parentNode.replaceChild(g,t),Hc.splice(Hc.indexOf(t),1),t=null,u(null,g)})},b1e=function(t,n){var r=n===void 0?{}:n,o=r.afterAll,a=o===void 0?function(){}:o,s=r.afterEach,u=s===void 0?function(){}:s,f=r.beforeEach,p=f===void 0?function(){}:f,m=r.cacheRequests,g=m===void 0?!0:m,b=r.evalScripts,S=b===void 0?"never":b,w=r.httpRequestWithCredentials,x=w===void 0?!1:w,E=r.renumerateIRIElements,C=E===void 0?!0:E;if(t&&"length"in t)for(var N=0,O=0,k=t.length;O<k;O++)B6(t[O],S,C,g,x,p,function(M,D){u(M,D),t&&"length"in t&&t.length===++N&&a(N)});else t?B6(t,S,C,g,x,p,function(M,D){u(M,D),a(1),t=null}):a(0)},v1e=function(t){var n=t?.ownerDocument||document;return n.defaultView||window},S1e=function(t,n){for(var r in t)if(!(r in n))return!0;for(var o in n)if(t[o]!==n[o])return!0;return!1},x1e=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],DA="http://www.w3.org/2000/svg",V6="http://www.w3.org/1999/xlink",hP=(function(e){function t(){for(var r,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(u){r.reactWrapper=u},r}R5(t,e);var n=t.prototype;return n.renderSVG=function(){var o=this;if(this.reactWrapper instanceof v1e(this.reactWrapper).Node){var a=this.props,s=a.desc,u=a.evalScripts,f=a.httpRequestWithCredentials,p=a.renumerateIRIElements,m=a.src,g=a.title,b=a.useRequestCache,S=this.props.onError,w=this.props.beforeInjection,x=this.props.afterInjection,E=this.props.wrapper,C,N;E==="svg"?(C=document.createElementNS(DA,E),C.setAttribute("xmlns",DA),C.setAttribute("xmlns:xlink",V6),N=document.createElementNS(DA,E)):(C=document.createElement(E),N=document.createElement(E)),C.appendChild(N),N.dataset.src=m,this.nonReactWrapper=this.reactWrapper.appendChild(C);var O=function(P){if(o.removeSVG(),!o._isMounted){S(P);return}o.setState(function(){return{hasError:!0,isLoading:!1}},function(){S(P)})},k=function(P,B){if(P){O(P);return}o._isMounted&&o.setState(function(){return{isLoading:!1}},function(){try{x(B)}catch(V){O(V)}})},M=function(P){if(P.setAttribute("role","img"),s){var B=P.querySelector(":scope > desc");B&&P.removeChild(B);var V=document.createElement("desc");V.innerHTML=s,P.prepend(V)}if(g){var U=P.querySelector(":scope > title");U&&P.removeChild(U);var X=document.createElement("title");X.innerHTML=g,P.prepend(X)}try{w(P)}catch(L){O(L)}};b1e(N,{afterEach:k,beforeEach:M,cacheRequests:b,evalScripts:u,httpRequestWithCredentials:f,renumerateIRIElements:p})}},n.removeSVG=function(){var o;(o=this.nonReactWrapper)!=null&&o.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(o){var a=this;S1e(Ct({},o),this.props)&&this.setState(function(){return a.initialState},function(){a.removeSVG(),a.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var o=this.props;o.afterInjection,o.beforeInjection,o.desc,o.evalScripts;var a=o.fallback;o.httpRequestWithCredentials;var s=o.loading;o.renumerateIRIElements,o.src,o.title,o.useRequestCache;var u=o.wrapper,f=nk(o,x1e),p=u;return F.createElement(p,Ct({},f,{ref:this.refCallback},u==="svg"?{xmlns:DA,xmlnsXlink:V6}:{}),this.state.isLoading&&s&&F.createElement(s,null),this.state.hasError&&a&&F.createElement(a,null))},t})(F.Component);hP.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};hP.propTypes={afterInjection:Vo.func,beforeInjection:Vo.func,desc:Vo.string,evalScripts:Vo.oneOf(["always","once","never"]),fallback:Vo.oneOfType([Vo.func,Vo.object,Vo.string]),httpRequestWithCredentials:Vo.bool,loading:Vo.oneOfType([Vo.func,Vo.object,Vo.string]),onError:Vo.func,renumerateIRIElements:Vo.bool,src:Vo.string.isRequired,title:Vo.string,useRequestCache:Vo.bool,wrapper:Vo.oneOf(["div","span","svg"])};const mP=({text:e="No image data provided"})=>A.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100px",border:"1px dashed #ccc",color:"#666"},children:e}),w1e=F.memo(({value:e,format:t="jpeg",alt:n="Base64 image",onError:r,onLoad:o,...a})=>{const[s,u]=F.useState(!1),[f,p]=F.useState(!0),m=F.useRef(null),g=F.useMemo(()=>{if(typeof e=="string")return e;if(e&&typeof e=="object"&&"data"in e){const x=e.data;if(x instanceof ArrayBuffer){const E=new Uint8Array(x);let C="";for(let N=0;N<E.byteLength;N++)C+=String.fromCharCode(E[N]);return btoa(C)}}return""},[e]),b=F.useMemo(()=>g?`data:image/${t};base64,${g}`:"",[g,t]),S=F.useCallback(x=>{u(!0),p(!1),r?.(x)},[r]),w=F.useCallback(()=>{p(!1),u(!1),o?.()},[o]);return F.useEffect(()=>{const x=m.current;if(x)return x.addEventListener("error",S),x.addEventListener("load",w),()=>{x.removeEventListener("error",S),x.removeEventListener("load",w)}},[S,w,e]),F.useEffect(()=>{u(!1),p(!0)},[e]),g?s?A.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100px",border:"1px dashed #ccc",color:"#666"},children:"Failed to load base64 image"}):A.jsx("img",{ref:m,src:b,alt:n,className:`base64-image-renderer image-renderer ${a.className||""} ${f?" loading":""}`,...a}):A.jsx(mP,{})}),E1e=F.memo(({value:e,alt:t="SVG image",onError:n,onLoad:r,...o})=>{const[a,s]=F.useState(!1),u=F.useMemo(()=>{if(!e)return"";try{return`data:image/svg+xml;base64,${btoa(e)}`}catch(p){return console.error("Failed to encode SVG to base64:",p),""}},[e]);F.useEffect(()=>{s(!1)},[e]);const f=F.useCallback(p=>{s(!0),n?.(p)},[n]);return e?a||!u?A.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100px",border:"1px dashed #ccc",color:"#666"},children:"Failed to load SVG"}):A.jsx(hP,{src:u,className:`svg-renderer ${o.className||""}`,style:{maxWidth:"100%",maxHeight:"100%",...o.style},beforeInjection:p=>{p.classList.add("svg-renderer"),p.setAttribute("style","max-width: 100%; max-height: 100%;"),p.setAttribute("width","100%"),p.setAttribute("height","100%"),p.setAttribute("aria-label",t);const m=()=>{s(!1),r?.()},g=b=>{s(!0),n?.(b)};try{p.addEventListener("load",m),p.addEventListener("error",g)}catch{m()}},onError:f}):A.jsx(mP,{})}),_1e=F.memo(({src:e,alt:t="Streaming image",onError:n,onLoad:r,...o})=>{const a=F.useRef(null),[s,u]=F.useState(!1),[f,p]=F.useState(!0);F.useEffect(()=>{a.current&&e&&(p(!0),u(!1),a.current.src=e)},[e]);const m=F.useCallback(b=>{u(!0),p(!1),n?.(b)},[n]),g=F.useCallback(()=>{p(!1),u(!1),r?.()},[r]);return F.useEffect(()=>{const b=a.current;if(b)return b.addEventListener("error",m),b.addEventListener("load",g),()=>{b.removeEventListener("error",m),b.removeEventListener("load",g)}},[m,g]),s?A.jsx(mP,{text:"Failed to load image"}):A.jsx("img",{ref:a,className:`streaming-image image-renderer ${o.className||""} ${f?" loading":""}`,alt:t,...o})});function xk(e){const t=e+"CollectionProvider",[n,r]=Cf(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=x=>{const{scope:E,children:C}=x,N=oe.useRef(null),O=oe.useRef(new Map).current;return A.jsx(o,{scope:E,itemMap:O,collectionRef:N,children:C})};s.displayName=t;const u=e+"CollectionSlot",f=A1(u),p=oe.forwardRef((x,E)=>{const{scope:C,children:N}=x,O=a(u,C),k=Tr(E,O.collectionRef);return A.jsx(f,{ref:k,children:N})});p.displayName=u;const m=e+"CollectionItemSlot",g="data-radix-collection-item",b=A1(m),S=oe.forwardRef((x,E)=>{const{scope:C,children:N,...O}=x,k=oe.useRef(null),M=Tr(E,k),D=a(m,C);return oe.useEffect(()=>(D.itemMap.set(k,{ref:k,...O}),()=>{D.itemMap.delete(k)})),A.jsx(b,{[g]:"",ref:M,children:N})});S.displayName=m;function w(x){const E=a(e+"CollectionConsumer",x);return oe.useCallback(()=>{const N=E.collectionRef.current;if(!N)return[];const O=Array.from(N.querySelectorAll(`[${g}]`));return Array.from(E.itemMap.values()).sort((D,P)=>O.indexOf(D.ref.current)-O.indexOf(P.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:s,Slot:p,ItemSlot:S},w,r]}var C1e=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),T1e="VisuallyHidden",gP=F.forwardRef((e,t)=>A.jsx(gn.span,{...e,ref:t,style:{...C1e,...e.style}}));gP.displayName=T1e;var yP="ToastProvider",[bP,A1e,O1e]=xk("Toast"),[JW]=Cf("Toast",[O1e]),[R1e,wk]=JW(yP),KW=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:s}=e,[u,f]=F.useState(null),[p,m]=F.useState(0),g=F.useRef(!1),b=F.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${yP}\`. Expected non-empty \`string\`.`),A.jsx(bP.Provider,{scope:t,children:A.jsx(R1e,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:a,toastCount:p,viewport:u,onViewportChange:f,onToastAdd:F.useCallback(()=>m(S=>S+1),[]),onToastRemove:F.useCallback(()=>m(S=>S-1),[]),isFocusedToastEscapeKeyDownRef:g,isClosePausedRef:b,children:s})})};KW.displayName=yP;var QW="ToastViewport",N1e=["F8"],W3="toast.viewportPause",Z3="toast.viewportResume",eZ=F.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=N1e,label:o="Notifications ({hotkey})",...a}=e,s=wk(QW,n),u=A1e(n),f=F.useRef(null),p=F.useRef(null),m=F.useRef(null),g=F.useRef(null),b=Tr(t,g,s.onViewportChange),S=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=s.toastCount>0;F.useEffect(()=>{const E=C=>{r.length!==0&&r.every(O=>C[O]||C.code===O)&&g.current?.focus()};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[r]),F.useEffect(()=>{const E=f.current,C=g.current;if(w&&E&&C){const N=()=>{if(!s.isClosePausedRef.current){const D=new CustomEvent(W3);C.dispatchEvent(D),s.isClosePausedRef.current=!0}},O=()=>{if(s.isClosePausedRef.current){const D=new CustomEvent(Z3);C.dispatchEvent(D),s.isClosePausedRef.current=!1}},k=D=>{!E.contains(D.relatedTarget)&&O()},M=()=>{E.contains(document.activeElement)||O()};return E.addEventListener("focusin",N),E.addEventListener("focusout",k),E.addEventListener("pointermove",N),E.addEventListener("pointerleave",M),window.addEventListener("blur",N),window.addEventListener("focus",O),()=>{E.removeEventListener("focusin",N),E.removeEventListener("focusout",k),E.removeEventListener("pointermove",N),E.removeEventListener("pointerleave",M),window.removeEventListener("blur",N),window.removeEventListener("focus",O)}}},[w,s.isClosePausedRef]);const x=F.useCallback(({tabbingDirection:E})=>{const N=u().map(O=>{const k=O.ref.current,M=[k,...U1e(k)];return E==="forwards"?M:M.reverse()});return(E==="forwards"?N.reverse():N).flat()},[u]);return F.useEffect(()=>{const E=g.current;if(E){const C=N=>{const O=N.altKey||N.ctrlKey||N.metaKey;if(N.key==="Tab"&&!O){const M=document.activeElement,D=N.shiftKey;if(N.target===E&&D){p.current?.focus();return}const V=x({tabbingDirection:D?"backwards":"forwards"}),U=V.findIndex(X=>X===M);HD(V.slice(U+1))?N.preventDefault():D?p.current?.focus():m.current?.focus()}};return E.addEventListener("keydown",C),()=>E.removeEventListener("keydown",C)}},[u,x]),A.jsxs(nfe,{ref:f,role:"region","aria-label":o.replace("{hotkey}",S),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&A.jsx(J3,{ref:p,onFocusFromOutsideViewport:()=>{const E=x({tabbingDirection:"forwards"});HD(E)}}),A.jsx(bP.Slot,{scope:n,children:A.jsx(gn.ol,{tabIndex:-1,...a,ref:b})}),w&&A.jsx(J3,{ref:m,onFocusFromOutsideViewport:()=>{const E=x({tabbingDirection:"backwards"});HD(E)}})]})});eZ.displayName=QW;var tZ="ToastFocusProxy",J3=F.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,a=wk(tZ,n);return A.jsx(gP,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{const u=s.relatedTarget;!a.viewport?.contains(u)&&r()}})});J3.displayName=tZ;var pC="Toast",k1e="toast.swipeStart",M1e="toast.swipeMove",I1e="toast.swipeCancel",D1e="toast.swipeEnd",nZ=F.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...s}=e,[u,f]=Pm({prop:r,defaultProp:o??!0,onChange:a,caller:pC});return A.jsx(Zu,{present:n||u,children:A.jsx(z1e,{open:u,...s,ref:t,onClose:()=>f(!1),onPause:ts(e.onPause),onResume:ts(e.onResume),onSwipeStart:ht(e.onSwipeStart,p=>{p.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ht(e.onSwipeMove,p=>{const{x:m,y:g}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","move"),p.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${g}px`)}),onSwipeCancel:ht(e.onSwipeCancel,p=>{p.currentTarget.setAttribute("data-swipe","cancel"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ht(e.onSwipeEnd,p=>{const{x:m,y:g}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","end"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${g}px`),f(!1)})})})});nZ.displayName=pC;var[j1e,P1e]=JW(pC,{onClose(){}}),z1e=F.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:a,onClose:s,onEscapeKeyDown:u,onPause:f,onResume:p,onSwipeStart:m,onSwipeMove:g,onSwipeCancel:b,onSwipeEnd:S,...w}=e,x=wk(pC,n),[E,C]=F.useState(null),N=Tr(t,Y=>C(Y)),O=F.useRef(null),k=F.useRef(null),M=o||x.duration,D=F.useRef(0),P=F.useRef(M),B=F.useRef(0),{onToastAdd:V,onToastRemove:U}=x,X=ts(()=>{E?.contains(document.activeElement)&&x.viewport?.focus(),s()}),L=F.useCallback(Y=>{!Y||Y===1/0||(window.clearTimeout(B.current),D.current=new Date().getTime(),B.current=window.setTimeout(X,Y))},[X]);F.useEffect(()=>{const Y=x.viewport;if(Y){const ee=()=>{L(P.current),p?.()},H=()=>{const ne=new Date().getTime()-D.current;P.current=P.current-ne,window.clearTimeout(B.current),f?.()};return Y.addEventListener(W3,H),Y.addEventListener(Z3,ee),()=>{Y.removeEventListener(W3,H),Y.removeEventListener(Z3,ee)}}},[x.viewport,M,f,p,L]),F.useEffect(()=>{a&&!x.isClosePausedRef.current&&L(M)},[a,M,x.isClosePausedRef,L]),F.useEffect(()=>(V(),()=>U()),[V,U]);const J=F.useMemo(()=>E?uZ(E):null,[E]);return x.viewport?A.jsxs(A.Fragment,{children:[J&&A.jsx($1e,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:J}),A.jsx(j1e,{scope:n,onClose:X,children:W_.createPortal(A.jsx(bP.ItemSlot,{scope:n,children:A.jsx(tfe,{asChild:!0,onEscapeKeyDown:ht(u,()=>{x.isFocusedToastEscapeKeyDownRef.current||X(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:A.jsx(gn.li,{tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":x.swipeDirection,...w,ref:N,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ht(e.onKeyDown,Y=>{Y.key==="Escape"&&(u?.(Y.nativeEvent),Y.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,X()))}),onPointerDown:ht(e.onPointerDown,Y=>{Y.button===0&&(O.current={x:Y.clientX,y:Y.clientY})}),onPointerMove:ht(e.onPointerMove,Y=>{if(!O.current)return;const ee=Y.clientX-O.current.x,H=Y.clientY-O.current.y,ne=!!k.current,Q=["left","right"].includes(x.swipeDirection),ae=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,q=Q?ae(0,ee):0,W=Q?0:ae(0,H),ie=Y.pointerType==="touch"?10:2,Z={x:q,y:W},K={originalEvent:Y,delta:Z};ne?(k.current=Z,jA(M1e,g,K,{discrete:!1})):U6(Z,x.swipeDirection,ie)?(k.current=Z,jA(k1e,m,K,{discrete:!1}),Y.target.setPointerCapture(Y.pointerId)):(Math.abs(ee)>ie||Math.abs(H)>ie)&&(O.current=null)}),onPointerUp:ht(e.onPointerUp,Y=>{const ee=k.current,H=Y.target;if(H.hasPointerCapture(Y.pointerId)&&H.releasePointerCapture(Y.pointerId),k.current=null,O.current=null,ee){const ne=Y.currentTarget,Q={originalEvent:Y,delta:ee};U6(ee,x.swipeDirection,x.swipeThreshold)?jA(D1e,S,Q,{discrete:!0}):jA(I1e,b,Q,{discrete:!0}),ne.addEventListener("click",ae=>ae.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),$1e=e=>{const{__scopeToast:t,children:n,...r}=e,o=wk(pC,t),[a,s]=F.useState(!1),[u,f]=F.useState(!1);return B1e(()=>s(!0)),F.useEffect(()=>{const p=window.setTimeout(()=>f(!0),1e3);return()=>window.clearTimeout(p)},[]),u?null:A.jsx(ik,{asChild:!0,children:A.jsx(gP,{...r,children:a&&A.jsxs(A.Fragment,{children:[o.label," ",n]})})})},F1e="ToastTitle",rZ=F.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return A.jsx(gn.div,{...r,ref:t})});rZ.displayName=F1e;var L1e="ToastDescription",oZ=F.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return A.jsx(gn.div,{...r,ref:t})});oZ.displayName=L1e;var iZ="ToastAction",aZ=F.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?A.jsx(lZ,{altText:n,asChild:!0,children:A.jsx(vP,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${iZ}\`. Expected non-empty \`string\`.`),null)});aZ.displayName=iZ;var sZ="ToastClose",vP=F.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=P1e(sZ,n);return A.jsx(lZ,{asChild:!0,children:A.jsx(gn.button,{type:"button",...r,ref:t,onClick:ht(e.onClick,o.onClose)})})});vP.displayName=sZ;var lZ=F.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return A.jsx(gn.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function uZ(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),V1e(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!o)if(a){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...uZ(r))}}),t}function jA(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?I5(o,a):o.dispatchEvent(a)}var U6=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return t==="left"||t==="right"?a&&r>n:!a&&o>n};function B1e(e=()=>{}){const t=ts(e);lp(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function V1e(e){return e.nodeType===e.ELEMENT_NODE}function U1e(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function HD(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var H1e=KW,G1e=eZ,Y1e=nZ,q1e=rZ,X1e=oZ,W1e=aZ,Z1e=vP;const Di=[];for(let e=0;e<256;++e)Di.push((e+256).toString(16).slice(1));function J1e(e,t=0){return(Di[e[t+0]]+Di[e[t+1]]+Di[e[t+2]]+Di[e[t+3]]+"-"+Di[e[t+4]]+Di[e[t+5]]+"-"+Di[e[t+6]]+Di[e[t+7]]+"-"+Di[e[t+8]]+Di[e[t+9]]+"-"+Di[e[t+10]]+Di[e[t+11]]+Di[e[t+12]]+Di[e[t+13]]+Di[e[t+14]]+Di[e[t+15]]).toLowerCase()}let GD;const K1e=new Uint8Array(16);function Q1e(){if(!GD){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");GD=crypto.getRandomValues.bind(crypto)}return GD(K1e)}const eSe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),H6={randomUUID:eSe};function tSe(e,t,n){e=e||{};const r=e.random??e.rng?.()??Q1e();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,J1e(r)}function SP(e,t,n){return H6.randomUUID&&!e?H6.randomUUID():tSe(e)}const cZ=F.createContext(void 0),fZ=F.createContext(void 0),nSe=350,rSe=({children:e,fixedHeight:t,duration:n=5e3,maxVisible:r=3,...o})=>{const[a,s]=F.useState(new Map),u=F.useRef(new Map),f=F.useRef(null),p=F.useRef(!0),m=F.useCallback(()=>{const C=Array.from(u.current).reverse();if(t){const N=t;C.forEach(([,O],k)=>{if(!O)return;O.setAttribute("data-front",String(k===0)),O.setAttribute("data-hidden",String(k>=r)),O.style.setProperty("--index",String(k)),O.style.setProperty("--height",`${t}px`),O.style.setProperty("--front-height",`${N}px`);const M=t*k;O.style.setProperty("--hover-offset-y",`-${M}px`)})}else{const N=C.map(([,k])=>{if(!k)return 0;const M=k.querySelector(".ToastInner");if(!M)return k.clientHeight;const D=M.style.height;M.style.height="auto";const P=k.clientHeight;return M.style.height=D,P}),O=N[0]||0;C.forEach(([,k],M)=>{if(!k)return;const D=N[M];k.setAttribute("data-front",String(M===0)),k.setAttribute("data-hidden",String(M>=r)),k.style.setProperty("--index",String(M)),k.style.setProperty("--height",`${D}px`),k.style.setProperty("--front-height",`${O}px`);const P=N.slice(0,M).reduce((B,V)=>B+V,0);k.style.setProperty("--hover-offset-y",`-${P}px`)})}},[t,r]),g=F.useCallback(C=>{s(N=>{const O=new Map(N);return O.set(SP(),{...C,duration:C.duration||n,open:!0}),O})},[n]),b=F.useCallback(C=>{p.current&&s(N=>{const O=new Map(N);return O.delete(C),O})},[]),S=F.useCallback(C=>g({...C,status:C.status||"default"}),[g]),w=F.useCallback(C=>g({...C,status:"success"}),[g]),x=F.useCallback(C=>g({...C,status:"error"}),[g]);F.useEffect(()=>(p.current=!0,()=>{p.current=!1}),[]),F.useEffect(()=>{const C=f.current;if(C){const N=()=>{u.current.forEach(M=>{M.setAttribute("data-hovering","true")})},O=M=>{(!C.contains(M.target)||C===M.target)&&u.current.forEach(D=>{D.setAttribute("data-hovering","false")})},k=()=>{u.current.forEach(M=>{M.setAttribute("data-hovering","false")})};return C.addEventListener("pointermove",N),C.addEventListener("pointerleave",k),C.addEventListener("focusin",N),C.addEventListener("focusout",O),()=>{C.removeEventListener("pointermove",N),C.removeEventListener("pointerleave",k),C.removeEventListener("focusin",N),C.removeEventListener("focusout",O)}}},[]);const E=F.useMemo(()=>Object.assign(S,{success:w,error:x}),[S,w,x]);return A.jsx(cZ.Provider,{value:E,children:A.jsx(fZ.Provider,{value:F.useMemo(()=>({toastElementsMapRef:u,sortToasts:m}),[m]),children:A.jsxs(H1e,{...o,children:[e,Array.from(a).map(([C,N])=>A.jsx(aSe,{id:C,toast:N,onOpenChange:O=>{O||(u.current.delete(C),m(),s(k=>{const M=new Map(k),D=M.get(C);return D&&M.set(C,{...D,open:!1}),M}),setTimeout(()=>{b(C)},nSe))}},C)),A.jsx(G1e,{ref:f,className:"ToastViewport",style:t?{"--fixed-toast-height":`${t}px`}:void 0})]})})})},oSe=()=>{const e=F.useContext(cZ);if(e)return e;throw new Error("useToast must be used within Toasts")},iSe=()=>{const e=F.useContext(fZ);if(e)return e;throw new Error("useToastContext must be used within Toasts")},aSe=({onOpenChange:e,toast:t,id:n,...r})=>{const o=F.useRef(null),a=iSe(),{sortToasts:s,toastElementsMapRef:u}=a,f=u.current;return F.useLayoutEffect(()=>(o.current&&(f.set(n,o.current),s()),()=>{f.delete(n),s()}),[n,s,f]),A.jsx(Y1e,{...r,ref:o,type:t.type,duration:t.duration,className:"ToastRoot",onOpenChange:e,open:t.open,children:A.jsxs("div",{className:"ToastInner","data-status":t.status,children:[A.jsx(sSe,{status:t.status}),t.title&&A.jsx(q1e,{className:"ToastTitle",children:t.title}),A.jsx(X1e,{className:"ToastDescription",children:t.description}),t.action&&A.jsx(W1e,{className:"ToastAction Button small green",altText:t.action.altText,onClick:t.action.onClick,asChild:!0,children:A.jsx("button",{children:t.action.label})}),A.jsx(Z1e,{"aria-label":"Close",className:"ToastClose",children:A.jsx(hk,{style:{fontSize:"12px"}})})]})})},sSe=({status:e})=>e!=="default"&&e?A.jsxs("div",{style:{gridArea:"icon",alignSelf:"start"},children:[e==="success"&&A.jsx(bge,{style:{color:"#61d345",fontSize:"20px"}}),e==="error"&&A.jsx(vge,{style:{color:"#ff4b4b",fontSize:"20px"}})]}):null,lSe={},G6=e=>{let t;const n=new Set,r=(m,g)=>{const b=typeof m=="function"?m(t):m;if(!Object.is(b,t)){const S=t;t=g??(typeof b!="object"||b===null)?b:Object.assign({},t,b),n.forEach(w=>w(t,S))}},o=()=>t,f={setState:r,getState:o,getInitialState:()=>p,subscribe:m=>(n.add(m),()=>n.delete(m)),destroy:()=>{(lSe?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},p=t=e(r,o,f);return f},dZ=e=>e?G6(e):G6;var PA={exports:{}},YD={},zA={exports:{}},qD={};var Y6;function uSe(){if(Y6)return qD;Y6=1;var e=oe;function t(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function u(g,b){var S=b(),w=r({inst:{value:S,getSnapshot:b}}),x=w[0].inst,E=w[1];return a(function(){x.value=S,x.getSnapshot=b,f(x)&&E({inst:x})},[g,S,b]),o(function(){return f(x)&&E({inst:x}),g(function(){f(x)&&E({inst:x})})},[g]),s(S),S}function f(g){var b=g.getSnapshot;g=g.value;try{var S=b();return!n(g,S)}catch{return!0}}function p(g,b){return b()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:u;return qD.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,qD}var XD={};var q6;function cSe(){return q6||(q6=1,process.env.NODE_ENV!=="production"&&(function(){function e(S,w){return S===w&&(S!==0||1/S===1/w)||S!==S&&w!==w}function t(S,w){m||o.startTransition===void 0||(m=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var x=w();if(!g){var E=w();a(x,E)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),g=!0)}E=s({inst:{value:x,getSnapshot:w}});var C=E[0].inst,N=E[1];return f(function(){C.value=x,C.getSnapshot=w,n(C)&&N({inst:C})},[S,x,w]),u(function(){return n(C)&&N({inst:C}),S(function(){n(C)&&N({inst:C})})},[S]),p(x),x}function n(S){var w=S.getSnapshot;S=S.value;try{var x=w();return!a(S,x)}catch{return!0}}function r(S,w){return w()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=oe,a=typeof Object.is=="function"?Object.is:e,s=o.useState,u=o.useEffect,f=o.useLayoutEffect,p=o.useDebugValue,m=!1,g=!1,b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;XD.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:b,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),XD}var X6;function pZ(){return X6||(X6=1,process.env.NODE_ENV==="production"?zA.exports=uSe():zA.exports=cSe()),zA.exports}var W6;function fSe(){if(W6)return YD;W6=1;var e=oe,t=pZ();function n(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,a=e.useRef,s=e.useEffect,u=e.useMemo,f=e.useDebugValue;return YD.useSyncExternalStoreWithSelector=function(p,m,g,b,S){var w=a(null);if(w.current===null){var x={hasValue:!1,value:null};w.current=x}else x=w.current;w=u(function(){function C(D){if(!N){if(N=!0,O=D,D=b(D),S!==void 0&&x.hasValue){var P=x.value;if(S(P,D))return k=P}return k=D}if(P=k,r(O,D))return P;var B=b(D);return S!==void 0&&S(P,B)?(O=D,P):(O=D,k=B)}var N=!1,O,k,M=g===void 0?null:g;return[function(){return C(m())},M===null?void 0:function(){return C(M())}]},[m,g,b,S]);var E=o(p,w[0],w[1]);return s(function(){x.hasValue=!0,x.value=E},[E]),f(E),E},YD}var WD={};var Z6;function dSe(){return Z6||(Z6=1,process.env.NODE_ENV!=="production"&&(function(){function e(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=oe,n=pZ(),r=typeof Object.is=="function"?Object.is:e,o=n.useSyncExternalStore,a=t.useRef,s=t.useEffect,u=t.useMemo,f=t.useDebugValue;WD.useSyncExternalStoreWithSelector=function(p,m,g,b,S){var w=a(null);if(w.current===null){var x={hasValue:!1,value:null};w.current=x}else x=w.current;w=u(function(){function C(D){if(!N){if(N=!0,O=D,D=b(D),S!==void 0&&x.hasValue){var P=x.value;if(S(P,D))return k=P}return k=D}if(P=k,r(O,D))return P;var B=b(D);return S!==void 0&&S(P,B)?(O=D,P):(O=D,k=B)}var N=!1,O,k,M=g===void 0?null:g;return[function(){return C(m())},M===null?void 0:function(){return C(M())}]},[m,g,b,S]);var E=o(p,w[0],w[1]);return s(function(){x.hasValue=!0,x.value=E},[E]),f(E),E},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),WD}var J6;function pSe(){return J6||(J6=1,process.env.NODE_ENV==="production"?PA.exports=fSe():PA.exports=dSe()),PA.exports}var hSe=pSe();const hZ=yp(hSe),mZ={},{useDebugValue:mSe}=oe,{useSyncExternalStoreWithSelector:gSe}=hZ;let K6=!1;const ySe=e=>e;function bSe(e,t=ySe,n){(mZ?"production":void 0)!=="production"&&n&&!K6&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),K6=!0);const r=gSe(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return mSe(r),r}const Q6=e=>{(mZ?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?dZ(e):e,n=(r,o)=>bSe(t,r,o);return Object.assign(n,t),n},Vl=e=>e?Q6(e):Q6;class Sp{constructor(t){this.context=t}get communicationManager(){return this.context.worker.getCommunicationManager()}get eventManager(){return this.context.worker.getEventManager()}get hookManager(){return this.context.worker.getHookManager()}get nodeManager(){return this.context.worker.getNodeManager()}get syncManager(){return this.context.worker.getSyncManager()}get connectionHealthManager(){return this.context.worker.getConnectionHealthManager()}get edgeManager(){return this.context.worker.getEdgeManager()}get groupManager(){return this.context.worker.getGroupManager()}get libraryManager(){return this.context.worker.getLibraryManager()}}const $A=2e3;class vSe extends Sp{constructor(t){super(t),this._responsive=!1,this._last_pong=0,this._last_pong=Date.now()-$A*100}start(){this.stop(),this.pingInterval=setInterval(()=>{this.context.worker.is_open&&this.context.worker.send({type:"ping"})},$A),this.responsivenessCheckInterval=setInterval(()=>{this._responsive=Date.now()-this._last_pong<=$A*3},$A*2)}stop(){this.pingInterval&&clearInterval(this.pingInterval),this.responsivenessCheckInterval&&clearInterval(this.responsivenessCheckInterval)}receivePong(){this._last_pong=Date.now(),this._responsive=!0}isResponsive(){return this._responsive}}const eV=(e,t)=>{e.properties=e.properties||{},t.pos&&(e.properties["frontend:pos"]=t.pos),t.size&&(e.properties["frontend:size"]=t.size),t.collapsed!==void 0&&(e.properties["frontend:collapsed"]=!!t.collapsed)},tV=2e3,nV=2e3;class SSe extends Sp{constructor(t){super(t),this._local_nodeupdates=new Map,this._local_groupupdates=new Map,this.on_sync_complete=t.on_sync_complete||(async()=>{})}start(){this._nodeupdatetimer=setTimeout(()=>{this.sync_local_node_updates()},tV),this._groupupdatetimer=setTimeout(()=>{this.sync_local_group_updates()},nV)}stop(){this._nodeupdatetimer&&clearTimeout(this._nodeupdatetimer),this._groupupdatetimer&&clearTimeout(this._groupupdatetimer)}async stepwise_fullsync(){this.context.worker._zustand&&this.context.worker.is_open&&(await this.sync_lib(),await this.sync_external_worker(),await this.sync_funcnodes_plugins(),await this.sync_nodespace(),await this.sync_view_state(),await this.on_sync_complete(this.context.worker))}async sync_lib(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;const t=await this.communicationManager._send_cmd({cmd:"get_library",wait_for_response:!0,retries:2,unique:!0});this.context.worker._zustand.lib.libstate.getState().set({lib:t})}async sync_external_worker(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;const t=await this.communicationManager._send_cmd({cmd:"get_worker_dependencies",wait_for_response:!0,unique:!0});this.context.worker._zustand.lib.libstate.getState().set({external_worker:t})}async sync_funcnodes_plugins(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;const t=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"get_plugin_keys",wait_for_response:!0,unique:!0,kwargs:{type:"react"}});for(const n of t){const r=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"get_plugin",wait_for_response:!0,kwargs:{key:n,type:"react"},unique:!0});this.context.worker._zustand.add_packed_plugin(n,r)}}async sync_view_state(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;const t=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"view_state",wait_for_response:!0,unique:!0});t.renderoptions&&this.context.worker._zustand.update_render_options(t.renderoptions);const n=t.nodes;if(n)for(const r in n){const o={};eV(o,n[r]),this.context.worker._zustand.on_node_action({type:"update",node:o,id:r,from_remote:!0})}}async sync_nodespace(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;const t=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"get_nodes",kwargs:{with_frontend:!0},wait_for_response:!0,unique:!0});for(const o of t)this.eventManager._receive_node_added(o);const n=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"get_edges",wait_for_response:!0,unique:!0});for(const o of n)this.eventManager._receive_edge_added(...o);const r=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"get_groups",kwargs:{},wait_for_response:!0,unique:!0});this.eventManager._receive_groups(r)}async fullsync(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;let t;for(;;)try{t=await this.communicationManager._send_cmd({cmd:"full_state",unique:!0});break}catch(o){o instanceof Error?this.context.worker._zustand.logger.error("Error in fullsync",o):this.context.worker._zustand.logger.error("Error in fullsync",new Error(JSON.stringify(o)))}this.context.worker._zustand.logger.debug("Full state",t),this.context.worker._zustand.lib.libstate.getState().set({lib:t.backend.lib,external_worker:t.worker_dependencies}),t.view.renderoptions&&this.context.worker._zustand.update_render_options(t.view.renderoptions);const n=t.view.nodes;for(const o of t.backend.nodes){const a=n[o.id];a!==void 0&&eV(o,a),this.eventManager._receive_node_added(o)}for(const o of t.backend.edges)this.eventManager._receive_edge_added(...o);const r=t.backend.groups;r&&this.eventManager._receive_groups(r)}sync_local_node_updates(){clearTimeout(this._nodeupdatetimer),this._local_nodeupdates.forEach(async(t,n)=>{const r=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"update_node",kwargs:{nid:n,data:t},wait_for_response:!0});this.context.worker._zustand&&Object.keys(r).length>0&&this.context.worker._zustand.on_node_action({type:"update",node:r,id:n,from_remote:!0})}),this._local_nodeupdates.clear(),this._nodeupdatetimer=setTimeout(()=>{this.sync_local_node_updates()},tV)}sync_local_group_updates(){clearTimeout(this._groupupdatetimer),this._local_groupupdates.forEach(async(t,n)=>{const r=await this.communicationManager._send_cmd({cmd:"update_group",kwargs:{gid:n,data:t},wait_for_response:!0});this.context.worker._zustand&&this.context.worker._zustand.on_group_action({type:"update",group:r,id:n,from_remote:!0})}),this._local_groupupdates.clear(),this._groupupdatetimer=setTimeout(()=>{this.sync_local_group_updates()},nV)}locally_update_node(t){const n=this._local_nodeupdates.get(t.id);if(n){const{new_obj:r,change:o}=ap(n,t.node);o&&this._local_nodeupdates.set(t.id,r)}else this._local_nodeupdates.set(t.id,t.node);t.immediate&&this.sync_local_node_updates()}locally_update_group(t){const n=this._local_groupupdates.get(t.id);if(n){const{new_obj:r,change:o}=ap(n,t.group);o&&this._local_groupupdates.set(t.id,r)}else this._local_groupupdates.set(t.id,t.group);t.immediate&&this.sync_local_group_updates()}}class Fu{constructor({data:t,mime:n}){this._data=t,this._mime=n}get data(){return this._data}get value(){return this._data}get mime(){return this._mime}toString(){return this._data instanceof ArrayBuffer?`DataStructure(${this._data.byteLength},${this._mime})`:this._data instanceof Blob?`DataStructure(${this._data.size},${this._mime})`:this._data instanceof String?`DataStructure(${this._data.length},${this._mime})`:this._data instanceof Array?`DataStructure(${this._data.length},${this._mime})`:this._data instanceof Object?`DataStructure(${Object.keys(this._data).length},${this._mime})`:`DataStructure(${this._mime})`}toJSON(){return this.toString()}dispose(){}}class xP extends Fu{constructor({data:t,mime:n}){super({data:Ek(t),mime:n})}get objectUrl(){if(this._objectUrl)return this._objectUrl;const t=this.data instanceof Blob?this.data:new Blob([this.data],{type:this.mime});return this._objectUrl=URL.createObjectURL(t),this._objectUrl}dispose(){this._objectUrl&&URL.revokeObjectURL(this._objectUrl),super.dispose()}get value(){return this.objectUrl}}const Ek=e=>{if(e instanceof ArrayBuffer)return e;const t=ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e),n=new ArrayBuffer(t.byteLength);return new Uint8Array(n).set(t),n},xSe={x:(e,t)=>null,c:(e,t)=>new DataView(e).getInt8(0),B:(e,t)=>new DataView(e).getUint8(0),"?":(e,t)=>new DataView(e).getInt8(0)===1,h:(e,t)=>new DataView(e).getInt16(0,t),H:(e,t)=>new DataView(e).getUint16(0,t),i:(e,t)=>new DataView(e).getInt32(0,t),I:(e,t)=>new DataView(e).getUint32(0,t),l:(e,t)=>new DataView(e).getInt32(0,t),L:(e,t)=>new DataView(e).getUint32(0,t),q:(e,t)=>Number(new DataView(e).getBigInt64(0,t)),Q:(e,t)=>Number(new DataView(e).getBigUint64(0,t)),n:(e,t)=>Number(new DataView(e).getBigInt64(0,t)),N:(e,t)=>Number(new DataView(e).getBigUint64(0,t)),f:(e,t)=>new DataView(e).getFloat32(0,t),d:(e,t)=>new DataView(e).getFloat64(0,t),s:(e,t)=>new TextDecoder().decode(e),p:(e,t)=>new TextDecoder().decode(e),P:(e,t)=>Number(new DataView(e).getBigUint64(0,t))};class wP extends Fu{constructor({data:t,mime:n}){super({data:Ek(t),mime:n}),this._cType=n.split("application/fn.struct.")[1],this._value=null,this.parse_value()}parse_value(){let t=!0,n=this._cType;return n.startsWith("<")&&(t=!0,n=n.slice(1)),n.startsWith(">")&&(t=!1,n=n.slice(1)),n.startsWith("!")&&(t=!1,n=n.slice(1)),n.startsWith("@")&&(t=!1,n=n.slice(1)),n.startsWith("=")&&(t=!1,n=n.slice(1)),this._value=xSe[n](this.data,t),this._value}get value(){return this._value}toString(){return this._value===null?"null":this._value.toString()}}class ep extends Fu{constructor({data:t,mime:n}){const r=Ek(t);super({data:r,mime:n}),r.byteLength===0?this._json=void 0:(this._json=JSON.parse(new TextDecoder().decode(r)),this._json==="<NoValue>"&&(this._json=void 0))}get value(){return this._json}static fromObject(t){const n=t==="<NoValue>"?new Uint8Array(0):new TextEncoder().encode(JSON.stringify(t));return new ep({data:n,mime:"application/json"})}toString(){return typeof this._json=="string"?this._json:JSON.stringify(this._json)}}class EP extends Fu{constructor({data:t,mime:n}){const r=Ek(t);super({data:r,mime:n}),this._value=new TextDecoder().decode(r)}get value(){return this._value}toString(){return this._value}}const gZ=({data:e,mime:t})=>{const n=typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer;return e instanceof ArrayBuffer||ArrayBuffer.isView(e)||n?t.startsWith("application/fn.struct.")?new wP({data:e,mime:t}):t.startsWith("application/json")?new ep({data:e,mime:t}):t==="text"||t.startsWith("text/")?new EP({data:e,mime:t}):new xP({data:e,mime:t}):new Fu({data:e,mime:t})};class wSe extends Sp{constructor(t){super(t),this.CHUNK_TIMEOUT=1e4,this._unique_cmd_outs={},this.blobChunks={},this.cleanupChunks=()=>{const n=Date.now();for(const r in this.blobChunks)n-this.blobChunks[r].timestamp>this.CHUNK_TIMEOUT&&delete this.blobChunks[r]},this.messagePromises=new Map}start(){this._chunk_cleanup_timer=setInterval(this.cleanupChunks.bind(this),this.CHUNK_TIMEOUT/2)}stop(){this._chunk_cleanup_timer&&clearInterval(this._chunk_cleanup_timer)}send(t){this.context.worker.send(t)}async _send_cmd({cmd:t,kwargs:n,as_bytes:r=!1,wait_for_response:o=!0,response_timeout:a=5e3,retries:s=2,unique:u=!1}){const f={type:"cmd",as_bytes:r,cmd:t,kwargs:n||{}};if(await new Promise(async p=>{if(this.context.worker.is_responsive)return p();const m=setInterval(()=>{this.context.worker.is_responsive&&(clearInterval(m),p())},100)}),o){if(u&&this._unique_cmd_outs[f.cmd]!==void 0)return this._unique_cmd_outs[f.cmd];s<0&&(s=0);const m=(async()=>{let g;for(;s>=0;){const b=f.id||SP();f.id=b;const S=new Promise((w,x)=>{const E=setTimeout(()=>{x("Timeout@wait_for_response for "+t)},a);this.messagePromises.set(b,{resolve:C=>{clearTimeout(E),w(C),this.messagePromises.delete(b)},reject:C=>{clearTimeout(E),x(C),this.messagePromises.delete(b)}})});await this.send(f);try{g=await S;break}catch(w){if(s===0)throw delete this._unique_cmd_outs[f.cmd],w;s-=1;continue}}return delete this._unique_cmd_outs[f.cmd],g})();return u&&(this._unique_cmd_outs[f.cmd]=m),m}return this.send(f)}async receive(t){let n;switch(this.connectionHealthManager.receivePong(),t.type){case"pong":return this.connectionHealthManager.receivePong();case"nsevent":return await this.context.worker.getEventManager().receive_nodespace_event(t);case"result":if(n=t.id&&this.messagePromises.get(t.id),n)return n.resolve(t.result);break;case"error":if(this.context.worker.on_error(t.tb+`
973
+ `]))),hbe=function(t,n){var r=t.isFocused,o=t.size,a=t.theme,s=a.colors,u=a.spacing.baseUnit;return Ot({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:u*2})},PD=function(t){var n=t.delay,r=t.offset;return Et("span",{css:rC({animation:"".concat(pbe," 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+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICA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5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},mbe=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,a=o===void 0?4:o,s=vp(t,obe);return Et("div",Ct({},po(Ot(Ot({},s),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),Et(PD,{delay:0,offset:r}),Et(PD,{delay:160,offset:!0}),Et(PD,{delay:320,offset:!r}))},gbe=function(t,n){var r=t.isDisabled,o=t.isFocused,a=t.theme,s=a.colors,u=a.borderRadius,f=a.spacing;return Ot({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:f.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:u,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:o?s.primary:s.neutral30}})},ybe=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,a=t.innerRef,s=t.innerProps,u=t.menuIsOpen;return Et("div",Ct({ref:a},po(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":u}),s,{"aria-disabled":r||void 0}),n)},bbe=ybe,vbe=["data"],Sbe=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},xbe=function(t){var n=t.children,r=t.cx,o=t.getStyles,a=t.getClassNames,s=t.Heading,u=t.headingProps,f=t.innerProps,p=t.label,m=t.theme,g=t.selectProps;return Et("div",Ct({},po(t,"group",{group:!0}),f),Et(s,Ct({},u,{selectProps:g,theme:m,getStyles:o,getClassNames:a,cx:r}),p),Et("div",null,n))},wbe=function(t,n){var r=t.theme,o=r.colors,a=r.spacing;return Ot({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},Ebe=function(t){var n=wW(t);n.data;var r=vp(n,vbe);return Et("div",Ct({},po(t,"groupHeading",{"group-heading":!0}),r))},_be=xbe,Cbe=["innerRef","isDisabled","isHidden","inputClassName"],Tbe=function(t,n){var r=t.isDisabled,o=t.value,a=t.theme,s=a.spacing,u=a.colors;return Ot(Ot({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},Abe),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:u.neutral80})},kW={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Abe={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ot({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},kW)},Obe=function(t){return Ot({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},kW)},Rbe=function(t){var n=t.cx,r=t.value,o=wW(t),a=o.innerRef,s=o.isDisabled,u=o.isHidden,f=o.inputClassName,p=vp(o,Cbe);return Et("div",Ct({},po(t,"input",{"input-container":!0}),{"data-value":r||""}),Et("input",Ct({className:n({input:!0},f),ref:a,style:Obe(u),disabled:s},p)))},Nbe=Rbe,kbe=function(t,n){var r=t.theme,o=r.spacing,a=r.borderRadius,s=r.colors;return Ot({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:a/2,margin:o.baseUnit/2})},Mbe=function(t,n){var r=t.theme,o=r.borderRadius,a=r.colors,s=t.cropWithEllipsis;return Ot({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Ibe=function(t,n){var r=t.theme,o=r.spacing,a=r.borderRadius,s=r.colors,u=t.isFocused;return Ot({alignItems:"center",display:"flex"},n?{}:{borderRadius:a/2,backgroundColor:u?s.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},MW=function(t){var n=t.children,r=t.innerProps;return Et("div",r,n)},Dbe=MW,jbe=MW;function Pbe(e){var t=e.children,n=e.innerProps;return Et("div",Ct({role:"button"},n),t||Et(dP,{size:14}))}var zbe=function(t){var n=t.children,r=t.components,o=t.data,a=t.innerProps,s=t.isDisabled,u=t.removeProps,f=t.selectProps,p=r.Container,m=r.Label,g=r.Remove;return Et(p,{data:o,innerProps:Ot(Ot({},po(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),a),selectProps:f},Et(m,{data:o,innerProps:Ot({},po(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:f},n),Et(g,{data:o,innerProps:Ot(Ot({},po(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},u),selectProps:f}))},$be=zbe,Fbe=function(t,n){var r=t.isDisabled,o=t.isFocused,a=t.isSelected,s=t.theme,u=s.spacing,f=s.colors;return Ot({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:a?f.primary:o?f.primary25:"transparent",color:r?f.neutral20:a?f.neutral0:"inherit",padding:"".concat(u.baseUnit*2,"px ").concat(u.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:a?f.primary:f.primary50}})},Lbe=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,a=t.isSelected,s=t.innerRef,u=t.innerProps;return Et("div",Ct({},po(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":a}),{ref:s,"aria-disabled":r},u),n)},Bbe=Lbe,Vbe=function(t,n){var r=t.theme,o=r.spacing,a=r.colors;return Ot({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Ube=function(t){var n=t.children,r=t.innerProps;return Et("div",Ct({},po(t,"placeholder",{placeholder:!0}),r),n)},Hbe=Ube,Gbe=function(t,n){var r=t.isDisabled,o=t.theme,a=o.spacing,s=o.colors;return Ot({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?s.neutral40:s.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},Ybe=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return Et("div",Ct({},po(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},qbe=Ybe,Xbe={ClearIndicator:cbe,Control:bbe,DropdownIndicator:lbe,DownChevron:RW,CrossIcon:dP,Group:_be,GroupHeading:Ebe,IndicatorsContainer:nbe,IndicatorSeparator:dbe,Input:Nbe,LoadingIndicator:mbe,Menu:V0e,MenuList:H0e,MenuPortal:Z0e,LoadingMessage:X0e,NoOptionsMessage:q0e,MultiValue:$be,MultiValueContainer:Dbe,MultiValueLabel:jbe,MultiValueRemove:Pbe,Option:Bbe,Placeholder:Hbe,SelectContainer:K0e,SingleValue:qbe,ValueContainer:ebe},Wbe=function(t){return Ot(Ot({},Xbe),t.components)},E6=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Zbe(e,t){return!!(e===t||E6(e)&&E6(t))}function Jbe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Zbe(e[n],t[n]))return!1;return!0}function Kbe(e,t){t===void 0&&(t=Jbe);var n=null;function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];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 Qbe(){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 eve=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:Qbe},tve=function(t){return Et("span",Ct({css:eve},t))},_6=tve,nve={guidance:function(t){var n=t.isSearchable,r=t.isMulti,o=t.tabSelectsValue,a=t.context,s=t.isInitialFocus;switch(a){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,a=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(a.length>1?"s":""," ").concat(a.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,a=t.label,s=a===void 0?"":a,u=t.selectValue,f=t.isDisabled,p=t.isSelected,m=t.isAppleDevice,g=function(x,E){return x&&x.length?"".concat(x.indexOf(E)+1," of ").concat(x.length):""};if(n==="value"&&u)return"value ".concat(s," focused, ").concat(g(u,r),".");if(n==="menu"&&m){var b=f?" disabled":"",S="".concat(p?" selected":"").concat(b);return"".concat(s).concat(S,", ").concat(g(o,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},rve=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.focusableOptions,s=t.isFocused,u=t.selectValue,f=t.selectProps,p=t.id,m=t.isAppleDevice,g=f.ariaLiveMessages,b=f.getOptionLabel,S=f.inputValue,w=f.isMulti,x=f.isOptionDisabled,E=f.isSearchable,C=f.menuIsOpen,N=f.options,O=f.screenReaderStatus,k=f.tabSelectsValue,M=f.isLoading,D=f["aria-label"],P=f["aria-live"],B=oe.useMemo(function(){return Ot(Ot({},nve),g||{})},[g]),V=oe.useMemo(function(){var ee="";if(n&&B.onChange){var H=n.option,ne=n.options,Q=n.removedValue,ae=n.removedValues,q=n.value,W=function(he){return Array.isArray(he)?null:he},ie=Q||H||W(q),Z=ie?b(ie):"",K=ne||ae||void 0,se=K?K.map(b):[],de=Ot({isDisabled:ie&&x(ie,u),label:Z,labels:se},n);ee=B.onChange(de)}return ee},[n,B,x,u,b]),U=oe.useMemo(function(){var ee="",H=r||o,ne=!!(r&&u&&u.includes(r));if(H&&B.onFocus){var Q={focused:H,label:b(H),isDisabled:x(H,u),isSelected:ne,options:a,context:H===r?"menu":"value",selectValue:u,isAppleDevice:m};ee=B.onFocus(Q)}return ee},[r,o,b,x,B,a,u,m]),X=oe.useMemo(function(){var ee="";if(C&&N.length&&!M&&B.onFilter){var H=O({count:a.length});ee=B.onFilter({inputValue:S,resultsMessage:H})}return ee},[a,S,C,B,N,O,M]),L=n?.action==="initial-input-focus",J=oe.useMemo(function(){var ee="";if(B.guidance){var H=o?"value":C?"menu":"input";ee=B.guidance({"aria-label":D,context:H,isDisabled:r&&x(r,u),isMulti:w,isSearchable:E,tabSelectsValue:k,isInitialFocus:L})}return ee},[D,r,o,w,x,E,C,B,u,k,L]),Y=Et(oe.Fragment,null,Et("span",{id:"aria-selection"},V),Et("span",{id:"aria-focused"},U),Et("span",{id:"aria-results"},X),Et("span",{id:"aria-guidance"},J));return Et(oe.Fragment,null,Et(_6,{id:p},L&&Y),Et(_6,{"aria-live":P,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!L&&Y))},ove=rve,q3=[{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źẑżžẓẕƶȥɀⱬꝣ"}],ive=new RegExp("["+q3.map(function(e){return e.letters}).join("")+"]","g"),IW={};for(var zD=0;zD<q3.length;zD++)for(var $D=q3[zD],FD=0;FD<$D.letters.length;FD++)IW[$D.letters[FD]]=$D.base;var DW=function(t){return t.replace(ive,function(n){return IW[n]})},ave=Kbe(DW),C6=function(t){return t.replace(/^\s+|\s+$/g,"")},sve=function(t){return"".concat(t.label," ").concat(t.value)},lve=function(t){return function(n,r){if(n.data.__isNew__)return!0;var o=Ot({ignoreCase:!0,ignoreAccents:!0,stringify:sve,trim:!0,matchFrom:"any"},t),a=o.ignoreCase,s=o.ignoreAccents,u=o.stringify,f=o.trim,p=o.matchFrom,m=f?C6(r):r,g=f?C6(u(n)):u(n);return a&&(m=m.toLowerCase(),g=g.toLowerCase()),s&&(m=ave(m),g=DW(g)),p==="start"?g.substr(0,m.length)===m:g.indexOf(m)>-1}},uve=["innerRef"];function cve(e){var t=e.innerRef,n=vp(e,uve),r=D0e(n,"onExited","in","enter","exit","appear");return Et("input",Ct({ref:t},r,{css:rC({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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGl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GJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var fve=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function dve(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,s=oe.useRef(!1),u=oe.useRef(!1),f=oe.useRef(0),p=oe.useRef(null),m=oe.useCallback(function(E,C){if(p.current!==null){var N=p.current,O=N.scrollTop,k=N.scrollHeight,M=N.clientHeight,D=p.current,P=C>0,B=k-M-O,V=!1;B>C&&s.current&&(r&&r(E),s.current=!1),P&&u.current&&(a&&a(E),u.current=!1),P&&C>B?(n&&!s.current&&n(E),D.scrollTop=k,V=!0,s.current=!0):!P&&-C>O&&(o&&!u.current&&o(E),D.scrollTop=0,V=!0,u.current=!0),V&&fve(E)}},[n,r,o,a]),g=oe.useCallback(function(E){m(E,E.deltaY)},[m]),b=oe.useCallback(function(E){f.current=E.changedTouches[0].clientY},[]),S=oe.useCallback(function(E){var C=f.current-E.changedTouches[0].clientY;m(E,C)},[m]),w=oe.useCallback(function(E){if(E){var C=k0e?{passive:!1}:!1;E.addEventListener("wheel",g,C),E.addEventListener("touchstart",b,C),E.addEventListener("touchmove",S,C)}},[S,b,g]),x=oe.useCallback(function(E){E&&(E.removeEventListener("wheel",g,!1),E.removeEventListener("touchstart",b,!1),E.removeEventListener("touchmove",S,!1))},[S,b,g]);return oe.useEffect(function(){if(t){var E=p.current;return w(E),function(){x(E)}}},[t,w,x]),function(E){p.current=E}}var T6=["boxSizing","height","overflow","paddingRight","position"],A6={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function O6(e){e.cancelable&&e.preventDefault()}function R6(e){e.stopPropagation()}function N6(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function k6(){return"ontouchstart"in window||navigator.maxTouchPoints}var M6=!!(typeof window<"u"&&window.document&&window.document.createElement),uE=0,Yv={capture:!1,passive:!1};function pve(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=oe.useRef({}),a=oe.useRef(null),s=oe.useCallback(function(f){if(M6){var p=document.body,m=p&&p.style;if(r&&T6.forEach(function(w){var x=m&&m[w];o.current[w]=x}),r&&uE<1){var g=parseInt(o.current.paddingRight,10)||0,b=document.body?document.body.clientWidth:0,S=window.innerWidth-b+g||0;Object.keys(A6).forEach(function(w){var x=A6[w];m&&(m[w]=x)}),m&&(m.paddingRight="".concat(S,"px"))}p&&k6()&&(p.addEventListener("touchmove",O6,Yv),f&&(f.addEventListener("touchstart",N6,Yv),f.addEventListener("touchmove",R6,Yv))),uE+=1}},[r]),u=oe.useCallback(function(f){if(M6){var p=document.body,m=p&&p.style;uE=Math.max(uE-1,0),r&&uE<1&&T6.forEach(function(g){var b=o.current[g];m&&(m[g]=b)}),p&&k6()&&(p.removeEventListener("touchmove",O6,Yv),f&&(f.removeEventListener("touchstart",N6,Yv),f.removeEventListener("touchmove",R6,Yv)))}},[r]);return oe.useEffect(function(){if(t){var f=a.current;return s(f),function(){u(f)}}},[t,s,u]),function(f){a.current=f}}function hve(){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 mve=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},gve=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVud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JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:hve};function yve(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,a=e.onBottomArrive,s=e.onBottomLeave,u=e.onTopArrive,f=e.onTopLeave,p=dve({isEnabled:o,onBottomArrive:a,onBottomLeave:s,onTopArrive:u,onTopLeave:f}),m=pve({isEnabled:n}),g=function(S){p(S),m(S)};return Et(oe.Fragment,null,n&&Et("div",{onClick:mve,css:gve}),t(g))}function bve(){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 vve=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:bve},Sve=function(t){var n=t.name,r=t.onFocus;return Et("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:vve,value:"",onChange:function(){}})},xve=Sve;function pP(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 wve(){return pP(/^iPhone/i)}function jW(){return pP(/^Mac/i)}function Eve(){return pP(/^iPad/i)||jW()&&navigator.maxTouchPoints>1}function _ve(){return wve()||Eve()}function Cve(){return jW()||_ve()}var Tve=function(t){return t.label},Ave=function(t){return t.label},Ove=function(t){return t.value},Rve=function(t){return!!t.isDisabled},Nve={clearIndicator:ube,container:J0e,control:gbe,dropdownIndicator:sbe,group:Sbe,groupHeading:wbe,indicatorsContainer:tbe,indicatorSeparator:fbe,input:Tbe,loadingIndicator:hbe,loadingMessage:Y0e,menu:F0e,menuList:U0e,menuPortal:W0e,multiValue:kbe,multiValueLabel:Mbe,multiValueRemove:Ibe,noOptionsMessage:G0e,option:Fbe,placeholder:Vbe,singleValue:Gbe,valueContainer:Q0e},kve={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%)"},Mve=4,PW=4,Ive=38,Dve=PW*2,jve={baseUnit:PW,controlHeight:Ive,menuGutter:Dve},LD={borderRadius:Mve,colors:kve,spacing:jve},Pve={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:x6(),captureMenuScroll:!x6(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:lve(),formatGroupLabel:Tve,getOptionLabel:Ave,getOptionValue:Ove,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Rve,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!R0e(),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 I6(e,t,n,r){var o=FW(e,t,n),a=LW(e,t,n),s=$W(e,t),u=XR(e,t);return{type:"option",data:t,isDisabled:o,isSelected:a,label:s,value:u,index:r}}function sR(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(s,u){return I6(e,s,t,u)}).filter(function(s){return j6(e,s)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=I6(e,n,t,r);return j6(e,a)?a:void 0}).filter(M0e)}function zW(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,fP(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function D6(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,fP(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 zve(e,t){return zW(sR(e,t))}function j6(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,a=t.isSelected,s=t.label,u=t.value;return(!VW(e)||!a)&&BW(e,{label:s,value:u,data:o},r)}function $ve(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var a=t.indexOf(n);if(a>-1)return n;if(o<t.length)return t[o]}return null}function Fve(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var BD=function(t,n){var r,o=(r=t.find(function(a){return a.data===n}))===null||r===void 0?void 0:r.id;return o||null},$W=function(t,n){return t.getOptionLabel(n)},XR=function(t,n){return t.getOptionValue(n)};function FW(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function LW(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=XR(e,t);return n.some(function(o){return XR(e,o)===r})}function BW(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var VW=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},Lve=1,UW=(function(e){m0e(n,e);var t=y0e(n);function n(r){var o;if(p0e(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:"",isAppleDevice:!1},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.controlRef=null,o.getControlRef=function(f){o.controlRef=f},o.focusedOptionRef=null,o.getFocusedOptionRef=function(f){o.focusedOptionRef=f},o.menuListRef=null,o.getMenuListRef=function(f){o.menuListRef=f},o.inputRef=null,o.getInputRef=function(f){o.inputRef=f},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(f,p){var m=o.props,g=m.onChange,b=m.name;p.name=b,o.ariaOnChange(f,p),g(f,p)},o.setValue=function(f,p,m){var g=o.props,b=g.closeMenuOnSelect,S=g.isMulti,w=g.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:w}),b&&(o.setState({inputIsHiddenAfterUpdate:!S}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(f,{action:p,option:m})},o.selectOption=function(f){var p=o.props,m=p.blurInputOnSelect,g=p.isMulti,b=p.name,S=o.state.selectValue,w=g&&o.isOptionSelected(f,S),x=o.isOptionDisabled(f,S);if(w){var E=o.getOptionValue(f);o.setValue(S.filter(function(C){return o.getOptionValue(C)!==E}),"deselect-option",f)}else if(!x)g?o.setValue([].concat(fP(S),[f]),"select-option",f):o.setValue(f,"select-option");else{o.ariaOnChange(f,{action:"select-option",option:f,name:b});return}m&&o.blurInput()},o.removeValue=function(f){var p=o.props.isMulti,m=o.state.selectValue,g=o.getOptionValue(f),b=m.filter(function(w){return o.getOptionValue(w)!==g}),S=kA(p,b,b[0]||null);o.onChange(S,{action:"remove-value",removedValue:f}),o.focusInput()},o.clearValue=function(){var f=o.state.selectValue;o.onChange(kA(o.props.isMulti,[],null),{action:"clear",removedValues:f})},o.popValue=function(){var f=o.props.isMulti,p=o.state.selectValue,m=p[p.length-1],g=p.slice(0,p.length-1),b=kA(f,g,g[0]||null);m&&o.onChange(b,{action:"pop-value",removedValue:m})},o.getFocusedOptionId=function(f){return BD(o.state.focusableOptionsWithIds,f)},o.getFocusableOptionsWithIds=function(){return D6(sR(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];return _0e.apply(void 0,[o.props.classNamePrefix].concat(p))},o.getOptionLabel=function(f){return $W(o.props,f)},o.getOptionValue=function(f){return XR(o.props,f)},o.getStyles=function(f,p){var m=o.props.unstyled,g=Nve[f](p,m);g.boxSizing="border-box";var b=o.props.styles[f];return b?b(g,p):g},o.getClassNames=function(f,p){var m,g;return(m=(g=o.props.classNames)[f])===null||m===void 0?void 0:m.call(g,p)},o.getElementId=function(f){return"".concat(o.state.instancePrefix,"-").concat(f)},o.getComponents=function(){return Wbe(o.props)},o.buildCategorizedOptions=function(){return sR(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return zW(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(f,p){o.setState({ariaSelection:Ot({value:f},p)})},o.onMenuMouseDown=function(f){f.button===0&&(f.stopPropagation(),f.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(f){o.blockOptionHover=!1},o.onControlMouseDown=function(f){if(!f.defaultPrevented){var p=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?f.target.tagName!=="INPUT"&&f.target.tagName!=="TEXTAREA"&&o.onMenuClose():p&&o.openMenu("first"):(p&&(o.openAfterFocus=!0),o.focusInput()),f.target.tagName!=="INPUT"&&f.target.tagName!=="TEXTAREA"&&f.preventDefault()}},o.onDropdownIndicatorMouseDown=function(f){if(!(f&&f.type==="mousedown"&&f.button!==0)&&!o.props.isDisabled){var p=o.props,m=p.isMulti,g=p.menuIsOpen;o.focusInput(),g?(o.setState({inputIsHiddenAfterUpdate:!m}),o.onMenuClose()):o.openMenu("first"),f.preventDefault()}},o.onClearIndicatorMouseDown=function(f){f&&f.type==="mousedown"&&f.button!==0||(o.clearValue(),f.preventDefault(),o.openAfterFocus=!1,f.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(f){typeof o.props.closeMenuOnScroll=="boolean"?f.target instanceof HTMLElement&&Sk(f.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(f)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(f){var p=f.touches,m=p&&p.item(0);m&&(o.initialTouchX=m.clientX,o.initialTouchY=m.clientY,o.userIsDragging=!1)},o.onTouchMove=function(f){var p=f.touches,m=p&&p.item(0);if(m){var g=Math.abs(m.clientX-o.initialTouchX),b=Math.abs(m.clientY-o.initialTouchY),S=5;o.userIsDragging=g>S||b>S}},o.onTouchEnd=function(f){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(f.target)&&o.menuListRef&&!o.menuListRef.contains(f.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(f){o.userIsDragging||o.onControlMouseDown(f)},o.onClearIndicatorTouchEnd=function(f){o.userIsDragging||o.onClearIndicatorMouseDown(f)},o.onDropdownIndicatorTouchEnd=function(f){o.userIsDragging||o.onDropdownIndicatorMouseDown(f)},o.handleInputChange=function(f){var p=o.props.inputValue,m=f.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(m,{action:"input-change",prevInputValue:p}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(f){o.props.onFocus&&o.props.onFocus(f),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(f){var p=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(f),o.onInputChange("",{action:"input-blur",prevInputValue:p}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(f){if(!(o.blockOptionHover||o.state.focusedOption===f)){var p=o.getFocusableOptions(),m=p.indexOf(f);o.setState({focusedOption:f,focusedOptionId:m>-1?o.getFocusedOptionId(f):null})}},o.shouldHideSelectedOptions=function(){return VW(o.props)},o.onValueInputFocus=function(f){f.preventDefault(),f.stopPropagation(),o.focus()},o.onKeyDown=function(f){var p=o.props,m=p.isMulti,g=p.backspaceRemovesValue,b=p.escapeClearsValue,S=p.inputValue,w=p.isClearable,x=p.isDisabled,E=p.menuIsOpen,C=p.onKeyDown,N=p.tabSelectsValue,O=p.openMenuOnFocus,k=o.state,M=k.focusedOption,D=k.focusedValue,P=k.selectValue;if(!x&&!(typeof C=="function"&&(C(f),f.defaultPrevented))){switch(o.blockOptionHover=!0,f.key){case"ArrowLeft":if(!m||S)return;o.focusValue("previous");break;case"ArrowRight":if(!m||S)return;o.focusValue("next");break;case"Delete":case"Backspace":if(S)return;if(D)o.removeValue(D);else{if(!g)return;m?o.popValue():w&&o.clearValue()}break;case"Tab":if(o.isComposing||f.shiftKey||!E||!N||!M||O&&o.isOptionSelected(M,P))return;o.selectOption(M);break;case"Enter":if(f.keyCode===229)break;if(E){if(!M||o.isComposing)return;o.selectOption(M);break}return;case"Escape":E?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:S}),o.onMenuClose()):w&&b&&o.clearValue();break;case" ":if(S)return;if(!E){o.openMenu("first");break}if(!M)return;o.selectOption(M);break;case"ArrowUp":E?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":E?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!E)return;o.focusOption("pageup");break;case"PageDown":if(!E)return;o.focusOption("pagedown");break;case"Home":if(!E)return;o.focusOption("first");break;case"End":if(!E)return;o.focusOption("last");break;default:return}f.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++Lve),o.state.selectValue=v6(r.value),r.menuIsOpen&&o.state.selectValue.length){var a=o.getFocusableOptionsWithIds(),s=o.buildFocusableOptions(),u=s.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=a,o.state.focusedOption=s[u],o.state.focusedOptionId=BD(a,s[u])}return o}return h0e(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&&S6(this.menuListRef,this.focusedOptionRef),Cve()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var a=this.props,s=a.isDisabled,u=a.menuIsOpen,f=this.state.isFocused;(f&&!s&&o.isDisabled||f&&u&&!o.menuIsOpen)&&this.focusInput(),f&&s&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!f&&!s&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(S6(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,a){this.props.onInputChange(o,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var a=this,s=this.state,u=s.selectValue,f=s.isFocused,p=this.buildFocusableOptions(),m=o==="first"?0:p.length-1;if(!this.props.isMulti){var g=p.indexOf(u[0]);g>-1&&(m=g)}this.scrollToFocusedOptionOnUpdate=!(f&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:p[m],focusedOptionId:this.getFocusedOptionId(p[m])},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(o){var a=this.state,s=a.selectValue,u=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var f=s.indexOf(u);u||(f=-1);var p=s.length-1,m=-1;if(s.length){switch(o){case"previous":f===0?m=0:f===-1?m=p:m=f-1;break;case"next":f>-1&&f<p&&(m=f+1);break}this.setState({inputIsHidden:m!==-1,focusedValue:s[m]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,s=this.state.focusedOption,u=this.getFocusableOptions();if(u.length){var f=0,p=u.indexOf(s);s||(p=-1),o==="up"?f=p>0?p-1:u.length-1:o==="down"?f=(p+1)%u.length:o==="pageup"?(f=p-a,f<0&&(f=0)):o==="pagedown"?(f=p+a,f>u.length-1&&(f=u.length-1)):o==="last"&&(f=u.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:u[f],focusedValue:null,focusedOptionId:this.getFocusedOptionId(u[f])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(LD):Ot(Ot({},LD),this.props.theme):LD}},{key:"getCommonProps",value:function(){var o=this.clearValue,a=this.cx,s=this.getStyles,u=this.getClassNames,f=this.getValue,p=this.selectOption,m=this.setValue,g=this.props,b=g.isMulti,S=g.isRtl,w=g.options,x=this.hasValue();return{clearValue:o,cx:a,getStyles:s,getClassNames:u,getValue:f,hasValue:x,isMulti:b,isRtl:S,options:w,selectOption:p,selectProps:g,setValue:m,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,a=o.isClearable,s=o.isMulti;return a===void 0?s:a}},{key:"isOptionDisabled",value:function(o,a){return FW(this.props,o,a)}},{key:"isOptionSelected",value:function(o,a){return LW(this.props,o,a)}},{key:"filterOption",value:function(o,a){return BW(this.props,o,a)}},{key:"formatOptionLabel",value:function(o,a){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,u=this.state.selectValue;return this.props.formatOptionLabel(o,{context:a,inputValue:s,selectValue:u})}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,a=o.isDisabled,s=o.isSearchable,u=o.inputId,f=o.inputValue,p=o.tabIndex,m=o.form,g=o.menuIsOpen,b=o.required,S=this.getComponents(),w=S.Input,x=this.state,E=x.inputIsHidden,C=x.ariaSelection,N=this.commonProps,O=u||this.getElementId("input"),k=Ot(Ot(Ot({"aria-autocomplete":"list","aria-expanded":g,"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":b,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},g&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?C?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?F.createElement(w,Ct({},N,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:O,innerRef:this.getInputRef,isDisabled:a,isHidden:E,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:p,form:m,type:"text",value:f},k)):F.createElement(cve,Ct({id:O,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:YR,onFocus:this.onInputFocus,disabled:a,tabIndex:p,inputMode:"none",form:m,value:""},k))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,a=this.getComponents(),s=a.MultiValue,u=a.MultiValueContainer,f=a.MultiValueLabel,p=a.MultiValueRemove,m=a.SingleValue,g=a.Placeholder,b=this.commonProps,S=this.props,w=S.controlShouldRenderValue,x=S.isDisabled,E=S.isMulti,C=S.inputValue,N=S.placeholder,O=this.state,k=O.selectValue,M=O.focusedValue,D=O.isFocused;if(!this.hasValue()||!w)return C?null:F.createElement(g,Ct({},b,{key:"placeholder",isDisabled:x,isFocused:D,innerProps:{id:this.getElementId("placeholder")}}),N);if(E)return k.map(function(B,V){var U=B===M,X="".concat(o.getOptionLabel(B),"-").concat(o.getOptionValue(B));return F.createElement(s,Ct({},b,{components:{Container:u,Label:f,Remove:p},isFocused:U,isDisabled:x,key:X,index:V,removeProps:{onClick:function(){return o.removeValue(B)},onTouchEnd:function(){return o.removeValue(B)},onMouseDown:function(J){J.preventDefault()}},data:B}),o.formatOptionLabel(B,"value"))});if(C)return null;var P=k[0];return F.createElement(m,Ct({},b,{data:P,isDisabled:x}),this.formatOptionLabel(P,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),a=o.ClearIndicator,s=this.commonProps,u=this.props,f=u.isDisabled,p=u.isLoading,m=this.state.isFocused;if(!this.isClearable()||!a||f||!this.hasValue()||p)return null;var g={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return F.createElement(a,Ct({},s,{innerProps:g,isFocused:m}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),a=o.LoadingIndicator,s=this.commonProps,u=this.props,f=u.isDisabled,p=u.isLoading,m=this.state.isFocused;if(!a||!p)return null;var g={"aria-hidden":"true"};return F.createElement(a,Ct({},s,{innerProps:g,isDisabled:f,isFocused:m}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),a=o.DropdownIndicator,s=o.IndicatorSeparator;if(!a||!s)return null;var u=this.commonProps,f=this.props.isDisabled,p=this.state.isFocused;return F.createElement(s,Ct({},u,{isDisabled:f,isFocused:p}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),a=o.DropdownIndicator;if(!a)return null;var s=this.commonProps,u=this.props.isDisabled,f=this.state.isFocused,p={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return F.createElement(a,Ct({},s,{innerProps:p,isDisabled:u,isFocused:f}))}},{key:"renderMenu",value:function(){var o=this,a=this.getComponents(),s=a.Group,u=a.GroupHeading,f=a.Menu,p=a.MenuList,m=a.MenuPortal,g=a.LoadingMessage,b=a.NoOptionsMessage,S=a.Option,w=this.commonProps,x=this.state.focusedOption,E=this.props,C=E.captureMenuScroll,N=E.inputValue,O=E.isLoading,k=E.loadingMessage,M=E.minMenuHeight,D=E.maxMenuHeight,P=E.menuIsOpen,B=E.menuPlacement,V=E.menuPosition,U=E.menuPortalTarget,X=E.menuShouldBlockScroll,L=E.menuShouldScrollIntoView,J=E.noOptionsMessage,Y=E.onMenuScrollToTop,ee=E.onMenuScrollToBottom;if(!P)return null;var H=function(Z,K){var se=Z.type,de=Z.data,pe=Z.isDisabled,he=Z.isSelected,we=Z.label,_e=Z.value,ue=x===de,fe=pe?void 0:function(){return o.onOptionHover(de)},be=pe?void 0:function(){return o.selectOption(de)},me="".concat(o.getElementId("option"),"-").concat(K),De={id:me,onClick:be,onMouseMove:fe,onMouseOver:fe,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:he};return F.createElement(S,Ct({},w,{innerProps:De,data:de,isDisabled:pe,isSelected:he,key:me,label:we,type:se,value:_e,isFocused:ue,innerRef:ue?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(Z.data,"menu"))},ne;if(this.hasOptions())ne=this.getCategorizedOptions().map(function(ie){if(ie.type==="group"){var Z=ie.data,K=ie.options,se=ie.index,de="".concat(o.getElementId("group"),"-").concat(se),pe="".concat(de,"-heading");return F.createElement(s,Ct({},w,{key:de,data:Z,options:K,Heading:u,headingProps:{id:pe,data:ie.data},label:o.formatGroupLabel(ie.data)}),ie.options.map(function(he){return H(he,"".concat(se,"-").concat(he.index))}))}else if(ie.type==="option")return H(ie,"".concat(ie.index))});else if(O){var Q=k({inputValue:N});if(Q===null)return null;ne=F.createElement(g,w,Q)}else{var ae=J({inputValue:N});if(ae===null)return null;ne=F.createElement(b,w,ae)}var q={minMenuHeight:M,maxMenuHeight:D,menuPlacement:B,menuPosition:V,menuShouldScrollIntoView:L},W=F.createElement(L0e,Ct({},w,q),function(ie){var Z=ie.ref,K=ie.placerProps,se=K.placement,de=K.maxHeight;return F.createElement(f,Ct({},w,q,{innerRef:Z,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:O,placement:se}),F.createElement(yve,{captureEnabled:C,onTopArrive:Y,onBottomArrive:ee,lockEnabled:X},function(pe){return F.createElement(p,Ct({},w,{innerRef:function(we){o.getMenuListRef(we),pe(we)},innerProps:{role:"listbox","aria-multiselectable":w.isMulti,id:o.getElementId("listbox")},isLoading:O,maxHeight:de,focusedOption:x}),ne)}))});return U||V==="fixed"?F.createElement(m,Ct({},w,{appendTo:U,controlElement:this.controlRef,menuPlacement:B,menuPosition:V}),W):W}},{key:"renderFormField",value:function(){var o=this,a=this.props,s=a.delimiter,u=a.isDisabled,f=a.isMulti,p=a.name,m=a.required,g=this.state.selectValue;if(m&&!this.hasValue()&&!u)return F.createElement(xve,{name:p,onFocus:this.onValueInputFocus});if(!(!p||u))if(f)if(s){var b=g.map(function(x){return o.getOptionValue(x)}).join(s);return F.createElement("input",{name:p,type:"hidden",value:b})}else{var S=g.length>0?g.map(function(x,E){return F.createElement("input",{key:"i-".concat(E),name:p,type:"hidden",value:o.getOptionValue(x)})}):F.createElement("input",{name:p,type:"hidden",value:""});return F.createElement("div",null,S)}else{var w=g[0]?this.getOptionValue(g[0]):"";return F.createElement("input",{name:p,type:"hidden",value:w})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,a=this.state,s=a.ariaSelection,u=a.focusedOption,f=a.focusedValue,p=a.isFocused,m=a.selectValue,g=this.getFocusableOptions();return F.createElement(ove,Ct({},o,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:u,focusedValue:f,isFocused:p,selectValue:m,focusableOptions:g,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),a=o.Control,s=o.IndicatorsContainer,u=o.SelectContainer,f=o.ValueContainer,p=this.props,m=p.className,g=p.id,b=p.isDisabled,S=p.menuIsOpen,w=this.state.isFocused,x=this.commonProps=this.getCommonProps();return F.createElement(u,Ct({},x,{className:m,innerProps:{id:g,onKeyDown:this.onKeyDown},isDisabled:b,isFocused:w}),this.renderLiveRegion(),F.createElement(a,Ct({},x,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:b,isFocused:w,menuIsOpen:S}),F.createElement(f,Ct({},x,{isDisabled:b}),this.renderPlaceholderOrValue(),this.renderInput()),F.createElement(s,Ct({},x,{isDisabled:b}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,a){var s=a.prevProps,u=a.clearFocusValueOnUpdate,f=a.inputIsHiddenAfterUpdate,p=a.ariaSelection,m=a.isFocused,g=a.prevWasFocused,b=a.instancePrefix,S=o.options,w=o.value,x=o.menuIsOpen,E=o.inputValue,C=o.isMulti,N=v6(w),O={};if(s&&(w!==s.value||S!==s.options||x!==s.menuIsOpen||E!==s.inputValue)){var k=x?zve(o,N):[],M=x?D6(sR(o,N),"".concat(b,"-option")):[],D=u?$ve(a,N):null,P=Fve(a,k),B=BD(M,P);O={selectValue:N,focusedOption:P,focusedOptionId:B,focusableOptionsWithIds:M,focusedValue:D,clearFocusValueOnUpdate:!1}}var V=f!=null&&o!==s?{inputIsHidden:f,inputIsHiddenAfterUpdate:void 0}:{},U=p,X=m&&g;return m&&!X&&(U={value:kA(C,N,N[0]||null),options:N,action:"initial-input-focus"},X=!g),p?.action==="initial-input-focus"&&(U=null),Ot(Ot(Ot({},O),V),{},{prevProps:o,ariaSelection:U,prevWasFocused:X})}}]),n})(oe.Component);UW.defaultProps=Pve;var Bve=oe.forwardRef(function(e,t){var n=d0e(e);return F.createElement(UW,Ct({ref:t},n))}),Vve=Bve;const Uve=({options:e,items_per_page:t,className:n,defaultValue:r,onChange:o})=>{const[a,s]=oe.useState(""),[u,f]=oe.useState(0),p=S=>{s(S.toLowerCase()),f(0)},m=e.filter(S=>S.label.toLowerCase().includes(a)||S.value.toLowerCase().includes(a));var g;t!==void 0?g=m.slice(u*t,(u+1)*t):g=m;const b={control:S=>({...S,minHeight:void 0})};return A.jsx(Vve,{options:g,onInputChange:p,onChange:o,inputValue:a,isSearchable:!0,placeholder:"Select an option...",className:n,unstyled:!0,styles:b,classNamePrefix:"styled-select",defaultValue:r,value:r})},Hve=e=>typeof e=="boolean"||e instanceof Boolean,Gve=e=>typeof e=="number"||e instanceof Number,Yve=e=>typeof e=="bigint"||e instanceof BigInt,HW=e=>!!e&&e instanceof Date,qve=e=>typeof e=="string"||e instanceof String,Xve=e=>Array.isArray(e),GW=e=>typeof e=="object"&&e!==null,YW=e=>!!e&&e instanceof Object&&typeof e=="function";function WR(e,t){return t===void 0&&(t=!1),!e||t?`"${e}"`:e}function Wve(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}function qW(e){let{field:t,value:n,data:r,lastElement:o,openBracket:a,closeBracket:s,level:u,style:f,shouldExpandNode:p,clickToExpandNode:m,outerRef:g,beforeExpandChange:b}=e;const S=oe.useRef(!1),[w,x]=oe.useState(()=>p(u,n,t)),E=oe.useRef(null);oe.useEffect(()=>{S.current?x(p(u,n,t)):S.current=!0},[p]);const C=oe.useId();if(r.length===0)return Zve({field:t,openBracket:a,closeBracket:s,lastElement:o,style:f});const N=w?f.collapseIcon:f.expandIcon,O=w?f.ariaLables.collapseJson:f.ariaLables.expandJson,k=u+1,M=r.length-1,D=V=>{w!==V&&(!b||b({level:u,value:n,field:t,newExpandValue:V}))&&x(V)},P=V=>{if(V.key==="ArrowRight"||V.key==="ArrowLeft")V.preventDefault(),D(V.key==="ArrowRight");else if(V.key==="ArrowUp"||V.key==="ArrowDown"){V.preventDefault();const U=V.key==="ArrowUp"?-1:1;if(!g.current)return;const X=g.current.querySelectorAll("[role=button]");let L=-1;for(let Y=0;Y<X.length;Y++)if(X[Y].tabIndex===0){L=Y;break}if(L<0)return;const J=(L+U+X.length)%X.length;X[L].tabIndex=-1,X[J].tabIndex=0,X[J].focus()}},B=()=>{var V;D(!w);const U=E.current;if(!U)return;const X=(V=g.current)===null||V===void 0?void 0:V.querySelector('[role=button][tabindex="0"]');X&&(X.tabIndex=-1),U.tabIndex=0,U.focus()};return oe.createElement("div",{className:f.basicChildStyle,role:"treeitem","aria-expanded":w,"aria-selected":void 0},oe.createElement("span",{className:N,onClick:B,onKeyDown:P,role:"button","aria-label":O,"aria-expanded":w,"aria-controls":w?C:void 0,ref:E,tabIndex:u===0?0:-1}),(t||t==="")&&(m?oe.createElement("span",{className:f.clickableLabel,onClick:B,onKeyDown:P},WR(t,f.quotesForFieldNames),":"):oe.createElement("span",{className:f.label},WR(t,f.quotesForFieldNames),":")),oe.createElement("span",{className:f.punctuation},a),w?oe.createElement("ul",{id:C,role:"group",className:f.childFieldsContainer},r.map((V,U)=>oe.createElement(X3,{key:V[0]||U,field:V[0],value:V[1],style:f,lastElement:U===M,level:k,shouldExpandNode:p,clickToExpandNode:m,beforeExpandChange:b,outerRef:g}))):oe.createElement("span",{className:f.collapsedContent,onClick:B,onKeyDown:P}),oe.createElement("span",{className:f.punctuation},s),!o&&oe.createElement("span",{className:f.punctuation},","))}function Zve(e){let{field:t,openBracket:n,closeBracket:r,lastElement:o,style:a}=e;return oe.createElement("div",{className:a.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&oe.createElement("span",{className:a.label},WR(t,a.quotesForFieldNames),":"),oe.createElement("span",{className:a.punctuation},n),oe.createElement("span",{className:a.punctuation},r),!o&&oe.createElement("span",{className:a.punctuation},","))}function Jve(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:a,clickToExpandNode:s,level:u,outerRef:f,beforeExpandChange:p}=e;return qW({field:t,value:n,lastElement:o||!1,level:u,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:a,clickToExpandNode:s,data:Object.keys(n).map(m=>[m,n[m]]),outerRef:f,beforeExpandChange:p})}function Kve(e){let{field:t,value:n,style:r,lastElement:o,level:a,shouldExpandNode:s,clickToExpandNode:u,outerRef:f,beforeExpandChange:p}=e;return qW({field:t,value:n,lastElement:o||!1,level:a,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:s,clickToExpandNode:u,data:n.map(m=>[void 0,m]),outerRef:f,beforeExpandChange:p})}function Qve(e){let{field:t,value:n,style:r,lastElement:o}=e,a,s=r.otherValue;return n===null?(a="null",s=r.nullValue):n===void 0?(a="undefined",s=r.undefinedValue):qve(n)?(a=Wve(n,!r.noQuotesForStringValues,r.stringifyStringValues),s=r.stringValue):Hve(n)?(a=n?"true":"false",s=r.booleanValue):Gve(n)?(a=n.toString(),s=r.numberValue):Yve(n)?(a=`${n.toString()}n`,s=r.numberValue):HW(n)?a=n.toISOString():YW(n)?a="function() { }":a=n.toString(),oe.createElement("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&oe.createElement("span",{className:r.label},WR(t,r.quotesForFieldNames),":"),oe.createElement("span",{className:s},a),!o&&oe.createElement("span",{className:r.punctuation},","))}function X3(e){const t=e.value;return Xve(t)?oe.createElement(Kve,Object.assign({},e)):GW(t)&&!HW(t)&&!YW(t)?oe.createElement(Jve,Object.assign({},e)):oe.createElement(Qve,Object.assign({},e))}var ir={"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 XW={collapseJson:"collapse JSON",expandJson:"expand JSON"},VD={container:ir["container-light"],basicChildStyle:ir["basic-element-style"],childFieldsContainer:ir["child-fields-container"],label:ir["label-light"],clickableLabel:ir["clickable-label-light"],nullValue:ir["value-null-light"],undefinedValue:ir["value-undefined-light"],stringValue:ir["value-string-light"],booleanValue:ir["value-boolean-light"],numberValue:ir["value-number-light"],otherValue:ir["value-other-light"],punctuation:ir["punctuation-light"],collapseIcon:ir["collapse-icon-light"],expandIcon:ir["expand-icon-light"],collapsedContent:ir["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:XW,stringifyStringValues:!1},e1e={container:ir["container-dark"],basicChildStyle:ir["basic-element-style"],childFieldsContainer:ir["child-fields-container"],label:ir["label-dark"],clickableLabel:ir["clickable-label-dark"],nullValue:ir["value-null-dark"],undefinedValue:ir["value-undefined-dark"],stringValue:ir["value-string-dark"],booleanValue:ir["value-boolean-dark"],numberValue:ir["value-number-dark"],otherValue:ir["value-other-dark"],punctuation:ir["punctuation-dark"],collapseIcon:ir["collapse-icon-dark"],expandIcon:ir["expand-icon-dark"],collapsedContent:ir["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:XW,stringifyStringValues:!1},t1e=()=>!0,n1e=e=>e<1,r1e=e=>{let{data:t,style:n=VD,shouldExpandNode:r=t1e,clickToExpandNode:o=!1,beforeExpandChange:a,compactTopLevel:s,...u}=e;const f=oe.useRef(null);return oe.createElement("div",Object.assign({"aria-label":"JSON view"},u,{className:n.container,ref:f,role:"tree"}),s&&GW(t)?Object.entries(t).map(p=>{let[m,g]=p;return oe.createElement(X3,{key:m,field:m,value:g,style:{...VD,...n},lastElement:!0,level:1,shouldExpandNode:r,clickToExpandNode:o,beforeExpandChange:a,outerRef:f})}):oe.createElement(X3,{value:t,style:{...VD,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:o,outerRef:f,beforeExpandChange:a}))};function o1e(e){for(const t in e)if(Object.hasOwn(e,t))return!1;return!0}function i1e(e){if(e==null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype?!1:o1e(e)}const a1e=({data:e,className:t="json-display"})=>A.jsx("div",{className:t,children:A.jsx(r1e,{data:i1e(e)?"":e,style:e1e,shouldExpandNode:n1e})});function s1e(e,t,n={}){const{maxFontSize:r=100,minFontSize:o=6,decrementFactor:a=.9}=n;if(!e||!t)return;if(a>=1||a<=0)throw new Error("decrementFactor must be between 0 and 1");const s=e.getBoundingClientRect(),u=s.width,f=s.height;let p=r;t.style.whiteSpace="nowrap",t.style.display="inline-block",t.style.fontSize=p+"px";let m=t.getBoundingClientRect();for(;(m.width>u||m.height>f)&&p>o;)p*=a,t.style.fontSize=p+"px",m=t.getBoundingClientRect()}function l1e(e={n:0,elapsed:0,ascii:!1,unit:"it",unit_scale:!1,unit_divisor:1e3}){let t=e.total??null;const{n=0,unit_scale:r=!1,elapsed:o=0,unit:a="it",unit_divisor:s=1e3,prefix:u="",rate:f=void 0,postfix:p=null,initial:m=0}=e;t!==null&&n>=t+.5&&(t=null);let g=n,b=t,S=f;r&&r!==!0&&r!==1&&(t!==null&&(b=t*r),g=n*r,f!==void 0&&(S=f*r));const w=P6(o);S===void 0&&o>0&&(S=(g-m)/o);const x=S?1/S:void 0,[E,C]=S?MA(S,s):[void 0,""],[N,O]=x?MA(x,1e3):[void 0,""],k=(E||"?")+`${C}${a}/s`,M=N?`${N}${O}s/`+a:"?",D=x&&x>1?M:k,P=r?MA(g,s).join(""):g.toString(),B=r&&b!==null?MA(b,s).join(""):b?.toString()??"?",V=S&&b!==null?(b-g)/S:0,U=S?P6(V):"?",X=u?`${u}: `:"";if(t!==null){const L=g/t*100,J=` ${P}/${B} [${w} < ${U}, ${D}${p??""}]`;return`${X}${L.toFixed(0)}%${J}`}return`${X}${P}${a} [${w}, ${D}${p??""}]`}function P6(e){const t=Math.floor(e/60),n=Math.floor(e%60);return`${t}:${n.toString().padStart(2,"0")}`}function MA(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 u1e=({state:e,className:t="reacttqdm",...n})=>{const r=oe.useRef(null),o=oe.useRef(null);oe.useEffect(()=>{const s=()=>{!r.current||!o.current||s1e(r.current,o.current,{maxFontSize:12,decrementFactor:.9})};return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}},[e]);const a=e.total?(e.n??0)/e.total*100:0;return A.jsx("div",{ref:r,className:t,...n,children:A.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[A.jsx("div",{className:t+"-bar",style:{position:"absolute",width:"100%",height:"100%",overflow:"hidden"},children:A.jsx("div",{className:t+"-progress",style:{width:`${a}%`,height:"100%"}})}),A.jsx("div",{className:t+"-text",ref:o,children:l1e(e)})]})})};var IA={};var z6;function c1e(){if(z6)return IA;z6=1;var e=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,t=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,n=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/\\([\u000b\u0020-\u00ff])/g,o=/([\\"])/g,a=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;IA.format=s,IA.parse=u;function s(g){if(!g||typeof g!="object")throw new TypeError("argument obj is required");var b=g.parameters,S=g.type;if(!S||!a.test(S))throw new TypeError("invalid type");var w=S;if(b&&typeof b=="object")for(var x,E=Object.keys(b).sort(),C=0;C<E.length;C++){if(x=E[C],!n.test(x))throw new TypeError("invalid parameter name");w+="; "+x+"="+p(b[x])}return w}function u(g){if(!g)throw new TypeError("argument string is required");var b=typeof g=="object"?f(g):g;if(typeof b!="string")throw new TypeError("argument string is required to be a string");var S=b.indexOf(";"),w=S!==-1?b.slice(0,S).trim():b.trim();if(!a.test(w))throw new TypeError("invalid media type");var x=new m(w.toLowerCase());if(S!==-1){var E,C,N;for(e.lastIndex=S;C=e.exec(b);){if(C.index!==S)throw new TypeError("invalid parameter format");S+=C[0].length,E=C[1].toLowerCase(),N=C[2],N.charCodeAt(0)===34&&(N=N.slice(1,-1),N.indexOf("\\")!==-1&&(N=N.replace(r,"$1"))),x.parameters[E]=N}if(S!==b.length)throw new TypeError("invalid parameter format")}return x}function f(g){var b;if(typeof g.getHeader=="function"?b=g.getHeader("content-type"):typeof g.headers=="object"&&(b=g.headers&&g.headers["content-type"]),typeof b!="string")throw new TypeError("content-type header is missing from object");return b}function p(g){var b=String(g);if(n.test(b))return b;if(b.length>0&&!t.test(b))throw new TypeError("invalid parameter value");return'"'+b.replace(o,"\\$1")+'"'}function m(g){this.parameters=Object.create(null),this.type=g}return IA}var f1e=c1e(),r1=new Map,WW=function(t){return t.cloneNode(!0)},$6=function(){return window.location.protocol==="file:"},ZW=function(t,n,r){var o=new XMLHttpRequest;o.onreadystatechange=function(){try{if(!/\.svg/i.test(t)&&o.readyState===2){var a=o.getResponseHeader("Content-Type");if(!a)throw new Error("Content type not found");var s=f1e.parse(a).type;if(!(s==="image/svg+xml"||s==="text/plain"))throw new Error("Invalid content type: ".concat(s))}if(o.readyState===4){if(o.status===404||o.responseXML===null)throw new Error($6()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+t);if(o.status===200||$6()&&o.status===0)r(null,o);else throw new Error("There was a problem injecting the SVG: "+o.status+" "+o.statusText)}}catch(u){if(o.abort(),u instanceof Error)r(u,o);else throw u}},o.open("GET",t),o.withCredentials=n,o.overrideMimeType&&o.overrideMimeType("text/xml"),o.send()},hm={},F6=function(t,n){hm[t]=hm[t]||[],hm[t].push(n)},d1e=function(t){for(var n=function(s,u){setTimeout(function(){if(Array.isArray(hm[t])){var f=r1.get(t),p=hm[t][s];f instanceof SVGSVGElement&&p(null,WW(f)),f instanceof Error&&p(f),s===hm[t].length-1&&delete hm[t]}},0)},r=0,o=hm[t].length;r<o;r++)n(r)},p1e=function(t,n,r){if(r1.has(t)){var o=r1.get(t);if(o===void 0){F6(t,r);return}if(o instanceof SVGSVGElement){r(null,WW(o));return}}r1.set(t,void 0),F6(t,r),ZW(t,n,function(a,s){var u;a?r1.set(t,a):((u=s.responseXML)===null||u===void 0?void 0:u.documentElement)instanceof SVGSVGElement&&r1.set(t,s.responseXML.documentElement),d1e(t)})},h1e=function(t,n,r){ZW(t,n,function(o,a){var s;o?r(o):((s=a.responseXML)===null||s===void 0?void 0:s.documentElement)instanceof SVGSVGElement&&r(null,a.responseXML.documentElement)})},m1e=0,g1e=function(){return++m1e},Hc=[],L6={},y1e="http://www.w3.org/2000/svg",UD="http://www.w3.org/1999/xlink",B6=function(t,n,r,o,a,s,u){var f=t.getAttribute("data-src")||t.getAttribute("src");if(!f){u(new Error("Invalid data-src or src attribute"));return}if(Hc.indexOf(t)!==-1){Hc.splice(Hc.indexOf(t),1),t=null;return}Hc.push(t),t.setAttribute("src","");var p=o?p1e:h1e;p(f,a,function(m,g){if(!g){Hc.splice(Hc.indexOf(t),1),t=null,u(m);return}var b=t.getAttribute("id");b&&g.setAttribute("id",b);var S=t.getAttribute("title");S&&g.setAttribute("title",S);var w=t.getAttribute("width");w&&g.setAttribute("width",w);var x=t.getAttribute("height");x&&g.setAttribute("height",x);var E=Array.from(new Set(eR(eR(eR([],(g.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(t.getAttribute("class")||"").split(" "),!0))).join(" ").trim();g.setAttribute("class",E);var C=t.getAttribute("style");C&&g.setAttribute("style",C),g.setAttribute("data-src",f);var N=[].filter.call(t.attributes,function(Q){return/^data-\w[\w-]*$/.test(Q.name)});if(Array.prototype.forEach.call(N,function(Q){Q.name&&Q.value&&g.setAttribute(Q.name,Q.value)}),r){var O={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},k,M,D,P,B;Object.keys(O).forEach(function(Q){k=Q,D=O[Q],M=g.querySelectorAll(k+"[id]");for(var ae=function(Z,K){P=M[Z].id,B=P+"-"+g1e();var se;Array.prototype.forEach.call(D,function(be){se=g.querySelectorAll("["+be+'*="'+P+'"]');for(var me=0,De=se.length;me<De;me++){var Fe=se[me].getAttribute(be);Fe&&!Fe.match(new RegExp('url\\("?#'+P+'"?\\)'))||se[me].setAttribute(be,"url(#"+B+")")}});for(var de=g.querySelectorAll("[*|href]"),pe=[],he=0,we=de.length;he<we;he++){var _e=de[he].getAttributeNS(UD,"href");_e&&_e.toString()==="#"+M[Z].id&&pe.push(de[he])}for(var ue=0,fe=pe.length;ue<fe;ue++)pe[ue].setAttributeNS(UD,"href","#"+B);M[Z].id=B},q=0,W=M.length;q<W;q++)ae(q)})}g.removeAttribute("xmlns:a");for(var V=g.querySelectorAll("script"),U=[],X,L,J=0,Y=V.length;J<Y;J++)L=V[J].getAttribute("type"),(!L||L==="application/ecmascript"||L==="application/javascript"||L==="text/javascript")&&(X=V[J].innerText||V[J].textContent,X&&U.push(X),g.removeChild(V[J]));if(U.length>0&&(n==="always"||n==="once"&&!L6[f])){for(var ee=0,H=U.length;ee<H;ee++)new Function(U[ee])(window);L6[f]=!0}var ne=g.querySelectorAll("style");if(Array.prototype.forEach.call(ne,function(Q){Q.textContent+=""}),g.setAttribute("xmlns",y1e),g.setAttribute("xmlns:xlink",UD),s(g),!t.parentNode){Hc.splice(Hc.indexOf(t),1),t=null,u(new Error("Parent node is null"));return}t.parentNode.replaceChild(g,t),Hc.splice(Hc.indexOf(t),1),t=null,u(null,g)})},b1e=function(t,n){var r=n===void 0?{}:n,o=r.afterAll,a=o===void 0?function(){}:o,s=r.afterEach,u=s===void 0?function(){}:s,f=r.beforeEach,p=f===void 0?function(){}:f,m=r.cacheRequests,g=m===void 0?!0:m,b=r.evalScripts,S=b===void 0?"never":b,w=r.httpRequestWithCredentials,x=w===void 0?!1:w,E=r.renumerateIRIElements,C=E===void 0?!0:E;if(t&&"length"in t)for(var N=0,O=0,k=t.length;O<k;O++)B6(t[O],S,C,g,x,p,function(M,D){u(M,D),t&&"length"in t&&t.length===++N&&a(N)});else t?B6(t,S,C,g,x,p,function(M,D){u(M,D),a(1),t=null}):a(0)},v1e=function(t){var n=t?.ownerDocument||document;return n.defaultView||window},S1e=function(t,n){for(var r in t)if(!(r in n))return!0;for(var o in n)if(t[o]!==n[o])return!0;return!1},x1e=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],DA="http://www.w3.org/2000/svg",V6="http://www.w3.org/1999/xlink",hP=(function(e){function t(){for(var r,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(u){r.reactWrapper=u},r}R5(t,e);var n=t.prototype;return n.renderSVG=function(){var o=this;if(this.reactWrapper instanceof v1e(this.reactWrapper).Node){var a=this.props,s=a.desc,u=a.evalScripts,f=a.httpRequestWithCredentials,p=a.renumerateIRIElements,m=a.src,g=a.title,b=a.useRequestCache,S=this.props.onError,w=this.props.beforeInjection,x=this.props.afterInjection,E=this.props.wrapper,C,N;E==="svg"?(C=document.createElementNS(DA,E),C.setAttribute("xmlns",DA),C.setAttribute("xmlns:xlink",V6),N=document.createElementNS(DA,E)):(C=document.createElement(E),N=document.createElement(E)),C.appendChild(N),N.dataset.src=m,this.nonReactWrapper=this.reactWrapper.appendChild(C);var O=function(P){if(o.removeSVG(),!o._isMounted){S(P);return}o.setState(function(){return{hasError:!0,isLoading:!1}},function(){S(P)})},k=function(P,B){if(P){O(P);return}o._isMounted&&o.setState(function(){return{isLoading:!1}},function(){try{x(B)}catch(V){O(V)}})},M=function(P){if(P.setAttribute("role","img"),s){var B=P.querySelector(":scope > desc");B&&P.removeChild(B);var V=document.createElement("desc");V.innerHTML=s,P.prepend(V)}if(g){var U=P.querySelector(":scope > title");U&&P.removeChild(U);var X=document.createElement("title");X.innerHTML=g,P.prepend(X)}try{w(P)}catch(L){O(L)}};b1e(N,{afterEach:k,beforeEach:M,cacheRequests:b,evalScripts:u,httpRequestWithCredentials:f,renumerateIRIElements:p})}},n.removeSVG=function(){var o;(o=this.nonReactWrapper)!=null&&o.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(o){var a=this;S1e(Ct({},o),this.props)&&this.setState(function(){return a.initialState},function(){a.removeSVG(),a.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var o=this.props;o.afterInjection,o.beforeInjection,o.desc,o.evalScripts;var a=o.fallback;o.httpRequestWithCredentials;var s=o.loading;o.renumerateIRIElements,o.src,o.title,o.useRequestCache;var u=o.wrapper,f=nk(o,x1e),p=u;return F.createElement(p,Ct({},f,{ref:this.refCallback},u==="svg"?{xmlns:DA,xmlnsXlink:V6}:{}),this.state.isLoading&&s&&F.createElement(s,null),this.state.hasError&&a&&F.createElement(a,null))},t})(F.Component);hP.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};hP.propTypes={afterInjection:Vo.func,beforeInjection:Vo.func,desc:Vo.string,evalScripts:Vo.oneOf(["always","once","never"]),fallback:Vo.oneOfType([Vo.func,Vo.object,Vo.string]),httpRequestWithCredentials:Vo.bool,loading:Vo.oneOfType([Vo.func,Vo.object,Vo.string]),onError:Vo.func,renumerateIRIElements:Vo.bool,src:Vo.string.isRequired,title:Vo.string,useRequestCache:Vo.bool,wrapper:Vo.oneOf(["div","span","svg"])};const mP=({text:e="No image data provided"})=>A.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100px",border:"1px dashed #ccc",color:"#666"},children:e}),w1e=F.memo(({value:e,format:t="jpeg",alt:n="Base64 image",onError:r,onLoad:o,...a})=>{const[s,u]=F.useState(!1),[f,p]=F.useState(!0),m=F.useRef(null),g=F.useMemo(()=>{if(typeof e=="string")return e;if(e&&typeof e=="object"&&"data"in e){const x=e.data;if(x instanceof ArrayBuffer){const E=new Uint8Array(x);let C="";for(let N=0;N<E.byteLength;N++)C+=String.fromCharCode(E[N]);return btoa(C)}}return""},[e]),b=F.useMemo(()=>g?`data:image/${t};base64,${g}`:"",[g,t]),S=F.useCallback(x=>{u(!0),p(!1),r?.(x)},[r]),w=F.useCallback(()=>{p(!1),u(!1),o?.()},[o]);return F.useEffect(()=>{const x=m.current;if(x)return x.addEventListener("error",S),x.addEventListener("load",w),()=>{x.removeEventListener("error",S),x.removeEventListener("load",w)}},[S,w,e]),F.useEffect(()=>{u(!1),p(!0)},[e]),g?s?A.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100px",border:"1px dashed #ccc",color:"#666"},children:"Failed to load base64 image"}):A.jsx("img",{ref:m,src:b,alt:n,className:`base64-image-renderer image-renderer ${a.className||""} ${f?" loading":""}`,...a}):A.jsx(mP,{})}),E1e=F.memo(({value:e,alt:t="SVG image",onError:n,onLoad:r,...o})=>{const[a,s]=F.useState(!1),u=F.useMemo(()=>{if(!e)return"";try{return`data:image/svg+xml;base64,${btoa(e)}`}catch(p){return console.error("Failed to encode SVG to base64:",p),""}},[e]);F.useEffect(()=>{s(!1)},[e]);const f=F.useCallback(p=>{s(!0),n?.(p)},[n]);return e?a||!u?A.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100px",border:"1px dashed #ccc",color:"#666"},children:"Failed to load SVG"}):A.jsx(hP,{src:u,className:`svg-renderer ${o.className||""}`,style:{maxWidth:"100%",maxHeight:"100%",...o.style},beforeInjection:p=>{p.classList.add("svg-renderer"),p.setAttribute("style","max-width: 100%; max-height: 100%;"),p.setAttribute("width","100%"),p.setAttribute("height","100%"),p.setAttribute("aria-label",t);const m=()=>{s(!1),r?.()},g=b=>{s(!0),n?.(b)};try{p.addEventListener("load",m),p.addEventListener("error",g)}catch{m()}},onError:f}):A.jsx(mP,{})}),_1e=F.memo(({src:e,alt:t="Streaming image",onError:n,onLoad:r,...o})=>{const a=F.useRef(null),[s,u]=F.useState(!1),[f,p]=F.useState(!0);F.useEffect(()=>{a.current&&e&&(p(!0),u(!1),a.current.src=e)},[e]);const m=F.useCallback(b=>{u(!0),p(!1),n?.(b)},[n]),g=F.useCallback(()=>{p(!1),u(!1),r?.()},[r]);return F.useEffect(()=>{const b=a.current;if(b)return b.addEventListener("error",m),b.addEventListener("load",g),()=>{b.removeEventListener("error",m),b.removeEventListener("load",g)}},[m,g]),s?A.jsx(mP,{text:"Failed to load image"}):A.jsx("img",{ref:a,className:`streaming-image image-renderer ${o.className||""} ${f?" loading":""}`,alt:t,...o})});function xk(e){const t=e+"CollectionProvider",[n,r]=Cf(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=x=>{const{scope:E,children:C}=x,N=oe.useRef(null),O=oe.useRef(new Map).current;return A.jsx(o,{scope:E,itemMap:O,collectionRef:N,children:C})};s.displayName=t;const u=e+"CollectionSlot",f=A1(u),p=oe.forwardRef((x,E)=>{const{scope:C,children:N}=x,O=a(u,C),k=Tr(E,O.collectionRef);return A.jsx(f,{ref:k,children:N})});p.displayName=u;const m=e+"CollectionItemSlot",g="data-radix-collection-item",b=A1(m),S=oe.forwardRef((x,E)=>{const{scope:C,children:N,...O}=x,k=oe.useRef(null),M=Tr(E,k),D=a(m,C);return oe.useEffect(()=>(D.itemMap.set(k,{ref:k,...O}),()=>{D.itemMap.delete(k)})),A.jsx(b,{[g]:"",ref:M,children:N})});S.displayName=m;function w(x){const E=a(e+"CollectionConsumer",x);return oe.useCallback(()=>{const N=E.collectionRef.current;if(!N)return[];const O=Array.from(N.querySelectorAll(`[${g}]`));return Array.from(E.itemMap.values()).sort((D,P)=>O.indexOf(D.ref.current)-O.indexOf(P.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:s,Slot:p,ItemSlot:S},w,r]}var C1e=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),T1e="VisuallyHidden",gP=F.forwardRef((e,t)=>A.jsx(gn.span,{...e,ref:t,style:{...C1e,...e.style}}));gP.displayName=T1e;var yP="ToastProvider",[bP,A1e,O1e]=xk("Toast"),[JW]=Cf("Toast",[O1e]),[R1e,wk]=JW(yP),KW=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:s}=e,[u,f]=F.useState(null),[p,m]=F.useState(0),g=F.useRef(!1),b=F.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${yP}\`. Expected non-empty \`string\`.`),A.jsx(bP.Provider,{scope:t,children:A.jsx(R1e,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:a,toastCount:p,viewport:u,onViewportChange:f,onToastAdd:F.useCallback(()=>m(S=>S+1),[]),onToastRemove:F.useCallback(()=>m(S=>S-1),[]),isFocusedToastEscapeKeyDownRef:g,isClosePausedRef:b,children:s})})};KW.displayName=yP;var QW="ToastViewport",N1e=["F8"],W3="toast.viewportPause",Z3="toast.viewportResume",eZ=F.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=N1e,label:o="Notifications ({hotkey})",...a}=e,s=wk(QW,n),u=A1e(n),f=F.useRef(null),p=F.useRef(null),m=F.useRef(null),g=F.useRef(null),b=Tr(t,g,s.onViewportChange),S=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=s.toastCount>0;F.useEffect(()=>{const E=C=>{r.length!==0&&r.every(O=>C[O]||C.code===O)&&g.current?.focus()};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[r]),F.useEffect(()=>{const E=f.current,C=g.current;if(w&&E&&C){const N=()=>{if(!s.isClosePausedRef.current){const D=new CustomEvent(W3);C.dispatchEvent(D),s.isClosePausedRef.current=!0}},O=()=>{if(s.isClosePausedRef.current){const D=new CustomEvent(Z3);C.dispatchEvent(D),s.isClosePausedRef.current=!1}},k=D=>{!E.contains(D.relatedTarget)&&O()},M=()=>{E.contains(document.activeElement)||O()};return E.addEventListener("focusin",N),E.addEventListener("focusout",k),E.addEventListener("pointermove",N),E.addEventListener("pointerleave",M),window.addEventListener("blur",N),window.addEventListener("focus",O),()=>{E.removeEventListener("focusin",N),E.removeEventListener("focusout",k),E.removeEventListener("pointermove",N),E.removeEventListener("pointerleave",M),window.removeEventListener("blur",N),window.removeEventListener("focus",O)}}},[w,s.isClosePausedRef]);const x=F.useCallback(({tabbingDirection:E})=>{const N=u().map(O=>{const k=O.ref.current,M=[k,...U1e(k)];return E==="forwards"?M:M.reverse()});return(E==="forwards"?N.reverse():N).flat()},[u]);return F.useEffect(()=>{const E=g.current;if(E){const C=N=>{const O=N.altKey||N.ctrlKey||N.metaKey;if(N.key==="Tab"&&!O){const M=document.activeElement,D=N.shiftKey;if(N.target===E&&D){p.current?.focus();return}const V=x({tabbingDirection:D?"backwards":"forwards"}),U=V.findIndex(X=>X===M);HD(V.slice(U+1))?N.preventDefault():D?p.current?.focus():m.current?.focus()}};return E.addEventListener("keydown",C),()=>E.removeEventListener("keydown",C)}},[u,x]),A.jsxs(nfe,{ref:f,role:"region","aria-label":o.replace("{hotkey}",S),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&A.jsx(J3,{ref:p,onFocusFromOutsideViewport:()=>{const E=x({tabbingDirection:"forwards"});HD(E)}}),A.jsx(bP.Slot,{scope:n,children:A.jsx(gn.ol,{tabIndex:-1,...a,ref:b})}),w&&A.jsx(J3,{ref:m,onFocusFromOutsideViewport:()=>{const E=x({tabbingDirection:"backwards"});HD(E)}})]})});eZ.displayName=QW;var tZ="ToastFocusProxy",J3=F.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,a=wk(tZ,n);return A.jsx(gP,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{const u=s.relatedTarget;!a.viewport?.contains(u)&&r()}})});J3.displayName=tZ;var pC="Toast",k1e="toast.swipeStart",M1e="toast.swipeMove",I1e="toast.swipeCancel",D1e="toast.swipeEnd",nZ=F.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...s}=e,[u,f]=Pm({prop:r,defaultProp:o??!0,onChange:a,caller:pC});return A.jsx(Zu,{present:n||u,children:A.jsx(z1e,{open:u,...s,ref:t,onClose:()=>f(!1),onPause:ts(e.onPause),onResume:ts(e.onResume),onSwipeStart:ht(e.onSwipeStart,p=>{p.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ht(e.onSwipeMove,p=>{const{x:m,y:g}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","move"),p.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${g}px`)}),onSwipeCancel:ht(e.onSwipeCancel,p=>{p.currentTarget.setAttribute("data-swipe","cancel"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ht(e.onSwipeEnd,p=>{const{x:m,y:g}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","end"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${g}px`),f(!1)})})})});nZ.displayName=pC;var[j1e,P1e]=JW(pC,{onClose(){}}),z1e=F.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:a,onClose:s,onEscapeKeyDown:u,onPause:f,onResume:p,onSwipeStart:m,onSwipeMove:g,onSwipeCancel:b,onSwipeEnd:S,...w}=e,x=wk(pC,n),[E,C]=F.useState(null),N=Tr(t,Y=>C(Y)),O=F.useRef(null),k=F.useRef(null),M=o||x.duration,D=F.useRef(0),P=F.useRef(M),B=F.useRef(0),{onToastAdd:V,onToastRemove:U}=x,X=ts(()=>{E?.contains(document.activeElement)&&x.viewport?.focus(),s()}),L=F.useCallback(Y=>{!Y||Y===1/0||(window.clearTimeout(B.current),D.current=new Date().getTime(),B.current=window.setTimeout(X,Y))},[X]);F.useEffect(()=>{const Y=x.viewport;if(Y){const ee=()=>{L(P.current),p?.()},H=()=>{const ne=new Date().getTime()-D.current;P.current=P.current-ne,window.clearTimeout(B.current),f?.()};return Y.addEventListener(W3,H),Y.addEventListener(Z3,ee),()=>{Y.removeEventListener(W3,H),Y.removeEventListener(Z3,ee)}}},[x.viewport,M,f,p,L]),F.useEffect(()=>{a&&!x.isClosePausedRef.current&&L(M)},[a,M,x.isClosePausedRef,L]),F.useEffect(()=>(V(),()=>U()),[V,U]);const J=F.useMemo(()=>E?uZ(E):null,[E]);return x.viewport?A.jsxs(A.Fragment,{children:[J&&A.jsx($1e,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:J}),A.jsx(j1e,{scope:n,onClose:X,children:W_.createPortal(A.jsx(bP.ItemSlot,{scope:n,children:A.jsx(tfe,{asChild:!0,onEscapeKeyDown:ht(u,()=>{x.isFocusedToastEscapeKeyDownRef.current||X(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:A.jsx(gn.li,{tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":x.swipeDirection,...w,ref:N,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ht(e.onKeyDown,Y=>{Y.key==="Escape"&&(u?.(Y.nativeEvent),Y.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,X()))}),onPointerDown:ht(e.onPointerDown,Y=>{Y.button===0&&(O.current={x:Y.clientX,y:Y.clientY})}),onPointerMove:ht(e.onPointerMove,Y=>{if(!O.current)return;const ee=Y.clientX-O.current.x,H=Y.clientY-O.current.y,ne=!!k.current,Q=["left","right"].includes(x.swipeDirection),ae=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,q=Q?ae(0,ee):0,W=Q?0:ae(0,H),ie=Y.pointerType==="touch"?10:2,Z={x:q,y:W},K={originalEvent:Y,delta:Z};ne?(k.current=Z,jA(M1e,g,K,{discrete:!1})):U6(Z,x.swipeDirection,ie)?(k.current=Z,jA(k1e,m,K,{discrete:!1}),Y.target.setPointerCapture(Y.pointerId)):(Math.abs(ee)>ie||Math.abs(H)>ie)&&(O.current=null)}),onPointerUp:ht(e.onPointerUp,Y=>{const ee=k.current,H=Y.target;if(H.hasPointerCapture(Y.pointerId)&&H.releasePointerCapture(Y.pointerId),k.current=null,O.current=null,ee){const ne=Y.currentTarget,Q={originalEvent:Y,delta:ee};U6(ee,x.swipeDirection,x.swipeThreshold)?jA(D1e,S,Q,{discrete:!0}):jA(I1e,b,Q,{discrete:!0}),ne.addEventListener("click",ae=>ae.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),$1e=e=>{const{__scopeToast:t,children:n,...r}=e,o=wk(pC,t),[a,s]=F.useState(!1),[u,f]=F.useState(!1);return B1e(()=>s(!0)),F.useEffect(()=>{const p=window.setTimeout(()=>f(!0),1e3);return()=>window.clearTimeout(p)},[]),u?null:A.jsx(ik,{asChild:!0,children:A.jsx(gP,{...r,children:a&&A.jsxs(A.Fragment,{children:[o.label," ",n]})})})},F1e="ToastTitle",rZ=F.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return A.jsx(gn.div,{...r,ref:t})});rZ.displayName=F1e;var L1e="ToastDescription",oZ=F.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return A.jsx(gn.div,{...r,ref:t})});oZ.displayName=L1e;var iZ="ToastAction",aZ=F.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?A.jsx(lZ,{altText:n,asChild:!0,children:A.jsx(vP,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${iZ}\`. Expected non-empty \`string\`.`),null)});aZ.displayName=iZ;var sZ="ToastClose",vP=F.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=P1e(sZ,n);return A.jsx(lZ,{asChild:!0,children:A.jsx(gn.button,{type:"button",...r,ref:t,onClick:ht(e.onClick,o.onClose)})})});vP.displayName=sZ;var lZ=F.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return A.jsx(gn.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function uZ(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),V1e(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!o)if(a){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...uZ(r))}}),t}function jA(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?I5(o,a):o.dispatchEvent(a)}var U6=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return t==="left"||t==="right"?a&&r>n:!a&&o>n};function B1e(e=()=>{}){const t=ts(e);lp(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function V1e(e){return e.nodeType===e.ELEMENT_NODE}function U1e(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function HD(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var H1e=KW,G1e=eZ,Y1e=nZ,q1e=rZ,X1e=oZ,W1e=aZ,Z1e=vP;const Di=[];for(let e=0;e<256;++e)Di.push((e+256).toString(16).slice(1));function J1e(e,t=0){return(Di[e[t+0]]+Di[e[t+1]]+Di[e[t+2]]+Di[e[t+3]]+"-"+Di[e[t+4]]+Di[e[t+5]]+"-"+Di[e[t+6]]+Di[e[t+7]]+"-"+Di[e[t+8]]+Di[e[t+9]]+"-"+Di[e[t+10]]+Di[e[t+11]]+Di[e[t+12]]+Di[e[t+13]]+Di[e[t+14]]+Di[e[t+15]]).toLowerCase()}let GD;const K1e=new Uint8Array(16);function Q1e(){if(!GD){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");GD=crypto.getRandomValues.bind(crypto)}return GD(K1e)}const eSe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),H6={randomUUID:eSe};function tSe(e,t,n){e=e||{};const r=e.random??e.rng?.()??Q1e();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,J1e(r)}function SP(e,t,n){return H6.randomUUID&&!e?H6.randomUUID():tSe(e)}const cZ=F.createContext(void 0),fZ=F.createContext(void 0),nSe=350,rSe=({children:e,fixedHeight:t,duration:n=5e3,maxVisible:r=3,...o})=>{const[a,s]=F.useState(new Map),u=F.useRef(new Map),f=F.useRef(null),p=F.useRef(!0),m=F.useCallback(()=>{const C=Array.from(u.current).reverse();if(t){const N=t;C.forEach(([,O],k)=>{if(!O)return;O.setAttribute("data-front",String(k===0)),O.setAttribute("data-hidden",String(k>=r)),O.style.setProperty("--index",String(k)),O.style.setProperty("--height",`${t}px`),O.style.setProperty("--front-height",`${N}px`);const M=t*k;O.style.setProperty("--hover-offset-y",`-${M}px`)})}else{const N=C.map(([,k])=>{if(!k)return 0;const M=k.querySelector(".ToastInner");if(!M)return k.clientHeight;const D=M.style.height;M.style.height="auto";const P=k.clientHeight;return M.style.height=D,P}),O=N[0]||0;C.forEach(([,k],M)=>{if(!k)return;const D=N[M];k.setAttribute("data-front",String(M===0)),k.setAttribute("data-hidden",String(M>=r)),k.style.setProperty("--index",String(M)),k.style.setProperty("--height",`${D}px`),k.style.setProperty("--front-height",`${O}px`);const P=N.slice(0,M).reduce((B,V)=>B+V,0);k.style.setProperty("--hover-offset-y",`-${P}px`)})}},[t,r]),g=F.useCallback(C=>{s(N=>{const O=new Map(N);return O.set(SP(),{...C,duration:C.duration||n,open:!0}),O})},[n]),b=F.useCallback(C=>{p.current&&s(N=>{const O=new Map(N);return O.delete(C),O})},[]),S=F.useCallback(C=>g({...C,status:C.status||"default"}),[g]),w=F.useCallback(C=>g({...C,status:"success"}),[g]),x=F.useCallback(C=>g({...C,status:"error"}),[g]);F.useEffect(()=>(p.current=!0,()=>{p.current=!1}),[]),F.useEffect(()=>{const C=f.current;if(C){const N=()=>{u.current.forEach(M=>{M.setAttribute("data-hovering","true")})},O=M=>{(!C.contains(M.target)||C===M.target)&&u.current.forEach(D=>{D.setAttribute("data-hovering","false")})},k=()=>{u.current.forEach(M=>{M.setAttribute("data-hovering","false")})};return C.addEventListener("pointermove",N),C.addEventListener("pointerleave",k),C.addEventListener("focusin",N),C.addEventListener("focusout",O),()=>{C.removeEventListener("pointermove",N),C.removeEventListener("pointerleave",k),C.removeEventListener("focusin",N),C.removeEventListener("focusout",O)}}},[]);const E=F.useMemo(()=>Object.assign(S,{success:w,error:x}),[S,w,x]);return A.jsx(cZ.Provider,{value:E,children:A.jsx(fZ.Provider,{value:F.useMemo(()=>({toastElementsMapRef:u,sortToasts:m}),[m]),children:A.jsxs(H1e,{...o,children:[e,Array.from(a).map(([C,N])=>A.jsx(aSe,{id:C,toast:N,onOpenChange:O=>{O||(u.current.delete(C),m(),s(k=>{const M=new Map(k),D=M.get(C);return D&&M.set(C,{...D,open:!1}),M}),setTimeout(()=>{b(C)},nSe))}},C)),A.jsx(G1e,{ref:f,className:"ToastViewport",style:t?{"--fixed-toast-height":`${t}px`}:void 0})]})})})},oSe=()=>{const e=F.useContext(cZ);if(e)return e;throw new Error("useToast must be used within Toasts")},iSe=()=>{const e=F.useContext(fZ);if(e)return e;throw new Error("useToastContext must be used within Toasts")},aSe=({onOpenChange:e,toast:t,id:n,...r})=>{const o=F.useRef(null),a=iSe(),{sortToasts:s,toastElementsMapRef:u}=a,f=u.current;return F.useLayoutEffect(()=>(o.current&&(f.set(n,o.current),s()),()=>{f.delete(n),s()}),[n,s,f]),A.jsx(Y1e,{...r,ref:o,type:t.type,duration:t.duration,className:"ToastRoot",onOpenChange:e,open:t.open,children:A.jsxs("div",{className:"ToastInner","data-status":t.status,children:[A.jsx(sSe,{status:t.status}),t.title&&A.jsx(q1e,{className:"ToastTitle",children:t.title}),A.jsx(X1e,{className:"ToastDescription",children:t.description}),t.action&&A.jsx(W1e,{className:"ToastAction Button small green",altText:t.action.altText,onClick:t.action.onClick,asChild:!0,children:A.jsx("button",{children:t.action.label})}),A.jsx(Z1e,{"aria-label":"Close",className:"ToastClose",children:A.jsx(hk,{style:{fontSize:"12px"}})})]})})},sSe=({status:e})=>e!=="default"&&e?A.jsxs("div",{style:{gridArea:"icon",alignSelf:"start"},children:[e==="success"&&A.jsx(bge,{style:{color:"#61d345",fontSize:"20px"}}),e==="error"&&A.jsx(vge,{style:{color:"#ff4b4b",fontSize:"20px"}})]}):null,lSe={},G6=e=>{let t;const n=new Set,r=(m,g)=>{const b=typeof m=="function"?m(t):m;if(!Object.is(b,t)){const S=t;t=g??(typeof b!="object"||b===null)?b:Object.assign({},t,b),n.forEach(w=>w(t,S))}},o=()=>t,f={setState:r,getState:o,getInitialState:()=>p,subscribe:m=>(n.add(m),()=>n.delete(m)),destroy:()=>{(lSe?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},p=t=e(r,o,f);return f},dZ=e=>e?G6(e):G6;var PA={exports:{}},YD={},zA={exports:{}},qD={};var Y6;function uSe(){if(Y6)return qD;Y6=1;var e=oe;function t(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function u(g,b){var S=b(),w=r({inst:{value:S,getSnapshot:b}}),x=w[0].inst,E=w[1];return a(function(){x.value=S,x.getSnapshot=b,f(x)&&E({inst:x})},[g,S,b]),o(function(){return f(x)&&E({inst:x}),g(function(){f(x)&&E({inst:x})})},[g]),s(S),S}function f(g){var b=g.getSnapshot;g=g.value;try{var S=b();return!n(g,S)}catch{return!0}}function p(g,b){return b()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:u;return qD.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,qD}var XD={};var q6;function cSe(){return q6||(q6=1,process.env.NODE_ENV!=="production"&&(function(){function e(S,w){return S===w&&(S!==0||1/S===1/w)||S!==S&&w!==w}function t(S,w){m||o.startTransition===void 0||(m=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var x=w();if(!g){var E=w();a(x,E)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),g=!0)}E=s({inst:{value:x,getSnapshot:w}});var C=E[0].inst,N=E[1];return f(function(){C.value=x,C.getSnapshot=w,n(C)&&N({inst:C})},[S,x,w]),u(function(){return n(C)&&N({inst:C}),S(function(){n(C)&&N({inst:C})})},[S]),p(x),x}function n(S){var w=S.getSnapshot;S=S.value;try{var x=w();return!a(S,x)}catch{return!0}}function r(S,w){return w()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=oe,a=typeof Object.is=="function"?Object.is:e,s=o.useState,u=o.useEffect,f=o.useLayoutEffect,p=o.useDebugValue,m=!1,g=!1,b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;XD.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:b,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),XD}var X6;function pZ(){return X6||(X6=1,process.env.NODE_ENV==="production"?zA.exports=uSe():zA.exports=cSe()),zA.exports}var W6;function fSe(){if(W6)return YD;W6=1;var e=oe,t=pZ();function n(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,a=e.useRef,s=e.useEffect,u=e.useMemo,f=e.useDebugValue;return YD.useSyncExternalStoreWithSelector=function(p,m,g,b,S){var w=a(null);if(w.current===null){var x={hasValue:!1,value:null};w.current=x}else x=w.current;w=u(function(){function C(D){if(!N){if(N=!0,O=D,D=b(D),S!==void 0&&x.hasValue){var P=x.value;if(S(P,D))return k=P}return k=D}if(P=k,r(O,D))return P;var B=b(D);return S!==void 0&&S(P,B)?(O=D,P):(O=D,k=B)}var N=!1,O,k,M=g===void 0?null:g;return[function(){return C(m())},M===null?void 0:function(){return C(M())}]},[m,g,b,S]);var E=o(p,w[0],w[1]);return s(function(){x.hasValue=!0,x.value=E},[E]),f(E),E},YD}var WD={};var Z6;function dSe(){return Z6||(Z6=1,process.env.NODE_ENV!=="production"&&(function(){function e(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=oe,n=pZ(),r=typeof Object.is=="function"?Object.is:e,o=n.useSyncExternalStore,a=t.useRef,s=t.useEffect,u=t.useMemo,f=t.useDebugValue;WD.useSyncExternalStoreWithSelector=function(p,m,g,b,S){var w=a(null);if(w.current===null){var x={hasValue:!1,value:null};w.current=x}else x=w.current;w=u(function(){function C(D){if(!N){if(N=!0,O=D,D=b(D),S!==void 0&&x.hasValue){var P=x.value;if(S(P,D))return k=P}return k=D}if(P=k,r(O,D))return P;var B=b(D);return S!==void 0&&S(P,B)?(O=D,P):(O=D,k=B)}var N=!1,O,k,M=g===void 0?null:g;return[function(){return C(m())},M===null?void 0:function(){return C(M())}]},[m,g,b,S]);var E=o(p,w[0],w[1]);return s(function(){x.hasValue=!0,x.value=E},[E]),f(E),E},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),WD}var J6;function pSe(){return J6||(J6=1,process.env.NODE_ENV==="production"?PA.exports=fSe():PA.exports=dSe()),PA.exports}var hSe=pSe();const hZ=yp(hSe),mZ={},{useDebugValue:mSe}=oe,{useSyncExternalStoreWithSelector:gSe}=hZ;let K6=!1;const ySe=e=>e;function bSe(e,t=ySe,n){(mZ?"production":void 0)!=="production"&&n&&!K6&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),K6=!0);const r=gSe(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return mSe(r),r}const Q6=e=>{(mZ?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?dZ(e):e,n=(r,o)=>bSe(t,r,o);return Object.assign(n,t),n},Vl=e=>e?Q6(e):Q6;class Sp{constructor(t){this.context=t}get communicationManager(){return this.context.worker.getCommunicationManager()}get eventManager(){return this.context.worker.getEventManager()}get hookManager(){return this.context.worker.getHookManager()}get nodeManager(){return this.context.worker.getNodeManager()}get syncManager(){return this.context.worker.getSyncManager()}get connectionHealthManager(){return this.context.worker.getConnectionHealthManager()}get edgeManager(){return this.context.worker.getEdgeManager()}get groupManager(){return this.context.worker.getGroupManager()}get libraryManager(){return this.context.worker.getLibraryManager()}}const $A=2e3;class vSe extends Sp{constructor(t){super(t),this._responsive=!1,this._last_pong=0,this._last_pong=Date.now()-$A*100}start(){this.stop(),this.pingInterval=setInterval(()=>{this.context.worker.is_open&&this.context.worker.send({type:"ping"})},$A),this.responsivenessCheckInterval=setInterval(()=>{this._responsive=Date.now()-this._last_pong<=$A*3},$A*2)}stop(){this.pingInterval&&clearInterval(this.pingInterval),this.responsivenessCheckInterval&&clearInterval(this.responsivenessCheckInterval)}receivePong(){this._last_pong=Date.now(),this._responsive=!0}isResponsive(){return this._responsive}}const eV=(e,t)=>{e.properties=e.properties||{},t.pos&&(e.properties["frontend:pos"]=t.pos),t.size&&(e.properties["frontend:size"]=t.size),t.collapsed!==void 0&&(e.properties["frontend:collapsed"]=!!t.collapsed)},tV=2e3,nV=2e3;class SSe extends Sp{constructor(t){super(t),this._local_nodeupdates=new Map,this._local_groupupdates=new Map,this._after_next_sync=[],this.on_sync_complete=t.on_sync_complete||(async()=>{})}start(){this._nodeupdatetimer=setTimeout(()=>{this.sync_local_node_updates()},tV),this._groupupdatetimer=setTimeout(()=>{this.sync_local_group_updates()},nV)}stop(){this._nodeupdatetimer&&clearTimeout(this._nodeupdatetimer),this._groupupdatetimer&&clearTimeout(this._groupupdatetimer)}async stepwise_fullsync(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;await this.sync_lib(),await this.sync_external_worker(),await this.sync_funcnodes_plugins(),await this.sync_nodespace(),await this.sync_view_state(),await this.on_sync_complete(this.context.worker);const t=this._after_next_sync.splice(0);for(const n of t)await n(this.context.worker),this._after_next_sync.includes(n)&&this._after_next_sync.splice(this._after_next_sync.indexOf(n),1)}add_after_next_sync(t){this._after_next_sync.push(t)}remove_after_next_sync(t){this._after_next_sync=this._after_next_sync.filter(n=>n!==t)}async sync_lib(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;const t=await this.communicationManager._send_cmd({cmd:"get_library",wait_for_response:!0,retries:2,unique:!0});this.context.worker._zustand.lib.libstate.getState().set({lib:t})}async sync_external_worker(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;const t=await this.communicationManager._send_cmd({cmd:"get_worker_dependencies",wait_for_response:!0,unique:!0});this.context.worker._zustand.lib.libstate.getState().set({external_worker:t})}async sync_funcnodes_plugins(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;const t=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"get_plugin_keys",wait_for_response:!0,unique:!0,kwargs:{type:"react"}});for(const n of t){const r=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"get_plugin",wait_for_response:!0,kwargs:{key:n,type:"react"},unique:!0});this.context.worker._zustand.add_packed_plugin(n,r)}}async sync_view_state(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;const t=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"view_state",wait_for_response:!0,unique:!0});t.renderoptions&&this.context.worker._zustand.update_render_options(t.renderoptions);const n=t.nodes;if(n)for(const r in n){const o={};eV(o,n[r]),this.context.worker._zustand.on_node_action({type:"update",node:o,id:r,from_remote:!0})}}async sync_nodespace(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;const t=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"get_nodes",kwargs:{with_frontend:!0},wait_for_response:!0,unique:!0});for(const o of t)this.eventManager._receive_node_added(o);const n=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"get_edges",wait_for_response:!0,unique:!0});for(const o of n)this.eventManager._receive_edge_added(...o);const r=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"get_groups",kwargs:{},wait_for_response:!0,unique:!0});this.eventManager._receive_groups(r)}async fullsync(){if(!this.context.worker._zustand||!this.context.worker.is_open)return;let t;for(;;)try{t=await this.communicationManager._send_cmd({cmd:"full_state",unique:!0});break}catch(o){o instanceof Error?this.context.worker._zustand.logger.error("Error in fullsync",o):this.context.worker._zustand.logger.error("Error in fullsync",new Error(JSON.stringify(o)))}this.context.worker._zustand.logger.debug("Full state",t),this.context.worker._zustand.lib.libstate.getState().set({lib:t.backend.lib,external_worker:t.worker_dependencies}),t.view.renderoptions&&this.context.worker._zustand.update_render_options(t.view.renderoptions);const n=t.view.nodes;for(const o of t.backend.nodes){const a=n[o.id];a!==void 0&&eV(o,a),this.eventManager._receive_node_added(o)}for(const o of t.backend.edges)this.eventManager._receive_edge_added(...o);const r=t.backend.groups;r&&this.eventManager._receive_groups(r)}sync_local_node_updates(){clearTimeout(this._nodeupdatetimer),this._local_nodeupdates.forEach(async(t,n)=>{const r=await this.context.worker.getCommunicationManager()._send_cmd({cmd:"update_node",kwargs:{nid:n,data:t},wait_for_response:!0});this.context.worker._zustand&&Object.keys(r).length>0&&this.context.worker._zustand.on_node_action({type:"update",node:r,id:n,from_remote:!0})}),this._local_nodeupdates.clear(),this._nodeupdatetimer=setTimeout(()=>{this.sync_local_node_updates()},tV)}sync_local_group_updates(){clearTimeout(this._groupupdatetimer),this._local_groupupdates.forEach(async(t,n)=>{const r=await this.communicationManager._send_cmd({cmd:"update_group",kwargs:{gid:n,data:t},wait_for_response:!0});this.context.worker._zustand&&this.context.worker._zustand.on_group_action({type:"update",group:r,id:n,from_remote:!0})}),this._local_groupupdates.clear(),this._groupupdatetimer=setTimeout(()=>{this.sync_local_group_updates()},nV)}locally_update_node(t){const n=this._local_nodeupdates.get(t.id);if(n){const{new_obj:r,change:o}=ap(n,t.node);o&&this._local_nodeupdates.set(t.id,r)}else this._local_nodeupdates.set(t.id,t.node);t.immediate&&this.sync_local_node_updates()}locally_update_group(t){const n=this._local_groupupdates.get(t.id);if(n){const{new_obj:r,change:o}=ap(n,t.group);o&&this._local_groupupdates.set(t.id,r)}else this._local_groupupdates.set(t.id,t.group);t.immediate&&this.sync_local_group_updates()}}class Fu{constructor({data:t,mime:n}){this._data=t,this._mime=n}get data(){return this._data}get value(){return this._data}get mime(){return this._mime}toString(){return this._data instanceof ArrayBuffer?`DataStructure(${this._data.byteLength},${this._mime})`:this._data instanceof Blob?`DataStructure(${this._data.size},${this._mime})`:this._data instanceof String?`DataStructure(${this._data.length},${this._mime})`:this._data instanceof Array?`DataStructure(${this._data.length},${this._mime})`:this._data instanceof Object?`DataStructure(${Object.keys(this._data).length},${this._mime})`:`DataStructure(${this._mime})`}toJSON(){return this.toString()}dispose(){}}class xP extends Fu{constructor({data:t,mime:n}){super({data:Ek(t),mime:n})}get objectUrl(){if(this._objectUrl)return this._objectUrl;const t=this.data instanceof Blob?this.data:new Blob([this.data],{type:this.mime});return this._objectUrl=URL.createObjectURL(t),this._objectUrl}dispose(){this._objectUrl&&URL.revokeObjectURL(this._objectUrl),super.dispose()}get value(){return this.objectUrl}}const Ek=e=>{if(e instanceof ArrayBuffer)return e;const t=ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e),n=new ArrayBuffer(t.byteLength);return new Uint8Array(n).set(t),n},xSe={x:(e,t)=>null,c:(e,t)=>new DataView(e).getInt8(0),B:(e,t)=>new DataView(e).getUint8(0),"?":(e,t)=>new DataView(e).getInt8(0)===1,h:(e,t)=>new DataView(e).getInt16(0,t),H:(e,t)=>new DataView(e).getUint16(0,t),i:(e,t)=>new DataView(e).getInt32(0,t),I:(e,t)=>new DataView(e).getUint32(0,t),l:(e,t)=>new DataView(e).getInt32(0,t),L:(e,t)=>new DataView(e).getUint32(0,t),q:(e,t)=>Number(new DataView(e).getBigInt64(0,t)),Q:(e,t)=>Number(new DataView(e).getBigUint64(0,t)),n:(e,t)=>Number(new DataView(e).getBigInt64(0,t)),N:(e,t)=>Number(new DataView(e).getBigUint64(0,t)),f:(e,t)=>new DataView(e).getFloat32(0,t),d:(e,t)=>new DataView(e).getFloat64(0,t),s:(e,t)=>new TextDecoder().decode(e),p:(e,t)=>new TextDecoder().decode(e),P:(e,t)=>Number(new DataView(e).getBigUint64(0,t))};class wP extends Fu{constructor({data:t,mime:n}){super({data:Ek(t),mime:n}),this._cType=n.split("application/fn.struct.")[1],this._value=null,this.parse_value()}parse_value(){let t=!0,n=this._cType;return n.startsWith("<")&&(t=!0,n=n.slice(1)),n.startsWith(">")&&(t=!1,n=n.slice(1)),n.startsWith("!")&&(t=!1,n=n.slice(1)),n.startsWith("@")&&(t=!1,n=n.slice(1)),n.startsWith("=")&&(t=!1,n=n.slice(1)),this._value=xSe[n](this.data,t),this._value}get value(){return this._value}toString(){return this._value===null?"null":this._value.toString()}}class ep extends Fu{constructor({data:t,mime:n}){const r=Ek(t);super({data:r,mime:n}),r.byteLength===0?this._json=void 0:(this._json=JSON.parse(new TextDecoder().decode(r)),this._json==="<NoValue>"&&(this._json=void 0))}get value(){return this._json}static fromObject(t){const n=t==="<NoValue>"?new Uint8Array(0):new TextEncoder().encode(JSON.stringify(t));return new ep({data:n,mime:"application/json"})}toString(){return typeof this._json=="string"?this._json:JSON.stringify(this._json)}}class EP extends Fu{constructor({data:t,mime:n}){const r=Ek(t);super({data:r,mime:n}),this._value=new TextDecoder().decode(r)}get value(){return this._value}toString(){return this._value}}const gZ=({data:e,mime:t})=>{const n=typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer;return e instanceof ArrayBuffer||ArrayBuffer.isView(e)||n?t.startsWith("application/fn.struct.")?new wP({data:e,mime:t}):t.startsWith("application/json")?new ep({data:e,mime:t}):t==="text"||t.startsWith("text/")?new EP({data:e,mime:t}):new xP({data:e,mime:t}):new Fu({data:e,mime:t})};class wSe extends Sp{constructor(t){super(t),this.CHUNK_TIMEOUT=1e4,this._unique_cmd_outs={},this.blobChunks={},this.cleanupChunks=()=>{const n=Date.now();for(const r in this.blobChunks)n-this.blobChunks[r].timestamp>this.CHUNK_TIMEOUT&&delete this.blobChunks[r]},this.messagePromises=new Map}start(){this._chunk_cleanup_timer=setInterval(this.cleanupChunks.bind(this),this.CHUNK_TIMEOUT/2)}stop(){this._chunk_cleanup_timer&&clearInterval(this._chunk_cleanup_timer)}send(t){this.context.worker.send(t)}async _send_cmd({cmd:t,kwargs:n,as_bytes:r=!1,wait_for_response:o=!0,response_timeout:a=5e3,retries:s=2,unique:u=!1}){const f={type:"cmd",as_bytes:r,cmd:t,kwargs:n||{}};if(await new Promise(async p=>{if(this.context.worker.is_responsive)return p();const m=setInterval(()=>{this.context.worker.is_responsive&&(clearInterval(m),p())},100)}),o){if(u&&this._unique_cmd_outs[f.cmd]!==void 0)return this._unique_cmd_outs[f.cmd];s<0&&(s=0);const m=(async()=>{let g;for(;s>=0;){const b=f.id||SP();f.id=b;const S=new Promise((w,x)=>{const E=setTimeout(()=>{x("Timeout@wait_for_response for "+t)},a);this.messagePromises.set(b,{resolve:C=>{clearTimeout(E),w(C),this.messagePromises.delete(b)},reject:C=>{clearTimeout(E),x(C),this.messagePromises.delete(b)}})});await this.send(f);try{g=await S;break}catch(w){if(s===0)throw delete this._unique_cmd_outs[f.cmd],w;s-=1;continue}}return delete this._unique_cmd_outs[f.cmd],g})();return u&&(this._unique_cmd_outs[f.cmd]=m),m}return this.send(f)}async receive(t){let n;switch(this.connectionHealthManager.receivePong(),t.type){case"pong":return this.connectionHealthManager.receivePong();case"nsevent":return await this.context.worker.getEventManager().receive_nodespace_event(t);case"result":if(n=t.id&&this.messagePromises.get(t.id),n)return n.resolve(t.result);break;case"error":if(this.context.worker.on_error(t.tb+`
974
974
  `+t.error),n=t.id&&this.messagePromises.get(t.id),n)return n.reject(t.error);break;case"progress":if(!this.context.worker._zustand)return;this.context.worker._zustand.set_progress(t);break;case"workerevent":return await this.context.worker.getEventManager().receive_workerevent(t);case"large_message":return await this.context.worker.handle_large_message_hint(t);default:console.warn("Unhandled message",t);break}}async receive_bytes(t,n){const{type:r}=t;if(r==="io_value"){if(!this.context.worker._zustand)return;const{node:o,io:a,preview:s,mime:u}=t,f=s?"value":"fullvalue";(!o||!a)&&console.error("Invalid io_value message",t);const p=gZ({data:n,mime:u||"application/octet-stream"});this.context.worker._zustand.on_node_action({type:"update",node:{id:o,io:{[a]:{[f]:p}}},id:o,from_remote:!0})}else if(r=="result"){const o=t.id&&this.messagePromises.get(t.id);o&&o.resolve({bytes:n,header:t})}else console.warn("Unhandled bytes message",t)}async onbytes(t){try{const n=new TextDecoder("utf-8").decode(t),r=n.indexOf(`\r
975
975
  \r
976
976
  `);if(r===-1){console.error(`Header terminator not found for:
@@ -1097,4 +1097,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1097
1097
  ${r}
1098
1098
  return FuncNodesPlugin;
1099
1099
  })();
1100
- `)(F,vie);this.add_plugin(t,a)}catch(o){o instanceof Error?this.context.rf.logger.error(`Error building plugin ${t}`,o):this.context.rf.logger.error(`Error building plugin ${t}`,new Error(String(o))),this.stateManager.toaster?.error({title:"Error",description:`Error building plugin ${t}: ${o}`,duration:5e3})}}}}class _qe extends dS{constructor(t){super(t),this.on_rf_node_change=n=>{const r=this.useReactFlowStore.getState();for(const o of n)switch(o.type){case"position":if(o.position){const a=r.getNode(o.id);if(a===void 0)continue;a.type==="group"?this.nodespaceManager.change_group_position(o):this.nodespaceManager.change_fn_node_position(o),a.data.groupID&&this.nodespaceManager.auto_resize_group(a.data.groupID)}break;case"dimensions":if(o.dimensions){const a=r.getNode(o.id);if(a===void 0)continue;a.type==="group"?this.nodespaceManager.change_group_dimensions(o):this.nodespaceManager.change_fn_node_dimensions(o),a.data.groupID&&this.nodespaceManager.auto_resize_group(a.data.groupID)}break}},this.on_rf_edge_change=n=>{},this.on_connect=n=>{n.source===null||n.target===null||n.sourceHandle===null||n.targetHandle===null||!this.workerManager.worker||this.workerManager.worker.api.edge.add_edge({src_nid:n.source,src_ioid:n.sourceHandle,trg_nid:n.target,trg_ioid:n.targetHandle,replace:!0})},this.useReactFlowStore=d6e({on_node_change:this.on_rf_node_change.bind(this),on_edge_change:this.on_rf_edge_change.bind(this),on_connect:this.on_connect.bind(this)})}}let Cqe=class{constructor(t){this.reactflowRef=null,this.dev_settings={debug:H_()},this.options=t,this.logger=t.logger??new o5("fn",H_()?VG:UG);const n={rf:this};this._nodespaceManager=new gqe(n),this._libManager=new bqe(n),this._workerManager=new vqe(n),this._stateManager=new Sqe(n),this._pluginManager=new Eqe(n),this._reactFlowManager=new _qe(n)}getNodespaceManager(){return this._nodespaceManager}getLibManager(){return this._libManager}getWorkerManager(){return this._workerManager}getStateManager(){return this._stateManager}getPluginManager(){return this._pluginManager}getReactFlowManager(){return this._reactFlowManager}get nodespace(){return this._nodespaceManager.nodespace}get on_node_action(){return this._nodespaceManager.on_node_action.bind(this._nodespaceManager)}get on_edge_action(){return this._nodespaceManager.on_edge_action.bind(this._nodespaceManager)}get on_group_action(){return this._nodespaceManager.on_group_action.bind(this._nodespaceManager)}get clear_all(){return this._nodespaceManager.clear_all.bind(this._nodespaceManager)}get center_node(){return this._nodespaceManager.center_node.bind(this._nodespaceManager)}get center_all(){return this._nodespaceManager.center_all.bind(this._nodespaceManager)}get lib(){return this._libManager.lib}get set_worker(){return this._workerManager.set_worker.bind(this._workerManager)}get workermanager(){return this._workerManager.workermanager}set workermanager(t){this._workerManager.workermanager=t}get worker(){return this._workerManager.worker}get workers(){return this._workerManager.workers}get workerstate(){return this._workerManager.workerstate}get _unsubscribeFromWorker(){return this._workerManager._unsubscribeFromWorker?.bind(this._workerManager)}get set_progress(){return this._stateManager.set_progress.bind(this._stateManager)}get auto_progress(){return this._stateManager.auto_progress.bind(this._stateManager)}get progress_state(){return this._stateManager.progress_state}get local_settings(){return this._stateManager.local_settings}get local_state(){return this._stateManager.local_state}update_view_settings(t){this._stateManager.update_view_settings(t)}get plugins(){return this._pluginManager.plugins.bind(this._pluginManager)}get add_plugin(){return this._pluginManager.add_plugin.bind(this._pluginManager)}get add_packed_plugin(){return this._pluginManager.add_packed_plugin.bind(this._pluginManager)}get render_options(){return this._pluginManager.render_options.bind(this._pluginManager)}get update_render_options(){return this._pluginManager.update_render_options.bind(this._pluginManager)}get useReactFlowStore(){return this._reactFlowManager.useReactFlowStore.bind(this._reactFlowManager)}get rf_instance(){return this._reactFlowManager.rf_instance}set rf_instance(t){this._reactFlowManager.rf_instance=t}};const Tqe=Z_(lwe,e=>(e.id=SP(),e)),Aqe=e=>{if(!e.useWorkerManager&&e.worker===void 0)throw new Error("If you don't use a worker manager, you must provide a default worker.");if(e.useWorkerManager&&e.workermanager_url===void 0)throw new Error("Error: If you use a worker manager, you must provide a worker managerurl.")},n5={};window.fnrf_zst===void 0&&(window.fnrf_zst=n5);const H$=e=>{const[t,n]=F.useState(void 0),[r,o]=F.useState(void 0),[a,s]=F.useState(!1);if(F.useEffect(()=>{const u=Tqe(e);u.logger=u.logger||new o5("FuncNodes",u.debug?"debug":"info"),u.logger.debug("Initializing FuncNodes with props:",u),n(u),s(!1)},[e]),F.useEffect(()=>{if(!t)return;t.logger?.debug("Initializing/Getting Zustand store");const u=n5[t.id];if(u===void 0){const f=new Cqe(t);n5[t.id]=f,o(f)}else o(u),u.options.debug=t.debug},[t?.id,t?.debug]),F.useEffect(()=>{if(!(!t||!r)&&!(t.useWorkerManager||!t.worker_url))if(t.logger?.debug("Worker effect running"),t.worker){t.worker.set_zustand(r);return}else{t.logger?.debug("Creating WebSocket worker");const u=new BZ({url:t.worker_url,uuid:t.id,on_sync_complete:t.on_sync_complete});return u.set_zustand(r),n(f=>f&&{...f,worker:u,useWorkerManager:!1}),()=>{t.logger?.debug("Disconnecting worker"),u.disconnect(),n(f=>f&&{...f,worker:void 0})}}},[t?.worker_url,t?.id,t?.useWorkerManager,r,t?.on_sync_complete]),F.useEffect(()=>{if(!t?.fnw_url||!t.worker)return;t.logger?.debug("Loading fnw_url data");let u=!1;const f=t.worker.getSyncManager().on_sync_complete;return(async()=>{try{const m=await Lie(t.fnw_url);!u&&t.worker&&(t.worker.getSyncManager().on_sync_complete=async g=>{await g.update_from_export(m),t.worker.getSyncManager().on_sync_complete=f,f&&f(g)})}catch(m){m instanceof Error?t.logger?.error("Failed to load fnw_url:",m):t.logger?.error("Failed to load fnw_url:",new Error(String(m)))}})(),()=>{u=!0,t.worker&&(t.worker.getSyncManager().on_sync_complete=f)}},[t?.fnw_url,t?.worker]),F.useEffect(()=>{if(!t||!r||!t.useWorkerManager)return;if(!t.workermanager_url)throw new Error("Error: If you use a worker manager, you must provide a worker manager url.");r.logger.info("Worker manager effect running");const u=!r.workermanager,f=r.workermanager&&r.workermanager.wsuri!==t.workermanager_url;if(u||f){r.workermanager&&(r.logger.info("Removing existing worker manager"),r.workermanager.remove(),r.workermanager=void 0),r.logger.info("Creating new worker manager");const p=new owe(t.workermanager_url,r);return r.workermanager=p,n(m=>m&&{...m,workermanager:p}),()=>{r.logger.info("Worker manager cleanup running"),r.workermanager===p?(r.logger.info("Removing worker manager instance"),p.remove(),r.workermanager=void 0):r.logger.info("Worker manager instance mismatch, skipping cleanup")}}else{r.logger.info("Worker manager already initialized with correct URL");return}},[t?.useWorkerManager,t?.workermanager_url,t?.id,r]),F.useEffect(()=>{if(!t||!r||a)return;(t.useWorkerManager?r.workermanager!==void 0:t.worker!==void 0)&&t.on_ready&&typeof t.on_ready=="function"&&(t.logger?.debug("Firing on_ready callback"),t.on_ready({fnrf_zst:r}),s(!0))},[t,r,a,t?.useWorkerManager,r?.workermanager,t?.worker]),t===void 0||r===void 0)return A.jsx("div",{children:"Loading..."});try{Aqe(t)}catch(u){return A.jsx(Bie,{error:u})}return A.jsx("div",{className:"FuncnodesApp",children:A.jsx(xge,{available_themes:VZ,children:A.jsx(rSe,{duration:5e3,children:A.jsx(hqe,{fnrf_zst:r,header:t.header,library:t.library,flow:t.flow})})})})},G$=(e,t)=>{t===void 0&&(t={});const{element:n,eleid:r}=typeof e=="string"?{element:document.getElementById(e),eleid:e}:{element:e,eleid:e.id};Oie.createRoot(n).render(A.jsx(F.StrictMode,{children:A.jsx(H$,{...t,id:t.id||r})}))};window.FuncNodes=G$;window.FuncNodes.version="2.2.0";window.FuncNodes.utils={logger:{ConsoleLogger:o5,DivLogger:Mie,BaseLogger:r5,DEBUG:VG,INFO:UG,WARN:Rie,ERROR:Nie}};exports.ArrayBufferDataStructure=xP;exports.CTypeStructure=wP;exports.DataPreviewViewRendererToHandlePreviewRenderer=JP;exports.DataStructure=Fu;exports.DataViewRendererToDataPreviewViewRenderer=Ta;exports.DataViewRendererToInputRenderer=KP;exports.DataViewRendererToOverlayRenderer=CC;exports.FuncNodes=H$;exports.FuncNodesRenderer=G$;exports.FuncNodesWorker=_P;exports.JSONStructure=ep;exports.LATEST_VERSION=U$;exports.TextStructure=EP;exports.deep_merge=ap;exports.deep_update=kN;exports.object_factory_maker=Z_;exports.useFuncNodesContext=qn;exports.useIOGetFullValue=oS;exports.useIOStore=Hr;exports.useIOValueStore=DK;exports.useNodeStore=ns;exports.useSetIOValue=$m;exports.useSetIOValueOptions=IK;exports.useWorkerApi=ta;
1100
+ `)(F,vie);this.add_plugin(t,a)}catch(o){o instanceof Error?this.context.rf.logger.error(`Error building plugin ${t}`,o):this.context.rf.logger.error(`Error building plugin ${t}`,new Error(String(o))),this.stateManager.toaster?.error({title:"Error",description:`Error building plugin ${t}: ${o}`,duration:5e3})}}}}class _qe extends dS{constructor(t){super(t),this.on_rf_node_change=n=>{const r=this.useReactFlowStore.getState();for(const o of n)switch(o.type){case"position":if(o.position){const a=r.getNode(o.id);if(a===void 0)continue;a.type==="group"?this.nodespaceManager.change_group_position(o):this.nodespaceManager.change_fn_node_position(o),a.data.groupID&&this.nodespaceManager.auto_resize_group(a.data.groupID)}break;case"dimensions":if(o.dimensions){const a=r.getNode(o.id);if(a===void 0)continue;a.type==="group"?this.nodespaceManager.change_group_dimensions(o):this.nodespaceManager.change_fn_node_dimensions(o),a.data.groupID&&this.nodespaceManager.auto_resize_group(a.data.groupID)}break}},this.on_rf_edge_change=n=>{},this.on_connect=n=>{n.source===null||n.target===null||n.sourceHandle===null||n.targetHandle===null||!this.workerManager.worker||this.workerManager.worker.api.edge.add_edge({src_nid:n.source,src_ioid:n.sourceHandle,trg_nid:n.target,trg_ioid:n.targetHandle,replace:!0})},this.useReactFlowStore=d6e({on_node_change:this.on_rf_node_change.bind(this),on_edge_change:this.on_rf_edge_change.bind(this),on_connect:this.on_connect.bind(this)})}}let Cqe=class{constructor(t){this.reactflowRef=null,this.dev_settings={debug:H_()},this.options=t,this.logger=t.logger??new o5("fn",H_()?VG:UG);const n={rf:this};this._nodespaceManager=new gqe(n),this._libManager=new bqe(n),this._workerManager=new vqe(n),this._stateManager=new Sqe(n),this._pluginManager=new Eqe(n),this._reactFlowManager=new _qe(n)}getNodespaceManager(){return this._nodespaceManager}getLibManager(){return this._libManager}getWorkerManager(){return this._workerManager}getStateManager(){return this._stateManager}getPluginManager(){return this._pluginManager}getReactFlowManager(){return this._reactFlowManager}get nodespace(){return this._nodespaceManager.nodespace}get on_node_action(){return this._nodespaceManager.on_node_action.bind(this._nodespaceManager)}get on_edge_action(){return this._nodespaceManager.on_edge_action.bind(this._nodespaceManager)}get on_group_action(){return this._nodespaceManager.on_group_action.bind(this._nodespaceManager)}get clear_all(){return this._nodespaceManager.clear_all.bind(this._nodespaceManager)}get center_node(){return this._nodespaceManager.center_node.bind(this._nodespaceManager)}get center_all(){return this._nodespaceManager.center_all.bind(this._nodespaceManager)}get lib(){return this._libManager.lib}get set_worker(){return this._workerManager.set_worker.bind(this._workerManager)}get workermanager(){return this._workerManager.workermanager}set workermanager(t){this._workerManager.workermanager=t}get worker(){return this._workerManager.worker}get workers(){return this._workerManager.workers}get workerstate(){return this._workerManager.workerstate}get _unsubscribeFromWorker(){return this._workerManager._unsubscribeFromWorker?.bind(this._workerManager)}get set_progress(){return this._stateManager.set_progress.bind(this._stateManager)}get auto_progress(){return this._stateManager.auto_progress.bind(this._stateManager)}get progress_state(){return this._stateManager.progress_state}get local_settings(){return this._stateManager.local_settings}get local_state(){return this._stateManager.local_state}update_view_settings(t){this._stateManager.update_view_settings(t)}get plugins(){return this._pluginManager.plugins.bind(this._pluginManager)}get add_plugin(){return this._pluginManager.add_plugin.bind(this._pluginManager)}get add_packed_plugin(){return this._pluginManager.add_packed_plugin.bind(this._pluginManager)}get render_options(){return this._pluginManager.render_options.bind(this._pluginManager)}get update_render_options(){return this._pluginManager.update_render_options.bind(this._pluginManager)}get useReactFlowStore(){return this._reactFlowManager.useReactFlowStore.bind(this._reactFlowManager)}get rf_instance(){return this._reactFlowManager.rf_instance}set rf_instance(t){this._reactFlowManager.rf_instance=t}};const Tqe=Z_(lwe,e=>(e.id=SP(),e)),Aqe=e=>{if(!e.useWorkerManager&&e.worker===void 0)throw new Error("If you don't use a worker manager, you must provide a default worker.");if(e.useWorkerManager&&e.workermanager_url===void 0)throw new Error("Error: If you use a worker manager, you must provide a worker managerurl.")},n5={};window.fnrf_zst===void 0&&(window.fnrf_zst=n5);const H$=e=>{const[t,n]=F.useState(void 0),[r,o]=F.useState(void 0),[a,s]=F.useState(!1);if(F.useEffect(()=>{const u=Tqe(e);u.logger=u.logger||new o5("FuncNodes",u.debug?"debug":"info"),u.logger.debug("Initializing FuncNodes with props:",u),n(u),s(!1)},[e]),F.useEffect(()=>{if(!t)return;t.logger?.debug("Initializing/Getting Zustand store");const u=n5[t.id];if(u===void 0){const f=new Cqe(t);n5[t.id]=f,o(f)}else o(u),u.options.debug=t.debug},[t?.id,t?.debug]),F.useEffect(()=>{if(!(!t||!r)&&!(t.useWorkerManager||!t.worker_url&&!t.worker))if(t.logger?.debug("Worker effect running"),!t.worker&&t.worker_url){t.logger?.debug("Creating WebSocket worker");const u=new BZ({url:t.worker_url,uuid:t.id,on_sync_complete:t.on_sync_complete});return u.set_zustand(r),n(f=>f&&{...f,worker:u,useWorkerManager:!1}),()=>{t.logger?.debug("Disconnecting worker"),u.disconnect(),n(f=>f&&{...f,worker:void 0})}}else{t.worker?.set_zustand(r);return}},[t?.worker_url,t?.id,t?.useWorkerManager,r,t?.on_sync_complete]),F.useEffect(()=>{if(!t?.fnw_url||!t.worker)return;t.logger?.debug("Loading fnw_url data");let u=!1;const f=t.worker.getSyncManager();let p;return(async()=>{try{const g=await Lie(t.fnw_url);if(u)return;p=async b=>{u||await b.update_from_export(g)},f.add_after_next_sync(p)}catch(g){g instanceof Error?t.logger?.error("Failed to load fnw_url:",g):t.logger?.error("Failed to load fnw_url:",new Error(String(g)))}})(),()=>{u=!0,p&&f.remove_after_next_sync(p)}},[t?.fnw_url,t?.worker]),F.useEffect(()=>{if(!t||!r||!t.useWorkerManager)return;if(!t.workermanager_url)throw new Error("Error: If you use a worker manager, you must provide a worker manager url.");r.logger.info("Worker manager effect running");const u=!r.workermanager,f=r.workermanager&&r.workermanager.wsuri!==t.workermanager_url;if(u||f){r.workermanager&&(r.logger.info("Removing existing worker manager"),r.workermanager.remove(),r.workermanager=void 0),r.logger.info("Creating new worker manager");const p=new owe(t.workermanager_url,r);return r.workermanager=p,n(m=>m&&{...m,workermanager:p}),()=>{r.logger.info("Worker manager cleanup running"),r.workermanager===p?(r.logger.info("Removing worker manager instance"),p.remove(),r.workermanager=void 0):r.logger.info("Worker manager instance mismatch, skipping cleanup")}}else{r.logger.info("Worker manager already initialized with correct URL");return}},[t?.useWorkerManager,t?.workermanager_url,t?.id,r]),F.useEffect(()=>{if(!t||!r||a)return;(t.useWorkerManager?r.workermanager!==void 0:t.worker!==void 0)&&t.on_ready&&typeof t.on_ready=="function"&&(t.logger?.debug("Firing on_ready callback"),t.on_ready({fnrf_zst:r}),s(!0))},[t,r,a,t?.useWorkerManager,r?.workermanager,t?.worker]),t===void 0||r===void 0)return A.jsx("div",{children:"Loading..."});try{Aqe(t)}catch(u){return A.jsx(Bie,{error:u})}return A.jsx("div",{className:"FuncnodesApp",children:A.jsx(xge,{available_themes:VZ,children:A.jsx(rSe,{duration:5e3,children:A.jsx(hqe,{fnrf_zst:r,header:t.header,library:t.library,flow:t.flow})})})})},G$=(e,t)=>{t===void 0&&(t={});const{element:n,eleid:r}=typeof e=="string"?{element:document.getElementById(e),eleid:e}:{element:e,eleid:e.id};Oie.createRoot(n).render(A.jsx(F.StrictMode,{children:A.jsx(H$,{...t,id:t.id||r})}))};window.FuncNodes=G$;window.FuncNodes.version="2.2.1a0";window.FuncNodes.utils={logger:{ConsoleLogger:o5,DivLogger:Mie,BaseLogger:r5,DEBUG:VG,INFO:UG,WARN:Rie,ERROR:Nie}};exports.ArrayBufferDataStructure=xP;exports.CTypeStructure=wP;exports.DataPreviewViewRendererToHandlePreviewRenderer=JP;exports.DataStructure=Fu;exports.DataViewRendererToDataPreviewViewRenderer=Ta;exports.DataViewRendererToInputRenderer=KP;exports.DataViewRendererToOverlayRenderer=CC;exports.FuncNodes=H$;exports.FuncNodesRenderer=G$;exports.FuncNodesWorker=_P;exports.JSONStructure=ep;exports.LATEST_VERSION=U$;exports.TextStructure=EP;exports.deep_merge=ap;exports.deep_update=kN;exports.object_factory_maker=Z_;exports.useFuncNodesContext=qn;exports.useIOGetFullValue=oS;exports.useIOStore=Hr;exports.useIOValueStore=DK;exports.useNodeStore=ns;exports.useSetIOValue=$m;exports.useSetIOValueOptions=IK;exports.useWorkerApi=ta;