@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 +2 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +32 -17
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
package/dist/index.umd.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 QD(e){return Xge(e)||Wge(e)||UV(e)||Zge()}function Jge(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ej=oe.useLayoutEffect,Kge=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],MT=function(){};function Qge(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function eye(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(Qge(e,s)));return a.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var YV=function(t){return uye(t)?t.filter(Boolean):eg(t)==="object"&&t!==null?[t]:[]},qV=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=Zf(t,Kge);return At({},n)},uo=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 IT(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function tye(e){return IT(e)?window.innerHeight:e.clientHeight}function XV(e){return IT(e)?window.pageYOffset:e.scrollTop}function DT(e,t){if(IT(e)){window.scrollTo(0,t);return}e.scrollTop=t}function nye(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 rye(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function jT(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:MT,o=XV(e),a=t-o,s=10,u=0;function f(){u+=s;var p=rye(u,o,a,n);DT(e,p),u<n?window.requestAnimationFrame(f):r(e)}f()}function WV(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?DT(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&DT(e,Math.max(t.offsetTop-o,0))}function oye(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 ZV(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function iye(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var JV=!1,aye={get passive(){return JV=!0}},PT=typeof window<"u"?window:{};PT.addEventListener&&PT.removeEventListener&&(PT.addEventListener("p",MT,aye),PT.removeEventListener("p",MT,!1));var sye=JV;function lye(e){return e!=null}function uye(e){return Array.isArray(e)}function zT(e,t,n){return e?t:n}function qYe(e){return e}function XYe(e){return e}var cye=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=Wf(s,1),f=u[0];return!r.includes(f)});return a.reduce(function(s,u){var f=Wf(u,2),p=f[0],m=f[1];return s[p]=m,s},{})},fye=["children","innerProps"],dye=["children","innerProps"];function pye(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,s=e.isFixedPosition,u=e.controlHeight,f=nye(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:tye(f),O=XV(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&&jT(f,U,L),{placement:"bottom",maxHeight:t};if(!s&&V>=r||s&&P>=r){a&&jT(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&&DT(f,U),{placement:"bottom",maxHeight:t};break;case"top":if(D>=w)return{placement:"top",maxHeight:t};if(B>=w&&!s)return a&&jT(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&&jT(f,X,L),{placement:"top",maxHeight:H}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return p}function hye(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var KV=function(t){return t==="auto"?"bottom":t},mye=function(t,n){var r,o=t.placement,a=t.theme,s=a.borderRadius,u=a.spacing,f=a.colors;return At((r={label:"menu"},sx(r,hye(o),"100%"),sx(r,"position","absolute"),sx(r,"width","100%"),sx(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})},QV=oe.createContext(null),gye=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(QV)||{},m=p.setPortalPlacement,g=oe.useRef(null),b=oe.useState(o),S=Wf(b,2),w=S[0],x=S[1],E=oe.useState(null),C=Wf(E,2),N=C[0],O=C[1],k=f.spacing.controlHeight;return ej(function(){var M=g.current;if(M){var D=s==="fixed",P=u&&!D,B=pye({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:At(At({},t),{},{placement:N||KV(a),maxHeight:w})})},yye=function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return Et("div",Ct({},uo(t,"menu",{menu:!0}),{ref:r},o),n)},bye=yye,vye=function(t,n){var r=t.maxHeight,o=t.theme.spacing.baseUnit;return At({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},Sye=function(t){var n=t.children,r=t.innerProps,o=t.innerRef,a=t.isMulti;return Et("div",Ct({},uo(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:o},r),n)},eU=function(t,n){var r=t.theme,o=r.spacing.baseUnit,a=r.colors;return At({textAlign:"center"},n?{}:{color:a.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},xye=eU,wye=eU,Eye=function(t){var n=t.children,r=n===void 0?"No options":n,o=t.innerProps,a=Zf(t,fye);return Et("div",Ct({},uo(At(At({},a),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},_ye=function(t){var n=t.children,r=n===void 0?"Loading...":n,o=t.innerProps,a=Zf(t,dye);return Et("div",Ct({},uo(At(At({},a),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},Cye=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}},Tye=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(KV(s)),g=Wf(m,2),b=g[0],S=g[1],w=oe.useMemo(function(){return{setPortalPlacement:S}},[]),x=oe.useState(null),E=Wf(x,2),C=E[0],N=E[1],O=oe.useCallback(function(){if(o){var P=oye(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]);ej(function(){O()},[O]);var k=oe.useCallback(function(){typeof p.current=="function"&&(p.current(),p.current=null),o&&f.current&&(p.current=lV(o,f.current,O,{elementResize:"ResizeObserver"in window}))},[o,O]);ej(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},uo(At(At({},t),{},{offset:C.offset,position:u,rect:C.rect}),"menuPortal",{"menu-portal":!0}),a),r);return Et(QV.Provider,{value:w},n?If.createPortal(D,n):D)},Aye=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},Oye=function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,a=t.isRtl;return Et("div",Ct({},uo(t,"container",{"--is-disabled":o,"--is-rtl":a}),r),n)},Rye=function(t,n){var r=t.theme.spacing,o=t.isMulti,a=t.hasValue,s=t.selectProps.controlShouldRenderValue;return At({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")})},Nye=function(t){var n=t.children,r=t.innerProps,o=t.isMulti,a=t.hasValue;return Et("div",Ct({},uo(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a}),r),n)},kye=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Mye=function(t){var n=t.children,r=t.innerProps;return Et("div",Ct({},uo(t,"indicatorsContainer",{indicators:!0}),r),n)},tU,Iye=["size"],Dye=["innerProps","isRtl","size"];function jye(){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 Pye=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIg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aW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:jye},nU=function(t){var n=t.size,r=Zf(t,Iye);return Et("svg",Ct({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Pye},r))},tj=function(t){return Et(nU,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"}))},rU=function(t){return Et(nU,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"}))},oU=function(t,n){var r=t.isFocused,o=t.theme,a=o.spacing.baseUnit,s=o.colors;return At({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?s.neutral60:s.neutral20,padding:a*2,":hover":{color:r?s.neutral80:s.neutral40}})},zye=oU,$ye=function(t){var n=t.children,r=t.innerProps;return Et("div",Ct({},uo(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||Et(rU,null))},Fye=oU,Lye=function(t){var n=t.children,r=t.innerProps;return Et("div",Ct({},uo(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||Et(tj,null))},Bye=function(t,n){var r=t.isDisabled,o=t.theme,a=o.spacing.baseUnit,s=o.colors;return At({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?s.neutral10:s.neutral20,marginBottom:a*2,marginTop:a*2})},Vye=function(t){var n=t.innerProps;return Et("span",Ct({},n,uo(t,"indicatorSeparator",{"indicator-separator":!0})))},Uye=N0(tU||(tU=Jge([`
|
|
971
971
|
0%, 80%, 100% { opacity: 0; }
|
|
972
972
|
40% { opacity: 1; }
|
|
973
|
-
`]))),Hye=function(t,n){var r=t.isFocused,o=t.size,a=t.theme,s=a.colors,u=a.spacing.baseUnit;return At({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})},nj=function(t){var n=t.delay,r=t.offset;return Et("span",{css:kS({animation:"".concat(Uye," 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAm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G4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Gye=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,a=o===void 0?4:o,s=Zf(t,Dye);return Et("div",Ct({},uo(At(At({},s),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),Et(nj,{delay:0,offset:r}),Et(nj,{delay:160,offset:!0}),Et(nj,{delay:320,offset:!r}))},Yye=function(t,n){var r=t.isDisabled,o=t.isFocused,a=t.theme,s=a.colors,u=a.borderRadius,f=a.spacing;return At({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}})},qye=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},uo(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":u}),s,{"aria-disabled":r||void 0}),n)},Xye=qye,Wye=["data"],Zye=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},Jye=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({},uo(t,"group",{group:!0}),f),Et(s,Ct({},u,{selectProps:g,theme:m,getStyles:o,getClassNames:a,cx:r}),p),Et("div",null,n))},Kye=function(t,n){var r=t.theme,o=r.colors,a=r.spacing;return At({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"})},Qye=function(t){var n=qV(t);n.data;var r=Zf(n,Wye);return Et("div",Ct({},uo(t,"groupHeading",{"group-heading":!0}),r))},e0e=Jye,t0e=["innerRef","isDisabled","isHidden","inputClassName"],n0e=function(t,n){var r=t.isDisabled,o=t.value,a=t.theme,s=a.spacing,u=a.colors;return At(At({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},r0e),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:u.neutral80})},iU={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},r0e={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":At({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},iU)},o0e=function(t){return At({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},iU)},i0e=function(t){var n=t.cx,r=t.value,o=qV(t),a=o.innerRef,s=o.isDisabled,u=o.isHidden,f=o.inputClassName,p=Zf(o,t0e);return Et("div",Ct({},uo(t,"input",{"input-container":!0}),{"data-value":r||""}),Et("input",Ct({className:n({input:!0},f),ref:a,style:o0e(u),disabled:s},p)))},a0e=i0e,s0e=function(t,n){var r=t.theme,o=r.spacing,a=r.borderRadius,s=r.colors;return At({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:a/2,margin:o.baseUnit/2})},l0e=function(t,n){var r=t.theme,o=r.borderRadius,a=r.colors,s=t.cropWithEllipsis;return At({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})},u0e=function(t,n){var r=t.theme,o=r.spacing,a=r.borderRadius,s=r.colors,u=t.isFocused;return At({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}})},aU=function(t){var n=t.children,r=t.innerProps;return Et("div",r,n)},c0e=aU,f0e=aU;function d0e(e){var t=e.children,n=e.innerProps;return Et("div",Ct({role:"button"},n),t||Et(tj,{size:14}))}var p0e=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:At(At({},uo(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),a),selectProps:f},Et(m,{data:o,innerProps:At({},uo(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:f},n),Et(g,{data:o,innerProps:At(At({},uo(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},u),selectProps:f}))},h0e=p0e,m0e=function(t,n){var r=t.isDisabled,o=t.isFocused,a=t.isSelected,s=t.theme,u=s.spacing,f=s.colors;return At({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}})},g0e=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({},uo(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":a}),{ref:s,"aria-disabled":r},u),n)},y0e=g0e,b0e=function(t,n){var r=t.theme,o=r.spacing,a=r.colors;return At({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},v0e=function(t){var n=t.children,r=t.innerProps;return Et("div",Ct({},uo(t,"placeholder",{placeholder:!0}),r),n)},S0e=v0e,x0e=function(t,n){var r=t.isDisabled,o=t.theme,a=o.spacing,s=o.colors;return At({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})},w0e=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return Et("div",Ct({},uo(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},E0e=w0e,_0e={ClearIndicator:Lye,Control:Xye,DropdownIndicator:$ye,DownChevron:rU,CrossIcon:tj,Group:e0e,GroupHeading:Qye,IndicatorsContainer:Mye,IndicatorSeparator:Vye,Input:a0e,LoadingIndicator:Gye,Menu:bye,MenuList:Sye,MenuPortal:Tye,LoadingMessage:_ye,NoOptionsMessage:Eye,MultiValue:h0e,MultiValueContainer:c0e,MultiValueLabel:f0e,MultiValueRemove:d0e,Option:y0e,Placeholder:S0e,SelectContainer:Oye,SingleValue:E0e,ValueContainer:Nye},C0e=function(t){return At(At({},_0e),t.components)},sU=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function T0e(e,t){return!!(e===t||sU(e)&&sU(t))}function A0e(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!T0e(e[n],t[n]))return!1;return!0}function O0e(e,t){t===void 0&&(t=A0e);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 R0e(){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)."}for(var N0e=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:R0e},k0e=function(t){return Et("span",Ct({css:N0e},t))},lU=k0e,M0e={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:"",".")}},I0e=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 At(At({},M0e),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=At({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(lU,{id:p},L&&Y),Et(lU,{"aria-live":P,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!L&&Y))},D0e=I0e,rj=[{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źẑżžẓẕƶȥɀⱬꝣ"}],j0e=new RegExp("["+rj.map(function(e){return e.letters}).join("")+"]","g"),uU={},oj=0;oj<rj.length;oj++)for(var ij=rj[oj],aj=0;aj<ij.letters.length;aj++)uU[ij.letters[aj]]=ij.base;var cU=function(t){return t.replace(j0e,function(n){return uU[n]})},P0e=O0e(cU),fU=function(t){return t.replace(/^\s+|\s+$/g,"")},z0e=function(t){return"".concat(t.label," ").concat(t.value)},$0e=function(t){return function(n,r){if(n.data.__isNew__)return!0;var o=At({ignoreCase:!0,ignoreAccents:!0,stringify:z0e,trim:!0,matchFrom:"any"},t),a=o.ignoreCase,s=o.ignoreAccents,u=o.stringify,f=o.trim,p=o.matchFrom,m=f?fU(r):r,g=f?fU(u(n)):u(n);return a&&(m=m.toLowerCase(),g=g.toLowerCase()),s&&(m=P0e(m),g=cU(g)),p==="start"?g.substr(0,m.length)===m:g.indexOf(m)>-1}},F0e=["innerRef"];function L0e(e){var t=e.innerRef,n=Zf(e,F0e),r=cye(n,"onExited","in","enter","exit","appear");return Et("input",Ct({ref:t},r,{css:kS({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,eyJ2ZXJzaW9uIjozLCJz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yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var B0e=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function V0e(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&&B0e(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=sye?{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 dU=["boxSizing","height","overflow","paddingRight","position"],pU={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function hU(e){e.cancelable&&e.preventDefault()}function mU(e){e.stopPropagation()}function gU(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function yU(){return"ontouchstart"in window||navigator.maxTouchPoints}var bU=!!(typeof window<"u"&&window.document&&window.document.createElement),lx=0,ub={capture:!1,passive:!1};function U0e(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(bU){var p=document.body,m=p&&p.style;if(r&&dU.forEach(function(w){var x=m&&m[w];o.current[w]=x}),r&&lx<1){var g=parseInt(o.current.paddingRight,10)||0,b=document.body?document.body.clientWidth:0,S=window.innerWidth-b+g||0;Object.keys(pU).forEach(function(w){var x=pU[w];m&&(m[w]=x)}),m&&(m.paddingRight="".concat(S,"px"))}p&&yU()&&(p.addEventListener("touchmove",hU,ub),f&&(f.addEventListener("touchstart",gU,ub),f.addEventListener("touchmove",mU,ub))),lx+=1}},[r]),u=oe.useCallback(function(f){if(bU){var p=document.body,m=p&&p.style;lx=Math.max(lx-1,0),r&&lx<1&&dU.forEach(function(g){var b=o.current[g];m&&(m[g]=b)}),p&&yU()&&(p.removeEventListener("touchmove",hU,ub),f&&(f.removeEventListener("touchstart",gU,ub),f.removeEventListener("touchmove",mU,ub)))}},[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 H0e(){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 G0e=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},Y0e=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZ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nZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:H0e};function q0e(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=V0e({isEnabled:o,onBottomArrive:a,onBottomLeave:s,onTopArrive:u,onTopLeave:f}),m=U0e({isEnabled:n}),g=function(S){p(S),m(S)};return Et(oe.Fragment,null,n&&Et("div",{onClick:G0e,css:Y0e}),t(g))}function X0e(){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 W0e=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:X0e},Z0e=function(t){var n=t.name,r=t.onFocus;return Et("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:W0e,value:"",onChange:function(){}})},J0e=Z0e;function sj(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 K0e(){return sj(/^iPhone/i)}function vU(){return sj(/^Mac/i)}function Q0e(){return sj(/^iPad/i)||vU()&&navigator.maxTouchPoints>1}function ebe(){return K0e()||Q0e()}function tbe(){return vU()||ebe()}var nbe=function(t){return t.label},rbe=function(t){return t.label},obe=function(t){return t.value},ibe=function(t){return!!t.isDisabled},abe={clearIndicator:Fye,container:Aye,control:Yye,dropdownIndicator:zye,group:Zye,groupHeading:Kye,indicatorsContainer:kye,indicatorSeparator:Bye,input:n0e,loadingIndicator:Hye,loadingMessage:wye,menu:mye,menuList:vye,menuPortal:Cye,multiValue:s0e,multiValueLabel:l0e,multiValueRemove:u0e,noOptionsMessage:xye,option:m0e,placeholder:b0e,singleValue:x0e,valueContainer:Rye},sbe={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%)"},lbe=4,SU=4,ube=38,cbe=SU*2,fbe={baseUnit:SU,controlHeight:ube,menuGutter:cbe},lj={borderRadius:lbe,colors:sbe,spacing:fbe},dbe={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ZV(),captureMenuScroll:!ZV(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:$0e(),formatGroupLabel:nbe,getOptionLabel:rbe,getOptionValue:obe,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:ibe,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!iye(),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 xU(e,t,n,r){var o=TU(e,t,n),a=AU(e,t,n),s=CU(e,t),u=FT(e,t);return{type:"option",data:t,isDisabled:o,isSelected:a,label:s,value:u,index:r}}function $T(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(s,u){return xU(e,s,t,u)}).filter(function(s){return _U(e,s)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=xU(e,n,t,r);return _U(e,a)?a:void 0}).filter(lye)}function wU(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,QD(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function EU(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,QD(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 pbe(e,t){return wU($T(e,t))}function _U(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,a=t.isSelected,s=t.label,u=t.value;return(!RU(e)||!a)&&OU(e,{label:s,value:u,data:o},r)}function hbe(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 mbe(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var uj=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},CU=function(t,n){return t.getOptionLabel(n)},FT=function(t,n){return t.getOptionValue(n)};function TU(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function AU(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=FT(e,t);return n.some(function(o){return FT(e,o)===r})}function OU(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var RU=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},gbe=1,NU=(function(e){Gge(n,e);var t=qge(n);function n(r){var o;if(Uge(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(QD(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=zT(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(zT(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=zT(f,g,g[0]||null);m&&o.onChange(b,{action:"pop-value",removedValue:m})},o.getFocusedOptionId=function(f){return uj(o.state.focusableOptionsWithIds,f)},o.getFocusableOptionsWithIds=function(){return EU($T(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 eye.apply(void 0,[o.props.classNamePrefix].concat(p))},o.getOptionLabel=function(f){return CU(o.props,f)},o.getOptionValue=function(f){return FT(o.props,f)},o.getStyles=function(f,p){var m=o.props.unstyled,g=abe[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 C0e(o.props)},o.buildCategorizedOptions=function(){return $T(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return wU(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(f,p){o.setState({ariaSelection:At({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&&IT(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 RU(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||++gbe),o.state.selectValue=YV(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=uj(a,s[u])}return o}return Hge(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&&WV(this.menuListRef,this.focusedOptionRef),tbe()&&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&&(WV(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(lj):At(At({},lj),this.props.theme):lj}},{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 TU(this.props,o,a)}},{key:"isOptionSelected",value:function(o,a){return AU(this.props,o,a)}},{key:"filterOption",value:function(o,a){return OU(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=At(At(At({"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(L0e,Ct({id:O,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:MT,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(gye,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(q0e,{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(J0e,{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(D0e,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=YV(w),O={};if(s&&(w!==s.value||S!==s.options||x!==s.menuIsOpen||E!==s.inputValue)){var k=x?pbe(o,N):[],M=x?EU($T(o,N),"".concat(b,"-option")):[],D=u?hbe(a,N):null,P=mbe(a,k),B=uj(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:zT(C,N,N[0]||null),options:N,action:"initial-input-focus"},X=!g),p?.action==="initial-input-focus"&&(U=null),At(At(At({},O),V),{},{prevProps:o,ariaSelection:U,prevWasFocused:X})}}]),n})(oe.Component);NU.defaultProps=dbe;var ybe=oe.forwardRef(function(e,t){var n=Vge(e);return F.createElement(NU,Ct({ref:t},n))}),bbe=ybe;const vbe=({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(bbe,{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})},Sbe=e=>typeof e=="boolean"||e instanceof Boolean,xbe=e=>typeof e=="number"||e instanceof Number,wbe=e=>typeof e=="bigint"||e instanceof BigInt,kU=e=>!!e&&e instanceof Date,Ebe=e=>typeof e=="string"||e instanceof String,_be=e=>Array.isArray(e),MU=e=>typeof e=="object"&&e!==null,IU=e=>!!e&&e instanceof Object&&typeof e=="function";function LT(e,t){return t===void 0&&(t=!1),!e||t?`"${e}"`:e}function Cbe(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}function DU(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 Tbe({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},LT(t,f.quotesForFieldNames),":"):oe.createElement("span",{className:f.label},LT(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(cj,{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 Tbe(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},LT(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 Abe(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:a,clickToExpandNode:s,level:u,outerRef:f,beforeExpandChange:p}=e;return DU({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 Obe(e){let{field:t,value:n,style:r,lastElement:o,level:a,shouldExpandNode:s,clickToExpandNode:u,outerRef:f,beforeExpandChange:p}=e;return DU({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 Rbe(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):Ebe(n)?(a=Cbe(n,!r.noQuotesForStringValues,r.stringifyStringValues),s=r.stringValue):Sbe(n)?(a=n?"true":"false",s=r.booleanValue):xbe(n)?(a=n.toString(),s=r.numberValue):wbe(n)?(a=`${n.toString()}n`,s=r.numberValue):kU(n)?a=n.toISOString():IU(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},LT(t,r.quotesForFieldNames),":"),oe.createElement("span",{className:s},a),!o&&oe.createElement("span",{className:r.punctuation},","))}function cj(e){const t=e.value;return _be(t)?oe.createElement(Obe,Object.assign({},e)):MU(t)&&!kU(t)&&!IU(t)?oe.createElement(Abe,Object.assign({},e)):oe.createElement(Rbe,Object.assign({},e))}var Qn={"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 jU={collapseJson:"collapse JSON",expandJson:"expand JSON"},fj={container:Qn["container-light"],basicChildStyle:Qn["basic-element-style"],childFieldsContainer:Qn["child-fields-container"],label:Qn["label-light"],clickableLabel:Qn["clickable-label-light"],nullValue:Qn["value-null-light"],undefinedValue:Qn["value-undefined-light"],stringValue:Qn["value-string-light"],booleanValue:Qn["value-boolean-light"],numberValue:Qn["value-number-light"],otherValue:Qn["value-other-light"],punctuation:Qn["punctuation-light"],collapseIcon:Qn["collapse-icon-light"],expandIcon:Qn["expand-icon-light"],collapsedContent:Qn["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:jU,stringifyStringValues:!1},Nbe={container:Qn["container-dark"],basicChildStyle:Qn["basic-element-style"],childFieldsContainer:Qn["child-fields-container"],label:Qn["label-dark"],clickableLabel:Qn["clickable-label-dark"],nullValue:Qn["value-null-dark"],undefinedValue:Qn["value-undefined-dark"],stringValue:Qn["value-string-dark"],booleanValue:Qn["value-boolean-dark"],numberValue:Qn["value-number-dark"],otherValue:Qn["value-other-dark"],punctuation:Qn["punctuation-dark"],collapseIcon:Qn["collapse-icon-dark"],expandIcon:Qn["expand-icon-dark"],collapsedContent:Qn["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:jU,stringifyStringValues:!1},kbe=()=>!0,Mbe=e=>e<1,Ibe=e=>{let{data:t,style:n=fj,shouldExpandNode:r=kbe,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&&MU(t)?Object.entries(t).map(p=>{let[m,g]=p;return oe.createElement(cj,{key:m,field:m,value:g,style:{...fj,...n},lastElement:!0,level:1,shouldExpandNode:r,clickToExpandNode:o,beforeExpandChange:a,outerRef:f})}):oe.createElement(cj,{value:t,style:{...fj,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:o,outerRef:f,beforeExpandChange:a}))};function Dbe(e){for(const t in e)if(Object.hasOwn(e,t))return!1;return!0}function jbe(e){if(e==null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype?!1:Dbe(e)}const Pbe=({data:e,className:t="json-display"})=>A.jsx("div",{className:t,children:A.jsx(Ibe,{data:jbe(e)?"":e,style:Nbe,shouldExpandNode:Mbe})});function zbe(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 $be(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=PU(o);S===void 0&&o>0&&(S=(g-m)/o);const x=S?1/S:void 0,[E,C]=S?BT(S,s):[void 0,""],[N,O]=x?BT(x,1e3):[void 0,""],k=(E||"?")+`${C}${a}/s`,M=N?`${N}${O}s/`+a:"?",D=x&&x>1?M:k,P=r?BT(g,s).join(""):g.toString(),B=r&&b!==null?BT(b,s).join(""):b?.toString()??"?",V=S&&b!==null?(b-g)/S:0,U=S?PU(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 PU(e){const t=Math.floor(e/60),n=Math.floor(e%60);return`${t}:${n.toString().padStart(2,"0")}`}function BT(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 Fbe=({state:e,className:t="reacttqdm",...n})=>{const r=oe.useRef(null),o=oe.useRef(null);oe.useEffect(()=>{const s=()=>{!r.current||!o.current||zbe(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:$be(e)})]})})};var VT={};var zU;function Lbe(){if(zU)return VT;zU=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-]+$/;VT.format=s,VT.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 VT}var Bbe=Lbe(),cb=new Map,$U=function(t){return t.cloneNode(!0)},FU=function(){return window.location.protocol==="file:"},LU=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=Bbe.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(FU()?"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||FU()&&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()},Vp={},BU=function(t,n){Vp[t]=Vp[t]||[],Vp[t].push(n)},Vbe=function(t){for(var n=function(s,u){setTimeout(function(){if(Array.isArray(Vp[t])){var f=cb.get(t),p=Vp[t][s];f instanceof SVGSVGElement&&p(null,$U(f)),f instanceof Error&&p(f),s===Vp[t].length-1&&delete Vp[t]}},0)},r=0,o=Vp[t].length;r<o;r++)n(r)},Ube=function(t,n,r){if(cb.has(t)){var o=cb.get(t);if(o===void 0){BU(t,r);return}if(o instanceof SVGSVGElement){r(null,$U(o));return}}cb.set(t,void 0),BU(t,r),LU(t,n,function(a,s){var u;a?cb.set(t,a):((u=s.responseXML)===null||u===void 0?void 0:u.documentElement)instanceof SVGSVGElement&&cb.set(t,s.responseXML.documentElement),Vbe(t)})},Hbe=function(t,n,r){LU(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)})},Gbe=0,Ybe=function(){return++Gbe},wc=[],VU={},qbe="http://www.w3.org/2000/svg",dj="http://www.w3.org/1999/xlink",UU=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(wc.indexOf(t)!==-1){wc.splice(wc.indexOf(t),1),t=null;return}wc.push(t),t.setAttribute("src","");var p=o?Ube:Hbe;p(f,a,function(m,g){if(!g){wc.splice(wc.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(q2(q2(q2([],(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+"-"+Ybe();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(dj,"href");_e&&_e.toString()==="#"+M[Z].id&&pe.push(de[he])}for(var ue=0,fe=pe.length;ue<fe;ue++)pe[ue].setAttributeNS(dj,"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"&&!VU[f])){for(var ee=0,H=U.length;ee<H;ee++)new Function(U[ee])(window);VU[f]=!0}var ne=g.querySelectorAll("style");if(Array.prototype.forEach.call(ne,function(Q){Q.textContent+=""}),g.setAttribute("xmlns",qbe),g.setAttribute("xmlns:xlink",dj),s(g),!t.parentNode){wc.splice(wc.indexOf(t),1),t=null,u(new Error("Parent node is null"));return}t.parentNode.replaceChild(g,t),wc.splice(wc.indexOf(t),1),t=null,u(null,g)})},Xbe=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++)UU(t[O],S,C,g,x,p,function(M,D){u(M,D),t&&"length"in t&&t.length===++N&&a(N)});else t?UU(t,S,C,g,x,p,function(M,D){u(M,D),a(1),t=null}):a(0)},Wbe=function(t){var n=t?.ownerDocument||document;return n.defaultView||window},Zbe=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},Jbe=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],UT="http://www.w3.org/2000/svg",HU="http://www.w3.org/1999/xlink",pj=(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}NI(t,e);var n=t.prototype;return n.renderSVG=function(){var o=this;if(this.reactWrapper instanceof Wbe(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(UT,E),C.setAttribute("xmlns",UT),C.setAttribute("xmlns:xlink",HU),N=document.createElementNS(UT,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)}};Xbe(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;Zbe(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=F2(o,Jbe),p=u;return F.createElement(p,Ct({},f,{ref:this.refCallback},u==="svg"?{xmlns:UT,xmlnsXlink:HU}:{}),this.state.isLoading&&s&&F.createElement(s,null),this.state.hasError&&a&&F.createElement(a,null))},t})(F.Component);pj.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},pj.propTypes={afterInjection:_o.func,beforeInjection:_o.func,desc:_o.string,evalScripts:_o.oneOf(["always","once","never"]),fallback:_o.oneOfType([_o.func,_o.object,_o.string]),httpRequestWithCredentials:_o.bool,loading:_o.oneOfType([_o.func,_o.object,_o.string]),onError:_o.func,renumerateIRIElements:_o.bool,src:_o.string.isRequired,title:_o.string,useRequestCache:_o.bool,wrapper:_o.oneOf(["div","span","svg"])};const hj=({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}),Kbe=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(hj,{})}),Qbe=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(pj,{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(hj,{})}),eve=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(hj,{text:"Failed to load image"}):A.jsx("img",{ref:a,className:`streaming-image image-renderer ${o.className||""} ${f?" loading":""}`,alt:t,...o})});function HT(e){const t=e+"CollectionProvider",[n,r]=pc(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=H0(u),p=oe.forwardRef((x,E)=>{const{scope:C,children:N}=x,O=a(u,C),k=_r(E,O.collectionRef);return A.jsx(f,{ref:k,children:N})});p.displayName=u;const m=e+"CollectionItemSlot",g="data-radix-collection-item",b=H0(m),S=oe.forwardRef((x,E)=>{const{scope:C,children:N,...O}=x,k=oe.useRef(null),M=_r(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 tve=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"}),nve="VisuallyHidden",mj=F.forwardRef((e,t)=>A.jsx(mn.span,{...e,ref:t,style:{...tve,...e.style}}));mj.displayName=nve;var gj="ToastProvider",[yj,rve,ove]=HT("Toast"),[GU]=pc("Toast",[ove]),[ive,GT]=GU(gj),YU=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 \`${gj}\`. Expected non-empty \`string\`.`),A.jsx(yj.Provider,{scope:t,children:A.jsx(ive,{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})})};YU.displayName=gj;var qU="ToastViewport",ave=["F8"],bj="toast.viewportPause",vj="toast.viewportResume",XU=F.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=ave,label:o="Notifications ({hotkey})",...a}=e,s=GT(qU,n),u=rve(n),f=F.useRef(null),p=F.useRef(null),m=F.useRef(null),g=F.useRef(null),b=_r(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(bj);C.dispatchEvent(D),s.isClosePausedRef.current=!0}},O=()=>{if(s.isClosePausedRef.current){const D=new CustomEvent(vj);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,...vve(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);wj(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(Mue,{ref:f,role:"region","aria-label":o.replace("{hotkey}",S),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&A.jsx(Sj,{ref:p,onFocusFromOutsideViewport:()=>{const E=x({tabbingDirection:"forwards"});wj(E)}}),A.jsx(yj.Slot,{scope:n,children:A.jsx(mn.ol,{tabIndex:-1,...a,ref:b})}),w&&A.jsx(Sj,{ref:m,onFocusFromOutsideViewport:()=>{const E=x({tabbingDirection:"backwards"});wj(E)}})]})});XU.displayName=qU;var WU="ToastFocusProxy",Sj=F.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,a=GT(WU,n);return A.jsx(mj,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{const u=s.relatedTarget;!a.viewport?.contains(u)&&r()}})});Sj.displayName=WU;var ux="Toast",sve="toast.swipeStart",lve="toast.swipeMove",uve="toast.swipeCancel",cve="toast.swipeEnd",ZU=F.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...s}=e,[u,f]=Dp({prop:r,defaultProp:o??!0,onChange:a,caller:ux});return A.jsx(Kl,{present:n||u,children:A.jsx(pve,{open:u,...s,ref:t,onClose:()=>f(!1),onPause:Ia(e.onPause),onResume:Ia(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)})})})});ZU.displayName=ux;var[fve,dve]=GU(ux,{onClose(){}}),pve=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=GT(ux,n),[E,C]=F.useState(null),N=_r(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=Ia(()=>{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(bj,H),Y.addEventListener(vj,ee),()=>{Y.removeEventListener(bj,H),Y.removeEventListener(vj,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?rH(E):null,[E]);return x.viewport?A.jsxs(A.Fragment,{children:[J&&A.jsx(hve,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:J}),A.jsx(fve,{scope:n,onClose:X,children:hS.createPortal(A.jsx(yj.ItemSlot,{scope:n,children:A.jsx(kue,{asChild:!0,onEscapeKeyDown:ht(u,()=>{x.isFocusedToastEscapeKeyDownRef.current||X(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:A.jsx(mn.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,YT(lve,g,K,{discrete:!1})):oH(Z,x.swipeDirection,ie)?(k.current=Z,YT(sve,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};oH(ee,x.swipeDirection,x.swipeThreshold)?YT(cve,S,Q,{discrete:!0}):YT(uve,b,Q,{discrete:!0}),ne.addEventListener("click",ae=>ae.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),hve=e=>{const{__scopeToast:t,children:n,...r}=e,o=GT(ux,t),[a,s]=F.useState(!1),[u,f]=F.useState(!1);return yve(()=>s(!0)),F.useEffect(()=>{const p=window.setTimeout(()=>f(!0),1e3);return()=>window.clearTimeout(p)},[]),u?null:A.jsx(G2,{asChild:!0,children:A.jsx(mj,{...r,children:a&&A.jsxs(A.Fragment,{children:[o.label," ",n]})})})},mve="ToastTitle",JU=F.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return A.jsx(mn.div,{...r,ref:t})});JU.displayName=mve;var gve="ToastDescription",KU=F.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return A.jsx(mn.div,{...r,ref:t})});KU.displayName=gve;var QU="ToastAction",eH=F.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?A.jsx(nH,{altText:n,asChild:!0,children:A.jsx(xj,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${QU}\`. Expected non-empty \`string\`.`),null)});eH.displayName=QU;var tH="ToastClose",xj=F.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=dve(tH,n);return A.jsx(nH,{asChild:!0,children:A.jsx(mn.button,{type:"button",...r,ref:t,onClick:ht(e.onClick,o.onClose)})})});xj.displayName=tH;var nH=F.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return A.jsx(mn.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function rH(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),bve(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(...rH(r))}}),t}function YT(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?$I(o,a):o.dispatchEvent(a)}var oH=(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 yve(e=()=>{}){const t=Ia(e);Lf(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function bve(e){return e.nodeType===e.ELEMENT_NODE}function vve(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 wj(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Sve=YU,xve=XU,wve=ZU,Eve=JU,_ve=KU,Cve=eH,Tve=xj;const yi=[];for(let e=0;e<256;++e)yi.push((e+256).toString(16).slice(1));function Ave(e,t=0){return(yi[e[t+0]]+yi[e[t+1]]+yi[e[t+2]]+yi[e[t+3]]+"-"+yi[e[t+4]]+yi[e[t+5]]+"-"+yi[e[t+6]]+yi[e[t+7]]+"-"+yi[e[t+8]]+yi[e[t+9]]+"-"+yi[e[t+10]]+yi[e[t+11]]+yi[e[t+12]]+yi[e[t+13]]+yi[e[t+14]]+yi[e[t+15]]).toLowerCase()}let Ej;const Ove=new Uint8Array(16);function Rve(){if(!Ej){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ej=crypto.getRandomValues.bind(crypto)}return Ej(Ove)}const iH={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Nve(e,t,n){e=e||{};const r=e.random??e.rng?.()??Rve();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,Ave(r)}function _j(e,t,n){return iH.randomUUID&&!e?iH.randomUUID():Nve(e)}const aH=F.createContext(void 0),sH=F.createContext(void 0),kve=350,Mve=({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(_j(),{...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(aH.Provider,{value:E,children:A.jsx(sH.Provider,{value:F.useMemo(()=>({toastElementsMapRef:u,sortToasts:m}),[m]),children:A.jsxs(Sve,{...o,children:[e,Array.from(a).map(([C,N])=>A.jsx(jve,{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)},kve))}},C)),A.jsx(xve,{ref:f,className:"ToastViewport",style:t?{"--fixed-toast-height":`${t}px`}:void 0})]})})})},Ive=()=>{const e=F.useContext(aH);if(e)return e;throw new Error("useToast must be used within Toasts")},Dve=()=>{const e=F.useContext(sH);if(e)return e;throw new Error("useToastContext must be used within Toasts")},jve=({onOpenChange:e,toast:t,id:n,...r})=>{const o=F.useRef(null),a=Dve(),{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(wve,{...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(Pve,{status:t.status}),t.title&&A.jsx(Eve,{className:"ToastTitle",children:t.title}),A.jsx(_ve,{className:"ToastDescription",children:t.description}),t.action&&A.jsx(Cve,{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(Tve,{"aria-label":"Close",className:"ToastClose",children:A.jsx(vT,{style:{fontSize:"12px"}})})]})})},Pve=({status:e})=>e!=="default"&&e?A.jsxs("div",{style:{gridArea:"icon",alignSelf:"start"},children:[e==="success"&&A.jsx(Xhe,{style:{color:"#61d345",fontSize:"20px"}}),e==="error"&&A.jsx(Whe,{style:{color:"#ff4b4b",fontSize:"20px"}})]}):null,zve={},lH=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:()=>{(zve?"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},uH=e=>e?lH(e):lH;var qT={exports:{}},Cj={},XT={exports:{}},Tj={};var cH;function $ve(){if(cH)return Tj;cH=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 Tj.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Tj}var Aj={};var fH;function Fve(){return fH||(fH=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;Aj.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())})()),Aj}var dH;function pH(){return dH||(dH=1,process.env.NODE_ENV==="production"?XT.exports=$ve():XT.exports=Fve()),XT.exports}var hH;function Lve(){if(hH)return Cj;hH=1;var e=oe,t=pH();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 Cj.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},Cj}var Oj={};var mH;function Bve(){return mH||(mH=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=pH(),r=typeof Object.is=="function"?Object.is:e,o=n.useSyncExternalStore,a=t.useRef,s=t.useEffect,u=t.useMemo,f=t.useDebugValue;Oj.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())})()),Oj}var gH;function Vve(){return gH||(gH=1,process.env.NODE_ENV==="production"?qT.exports=Lve():qT.exports=Bve()),qT.exports}var Uve=Vve();const yH=Df(Uve),bH={},{useDebugValue:Hve}=oe,{useSyncExternalStoreWithSelector:Gve}=yH;let vH=!1;const Yve=e=>e;function qve(e,t=Yve,n){(bH?"production":void 0)!=="production"&&n&&!vH&&(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"),vH=!0);const r=Gve(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Hve(r),r}const SH=e=>{(bH?"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"?uH(e):e,n=(r,o)=>qve(t,r,o);return Object.assign(n,t),n},Qs=e=>e?SH(e):SH;class Jf{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 WT=2e3;class Xve extends Jf{constructor(t){super(t),this._responsive=!1,this._last_pong=0,this._last_pong=Date.now()-WT*100}start(){this.stop(),this.pingInterval=setInterval(()=>{this.context.worker.is_open&&this.context.worker.send({type:"ping"})},WT),this.responsivenessCheckInterval=setInterval(()=>{this._responsive=Date.now()-this._last_pong<=WT*3},WT*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 xH=(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)},wH=2e3,EH=2e3;class Wve extends Jf{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()},wH),this._groupupdatetimer=setTimeout(()=>{this.sync_local_group_updates()},EH)}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={};xH(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&&xH(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()},wH)}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()},EH)}locally_update_node(t){const n=this._local_nodeupdates.get(t.id);if(n){const{new_obj:r,change:o}=jf(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}=jf(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 ou{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 Rj extends ou{constructor({data:t,mime:n}){super({data:ZT(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 ZT=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},Zve={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 Nj extends ou{constructor({data:t,mime:n}){super({data:ZT(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=Zve[n](this.data,t),this._value}get value(){return this._value}toString(){return this._value===null?"null":this._value.toString()}}class Kf extends ou{constructor({data:t,mime:n}){const r=ZT(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 Kf({data:n,mime:"application/json"})}toString(){return typeof this._json=="string"?this._json:JSON.stringify(this._json)}}class kj extends ou{constructor({data:t,mime:n}){const r=ZT(t);super({data:r,mime:n}),this._value=new TextDecoder().decode(r)}get value(){return this._value}toString(){return this._value}}const _H=({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 Nj({data:e,mime:t}):t.startsWith("application/json")?new Kf({data:e,mime:t}):t==="text"||t.startsWith("text/")?new kj({data:e,mime:t}):new Rj({data:e,mime:t}):new ou({data:e,mime:t})};class Jve extends Jf{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||_j();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
|
+
`]))),Hye=function(t,n){var r=t.isFocused,o=t.size,a=t.theme,s=a.colors,u=a.spacing.baseUnit;return At({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})},nj=function(t){var n=t.delay,r=t.offset;return Et("span",{css:kS({animation:"".concat(Uye," 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+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3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gICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Gye=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,a=o===void 0?4:o,s=Zf(t,Dye);return Et("div",Ct({},uo(At(At({},s),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),Et(nj,{delay:0,offset:r}),Et(nj,{delay:160,offset:!0}),Et(nj,{delay:320,offset:!r}))},Yye=function(t,n){var r=t.isDisabled,o=t.isFocused,a=t.theme,s=a.colors,u=a.borderRadius,f=a.spacing;return At({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}})},qye=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},uo(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":u}),s,{"aria-disabled":r||void 0}),n)},Xye=qye,Wye=["data"],Zye=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},Jye=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({},uo(t,"group",{group:!0}),f),Et(s,Ct({},u,{selectProps:g,theme:m,getStyles:o,getClassNames:a,cx:r}),p),Et("div",null,n))},Kye=function(t,n){var r=t.theme,o=r.colors,a=r.spacing;return At({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"})},Qye=function(t){var n=qV(t);n.data;var r=Zf(n,Wye);return Et("div",Ct({},uo(t,"groupHeading",{"group-heading":!0}),r))},e0e=Jye,t0e=["innerRef","isDisabled","isHidden","inputClassName"],n0e=function(t,n){var r=t.isDisabled,o=t.value,a=t.theme,s=a.spacing,u=a.colors;return At(At({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},r0e),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:u.neutral80})},iU={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},r0e={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":At({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},iU)},o0e=function(t){return At({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},iU)},i0e=function(t){var n=t.cx,r=t.value,o=qV(t),a=o.innerRef,s=o.isDisabled,u=o.isHidden,f=o.inputClassName,p=Zf(o,t0e);return Et("div",Ct({},uo(t,"input",{"input-container":!0}),{"data-value":r||""}),Et("input",Ct({className:n({input:!0},f),ref:a,style:o0e(u),disabled:s},p)))},a0e=i0e,s0e=function(t,n){var r=t.theme,o=r.spacing,a=r.borderRadius,s=r.colors;return At({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:a/2,margin:o.baseUnit/2})},l0e=function(t,n){var r=t.theme,o=r.borderRadius,a=r.colors,s=t.cropWithEllipsis;return At({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})},u0e=function(t,n){var r=t.theme,o=r.spacing,a=r.borderRadius,s=r.colors,u=t.isFocused;return At({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}})},aU=function(t){var n=t.children,r=t.innerProps;return Et("div",r,n)},c0e=aU,f0e=aU;function d0e(e){var t=e.children,n=e.innerProps;return Et("div",Ct({role:"button"},n),t||Et(tj,{size:14}))}var p0e=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:At(At({},uo(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),a),selectProps:f},Et(m,{data:o,innerProps:At({},uo(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:f},n),Et(g,{data:o,innerProps:At(At({},uo(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},u),selectProps:f}))},h0e=p0e,m0e=function(t,n){var r=t.isDisabled,o=t.isFocused,a=t.isSelected,s=t.theme,u=s.spacing,f=s.colors;return At({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}})},g0e=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({},uo(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":a}),{ref:s,"aria-disabled":r},u),n)},y0e=g0e,b0e=function(t,n){var r=t.theme,o=r.spacing,a=r.colors;return At({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},v0e=function(t){var n=t.children,r=t.innerProps;return Et("div",Ct({},uo(t,"placeholder",{placeholder:!0}),r),n)},S0e=v0e,x0e=function(t,n){var r=t.isDisabled,o=t.theme,a=o.spacing,s=o.colors;return At({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})},w0e=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return Et("div",Ct({},uo(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},E0e=w0e,_0e={ClearIndicator:Lye,Control:Xye,DropdownIndicator:$ye,DownChevron:rU,CrossIcon:tj,Group:e0e,GroupHeading:Qye,IndicatorsContainer:Mye,IndicatorSeparator:Vye,Input:a0e,LoadingIndicator:Gye,Menu:bye,MenuList:Sye,MenuPortal:Tye,LoadingMessage:_ye,NoOptionsMessage:Eye,MultiValue:h0e,MultiValueContainer:c0e,MultiValueLabel:f0e,MultiValueRemove:d0e,Option:y0e,Placeholder:S0e,SelectContainer:Oye,SingleValue:E0e,ValueContainer:Nye},C0e=function(t){return At(At({},_0e),t.components)},sU=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function T0e(e,t){return!!(e===t||sU(e)&&sU(t))}function A0e(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!T0e(e[n],t[n]))return!1;return!0}function O0e(e,t){t===void 0&&(t=A0e);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 R0e(){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)."}for(var N0e=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:R0e},k0e=function(t){return Et("span",Ct({css:N0e},t))},lU=k0e,M0e={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:"",".")}},I0e=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 At(At({},M0e),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=At({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(lU,{id:p},L&&Y),Et(lU,{"aria-live":P,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!L&&Y))},D0e=I0e,rj=[{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źẑżžẓẕƶȥɀⱬꝣ"}],j0e=new RegExp("["+rj.map(function(e){return e.letters}).join("")+"]","g"),uU={},oj=0;oj<rj.length;oj++)for(var ij=rj[oj],aj=0;aj<ij.letters.length;aj++)uU[ij.letters[aj]]=ij.base;var cU=function(t){return t.replace(j0e,function(n){return uU[n]})},P0e=O0e(cU),fU=function(t){return t.replace(/^\s+|\s+$/g,"")},z0e=function(t){return"".concat(t.label," ").concat(t.value)},$0e=function(t){return function(n,r){if(n.data.__isNew__)return!0;var o=At({ignoreCase:!0,ignoreAccents:!0,stringify:z0e,trim:!0,matchFrom:"any"},t),a=o.ignoreCase,s=o.ignoreAccents,u=o.stringify,f=o.trim,p=o.matchFrom,m=f?fU(r):r,g=f?fU(u(n)):u(n);return a&&(m=m.toLowerCase(),g=g.toLowerCase()),s&&(m=P0e(m),g=cU(g)),p==="start"?g.substr(0,m.length)===m:g.indexOf(m)>-1}},F0e=["innerRef"];function L0e(e){var t=e.innerRef,n=Zf(e,F0e),r=cye(n,"onExited","in","enter","exit","appear");return Et("input",Ct({ref:t},r,{css:kS({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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZ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3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var B0e=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function V0e(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&&B0e(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=sye?{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 dU=["boxSizing","height","overflow","paddingRight","position"],pU={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function hU(e){e.cancelable&&e.preventDefault()}function mU(e){e.stopPropagation()}function gU(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function yU(){return"ontouchstart"in window||navigator.maxTouchPoints}var bU=!!(typeof window<"u"&&window.document&&window.document.createElement),lx=0,ub={capture:!1,passive:!1};function U0e(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(bU){var p=document.body,m=p&&p.style;if(r&&dU.forEach(function(w){var x=m&&m[w];o.current[w]=x}),r&&lx<1){var g=parseInt(o.current.paddingRight,10)||0,b=document.body?document.body.clientWidth:0,S=window.innerWidth-b+g||0;Object.keys(pU).forEach(function(w){var x=pU[w];m&&(m[w]=x)}),m&&(m.paddingRight="".concat(S,"px"))}p&&yU()&&(p.addEventListener("touchmove",hU,ub),f&&(f.addEventListener("touchstart",gU,ub),f.addEventListener("touchmove",mU,ub))),lx+=1}},[r]),u=oe.useCallback(function(f){if(bU){var p=document.body,m=p&&p.style;lx=Math.max(lx-1,0),r&&lx<1&&dU.forEach(function(g){var b=o.current[g];m&&(m[g]=b)}),p&&yU()&&(p.removeEventListener("touchmove",hU,ub),f&&(f.removeEventListener("touchstart",gU,ub),f.removeEventListener("touchmove",mU,ub)))}},[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 H0e(){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 G0e=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},Y0e=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50Oi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PEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:H0e};function q0e(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=V0e({isEnabled:o,onBottomArrive:a,onBottomLeave:s,onTopArrive:u,onTopLeave:f}),m=U0e({isEnabled:n}),g=function(S){p(S),m(S)};return Et(oe.Fragment,null,n&&Et("div",{onClick:G0e,css:Y0e}),t(g))}function X0e(){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 W0e=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIl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FJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:X0e},Z0e=function(t){var n=t.name,r=t.onFocus;return Et("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:W0e,value:"",onChange:function(){}})},J0e=Z0e;function sj(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 K0e(){return sj(/^iPhone/i)}function vU(){return sj(/^Mac/i)}function Q0e(){return sj(/^iPad/i)||vU()&&navigator.maxTouchPoints>1}function ebe(){return K0e()||Q0e()}function tbe(){return vU()||ebe()}var nbe=function(t){return t.label},rbe=function(t){return t.label},obe=function(t){return t.value},ibe=function(t){return!!t.isDisabled},abe={clearIndicator:Fye,container:Aye,control:Yye,dropdownIndicator:zye,group:Zye,groupHeading:Kye,indicatorsContainer:kye,indicatorSeparator:Bye,input:n0e,loadingIndicator:Hye,loadingMessage:wye,menu:mye,menuList:vye,menuPortal:Cye,multiValue:s0e,multiValueLabel:l0e,multiValueRemove:u0e,noOptionsMessage:xye,option:m0e,placeholder:b0e,singleValue:x0e,valueContainer:Rye},sbe={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%)"},lbe=4,SU=4,ube=38,cbe=SU*2,fbe={baseUnit:SU,controlHeight:ube,menuGutter:cbe},lj={borderRadius:lbe,colors:sbe,spacing:fbe},dbe={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ZV(),captureMenuScroll:!ZV(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:$0e(),formatGroupLabel:nbe,getOptionLabel:rbe,getOptionValue:obe,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:ibe,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!iye(),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 xU(e,t,n,r){var o=TU(e,t,n),a=AU(e,t,n),s=CU(e,t),u=FT(e,t);return{type:"option",data:t,isDisabled:o,isSelected:a,label:s,value:u,index:r}}function $T(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(s,u){return xU(e,s,t,u)}).filter(function(s){return _U(e,s)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=xU(e,n,t,r);return _U(e,a)?a:void 0}).filter(lye)}function wU(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,QD(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function EU(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,QD(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 pbe(e,t){return wU($T(e,t))}function _U(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,a=t.isSelected,s=t.label,u=t.value;return(!RU(e)||!a)&&OU(e,{label:s,value:u,data:o},r)}function hbe(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 mbe(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var uj=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},CU=function(t,n){return t.getOptionLabel(n)},FT=function(t,n){return t.getOptionValue(n)};function TU(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function AU(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=FT(e,t);return n.some(function(o){return FT(e,o)===r})}function OU(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var RU=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},gbe=1,NU=(function(e){Gge(n,e);var t=qge(n);function n(r){var o;if(Uge(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(QD(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=zT(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(zT(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=zT(f,g,g[0]||null);m&&o.onChange(b,{action:"pop-value",removedValue:m})},o.getFocusedOptionId=function(f){return uj(o.state.focusableOptionsWithIds,f)},o.getFocusableOptionsWithIds=function(){return EU($T(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 eye.apply(void 0,[o.props.classNamePrefix].concat(p))},o.getOptionLabel=function(f){return CU(o.props,f)},o.getOptionValue=function(f){return FT(o.props,f)},o.getStyles=function(f,p){var m=o.props.unstyled,g=abe[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 C0e(o.props)},o.buildCategorizedOptions=function(){return $T(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return wU(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(f,p){o.setState({ariaSelection:At({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&&IT(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 RU(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||++gbe),o.state.selectValue=YV(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=uj(a,s[u])}return o}return Hge(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&&WV(this.menuListRef,this.focusedOptionRef),tbe()&&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&&(WV(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(lj):At(At({},lj),this.props.theme):lj}},{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 TU(this.props,o,a)}},{key:"isOptionSelected",value:function(o,a){return AU(this.props,o,a)}},{key:"filterOption",value:function(o,a){return OU(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=At(At(At({"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(L0e,Ct({id:O,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:MT,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(gye,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(q0e,{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(J0e,{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(D0e,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=YV(w),O={};if(s&&(w!==s.value||S!==s.options||x!==s.menuIsOpen||E!==s.inputValue)){var k=x?pbe(o,N):[],M=x?EU($T(o,N),"".concat(b,"-option")):[],D=u?hbe(a,N):null,P=mbe(a,k),B=uj(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:zT(C,N,N[0]||null),options:N,action:"initial-input-focus"},X=!g),p?.action==="initial-input-focus"&&(U=null),At(At(At({},O),V),{},{prevProps:o,ariaSelection:U,prevWasFocused:X})}}]),n})(oe.Component);NU.defaultProps=dbe;var ybe=oe.forwardRef(function(e,t){var n=Vge(e);return F.createElement(NU,Ct({ref:t},n))}),bbe=ybe;const vbe=({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(bbe,{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})},Sbe=e=>typeof e=="boolean"||e instanceof Boolean,xbe=e=>typeof e=="number"||e instanceof Number,wbe=e=>typeof e=="bigint"||e instanceof BigInt,kU=e=>!!e&&e instanceof Date,Ebe=e=>typeof e=="string"||e instanceof String,_be=e=>Array.isArray(e),MU=e=>typeof e=="object"&&e!==null,IU=e=>!!e&&e instanceof Object&&typeof e=="function";function LT(e,t){return t===void 0&&(t=!1),!e||t?`"${e}"`:e}function Cbe(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}function DU(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 Tbe({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},LT(t,f.quotesForFieldNames),":"):oe.createElement("span",{className:f.label},LT(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(cj,{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 Tbe(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},LT(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 Abe(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:a,clickToExpandNode:s,level:u,outerRef:f,beforeExpandChange:p}=e;return DU({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 Obe(e){let{field:t,value:n,style:r,lastElement:o,level:a,shouldExpandNode:s,clickToExpandNode:u,outerRef:f,beforeExpandChange:p}=e;return DU({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 Rbe(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):Ebe(n)?(a=Cbe(n,!r.noQuotesForStringValues,r.stringifyStringValues),s=r.stringValue):Sbe(n)?(a=n?"true":"false",s=r.booleanValue):xbe(n)?(a=n.toString(),s=r.numberValue):wbe(n)?(a=`${n.toString()}n`,s=r.numberValue):kU(n)?a=n.toISOString():IU(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},LT(t,r.quotesForFieldNames),":"),oe.createElement("span",{className:s},a),!o&&oe.createElement("span",{className:r.punctuation},","))}function cj(e){const t=e.value;return _be(t)?oe.createElement(Obe,Object.assign({},e)):MU(t)&&!kU(t)&&!IU(t)?oe.createElement(Abe,Object.assign({},e)):oe.createElement(Rbe,Object.assign({},e))}var Qn={"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 jU={collapseJson:"collapse JSON",expandJson:"expand JSON"},fj={container:Qn["container-light"],basicChildStyle:Qn["basic-element-style"],childFieldsContainer:Qn["child-fields-container"],label:Qn["label-light"],clickableLabel:Qn["clickable-label-light"],nullValue:Qn["value-null-light"],undefinedValue:Qn["value-undefined-light"],stringValue:Qn["value-string-light"],booleanValue:Qn["value-boolean-light"],numberValue:Qn["value-number-light"],otherValue:Qn["value-other-light"],punctuation:Qn["punctuation-light"],collapseIcon:Qn["collapse-icon-light"],expandIcon:Qn["expand-icon-light"],collapsedContent:Qn["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:jU,stringifyStringValues:!1},Nbe={container:Qn["container-dark"],basicChildStyle:Qn["basic-element-style"],childFieldsContainer:Qn["child-fields-container"],label:Qn["label-dark"],clickableLabel:Qn["clickable-label-dark"],nullValue:Qn["value-null-dark"],undefinedValue:Qn["value-undefined-dark"],stringValue:Qn["value-string-dark"],booleanValue:Qn["value-boolean-dark"],numberValue:Qn["value-number-dark"],otherValue:Qn["value-other-dark"],punctuation:Qn["punctuation-dark"],collapseIcon:Qn["collapse-icon-dark"],expandIcon:Qn["expand-icon-dark"],collapsedContent:Qn["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:jU,stringifyStringValues:!1},kbe=()=>!0,Mbe=e=>e<1,Ibe=e=>{let{data:t,style:n=fj,shouldExpandNode:r=kbe,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&&MU(t)?Object.entries(t).map(p=>{let[m,g]=p;return oe.createElement(cj,{key:m,field:m,value:g,style:{...fj,...n},lastElement:!0,level:1,shouldExpandNode:r,clickToExpandNode:o,beforeExpandChange:a,outerRef:f})}):oe.createElement(cj,{value:t,style:{...fj,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:o,outerRef:f,beforeExpandChange:a}))};function Dbe(e){for(const t in e)if(Object.hasOwn(e,t))return!1;return!0}function jbe(e){if(e==null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype?!1:Dbe(e)}const Pbe=({data:e,className:t="json-display"})=>A.jsx("div",{className:t,children:A.jsx(Ibe,{data:jbe(e)?"":e,style:Nbe,shouldExpandNode:Mbe})});function zbe(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 $be(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=PU(o);S===void 0&&o>0&&(S=(g-m)/o);const x=S?1/S:void 0,[E,C]=S?BT(S,s):[void 0,""],[N,O]=x?BT(x,1e3):[void 0,""],k=(E||"?")+`${C}${a}/s`,M=N?`${N}${O}s/`+a:"?",D=x&&x>1?M:k,P=r?BT(g,s).join(""):g.toString(),B=r&&b!==null?BT(b,s).join(""):b?.toString()??"?",V=S&&b!==null?(b-g)/S:0,U=S?PU(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 PU(e){const t=Math.floor(e/60),n=Math.floor(e%60);return`${t}:${n.toString().padStart(2,"0")}`}function BT(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 Fbe=({state:e,className:t="reacttqdm",...n})=>{const r=oe.useRef(null),o=oe.useRef(null);oe.useEffect(()=>{const s=()=>{!r.current||!o.current||zbe(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:$be(e)})]})})};var VT={};var zU;function Lbe(){if(zU)return VT;zU=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-]+$/;VT.format=s,VT.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 VT}var Bbe=Lbe(),cb=new Map,$U=function(t){return t.cloneNode(!0)},FU=function(){return window.location.protocol==="file:"},LU=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=Bbe.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(FU()?"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||FU()&&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()},Vp={},BU=function(t,n){Vp[t]=Vp[t]||[],Vp[t].push(n)},Vbe=function(t){for(var n=function(s,u){setTimeout(function(){if(Array.isArray(Vp[t])){var f=cb.get(t),p=Vp[t][s];f instanceof SVGSVGElement&&p(null,$U(f)),f instanceof Error&&p(f),s===Vp[t].length-1&&delete Vp[t]}},0)},r=0,o=Vp[t].length;r<o;r++)n(r)},Ube=function(t,n,r){if(cb.has(t)){var o=cb.get(t);if(o===void 0){BU(t,r);return}if(o instanceof SVGSVGElement){r(null,$U(o));return}}cb.set(t,void 0),BU(t,r),LU(t,n,function(a,s){var u;a?cb.set(t,a):((u=s.responseXML)===null||u===void 0?void 0:u.documentElement)instanceof SVGSVGElement&&cb.set(t,s.responseXML.documentElement),Vbe(t)})},Hbe=function(t,n,r){LU(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)})},Gbe=0,Ybe=function(){return++Gbe},wc=[],VU={},qbe="http://www.w3.org/2000/svg",dj="http://www.w3.org/1999/xlink",UU=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(wc.indexOf(t)!==-1){wc.splice(wc.indexOf(t),1),t=null;return}wc.push(t),t.setAttribute("src","");var p=o?Ube:Hbe;p(f,a,function(m,g){if(!g){wc.splice(wc.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(q2(q2(q2([],(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+"-"+Ybe();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(dj,"href");_e&&_e.toString()==="#"+M[Z].id&&pe.push(de[he])}for(var ue=0,fe=pe.length;ue<fe;ue++)pe[ue].setAttributeNS(dj,"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"&&!VU[f])){for(var ee=0,H=U.length;ee<H;ee++)new Function(U[ee])(window);VU[f]=!0}var ne=g.querySelectorAll("style");if(Array.prototype.forEach.call(ne,function(Q){Q.textContent+=""}),g.setAttribute("xmlns",qbe),g.setAttribute("xmlns:xlink",dj),s(g),!t.parentNode){wc.splice(wc.indexOf(t),1),t=null,u(new Error("Parent node is null"));return}t.parentNode.replaceChild(g,t),wc.splice(wc.indexOf(t),1),t=null,u(null,g)})},Xbe=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++)UU(t[O],S,C,g,x,p,function(M,D){u(M,D),t&&"length"in t&&t.length===++N&&a(N)});else t?UU(t,S,C,g,x,p,function(M,D){u(M,D),a(1),t=null}):a(0)},Wbe=function(t){var n=t?.ownerDocument||document;return n.defaultView||window},Zbe=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},Jbe=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],UT="http://www.w3.org/2000/svg",HU="http://www.w3.org/1999/xlink",pj=(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}NI(t,e);var n=t.prototype;return n.renderSVG=function(){var o=this;if(this.reactWrapper instanceof Wbe(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(UT,E),C.setAttribute("xmlns",UT),C.setAttribute("xmlns:xlink",HU),N=document.createElementNS(UT,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)}};Xbe(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;Zbe(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=F2(o,Jbe),p=u;return F.createElement(p,Ct({},f,{ref:this.refCallback},u==="svg"?{xmlns:UT,xmlnsXlink:HU}:{}),this.state.isLoading&&s&&F.createElement(s,null),this.state.hasError&&a&&F.createElement(a,null))},t})(F.Component);pj.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},pj.propTypes={afterInjection:_o.func,beforeInjection:_o.func,desc:_o.string,evalScripts:_o.oneOf(["always","once","never"]),fallback:_o.oneOfType([_o.func,_o.object,_o.string]),httpRequestWithCredentials:_o.bool,loading:_o.oneOfType([_o.func,_o.object,_o.string]),onError:_o.func,renumerateIRIElements:_o.bool,src:_o.string.isRequired,title:_o.string,useRequestCache:_o.bool,wrapper:_o.oneOf(["div","span","svg"])};const hj=({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}),Kbe=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(hj,{})}),Qbe=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(pj,{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(hj,{})}),eve=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(hj,{text:"Failed to load image"}):A.jsx("img",{ref:a,className:`streaming-image image-renderer ${o.className||""} ${f?" loading":""}`,alt:t,...o})});function HT(e){const t=e+"CollectionProvider",[n,r]=pc(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=H0(u),p=oe.forwardRef((x,E)=>{const{scope:C,children:N}=x,O=a(u,C),k=_r(E,O.collectionRef);return A.jsx(f,{ref:k,children:N})});p.displayName=u;const m=e+"CollectionItemSlot",g="data-radix-collection-item",b=H0(m),S=oe.forwardRef((x,E)=>{const{scope:C,children:N,...O}=x,k=oe.useRef(null),M=_r(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 tve=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"}),nve="VisuallyHidden",mj=F.forwardRef((e,t)=>A.jsx(mn.span,{...e,ref:t,style:{...tve,...e.style}}));mj.displayName=nve;var gj="ToastProvider",[yj,rve,ove]=HT("Toast"),[GU]=pc("Toast",[ove]),[ive,GT]=GU(gj),YU=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 \`${gj}\`. Expected non-empty \`string\`.`),A.jsx(yj.Provider,{scope:t,children:A.jsx(ive,{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})})};YU.displayName=gj;var qU="ToastViewport",ave=["F8"],bj="toast.viewportPause",vj="toast.viewportResume",XU=F.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=ave,label:o="Notifications ({hotkey})",...a}=e,s=GT(qU,n),u=rve(n),f=F.useRef(null),p=F.useRef(null),m=F.useRef(null),g=F.useRef(null),b=_r(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(bj);C.dispatchEvent(D),s.isClosePausedRef.current=!0}},O=()=>{if(s.isClosePausedRef.current){const D=new CustomEvent(vj);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,...vve(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);wj(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(Mue,{ref:f,role:"region","aria-label":o.replace("{hotkey}",S),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&A.jsx(Sj,{ref:p,onFocusFromOutsideViewport:()=>{const E=x({tabbingDirection:"forwards"});wj(E)}}),A.jsx(yj.Slot,{scope:n,children:A.jsx(mn.ol,{tabIndex:-1,...a,ref:b})}),w&&A.jsx(Sj,{ref:m,onFocusFromOutsideViewport:()=>{const E=x({tabbingDirection:"backwards"});wj(E)}})]})});XU.displayName=qU;var WU="ToastFocusProxy",Sj=F.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,a=GT(WU,n);return A.jsx(mj,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{const u=s.relatedTarget;!a.viewport?.contains(u)&&r()}})});Sj.displayName=WU;var ux="Toast",sve="toast.swipeStart",lve="toast.swipeMove",uve="toast.swipeCancel",cve="toast.swipeEnd",ZU=F.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...s}=e,[u,f]=Dp({prop:r,defaultProp:o??!0,onChange:a,caller:ux});return A.jsx(Kl,{present:n||u,children:A.jsx(pve,{open:u,...s,ref:t,onClose:()=>f(!1),onPause:Ia(e.onPause),onResume:Ia(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)})})})});ZU.displayName=ux;var[fve,dve]=GU(ux,{onClose(){}}),pve=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=GT(ux,n),[E,C]=F.useState(null),N=_r(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=Ia(()=>{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(bj,H),Y.addEventListener(vj,ee),()=>{Y.removeEventListener(bj,H),Y.removeEventListener(vj,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?rH(E):null,[E]);return x.viewport?A.jsxs(A.Fragment,{children:[J&&A.jsx(hve,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:J}),A.jsx(fve,{scope:n,onClose:X,children:hS.createPortal(A.jsx(yj.ItemSlot,{scope:n,children:A.jsx(kue,{asChild:!0,onEscapeKeyDown:ht(u,()=>{x.isFocusedToastEscapeKeyDownRef.current||X(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:A.jsx(mn.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,YT(lve,g,K,{discrete:!1})):oH(Z,x.swipeDirection,ie)?(k.current=Z,YT(sve,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};oH(ee,x.swipeDirection,x.swipeThreshold)?YT(cve,S,Q,{discrete:!0}):YT(uve,b,Q,{discrete:!0}),ne.addEventListener("click",ae=>ae.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),hve=e=>{const{__scopeToast:t,children:n,...r}=e,o=GT(ux,t),[a,s]=F.useState(!1),[u,f]=F.useState(!1);return yve(()=>s(!0)),F.useEffect(()=>{const p=window.setTimeout(()=>f(!0),1e3);return()=>window.clearTimeout(p)},[]),u?null:A.jsx(G2,{asChild:!0,children:A.jsx(mj,{...r,children:a&&A.jsxs(A.Fragment,{children:[o.label," ",n]})})})},mve="ToastTitle",JU=F.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return A.jsx(mn.div,{...r,ref:t})});JU.displayName=mve;var gve="ToastDescription",KU=F.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return A.jsx(mn.div,{...r,ref:t})});KU.displayName=gve;var QU="ToastAction",eH=F.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?A.jsx(nH,{altText:n,asChild:!0,children:A.jsx(xj,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${QU}\`. Expected non-empty \`string\`.`),null)});eH.displayName=QU;var tH="ToastClose",xj=F.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=dve(tH,n);return A.jsx(nH,{asChild:!0,children:A.jsx(mn.button,{type:"button",...r,ref:t,onClick:ht(e.onClick,o.onClose)})})});xj.displayName=tH;var nH=F.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return A.jsx(mn.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function rH(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),bve(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(...rH(r))}}),t}function YT(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?$I(o,a):o.dispatchEvent(a)}var oH=(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 yve(e=()=>{}){const t=Ia(e);Lf(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function bve(e){return e.nodeType===e.ELEMENT_NODE}function vve(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 wj(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Sve=YU,xve=XU,wve=ZU,Eve=JU,_ve=KU,Cve=eH,Tve=xj;const yi=[];for(let e=0;e<256;++e)yi.push((e+256).toString(16).slice(1));function Ave(e,t=0){return(yi[e[t+0]]+yi[e[t+1]]+yi[e[t+2]]+yi[e[t+3]]+"-"+yi[e[t+4]]+yi[e[t+5]]+"-"+yi[e[t+6]]+yi[e[t+7]]+"-"+yi[e[t+8]]+yi[e[t+9]]+"-"+yi[e[t+10]]+yi[e[t+11]]+yi[e[t+12]]+yi[e[t+13]]+yi[e[t+14]]+yi[e[t+15]]).toLowerCase()}let Ej;const Ove=new Uint8Array(16);function Rve(){if(!Ej){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ej=crypto.getRandomValues.bind(crypto)}return Ej(Ove)}const iH={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Nve(e,t,n){e=e||{};const r=e.random??e.rng?.()??Rve();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,Ave(r)}function _j(e,t,n){return iH.randomUUID&&!e?iH.randomUUID():Nve(e)}const aH=F.createContext(void 0),sH=F.createContext(void 0),kve=350,Mve=({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(_j(),{...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(aH.Provider,{value:E,children:A.jsx(sH.Provider,{value:F.useMemo(()=>({toastElementsMapRef:u,sortToasts:m}),[m]),children:A.jsxs(Sve,{...o,children:[e,Array.from(a).map(([C,N])=>A.jsx(jve,{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)},kve))}},C)),A.jsx(xve,{ref:f,className:"ToastViewport",style:t?{"--fixed-toast-height":`${t}px`}:void 0})]})})})},Ive=()=>{const e=F.useContext(aH);if(e)return e;throw new Error("useToast must be used within Toasts")},Dve=()=>{const e=F.useContext(sH);if(e)return e;throw new Error("useToastContext must be used within Toasts")},jve=({onOpenChange:e,toast:t,id:n,...r})=>{const o=F.useRef(null),a=Dve(),{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(wve,{...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(Pve,{status:t.status}),t.title&&A.jsx(Eve,{className:"ToastTitle",children:t.title}),A.jsx(_ve,{className:"ToastDescription",children:t.description}),t.action&&A.jsx(Cve,{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(Tve,{"aria-label":"Close",className:"ToastClose",children:A.jsx(vT,{style:{fontSize:"12px"}})})]})})},Pve=({status:e})=>e!=="default"&&e?A.jsxs("div",{style:{gridArea:"icon",alignSelf:"start"},children:[e==="success"&&A.jsx(Xhe,{style:{color:"#61d345",fontSize:"20px"}}),e==="error"&&A.jsx(Whe,{style:{color:"#ff4b4b",fontSize:"20px"}})]}):null,zve={},lH=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:()=>{(zve?"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},uH=e=>e?lH(e):lH;var qT={exports:{}},Cj={},XT={exports:{}},Tj={};var cH;function $ve(){if(cH)return Tj;cH=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 Tj.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Tj}var Aj={};var fH;function Fve(){return fH||(fH=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;Aj.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())})()),Aj}var dH;function pH(){return dH||(dH=1,process.env.NODE_ENV==="production"?XT.exports=$ve():XT.exports=Fve()),XT.exports}var hH;function Lve(){if(hH)return Cj;hH=1;var e=oe,t=pH();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 Cj.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},Cj}var Oj={};var mH;function Bve(){return mH||(mH=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=pH(),r=typeof Object.is=="function"?Object.is:e,o=n.useSyncExternalStore,a=t.useRef,s=t.useEffect,u=t.useMemo,f=t.useDebugValue;Oj.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())})()),Oj}var gH;function Vve(){return gH||(gH=1,process.env.NODE_ENV==="production"?qT.exports=Lve():qT.exports=Bve()),qT.exports}var Uve=Vve();const yH=Df(Uve),bH={},{useDebugValue:Hve}=oe,{useSyncExternalStoreWithSelector:Gve}=yH;let vH=!1;const Yve=e=>e;function qve(e,t=Yve,n){(bH?"production":void 0)!=="production"&&n&&!vH&&(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"),vH=!0);const r=Gve(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Hve(r),r}const SH=e=>{(bH?"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"?uH(e):e,n=(r,o)=>qve(t,r,o);return Object.assign(n,t),n},Qs=e=>e?SH(e):SH;class Jf{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 WT=2e3;class Xve extends Jf{constructor(t){super(t),this._responsive=!1,this._last_pong=0,this._last_pong=Date.now()-WT*100}start(){this.stop(),this.pingInterval=setInterval(()=>{this.context.worker.is_open&&this.context.worker.send({type:"ping"})},WT),this.responsivenessCheckInterval=setInterval(()=>{this._responsive=Date.now()-this._last_pong<=WT*3},WT*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 xH=(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)},wH=2e3,EH=2e3;class Wve extends Jf{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()},wH),this._groupupdatetimer=setTimeout(()=>{this.sync_local_group_updates()},EH)}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={};xH(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&&xH(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()},wH)}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()},EH)}locally_update_node(t){const n=this._local_nodeupdates.get(t.id);if(n){const{new_obj:r,change:o}=jf(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}=jf(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 ou{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 Rj extends ou{constructor({data:t,mime:n}){super({data:ZT(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 ZT=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},Zve={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 Nj extends ou{constructor({data:t,mime:n}){super({data:ZT(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=Zve[n](this.data,t),this._value}get value(){return this._value}toString(){return this._value===null?"null":this._value.toString()}}class Kf extends ou{constructor({data:t,mime:n}){const r=ZT(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 Kf({data:n,mime:"application/json"})}toString(){return typeof this._json=="string"?this._json:JSON.stringify(this._json)}}class kj extends ou{constructor({data:t,mime:n}){const r=ZT(t);super({data:r,mime:n}),this._value=new TextDecoder().decode(r)}get value(){return this._value}toString(){return this._value}}const _H=({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 Nj({data:e,mime:t}):t.startsWith("application/json")?new Kf({data:e,mime:t}):t==="text"||t.startsWith("text/")?new kj({data:e,mime:t}):new Rj({data:e,mime:t}):new ou({data:e,mime:t})};class Jve extends Jf{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||_j();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=_H({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,Kre);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 yGe extends nv{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=hBe({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 bGe=class{constructor(t){this.reactflowRef=null,this.dev_settings={debug:Fw()},this.options=t,this.logger=t.logger??new zM("fn",Fw()?oF:iF);const n={rf:this};this._nodespaceManager=new uGe(n),this._libManager=new fGe(n),this._workerManager=new dGe(n),this._stateManager=new pGe(n),this._pluginManager=new gGe(n),this._reactFlowManager=new yGe(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 vGe=vS(OSe,e=>(e.id=_j(),e)),SGe=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.")},Sz={};window.fnrf_zst===void 0&&(window.fnrf_zst=Sz);const xz=e=>{const[t,n]=F.useState(void 0),[r,o]=F.useState(void 0),[a,s]=F.useState(!1);if(F.useEffect(()=>{const u=vGe(e);u.logger=u.logger||new zM("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=Sz[t.id];if(u===void 0){const f=new bGe(t);Sz[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")
|
|
1100
|
+
`)(F,Kre);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 yGe extends nv{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=hBe({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 bGe=class{constructor(t){this.reactflowRef=null,this.dev_settings={debug:Fw()},this.options=t,this.logger=t.logger??new zM("fn",Fw()?oF:iF);const n={rf:this};this._nodespaceManager=new uGe(n),this._libManager=new fGe(n),this._workerManager=new dGe(n),this._stateManager=new pGe(n),this._pluginManager=new gGe(n),this._reactFlowManager=new yGe(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 vGe=vS(OSe,e=>(e.id=_j(),e)),SGe=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.")},Sz={};window.fnrf_zst===void 0&&(window.fnrf_zst=Sz);const xz=e=>{const[t,n]=F.useState(void 0),[r,o]=F.useState(void 0),[a,s]=F.useState(!1);if(F.useEffect(()=>{const u=vGe(e);u.logger=u.logger||new zM("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=Sz[t.id];if(u===void 0){const f=new bGe(t);Sz[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 c8({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 voe(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 ASe(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{SGe(t)}catch(u){return A.jsx(Soe,{error:u})}return A.jsx("div",{className:"FuncnodesApp",children:A.jsx(Jhe,{available_themes:f8,children:A.jsx(Mve,{duration:5e3,children:A.jsx(sGe,{fnrf_zst:r,header:t.header,library:t.library,flow:t.flow})})})})},wz=(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};soe.createRoot(n).render(A.jsx(F.StrictMode,{children:A.jsx(xz,{...t,id:t.id||r})}))};window.FuncNodes=wz,window.FuncNodes.version="2.2.1a0",window.FuncNodes.utils={logger:{ConsoleLogger:zM,DivLogger:foe,BaseLogger:PM,DEBUG:oF,INFO:iF,WARN:loe,ERROR:uoe}},qt.ArrayBufferDataStructure=Rj,qt.CTypeStructure=Nj,qt.DataPreviewViewRendererToHandlePreviewRenderer=j3,qt.DataStructure=ou,qt.DataViewRendererToDataPreviewViewRenderer=ia,qt.DataViewRendererToInputRenderer=P3,qt.DataViewRendererToOverlayRenderer=zx,qt.FuncNodes=xz,qt.FuncNodesRenderer=wz,qt.FuncNodesWorker=Mj,qt.JSONStructure=Kf,qt.LATEST_VERSION=vz,qt.TextStructure=kj,qt.deep_merge=jf,qt.deep_update=JC,qt.object_factory_maker=vS,qt.useFuncNodesContext=Bn,qt.useIOGetFullValue=Tb,qt.useIOStore=Fr,qt.useIOValueStore=iY,qt.useNodeStore=za,qt.useSetIOValue=qp,qt.useSetIOValueOptions=oY,qt.useWorkerApi=Hi,Object.defineProperty(qt,Symbol.toStringTag,{value:"Module"})}));
|